@akanjs/devkit 2.3.9-rc.7 → 2.3.9-rc.9

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.
@@ -0,0 +1,37 @@
1
+ import { describe, expect, test } from "bun:test";
2
+ import { createAkanValidationContract } from "./akanMcpContract";
3
+
4
+ describe("createAkanValidationContract", () => {
5
+ test("exposes reference-first tooling rollout gate semantics", () => {
6
+ const contract = createAkanValidationContract();
7
+
8
+ expect(contract.toolingRolloutGate).toMatchObject({
9
+ schemaVersion: 1,
10
+ strategy: "reference-first-dependency-later",
11
+ });
12
+ expect(contract.toolingRolloutGate.candidates).toContainEqual(
13
+ expect.objectContaining({
14
+ packageName: "typescript",
15
+ status: "allowed",
16
+ }),
17
+ );
18
+ expect(contract.toolingRolloutGate.candidates).toContainEqual(
19
+ expect.objectContaining({
20
+ packageName: "@ttsc/graph",
21
+ status: "reference-only",
22
+ }),
23
+ );
24
+ });
25
+
26
+ test("keeps dependency adoption gated by package and source-body constraints", () => {
27
+ const contract = createAkanValidationContract();
28
+
29
+ expect(contract.toolingRolloutGate.gateConditions).toContain(
30
+ "Works in Bun runtime and published package artifacts.",
31
+ );
32
+ expect(contract.toolingRolloutGate.gateConditions).toContain("Does not break dist/pkgs package verification.");
33
+ expect(contract.toolingRolloutGate.gateConditions).toContain(
34
+ "Does not move MCP responses toward returning source bodies.",
35
+ );
36
+ });
37
+ });