Skip to content

Commit 3b903b2

Browse files
Copilothotlong
andcommitted
fix: resolve TypeScript build errors and test failures
- Remove unused imports (FieldMappingSchema, AIOrchestrationSchema) - Fix OAuth2 authentication examples (remove invalid grantType field) - Remove type annotations from examples to avoid required field issues - Fix DevOps agent tool types to use base AITool types - Add missing optional fields to pipeline stages - Update test to use correct tool types - All 3033 tests passing Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 061fd76 commit 3b903b2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+5875
-18
lines changed

content/docs/references/ai/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ This section contains all protocol schemas for the ai layer of ObjectStack.
1212
<Card href="./agent-action" title="Agent Action" description="Source: packages/spec/src/ai/agent-action.zod.ts" />
1313
<Card href="./conversation" title="Conversation" description="Source: packages/spec/src/ai/conversation.zod.ts" />
1414
<Card href="./cost" title="Cost" description="Source: packages/spec/src/ai/cost.zod.ts" />
15+
<Card href="./devops-agent" title="Devops Agent" description="Source: packages/spec/src/ai/devops-agent.zod.ts" />
1516
<Card href="./model-registry" title="Model Registry" description="Source: packages/spec/src/ai/model-registry.zod.ts" />
1617
<Card href="./nlq" title="Nlq" description="Source: packages/spec/src/ai/nlq.zod.ts" />
1718
<Card href="./orchestration" title="Orchestration" description="Source: packages/spec/src/ai/orchestration.zod.ts" />

content/docs/references/ai/meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"agent-action",
66
"conversation",
77
"cost",
8+
"devops-agent",
89
"model-registry",
910
"nlq",
1011
"orchestration",

content/docs/references/integration/misc.mdx

