@agent-teams/engineering-foundation 0.11.0 → 0.13.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 +32 -0
- package/dist/cli-arguments.d.ts +5 -0
- package/dist/cli-arguments.d.ts.map +1 -1
- package/dist/cli-arguments.js +78 -15
- package/dist/cli-arguments.js.map +1 -1
- package/dist/cli.js +38 -13
- package/dist/cli.js.map +1 -1
- package/dist/document-authoring/adapters/node/node-authoring-profile-reader.d.ts +9 -0
- package/dist/document-authoring/adapters/node/node-authoring-profile-reader.d.ts.map +1 -0
- package/dist/document-authoring/adapters/node/node-authoring-profile-reader.js +53 -0
- package/dist/document-authoring/adapters/node/node-authoring-profile-reader.js.map +1 -0
- package/dist/document-authoring/adapters/node/node-metadata-instance-validator.d.ts +9 -0
- package/dist/document-authoring/adapters/node/node-metadata-instance-validator.d.ts.map +1 -0
- package/dist/document-authoring/adapters/node/node-metadata-instance-validator.js +84 -0
- package/dist/document-authoring/adapters/node/node-metadata-instance-validator.js.map +1 -0
- package/dist/document-authoring/adapters/node/node-owner-membership-reader.d.ts +10 -0
- package/dist/document-authoring/adapters/node/node-owner-membership-reader.d.ts.map +1 -0
- package/dist/document-authoring/adapters/node/node-owner-membership-reader.js +62 -0
- package/dist/document-authoring/adapters/node/node-owner-membership-reader.js.map +1 -0
- package/dist/document-authoring/adapters/node/read-document-authority-file.d.ts +12 -0
- package/dist/document-authoring/adapters/node/read-document-authority-file.d.ts.map +1 -0
- package/dist/document-authoring/adapters/node/read-document-authority-file.js +88 -0
- package/dist/document-authoring/adapters/node/read-document-authority-file.js.map +1 -0
- package/dist/document-authoring/application/model/document-catalog.d.ts +59 -0
- package/dist/document-authoring/application/model/document-catalog.d.ts.map +1 -0
- package/dist/document-authoring/application/model/document-catalog.js +2 -0
- package/dist/document-authoring/application/model/document-catalog.js.map +1 -0
- package/dist/document-authoring/application/model/document-find.d.ts +18 -0
- package/dist/document-authoring/application/model/document-find.d.ts.map +1 -0
- package/dist/document-authoring/application/model/document-find.js +2 -0
- package/dist/document-authoring/application/model/document-find.js.map +1 -0
- package/dist/document-authoring/application/policies/document-catalog-diagnostics.d.ts +8 -0
- package/dist/document-authoring/application/policies/document-catalog-diagnostics.d.ts.map +1 -0
- package/dist/document-authoring/application/policies/document-catalog-diagnostics.js +44 -0
- package/dist/document-authoring/application/policies/document-catalog-diagnostics.js.map +1 -0
- package/dist/document-authoring/application/policies/document-catalog-fields.d.ts +18 -0
- package/dist/document-authoring/application/policies/document-catalog-fields.d.ts.map +1 -0
- package/dist/document-authoring/application/policies/document-catalog-fields.js +62 -0
- package/dist/document-authoring/application/policies/document-catalog-fields.js.map +1 -0
- package/dist/document-authoring/application/policies/document-repository-path.d.ts +2 -0
- package/dist/document-authoring/application/policies/document-repository-path.d.ts.map +1 -0
- package/dist/document-authoring/application/policies/document-repository-path.js +5 -0
- package/dist/document-authoring/application/policies/document-repository-path.js.map +1 -0
- package/dist/document-authoring/application/policies/inspect-catalog-document.d.ts +11 -0
- package/dist/document-authoring/application/policies/inspect-catalog-document.d.ts.map +1 -0
- package/dist/document-authoring/application/policies/inspect-catalog-document.js +78 -0
- package/dist/document-authoring/application/policies/inspect-catalog-document.js.map +1 -0
- package/dist/document-authoring/application/ports/authoring-profile-reader.d.ts +27 -0
- package/dist/document-authoring/application/ports/authoring-profile-reader.d.ts.map +1 -0
- package/dist/document-authoring/application/ports/authoring-profile-reader.js +2 -0
- package/dist/document-authoring/application/ports/authoring-profile-reader.js.map +1 -0
- package/dist/document-authoring/application/ports/documentation-search-catalog-reader.d.ts +10 -0
- package/dist/document-authoring/application/ports/documentation-search-catalog-reader.d.ts.map +1 -0
- package/dist/document-authoring/application/ports/documentation-search-catalog-reader.js +2 -0
- package/dist/document-authoring/application/ports/documentation-search-catalog-reader.js.map +1 -0
- package/dist/document-authoring/application/ports/metadata-instance-validator.d.ts +17 -0
- package/dist/document-authoring/application/ports/metadata-instance-validator.d.ts.map +1 -0
- package/dist/document-authoring/application/ports/metadata-instance-validator.js +2 -0
- package/dist/document-authoring/application/ports/metadata-instance-validator.js.map +1 -0
- package/dist/document-authoring/application/ports/owner-membership-reader.d.ts +14 -0
- package/dist/document-authoring/application/ports/owner-membership-reader.d.ts.map +1 -0
- package/dist/document-authoring/application/ports/owner-membership-reader.js +2 -0
- package/dist/document-authoring/application/ports/owner-membership-reader.js.map +1 -0
- package/dist/document-authoring/application/projections/document-catalog-projections.d.ts +3 -0
- package/dist/document-authoring/application/projections/document-catalog-projections.d.ts.map +1 -0
- package/dist/document-authoring/application/projections/document-catalog-projections.js +24 -0
- package/dist/document-authoring/application/projections/document-catalog-projections.js.map +1 -0
- package/dist/document-authoring/application/use-cases/build-documentation-catalog.d.ts +23 -0
- package/dist/document-authoring/application/use-cases/build-documentation-catalog.d.ts.map +1 -0
- package/dist/document-authoring/application/use-cases/build-documentation-catalog.js +204 -0
- package/dist/document-authoring/application/use-cases/build-documentation-catalog.js.map +1 -0
- package/dist/document-authoring/application/use-cases/find-documents.d.ts +14 -0
- package/dist/document-authoring/application/use-cases/find-documents.d.ts.map +1 -0
- package/dist/document-authoring/application/use-cases/find-documents.js +95 -0
- package/dist/document-authoring/application/use-cases/find-documents.js.map +1 -0
- package/dist/document-authoring/document-catalog-error.d.ts +6 -0
- package/dist/document-authoring/document-catalog-error.d.ts.map +1 -0
- package/dist/document-authoring/document-catalog-error.js +9 -0
- package/dist/document-authoring/document-catalog-error.js.map +1 -0
- package/dist/document-authoring/find-command.d.ts +37 -0
- package/dist/document-authoring/find-command.d.ts.map +1 -0
- package/dist/document-authoring/find-command.js +180 -0
- package/dist/document-authoring/find-command.js.map +1 -0
- package/dist/document-authoring/index.d.ts +12 -0
- package/dist/document-authoring/index.d.ts.map +1 -0
- package/dist/document-authoring/index.js +27 -0
- package/dist/document-authoring/index.js.map +1 -0
- package/dist/document-command.d.ts +3 -0
- package/dist/document-command.d.ts.map +1 -0
- package/dist/document-command.js +44 -0
- package/dist/document-command.js.map +1 -0
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-document-reader.d.ts +3 -0
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-document-reader.d.ts.map +1 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-document-reader.js +18 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-document-reader.js.map +1 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-tree-observer.d.ts.map +1 -1
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-tree-observer.js +29 -2
- package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-tree-observer.js.map +1 -1
- package/dist/documentation-observation/application/model/markdown-document.d.ts +1 -1
- package/dist/documentation-observation/application/model/markdown-document.d.ts.map +1 -1
- package/dist/documentation-observation/application/model/markdown-document.js.map +1 -1
- package/dist/documentation-observation/application/ports/markdown-repository.d.ts +1 -0
- package/dist/documentation-observation/application/ports/markdown-repository.d.ts.map +1 -1
- package/dist/foundation-state-contract.d.ts +7 -0
- package/dist/foundation-state-contract.d.ts.map +1 -0
- package/dist/foundation-state-contract.js +7 -0
- package/dist/foundation-state-contract.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/local-mode/attach-transaction.d.ts.map +1 -1
- package/dist/local-mode/attach-transaction.js +13 -7
- package/dist/local-mode/attach-transaction.js.map +1 -1
- package/dist/local-mode/inspection.d.ts +4 -1
- package/dist/local-mode/inspection.d.ts.map +1 -1
- package/dist/local-mode/inspection.js +20 -0
- package/dist/local-mode/inspection.js.map +1 -1
- package/dist/local-mode/local-state-store.d.ts.map +1 -1
- package/dist/local-mode/local-state-store.js +8 -105
- package/dist/local-mode/local-state-store.js.map +1 -1
- package/dist/local-mode/service.d.ts.map +1 -1
- package/dist/local-mode/service.js +17 -4
- package/dist/local-mode/service.js.map +1 -1
- package/dist/local-mode/types.d.ts +7 -4
- package/dist/local-mode/types.d.ts.map +1 -1
- package/dist/local-mode/types.js +1 -4
- package/dist/local-mode/types.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 +37 -23
- package/dist/package-self-check.js.map +1 -1
- package/dist/package-version.d.ts +2 -0
- package/dist/package-version.d.ts.map +1 -0
- package/dist/package-version.js +10 -0
- package/dist/package-version.js.map +1 -0
- package/dist/process-execution/windows-managed-process.d.ts.map +1 -1
- package/dist/process-execution/windows-managed-process.js +1 -0
- package/dist/process-execution/windows-managed-process.js.map +1 -1
- package/dist/public-api-surface.d.ts +1 -0
- package/dist/public-api-surface.d.ts.map +1 -1
- package/dist/public-api-surface.js +1 -0
- package/dist/public-api-surface.js.map +1 -1
- package/dist/scaffolding/adapters/node/filesystem-authority-workspace.d.ts.map +1 -1
- package/dist/scaffolding/adapters/node/filesystem-authority-workspace.js +52 -8
- package/dist/scaffolding/adapters/node/filesystem-authority-workspace.js.map +1 -1
- package/dist/scaffolding/adapters/node/filesystem-file-identity.d.ts +5 -1
- package/dist/scaffolding/adapters/node/filesystem-file-identity.d.ts.map +1 -1
- package/dist/scaffolding/adapters/node/filesystem-file-identity.js +2 -1
- package/dist/scaffolding/adapters/node/filesystem-file-identity.js.map +1 -1
- package/dist/scaffolding/adapters/node/filesystem-journal.d.ts +1 -1
- package/dist/scaffolding/adapters/node/filesystem-journal.d.ts.map +1 -1
- package/dist/scaffolding/adapters/node/filesystem-journal.js +4 -20
- package/dist/scaffolding/adapters/node/filesystem-journal.js.map +1 -1
- package/dist/scaffolding/adapters/node/installed-foundation-version.d.ts +1 -1
- package/dist/scaffolding/adapters/node/installed-foundation-version.d.ts.map +1 -1
- package/dist/scaffolding/adapters/node/installed-foundation-version.js +1 -9
- package/dist/scaffolding/adapters/node/installed-foundation-version.js.map +1 -1
- package/dist/scaffolding/kernel/authority-journal-validation.d.ts +4 -0
- package/dist/scaffolding/kernel/authority-journal-validation.d.ts.map +1 -0
- package/dist/scaffolding/kernel/authority-journal-validation.js +24 -0
- package/dist/scaffolding/kernel/authority-journal-validation.js.map +1 -0
- package/dist/schema-catalog.d.ts.map +1 -1
- package/dist/schema-catalog.js +12 -2
- package/dist/schema-catalog.js.map +1 -1
- 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/transaction-coordination/adapters/node/installed-foundation-build-identity.d.ts +11 -0
- package/dist/transaction-coordination/adapters/node/installed-foundation-build-identity.d.ts.map +1 -0
- package/dist/transaction-coordination/adapters/node/installed-foundation-build-identity.js +130 -0
- package/dist/transaction-coordination/adapters/node/installed-foundation-build-identity.js.map +1 -0
- package/dist/transaction-coordination/adapters/node/node-foundation-operation-lock.d.ts +7 -0
- package/dist/transaction-coordination/adapters/node/node-foundation-operation-lock.d.ts.map +1 -0
- package/dist/transaction-coordination/adapters/node/node-foundation-operation-lock.js +336 -0
- package/dist/transaction-coordination/adapters/node/node-foundation-operation-lock.js.map +1 -0
- package/dist/transaction-coordination/adapters/node/node-foundation-state-directory.d.ts +4 -0
- package/dist/transaction-coordination/adapters/node/node-foundation-state-directory.d.ts.map +1 -0
- package/dist/transaction-coordination/adapters/node/node-foundation-state-directory.js +76 -0
- package/dist/transaction-coordination/adapters/node/node-foundation-state-directory.js.map +1 -0
- package/dist/transaction-coordination/adapters/node/node-foundation-transaction-coordinator.d.ts +3 -0
- package/dist/transaction-coordination/adapters/node/node-foundation-transaction-coordinator.d.ts.map +1 -0
- package/dist/transaction-coordination/adapters/node/node-foundation-transaction-coordinator.js +23 -0
- package/dist/transaction-coordination/adapters/node/node-foundation-transaction-coordinator.js.map +1 -0
- package/dist/transaction-coordination/adapters/node/node-foundation-transaction-slot.d.ts +12 -0
- package/dist/transaction-coordination/adapters/node/node-foundation-transaction-slot.d.ts.map +1 -0
- package/dist/transaction-coordination/adapters/node/node-foundation-transaction-slot.js +332 -0
- package/dist/transaction-coordination/adapters/node/node-foundation-transaction-slot.js.map +1 -0
- package/dist/transaction-coordination/application/foundation-transaction-coordinator.d.ts +22 -0
- package/dist/transaction-coordination/application/foundation-transaction-coordinator.d.ts.map +1 -0
- package/dist/transaction-coordination/application/foundation-transaction-coordinator.js +78 -0
- package/dist/transaction-coordination/application/foundation-transaction-coordinator.js.map +1 -0
- package/dist/transaction-coordination/application/foundation-transaction-error.d.ts +16 -0
- package/dist/transaction-coordination/application/foundation-transaction-error.d.ts.map +1 -0
- package/dist/transaction-coordination/application/foundation-transaction-error.js +19 -0
- package/dist/transaction-coordination/application/foundation-transaction-error.js.map +1 -0
- package/dist/transaction-coordination/application/model/transaction-status.d.ts +47 -0
- package/dist/transaction-coordination/application/model/transaction-status.d.ts.map +1 -0
- package/dist/transaction-coordination/application/model/transaction-status.js +2 -0
- package/dist/transaction-coordination/application/model/transaction-status.js.map +1 -0
- package/dist/transaction-coordination/application/ports/foundation-operation-lock.d.ts +7 -0
- package/dist/transaction-coordination/application/ports/foundation-operation-lock.d.ts.map +1 -0
- package/dist/transaction-coordination/application/ports/foundation-operation-lock.js +2 -0
- package/dist/transaction-coordination/application/ports/foundation-operation-lock.js.map +1 -0
- package/dist/transaction-coordination/application/ports/foundation-transaction-slot.d.ts +5 -0
- package/dist/transaction-coordination/application/ports/foundation-transaction-slot.d.ts.map +1 -0
- package/dist/transaction-coordination/application/ports/foundation-transaction-slot.js +2 -0
- package/dist/transaction-coordination/application/ports/foundation-transaction-slot.js.map +1 -0
- package/package.json +11 -1
- package/schemas/document-authoring-profile/v1.schema.json +186 -0
- package/schemas/document-command-envelope/v1.schema.json +161 -0
- package/schemas/document-intent/v1.schema.json +60 -0
- package/schemas/document-plan/v1.schema.json +146 -0
- package/schemas/document-receipt/v1.schema.json +141 -0
- package/schemas/foundation-transaction-envelope/v2.schema.json +106 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"foundation-operation-lock.js","sourceRoot":"","sources":["../../../../src/transaction-coordination/application/ports/foundation-operation-lock.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"foundation-transaction-slot.d.ts","sourceRoot":"","sources":["../../../../src/transaction-coordination/application/ports/foundation-transaction-slot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAElF,MAAM,WAAW,yBAAyB;IACxC,OAAO,IAAI,OAAO,CAAC,2BAA2B,CAAC,CAAC;CACjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"foundation-transaction-slot.js","sourceRoot":"","sources":["../../../../src/transaction-coordination/application/ports/foundation-transaction-slot.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-teams/engineering-foundation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Versioned engineering policy, tooling, and conformance for Agent Teams repositories.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
14
14
|
"import": "./dist/index.js"
|
|
15
15
|
},
|
|
16
|
+
"./document-authoring": {
|
|
17
|
+
"types": "./dist/document-authoring/index.d.ts",
|
|
18
|
+
"import": "./dist/document-authoring/index.js"
|
|
19
|
+
},
|
|
16
20
|
"./local-mode": {
|
|
17
21
|
"types": "./dist/local-mode/index.d.ts",
|
|
18
22
|
"import": "./dist/local-mode/index.js"
|
|
@@ -34,9 +38,15 @@
|
|
|
34
38
|
"schemas/contract-protobuf-breaking-qualification/v1.schema.json",
|
|
35
39
|
"schemas/contract-protobuf-evolution-baseline/v1.schema.json",
|
|
36
40
|
"schemas/contract-protobuf-evolution/v1.schema.json",
|
|
41
|
+
"schemas/document-authoring-profile/v1.schema.json",
|
|
42
|
+
"schemas/document-command-envelope/v1.schema.json",
|
|
43
|
+
"schemas/document-intent/v1.schema.json",
|
|
44
|
+
"schemas/document-plan/v1.schema.json",
|
|
45
|
+
"schemas/document-receipt/v1.schema.json",
|
|
37
46
|
"schemas/documentation-local-references/v1.schema.json",
|
|
38
47
|
"schemas/foundation-check-report/v1.schema.json",
|
|
39
48
|
"schemas/foundation-config/v1.schema.json",
|
|
49
|
+
"schemas/foundation-transaction-envelope/v2.schema.json",
|
|
40
50
|
"schemas/governance-architecture-decision-baseline/v1.schema.json",
|
|
41
51
|
"schemas/governance-architecture-decisions/v1.schema.json",
|
|
42
52
|
"schemas/package-public-api-baseline/v1.schema.json",
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-teams.ai/schemas/document-authoring-profile/v1",
|
|
4
|
+
"title": "Document Authoring Profile",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "projectId", "catalog", "authoring"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"projectId": { "$ref": "#/$defs/lowerId" },
|
|
11
|
+
"catalog": { "$ref": "#/$defs/catalog" },
|
|
12
|
+
"authoring": { "$ref": "#/$defs/authoring" }
|
|
13
|
+
},
|
|
14
|
+
"$defs": {
|
|
15
|
+
"lowerId": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"minLength": 1,
|
|
18
|
+
"maxLength": 160,
|
|
19
|
+
"pattern": "^[a-z0-9][a-z0-9._/-]*$"
|
|
20
|
+
},
|
|
21
|
+
"repositoryPath": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1,
|
|
24
|
+
"maxLength": 512,
|
|
25
|
+
"pattern": "^(?!.*(?:^|/)\\.{1,2}(?:/|$))(?!.*\\.(?:/|$))(?!.*(?:^|/)(?:[Cc][Oo][Nn]|[Pp][Rr][Nn]|[Aa][Uu][Xx]|[Nn][Uu][Ll]|[Cc][Oo][Mm][1-9]|[Ll][Pp][Tt][1-9])(?:\\.[A-Za-z0-9._@-]*)?(?:/|$))[A-Za-z0-9._@-]+(?:/[A-Za-z0-9._@-]+)*$"
|
|
26
|
+
},
|
|
27
|
+
"catalog": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"additionalProperties": false,
|
|
30
|
+
"required": ["metadataSchemaPath", "ownerCatalog", "collections"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"metadataSchemaPath": { "$ref": "#/$defs/repositoryPath" },
|
|
33
|
+
"ownerCatalog": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"required": ["path", "contract"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"path": { "$ref": "#/$defs/repositoryPath" },
|
|
39
|
+
"contract": { "const": "foundation.owner-map/v1" }
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"collections": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"minItems": 1,
|
|
45
|
+
"maxItems": 32,
|
|
46
|
+
"items": {
|
|
47
|
+
"oneOf": [
|
|
48
|
+
{ "$ref": "#/$defs/markdownTreeCollection" },
|
|
49
|
+
{ "$ref": "#/$defs/frontmatterReadmeCollection" }
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"excludedPrefixes": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"maxItems": 128,
|
|
56
|
+
"uniqueItems": true,
|
|
57
|
+
"items": { "$ref": "#/$defs/repositoryPath" }
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"markdownTreeCollection": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"additionalProperties": false,
|
|
64
|
+
"required": ["kind", "root"],
|
|
65
|
+
"properties": {
|
|
66
|
+
"kind": { "const": "markdown-tree" },
|
|
67
|
+
"root": { "$ref": "#/$defs/repositoryPath" }
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"frontmatterReadmeCollection": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"additionalProperties": false,
|
|
73
|
+
"required": ["kind", "roots"],
|
|
74
|
+
"properties": {
|
|
75
|
+
"kind": { "const": "frontmatter-readme" },
|
|
76
|
+
"roots": {
|
|
77
|
+
"type": "array",
|
|
78
|
+
"minItems": 1,
|
|
79
|
+
"maxItems": 32,
|
|
80
|
+
"uniqueItems": true,
|
|
81
|
+
"items": { "$ref": "#/$defs/repositoryPath" }
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"authoring": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"additionalProperties": false,
|
|
88
|
+
"required": ["mode", "artifactTypes"],
|
|
89
|
+
"properties": {
|
|
90
|
+
"mode": { "const": "create-only" },
|
|
91
|
+
"artifactTypes": {
|
|
92
|
+
"type": "array",
|
|
93
|
+
"minItems": 1,
|
|
94
|
+
"maxItems": 32,
|
|
95
|
+
"uniqueItems": true,
|
|
96
|
+
"items": { "$ref": "#/$defs/artifactType" }
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"artifactType": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"additionalProperties": false,
|
|
103
|
+
"required": ["type", "initialStatus", "identity", "placement", "template", "heading"],
|
|
104
|
+
"properties": {
|
|
105
|
+
"type": { "$ref": "#/$defs/lowerId" },
|
|
106
|
+
"initialStatus": { "$ref": "#/$defs/lowerId" },
|
|
107
|
+
"identity": {
|
|
108
|
+
"type": "object",
|
|
109
|
+
"additionalProperties": false,
|
|
110
|
+
"required": ["kind", "format"],
|
|
111
|
+
"properties": {
|
|
112
|
+
"kind": { "const": "explicit" },
|
|
113
|
+
"format": { "enum": ["adr-four-digits", "open-decision-three-digits", "qualified"] }
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"placement": {
|
|
117
|
+
"oneOf": [
|
|
118
|
+
{ "$ref": "#/$defs/collectionPlacement" },
|
|
119
|
+
{ "$ref": "#/$defs/qualifiedLeafIndexPlacement" },
|
|
120
|
+
{ "$ref": "#/$defs/explicitPlacement" }
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"template": {
|
|
124
|
+
"type": "object",
|
|
125
|
+
"additionalProperties": false,
|
|
126
|
+
"required": ["kind", "path"],
|
|
127
|
+
"properties": {
|
|
128
|
+
"kind": { "const": "fenced-markdown-body" },
|
|
129
|
+
"path": { "$ref": "#/$defs/repositoryPath" }
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"heading": {
|
|
133
|
+
"type": "object",
|
|
134
|
+
"additionalProperties": false,
|
|
135
|
+
"required": ["kind"],
|
|
136
|
+
"properties": { "kind": { "enum": ["id-colon-title", "title"] } }
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"collectionPlacement": {
|
|
141
|
+
"type": "object",
|
|
142
|
+
"additionalProperties": false,
|
|
143
|
+
"required": ["kind", "directory", "filename"],
|
|
144
|
+
"properties": {
|
|
145
|
+
"kind": { "const": "collection" },
|
|
146
|
+
"directory": { "$ref": "#/$defs/repositoryPath" },
|
|
147
|
+
"filename": { "enum": ["numeric-id-slug", "id-slug", "slug", "README.md"] }
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"qualifiedLeafIndexPlacement": {
|
|
151
|
+
"type": "object",
|
|
152
|
+
"additionalProperties": false,
|
|
153
|
+
"required": ["kind", "allowedRoots", "requiredSegmentsInOrder", "requiredBasename"],
|
|
154
|
+
"properties": {
|
|
155
|
+
"kind": { "const": "qualified-leaf-index" },
|
|
156
|
+
"allowedRoots": { "$ref": "#/$defs/pathList" },
|
|
157
|
+
"requiredSegmentsInOrder": { "$ref": "#/$defs/pathSegmentList" },
|
|
158
|
+
"requiredBasename": { "const": "README.md" }
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"explicitPlacement": {
|
|
162
|
+
"type": "object",
|
|
163
|
+
"additionalProperties": false,
|
|
164
|
+
"required": ["kind", "allowedRoots", "requiredSegmentsInOrder", "requiredBasename"],
|
|
165
|
+
"properties": {
|
|
166
|
+
"kind": { "const": "explicit" },
|
|
167
|
+
"allowedRoots": { "$ref": "#/$defs/pathList" },
|
|
168
|
+
"requiredSegmentsInOrder": { "$ref": "#/$defs/pathSegmentList" },
|
|
169
|
+
"requiredBasename": { "enum": ["README.md"] }
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"pathList": {
|
|
173
|
+
"type": "array",
|
|
174
|
+
"minItems": 1,
|
|
175
|
+
"maxItems": 32,
|
|
176
|
+
"uniqueItems": true,
|
|
177
|
+
"items": { "$ref": "#/$defs/repositoryPath" }
|
|
178
|
+
},
|
|
179
|
+
"pathSegmentList": {
|
|
180
|
+
"type": "array",
|
|
181
|
+
"minItems": 1,
|
|
182
|
+
"maxItems": 16,
|
|
183
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 80, "pattern": "^[A-Za-z0-9._@-]+$" }
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-teams.ai/schemas/document-command-envelope/v1",
|
|
4
|
+
"title": "Document Command Envelope",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "command", "outcome", "diagnostics", "result"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"command": { "enum": ["docs.doctor", "docs.find", "docs.new", "docs.recover"] },
|
|
11
|
+
"outcome": { "enum": ["success", "partial", "conflict", "violation", "authority-stale", "recovery-required", "invalid-input", "execution-failure", "cancelled"] },
|
|
12
|
+
"diagnostics": { "type": "array", "maxItems": 256, "items": { "$ref": "#/$defs/diagnostic" } },
|
|
13
|
+
"result": {
|
|
14
|
+
"oneOf": [
|
|
15
|
+
{ "$ref": "#/$defs/findResult" },
|
|
16
|
+
{ "$ref": "#/$defs/newResult" },
|
|
17
|
+
{ "$ref": "#/$defs/doctorResult" },
|
|
18
|
+
{ "$ref": "#/$defs/recoverResult" }
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"allOf": [
|
|
23
|
+
{ "$ref": "#/$defs/findEnvelope" },
|
|
24
|
+
{ "$ref": "#/$defs/newEnvelope" },
|
|
25
|
+
{ "$ref": "#/$defs/doctorEnvelope" },
|
|
26
|
+
{ "$ref": "#/$defs/recoverEnvelope" }
|
|
27
|
+
],
|
|
28
|
+
"$defs": {
|
|
29
|
+
"opaqueId": { "type": "string", "minLength": 1, "maxLength": 214, "pattern": "^[A-Za-z0-9@][A-Za-z0-9@._/-]*$" },
|
|
30
|
+
"lowerId": { "type": "string", "minLength": 1, "maxLength": 160, "pattern": "^[a-z0-9][a-z0-9._/-]*$" },
|
|
31
|
+
"digest": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
|
|
32
|
+
"semver": { "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-]+)*)?$" },
|
|
33
|
+
"repositoryPath": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"minLength": 1,
|
|
36
|
+
"maxLength": 512,
|
|
37
|
+
"pattern": "^(?!.*(?:^|/)\\.{1,2}(?:/|$))(?!.*\\.(?:/|$))(?!.*(?:^|/)(?:[Cc][Oo][Nn]|[Pp][Rr][Nn]|[Aa][Uu][Xx]|[Nn][Uu][Ll]|[Cc][Oo][Mm][1-9]|[Ll][Pp][Tt][1-9])(?:\\.[A-Za-z0-9._@-]*)?(?:/|$))[A-Za-z0-9._@-]+(?:/[A-Za-z0-9._@-]+)*$"
|
|
38
|
+
},
|
|
39
|
+
"documentDescriptor": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"required": ["id", "type", "status", "owner", "summary", "repositoryPath", "title", "source"],
|
|
43
|
+
"properties": {
|
|
44
|
+
"id": { "$ref": "#/$defs/opaqueId" },
|
|
45
|
+
"type": { "$ref": "#/$defs/lowerId" },
|
|
46
|
+
"status": { "$ref": "#/$defs/lowerId" },
|
|
47
|
+
"owner": { "$ref": "#/$defs/opaqueId" },
|
|
48
|
+
"summary": { "type": "string", "minLength": 1, "maxLength": 1000 },
|
|
49
|
+
"repositoryPath": { "$ref": "#/$defs/repositoryPath" },
|
|
50
|
+
"title": { "type": "string", "minLength": 1, "maxLength": 240 },
|
|
51
|
+
"source": { "enum": ["frontmatter-readme", "markdown-tree"] }
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"findResult": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"additionalProperties": false,
|
|
57
|
+
"required": ["kind", "matches", "documents"],
|
|
58
|
+
"properties": {
|
|
59
|
+
"kind": { "const": "find" },
|
|
60
|
+
"matches": { "type": "integer", "minimum": 0, "maximum": 100000 },
|
|
61
|
+
"documents": { "type": "array", "maxItems": 2048, "items": { "$ref": "#/$defs/documentDescriptor" } }
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"newResult": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"additionalProperties": false,
|
|
67
|
+
"required": ["kind", "documentPath", "reachability"],
|
|
68
|
+
"properties": {
|
|
69
|
+
"kind": { "const": "new" },
|
|
70
|
+
"documentPath": { "$ref": "#/$defs/repositoryPath" },
|
|
71
|
+
"reachability": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"additionalProperties": false,
|
|
74
|
+
"required": ["state"],
|
|
75
|
+
"properties": {
|
|
76
|
+
"state": { "enum": ["manual-required", "managed", "not-required"] },
|
|
77
|
+
"indexPath": { "$ref": "#/$defs/repositoryPath" },
|
|
78
|
+
"markdownLink": { "type": "string", "minLength": 1, "maxLength": 1024 }
|
|
79
|
+
},
|
|
80
|
+
"allOf": [
|
|
81
|
+
{
|
|
82
|
+
"if": { "type": "object", "properties": { "state": { "const": "manual-required" } }, "required": ["state"] },
|
|
83
|
+
"then": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"required": ["indexPath", "markdownLink"],
|
|
86
|
+
"properties": {
|
|
87
|
+
"indexPath": { "$ref": "#/$defs/repositoryPath" },
|
|
88
|
+
"markdownLink": { "type": "string", "minLength": 1, "maxLength": 1024 }
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"doctorResult": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"required": ["kind", "transactionState", "recoveryClass"],
|
|
100
|
+
"properties": {
|
|
101
|
+
"kind": { "const": "doctor" },
|
|
102
|
+
"transactionState": { "enum": ["none", "pending", "tampered", "unknown-version"] },
|
|
103
|
+
"protocolKind": { "enum": ["document-authoring", "scaffolding"] },
|
|
104
|
+
"foundationVersion": { "$ref": "#/$defs/semver" },
|
|
105
|
+
"recoveryClass": { "enum": ["auto-recoverable", "manual", "not-required"] }
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"recoverResult": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"additionalProperties": false,
|
|
111
|
+
"required": ["kind", "transactionState"],
|
|
112
|
+
"properties": {
|
|
113
|
+
"kind": { "const": "recover" },
|
|
114
|
+
"transactionState": { "enum": ["already-applied", "manual-required", "no-pending-transaction", "recovered"] },
|
|
115
|
+
"receiptDigest": { "$ref": "#/$defs/digest" }
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"findEnvelope": {
|
|
119
|
+
"if": { "type": "object", "properties": { "command": { "const": "docs.find" } }, "required": ["command"] },
|
|
120
|
+
"then": { "type": "object", "properties": { "result": { "$ref": "#/$defs/findResult" } } }
|
|
121
|
+
},
|
|
122
|
+
"newEnvelope": {
|
|
123
|
+
"if": { "type": "object", "properties": { "command": { "const": "docs.new" } }, "required": ["command"] },
|
|
124
|
+
"then": { "type": "object", "properties": { "result": { "$ref": "#/$defs/newResult" } } }
|
|
125
|
+
},
|
|
126
|
+
"doctorEnvelope": {
|
|
127
|
+
"if": { "type": "object", "properties": { "command": { "const": "docs.doctor" } }, "required": ["command"] },
|
|
128
|
+
"then": { "type": "object", "properties": { "result": { "$ref": "#/$defs/doctorResult" } } }
|
|
129
|
+
},
|
|
130
|
+
"recoverEnvelope": {
|
|
131
|
+
"if": { "type": "object", "properties": { "command": { "const": "docs.recover" } }, "required": ["command"] },
|
|
132
|
+
"then": { "type": "object", "properties": { "result": { "$ref": "#/$defs/recoverResult" } } }
|
|
133
|
+
},
|
|
134
|
+
"diagnostic": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"additionalProperties": false,
|
|
137
|
+
"required": ["ruleId", "severity", "phase", "subject", "message"],
|
|
138
|
+
"properties": {
|
|
139
|
+
"ruleId": { "$ref": "#/$defs/opaqueId" },
|
|
140
|
+
"severity": { "enum": ["error", "info", "warning"] },
|
|
141
|
+
"phase": { "enum": ["apply", "authority", "input", "planning", "query", "recovery"] },
|
|
142
|
+
"subject": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
143
|
+
"message": { "type": "string", "minLength": 1, "maxLength": 1000 },
|
|
144
|
+
"remediation": {
|
|
145
|
+
"type": "object",
|
|
146
|
+
"additionalProperties": false,
|
|
147
|
+
"required": ["commandId", "args"],
|
|
148
|
+
"properties": {
|
|
149
|
+
"commandId": { "enum": ["docs.doctor", "docs.find", "docs.new", "docs.recover"] },
|
|
150
|
+
"args": {
|
|
151
|
+
"type": "object",
|
|
152
|
+
"maxProperties": 16,
|
|
153
|
+
"propertyNames": { "pattern": "^[a-z][a-zA-Z0-9]*$", "maxLength": 64 },
|
|
154
|
+
"additionalProperties": { "type": "string", "maxLength": 512 }
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-teams.ai/schemas/document-intent/v1",
|
|
4
|
+
"title": "Document Intent",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "type", "id", "title", "owner", "summary"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"type": { "$ref": "#/$defs/lowerId" },
|
|
11
|
+
"id": { "$ref": "#/$defs/opaqueId" },
|
|
12
|
+
"title": { "$ref": "#/$defs/title" },
|
|
13
|
+
"owner": { "$ref": "#/$defs/opaqueId" },
|
|
14
|
+
"summary": { "type": "string", "minLength": 1, "maxLength": 1000 },
|
|
15
|
+
"related": {
|
|
16
|
+
"type": "array",
|
|
17
|
+
"maxItems": 128,
|
|
18
|
+
"uniqueItems": true,
|
|
19
|
+
"items": { "$ref": "#/$defs/opaqueId" }
|
|
20
|
+
},
|
|
21
|
+
"additionalMetadata": { "$ref": "#/$defs/jsonObject1" }
|
|
22
|
+
},
|
|
23
|
+
"$defs": {
|
|
24
|
+
"lowerId": { "type": "string", "minLength": 1, "maxLength": 160, "pattern": "^[a-z0-9][a-z0-9._/-]*$" },
|
|
25
|
+
"opaqueId": { "type": "string", "minLength": 1, "maxLength": 214, "pattern": "^[A-Za-z0-9@][A-Za-z0-9@._/-]*$" },
|
|
26
|
+
"title": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^[^\\u0000-\\u001F\\u007F]+$" },
|
|
27
|
+
"jsonScalar": {
|
|
28
|
+
"oneOf": [
|
|
29
|
+
{ "type": "null" },
|
|
30
|
+
{ "type": "boolean" },
|
|
31
|
+
{ "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 },
|
|
32
|
+
{ "type": "string", "maxLength": 4096 }
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"jsonObject1": { "type": "object", "maxProperties": 64, "additionalProperties": { "$ref": "#/$defs/jsonValue1" } },
|
|
36
|
+
"jsonValue1": {
|
|
37
|
+
"oneOf": [
|
|
38
|
+
{ "$ref": "#/$defs/jsonScalar" },
|
|
39
|
+
{ "type": "array", "maxItems": 128, "items": { "$ref": "#/$defs/jsonValue2" } },
|
|
40
|
+
{ "$ref": "#/$defs/jsonObject2" }
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"jsonObject2": { "type": "object", "maxProperties": 64, "additionalProperties": { "$ref": "#/$defs/jsonValue2" } },
|
|
44
|
+
"jsonValue2": {
|
|
45
|
+
"oneOf": [
|
|
46
|
+
{ "$ref": "#/$defs/jsonScalar" },
|
|
47
|
+
{ "type": "array", "maxItems": 128, "items": { "$ref": "#/$defs/jsonValue3" } },
|
|
48
|
+
{ "$ref": "#/$defs/jsonObject3" }
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"jsonObject3": { "type": "object", "maxProperties": 64, "additionalProperties": { "$ref": "#/$defs/jsonValue3" } },
|
|
52
|
+
"jsonValue3": {
|
|
53
|
+
"oneOf": [
|
|
54
|
+
{ "$ref": "#/$defs/jsonScalar" },
|
|
55
|
+
{ "type": "array", "maxItems": 128, "items": { "$ref": "#/$defs/jsonScalar" } },
|
|
56
|
+
{ "type": "object", "maxProperties": 64, "additionalProperties": { "$ref": "#/$defs/jsonScalar" } }
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-teams.ai/schemas/document-plan/v1",
|
|
4
|
+
"title": "Document Plan",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "protocolVersion", "compiler", "projectId", "intent", "intentDigest", "authority", "selectedOwner", "identityProjection", "referencedDocuments", "destination", "expectedParent", "destinationPrecondition", "output", "requiredAdapterCapabilities", "diagnostics", "planDigest"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"protocolVersion": { "const": 1 },
|
|
11
|
+
"compiler": { "$ref": "#/$defs/compiler" },
|
|
12
|
+
"projectId": { "$ref": "#/$defs/lowerId" },
|
|
13
|
+
"intent": { "$ref": "https://agent-teams.ai/schemas/document-intent/v1" },
|
|
14
|
+
"intentDigest": { "$ref": "#/$defs/digest" },
|
|
15
|
+
"authority": { "$ref": "#/$defs/authority" },
|
|
16
|
+
"selectedOwner": { "$ref": "#/$defs/selectedOwner" },
|
|
17
|
+
"identityProjection": { "$ref": "#/$defs/identityProjection" },
|
|
18
|
+
"referencedDocuments": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"maxItems": 128,
|
|
21
|
+
"items": { "$ref": "#/$defs/referencedDocument" }
|
|
22
|
+
},
|
|
23
|
+
"destination": { "$ref": "#/$defs/repositoryPath" },
|
|
24
|
+
"expectedParent": { "$ref": "#/$defs/expectedParent" },
|
|
25
|
+
"destinationPrecondition": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"required": ["state"],
|
|
29
|
+
"properties": { "state": { "const": "absent" } }
|
|
30
|
+
},
|
|
31
|
+
"output": { "$ref": "#/$defs/output" },
|
|
32
|
+
"requiredAdapterCapabilities": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"prefixItems": [{ "const": "create-file-no-replace/v1" }],
|
|
35
|
+
"minItems": 1,
|
|
36
|
+
"maxItems": 1
|
|
37
|
+
},
|
|
38
|
+
"diagnostics": { "type": "array", "maxItems": 256, "items": { "$ref": "#/$defs/diagnostic" } },
|
|
39
|
+
"planDigest": { "$ref": "#/$defs/digest" }
|
|
40
|
+
},
|
|
41
|
+
"$defs": {
|
|
42
|
+
"lowerId": { "type": "string", "minLength": 1, "maxLength": 160, "pattern": "^[a-z0-9][a-z0-9._/-]*$" },
|
|
43
|
+
"opaqueId": { "type": "string", "minLength": 1, "maxLength": 214, "pattern": "^[A-Za-z0-9@][A-Za-z0-9@._/-]*$" },
|
|
44
|
+
"digest": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
|
|
45
|
+
"semver": { "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-]+)*)?$" },
|
|
46
|
+
"repositoryPath": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"minLength": 1,
|
|
49
|
+
"maxLength": 512,
|
|
50
|
+
"pattern": "^(?!.*(?:^|/)\\.{1,2}(?:/|$))(?!.*\\.(?:/|$))(?!.*(?:^|/)(?:[Cc][Oo][Nn]|[Pp][Rr][Nn]|[Aa][Uu][Xx]|[Nn][Uu][Ll]|[Cc][Oo][Mm][1-9]|[Ll][Pp][Tt][1-9])(?:\\.[A-Za-z0-9._@-]*)?(?:/|$))[A-Za-z0-9._@-]+(?:/[A-Za-z0-9._@-]+)*$"
|
|
51
|
+
},
|
|
52
|
+
"compiler": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"additionalProperties": false,
|
|
55
|
+
"required": ["id", "version", "buildIdentity"],
|
|
56
|
+
"properties": {
|
|
57
|
+
"id": { "const": "@agent-teams/engineering-foundation" },
|
|
58
|
+
"version": { "$ref": "#/$defs/semver" },
|
|
59
|
+
"buildIdentity": { "$ref": "#/$defs/digest" }
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"authoritySource": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"additionalProperties": false,
|
|
65
|
+
"required": ["path", "digest", "size"],
|
|
66
|
+
"properties": {
|
|
67
|
+
"path": { "$ref": "#/$defs/repositoryPath" },
|
|
68
|
+
"digest": { "$ref": "#/$defs/digest" },
|
|
69
|
+
"size": { "type": "integer", "minimum": 1, "maximum": 4194304 }
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"authority": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"additionalProperties": false,
|
|
75
|
+
"required": ["profile", "metadataSchema", "ownerCatalog", "template"],
|
|
76
|
+
"properties": {
|
|
77
|
+
"profile": { "$ref": "#/$defs/authoritySource" },
|
|
78
|
+
"metadataSchema": { "$ref": "#/$defs/authoritySource" },
|
|
79
|
+
"ownerCatalog": { "$ref": "#/$defs/authoritySource" },
|
|
80
|
+
"template": { "$ref": "#/$defs/authoritySource" }
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"selectedOwner": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"additionalProperties": false,
|
|
86
|
+
"required": ["id", "membershipDigest"],
|
|
87
|
+
"properties": {
|
|
88
|
+
"id": { "$ref": "#/$defs/opaqueId" },
|
|
89
|
+
"membershipDigest": { "$ref": "#/$defs/digest" }
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"identityProjection": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"additionalProperties": false,
|
|
95
|
+
"required": ["entryCount", "digest"],
|
|
96
|
+
"properties": {
|
|
97
|
+
"entryCount": { "type": "integer", "minimum": 0, "maximum": 100000 },
|
|
98
|
+
"digest": { "$ref": "#/$defs/digest" }
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"referencedDocument": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"additionalProperties": false,
|
|
104
|
+
"required": ["id", "path", "projectionDigest"],
|
|
105
|
+
"properties": {
|
|
106
|
+
"id": { "$ref": "#/$defs/opaqueId" },
|
|
107
|
+
"path": { "$ref": "#/$defs/repositoryPath" },
|
|
108
|
+
"projectionDigest": { "$ref": "#/$defs/digest" }
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"expectedParent": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"additionalProperties": false,
|
|
114
|
+
"required": ["path", "state", "ancestry"],
|
|
115
|
+
"properties": {
|
|
116
|
+
"path": { "$ref": "#/$defs/repositoryPath" },
|
|
117
|
+
"state": { "const": "directory" },
|
|
118
|
+
"ancestry": { "const": "real-directories" }
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"output": {
|
|
122
|
+
"type": "object",
|
|
123
|
+
"additionalProperties": false,
|
|
124
|
+
"required": ["digest", "size", "mode", "mediaType", "contentBase64"],
|
|
125
|
+
"properties": {
|
|
126
|
+
"digest": { "$ref": "#/$defs/digest" },
|
|
127
|
+
"size": { "type": "integer", "minimum": 1, "maximum": 1048576 },
|
|
128
|
+
"mode": { "const": "0644" },
|
|
129
|
+
"mediaType": { "const": "text/markdown; charset=utf-8" },
|
|
130
|
+
"contentBase64": { "type": "string", "minLength": 4, "maxLength": 1398104, "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" }
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"diagnostic": {
|
|
134
|
+
"type": "object",
|
|
135
|
+
"additionalProperties": false,
|
|
136
|
+
"required": ["ruleId", "severity", "phase", "subject", "message"],
|
|
137
|
+
"properties": {
|
|
138
|
+
"ruleId": { "$ref": "#/$defs/opaqueId" },
|
|
139
|
+
"severity": { "enum": ["error", "info", "warning"] },
|
|
140
|
+
"phase": { "enum": ["authority", "input", "planning", "policy"] },
|
|
141
|
+
"subject": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
142
|
+
"message": { "type": "string", "minLength": 1, "maxLength": 1000 }
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|