zidane 5.13.12 → 5.13.13

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/dist/tui.js CHANGED
@@ -1,13 +1,13 @@
1
- import { $ as useMcpAuthDispatch, A as runOAuthLogin, An as bootTick, At as SettingsProvider, B as refreshMcpToolsCatalog, D as formatPathForCwd, Dn as useCompletion, Dt as SETTINGS_CATEGORIES, Er as envSection, Et as DEFAULT_SETTINGS, Ft as resolveChipColor, Gt as DiscoveryProvider, H as subscribeMcpToolsCache, Hn as discoverAgentsMd, It as resolveTheme, J as parentServerName, Jt as ConfigProvider, K as buildVisibleMcpRows, Kt as useDiscovery, M as buildMcpServers, Mn as useUpdateCheck, Mt as useSettings, O as fetchOAuthRedirect, On as tryOpenBrowser, Ot as SETTINGS_CHOICES, P as discoverProjectMcps, Q as McpAuthProvider, Qt as compactSummaryEvent, R as loadMcpToolsCache, Sn as matchesBinding, St as buildHints, T as suggestSafelistEntry, Tr as buildPlanSystem, Tt as useEnabledToggleSet, Vn as chatAutoCompactBehavior, W as useMcpToolToggleMap, Wn as findGitRoot, Wt as createDiscoverySlot, Xt as resolveConfig, Y as createFileMcpCredentialStore, Yt as useConfig, Zn as accentColor, _ as useSafeModeQueue, _n as KEYBINDING_KEY_COL_WIDTH, _t as clipHintsToWidth, a as useSurfaces, an as marginTopFor, b as getSafelist, bn as groupBindings, c as useStreamBuffer, cn as stripSpawnTokensLine, ct as buildResumedToolResultsTurn, d as discoverProjectSkills, dn as toolCallPreview, dt as makeRequestInteraction, en as deriveSessionTitle, et as useMcpAuthState, fn as toolResultText, ft as pendingInteractionsFromTurns, g as useSafeModeActions, gt as EMPTY_HINTS, h as SafeModeProvider, hn as KEYBINDING_DEFS, ht as useInteractionsQueue, i as useSelectStyle, it as splitMarkdownCodeBlocks, j as supportsOAuth, jn as buildUpdateHint, jt as clampFps, k as oauthUsesManualCodePaste, kt as SETTINGS_TOGGLES, l as buildSkillsConfig, ln as sumRunCosts, lt as createInteractionTools, m as writeSessionExport, mt as useInteractionsActions, n as ThemeProvider, nn as lastContextSizeFromTurns, ot as InteractionsProvider, pn as updateToolEventOutcomes, pr as useActiveTodos, q as indexOfServerRow, qt as useDiscoveryOptional, r as useColors, rn as listSessionMeta, rr as TODO_STATUS_GLYPHS, rt as normalizeMarkdownCodeFences, s as useTheme, sn as serverToolResultSummary, t as computeTurnAnchors, tn as eventsFromTurns, tt as getMcpAuthStatus, u as defaultSkillScanPaths, vn as ensureKeybindingsFile, vt as hintsLength, wr as buildBuildSystem, wt as listProjectFiles, x as isOnSafelist, xn as keybindingsPath, xt as generateSessionTitle, y as addToSafelist, yn as formatBindingForDisplay, yt as truncateTrailing } from "./transcript-anchors-C2UkNvZP.js";
1
+ import { $ as useMcpAuthDispatch, A as runOAuthLogin, An as bootTick, At as SettingsProvider, B as refreshMcpToolsCatalog, D as formatPathForCwd, Dn as useCompletion, Dt as SETTINGS_CATEGORIES, Er as envSection, Et as DEFAULT_SETTINGS, Ft as resolveChipColor, Gt as DiscoveryProvider, H as subscribeMcpToolsCache, Hn as discoverAgentsMd, It as resolveTheme, J as parentServerName, Jt as ConfigProvider, K as buildVisibleMcpRows, Kt as useDiscovery, M as buildMcpServers, Mn as useUpdateCheck, Mt as useSettings, O as fetchOAuthRedirect, On as tryOpenBrowser, Ot as SETTINGS_CHOICES, P as discoverProjectMcps, Q as McpAuthProvider, Qt as compactSummaryEvent, R as loadMcpToolsCache, Sn as matchesBinding, St as buildHints, T as suggestSafelistEntry, Tr as buildPlanSystem, Tt as useEnabledToggleSet, Vn as chatAutoCompactBehavior, W as useMcpToolToggleMap, Wn as findGitRoot, Wt as createDiscoverySlot, Xt as resolveConfig, Y as createFileMcpCredentialStore, Yt as useConfig, Zn as accentColor, _ as useSafeModeQueue, _n as KEYBINDING_KEY_COL_WIDTH, _t as clipHintsToWidth, a as useSurfaces, an as marginTopFor, b as getSafelist, bn as groupBindings, c as useStreamBuffer, cn as stripSpawnTokensLine, ct as buildResumedToolResultsTurn, d as discoverProjectSkills, dn as toolCallPreview, dt as makeRequestInteraction, en as deriveSessionTitle, et as useMcpAuthState, fn as toolResultText, ft as pendingInteractionsFromTurns, g as useSafeModeActions, gt as EMPTY_HINTS, h as SafeModeProvider, hn as KEYBINDING_DEFS, ht as useInteractionsQueue, i as useSelectStyle, it as splitMarkdownCodeBlocks, j as supportsOAuth, jn as buildUpdateHint, jt as clampFps, k as oauthUsesManualCodePaste, kt as SETTINGS_TOGGLES, l as buildSkillsConfig, ln as sumRunCosts, lt as createInteractionTools, m as writeSessionExport, mt as useInteractionsActions, n as ThemeProvider, nn as lastContextSizeFromTurns, ot as InteractionsProvider, pn as updateToolEventOutcomes, pr as useActiveTodos, q as indexOfServerRow, qt as useDiscoveryOptional, r as useColors, rn as listSessionMeta, rr as TODO_STATUS_GLYPHS, rt as normalizeMarkdownCodeFences, s as useTheme, sn as serverToolResultSummary, t as computeTurnAnchors, tn as eventsFromTurns, tt as getMcpAuthStatus, u as defaultSkillScanPaths, vn as ensureKeybindingsFile, vt as hintsLength, wr as buildBuildSystem, wt as listProjectFiles, x as isOnSafelist, xn as keybindingsPath, xt as generateSessionTitle, y as addToSafelist, yn as formatBindingForDisplay, yt as truncateTrailing } from "./transcript-anchors-Cn1Unhn-.js";
2
2
  import { M as replaceDynamicSection } from "./messages-U_87Z7GH.js";
