@xyne/workflow-sdk 3.2.20 → 3.2.22
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/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/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/package.json +1 -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":"A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{@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,EA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AG,CAAC,CAAC,CAAC,SAAS,CAAC;IACvD,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,GAAY,EAAE,GAAS;IACzD,OAAO,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC;AACtC,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,kBAAkB,CAChC,MAA+B,EAC/B,GAAS;IAET,IAAI,OAAO,IAAI,MAAM,IAAI,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC;QAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,mBAAmB,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,YA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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"}
|
|
@@ -8,7 +8,7 @@ import { z } from 'zod';
|
|
|
8
8
|
* execution time and travels *with the output data* — `output.response.citation`,
|
|
9
9
|
* a structural mirror of `output.response.value`.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* Three kinds — everything a model can honestly say about where a value came from:
|
|
12
12
|
*
|
|
13
13
|
* - `ref` — a path the agent was explicitly shown (the `[source: ...]` labels the
|
|
14
14
|
* agent step injects around resolved `{{refs}}`). An agent can never emit an
|
|
@@ -16,78 +16,592 @@ import { z } from 'zod';
|
|
|
16
16
|
* to know. Turning a `ref` into an openable document happens in the UI, which
|
|
17
17
|
* alone holds the workflow config + step outputs required to walk to the source.
|
|
18
18
|
* - `url` — an external link the agent browsed. Already concrete; nothing to resolve.
|
|
19
|
+
* - `derived` — the value was **computed**, so it appears nowhere to be quoted;
|
|
20
|
+
* its provenance is the inputs it combined and how. See {@link DerivedCitationSchema}.
|
|
19
21
|
*
|
|
20
|
-
* `
|
|
21
|
-
* locate the passage *inside* the
|
|
22
|
-
* from is structural (the workflow knows it); where inside it is data (only
|
|
23
|
-
* agent knows it) — this split is why citations are never inferred by tracing.
|
|
22
|
+
* `locator` / `quote` are the half only the reader of the text can supply: they
|
|
23
|
+
* locate the passage *inside* the source the `ref` names. Which source a value
|
|
24
|
+
* came from is structural (the workflow knows it); where inside it is data (only
|
|
25
|
+
* the agent knows it) — this split is why citations are never inferred by tracing.
|
|
26
|
+
*
|
|
27
|
+
* **There is deliberately no separate "document" vs "value" kind.** Whether a ref
|
|
28
|
+
* resolves to an openable document or to plain step output is a *structural* fact
|
|
29
|
+
* the model cannot know — it saw text, not the workflow graph. Asking it to
|
|
30
|
+
* classify would guarantee confident mis-labelling, and a wrong discriminator is
|
|
31
|
+
* far worse than an omitted optional field. So the emitted union is shaped by what
|
|
32
|
+
* the agent can know; the *resolved* union (UI) splits `doc` from `value`, where
|
|
33
|
+
* the answer is actually available. When there is nothing to locate within, the
|
|
34
|
+
* agent simply omits `locator`/`quote`.
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Where inside a source a value sits.
|
|
38
|
+
*
|
|
39
|
+
* Discriminated rather than a bag of optional fields: a spreadsheet has no pages
|
|
40
|
+
* and a PDF has no rows, so `page?`/`row?`/`line?` side by side would make most
|
|
41
|
+
* combinations meaningless and every consumer defensive.
|
|
42
|
+
*
|
|
43
|
+
* The agent asserts this only because the `[source: …]` label *shows* it — it is
|
|
44
|
+
* copied, never inferred. Anything a label can't show stays out of this union
|
|
45
|
+
* (an image bounding box, for instance, which no reader of text could know).
|
|
24
46
|
*/
|
|
47
|
+
export declare const LocatorSchema: z.ZodDiscriminatedUnion<"at", [z.ZodObject<{
|
|
48
|
+
at: z.ZodLiteral<"page">;
|
|
49
|
+
page: z.ZodNumber;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
at: "page";
|
|
52
|
+
page: number;
|
|
53
|
+
}, {
|
|
54
|
+
at: "page";
|
|
55
|
+
page: number;
|
|
56
|
+
}>, z.ZodObject<{
|
|
57
|
+
at: z.ZodLiteral<"cell">;
|
|
58
|
+
sheet: z.ZodOptional<z.ZodString>;
|
|
59
|
+
row: z.ZodNumber;
|
|
60
|
+
col: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
at: "cell";
|
|
63
|
+
row: number;
|
|
64
|
+
col: string | number;
|
|
65
|
+
sheet?: string | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
at: "cell";
|
|
68
|
+
row: number;
|
|
69
|
+
col: string | number;
|
|
70
|
+
sheet?: string | undefined;
|
|
71
|
+
}>, z.ZodObject<{
|
|
72
|
+
at: z.ZodLiteral<"line">;
|
|
73
|
+
from: z.ZodNumber;
|
|
74
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
at: "line";
|
|
77
|
+
from: number;
|
|
78
|
+
to?: number | undefined;
|
|
79
|
+
}, {
|
|
80
|
+
at: "line";
|
|
81
|
+
from: number;
|
|
82
|
+
to?: number | undefined;
|
|
83
|
+
}>]>;
|
|
84
|
+
export type Locator = z.infer<typeof LocatorSchema>;
|
|
25
85
|
export declare const RefCitationSchema: z.ZodObject<{
|
|
26
86
|
kind: z.ZodLiteral<"ref">;
|
|
27
87
|
ref: z.ZodString;
|
|
28
|
-
|
|
88
|
+
locator: z.ZodOptional<z.ZodDiscriminatedUnion<"at", [z.ZodObject<{
|
|
89
|
+
at: z.ZodLiteral<"page">;
|
|
90
|
+
page: z.ZodNumber;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
at: "page";
|
|
93
|
+
page: number;
|
|
94
|
+
}, {
|
|
95
|
+
at: "page";
|
|
96
|
+
page: number;
|
|
97
|
+
}>, z.ZodObject<{
|
|
98
|
+
at: z.ZodLiteral<"cell">;
|
|
99
|
+
sheet: z.ZodOptional<z.ZodString>;
|
|
100
|
+
row: z.ZodNumber;
|
|
101
|
+
col: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
at: "cell";
|
|
104
|
+
row: number;
|
|
105
|
+
col: string | number;
|
|
106
|
+
sheet?: string | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
at: "cell";
|
|
109
|
+
row: number;
|
|
110
|
+
col: string | number;
|
|
111
|
+
sheet?: string | undefined;
|
|
112
|
+
}>, z.ZodObject<{
|
|
113
|
+
at: z.ZodLiteral<"line">;
|
|
114
|
+
from: z.ZodNumber;
|
|
115
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
at: "line";
|
|
118
|
+
from: number;
|
|
119
|
+
to?: number | undefined;
|
|
120
|
+
}, {
|
|
121
|
+
at: "line";
|
|
122
|
+
from: number;
|
|
123
|
+
to?: number | undefined;
|
|
124
|
+
}>]>>;
|
|
29
125
|
quote: z.ZodOptional<z.ZodString>;
|
|
30
126
|
label: z.ZodOptional<z.ZodString>;
|
|
31
127
|
}, "strip", z.ZodTypeAny, {
|
|
32
128
|
ref: string;
|
|
33
129
|
kind: "ref";
|
|
34
130
|
label?: string | undefined;
|
|
35
|
-
|
|
131
|
+
locator?: {
|
|
132
|
+
at: "page";
|
|
133
|
+
page: number;
|
|
134
|
+
} | {
|
|
135
|
+
at: "cell";
|
|
136
|
+
row: number;
|
|
137
|
+
col: string | number;
|
|
138
|
+
sheet?: string | undefined;
|
|
139
|
+
} | {
|
|
140
|
+
at: "line";
|
|
141
|
+
from: number;
|
|
142
|
+
to?: number | undefined;
|
|
143
|
+
} | undefined;
|
|
36
144
|
quote?: string | undefined;
|
|
37
145
|
}, {
|
|
38
146
|
ref: string;
|
|
39
147
|
kind: "ref";
|
|
40
148
|
label?: string | undefined;
|
|
41
|
-
|
|
149
|
+
locator?: {
|
|
150
|
+
at: "page";
|
|
151
|
+
page: number;
|
|
152
|
+
} | {
|
|
153
|
+
at: "cell";
|
|
154
|
+
row: number;
|
|
155
|
+
col: string | number;
|
|
156
|
+
sheet?: string | undefined;
|
|
157
|
+
} | {
|
|
158
|
+
at: "line";
|
|
159
|
+
from: number;
|
|
160
|
+
to?: number | undefined;
|
|
161
|
+
} | undefined;
|
|
42
162
|
quote?: string | undefined;
|
|
43
163
|
}>;
|
|
44
164
|
export declare const UrlCitationSchema: z.ZodObject<{
|
|
45
165
|
kind: z.ZodLiteral<"url">;
|
|
46
166
|
url: z.ZodString;
|
|
167
|
+
quote: z.ZodOptional<z.ZodString>;
|
|
47
168
|
title: z.ZodOptional<z.ZodString>;
|
|
48
169
|
}, "strip", z.ZodTypeAny, {
|
|
49
170
|
url: string;
|
|
50
171
|
kind: "url";
|
|
172
|
+
quote?: string | undefined;
|
|
51
173
|
title?: string | undefined;
|
|
52
174
|
}, {
|
|
53
175
|
url: string;
|
|
54
176
|
kind: "url";
|
|
177
|
+
quote?: string | undefined;
|
|
55
178
|
title?: string | undefined;
|
|
56
179
|
}>;
|
|
180
|
+
/**
|
|
181
|
+
* A value the agent **computed** rather than read — a total, a ratio, a growth
|
|
182
|
+
* rate. It appears nowhere in the source, so there is no passage to quote and no
|
|
183
|
+
* page to open; its provenance is *these inputs, combined this way*.
|
|
184
|
+
*
|
|
185
|
+
* This is a distinct kind rather than "several citations on one value" because
|
|
186
|
+
* the two mean opposite things. Two citations on a name are **corroboration** —
|
|
187
|
+
* either alone still supports it. Two inputs to a subtraction are **required** —
|
|
188
|
+
* if one is wrong, the value is wrong. Rendering them identically would hide that.
|
|
189
|
+
*
|
|
190
|
+
* `inputs` is deliberately only one level deep (an input can't itself be
|
|
191
|
+
* `derived`): it keeps every union member a plain `ZodObject`, which is what
|
|
192
|
+
* `z.discriminatedUnion` requires — a recursive member would force `z.union` plus
|
|
193
|
+
* lazy schemas for no real gain, since a chain of derivations is already handled
|
|
194
|
+
* by resolving *through* the upstream agent's own citation.
|
|
195
|
+
*/
|
|
196
|
+
export declare const DerivedCitationSchema: z.ZodObject<{
|
|
197
|
+
kind: z.ZodLiteral<"derived">;
|
|
198
|
+
expression: z.ZodOptional<z.ZodString>;
|
|
199
|
+
inputs: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
200
|
+
kind: z.ZodLiteral<"ref">;
|
|
201
|
+
ref: z.ZodString;
|
|
202
|
+
locator: z.ZodOptional<z.ZodDiscriminatedUnion<"at", [z.ZodObject<{
|
|
203
|
+
at: z.ZodLiteral<"page">;
|
|
204
|
+
page: z.ZodNumber;
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
|
+
at: "page";
|
|
207
|
+
page: number;
|
|
208
|
+
}, {
|
|
209
|
+
at: "page";
|
|
210
|
+
page: number;
|
|
211
|
+
}>, z.ZodObject<{
|
|
212
|
+
at: z.ZodLiteral<"cell">;
|
|
213
|
+
sheet: z.ZodOptional<z.ZodString>;
|
|
214
|
+
row: z.ZodNumber;
|
|
215
|
+
col: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
216
|
+
}, "strip", z.ZodTypeAny, {
|
|
217
|
+
at: "cell";
|
|
218
|
+
row: number;
|
|
219
|
+
col: string | number;
|
|
220
|
+
sheet?: string | undefined;
|
|
221
|
+
}, {
|
|
222
|
+
at: "cell";
|
|
223
|
+
row: number;
|
|
224
|
+
col: string | number;
|
|
225
|
+
sheet?: string | undefined;
|
|
226
|
+
}>, z.ZodObject<{
|
|
227
|
+
at: z.ZodLiteral<"line">;
|
|
228
|
+
from: z.ZodNumber;
|
|
229
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
230
|
+
}, "strip", z.ZodTypeAny, {
|
|
231
|
+
at: "line";
|
|
232
|
+
from: number;
|
|
233
|
+
to?: number | undefined;
|
|
234
|
+
}, {
|
|
235
|
+
at: "line";
|
|
236
|
+
from: number;
|
|
237
|
+
to?: number | undefined;
|
|
238
|
+
}>]>>;
|
|
239
|
+
quote: z.ZodOptional<z.ZodString>;
|
|
240
|
+
label: z.ZodOptional<z.ZodString>;
|
|
241
|
+
}, "strip", z.ZodTypeAny, {
|
|
242
|
+
ref: string;
|
|
243
|
+
kind: "ref";
|
|
244
|
+
label?: string | undefined;
|
|
245
|
+
locator?: {
|
|
246
|
+
at: "page";
|
|
247
|
+
page: number;
|
|
248
|
+
} | {
|
|
249
|
+
at: "cell";
|
|
250
|
+
row: number;
|
|
251
|
+
col: string | number;
|
|
252
|
+
sheet?: string | undefined;
|
|
253
|
+
} | {
|
|
254
|
+
at: "line";
|
|
255
|
+
from: number;
|
|
256
|
+
to?: number | undefined;
|
|
257
|
+
} | undefined;
|
|
258
|
+
quote?: string | undefined;
|
|
259
|
+
}, {
|
|
260
|
+
ref: string;
|
|
261
|
+
kind: "ref";
|
|
262
|
+
label?: string | undefined;
|
|
263
|
+
locator?: {
|
|
264
|
+
at: "page";
|
|
265
|
+
page: number;
|
|
266
|
+
} | {
|
|
267
|
+
at: "cell";
|
|
268
|
+
row: number;
|
|
269
|
+
col: string | number;
|
|
270
|
+
sheet?: string | undefined;
|
|
271
|
+
} | {
|
|
272
|
+
at: "line";
|
|
273
|
+
from: number;
|
|
274
|
+
to?: number | undefined;
|
|
275
|
+
} | undefined;
|
|
276
|
+
quote?: string | undefined;
|
|
277
|
+
}>, z.ZodObject<{
|
|
278
|
+
kind: z.ZodLiteral<"url">;
|
|
279
|
+
url: z.ZodString;
|
|
280
|
+
quote: z.ZodOptional<z.ZodString>;
|
|
281
|
+
title: z.ZodOptional<z.ZodString>;
|
|
282
|
+
}, "strip", z.ZodTypeAny, {
|
|
283
|
+
url: string;
|
|
284
|
+
kind: "url";
|
|
285
|
+
quote?: string | undefined;
|
|
286
|
+
title?: string | undefined;
|
|
287
|
+
}, {
|
|
288
|
+
url: string;
|
|
289
|
+
kind: "url";
|
|
290
|
+
quote?: string | undefined;
|
|
291
|
+
title?: string | undefined;
|
|
292
|
+
}>]>, "many">;
|
|
293
|
+
label: z.ZodOptional<z.ZodString>;
|
|
294
|
+
}, "strip", z.ZodTypeAny, {
|
|
295
|
+
kind: "derived";
|
|
296
|
+
inputs: ({
|
|
297
|
+
ref: string;
|
|
298
|
+
kind: "ref";
|
|
299
|
+
label?: string | undefined;
|
|
300
|
+
locator?: {
|
|
301
|
+
at: "page";
|
|
302
|
+
page: number;
|
|
303
|
+
} | {
|
|
304
|
+
at: "cell";
|
|
305
|
+
row: number;
|
|
306
|
+
col: string | number;
|
|
307
|
+
sheet?: string | undefined;
|
|
308
|
+
} | {
|
|
309
|
+
at: "line";
|
|
310
|
+
from: number;
|
|
311
|
+
to?: number | undefined;
|
|
312
|
+
} | undefined;
|
|
313
|
+
quote?: string | undefined;
|
|
314
|
+
} | {
|
|
315
|
+
url: string;
|
|
316
|
+
kind: "url";
|
|
317
|
+
quote?: string | undefined;
|
|
318
|
+
title?: string | undefined;
|
|
319
|
+
})[];
|
|
320
|
+
expression?: string | undefined;
|
|
321
|
+
label?: string | undefined;
|
|
322
|
+
}, {
|
|
323
|
+
kind: "derived";
|
|
324
|
+
inputs: ({
|
|
325
|
+
ref: string;
|
|
326
|
+
kind: "ref";
|
|
327
|
+
label?: string | undefined;
|
|
328
|
+
locator?: {
|
|
329
|
+
at: "page";
|
|
330
|
+
page: number;
|
|
331
|
+
} | {
|
|
332
|
+
at: "cell";
|
|
333
|
+
row: number;
|
|
334
|
+
col: string | number;
|
|
335
|
+
sheet?: string | undefined;
|
|
336
|
+
} | {
|
|
337
|
+
at: "line";
|
|
338
|
+
from: number;
|
|
339
|
+
to?: number | undefined;
|
|
340
|
+
} | undefined;
|
|
341
|
+
quote?: string | undefined;
|
|
342
|
+
} | {
|
|
343
|
+
url: string;
|
|
344
|
+
kind: "url";
|
|
345
|
+
quote?: string | undefined;
|
|
346
|
+
title?: string | undefined;
|
|
347
|
+
})[];
|
|
348
|
+
expression?: string | undefined;
|
|
349
|
+
label?: string | undefined;
|
|
350
|
+
}>;
|
|
57
351
|
export declare const CitationRefSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
58
352
|
kind: z.ZodLiteral<"ref">;
|
|
59
353
|
ref: z.ZodString;
|
|
60
|
-
|
|
354
|
+
locator: z.ZodOptional<z.ZodDiscriminatedUnion<"at", [z.ZodObject<{
|
|
355
|
+
at: z.ZodLiteral<"page">;
|
|
356
|
+
page: z.ZodNumber;
|
|
357
|
+
}, "strip", z.ZodTypeAny, {
|
|
358
|
+
at: "page";
|
|
359
|
+
page: number;
|
|
360
|
+
}, {
|
|
361
|
+
at: "page";
|
|
362
|
+
page: number;
|
|
363
|
+
}>, z.ZodObject<{
|
|
364
|
+
at: z.ZodLiteral<"cell">;
|
|
365
|
+
sheet: z.ZodOptional<z.ZodString>;
|
|
366
|
+
row: z.ZodNumber;
|
|
367
|
+
col: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
368
|
+
}, "strip", z.ZodTypeAny, {
|
|
369
|
+
at: "cell";
|
|
370
|
+
row: number;
|
|
371
|
+
col: string | number;
|
|
372
|
+
sheet?: string | undefined;
|
|
373
|
+
}, {
|
|
374
|
+
at: "cell";
|
|
375
|
+
row: number;
|
|
376
|
+
col: string | number;
|
|
377
|
+
sheet?: string | undefined;
|
|
378
|
+
}>, z.ZodObject<{
|
|
379
|
+
at: z.ZodLiteral<"line">;
|
|
380
|
+
from: z.ZodNumber;
|
|
381
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
382
|
+
}, "strip", z.ZodTypeAny, {
|
|
383
|
+
at: "line";
|
|
384
|
+
from: number;
|
|
385
|
+
to?: number | undefined;
|
|
386
|
+
}, {
|
|
387
|
+
at: "line";
|
|
388
|
+
from: number;
|
|
389
|
+
to?: number | undefined;
|
|
390
|
+
}>]>>;
|
|
61
391
|
quote: z.ZodOptional<z.ZodString>;
|
|
62
392
|
label: z.ZodOptional<z.ZodString>;
|
|
63
393
|
}, "strip", z.ZodTypeAny, {
|
|
64
394
|
ref: string;
|
|
65
395
|
kind: "ref";
|
|
66
396
|
label?: string | undefined;
|
|
67
|
-
|
|
397
|
+
locator?: {
|
|
398
|
+
at: "page";
|
|
399
|
+
page: number;
|
|
400
|
+
} | {
|
|
401
|
+
at: "cell";
|
|
402
|
+
row: number;
|
|
403
|
+
col: string | number;
|
|
404
|
+
sheet?: string | undefined;
|
|
405
|
+
} | {
|
|
406
|
+
at: "line";
|
|
407
|
+
from: number;
|
|
408
|
+
to?: number | undefined;
|
|
409
|
+
} | undefined;
|
|
68
410
|
quote?: string | undefined;
|
|
69
411
|
}, {
|
|
70
412
|
ref: string;
|
|
71
413
|
kind: "ref";
|
|
72
414
|
label?: string | undefined;
|
|
73
|
-
|
|
415
|
+
locator?: {
|
|
416
|
+
at: "page";
|
|
417
|
+
page: number;
|
|
418
|
+
} | {
|
|
419
|
+
at: "cell";
|
|
420
|
+
row: number;
|
|
421
|
+
col: string | number;
|
|
422
|
+
sheet?: string | undefined;
|
|
423
|
+
} | {
|
|
424
|
+
at: "line";
|
|
425
|
+
from: number;
|
|
426
|
+
to?: number | undefined;
|
|
427
|
+
} | undefined;
|
|
74
428
|
quote?: string | undefined;
|
|
75
429
|
}>, z.ZodObject<{
|
|
76
430
|
kind: z.ZodLiteral<"url">;
|
|
77
431
|
url: z.ZodString;
|
|
432
|
+
quote: z.ZodOptional<z.ZodString>;
|
|
78
433
|
title: z.ZodOptional<z.ZodString>;
|
|
79
434
|
}, "strip", z.ZodTypeAny, {
|
|
80
435
|
url: string;
|
|
81
436
|
kind: "url";
|
|
437
|
+
quote?: string | undefined;
|
|
82
438
|
title?: string | undefined;
|
|
83
439
|
}, {
|
|
84
440
|
url: string;
|
|
85
441
|
kind: "url";
|
|
442
|
+
quote?: string | undefined;
|
|
86
443
|
title?: string | undefined;
|
|
444
|
+
}>, z.ZodObject<{
|
|
445
|
+
kind: z.ZodLiteral<"derived">;
|
|
446
|
+
expression: z.ZodOptional<z.ZodString>;
|
|
447
|
+
inputs: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
448
|
+
kind: z.ZodLiteral<"ref">;
|
|
449
|
+
ref: z.ZodString;
|
|
450
|
+
locator: z.ZodOptional<z.ZodDiscriminatedUnion<"at", [z.ZodObject<{
|
|
451
|
+
at: z.ZodLiteral<"page">;
|
|
452
|
+
page: z.ZodNumber;
|
|
453
|
+
}, "strip", z.ZodTypeAny, {
|
|
454
|
+
at: "page";
|
|
455
|
+
page: number;
|
|
456
|
+
}, {
|
|
457
|
+
at: "page";
|
|
458
|
+
page: number;
|
|
459
|
+
}>, z.ZodObject<{
|
|
460
|
+
at: z.ZodLiteral<"cell">;
|
|
461
|
+
sheet: z.ZodOptional<z.ZodString>;
|
|
462
|
+
row: z.ZodNumber;
|
|
463
|
+
col: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
464
|
+
}, "strip", z.ZodTypeAny, {
|
|
465
|
+
at: "cell";
|
|
466
|
+
row: number;
|
|
467
|
+
col: string | number;
|
|
468
|
+
sheet?: string | undefined;
|
|
469
|
+
}, {
|
|
470
|
+
at: "cell";
|
|
471
|
+
row: number;
|
|
472
|
+
col: string | number;
|
|
473
|
+
sheet?: string | undefined;
|
|
474
|
+
}>, z.ZodObject<{
|
|
475
|
+
at: z.ZodLiteral<"line">;
|
|
476
|
+
from: z.ZodNumber;
|
|
477
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
478
|
+
}, "strip", z.ZodTypeAny, {
|
|
479
|
+
at: "line";
|
|
480
|
+
from: number;
|
|
481
|
+
to?: number | undefined;
|
|
482
|
+
}, {
|
|
483
|
+
at: "line";
|
|
484
|
+
from: number;
|
|
485
|
+
to?: number | undefined;
|
|
486
|
+
}>]>>;
|
|
487
|
+
quote: z.ZodOptional<z.ZodString>;
|
|
488
|
+
label: z.ZodOptional<z.ZodString>;
|
|
489
|
+
}, "strip", z.ZodTypeAny, {
|
|
490
|
+
ref: string;
|
|
491
|
+
kind: "ref";
|
|
492
|
+
label?: string | undefined;
|
|
493
|
+
locator?: {
|
|
494
|
+
at: "page";
|
|
495
|
+
page: number;
|
|
496
|
+
} | {
|
|
497
|
+
at: "cell";
|
|
498
|
+
row: number;
|
|
499
|
+
col: string | number;
|
|
500
|
+
sheet?: string | undefined;
|
|
501
|
+
} | {
|
|
502
|
+
at: "line";
|
|
503
|
+
from: number;
|
|
504
|
+
to?: number | undefined;
|
|
505
|
+
} | undefined;
|
|
506
|
+
quote?: string | undefined;
|
|
507
|
+
}, {
|
|
508
|
+
ref: string;
|
|
509
|
+
kind: "ref";
|
|
510
|
+
label?: string | undefined;
|
|
511
|
+
locator?: {
|
|
512
|
+
at: "page";
|
|
513
|
+
page: number;
|
|
514
|
+
} | {
|
|
515
|
+
at: "cell";
|
|
516
|
+
row: number;
|
|
517
|
+
col: string | number;
|
|
518
|
+
sheet?: string | undefined;
|
|
519
|
+
} | {
|
|
520
|
+
at: "line";
|
|
521
|
+
from: number;
|
|
522
|
+
to?: number | undefined;
|
|
523
|
+
} | undefined;
|
|
524
|
+
quote?: string | undefined;
|
|
525
|
+
}>, z.ZodObject<{
|
|
526
|
+
kind: z.ZodLiteral<"url">;
|
|
527
|
+
url: z.ZodString;
|
|
528
|
+
quote: z.ZodOptional<z.ZodString>;
|
|
529
|
+
title: z.ZodOptional<z.ZodString>;
|
|
530
|
+
}, "strip", z.ZodTypeAny, {
|
|
531
|
+
url: string;
|
|
532
|
+
kind: "url";
|
|
533
|
+
quote?: string | undefined;
|
|
534
|
+
title?: string | undefined;
|
|
535
|
+
}, {
|
|
536
|
+
url: string;
|
|
537
|
+
kind: "url";
|
|
538
|
+
quote?: string | undefined;
|
|
539
|
+
title?: string | undefined;
|
|
540
|
+
}>]>, "many">;
|
|
541
|
+
label: z.ZodOptional<z.ZodString>;
|
|
542
|
+
}, "strip", z.ZodTypeAny, {
|
|
543
|
+
kind: "derived";
|
|
544
|
+
inputs: ({
|
|
545
|
+
ref: string;
|
|
546
|
+
kind: "ref";
|
|
547
|
+
label?: string | undefined;
|
|
548
|
+
locator?: {
|
|
549
|
+
at: "page";
|
|
550
|
+
page: number;
|
|
551
|
+
} | {
|
|
552
|
+
at: "cell";
|
|
553
|
+
row: number;
|
|
554
|
+
col: string | number;
|
|
555
|
+
sheet?: string | undefined;
|
|
556
|
+
} | {
|
|
557
|
+
at: "line";
|
|
558
|
+
from: number;
|
|
559
|
+
to?: number | undefined;
|
|
560
|
+
} | undefined;
|
|
561
|
+
quote?: string | undefined;
|
|
562
|
+
} | {
|
|
563
|
+
url: string;
|
|
564
|
+
kind: "url";
|
|
565
|
+
quote?: string | undefined;
|
|
566
|
+
title?: string | undefined;
|
|
567
|
+
})[];
|
|
568
|
+
expression?: string | undefined;
|
|
569
|
+
label?: string | undefined;
|
|
570
|
+
}, {
|
|
571
|
+
kind: "derived";
|
|
572
|
+
inputs: ({
|
|
573
|
+
ref: string;
|
|
574
|
+
kind: "ref";
|
|
575
|
+
label?: string | undefined;
|
|
576
|
+
locator?: {
|
|
577
|
+
at: "page";
|
|
578
|
+
page: number;
|
|
579
|
+
} | {
|
|
580
|
+
at: "cell";
|
|
581
|
+
row: number;
|
|
582
|
+
col: string | number;
|
|
583
|
+
sheet?: string | undefined;
|
|
584
|
+
} | {
|
|
585
|
+
at: "line";
|
|
586
|
+
from: number;
|
|
587
|
+
to?: number | undefined;
|
|
588
|
+
} | undefined;
|
|
589
|
+
quote?: string | undefined;
|
|
590
|
+
} | {
|
|
591
|
+
url: string;
|
|
592
|
+
kind: "url";
|
|
593
|
+
quote?: string | undefined;
|
|
594
|
+
title?: string | undefined;
|
|
595
|
+
})[];
|
|
596
|
+
expression?: string | undefined;
|
|
597
|
+
label?: string | undefined;
|
|
87
598
|
}>]>;
|
|
88
599
|
export type CitationRef = z.infer<typeof CitationRefSchema>;
|
|
89
600
|
export type RefCitation = z.infer<typeof RefCitationSchema>;
|
|
90
601
|
export type UrlCitation = z.infer<typeof UrlCitationSchema>;
|
|
602
|
+
export type DerivedCitation = z.infer<typeof DerivedCitationSchema>;
|
|
603
|
+
/** An input to a derived citation — anything directly citable. */
|
|
604
|
+
export type SourceCitation = RefCitation | UrlCitation;
|
|
91
605
|
/**
|
|
92
606
|
* The `citation` half of a cited agent response — a structural mirror of `value`
|
|
93
607
|
* whose leaves are `CitationRef[]`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citation-ref.d.ts","sourceRoot":"","sources":["../../src/common/citation-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB
|
|
1
|
+
{"version":3,"file":"citation-ref.d.ts","sourceRoot":"","sources":["../../src/common/citation-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgBxB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,C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GASG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;AAElC;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAM5D,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,WAAW,CAUlE;AAED,+EAA+E;AAC/E,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,WAAW,EAAE,CAEzE;AAED;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,mDAAoD,CAAC"}
|
|
@@ -9,7 +9,7 @@ import { zodToJsonSchemaRecord } from '../util/schema-convert.js';
|
|
|
9
9
|
* execution time and travels *with the output data* — `output.response.citation`,
|
|
10
10
|
* a structural mirror of `output.response.value`.
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
* Three kinds — everything a model can honestly say about where a value came from:
|
|
13
13
|
*
|
|
14
14
|
* - `ref` — a path the agent was explicitly shown (the `[source: ...]` labels the
|
|
15
15
|
* agent step injects around resolved `{{refs}}`). An agent can never emit an
|
|
@@ -17,26 +17,66 @@ import { zodToJsonSchemaRecord } from '../util/schema-convert.js';
|
|
|
17
17
|
* to know. Turning a `ref` into an openable document happens in the UI, which
|
|
18
18
|
* alone holds the workflow config + step outputs required to walk to the source.
|
|
19
19
|
* - `url` — an external link the agent browsed. Already concrete; nothing to resolve.
|
|
20
|
+
* - `derived` — the value was **computed**, so it appears nowhere to be quoted;
|
|
21
|
+
* its provenance is the inputs it combined and how. See {@link DerivedCitationSchema}.
|
|
20
22
|
*
|
|
21
|
-
* `
|
|
22
|
-
* locate the passage *inside* the
|
|
23
|
-
* from is structural (the workflow knows it); where inside it is data (only
|
|
24
|
-
* agent knows it) — this split is why citations are never inferred by tracing.
|
|
23
|
+
* `locator` / `quote` are the half only the reader of the text can supply: they
|
|
24
|
+
* locate the passage *inside* the source the `ref` names. Which source a value
|
|
25
|
+
* came from is structural (the workflow knows it); where inside it is data (only
|
|
26
|
+
* the agent knows it) — this split is why citations are never inferred by tracing.
|
|
27
|
+
*
|
|
28
|
+
* **There is deliberately no separate "document" vs "value" kind.** Whether a ref
|
|
29
|
+
* resolves to an openable document or to plain step output is a *structural* fact
|
|
30
|
+
* the model cannot know — it saw text, not the workflow graph. Asking it to
|
|
31
|
+
* classify would guarantee confident mis-labelling, and a wrong discriminator is
|
|
32
|
+
* far worse than an omitted optional field. So the emitted union is shaped by what
|
|
33
|
+
* the agent can know; the *resolved* union (UI) splits `doc` from `value`, where
|
|
34
|
+
* the answer is actually available. When there is nothing to locate within, the
|
|
35
|
+
* agent simply omits `locator`/`quote`.
|
|
36
|
+
*/
|
|
37
|
+
/**
|
|
38
|
+
* Where inside a source a value sits.
|
|
39
|
+
*
|
|
40
|
+
* Discriminated rather than a bag of optional fields: a spreadsheet has no pages
|
|
41
|
+
* and a PDF has no rows, so `page?`/`row?`/`line?` side by side would make most
|
|
42
|
+
* combinations meaningless and every consumer defensive.
|
|
43
|
+
*
|
|
44
|
+
* The agent asserts this only because the `[source: …]` label *shows* it — it is
|
|
45
|
+
* copied, never inferred. Anything a label can't show stays out of this union
|
|
46
|
+
* (an image bounding box, for instance, which no reader of text could know).
|
|
25
47
|
*/
|
|
48
|
+
export const LocatorSchema = z.discriminatedUnion('at', [
|
|
49
|
+
z.object({
|
|
50
|
+
at: z.literal('page'),
|
|
51
|
+
page: z.number().int().positive().describe('1-based page'),
|
|
52
|
+
}),
|
|
53
|
+
z.object({
|
|
54
|
+
at: z.literal('cell'),
|
|
55
|
+
sheet: z.string().optional().describe('Sheet name, when the file has several'),
|
|
56
|
+
row: z.number().int().describe('1-based row, header included — as shown in Excel'),
|
|
57
|
+
col: z.union([z.string(), z.number()]).describe('Column letter ("B") or index'),
|
|
58
|
+
}),
|
|
59
|
+
z.object({
|
|
60
|
+
at: z.literal('line'),
|
|
61
|
+
from: z.number().int().describe('1-based first line'),
|
|
62
|
+
to: z.number().int().optional().describe('Last line, for a range'),
|
|
63
|
+
}),
|
|
64
|
+
]);
|
|
26
65
|
export const RefCitationSchema = z.object({
|
|
27
66
|
kind: z.literal('ref'),
|
|
28
67
|
// The `{{ref}}` grammar (see util/variable-ref.ts + engine/resolvePath): dotted
|
|
29
|
-
// throughout, arrays indexed as plain segments (`results.0.
|
|
30
|
-
// bracketed CitationPath grammar (`results[id].
|
|
68
|
+
// throughout, arrays indexed as plain segments (`results.0.source`). NOT the
|
|
69
|
+
// bracketed CitationPath grammar (`results[id].text`), which addresses config.
|
|
70
|
+
//
|
|
71
|
+
// Names the SOURCE, not the text: `labelSources` surfaces the owning document
|
|
72
|
+
// when there is one, so a cited passage points at the document it lives in
|
|
73
|
+
// rather than at an internal text path. That keeps citations decoupled from a
|
|
74
|
+
// producer's output shape, and means the document is a direct lookup rather
|
|
75
|
+
// than something reconstructed by climbing the tree.
|
|
31
76
|
ref: z
|
|
32
77
|
.string()
|
|
33
|
-
.describe('Path to the cited source, e.g. "steps.ocr.output.results.0.
|
|
34
|
-
|
|
35
|
-
.number()
|
|
36
|
-
.int()
|
|
37
|
-
.positive()
|
|
38
|
-
.optional()
|
|
39
|
-
.describe('1-based page within the resolved document'),
|
|
78
|
+
.describe('Path to the cited source, e.g. "steps.ocr.output.results.0.source"'),
|
|
79
|
+
locator: LocatorSchema.optional().describe('Where inside that source the value sits'),
|
|
40
80
|
quote: z
|
|
41
81
|
.string()
|
|
42
82
|
.optional()
|
|
@@ -49,11 +89,56 @@ export const RefCitationSchema = z.object({
|
|
|
49
89
|
export const UrlCitationSchema = z.object({
|
|
50
90
|
kind: z.literal('url'),
|
|
51
91
|
url: z.string().describe('External source — http(s) only'),
|
|
92
|
+
quote: z.string().optional().describe('Exact text quoted from the page'),
|
|
52
93
|
title: z.string().optional().describe('Short title shown instead of the bare URL'),
|
|
53
94
|
});
|
|
95
|
+
/**
|
|
96
|
+
* A value the agent **computed** rather than read — a total, a ratio, a growth
|
|
97
|
+
* rate. It appears nowhere in the source, so there is no passage to quote and no
|
|
98
|
+
* page to open; its provenance is *these inputs, combined this way*.
|
|
99
|
+
*
|
|
100
|
+
* This is a distinct kind rather than "several citations on one value" because
|
|
101
|
+
* the two mean opposite things. Two citations on a name are **corroboration** —
|
|
102
|
+
* either alone still supports it. Two inputs to a subtraction are **required** —
|
|
103
|
+
* if one is wrong, the value is wrong. Rendering them identically would hide that.
|
|
104
|
+
*
|
|
105
|
+
* `inputs` is deliberately only one level deep (an input can't itself be
|
|
106
|
+
* `derived`): it keeps every union member a plain `ZodObject`, which is what
|
|
107
|
+
* `z.discriminatedUnion` requires — a recursive member would force `z.union` plus
|
|
108
|
+
* lazy schemas for no real gain, since a chain of derivations is already handled
|
|
109
|
+
* by resolving *through* the upstream agent's own citation.
|
|
110
|
+
*/
|
|
111
|
+
export const DerivedCitationSchema = z.object({
|
|
112
|
+
kind: z.literal('derived'),
|
|
113
|
+
expression: z
|
|
114
|
+
.string()
|
|
115
|
+
.optional()
|
|
116
|
+
.describe('Arithmetic over the inputs, referenced positionally: "(#2 - #1) / #1". '
|
|
117
|
+
+ 'Only + - * / ( ) and numbers — no names or function calls, so it can be '
|
|
118
|
+
+ 'recomputed and verified.'),
|
|
119
|
+
// Validated all-or-nothing, unlike a list of plain citations where a malformed
|
|
120
|
+
// entry is dropped and the rest kept. That is a correctness requirement, not
|
|
121
|
+
// strictness: `expression` addresses inputs *by position*, so silently dropping
|
|
122
|
+
// a bad one shifts every later index and the recomputation would quietly
|
|
123
|
+
// evaluate something different. An unparseable derivation must fail whole.
|
|
124
|
+
inputs: z
|
|
125
|
+
.array(z.discriminatedUnion('kind', [RefCitationSchema, UrlCitationSchema]))
|
|
126
|
+
.min(1)
|
|
127
|
+
.describe('The values that were combined, in the order `#1`, `#2`, … refer to'),
|
|
128
|
+
// The prompt asks the agent to always supply this (an expression like
|
|
129
|
+
// `(#1+#2+#3)/(#4+#5)` is meaningless without a name), but it stays schema-optional
|
|
130
|
+
// so a derivation is never dropped for lacking it — the UI falls back to the
|
|
131
|
+
// expression. Hard-enforcement (required + sanitize backfill) is a later step.
|
|
132
|
+
label: z
|
|
133
|
+
.string()
|
|
134
|
+
.optional()
|
|
135
|
+
.describe('Plain-language name of what the value represents — e.g. "Debt Service '
|
|
136
|
+
+ 'Coverage Ratio" — so a reader understands what the expression computes.'),
|
|
137
|
+
});
|
|
54
138
|
export const CitationRefSchema = z.discriminatedUnion('kind', [
|
|
55
139
|
RefCitationSchema,
|
|
56
140
|
UrlCitationSchema,
|
|
141
|
+
DerivedCitationSchema,
|
|
57
142
|
]);
|
|
58
143
|
/**
|
|
59
144
|
* JSON Schema for one CitationRef — DERIVED from the Zod members (the single
|
|
@@ -63,6 +148,7 @@ export const CITATION_REF_JSON_SCHEMA = {
|
|
|
63
148
|
oneOf: [
|
|
64
149
|
zodToJsonSchemaRecord(RefCitationSchema),
|
|
65
150
|
zodToJsonSchemaRecord(UrlCitationSchema),
|
|
151
|
+
zodToJsonSchemaRecord(DerivedCitationSchema),
|
|
66
152
|
],
|
|
67
153
|
};
|
|
68
154
|
/**
|
|
@@ -81,6 +167,11 @@ export function isCitationRef(value) {
|
|
|
81
167
|
return typeof v['ref'] === 'string';
|
|
82
168
|
if (v['kind'] === 'url')
|
|
83
169
|
return typeof v['url'] === 'string';
|
|
170
|
+
// Load-bearing: `isCitationRefArray` uses this to tell a citation *leaf* from a
|
|
171
|
+
// mirror *branch*. Omit `derived` here and a computed value's citation would be
|
|
172
|
+
// walked past as if it were structure, and never render.
|
|
173
|
+
if (v['kind'] === 'derived')
|
|
174
|
+
return Array.isArray(v['inputs']);
|
|
84
175
|
return false;
|
|
85
176
|
}
|
|
86
177
|
/** Is `value` a citation *leaf* — a non-empty array of {@link CitationRef}? */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citation-ref.js","sourceRoot":"","sources":["../../src/common/citation-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC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7D,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,KAAK;QAAE,OAAO,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,QAAQ,CAAC;IAC7D,gFAAgF;IAChF,gFAAgF;IAChF,yDAAyD;IACzD,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/D,OAAO,KAAK,CAAC;AACf,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC/C,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;AAChF,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAU,CAAC"}
|
package/dist/common/index.d.ts
CHANGED
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
*/
|
|
18
18
|
export type { Attachment } from './attachment.js';
|
|
19
19
|
export { AttachmentSchema, ATTACHMENT_FORMAT, ATTACHMENT_JSON_SCHEMA, ATTACHMENT_ARRAY_JSON_SCHEMA, markAttachmentFields, isAttachment, mimeAccepted, attachmentProperty, } from './attachment.js';
|
|
20
|
-
export type { CitationRef, RefCitation, UrlCitation, CitationMap, } from './citation-ref.js';
|
|
21
|
-
export { CitationRefSchema, RefCitationSchema, UrlCitationSchema, CITATION_REF_JSON_SCHEMA, CITATION_DIRECTIVE_ATTRS, isCitationRef, isCitationRefArray, } from './citation-ref.js';
|
|
20
|
+
export type { CitationRef, Locator, RefCitation, UrlCitation, DerivedCitation, SourceCitation, CitationMap, } from './citation-ref.js';
|
|
21
|
+
export { CitationRefSchema, LocatorSchema, RefCitationSchema, UrlCitationSchema, DerivedCitationSchema, CITATION_REF_JSON_SCHEMA, CITATION_DIRECTIVE_ATTRS, isCitationRef, isCitationRefArray, } from './citation-ref.js';
|
|
22
22
|
export type { PayloadError } from './validate-payload.js';
|
|
23
23
|
export { validateTriggerPayload } from './validate-payload.js';
|
|
24
24
|
export type { ResumePayload, ResumeAttachment, ResumeAction, } from './resume-payload.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,4BAA4B,EAC5B,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,GACZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACxB,wBAAwB,EACxB,aAAa,EACb,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,YAAY,EACV,aAAa,EACb,gBAAgB,EAChB,YAAY,GACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,YAAY,EACZ,WAAW,EACX,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,4BAA4B,EAC5B,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,WAAW,EACX,OAAO,EACP,WAAW,EACX,WAAW,EACX,eAAe,EACf,cAAc,EACd,WAAW,GACZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,aAAa,EACb,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,YAAY,EACV,aAAa,EACb,gBAAgB,EAChB,YAAY,GACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,YAAY,EACZ,WAAW,EACX,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/common/index.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* browser bundle.
|
|
17
17
|
*/
|
|
18
18
|
export { AttachmentSchema, ATTACHMENT_FORMAT, ATTACHMENT_JSON_SCHEMA, ATTACHMENT_ARRAY_JSON_SCHEMA, markAttachmentFields, isAttachment, mimeAccepted, attachmentProperty, } from './attachment.js';
|
|
19
|
-
export { CitationRefSchema, RefCitationSchema, UrlCitationSchema, CITATION_REF_JSON_SCHEMA, CITATION_DIRECTIVE_ATTRS, isCitationRef, isCitationRefArray, } from './citation-ref.js';
|
|
19
|
+
export { CitationRefSchema, LocatorSchema, RefCitationSchema, UrlCitationSchema, DerivedCitationSchema, CITATION_REF_JSON_SCHEMA, CITATION_DIRECTIVE_ATTRS, isCitationRef, isCitationRefArray, } from './citation-ref.js';
|
|
20
20
|
export { validateTriggerPayload } from './validate-payload.js';
|
|
21
21
|
export { isExecutable, extensionOf, BLOCKED_EXECUTABLE_MIME_TYPES, BLOCKED_EXECUTABLE_EXTENSIONS, } from './executable-check.js';
|
|
22
22
|
// Node-path addressing for step records — pure string utilities (no Node deps),
|
package/dist/common/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,4BAA4B,EAC5B,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,4BAA4B,EAC5B,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AAUzB,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,aAAa,EACb,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAM/D,OAAO,EACL,YAAY,EACZ,WAAW,EACX,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,uBAAuB,CAAC;AAC/B,gFAAgF;AAChF,kFAAkF;AAClF,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ export type { OperatorDescriptor, StepType, TriggerType, StepCategory, Validatio
|
|
|
37
37
|
export { VARIABLE_REF_REGEX, VARIABLE_REF_DESCRIPTION_PREFIX, tokenize, isPureRef, extractRefPath, collectRefs, parseRef, findStepsReferencing, } from './util/variable-ref.js';
|
|
38
38
|
export type { VariableRefToken, FoundRef, ParsedRef } from './util/variable-ref.js';
|
|
39
39
|
export { ensureCitationPath, tryCitationPath, parseCitationPath, resolveCitationPath, } from './util/citation-path.js';
|
|
40
|
-
export type { Attachment, CitationRef, RefCitation, UrlCitation, CitationMap, ResumePayload, ResumeAttachment, ResumeAction, } from './common/index.js';
|
|
41
|
-
export { isExecutable, extensionOf, BLOCKED_EXECUTABLE_MIME_TYPES, BLOCKED_EXECUTABLE_EXTENSIONS, AttachmentSchema, CitationRefSchema, CITATION_REF_JSON_SCHEMA, CITATION_DIRECTIVE_ATTRS, isCitationRef, isCitationRefArray, } from './common/index.js';
|
|
40
|
+
export type { Attachment, CitationRef, Locator, RefCitation, UrlCitation, DerivedCitation, SourceCitation, CitationMap, ResumePayload, ResumeAttachment, ResumeAction, } from './common/index.js';
|
|
41
|
+
export { isExecutable, extensionOf, BLOCKED_EXECUTABLE_MIME_TYPES, BLOCKED_EXECUTABLE_EXTENSIONS, AttachmentSchema, CitationRefSchema, LocatorSchema, DerivedCitationSchema, CITATION_REF_JSON_SCHEMA, CITATION_DIRECTIVE_ATTRS, isCitationRef, isCitationRefArray, } from './common/index.js';
|
|
42
42
|
export { zodToJsonSchemaRecord } from './util/schema-convert.js';
|
|
43
43
|
export { TYPE_KINDS, kindsCompatible } from './util/type-compat.js';
|
|
44
44
|
export type { TypeKind } from './util/type-compat.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EA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AAqB,CAAC;AACnD,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,YAAY,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACb,YAAY,EACZ,eAAe,GAChB,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -44,7 +44,7 @@ WorkflowVariableSchema, VariableKeySchema, projectVariables, varsJsonSchema, } f
|
|
|
44
44
|
// ─── Util ───
|
|
45
45
|
export { VARIABLE_REF_REGEX, VARIABLE_REF_DESCRIPTION_PREFIX, tokenize, isPureRef, extractRefPath, collectRefs, parseRef, findStepsReferencing, } from './util/variable-ref.js';
|
|
46
46
|
export { ensureCitationPath, tryCitationPath, parseCitationPath, resolveCitationPath, } from './util/citation-path.js';
|
|
47
|
-
export { isExecutable, extensionOf, BLOCKED_EXECUTABLE_MIME_TYPES, BLOCKED_EXECUTABLE_EXTENSIONS, AttachmentSchema, CitationRefSchema, CITATION_REF_JSON_SCHEMA, CITATION_DIRECTIVE_ATTRS, isCitationRef, isCitationRefArray, } from './common/index.js';
|
|
47
|
+
export { isExecutable, extensionOf, BLOCKED_EXECUTABLE_MIME_TYPES, BLOCKED_EXECUTABLE_EXTENSIONS, AttachmentSchema, CitationRefSchema, LocatorSchema, DerivedCitationSchema, CITATION_REF_JSON_SCHEMA, CITATION_DIRECTIVE_ATTRS, isCitationRef, isCitationRefArray, } from './common/index.js';
|
|
48
48
|
export { zodToJsonSchemaRecord } from './util/schema-convert.js';
|
|
49
49
|
// ─── Type Compatibility (shared by picker, validator, runtime) ───
|
|
50
50
|
export { TYPE_KINDS, kindsCompatible } from './util/type-compat.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAE1C,iB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