openplanr 2.6.1 → 2.6.2

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.
Files changed (45) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/dashboard/.vite/manifest.json +1 -1
  3. package/dist/dashboard/assets/{index-BaARCc1f.js → index-AeydhSKa.js} +2 -2
  4. package/dist/dashboard/assets/{index-BaARCc1f.js.map → index-AeydhSKa.js.map} +1 -1
  5. package/dist/dashboard/dashboard-manifest.json +8 -8
  6. package/dist/dashboard/index.html +1 -1
  7. package/dist/services/diagram-artifact-service.d.ts +20 -0
  8. package/dist/services/diagram-artifact-service.d.ts.map +1 -1
  9. package/dist/services/diagram-artifact-service.js +10 -0
  10. package/dist/services/diagram-artifact-service.js.map +1 -1
  11. package/lib/host-packages/adapter-registry.json +5 -5
  12. package/lib/host-packages/capability-map.json +1 -1
  13. package/lib/host-packages/claude/.claude-plugin/marketplace.json +2 -2
  14. package/lib/host-packages/claude/openplanr/.claude-plugin/plugin.json +1 -1
  15. package/lib/host-packages/claude/openplanr/.openplanr-content.json +10 -10
  16. package/lib/host-packages/claude/openplanr/skills/design/scripts/design.mjs +66 -1
  17. package/lib/host-packages/claude/openplanr/skills/design/scripts/runtime/packages/protocol/package.json +5 -1
  18. package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/design.mjs +66 -1
  19. package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/runtime/packages/protocol/package.json +5 -1
  20. package/lib/host-packages/claude/openplanr/skills/design-review/scripts/design.mjs +66 -1
  21. package/lib/host-packages/claude/openplanr/skills/design-review/scripts/runtime/packages/protocol/package.json +5 -1
  22. package/lib/host-packages/claude/openplanr/skills/plan/scripts/design.mjs +66 -1
  23. package/lib/host-packages/claude/openplanr/skills/plan/scripts/runtime/packages/protocol/package.json +5 -1
  24. package/lib/host-packages/cursor/openplanr/.openplanr-content.json +10 -10
  25. package/lib/host-packages/cursor/openplanr/manifest.json +1 -1
  26. package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/design.mjs +66 -1
  27. package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/runtime/packages/protocol/package.json +5 -1
  28. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/design.mjs +66 -1
  29. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/runtime/packages/protocol/package.json +5 -1
  30. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/design.mjs +66 -1
  31. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/runtime/packages/protocol/package.json +5 -1
  32. package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/design.mjs +66 -1
  33. package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/runtime/packages/protocol/package.json +5 -1
  34. package/lib/host-packages/openai/.claude-plugin/marketplace.json +2 -2
  35. package/lib/host-packages/openai/openplanr/.codex-plugin/plugin.json +1 -1
  36. package/lib/host-packages/openai/openplanr/.openplanr-content.json +10 -10
  37. package/lib/host-packages/openai/openplanr/skills/design/scripts/design.mjs +66 -1
  38. package/lib/host-packages/openai/openplanr/skills/design/scripts/runtime/packages/protocol/package.json +5 -1
  39. package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/design.mjs +66 -1
  40. package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/runtime/packages/protocol/package.json +5 -1
  41. package/lib/host-packages/openai/openplanr/skills/design-review/scripts/design.mjs +66 -1
  42. package/lib/host-packages/openai/openplanr/skills/design-review/scripts/runtime/packages/protocol/package.json +5 -1
  43. package/lib/host-packages/openai/openplanr/skills/plan/scripts/design.mjs +66 -1
  44. package/lib/host-packages/openai/openplanr/skills/plan/scripts/runtime/packages/protocol/package.json +5 -1
  45. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "kind": "openplanr-dashboard-build",
3
3
  "schemaVersion": "1.0.0",
4
- "buildId": "dashboard-0.1.4-20b68709bc139f8b",
4
+ "buildId": "dashboard-0.1.5-11df7521ace6e45b",
5
5
  "entry": "index.html",
6
6
  "assets": [
7
7
  "assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2",
@@ -15,8 +15,8 @@
15
15
  "assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2",
16
16
  "assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2",
17
17
  "assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2",
18
- "assets/index-BaARCc1f.js",
19
- "assets/index-BaARCc1f.js.map",
18
+ "assets/index-AeydhSKa.js",
19
+ "assets/index-AeydhSKa.js.map",
20
20
  "assets/index-Bk8DyO_2.css"
21
21
  ],
