zidane 7.0.16 → 7.0.18
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 -5
- package/dist/{acp-Bw2b_kka.js → acp-BgNj1-gv.js} +4 -4
- package/dist/{acp-Bw2b_kka.js.map → acp-BgNj1-gv.js.map} +1 -1
- package/dist/acp-cli.js +5 -5
- package/dist/acp.d.ts +1 -1
- package/dist/acp.js +1 -1
- package/dist/{agent-B_uQo4f1.js → agent-Djzx-1kD.js} +291 -42
- package/dist/agent-Djzx-1kD.js.map +1 -0
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +1 -1
- package/dist/{anthropic-QbHqqTkV.js → anthropic-D_aMBEj8.js} +88 -5
- package/dist/anthropic-D_aMBEj8.js.map +1 -0
- package/dist/{approvals-B9aIQJRQ.js → approvals-iwgumeES.js} +74 -72
- package/dist/approvals-iwgumeES.js.map +1 -0
- package/dist/{auth-plw6npda.js → auth-UMMUxUhV.js} +5 -5
- package/dist/auth-UMMUxUhV.js.map +1 -0
- package/dist/chat/pure.d.ts +4 -4
- package/dist/chat/pure.js +2 -2
- package/dist/chat.d.ts +6 -6
- package/dist/chat.js +5 -5
- package/dist/contexts/daytona.d.ts +1 -1
- package/dist/contexts/e2b.d.ts +1 -1
- package/dist/daemon-cli.js +1 -1
- package/dist/eval.d.ts +1 -1
- package/dist/eval.js +1 -1
- package/dist/extensions.d.ts +2 -2
- package/dist/extensions.js +2 -2
- package/dist/headless.d.ts +1 -1
- package/dist/headless.js +3 -3
- package/dist/{index-Df2CH6bn.d.ts → index-BWotbLsf.d.ts} +27 -16
- package/dist/index-BWotbLsf.d.ts.map +1 -0
- package/dist/{index-Dc_zYpEu.d.ts → index-BuntpQUB.d.ts} +174 -6
- package/dist/index-BuntpQUB.d.ts.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -8
- package/dist/{ipc-T_pPnHkp.js → ipc-DApbjFms.js} +2 -2
- package/dist/{ipc-T_pPnHkp.js.map → ipc-DApbjFms.js.map} +1 -1
- package/dist/ipc.d.ts +5 -5
- package/dist/ipc.js +3 -3
- package/dist/mcp.d.ts +1 -1
- package/dist/{messages-21XfHxyF.js → messages-aORUmIKe.js} +2 -2
- package/dist/{messages-21XfHxyF.js.map → messages-aORUmIKe.js.map} +1 -1
- package/dist/{openai-compat-DY-AKxCg.js → openai-compat-cIeLSED_.js} +23 -25
- package/dist/openai-compat-cIeLSED_.js.map +1 -0
- package/dist/output/stream-json.d.ts +1 -1
- package/dist/output/terminal.d.ts +1 -1
- package/dist/plugins.d.ts +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/presets.js +1 -1
- package/dist/providers/anthropic.d.ts +2 -2
- package/dist/providers/anthropic.js +2 -2
- package/dist/providers/arcee.d.ts +1 -1
- package/dist/providers/arcee.js +1 -1
- package/dist/providers/baseten.d.ts +1 -1
- package/dist/providers/baseten.js +1 -1
- package/dist/providers/cerebras.d.ts +1 -1
- package/dist/providers/cerebras.js +1 -1
- package/dist/providers/local.d.ts +1 -1
- package/dist/providers/local.js +1 -1
- package/dist/providers/openai-compat.d.ts +1 -1
- package/dist/providers/openai-compat.js +1 -1
- package/dist/providers/openai.d.ts +1 -1
- package/dist/providers/openai.js +2 -2
- package/dist/providers/openrouter.d.ts +1 -1
- package/dist/providers/openrouter.js +1 -1
- package/dist/providers/xai.d.ts +1 -1
- package/dist/providers/xai.js +1 -1
- package/dist/{providers-CoK1rZ1p.js → providers-CTkZSxvp.js} +2 -2
- package/dist/{providers-CoK1rZ1p.js.map → providers-CTkZSxvp.js.map} +1 -1
- package/dist/providers.d.ts +1 -1
- package/dist/providers.js +3 -3
- package/dist/restate.d.ts +1 -1
- package/dist/restate.js +2 -2
- package/dist/{server-DXM8ZbGi.js → server-CAZZIQ_Z.js} +5 -5
- package/dist/{server-DXM8ZbGi.js.map → server-CAZZIQ_Z.js.map} +1 -1
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/{session-DPZnncaQ.js → session-23Stp71-.js} +2 -2
- package/dist/session-23Stp71-.js.map +1 -0
- package/dist/session.d.ts +2 -2
- package/dist/session.js +4 -4
- package/dist/skills.d.ts +1 -1
- package/dist/{tool-formatters-BgdOYAy9.d.ts → tool-formatters-D1WrOONm.d.ts} +2 -2
- package/dist/{tool-formatters-BgdOYAy9.d.ts.map → tool-formatters-D1WrOONm.d.ts.map} +1 -1
- package/dist/tools/fetch-url.d.ts +1 -1
- package/dist/tools/web-search.d.ts +1 -1
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +1 -1
- package/dist/{transcript-anchors-CtnwuQJM.d.ts → transcript-anchors-BaSv0EKt.d.ts} +11 -5
- package/dist/transcript-anchors-BaSv0EKt.d.ts.map +1 -0
- package/dist/tui.d.ts +67 -11
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +3044 -2647
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-khAvr7KJ.d.ts → turn-operations-DOOFW2z-.d.ts} +30 -4
- package/dist/{turn-operations-khAvr7KJ.d.ts.map → turn-operations-DOOFW2z-.d.ts.map} +1 -1
- package/dist/{turn-operations-DkJ1R0p8.js → turn-operations-Dt5L8smX.js} +31 -2
- package/dist/{turn-operations-DkJ1R0p8.js.map → turn-operations-Dt5L8smX.js.map} +1 -1
- package/dist/types-CWgENVLY.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/docs/ARTIFACTS.md +25 -10
- package/docs/CHAT.md +3 -3
- package/docs/EXTENSIONS.md +2 -2
- package/docs/IPC.md +2 -1
- package/docs/README.md +1 -1
- package/docs/SKILL.md +1 -0
- package/docs/TUI.md +8 -3
- package/package.json +1 -1
- package/dist/agent-B_uQo4f1.js.map +0 -1
- package/dist/anthropic-QbHqqTkV.js.map +0 -1
- package/dist/approvals-B9aIQJRQ.js.map +0 -1
- package/dist/auth-plw6npda.js.map +0 -1
- package/dist/index-Dc_zYpEu.d.ts.map +0 -1
- package/dist/index-Df2CH6bn.d.ts.map +0 -1
- package/dist/openai-compat-DY-AKxCg.js.map +0 -1
- package/dist/session-DPZnncaQ.js.map +0 -1
- package/dist/transcript-anchors-CtnwuQJM.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __require } from "./rolldown-runtime-BhDjJH2R.js";
|
|
2
2
|
import { n as THINKING_LEVELS, u as toolResultToText } from "./types-CWgENVLY.js";
|
|
3
|
-
import { A as selectFilesFromSession, Cn as createDebugLog, D as resolveTasksDir, Dt as isSpawnTool, Et as createSpawnTool, G as summaryToTurn, Gt as glob, Ht as listFiles, It as readFile$1,
|
|
3
|
+
import { A as selectFilesFromSession, Cn as createDebugLog, D as resolveTasksDir, Dt as isSpawnTool, Et as createSpawnTool, G as summaryToTurn, Gn as renderArtifactRow, Gt as glob, Ht as listFiles, It as readFile$1, Jt as artifacts_default, Kt as edit, M as compactConversation, Mt as shellKill, O as buildPostCompactAttachments, Pt as shell, Rn as artifactKindLabel, Rt as multiEdit, St as writeFile$1, T as resolvePersistDir, Wt as grep, Xn as effectiveContextWindow, Y as EMPTY_EXTENSION_REGISTRY, Yn as OUTPUT_RESERVE_TOKENS, b as migrateSessionArtifactDirs, f as applyCompactSummaryCutoff, ft as filterRegistryPlugins, ln as readKeybindingsRaw, lt as composeExtensionPreset, on as mergeKeybindings, st as buildExtensionPreset, t as createAgent, un as resolveExtensionKeybindings, vt as composePresets, w as resolveMcpWarningsDir, wt as waitTask, yt as definePreset } from "./agent-Djzx-1kD.js";
|
|
4
4
|
import { F as parseCommandInvocation, M as commandBlocksToContent, P as executeCommand, c as SKILL_EDIT_METADATA_KEY, g as readSkillEditMarker, j as commandBlockToEvent, l as ZIDANE_EXTENSION_SKILL_NAME, m as extensionDirForCwd, s as EXTENSION_EDIT_METADATA_KEY, u as ZIDANE_SKILL_EDIT_SKILL_NAME, v as withZidaneExtensionSkill, w as generateStructuredData, y as withZidaneSkillEditSkill } from "./src-DzzhE2YO.js";
|
|
5
5
|
import { a as formatDuration, c as previewLine, i as fmtTokens, l as shortId, s as formatTaskSummary, t as ageString } from "./format-BF745pLL.js";
|
|
6
6
|
import { r as createProcessContext } from "./contexts-BSFQVclW.js";
|
|
@@ -11,14 +11,14 @@ import { n as defaultPluginDataRoot, p as resolveStorageDirs, r as loadAgentPlug
|
|
|
11
11
|
import { r as createLogger, t as consoleSink } from "./logger--C1VQjwJ.js";
|
|
12
12
|
import { h as McpOAuthProvider, l as normalizeMcpServers, n as connectMcpServers, s as nonOwningMcpView } from "./mcp-BIWa57eY.js";
|
|
13
13
|
import { appendDynamicSection, joinSystemPrompt, splitSystemPrompt } from "./prompt.js";
|
|
14
|
-
import { o as loadSession, t as createSession } from "./session-
|
|
14
|
+
import { o as loadSession, t as createSession } from "./session-23Stp71-.js";
|
|
15
15
|
import { n as flattenTurns, r as formatTokenUsage } from "./stats-DAKBEKjc.js";
|
|
16
16
|
import { i as installCacheBreakLogger } from "./cache-telemetry-ehVdWsg2.js";
|
|
17
17
|
import { i as findActiveTriggers, n as collectReferences, o as mergeSuggestions, t as applyInsert } from "./completion-core-BRo86R_L.js";
|
|
18
18
|
import { r as fetchUrl } from "./fetch-url-ma-5_p0p.js";
|
|
19
19
|
import { webSearch } from "./tools/web-search.js";
|
|
20
|
-
import {
|
|
21
|
-
import { T as restoreModelOptions, b as modelSupportsReasoning, d as BUILTIN_PROVIDERS, f as anthropicDescriptor, g as getContextWindow, h as enabledModelOptions, i as readCredentials, m as credKeyOf, n as applyApiKeyEnv, r as credentialsPath, t as detectAuth, x as modelsForDescriptor } from "./auth-
|
|
20
|
+
import { A as chunkMarkdownForRender, At as MAIN_SESSION_TITLE, Bt as renderSessionEventXml, Ft as artifactsFromTurns, It as isMainSession, J as filterChainFallbacks, Lt as orchestratedBy, Nt as SESSION_ROLE_KEY, Pt as WORKER_REPORT_FRAGMENT, Qt as formatRunReceiptLine, Rt as parseSessionEventXml, St as promptTurnRefs, U as buildRunModel, Ut as sessionEventLabel, _n as mergeApprovalAndBodyOutcomes, bn as rewriteMultiEditHeader, dn as previewEditPayload, et as restoreChainFallbacks, hn as buildEditOutcomesAnnotation, jt as ORCHESTRATED_BY_KEY, kt as MAIN_PLAYBOOK_FRAGMENT, ln as extractEditPayload, m as ownerOf, nn as runReceiptFromRun, tn as hasRunReceipt, u as capTranscriptEvents, vn as parseEditOutcomesFromResult, wn as chatReferenceTokensFromText, xn as stripEditOutcomesAnnotation, yn as resolveApprovalForPayload, zt as renderProjectsBriefing } from "./turn-operations-Dt5L8smX.js";
|
|
21
|
+
import { T as restoreModelOptions, b as modelSupportsReasoning, d as BUILTIN_PROVIDERS, f as anthropicDescriptor, g as getContextWindow, h as enabledModelOptions, i as readCredentials, m as credKeyOf, n as applyApiKeyEnv, r as credentialsPath, t as detectAuth, x as modelsForDescriptor } from "./auth-UMMUxUhV.js";
|
|
22
22
|
import { basename, delimiter, dirname, isAbsolute, join, posix, relative, resolve, sep } from "node:path";
|
|
23
23
|
import { Buffer } from "node:buffer";
|
|
24
24
|
import { chmodSync, closeSync, cpSync, createReadStream, createWriteStream, existsSync, mkdirSync, mkdtempSync, openSync, readFileSync, readSync, readdirSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -2772,27 +2772,6 @@ function pluralizeKind(label, count) {
|
|
|
2772
2772
|
if (count === 1) return lower;
|
|
2773
2773
|
return /(?:s|x|ch|sh)$/.test(lower) ? `${lower}es` : `${lower}s`;
|
|
2774
2774
|
}
|
|
2775
|
-
/**
|
|
2776
|
-
* Markdown for a `/artifacts` transcript note. `title` is the scope line
|
|
2777
|
-
* (`this session`, `project /repo`); rows link when they have an `href`.
|
|
2778
|
-
*/
|
|
2779
|
-
function formatArtifactsMarkdown(artifacts, opts) {
|
|
2780
|
-
const where = opts.scope === "project" ? `project ${opts.projectRoot ?? "(none)"}` : "this session";
|
|
2781
|
-
if (artifacts.length === 0) return `### Artifacts · ${where}\n\n_No artifacts yet. Pull requests, branches, commits and created files appear here as the agent produces them._`;
|
|
2782
|
-
return `### Artifacts · ${where}\n\n${groupArtifacts(artifacts, opts.registry).map((group) => {
|
|
2783
|
-
const lines = group.rows.map(({ artifact, row }) => {
|
|
2784
|
-
const parts = [row.href ? `[${row.title}](${row.href})` : `**${row.title}**`];
|
|
2785
|
-
if (row.status) parts.push(`\`${row.status}\``);
|
|
2786
|
-
if (row.subtitle && row.subtitle !== row.title) parts.push(row.subtitle);
|
|
2787
|
-
if (opts.scope === "project") {
|
|
2788
|
-
const title = opts.sessionTitle?.(artifact.sessionId);
|
|
2789
|
-
parts.push(`_${title ?? artifact.sessionId.slice(0, 8)}_`);
|
|
2790
|
-
}
|
|
2791
|
-
return `- ${parts.join(" · ")}`;
|
|
2792
|
-
});
|
|
2793
|
-
return `**${group.label}${group.rows.length === 1 ? "" : "s"}**\n${lines.join("\n")}`;
|
|
2794
|
-
}).join("\n\n")}`;
|
|
2795
|
-
}
|
|
2796
2775
|
//#endregion
|
|
2797
2776
|
//#region src/chat/auto-compact.ts
|
|
2798
2777
|
/**
|
|
@@ -4210,6 +4189,32 @@ function tryOpenBrowser(url) {
|
|
|
4210
4189
|
child.unref();
|
|
4211
4190
|
} catch {}
|
|
4212
4191
|
}
|
|
4192
|
+
/**
|
|
4193
|
+
* Reveal a local path in the OS file manager: a file is selected inside its
|
|
4194
|
+
* folder (`open -R` on macOS, `explorer /select,` on Windows), a directory is
|
|
4195
|
+
* opened. Linux has no portable "select" — the containing directory opens.
|
|
4196
|
+
* Same fire-and-forget posture as {@link tryOpenBrowser}.
|
|
4197
|
+
*/
|
|
4198
|
+
function tryRevealPath(path, isDirectory = false) {
|
|
4199
|
+
const target = path.replace(/^file:\/\//, "");
|
|
4200
|
+
const [cmd, ...args] = (() => {
|
|
4201
|
+
if (process.platform === "darwin") return isDirectory ? ["open", target] : [
|
|
4202
|
+
"open",
|
|
4203
|
+
"-R",
|
|
4204
|
+
target
|
|
4205
|
+
];
|
|
4206
|
+
if (process.platform === "win32") return isDirectory ? ["explorer", target] : ["explorer", `/select,${target}`];
|
|
4207
|
+
return ["xdg-open", isDirectory ? target : dirname(target)];
|
|
4208
|
+
})();
|
|
4209
|
+
try {
|
|
4210
|
+
const child = spawn(cmd, args, {
|
|
4211
|
+
stdio: "ignore",
|
|
4212
|
+
detached: true
|
|
4213
|
+
});
|
|
4214
|
+
child.on("error", () => {});
|
|
4215
|
+
child.unref();
|
|
4216
|
+
} catch {}
|
|
4217
|
+
}
|
|
4213
4218
|
//#endregion
|
|
4214
4219
|
//#region src/chat/foreign-configs.ts
|
|
4215
4220
|
function roots$1(opts) {
|
|
@@ -5804,7 +5809,7 @@ function resolveConfig(options) {
|
|
|
5804
5809
|
model: options.launch?.model,
|
|
5805
5810
|
thinking: options.launch?.thinking
|
|
5806
5811
|
}) : resumeProvider ? pickInitial(resumeProvider, providers, initialState) : null;
|
|
5807
|
-
const initialAgentId = resolveAgentId(agents,
|
|
5812
|
+
const initialAgentId = resolveAgentId(agents, void 0, options.defaultAgent ?? "build");
|
|
5808
5813
|
if (!initialAgentId) throw new Error("resolveConfig: failed to resolve an initial agent id from a non-empty registry.");
|
|
5809
5814
|
const rawKeybindings = readKeybindingsRaw(paths.userDir);
|
|
5810
5815
|
const keybindings = mergeKeybindings(rawKeybindings);
|
|
@@ -7450,6 +7455,7 @@ const DEFAULT_SETTINGS = {
|
|
|
7450
7455
|
showTodoIndicator: true,
|
|
7451
7456
|
showUsageIndicator: true,
|
|
7452
7457
|
showThrobber: false,
|
|
7458
|
+
artifacts: true,
|
|
7453
7459
|
checkForUpdates: true,
|
|
7454
7460
|
subscriptionUsage: true,
|
|
7455
7461
|
uiMode: "full",
|
|
@@ -7711,6 +7717,12 @@ const SETTINGS_TOGGLES = [
|
|
|
7711
7717
|
label: "Streaming throbber",
|
|
7712
7718
|
description: "animated glyphs under the last message while the agent works"
|
|
7713
7719
|
},
|
|
7720
|
+
{
|
|
7721
|
+
category: "ui",
|
|
7722
|
+
key: "artifacts",
|
|
7723
|
+
label: "Artifacts",
|
|
7724
|
+
description: "track pull requests, branches, commits and recorded files per session"
|
|
7725
|
+
},
|
|
7714
7726
|
{
|
|
7715
7727
|
category: "ui",
|
|
7716
7728
|
key: "fileLogging",
|
|
@@ -9026,7 +9038,7 @@ async function createSessionInStore(store, params) {
|
|
|
9026
9038
|
id,
|
|
9027
9039
|
store,
|
|
9028
9040
|
...projectRoot ? { projectRoot } : {},
|
|
9029
|
-
|
|
9041
|
+
agentId: params.agentId ?? "build"
|
|
9030
9042
|
});
|
|
9031
9043
|
session.setMeta("cwd", params.cwd);
|
|
9032
9044
|
if (params.title) session.setMeta("title", params.title);
|
|
@@ -9069,7 +9081,7 @@ function createBuiltinCommands(opts) {
|
|
|
9069
9081
|
description: "List the available / commands",
|
|
9070
9082
|
run: (ctx) => {
|
|
9071
9083
|
const all = [...opts.getCommands()].sort((a, b) => a.name.localeCompare(b.name));
|
|
9072
|
-
const body = all.length === 0 ? "_No commands are registered._" : all.map((c) => `- **/${c.name}
|
|
9084
|
+
const body = all.length === 0 ? "_No commands are registered._" : all.map((c) => `- **/${c.name}** — ${c.description}`).join("\n");
|
|
9073
9085
|
ctx.emit({ text: `### Commands\n\n${body}` });
|
|
9074
9086
|
}
|
|
9075
9087
|
}];
|
|
@@ -9084,26 +9096,7 @@ function createBuiltinCommands(opts) {
|
|
|
9084
9096
|
detail: { label: "reloading extensions…" }
|
|
9085
9097
|
});
|
|
9086
9098
|
const { active, inactive } = await reload();
|
|
9087
|
-
ctx.emit({ text: `Reloaded
|
|
9088
|
-
}
|
|
9089
|
-
});
|
|
9090
|
-
}
|
|
9091
|
-
if (opts.artifacts) {
|
|
9092
|
-
const artifacts = opts.artifacts;
|
|
9093
|
-
commands.push({
|
|
9094
|
-
name: "artifacts",
|
|
9095
|
-
description: "List what this session produced (pull requests, branches, commits, files). `/artifacts project` covers every session in this project",
|
|
9096
|
-
completeArgs: (prefix) => ["project", "session"].filter((v) => v.startsWith(prefix.trim())).map((value) => ({ value })),
|
|
9097
|
-
run: async (ctx) => {
|
|
9098
|
-
const scope = ctx.argv[0]?.toLowerCase() === "project" ? "project" : "session";
|
|
9099
|
-
if (artifacts.open?.(scope)) return;
|
|
9100
|
-
const rows = await artifacts.list(scope);
|
|
9101
|
-
ctx.emit({ text: formatArtifactsMarkdown(rows, {
|
|
9102
|
-
scope,
|
|
9103
|
-
...artifacts.projectRoot ? { projectRoot: artifacts.projectRoot() } : {},
|
|
9104
|
-
...artifacts.registry ? { registry: artifacts.registry() } : {},
|
|
9105
|
-
...artifacts.sessionTitle ? { sessionTitle: artifacts.sessionTitle } : {}
|
|
9106
|
-
}) });
|
|
9099
|
+
ctx.emit({ text: `Reloaded — **${active}** active${inactive > 0 ? `, ${inactive} inactive` : ""}. Agent-side contributions apply on the next run.` });
|
|
9107
9100
|
}
|
|
9108
9101
|
});
|
|
9109
9102
|
}
|
|
@@ -9259,11 +9252,24 @@ function sessionHostRuntime(run, env, deps) {
|
|
|
9259
9252
|
},
|
|
9260
9253
|
workspaceAvailable: () => true,
|
|
9261
9254
|
artifacts: () => {
|
|
9255
|
+
if (env.readSettings().artifacts === false) return null;
|
|
9262
9256
|
const session = run.agent.session;
|
|
9263
9257
|
return {
|
|
9264
9258
|
store: env.store,
|
|
9265
9259
|
...session ? { sessionId: session.id } : {},
|
|
9266
|
-
...session?.projectRoot ? { projectRoot: session.projectRoot } : {}
|
|
9260
|
+
...session?.projectRoot ? { projectRoot: session.projectRoot } : {},
|
|
9261
|
+
record: async (artifact) => {
|
|
9262
|
+
if (!env.store.upsertArtifact) return null;
|
|
9263
|
+
const stored = await env.store.upsertArtifact(artifact);
|
|
9264
|
+
if (stored) env.broadcast({
|
|
9265
|
+
kind: "artifact:changed",
|
|
9266
|
+
sessionId: stored.sessionId,
|
|
9267
|
+
op: "upsert",
|
|
9268
|
+
artifactId: stored.id,
|
|
9269
|
+
artifact: stored
|
|
9270
|
+
});
|
|
9271
|
+
return stored;
|
|
9272
|
+
}
|
|
9267
9273
|
};
|
|
9268
9274
|
}
|
|
9269
9275
|
};
|
|
@@ -9308,23 +9314,9 @@ function createCommandModule(deps) {
|
|
|
9308
9314
|
* a window attached to the daemon and one running locally resolve the same
|
|
9309
9315
|
* name to the same command.
|
|
9310
9316
|
*/
|
|
9311
|
-
function mergedCommands(extensionCommands
|
|
9317
|
+
function mergedCommands(extensionCommands) {
|
|
9312
9318
|
const merged = [];
|
|
9313
|
-
const builtins = createBuiltinCommands({
|
|
9314
|
-
getCommands: () => merged,
|
|
9315
|
-
artifacts: {
|
|
9316
|
-
list: async (mode) => {
|
|
9317
|
-
if (!env.store.listArtifacts || !scope) return [];
|
|
9318
|
-
if (mode === "project") {
|
|
9319
|
-
const root = scope.session.projectRoot;
|
|
9320
|
-
return root ? env.store.listArtifacts({ projectRoot: root }) : [];
|
|
9321
|
-
}
|
|
9322
|
-
return env.store.listArtifacts({ sessionId: scope.session.id });
|
|
9323
|
-
},
|
|
9324
|
-
projectRoot: () => scope?.session.projectRoot,
|
|
9325
|
-
registry: () => scope?.registry
|
|
9326
|
-
}
|
|
9327
|
-
});
|
|
9319
|
+
const builtins = createBuiltinCommands({ getCommands: () => merged });
|
|
9328
9320
|
const seen = /* @__PURE__ */ new Set();
|
|
9329
9321
|
for (const command of [...extensionCommands, ...builtins]) {
|
|
9330
9322
|
const key = command.name.toLowerCase();
|
|
@@ -9416,10 +9408,7 @@ function createCommandModule(deps) {
|
|
|
9416
9408
|
if (!prompt.startsWith("/")) return { ran: false };
|
|
9417
9409
|
const run = await ensureAgent(opts.sessionId);
|
|
9418
9410
|
const runtimeConfig = await env.runtimeConfig(run.cwd);
|
|
9419
|
-
const commands = mergedCommands(runtimeConfig.extensions.commands
|
|
9420
|
-
session: run.agent.session,
|
|
9421
|
-
registry: runtimeConfig.extensions
|
|
9422
|
-
} : void 0);
|
|
9411
|
+
const commands = mergedCommands(runtimeConfig.extensions.commands);
|
|
9423
9412
|
const invocation = parseCommandInvocation(prompt, commands);
|
|
9424
9413
|
if (!invocation) return { ran: false };
|
|
9425
9414
|
const command = commands.find((c) => c.name === invocation.name);
|
|
@@ -11108,7 +11097,8 @@ function createChatHost(env) {
|
|
|
11108
11097
|
if (!profile) throw new Error("No agent profiles are registered.");
|
|
11109
11098
|
const pluginCatalog = await pluginsForCwd(cwd, runtimeConfig.prefix, runtimeConfig.pluginScanPaths ?? []);
|
|
11110
11099
|
const liveExtensions = filterRegistryPlugins(runtimeConfig.extensions, settings.enabledPlugins, new Set(pluginCatalog.map((p) => p.name)));
|
|
11111
|
-
const
|
|
11100
|
+
const artifactsEnabled = settings.artifacts !== false;
|
|
11101
|
+
const composedPreset = composeExtensionPreset(liveExtensions, artifactsEnabled ? composePresets(artifacts_default, profile.preset) : profile.preset);
|
|
11112
11102
|
const session = await loadSession(store, sessionId) ?? await createSession({
|
|
11113
11103
|
id: sessionId,
|
|
11114
11104
|
agentId: profile.id,
|
|
@@ -11232,6 +11222,7 @@ function createChatHost(env) {
|
|
|
11232
11222
|
name: profile.label,
|
|
11233
11223
|
...system ? { system } : {},
|
|
11234
11224
|
session,
|
|
11225
|
+
artifacts: artifactsEnabled,
|
|
11235
11226
|
execution: createProcessContext({ cwd }),
|
|
11236
11227
|
skills: finalSkills,
|
|
11237
11228
|
mcpServers: dedupByName([
|
|
@@ -11956,6 +11947,17 @@ function createChatHost(env) {
|
|
|
11956
11947
|
refs
|
|
11957
11948
|
});
|
|
11958
11949
|
});
|
|
11950
|
+
agent.hooks.hook("stream:progress", ({ turnId, outputTokens, estimated, elapsedMs, estCostUsd }) => {
|
|
11951
|
+
broadcast({
|
|
11952
|
+
kind: "stream:progress",
|
|
11953
|
+
sessionId,
|
|
11954
|
+
turnId,
|
|
11955
|
+
outputTokens,
|
|
11956
|
+
estimated,
|
|
11957
|
+
elapsedMs,
|
|
11958
|
+
...estCostUsd !== void 0 ? { estCostUsd } : {}
|
|
11959
|
+
});
|
|
11960
|
+
});
|
|
11959
11961
|
agent.hooks.hook("turn:after", (ctx) => {
|
|
11960
11962
|
broadcast({
|
|
11961
11963
|
kind: "turn:end",
|
|
@@ -16467,6 +16469,6 @@ function createApprovalHub(options) {
|
|
|
16467
16469
|
};
|
|
16468
16470
|
}
|
|
16469
16471
|
//#endregion
|
|
16470
|
-
export { supportsOAuth as $, tryOpenBrowser as $n, INTERACTION_GUIDANCE_NO_PROMPTS as $r, runCompaction as $t, useSafeModeQueue as A, createDiscoverySlot as An, DEFAULT_MAX_TODO_ITEMS as Ar, makeRequestInteraction as At, USAGE_CACHE_TTL_MS as B, scoreArtifacts as Bn, isTodoTool as Br, readFileSafe as Bt, resolveSessionExportTarget as C, sumRunCosts as Ci, GRUVBOX_LIGHT as Cn, DEFAULT_AGENT_ID as Cr, InteractionsProvider as Ct, scopeCwd as D, updateToolEventOutcomes as Di, CATPPUCCIN_MOCHA as Dn, accentColor as Dr, createInteractionTools as Dt, resolveSessionCwd as E, toolResultText as Ei, CATPPUCCIN_MACCHIATO as En, PLAN_AGENT as Er, createAutomaticInteractionResponse as Et, matchesSafelistEntry as F, useConfig as Fn, TODO_WRITE_COUNTS_METADATA_KEY as Fr, STALE_RUN_MARKER_MS as Ft, usageChecksOptedOut as G, mcpsWritePath as Gn, setTodosForRun as Gr, modelChainMetadata as Gt, fetchAllProviderUsage as H, countClaudeSessionFiles as Hn, pruneTodosByRun as Hr, serializePreview as Ht, projectsFilePath as I, resolveConfig as In, applyTodosSnapshot as Ir, createChatHost as It, fetchOAuthRedirect as J, buildMcpServers as Jn, ACTIONS_WITH_CARE_DOCTRINE as Jr, buildPluginContributions as Jt, usageSourceFor as K, removeMcpServer as Kn, todoProgressLabel as Kr, sessionModelFallbacks as Kt, readProjects as L, resolveStoragePaths as Ln, createTodoTools as Lr, toTodosSnapshot as Lt, addToSafelist as M, useDiscovery as Mn, TODOS_METADATA_KEY as Mr, serializeInteractionResponse as Mt, getSafelist as N, useDiscoveryOptional as Nn, TODOWRITE_TOOL as Nr, useInteractionsActions as Nt, SafeModeProvider as O, usageByModel as Oi, parseEditorCommand as On, resolveAgentId as Or, isInteractionTool as Ot, isOnSafelist as P, ConfigProvider as Pn, TODO_STATUS_GLYPHS as Pr, useInteractionsQueue as Pt, runOAuthLogin as Q, parseMcpsFile as Qn, INTERACTION_GUIDANCE as Qr, EditOutcomeLedger as Qt, suggestSafelistEntries as R, ARTIFACTS_COMPLETION_PROVIDER_ID as Rn, getArchivedTodosForRun as Rr, createInteractionHub as Rt, renderSession as S, stripSpawnTokensLine as Si, GRUVBOX_DARK as Sn, BUILTIN_AGENTS as Sr, HOST_INTERACTION_ID_PREFIX as St, folderlessCwd as T, toolCallPreview as Ti, CATPPUCCIN_LATTE as Tn, DEFAULT_PERSIST_EXCLUDE_TOOLS as Tr, buildResumedToolResultsTurn as Tt, fetchProviderUsage as U, hasClaudeCodeSetup as Un, sanitizeTodoItems as Ur, createBuiltinCommands as Ut, clearProviderUsageCache as V, useCompletion as Vn, pickActiveRunId as Vr, resolveCwdPath as Vt, providerUsageSupported as W, importFromClaudeCode as Wn, selectActiveTodos as Wr, createMainSession as Wt, redirectUriFromAuthUrl as X, defaultMcpsConfigPaths as Xn, DOING_TASKS_DOCTRINE as Xr, parsePluginScanPathEnv as Xt, normalizeRedirectPaste as Y, dedupMcpServersByName as Yn, COMMUNICATION_DOCTRINE as Yr, discoverProjectPlugins as Yt, oauthUsesManualCodePaste as Z, discoverProjectMcps as Zn, IDENTITY_PREFIX as Zr, attachMcpWarnLog as Zt, buildSpawnEndEvent as _, loadState as _i, BUILTIN_THEMES as _n, groupArtifacts as _r, useMcpAuthState as _t, renderActiveTodoAnchor as a, buildPlanSystem as ai, shortChord as an,
|
|
16472
|
+
export { supportsOAuth as $, tryOpenBrowser as $n, INTERACTION_GUIDANCE_NO_PROMPTS as $r, runCompaction as $t, useSafeModeQueue as A, createDiscoverySlot as An, DEFAULT_MAX_TODO_ITEMS as Ar, makeRequestInteraction as At, USAGE_CACHE_TTL_MS as B, scoreArtifacts as Bn, isTodoTool as Br, readFileSafe as Bt, resolveSessionExportTarget as C, sumRunCosts as Ci, GRUVBOX_LIGHT as Cn, DEFAULT_AGENT_ID as Cr, InteractionsProvider as Ct, scopeCwd as D, updateToolEventOutcomes as Di, CATPPUCCIN_MOCHA as Dn, accentColor as Dr, createInteractionTools as Dt, resolveSessionCwd as E, toolResultText as Ei, CATPPUCCIN_MACCHIATO as En, PLAN_AGENT as Er, createAutomaticInteractionResponse as Et, matchesSafelistEntry as F, useConfig as Fn, TODO_WRITE_COUNTS_METADATA_KEY as Fr, STALE_RUN_MARKER_MS as Ft, usageChecksOptedOut as G, mcpsWritePath as Gn, setTodosForRun as Gr, modelChainMetadata as Gt, fetchAllProviderUsage as H, countClaudeSessionFiles as Hn, pruneTodosByRun as Hr, serializePreview as Ht, projectsFilePath as I, resolveConfig as In, applyTodosSnapshot as Ir, createChatHost as It, fetchOAuthRedirect as J, buildMcpServers as Jn, ACTIONS_WITH_CARE_DOCTRINE as Jr, buildPluginContributions as Jt, usageSourceFor as K, removeMcpServer as Kn, todoProgressLabel as Kr, sessionModelFallbacks as Kt, readProjects as L, resolveStoragePaths as Ln, createTodoTools as Lr, toTodosSnapshot as Lt, addToSafelist as M, useDiscovery as Mn, TODOS_METADATA_KEY as Mr, serializeInteractionResponse as Mt, getSafelist as N, useDiscoveryOptional as Nn, TODOWRITE_TOOL as Nr, useInteractionsActions as Nt, SafeModeProvider as O, usageByModel as Oi, parseEditorCommand as On, resolveAgentId as Or, isInteractionTool as Ot, isOnSafelist as P, ConfigProvider as Pn, TODO_STATUS_GLYPHS as Pr, useInteractionsQueue as Pt, runOAuthLogin as Q, parseMcpsFile as Qn, INTERACTION_GUIDANCE as Qr, EditOutcomeLedger as Qt, suggestSafelistEntries as R, ARTIFACTS_COMPLETION_PROVIDER_ID as Rn, getArchivedTodosForRun as Rr, createInteractionHub as Rt, renderSession as S, stripSpawnTokensLine as Si, GRUVBOX_DARK as Sn, BUILTIN_AGENTS as Sr, HOST_INTERACTION_ID_PREFIX as St, folderlessCwd as T, toolCallPreview as Ti, CATPPUCCIN_LATTE as Tn, DEFAULT_PERSIST_EXCLUDE_TOOLS as Tr, buildResumedToolResultsTurn as Tt, fetchProviderUsage as U, hasClaudeCodeSetup as Un, sanitizeTodoItems as Ur, createBuiltinCommands as Ut, clearProviderUsageCache as V, useCompletion as Vn, pickActiveRunId as Vr, resolveCwdPath as Vt, providerUsageSupported as W, importFromClaudeCode as Wn, selectActiveTodos as Wr, createMainSession as Wt, redirectUriFromAuthUrl as X, defaultMcpsConfigPaths as Xn, DOING_TASKS_DOCTRINE as Xr, parsePluginScanPathEnv as Xt, normalizeRedirectPaste as Y, dedupMcpServersByName as Yn, COMMUNICATION_DOCTRINE as Yr, discoverProjectPlugins as Yt, oauthUsesManualCodePaste as Z, discoverProjectMcps as Zn, IDENTITY_PREFIX as Zr, attachMcpWarnLog as Zt, buildSpawnEndEvent as _, loadState as _i, BUILTIN_THEMES as _n, groupArtifacts as _r, useMcpAuthState as _t, renderActiveTodoAnchor as a, buildPlanSystem as ai, shortChord as an, runUpdateCommand as ar, subscribeMcpToolsCache as at, defaultSkillScanPaths as b, saveState as bi, resolveTheme as bn, renderAgentsMdBlock as br, ASK_USER_TOOL as bt, useSelectStyle as c, createChatTurnsReadTool as ci, DEFAULT_SETTINGS as cn, checkTarballAvailable as cr, useMcpToolToggleSet as ct, useTheme as d, createStateStore as di, SETTINGS_INPUTS as dn, detectPackageManager as dr, parentServerName as dt, PLAN_MODE_DOCTRINE as ei, EMPTY_HINTS as en, tryRevealPath as er, clearMcpToolsCache as et, discoverSystemMd as f, deriveSessionTitle as fi, SETTINGS_TOGGLES as fn, parseSemver as fr, createFileMcpCredentialStore as ft, useStreamBuffer as g, listSessionMeta as gi, useSettings as gn, chatAutoCompactBehavior as gr, useMcpAuthDispatch as gt, userSystemMdPath as h, lastContextSizeFromTurns as hi, enforceSettingsInvariants as hn, resolvePlatformPackage as hr, McpAuthProvider as ht, createActiveTodoAnchorHooks as i, buildBuildSystem as ii, buildHints as in, useUpdateCheck as ir, saveMcpToolsCache as it, IMPLICITLY_SAFE_TOOLS as j, DiscoveryProvider as jn, TODOREAD_TOOL as jr, pendingInteractionsFromTurns as jt, useSafeModeActions as k, quoteForShell as kn, singleAgentRegistry as kr, isModelInteraction as kt, useSurfaces as l, DEFAULT_SESSION_TITLE as li, SETTINGS_CATEGORIES as ln, compareSemver as lr, buildVisibleMcpRows as lt, userScopeOverridesLoad as m, getSessionMeta as mi, clampFps as mn, performSelfUpdate as mr, patchMcpCredential as mt, createMemoryApprovalsStore as n, SUBAGENT_GUIDANCE as ni, hintsLength as nn, bootTick as nr, mcpToolsCachePath as nt, ThemeProvider as o, envSection as oi, listProjectFiles as on, findInstalledCompanion as or, buildToolToggle as ot, renderSystemMdSeed as p, eventsFromTurns as pi, SettingsProvider as pn, performInPlaceSelfUpdate as pr, mcpCredentialsPath as pt, formatPathForCwd as q, upsertMcpServer as qn, useActiveTodos as qr, runEndNotice as qt, computeTurnAnchors as r, TOKEN_DISCIPLINE_DOCTRINE as ri, truncateTrailing as rn, buildUpdateHint as rr, refreshMcpToolsCatalog as rt, useColors as s, chatReferenceTokensForPrompt as si, useEnabledToggleSet as sn, checkForUpdate as sr, useMcpToolToggleMap as st, createApprovalHub as t, PLAN_MODE_DOCTRINE_NO_PROMPTS as ti, clipHintsToWidth as tn, bootProfileEnabled as tr, loadMcpToolsCache as tt, useSyntaxStyles as u, compactSummaryEvent as ui, SETTINGS_CHOICES as un, detectLibc as ur, indexOfServerRow as ut, buildSpawnStartEvent as v, marginTopFor as vi, DEFAULT_THEME as vn, summarizeArtifactCounts as vr, getMcpAuthStatus as vt, writeSessionExport as w, titleFromTurns as wi, CATPPUCCIN_FRAPPE as wn, DEFAULT_BUDGET_EXCLUDE_TOOLS as wr, PRESENT_PLAN_TOOL as wt, discoverProjectSkills as x, serverToolResultSummary as xi, VAPORWAVE_THEME as xn, BUILD_AGENT as xr, AUTOMATIC_INTERACTION_INSTRUCTION as xt, buildSkillsConfig as y, noticeTurnContent as yi, resolveChipColor as yn, discoverAgentsMd as yr, reduceMcpAuth as yt, writeProjects as z, createArtifactsCompletionProvider as zn, getTodosForRun as zr, extractEditPayloadForGate as zt };
|
|
16471
16473
|
|
|
16472
|
-
//# sourceMappingURL=approvals-
|
|
16474
|
+
//# sourceMappingURL=approvals-iwgumeES.js.map
|