@agent-teams/engineering-foundation 1.4.2 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/capabilities/public-api-compatibility/adapters/inbound/authority/growth-authority-contract.d.ts +10 -0
- package/dist/capabilities/public-api-compatibility/adapters/inbound/authority/growth-authority-contract.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/inbound/authority/growth-authority-contract.js +2 -0
- package/dist/capabilities/public-api-compatibility/adapters/inbound/authority/growth-authority-contract.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/crypto/node-change-fingerprint.d.ts +2 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/crypto/node-change-fingerprint.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/crypto/node-change-fingerprint.js +4 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/crypto/node-change-fingerprint.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/artifact-public-api-evidence.d.ts +7 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/artifact-public-api-evidence.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/artifact-public-api-evidence.js +16 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/artifact-public-api-evidence.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/filesystem-public-api-repository.d.ts +6 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/filesystem-public-api-repository.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/filesystem-public-api-repository.js +22 -2
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/filesystem-public-api-repository.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-invocation.d.ts +3 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-invocation.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-invocation.js +10 -7
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-invocation.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-metadata-root-sources.d.ts +13 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-metadata-root-sources.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-metadata-root-sources.js +38 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-metadata-root-sources.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-report-writer.d.ts +3 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-report-writer.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-report-writer.js +17 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-report-writer.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.d.ts +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.js +6 -2
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-evidence-files.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-evidence-files.js +64 -26
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-evidence-files.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/reviewrouter-growth-authority-acl.d.ts +18 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/reviewrouter-growth-authority-acl.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/reviewrouter-growth-authority-acl.js +51 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/reviewrouter-growth-authority-acl.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/strict-json-response.d.ts +5 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/strict-json-response.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/strict-json-response.js +118 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/strict-json-response.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/verified-growth-input-context.d.ts +28 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/verified-growth-input-context.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/verified-growth-input-context.js +163 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/verified-growth-input-context.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/verified-growth-observation.d.ts +8 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/verified-growth-observation.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/verified-growth-observation.js +59 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/verified-growth-observation.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/api.d.ts +1 -0
- package/dist/capabilities/public-api-compatibility/api.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/model/growth-admission-context.d.ts +9 -0
- package/dist/capabilities/public-api-compatibility/application/model/growth-admission-context.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/model/growth-authority.d.ts +243 -0
- package/dist/capabilities/public-api-compatibility/application/model/growth-authority.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/model/growth-authority.js +5 -0
- package/dist/capabilities/public-api-compatibility/application/model/growth-authority.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-growth-admission.d.ts +18 -2
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-growth-admission.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-growth-admission.js +35 -15
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-growth-admission.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-growth-release-compatibility.d.ts +4 -2
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-growth-release-compatibility.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-growth-release-compatibility.js +76 -9
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-growth-release-compatibility.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-initial-release.d.ts +15 -0
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-initial-release.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-initial-release.js +26 -0
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-initial-release.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/normalize-growth-observation.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/normalize-growth-observation.js +2 -1
- package/dist/capabilities/public-api-compatibility/application/policies/normalize-growth-observation.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/project-growth-report.js +47 -19
- package/dist/capabilities/public-api-compatibility/application/policies/project-growth-report.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-authority-primitives.d.ts +18 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-authority-primitives.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-authority-primitives.js +153 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-authority-primitives.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-authority.d.ts +24 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-authority.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-authority.js +610 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-authority.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-installed-inventory.d.ts +8 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-installed-inventory.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-installed-inventory.js +11 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-installed-inventory.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-metadata-root.d.ts +13 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-metadata-root.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-metadata-root.js +121 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-metadata-root.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/ports/change-fingerprint.d.ts +2 -1
- package/dist/capabilities/public-api-compatibility/application/ports/change-fingerprint.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/ports/growth-authority.d.ts +17 -0
- package/dist/capabilities/public-api-compatibility/application/ports/growth-authority.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/ports/growth-authority.js +2 -0
- package/dist/capabilities/public-api-compatibility/application/ports/growth-authority.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/ports/growth-input-context.d.ts +11 -1
- package/dist/capabilities/public-api-compatibility/application/ports/growth-input-context.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/ports/public-api-repository.d.ts +6 -0
- package/dist/capabilities/public-api-compatibility/application/ports/public-api-repository.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/admit-sdk-growth.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/admit-sdk-growth.js +31 -5
- package/dist/capabilities/public-api-compatibility/application/use-cases/admit-sdk-growth.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/check-sdk-growth.d.ts +11 -2
- package/dist/capabilities/public-api-compatibility/application/use-cases/check-sdk-growth.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/check-sdk-growth.js +11 -8
- package/dist/capabilities/public-api-compatibility/application/use-cases/check-sdk-growth.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/preflight-public-api-promotions.d.ts +2 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/preflight-public-api-promotions.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/preflight-public-api-promotions.js +16 -4
- package/dist/capabilities/public-api-compatibility/application/use-cases/preflight-public-api-promotions.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/promote-public-api-baselines.js +9 -7
- package/dist/capabilities/public-api-compatibility/application/use-cases/promote-public-api-baselines.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/qualify-sdk-growth.d.ts +16 -0
- package/dist/capabilities/public-api-compatibility/application/use-cases/qualify-sdk-growth.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/use-cases/qualify-sdk-growth.js +45 -0
- package/dist/capabilities/public-api-compatibility/application/use-cases/qualify-sdk-growth.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/authority-module.d.ts +30 -0
- package/dist/capabilities/public-api-compatibility/authority-module.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/authority-module.js +142 -0
- package/dist/capabilities/public-api-compatibility/authority-module.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/module.d.ts +16 -0
- package/dist/capabilities/public-api-compatibility/module.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/module.js +6 -6
- package/dist/capabilities/public-api-compatibility/module.js.map +1 -1
- package/dist/composition/quality-coverage.d.ts +1 -1
- package/dist/composition/quality-coverage.d.ts.map +1 -1
- package/dist/composition/sdk-growth-authority.d.ts +13 -0
- package/dist/composition/sdk-growth-authority.d.ts.map +1 -0
- package/dist/composition/sdk-growth-authority.js +19 -0
- package/dist/composition/sdk-growth-authority.js.map +1 -0
- package/dist/features/validation-reporting/api.d.ts +1 -1
- package/dist/features/validation-reporting/api.d.ts.map +1 -1
- package/dist/features/validation-reporting/api.js.map +1 -1
- package/dist/features/validation-reporting/application/model.d.ts +2 -3
- package/dist/features/validation-reporting/application/model.d.ts.map +1 -1
- package/dist/sdk-growth-authority.d.ts +15 -0
- package/dist/sdk-growth-authority.d.ts.map +1 -0
- package/dist/sdk-growth-authority.js +2 -0
- package/dist/sdk-growth-authority.js.map +1 -0
- package/package.json +5 -1
package/dist/capabilities/public-api-compatibility/application/use-cases/check-sdk-growth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-sdk-growth.js","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/use-cases/check-sdk-growth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAEjF,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;
|
|
1
|
+
{"version":3,"file":"check-sdk-growth.js","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/use-cases/check-sdk-growth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAEjF,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,kDAAk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AAE,KAAK;aACrF,CAAC,CAAC,EAAE;gBACH,MAAM,EAAE,oDAAoD,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,UAAU;gBAC3G,OAAO,EAAE,cAAc,MAAM,YAAY,WAAW,CAAC,MAAM,GAAG,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,UAAU,EAAE,EAAE,gBAAgB,EAAE,EAAE;gBACrI,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,0BAA0B,EAAE,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE;oBAChJ,EAAE,IAAI,EAAE,8BAA8B,EAAE,KAAK,EAAE,OAAO,CAAC,gBAAgB,EAAE,CAAC;gBAC5E,WAAW,EAAE,+IAA+I;gBAC5J,0BAA0B,EAAE,KAAK;aAClC,CAAC,EAAE,CAAC,CAAC;IACR,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,WAAW,CAAC,MAAM;QACpE,gBAAgB,EAAE,MAAM,CAAC,UAAU,CAAC,GAAG,mBAAmB,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,CAAC;AACvF,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,KAA6C,EAC7C,YAAoD;IAEpD,OAAO,CAAC,MAAM,gBAAgB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,UAAU,CAAC;AAClE,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import type { PublicApiRepository } from "../ports/public-api-repository.js";
|
|
1
2
|
import { promotePublicApiBaselines } from "./promote-public-api-baselines.js";
|
|
2
3
|
/** Validate every typed and artifact change before the first release-owned write. */
|
|
3
|
-
export declare function preflightPublicApiPromotions(input: Parameters<typeof promotePublicApiBaselines>[0], surfaces: readonly Parameters<typeof promotePublicApiBaselines>[1][]): Promise<readonly import("../model/public-api.js").PublicApiSnapshot[]>;
|
|
4
|
+
export declare function preflightPublicApiPromotions(input: Parameters<typeof promotePublicApiBaselines>[0], surfaces: readonly Parameters<typeof promotePublicApiBaselines>[1][], authorize?: (writes: readonly Awaited<ReturnType<PublicApiRepository["describeReleasedBaselineWrite"]>>[]) => Promise<void>): Promise<readonly import("../model/public-api.js").PublicApiSnapshot[]>;
|
|
4
5
|
//# sourceMappingURL=preflight-public-api-promotions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preflight-public-api-promotions.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/use-cases/preflight-public-api-promotions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"preflight-public-api-promotions.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/use-cases/preflight-public-api-promotions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,qFAAqF;AACrF,wBAAsB,4BAA4B,CAChD,KAAK,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC,CAAC,EACtD,QAAQ,EAAE,SAAS,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC,CAAC,EAAE,EACpE,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC,+BAA+B,CAAC,CAAC,CAAC,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,0EA8B5H"}
|
|
@@ -1,19 +1,31 @@
|
|
|
1
1
|
import { promotePublicApiBaselines } from "./promote-public-api-baselines.js";
|
|
2
2
|
/** Validate every typed and artifact change before the first release-owned write. */
|
|
3
|
-
export async function preflightPublicApiPromotions(input, surfaces) {
|
|
3
|
+
export async function preflightPublicApiPromotions(input, surfaces, authorize) {
|
|
4
4
|
const writes = [];
|
|
5
|
+
const plan = [];
|
|
5
6
|
const results = [];
|
|
6
7
|
for (const dependencies of surfaces) {
|
|
7
8
|
const repository = {
|
|
8
9
|
readReleasedBaseline: dependencies.repository.readReleasedBaseline.bind(dependencies.repository),
|
|
9
10
|
readReleaseEvidence: dependencies.repository.readReleaseEvidence.bind(dependencies.repository),
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
describeReleasedBaselineWrite: async (...args) => {
|
|
12
|
+
if (typeof dependencies.repository.describeReleasedBaselineWrite !== "function") {
|
|
13
|
+
throw new TypeError("Public API baseline authorization requires a write-plan adapter.");
|
|
14
|
+
}
|
|
15
|
+
return dependencies.repository.describeReleasedBaselineWrite(...args);
|
|
16
|
+
},
|
|
17
|
+
writeReleasedBaseline: async (...args) => {
|
|
18
|
+
if (authorize !== undefined) {
|
|
19
|
+
plan.push(await repository.describeReleasedBaselineWrite(args[0], args[1], args[2], args[4] ?? "replace"));
|
|
20
|
+
}
|
|
21
|
+
writes.push(() => authorize === undefined
|
|
22
|
+
? dependencies.repository.writeReleasedBaseline(...args)
|
|
23
|
+
: dependencies.repository.writeReleasedBaseline(args[0], args[1], args[2], undefined, args[4]));
|
|
13
24
|
}
|
|
14
25
|
};
|
|
15
26
|
results.push(await promotePublicApiBaselines(input, { ...dependencies, repository }));
|
|
16
27
|
}
|
|
28
|
+
await authorize?.(plan);
|
|
17
29
|
for (const write of writes) {
|
|
18
30
|
await write();
|
|
19
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preflight-public-api-promotions.js","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/use-cases/preflight-public-api-promotions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,qFAAqF;AACrF,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,KAAsD,EACtD,QAAoE;
|
|
1
|
+
{"version":3,"file":"preflight-public-api-promotions.js","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/use-cases/preflight-public-api-promotions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,qFAAqF;AACrF,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,KAAsD,EACtD,QAAoE,EACpE,SAA2H;IAE3H,MAAM,MAAM,GAA+B,EAAE,CAAC;IAC9C,MAAM,IAAI,GAAqF,EAAE,CAAC;IAClG,MAAM,OAAO,GAAG,EAAE,CAAC;IACnB,KAAK,MAAM,YAAY,IAAI,QAAQ,EAAE,CAAC;QACpC,MAAM,UAAU,GAAwB;YACtC,oBAAoB,EAAE,YAAY,CAAC,UAAU,CAAC,oBAAoB,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC;YAChG,mBAAmB,EAAE,YAAY,CAAC,UAAU,CAAC,mBAAmB,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC;YAC9F,6BAA6B,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE;gBAC/C,IAAI,OAAO,YAAY,CAAC,UAAU,CAAC,6BAA6B,KAAK,UAAU,EAAE,CAAC;oBAChF,MAAM,IAAI,SAAS,CAAC,kEAAkE,CAAC,CAAC;gBAC1F,CAAC;gBACD,OAAO,YAAY,CAAC,UAAU,CAAC,6BAA6B,CAAC,GAAG,IAAI,CAAC,CAAC;YACxE,CAAC;YACD,qBAAqB,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE;gBACvC,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;oBAC5B,IAAI,CAAC,IAAI,CAAC,MAAM,UAAU,CAAC,6BAA6B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC;gBAC7G,CAAC;gBACD,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,KAAK,SAAS;oBACvC,CAAC,CAAC,YAAY,CAAC,UAAU,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;oBACxD,CAAC,CAAC,YAAY,CAAC,UAAU,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACpG,CAAC;SACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,MAAM,yBAAyB,CAAC,KAAK,EAAE,EAAE,GAAG,YAAY,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC;IACxF,CAAC;IACD,MAAM,SAAS,EAAE,CAAC,IAAI,CAAC,CAAC;IACxB,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAAC,MAAM,KAAK,EAAE,CAAC;IAAC,CAAC;IAC9C,kEAAkE;IAClE,OAAO,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AAC1B,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { approvedBreakingChangeReference } from "../model/public-api.js";
|
|
|
4
4
|
import { isApprovedBreakingChangeAccepted } from "../policies/accepted-breaking-change.js";
|
|
5
5
|
import { classifyPublicApiChange } from "../policies/evaluate-public-api-compatibility.js";
|
|
6
6
|
import { collectUnchangedPublicTypeBindings } from "../policies/default-type-argument-equivalence.js";
|
|
7
|
+
import { evaluateBaselineBootstrapPolicy, initialUnreleasedVersion } from "../policies/evaluate-initial-release.js";
|
|
7
8
|
function promotionError(code, message) {
|
|
8
9
|
throw new CapabilityInputError({
|
|
9
10
|
code,
|
|
@@ -13,7 +14,6 @@ function promotionError(code, message) {
|
|
|
13
14
|
});
|
|
14
15
|
}
|
|
15
16
|
const BUMP_RANK = Object.freeze({ patch: 0, minor: 1, major: 2 });
|
|
16
|
-
const INITIAL_UNRELEASED_VERSION = "0.0.0";
|
|
17
17
|
function effectiveReleaseBump(input) {
|
|
18
18
|
if (input.prereleaseInitialVersion === undefined || input.prereleaseTag === undefined) {
|
|
19
19
|
return input.actualBump;
|
|
@@ -26,15 +26,17 @@ function effectiveReleaseBump(input) {
|
|
|
26
26
|
return prereleaseLineBump;
|
|
27
27
|
}
|
|
28
28
|
function assertReviewedBootstrap(packagePolicy, releaseEvidence) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
const result = evaluateBaselineBootstrapPolicy(packagePolicy.packageName, releaseEvidence);
|
|
30
|
+
if (result.status === "accepted") {
|
|
31
|
+
return;
|
|
31
32
|
}
|
|
32
|
-
if (
|
|
33
|
-
promotionError("
|
|
33
|
+
if (result.failure === "version-not-initial" || result.failure === "package-mismatch") {
|
|
34
|
+
promotionError("PUBLIC_API_BASELINE_BOOTSTRAP_NOT_INITIAL", `Missing baseline for ${packagePolicy.packageName} can be bootstrapped only for that exact package at the initial unreleased version ${initialUnreleasedVersion}.`);
|
|
34
35
|
}
|
|
35
|
-
if (
|
|
36
|
-
promotionError("
|
|
36
|
+
if (result.failure === "changeset-missing") {
|
|
37
|
+
promotionError("PUBLIC_API_BASELINE_BOOTSTRAP_CHANGESET_MISSING", `Initial public API baseline for ${packagePolicy.packageName} requires a Changeset.`);
|
|
37
38
|
}
|
|
39
|
+
promotionError("PUBLIC_API_BASELINE_BOOTSTRAP_CHANGESET_INSUFFICIENT", `Initial public API baseline for ${packagePolicy.packageName} requires at least a minor Changeset.`);
|
|
38
40
|
}
|
|
39
41
|
function assertExtractorVersionMatch(released, current) {
|
|
40
42
|
if (released.extractorVersion !== current.extractorVersion) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promote-public-api-baselines.js","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/use-cases/promote-public-api-baselines.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAC,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AAC3G,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC3B,MAAM,iCAAiC,CAAC;AASzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,gCAAgC,EAAE,MAAM,yCAAyC,CAAC;AAC3F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AAC3F,OAAO,EAAE,kCAAkC,EAAE,MAAM,kDAAkD,CAAC;
|
|
1
|
+
{"version":3,"file":"promote-public-api-baselines.js","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/use-cases/promote-public-api-baselines.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAC,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AAC3G,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC3B,MAAM,iCAAiC,CAAC;AASzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,gCAAgC,EAAE,MAAM,yCAAyC,CAAC;AAC3F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AAC3F,OAAO,EAAE,kCAAkC,EAAE,MAAM,kDAAkD,CAAC;AACtG,OAAO,EAAE,+BAA+B,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAEpH,SAAS,cAAc,CAAC,IAAY,EAAE,OAAe;IACnD,MAAM,IAAI,oBAAoB,CAAC;QAC7B,IAAI;QACJ,OAAO;QACP,KAAK,EAAE,+BAA+B;QACtC,SAAS,EAAE,KAAK;KACjB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AAElE,SAA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ityReceipt } from "../model/growth-authority.js";
|
|
2
|
+
import type { GrowthAuthorityPort } from "../ports/growth-authority.js";
|
|
3
|
+
import type { ResolvedGrowthInputContextPort } from "../ports/growth-input-context.js";
|
|
4
|
+
import type { ChangeFingerprint } from "../ports/change-fingerprint.js";
|
|
5
|
+
import { executeSdkGrowth, type SdkGrowthCheckExecution } from "./check-sdk-growth.js";
|
|
6
|
+
export interface QualifiedSdkGrowthExecution extends SdkGrowthCheckExecution {
|
|
7
|
+
readonly receipt?: GrowthAuthorityReceipt;
|
|
8
|
+
}
|
|
9
|
+
/** Coordinates the already-existing check with authenticated completion.
|
|
10
|
+
* Report publication precedes completion so the receipt binds finalized bytes. */
|
|
11
|
+
export declare function qualifySdkGrowth(input: Parameters<typeof executeSdkGrowth>[0], dependencies: Parameters<typeof executeSdkGrowth>[1] & {
|
|
12
|
+
readonly context: ResolvedGrowthInputContextPort;
|
|
13
|
+
readonly authority: GrowthAuthorityPort;
|
|
14
|
+
readonly fingerprint: ChangeFingerprint;
|
|
15
|
+
}): Promise<QualifiedSdkGrowthExecution>;
|
|
16
|
+
//# sourceMappingURL=qualify-sdk-growth.d.ts.map
|
package/dist/capabilities/public-api-compatibility/application/use-cases/qualify-sdk-growth.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qualify-sdk-growth.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/use-cases/qualify-sdk-growth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAG3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAExE,OAAO,EAAE,gBAAgB,EAAE,KAAK,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEvF,MAAM,WAAW,2BAA4B,SAAQ,uBAAuB;IAC1E,QAAQ,CAAC,OAAO,CAAC,EAAE,sBAAsB,CAAC;CAC3C;AAED;kFACkF;AAClF,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAC7C,YAAY,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG;IACrD,QAAQ,CAAC,OAAO,EAAE,8BAA8B,CAAC;IACjD,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC;IACxC,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAC;CACzC,GACA,OAAO,CAAC,2BAA2B,CAAC,CAmCtC"}
|
package/dist/capabilities/public-api-compatibility/application/use-cases/qualify-sdk-growth.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { growthAuthoritySchemaVersion } from "../model/growth-authority.js";
|
|
2
|
+
import { GrowthObservationInvariantError } from "../model/growth-observation.js";
|
|
3
|
+
import { growthReportAuthorityDigests } from "../policies/validate-growth-authority.js";
|
|
4
|
+
import { executeSdkGrowth } from "./check-sdk-growth.js";
|
|
5
|
+
/** Coordinates the already-existing check with authenticated completion.
|
|
6
|
+
* Report publication precedes completion so the receipt binds finalized bytes. */
|
|
7
|
+
export async function qualifySdkGrowth(input, dependencies) {
|
|
8
|
+
const execution = await executeSdkGrowth(input, dependencies);
|
|
9
|
+
if (execution.report === undefined || execution.reportDigest === undefined || execution.reportByteLength === undefined) {
|
|
10
|
+
return execution;
|
|
11
|
+
}
|
|
12
|
+
const resolved = dependencies.context.resolution();
|
|
13
|
+
const digests = growthReportAuthorityDigests(execution.report, dependencies.fingerprint);
|
|
14
|
+
if (digests.coverageDigest !== resolved.grant.requiredCoverageDigest) {
|
|
15
|
+
throw new GrowthObservationInvariantError("growth-authority-coverage-mismatch");
|
|
16
|
+
}
|
|
17
|
+
const cancellation = { ...(input.signal === undefined ? {} : { signal: input.signal }),
|
|
18
|
+
throwIfCancelled() {
|
|
19
|
+
if (input.signal?.aborted === true) {
|
|
20
|
+
throw input.signal.reason;
|
|
21
|
+
}
|
|
22
|
+
} };
|
|
23
|
+
const completion = {
|
|
24
|
+
schemaVersion: growthAuthoritySchemaVersion,
|
|
25
|
+
kind: "completion",
|
|
26
|
+
grantId: resolved.grant.grantId,
|
|
27
|
+
grantDigest: resolved.grantDigest,
|
|
28
|
+
requestDigest: resolved.requestDigest,
|
|
29
|
+
binding: resolved.grant.binding,
|
|
30
|
+
reportDigest: execution.reportDigest,
|
|
31
|
+
reportByteLength: execution.reportByteLength,
|
|
32
|
+
coverageDigest: digests.coverageDigest,
|
|
33
|
+
phasesDigest: digests.phasesDigest,
|
|
34
|
+
verdict: execution.report.verdict,
|
|
35
|
+
releaseEligible: execution.report.releaseEligible,
|
|
36
|
+
publication: "finalized",
|
|
37
|
+
promotion: { kind: "none" }
|
|
38
|
+
};
|
|
39
|
+
const receipt = await dependencies.authority.complete(completion, cancellation);
|
|
40
|
+
if (execution.report.verdict === "admitted" && (receipt.qualification !== "qualified" || !receipt.releaseEligible)) {
|
|
41
|
+
throw new GrowthObservationInvariantError("growth-authority-qualified-receipt-required");
|
|
42
|
+
}
|
|
43
|
+
return { ...execution, receipt };
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=qualify-sdk-growth.js.map
|
package/dist/capabilities/public-api-compatibility/application/use-cases/qualify-sdk-growth.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qualify-sdk-growth.js","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/use-cases/qualify-sdk-growth.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAIjF,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAA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K,CAAC,OAAO;QAC/B,YAAY,EAAE,SAAS,CAAC,YAAY;QACpC,gBAAgB,EAAE,SAAS,CAAC,gBAAgB;QAC5C,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,OAAO,EAAE,SAAS,CAAC,MAAM,CAAC,OAAO;QACjC,eAAe,EAAE,SAAS,CAAC,MAAM,CAAC,eAAe;QACjD,WAAW,EAAE,WAAoB;QACjC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAe,EAAE;KACrC,CAAC;IACF,MAAM,OAAO,GAAG,MAAM,YAAY,CAAC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IAChF,IAAI,SAAS,CAAC,MAAM,CAAC,OAAO,KAAK,UAAU,IAAI,CAAC,OAAO,CAAC,aAAa,KAAK,WAAW,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC;QACnH,MAAM,IAAI,+BAA+B,CAAC,6CAA6C,CAAC,CAAC;IAC3F,CAAC;IACD,OAAO,EAAE,GAAG,SAAS,EAAE,OAAO,EAAE,CAAC;AACnC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type PublicApiConfigurationDependencies } from "./adapters/inbound/configuration/load-capability-config.js";
|
|
2
|
+
import type { SdkGrowthAuthorityTransport } from "./adapters/inbound/authority/growth-authority-contract.js";
|
|
3
|
+
import type { GrowthAuthorityBinding, GrowthAuthorityReceipt } from "./application/model/growth-authority.js";
|
|
4
|
+
import type { JsonSchemaSetInspector } from "./application/ports/package-artifact-inventory.js";
|
|
5
|
+
export interface SdkGrowthAuthorityOperationInput {
|
|
6
|
+
readonly consumerRoot: string;
|
|
7
|
+
readonly configPath: string;
|
|
8
|
+
readonly binding: GrowthAuthorityBinding;
|
|
9
|
+
readonly signal?: AbortSignal;
|
|
10
|
+
}
|
|
11
|
+
export interface SdkGrowthAuthorityModuleDependencies {
|
|
12
|
+
readonly transport: SdkGrowthAuthorityTransport;
|
|
13
|
+
readonly installedInventory?: import("./application/ports/growth-authority.js").GrowthInstalledInventoryReader | undefined;
|
|
14
|
+
readonly readAcceptedDecisions: import("./application/ports/accepted-decision-evidence.js").AcceptedArchitectureDecisionReader;
|
|
15
|
+
readonly assertSchema: PublicApiConfigurationDependencies["assertSchema"];
|
|
16
|
+
readonly inspector: JsonSchemaSetInspector;
|
|
17
|
+
readonly now?: (() => Date) | undefined;
|
|
18
|
+
}
|
|
19
|
+
/** Trusted ReviewRouter port/adapter assembly. This module publishes no status
|
|
20
|
+
* and owns no ReviewRouter persistence or authentication implementation. */
|
|
21
|
+
export declare function createSdkGrowthAuthorityModule(dependencies: SdkGrowthAuthorityModuleDependencies): Readonly<{
|
|
22
|
+
qualifyCheck(input: SdkGrowthAuthorityOperationInput): Promise<import("./application/use-cases/qualify-sdk-growth.js").QualifiedSdkGrowthExecution>;
|
|
23
|
+
promoteRelease(input: SdkGrowthAuthorityOperationInput & {
|
|
24
|
+
readonly admissionReceiptId: string;
|
|
25
|
+
}): Promise<{
|
|
26
|
+
readonly snapshots: readonly import("./application/model/public-api.js").PublicApiSnapshot[];
|
|
27
|
+
readonly receipt: GrowthAuthorityReceipt;
|
|
28
|
+
}>;
|
|
29
|
+
}>;
|
|
30
|
+
//# sourceMappingURL=authority-module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authority-module.d.ts","sourceRoot":"","sources":["../../../src/capabilities/public-api-compatibility/authority-module.ts"],"names":[],"mappings":"AAKA,OAAO,EAAwB,KAAK,kCAAkC,EAAE,MAAM,4DAA4D,CAAC;AAQ3I,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,2DAA2D,CAAC;AAC7G,OAAO,KAAK,EAAE,sBAAsB,EAAE,sBAAsB,EAAuB,MAAM,yCAAyC,CAAC;AAGnI,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAchG,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,sBAAsB,CAAC;IACzC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AAED,MAAM,WAAW,oCAAoC;IACnD,QAAQ,CAAC,SAAS,EAAE,2BAA2B,CAAC;IAChD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,yCAAyC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IAC3H,QAAQ,CAAC,qBAAqB,EAAE,OAAO,mDAAmD,EAAE,kCAAkC,CAAC;IAC/H,QAAQ,CAAC,YAAY,EAAE,kCAAkC,CAAC,cAAc,CAAC,CAAC;IAC1E,QAAQ,CAAC,SAAS,EAAE,sBAAsB,CAAC;IAC3C,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;CACzC;AAMD;4EAC4E;AAC5E,wBAAgB,8BAA8B,CAAC,YAAY,EAAE,oCAAoC;wBAuCnE,gCAAgC;0BAqB9B,gCAAgC,GAAG;QAAE,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,QAAQ,CAAC,SAAS,EAAE,SAAS,OAAO,mCAAmC,EAAE,iBAAiB,EAAE,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,sBAAsB,CAAA;KAAE,CAAC;GAgD/P"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { createVerifiedGrowthObservation } from "./adapters/outbound/reviewrouter/verified-growth-observation.js";
|
|
2
|
+
import { createManagedProcessExecutor } from "../../process-execution/module.js";
|
|
3
|
+
import { pathTraversesSymbolicLink, readContainedRegularFile } from "../../source-inventory/node.js";
|
|
4
|
+
import { createWorkspaceInventoryReader } from "../../workspace-inventory/module.js";
|
|
5
|
+
import { assertGrowthReportDestination } from "./adapters/inbound/configuration/parse-growth-config.js";
|
|
6
|
+
import { loadCapabilityConfig } from "./adapters/inbound/configuration/load-capability-config.js";
|
|
7
|
+
import { createFilesystemGrowthInputContext } from "./adapters/outbound/filesystem/growth-input-context.js";
|
|
8
|
+
import { assertGrowthMetadataRootSources } from "./adapters/outbound/filesystem/growth-metadata-root-sources.js";
|
|
9
|
+
import { readGrowthInvocation, assertGrowthDestination, growthBytesDigest, readGrowthInputFile } from "./adapters/outbound/filesystem/growth-invocation.js";
|
|
10
|
+
import { createFilesystemGrowthReportWriter, parseFinalizedGrowthReport } from "./adapters/outbound/filesystem/growth-report-writer.js";
|
|
11
|
+
import { createWorkspaceGrowthReader } from "./adapters/outbound/filesystem/workspace-growth-reader.js";
|
|
12
|
+
import { ReviewRouterGrowthAuthorityAcl } from "./adapters/outbound/reviewrouter/reviewrouter-growth-authority-acl.js";
|
|
13
|
+
import { VerifiedGrowthInputContext } from "./adapters/outbound/reviewrouter/verified-growth-input-context.js";
|
|
14
|
+
import { growthAuthoritySchemaVersion } from "./application/model/growth-authority.js";
|
|
15
|
+
import { GrowthObservationInvariantError } from "./application/model/growth-observation.js";
|
|
16
|
+
import { hashGrowthPayload } from "./application/policies/compare-growth-surfaces.js";
|
|
17
|
+
import { growthCanonicalJson } from "./application/policies/normalize-growth-observation.js";
|
|
18
|
+
import { growthAuthorityGrantDigest, growthAuthorityRepositoryIdentity, growthPromotionPlanDigest, growthReportAuthorityDigests, validateGrowthAuthorityBinding } from "./application/policies/validate-growth-authority.js";
|
|
19
|
+
import { preflightPublicApiPromotions } from "./application/use-cases/preflight-public-api-promotions.js";
|
|
20
|
+
import { qualifySdkGrowth } from "./application/use-cases/qualify-sdk-growth.js";
|
|
21
|
+
import { loadStrictYamlFile } from "../../features/configuration-input/node.js";
|
|
22
|
+
import { createPublicApiArtifactDependencies, createPublicApiCompatibilityDependencies } from "./module.js";
|
|
23
|
+
const files = { read: readContainedRegularFile };
|
|
24
|
+
const paths = { traversesSymbolicLink: pathTraversesSymbolicLink };
|
|
25
|
+
const commandDigestPayload = Object.freeze({ domain: "reviewrouter:sdk-growth-authority:command:1",
|
|
26
|
+
entrypoint: "@agent-teams/engineering-foundation/sdk-growth-authority", operations: ["check", "promote-release"] });
|
|
27
|
+
function invariant(condition, reason) {
|
|
28
|
+
if (!condition) {
|
|
29
|
+
throw new GrowthObservationInvariantError(reason);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/** Trusted ReviewRouter port/adapter assembly. This module publishes no status
|
|
33
|
+
* and owns no ReviewRouter persistence or authentication implementation. */
|
|
34
|
+
export function createSdkGrowthAuthorityModule(dependencies) {
|
|
35
|
+
const common = createPublicApiCompatibilityDependencies(dependencies.readAcceptedDecisions, dependencies.assertSchema);
|
|
36
|
+
if (dependencies.now === undefined) {
|
|
37
|
+
throw new GrowthObservationInvariantError("growth-authority-clock-required");
|
|
38
|
+
}
|
|
39
|
+
const now = dependencies.now;
|
|
40
|
+
const processes = createManagedProcessExecutor();
|
|
41
|
+
async function setup(input, operation, admissionReceiptId) {
|
|
42
|
+
const policy = await loadCapabilityConfig({ readYaml: loadStrictYamlFile, assertSchema: dependencies.assertSchema }, input.consumerRoot, input.configPath, input.signal);
|
|
43
|
+
invariant(policy.schemaVersion === 2, "growth-authority-v2-required");
|
|
44
|
+
await assertGrowthDestination(input.consumerRoot, policy.sdkGrowth.reportPath);
|
|
45
|
+
const inventory = await createWorkspaceGrowthReader(createWorkspaceInventoryReader()).read(input.consumerRoot, "pnpm-workspace.yaml", input.signal);
|
|
46
|
+
assertGrowthReportDestination(policy.sdkGrowth.reportPath, inventory.packages.flatMap((pkg) => [pkg.rootPath, pkg.manifestPath]));
|
|
47
|
+
const identityInputs = { files, runGit: (args, signal) => processes.run({
|
|
48
|
+
command: "git", args, cwd: input.consumerRoot, timeoutMs: 10_000, ...(signal === undefined ? {} : { signal })
|
|
49
|
+
}) };
|
|
50
|
+
const binding = validateGrowthAuthorityBinding(input.binding);
|
|
51
|
+
const mapInvocation = async (signal) => {
|
|
52
|
+
const observed = await readGrowthInvocation(input.consumerRoot, inventory, identityInputs, signal);
|
|
53
|
+
return { ...observed, repository: growthAuthorityRepositoryIdentity(binding.target.repository) };
|
|
54
|
+
};
|
|
55
|
+
const invocation = await mapInvocation(input.signal);
|
|
56
|
+
invariant(growthCanonicalJson(binding.invocation) === growthCanonicalJson(invocation), "growth-authority-invocation-mismatch");
|
|
57
|
+
const configBytes = await readGrowthInputFile(input.consumerRoot, input.configPath, files);
|
|
58
|
+
invariant(binding.policy.configurationDigest === growthBytesDigest(configBytes), "growth-authority-policy-digest-mismatch");
|
|
59
|
+
const scopeDigest = hashGrowthPayload({ domain: "reviewrouter:sdk-growth-authority:scope:1", packages: policy.compatibility.packages }, common.fingerprint);
|
|
60
|
+
invariant(binding.policy.scopeDigest === scopeDigest, "growth-authority-scope-digest-mismatch");
|
|
61
|
+
const commandDigest = hashGrowthPayload(commandDigestPayload, common.fingerprint);
|
|
62
|
+
invariant(binding.policy.commandDigest === commandDigest, "growth-authority-command-digest-mismatch");
|
|
63
|
+
const authority = new ReviewRouterGrowthAuthorityAcl(dependencies.transport, common.fingerprint, now, dependencies.installedInventory);
|
|
64
|
+
const candidate = createFilesystemGrowthInputContext({ consumerRoot: input.consumerRoot, policy: policy.compatibility }, { ...common, assertSchema: dependencies.assertSchema });
|
|
65
|
+
const context = new VerifiedGrowthInputContext({ candidate, authority, binding, operation,
|
|
66
|
+
assertMetadataRoots: (roots, cancellation) => assertGrowthMetadataRootSources(roots, input.consumerRoot, identityInputs, cancellation),
|
|
67
|
+
...(admissionReceiptId === undefined ? {} : { admissionReceiptId }), fingerprint: common.fingerprint, assertSchema: dependencies.assertSchema });
|
|
68
|
+
const readInvocation = (cancellation) => mapInvocation(cancellation.signal);
|
|
69
|
+
return { policy, inventory, invocation, binding, authority, context, readInvocation };
|
|
70
|
+
}
|
|
71
|
+
return Object.freeze({
|
|
72
|
+
async qualifyCheck(input) {
|
|
73
|
+
const state = await setup(input, "check");
|
|
74
|
+
await state.context.read({ ...state.policy.sdkGrowth.comparison, decisionsPath: state.policy.sdkGrowth.decisionsPath }, {
|
|
75
|
+
...(input.signal === undefined ? {} : { signal: input.signal }),
|
|
76
|
+
throwIfCancelled() { if (input.signal?.aborted === true) {
|
|
77
|
+
throw input.signal.reason;
|
|
78
|
+
} }
|
|
79
|
+
});
|
|
80
|
+
const context = {
|
|
81
|
+
read: async () => structuredClone(state.context.resolution().context),
|
|
82
|
+
resolution: () => state.context.resolution(),
|
|
83
|
+
packedCandidates: () => state.context.packedCandidates()
|
|
84
|
+
};
|
|
85
|
+
return qualifySdkGrowth({ consumerRoot: input.consumerRoot, policy: state.policy, invocation: state.invocation,
|
|
86
|
+
...(input.signal === undefined ? {} : { signal: input.signal }) }, {
|
|
87
|
+
repository: common.repository, fingerprint: common.fingerprint, typed: common.extractor,
|
|
88
|
+
artifact: new (await import("./adapters/outbound/filesystem/filesystem-package-artifact-inventory.js")).FilesystemPackageArtifactInventory(dependencies.inspector, { files, paths }),
|
|
89
|
+
workspace: { read: async () => state.inventory }, context, authority: state.authority,
|
|
90
|
+
observationBoundary: (local) => createVerifiedGrowthObservation(local, state.context, common.fingerprint),
|
|
91
|
+
writer: createFilesystemGrowthReportWriter(input.consumerRoot), readInvocation: state.readInvocation
|
|
92
|
+
});
|
|
93
|
+
},
|
|
94
|
+
async promoteRelease(input) {
|
|
95
|
+
const state = await setup(input, "promote-release", input.admissionReceiptId);
|
|
96
|
+
const cancellation = { ...(input.signal === undefined ? {} : { signal: input.signal }), throwIfCancelled() {
|
|
97
|
+
if (input.signal?.aborted === true) {
|
|
98
|
+
throw input.signal.reason;
|
|
99
|
+
}
|
|
100
|
+
} };
|
|
101
|
+
await state.context.read({ ...state.policy.sdkGrowth.comparison, decisionsPath: state.policy.sdkGrowth.decisionsPath }, cancellation);
|
|
102
|
+
const resolved = state.context.resolution();
|
|
103
|
+
invariant(resolved.grant.admissionReceipt.kind === "receipt", "growth-authority-admission-receipt-required");
|
|
104
|
+
const reportBytes = await readGrowthInputFile(input.consumerRoot, state.policy.sdkGrowth.reportPath, files);
|
|
105
|
+
const provenance = resolved.grant.admissionReceipt.receipt.provenance;
|
|
106
|
+
invariant(provenance !== undefined && provenance.completion.reportByteLength === reportBytes.byteLength, "growth-authority-admission-report-mismatch");
|
|
107
|
+
const report = parseFinalizedGrowthReport(reportBytes, common.fingerprint);
|
|
108
|
+
invariant(report.authority.status === "verified" && report.authority.receiptDigest === resolved.grant.admissionReceipt.receipt.grantDigest
|
|
109
|
+
&& report.authority.workflowRef === provenance.grant.workflowRef && report.authority.runRef === provenance.grant.runRef, "growth-authority-admission-provenance-mismatch");
|
|
110
|
+
const reportDigest = growthBytesDigest(reportBytes);
|
|
111
|
+
invariant(resolved.grant.admissionReceipt.receipt.reportDigest === reportDigest, "growth-authority-admission-report-mismatch");
|
|
112
|
+
invariant(report.verdict === "admitted" && report.releaseEligible, "growth-authority-admission-report-ineligible");
|
|
113
|
+
const reportDigests = growthReportAuthorityDigests(report, common.fingerprint);
|
|
114
|
+
invariant(resolved.grant.admissionReceipt.receipt.coverageDigest === reportDigests.coverageDigest
|
|
115
|
+
&& resolved.grant.admissionReceipt.receipt.phasesDigest === reportDigests.phasesDigest, "growth-authority-admission-report-mismatch");
|
|
116
|
+
invariant(reportDigests.coverageDigest === resolved.grant.requiredCoverageDigest, "growth-authority-coverage-mismatch");
|
|
117
|
+
const artifacts = await createPublicApiArtifactDependencies(input.consumerRoot, state.policy.compatibility.packages, common, dependencies.inspector, input.signal);
|
|
118
|
+
let receipt;
|
|
119
|
+
const snapshots = await preflightPublicApiPromotions({ consumerRoot: input.consumerRoot, policy: state.policy.compatibility,
|
|
120
|
+
...(input.signal === undefined ? {} : { signal: input.signal }) }, [common, artifacts], async (writes) => {
|
|
121
|
+
invariant(writes.length === new Set(writes.map((entry) => entry.destination)).size, "growth-authority-promotion-destination-duplicate");
|
|
122
|
+
const plan = { binding: state.binding, writes: writes.toSorted((a, b) => a.destination < b.destination ? -1 : a.destination > b.destination ? 1 : 0) };
|
|
123
|
+
const planDigest = growthPromotionPlanDigest(plan, common.fingerprint);
|
|
124
|
+
const completion = { schemaVersion: growthAuthoritySchemaVersion, kind: "completion", grantId: resolved.grant.grantId,
|
|
125
|
+
grantDigest: growthAuthorityGrantDigest(resolved.grant, common.fingerprint), requestDigest: resolved.requestDigest, binding: state.binding,
|
|
126
|
+
reportDigest, reportByteLength: reportBytes.byteLength, coverageDigest: reportDigests.coverageDigest, phasesDigest: reportDigests.phasesDigest,
|
|
127
|
+
verdict: report.verdict, releaseEligible: report.releaseEligible, publication: "finalized",
|
|
128
|
+
promotion: { kind: "plan", planDigest } };
|
|
129
|
+
invariant(growthCanonicalJson(await state.readInvocation(cancellation)) === growthCanonicalJson(state.invocation), "growth-execution-inputs-changed");
|
|
130
|
+
receipt = await state.authority.complete(completion, cancellation);
|
|
131
|
+
invariant(receipt.qualification === "qualified" && receipt.operation === "promote-release"
|
|
132
|
+
&& receipt.promotion.kind === "plan" && receipt.promotion.planDigest === planDigest, "growth-authority-promotion-receipt-invalid");
|
|
133
|
+
// Completion is asynchronous external IO. Its receipt cannot authorize
|
|
134
|
+
// writes against source bytes that changed while it was in flight.
|
|
135
|
+
invariant(growthCanonicalJson(await state.readInvocation(cancellation)) === growthCanonicalJson(state.invocation), "growth-execution-inputs-changed");
|
|
136
|
+
});
|
|
137
|
+
invariant(receipt !== undefined, "growth-authority-promotion-not-authorized");
|
|
138
|
+
return { snapshots, receipt };
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=authority-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authority-module.js","sourceRoot":"","sources":["../../../src/capabilities/public-api-compatibility/authority-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,iEAAiE,CAAC;AAClH,OAAO,EAAE,4BAA4B,EAAE,MAAM,m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AC,OAAO,EAAE,eAAe,EAAE,MAAM,CAAC,eAAe,EAAE,WAAW,EAAE,WAAoB;oBACnG,SAAS,EAAE,EAAE,IAAI,EAAE,MAAe,EAAE,UAAU,EAAE,EAAE,CAAC;gBACrD,SAAS,CAAC,mBAAmB,CAAC,MAAM,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,KAAK,mBAAmB,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,iCAAiC,CAAC,CAAC;gBACtJ,OAAO,GAAG,MAAM,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;gBACnE,SAAS,CAAC,OAAO,CAAC,aAAa,KAAK,WAAW,IAAI,OAAO,CAAC,SAAS,KAAK,iBAAiB;uBACrF,OAAO,CAAC,SAAS,CAAC,IAAI,KAAK,MAAM,IAAI,OAAO,CAAC,SAAS,CAAC,UAAU,KAAK,UAAU,EAAE,4CAA4C,CAAC,CAAC;gBACrI,uEAAuE;gBACvE,mEAAmE;gBACnE,SAAS,CAAC,mBAAmB,CAAC,MAAM,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,KAAK,mBAAmB,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,iCAAiC,CAAC,CAAC;YACxJ,CAAC,CAAC,CAAC;YACL,SAAS,CAAC,OAAO,KAAK,SAAS,EAAE,2CAA2C,CAAC,CAAC;YAC9E,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;QAChC,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,17 +1,33 @@
|
|
|
1
1
|
import { type CapabilityDefinition } from "../../features/validation-reporting/api.js";
|
|
2
|
+
import { NodeChangeFingerprint } from "./adapters/outbound/crypto/node-change-fingerprint.js";
|
|
3
|
+
import { FilesystemPublicApiRepository } from "./adapters/outbound/filesystem/filesystem-public-api-repository.js";
|
|
4
|
+
import { GovernanceAcceptedDecisionEvidenceAcl } from "./adapters/outbound/governance/governance-accepted-decision-evidence-acl.js";
|
|
2
5
|
import { PUBLIC_API_COMPATIBILITY_RULES_BY_ID } from "./application/rules.js";
|
|
3
6
|
import { FilesystemPackageArtifactInventory } from "./adapters/outbound/filesystem/filesystem-package-artifact-inventory.js";
|
|
7
|
+
import { ArtifactPublicApiEvidence } from "./adapters/outbound/filesystem/artifact-public-api-evidence.js";
|
|
4
8
|
import type { JsonSchemaSetInspector } from "./application/ports/package-artifact-inventory.js";
|
|
5
9
|
import { type PublicApiConfigurationDependencies } from "./adapters/inbound/configuration/load-capability-config.js";
|
|
6
10
|
import type { PublicApiExtractor } from "./application/ports/public-api-extractor.js";
|
|
7
11
|
export { PUBLIC_API_COMPATIBILITY_RULES_BY_ID };
|
|
8
12
|
export declare function createPublicApiExtractor(): PublicApiExtractor;
|
|
13
|
+
export declare function createPublicApiCompatibilityDependencies(readAcceptedDecisions: import("./application/ports/accepted-decision-evidence.js").AcceptedArchitectureDecisionReader, assertSchema: PublicApiConfigurationDependencies["assertSchema"]): Readonly<{
|
|
14
|
+
extractor: PublicApiExtractor;
|
|
15
|
+
fingerprint: NodeChangeFingerprint;
|
|
16
|
+
repository: FilesystemPublicApiRepository;
|
|
17
|
+
acceptedDecisionEvidence: GovernanceAcceptedDecisionEvidenceAcl;
|
|
18
|
+
}>;
|
|
9
19
|
export declare function promotePublicApiRelease(input: {
|
|
10
20
|
readonly consumerRoot: string;
|
|
11
21
|
readonly configPath: string;
|
|
12
22
|
readonly signal?: AbortSignal;
|
|
13
23
|
}, readAcceptedDecisions: import("./application/ports/accepted-decision-evidence.js").AcceptedArchitectureDecisionReader, assertSchema: PublicApiConfigurationDependencies["assertSchema"], inspector: JsonSchemaSetInspector): Promise<readonly import("./application/model/public-api.js").PublicApiSnapshot[]>;
|
|
14
24
|
export declare function createPublicApiCompatibilityCapability(readAcceptedDecisions: import("./application/ports/accepted-decision-evidence.js").AcceptedArchitectureDecisionReader, assertSchema: PublicApiConfigurationDependencies["assertSchema"], inspector: JsonSchemaSetInspector): CapabilityDefinition;
|
|
25
|
+
export declare function createPublicApiArtifactDependencies(root: string, packages: readonly import("./application/model/public-api.js").PublicApiPackagePolicy[], dependencies: ReturnType<typeof createPublicApiCompatibilityDependencies>, inspector: JsonSchemaSetInspector, signal?: AbortSignal): Promise<{
|
|
26
|
+
fingerprint: NodeChangeFingerprint;
|
|
27
|
+
acceptedDecisionEvidence: GovernanceAcceptedDecisionEvidenceAcl;
|
|
28
|
+
repository: ArtifactPublicApiEvidence;
|
|
29
|
+
extractor: ArtifactPublicApiEvidence;
|
|
30
|
+
}>;
|
|
15
31
|
export { observedPackageExports } from "./application/policies/validate-package-export-coverage.js";
|
|
16
32
|
export { assertPackedWildcardMembers } from "./application/policies/compare-package-artifact-inventory.js";
|
|
17
33
|
export { mapReleasedArtifactBaseline } from "./adapters/outbound/filesystem/public-api-artifact-baseline.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/capabilities/public-api-compatibility/module.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,oBAAoB,EAE1B,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/capabilities/public-api-compatibility/module.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,oBAAoB,EAE1B,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uDAAuD,CAAC;AAC9F,OAAO,EAAE,6BAA6B,EAAE,MAAM,oEAAoE,CAAC;AACnH,OAAO,EAAE,qCAAqC,EAAE,MAAM,6EAA6E,CAAC;AACpI,OAAO,EAAE,oCAAoC,EAAE,MAAM,wBAAwB,CAAC;AAG9E,OAAO,EAAE,kCAAkC,EAAE,MAAM,yEAAyE,CAAC;AAC7H,OAAO,EAAE,yBAAyB,EAAE,MAAM,gEAAgE,CAAC;AAC3G,OAAO,KAAK,EAAE,sBAAsB,EAAE,MA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BAA8B,CAAC,SAAS,EAAE,sBAAsB,sCAE/E"}
|
|
@@ -32,7 +32,7 @@ export { PUBLIC_API_COMPATIBILITY_RULES_BY_ID };
|
|
|
32
32
|
export function createPublicApiExtractor() {
|
|
33
33
|
return new MicrosoftPublicApiExtractor(evidence);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
export function createPublicApiCompatibilityDependencies(readAcceptedDecisions, assertSchema) {
|
|
36
36
|
return Object.freeze({
|
|
37
37
|
extractor: createPublicApiExtractor(),
|
|
38
38
|
fingerprint: new NodeChangeFingerprint(),
|
|
@@ -45,8 +45,8 @@ export async function promotePublicApiRelease(input, readAcceptedDecisions, asse
|
|
|
45
45
|
if (policy.schemaVersion === 2) {
|
|
46
46
|
configurationInputError("SDK growth release promotion requires the separately qualified S3 authority route.");
|
|
47
47
|
}
|
|
48
|
-
const dependencies =
|
|
49
|
-
const artifacts = await
|
|
48
|
+
const dependencies = createPublicApiCompatibilityDependencies(readAcceptedDecisions, assertSchema);
|
|
49
|
+
const artifacts = await createPublicApiArtifactDependencies(input.consumerRoot, policy.packages, dependencies, inspector, input.signal);
|
|
50
50
|
return preflightPublicApiPromotions({
|
|
51
51
|
consumerRoot: input.consumerRoot,
|
|
52
52
|
policy,
|
|
@@ -54,7 +54,7 @@ export async function promotePublicApiRelease(input, readAcceptedDecisions, asse
|
|
|
54
54
|
}, [dependencies, artifacts]);
|
|
55
55
|
}
|
|
56
56
|
export function createPublicApiCompatibilityCapability(readAcceptedDecisions, assertSchema, inspector) {
|
|
57
|
-
const dependencies =
|
|
57
|
+
const dependencies = createPublicApiCompatibilityDependencies(readAcceptedDecisions, assertSchema);
|
|
58
58
|
const processes = createManagedProcessExecutor();
|
|
59
59
|
return Object.freeze({
|
|
60
60
|
id: CAPABILITY_ID,
|
|
@@ -81,7 +81,7 @@ export function createPublicApiCompatibilityCapability(readAcceptedDecisions, as
|
|
|
81
81
|
writer: createFilesystemGrowthReportWriter(invocation.consumerRoot)
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
|
-
const artifacts = await
|
|
84
|
+
const artifacts = await createPublicApiArtifactDependencies(invocation.consumerRoot, policy.packages, dependencies, inspector, invocation.signal);
|
|
85
85
|
const input = { consumerRoot: invocation.consumerRoot, policy, ...(invocation.signal === undefined ? {} : { signal: invocation.signal }) };
|
|
86
86
|
return capabilityReport({
|
|
87
87
|
capabilityId: CAPABILITY_ID,
|
|
@@ -103,7 +103,7 @@ export function createPublicApiCompatibilityCapability(readAcceptedDecisions, as
|
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
async function
|
|
106
|
+
export async function createPublicApiArtifactDependencies(root, packages, dependencies, inspector, signal) {
|
|
107
107
|
const inventory = new FilesystemPackageArtifactInventory(inspector, evidence);
|
|
108
108
|
const artifacts = new ArtifactPublicApiEvidence(dependencies.repository, await inventory.inspect(root, packages, signal), evidence);
|
|
109
109
|
return { ...dependencies, repository: artifacts, extractor: artifacts };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../../src/capabilities/public-api-compatibility/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,yDAAyD,CAAC;AACxG,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AACpH,OAAO,EACL,uBAAuB,EACvB,gBAAgB,EAGjB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,qEAAqE,CAAC;AAClH,OAAO,EAAE,qBAAqB,EAAE,MAAM,uDAAuD,CAAC;AAC9F,OAAO,EAAE,6BAA6B,EAAE,MAAM,oEAAoE,CAAC;AACnH,OAAO,EAAE,qCAAqC,EAAE,MAAM,6EAA6E,CAAC;AACpI,OAAO,EAAE,oCAAoC,EAAE,MAAM,wBAAwB,CAAC;AAC9E,O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C5C,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,mCAAmC,CAAC,IAAY,EAAE,QAAuF,EAAE,YAAyE,EAAE,SAAiC,EAAE,MAAoB;IACjS,MAAM,SAAS,GAAG,IAAI,kCAAkC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC9E,MAAM,SAAS,GAAG,IAAI,yBAAyB,CAAC,YAAY,CAAC,UAAU,EAAE,MAAM,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,CAAC;IACpI,OAAO,EAAE,GAAG,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AAC1E,CAAC;AAED,OAAO,EAAE,sBAAsB,EAAE,MAAM,4DAA4D,CAAC;AACpG,OAAO,EAAE,2BAA2B,EAAE,MAAM,8DAA8D,CAAC;AAC3G,OAAO,EAAE,2BAA2B,EAAE,MAAM,gEAAgE,CAAC;AAC7G,MAAM,UAAU,8BAA8B,CAAC,SAAiC;IAC9E,OAAO,IAAI,kCAAkC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -2,5 +2,5 @@ import type { ManagedProcessExecutor } from "../process-execution/api.js";
|
|
|
2
2
|
export declare const qualityCoverageCapability: import("../features/validation-reporting/api.js").CapabilityDefinition;
|
|
3
3
|
export declare function createQualityCommand(executor: ManagedProcessExecutor, nodeExecutable: string, environment: Readonly<Record<string, string | undefined>>): (input: import("../features/validation-reporting/api.js").CapabilityInvocation & {
|
|
4
4
|
readonly scopeOnly: boolean;
|
|
5
|
-
}) => Promise<import("../
|
|
5
|
+
}) => Promise<import("../sdk-growth-authority.js").CapabilityReport>;
|
|
6
6
|
//# sourceMappingURL=quality-coverage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quality-coverage.d.ts","sourceRoot":"","sources":["../../src/composition/quality-coverage.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAY1E,eAAO,MAAM,yBAAyB,wEAA0C,CAAC;AAEjF,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;;
|
|
1
|
+
{"version":3,"file":"quality-coverage.d.ts","sourceRoot":"","sources":["../../src/composition/quality-coverage.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAY1E,eAAO,MAAM,yBAAyB,wEAA0C,CAAC;AAEjF,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;;qEAIvJ"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SdkGrowthAuthorityTransport, GrowthInstalledInventoryReader } from "../capabilities/public-api-compatibility/adapters/inbound/authority/growth-authority-contract.js";
|
|
2
|
+
/** Curated composition for a trusted host. Consumer configuration cannot
|
|
3
|
+
* select or replace the supplied transport. */
|
|
4
|
+
export declare function createSdkGrowthAuthorityVerifier(transport: SdkGrowthAuthorityTransport, installedInventory?: GrowthInstalledInventoryReader, now?: () => Date): Readonly<{
|
|
5
|
+
qualifyCheck(input: import("../capabilities/public-api-compatibility/authority-module.js").SdkGrowthAuthorityOperationInput): Promise<import("../sdk-growth-authority.js").QualifiedSdkGrowthExecution>;
|
|
6
|
+
promoteRelease(input: import("../capabilities/public-api-compatibility/authority-module.js").SdkGrowthAuthorityOperationInput & {
|
|
7
|
+
readonly admissionReceiptId: string;
|
|
8
|
+
}): Promise<{
|
|
9
|
+
readonly snapshots: readonly import("../sdk-growth-authority.js").PublicApiSnapshot[];
|
|
10
|
+
readonly receipt: import("../capabilities/public-api-compatibility/application/model/growth-authority.js").GrowthAuthorityReceipt;
|
|
11
|
+
}>;
|
|
12
|
+
}>;
|
|
13
|
+
//# sourceMappingURL=sdk-growth-authority.d.ts.map
|