22
22
  "assetDigests": {
@@ -64,13 +64,13 @@
64
64
  "bytes": 8004,
65
65
  "sha256": "sha256:8fa40e5d248247735eb97a0bd593b8852440430600d6ba01364c31fe0abc1fe1"
66
66
  },
67
- "assets/index-BaARCc1f.js": {
67
+ "assets/index-AeydhSKa.js": {
68
68
  "bytes": 942574,
69
- "sha256": "sha256:21060e351ae710d00ffcc2e84baa40a30a0a1a8d89aab99451091f1b7f4f060f"
69
+ "sha256": "sha256:a2c003bc1efd5932299e0086a623c06d26e625773ec831d65802030756c0ed71"
70
70
  },
71
- "assets/index-BaARCc1f.js.map": {
71
+ "assets/index-AeydhSKa.js.map": {
72
72
  "bytes": 3425939,
73
- "sha256": "sha256:9a8a382c016dd70e7781950eca3a33d050fd57a2c401ec7cfc1deb2a4f56f121"
73
+ "sha256": "sha256:e107392ba84b607af013621cd71bf130947c6b3330200b03c27dde6d1bf32f32"
74
74
  },
75
75
  "assets/index-Bk8DyO_2.css": {
76
76
  "bytes": 187656,
@@ -78,7 +78,7 @@
78
78
  },
79
79
  "index.html": {
80
80
  "bytes": 396,
81
- "sha256": "sha256:def5394173bb70660038c676f1c1ba5f0cb80760e33b1db8d51c9a1a8407c50b"
81
+ "sha256": "sha256:032be5b3c68ce3e0d16a0a1a592ea7b0197b7b87120202b458888a8644726ad1"
82
82
  }
83
83
  }
84
84
  }
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>OpenPlanr</title>
7
- <script type="module" crossorigin src="./assets/index-BaARCc1f.js"></script>
7
+ <script type="module" crossorigin src="./assets/index-AeydhSKa.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="./assets/index-Bk8DyO_2.css">
9
9
  </head>
10
10
  <body>
@@ -9,4 +9,24 @@ export interface DiagramStudioSession {
9
9
  }
10
10
  export declare function prepareDiagramArtifact(file: string): Promise<ArtifactEnvelope>;
11
11
  export declare function openDiagramArtifact(file: string, options: Record<string, unknown>): Promise<DiagramStudioSession>;
12
+ /** Programmatic owner bridge; command registration belongs to the authoring CLI slice. */
13
+ export declare function openDiagramOwner(options: {
14
+ root: string;
15
+ slug: string;
16
+ port?: number;
17
+ env?: Record<string, string | undefined>;
18
+ }): Promise<{
19
+ ok: true;
20
+ kind: 'diagram-owner';
21
+ sessionId: string;
22
+ recoveryScope: string;
23
+ baseUrl: string;
24
+ apiBase: string;
25
+ capabilities: {
26
+ read: true;
27
+ write: true;
28
+ };
29
+ headers: Record<string, string>;
30
+ close(): Promise<void>;
31
+ }>;
12
32
  //# sourceMappingURL=diagram-artifact-service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"diagram-artifact-service.d.ts","sourceRoot":"","sources":["../../src/services/diagram-artifact-service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGvE,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAQ3D;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,OAAO,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7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AClB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,KAAK,EAAE,IAAI,CAAA;KAAE,CAAC;IAC1C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB,CAAC,CAWD"}
@@ -38,4 +38,14 @@ export async function openDiagramArtifact(file, options) {
38
38
  throw new Error('The installed workflow package does not support the native diagram studio. Update OpenPlanr first.');
39
39
  return runtime.startDiagramReview(path.resolve(file), options);
40
40
  }
