@objectstack/spec 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +14 -0
  2. package/dist/ai/cost.zod.d.ts +1 -1
  3. package/dist/ai/devops-agent.zod.d.ts +6 -6
  4. package/dist/ai/index.d.ts +4 -0
  5. package/dist/ai/index.d.ts.map +1 -1
  6. package/dist/ai/index.js +4 -0
  7. package/dist/ai/plugin-development.zod.d.ts +415 -0
  8. package/dist/ai/plugin-development.zod.d.ts.map +1 -0
  9. package/dist/ai/plugin-development.zod.js +576 -0
  10. package/dist/ai/runtime-ops.zod.d.ts +480 -0
  11. package/dist/ai/runtime-ops.zod.d.ts.map +1 -0
  12. package/dist/ai/runtime-ops.zod.js +578 -0
  13. package/dist/api/discovery.zod.d.ts +1 -1
  14. package/dist/api/endpoint.zod.d.ts +2 -2
  15. package/dist/api/hub.zod.d.ts +74 -74
  16. package/dist/api/realtime.zod.d.ts +2 -2
  17. package/dist/api/websocket.zod.d.ts +6 -6
  18. package/dist/automation/trigger-registry.zod.d.ts +6 -6
  19. package/dist/contracts/service-registry.d.ts +1 -1
  20. package/dist/hub/hub-federation.zod.d.ts +4 -4
  21. package/dist/hub/index.d.ts +1 -0
  22. package/dist/hub/index.d.ts.map +1 -1
  23. package/dist/hub/index.js +1 -0
  24. package/dist/hub/license.zod.d.ts +1 -1
  25. package/dist/hub/marketplace-enhanced.zod.d.ts +1028 -0
  26. package/dist/hub/marketplace-enhanced.zod.d.ts.map +1 -0
  27. package/dist/hub/marketplace-enhanced.zod.js +728 -0
  28. package/dist/hub/plugin-registry.zod.d.ts +3 -3
  29. package/dist/hub/plugin-security.zod.d.ts +4 -4
  30. package/dist/hub/space.zod.d.ts +2 -2
  31. package/dist/integration/connector/database.zod.d.ts +1 -1
  32. package/dist/integration/connector/file-storage.zod.d.ts +1 -1
  33. package/dist/integration/connector/github.zod.d.ts +1 -1
  34. package/dist/integration/connector/message-queue.zod.d.ts +1 -1
  35. package/dist/integration/connector/saas.zod.d.ts +3 -3
  36. package/dist/integration/connector/vercel.zod.d.ts +4 -4
  37. package/dist/integration/connector.zod.d.ts +2 -2
  38. package/dist/stack.zod.d.ts +5 -5
  39. package/dist/system/index.d.ts +3 -0
  40. package/dist/system/index.d.ts.map +1 -1
  41. package/dist/system/index.js +3 -0
  42. package/dist/system/logging.zod.d.ts +5 -0
  43. package/dist/system/logging.zod.d.ts.map +1 -1
  44. package/dist/system/logging.zod.js +2 -1
  45. package/dist/system/notification.zod.d.ts +1 -1
  46. package/dist/system/plugin-lifecycle-advanced.zod.d.ts +357 -0
  47. package/dist/system/plugin-lifecycle-advanced.zod.d.ts.map +1 -0
  48. package/dist/system/plugin-lifecycle-advanced.zod.js +411 -0
  49. package/dist/system/plugin-security-advanced.zod.d.ts +904 -0
  50. package/dist/system/plugin-security-advanced.zod.d.ts.map +1 -0
  51. package/dist/system/plugin-security-advanced.zod.js +606 -0
  52. package/dist/system/plugin-versioning.zod.d.ts +438 -0
  53. package/dist/system/plugin-versioning.zod.d.ts.map +1 -0
  54. package/dist/system/plugin-versioning.zod.js +397 -0
  55. package/json-schema/ai/AICodeReviewResult.json +7 -0
  56. package/json-schema/ai/AIOpsAgentConfig.json +7 -0
  57. package/json-schema/ai/AnomalyDetectionConfig.json +7 -0
  58. package/json-schema/ai/AutoScalingPolicy.json +7 -0
  59. package/json-schema/ai/CodeGenerationRequest.json +7 -0
  60. package/json-schema/ai/GeneratedCode.json +7 -0
  61. package/json-schema/ai/PerformanceOptimization.json +7 -0
  62. package/json-schema/ai/PluginCompositionRequest.json +7 -0
  63. package/json-schema/ai/PluginCompositionResult.json +7 -0
  64. package/json-schema/ai/PluginRecommendation.json +7 -0
  65. package/json-schema/ai/PluginRecommendationRequest.json +7 -0
  66. package/json-schema/ai/PluginScaffoldingTemplate.json +7 -0
  67. package/json-schema/ai/RootCauseAnalysisRequest.json +7 -0
  68. package/json-schema/ai/RootCauseAnalysisResult.json +7 -0
  69. package/json-schema/ai/SelfHealingAction.json +7 -0
  70. package/json-schema/ai/SelfHealingConfig.json +7 -0
  71. package/json-schema/hub/MarketplaceQualityMetrics.json +7 -0
  72. package/json-schema/hub/PluginCategory.json +7 -0
  73. package/json-schema/hub/PluginCertification.json +7 -0
  74. package/json-schema/hub/PluginInstallationRequest.json +7 -0
  75. package/json-schema/hub/PluginInstallationStatus.json +7 -0
  76. package/json-schema/hub/PluginLicense.json +7 -0
  77. package/json-schema/hub/PluginMarketplaceListing.json +7 -0
  78. package/json-schema/hub/PluginRating.json +7 -0
  79. package/json-schema/hub/PluginRevenueSharing.json +7 -0
  80. package/json-schema/hub/PluginSearchQuery.json +7 -0
  81. package/json-schema/hub/PluginTag.json +7 -0
  82. package/json-schema/hub/RegistryConfig.json +7 -0
  83. package/json-schema/hub/RegistrySyncPolicy.json +7 -0
  84. package/json-schema/hub/RegistryUpstream.json +7 -0
  85. package/json-schema/system/AdvancedPluginLifecycleConfig.json +7 -0
  86. package/json-schema/system/BreakingChange.json +7 -0
  87. package/json-schema/system/CompatibilityLevel.json +7 -0
  88. package/json-schema/system/CompatibilityMatrixEntry.json +7 -0
  89. package/json-schema/system/DependencyConflict.json +7 -0
  90. package/json-schema/system/DependencyResolutionResult.json +7 -0
  91. package/json-schema/system/DeprecationNotice.json +7 -0
  92. package/json-schema/system/DistributedStateConfig.json +7 -0
  93. package/json-schema/system/GracefulDegradation.json +7 -0
  94. package/json-schema/system/HotReloadConfig.json +7 -0
  95. package/json-schema/system/MultiVersionSupport.json +7 -0
  96. package/json-schema/system/Permission.json +7 -0
  97. package/json-schema/system/PermissionAction.json +7 -0
  98. package/json-schema/system/PermissionScope.json +7 -0
  99. package/json-schema/system/PermissionSet.json +7 -0
  100. package/json-schema/system/PluginCompatibilityMatrix.json +7 -0
  101. package/json-schema/system/PluginHealthCheck.json +7 -0
  102. package/json-schema/system/PluginHealthReport.json +7 -0
  103. package/json-schema/system/PluginHealthStatus.json +7 -0
  104. package/json-schema/system/PluginSecurityManifest.json +7 -0
  105. package/json-schema/system/PluginStateSnapshot.json +7 -0
  106. package/json-schema/system/PluginTrustLevel.json +7 -0
  107. package/json-schema/system/PluginUpdateStrategy.json +7 -0
  108. package/json-schema/system/PluginVersionMetadata.json +7 -0
  109. package/json-schema/system/ResourceType.json +7 -0
  110. package/json-schema/system/RuntimeConfig.json +7 -0
  111. package/json-schema/system/SandboxConfig.json +7 -0
  112. package/json-schema/system/SecurityPolicy.json +7 -0
  113. package/json-schema/system/SecurityScanResult.json +7 -0
  114. package/json-schema/system/SecurityVulnerability.json +7 -0
  115. package/json-schema/system/SemanticVersion.json +7 -0
  116. package/json-schema/system/VersionConstraint.json +7 -0
  117. package/package.json +1 -1
