@sentropic/h2a 0.98.7 → 0.98.8-rc.1

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 (147) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.codex-plugin/plugin.json +1 -1
  3. package/dist/cli.d.ts.map +1 -1
  4. package/dist/cli.js +56 -15
  5. package/dist/cli.js.map +1 -1
  6. package/dist/hosts/native-artifacts.d.ts +2 -0
  7. package/dist/hosts/native-artifacts.d.ts.map +1 -1
  8. package/dist/hosts/native-artifacts.js +19 -5
  9. package/dist/hosts/native-artifacts.js.map +1 -1
  10. package/dist/hosts/native-convergence.d.ts +1 -0
  11. package/dist/hosts/native-convergence.d.ts.map +1 -1
  12. package/dist/hosts/native-convergence.js +1 -1
  13. package/dist/hosts/native-convergence.js.map +1 -1
  14. package/dist/hosts/native-skills.d.ts +6 -0
  15. package/dist/hosts/native-skills.d.ts.map +1 -1
  16. package/dist/hosts/native-skills.js +9 -4
  17. package/dist/hosts/native-skills.js.map +1 -1
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/index.js.map +1 -1
  22. package/dist/runtime/identity/live.d.ts.map +1 -1
  23. package/dist/runtime/identity/live.js +27 -4
  24. package/dist/runtime/identity/live.js.map +1 -1
  25. package/dist/runtime/identity/worker.js +21 -2
  26. package/dist/runtime/identity/worker.js.map +1 -1
  27. package/dist/runtime/local-files/identity-fence.d.ts +1 -0
  28. package/dist/runtime/local-files/identity-fence.d.ts.map +1 -1
  29. package/dist/runtime/local-files/identity-fence.js +14 -3
  30. package/dist/runtime/local-files/identity-fence.js.map +1 -1
  31. package/dist/runtime/local-files/locks.d.ts +16 -9
  32. package/dist/runtime/local-files/locks.d.ts.map +1 -1
  33. package/dist/runtime/local-files/locks.js +238 -42
  34. package/dist/runtime/local-files/locks.js.map +1 -1
  35. package/dist/runtime/local-files/succession-lock.d.ts.map +1 -1
  36. package/dist/runtime/local-files/succession-lock.js +7 -6
  37. package/dist/runtime/local-files/succession-lock.js.map +1 -1
  38. package/dist/runtime/mcp/identity-state.d.ts +2 -0
  39. package/dist/runtime/mcp/identity-state.d.ts.map +1 -1
  40. package/dist/runtime/mcp/identity-state.js +39 -1
  41. package/dist/runtime/mcp/identity-state.js.map +1 -1
  42. package/dist/runtime/mcp/index.d.ts +11 -1
  43. package/dist/runtime/mcp/index.d.ts.map +1 -1
  44. package/dist/runtime/mcp/index.js +10 -0
  45. package/dist/runtime/mcp/index.js.map +1 -1
  46. package/dist/runtime/mcp/server.d.ts +23 -1
  47. package/dist/runtime/mcp/server.d.ts.map +1 -1
  48. package/dist/runtime/mcp/server.js +18 -2
  49. package/dist/runtime/mcp/server.js.map +1 -1
  50. package/dist/runtime/mcp/stdio.d.ts.map +1 -1
  51. package/dist/runtime/mcp/stdio.js +60 -4
  52. package/dist/runtime/mcp/stdio.js.map +1 -1
  53. package/dist/runtime/mcp/tools.d.ts +22 -0
  54. package/dist/runtime/mcp/tools.d.ts.map +1 -1
  55. package/dist/runtime/mcp/tools.js.map +1 -1
  56. package/dist/runtime/mcp/ui-render/a2ui-common-types.d.ts +32 -0
  57. package/dist/runtime/mcp/ui-render/a2ui-common-types.d.ts.map +1 -0
  58. package/dist/runtime/mcp/ui-render/a2ui-common-types.js +374 -0
  59. package/dist/runtime/mcp/ui-render/a2ui-common-types.js.map +1 -0
  60. package/dist/runtime/mcp/ui-render/assets.d.ts +104 -0
  61. package/dist/runtime/mcp/ui-render/assets.d.ts.map +1 -0
  62. package/dist/runtime/mcp/ui-render/assets.js +217 -0
  63. package/dist/runtime/mcp/ui-render/assets.js.map +1 -0
  64. package/dist/runtime/mcp/ui-render/bpmn-port.d.ts +3 -0
  65. package/dist/runtime/mcp/ui-render/bpmn-port.d.ts.map +1 -0
  66. package/dist/runtime/mcp/ui-render/bpmn-port.js +621 -0
  67. package/dist/runtime/mcp/ui-render/bpmn-port.js.map +1 -0
  68. package/dist/runtime/mcp/ui-render/fallback.d.ts +35 -0
  69. package/dist/runtime/mcp/ui-render/fallback.d.ts.map +1 -0
  70. package/dist/runtime/mcp/ui-render/fallback.js +245 -0
  71. package/dist/runtime/mcp/ui-render/fallback.js.map +1 -0
  72. package/dist/runtime/mcp/ui-render/index.d.ts +51 -0
  73. package/dist/runtime/mcp/ui-render/index.d.ts.map +1 -0
  74. package/dist/runtime/mcp/ui-render/index.js +38 -0
  75. package/dist/runtime/mcp/ui-render/index.js.map +1 -0
  76. package/dist/runtime/mcp/ui-render/inline.d.ts +3 -0
  77. package/dist/runtime/mcp/ui-render/inline.d.ts.map +1 -0
  78. package/dist/runtime/mcp/ui-render/inline.js +21 -0
  79. package/dist/runtime/mcp/ui-render/inline.js.map +1 -0
  80. package/dist/runtime/mcp/ui-render/negotiation.d.ts +23 -0
  81. package/dist/runtime/mcp/ui-render/negotiation.d.ts.map +1 -0
  82. package/dist/runtime/mcp/ui-render/negotiation.js +45 -0
  83. package/dist/runtime/mcp/ui-render/negotiation.js.map +1 -0
  84. package/dist/runtime/mcp/ui-render/registry-entry.d.ts +74 -0
  85. package/dist/runtime/mcp/ui-render/registry-entry.d.ts.map +1 -0
  86. package/dist/runtime/mcp/ui-render/registry-entry.js +207 -0
  87. package/dist/runtime/mcp/ui-render/registry-entry.js.map +1 -0
  88. package/dist/runtime/mcp/ui-render/resources.d.ts +35 -0
  89. package/dist/runtime/mcp/ui-render/resources.d.ts.map +1 -0
  90. package/dist/runtime/mcp/ui-render/resources.js +342 -0
  91. package/dist/runtime/mcp/ui-render/resources.js.map +1 -0
  92. package/dist/runtime/mcp/ui-render/tools.d.ts +42 -0
  93. package/dist/runtime/mcp/ui-render/tools.d.ts.map +1 -0
  94. package/dist/runtime/mcp/ui-render/tools.js +367 -0
  95. package/dist/runtime/mcp/ui-render/tools.js.map +1 -0
  96. package/dist/runtime/mcp/ui-render/types.d.ts +96 -0
  97. package/dist/runtime/mcp/ui-render/types.d.ts.map +1 -0
  98. package/dist/runtime/mcp/ui-render/types.js +22 -0
  99. package/dist/runtime/mcp/ui-render/types.js.map +1 -0
  100. package/dist/runtime/mcp/ui-render/validation.d.ts +151 -0
  101. package/dist/runtime/mcp/ui-render/validation.d.ts.map +1 -0
  102. package/dist/runtime/mcp/ui-render/validation.js +460 -0
  103. package/dist/runtime/mcp/ui-render/validation.js.map +1 -0
  104. package/dist/runtime/mcp/ui-render/watermark.d.ts +38 -0
  105. package/dist/runtime/mcp/ui-render/watermark.d.ts.map +1 -0
  106. package/dist/runtime/mcp/ui-render/watermark.js +52 -0
  107. package/dist/runtime/mcp/ui-render/watermark.js.map +1 -0
  108. package/dist/runtime/mcp-central.d.ts.map +1 -1
  109. package/dist/runtime/mcp-central.js +55 -6
  110. package/dist/runtime/mcp-central.js.map +1 -1
  111. package/fixtures/ui-render-ac-l3/offline-measurement.v1.json +105 -0
  112. package/package.json +8 -5
  113. package/vendor/design-system-elements/catalog.json +1234 -0
  114. package/vendor/design-system-elements/dist/browser/assets/bpmn-CZlEAdL6.ttf +0 -0
  115. package/vendor/design-system-elements/dist/browser/assets/bpmn-DaGVGZ7K.woff +0 -0
  116. package/vendor/design-system-elements/dist/browser/assets/bpmn-DaJ2be00.woff2 +0 -0
  117. package/vendor/design-system-elements/dist/browser/chunks/BpmnRenderUtil-WMCgqGDs.js +1 -0
  118. package/vendor/design-system-elements/dist/browser/chunks/BpmnUpdater-C-UNbzXl.js +1 -0
  119. package/vendor/design-system-elements/dist/browser/chunks/LabelUtil-7QpE43Ed.js +1 -0
  120. package/vendor/design-system-elements/dist/browser/chunks/LayoutUtil-hAMJmJFU.js +1 -0
  121. package/vendor/design-system-elements/dist/browser/chunks/ModelUtil-CMh7LuN4.js +1 -0
  122. package/vendor/design-system-elements/dist/browser/chunks/Modeler-BfAmwsmK.js +389 -0
  123. package/vendor/design-system-elements/dist/browser/chunks/Viewer-eYLzc3fD.js +4 -0
  124. package/vendor/design-system-elements/dist/browser/chunks/bpmn-canvas-DeAWdJFy.js +2207 -0
  125. package/vendor/design-system-elements/dist/browser/chunks/colored-CSIQaGsQ.js +1 -0
  126. package/vendor/design-system-elements/dist/browser/chunks/dist-Co2MgHWm.js +1 -0
  127. package/vendor/design-system-elements/dist/browser/chunks/dist-O6_2ByYB.js +1 -0
  128. package/vendor/design-system-elements/dist/browser/chunks/dist-kvAYI1vo.js +1 -0
  129. package/vendor/design-system-elements/dist/browser/chunks/entropic-CM5BHERN.js +2173 -0
  130. package/vendor/design-system-elements/dist/browser/chunks/focus-renderer-C4z8aS9F.js +8 -0
  131. package/vendor/design-system-elements/dist/browser/chunks/forge-B8hrW4lA.js +2173 -0
  132. package/vendor/design-system-elements/dist/browser/chunks/layout-q0TR9-aY.js +1 -0
  133. package/vendor/design-system-elements/dist/browser/chunks/legend-CXdfCBh6.js +1 -0
  134. package/vendor/design-system-elements/dist/browser/chunks/textMetrics-BrMS6-sA.js +2 -0
  135. package/vendor/design-system-elements/dist/browser/chunks/tokens-DFPpCvf1.js +1 -0
  136. package/vendor/design-system-elements/dist/browser/elements.js +2221 -0
  137. package/vendor/design-system-elements/dist/browser/sri.json +166 -0
  138. package/vendor/design-system-elements/envelope.json +43 -0
  139. package/vendor/design-system-elements/manifest.json +101 -0
  140. package/vendor/design-system-elements/schemas/BarChart.v1.json +556 -0
  141. package/vendor/design-system-elements/schemas/BpmnCanvas.v1.json +139 -0
  142. package/vendor/design-system-elements/schemas/DecisionDossier.v1.json +635 -0
  143. package/vendor/ui-render-inline/BarChart.js +1 -0
  144. package/vendor/ui-render-inline/BpmnCanvas.js +1 -0
  145. package/vendor/ui-render-inline/DecisionDossier.js +1 -0
  146. package/vendor/ui-render-inline/manifest.json +80 -0
  147. package/vendor/ui-render-inline/render.js +1 -0
