@co0ontty/wand 1.18.0 → 1.18.12
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/process-manager.d.ts +2 -1
- package/dist/process-manager.js +14 -34
- package/dist/pty-text-utils.d.ts +1 -3
- package/dist/pty-text-utils.js +1 -3
- package/dist/server-session-routes.js +6 -12
- package/dist/storage.js +4 -8
- package/dist/structured-session-manager.d.ts +6 -1
- package/dist/structured-session-manager.js +156 -13
- package/dist/types.d.ts +0 -14
- package/dist/web-ui/content/scripts.js +768 -196
- package/dist/web-ui/content/styles.css +634 -39
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -264,14 +264,8 @@ export interface SessionSnapshot {
|
|
|
264
264
|
/** Pending structured user inputs queued while an assistant response is in flight. */
|
|
265
265
|
queuedMessages?: string[];
|
|
266
266
|
structuredState?: StructuredSessionState;
|
|
267
|
-
/** Session lifecycle state */
|
|
268
|
-
lifecycleState?: "running" | "idle" | "archived";
|
|
269
|
-
/** Last activity timestamp */
|
|
270
|
-
lastActivityAt?: string | null;
|
|
271
267
|
/** 此会话是从哪个 Wand 会话恢复而来 */
|
|
272
268
|
resumedFromSessionId?: string | null;
|
|
273
|
-
/** 此会话被哪个恢复后的会话替代 */
|
|
274
|
-
resumedToSessionId?: string | null;
|
|
275
269
|
/** 服务器重启时是否自动恢复 */
|
|
276
270
|
autoRecovered?: boolean;
|
|
277
271
|
/** 是否启用自动批准权限 */
|
|
@@ -290,14 +284,6 @@ export interface SessionSnapshot {
|
|
|
290
284
|
/** 用户为此会话选定的 Claude 模型(别名或完整 ID)。结构化会话下次 spawn 时使用;PTY 会话仅用于展示。 */
|
|
291
285
|
selectedModel?: string | null;
|
|
292
286
|
}
|
|
293
|
-
export type SessionLifecycleState = "initializing" | "running" | "idle" | "thinking" | "waiting-input" | "archived";
|
|
294
|
-
export interface SessionLifecycle {
|
|
295
|
-
state: SessionLifecycleState;
|
|
296
|
-
stateSince: number;
|
|
297
|
-
lastActivityAt: number;
|
|
298
|
-
archivedBy?: "user" | "timeout" | "error";
|
|
299
|
-
archiveReason?: string;
|
|
300
|
-
}
|
|
301
287
|
/** Unified event type emitted by ClaudePtyBridge for WebSocket broadcast */
|
|
302
288
|
export type SessionEventType = "output.raw" | "output.chat" | "chat.turn" | "permission.prompt" | "permission.resolved" | "session.id" | "task" | "ended";
|
|
303
289
|
export interface SessionEvent {
|