agentfootprint 9.77.0 → 9.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +189 -0
- package/CLAUDE.md +2 -1
- package/dist/artifacts/recordingArtifact.js +5 -1
- package/dist/artifacts/recordingArtifact.js.map +1 -1
- package/dist/core/Agent.js +50 -0
- package/dist/core/Agent.js.map +1 -1
- package/dist/core/agent/stages/callLLM.js +14 -0
- package/dist/core/agent/stages/callLLM.js.map +1 -1
- package/dist/core/agent/stages/toolCalls.js +107 -0
- package/dist/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/core/runbook/index.js +3 -1
- package/dist/core/runbook/index.js.map +1 -1
- package/dist/core/runbook/recording.js +178 -0
- package/dist/core/runbook/recording.js.map +1 -0
- package/dist/core/runbook/runbookAsTool.js +45 -2
- package/dist/core/runbook/runbookAsTool.js.map +1 -1
- package/dist/core/tools.js +9 -1
- package/dist/core/tools.js.map +1 -1
- package/dist/esm/artifacts/recordingArtifact.d.ts +9 -0
- package/dist/esm/artifacts/recordingArtifact.js +5 -1
- package/dist/esm/artifacts/recordingArtifact.js.map +1 -1
- package/dist/esm/core/Agent.d.ts +7 -0
- package/dist/esm/core/Agent.js +50 -0
- package/dist/esm/core/Agent.js.map +1 -1
- package/dist/esm/core/agent/stages/callLLM.d.ts +11 -0
- package/dist/esm/core/agent/stages/callLLM.js +14 -0
- package/dist/esm/core/agent/stages/callLLM.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls.d.ts +20 -0
- package/dist/esm/core/agent/stages/toolCalls.js +107 -0
- package/dist/esm/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/esm/core/agent/types.d.ts +63 -0
- package/dist/esm/core/runbook/index.d.ts +2 -1
- package/dist/esm/core/runbook/index.js +1 -0
- package/dist/esm/core/runbook/index.js.map +1 -1
- package/dist/esm/core/runbook/recording.d.ts +123 -0
- package/dist/esm/core/runbook/recording.js +172 -0
- package/dist/esm/core/runbook/recording.js.map +1 -0
- package/dist/esm/core/runbook/runbookAsTool.d.ts +5 -1
- package/dist/esm/core/runbook/runbookAsTool.js +45 -2
- package/dist/esm/core/runbook/runbookAsTool.js.map +1 -1
- package/dist/esm/core/runbook/types.d.ts +88 -0
- package/dist/esm/core/tools.d.ts +63 -0
- package/dist/esm/core/tools.js +17 -0
- package/dist/esm/core/tools.js.map +1 -1
- package/dist/esm/index.d.ts +3 -1
- package/dist/esm/index.js +17 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/integrity/column-types/check.d.ts +156 -0
- package/dist/esm/integrity/column-types/check.js +363 -0
- package/dist/esm/integrity/column-types/check.js.map +1 -0
- package/dist/esm/integrity/column-types/types.d.ts +121 -0
- package/dist/esm/integrity/column-types/types.js +107 -0
- package/dist/esm/integrity/column-types/types.js.map +1 -0
- package/dist/esm/integrity/disposition/lifecycle.d.ts +16 -1
- package/dist/esm/integrity/disposition/lifecycle.js +30 -1
- package/dist/esm/integrity/disposition/lifecycle.js.map +1 -1
- package/dist/esm/integrity/finding/types.d.ts +14 -2
- package/dist/esm/integrity/finding/types.js.map +1 -1
- package/dist/esm/lib/mcp/toolExtras.d.ts +17 -2
- package/dist/esm/lib/mcp/toolExtras.js +5 -2
- package/dist/esm/lib/mcp/toolExtras.js.map +1 -1
- package/dist/esm/lib/trace-toolpack/traceToolpack.js +2 -0
- package/dist/esm/lib/trace-toolpack/traceToolpack.js.map +1 -1
- package/dist/index.js +23 -3
- package/dist/index.js.map +1 -1
- package/dist/integrity/column-types/check.js +368 -0
- package/dist/integrity/column-types/check.js.map +1 -0
- package/dist/integrity/column-types/types.js +112 -0
- package/dist/integrity/column-types/types.js.map +1 -0
- package/dist/integrity/disposition/lifecycle.js +30 -1
- package/dist/integrity/disposition/lifecycle.js.map +1 -1
- package/dist/integrity/finding/types.js.map +1 -1
- package/dist/lib/mcp/toolExtras.js +4 -1
- package/dist/lib/mcp/toolExtras.js.map +1 -1
- package/dist/lib/trace-toolpack/traceToolpack.js +2 -0
- package/dist/lib/trace-toolpack/traceToolpack.js.map +1 -1
- package/dist/types/artifacts/recordingArtifact.d.ts +9 -0
- package/dist/types/artifacts/recordingArtifact.d.ts.map +1 -1
- package/dist/types/core/Agent.d.ts +7 -0
- package/dist/types/core/Agent.d.ts.map +1 -1
- package/dist/types/core/agent/stages/callLLM.d.ts +11 -0
- package/dist/types/core/agent/stages/callLLM.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls.d.ts +20 -0
- package/dist/types/core/agent/stages/toolCalls.d.ts.map +1 -1
- package/dist/types/core/agent/types.d.ts +63 -0
- package/dist/types/core/agent/types.d.ts.map +1 -1
- package/dist/types/core/runbook/index.d.ts +2 -1
- package/dist/types/core/runbook/index.d.ts.map +1 -1
- package/dist/types/core/runbook/recording.d.ts +124 -0
- package/dist/types/core/runbook/recording.d.ts.map +1 -0
- package/dist/types/core/runbook/runbookAsTool.d.ts +5 -1
- package/dist/types/core/runbook/runbookAsTool.d.ts.map +1 -1
- package/dist/types/core/runbook/types.d.ts +88 -0
- package/dist/types/core/runbook/types.d.ts.map +1 -1
- package/dist/types/core/tools.d.ts +63 -0
- package/dist/types/core/tools.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/integrity/column-types/check.d.ts +157 -0
- package/dist/types/integrity/column-types/check.d.ts.map +1 -0
- package/dist/types/integrity/column-types/types.d.ts +122 -0
- package/dist/types/integrity/column-types/types.d.ts.map +1 -0
- package/dist/types/integrity/disposition/lifecycle.d.ts +16 -1
- package/dist/types/integrity/disposition/lifecycle.d.ts.map +1 -1
- package/dist/types/integrity/finding/types.d.ts +14 -2
- package/dist/types/integrity/finding/types.d.ts.map +1 -1
- package/dist/types/lib/mcp/toolExtras.d.ts +17 -2
- package/dist/types/lib/mcp/toolExtras.d.ts.map +1 -1
- package/dist/types/lib/trace-toolpack/traceToolpack.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -69,6 +69,70 @@ export interface RunbookWalkOptions {
|
|
|
69
69
|
/** Row cap on the minted walk (default 500). When the full walk does not
|
|
70
70
|
* fit, the CONTROL FLOW survives — see `walk.ts` for the projection law. */
|
|
71
71
|
readonly cap?: number;
|
|
72
|
+
/**
|
|
73
|
+
* ALSO file the inner chart's own RECORDING (9.79.0) — `{ snapshot, events,
|
|
74
|
+
* structure }`, the shape `observeRecording()` mounts — under kind
|
|
75
|
+
* `'recording/run'`, and put its ref on the spine as
|
|
76
|
+
* `result.walk.recording_ref`.
|
|
77
|
+
*
|
|
78
|
+
* `true` for the defaults, or `{ label, maxBytes }` to set them yourself.
|
|
79
|
+
*
|
|
80
|
+
* ── Off by default, and why that is not timidity ─────────────────────────
|
|
81
|
+
* The walk is a PROJECTION: eight declared columns per row, values off by
|
|
82
|
+
* construction (`narrative({ includeValues: false })`), so a walk carries
|
|
83
|
+
* sentences about what happened and no payload from it. A recording is the
|
|
84
|
+
* run: the chart's shared state, its whole commit log, and every attached
|
|
85
|
+
* recorder's data. Filing one is a materially bigger promise — it carries
|
|
86
|
+
* whatever the chart WROTE — so it is a thing an operator declares, never a
|
|
87
|
+
* thing a library starts doing to them. Unset, not one extra line runs: no
|
|
88
|
+
* second snapshot is taken, no bytes are measured, no store call is made,
|
|
89
|
+
* and the envelope is byte-identical to 9.78.0.
|
|
90
|
+
*
|
|
91
|
+
* ── What it buys ────────────────────────────────────────────────────────
|
|
92
|
+
* The row projection cannot be drawn. `structure` — the chart's build-time
|
|
93
|
+
* graph — is the only route to a drawable flowchart, and no snapshot carries
|
|
94
|
+
* it; a consumer handed 129 rows can only correctly REFUSE to infer the step
|
|
95
|
+
* graph from them. With the recording filed, the lens/explainable-UI flow
|
|
96
|
+
* components mount the runbook's walk as the flowchart it actually ran.
|
|
97
|
+
*
|
|
98
|
+
* ── Redaction, once, for both ───────────────────────────────────────────
|
|
99
|
+
* The recording's snapshot is read from the REDACTED MIRROR
|
|
100
|
+
* (`getSnapshot({ redact: true })`), so the `redact` policy that scrubs the
|
|
101
|
+
* walk scrubs the recording by the same rule at the same moment. One policy,
|
|
102
|
+
* one meaning, both artifacts.
|
|
103
|
+
*
|
|
104
|
+
* ── Best-effort, and the absence is STATED ──────────────────────────────
|
|
105
|
+
* `mintWalk`'s own law: no store, an over-size refusal, or a failed mint
|
|
106
|
+
* costs the REF, never the answer — and `walk.recording_note` says which,
|
|
107
|
+
* so a reader never has to guess why a ref is missing. With this option
|
|
108
|
+
* unset, the descriptor says nothing about a recording at all.
|
|
109
|
+
*/
|
|
110
|
+
readonly recording?: boolean | RunbookRecordingOptions;
|
|
111
|
+
}
|
|
112
|
+
/** The object form of {@link RunbookWalkOptions.recording}. */
|
|
113
|
+
export interface RunbookRecordingOptions {
|
|
114
|
+
/**
|
|
115
|
+
* The label the minted recording carries, verbatim.
|
|
116
|
+
*
|
|
117
|
+
* Absent, it is `<toolName> recording`. A static label repeats across calls
|
|
118
|
+
* on purpose — what distinguishes two recordings is the ref and
|
|
119
|
+
* `origin.toolCallId`, and a library that decorated the name you chose to
|
|
120
|
+
* make it unique would be overruling you (the `recordingPutInput` law).
|
|
121
|
+
*/
|
|
122
|
+
readonly label?: string;
|
|
123
|
+
/**
|
|
124
|
+
* The size ceiling, in bytes of the serialized recording. Default
|
|
125
|
+
* `DEFAULT_RECORDING_MAX_BYTES` (5,000,000).
|
|
126
|
+
*
|
|
127
|
+
* Over it, the recording is NOT filed and `recording_note` says so with both
|
|
128
|
+
* numbers and this option's name. It is a refusal rather than a truncation
|
|
129
|
+
* on purpose: the walk can be projected because rows are independently
|
|
130
|
+
* meaningful, but `{ snapshot, events, structure }` is not row-shaped —
|
|
131
|
+
* half a commit log under a whole chart is a recording that draws a picture
|
|
132
|
+
* nobody can check, which is worse than a stated absence. A fleet sweep that
|
|
133
|
+
* genuinely needs the whole thing raises this number, deliberately.
|
|
134
|
+
*/
|
|
135
|
+
readonly maxBytes?: number;
|
|
72
136
|
}
|
|
73
137
|
/** Everything `runbookAsTool` accepts. Smallest legal call:
|
|
74
138
|
* `{ name, description, procedure }` — and it still yields the spine. */
|
|
@@ -146,6 +210,30 @@ export interface WalkDescriptor {
|
|
|
146
210
|
/** The human sentence: what the walk is, and (when projected) what the
|
|
147
211
|
* control-flow projection kept and dropped, or why there is no ticket. */
|
|
148
212
|
readonly note: string;
|
|
213
|
+
/**
|
|
214
|
+
* The claim-ticket ref of the inner chart's own `{ snapshot, events,
|
|
215
|
+
* structure }` recording — what the lens/explainable-UI flow components
|
|
216
|
+
* mount to draw this walk as the flowchart it ran. Absent when the mint was
|
|
217
|
+
* refused or failed; `recording_note` says which, and never stays silent.
|
|
218
|
+
*/
|
|
219
|
+
readonly recording_ref?: string;
|
|
220
|
+
/** The recording's artifact kind (`'recording/run'`). Present with
|
|
221
|
+
* `recording_ref`. */
|
|
222
|
+
readonly recording_kind?: string;
|
|
223
|
+
/**
|
|
224
|
+
* The recording's size in bytes. Present on the SUCCESS path (the store's
|
|
225
|
+
* own measurement) AND on the over-size refusal (what it measured, beside
|
|
226
|
+
* the ceiling it broke) — the one number that makes a size decision
|
|
227
|
+
* checkable instead of mysterious.
|
|
228
|
+
*/
|
|
229
|
+
readonly recording_bytes?: number;
|
|
230
|
+
/**
|
|
231
|
+
* The human sentence about the recording: what a filed one CONTAINS beyond
|
|
232
|
+
* the walk's row projection, or the named reason there is no
|
|
233
|
+
* `recording_ref`. Present whenever a recording was asked for — silence is
|
|
234
|
+
* not an allowed answer to "why is the ref missing".
|
|
235
|
+
*/
|
|
236
|
+
readonly recording_note?: string;
|
|
149
237
|
}
|
|
150
238
|
/** One verdict row, as the chart wrote it. The bridge reads rows from the
|
|
151
239
|
* final state's `verdicts` key and requires only `verdict`; every other
|
package/dist/esm/core/tools.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { type ToolWants } from '../artifacts/wants.js';
|
|
|
13
13
|
import type { Credential, CredentialNeed, CredentialProvider } from '../identity/types.js';
|
|
14
14
|
import type { MemoryIdentity } from '../memory/identity/types.js';
|
|
15
15
|
import { type ToolResultClass } from '../lib/semantics/types.js';
|
|
16
|
+
import { assertResultColumns, COLUMN_TYPES, type ColumnDeclaration, type ColumnType, type ToolResultColumns } from '../integrity/column-types/types.js';
|
|
16
17
|
import { type AskComponent } from './askComponent.js';
|
|
17
18
|
import type { CheckInDemand } from './checkin.js';
|
|
18
19
|
import type { TeardownOptions, TeardownScope } from './toolSessions.js';
|
|
@@ -184,6 +185,53 @@ export interface Tool<TArgs = Record<string, unknown>, TResult = unknown> {
|
|
|
184
185
|
* // elsewhere: defineTool({ name: 'chart', wants: { dataset: 'dataset/rows' }, … })
|
|
185
186
|
*/
|
|
186
187
|
readonly resultKind?: string;
|
|
188
|
+
/**
|
|
189
|
+
* WHAT THIS TOOL'S ROWS CONTAIN (9.78.0) — column name to type, the
|
|
190
|
+
* sibling of {@link Tool.resultKind}. `resultKind` says what the result IS;
|
|
191
|
+
* this says what it CONTAINS.
|
|
192
|
+
*
|
|
193
|
+
* THE MEASURED FAILURES, all three the same shape — a number became
|
|
194
|
+
* something else, and nothing noticed at the seam:
|
|
195
|
+
*
|
|
196
|
+
* 1. `str(m.get("logical_unit_number") or "")` — LUN 0 is falsy, so LUN 0
|
|
197
|
+
* was stored as an EMPTY STRING on 2,094 mappings, and a host group
|
|
198
|
+
* missing the LUN an initiator probes first became indistinguishable
|
|
199
|
+
* from one that had it.
|
|
200
|
+
* 2. `round(mib / 1024, 1)` rendered an 8 MiB disk as `0.0 GB`, which
|
|
201
|
+
* reads as NO DISK during a live incident.
|
|
202
|
+
* 3. A family of tools returned their numbers as quoted strings
|
|
203
|
+
* (`"1240"`), which silently blanked every chart, because nothing
|
|
204
|
+
* downstream could tell a measure from a label.
|
|
205
|
+
*
|
|
206
|
+
* Declaring the columns gives the library something to check the rows
|
|
207
|
+
* against. It catches 1 and 3. It cannot catch 2, and says so: the check
|
|
208
|
+
* judges TYPE, never MEANING (see `COLUMN_TYPE_CEILING`, quoted verbatim
|
|
209
|
+
* into every finding).
|
|
210
|
+
*
|
|
211
|
+
* A promise about what it NAMES, never a closed schema — an unlisted column
|
|
212
|
+
* is allowed and never judged. Two spellings: a bare type, or the object
|
|
213
|
+
* form when a column may legitimately hold nothing.
|
|
214
|
+
*
|
|
215
|
+
* ARMED BY TWO HALVES, like every write-seam check: this declaration AND
|
|
216
|
+
* the operator's `checkColumnTypes` dial (default `'off'`). Omitted, or
|
|
217
|
+
* with the dial off → exactly today's bytes; nothing is measured, no
|
|
218
|
+
* finding is filed, and the model reads the rows the tool returned.
|
|
219
|
+
*
|
|
220
|
+
* @example the LUN report that lost its zeroes
|
|
221
|
+
* defineTool({
|
|
222
|
+
* name: 'host_group_mappings',
|
|
223
|
+
* description: 'The LUN mappings of a host group',
|
|
224
|
+
* resultKind: 'dataset/rows',
|
|
225
|
+
* resultColumns: {
|
|
226
|
+
* logical_unit_number: 'number',
|
|
227
|
+
* host_group: 'string',
|
|
228
|
+
* comment: { type: 'string', nullable: true },
|
|
229
|
+
* },
|
|
230
|
+
* inputSchema: { … },
|
|
231
|
+
* execute: async () => [{ logical_unit_number: 0, host_group: 'vdi-a' }],
|
|
232
|
+
* });
|
|
233
|
+
*/
|
|
234
|
+
readonly resultColumns?: ToolResultColumns;
|
|
187
235
|
/**
|
|
188
236
|
* WHO OWNS THIS TOOL (9.60.0) — the identity edge, stamped at the one
|
|
189
237
|
* moment the code demonstrably knows both ends: registration. Before
|
|
@@ -344,6 +392,17 @@ export declare function assertResultCeiling(toolName: string, ceiling: ToolResul
|
|
|
344
392
|
* assembling `Tool` objects by hand.
|
|
345
393
|
*/
|
|
346
394
|
export declare function assertResultClass(toolName: string, resultClass: ToolResultClass | undefined): void;
|
|
395
|
+
/**
|
|
396
|
+
* The COLUMN-TYPE CONTRACT's rule and vocabulary, re-exported HERE.
|
|
397
|
+
*
|
|
398
|
+
* They are DEFINED in `src/integrity/column-types/types.ts`, because
|
|
399
|
+
* `src/integrity/` is a strict leaf that imports nothing outside itself and
|
|
400
|
+
* the check has to be able to read the words. They are re-exported here
|
|
401
|
+
* because `defineTool` and the MCP ingest both reach for their rules through
|
|
402
|
+
* `core/tools.ts` — one door for every declaration's rule, and no second copy
|
|
403
|
+
* of any of them anywhere.
|
|
404
|
+
*/
|
|
405
|
+
export { assertResultColumns, COLUMN_TYPES, type ColumnDeclaration, type ColumnType, type ToolResultColumns, };
|
|
347
406
|
/**
|
|
348
407
|
* Refuse a `resultKind` that could never be redeemed, at definition time —
|
|
349
408
|
* naming the tool and the fix (the `assertResultCeiling` / `assertResultClass`
|
|
@@ -676,6 +735,10 @@ export interface DefineToolOptions<TArgs, TResult> {
|
|
|
676
735
|
* vocabulary (see {@link Tool.resultKind}). Omitted →
|
|
677
736
|
* `tool-result/<name>`, byte-identical. */
|
|
678
737
|
readonly resultKind?: string;
|
|
738
|
+
/** What this tool's ROWS contain — column name to type (see
|
|
739
|
+
* {@link Tool.resultColumns}). Needs the `checkColumnTypes` dial too.
|
|
740
|
+
* Omitted → nothing measured, byte-identical. */
|
|
741
|
+
readonly resultColumns?: ToolResultColumns;
|
|
679
742
|
/** The stamped identity edge — see {@link Tool.owner}. */
|
|
680
743
|
readonly owner?: ToolOwner;
|
|
681
744
|
/** The declared argument grounds — see {@link Tool.argumentsFrom}. */
|
package/dist/esm/core/tools.js
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
import { isDevMode } from 'footprintjs';
|
|
10
10
|
import { assertToolWants } from '../artifacts/wants.js';
|
|
11
11
|
import { RESULT_CLASSES } from '../lib/semantics/types.js';
|
|
12
|
+
import { assertResultColumns, COLUMN_TYPES, } from '../integrity/column-types/types.js';
|
|
12
13
|
import { assertAskComponent } from './askComponent.js';
|
|
13
14
|
/**
|
|
14
15
|
* Refuse a `resultCeiling` this library cannot honor, at definition time —
|
|
@@ -60,6 +61,17 @@ export function assertResultClass(toolName, resultClass) {
|
|
|
60
61
|
`still apply to any result carrying the af_semantics marker).`);
|
|
61
62
|
}
|
|
62
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* The COLUMN-TYPE CONTRACT's rule and vocabulary, re-exported HERE.
|
|
66
|
+
*
|
|
67
|
+
* They are DEFINED in `src/integrity/column-types/types.ts`, because
|
|
68
|
+
* `src/integrity/` is a strict leaf that imports nothing outside itself and
|
|
69
|
+
* the check has to be able to read the words. They are re-exported here
|
|
70
|
+
* because `defineTool` and the MCP ingest both reach for their rules through
|
|
71
|
+
* `core/tools.ts` — one door for every declaration's rule, and no second copy
|
|
72
|
+
* of any of them anywhere.
|
|
73
|
+
*/
|
|
74
|
+
export { assertResultColumns, COLUMN_TYPES, };
|
|
63
75
|
/**
|
|
64
76
|
* Refuse a `resultKind` that could never be redeemed, at definition time —
|
|
65
77
|
* naming the tool and the fix (the `assertResultCeiling` / `assertResultClass`
|
|
@@ -270,6 +282,10 @@ export function defineTool(options) {
|
|
|
270
282
|
// A placed-result kind nothing could want fails HERE too — not at the first
|
|
271
283
|
// oversized result of the first run with placement configured.
|
|
272
284
|
assertResultKind(options.name, options.resultKind);
|
|
285
|
+
// A column type this library has no rule for fails HERE too — not at the
|
|
286
|
+
// first rowset of the first armed run, where the symptom would be a check
|
|
287
|
+
// that quietly judges nothing.
|
|
288
|
+
assertResultColumns(options.name, options.resultColumns);
|
|
273
289
|
// A decision component for a gate that never fires is configuration that
|
|
274
290
|
// lies — configured-and-inert looks exactly like configured-and-working
|
|
275
291
|
// (the `.checkIn({ scorer })`-with-minimal-evidence precedent). And a
|
|
@@ -319,6 +335,7 @@ export function defineTool(options) {
|
|
|
319
335
|
...(options.resultCeiling !== undefined && { resultCeiling: options.resultCeiling }),
|
|
320
336
|
...(options.resultClass !== undefined && { resultClass: options.resultClass }),
|
|
321
337
|
...(options.resultKind !== undefined && { resultKind: options.resultKind }),
|
|
338
|
+
...(options.resultColumns !== undefined && { resultColumns: options.resultColumns }),
|
|
322
339
|
...(options.owner !== undefined && { owner: options.owner }),
|
|
323
340
|
...(options.argumentsFrom !== undefined && { argumentsFrom: options.argumentsFrom }),
|
|
324
341
|
...(options.composedOf !== undefined && { composedOf: options.composedOf }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/core/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,OAAO,EAAE,eAAe,EAAkB,MAAM,uBAAuB,CAAC;AAGxE,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAqB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/core/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,OAAO,EAAE,eAAe,EAAkB,MAAM,uBAAuB,CAAC;AAGxE,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;AACjF,OAAO,EACL,mBAAmB,EACnB,YAAY,GAIb,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAqB,MAAM,mBAAmB,CAAC;AA+W1E;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CACjC,QAAgB,EAChB,OAAsC;IAEtC,IAAI,OAAO,KAAK,SAAS;QAAE,OAAO;IAClC,wEAAwE;IACxE,sEAAsE;IACtE,2EAA2E;IAC3E,4DAA4D;IAC5D,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,CAAC,OAAO,IAAI,EAAE,CAA+B,CAAC;IAC7E,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAK,QAAmB,IAAI,CAAC,EAAE,CAAC;QAC3F,MAAM,IAAI,KAAK,CACb,qBAAqB,QAAQ,uCAAuC,MAAM,CAAC,QAAQ,CAAC,I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AC,aAAa,EAAE,CAAC;QACpF,GAAG,CAAC,OAAO,CAAC,WAAW,KAAK,SAAS,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC;QAC9E,GAAG,CAAC,OAAO,CAAC,UAAU,KAAK,SAAS,IAAI,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC;QAC3E,GAAG,CAAC,OAAO,CAAC,aAAa,KAAK,SAAS,IAAI,EAAE,aAAa,EAAE,OAAO,CAAC,aAAa,EAAE,CAAC;QACpF,GAAG,CAAC,OAAO,CAAC,KAAK,KAAK,SAAS,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;QAC5D,GAAG,CAAC,OAAO,CAAC,aAAa,KAAK,SAAS,IAAI,EAAE,aAAa,EAAE,OAAO,CAAC,aAAa,EAAE,CAAC;QACpF,GAAG,CAAC,OAAO,CAAC,UAAU,KAAK,SAAS,IAAI,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC;QAC3E,GAAG,CAAC,OAAO,CAAC,KAAK,KAAK,SAAS,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;QAC5D,GAAG,CAAC,OAAO,CAAC,YAAY,KAAK,SAAS,IAAI,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,EAAE,CAAC;QACjF,OAAO,EAAE,OAAO,CAAC,OAAO;KACzB,CAAC;AACJ,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -43,6 +43,8 @@ export type { WriteProvenanceMode } from './core/agent/types.js';
|
|
|
43
43
|
export type { ExternalGroundsProvider } from './core/agent/types.js';
|
|
44
44
|
export type { ExternalGround, ExternalGrounding } from './integrity/unsupported-argument/check.js';
|
|
45
45
|
export { EMPTY_LOOKUP_CEILING, type LookupResultReading } from './integrity/empty-lookup/check.js';
|
|
46
|
+
export { COLUMN_TYPE_CEILING, readRowset, type ColumnCheckMode, type ColumnViolation, type RowsetReading, } from './integrity/column-types/check.js';
|
|
47
|
+
export { COLUMN_TYPES, assertResultColumns, type ColumnDeclaration, type ColumnType, type ToolResultColumns, } from './integrity/column-types/types.js';
|
|
46
48
|
export { OutputSchemaError, applyOutputSchema, type OutputSchemaParser, type OutputSchemaOptions, type OutputSchemaStrategy, } from './core/outputSchema.js';
|
|
47
49
|
export { InvalidRunInputError } from './core/runInput.js';
|
|
48
50
|
export { SCHEMA_CHECK_FRAME_PREFIX, SCHEMA_TOOL_NAME, isSchemaCheckMessage, type OutputAttempt, } from './core/agent/outputEnforcement.js';
|
|
@@ -54,7 +56,7 @@ export { browserSessionId, DEFAULT_SESSION_STORAGE_KEY, type BrowserSessionIdOpt
|
|
|
54
56
|
export { ContextWindowExceededError, ERR_CONTEXT_WINDOW_EXCEEDED, isContextWindowExceeded, } from './adapters/llm/contextWindow.js';
|
|
55
57
|
export { NoConversationError, PendingQuestionError, RunInFlightError, } from './core/conversation.js';
|
|
56
58
|
export { flowchartAsTool, type FlowchartAsToolOptions, type FlowchartResultMapper, type FlowchartToolSnapshot, } from './core/flowchartAsTool.js';
|
|
57
|
-
export { absenceSignalOf, DECLINED_VERDICT, DEFAULT_MAX_ROWS, DEFAULT_WALK_CAP, probeDispatch, projectWalk, recordingDispatch, renderVerdictTable, runbookAsTool, RunbookAbsenceSignal, VERDICT_RENDER_NOTE, verdictRowsOf, type InnerCallRecord, type ProjectedWalk, type RecordedDispatch, type RunbookAsToolOptions, type RunbookEnvelope, type RunbookProcedure, type RunbookRules, type RunbookVerdictsOptions, type RunbookWalkOptions, type VerdictRow, type WalkDescriptor, type WalkRow, } from './core/runbook/index.js';
|
|
59
|
+
export { absenceSignalOf, DECLINED_VERDICT, DEFAULT_MAX_ROWS, DEFAULT_RECORDING_MAX_BYTES, DEFAULT_WALK_CAP, probeDispatch, projectWalk, recordingDispatch, renderVerdictTable, runbookAsTool, RunbookAbsenceSignal, VERDICT_RENDER_NOTE, verdictRowsOf, type InnerCallRecord, type ProjectedWalk, type RecordedDispatch, type RunbookAsToolOptions, type RunbookEnvelope, type RunbookProcedure, type RunbookRecordingOptions, type RunbookRules, type RunbookVerdictsOptions, type RunbookWalkOptions, type VerdictRow, type WalkDescriptor, type WalkRow, } from './core/runbook/index.js';
|
|
58
60
|
export type { Tool, ToolExecutionContext, ToolRegistryEntry, DefineToolOptions, ToolDispatch, ToolDispatchCallOptions, ToolResultCeiling, } from './core/tools.js';
|
|
59
61
|
export { defineTool, assertValidToolName, assertResultCeiling, assertResultClass, assertResultKind, assertComposedOf, assertGates, warnIfInvalidToolName, } from './core/tools.js';
|
|
60
62
|
export { explainStatusOnlyNearMiss, readToolResultEnvelope, TOOL_RESULT_STATUSES, type InstructionDeliveryLease, type InstructionLease, type PendingToolTransition, type ProposedEffect, type ProposeTransitionEffect, type ReadToolResultEnvelope, type RequireInstructionEffect, type ToolResultEnvelope, type ToolResultStatus, } from './core/agent/toolEffects.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -160,6 +160,17 @@ export { isTruncatedToolResult } from './core/agent/toolResultCap.js';
|
|
|
160
160
|
// read one owner. `LookupResultReading` is what the library could see of a
|
|
161
161
|
// result — the vocabulary behind a `not-applicable` row.
|
|
162
162
|
export { EMPTY_LOOKUP_CEILING } from './integrity/empty-lookup/check.js';
|
|
163
|
+
// The COLUMN-TYPE CONTRACT (9.78.0) — `Tool.resultColumns` +
|
|
164
|
+
// `AgentOptions.checkColumnTypes`. The CEILING is exported for the same
|
|
165
|
+
// reason `EMPTY_LOOKUP_CEILING` is: it is quoted verbatim into every finding,
|
|
166
|
+
// so a consumer rendering findings recognizes the bound instead of re-wording
|
|
167
|
+
// it, and the docs, the code and the tests read one owner. `RowsetReading` is
|
|
168
|
+
// what the library could see of a result — the vocabulary behind a
|
|
169
|
+
// `not-applicable` row.
|
|
170
|
+
export { COLUMN_TYPE_CEILING, readRowset, } from './integrity/column-types/check.js';
|
|
171
|
+
// The declaration's own vocabulary, so an app assembling `Tool` objects by
|
|
172
|
+
// hand (or typing a config) can name the words the library judges by.
|
|
173
|
+
export { COLUMN_TYPES, assertResultColumns, } from './integrity/column-types/types.js';
|
|
163
174
|
export { OutputSchemaError, applyOutputSchema, } from './core/outputSchema.js';
|
|
164
175
|
// 8.18.0 — the input boundary every runner's `run()` goes through. A bare
|
|
165
176
|
// string IS the message (`run('go')` ≡ `run({ message: 'go' })`); anything
|
|
@@ -205,7 +216,12 @@ export { flowchartAsTool, } from './core/flowchartAsTool.js';
|
|
|
205
216
|
// optional verdict/rowset projection selected by `resultKind: 'verdict/*'`.
|
|
206
217
|
// `flowchartAsTool` stays for compatibility (its `resultMapper` users stay
|
|
207
218
|
// put); new procedures start here.
|
|
208
|
-
export { absenceSignalOf, DECLINED_VERDICT, DEFAULT_MAX_ROWS,
|
|
219
|
+
export { absenceSignalOf, DECLINED_VERDICT, DEFAULT_MAX_ROWS,
|
|
220
|
+
// The chart-recording ceiling (9.79.0) — `walk: { recording: true }` files
|
|
221
|
+
// the inner chart's own `{ snapshot, events, structure }` beside the walk,
|
|
222
|
+
// and a bundle over this many bytes is REFUSED (never truncated) with the
|
|
223
|
+
// reason stated on `walk.recording_note`.
|
|
224
|
+
DEFAULT_RECORDING_MAX_BYTES, DEFAULT_WALK_CAP, probeDispatch, projectWalk, recordingDispatch, renderVerdictTable, runbookAsTool, RunbookAbsenceSignal, VERDICT_RENDER_NOTE, verdictRowsOf, } from './core/runbook/index.js';
|
|
209
225
|
export { defineTool, assertValidToolName, assertResultCeiling, assertResultClass,
|
|
210
226
|
// The placed-result kind (9.70.0) — `Tool.resultKind` lets a tool declare
|
|
211
227
|
// the artifact kind its PLACED result is minted under, so the ticket speaks
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,oEAAoE;AACpE,8DAA8D;AAC9D,uEAAuE;AACvE,kEAAkE;AAClE,sEAA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AACpE,sEAAsE;AACtE,8CAA8C;AAE9C,wEAAwE;AACxE,sEAAsE;AACtE,sEAAsE;AACtE,OAAO,EACL,SAAS,EACT,uBAAuB,EAEvB,cAAc,GAGf,MAAM,oBAAoB,CAAC;AAE5B,yEAAyE;AACzE,0EAA0E;AAC1E,qEAAqE;AACrE,iEAAiE;AACjE,OAAO,EACL,IAAI,GAML,MAAM,6BAA6B,CAAC;AAErC,qEAAqE;AACrE,wEAAwE;AACxE,uEAAuE;AACvE,oEAAoE;AACpE,yDAAyD;AACzD,wEAAwE;AACxE,gDAAgD;AAChD,wEAAwE;AACxE,gEAAgE;AAEhE,wEAAwE;AACxE,wEAAwE;AACxE,uDAAuD;AAEvD,mEAAmE;AACnE,oEAAoE;AACpE,sDAAsD"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* column-types — the tool declared what its rows contain, and the rows say
|
|
3
|
+
* otherwise. Filed at the WRITE seam, at the moment the tool answers.
|
|
4
|
+
*
|
|
5
|
+
* Pattern: pure function over (one declaration, one finished rowset); the
|
|
6
|
+
* SHAPE check, one storey below `empty-lookup` — that one asks
|
|
7
|
+
* whether the answer had any rows, this one asks what is in them.
|
|
8
|
+
* Role: the decidable fragment of "is this rowset the rowset it claims to
|
|
9
|
+
* be?".
|
|
10
|
+
*
|
|
11
|
+
* ── THE MEASURED FAILURES. Three, and they are one shape ────────────────
|
|
12
|
+
*
|
|
13
|
+
* 1. A mapping report wrote `str(m.get("logical_unit_number") or "")`. LUN 0
|
|
14
|
+
* is falsy, so on 2,094 mappings LUN 0 was stored as an EMPTY STRING —
|
|
15
|
+
* and a host group missing the LUN an initiator probes first became
|
|
16
|
+
* indistinguishable from one that had it. The column was numeric; the
|
|
17
|
+
* value was `''`; nothing anywhere disagreed.
|
|
18
|
+
* 2. A capacity view rendered `round(mib / 1024, 1)`, so an 8 MiB disk came
|
|
19
|
+
* out as `0.0 GB` — which reads as NO DISK, i.e. a provisioning failure,
|
|
20
|
+
* during a live desktop-fleet incident.
|
|
21
|
+
* 3. Earlier in the same application, a whole family of tools returned their
|
|
22
|
+
* numbers as quoted strings (`"1240"`). Every chart silently went blank,
|
|
23
|
+
* because nothing downstream could tell a measure from a label.
|
|
24
|
+
*
|
|
25
|
+
* All three are "a number became something else, and nothing noticed at the
|
|
26
|
+
* seam". The library already lets a tool declare what its result IS
|
|
27
|
+
* (`resultKind`, 9.70.0). It did not let a tool declare what its result
|
|
28
|
+
* CONTAINS, so there was nothing for a rowset to be wrong against.
|
|
29
|
+
*
|
|
30
|
+
* ── THE CEILING, and case 2 is the whole argument for stating it ────────
|
|
31
|
+
* This judges TYPE, never MEANING. It can see that a column declared
|
|
32
|
+
* `number` holds a string. It can NEVER see that the string should have been
|
|
33
|
+
* `0`, or that `0.0` should have been `0.0078`. Case 2 above passes this
|
|
34
|
+
* check cleanly — `0.0` is a perfectly good number — and the check says so
|
|
35
|
+
* out loud rather than letting a green row imply otherwise. The ceiling ships
|
|
36
|
+
* as {@link COLUMN_TYPE_CEILING} and is quoted verbatim into every finding,
|
|
37
|
+
* the `EMPTY_LOOKUP_CEILING` law: one owner for the bound, so it cannot drift
|
|
38
|
+
* out of a message and leave a reader believing the library knows more than
|
|
39
|
+
* it does.
|
|
40
|
+
*
|
|
41
|
+
* ── TWO FINDINGS, because the field bug turned on the difference ────────
|
|
42
|
+
* • `column-type-mismatch` — the column is THERE and holds the wrong thing.
|
|
43
|
+
* Cases 1 and 3.
|
|
44
|
+
* • `missing-column` — the column the author declared is in NO row of the
|
|
45
|
+
* result. Nothing to type-check; the promise was broken one level up.
|
|
46
|
+
* Collapsing them would recreate the exact ambiguity the LUN report died of:
|
|
47
|
+
* "the value is not what it should be" and "the value is not there" send a
|
|
48
|
+
* person to two different files, and a checker that says only "something is
|
|
49
|
+
* off with logical_unit_number" has helped with neither.
|
|
50
|
+
*
|
|
51
|
+
* ── DECLARED, NEVER INFERRED ────────────────────────────────────────────
|
|
52
|
+
* A tool is this check's subject only because its author wrote
|
|
53
|
+
* `resultColumns`. Nothing here sniffs a type off the data — sniffing is
|
|
54
|
+
* precisely what the consumers do today, and precisely what produced the
|
|
55
|
+
* failures above: one stray `''` demotes a numeric column to text, and the
|
|
56
|
+
* demotion is silent.
|
|
57
|
+
*
|
|
58
|
+
* ── WHAT IS NOT JUDGED ──────────────────────────────────────────────────
|
|
59
|
+
* See {@link readRowset}. A result is read only when it is an array of plain
|
|
60
|
+
* objects with at least one row. Everything else — prose, a `null`, a bespoke
|
|
61
|
+
* `{ rows: [...] }` wrapper, a claim ticket, AND the zero-row result — is
|
|
62
|
+
* `not-applicable`, filed as a ROW. The zero-row case belongs to the
|
|
63
|
+
* neighbour (`empty-lookup`) and is deliberately not stolen: an empty result
|
|
64
|
+
* has no columns to be wrong about, and filing `missing-column` for every
|
|
65
|
+
* declared column of an empty answer would turn one honest emptiness into a
|
|
66
|
+
* pile of false accusations.
|
|
67
|
+
*/
|
|
68
|
+
import type { Disposition } from '../disposition/types.js';
|
|
69
|
+
import type { ContextError } from '../finding/types.js';
|
|
70
|
+
import { type ColumnType, type ToolResultColumns } from './types.js';
|
|
71
|
+
/**
|
|
72
|
+
* THE CEILING, as one string with one owner.
|
|
73
|
+
*
|
|
74
|
+
* Quoted verbatim into every finding's message, into this folder's README and
|
|
75
|
+
* into the docs page, so the bound cannot drift out of one of them.
|
|
76
|
+
*/
|
|
77
|
+
export declare const COLUMN_TYPE_CEILING: string;
|
|
78
|
+
/** How the boundary was told to act on what this finds. */
|
|
79
|
+
export type ColumnCheckMode = 'warn' | 'enforce';
|
|
80
|
+
/**
|
|
81
|
+
* What the library could read about a finished result: the rows, or nothing.
|
|
82
|
+
*
|
|
83
|
+
* Deliberately thin. The check needs the rows and nothing else, and a reading
|
|
84
|
+
* that carried a verdict would be this file judging in two places.
|
|
85
|
+
*/
|
|
86
|
+
export interface RowsetReading {
|
|
87
|
+
readonly rows: readonly Readonly<Record<string, unknown>>[];
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* READ a finished result as a rowset, or decline to.
|
|
91
|
+
*
|
|
92
|
+
* The one readable shape, and why only this one: an ARRAY OF PLAIN OBJECTS
|
|
93
|
+
* with at least one row. That is what a rowset is on this wire, it is what
|
|
94
|
+
* every consumer named in the docs page already expects, and it is the same
|
|
95
|
+
* `Array.isArray` law the neighbouring check reads by — the two must never
|
|
96
|
+
* disagree about what a rowset is.
|
|
97
|
+
*
|
|
98
|
+
* `undefined` (⇒ `not-applicable`, a ROW) for everything else:
|
|
99
|
+
* • a non-array — prose, a `null`, a `{ rows: [...] }` wrapper, a ticket;
|
|
100
|
+
* • an array holding anything that is not a plain object — a list of
|
|
101
|
+
* strings has no columns, and inventing some is how a checker starts
|
|
102
|
+
* lying;
|
|
103
|
+
* • an array of ZERO rows — an empty answer has no columns to be wrong
|
|
104
|
+
* about, and it is the neighbour's subject, not this one's.
|
|
105
|
+
*/
|
|
106
|
+
export declare function readRowset(value: unknown): RowsetReading | undefined;
|
|
107
|
+
/** One finished call to a tool whose author declared its result's columns. */
|
|
108
|
+
export interface ColumnTypesCall {
|
|
109
|
+
readonly toolName: string;
|
|
110
|
+
/** The provider's id for this call — what the witness points a reader at. */
|
|
111
|
+
readonly toolCallId: string;
|
|
112
|
+
/** `Tool.resultColumns`, exactly as the author wrote it. */
|
|
113
|
+
readonly columns: ToolResultColumns;
|
|
114
|
+
/** What the library could read of the result — `undefined` = not a rowset. */
|
|
115
|
+
readonly reading: RowsetReading | undefined;
|
|
116
|
+
/** What the boundary will do with a finding — carried so the message can
|
|
117
|
+
* say what actually happened rather than guess. */
|
|
118
|
+
readonly mode: ColumnCheckMode;
|
|
119
|
+
}
|
|
120
|
+
/** One declared column the rows disagreed with. */
|
|
121
|
+
export interface ColumnViolation {
|
|
122
|
+
readonly column: string;
|
|
123
|
+
readonly declared: ColumnType;
|
|
124
|
+
/** How many rows hold something that is not the declared type. */
|
|
125
|
+
readonly rows: number;
|
|
126
|
+
/** Total rows read, so a reader can see 3-of-4 rather than a bare 3. */
|
|
127
|
+
readonly ofRows: number;
|
|
128
|
+
/** The first offending value, rendered and clipped — what a person recognizes. */
|
|
129
|
+
readonly sample: string;
|
|
130
|
+
/** What that first offending value actually is (`string`, `null`, `missing`, …). */
|
|
131
|
+
readonly got: string;
|
|
132
|
+
}
|
|
133
|
+
/** One encounter's outcome: the findings, the ledger row, and — under
|
|
134
|
+
* `enforce` — the sentence that replaces the payload. */
|
|
135
|
+
export interface ColumnTypesEncounter {
|
|
136
|
+
readonly findings: readonly ContextError[];
|
|
137
|
+
/** Computed HERE, beside the rules that decide it, so "the library refused
|
|
138
|
+
* to judge this shape" is provable without a live agent. */
|
|
139
|
+
readonly disposition: Disposition;
|
|
140
|
+
/**
|
|
141
|
+
* The teaching refusal, present ONLY under `mode: 'enforce'` with at least
|
|
142
|
+
* one finding. The `applyResultCeiling` idiom, for the same reason: the
|
|
143
|
+
* model reads a sentence that says what was wrong and how to fix it, never
|
|
144
|
+
* a stack trace and never a truncated result that reads as complete.
|
|
145
|
+
*/
|
|
146
|
+
readonly refusal?: string;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Judge one finished call to a tool that declared its result's columns.
|
|
150
|
+
*
|
|
151
|
+
* @param call the call, the declaration, and what the library could read of
|
|
152
|
+
* the result. The caller has already established the tool declared
|
|
153
|
+
* `resultColumns` and that the dial is on; nothing here re-decides arming.
|
|
154
|
+
* @param epoch the run iteration, stamped on every witness.
|
|
155
|
+
*/
|
|
156
|
+
export declare function columnTypesOf(call: ColumnTypesCall, epoch: number): ColumnTypesEncounter;
|