@agent-teams/engineering-foundation 0.18.0 → 0.20.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/dist/capabilities/repository-agent-workflow/application/policies/evaluate-repository-agent-workflow.d.ts.map +1 -1
- package/dist/capabilities/repository-agent-workflow/application/policies/evaluate-repository-agent-workflow.js +5 -2
- package/dist/capabilities/repository-agent-workflow/application/policies/evaluate-repository-agent-workflow.js.map +1 -1
- package/dist/capabilities/repository-agent-workflow/application/rules.js +1 -1
- package/dist/capabilities/repository-agent-workflow/application/rules.js.map +1 -1
- package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile-v2.d.ts +29 -3
- package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile-v2.d.ts.map +1 -1
- package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile-v2.js +38 -9
- package/dist/document-authoring/adapters/node/load-validated-document-authoring-profile-v2.js.map +1 -1
- package/dist/document-authoring/adapters/node/node-authoring-profile-reader-v2.d.ts.map +1 -1
- package/dist/document-authoring/adapters/node/node-authoring-profile-reader-v2.js +5 -4
- package/dist/document-authoring/adapters/node/node-authoring-profile-reader-v2.js.map +1 -1
- package/dist/document-authoring/adapters/node/node-document-planning-profile-reader.d.ts.map +1 -1
- package/dist/document-authoring/adapters/node/node-document-planning-profile-reader.js +9 -7
- package/dist/document-authoring/adapters/node/node-document-planning-profile-reader.js.map +1 -1
- package/dist/document-authoring/adapters/node/node-document-transaction-coordinator.d.ts.map +1 -1
- package/dist/document-authoring/adapters/node/node-document-transaction-coordinator.js +4 -26
- package/dist/document-authoring/adapters/node/node-document-transaction-coordinator.js.map +1 -1
- package/dist/document-authoring/application/model/document-authoring-profile-description.d.ts +4 -0
- package/dist/document-authoring/application/model/document-authoring-profile-description.d.ts.map +1 -1
- package/dist/document-authoring/application/model/document-planning.d.ts +1 -1
- package/dist/document-authoring/application/model/document-planning.d.ts.map +1 -1
- package/dist/document-authoring/application/policies/assert-v2-planning-profile.js +2 -2
- package/dist/document-authoring/application/policies/assert-v2-planning-profile.js.map +1 -1
- package/dist/document-authoring/application/policies/document-authoring-semantic-digests.d.ts +2 -1
- package/dist/document-authoring/application/policies/document-authoring-semantic-digests.d.ts.map +1 -1
- package/dist/document-authoring/application/policies/document-authoring-semantic-digests.js +8 -2
- package/dist/document-authoring/application/policies/document-authoring-semantic-digests.js.map +1 -1
- package/dist/document-authoring/application/ports/authoring-profile-reader.d.ts +1 -1
- package/dist/document-authoring/application/ports/authoring-profile-reader.d.ts.map +1 -1
- package/dist/document-authoring/application/use-cases/build-documentation-catalog.js +3 -3
- package/dist/document-authoring/application/use-cases/build-documentation-catalog.js.map +1 -1
- package/dist/document-authoring/application/use-cases/load-v2-profile-description.d.ts +8 -3
- package/dist/document-authoring/application/use-cases/load-v2-profile-description.d.ts.map +1 -1
- package/dist/document-authoring/application/use-cases/load-v2-profile-description.js +4 -2
- package/dist/document-authoring/application/use-cases/load-v2-profile-description.js.map +1 -1
- package/dist/document-authoring/composition/describe-document-authoring-profile-v2.d.ts +7 -1
- package/dist/document-authoring/composition/describe-document-authoring-profile-v2.d.ts.map +1 -1
- package/dist/document-authoring/composition/describe-document-authoring-profile-v2.js +54 -17
- package/dist/document-authoring/composition/describe-document-authoring-profile-v2.js.map +1 -1
- package/dist/document-authoring/composition/node-document-planning.d.ts.map +1 -1
- package/dist/document-authoring/composition/node-document-planning.js +4 -3
- package/dist/document-authoring/composition/node-document-planning.js.map +1 -1
- package/dist/document-authoring/index.d.ts +4 -3
- package/dist/document-authoring/index.d.ts.map +1 -1
- package/dist/document-authoring/index.js +2 -1
- package/dist/document-authoring/index.js.map +1 -1
- package/dist/local-mode/attach-transaction.d.ts.map +1 -1
- package/dist/local-mode/attach-transaction.js +4 -2
- package/dist/local-mode/attach-transaction.js.map +1 -1
- package/dist/local-mode/inspection.d.ts.map +1 -1
- package/dist/local-mode/inspection.js +1 -6
- package/dist/local-mode/inspection.js.map +1 -1
- package/dist/local-mode/service.d.ts.map +1 -1
- package/dist/local-mode/service.js +4 -2
- package/dist/local-mode/service.js.map +1 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-lease-release.d.ts +14 -0
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-lease-release.d.ts.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-lease-release.js +23 -0
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-lease-release.js.map +1 -0
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-recovery.d.ts.map +1 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-recovery.js +12 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction-recovery.js.map +1 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction.d.ts.map +1 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction.js +9 -1
- package/dist/repository-mutation/adapters/node/node-known-file-transaction.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 +8 -5
- package/dist/scaffolding/adapters/node/filesystem-authority-workspace.js.map +1 -1
- package/dist/schema-catalog.d.ts.map +1 -1
- package/dist/schema-catalog.js +1 -0
- 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 +1 -0
- package/dist/schema-ids.js.map +1 -1
- package/dist/transaction-coordination/application/model/transaction-status.d.ts +10 -0
- package/dist/transaction-coordination/application/model/transaction-status.d.ts.map +1 -1
- package/dist/transaction-coordination/application/release-foundation-transaction-lease.d.ts +6 -0
- package/dist/transaction-coordination/application/release-foundation-transaction-lease.d.ts.map +1 -0
- package/dist/transaction-coordination/application/release-foundation-transaction-lease.js +23 -0
- package/dist/transaction-coordination/application/release-foundation-transaction-lease.js.map +1 -0
- package/package.json +2 -1
- package/schemas/document-authoring-profile/v3.schema.json +200 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
function combinedInspectionAndReleaseFailure(inspectionError, releaseError) {
|
|
2
|
+
return new Error("Foundation transaction evidence inspection and barrier retention both failed.", {
|
|
3
|
+
cause: new AggregateError([inspectionError, releaseError], "Transaction evidence inspection and operation-lock release failed.")
|
|
4
|
+
});
|
|
5
|
+
}
|
|
6
|
+
export async function releaseFoundationTransactionLeaseSafely(options) {
|
|
7
|
+
let retainTransactionBarrier;
|
|
8
|
+
try {
|
|
9
|
+
retainTransactionBarrier =
|
|
10
|
+
await options.inspectRetainTransactionBarrier();
|
|
11
|
+
}
|
|
12
|
+
catch (inspectionError) {
|
|
13
|
+
try {
|
|
14
|
+
await options.lease.release({ retainTransactionBarrier: true });
|
|
15
|
+
}
|
|
16
|
+
catch (releaseError) {
|
|
17
|
+
throw combinedInspectionAndReleaseFailure(inspectionError, releaseError);
|
|
18
|
+
}
|
|
19
|
+
throw inspectionError;
|
|
20
|
+
}
|
|
21
|
+
await options.lease.release({ retainTransactionBarrier });
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=release-foundation-transaction-lease.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-foundation-transaction-lease.js","sourceRoot":"","sources":["../../../src/transaction-coordination/application/release-foundation-transaction-lease.ts"],"names":[],"mappings":"AAEA,SAAS,mCAAmC,CAC1C,eAAwB,EACxB,YAAqB;IAErB,OAAO,IAAI,KAAK,CACd,+EAA+E,EAC/E;QACE,KAAK,EAAE,IAAI,cAAc,CACvB,CAAC,eAAe,EAAE,YAAY,CAAC,EAC/B,oEAAoE,CACrE;KACF,CACF,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,uCAAuC,CAAC,OAG7D;IACC,IAAI,wBAAiC,CAAC;IACtC,IAAI,CAAC;QACH,wBAAwB;YACtB,MAAM,OAAO,CAAC,+BAA+B,EAAE,CAAC;IACpD,CAAC;IAAC,OAAO,eAAe,EAAE,CAAC;QACzB,IAAI,CAAC;YACH,MAAM,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,wBAAwB,EAAE,IAAI,EAAE,CAAC,CAAC;QAClE,CAAC;QAAC,OAAO,YAAY,EAAE,CAAC;YACtB,MAAM,mCAAmC,CACvC,eAAe,EACf,YAAY,CACb,CAAC;QACJ,CAAC;QACD,MAAM,eAAe,CAAC;IACxB,CAAC;IACD,MAAM,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAC,CAAC;AAC5D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-teams/engineering-foundation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Versioned engineering policy, tooling, and conformance for Agent Teams repositories.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"schemas/contract-protobuf-evolution/v1.schema.json",
|
|
59
59
|
"schemas/document-authoring-profile/v1.schema.json",
|
|
60
60
|
"schemas/document-authoring-profile/v2.schema.json",
|
|
61
|
+
"schemas/document-authoring-profile/v3.schema.json",
|
|
61
62
|
"schemas/document-command-envelope/v1.schema.json",
|
|
62
63
|
"schemas/document-command-envelope/v2.schema.json",
|
|
63
64
|
"schemas/document-intent/v1.schema.json",
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-teams.ai/schemas/document-authoring-profile/v3",
|
|
4
|
+
"title": "Document Authoring Profile v3",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "projectId", "catalog", "authoring"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 3 },
|
|
10
|
+
"projectId": { "$ref": "https://agent-teams.ai/schemas/document-authoring-profile/v1#/$defs/lowerId" },
|
|
11
|
+
"catalog": { "$ref": "#/$defs/catalog" },
|
|
12
|
+
"authoring": { "$ref": "#/$defs/authoring" }
|
|
13
|
+
},
|
|
14
|
+
"$defs": {
|
|
15
|
+
"catalog": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"required": ["metadataSchemaPath", "ownerCatalog", "collections"],
|
|
19
|
+
"properties": {
|
|
20
|
+
"metadataSchemaPath": { "$ref": "https://agent-teams.ai/schemas/document-authoring-profile/v1#/$defs/repositoryPath" },
|
|
21
|
+
"ownerCatalog": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": ["path", "contract"],
|
|
25
|
+
"properties": {
|
|
26
|
+
"path": { "$ref": "https://agent-teams.ai/schemas/document-authoring-profile/v1#/$defs/repositoryPath" },
|
|
27
|
+
"contract": { "const": "foundation.owner-map/v1" }
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"collections": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"minItems": 1,
|
|
33
|
+
"maxItems": 32,
|
|
34
|
+
"items": {
|
|
35
|
+
"oneOf": [
|
|
36
|
+
{ "$ref": "https://agent-teams.ai/schemas/document-authoring-profile/v1#/$defs/markdownTreeCollection" },
|
|
37
|
+
{ "$ref": "https://agent-teams.ai/schemas/document-authoring-profile/v1#/$defs/frontmatterReadmeCollection" }
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"excludedPrefixes": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"maxItems": 128,
|
|
44
|
+
"uniqueItems": true,
|
|
45
|
+
"items": { "$ref": "https://agent-teams.ai/schemas/document-authoring-profile/v1#/$defs/repositoryPath" }
|
|
46
|
+
},
|
|
47
|
+
"metadataSidecar": { "$ref": "#/$defs/metadataSidecar" }
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"metadataSidecar": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"additionalProperties": false,
|
|
53
|
+
"required": ["kind", "path"],
|
|
54
|
+
"properties": {
|
|
55
|
+
"kind": { "const": "path-metadata-map" },
|
|
56
|
+
"path": { "$ref": "https://agent-teams.ai/schemas/document-authoring-profile/v1#/$defs/repositoryPath" }
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"authoring": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"additionalProperties": false,
|
|
62
|
+
"required": ["mode", "artifactTypes"],
|
|
63
|
+
"properties": {
|
|
64
|
+
"mode": { "const": "create-only" },
|
|
65
|
+
"ownerSets": { "$ref": "#/$defs/ownerSets" },
|
|
66
|
+
"artifactTypes": {
|
|
67
|
+
"type": "array",
|
|
68
|
+
"minItems": 1,
|
|
69
|
+
"maxItems": 32,
|
|
70
|
+
"items": { "$ref": "#/$defs/artifactType" }
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"artifactType": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"required": [
|
|
78
|
+
"type",
|
|
79
|
+
"initialStatus",
|
|
80
|
+
"identity",
|
|
81
|
+
"placement",
|
|
82
|
+
"template",
|
|
83
|
+
"heading",
|
|
84
|
+
"reachability"
|
|
85
|
+
],
|
|
86
|
+
"oneOf": [
|
|
87
|
+
{
|
|
88
|
+
"required": ["allowedOwnerIds"],
|
|
89
|
+
"properties": { "allowedOwnerIds": true }
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"required": ["ownerSetId"],
|
|
93
|
+
"properties": { "ownerSetId": true }
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"properties": {
|
|
97
|
+
"type": { "$ref": "https://agent-teams.ai/schemas/document-authoring-profile/v1#/$defs/lowerId" },
|
|
98
|
+
"initialStatus": { "$ref": "https://agent-teams.ai/schemas/document-authoring-profile/v1#/$defs/lowerId" },
|
|
99
|
+
"identity": { "$ref": "https://agent-teams.ai/schemas/document-authoring-profile/v1#/$defs/identity" },
|
|
100
|
+
"placement": {
|
|
101
|
+
"oneOf": [
|
|
102
|
+
{ "$ref": "https://agent-teams.ai/schemas/document-authoring-profile/v1#/$defs/collectionPlacement" },
|
|
103
|
+
{ "$ref": "https://agent-teams.ai/schemas/document-authoring-profile/v1#/$defs/qualifiedLeafIndexPlacement" },
|
|
104
|
+
{ "$ref": "https://agent-teams.ai/schemas/document-authoring-profile/v1#/$defs/explicitPlacement" }
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"template": {
|
|
108
|
+
"type": "object",
|
|
109
|
+
"additionalProperties": false,
|
|
110
|
+
"required": ["kind", "path"],
|
|
111
|
+
"properties": {
|
|
112
|
+
"kind": { "const": "fenced-markdown-body" },
|
|
113
|
+
"path": { "$ref": "https://agent-teams.ai/schemas/document-authoring-profile/v1#/$defs/repositoryPath" }
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"heading": {
|
|
117
|
+
"type": "object",
|
|
118
|
+
"additionalProperties": false,
|
|
119
|
+
"required": ["kind"],
|
|
120
|
+
"properties": {
|
|
121
|
+
"kind": { "enum": ["id-colon-title", "title"] }
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"reachability": { "$ref": "#/$defs/reachability" },
|
|
125
|
+
"allowedOwnerIds": { "$ref": "#/$defs/allowedOwnerIds" },
|
|
126
|
+
"ownerSetId": { "$ref": "#/$defs/ownerSetId" }
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"ownerSetId": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"minLength": 1,
|
|
132
|
+
"maxLength": 160,
|
|
133
|
+
"pattern": "^[a-z0-9][a-z0-9._/-]*$"
|
|
134
|
+
},
|
|
135
|
+
"ownerSets": {
|
|
136
|
+
"type": "object",
|
|
137
|
+
"additionalProperties": false,
|
|
138
|
+
"required": ["schemaVersion", "sets"],
|
|
139
|
+
"properties": {
|
|
140
|
+
"schemaVersion": { "const": 1 },
|
|
141
|
+
"sets": {
|
|
142
|
+
"type": "object",
|
|
143
|
+
"minProperties": 1,
|
|
144
|
+
"maxProperties": 128,
|
|
145
|
+
"propertyNames": { "$ref": "#/$defs/ownerSetId" },
|
|
146
|
+
"additionalProperties": { "$ref": "#/$defs/allowedOwnerIds" }
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"allowedOwnerIds": {
|
|
151
|
+
"type": "array",
|
|
152
|
+
"minItems": 1,
|
|
153
|
+
"maxItems": 4096,
|
|
154
|
+
"uniqueItems": true,
|
|
155
|
+
"items": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"minLength": 1,
|
|
158
|
+
"maxLength": 214,
|
|
159
|
+
"pattern": "^[A-Za-z0-9@][A-Za-z0-9@._/-]*$"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"reachability": {
|
|
163
|
+
"oneOf": [
|
|
164
|
+
{
|
|
165
|
+
"type": "object",
|
|
166
|
+
"additionalProperties": false,
|
|
167
|
+
"required": ["kind", "indexPath"],
|
|
168
|
+
"properties": {
|
|
169
|
+
"kind": { "const": "manual-fixed-index" },
|
|
170
|
+
"indexPath": { "$ref": "https://agent-teams.ai/schemas/document-authoring-profile/v1#/$defs/repositoryPath" }
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"type": "object",
|
|
175
|
+
"additionalProperties": false,
|
|
176
|
+
"required": ["kind", "pathPrefix", "indexBasename"],
|
|
177
|
+
"properties": {
|
|
178
|
+
"kind": { "const": "manual-colocated-index" },
|
|
179
|
+
"pathPrefix": { "const": "before-required-segments" },
|
|
180
|
+
"indexBasename": { "const": "README.md" }
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"type": "object",
|
|
185
|
+
"additionalProperties": false,
|
|
186
|
+
"required": ["kind", "reason"],
|
|
187
|
+
"properties": {
|
|
188
|
+
"kind": { "const": "not-required" },
|
|
189
|
+
"reason": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"minLength": 1,
|
|
192
|
+
"maxLength": 500,
|
|
193
|
+
"pattern": "^[^\\u0000-\\u001F\\u007F]+$"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|