@wrongstack/core 0.286.0 → 0.287.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/boot.d.ts.map +1 -1
- package/dist/coordination/brain-monitor.d.ts +15 -0
- package/dist/coordination/brain-monitor.d.ts.map +1 -1
- package/dist/coordination/delegate-tool.d.ts +8 -14
- package/dist/coordination/delegate-tool.d.ts.map +1 -1
- package/dist/coordination/director/director-btw-notes.d.ts +20 -0
- package/dist/coordination/director/director-btw-notes.d.ts.map +1 -0
- package/dist/coordination/director/director-collab.d.ts +40 -0
- package/dist/coordination/director/director-collab.d.ts.map +1 -0
- package/dist/coordination/director.d.ts +27 -8
- package/dist/coordination/director.d.ts.map +1 -1
- package/dist/coordination/fleet-manager.d.ts +21 -0
- package/dist/coordination/fleet-manager.d.ts.map +1 -1
- package/dist/coordination/fleet.d.ts +2 -3
- package/dist/coordination/fleet.d.ts.map +1 -1
- package/dist/coordination/global-mailbox.d.ts +36 -22
- package/dist/coordination/global-mailbox.d.ts.map +1 -1
- package/dist/coordination/icoordinator.d.ts +1 -3
- package/dist/coordination/icoordinator.d.ts.map +1 -1
- package/dist/coordination/index.js +708 -442
- package/dist/coordination/index.js.map +4 -4
- package/dist/coordination/mail-tools.d.ts.map +1 -1
- package/dist/coordination/mailbox-message-codec.d.ts +21 -1
- package/dist/coordination/mailbox-message-codec.d.ts.map +1 -1
- package/dist/coordination/mailbox-types.d.ts +42 -1
- package/dist/coordination/mailbox-types.d.ts.map +1 -1
- package/dist/core/agent-loop.d.ts.map +1 -1
- package/dist/core/agent-response.d.ts +10 -1
- package/dist/core/agent-response.d.ts.map +1 -1
- package/dist/core/agent-tools.d.ts.map +1 -1
- package/dist/core/agent.d.ts +8 -0
- package/dist/core/agent.d.ts.map +1 -1
- package/dist/core/context.d.ts +25 -0
- package/dist/core/context.d.ts.map +1 -1
- package/dist/core/conversation-state.d.ts +6 -0
- package/dist/core/conversation-state.d.ts.map +1 -1
- package/dist/core/fallback-model.d.ts.map +1 -1
- package/dist/core/mailbox-loop.d.ts +12 -5
- package/dist/core/mailbox-loop.d.ts.map +1 -1
- package/dist/core/system-prompt-builder.d.ts +14 -6
- package/dist/core/system-prompt-builder.d.ts.map +1 -1
- package/dist/defaults/index.d.ts +0 -1
- package/dist/defaults/index.d.ts.map +1 -1
- package/dist/defaults/index.js +834 -1465
- package/dist/defaults/index.js.map +4 -4
- package/dist/execution/auto-compaction-middleware.d.ts +8 -1
- package/dist/execution/auto-compaction-middleware.d.ts.map +1 -1
- package/dist/execution/compaction-core.d.ts.map +1 -1
- package/dist/execution/council-brain.d.ts.map +1 -1
- package/dist/execution/council-orchestrator.d.ts +32 -0
- package/dist/execution/council-orchestrator.d.ts.map +1 -0
- package/dist/execution/council-personas.d.ts +19 -0
- package/dist/execution/council-personas.d.ts.map +1 -0
- package/dist/execution/council-profiles.d.ts +34 -0
- package/dist/execution/council-profiles.d.ts.map +1 -0
- package/dist/execution/council-prompts.d.ts +21 -0
- package/dist/execution/council-prompts.d.ts.map +1 -0
- package/dist/execution/council-resolution.d.ts +57 -0
- package/dist/execution/council-resolution.d.ts.map +1 -0
- package/dist/execution/design-kit-loader.d.ts.map +1 -1
- package/dist/execution/enhance-recovery.d.ts +35 -0
- package/dist/execution/enhance-recovery.d.ts.map +1 -0
- package/dist/execution/error-handler.d.ts.map +1 -1
- package/dist/execution/index.d.ts +6 -0
- package/dist/execution/index.d.ts.map +1 -1
- package/dist/execution/index.js +1738 -161
- package/dist/execution/index.js.map +4 -4
- package/dist/execution/intelligent-compactor.d.ts +18 -7
- package/dist/execution/intelligent-compactor.d.ts.map +1 -1
- package/dist/execution/one-shot-llm.d.ts +52 -0
- package/dist/execution/one-shot-llm.d.ts.map +1 -0
- package/dist/execution/prompt-enhancer.d.ts +23 -4
- package/dist/execution/prompt-enhancer.d.ts.map +1 -1
- package/dist/execution/prompt-enhancer.js +24 -6
- package/dist/execution/prompt-enhancer.js.map +2 -2
- package/dist/execution/selective-compactor.d.ts +4 -4
- package/dist/execution/strategy-compactor.d.ts +7 -0
- package/dist/execution/strategy-compactor.d.ts.map +1 -1
- package/dist/execution/tool-executor.d.ts +19 -5
- package/dist/execution/tool-executor.d.ts.map +1 -1
- package/dist/hooks/registry.d.ts.map +1 -1
- package/dist/hooks/runner.d.ts.map +1 -1
- package/dist/hooks/shell-executor.d.ts.map +1 -1
- package/dist/hq/alerts.d.ts +5 -0
- package/dist/hq/alerts.d.ts.map +1 -1
- package/dist/hq/auth-store.d.ts +17 -7
- package/dist/hq/auth-store.d.ts.map +1 -1
- package/dist/hq/commands.d.ts +8 -4
- package/dist/hq/commands.d.ts.map +1 -1
- package/dist/hq/cost-bridge.d.ts +5 -3
- package/dist/hq/cost-bridge.d.ts.map +1 -1
- package/dist/hq/fleet-bridge.d.ts.map +1 -1
- package/dist/hq/index.d.ts +0 -1
- package/dist/hq/index.d.ts.map +1 -1
- package/dist/hq/index.js +471 -294
- package/dist/hq/index.js.map +4 -4
- package/dist/hq/persistence.d.ts +42 -0
- package/dist/hq/persistence.d.ts.map +1 -1
- package/dist/hq/protocol/brain.d.ts +24 -0
- package/dist/hq/protocol/brain.d.ts.map +1 -0
- package/dist/hq/protocol/browser.d.ts +12 -0
- package/dist/hq/protocol/browser.d.ts.map +1 -0
- package/dist/hq/protocol/client.d.ts +69 -0
- package/dist/hq/protocol/client.d.ts.map +1 -0
- package/dist/hq/protocol/core.d.ts +130 -0
- package/dist/hq/protocol/core.d.ts.map +1 -0
- package/dist/hq/protocol/fleet.d.ts +73 -0
- package/dist/hq/protocol/fleet.d.ts.map +1 -0
- package/dist/hq/protocol/mailbox.d.ts +76 -0
- package/dist/hq/protocol/mailbox.d.ts.map +1 -0
- package/dist/hq/protocol/mcp.d.ts +51 -0
- package/dist/hq/protocol/mcp.d.ts.map +1 -0
- package/dist/hq/protocol/project.d.ts +26 -0
- package/dist/hq/protocol/project.d.ts.map +1 -0
- package/dist/hq/protocol/session.d.ts +153 -0
- package/dist/hq/protocol/session.d.ts.map +1 -0
- package/dist/hq/protocol/tool.d.ts +31 -0
- package/dist/hq/protocol/tool.d.ts.map +1 -0
- package/dist/hq/protocol.d.ts +10 -611
- package/dist/hq/protocol.d.ts.map +1 -1
- package/dist/index.d.ts +12 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4540 -2283
- package/dist/index.js.map +4 -4
- package/dist/infrastructure/index.js +13 -11
- package/dist/infrastructure/index.js.map +2 -2
- package/dist/infrastructure/token-counter.d.ts.map +1 -1
- package/dist/kernel/events/agent-events.d.ts +283 -0
- package/dist/kernel/events/agent-events.d.ts.map +1 -0
- package/dist/kernel/events/brain-events.d.ts +176 -0
- package/dist/kernel/events/brain-events.d.ts.map +1 -0
- package/dist/kernel/events/fleet-events.d.ts +39 -0
- package/dist/kernel/events/fleet-events.d.ts.map +1 -0
- package/dist/kernel/events/memory-events.d.ts +165 -0
- package/dist/kernel/events/memory-events.d.ts.map +1 -0
- package/dist/kernel/events/provider-events.d.ts +98 -0
- package/dist/kernel/events/provider-events.d.ts.map +1 -0
- package/dist/kernel/events/sdd-events.d.ts +118 -0
- package/dist/kernel/events/sdd-events.d.ts.map +1 -0
- package/dist/kernel/events/session-events.d.ts +227 -0
- package/dist/kernel/events/session-events.d.ts.map +1 -0
- package/dist/kernel/events/tool-events.d.ts +185 -0
- package/dist/kernel/events/tool-events.d.ts.map +1 -0
- package/dist/kernel/events/worktree-events.d.ts +58 -0
- package/dist/kernel/events/worktree-events.d.ts.map +1 -0
- package/dist/kernel/events.d.ts +10 -1298
- package/dist/kernel/events.d.ts.map +1 -1
- package/dist/kernel/index.js +22 -2
- package/dist/kernel/index.js.map +2 -2
- package/dist/kernel/run-controller.d.ts +15 -0
- package/dist/kernel/run-controller.d.ts.map +1 -1
- package/dist/mailbox-attach.d.ts.map +1 -1
- package/dist/models/index.js +19 -6
- package/dist/models/index.js.map +2 -2
- package/dist/models/llm-selector.d.ts +7 -0
- package/dist/models/llm-selector.d.ts.map +1 -1
- package/dist/plugins/auto-review-plugin.d.ts +36 -0
- package/dist/plugins/auto-review-plugin.d.ts.map +1 -0
- package/dist/plugins/chimera-plugin.d.ts +8 -0
- package/dist/plugins/chimera-plugin.d.ts.map +1 -1
- package/dist/security/index.js +7 -2
- package/dist/security/index.js.map +2 -2
- package/dist/security/secret-scrubber.d.ts.map +1 -1
- package/dist/skills/index.js.map +2 -2
- package/dist/storage/config-loader.d.ts.map +1 -1
- package/dist/storage/goal-kanban.d.ts +69 -0
- package/dist/storage/goal-kanban.d.ts.map +1 -0
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +425 -717
- package/dist/storage/index.js.map +4 -4
- package/dist/storage/memory-consolidator.d.ts +9 -1
- package/dist/storage/memory-consolidator.d.ts.map +1 -1
- package/dist/tools/council-tool.d.ts +25 -0
- package/dist/tools/council-tool.d.ts.map +1 -0
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +1884 -12
- package/dist/tools/index.js.map +4 -4
- package/dist/tools/one-shot-llm-tool.d.ts +51 -0
- package/dist/tools/one-shot-llm-tool.d.ts.map +1 -0
- package/dist/types/config.d.ts +27 -3
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/context-window.d.ts.map +1 -1
- package/dist/types/council.d.ts +134 -0
- package/dist/types/council.d.ts.map +1 -0
- package/dist/types/default-config.d.ts +3 -3
- package/dist/types/hooks.d.ts +14 -0
- package/dist/types/hooks.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +29 -8
- package/dist/types/index.js.map +3 -3
- package/dist/types/one-shot-llm.d.ts +128 -0
- package/dist/types/one-shot-llm.d.ts.map +1 -0
- package/dist/types/plugin.d.ts +6 -0
- package/dist/types/plugin.d.ts.map +1 -1
- package/dist/types/provider.d.ts +17 -0
- package/dist/types/provider.d.ts.map +1 -1
- package/dist/types/system-prompt.d.ts +2 -1
- package/dist/types/system-prompt.d.ts.map +1 -1
- package/dist/types/tool-executor.d.ts +10 -0
- package/dist/types/tool-executor.d.ts.map +1 -1
- package/dist/utils/atomic-write.d.ts.map +1 -1
- package/dist/utils/index.js +75 -8
- package/dist/utils/index.js.map +3 -3
- package/dist/utils/tool-wire-compact.d.ts +1 -0
- package/dist/utils/tool-wire-compact.d.ts.map +1 -1
- package/dist/utils/wstack-paths.d.ts +20 -4
- package/dist/utils/wstack-paths.d.ts.map +1 -1
- package/instructions/cli/next-task-predictor.md +5 -3
- package/instructions/coordination/subagent-baseline.md +8 -7
- package/instructions/leader-after-task.md +18 -9
- package/instructions/llm/council-judge.md +19 -0
- package/instructions/llm/council-voter.md +22 -0
- package/instructions/modes/architect.md +14 -9
- package/instructions/modes/audit-lite.md +9 -7
- package/instructions/modes/brief-system.md +12 -12
- package/instructions/modes/brief.md +7 -5
- package/instructions/modes/code-auditor.md +13 -8
- package/instructions/modes/code-reviewer.md +13 -8
- package/instructions/modes/debug-lite.md +7 -6
- package/instructions/modes/debugger.md +13 -9
- package/instructions/modes/devops.md +13 -9
- package/instructions/modes/plan-lite.md +7 -6
- package/instructions/modes/refactor-lite.md +7 -6
- package/instructions/modes/refactorer.md +14 -9
- package/instructions/modes/research-lite.md +8 -6
- package/instructions/modes/research-web.md +18 -55
- package/instructions/modes/review-lite.md +7 -6
- package/instructions/modes/teach-system.md +15 -15
- package/instructions/modes/teach.md +13 -12
- package/instructions/modes/test-lite.md +6 -5
- package/instructions/modes/tester.md +13 -9
- package/instructions/modes/ui-design.md +14 -8
- package/instructions/sections/tool/commit-hygiene.md +1 -7
- package/instructions/sections/tool/common-patterns.md +5 -5
- package/instructions/sections/tool/delegation-full.md +3 -31
- package/instructions/sections/tool/mailbox-compact.md +1 -1
- package/instructions/sections/tool/mailbox-full.md +6 -22
- package/instructions/system.md +278 -39
- package/package.json +2 -2
- package/skills/mailbox-bridge/SKILL.md +16 -7
- package/skills/output-standards/SKILL.md +16 -16
- package/skills/wrongstack-mailbox/SKILL.md +6 -0
- package/dist/coordination/director-construction.d.ts +0 -90
- package/dist/coordination/director-construction.d.ts.map +0 -1
- package/dist/hq/agent-bridge.d.ts +0 -27
- package/dist/hq/agent-bridge.d.ts.map +0 -1
- package/dist/storage/memory-store.d.ts +0 -119
- package/dist/storage/memory-store.d.ts.map +0 -1
package/dist/hq/protocol.d.ts
CHANGED
|
@@ -1,612 +1,11 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
toolArgs: HqToolArgsPolicy;
|
|
12
|
-
paths: HqPathPolicy;
|
|
13
|
-
}
|
|
14
|
-
export declare const DEFAULT_HQ_REDACTION_POLICY: HqRedactionPolicy;
|
|
15
|
-
/**
|
|
16
|
-
* Per-string cap applied when redacting chat-transcript events
|
|
17
|
-
* (`session.transcript` / `agent.message`). The generic 500-char summary cap
|
|
18
|
-
* is right for telemetry rollups but would mangle full chat-history rendering
|
|
19
|
-
* in the HQ Console once `rawContent` is enabled — messages and tool outputs
|
|
20
|
-
* routinely exceed it. Applied publisher-side AND at the server's re-redaction
|
|
21
|
-
* so both hops agree.
|
|
22
|
-
*/
|
|
23
|
-
export declare const HQ_TRANSCRIPT_TEXT_CAP = 16000;
|
|
24
|
-
export interface HqClientIdentity {
|
|
25
|
-
clientId: string;
|
|
26
|
-
kind: HqClientKind;
|
|
27
|
-
version?: string;
|
|
28
|
-
machineId: string;
|
|
29
|
-
hostname?: string;
|
|
30
|
-
pid?: number;
|
|
31
|
-
startedAt: string;
|
|
32
|
-
}
|
|
33
|
-
export interface HqProjectIdentity {
|
|
34
|
-
projectId: string;
|
|
35
|
-
projectRoot: string;
|
|
36
|
-
projectName: string;
|
|
37
|
-
gitRemote?: string;
|
|
38
|
-
gitBranch?: string;
|
|
39
|
-
machineId: string;
|
|
40
|
-
workspaceKind: HqWorkspaceKind;
|
|
41
|
-
}
|
|
42
|
-
export interface HqClientHelloPayload {
|
|
43
|
-
protocolVersion: HqProtocolVersion;
|
|
44
|
-
client: HqClientIdentity;
|
|
45
|
-
project: HqProjectIdentity;
|
|
46
|
-
capabilities: readonly HqClientCapability[];
|
|
47
|
-
/** Publisher-side policy already applied before telemetry leaves the client. */
|
|
48
|
-
redactionPolicy?: HqRedactionPolicy;
|
|
49
|
-
}
|
|
50
|
-
export interface HqWelcomePayload {
|
|
51
|
-
type: 'hq.welcome';
|
|
52
|
-
protocolVersion: HqProtocolVersion;
|
|
53
|
-
serverTime: string;
|
|
54
|
-
acceptedCapabilities: readonly HqClientCapability[];
|
|
55
|
-
redactionPolicy: HqRedactionPolicy;
|
|
56
|
-
}
|
|
57
|
-
export interface HqEventEnvelope<TPayload = unknown> {
|
|
58
|
-
id: string;
|
|
59
|
-
type: HqEventType | (string & {});
|
|
60
|
-
schemaVersion: HqProtocolVersion;
|
|
61
|
-
timestamp: string;
|
|
62
|
-
clientId: string;
|
|
63
|
-
projectId: string;
|
|
64
|
-
sessionId?: string;
|
|
65
|
-
runId?: string;
|
|
66
|
-
seq: number;
|
|
67
|
-
payload: TPayload;
|
|
68
|
-
}
|
|
69
|
-
export type HqEventType = 'client.hello' | 'client.heartbeat' | 'session.started' | 'session.status' | 'session.usage' | 'tool.started' | 'tool.completed' | 'fleet.snapshot' | 'fleet.event' | 'mailbox.snapshot' | 'mailbox.event' | 'worklist.snapshot' | 'git.snapshot' | 'agent.message' | 'agent.status' | 'session.snapshot' | 'session.transcript' | 'session.ended' | 'brain.event' | 'worktree.event' | 'mcp.health.snapshot' | 'mcp.operation';
|
|
70
|
-
export interface HqClientHeartbeatPayload {
|
|
71
|
-
uptimeMs: number;
|
|
72
|
-
activeSessionId?: string;
|
|
73
|
-
activeRunId?: string;
|
|
74
|
-
status: HqProjectStatus;
|
|
75
|
-
activeSubagents?: number;
|
|
76
|
-
queuedTasks?: number;
|
|
77
|
-
}
|
|
78
|
-
export type HqSessionStatus = 'idle' | 'running' | 'paused' | 'completed' | 'failed';
|
|
79
|
-
export interface HqSessionStartedPayload {
|
|
80
|
-
sessionId: string;
|
|
81
|
-
provider?: string;
|
|
82
|
-
model?: string;
|
|
83
|
-
startedAt: string;
|
|
84
|
-
}
|
|
85
|
-
export interface HqSessionStatusPayload {
|
|
86
|
-
status: HqSessionStatus;
|
|
87
|
-
phase?: string;
|
|
88
|
-
message?: string;
|
|
89
|
-
}
|
|
90
|
-
export interface HqUsagePayload {
|
|
91
|
-
inputTokens?: number;
|
|
92
|
-
outputTokens?: number;
|
|
93
|
-
totalTokens?: number;
|
|
94
|
-
costUsd?: number;
|
|
95
|
-
durationMs?: number;
|
|
96
|
-
}
|
|
97
|
-
export interface HqToolStartedPayload {
|
|
98
|
-
toolName: string;
|
|
99
|
-
capabilities?: readonly string[];
|
|
100
|
-
risk?: string;
|
|
101
|
-
inputSummary?: unknown;
|
|
102
|
-
}
|
|
103
|
-
export interface HqToolCompletedPayload {
|
|
104
|
-
toolName: string;
|
|
105
|
-
status: 'success' | 'error' | 'timeout' | 'cancelled';
|
|
106
|
-
durationMs: number;
|
|
107
|
-
outputSummary?: unknown;
|
|
108
|
-
errorClass?: string;
|
|
109
|
-
}
|
|
110
|
-
export interface HqSubagentSummary {
|
|
111
|
-
subagentId: string;
|
|
112
|
-
role?: string;
|
|
113
|
-
status: 'pending' | 'running' | 'idle' | 'completed' | 'failed' | 'stopped';
|
|
114
|
-
task?: string;
|
|
115
|
-
currentTool?: string;
|
|
116
|
-
runtimeMs?: number;
|
|
117
|
-
costUsd?: number;
|
|
118
|
-
lastActivityAt?: string;
|
|
119
|
-
}
|
|
120
|
-
export interface HqFleetSnapshotPayload {
|
|
121
|
-
runId: string;
|
|
122
|
-
activeSubagents: number;
|
|
123
|
-
queuedTasks: number;
|
|
124
|
-
completedTasks: number;
|
|
125
|
-
failedTasks: number;
|
|
126
|
-
totalCostUsd?: number;
|
|
127
|
-
subagents: readonly HqSubagentSummary[];
|
|
128
|
-
}
|
|
129
|
-
/** Payload for `agent.message` events — a subagent's conversational output. */
|
|
130
|
-
export interface HqAgentMessagePayload {
|
|
131
|
-
subagentId: string;
|
|
132
|
-
agentName: string;
|
|
133
|
-
content: string;
|
|
134
|
-
kind: 'text' | 'thinking' | 'tool_use' | 'tool_result' | 'error' | 'status' | 'system';
|
|
135
|
-
iteration: number;
|
|
136
|
-
ts: string;
|
|
137
|
-
toolName?: string;
|
|
138
|
-
costUsd?: number;
|
|
139
|
-
}
|
|
140
|
-
/** Payload for `agent.status` events — a subagent's lifecycle transition. */
|
|
141
|
-
export interface HqAgentStatusPayload {
|
|
142
|
-
subagentId: string;
|
|
143
|
-
agentName: string;
|
|
144
|
-
status: 'spawned' | 'running' | 'completed' | 'failed' | 'timeout' | 'stopped' | 'budget_exhausted';
|
|
145
|
-
ts: string;
|
|
146
|
-
summary?: string;
|
|
147
|
-
task?: string;
|
|
148
|
-
}
|
|
149
|
-
export interface HqFleetEventPayload {
|
|
150
|
-
runId: string;
|
|
151
|
-
subagentId?: string;
|
|
152
|
-
event: string;
|
|
153
|
-
summary?: string;
|
|
154
|
-
data?: unknown;
|
|
155
|
-
}
|
|
156
|
-
export type HqBrainEventKind = 'decision_requested' | 'decision_answered' | 'decision_ask_human' | 'human_answered' | 'decision_denied' | 'intervention';
|
|
157
|
-
export interface HqBrainEventPayload {
|
|
158
|
-
/** Which brain lifecycle event this is (mirrors the EventBus `brain.*` name suffix). */
|
|
159
|
-
kind: HqBrainEventKind;
|
|
160
|
-
/** The decision request id, when present (decision_request/answer/deny). */
|
|
161
|
-
requestId?: string;
|
|
162
|
-
/** Short human-readable question the brain was asked. */
|
|
163
|
-
question?: string;
|
|
164
|
-
/** The source that triggered the decision (e.g. 'autonomy', 'system'). */
|
|
165
|
-
source?: string;
|
|
166
|
-
/** Resolved risk tier, when known (e.g. 'low' | 'medium' | 'high'). */
|
|
167
|
-
risk?: string;
|
|
168
|
-
/** The chosen decision kind, when answered/denied (e.g. 'answer' | 'ask_human' | 'deny'). */
|
|
169
|
-
decision?: string;
|
|
170
|
-
/** Free-text rationale or answer payload, when present. */
|
|
171
|
-
detail?: string;
|
|
172
|
-
/** For `intervention`: the watched signal that engaged the brain. */
|
|
173
|
-
interventionKind?: 'tool_failure_streak' | 'error_storm' | 'agent_stall' | 'file_churn';
|
|
174
|
-
/** For `intervention`: true when a steer was actually delivered to the agent. */
|
|
175
|
-
intervened?: boolean;
|
|
176
|
-
/** Epoch milliseconds at which the event occurred. */
|
|
177
|
-
at: number;
|
|
178
|
-
}
|
|
179
|
-
export type HqWorktreeEventKind = 'allocated' | 'committed' | 'merged' | 'conflict' | 'released' | 'failed';
|
|
180
|
-
export interface HqWorktreeEventPayload {
|
|
181
|
-
/** Which worktree lifecycle event this is (mirrors `worktree.<kind>`). */
|
|
182
|
-
kind: HqWorktreeEventKind;
|
|
183
|
-
handleId: string;
|
|
184
|
-
ownerId: string;
|
|
185
|
-
ownerLabel?: string;
|
|
186
|
-
slug?: string;
|
|
187
|
-
branch?: string;
|
|
188
|
-
baseBranch?: string;
|
|
189
|
-
/** For `committed`: diff stats. */
|
|
190
|
-
insertions?: number;
|
|
191
|
-
deletions?: number;
|
|
192
|
-
files?: number;
|
|
193
|
-
sha?: string;
|
|
194
|
-
/** For `merged`: whether the merge was a squash. */
|
|
195
|
-
squash?: boolean;
|
|
196
|
-
/** For `conflict`: the list of conflicting files. */
|
|
197
|
-
conflictFiles?: readonly string[];
|
|
198
|
-
/** For `released`: whether the worktree was kept (true) or pruned (false). */
|
|
199
|
-
kept?: boolean;
|
|
200
|
-
/** For `failed`: the error message. */
|
|
201
|
-
error?: string;
|
|
202
|
-
}
|
|
203
|
-
export type HqSessionLiveStatus = 'active' | 'idle' | 'closing' | 'stale';
|
|
204
|
-
export type HqSessionAgentLiveStatus = 'idle' | 'running' | 'streaming' | 'waiting_user' | 'error';
|
|
205
|
-
/** A single live agent inside a session snapshot (mirrors SessionRegistry's AgentEntry). */
|
|
206
|
-
export interface HqSessionAgentSummary {
|
|
207
|
-
id: string;
|
|
208
|
-
name: string;
|
|
209
|
-
/** UTC ISO timestamp when this agent/run started, when known. */
|
|
210
|
-
startedAt?: string;
|
|
211
|
-
status: HqSessionAgentLiveStatus;
|
|
212
|
-
currentTool?: string;
|
|
213
|
-
iterations: number;
|
|
214
|
-
toolCalls: number;
|
|
215
|
-
costUsd?: number;
|
|
216
|
-
tokensIn?: number;
|
|
217
|
-
tokensOut?: number;
|
|
218
|
-
ctxPct?: number;
|
|
219
|
-
model?: string;
|
|
220
|
-
/** Throttled tail of the response currently streaming, when known. */
|
|
221
|
-
partialText?: string;
|
|
222
|
-
lastActivityAt: string;
|
|
223
|
-
}
|
|
224
|
-
/** Payload for `session.snapshot` — one connected terminal's live state. */
|
|
225
|
-
export interface HqSessionSnapshotPayload {
|
|
226
|
-
sessionId: string;
|
|
227
|
-
clientKind: HqClientKind;
|
|
228
|
-
machineId: string;
|
|
229
|
-
hostname?: string;
|
|
230
|
-
pid?: number;
|
|
231
|
-
projectId: string;
|
|
232
|
-
projectName: string;
|
|
233
|
-
projectRoot: string;
|
|
234
|
-
gitBranch?: string;
|
|
235
|
-
status: HqSessionLiveStatus;
|
|
236
|
-
startedAt: string;
|
|
237
|
-
lastActivityAt: string;
|
|
238
|
-
agentCount: number;
|
|
239
|
-
agents: readonly HqSessionAgentSummary[];
|
|
240
|
-
}
|
|
241
|
-
export type HqTranscriptRole = 'user' | 'assistant' | 'thinking' | 'tool' | 'system' | 'error';
|
|
242
|
-
/** One rendered conversation turn. Canonical shape shared by client streaming
|
|
243
|
-
* and server-side JSONL replay so both planes agree. */
|
|
244
|
-
export interface HqTranscriptEntry {
|
|
245
|
-
ts: string;
|
|
246
|
-
role: HqTranscriptRole;
|
|
247
|
-
text: string;
|
|
248
|
-
tool?: string;
|
|
249
|
-
/** Stringified tool input/arguments, for tool calls (shown alongside the result). */
|
|
250
|
-
toolInput?: string;
|
|
251
|
-
durationMs?: number;
|
|
252
|
-
isError?: boolean;
|
|
253
|
-
toolUseId?: string;
|
|
254
|
-
/** Which agent/subagent produced this turn, when attribution is known. */
|
|
255
|
-
agentId?: string;
|
|
256
|
-
}
|
|
257
|
-
/** Payload for `session.transcript` — an incremental batch of new turns. */
|
|
258
|
-
export interface HqTranscriptAppendPayload {
|
|
259
|
-
sessionId: string;
|
|
260
|
-
/** Monotonic sequence index of the FIRST entry in this batch within the session. */
|
|
261
|
-
fromSeq: number;
|
|
262
|
-
entries: readonly HqTranscriptEntry[];
|
|
263
|
-
}
|
|
264
|
-
/** Payload for `session.ended` — a terminal closed. */
|
|
265
|
-
export interface HqSessionEndedPayload {
|
|
266
|
-
sessionId: string;
|
|
267
|
-
endedAt: string;
|
|
268
|
-
}
|
|
269
|
-
/** A physical machine, aggregated by HQ from connected clients' machineId. */
|
|
270
|
-
export interface HqMachineRecord {
|
|
271
|
-
machineId: string;
|
|
272
|
-
hostname?: string;
|
|
273
|
-
clientCount: number;
|
|
274
|
-
sessionCount: number;
|
|
275
|
-
agentCount: number;
|
|
276
|
-
projectIds: readonly string[];
|
|
277
|
-
lastActivityAt: string;
|
|
278
|
-
}
|
|
279
|
-
export type HqMailboxMessageType = 'note' | 'ask' | 'assign' | 'steer' | 'btw' | 'broadcast' | 'status' | 'result' | 'review' | 'control';
|
|
280
|
-
export type HqMailboxPriority = 'low' | 'normal' | 'high';
|
|
281
|
-
export type HqMailboxAgentStatus = 'idle' | 'running' | 'streaming' | 'waiting_user' | 'error' | 'offline';
|
|
282
|
-
export interface HqMailboxMessageSummary {
|
|
283
|
-
mailId: string;
|
|
284
|
-
messageId: string;
|
|
285
|
-
from: string;
|
|
286
|
-
to: string;
|
|
287
|
-
type: HqMailboxMessageType;
|
|
288
|
-
subject: string;
|
|
289
|
-
priority: HqMailboxPriority;
|
|
290
|
-
timestamp: string;
|
|
291
|
-
replyTo?: string;
|
|
292
|
-
senderSessionId?: string;
|
|
293
|
-
completed: boolean;
|
|
294
|
-
completedBy?: string;
|
|
295
|
-
completedAt?: string;
|
|
296
|
-
unreadCount?: number;
|
|
297
|
-
readCount?: number;
|
|
298
|
-
hasBody: boolean;
|
|
299
|
-
bodyPreview?: string;
|
|
300
|
-
outcomePreview?: string;
|
|
301
|
-
task?: {
|
|
302
|
-
taskId?: string;
|
|
303
|
-
agentRole?: string;
|
|
304
|
-
agentName?: string;
|
|
305
|
-
status?: 'pending' | 'in_progress' | 'completed' | 'failed';
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
export interface HqMailboxAgentSummary {
|
|
309
|
-
agentId: string;
|
|
310
|
-
name: string;
|
|
311
|
-
role?: string;
|
|
312
|
-
sessionId: string;
|
|
313
|
-
status: HqMailboxAgentStatus;
|
|
314
|
-
currentTool?: string;
|
|
315
|
-
currentTask?: string;
|
|
316
|
-
iterations: number;
|
|
317
|
-
toolCalls: number;
|
|
318
|
-
lastActivityAt: string;
|
|
319
|
-
lastSeenAt: string;
|
|
320
|
-
online: boolean;
|
|
321
|
-
source?: 'cli' | 'webui' | 'mcp' | 'acp' | 'http';
|
|
322
|
-
}
|
|
323
|
-
export interface HqMailboxSnapshotPayload {
|
|
324
|
-
mailboxId: string;
|
|
325
|
-
scope: 'project' | 'global';
|
|
326
|
-
messages: readonly HqMailboxMessageSummary[];
|
|
327
|
-
agents: readonly HqMailboxAgentSummary[];
|
|
328
|
-
totals: {
|
|
329
|
-
messages: number;
|
|
330
|
-
unread: number;
|
|
331
|
-
incomplete: number;
|
|
332
|
-
highPriority: number;
|
|
333
|
-
onlineAgents: number;
|
|
334
|
-
};
|
|
335
|
-
}
|
|
336
|
-
export interface HqMailboxEventPayload {
|
|
337
|
-
mailboxId: string;
|
|
338
|
-
action: 'message.sent' | 'message.read' | 'message.completed' | 'message.updated' | 'agent.registered' | 'agent.heartbeat' | 'agent.offline' | 'agent.deregistered';
|
|
339
|
-
message?: HqMailboxMessageSummary;
|
|
340
|
-
agent?: HqMailboxAgentSummary;
|
|
341
|
-
summary?: string;
|
|
342
|
-
}
|
|
343
|
-
export interface HqWorklistSnapshotPayload {
|
|
344
|
-
todos?: HqWorklistCounts;
|
|
345
|
-
tasks?: HqWorklistCounts;
|
|
346
|
-
plans?: HqWorklistCounts;
|
|
347
|
-
activeItem?: string;
|
|
348
|
-
}
|
|
349
|
-
export interface HqWorklistCounts {
|
|
350
|
-
total: number;
|
|
351
|
-
pending: number;
|
|
352
|
-
inProgress: number;
|
|
353
|
-
completed: number;
|
|
354
|
-
failed?: number;
|
|
355
|
-
}
|
|
356
|
-
export interface HqGitSnapshotPayload {
|
|
357
|
-
branch?: string;
|
|
358
|
-
dirtyFiles?: number;
|
|
359
|
-
stagedFiles?: number;
|
|
360
|
-
ahead?: number;
|
|
361
|
-
behind?: number;
|
|
362
|
-
}
|
|
363
|
-
export interface HqClientRecord {
|
|
364
|
-
clientId: string;
|
|
365
|
-
kind: HqClientKind;
|
|
366
|
-
machineId: string;
|
|
367
|
-
hostname?: string;
|
|
368
|
-
pid?: number;
|
|
369
|
-
version?: string;
|
|
370
|
-
connected: boolean;
|
|
371
|
-
connectedAt?: string;
|
|
372
|
-
lastSeenAt: string;
|
|
373
|
-
projectId: string;
|
|
374
|
-
sessionId?: string;
|
|
375
|
-
capabilities: readonly HqClientCapability[];
|
|
376
|
-
}
|
|
377
|
-
export interface HqProjectRecord {
|
|
378
|
-
projectId: string;
|
|
379
|
-
projectName: string;
|
|
380
|
-
projectRootDisplay: string;
|
|
381
|
-
machineIds: readonly string[];
|
|
382
|
-
gitBranch?: string;
|
|
383
|
-
activeClients: number;
|
|
384
|
-
activeSessions: number;
|
|
385
|
-
activeSubagents: number;
|
|
386
|
-
totalCostUsd: number;
|
|
387
|
-
lastActivityAt: string;
|
|
388
|
-
status: HqProjectStatus;
|
|
389
|
-
}
|
|
390
|
-
export interface HqSessionSummary {
|
|
391
|
-
sessionId: string;
|
|
392
|
-
projectId: string;
|
|
393
|
-
clientId: string;
|
|
394
|
-
status: HqSessionStatus;
|
|
395
|
-
provider?: string;
|
|
396
|
-
model?: string;
|
|
397
|
-
startedAt?: string;
|
|
398
|
-
lastActivityAt: string;
|
|
399
|
-
costUsd?: number;
|
|
400
|
-
}
|
|
401
|
-
export interface HqFleetSummary {
|
|
402
|
-
runId: string;
|
|
403
|
-
projectId: string;
|
|
404
|
-
clientId: string;
|
|
405
|
-
activeSubagents: number;
|
|
406
|
-
queuedTasks: number;
|
|
407
|
-
completedTasks: number;
|
|
408
|
-
failedTasks: number;
|
|
409
|
-
totalCostUsd?: number;
|
|
410
|
-
lastActivityAt: string;
|
|
411
|
-
}
|
|
412
|
-
export interface HqMailboxSummary {
|
|
413
|
-
mailboxId: string;
|
|
414
|
-
projectId: string;
|
|
415
|
-
scope: 'project' | 'global';
|
|
416
|
-
messageCount: number;
|
|
417
|
-
unreadCount: number;
|
|
418
|
-
incompleteCount: number;
|
|
419
|
-
highPriorityCount: number;
|
|
420
|
-
onlineAgentCount: number;
|
|
421
|
-
lastActivityAt: string;
|
|
422
|
-
}
|
|
423
|
-
export interface HqMcpLatencySummary {
|
|
424
|
-
count: number;
|
|
425
|
-
lastMs?: number | undefined;
|
|
426
|
-
minMs?: number | undefined;
|
|
427
|
-
maxMs?: number | undefined;
|
|
428
|
-
p50Ms?: number | undefined;
|
|
429
|
-
p95Ms?: number | undefined;
|
|
430
|
-
}
|
|
431
|
-
export interface HqMcpFailureCounts {
|
|
432
|
-
transport: number;
|
|
433
|
-
protocol: number;
|
|
434
|
-
tool: number;
|
|
435
|
-
}
|
|
436
|
-
export interface HqMcpHealthCheck {
|
|
437
|
-
name: string;
|
|
438
|
-
passed: boolean;
|
|
439
|
-
value?: number | undefined;
|
|
440
|
-
threshold?: number | undefined;
|
|
441
|
-
}
|
|
442
|
-
export type HqMcpHealthState = 'disabled' | 'dormant' | 'connecting' | 'healthy' | 'degraded' | 'failed';
|
|
443
|
-
export type HqMcpConnectionState = 'idle' | 'dormant' | 'connecting' | 'connected' | 'reconnecting' | 'disconnected' | 'failed';
|
|
444
|
-
export interface HqMcpServerHealth {
|
|
445
|
-
name: string;
|
|
446
|
-
projectId: string;
|
|
447
|
-
clientId: string;
|
|
448
|
-
connectionState: HqMcpConnectionState;
|
|
449
|
-
healthState: HqMcpHealthState;
|
|
450
|
-
lastSuccessAt?: string | undefined;
|
|
451
|
-
lastFailureAt?: string | undefined;
|
|
452
|
-
lastFailureKind?: 'transport' | 'protocol' | 'tool' | undefined;
|
|
453
|
-
consecutiveFailures: number;
|
|
454
|
-
failures: HqMcpFailureCounts;
|
|
455
|
-
reconnectCount: number;
|
|
456
|
-
wakeCount: number;
|
|
457
|
-
sleepCount: number;
|
|
458
|
-
restartCount: number;
|
|
459
|
-
connectionLatency: HqMcpLatencySummary;
|
|
460
|
-
discoveryLatency: HqMcpLatencySummary;
|
|
461
|
-
callLatency: HqMcpLatencySummary;
|
|
462
|
-
inFlightCalls: number;
|
|
463
|
-
peakInFlightCalls: number;
|
|
464
|
-
healthChecks: HqMcpHealthCheck[];
|
|
465
|
-
}
|
|
466
|
-
export interface HqMcpHealthSnapshotPayload {
|
|
467
|
-
servers: HqMcpServerHealth[];
|
|
468
|
-
}
|
|
469
|
-
export interface HqMcpOperationPayload {
|
|
470
|
-
operation: Record<string, unknown>;
|
|
471
|
-
servers: HqMcpServerHealth[];
|
|
472
|
-
}
|
|
473
|
-
export interface HqSnapshot {
|
|
474
|
-
generatedAt: string;
|
|
475
|
-
clients: readonly HqClientRecord[];
|
|
476
|
-
projects: readonly HqProjectRecord[];
|
|
477
|
-
sessions: readonly HqSessionSummary[];
|
|
478
|
-
fleets: readonly HqFleetSummary[];
|
|
479
|
-
mailboxes: readonly HqMailboxSummary[];
|
|
480
|
-
/** Physical machines aggregated from connected clients (optional, additive). */
|
|
481
|
-
machines?: readonly HqMachineRecord[];
|
|
482
|
-
/** Live terminal sessions with their agents — the spine of the fleet tree. */
|
|
483
|
-
liveSessions?: readonly HqSessionSnapshotPayload[];
|
|
484
|
-
/** Latest operational health for each MCP server reported by any connected client. */
|
|
485
|
-
mcpServers?: readonly HqMcpServerHealth[];
|
|
486
|
-
totals: {
|
|
487
|
-
activeProjects: number;
|
|
488
|
-
activeClients: number;
|
|
489
|
-
activeSessions: number;
|
|
490
|
-
activeSubagents: number;
|
|
491
|
-
unreadMailboxMessages: number;
|
|
492
|
-
incompleteMailboxMessages: number;
|
|
493
|
-
totalCostUsd: number;
|
|
494
|
-
/** Distinct physical machines currently connected. */
|
|
495
|
-
activeMachines?: number;
|
|
496
|
-
/** Total live agents across all sessions. */
|
|
497
|
-
activeAgents?: number;
|
|
498
|
-
};
|
|
499
|
-
}
|
|
500
|
-
export interface HqBrowserSnapshotMessage {
|
|
501
|
-
type: 'hq.snapshot';
|
|
502
|
-
snapshot: HqSnapshot;
|
|
503
|
-
}
|
|
504
|
-
export interface HqBrowserEventMessage<TPayload = unknown> {
|
|
505
|
-
type: 'hq.event';
|
|
506
|
-
event: HqEventEnvelope<TPayload>;
|
|
507
|
-
}
|
|
508
|
-
export interface HqAlertMessage {
|
|
509
|
-
type: 'hq.alert';
|
|
510
|
-
severity: 'info' | 'warn' | 'error';
|
|
511
|
-
message: string;
|
|
512
|
-
timestamp: string;
|
|
513
|
-
}
|
|
514
|
-
export interface HqHeartbeatMessage {
|
|
515
|
-
type: 'hq.heartbeat';
|
|
516
|
-
serverTime: string;
|
|
517
|
-
}
|
|
518
|
-
export type HqBrowserMessage = HqBrowserSnapshotMessage | HqBrowserEventMessage | HqAlertMessage | HqHeartbeatMessage;
|
|
519
|
-
export interface HqClientHelloMessage {
|
|
520
|
-
type: 'client.hello';
|
|
521
|
-
payload: HqClientHelloPayload;
|
|
522
|
-
}
|
|
523
|
-
export interface HqClientEventMessage<TPayload = unknown> {
|
|
524
|
-
type: 'client.event';
|
|
525
|
-
event: HqEventEnvelope<TPayload>;
|
|
526
|
-
}
|
|
527
|
-
export interface HqClientCommandPollMessage {
|
|
528
|
-
type: 'client.command_poll';
|
|
529
|
-
clientId: string;
|
|
530
|
-
projectId: string;
|
|
531
|
-
afterCommandId?: string;
|
|
532
|
-
limit?: number;
|
|
533
|
-
}
|
|
534
|
-
export interface HqClientCommandAckMessage {
|
|
535
|
-
type: 'client.command_ack';
|
|
536
|
-
clientId: string;
|
|
537
|
-
projectId: string;
|
|
538
|
-
commandId: string;
|
|
539
|
-
status: 'accepted' | 'completed' | 'failed' | 'rejected';
|
|
540
|
-
message?: string;
|
|
541
|
-
}
|
|
542
|
-
export interface HqQueuedCommand {
|
|
543
|
-
commandId: string;
|
|
544
|
-
type: string;
|
|
545
|
-
createdAt: string;
|
|
546
|
-
payload: unknown;
|
|
547
|
-
requiresAck?: boolean;
|
|
548
|
-
}
|
|
549
|
-
export interface HqServerCommandBatchMessage {
|
|
550
|
-
type: 'hq.command_batch';
|
|
551
|
-
commands: readonly HqQueuedCommand[];
|
|
552
|
-
}
|
|
553
|
-
export type HqClientMessage = HqClientHelloMessage | HqClientEventMessage | HqClientCommandPollMessage | HqClientCommandAckMessage;
|
|
554
|
-
export type HqServerMessage = HqServerCommandBatchMessage | HqWelcomePayload;
|
|
555
|
-
/**
|
|
556
|
-
* Discriminated parse result for {@link parseHqFrame}. The `reason` field
|
|
557
|
-
* is only present when `ok` is `false`; consumers should narrow on `ok`
|
|
558
|
-
* before accessing `frame` or `reason`.
|
|
559
|
-
*/
|
|
560
|
-
export type HqParseResult = {
|
|
561
|
-
ok: true;
|
|
562
|
-
frame: HqClientMessage;
|
|
563
|
-
} | {
|
|
564
|
-
ok: false;
|
|
565
|
-
reason: 'invalid-json' | 'unknown-type' | 'malformed';
|
|
566
|
-
};
|
|
567
|
-
/**
|
|
568
|
-
* Strictly parse a raw client → server frame into a {@link HqParseResult}.
|
|
569
|
-
*
|
|
570
|
-
* Validates, in order:
|
|
571
|
-
* 1. JSON syntax (`invalid-json` on failure)
|
|
572
|
-
* 2. Top-level object with string `type` discriminator
|
|
573
|
-
* 3. `type` is one of {@link HqClientMessage} union members (`unknown-type`)
|
|
574
|
-
* 4. Per-type field-shape presence checks (`malformed` on failure)
|
|
575
|
-
*
|
|
576
|
-
* On success, `frame` is narrowed to {@link HqClientMessage} and consumers
|
|
577
|
-
* can switch on `frame.type` for type-safe access to per-union-member
|
|
578
|
-
* fields without `as` casts.
|
|
579
|
-
*/
|
|
580
|
-
export declare function parseHqFrame(raw: string | Buffer): HqParseResult;
|
|
581
|
-
/**
|
|
582
|
-
* Validate the `payload` field of a {@link HqEventEnvelope} for known
|
|
583
|
-
* event types. Returns `{ ok: true, payload }` with a narrowed payload
|
|
584
|
-
* type when the event type has a registered shape guard and the payload
|
|
585
|
-
* matches it; `{ ok: true, payload: unknown }` for event types that the
|
|
586
|
-
* server does not yet validate; or `{ ok: false, reason }` when the
|
|
587
|
-
* payload fails the registered guard.
|
|
588
|
-
*
|
|
589
|
-
* Use this after {@link parseHqFrame} has produced a valid frame, when
|
|
590
|
-
* the frame is `client.event` and the server is about to consume the
|
|
591
|
-
* event payload.
|
|
592
|
-
*/
|
|
593
|
-
export type HqEventPayloadResult<T> = {
|
|
594
|
-
ok: true;
|
|
595
|
-
payload: T;
|
|
596
|
-
} | {
|
|
597
|
-
ok: false;
|
|
598
|
-
reason: 'unknown-event-type' | 'malformed-payload';
|
|
599
|
-
};
|
|
600
|
-
export declare function parseHqEventPayload(eventType: string, payload: unknown): HqEventPayloadResult<unknown>;
|
|
601
|
-
export declare function createHqEventEnvelope<TPayload>(input: {
|
|
602
|
-
id: string;
|
|
603
|
-
type: HqEventType | (string & {});
|
|
604
|
-
timestamp: string;
|
|
605
|
-
clientId: string;
|
|
606
|
-
projectId: string;
|
|
607
|
-
seq: number;
|
|
608
|
-
payload: TPayload;
|
|
609
|
-
sessionId?: string;
|
|
610
|
-
runId?: string;
|
|
611
|
-
}): HqEventEnvelope<TPayload>;
|
|
1
|
+
export * from './protocol/client.js';
|
|
2
|
+
export * from './protocol/session.js';
|
|
3
|
+
export * from './protocol/mcp.js';
|
|
4
|
+
export * from './protocol/mailbox.js';
|
|
5
|
+
export * from './protocol/fleet.js';
|
|
6
|
+
export * from './protocol/brain.js';
|
|
7
|
+
export * from './protocol/tool.js';
|
|
8
|
+
export * from './protocol/project.js';
|
|
9
|
+
export * from './protocol/browser.js';
|
|
10
|
+
export * from './protocol/core.js';
|
|
612
11
|
//# sourceMappingURL=protocol.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../src/hq/protocol.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,EAAG,CAAU,CAAC;AAE9C,MAAM,MAAM,iBAAiB,GAAG,OAAO,mBAAmB,CAAC;AAE3D,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAC;AAExE,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,WAAW,GAAG,SAAS,CAAC;AAE9D,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAEpE,MAAM,MAAM,kBAAkB,GAC1B,mBAAmB,GACnB,iBAAiB,GACjB,eAAe,GACf,iBAAiB,GACjB,iBAAiB,CAAC;AAEtB,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;AAExE,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,kBAAkB,GAAG,UAAU,GAAG,MAAM,CAAC;AAE7E,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,KAAK,EAAE,YAAY,CAAC;CACrB;AAED,eAAO,MAAM,2BAA2B,EAAE,iBAIzC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,QAAS,CAAC;AAE7C,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;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