@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
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import type { HqClientKind, HqClientRecord } from './client.js';
|
|
2
|
+
import type { HqMachineRecord } from './core.js';
|
|
3
|
+
import type { HqFleetSummary } from './fleet.js';
|
|
4
|
+
import type { HqMailboxSummary } from './mailbox.js';
|
|
5
|
+
import type { HqMcpServerHealth } from './mcp.js';
|
|
6
|
+
import type { HqProjectRecord } from './project.js';
|
|
7
|
+
export type HqSessionStatus = 'idle' | 'running' | 'paused' | 'completed' | 'failed';
|
|
8
|
+
export interface HqSessionStartedPayload {
|
|
9
|
+
sessionId: string;
|
|
10
|
+
provider?: string;
|
|
11
|
+
model?: string;
|
|
12
|
+
startedAt: string;
|
|
13
|
+
}
|
|
14
|
+
export interface HqSessionStatusPayload {
|
|
15
|
+
status: HqSessionStatus;
|
|
16
|
+
phase?: string;
|
|
17
|
+
message?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface HqSubagentSummary {
|
|
20
|
+
subagentId: string;
|
|
21
|
+
role?: string;
|
|
22
|
+
status: 'pending' | 'running' | 'idle' | 'completed' | 'failed' | 'stopped';
|
|
23
|
+
task?: string;
|
|
24
|
+
currentTool?: string;
|
|
25
|
+
runtimeMs?: number;
|
|
26
|
+
costUsd?: number;
|
|
27
|
+
lastActivityAt?: string;
|
|
28
|
+
}
|
|
29
|
+
/** Payload for `agent.message` events — a subagent's conversational output. */
|
|
30
|
+
export interface HqAgentMessagePayload {
|
|
31
|
+
subagentId: string;
|
|
32
|
+
agentName: string;
|
|
33
|
+
content: string;
|
|
34
|
+
kind: 'text' | 'thinking' | 'tool_use' | 'tool_result' | 'error' | 'status' | 'system';
|
|
35
|
+
iteration: number;
|
|
36
|
+
ts: string;
|
|
37
|
+
toolName?: string;
|
|
38
|
+
costUsd?: number;
|
|
39
|
+
}
|
|
40
|
+
/** Payload for `agent.status` events — a subagent's lifecycle transition. */
|
|
41
|
+
export interface HqAgentStatusPayload {
|
|
42
|
+
subagentId: string;
|
|
43
|
+
agentName: string;
|
|
44
|
+
status: 'spawned' | 'running' | 'completed' | 'failed' | 'timeout' | 'stopped' | 'budget_exhausted';
|
|
45
|
+
ts: string;
|
|
46
|
+
summary?: string;
|
|
47
|
+
task?: string;
|
|
48
|
+
}
|
|
49
|
+
export type HqSessionLiveStatus = 'active' | 'idle' | 'closing' | 'stale';
|
|
50
|
+
export type HqSessionAgentLiveStatus = 'idle' | 'running' | 'streaming' | 'waiting_user' | 'error';
|
|
51
|
+
/** A single live agent inside a session snapshot (mirrors SessionRegistry's AgentEntry). */
|
|
52
|
+
export interface HqSessionAgentSummary {
|
|
53
|
+
id: string;
|
|
54
|
+
name: string;
|
|
55
|
+
/** UTC ISO timestamp when this agent/run started, when known. */
|
|
56
|
+
startedAt?: string;
|
|
57
|
+
status: HqSessionAgentLiveStatus;
|
|
58
|
+
currentTool?: string;
|
|
59
|
+
iterations: number;
|
|
60
|
+
toolCalls: number;
|
|
61
|
+
costUsd?: number;
|
|
62
|
+
tokensIn?: number;
|
|
63
|
+
tokensOut?: number;
|
|
64
|
+
ctxPct?: number;
|
|
65
|
+
model?: string;
|
|
66
|
+
/** Throttled tail of the response currently streaming, when known. */
|
|
67
|
+
partialText?: string;
|
|
68
|
+
lastActivityAt: string;
|
|
69
|
+
}
|
|
70
|
+
/** Payload for `session.snapshot` — one connected terminal's live state. */
|
|
71
|
+
export interface HqSessionSnapshotPayload {
|
|
72
|
+
sessionId: string;
|
|
73
|
+
clientKind: HqClientKind;
|
|
74
|
+
machineId: string;
|
|
75
|
+
hostname?: string;
|
|
76
|
+
pid?: number;
|
|
77
|
+
projectId: string;
|
|
78
|
+
projectName: string;
|
|
79
|
+
projectRoot: string;
|
|
80
|
+
gitBranch?: string;
|
|
81
|
+
status: HqSessionLiveStatus;
|
|
82
|
+
startedAt: string;
|
|
83
|
+
lastActivityAt: string;
|
|
84
|
+
agentCount: number;
|
|
85
|
+
agents: readonly HqSessionAgentSummary[];
|
|
86
|
+
}
|
|
87
|
+
export type HqTranscriptRole = 'user' | 'assistant' | 'thinking' | 'tool' | 'system' | 'error';
|
|
88
|
+
/** One rendered conversation turn. Canonical shape shared by client streaming
|
|
89
|
+
* and server-side JSONL replay so both planes agree. */
|
|
90
|
+
export interface HqTranscriptEntry {
|
|
91
|
+
ts: string;
|
|
92
|
+
role: HqTranscriptRole;
|
|
93
|
+
text: string;
|
|
94
|
+
tool?: string;
|
|
95
|
+
/** Stringified tool input/arguments, for tool calls (shown alongside the result). */
|
|
96
|
+
toolInput?: string;
|
|
97
|
+
durationMs?: number;
|
|
98
|
+
isError?: boolean;
|
|
99
|
+
toolUseId?: string;
|
|
100
|
+
/** Which agent/subagent produced this turn, when attribution is known. */
|
|
101
|
+
agentId?: string;
|
|
102
|
+
}
|
|
103
|
+
/** Payload for `session.transcript` — an incremental batch of new turns. */
|
|
104
|
+
export interface HqTranscriptAppendPayload {
|
|
105
|
+
sessionId: string;
|
|
106
|
+
/** Monotonic sequence index of the FIRST entry in this batch within the session. */
|
|
107
|
+
fromSeq: number;
|
|
108
|
+
entries: readonly HqTranscriptEntry[];
|
|
109
|
+
}
|
|
110
|
+
/** Payload for `session.ended` — a terminal closed. */
|
|
111
|
+
export interface HqSessionEndedPayload {
|
|
112
|
+
sessionId: string;
|
|
113
|
+
endedAt: string;
|
|
114
|
+
}
|
|
115
|
+
export interface HqSessionSummary {
|
|
116
|
+
sessionId: string;
|
|
117
|
+
projectId: string;
|
|
118
|
+
clientId: string;
|
|
119
|
+
status: HqSessionStatus;
|
|
120
|
+
provider?: string;
|
|
121
|
+
model?: string;
|
|
122
|
+
startedAt?: string;
|
|
123
|
+
lastActivityAt: string;
|
|
124
|
+
costUsd?: number;
|
|
125
|
+
}
|
|
126
|
+
export interface HqSnapshot {
|
|
127
|
+
generatedAt: string;
|
|
128
|
+
clients: readonly HqClientRecord[];
|
|
129
|
+
projects: readonly HqProjectRecord[];
|
|
130
|
+
sessions: readonly HqSessionSummary[];
|
|
131
|
+
fleets: readonly HqFleetSummary[];
|
|
132
|
+
mailboxes: readonly HqMailboxSummary[];
|
|
133
|
+
/** Physical machines aggregated from connected clients (optional, additive). */
|
|
134
|
+
machines?: readonly HqMachineRecord[];
|
|
135
|
+
/** Live terminal sessions with their agents — the spine of the fleet tree. */
|
|
136
|
+
liveSessions?: readonly HqSessionSnapshotPayload[];
|
|
137
|
+
/** Latest operational health for each MCP server reported by any connected client. */
|
|
138
|
+
mcpServers?: readonly HqMcpServerHealth[];
|
|
139
|
+
totals: {
|
|
140
|
+
activeProjects: number;
|
|
141
|
+
activeClients: number;
|
|
142
|
+
activeSessions: number;
|
|
143
|
+
activeSubagents: number;
|
|
144
|
+
unreadMailboxMessages: number;
|
|
145
|
+
incompleteMailboxMessages: number;
|
|
146
|
+
totalCostUsd: number;
|
|
147
|
+
/** Distinct physical machines currently connected. */
|
|
148
|
+
activeMachines?: number;
|
|
149
|
+
/** Total live agents across all sessions. */
|
|
150
|
+
activeAgents?: number;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../src/hq/protocol/session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,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EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,SAAS,cAAc,EAAE,CAAC;IACnC,QAAQ,EAAE,SAAS,eAAe,EAAE,CAAC;IACrC,QAAQ,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACtC,MAAM,EAAE,SAAS,cAAc,EAAE,CAAC;IAClC,SAAS,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACvC,gFAAgF;IAChF,QAAQ,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;IACtC,8EAA8E;IAC9E,YAAY,CAAC,EAAE,SAAS,wBAAwB,EAAE,CAAC;IACnD,sFAAsF;IACtF,UAAU,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAC1C,MAAM,EAAE;QACN,cAAc,EAAE,MAAM,CAAC;QACvB,aAAa,EAAE,MAAM,CAAC;QACtB,cAAc,EAAE,MAAM,CAAC;QACvB,eAAe,EAAE,MAAM,CAAC;QACxB,qBAAqB,EAAE,MAAM,CAAC;QAC9B,yBAAyB,EAAE,MAAM,CAAC;QAClC,YAAY,EAAE,MAAM,CAAC;QACrB,sDAAsD;QACtD,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,6CAA6C;QAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACH"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { HqPathPolicy } from './project.js';
|
|
2
|
+
export type HqToolArgsPolicy = 'none' | 'summary' | 'redacted' | 'full';
|
|
3
|
+
export interface HqRedactionPolicy {
|
|
4
|
+
rawContent: boolean;
|
|
5
|
+
toolArgs: HqToolArgsPolicy;
|
|
6
|
+
paths: HqPathPolicy;
|
|
7
|
+
}
|
|
8
|
+
export declare const DEFAULT_HQ_REDACTION_POLICY: HqRedactionPolicy;
|
|
9
|
+
/**
|
|
10
|
+
* Per-string cap applied when redacting chat-transcript events
|
|
11
|
+
* (`session.transcript` / `agent.message`). The generic 500-char summary cap
|
|
12
|
+
* is right for telemetry rollups but would mangle full chat-history rendering
|
|
13
|
+
* in the HQ Console once `rawContent` is enabled — messages and tool outputs
|
|
14
|
+
* routinely exceed it. Applied publisher-side AND at the server's re-redaction
|
|
15
|
+
* so both hops agree.
|
|
16
|
+
*/
|
|
17
|
+
export declare const HQ_TRANSCRIPT_TEXT_CAP = 16000;
|
|
18
|
+
export interface HqToolStartedPayload {
|
|
19
|
+
toolName: string;
|
|
20
|
+
capabilities?: readonly string[];
|
|
21
|
+
risk?: string;
|
|
22
|
+
inputSummary?: unknown;
|
|
23
|
+
}
|
|
24
|
+
export interface HqToolCompletedPayload {
|
|
25
|
+
toolName: string;
|
|
26
|
+
status: 'success' | 'error' | 'timeout' | 'cancelled';
|
|
27
|
+
durationMs: number;
|
|
28
|
+
outputSummary?: unknown;
|
|
29
|
+
errorClass?: string;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../../src/hq/protocol/tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;AAExE,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,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|