@agent-teams/engineering-foundation 0.4.0 → 0.5.0
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.
- package/README.md +22 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-extractor.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-extractor.js +12 -2
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-extractor.js.map +1 -1
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/cli/report-renderer.d.ts +3 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/cli/report-renderer.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/cli/report-renderer.js +26 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/cli/report-renderer.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/filesystem/filesystem-repository-agent-workflow-reader.d.ts +6 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/filesystem/filesystem-repository-agent-workflow-reader.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/filesystem/filesystem-repository-agent-workflow-reader.js +81 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/filesystem/filesystem-repository-agent-workflow-reader.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/git/git-repository-changes-reader.d.ts +15 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/git/git-repository-changes-reader.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/git/git-repository-changes-reader.js +153 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/git/git-repository-changes-reader.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/pnpm/pnpm-package-script-runner.d.ts +17 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/pnpm/pnpm-package-script-runner.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/pnpm/pnpm-package-script-runner.js +70 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/pnpm/pnpm-package-script-runner.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/process/process-execution.d.ts +10 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/process/process-execution.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/process/process-execution.js +30 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/process/process-execution.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/model/changed-workflow.d.ts +36 -0
- package/dist/capabilities/repository-agent-workflow/application/model/changed-workflow.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/model/changed-workflow.js +2 -0
- package/dist/capabilities/repository-agent-workflow/application/model/changed-workflow.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/model/repository-agent-workflow.d.ts +34 -0
- package/dist/capabilities/repository-agent-workflow/application/model/repository-agent-workflow.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/model/repository-agent-workflow.js +2 -0
- package/dist/capabilities/repository-agent-workflow/application/model/repository-agent-workflow.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/policies/evaluate-repository-agent-workflow.d.ts +4 -0
- package/dist/capabilities/repository-agent-workflow/application/policies/evaluate-repository-agent-workflow.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/policies/evaluate-repository-agent-workflow.js +131 -0
- package/dist/capabilities/repository-agent-workflow/application/policies/evaluate-repository-agent-workflow.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/changed-workflow.d.ts +17 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/changed-workflow.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/changed-workflow.js +2 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/changed-workflow.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/repository-agent-workflow-reader.d.ts +5 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/repository-agent-workflow-reader.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/repository-agent-workflow-reader.js +2 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/repository-agent-workflow-reader.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/rules.d.ts +8 -0
- package/dist/capabilities/repository-agent-workflow/application/rules.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/rules.js +35 -0
- package/dist/capabilities/repository-agent-workflow/application/rules.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/use-cases/analyze-repository-agent-workflow.d.ts +9 -0
- package/dist/capabilities/repository-agent-workflow/application/use-cases/analyze-repository-agent-workflow.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/use-cases/analyze-repository-agent-workflow.js +7 -0
- package/dist/capabilities/repository-agent-workflow/application/use-cases/analyze-repository-agent-workflow.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/use-cases/run-changed-agent-workflow.d.ts +4 -0
- package/dist/capabilities/repository-agent-workflow/application/use-cases/run-changed-agent-workflow.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/use-cases/run-changed-agent-workflow.js +79 -0
- package/dist/capabilities/repository-agent-workflow/application/use-cases/run-changed-agent-workflow.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/changed-command.d.ts +9 -0
- package/dist/capabilities/repository-agent-workflow/changed-command.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/changed-command.js +28 -0
- package/dist/capabilities/repository-agent-workflow/changed-command.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/contract/config.d.ts +5 -0
- package/dist/capabilities/repository-agent-workflow/contract/config.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/contract/config.js +121 -0
- package/dist/capabilities/repository-agent-workflow/contract/config.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/module.d.ts +5 -0
- package/dist/capabilities/repository-agent-workflow/module.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/module.js +49 -0
- package/dist/capabilities/repository-agent-workflow/module.js.map +1 -0
- package/dist/capabilities/repository-security-baseline/application/policies/evaluate-repository-security.d.ts.map +1 -1
- package/dist/capabilities/repository-security-baseline/application/policies/evaluate-repository-security.js +150 -125
- package/dist/capabilities/repository-security-baseline/application/policies/evaluate-repository-security.js.map +1 -1
- package/dist/capabilities/workspace-dependency-declarations/application/policies/evaluate-workspace-dependencies.d.ts.map +1 -1
- package/dist/capabilities/workspace-dependency-declarations/application/policies/evaluate-workspace-dependencies.js +9 -1
- package/dist/capabilities/workspace-dependency-declarations/application/policies/evaluate-workspace-dependencies.js.map +1 -1
- package/dist/cli-arguments.d.ts +12 -0
- package/dist/cli-arguments.d.ts.map +1 -0
- package/dist/cli-arguments.js +114 -0
- package/dist/cli-arguments.js.map +1 -0
- package/dist/cli.js +131 -125
- package/dist/cli.js.map +1 -1
- package/dist/composition/capability-registry.d.ts.map +1 -1
- package/dist/composition/capability-registry.js +2 -0
- package/dist/composition/capability-registry.js.map +1 -1
- package/dist/composition/rule-registry.d.ts.map +1 -1
- package/dist/composition/rule-registry.js +2 -0
- package/dist/composition/rule-registry.js.map +1 -1
- package/dist/foundation-config.d.ts +1 -1
- package/dist/foundation-config.d.ts.map +1 -1
- package/dist/foundation-config.js +2 -0
- package/dist/foundation-config.js.map +1 -1
- package/dist/local-mode/attach-transaction.d.ts +11 -0
- package/dist/local-mode/attach-transaction.d.ts.map +1 -0
- package/dist/local-mode/attach-transaction.js +176 -0
- package/dist/local-mode/attach-transaction.js.map +1 -0
- package/dist/local-mode/consumer-policy.d.ts +2 -3
- package/dist/local-mode/consumer-policy.d.ts.map +1 -1
- package/dist/local-mode/consumer-policy.js +130 -88
- package/dist/local-mode/consumer-policy.js.map +1 -1
- package/dist/local-mode/index.d.ts +1 -0
- package/dist/local-mode/index.d.ts.map +1 -1
- package/dist/local-mode/index.js.map +1 -1
- package/dist/local-mode/inspection.d.ts.map +1 -1
- package/dist/local-mode/inspection.js +126 -118
- package/dist/local-mode/inspection.js.map +1 -1
- package/dist/local-mode/local-state-store.d.ts +6 -0
- package/dist/local-mode/local-state-store.d.ts.map +1 -0
- package/dist/local-mode/local-state-store.js +138 -0
- package/dist/local-mode/local-state-store.js.map +1 -0
- package/dist/local-mode/registry-recovery.d.ts +5 -0
- package/dist/local-mode/registry-recovery.d.ts.map +1 -0
- package/dist/local-mode/registry-recovery.js +112 -0
- package/dist/local-mode/registry-recovery.js.map +1 -0
- package/dist/local-mode/service.d.ts +1 -1
- package/dist/local-mode/service.d.ts.map +1 -1
- package/dist/local-mode/service.js +14 -398
- package/dist/local-mode/service.js.map +1 -1
- package/dist/package-self-check.d.ts +1 -1
- package/dist/package-self-check.d.ts.map +1 -1
- package/dist/package-self-check.js +13 -1
- package/dist/package-self-check.js.map +1 -1
- package/dist/public-api-surface.d.ts +4 -0
- package/dist/public-api-surface.d.ts.map +1 -0
- package/dist/public-api-surface.js +4 -0
- package/dist/public-api-surface.js.map +1 -0
- package/dist/scaffolding/adapters/memory/memory-workspace.d.ts +9 -0
- package/dist/scaffolding/adapters/memory/memory-workspace.d.ts.map +1 -0
- package/dist/scaffolding/adapters/memory/memory-workspace.js +93 -0
- package/dist/scaffolding/adapters/memory/memory-workspace.js.map +1 -0
- package/dist/scaffolding/adapters/node/filesystem-journal.d.ts +6 -0
- package/dist/scaffolding/adapters/node/filesystem-journal.d.ts.map +1 -0
- package/dist/scaffolding/adapters/node/filesystem-journal.js +79 -0
- package/dist/scaffolding/adapters/node/filesystem-journal.js.map +1 -0
- package/dist/scaffolding/adapters/node/filesystem-path-guard.d.ts +7 -0
- package/dist/scaffolding/adapters/node/filesystem-path-guard.d.ts.map +1 -0
- package/dist/scaffolding/adapters/node/filesystem-path-guard.js +144 -0
- package/dist/scaffolding/adapters/node/filesystem-path-guard.js.map +1 -0
- package/dist/scaffolding/adapters/node/filesystem-workspace.d.ts +13 -0
- package/dist/scaffolding/adapters/node/filesystem-workspace.d.ts.map +1 -0
- package/dist/scaffolding/adapters/node/filesystem-workspace.js +336 -0
- package/dist/scaffolding/adapters/node/filesystem-workspace.js.map +1 -0
- package/dist/scaffolding/adapters/node/installed-foundation-version.d.ts +2 -0
- package/dist/scaffolding/adapters/node/installed-foundation-version.d.ts.map +1 -0
- package/dist/scaffolding/adapters/node/installed-foundation-version.js +10 -0
- package/dist/scaffolding/adapters/node/installed-foundation-version.js.map +1 -0
- package/dist/scaffolding/adapters/node/node-input-loader.d.ts +17 -0
- package/dist/scaffolding/adapters/node/node-input-loader.d.ts.map +1 -0
- package/dist/scaffolding/adapters/node/node-input-loader.js +157 -0
- package/dist/scaffolding/adapters/node/node-input-loader.js.map +1 -0
- package/dist/scaffolding/adapters/node/node-plan-authority.d.ts +3 -0
- package/dist/scaffolding/adapters/node/node-plan-authority.d.ts.map +1 -0
- package/dist/scaffolding/adapters/node/node-plan-authority.js +18 -0
- package/dist/scaffolding/adapters/node/node-plan-authority.js.map +1 -0
- package/dist/scaffolding/adapters/node/node-receipt-validator.d.ts +4 -0
- package/dist/scaffolding/adapters/node/node-receipt-validator.d.ts.map +1 -0
- package/dist/scaffolding/adapters/node/node-receipt-validator.js +10 -0
- package/dist/scaffolding/adapters/node/node-receipt-validator.js.map +1 -0
- package/dist/scaffolding/cli-command.d.ts +8 -0
- package/dist/scaffolding/cli-command.d.ts.map +1 -0
- package/dist/scaffolding/cli-command.js +60 -0
- package/dist/scaffolding/cli-command.js.map +1 -0
- package/dist/scaffolding/contract/types.d.ts +296 -0
- package/dist/scaffolding/contract/types.d.ts.map +1 -0
- package/dist/scaffolding/contract/types.js +2 -0
- package/dist/scaffolding/contract/types.js.map +1 -0
- package/dist/scaffolding/definitions/conformance-fixture.d.ts +3 -0
- package/dist/scaffolding/definitions/conformance-fixture.d.ts.map +1 -0
- package/dist/scaffolding/definitions/conformance-fixture.js +217 -0
- package/dist/scaffolding/definitions/conformance-fixture.js.map +1 -0
- package/dist/scaffolding/definitions/registry.d.ts +3 -0
- package/dist/scaffolding/definitions/registry.d.ts.map +1 -0
- package/dist/scaffolding/definitions/registry.js +6 -0
- package/dist/scaffolding/definitions/registry.js.map +1 -0
- package/dist/scaffolding/index.d.ts +11 -0
- package/dist/scaffolding/index.d.ts.map +1 -0
- package/dist/scaffolding/index.js +9 -0
- package/dist/scaffolding/index.js.map +1 -0
- package/dist/scaffolding/kernel/canonical-json.d.ts +6 -0
- package/dist/scaffolding/kernel/canonical-json.d.ts.map +1 -0
- package/dist/scaffolding/kernel/canonical-json.js +55 -0
- package/dist/scaffolding/kernel/canonical-json.js.map +1 -0
- package/dist/scaffolding/kernel/compiler.d.ts +4 -0
- package/dist/scaffolding/kernel/compiler.d.ts.map +1 -0
- package/dist/scaffolding/kernel/compiler.js +297 -0
- package/dist/scaffolding/kernel/compiler.js.map +1 -0
- package/dist/scaffolding/kernel/definition-registry.d.ts +50 -0
- package/dist/scaffolding/kernel/definition-registry.d.ts.map +1 -0
- package/dist/scaffolding/kernel/definition-registry.js +92 -0
- package/dist/scaffolding/kernel/definition-registry.js.map +1 -0
- package/dist/scaffolding/kernel/limits.d.ts +5 -0
- package/dist/scaffolding/kernel/limits.d.ts.map +1 -0
- package/dist/scaffolding/kernel/limits.js +5 -0
- package/dist/scaffolding/kernel/limits.js.map +1 -0
- package/dist/scaffolding/kernel/plan-validation.d.ts +3 -0
- package/dist/scaffolding/kernel/plan-validation.d.ts.map +1 -0
- package/dist/scaffolding/kernel/plan-validation.js +44 -0
- package/dist/scaffolding/kernel/plan-validation.js.map +1 -0
- package/dist/scaffolding/kernel/receipt.d.ts +35 -0
- package/dist/scaffolding/kernel/receipt.d.ts.map +1 -0
- package/dist/scaffolding/kernel/receipt.js +206 -0
- package/dist/scaffolding/kernel/receipt.js.map +1 -0
- package/dist/scaffolding/scaffold-error.d.ts +8 -0
- package/dist/scaffolding/scaffold-error.d.ts.map +1 -0
- package/dist/scaffolding/scaffold-error.js +11 -0
- package/dist/scaffolding/scaffold-error.js.map +1 -0
- package/dist/scaffolding/service.d.ts +8 -0
- package/dist/scaffolding/service.d.ts.map +1 -0
- package/dist/scaffolding/service.js +15 -0
- package/dist/scaffolding/service.js.map +1 -0
- package/dist/schema-ids.d.ts +1 -1
- package/dist/schema-ids.d.ts.map +1 -1
- package/dist/schema-ids.js +6 -0
- package/dist/schema-ids.js.map +1 -1
- package/dist/source-inventory/adapters/outbound/filesystem/filesystem-source-tree-reader.d.ts.map +1 -1
- package/dist/source-inventory/adapters/outbound/filesystem/filesystem-source-tree-reader.js +17 -12
- package/dist/source-inventory/adapters/outbound/filesystem/filesystem-source-tree-reader.js.map +1 -1
- package/package.json +5 -1
- package/presets/oxlint/maintainability-tests.json +23 -0
- package/presets/oxlint/maintainability.json +23 -0
- package/schemas/foundation-config/v1.schema.json +10 -0
- package/schemas/repository-agent-workflow/v1.schema.json +92 -0
- package/schemas/scaffold-intent/v1.schema.json +60 -0
- package/schemas/scaffold-plan/v1.schema.json +250 -0
- package/schemas/scaffold-receipt/v1.schema.json +299 -0
- package/schemas/scaffold-target-catalog/v1.schema.json +52 -0
- package/schemas/scaffolding-config/v1.schema.json +99 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.agent-teams.ai/engineering-foundation/repository-agent-workflow/v1",
|
|
4
|
+
"title": "Portable repository agent workflow policy",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"instructions",
|
|
10
|
+
"scripts",
|
|
11
|
+
"changedChecks",
|
|
12
|
+
"fullScanPaths"
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"schemaVersion": {
|
|
16
|
+
"const": 1
|
|
17
|
+
},
|
|
18
|
+
"instructions": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"required": ["canonical", "claude", "gemini", "copilot"],
|
|
22
|
+
"properties": {
|
|
23
|
+
"canonical": { "$ref": "#/$defs/repositoryPath" },
|
|
24
|
+
"claude": { "$ref": "#/$defs/repositoryPath" },
|
|
25
|
+
"gemini": { "$ref": "#/$defs/repositoryPath" },
|
|
26
|
+
"copilot": { "$ref": "#/$defs/repositoryPath" }
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": ["changed", "fast", "full"],
|
|
33
|
+
"properties": {
|
|
34
|
+
"changed": { "$ref": "#/$defs/scriptName" },
|
|
35
|
+
"fast": { "$ref": "#/$defs/scriptName" },
|
|
36
|
+
"full": { "$ref": "#/$defs/scriptName" }
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"changedChecks": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"minItems": 1,
|
|
42
|
+
"maxItems": 8,
|
|
43
|
+
"items": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"additionalProperties": false,
|
|
46
|
+
"required": ["id", "script", "extensions"],
|
|
47
|
+
"properties": {
|
|
48
|
+
"id": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
51
|
+
},
|
|
52
|
+
"script": { "$ref": "#/$defs/scriptName" },
|
|
53
|
+
"extensions": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"minItems": 1,
|
|
56
|
+
"maxItems": 32,
|
|
57
|
+
"uniqueItems": true,
|
|
58
|
+
"items": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"pattern": "^\\.[A-Za-z0-9][A-Za-z0-9.-]{0,15}$"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"passPaths": {
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"default": true
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"fullScanPaths": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"minItems": 1,
|
|
73
|
+
"maxItems": 64,
|
|
74
|
+
"uniqueItems": true,
|
|
75
|
+
"items": { "$ref": "#/$defs/repositoryPath" }
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"$defs": {
|
|
79
|
+
"repositoryPath": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"minLength": 1,
|
|
82
|
+
"maxLength": 240,
|
|
83
|
+
"pattern": "^(?!/)(?!.*\\\\)(?!.*(?:^|/)\\.\\.(?:/|$))[^\\u0000]+$"
|
|
84
|
+
},
|
|
85
|
+
"scriptName": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"minLength": 1,
|
|
88
|
+
"maxLength": 80,
|
|
89
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]*$"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-teams.ai/schemas/scaffold-intent/v1",
|
|
4
|
+
"title": "Scaffold Intent v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "compositionId", "targetRef"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"compositionId": { "$ref": "#/$defs/id" },
|
|
11
|
+
"targetRef": { "$ref": "#/$defs/id" },
|
|
12
|
+
"recipeParameters": { "$ref": "#/$defs/jsonObject" },
|
|
13
|
+
"facets": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"maxItems": 32,
|
|
16
|
+
"items": { "$ref": "#/$defs/configuredDefinition" }
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"$defs": {
|
|
20
|
+
"id": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"maxLength": 160,
|
|
24
|
+
"pattern": "^[a-z0-9][a-z0-9._/-]*$"
|
|
25
|
+
},
|
|
26
|
+
"definitionRef": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"required": ["id", "contractVersion"],
|
|
30
|
+
"properties": {
|
|
31
|
+
"id": { "$ref": "#/$defs/id" },
|
|
32
|
+
"contractVersion": { "type": "integer", "minimum": 1, "maximum": 2147483647 }
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"configuredDefinition": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"additionalProperties": false,
|
|
38
|
+
"required": ["ref"],
|
|
39
|
+
"properties": {
|
|
40
|
+
"ref": { "$ref": "#/$defs/definitionRef" },
|
|
41
|
+
"parameters": { "$ref": "#/$defs/jsonObject" }
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"jsonObject": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"maxProperties": 128,
|
|
47
|
+
"additionalProperties": { "$ref": "#/$defs/jsonValue" }
|
|
48
|
+
},
|
|
49
|
+
"jsonValue": {
|
|
50
|
+
"oneOf": [
|
|
51
|
+
{ "type": "null" },
|
|
52
|
+
{ "type": "boolean" },
|
|
53
|
+
{ "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 },
|
|
54
|
+
{ "type": "string", "maxLength": 65536 },
|
|
55
|
+
{ "type": "array", "maxItems": 1024, "items": { "$ref": "#/$defs/jsonValue" } },
|
|
56
|
+
{ "$ref": "#/$defs/jsonObject" }
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-teams.ai/schemas/scaffold-plan/v1",
|
|
4
|
+
"title": "Scaffold Plan v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "protocolVersion", "compiler", "projectId", "authority", "intent", "intentDigest", "authoritySnapshotDigest", "composition", "definitions", "resolved", "target", "readSet", "requiredAdapterCapabilities", "operations", "diagnostics", "planDigest"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"protocolVersion": { "const": 1 },
|
|
11
|
+
"compiler": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"additionalProperties": false,
|
|
14
|
+
"required": ["id", "version"],
|
|
15
|
+
"properties": {
|
|
16
|
+
"id": { "const": "@agent-teams/engineering-foundation" },
|
|
17
|
+
"version": { "type": "string", "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[A-Za-z-][0-9A-Za-z-]*))*))?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" }
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"projectId": { "$ref": "#/$defs/authorityId" },
|
|
21
|
+
"authority": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": ["configPath", "targetCatalogPath"],
|
|
25
|
+
"properties": {
|
|
26
|
+
"configPath": { "$ref": "#/$defs/repositoryPath" },
|
|
27
|
+
"targetCatalogPath": { "$ref": "#/$defs/repositoryPath" }
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"intent": { "$ref": "#/$defs/intent" },
|
|
31
|
+
"intentDigest": { "$ref": "#/$defs/digest" },
|
|
32
|
+
"authoritySnapshotDigest": { "$ref": "#/$defs/digest" },
|
|
33
|
+
"composition": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"required": ["id", "scaffoldProfile", "recipe", "facets", "policies"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"id": { "$ref": "#/$defs/authorityId" },
|
|
39
|
+
"scaffoldProfile": { "$ref": "#/$defs/definitionRef" },
|
|
40
|
+
"recipe": { "$ref": "#/$defs/definitionRef" },
|
|
41
|
+
"facets": { "type": "array", "maxItems": 32, "items": { "$ref": "#/$defs/definitionRef" } },
|
|
42
|
+
"policies": { "type": "array", "maxItems": 32, "items": { "$ref": "#/$defs/definitionRef" } }
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"definitions": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"minItems": 1,
|
|
48
|
+
"maxItems": 128,
|
|
49
|
+
"items": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": ["kind", "ref", "contractDigest"],
|
|
53
|
+
"properties": {
|
|
54
|
+
"kind": { "enum": ["facet", "policy", "recipe", "scaffold-profile"] },
|
|
55
|
+
"ref": { "$ref": "#/$defs/definitionRef" },
|
|
56
|
+
"contractDigest": { "$ref": "#/$defs/digest" }
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"resolved": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"additionalProperties": false,
|
|
63
|
+
"required": ["profileParameters", "recipeParameters", "facets", "policies"],
|
|
64
|
+
"properties": {
|
|
65
|
+
"profileParameters": { "$ref": "#/$defs/jsonObject" },
|
|
66
|
+
"recipeParameters": { "$ref": "#/$defs/jsonObject" },
|
|
67
|
+
"facets": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"maxItems": 32,
|
|
70
|
+
"items": { "$ref": "#/$defs/resolvedDefinition" }
|
|
71
|
+
},
|
|
72
|
+
"policies": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"maxItems": 32,
|
|
75
|
+
"items": { "$ref": "#/$defs/policyEvidence" }
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"target": { "$ref": "#/$defs/target" },
|
|
80
|
+
"readSet": { "type": "array", "minItems": 1, "maxItems": 128, "items": { "$ref": "#/$defs/readAssertion" } },
|
|
81
|
+
"requiredAdapterCapabilities": {
|
|
82
|
+
"type": "array",
|
|
83
|
+
"prefixItems": [{ "const": "materialize-file/v1" }],
|
|
84
|
+
"minItems": 1,
|
|
85
|
+
"maxItems": 1
|
|
86
|
+
},
|
|
87
|
+
"operations": { "type": "array", "minItems": 1, "maxItems": 4096, "items": { "$ref": "#/$defs/operation" } },
|
|
88
|
+
"diagnostics": { "type": "array", "maxItems": 1024, "items": { "$ref": "#/$defs/diagnostic" } },
|
|
89
|
+
"planDigest": { "$ref": "#/$defs/digest" }
|
|
90
|
+
},
|
|
91
|
+
"$defs": {
|
|
92
|
+
"authorityId": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"minLength": 1,
|
|
95
|
+
"maxLength": 160,
|
|
96
|
+
"pattern": "^[a-z0-9][a-z0-9._/-]*$"
|
|
97
|
+
},
|
|
98
|
+
"artifactId": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"minLength": 1,
|
|
101
|
+
"maxLength": 214,
|
|
102
|
+
"pattern": "^[A-Za-z0-9@][A-Za-z0-9@._/-]*$"
|
|
103
|
+
},
|
|
104
|
+
"digest": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
|
|
105
|
+
"repositoryPath": { "type": "string", "minLength": 1, "maxLength": 512, "pattern": "^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9._@-]+(?:/[A-Za-z0-9._@-]+)*$" },
|
|
106
|
+
"definitionRef": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"additionalProperties": false,
|
|
109
|
+
"required": ["id", "contractVersion"],
|
|
110
|
+
"properties": {
|
|
111
|
+
"id": { "$ref": "#/$defs/authorityId" },
|
|
112
|
+
"contractVersion": { "type": "integer", "minimum": 1, "maximum": 2147483647 }
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"configuredDefinition": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"required": ["ref"],
|
|
119
|
+
"properties": {
|
|
120
|
+
"ref": { "$ref": "#/$defs/definitionRef" },
|
|
121
|
+
"parameters": { "$ref": "#/$defs/jsonObject" }
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"intent": {
|
|
125
|
+
"type": "object",
|
|
126
|
+
"additionalProperties": false,
|
|
127
|
+
"required": ["schemaVersion", "compositionId", "targetRef"],
|
|
128
|
+
"properties": {
|
|
129
|
+
"schemaVersion": { "const": 1 },
|
|
130
|
+
"compositionId": { "$ref": "#/$defs/authorityId" },
|
|
131
|
+
"targetRef": { "$ref": "#/$defs/authorityId" },
|
|
132
|
+
"recipeParameters": { "$ref": "#/$defs/jsonObject" },
|
|
133
|
+
"facets": {
|
|
134
|
+
"type": "array",
|
|
135
|
+
"maxItems": 32,
|
|
136
|
+
"items": { "$ref": "#/$defs/configuredDefinition" }
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"resolvedDefinition": {
|
|
141
|
+
"type": "object",
|
|
142
|
+
"additionalProperties": false,
|
|
143
|
+
"required": ["ref", "parameters"],
|
|
144
|
+
"properties": {
|
|
145
|
+
"ref": { "$ref": "#/$defs/definitionRef" },
|
|
146
|
+
"parameters": { "$ref": "#/$defs/jsonObject" }
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"policyEvidence": {
|
|
150
|
+
"type": "object",
|
|
151
|
+
"additionalProperties": false,
|
|
152
|
+
"required": ["ref", "parameters", "outcome"],
|
|
153
|
+
"properties": {
|
|
154
|
+
"ref": { "$ref": "#/$defs/definitionRef" },
|
|
155
|
+
"parameters": { "$ref": "#/$defs/jsonObject" },
|
|
156
|
+
"outcome": { "const": "passed" }
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"jsonObject": {
|
|
160
|
+
"type": "object",
|
|
161
|
+
"maxProperties": 128,
|
|
162
|
+
"additionalProperties": { "$ref": "#/$defs/jsonValue" }
|
|
163
|
+
},
|
|
164
|
+
"jsonValue": {
|
|
165
|
+
"oneOf": [
|
|
166
|
+
{ "type": "null" },
|
|
167
|
+
{ "type": "boolean" },
|
|
168
|
+
{ "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 },
|
|
169
|
+
{ "type": "string", "maxLength": 65536 },
|
|
170
|
+
{ "type": "array", "maxItems": 1024, "items": { "$ref": "#/$defs/jsonValue" } },
|
|
171
|
+
{ "$ref": "#/$defs/jsonObject" }
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
"target": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"additionalProperties": false,
|
|
177
|
+
"required": ["id", "role", "path", "packageName"],
|
|
178
|
+
"properties": {
|
|
179
|
+
"id": { "$ref": "#/$defs/authorityId" },
|
|
180
|
+
"role": { "$ref": "#/$defs/authorityId" },
|
|
181
|
+
"path": { "$ref": "#/$defs/repositoryPath" },
|
|
182
|
+
"packageName": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"minLength": 1,
|
|
185
|
+
"maxLength": 214,
|
|
186
|
+
"pattern": "^(?:@[a-z0-9][a-z0-9._-]*/)?[a-z0-9][a-z0-9._-]*$"
|
|
187
|
+
},
|
|
188
|
+
"ownerDocument": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"minLength": 1,
|
|
191
|
+
"maxLength": 512,
|
|
192
|
+
"pattern": "^[^\\u0000-\\u001F]+$"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"readAssertion": {
|
|
197
|
+
"type": "object",
|
|
198
|
+
"additionalProperties": false,
|
|
199
|
+
"required": ["path", "state", "digest", "size"],
|
|
200
|
+
"properties": {
|
|
201
|
+
"path": { "$ref": "#/$defs/repositoryPath" },
|
|
202
|
+
"state": { "const": "file" },
|
|
203
|
+
"digest": { "$ref": "#/$defs/digest" },
|
|
204
|
+
"size": { "type": "integer", "minimum": 0, "maximum": 1048576 }
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"operation": {
|
|
208
|
+
"type": "object",
|
|
209
|
+
"additionalProperties": false,
|
|
210
|
+
"required": ["id", "kind", "path", "precondition", "after", "causes"],
|
|
211
|
+
"properties": {
|
|
212
|
+
"id": { "$ref": "#/$defs/artifactId" },
|
|
213
|
+
"kind": { "const": "materialize-file" },
|
|
214
|
+
"path": { "$ref": "#/$defs/repositoryPath" },
|
|
215
|
+
"precondition": {
|
|
216
|
+
"type": "object",
|
|
217
|
+
"additionalProperties": false,
|
|
218
|
+
"required": ["state"],
|
|
219
|
+
"properties": { "state": { "const": "absent" } }
|
|
220
|
+
},
|
|
221
|
+
"after": {
|
|
222
|
+
"type": "object",
|
|
223
|
+
"additionalProperties": false,
|
|
224
|
+
"required": ["digest", "size", "mode", "mediaType", "contentBase64"],
|
|
225
|
+
"properties": {
|
|
226
|
+
"digest": { "$ref": "#/$defs/digest" },
|
|
227
|
+
"size": { "type": "integer", "minimum": 0, "maximum": 1048576 },
|
|
228
|
+
"mode": { "const": "0644" },
|
|
229
|
+
"mediaType": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
230
|
+
"contentBase64": { "type": "string", "maxLength": 1398104, "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" }
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"causes": { "type": "array", "minItems": 1, "maxItems": 16, "items": { "$ref": "#/$defs/artifactId" } }
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"diagnostic": {
|
|
237
|
+
"type": "object",
|
|
238
|
+
"additionalProperties": false,
|
|
239
|
+
"required": ["ruleId", "severity", "phase", "subject", "message", "remediation"],
|
|
240
|
+
"properties": {
|
|
241
|
+
"ruleId": { "$ref": "#/$defs/artifactId" },
|
|
242
|
+
"severity": { "enum": ["error", "info", "warning"] },
|
|
243
|
+
"phase": { "enum": ["apply", "composition", "input", "planning", "policy", "recovery"] },
|
|
244
|
+
"subject": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
245
|
+
"message": { "type": "string", "minLength": 1, "maxLength": 1000 },
|
|
246
|
+
"remediation": { "type": "string", "minLength": 1, "maxLength": 1000 }
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|