@zerowall/dsh-claude-coderun 0.0.0-stage → 0.1.0-preview.1
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/LICENSE +21 -0
- package/README.i18n.yaml +16 -0
- package/README.md +23 -2
- package/README.zh.md +24 -0
- package/dsh.bundle.patch.yml +23 -0
- package/lib/client.js +17823 -0
- package/lib/index.js +3752 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +1938 -0
- package/lib/typert.remote-client.d.ts +101 -0
- package/lib/typert.remote-client.d.ts.map +1 -0
- package/lib/typert.remote-client.js +1327 -0
- package/lib/types/client/ClaudeCodeAction.d.ts +13 -0
- package/lib/types/client/ClaudeCodeSettingsSection.d.ts +7 -0
- package/lib/types/client/ClaudePermissionSelect.d.ts +11 -0
- package/lib/types/client/ClaudeStats.d.ts +17 -0
- package/lib/types/client/ClaudeTranscript.d.ts +22 -0
- package/lib/types/client/index.d.ts +1 -0
- package/lib/types/client/locales.d.ts +243 -0
- package/lib/types/client/upstream/GlobalSettingControls.d.ts +39 -0
- package/lib/types/client/upstream/markdown-theme.d.ts +42 -0
- package/lib/types/client/upstream/settings-styles.d.ts +42 -0
- package/lib/types/client/view.d.ts +9 -0
- package/lib/types/host/claude-commands.d.ts +19 -0
- package/lib/types/host/claude-settings.d.ts +19 -0
- package/lib/types/host/cli.d.ts +24 -0
- package/lib/types/host/diagnostic.d.ts +2 -0
- package/lib/types/host/environment.d.ts +2 -0
- package/lib/types/host/index.d.ts +78 -0
- package/lib/types/host/mcp-launcher.d.ts +16 -0
- package/lib/types/host/metrics-projection.d.ts +250 -0
- package/lib/types/host/metrics.d.ts +16 -0
- package/lib/types/host/permission-mode.d.ts +62 -0
- package/lib/types/host/projection.d.ts +125 -0
- package/lib/types/host/resource-status.d.ts +8 -0
- package/lib/types/host/route.d.ts +52 -0
- package/lib/types/host/runtime.d.ts +80 -0
- package/lib/types/host/sdk-driver.d.ts +29 -0
- package/lib/types/host/session-binding.d.ts +25 -0
- package/lib/types/host/subagent-tool.d.ts +6 -0
- package/lib/types/host/tool-journal.d.ts +13 -0
- package/lib/types/shared/metrics.d.ts +57 -0
- package/lib/types/shared/records.d.ts +33 -0
- package/lib/types/shared/types.d.ts +262 -0
- package/lib/types.js +18 -0
- package/locale/en.json +7 -0
- package/locale/zh.json +7 -0
- package/migration-reference.md +67 -0
- package/package.json +252 -3
- package/plugin-detail.md +11 -0
- package/plugin-detail.zh.md +11 -0
- package/zerowall.plugin.json +65 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { InjectFace, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
|
|
2
|
+
import type { ClaudeCodeStatus, ClaudeCodeTurn } from '../shared/types.js';
|
|
3
|
+
export interface ClaudeCodeActionInjected {
|
|
4
|
+
getStatus: () => Promise<ClaudeCodeStatus>;
|
|
5
|
+
read: () => Promise<ClaudeCodeTurn | null>;
|
|
6
|
+
stop: () => Promise<void>;
|
|
7
|
+
install: () => Promise<ClaudeCodeStatus>;
|
|
8
|
+
rollback: () => Promise<ClaudeCodeStatus>;
|
|
9
|
+
uninstall: () => Promise<ClaudeCodeStatus>;
|
|
10
|
+
clear: () => Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
export type ClaudeCodeActionProps = PropsRuntime<'conversation.session.header.actions'> & InjectFace<ClaudeCodeActionInjected>;
|
|
13
|
+
export declare function ClaudeCodeAction(props: ClaudeCodeActionProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { InjectFace, PropsLocale } from '@deepseek-ai/dsh-client-ui-slots';
|
|
3
|
+
import type { ClaudeCodeSettingsApi, ClaudeGlobalSettingsView } from '../shared/types.js';
|
|
4
|
+
import { CLAUDE_NS } from './locales.js';
|
|
5
|
+
export type ClaudeCodeSettingsSectionProps = PropsLocale<typeof CLAUDE_NS> & InjectFace<ClaudeCodeSettingsApi>;
|
|
6
|
+
export declare function isGlobalSettingsView(value: unknown): value is ClaudeGlobalSettingsView;
|
|
7
|
+
export declare function ClaudeCodeSettingsSection(props: ClaudeCodeSettingsSectionProps): React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
|
|
2
|
+
import type { ClaudePermissionView } from '../shared/types.js';
|
|
3
|
+
import { CLAUDE_NS } from './locales.js';
|
|
4
|
+
export interface ClaudePermissionSelectInjected {
|
|
5
|
+
loadPermission(): Promise<ClaudePermissionView>;
|
|
6
|
+
selectPermission(value: string): Promise<ClaudePermissionView>;
|
|
7
|
+
}
|
|
8
|
+
type Props = PropsRuntime<'conversation.input.permission'> & ClaudePermissionSelectInjected & PropsLocale<typeof CLAUDE_NS>;
|
|
9
|
+
/** One composer surface; ordinary sessions keep the canonical Host preset writer. */
|
|
10
|
+
export declare function ClaudePermissionSelect({ loadPermission, selectPermission, locked, t }: Props): import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
2
|
+
import { type ClaudeMetrics } from '../shared/metrics.js';
|
|
3
|
+
import { type zh } from './locales.js';
|
|
4
|
+
type Translate = (key: keyof typeof zh, args?: Record<string, string | number>) => string;
|
|
5
|
+
type Kind = 'activity' | 'usage' | 'context';
|
|
6
|
+
export declare const compactTokens: (value: number) => string;
|
|
7
|
+
export declare function cachePercent(read: number, input: number): string;
|
|
8
|
+
export declare function ClaudeStatsPart({ kind, metrics, mode, toolMs, t }: {
|
|
9
|
+
kind: Kind;
|
|
10
|
+
metrics: ClaudeMetrics | undefined;
|
|
11
|
+
mode: 'compact' | 'detailed';
|
|
12
|
+
toolMs?: number;
|
|
13
|
+
t: Translate;
|
|
14
|
+
}): import("react").JSX.Element | null;
|
|
15
|
+
/** Shadow individual pills through the public slot contract; never mutate DSH components. */
|
|
16
|
+
export declare function registerClaudeStats(ctx: Context): void;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { InjectFace, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
|
|
2
|
+
import type { ConversationNodeDefinition } from '@deepseek-ai/dsh-client-ui-conversation/client';
|
|
3
|
+
import type { ClaudeTranscript as Transcript } from '../shared/types.js';
|
|
4
|
+
interface TranscriptMarker {
|
|
5
|
+
turn: number;
|
|
6
|
+
step: number;
|
|
7
|
+
}
|
|
8
|
+
declare module '@deepseek-ai/dsh-client-ui-chat/client' {
|
|
9
|
+
interface ChatNodeDataMap {
|
|
10
|
+
'zerowall-claude-transcript': TranscriptMarker;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
/** Same sidecar-backed node pattern as pinned dsh-claude conversation-sidecar. */
|
|
14
|
+
export declare const claudeTranscriptDefinition: ConversationNodeDefinition<TranscriptMarker & {
|
|
15
|
+
seq: number;
|
|
16
|
+
}>;
|
|
17
|
+
export interface ClaudeTranscriptInjected {
|
|
18
|
+
readTranscript(turn: number, step: number): Promise<Transcript | null>;
|
|
19
|
+
}
|
|
20
|
+
type Props = PropsRuntime<'conversation.chat.node', 'zerowall-claude-transcript'> & InjectFace<ClaudeTranscriptInjected>;
|
|
21
|
+
export declare function ClaudeTranscriptNode({ node, readTranscript }: Props): import("react").JSX.Element | null;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './view.js';
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
export declare const CLAUDE_NS = "zerowall.claude-code";
|
|
2
|
+
export declare const zh: {
|
|
3
|
+
readonly metricsCounts: "{turns} 轮 {steps} 步";
|
|
4
|
+
readonly metricsSeconds: "{value} 秒";
|
|
5
|
+
readonly metricsActivity: "Claude 会话统计";
|
|
6
|
+
readonly metricsModelTime: "模型响应用时";
|
|
7
|
+
readonly metricsToolTime: "工具调用用时";
|
|
8
|
+
readonly metricsSpeed: "输出速度(TPS)";
|
|
9
|
+
readonly metricsCache: "缓存命中 {percent}%";
|
|
10
|
+
readonly metricsUsage: "Claude Token 用量";
|
|
11
|
+
readonly metricsTotal: "总 Token";
|
|
12
|
+
readonly metricsConfirmed: "{value} tok(部分)";
|
|
13
|
+
readonly metricsInput: "非缓存输入";
|
|
14
|
+
readonly metricsOutput: "输出(含思考)";
|
|
15
|
+
readonly metricsCacheRead: "缓存读取";
|
|
16
|
+
readonly metricsCacheWrite: "缓存写入";
|
|
17
|
+
readonly metricsScope: "包含主代理、内部子代理和压缩等 SDK 模型调用;从本次插件更新后开始统计。";
|
|
18
|
+
readonly metricsIncomplete: "尚未完整结算,仅保留已收到的实际用量。";
|
|
19
|
+
readonly metricsContext: "最近请求上下文";
|
|
20
|
+
readonly metricsContextTokens: "已用 / 容量";
|
|
21
|
+
readonly metricsModel: "模型";
|
|
22
|
+
readonly title: "Claude Code";
|
|
23
|
+
readonly nav: "Claude Code";
|
|
24
|
+
readonly description: "管理 ZeroWall Desktop 内置的独立 Claude Code CLI 运行环境。";
|
|
25
|
+
readonly status: "状态";
|
|
26
|
+
readonly desktopOnly: "仅 ZeroWall Desktop 支持";
|
|
27
|
+
readonly installed: "已安装";
|
|
28
|
+
readonly notInstalled: "尚未安装";
|
|
29
|
+
readonly running: "运行中";
|
|
30
|
+
readonly ready: "已就绪";
|
|
31
|
+
readonly path: "应用安装路径";
|
|
32
|
+
readonly pathUnavailable: "安装后显示应用托管的 Claude CLI 路径。";
|
|
33
|
+
readonly install: "安装 CLI";
|
|
34
|
+
readonly update: "更新 CLI";
|
|
35
|
+
readonly rollback: "回滚";
|
|
36
|
+
readonly uninstall: "卸载 CLI";
|
|
37
|
+
readonly unavailable: "Claude Code 设置服务暂不可用。";
|
|
38
|
+
readonly busy: "Claude Code 正在运行,请先停止当前任务。";
|
|
39
|
+
readonly uninstallConfirm: "卸载应用托管的 Claude Code 运行环境?";
|
|
40
|
+
readonly operationFailed: "Claude Code 安装管理未完成,请重试。";
|
|
41
|
+
readonly settingsSaveFailed: "Claude 设置保存失败,请重试。";
|
|
42
|
+
readonly refreshDiagnostics: "刷新诊断";
|
|
43
|
+
readonly note: "此处管理的是应用内独立运行时,不会读取或修改系统 PATH 中的 Claude 安装。";
|
|
44
|
+
readonly runtimeTitle: "Claude 运行时与诊断";
|
|
45
|
+
readonly runtimeDescription: "检查托管 CLI 的安装状态、版本和运行路径。";
|
|
46
|
+
readonly runtimeVersion: "CLI 版本";
|
|
47
|
+
readonly unknown: "未知";
|
|
48
|
+
readonly globalSettings: "Claude 全局设置";
|
|
49
|
+
readonly globalSettingsDescription: "设置风格、权限、输出呈现和 ZeroWall 托管进程行为。每项显示其生效时机。";
|
|
50
|
+
readonly globalSettingsLoading: "正在读取 Claude 设置…";
|
|
51
|
+
readonly setting_outputStyle: "输出风格";
|
|
52
|
+
readonly setting_permissionSelector: "权限选择器";
|
|
53
|
+
readonly setting_permissionMode: "新会话默认权限模式";
|
|
54
|
+
readonly setting_renderer: "AI 输出渲染器";
|
|
55
|
+
readonly setting_prose: "表达模式";
|
|
56
|
+
readonly setting_maxProcesses: "最大并发 Claude 进程";
|
|
57
|
+
readonly setting_contextWindow: "模型上下文容量";
|
|
58
|
+
readonly setting_autoCompactWindow: "自动压缩窗口";
|
|
59
|
+
readonly setting_promptCacheTtl: "主对话 Prompt Cache";
|
|
60
|
+
readonly setting_subagentPromptCacheTtl: "子代理 Prompt Cache";
|
|
61
|
+
readonly settingHint_outputStyle: "应用于新会话。仅显示托管运行时的内置或用户输出风格。";
|
|
62
|
+
readonly settingHint_permissionSelector: "立即切换 Claude 插件权限选择器或 ZeroWall 原生权限控制。";
|
|
63
|
+
readonly settingHint_permissionMode: "在权限选择器使用插件模式时,新 Claude 会话默认使用此模式。";
|
|
64
|
+
readonly settingHint_renderer: "下一轮开始时切换由插件活动面板或 ZeroWall 原生消息渲染输出。";
|
|
65
|
+
readonly settingHint_prose: "立即调整 Claude 输出的文本呈现风格。";
|
|
66
|
+
readonly settingHint_maxProcesses: "并发会话上限;每个 Claude 对话任务单独启动进程。";
|
|
67
|
+
readonly settingHint_contextWindow: "常用下拉或自定义正整数 token 数;auto 使用模型默认容量。自定义容量仅适用于未识别的网关模型;官方模型请通过自动压缩窗口设置边界。";
|
|
68
|
+
readonly settingHint_autoCompactWindow: "输入 100000–1000000 tokens;留空使用 SDK 默认值。Claude Code 自动压缩保持开启,窗口在模型容量内生效。";
|
|
69
|
+
readonly numericInputInvalid: "请输入范围内的整数 token 数,或清空以恢复 auto。";
|
|
70
|
+
readonly numericPresets: "常用值";
|
|
71
|
+
readonly numericCustom: "自定义";
|
|
72
|
+
readonly settingHint_promptCacheTtl: "主对话缓存保留时间;1 小时缓存写入成本更高。";
|
|
73
|
+
readonly settingHint_subagentPromptCacheTtl: "子代理和后台任务的缓存保留时间;1 小时缓存写入成本更高。";
|
|
74
|
+
readonly effectiveSetting: "请求值 {requested} · 有效值 {effective} · 来源 {source}";
|
|
75
|
+
readonly source_auto: "自动";
|
|
76
|
+
readonly source_explicit: "用户设置";
|
|
77
|
+
readonly source_external: "环境变量";
|
|
78
|
+
readonly source_clamped: "已按模型限制";
|
|
79
|
+
readonly source_unsupported: "模型不支持";
|
|
80
|
+
readonly settingEffect: "生效时机:{effect}";
|
|
81
|
+
readonly effect_immediate: "立即";
|
|
82
|
+
readonly effect_newSession: "新会话";
|
|
83
|
+
readonly effect_nextTurn: "下一轮";
|
|
84
|
+
readonly effect_nextWorktree: "下一次创建 Worktree";
|
|
85
|
+
readonly effect_restart: "重启后";
|
|
86
|
+
readonly settingOption_permissionSelector_plugin: "Claude 插件控制";
|
|
87
|
+
readonly settingOption_permissionSelector_native: "ZeroWall 原生控制";
|
|
88
|
+
readonly settingOption_permissionMode_plan: "计划模式";
|
|
89
|
+
readonly settingOption_permissionMode_default: "默认";
|
|
90
|
+
readonly settingOption_permissionMode_acceptEdits: "允许编辑";
|
|
91
|
+
readonly settingOption_permissionMode_dontAsk: "不询问";
|
|
92
|
+
readonly settingOption_permissionMode_auto: "自动";
|
|
93
|
+
readonly settingOption_permissionMode_bypassPermissions: "跳过权限检查";
|
|
94
|
+
readonly permissionClaude: "Claude 会话权限";
|
|
95
|
+
readonly permissionNative: "ZeroWall 会话权限";
|
|
96
|
+
readonly permissionLoading: "权限加载中";
|
|
97
|
+
readonly permissionCustom: "自定义权限";
|
|
98
|
+
readonly permissionReadOnly: "仅可查看";
|
|
99
|
+
readonly permissionWorkspaceWrite: "工作区内修改";
|
|
100
|
+
readonly permissionFullAccess: "完全权限";
|
|
101
|
+
readonly permissionAutoReview: "自动审查";
|
|
102
|
+
readonly permissionLoadFailed: "无法读取会话权限,请重试。";
|
|
103
|
+
readonly permissionSaveFailed: "权限切换失败,请检查当前会话状态。";
|
|
104
|
+
readonly permissionConfirm: "启用该权限将允许更广泛的文件或工具操作。确认对当前会话启用?";
|
|
105
|
+
readonly permissionDiagnostics: "控制来源:{source};Host:{sandbox} / {approval};Claude 当前模式:{mode}";
|
|
106
|
+
readonly permissionNextTurn: ";下一轮:{mode}";
|
|
107
|
+
readonly settingOption_renderer_plugin: "Claude 活动面板";
|
|
108
|
+
readonly settingOption_renderer_native: "ZeroWall 原生消息";
|
|
109
|
+
readonly settingOption_prose_plain: "标准";
|
|
110
|
+
readonly settingOption_prose_enhanced: "增强";
|
|
111
|
+
readonly nativeSettings: "Claude 原生设置";
|
|
112
|
+
readonly nativeSettingsDescription: "复用 Claude Code settings.json,设置仅写入 ZeroWall 托管运行时。";
|
|
113
|
+
readonly outputStyle: "输出风格";
|
|
114
|
+
readonly permissionSelector: "权限选择器";
|
|
115
|
+
readonly permissionMode: "权限模式";
|
|
116
|
+
readonly renderer: "渲染器";
|
|
117
|
+
readonly prose: "表达模式";
|
|
118
|
+
readonly maxProcesses: "最大并发进程";
|
|
119
|
+
};
|
|
120
|
+
export declare const en: {
|
|
121
|
+
readonly metricsCounts: "{turns} turns {steps} steps";
|
|
122
|
+
readonly metricsSeconds: "{value} s";
|
|
123
|
+
readonly metricsActivity: "Claude session statistics";
|
|
124
|
+
readonly metricsModelTime: "Model response time";
|
|
125
|
+
readonly metricsToolTime: "Tool execution time";
|
|
126
|
+
readonly metricsSpeed: "Output speed (TPS)";
|
|
127
|
+
readonly metricsCache: "Cache hit {percent}%";
|
|
128
|
+
readonly metricsUsage: "Claude token usage";
|
|
129
|
+
readonly metricsTotal: "Total tokens";
|
|
130
|
+
readonly metricsConfirmed: "{value} tok (partial)";
|
|
131
|
+
readonly metricsInput: "Uncached input";
|
|
132
|
+
readonly metricsOutput: "Output (including thinking)";
|
|
133
|
+
readonly metricsCacheRead: "Cache reads";
|
|
134
|
+
readonly metricsCacheWrite: "Cache writes";
|
|
135
|
+
readonly metricsScope: "Includes main-agent, internal subagent and compaction SDK calls; counted since this plugin update.";
|
|
136
|
+
readonly metricsIncomplete: "Not fully settled; only reported usage is retained.";
|
|
137
|
+
readonly metricsContext: "Latest request context";
|
|
138
|
+
readonly metricsContextTokens: "Used / capacity";
|
|
139
|
+
readonly metricsModel: "Model";
|
|
140
|
+
readonly title: "Claude Code";
|
|
141
|
+
readonly nav: "Claude Code";
|
|
142
|
+
readonly description: "Manage the application-managed Claude Code CLI runtime for ZeroWall Desktop.";
|
|
143
|
+
readonly status: "Status";
|
|
144
|
+
readonly desktopOnly: "Supported only in ZeroWall Desktop";
|
|
145
|
+
readonly installed: "Installed";
|
|
146
|
+
readonly notInstalled: "Not installed";
|
|
147
|
+
readonly running: "Running";
|
|
148
|
+
readonly ready: "Ready";
|
|
149
|
+
readonly path: "Application install path";
|
|
150
|
+
readonly pathUnavailable: "The application-managed Claude CLI path appears after installation.";
|
|
151
|
+
readonly install: "Install CLI";
|
|
152
|
+
readonly update: "Update CLI";
|
|
153
|
+
readonly rollback: "Rollback";
|
|
154
|
+
readonly uninstall: "Uninstall CLI";
|
|
155
|
+
readonly unavailable: "Claude Code settings service is unavailable.";
|
|
156
|
+
readonly busy: "Claude Code is running. Stop the current task first.";
|
|
157
|
+
readonly uninstallConfirm: "Uninstall the application-managed Claude Code runtime?";
|
|
158
|
+
readonly operationFailed: "Claude Code installation management did not complete. Try again.";
|
|
159
|
+
readonly settingsSaveFailed: "Claude settings could not be saved. Try again.";
|
|
160
|
+
readonly refreshDiagnostics: "Refresh diagnostics";
|
|
161
|
+
readonly note: "This manages the application-managed runtime and does not read or change a Claude installation on PATH.";
|
|
162
|
+
readonly runtimeTitle: "Claude runtime and diagnostics";
|
|
163
|
+
readonly runtimeDescription: "Check the managed CLI installation, version, and executable path.";
|
|
164
|
+
readonly runtimeVersion: "CLI version";
|
|
165
|
+
readonly unknown: "Unknown";
|
|
166
|
+
readonly globalSettings: "Claude global settings";
|
|
167
|
+
readonly globalSettingsDescription: "Configure output style, permissions, rendering, and ZeroWall managed process behavior. Each setting shows when it takes effect.";
|
|
168
|
+
readonly globalSettingsLoading: "Loading Claude settings…";
|
|
169
|
+
readonly setting_outputStyle: "Output style";
|
|
170
|
+
readonly setting_permissionSelector: "Permission selector";
|
|
171
|
+
readonly setting_permissionMode: "Default permission mode for new sessions";
|
|
172
|
+
readonly setting_renderer: "AI output renderer";
|
|
173
|
+
readonly setting_prose: "Prose mode";
|
|
174
|
+
readonly setting_maxProcesses: "Maximum concurrent Claude processes";
|
|
175
|
+
readonly setting_contextWindow: "Model context capacity";
|
|
176
|
+
readonly setting_autoCompactWindow: "Automatic compaction window";
|
|
177
|
+
readonly setting_promptCacheTtl: "Main prompt cache TTL";
|
|
178
|
+
readonly setting_subagentPromptCacheTtl: "Subagent prompt cache TTL";
|
|
179
|
+
readonly settingHint_outputStyle: "Applies to new sessions. Only built-in or user output styles in the managed runtime are listed.";
|
|
180
|
+
readonly settingHint_permissionSelector: "Immediately switch between the Claude plugin selector and ZeroWall native permission control.";
|
|
181
|
+
readonly settingHint_permissionMode: "New Claude sessions use this mode when the plugin permission selector is active.";
|
|
182
|
+
readonly settingHint_renderer: "Switch between the plugin activity panel and ZeroWall native message renderer on the next turn.";
|
|
183
|
+
readonly settingHint_prose: "Immediately adjust how Claude prose is presented.";
|
|
184
|
+
readonly settingHint_maxProcesses: "Maximum concurrent sessions; each Claude conversation task launches its own process.";
|
|
185
|
+
readonly settingHint_contextWindow: "Choose a preset or enter a positive token count; auto uses the model default. Capacity overrides apply only to unrecognized gateway models. Use the compaction window to set a boundary for recognized models.";
|
|
186
|
+
readonly settingHint_autoCompactWindow: "Enter 100000–1000000 tokens; clear the field to use the SDK default. Claude Code automatic compaction stays enabled, within the model capacity.";
|
|
187
|
+
readonly numericInputInvalid: "Enter a whole number in range, or clear the field to restore auto.";
|
|
188
|
+
readonly numericPresets: "Presets";
|
|
189
|
+
readonly numericCustom: "Custom";
|
|
190
|
+
readonly settingHint_promptCacheTtl: "Main conversation prompt-cache retention; one-hour cache writes cost more.";
|
|
191
|
+
readonly settingHint_subagentPromptCacheTtl: "Prompt-cache retention for subagents and background tasks; one-hour cache writes cost more.";
|
|
192
|
+
readonly effectiveSetting: "Requested {requested} · effective {effective} · source {source}";
|
|
193
|
+
readonly source_auto: "automatic";
|
|
194
|
+
readonly source_explicit: "user setting";
|
|
195
|
+
readonly source_external: "environment variable";
|
|
196
|
+
readonly source_clamped: "clamped to model limit";
|
|
197
|
+
readonly source_unsupported: "unsupported by model";
|
|
198
|
+
readonly settingEffect: "Takes effect: {effect}";
|
|
199
|
+
readonly effect_immediate: "Immediately";
|
|
200
|
+
readonly effect_newSession: "New session";
|
|
201
|
+
readonly effect_nextTurn: "Next turn";
|
|
202
|
+
readonly effect_nextWorktree: "Next Worktree creation";
|
|
203
|
+
readonly effect_restart: "After restart";
|
|
204
|
+
readonly settingOption_permissionSelector_plugin: "Claude plugin control";
|
|
205
|
+
readonly settingOption_permissionSelector_native: "ZeroWall native control";
|
|
206
|
+
readonly settingOption_permissionMode_plan: "Plan";
|
|
207
|
+
readonly settingOption_permissionMode_default: "Default";
|
|
208
|
+
readonly settingOption_permissionMode_acceptEdits: "Accept edits";
|
|
209
|
+
readonly settingOption_permissionMode_dontAsk: "Don’t ask";
|
|
210
|
+
readonly settingOption_permissionMode_auto: "Auto";
|
|
211
|
+
readonly settingOption_permissionMode_bypassPermissions: "Bypass permissions";
|
|
212
|
+
readonly permissionClaude: "Claude session permissions";
|
|
213
|
+
readonly permissionNative: "ZeroWall session permissions";
|
|
214
|
+
readonly permissionLoading: "Loading permissions";
|
|
215
|
+
readonly permissionCustom: "Custom permissions";
|
|
216
|
+
readonly permissionReadOnly: "Read Only";
|
|
217
|
+
readonly permissionWorkspaceWrite: "Workspace Write";
|
|
218
|
+
readonly permissionFullAccess: "Full access";
|
|
219
|
+
readonly permissionAutoReview: "Auto review";
|
|
220
|
+
readonly permissionLoadFailed: "Could not load session permissions. Try again.";
|
|
221
|
+
readonly permissionSaveFailed: "Could not change permissions. Check the current session.";
|
|
222
|
+
readonly permissionConfirm: "This permission allows broader file or tool operations. Enable it for the current session?";
|
|
223
|
+
readonly permissionDiagnostics: "Control: {source}; Host: {sandbox} / {approval}; Current Claude mode: {mode}";
|
|
224
|
+
readonly permissionNextTurn: "; Next turn: {mode}";
|
|
225
|
+
readonly settingOption_renderer_plugin: "Claude activity panel";
|
|
226
|
+
readonly settingOption_renderer_native: "ZeroWall native messages";
|
|
227
|
+
readonly settingOption_prose_plain: "Plain";
|
|
228
|
+
readonly settingOption_prose_enhanced: "Enhanced";
|
|
229
|
+
readonly nativeSettings: "Native Claude settings";
|
|
230
|
+
readonly nativeSettingsDescription: "Uses Claude Code settings.json in the ZeroWall managed runtime.";
|
|
231
|
+
readonly outputStyle: "Output style";
|
|
232
|
+
readonly permissionSelector: "Permission selector";
|
|
233
|
+
readonly permissionMode: "Permission mode";
|
|
234
|
+
readonly renderer: "Renderer";
|
|
235
|
+
readonly prose: "Prose mode";
|
|
236
|
+
readonly maxProcesses: "Maximum concurrent processes";
|
|
237
|
+
};
|
|
238
|
+
export type ClaudeLocaleKey = keyof typeof zh;
|
|
239
|
+
declare module '@deepseek-ai/dsh-client-ui-slots' {
|
|
240
|
+
interface LocaleNamespaceMap {
|
|
241
|
+
'zerowall.claude-code': ClaudeLocaleKey;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ClaudeGlobalSetting as GlobalSettingView, ClaudeGlobalSettingOption as GlobalSettingOption } from '../../shared/types.js';
|
|
2
|
+
interface GlobalSettingSelectProps {
|
|
3
|
+
setting: Extract<GlobalSettingView, {
|
|
4
|
+
kind: 'select';
|
|
5
|
+
}>;
|
|
6
|
+
label: string;
|
|
7
|
+
id?: string;
|
|
8
|
+
describedBy?: string;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
onChange: (value: string) => void;
|
|
11
|
+
/** Display text for one option. Server-discovered names (output styles) are
|
|
12
|
+
* shown verbatim; a fixed vocabulary the plugin owns is translated. */
|
|
13
|
+
labelFor?: (option: GlobalSettingOption) => string;
|
|
14
|
+
}
|
|
15
|
+
export declare function GlobalSettingText({ setting, disabled, onChange, label, id, describedBy }: {
|
|
16
|
+
setting: Extract<GlobalSettingView, {
|
|
17
|
+
kind: 'text';
|
|
18
|
+
}>;
|
|
19
|
+
label: string;
|
|
20
|
+
id?: string;
|
|
21
|
+
describedBy?: string;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
onChange: (value: string) => void;
|
|
24
|
+
}): import("react").JSX.Element;
|
|
25
|
+
export declare function GlobalSettingNumber({ setting, disabled, onChange, label, id, describedBy, invalidMessage, presetLabel, customLabel }: {
|
|
26
|
+
setting: Extract<GlobalSettingView, {
|
|
27
|
+
kind: 'number';
|
|
28
|
+
}>;
|
|
29
|
+
label: string;
|
|
30
|
+
id?: string;
|
|
31
|
+
describedBy?: string;
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
invalidMessage: string;
|
|
34
|
+
presetLabel: string;
|
|
35
|
+
customLabel: string;
|
|
36
|
+
onChange: (value: string) => void;
|
|
37
|
+
}): import("react").JSX.Element;
|
|
38
|
+
export declare function GlobalSettingSelect({ setting, disabled, onChange, label, id, describedBy, labelFor }: GlobalSettingSelectProps): import("react").JSX.Element;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/** Adapted from Norman-else/dsh-claude v0.1.65 (fe00e3af0b1ad03acc977b13b4d4ab805086f6da).
|
|
2
|
+
* Copyright (c) 2026 dsh-claude contributors. MIT; see upstream-LICENSE. */
|
|
3
|
+
import type { ClaudeProse as ClaudeProseMode } from '../../shared/types.js';
|
|
4
|
+
/** Claude Code's code presentation over the Host's Markdown renderer.
|
|
5
|
+
*
|
|
6
|
+
* This package renders no Markdown of its own — prose, fenced blocks and the
|
|
7
|
+
* copy affordance all come from the Host's `MarkdownText` primitive. What it
|
|
8
|
+
* can own is what that primitive reads: the palette (custom properties) and
|
|
9
|
+
* the block's chrome (CSS over the primitive's own markup).
|
|
10
|
+
*
|
|
11
|
+
* PARITY IS PARTIAL BY CONSTRUCTION. Both renderers highlight with shiki, but
|
|
12
|
+
* Claude Code's desktop build loads a full TextMate theme (Pierre Dark /
|
|
13
|
+
* Pierre Light Soft: 248 tokenColor rules over 424 scopes) and bakes the
|
|
14
|
+
* resolved colour into every span, while the Host loads shiki's legacy
|
|
15
|
+
* `css-variables` theme, which collapses every scope into the eleven buckets
|
|
16
|
+
* below. Those eleven carry the colours that dominate a code block —
|
|
17
|
+
* keywords, strings, comments, functions, numbers — and nothing here can
|
|
18
|
+
* recover the rest: `constant.numeric` and `constant` are two different
|
|
19
|
+
* colours in Pierre and one bucket here, and Pierre's string-coloured string
|
|
20
|
+
* delimiters share this sheet's single punctuation bucket. Matching the rest
|
|
21
|
+
* means this package running its own shiki, which is a different decision
|
|
22
|
+
* with a different cost.
|
|
23
|
+
*
|
|
24
|
+
* Every rule fails open the way `host-chrome` does: the palette is
|
|
25
|
+
* declarations on this package's own wrapper, and the chrome rules match the
|
|
26
|
+
* primitive's CSS Module local names, so a Host that renames either simply
|
|
27
|
+
* stops matching and its stock presentation comes back.
|
|
28
|
+
*/
|
|
29
|
+
/** Wrapper class carrying the palette and scoping the chrome rules.
|
|
30
|
+
* `display:contents` so the extra element generates no box — custom
|
|
31
|
+
* properties inherit through it regardless. */
|
|
32
|
+
export declare const CLAUDE_MARKDOWN_SCOPE = "dsh-claude-markdown";
|
|
33
|
+
export declare const CLAUDE_MARKDOWN_THEME_CSS: string;
|
|
34
|
+
/** Everything the `prose: 'enhanced'` setting adds, and nothing the base sheet
|
|
35
|
+
* needs. Appended AFTER the base sheet so its rules win ties on source order —
|
|
36
|
+
* see the note on the inline-code selector below. */
|
|
37
|
+
export declare const CLAUDE_MARKDOWN_ENHANCED_CSS: string;
|
|
38
|
+
/** Attach the sheet, keeping whatever mode is already set. Idempotent. */
|
|
39
|
+
export declare function ensureClaudeMarkdownTheme(): void;
|
|
40
|
+
/** Switch the prose palette. Rewriting one global sheet repaints every mounted
|
|
41
|
+
* Markdown block at once, so no render state has to carry the setting. */
|
|
42
|
+
export declare function applyClaudeMarkdownTheme(next: ClaudeProseMode): void;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/** Adapted from Norman-else/dsh-claude v0.1.65 (fe00e3af0b1ad03acc977b13b4d4ab805086f6da).
|
|
2
|
+
* Copyright (c) 2026 dsh-claude contributors. MIT; see upstream-LICENSE. */
|
|
3
|
+
import type { CSSProperties } from 'react';
|
|
4
|
+
export declare const settingsPage: CSSProperties;
|
|
5
|
+
export declare const settingsHero: CSSProperties;
|
|
6
|
+
export declare const settingsMark: CSSProperties;
|
|
7
|
+
export declare const settingsHeading: CSSProperties;
|
|
8
|
+
export declare const settingsSectionHeading: CSSProperties;
|
|
9
|
+
export declare const settingsBody: CSSProperties;
|
|
10
|
+
export declare const settingsCard: CSSProperties;
|
|
11
|
+
export declare const settingsCardHeader: CSSProperties;
|
|
12
|
+
export declare const diagnosticGrid: CSSProperties;
|
|
13
|
+
export declare const diagnosticLabel: CSSProperties;
|
|
14
|
+
export declare const diagnosticValue: CSSProperties;
|
|
15
|
+
export declare const settingSelect: CSSProperties;
|
|
16
|
+
export declare const settingTextInput: CSSProperties;
|
|
17
|
+
export declare const settingSelectTriggerClass = "dshClaudeSettingSelectTrigger";
|
|
18
|
+
export declare const settingSelectChevronClass = "dshClaudeSettingSelectChevron";
|
|
19
|
+
/**
|
|
20
|
+
* The listbox trigger and its chevron, in a stylesheet rather than inline
|
|
21
|
+
* because the states it has to draw cannot be expressed inline.
|
|
22
|
+
*
|
|
23
|
+
* Focus is the reason. An inline style carries no pseudo-class, so the blue
|
|
24
|
+
* ring used to ride on the open state alone: choosing an option closed the
|
|
25
|
+
* menu and took the ring with it while the button kept DOM focus, leaving the
|
|
26
|
+
* UA's own focus ring -- white on a dark theme, drawn outside the radius --
|
|
27
|
+
* as the only indicator. Focus and open are separate states; both draw the
|
|
28
|
+
* ring here, and `outline: none` retires the UA's.
|
|
29
|
+
*
|
|
30
|
+
* The open state reads `aria-expanded` instead of a second class because the
|
|
31
|
+
* attribute is already on the element and already correct. Its value is left
|
|
32
|
+
* unquoted: a valid identifier needs no quotes, and the sheet then survives
|
|
33
|
+
* React's server escaping, which would otherwise write `"` into markup a
|
|
34
|
+
* browser reads as raw text.
|
|
35
|
+
*/
|
|
36
|
+
export declare const settingSelectCss = "\n.dshClaudeSettingSelectTrigger {\n width: 100%;\n min-height: 38px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n padding: 7px 11px 7px 13px;\n border: 1px solid var(--dsw-alias-border-l2, color-mix(in srgb, currentColor 16%, transparent));\n border-radius: 10px;\n background: var(--dsw-alias-bg-layer-2);\n color: var(--dsw-alias-label-primary);\n box-shadow: 0 1px 2px color-mix(in srgb, var(--dsw-alias-label-primary) 5%, transparent);\n font: inherit;\n font-size: 14px;\n line-height: 22px;\n text-align: left;\n cursor: pointer;\n transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;\n}\n.dshClaudeSettingSelectTrigger:focus-visible,\n.dshClaudeSettingSelectTrigger[aria-expanded=true] {\n outline: none;\n border-color: var(--dsw-static-blue-450);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--dsw-static-blue-450) 15%, transparent);\n}\n.dshClaudeSettingSelectTrigger:disabled {\n opacity: .55;\n cursor: default;\n}\n.dshClaudeSettingSelectChevron {\n flex: none;\n display: grid;\n place-items: center;\n width: 16px;\n height: 16px;\n color: var(--dsw-alias-label-tertiary);\n transition: transform 120ms ease;\n}\n.dshClaudeSettingSelectTrigger[aria-expanded=true] .dshClaudeSettingSelectChevron {\n transform: rotate(180deg);\n}\n";
|
|
37
|
+
export declare const settingSelectValue: CSSProperties;
|
|
38
|
+
export declare const settingSelectMenu: CSSProperties;
|
|
39
|
+
export declare const settingSelectOption: CSSProperties;
|
|
40
|
+
export declare const settingSelectOptionActive: CSSProperties;
|
|
41
|
+
export declare const settingSelectCheck: CSSProperties;
|
|
42
|
+
export declare const settingHint: CSSProperties;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Context as ClientContext } from '@deepseek-ai/cordis';
|
|
2
|
+
import type { SessionId } from '@deepseek-ai/dsh-session/types';
|
|
3
|
+
import type { TypertRemoteNamespace } from '@deepseek-ai/dsh-typert-protocol';
|
|
4
|
+
import { type ClaudeCodeActionInjected } from './ClaudeCodeAction.js';
|
|
5
|
+
export declare const inject: string[];
|
|
6
|
+
type ClaudeCodeRemote = TypertRemoteNamespace<'zerowallClaudeCode'>;
|
|
7
|
+
export declare function bindClaudeCodeRemote(remote: ClaudeCodeRemote, sessionId: SessionId): ClaudeCodeActionInjected;
|
|
8
|
+
export declare function apply(ctx: ClientContext): void;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ClaudeCommandDescriptor } from '../shared/types.js';
|
|
2
|
+
export declare const FALLBACK_COMMANDS: readonly ClaudeCommandDescriptor[];
|
|
3
|
+
export type ClaudeParsedCommand = {
|
|
4
|
+
kind: 'slash';
|
|
5
|
+
name: string;
|
|
6
|
+
args: string[];
|
|
7
|
+
} | {
|
|
8
|
+
kind: 'prompt';
|
|
9
|
+
text: string;
|
|
10
|
+
};
|
|
11
|
+
export interface ClaudeCompactBoundary {
|
|
12
|
+
trigger: 'manual' | 'auto';
|
|
13
|
+
preTokens: number;
|
|
14
|
+
postTokens?: number;
|
|
15
|
+
durationMs?: number;
|
|
16
|
+
}
|
|
17
|
+
export declare function compactBoundaryOf(message: unknown): ClaudeCompactBoundary | undefined;
|
|
18
|
+
export declare function parseClaudeCommand(input: string): ClaudeParsedCommand;
|
|
19
|
+
export declare function commandSupported(commands: readonly ClaudeCommandDescriptor[], name: string): boolean;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ClaudeContextWindow, ClaudeEffectiveSetting, ClaudeModelCapabilities, ClaudeNativeSettings, ClaudePromptCacheTtl } from '../shared/types.js';
|
|
2
|
+
export declare const CLAUDE_CONTEXT_WINDOWS: readonly ClaudeContextWindow[];
|
|
3
|
+
export declare const CLAUDE_CACHE_TTLS: readonly ClaudePromptCacheTtl[];
|
|
4
|
+
export declare const CLAUDE_AUTO_COMPACT_MIN = 100000;
|
|
5
|
+
export declare const CLAUDE_AUTO_COMPACT_MAX = 1000000;
|
|
6
|
+
export declare function modelCapabilities(model: string, environment?: NodeJS.ProcessEnv): ClaudeModelCapabilities;
|
|
7
|
+
export declare function effectiveClaudeSettings(settings: ClaudeNativeSettings, model: string, environment?: NodeJS.ProcessEnv): {
|
|
8
|
+
capabilities: ClaudeModelCapabilities;
|
|
9
|
+
contextWindow: ClaudeEffectiveSetting;
|
|
10
|
+
autoCompactWindow: ClaudeEffectiveSetting;
|
|
11
|
+
promptCacheTtl: ClaudeEffectiveSetting;
|
|
12
|
+
subagentPromptCacheTtl: ClaudeEffectiveSetting;
|
|
13
|
+
};
|
|
14
|
+
export declare function claudeSettingsEnvironment(settings: ClaudeNativeSettings, model: string, inherited: NodeJS.ProcessEnv): {
|
|
15
|
+
env: NodeJS.ProcessEnv;
|
|
16
|
+
effective: ReturnType<typeof effectiveClaudeSettings>;
|
|
17
|
+
warnings: string[];
|
|
18
|
+
};
|
|
19
|
+
export declare function validateAdvancedClaudeSettings(input: Record<string, unknown>): Partial<ClaudeNativeSettings>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type GenerateOptions, type StreamChunk } from '@deepseek-ai/dsh-llm';
|
|
2
|
+
export declare function blockText(block: Record<string, unknown>): string;
|
|
3
|
+
/** Serialize the complete DSH request as explicitly role-labelled CLI context. */
|
|
4
|
+
export declare function claudePromptFromRequest(options: Pick<GenerateOptions, 'messages' | 'system'>): string;
|
|
5
|
+
export type ClaudeCliEvent = {
|
|
6
|
+
kind: 'text' | 'thinking' | 'text-start' | 'thinking-start' | 'tool-start' | 'tool-input' | 'block-stop' | 'result';
|
|
7
|
+
text?: string;
|
|
8
|
+
index?: number;
|
|
9
|
+
id?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
argumentsDelta?: string;
|
|
12
|
+
final?: boolean;
|
|
13
|
+
failed?: boolean;
|
|
14
|
+
errors?: string[];
|
|
15
|
+
toolResults?: Array<{
|
|
16
|
+
id: string;
|
|
17
|
+
text: string;
|
|
18
|
+
failed: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
/** Preserve Claude's native stream-json lifecycle so DSH can render progress. */
|
|
22
|
+
export declare function parseClaudeCliEvent(line: string): ClaudeCliEvent | undefined;
|
|
23
|
+
export declare function claudeTextChunk(index: number, text: string): StreamChunk;
|
|
24
|
+
export declare function claudeToolCallChunk(index: number, id: string, name: string | undefined, argumentsDelta: string): StreamChunk;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
2
|
+
import type { Agent } from '@deepseek-ai/dsh-agent';
|
|
3
|
+
import { TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
|
|
4
|
+
import type { ClaudeCliState, ClaudeCodeStatus, ClaudeCodeTurn, ClaudeGlobalSettingsView, ClaudeNativeSettings, ClaudePermissionMode, ClaudeTranscript } from '../shared/types.js';
|
|
5
|
+
import type { ClaudePermissionView } from '../shared/types.js';
|
|
6
|
+
export declare const name = "zerowall-claude-code";
|
|
7
|
+
export declare const inject: string[];
|
|
8
|
+
declare module '@deepseek-ai/cordis' {
|
|
9
|
+
interface Context {
|
|
10
|
+
zerowallClaudeCode: ClaudeCodeService;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
/** One installed runtime, with credentials resolved afresh for every prompt. */
|
|
14
|
+
export declare class ClaudeCodeService extends TypertRemoteService {
|
|
15
|
+
private manager?;
|
|
16
|
+
private readonly secrets;
|
|
17
|
+
private readonly sessions;
|
|
18
|
+
private managedRoute;
|
|
19
|
+
private managedCredential;
|
|
20
|
+
private mutation;
|
|
21
|
+
private readonly chatAgents;
|
|
22
|
+
private processReservations;
|
|
23
|
+
constructor(ctx: Context);
|
|
24
|
+
private desktop;
|
|
25
|
+
private anyRunning;
|
|
26
|
+
private sessionOccupied;
|
|
27
|
+
private runtime;
|
|
28
|
+
private owner;
|
|
29
|
+
private notifySessionAvailable;
|
|
30
|
+
private waitForSessionAvailable;
|
|
31
|
+
private statusSnapshot;
|
|
32
|
+
status(agent: Agent): Promise<ClaudeCodeStatus>;
|
|
33
|
+
settingsStatus(): Promise<ClaudeCodeStatus>;
|
|
34
|
+
settingsGet(): Promise<ClaudeNativeSettings>;
|
|
35
|
+
settingsUpdate(input: Partial<ClaudeNativeSettings>): Promise<ClaudeNativeSettings>;
|
|
36
|
+
/** Dynamic descriptor view matching Claude Code's native Settings surface. */
|
|
37
|
+
settingsGlobalGet(): Promise<ClaudeGlobalSettingsView>;
|
|
38
|
+
settingsGlobalUpdate(changes: Record<string, string>): Promise<ClaudeGlobalSettingsView>;
|
|
39
|
+
private outputStyleOptions;
|
|
40
|
+
/** External children use the same isolated Skills/MCP/model launch as chat. */
|
|
41
|
+
private startSubagent;
|
|
42
|
+
private subagentSelection;
|
|
43
|
+
private readSettingsDocument;
|
|
44
|
+
private writeSettingsDocument;
|
|
45
|
+
install(agent: Agent): Promise<ClaudeCodeStatus>;
|
|
46
|
+
rollback(agent: Agent): Promise<ClaudeCodeStatus>;
|
|
47
|
+
uninstall(agent: Agent): Promise<ClaudeCodeStatus>;
|
|
48
|
+
settingsInstall(): Promise<ClaudeCodeStatus>;
|
|
49
|
+
settingsRollback(): Promise<ClaudeCodeStatus>;
|
|
50
|
+
settingsUninstall(): Promise<ClaudeCodeStatus>;
|
|
51
|
+
private changeRuntime;
|
|
52
|
+
private route;
|
|
53
|
+
permissionView(agent: Agent): Promise<ClaudePermissionView>;
|
|
54
|
+
permissionSet(agent: Agent, value: string): Promise<ClaudePermissionView>;
|
|
55
|
+
private alignPermission;
|
|
56
|
+
private launch;
|
|
57
|
+
private streamConversation;
|
|
58
|
+
private streamConversationCommand;
|
|
59
|
+
private turnView;
|
|
60
|
+
private refreshQueryCapabilities;
|
|
61
|
+
private runCliInput;
|
|
62
|
+
private cliStateFor;
|
|
63
|
+
private executeCliInput;
|
|
64
|
+
contextUsage(agent: Agent, detail?: 'summary' | 'full'): Promise<ClaudeCliState>;
|
|
65
|
+
cliSetModel(agent: Agent, model: string): Promise<ClaudeCliState>;
|
|
66
|
+
cliSetPermissionMode(agent: Agent, mode: ClaudePermissionMode): Promise<ClaudeCliState>;
|
|
67
|
+
read(agent: Agent): ClaudeCodeTurn | null;
|
|
68
|
+
readTranscript(agent: Agent, turn: number, step: number): ClaudeTranscript | null;
|
|
69
|
+
stop(agent: Agent): Promise<void>;
|
|
70
|
+
clear(agent: Agent): void;
|
|
71
|
+
}
|
|
72
|
+
export declare function apply(ctx: Context): void;
|
|
73
|
+
declare const _default: {
|
|
74
|
+
name: string;
|
|
75
|
+
inject: string[];
|
|
76
|
+
apply: typeof apply;
|
|
77
|
+
};
|
|
78
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ClaudeMcpRuntimeProjection, McpSkipReason } from './projection.js';
|
|
2
|
+
export interface McpLauncherOptions {
|
|
3
|
+
root: string;
|
|
4
|
+
/** The current Host's application-owned Node or Electron executable. */
|
|
5
|
+
executable: string;
|
|
6
|
+
electron: boolean;
|
|
7
|
+
searchPath?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Materialize only selected launchers under the turn-owned projection directory. */
|
|
10
|
+
export declare function writeClaudeMcpLaunchers(projection: ClaudeMcpRuntimeProjection, options: McpLauncherOptions): Promise<{
|
|
11
|
+
servers: ClaudeMcpRuntimeProjection['servers'];
|
|
12
|
+
skipped: Array<{
|
|
13
|
+
serverName: string;
|
|
14
|
+
reason: McpSkipReason;
|
|
15
|
+
}>;
|
|
16
|
+
}>;
|