@niscorp/nova 0.2.1 → 0.2.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.
- package/CHANGELOG.md +13 -0
- package/dist/adapters/dom/components/index.cjs +4 -51
- package/dist/adapters/dom/components/index.cjs.map +1 -1
- package/dist/adapters/dom/index.cjs +22 -686
- package/dist/adapters/dom/index.cjs.map +1 -1
- package/dist/adapters/dom/server.cjs +14 -411
- package/dist/adapters/dom/server.cjs.map +1 -1
- package/dist/adapters/react/components/index.cjs +87 -562
- package/dist/adapters/react/components/index.cjs.map +1 -1
- package/dist/adapters/react/components/index.d.cts +2 -2
- package/dist/adapters/react/components/index.d.ts +2 -2
- package/dist/adapters/react/index.cjs +97 -1815
- package/dist/adapters/react/index.cjs.map +1 -1
- package/dist/adapters/tty/components/index.cjs +3 -44
- package/dist/adapters/tty/components/index.cjs.map +1 -1
- package/dist/adapters/tty/index.cjs +13 -5
- package/dist/adapters/tty/index.cjs.map +1 -1
- package/dist/adapters/vue/components/index.cjs +88 -639
- package/dist/adapters/vue/components/index.cjs.map +1 -1
- package/dist/adapters/vue/components/index.d.cts +10 -10
- package/dist/adapters/vue/components/index.d.ts +10 -10
- package/dist/adapters/vue/index.cjs +96 -962
- package/dist/adapters/vue/index.cjs.map +1 -1
- package/dist/agent/index.cjs +13 -151
- package/dist/agent/index.cjs.map +1 -1
- package/dist/chunk-3IPM5QBT.cjs +436 -0
- package/dist/chunk-3IPM5QBT.cjs.map +1 -0
- package/dist/chunk-5AF72LOE.cjs +97 -0
- package/dist/chunk-5AF72LOE.cjs.map +1 -0
- package/dist/chunk-5YQIAS4V.cjs +184 -0
- package/dist/chunk-5YQIAS4V.cjs.map +1 -0
- package/dist/chunk-D4PUWBN6.cjs +72 -0
- package/dist/chunk-D4PUWBN6.cjs.map +1 -0
- package/dist/chunk-FSUMCJAR.cjs +646 -0
- package/dist/chunk-FSUMCJAR.cjs.map +1 -0
- package/dist/chunk-GV7UC3SS.cjs +33 -0
- package/dist/chunk-GV7UC3SS.cjs.map +1 -0
- package/dist/chunk-IZ2UU5UL.cjs +808 -0
- package/dist/chunk-IZ2UU5UL.cjs.map +1 -0
- package/dist/chunk-KOYRJXTI.cjs +123 -0
- package/dist/chunk-KOYRJXTI.cjs.map +1 -0
- package/dist/chunk-KW34ZKF5.cjs +12 -0
- package/dist/chunk-KW34ZKF5.cjs.map +1 -0
- package/dist/chunk-OE527MXF.cjs +49 -0
- package/dist/chunk-OE527MXF.cjs.map +1 -0
- package/dist/chunk-OO247V4J.cjs +2117 -0
- package/dist/chunk-OO247V4J.cjs.map +1 -0
- package/dist/chunk-PMKWYOOX.cjs +64 -0
- package/dist/chunk-PMKWYOOX.cjs.map +1 -0
- package/dist/chunk-PNQY6OFB.cjs +132 -0
- package/dist/chunk-PNQY6OFB.cjs.map +1 -0
- package/dist/chunk-Q7SFCCGT.cjs +11 -0
- package/dist/chunk-Q7SFCCGT.cjs.map +1 -0
- package/dist/chunk-TMLNVU5W.cjs +318 -0
- package/dist/chunk-TMLNVU5W.cjs.map +1 -0
- package/dist/chunk-TRJYDVWK.cjs +623 -0
- package/dist/chunk-TRJYDVWK.cjs.map +1 -0
- package/dist/chunk-UGG7MCX4.cjs +34 -0
- package/dist/chunk-UGG7MCX4.cjs.map +1 -0
- package/dist/chunk-WGPFR7MN.cjs +808 -0
- package/dist/chunk-WGPFR7MN.cjs.map +1 -0
- package/dist/chunk-WGZZKCJQ.cjs +157 -0
- package/dist/chunk-WGZZKCJQ.cjs.map +1 -0
- package/dist/devtools/index.cjs +13 -697
- package/dist/devtools/index.cjs.map +1 -1
- package/dist/document/index.cjs +56 -301
- package/dist/document/index.cjs.map +1 -1
- package/dist/examples/index.cjs +6 -31
- package/dist/examples/index.cjs.map +1 -1
- package/dist/i18n/index.cjs +44 -292
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/index.cjs +335 -3954
- package/dist/index.cjs.map +1 -1
- package/dist/migrations/index.cjs +7 -590
- package/dist/migrations/index.cjs.map +1 -1
- package/dist/reflect/index.cjs +85 -994
- package/dist/reflect/index.cjs.map +1 -1
- package/package.json +5 -5
- package/dist/{primitive-props-CGoJvmcH.d.cts → primitive-props-Cl5jiC8g.d.cts} +5 -5
- package/dist/{primitive-props-CGoJvmcH.d.ts → primitive-props-Cl5jiC8g.d.ts} +5 -5
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/agent/affordances.ts
|
|
4
|
+
var KEY_PATTERN = /\$\.([A-Za-z_][A-Za-z0-9_]*)/g;
|
|
5
|
+
var VAR_PATTERN = /\$([A-Za-z_][A-Za-z0-9_]*)\./g;
|
|
6
|
+
var collectInteractive = (layout) => {
|
|
7
|
+
const refs = [];
|
|
8
|
+
const models = [];
|
|
9
|
+
const boundKeys = /* @__PURE__ */ new Set();
|
|
10
|
+
const suspects = /* @__PURE__ */ new Set();
|
|
11
|
+
let componentCount = 0;
|
|
12
|
+
const scanString = (value, scope) => {
|
|
13
|
+
for (const match of value.matchAll(KEY_PATTERN)) {
|
|
14
|
+
const key = match[1];
|
|
15
|
+
if (key !== void 0) boundKeys.add(key);
|
|
16
|
+
}
|
|
17
|
+
for (const match of value.matchAll(VAR_PATTERN)) {
|
|
18
|
+
const name = match[1];
|
|
19
|
+
if (name !== void 0 && !scope.has(name)) suspects.add(`$${name}.`);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
const walk = (node, scope) => {
|
|
23
|
+
if (typeof node === "string") return scanString(node, scope);
|
|
24
|
+
if (Array.isArray(node)) {
|
|
25
|
+
for (const child of node) walk(child, scope);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
if (node === null || typeof node !== "object") return;
|
|
29
|
+
const record = node;
|
|
30
|
+
const loopVar = record["for"] !== void 0 && typeof record["as"] === "string" ? record["as"] : void 0;
|
|
31
|
+
const childScope = loopVar !== void 0 ? /* @__PURE__ */ new Set([...scope, loopVar]) : scope;
|
|
32
|
+
const component = typeof record["component"] === "string" ? record["component"] : void 0;
|
|
33
|
+
if (component !== void 0) {
|
|
34
|
+
componentCount += 1;
|
|
35
|
+
if (typeof record["ref"] === "string" && record["ref"].length > 0) {
|
|
36
|
+
refs.push({ ref: record["ref"], component, via: "ref" });
|
|
37
|
+
}
|
|
38
|
+
if (typeof record["model"] === "string" && record["model"].length > 0) {
|
|
39
|
+
models.push({ path: record["model"], component });
|
|
40
|
+
}
|
|
41
|
+
const props = record["props"];
|
|
42
|
+
if (props !== null && typeof props === "object" && !Array.isArray(props)) {
|
|
43
|
+
for (const [key, value] of Object.entries(props)) {
|
|
44
|
+
if (key.endsWith("Ref") && typeof value === "string" && value.length > 0) {
|
|
45
|
+
refs.push({ ref: value, component, via: key });
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
for (const value of Object.values(record)) walk(value, childScope);
|
|
51
|
+
};
|
|
52
|
+
walk(layout, /* @__PURE__ */ new Set());
|
|
53
|
+
return {
|
|
54
|
+
refs,
|
|
55
|
+
models,
|
|
56
|
+
boundKeys: [...boundKeys].sort(),
|
|
57
|
+
suspectBindings: [...suspects].sort(),
|
|
58
|
+
componentCount
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
exports.collectInteractive = collectInteractive;
|
|
63
|
+
//# sourceMappingURL=chunk-PMKWYOOX.cjs.map
|
|
64
|
+
//# sourceMappingURL=chunk-PMKWYOOX.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/agent/affordances.ts"],"names":[],"mappings":";;;AAuCA,IAAM,WAAA,GAAc,+BAAA;AACpB,IAAM,WAAA,GAAc,+BAAA;AAEb,IAAM,kBAAA,GAAqB,CAAC,MAAA,KAAwC;AACzE,EAAA,MAAM,OAAyB,EAAC;AAChC,EAAA,MAAM,SAA6B,EAAC;AACpC,EAAA,MAAM,SAAA,uBAAgB,GAAA,EAAY;A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AAA,EAAK,KAAK,CAAA;AAAA,UAC/C;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAIA,IAAA,KAAA,MAAW,SAAS,MAAA,CAAO,MAAA,CAAO,MAAM,CAAA,EAAG,IAAA,CAAK,OAAO,UAAU,CAAA;AAAA,EACnE,CAAA;AAEA,EAAA,IAAA,CAAK,MAAA,kBAAQ,IAAI,GAAA,EAAK,CAAA;AACtB,EAAA,OAAO;AAAA,IACL,IAAA;AAAA,IACA,MAAA;AAAA,IACA,SAAA,EAAW,CAAC,GAAG,SAAS,EAAE,IAAA,EAAK;AAAA,IAC/B,eAAA,EAAiB,CAAC,GAAG,QAAQ,EAAE,IAAA,EAAK;AAAA,IACpC;AAAA,GACF;AACF","file":"chunk-PMKWYOOX.cjs","sourcesContent":["// ═══════════════════════════════════════════════════════════\n// Affordance collection — the deterministic half of the action/layout seam.\n//\n// A layout's interactive surface is fully present in its tree: `ref` (event\n// sources), `*Ref` props (component-specific event sources, e.g. a Table's\n// sortRef), `model` (two-way input bindings), and every `$.key` binding it\n// reads. A director agent that wires triggers against a layout it never sees\n// needs that surface as data — so it is DERIVED here by walking the tree,\n// never self-reported by the layout model. A receipt computed from the\n// artifact cannot lie about the artifact.\n// ═══════════════════════════════════════════════════════════\n\nexport type InteractiveRef = {\n ref: string;\n component: string;\n // How the ref is attached: the node's own `ref` field, or a `*Ref` prop name.\n via: string;\n};\n\nexport type InteractiveModel = {\n // The bound data path, e.g. '$.search'.\n path: string;\n component: string;\n};\n\nexport type InteractiveSurface = {\n refs: InteractiveRef[];\n models: InteractiveModel[];\n // Distinct top-level data keys the layout reads anywhere ('$.rows' → 'rows').\n boundKeys: string[];\n // Malformed-looking bindings: `$ident.…` where `ident` is neither the data\n // root (`$.`) nor a loop variable declared by an enclosing `for`/`as` —\n // e.g. `{{$kpi.count}}` (missing dot) renders literally and passes every\n // other check. Collected scope-aware so `{{$row.title}}` inside its loop\n // stays legal.\n suspectBindings: string[];\n componentCount: number;\n};\n\nconst KEY_PATTERN = /\\$\\.([A-Za-z_][A-Za-z0-9_]*)/g;\nconst VAR_PATTERN = /\\$([A-Za-z_][A-Za-z0-9_]*)\\./g;\n\nexport const collectInteractive = (layout: unknown): InteractiveSurface => {\n const refs: InteractiveRef[] = [];\n const models: InteractiveModel[] = [];\n const boundKeys = new Set<string>();\n const suspects = new Set<string>();\n let componentCount = 0;\n\n const scanString = (value: string, scope: ReadonlySet<string>): void => {\n for (const match of value.matchAll(KEY_PATTERN)) {\n const key = match[1];\n if (key !== undefined) boundKeys.add(key);\n }\n for (const match of value.matchAll(VAR_PATTERN)) {\n const name = match[1];\n if (name !== undefined && !scope.has(name)) suspects.add(`$${name}.`);\n }\n };\n\n const walk = (node: unknown, scope: ReadonlySet<string>): void => {\n if (typeof node === 'string') return scanString(node, scope);\n if (Array.isArray(node)) {\n for (const child of node) walk(child, scope);\n return;\n }\n if (node === null || typeof node !== 'object') return;\n const record = node as Record<string, unknown>;\n\n // A `for` directive declares its loop variable for everything beneath.\n const loopVar = record['for'] !== undefined && typeof record['as'] === 'string' ? record['as'] : undefined;\n const childScope = loopVar !== undefined ? new Set([...scope, loopVar]) : scope;\n\n const component = typeof record['component'] === 'string' ? record['component'] : undefined;\n if (component !== undefined) {\n componentCount += 1;\n if (typeof record['ref'] === 'string' && record['ref'].length > 0) {\n refs.push({ ref: record['ref'], component, via: 'ref' });\n }\n if (typeof record['model'] === 'string' && record['model'].length > 0) {\n models.push({ path: record['model'], component });\n }\n const props = record['props'];\n if (props !== null && typeof props === 'object' && !Array.isArray(props)) {\n for (const [key, value] of Object.entries(props as Record<string, unknown>)) {\n if (key.endsWith('Ref') && typeof value === 'string' && value.length > 0) {\n refs.push({ ref: value, component, via: key });\n }\n }\n }\n }\n // Generic descent: directives (`if`/`for`), props, children, column cell\n // specs — every nested node and binding is reached without schema-specific\n // cases. Strings are scanned for `$.key` bindings on the way.\n for (const value of Object.values(record)) walk(value, childScope);\n };\n\n walk(layout, new Set());\n return {\n refs,\n models,\n boundKeys: [...boundKeys].sort(),\n suspectBindings: [...suspects].sort(),\n componentCount,\n };\n};\n"]}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkGV7UC3SS_cjs = require('./chunk-GV7UC3SS.cjs');
|
|
4
|
+
|
|
5
|
+
// src/shell/slot-names.ts
|
|
6
|
+
var CANVAS_SLOT_NAME = "CanvasSlot";
|
|
7
|
+
var ACTION_SLOT_NAME = "ActionSlot";
|
|
8
|
+
|
|
9
|
+
// src/shell/head.ts
|
|
10
|
+
var ATTRIBUTE_NAME = /^[A-Za-z][A-Za-z0-9:._-]*$/;
|
|
11
|
+
var DATA_TYPE = /^application\/([a-z0-9.-]+\+)?json$/i;
|
|
12
|
+
var written = (value) => {
|
|
13
|
+
if (typeof value === "string") return value.trim() === "" ? void 0 : value;
|
|
14
|
+
if (typeof value === "number") return String(value);
|
|
15
|
+
return value === true ? "" : void 0;
|
|
16
|
+
};
|
|
17
|
+
var attributesOf = (what, props, skip = []) => {
|
|
18
|
+
const attributes = {};
|
|
19
|
+
for (const [name, value] of Object.entries(props)) {
|
|
20
|
+
if (skip.includes(name)) continue;
|
|
21
|
+
if (!ATTRIBUTE_NAME.test(name)) return { refused: `${what}: "${name}" is not an attribute\u2019s name` };
|
|
22
|
+
if (/^on/i.test(name)) return { refused: `${what}: \`${name}\` is a handler, and a layout does not run` };
|
|
23
|
+
const text = written(value);
|
|
24
|
+
if (text !== void 0) attributes[name] = text;
|
|
25
|
+
}
|
|
26
|
+
return { attributes };
|
|
27
|
+
};
|
|
28
|
+
var has = (attributes, name) => Object.keys(attributes).some((key) => key.toLowerCase() === name);
|
|
29
|
+
var valueOf = (attributes, name) => Object.entries(attributes).find(([key]) => key.toLowerCase() === name)?.[1] ?? "";
|
|
30
|
+
var textOf = (nodes) => nodes.map((node) => node.type === "text" ? node.value : node.type === "fragment" ? textOf(node.children) : "").join("");
|
|
31
|
+
var titleOf = (node) => {
|
|
32
|
+
const text = textOf(node.children).trim();
|
|
33
|
+
return text === "" ? void 0 : { element: { tag: "title", attributes: {}, text } };
|
|
34
|
+
};
|
|
35
|
+
var metaOf = (node) => {
|
|
36
|
+
const read = attributesOf(chunkGV7UC3SS_cjs.HEAD_META_NAME, node.props);
|
|
37
|
+
if ("refused" in read) return read;
|
|
38
|
+
if (has(read.attributes, "http-equiv")) return { refused: `${chunkGV7UC3SS_cjs.HEAD_META_NAME}: \`http-equiv\` instructs the browser, and a layout does not` };
|
|
39
|
+
return has(read.attributes, "content") ? { element: { tag: "meta", attributes: read.attributes } } : void 0;
|
|
40
|
+
};
|
|
41
|
+
var linkOf = (node) => {
|
|
42
|
+
const read = attributesOf(chunkGV7UC3SS_cjs.HEAD_LINK_NAME, node.props);
|
|
43
|
+
if ("refused" in read) return read;
|
|
44
|
+
if (valueOf(read.attributes, "rel").toLowerCase().split(/\s+/).includes("stylesheet")) return { refused: `${chunkGV7UC3SS_cjs.HEAD_LINK_NAME}: a stylesheet styles the page, and a layout does not` };
|
|
45
|
+
return has(read.attributes, "href") ? { element: { tag: "link", attributes: read.attributes } } : void 0;
|
|
46
|
+
};
|
|
47
|
+
var scriptOf = (node) => {
|
|
48
|
+
const read = attributesOf(chunkGV7UC3SS_cjs.HEAD_SCRIPT_NAME, node.props, ["data"]);
|
|
49
|
+
if ("refused" in read) return read;
|
|
50
|
+
if (has(read.attributes, "src")) return { refused: `${chunkGV7UC3SS_cjs.HEAD_SCRIPT_NAME}: a script with a \`src\` runs, and a layout does not` };
|
|
51
|
+
const type = valueOf(read.attributes, "type");
|
|
52
|
+
if (!DATA_TYPE.test(type)) return { refused: `${chunkGV7UC3SS_cjs.HEAD_SCRIPT_NAME}: only a data block may be written (a JSON \`type\`), and "${type}" is not one` };
|
|
53
|
+
const data = node.props["data"];
|
|
54
|
+
if (data === void 0 || data === null || data === "") return void 0;
|
|
55
|
+
return { element: { tag: "script", attributes: read.attributes, text: JSON.stringify(data) } };
|
|
56
|
+
};
|
|
57
|
+
var READERS = {
|
|
58
|
+
[chunkGV7UC3SS_cjs.HEAD_TITLE_NAME]: titleOf,
|
|
59
|
+
[chunkGV7UC3SS_cjs.HEAD_META_NAME]: metaOf,
|
|
60
|
+
[chunkGV7UC3SS_cjs.HEAD_LINK_NAME]: linkOf,
|
|
61
|
+
[chunkGV7UC3SS_cjs.HEAD_SCRIPT_NAME]: scriptOf
|
|
62
|
+
};
|
|
63
|
+
var isHeadNode = (node) => node.type === "component" && node.name === chunkGV7UC3SS_cjs.HEAD_NAME;
|
|
64
|
+
var headOf = (api) => {
|
|
65
|
+
let heads = 0;
|
|
66
|
+
const said = [];
|
|
67
|
+
const refused = [];
|
|
68
|
+
const open = /* @__PURE__ */ new Set();
|
|
69
|
+
const hold = (nodes, action) => {
|
|
70
|
+
for (const node of nodes) {
|
|
71
|
+
if (node.type === "fragment") {
|
|
72
|
+
hold(node.children, action);
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
if (node.type === "error") {
|
|
76
|
+
refused.push(`${chunkGV7UC3SS_cjs.HEAD_NAME}: ${node.message}`);
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
if (node.type !== "component") continue;
|
|
80
|
+
const read = READERS[node.name];
|
|
81
|
+
if (read === void 0) {
|
|
82
|
+
refused.push(`${chunkGV7UC3SS_cjs.HEAD_NAME}: "${node.name}" is not something a head holds`);
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
const found = read(node);
|
|
86
|
+
if (found === void 0) continue;
|
|
87
|
+
if ("refused" in found) {
|
|
88
|
+
refused.push(found.refused);
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
const key = chunkGV7UC3SS_cjs.headKeyOf(found.element);
|
|
92
|
+
const earlier = key === void 0 ? -1 : said.findIndex((other) => chunkGV7UC3SS_cjs.headKeyOf(other.element) === key);
|
|
93
|
+
if (earlier >= 0) said.splice(earlier, 1);
|
|
94
|
+
said.push({ element: found.element, action });
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
const walk = (nodes, action) => {
|
|
98
|
+
for (const node of nodes) {
|
|
99
|
+
if (node.type === "fragment") {
|
|
100
|
+
walk(node.children, action);
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
if (node.type !== "component") continue;
|
|
104
|
+
if (node.name === chunkGV7UC3SS_cjs.HEAD_NAME) {
|
|
105
|
+
heads += 1;
|
|
106
|
+
hold(node.children, action);
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
if (node.name === CANVAS_SLOT_NAME) {
|
|
110
|
+
const canvasId = node.props["canvasId"];
|
|
111
|
+
if (typeof canvasId !== "string" || canvasId === "" || open.has(canvasId)) continue;
|
|
112
|
+
open.add(canvasId);
|
|
113
|
+
walk(api.canvasTree(canvasId), void 0);
|
|
114
|
+
open.delete(canvasId);
|
|
115
|
+
continue;
|
|
116
|
+
}
|
|
117
|
+
const definitionId = node.name === ACTION_SLOT_NAME ? node.props["definitionId"] : void 0;
|
|
118
|
+
walk(node.children, typeof definitionId === "string" ? definitionId : action);
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
walk(api.frame(), void 0);
|
|
122
|
+
if (heads === 0) return void 0;
|
|
123
|
+
const actions = [...new Set(said.flatMap((one) => one.action === void 0 ? [] : [one.action]))];
|
|
124
|
+
return { elements: said.map((one) => one.element), actions, refused };
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
exports.ACTION_SLOT_NAME = ACTION_SLOT_NAME;
|
|
128
|
+
exports.CANVAS_SLOT_NAME = CANVAS_SLOT_NAME;
|
|
129
|
+
exports.headOf = headOf;
|
|
130
|
+
exports.isHeadNode = isHeadNode;
|
|
131
|
+
//# sourceMappingURL=chunk-PNQY6OFB.cjs.map
|
|
132
|
+
//# sourceMappingURL=chunk-PNQY6OFB.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/shell/slot-names.ts","../src/shell/head.ts"],"names":["H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;AACtE","file":"chunk-PNQY6OFB.cjs","sourcesContent":["// ═══════════════════════════════════════════════════════════\n// Slot component name constants.\n//\n// Every framework adapter (React, future Vue/Svelte/etc.) must\n// register components under these names in its ComponentRegistry\n// to participate in shell/canvas layout rendering:\n//\n// CANVAS_SLOT_NAME — renders a canvas by id (props: canvasId?)\n// ACTION_SLOT_NAME — renders an action instance by id (props: instanceId?)\n//\n// The shell uses these names in its default layouts and when\n// flattening a render tree for non-React consumers (evaluators,\n// export, testing), so they are part of the package's public\n// contract — not React-only.\n// ═══════════════════════════════════════════════════════════\n\nexport const CANVAS_SLOT_NAME = 'CanvasSlot';\nexport const ACTION_SLOT_NAME = 'ActionSlot';\n","import { HEAD_LINK_NAME, HEAD_META_NAME, HEAD_NAME, HEAD_SCRIPT_NAME, HEAD_TITLE_NAME, headKeyOf } from '../layout/head';\nimport type { HeadElement } from '../layout/head';\nimport type { RenderNode } from '../layout';\nimport type { RenderApi } from './types';\nimport { ACTION_SLOT_NAME, CANVAS_SLOT_NAME } from './slot-names';\n\n// ═══════════════════════════════════════════════════════════\n// The head a screen has, read off its render tree.\n//\n// The frame is walked in the order it is drawn, into each canvas where its\n// slot stands and into each instance on it, and every `nova:head` it meets\n// gives its elements in turn. A screen can hold more than one head — the\n// shell's chrome says what holds on every screen, an action says its own, a\n// dialog opens over a page. An element that says the same thing as an earlier\n// one (the title, a <meta> of that name) takes its place; anything else stands\n// beside what came before.\n//\n// What a head may not hold is refused here, once, for every writer: the\n// element is left out and the reason is given. See ../layout/head.\n// ═══════════════════════════════════════════════════════════\n\nexport type ScreenHead = {\n // what the document's head is to hold, in the order the screen said it\n elements: HeadElement[];\n // the actions whose instances said any of it (none: only the shell's chrome did)\n actions: string[];\n // what a head held that it may not — left out, each with why\n refused: string[];\n};\n\ntype ComponentNode = Extract<RenderNode, { type: 'component' }>;\ntype Read = { element: HeadElement } | { refused: string } | undefined;\n\nconst ATTRIBUTE_NAME = /^[A-Za-z][A-Za-z0-9:._-]*$/;\n// a data block: a type no browser runs\nconst DATA_TYPE = /^application\\/([a-z0-9.-]+\\+)?json$/i;\n\n// A prop, as the attribute it is written as — or nothing, when it says nothing.\nconst written = (value: unknown): string | undefined => {\n if (typeof value === 'string') return value.trim() === '' ? undefined : value;\n if (typeof value === 'number') return String(value);\n return value === true ? '' : undefined;\n};\n\n// An element's attributes, from its props — or why it may not be written.\nconst attributesOf = (what: string, props: Record<string, unknown>, skip: readonly string[] = []): { attributes: Record<string, string> } | { refused: string } => {\n const attributes: Record<string, string> = {};\n for (const [name, value] of Object.entries(props)) {\n if (skip.includes(name)) continue;\n if (!ATTRIBUTE_NAME.test(name)) return { refused: `${what}: \"${name}\" is not an attribute’s name` };\n if (/^on/i.test(name)) return { refused: `${what}: \\`${name}\\` is a handler, and a layout does not run` };\n const text = written(value);\n if (text !== undefined) attributes[name] = text;\n }\n return { attributes };\n};\n\nconst has = (attributes: Record<string, string>, name: string): boolean => Object.keys(attributes).some((key) => key.toLowerCase() === name);\nconst valueOf = (attributes: Record<string, string>, name: string): string => Object.entries(attributes).find(([key]) => key.toLowerCase() === name)?.[1] ?? '';\n\nconst textOf = (nodes: readonly RenderNode[]): string =>\n nodes.map((node) => (node.type === 'text' ? node.value : node.type === 'fragment' ? textOf(node.children) : '')).join('');\n\nconst titleOf = (node: ComponentNode): Read => {\n const text = textOf(node.children).trim();\n return text === '' ? undefined : { element: { tag: 'title', attributes: {}, text } };\n};\n\nconst metaOf = (node: ComponentNode): Read => {\n const read = attributesOf(HEAD_META_NAME, node.props);\n if ('refused' in read) return read;\n if (has(read.attributes, 'http-equiv')) return { refused: `${HEAD_META_NAME}: \\`http-equiv\\` instructs the browser, and a layout does not` };\n // nothing to say yet: its value is not answered\n return has(read.attributes, 'content') ? { element: { tag: 'meta', attributes: read.attributes } } : undefined;\n};\n\nconst linkOf = (node: ComponentNode): Read => {\n const read = attributesOf(HEAD_LINK_NAME, node.props);\n if ('refused' in read) return read;\n if (valueOf(read.attributes, 'rel').toLowerCase().split(/\\s+/).includes('stylesheet')) return { refused: `${HEAD_LINK_NAME}: a stylesheet styles the page, and a layout does not` };\n return has(read.attributes, 'href') ? { element: { tag: 'link', attributes: read.attributes } } : undefined;\n};\n\nconst scriptOf = (node: ComponentNode): Read => {\n const read = attributesOf(HEAD_SCRIPT_NAME, node.props, ['data']);\n if ('refused' in read) return read;\n if (has(read.attributes, 'src')) return { refused: `${HEAD_SCRIPT_NAME}: a script with a \\`src\\` runs, and a layout does not` };\n const type = valueOf(read.attributes, 'type');\n if (!DATA_TYPE.test(type)) return { refused: `${HEAD_SCRIPT_NAME}: only a data block may be written (a JSON \\`type\\`), and \"${type}\" is not one` };\n const data = node.props['data'];\n if (data === undefined || data === null || data === '') return undefined;\n return { element: { tag: 'script', attributes: read.attributes, text: JSON.stringify(data) } };\n};\n\nconst READERS: Record<string, (node: ComponentNode) => Read> = {\n [HEAD_TITLE_NAME]: titleOf,\n [HEAD_META_NAME]: metaOf,\n [HEAD_LINK_NAME]: linkOf,\n [HEAD_SCRIPT_NAME]: scriptOf,\n};\n\nexport const isHeadNode = (node: RenderNode): boolean => node.type === 'component' && node.name === HEAD_NAME;\n\nexport const headOf = (api: Pick<RenderApi, 'frame' | 'canvasTree'>): ScreenHead | undefined => {\n let heads = 0;\n const said: { element: HeadElement; action: string | undefined }[] = [];\n const refused: string[] = [];\n // a canvas whose own tree names it again would never end\n const open = new Set<string>();\n\n const hold = (nodes: readonly RenderNode[], action: string | undefined): void => {\n for (const node of nodes) {\n if (node.type === 'fragment') {\n hold(node.children, action);\n continue;\n }\n if (node.type === 'error') {\n refused.push(`${HEAD_NAME}: ${node.message}`);\n continue;\n }\n // text between a head's elements is nothing\n if (node.type !== 'component') continue;\n const read = READERS[node.name];\n if (read === undefined) {\n refused.push(`${HEAD_NAME}: \"${node.name}\" is not something a head holds`);\n continue;\n }\n const found = read(node);\n if (found === undefined) continue;\n if ('refused' in found) {\n refused.push(found.refused);\n continue;\n }\n const key = headKeyOf(found.element);\n const earlier = key === undefined ? -1 : said.findIndex((other) => headKeyOf(other.element) === key);\n if (earlier >= 0) said.splice(earlier, 1);\n said.push({ element: found.element, action });\n }\n };\n\n const walk = (nodes: readonly RenderNode[], action: string | undefined): void => {\n for (const node of nodes) {\n if (node.type === 'fragment') {\n walk(node.children, action);\n continue;\n }\n if (node.type !== 'component') continue;\n if (node.name === HEAD_NAME) {\n heads += 1;\n hold(node.children, action);\n continue;\n }\n if (node.name === CANVAS_SLOT_NAME) {\n const canvasId = node.props['canvasId'];\n if (typeof canvasId !== 'string' || canvasId === '' || open.has(canvasId)) continue;\n open.add(canvasId);\n walk(api.canvasTree(canvasId), undefined);\n open.delete(canvasId);\n continue;\n }\n const definitionId = node.name === ACTION_SLOT_NAME ? node.props['definitionId'] : undefined;\n walk(node.children, typeof definitionId === 'string' ? definitionId : action);\n }\n };\n\n walk(api.frame(), undefined);\n if (heads === 0) return undefined;\n const actions = [...new Set(said.flatMap((one) => (one.action === undefined ? [] : [one.action])))];\n return { elements: said.map((one) => one.element), actions, refused };\n};\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __export = (target, all) => {
|
|
5
|
+
for (var name in all)
|
|
6
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
exports.__export = __export;
|
|
10
|
+
//# sourceMappingURL=chunk-Q7SFCCGT.cjs.map
|
|
11
|
+
//# sourceMappingURL=chunk-Q7SFCCGT.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-Q7SFCCGT.cjs"}
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkIZ2UU5UL_cjs = require('./chunk-IZ2UU5UL.cjs');
|
|
4
|
+
|
|
5
|
+
// src/reflect/walk.ts
|
|
6
|
+
var isRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
|
|
7
|
+
var walkNodes = (value, visit) => {
|
|
8
|
+
if (Array.isArray(value)) {
|
|
9
|
+
for (const item of value) walkNodes(item, visit);
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
if (!isRecord(value)) return;
|
|
13
|
+
visit(value);
|
|
14
|
+
for (const inner of Object.values(value)) walkNodes(inner, visit);
|
|
15
|
+
};
|
|
16
|
+
var componentsOf = (value) => {
|
|
17
|
+
const out = /* @__PURE__ */ new Set();
|
|
18
|
+
walkNodes(value, (record) => {
|
|
19
|
+
if (typeof record["component"] === "string") out.add(record["component"]);
|
|
20
|
+
});
|
|
21
|
+
return out;
|
|
22
|
+
};
|
|
23
|
+
var refsOf = (value) => {
|
|
24
|
+
const out = /* @__PURE__ */ new Set();
|
|
25
|
+
walkNodes(value, (record) => {
|
|
26
|
+
if (record["component"] === void 0 || !isRecord(record["props"])) return;
|
|
27
|
+
walkNodes(record["props"], (props) => {
|
|
28
|
+
for (const [key, propValue] of Object.entries(props)) {
|
|
29
|
+
if ((key === "ref" || key.endsWith("Ref")) && typeof propValue === "string" && propValue !== "") out.add(propValue);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
return out;
|
|
34
|
+
};
|
|
35
|
+
var loopVarsOf = (value) => {
|
|
36
|
+
const out = /* @__PURE__ */ new Set();
|
|
37
|
+
walkNodes(value, (record) => {
|
|
38
|
+
if (typeof record["as"] === "string" && record["for"] !== void 0) out.add(record["as"]);
|
|
39
|
+
});
|
|
40
|
+
return out;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
// src/reflect/audit.ts
|
|
44
|
+
var classifyAudit = (issue, definition) => {
|
|
45
|
+
const layout = typeof definition.layout === "object" ? definition.layout : void 0;
|
|
46
|
+
const bind = issue.match(/binds "\$\.([\w.]+)"/);
|
|
47
|
+
if (bind !== null) {
|
|
48
|
+
const root = (bind[1] ?? "").split(".")[0] ?? "";
|
|
49
|
+
if (root === "index" || root === "items") {
|
|
50
|
+
return { kind: "info", tag: "loop scope", reason: `\`${root}\` is a renderer-reserved loop variable` };
|
|
51
|
+
}
|
|
52
|
+
if (loopVarsOf(layout).has(root)) {
|
|
53
|
+
return { kind: "info", tag: "loop var", reason: `\`${root}\` is a loop \`as:\` variable \u2014 in scope at runtime` };
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
const ref = issue.match(/ref "([^"]+)"/);
|
|
57
|
+
if (ref !== null && issue.includes("listens") && refsOf(layout).has(ref[1] ?? "")) {
|
|
58
|
+
return { kind: "info", tag: "prop ref", reason: "dispatched by a component from a props value (e.g. Table rowRef / cell.ref)" };
|
|
59
|
+
}
|
|
60
|
+
if (issue.includes("{{")) {
|
|
61
|
+
return { kind: "info", tag: "template", reason: "target resolves from data at runtime \u2014 statically unknowable" };
|
|
62
|
+
}
|
|
63
|
+
return { kind: "address" };
|
|
64
|
+
};
|
|
65
|
+
var auditCatalog = (definitions) => {
|
|
66
|
+
const defs = Array.isArray(definitions) ? [...definitions] : Object.values(definitions);
|
|
67
|
+
const catalog = defs.map((definition) => ({ id: definition.id, ...definition.input !== void 0 ? { input: definition.input } : {} }));
|
|
68
|
+
const channels = [
|
|
69
|
+
...new Set(
|
|
70
|
+
defs.flatMap((definition) => {
|
|
71
|
+
const usage = chunkIZ2UU5UL_cjs.collectChannels(definition);
|
|
72
|
+
return [...usage.emits, ...usage.listens];
|
|
73
|
+
})
|
|
74
|
+
)
|
|
75
|
+
];
|
|
76
|
+
return defs.map((definition) => {
|
|
77
|
+
const issues = chunkIZ2UU5UL_cjs.auditAction(definition, { catalog, channels }).issues.map((issue) => ({ issue, ...classifyAudit(issue, definition) }));
|
|
78
|
+
issues.sort((a, b) => Number(a.kind === "info") - Number(b.kind === "info"));
|
|
79
|
+
return { id: definition.id, address: issues.filter((issue) => issue.kind === "address").length, issues };
|
|
80
|
+
}).filter((row) => row.issues.length > 0).sort((a, b) => b.address - a.address);
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
// src/reflect/shell.ts
|
|
84
|
+
var snapshotShell = (shell, exclude = []) => {
|
|
85
|
+
const state = shell.getState();
|
|
86
|
+
const canvases = Object.values(state.canvases).filter((canvas) => !exclude.includes(canvas.id)).map((canvas) => ({
|
|
87
|
+
id: canvas.id,
|
|
88
|
+
depth: canvas.stack.length,
|
|
89
|
+
items: [...canvas.stack].reverse().map((instance) => ({
|
|
90
|
+
definitionId: instance.definitionId,
|
|
91
|
+
instanceId: instance.id,
|
|
92
|
+
status: instance.status,
|
|
93
|
+
active: instance.id === canvas.active?.id
|
|
94
|
+
}))
|
|
95
|
+
}));
|
|
96
|
+
return { canvases, layouts: shell.layoutStore.list(), components: shell.registry.list() };
|
|
97
|
+
};
|
|
98
|
+
var compact = (value, over, head) => {
|
|
99
|
+
if (Array.isArray(value)) {
|
|
100
|
+
return over === 0 || value.length <= over ? value.map((item) => compact(item, over, head)) : [...value.slice(0, head).map((item) => compact(item, over, head)), `\u2026${value.length - head} more`];
|
|
101
|
+
}
|
|
102
|
+
if (value === null || typeof value !== "object") return value;
|
|
103
|
+
const out = {};
|
|
104
|
+
for (const [key, inner] of Object.entries(value)) out[key] = compact(inner, over, head);
|
|
105
|
+
return out;
|
|
106
|
+
};
|
|
107
|
+
var describeShell = (shell, options = {}) => {
|
|
108
|
+
const { only, mark, collapseOver = 5, head = 3, clean } = options;
|
|
109
|
+
const lines = [];
|
|
110
|
+
for (const [canvasId, canvas] of Object.entries(shell.getState().canvases)) {
|
|
111
|
+
if (only !== void 0 && !only.includes(canvasId)) continue;
|
|
112
|
+
if (canvas.active === void 0) {
|
|
113
|
+
lines.push(` ${canvasId}: (empty)`);
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
lines.push(` ${canvasId}: ${canvas.stack.map((item, index) => `${item.definitionId}${index === canvas.stack.length - 1 ? "*" : ""}`).join(" \u203A ")}`);
|
|
117
|
+
for (const item of canvas.stack) {
|
|
118
|
+
const runtime = shell.getRuntime(item.id);
|
|
119
|
+
const note = mark?.(item.id);
|
|
120
|
+
const data = runtime === void 0 ? void 0 : (clean ?? ((value) => value))(runtime.getData());
|
|
121
|
+
lines.push(` ${item.definitionId}${note === void 0 ? "" : ` ${note}`} data: ${data === void 0 ? "{}" : JSON.stringify(compact(data, collapseOver, head))}`);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return lines.join("\n");
|
|
125
|
+
};
|
|
126
|
+
var describeInstance = (shell, instanceId) => {
|
|
127
|
+
const runtime = shell.getRuntime(instanceId);
|
|
128
|
+
if (runtime === void 0) return void 0;
|
|
129
|
+
const definition = runtime.definition;
|
|
130
|
+
const layout = definition.layout;
|
|
131
|
+
const layoutNode = typeof layout === "string" ? shell.layoutStore.get(layout) : layout;
|
|
132
|
+
const issues = chunkIZ2UU5UL_cjs.auditAction(definition).issues.map((issue) => ({ issue, ...classifyAudit(issue, definition) }));
|
|
133
|
+
return {
|
|
134
|
+
id: definition.id,
|
|
135
|
+
instanceId,
|
|
136
|
+
canvasId: runtime.instance.canvasId,
|
|
137
|
+
status: runtime.instance.status,
|
|
138
|
+
title: definition.title ?? "",
|
|
139
|
+
data: runtime.getData(),
|
|
140
|
+
endpoints: Object.entries(definition.endpoints ?? {}).map(([name, config]) => ({ name, config })),
|
|
141
|
+
triggers: definition.triggers ?? [],
|
|
142
|
+
lifecycle: definition.lifecycle ?? {},
|
|
143
|
+
layoutKind: typeof layout === "string" ? "store" : "inline",
|
|
144
|
+
layout: layoutNode,
|
|
145
|
+
input: definition.input,
|
|
146
|
+
issues
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
// src/reflect/graph.ts
|
|
151
|
+
var navTargetsOf = (definition) => {
|
|
152
|
+
const out = /* @__PURE__ */ new Set();
|
|
153
|
+
const scan = (value) => walkNodes(value, (record) => {
|
|
154
|
+
for (const key of ["push", "replace", "resetTo"]) {
|
|
155
|
+
const target = record[key];
|
|
156
|
+
if (isRecord(target) && typeof target["action"] === "string") out.add(target["action"]);
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
scan(definition.triggers ?? []);
|
|
160
|
+
scan(definition.lifecycle ?? {});
|
|
161
|
+
return [...out].sort();
|
|
162
|
+
};
|
|
163
|
+
var actionGraph = (definitions) => {
|
|
164
|
+
const defs = Array.isArray(definitions) ? [...definitions] : Object.values(definitions);
|
|
165
|
+
const known = new Set(defs.map((definition) => definition.id));
|
|
166
|
+
const dangling = /* @__PURE__ */ new Set();
|
|
167
|
+
const nodes = defs.map((definition) => {
|
|
168
|
+
const pushes = navTargetsOf(definition);
|
|
169
|
+
for (const target of pushes) if (!target.includes("{{") && !known.has(target)) dangling.add(target);
|
|
170
|
+
const usage = chunkIZ2UU5UL_cjs.collectChannels(definition);
|
|
171
|
+
return { id: definition.id, pushes, emits: usage.emits, listens: usage.listens };
|
|
172
|
+
});
|
|
173
|
+
return { nodes, dangling: [...dangling].sort() };
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
// src/reflect/cycles.ts
|
|
177
|
+
var NAV_KEYS = ["push", "replace", "resetTo"];
|
|
178
|
+
var isLiteral = (value) => typeof value === "string" && value !== "" && !value.includes("{{");
|
|
179
|
+
var edgesOf = (definition, from, steps, known, out) => {
|
|
180
|
+
if (!Array.isArray(steps)) return;
|
|
181
|
+
for (const step of steps) {
|
|
182
|
+
if (!isRecord(step)) continue;
|
|
183
|
+
const emit = step["emit"];
|
|
184
|
+
if (isRecord(emit) && isLiteral(emit["channel"])) out.push({ from, to: `channel:${emit["channel"]}`, action: definition.id, via: "emit" });
|
|
185
|
+
if (step["reload"] === true) out.push({ from, to: `mount:${definition.id}`, action: definition.id, via: "reload" });
|
|
186
|
+
for (const key of NAV_KEYS) {
|
|
187
|
+
const nav = step[key];
|
|
188
|
+
if (isRecord(nav) && isLiteral(nav["action"]) && known.has(nav["action"])) out.push({ from, to: `mount:${nav["action"]}`, action: definition.id, via: key });
|
|
189
|
+
}
|
|
190
|
+
if (typeof step["call"] === "string") {
|
|
191
|
+
edgesOf(definition, from, step["onSuccess"], known, out);
|
|
192
|
+
edgesOf(definition, from, step["onError"], known, out);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
var label = (node) => node.startsWith("channel:") ? node.slice("channel:".length) : `mount ${node.slice("mount:".length)}`;
|
|
197
|
+
var chainCycles = (definitions) => {
|
|
198
|
+
const defs = Array.isArray(definitions) ? [...definitions] : Object.values(definitions);
|
|
199
|
+
const known = new Set(defs.map((definition) => definition.id));
|
|
200
|
+
const edges = [];
|
|
201
|
+
for (const definition of defs) {
|
|
202
|
+
for (const trigger of definition.triggers ?? []) {
|
|
203
|
+
if (isLiteral(trigger.message)) edgesOf(definition, `channel:${trigger.message}`, trigger.do, known, edges);
|
|
204
|
+
}
|
|
205
|
+
edgesOf(definition, `mount:${definition.id}`, definition.lifecycle?.mount, known, edges);
|
|
206
|
+
}
|
|
207
|
+
const outgoing = /* @__PURE__ */ new Map();
|
|
208
|
+
for (const edge of edges) outgoing.set(edge.from, [...outgoing.get(edge.from) ?? [], edge]);
|
|
209
|
+
const index = /* @__PURE__ */ new Map();
|
|
210
|
+
const low = /* @__PURE__ */ new Map();
|
|
211
|
+
const onStack = /* @__PURE__ */ new Set();
|
|
212
|
+
const stack = [];
|
|
213
|
+
const components = [];
|
|
214
|
+
let counter = 0;
|
|
215
|
+
const connect = (node) => {
|
|
216
|
+
index.set(node, counter);
|
|
217
|
+
low.set(node, counter);
|
|
218
|
+
counter += 1;
|
|
219
|
+
stack.push(node);
|
|
220
|
+
onStack.add(node);
|
|
221
|
+
for (const edge of outgoing.get(node) ?? []) {
|
|
222
|
+
if (!index.has(edge.to)) {
|
|
223
|
+
connect(edge.to);
|
|
224
|
+
low.set(node, Math.min(low.get(node) ?? 0, low.get(edge.to) ?? 0));
|
|
225
|
+
} else if (onStack.has(edge.to)) {
|
|
226
|
+
low.set(node, Math.min(low.get(node) ?? 0, index.get(edge.to) ?? 0));
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
if (low.get(node) !== index.get(node)) return;
|
|
230
|
+
const component = [];
|
|
231
|
+
for (let top = stack.pop(); top !== void 0; top = stack.pop()) {
|
|
232
|
+
onStack.delete(top);
|
|
233
|
+
component.push(top);
|
|
234
|
+
if (top === node) break;
|
|
235
|
+
}
|
|
236
|
+
components.push(component);
|
|
237
|
+
};
|
|
238
|
+
for (const node of [...outgoing.keys()].sort()) if (!index.has(node)) connect(node);
|
|
239
|
+
const cycleIn = (component) => {
|
|
240
|
+
const members = new Set(component);
|
|
241
|
+
const start = [...component].sort()[0];
|
|
242
|
+
if (start === void 0) return void 0;
|
|
243
|
+
const via = /* @__PURE__ */ new Map();
|
|
244
|
+
const queue = [start];
|
|
245
|
+
for (let node = queue.shift(); node !== void 0; node = queue.shift()) {
|
|
246
|
+
for (const edge of outgoing.get(node) ?? []) {
|
|
247
|
+
if (!members.has(edge.to)) continue;
|
|
248
|
+
if (edge.to === start) {
|
|
249
|
+
const steps = [edge];
|
|
250
|
+
for (let back = via.get(node); back !== void 0; back = via.get(back.from)) steps.unshift(back);
|
|
251
|
+
return steps;
|
|
252
|
+
}
|
|
253
|
+
if (via.has(edge.to)) continue;
|
|
254
|
+
via.set(edge.to, edge);
|
|
255
|
+
queue.push(edge.to);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
return void 0;
|
|
259
|
+
};
|
|
260
|
+
return components.map(cycleIn).filter((steps) => steps !== void 0).map((steps) => ({
|
|
261
|
+
steps,
|
|
262
|
+
path: [label(steps[0]?.from ?? ""), ...steps.map((step) => `\u2014${step.via} (${step.action})\u2192 ${label(step.to)}`)].join(" ")
|
|
263
|
+
})).sort((a, b) => a.path.localeCompare(b.path));
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
// src/reflect/liveness.ts
|
|
267
|
+
var callsIn = (steps) => {
|
|
268
|
+
const names = /* @__PURE__ */ new Set();
|
|
269
|
+
walkNodes(steps, (record) => {
|
|
270
|
+
if (typeof record["call"] === "string") names.add(record["call"]);
|
|
271
|
+
});
|
|
272
|
+
return names;
|
|
273
|
+
};
|
|
274
|
+
var livenessOf = (definition) => {
|
|
275
|
+
const triggers = definition.triggers ?? [];
|
|
276
|
+
const layout = definition.layout;
|
|
277
|
+
let bound = false;
|
|
278
|
+
if (layout !== void 0 && typeof layout !== "string") {
|
|
279
|
+
walkNodes(layout, (record) => {
|
|
280
|
+
if (typeof record["component"] === "string" && record["model"] !== void 0) bound = true;
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
const opening = callsIn(definition.lifecycle ?? {});
|
|
284
|
+
const afterwards = callsIn(triggers.map((trigger) => trigger.do));
|
|
285
|
+
const endpoints = Object.entries(definition.endpoints ?? {}).map(([name, config]) => {
|
|
286
|
+
const spec = config;
|
|
287
|
+
const use = { name, onOpen: opening.has(name), later: afterwards.has(name) };
|
|
288
|
+
if (isRecord(spec) && typeof spec["fn"] === "string") return { ...use, kind: "fn" };
|
|
289
|
+
return {
|
|
290
|
+
...use,
|
|
291
|
+
kind: "http",
|
|
292
|
+
...isRecord(spec) && typeof spec["url"] === "string" ? { url: spec["url"] } : {},
|
|
293
|
+
...isRecord(spec) && spec["request"] !== void 0 ? { request: spec["request"] } : {}
|
|
294
|
+
};
|
|
295
|
+
});
|
|
296
|
+
return {
|
|
297
|
+
gestures: bound || triggers.some((trigger) => typeof trigger.event === "string"),
|
|
298
|
+
listens: [...new Set(triggers.map((trigger) => trigger.message).filter((channel) => typeof channel === "string"))].sort(),
|
|
299
|
+
endpoints,
|
|
300
|
+
opaqueLayout: typeof layout === "string"
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
exports.actionGraph = actionGraph;
|
|
305
|
+
exports.auditCatalog = auditCatalog;
|
|
306
|
+
exports.chainCycles = chainCycles;
|
|
307
|
+
exports.classifyAudit = classifyAudit;
|
|
308
|
+
exports.componentsOf = componentsOf;
|
|
309
|
+
exports.describeInstance = describeInstance;
|
|
310
|
+
exports.describeShell = describeShell;
|
|
311
|
+
exports.isRecord = isRecord;
|
|
312
|
+
exports.livenessOf = livenessOf;
|
|
313
|
+
exports.loopVarsOf = loopVarsOf;
|
|
314
|
+
exports.refsOf = refsOf;
|
|
315
|
+
exports.snapshotShell = snapshotShell;
|
|
316
|
+
exports.walkNodes = walkNodes;
|
|
317
|
+
//# sourceMappingURL=chunk-TMLNVU5W.cjs.map
|
|
318
|
+
//# sourceMappingURL=chunk-TMLNVU5W.cjs.map
|