@graphorin/core 0.5.0 → 0.6.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 +98 -1
- package/README.md +6 -6
- package/dist/channels/channels.d.ts +3 -3
- package/dist/channels/channels.d.ts.map +1 -1
- package/dist/channels/channels.js.map +1 -1
- package/dist/channels/directive.d.ts +8 -3
- package/dist/channels/directive.d.ts.map +1 -1
- package/dist/channels/directive.js +8 -3
- package/dist/channels/directive.js.map +1 -1
- package/dist/channels/dispatch.d.ts +9 -1
- package/dist/channels/dispatch.d.ts.map +1 -1
- package/dist/channels/dispatch.js +9 -1
- package/dist/channels/dispatch.js.map +1 -1
- package/dist/channels/durable.d.ts +94 -0
- package/dist/channels/durable.d.ts.map +1 -0
- package/dist/channels/durable.js +106 -0
- package/dist/channels/durable.js.map +1 -0
- package/dist/channels/index.d.ts +2 -1
- package/dist/channels/index.js +2 -1
- package/dist/channels/pause.d.ts +4 -4
- package/dist/channels/pause.d.ts.map +1 -1
- package/dist/channels/pause.js +4 -4
- package/dist/channels/pause.js.map +1 -1
- package/dist/contracts/auth-token-store.d.ts +2 -2
- package/dist/contracts/checkpoint-store.d.ts +41 -5
- package/dist/contracts/checkpoint-store.d.ts.map +1 -1
- package/dist/contracts/checkpoint-store.js +25 -0
- package/dist/contracts/checkpoint-store.js.map +1 -0
- package/dist/contracts/embedder.d.ts +1 -1
- package/dist/contracts/index.d.ts +4 -4
- package/dist/contracts/index.js +2 -1
- package/dist/contracts/local-provider-trust.d.ts +4 -4
- package/dist/contracts/logger.d.ts +1 -1
- package/dist/contracts/logger.js.map +1 -1
- package/dist/contracts/memory-store.d.ts +1 -1
- package/dist/contracts/memory-store.d.ts.map +1 -1
- package/dist/contracts/oauth-server-store.d.ts +1 -1
- package/dist/contracts/preferred-model.d.ts +4 -4
- package/dist/contracts/preferred-model.js.map +1 -1
- package/dist/contracts/provider.d.ts +31 -5
- package/dist/contracts/provider.d.ts.map +1 -1
- package/dist/contracts/reasoning-retention.d.ts +3 -3
- package/dist/contracts/redaction-validator.d.ts +1 -1
- package/dist/contracts/sandbox.d.ts +1 -1
- package/dist/contracts/secret-value.d.ts +1 -1
- package/dist/contracts/secret-value.js.map +1 -1
- package/dist/contracts/secrets-store.d.ts +3 -3
- package/dist/contracts/session-store.d.ts +9 -7
- package/dist/contracts/session-store.d.ts.map +1 -1
- package/dist/contracts/tool.d.ts +20 -7
- package/dist/contracts/tool.d.ts.map +1 -1
- package/dist/contracts/tracer.d.ts +1 -1
- package/dist/contracts/tracer.d.ts.map +1 -1
- package/dist/contracts/tracer.js.map +1 -1
- package/dist/index.d.ts +11 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/types/agent-event.d.ts +24 -10
- package/dist/types/agent-event.d.ts.map +1 -1
- package/dist/types/handoff.d.ts +9 -9
- package/dist/types/index.d.ts +5 -5
- package/dist/types/memory.d.ts +66 -23
- package/dist/types/memory.d.ts.map +1 -1
- package/dist/types/message.d.ts +2 -2
- package/dist/types/message.d.ts.map +1 -1
- package/dist/types/run.d.ts +57 -4
- package/dist/types/run.d.ts.map +1 -1
- package/dist/types/run.js +1 -1
- package/dist/types/run.js.map +1 -1
- package/dist/types/sensitivity.d.ts +3 -3
- package/dist/types/sensitivity.js.map +1 -1
- package/dist/types/stop-condition.d.ts +1 -1
- package/dist/types/stop-condition.js.map +1 -1
- package/dist/types/tool.d.ts +49 -24
- package/dist/types/tool.d.ts.map +1 -1
- package/dist/types/usage.d.ts +25 -1
- package/dist/types/usage.d.ts.map +1 -1
- package/dist/types/usage.js.map +1 -1
- package/dist/types/workflow-event.d.ts +8 -1
- package/dist/types/workflow-event.d.ts.map +1 -1
- package/dist/utils/assert-never.d.ts +1 -1
- package/dist/utils/assert-never.js +1 -1
- package/dist/utils/assert-never.js.map +1 -1
- package/dist/utils/hash.d.ts +9 -7
- package/dist/utils/hash.d.ts.map +1 -1
- package/dist/utils/hash.js +9 -7
- package/dist/utils/hash.js.map +1 -1
- package/dist/utils/validation.d.ts +1 -1
- package/dist/utils/validation.js +1 -1
- package/dist/utils/validation.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { HandoffRecord } from "../types/handoff.js";
|
|
|
6
6
|
/**
|
|
7
7
|
* Lightweight session metadata persisted by the sessions package. The
|
|
8
8
|
* actual `session_messages` rows are owned by `MemoryStore` (single source
|
|
9
|
-
* of truth
|
|
9
|
+
* of truth - the sessions package delegates message CRUD to memory).
|
|
10
10
|
*
|
|
11
11
|
* @stable
|
|
12
12
|
*/
|
|
@@ -22,7 +22,7 @@ interface SessionMetadata {
|
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Agent registry entry. Captures stable metadata about every agent that
|
|
25
|
-
* ever produced a message
|
|
25
|
+
* ever produced a message - so JSONL exports / replays can resolve a
|
|
26
26
|
* `Message.agentId` to a human-readable name even after the agent was
|
|
27
27
|
* renamed or retired.
|
|
28
28
|
*
|
|
@@ -55,7 +55,7 @@ interface SessionWorkflowRun {
|
|
|
55
55
|
* `commentary-sanitized`, …) plus per-session-handoff. Adapters can
|
|
56
56
|
* surface the rows verbatim from disk.
|
|
57
57
|
*
|
|
58
|
-
* The `metadata` field is intentionally an open record
|
|
58
|
+
* The `metadata` field is intentionally an open record - storage
|
|
59
59
|
* adapters serialize it as JSON. Callers should keep it small and
|
|
60
60
|
* never include secret values.
|
|
61
61
|
*
|
|
@@ -120,10 +120,12 @@ interface SessionStoreExt extends SessionStore {
|
|
|
120
120
|
/** Delete audit rows older than the supplied epoch ms. */
|
|
121
121
|
pruneAuditEntries(beforeEpochMs: number): Promise<number>;
|
|
122
122
|
/**
|
|
123
|
-
* Hard-delete a session and cascade its session-owned rows
|
|
124
|
-
* workflow-run attachments, and audit entries (RP-6)
|
|
125
|
-
*
|
|
126
|
-
*
|
|
123
|
+
* Hard-delete a session and cascade its session-owned rows - handoffs,
|
|
124
|
+
* workflow-run attachments, and audit entries (RP-6) - **plus the
|
|
125
|
+
* session's content**: its `session_messages` rows (with their FTS and
|
|
126
|
+
* vector index entries) and any episodes scoped to the session
|
|
127
|
+
* (store-01). After this call the conversation is no longer retrievable
|
|
128
|
+
* through `memory.session.*` search surfaces. A no-op for an unknown id.
|
|
127
129
|
*/
|
|
128
130
|
deleteSession(sessionId: string): Promise<void>;
|
|
129
131
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-store.d.ts","names":[],"sources":["../../src/contracts/session-store.ts"],"sourcesContent":[],"mappings":";;;;;;;AAUA;AAmBA;AAcA;AAqBA;AAmBA;AAC0B,UA1ET,eAAA,CA0ES;EAAkB,SAAA,EAAA,EAAA,MAAA;EACH,SAAA,MAAA,EAAA,MAAA;EAAR,SAAA,OAAA,EAAA,MAAA;EAEjB,SAAA,KAAA,CAAA,EAAA,MAAA;EAAL,SAAA,SAAA,EAAA,MAAA;EACgB,SAAA,SAAA,CAAA,EAAA,MAAA;EAAd,SAAA,QAAA,CAAA,EAAA,MAAA;EAAR,SAAA,IAAA,CAAA,EAtEa,aAsEb,CAAA,MAAA,CAAA;;;;;;;;;;AAQsC,UAnE1B,kBAAA,CAmE0B;EAAgB,SAAA,EAAA,EAAA,MAAA;EACF,SAAA,WAAA,EAAA,MAAA;EAAd,SAAA,YAAA,EAAA,MAAA;EAAR,SAAA,SAAA,CAAA,EAAA,MAAA;EAEV,SAAA,IAAA,CAAA,EAjEP,aAiEO,CAAA,MAAA,CAAA;;;;;;AAezB;;AAIsC,UA3ErB,kBAAA,CA2EqB;EAAd,SAAA,SAAA,EAAA,MAAA;EAAR,SAAA,UAAA,EAAA,MAAA;EAMJ,SAAA,QAAA,EAAA,MAAA;EACP,SAAA,UAAA,EAAA,MAAA;EAEqB,SAAA,MAAA,EAAA,SAAA,GAAA,WAAA,GAAA,WAAA,GAAA,QAAA;;;;;;;;;;;;;;;UA/DT,iBAAA;;;;;;;;;;sBAUK,S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A,WAAA,GAAA,QAAA;;;;;;;;;;;;;;;UA/DT,iBAAA;;;;;;;;;;sBAUK,SAAS;;;;;;;;UASd,YAAA;0BACS,kBAAkB;iCACX,QAAQ;sBAE9B,KAAK,sCACX,QAAQ,cAAc;0CACe,QAAQ,mBAAmB;qDAChB;uBAE9B,qBAAqB;mDACO;iCAClB,QAAQ;2CAEE,gBAAgB;mCACxB,QAAQ,cAAc;yBAEhC,qBAAqB;uCACP,QAAQ,cAAc;;;;;;;;;;;;;UAc5C,eAAA,SAAwB;;gCAET;;gBAEhB,QAAQ,cAAc;;2FAM1B,+BACP;;0BAEqB,oBAAoB;;;;MAKzC,QAAQ,cAAc;;4CAEiB;;;;;;;;;oCASR;;;;;;;;;;MAU9B"}
|
package/dist/contracts/tool.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { Logger } from "./logger.js";
|
|
|
2
2
|
import { Sensitivity } from "../types/sensitivity.js";
|
|
3
3
|
import { MessageContent } from "../types/message.js";
|
|
4
4
|
import { ModelHint, ModelSpec } from "./preferred-model.js";
|
|
5
|
-
import { SecretValue } from "./secret-value.js";
|
|
6
5
|
import { Tracer } from "./tracer.js";
|
|
6
|
+
import { SecretValue } from "./secret-value.js";
|
|
7
7
|
import { ContentChunk, InboundSanitizationPolicy, MemoryGuardTier, SandboxPolicy, SideEffectClass, ToolSource, ToolTrustClass, TruncationStrategy } from "../types/tool.js";
|
|
8
8
|
import { RunContext } from "../types/run.js";
|
|
9
9
|
import { ZodLikeSchema } from "../utils/validation.js";
|
|
@@ -18,7 +18,7 @@ import { ZodLikeSchema } from "../utils/validation.js";
|
|
|
18
18
|
* server, sessions, observability, …) carries `Tool[]` references on
|
|
19
19
|
* its public surface.
|
|
20
20
|
*
|
|
21
|
-
* The interface is intentionally minimal
|
|
21
|
+
* The interface is intentionally minimal - extension fields covered by
|
|
22
22
|
* later phases (per-tool `secretsAllowed` ACL, inbound sanitization
|
|
23
23
|
* policy, result truncation strategy, streaming hint, …) are added
|
|
24
24
|
* **additively** by their owning packages so that v0.1 consumers can
|
|
@@ -110,7 +110,7 @@ interface Tool<TInput = unknown, TOutput = unknown, TDeps = unknown> {
|
|
|
110
110
|
readonly truncationStrategy?: TruncationStrategy;
|
|
111
111
|
/**
|
|
112
112
|
* Worked examples shown to the model alongside the tool's
|
|
113
|
-
* description. Bounded `[1, 5]`
|
|
113
|
+
* description. Bounded `[1, 5]` - overflow emits a one-time WARN at
|
|
114
114
|
* registration. Each example's `input` and `output` is validated
|
|
115
115
|
* against the tool's `inputSchema` / `outputSchema`.
|
|
116
116
|
*/
|
|
@@ -133,12 +133,12 @@ interface Tool<TInput = unknown, TOutput = unknown, TDeps = unknown> {
|
|
|
133
133
|
* Optional callback returning a deterministic dedup key per
|
|
134
134
|
* `(input, ctx)` tuple. REQUIRED-by-WARN for `'side-effecting'` /
|
|
135
135
|
* `'external-stateful'` tools. The framework does not validate
|
|
136
|
-
* determinism
|
|
136
|
+
* determinism - that is the operator's contract.
|
|
137
137
|
*/
|
|
138
138
|
readonly idempotencyKey?: (input: TInput, ctx: ToolExecutionContext<TDeps>) => string | Promise<string>;
|
|
139
139
|
/**
|
|
140
140
|
* Opt-in flag for streaming-tool execution. The `?: true` typing
|
|
141
|
-
* rejects `streamingHint: false` on purpose
|
|
141
|
+
* rejects `streamingHint: false` on purpose - absence is the
|
|
142
142
|
* canonical "non-streaming" signal preserving v0.1 behaviour. When
|
|
143
143
|
* `true`, `Tool.execute(...)` may call `ctx.streamContent(...)` /
|
|
144
144
|
* `ctx.reportProgress(...)` and may return `Promise<void>`.
|
|
@@ -199,6 +199,19 @@ interface ResolvedTool<TInput = unknown, TOutput = unknown, TDeps = unknown> ext
|
|
|
199
199
|
interface ToolReturn<TOutput = unknown> {
|
|
200
200
|
readonly output: TOutput;
|
|
201
201
|
readonly contentParts?: ReadonlyArray<MessageContent>;
|
|
202
|
+
/**
|
|
203
|
+
* C6: per-result taint override the data-flow ledger honours when
|
|
204
|
+
* recording this output. Lets a FIRST-PARTY tool whose CONTENT is not
|
|
205
|
+
* first-party (e.g. memory recall returning quarantined /
|
|
206
|
+
* foreign-provenance facts) re-arm the taint ledger, closing the
|
|
207
|
+
* cross-session poisoning leg. Flags only ever WIDEN the derived label
|
|
208
|
+
* (they cannot launder an untrusted tool's output into trusted).
|
|
209
|
+
*/
|
|
210
|
+
readonly taint?: {
|
|
211
|
+
readonly untrusted?: boolean;
|
|
212
|
+
readonly sensitive?: boolean;
|
|
213
|
+
readonly sourceKind?: string;
|
|
214
|
+
};
|
|
202
215
|
}
|
|
203
216
|
/**
|
|
204
217
|
* Per-call execution context handed to `Tool.execute(...)`. Carries the
|
|
@@ -217,7 +230,7 @@ interface ToolExecutionContext<TDeps = unknown> {
|
|
|
217
230
|
readonly logger: Logger;
|
|
218
231
|
/**
|
|
219
232
|
* Per-call secrets accessor. The accessor enforces the tool's
|
|
220
|
-
* `secretsAllowed` ACL
|
|
233
|
+
* `secretsAllowed` ACL - calling `require(...)` for a key that is
|
|
221
234
|
* not on the allowlist throws `SecretAccessDeniedError`.
|
|
222
235
|
*/
|
|
223
236
|
readonly secrets: ToolSecretsAccessor;
|
|
@@ -239,7 +252,7 @@ interface ToolExecutionContext<TDeps = unknown> {
|
|
|
239
252
|
* Per-call secrets accessor surface. Implemented by the executor; the
|
|
240
253
|
* tool author calls `require(...)` to obtain a `SecretValue` wrapper.
|
|
241
254
|
*
|
|
242
|
-
* The accessor is intentionally narrow
|
|
255
|
+
* The accessor is intentionally narrow - the ACL enforcement happens
|
|
243
256
|
* inside `require(...)`, so the tool author never accidentally
|
|
244
257
|
* unwraps a secret outside the tool's permitted set.
|
|
245
258
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.d.ts","names":[],"sources":["../../src/contracts/tool.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;AAkCA;;;;;;;;;;;;;AAmD6B,UAnDZ,IAmDY,CAAA,SAAA,OAAA,EAAA,UAAA,OAAA,EAAA,Q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execute' | 'tool.approval' | 'memory.read.working' | 'memory.read.session' | 'memory.read.episodic' | 'memory.read.semantic' | 'memory.read.procedural' | 'memory.read.shared' | 'memory.write.working' | 'memory.write.session' | 'memory.write.episodic' | 'memory.write.semantic' | 'memory.write.procedural' | 'memory.write.shared' | 'memory.search.working' | 'memory.search.session' | 'memory.search.episodic' | 'memory.search.semantic' | 'memory.search.procedural' | 'memory.search.shared' | 'memory.consolidate.light' | 'memory.consolidate.standard' | 'memory.consolidate.deep' | 'memory.consolidate.reflect' | 'memory.search.insight' | 'memory.read.insight' | 'memory.write.insight' | 'memory.conflict' | 'memory.embed' | 'workflow.run' | 'workflow.step' | 'workflow.task' | 'workflow.checkpoint' | 'skill.activate' | 'skill.load' | 'mcp.connect' | 'mcp.call' | 'mcp.list-tools';
|
|
10
|
+
type SpanType = 'agent.run' | 'agent.step' | 'agent.handoff' | 'agent.suspend' | 'agent.resume' | 'provider.generate' | 'provider.stream' | 'tool.execute' | 'tool.approval' | 'memory.read.working' | 'memory.read.session' | 'memory.read.episodic' | 'memory.read.semantic' | 'memory.read.procedural' | 'memory.read.shared' | 'memory.write.working' | 'memory.write.session' | 'memory.write.episodic' | 'memory.write.semantic' | 'memory.write.procedural' | 'memory.write.shared' | 'memory.search.working' | 'memory.search.session' | 'memory.search.episodic' | 'memory.search.semantic' | 'memory.search.procedural' | 'memory.search.shared' | 'memory.consolidate.light' | 'memory.consolidate.standard' | 'memory.consolidate.deep' | 'memory.consolidate.reflect' | 'memory.consolidate.learned-context' | 'memory.search.insight' | 'memory.read.insight' | 'memory.write.insight' | 'memory.conflict' | 'memory.embed' | 'workflow.run' | 'workflow.step' | 'workflow.task' | 'workflow.checkpoint' | 'skill.activate' | 'skill.load' | 'mcp.connect' | 'mcp.call' | 'mcp.list-tools';
|
|
11
11
|
/**
|
|
12
12
|
* Status of a finished span. Mirrors the OTel status convention with
|
|
13
13
|
* `'ok' | 'error'` short forms instead of the verbose tristate.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracer.d.ts","names":[],"sources":["../../src/contracts/tracer.ts"],"sourcesContent":[],"mappings":";;AAQA;
|
|
1
|
+
{"version":3,"file":"tracer.d.ts","names":[],"sources":["../../src/contracts/tracer.ts"],"sourcesContent":[],"mappings":";;AAQA;AAsDA;AAOA;;;;;AAGY,KAhEA,QAAA,GAgEA,WAAkB,GAAA,YAAA,GAAA,eAAA,GAAA,eAAA,GAAA,cAAA,GAAA,mBAAA,GAAA,iBAAA,GAAA,cAAA,GAAA,eAAA,GAAA,qBAAA,GAAA,qBAAA,GAAA,sBAAA,GAAA,sBAAA,GAAA,wBAAA,GAAA,oBAAA,GAAA,sBAAA,GAAA,sBAAA,GAAA,uBAAA,GAAA,uBAAA,GAAA,yBAAA,GAAA,qBAAA,GAAA,uBAAA,GAAA,uBAAA,GAAA,wBAAA,GAAA,wBAAA,GAAA,0BAAA,GAAA,sBAAA,GAAA,0BAAA,GAAA,6BAAA,GAAA,yBAAA,GAAA,4BAAA,GAAA,oCAAA,GAAA,uBAAA,GAAA,qBAAA,GAAA,sBAAA,GAAA,iBAAA,GAAA,cAAA,GAAA,cAAA,GAAA,eAAA,GAAA,eAAA,GAAA,qBAAA,GAAA,gBAAA,GAAA,YAAA,GAAA,aAAA,GAAA,UAAA,GAAA,gBAAA;;;;;AAe9B;;AAA6C,KAzBjC,UAAA,GAyBiC,IAAA,GAAA,OAAA,GAAA,WAAA;;;;;;AAsB5B,KAxCL,cAAA,GAAiB,QAwCI,CAxCK,MAwCL,CAAA,MAAA,EAxCoB,kBAwCpB,CAAA,CAAA;;AAAsB,KArC3C,kBAAA,GAqC2C,MAAA,GAAA,MAAA,GAAA,OAAA,GAAA,IAAA,GAhCnD,aAgCmD,CAAA,MAAA,CAAA,GA/BnD,aA+BmD,CAAA,MAAA,CAAA,GA9BnD,aA8BmD,CAAA,OAAA,CAAA;;;;;AAavD;;AACuD,UApCtC,MAoCsC,CAAA,UApCrB,QAoCqB,GApCV,QAoCU,CAAA,CAAA;EAAjB,SAAA,IAAA,EAnCrB,CAmCqB;EAA6B,SAAA,EAAA,EAAA,MAAA;EAAP,SAAA,OAAA,EAAA,MAAA;EAK3C,SAAA,QAAA,CAAA,EAAA,MAAA;EACU;EAAjB,aAAA,CAAA,KAAA,EApCa,cAoCb,CAAA,EAAA,IAAA;EACY;EAAP,QAAA,CAAA,IAAA,EAAA,MAAA,EAAA,KAAA,CAAA,EAnCkB,cAmClB,CAAA,EAAA,IAAA;EAAc;EAAY,eAAA,CAAA,GAAA,EAAA,OAAA,CAAA,EAAA,IAAA;EAAR;EACpB,SAAA,CAAA,MAAA,EAhCO,UAgCP,EAAA,OAAA,CAAA,EAAA,MAAA,CAAA,EAAA,IAAA;EAAR;EAES,GAAA,EAAA,EAAA,IAAA;;AASd;;;;;UAjCiB,2BAA2B,WAAW;iBACtC;mBACE;oBACC;;;;;;;;;UAUH,MAAA;sBACK,gBAAgB,iBAAiB,KAAK,OAAO;;;;;iBAKlD,mBACP,iBAAiB,eACZ,OAAO,OAAO,IAAI,QAAQ,KACpC,QAAQ;;cAEC;;;;;;;;cASD,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracer.js","names":["NOOP_TRACER: Tracer"],"sources":["../../src/contracts/tracer.ts"],"sourcesContent":["/**\n * Discriminator union for typed observability spans.\n *\n * The list mirrors the span taxonomy documented for the observability\n * layer; concrete implementations live in `@graphorin/observability`.\n *\n * @stable\n */\nexport type SpanType =\n | 'agent.run'\n | 'agent.step'\n | 'agent.handoff'\n | 'agent.suspend'\n | 'agent.resume'\n | 'provider.generate'\n | 'provider.stream'\n | 'tool.execute'\n | 'tool.approval'\n | 'memory.read.working'\n | 'memory.read.session'\n | 'memory.read.episodic'\n | 'memory.read.semantic'\n | 'memory.read.procedural'\n | 'memory.read.shared'\n | 'memory.write.working'\n | 'memory.write.session'\n | 'memory.write.episodic'\n | 'memory.write.semantic'\n | 'memory.write.procedural'\n | 'memory.write.shared'\n | 'memory.search.working'\n | 'memory.search.session'\n | 'memory.search.episodic'\n | 'memory.search.semantic'\n | 'memory.search.procedural'\n | 'memory.search.shared'\n | 'memory.consolidate.light'\n | 'memory.consolidate.standard'\n | 'memory.consolidate.deep'\n | 'memory.consolidate.reflect'\n | 'memory.search.insight'\n | 'memory.read.insight'\n | 'memory.write.insight'\n | 'memory.conflict'\n | 'memory.embed'\n | 'workflow.run'\n | 'workflow.step'\n | 'workflow.task'\n | 'workflow.checkpoint'\n | 'skill.activate'\n | 'skill.load'\n | 'mcp.connect'\n | 'mcp.call'\n | 'mcp.list-tools';\n\n/**\n * Status of a finished span. Mirrors the OTel status convention with\n * `'ok' | 'error'` short forms instead of the verbose tristate.\n *\n * @stable\n */\nexport type SpanStatus = 'ok' | 'error' | 'cancelled';\n\n/**\n * Free-form attributes attached to a span.\n *\n * @stable\n */\nexport type SpanAttributes = Readonly<Record<string, SpanAttributeValue>>;\n\n/** @stable */\nexport type SpanAttributeValue =\n | string\n | number\n | boolean\n | null\n | ReadonlyArray<string>\n | ReadonlyArray<number>\n | ReadonlyArray<boolean>;\n\n/**\n * Typed span. Generic over `SpanType` so consumers can specialize a\n * function on a particular span kind without losing the discriminator.\n *\n * @stable\n */\nexport interface AISpan<T extends SpanType = SpanType> {\n readonly type: T;\n readonly id: string;\n readonly traceId: string;\n readonly parentId?: string;\n /** Add or replace attributes. Repeated calls are merged (last write wins). */\n setAttributes(attrs: SpanAttributes): void;\n /** Append a span event (attribute-bearing time-stamped marker). */\n addEvent(name: string, attrs?: SpanAttributes): void;\n /** Record an exception. Multiple calls are kept in the span event log. */\n recordException(err: unknown): void;\n /** Set the terminal status. */\n setStatus(status: SpanStatus, message?: string): void;\n /** End the span. Idempotent. */\n end(): void;\n}\n\n/**\n * Span constructor parameters.\n *\n * @stable\n */\nexport interface StartSpanOptions<T extends SpanType = SpanType> {\n readonly type: T;\n readonly attrs?: SpanAttributes;\n readonly parent?: AISpan;\n}\n\n/**\n * Pluggable tracer. Implementations live in `@graphorin/observability`.\n * The interface intentionally mirrors a subset of the OTel API so that\n * adapter code is a thin pass-through.\n *\n * @stable\n */\nexport interface Tracer {\n startSpan<T extends SpanType>(opts: StartSpanOptions<T>): AISpan<T>;\n /**\n * Convenience wrapper: start a span, run `fn` inside, and call\n * `setStatus('ok' | 'error')` + `end()` based on the outcome.\n */\n span<T extends SpanType, R>(\n opts: StartSpanOptions<T>,\n fn: (span: AISpan<T>) => R | Promise<R>,\n ): Promise<R>;\n /** Force-flush any pending spans. */\n shutdown(): Promise<void>;\n}\n\n/**\n * Minimal no-op tracer. Useful as a typed default when downstream code\n * needs a non-null `Tracer` without taking the observability dependency.\n *\n * @stable\n */\nexport const NOOP_TRACER: Tracer = {\n startSpan<T extends SpanType>(opts: StartSpanOptions<T>): AISpan<T> {\n const span: AISpan<T> = {\n type: opts.type,\n id: '',\n traceId: '',\n setAttributes(): void {},\n addEvent(): void {},\n recordException(): void {},\n setStatus(): void {},\n end(): void {},\n };\n return span;\n },\n async span<T extends SpanType, R>(\n opts: StartSpanOptions<T>,\n fn: (span: AISpan<T>) => R | Promise<R>,\n ): Promise<R> {\n const span = this.startSpan(opts);\n try {\n return await fn(span);\n } finally {\n span.end();\n }\n },\n async shutdown(): Promise<void> {},\n};\n"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"tracer.js","names":["NOOP_TRACER: Tracer"],"sources":["../../src/contracts/tracer.ts"],"sourcesContent":["/**\n * Discriminator union for typed observability spans.\n *\n * The list mirrors the span taxonomy documented for the observability\n * layer; concrete implementations live in `@graphorin/observability`.\n *\n * @stable\n */\nexport type SpanType =\n | 'agent.run'\n | 'agent.step'\n | 'agent.handoff'\n | 'agent.suspend'\n | 'agent.resume'\n | 'provider.generate'\n | 'provider.stream'\n | 'tool.execute'\n | 'tool.approval'\n | 'memory.read.working'\n | 'memory.read.session'\n | 'memory.read.episodic'\n | 'memory.read.semantic'\n | 'memory.read.procedural'\n | 'memory.read.shared'\n | 'memory.write.working'\n | 'memory.write.session'\n | 'memory.write.episodic'\n | 'memory.write.semantic'\n | 'memory.write.procedural'\n | 'memory.write.shared'\n | 'memory.search.working'\n | 'memory.search.session'\n | 'memory.search.episodic'\n | 'memory.search.semantic'\n | 'memory.search.procedural'\n | 'memory.search.shared'\n | 'memory.consolidate.light'\n | 'memory.consolidate.standard'\n | 'memory.consolidate.deep'\n | 'memory.consolidate.reflect'\n | 'memory.consolidate.learned-context'\n | 'memory.search.insight'\n | 'memory.read.insight'\n | 'memory.write.insight'\n | 'memory.conflict'\n | 'memory.embed'\n | 'workflow.run'\n | 'workflow.step'\n | 'workflow.task'\n | 'workflow.checkpoint'\n | 'skill.activate'\n | 'skill.load'\n | 'mcp.connect'\n | 'mcp.call'\n | 'mcp.list-tools';\n\n/**\n * Status of a finished span. Mirrors the OTel status convention with\n * `'ok' | 'error'` short forms instead of the verbose tristate.\n *\n * @stable\n */\nexport type SpanStatus = 'ok' | 'error' | 'cancelled';\n\n/**\n * Free-form attributes attached to a span.\n *\n * @stable\n */\nexport type SpanAttributes = Readonly<Record<string, SpanAttributeValue>>;\n\n/** @stable */\nexport type SpanAttributeValue =\n | string\n | number\n | boolean\n | null\n | ReadonlyArray<string>\n | ReadonlyArray<number>\n | ReadonlyArray<boolean>;\n\n/**\n * Typed span. Generic over `SpanType` so consumers can specialize a\n * function on a particular span kind without losing the discriminator.\n *\n * @stable\n */\nexport interface AISpan<T extends SpanType = SpanType> {\n readonly type: T;\n readonly id: string;\n readonly traceId: string;\n readonly parentId?: string;\n /** Add or replace attributes. Repeated calls are merged (last write wins). */\n setAttributes(attrs: SpanAttributes): void;\n /** Append a span event (attribute-bearing time-stamped marker). */\n addEvent(name: string, attrs?: SpanAttributes): void;\n /** Record an exception. Multiple calls are kept in the span event log. */\n recordException(err: unknown): void;\n /** Set the terminal status. */\n setStatus(status: SpanStatus, message?: string): void;\n /** End the span. Idempotent. */\n end(): void;\n}\n\n/**\n * Span constructor parameters.\n *\n * @stable\n */\nexport interface StartSpanOptions<T extends SpanType = SpanType> {\n readonly type: T;\n readonly attrs?: SpanAttributes;\n readonly parent?: AISpan;\n}\n\n/**\n * Pluggable tracer. Implementations live in `@graphorin/observability`.\n * The interface intentionally mirrors a subset of the OTel API so that\n * adapter code is a thin pass-through.\n *\n * @stable\n */\nexport interface Tracer {\n startSpan<T extends SpanType>(opts: StartSpanOptions<T>): AISpan<T>;\n /**\n * Convenience wrapper: start a span, run `fn` inside, and call\n * `setStatus('ok' | 'error')` + `end()` based on the outcome.\n */\n span<T extends SpanType, R>(\n opts: StartSpanOptions<T>,\n fn: (span: AISpan<T>) => R | Promise<R>,\n ): Promise<R>;\n /** Force-flush any pending spans. */\n shutdown(): Promise<void>;\n}\n\n/**\n * Minimal no-op tracer. Useful as a typed default when downstream code\n * needs a non-null `Tracer` without taking the observability dependency.\n *\n * @stable\n */\nexport const NOOP_TRACER: Tracer = {\n startSpan<T extends SpanType>(opts: StartSpanOptions<T>): AISpan<T> {\n const span: AISpan<T> = {\n type: opts.type,\n id: '',\n traceId: '',\n setAttributes(): void {},\n addEvent(): void {},\n recordException(): void {},\n setStatus(): void {},\n end(): void {},\n };\n return span;\n },\n async span<T extends SpanType, R>(\n opts: StartSpanOptions<T>,\n fn: (span: AISpan<T>) => R | Promise<R>,\n ): Promise<R> {\n const span = this.startSpan(opts);\n try {\n return await fn(span);\n } finally {\n span.end();\n }\n },\n async shutdown(): Promise<void> {},\n};\n"],"mappings":";;;;;;;AA8IA,MAAaA,cAAsB;CACjC,UAA8B,MAAsC;AAWlE,SAVwB;GACtB,MAAM,KAAK;GACX,IAAI;GACJ,SAAS;GACT,gBAAsB;GACtB,WAAiB;GACjB,kBAAwB;GACxB,YAAkB;GAClB,MAAY;GACb;;CAGH,MAAM,KACJ,MACA,IACY;EACZ,MAAM,OAAO,KAAK,UAAU,KAAK;AACjC,MAAI;AACF,UAAO,MAAM,GAAG,KAAK;YACb;AACR,QAAK,KAAK;;;CAGd,MAAM,WAA0B;CACjC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import { AnyValue, Barrier, Channel, ChannelKind, Ephemeral, LatestValue, ListAggregate, Reducer, Stream, anyValue, barrier, ephemeral, latestValue, listAggregate, reducer, stream } from "./channels/channels.js";
|
|
2
2
|
import { Directive, DirectiveOptions } from "./channels/directive.js";
|
|
3
3
|
import { Dispatch, dispatch } from "./channels/dispatch.js";
|
|
4
|
+
import { APPROVAL_PAUSE_KIND, AWAKEABLE_PAUSE_KIND, ApprovalPauseValue, AwakeablePauseValue, TIMER_PAUSE_KIND, TimerPauseValue, awaitExternal, isApprovalPauseValue, isAwakeablePauseValue, isTimerPauseValue, requestApproval, sleepFor, sleepUntil } from "./channels/durable.js";
|
|
4
5
|
import { PAUSE_SIGNAL_BRAND, PauseResumeScope, PauseSignal, isPauseSignal, pause, runWithPauseResume } from "./channels/pause.js";
|
|
5
6
|
import { AuthTokenRecord, AuthTokenStore } from "./contracts/auth-token-store.js";
|
|
6
|
-
import { Checkpoint, CheckpointId, CheckpointMetadata, CheckpointStore, CheckpointTuple, ListOptions, PendingWrite } from "./contracts/checkpoint-store.js";
|
|
7
|
+
import { Checkpoint, CheckpointConflictError, CheckpointId, CheckpointMetadata, CheckpointPutOptions, CheckpointStore, CheckpointTuple, ListOptions, PendingWrite } from "./contracts/checkpoint-store.js";
|
|
7
8
|
import { EmbedOptions, EmbedderProvider } from "./contracts/embedder.js";
|
|
8
9
|
import { EvalSample, EvalScore, EvalScorer } from "./contracts/eval-scorer.js";
|
|
9
10
|
import { LocalProviderTrust, OllamaTrust } from "./contracts/local-provider-trust.js";
|
|
10
11
|
import { LogFields, LogLevel, Logger, NOOP_LOGGER } from "./contracts/logger.js";
|
|
11
12
|
import { SENSITIVITY_ORDER, Sensitivity, acceptsSensitivity } from "./types/sensitivity.js";
|
|
12
|
-
import { Block, EntityRole, Episode, Fact, GraphEntity, Insight, MemoryHit, MemoryKind, MemoryMetadata, MemoryProvenance, MemoryRecord, MemorySearchOptions, MemoryStatus, Rule } from "./types/memory.js";
|
|
13
|
+
import { Block, EntityRole, Episode, Fact, GraphEntity, Insight, MemoryHit, MemoryKind, MemoryMetadata, MemoryOwner, MemoryProvenance, MemoryRecord, MemorySearchOptions, MemoryStatus, Rule } from "./types/memory.js";
|
|
13
14
|
import { ToolCall } from "./types/tool-call.js";
|
|
14
15
|
import { AssistantMessage, AudioContent, FileContent, ImageContent, Message, MessageContent, MessageRole, ReasoningContent, ReasoningContentMeta, SystemMessage, TextContent, ToolMessage, UserMessage } from "./types/message.js";
|
|
15
16
|
import { SessionScope } from "./types/session-scope.js";
|
|
16
17
|
import { EpisodicMemoryStore, MemoryStore, MessageRef, ProceduralMemoryStore, SemanticMemoryStore, SessionListOptions, SessionMemoryStore, SessionMessageWithMetadata, SharedMemoryStore, WorkingMemoryStore } from "./contracts/memory-store.js";
|
|
17
18
|
import { OAuthServerRecord, OAuthServerStore } from "./contracts/oauth-server-store.js";
|
|
18
19
|
import { MODEL_HINTS, ModelHint, ModelSpec, ProviderLike } from "./contracts/preferred-model.js";
|
|
20
|
+
import { AISpan, NOOP_TRACER, SpanAttributeValue, SpanAttributes, SpanStatus, SpanType, StartSpanOptions, Tracer } from "./contracts/tracer.js";
|
|
19
21
|
import { Cost, ModelUsage, Usage, UsageAccumulator, UsageSnapshot, zeroUsage } from "./types/usage.js";
|
|
20
22
|
import { ReasoningContract, ReasoningRetention } from "./contracts/reasoning-retention.js";
|
|
21
|
-
import { ComposeProviderMiddleware, FinishReason, OutputSpec, Provider, ProviderCapabilities, ProviderError, ProviderErrorKind, ProviderEvent, ProviderMiddleware, ProviderRequest, ProviderRequestMetadata, ProviderResponse, ResponseMetadata, ToolChoice, ToolDefinition, ToolDefinitionExample } from "./contracts/provider.js";
|
|
23
|
+
import { ComposeProviderMiddleware, FinishReason, OutputSpec, Provider, ProviderCachePolicy, ProviderCapabilities, ProviderError, ProviderErrorKind, ProviderEvent, ProviderMiddleware, ProviderRequest, ProviderRequestMetadata, ProviderResponse, ResponseMetadata, ToolChoice, ToolDefinition, ToolDefinitionExample } from "./contracts/provider.js";
|
|
22
24
|
import { RedactionInput, RedactionOutput, RedactionValidator } from "./contracts/redaction-validator.js";
|
|
23
25
|
import { Sandbox, SandboxCode, SandboxResult, SandboxRunOptions } from "./contracts/sandbox.js";
|
|
24
26
|
import { SecretRef } from "./contracts/secret-ref.js";
|
|
@@ -27,13 +29,12 @@ import { SecretMetadata, SecretResolver, SecretResolverContext, SecretsSetOption
|
|
|
27
29
|
import { Handoff, HandoffFilter, HandoffInputFilterDescriptor, HandoffRecord, HandoffSecretsInheritance } from "./types/handoff.js";
|
|
28
30
|
import { AgentRegistryEntry, SessionAuditEntry, SessionMetadata, SessionStore, SessionStoreExt, SessionWorkflowRun } from "./contracts/session-store.js";
|
|
29
31
|
import { TokenCounter } from "./contracts/token-counter.js";
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { RunContext, RunError, RunState, RunStateUsageByModel, RunStatus, RunStep, RunTaintSummary, flattenUsageByModel } from "./types/run.js";
|
|
32
|
+
import { CompletedToolCall, ContentChunk, InboundSanitizationPolicy, MemoryGuardTier, RecoveryHint, ResultHandle, SandboxPolicy, SideEffectClass, ToolApproval, ToolError, ToolErrorKind, ToolOutcome, ToolResult, ToolSource, ToolTrustClass, TruncationStrategy } from "./types/tool.js";
|
|
33
|
+
import { RunContext, RunError, RunState, RunStateUsageByModel, RunStatus, RunStep, RunStepProviderResponse, RunTaintSummary, TodoItem, flattenUsageByModel } from "./types/run.js";
|
|
33
34
|
import { ValidationResult, ZodLikeError, ZodLikeSafeParseResult, ZodLikeSchema, validate, validateOrThrow } from "./utils/validation.js";
|
|
34
35
|
import { ResolvedTool, Tool, ToolExample, ToolExecutionContext, ToolReturn, ToolSecretsAccessor } from "./contracts/tool.js";
|
|
35
36
|
import { TriggerState, TriggerStore } from "./contracts/trigger-store.js";
|
|
36
|
-
import { AgentCancellingEvent, AgentEndEvent, AgentErrorEvent, AgentEvaluatorConvergedEvent, AgentEvaluatorIterationEvent, AgentEvent, AgentFanOutMergedEvent, AgentFanOutSpawnedEvent, AgentFollowUpQueuedEvent, AgentLateralLeakDetectedEvent, AgentModelFellbackEvent, AgentProgressReadEvent, AgentProgressWrittenEvent, AgentResult, AgentStartEvent, AgentSteeredEvent, ContextCompactedEvent, FanOutChildMetadata, GuardrailTrippedEvent, HandoffEvent, LateralLeakVector, ProgressArtifactRef, ReasoningDeltaEvent, StepEndEvent, StepStartEvent, TextCompleteEvent, TextDeltaEvent, ToolApprovalDeniedEvent, ToolApprovalGrantedEvent, ToolApprovalRequestedEvent, ToolCallDeltaEvent, ToolCallEndEvent, ToolCallStartEvent, ToolExecuteEndEvent, ToolExecuteErrorEvent, ToolExecutePartialEvent, ToolExecuteProgressEvent, ToolExecuteStartEvent } from "./types/agent-event.js";
|
|
37
|
+
import { AgentCancellingEvent, AgentEndEvent, AgentErrorEvent, AgentEvaluatorConvergedEvent, AgentEvaluatorIterationEvent, AgentEvent, AgentFanOutMergedEvent, AgentFanOutSpawnedEvent, AgentFollowUpQueuedEvent, AgentLateralLeakDetectedEvent, AgentModelFellbackEvent, AgentProgressReadEvent, AgentProgressWrittenEvent, AgentResult, AgentStartEvent, AgentSteeredEvent, ContextCompactedEvent, FanOutChildMetadata, GuardrailTrippedEvent, HandoffEvent, LateralLeakVector, ProgressArtifactRef, ReasoningDeltaEvent, StepEndEvent, StepStartEvent, TextCompleteEvent, TextDeltaEvent, ToolApprovalDeniedEvent, ToolApprovalGrantedEvent, ToolApprovalRequestedEvent, ToolCallDeltaEvent, ToolCallEndEvent, ToolCallStartEvent, ToolExecuteEndEvent, ToolExecuteErrorEvent, ToolExecutePartialEvent, ToolExecuteProgressEvent, ToolExecuteStartEvent, VerifierResultEvent } from "./types/agent-event.js";
|
|
37
38
|
import { StopCondition, and, hasToolCall, isStepCount, isTerminal, not, or } from "./types/stop-condition.js";
|
|
38
39
|
import { WorkflowChannelUpdateEvent, WorkflowCheckpointWrittenEvent, WorkflowCustomEvent, WorkflowEndEvent, WorkflowErrorEvent, WorkflowEvent, WorkflowResumedEvent, WorkflowStartEvent, WorkflowStepEndEvent, WorkflowStepStartEvent, WorkflowSuspendedEvent, WorkflowTaskEndEvent, WorkflowTaskStartEvent } from "./types/workflow-event.js";
|
|
39
40
|
import { assertNever } from "./utils/assert-never.js";
|
|
@@ -43,7 +44,7 @@ import { collect, filter, mapStream, merge, take, takeWhile, withSignal } from "
|
|
|
43
44
|
|
|
44
45
|
//#region src/index.d.ts
|
|
45
46
|
/**
|
|
46
|
-
* @graphorin/core
|
|
47
|
+
* @graphorin/core - types, contracts, and utilities for the Graphorin
|
|
47
48
|
* framework. Dependency-free root package every other `@graphorin/*`
|
|
48
49
|
* package depends on.
|
|
49
50
|
*
|
|
@@ -53,7 +54,7 @@ import { collect, filter, mapStream, merge, take, takeWhile, withSignal } from "
|
|
|
53
54
|
* @packageDocumentation
|
|
54
55
|
*/
|
|
55
56
|
/** Canonical version constant. Mirrors the `package.json` version. */
|
|
56
|
-
declare const VERSION = "0.
|
|
57
|
+
declare const VERSION = "0.6.0";
|
|
57
58
|
//#endregion
|
|
58
|
-
export { AISpan, AgentCancellingEvent, AgentEndEvent, AgentErrorEvent, AgentEvaluatorConvergedEvent, AgentEvaluatorIterationEvent, AgentEvent, AgentFanOutMergedEvent, AgentFanOutSpawnedEvent, AgentFollowUpQueuedEvent, AgentLateralLeakDetectedEvent, AgentModelFellbackEvent, AgentProgressReadEvent, AgentProgressWrittenEvent, AgentRegistryEntry, AgentResult, AgentStartEvent, AgentSteeredEvent, AnyValue, AssistantMessage, AsyncContext, AudioContent, AuthTokenRecord, AuthTokenStore, Barrier, Block, Channel, ChannelKind, Checkpoint, CheckpointId, CheckpointMetadata, CheckpointStore, CheckpointTuple, CompletedToolCall, ComposeProviderMiddleware, ContentChunk, ContextCompactedEvent, Cost, Directive, DirectiveOptions, Dispatch, EmbedOptions, EmbedderProvider, EntityRole, Ephemeral, Episode, EpisodicMemoryStore, EvalSample, EvalScore, EvalScorer, Fact, FanOutChildMetadata, FileContent, FinishReason, GraphEntity, GuardrailTrippedEvent, Handoff, HandoffEvent, HandoffFilter, HandoffInputFilterDescriptor, HandoffRecord, HandoffSecretsInheritance, ImageContent, InboundSanitizationPolicy, Insight, LateralLeakVector, LatestValue, ListAggregate, ListOptions, LocalProviderTrust, LogFields, LogLevel, Logger, MODEL_HINTS, MemoryGuardTier, MemoryHit, MemoryKind, MemoryMetadata, MemoryProvenance, MemoryRecord, MemorySearchOptions, MemoryStatus, MemoryStore, Message, MessageContent, MessageRef, MessageRole, ModelHint, ModelSpec, ModelUsage, NODEJS_INSPECT_CUSTOM, NOOP_LOGGER, NOOP_TRACER, OAuthServerRecord, OAuthServerStore, OllamaTrust, OutputSpec, PAUSE_SIGNAL_BRAND, PauseResumeScope, PauseSignal, PendingWrite, ProceduralMemoryStore, ProgressArtifactRef, Provider, ProviderCapabilities, ProviderError, ProviderErrorKind, ProviderEvent, ProviderLike, ProviderMiddleware, ProviderRequest, ProviderRequestMetadata, ProviderResponse, ReasoningContent, ReasoningContentMeta, ReasoningContract, ReasoningDeltaEvent, ReasoningRetention, RedactionInput, RedactionOutput, RedactionValidator, Reducer, ResolvedTool, ResponseMetadata, ResultHandle, Rule, RunContext, RunError, RunState, RunStateUsageByModel, RunStatus, RunStep, RunTaintSummary, SECRET_VALUE_BRAND, SENSITIVITY_ORDER, Sandbox, SandboxCode, SandboxPolicy, SandboxResult, SandboxRunOptions, SecretMetadata, SecretRef, SecretResolver, SecretResolverContext, SecretValue, SecretValueOptions, SecretValueStatic, SecretsSetOptions, SecretsStore, SemanticMemoryStore, Sensitivity, SessionAuditEntry, SessionListOptions, SessionMemoryStore, SessionMessageWithMetadata, SessionMetadata, SessionScope, SessionStore, SessionStoreExt, SessionWorkflowRun, SharedMemoryStore, SideEffectClass, SpanAttributeValue, SpanAttributes, SpanStatus, SpanType, StartSpanOptions, StepEndEvent, StepStartEvent, StopCondition, Stream, SystemMessage, TextCompleteEvent, TextContent, TextDeltaEvent, TokenCounter, Tool, ToolApproval, ToolApprovalDeniedEvent, ToolApprovalGrantedEvent, ToolApprovalRequestedEvent, ToolCall, ToolCallDeltaEvent, ToolCallEndEvent, ToolCallStartEvent, ToolChoice, ToolDefinition, ToolDefinitionExample, ToolError, ToolErrorKind, ToolExample, ToolExecuteEndEvent, ToolExecuteErrorEvent, ToolExecutePartialEvent, ToolExecuteProgressEvent, ToolExecuteStartEvent, ToolExecutionContext, ToolMessage, ToolOutcome, ToolResult, ToolReturn, ToolSecretsAccessor, ToolSource, ToolTrustClass, Tracer, TriggerState, TriggerStore, TruncationStrategy, Usage, UsageAccumulator, UsageSnapshot, UserMessage, VERSION, ValidationResult, WorkflowChannelUpdateEvent, WorkflowCheckpointWrittenEvent, WorkflowCustomEvent, WorkflowEndEvent, WorkflowErrorEvent, WorkflowEvent, WorkflowResumedEvent, WorkflowStartEvent, WorkflowStepEndEvent, WorkflowStepStartEvent, WorkflowSuspendedEvent, WorkflowTaskEndEvent, WorkflowTaskStartEvent, WorkingMemoryStore, ZodLikeError, ZodLikeSafeParseResult, ZodLikeSchema, acceptsSensitivity, and, anyValue, assertNever, barrier, collect, createAsyncContext, dispatch, ephemeral, filter, flattenUsageByModel, hasToolCall, isPauseSignal, isStepCount, isTerminal, latestValue, listAggregate, mapStream, md5, merge, not, or, pause, reducer, runWithPauseResume, stream, take, takeWhile, validate, validateOrThrow, withSignal, xxhash, zeroUsage };
|
|
59
|
+
export { AISpan, APPROVAL_PAUSE_KIND, AWAKEABLE_PAUSE_KIND, AgentCancellingEvent, AgentEndEvent, AgentErrorEvent, AgentEvaluatorConvergedEvent, AgentEvaluatorIterationEvent, AgentEvent, AgentFanOutMergedEvent, AgentFanOutSpawnedEvent, AgentFollowUpQueuedEvent, AgentLateralLeakDetectedEvent, AgentModelFellbackEvent, AgentProgressReadEvent, AgentProgressWrittenEvent, AgentRegistryEntry, AgentResult, AgentStartEvent, AgentSteeredEvent, AnyValue, ApprovalPauseValue, AssistantMessage, AsyncContext, AudioContent, AuthTokenRecord, AuthTokenStore, AwakeablePauseValue, Barrier, Block, Channel, ChannelKind, Checkpoint, CheckpointConflictError, CheckpointId, CheckpointMetadata, CheckpointPutOptions, CheckpointStore, CheckpointTuple, CompletedToolCall, ComposeProviderMiddleware, ContentChunk, ContextCompactedEvent, Cost, Directive, DirectiveOptions, Dispatch, EmbedOptions, EmbedderProvider, EntityRole, Ephemeral, Episode, EpisodicMemoryStore, EvalSample, EvalScore, EvalScorer, Fact, FanOutChildMetadata, FileContent, FinishReason, GraphEntity, GuardrailTrippedEvent, Handoff, HandoffEvent, HandoffFilter, HandoffInputFilterDescriptor, HandoffRecord, HandoffSecretsInheritance, ImageContent, InboundSanitizationPolicy, Insight, LateralLeakVector, LatestValue, ListAggregate, ListOptions, LocalProviderTrust, LogFields, LogLevel, Logger, MODEL_HINTS, MemoryGuardTier, MemoryHit, MemoryKind, MemoryMetadata, MemoryOwner, MemoryProvenance, MemoryRecord, MemorySearchOptions, MemoryStatus, MemoryStore, Message, MessageContent, MessageRef, MessageRole, ModelHint, ModelSpec, ModelUsage, NODEJS_INSPECT_CUSTOM, NOOP_LOGGER, NOOP_TRACER, OAuthServerRecord, OAuthServerStore, OllamaTrust, OutputSpec, PAUSE_SIGNAL_BRAND, PauseResumeScope, PauseSignal, PendingWrite, ProceduralMemoryStore, ProgressArtifactRef, Provider, ProviderCachePolicy, ProviderCapabilities, ProviderError, ProviderErrorKind, ProviderEvent, ProviderLike, ProviderMiddleware, ProviderRequest, ProviderRequestMetadata, ProviderResponse, ReasoningContent, ReasoningContentMeta, ReasoningContract, ReasoningDeltaEvent, ReasoningRetention, RecoveryHint, RedactionInput, RedactionOutput, RedactionValidator, Reducer, ResolvedTool, ResponseMetadata, ResultHandle, Rule, RunContext, RunError, RunState, RunStateUsageByModel, RunStatus, RunStep, RunStepProviderResponse, RunTaintSummary, SECRET_VALUE_BRAND, SENSITIVITY_ORDER, Sandbox, SandboxCode, SandboxPolicy, SandboxResult, SandboxRunOptions, SecretMetadata, SecretRef, SecretResolver, SecretResolverContext, SecretValue, SecretValueOptions, SecretValueStatic, SecretsSetOptions, SecretsStore, SemanticMemoryStore, Sensitivity, SessionAuditEntry, SessionListOptions, SessionMemoryStore, SessionMessageWithMetadata, SessionMetadata, SessionScope, SessionStore, SessionStoreExt, SessionWorkflowRun, SharedMemoryStore, SideEffectClass, SpanAttributeValue, SpanAttributes, SpanStatus, SpanType, StartSpanOptions, StepEndEvent, StepStartEvent, StopCondition, Stream, SystemMessage, TIMER_PAUSE_KIND, TextCompleteEvent, TextContent, TextDeltaEvent, TimerPauseValue, TodoItem, TokenCounter, Tool, ToolApproval, ToolApprovalDeniedEvent, ToolApprovalGrantedEvent, ToolApprovalRequestedEvent, ToolCall, ToolCallDeltaEvent, ToolCallEndEvent, ToolCallStartEvent, ToolChoice, ToolDefinition, ToolDefinitionExample, ToolError, ToolErrorKind, ToolExample, ToolExecuteEndEvent, ToolExecuteErrorEvent, ToolExecutePartialEvent, ToolExecuteProgressEvent, ToolExecuteStartEvent, ToolExecutionContext, ToolMessage, ToolOutcome, ToolResult, ToolReturn, ToolSecretsAccessor, ToolSource, ToolTrustClass, Tracer, TriggerState, TriggerStore, TruncationStrategy, Usage, UsageAccumulator, UsageSnapshot, UserMessage, VERSION, ValidationResult, VerifierResultEvent, WorkflowChannelUpdateEvent, WorkflowCheckpointWrittenEvent, WorkflowCustomEvent, WorkflowEndEvent, WorkflowErrorEvent, WorkflowEvent, WorkflowResumedEvent, WorkflowStartEvent, WorkflowStepEndEvent, WorkflowStepStartEvent, WorkflowSuspendedEvent, WorkflowTaskEndEvent, WorkflowTaskStartEvent, WorkingMemoryStore, ZodLikeError, ZodLikeSafeParseResult, ZodLikeSchema, acceptsSensitivity, and, anyValue, assertNever, awaitExternal, barrier, collect, createAsyncContext, dispatch, ephemeral, filter, flattenUsageByModel, hasToolCall, isApprovalPauseValue, isAwakeablePauseValue, isPauseSignal, isStepCount, isTerminal, isTimerPauseValue, latestValue, listAggregate, mapStream, md5, merge, not, or, pause, reducer, requestApproval, runWithPauseResume, sleepFor, sleepUntil, stream, take, takeWhile, validate, validateOrThrow, withSignal, xxhash, zeroUsage };
|
|
59
60
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYa,OAAA"}
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,9 @@ import { anyValue, barrier, ephemeral, latestValue, listAggregate, reducer, stre
|
|
|
2
2
|
import { Directive } from "./channels/directive.js";
|
|
3
3
|
import { Dispatch, dispatch } from "./channels/dispatch.js";
|
|
4
4
|
import { PAUSE_SIGNAL_BRAND, PauseSignal, isPauseSignal, pause, runWithPauseResume } from "./channels/pause.js";
|
|
5
|
+
import { APPROVAL_PAUSE_KIND, AWAKEABLE_PAUSE_KIND, TIMER_PAUSE_KIND, awaitExternal, isApprovalPauseValue, isAwakeablePauseValue, isTimerPauseValue, requestApproval, sleepFor, sleepUntil } from "./channels/durable.js";
|
|
5
6
|
import "./channels/index.js";
|
|
7
|
+
import { CheckpointConflictError } from "./contracts/checkpoint-store.js";
|
|
6
8
|
import { NOOP_LOGGER } from "./contracts/logger.js";
|
|
7
9
|
import { MODEL_HINTS } from "./contracts/preferred-model.js";
|
|
8
10
|
import { NODEJS_INSPECT_CUSTOM, SECRET_VALUE_BRAND } from "./contracts/secret-value.js";
|
|
@@ -21,7 +23,7 @@ import "./utils/index.js";
|
|
|
21
23
|
|
|
22
24
|
//#region src/index.ts
|
|
23
25
|
/**
|
|
24
|
-
* @graphorin/core
|
|
26
|
+
* @graphorin/core - types, contracts, and utilities for the Graphorin
|
|
25
27
|
* framework. Dependency-free root package every other `@graphorin/*`
|
|
26
28
|
* package depends on.
|
|
27
29
|
*
|
|
@@ -31,8 +33,8 @@ import "./utils/index.js";
|
|
|
31
33
|
* @packageDocumentation
|
|
32
34
|
*/
|
|
33
35
|
/** Canonical version constant. Mirrors the `package.json` version. */
|
|
34
|
-
const VERSION = "0.
|
|
36
|
+
const VERSION = "0.6.0";
|
|
35
37
|
|
|
36
38
|
//#endregion
|
|
37
|
-
export { Directive, Dispatch, MODEL_HINTS, NODEJS_INSPECT_CUSTOM, NOOP_LOGGER, NOOP_TRACER, PAUSE_SIGNAL_BRAND, PauseSignal, SECRET_VALUE_BRAND, SENSITIVITY_ORDER, VERSION, acceptsSensitivity, and, anyValue, assertNever, barrier, collect, createAsyncContext, dispatch, ephemeral, filter, flattenUsageByModel, hasToolCall, isPauseSignal, isStepCount, isTerminal, latestValue, listAggregate, mapStream, md5, merge, not, or, pause, reducer, runWithPauseResume, stream, take, takeWhile, validate, validateOrThrow, withSignal, xxhash, zeroUsage };
|
|
39
|
+
export { APPROVAL_PAUSE_KIND, AWAKEABLE_PAUSE_KIND, CheckpointConflictError, Directive, Dispatch, MODEL_HINTS, NODEJS_INSPECT_CUSTOM, NOOP_LOGGER, NOOP_TRACER, PAUSE_SIGNAL_BRAND, PauseSignal, SECRET_VALUE_BRAND, SENSITIVITY_ORDER, TIMER_PAUSE_KIND, VERSION, acceptsSensitivity, and, anyValue, assertNever, awaitExternal, barrier, collect, createAsyncContext, dispatch, ephemeral, filter, flattenUsageByModel, hasToolCall, isApprovalPauseValue, isAwakeablePauseValue, isPauseSignal, isStepCount, isTerminal, isTimerPauseValue, latestValue, listAggregate, mapStream, md5, merge, not, or, pause, reducer, requestApproval, runWithPauseResume, sleepFor, sleepUntil, stream, take, takeWhile, validate, validateOrThrow, withSignal, xxhash, zeroUsage };
|
|
38
40
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["/**\n * @graphorin/core
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["/**\n * @graphorin/core - types, contracts, and utilities for the Graphorin\n * framework. Dependency-free root package every other `@graphorin/*`\n * package depends on.\n *\n * The full documentation lives in the package `README.md` and the\n * sub-module barrels (`./types`, `./contracts`, `./utils`, `./channels`).\n *\n * @packageDocumentation\n */\n\n/** Canonical version constant. Mirrors the `package.json` version. */\nexport const VERSION = '0.6.0';\n\nexport * from './channels/index.js';\nexport * from './contracts/index.js';\nexport * from './types/index.js';\nexport * from './utils/index.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,MAAa,UAAU"}
|
|
@@ -18,7 +18,7 @@ import { RunError, RunState, RunStatus } from "./run.js";
|
|
|
18
18
|
*
|
|
19
19
|
* @stable
|
|
20
20
|
*/
|
|
21
|
-
type AgentEvent<TOutput = string> = AgentStartEvent | StepStartEvent | TextDeltaEvent | TextCompleteEvent | ReasoningDeltaEvent | ToolCallStartEvent | ToolCallDeltaEvent | ToolCallEndEvent | ToolExecuteStartEvent | ToolExecuteProgressEvent | ToolExecutePartialEvent | ToolExecuteEndEvent | ToolExecuteErrorEvent | ToolApprovalRequestedEvent | ToolApprovalGrantedEvent | ToolApprovalDeniedEvent | ContextCompactedEvent | HandoffEvent | AgentSteeredEvent | AgentFollowUpQueuedEvent | AgentCancellingEvent | AgentModelFellbackEvent | AgentFanOutSpawnedEvent | AgentFanOutMergedEvent | AgentEvaluatorIterationEvent | AgentEvaluatorConvergedEvent | AgentProgressWrittenEvent | AgentProgressReadEvent | AgentLateralLeakDetectedEvent | FileGeneratedEvent | SourceCitedEvent | StepEndEvent | GuardrailTrippedEvent | AgentEndEvent<TOutput> | AgentErrorEvent;
|
|
21
|
+
type AgentEvent<TOutput = string> = AgentStartEvent | StepStartEvent | TextDeltaEvent | TextCompleteEvent | ReasoningDeltaEvent | ToolCallStartEvent | ToolCallDeltaEvent | ToolCallEndEvent | ToolExecuteStartEvent | ToolExecuteProgressEvent | ToolExecutePartialEvent | ToolExecuteEndEvent | ToolExecuteErrorEvent | ToolApprovalRequestedEvent | ToolApprovalGrantedEvent | ToolApprovalDeniedEvent | ContextCompactedEvent | HandoffEvent | AgentSteeredEvent | AgentFollowUpQueuedEvent | AgentCancellingEvent | AgentModelFellbackEvent | AgentFanOutSpawnedEvent | AgentFanOutMergedEvent | AgentEvaluatorIterationEvent | AgentEvaluatorConvergedEvent | AgentProgressWrittenEvent | AgentProgressReadEvent | AgentLateralLeakDetectedEvent | FileGeneratedEvent | SourceCitedEvent | StepEndEvent | GuardrailTrippedEvent | VerifierResultEvent | AgentEndEvent<TOutput> | AgentErrorEvent;
|
|
22
22
|
/** @stable */
|
|
23
23
|
interface AgentStartEvent {
|
|
24
24
|
readonly type: 'agent.start';
|
|
@@ -159,7 +159,7 @@ interface HandoffEvent {
|
|
|
159
159
|
readonly reason?: string;
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
|
-
* A provider-generated file surfaced from the model stream (AG-26)
|
|
162
|
+
* A provider-generated file surfaced from the model stream (AG-26) -
|
|
163
163
|
* previously these `'file'` provider events were silently dropped.
|
|
164
164
|
*
|
|
165
165
|
* @stable
|
|
@@ -170,7 +170,7 @@ interface FileGeneratedEvent {
|
|
|
170
170
|
readonly data: Uint8Array;
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
|
-
* A provider citation surfaced from the model stream (AG-26)
|
|
173
|
+
* A provider citation surfaced from the model stream (AG-26) -
|
|
174
174
|
* previously these `'source'` provider events were silently dropped.
|
|
175
175
|
*
|
|
176
176
|
* @stable
|
|
@@ -193,6 +193,20 @@ interface GuardrailTrippedEvent {
|
|
|
193
193
|
readonly phase: 'input' | 'output';
|
|
194
194
|
readonly reason?: string;
|
|
195
195
|
}
|
|
196
|
+
/**
|
|
197
|
+
* Outcome of a terminal-response verifier check (C3). Emitted once per
|
|
198
|
+
* verifier per verification round; a failed verifier's `feedback` is
|
|
199
|
+
* also appended to the transcript so the model can address it.
|
|
200
|
+
*
|
|
201
|
+
* @stable
|
|
202
|
+
*/
|
|
203
|
+
interface VerifierResultEvent {
|
|
204
|
+
readonly type: 'verifier.result';
|
|
205
|
+
readonly verifierId: string;
|
|
206
|
+
readonly ok: boolean;
|
|
207
|
+
readonly feedback?: string;
|
|
208
|
+
readonly stepNumber: number;
|
|
209
|
+
}
|
|
196
210
|
/** @stable */
|
|
197
211
|
interface AgentEndEvent<TOutput = string> {
|
|
198
212
|
readonly type: 'agent.end';
|
|
@@ -384,14 +398,14 @@ interface AgentProgressReadEvent {
|
|
|
384
398
|
* Lateral-leak vector classification surfaced on
|
|
385
399
|
* {@link AgentLateralLeakDetectedEvent.vector}.
|
|
386
400
|
*
|
|
387
|
-
* - `'causality-laundering'`
|
|
401
|
+
* - `'causality-laundering'` - the assistant message references
|
|
388
402
|
* information about a denied earlier action via an indirect chain.
|
|
389
|
-
* - `'commentary-phase'`
|
|
403
|
+
* - `'commentary-phase'` - operator-only commentary content was
|
|
390
404
|
* about to escape the session-output boundary.
|
|
391
|
-
* - `'sideways-injection'`
|
|
405
|
+
* - `'sideways-injection'` - a low-trust child of an
|
|
392
406
|
* `Agent.fanOut(...)` `'judge-merge'` strategy contributed
|
|
393
407
|
* disproportionately to the merged output.
|
|
394
|
-
* - `'protocol-header'`
|
|
408
|
+
* - `'protocol-header'` - control-character bytes or a
|
|
395
409
|
* protocol-frame separator was about to escape one of the
|
|
396
410
|
* internal-service delivery boundaries.
|
|
397
411
|
*
|
|
@@ -422,7 +436,7 @@ interface AgentLateralLeakDetectedEvent {
|
|
|
422
436
|
* `agent.run(...)` and carried by the `agent.end` event.
|
|
423
437
|
*
|
|
424
438
|
* A failed run **resolves** with `status: 'failed'` and the error in
|
|
425
|
-
* `error`
|
|
439
|
+
* `error` - `agent.run(...)` does not reject on run failure (only on
|
|
426
440
|
* configuration/usage errors thrown before the loop starts). A suspended
|
|
427
441
|
* run resolves with `status: 'awaiting_approval'` and a resumable
|
|
428
442
|
* `state` (AG-9).
|
|
@@ -438,12 +452,12 @@ interface AgentResult<TOutput = string> {
|
|
|
438
452
|
readonly error?: RunError;
|
|
439
453
|
/**
|
|
440
454
|
* The run's final state. Resumable when `status === 'awaiting_approval'`
|
|
441
|
-
*
|
|
455
|
+
* - pass it back to `agent.run(...)` / `agent.stream(...)` (optionally
|
|
442
456
|
* round-tripped through `runStateToJSON`/`runStateFromJSON` for
|
|
443
457
|
* durability). Treat as an immutable snapshot.
|
|
444
458
|
*/
|
|
445
459
|
readonly state: RunState;
|
|
446
460
|
}
|
|
447
461
|
//#endregion
|
|
448
|
-
export { AgentCancellingEvent, AgentEndEvent, AgentErrorEvent, AgentEvaluatorConvergedEvent, AgentEvaluatorIterationEvent, AgentEvent, AgentFanOutMergedEvent, AgentFanOutSpawnedEvent, AgentFollowUpQueuedEvent, AgentLateralLeakDetectedEvent, AgentModelFellbackEvent, AgentProgressReadEvent, AgentProgressWrittenEvent, AgentResult, AgentStartEvent, AgentSteeredEvent, ContextCompactedEvent, FanOutChildMetadata, GuardrailTrippedEvent, HandoffEvent, LateralLeakVector, ProgressArtifactRef, ReasoningDeltaEvent, StepEndEvent, StepStartEvent, TextCompleteEvent, TextDeltaEvent, ToolApprovalDeniedEvent, ToolApprovalGrantedEvent, ToolApprovalRequestedEvent, ToolCallDeltaEvent, ToolCallEndEvent, ToolCallStartEvent, ToolExecuteEndEvent, ToolExecuteErrorEvent, ToolExecutePartialEvent, ToolExecuteProgressEvent, ToolExecuteStartEvent };
|
|
462
|
+
export { AgentCancellingEvent, AgentEndEvent, AgentErrorEvent, AgentEvaluatorConvergedEvent, AgentEvaluatorIterationEvent, AgentEvent, AgentFanOutMergedEvent, AgentFanOutSpawnedEvent, AgentFollowUpQueuedEvent, AgentLateralLeakDetectedEvent, AgentModelFellbackEvent, AgentProgressReadEvent, AgentProgressWrittenEvent, AgentResult, AgentStartEvent, AgentSteeredEvent, ContextCompactedEvent, FanOutChildMetadata, GuardrailTrippedEvent, HandoffEvent, LateralLeakVector, ProgressArtifactRef, ReasoningDeltaEvent, StepEndEvent, StepStartEvent, TextCompleteEvent, TextDeltaEvent, ToolApprovalDeniedEvent, ToolApprovalGrantedEvent, ToolApprovalRequestedEvent, ToolCallDeltaEvent, ToolCallEndEvent, ToolCallStartEvent, ToolExecuteEndEvent, ToolExecuteErrorEvent, ToolExecutePartialEvent, ToolExecuteProgressEvent, ToolExecuteStartEvent, VerifierResultEvent };
|
|
449
463
|
//# sourceMappingURL=agent-event.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-event.d.ts","names":[],"sources":["../../src/types/agent-event.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAkBA;;;;;;;;;;;;AAYI,KAZQ,UAYR,CAAA,UAAA,MAAA,CAAA,GAXA,eAWA,GAVA,cAUA,GATA,cASA,GARA,iBAQA,GAPA,mBAOA,GANA,kBAMA,GALA,kBAKA,GAJA,gBAIA,GAHA,qBAGA,GAFA,wBAEA,GADA,uBACA,GAAA,mBAAA,GACA,qBADA,GAEA,0BAFA,GAGA,wBAHA,GAIA,uBAJA,GAKA,qBALA,GAMA,YANA,GAOA,iBAPA,GAQA,wBARA,GASA,oBATA,GAUA,uBAVA,GAWA,uBAXA,GAYA,sBAZA,GAaA,4BAbA,GAcA,4BAdA,GAeA,yBAfA,GAgBA,sBAhBA,GAiBA,6BAjBA,GAkBA,kBAlBA,GAmBA,gBAnBA,GAoBA,YApBA,GAqBA,qBArBA,GAsBA,
|
|
1
|
+
{"version":3,"file":"agent-event.d.ts","names":[],"sources":["../../src/types/agent-event.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAkBA;;;;;;;;;;;;AAYI,KAZQ,UAYR,CAAA,UAAA,MAAA,CAAA,GAXA,eAWA,GAVA,cAUA,G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;UAiBA,4BAAA;;;;;;;;;;;;;;;UAgBA,mBAAA;;;;;;kBAMC;;;;;;;;;UAUD,yBAAA;;;;;gBAKD;;;;;;;UAQC,sBAAA;;;;;iBAKA,cAAc;;;;;;;;;;;;;;;;;;;;;KAsBnB,iBAAA;;;;;;;UAYK,6BAAA;;;;;mBAKE;;2BAEQ;;;;;;;;;;;;;;;;;;UAmBV;mBACE;kBACD;;mBAEC;;mBAEA;;;;;;;kBAOD"}
|
package/dist/types/handoff.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { Message } from "./message.js";
|
|
|
10
10
|
* `HandoffFilter` without an agent dependency.
|
|
11
11
|
*
|
|
12
12
|
* The default for the agent runtime is `lastN(10)` (per the security-first
|
|
13
|
-
* compose policy). Filters should be **pure**
|
|
13
|
+
* compose policy). Filters should be **pure** - they receive a frozen
|
|
14
14
|
* history and return a fresh array.
|
|
15
15
|
*
|
|
16
16
|
* @stable
|
|
@@ -18,7 +18,7 @@ import { Message } from "./message.js";
|
|
|
18
18
|
type HandoffFilter = (history: readonly Message[]) => readonly Message[];
|
|
19
19
|
/**
|
|
20
20
|
* Declarative handoff target. The value carries a reference to the target
|
|
21
|
-
* agent (`agentId`
|
|
21
|
+
* agent (`agentId` - looked up at runtime via the `AgentRegistry`) plus
|
|
22
22
|
* optional metadata used by the runtime when constructing the
|
|
23
23
|
* `transfer_to_<agentName>` virtual tool.
|
|
24
24
|
*
|
|
@@ -40,7 +40,7 @@ interface Handoff {
|
|
|
40
40
|
* the JSONL session export so a replay can re-construct the filter
|
|
41
41
|
* stack even after the runtime filter implementations evolve.
|
|
42
42
|
*
|
|
43
|
-
* The discriminator `kind` is an open string union
|
|
43
|
+
* The discriminator `kind` is an open string union - well-known kinds
|
|
44
44
|
* include `'full' | 'last-n' | 'last-user' | 'summary' |
|
|
45
45
|
* 'sensitivity-filter' | 'compose' | 'custom'`. The accompanying `meta`
|
|
46
46
|
* carries kind-specific data (for example `{ n: 10 }` for `'last-n'`,
|
|
@@ -57,14 +57,14 @@ interface HandoffInputFilterDescriptor {
|
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* How the parent's secrets surface is propagated to the sub-agent
|
|
60
|
-
* during a handoff. The default
|
|
61
|
-
* inherited list
|
|
60
|
+
* during a handoff. The default - `'inherit-allowlist'` with an empty
|
|
61
|
+
* inherited list - applies the principle of least authority: the sub-
|
|
62
62
|
* agent inherits only the keys the operator has explicitly named.
|
|
63
63
|
*
|
|
64
|
-
* - `'inherit-allowlist'`
|
|
64
|
+
* - `'inherit-allowlist'` - inherit the keys named in
|
|
65
65
|
* `inheritedSecrets`. Empty list = no inheritance.
|
|
66
|
-
* - `'isolated'`
|
|
67
|
-
* - `'forward-explicit'`
|
|
66
|
+
* - `'isolated'` - the sub-agent runs with an empty secrets surface.
|
|
67
|
+
* - `'forward-explicit'` - every secret access on the sub-agent's side
|
|
68
68
|
* must be explicitly broadened by the operator with a recorded
|
|
69
69
|
* `secretsOverrideReason`.
|
|
70
70
|
*
|
|
@@ -98,7 +98,7 @@ interface HandoffRecord {
|
|
|
98
98
|
/**
|
|
99
99
|
* Keys inherited by the sub-agent under the
|
|
100
100
|
* `'inherit-allowlist'` / `'forward-explicit'` policies. Never the
|
|
101
|
-
* secret values themselves
|
|
101
|
+
* secret values themselves - only the public key names.
|
|
102
102
|
*/
|
|
103
103
|
readonly inheritedSecrets?: ReadonlyArray<string>;
|
|
104
104
|
/**
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { SENSITIVITY_ORDER, Sensitivity, acceptsSensitivity } from "./sensitivity.js";
|
|
2
|
-
import { Block, EntityRole, Episode, Fact, GraphEntity, Insight, MemoryHit, MemoryKind, MemoryMetadata, MemoryProvenance, MemoryRecord, MemorySearchOptions, MemoryStatus, Rule } from "./memory.js";
|
|
2
|
+
import { Block, EntityRole, Episode, Fact, GraphEntity, Insight, MemoryHit, MemoryKind, MemoryMetadata, MemoryOwner, MemoryProvenance, MemoryRecord, MemorySearchOptions, MemoryStatus, Rule } from "./memory.js";
|
|
3
3
|
import { ToolCall } from "./tool-call.js";
|
|
4
4
|
import { AssistantMessage, AudioContent, FileContent, ImageContent, Message, MessageContent, MessageRole, ReasoningContent, ReasoningContentMeta, SystemMessage, TextContent, ToolMessage, UserMessage } from "./message.js";
|
|
5
5
|
import { SessionScope } from "./session-scope.js";
|
|
6
6
|
import { Cost, ModelUsage, Usage, UsageAccumulator, UsageSnapshot, zeroUsage } from "./usage.js";
|
|
7
7
|
import { Handoff, HandoffFilter, HandoffInputFilterDescriptor, HandoffRecord, HandoffSecretsInheritance } from "./handoff.js";
|
|
8
|
-
import { CompletedToolCall, ContentChunk, InboundSanitizationPolicy, MemoryGuardTier, ResultHandle, SandboxPolicy, SideEffectClass, ToolApproval, ToolError, ToolErrorKind, ToolOutcome, ToolResult, ToolSource, ToolTrustClass, TruncationStrategy } from "./tool.js";
|
|
9
|
-
import { RunContext, RunError, RunState, RunStateUsageByModel, RunStatus, RunStep, RunTaintSummary, flattenUsageByModel } from "./run.js";
|
|
10
|
-
import { AgentCancellingEvent, AgentEndEvent, AgentErrorEvent, AgentEvaluatorConvergedEvent, AgentEvaluatorIterationEvent, AgentEvent, AgentFanOutMergedEvent, AgentFanOutSpawnedEvent, AgentFollowUpQueuedEvent, AgentLateralLeakDetectedEvent, AgentModelFellbackEvent, AgentProgressReadEvent, AgentProgressWrittenEvent, AgentResult, AgentStartEvent, AgentSteeredEvent, ContextCompactedEvent, FanOutChildMetadata, GuardrailTrippedEvent, HandoffEvent, LateralLeakVector, ProgressArtifactRef, ReasoningDeltaEvent, StepEndEvent, StepStartEvent, TextCompleteEvent, TextDeltaEvent, ToolApprovalDeniedEvent, ToolApprovalGrantedEvent, ToolApprovalRequestedEvent, ToolCallDeltaEvent, ToolCallEndEvent, ToolCallStartEvent, ToolExecuteEndEvent, ToolExecuteErrorEvent, ToolExecutePartialEvent, ToolExecuteProgressEvent, ToolExecuteStartEvent } from "./agent-event.js";
|
|
8
|
+
import { CompletedToolCall, ContentChunk, InboundSanitizationPolicy, MemoryGuardTier, RecoveryHint, ResultHandle, SandboxPolicy, SideEffectClass, ToolApproval, ToolError, ToolErrorKind, ToolOutcome, ToolResult, ToolSource, ToolTrustClass, TruncationStrategy } from "./tool.js";
|
|
9
|
+
import { RunContext, RunError, RunState, RunStateUsageByModel, RunStatus, RunStep, RunStepProviderResponse, RunTaintSummary, TodoItem, flattenUsageByModel } from "./run.js";
|
|
10
|
+
import { AgentCancellingEvent, AgentEndEvent, AgentErrorEvent, AgentEvaluatorConvergedEvent, AgentEvaluatorIterationEvent, AgentEvent, AgentFanOutMergedEvent, AgentFanOutSpawnedEvent, AgentFollowUpQueuedEvent, AgentLateralLeakDetectedEvent, AgentModelFellbackEvent, AgentProgressReadEvent, AgentProgressWrittenEvent, AgentResult, AgentStartEvent, AgentSteeredEvent, ContextCompactedEvent, FanOutChildMetadata, GuardrailTrippedEvent, HandoffEvent, LateralLeakVector, ProgressArtifactRef, ReasoningDeltaEvent, StepEndEvent, StepStartEvent, TextCompleteEvent, TextDeltaEvent, ToolApprovalDeniedEvent, ToolApprovalGrantedEvent, ToolApprovalRequestedEvent, ToolCallDeltaEvent, ToolCallEndEvent, ToolCallStartEvent, ToolExecuteEndEvent, ToolExecuteErrorEvent, ToolExecutePartialEvent, ToolExecuteProgressEvent, ToolExecuteStartEvent, VerifierResultEvent } from "./agent-event.js";
|
|
11
11
|
import { StopCondition, and, hasToolCall, isStepCount, isTerminal, not, or } from "./stop-condition.js";
|
|
12
12
|
import { WorkflowChannelUpdateEvent, WorkflowCheckpointWrittenEvent, WorkflowCustomEvent, WorkflowEndEvent, WorkflowErrorEvent, WorkflowEvent, WorkflowResumedEvent, WorkflowStartEvent, WorkflowStepEndEvent, WorkflowStepStartEvent, WorkflowSuspendedEvent, WorkflowTaskEndEvent, WorkflowTaskStartEvent } from "./workflow-event.js";
|
|
13
|
-
export { type AgentCancellingEvent, type AgentEndEvent, type AgentErrorEvent, type AgentEvaluatorConvergedEvent, type AgentEvaluatorIterationEvent, type AgentEvent, type AgentFanOutMergedEvent, type AgentFanOutSpawnedEvent, type AgentFollowUpQueuedEvent, type AgentLateralLeakDetectedEvent, type AgentModelFellbackEvent, type AgentProgressReadEvent, type AgentProgressWrittenEvent, type AgentResult, type AgentStartEvent, type AgentSteeredEvent, type AssistantMessage, type AudioContent, type Block, type CompletedToolCall, type ContentChunk, type ContextCompactedEvent, type Cost, type EntityRole, type Episode, type Fact, type FanOutChildMetadata, type FileContent, type GraphEntity, type GuardrailTrippedEvent, type Handoff, type HandoffEvent, type HandoffFilter, type HandoffInputFilterDescriptor, type HandoffRecord, type HandoffSecretsInheritance, type ImageContent, type InboundSanitizationPolicy, type Insight, type LateralLeakVector, type MemoryGuardTier, type MemoryHit, type MemoryKind, type MemoryMetadata, type MemoryProvenance, type MemoryRecord, type MemorySearchOptions, type MemoryStatus, type Message, type MessageContent, type MessageRole, type ModelUsage, type ProgressArtifactRef, type ReasoningContent, type ReasoningContentMeta, type ReasoningDeltaEvent, type ResultHandle, type Rule, type RunContext, type RunError, type RunState, type RunStateUsageByModel, type RunStatus, type RunStep, type RunTaintSummary, SENSITIVITY_ORDER, type SandboxPolicy, type Sensitivity, type SessionScope, type SideEffectClass, type StepEndEvent, type StepStartEvent, type StopCondition, type SystemMessage, type TextCompleteEvent, type TextContent, type TextDeltaEvent, type ToolApproval, type ToolApprovalDeniedEvent, type ToolApprovalGrantedEvent, type ToolApprovalRequestedEvent, type ToolCall, type ToolCallDeltaEvent, type ToolCallEndEvent, type ToolCallStartEvent, type ToolError, type ToolErrorKind, type ToolExecuteEndEvent, type ToolExecuteErrorEvent, type ToolExecutePartialEvent, type ToolExecuteProgressEvent, type ToolExecuteStartEvent, type ToolMessage, type ToolOutcome, type ToolResult, type ToolSource, type ToolTrustClass, type TruncationStrategy, type Usage, type UsageAccumulator, type UsageSnapshot, type UserMessage, type WorkflowChannelUpdateEvent, type WorkflowCheckpointWrittenEvent, type WorkflowCustomEvent, type WorkflowEndEvent, type WorkflowErrorEvent, type WorkflowEvent, type WorkflowResumedEvent, type WorkflowStartEvent, type WorkflowStepEndEvent, type WorkflowStepStartEvent, type WorkflowSuspendedEvent, type WorkflowTaskEndEvent, type WorkflowTaskStartEvent, acceptsSensitivity, and, flattenUsageByModel, hasToolCall, isStepCount, isTerminal, not, or, zeroUsage };
|
|
13
|
+
export { type AgentCancellingEvent, type AgentEndEvent, type AgentErrorEvent, type AgentEvaluatorConvergedEvent, type AgentEvaluatorIterationEvent, type AgentEvent, type AgentFanOutMergedEvent, type AgentFanOutSpawnedEvent, type AgentFollowUpQueuedEvent, type AgentLateralLeakDetectedEvent, type AgentModelFellbackEvent, type AgentProgressReadEvent, type AgentProgressWrittenEvent, type AgentResult, type AgentStartEvent, type AgentSteeredEvent, type AssistantMessage, type AudioContent, type Block, type CompletedToolCall, type ContentChunk, type ContextCompactedEvent, type Cost, type EntityRole, type Episode, type Fact, type FanOutChildMetadata, type FileContent, type GraphEntity, type GuardrailTrippedEvent, type Handoff, type HandoffEvent, type HandoffFilter, type HandoffInputFilterDescriptor, type HandoffRecord, type HandoffSecretsInheritance, type ImageContent, type InboundSanitizationPolicy, type Insight, type LateralLeakVector, type MemoryGuardTier, type MemoryHit, type MemoryKind, type MemoryMetadata, type MemoryOwner, type MemoryProvenance, type MemoryRecord, type MemorySearchOptions, type MemoryStatus, type Message, type MessageContent, type MessageRole, type ModelUsage, type ProgressArtifactRef, type ReasoningContent, type ReasoningContentMeta, type ReasoningDeltaEvent, type RecoveryHint, type ResultHandle, type Rule, type RunContext, type RunError, type RunState, type RunStateUsageByModel, type RunStatus, type RunStep, type RunStepProviderResponse, type RunTaintSummary, SENSITIVITY_ORDER, type SandboxPolicy, type Sensitivity, type SessionScope, type SideEffectClass, type StepEndEvent, type StepStartEvent, type StopCondition, type SystemMessage, type TextCompleteEvent, type TextContent, type TextDeltaEvent, type TodoItem, type ToolApproval, type ToolApprovalDeniedEvent, type ToolApprovalGrantedEvent, type ToolApprovalRequestedEvent, type ToolCall, type ToolCallDeltaEvent, type ToolCallEndEvent, type ToolCallStartEvent, type ToolError, type ToolErrorKind, type ToolExecuteEndEvent, type ToolExecuteErrorEvent, type ToolExecutePartialEvent, type ToolExecuteProgressEvent, type ToolExecuteStartEvent, type ToolMessage, type ToolOutcome, type ToolResult, type ToolSource, type ToolTrustClass, type TruncationStrategy, type Usage, type UsageAccumulator, type UsageSnapshot, type UserMessage, type VerifierResultEvent, type WorkflowChannelUpdateEvent, type WorkflowCheckpointWrittenEvent, type WorkflowCustomEvent, type WorkflowEndEvent, type WorkflowErrorEvent, type WorkflowEvent, type WorkflowResumedEvent, type WorkflowStartEvent, type WorkflowStepEndEvent, type WorkflowStepStartEvent, type WorkflowSuspendedEvent, type WorkflowTaskEndEvent, type WorkflowTaskStartEvent, acceptsSensitivity, and, flattenUsageByModel, hasToolCall, isStepCount, isTerminal, not, or, zeroUsage };
|