@agent-teams/docs-protocol-agent-teams 0.0.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/CHANGELOG.md +5 -0
- package/LICENSE +201 -0
- package/README.md +24 -0
- package/assets/catalog.json +1 -0
- package/assets/docs-protocol.yml +14 -0
- package/assets/history/sha256-097df9fe1b90ab45f73389c8b69736f8a54d4199b09536d586222b5a7f0fbb09/caller.yml +13 -0
- package/assets/history/sha256-3e53262efc8a530b532380dac21d876456473d3b88aba20889a1d24823bf3a1b/caller.yml +14 -0
- package/assets/history/sha256-51d3f02a352ce2c3b0a4068a86b6899a57ab54b0a876c468e3fb3e536519caca/caller.yml +14 -0
- package/assets/history/sha256-641265ef9ecff59c16482fdae1bc8fc56002b5a4a1ee34b102438d0ca08a86a3/skill.md +29 -0
- package/assets/history/sha256-7907195753506e4b0f0e89eb3f6e495bacbd79e9b9913c9f60fc4a07dffb22e5/caller.yml +14 -0
- package/assets/history/sha256-7b31cd257532247f64c55a014dc926c601e4d742176cfb8513b6b0d8ab48213e/skill.md +28 -0
- package/assets/history/sha256-d697c5c7c9bcfccfc006fcf7e4d4cc8e7c629f9689781b9b0b50f30d82bc019e/caller.yml +14 -0
- package/assets/history/sha256-f21dc19277a4ba24bcef90a7071c9cf50adf144769f42d6f74ff4eac9ef117cf/caller.yml +14 -0
- package/assets/history/sha256-fd633c3c6337e5cfe51a9f36989bb654381634c5ab4add9e4da71fe40ab4e0dd/caller.yml +14 -0
- package/assets/transition-catalog.json +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +4 -0
- package/dist/cli.js.map +1 -0
- package/dist/composition/managed-cli-input.d.ts +11 -0
- package/dist/composition/managed-cli-input.d.ts.map +1 -0
- package/dist/composition/managed-cli-input.js +52 -0
- package/dist/composition/managed-cli-input.js.map +1 -0
- package/dist/composition/managed-cli.d.ts +2 -0
- package/dist/composition/managed-cli.d.ts.map +1 -0
- package/dist/composition/managed-cli.js +17 -0
- package/dist/composition/managed-cli.js.map +1 -0
- package/dist/composition/qualification-cli.d.ts +2 -0
- package/dist/composition/qualification-cli.d.ts.map +1 -0
- package/dist/composition/qualification-cli.js +119 -0
- package/dist/composition/qualification-cli.js.map +1 -0
- package/dist/consumer-integration/adapters/agents-route-adapter-v1.d.ts +10 -0
- package/dist/consumer-integration/adapters/agents-route-adapter-v1.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/agents-route-adapter-v1.js +99 -0
- package/dist/consumer-integration/adapters/agents-route-adapter-v1.js.map +1 -0
- package/dist/consumer-integration/adapters/bounded-repository-topology.d.ts +8 -0
- package/dist/consumer-integration/adapters/bounded-repository-topology.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/bounded-repository-topology.js +80 -0
- package/dist/consumer-integration/adapters/bounded-repository-topology.js.map +1 -0
- package/dist/consumer-integration/adapters/consumer-integration-node-error.d.ts +5 -0
- package/dist/consumer-integration/adapters/consumer-integration-node-error.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/consumer-integration-node-error.js +9 -0
- package/dist/consumer-integration/adapters/consumer-integration-node-error.js.map +1 -0
- package/dist/consumer-integration/adapters/consumer-integration-schema-validator.d.ts +4 -0
- package/dist/consumer-integration/adapters/consumer-integration-schema-validator.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/consumer-integration-schema-validator.js +51 -0
- package/dist/consumer-integration/adapters/consumer-integration-schema-validator.js.map +1 -0
- package/dist/consumer-integration/adapters/consumer-upgrade-file-projectors.d.ts +21 -0
- package/dist/consumer-integration/adapters/consumer-upgrade-file-projectors.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/consumer-upgrade-file-projectors.js +145 -0
- package/dist/consumer-integration/adapters/consumer-upgrade-file-projectors.js.map +1 -0
- package/dist/consumer-integration/adapters/foundation-known-file-transaction.d.ts +3 -0
- package/dist/consumer-integration/adapters/foundation-known-file-transaction.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/foundation-known-file-transaction.js +7 -0
- package/dist/consumer-integration/adapters/foundation-known-file-transaction.js.map +1 -0
- package/dist/consumer-integration/adapters/github-cohort-authority-reader.d.ts +21 -0
- package/dist/consumer-integration/adapters/github-cohort-authority-reader.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/github-cohort-authority-reader.js +215 -0
- package/dist/consumer-integration/adapters/github-cohort-authority-reader.js.map +1 -0
- package/dist/consumer-integration/adapters/node-consumer-integration-repository.d.ts +13 -0
- package/dist/consumer-integration/adapters/node-consumer-integration-repository.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/node-consumer-integration-repository.js +213 -0
- package/dist/consumer-integration/adapters/node-consumer-integration-repository.js.map +1 -0
- package/dist/consumer-integration/adapters/node-consumer-repository-files.d.ts +11 -0
- package/dist/consumer-integration/adapters/node-consumer-repository-files.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/node-consumer-repository-files.js +81 -0
- package/dist/consumer-integration/adapters/node-consumer-repository-files.js.map +1 -0
- package/dist/consumer-integration/adapters/node-consumer-upgrade-sandbox.d.ts +19 -0
- package/dist/consumer-integration/adapters/node-consumer-upgrade-sandbox.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/node-consumer-upgrade-sandbox.js +307 -0
- package/dist/consumer-integration/adapters/node-consumer-upgrade-sandbox.js.map +1 -0
- package/dist/consumer-integration/adapters/package-consumer-asset-catalog.d.ts +5 -0
- package/dist/consumer-integration/adapters/package-consumer-asset-catalog.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/package-consumer-asset-catalog.js +150 -0
- package/dist/consumer-integration/adapters/package-consumer-asset-catalog.js.map +1 -0
- package/dist/consumer-integration/adapters/pnpm-lockfile-policy-v1.d.ts +3 -0
- package/dist/consumer-integration/adapters/pnpm-lockfile-policy-v1.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/pnpm-lockfile-policy-v1.js +37 -0
- package/dist/consumer-integration/adapters/pnpm-lockfile-policy-v1.js.map +1 -0
- package/dist/consumer-integration/adapters/pnpm-lockfile-validator-v1.d.ts +3 -0
- package/dist/consumer-integration/adapters/pnpm-lockfile-validator-v1.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/pnpm-lockfile-validator-v1.js +120 -0
- package/dist/consumer-integration/adapters/pnpm-lockfile-validator-v1.js.map +1 -0
- package/dist/consumer-integration/adapters/pnpm-manifest-adapter-v1.d.ts +15 -0
- package/dist/consumer-integration/adapters/pnpm-manifest-adapter-v1.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/pnpm-manifest-adapter-v1.js +189 -0
- package/dist/consumer-integration/adapters/pnpm-manifest-adapter-v1.js.map +1 -0
- package/dist/consumer-integration/adapters/pnpm-runtime-closure-v1.d.ts +8 -0
- package/dist/consumer-integration/adapters/pnpm-runtime-closure-v1.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/pnpm-runtime-closure-v1.js +245 -0
- package/dist/consumer-integration/adapters/pnpm-runtime-closure-v1.js.map +1 -0
- package/dist/consumer-integration/adapters/strict-json-record.d.ts +3 -0
- package/dist/consumer-integration/adapters/strict-json-record.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/strict-json-record.js +27 -0
- package/dist/consumer-integration/adapters/strict-json-record.js.map +1 -0
- package/dist/consumer-integration/application/model/consumer-integration-execution.d.ts +11 -0
- package/dist/consumer-integration/application/model/consumer-integration-execution.d.ts.map +1 -0
- package/dist/consumer-integration/application/model/consumer-integration-execution.js +2 -0
- package/dist/consumer-integration/application/model/consumer-integration-execution.js.map +1 -0
- package/dist/consumer-integration/application/model/consumer-upgrade-execution.d.ts +18 -0
- package/dist/consumer-integration/application/model/consumer-upgrade-execution.d.ts.map +1 -0
- package/dist/consumer-integration/application/model/consumer-upgrade-execution.js +2 -0
- package/dist/consumer-integration/application/model/consumer-upgrade-execution.js.map +1 -0
- package/dist/consumer-integration/application/policies/consumer-integration-assets.d.ts +58 -0
- package/dist/consumer-integration/application/policies/consumer-integration-assets.d.ts.map +1 -0
- package/dist/consumer-integration/application/policies/consumer-integration-assets.js +154 -0
- package/dist/consumer-integration/application/policies/consumer-integration-assets.js.map +1 -0
- package/dist/consumer-integration/application/policies/consumer-integration-authority-guards.d.ts +4 -0
- package/dist/consumer-integration/application/policies/consumer-integration-authority-guards.d.ts.map +1 -0
- package/dist/consumer-integration/application/policies/consumer-integration-authority-guards.js +23 -0
- package/dist/consumer-integration/application/policies/consumer-integration-authority-guards.js.map +1 -0
- package/dist/consumer-integration/application/policies/consumer-integration-desired-state.d.ts +4 -0
- package/dist/consumer-integration/application/policies/consumer-integration-desired-state.d.ts.map +1 -0
- package/dist/consumer-integration/application/policies/consumer-integration-desired-state.js +153 -0
- package/dist/consumer-integration/application/policies/consumer-integration-desired-state.js.map +1 -0
- package/dist/consumer-integration/application/policies/consumer-integration-prior-cohort.d.ts +14 -0
- package/dist/consumer-integration/application/policies/consumer-integration-prior-cohort.d.ts.map +1 -0
- package/dist/consumer-integration/application/policies/consumer-integration-prior-cohort.js +186 -0
- package/dist/consumer-integration/application/policies/consumer-integration-prior-cohort.js.map +1 -0
- package/dist/consumer-integration/application/ports/consumer-integration-lifecycle.d.ts +31 -0
- package/dist/consumer-integration/application/ports/consumer-integration-lifecycle.d.ts.map +1 -0
- package/dist/consumer-integration/application/ports/consumer-integration-lifecycle.js +2 -0
- package/dist/consumer-integration/application/ports/consumer-integration-lifecycle.js.map +1 -0
- package/dist/consumer-integration/application/ports/consumer-integration-planners.d.ts +35 -0
- package/dist/consumer-integration/application/ports/consumer-integration-planners.d.ts.map +1 -0
- package/dist/consumer-integration/application/ports/consumer-integration-planners.js +2 -0
- package/dist/consumer-integration/application/ports/consumer-integration-planners.js.map +1 -0
- package/dist/consumer-integration/application/ports/consumer-upgrade.d.ts +28 -0
- package/dist/consumer-integration/application/ports/consumer-upgrade.d.ts.map +1 -0
- package/dist/consumer-integration/application/ports/consumer-upgrade.js +2 -0
- package/dist/consumer-integration/application/ports/consumer-upgrade.js.map +1 -0
- package/dist/consumer-integration/application/use-cases/plan-consumer-integration.d.ts +15 -0
- package/dist/consumer-integration/application/use-cases/plan-consumer-integration.d.ts.map +1 -0
- package/dist/consumer-integration/application/use-cases/plan-consumer-integration.js +350 -0
- package/dist/consumer-integration/application/use-cases/plan-consumer-integration.js.map +1 -0
- package/dist/consumer-integration/application/use-cases/run-consumer-integration.d.ts +29 -0
- package/dist/consumer-integration/application/use-cases/run-consumer-integration.d.ts.map +1 -0
- package/dist/consumer-integration/application/use-cases/run-consumer-integration.js +139 -0
- package/dist/consumer-integration/application/use-cases/run-consumer-integration.js.map +1 -0
- package/dist/consumer-integration/application/use-cases/upgrade-consumer-integration.d.ts +13 -0
- package/dist/consumer-integration/application/use-cases/upgrade-consumer-integration.d.ts.map +1 -0
- package/dist/consumer-integration/application/use-cases/upgrade-consumer-integration.js +134 -0
- package/dist/consumer-integration/application/use-cases/upgrade-consumer-integration.js.map +1 -0
- package/dist/consumer-integration/composition/consumer-integration-cli.d.ts +3 -0
- package/dist/consumer-integration/composition/consumer-integration-cli.d.ts.map +1 -0
- package/dist/consumer-integration/composition/consumer-integration-cli.js +241 -0
- package/dist/consumer-integration/composition/consumer-integration-cli.js.map +1 -0
- package/dist/consumer-integration/composition/consumer-integration-planner.d.ts +19 -0
- package/dist/consumer-integration/composition/consumer-integration-planner.d.ts.map +1 -0
- package/dist/consumer-integration/composition/consumer-integration-planner.js +14 -0
- package/dist/consumer-integration/composition/consumer-integration-planner.js.map +1 -0
- package/dist/consumer-integration/composition/node-consumer-integration.d.ts +26 -0
- package/dist/consumer-integration/composition/node-consumer-integration.d.ts.map +1 -0
- package/dist/consumer-integration/composition/node-consumer-integration.js +38 -0
- package/dist/consumer-integration/composition/node-consumer-integration.js.map +1 -0
- package/dist/consumer-integration/domain/model.d.ts +111 -0
- package/dist/consumer-integration/domain/model.d.ts.map +1 -0
- package/dist/consumer-integration/domain/model.js +2 -0
- package/dist/consumer-integration/domain/model.js.map +1 -0
- package/dist/consumer-integration/generated/canonical-assets.d.ts +5 -0
- package/dist/consumer-integration/generated/canonical-assets.d.ts.map +1 -0
- package/dist/consumer-integration/generated/canonical-assets.js +6 -0
- package/dist/consumer-integration/generated/canonical-assets.js.map +1 -0
- package/dist/consumer-integration/index.d.ts +12 -0
- package/dist/consumer-integration/index.d.ts.map +1 -0
- package/dist/consumer-integration/index.js +7 -0
- package/dist/consumer-integration/index.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/qualification/index.d.ts +3 -0
- package/dist/qualification/index.d.ts.map +1 -0
- package/dist/qualification/index.js +2 -0
- package/dist/qualification/index.js.map +1 -0
- package/dist/qualification/managed-command-envelope-validator.d.ts +14 -0
- package/dist/qualification/managed-command-envelope-validator.d.ts.map +1 -0
- package/dist/qualification/managed-command-envelope-validator.js +33 -0
- package/dist/qualification/managed-command-envelope-validator.js.map +1 -0
- package/dist/qualification/qualification-v2-runner.d.ts +4 -0
- package/dist/qualification/qualification-v2-runner.d.ts.map +1 -0
- package/dist/qualification/qualification-v2-runner.js +344 -0
- package/dist/qualification/qualification-v2-runner.js.map +1 -0
- package/dist/qualification/v2-contract.d.ts +91 -0
- package/dist/qualification/v2-contract.d.ts.map +1 -0
- package/dist/qualification/v2-contract.js +2 -0
- package/dist/qualification/v2-contract.js.map +1 -0
- package/package.json +66 -0
- package/schemas/docs-consumer-integration-execution/v1.schema.json +29 -0
- package/schemas/docs-consumer-integration-plan/v1.schema.json +63 -0
- package/schemas/docs-consumer-integration-profile/v1.schema.json +110 -0
- package/schemas/docs-consumer-integration-profile/v2.schema.json +283 -0
- package/schemas/docs-consumer-managed-state/v1.schema.json +99 -0
- package/schemas/docs-consumer-upgrade-execution/v1.schema.json +44 -0
- package/schemas/docs-protocol-command-envelope/v1.schema.json +239 -0
- package/schemas/docs-protocol-command-envelope/v2.schema.json +285 -0
- package/schemas/docs-protocol-command-envelope/v3.schema.json +529 -0
- package/schemas/docs-protocol-profile/v1.schema.json +46 -0
- package/schemas/docs-protocol-profile/v2.schema.json +46 -0
- package/schemas/docs-protocol-qualification/v2.schema.json +78 -0
- package/schemas/docs-protocol-qualification-receipt/v2.schema.json +113 -0
- package/schemas/qualified-docs-cohort/v1.schema.json +96 -0
- package/skills/docs/SKILL.md +29 -0
package/dist/consumer-integration/application/policies/consumer-integration-desired-state.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumer-integration-desired-state.js","sourceRoot":"","sources":["../../../../src/consumer-integration/application/policies/consumer-integration-desired-state.ts"],"names":[],"mappings":"AAKA,MAAM,SAAS,GAAG,iCAAiC,CAAC;AACpD,MAAM,SAAS,GAAG,+BAA+B,CAAC;AAClD,MAAM,WAAW,GAAG,2BAA2B,CAAC;AAChD,MAAM,cAAc,GAAG,kCAAkC,CAAC;AAC1D,MAAM,UAAU,GAAG,qCAAqC,CAAC;AACzD,MAAM,aAAa,GAAG,gBAAgB,CAAC;AACvC,MAAM,MAAM,GAAG,+CAA+C,CAAC;AAC/D,MAAM,eAAe,GAAG,qFAAqF,CAAC;AAE9G,MAAM,YAAY,GAAG,4CAA4C,CAAC;AAClE,MAAM,UAAU,GAAG,wCAAwC,CAAC;AAC5D,MAAM,oBAAoB,GAAG,qCAAqC,CAAC;AACnE,MAAM,kBAAkB,GAAG,0DAA0D,CAAC;AACtF,MAAM,mBAAmB,GAAG,wBAAwB,CAAC;AACrD,MAAM,aAAa,GAAG,2CAA2C,CAAC;AAElE,SAAS,gBAAgB,CAAC,OAA0B;IAClD,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,MAAM,CAAC;AAClD,CAAC;AAED,SAAS,YAAY,CAAC,KAAa,EAAE,IAAuB;IAC1D,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,QAAQ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AAY;QACpC,OAAO,CAAC,SAAS,KAAK,UAAU;QAChC,OAAO,CAAC,kBAAkB,KAAK,oBAAoB;QACnD,OAAO,CAAC,gBAAgB,KAAK,kBAAkB;QAC/C,OAAO,CAAC,UAAU,CAAC,QAAQ,KAAK,QAAQ;QACxC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;QACzC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC;QACjD,qBAAqB,CAAC,OAAO,CAAC,iBAAiB,CAAC;QAChD,OAAO,CAAC,MAAM,CAAC,aAAa,KAAK,CAAC,CAAC;IACrC,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,SAAS,CAAC,+DAA+D,CAAC,CAAC;IACvF,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ConsumerIntegrationDesiredStateV1, ConsumerIntegrationDigest, ConsumerIntegrationSnapshot } from "../../domain/model.js";
|
|
2
|
+
import { type ConsumerAssetCatalogV1 } from "./consumer-integration-assets.js";
|
|
3
|
+
export interface TrustedPriorCohort {
|
|
4
|
+
readonly cohortId: string;
|
|
5
|
+
readonly allowedTargetCohortIds: readonly string[];
|
|
6
|
+
readonly schemas: ConsumerIntegrationDesiredStateV1["cohort"]["schemas"];
|
|
7
|
+
readonly skill: Uint8Array;
|
|
8
|
+
readonly callerWorkflow: Uint8Array;
|
|
9
|
+
readonly agentsRouteDigest: ConsumerIntegrationDigest;
|
|
10
|
+
readonly docsScriptsDigest: ConsumerIntegrationDigest;
|
|
11
|
+
readonly managedState: Uint8Array;
|
|
12
|
+
}
|
|
13
|
+
export declare function trustedPriorCohort(desired: ConsumerIntegrationDesiredStateV1, snapshot: ConsumerIntegrationSnapshot, catalog: ConsumerAssetCatalogV1): TrustedPriorCohort | undefined;
|
|
14
|
+
//# sourceMappingURL=consumer-integration-prior-cohort.d.ts.map
|
package/dist/consumer-integration/application/policies/consumer-integration-prior-cohort.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumer-integration-prior-cohort.d.ts","sourceRoot":"","sources":["../../../../src/consumer-integration/application/policies/consumer-integration-prior-cohort.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,yBAAyB,EAEzB,2BAA2B,EAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAQL,KAAK,sBAAsB,EAG5B,MAAM,kCAAkC,CAAC;AAG1C,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,sBAAsB,EAAE,SAAS,MAAM,EAAE,CAAC;IACnD,QAAQ,CAAC,OAAO,EAAE,iCAAiC,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC;IACzE,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,cAAc,EAAE,UAAU,CAAC;IACpC,QAAQ,CAAC,iBAAiB,EAAE,yBAAyB,CAAC;IACtD,QAAQ,CAAC,iBAAiB,EAAE,yBAAyB,CAAC;IACtD,QAAQ,CAAC,YAAY,EAAE,UAAU,CAAC;CACnC;AAsGD,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,iCAAiC,EAC1C,QAAQ,EAAE,2BAA2B,EACrC,OAAO,EAAE,sBAAsB,GAC9B,kBAAkB,GAAG,SAAS,CA4GhC"}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { CANONICAL_DOCS_SKILL_V2, canonicalCallerWorkflow, canonicalConsumerIntegrationJson, canonicalDocsScripts, canonicalDocsScriptsDigest, canonicalManagedRoute, canonicalManagedState, digestBytes } from "./consumer-integration-assets.js";
|
|
2
|
+
import { assertConsumerIntegrationDesiredStateV1 } from "./consumer-integration-desired-state.js";
|
|
3
|
+
function desiredAtRecordedRepository(desired, record) {
|
|
4
|
+
const repository = record["repository"];
|
|
5
|
+
if (typeof repository !== "object" || repository === null || Array.isArray(repository)) {
|
|
6
|
+
return undefined;
|
|
7
|
+
}
|
|
8
|
+
const candidate = repository;
|
|
9
|
+
if (candidate.provider !== desired.repository.provider || candidate.id !== desired.repository.id) {
|
|
10
|
+
return undefined;
|
|
11
|
+
}
|
|
12
|
+
const recorded = { ...desired, repository: candidate };
|
|
13
|
+
try {
|
|
14
|
+
assertConsumerIntegrationDesiredStateV1(recorded);
|
|
15
|
+
return recorded;
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function inputDigest(observation) {
|
|
22
|
+
return observation.state === "file" ? digestBytes(observation.bytes) : undefined;
|
|
23
|
+
}
|
|
24
|
+
function managedRouteDigest(observation) {
|
|
25
|
+
if (observation.state !== "file") {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
const source = Buffer.from(observation.bytes).toString("utf8").replaceAll("\r\n", "\n");
|
|
29
|
+
const begin = source.indexOf("<!-- agent-teams-docs:route/v1 begin -->");
|
|
30
|
+
const endMarker = "<!-- agent-teams-docs:route/v1 end -->";
|
|
31
|
+
const end = source.indexOf(endMarker, begin);
|
|
32
|
+
return begin >= 0 && end >= begin
|
|
33
|
+
? digestBytes(Buffer.from(source.slice(begin, end + endMarker.length), "utf8"))
|
|
34
|
+
: undefined;
|
|
35
|
+
}
|
|
36
|
+
function manifestScriptsDigest(observation, profilePath) {
|
|
37
|
+
if (observation.state !== "file") {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
try {
|
|
41
|
+
const manifest = JSON.parse(Buffer.from(observation.bytes).toString("utf8"));
|
|
42
|
+
const scripts = typeof manifest["scripts"] === "object" && manifest["scripts"] !== null &&
|
|
43
|
+
!Array.isArray(manifest["scripts"])
|
|
44
|
+
? manifest["scripts"]
|
|
45
|
+
: {};
|
|
46
|
+
const observed = Object.fromEntries(Object.keys(canonicalDocsScripts(profilePath)).map((name) => [
|
|
47
|
+
name,
|
|
48
|
+
scripts[name] ?? null
|
|
49
|
+
]));
|
|
50
|
+
return digestBytes(Buffer.from(canonicalConsumerIntegrationJson(observed), "utf8"));
|
|
51
|
+
}
|
|
52
|
+
catch {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function matchesRecordedCatalogEvidence(input) {
|
|
57
|
+
const recordedDesired = desiredAtRecordedRepository(input.desired, input.record);
|
|
58
|
+
if (recordedDesired === undefined) {
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
const expected = canonicalManagedState({ ...recordedDesired, cohort: input.prior.cohort }, {
|
|
62
|
+
skillDigest: digestBytes(input.prior.skill),
|
|
63
|
+
callerWorkflowDigest: digestBytes(input.prior.callerWorkflow),
|
|
64
|
+
assetCatalogDigest: input.prior.cohort.assets.assetCatalogDigest,
|
|
65
|
+
transitionCatalogDigest: input.prior.cohort.assets.transitionCatalogDigest,
|
|
66
|
+
agentsRouteDigest: input.prior.agentsRouteDigest,
|
|
67
|
+
docsScriptsDigest: input.prior.docsScriptsDigest
|
|
68
|
+
});
|
|
69
|
+
return canonicalConsumerIntegrationJson(input.record) ===
|
|
70
|
+
canonicalConsumerIntegrationJson(JSON.parse(expected));
|
|
71
|
+
}
|
|
72
|
+
function matchesObservedCatalogEvidence(input) {
|
|
73
|
+
return input.snapshot.skill.state === "file" &&
|
|
74
|
+
Buffer.from(input.snapshot.skill.bytes).equals(Buffer.from(input.prior.skill)) &&
|
|
75
|
+
input.snapshot.callerWorkflow.state === "file" &&
|
|
76
|
+
Buffer.from(input.snapshot.callerWorkflow.bytes).equals(Buffer.from(input.prior.callerWorkflow)) &&
|
|
77
|
+
managedRouteDigest(input.snapshot.agents) === input.prior.agentsRouteDigest &&
|
|
78
|
+
manifestScriptsDigest(input.snapshot.packageManifest, input.desired.profilePath) ===
|
|
79
|
+
input.prior.docsScriptsDigest;
|
|
80
|
+
}
|
|
81
|
+
// oxlint-disable-next-line complexity
|
|
82
|
+
export function trustedPriorCohort(desired, snapshot, catalog) {
|
|
83
|
+
if (snapshot.managedState.state !== "file") {
|
|
84
|
+
return undefined;
|
|
85
|
+
}
|
|
86
|
+
try {
|
|
87
|
+
const stateSource = Buffer.from(snapshot.managedState.bytes).toString("utf8");
|
|
88
|
+
const record = JSON.parse(stateSource);
|
|
89
|
+
const { stateDigest, ...body } = record;
|
|
90
|
+
if (typeof stateDigest !== "string" || stateDigest !== digestBytes(Buffer.from(canonicalConsumerIntegrationJson({ domain: "agent-teams.docs-protocol.managed-state/v1", body }), "utf8")) || `${canonicalConsumerIntegrationJson(record)}\n` !== stateSource) {
|
|
91
|
+
return undefined;
|
|
92
|
+
}
|
|
93
|
+
const recordedDesired = desiredAtRecordedRepository(desired, record);
|
|
94
|
+
const currentSkill = Buffer.from(CANONICAL_DOCS_SKILL_V2, "utf8");
|
|
95
|
+
const currentCaller = Buffer.from(canonicalCallerWorkflow(desired.cohort), "utf8");
|
|
96
|
+
const currentRouteDigest = digestBytes(Buffer.from(canonicalManagedRoute(desired.skillPath), "utf8"));
|
|
97
|
+
const currentScriptsDigest = canonicalDocsScriptsDigest(desired.profilePath);
|
|
98
|
+
const currentState = recordedDesired === undefined ? undefined : canonicalManagedState(recordedDesired, {
|
|
99
|
+
skillDigest: digestBytes(currentSkill),
|
|
100
|
+
callerWorkflowDigest: digestBytes(currentCaller),
|
|
101
|
+
assetCatalogDigest: catalog.catalogDigest,
|
|
102
|
+
transitionCatalogDigest: catalog.transitionCatalogDigest,
|
|
103
|
+
agentsRouteDigest: currentRouteDigest,
|
|
104
|
+
docsScriptsDigest: currentScriptsDigest
|
|
105
|
+
});
|
|
106
|
+
if (record["cohortId"] === desired.cohort.cohortId &&
|
|
107
|
+
desired.cohort.assets.skillDigest === digestBytes(currentSkill) &&
|
|
108
|
+
desired.cohort.assets.callerWorkflowDigest === digestBytes(currentCaller) &&
|
|
109
|
+
desired.cohort.assets.assetCatalogDigest === catalog.catalogDigest &&
|
|
110
|
+
desired.cohort.assets.transitionCatalogDigest === catalog.transitionCatalogDigest &&
|
|
111
|
+
currentState === stateSource && inputDigest(snapshot.skill) === digestBytes(currentSkill) &&
|
|
112
|
+
inputDigest(snapshot.callerWorkflow) === digestBytes(currentCaller) &&
|
|
113
|
+
managedRouteDigest(snapshot.agents) === currentRouteDigest &&
|
|
114
|
+
manifestScriptsDigest(snapshot.packageManifest, desired.profilePath) === currentScriptsDigest &&
|
|
115
|
+
snapshot.skill.state === "file" && snapshot.callerWorkflow.state === "file") {
|
|
116
|
+
return {
|
|
117
|
+
cohortId: desired.cohort.cohortId,
|
|
118
|
+
allowedTargetCohortIds: [],
|
|
119
|
+
schemas: desired.cohort.schemas,
|
|
120
|
+
skill: snapshot.skill.bytes,
|
|
121
|
+
callerWorkflow: snapshot.callerWorkflow.bytes,
|
|
122
|
+
agentsRouteDigest: currentRouteDigest,
|
|
123
|
+
docsScriptsDigest: currentScriptsDigest,
|
|
124
|
+
managedState: snapshot.managedState.bytes
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
const prior = catalog.directTargetBundles.find(({ cohort }) => cohort.cohortId === record["cohortId"]);
|
|
128
|
+
if (prior !== undefined && matchesRecordedCatalogEvidence({ desired, record, prior }) &&
|
|
129
|
+
matchesObservedCatalogEvidence({ desired, snapshot, prior })) {
|
|
130
|
+
return {
|
|
131
|
+
cohortId: prior.cohort.cohortId,
|
|
132
|
+
allowedTargetCohortIds: desired.cohort.upgradeFrom.includes(prior.cohort.cohortId) ||
|
|
133
|
+
prior.cohort.rollbackTo.includes(desired.cohort.cohortId)
|
|
134
|
+
? [desired.cohort.cohortId]
|
|
135
|
+
: [],
|
|
136
|
+
schemas: prior.cohort.schemas,
|
|
137
|
+
skill: prior.skill,
|
|
138
|
+
callerWorkflow: prior.callerWorkflow,
|
|
139
|
+
agentsRouteDigest: prior.agentsRouteDigest,
|
|
140
|
+
docsScriptsDigest: prior.docsScriptsDigest,
|
|
141
|
+
managedState: snapshot.managedState.bytes
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
const technicalRecordedDesired = desiredAtRecordedRepository(desired, record);
|
|
145
|
+
const assets = record["assets"];
|
|
146
|
+
const sources = assets === undefined || technicalRecordedDesired === undefined ||
|
|
147
|
+
typeof record["cohortId"] !== "string" ? [] :
|
|
148
|
+
catalog.currentSourceExecutors.filter((candidate) => canonicalConsumerIntegrationJson(record["packages"]) ===
|
|
149
|
+
canonicalConsumerIntegrationJson(candidate.packages) &&
|
|
150
|
+
canonicalConsumerIntegrationJson(record["schemas"]) ===
|
|
151
|
+
canonicalConsumerIntegrationJson(candidate.schemas) &&
|
|
152
|
+
canonicalConsumerIntegrationJson(record["runtime"]) ===
|
|
153
|
+
canonicalConsumerIntegrationJson(candidate.runtime) &&
|
|
154
|
+
assets["skillDigest"] === candidate.skillDigest &&
|
|
155
|
+
assets["callerWorkflowDigest"] === candidate.callerWorkflowDigest &&
|
|
156
|
+
assets["assetCatalogDigest"] === candidate.assetCatalogDigest &&
|
|
157
|
+
assets["assetCatalogDigest"] === catalog.catalogDigest &&
|
|
158
|
+
assets["transitionCatalogDigest"] === catalog.transitionCatalogDigest &&
|
|
159
|
+
assets["agentsRouteDigest"] === candidate.agentsRouteDigest &&
|
|
160
|
+
assets["docsScriptsDigest"] === candidate.docsScriptsDigest &&
|
|
161
|
+
inputDigest(snapshot.skill) === candidate.skillDigest &&
|
|
162
|
+
inputDigest(snapshot.callerWorkflow) === candidate.callerWorkflowDigest &&
|
|
163
|
+
managedRouteDigest(snapshot.agents) === candidate.agentsRouteDigest &&
|
|
164
|
+
manifestScriptsDigest(snapshot.packageManifest, desired.profilePath) ===
|
|
165
|
+
candidate.docsScriptsDigest);
|
|
166
|
+
const source = sources.length === 1 ? sources[0] : undefined;
|
|
167
|
+
if (source === undefined || snapshot.skill.state !== "file" ||
|
|
168
|
+
snapshot.callerWorkflow.state !== "file") {
|
|
169
|
+
return undefined;
|
|
170
|
+
}
|
|
171
|
+
return {
|
|
172
|
+
cohortId: String(record["cohortId"]),
|
|
173
|
+
allowedTargetCohortIds: source.directTargetCohortIds,
|
|
174
|
+
schemas: source.schemas,
|
|
175
|
+
skill: snapshot.skill.bytes,
|
|
176
|
+
callerWorkflow: snapshot.callerWorkflow.bytes,
|
|
177
|
+
agentsRouteDigest: source.agentsRouteDigest,
|
|
178
|
+
docsScriptsDigest: source.docsScriptsDigest,
|
|
179
|
+
managedState: snapshot.managedState.bytes
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
catch {
|
|
183
|
+
return undefined;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
//# sourceMappingURL=consumer-integration-prior-cohort.js.map
|
package/dist/consumer-integration/application/policies/consumer-integration-prior-cohort.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumer-integration-prior-cohort.js","sourceRoot":"","sources":["../../../../src/consumer-integration/application/policies/consumer-integration-prior-cohort.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,gCAAgC,EAChC,oBAAoB,EACpB,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EAErB,WAAW,EAEZ,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAalG,SAAS,2BAA2B,CAClC,OAA0C,EAC1C,MAA+B;IAE/B,MAAM,UAAU,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;IACxC,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;QACvF,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,SAAS,GAAG,UAA6D,CAAC;IAChF,IAAI,SAAS,CAAC,QAAQ,KAAK,OAAO,CAAC,UAAU,CAAC,QAAQ,IAAI,SAAS,CAAC,EAAE,KAAK,OAAO,CAA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,WAAW;gBACrD,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,oBAAoB;gBACvE,kBAAkB,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,SAAS,CAAC,iBAAiB;gBACnE,qBAAqB,CAAC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC,WAAW,CAAC;oBAClE,SAAS,CAAC,iBAAiB,CAC9B,CAAC;QACJ,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAC7D,IAAI,MAAM,KAAK,SAAS,IAAI,QAAQ,CAAC,KAAK,CAAC,KAAK,KAAK,MAAM;YACzD,QAAQ,CAAC,cAAc,CAAC,KAAK,KAAK,MAAM,EAAE,CAAC;YAC3C,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,OAAO;YACL,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YACpC,sBAAsB,EAAE,MAAM,CAAC,qBAAqB;YACpD,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK;YAC3B,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,KAAK;YAC7C,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;YAC3C,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;YAC3C,YAAY,EAAE,QAAQ,CAAC,YAAY,CAAC,KAAK;SAC1C,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { KnownFileTransactionBarrierInspection, KnownFileTransactionPlanV1, KnownFileTransactionReceiptV1 } from "@agent-teams/repository-mutation";
|
|
2
|
+
import type { ConsumerAssetCatalogV1 } from "../policies/consumer-integration-assets.js";
|
|
3
|
+
import type { ConsumerIntegrationDesiredStateV1, ConsumerIntegrationSnapshot } from "../../domain/model.js";
|
|
4
|
+
interface ConsumerIntegrationInput {
|
|
5
|
+
readonly desired: ConsumerIntegrationDesiredStateV1;
|
|
6
|
+
readonly root: string;
|
|
7
|
+
readonly snapshot: ConsumerIntegrationSnapshot;
|
|
8
|
+
}
|
|
9
|
+
export interface ConsumerIntegrationInputReader {
|
|
10
|
+
read(options: {
|
|
11
|
+
readonly consumerRoot: string;
|
|
12
|
+
readonly integrationProfilePath?: string;
|
|
13
|
+
}): Promise<ConsumerIntegrationInput>;
|
|
14
|
+
}
|
|
15
|
+
export interface ConsumerAssetCatalogReader {
|
|
16
|
+
read(): Promise<ConsumerAssetCatalogV1>;
|
|
17
|
+
}
|
|
18
|
+
export interface ConsumerIntegrationTransactionPort {
|
|
19
|
+
inspect(options: {
|
|
20
|
+
readonly consumerRoot: string;
|
|
21
|
+
}): Promise<KnownFileTransactionBarrierInspection>;
|
|
22
|
+
apply(options: {
|
|
23
|
+
readonly consumerRoot: string;
|
|
24
|
+
readonly plan: KnownFileTransactionPlanV1;
|
|
25
|
+
}): Promise<KnownFileTransactionReceiptV1>;
|
|
26
|
+
recover(options: {
|
|
27
|
+
readonly consumerRoot: string;
|
|
28
|
+
}): Promise<KnownFileTransactionReceiptV1>;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=consumer-integration-lifecycle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumer-integration-lifecycle.d.ts","sourceRoot":"","sources":["../../../../src/consumer-integration/application/ports/consumer-integration-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qCAAqC,EACrC,0BAA0B,EAC1B,6BAA6B,EAC9B,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACzF,OAAO,KAAK,EACV,iCAAiC,EACjC,2BAA2B,EAC5B,MAAM,uBAAuB,CAAC;AAE/B,UAAU,wBAAwB;IAChC,QAAQ,CAAC,OAAO,EAAE,iCAAiC,CAAC;IACpD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,2BAA2B,CAAC;CAChD;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,CAAC,OAAO,EAAE;QACZ,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;QAC9B,QAAQ,CAAC,sBAAsB,CAAC,EAAE,MAAM,CAAC;KAC1C,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,kCAAkC;IACjD,OAAO,CAAC,OAAO,EAAE;QACf,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;KAC/B,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAC;IACnD,KAAK,CAAC,OAAO,EAAE;QACb,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;QAC9B,QAAQ,CAAC,IAAI,EAAE,0BAA0B,CAAC;KAC3C,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAC3C,OAAO,CAAC,OAAO,EAAE;QACf,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;KAC/B,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;CAC5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumer-integration-lifecycle.js","sourceRoot":"","sources":["../../../../src/consumer-integration/application/ports/consumer-integration-lifecycle.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ConsumerIntegrationDigest, ConsumerIntegrationFileObservation, ConsumerIntegrationIssue, QualifiedDocsCohortBindingV1 } from "../../domain/model.js";
|
|
2
|
+
export interface AgentsRoutePlanV1 {
|
|
3
|
+
readonly state: "absent" | "conflict" | "exact-current" | "known-prior";
|
|
4
|
+
readonly currentDigest: ConsumerIntegrationDigest;
|
|
5
|
+
readonly expectedDigest: ConsumerIntegrationDigest;
|
|
6
|
+
readonly postimage?: Uint8Array;
|
|
7
|
+
readonly issues: readonly ConsumerIntegrationIssue[];
|
|
8
|
+
}
|
|
9
|
+
export interface PnpmManifestPlanV1 {
|
|
10
|
+
readonly state: "conflict" | "exact-current" | "known-prior";
|
|
11
|
+
readonly currentDigest: ConsumerIntegrationDigest;
|
|
12
|
+
readonly expectedDigest: ConsumerIntegrationDigest;
|
|
13
|
+
readonly postimage?: Uint8Array;
|
|
14
|
+
readonly issues: readonly ConsumerIntegrationIssue[];
|
|
15
|
+
}
|
|
16
|
+
export interface AgentsRoutePlannerV1 {
|
|
17
|
+
plan(input: {
|
|
18
|
+
readonly observation: ConsumerIntegrationFileObservation;
|
|
19
|
+
readonly skillPath: string;
|
|
20
|
+
readonly knownPriorRouteDigest?: ConsumerIntegrationDigest;
|
|
21
|
+
}): AgentsRoutePlanV1;
|
|
22
|
+
}
|
|
23
|
+
export interface PnpmManifestPlannerV1 {
|
|
24
|
+
plan(input: {
|
|
25
|
+
readonly observation: ConsumerIntegrationFileObservation;
|
|
26
|
+
readonly profilePath: string;
|
|
27
|
+
readonly cohort: QualifiedDocsCohortBindingV1;
|
|
28
|
+
readonly knownPriorScriptsDigest?: ConsumerIntegrationDigest;
|
|
29
|
+
}): PnpmManifestPlanV1;
|
|
30
|
+
}
|
|
31
|
+
export interface ConsumerIntegrationPlanningPorts {
|
|
32
|
+
readonly agentsRoute: AgentsRoutePlannerV1;
|
|
33
|
+
readonly packageManifest: PnpmManifestPlannerV1;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=consumer-integration-planners.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumer-integration-planners.d.ts","sourceRoot":"","sources":["../../../../src/consumer-integration/application/ports/consumer-integration-planners.ts"],"names":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B;AAED,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;IAC3C,QAAQ,CAAC,eAAe,EAAE,qBAAqB,CAAC;CACjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumer-integration-planners.js","sourceRoot":"","sources":["../../../../src/consumer-integration/application/ports/consumer-integration-planners.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { KnownFileTransactionOperationInput } from "@agent-teams/repository-mutation";
|
|
2
|
+
import type { ConsumerIntegrationDesiredStateV1, ConsumerUpgradeAuthorityV1 } from "../../domain/model.js";
|
|
3
|
+
export interface ConsumerUpgradeAuthorityReader {
|
|
4
|
+
read(options: {
|
|
5
|
+
readonly cohortId: string;
|
|
6
|
+
readonly repository: ConsumerIntegrationDesiredStateV1["repository"];
|
|
7
|
+
readonly revision?: string;
|
|
8
|
+
}): Promise<ConsumerUpgradeAuthorityV1>;
|
|
9
|
+
}
|
|
10
|
+
export interface PreparedConsumerUpgradeV1 {
|
|
11
|
+
readonly operations: readonly KnownFileTransactionOperationInput[];
|
|
12
|
+
}
|
|
13
|
+
export interface ConsumerUpgradeSandboxPort {
|
|
14
|
+
prepare(options: {
|
|
15
|
+
readonly authority: ConsumerUpgradeAuthorityV1;
|
|
16
|
+
readonly consumerRoot: string;
|
|
17
|
+
readonly current: ConsumerIntegrationDesiredStateV1;
|
|
18
|
+
}): Promise<PreparedConsumerUpgradeV1>;
|
|
19
|
+
activateAndVerify(options: {
|
|
20
|
+
readonly authority: ConsumerUpgradeAuthorityV1;
|
|
21
|
+
readonly consumerRoot: string;
|
|
22
|
+
}): Promise<void>;
|
|
23
|
+
restoreAndVerify(options: {
|
|
24
|
+
readonly consumerRoot: string;
|
|
25
|
+
readonly current: ConsumerIntegrationDesiredStateV1;
|
|
26
|
+
}): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=consumer-upgrade.d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|
1
|
+
{"version":3,"file":"consumer-upgrade.js","sourceRoot":"","sources":["../../../../src/consumer-integration/application/ports/consumer-upgrade.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { compileKnownFileTransactionPlan } from "@agent-teams/repository-mutation";
|
|
2
|
+
import type { ConsumerIntegrationPlanningPorts } from "../ports/consumer-integration-planners.js";
|
|
3
|
+
import type { ConsumerIntegrationDesiredStateV1, ConsumerIntegrationPlanV1, ConsumerIntegrationSnapshot } from "../../domain/model.js";
|
|
4
|
+
import { type ConsumerAssetCatalogV1, type KnownPriorCohortCatalogEntryV1 } from "../policies/consumer-integration-assets.js";
|
|
5
|
+
export declare function compileConsumerIntegration(input: {
|
|
6
|
+
readonly desired: ConsumerIntegrationDesiredStateV1;
|
|
7
|
+
readonly snapshot: ConsumerIntegrationSnapshot;
|
|
8
|
+
readonly assetCatalog?: ConsumerAssetCatalogV1;
|
|
9
|
+
/** Unit-level compatibility input; production composition loads package assets. */
|
|
10
|
+
readonly knownPriorCohorts?: readonly KnownPriorCohortCatalogEntryV1[];
|
|
11
|
+
}, ports: ConsumerIntegrationPlanningPorts): {
|
|
12
|
+
readonly plan: ConsumerIntegrationPlanV1;
|
|
13
|
+
readonly mutationPlan?: ReturnType<typeof compileKnownFileTransactionPlan>;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=plan-consumer-integration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-consumer-integration.d.ts","sourceRoot":"","sources":["../../../../src/consumer-integration/application/use-cases/plan-consumer-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,EAEhC,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EACV,gCAAgC,EACjC,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAEV,iCAAiC,EAIjC,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAUL,KAAK,sBAAsB,EAK3B,KAAK,8BAA8B,EACpC,MAAM,4CAA4C,CAAC;AAmTpD,wBAAgB,0BAA0B,CAAC,KAAK,EAAE;IAChD,QAAQ,CAAC,OAAO,EAAE,iCAAiC,CAAC;IACpD,QAAQ,CAAC,QAAQ,EAAE,2BAA2B,CAAC;IAC/C,QAAQ,CAAC,YAAY,CAAC,EAAE,sBAAsB,CAAC;IAC/C,mFAAmF;IACnF,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,8BAA8B,EAAE,CAAC;CACxE,EAAE,KAAK,EAAE,gCAAgC,GAAG;IAC3C,QAAQ,CAAC,IAAI,EAAE,yBAAyB,CAAC;IACzC,QAAQ,CAAC,YAAY,CAAC,EAAE,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAAC;CAC5E,CAoHA"}
|