@co0ontty/wand 1.26.0 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.js +24 -0
- package/dist/git-quick-commit.d.ts +3 -2
- package/dist/git-quick-commit.js +170 -133
- package/dist/server.js +214 -5
- package/dist/structured-session-manager.d.ts +20 -0
- package/dist/structured-session-manager.js +192 -18
- package/dist/types.d.ts +25 -7
- package/dist/web-ui/content/scripts.js +375 -79
- package/dist/ws-broadcast.d.ts +10 -0
- package/dist/ws-broadcast.js +75 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -67,6 +67,11 @@ export interface AndroidApkConfig {
|
|
|
67
67
|
apkDir?: string;
|
|
68
68
|
currentApkFile?: string;
|
|
69
69
|
}
|
|
70
|
+
export interface MacosDmgConfig {
|
|
71
|
+
enabled?: boolean;
|
|
72
|
+
dmgDir?: string;
|
|
73
|
+
currentDmgFile?: string;
|
|
74
|
+
}
|
|
70
75
|
export interface WandConfig {
|
|
71
76
|
host: string;
|
|
72
77
|
port: number;
|
|
@@ -87,6 +92,7 @@ export interface WandConfig {
|
|
|
87
92
|
/** Per-instance secret for app connection code encryption. Auto-generated on first run. */
|
|
88
93
|
appSecret?: string;
|
|
89
94
|
android?: AndroidApkConfig;
|
|
95
|
+
macos?: MacosDmgConfig;
|
|
90
96
|
/** Default expand/collapse state for card types in structured chat view */
|
|
91
97
|
cardDefaults?: CardExpandDefaults;
|
|
92
98
|
/** 新建会话时默认使用的 Claude 模型(别名或完整 ID)。留空则不传 --model,由 claude 自行决定。 */
|
|
@@ -169,13 +175,11 @@ export interface GitStatusResult {
|
|
|
169
175
|
repoRoot?: string;
|
|
170
176
|
/** Truthy when the repo has no commits yet (initial state). */
|
|
171
177
|
initialCommit?: boolean;
|
|
172
|
-
/**
|
|
173
|
-
hasUpstream?: boolean;
|
|
174
|
-
/** Upstream branch identifier (e.g. `origin/main`). Only set when `hasUpstream` is true. */
|
|
178
|
+
/** Upstream tracking branch (e.g. `origin/main`). Absent when none is configured. */
|
|
175
179
|
upstream?: string;
|
|
176
|
-
/** Number of local commits not yet on upstream. Only meaningful when `
|
|
180
|
+
/** Number of local commits not yet on upstream. Only meaningful when `upstream` is set. */
|
|
177
181
|
ahead?: number;
|
|
178
|
-
/** Number of upstream commits not yet locally. Only meaningful when `
|
|
182
|
+
/** Number of upstream commits not yet locally. Only meaningful when `upstream` is set. */
|
|
179
183
|
behind?: number;
|
|
180
184
|
/** HEAD commit subject + short hash (handy for "tag the current commit" UX). */
|
|
181
185
|
lastCommit?: {
|
|
@@ -183,8 +187,6 @@ export interface GitStatusResult {
|
|
|
183
187
|
shortHash: string;
|
|
184
188
|
subject: string;
|
|
185
189
|
};
|
|
186
|
-
/** Number of local tags that don't exist on the remote (best-effort, may be undefined if not reachable). */
|
|
187
|
-
unpushedTagCount?: number;
|
|
188
190
|
error?: string;
|
|
189
191
|
}
|
|
190
192
|
export interface QuickCommitResult {
|
|
@@ -199,6 +201,14 @@ export interface QuickCommitResult {
|
|
|
199
201
|
pushed?: boolean;
|
|
200
202
|
/** commit 已成功但 push 失败时填入;前端用它显示"已提交但 push 失败"。 */
|
|
201
203
|
pushError?: string;
|
|
204
|
+
/**
|
|
205
|
+
* 父仓库 commit 之前,先在 submodule 内单独提交的记录。仅包含 internal dirty
|
|
206
|
+
* 或 untracked 触发的 submodule 提交;纯指针变化(commitChanged)不会进来。
|
|
207
|
+
*/
|
|
208
|
+
submoduleCommits?: {
|
|
209
|
+
path: string;
|
|
210
|
+
hash: string;
|
|
211
|
+
}[];
|
|
202
212
|
}
|
|
203
213
|
export interface TagHeadResult {
|
|
204
214
|
ok: boolean;
|
|
@@ -392,6 +402,14 @@ export interface SessionSnapshot {
|
|
|
392
402
|
currentTaskTitle?: string;
|
|
393
403
|
/** 用户为此会话选定的 Claude 模型(别名或完整 ID)。结构化会话下次 spawn 时使用;PTY 会话仅用于展示。 */
|
|
394
404
|
selectedModel?: string | null;
|
|
405
|
+
/**
|
|
406
|
+
* 用户选定的思考深度。
|
|
407
|
+
* - off: 不启用思考(SDK: 不传 thinking;CLI: 不插魔法词;Codex: --reasoning-effort minimal)
|
|
408
|
+
* - standard: 标准(SDK: budget 4096;CLI: think;Codex: low)
|
|
409
|
+
* - deep: 深度(SDK: budget 16000;CLI: think hard;Codex: medium)
|
|
410
|
+
* - max: 最深(SDK: budget 31999;CLI: ultrathink;Codex: high)
|
|
411
|
+
*/
|
|
412
|
+
thinkingEffort?: "off" | "standard" | "deep" | "max" | null;
|
|
395
413
|
/** 当前 PTY 列宽,由最近一次 resize 决定。前端用它来判断本端 fit 是否需要校准。 */
|
|
396
414
|
ptyCols?: number;
|
|
397
415
|
/** 当前 PTY 行数,由最近一次 resize 决定。 */
|