@gajae-code/coding-agent 0.21.2-nightly.20261117033912.44094733075.g9404d012f121 → 0.22.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.
Files changed (75) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/dist/types/config/autorouting-tier-map.d.ts +86 -0
  3. package/dist/types/config/model-registry.d.ts +1 -1
  4. package/dist/types/config/models-config-schema.d.ts +2 -0
  5. package/dist/types/config/settings-schema.d.ts +5 -0
  6. package/dist/types/export/ttsr.d.ts +10 -0
  7. package/dist/types/modes/types.d.ts +6 -1
  8. package/dist/types/sdk/bus/kind-aware-reconciliation.d.ts +9 -1
  9. package/dist/types/sdk/bus/telegram-daemon-contract.d.ts +1 -1
  10. package/dist/types/sdk/bus/telegram-daemon.d.ts +2 -0
  11. package/dist/types/sdk/bus/topic-registry.d.ts +2 -0
  12. package/dist/types/sdk/host/session-runtime.d.ts +9 -2
  13. package/dist/types/sdk/index.d.ts +1 -0
  14. package/dist/types/sdk/preflight-admissions.d.ts +45 -0
  15. package/dist/types/sdk/revision-controls.d.ts +9 -0
  16. package/dist/types/sdk/turn-result.d.ts +6 -1
  17. package/dist/types/session/agent-session.d.ts +19 -4
  18. package/dist/types/session/fold-coordinator.d.ts +6 -16
  19. package/dist/types/session/startup-auth-config.d.ts +6 -5
  20. package/dist/types/tools/eval.d.ts +1 -1
  21. package/dist/types/tools/index.d.ts +25 -2
  22. package/dist/types/tools/steer-fold.d.ts +0 -5
  23. package/package.json +7 -7
  24. package/scripts/generate-sdk-operation-inventory.ts +2 -0
  25. package/src/async/job-manager.ts +1 -22
  26. package/src/cli/accounts-cli.ts +13 -3
  27. package/src/config/autorouting-tier-map.ts +47 -0
  28. package/src/config/model-profiles.ts +33 -33
  29. package/src/config/model-registry.ts +151 -14
  30. package/src/config/models-config-schema.ts +11 -1
  31. package/src/config/settings-schema.ts +10 -0
  32. package/src/defaults/gjc/skills/deep-interview/SKILL.md +36 -13
  33. package/src/export/ttsr.ts +27 -5
  34. package/src/internal-urls/docs-index.generated.ts +8 -8
  35. package/src/migrate/action-planner.ts +81 -10
  36. package/src/modes/acp/acp-agent.ts +157 -29
  37. package/src/modes/components/user-message.ts +2 -46
  38. package/src/modes/controllers/input-controller.ts +39 -19
  39. package/src/modes/controllers/selector-controller.ts +39 -14
  40. package/src/modes/types.ts +12 -1
  41. package/src/prompts/system/ttsr-tool-blocked-reminder.md +5 -0
  42. package/src/prompts/tools/bash.md +1 -1
  43. package/src/prompts/tools/eval.md +9 -0
  44. package/src/prompts/tools/job.md +2 -1
  45. package/src/runtime-mcp/manager.ts +16 -2
  46. package/src/runtime-mcp/oauth-flow.ts +3 -0
  47. package/src/sdk/bus/chat-daemon-runtime.ts +29 -6
  48. package/src/sdk/bus/index.ts +46 -19
  49. package/src/sdk/bus/kind-aware-reconciliation.ts +28 -3
  50. package/src/sdk/bus/telegram-daemon-contract.ts +1 -1
  51. package/src/sdk/bus/telegram-daemon.ts +83 -5
  52. package/src/sdk/bus/topic-registry.ts +46 -0
  53. package/src/sdk/host/session-runtime.test.ts +203 -2
  54. package/src/sdk/host/session-runtime.ts +164 -45
  55. package/src/sdk/index.ts +1 -0
  56. package/src/sdk/preflight-admissions.ts +123 -0
  57. package/src/sdk/protocol/operation-inventory.generated.json +11 -0
  58. package/src/sdk/revision-controls.ts +90 -1
  59. package/src/sdk/router/session-router.ts +3 -1
  60. package/src/sdk/session.ts +8 -1
  61. package/src/sdk/turn-result.ts +6 -1
  62. package/src/session/agent-session.ts +1091 -99
  63. package/src/session/fold-coordinator.ts +8 -23
  64. package/src/session/session-manager.ts +13 -3
  65. package/src/session/startup-auth-config.ts +9 -6
  66. package/src/skill-state/workflow-mutation-guard.ts +129 -17
  67. package/src/tools/descriptors.ts +4 -1
  68. package/src/tools/eval.ts +31 -3
  69. package/src/tools/index.ts +24 -2
  70. package/src/tools/job.ts +40 -92
  71. package/src/tools/steer-fold.ts +0 -26
  72. package/src/tools/tool-catalog.generated.ts +2 -2
  73. package/src/tools/ultragoal-ask-guard.ts +10 -9
  74. package/src/web/search/providers/codex.ts +1 -1
  75. package/src/web/search/providers/keenable.ts +28 -17