package/README.md CHANGED
@@ -14,6 +14,20 @@ This package defines the **DNA** of ObjectStack. It contains:
14
14
 
15
15
  **Guiding Principle:** *"Strict Types, No Logic"*
16
16
 
17
+ ## 🤖 AI Development Context
18
+
19
+ **Role**: Protocol Definition (Source of Truth)
20
+ **Usage**:
21
+ - Import Zod schemas from here for validation.
22
+ - Import Types from here for type safety.
23
+ - DO NOT implement business logic here.
24
+ - DO NOT duplicate schemas in other packages; import from here.
25
+
26
+ **Key Exports**:
27
+ - `Data.ObjectSchema` -> The definition of a Business Object.
28
+ - `Data.FieldSchema` -> Sub-schema for fields.
29
+ - `UI.ViewSchema` -> Definition of UI Views.
30
+
17
31
  ## 🚀 Installation
18
32
 
19
33
  ```bash
@@ -852,8 +852,8 @@ export declare const CostQueryFiltersSchema: z.ZodObject<{
852
852
  }>>>;
853
853
  orderBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
854
854
  timestamp: "timestamp";
855
- tokens: "tokens";
856
855
  cost: "cost";
856
+ tokens: "tokens";
857
857
  }>>>;
858
858
  orderDirection: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
859
859
  asc: "asc";
@@ -61,8 +61,8 @@ export declare const CodeGenerationTargetSchema: z.ZodEnum<{
61
61
  database: "database";
62
62
  api: "api";
63
63
  documentation: "documentation";
64
- frontend: "frontend";
65
64
  backend: "backend";
65
+ frontend: "frontend";
66
66
  tests: "tests";
67
67
  infrastructure: "infrastructure";
68
68
  }>;
@@ -76,8 +76,8 @@ export declare const CodeGenerationConfigSchema: z.ZodObject<{
76
76
  database: "database";
77
77
  api: "api";
78
78
  documentation: "documentation";
79
- frontend: "frontend";
80
79
  backend: "backend";
80
+ frontend: "frontend";
81
81
  tests: "tests";
82
82
  infrastructure: "infrastructure";
83
83
  }>>;
@@ -204,8 +204,8 @@ export type VersionManagement = z.infer<typeof VersionManagementSchema>;
204
204
  export declare const DeploymentStrategySchema: z.ZodObject<{
205
205
  type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
206
206
  rolling: "rolling";
207
- blue_green: "blue_green";
208
207
  canary: "canary";
208
+ blue_green: "blue_green";
209
209
  recreate: "recreate";
210
210
  }>>>;
211
211
  canaryPercentage: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -251,8 +251,8 @@ export declare const DevelopmentConfigSchema: z.ZodObject<{
251
251
  database: "database";
252
252
  api: "api";
253
253
  documentation: "documentation";
254
- frontend: "frontend";
255
254
  backend: "backend";
255
+ frontend: "frontend";
256
256
  tests: "tests";
257
257
  infrastructure: "infrastructure";
258
258
  }>>;
@@ -408,8 +408,8 @@ export declare const DevOpsAgentSchema: z.ZodObject<{
408
408
  database: "database";
409
409
  api: "api";
410
410
  documentation: "documentation";
411
- frontend: "frontend";
412
411
  backend: "backend";
412
+ frontend: "frontend";
413
413
  tests: "tests";
414
414
  infrastructure: "infrastructure";
415
415
  }>>;
@@ -508,8 +508,8 @@ export declare const DevOpsAgentSchema: z.ZodObject<{
508
508
  deploymentStrategy: z.ZodOptional<z.ZodObject<{
509
509
  type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
510
510
  rolling: "rolling";
511
- blue_green: "blue_green";
512
511
  canary: "canary";
512
+ blue_green: "blue_green";
513
513
  recreate: "recreate";
514
514
  }>>>;
515
515
  canaryPercentage: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -11,10 +11,14 @@
11
11
  * - Predictive Analytics
12
12
  * - Conversation Memory & Token Management
13
13
  * - Cost Tracking & Budget Management
14
+ * - Plugin Development (AI-assisted)
15
+ * - Runtime Operations (AIOps)
14
16
  */
15
17
  export * from './agent.zod';
16
18
  export * from './agent-action.zod';
17
19
  export * from './devops-agent.zod';
20
+ export * from './plugin-development.zod';
21
+ export * from './runtime-ops.zod';
18
22
  export * from './model-registry.zod';
19
23
  export * from './rag-pipeline.zod';
20
24
  export * from './nlq.zod';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ai/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ai/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC"}
package/dist/ai/index.js CHANGED
@@ -12,6 +12,8 @@
12
12
  * - Predictive Analytics
13
13
  * - Conversation Memory & Token Management
14
14
  * - Cost Tracking & Budget Management
15
+ * - Plugin Development (AI-assisted)
16
+ * - Runtime Operations (AIOps)
15
17
  */
16
18
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
17
19
  if (k2 === undefined) k2 = k;
@@ -31,6 +33,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
31
33
  __exportStar(require("./agent.zod"), exports);
32
34
  __exportStar(require("./agent-action.zod"), exports);
33
35
  __exportStar(require("./devops-agent.zod"), exports);
36
+ __exportStar(require("./plugin-development.zod"), exports);
37
+ __exportStar(require("./runtime-ops.zod"), exports);
34
38
  __exportStar(require("./model-registry.zod"), exports);
35
39
  __exportStar(require("./rag-pipeline.zod"), exports);
36
40
  __exportStar(require("./nlq.zod"), exports);
@@ -0,0 +1,415 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * # AI-Driven Plugin Development Protocol
4
+ *
5
+ * Defines protocols for AI-powered plugin development including:
6
+ * - Natural language to code generation
7
+ * - Intelligent code scaffolding
8
+ * - Automated testing and validation
9
+ * - AI-powered code review and optimization
10
+ * - Plugin composition and recommendation
11
+ */
12
+ /**
13
+ * Code Generation Request
14
+ * Request for AI to generate plugin code
15
+ */
16
+ export declare const CodeGenerationRequestSchema: z.ZodObject<{
17
+ description: z.ZodString;
18
+ pluginType: z.ZodEnum<{
19
+ custom: "custom";
20
+ widget: "widget";
21
+ app: "app";
22
+ integration: "integration";
23
+ driver: "driver";
24
+ analytics: "analytics";
25
+ automation: "automation";
26
+ "ai-agent": "ai-agent";
27
+ }>;
28
+ outputFormat: z.ZodDefault<z.ZodEnum<{
29
+ "source-code": "source-code";
30
+ "low-code-schema": "low-code-schema";
31
+ dsl: "dsl";
32
+ }>>;
33
+ language: z.ZodDefault<z.ZodEnum<{
34
+ javascript: "javascript";
35
+ typescript: "typescript";
36
+ python: "python";
37
+ }>>;
38
+ framework: z.ZodOptional<z.ZodObject<{
39
+ runtime: z.ZodOptional<z.ZodEnum<{
40
+ browser: "browser";
41
+ edge: "edge";
42
+ node: "node";
43
+ universal: "universal";
44
+ }>>;
45
+ uiFramework: z.ZodOptional<z.ZodEnum<{
46
+ none: "none";
47
+ react: "react";
48
+ vue: "vue";
49
+ svelte: "svelte";
50
+ }>>;
51
+ testing: z.ZodOptional<z.ZodEnum<{
52
+ none: "none";
53
+ vitest: "vitest";
54
+ jest: "jest";
55
+ mocha: "mocha";
56
+ }>>;
57
+ }, z.core.$strip>>;
58
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
59
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
60
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
61
+ input: z.ZodString;
62
+ expectedOutput: z.ZodString;
63
+ description: z.ZodOptional<z.ZodString>;
64
+ }, z.core.$strip>>>;
65
+ style: z.ZodOptional<z.ZodObject<{
66
+ indentation: z.ZodDefault<z.ZodEnum<{
67
+ tab: "tab";
68
+ "2spaces": "2spaces";
69
+ "4spaces": "4spaces";
70
+ }>>;
71
+ quotes: z.ZodDefault<z.ZodEnum<{
72
+ single: "single";
73
+ double: "double";
74
+ }>>;
75
+ semicolons: z.ZodDefault<z.ZodBoolean>;
76
+ trailingComma: z.ZodDefault<z.ZodBoolean>;
77
+ }, z.core.$strip>>;
78
+ schemaOptions: z.ZodOptional<z.ZodObject<{
79
+ format: z.ZodDefault<z.ZodEnum<{
80
+ json: "json";
81
+ yaml: "yaml";
82
+ typescript: "typescript";
83
+ }>>;
84
+ includeExamples: z.ZodDefault<z.ZodBoolean>;
85
+ strictValidation: z.ZodDefault<z.ZodBoolean>;
86
+ generateUI: z.ZodDefault<z.ZodBoolean>;
87
+ generateDataModels: z.ZodDefault<z.ZodBoolean>;
88
+ }, z.core.$strip>>;
89
+ context: z.ZodOptional<z.ZodObject<{
90
+ existingCode: z.ZodOptional<z.ZodString>;
91
+ documentationUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
92
+ referencePlugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
93
+ }, z.core.$strip>>;
94
+ options: z.ZodOptional<z.ZodObject<{
95
+ generateTests: z.ZodDefault<z.ZodBoolean>;
96
+ generateDocs: z.ZodDefault<z.ZodBoolean>;
97
+ generateExamples: z.ZodDefault<z.ZodBoolean>;
98
+ targetCoverage: z.ZodDefault<z.ZodNumber>;
99
+ optimizationLevel: z.ZodDefault<z.ZodEnum<{
100
+ none: "none";
101
+ basic: "basic";
102
+ aggressive: "aggressive";
103
+ }>>;
104
+ }, z.core.$strip>>;
105
+ }, z.core.$strip>;
106
+ /**
107
+ * Generated Code
108
+ * Result of code generation
109
+ */
110
+ export declare const GeneratedCodeSchema: z.ZodObject<{
111
+ outputFormat: z.ZodEnum<{
112
+ "source-code": "source-code";
113
+ "low-code-schema": "low-code-schema";
114
+ dsl: "dsl";
115
+ }>;
116
+ code: z.ZodOptional<z.ZodString>;
117
+ language: z.ZodOptional<z.ZodString>;
118
+ schemas: z.ZodOptional<z.ZodArray<z.ZodObject<{
119
+ type: z.ZodEnum<{
120
+ object: "object";
121
+ dashboard: "dashboard";
122
+ page: "page";
123
+ api: "api";
124
+ app: "app";
125
+ view: "view";
126
+ workflow: "workflow";
127
+ }>;
128
+ path: z.ZodString;
129
+ content: z.ZodString;
130
+ description: z.ZodOptional<z.ZodString>;
131
+ }, z.core.$strip>>>;
132
+ files: z.ZodArray<z.ZodObject<{
133
+ path: z.ZodString;
134
+ content: z.ZodString;
135
+ description: z.ZodOptional<z.ZodString>;
136
+ }, z.core.$strip>>;
137
+ tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
138
+ path: z.ZodString;
139
+ content: z.ZodString;
140
+ coverage: z.ZodOptional<z.ZodNumber>;
141
+ }, z.core.$strip>>>;
142
+ documentation: z.ZodOptional<z.ZodObject<{
143
+ readme: z.ZodOptional<z.ZodString>;
144
+ api: z.ZodOptional<z.ZodString>;
145
+ usage: z.ZodOptional<z.ZodString>;
146
+ }, z.core.$strip>>;
147
+ package: z.ZodOptional<z.ZodObject<{
148
+ name: z.ZodString;
149
+ version: z.ZodString;
150
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
151
+ devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
152
+ }, z.core.$strip>>;
153
+ quality: z.ZodOptional<z.ZodObject<{
154
+ complexity: z.ZodOptional<z.ZodNumber>;
155
+ maintainability: z.ZodOptional<z.ZodNumber>;
156
+ testCoverage: z.ZodOptional<z.ZodNumber>;
157
+ lintScore: z.ZodOptional<z.ZodNumber>;
158
+ }, z.core.$strip>>;
159
+ confidence: z.ZodNumber;
160
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
161
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
162
+ }, z.core.$strip>;
163
+ /**
164
+ * Plugin Scaffolding Template
165
+ * Template for plugin structure
166
+ */
167
+ export declare const PluginScaffoldingTemplateSchema: z.ZodObject<{
168
+ id: z.ZodString;
169
+ name: z.ZodString;
170
+ description: z.ZodString;
171
+ pluginType: z.ZodString;
172
+ structure: z.ZodArray<z.ZodObject<{
173
+ type: z.ZodEnum<{
174
+ file: "file";
175
+ directory: "directory";
176
+ }>;
177
+ path: z.ZodString;
178
+ template: z.ZodOptional<z.ZodString>;
179
+ optional: z.ZodDefault<z.ZodBoolean>;
180
+ }, z.core.$strip>>;
181
+ variables: z.ZodArray<z.ZodObject<{
182
+ name: z.ZodString;
183
+ description: z.ZodString;
184
+ type: z.ZodEnum<{
185
+ string: "string";
186
+ number: "number";
187
+ boolean: "boolean";
188
+ object: "object";
189
+ array: "array";
190
+ }>;
191
+ required: z.ZodDefault<z.ZodBoolean>;
192
+ default: z.ZodOptional<z.ZodAny>;
193
+ validation: z.ZodOptional<z.ZodString>;
194
+ }, z.core.$strip>>;
195
+ scripts: z.ZodOptional<z.ZodArray<z.ZodObject<{
196
+ name: z.ZodString;
197
+ command: z.ZodString;
198
+ description: z.ZodOptional<z.ZodString>;
199
+ optional: z.ZodDefault<z.ZodBoolean>;
200
+ }, z.core.$strip>>>;
201
+ }, z.core.$strip>;
202
+ /**
203
+ * AI Code Review Result
204
+ * Result of AI-powered code review
205
+ */
206
+ export declare const AICodeReviewResultSchema: z.ZodObject<{
207
+ assessment: z.ZodEnum<{
208
+ excellent: "excellent";
209
+ good: "good";
210
+ acceptable: "acceptable";
211
+ "needs-improvement": "needs-improvement";
212
+ poor: "poor";
213
+ }>;
214
+ score: z.ZodNumber;
215
+ issues: z.ZodArray<z.ZodObject<{
216
+ severity: z.ZodEnum<{
217
+ error: "error";
218
+ warning: "warning";
219
+ info: "info";
220
+ critical: "critical";
221
+ style: "style";
222
+ }>;
223
+ category: z.ZodEnum<{
224
+ documentation: "documentation";
225
+ style: "style";
226
+ performance: "performance";
227
+ testing: "testing";
228
+ security: "security";
229
+ maintainability: "maintainability";
230
+ bug: "bug";
231
+ "type-safety": "type-safety";
232
+ "best-practice": "best-practice";
233
+ }>;
234
+ file: z.ZodString;
235
+ line: z.ZodOptional<z.ZodNumber>;
236
+ column: z.ZodOptional<z.ZodNumber>;
237
+ message: z.ZodString;
238
+ suggestion: z.ZodOptional<z.ZodString>;
239
+ autoFixable: z.ZodDefault<z.ZodBoolean>;
240
+ autoFix: z.ZodOptional<z.ZodString>;
241
+ }, z.core.$strip>>;
242
+ highlights: z.ZodOptional<z.ZodArray<z.ZodObject<{
243
+ category: z.ZodString;
244
+ description: z.ZodString;
245
+ file: z.ZodOptional<z.ZodString>;
246
+ }, z.core.$strip>>>;
247
+ metrics: z.ZodOptional<z.ZodObject<{
248
+ complexity: z.ZodOptional<z.ZodNumber>;
249
+ maintainability: z.ZodOptional<z.ZodNumber>;
250
+ testCoverage: z.ZodOptional<z.ZodNumber>;
251
+ duplicateCode: z.ZodOptional<z.ZodNumber>;
252
+ technicalDebt: z.ZodOptional<z.ZodString>;
253
+ }, z.core.$strip>>;
254
+ recommendations: z.ZodArray<z.ZodObject<{
255
+ priority: z.ZodEnum<{
256
+ medium: "medium";
257
+ high: "high";
258
+ low: "low";
259
+ }>;
260
+ title: z.ZodString;
261
+ description: z.ZodString;
262
+ effort: z.ZodOptional<z.ZodEnum<{
263
+ small: "small";
264
+ medium: "medium";
265
+ large: "large";
266
+ trivial: "trivial";
267
+ }>>;
268
+ }, z.core.$strip>>;
269
+ security: z.ZodOptional<z.ZodObject<{
270
+ vulnerabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
271
+ severity: z.ZodEnum<{
272
+ medium: "medium";
273
+ critical: "critical";
274
+ high: "high";
275
+ low: "low";
276
+ }>;
277
+ type: z.ZodString;
278
+ description: z.ZodString;
279
+ remediation: z.ZodOptional<z.ZodString>;
280
+ }, z.core.$strip>>>;
281
+ score: z.ZodOptional<z.ZodNumber>;
282
+ }, z.core.$strip>>;
283
+ }, z.core.$strip>;
284
+ /**
285
+ * Plugin Composition Request
286
+ * Request for AI to compose multiple plugins together
287
+ */
288
+ export declare const PluginCompositionRequestSchema: z.ZodObject<{
289
+ goal: z.ZodString;
290
+ availablePlugins: z.ZodArray<z.ZodObject<{
291
+ pluginId: z.ZodString;
292
+ version: z.ZodString;
293
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
294
+ description: z.ZodOptional<z.ZodString>;
295
+ }, z.core.$strip>>;
296
+ constraints: z.ZodOptional<z.ZodObject<{
297
+ maxPlugins: z.ZodOptional<z.ZodNumber>;
298
+ requiredPlugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
299
+ excludedPlugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
300
+ performance: z.ZodOptional<z.ZodObject<{
301
+ maxLatency: z.ZodOptional<z.ZodNumber>;
302
+ maxMemory: z.ZodOptional<z.ZodNumber>;
303
+ }, z.core.$strip>>;
304
+ }, z.core.$strip>>;
305
+ optimize: z.ZodOptional<z.ZodEnum<{
306
+ performance: "performance";
307
+ security: "security";
308
+ reliability: "reliability";
309
+ simplicity: "simplicity";
310
+ cost: "cost";
311
+ }>>;
312
+ }, z.core.$strip>;
313
+ /**
314
+ * Plugin Composition Result
315
+ * AI-generated plugin composition
316
+ */
317
+ export declare const PluginCompositionResultSchema: z.ZodObject<{
318
+ plugins: z.ZodArray<z.ZodObject<{
319
+ pluginId: z.ZodString;
320
+ version: z.ZodString;
321
+ role: z.ZodString;
322
+ configuration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
323
+ }, z.core.$strip>>;
324
+ integration: z.ZodObject<{
325
+ code: z.ZodString;
326
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
327
+ initOrder: z.ZodArray<z.ZodString>;
328
+ }, z.core.$strip>;
329
+ dataFlow: z.ZodArray<z.ZodObject<{
330
+ from: z.ZodString;
331
+ to: z.ZodString;
332
+ data: z.ZodString;
333
+ }, z.core.$strip>>;
334
+ performance: z.ZodOptional<z.ZodObject<{
335
+ estimatedLatency: z.ZodOptional<z.ZodNumber>;
336
+ estimatedMemory: z.ZodOptional<z.ZodNumber>;
337
+ }, z.core.$strip>>;
338
+ confidence: z.ZodNumber;
339
+ alternatives: z.ZodOptional<z.ZodArray<z.ZodObject<{
340
+ description: z.ZodString;
341
+ plugins: z.ZodArray<z.ZodString>;
342
+ tradeoffs: z.ZodString;
343
+ }, z.core.$strip>>>;
344
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
345
+ }, z.core.$strip>;
346
+ /**
347
+ * Plugin Recommendation Request
348
+ * Request for plugin recommendations
349
+ */
350
+ export declare const PluginRecommendationRequestSchema: z.ZodObject<{
351
+ context: z.ZodObject<{
352
+ installedPlugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
353
+ industry: z.ZodOptional<z.ZodString>;
354
+ useCases: z.ZodOptional<z.ZodArray<z.ZodString>>;
355
+ teamSize: z.ZodOptional<z.ZodNumber>;
356
+ budget: z.ZodOptional<z.ZodEnum<{
357
+ medium: "medium";
358
+ high: "high";
359
+ low: "low";
360
+ free: "free";
361
+ unlimited: "unlimited";
362
+ }>>;
363
+ }, z.core.$strip>;
364
+ criteria: z.ZodOptional<z.ZodObject<{
365
+ prioritize: z.ZodOptional<z.ZodEnum<{
366
+ rating: "rating";
367
+ features: "features";
368
+ compatibility: "compatibility";
369
+ support: "support";
370
+ popularity: "popularity";
371
+ cost: "cost";
372
+ }>>;
373
+ certifiedOnly: z.ZodDefault<z.ZodBoolean>;
374
+ minRating: z.ZodOptional<z.ZodNumber>;
375
+ maxResults: z.ZodDefault<z.ZodNumber>;
376
+ }, z.core.$strip>>;
377
+ }, z.core.$strip>;
378
+ /**
379
+ * Plugin Recommendation
380
+ * AI-generated plugin recommendation
381
+ */
382
+ export declare const PluginRecommendationSchema: z.ZodObject<{
383
+ recommendations: z.ZodArray<z.ZodObject<{
384
+ pluginId: z.ZodString;
385
+ name: z.ZodString;
386
+ description: z.ZodString;
387
+ score: z.ZodNumber;
388
+ reasons: z.ZodArray<z.ZodString>;
389
+ benefits: z.ZodArray<z.ZodString>;
390
+ considerations: z.ZodOptional<z.ZodArray<z.ZodString>>;
391
+ alternatives: z.ZodOptional<z.ZodArray<z.ZodString>>;
392
+ estimatedValue: z.ZodOptional<z.ZodString>;
393
+ }, z.core.$strip>>;
394
+ combinations: z.ZodOptional<z.ZodArray<z.ZodObject<{
395
+ plugins: z.ZodArray<z.ZodString>;
396
+ description: z.ZodString;
397
+ synergies: z.ZodArray<z.ZodString>;
398
+ totalScore: z.ZodNumber;
399
+ }, z.core.$strip>>>;
400
+ learningPath: z.ZodOptional<z.ZodArray<z.ZodObject<{
401
+ step: z.ZodNumber;
402
+ plugin: z.ZodString;
403
+ reason: z.ZodString;
404
+ resources: z.ZodOptional<z.ZodArray<z.ZodString>>;
405
+ }, z.core.$strip>>>;
406
+ }, z.core.$strip>;
407
+ export type CodeGenerationRequest = z.infer<typeof CodeGenerationRequestSchema>;
408
+ export type GeneratedCode = z.infer<typeof GeneratedCodeSchema>;
409
+ export type PluginScaffoldingTemplate = z.infer<typeof PluginScaffoldingTemplateSchema>;
410
+ export type AICodeReviewResult = z.infer<typeof AICodeReviewResultSchema>;
411
+ export type PluginCompositionRequest = z.infer<typeof PluginCompositionRequestSchema>;
412
+ export type PluginCompositionResult = z.infer<typeof PluginCompositionResultSchema>;
413
+ export type PluginRecommendationRequest = z.infer<typeof PluginRecommendationRequestSchema>;
414
+ export type PluginRecommendation = z.infer<typeof PluginRecommendationSchema>;
415
+ //# sourceMappingURL=plugin-development.zod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-development.zod.d.ts","sourceRoot":"","sources":["../../src/ai/plugin-development.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;GASG;AAEH;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2JtC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwF9B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoD1C,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8EnC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;iBAsDzC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkExC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8D5C,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;iBAmCrC,CAAC;AAGH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}