@@ -0,0 +1,217 @@
1
+ /**
2
+ * The vendored asset loader (h2a spec §7.2): until DS L7a publishes
3
+ * `@sentropic/design-system-elements`, the module serves the deterministic
4
+ * snapshot vendored under `packages/h2a/vendor/design-system-elements/`.
5
+ * Every file is verified by SHA-256 against the pinned `manifest.json`
6
+ * before anything is served, and the catalogue's declared focus semantic
7
+ * digest must equal the pinned `@sentropic/focus` v1 schema digest. A
8
+ * tampered, extra, or missing file — or a disagreeing catalog — refuses
9
+ * with a deterministic `integrity_mismatch` error.
10
+ *
11
+ * `H2A_DS_ELEMENTS_WORKSPACE_DIR` (developer-only) admits a built DS
12
+ * `packages/elements` checkout for cross-repo iteration: the operational
13
+ * trio (`catalog.json`, `envelope.json`, `dist/browser/sri.json`) must
14
+ * still match the pinned digests; every other file is optional but must
15
+ * be pinned and match when present.
16
+ */
17
+ import { createHash } from "node:crypto";
18
+ import { readdirSync, readFileSync } from "node:fs";
19
+ import { basename, join } from "node:path";
20
+ import { fileURLToPath, pathToFileURL } from "node:url";
21
+ /**
22
+ * The SHA-256 of `@sentropic/focus/schemas/decision-dossier-document.v1`
23
+ * (`urn:sentropic:focus:DecisionDossierDocument:1.0.0`): the semantic
24
+ * digest the catalogue's DecisionDossier entry must declare (h2a spec
25
+ * §7.2; the focus validator wired into the semantic port validates v1).
26
+ */
27
+ export const FOCUS_DECISION_DOSSIER_V1_SHA256 = "725bc07e7c6b6ad51a1f720cc9fb02649d8f31bc54e71c61c350fd20058c8852";
28
+ /** The vendor manifest format tag; anything else is not the pinned snapshot. */
29
+ const VENDOR_MANIFEST_FORMAT = "h2a.ds-elements-vendor/v1";
30
+ /** The default vendored snapshot (four levels up from this module, in src or dist). */
31
+ const DEFAULT_VENDOR_DIR = new URL("../../../../vendor/design-system-elements/", import.meta.url);
32
+ /** The files a workspace build must carry for the module to operate (§7.2). */
33
+ const WORKSPACE_REQUIRED_FILES = ["catalog.json", "envelope.json", "dist/browser/sri.json"];
34
+ /** Every refusal carries this marker (h2a spec §7.2). */
35
+ function integrityMismatch(detail) {
36
+ return new Error(`integrity_mismatch: ${detail}`);
37
+ }
38
+ /** Normalizes a directory locator (string path or URL) to a URL with a trailing slash. */
39
+ function toDirUrl(dir) {
40
+ const url = dir instanceof URL ? dir : pathToFileURL(dir);
41
+ return url.href.endsWith("/") ? url : new URL(`${url.href}/`);
42
+ }
43
+ /**
44
+ * Lists every file under `root`, as forward-slash paths relative to `root`.
45
+ * Synchronous by design: the transports compose the module during their own
46
+ * synchronous boot (the stdio readiness contract), and `resources/read` is
47
+ * a synchronous handler.
48
+ */
49
+ function listTreeFiles(root) {
50
+ const files = [];
51
+ function walk(dir, prefix) {
52
+ const entries = readdirSync(dir, { withFileTypes: true });
53
+ for (const entry of entries) {
54
+ const rel = prefix === "" ? entry.name : `${prefix}/${entry.name}`;
55
+ if (entry.isFile())
56
+ files.push(rel);
57
+ else if (entry.isDirectory())
58
+ walk(join(dir, entry.name), rel);
59
+ }
60
+ }
61
+ walk(root, "");
62
+ files.sort();
63
+ return files;
64
+ }
65
+ /** SHA-256 of one file's bytes. */
66
+ function sha256OfFile(path) {
67
+ return createHash("sha256").update(readFileSync(path)).digest("hex");
68
+ }
69
+ /** Reads and parses the pinned manifest of a vendor tree. */
70
+ function readVendorManifest(vendorDir) {
71
+ let text;
72
+ try {
73
+ text = readFileSync(join(fileURLToPath(vendorDir), "manifest.json"), "utf8");
74
+ }
75
+ catch {
76
+ throw integrityMismatch(`the vendored snapshot has no readable manifest.json under ${fileURLToPath(vendorDir)}`);
77
+ }
78
+ let manifest;
79
+ try {
80
+ manifest = JSON.parse(text);
81
+ }
82
+ catch (error) {
83
+ throw integrityMismatch(`manifest.json is not parseable JSON: ${error instanceof Error ? error.message : String(error)}`);
84
+ }
85
+ if (manifest.format !== VENDOR_MANIFEST_FORMAT) {
86
+ throw integrityMismatch(`manifest.format is ${JSON.stringify(manifest.format)}, not ${JSON.stringify(VENDOR_MANIFEST_FORMAT)}`);
87
+ }
88
+ if (manifest.files === undefined || manifest.files === null || typeof manifest.files !== "object") {
89
+ throw integrityMismatch("manifest.json carries no files digest map");
90
+ }
91
+ return manifest;
92
+ }
93
+ /**
94
+ * Loads and verifies the vendored asset set, synchronously: the stdio
95
+ * transport composes the module inside its own synchronous boot (the
96
+ * readiness ACK must be on disk before `runMcpStdio` returns), and the
97
+ * `resources/read` handlers are synchronous.
98
+ */
99
+ export function loadUiRenderAssetsSync(options) {
100
+ const workspaceOption = options?.workspaceDir ?? process.env["H2A_DS_ELEMENTS_WORKSPACE_DIR"];
101
+ const workspaceDir = workspaceOption !== undefined && workspaceOption !== "" ? toDirUrl(workspaceOption) : undefined;
102
+ const vendorDir = toDirUrl(options?.vendorDir ?? DEFAULT_VENDOR_DIR);
103
+ // The pinned digests always come from a vendor manifest: the given vendor
104
+ // tree, or the default snapshot when a workspace overlay is admitted.
105
+ const manifest = readVendorManifest(workspaceDir === undefined ? vendorDir : DEFAULT_VENDOR_DIR);
106
+ // The artifacts come from the vendor tree, or from the workspace overlay.
107
+ // The vendor tree's own `manifest.json` is the pinning record, not a
108
+ // vendored artifact: it is excluded from the verified file set.
109
+ const sourceDir = workspaceDir ?? vendorDir;
110
+ const sourcePath = fileURLToPath(sourceDir);
111
+ const actualFiles = listTreeFiles(sourcePath).filter((file) => file !== "manifest.json");
112
+ const pinnedFiles = Object.keys(manifest.files);
113
+ if (workspaceDir === undefined) {
114
+ // The vendored snapshot is the exact pinned file set: nothing else may
115
+ // be vendored, and nothing may be missing.
116
+ const extra = actualFiles.filter((file) => !(file in manifest.files));
117
+ if (extra.length > 0) {
118
+ throw integrityMismatch(`file ${JSON.stringify(extra[0])} is not part of the pinned build (never vendor anything else)`);
119
+ }
120
+ const missing = pinnedFiles.filter((file) => !actualFiles.includes(file));
121
+ if (missing.length > 0) {
122
+ throw integrityMismatch(`pinned file ${JSON.stringify(missing[0])} is missing`);
123
+ }
124
+ }
125
+ else {
126
+ // A workspace build admits a partial tree, but nothing unpinned and
127
+ // nothing unverified: every present file must match its pin, and the
128
+ // operational trio must be there.
129
+ const unpinned = actualFiles.filter((file) => !(file in manifest.files));
130
+ if (unpinned.length > 0) {
131
+ throw integrityMismatch(`workspace file ${JSON.stringify(unpinned[0])} is not part of the pinned build`);
132
+ }
133
+ const missingRequired = WORKSPACE_REQUIRED_FILES.filter((file) => !actualFiles.includes(file));
134
+ if (missingRequired.length > 0) {
135
+ throw integrityMismatch(`the workspace build is missing the required ${JSON.stringify(missingRequired[0])}`);
136
+ }
137
+ }
138
+ // Verify every present file against its pinned SHA-256.
139
+ for (const file of actualFiles) {
140
+ const pinned = manifest.files[file];
141
+ if (pinned === undefined || typeof pinned.sha256 !== "string") {
142
+ throw integrityMismatch(`file ${JSON.stringify(file)} has no pinned sha256`);
143
+ }
144
+ const actual = sha256OfFile(join(sourcePath, file));
145
+ if (actual !== pinned.sha256) {
146
+ throw integrityMismatch(`file ${JSON.stringify(file)} does not match the pinned sha256 (expected ${pinned.sha256}, got ${actual})`);
147
+ }
148
+ }
149
+ const catalogText = readFileSync(join(sourcePath, "catalog.json"), "utf8");
150
+ let catalog;
151
+ try {
152
+ catalog = JSON.parse(catalogText);
153
+ }
154
+ catch (error) {
155
+ throw integrityMismatch(`catalog.json is not parseable JSON: ${error instanceof Error ? error.message : String(error)}`);
156
+ }
157
+ if (typeof catalog.catalogId !== "string" || catalog.catalogId.length === 0) {
158
+ throw integrityMismatch("catalog.json carries no catalogId (DS §5.2: $id = catalogId)");
159
+ }
160
+ // The catalogued focus semantic digest must equal the pinned @sentropic/focus
161
+ // v1 schema digest: the wired focus port validates exactly that schema.
162
+ const dossier = catalog.components
163
+ ?.DecisionDossier;
164
+ const semantic = dossier?.["x-sentropic"]?.semantic;
165
+ if (semantic?.sha256 !== FOCUS_DECISION_DOSSIER_V1_SHA256) {
166
+ throw integrityMismatch(`the catalogued DecisionDossier semantic digest is ${JSON.stringify(semantic?.sha256)}, not the pinned @sentropic/focus v1 schema digest ${FOCUS_DECISION_DOSSIER_V1_SHA256}`);
167
+ }
168
+ const envelopeText = readFileSync(join(sourcePath, "envelope.json"), "utf8");
169
+ let envelopeSchema;
170
+ try {
171
+ envelopeSchema = JSON.parse(envelopeText);
172
+ }
173
+ catch (error) {
174
+ throw integrityMismatch(`envelope.json is not parseable JSON: ${error instanceof Error ? error.message : String(error)}`);
175
+ }
176
+ let sri;
177
+ try {
178
+ sri = JSON.parse(readFileSync(join(sourcePath, "dist/browser/sri.json"), "utf8"));
179
+ }
180
+ catch (error) {
181
+ throw integrityMismatch(`dist/browser/sri.json is not readable or not parseable JSON: ${error instanceof Error ? error.message : String(error)}`);
182
+ }
183
+ // The standalone per-component schemas: pinned when vendored, optional in
184
+ // a workspace build, verified by digest above when present.
185
+ const schemas = {};
186
+ for (const file of actualFiles) {
187
+ if (!file.startsWith("schemas/") || !file.endsWith(".v1.json"))
188
+ continue;
189
+ const component = basename(file, ".v1.json");
190
+ try {
191
+ schemas[component] = JSON.parse(readFileSync(join(sourcePath, file), "utf8"));
192
+ }
193
+ catch (error) {
194
+ throw integrityMismatch(`${file} is not parseable JSON: ${error instanceof Error ? error.message : String(error)}`);
195
+ }
196
+ }
197
+ return {
198
+ vendorDir: sourceDir,
199
+ workspace: workspaceDir !== undefined,
200
+ manifest,
201
+ catalog,
202
+ catalogText,
203
+ envelopeSchema,
204
+ envelopeText,
205
+ schemas,
206
+ sri,
207
+ };
208
+ }
209
+ /**
210
+ * The async public loader: the same verified load, exposed as a Promise for
211
+ * external consumers (the transports use the synchronous core during their
212
+ * own synchronous boot).
213
+ */
214
+ export async function loadUiRenderAssets(options) {
215
+ return loadUiRenderAssetsSync(options);
216
+ }
217
+ //# sourceMappingURL=assets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assets.js","sourceRoot":"","sources":["../../../../src/runtime/mcp/ui-render/assets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,aAAa,EAA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,CAAC;IACJ,CAAC;IAED,0EAA0E;IAC1E,4DAA4D;IAC5D,MAAM,OAAO,GAA4C,EAAE,CAAC;IAC5D,KAAK,MAAM,IAAI,IAAI,WAAW,EAAE,CAAC;QAC/B,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC;YAAE,SAAS;QACzE,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC;YACH,OAAO,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,CAG3E,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,iBAAiB,CACrB,GAAG,IAAI,2BAA2B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAC3F,CAAC;QACJ,CAAC;IACH,CAAC;IAED,OAAO;QACL,SAAS,EAAE,SAAS;QACpB,SAAS,EAAE,YAAY,KAAK,SAAS;QACrC,QAAQ;QACR,OAAO;QACP,WAAW;QACX,cAAc;QACd,YAAY;QACZ,OAAO;QACP,GAAG;KACJ,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,OAAmC;IAEnC,OAAO,sBAAsB,CAAC,OAAO,CAAC,CAAC;AACzC,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @type {import("./types.js").SemanticPort} */
2
+ export const port: import("./types.js").SemanticPort;
3
+ //# sourceMappingURL=bpmn-port.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bpmn-port.d.ts","sourceRoot":"","sources":["../../../../src/runtime/mcp/ui-render/bpmn-port.js"],"names":[],"mappings":"AAEA,gDAAgD;AAChD,mBADW,OAAO,YAAY,EAAE,YAAY,CACsD"}