Lines changed: 326 additions & 2 deletions
Large diffs are not rendered by default.
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
{
2+
"$ref": "#/definitions/CICDPipelineConfig",
3+
"definitions": {
4+
"CICDPipelineConfig": {
5+
"type": "object",
6+
"properties": {
7+
"name": {
8+
"type": "string",
9+
"description": "Pipeline name"
10+
},
11+
"trigger": {
12+
"type": "string",
13+
"enum": [
14+
"push",
15+
"pull_request",
16+
"release",
17+
"schedule",
18+
"manual"
19+
],
20+
"description": "Pipeline trigger"
21+
},
22+
"branches": {
23+
"type": "array",
24+
"items": {
25+
"type": "string"
26+
},
27+
"description": "Branches to run pipeline on"
28+
},
29+
"stages": {
30+
"type": "array",
31+
"items": {
32+
"type": "object",
33+
"properties": {
34+
"name": {
35+
"type": "string",
36+
"description": "Pipeline stage name"
37+
},
38+
"type": {
39+
"type": "string",
40+
"enum": [
41+
"build",
42+
"test",
43+
"lint",
44+
"security_scan",
45+
"deploy",
46+
"smoke_test",
47+
"rollback"
48+
],
49+
"description": "Stage type"
50+
},
51+
"order": {
52+
"type": "integer",
53+
"minimum": 0,
54+
"description": "Execution order"
55+
},
56+
"parallel": {
57+
"type": "boolean",
58+
"default": false,
59+
"description": "Can run in parallel with other stages"
60+
},
61+
"commands": {
62+
"type": "array",
63+
"items": {
64+
"type": "string"
65+
},
66+
"description": "Commands to execute"
67+
},
68+
"env": {
69+
"type": "object",
70+
"additionalProperties": {
71+
"type": "string"
72+
},
73+
"description": "Stage-specific environment variables"
74+
},
75+
"timeout": {
76+
"type": "integer",
77+
"minimum": 60,
78+
"default": 600,
79+
"description": "Stage timeout in seconds"
80+
},
81+
"retryOnFailure": {
82+
"type": "boolean",
83+
"default": false,
84+
"description": "Retry stage on failure"
85+
},
86+
"maxRetries": {
87+
"type": "integer",
88+
"minimum": 0,
89+
"maximum": 5,
90+
"default": 0,
91+
"description": "Maximum retry attempts"
92+
}
93+
},
94+
"required": [
95+
"name",
96+
"type",
97+
"order",
98+
"commands"
99+
],
100+
"additionalProperties": false
101+
},
102+
"description": "Pipeline stages"
103+
},
104+
"notifications": {
105+
"type": "object",
106+
"properties": {
107+
"onSuccess": {
108+
"type": "boolean",
109+
"default": false
110+
},
111+
"onFailure": {
112+
"type": "boolean",
113+
"default": true
114+
},
115+
"channels": {
116+
"type": "array",
117+
"items": {
118+
"type": "string"
119+
},
120+
"description": "Notification channels (e.g., slack, email)"
121+
}
122+
},
123+
"additionalProperties": false,
124+
"description": "Pipeline notifications"
125+
}
126+
},
127+
"required": [
128+
"name",
129+
"trigger",
130+
"stages"
131+
],
132+
"additionalProperties": false
133+
}
134+
},
135+
"$schema": "http://json-schema.org/draft-07/schema#"
136+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"$ref": "#/definitions/CodeGenerationConfig",
3+
"definitions": {
4+
"CodeGenerationConfig": {
5+
"type": "object",
6+
"properties": {
7+
"enabled": {
8+
"type": "boolean",
9+
"default": true,
10+
"description": "Enable code generation"
11+
},
12+
"targets": {
13+
"type": "array",
14+
"items": {
15+
"type": "string",
16+
"enum": [
17+
"frontend",
18+
"backend",
19+
"api",
20+
"database",
21+
"tests",
22+
"documentation",
23+
"infrastructure"
24+
],
25+
"description": "Code generation target"
26+
},
27+
"description": "Code generation targets"
28+
},
29+
"templateRepo": {
30+
"type": "string",
31+
"description": "Template repository for scaffolding"
32+
},
33+
"styleGuide": {
34+
"type": "string",
35+
"description": "Code style guide to follow"
36+
},
37+
"includeTests": {
38+
"type": "boolean",
39+
"default": true,
40+
"description": "Generate tests with code"
41+
},
42+
"includeDocumentation": {
43+
"type": "boolean",
44+
"default": true,
45+
"description": "Generate documentation"
46+
},
47+
"validationMode": {
48+
"type": "string",
49+
"enum": [
50+
"strict",
51+
"moderate",
52+
"permissive"
53+
],
54+
"default": "strict",
55+
"description": "Code validation strictness"
56+
}
57+
},
58+
"required": [
59+
"targets"
60+
],
61+
"additionalProperties": false
62+
}
63+
},
64+
"$schema": "http://json-schema.org/draft-07/schema#"
65+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$ref": "#/definitions/CodeGenerationTarget",
3+
"definitions": {
4+
"CodeGenerationTarget": {
5+
"type": "string",
6+
"enum": [
7+
"frontend",
8+
"backend",
9+
"api",
10+
"database",
11+
"tests",
12+
"documentation",
13+
"infrastructure"
14+
],
15+
"description": "Code generation target"
16+
}
17+
},
18+
"$schema": "http://json-schema.org/draft-07/schema#"
19+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"$ref": "#/definitions/DeploymentStrategy",
3+
"definitions": {
4+
"DeploymentStrategy": {
5+
"type": "object",
6+
"properties": {
7+
"type": {
8+
"type": "string",
9+
"enum": [
10+
"rolling",
11+
"blue_green",
12+
"canary",
13+
"recreate"
14+
],
15+
"default": "rolling",
16+
"description": "Deployment strategy"
17+
},
18+
"canaryPercentage": {
19+
"type": "number",
20+
"minimum": 0,
21+
"maximum": 100,
22+
"default": 10,
23+
"description": "Canary deployment percentage"
24+
},
25+
"healthCheckUrl": {
26+
"type": "string",
27+
"description": "Health check endpoint"
28+
},
29+
"healthCheckTimeout": {
30+
"type": "integer",
31+
"minimum": 10,
32+
"default": 60,
33+
"description": "Health check timeout in seconds"
34+
},
35+
"autoRollback": {
36+
"type": "boolean",
37+
"default": true,
38+
"description": "Automatically rollback on failure"
39+
},
40+
"smokeTests": {
41+
"type": "array",
42+
"items": {
43+
"type": "string"
44+
},
45+
"description": "Smoke test commands to run post-deployment"
46+
}
47+
},
48+
"additionalProperties": false
49+
}
50+
},
51+
"$schema": "http://json-schema.org/draft-07/schema#"
52+
}

0 commit comments

Comments
 (0)