@qduc/term2 0.26.0 → 0.27.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/agent.d.ts +2 -0
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +2 -4
- package/dist/agent.js.map +1 -1
- package/dist/app.js +3 -2
- package/dist/app.js.map +1 -1
- package/dist/cli.js +12 -2
- package/dist/cli.js.map +1 -1
- package/dist/commands/resume-command.d.ts +1 -1
- package/dist/commands/resume-command.d.ts.map +1 -1
- package/dist/components/ErrorBoundary.js +4 -2
- package/dist/components/ErrorBoundary.js.map +1 -1
- package/dist/components/InputBox.d.ts.map +1 -1
- package/dist/components/InputBox.js +29 -37
- package/dist/components/InputBox.js.map +1 -1
- package/dist/components/common/Divider.d.ts +11 -0
- package/dist/components/common/Divider.d.ts.map +1 -0
- package/dist/components/common/Divider.js +11 -0
- package/dist/components/common/Divider.js.map +1 -0
- package/dist/components/common/MenuContainer.d.ts +3 -1
- package/dist/components/common/MenuContainer.d.ts.map +1 -1
- package/dist/components/common/MenuContainer.js +2 -7
- package/dist/components/common/MenuContainer.js.map +1 -1
- package/dist/components/input/ApplicationInputSurface.d.ts +1 -1
- package/dist/components/input/ApplicationInputSurface.d.ts.map +1 -1
- package/dist/components/input/ApplicationInputSurface.js +2 -1
- package/dist/components/input/ApplicationInputSurface.js.map +1 -1
- package/dist/components/input/PendingQueueList.d.ts +6 -0
- package/dist/components/input/PendingQueueList.d.ts.map +1 -1
- package/dist/components/input/PendingQueueList.js +42 -37
- package/dist/components/input/PendingQueueList.js.map +1 -1
- package/dist/components/input/ResumeMenuSession.d.ts.map +1 -1
- package/dist/components/input/ResumeMenuSession.js +1 -1
- package/dist/components/input/ResumeMenuSession.js.map +1 -1
- package/dist/components/layout/BackgroundTaskManager.d.ts.map +1 -1
- package/dist/components/layout/BackgroundTaskManager.js +8 -5
- package/dist/components/layout/BackgroundTaskManager.js.map +1 -1
- package/dist/components/layout/Banner.d.ts.map +1 -1
- package/dist/components/layout/Banner.js +5 -1
- package/dist/components/layout/Banner.js.map +1 -1
- package/dist/components/layout/BottomArea.d.ts +1 -1
- package/dist/components/layout/BottomArea.d.ts.map +1 -1
- package/dist/components/layout/BottomArea.js +2 -0
- package/dist/components/layout/BottomArea.js.map +1 -1
- package/dist/components/menu/CopyMenu.d.ts.map +1 -1
- package/dist/components/menu/CopyMenu.js +8 -3
- package/dist/components/menu/CopyMenu.js.map +1 -1
- package/dist/components/menu/McpSelectionMenu.d.ts.map +1 -1
- package/dist/components/menu/McpSelectionMenu.js +13 -8
- package/dist/components/menu/McpSelectionMenu.js.map +1 -1
- package/dist/components/menu/PathSelectionMenu.d.ts.map +1 -1
- package/dist/components/menu/PathSelectionMenu.js +10 -7
- package/dist/components/menu/PathSelectionMenu.js.map +1 -1
- package/dist/components/menu/ProviderSelectionMenu.d.ts.map +1 -1
- package/dist/components/menu/ProviderSelectionMenu.js +58 -23
- package/dist/components/menu/ProviderSelectionMenu.js.map +1 -1
- package/dist/components/menu/ResumeSelectionMenu.d.ts +2 -0
- package/dist/components/menu/ResumeSelectionMenu.d.ts.map +1 -1
- package/dist/components/menu/ResumeSelectionMenu.js +9 -3
- package/dist/components/menu/ResumeSelectionMenu.js.map +1 -1
- package/dist/components/menu/RewindMenu.d.ts.map +1 -1
- package/dist/components/menu/RewindMenu.js +10 -5
- package/dist/components/menu/RewindMenu.js.map +1 -1
- package/dist/components/menu/SettingsSelectionMenu.d.ts.map +1 -1
- package/dist/components/menu/SettingsSelectionMenu.js +12 -17
- package/dist/components/menu/SettingsSelectionMenu.js.map +1 -1
- package/dist/components/menu/SettingsValueSelectionMenu.d.ts.map +1 -1
- package/dist/components/menu/SettingsValueSelectionMenu.js +10 -23
- package/dist/components/menu/SettingsValueSelectionMenu.js.map +1 -1
- package/dist/components/menu/SubagentPoolSelectionMenu.d.ts.map +1 -1
- package/dist/components/menu/SubagentPoolSelectionMenu.js +45 -24
- package/dist/components/menu/SubagentPoolSelectionMenu.js.map +1 -1
- package/dist/components/message/ChatMessage.d.ts.map +1 -1
- package/dist/components/message/ChatMessage.js +7 -2
- package/dist/components/message/ChatMessage.js.map +1 -1
- package/dist/components/message/CommandMessage.js +8 -1
- package/dist/components/message/CommandMessage.js.map +1 -1
- package/dist/components/message/MemoryRenderer.d.ts.map +1 -1
- package/dist/components/message/MemoryRenderer.js +11 -11
- package/dist/components/message/MemoryRenderer.js.map +1 -1
- package/dist/components/message/SubagentActivityMessage.d.ts.map +1 -1
- package/dist/components/message/SubagentActivityMessage.js +3 -3
- package/dist/components/message/SubagentActivityMessage.js.map +1 -1
- package/dist/components/message/command-message-helpers.d.ts +5 -5
- package/dist/components/prompt/ConfirmPrompt.d.ts +17 -0
- package/dist/components/prompt/ConfirmPrompt.d.ts.map +1 -0
- package/dist/components/prompt/ConfirmPrompt.js +54 -0
- package/dist/components/prompt/ConfirmPrompt.js.map +1 -0
- package/dist/components/prompt/HandoffConfirmationPrompt.d.ts.map +1 -1
- package/dist/components/prompt/HandoffConfirmationPrompt.js +3 -37
- package/dist/components/prompt/HandoffConfirmationPrompt.js.map +1 -1
- package/dist/components/prompt/InputSurgeConfirmationPrompt.d.ts.map +1 -1
- package/dist/components/prompt/InputSurgeConfirmationPrompt.js +3 -43
- package/dist/components/prompt/InputSurgeConfirmationPrompt.js.map +1 -1
- package/dist/components/prompt/LargeUncachedConfirmationPrompt.d.ts.map +1 -1
- package/dist/components/prompt/LargeUncachedConfirmationPrompt.js +5 -44
- package/dist/components/prompt/LargeUncachedConfirmationPrompt.js.map +1 -1
- package/dist/components/prompt/ModeSwitchConfirmationPrompt.d.ts.map +1 -1
- package/dist/components/prompt/ModeSwitchConfirmationPrompt.js +5 -46
- package/dist/components/prompt/ModeSwitchConfirmationPrompt.js.map +1 -1
- package/dist/components/prompt/QueuePausedPrompt.d.ts.map +1 -1
- package/dist/components/prompt/QueuePausedPrompt.js +11 -14
- package/dist/components/prompt/QueuePausedPrompt.js.map +1 -1
- package/dist/components/prompt/StandardModeConfirmationPrompt.d.ts.map +1 -1
- package/dist/components/prompt/StandardModeConfirmationPrompt.js +3 -37
- package/dist/components/prompt/StandardModeConfirmationPrompt.js.map +1 -1
- package/dist/components/theme.d.ts +5 -3
- package/dist/components/theme.d.ts.map +1 -1
- package/dist/components/theme.js +5 -3
- package/dist/components/theme.js.map +1 -1
- package/dist/gateway/gateway.d.ts.map +1 -1
- package/dist/gateway/gateway.js +8 -1
- package/dist/gateway/gateway.js.map +1 -1
- package/dist/hooks/use-app-commands.d.ts +1 -1
- package/dist/hooks/use-app-commands.d.ts.map +1 -1
- package/dist/hooks/use-conversation.d.ts.map +1 -1
- package/dist/hooks/use-conversation.js +0 -3
- package/dist/hooks/use-conversation.js.map +1 -1
- package/dist/hooks/use-resume-selection.d.ts +3 -1
- package/dist/hooks/use-resume-selection.d.ts.map +1 -1
- package/dist/hooks/use-resume-selection.js +26 -1
- package/dist/hooks/use-resume-selection.js.map +1 -1
- package/dist/lib/agent-chat-service.d.ts +2 -0
- package/dist/lib/agent-chat-service.d.ts.map +1 -1
- package/dist/lib/agent-chat-service.js +14 -0
- package/dist/lib/agent-chat-service.js.map +1 -1
- package/dist/lib/agent-client.d.ts +6 -0
- package/dist/lib/agent-client.d.ts.map +1 -1
- package/dist/lib/agent-client.js +25 -2
- package/dist/lib/agent-client.js.map +1 -1
- package/dist/lib/agent-factory.d.ts.map +1 -1
- package/dist/lib/agent-factory.js +2 -1
- package/dist/lib/agent-factory.js.map +1 -1
- package/dist/non-interactive.d.ts.map +1 -1
- package/dist/non-interactive.js +6 -0
- package/dist/non-interactive.js.map +1 -1
- package/dist/prompts/fragments/gpt-6.md +7 -1
- package/dist/prompts/memory-recall-notice.d.ts +28 -0
- package/dist/prompts/memory-recall-notice.d.ts.map +1 -0
- package/dist/prompts/memory-recall-notice.js +59 -0
- package/dist/prompts/memory-recall-notice.js.map +1 -0
- package/dist/prompts/memory-recall-notice.test.ts +50 -0
- package/dist/prompts/memory-recall-notice.ts +69 -0
- package/dist/prompts/memory.md +1 -1
- package/dist/prompts/prompt-constructor.test.ts +5 -4
- package/dist/providers/codex-responses-model.d.ts.map +1 -1
- package/dist/providers/codex-responses-model.js +14 -14
- package/dist/providers/codex-responses-model.js.map +1 -1
- package/dist/providers/fetch/logging-middleware.d.ts.map +1 -1
- package/dist/providers/fetch/logging-middleware.js +15 -5
- package/dist/providers/fetch/logging-middleware.js.map +1 -1
- package/dist/services/agent-runtime/application-run-loop.d.ts +1 -0
- package/dist/services/agent-runtime/application-run-loop.d.ts.map +1 -1
- package/dist/services/agent-runtime/application-run-loop.js.map +1 -1
- package/dist/services/conversation/conversation-adapter.d.ts.map +1 -1
- package/dist/services/conversation/conversation-adapter.js +6 -1
- package/dist/services/conversation/conversation-adapter.js.map +1 -1
- package/dist/services/conversation/conversation-decoder.d.ts.map +1 -1
- package/dist/services/conversation/conversation-decoder.js +6 -0
- package/dist/services/conversation/conversation-decoder.js.map +1 -1
- package/dist/services/conversation/conversation-events.d.ts +28 -5
- package/dist/services/conversation/conversation-events.d.ts.map +1 -1
- package/dist/services/conversation/conversation-events.js +6 -0
- package/dist/services/conversation/conversation-events.js.map +1 -1
- package/dist/services/conversation/conversation-message-projection.d.ts.map +1 -1
- package/dist/services/conversation/conversation-message-projection.js +3 -2
- package/dist/services/conversation/conversation-message-projection.js.map +1 -1
- package/dist/services/conversation/conversation-orchestrator.d.ts.map +1 -1
- package/dist/services/conversation/conversation-orchestrator.js +0 -8
- package/dist/services/conversation/conversation-orchestrator.js.map +1 -1
- package/dist/services/conversation/conversation-persistence.d.ts +11 -0
- package/dist/services/conversation/conversation-persistence.d.ts.map +1 -1
- package/dist/services/conversation/conversation-persistence.js +18 -3
- package/dist/services/conversation/conversation-persistence.js.map +1 -1
- package/dist/services/conversation/conversation-replay.d.ts.map +1 -1
- package/dist/services/conversation/conversation-replay.js +10 -0
- package/dist/services/conversation/conversation-replay.js.map +1 -1
- package/dist/services/conversation/conversation-runtime-factory.d.ts +2 -0
- package/dist/services/conversation/conversation-runtime-factory.d.ts.map +1 -1
- package/dist/services/conversation/conversation-runtime-factory.js.map +1 -1
- package/dist/services/conversation/conversation-service.d.ts +4 -1
- package/dist/services/conversation/conversation-service.d.ts.map +1 -1
- package/dist/services/conversation/conversation-service.js +5 -1
- package/dist/services/conversation/conversation-service.js.map +1 -1
- package/dist/services/conversation/recent-conversations.d.ts +35 -0
- package/dist/services/conversation/recent-conversations.d.ts.map +1 -0
- package/dist/services/conversation/recent-conversations.js +54 -0
- package/dist/services/conversation/recent-conversations.js.map +1 -0
- package/dist/services/conversation/session-index/session-index-worker-client.d.ts +15 -2
- package/dist/services/conversation/session-index/session-index-worker-client.d.ts.map +1 -1
- package/dist/services/conversation/session-index/session-index-worker-client.js +31 -5
- package/dist/services/conversation/session-index/session-index-worker-client.js.map +1 -1
- package/dist/services/conversation/session-index/session-index-worker.d.ts +6 -0
- package/dist/services/conversation/session-index/session-index-worker.d.ts.map +1 -1
- package/dist/services/conversation/session-index/session-index-worker.js +14 -0
- package/dist/services/conversation/session-index/session-index-worker.js.map +1 -1
- package/dist/services/conversation/session-knowledge-candidates.d.ts +15 -0
- package/dist/services/conversation/session-knowledge-candidates.d.ts.map +1 -0
- package/dist/services/conversation/session-knowledge-candidates.js +66 -0
- package/dist/services/conversation/session-knowledge-candidates.js.map +1 -0
- package/dist/services/conversation-agent-client.d.ts +8 -0
- package/dist/services/conversation-agent-client.d.ts.map +1 -1
- package/dist/services/logging/conversation-log-events.d.ts +7 -1
- package/dist/services/logging/conversation-log-events.d.ts.map +1 -1
- package/dist/services/logging/conversation-log-events.js.map +1 -1
- package/dist/services/logging/conversation-log-writer.d.ts +1 -1
- package/dist/services/logging/conversation-log-writer.d.ts.map +1 -1
- package/dist/services/logging/conversation-logger.d.ts.map +1 -1
- package/dist/services/logging/conversation-logger.js +4 -0
- package/dist/services/logging/conversation-logger.js.map +1 -1
- package/dist/services/memory/automatic-memory-canary.d.ts +20 -0
- package/dist/services/memory/automatic-memory-canary.d.ts.map +1 -0
- package/dist/services/memory/automatic-memory-canary.js +36 -0
- package/dist/services/memory/automatic-memory-canary.js.map +1 -0
- package/dist/services/memory/distiller/path-safety.d.ts +3 -0
- package/dist/services/memory/distiller/path-safety.d.ts.map +1 -0
- package/dist/services/memory/distiller/path-safety.js +7 -0
- package/dist/services/memory/distiller/path-safety.js.map +1 -0
- package/dist/services/memory/distiller/promotion-policy.d.ts +26 -0
- package/dist/services/memory/distiller/promotion-policy.d.ts.map +1 -0
- package/dist/services/memory/distiller/promotion-policy.js +40 -0
- package/dist/services/memory/distiller/promotion-policy.js.map +1 -0
- package/dist/services/memory/distiller/secret-redaction.d.ts +3 -0
- package/dist/services/memory/distiller/secret-redaction.d.ts.map +1 -0
- package/dist/services/memory/distiller/secret-redaction.js +40 -0
- package/dist/services/memory/distiller/secret-redaction.js.map +1 -0
- package/dist/services/memory/memory-capabilities.d.ts +25 -5
- package/dist/services/memory/memory-capabilities.d.ts.map +1 -1
- package/dist/services/memory/memory-capabilities.js +151 -7
- package/dist/services/memory/memory-capabilities.js.map +1 -1
- package/dist/services/memory/memory-store.d.ts +24 -2
- package/dist/services/memory/memory-store.d.ts.map +1 -1
- package/dist/services/memory/memory-store.js +110 -6
- package/dist/services/memory/memory-store.js.map +1 -1
- package/dist/services/session/initial-input-preparer.d.ts.map +1 -1
- package/dist/services/session/initial-input-preparer.js +5 -1
- package/dist/services/session/initial-input-preparer.js.map +1 -1
- package/dist/services/session/initial-turn-recovery-handler.d.ts.map +1 -1
- package/dist/services/session/initial-turn-recovery-handler.js +2 -1
- package/dist/services/session/initial-turn-recovery-handler.js.map +1 -1
- package/dist/services/session/session-composition.d.ts +6 -2
- package/dist/services/session/session-composition.d.ts.map +1 -1
- package/dist/services/session/session-composition.js +14 -27
- package/dist/services/session/session-composition.js.map +1 -1
- package/dist/services/session/turn-attempt-factory.d.ts +2 -0
- package/dist/services/session/turn-attempt-factory.d.ts.map +1 -1
- package/dist/services/session/turn-attempt-factory.js.map +1 -1
- package/dist/services/session/turn-attempt.d.ts +5 -0
- package/dist/services/session/turn-attempt.d.ts.map +1 -1
- package/dist/services/session/turn-attempt.js +9 -0
- package/dist/services/session/turn-attempt.js.map +1 -1
- package/dist/services/session/turn-coordinator.d.ts +5 -2
- package/dist/services/session/turn-coordinator.d.ts.map +1 -1
- package/dist/services/session/turn-coordinator.js +47 -0
- package/dist/services/session/turn-coordinator.js.map +1 -1
- package/dist/services/session/turn-workflow.d.ts.map +1 -1
- package/dist/services/session/turn-workflow.js +42 -1
- package/dist/services/session/turn-workflow.js.map +1 -1
- package/dist/services/session-rollover/session-rollover-brief.d.ts.map +1 -1
- package/dist/services/session-rollover/session-rollover-brief.js +2 -0
- package/dist/services/session-rollover/session-rollover-brief.js.map +1 -1
- package/dist/services/subagents/execution-runner.js +4 -4
- package/dist/services/subagents/execution-runner.js.map +1 -1
- package/dist/services/subagents/mentor-runner.d.ts.map +1 -1
- package/dist/services/subagents/mentor-runner.js +2 -2
- package/dist/services/subagents/mentor-runner.js.map +1 -1
- package/dist/services/subagents/subagent-async-registry.d.ts.map +1 -1
- package/dist/services/subagents/subagent-async-registry.js +4 -6
- package/dist/services/subagents/subagent-async-registry.js.map +1 -1
- package/dist/services/subagents/subagent-notification-store.d.ts.map +1 -1
- package/dist/services/subagents/subagent-notification-store.js +1 -3
- package/dist/services/subagents/subagent-notification-store.js.map +1 -1
- package/dist/services/subagents/utils.d.ts +1 -1
- package/dist/services/subagents/utils.d.ts.map +1 -1
- package/dist/services/subagents/utils.js +4 -1
- package/dist/services/subagents/utils.js.map +1 -1
- package/dist/tools/memory/memory-tools.d.ts.map +1 -1
- package/dist/tools/memory/memory-tools.js +55 -20
- package/dist/tools/memory/memory-tools.js.map +1 -1
- package/dist/tools/session-rollover/session-rollover-tool.d.ts.map +1 -1
- package/dist/tools/session-rollover/session-rollover-tool.js +9 -4
- package/dist/tools/session-rollover/session-rollover-tool.js.map +1 -1
- package/dist/types/message.d.ts +2 -0
- package/dist/types/message.d.ts.map +1 -1
- package/dist/types/message.js.map +1 -1
- package/dist/utils/conversation/conversation-event-handler.d.ts.map +1 -1
- package/dist/utils/conversation/conversation-event-handler.js +17 -1
- package/dist/utils/conversation/conversation-event-handler.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,50 +1,11 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import
|
|
3
|
-
import { COLOR_DANGER, COLOR_SUCCESS, COLOR_WARNING } from '../theme.js';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ConfirmPrompt from './ConfirmPrompt.js';
|
|
4
3
|
const LargeUncachedConfirmationPrompt = ({ usage, onConfirm, onDecline }) => {
|
|
5
|
-
const [selectedIndex, setSelectedIndex] = useState(0); // 0 = Send, 1 = Cancel
|
|
6
|
-
useInput((input, key) => {
|
|
7
|
-
if (key.upArrow || key.downArrow) {
|
|
8
|
-
setSelectedIndex((prev) => (prev === 0 ? 1 : 0));
|
|
9
|
-
}
|
|
10
|
-
if (key.return) {
|
|
11
|
-
if (selectedIndex === 0) {
|
|
12
|
-
onConfirm();
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
onDecline();
|
|
16
|
-
}
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
if (input === 'y') {
|
|
20
|
-
onConfirm();
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
if (input === 'n') {
|
|
24
|
-
onDecline();
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
if (key.escape) {
|
|
28
|
-
onDecline();
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
4
|
const promptTokens = usage?.prompt_tokens ?? 0;
|
|
32
5
|
const cacheReadTokens = usage?.cache_read_tokens;
|
|
33
|
-
return (React.createElement(
|
|
34
|
-
|
|
35
|
-
"Send ",
|
|
36
|
-
promptTokens.toLocaleString(),
|
|
37
|
-
" tokens anyway?",
|
|
38
|
-
cacheReadTokens != null
|
|
39
|
-
? ` (\u26A0\uFE0F ${cacheReadTokens.toLocaleString()} uncached)`
|
|
40
|
-
: ' (may miss prompt cache)'),
|
|
41
|
-
React.createElement(Box, { flexDirection: "column", marginLeft: 1 },
|
|
42
|
-
React.createElement(Text, { color: selectedIndex === 0 ? COLOR_SUCCESS : undefined },
|
|
43
|
-
selectedIndex === 0 ? '❯ ' : ' ',
|
|
44
|
-
"Send"),
|
|
45
|
-
React.createElement(Text, { color: selectedIndex === 1 ? COLOR_DANGER : undefined },
|
|
46
|
-
selectedIndex === 1 ? '❯ ' : ' ',
|
|
47
|
-
"Cancel"))));
|
|
6
|
+
return (React.createElement(ConfirmPrompt, { warning: cacheReadTokens != null
|
|
7
|
+
? `Large request — ${cacheReadTokens.toLocaleString()} uncached`
|
|
8
|
+
: 'Large request — may miss prompt cache', question: `Send ${promptTokens.toLocaleString()} tokens anyway?`, confirmLabel: "Send", declineLabel: "Cancel", onConfirm: onConfirm, onDecline: onDecline, onCancel: onDecline }));
|
|
48
9
|
};
|
|
49
10
|
export default LargeUncachedConfirmationPrompt;
|
|
50
11
|
//# sourceMappingURL=LargeUncachedConfirmationPrompt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LargeUncachedConfirmationPrompt.js","sourceRoot":"","sources":["../../../source/components/prompt/LargeUncachedConfirmationPrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"LargeUncachedConfirmationPrompt.js","sourceRoot":"","sources":["../../../source/components/prompt/LargeUncachedConfirmationPrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAElC,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAQ/C,MAAM,+BAA+B,GAA6C,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE;IACpH,MAAM,YAAY,GAAG,KAAK,EAAE,aAAa,IAAI,CAAC,CAAC;IAC/C,MAAM,eAAe,GAAG,KAAK,EAAE,iBAAiB,CAAC;IACjD,OAAO,CACL,oBAAC,aAAa,IACZ,OAAO,EACL,eAAe,IAAI,IAAI;YACrB,CAAC,CAAC,mBAAmB,eAAe,CAAC,cAAc,EAAE,WAAW;YAChE,CAAC,CAAC,uCAAuC,EAE7C,QAAQ,EAAE,QAAQ,YAAY,CAAC,cAAc,EAAE,iBAAiB,EAChE,YAAY,EAAC,MAAM,EACnB,YAAY,EAAC,QAAQ,EACrB,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,SAAS,GACnB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,+BAA+B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModeSwitchConfirmationPrompt.d.ts","sourceRoot":"","sources":["../../../source/components/prompt/ModeSwitchConfirmationPrompt.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"ModeSwitchConfirmationPrompt.d.ts","sourceRoot":"","sources":["../../../source/components/prompt/ModeSwitchConfirmationPrompt.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,QAAA,MAAM,4BAA4B,EAAE,EAAE,CAAC,iCAAiC,CAqBvE,CAAC;eAEa,4BAA4B"}
|
|
@@ -1,51 +1,10 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import
|
|
3
|
-
import { COLOR_DANGER, COLOR_SUCCESS, COLOR_WARNING } from '../theme.js';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ConfirmPrompt from './ConfirmPrompt.js';
|
|
4
3
|
const ModeSwitchConfirmationPrompt = ({ modeLabel, targetValue = true, onConfirm, onDecline, onCancel = onDecline, }) => {
|
|
5
|
-
// Default to 1 ('No') for safety so pressing Enter doesn't accidentally clear session
|
|
6
|
-
const [selectedIndex, setSelectedIndex] = useState(1);
|
|
7
|
-
useInput((input, key) => {
|
|
8
|
-
if (key.upArrow || key.downArrow) {
|
|
9
|
-
setSelectedIndex((prev) => (prev === 0 ? 1 : 0));
|
|
10
|
-
}
|
|
11
|
-
if (key.return) {
|
|
12
|
-
if (selectedIndex === 0) {
|
|
13
|
-
onConfirm();
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
onDecline();
|
|
17
|
-
}
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
if (input === 'y' || input === 'Y') {
|
|
21
|
-
onConfirm();
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
if (input === 'n' || input === 'N') {
|
|
25
|
-
onDecline();
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
if (key.escape || input === '\u001B' || input === '\u001b') {
|
|
29
|
-
onCancel();
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
4
|
const actionText = targetValue ? `switch to ${modeLabel} mode` : `disable ${modeLabel} mode`;
|
|
33
|
-
return (React.createElement(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
targetValue ? `Switching to ${modeLabel} mode` : `Disabling ${modeLabel} mode`,
|
|
37
|
-
" requires clearing the current session."),
|
|
38
|
-
React.createElement(Text, null,
|
|
39
|
-
"Clear session and ",
|
|
40
|
-
actionText,
|
|
41
|
-
"?"),
|
|
42
|
-
React.createElement(Box, { flexDirection: "column", marginLeft: 1 },
|
|
43
|
-
React.createElement(Text, { color: selectedIndex === 0 ? COLOR_SUCCESS : undefined },
|
|
44
|
-
selectedIndex === 0 ? '❯ ' : ' ',
|
|
45
|
-
"Yes"),
|
|
46
|
-
React.createElement(Text, { color: selectedIndex === 1 ? COLOR_DANGER : undefined },
|
|
47
|
-
selectedIndex === 1 ? '❯ ' : ' ',
|
|
48
|
-
"No"))));
|
|
5
|
+
return (React.createElement(ConfirmPrompt, { warning: `${targetValue ? `Switching to ${modeLabel} mode` : `Disabling ${modeLabel} mode`} requires clearing the current session.`, question: `Clear session and ${actionText}?`,
|
|
6
|
+
// Default to 'No' so pressing Enter doesn't accidentally clear the session.
|
|
7
|
+
defaultIndex: 1, onConfirm: onConfirm, onDecline: onDecline, onCancel: onCancel }));
|
|
49
8
|
};
|
|
50
9
|
export default ModeSwitchConfirmationPrompt;
|
|
51
10
|
//# sourceMappingURL=ModeSwitchConfirmationPrompt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModeSwitchConfirmationPrompt.js","sourceRoot":"","sources":["../../../source/components/prompt/ModeSwitchConfirmationPrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ModeSwitchConfirmationPrompt.js","sourceRoot":"","sources":["../../../source/components/prompt/ModeSwitchConfirmationPrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAU/C,MAAM,4BAA4B,GAA0C,CAAC,EAC3E,SAAS,EACT,WAAW,GAAG,IAAI,EAClB,SAAS,EACT,SAAS,EACT,QAAQ,GAAG,SAAS,GACrB,EAAE,EAAE;IACH,MAAM,UAAU,GAAG,WAAW,CAAC,CAAC,CAAC,aAAa,SAAS,OAAO,CAAC,CAAC,CAAC,WAAW,SAAS,OAAO,CAAC;IAC7F,OAAO,CACL,oBAAC,aAAa,IACZ,OAAO,EAAE,GACP,WAAW,CAAC,CAAC,CAAC,gBAAgB,SAAS,OAAO,CAAC,CAAC,CAAC,aAAa,SAAS,OACzE,yCAAyC,EACzC,QAAQ,EAAE,qBAAqB,UAAU,GAAG;QAC5C,4EAA4E;QAC5E,YAAY,EAAE,CAAC,EACf,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueuePausedPrompt.d.ts","sourceRoot":"","sources":["../../../source/components/prompt/QueuePausedPrompt.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"QueuePausedPrompt.d.ts","sourceRoot":"","sources":["../../../source/components/prompt/QueuePausedPrompt.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAIjF,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,QAAA,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAiCjD,CAAC;eAEa,iBAAiB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Box, Text, useInput } from 'ink';
|
|
3
|
-
import {
|
|
3
|
+
import { MenuFooter } from '../common/MenuContainer.js';
|
|
4
|
+
import { COLOR_BORDER_ACTIVE, COLOR_WARNING, GLYPH_WARNING } from '../theme.js';
|
|
4
5
|
const QueuePausedPrompt = ({ queueLength, pauseReason, onResume, onDiscard }) => {
|
|
5
6
|
useInput((input, key) => {
|
|
6
7
|
if (input === 'r' || input === 'R') {
|
|
@@ -16,22 +17,18 @@ const QueuePausedPrompt = ({ queueLength, pauseReason, onResume, onDiscard }) =>
|
|
|
16
17
|
return;
|
|
17
18
|
}
|
|
18
19
|
});
|
|
19
|
-
return (React.createElement(Box, { flexDirection: "column",
|
|
20
|
+
return (React.createElement(Box, { flexDirection: "column", borderStyle: "round", borderColor: COLOR_BORDER_ACTIVE, paddingX: 1 },
|
|
20
21
|
React.createElement(Text, { color: COLOR_WARNING },
|
|
21
|
-
|
|
22
|
+
GLYPH_WARNING,
|
|
23
|
+
" Queue paused: ",
|
|
22
24
|
queueLength,
|
|
23
25
|
" item(s) pending.",
|
|
24
|
-
pauseReason === 'failure' ? ' Last turn failed.' : '',
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
' ',
|
|
31
|
-
React.createElement(Text, { color: COLOR_DANGER, bold: true },
|
|
32
|
-
"[",
|
|
33
|
-
React.createElement(Text, { color: COLOR_DANGER_SOFT }, "D"),
|
|
34
|
-
"]iscard"))));
|
|
26
|
+
pauseReason === 'failure' ? ' Last turn failed.' : ''),
|
|
27
|
+
React.createElement(MenuFooter, { hints: [
|
|
28
|
+
['r', 'resume'],
|
|
29
|
+
['d', 'discard'],
|
|
30
|
+
['esc', 'discard'],
|
|
31
|
+
] })));
|
|
35
32
|
};
|
|
36
33
|
export default QueuePausedPrompt;
|
|
37
34
|
//# sourceMappingURL=QueuePausedPrompt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueuePausedPrompt.js","sourceRoot":"","sources":["../../../source/components/prompt/QueuePausedPrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAE1C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"QueuePausedPrompt.js","sourceRoot":"","sources":["../../../source/components/prompt/QueuePausedPrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,IAAI,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Root":"","sources":["../../../source/components/prompt/StandardModeConfirmationPrompt.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"StandardModeConfirmationPrompt.d.ts","sourceRoot":"","sources":["../../../source/components/prompt/StandardModeConfirmationPrompt.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,UAAU,mCAAmC;IAC3C,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,QAAA,MAAM,8BAA8B,EAAE,EAAE,CAAC,mCAAmC,CAE3E,CAAC;eAEa,8BAA8B"}
|
|
@@ -1,39 +1,5 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
const StandardModeConfirmationPrompt = ({ onConfirm, onDecline, onCancel, }) => {
|
|
5
|
-
const [selectedIndex, setSelectedIndex] = useState(0); // 0 = Yes, 1 = No
|
|
6
|
-
useInput((input, key) => {
|
|
7
|
-
if (key.upArrow || key.downArrow) {
|
|
8
|
-
setSelectedIndex((prev) => (prev === 0 ? 1 : 0));
|
|
9
|
-
}
|
|
10
|
-
if (key.return) {
|
|
11
|
-
if (selectedIndex === 0) {
|
|
12
|
-
onConfirm();
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
onDecline();
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
if (input === 'y') {
|
|
19
|
-
onConfirm();
|
|
20
|
-
}
|
|
21
|
-
if (input === 'n') {
|
|
22
|
-
onDecline();
|
|
23
|
-
}
|
|
24
|
-
if (key.escape) {
|
|
25
|
-
onCancel();
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
return (React.createElement(Box, { flexDirection: "column" },
|
|
29
|
-
React.createElement(Text, null, "\uD83D\uDCCB Switch to standard mode?"),
|
|
30
|
-
React.createElement(Box, { flexDirection: "column", marginLeft: 1 },
|
|
31
|
-
React.createElement(Text, { color: selectedIndex === 0 ? COLOR_SUCCESS : undefined },
|
|
32
|
-
selectedIndex === 0 ? '❯ ' : ' ',
|
|
33
|
-
"Yes"),
|
|
34
|
-
React.createElement(Text, { color: selectedIndex === 1 ? COLOR_DANGER : undefined },
|
|
35
|
-
selectedIndex === 1 ? '❯ ' : ' ',
|
|
36
|
-
"No"))));
|
|
37
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ConfirmPrompt from './ConfirmPrompt.js';
|
|
3
|
+
const StandardModeConfirmationPrompt = (props) => (React.createElement(ConfirmPrompt, { question: "Switch to standard mode?", ...props }));
|
|
38
4
|
export default StandardModeConfirmationPrompt;
|
|
39
5
|
//# sourceMappingURL=StandardModeConfirmationPrompt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardModeConfirmationPrompt.js","sourceRoot":"","sources":["../../../source/components/prompt/StandardModeConfirmationPrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"StandardModeConfirmationPrompt.js","sourceRoot":"","sources":["../../../source/components/prompt/StandardModeConfirmationPrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAQ/C,MAAM,8BAA8B,GAA4C,CAAC,KAAK,EAAE,EAAE,CAAC,CACzF,oBAAC,aAAa,IAAC,QAAQ,EAAC,0BAA0B,KAAK,KAAK,GAAI,CACjE,CAAC;AAEF,eAAe,8BAA8B,CAAC"}
|
|
@@ -12,7 +12,11 @@
|
|
|
12
12
|
*/
|
|
13
13
|
/** The single interactive accent: prompts, selection, user identity, focus. */
|
|
14
14
|
export declare const COLOR_ACCENT = "#22d3ee";
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Secondary accent: work that runs outside the foreground turn — the mentor
|
|
17
|
+
* lane, background tasks, and queued follow-ups (plus the Alt+Enter key that
|
|
18
|
+
* creates them). Not a general-purpose second highlight.
|
|
19
|
+
*/
|
|
16
20
|
export declare const COLOR_ACCENT_ALT = "#a78bfa";
|
|
17
21
|
export declare const COLOR_SUCCESS = "#10b981";
|
|
18
22
|
export declare const COLOR_WARNING = "#f59e0b";
|
|
@@ -37,8 +41,6 @@ export declare const COLOR_USER_BACKGROUND = "#334155";
|
|
|
37
41
|
export declare const COLOR_REASONING = "#64748b";
|
|
38
42
|
/** Tool stdout and rendered tool results. */
|
|
39
43
|
export declare const COLOR_TOOL_OUTPUT = "#94a3b8";
|
|
40
|
-
/** @deprecated Use COLOR_TEXT_SUBTLE (hints, labels) or COLOR_BORDER (rules). */
|
|
41
|
-
export declare const COLOR_MUTED = "#64748b";
|
|
42
44
|
export declare const GLYPH_SELECTED = "\u276F";
|
|
43
45
|
export declare const GLYPH_WARNING = "\u25B2";
|
|
44
46
|
export declare const GLYPH_SEPARATOR = "\u2502";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../source/components/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,+EAA+E;AAC/E,eAAO,MAAM,YAAY,YAAY,CAAC;AACtC
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../source/components/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,+EAA+E;AAC/E,eAAO,MAAM,YAAY,YAAY,CAAC;AACtC;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAI1C,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,YAAY,YAAY,CAAC;AACtC,2DAA2D;AAC3D,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAI3C,qFAAqF;AACrF,eAAO,MAAM,UAAU,YAAY,CAAC;AACpC,qDAAqD;AACrD,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,yDAAyD;AACzD,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAI3C,+CAA+C;AAC/C,eAAO,MAAM,YAAY,YAAY,CAAC;AACtC,wDAAwD;AACxD,eAAO,MAAM,mBAAmB,YAAe,CAAC;AAChD,2CAA2C;AAC3C,eAAO,MAAM,qBAAqB,YAAY,CAAC;AAM/C,2HAA2H;AAC3H,eAAO,MAAM,qBAAqB,YAAe,CAAC;AAClD,6CAA6C;AAC7C,eAAO,MAAM,eAAe,YAAoB,CAAC;AACjD,6CAA6C;AAC7C,eAAO,MAAM,iBAAiB,YAAmB,CAAC;AAMlD,eAAO,MAAM,cAAc,WAAM,CAAC;AAClC,eAAO,MAAM,aAAa,WAAM,CAAC;AACjC,eAAO,MAAM,eAAe,WAAM,CAAC;AACnC,eAAO,MAAM,cAAc,WAAM,CAAC;AASlC,eAAO,MAAM,iBAAiB;aAC5B,OAAO,EAAE,GAAG;aACZ,OAAO,EAAE,GAAG;aACZ,SAAS,EAAE,GAAG;aACd,MAAM,EAAE,GAAG;aACX,QAAQ,EAAE,GAAG;CACL,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAE5D,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAM5D,CAAC;AAOF,eAAO,MAAM,qBAAqB;aAChC,QAAQ,EAAE,SAAS;aACnB,IAAI,EAAE,SAAS;aACf,KAAK,EAAE,SAAS;aAChB,IAAI,EAAE,SAAS;aACf,YAAY,EAAE,SAAS;aACvB,MAAM,EAAE,SAAS;CACT,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,qBAAqB,CAAC;AAE3D,8DAA8D;AAC9D,eAAO,MAAM,qBAAqB,YAAY,CAAC"}
|
package/dist/components/theme.js
CHANGED
|
@@ -13,7 +13,11 @@
|
|
|
13
13
|
// --- Brand -----------------------------------------------------------------
|
|
14
14
|
/** The single interactive accent: prompts, selection, user identity, focus. */
|
|
15
15
|
export const COLOR_ACCENT = '#22d3ee';
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Secondary accent: work that runs outside the foreground turn — the mentor
|
|
18
|
+
* lane, background tasks, and queued follow-ups (plus the Alt+Enter key that
|
|
19
|
+
* creates them). Not a general-purpose second highlight.
|
|
20
|
+
*/
|
|
17
21
|
export const COLOR_ACCENT_ALT = '#a78bfa';
|
|
18
22
|
// --- Status ----------------------------------------------------------------
|
|
19
23
|
export const COLOR_SUCCESS = '#10b981';
|
|
@@ -44,8 +48,6 @@ export const COLOR_USER_BACKGROUND = COLOR_BORDER;
|
|
|
44
48
|
export const COLOR_REASONING = COLOR_TEXT_SUBTLE;
|
|
45
49
|
/** Tool stdout and rendered tool results. */
|
|
46
50
|
export const COLOR_TOOL_OUTPUT = COLOR_TEXT_MUTED;
|
|
47
|
-
/** @deprecated Use COLOR_TEXT_SUBTLE (hints, labels) or COLOR_BORDER (rules). */
|
|
48
|
-
export const COLOR_MUTED = COLOR_TEXT_SUBTLE;
|
|
49
51
|
// --- Shared glyphs ---------------------------------------------------------
|
|
50
52
|
// Single-width on purpose. Emoji such as ⚠️ are double-width in most terminals
|
|
51
53
|
// and silently break every column alignment on the line they appear in.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../source/components/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,8EAA8E;AAE9E,+EAA+E;AAC/E,MAAM,CAAC,MAAM,YAAY,GAAG,SAAS,CAAC;AACtC
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../source/components/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,8EAA8E;AAE9E,+EAA+E;AAC/E,MAAM,CAAC,MAAM,YAAY,GAAG,SAAS,CAAC;AACtC;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,G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AAE,0BAA0B,EAAE,qBAAqB,EAAE,CAAC;AACrF,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
package/dist/gateway/gateway.js
CHANGED
|
@@ -2986,13 +2986,20 @@ export function mapConversationEvent(event, turnId, sessionId, interactionBindin
|
|
|
2986
2986
|
},
|
|
2987
2987
|
};
|
|
2988
2988
|
}
|
|
2989
|
+
// Subagent usage is not the turn's usage; the public `usage_update` stays
|
|
2990
|
+
// root-only until the wire grows an explicitly subagent-scoped event.
|
|
2991
|
+
case 'subagent_usage_update':
|
|
2992
|
+
return null;
|
|
2993
|
+
// The public `retry` already carries an optional `agentId`, so both root
|
|
2994
|
+
// and subagent retries keep their existing wire shape.
|
|
2989
2995
|
case 'retry':
|
|
2996
|
+
case 'subagent_retry':
|
|
2990
2997
|
return {
|
|
2991
2998
|
...base,
|
|
2992
2999
|
type: 'retry',
|
|
2993
3000
|
payload: {
|
|
2994
3001
|
turnId,
|
|
2995
|
-
...(event.
|
|
3002
|
+
...(event.type === 'subagent_retry' ? { agentId: boundedText(event.agentId, 256) } : {}),
|
|
2996
3003
|
toolName: boundedText(event.toolName, 256),
|
|
2997
3004
|
attempt: boundedInteger(event.attempt, 512),
|
|
2998
3005
|
maxRetries: boundedInteger(event.maxRetries, 512),
|