41
+ /** Programmatic owner bridge; command registration belongs to the authoring CLI slice. */
42
+ export async function openDiagramOwner(options) {
43
+ const pipeline = resolvePipelinePackage(false);
44
+ if (!pipeline)
45
+ throw new Error('Diagram editing requires the OpenPlanr workflow package.');
46
+ const runtime = await import(pathToFileURL(path.join(pipeline.root, 'lib/artifact/diagram/editor/local-owner.mjs')).href);
47
+ if (typeof runtime.startDiagramOwner !== 'function')
48
+ throw new Error('The installed workflow package does not support diagram editing. Update OpenPlanr first.');
49
+ return runtime.startDiagramOwner({ ...options, root: path.resolve(options.root) });
50
+ }
41
51
  //# sourceMappingURL=diagram-artifact-service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"diagram-artifact-service.js","sourceRoot":"","sources":["../../src/services/diagram-artifact-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,MAAM,UAAU,qBAAqB,CAAC,IAAY;IAChD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,QAAQ,C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oG,CACrG,CAAC;IACJ,OAAO,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC;AACjE,CAAC;AAED,0FAA0F;AAC1F,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,OAKtC;IAWC,MAAM,QAAQ,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAC;IAC/C,IAAI,CAAC,QAAQ;QAAE,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;IAC3F,MAAM,OAAO,GAAG,MAAM,MAAM,CAC1B,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,6CAA6C,CAAC,CAAC,CAAC,IAAI,CAC5F,CAAC;IACF,IAAI,OAAO,OAAO,CAAC,iBAAiB,KAAK,UAAU;QACjD,MAAM,IAAI,KAAK,CACb,0FAA0F,CAC3F,CAAC;IACJ,OAAO,OAAO,CAAC,iBAAiB,CAAC,EAAE,GAAG,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACrF,CAAC"}
@@ -2,12 +2,12 @@
2
2
  "kind": "host-native-adapter-registry",
3
3
  "schemaVersion": "1.0.0",
4
4
  "protocolVersion": "1.8.0",