package/CHANGELOG.md CHANGED
@@ -2,6 +2,96 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.22.0] - 2026-11-19
6
+
7
+ ### Added
8
+
9
+ - Added implicit, keyless Rapid-MLX discovery at `http://localhost:8000/v1`, explicit `discovery.type: rapid-mlx` configuration, and served context-window metadata. Implicit and dedicated Rapid-MLX discovery requests to a loopback endpoint use a 500 ms timeout and a direct socket that does not follow redirects, so an unresponsive or redirecting server cannot stall startup or forward `RAPID_MLX_API_KEY`. Every such loopback probe bypasses `HTTP_PROXY`/`HTTPS_PROXY`/`ALL_PROXY` (including a proxy a project `.env` declared), keyless or credentialed, while a non-loopback discovery endpoint uses the ambient `fetch`. The implicit probe only publishes entries that carry a Rapid-MLX-native field, so a vLLM-only server on port 8000 keeps its own `vllm` catalog, and that admission policy is part of the discovery cache provenance; an `offline` refresh republishes the cache only while the cached row was admitted under the current policy.
10
+ - By default, Rapid-MLX inference uses the direct loopback transport selected by provider identity: the endpoint check limits a direct socket to HTTP(S) loopback endpoints, and a non-loopback endpoint keeps the ambient proxy-aware `fetch`, so a configured `HTTP_PROXY`/`HTTPS_PROXY`/`ALL_PROXY` never receives the bearer or the request body on the direct path. A caller-supplied `fetch` owns its inference transport and redirect policy. Discovery is a separate rule from inference: a Rapid-MLX `/models` probe of a loopback endpoint is direct and does not follow redirects, keyless or credentialed, so a proxy cannot answer discovery and inject a catalog, and an inference `fetch` override does not change that probe. The implicit vLLM/SGLang loopback probes skip individual entries that carry a Rapid-MLX-native field.
11
+ - By default, Rapid-MLX inference on the `openai-responses` api selects the same provider-identity direct transport, with the endpoint check limiting the direct socket to HTTP(S) loopback endpoints, so that supported path cannot forward the bearer or the request body to a proxy either. The inference transport follows the provider, not the destination host, so another loopback provider — vLLM, SGLang, Ollama, LM Studio, or a custom OpenAI-compatible entry — keeps the proxy-aware transport for inference and selects `NO_PROXY` when it must connect directly. A custom provider id that selects `discovery.type: rapid-mlx` for a loopback endpoint keeps the direct `/models` probe but not the direct inference transport. A catalog cached by implicit loopback vLLM/SGLang discovery before the reciprocal identity guard is refused on an `offline` refresh instead of being republished.
12
+
13
+ - Expose `captureSessionView` and `restoreSessionView` for retaining an exact session-tree view across session recreation, including the empty root. View metadata never authorizes opening a transcript; restoration requires an existing idle session and never generates or appends conversation content. Failed restoration reverts only live tools, prompts, and unpersisted selection authority that the failed operation still owns, and never revives tools from a superseded MCP catalog.
14
+
15
+ - Added an autorouting strong/high label for `openai-codex/gpt-6.2-sol` at rank 3, after GPT-6 Sol and GPT-6.1 Sol.
16
+
17
+ ### Changed
18
+
19
+ - Deep-interview now offers a standing `This is enough — stop at current ambiguity (X%)` option as the last choice on every interview-round question from round 1, regardless of the ambiguity score, so you can end the interview without typing "stop". Choosing it records `exit_reason: "user_enough"` with the ambiguity at exit, shows the remaining weakest dimensions as a residual-risk warning when ambiguity is still above the threshold, and then crystallizes the spec as usual; the spec reports the exit reason, the ambiguity at exit, and a Residual Risks section. The previous round-3 minimum for early exit is removed. "stop", "cancel", and "abort" still stop immediately and save state for resume without writing a spec.
20
+
21
+ - Eval's tool description now recommends batching `tool.<name>()` calls in one cell only for read-only, approval-free tools (`read`, `search`, `find`, `ast_grep`, `lsp` lookups). It tells the model not to batch through eval when the session asks for approval on tool calls, and to call `bash`, `edit`, `write`, and other side-effecting tools directly (#6237).
22
+
23
+ - Every built-in profile role that used `openai-codex/gpt-6.1-sol` now uses `openai-codex/gpt-6.2-sol` at the same effort. This covers `codex-medium`, `codex-pro`, `astra-lite`, `astra-default`, `astra-heavy`, `opus-codex`, `codex-opencodego`, and `fable-opus-codex`.
24
+ - Every built-in profile role that used `openai-codex/gpt-6-astra` now uses `openai-codex/gpt-6.2-astra` at the same effort. This covers `astra-lite`, `astra-default`, `astra-heavy`, `astra-fable`, and `astra-fable-opus`. Luna and non-Codex roles are unchanged.
25
+ - Codex web search now tries `gpt-6.2-sol` first, then `gpt-6.1-sol`, then `gpt-6-luna`. It still uses only models that the account's model discovery advertises.
26
+
27
+ - `OAuthSelectorOptions` now includes an optional `credentialsToRemoveAfterLogin` field to track credentials pending removal after successful login.
28
+ - `#handleOAuthLogin` now handles removal of disabled credentials after successful OAuth login, ensuring the disabled credential is only deleted when the new one is established.
29
+
30
+ - Move Session in a shared root TUI session is refused again, as before #7858, until a design exists that cannot drop entries other processes have saved (#7856).
31
+
32
+ - A `job` `poll` wait now ends the moment a new user message arrives, matching `subagent` await: there is no 2-second grace window and no `busyPromptMode` gate, and waits over `task`-backed jobs pass through too. The result appends `Job await interrupted by a new user message; …`, the watched jobs keep running, and their results are still delivered automatically on completion. The await is no longer folded, so it records no `foldReason`, emits no `bash_folded` frame, and the `job-await` fold wait kind is removed.
33
+
34
+ ### Fixed
35
+
36
+ - A managed fallback chain no longer abandons a healthy model when its account is merely running its maximum number of parallel requests. A 429 with a typed concurrency code (`session_limit_reached`, `concurrency_limit_exceeded`, `concurrent_request_limit_exceeded`, `too_many_concurrent_requests`) used to be treated as an ordinary rate limit: a few seconds of retries spent the entry's attempts, marked the credential, opened the selector circuit for sibling sessions and advanced to the next model. The session now waits on the same entry without spending attempts, marking the credential or opening the circuit. When no provider Retry-After is present, it polls between 1 second and 15 seconds with random jitter; when Retry-After is supplied, the wait respects that deadline plus bounded jitter (0–1s when Retry-After > 0) to desynchronize concurrent waiters. The wait is bounded per request by the new `fallback.concurrencyWaitMs` setting (default 5 minutes).
37
+ - When the concurrency-wait budget is exhausted and a Retry-After deadline is pending, the session no longer incorrectly applies that deadline to other fallback entries. The budget-exceeded flag is now scoped to the originating entry, so subsequent entries get normal retry attempts instead of being immediately advanced.
38
+ - When the concurrency-wait poll ceiling is reached with an active Retry-After deadline, the session now advances to the next fallback entry instead of falling back to the ordinary rate-limit retry path that would violate the deadline. Same-entry retries before the Retry-After deadline are prevented by tracking an absolute deadline per entry.
39
+
40
+ - The SDK session host no longer rejects progress frames as `invalid_frame` when they contain an unpaired UTF-16 surrogate. This happened, for example, when a streamed Korean or emoji snapshot was cut in the middle of an astral character. Directed delivery now replaces lone surrogate escapes with U+FFFD and keeps the frame's byte length unchanged (#7867).
41
+ - A rejected non-terminal frame (`invalid_frame`, `oversized_frame`, `unauthorized`, `writer_backlog_full`) now drops only that frame. Previously it abandoned the whole prompt delivery, so the real terminal never reached `gjc acp` (#7867).
42
+ - `turn.result` now reports `admitted` (with the generated `commandId`/`turnId`) for a submission whose preflight is still running, such as a long pre-prompt compaction. Once that preflight is rejected or cancelled, it reports a definite `failed` with `receiptState: "missing"`. Previously it reported `unknown` in both cases (#7867).
43
+ - `gjc acp` keeps waiting for a prompt that the host reports as `admitted`, `accepted`, or `in_flight` instead of tearing down the session. That teardown closed the requester connection, which cancelled the pending preflight, so the prompt was silently lost (#7867).
44
+ - After an uncertain prompt outcome or a lost host connection, `gjc acp` reattaches the same session id to its live host. If it cannot reattach, it reports a typed `session_closed` error instead of `not_found: Unknown session`. When the host never acknowledged the prompt, the `terminal_uncertain` message now gives the exact `turn.result` query by `clientRef` instead of `commandId=unknown, turnId=unknown` (#7867).
45
+
46
+ - With two or more queued steers in `one-at-a-time` mode, Esc during the continuation that delivered the first steer now silently interrupts and injects the next queued steer instead of hard-aborting the turn and dumping it into the composer. The first-Esc gesture re-arms once the steer-on-interrupt continuation starts; a second Esc before the consumed steer is delivered still cancels and restores the queue to the composer.
47
+
48
+ - Conditional TTSR rules scoped to `tool:<name>` now apply to nested eval `tool.<name>()` calls. A match folds the rule reminder into the eval result, and an interrupting match keeps the nested call from running and invalidates the rest of that eval call, so code that catches the error cannot retry before the reminder is delivered (#6237).
49
+
50
+ - Fixed false positive blocks in workflow mutation guard when command arguments contain quoted glob characters like `--require="[a-z]"`. The scanner was incorrectly treating these as unquoted globs because it inspected the dequoted word instead of checking the original quoting. This could cause legitimate commands with option arguments containing brackets, asterisks, or question marks to be incorrectly blocked if those characters were quoted in the shell command. (Fixes #7857)
51
+
52
+ - Agent file tools (`write`, `edit`, `ast_edit`, `python`/`eval`) can now create and edit project skills under `.gjc/skills/<name>/`; previously the always-on `.gjc/**` guard refused them even though no `gjc` CLI command writes skills. The `.gjc/skills` directory itself, every other `.gjc/**` path, `..` escapes, and symlink/hardlink redirects into other `.gjc` state stay blocked, and planning-phase boundaries are unchanged.
53
+
54
+ - Hook import migration now validates the hooks directory root is a real directory (not a symlink or regular file) before planning to generate hook modules, matching the safety checks already in place for skills and commands. Without `--force`, unsafe destinations are skipped; with `--force`, they fail with a clear error. This prevents the migration from planning to write hooks to unsafe locations that could escape the project, and allows timeouts or permission denials during native discovery to be handled gracefully (#7847).
55
+ - Hook import migration now properly distinguishes between I/O errors (like permission denied) and destination structure errors (like a file where a directory should be), reporting `failed_invalid_destination` for structure errors to match the semantics of other migration types.
56
+
57
+ - **Issue #7848**: OAuth re-login now keeps disabled credentials until a replacement authenticates successfully. Previously, the disabled credential was hard-deleted before the new login attempt, leaving users without fallback if the re-login failed. Now the credential is retained and only removed after the new authentication completes successfully.
58
+
59
+ - Fix SDK prompt abort during admission leaving durable row as "accepted" with turn=uncertain. When aborting a prompt while it's being admitted (after acceptance but before execution starts), the row is now properly settled as "stopped" instead of remaining uncertain.
60
+
61
+ - Shared root TUI sessions now allow `setTemporaryModel` with `--model`/`--mpreset` startup overrides by routing them through shared admission (#7856)
62
+ - Move Session tool (`move_session`) now works in shared sessions by allowing mutations during exclusive cwd transitions (#7856)
63
+
64
+ - `SessionManager.moveTo` rewrites the header cwd and recreates the transcript at the new location again; #7858 had dropped that rewrite (#7860).
65
+
66
+ - **Broker generation recovery** (#7879): Sessions with failed initial broker registrations now properly re-register with successor brokers when broker generation changes. The notification bus properly handles attachment transitions, and session-ready publication IDs are scoped by generation to prevent duplicate publications. The fix ensures the notification state machine transitions cleanly when a broker generation changes after initial registration failure.
67
+
68
+ - The Keenable `web_search` provider now treats a response whose `results` rows are all unusable (null rows or rows without a URL) as a provider failure, so the fallback chain runs instead of returning an empty answer. `results: []` is still a no-hit answer.
69
+
70
+ - MCP OAuth authorization-code exchange refuses a cleartext public token endpoint.
71
+ - MCP dispatch refuses a stored credential whose bound token endpoint is not HTTPS and not loopback.
72
+
73
+ - Planning-only phases now fail closed for Node/Bun module-preload flags (`-r`, `--require`, `--import`, `--loader`, `--experimental-loader`, `--preload`) in every detached, attached, equals, and quote-concatenated spelling, instead of scanning the one-liner while an unscanned preload module ran first.
74
+
75
+ - Shift+Enter keeps inserting a newline after the first message in terminals that reset keyboard modes at a shell prompt, such as Tern. Rendered user messages no longer carry OSC 133 shell-prompt marks, which told the terminal gjc had exited and made it drop the Kitty keyboard flags.
76
+
77
+ - Choosing an OAuth account or AUTO in `/login` no longer crashes GJC with an unhandled rejection when the session refuses the credential write (for example a shared session that refuses the publication); the selector stays open and shows the error so you can retry or pick another row.
78
+
79
+ - `gjc accounts prefer` can order the accounts of one login that holds an OAuth row per organization (same email and account id). It used to refuse with "no unique email or account id"; it now stores `org:<organization-id>`, and `auth.credentialPreferences` accepts that entry. The entry matches the organization id only, never a display name. This also works when credentials come from an auth broker.
80
+
81
+ - On Windows with CJK ANSI code page, bash tool output with one invalid UTF-8 byte no longer permanently switches to ACP decoding for the rest of the stream. Each line is now independently decoded, so an encoding error on one line no longer corrupts later valid UTF-8 lines (#7861).
82
+
83
+ - The Telegram notification daemon now keeps at most 4,096 completed cleanup receipts, evicting the oldest first. Completed receipts were never removed, so a long-lived install grew `telegram-presentation-state.json` without bound and rewrote the whole file on every session removal. Pending and failed receipts are kept, and a state file written before this bound shrinks on the next daemon start.
84
+
85
+ - Restore Telegram notifications when a session reconnects within its grace window without replaying its identity header.
86
+
87
+ - Reject Telegram topic recovery when another session claims the same topic during a concurrent registry update, preventing notifications from being sent outside the topic.
88
+
89
+ - Reading retired branch history during TTSR recovery now preserves the selected branch cursor when a cold read falls back to full transcript hydration, including an explicitly reset root cursor. If the selected entry is missing from the transcript, recovery fails instead of switching subsequent writes to the physical tail's branch.
90
+
91
+ - A TTSR interrupt in a shared session now retries the turn with its reminder instead of leaving the turn aborted with "TTSR recovery was refused because this session entered shared mode". The reminder is saved through the shared session path before the retry changes live history. Only a typed rejected outcome that proves the append did not commit permits retrying with the reminder in memory. A stale outcome stops the retry and closes the session because later shared writes cannot commit until it is reopened. An unknown or unclassified persistence failure also stops the retry and closes the live session, preventing later prompts from duplicating a possibly committed reminder. The warning includes the attempted entry ID when available. Reconciliation on reopening remains separate. A memory-only retry consumes all of its rules, including carried per-tool claims, in the live manager to prevent a repeatMode once interrupt loop, but writes no durable consumption marker, so the rules remain eligible after reopening.
92
+ - A TTSR retry that is aborted while its reminder is being saved still classifies the save result. A stale or uncertain save closes the session as it does without an abort. A rejected save releases the retry's claims, so its per-tool reminders become eligible again. A committed reminder is added to live history and marked as injected at its saved checkpoint if live history is unchanged since the save started. If a newer prompt has changed live history, the session is closed with a reopen notice instead, and reopening restores the saved reminder once.
93
+ - In discard mode, the retry reminder now contains each settled or earlier retry reminder from the discarded turn once, and the saved entry and the live message use the same content and rule set. A reminder folded into a tool result from an earlier assistant turn of the same prompt stays in retained history, so the retry neither carries it again nor re-marks its checkpoint. The saved entry records the message count it was injected at, so reopening a session whose separate injection marker is missing restores that after-gap checkpoint instead of restarting the gap. A newer saved reminder also updates an older checkpoint for the same rule. Recovery reads custom reminders on the active persisted branch, including reminders before a compaction's keep boundary, without putting their text back into Agent context. Inactive sibling branches do not consume rules or advance the counter. Live-only reminders still provide consumption evidence for in-memory sessions and rejected publication. Entries without valid rule metadata are ignored; a rule without a saved checkpoint only fills a missing consumption record at the recovered current count.
94
+
5
95
  ## [0.21.1] - 2026-11-17
6
96
 
7
97
  ### Added
@@ -83,6 +83,11 @@ export declare const CURATED_TIER_LABELS: {
83
83
  readonly effort: "high";
84
84
  readonly rank: 2;
85
85
  }];
86
+ readonly "openai-codex/gpt-6.2-sol": readonly [{
87
+ readonly tier: "strong";
88
+ readonly effort: "high";
89
+ readonly rank: 3;
90
+ }];
86
91
  readonly "openai-codex/gpt-6.1-terra": readonly [{
87
92
  readonly tier: "fast";
88
93
  readonly effort: "medium";
@@ -18493,6 +18498,87 @@ export declare const TIER_MAP_SKIP_LIST: {
18493
18498
  readonly "zenmux/xiaomi/mimo-v2.6-pro": {
18494
18499
  readonly rationale: "models.dev refresh addition; not yet curated";
18495
18500
  };
18501
+ readonly "kilo/openai/gpt-6.2-astra": {
18502
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18503
+ };
18504
+ readonly "kilo/openai/gpt-6.2-astra-fast": {
18505
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18506
+ };
18507
+ readonly "kilo/openai/gpt-6.2-astra-pro": {
18508
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18509
+ };
18510
+ readonly "kilo/openai/gpt-6.2-sol": {
18511
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18512
+ };
18513
+ readonly "kilo/openai/gpt-6.2-sol-fast": {
18514
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18515
+ };
18516
+ readonly "kilo/openai/gpt-6.2-sol-pro": {
18517
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18518
+ };
18519
+ readonly "openai-codex/gpt-6.2-astra": {
18520
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18521
+ };
18522
+ readonly "openai/gpt-6.2-astra": {
18523
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18524
+ };
18525
+ readonly "openai/gpt-6.2-sol": {
18526
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18527
+ };
18528
+ readonly "opencode-zen/gpt-6.2-astra": {
18529
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18530
+ };
18531
+ readonly "opencode-zen/gpt-6.2-sol": {
18532
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18533
+ };
18534
+ readonly "openrouter/openai/gpt-6.2-astra": {
18535
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18536
+ };
18537
+ readonly "openrouter/openai/gpt-6.2-astra-pro": {
18538
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18539
+ };
18540
+ readonly "openrouter/openai/gpt-6.2-astra-pro:batch": {
18541
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18542
+ };
18543
+ readonly "openrouter/openai/gpt-6.2-astra:batch": {
18544
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18545
+ };
18546
+ readonly "openrouter/openai/gpt-6.2-sol": {
18547
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18548
+ };
18549
+ readonly "openrouter/openai/gpt-6.2-sol-pro": {
18550
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18551
+ };
18552
+ readonly "openrouter/openai/gpt-6.2-sol-pro:batch": {
18553
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18554
+ };
18555
+ readonly "openrouter/openai/gpt-6.2-sol:batch": {
18556
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18557
+ };
18558
+ readonly "venice/openai-gpt-62-astra": {
18559
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18560
+ };
18561
+ readonly "venice/openai-gpt-62-astra-pro": {
18562
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18563
+ };
18564
+ readonly "venice/openai-gpt-62-sol": {
18565
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18566
+ };
18567
+ readonly "venice/openai-gpt-62-sol-pro": {
18568
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18569
+ };
18570
+ readonly "vercel-ai-gateway/openai/gpt-6.2-astra": {
18571
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18572
+ };
18573
+ readonly "vercel-ai-gateway/openai/gpt-6.2-astra-fast": {
18574
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18575
+ };
18576
+ readonly "vercel-ai-gateway/openai/gpt-6.2-sol": {
18577
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18578
+ };
18579
+ readonly "vercel-ai-gateway/openai/gpt-6.2-sol-fast": {
18580
+ readonly rationale: "GPT-6.2 catalog addition (2026-11-17 release); not yet curated";
18581
+ };
18496
18582
  };
18497
18583
  export declare const CURATED_TIER_MAP: AutoroutingCuratedTierMap;
18498
18584
  /** Canonical JSON uses sorted object keys and preserves array order. `undefined`/function/symbol encode as the literal `undefined`; explicit undefined array entries become null, while sparse holes are skipped and produce invalid JSON. */
@@ -125,7 +125,7 @@ export declare const ModelsConfigFile: ConfigFile<{
125
125
  authHeader?: boolean | undefined;
126
126
  auth?: "apiKey" | "none" | "oauth" | undefined;
127
127
  discovery?: {
128
- type: "llama.cpp" | "lm-studio" | "models-dev" | "ollama" | "omlx" | "openai-models-list" | "sglang" | "vllm";
128
+ type: "llama.cpp" | "lm-studio" | "models-dev" | "ollama" | "omlx" | "openai-models-list" | "rapid-mlx" | "sglang" | "vllm";
129
129
  apiByModelPrefix?: Record<string, "anthropic-messages" | "openai-completions"> | undefined;
130
130
  modelsDevProvider?: string | undefined;
131
131
  outputModalities?: string[] | undefined;
@@ -359,6 +359,7 @@ export declare const ProviderDiscoverySchema: z.ZodObject<{
359
359
  ollama: "ollama";
360
360
  omlx: "omlx";
361
361
  "openai-models-list": "openai-models-list";
362
+ "rapid-mlx": "rapid-mlx";
362
363
  sglang: "sglang";
363
364
  vllm: "vllm";
364
365
  }>;
@@ -497,6 +498,7 @@ export declare const ModelsConfigSchema: z.ZodObject<{
497
498
  ollama: "ollama";
498
499
  omlx: "omlx";
499
500
  "openai-models-list": "openai-models-list";
501
+ "rapid-mlx": "rapid-mlx";
500
502
  sglang: "sglang";
501
503
  vllm: "vllm";
502
504
  }>;
@@ -1735,6 +1735,11 @@ export declare const SETTINGS_SCHEMA: {
1735
1735
  readonly default: number;
1736
1736
  readonly validate: (value: number) => boolean;
1737
1737
  };
1738
+ readonly "fallback.concurrencyWaitMs": {
1739
+ readonly type: "number";
1740
+ readonly default: number;
1741
+ readonly validate: (value: number) => boolean;
1742
+ };
1738
1743
  readonly "retry.enabled": {
1739
1744
  readonly type: "boolean";
1740
1745
  readonly default: true;
@@ -37,10 +37,20 @@ export declare class TtsrManager {
37
37
  * assistant prose, thinking text, and unrelated tool argument streams.
38
38
  */
39
39
  checkDelta(delta: string, context: TtsrMatchContext): Rule[];
40
+ /**
41
+ * Match a complete snapshot (for example final tool arguments) against every
42
+ * rule. Unlike {@link checkDelta}, conditions are scanned over the whole
43
+ * snapshot rather than the tail window used for incremental stream chunks, so
44
+ * a short match in an early field cannot be hidden by a long trailing field.
45
+ * Does not read or write any stream buffer.
46
+ */
47
+ checkSnapshot(snapshot: string, context: TtsrMatchContext): Rule[];
40
48
  /** Mark rules as injected (won't trigger again until conditions allow). */
41
49
  markInjected(rulesToMark: Rule[]): void;
42
50
  /** Mark rule names as injected (won't trigger again until conditions allow). */
43
51
  markInjectedByNames(ruleNames: string[]): void;
52
+ /** Mark rule names as injected at a specific message count (for reconciliation). */
53
+ markInjectedByNamesAt(ruleNames: string[], messageCount: number): void;
44
54
  /** Get names of all injected rules (for persistence). */
45
55
  getInjectedRuleNames(): string[];
46
56
  /**
@@ -1,6 +1,6 @@
1
1
  import type { AgentMessage } from "@gajae-code/agent-core";
2
2
  import type { CompactionOutcome } from "@gajae-code/agent-core/compaction";
3
- import type { AssistantMessage, ImageContent, Message, UsageReport } from "@gajae-code/ai/core";
3
+ import type { AssistantMessage, CredentialRemovalTarget, ImageContent, Message, UsageReport } from "@gajae-code/ai/core";
4
4
  import type { Component, Container, EditorTheme, Loader, SlashCommand, Spacer, Text, TUI } from "@gajae-code/tui";
5
5
  import type { KeybindingsManager } from "../config/keybindings";
6
6
  import type { Settings } from "../config/settings";
@@ -402,5 +402,10 @@ export interface OAuthSelectorOptions {
402
402
  * cannot reach this machine.
403
403
  */
404
404
  manualCode?: boolean;
405
+ /**
406
+ * Credentials to remove after successful OAuth login. Used when re-logging in
407
+ * to keep the disabled credential until the new login succeeds.
408
+ */
409
+ credentialsToRemoveAfterLogin?: readonly CredentialRemovalTarget[];
405
410
  }
406
411
  export {};
@@ -22,7 +22,15 @@ export interface SteerReconciliationResult {
22
22
  }
23
23
  export interface KindAwareReconciliation {
24
24
  admit(kind: ReconciliationKind, clientRef?: string): void;
25
- releaseAdmission(kind: ReconciliationKind, clientRef?: string): void;
25
+ /** Makes an admitted submission's generated correlation observable through `turn.result` during preflight. */
26
+ bindAdmission(kind: ReconciliationKind, clientRef: string | undefined, correlation: PromptCorrelation): void;
27
+ /**
28
+ * Releases an admission that was never accepted. A `rejection` records the definite
29
+ * preflight failure so `turn.result` reports it instead of `unknown`.
30
+ */
31
+ releaseAdmission(kind: ReconciliationKind, clientRef?: string, rejection?: {
32
+ cause: unknown;
33
+ }): void;
26
34
  noteAccepted(kind: ReconciliationKind, correlation: PromptCorrelation, clientRef?: string, extra?: {
27
35
  skillName?: string;
28
36
  }): Promise<void>;
@@ -319,7 +319,7 @@ export declare const SDK_LIFECYCLE_ROUTER_PROTOCOL_VERSION = 1;
319
319
  * Generation 230 composes that ownership policy with retained replay and
320
320
  * SDK notification-authority bindings.
321
321
  */
322
- export declare const DAEMON_GENERATION = 230;
322
+ export declare const DAEMON_GENERATION = 232;
323
323
  /**
324
324
  * Serving-compatibility boundary for daemon lifecycle requests. Epoch 7
325
325
  * requires durable publication receipts and acknowledged attachment dispatch,
@@ -944,6 +944,8 @@ export declare class TelegramNotificationDaemon {
944
944
  doctorOccupancy(): DoctorDaemonOccupancy;
945
945
  doctorRestartReady(): boolean;
946
946
  cancelDoctorRestart(): void;
947
+ /** @internal Test-only method to refresh ownership heartbeat for all active topics. */
948
+ refreshOwnershipHeartbeat(sessionId: string): Promise<void>;
947
949
  /** Handle a paired-chat /session_* command through the SDK lifecycle service. */
948
950
  private handleLifecycleCommand;
949
951
  private refreshBotIdentity;
@@ -246,6 +246,8 @@ export declare class TopicRegistry {
246
246
  * partial bindings and deletion fences deliberately fail closed.
247
247
  */
248
248
  endpointAuthority(binding: TopicEndpointBinding, excludedTransientClaimant?: object): TopicEndpointAuthority;
249
+ /** Resolve the exact disconnected topic an identity-less replay may resume, without broadening active inbound authority. */
250
+ disconnectedResumeAuthority(binding: TopicEndpointBinding, hostId: string, now: number): TopicEndpointAuthority;
249
251
  /** Resolve a uniquely bound logical owner for callers that only need the owner. */
250
252
  uniqueSessionForEndpoint(binding: TopicEndpointBinding): string | undefined;
251
253
  /** Whether this exact session owns the complete durable endpoint binding. */
@@ -362,8 +362,15 @@ type InvocationOutcomeInput = {
362
362
  export interface InvocationReconciliation {
363
363
  /** Shared v2 reconciliation owner; present for durable terminal admission. */
364
364
  readonly store?: SdkOnlyReconciliationStore;
365
- admit(kind: InvocationKind, clientRef?: string): void;
366
- release(kind: InvocationKind, clientRef?: string): void;
365
+ /**
366
+ * Reserves the clientRef. The generated `correlation` stays observable through
367
+ * `turn.result` as `admitted` until the submission is accepted or released.
368
+ */
369
+ admit(kind: InvocationKind, clientRef?: string, correlation?: InvocationCorrelation): void;
370
+ /** Releases an unaccepted admission; a `rejection` is reported by `turn.result` as a definite failure. */
371
+ release(kind: InvocationKind, clientRef?: string, rejection?: {
372
+ cause: unknown;
373
+ }): void;
367
374
  noteAccepted(kind: InvocationKind, correlation: InvocationCorrelation, clientRef?: string): Promise<void>;
368
375
  noteTransition(kind: InvocationKind, correlation: InvocationCorrelation | undefined, frame: {
369
376
  type: "agent_start" | "agent_end";
@@ -27,6 +27,7 @@ export * from "./preference-controls";
27
27
  export * from "./prompt-status";
28
28
  export * from "./protocol/client-control-contracts";
29
29
  export type { ActiveProviderConnectionKind, ActiveProviderDescriptor } from "./providers";
30
+ export * from "./revision-controls";
30
31
  export * as router from "./router";
31
32
  export * from "./routing-settings";
32
33
  export * from "./session";
@@ -0,0 +1,45 @@
1
+ import type { TurnResultPage } from "./turn-result";
2
+ type AdmissionKind = "prompt" | "skill";
3
+ type Correlation = {
4
+ commandId: string;
5
+ turnId: string;
6
+ };
7
+ type Selector = {
8
+ commandId?: string;
9
+ turnId?: string;
10
+ clientRef?: string;
11
+ };
12
+ /**
13
+ * Makes a client-referenced submission observable between admission and acceptance.
14
+ *
15
+ * A host acknowledges `turn.prompt` only after AgentSession preflight succeeds,
16
+ * and preflight can include a pre-prompt compaction that runs for minutes. A
17
+ * client whose acknowledgement budget expires meanwhile has nothing but its own
18
+ * `clientRef` to reconcile with. Without this ledger `turn.result` answered
19
+ * `unknown` for the whole preflight, so a client could not tell an in-progress
20
+ * submission from a lost one (#7867). The ledger reports `admitted` (with the
21
+ * generated correlation) while preflight runs. Pre-acceptance rejections are not
22
+ * recorded; the clientRef is released so the client can retry (#7872).
23
+ */
24
+ export declare class PreflightAdmissionLedger {
25
+ #private;
26
+ constructor(now?: () => number);
27
+ /** Records the correlation the host generated for an admitted, not yet accepted submission. */
28
+ admitted(kind: AdmissionKind, clientRef: string | undefined, correlation: Correlation): void;
29
+ /** Ends preflight observation. Accepted submissions are reported by the durable record. */
30
+ accepted(kind: AdmissionKind, clientRef: string | undefined): void;
31
+ /**
32
+ * Records or discards a pre-acceptance rejection based on error semantics.
33
+ *
34
+ * Pre-acceptance validation errors (like model_not_selected) are released from
35
+ * pending without recording. These "refusals" never entered meaningful preflight
36
+ * and should allow the same clientRef to be re-submitted immediately.
37
+ *
38
+ * Other preflight errors are recorded as definite rejections so clients can
39
+ * learn that the submission never ran (even if acknowledgement was lost).
40
+ */
41
+ rejected(kind: AdmissionKind, clientRef: string | undefined, cause: unknown): void;
42
+ /** The `turn.result` page for a submission without a durable record, if this ledger knows it. */
43
+ lookup(kind: AdmissionKind, selector: Selector): TurnResultPage | undefined;
44
+ }
45
+ export {};
@@ -12,6 +12,15 @@ export declare class SdkRevisionError extends Error {
12
12
  export interface SdkRevisionRuntimeOptions {
13
13
  sdkRunCapability?: unknown;
14
14
  }
15
+ /** Presentation metadata only; never authority to discover or open a transcript. */
16
+ export interface SdkSessionView {
17
+ sessionId: string;
18
+ leafEntryId: string | null;
19
+ }
20
+ /** Capture only an idle, live cursor. Hosts persist this DTO, not inferred chronology. */
21
+ export declare function captureSessionView(session: AgentSession): SdkSessionView;
22
+ /** Restore only within the supplied live session; never open, fork, append, or select a fallback. */
23
+ export declare function restoreSessionView(session: AgentSession, view: SdkSessionView): Promise<SdkSessionView>;
15
24
  /**
16
25
  * Trusted AgentSession service, not public operation authority. The Broker owns
17
26
  * authorization, lifecycle, and exact-run abort. Reuse the session's native
@@ -10,7 +10,12 @@ export type TurnResultSelector = {
10
10
  commandId: string;
11
11
  turnId: string;
12
12
  };
13
- export type TurnResultStatus = "unknown" | "accepted" | "in_flight" | "terminal_ok" | "failed";
13
+ /**
14
+ * `admitted`: the host reserved the clientRef and generated the correlation, but
15
+ * the submission is still in preflight (for example a pre-prompt compaction) and
16
+ * is neither accepted nor rejected yet.
17
+ */
18
+ export type TurnResultStatus = "unknown" | "admitted" | "accepted" | "in_flight" | "terminal_ok" | "failed";
14
19
  export interface TurnResultContent {
15
20
  version: typeof TURN_RESULT_VERSION;
16
21
  type: "text";
@@ -117,7 +117,7 @@ import type { MCPServerConfig } from "../runtime-mcp/types";
117
117
  import type { NotificationSessionController } from "../sdk/bus/session-control";
118
118
  import { type SecretObfuscator } from "../secrets/obfuscator";
119
119
  import { type DiscoverableTool, type DiscoverableToolSearchIndex } from "../tool-discovery/tool-index";
120
- import type { AskAnswerSource, ToolSession } from "../tools";
120
+ import type { AskAnswerSource, NestedToolScope, ToolSession } from "../tools";
121
121
  import type { CheckpointState } from "../tools/checkpoint";
122
122
  import { type TodoItem, type TodoPhase } from "../tools/todo-write";
123
123
  import { type EditMode } from "../utils/edit-mode";
@@ -1218,8 +1218,14 @@ export declare class AgentSession {
1218
1218
  * Get a tool by name from the registry.
1219
1219
  */
1220
1220
  getToolByName(name: string): AgentTool | undefined;
1221
- /** Get a registered tool with the same guards used for model-facing execution. */
1222
- getToolForExecution(name: string): AgentTool | undefined;
1221
+ /**
1222
+ * Get a registered tool with the same guards used for model-facing execution.
1223
+ * With `nestedToolScope` (a nested call such as eval `tool.<name>()`), the tool
1224
+ * also applies tool-scoped TTSR rules before it runs.
1225
+ */
1226
+ getToolForExecution(name: string, options?: {
1227
+ nestedToolScope?: NestedToolScope;
1228
+ }): AgentTool | undefined;
1223
1229
  /**
1224
1230
  * Register a UI/control-plane request handler for a currently foregrounded
1225
1231
  * managed bash execution. This is intentionally narrower than generic
@@ -1622,7 +1628,10 @@ export declare class AgentSession {
1622
1628
  };
1623
1629
  /** Whether the agent has queued steering messages that a `user_interrupt`
1624
1630
  * abort would resume into (steer-on-interrupt). Drives the Esc-on-steer UX:
1625
- * the first Esc consumes the steer and auto-continues, a second Esc aborts. */
1631
+ * the first Esc consumes the steer and auto-continues, a second Esc aborts.
1632
+ * Steers an interrupted run left unconsumed are re-routed onto the follow-up
1633
+ * queue and still count: with two queued steers, the continuation that
1634
+ * delivers the first leaves the second waiting there. */
1626
1635
  get hasQueuedSteering(): boolean;
1627
1636
  /** Get pending messages (read-only). Returns the public text-only view;
1628
1637
  * internal `{text, tag?}` records are mapped to `.text` so callers
@@ -2378,6 +2387,12 @@ export declare class AgentSession {
2378
2387
  selectedText: string;
2379
2388
  cancelled: boolean;
2380
2389
  }>;
2390
+ /**
2391
+ * Restore an exact runtime cursor, including the empty root. Unlike user tree
2392
+ * navigation this never runs hooks, summarizes, aborts work, or appends entries.
2393
+ * The caller must persist the cursor separately; flush does not persist it.
2394
+ */
2395
+ restoreTreeLeaf(targetId: string | null): Promise<void>;
2381
2396
  /**
2382
2397
  * Navigate to a different node in the session tree.
2383
2398
  * Unlike branch() which creates a new session file, this stays in the same file.
@@ -34,18 +34,12 @@ import type { AsyncJob, FoldReason } from "../async/job-manager";
34
34
  * between sessions.
35
35
  */
36
36
  export declare const FOLD_WAKE_MERGE_WINDOW_MS = 800;
37
- /** The wait kinds that can be folded. `task`/`subagent` awaits are a non-goal. */
38
- export type FoldWaitKind = "bash-managed" | "client-terminal" | "bash-pty" | "job-await";
39
37
  /**
40
- * Whether a wait may be picked as the implicit fold target by the chord and
41
- * the SDK `bash.background` control. A `job-await` watches jobs that are
42
- * already in the background, so "move the foreground bash into a background
43
- * job" has nothing to move; it folds only when the `job` tool's own steer
44
- * watcher names it explicitly. Keeping it out of implicit targeting also stops
45
- * a `job poll` registered after a foreground bash from taking the chord away
46
- * from the command the user is actually watching.
38
+ * The wait kinds that can be folded. `task`/`subagent` awaits are a non-goal,
39
+ * and a `job` await is never folded: its jobs are already in the background,
40
+ * so a steer simply ends that wait early.
47
41
  */
48
- export declare function isImplicitFoldTarget(adapter: FoldAdapter): boolean;
42
+ export type FoldWaitKind = "bash-managed" | "client-terminal" | "bash-pty";
49
43
  /** Outcome of settling the foreground caller. Exactly one party may settle it. */
50
44
  export type ForegroundSettleOutcome = "resolved" | "already-settled";
51
45
  /**
@@ -188,13 +182,9 @@ export declare class FoldCoordinator {
188
182
  constructor(deps: FoldCoordinatorDeps);
189
183
  /** Register a foldable wait. The most recently registered wait is the default target. */
190
184
  registerParticipant(adapter: FoldAdapter): () => void;
191
- /** Whether any implicitly targetable wait is currently foldable, for the key-availability gate. */
185
+ /** Whether any wait is currently foldable, for the key-availability gate. */
192
186
  hasFoldableParticipant(): boolean;
193
- /**
194
- * Deterministic implicit target: newest implicitly targetable registration
195
- * wins, so the chord folds what the user is watching. `job-await` waits are
196
- * skipped; they fold only through an explicit adapter.
197
- */
187
+ /** Deterministic target: newest registration wins, so the chord folds what the user is watching. */
198
188
  resolveTarget(): FoldAdapter | undefined;
199
189
  /**
200
190
  * T1. Synchronous prologue then async durability tail.
@@ -19,7 +19,7 @@ export interface StartupAuthConfigSnapshot {
19
19
  credentialPinStoreIdentity?: string;
20
20
  credentialRankingMode: CredentialRankingMode;
21
21
  credentialPins: Readonly<Record<string, string>>;
22
- /** Ordered soft per-provider preferences; only portable email/`account:` selectors are accepted. */
22
+ /** Ordered soft per-provider preferences; only portable email, `account:`, and `org:<organization-id>` selectors are accepted. */
23
23
  credentialPreferences: Readonly<Record<string, readonly ConfiguredCredentialPreference[]>>;
24
24
  }
25
25
  export type StartupAuthConfigErrorKind = "unreadable" | "invalid-yaml" | "non-mapping-root" | "invalid-auth" | "invalid-broker" | "invalid-gateway" | "invalid-ranking-mode" | "invalid-credential-pins" | "invalid-credential-preferences";
@@ -40,11 +40,12 @@ export declare function getAuthBrokerTokenFilePath(): string;
40
40
  export declare function parsePersistedCredentialSelector(value: string): AuthCredentialSelector | undefined;
41
41
  export declare function isValidPersistedCredentialSelector(value: string): boolean;
42
42
  /** JSON-schema pattern for a preference account; shared with {@link parsePreferenceAccount}. */
43
- export declare const PREFERENCE_ACCOUNT_PATTERN = "^(email:[^@\\s]+@[^@\\s]+|account:\\S+|[^@\\s:]+@[^@\\s]+)$";
43
+ export declare const PREFERENCE_ACCOUNT_PATTERN = "^(email:[^@\\s]+@[^@\\s]+|account:\\S+|org:\\S+|[^@\\s:]+@[^@\\s]+)$";
44
44
  /**
45
- * Parse one `auth.credentialPreferences` account: a bare email, `email:<address>`, or `account:<id>`. Numeric row ids
46
- * are excluded: they are bound to one credential store, and a preference has no store-identity binding to detect a
47
- * retargeted row.
45
+ * Parse one `auth.credentialPreferences` account: a bare email, `email:<address>`, `account:<id>`, or
46
+ * `org:<organization id>` (one login can hold a row per organization, sharing email and account id; display names are
47
+ * not accepted because they are neither unique nor stable). Numeric row ids are excluded: they are bound to one credential store, and a preference has no store-identity binding to
48
+ * detect a retargeted row.
48
49
  */
49
50
  export declare function parsePreferenceAccount(value: string): AuthCredentialSelector | undefined;
50
51
  /** A preference cap accepts (0, 100]; 100 moves past the account only once it is blocked. */
@@ -70,7 +70,7 @@ export declare class EvalTool implements AgentTool<typeof evalSchema> {
70
70
  readonly strict = true;
71
71
  readonly intent: (args: Partial<z.infer<typeof evalSchema>>) => string | undefined;
72
72
  constructor(session: ToolSession | null, options?: EvalToolOptions);
73
- execute(_toolCallId: string, params: z.infer<typeof evalSchema>, signal?: AbortSignal, onUpdate?: AgentToolUpdateCallback, _ctx?: AgentToolContext): Promise<AgentToolResult<EvalToolDetails | undefined>>;
73
+ execute(toolCallId: string, params: z.infer<typeof evalSchema>, signal?: AbortSignal, onUpdate?: AgentToolUpdateCallback, _ctx?: AgentToolContext): Promise<AgentToolResult<EvalToolDetails | undefined>>;
74
74
  }
75
75
  interface EvalRenderCellArg {
76
76
  language?: string;