@co0ontty/wand 4.83.1 → 4.84.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/README.md +4 -0
- package/dist/agent-dispatch.js +5 -1
- package/dist/ai-team-availability.d.ts +1 -1
- package/dist/ai-team-prompts.js +13 -4
- package/dist/ai-team-runner.d.ts +80 -5
- package/dist/ai-team-runner.js +332 -55
- package/dist/ai-team-types.d.ts +92 -5
- package/dist/ai-team-types.js +9 -2
- package/dist/build-info.json +3 -3
- package/dist/cli-api.d.ts +1 -0
- package/dist/cli-api.js +3 -0
- package/dist/cli.js +18 -1
- package/dist/commit-task-archive.d.ts +3 -1
- package/dist/commit-task-archive.js +21 -10
- package/dist/config.d.ts +1 -1
- package/dist/config.js +73 -0
- package/dist/conversation-mentions.d.ts +16 -0
- package/dist/conversation-mentions.js +32 -0
- package/dist/conversation-service.d.ts +90 -0
- package/dist/conversation-service.js +759 -0
- package/dist/conversation-session-preview.d.ts +9 -0
- package/dist/conversation-session-preview.js +47 -0
- package/dist/conversation-task-preview.d.ts +5 -0
- package/dist/conversation-task-preview.js +8 -0
- package/dist/conversation-types.d.ts +80 -0
- package/dist/conversation-types.js +7 -0
- package/dist/core-extension-host.d.ts +27 -0
- package/dist/core-extension-host.js +138 -0
- package/dist/core-runner.d.ts +86 -0
- package/dist/core-runner.js +757 -0
- package/dist/core-status-cli.d.ts +9 -0
- package/dist/core-status-cli.js +280 -0
- package/dist/core-turn-tracker.d.ts +12 -0
- package/dist/core-turn-tracker.js +36 -0
- package/dist/decision-runner.d.ts +6 -0
- package/dist/decision-runner.js +3 -1
- package/dist/decision-tool.d.ts +2 -0
- package/dist/decision-tool.js +49 -22
- package/dist/env-utils.d.ts +7 -3
- package/dist/env-utils.js +30 -5
- package/dist/git-quick-commit.d.ts +5 -0
- package/dist/git-quick-commit.js +9 -3
- package/dist/git-utils.js +2 -1
- package/dist/harness-engine.d.ts +110 -0
- package/dist/harness-engine.js +331 -0
- package/dist/mission-diff.js +2 -1
- package/dist/model-auto-assign.d.ts +50 -0
- package/dist/model-auto-assign.js +163 -0
- package/dist/model-group-runner.d.ts +4 -0
- package/dist/model-group-runner.js +72 -0
- package/dist/model-groups.d.ts +38 -0
- package/dist/model-groups.js +138 -0
- package/dist/models.d.ts +12 -0
- package/dist/models.js +102 -8
- package/dist/npm-update-utils.js +2 -1
- package/dist/openrouter-free-cli.d.ts +25 -0
- package/dist/openrouter-free-cli.js +109 -0
- package/dist/openrouter-free-models.d.ts +85 -0
- package/dist/openrouter-free-models.js +458 -0
- package/dist/openrouter-free-selection.d.ts +5 -0
- package/dist/openrouter-free-selection.js +7 -0
- package/dist/path-repair.d.ts +10 -0
- package/dist/path-repair.js +50 -5
- package/dist/pi-auto-resources.d.ts +12 -0
- package/dist/pi-auto-resources.js +151 -0
- package/dist/pi-execution-types.d.ts +48 -0
- package/dist/pi-execution-types.js +1 -0
- package/dist/pi-execution.d.ts +9 -0
- package/dist/pi-execution.js +187 -0
- package/dist/pi-extension-resources.d.ts +13 -0
- package/dist/pi-extension-resources.js +71 -0
- package/dist/pi-openrouter-free-bridge.d.ts +2 -0
- package/dist/pi-openrouter-free-bridge.js +80 -0
- package/dist/pi-resource-bridge.d.ts +2 -0
- package/dist/pi-resource-bridge.js +73 -0
- package/dist/pi-resource-catalog.d.ts +18 -0
- package/dist/pi-resource-catalog.js +82 -0
- package/dist/pi-resource-recommendation.d.ts +29 -0
- package/dist/pi-resource-recommendation.js +169 -0
- package/dist/pi-resource-run.d.ts +8 -0
- package/dist/pi-resource-run.js +28 -0
- package/dist/pi-session-settings.d.ts +157 -0
- package/dist/pi-session-settings.js +166 -0
- package/dist/platform-action-catalog.d.ts +24 -0
- package/dist/platform-action-catalog.js +141 -0
- package/dist/platform-action-service.d.ts +37 -0
- package/dist/platform-action-service.js +138 -0
- package/dist/platform-action-types.d.ts +125 -0
- package/dist/platform-action-types.js +7 -0
- package/dist/process-manager.d.ts +21 -1
- package/dist/process-manager.js +168 -15
- package/dist/provider-catalog.js +1 -1
- package/dist/provider-cli-updater.js +29 -8
- package/dist/provider-history-scanner.d.ts +9 -0
- package/dist/provider-history-scanner.js +107 -1
- package/dist/retention.d.ts +19 -7
- package/dist/retention.js +171 -28
- package/dist/server-ai-team-routes.js +6 -2
- package/dist/server-conversation-routes.d.ts +5 -0
- package/dist/server-conversation-routes.js +91 -0
- package/dist/server-employee-routes.d.ts +2 -0
- package/dist/server-employee-routes.js +85 -11
- package/dist/server-pi-recommendation-routes.d.ts +13 -0
- package/dist/server-pi-recommendation-routes.js +67 -0
- package/dist/server-resume-routes.js +1 -1
- package/dist/server-session-routes.d.ts +4 -3
- package/dist/server-session-routes.js +182 -37
- package/dist/server-settings-routes.d.ts +5 -0
- package/dist/server-settings-routes.js +46 -0
- package/dist/server-task-routes.js +49 -4
- package/dist/server-team-dispatch-routes.d.ts +19 -0
- package/dist/server-team-dispatch-routes.js +71 -0
- package/dist/server-update-routes.d.ts +1 -1
- package/dist/server-update-routes.js +10 -5
- package/dist/server-workspace-routes.js +44 -24
- package/dist/server.d.ts +1 -0
- package/dist/server.js +148 -30
- package/dist/session-ai-context.d.ts +5 -1
- package/dist/session-ai-context.js +9 -4
- package/dist/session-registry.d.ts +4 -0
- package/dist/session-registry.js +47 -13
- package/dist/session-transport.js +8 -1
- package/dist/settings-web-access.d.ts +15 -0
- package/dist/settings-web-access.js +37 -0
- package/dist/silicon-employee-defaults.d.ts +29 -0
- package/dist/silicon-employee-defaults.js +41 -0
- package/dist/silicon-employee-dispatch.d.ts +5 -1
- package/dist/silicon-employee-dispatch.js +10 -4
- package/dist/silicon-employee-draft.d.ts +21 -4
- package/dist/silicon-employee-draft.js +103 -16
- package/dist/storage.d.ts +73 -2
- package/dist/storage.js +362 -26
- package/dist/structured-claude-protocol.js +1 -1
- package/dist/structured-client-protocol.js +11 -33
- package/dist/structured-content.d.ts +23 -0
- package/dist/structured-content.js +72 -0
- package/dist/structured-failure.d.ts +16 -0
- package/dist/structured-failure.js +36 -0
- package/dist/structured-pi-adapter.d.ts +8 -3
- package/dist/structured-pi-adapter.js +131 -30
- package/dist/structured-provider-common.d.ts +6 -0
- package/dist/structured-provider-common.js +23 -1
- package/dist/structured-runner.d.ts +45 -0
- package/dist/structured-session-manager.d.ts +78 -4
- package/dist/structured-session-manager.js +513 -129
- package/dist/structured-thinking.d.ts +15 -0
- package/dist/structured-thinking.js +46 -0
- package/dist/subagent-dispatch.d.ts +56 -0
- package/dist/subagent-dispatch.js +102 -0
- package/dist/system-employee.d.ts +4 -3
- package/dist/system-employee.js +7 -4
- package/dist/task-retention.d.ts +23 -0
- package/dist/task-retention.js +69 -0
- package/dist/task-types.d.ts +4 -0
- package/dist/task-types.js +3 -0
- package/dist/team-dispatch.d.ts +101 -0
- package/dist/team-dispatch.js +269 -0
- package/dist/tool-preview.js +7 -1
- package/dist/tui/commands.js +50 -1
- package/dist/tui/ipc-protocol.d.ts +1 -1
- package/dist/tui/ipc-server.d.ts +4 -0
- package/dist/tui/ipc-server.js +23 -0
- package/dist/turn-heartbeat.d.ts +35 -0
- package/dist/turn-heartbeat.js +64 -0
- package/dist/types.d.ts +147 -1
- package/dist/user-profile.d.ts +33 -0
- package/dist/user-profile.js +70 -0
- package/dist/web-ui/chat-message-meta.d.ts +11 -0
- package/dist/web-ui/chat-message-meta.js +47 -0
- package/dist/web-ui/content/ai-teams.js +13 -13
- package/dist/web-ui/content/scripts.js +795 -95
- package/dist/web-ui/content/styles.css +1 -1
- package/dist/web-ui/content/tailwind.css +1 -6808
- package/dist/web-ui/content/vendor/qrcode/qrcode.bundle.js +1 -1
- package/dist/web-ui/embedded-assets.d.ts +1 -1
- package/dist/web-ui/embedded-assets.js +5 -5
- package/dist/web-ui/index.d.ts +1 -1
- package/dist/web-ui/index.js +3 -3
- package/dist/web-ui/markdown.d.ts +2 -0
- package/dist/web-ui/markdown.js +111 -0
- package/dist/web-ui/page.d.ts +4 -0
- package/dist/web-ui/page.js +8 -0
- package/dist/web-ui/react/local-preview/controller.d.ts +30 -0
- package/dist/web-ui/react/local-preview/controller.js +159 -0
- package/dist/web-ui/running-activity.d.ts +63 -0
- package/dist/web-ui/running-activity.js +134 -0
- package/dist/web-ui/styles.js +2 -11
- package/package.json +7 -2
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { type AiTeamRun } from "./ai-team-types.js";
|
|
2
|
+
import { type AiTeamRunner } from "./ai-team-runner.js";
|
|
3
|
+
import { type ConversationDetail, type ConversationInstance, type ConversationReceipt, type ConversationSummary, type ConversationTarget, type ConversationSessionUpdate } from "./conversation-types.js";
|
|
4
|
+
import type { WandStorage } from "./storage.js";
|
|
5
|
+
import type { StructuredSessionManager } from "./structured-session-manager.js";
|
|
6
|
+
import type { ConversationTurn, ProcessEvent, WandConfig } from "./types.js";
|
|
7
|
+
export interface GroupInput {
|
|
8
|
+
employeeIds?: string[];
|
|
9
|
+
templateId?: string;
|
|
10
|
+
excludedMemberIds?: string[];
|
|
11
|
+
leaderId?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
duties?: Record<string, string>;
|
|
14
|
+
}
|
|
15
|
+
interface ConversationDispatchInput {
|
|
16
|
+
title?: string;
|
|
17
|
+
description: string;
|
|
18
|
+
workspaceId?: string;
|
|
19
|
+
cwd?: string;
|
|
20
|
+
memberVersion?: number;
|
|
21
|
+
continueTaskId?: string;
|
|
22
|
+
}
|
|
23
|
+
/** Business coordination only; all execution remains in StructuredSessionManager / AiTeamRunner. */
|
|
24
|
+
export declare class ConversationService {
|
|
25
|
+
private readonly deps;
|
|
26
|
+
constructor(deps: {
|
|
27
|
+
storage: WandStorage;
|
|
28
|
+
structured: Pick<StructuredSessionManager, "createSession" | "createRelaySession" | "get" | "sendMessage" | "appendRelayTurns">;
|
|
29
|
+
runner: AiTeamRunner;
|
|
30
|
+
config: WandConfig;
|
|
31
|
+
deleteSession?(id: string): void;
|
|
32
|
+
notifySession?(update: ConversationSessionUpdate): void;
|
|
33
|
+
});
|
|
34
|
+
private readonly removals;
|
|
35
|
+
private readonly pendingOperations;
|
|
36
|
+
private readonly previewTimers;
|
|
37
|
+
/** Reuse session events; send only a bounded IM projection, never a second execution protocol. */
|
|
38
|
+
ingestSessionEvent(event: ProcessEvent): void;
|
|
39
|
+
dispose(): void;
|
|
40
|
+
private get storage();
|
|
41
|
+
private snapshot;
|
|
42
|
+
/** Explicit startup/event migration, never a GET repair and never an invented group. */
|
|
43
|
+
importRun(run: AiTeamRun): void;
|
|
44
|
+
migrateExistingChats(): void;
|
|
45
|
+
pendingEmployee(employeeId: string): ConversationInstance;
|
|
46
|
+
private requireInstance;
|
|
47
|
+
/** 会话里「我自己」的署名与头像:跟随当前设置,改设置不改写历史回合。 */
|
|
48
|
+
private selfAuthor;
|
|
49
|
+
private selfName;
|
|
50
|
+
private memberReasons;
|
|
51
|
+
private turns;
|
|
52
|
+
summary(instance: ConversationInstance): ConversationSummary;
|
|
53
|
+
list(): ConversationSummary[];
|
|
54
|
+
updateListState(id: string, patch: {
|
|
55
|
+
pinned?: boolean;
|
|
56
|
+
dissolved?: boolean;
|
|
57
|
+
}): ConversationSummary;
|
|
58
|
+
/** Delete only this conversation's owned channels and, for groups, its linked task resources. */
|
|
59
|
+
remove(id: string): Promise<void>;
|
|
60
|
+
private removeOwnedResources;
|
|
61
|
+
history(id: string): ConversationTurn[];
|
|
62
|
+
detail(id: string): ConversationDetail;
|
|
63
|
+
/** Read-only, bounded projection of the exact accepted run. Never follow a group's newest task. */
|
|
64
|
+
private taskPreview;
|
|
65
|
+
private groupTeam;
|
|
66
|
+
/** `autoName` 是自动群的首轮任务标题:保持 auto 命名,名字继续跟随最新任务。 */
|
|
67
|
+
private newGroup;
|
|
68
|
+
private request;
|
|
69
|
+
private performRequest;
|
|
70
|
+
receipt(requestId: string): ConversationReceipt | null;
|
|
71
|
+
createGroup(requestId: string, input: GroupInput): Promise<ConversationReceipt>;
|
|
72
|
+
invite(id: string, requestId: string, version: number, input: GroupInput): Promise<ConversationReceipt>;
|
|
73
|
+
private cwd;
|
|
74
|
+
private ensureRelay;
|
|
75
|
+
/** Explicit resource action may prepare a channel; it never sends or starts a model. */
|
|
76
|
+
prepare(id: string, requestId: string, explicitCwd?: string): Promise<ConversationReceipt>;
|
|
77
|
+
private communicationChannel;
|
|
78
|
+
send(id: string, requestId: string, input: string, target: ConversationTarget, explicitCwd?: string, echo?: boolean): Promise<ConversationReceipt>;
|
|
79
|
+
/** One IM message is one fresh model context. No task, team, relay or previous DM history. */
|
|
80
|
+
private startMessageSession;
|
|
81
|
+
private requireTarget;
|
|
82
|
+
dispatch(id: string, requestId: string, input: ConversationDispatchInput): Promise<ConversationReceipt>;
|
|
83
|
+
/** Both explicit task forms and leading @ messages share one atomic acceptance/idempotency boundary. */
|
|
84
|
+
private dispatchInRequest;
|
|
85
|
+
act(id: string, requestId: string, target: {
|
|
86
|
+
taskId: string;
|
|
87
|
+
runId: string;
|
|
88
|
+
}, action: string, extraSteps?: number): Promise<ConversationReceipt>;
|
|
89
|
+
}
|
|
90
|
+
export {};
|