3
- import { B as selectFilesFromSession, F as resolveMcpWarningsDir, H as compactConversation, I as resolvePersistDir, L as resolveTasksDir, N as cleanupPersistedSession, R as buildPostCompactAttachments, ct as OUTPUT_RESERVE_TOKENS, d as createAgent, lt as effectiveContextWindow, ot as withTimeout, tt as summaryToTurn } from "./tools-CwwYEeHB.js";
3
+ import { B as selectFilesFromSession, F as resolveMcpWarningsDir, H as compactConversation, I as resolvePersistDir, L as resolveTasksDir, N as cleanupPersistedSession, R as buildPostCompactAttachments, ct as OUTPUT_RESERVE_TOKENS, d as createAgent, lt as effectiveContextWindow, ot as withTimeout, tt as summaryToTurn } from "./tools-BvATiiCO.js";
4
4
  import { a as formatTaskStatus, c as shortId, i as formatDuration, n as compactPath, o as formatTaskSummary, r as fmtTokens, s as previewLine, t as ageString } from "./format-BNOXpl-1.js";
5
5
  import { r as createProcessContext } from "./contexts-DHi8LPCp.js";
6
6
  import { l as errorMessage } from "./errors-BpPfMo_4.js";
7
7
  import { i as sniffImageMediaType } from "./media-sniff-Bn76JxAu.js";
8
8
  import { r as formatTokenUsage, t as effectiveInputFromTurn } from "./stats-DAKBEKjc.js";
9
9
  import { n as connectMcpServers, u as McpOAuthProvider } from "./mcp-2OGi_NQu.js";
10
- import { i as basic_default } from "./presets-ylu1ud2o.js";
10
+ import { i as basic_default } from "./presets-eC4VwuHh.js";
11
11
  import { n as demoteStaleRunningStatus, r as loadSession, t as createSession } from "./session-DQ4bEncf.js";
12
12
  import { n as createLogger, t as consoleSink } from "./logger-Ktm-lj1s.js";
13
13
  import { t as loginMcpServer } from "./login-DE-_d045.js";
package/docs/RESTATE.md CHANGED
@@ -362,6 +362,8 @@ A remote execution context whose `capabilities.detachedTasks` is `'durable'` can
362
362
 
363
363
  3. **`waitBackground` / `wait_task`.** When the model genuinely needs a task's outcome before continuing, the `wait_task` tool delegates to `ExecutionContext.waitBackground` — an injectable seam. In-process contexts park on their own `onExit` machinery; durable hosts implement it as an awakeable park (runner fires task-exit over their bridge → `resolveAwakeable`), so a crashed worker re-attaches to the same wait on replay. `wrapAgentTools({ detachedTasks: 'durable' })` automatically leaves `wait_task` unwrapped — a Restate suspension point must not nest inside a journaled `ctx.run` closure (same rule as `restateAwakeableTool`). Hosts whose wait is journal-safe (e.g. a bridge RPC poll) can re-wrap it explicitly via `restateTool`.
364
364
 
365
+ Because `wait_task` is excluded from journaling its body re-runs on every replay, so on a `'durable'` context it must not branch on an un-journaled read. It therefore skips its "does this task exist?" `listBackground` pre-check and lets `waitBackground`'s own journaled probe decide — an unknown task collapses into the wait's `null` (the timeout result), replay-stable even if the runner's registry changed across attempts (e.g. a restart mid-park). Non-durable contexts keep the precise "no such task" message (no journal to diverge).
366
+
365
367
  `restateWaitBackground` packages the full race-safe choreography (mint the awakeable → register the resumer **before** probing `listBackground` → fast-path if the task already exited → park outside the journal, raced against the durable deadline → settle). The host supplies only persistence callbacks:
366
368
 
367
369
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zidane",
3
- "version": "5.13.12",
3
+ "version": "5.13.13",
4
4
  "description": "an agent that goes straight to the goal",
5
5
  "type": "module",
6
6
  "private": false,