stitchkit 0.127.0 → 0.128.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 +137 -6
- package/dist/agent-executor/acp/v1-connect.d.ts +9 -1
- package/dist/agent-executor/acp/v1-connect.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-driver.d.ts +8 -2
- package/dist/agent-executor/acp/v1-driver.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-map.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-session.d.ts +8 -0
- package/dist/agent-executor/acp/v1-session.d.ts.map +1 -1
- package/dist/agent-executor/claude/cli-driver.d.ts +4 -0
- package/dist/agent-executor/claude/cli-driver.d.ts.map +1 -1
- package/dist/agent-executor/claude/protocol.d.ts +20 -2
- package/dist/agent-executor/claude/protocol.d.ts.map +1 -1
- package/dist/agent-executor/claude/session.d.ts +2 -1
- package/dist/agent-executor/claude/session.d.ts.map +1 -1
- package/dist/agent-executor/claude/transcript.d.ts +7 -4
- package/dist/agent-executor/claude/transcript.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/driver.d.ts +4 -0
- package/dist/agent-executor/claude-sdk/driver.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/session.d.ts.map +1 -1
- package/dist/agent-executor/codex/driver.d.ts +4 -0
- package/dist/agent-executor/codex/driver.d.ts.map +1 -1
- package/dist/agent-executor/codex/protocol.d.ts +26 -2
- package/dist/agent-executor/codex/protocol.d.ts.map +1 -1
- package/dist/agent-executor/codex/session.d.ts +3 -1
- package/dist/agent-executor/codex/session.d.ts.map +1 -1
- package/dist/agent-executor/image-input.d.ts +71 -0
- package/dist/agent-executor/image-input.d.ts.map +1 -0
- package/dist/agent-executor/session-primitives.d.ts +0 -3
- package/dist/agent-executor/session-primitives.d.ts.map +1 -1
- package/dist/agent-runtime/agent-tool.d.ts +21 -7
- package/dist/agent-runtime/agent-tool.d.ts.map +1 -1
- package/dist/agent-runtime/branch-contract.d.ts +1 -0
- package/dist/agent-runtime/branch-contract.d.ts.map +1 -1
- package/dist/agent-runtime/branch-identities.d.ts +5 -2
- package/dist/agent-runtime/branch-identities.d.ts.map +1 -1
- package/dist/agent-runtime/branch-messages.d.ts +9 -9
- package/dist/agent-runtime/branch-messages.d.ts.map +1 -1
- package/dist/agent-runtime/branch-observations.d.ts +45 -32
- package/dist/agent-runtime/branch-observations.d.ts.map +1 -1
- package/dist/agent-runtime/branch-provider.d.ts +12 -6
- package/dist/agent-runtime/branch-provider.d.ts.map +1 -1
- package/dist/agent-runtime/branch-source.d.ts +13 -1
- package/dist/agent-runtime/branch-source.d.ts.map +1 -1
- package/dist/agent-runtime/child-tools.d.ts +64 -0
- package/dist/agent-runtime/child-tools.d.ts.map +1 -1
- package/dist/agent-runtime/event-search-tools.d.ts +82 -5
- package/dist/agent-runtime/event-search-tools.d.ts.map +1 -1
- package/dist/agent-runtime/invocation-attempt.d.ts +1 -1
- package/dist/agent-runtime/invocation-attempt.d.ts.map +1 -1
- package/dist/agent-runtime/invocation-payload.d.ts +12 -0
- package/dist/agent-runtime/invocation-payload.d.ts.map +1 -1
- package/dist/agent-runtime/invocation-read.d.ts +6 -3
- package/dist/agent-runtime/invocation-read.d.ts.map +1 -1
- package/dist/agent-runtime/invocation-schema.d.ts +50 -8
- package/dist/agent-runtime/invocation-schema.d.ts.map +1 -1
- package/dist/agent-runtime/invocations.d.ts +20 -9
- package/dist/agent-runtime/invocations.d.ts.map +1 -1
- package/dist/agent-runtime/postgres.d.ts.map +1 -1
- package/dist/agent-runtime/schedule-tools.d.ts +30 -0
- package/dist/agent-runtime/schedule-tools.d.ts.map +1 -1
- package/dist/agent-runtime/schemas-invocation-payload.d.ts +48 -0
- package/dist/agent-runtime/schemas-invocation-payload.d.ts.map +1 -0
- package/dist/agent-runtime/sql-events.d.ts.map +1 -1
- package/dist/agent-runtime/sql-session.d.ts +11 -0
- package/dist/agent-runtime/sql-session.d.ts.map +1 -1
- package/dist/agent-runtime/sqlite-transactions.d.ts.map +1 -1
- package/dist/agent-runtime/state-tools.d.ts +55 -0
- package/dist/agent-runtime/state-tools.d.ts.map +1 -1
- package/dist/agent-runtime/store-branch.d.ts.map +1 -1
- package/dist/agent-runtime/store-conformance-lifecycle.d.ts +20 -20
- package/dist/agent-runtime/store-conformance-support.d.ts +10 -10
- package/dist/agent-runtime/store-create.d.ts.map +1 -1
- package/dist/agent-runtime/store-driver-contract.d.ts +12 -0
- package/dist/agent-runtime/store-driver-contract.d.ts.map +1 -1
- package/dist/agent-runtime/store-memory-events.d.ts.map +1 -1
- package/dist/agent-runtime/store.d.ts +7 -0
- package/dist/agent-runtime/store.d.ts.map +1 -1
- package/dist/declaration/declaration.d.ts +6 -3
- package/dist/declaration/declaration.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/acp.d.ts +1 -1
- package/dist/entrypoints/agent-executor/acp.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/acp.js +23 -12
- package/dist/entrypoints/agent-executor/claude-sdk.js +26 -10
- package/dist/entrypoints/agent-executor/claude.js +35 -16
- package/dist/entrypoints/agent-executor/codex.js +81 -21
- package/dist/entrypoints/agent-executor.js +1 -1
- package/dist/entrypoints/agent-runtime/harness.js +5 -6
- package/dist/entrypoints/agent-runtime/openrouter.js +2 -2
- package/dist/entrypoints/agent-runtime/postgres.js +8 -3
- package/dist/entrypoints/agent-runtime/sandbox.js +3 -3
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +4 -4
- package/dist/entrypoints/agent-runtime/sqlite/node.js +4 -4
- package/dist/entrypoints/agent-runtime/testing.js +6 -6
- package/dist/entrypoints/agent-runtime.d.ts +9 -7
- package/dist/entrypoints/agent-runtime.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime.js +246 -199
- package/dist/entrypoints/application/diagnostic-journal.js +4 -4
- package/dist/entrypoints/application/directory-inbox.js +8 -8
- package/dist/entrypoints/cli/publish.js +8 -8
- package/dist/entrypoints/cli.js +10 -9
- package/dist/entrypoints/declaration.js +0 -1
- package/dist/entrypoints/files.js +40 -17
- package/dist/entrypoints/node.js +4 -4
- package/dist/entrypoints/observability.js +1 -1
- package/dist/entrypoints/process.js +1 -1
- package/dist/entrypoints/server.js +7 -7
- package/dist/entrypoints/service-host/macos.js +4 -4
- package/dist/entrypoints/service-host.d.ts +4 -1
- package/dist/entrypoints/service-host.d.ts.map +1 -1
- package/dist/entrypoints/service-host.js +831 -220
- package/dist/entrypoints/spend.js +1 -1
- package/dist/entrypoints/telegram.js +4 -4
- package/dist/entrypoints/tools/agent.js +4 -3
- package/dist/entrypoints/tools/invoker.js +3 -2
- package/dist/entrypoints/tools/mcp.js +4 -3
- package/dist/entrypoints/tools/toolkit.js +6 -5
- package/dist/entrypoints/tools.d.ts +1 -1
- package/dist/entrypoints/tools.d.ts.map +1 -1
- package/dist/entrypoints/tools.js +10 -8
- package/dist/files/directory-appearance.d.ts +20 -9
- package/dist/files/directory-appearance.d.ts.map +1 -1
- package/dist/files/polled-json.d.ts.map +1 -1
- package/dist/files/regular-file.d.ts +15 -5
- package/dist/files/regular-file.d.ts.map +1 -1
- package/dist/{index-z4k0hqp9.js → index-0gqs8ght.js} +106 -24
- package/dist/{index-caywx1c0.js → index-13dnv6d0.js} +107 -10
- package/dist/{index-a725ayvz.js → index-1qwrczr1.js} +1 -1
- package/dist/{index-xtkw9866.js → index-2c5w2d1d.js} +1 -1
- package/dist/{index-g1q7fwn9.js → index-2nwvn7m2.js} +1 -1
- package/dist/{index-4s2w4g37.js → index-3tnwtz38.js} +80 -2
- package/dist/{index-5e0zsbf7.js → index-4j8efqr3.js} +1 -1
- package/dist/{index-p1m9djt6.js → index-5v5vg85s.js} +1 -1
- package/dist/{index-x90w78yz.js → index-673drwkn.js} +23 -8
- package/dist/{index-7xp05h20.js → index-6wp4dn9d.js} +6 -6
- package/dist/{index-0hdm5sx6.js → index-8x22nprv.js} +6 -2
- package/dist/{index-j13gzgdv.js → index-bz3gn6cs.js} +8 -4
- package/dist/{index-d96c1n1q.js → index-c5gp2gh6.js} +20 -19
- package/dist/{index-wbnpa8z6.js → index-d54npte7.js} +4 -4
- package/dist/{index-kmbpej2y.js → index-emgrmavr.js} +102 -61
- package/dist/{index-bbzvrq66.js → index-g3e57qj6.js} +455 -202
- package/dist/index-gf92hc87.js +100 -0
- package/dist/{index-3djgv3ch.js → index-gzny6zsw.js} +25 -10
- package/dist/{index-3b31z0pc.js → index-hj1zq7mh.js} +12 -6
- package/dist/{index-8xr2eq99.js → index-jfecdk1e.js} +3 -3
- package/dist/{index-dvd1qdwa.js → index-ke02kxsr.js} +3 -3
- package/dist/{index-83n766x4.js → index-m18xm96h.js} +15 -9
- package/dist/{index-qnzhmk2s.js → index-n7f89hjw.js} +90 -47
- package/dist/{index-3agqmmrg.js → index-pn5b11ce.js} +7 -9
- package/dist/{index-3gwp8ez6.js → index-pwskmywy.js} +12 -17
- package/dist/{index-9wh98cpa.js → index-rxnyygke.js} +130 -90
- package/dist/{index-0djnptn8.js → index-rzeezh79.js} +10 -3
- package/dist/{index-nbv44x0x.js → index-s2e3h616.js} +137 -36
- package/dist/{index-5zwac8ft.js → index-t7wa7k12.js} +2 -2
- package/dist/{index-xypxnzhp.js → index-v1mxss62.js} +2 -2
- package/dist/index-vgzhw2zk.js +304 -0
- package/dist/{index-jrka9029.js → index-vmbxj75t.js} +2 -2
- package/dist/{index-j516jaaz.js → index-waa6t4zx.js} +49 -2
- package/dist/{index-fcw255hd.js → index-xv9jb84s.js} +2 -2
- package/dist/{index-dwa6pskj.js → index-y065r8g5.js} +82 -43
- package/dist/internal/bounded-file-confirm.d.ts +32 -0
- package/dist/internal/bounded-file-confirm.d.ts.map +1 -0
- package/dist/internal/bounded-file-read.d.ts +10 -7
- package/dist/internal/bounded-file-read.d.ts.map +1 -1
- package/dist/internal/file-observation.d.ts +5 -1
- package/dist/internal/file-observation.d.ts.map +1 -1
- package/dist/internal/process-instance.d.ts +8 -0
- package/dist/internal/process-instance.d.ts.map +1 -1
- package/dist/internal/unix-socket.d.ts +3 -1
- package/dist/internal/unix-socket.d.ts.map +1 -1
- package/dist/server/unix-client.d.ts +7 -0
- package/dist/server/unix-client.d.ts.map +1 -1
- package/dist/service-host/systemd-inspect.d.ts +3 -1
- package/dist/service-host/systemd-inspect.d.ts.map +1 -1
- package/dist/service-host/systemd-render-shared.d.ts +64 -0
- package/dist/service-host/systemd-render-shared.d.ts.map +1 -0
- package/dist/service-host/systemd-render.d.ts +31 -26
- package/dist/service-host/systemd-render.d.ts.map +1 -1
- package/dist/service-host/systemd-timer-render.d.ts +31 -0
- package/dist/service-host/systemd-timer-render.d.ts.map +1 -0
- package/dist/service-host/systemd-timer-rollback.d.ts +26 -0
- package/dist/service-host/systemd-timer-rollback.d.ts.map +1 -0
- package/dist/service-host/systemd-timer.d.ts +82 -0
- package/dist/service-host/systemd-timer.d.ts.map +1 -0
- package/dist/service-host/systemd-unit-ops.d.ts +26 -0
- package/dist/service-host/systemd-unit-ops.d.ts.map +1 -0
- package/dist/service-host/systemd.d.ts +1 -1
- package/dist/service-host/systemd.d.ts.map +1 -1
- package/dist/tools/access.d.ts +30 -1
- package/dist/tools/access.d.ts.map +1 -1
- package/dist/tools/agent.d.ts +2 -2
- package/dist/tools/agent.d.ts.map +1 -1
- package/dist/tools/cli/args-scan.d.ts +5 -0
- package/dist/tools/cli/args-scan.d.ts.map +1 -1
- package/dist/tools/cli/args.d.ts +11 -5
- package/dist/tools/cli/args.d.ts.map +1 -1
- package/dist/tools/cli/invoke.d.ts +2 -1
- package/dist/tools/cli/invoke.d.ts.map +1 -1
- package/dist/tools/cli/notices.d.ts.map +1 -1
- package/dist/tools/cli/run-managed.d.ts.map +1 -1
- package/dist/tools/cli/session.d.ts.map +1 -1
- package/dist/tools/execute.d.ts.map +1 -1
- package/dist/tools/invoker.d.ts +2 -1
- package/dist/tools/invoker.d.ts.map +1 -1
- package/dist/tools/list-names.d.ts +2 -3
- package/dist/tools/list-names.d.ts.map +1 -1
- package/dist/tools/manifest.d.ts +2 -3
- package/dist/tools/manifest.d.ts.map +1 -1
- package/dist/tools/mcp/mount.d.ts +5 -5
- package/dist/tools/mcp/mount.d.ts.map +1 -1
- package/dist/tools/mcp/register.d.ts +2 -1
- package/dist/tools/mcp/register.d.ts.map +1 -1
- package/dist/tools/mcp/runtime-tools.d.ts.map +1 -1
- package/llms/agent-executor-acp.txt +10 -6
- package/llms/agent-executor-claude-sdk.txt +1 -1
- package/llms/agent-executor-claude.txt +1 -1
- package/llms/agent-executor-codex.txt +1 -1
- package/llms/agent-runtime.4.txt +21 -9
- package/llms/cli.3.txt +4 -4
- package/llms/cli.txt +1 -0
- package/llms/declaration.txt +2 -2
- package/llms/files.txt +1 -1
- package/llms/node.txt +2 -2
- package/llms/server.5.txt +2 -2
- package/llms/service-host.txt +5 -5
- package/llms/stitchkit.txt +81 -77
- package/llms/tools.3.txt +3 -2
- package/llms/upgrading-0.128.0.txt +147 -0
- package/llms/upgrading.txt +1 -0
- package/llms-full.txt +272 -113
- package/llms.txt +14 -13
- package/package.json +1 -1
- package/dist/index-ajmtxsky.js +0 -193
- package/dist/index-ax3wns1a.js +0 -93
|
@@ -2,12 +2,88 @@ import { z } from 'zod';
|
|
|
2
2
|
import { AgentEventSearchResultSchema } from './event-search.js';
|
|
3
3
|
import type { AgentRuntimeRunContext } from './runtime.js';
|
|
4
4
|
import type { AgentRuntimeStore } from './store.js';
|
|
5
|
+
declare const SEARCH_DESCRIPTOR: import("./agent-tool.js").AgentToolDescriptor<z.ZodObject<{
|
|
6
|
+
query: z.ZodString;
|
|
7
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
since: z.ZodOptional<z.ZodISODateTime>;
|
|
9
|
+
limit: z.ZodOptional<z.ZodInt>;
|
|
10
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11
|
+
results: z.ZodArray<z.ZodObject<{
|
|
12
|
+
conversationId: z.ZodString;
|
|
13
|
+
seq: z.ZodInt;
|
|
14
|
+
occurredAt: z.ZodString;
|
|
15
|
+
snippet: z.ZodString;
|
|
16
|
+
}, z.core.$strict>>;
|
|
17
|
+
}, z.core.$strict>>;
|
|
18
|
+
declare const TRACE_DESCRIPTOR: import("./agent-tool.js").AgentToolDescriptor<z.ZodObject<{
|
|
19
|
+
fromSeq: z.ZodOptional<z.ZodInt>;
|
|
20
|
+
toSeq: z.ZodOptional<z.ZodInt>;
|
|
21
|
+
limit: z.ZodDefault<z.ZodInt>;
|
|
22
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
23
|
+
events: z.ZodArray<z.ZodObject<{
|
|
24
|
+
conversationId: z.ZodString;
|
|
25
|
+
seq: z.ZodInt;
|
|
26
|
+
kind: z.ZodString;
|
|
27
|
+
occurredAt: z.ZodString;
|
|
28
|
+
payload: z.ZodJSONSchema;
|
|
29
|
+
}, z.core.$strict>>;
|
|
30
|
+
nextSeq: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
}, z.core.$strict>>;
|
|
32
|
+
declare const EVENT_DESCRIPTOR: import("./agent-tool.js").AgentToolDescriptor<z.ZodObject<{
|
|
33
|
+
conversationId: z.ZodString;
|
|
34
|
+
seq: z.ZodInt;
|
|
35
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
36
|
+
conversationId: z.ZodString;
|
|
37
|
+
seq: z.ZodInt;
|
|
38
|
+
kind: z.ZodString;
|
|
39
|
+
occurredAt: z.ZodString;
|
|
40
|
+
payload: z.ZodJSONSchema;
|
|
41
|
+
}, z.core.$strict>>;
|
|
42
|
+
/**
|
|
43
|
+
* Static non-executable descriptors for the built-in event-search tools (`createAgentEventSearchTools`).
|
|
44
|
+
* Single source of truth for catalog generation, preset validation, branch schemas, and live tools.
|
|
45
|
+
*/
|
|
46
|
+
export declare const AGENT_EVENT_SEARCH_TOOL_DESCRIPTORS: readonly [import("./agent-tool.js").AgentToolDescriptor<z.ZodObject<{
|
|
47
|
+
query: z.ZodString;
|
|
48
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
49
|
+
since: z.ZodOptional<z.ZodISODateTime>;
|
|
50
|
+
limit: z.ZodOptional<z.ZodInt>;
|
|
51
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52
|
+
results: z.ZodArray<z.ZodObject<{
|
|
53
|
+
conversationId: z.ZodString;
|
|
54
|
+
seq: z.ZodInt;
|
|
55
|
+
occurredAt: z.ZodString;
|
|
56
|
+
snippet: z.ZodString;
|
|
57
|
+
}, z.core.$strict>>;
|
|
58
|
+
}, z.core.$strict>>, import("./agent-tool.js").AgentToolDescriptor<z.ZodObject<{
|
|
59
|
+
fromSeq: z.ZodOptional<z.ZodInt>;
|
|
60
|
+
toSeq: z.ZodOptional<z.ZodInt>;
|
|
61
|
+
limit: z.ZodDefault<z.ZodInt>;
|
|
62
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
63
|
+
events: z.ZodArray<z.ZodObject<{
|
|
64
|
+
conversationId: z.ZodString;
|
|
65
|
+
seq: z.ZodInt;
|
|
66
|
+
kind: z.ZodString;
|
|
67
|
+
occurredAt: z.ZodString;
|
|
68
|
+
payload: z.ZodJSONSchema;
|
|
69
|
+
}, z.core.$strict>>;
|
|
70
|
+
nextSeq: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
}, z.core.$strict>>, import("./agent-tool.js").AgentToolDescriptor<z.ZodObject<{
|
|
72
|
+
conversationId: z.ZodString;
|
|
73
|
+
seq: z.ZodInt;
|
|
74
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
75
|
+
conversationId: z.ZodString;
|
|
76
|
+
seq: z.ZodInt;
|
|
77
|
+
kind: z.ZodString;
|
|
78
|
+
occurredAt: z.ZodString;
|
|
79
|
+
payload: z.ZodJSONSchema;
|
|
80
|
+
}, z.core.$strict>>];
|
|
5
81
|
/**
|
|
6
|
-
* What each event search tool takes and answers, by tool name.
|
|
7
|
-
*
|
|
82
|
+
* What each event search tool takes and answers, by tool name. Derived from the
|
|
83
|
+
* static descriptors so branch recognition and live tool definitions share one source.
|
|
8
84
|
*/
|
|
9
85
|
export declare const AGENT_EVENT_SEARCH_TOOL_SCHEMAS: {
|
|
10
|
-
readonly
|
|
86
|
+
readonly [SEARCH_DESCRIPTOR.name]: {
|
|
11
87
|
readonly input: z.ZodObject<{
|
|
12
88
|
query: z.ZodString;
|
|
13
89
|
conversationId: z.ZodOptional<z.ZodString>;
|
|
@@ -23,7 +99,7 @@ export declare const AGENT_EVENT_SEARCH_TOOL_SCHEMAS: {
|
|
|
23
99
|
}, z.core.$strict>>;
|
|
24
100
|
}, z.core.$strict>;
|
|
25
101
|
};
|
|
26
|
-
readonly
|
|
102
|
+
readonly [TRACE_DESCRIPTOR.name]: {
|
|
27
103
|
readonly input: z.ZodObject<{
|
|
28
104
|
fromSeq: z.ZodOptional<z.ZodInt>;
|
|
29
105
|
toSeq: z.ZodOptional<z.ZodInt>;
|
|
@@ -40,7 +116,7 @@ export declare const AGENT_EVENT_SEARCH_TOOL_SCHEMAS: {
|
|
|
40
116
|
nextSeq: z.ZodOptional<z.ZodNumber>;
|
|
41
117
|
}, z.core.$strict>;
|
|
42
118
|
};
|
|
43
|
-
readonly
|
|
119
|
+
readonly [EVENT_DESCRIPTOR.name]: {
|
|
44
120
|
readonly input: z.ZodObject<{
|
|
45
121
|
conversationId: z.ZodString;
|
|
46
122
|
seq: z.ZodInt;
|
|
@@ -110,4 +186,5 @@ export declare function createAgentEventSearchTools(config: AgentEventSearchTool
|
|
|
110
186
|
occurredAt: z.ZodString;
|
|
111
187
|
payload: z.ZodJSONSchema;
|
|
112
188
|
}, z.core.$strict>>];
|
|
189
|
+
export {};
|
|
113
190
|
//# sourceMappingURL=event-search-tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-search-tools.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/event-search-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,4BAA4B,EAAE,MA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ACxB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,EAAE,CAAC,CAAC;IACrE,KAAK,EAAE,iBAAiB,CAAC;IACzB,qBAAqB,CAAC,CAAC,OAAO,EAAE;QAC9B,wBAAwB,EAAE,MAAM,CAAC;QACjC,oBAAoB,EAAE,MAAM,CAAC;KAC9B,GAAG,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAChC;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA0D9E"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type LanguageModel } from 'ai';
|
|
2
2
|
import type { z } from 'zod';
|
|
3
|
-
import type
|
|
3
|
+
import { type createInvocationPayloads } from './invocation-payload.js';
|
|
4
4
|
import type { InvocationProcessSchema, ModelInvocationAttemptContext, ModelInvocationRecord } from './invocation-schema.js';
|
|
5
5
|
import type { AgentResolvedModel } from './models.js';
|
|
6
6
|
/** Available inside the provider's fetch/transport; no time/model-name correlation. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invocation-attempt.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/invocation-attempt.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAmD,MAAM,IAAI,CAAC;AACzF,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"invocation-attempt.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/invocation-attempt.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAmD,MAAM,IAAI,CAAC;AACzF,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,EACL,KAAK,wBAAwB,EAG9B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,uBAAuB,EACvB,6BAA6B,EAC7B,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAYnD,uFAAuF;AACvF,wBAAgB,6BAA6B,IAAI,6BAA6B,GAAG,SAAS,CAGzF;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE;QACR,cAAc,EAAE,MAAM,CAAC;QACvB,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;IACjD,QAAQ,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;IACtD,MAAM,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,SAAS,CAAC,CAAC,OAAO,EAAE,6BAA6B,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzE;;;;OAIG;IACH,QAAQ,CAAC,aAAa,EAAE,OAAO,EAAE,CAAC;CACnC;AAED,4FAA4F;AAC5F,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,uBAAuB,EAC/B,QAAQ,EAAE,kBAAkB,EAC5B,IAAI,EAAE,MAAM,EACZ,KAAK,GAAE,aAA8B,GACpC,aAAa,CAgJf"}
|
|
@@ -3,6 +3,18 @@ import type { AgentRuntimeStore } from './store.js';
|
|
|
3
3
|
/** Serialize SDK payloads at the typed external boundary, retaining binary bytes privately. */
|
|
4
4
|
export declare function invocationJson(value: unknown): z.JSONType;
|
|
5
5
|
export declare function invocationHash(value: unknown): string;
|
|
6
|
+
/**
|
|
7
|
+
* Raised when a serialized invocation payload exceeds `maxPayloadBytes`.
|
|
8
|
+
* Carries the measured byte length, configured ceiling, and SHA-256 of the
|
|
9
|
+
* canonical serialized payload so callers can record omission evidence without
|
|
10
|
+
* re-serializing or re-hashing.
|
|
11
|
+
*/
|
|
12
|
+
export declare class InvocationPayloadTooLargeError extends RangeError {
|
|
13
|
+
readonly bytes: number;
|
|
14
|
+
readonly maxBytes: number;
|
|
15
|
+
readonly sha256: string;
|
|
16
|
+
constructor(bytes: number, maxBytes: number, sha256: string);
|
|
17
|
+
}
|
|
6
18
|
export declare function createInvocationPayloads(store: AgentRuntimeStore, key: Uint8Array, maxBytes: number): {
|
|
7
19
|
/** The largest serialized payload one artifact may hold. */
|
|
8
20
|
maxBytes: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invocation-payload.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/invocation-payload.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,+FAA+F;AAC/F,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,cAmB5C;AACD,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAIrD;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,iBAAiB,EACxB,GAAG,EAAE,UAAU,EACf,QAAQ,EAAE,MAAM;IAMd,4DAA4D;;oBAGhD;QACR,cAAc,EAAE,MAAM,CAAC;QACvB,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,SACM,OAAO;;;;
|
|
1
|
+
{"version":3,"file":"invocation-payload.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/invocation-payload.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,+FAA+F;AAC/F,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,cAmB5C;AACD,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAIrD;AAED;;;;;GAKG;AACH,qBAAa,8BAA+B,SAAQ,UAAU;IAC5D,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,YAAY,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAM1D;CACF;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,iBAAiB,EACxB,GAAG,EAAE,UAAU,EACf,QAAQ,EAAE,MAAM;IAMd,4DAA4D;;oBAGhD;QACR,cAAc,EAAE,MAAM,CAAC;QACvB,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,SACM,OAAO;;;;4BAuCQ,MAAM,SAAS,OAAO;EAgCjD"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { createInvocationPayloads } from './invocation-payload.js';
|
|
3
|
+
import { type ModelInvocationPayloadRead } from './invocation-schema.js';
|
|
3
4
|
import type { AgentRuntimeStore } from './store.js';
|
|
4
5
|
export declare const InvocationReadInputSchema: z.ZodObject<{
|
|
5
6
|
conversationId: z.ZodString;
|
|
@@ -63,7 +64,8 @@ export declare function readInvocationRecords(store: AgentRuntimeStore, input: z
|
|
|
63
64
|
modelId: string;
|
|
64
65
|
provider: string;
|
|
65
66
|
payloadSha256: string;
|
|
66
|
-
artifactId
|
|
67
|
+
artifactId?: string | undefined;
|
|
68
|
+
payloadOmitted?: "max-payload-bytes" | undefined;
|
|
67
69
|
tools: number;
|
|
68
70
|
};
|
|
69
71
|
} | {
|
|
@@ -107,7 +109,8 @@ export declare function readInvocationRecords(store: AgentRuntimeStore, input: z
|
|
|
107
109
|
provenance: "computed" | "estimated" | "provider-reported" | "unavailable";
|
|
108
110
|
} | undefined;
|
|
109
111
|
};
|
|
110
|
-
artifactId
|
|
112
|
+
artifactId?: string | undefined;
|
|
113
|
+
payloadOmitted?: "max-payload-bytes" | undefined;
|
|
111
114
|
payloadSha256: string;
|
|
112
115
|
} | {
|
|
113
116
|
conversationId: string;
|
|
@@ -127,5 +130,5 @@ export declare function readInvocationRecords(store: AgentRuntimeStore, input: z
|
|
|
127
130
|
export declare function readInvocationPayload(store: AgentRuntimeStore, payloads: ReturnType<typeof createInvocationPayloads>, input: {
|
|
128
131
|
conversationId: string;
|
|
129
132
|
artifactId: string;
|
|
130
|
-
}): Promise<
|
|
133
|
+
}): Promise<ModelInvocationPayloadRead>;
|
|
131
134
|
//# sourceMappingURL=invocation-read.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invocation-read.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/invocation-read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"invocation-read.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/invocation-read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAGL,KAAK,0BAA0B,EAGhC,MAAM,qBAAqB,CAAC;AAK7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,eAAO,MAAM,yBAAyB;;;;kBAM3B,CAAC;AAEZ,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,iBAAiB,EACxB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BjD;AA4BD,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,iBAAiB,EACxB,QAAQ,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,EACrD,KAAK,EAAE;IAAE,cAAc,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GACpD,OAAO,CAAC,0BAA0B,CAAC,CAyBrC"}
|
|
@@ -91,6 +91,11 @@ export declare const InvocationAttemptContextSchema: z.ZodObject<{
|
|
|
91
91
|
step: z.ZodInt;
|
|
92
92
|
}, z.core.$strict>;
|
|
93
93
|
export type ModelInvocationAttemptContext = z.infer<typeof InvocationAttemptContextSchema>;
|
|
94
|
+
/** Structured reason why a request or response payload artifact was intentionally omitted. */
|
|
95
|
+
export declare const InvocationPayloadOmissionReasonSchema: z.ZodEnum<{
|
|
96
|
+
"max-payload-bytes": "max-payload-bytes";
|
|
97
|
+
}>;
|
|
98
|
+
export type InvocationPayloadOmissionReason = z.infer<typeof InvocationPayloadOmissionReasonSchema>;
|
|
94
99
|
export declare const InvocationRequestSchema: z.ZodObject<{
|
|
95
100
|
conversationId: z.ZodString;
|
|
96
101
|
invocationId: z.ZodString;
|
|
@@ -112,7 +117,10 @@ export declare const InvocationRequestSchema: z.ZodObject<{
|
|
|
112
117
|
modelId: z.ZodString;
|
|
113
118
|
provider: z.ZodString;
|
|
114
119
|
payloadSha256: z.ZodString;
|
|
115
|
-
artifactId: z.ZodString
|
|
120
|
+
artifactId: z.ZodOptional<z.ZodString>;
|
|
121
|
+
payloadOmitted: z.ZodOptional<z.ZodEnum<{
|
|
122
|
+
"max-payload-bytes": "max-payload-bytes";
|
|
123
|
+
}>>;
|
|
116
124
|
tools: z.ZodInt;
|
|
117
125
|
}, z.core.$strict>;
|
|
118
126
|
}, z.core.$strict>;
|
|
@@ -191,7 +199,10 @@ export declare const InvocationResponseSchema: z.ZodObject<{
|
|
|
191
199
|
}>;
|
|
192
200
|
}, z.core.$strip>>;
|
|
193
201
|
}, z.core.$strip>;
|
|
194
|
-
artifactId: z.ZodString
|
|
202
|
+
artifactId: z.ZodOptional<z.ZodString>;
|
|
203
|
+
payloadOmitted: z.ZodOptional<z.ZodEnum<{
|
|
204
|
+
"max-payload-bytes": "max-payload-bytes";
|
|
205
|
+
}>>;
|
|
195
206
|
payloadSha256: z.ZodString;
|
|
196
207
|
}, z.core.$strict>;
|
|
197
208
|
export declare const InvocationFinishedSchema: z.ZodObject<{
|
|
@@ -266,7 +277,10 @@ export declare const ModelInvocationRecordSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
266
277
|
modelId: z.ZodString;
|
|
267
278
|
provider: z.ZodString;
|
|
268
279
|
payloadSha256: z.ZodString;
|
|
269
|
-
artifactId: z.ZodString
|
|
280
|
+
artifactId: z.ZodOptional<z.ZodString>;
|
|
281
|
+
payloadOmitted: z.ZodOptional<z.ZodEnum<{
|
|
282
|
+
"max-payload-bytes": "max-payload-bytes";
|
|
283
|
+
}>>;
|
|
270
284
|
tools: z.ZodInt;
|
|
271
285
|
}, z.core.$strict>;
|
|
272
286
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -344,7 +358,10 @@ export declare const ModelInvocationRecordSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
344
358
|
}>;
|
|
345
359
|
}, z.core.$strip>>;
|
|
346
360
|
}, z.core.$strip>;
|
|
347
|
-
artifactId: z.ZodString
|
|
361
|
+
artifactId: z.ZodOptional<z.ZodString>;
|
|
362
|
+
payloadOmitted: z.ZodOptional<z.ZodEnum<{
|
|
363
|
+
"max-payload-bytes": "max-payload-bytes";
|
|
364
|
+
}>>;
|
|
348
365
|
payloadSha256: z.ZodString;
|
|
349
366
|
}, z.core.$strict>, z.ZodObject<{
|
|
350
367
|
conversationId: z.ZodString;
|
|
@@ -363,7 +380,7 @@ export declare const ModelInvocationRecordSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
363
380
|
}>;
|
|
364
381
|
}, z.core.$strict>], "type">;
|
|
365
382
|
export type ModelInvocationRecord = z.infer<typeof ModelInvocationRecordSchema>;
|
|
366
|
-
export declare const
|
|
383
|
+
export declare const InvocationStoredPayloadSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
367
384
|
conversationId: z.ZodString;
|
|
368
385
|
invocationId: z.ZodString;
|
|
369
386
|
operationId: z.ZodString;
|
|
@@ -374,11 +391,20 @@ export declare const InvocationPayloadSchema: z.ZodObject<{
|
|
|
374
391
|
iv: z.ZodString;
|
|
375
392
|
tag: z.ZodString;
|
|
376
393
|
ciphertext: z.ZodString;
|
|
377
|
-
}, z.core.$strict
|
|
394
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
395
|
+
conversationId: z.ZodString;
|
|
396
|
+
invocationId: z.ZodString;
|
|
397
|
+
operationId: z.ZodString;
|
|
398
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
399
|
+
artifactId: z.ZodString;
|
|
400
|
+
sha256: z.ZodString;
|
|
401
|
+
bytes: z.ZodInt;
|
|
402
|
+
expiredAt: z.ZodISODateTime;
|
|
403
|
+
}, z.core.$strict>]>;
|
|
378
404
|
/**
|
|
379
405
|
* What remains of a payload artifact outside the conversation that made the
|
|
380
|
-
* call: its identity, size
|
|
381
|
-
*
|
|
406
|
+
* call: its identity, size, hash, and optional expiry timestamp. Rejects
|
|
407
|
+
* malformed partial cipher records or records carrying both ciphertext and `expiredAt`.
|
|
382
408
|
*/
|
|
383
409
|
export declare const InvocationPayloadReceiptSchema: z.ZodObject<{
|
|
384
410
|
conversationId: z.ZodString;
|
|
@@ -391,7 +417,23 @@ export declare const InvocationPayloadReceiptSchema: z.ZodObject<{
|
|
|
391
417
|
iv: z.ZodOptional<z.ZodString>;
|
|
392
418
|
tag: z.ZodOptional<z.ZodString>;
|
|
393
419
|
ciphertext: z.ZodOptional<z.ZodString>;
|
|
420
|
+
expiredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
394
421
|
}, z.core.$strict>;
|
|
422
|
+
/** Discriminated read result returned by `ModelInvocationLedger.readPayload`. */
|
|
423
|
+
export declare const ModelInvocationPayloadReadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
424
|
+
status: z.ZodLiteral<"available">;
|
|
425
|
+
artifactId: z.ZodString;
|
|
426
|
+
sha256: z.ZodString;
|
|
427
|
+
bytes: z.ZodInt;
|
|
428
|
+
payload: z.ZodJSONSchema;
|
|
429
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
430
|
+
status: z.ZodLiteral<"expired">;
|
|
431
|
+
artifactId: z.ZodString;
|
|
432
|
+
sha256: z.ZodString;
|
|
433
|
+
bytes: z.ZodInt;
|
|
434
|
+
expiredAt: z.ZodISODateTime;
|
|
435
|
+
}, z.core.$strict>], "status">;
|
|
436
|
+
export type ModelInvocationPayloadRead = z.infer<typeof ModelInvocationPayloadReadSchema>;
|
|
395
437
|
/**
|
|
396
438
|
* Whether a `provider/request` or `provider/response` payload is a record of
|
|
397
439
|
* this ledger. The provider journal writes the same two kinds in its own shape,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invocation-schema.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/invocation-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"invocation-schema.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/invocation-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;kBAU5B,CAAC;AACZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0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;;;;;;;;;;oBAGxC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;kBA0BvC,CAAC;AAEL,iFAAiF;AACjF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;8BAmB3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEjE"}
|
|
@@ -5,7 +5,19 @@ import { InvocationReadInputSchema, readInvocationPayload, readInvocationRecords
|
|
|
5
5
|
import { type CompletionInvocationInput, InvocationCallerSchema, type ModelInvocationTrace } from './invocation-schema.js';
|
|
6
6
|
import type { AgentModelRegistry, AgentResolvedModel } from './models.js';
|
|
7
7
|
import type { AgentRun } from './schemas.js';
|
|
8
|
+
import { type PurgeInvocationPayloadsInput, type PurgeInvocationPayloadsResult } from './schemas-invocation-payload.js';
|
|
8
9
|
import type { AgentRuntimeStore } from './store.js';
|
|
10
|
+
export type ModelInvocationAuthorizationInput = {
|
|
11
|
+
context: unknown;
|
|
12
|
+
conversationId: string;
|
|
13
|
+
action: 'complete' | 'agent' | 'read' | 'read-payload';
|
|
14
|
+
trace?: ModelInvocationTrace;
|
|
15
|
+
} | {
|
|
16
|
+
context: unknown;
|
|
17
|
+
conversationId?: string;
|
|
18
|
+
action: 'purge-payloads';
|
|
19
|
+
trace?: undefined;
|
|
20
|
+
};
|
|
9
21
|
export interface ModelInvocationConfig {
|
|
10
22
|
store: AgentRuntimeStore;
|
|
11
23
|
models: AgentModelRegistry<string>;
|
|
@@ -13,12 +25,7 @@ export interface ModelInvocationConfig {
|
|
|
13
25
|
payloadKey: Uint8Array;
|
|
14
26
|
maxPayloadBytes?: number;
|
|
15
27
|
/** Host authentication/authorization; never return identity copied from untrusted request fields. */
|
|
16
|
-
authorize(input:
|
|
17
|
-
context: unknown;
|
|
18
|
-
conversationId: string;
|
|
19
|
-
action: 'complete' | 'agent' | 'read' | 'read-payload';
|
|
20
|
-
trace?: ModelInvocationTrace;
|
|
21
|
-
}): z.infer<typeof InvocationCallerSchema> | Promise<z.infer<typeof InvocationCallerSchema>>;
|
|
28
|
+
authorize(input: ModelInvocationAuthorizationInput): z.infer<typeof InvocationCallerSchema> | Promise<z.infer<typeof InvocationCallerSchema>>;
|
|
22
29
|
onAttempt?: InvocationAttemptWriter['onAttempt'];
|
|
23
30
|
}
|
|
24
31
|
export interface AgentInvocationScope {
|
|
@@ -31,9 +38,8 @@ export interface ModelInvocationLedger {
|
|
|
31
38
|
outcome: 'succeeded' | 'failed' | 'cancelled' | 'duplicate';
|
|
32
39
|
text?: string;
|
|
33
40
|
/**
|
|
34
|
-
* The outcome stands, but
|
|
35
|
-
*
|
|
36
|
-
* were written before it.
|
|
41
|
+
* The outcome stands, but a payload artifact (e.g. exceeding `maxPayloadBytes`)
|
|
42
|
+
* or terminal receipt record could not be written: why.
|
|
37
43
|
*/
|
|
38
44
|
receiptError?: unknown;
|
|
39
45
|
}>;
|
|
@@ -42,6 +48,11 @@ export interface ModelInvocationLedger {
|
|
|
42
48
|
conversationId: string;
|
|
43
49
|
artifactId: string;
|
|
44
50
|
}, context: unknown): ReturnType<typeof readInvocationPayload>;
|
|
51
|
+
/**
|
|
52
|
+
* Purge encrypted `provider/payload` bodies older than `input.before` while keeping
|
|
53
|
+
* receipts intact (`readPayload` returns `{ status: 'expired', ... }` afterwards).
|
|
54
|
+
*/
|
|
55
|
+
purgePayloads(input: PurgeInvocationPayloadsInput, context: unknown): Promise<PurgeInvocationPayloadsResult>;
|
|
45
56
|
}
|
|
46
57
|
export declare function beginAgentInvocation(ledger: ModelInvocationLedger, store: AgentRuntimeStore, input: {
|
|
47
58
|
run: AgentRun;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invocations.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/invocations.ts"],"names":[],"mappings":"A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AAE,EACtD,MAAM,EAAE,+BAA+B,CAAC,EAAE,CAAC,GAC1C,uBAAuB,CAAC,eAAe,CAAC,CAE1C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,+BAA+B,CAAC,EAAE,EAChD,MAAM,EAAE,+BAA+B,CAAC,EAAE,CAAC,GAC1C,yBAAyB,CAU3B"}
|
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { AgentRuntimeRunContext } from './runtime.js';
|
|
3
3
|
import type { AgentScheduleService } from './schedule-contract.js';
|
|
4
|
+
/**
|
|
5
|
+
* Static non-executable descriptors for the built-in schedule tools (`createAgentScheduleTools`).
|
|
6
|
+
* Single source of truth for catalog generation, preset validation, and live run-bound tools.
|
|
7
|
+
*/
|
|
8
|
+
export declare const AGENT_SCHEDULE_TOOL_DESCRIPTORS: readonly [import("./agent-tool.js").AgentToolDescriptor<z.ZodObject<{
|
|
9
|
+
input: z.ZodJSONSchema;
|
|
10
|
+
afterMs: z.ZodInt;
|
|
11
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
12
|
+
scheduleId: z.ZodString;
|
|
13
|
+
nextAt: z.ZodString;
|
|
14
|
+
}, z.core.$strict>>, import("./agent-tool.js").AgentToolDescriptor<z.ZodObject<{
|
|
15
|
+
input: z.ZodJSONSchema;
|
|
16
|
+
at: z.ZodString;
|
|
17
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
18
|
+
scheduleId: z.ZodString;
|
|
19
|
+
nextAt: z.ZodString;
|
|
20
|
+
}, z.core.$strict>>, import("./agent-tool.js").AgentToolDescriptor<z.ZodObject<{
|
|
21
|
+
input: z.ZodJSONSchema;
|
|
22
|
+
everyMs: z.ZodInt;
|
|
23
|
+
timeZone: z.ZodString;
|
|
24
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
25
|
+
scheduleId: z.ZodString;
|
|
26
|
+
nextAt: z.ZodString;
|
|
27
|
+
}, z.core.$strict>>, import("./agent-tool.js").AgentToolDescriptor<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
28
|
+
schedules: z.ZodArray<z.ZodJSONSchema>;
|
|
29
|
+
}, z.core.$strict>>, import("./agent-tool.js").AgentToolDescriptor<z.ZodObject<{
|
|
30
|
+
scheduleId: z.ZodString;
|
|
31
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
32
|
+
cancelled: z.ZodBoolean;
|
|
33
|
+
}, z.core.$strict>>];
|
|
4
34
|
/** Configuration binding durable scheduling agent tools to a schedule service and run context. */
|
|
5
35
|
export interface AgentScheduleToolsConfig {
|
|
6
36
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-tools.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/schedule-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"schedule-tools.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/schedule-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AA8DhE;;;GAGG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;oBAMjC,CAAC;AAEZ,kGAAkG;AAClG,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAAE,eAAe,GAAG,gBAAgB,GAAG,eAAe,CAAC,CAAC;IAC1F,6FAA6F;IAC7F,GAAG,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;CACtC;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;qBAoBlF"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Encrypted `provider/payload` event stored by the model invocation ledger. */
|
|
3
|
+
export declare const InvocationPayloadSchema: z.ZodObject<{
|
|
4
|
+
conversationId: z.ZodString;
|
|
5
|
+
invocationId: z.ZodString;
|
|
6
|
+
operationId: z.ZodString;
|
|
7
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
artifactId: z.ZodString;
|
|
9
|
+
sha256: z.ZodString;
|
|
10
|
+
bytes: z.ZodInt;
|
|
11
|
+
iv: z.ZodString;
|
|
12
|
+
tag: z.ZodString;
|
|
13
|
+
ciphertext: z.ZodString;
|
|
14
|
+
}, z.core.$strict>;
|
|
15
|
+
/** A `provider/payload` event whose encrypted body was purged after expiry. */
|
|
16
|
+
export declare const InvocationExpiredPayloadSchema: z.ZodObject<{
|
|
17
|
+
conversationId: z.ZodString;
|
|
18
|
+
invocationId: z.ZodString;
|
|
19
|
+
operationId: z.ZodString;
|
|
20
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
21
|
+
artifactId: z.ZodString;
|
|
22
|
+
sha256: z.ZodString;
|
|
23
|
+
bytes: z.ZodInt;
|
|
24
|
+
expiredAt: z.ZodISODateTime;
|
|
25
|
+
}, z.core.$strict>;
|
|
26
|
+
/** Input for purging expired encrypted `provider/payload` bodies while keeping receipts intact. */
|
|
27
|
+
export declare const PurgeInvocationPayloadsInputSchema: z.ZodObject<{
|
|
28
|
+
before: z.ZodISODateTime;
|
|
29
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
limit: z.ZodOptional<z.ZodInt>;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
export type PurgeInvocationPayloadsInput = z.infer<typeof PurgeInvocationPayloadsInputSchema>;
|
|
33
|
+
/** Structured summary returned by payload expiry purge operations. */
|
|
34
|
+
export declare const PurgeInvocationPayloadsResultSchema: z.ZodObject<{
|
|
35
|
+
purged: z.ZodInt;
|
|
36
|
+
freedBytes: z.ZodInt;
|
|
37
|
+
hasMore: z.ZodBoolean;
|
|
38
|
+
}, z.core.$strict>;
|
|
39
|
+
export type PurgeInvocationPayloadsResult = z.infer<typeof PurgeInvocationPayloadsResultSchema>;
|
|
40
|
+
export type InvocationExpiredPayload = z.infer<typeof InvocationExpiredPayloadSchema>;
|
|
41
|
+
/** Parse an ISO expiry cutoff timestamp or throw `TypeError` when invalid. */
|
|
42
|
+
export declare function parsePayloadPurgeCutoff(before: string): number;
|
|
43
|
+
/**
|
|
44
|
+
* Redact a live `provider/payload` record into its metadata-only expired record.
|
|
45
|
+
* Returns `undefined` when the record is already redacted (`InvocationExpiredPayloadSchema`).
|
|
46
|
+
*/
|
|
47
|
+
export declare function redactLiveInvocationPayload(rawPayload: unknown, expiredAt: string): InvocationExpiredPayload | undefined;
|
|
48
|
+
//# sourceMappingURL=schemas-invocation-payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas-invocation-payload.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/schemas-invocation-payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,gFAAgF;AAChF,eAAO,MAAM,uBAAuB;;;;;;;;;;;kBAOzB,CAAC;AAEZ,+EAA+E;AAC/E,eAAO,MAAM,8BAA8B;;;;;;;;;kBAKhC,CAAC;AAEZ,mGAAmG;AACnG,eAAO,MAAM,kCAAkC;;;;kBASpC,CAAC;AACZ,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,sEAAsE;AACtE,eAAO,MAAM,mCAAmC;;;;kBAMrC,CAAC;AACZ,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,mCAAmC,CAC3C,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,8EAA8E;AAC9E,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAM9D;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,OAAO,EACnB,SAAS,EAAE,MAAM,GAChB,wBAAwB,GAAG,SAAS,CAatC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sql-events.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/sql-events.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sql-events.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/sql-events.ts"],"names":[],"mappings":"AAaA,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,eAAe,EAAiB,MAAM,eAAe,CAAC;AAuHpE,wBAAgB,SAAS,CAAC,OAAO,EAAE,eAAe,GAAG,cAAc,CAAC,QAAQ,CAAC,CA4D5E;AAED,2FAA2F;AAC3F,wBAAgB,UAAU,CAAC,OAAO,EAAE,eAAe,GAAG,WAAW,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAyF3F"}
|
|
@@ -59,6 +59,17 @@ export interface AgentSqlDialect {
|
|
|
59
59
|
* makes the second writer fail with a serialization error and retry.
|
|
60
60
|
*/
|
|
61
61
|
nextEventSeq(session: AgentSqlSession, conversationId: string): Promise<number>;
|
|
62
|
+
/**
|
|
63
|
+
* Synchronize the search index after an in-place redaction of an existing event
|
|
64
|
+
* row (such as purging expired encrypted `provider/payload` bodies).
|
|
65
|
+
*/
|
|
66
|
+
syncUpdatedEventSearch(session: AgentSqlSession, event: {
|
|
67
|
+
rowId?: number;
|
|
68
|
+
conversationId: string;
|
|
69
|
+
seq: number;
|
|
70
|
+
occurredAt: string;
|
|
71
|
+
payload: string;
|
|
72
|
+
}): Promise<void>;
|
|
62
73
|
}
|
|
63
74
|
/**
|
|
64
75
|
* `?` placeholders to `$1…$n`, outside quoted literals and identifiers.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sql-session.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/sql-session.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,UAAU,CAAC;AAEhE,+EAA+E;AAC/E,MAAM,WAAW,eAAe;IAC9B,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,SAAS,aAAa,EAAE,GAAG,OAAO,CAAC,SAAS,OAAO,EAAE,CAAC,CAAC;IACrF,wDAAwD;IACxD,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,SAAS,aAAa,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC1E,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,SAAS,aAAa,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACxE;AAED,2FAA2F;AAC3F,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,C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,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC;;;;;;;OAOG;IACH,YAAY,CAAC,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAChF;;;OAGG;IACH,sBAAsB,CACpB,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE;QACL,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,cAAc,EAAE,MAAM,CAAC;QACvB,GAAG,EAAE,MAAM,CAAC;QACZ,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;KACjB,GACA,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAuB1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqlite-transactions.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/sqlite-transactions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGhF,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,eAAe,EAAkB,MAAM,eAAe,CAAC;AAI3F,8FAA8F;AAC9F,eAAO,MAAM,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"sqlite-transactions.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/sqlite-transactions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGhF,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,eAAe,EAAkB,MAAM,eAAe,CAAC;AAI3F,8FAA8F;AAC9F,eAAO,MAAM,aAAa,EAAE,eAiB3B,CAAC;AAEF,2FAA2F;AAC3F,wBAAgB,aAAa,CAAC,QAAQ,EAAE,cAAc,GAAG,eAAe,CAQvE;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC;CAClD;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,cAAc,GAAG,gBAAgB,CASjF;AA0BD,wBAAgB,oBAAoB,CAAC,MAAM,EACzC,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,MAAM,GAAG,OAAO,EACxB,IAAI,EAAE,CAAC,WAAW,EAAE,eAAe,KAAK,OAAO,CAAC,MAAM,CAAC,GACtD,OAAO,CAAC,MAAM,CAAC,CAYjB;AAED,qFAAqF;AACrF,wBAAgB,gBAAgB,CAAC,MAAM,EACrC,KAAK,EAAE,gBAAgB,EACvB,IAAI,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,GAC1B,OAAO,CAAC,MAAM,CAAC,CAEjB;AAED,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAM7E"}
|
|
@@ -1,6 +1,61 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { AgentRuntimeRunContext } from './runtime.js';
|
|
3
3
|
import type { AgentStateSlotStore } from './state-slots.js';
|
|
4
|
+
/**
|
|
5
|
+
* Static non-executable descriptors for the built-in durable state tools (`createAgentStateTools`).
|
|
6
|
+
* Single source of truth for catalog generation, preset validation, and live run-bound tools.
|
|
7
|
+
*/
|
|
8
|
+
export declare const AGENT_STATE_TOOL_DESCRIPTORS: readonly [import("./agent-tool.js").AgentToolDescriptor<z.ZodObject<{
|
|
9
|
+
objective: z.ZodString;
|
|
10
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11
|
+
objective: z.ZodString;
|
|
12
|
+
status: z.ZodEnum<{
|
|
13
|
+
active: "active";
|
|
14
|
+
blocked: "blocked";
|
|
15
|
+
complete: "complete";
|
|
16
|
+
}>;
|
|
17
|
+
}, z.core.$strict>>, import("./agent-tool.js").AgentToolDescriptor<z.ZodObject<{
|
|
18
|
+
objective: z.ZodOptional<z.ZodString>;
|
|
19
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
active: "active";
|
|
21
|
+
blocked: "blocked";
|
|
22
|
+
complete: "complete";
|
|
23
|
+
}>>;
|
|
24
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
25
|
+
objective: z.ZodString;
|
|
26
|
+
status: z.ZodEnum<{
|
|
27
|
+
active: "active";
|
|
28
|
+
blocked: "blocked";
|
|
29
|
+
complete: "complete";
|
|
30
|
+
}>;
|
|
31
|
+
}, z.core.$strict>>, import("./agent-tool.js").AgentToolDescriptor<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
32
|
+
goal: z.ZodOptional<z.ZodObject<{
|
|
33
|
+
objective: z.ZodString;
|
|
34
|
+
status: z.ZodEnum<{
|
|
35
|
+
active: "active";
|
|
36
|
+
blocked: "blocked";
|
|
37
|
+
complete: "complete";
|
|
38
|
+
}>;
|
|
39
|
+
}, z.core.$strict>>;
|
|
40
|
+
}, z.core.$strict>>, import("./agent-tool.js").AgentToolDescriptor<z.ZodObject<{
|
|
41
|
+
items: z.ZodArray<z.ZodObject<{
|
|
42
|
+
step: z.ZodString;
|
|
43
|
+
status: z.ZodEnum<{
|
|
44
|
+
completed: "completed";
|
|
45
|
+
in_progress: "in_progress";
|
|
46
|
+
pending: "pending";
|
|
47
|
+
}>;
|
|
48
|
+
}, z.core.$strict>>;
|
|
49
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
50
|
+
items: z.ZodArray<z.ZodObject<{
|
|
51
|
+
step: z.ZodString;
|
|
52
|
+
status: z.ZodEnum<{
|
|
53
|
+
completed: "completed";
|
|
54
|
+
in_progress: "in_progress";
|
|
55
|
+
pending: "pending";
|
|
56
|
+
}>;
|
|
57
|
+
}, z.core.$strict>>;
|
|
58
|
+
}, z.core.$strict>>];
|
|
4
59
|
/** Configuration binding durable state-slot agent tools to a store and active run context. */
|
|
5
60
|
export interface AgentStateToolsConfig {
|
|
6
61
|
state: AgentStateSlotStore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-tools.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/state-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"state-tools.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/state-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AA8DzD;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAK9B,CAAC;AAEZ,8FAA8F;AAC9F,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,mBAAmB,CAAC;IAC3B,6FAA6F;IAC7F,GAAG,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;CACtC;AAED,kGAAkG;AAClG,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA0ClE"}
|