@beehexa/hexasync-template-worker-flow 2611.5.3 → 2611.8.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.
- package/dist/canonicalGraph.d.ts +7 -6
- package/dist/canonicalGraph.d.ts.map +1 -1
- package/dist/canonicalGraph.js +284 -134
- package/dist/canonicalGraph.js.map +1 -1
- package/dist/declarations.d.ts +47 -0
- package/dist/declarations.d.ts.map +1 -0
- package/dist/declarations.js +136 -0
- package/dist/declarations.js.map +1 -0
- package/dist/flow.d.ts +54 -52
- package/dist/flow.d.ts.map +1 -1
- package/dist/flow.js +45 -155
- package/dist/flow.js.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/rejections.d.ts +29 -0
- package/dist/rejections.d.ts.map +1 -0
- package/dist/rejections.js +58 -0
- package/dist/rejections.js.map +1 -0
- package/dist/render.d.ts.map +1 -1
- package/dist/render.js +24 -14
- package/dist/render.js.map +1 -1
- package/dist/routeGraph.d.ts +12 -2
- package/dist/routeGraph.d.ts.map +1 -1
- package/dist/routeGraph.js +140 -146
- package/dist/routeGraph.js.map +1 -1
- package/dist/routes.d.ts +75 -21
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +115 -95
- package/dist/routes.js.map +1 -1
- package/dist/stages.d.ts +62 -103
- package/dist/stages.d.ts.map +1 -1
- package/dist/stages.js +83 -143
- package/dist/stages.js.map +1 -1
- package/package.json +2 -2
package/dist/routes.js
CHANGED
|
@@ -1,143 +1,163 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Where a step goes next — Story 4.1 AC-2, all five kinds, in the MODEL rather than in a renderer.
|
|
3
3
|
*
|
|
4
|
-
* The semantics are the runtime's
|
|
5
|
-
*
|
|
4
|
+
* The semantics are the runtime's (`assets/docs/routing/NEXT.md`, `steps/IF.md`, `steps/SWITCH.md`). This package
|
|
5
|
+
* does not invent them; NFR-1 says the editor invents no semantics the runtime lacks.
|
|
6
6
|
*
|
|
7
|
-
* | kind | where it is declared |
|
|
7
|
+
* | kind | where it is declared | static meaning |
|
|
8
8
|
* | --- | --- | --- |
|
|
9
|
-
* | by step TYPE | `IF`
|
|
10
|
-
* | by step DATA | `{ if, then, else }` on `next` or
|
|
11
|
-
* | an EXPRESSION | a Scriban
|
|
12
|
-
* | an ERROR route | `onError` |
|
|
13
|
-
* | an exception BACK-REFERENCE | `fromStep` → this step |
|
|
9
|
+
* | by step TYPE | exact `IF` routes its WHOLE payload; exact `SWITCH` reads payload KEYS | declared `next` is ignored |
|
|
10
|
+
* | by step DATA | `{ if, then, else }` on `next` or an IF payload | both arms are declared alternatives |
|
|
11
|
+
* | an EXPRESSION | a Scriban/rendered route string | quoted known keys are POSSIBLE candidates only |
|
|
12
|
+
* | an ERROR route | `onError` (`<KEY \| null>`) | recovery |
|
|
13
|
+
* | an exception BACK-REFERENCE | `fromStep` → this step | exception |
|
|
14
14
|
*
|
|
15
|
-
* ###
|
|
15
|
+
* ### IF and SWITCH route through their payload, never through `next`
|
|
16
16
|
*
|
|
17
|
-
* `
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
17
|
+
* An `IF` evaluates its whole payload as one route node: `null` ends the flow, a string routes to that string, an
|
|
18
|
+
* object is a conditional. The step's own `next` is never a fallback — not when the payload is `null`, and not when a
|
|
19
|
+
* conditional omits both arms. A `SWITCH` payload is a map whose property NAMES are exact target keys (no `cases`
|
|
20
|
+
* wrapper, no list, no default); zero matches end and several matches fail, so every arm is only a possible route.
|
|
21
|
+
* A non-object SWITCH payload fails the step. Step types are exact: `If` and `switch` are ordinary steps.
|
|
22
22
|
*
|
|
23
23
|
* ### An unresolvable route is REPORTED, not dropped
|
|
24
24
|
*
|
|
25
25
|
* A route naming no step in the stage yields an edge with `raw` and no `to`. A reader needs to see the dead end:
|
|
26
26
|
* silently dropping it draws a flow that terminates where the document does not say it terminates, which is the
|
|
27
|
-
* more expensive error. Same for an expression whose quoted keys match nothing.
|
|
27
|
+
* more expensive error. Same for an expression whose quoted keys match nothing, and for a value the grammar rejects.
|
|
28
28
|
*/
|
|
29
|
-
/** Every `"QUOTED_KEY"` in an expression. */
|
|
29
|
+
/** Every `"QUOTED_KEY"` in an expression, once each, in first-appearance order. */
|
|
30
30
|
export function quotedKeys(expression) {
|
|
31
|
-
return [...expression.matchAll(/"([A-Za-z0-9_]+)"/g)].map((m) => m[1]);
|
|
31
|
+
return [...new Set([...expression.matchAll(/"([A-Za-z0-9_]+)"/g)].map((m) => m[1]))];
|
|
32
32
|
}
|
|
33
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Is this route text DYNAMIC — rendered by Scriban into something other than itself?
|
|
35
|
+
*
|
|
36
|
+
* Scriban (`{{ … }}` / `{% … %}`) or a rendered conditional object (trimmed text beginning with `{`). Plain text,
|
|
37
|
+
* including text with quotes in it, renders to itself and is a literal key.
|
|
38
|
+
*/
|
|
34
39
|
export function looksLikeExpression(text) {
|
|
35
|
-
return
|
|
40
|
+
return text.includes('{{') || text.includes('{%') || text.trimStart().startsWith('{');
|
|
41
|
+
}
|
|
42
|
+
/** A `{ if, then, else }` route node. Arrays and scalars are not conditionals. */
|
|
43
|
+
export function isConditionalRoute(value) {
|
|
44
|
+
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
45
|
+
}
|
|
46
|
+
/** Resolve one route value that is not walked as a conditional. No expression is evaluated. */
|
|
47
|
+
export function resolveRouteTarget(value, known) {
|
|
48
|
+
if (value === null || value === undefined)
|
|
49
|
+
return { kind: 'end' };
|
|
50
|
+
if (typeof value !== 'string')
|
|
51
|
+
return { kind: 'invalid' };
|
|
52
|
+
if (value.trim() === '')
|
|
53
|
+
return { kind: 'end' };
|
|
54
|
+
// Exact key first: a step literally named like an expression still resolves to itself.
|
|
55
|
+
if (known.has(value))
|
|
56
|
+
return { kind: 'step', key: value };
|
|
57
|
+
if (looksLikeExpression(value)) {
|
|
58
|
+
return { kind: 'dynamic', text: value, candidates: quotedKeys(value).filter((key) => known.has(key)) };
|
|
59
|
+
}
|
|
60
|
+
return { kind: 'missing', text: value };
|
|
61
|
+
}
|
|
62
|
+
export function declaredRoute(step) {
|
|
63
|
+
const field = step.payloadField ?? 'data';
|
|
64
|
+
if (step.stepType === 'IF')
|
|
65
|
+
return { field, value: step.data, role: 'branch', mode: 'route' };
|
|
66
|
+
if (step.stepType === 'SWITCH') {
|
|
67
|
+
return { field, value: step.data, role: 'branch', mode: isConditionalRoute(step.data) ? 'switch' : 'invalid' };
|
|
68
|
+
}
|
|
69
|
+
return { field: 'next', value: step.next, role: 'next', mode: 'route' };
|
|
70
|
+
}
|
|
71
|
+
/** The flat text for a value the grammar rejects, without serialising (possibly cyclic) payload. */
|
|
72
|
+
function invalidText(value) {
|
|
73
|
+
if (Array.isArray(value))
|
|
74
|
+
return 'list';
|
|
75
|
+
if (value !== null && typeof value === 'object')
|
|
76
|
+
return 'object';
|
|
77
|
+
return String(value);
|
|
36
78
|
}
|
|
37
79
|
/**
|
|
38
|
-
* Every edge the steps of ONE stage declare.
|
|
80
|
+
* Every edge the steps of ONE stage declare, flat.
|
|
39
81
|
*
|
|
40
82
|
* Iterative, never recursive: `then`/`else` nest without bound and a document is untrusted input, so a deep branch
|
|
41
83
|
* must not be able to exhaust the stack. (The same rule the puller step standards state: *no recursion — stack or
|
|
42
84
|
* loop*.)
|
|
43
85
|
*/
|
|
44
86
|
export function routeEdges(steps) {
|
|
45
|
-
// `String`, because the exported function is callable with a non-string `key` (Story 4.1 review, LOW-3)
|
|
46
|
-
// value leaked into `RouteEdge.from`, typed `string`, and a route to step `5` was reported as a dead end because
|
|
47
|
-
// `known` held the number while the route text was `'5'`. `workerFlow` filters these out; a direct caller cannot.
|
|
87
|
+
// `String`, because the exported function is callable with a non-string `key` (Story 4.1 review, LOW-3).
|
|
48
88
|
const known = new Set(steps.map((s) => String(s.key)));
|
|
49
89
|
const edges = [];
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
* then: *loop
|
|
69
|
-
* ```
|
|
70
|
-
*
|
|
71
|
-
* Identity, not path: the same object reached twice is the cycle, however long the path to it.
|
|
72
|
-
*/
|
|
73
|
-
const entered = new WeakSet();
|
|
74
|
-
const stack = [
|
|
75
|
-
{ value, ...(label !== undefined ? { label } : {}) },
|
|
76
|
-
];
|
|
90
|
+
const emitted = new Set();
|
|
91
|
+
const emit = (edge) => {
|
|
92
|
+
const id = JSON.stringify([edge.from, edge.to ?? null, edge.label ?? null, edge.raw ?? null, edge.invalid ?? false]);
|
|
93
|
+
if (emitted.has(id))
|
|
94
|
+
return;
|
|
95
|
+
emitted.add(id);
|
|
96
|
+
edges.push(edge);
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Conditional objects already walked from the current route. A flat edge depends only on the object's own subtree,
|
|
100
|
+
* so a repeated alias adds nothing and a self-referencing one (a recursive YAML anchor) cannot loop: identity, not
|
|
101
|
+
* path, bounds the walk. Without it a cyclic branch kills the process with an uncatchable V8 heap fatal.
|
|
102
|
+
*/
|
|
103
|
+
const entered = new Set();
|
|
104
|
+
const stack = [];
|
|
105
|
+
const walk = (from, value, conditional, label) => {
|
|
106
|
+
entered.clear();
|
|
107
|
+
stack.push({ value, ...(label !== undefined ? { label } : {}) });
|
|
77
108
|
while (stack.length > 0) {
|
|
78
109
|
const { value: node, label: current } = stack.pop();
|
|
79
|
-
if (node === null || node === undefined || node === '')
|
|
80
|
-
continue;
|
|
81
110
|
const labelled = current !== undefined ? { label: current } : {};
|
|
82
|
-
if (
|
|
111
|
+
if (conditional && isConditionalRoute(node)) {
|
|
83
112
|
if (entered.has(node))
|
|
84
113
|
continue;
|
|
85
114
|
entered.add(node);
|
|
86
|
-
const branch = node;
|
|
87
115
|
// `else` pushed first so `then` is walked first — a reader expects YES before NO.
|
|
88
|
-
stack.push({ value:
|
|
89
|
-
stack.push({ value:
|
|
116
|
+
stack.push({ value: node.else, label: 'NO' });
|
|
117
|
+
stack.push({ value: node.then, label: 'YES' });
|
|
90
118
|
continue;
|
|
91
119
|
}
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
120
|
+
const target = resolveRouteTarget(node, known);
|
|
121
|
+
switch (target.kind) {
|
|
122
|
+
case 'end':
|
|
123
|
+
break;
|
|
124
|
+
case 'step':
|
|
125
|
+
emit({ from, to: target.key, ...labelled });
|
|
126
|
+
break;
|
|
127
|
+
case 'dynamic':
|
|
128
|
+
for (const candidate of target.candidates)
|
|
129
|
+
emit({ from, to: candidate, raw: target.text, ...labelled });
|
|
130
|
+
// Resolving to nothing is still a route, and the expression is the only thing that can be shown about it.
|
|
131
|
+
if (target.candidates.length === 0)
|
|
132
|
+
emit({ from, raw: target.text, ...labelled });
|
|
133
|
+
break;
|
|
134
|
+
case 'missing':
|
|
135
|
+
emit({ from, raw: target.text, ...labelled });
|
|
136
|
+
break;
|
|
137
|
+
case 'invalid':
|
|
138
|
+
emit({ from, raw: invalidText(node), invalid: true, ...labelled });
|
|
139
|
+
break;
|
|
106
140
|
}
|
|
107
|
-
// Names no step in this stage. Kept so the reader sees the dead end.
|
|
108
|
-
edges.push({ from, raw: text, ...labelled });
|
|
109
141
|
}
|
|
110
142
|
};
|
|
111
143
|
for (const rawStep of steps) {
|
|
112
144
|
const step = { ...rawStep, key: String(rawStep.key) };
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
// `IfStepExecutor` passes `StepData` to the builder, so an IF routes from its `data`.
|
|
119
|
-
if (data.then !== null && data.then !== undefined) {
|
|
120
|
-
walk(step.key, data.then, 'YES');
|
|
121
|
-
}
|
|
122
|
-
if (data.else !== null && data.else !== undefined) {
|
|
123
|
-
walk(step.key, data.else, 'NO');
|
|
124
|
-
}
|
|
125
|
-
// An IF declaring neither branch falls back to `next` — otherwise a partly-written IF loses its only edge.
|
|
126
|
-
if ((data.then === null || data.then === undefined) &&
|
|
127
|
-
(data.else === null || data.else === undefined)) {
|
|
128
|
-
walk(step.key, step.next);
|
|
145
|
+
const route = declaredRoute(step);
|
|
146
|
+
if (route.mode === 'switch') {
|
|
147
|
+
// A SWITCH's arms are its payload KEYS, each an exact target key labelled with itself — never rendered.
|
|
148
|
+
for (const arm of Object.keys(route.value)) {
|
|
149
|
+
emit(known.has(arm) ? { from: step.key, to: arm, label: arm } : { from: step.key, raw: arm, label: arm });
|
|
129
150
|
}
|
|
130
151
|
}
|
|
131
|
-
else if (
|
|
132
|
-
|
|
133
|
-
for (const branch of Object.keys(data))
|
|
134
|
-
walk(step.key, branch, branch);
|
|
152
|
+
else if (route.mode === 'invalid') {
|
|
153
|
+
emit({ from: step.key, raw: invalidText(route.value), invalid: true });
|
|
135
154
|
}
|
|
136
155
|
else {
|
|
137
|
-
walk(step.key,
|
|
156
|
+
walk(step.key, route.value, true);
|
|
138
157
|
}
|
|
139
158
|
if (step.onError !== null && step.onError !== undefined) {
|
|
140
|
-
|
|
159
|
+
// `onError: <KEY | null>` — a key, never a conditional.
|
|
160
|
+
walk(step.key, step.onError, false, 'onError');
|
|
141
161
|
}
|
|
142
162
|
/**
|
|
143
163
|
* The exception BACK-REFERENCE — an edge INTO this step, from the one that threw.
|
|
@@ -147,7 +167,7 @@ export function routeEdges(steps) {
|
|
|
147
167
|
* document error, and inventing a node for it would draw a step the stage does not contain.
|
|
148
168
|
*/
|
|
149
169
|
if (step.fromStep && known.has(step.fromStep)) {
|
|
150
|
-
|
|
170
|
+
emit({ from: step.fromStep, to: step.key, label: 'Exception' });
|
|
151
171
|
}
|
|
152
172
|
}
|
|
153
173
|
return edges;
|
package/dist/routes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;
|
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AA0CH,mFAAmF;AACnF,MAAM,UAAU,UAAU,CAAC,UAAkB;IAC3C,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,CAAC;AACxF,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAY;IAC9C,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;AACxF,CAAC;AAED,kFAAkF;AAClF,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC/C,OAAO,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAeD,+FAA+F;AAC/F,MAAM,UAAU,kBAAkB,CAAC,KAAc,EAAE,KAA0B;IAC3E,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;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Three shapes, one vocabulary
|
|
5
|
-
*
|
|
6
|
-
* A pusher, a **legacy** puller (`beforePullSteps`/`pullSteps`/`afterPullSteps`) and a **steps-based** puller
|
|
7
|
-
* (`steps`/`onErrorSteps`/`finalSteps`). Two vocabularies existed before this and they disagreed three ways; each
|
|
8
|
-
* disagreement is settled below by evidence rather than preference.
|
|
9
|
-
*
|
|
10
|
-
* **1. PRESENCE decides the shape, not a flag.** The CLI's `provenance.ts` picks between two stage lists using a
|
|
11
|
-
* `newKind` boolean. AC-1 says stage edges come from *"the stages actually present"*, and a boolean is a second
|
|
12
|
-
* source of truth for something the document already states by having the key. The extension's structure — one list
|
|
13
|
-
* per collection, presence deciding — is adopted. It also lets both puller kinds be listed together, which only
|
|
14
|
-
* works because the new kind's main stage is named `steps` outright and so cannot collide with the legacy three.
|
|
15
|
-
*
|
|
16
|
-
* **2. ⛔ A pusher DOES have `finalSteps` — this decision was WRONG and is reversed.** The original reasoning is kept
|
|
17
|
-
* below because the way it failed is instructive:
|
|
18
|
-
*
|
|
19
|
-
* > *"`assets/pushers/pusher.json` declares exactly `beforePushSteps`, `pushSteps`, `afterPushSteps`. The extension's
|
|
20
|
-
* > `STAGE_ORDER` lists a fourth, so it carries a stage that can never populate — a third vocabulary disagreeing with
|
|
21
|
-
* > the one authority. Dropped. Measured, so the drop costs nothing: 0 authored corpus pushers declare `finalSteps`."*
|
|
22
|
-
*
|
|
23
|
-
* The schema was treated as the authority, and the schema was itself wrong. **`PushStepAccessor` reads
|
|
24
|
-
* `$.finalSteps[*]` → `StepType.Final`** — the RUNTIME runs the stage. So the "third vocabulary" was the only one
|
|
25
|
-
* telling the truth, and the corpus count of 0 measured what authors could express through tooling that denied the
|
|
26
|
-
* stage, not what the platform supports. `WORKER_STAGES.pushers` declares it (Story 4.5 review, H2), and by Story 4.7
|
|
27
|
-
* the same omission had been found in **five** independent places, dashboard's `pusherPhases()` last.
|
|
28
|
-
*
|
|
29
|
-
* The transferable rule: **when a schema and the runtime disagree, the runtime is the authority.** A schema is a claim
|
|
30
|
-
* about the runtime and can be stale; `PushStepAccessor` is the thing that actually runs.
|
|
31
|
-
*
|
|
32
|
-
* **3. `label` and `phase` are carried.** A renderer needs a human label, and `phase` is what tells an error stage
|
|
33
|
-
* from a sequence stage without string-matching the key. The CLI has neither and its report is poorer for it.
|
|
34
|
-
*
|
|
35
|
-
* ### ⚠️ The steps-based puller is exercised by NOTHING real
|
|
36
|
-
*
|
|
37
|
-
* Measured over the authored corpus (`output.yaml` excluded), counting array-valued stage keys on every `pullers[]`
|
|
38
|
-
* and `pushers[]` entry:
|
|
39
|
-
*
|
|
40
|
-
* | stage | authored occurrences |
|
|
41
|
-
* | --- | --- |
|
|
42
|
-
* | `pullSteps` / `beforePullSteps` / `afterPullSteps` | 970 / 715 / 509 |
|
|
43
|
-
* | `pushSteps` / `beforePushSteps` / `afterPushSteps` | 925 / 756 / 767 |
|
|
44
|
-
* | `steps` / `onErrorSteps` / `finalSteps` | **0 / 0 / 0** |
|
|
45
|
-
*
|
|
46
|
-
* Story 4.1 says `onErrorSteps` and `finalSteps` appear in zero corpus files. That is true and it understates the
|
|
47
|
-
* position: **the whole steps-based kind has no authored instance anywhere**, so the shape is supported by the
|
|
48
|
-
* tooling and exercised by nothing. Fixture `03` is the only exercise it gets, which makes it the fixture most
|
|
49
|
-
* likely to drift and the one to treat as load-bearing rather than as an afterthought.
|
|
50
|
-
*/
|
|
51
|
-
/** What a stage is FOR, so a renderer never has to string-match a key to find out. */
|
|
1
|
+
/** Executable host placements. Stage presence never overrides the host's selected mode. */
|
|
52
2
|
export type StagePhase = 'sequence' | 'error' | 'final';
|
|
53
|
-
/** One stage a component may declare. */
|
|
54
3
|
export interface StageDefinition {
|
|
55
|
-
/** The document key: `pullSteps`, `onErrorSteps`. */
|
|
56
4
|
readonly key: string;
|
|
57
|
-
/** For a human: `Before pull`. */
|
|
58
5
|
readonly label: string;
|
|
59
6
|
readonly phase: StagePhase;
|
|
60
|
-
/**
|
|
61
|
-
* The `__flow` tag the WORKER stamps on this stage's step records, when it stamps one (FR38).
|
|
62
|
-
*
|
|
63
|
-
* The one `__flow`→stage authority, so a producer resolving `(key, __flow)` to a node address reads it here rather
|
|
64
|
-
* than keeping its own map. Absent where the worker stamps no flow — a record from such a stage carries no tag, and
|
|
65
|
-
* inventing one here would make a tagged lookup match a stage the worker never named.
|
|
66
|
-
*/
|
|
7
|
+
/** The worker's __flow tag; absent for untagged legacy/pusher/target placements. */
|
|
67
8
|
readonly runtimeFlow?: string;
|
|
68
9
|
}
|
|
69
|
-
/** The collections this package models. A frontend workflow is Story 4.2's, deliberately separate (AD-21). */
|
|
70
10
|
export type WorkerCollection = 'pullers' | 'pushers';
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
*
|
|
74
|
-
* ⛔ These keys mirror `assets/pullers/puller.json` and `assets/pushers/pusher.json`, which are the authority.
|
|
75
|
-
*
|
|
76
|
-
* ⚠️ **Mirrored, not DERIVED, and Task 2 asked for derived** (Story 4.1 review, M5). Deriving would mean reading a
|
|
77
|
-
* schema file, which AD-3 forbids this package from doing and NFR-4 forbids in the extension's host — so the schemas
|
|
78
|
-
* are the authority for a *test*, not for the runtime value. `stageSchemaParity.spec.ts` asserts this table against
|
|
79
|
-
* them in both directions, which is arguably stronger than derivation (it catches a stage the schema drops as well as
|
|
80
|
-
* one the table invents); it is nonetheless a deviation from the task as written, and it is skippable when the
|
|
81
|
-
* sibling repo is absent — which is why that spec also hardcodes the pusher expectation so something always runs.
|
|
82
|
-
*/
|
|
11
|
+
export type WorkerHostCollection = WorkerCollection | 'webhooks';
|
|
12
|
+
/** Catalogue for tooling; use selectEffectiveHost/stagesPresent for an actual declaration. */
|
|
83
13
|
export declare const WORKER_STAGES: Readonly<Record<WorkerCollection, readonly StageDefinition[]>>;
|
|
14
|
+
export type PullerKind = 'legacy' | 'steps';
|
|
15
|
+
/** Only nonempty steps switches the host to current mode, even if every step is later rejected. */
|
|
16
|
+
export declare function pullerKindOf(component: Readonly<Record<string, unknown>>): PullerKind;
|
|
17
|
+
export type WorkerHostInput = {
|
|
18
|
+
readonly collection: WorkerCollection;
|
|
19
|
+
readonly component: Readonly<Record<string, unknown>>;
|
|
20
|
+
readonly componentId?: unknown;
|
|
21
|
+
/**
|
|
22
|
+
* Complete effective profile bindings, when available: `objectAssociations` plus the task declarations whose
|
|
23
|
+
* deprecated inline `objects[].puller.id` is the fallback binding (see {@link effectivePullerIdOf}). Only these
|
|
24
|
+
* bind a legacy host; never pass display/harvest ownership here. Omit both only for a standalone
|
|
25
|
+
* authored-definition diagram.
|
|
26
|
+
*/
|
|
27
|
+
readonly objectAssociations?: Readonly<Record<string, unknown>>;
|
|
28
|
+
readonly objects?: readonly unknown[];
|
|
29
|
+
} | {
|
|
30
|
+
readonly collection: 'webhooks';
|
|
31
|
+
readonly component: Readonly<Record<string, unknown>>;
|
|
32
|
+
readonly componentId?: unknown;
|
|
33
|
+
readonly targetKey: string;
|
|
34
|
+
readonly target: Readonly<Record<string, unknown>>;
|
|
35
|
+
};
|
|
36
|
+
export type WorkerHostScope = {
|
|
37
|
+
readonly componentType: 'PULLER' | 'PUSHER';
|
|
38
|
+
readonly componentId: unknown;
|
|
39
|
+
} | {
|
|
40
|
+
readonly componentType: 'WEBHOOK';
|
|
41
|
+
readonly componentId: unknown;
|
|
42
|
+
readonly targetKey: string;
|
|
43
|
+
};
|
|
44
|
+
export interface EffectiveWorkerHost {
|
|
45
|
+
readonly collection: WorkerHostCollection;
|
|
46
|
+
readonly scope: WorkerHostScope;
|
|
47
|
+
readonly mode: 'legacy' | 'steps' | 'pusher' | 'webhook-target';
|
|
48
|
+
/** unknown is standalone declaration inspection, not evidence of a runtime binding. */
|
|
49
|
+
readonly eligibility: 'eligible' | 'unbound' | 'unknown';
|
|
50
|
+
readonly component: Readonly<Record<string, unknown>>;
|
|
51
|
+
/** Selected placements, including empty ones needed by host lifecycle/ingestion assembly. */
|
|
52
|
+
readonly stages: readonly StageDefinition[];
|
|
53
|
+
}
|
|
54
|
+
/** Typed target adapter: a webhook target is never represented as a polling puller. */
|
|
55
|
+
export declare function webhookTargetHost(input: {
|
|
56
|
+
readonly component: Readonly<Record<string, unknown>>;
|
|
57
|
+
readonly componentId?: unknown;
|
|
58
|
+
readonly targetKey: string;
|
|
59
|
+
readonly target: Readonly<Record<string, unknown>>;
|
|
60
|
+
}): WorkerHostInput & {
|
|
61
|
+
readonly collection: 'webhooks';
|
|
62
|
+
};
|
|
84
63
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* Worth having because a consumer may want to say so, and worth computing from presence: `legacy` and `steps` are
|
|
88
|
-
* observations about the document, and `unknown` is the honest answer for a puller declaring no stage at all rather
|
|
89
|
-
* than a guess at which kind it meant to be.
|
|
64
|
+
* The puller that feeds a task at runtime: its association's `puller.id`, else — association absent, or its
|
|
65
|
+
* `puller` branch absent or without an id — the deprecated inline `objects[].puller.id` of the task declaration.
|
|
90
66
|
*/
|
|
91
|
-
export
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
67
|
+
export declare function effectivePullerIdOf(association: unknown, task: unknown): unknown;
|
|
68
|
+
/** Pure mode/eligibility authority shared by declaration discovery and structural compilation. */
|
|
69
|
+
export declare function selectEffectiveHost(input: WorkerHostInput): EffectiveWorkerHost;
|
|
70
|
+
/** Nonempty executable placements, not the union of competing legacy/current fields. */
|
|
71
|
+
export declare function stagesPresent(collection: WorkerCollection, component: Readonly<Record<string, unknown>>): readonly StageDefinition[];
|
|
96
72
|
export interface StageEdge {
|
|
97
73
|
readonly from: string;
|
|
98
74
|
readonly to: string;
|
|
99
|
-
/** Absent for a plain sequence arrow; a renderer draws the label only where there is one. */
|
|
100
75
|
readonly label?: string;
|
|
101
76
|
}
|
|
102
|
-
/**
|
|
103
|
-
|
|
104
|
-
*
|
|
105
|
-
* Three rules, and the second and third are why this is not a `zip` of the ordered list:
|
|
106
|
-
*
|
|
107
|
-
* 1. **Sequence stages chain in order.** Computed from what is present, so a puller declaring only `pullSteps` has
|
|
108
|
-
* **no stage edges at all** — which fixture 02's baseline records verbatim as *"stage edges: none"*. An arrow
|
|
109
|
-
* into a stage that is not drawn points at nothing.
|
|
110
|
-
* 2. **An `error` stage is reachable from EVERY sequence stage**, labelled, because that is what an error stage
|
|
111
|
-
* means: any of them can fail into it. Drawing it as one more link in the chain would say the opposite — that it
|
|
112
|
-
* runs after the last sequence stage, on success.
|
|
113
|
-
* 3. **A `final` stage runs always**, from the last sequence stage and from the error stage, labelled `always`. It
|
|
114
|
-
* is the one stage a component reaches whichever way the run ends.
|
|
115
|
-
*
|
|
116
|
-
* The labels are the extension's, which is the only implementation that has stage *semantics* rather than only
|
|
117
|
-
* geometry.
|
|
118
|
-
*/
|
|
119
|
-
export declare function stageEdges(collection: WorkerCollection, component: Record<string, unknown>): readonly StageEdge[];
|
|
77
|
+
/** Conditional host-control summaries; they do not guarantee successful completion. */
|
|
78
|
+
export declare function stageEdges(collection: WorkerHostCollection, component: Readonly<Record<string, unknown>>): readonly StageEdge[];
|
|
120
79
|
//# sourceMappingURL=stages.d.ts.map
|
package/dist/stages.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stages.d.ts","sourceRoot":"","sources":["../src/stages.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"stages.d.ts","sourceRoot":"","sources":["../src/stages.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;AAExD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,oFAAoF;IACpF,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,MAAM,gBAAgB,GAAG,SA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