@co0ontty/wand 4.82.0 → 4.83.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/README.md +47 -9
- package/dist/agent-dispatch.d.ts +3 -2
- package/dist/agent-dispatch.js +19 -3
- package/dist/ai-team-delivery-types.d.ts +40 -0
- package/dist/ai-team-delivery-types.js +1 -0
- package/dist/ai-team-delivery.d.ts +13 -0
- package/dist/ai-team-delivery.js +89 -0
- package/dist/ai-team-employee-binding.d.ts +16 -0
- package/dist/ai-team-employee-binding.js +77 -0
- package/dist/ai-team-prompts.js +5 -0
- package/dist/ai-team-runner.d.ts +9 -2
- package/dist/ai-team-runner.js +52 -7
- package/dist/ai-team-types.d.ts +17 -3
- package/dist/ai-team-types.js +43 -3
- package/dist/build-info.json +3 -3
- package/dist/cli.js +36 -0
- package/dist/config.d.ts +18 -10
- package/dist/config.js +63 -105
- package/dist/decision-client.d.ts +4 -0
- package/dist/decision-client.js +91 -0
- package/dist/decision-runner.d.ts +9 -0
- package/dist/decision-runner.js +36 -0
- package/dist/decision-service.d.ts +46 -0
- package/dist/decision-service.js +230 -0
- package/dist/decision-skill.d.ts +6 -0
- package/dist/decision-skill.js +70 -0
- package/dist/decision-tool.d.ts +21 -0
- package/dist/decision-tool.js +346 -0
- package/dist/decision-types.d.ts +36 -0
- package/dist/decision-types.js +123 -0
- package/dist/decision-worker.py +86 -0
- package/dist/default-employee.d.ts +4 -1
- package/dist/default-employee.js +11 -1
- package/dist/env-utils.js +3 -0
- package/dist/git-quick-commit.js +7 -1
- package/dist/message-truncator.d.ts +1 -1
- package/dist/message-truncator.js +29 -22
- package/dist/models.d.ts +1 -0
- package/dist/models.js +31 -4
- package/dist/process-manager.d.ts +39 -1
- package/dist/process-manager.js +112 -8
- package/dist/provider-catalog.d.ts +47 -0
- package/dist/provider-catalog.js +138 -0
- package/dist/provider-cli-updater.d.ts +1 -1
- package/dist/pty-foreground.d.ts +37 -0
- package/dist/pty-foreground.js +56 -0
- package/dist/pty-turn-activity.d.ts +6 -5
- package/dist/pty-turn-activity.js +6 -5
- package/dist/retention.d.ts +29 -0
- package/dist/retention.js +142 -0
- package/dist/server-ai-team-routes.d.ts +2 -1
- package/dist/server-ai-team-routes.js +27 -9
- package/dist/server-decision-routes.d.ts +10 -0
- package/dist/server-decision-routes.js +52 -0
- package/dist/server-employee-routes.js +9 -1
- package/dist/server-session-routes.d.ts +2 -2
- package/dist/server-session-routes.js +97 -1
- package/dist/server-settings-routes.js +10 -36
- package/dist/server-update-routes.js +2 -1
- package/dist/server-workspace-routes.js +8 -0
- package/dist/server.js +37 -5
- package/dist/session-completion-state.d.ts +26 -0
- package/dist/session-completion-state.js +30 -0
- package/dist/session-completion.d.ts +12 -0
- package/dist/session-completion.js +62 -0
- package/dist/session-provider.d.ts +1 -15
- package/dist/session-provider.js +4 -54
- package/dist/session-registry.d.ts +5 -0
- package/dist/session-registry.js +19 -1
- package/dist/session-transport.js +2 -0
- package/dist/storage.d.ts +12 -0
- package/dist/storage.js +119 -16
- package/dist/structured-client-protocol.js +36 -1
- package/dist/structured-provider-common.js +3 -3
- package/dist/structured-session-manager.d.ts +13 -1
- package/dist/structured-session-manager.js +196 -27
- package/dist/system-employee.js +1 -0
- package/dist/task-types.d.ts +4 -2
- package/dist/tool-preview.d.ts +8 -0
- package/dist/tool-preview.js +158 -0
- package/dist/types.d.ts +35 -2
- package/dist/web-ui/content/ai-teams.js +13 -13
- package/dist/web-ui/content/scripts.js +66 -64
- package/dist/web-ui/content/styles.css +1 -1
- package/dist/web-ui/content/tailwind.css +3 -0
- package/dist/web-ui/embedded-assets.js +3 -3
- package/dist/web-ui/provider-identity.d.ts +7 -13
- package/dist/web-ui/provider-identity.js +8 -71
- package/package.json +3 -2
- package/skills/wand-decision/SKILL.md +61 -0
- package/skills/wand-decision/scripts/decide.mjs +16 -0
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { SessionCompletionState } from "./session-completion-state.js";
|
|
1
2
|
export type SessionKind = "pty" | "structured";
|
|
2
|
-
export type SessionProvider
|
|
3
|
+
export type { SessionProvider } from "./provider-catalog.js";
|
|
4
|
+
import type { SessionProvider } from "./provider-catalog.js";
|
|
3
5
|
/** "claude-sdk" 是历史值:SDK 执行路径已移除,读旧会话时归一为 claude-cli-print。 */
|
|
4
6
|
export type SessionRunner = "claude-cli" | "claude-cli-print" | "claude-sdk" | "codex-cli-exec" | "opencode-cli-run" | "grok-cli-headless" | "qoder-cli-print" | "pi-cli-json" | "gemini-cli-json" | "pty";
|
|
5
7
|
export type SessionSource = "interactive" | "automation" | "startup";
|
|
@@ -139,6 +141,8 @@ export interface WandConfig {
|
|
|
139
141
|
render?: RenderConfig;
|
|
140
142
|
/** Structured CLI process owner for new runs; default legacy. SDK stays in Node. */
|
|
141
143
|
structured?: StructuredProcessConfig;
|
|
144
|
+
/** Optional offline, inference-only local decision worker. Never a chat provider. */
|
|
145
|
+
localDecision?: import("./decision-types.js").LocalDecisionConfig;
|
|
142
146
|
/** Default expand/collapse state for card types in structured chat view */
|
|
143
147
|
cardDefaults?: CardExpandDefaults;
|
|
144
148
|
/** 新建会话时默认使用的 Claude 模型(别名或完整 ID)。留空则不传 --model,由 claude 自行决定。 */
|
|
@@ -483,6 +487,23 @@ export interface StructuredTaskItem {
|
|
|
483
487
|
status: string;
|
|
484
488
|
activeForm?: string;
|
|
485
489
|
}
|
|
490
|
+
/**
|
|
491
|
+
* 决策卡缩略投影:服务端从工具入参(请求体)与结果 JSON 派生出的有界展示数据。
|
|
492
|
+
* Web 与 Android 渲染同一份字段,不再各自解析原始 command / 结果 JSON。
|
|
493
|
+
* 这里只放「模型问了什么、答了什么」,不放状态词(运行中/完成/失败由客户端按自己的状态源渲染)。
|
|
494
|
+
*/
|
|
495
|
+
export interface DecisionCardSummary {
|
|
496
|
+
/** 判定模式:一题一种类型时取该类型,多题混合为 mixed;请求与结果都读不出时省略。 */
|
|
497
|
+
mode?: "choice" | "score" | "noul" | "mixed";
|
|
498
|
+
/** 题数;请求体与结果都不可得时省略。 */
|
|
499
|
+
questions?: number;
|
|
500
|
+
/** 请求侧要点(被判定内容摘要,单行、有界);请求体不可得(如 `--data @file`)时省略。 */
|
|
501
|
+
preview?: string;
|
|
502
|
+
/** 结果侧一行结论(如 `category=billing 84%`);未返回、失败或结果不可解析时省略。 */
|
|
503
|
+
outcome?: string;
|
|
504
|
+
/** 卡头副标题:outcome → preview → 题数 的有界拼接,两边都缺数据时退化为模式提示。 */
|
|
505
|
+
label: string;
|
|
506
|
+
}
|
|
486
507
|
/**
|
|
487
508
|
* Wand-owned semantic projection of provider-specific tools. Clients should
|
|
488
509
|
* render this field and treat `name` / `input` as a legacy fallback only.
|
|
@@ -493,12 +514,17 @@ type ToolUseSemantic = {
|
|
|
493
514
|
} | {
|
|
494
515
|
kind: "task_list";
|
|
495
516
|
items: StructuredTaskItem[];
|
|
517
|
+
} | {
|
|
518
|
+
kind: "decision";
|
|
519
|
+
summary?: DecisionCardSummary;
|
|
496
520
|
};
|
|
497
521
|
export interface ToolUseBlock {
|
|
498
522
|
type: "tool_use";
|
|
499
523
|
id: string;
|
|
500
524
|
name: string;
|
|
501
525
|
description?: string;
|
|
526
|
+
/** Bounded factual input excerpt for collapsed cards; transport projection only. */
|
|
527
|
+
preview?: string;
|
|
502
528
|
input: Record<string, unknown>;
|
|
503
529
|
/** ISO time when the server first observed this tool invocation; absent for older transcripts. */
|
|
504
530
|
occurredAt?: string;
|
|
@@ -523,8 +549,15 @@ export interface ToolResultBlock {
|
|
|
523
549
|
[key: string]: unknown;
|
|
524
550
|
}>;
|
|
525
551
|
is_error?: boolean;
|
|
552
|
+
/** Bounded factual result excerpt, retained even when content is compacted. */
|
|
553
|
+
preview?: string;
|
|
526
554
|
/** When true, content has been truncated for transport. Client should fetch full content via API. */
|
|
527
555
|
_truncated?: boolean;
|
|
556
|
+
/** Read-only projection, retained on late/results-only pages as well as the invocation. */
|
|
557
|
+
semantic?: {
|
|
558
|
+
kind: "decision";
|
|
559
|
+
summary?: DecisionCardSummary;
|
|
560
|
+
};
|
|
528
561
|
__subagent?: SubagentMeta;
|
|
529
562
|
}
|
|
530
563
|
export type ContentBlock = TextBlock | ThinkingBlock | ToolUseBlock | ToolResultBlock;
|
|
@@ -593,7 +626,7 @@ export interface StructuredSessionState {
|
|
|
593
626
|
/** Pi 已结束前台回复、但 CLI 仍在等待异步子任务收尾。 */
|
|
594
627
|
phase?: "responding" | "background";
|
|
595
628
|
}
|
|
596
|
-
export interface SessionSnapshot {
|
|
629
|
+
export interface SessionSnapshot extends SessionCompletionState {
|
|
597
630
|
id: string;
|
|
598
631
|
/** 会话创建来源。旧数据和缺省值按 interactive 处理。 */
|
|
599
632
|
sessionSource?: SessionSource;
|