@namzu/sdk 60.2.1 → 61.1.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 +21 -0
- package/README.md +4 -4
- package/dist/account/registry.js +1 -1
- package/dist/account/registry.js.map +1 -1
- package/dist/config/registry.d.ts +2 -2
- package/dist/config/registry.d.ts.map +1 -1
- package/dist/config/runtime.d.ts +50 -644
- package/dist/config/runtime.d.ts.map +1 -1
- package/dist/config/runtime.js +1 -1
- package/dist/config/runtime.js.map +1 -1
- package/dist/connector/BaseConnector.d.ts +1 -1
- package/dist/connector/BaseConnector.d.ts.map +1 -1
- package/dist/connector/builtins/http.d.ts +2 -12
- package/dist/connector/builtins/http.d.ts.map +1 -1
- package/dist/connector/builtins/http.js +3 -3
- package/dist/connector/builtins/http.js.map +1 -1
- package/dist/connector/builtins/webhook.d.ts +2 -14
- package/dist/connector/builtins/webhook.d.ts.map +1 -1
- package/dist/connector/builtins/webhook.js +3 -3
- package/dist/connector/builtins/webhook.js.map +1 -1
- package/dist/connector/mcp/adapter.d.ts +2 -2
- package/dist/connector/mcp/adapter.d.ts.map +1 -1
- package/dist/connector/mcp/adapter.js +6 -4
- package/dist/connector/mcp/adapter.js.map +1 -1
- package/dist/connector/mcp/reconnect.d.ts +1 -11
- package/dist/connector/mcp/reconnect.d.ts.map +1 -1
- package/dist/connector/tools/adapter.d.ts +1 -11
- package/dist/connector/tools/adapter.d.ts.map +1 -1
- package/dist/connector/tools/adapter.js +1 -1
- package/dist/connector/tools/adapter.js.map +1 -1
- package/dist/connector/tools/definitions.js +1 -1
- package/dist/connector/tools/definitions.js.map +1 -1
- package/dist/contracts/a2a.d.ts +137 -1136
- package/dist/contracts/a2a.d.ts.map +1 -1
- package/dist/contracts/a2a.js +8 -8
- package/dist/contracts/a2a.js.map +1 -1
- package/dist/contracts/schemas.d.ts +7 -22
- package/dist/contracts/schemas.d.ts.map +1 -1
- package/dist/contracts/schemas.js +1 -1
- package/dist/contracts/schemas.js.map +1 -1
- package/dist/contracts/session/schemas.d.ts +35 -130
- package/dist/contracts/session/schemas.d.ts.map +1 -1
- package/dist/contracts/session/schemas.js +2 -2
- package/dist/contracts/session/schemas.js.map +1 -1
- package/dist/learning/cycle.d.ts +1 -12
- package/dist/learning/cycle.d.ts.map +1 -1
- package/dist/learning/experience.d.ts +15 -56
- package/dist/learning/experience.d.ts.map +1 -1
- package/dist/learning/observation.d.ts +13 -59
- package/dist/learning/observation.d.ts.map +1 -1
- package/dist/learning/skill.d.ts +41 -556
- package/dist/learning/skill.d.ts.map +1 -1
- package/dist/learning/store.js +1 -1
- package/dist/learning/store.js.map +1 -1
- package/dist/manager/resident/consumption.d.ts +12 -46
- package/dist/manager/resident/consumption.d.ts.map +1 -1
- package/dist/manager/resident/initiative.d.ts +3 -54
- package/dist/manager/resident/initiative.d.ts.map +1 -1
- package/dist/manager/resident/outbox.d.ts +14 -104
- package/dist/manager/resident/outbox.d.ts.map +1 -1
- package/dist/manager/resident/proposal.d.ts +6 -46
- package/dist/manager/resident/proposal.d.ts.map +1 -1
- package/dist/manager/resident/store.d.ts +14 -110
- package/dist/manager/resident/store.d.ts.map +1 -1
- package/dist/pals/activity/subscription-schema.d.ts +46 -295
- package/dist/pals/activity/subscription-schema.d.ts.map +1 -1
- package/dist/pals/channels/routing.d.ts +8 -8
- package/dist/pals/channels/schema.d.ts +38 -202
- package/dist/pals/channels/schema.d.ts.map +1 -1
- package/dist/pals/communication/ingress-schema.d.ts +721 -7198
- package/dist/pals/communication/ingress-schema.d.ts.map +1 -1
- package/dist/pals/communication/ingress-schema.js.map +1 -1
- package/dist/pals/communication/schema.d.ts +171 -1819
- package/dist/pals/communication/schema.d.ts.map +1 -1
- package/dist/peers/index.d.ts +2 -2
- package/dist/peers/index.d.ts.map +1 -1
- package/dist/peers/index.js +1 -1
- package/dist/peers/index.js.map +1 -1
- package/dist/peers/protocol.d.ts +136 -481
- package/dist/peers/protocol.d.ts.map +1 -1
- package/dist/peers/record.d.ts +56 -106
- package/dist/peers/record.d.ts.map +1 -1
- package/dist/peers/record.js +16 -0
- package/dist/peers/record.js.map +1 -1
- package/dist/public-runtime.d.ts +1 -1
- package/dist/public-runtime.d.ts.map +1 -1
- package/dist/public-runtime.js +1 -1
- package/dist/public-runtime.js.map +1 -1
- package/dist/public-types.d.ts +1 -1
- package/dist/public-types.d.ts.map +1 -1
- package/dist/registry/tool/dialect.d.ts +4 -4
- package/dist/registry/tool/dialect.js +4 -4
- package/dist/registry/tool/json-schema.d.ts +35 -0
- package/dist/registry/tool/json-schema.d.ts.map +1 -0
- package/dist/registry/tool/json-schema.js +40 -0
- package/dist/registry/tool/json-schema.js.map +1 -0
- package/dist/registry/tool/portable.js +2 -2
- package/dist/registry/tool/portable.js.map +1 -1
- package/dist/registry/tool/schema.d.ts.map +1 -1
- package/dist/registry/tool/schema.js +3 -6
- package/dist/registry/tool/schema.js.map +1 -1
- package/dist/store/evidence/index-page.d.ts +11 -42
- package/dist/store/evidence/index-page.d.ts.map +1 -1
- package/dist/store/evidence/search-input.d.ts +1 -1
- package/dist/store/evidence/search-input.d.ts.map +1 -1
- package/dist/store/evidence/selection.d.ts +1 -1
- package/dist/store/evidence/selection.d.ts.map +1 -1
- package/dist/store/evidence/source-text.d.ts +4 -25
- package/dist/store/evidence/source-text.d.ts.map +1 -1
- package/dist/tools/builtins/browser.d.ts +43 -267
- package/dist/tools/builtins/browser.d.ts.map +1 -1
- package/dist/tools/builtins/code-analysis.d.ts +7 -7
- package/dist/tools/builtins/computer-use.d.ts +138 -647
- package/dist/tools/builtins/computer-use.d.ts.map +1 -1
- package/dist/tools/builtins/edit.d.ts +5 -117
- package/dist/tools/builtins/edit.d.ts.map +1 -1
- package/dist/tools/builtins/grep.d.ts +4 -4
- package/dist/tools/builtins/lsp.d.ts +1 -1
- package/dist/tools/builtins/read-file.d.ts +2 -2
- package/dist/tools/builtins/skill.d.ts +2 -2
- package/dist/tools/builtins/view-image.d.ts +1 -5
- package/dist/tools/builtins/view-image.d.ts.map +1 -1
- package/dist/tools/builtins/wait-for-job.d.ts +2 -2
- package/dist/tools/builtins/web.d.ts +1 -1
- package/dist/tools/coordinator/index.d.ts.map +1 -1
- package/dist/tools/coordinator/index.js +1 -3
- package/dist/tools/coordinator/index.js.map +1 -1
- package/dist/tools/defineTool.js.map +1 -1
- package/dist/tools/memory/fields.d.ts +6 -1
- package/dist/tools/memory/fields.d.ts.map +1 -1
- package/dist/types/authorization/index.d.ts +82 -294
- package/dist/types/authorization/index.d.ts.map +1 -1
- package/dist/types/connector/core.d.ts +2 -2
- package/dist/types/connector/core.d.ts.map +1 -1
- package/dist/types/connector/definition.d.ts +1 -1
- package/dist/types/connector/definition.d.ts.map +1 -1
- package/dist/types/decision/index.d.ts +1 -9
- package/dist/types/decision/index.d.ts.map +1 -1
- package/dist/types/harness/schema.d.ts +121 -321
- package/dist/types/harness/schema.d.ts.map +1 -1
- package/dist/types/plugin/index.d.ts +14 -92
- package/dist/types/plugin/index.d.ts.map +1 -1
- package/dist/types/plugin/index.js +1 -1
- package/dist/types/plugin/index.js.map +1 -1
- package/dist/types/sandbox/index.d.ts +13 -47
- package/dist/types/sandbox/index.d.ts.map +1 -1
- package/dist/types/session/checkpoint.d.ts +22 -256
- package/dist/types/session/checkpoint.d.ts.map +1 -1
- package/dist/types/session/records.d.ts +889 -6072
- package/dist/types/session/records.d.ts.map +1 -1
- package/dist/types/session/records.js +2 -2
- package/dist/types/session/records.js.map +1 -1
- package/dist/types/tool/index.d.ts +1 -1
- package/dist/types/tool/index.d.ts.map +1 -1
- package/package.json +3 -5
- package/src/account/registry.ts +1 -1
- package/src/config/registry.ts +2 -2
- package/src/config/runtime.ts +1 -1
- package/src/connector/BaseConnector.ts +1 -1
- package/src/connector/builtins/http.ts +3 -3
- package/src/connector/builtins/webhook.ts +3 -3
- package/src/connector/mcp/adapter.ts +14 -9
- package/src/connector/tools/adapter.ts +1 -1
- package/src/connector/tools/definitions.ts +1 -1
- package/src/contracts/a2a.ts +8 -8
- package/src/contracts/schemas.ts +1 -1
- package/src/contracts/session/schemas.ts +2 -2
- package/src/learning/store.ts +1 -1
- package/src/pals/communication/ingress-schema.ts +1 -1
- package/src/peers/index.ts +2 -2
- package/src/peers/record.ts +20 -0
- package/src/public-runtime.ts +1 -0
- package/src/public-types.ts +1 -1
- package/src/registry/tool/dialect.ts +4 -4
- package/src/registry/tool/json-schema.ts +76 -0
- package/src/registry/tool/portable.ts +2 -2
- package/src/registry/tool/schema.ts +3 -6
- package/src/tools/coordinator/index.ts +2 -4
- package/src/tools/defineTool.ts +1 -1
- package/src/types/connector/core.ts +2 -2
- package/src/types/connector/definition.ts +1 -1
- package/src/types/plugin/index.ts +1 -1
- package/src/types/session/checkpoint.ts +1 -1
- package/src/types/session/records.ts +4 -8
- package/src/types/tool/index.ts +1 -1
package/dist/config/runtime.d.ts
CHANGED
|
@@ -9,172 +9,37 @@ export declare const TaskRouterConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
|
9
9
|
verification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
10
|
planning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
11
|
default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
},
|
|
13
|
-
default?: string | null | undefined;
|
|
14
|
-
compaction?: string | null | undefined;
|
|
15
|
-
summarization?: string | null | undefined;
|
|
16
|
-
exploration?: string | null | undefined;
|
|
17
|
-
coding?: string | null | undefined;
|
|
18
|
-
verification?: string | null | undefined;
|
|
19
|
-
planning?: string | null | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
default?: string | null | undefined;
|
|
22
|
-
compaction?: string | null | undefined;
|
|
23
|
-
summarization?: string | null | undefined;
|
|
24
|
-
exploration?: string | null | undefined;
|
|
25
|
-
coding?: string | null | undefined;
|
|
26
|
-
verification?: string | null | undefined;
|
|
27
|
-
planning?: string | null | undefined;
|
|
28
|
-
}>>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
29
13
|
export declare const CompactionConfigSchema: z.ZodObject<{
|
|
30
|
-
/** Request-only exact duplicate observation masking. Enabled unless false; disabled strategy opts out too. */
|
|
31
14
|
deduplicateObservations: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
strategy: z.ZodDefault<z.ZodEnum<["structured", "salience", "sliding-window", "disabled"]>>;
|
|
39
|
-
/**
|
|
40
|
-
* `salience` only: the fraction of the window at which the working-set
|
|
41
|
-
* pass starts evicting low-salience messages, well before
|
|
42
|
-
* `triggerThreshold` summarises. The context is held around here.
|
|
43
|
-
*/
|
|
15
|
+
strategy: z.ZodDefault<z.ZodEnum<{
|
|
16
|
+
disabled: "disabled";
|
|
17
|
+
structured: "structured";
|
|
18
|
+
salience: "salience";
|
|
19
|
+
"sliding-window": "sliding-window";
|
|
20
|
+
}>>;
|
|
44
21
|
softTarget: z.ZodOptional<z.ZodNumber>;
|
|
45
|
-
/**
|
|
46
|
-
* Optional model context-window size (tokens) the compaction trigger
|
|
47
|
-
* measures the CURRENT window against. NO default: when omitted the
|
|
48
|
-
* trigger falls back to the turn-level cumulative `tokenBudget` exactly as
|
|
49
|
-
* before, so existing consumers are byte-identical. Hosts that keep
|
|
50
|
-
* `tokenBudget` unlimited (0) set this so compaction fires on
|
|
51
|
-
* window-pressure instead of being a silent no-op.
|
|
52
|
-
*/
|
|
53
22
|
contextWindowTokens: z.ZodOptional<z.ZodNumber>;
|
|
54
|
-
/**
|
|
55
|
-
* Fraction of the context window at which older history is summarised.
|
|
56
|
-
*
|
|
57
|
-
* Absent, the trigger is derived from the window: the window less room for
|
|
58
|
-
* the reply (the model's output cap, at most 20,000 tokens) less a
|
|
59
|
-
* 13,000-token buffer, so 83.5% of a 200,000-token window and 96.7% of a
|
|
60
|
-
* 1,000,000-token one (see `resolveTriggerThreshold`). It used to default
|
|
61
|
-
* to a flat `0.7`; pass that to keep the earlier behaviour.
|
|
62
|
-
*/
|
|
63
23
|
triggerThreshold: z.ZodOptional<z.ZodNumber>;
|
|
64
|
-
/** Optional automatic-summary window; capped to the actual model window. */
|
|
65
24
|
autoCompactWindowTokens: z.ZodOptional<z.ZodNumber>;
|
|
66
|
-
/**
|
|
67
|
-
* Fraction the pass must get the context BELOW to be worth keeping.
|
|
68
|
-
*
|
|
69
|
-
* This is hysteresis, and without it compaction can thrash: a pass that
|
|
70
|
-
* only shaves the context from 0.72 to 0.71 of the window leaves the
|
|
71
|
-
* trigger armed, so the next iteration compacts again — paying a
|
|
72
|
-
* summarization call and busting the prompt-cache prefix each time, for
|
|
73
|
-
* nothing. A pass that cannot reach this level logs the shortfall and
|
|
74
|
-
* the turn continues rather than repeating a move that does not work.
|
|
75
|
-
*
|
|
76
|
-
* The field was declared and set by the shipped CLI but read by nothing;
|
|
77
|
-
* the choice was to implement it or delete it, and thrash is a real
|
|
78
|
-
* failure mode once the trigger actually fires.
|
|
79
|
-
*/
|
|
80
25
|
resetThreshold: z.ZodDefault<z.ZodNumber>;
|
|
81
|
-
/**
|
|
82
|
-
* Give up on automatic compaction when it stops working.
|
|
83
|
-
*
|
|
84
|
-
* Three failed passes in a row switch it off for the rest of the turn.
|
|
85
|
-
* Three compactions in a row, each followed by the window filling again
|
|
86
|
-
* within three iterations, stop the turn: the loop refills the context
|
|
87
|
-
* faster than a summary can empty it. Each is announced once, as a
|
|
88
|
-
* `compaction_failed` event.
|
|
89
|
-
*
|
|
90
|
-
* Off unless set. Without it a pass that sheds nothing is retried on every
|
|
91
|
-
* iteration, and a turn that refills the window is never stopped for it.
|
|
92
|
-
*/
|
|
93
26
|
circuitBreaker: z.ZodOptional<z.ZodBoolean>;
|
|
94
27
|
keepRecentMessages: z.ZodDefault<z.ZodNumber>;
|
|
95
|
-
/**
|
|
96
|
-
* Size the retained tail by TOKENS instead of by message count.
|
|
97
|
-
*
|
|
98
|
-
* A count cannot express what the tail costs. Four messages is four
|
|
99
|
-
* short turns or three short turns and a 200 KB tool result, and in the
|
|
100
|
-
* second case the tail alone can approach `resetThreshold` — the pass
|
|
101
|
-
* completes, reports it did not reach the threshold, leaves the trigger
|
|
102
|
-
* armed, and the next iteration pays another summarization call and
|
|
103
|
-
* busts the prompt-cache prefix again.
|
|
104
|
-
*
|
|
105
|
-
* Absent means the count is used, exactly as before. Set, it replaces
|
|
106
|
-
* only the NAIVE boundary; the safe-cut search that keeps a `tool_use`
|
|
107
|
-
* with its `tool_result` runs from there unchanged.
|
|
108
|
-
*/
|
|
109
28
|
keepRecentTokens: z.ZodOptional<z.ZodNumber>;
|
|
110
|
-
/**
|
|
111
|
-
* Before summarizing destructively, clear the OUTPUT of old, large tool
|
|
112
|
-
* results in place.
|
|
113
|
-
*
|
|
114
|
-
* Compaction paraphrases the agent's own reasoning away — the decisions,
|
|
115
|
-
* the false starts it learned from, the exact wording of a plan. That is
|
|
116
|
-
* a heavy price for a context problem usually caused by something much
|
|
117
|
-
* dumber: a few enormous tool outputs the agent already read and moved
|
|
118
|
-
* past. Clearing those reclaims most of the same tokens while keeping
|
|
119
|
-
* every message verbatim, and it is safe where trimming is not, because
|
|
120
|
-
* nothing moves — the `tool_use` ↔ `tool_result` pairing is untouched by
|
|
121
|
-
* construction.
|
|
122
|
-
*
|
|
123
|
-
* If the clear gets the context back under `triggerThreshold`, the
|
|
124
|
-
* summarization pass is skipped entirely. Set `false` to go straight to
|
|
125
|
-
* summarization.
|
|
126
|
-
*/
|
|
127
29
|
clearToolResults: z.ZodDefault<z.ZodBoolean>;
|
|
128
|
-
/**
|
|
129
|
-
* Record what each pass removes, as a `compaction_shed` event.
|
|
130
|
-
*
|
|
131
|
-
* On by default: without it the shed content exists nowhere afterwards
|
|
132
|
-
* — not in memory, not in `messages.json`, not in the transcript — and
|
|
133
|
-
* "what did the agent decide three compactions ago" is unanswerable.
|
|
134
|
-
*
|
|
135
|
-
* Off is for an operator with a transcript-size constraint, and it is a
|
|
136
|
-
* real trade: the transcript grows by roughly what the compaction saved
|
|
137
|
-
* in context, since the whole point is that the bodies are kept.
|
|
138
|
-
*/
|
|
139
30
|
recordShedHistory: z.ZodDefault<z.ZodBoolean>;
|
|
140
|
-
/** Most recent tool results left alone — the agent is likely still using them. */
|
|
141
31
|
keepRecentToolResults: z.ZodDefault<z.ZodNumber>;
|
|
142
|
-
/**
|
|
143
|
-
* Don't clear results smaller than this. Below it the placeholder is
|
|
144
|
-
* comparable in size to the output, so the churn buys nothing and costs
|
|
145
|
-
* the model a confusing hole in its history.
|
|
146
|
-
*/
|
|
147
32
|
minToolResultCharsToClear: z.ZodDefault<z.ZodNumber>;
|
|
148
|
-
|
|
149
|
-
preserveToolResultsFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
33
|
+
preserveToolResultsFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
150
34
|
maxToolResults: z.ZodDefault<z.ZodNumber>;
|
|
151
35
|
maxListSize: z.ZodDefault<z.ZodNumber>;
|
|
152
|
-
/**
|
|
153
|
-
* Entries pinned at the head of each capped list, never evicted.
|
|
154
|
-
*
|
|
155
|
-
* Eviction used to drop the OLDEST entry, so a long turn silently
|
|
156
|
-
* deleted the decision that set its approach while keeping the last
|
|
157
|
-
* twenty-five incidental notes. The early entries are the load-bearing
|
|
158
|
-
* ones and the recent ones are still in the un-compacted tail.
|
|
159
|
-
*/
|
|
160
36
|
keepFirstEntries: z.ZodDefault<z.ZodNumber>;
|
|
161
37
|
llmVerification: z.ZodDefault<z.ZodBoolean>;
|
|
162
38
|
llmVerificationMaxTokens: z.ZodDefault<z.ZodNumber>;
|
|
163
|
-
/**
|
|
164
|
-
* Let the model the host names for it write the compaction summary.
|
|
165
|
-
* Default `true`, and it takes effect only where the host supplies a
|
|
166
|
-
* model; without one, or when its call fails, the summary is the extracted
|
|
167
|
-
* working state. Left optional so an existing config literal still
|
|
168
|
-
* type-checks.
|
|
169
|
-
*/
|
|
170
39
|
modelSummary: z.ZodOptional<z.ZodBoolean>;
|
|
171
|
-
/** Longest model-written summary, in tokens. Default 4,096. */
|
|
172
40
|
modelSummaryMaxTokens: z.ZodOptional<z.ZodNumber>;
|
|
173
|
-
/** Characters of transcript the summary model reads; the newest and the first request are kept when it is longer. Default 240,000. */
|
|
174
41
|
modelSummaryInputChars: z.ZodOptional<z.ZodNumber>;
|
|
175
|
-
/** Characters of one tool result the summary model reads. Default 1,500. */
|
|
176
42
|
modelSummaryToolResultChars: z.ZodOptional<z.ZodNumber>;
|
|
177
|
-
/** Longest the whole summary call may take, in milliseconds, however steadily it streams. Past it the extracted summary is used. Default 120,000. */
|
|
178
43
|
modelSummaryTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
179
44
|
richStateThreshold: z.ZodDefault<z.ZodNumber>;
|
|
180
45
|
convoTextBudget: z.ZodDefault<z.ZodNumber>;
|
|
@@ -182,71 +47,7 @@ export declare const CompactionConfigSchema: z.ZodObject<{
|
|
|
182
47
|
maxCharsPerNote: z.ZodDefault<z.ZodNumber>;
|
|
183
48
|
maxCharsPerRequirement: z.ZodDefault<z.ZodNumber>;
|
|
184
49
|
maxCharsPerTask: z.ZodDefault<z.ZodNumber>;
|
|
185
|
-
},
|
|
186
|
-
strategy: "disabled" | "structured" | "salience" | "sliding-window";
|
|
187
|
-
resetThreshold: number;
|
|
188
|
-
keepRecentMessages: number;
|
|
189
|
-
clearToolResults: boolean;
|
|
190
|
-
recordShedHistory: boolean;
|
|
191
|
-
keepRecentToolResults: number;
|
|
192
|
-
minToolResultCharsToClear: number;
|
|
193
|
-
maxToolResults: number;
|
|
194
|
-
maxListSize: number;
|
|
195
|
-
keepFirstEntries: number;
|
|
196
|
-
llmVerification: boolean;
|
|
197
|
-
llmVerificationMaxTokens: number;
|
|
198
|
-
richStateThreshold: number;
|
|
199
|
-
convoTextBudget: number;
|
|
200
|
-
maxSentencesPerTurn: number;
|
|
201
|
-
maxCharsPerNote: number;
|
|
202
|
-
maxCharsPerRequirement: number;
|
|
203
|
-
maxCharsPerTask: number;
|
|
204
|
-
deduplicateObservations?: boolean | undefined;
|
|
205
|
-
softTarget?: number | undefined;
|
|
206
|
-
contextWindowTokens?: number | undefined;
|
|
207
|
-
triggerThreshold?: number | undefined;
|
|
208
|
-
autoCompactWindowTokens?: number | undefined;
|
|
209
|
-
circuitBreaker?: boolean | undefined;
|
|
210
|
-
keepRecentTokens?: number | undefined;
|
|
211
|
-
preserveToolResultsFrom?: string[] | undefined;
|
|
212
|
-
modelSummary?: boolean | undefined;
|
|
213
|
-
modelSummaryMaxTokens?: number | undefined;
|
|
214
|
-
modelSummaryInputChars?: number | undefined;
|
|
215
|
-
modelSummaryToolResultChars?: number | undefined;
|
|
216
|
-
modelSummaryTimeoutMs?: number | undefined;
|
|
217
|
-
}, {
|
|
218
|
-
deduplicateObservations?: boolean | undefined;
|
|
219
|
-
strategy?: "disabled" | "structured" | "salience" | "sliding-window" | undefined;
|
|
220
|
-
softTarget?: number | undefined;
|
|
221
|
-
contextWindowTokens?: number | undefined;
|
|
222
|
-
triggerThreshold?: number | undefined;
|
|
223
|
-
autoCompactWindowTokens?: number | undefined;
|
|
224
|
-
resetThreshold?: number | undefined;
|
|
225
|
-
circuitBreaker?: boolean | undefined;
|
|
226
|
-
keepRecentMessages?: number | undefined;
|
|
227
|
-
keepRecentTokens?: number | undefined;
|
|
228
|
-
clearToolResults?: boolean | undefined;
|
|
229
|
-
recordShedHistory?: boolean | undefined;
|
|
230
|
-
keepRecentToolResults?: number | undefined;
|
|
231
|
-
minToolResultCharsToClear?: number | undefined;
|
|
232
|
-
preserveToolResultsFrom?: string[] | undefined;
|
|
233
|
-
maxToolResults?: number | undefined;
|
|
234
|
-
maxListSize?: number | undefined;
|
|
235
|
-
keepFirstEntries?: number | undefined;
|
|
236
|
-
llmVerification?: boolean | undefined;
|
|
237
|
-
llmVerificationMaxTokens?: number | undefined;
|
|
238
|
-
modelSummary?: boolean | undefined;
|
|
239
|
-
modelSummaryMaxTokens?: number | undefined;
|
|
240
|
-
modelSummaryInputChars?: number | undefined;
|
|
241
|
-
modelSummaryToolResultChars?: number | undefined;
|
|
242
|
-
modelSummaryTimeoutMs?: number | undefined;
|
|
243
|
-
richStateThreshold?: number | undefined;
|
|
244
|
-
convoTextBudget?: number | undefined;
|
|
245
|
-
maxSentencesPerTurn?: number | undefined;
|
|
246
|
-
maxCharsPerNote?: number | undefined;
|
|
247
|
-
maxCharsPerRequirement?: number | undefined;
|
|
248
|
-
maxCharsPerTask?: number | undefined;
|
|
249
|
-
}>;
|
|
50
|
+
}, z.core.$strip>;
|
|
250
51
|
export type CompactionConfig = z.infer<typeof CompactionConfigSchema>;
|
|
251
52
|
export declare const AgentBusConfigSchema: z.ZodObject<{
|
|
252
53
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -255,48 +56,24 @@ export declare const AgentBusConfigSchema: z.ZodObject<{
|
|
|
255
56
|
maxLocksPerAgent: z.ZodDefault<z.ZodNumber>;
|
|
256
57
|
breakerFailureThreshold: z.ZodDefault<z.ZodNumber>;
|
|
257
58
|
breakerResetTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
258
|
-
},
|
|
259
|
-
enabled: boolean;
|
|
260
|
-
lockTimeoutMs: number;
|
|
261
|
-
lockAcquireTimeoutMs: number;
|
|
262
|
-
maxLocksPerAgent: number;
|
|
263
|
-
breakerFailureThreshold: number;
|
|
264
|
-
breakerResetTimeoutMs: number;
|
|
265
|
-
}, {
|
|
266
|
-
enabled?: boolean | undefined;
|
|
267
|
-
lockTimeoutMs?: number | undefined;
|
|
268
|
-
lockAcquireTimeoutMs?: number | undefined;
|
|
269
|
-
maxLocksPerAgent?: number | undefined;
|
|
270
|
-
breakerFailureThreshold?: number | undefined;
|
|
271
|
-
breakerResetTimeoutMs?: number | undefined;
|
|
272
|
-
}>;
|
|
59
|
+
}, z.core.$strip>;
|
|
273
60
|
export type AgentBusConfig = z.infer<typeof AgentBusConfigSchema>;
|
|
274
61
|
export declare const PromptCacheConfigSchema: z.ZodObject<{
|
|
275
62
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
276
|
-
strategy: z.ZodDefault<z.ZodEnum<
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
},
|
|
281
|
-
enabled?: boolean | undefined;
|
|
282
|
-
strategy?: "auto" | "disabled" | undefined;
|
|
283
|
-
}>;
|
|
63
|
+
strategy: z.ZodDefault<z.ZodEnum<{
|
|
64
|
+
auto: "auto";
|
|
65
|
+
disabled: "disabled";
|
|
66
|
+
}>>;
|
|
67
|
+
}, z.core.$strip>;
|
|
284
68
|
export declare const PluginRuntimeConfigSchema: z.ZodObject<{
|
|
285
69
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
286
70
|
autoDiscovery: z.ZodDefault<z.ZodBoolean>;
|
|
287
|
-
allowedScopes: z.ZodDefault<z.ZodArray<z.ZodEnum<
|
|
71
|
+
allowedScopes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
72
|
+
user: "user";
|
|
73
|
+
project: "project";
|
|
74
|
+
}>>>;
|
|
288
75
|
hookTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
289
|
-
},
|
|
290
|
-
enabled: boolean;
|
|
291
|
-
autoDiscovery: boolean;
|
|
292
|
-
allowedScopes: ("user" | "project")[];
|
|
293
|
-
hookTimeoutMs: number;
|
|
294
|
-
}, {
|
|
295
|
-
enabled?: boolean | undefined;
|
|
296
|
-
autoDiscovery?: boolean | undefined;
|
|
297
|
-
allowedScopes?: ("user" | "project")[] | undefined;
|
|
298
|
-
hookTimeoutMs?: number | undefined;
|
|
299
|
-
}>;
|
|
76
|
+
}, z.core.$strip>;
|
|
300
77
|
export type PluginRuntimeConfig = z.infer<typeof PluginRuntimeConfigSchema>;
|
|
301
78
|
export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
302
79
|
model: z.ZodDefault<z.ZodString>;
|
|
@@ -313,172 +90,37 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
313
90
|
verification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
314
91
|
planning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
315
92
|
default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
316
|
-
},
|
|
317
|
-
|
|
318
|
-
compaction?: string | null | undefined;
|
|
319
|
-
summarization?: string | null | undefined;
|
|
320
|
-
exploration?: string | null | undefined;
|
|
321
|
-
coding?: string | null | undefined;
|
|
322
|
-
verification?: string | null | undefined;
|
|
323
|
-
planning?: string | null | undefined;
|
|
324
|
-
}, {
|
|
325
|
-
default?: string | null | undefined;
|
|
326
|
-
compaction?: string | null | undefined;
|
|
327
|
-
summarization?: string | null | undefined;
|
|
328
|
-
exploration?: string | null | undefined;
|
|
329
|
-
coding?: string | null | undefined;
|
|
330
|
-
verification?: string | null | undefined;
|
|
331
|
-
planning?: string | null | undefined;
|
|
332
|
-
}>>;
|
|
333
|
-
compaction: z.ZodDefault<z.ZodObject<{
|
|
334
|
-
/** Request-only exact duplicate observation masking. Enabled unless false; disabled strategy opts out too. */
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
compaction: z.ZodPrefault<z.ZodObject<{
|
|
335
95
|
deduplicateObservations: z.ZodOptional<z.ZodBoolean>;
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
strategy: z.ZodDefault<z.ZodEnum<["structured", "salience", "sliding-window", "disabled"]>>;
|
|
343
|
-
/**
|
|
344
|
-
* `salience` only: the fraction of the window at which the working-set
|
|
345
|
-
* pass starts evicting low-salience messages, well before
|
|
346
|
-
* `triggerThreshold` summarises. The context is held around here.
|
|
347
|
-
*/
|
|
96
|
+
strategy: z.ZodDefault<z.ZodEnum<{
|
|
97
|
+
disabled: "disabled";
|
|
98
|
+
structured: "structured";
|
|
99
|
+
salience: "salience";
|
|
100
|
+
"sliding-window": "sliding-window";
|
|
101
|
+
}>>;
|
|
348
102
|
softTarget: z.ZodOptional<z.ZodNumber>;
|
|
349
|
-
/**
|
|
350
|
-
* Optional model context-window size (tokens) the compaction trigger
|
|
351
|
-
* measures the CURRENT window against. NO default: when omitted the
|
|
352
|
-
* trigger falls back to the turn-level cumulative `tokenBudget` exactly as
|
|
353
|
-
* before, so existing consumers are byte-identical. Hosts that keep
|
|
354
|
-
* `tokenBudget` unlimited (0) set this so compaction fires on
|
|
355
|
-
* window-pressure instead of being a silent no-op.
|
|
356
|
-
*/
|
|
357
103
|
contextWindowTokens: z.ZodOptional<z.ZodNumber>;
|
|
358
|
-
/**
|
|
359
|
-
* Fraction of the context window at which older history is summarised.
|
|
360
|
-
*
|
|
361
|
-
* Absent, the trigger is derived from the window: the window less room for
|
|
362
|
-
* the reply (the model's output cap, at most 20,000 tokens) less a
|
|
363
|
-
* 13,000-token buffer, so 83.5% of a 200,000-token window and 96.7% of a
|
|
364
|
-
* 1,000,000-token one (see `resolveTriggerThreshold`). It used to default
|
|
365
|
-
* to a flat `0.7`; pass that to keep the earlier behaviour.
|
|
366
|
-
*/
|
|
367
104
|
triggerThreshold: z.ZodOptional<z.ZodNumber>;
|
|
368
|
-
/** Optional automatic-summary window; capped to the actual model window. */
|
|
369
105
|
autoCompactWindowTokens: z.ZodOptional<z.ZodNumber>;
|
|
370
|
-
/**
|
|
371
|
-
* Fraction the pass must get the context BELOW to be worth keeping.
|
|
372
|
-
*
|
|
373
|
-
* This is hysteresis, and without it compaction can thrash: a pass that
|
|
374
|
-
* only shaves the context from 0.72 to 0.71 of the window leaves the
|
|
375
|
-
* trigger armed, so the next iteration compacts again — paying a
|
|
376
|
-
* summarization call and busting the prompt-cache prefix each time, for
|
|
377
|
-
* nothing. A pass that cannot reach this level logs the shortfall and
|
|
378
|
-
* the turn continues rather than repeating a move that does not work.
|
|
379
|
-
*
|
|
380
|
-
* The field was declared and set by the shipped CLI but read by nothing;
|
|
381
|
-
* the choice was to implement it or delete it, and thrash is a real
|
|
382
|
-
* failure mode once the trigger actually fires.
|
|
383
|
-
*/
|
|
384
106
|
resetThreshold: z.ZodDefault<z.ZodNumber>;
|
|
385
|
-
/**
|
|
386
|
-
* Give up on automatic compaction when it stops working.
|
|
387
|
-
*
|
|
388
|
-
* Three failed passes in a row switch it off for the rest of the turn.
|
|
389
|
-
* Three compactions in a row, each followed by the window filling again
|
|
390
|
-
* within three iterations, stop the turn: the loop refills the context
|
|
391
|
-
* faster than a summary can empty it. Each is announced once, as a
|
|
392
|
-
* `compaction_failed` event.
|
|
393
|
-
*
|
|
394
|
-
* Off unless set. Without it a pass that sheds nothing is retried on every
|
|
395
|
-
* iteration, and a turn that refills the window is never stopped for it.
|
|
396
|
-
*/
|
|
397
107
|
circuitBreaker: z.ZodOptional<z.ZodBoolean>;
|
|
398
108
|
keepRecentMessages: z.ZodDefault<z.ZodNumber>;
|
|
399
|
-
/**
|
|
400
|
-
* Size the retained tail by TOKENS instead of by message count.
|
|
401
|
-
*
|
|
402
|
-
* A count cannot express what the tail costs. Four messages is four
|
|
403
|
-
* short turns or three short turns and a 200 KB tool result, and in the
|
|
404
|
-
* second case the tail alone can approach `resetThreshold` — the pass
|
|
405
|
-
* completes, reports it did not reach the threshold, leaves the trigger
|
|
406
|
-
* armed, and the next iteration pays another summarization call and
|
|
407
|
-
* busts the prompt-cache prefix again.
|
|
408
|
-
*
|
|
409
|
-
* Absent means the count is used, exactly as before. Set, it replaces
|
|
410
|
-
* only the NAIVE boundary; the safe-cut search that keeps a `tool_use`
|
|
411
|
-
* with its `tool_result` runs from there unchanged.
|
|
412
|
-
*/
|
|
413
109
|
keepRecentTokens: z.ZodOptional<z.ZodNumber>;
|
|
414
|
-
/**
|
|
415
|
-
* Before summarizing destructively, clear the OUTPUT of old, large tool
|
|
416
|
-
* results in place.
|
|
417
|
-
*
|
|
418
|
-
* Compaction paraphrases the agent's own reasoning away — the decisions,
|
|
419
|
-
* the false starts it learned from, the exact wording of a plan. That is
|
|
420
|
-
* a heavy price for a context problem usually caused by something much
|
|
421
|
-
* dumber: a few enormous tool outputs the agent already read and moved
|
|
422
|
-
* past. Clearing those reclaims most of the same tokens while keeping
|
|
423
|
-
* every message verbatim, and it is safe where trimming is not, because
|
|
424
|
-
* nothing moves — the `tool_use` ↔ `tool_result` pairing is untouched by
|
|
425
|
-
* construction.
|
|
426
|
-
*
|
|
427
|
-
* If the clear gets the context back under `triggerThreshold`, the
|
|
428
|
-
* summarization pass is skipped entirely. Set `false` to go straight to
|
|
429
|
-
* summarization.
|
|
430
|
-
*/
|
|
431
110
|
clearToolResults: z.ZodDefault<z.ZodBoolean>;
|
|
432
|
-
/**
|
|
433
|
-
* Record what each pass removes, as a `compaction_shed` event.
|
|
434
|
-
*
|
|
435
|
-
* On by default: without it the shed content exists nowhere afterwards
|
|
436
|
-
* — not in memory, not in `messages.json`, not in the transcript — and
|
|
437
|
-
* "what did the agent decide three compactions ago" is unanswerable.
|
|
438
|
-
*
|
|
439
|
-
* Off is for an operator with a transcript-size constraint, and it is a
|
|
440
|
-
* real trade: the transcript grows by roughly what the compaction saved
|
|
441
|
-
* in context, since the whole point is that the bodies are kept.
|
|
442
|
-
*/
|
|
443
111
|
recordShedHistory: z.ZodDefault<z.ZodBoolean>;
|
|
444
|
-
/** Most recent tool results left alone — the agent is likely still using them. */
|
|
445
112
|
keepRecentToolResults: z.ZodDefault<z.ZodNumber>;
|
|
446
|
-
/**
|
|
447
|
-
* Don't clear results smaller than this. Below it the placeholder is
|
|
448
|
-
* comparable in size to the output, so the churn buys nothing and costs
|
|
449
|
-
* the model a confusing hole in its history.
|
|
450
|
-
*/
|
|
451
113
|
minToolResultCharsToClear: z.ZodDefault<z.ZodNumber>;
|
|
452
|
-
|
|
453
|
-
preserveToolResultsFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
114
|
+
preserveToolResultsFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
454
115
|
maxToolResults: z.ZodDefault<z.ZodNumber>;
|
|
455
116
|
maxListSize: z.ZodDefault<z.ZodNumber>;
|
|
456
|
-
/**
|
|
457
|
-
* Entries pinned at the head of each capped list, never evicted.
|
|
458
|
-
*
|
|
459
|
-
* Eviction used to drop the OLDEST entry, so a long turn silently
|
|
460
|
-
* deleted the decision that set its approach while keeping the last
|
|
461
|
-
* twenty-five incidental notes. The early entries are the load-bearing
|
|
462
|
-
* ones and the recent ones are still in the un-compacted tail.
|
|
463
|
-
*/
|
|
464
117
|
keepFirstEntries: z.ZodDefault<z.ZodNumber>;
|
|
465
118
|
llmVerification: z.ZodDefault<z.ZodBoolean>;
|
|
466
119
|
llmVerificationMaxTokens: z.ZodDefault<z.ZodNumber>;
|
|
467
|
-
/**
|
|
468
|
-
* Let the model the host names for it write the compaction summary.
|
|
469
|
-
* Default `true`, and it takes effect only where the host supplies a
|
|
470
|
-
* model; without one, or when its call fails, the summary is the extracted
|
|
471
|
-
* working state. Left optional so an existing config literal still
|
|
472
|
-
* type-checks.
|
|
473
|
-
*/
|
|
474
120
|
modelSummary: z.ZodOptional<z.ZodBoolean>;
|
|
475
|
-
/** Longest model-written summary, in tokens. Default 4,096. */
|
|
476
121
|
modelSummaryMaxTokens: z.ZodOptional<z.ZodNumber>;
|
|
477
|
-
/** Characters of transcript the summary model reads; the newest and the first request are kept when it is longer. Default 240,000. */
|
|
478
122
|
modelSummaryInputChars: z.ZodOptional<z.ZodNumber>;
|
|
479
|
-
/** Characters of one tool result the summary model reads. Default 1,500. */
|
|
480
123
|
modelSummaryToolResultChars: z.ZodOptional<z.ZodNumber>;
|
|
481
|
-
/** Longest the whole summary call may take, in milliseconds, however steadily it streams. Past it the extracted summary is used. Default 120,000. */
|
|
482
124
|
modelSummaryTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
483
125
|
richStateThreshold: z.ZodDefault<z.ZodNumber>;
|
|
484
126
|
convoTextBudget: z.ZodDefault<z.ZodNumber>;
|
|
@@ -486,71 +128,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
486
128
|
maxCharsPerNote: z.ZodDefault<z.ZodNumber>;
|
|
487
129
|
maxCharsPerRequirement: z.ZodDefault<z.ZodNumber>;
|
|
488
130
|
maxCharsPerTask: z.ZodDefault<z.ZodNumber>;
|
|
489
|
-
},
|
|
490
|
-
strategy: "disabled" | "structured" | "salience" | "sliding-window";
|
|
491
|
-
resetThreshold: number;
|
|
492
|
-
keepRecentMessages: number;
|
|
493
|
-
clearToolResults: boolean;
|
|
494
|
-
recordShedHistory: boolean;
|
|
495
|
-
keepRecentToolResults: number;
|
|
496
|
-
minToolResultCharsToClear: number;
|
|
497
|
-
maxToolResults: number;
|
|
498
|
-
maxListSize: number;
|
|
499
|
-
keepFirstEntries: number;
|
|
500
|
-
llmVerification: boolean;
|
|
501
|
-
llmVerificationMaxTokens: number;
|
|
502
|
-
richStateThreshold: number;
|
|
503
|
-
convoTextBudget: number;
|
|
504
|
-
maxSentencesPerTurn: number;
|
|
505
|
-
maxCharsPerNote: number;
|
|
506
|
-
maxCharsPerRequirement: number;
|
|
507
|
-
maxCharsPerTask: number;
|
|
508
|
-
deduplicateObservations?: boolean | undefined;
|
|
509
|
-
softTarget?: number | undefined;
|
|
510
|
-
contextWindowTokens?: number | undefined;
|
|
511
|
-
triggerThreshold?: number | undefined;
|
|
512
|
-
autoCompactWindowTokens?: number | undefined;
|
|
513
|
-
circuitBreaker?: boolean | undefined;
|
|
514
|
-
keepRecentTokens?: number | undefined;
|
|
515
|
-
preserveToolResultsFrom?: string[] | undefined;
|
|
516
|
-
modelSummary?: boolean | undefined;
|
|
517
|
-
modelSummaryMaxTokens?: number | undefined;
|
|
518
|
-
modelSummaryInputChars?: number | undefined;
|
|
519
|
-
modelSummaryToolResultChars?: number | undefined;
|
|
520
|
-
modelSummaryTimeoutMs?: number | undefined;
|
|
521
|
-
}, {
|
|
522
|
-
deduplicateObservations?: boolean | undefined;
|
|
523
|
-
strategy?: "disabled" | "structured" | "salience" | "sliding-window" | undefined;
|
|
524
|
-
softTarget?: number | undefined;
|
|
525
|
-
contextWindowTokens?: number | undefined;
|
|
526
|
-
triggerThreshold?: number | undefined;
|
|
527
|
-
autoCompactWindowTokens?: number | undefined;
|
|
528
|
-
resetThreshold?: number | undefined;
|
|
529
|
-
circuitBreaker?: boolean | undefined;
|
|
530
|
-
keepRecentMessages?: number | undefined;
|
|
531
|
-
keepRecentTokens?: number | undefined;
|
|
532
|
-
clearToolResults?: boolean | undefined;
|
|
533
|
-
recordShedHistory?: boolean | undefined;
|
|
534
|
-
keepRecentToolResults?: number | undefined;
|
|
535
|
-
minToolResultCharsToClear?: number | undefined;
|
|
536
|
-
preserveToolResultsFrom?: string[] | undefined;
|
|
537
|
-
maxToolResults?: number | undefined;
|
|
538
|
-
maxListSize?: number | undefined;
|
|
539
|
-
keepFirstEntries?: number | undefined;
|
|
540
|
-
llmVerification?: boolean | undefined;
|
|
541
|
-
llmVerificationMaxTokens?: number | undefined;
|
|
542
|
-
modelSummary?: boolean | undefined;
|
|
543
|
-
modelSummaryMaxTokens?: number | undefined;
|
|
544
|
-
modelSummaryInputChars?: number | undefined;
|
|
545
|
-
modelSummaryToolResultChars?: number | undefined;
|
|
546
|
-
modelSummaryTimeoutMs?: number | undefined;
|
|
547
|
-
richStateThreshold?: number | undefined;
|
|
548
|
-
convoTextBudget?: number | undefined;
|
|
549
|
-
maxSentencesPerTurn?: number | undefined;
|
|
550
|
-
maxCharsPerNote?: number | undefined;
|
|
551
|
-
maxCharsPerRequirement?: number | undefined;
|
|
552
|
-
maxCharsPerTask?: number | undefined;
|
|
553
|
-
}>>;
|
|
131
|
+
}, z.core.$strip>>;
|
|
554
132
|
agentBus: z.ZodOptional<z.ZodObject<{
|
|
555
133
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
556
134
|
lockTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
@@ -558,207 +136,35 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
558
136
|
maxLocksPerAgent: z.ZodDefault<z.ZodNumber>;
|
|
559
137
|
breakerFailureThreshold: z.ZodDefault<z.ZodNumber>;
|
|
560
138
|
breakerResetTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
561
|
-
},
|
|
562
|
-
enabled: boolean;
|
|
563
|
-
lockTimeoutMs: number;
|
|
564
|
-
lockAcquireTimeoutMs: number;
|
|
565
|
-
maxLocksPerAgent: number;
|
|
566
|
-
breakerFailureThreshold: number;
|
|
567
|
-
breakerResetTimeoutMs: number;
|
|
568
|
-
}, {
|
|
569
|
-
enabled?: boolean | undefined;
|
|
570
|
-
lockTimeoutMs?: number | undefined;
|
|
571
|
-
lockAcquireTimeoutMs?: number | undefined;
|
|
572
|
-
maxLocksPerAgent?: number | undefined;
|
|
573
|
-
breakerFailureThreshold?: number | undefined;
|
|
574
|
-
breakerResetTimeoutMs?: number | undefined;
|
|
575
|
-
}>>;
|
|
139
|
+
}, z.core.$strip>>;
|
|
576
140
|
plugins: z.ZodOptional<z.ZodObject<{
|
|
577
141
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
578
142
|
autoDiscovery: z.ZodDefault<z.ZodBoolean>;
|
|
579
|
-
allowedScopes: z.ZodDefault<z.ZodArray<z.ZodEnum<
|
|
143
|
+
allowedScopes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
144
|
+
user: "user";
|
|
145
|
+
project: "project";
|
|
146
|
+
}>>>;
|
|
580
147
|
hookTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
581
|
-
},
|
|
582
|
-
enabled: boolean;
|
|
583
|
-
autoDiscovery: boolean;
|
|
584
|
-
allowedScopes: ("user" | "project")[];
|
|
585
|
-
hookTimeoutMs: number;
|
|
586
|
-
}, {
|
|
587
|
-
enabled?: boolean | undefined;
|
|
588
|
-
autoDiscovery?: boolean | undefined;
|
|
589
|
-
allowedScopes?: ("user" | "project")[] | undefined;
|
|
590
|
-
hookTimeoutMs?: number | undefined;
|
|
591
|
-
}>>;
|
|
148
|
+
}, z.core.$strip>>;
|
|
592
149
|
sandbox: z.ZodOptional<z.ZodObject<{
|
|
593
150
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
594
|
-
provider: z.ZodDefault<z.ZodEnum<
|
|
151
|
+
provider: z.ZodDefault<z.ZodEnum<{
|
|
152
|
+
local: "local";
|
|
153
|
+
}>>;
|
|
595
154
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
596
155
|
memoryLimitMb: z.ZodDefault<z.ZodNumber>;
|
|
597
156
|
maxProcesses: z.ZodDefault<z.ZodNumber>;
|
|
598
|
-
requireIsolation: z.ZodDefault<z.ZodArray<z.ZodEnum<
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
workspace?: "ephemeral" | "working-directory" | undefined;
|
|
610
|
-
enabled?: boolean | undefined;
|
|
611
|
-
provider?: "local" | undefined;
|
|
612
|
-
timeoutMs?: number | undefined;
|
|
613
|
-
memoryLimitMb?: number | undefined;
|
|
614
|
-
maxProcesses?: number | undefined;
|
|
615
|
-
requireIsolation?: ("network" | "filesystem" | "process")[] | undefined;
|
|
616
|
-
}>>;
|
|
617
|
-
}, "strip", z.ZodTypeAny, {
|
|
618
|
-
model: string;
|
|
619
|
-
timeoutMs: number;
|
|
620
|
-
compaction: {
|
|
621
|
-
strategy: "disabled" | "structured" | "salience" | "sliding-window";
|
|
622
|
-
resetThreshold: number;
|
|
623
|
-
keepRecentMessages: number;
|
|
624
|
-
clearToolResults: boolean;
|
|
625
|
-
recordShedHistory: boolean;
|
|
626
|
-
keepRecentToolResults: number;
|
|
627
|
-
minToolResultCharsToClear: number;
|
|
628
|
-
maxToolResults: number;
|
|
629
|
-
maxListSize: number;
|
|
630
|
-
keepFirstEntries: number;
|
|
631
|
-
llmVerification: boolean;
|
|
632
|
-
llmVerificationMaxTokens: number;
|
|
633
|
-
richStateThreshold: number;
|
|
634
|
-
convoTextBudget: number;
|
|
635
|
-
maxSentencesPerTurn: number;
|
|
636
|
-
maxCharsPerNote: number;
|
|
637
|
-
maxCharsPerRequirement: number;
|
|
638
|
-
maxCharsPerTask: number;
|
|
639
|
-
deduplicateObservations?: boolean | undefined;
|
|
640
|
-
softTarget?: number | undefined;
|
|
641
|
-
contextWindowTokens?: number | undefined;
|
|
642
|
-
triggerThreshold?: number | undefined;
|
|
643
|
-
autoCompactWindowTokens?: number | undefined;
|
|
644
|
-
circuitBreaker?: boolean | undefined;
|
|
645
|
-
keepRecentTokens?: number | undefined;
|
|
646
|
-
preserveToolResultsFrom?: string[] | undefined;
|
|
647
|
-
modelSummary?: boolean | undefined;
|
|
648
|
-
modelSummaryMaxTokens?: number | undefined;
|
|
649
|
-
modelSummaryInputChars?: number | undefined;
|
|
650
|
-
modelSummaryToolResultChars?: number | undefined;
|
|
651
|
-
modelSummaryTimeoutMs?: number | undefined;
|
|
652
|
-
};
|
|
653
|
-
temperature: number;
|
|
654
|
-
tokenBudget: number;
|
|
655
|
-
maxResponseTokens: number;
|
|
656
|
-
maxIterations: number;
|
|
657
|
-
sandbox?: {
|
|
658
|
-
workspace: "ephemeral" | "working-directory";
|
|
659
|
-
enabled: boolean;
|
|
660
|
-
provider: "local";
|
|
661
|
-
timeoutMs: number;
|
|
662
|
-
memoryLimitMb: number;
|
|
663
|
-
maxProcesses: number;
|
|
664
|
-
requireIsolation: ("network" | "filesystem" | "process")[];
|
|
665
|
-
} | undefined;
|
|
666
|
-
plugins?: {
|
|
667
|
-
enabled: boolean;
|
|
668
|
-
autoDiscovery: boolean;
|
|
669
|
-
allowedScopes: ("user" | "project")[];
|
|
670
|
-
hookTimeoutMs: number;
|
|
671
|
-
} | undefined;
|
|
672
|
-
taskRouter?: {
|
|
673
|
-
default?: string | null | undefined;
|
|
674
|
-
compaction?: string | null | undefined;
|
|
675
|
-
summarization?: string | null | undefined;
|
|
676
|
-
exploration?: string | null | undefined;
|
|
677
|
-
coding?: string | null | undefined;
|
|
678
|
-
verification?: string | null | undefined;
|
|
679
|
-
planning?: string | null | undefined;
|
|
680
|
-
} | undefined;
|
|
681
|
-
agentBus?: {
|
|
682
|
-
enabled: boolean;
|
|
683
|
-
lockTimeoutMs: number;
|
|
684
|
-
lockAcquireTimeoutMs: number;
|
|
685
|
-
maxLocksPerAgent: number;
|
|
686
|
-
breakerFailureThreshold: number;
|
|
687
|
-
breakerResetTimeoutMs: number;
|
|
688
|
-
} | undefined;
|
|
689
|
-
}, {
|
|
690
|
-
sandbox?: {
|
|
691
|
-
workspace?: "ephemeral" | "working-directory" | undefined;
|
|
692
|
-
enabled?: boolean | undefined;
|
|
693
|
-
provider?: "local" | undefined;
|
|
694
|
-
timeoutMs?: number | undefined;
|
|
695
|
-
memoryLimitMb?: number | undefined;
|
|
696
|
-
maxProcesses?: number | undefined;
|
|
697
|
-
requireIsolation?: ("network" | "filesystem" | "process")[] | undefined;
|
|
698
|
-
} | undefined;
|
|
699
|
-
model?: string | undefined;
|
|
700
|
-
plugins?: {
|
|
701
|
-
enabled?: boolean | undefined;
|
|
702
|
-
autoDiscovery?: boolean | undefined;
|
|
703
|
-
allowedScopes?: ("user" | "project")[] | undefined;
|
|
704
|
-
hookTimeoutMs?: number | undefined;
|
|
705
|
-
} | undefined;
|
|
706
|
-
timeoutMs?: number | undefined;
|
|
707
|
-
compaction?: {
|
|
708
|
-
deduplicateObservations?: boolean | undefined;
|
|
709
|
-
strategy?: "disabled" | "structured" | "salience" | "sliding-window" | undefined;
|
|
710
|
-
softTarget?: number | undefined;
|
|
711
|
-
contextWindowTokens?: number | undefined;
|
|
712
|
-
triggerThreshold?: number | undefined;
|
|
713
|
-
autoCompactWindowTokens?: number | undefined;
|
|
714
|
-
resetThreshold?: number | undefined;
|
|
715
|
-
circuitBreaker?: boolean | undefined;
|
|
716
|
-
keepRecentMessages?: number | undefined;
|
|
717
|
-
keepRecentTokens?: number | undefined;
|
|
718
|
-
clearToolResults?: boolean | undefined;
|
|
719
|
-
recordShedHistory?: boolean | undefined;
|
|
720
|
-
keepRecentToolResults?: number | undefined;
|
|
721
|
-
minToolResultCharsToClear?: number | undefined;
|
|
722
|
-
preserveToolResultsFrom?: string[] | undefined;
|
|
723
|
-
maxToolResults?: number | undefined;
|
|
724
|
-
maxListSize?: number | undefined;
|
|
725
|
-
keepFirstEntries?: number | undefined;
|
|
726
|
-
llmVerification?: boolean | undefined;
|
|
727
|
-
llmVerificationMaxTokens?: number | undefined;
|
|
728
|
-
modelSummary?: boolean | undefined;
|
|
729
|
-
modelSummaryMaxTokens?: number | undefined;
|
|
730
|
-
modelSummaryInputChars?: number | undefined;
|
|
731
|
-
modelSummaryToolResultChars?: number | undefined;
|
|
732
|
-
modelSummaryTimeoutMs?: number | undefined;
|
|
733
|
-
richStateThreshold?: number | undefined;
|
|
734
|
-
convoTextBudget?: number | undefined;
|
|
735
|
-
maxSentencesPerTurn?: number | undefined;
|
|
736
|
-
maxCharsPerNote?: number | undefined;
|
|
737
|
-
maxCharsPerRequirement?: number | undefined;
|
|
738
|
-
maxCharsPerTask?: number | undefined;
|
|
739
|
-
} | undefined;
|
|
740
|
-
temperature?: number | undefined;
|
|
741
|
-
tokenBudget?: number | undefined;
|
|
742
|
-
maxResponseTokens?: number | undefined;
|
|
743
|
-
maxIterations?: number | undefined;
|
|
744
|
-
taskRouter?: {
|
|
745
|
-
default?: string | null | undefined;
|
|
746
|
-
compaction?: string | null | undefined;
|
|
747
|
-
summarization?: string | null | undefined;
|
|
748
|
-
exploration?: string | null | undefined;
|
|
749
|
-
coding?: string | null | undefined;
|
|
750
|
-
verification?: string | null | undefined;
|
|
751
|
-
planning?: string | null | undefined;
|
|
752
|
-
} | undefined;
|
|
753
|
-
agentBus?: {
|
|
754
|
-
enabled?: boolean | undefined;
|
|
755
|
-
lockTimeoutMs?: number | undefined;
|
|
756
|
-
lockAcquireTimeoutMs?: number | undefined;
|
|
757
|
-
maxLocksPerAgent?: number | undefined;
|
|
758
|
-
breakerFailureThreshold?: number | undefined;
|
|
759
|
-
breakerResetTimeoutMs?: number | undefined;
|
|
760
|
-
} | undefined;
|
|
761
|
-
}>;
|
|
157
|
+
requireIsolation: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
158
|
+
network: "network";
|
|
159
|
+
filesystem: "filesystem";
|
|
160
|
+
process: "process";
|
|
161
|
+
}>>>;
|
|
162
|
+
workspace: z.ZodDefault<z.ZodEnum<{
|
|
163
|
+
ephemeral: "ephemeral";
|
|
164
|
+
"working-directory": "working-directory";
|
|
165
|
+
}>>;
|
|
166
|
+
}, z.core.$strip>>;
|
|
167
|
+
}, z.core.$strip>;
|
|
762
168
|
export type RuntimeConfig = z.infer<typeof RuntimeConfigSchema>;
|
|
763
169
|
export declare const RUNTIME_DEFAULTS: Readonly<RuntimeConfig>;
|
|
764
170
|
//# sourceMappingURL=runtime.d.ts.map
|