stitchkit 0.120.0 → 0.122.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 +83 -0
- package/dist/agent-runtime/browser-control-contract.d.ts +12 -0
- package/dist/agent-runtime/browser-control-contract.d.ts.map +1 -1
- package/dist/agent-runtime/coding-discovery.d.ts +25 -0
- package/dist/agent-runtime/coding-discovery.d.ts.map +1 -0
- package/dist/agent-runtime/coding-search-automaton.d.ts +37 -0
- package/dist/agent-runtime/coding-search-automaton.d.ts.map +1 -0
- package/dist/agent-runtime/coding-search-case-fold.d.ts +4 -0
- package/dist/agent-runtime/coding-search-case-fold.d.ts.map +1 -0
- package/dist/agent-runtime/coding-search-class-ranges.d.ts +10 -0
- package/dist/agent-runtime/coding-search-class-ranges.d.ts.map +1 -0
- package/dist/agent-runtime/coding-search-contract.d.ts +86 -0
- package/dist/agent-runtime/coding-search-contract.d.ts.map +1 -0
- package/dist/agent-runtime/coding-search-limits.d.ts +13 -0
- package/dist/agent-runtime/coding-search-limits.d.ts.map +1 -0
- package/dist/agent-runtime/coding-search-matcher.d.ts +33 -0
- package/dist/agent-runtime/coding-search-matcher.d.ts.map +1 -0
- package/dist/agent-runtime/coding-search-output.d.ts +5 -0
- package/dist/agent-runtime/coding-search-output.d.ts.map +1 -0
- package/dist/agent-runtime/coding-search-regex-syntax.d.ts +39 -0
- package/dist/agent-runtime/coding-search-regex-syntax.d.ts.map +1 -0
- package/dist/agent-runtime/coding-search-unit-classes.d.ts +31 -0
- package/dist/agent-runtime/coding-search-unit-classes.d.ts.map +1 -0
- package/dist/agent-runtime/coding-shell-process.d.ts +1 -0
- package/dist/agent-runtime/coding-shell-process.d.ts.map +1 -1
- package/dist/agent-runtime/coding-tool-contract.d.ts +8 -3
- package/dist/agent-runtime/coding-tool-contract.d.ts.map +1 -1
- package/dist/agent-runtime/coding-tool-files.d.ts.map +1 -1
- package/dist/agent-runtime/coding-tool-listing.d.ts +1 -11
- package/dist/agent-runtime/coding-tool-listing.d.ts.map +1 -1
- package/dist/agent-runtime/coding-tool-paths.d.ts +6 -2
- package/dist/agent-runtime/coding-tool-paths.d.ts.map +1 -1
- package/dist/agent-runtime/coding-tool-refusals.d.ts +6 -0
- package/dist/agent-runtime/coding-tool-refusals.d.ts.map +1 -1
- package/dist/agent-runtime/coding-tool-search-patch.d.ts.map +1 -1
- package/dist/agent-runtime/coding-tool-search.d.ts +113 -0
- package/dist/agent-runtime/coding-tool-search.d.ts.map +1 -0
- package/dist/agent-runtime/coding-tool-shell.d.ts.map +1 -1
- package/dist/agent-runtime/contained-scan-budget.d.ts +32 -0
- package/dist/agent-runtime/contained-scan-budget.d.ts.map +1 -0
- package/dist/agent-runtime/contained-scan-contract.d.ts +52 -0
- package/dist/agent-runtime/contained-scan-contract.d.ts.map +1 -0
- package/dist/agent-runtime/contained-scan.d.ts +48 -13
- package/dist/agent-runtime/contained-scan.d.ts.map +1 -1
- package/dist/agent-runtime/control-schema.d.ts +27 -4
- package/dist/agent-runtime/control-schema.d.ts.map +1 -1
- package/dist/agent-runtime/event-schema.d.ts +33 -0
- package/dist/agent-runtime/event-schema.d.ts.map +1 -1
- package/dist/agent-runtime/run-acquisition.d.ts.map +1 -1
- package/dist/agent-runtime/run-execution-state.d.ts +6 -0
- package/dist/agent-runtime/run-execution-state.d.ts.map +1 -1
- package/dist/agent-runtime/run-model-attempts.d.ts.map +1 -1
- package/dist/agent-runtime/run-stream-parts.d.ts +11 -0
- package/dist/agent-runtime/run-stream-parts.d.ts.map +1 -1
- package/dist/agent-runtime/sandbox.d.ts +5 -1
- package/dist/agent-runtime/sandbox.d.ts.map +1 -1
- package/dist/agent-runtime/tool-progress.d.ts +21 -0
- package/dist/agent-runtime/tool-progress.d.ts.map +1 -0
- package/dist/agent-runtime/workspace-glob.d.ts +6 -0
- package/dist/agent-runtime/workspace-glob.d.ts.map +1 -0
- package/dist/entrypoints/agent-runtime/browser.js +7 -3
- package/dist/entrypoints/agent-runtime/coding-tools.js +7 -7
- package/dist/entrypoints/agent-runtime/harness.js +8 -8
- package/dist/entrypoints/agent-runtime/realtime.js +5 -5
- package/dist/entrypoints/agent-runtime/sandbox.js +7 -7
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +9 -9
- package/dist/entrypoints/agent-runtime/sqlite/node.js +9 -9
- package/dist/entrypoints/agent-runtime/testing.js +9 -9
- package/dist/entrypoints/agent-runtime.d.ts +1 -1
- package/dist/entrypoints/agent-runtime.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime.js +15 -13
- package/dist/entrypoints/application/diagnostic-journal.js +3 -3
- package/dist/entrypoints/application/directory-inbox.js +5 -5
- package/dist/entrypoints/cli/publish.js +4 -4
- package/dist/entrypoints/cli.js +4 -4
- package/dist/entrypoints/files.js +4 -4
- package/dist/entrypoints/process/owner-loss.js +2 -1
- package/dist/entrypoints/process.js +4 -4
- package/dist/entrypoints/server.d.ts +1 -0
- package/dist/entrypoints/server.d.ts.map +1 -1
- package/dist/entrypoints/server.js +112 -47
- package/dist/entrypoints/telegram.js +3 -3
- package/dist/entrypoints/tools/agent.js +1 -1
- package/dist/entrypoints/tools/toolkit.js +5 -5
- package/dist/{index-yb9n4pgj.js → index-10rg78vf.js} +1 -1
- package/dist/{index-7zwtbak8.js → index-1fyea34p.js} +9 -4
- package/dist/{index-3yb5kft5.js → index-4tyt1qya.js} +1 -1
- package/dist/{index-8xyf8h2k.js → index-6j15ktag.js} +1 -1
- package/dist/{index-zrdcmg6j.js → index-72xtvcvr.js} +40 -6
- package/dist/{index-4qnzda76.js → index-7qyv50r4.js} +1 -1
- package/dist/{index-qctbzmg9.js → index-am1h8c9v.js} +69 -27
- package/dist/{index-e452syyh.js → index-aqmadanx.js} +2 -2
- package/dist/{index-yt7gyg5x.js → index-b51tzcgh.js} +1 -1
- package/dist/{index-aw6zahv1.js → index-dqpesdck.js} +2 -2
- package/dist/{index-1jwsfkfz.js → index-eeahxwvg.js} +60 -76
- package/dist/{index-sb9dr3tq.js → index-eh71zr32.js} +4 -4
- package/dist/{index-nyyam9ce.js → index-f6pw75e1.js} +1 -1
- package/dist/{index-qevqn3d3.js → index-gq3fnq3f.js} +1 -1
- package/dist/{index-bz479f0x.js → index-gtx3eknx.js} +1 -1
- package/dist/{index-mnkk1ffz.js → index-hs76yzt7.js} +13 -1
- package/dist/{index-nn9qvkww.js → index-j95jp7ee.js} +45 -9
- package/dist/{index-2kbysk9s.js → index-m5m9rmvt.js} +2 -0
- package/dist/{index-r3db01kh.js → index-nwm3ww60.js} +1 -1
- package/dist/index-qaqxdbxf.js +2857 -0
- package/dist/index-s9a0fjh3.js +305 -0
- package/dist/{index-b0w7rbpt.js → index-t05a2ry4.js} +39 -3
- package/dist/{index-pq2m7t46.js → index-v8yqk4w7.js} +22 -8
- package/dist/internal/contained-directory.d.ts +1 -1
- package/dist/internal/contained-directory.d.ts.map +1 -1
- package/dist/internal/contained-files.d.ts +18 -51
- package/dist/internal/contained-files.d.ts.map +1 -1
- package/dist/internal/contained-read.d.ts +17 -0
- package/dist/internal/contained-read.d.ts.map +1 -0
- package/dist/internal/darwin-binding.d.ts +3 -1
- package/dist/internal/darwin-binding.d.ts.map +1 -1
- package/dist/process/bun-child.d.ts.map +1 -1
- package/dist/process/command-owner.d.ts.map +1 -1
- package/dist/process/group.d.ts +2 -0
- package/dist/process/group.d.ts.map +1 -1
- package/dist/process/launch.d.ts +1 -0
- package/dist/process/launch.d.ts.map +1 -1
- package/dist/process/owned-child.d.ts.map +1 -1
- package/dist/process/owner-loss-guard.d.ts.map +1 -1
- package/dist/process/owner-loss-protocol.d.ts +1 -0
- package/dist/process/owner-loss-protocol.d.ts.map +1 -1
- package/dist/server/openapi-security.d.ts +73 -0
- package/dist/server/openapi-security.d.ts.map +1 -0
- package/dist/server/openapi.d.ts +12 -0
- package/dist/server/openapi.d.ts.map +1 -1
- package/dist/tools/agent.d.ts.map +1 -1
- package/dist/tools/cli/format.d.ts +11 -2
- package/dist/tools/cli/format.d.ts.map +1 -1
- package/dist/tools/cli/repeatable-read.d.ts +9 -0
- package/dist/tools/cli/repeatable-read.d.ts.map +1 -0
- package/dist/tools/cli/run-managed.d.ts.map +1 -1
- package/dist/tools/cli/run-native.d.ts.map +1 -1
- package/dist/tools/runtime-call-context.d.ts +15 -0
- package/dist/tools/runtime-call-context.d.ts.map +1 -0
- package/llms/agent-runtime-browser.txt +4 -1
- package/llms/agent-runtime-coding-tools.txt +9 -9
- package/llms/agent-runtime.2.txt +30 -108
- package/llms/agent-runtime.3.txt +111 -1
- package/llms/agent-runtime.txt +59 -24
- package/llms/application.3.txt +5 -2
- package/llms/cli.txt +21 -9
- package/llms/contract.txt +1 -1
- package/llms/process.txt +3 -1
- package/llms/server.2.txt +48 -0
- package/llms/server.5.txt +4 -0
- package/llms/stitchkit.txt +3 -3
- package/llms/tools.txt +4 -1
- package/llms/{upgrading-0.106.0-0.120.0.txt → upgrading-0.106.0-0.122.0.txt} +81 -3
- package/llms/upgrading.txt +1 -1
- package/llms-full.txt +255 -35
- package/llms.txt +7 -7
- package/native/darwin-arm64.node +0 -0
- package/native/darwin-x64.node +0 -0
- package/native-assets.json +4 -4
- package/package.json +2 -1
- package/dist/index-0qyrcjfs.js +0 -1478
- package/dist/index-aa50qwv4.js +0 -107
- package/dist/tools/durability-context.d.ts +0 -7
- package/dist/tools/durability-context.d.ts.map +0 -1
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { AgentCodingToolConfig, AgentCodingToolLimits } from './coding-tool-contract.js';
|
|
2
|
+
export declare function createSearchCodingTool(config: AgentCodingToolConfig, limits: AgentCodingToolLimits): import("../tools/runtime-tool-declaration.js").RuntimeToolDefinitionWithOutput<import("zod").ZodObject<{
|
|
3
|
+
query: import("zod").ZodString;
|
|
4
|
+
mode: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
5
|
+
content: "content";
|
|
6
|
+
path: "path";
|
|
7
|
+
}>>;
|
|
8
|
+
regex: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
9
|
+
context: import("zod").ZodDefault<import("zod").ZodInt>;
|
|
10
|
+
include: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
12
|
+
matches: import("zod").ZodArray<import("zod").ZodObject<{
|
|
13
|
+
path: import("zod").ZodString;
|
|
14
|
+
line: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
15
|
+
text: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
+
before: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
17
|
+
after: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
18
|
+
}, import("zod/v4/core").$strict>>;
|
|
19
|
+
truncated: import("zod").ZodBoolean;
|
|
20
|
+
scannedFiles: import("zod").ZodInt;
|
|
21
|
+
skippedDirectories: import("zod").ZodInt;
|
|
22
|
+
skippedSymlinks: import("zod").ZodInt;
|
|
23
|
+
denied: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
24
|
+
path: import("zod").ZodString;
|
|
25
|
+
kind: import("zod").ZodEnum<{
|
|
26
|
+
directory: "directory";
|
|
27
|
+
file: "file";
|
|
28
|
+
other: "other";
|
|
29
|
+
symlink: "symlink";
|
|
30
|
+
}>;
|
|
31
|
+
}, import("zod/v4/core").$strict>>>;
|
|
32
|
+
deniedTruncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
33
|
+
errors: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
34
|
+
path: import("zod").ZodString;
|
|
35
|
+
operation: import("zod").ZodString;
|
|
36
|
+
code: import("zod").ZodString;
|
|
37
|
+
}, import("zod/v4/core").$strict>>>;
|
|
38
|
+
errorsTruncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
39
|
+
hint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
40
|
+
coverage: import("zod").ZodObject<{
|
|
41
|
+
complete: import("zod").ZodBoolean;
|
|
42
|
+
reasons: import("zod").ZodArray<import("zod").ZodEnum<{
|
|
43
|
+
cancelled: "cancelled";
|
|
44
|
+
denied: "denied";
|
|
45
|
+
"max-bytes": "max-bytes";
|
|
46
|
+
"max-depth": "max-depth";
|
|
47
|
+
"max-directories": "max-directories";
|
|
48
|
+
"max-entries": "max-entries";
|
|
49
|
+
"max-file-bytes": "max-file-bytes";
|
|
50
|
+
"max-files": "max-files";
|
|
51
|
+
"max-line-bytes": "max-line-bytes";
|
|
52
|
+
"max-output-bytes": "max-output-bytes";
|
|
53
|
+
"max-results": "max-results";
|
|
54
|
+
timeout: "timeout";
|
|
55
|
+
unreadable: "unreadable";
|
|
56
|
+
}>>;
|
|
57
|
+
scope: import("zod").ZodObject<{
|
|
58
|
+
path: import("zod").ZodString;
|
|
59
|
+
include: import("zod").ZodString;
|
|
60
|
+
excludedDirectories: import("zod").ZodEnum<{
|
|
61
|
+
configured: "configured";
|
|
62
|
+
default: "default";
|
|
63
|
+
}>;
|
|
64
|
+
symlinks: import("zod").ZodEnum<{
|
|
65
|
+
list: "list";
|
|
66
|
+
skip: "skip";
|
|
67
|
+
}>;
|
|
68
|
+
}, import("zod/v4/core").$strict>;
|
|
69
|
+
visitedDirectories: import("zod").ZodInt;
|
|
70
|
+
visitedEntries: import("zod").ZodInt;
|
|
71
|
+
readBytes: import("zod").ZodInt;
|
|
72
|
+
elapsedMs: import("zod").ZodNumber;
|
|
73
|
+
}, import("zod/v4/core").$strict>;
|
|
74
|
+
}, import("zod/v4/core").$strict>, undefined, import("../tools/runtime-tool.js").RuntimeToolPresenters<{
|
|
75
|
+
matches: {
|
|
76
|
+
path: string;
|
|
77
|
+
line?: number | undefined;
|
|
78
|
+
text?: string | undefined;
|
|
79
|
+
before?: string[] | undefined;
|
|
80
|
+
after?: string[] | undefined;
|
|
81
|
+
}[];
|
|
82
|
+
truncated: boolean;
|
|
83
|
+
scannedFiles: number;
|
|
84
|
+
skippedDirectories: number;
|
|
85
|
+
skippedSymlinks: number;
|
|
86
|
+
denied?: {
|
|
87
|
+
path: string;
|
|
88
|
+
kind: "directory" | "file" | "other" | "symlink";
|
|
89
|
+
}[] | undefined;
|
|
90
|
+
deniedTruncated?: boolean | undefined;
|
|
91
|
+
errors?: {
|
|
92
|
+
path: string;
|
|
93
|
+
operation: string;
|
|
94
|
+
code: string;
|
|
95
|
+
}[] | undefined;
|
|
96
|
+
errorsTruncated?: boolean | undefined;
|
|
97
|
+
hint?: string | undefined;
|
|
98
|
+
coverage: {
|
|
99
|
+
complete: boolean;
|
|
100
|
+
reasons: ("cancelled" | "denied" | "max-bytes" | "max-depth" | "max-directories" | "max-entries" | "max-file-bytes" | "max-files" | "max-line-bytes" | "max-output-bytes" | "max-results" | "timeout" | "unreadable")[];
|
|
101
|
+
scope: {
|
|
102
|
+
path: string;
|
|
103
|
+
include: string;
|
|
104
|
+
excludedDirectories: "configured" | "default";
|
|
105
|
+
symlinks: "list" | "skip";
|
|
106
|
+
};
|
|
107
|
+
visitedDirectories: number;
|
|
108
|
+
visitedEntries: number;
|
|
109
|
+
readBytes: number;
|
|
110
|
+
elapsedMs: number;
|
|
111
|
+
};
|
|
112
|
+
}>>;
|
|
113
|
+
//# sourceMappingURL=coding-tool-search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coding-tool-search.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/coding-tool-search.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AA4O3F,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,qBAAqB,EAC7B,MAAM,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAY9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coding-tool-shell.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/coding-tool-shell.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coding-tool-shell.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/coding-tool-shell.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAG3B,MAAM,wBAAwB,CAAC;AAShC,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,qBAAqB,EAC7B,MAAM,EAAE,qBAAqB,GAC5B,yBAAyB,CA0I3B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ScanStopReason } from './contained-scan-contract.js';
|
|
2
|
+
export declare class ScanStopped extends Error {
|
|
3
|
+
}
|
|
4
|
+
/** Checkpoints cover CPU work; races bound async policies and dispose late capabilities. */
|
|
5
|
+
export declare class ContainedScanBudget {
|
|
6
|
+
readonly limits: {
|
|
7
|
+
maxDirectories?: number;
|
|
8
|
+
maxEntries?: number;
|
|
9
|
+
maxBytes?: number;
|
|
10
|
+
signal?: AbortSignal;
|
|
11
|
+
deadline?: number;
|
|
12
|
+
};
|
|
13
|
+
readonly reasons: Set<"cancelled" | "denied" | "max-bytes" | "max-depth" | "max-directories" | "max-entries" | "max-file-bytes" | "max-files" | "max-line-bytes" | "max-output-bytes" | "max-results" | "timeout" | "unreadable">;
|
|
14
|
+
visitedDirectories: number;
|
|
15
|
+
visitedEntries: number;
|
|
16
|
+
readBytes: number;
|
|
17
|
+
constructor(limits?: {
|
|
18
|
+
maxDirectories?: number;
|
|
19
|
+
maxEntries?: number;
|
|
20
|
+
maxBytes?: number;
|
|
21
|
+
signal?: AbortSignal;
|
|
22
|
+
deadline?: number;
|
|
23
|
+
});
|
|
24
|
+
stop(reason: ScanStopReason): never;
|
|
25
|
+
check(): void;
|
|
26
|
+
wait<T>(operation: () => Promise<T>, disposeLate?: (value: T) => void): Promise<T>;
|
|
27
|
+
directory(): void;
|
|
28
|
+
remainingEntries(): number | undefined;
|
|
29
|
+
entry(): void;
|
|
30
|
+
readAllowance(maxFileBytes: number): number;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=contained-scan-budget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contained-scan-budget.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/contained-scan-budget.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,qBAAa,WAAY,SAAQ,KAAK;CAAG;AAEzC,4FAA4F;AAC5F,qBAAa,mBAAmB;IAO5B,QAAQ,CAAC,MAAM,EAAE;QACf,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,WAAW,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;IAZH,QAAQ,CAAC,OAAO,kNAA6B;IAC7C,kBAAkB,SAAK;IACvB,cAAc,SAAK;IACnB,SAAS,SAAK;IAEd,YACW,MAAM,GAAE;QACf,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,WAAW,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACd,EACJ;IAEJ,IAAI,CAAC,MAAM,EAAE,cAAc,GAAG,KAAK,CAGlC;IAED,KAAK,IAAI,IAAI,CAIZ;IAEK,IAAI,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,CAcvF;IAED,SAAS,IAAI,IAAI,CAKhB;IAED,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAMrC;IAED,KAAK,IAAI,IAAI,CAGZ;IAED,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAK1C;CACF"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ScanStopReasonSchema: z.ZodEnum<{
|
|
3
|
+
cancelled: "cancelled";
|
|
4
|
+
denied: "denied";
|
|
5
|
+
"max-bytes": "max-bytes";
|
|
6
|
+
"max-depth": "max-depth";
|
|
7
|
+
"max-directories": "max-directories";
|
|
8
|
+
"max-entries": "max-entries";
|
|
9
|
+
"max-file-bytes": "max-file-bytes";
|
|
10
|
+
"max-files": "max-files";
|
|
11
|
+
"max-line-bytes": "max-line-bytes";
|
|
12
|
+
"max-output-bytes": "max-output-bytes";
|
|
13
|
+
"max-results": "max-results";
|
|
14
|
+
timeout: "timeout";
|
|
15
|
+
unreadable: "unreadable";
|
|
16
|
+
}>;
|
|
17
|
+
export type ScanStopReason = z.infer<typeof ScanStopReasonSchema>;
|
|
18
|
+
export declare const DiscoveryCoverageSchema: z.ZodObject<{
|
|
19
|
+
complete: z.ZodBoolean;
|
|
20
|
+
reasons: z.ZodArray<z.ZodEnum<{
|
|
21
|
+
cancelled: "cancelled";
|
|
22
|
+
denied: "denied";
|
|
23
|
+
"max-bytes": "max-bytes";
|
|
24
|
+
"max-depth": "max-depth";
|
|
25
|
+
"max-directories": "max-directories";
|
|
26
|
+
"max-entries": "max-entries";
|
|
27
|
+
"max-file-bytes": "max-file-bytes";
|
|
28
|
+
"max-files": "max-files";
|
|
29
|
+
"max-line-bytes": "max-line-bytes";
|
|
30
|
+
"max-output-bytes": "max-output-bytes";
|
|
31
|
+
"max-results": "max-results";
|
|
32
|
+
timeout: "timeout";
|
|
33
|
+
unreadable: "unreadable";
|
|
34
|
+
}>>;
|
|
35
|
+
scope: z.ZodObject<{
|
|
36
|
+
path: z.ZodString;
|
|
37
|
+
include: z.ZodString;
|
|
38
|
+
excludedDirectories: z.ZodEnum<{
|
|
39
|
+
configured: "configured";
|
|
40
|
+
default: "default";
|
|
41
|
+
}>;
|
|
42
|
+
symlinks: z.ZodEnum<{
|
|
43
|
+
list: "list";
|
|
44
|
+
skip: "skip";
|
|
45
|
+
}>;
|
|
46
|
+
}, z.core.$strict>;
|
|
47
|
+
visitedDirectories: z.ZodInt;
|
|
48
|
+
visitedEntries: z.ZodInt;
|
|
49
|
+
readBytes: z.ZodInt;
|
|
50
|
+
elapsedMs: z.ZodNumber;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
//# sourceMappingURL=contained-scan-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contained-scan-contract.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/contained-scan-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;EAc/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiBzB,CAAC"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}): Promise<readonly ContainedFile[]>;
|
|
9
|
-
/** Bounded workspace scan whose recursion stays attached to opened directory identities. */
|
|
10
|
-
export declare function scanContainedFiles(input: {
|
|
11
|
-
root: string;
|
|
1
|
+
import { openPinnedDirectory } from '../internal/contained-directory.js';
|
|
2
|
+
import { type ContainedEntryKind, type ContainedFile, listAt } from '../internal/contained-files.js';
|
|
3
|
+
import type { ContainedFileHandle } from '../internal/contained-handle.js';
|
|
4
|
+
import { ContainedScanBudget } from './contained-scan-budget.js';
|
|
5
|
+
interface ScanInput {
|
|
6
|
+
/** A supplied capability remains owned by the caller, which has already charged its open. */
|
|
7
|
+
root: string | ContainedFileHandle;
|
|
12
8
|
maxDepth: number;
|
|
13
9
|
maxFiles: number;
|
|
14
10
|
symlinks: 'refuse' | 'skip';
|
|
@@ -16,6 +12,45 @@ export declare function scanContainedFiles(input: {
|
|
|
16
12
|
skipUnreadable?: boolean;
|
|
17
13
|
excludeDirectory?: (relative: string) => boolean;
|
|
18
14
|
includeFile?: (relative: string) => boolean;
|
|
19
|
-
authorizePath?: (relative: string, kind:
|
|
20
|
-
|
|
15
|
+
authorizePath?: (relative: string, kind: ContainedEntryKind) => boolean | Promise<boolean>;
|
|
16
|
+
budget?: ContainedScanBudget;
|
|
17
|
+
/** Returning false stops traversal; the visitor owns its precise stop reason. */
|
|
18
|
+
visitFile?: (file: ContainedFile) => boolean | Promise<boolean>;
|
|
19
|
+
maxDiagnostics?: number;
|
|
20
|
+
basePath?: string;
|
|
21
|
+
/** A direct discovery consumer may handle a disclosed entry and prune it. */
|
|
22
|
+
visitEntry?: (directory: ContainedFileHandle, entry: {
|
|
23
|
+
name: string;
|
|
24
|
+
kind: ContainedEntryKind;
|
|
25
|
+
}, relative: string) => boolean | Promise<boolean>;
|
|
26
|
+
}
|
|
27
|
+
export declare function walkContainedFiles(input: {
|
|
28
|
+
root: string;
|
|
29
|
+
maxDepth: number;
|
|
30
|
+
maxFiles: number;
|
|
31
|
+
readMaxBytes?: number;
|
|
32
|
+
}): Promise<readonly ContainedFile[]>;
|
|
33
|
+
/** One descriptor-anchored walker; search consumes each file before opening the next. */
|
|
34
|
+
export declare function scanContainedFiles(input: ScanInput, io?: {
|
|
35
|
+
openRoot: typeof openPinnedDirectory;
|
|
36
|
+
list: typeof listAt;
|
|
37
|
+
}): Promise<{
|
|
38
|
+
files: ContainedFile[];
|
|
39
|
+
truncated: boolean;
|
|
40
|
+
scannedFiles: number;
|
|
41
|
+
skippedDirectories: number;
|
|
42
|
+
skippedSymlinks: number;
|
|
43
|
+
denied: {
|
|
44
|
+
relative: string;
|
|
45
|
+
kind: ContainedEntryKind;
|
|
46
|
+
}[];
|
|
47
|
+
deniedTruncated: boolean;
|
|
48
|
+
errors: {
|
|
49
|
+
path: string;
|
|
50
|
+
operation: string;
|
|
51
|
+
code: string;
|
|
52
|
+
}[];
|
|
53
|
+
errorsTruncated: boolean;
|
|
54
|
+
}>;
|
|
55
|
+
export {};
|
|
21
56
|
//# sourceMappingURL=contained-scan.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contained-scan.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/contained-scan.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contained-scan.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/contained-scan.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACvF,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,MAAM,EAEP,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,EAAE,mBAAmB,EAAe,MAAM,yBAAyB,CAAC;AAE3E,UAAU,SAAS;IACjB,6FAA6F;IAC7F,IAAI,EAAE,MAAM,GAAG,mBAAmB,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;IACjD,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;IAC5C,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3F,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,iFAAiF;IACjF,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAChE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,CACX,SAAS,EAAE,mBAAmB,EAC9B,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,kBAAkB,CAAA;KAAE,EACjD,QAAQ,EAAE,MAAM,KACb,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACjC;AAED,wBAAsB,kBAAkB,CAAC,KAAK,EAAE;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,OAAO,CAAC,SAAS,aAAa,EAAE,CAAC,CAIpC;AAED,yFAAyF;AACzF,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,SAAS,EAChB,EAAE;IAAK,QAAQ;IAAuB,IAAI;CAAU;;;;;;;kBAI1B,MAAM;cAAQ,kBAAkB;;;;cACpC,MAAM;mBAAa,MAAM;cAAQ,MAAM;;;GA4L9D"}
|
|
@@ -977,6 +977,18 @@ export declare const AgentControlDeliverySchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
977
977
|
}>;
|
|
978
978
|
input: z.ZodOptional<z.ZodJSONSchema>;
|
|
979
979
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
980
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
981
|
+
conversationId: z.ZodString;
|
|
982
|
+
runId: z.ZodString;
|
|
983
|
+
emittedAt: z.ZodISODateTime;
|
|
984
|
+
type: z.ZodLiteral<"tool-progress">;
|
|
985
|
+
runtimeEpoch: z.ZodString;
|
|
986
|
+
sequence: z.ZodInt;
|
|
987
|
+
callId: z.ZodString;
|
|
988
|
+
toolName: z.ZodString;
|
|
989
|
+
message: z.ZodOptional<z.ZodString>;
|
|
990
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
991
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
980
992
|
}, z.core.$strip>, z.ZodObject<{
|
|
981
993
|
conversationId: z.ZodString;
|
|
982
994
|
runId: z.ZodString;
|
|
@@ -1181,13 +1193,24 @@ export declare function advanceAgentMultiSessionCursor(raw: AgentMultiSessionCur
|
|
|
1181
1193
|
status: 'accepted' | 'duplicate' | 'gap';
|
|
1182
1194
|
cursor: AgentMultiSessionCursor;
|
|
1183
1195
|
};
|
|
1196
|
+
/** A tool call still running, with the last progress it reported. */
|
|
1197
|
+
export interface AgentToolActivity {
|
|
1198
|
+
toolName: string;
|
|
1199
|
+
message?: string;
|
|
1200
|
+
progress?: number;
|
|
1201
|
+
total?: number;
|
|
1202
|
+
}
|
|
1203
|
+
/** What a run shows while it streams, before its next checkpoint makes it durable. */
|
|
1204
|
+
export interface AgentRunTransient {
|
|
1205
|
+
text: string;
|
|
1206
|
+
reasoning: string;
|
|
1207
|
+
/** Running tool calls that reported progress, by call id; a call leaves on its terminal status. */
|
|
1208
|
+
tools: Readonly<Record<string, AgentToolActivity>>;
|
|
1209
|
+
}
|
|
1184
1210
|
export interface AgentConversationView {
|
|
1185
1211
|
snapshot?: AgentSnapshot;
|
|
1186
1212
|
resyncRequired: boolean;
|
|
1187
|
-
transientByRun: Readonly<Record<string,
|
|
1188
|
-
text: string;
|
|
1189
|
-
reasoning: string;
|
|
1190
|
-
}>>;
|
|
1213
|
+
transientByRun: Readonly<Record<string, AgentRunTransient>>;
|
|
1191
1214
|
}
|
|
1192
1215
|
export interface AgentControlView {
|
|
1193
1216
|
cursor: AgentMultiSessionCursor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-schema.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/control-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,iBAAiB,EAA2B,MAAM,gBAAgB,CAAC;AACjF,OAAO,EAA0B,KAAK,aAAa,EAAuB,MAAM,WAAW,CAAC;AAM5F,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAoCpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAetC,CAAC;AACH;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAMhF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAYrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"control-schema.d.ts","sourceRoot":"","sources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AM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,sFAAsF;AACtF,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,mGAAmG;IACnG,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC;CACpD;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC;CAC7D;AA8CD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,uBAAuB,CAAC;IAChC,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC,CAAC;CAChE;AAED,wBAAgB,sBAAsB,IAAI,gBAAgB,CAEzD;AAED,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,gBAAgB,EACtB,WAAW,EAAE,aAAa,GACzB,gBAAgB,CAuBlB;AAED,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,gBAAgB,EACtB,QAAQ,EAAE,iBAAiB,GAC1B,gBAAgB,CAuClB"}
|
|
@@ -602,6 +602,27 @@ export declare const AgentToolStatusEventSchema: z.ZodObject<{
|
|
|
602
602
|
input: z.ZodOptional<z.ZodJSONSchema>;
|
|
603
603
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
604
604
|
}, z.core.$strip>;
|
|
605
|
+
/** The longest progress message a run publishes; a longer one is cut to this. */
|
|
606
|
+
export declare const AGENT_TOOL_PROGRESS_MESSAGE_MAX = 280;
|
|
607
|
+
/**
|
|
608
|
+
* What a running tool said about itself through `ctx.reportProgress` — the
|
|
609
|
+
* same fields an MCP host receives. Transient like a text delta: it is for the
|
|
610
|
+
* screen while the call runs, never part of the model's input or of the
|
|
611
|
+
* durable history, and the call's terminal `tool-status` supersedes it.
|
|
612
|
+
*/
|
|
613
|
+
export declare const AgentToolProgressEventSchema: z.ZodObject<{
|
|
614
|
+
conversationId: z.ZodString;
|
|
615
|
+
runId: z.ZodString;
|
|
616
|
+
emittedAt: z.ZodISODateTime;
|
|
617
|
+
type: z.ZodLiteral<"tool-progress">;
|
|
618
|
+
runtimeEpoch: z.ZodString;
|
|
619
|
+
sequence: z.ZodInt;
|
|
620
|
+
callId: z.ZodString;
|
|
621
|
+
toolName: z.ZodString;
|
|
622
|
+
message: z.ZodOptional<z.ZodString>;
|
|
623
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
624
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
625
|
+
}, z.core.$strip>;
|
|
605
626
|
export declare const AgentTerminalEventSchema: z.ZodObject<{
|
|
606
627
|
conversationId: z.ZodString;
|
|
607
628
|
runId: z.ZodString;
|
|
@@ -1368,6 +1389,18 @@ export declare const AgentRuntimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
1368
1389
|
}>;
|
|
1369
1390
|
input: z.ZodOptional<z.ZodJSONSchema>;
|
|
1370
1391
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
1392
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1393
|
+
conversationId: z.ZodString;
|
|
1394
|
+
runId: z.ZodString;
|
|
1395
|
+
emittedAt: z.ZodISODateTime;
|
|
1396
|
+
type: z.ZodLiteral<"tool-progress">;
|
|
1397
|
+
runtimeEpoch: z.ZodString;
|
|
1398
|
+
sequence: z.ZodInt;
|
|
1399
|
+
callId: z.ZodString;
|
|
1400
|
+
toolName: z.ZodString;
|
|
1401
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1402
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
1403
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
1371
1404
|
}, z.core.$strip>, z.ZodObject<{
|
|
1372
1405
|
conversationId: z.ZodString;
|
|
1373
1406
|
runId: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-schema.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/event-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUpC,CAAC;AAQH,eAAO,MAAM,8BAA8B;;;;;;;;iBAKzC,CAAC;AAQH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;iBAEzC,CAAC;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;iBAGzC,CAAC;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;iBAEvC,CAAC;AACH;;;;GAIG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;iBAKvC,CAAC;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMrC,CAAC;AACH,e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eAAe,GAAG,UAAU,EACvF,KAAK,EAAE,MAAM,EACb,eAAe,EAAE,MAAM,GACtB,MAAM,CAER"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-acquisition.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-acquisition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAGlC,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC7B,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAI3D;;;;;GAKG;AACH,MAAM,MAAM,cAAc,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,IACrD;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,kBAAkB,CAAA;CAAE,GAChD;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,SAAS,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;CAAE,CAAC;AAElE,wBAAsB,UAAU,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EAC7D,YAAY,EAAE,uBAAuB,CAAC,OAAO,EAAE,KAAK,CAAC,EACrD,KAAK,EAAE,iBAAiB,CAAC,OAAO,CAAC,GAChC,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"run-acquisition.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-acquisition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAGlC,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC7B,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAI3D;;;;;GAKG;AACH,MAAM,MAAM,cAAc,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,IACrD;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,kBAAkB,CAAA;CAAE,GAChD;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,SAAS,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;CAAE,CAAC;AAElE,wBAAsB,UAAU,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EAC7D,YAAY,EAAE,uBAAuB,CAAC,OAAO,EAAE,KAAK,CAAC,EACrD,KAAK,EAAE,iBAAiB,CAAC,OAAO,CAAC,GAChC,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CA6HzC;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EACpE,SAAS,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,GACtC,OAAO,CAAC,IAAI,CAAC,CAwCf"}
|
|
@@ -75,6 +75,12 @@ export interface RunExecutionState {
|
|
|
75
75
|
readonly absorbed: Map<string, string[]>;
|
|
76
76
|
eventsSinceCheckpoint: number;
|
|
77
77
|
sequence: number;
|
|
78
|
+
/**
|
|
79
|
+
* Tool calls whose terminal `tool-status` is out. A progress report from one
|
|
80
|
+
* of them is late — a promise the handler left running — and is dropped, so
|
|
81
|
+
* it cannot reappear on a screen that already shows the call settled.
|
|
82
|
+
*/
|
|
83
|
+
readonly settledToolCalls: Set<string>;
|
|
78
84
|
terminalReason: AgentTerminalReason;
|
|
79
85
|
nonModelUsage: AgentUsage | undefined;
|
|
80
86
|
modelUsage: AgentUsage | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-execution-state.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-execution-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,KAAK,EAA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EAAE,iBAAiB,EACxB,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,OAAO,GACjB,IAAI,CA2BN;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EACvD,SAAS,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,GACtC,OAAO,CAAC,IAAI,CAAC,CAkDf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-model-attempts.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-model-attempts.ts"],"names":[],"mappings":"AACA,OAAO,EAQL,KAAK,OAAO,EACb,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"run-model-attempts.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-model-attempts.ts"],"names":[],"mappings":"AACA,OAAO,EAQL,KAAK,OAAO,EACb,MAAM,IAAI,CAAC;AAUZ,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,uBAAuB,CAAC;AAS/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAkY3D,+EAA+E;AAC/E,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EACnE,SAAS,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,EACvC,IAAI,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,GACjC,OAAO,CAAC,IAAI,CAAC,CAuCf"}
|
|
@@ -8,6 +8,17 @@ export interface StreamPartScope {
|
|
|
8
8
|
ledger: RunProviderLedger;
|
|
9
9
|
providerAttempt: number;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* The fields every transient event of this run leads with, in the order the
|
|
13
|
+
* events have always carried them. Taking one advances the sequence.
|
|
14
|
+
*/
|
|
15
|
+
/** The identity every transient event of this run carries, with the next sequence. */
|
|
16
|
+
export declare function transientHead<CONTEXT, TOOLS extends ToolSet>(execution: RunExecution<CONTEXT, TOOLS>): {
|
|
17
|
+
conversationId: string;
|
|
18
|
+
runId: string;
|
|
19
|
+
runtimeEpoch: string;
|
|
20
|
+
sequence: number;
|
|
21
|
+
};
|
|
11
22
|
/** A part that is the provider producing output, as opposed to framing it. */
|
|
12
23
|
export declare function isOutputPart<TOOLS extends ToolSet>(part: TextStreamPart<TOOLS>): boolean;
|
|
13
24
|
/** Parts after which the durable draft is checkpointed regardless of the event count. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-stream-parts.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-stream-parts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAGlD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EAGL,KAAK,YAAY,EAGlB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAW/D,0FAA0F;AAC1F,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,kBAAkB,CAAC;IAClC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;CACzB;
|
|
1
|
+
{"version":3,"file":"run-stream-parts.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-stream-parts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAGlD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EAGL,KAAK,YAAY,EAGlB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAW/D,0FAA0F;AAC1F,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,kBAAkB,CAAC;IAClC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,sFAAsF;AACtF,wBAAgB,aAAa,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EAC1D,SAAS,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC;IAIrC,cAAc;IACd,KAAK;IACL,YAAY;IACZ,QAAQ;EAEX;AAED,8EAA8E;AAC9E,wBAAgB,YAAY,CAAC,KAAK,SAAS,OAAO,EAAE,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,OAAO,CAOxF;AAED,yFAAyF;AACzF,eAAO,MAAM,yBAAyB,EAAE,SAAS,MAAM,EAQtD,CAAC;AA8RF,mFAAmF;AACnF,wBAAsB,eAAe,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EAClE,SAAS,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,EACvC,KAAK,EAAE,eAAe,EACtB,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC,GAC1B,OAAO,CAAC,IAAI,CAAC,CAqEf"}
|
|
@@ -55,7 +55,11 @@ export interface AgentSandboxOutputStream {
|
|
|
55
55
|
* object's identity ({@link probeAgentProcessSandbox}).
|
|
56
56
|
*/
|
|
57
57
|
export interface AgentProcessSandbox {
|
|
58
|
-
/**
|
|
58
|
+
/**
|
|
59
|
+
* Optional lifecycle-owned launcher. The adapter owns atomic capture of its pathname cwd
|
|
60
|
+
* and isolation at spawn; the SDK checks identity at handoff but cannot pin this custom
|
|
61
|
+
* launcher's filesystem operations. The coding profile owns output and deadline handling.
|
|
62
|
+
*/
|
|
59
63
|
spawn?(input: Parameters<AgentProcessSandbox['prepare']>[0]): AgentSandboxProcess;
|
|
60
64
|
/** Grade what this sandbox enforces; a throw or a non-grade is read as `unavailable`. */
|
|
61
65
|
probe(): AgentSandboxGrade | Promise<AgentSandboxGrade>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/sandbox.ts"],"names":[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E,mBAAmB,EAC5B,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,GAClC,OAAO,CAAC,wBAAwB,CAAC,CAOnC;AAED;;;;;;;;;GASG;AACH,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,mBAAmB,EAC5B,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,GAClC,OAAO,CAAC,iBAAiB,CAAC,CAO5B;AAED,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,iBAAiB,EACxB,QAAQ,EAAE,SAAS,uBAAuB,EAAE,GAC3C,SAAS,uBAAuB,EAAE,CAIpC;AAED,wFAAwF;AACxF,wBAAsB,uBAAuB,CAAC,KAAK,EAAE;IACnD,KAAK,EAAE,iBAAiB,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,mBAAmB,CAAC;IAC7B,QAAQ,EAAE,SAAS,uBAAuB,EAAE,CAAC;CAC9C,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAa7B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The agent runtime's `ctx.reportProgress`: what a tool handler says about
|
|
3
|
+
* itself while it runs becomes a transient `tool-progress` event of the run.
|
|
4
|
+
*
|
|
5
|
+
* The handler API is the one MCP already serves, so a tool written for an MCP
|
|
6
|
+
* host reports to the agent's screen unchanged. Progress is for the person
|
|
7
|
+
* watching: it never reaches the model, which receives only the tool's result,
|
|
8
|
+
* and it is not part of the durable history.
|
|
9
|
+
*/
|
|
10
|
+
import type { ToolSet } from 'ai';
|
|
11
|
+
import type { McpReportProgress } from '../contract/runtime-context.js';
|
|
12
|
+
import type { RunExecution } from './run-execution-state.js';
|
|
13
|
+
/**
|
|
14
|
+
* The shortest gap between two published reports of one call. A handler that
|
|
15
|
+
* reports on every chunk would otherwise outpace the stream it rides on; the
|
|
16
|
+
* call's terminal `tool-status` carries the final word either way.
|
|
17
|
+
*/
|
|
18
|
+
export declare const TOOL_PROGRESS_MIN_INTERVAL_MS = 250;
|
|
19
|
+
/** One reporter per tool call, bound to the run that issued it. */
|
|
20
|
+
export declare function createToolProgressReporter<CONTEXT, TOOLS extends ToolSet>(execution: RunExecution<CONTEXT, TOOLS>, toolName: string, callId: string, signal?: AbortSignal): McpReportProgress;
|
|
21
|
+
//# sourceMappingURL=tool-progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-progress.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/tool-progress.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,KAAK,EAAqB,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAExF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAG1D;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,MAAM,CAAC;AAMjD,mEAAmE;AACnE,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EACvE,SAAS,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,EACvC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,WAAW,GACnB,iBAAiB,CA6BnB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** One finite automaton for full matches and directory-prefix reachability. */
|
|
2
|
+
export declare function compileWorkspaceGlob(pattern: string, check?: () => void): {
|
|
3
|
+
test: (value: string) => boolean;
|
|
4
|
+
mayContain: (directory: string) => boolean;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=workspace-glob.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-glob.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/workspace-glob.ts"],"names":[],"mappings":"AAKA,+EAA+E;AAC/E,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,IAAI;IA+EpE,IAAI,UAAU,MAAM,KAAG,OAAO;IAC9B,UAAU,cAAc,MAAM,KAAG,OAAO;EAS3C"}
|
|
@@ -47,12 +47,14 @@ import {
|
|
|
47
47
|
AgentRunStateEventSchema2,
|
|
48
48
|
AgentRunOperationEventSchema2,
|
|
49
49
|
AgentToolStatusEventSchema2,
|
|
50
|
+
AGENT_TOOL_PROGRESS_MESSAGE_MAX2,
|
|
51
|
+
AgentToolProgressEventSchema2,
|
|
50
52
|
AgentTerminalEventSchema2,
|
|
51
53
|
AgentRuntimeEventSchema2,
|
|
52
54
|
AgentRuntimeEventCursorSchema2,
|
|
53
55
|
advanceAgentRuntimeEventCursor2,
|
|
54
56
|
agentDurableEventId2
|
|
55
|
-
} from "../../index-
|
|
57
|
+
} from "../../index-hs76yzt7.js";
|
|
56
58
|
import {
|
|
57
59
|
AgentControlRequestSchema2,
|
|
58
60
|
AgentControlErrorCodeSchema2,
|
|
@@ -63,11 +65,11 @@ import {
|
|
|
63
65
|
createAgentControlView2,
|
|
64
66
|
reduceAgentControlSnapshot2,
|
|
65
67
|
reduceAgentControlEvent2
|
|
66
|
-
} from "../../index-
|
|
68
|
+
} from "../../index-t05a2ry4.js";
|
|
67
69
|
import {
|
|
68
70
|
AgentBrowserRequestSchema2,
|
|
69
71
|
agentControlRealtimeContract2
|
|
70
|
-
} from "../../index-
|
|
72
|
+
} from "../../index-b51tzcgh.js";
|
|
71
73
|
import"../../index-3za04re9.js";
|
|
72
74
|
import"../../index-4s0fep5q.js";
|
|
73
75
|
import {
|
|
@@ -304,6 +306,7 @@ class ConversationController {
|
|
|
304
306
|
}
|
|
305
307
|
}
|
|
306
308
|
export {
|
|
309
|
+
AGENT_TOOL_PROGRESS_MESSAGE_MAX2 as AGENT_TOOL_PROGRESS_MESSAGE_MAX,
|
|
307
310
|
AgentAdmissionEventSchema2 as AgentAdmissionEventSchema,
|
|
308
311
|
AgentAssistantPlaceholderSchema2 as AgentAssistantPlaceholderSchema,
|
|
309
312
|
AgentAttemptResetEventSchema2 as AgentAttemptResetEventSchema,
|
|
@@ -352,6 +355,7 @@ export {
|
|
|
352
355
|
AgentToolApprovalRequestPartSchema2 as AgentToolApprovalRequestPartSchema,
|
|
353
356
|
AgentToolApprovalResponsePartSchema2 as AgentToolApprovalResponsePartSchema,
|
|
354
357
|
AgentToolCallPartSchema2 as AgentToolCallPartSchema,
|
|
358
|
+
AgentToolProgressEventSchema2 as AgentToolProgressEventSchema,
|
|
355
359
|
AgentToolResultPartSchema2 as AgentToolResultPartSchema,
|
|
356
360
|
AgentToolStatusEventSchema2 as AgentToolStatusEventSchema,
|
|
357
361
|
AgentTransientDeltaEventSchema2 as AgentTransientDeltaEventSchema,
|