@xyne/workflow-sdk 3.2.20 → 3.2.21
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/agents/citation-resolve.d.ts +23 -12
- package/dist/agents/citation-resolve.d.ts.map +1 -1
- package/dist/agents/citation-resolve.js +125 -24
- package/dist/agents/citation-resolve.js.map +1 -1
- package/dist/builder/index.d.ts +2 -2
- package/dist/builder/index.d.ts.map +1 -1
- package/dist/builder/index.js +1 -1
- package/dist/builder/index.js.map +1 -1
- package/dist/common/citation-ref.d.ts +525 -11
- package/dist/common/citation-ref.d.ts.map +1 -1
- package/dist/common/citation-ref.js +105 -14
- package/dist/common/citation-ref.js.map +1 -1
- package/dist/common/expression-eval.d.ts +35 -0
- package/dist/common/expression-eval.d.ts.map +1 -0
- package/dist/common/expression-eval.js +214 -0
- package/dist/common/expression-eval.js.map +1 -0
- package/dist/common/index.d.ts +2 -2
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +1 -1
- package/dist/common/index.js.map +1 -1
- package/dist/common/principal.d.ts +45 -0
- package/dist/common/principal.d.ts.map +1 -0
- package/dist/common/principal.js +9 -0
- package/dist/common/principal.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/steps/builtin/transform.step.d.ts +247 -0
- package/dist/steps/builtin/transform.step.d.ts.map +1 -0
- package/dist/steps/builtin/transform.step.js +135 -0
- package/dist/steps/builtin/transform.step.js.map +1 -0
- package/dist/types/attachment.d.ts +23 -0
- package/dist/types/attachment.d.ts.map +1 -0
- package/dist/types/attachment.js +2 -0
- package/dist/types/attachment.js.map +1 -0
- package/dist/types/resume-payload.d.ts +34 -0
- package/dist/types/resume-payload.d.ts.map +1 -0
- package/dist/types/resume-payload.js +12 -0
- package/dist/types/resume-payload.js.map +1 -0
- package/dist/util/executable-check.d.ts +42 -0
- package/dist/util/executable-check.d.ts.map +1 -0
- package/dist/util/executable-check.js +115 -0
- package/dist/util/executable-check.js.map +1 -0
- package/package.json +1 -1
- package/dist/authz/principal-field.d.ts +0 -23
- package/dist/authz/principal-field.d.ts.map +0 -1
- package/dist/authz/principal-field.js +0 -34
- package/dist/authz/principal-field.js.map +0 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* 1. **Into the prompt**: {@link labelSources} wraps each resolved `{{ref}}` in a
|
|
5
5
|
* `[source: <ref>]` block. The executor resolves config to bare values before
|
|
6
6
|
* the step runs, so without this the agent would see the OCR text but have no
|
|
7
|
-
* idea it came from `steps.ocr.output.results.0.
|
|
7
|
+
* idea it came from `steps.ocr.output.results.0.pages.2.text` — nothing to cite.
|
|
8
8
|
* 2. **Out of the response**: {@link splitCitedResponse} unwraps the
|
|
9
9
|
* `{ value, citation }` object the model returns.
|
|
10
10
|
*
|
|
@@ -18,25 +18,36 @@ interface Warn {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Re-render a *raw* (pre-resolution) message so every `{{ref}}` becomes a
|
|
21
|
-
* labelled block naming the
|
|
21
|
+
* labelled block naming the source its content came from:
|
|
22
22
|
*
|
|
23
|
-
* "Analyse: {{steps.ocr.output.results
|
|
23
|
+
* "Analyse: {{steps.ocr.output.results}}"
|
|
24
24
|
* → "Analyse:
|
|
25
|
-
* [source: steps.ocr.output.results.0.
|
|
26
|
-
* <
|
|
25
|
+
* [source: steps.ocr.output.results.0.source | page 1]
|
|
26
|
+
* <text of page 1…>
|
|
27
|
+
* [/source]
|
|
28
|
+
* [source: steps.ocr.output.results.0.source | page 2]
|
|
29
|
+
* <text of page 2…>
|
|
27
30
|
* [/source]"
|
|
28
31
|
*
|
|
29
32
|
* The content is identical to what the resolver would have interpolated — only
|
|
30
33
|
* the provenance label is added, which is the thing the agent cites.
|
|
31
34
|
* Returns the input unchanged when it holds no refs.
|
|
32
35
|
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
36
|
+
* Two rules do the work, and both exist so the agent only ever **copies** a
|
|
37
|
+
* label rather than composing one:
|
|
38
|
+
*
|
|
39
|
+
* 1. A ref onto an **array of records** (several OCR'd documents, a set of rows)
|
|
40
|
+
* expands to one block per element. A single `[source: …results]` label would
|
|
41
|
+
* leave no way to say *which* document a value came from.
|
|
42
|
+
* 2. A record carrying a **document** beside its data is labelled with that
|
|
43
|
+
* document's ref plus a readable address (`| page 2`). So a citation names
|
|
44
|
+
* something openable, not an internal text path — which keeps citations
|
|
45
|
+
* decoupled from the producer's output shape (when `data` was removed from the
|
|
46
|
+
* OCR step, every ref pointing at it broke).
|
|
47
|
+
*
|
|
48
|
+
* Composing is exactly what models get wrong: asked to build `…results.1.text`
|
|
49
|
+
* itself, one would plausibly emit `results[1].text`, and the ref grammar is
|
|
50
|
+
* dot-only (see resolvePath).
|
|
40
51
|
*/
|
|
41
52
|
export declare function labelSources(rawMessage: string, workflow: WorkflowContext): string;
|
|
42
53
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citation-resolve.d.ts","sourceRoot":"","sources":["../../src/agents/citation-resolve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI3D,+EAA+E;AAC/E,UAAU,IAAI;IACZ,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;
|
|
1
|
+
{"version":3,"file":"citation-resolve.d.ts","sourceRoot":"","sources":["../../src/agents/citation-resolve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI3D,+EAA+E;AAC/E,UAAU,IAAI;IACZ,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAuGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,GAAG,MAAM,CAwBlF;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,cAAc,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAG7E;AAED,sEAAsE;AACtE,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CA6CxE;AA2CD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,GAAG,WAAW,CAExE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,GAAG,EAAE,IAAI,GACR;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,WAAW,CAAA;CAAE,CAW3C"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* 1. **Into the prompt**: {@link labelSources} wraps each resolved `{{ref}}` in a
|
|
5
5
|
* `[source: <ref>]` block. The executor resolves config to bare values before
|
|
6
6
|
* the step runs, so without this the agent would see the OCR text but have no
|
|
7
|
-
* idea it came from `steps.ocr.output.results.0.
|
|
7
|
+
* idea it came from `steps.ocr.output.results.0.pages.2.text` — nothing to cite.
|
|
8
8
|
* 2. **Out of the response**: {@link splitCitedResponse} unwraps the
|
|
9
9
|
* `{ value, citation }` object the model returns.
|
|
10
10
|
*
|
|
@@ -29,8 +29,9 @@ function stringifyForPrompt(value) {
|
|
|
29
29
|
return String(value);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
function sourceBlock(ref, value) {
|
|
33
|
-
|
|
32
|
+
function sourceBlock(ref, value, at) {
|
|
33
|
+
const head = at ? `${ref} | ${at}` : ref;
|
|
34
|
+
return `\n[source: ${head}]\n${stringifyForPrompt(value)}\n[/source]\n`;
|
|
34
35
|
}
|
|
35
36
|
/** An array of records — a list of independently-citable things. */
|
|
36
37
|
function isRecordArray(v) {
|
|
@@ -38,27 +39,106 @@ function isRecordArray(v) {
|
|
|
38
39
|
&& v.length > 0
|
|
39
40
|
&& v.every((el) => el !== null && typeof el === 'object' && !Array.isArray(el)));
|
|
40
41
|
}
|
|
42
|
+
/** Structural check for an Attachment — the same three fields the SDK guards on. */
|
|
43
|
+
function isAttachmentLike(v) {
|
|
44
|
+
if (!isPlainObject(v))
|
|
45
|
+
return false;
|
|
46
|
+
return (typeof v['name'] === 'string'
|
|
47
|
+
&& typeof v['mimeType'] === 'string'
|
|
48
|
+
&& typeof v['data'] === 'string');
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The document a record was derived from, if it carries one.
|
|
52
|
+
*
|
|
53
|
+
* Producer convention: a step that turns a document into data emits the
|
|
54
|
+
* `Attachment` beside the data (OCR's `results[i].source`). One level only — the
|
|
55
|
+
* document is a *sibling* of the text it produced, so a deeper scan could only
|
|
56
|
+
* surface something unrelated.
|
|
57
|
+
*/
|
|
58
|
+
function documentFieldOf(record) {
|
|
59
|
+
for (const [k, v] of Object.entries(record)) {
|
|
60
|
+
if (isAttachmentLike(v))
|
|
61
|
+
return k;
|
|
62
|
+
}
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
/** A human-readable address for a record that carries one — shown in the label. */
|
|
66
|
+
function addressOf(record) {
|
|
67
|
+
if (typeof record['page'] === 'number')
|
|
68
|
+
return `page ${String(record['page'])}`;
|
|
69
|
+
const row = record['row'];
|
|
70
|
+
const col = record['col'];
|
|
71
|
+
if (typeof row === 'number' && (typeof col === 'string' || typeof col === 'number')) {
|
|
72
|
+
const sheet = typeof record['sheet'] === 'string' ? `${record['sheet']}!` : '';
|
|
73
|
+
return `cell ${sheet}${String(col)}${String(row)}`;
|
|
74
|
+
}
|
|
75
|
+
if (typeof record['line'] === 'number')
|
|
76
|
+
return `line ${String(record['line'])}`;
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Expand one record into labelled blocks, naming the **document** it came from
|
|
81
|
+
* rather than the internal path its text happens to live at.
|
|
82
|
+
*
|
|
83
|
+
* A record like `{ source: <Attachment>, pages: [{page,text}, …] }` becomes one
|
|
84
|
+
* block per page, each labelled `<…>.source | page N` — so the agent cites a
|
|
85
|
+
* document plus an address, both copied verbatim. Without this the agent could
|
|
86
|
+
* only cite a text path, leaving the reader to reconstruct the document by
|
|
87
|
+
* climbing the tree, and coupling every citation to the producer's output shape.
|
|
88
|
+
*/
|
|
89
|
+
function expandRecord(basePath, record) {
|
|
90
|
+
const docField = documentFieldOf(record);
|
|
91
|
+
if (!docField)
|
|
92
|
+
return sourceBlock(basePath, record);
|
|
93
|
+
const docRef = `${basePath}.${docField}`;
|
|
94
|
+
let out = '';
|
|
95
|
+
let emitted = false;
|
|
96
|
+
for (const [key, value] of Object.entries(record)) {
|
|
97
|
+
if (key === docField)
|
|
98
|
+
continue;
|
|
99
|
+
if (isRecordArray(value)) {
|
|
100
|
+
// e.g. `pages: [{page, text}, …]` — one citable block per entry.
|
|
101
|
+
for (const entry of value) {
|
|
102
|
+
out += sourceBlock(docRef, entry, addressOf(entry));
|
|
103
|
+
emitted = true;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
// No per-entry data (or nothing but the document) — cite the document itself.
|
|
108
|
+
return emitted ? out : sourceBlock(docRef, record);
|
|
109
|
+
}
|
|
41
110
|
/**
|
|
42
111
|
* Re-render a *raw* (pre-resolution) message so every `{{ref}}` becomes a
|
|
43
|
-
* labelled block naming the
|
|
112
|
+
* labelled block naming the source its content came from:
|
|
44
113
|
*
|
|
45
|
-
* "Analyse: {{steps.ocr.output.results
|
|
114
|
+
* "Analyse: {{steps.ocr.output.results}}"
|
|
46
115
|
* → "Analyse:
|
|
47
|
-
* [source: steps.ocr.output.results.0.
|
|
48
|
-
* <
|
|
116
|
+
* [source: steps.ocr.output.results.0.source | page 1]
|
|
117
|
+
* <text of page 1…>
|
|
118
|
+
* [/source]
|
|
119
|
+
* [source: steps.ocr.output.results.0.source | page 2]
|
|
120
|
+
* <text of page 2…>
|
|
49
121
|
* [/source]"
|
|
50
122
|
*
|
|
51
123
|
* The content is identical to what the resolver would have interpolated — only
|
|
52
124
|
* the provenance label is added, which is the thing the agent cites.
|
|
53
125
|
* Returns the input unchanged when it holds no refs.
|
|
54
126
|
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
127
|
+
* Two rules do the work, and both exist so the agent only ever **copies** a
|
|
128
|
+
* label rather than composing one:
|
|
129
|
+
*
|
|
130
|
+
* 1. A ref onto an **array of records** (several OCR'd documents, a set of rows)
|
|
131
|
+
* expands to one block per element. A single `[source: …results]` label would
|
|
132
|
+
* leave no way to say *which* document a value came from.
|
|
133
|
+
* 2. A record carrying a **document** beside its data is labelled with that
|
|
134
|
+
* document's ref plus a readable address (`| page 2`). So a citation names
|
|
135
|
+
* something openable, not an internal text path — which keeps citations
|
|
136
|
+
* decoupled from the producer's output shape (when `data` was removed from the
|
|
137
|
+
* OCR step, every ref pointing at it broke).
|
|
138
|
+
*
|
|
139
|
+
* Composing is exactly what models get wrong: asked to build `…results.1.text`
|
|
140
|
+
* itself, one would plausibly emit `results[1].text`, and the ref grammar is
|
|
141
|
+
* dot-only (see resolvePath).
|
|
62
142
|
*/
|
|
63
143
|
export function labelSources(rawMessage, workflow) {
|
|
64
144
|
const tokens = tokenize(rawMessage);
|
|
@@ -73,10 +153,14 @@ export function labelSources(rawMessage, workflow) {
|
|
|
73
153
|
const value = resolvePath(workflow, tok.path);
|
|
74
154
|
if (isRecordArray(value)) {
|
|
75
155
|
for (let i = 0; i < value.length; i++) {
|
|
76
|
-
out +=
|
|
156
|
+
out += expandRecord(`${tok.path}.${String(i)}`, value[i]);
|
|
77
157
|
}
|
|
78
158
|
continue;
|
|
79
159
|
}
|
|
160
|
+
if (isPlainObject(value)) {
|
|
161
|
+
out += expandRecord(tok.path, value);
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
80
164
|
out += sourceBlock(tok.path, value);
|
|
81
165
|
}
|
|
82
166
|
return out;
|
|
@@ -95,23 +179,40 @@ export function attachmentRefBase(rawAttachments) {
|
|
|
95
179
|
/** The system-prompt instruction that tells the agent how to cite. */
|
|
96
180
|
export function citationSystemNote(outputType) {
|
|
97
181
|
const common = `\n\nCITATIONS: every value you output must say where it came from. `
|
|
98
|
-
+ `
|
|
99
|
-
+ `
|
|
100
|
-
+ `
|
|
101
|
-
+ `
|
|
182
|
+
+ `Each source above is labelled "[source: <ref> | <address>]". `
|
|
183
|
+
+ `Copy the <ref> verbatim — never build one yourself, and never invent one. `
|
|
184
|
+
+ `When the label shows an address, copy it as "locator": `
|
|
185
|
+
+ `"| page 2" becomes {"at":"page","page":2}, `
|
|
186
|
+
+ `"| cell Sheet1!B14" becomes {"at":"cell","sheet":"Sheet1","col":"B","row":14}, `
|
|
187
|
+
+ `"| line 42" becomes {"at":"line","from":42}. `
|
|
188
|
+
+ `A label with no address has nothing to locate — omit "locator". `
|
|
189
|
+
+ `Always add "quote": the exact text you took the value from, so the reader can be `
|
|
190
|
+
+ `shown the passage. For something you read on the web, cite {"kind":"url"} instead.`;
|
|
102
191
|
if (outputType === 'json') {
|
|
103
192
|
return (common
|
|
104
193
|
+ `\n\nReturn JSON with exactly two top-level keys: "value" and "citation". `
|
|
105
194
|
+ `"value" is the requested output. "citation" MIRRORS the structure of "value", `
|
|
106
195
|
+ `but every leaf is an array of sources: `
|
|
107
|
-
+ `{"kind":"ref","ref":"<a ref shown above>","
|
|
108
|
-
+ `or {"kind":"url","url":"https://…","
|
|
109
|
-
+ `Example: {"value":{"total":"5000"},"citation":{"total":[{"kind":"ref","ref":"steps.ocr.output.results.0.
|
|
110
|
-
+ `Omit a leaf from "citation" only when you genuinely cannot source it.`
|
|
196
|
+
+ `{"kind":"ref","ref":"<a ref shown above>","locator":<the address shown>,"quote":"<exact text>"} `
|
|
197
|
+
+ `or {"kind":"url","url":"https://…","quote":"<exact text>"}. `
|
|
198
|
+
+ `Example: {"value":{"total":"5000"},"citation":{"total":[{"kind":"ref","ref":"steps.ocr.output.results.0.source","locator":{"at":"page","page":2},"quote":"TOTAL DUE 5000"}]}}. `
|
|
199
|
+
+ `Omit a leaf from "citation" only when you genuinely cannot source it.`
|
|
200
|
+
// Only json mode gets this: a prose agent rarely computes structured values,
|
|
201
|
+
// and every extra instruction is a chance for the model to comply less well
|
|
202
|
+
// with the ones that matter.
|
|
203
|
+
+ `\n\nIf you CALCULATED a value instead of reading it (a total, a ratio, a `
|
|
204
|
+
+ `growth rate), do not quote it — it appears nowhere in the source. Cite it as `
|
|
205
|
+
+ `{"kind":"derived","label":"Debt Service Coverage Ratio","expression":"(#2 - #1) / #1",`
|
|
206
|
+
+ `"inputs":[<the sources you combined, in order>]}, where #1 is the first input, `
|
|
207
|
+
+ `#2 the second. Keep "expression" to + - * / ( ) and numbers so a reader can follow `
|
|
208
|
+
+ `it. List every input you used — the positions must line up with the expression. `
|
|
209
|
+
+ `ALWAYS include "label": a short plain-language name of what the value represents `
|
|
210
|
+
+ `(e.g. "Debt Service Coverage Ratio", "Year-on-year revenue growth") — never leave `
|
|
211
|
+
+ `it out, because the expression alone tells a reader nothing about what was computed.`);
|
|
111
212
|
}
|
|
112
213
|
return (common
|
|
113
214
|
+ `\n\nWrap every sourced statement in a citation directive:\n`
|
|
114
|
-
+ `:::citation{ref="<a ref shown above>" page=
|
|
215
|
+
+ `:::citation{ref="<a ref shown above>" page=2 quote="<exact text>"}\n`
|
|
115
216
|
+ `the statement\n`
|
|
116
217
|
+ `:::\n`
|
|
117
218
|
+ `or :::citation{url="https://…"} … :::. Use only these attributes: ref, page, url, quote, title.`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citation-resolve.js","sourceRoot":"","sources":["../../src/agents/citation-resolve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAG9D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAOnE,SAAS,aAAa,CAAC,CAAU;IAC/B,OAAO,CAAC,KAAK,IAAI,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAClE,CAAC;AAED,sBAAsB;AAEtB,SAAS,kBAAkB,CAAC,KAAc;IACxC,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,EAAE,CAAC;IACrD,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5C,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;AACH,CAAC;AAED,SAAS,WAAW,CAAC,GAAW,EAAE,KAAc;
|
|
1
|
+
{"version":3,"file":"citation-resolve.js","sourceRoot":"","sources":["../../src/agents/citation-resolve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAG9D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAA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mB,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;IAC5F,CAAC;IACD,IAAI,OAAO,IAAI,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;IAClD,CAAC;IACD,GAAG,CAAC,IAAI,CACN,gGAAgG,CACjG,CAAC;IACF,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;AACzC,CAAC"}
|
package/dist/builder/index.d.ts
CHANGED
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
export { VARIABLE_REF_REGEX, VARIABLE_REF_DESCRIPTION_PREFIX, tokenize, isPureRef, extractRefPath, collectRefs, parseRef, findStepsReferencing, } from '../util/variable-ref.js';
|
|
19
19
|
export type { VariableRefToken, FoundRef, ParsedRef } from '../util/variable-ref.js';
|
|
20
20
|
export { ensureCitationPath, tryCitationPath, parseCitationPath, resolveCitationPath, } from '../util/citation-path.js';
|
|
21
|
-
export type { CitationRef, RefCitation, UrlCitation, CitationMap, } from '../common/citation-ref.js';
|
|
22
|
-
export { CitationRefSchema, CITATION_REF_JSON_SCHEMA, CITATION_DIRECTIVE_ATTRS, isCitationRef, isCitationRefArray, } from '../common/citation-ref.js';
|
|
21
|
+
export type { CitationRef, Locator, RefCitation, UrlCitation, DerivedCitation, SourceCitation, CitationMap, } from '../common/citation-ref.js';
|
|
22
|
+
export { CitationRefSchema, LocatorSchema, DerivedCitationSchema, CITATION_REF_JSON_SCHEMA, CITATION_DIRECTIVE_ATTRS, isCitationRef, isCitationRefArray, } from '../common/citation-ref.js';
|
|
23
23
|
export { getAvailableContext } from '../engine/available-context.js';
|
|
24
24
|
export type { AvailableContext } from '../engine/available-context.js';
|
|
25
25
|
export { VariableResolver, resolvePath, stripNullForOptionalKeys, } from '../engine/variable-resolver.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/builder/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EACL,kBAAkB,EAClB,+BAA+B,EAC/B,QAAQ,EACR,SAAS,EACT,cAAc,EACd,WAAW,EACX,QAAQ,EACR,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAErF,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAIlC,YAAY,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,GACZ,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,wBAAwB,EACxB,aAAa,EACb,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AAInC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAIvE,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,wBAAwB,GACzB,MAAM,gCAAgC,CAAC;AAIxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAItE,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAIhE,OAAO,EACL,WAAW,EACX,yBAAyB,EACzB,mBAAmB,EACnB,eAAe,EACf,cAAc,GACf,MAAM,6BAA6B,CAAC;AAErC,YAAY,EACV,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,GACf,MAAM,+BAA+B,CAAC;AAEvC,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,SAAS,GACV,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAIlE,YAAY,EACV,cAAc,EACd,gBAAgB,EAChB,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACrE,YAAY,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/builder/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EACL,kBAAkB,EAClB,+BAA+B,EAC/B,QAAQ,EACR,SAAS,EACT,cAAc,EACd,WAAW,EACX,QAAQ,EACR,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAErF,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAIlC,YAAY,EACV,WAAW,EACX,OAAO,EACP,WAAW,EACX,WAAW,EACX,eAAe,EACf,cAAc,EACd,WAAW,GACZ,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,aAAa,EACb,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AAInC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAIvE,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,wBAAwB,GACzB,MAAM,gCAAgC,CAAC;AAIxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAItE,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAIhE,OAAO,EACL,WAAW,EACX,yBAAyB,EACzB,mBAAmB,EACnB,eAAe,EACf,cAAc,GACf,MAAM,6BAA6B,CAAC;AAErC,YAAY,EACV,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,GACf,MAAM,+BAA+B,CAAC;AAEvC,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,SAAS,GACV,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAIlE,YAAY,EACV,cAAc,EACd,gBAAgB,EAChB,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACrE,YAAY,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/builder/index.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
// ─── Variable Reference Utilities ───
|
|
19
19
|
export { VARIABLE_REF_REGEX, VARIABLE_REF_DESCRIPTION_PREFIX, tokenize, isPureRef, extractRefPath, collectRefs, parseRef, findStepsReferencing, } from '../util/variable-ref.js';
|
|
20
20
|
export { ensureCitationPath, tryCitationPath, parseCitationPath, resolveCitationPath, } from '../util/citation-path.js';
|
|
21
|
-
export { CitationRefSchema, CITATION_REF_JSON_SCHEMA, CITATION_DIRECTIVE_ATTRS, isCitationRef, isCitationRefArray, } from '../common/citation-ref.js';
|
|
21
|
+
export { CitationRefSchema, LocatorSchema, DerivedCitationSchema, CITATION_REF_JSON_SCHEMA, CITATION_DIRECTIVE_ATTRS, isCitationRef, isCitationRefArray, } from '../common/citation-ref.js';
|
|
22
22
|
// ─── Available Context ───
|
|
23
23
|
export { getAvailableContext } from '../engine/available-context.js';
|
|
24
24
|
// ─── Variable Resolution ───
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/builder/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,uCAAuC;AAEvC,OAAO,EACL,kBAAkB,EAClB,+BAA+B,EAC/B,QAAQ,EACR,SAAS,EACT,cAAc,EACd,WAAW,EACX,QAAQ,EACR,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/builder/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,uCAAuC;AAEvC,OAAO,EACL,kBAAkB,EAClB,+BAA+B,EAC/B,QAAQ,EACR,SAAS,EACT,cAAc,EACd,WAAW,EACX,QAAQ,EACR,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAalC,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,aAAa,EACb,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AAEnC,4BAA4B;AAE5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAGrE,8BAA8B;AAE9B,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,wBAAwB,GACzB,MAAM,gCAAgC,CAAC;AAExC,+BAA+B;AAE/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,oBAAoB;AAEpB,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAI/B,gCAAgC;AAEhC,OAAO,EACL,WAAW,EACX,yBAAyB,EACzB,mBAAmB,EACnB,eAAe,EACf,cAAc,GACf,MAAM,6BAA6B,CAAC;AAgBrC,qDAAqD;AAErD,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,GACf,MAAM,+BAA+B,CAAC;AASvC,4BAA4B;AAE5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAUlE,6BAA6B;AAE7B,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC"}
|