zidane 5.13.3 → 5.13.4
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 +3 -3
- package/dist/acp-cli.js +63 -7
- package/dist/acp-cli.js.map +1 -1
- package/dist/{xdg-zlSeVBhQ.js → auth-QA4WuQK5.js} +52 -2
- package/dist/auth-QA4WuQK5.js.map +1 -0
- package/dist/chat.js +2 -2
- package/dist/{transcript-anchors-Cq-8gx8u.js → transcript-anchors-C_ecFvJ2.js} +3 -53
- package/dist/transcript-anchors-C_ecFvJ2.js.map +1 -0
- package/dist/tui.js +2 -2
- package/docs/ACP.md +16 -25
- package/package.json +1 -1
- package/dist/transcript-anchors-Cq-8gx8u.js.map +0 -1
- package/dist/xdg-zlSeVBhQ.js.map +0 -1
package/dist/tui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as useMcpAuthDispatch, A as runOAuthLogin, An as bootTick, At as SettingsProvider, B as refreshMcpToolsCatalog, D as formatPathForCwd, Dn as useCompletion,
|
|
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-C_ecFvJ2.js";
|
|
2
2
|
import { M as replaceDynamicSection } from "./messages-DEsLGBB9.js";
|
|
3
3
|
import { F as resolvePersistDir, I as resolveTasksDir, L as buildPostCompactAttachments, M as cleanupPersistedSession, P as resolveMcpWarningsDir, V as compactConversation, at as withTimeout, ct as effectiveContextWindow, d as createAgent, et as summaryToTurn, st as OUTPUT_RESERVE_TOKENS, z as selectFilesFromSession } from "./tools-DhzKzB1y.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";
|
|
@@ -11,7 +11,7 @@ import { i as basic_default } from "./presets-HDIxliiq.js";
|
|
|
11
11
|
import { n as demoteStaleRunningStatus, r as loadSession, t as createSession } from "./session-BDWZZaYa.js";
|
|
12
12
|
import { n as createLogger, t as consoleSink } from "./logger-Ktm-lj1s.js";
|
|
13
13
|
import { t as loginMcpServer } from "./login-D5rb4IG8.js";
|
|
14
|
-
import { C as
|
|
14
|
+
import { C as piIdOf, c as setProviderCredential, h as getContextWindow, m as enabledModelOptions, t as detectAuth, v as modelOptionsFor, w as restoreModelOptions, y as modelSupportsReasoning } from "./auth-QA4WuQK5.js";
|
|
15
15
|
import { createDockerContext } from "./contexts/docker.js";
|
|
16
16
|
import { createTuiStore } from "./session/sqlite.js";
|
|
17
17
|
import { B as summarizeOutcomes, C as buildContextualDiff, D as extractEditPayload, F as mergeApprovalAndBodyOutcomes, G as createFilesCompletionProvider, H as createSkillsCompletionProvider, I as parseEditOutcomesFromResult, L as resolveApprovalForPayload, N as buildEditOutcomesAnnotation, O as filetypeFromPath, Q as buildLinearRamp, R as rewriteMultiEditHeader, U as uniqueSkillNamesFromReferences, Z as blendHsl, _ as isEditErrorResult, a as TOOL_DISPLAY, b as selectableTurnIds, c as finalizeStreamingMarkdown, d as turnContextSize, f as splitPromptSegments, g as EDIT_TOOL_NAMES, h as indexOfEntry, i as turnAsText, j as summarizeEditPayload, k as previewEditPayload, l as finalizeStreamingMarkdownForOwner, m as filterModelCatalog, n as deleteTurnSafely, o as displayNameFor, p as buildModelCatalog, r as truncateTurnsAt, s as formatToolCall, v as isTurnHighlighted, w as buildUnifiedDiff, x as turnSelectionOwnership, y as isVisible, z as stripEditOutcomesAnnotation } from "./turn-operations-DLWN2J7f.js";
|
package/docs/ACP.md
CHANGED
|
@@ -34,25 +34,16 @@ binary.
|
|
|
34
34
|
"agent_servers": {
|
|
35
35
|
"Zidane": {
|
|
36
36
|
"type": "custom",
|
|
37
|
-
"command": "zidane-acp"
|
|
38
|
-
"args": [
|
|
39
|
-
"--provider",
|
|
40
|
-
"anthropic",
|
|
41
|
-
"--model",
|
|
42
|
-
"claude-sonnet-4-5",
|
|
43
|
-
"--session-db",
|
|
44
|
-
"/Users/you/.zidane/acp-sessions.db"
|
|
45
|
-
],
|
|
46
|
-
"env": {
|
|
47
|
-
"ANTHROPIC_API_KEY": "sk-..."
|
|
48
|
-
}
|
|
37
|
+
"command": "zidane-acp"
|
|
49
38
|
}
|
|
50
39
|
}
|
|
51
40
|
}
|
|
52
41
|
```
|
|
53
42
|
|
|
54
|
-
|
|
55
|
-
Zidane's credential store (see
|
|
43
|
+
With no provider/model flags, `zidane-acp` automatically advertises models for
|
|
44
|
+
providers configured in Zidane's credential store (see
|
|
45
|
+
[Credentials](#credentials)). It also persists ACP sessions to
|
|
46
|
+
`~/.zidane/acp-sessions.db` by default, so Zed can reopen previous threads.
|
|
56
47
|
|
|
57
48
|
For local or OpenAI-compatible providers:
|
|
58
49
|
|
|
@@ -82,10 +73,9 @@ If Zed cannot find `zidane-acp`, use an absolute command path. Zed passes the
|
|
|
82
73
|
workspace `cwd`, additional directories, and configured MCP servers through ACP
|
|
83
74
|
`session/new`; Zidane uses those values for tools and execution contexts.
|
|
84
75
|
|
|
85
|
-
|
|
86
|
-
restarts and asks the agent to `session/load` them
|
|
87
|
-
|
|
88
|
-
threads reopen as `Unknown session`.
|
|
76
|
+
You can override the default session DB with `--session-db <path>`. Zed remembers
|
|
77
|
+
ACP thread IDs across app restarts and asks the agent to `session/load` them
|
|
78
|
+
later; without a persistent database, old threads reopen as `Unknown session`.
|
|
89
79
|
|
|
90
80
|
## Credentials
|
|
91
81
|
|
|
@@ -114,8 +104,10 @@ file) or `ZIDANE_STORAGE_DIR` (data root).
|
|
|
114
104
|
|
|
115
105
|
Modern ACP clients (e.g. Zed) no longer inject their own model list into external
|
|
116
106
|
agents — the agent advertises selectable models through ACP **session config
|
|
117
|
-
options** and the client renders them as a dropdown.
|
|
118
|
-
|
|
107
|
+
options** and the client renders them as a dropdown. By default, `zidane-acp`
|
|
108
|
+
auto-advertises models for providers that are configured in Zidane's credential
|
|
109
|
+
store or environment. You can still pass `--models` and/or `--model-option` to
|
|
110
|
+
curate the list:
|
|
119
111
|
|
|
120
112
|
- `--models claude-sonnet-4-5,claude-opus-4-7` — multiple models served by the
|
|
121
113
|
single `--provider` (shared credentials).
|
|
@@ -124,12 +116,12 @@ pass `--models` and/or `--model-option`:
|
|
|
124
116
|
and only when that model is first selected, so a model you never pick never
|
|
125
117
|
needs a key. Append an optional label: `--model-option openrouter:google/gemini-2.5-pro:Gemini`.
|
|
126
118
|
|
|
127
|
-
The first entry (or `--model` when it matches one) is the
|
|
128
|
-
Switching the model in the client is applied per session via
|
|
119
|
+
The first entry (or `--model` when it matches one in an explicit list) is the
|
|
120
|
+
default selection. Switching the model in the client is applied per session via
|
|
129
121
|
`session/set_config_option`; a switch requested while a prompt is in flight is
|
|
130
122
|
rejected, so switch between turns.
|
|
131
123
|
|
|
132
|
-
Example Zed config
|
|
124
|
+
Example Zed config with a curated Claude/Gemini list:
|
|
133
125
|
|
|
134
126
|
```json
|
|
135
127
|
{
|
|
@@ -139,8 +131,7 @@ Example Zed config offering Claude and Gemini side by side:
|
|
|
139
131
|
"command": "zidane-acp",
|
|
140
132
|
"args": [
|
|
141
133
|
"--model-option", "anthropic:claude-sonnet-4-5:Claude Sonnet",
|
|
142
|
-
"--model-option", "openrouter:google/gemini-2.5-pro:Gemini Pro"
|
|
143
|
-
"--session-db", "/Users/you/.zidane/acp-sessions.db"
|
|
134
|
+
"--model-option", "openrouter:google/gemini-2.5-pro:Gemini Pro"
|
|
144
135
|
],
|
|
145
136
|
"env": {
|
|
146
137
|
"ANTHROPIC_API_KEY": "sk-ant-...",
|