zidane 5.13.2 → 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 +4 -2
- package/dist/acp-cli.js +66 -10
- 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 -17
- 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,23 +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
|
-
],
|
|
44
|
-
"env": {
|
|
45
|
-
"ANTHROPIC_API_KEY": "sk-..."
|
|
46
|
-
}
|
|
37
|
+
"command": "zidane-acp"
|
|
47
38
|
}
|
|
48
39
|
}
|
|
49
40
|
}
|
|
50
41
|
```
|
|
51
42
|
|
|
52
|
-
|
|
53
|
-
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.
|
|
54
47
|
|
|
55
48
|
For local or OpenAI-compatible providers:
|
|
56
49
|
|
|
@@ -80,6 +73,10 @@ If Zed cannot find `zidane-acp`, use an absolute command path. Zed passes the
|
|
|
80
73
|
workspace `cwd`, additional directories, and configured MCP servers through ACP
|
|
81
74
|
`session/new`; Zidane uses those values for tools and execution contexts.
|
|
82
75
|
|
|
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`.
|
|
79
|
+
|
|
83
80
|
## Credentials
|
|
84
81
|
|
|
85
82
|
`zidane-acp` resolves provider credentials the same way the rest of zidane does,
|
|
@@ -107,8 +104,10 @@ file) or `ZIDANE_STORAGE_DIR` (data root).
|
|
|
107
104
|
|
|
108
105
|
Modern ACP clients (e.g. Zed) no longer inject their own model list into external
|
|
109
106
|
agents — the agent advertises selectable models through ACP **session config
|
|
110
|
-
options** and the client renders them as a dropdown.
|
|
111
|
-
|
|
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:
|
|
112
111
|
|
|
113
112
|
- `--models claude-sonnet-4-5,claude-opus-4-7` — multiple models served by the
|
|
114
113
|
single `--provider` (shared credentials).
|
|
@@ -117,12 +116,12 @@ pass `--models` and/or `--model-option`:
|
|
|
117
116
|
and only when that model is first selected, so a model you never pick never
|
|
118
117
|
needs a key. Append an optional label: `--model-option openrouter:google/gemini-2.5-pro:Gemini`.
|
|
119
118
|
|
|
120
|
-
The first entry (or `--model` when it matches one) is the
|
|
121
|
-
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
|
|
122
121
|
`session/set_config_option`; a switch requested while a prompt is in flight is
|
|
123
122
|
rejected, so switch between turns.
|
|
124
123
|
|
|
125
|
-
Example Zed config
|
|
124
|
+
Example Zed config with a curated Claude/Gemini list:
|
|
126
125
|
|
|
127
126
|
```json
|
|
128
127
|
{
|