@co0ontty/wand 3.1.1 → 4.0.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.
Files changed (62) hide show
  1. package/dist/auth.d.ts +19 -5
  2. package/dist/auth.js +83 -45
  3. package/dist/build-info.json +3 -3
  4. package/dist/cert.d.ts +1 -1
  5. package/dist/cert.js +124 -74
  6. package/dist/config.js +25 -8
  7. package/dist/express-async.d.ts +6 -0
  8. package/dist/express-async.js +28 -0
  9. package/dist/git-quick-commit.d.ts +2 -0
  10. package/dist/git-quick-commit.js +215 -76
  11. package/dist/git-utils.d.ts +4 -0
  12. package/dist/git-utils.js +60 -11
  13. package/dist/git-worktree.d.ts +8 -1
  14. package/dist/git-worktree.js +406 -41
  15. package/dist/models.d.ts +34 -4
  16. package/dist/models.js +334 -48
  17. package/dist/process-manager.d.ts +22 -30
  18. package/dist/process-manager.js +374 -441
  19. package/dist/provider-history-scanner.d.ts +54 -0
  20. package/dist/provider-history-scanner.js +354 -0
  21. package/dist/request-limits.d.ts +1 -0
  22. package/dist/request-limits.js +8 -0
  23. package/dist/resume-policy.d.ts +2 -0
  24. package/dist/resume-policy.js +5 -0
  25. package/dist/runtime-config.d.ts +16 -0
  26. package/dist/runtime-config.js +49 -0
  27. package/dist/server-file-routes.d.ts +17 -0
  28. package/dist/server-file-routes.js +653 -0
  29. package/dist/server-session-routes.d.ts +16 -3
  30. package/dist/server-session-routes.js +170 -149
  31. package/dist/server-settings-routes.d.ts +43 -0
  32. package/dist/server-settings-routes.js +225 -0
  33. package/dist/server-update-routes.d.ts +61 -0
  34. package/dist/server-update-routes.js +215 -0
  35. package/dist/server.d.ts +6 -4
  36. package/dist/server.js +350 -1313
  37. package/dist/session-logger.d.ts +32 -2
  38. package/dist/session-logger.js +145 -15
  39. package/dist/session-registry.d.ts +27 -0
  40. package/dist/session-registry.js +153 -0
  41. package/dist/session-transport.d.ts +31 -0
  42. package/dist/session-transport.js +82 -0
  43. package/dist/storage.d.ts +24 -6
  44. package/dist/storage.js +291 -44
  45. package/dist/structured-claude-adapter.d.ts +19 -0
  46. package/dist/structured-claude-adapter.js +117 -0
  47. package/dist/structured-codex-adapter.d.ts +3 -0
  48. package/dist/structured-codex-adapter.js +29 -0
  49. package/dist/structured-opencode-adapter.d.ts +11 -0
  50. package/dist/structured-opencode-adapter.js +115 -0
  51. package/dist/structured-provider-common.d.ts +11 -0
  52. package/dist/structured-provider-common.js +77 -0
  53. package/dist/structured-session-manager.d.ts +32 -35
  54. package/dist/structured-session-manager.js +551 -605
  55. package/dist/types.d.ts +10 -0
  56. package/dist/update-helper.js +5 -1
  57. package/dist/web-ui/content/scripts.js +32 -32
  58. package/dist/web-ui/embedded-assets.d.ts +1 -1
  59. package/dist/web-ui/embedded-assets.js +2 -2
  60. package/dist/ws-broadcast.d.ts +16 -1
  61. package/dist/ws-broadcast.js +124 -58
  62. package/package.json +2 -1
package/dist/types.d.ts CHANGED
@@ -126,6 +126,8 @@ export interface WandConfig {
126
126
  */
127
127
  inheritEnv?: boolean;
128
128
  }
129
+ export type ClaudeModelSource = "builtin" | "configured" | "verified-cache" | "models-api";
130
+ export type ClaudeModelAvailability = "default" | "candidate" | "verified" | "stale";
129
131
  export interface ClaudeModelInfo {
130
132
  /** 传给 --model 的值(别名或完整模型 ID) */
131
133
  id: string;
@@ -135,6 +137,14 @@ export interface ClaudeModelInfo {
135
137
  note?: string;
136
138
  /** 是否为别名(opus/sonnet 等);完整 ID 为 false */
137
139
  alias?: boolean;
140
+ /** Claude 候选的来源;Codex / OpenCode 动态结果通常不提供。 */
141
+ source?: ClaudeModelSource;
142
+ /** Claude Code 默认、候选、已验证或版本/时限过期的验证记录。 */
143
+ availability?: ClaudeModelAvailability;
144
+ /** 最近一次由 Claude Code CLI 成功验证的时间。 */
145
+ lastVerifiedAt?: string;
146
+ /** 完成最近一次验证时的 Claude Code CLI 版本。 */
147
+ verifiedWithClaudeVersion?: string;
138
148
  /** Codex 模型声明的可用推理档位;Claude 模型通常不提供。 */
139
149
  reasoningEfforts?: ReasoningEffortInfo[];
140
150
  /** Codex 模型的默认推理档位。 */
@@ -294,7 +294,11 @@ WAND_INSTALL_NODE
294
294
  else
295
295
  echo "[wand-update] starting updated standalone process"
296
296
  cd "$WORKING_DIRECTORY"
297
- nohup "$NODE_BIN" "$GLOBAL_CLI" "$\{CLI_ARGS[@]}" >>"$LOG" 2>&1 </dev/null &
297
+ # The helper itself already runs in a detached session/process group. BSD
298
+ # nohup can fail here with "can't detach from console" after the original
299
+ # parent exits, so launch the replacement directly inside that detached
300
+ # context and keep all stdio disconnected from the old service.
301
+ "$NODE_BIN" "$GLOBAL_CLI" "$\{CLI_ARGS[@]}" >>"$LOG" 2>&1 </dev/null &
298
302
  echo "[wand-update] standalone pid: $!"
299
303
  fi
300
304
  echo "[wand-update] completed at $(date -u +"%Y-%m-%dT%H:%M:%SZ")"