zidane 5.5.5 → 5.6.2
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/README.md +7 -1
- package/dist/{agent-CMAklak7.d.ts → agent-Dtnvs5ee.d.ts} +91 -2
- package/dist/agent-Dtnvs5ee.d.ts.map +1 -0
- package/dist/chat.d.ts +204 -15
- package/dist/chat.d.ts.map +1 -1
- package/dist/chat.js +3 -3
- package/dist/{errors-C5VSakmT.js → errors-DdZXnyXE.js} +38 -2
- package/dist/errors-DdZXnyXE.js.map +1 -0
- package/dist/{index-CF5QwBiz.d.ts → index-DHeHe04L.d.ts} +2 -2
- package/dist/{index-CF5QwBiz.d.ts.map → index-DHeHe04L.d.ts.map} +1 -1
- package/dist/{index-kroGomhj.d.ts → index-DX8De0nl.d.ts} +23 -2
- package/dist/index-DX8De0nl.d.ts.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +10 -10
- package/dist/{interpolate-Cvjy8gpk.js → interpolate-j5V-wcAQ.js} +2 -2
- package/dist/{interpolate-Cvjy8gpk.js.map → interpolate-j5V-wcAQ.js.map} +1 -1
- package/dist/{login-B_kfoGMP.js → login-BOj03nVe.js} +5 -4
- package/dist/login-BOj03nVe.js.map +1 -0
- package/dist/{mcp-BE43Viwi.js → mcp-ngMS0S6N.js} +2 -2
- package/dist/{mcp-BE43Viwi.js.map → mcp-ngMS0S6N.js.map} +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.js +1 -1
- package/dist/{messages-BBWakTN6.js → messages-B5k4DAXy.js} +2 -2
- package/dist/{messages-BBWakTN6.js.map → messages-B5k4DAXy.js.map} +1 -1
- package/dist/{presets-BDvBZuYI.js → presets-CTSij3yV.js} +2 -2
- package/dist/{presets-BDvBZuYI.js.map → presets-CTSij3yV.js.map} +1 -1
- package/dist/presets.d.ts +2 -2
- package/dist/presets.js +1 -1
- package/dist/{providers-CsUyN_FJ.js → providers-CaJE2ToS.js} +3 -3
- package/dist/{providers-CsUyN_FJ.js.map → providers-CaJE2ToS.js.map} +1 -1
- package/dist/providers.d.ts +1 -1
- package/dist/providers.js +2 -2
- package/dist/restate.d.ts +1 -1
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/session/sqlite.d.ts.map +1 -1
- package/dist/session/sqlite.js +226 -51
- package/dist/session/sqlite.js.map +1 -1
- package/dist/{session-DzfRacU_.js → session-BoEW_wCR.js} +2 -2
- package/dist/{session-DzfRacU_.js.map → session-BoEW_wCR.js.map} +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/session.js +2 -2
- package/dist/skills.d.ts +2 -2
- package/dist/skills.js +1 -1
- package/dist/{tools-Bbd0Ivwn.js → tools-CslsHpKb.js} +156 -16
- package/dist/tools-CslsHpKb.js.map +1 -0
- package/dist/tools.d.ts +2 -2
- package/dist/tools.js +1 -1
- package/dist/{transcript-anchors-C7CtKPPo.d.ts → transcript-anchors-CwoKNW6Y.d.ts} +74 -5
- package/dist/transcript-anchors-CwoKNW6Y.d.ts.map +1 -0
- package/dist/tui.d.ts +24 -5
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +1280 -333
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-rYyU2Qyq.js → turn-operations-B8ySajUl.js} +687 -86
- package/dist/turn-operations-B8ySajUl.js.map +1 -0
- package/dist/types-oKPBdCmL.js.map +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/types.js +2 -2
- package/docs/ARCHITECTURE.md +5 -2
- package/docs/CHAT.md +10 -3
- package/docs/RESTATE.md +190 -0
- package/docs/SKILL.md +27 -2
- package/docs/TUI.md +4 -3
- package/package.json +2 -1
- package/dist/agent-CMAklak7.d.ts.map +0 -1
- package/dist/errors-C5VSakmT.js.map +0 -1
- package/dist/index-kroGomhj.d.ts.map +0 -1
- package/dist/login-B_kfoGMP.js.map +0 -1
- package/dist/tools-Bbd0Ivwn.js.map +0 -1
- package/dist/transcript-anchors-C7CtKPPo.d.ts.map +0 -1
- package/dist/turn-operations-rYyU2Qyq.js.map +0 -1
package/README.md
CHANGED
|
@@ -700,7 +700,7 @@ External interop converters: `fromAnthropic`, `toAnthropic`, `fromOpenAI`, `toOp
|
|
|
700
700
|
Provider failures are wrapped before leaving `agent.run()`. Match on `instanceof`, not strings. Every provider ships `classifyError(err)`; unrecognized errors fall through as `AgentProviderError`. Abort paths (`agent.abort()` / `AbortSignal`) always produce `AgentAbortedError`.
|
|
701
701
|
|
|
702
702
|
```ts
|
|
703
|
-
import { AgentAbortedError, AgentContextExceededError, AgentProviderError } from 'zidane'
|
|
703
|
+
import { AgentAbortedError, AgentBudgetExceededError, AgentContextExceededError, AgentProviderError } from 'zidane'
|
|
704
704
|
|
|
705
705
|
try {
|
|
706
706
|
await agent.run({ prompt })
|
|
@@ -708,12 +708,17 @@ try {
|
|
|
708
708
|
catch (err) {
|
|
709
709
|
if (err instanceof AgentContextExceededError) { /* prune history, retry */ }
|
|
710
710
|
else if (err instanceof AgentAbortedError) { /* user cancelled */ }
|
|
711
|
+
else if (err instanceof AgentBudgetExceededError) {
|
|
712
|
+
console.error(`Hit ${err.limit} cap: ${err.actualValue} > ${err.limitValue}`)
|
|
713
|
+
}
|
|
711
714
|
else if (err instanceof AgentProviderError) {
|
|
712
715
|
console.error(`${err.provider}: ${err.message} (${err.providerCode})`)
|
|
713
716
|
}
|
|
714
717
|
}
|
|
715
718
|
```
|
|
716
719
|
|
|
720
|
+
Set `behavior.maxCostUsd` and/or `behavior.maxTotalTokens` to trip the budget circuit breaker (post-turn check, soft cap). See [docs/ARCHITECTURE.md](./docs/ARCHITECTURE.md) → run-level budget.
|
|
721
|
+
|
|
717
722
|
## Structured Output
|
|
718
723
|
|
|
719
724
|
Force the final response to a JSON Schema via provider-level tool forcing. Lands on `stats.output` and fires the `output` hook (`ctx.output`, `ctx.schema`).
|
|
@@ -777,6 +782,7 @@ Benchmark harnesses live in [`benchmarks/`](./benchmarks). First integration: [T
|
|
|
777
782
|
| [docs/SKILL.md](./docs/SKILL.md) | Authoritative reference for `createAgent` + hooks + tools + sessions + skills + MCP. Long-form. |
|
|
778
783
|
| [docs/CHAT.md](./docs/CHAT.md) | `zidane/chat` — renderer-agnostic chat engine (auth, sessions, safe-mode, settings, theme). Consumed by the TUI and any future GUI. |
|
|
779
784
|
| [docs/TUI.md](./docs/TUI.md) | `zidane/tui` — terminal shell built on `zidane/chat`. `runTui()`, screens, modals, keyboard, theming. |
|
|
785
|
+
| [docs/RESTATE.md](./docs/RESTATE.md) | `zidane/restate` — optional durable-execution adapter (Restate). Journals LLM + tool calls for exactly-once semantics across crashes. |
|
|
780
786
|
|
|
781
787
|
## License
|
|
782
788
|
|
|
@@ -75,6 +75,40 @@ declare class AgentAbortedError extends Error {
|
|
|
75
75
|
cause?: unknown;
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Thrown by the loop when a run's cumulative cost or token consumption crosses
|
|
80
|
+
* a ceiling configured on {@link AgentBehavior.maxCostUsd} /
|
|
81
|
+
* {@link AgentBehavior.maxTotalTokens}. Acts as a programmable circuit
|
|
82
|
+
* breaker for unattended runs — without this, the only built-in safety net
|
|
83
|
+
* is {@link AgentBehavior.maxTurns}, which doesn't bound a single very
|
|
84
|
+
* expensive turn (large context, deep reasoning).
|
|
85
|
+
*
|
|
86
|
+
* The breach is checked **after** each turn completes (post-`turn:after`),
|
|
87
|
+
* so the run may exceed the budget by one turn's worth of usage before
|
|
88
|
+
* tripping. Callers wanting a tighter pre-turn estimate should layer their
|
|
89
|
+
* own check on top of the `usage` hook.
|
|
90
|
+
*
|
|
91
|
+
* The harness treats this the same way as {@link AgentAbortedError}: the
|
|
92
|
+
* session run is finalized as `'aborted'`, persisted stats reflect what
|
|
93
|
+
* was actually consumed, and the parent agent re-throws so a caller's
|
|
94
|
+
* `try`/`catch` can branch on `err instanceof AgentBudgetExceededError`
|
|
95
|
+
* without string-sniffing.
|
|
96
|
+
*/
|
|
97
|
+
declare class AgentBudgetExceededError extends Error {
|
|
98
|
+
readonly code: "budget_exceeded";
|
|
99
|
+
/** Which ceiling tripped. `'cost'` → `maxCostUsd`, `'tokens'` → `maxTotalTokens`. */
|
|
100
|
+
readonly limit: 'cost' | 'tokens';
|
|
101
|
+
/** The configured cap (USD for `cost`, total tokens for `tokens`). */
|
|
102
|
+
readonly limitValue: number;
|
|
103
|
+
/** Actual consumed value at the moment the cap was crossed (same units as `limitValue`). */
|
|
104
|
+
readonly actualValue: number;
|
|
105
|
+
constructor(options: {
|
|
106
|
+
limit: 'cost' | 'tokens';
|
|
107
|
+
limitValue: number;
|
|
108
|
+
actualValue: number;
|
|
109
|
+
cause?: unknown;
|
|
110
|
+
});
|
|
111
|
+
}
|
|
78
112
|
/**
|
|
79
113
|
* Thrown by the pre-send pairing repair when {@link AgentBehavior.strictToolPairing}
|
|
80
114
|
* is `true` and {@link ensureToolResultPairing} would otherwise patch over
|
|
@@ -395,6 +429,40 @@ interface AgentBehavior {
|
|
|
395
429
|
* cap is hit. Set a finite value as a safety net for runaway loops.
|
|
396
430
|
*/
|
|
397
431
|
maxTurns?: number;
|
|
432
|
+
/**
|
|
433
|
+
* Run-level cost ceiling, expressed in USD. After each turn, the sum of
|
|
434
|
+
* `TurnUsage.cost` across the run is compared against this value; if the
|
|
435
|
+
* total has crossed the cap, the loop throws `AgentBudgetExceededError`
|
|
436
|
+
* with `limit: 'cost'`. The agent finalizes the session run as
|
|
437
|
+
* `'aborted'` so partial spend is recorded.
|
|
438
|
+
*
|
|
439
|
+
* Complements {@link maxTurns}: a single expensive turn (large context
|
|
440
|
+
* window, deep reasoning) can blow past a turn-count cap but cost is
|
|
441
|
+
* the unit operators actually want to bound for unattended runs.
|
|
442
|
+
*
|
|
443
|
+
* Checked **post-turn**, so the run may exceed by up to one turn's
|
|
444
|
+
* spend before tripping — soft cap, not exact. Default: unbounded.
|
|
445
|
+
* Set `0` to disable explicitly (negative / `NaN` are ignored).
|
|
446
|
+
*
|
|
447
|
+
* Requires the provider to populate `TurnUsage.cost` (every built-in
|
|
448
|
+
* provider does). For providers that don't, the check silently no-ops
|
|
449
|
+
* and {@link maxTotalTokens} is the right knob instead.
|
|
450
|
+
*/
|
|
451
|
+
maxCostUsd?: number;
|
|
452
|
+
/**
|
|
453
|
+
* Run-level token ceiling — sum of `TurnUsage.input + TurnUsage.output`
|
|
454
|
+
* across the run. Same post-turn semantic + soft-cap behavior as
|
|
455
|
+
* {@link maxCostUsd}; throws `AgentBudgetExceededError` with
|
|
456
|
+
* `limit: 'tokens'` when exceeded.
|
|
457
|
+
*
|
|
458
|
+
* Cache reads / creations are **not** included in the sum — they're
|
|
459
|
+
* billed at a steep discount, so counting them at par would make the
|
|
460
|
+
* ceiling under-estimate the run's true affordability. Operators
|
|
461
|
+
* wanting a stricter accounting should override via the `usage` hook.
|
|
462
|
+
*
|
|
463
|
+
* Default: unbounded. Set `0` to disable explicitly.
|
|
464
|
+
*/
|
|
465
|
+
maxTotalTokens?: number;
|
|
398
466
|
/** Max tokens per LLM response (default: 16384) */
|
|
399
467
|
maxTokens?: number;
|
|
400
468
|
/** Thinking token budget — overrides the level-based default when set */
|
|
@@ -773,6 +841,26 @@ interface AgentBehavior {
|
|
|
773
841
|
* Default: `undefined`.
|
|
774
842
|
*/
|
|
775
843
|
persistDir?: string;
|
|
844
|
+
/**
|
|
845
|
+
* Soft byte-cap on the cumulative size of persisted blobs under
|
|
846
|
+
* {@link persistDir} for THIS session. After every successful blob
|
|
847
|
+
* write the framework sums the directory's `*.txt` payloads and, if
|
|
848
|
+
* the total exceeds this value, removes oldest-first by mtime until
|
|
849
|
+
* the remainder is at or below the cap.
|
|
850
|
+
*
|
|
851
|
+
* The just-written blob is never evicted in the same sweep (its mtime
|
|
852
|
+
* is the newest), so a single oversize result still lands and gets
|
|
853
|
+
* pointed at by its `<persisted-output>` stub — the LRU is a steady-
|
|
854
|
+
* state housekeeping mechanism, not a per-call admission gate.
|
|
855
|
+
*
|
|
856
|
+
* Long unattended runs can otherwise grow `<userDir>/tool-results/<sessionId>/`
|
|
857
|
+
* without bound; session-delete cleanup runs on demand, not on
|
|
858
|
+
* schedule.
|
|
859
|
+
*
|
|
860
|
+
* Default: `undefined` (no cap). Set `0` to disable explicitly; the
|
|
861
|
+
* eviction step is a no-op for non-positive / non-finite values.
|
|
862
|
+
*/
|
|
863
|
+
persistMaxBytes?: number;
|
|
776
864
|
/**
|
|
777
865
|
* Absolute directory where the `shell` tool's background mode (the
|
|
778
866
|
* `run_in_background: true` flag) appends output log files. One file
|
|
@@ -927,6 +1015,7 @@ type SessionContentBlock = {
|
|
|
927
1015
|
type: 'image';
|
|
928
1016
|
mediaType: string;
|
|
929
1017
|
data: string;
|
|
1018
|
+
name?: string;
|
|
930
1019
|
} | {
|
|
931
1020
|
type: 'tool_call';
|
|
932
1021
|
id: string;
|
|
@@ -3826,5 +3915,5 @@ declare function createAgent({
|
|
|
3826
3915
|
clock: agentClock
|
|
3827
3916
|
}: AgentOptions): Agent;
|
|
3828
3917
|
//#endregion
|
|
3829
|
-
export { fromOpenAI as $, SpawnHookContext as $t, SkillSource as A, cerebras as At, createRemoteStore as B, McpToolHookContext as Bt, getReadState as C, OpenAICompatParams as Ct, SkillConfig as D, OpenAIParams as Dt, resolveReadStateMap as E, openaiCompat as Et, SessionRun as F, AgentRunOptions as Ft, SYNTHETIC_TOOL_RESULT_PLACEHOLDER as G, PromptPart as Gt, ORPHANED_TOOL_RESULT_MARKER as H, OAuthRefreshHookContext as Ht, SessionStore as I, AgentStats as It, autoDetectAndConvert as J, SessionContentBlock as Jt, TOOL_USE_INTERRUPTED_MARKER as K, PromptTextPart as Kt, createSession as L, ChildRunStats as Lt, CreateSessionOptions as M, anthropic as Mt, Session as N, AgentBehavior as Nt, SkillDiagnostic as O, openai as Ot, SessionData as P, AgentClock as Pt, fromAnthropic as Q, SessionTurn as Qt, loadSession as R, DEFAULT_AGENT_CLOCK as Rt, ReadStateMap as S, OpenAICompatHttpError as St, readStateKey as T, mapOAIFinishReason as Tt, PairingRepair as U, PromptDocumentPart as Ut, EnsureToolResultPairingOptions as V, McpToolSchema as Vt, PairingRepairMode as W, PromptImagePart as Wt, ensureToolResultPairing as X, SessionHookContext as Xt, detectTurnInterruption as Y, SessionEndStatus as Yt, filterUnresolvedToolUses as Z, SessionMessage as Zt, resultToString as _,
|
|
3830
|
-
//# sourceMappingURL=agent-
|
|
3918
|
+
export { fromOpenAI as $, SpawnHookContext as $t, SkillSource as A, cerebras as At, createRemoteStore as B, McpToolHookContext as Bt, getReadState as C, OpenAICompatParams as Ct, SkillConfig as D, OpenAIParams as Dt, resolveReadStateMap as E, openaiCompat as Et, SessionRun as F, AgentRunOptions as Ft, SYNTHETIC_TOOL_RESULT_PLACEHOLDER as G, PromptPart as Gt, ORPHANED_TOOL_RESULT_MARKER as H, OAuthRefreshHookContext as Ht, SessionStore as I, AgentStats as It, autoDetectAndConvert as J, SessionContentBlock as Jt, TOOL_USE_INTERRUPTED_MARKER as K, PromptTextPart as Kt, createSession as L, ChildRunStats as Lt, CreateSessionOptions as M, anthropic as Mt, Session as N, AgentBehavior as Nt, SkillDiagnostic as O, openai as Ot, SessionData as P, AgentClock as Pt, fromAnthropic as Q, SessionTurn as Qt, loadSession as R, DEFAULT_AGENT_CLOCK as Rt, ReadStateMap as S, OpenAICompatHttpError as St, readStateKey as T, mapOAIFinishReason as Tt, PairingRepair as U, PromptDocumentPart as Ut, EnsureToolResultPairingOptions as V, McpToolSchema as Vt, PairingRepairMode as W, PromptImagePart as Wt, ensureToolResultPairing as X, SessionHookContext as Xt, detectTurnInterruption as Y, SessionEndStatus as Yt, filterUnresolvedToolUses as Z, SessionMessage as Zt, resultToString as _, ClassifiedError as _n, sanitizeToolSchema as _t, createAgent as a, ToolResultTextContent as an, createFileMapStore as at, ToolMap as b, matchesContextExceeded as bn, openrouter as bt, DeactivationReason as c, toolOutputByteLength as cn, StreamCallbacks as ct, createSkillActivationState as d, AgentBudgetExceededError as dn, ToolResult as dt, StreamHookContext as en, toAnthropic as et, ConnectMcpServersOptions as f, AgentContextExceededError as fn, ToolSpec as ft, normalizeMcpServers as g, CONTEXT_EXCEEDED_MESSAGE_PATTERNS as gn, SchemaSanitizeResult as gt, normalizeMcpBlocks as h, AgentToolPairingError as hn, SchemaSanitizeProfile as ht, AgentOptions as i, ToolResultImageContent as in, FileMapStoreOptions as it, SkillsConfig as j, AnthropicParams as jt, SkillResource as k, CerebrasParams as kt, SkillActivationState as l, toolResultToText as ln, StreamOptions as lt, connectMcpServers as m, AgentToolNotAllowedError as mn, SchemaSanitizeOptions as mt, AgentHookMap as n, ToolHookContext as nn, createMemoryStore as nt, ActivationVia as o, TurnFinishReason as on, Provider as ot, McpConnection as p, AgentProviderError as pn, TurnResult as pt, TurnInterruptionState as q, RunHookMap as qt, AgentHooks as r, ToolResultContent as rn, FileMapAdapter as rt, ActiveSkill as s, TurnUsage as sn, ProviderCapabilities as st, Agent as t, ThinkingLevel as tn, toOpenAI as tt, SkillActivationStateOptions as u, AgentAbortedError as un, ToolCall as ut, ToolContext as v, ClassifiedErrorKind as vn, sanitizeToolSpecs as vt, hashContent as w, classifyOpenAICompatError as wt, ReadStateEntry as x, toTypedError as xn, OpenAICompatAuthHeader as xt, ToolDef as y, errorMessage as yn, OpenRouterParams as yt, RemoteStoreOptions as z, McpServerConfig as zt };
|
|
3919
|
+
//# sourceMappingURL=agent-Dtnvs5ee.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-Dtnvs5ee.d.ts","names":[],"sources":["../src/errors.ts","../src/types.ts","../src/providers/anthropic.ts","../src/providers/cerebras.ts","../src/providers/openai.ts","../src/providers/openai-compat.ts","../src/providers/openrouter.ts","../src/providers/schema-sanitize.ts","../src/providers/index.ts","../src/session/file-map.ts","../src/session/memory.ts","../src/session/messages.ts","../src/session/remote.ts","../src/session/index.ts","../src/skills/types.ts","../src/tools/read-state.ts","../src/tools/types.ts","../src/mcp/index.ts","../src/skills/activation.ts","../src/agent.ts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;;;;;;;;;;;;EU4iCE,kBAAA,GAAqB,MAAA,aAAmB,OAAA;EACxC,KAAA,GAAQ,OAAA;EACR,QAAA,GAAW,OAAA;EACX,WAAA,QAAmB,OAAA;ETjqCgB;;;;;ESuqCnC,KAAA,QAAa,OAAA;ER9lCc;;;;EQmmC3B,OAAA,QAAe,OAAA;ERnmCa;;;;AAkE9B;;EQwiCE,aAAA,GAAgB,IAAA,aAAiB,OAAA;ERxiCgD;;;;EQ6iCjF,eAAA,GAAkB,IAAA,aAAiB,OAAA;ER7iC8C;;AAmFnF;;;;;;;;EQq+BE,MAAA,QAAc,OAAA;EAAA,SACL,SAAA;EAAA,SACA,KAAA,EAAO,WAAA;EAAA,SACP,SAAA,EAAW,gBAAA;EAAA,SACX,MAAA,EAAQ,eAAA;EAAA,SACR,OAAA,EAAS,OAAA;ERl6BU;EAAA,SQo6BnB,YAAA,WAAuB,WAAA;ERp6Be;;;;AAuEjD;;EAvEiD,SQ26BtC,IAAA,EAAM,QAAA,CAAS,MAAA;AAAA;AAAA,iBAkRV,WAAA,CAAA;EAAc,QAAA;EAAU,IAAA,EAAM,SAAA;EAAW,MAAA,EAAQ,WAAA;EAAa,KAAA,EAAO,UAAA;EAAY,WAAA;EAAa,QAAA,EAAU,aAAA;EAAe,SAAA;EAAW,UAAA;EAAY,OAAA;EAAS,SAAA,EAAW,cAAA;EAAgB,MAAA,EAAQ,WAAA;EAAa,YAAA;EAAc,KAAA;EAAO,KAAA,EAAO,YAAA;EAAc,KAAA,EAAO;AAAA,GAAc,YAAA,GAAe,KAAA"}
|
package/dist/chat.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as SkillConfig, N as Session, Qt as SessionTurn, j as SkillsConfig, ot as Provider, rn as ToolResultContent, sn as TurnUsage } from "./agent-
|
|
2
|
-
import { _t as McpCredentialEntry, t as Preset, vt as McpCredentialStore } from "./index-
|
|
3
|
-
import { m as SourcedScanPath } from "./index-
|
|
4
|
-
import { $ as TextQuestion, $n as
|
|
1
|
+
import { D as SkillConfig, N as Session, Qt as SessionTurn, j as SkillsConfig, ot as Provider, rn as ToolResultContent, sn as TurnUsage } from "./agent-Dtnvs5ee.js";
|
|
2
|
+
import { _t as McpCredentialEntry, t as Preset, vt as McpCredentialStore } from "./index-DX8De0nl.js";
|
|
3
|
+
import { m as SourcedScanPath } from "./index-DHeHe04L.js";
|
|
4
|
+
import { $ as TextQuestion, $n as modelSupportsReasoning, $t as EditOutcome, A as splitMarkdownCodeBlocks, An as collectReferences, At as StateStoreApi, B as PendingInteractionEntry, Bn as ProviderAuth, Bt as loadState, C as renderSession, Cn as ActiveTrigger, Ct as discoverProjectMcps, D as PromptSegmentRef, Dn as CompletionReference, Dt as ProviderRegistry, E as PromptSegment, En as CompletionProvider, Et as ChatOptions, F as InteractionRequest, Fn as Hint, Ft as isEditErrorResult, G as PlanStep, Gn as OUTPUT_RESERVE_TOKENS, Gt as sumRunCosts, H as PlanPayload, Hn as detectAuth, Ht as saveState, I as InteractionResponse, In as clipHintsToWidth, It as isTurnHighlighted, J as QuestionPayload, Jn as cerebrasDescriptor, Jt as toolResultText, K as Question, Kn as ProviderDescriptor, Kt as titleFromTurns, L as InteractionsActions, Ln as hintsLength, Lt as isVisible, M as AnswerValue, Mn as mergeReferences, Mt as createStateStore, N as ConfirmQuestion, Nn as useCompletion, Nt as deriveSessionTitle, O as splitPromptSegments, On as CompletionState, Ot as ResolvedConfig, P as CreateInteractionToolsOptions, Pn as EMPTY_HINTS, Pt as eventsFromTurns, Q as SelectQuestion, Qn as getModelInfo, Qt as EditHunk, R as InteractionsProvider, Rn as truncateTrailing, Rt as lastContextSizeFromTurns, S as SessionExportTarget, Sn as stripJsonComments, St as defaultMcpsConfigPaths, T as writeSessionExport, Tn as CompletionItem, Tt as AutoUpdateConfig, U as PlanRequest, Un as BUILTIN_PROVIDERS, Ut as selectableTurnIds, V as PlanDecision, Vn as ProviderKey, Vt as marginTopFor, W as PlanResponse, Wn as ModelInfo, Wt as stripSpawnTokensLine, X as QuestionResponse, Xn as effectiveContextWindow, Xt as updateToolEventOutcomes, Y as QuestionRequest, Yn as credKeyOf, Yt as turnSelectionOwnership, Z as QuestionType, Zn as getContextWindow, Zt as EditDiffDisplay, _ as ThemeSurfaces, _n as keybindingsPath, _t as useSafeModeQueue, a as ToolFormatLine, an as SessionMeta, ar as AgentProfile, at as serializeInteractionResponse, b as SessionExportAnchor, bn as parseBindingSpec, bt as DiscoveryResult, c as BUILTIN_THEMES, cn as ToolCallDisplay, cr as BUILTIN_AGENTS, ct as EnabledAllowlistKey, d as DEFAULT_THEME, dn as KEYBINDING_DEF_BY_ACTION, dr as DEFAULT_PERSIST_EXCLUDE_TOOLS, dt as ApprovalDecision, en as EditOutcomeKind, er as modelsForDescriptor, et as buildResumedToolResultsTurn, f as SyntaxStyles, fn as KeyAction, fr as PLAN_AGENT, ft as ApprovalRequest, g as ThemeSelect, gn as ensureKeybindingsFile, gt as useSafeModeActions, h as ThemeColors, hn as ParsedBinding, hr as singleAgentRegistry, ht as SafeModeProvider, i as ToolDisplayMeta, in as Screen, ir as AgentAccent, it as pendingInteractionsFromTurns, j as ASK_USER_TOOL, jn as findActiveTrigger, jt as TuiState, k as MarkdownSegment, kn as applyInsert, kt as resolveConfig, l as ChipColor, ln as DEFAULT_KEYBINDINGS, lr as DEFAULT_AGENT_ID, lt as EnabledToggleSet, m as Theme, mn as KeyBindings, mr as resolveAgentId, mt as SafeModeActions, n as computeTurnAnchors, nn as Owner, nr as openrouterDescriptor, nt as isInteractionTool, o as displayNameFor, on as Settings, or as AgentRegistry, ot as useInteractionsActions, p as SyntaxTokenStyle, pn as KeyBindingDef, pr as accentColor, pt as RequestApproval, q as QuestionChoice, qn as anthropicDescriptor, qt as toolCallPreview, r as TOOL_DISPLAY, rn as Picked, rr as piIdOf, rt as makeRequestInteraction, s as formatToolCall, sn as StreamEvent, sr as BUILD_AGENT, st as useInteractionsQueue, t as TranscriptItem, tn as EditPayload, tr as openaiDescriptor, tt as createInteractionTools, u as ChipColorMap, un as KEYBINDING_DEFS, ur as DEFAULT_BUDGET_EXCLUDE_TOOLS, ut as useEnabledToggleSet, v as resolveChipColor, vn as matchesBinding, vt as DiscoveredMcp, w as resolveSessionExportTarget, wn as CompletionContext, wt as parseMcpsFile, x as SessionExportFormat, xn as readKeybindings, xt as buildMcpServers, y as resolveTheme, yn as mergeKeybindings, yt as DiscoveryError, z as PRESENT_PLAN_TOOL, zn as AuthMethod, zt as listSessionMeta } from "./transcript-anchors-CwoKNW6Y.js";
|
|
5
5
|
import { spawn } from "node:child_process";
|
|
6
|
-
import { OAuthCredentials } from "@mariozechner/pi-ai/oauth";
|
|
6
|
+
import { OAuthCredentials, OAuthPrompt, OAuthPrompt as OAuthPrompt$1 } from "@mariozechner/pi-ai/oauth";
|
|
7
7
|
import { Dispatch, ReactNode, SetStateAction } from "react";
|
|
8
8
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
9
9
|
//#region src/chat/agent-prompt.d.ts
|
|
@@ -215,6 +215,19 @@ declare function buildPlanSystem(opts?: BuildSystemOptions): string;
|
|
|
215
215
|
*
|
|
216
216
|
* No state. Same inputs → same answer.
|
|
217
217
|
*/
|
|
218
|
+
/**
|
|
219
|
+
* Default hysteresis floor for {@link shouldAutoCompact}. After a successful
|
|
220
|
+
* compaction lands, the next compaction is suppressed until input usage
|
|
221
|
+
* grows by at least this fraction of the effective context window beyond
|
|
222
|
+
* the post-compact baseline.
|
|
223
|
+
*
|
|
224
|
+
* `0.1` = 10% of the window. Picked so the immediate post-compact bounce
|
|
225
|
+
* (summary turn + restored attachments + re-emitted system prefix) never
|
|
226
|
+
* re-fires the trigger by itself, but a meaningful chunk of new work
|
|
227
|
+
* (one or two large tool reads) does. Tune via the predicate's
|
|
228
|
+
* `minGrowthFraction` input if a host needs different ergonomics.
|
|
229
|
+
*/
|
|
230
|
+
declare const AUTO_COMPACT_MIN_GROWTH_FRACTION = 0.1;
|
|
218
231
|
/**
|
|
219
232
|
* Inputs to {@link shouldAutoCompact}.
|
|
220
233
|
*
|
|
@@ -253,6 +266,30 @@ interface AutoCompactInput {
|
|
|
253
266
|
* the agent loop.
|
|
254
267
|
*/
|
|
255
268
|
alreadyCompacting?: boolean;
|
|
269
|
+
/**
|
|
270
|
+
* Input-token count observed immediately AFTER the most recent successful
|
|
271
|
+
* compaction landed. Used together with {@link minGrowthFraction} to
|
|
272
|
+
* suppress thrashing — after compaction lowers the prefix from 85% → 35%,
|
|
273
|
+
* the next few turns drift back up; without hysteresis the trigger fires
|
|
274
|
+
* again the instant the threshold is re-crossed, often before the model
|
|
275
|
+
* has done any new work. Tracking the post-compact baseline lets the
|
|
276
|
+
* predicate require meaningful new growth before re-firing.
|
|
277
|
+
*
|
|
278
|
+
* `undefined` (no compaction yet this session) → hysteresis disabled,
|
|
279
|
+
* predicate behaves as before.
|
|
280
|
+
*/
|
|
281
|
+
lastCompactedInputTokens?: number;
|
|
282
|
+
/**
|
|
283
|
+
* Minimum fraction of the effective context window that must be CONSUMED
|
|
284
|
+
* by new content (i.e. `inputTokens - lastCompactedInputTokens`) before
|
|
285
|
+
* a follow-up compaction fires. Expressed in the same units as
|
|
286
|
+
* {@link threshold}, e.g. `0.1` = 10% of the window. Defaults to `0`
|
|
287
|
+
* (no hysteresis) when omitted; chat hosts pick a value like `0.1`.
|
|
288
|
+
*
|
|
289
|
+
* Only consulted when {@link lastCompactedInputTokens} is set — first
|
|
290
|
+
* compaction in a session always fires off the absolute threshold.
|
|
291
|
+
*/
|
|
292
|
+
minGrowthFraction?: number;
|
|
256
293
|
}
|
|
257
294
|
type AutoCompactDecision = {
|
|
258
295
|
kind: 'fire';
|
|
@@ -260,7 +297,7 @@ type AutoCompactDecision = {
|
|
|
260
297
|
effectiveWindow: number;
|
|
261
298
|
} | {
|
|
262
299
|
kind: 'skip';
|
|
263
|
-
reason: 'disabled' | 'unknown-window' | 'invalid-threshold' | 'invalid-input-tokens' | 'under-threshold' | 'already-compacting';
|
|
300
|
+
reason: 'disabled' | 'unknown-window' | 'invalid-threshold' | 'invalid-input-tokens' | 'under-threshold' | 'already-compacting' | 'cooldown';
|
|
264
301
|
};
|
|
265
302
|
/**
|
|
266
303
|
* Decide whether auto-compaction should fire for the latest turn.
|
|
@@ -1237,6 +1274,97 @@ declare function previewEditPayload(payload: EditPayload, priorContent: string,
|
|
|
1237
1274
|
declare function buildUnifiedDiff(payload: EditPayload): string;
|
|
1238
1275
|
declare function filetypeFromPath(path: string): string | undefined;
|
|
1239
1276
|
//#endregion
|
|
1277
|
+
//#region src/chat/footer-hints.d.ts
|
|
1278
|
+
/**
|
|
1279
|
+
* Options bag for {@link buildHints}. Flat shape so call sites read as a
|
|
1280
|
+
* checklist of "what state do I have to surface" — easy to thread
|
|
1281
|
+
* through React `useMemo` deps and to construct fresh in tests.
|
|
1282
|
+
*/
|
|
1283
|
+
interface BuildHintsOptions {
|
|
1284
|
+
screen: Screen;
|
|
1285
|
+
busy: boolean;
|
|
1286
|
+
pending: boolean;
|
|
1287
|
+
/**
|
|
1288
|
+
* True when a LIVE pending interaction is on screen (agent is mid-run,
|
|
1289
|
+
* awaiting the tool's Promise). Same nav hints as the safe-mode
|
|
1290
|
+
* approval picker — esc aborts the run.
|
|
1291
|
+
*/
|
|
1292
|
+
pendingInteractionLive: boolean;
|
|
1293
|
+
/**
|
|
1294
|
+
* True when the chat screen is showing a resumed (not live) pending
|
|
1295
|
+
* interaction. The agent isn't running; esc leaves the form without
|
|
1296
|
+
* persisting a response, so the hint reads "leave for later" — the
|
|
1297
|
+
* session re-enqueues the same interaction on next activation.
|
|
1298
|
+
*/
|
|
1299
|
+
pendingInteractionResumed: boolean;
|
|
1300
|
+
currentSession: SessionMeta | null;
|
|
1301
|
+
hasMultipleAgents: boolean;
|
|
1302
|
+
/**
|
|
1303
|
+
* Chat-screen chrome density — `'minimal'` collapses the idle chat
|
|
1304
|
+
* hint row to just `agent / model / keybindings`. Busy / pending /
|
|
1305
|
+
* select-turn / queue states keep their full hint sets because those
|
|
1306
|
+
* affordances are load-bearing (abort, navigate, approve).
|
|
1307
|
+
*/
|
|
1308
|
+
uiMode: Settings['uiMode'];
|
|
1309
|
+
modelLabel: string | null;
|
|
1310
|
+
modelColor: string;
|
|
1311
|
+
/** Current reasoning effort label, or `null` when the model has no reasoning knob. */
|
|
1312
|
+
effortLabel: string | null;
|
|
1313
|
+
effortColor: string;
|
|
1314
|
+
/** Foreground for the `/n` chord that introduces the effort label. */
|
|
1315
|
+
effortKeyColor: string;
|
|
1316
|
+
agentLabel: string;
|
|
1317
|
+
agentColor: string;
|
|
1318
|
+
/**
|
|
1319
|
+
* Resolved keybindings — every hint key string flows through this so
|
|
1320
|
+
* a user-level rebind (e.g. `"openSettings": "ctrl+p"`) shows up live
|
|
1321
|
+
* in the bottom bar without us hard-coding `'ctrl+o'`.
|
|
1322
|
+
*/
|
|
1323
|
+
keybindings: KeyBindings;
|
|
1324
|
+
/**
|
|
1325
|
+
* Number of currently-dispatching tool calls. Drives the
|
|
1326
|
+
* `<cancelToolCall> cancel tool` chip in the `busy` hint row — without
|
|
1327
|
+
* it, the binding stays inert and there's no point advertising the
|
|
1328
|
+
* shortcut. Falls back to "no chip" when no tools are in flight
|
|
1329
|
+
* (model is mid-stream but hasn't dispatched yet).
|
|
1330
|
+
*/
|
|
1331
|
+
inFlightToolCount: number;
|
|
1332
|
+
/**
|
|
1333
|
+
* Number of currently-active skills. Drives the footer's
|
|
1334
|
+
* `✦ N skill(s)` chip on the chat screen — purely informational,
|
|
1335
|
+
* a passive surface for "tool restrictions are in effect". Hidden
|
|
1336
|
+
* when `0` so the row stays uncluttered for the common case.
|
|
1337
|
+
*/
|
|
1338
|
+
activeSkillCount: number;
|
|
1339
|
+
/** Foreground for the skills chip (typically `COLOR.brand`). */
|
|
1340
|
+
skillsChipColor: string;
|
|
1341
|
+
/**
|
|
1342
|
+
* Pre-built `↑ vX.Y.Z` chip from `buildUpdateHint(useUpdateCheck())`,
|
|
1343
|
+
* or `null` when no update is available. Always last in the chat-screen
|
|
1344
|
+
* row so it's the first to drop when the terminal narrows.
|
|
1345
|
+
*/
|
|
1346
|
+
updateHint: Hint | null;
|
|
1347
|
+
}
|
|
1348
|
+
/**
|
|
1349
|
+
* Build the footer's shortcut hints for the current screen. On the chat
|
|
1350
|
+
* screen the model id rides next to its `ctrl+m` shortcut and the agent
|
|
1351
|
+
* label rides next to `shift+tab`, each in its accent color — the bar
|
|
1352
|
+
* doubles as the status display without needing separate badges. When
|
|
1353
|
+
* the active model exposes reasoning, the `ctrl+m` hint grows a
|
|
1354
|
+
* secondary `/n` chord with the current effort label, surfacing the
|
|
1355
|
+
* effort picker as a discoverable, in-place affordance.
|
|
1356
|
+
*/
|
|
1357
|
+
declare function buildHints(options: BuildHintsOptions): Hint[];
|
|
1358
|
+
/**
|
|
1359
|
+
* Shorten a binding spec for display as a "chord continuation" — the
|
|
1360
|
+
* `/n` after `ctrl+m model` in the chat footer. We only strip the
|
|
1361
|
+
* `ctrl+` prefix so user-customized chords (`alt+n`, `meta+shift+n`)
|
|
1362
|
+
* still render in full. Falls back to the verbatim spec when no
|
|
1363
|
+
* `ctrl+` prefix is found, which keeps the visual contract honest:
|
|
1364
|
+
* the rendered key always matches the bound trigger.
|
|
1365
|
+
*/
|
|
1366
|
+
declare function shortChord(spec: string): string;
|
|
1367
|
+
//#endregion
|
|
1240
1368
|
//#region src/chat/format.d.ts
|
|
1241
1369
|
/** Compact token formatter — 12_415 → "12.4k", 1_234_567 → "1.23M". */
|
|
1242
1370
|
declare function fmtTokens(n: number): string;
|
|
@@ -1564,11 +1692,18 @@ declare function indexOfEntry(catalog: readonly CatalogEntry[], target: {
|
|
|
1564
1692
|
//#endregion
|
|
1565
1693
|
//#region src/chat/oauth.d.ts
|
|
1566
1694
|
declare function supportsOAuth(descriptor: ProviderDescriptor): boolean;
|
|
1695
|
+
/** True when the provider's OAuth flow needs the user to paste a code back into the TUI (no loopback callback). */
|
|
1696
|
+
declare function oauthUsesManualCodePaste(descriptor: ProviderDescriptor): boolean;
|
|
1567
1697
|
interface OAuthFlowOptions {
|
|
1568
1698
|
/** Called when the provider emits its login URL — typically right after the callback server starts. */
|
|
1569
1699
|
onUrl: (url: string, instructions?: string) => void;
|
|
1570
|
-
/**
|
|
1571
|
-
|
|
1700
|
+
/**
|
|
1701
|
+
* Called when the provider needs a free-form input from the user (paste-the-code flows,
|
|
1702
|
+
* step-up confirmations, etc.). Mirrors pi-ai's `OAuthLoginCallbacks.onPrompt` verbatim
|
|
1703
|
+
* so callers don't lose `placeholder` / `allowEmpty` hints. Required for any provider
|
|
1704
|
+
* with `usesCallbackServer: false` (e.g. Anthropic Claude Pro/Max).
|
|
1705
|
+
*/
|
|
1706
|
+
onPrompt?: (prompt: OAuthPrompt$1) => Promise<string>;
|
|
1572
1707
|
/** Called with each progress message from the OAuth flow (token exchange, etc.). */
|
|
1573
1708
|
onProgress?: (message: string) => void;
|
|
1574
1709
|
/** Abort the in-flight login (e.g. user pressed esc). */
|
|
@@ -1583,6 +1718,50 @@ interface OAuthFlowOptions {
|
|
|
1583
1718
|
*/
|
|
1584
1719
|
declare function runOAuthLogin(descriptor: ProviderDescriptor, options: OAuthFlowOptions): Promise<OAuthCredentials>;
|
|
1585
1720
|
//#endregion
|
|
1721
|
+
//#region src/chat/oauth-redirect.d.ts
|
|
1722
|
+
/**
|
|
1723
|
+
* Manual OAuth redirect-URL handoff.
|
|
1724
|
+
*
|
|
1725
|
+
* Users who run zidane over SSH (or behind a proxy / firewall that blocks
|
|
1726
|
+
* loopback) can't have the local browser hit the in-process callback server.
|
|
1727
|
+
* They CAN, however, copy the URL their browser was redirected to —
|
|
1728
|
+
* `http://127.0.0.1:<port>/callback?code=...&state=...` — and paste it back
|
|
1729
|
+
* into the TUI.
|
|
1730
|
+
*
|
|
1731
|
+
* The trick: that URL IS the callback our local server is listening on. We
|
|
1732
|
+
* just `fetch()` it ourselves. The server runs in the same process; the
|
|
1733
|
+
* request hits its handler exactly as if a real browser had arrived, the
|
|
1734
|
+
* OAuth promise (`waitForCode` for pi-ai providers, `startOAuthCallback` for
|
|
1735
|
+
* MCP) resolves through the normal happy path, and the upstream flow
|
|
1736
|
+
* continues uninterrupted. No new code path inside the OAuth state machine.
|
|
1737
|
+
*
|
|
1738
|
+
* Defense in depth: we reject anything that isn't a loopback URL — fetching
|
|
1739
|
+
* an arbitrary user-pasted URL from inside the agent process would be a
|
|
1740
|
+
* trivial SSRF.
|
|
1741
|
+
*/
|
|
1742
|
+
interface FetchOAuthRedirectResult {
|
|
1743
|
+
/** Status code from the callback server. 2xx = success. */
|
|
1744
|
+
status: number;
|
|
1745
|
+
/** Best-effort message extracted from the response body (HTML title or trimmed text). */
|
|
1746
|
+
message?: string;
|
|
1747
|
+
}
|
|
1748
|
+
/**
|
|
1749
|
+
* Treat `pasted` as a callback-URL paste. Validates it's a loopback URL,
|
|
1750
|
+
* fires a GET, returns the status.
|
|
1751
|
+
*
|
|
1752
|
+
* Throws when:
|
|
1753
|
+
* - `pasted` doesn't parse as a URL.
|
|
1754
|
+
* - The URL host isn't loopback (rejects SSRF).
|
|
1755
|
+
* - The fetch errors out (network, timeout).
|
|
1756
|
+
*
|
|
1757
|
+
* Returns success/failure for non-2xx responses; the caller decides whether
|
|
1758
|
+
* a 4xx is fatal (state mismatch is a 400 the user can retry from).
|
|
1759
|
+
*/
|
|
1760
|
+
declare function fetchOAuthRedirect(pasted: string, options?: {
|
|
1761
|
+
signal?: AbortSignal;
|
|
1762
|
+
timeoutMs?: number;
|
|
1763
|
+
}): Promise<FetchOAuthRedirectResult>;
|
|
1764
|
+
//#endregion
|
|
1586
1765
|
//#region src/chat/path-display.d.ts
|
|
1587
1766
|
/**
|
|
1588
1767
|
* @-completion path display formatter.
|
|
@@ -1779,19 +1958,29 @@ declare const IMPLICITLY_SAFE_TOOLS: readonly string[];
|
|
|
1779
1958
|
* Test whether a `{ tool, input }` pair is covered by one safelist entry.
|
|
1780
1959
|
*
|
|
1781
1960
|
* Supported entry shapes:
|
|
1782
|
-
* - `"<tool>"` — broad match on tool name.
|
|
1783
|
-
* must not chain through another program (see {@link SHELL_CHAINING_RE}).
|
|
1961
|
+
* - `"<tool>"` — broad match on tool name.
|
|
1784
1962
|
* - `"<tool>:<token>:*"` — match when the primary arg's first token
|
|
1785
|
-
* equals `<token>`.
|
|
1786
|
-
*
|
|
1787
|
-
*
|
|
1963
|
+
* equals `<token>`.
|
|
1964
|
+
*
|
|
1965
|
+
* This function matches a **single command** against a **single entry**.
|
|
1966
|
+
* For shell commands that chain multiple programs (`&&`, `||`, `;`,
|
|
1967
|
+
* `$(…)`, etc.), use {@link isOnSafelist} which parses the full command
|
|
1968
|
+
* and checks every head token independently.
|
|
1788
1969
|
*
|
|
1789
1970
|
* Entries that don't fit either shape are ignored (forward-compat for
|
|
1790
1971
|
* future pattern syntax — readers shouldn't choke on entries written
|
|
1791
1972
|
* by a newer version of the TUI).
|
|
1792
1973
|
*/
|
|
1793
1974
|
declare function matchesSafelistEntry(entry: string, tool: string, input: Record<string, unknown>): boolean;
|
|
1794
|
-
/**
|
|
1975
|
+
/**
|
|
1976
|
+
* True when a call matches ANY entry in the project's safelist (or is
|
|
1977
|
+
* implicitly safe).
|
|
1978
|
+
*
|
|
1979
|
+
* For `shell` commands, the full command string is parsed into individual
|
|
1980
|
+
* commands (handling `&&`, `||`, `;`, `|`, `$(…)`, backticks, subshells).
|
|
1981
|
+
* Every command head must be covered by at least one safelist entry for
|
|
1982
|
+
* the call to pass. If parsing fails, returns `false` (prompt the user).
|
|
1983
|
+
*/
|
|
1795
1984
|
declare function isOnSafelist(entries: readonly string[], tool: string, input: Record<string, unknown>): boolean;
|
|
1796
1985
|
/**
|
|
1797
1986
|
* Suggest the safelist entry to write when the user picks "accept and
|
|
@@ -2352,5 +2541,5 @@ declare function countNeighbors(turnIds: readonly string[], turnId: string): {
|
|
|
2352
2541
|
after: number;
|
|
2353
2542
|
} | null;
|
|
2354
2543
|
//#endregion
|
|
2355
|
-
export { ACTIONS_WITH_CARE_DOCTRINE, ASK_USER_TOOL, type ActiveTodosState, type ActiveTrigger, type AgentAccent, type AgentProfile, type AgentRegistry, type AnswerValue, type ApiKeyCredential, type ApprovalDecision, type ApprovalRequest, type AuthMethod, type AutoCompactDecision, type AutoCompactInput, type AutoUpdateConfig, BUILD_AGENT, BUILTIN_AGENTS, BUILTIN_PROVIDERS, BUILTIN_THEMES, type BooleanSettingKey, type BuildSystemOptions, type BuildUpdateHintOptions, CATPPUCCIN_FRAPPE, CATPPUCCIN_LATTE, CATPPUCCIN_MACCHIATO, CATPPUCCIN_MOCHA, COMMUNICATION_DOCTRINE, type CatalogEntry, type ChatOptions, type CheckForUpdateOptions, type ChipColor, type ChipColorMap, type Commit, type CompletionContext, type CompletionItem, type CompletionProvider, type CompletionReference, type CompletionState, ConfigProvider, type ConfirmQuestion, type CreateInteractionToolsOptions, type CreateTodoToolsOptions, type CredentialsFile, DEFAULT_AGENT_ID, DEFAULT_BUDGET_EXCLUDE_TOOLS, DEFAULT_KEYBINDINGS, DEFAULT_PERSIST_EXCLUDE_TOOLS, DEFAULT_SETTINGS, DEFAULT_THEME, DOING_TASKS_DOCTRINE, type DetectPackageManagerOptions, type DiffLine, type DiffOp, type DiscoveredMcp, type DiscoveryContextValue, type DiscoveryError, DiscoveryProvider, type DiscoveryResult, type DiscoverySlot, type DiscoverySlotOptions, type EditDiffDisplay, type EditHunk, type EditHunkSummary, type EditOutcome, type EditOutcomeKind, type EditPayload, type EditSummary, type EnabledAllowlistKey, type EnabledToggleSet, type EnvSectionOptions, FILES_TRIGGER, type FileEntry, type GenerateSessionTitleOptions, type Hint, type HunkResolution, IDENTITY_PREFIX, IMPLICITLY_SAFE_TOOLS, INTERACTION_GUIDANCE, INTERACTION_GUIDANCE_NO_PROMPTS, type InPlaceUpdateResult, type InlineDiff, type InlineSegment, type InteractionRequest, type InteractionResponse, type InteractionsActions, InteractionsProvider, KEYBINDING_DEFS, KEYBINDING_DEF_BY_ACTION, type KeyAction, type KeyBindingDef, type KeyBindings, type ListProjectFilesOptions, type MarkdownSegment, type McpAuthEvent, McpAuthProvider, type McpAuthStateMap, type McpAuthStatus, type ModelInfo, type OAuthCredential, type OAuthFlowOptions, OUTPUT_RESERVE_TOKENS, type Owner, PLAN_AGENT, PLAN_MODE_DOCTRINE, PLAN_MODE_DOCTRINE_NO_PROMPTS, PRESENT_PLAN_TOOL, type PackageManagerCommand, type PackageManagerId, type ParsedBinding, type PendingInteractionEntry, type PerformInPlaceUpdateOptions, type PerformSelfUpdateOptions, type Picked, type PlanDecision, type PlanPayload, type PlanRequest, type PlanResponse, type PlanStep, type PlatformTarballOptions, type PreviewResult, type ProjectEntry, type ProjectUserPath, type ProjectsFile, type PromptSegment, type PromptSegmentRef, type ProviderAuth, type ProviderCredential, type ProviderDescriptor, type ProviderKey, type ProviderRegistry, type Question, type QuestionChoice, type QuestionPayload, type QuestionRequest, type QuestionResponse, type QuestionType, type RequestApproval, type ResolvedApproval, type ResolvedConfig, type RunUpdateCommandOptions, type RunUpdateCommandResult, SETTINGS_CHOICES, SETTINGS_TOGGLES, SKILLS_TRIGGER, SUBAGENT_GUIDANCE, type SafeModeActions, SafeModeProvider, type Screen, type SelectQuestion, type SelfUpdateResult, type SessionExportAnchor, type SessionExportFormat, type SessionExportTarget, type SessionMeta, type Settings, type SettingsChoice, SettingsProvider, type SettingsToggle, type StateStoreApi, type StreamBuffer, type StreamEvent, type StreamSource, type SyntaxStyles, type SyntaxTokenStyle, TODOREAD_TOOL, TODOS_METADATA_KEY, TODOWRITE_TOOL, TODO_STATUS_GLYPHS, TODO_WRITE_COUNTS_METADATA_KEY, TOKEN_DISCIPLINE_DOCTRINE, TOOL_DISPLAY, type TextQuestion, type Theme, type ThemeColors, ThemeProvider, type ThemeSelect, type ThemeSurfaces, type TodoItem, type TodoStatus, type TodoTally, type TodosBag, type ToolCallDisplay, type ToolDisplayMeta, type ToolFormatLine, type TranscriptItem, type TuiState, type UpdateStatus, type UseUpdateCheckOptions, VAPORWAVE_THEME, type Walk, accentColor, addToSafelist, ageString, anthropicDescriptor, applyApiKeyEnv, applyEditPayload, applyInsert, blendHsl, bootProfileEnabled, bootTick, buildBuildSystem, buildContextualDiff, buildEditOutcomesAnnotation, buildLinearRamp, buildMcpServers, buildModelCatalog, buildPlanSystem, buildResumedToolResultsTurn, buildSkillsConfig, buildUnifiedDiff, buildUpdateHint, cerebrasDescriptor, checkForUpdate, cleanTitle, clipHintsToWidth, collectReferences, compactPath, compareSemver, computeInlineDiff, computeLineDiff, computeTurnAnchors, countNeighbors, createDiscoverySlot, createFileMcpCredentialStore, createFilesCompletionProvider, createInteractionTools, createSkillsCompletionProvider, createStateStore, createTodoTools, credKeyOf, credentialsPath, defaultMcpsConfigPaths, defaultSkillScanPaths, deleteTurnSafely, deriveSessionTitle, detectAuth, detectLibc, detectPackageManager, discoverProjectMcps, discoverProjectSkills, displayNameFor, effectiveContextWindow, ensureKeybindingsFile, envSection, eventsFromTurns, extractEditPayload, filetypeFromPath, filterModelCatalog, finalizeStreamingMarkdown, finalizeStreamingMarkdownForOwner, findActiveTrigger, findGitRoot, fmtTokens, formatDuration, formatPathForCwd, formatTaskStatus, formatTaskSummary, formatToolCall, generateSessionTitle, getArchivedTodosForRun, getContextWindow, getMcpAuthStatus, getModelInfo, getSafelist, getTodosForRun, hintsLength, indexOfEntry, isEditErrorResult, isInteractionTool, isOnSafelist, isTodoTool, isTurnHighlighted, isVisible, keybindingsPath, lastContextSizeFromTurns, listProjectFiles, listSessionMeta, loadState, makeRequestInteraction, marginTopFor, maskToOutcomeKinds, matchesBinding, matchesSafelistEntry, mcpCredentialsPath, mergeApprovalAndBodyOutcomes, mergeKeybindings, mergeReferences, modelSupportsReasoning, modelsForDescriptor, openaiDescriptor, openrouterDescriptor, parseBindingSpec, parseEditOutcomesFromResult, parseMcpsFile, parseSemver, patchMcpCredential, pendingInteractionsFromTurns, performInPlaceSelfUpdate, performSelfUpdate, piIdOf, pickActiveRunId, previewEditPayload, previewLine, projectUserPaths, projectsFilePath, pruneTodosByRun, readCredentials, readKeybindings, readProjects, readProviderCredential, reduceMcpAuth, removeProviderCredential, renderSession, resolveAgentId, resolveApprovalForPayload, resolveChipColor, resolveConfig, resolvePlatformPackage, resolveSessionExportTarget, resolveTheme, rewriteMultiEditHeader, runOAuthLogin, runUpdateCommand, saveState, selectActiveTodos, selectableTurnIds, serializeInteractionResponse, setProviderCredential, setTodosForRun, shortId, shouldAutoCompact, singleAgentRegistry, splitLines, splitMarkdownCodeBlocks, splitPromptSegments, stripEditOutcomesAnnotation, stripJsonComments, stripSpawnTokensLine, suggestSafelistEntry, sumRunCosts, summarizeEditPayload, summarizeOutcomes, supportsOAuth, titleFromTurns, tokenize, toolCallPreview, toolResultText, truncateTrailing, truncateTurnsAt, tryOpenBrowser, turnAsText, turnContextSize, turnSelectionOwnership, uniqueFilesFromReferences, uniqueSkillNamesFromReferences, updateToolEventOutcomes, useActiveTodos, useColors, useCompletion, useConfig, useDiscovery, useDiscoveryOptional, useEnabledToggleSet, useInteractionsActions, useInteractionsQueue, useMcpAuthDispatch, useMcpAuthState, useSafeModeActions, useSafeModeQueue, useSelectStyle, useSettings, useStreamBuffer, useSurfaces, useSyntaxStyles, useTheme, useUpdateCheck, writeCredentials, writeProjects, writeSessionExport };
|
|
2544
|
+
export { ACTIONS_WITH_CARE_DOCTRINE, ASK_USER_TOOL, AUTO_COMPACT_MIN_GROWTH_FRACTION, type ActiveTodosState, type ActiveTrigger, type AgentAccent, type AgentProfile, type AgentRegistry, type AnswerValue, type ApiKeyCredential, type ApprovalDecision, type ApprovalRequest, type AuthMethod, type AutoCompactDecision, type AutoCompactInput, type AutoUpdateConfig, BUILD_AGENT, BUILTIN_AGENTS, BUILTIN_PROVIDERS, BUILTIN_THEMES, type BooleanSettingKey, type BuildHintsOptions, type BuildSystemOptions, type BuildUpdateHintOptions, CATPPUCCIN_FRAPPE, CATPPUCCIN_LATTE, CATPPUCCIN_MACCHIATO, CATPPUCCIN_MOCHA, COMMUNICATION_DOCTRINE, type CatalogEntry, type ChatOptions, type CheckForUpdateOptions, type ChipColor, type ChipColorMap, type Commit, type CompletionContext, type CompletionItem, type CompletionProvider, type CompletionReference, type CompletionState, ConfigProvider, type ConfirmQuestion, type CreateInteractionToolsOptions, type CreateTodoToolsOptions, type CredentialsFile, DEFAULT_AGENT_ID, DEFAULT_BUDGET_EXCLUDE_TOOLS, DEFAULT_KEYBINDINGS, DEFAULT_PERSIST_EXCLUDE_TOOLS, DEFAULT_SETTINGS, DEFAULT_THEME, DOING_TASKS_DOCTRINE, type DetectPackageManagerOptions, type DiffLine, type DiffOp, type DiscoveredMcp, type DiscoveryContextValue, type DiscoveryError, DiscoveryProvider, type DiscoveryResult, type DiscoverySlot, type DiscoverySlotOptions, EMPTY_HINTS, type EditDiffDisplay, type EditHunk, type EditHunkSummary, type EditOutcome, type EditOutcomeKind, type EditPayload, type EditSummary, type EnabledAllowlistKey, type EnabledToggleSet, type EnvSectionOptions, FILES_TRIGGER, type FetchOAuthRedirectResult, type FileEntry, type GenerateSessionTitleOptions, type Hint, type HunkResolution, IDENTITY_PREFIX, IMPLICITLY_SAFE_TOOLS, INTERACTION_GUIDANCE, INTERACTION_GUIDANCE_NO_PROMPTS, type InPlaceUpdateResult, type InlineDiff, type InlineSegment, type InteractionRequest, type InteractionResponse, type InteractionsActions, InteractionsProvider, KEYBINDING_DEFS, KEYBINDING_DEF_BY_ACTION, type KeyAction, type KeyBindingDef, type KeyBindings, type ListProjectFilesOptions, type MarkdownSegment, type McpAuthEvent, McpAuthProvider, type McpAuthStateMap, type McpAuthStatus, type ModelInfo, type OAuthCredential, type OAuthFlowOptions, type OAuthPrompt, OUTPUT_RESERVE_TOKENS, type Owner, PLAN_AGENT, PLAN_MODE_DOCTRINE, PLAN_MODE_DOCTRINE_NO_PROMPTS, PRESENT_PLAN_TOOL, type PackageManagerCommand, type PackageManagerId, type ParsedBinding, type PendingInteractionEntry, type PerformInPlaceUpdateOptions, type PerformSelfUpdateOptions, type Picked, type PlanDecision, type PlanPayload, type PlanRequest, type PlanResponse, type PlanStep, type PlatformTarballOptions, type PreviewResult, type ProjectEntry, type ProjectUserPath, type ProjectsFile, type PromptSegment, type PromptSegmentRef, type ProviderAuth, type ProviderCredential, type ProviderDescriptor, type ProviderKey, type ProviderRegistry, type Question, type QuestionChoice, type QuestionPayload, type QuestionRequest, type QuestionResponse, type QuestionType, type RequestApproval, type ResolvedApproval, type ResolvedConfig, type RunUpdateCommandOptions, type RunUpdateCommandResult, SETTINGS_CHOICES, SETTINGS_TOGGLES, SKILLS_TRIGGER, SUBAGENT_GUIDANCE, type SafeModeActions, SafeModeProvider, type Screen, type SelectQuestion, type SelfUpdateResult, type SessionExportAnchor, type SessionExportFormat, type SessionExportTarget, type SessionMeta, type Settings, type SettingsChoice, SettingsProvider, type SettingsToggle, type StateStoreApi, type StreamBuffer, type StreamEvent, type StreamSource, type SyntaxStyles, type SyntaxTokenStyle, TODOREAD_TOOL, TODOS_METADATA_KEY, TODOWRITE_TOOL, TODO_STATUS_GLYPHS, TODO_WRITE_COUNTS_METADATA_KEY, TOKEN_DISCIPLINE_DOCTRINE, TOOL_DISPLAY, type TextQuestion, type Theme, type ThemeColors, ThemeProvider, type ThemeSelect, type ThemeSurfaces, type TodoItem, type TodoStatus, type TodoTally, type TodosBag, type ToolCallDisplay, type ToolDisplayMeta, type ToolFormatLine, type TranscriptItem, type TuiState, type UpdateStatus, type UseUpdateCheckOptions, VAPORWAVE_THEME, type Walk, accentColor, addToSafelist, ageString, anthropicDescriptor, applyApiKeyEnv, applyEditPayload, applyInsert, blendHsl, bootProfileEnabled, bootTick, buildBuildSystem, buildContextualDiff, buildEditOutcomesAnnotation, buildHints, buildLinearRamp, buildMcpServers, buildModelCatalog, buildPlanSystem, buildResumedToolResultsTurn, buildSkillsConfig, buildUnifiedDiff, buildUpdateHint, cerebrasDescriptor, checkForUpdate, cleanTitle, clipHintsToWidth, collectReferences, compactPath, compareSemver, computeInlineDiff, computeLineDiff, computeTurnAnchors, countNeighbors, createDiscoverySlot, createFileMcpCredentialStore, createFilesCompletionProvider, createInteractionTools, createSkillsCompletionProvider, createStateStore, createTodoTools, credKeyOf, credentialsPath, defaultMcpsConfigPaths, defaultSkillScanPaths, deleteTurnSafely, deriveSessionTitle, detectAuth, detectLibc, detectPackageManager, discoverProjectMcps, discoverProjectSkills, displayNameFor, effectiveContextWindow, ensureKeybindingsFile, envSection, eventsFromTurns, extractEditPayload, fetchOAuthRedirect, filetypeFromPath, filterModelCatalog, finalizeStreamingMarkdown, finalizeStreamingMarkdownForOwner, findActiveTrigger, findGitRoot, fmtTokens, formatDuration, formatPathForCwd, formatTaskStatus, formatTaskSummary, formatToolCall, generateSessionTitle, getArchivedTodosForRun, getContextWindow, getMcpAuthStatus, getModelInfo, getSafelist, getTodosForRun, hintsLength, indexOfEntry, isEditErrorResult, isInteractionTool, isOnSafelist, isTodoTool, isTurnHighlighted, isVisible, keybindingsPath, lastContextSizeFromTurns, listProjectFiles, listSessionMeta, loadState, makeRequestInteraction, marginTopFor, maskToOutcomeKinds, matchesBinding, matchesSafelistEntry, mcpCredentialsPath, mergeApprovalAndBodyOutcomes, mergeKeybindings, mergeReferences, modelSupportsReasoning, modelsForDescriptor, oauthUsesManualCodePaste, openaiDescriptor, openrouterDescriptor, parseBindingSpec, parseEditOutcomesFromResult, parseMcpsFile, parseSemver, patchMcpCredential, pendingInteractionsFromTurns, performInPlaceSelfUpdate, performSelfUpdate, piIdOf, pickActiveRunId, previewEditPayload, previewLine, projectUserPaths, projectsFilePath, pruneTodosByRun, readCredentials, readKeybindings, readProjects, readProviderCredential, reduceMcpAuth, removeProviderCredential, renderSession, resolveAgentId, resolveApprovalForPayload, resolveChipColor, resolveConfig, resolvePlatformPackage, resolveSessionExportTarget, resolveTheme, rewriteMultiEditHeader, runOAuthLogin, runUpdateCommand, saveState, selectActiveTodos, selectableTurnIds, serializeInteractionResponse, setProviderCredential, setTodosForRun, shortChord, shortId, shouldAutoCompact, singleAgentRegistry, splitLines, splitMarkdownCodeBlocks, splitPromptSegments, stripEditOutcomesAnnotation, stripJsonComments, stripSpawnTokensLine, suggestSafelistEntry, sumRunCosts, summarizeEditPayload, summarizeOutcomes, supportsOAuth, titleFromTurns, tokenize, toolCallPreview, toolResultText, truncateTrailing, truncateTurnsAt, tryOpenBrowser, turnAsText, turnContextSize, turnSelectionOwnership, uniqueFilesFromReferences, uniqueSkillNamesFromReferences, updateToolEventOutcomes, useActiveTodos, useColors, useCompletion, useConfig, useDiscovery, useDiscoveryOptional, useEnabledToggleSet, useInteractionsActions, useInteractionsQueue, useMcpAuthDispatch, useMcpAuthState, useSafeModeActions, useSafeModeQueue, useSelectStyle, useSettings, useStreamBuffer, useSurfaces, useSyntaxStyles, useTheme, useUpdateCheck, writeCredentials, writeProjects, writeSessionExport };
|
|
2356
2545
|
//# sourceMappingURL=chat.d.ts.map
|