opencode-orchestrator 1.2.34 → 1.2.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +91 -41
- package/dist/core/agents/agent-registry.d.ts +28 -0
- package/dist/core/agents/concurrency.d.ts +38 -0
- package/dist/core/agents/config.d.ts +9 -0
- package/dist/core/agents/consts/index.d.ts +4 -0
- package/dist/core/agents/index.d.ts +2 -3
- package/dist/core/agents/interfaces/session-pool.interface.d.ts +0 -7
- package/dist/core/agents/manager/event-handler.d.ts +35 -0
- package/dist/core/agents/manager/index.d.ts +10 -0
- package/dist/core/agents/manager/task-cleaner.d.ts +29 -0
- package/dist/core/agents/manager/task-launcher.d.ts +35 -0
- package/dist/core/agents/manager/task-poller.d.ts +28 -0
- package/dist/core/agents/manager/task-resumer.d.ts +18 -0
- package/dist/core/agents/manager.d.ts +41 -9
- package/dist/core/agents/persistence/task-wal.d.ts +26 -0
- package/dist/core/agents/session-pool.d.ts +0 -10
- package/dist/core/agents/task-store.d.ts +54 -0
- package/dist/core/cache/constants.d.ts +2 -2
- package/dist/core/cleanup/cleanup-scheduler.d.ts +11 -0
- package/dist/core/context/context-window-monitor.d.ts +66 -0
- package/dist/core/context/index.d.ts +6 -0
- package/dist/core/loop/formatters.d.ts +17 -0
- package/dist/core/loop/interfaces/index.d.ts +5 -0
- package/dist/core/loop/interfaces/todo-stats.d.ts +11 -0
- package/dist/core/loop/interfaces/todo.d.ts +13 -0
- package/dist/core/loop/interfaces.d.ts +7 -0
- package/dist/core/loop/mission-loop-handler.d.ts +25 -0
- package/dist/core/loop/mission-loop.d.ts +48 -0
- package/dist/core/loop/parser.d.ts +8 -0
- package/dist/core/loop/stats.d.ts +24 -0
- package/dist/core/loop/todo-continuation.d.ts +39 -0
- package/dist/core/loop/todo-enforcer.d.ts +9 -0
- package/dist/core/loop/todo-manager.d.ts +22 -0
- package/dist/core/loop/types/index.d.ts +5 -0
- package/dist/core/loop/types/todo-priority.d.ts +4 -0
- package/dist/core/loop/types/todo-status.d.ts +4 -0
- package/dist/core/loop/verification.d.ts +22 -0
- package/dist/core/memory/interfaces.d.ts +33 -0
- package/dist/core/memory/memory-manager.d.ts +40 -0
- package/dist/core/metrics/collector.d.ts +27 -0
- package/dist/core/notification/os-notify/index.d.ts +7 -0
- package/dist/core/notification/os-notify/notifier.d.ts +7 -0
- package/dist/core/notification/os-notify/platform-resolver.d.ts +7 -0
- package/dist/core/notification/os-notify/platform.d.ts +7 -0
- package/dist/core/notification/os-notify/sound-player.d.ts +7 -0
- package/dist/core/notification/os-notify/todo-checker.d.ts +5 -0
- package/dist/core/notification/task-toast-manager.d.ts +127 -0
- package/dist/core/notification/toast-core.d.ts +36 -0
- package/dist/core/notification/toast.d.ts +9 -0
- package/dist/core/orchestrator/index.d.ts +6 -0
- package/dist/core/orchestrator/interfaces/index.d.ts +4 -0
- package/dist/core/orchestrator/interfaces/session-state.d.ts +11 -0
- package/dist/core/orchestrator/session-manager.d.ts +31 -0
- package/dist/core/orchestrator/state.d.ts +10 -0
- package/dist/core/orchestrator/types/index.d.ts +4 -0
- package/dist/core/orchestrator/types/task-status.d.ts +5 -0
- package/dist/core/plugins/interfaces.d.ts +30 -0
- package/dist/core/plugins/plugin-manager.d.ts +21 -0
- package/dist/core/progress/calculator.d.ts +11 -0
- package/dist/core/progress/formatters.d.ts +20 -0
- package/dist/core/progress/interfaces/index.d.ts +8 -0
- package/dist/core/progress/interfaces/progress-snapshot.d.ts +15 -0
- package/dist/core/progress/interfaces/snapshot-input.d.ts +13 -0
- package/dist/core/progress/interfaces/step-progress.d.ts +7 -0
- package/dist/core/progress/interfaces/task-progress.d.ts +10 -0
- package/dist/core/progress/interfaces/todo-progress.d.ts +9 -0
- package/dist/core/progress/interfaces.d.ts +6 -0
- package/dist/core/progress/progress-notifier.d.ts +14 -0
- package/dist/core/progress/state-broadcaster.d.ts +29 -0
- package/dist/core/progress/store.d.ts +28 -0
- package/dist/core/progress/tracker.d.ts +11 -0
- package/dist/core/queue/async-queue.d.ts +46 -0
- package/dist/core/queue/async-utils.d.ts +20 -0
- package/dist/core/queue/index.d.ts +8 -0
- package/dist/core/queue/work-pool.d.ts +19 -0
- package/dist/core/recovery/auto-recovery.d.ts +9 -0
- package/dist/core/recovery/constants.d.ts +9 -0
- package/dist/core/recovery/handler.d.ts +27 -0
- package/dist/core/recovery/interfaces/error-context.d.ts +11 -0
- package/dist/core/recovery/interfaces/error-pattern.d.ts +10 -0
- package/dist/core/recovery/interfaces/index.d.ts +8 -0
- package/dist/core/recovery/interfaces/recovery-action.d.ts +25 -0
- package/dist/core/recovery/interfaces/recovery-record.d.ts +10 -0
- package/dist/core/recovery/interfaces/recovery-stats.d.ts +9 -0
- package/dist/core/recovery/interfaces.d.ts +6 -0
- package/dist/core/recovery/patterns.d.ts +8 -0
- package/dist/core/recovery/retry.d.ts +59 -0
- package/dist/core/recovery/session-recovery.d.ts +30 -0
- package/dist/core/session/interfaces/context-stats.d.ts +9 -0
- package/dist/core/session/interfaces/index.d.ts +8 -0
- package/dist/core/session/interfaces/shared-context.d.ts +15 -0
- package/dist/core/session/interfaces/shared-decision.d.ts +10 -0
- package/dist/core/session/interfaces/shared-document.d.ts +9 -0
- package/dist/core/session/interfaces/shared-finding.d.ts +10 -0
- package/dist/core/session/interfaces.d.ts +6 -0
- package/dist/core/session/shared-context.d.ts +8 -0
- package/dist/core/session/store.d.ts +44 -0
- package/dist/core/session/summary.d.ts +7 -0
- package/dist/core/sync/todo-parser.d.ts +5 -0
- package/dist/core/sync/todo-sync-service.d.ts +35 -0
- package/dist/core/task/interfaces/index.d.ts +8 -0
- package/dist/core/task/interfaces/task-hierarchy.d.ts +9 -0
- package/dist/core/task/interfaces/task-input.d.ts +11 -0
- package/dist/core/task/interfaces/task-node.d.ts +20 -0
- package/dist/core/task/interfaces/task-progress.d.ts +11 -0
- package/dist/core/task/interfaces.d.ts +6 -0
- package/dist/core/task/parser.d.ts +8 -0
- package/dist/core/task/scheduler.d.ts +12 -0
- package/dist/core/task/store.d.ts +32 -0
- package/dist/core/task/summary.d.ts +7 -0
- package/dist/core/task/task-decomposer.d.ts +10 -0
- package/dist/core/todo/todo-manager.d.ts +28 -0
- package/dist/hooks/compatibility/external-plugin.d.ts +10 -0
- package/dist/hooks/constants.d.ts +27 -0
- package/dist/hooks/custom/agent-ui.d.ts +20 -0
- package/dist/hooks/custom/memory-gate.d.ts +21 -0
- package/dist/hooks/custom/metrics.d.ts +14 -0
- package/dist/hooks/custom/resource-control.d.ts +13 -0
- package/dist/hooks/custom/secret-scanner.d.ts +19 -0
- package/dist/hooks/custom/strict-role-guard.d.ts +21 -0
- package/dist/hooks/custom/user-activity.d.ts +11 -0
- package/dist/hooks/features/mission-loop.d.ts +18 -0
- package/dist/hooks/features/sanity-check.d.ts +15 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/registry.d.ts +37 -0
- package/dist/hooks/types.d.ts +72 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +27219 -6229
- package/dist/plugin-handlers/assistant-done-handler.d.ts +12 -0
- package/dist/plugin-handlers/chat-message-handler.d.ts +30 -0
- package/dist/plugin-handlers/config-handler.d.ts +9 -0
- package/dist/plugin-handlers/event-handler.d.ts +18 -0
- package/dist/plugin-handlers/index.d.ts +9 -0
- package/dist/plugin-handlers/interfaces/assistant-done-context.d.ts +12 -0
- package/dist/plugin-handlers/interfaces/chat-message-context.d.ts +12 -0
- package/dist/plugin-handlers/interfaces/event-handler-context.d.ts +14 -0
- package/dist/plugin-handlers/interfaces/index.d.ts +12 -0
- package/dist/plugin-handlers/interfaces/orchestrator-state.d.ts +14 -0
- package/dist/plugin-handlers/interfaces/session-compacting.d.ts +19 -0
- package/dist/plugin-handlers/interfaces/session-state.d.ts +15 -0
- package/dist/plugin-handlers/interfaces/system-transform.d.ts +17 -0
- package/dist/plugin-handlers/interfaces/tool-execute-context.d.ts +8 -0
- package/dist/plugin-handlers/interfaces/tool-hook.d.ts +14 -0
- package/dist/plugin-handlers/session-compacting-handler.d.ts +14 -0
- package/dist/plugin-handlers/system-transform-handler.d.ts +14 -0
- package/dist/plugin-handlers/tool-execute-handler.d.ts +14 -0
- package/dist/plugin-handlers/tool-execute-pre-handler.d.ts +8 -0
- package/dist/scripts/postinstall.js +29 -125
- package/dist/shared/command/index.d.ts +0 -1
- package/dist/shared/constants/system-messages.d.ts +4 -4
- package/dist/shared/core/constants/index.d.ts +0 -4
- package/dist/shared/core/constants/paths.d.ts +16 -10
- package/dist/shared/errors/constants/error-patterns.d.ts +13 -0
- package/dist/shared/errors/constants/error-type.d.ts +13 -0
- package/dist/shared/errors/constants/index.d.ts +5 -0
- package/dist/shared/errors/detection.d.ts +5 -0
- package/dist/shared/errors/index.d.ts +7 -0
- package/dist/shared/errors/retry.d.ts +7 -0
- package/dist/shared/errors/types/error-pattern-type.d.ts +5 -0
- package/dist/shared/errors/types/index.d.ts +4 -0
- package/dist/shared/index.d.ts +9 -7
- package/dist/shared/loop/constants/index.d.ts +7 -0
- package/dist/shared/loop/constants/labels.d.ts +33 -0
- package/dist/shared/loop/constants/loop.d.ts +17 -0
- package/dist/shared/loop/constants/mission-control.d.ts +20 -0
- package/dist/shared/loop/constants/todo-status.d.ts +9 -0
- package/dist/shared/loop/index.d.ts +6 -0
- package/dist/shared/loop/interfaces/index.d.ts +6 -0
- package/dist/shared/loop/interfaces/mission-loop.d.ts +29 -0
- package/dist/shared/loop/interfaces/todo-stats.d.ts +11 -0
- package/dist/shared/loop/interfaces/todo.d.ts +13 -0
- package/dist/shared/loop/types/index.d.ts +5 -0
- package/dist/shared/loop/types/todo-priority.d.ts +4 -0
- package/dist/shared/loop/types/todo-status.d.ts +4 -0
- package/dist/shared/message/constants/index.d.ts +8 -0
- package/dist/shared/message/constants/message-roles.d.ts +23 -0
- package/dist/shared/message/constants/part-types.d.ts +13 -0
- package/dist/shared/message/constants/plugin-hooks.d.ts +15 -0
- package/dist/shared/message/constants/prompts.d.ts +8 -0
- package/dist/shared/message/constants/slash-commands.d.ts +21 -0
- package/dist/shared/message/index.d.ts +4 -0
- package/dist/shared/notification/constants/index.d.ts +3 -0
- package/dist/shared/notification/constants/toast-duration.d.ts +19 -0
- package/dist/shared/notification/constants/toast-variants.d.ts +10 -0
- package/dist/shared/notification/constants/tui.const.d.ts +24 -0
- package/dist/shared/notification/index.d.ts +7 -0
- package/dist/shared/notification/interfaces/index.d.ts +6 -0
- package/dist/shared/notification/interfaces/task-toast.interface.d.ts +18 -0
- package/dist/shared/notification/interfaces/toast-message.d.ts +13 -0
- package/dist/shared/notification/interfaces/toast-options.d.ts +10 -0
- package/dist/shared/notification/os-notify/constants/index.d.ts +6 -0
- package/dist/shared/notification/os-notify/constants/notification-command-keys.d.ts +11 -0
- package/dist/shared/notification/os-notify/constants/notification-commands.d.ts +11 -0
- package/dist/shared/notification/os-notify/constants/notification-defaults.d.ts +5 -0
- package/dist/shared/notification/os-notify/index.d.ts +6 -0
- package/dist/shared/notification/os-notify/interfaces/index.d.ts +5 -0
- package/dist/shared/notification/os-notify/interfaces/notification-config.d.ts +15 -0
- package/dist/shared/notification/os-notify/interfaces/notification-state.d.ts +13 -0
- package/dist/shared/notification/os-notify/types/index.d.ts +4 -0
- package/dist/shared/notification/os-notify/types/notification-commands.d.ts +5 -0
- package/dist/shared/notification/presets/index.d.ts +9 -0
- package/dist/shared/notification/presets/mission.d.ts +5 -0
- package/dist/shared/notification/presets/parallel.d.ts +6 -0
- package/dist/shared/notification/presets/session.d.ts +6 -0
- package/dist/shared/notification/presets/task-lifecycle.d.ts +7 -0
- package/dist/shared/notification/presets/tools.d.ts +6 -0
- package/dist/shared/notification/presets/warnings.d.ts +7 -0
- package/dist/shared/notification/types/index.d.ts +4 -0
- package/dist/shared/notification/types/toast-variant.d.ts +4 -0
- package/dist/shared/os/constants/index.d.ts +4 -0
- package/dist/shared/{core/constants/os.d.ts → os/constants/platform.d.ts} +3 -4
- package/dist/shared/os/index.d.ts +5 -0
- package/dist/shared/os/types/index.d.ts +4 -0
- package/dist/shared/os/types/platform.d.ts +5 -0
- package/dist/shared/prompt/constants/mandates.d.ts +1 -1
- package/dist/shared/prompt/constants/tags.d.ts +0 -4
- package/dist/shared/prompt/index.d.ts +0 -1
- package/dist/shared/recovery/constants/history.d.ts +11 -0
- package/dist/shared/recovery/constants/index.d.ts +6 -0
- package/dist/shared/recovery/constants/recovery-level.d.ts +15 -0
- package/dist/shared/recovery/constants/recovery.d.ts +13 -0
- package/dist/shared/recovery/index.d.ts +6 -0
- package/dist/shared/recovery/interfaces/error-context.d.ts +11 -0
- package/dist/shared/recovery/interfaces/index.d.ts +5 -0
- package/dist/shared/recovery/interfaces/recovery-record.d.ts +10 -0
- package/dist/shared/recovery/types/index.d.ts +4 -0
- package/dist/shared/recovery/types/recovery-action.d.ts +4 -0
- package/dist/shared/session/constants/events/index.d.ts +0 -5
- package/dist/shared/session/constants/index.d.ts +0 -2
- package/dist/shared/session/index.d.ts +0 -1
- package/dist/shared/task/constants/parallel-task.d.ts +4 -5
- package/dist/shared/todo/index.d.ts +4 -0
- package/dist/shared/todo/interfaces/index.d.ts +12 -0
- package/dist/shared/verification/constants/categories.d.ts +95 -0
- package/dist/shared/verification/constants/checklist.d.ts +16 -0
- package/dist/shared/verification/constants/index.d.ts +7 -0
- package/dist/shared/verification/constants/patterns.d.ts +19 -0
- package/dist/shared/verification/constants/signals.d.ts +10 -0
- package/dist/shared/verification/index.d.ts +8 -0
- package/dist/shared/verification/interfaces/checklist-item.d.ts +21 -0
- package/dist/shared/verification/interfaces/checklist-verification-result.d.ts +24 -0
- package/dist/shared/verification/interfaces/index.d.ts +7 -0
- package/dist/shared/verification/interfaces/verification-checklist.d.ts +19 -0
- package/dist/shared/verification/interfaces/verification-result.d.ts +29 -0
- package/dist/shared/verification/types/checklist-category.d.ts +18 -0
- package/dist/shared/verification/types/index.d.ts +4 -0
- package/dist/tools/parallel/list-agents.d.ts +1 -1
- package/dist/tools/parallel/show-metrics.d.ts +10 -0
- package/dist/tools/parallel/update-todo.d.ts +7 -0
- package/dist/tools/slashCommand.d.ts +1 -1
- package/dist/utils/common.d.ts +5 -3
- package/dist/utils/compatibility/claude.d.ts +9 -0
- package/dist/utils/formatting/elapsed-time.d.ts +4 -0
- package/dist/utils/formatting/index.d.ts +5 -0
- package/dist/utils/formatting/timestamp.d.ts +4 -0
- package/dist/utils/parsing/index.d.ts +4 -0
- package/dist/utils/parsing/slash-command.d.ts +7 -0
- package/dist/utils/sanity/checker.d.ts +8 -0
- package/dist/utils/sanity/constants/escalation-prompt.d.ts +4 -0
- package/dist/utils/sanity/constants/index.d.ts +6 -0
- package/dist/utils/sanity/constants/recovery-prompt.d.ts +4 -0
- package/dist/utils/sanity/constants/severity.d.ts +8 -0
- package/dist/utils/sanity/index.d.ts +7 -0
- package/dist/utils/sanity/interfaces/index.d.ts +4 -0
- package/dist/utils/sanity/interfaces/sanity-result.d.ts +9 -0
- package/dist/utils/sanity/types/index.d.ts +4 -0
- package/dist/utils/sanity/types/severity.d.ts +5 -0
- package/package.json +3 -3
- package/dist/core/agents/adaptive-concurrency.d.ts +0 -57
- package/dist/core/agents/unified-task-executor.d.ts +0 -27
- package/dist/core/mission/mission-controller.d.ts +0 -53
- package/dist/core/resource/resource-tracker.d.ts +0 -61
- package/dist/shared/command/constants/names.d.ts +0 -8
- package/dist/shared/core/constants/labels.d.ts +0 -12
- package/dist/shared/core/constants/mission.d.ts +0 -8
- package/dist/shared/core/constants/signals.d.ts +0 -22
- package/dist/shared/prompt/constants/prompts.d.ts +0 -7
- package/dist/shared/session/constants/events/hook-events.d.ts +0 -9
- package/dist/shared/session/constants/message.d.ts +0 -15
- package/dist/shared/session/constants/status.d.ts +0 -9
- /package/dist/{shared/task/constants/task-status.d.ts → core/agents/consts/task-status.const.d.ts} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class CleanupScheduler {
|
|
2
|
+
private intervals;
|
|
3
|
+
private directory;
|
|
4
|
+
constructor(directory: string);
|
|
5
|
+
start(): void;
|
|
6
|
+
private schedule;
|
|
7
|
+
stop(): void;
|
|
8
|
+
compactWAL(): Promise<void>;
|
|
9
|
+
cleanDocs(): Promise<void>;
|
|
10
|
+
rotateHistory(): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context Window Monitor
|
|
3
|
+
*
|
|
4
|
+
* Monitors context window usage and alerts when thresholds are exceeded.
|
|
5
|
+
*
|
|
6
|
+
* Thresholds:
|
|
7
|
+
* - 70%: Info alert - "Still plenty of headroom"
|
|
8
|
+
* - 85%: Warning - Consider compaction
|
|
9
|
+
* - 95%: Critical - Immediate action needed
|
|
10
|
+
*/
|
|
11
|
+
export declare const CONTEXT_THRESHOLDS: {
|
|
12
|
+
/** Info level - remind agent there's still room */
|
|
13
|
+
readonly INFO: 0.7;
|
|
14
|
+
/** Warning level - consider compaction soon */
|
|
15
|
+
readonly WARNING: 0.85;
|
|
16
|
+
/** Critical level - immediate action needed */
|
|
17
|
+
readonly CRITICAL: 0.95;
|
|
18
|
+
};
|
|
19
|
+
export declare const CONTEXT_MONITOR_CONFIG: {
|
|
20
|
+
/** Default max tokens for most models */
|
|
21
|
+
readonly DEFAULT_MAX_TOKENS: 200000;
|
|
22
|
+
/** Check interval in milliseconds */
|
|
23
|
+
readonly CHECK_INTERVAL_MS: 30000;
|
|
24
|
+
/** Minimum time between alerts (ms) */
|
|
25
|
+
readonly ALERT_COOLDOWN_MS: 60000;
|
|
26
|
+
};
|
|
27
|
+
export interface MonitorState {
|
|
28
|
+
lastAlertTime: number;
|
|
29
|
+
lastAlertLevel: "info" | "warning" | "critical" | null;
|
|
30
|
+
isMonitoring: boolean;
|
|
31
|
+
intervalId?: ReturnType<typeof setInterval>;
|
|
32
|
+
}
|
|
33
|
+
export declare function getMonitorState(sessionID: string): MonitorState;
|
|
34
|
+
/**
|
|
35
|
+
* Calculate context usage percentage
|
|
36
|
+
*/
|
|
37
|
+
export declare function calculateUsage(usedTokens: number, maxTokens: number): number;
|
|
38
|
+
/**
|
|
39
|
+
* Get alert level based on usage
|
|
40
|
+
*/
|
|
41
|
+
export declare function getAlertLevel(usage: number): "info" | "warning" | "critical" | null;
|
|
42
|
+
/**
|
|
43
|
+
* Format usage for display
|
|
44
|
+
*/
|
|
45
|
+
export declare function formatUsage(usage: number, usedTokens: number, maxTokens: number): string;
|
|
46
|
+
/**
|
|
47
|
+
* Check context window usage and alert if needed
|
|
48
|
+
*/
|
|
49
|
+
export declare function checkContextWindow(sessionID: string, usedTokens: number, maxTokens?: number): void;
|
|
50
|
+
/**
|
|
51
|
+
* Get injection prompt for context-aware agents
|
|
52
|
+
* This reminds agents about context status when usage is high
|
|
53
|
+
*/
|
|
54
|
+
export declare function getContextInjection(usedTokens: number, maxTokens?: number): string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Cleanup session state
|
|
57
|
+
*/
|
|
58
|
+
export declare function cleanupSession(sessionID: string): void;
|
|
59
|
+
/**
|
|
60
|
+
* Get current monitor status for debugging
|
|
61
|
+
*/
|
|
62
|
+
export declare function getMonitorStatus(sessionID: string): {
|
|
63
|
+
lastAlertTime: number;
|
|
64
|
+
lastAlertLevel: string | null;
|
|
65
|
+
isMonitoring: boolean;
|
|
66
|
+
} | null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context Module
|
|
3
|
+
*
|
|
4
|
+
* Context window monitoring and management utilities.
|
|
5
|
+
*/
|
|
6
|
+
export { checkContextWindow, getContextInjection, cleanupSession, getMonitorStatus, calculateUsage, getAlertLevel, formatUsage, CONTEXT_THRESHOLDS, CONTEXT_MONITOR_CONFIG, } from "./context-window-monitor.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Todo Formatters - Format output strings
|
|
3
|
+
*/
|
|
4
|
+
import type { Todo } from "./interfaces.js";
|
|
5
|
+
/**
|
|
6
|
+
* Format progress string
|
|
7
|
+
*/
|
|
8
|
+
export declare function formatProgress(todos: Todo[]): string;
|
|
9
|
+
/**
|
|
10
|
+
* Generate continuation prompt when todos remain
|
|
11
|
+
* Enforces parallel dispatch when multiple independent tasks exist
|
|
12
|
+
*/
|
|
13
|
+
export declare function generateContinuationPrompt(todos: Todo[]): string;
|
|
14
|
+
/**
|
|
15
|
+
* Generate completion message
|
|
16
|
+
*/
|
|
17
|
+
export declare function generateCompletionMessage(todos: Todo[]): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Todo Interface
|
|
3
|
+
*/
|
|
4
|
+
import type { TodoStatus, TodoPriority } from "../types/index.js";
|
|
5
|
+
export interface Todo {
|
|
6
|
+
id: string;
|
|
7
|
+
content: string;
|
|
8
|
+
status: TodoStatus;
|
|
9
|
+
priority: TodoPriority;
|
|
10
|
+
parentId?: string;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
completedAt?: Date;
|
|
13
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mission Loop Handler
|
|
3
|
+
*
|
|
4
|
+
* Monitors session events and ensures the mission loop continues
|
|
5
|
+
* until all verification requirements are met.
|
|
6
|
+
*/
|
|
7
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
8
|
+
type OpencodeClient = PluginInput["client"];
|
|
9
|
+
/**
|
|
10
|
+
* Handle session.idle event for mission loop
|
|
11
|
+
*/
|
|
12
|
+
export declare function handleMissionIdle(client: OpencodeClient, directory: string, sessionID: string, mainSessionID?: string): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Handle user message - cancel countdown
|
|
15
|
+
*/
|
|
16
|
+
export declare function handleUserMessage(sessionID: string): void;
|
|
17
|
+
/**
|
|
18
|
+
* Handle abort
|
|
19
|
+
*/
|
|
20
|
+
export declare function handleAbort(sessionID: string): void;
|
|
21
|
+
/**
|
|
22
|
+
* Clean up session state
|
|
23
|
+
*/
|
|
24
|
+
export declare function cleanupSession(sessionID: string): void;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mission Loop - Persistent Execution System
|
|
3
|
+
*
|
|
4
|
+
* Ensures the mission continues until all TODO items are complete.
|
|
5
|
+
* This system moves away from explicit signaling (seals) and relies
|
|
6
|
+
* strictly on file-based state verification.
|
|
7
|
+
*/
|
|
8
|
+
import type { MissionLoopState, MissionLoopOptions } from "../../shared/loop/interfaces/mission-loop.js";
|
|
9
|
+
/**
|
|
10
|
+
* Read loop state from disk
|
|
11
|
+
*/
|
|
12
|
+
export declare function readLoopState(directory: string): MissionLoopState | null;
|
|
13
|
+
/**
|
|
14
|
+
* Write loop state to disk
|
|
15
|
+
*/
|
|
16
|
+
export declare function writeLoopState(directory: string, state: MissionLoopState): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Clear loop state (delete file)
|
|
19
|
+
*/
|
|
20
|
+
export declare function clearLoopState(directory: string): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Increment iteration counter
|
|
23
|
+
*/
|
|
24
|
+
export declare function incrementIteration(directory: string): MissionLoopState | null;
|
|
25
|
+
/**
|
|
26
|
+
* Start a mission loop
|
|
27
|
+
*/
|
|
28
|
+
export declare function startMissionLoop(directory: string, sessionID: string, prompt: string, options?: MissionLoopOptions): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Cancel an active mission loop
|
|
31
|
+
*/
|
|
32
|
+
export declare function cancelMissionLoop(directory: string, sessionID: string): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Check if loop is active for session
|
|
35
|
+
*/
|
|
36
|
+
export declare function isLoopActive(directory: string, sessionID: string): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Generate continuation prompt for mission loop
|
|
39
|
+
*/
|
|
40
|
+
export declare function generateMissionContinuationPrompt(state: MissionLoopState, verificationSummary?: string): string;
|
|
41
|
+
/**
|
|
42
|
+
* Generate completion notification
|
|
43
|
+
*/
|
|
44
|
+
export declare function generateCompletionNotification(state: MissionLoopState): string;
|
|
45
|
+
/**
|
|
46
|
+
* Generate max iterations reached notification
|
|
47
|
+
*/
|
|
48
|
+
export declare function generateMaxIterationsNotification(state: MissionLoopState): string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Todo Stats - Statistics and queries
|
|
3
|
+
*/
|
|
4
|
+
import type { Todo, TodoStats } from "./interfaces.js";
|
|
5
|
+
/**
|
|
6
|
+
* Get count of incomplete todos
|
|
7
|
+
*/
|
|
8
|
+
export declare function getIncompleteCount(todos: Todo[]): number;
|
|
9
|
+
/**
|
|
10
|
+
* Check if there's remaining work
|
|
11
|
+
*/
|
|
12
|
+
export declare function hasRemainingWork(todos: Todo[]): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Get next pending todo (highest priority first)
|
|
15
|
+
*/
|
|
16
|
+
export declare function getNextPending(todos: Todo[]): Todo | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Calculate todo statistics
|
|
19
|
+
*/
|
|
20
|
+
export declare function getStats(todos: Todo[]): TodoStats;
|
|
21
|
+
/**
|
|
22
|
+
* Check if mission is complete based on todos
|
|
23
|
+
*/
|
|
24
|
+
export declare function isMissionComplete(todos: Todo[]): boolean;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Todo Continuation Handler
|
|
3
|
+
*
|
|
4
|
+
* Monitors session.idle events and automatically continues execution
|
|
5
|
+
* if there are incomplete todos remaining.
|
|
6
|
+
*
|
|
7
|
+
* Features:
|
|
8
|
+
* - Countdown toast before resuming (gives user chance to cancel)
|
|
9
|
+
* - Skips if background tasks are running
|
|
10
|
+
* - Respects abort/cancel from user
|
|
11
|
+
*/
|
|
12
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
13
|
+
type OpencodeClient = PluginInput["client"];
|
|
14
|
+
/**
|
|
15
|
+
* Handle session.idle event - start countdown if todos remain
|
|
16
|
+
*/
|
|
17
|
+
export declare function handleSessionIdle(client: OpencodeClient, directory: string, sessionID: string, mainSessionID?: string): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Handle user message - cancel countdown (user is interacting)
|
|
20
|
+
* Uses grace period to avoid cancelling countdown from our own injected messages
|
|
21
|
+
*/
|
|
22
|
+
export declare function handleUserMessage(sessionID: string): void;
|
|
23
|
+
/**
|
|
24
|
+
* Handle session error - detect abort/cancel
|
|
25
|
+
*/
|
|
26
|
+
export declare function handleSessionError(sessionID: string, error: unknown): void;
|
|
27
|
+
/**
|
|
28
|
+
* Handle abort/cancel - prevent automatic continuation
|
|
29
|
+
*/
|
|
30
|
+
export declare function handleAbort(sessionID: string): void;
|
|
31
|
+
/**
|
|
32
|
+
* Clean up session state
|
|
33
|
+
*/
|
|
34
|
+
export declare function cleanupSession(sessionID: string): void;
|
|
35
|
+
/**
|
|
36
|
+
* Check if there's a pending continuation countdown
|
|
37
|
+
*/
|
|
38
|
+
export declare function hasPendingContinuation(sessionID: string): boolean;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Todo Enforcer
|
|
3
|
+
*
|
|
4
|
+
* Ensures all todos are completed before stopping
|
|
5
|
+
*/
|
|
6
|
+
export type { Todo, TodoStats, TodoStatus, TodoPriority } from "./interfaces.js";
|
|
7
|
+
export { parseTodos } from "./parser.js";
|
|
8
|
+
export { getIncompleteCount, hasRemainingWork, getNextPending, getStats, isMissionComplete, } from "./stats.js";
|
|
9
|
+
export { formatProgress, generateContinuationPrompt, generateCompletionMessage, } from "./formatters.js";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TodoManager - Legacy Wrapper for the new MVCC-based TodoManager
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use src/core/todo/todo-manager.js instead.
|
|
6
|
+
* This class is maintained for partial backward compatibility.
|
|
7
|
+
*/
|
|
8
|
+
export declare class TodoManager {
|
|
9
|
+
private static instance;
|
|
10
|
+
private newManager;
|
|
11
|
+
private constructor();
|
|
12
|
+
static getInstance(): TodoManager;
|
|
13
|
+
setDirectory(dir: string): void;
|
|
14
|
+
/**
|
|
15
|
+
* Update a specific TODO item by its text content
|
|
16
|
+
*/
|
|
17
|
+
updateItem(searchText: string, newStatus: string): Promise<boolean>;
|
|
18
|
+
/**
|
|
19
|
+
* Add a new sub-task under a parent task
|
|
20
|
+
*/
|
|
21
|
+
addSubTask(parentText: string, subTaskText: string): Promise<boolean>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Verification Checklist Module
|
|
3
|
+
*
|
|
4
|
+
* Provides a structured checklist system for mission completion verification.
|
|
5
|
+
*
|
|
6
|
+
* The LLM creates and checks items in .opencode/mission/verification-checklist.md
|
|
7
|
+
* The hook system verifies all items are checked before allowing CONCLUDE.
|
|
8
|
+
*/
|
|
9
|
+
import { type ChecklistCategory, type ChecklistItem, type ChecklistVerificationResult, type VerificationResult } from "../../shared/index.js";
|
|
10
|
+
export type { ChecklistItem, ChecklistCategory, ChecklistVerificationResult, VerificationResult };
|
|
11
|
+
export declare const CHECKLIST_FILE: ".opencode/mission/verification-checklist.md";
|
|
12
|
+
export declare function parseChecklist(content: string): ChecklistItem[];
|
|
13
|
+
export declare function readChecklist(directory: string): ChecklistItem[];
|
|
14
|
+
export declare function verifyChecklist(directory: string): ChecklistVerificationResult;
|
|
15
|
+
export declare function hasValidChecklist(directory: string): boolean;
|
|
16
|
+
export declare function getChecklistSummary(directory: string): string;
|
|
17
|
+
export declare function buildChecklistFailurePrompt(result: ChecklistVerificationResult): string;
|
|
18
|
+
export declare function getChecklistCreationInstructions(): string;
|
|
19
|
+
export declare function verifyMissionCompletion(directory: string): VerificationResult;
|
|
20
|
+
export declare function buildVerificationFailurePrompt(result: VerificationResult): string;
|
|
21
|
+
export declare function buildTodoIncompletePrompt(result: VerificationResult): string;
|
|
22
|
+
export declare function buildVerificationSummary(result: VerificationResult): string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hierarchical Memory System Interfaces
|
|
3
|
+
*/
|
|
4
|
+
export declare enum MemoryLevel {
|
|
5
|
+
/** Core rules, identity, and system instructions (Highest permanence) */
|
|
6
|
+
SYSTEM = "system",
|
|
7
|
+
/** Project architecture, tech stack, and long-term findings (High permanence) */
|
|
8
|
+
PROJECT = "project",
|
|
9
|
+
/** Mission goals, TODO progress, and mid-term decisions (Medium permanence) */
|
|
10
|
+
MISSION = "mission",
|
|
11
|
+
/** Current task details, short-term findings, and tool outputs (Low permanence) */
|
|
12
|
+
TASK = "task"
|
|
13
|
+
}
|
|
14
|
+
export interface MemoryEntry {
|
|
15
|
+
id: string;
|
|
16
|
+
level: MemoryLevel;
|
|
17
|
+
content: string;
|
|
18
|
+
timestamp: number;
|
|
19
|
+
metadata?: Record<string, any>;
|
|
20
|
+
importance: number;
|
|
21
|
+
}
|
|
22
|
+
export interface MemorySnapshot {
|
|
23
|
+
[MemoryLevel.SYSTEM]: MemoryEntry[];
|
|
24
|
+
[MemoryLevel.PROJECT]: MemoryEntry[];
|
|
25
|
+
[MemoryLevel.MISSION]: MemoryEntry[];
|
|
26
|
+
[MemoryLevel.TASK]: MemoryEntry[];
|
|
27
|
+
}
|
|
28
|
+
export interface MemoryConfig {
|
|
29
|
+
/** Token budget per level (approximate or percentage) */
|
|
30
|
+
tokenBudgets: Record<MemoryLevel, number>;
|
|
31
|
+
/** Enable dynamic relevance filtering */
|
|
32
|
+
enableRelevanceFiltering: boolean;
|
|
33
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MemoryManager - Core component of the Hierarchical Memory System
|
|
3
|
+
*/
|
|
4
|
+
import { MemoryLevel, MemorySnapshot } from "./interfaces.js";
|
|
5
|
+
export declare class MemoryManager {
|
|
6
|
+
private static instance;
|
|
7
|
+
private memories;
|
|
8
|
+
private storage;
|
|
9
|
+
private config;
|
|
10
|
+
private constructor();
|
|
11
|
+
static getInstance(): MemoryManager;
|
|
12
|
+
/**
|
|
13
|
+
* Add a memory entry
|
|
14
|
+
*/
|
|
15
|
+
add(level: MemoryLevel, content: string, importance?: number, metadata?: Record<string, any>): string;
|
|
16
|
+
/**
|
|
17
|
+
* Retrieve memory for prompt construction
|
|
18
|
+
*/
|
|
19
|
+
getContext(query?: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* Simple keyword-based relevance check
|
|
22
|
+
*/
|
|
23
|
+
private isRelevant;
|
|
24
|
+
/**
|
|
25
|
+
* Prune memory based on token budget (simplified)
|
|
26
|
+
*/
|
|
27
|
+
prune(level: MemoryLevel): void;
|
|
28
|
+
/**
|
|
29
|
+
* Clear task memory (Short-term)
|
|
30
|
+
*/
|
|
31
|
+
clearTaskMemory(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Export full memory state (for persistence)
|
|
34
|
+
*/
|
|
35
|
+
export(): MemorySnapshot;
|
|
36
|
+
/**
|
|
37
|
+
* Import memory state
|
|
38
|
+
*/
|
|
39
|
+
import(snapshot: MemorySnapshot): void;
|
|
40
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MetricsCollector - Tracks system performance and token usage
|
|
3
|
+
*/
|
|
4
|
+
export interface PerformanceStats {
|
|
5
|
+
avgAgentLatency: Record<string, number>;
|
|
6
|
+
avgToolLatency: Record<string, number>;
|
|
7
|
+
tokenUsage: number;
|
|
8
|
+
efficiency: number;
|
|
9
|
+
totalTasks: number;
|
|
10
|
+
successRate: number;
|
|
11
|
+
}
|
|
12
|
+
export declare class MetricsCollector {
|
|
13
|
+
private static instance;
|
|
14
|
+
private agentLatencies;
|
|
15
|
+
private toolLatencies;
|
|
16
|
+
private tokenUsage;
|
|
17
|
+
private lineCount;
|
|
18
|
+
private tasks;
|
|
19
|
+
private constructor();
|
|
20
|
+
static getInstance(): MetricsCollector;
|
|
21
|
+
recordAgentExecution(agent: string, duration: number): void;
|
|
22
|
+
recordToolExecution(tool: string, duration: number): void;
|
|
23
|
+
recordTokenUsage(tokens: number): void;
|
|
24
|
+
recordTaskResult(id: string, success: boolean): void;
|
|
25
|
+
recordLinesProduced(lines: number): void;
|
|
26
|
+
getStats(): PerformanceStats;
|
|
27
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OS Native Notification Module
|
|
3
|
+
*/
|
|
4
|
+
export * from "../../../shared/notification/os-notify/index.js";
|
|
5
|
+
export { sendNotification } from "./notifier.js";
|
|
6
|
+
export { playSound } from "./sound-player.js";
|
|
7
|
+
export { detectPlatform, getDefaultSoundPath } from "./platform.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Platform Command Resolver
|
|
3
|
+
*
|
|
4
|
+
* Logic for discovering native command paths on the system.
|
|
5
|
+
*/
|
|
6
|
+
import { type NotificationCommandKey } from "../../../shared/notification/os-notify/index.js";
|
|
7
|
+
export declare function resolveCommandPath(key: NotificationCommandKey, commandName: string): Promise<string | null>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OS Platform Utils
|
|
3
|
+
*/
|
|
4
|
+
import { type Platform } from "../../../shared/os/index.js";
|
|
5
|
+
export declare function detectPlatform(): Platform;
|
|
6
|
+
export declare function getDefaultSoundPath(p: Platform): string;
|
|
7
|
+
export declare function preloadPlatformCommands(platform: Platform): void;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Task Toast Manager
|
|
3
|
+
*
|
|
4
|
+
* Manages toast notifications for parallel/background tasks.
|
|
5
|
+
* Provides consolidated view of running and queued tasks.
|
|
6
|
+
*
|
|
7
|
+
* Features:
|
|
8
|
+
* - Real-time task status display
|
|
9
|
+
* - Concurrency info (e.g., "2/5 slots")
|
|
10
|
+
* - New task highlighting
|
|
11
|
+
* - Completion summaries
|
|
12
|
+
*/
|
|
13
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
14
|
+
import type { ConcurrencyController } from "../agents/concurrency.js";
|
|
15
|
+
import { type TaskStatus, type TrackedTask, type TaskCompletionInfo } from "../../shared/index.js";
|
|
16
|
+
import type { TodoSyncService } from "../sync/todo-sync-service.js";
|
|
17
|
+
export type { TaskStatus, TrackedTask, TaskCompletionInfo } from "../../shared/index.js";
|
|
18
|
+
type OpencodeClient = PluginInput["client"];
|
|
19
|
+
export declare class TaskToastManager {
|
|
20
|
+
private tasks;
|
|
21
|
+
private client;
|
|
22
|
+
private concurrency;
|
|
23
|
+
private todoSync;
|
|
24
|
+
/**
|
|
25
|
+
* Initialize the manager with OpenCode client
|
|
26
|
+
*/
|
|
27
|
+
init(client: OpencodeClient, concurrency?: ConcurrencyController): void;
|
|
28
|
+
/**
|
|
29
|
+
* Set concurrency controller (can be set after init)
|
|
30
|
+
*/
|
|
31
|
+
setConcurrencyController(concurrency: ConcurrencyController): void;
|
|
32
|
+
/**
|
|
33
|
+
* Set TodoSyncService for TUI status synchronization
|
|
34
|
+
*/
|
|
35
|
+
setTodoSync(service: TodoSyncService): void;
|
|
36
|
+
/**
|
|
37
|
+
* Add a new task and show consolidated toast
|
|
38
|
+
*/
|
|
39
|
+
addTask(task: {
|
|
40
|
+
id: string;
|
|
41
|
+
description: string;
|
|
42
|
+
agent: string;
|
|
43
|
+
isBackground: boolean;
|
|
44
|
+
parentSessionID?: string;
|
|
45
|
+
sessionID?: string;
|
|
46
|
+
status?: TaskStatus;
|
|
47
|
+
}): void;
|
|
48
|
+
/**
|
|
49
|
+
* Update task status
|
|
50
|
+
*/
|
|
51
|
+
updateTask(id: string, status: TaskStatus): void;
|
|
52
|
+
/**
|
|
53
|
+
* Remove a task
|
|
54
|
+
*/
|
|
55
|
+
removeTask(id: string): void;
|
|
56
|
+
/**
|
|
57
|
+
* Get all running tasks (newest first)
|
|
58
|
+
*/
|
|
59
|
+
getRunningTasks(): TrackedTask[];
|
|
60
|
+
/**
|
|
61
|
+
* Get all queued tasks (oldest first - FIFO)
|
|
62
|
+
*/
|
|
63
|
+
getQueuedTasks(): TrackedTask[];
|
|
64
|
+
/**
|
|
65
|
+
* Get tasks by parent session
|
|
66
|
+
*/
|
|
67
|
+
getTasksByParent(parentSessionID: string): TrackedTask[];
|
|
68
|
+
/**
|
|
69
|
+
* Format duration since task started
|
|
70
|
+
*/
|
|
71
|
+
private formatDuration;
|
|
72
|
+
/**
|
|
73
|
+
* Get concurrency info string (e.g., " [2/5]")
|
|
74
|
+
*/
|
|
75
|
+
/**
|
|
76
|
+
* Get concurrency info string (e.g., " [2/5]")
|
|
77
|
+
*/
|
|
78
|
+
private getConcurrencyInfo;
|
|
79
|
+
/**
|
|
80
|
+
* Build consolidated task list message
|
|
81
|
+
*/
|
|
82
|
+
private buildTaskListMessage;
|
|
83
|
+
/**
|
|
84
|
+
* Show consolidated toast with all running/queued tasks
|
|
85
|
+
*/
|
|
86
|
+
private showTaskListToast;
|
|
87
|
+
/**
|
|
88
|
+
* Show task completion toast
|
|
89
|
+
*/
|
|
90
|
+
showCompletionToast(info: TaskCompletionInfo): void;
|
|
91
|
+
/**
|
|
92
|
+
* Show all-tasks-complete summary toast
|
|
93
|
+
*/
|
|
94
|
+
showAllCompleteToast(parentSessionID: string, completedTasks: TaskCompletionInfo[]): void;
|
|
95
|
+
/**
|
|
96
|
+
* Show Mission Complete toast (Grand Finale)
|
|
97
|
+
*/
|
|
98
|
+
showMissionCompleteToast(title?: string, message?: string): void;
|
|
99
|
+
/**
|
|
100
|
+
* Show progress toast (for long-running tasks)
|
|
101
|
+
*/
|
|
102
|
+
showProgressToast(taskId: string, progress: {
|
|
103
|
+
current: number;
|
|
104
|
+
total: number;
|
|
105
|
+
message?: string;
|
|
106
|
+
}): void;
|
|
107
|
+
/**
|
|
108
|
+
* Clear all tracked tasks
|
|
109
|
+
*/
|
|
110
|
+
clear(): void;
|
|
111
|
+
/**
|
|
112
|
+
* Get task count stats
|
|
113
|
+
*/
|
|
114
|
+
getStats(): {
|
|
115
|
+
running: number;
|
|
116
|
+
queued: number;
|
|
117
|
+
total: number;
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Get the global TaskToastManager instance
|
|
122
|
+
*/
|
|
123
|
+
export declare function getTaskToastManager(): TaskToastManager | null;
|
|
124
|
+
/**
|
|
125
|
+
* Initialize the global TaskToastManager
|
|
126
|
+
*/
|
|
127
|
+
export declare function initTaskToastManager(client: OpencodeClient, concurrency?: ConcurrencyController): TaskToastManager;
|