@@ -43,12 +43,17 @@ import { AgentSchema } from './ai/agent.zod';
4343 * 4. Platform Reflection (API & Capabilities Discovery)
4444 */
4545/**
46- * 1. CONFIGURATION PROTOCOL (Static)
46+ * 1. DEFINITION PROTOCOL (Static)
4747 * ----------------------------------------------------------------------
48- * Describes the "Source Code" of an ObjectStack Plugin or Project.
49- * This is what developers write (or AI generates) in `objectstack.config.ts`.
48+ * Describes the "Blueprint" or "Source Code" of an ObjectStack Plugin/Project.
49+ * This represents the complete declarative state of the application.
50+ *
51+ * Usage:
52+ * - Developers write this in files locally.
53+ * - AI Agents generate this to create apps.
54+ * - CI Tools deploy this to the server.
5055 */
51- export const ObjectStackConfigSchema = z . object ( {
56+ export const ObjectStackDefinitionSchema = z . object ( {
5257 /** System Configuration */
5358 manifest : ManifestSchema . describe ( 'Project Package Configuration' ) ,
5459 datasources : z . array ( DatasourceSchema ) . optional ( ) . describe ( 'External Data Connections' ) ,
@@ -92,11 +97,11 @@ export const ObjectStackConfigSchema = z.object({
9297 agents : z . array ( AgentSchema ) . optional ( ) . describe ( 'AI Agents and Assistants' ) ,
9398} ) ;
9499
95- export type ObjectStackConfig = z . infer < typeof ObjectStackConfigSchema > ;
100+ export type ObjectStackDefinition = z . infer < typeof ObjectStackDefinitionSchema > ;
96101
97102// Alias for backward compatibility
98- export const ObjectStackSchema = ObjectStackConfigSchema ;
99- export type ObjectStack = ObjectStackConfig ;
103+ export const ObjectStackSchema = ObjectStackDefinitionSchema ;
104+ export type ObjectStack = ObjectStackDefinition ;
100105
101106
102107/**
0 commit comments