5
- "pipelineVersion": "0.49.1",
6
- "pluginVersion": "2.6.1",
5
+ "pipelineVersion": "0.50.0",
6
+ "pluginVersion": "2.6.2",
7
7
  "adapters": [
8
8
  {
9
9
  "id": "claude-code",
10
- "version": "2.6.1",
10
+ "version": "2.6.2",
11
11
  "capabilityLevel": "product",
12
12
  "installScopes": [
13
13
  "user",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  {
21
21
  "id": "codex",
22
- "version": "2.6.1",
22
+ "version": "2.6.2",
23
23
  "capabilityLevel": "product",
24
24
  "installScopes": [
25
25
  "user",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  {
33
33
  "id": "cursor",
34
- "version": "2.6.1",
34
+ "version": "2.6.2",
35
35
  "capabilityLevel": "workflow",
36
36
  "installScopes": [
37
37
  "project"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "kind": "openplanr-capability-map",
3
3
  "schemaVersion": "1.0.0",
4
- "pluginVersion": "2.6.1",
4
+ "pluginVersion": "2.6.2",
5
5
  "families": [
6
6
  {
7
7
  "id": "planning",
@@ -5,14 +5,14 @@
5
5
  "name": "AsemDevs"
6
6
  },
7
7
  "metadata": {
8
- "version": "2.6.1",
8
+ "version": "2.6.2",
9
9
  "description": "Generated local OpenPlanr package."
10
10
  },
11
11
  "plugins": [
12
12
  {
13
13
  "name": "planr",
14
14
  "source": "./openplanr",
15
- "version": "2.6.1",
15
+ "version": "2.6.2",
16
16
  "description": "Host-native OpenPlanr skills and role agents for Claude Code.",
17
17
  "strict": true
18
18
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "planr",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
4
4
  "description": "Host-native OpenPlanr planning, delivery, review, design, and operating skills.",
5
5
  "author": {
6
6
  "name": "AsemDevs"
@@ -8,7 +8,7 @@
8
8
  "files": [
9
9
  {
10
10
  "path": ".claude-plugin/plugin.json",
11
- "digest": "sha256:8064b98946ccfb3736a555df6a51f8b26edfcc094a562f598331b0d00a082b9f"
11
+ "digest": "sha256:998c286eee3bb61dcba08b8c3b9f6d0b631aae3663a215f59ef3ef682d0006f7"
12
12
  },
13
13
  {
14
14
  "path": "agents/planr-backend.md",
@@ -424,7 +424,7 @@
424
424
  },
425
425
  {
426
426
  "path": "skills/design-loop/scripts/design.mjs",
427
- "digest": "sha256:3fec9a1d47bc41c0caf4909a2c4b9d00205da630c015a46f6921caf2a4d7a2d2"
427
+ "digest": "sha256:e368470cc9863cd20f5d5815c1d1df30a0f8432cbc09160f5b445fdb5420d4be"
428
428
  },
429
429
  {
430
430
  "path": "skills/design-loop/scripts/runtime/notices/entities.txt",
@@ -472,7 +472,7 @@
472
472
  },
473
473
  {
474
474
  "path": "skills/design-loop/scripts/runtime/packages/protocol/package.json",
475
- "digest": "sha256:005fd84b459d0673203781da7693ffb28b379ef73096213fd6df5c2606617730"
475
+ "digest": "sha256:6e51f9d61b978532cd129f442a4e88f9f3900e58a7239427ec264c34a1337ac3"
476
476
  },
477
477
  {
478
478
  "path": "skills/design-loop/scripts/runtime/packages/protocol/registry/artifact-theme.json",
@@ -612,7 +612,7 @@
612
612
  },
613
613
  {
614
614
  "path": "skills/design-review/scripts/design.mjs",
615
- "digest": "sha256:3fec9a1d47bc41c0caf4909a2c4b9d00205da630c015a46f6921caf2a4d7a2d2"
615
+ "digest": "sha256:e368470cc9863cd20f5d5815c1d1df30a0f8432cbc09160f5b445fdb5420d4be"
616
616
  },
617
617
  {
618
618
  "path": "skills/design-review/scripts/runtime/notices/entities.txt",
@@ -660,7 +660,7 @@
660
660
  },
661
661
  {
662
662
  "path": "skills/design-review/scripts/runtime/packages/protocol/package.json",
663
- "digest": "sha256:005fd84b459d0673203781da7693ffb28b379ef73096213fd6df5c2606617730"
663
+ "digest": "sha256:6e51f9d61b978532cd129f442a4e88f9f3900e58a7239427ec264c34a1337ac3"
664
664
  },
665
665
  {
666
666
  "path": "skills/design-review/scripts/runtime/packages/protocol/registry/artifact-theme.json",
@@ -800,7 +800,7 @@
800
800
  },
801
801
  {
802
802
  "path": "skills/design/scripts/design.mjs",
803
- "digest": "sha256:3fec9a1d47bc41c0caf4909a2c4b9d00205da630c015a46f6921caf2a4d7a2d2"
803
+ "digest": "sha256:e368470cc9863cd20f5d5815c1d1df30a0f8432cbc09160f5b445fdb5420d4be"
804
804
  },
805
805
  {
806
806
  "path": "skills/design/scripts/runtime/notices/entities.txt",
@@ -848,7 +848,7 @@
848
848
  },
849
849
  {
850
850
  "path": "skills/design/scripts/runtime/packages/protocol/package.json",
851
- "digest": "sha256:005fd84b459d0673203781da7693ffb28b379ef73096213fd6df5c2606617730"
851
+ "digest": "sha256:6e51f9d61b978532cd129f442a4e88f9f3900e58a7239427ec264c34a1337ac3"
852
852
  },
853
853
  {
854
854
  "path": "skills/design/scripts/runtime/packages/protocol/registry/artifact-theme.json",
@@ -1048,7 +1048,7 @@
1048
1048
  },
1049
1049
  {
1050
1050
  "path": "skills/plan/scripts/design.mjs",
1051
- "digest": "sha256:3fec9a1d47bc41c0caf4909a2c4b9d00205da630c015a46f6921caf2a4d7a2d2"
1051
+ "digest": "sha256:e368470cc9863cd20f5d5815c1d1df30a0f8432cbc09160f5b445fdb5420d4be"
1052
1052
  },
1053
1053
  {
1054
1054
  "path": "skills/plan/scripts/planning-ids.mjs",
@@ -1100,7 +1100,7 @@
1100
1100
  },
1101
1101
  {
1102
1102
  "path": "skills/plan/scripts/runtime/packages/protocol/package.json",
1103
- "digest": "sha256:005fd84b459d0673203781da7693ffb28b379ef73096213fd6df5c2606617730"
1103
+ "digest": "sha256:6e51f9d61b978532cd129f442a4e88f9f3900e58a7239427ec264c34a1337ac3"
1104
1104
  },
1105
1105
  {
1106
1106
  "path": "skills/plan/scripts/runtime/packages/protocol/registry/artifact-theme.json",
@@ -1291,5 +1291,5 @@
1291
1291
  "digest": "sha256:53698324b62f43b672ce8fe1654c526c96fb202e313442f09c6fc1e72268677e"
1292
1292
  }
1293
1293
  ],
1294
- "contentDigest": "sha256:46246b06dfa5a025cbb2c8f0468e0bf81c5ab796b42b714d5ae85d1a05149f0f"
1294
+ "contentDigest": "sha256:a24289064375999fc4a45bb6ab86d2f3d82e03230318d1ab653dd4c971785fae"
1295
1295
  }
@@ -14910,6 +14910,7 @@ function createArtifactReviewServer({
14910
14910
  throw artifactError(ARTIFACT_ERROR_CODES.LOOPBACK_STATE, "Artifact review instance id is invalid.");
14911
14911
  }
14912
14912
  const sessions = /* @__PURE__ */ new Map();
14913
+ const ownerSessions = /* @__PURE__ */ new Map();
14913
14914
  let port = null;
14914
14915
  let closePromise = null;
14915
14916
  let pendingRegistrations = 0;
@@ -14917,7 +14918,7 @@ function createArtifactReviewServer({
14917
14918
  let draining = false;
14918
14919
  let emptyTimer = null;
14919
14920
  const stageRuntime = () => readFileSync11(STAGE_RUNTIME_PATH, "utf8");
14920
- const idle = () => sessions.size === 0 && pendingRegistrations === 0 && activeRequests === 0;
14921
+ const idle = () => sessions.size === 0 && ownerSessions.size === 0 && pendingRegistrations === 0 && activeRequests === 0;
14921
14922
  const scheduleEmpty = () => {
14922
14923
  if (emptyTimer || draining || typeof onEmpty !== "function") return;
14923
14924
  emptyTimer = setTimeout(async () => {
@@ -15042,6 +15043,41 @@ function createArtifactReviewServer({
15042
15043
  notFound(res, { head });
15043
15044
  return;
15044
15045
  }
15046
+ if (segments[0] === "o") {
15047
+ const owner = safeSessionId(segments[1]) && ownerSessions.get(segments[1]);
15048
+ if (draining || !sessionMatches(owner, segments[2])) {
15049
+ notFound(res, { head });
15050
+ return;
15051
+ }
15052
+ const request2 = Promise.resolve().then(() => owner.handleRequest({
15053
+ req,
15054
+ segments: segments.slice(3),
15055
+ head,
15056
+ origin: `http://${LOOPBACK_HOST}:${port}`,
15057
+ recoveryScope: owner.recoveryScope
15058
+ }));
15059
+ owner.pending.add(request2);
15060
+ let response;
15061
+ try {
15062
+ response = await request2;
15063
+ } finally {
15064
+ owner.pending.delete(request2);
15065
+ }
15066
+ if (!response) {
15067
+ notFound(res, { head });
15068
+ return;
15069
+ }
15070
+ send(res, response.status, JSON.stringify(response.body), {
15071
+ // Rejections may precede body consumption (for example Content-Length
15072
+ // above the limit). Do not reuse a socket containing unread body bytes.
15073
+ ...response.status >= 400 ? { connection: "close" } : {},
15074
+ "content-type": "application/json; charset=utf-8",
15075
+ "cross-origin-resource-policy": "same-origin",
15076
+ "content-security-policy": "default-src 'none'; frame-ancestors 'none'",
15077
+ "x-frame-options": "DENY"
15078
+ }, { head });
15079
+ return;
15080
+ }
15045
15081
  if (segments.length < 3 || segments[0] !== "r" || !safeSessionId(segments[1])) {
15046
15082
  notFound(res, { head });
15047
15083
  return;
@@ -15200,6 +15236,32 @@ function createArtifactReviewServer({
15200
15236
  controlToken,
15201
15237
  instanceId,
15202
15238
  sessionCount: () => sessions.size,
15239
+ /** Trusted local authority only; this operation has no HTTP control route. */
15240
+ registerOwnerSession({ handleRequest } = {}) {
15241
+ if (draining || closePromise || typeof handleRequest !== "function") {
15242
+ throw artifactError(ARTIFACT_ERROR_CODES.LOOPBACK_STATE, "Local owner session cannot be registered.");
15243
+ }
15244
+ const id4 = mintCapabilityToken({ bytes: SESSION_ID_BYTES });
15245
+ const owner = {
15246
+ id: id4,
15247
+ capability: mintCapabilityToken({ bytes: SESSION_TOKEN_BYTES }),
15248
+ recoveryScope: `diagram-owner_${id4}`,
15249
+ handleRequest,
15250
+ pending: /* @__PURE__ */ new Set()
15251
+ };
15252
+ ownerSessions.set(id4, owner);
15253
+ return Object.freeze({
15254
+ sessionId: id4,
15255
+ capability: owner.capability,
15256
+ recoveryScope: owner.recoveryScope,
15257
+ path: `/o/${id4}/${owner.capability}/`,
15258
+ async close() {
15259
+ ownerSessions.delete(id4);
15260
+ await Promise.allSettled([...owner.pending]);
15261
+ if (idle()) scheduleEmpty();
15262
+ }
15263
+ });
15264
+ },
15203
15265
  isIdle: idle,
15204
15266
  accepting: () => !draining && !closePromise,
15205
15267
  beginCloseIfIdle() {
@@ -15224,6 +15286,9 @@ function createArtifactReviewServer({
15224
15286
  emptyTimer = null;
15225
15287
  closePromise = (async () => {
15226
15288
  sessions.clear();
15289
+ const pendingOwners = [...ownerSessions.values()].flatMap((owner) => [...owner.pending]);
15290
+ ownerSessions.clear();
15291
+ await Promise.allSettled(pendingOwners);
15227
15292
  await closeHttpServer(server);
15228
15293
  })();
15229
15294
  return closePromise;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openplanr/protocol",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "description": "Canonical OpenPlanr schemas, registries, typed errors, and portable contract validation",
6
6
  "license": "MIT",
@@ -83,6 +83,10 @@
83
83
  "./enterprise-contracts": {
84
84
  "types": "./src/enterprise-contracts.d.mts",
85
85
  "import": "./src/enterprise-contracts.mjs"
86
+ },
87
+ "./diagram-authoring-contracts": {
88
+ "types": "./src/diagram-authoring-contracts.d.mts",
89
+ "import": "./src/diagram-authoring-contracts.mjs"
86
90
  }
87
91
  },
88
92
  "files": [
@@ -14910,6 +14910,7 @@ function createArtifactReviewServer({
14910
14910
  throw artifactError(ARTIFACT_ERROR_CODES.LOOPBACK_STATE, "Artifact review instance id is invalid.");
14911
14911
  }
14912
14912
  const sessions = /* @__PURE__ */ new Map();
14913
+ const ownerSessions = /* @__PURE__ */ new Map();
14913
14914
  let port = null;
14914
14915
  let closePromise = null;
14915
14916
  let pendingRegistrations = 0;
@@ -14917,7 +14918,7 @@ function createArtifactReviewServer({
14917
14918
  let draining = false;
14918
14919
  let emptyTimer = null;
14919
14920
  const stageRuntime = () => readFileSync11(STAGE_RUNTIME_PATH, "utf8");
14920
- const idle = () => sessions.size === 0 && pendingRegistrations === 0 && activeRequests === 0;
14921
+ const idle = () => sessions.size === 0 && ownerSessions.size === 0 && pendingRegistrations === 0 && activeRequests === 0;
14921
14922
  const scheduleEmpty = () => {
14922
14923
  if (emptyTimer || draining || typeof onEmpty !== "function") return;
14923
14924
  emptyTimer = setTimeout(async () => {
@@ -15042,6 +15043,41 @@ function createArtifactReviewServer({
15042
15043
  notFound(res, { head });
15043
15044
  return;
15044
15045
  }
15046
+ if (segments[0] === "o") {
15047
+ const owner = safeSessionId(segments[1]) && ownerSessions.get(segments[1]);
15048
+ if (draining || !sessionMatches(owner, segments[2])) {
15049
+ notFound(res, { head });
15050
+ return;
15051
+ }
15052
+ const request2 = Promise.resolve().then(() => owner.handleRequest({
15053
+ req,
15054
+ segments: segments.slice(3),
15055
+ head,
15056
+ origin: `http://${LOOPBACK_HOST}:${port}`,
15057
+ recoveryScope: owner.recoveryScope
15058
+ }));
15059
+ owner.pending.add(request2);
15060
+ let response;
15061
+ try {
15062
+ response = await request2;
15063
+ } finally {
15064
+ owner.pending.delete(request2);
15065
+ }
15066
+ if (!response) {
15067
+ notFound(res, { head });
15068
+ return;
15069
+ }
15070
+ send(res, response.status, JSON.stringify(response.body), {
15071
+ // Rejections may precede body consumption (for example Content-Length
15072
+ // above the limit). Do not reuse a socket containing unread body bytes.
15073
+ ...response.status >= 400 ? { connection: "close" } : {},
15074
+ "content-type": "application/json; charset=utf-8",
15075
+ "cross-origin-resource-policy": "same-origin",
15076
+ "content-security-policy": "default-src 'none'; frame-ancestors 'none'",
15077
+ "x-frame-options": "DENY"
15078
+ }, { head });
15079
+ return;
15080
+ }
15045
15081
  if (segments.length < 3 || segments[0] !== "r" || !safeSessionId(segments[1])) {
15046
15082
  notFound(res, { head });
15047
15083
  return;
@@ -15200,6 +15236,32 @@ function createArtifactReviewServer({
15200
15236
  controlToken,
15201
15237
  instanceId,
15202
15238
  sessionCount: () => sessions.size,
15239
+ /** Trusted local authority only; this operation has no HTTP control route. */
15240
+ registerOwnerSession({ handleRequest } = {}) {
15241
+ if (draining || closePromise || typeof handleRequest !== "function") {
15242
+ throw artifactError(ARTIFACT_ERROR_CODES.LOOPBACK_STATE, "Local owner session cannot be registered.");
15243
+ }
15244
+ const id4 = mintCapabilityToken({ bytes: SESSION_ID_BYTES });
15245
+ const owner = {
15246
+ id: id4,
15247
+ capability: mintCapabilityToken({ bytes: SESSION_TOKEN_BYTES }),
15248
+ recoveryScope: `diagram-owner_${id4}`,
15249
+ handleRequest,
15250
+ pending: /* @__PURE__ */ new Set()
15251
+ };
15252
+ ownerSessions.set(id4, owner);
15253
+ return Object.freeze({
15254
+ sessionId: id4,
15255
+ capability: owner.capability,
15256
+ recoveryScope: owner.recoveryScope,
15257
+ path: `/o/${id4}/${owner.capability}/`,
15258
+ async close() {
15259
+ ownerSessions.delete(id4);
15260
+ await Promise.allSettled([...owner.pending]);
15261
+ if (idle()) scheduleEmpty();
15262
+ }
15263
+ });
15264
+ },
15203
15265
  isIdle: idle,
15204
15266
  accepting: () => !draining && !closePromise,
15205
15267
  beginCloseIfIdle() {
@@ -15224,6 +15286,9 @@ function createArtifactReviewServer({
15224
15286
  emptyTimer = null;
15225
15287
  closePromise = (async () => {
15226
15288
  sessions.clear();
15289
+ const pendingOwners = [...ownerSessions.values()].flatMap((owner) => [...owner.pending]);
15290
+ ownerSessions.clear();
15291
+ await Promise.allSettled(pendingOwners);
15227
15292
  await closeHttpServer(server);
15228
15293
  })();
15229
15294
  return closePromise;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openplanr/protocol",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "description": "Canonical OpenPlanr schemas, registries, typed errors, and portable contract validation",
6
6
  "license": "MIT",
@@ -83,6 +83,10 @@
83
83
  "./enterprise-contracts": {
84
84
  "types": "./src/enterprise-contracts.d.mts",
85
85
  "import": "./src/enterprise-contracts.mjs"
86
+ },
87
+ "./diagram-authoring-contracts": {
88
+ "types": "./src/diagram-authoring-contracts.d.mts",
89
+ "import": "./src/diagram-authoring-contracts.mjs"
86
90
  }
87
91
  },
88
92
  "files": [
@@ -14910,6 +14910,7 @@ function createArtifactReviewServer({
14910
14910
  throw artifactError(ARTIFACT_ERROR_CODES.LOOPBACK_STATE, "Artifact review instance id is invalid.");
14911
14911
  }
14912
14912
  const sessions = /* @__PURE__ */ new Map();
14913
+ const ownerSessions = /* @__PURE__ */ new Map();
14913
14914
  let port = null;
14914
14915
  let closePromise = null;
14915
14916
  let pendingRegistrations = 0;
@@ -14917,7 +14918,7 @@ function createArtifactReviewServer({
14917
14918
  let draining = false;
14918
14919
  let emptyTimer = null;
14919
14920
  const stageRuntime = () => readFileSync11(STAGE_RUNTIME_PATH, "utf8");
14920
- const idle = () => sessions.size === 0 && pendingRegistrations === 0 && activeRequests === 0;
14921
+ const idle = () => sessions.size === 0 && ownerSessions.size === 0 && pendingRegistrations === 0 && activeRequests === 0;
14921
14922
  const scheduleEmpty = () => {
14922
14923
  if (emptyTimer || draining || typeof onEmpty !== "function") return;
14923
14924
  emptyTimer = setTimeout(async () => {
@@ -15042,6 +15043,41 @@ function createArtifactReviewServer({
15042
15043
  notFound(res, { head });
15043
15044
  return;
15044
15045
  }
15046
+ if (segments[0] === "o") {
15047
+ const owner = safeSessionId(segments[1]) && ownerSessions.get(segments[1]);
15048
+ if (draining || !sessionMatches(owner, segments[2])) {
15049
+ notFound(res, { head });
15050
+ return;
15051
+ }
15052
+ const request2 = Promise.resolve().then(() => owner.handleRequest({
15053
+ req,
15054
+ segments: segments.slice(3),
15055
+ head,
15056
+ origin: `http://${LOOPBACK_HOST}:${port}`,
15057
+ recoveryScope: owner.recoveryScope
15058
+ }));
15059
+ owner.pending.add(request2);
15060
+ let response;
15061
+ try {
15062
+ response = await request2;
15063
+ } finally {
15064
+ owner.pending.delete(request2);
15065
+ }
15066
+ if (!response) {
15067
+ notFound(res, { head });
15068
+ return;
15069
+ }
15070
+ send(res, response.status, JSON.stringify(response.body), {
15071
+ // Rejections may precede body consumption (for example Content-Length
15072
+ // above the limit). Do not reuse a socket containing unread body bytes.
15073
+ ...response.status >= 400 ? { connection: "close" } : {},
15074
+ "content-type": "application/json; charset=utf-8",
15075
+ "cross-origin-resource-policy": "same-origin",
15076
+ "content-security-policy": "default-src 'none'; frame-ancestors 'none'",
15077
+ "x-frame-options": "DENY"
15078
+ }, { head });
15079
+ return;
15080
+ }
15045
15081
  if (segments.length < 3 || segments[0] !== "r" || !safeSessionId(segments[1])) {
15046
15082
  notFound(res, { head });
15047
15083
  return;
@@ -15200,6 +15236,32 @@ function createArtifactReviewServer({
15200
15236
  controlToken,
15201
15237
  instanceId,
15202
15238
  sessionCount: () => sessions.size,
15239
+ /** Trusted local authority only; this operation has no HTTP control route. */
15240
+ registerOwnerSession({ handleRequest } = {}) {
15241
+ if (draining || closePromise || typeof handleRequest !== "function") {
15242
+ throw artifactError(ARTIFACT_ERROR_CODES.LOOPBACK_STATE, "Local owner session cannot be registered.");
15243
+ }
15244
+ const id4 = mintCapabilityToken({ bytes: SESSION_ID_BYTES });
15245
+ const owner = {
15246
+ id: id4,
15247
+ capability: mintCapabilityToken({ bytes: SESSION_TOKEN_BYTES }),
15248
+ recoveryScope: `diagram-owner_${id4}`,
15249
+ handleRequest,
15250
+ pending: /* @__PURE__ */ new Set()
15251
+ };
15252
+ ownerSessions.set(id4, owner);
15253
+ return Object.freeze({
15254
+ sessionId: id4,
15255
+ capability: owner.capability,
15256
+ recoveryScope: owner.recoveryScope,
15257
+ path: `/o/${id4}/${owner.capability}/`,
15258
+ async close() {
15259
+ ownerSessions.delete(id4);
15260
+ await Promise.allSettled([...owner.pending]);
15261
+ if (idle()) scheduleEmpty();
15262
+ }
15263
+ });
15264
+ },
15203
15265
  isIdle: idle,
15204
15266
  accepting: () => !draining && !closePromise,
15205
15267
  beginCloseIfIdle() {
@@ -15224,6 +15286,9 @@ function createArtifactReviewServer({
15224
15286
  emptyTimer = null;
15225
15287
  closePromise = (async () => {
15226
15288
  sessions.clear();
15289
+ const pendingOwners = [...ownerSessions.values()].flatMap((owner) => [...owner.pending]);
15290
+ ownerSessions.clear();
15291
+ await Promise.allSettled(pendingOwners);
15227
15292
  await closeHttpServer(server);
15228
15293
  })();
15229
15294
  return closePromise;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openplanr/protocol",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "description": "Canonical OpenPlanr schemas, registries, typed errors, and portable contract validation",
6
6
  "license": "MIT",
@@ -83,6 +83,10 @@
83
83
  "./enterprise-contracts": {
84
84
  "types": "./src/enterprise-contracts.d.mts",
85
85
  "import": "./src/enterprise-contracts.mjs"
86
+ },
87
+ "./diagram-authoring-contracts": {
88
+ "types": "./src/diagram-authoring-contracts.d.mts",
89
+ "import": "./src/diagram-authoring-contracts.mjs"
86
90
  }
87
91
  },
88
92
  "files": [