@wolfx/oh-my-openagent 4.1.1 → 4.2.0-patch.1
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.ja.md +2 -1
- package/README.ko.md +2 -1
- package/README.md +2 -1
- package/README.ru.md +2 -1
- package/README.zh-cn.md +2 -1
- package/dist/agents/atlas/default-prompt-sections.d.ts +3 -3
- package/dist/agents/atlas/gemini-prompt-sections.d.ts +2 -2
- package/dist/agents/atlas/gpt-prompt-sections.d.ts +2 -2
- package/dist/agents/atlas/kimi-prompt-sections.d.ts +3 -3
- package/dist/agents/atlas/opus-4-7-prompt-sections.d.ts +3 -3
- package/dist/agents/momus.d.ts +1 -1
- package/dist/agents/prometheus/behavioral-summary.d.ts +1 -1
- package/dist/agents/prometheus/high-accuracy-mode.d.ts +1 -1
- package/dist/agents/prometheus/identity-constraints.d.ts +1 -1
- package/dist/agents/prometheus/plan-generation.d.ts +1 -1
- package/dist/agents/prometheus/plan-template.d.ts +1 -1
- package/dist/config/schema/team-mode.d.ts +1 -1
- package/dist/features/background-agent/error-classifier.d.ts +1 -0
- package/dist/features/background-agent/fallback-retry-handler.d.ts +15 -0
- package/dist/features/background-agent/manager.d.ts +11 -8
- package/dist/features/background-agent/parent-wake-notifier.d.ts +74 -0
- package/dist/features/background-agent/process-cleanup.d.ts +2 -0
- package/dist/features/background-agent/session-route.d.ts +12 -0
- package/dist/features/background-agent/spawner.d.ts +2 -2
- package/dist/features/background-agent/task-registry.d.ts +6 -0
- package/dist/features/background-agent/types.d.ts +2 -0
- package/dist/features/boulder-state/constants.d.ts +4 -4
- package/dist/features/boulder-state/storage.d.ts +1 -1
- package/dist/features/builtin-commands/templates/init-deep.d.ts +1 -1
- package/dist/features/builtin-commands/templates/start-work.d.ts +1 -1
- package/dist/features/context-injector/injector.d.ts +1 -1
- package/dist/features/opencode-skill-loader/git-master-template-injection.d.ts +18 -0
- package/dist/features/run-continuation-state/constants.d.ts +1 -1
- package/dist/features/team-mode/team-layout-tmux/resolve-caller-tmux-session.d.ts +3 -1
- package/dist/features/team-mode/tools/lifecycle-test-fixture.d.ts +3 -3
- package/dist/features/team-mode/tools/messaging.d.ts +1 -0
- package/dist/features/team-mode/types.d.ts +2 -2
- package/dist/features/tmux-subagent/attachable-session-status.d.ts +1 -1
- package/dist/features/tmux-subagent/manager.d.ts +6 -0
- package/dist/features/tmux-subagent/pane-state-parser.d.ts +2 -0
- package/dist/features/tmux-subagent/polling-manager.d.ts +6 -2
- package/dist/features/tmux-subagent/types.d.ts +4 -0
- package/dist/hooks/atlas/boulder-continuation-injector.d.ts +1 -0
- package/dist/hooks/atlas/omo-path.d.ts +6 -0
- package/dist/hooks/atlas/tool-execute-after.d.ts +3 -0
- package/dist/hooks/atlas/tool-progress.d.ts +14 -0
- package/dist/hooks/atlas/types.d.ts +7 -0
- package/dist/hooks/auto-slash-command/detector.d.ts +2 -0
- package/dist/hooks/auto-update-checker/cache.d.ts +8 -1
- package/dist/hooks/auto-update-checker/checker/cached-version.d.ts +8 -1
- package/dist/hooks/background-notification/hook.d.ts +0 -6
- package/dist/hooks/compaction-context-injector/types.d.ts +1 -0
- package/dist/hooks/interactive-bash-session/state-manager.d.ts +1 -1
- package/dist/hooks/json-error-recovery/hook.d.ts +1 -1
- package/dist/hooks/keyword-detector/detector.d.ts +1 -0
- package/dist/hooks/keyword-detector/ultrawork/default.d.ts +1 -1
- package/dist/hooks/keyword-detector/ultrawork/gemini.d.ts +1 -1
- package/dist/hooks/keyword-detector/ultrawork/planner.d.ts +1 -1
- package/dist/hooks/prometheus-md-only/constants.d.ts +1 -1
- package/dist/hooks/prometheus-md-only/path-policy.d.ts +3 -3
- package/dist/hooks/ralph-loop/completion-promise-detector-test-input.d.ts +11 -0
- package/dist/hooks/ralph-loop/constants.d.ts +1 -1
- package/dist/hooks/ralph-loop/continuation-prompt-injector.d.ts +4 -0
- package/dist/hooks/ralph-loop/iteration-continuation.d.ts +5 -0
- package/dist/hooks/ralph-loop/loop-state-controller.d.ts +3 -3
- package/dist/hooks/ralph-loop/pending-verification-handler.d.ts +2 -1
- package/dist/hooks/ralph-loop/ralph-loop-event-handler.d.ts +2 -2
- package/dist/hooks/ralph-loop/storage.d.ts +2 -2
- package/dist/hooks/ralph-loop/types.d.ts +4 -0
- package/dist/hooks/ralph-loop/verification-failure-handler.d.ts +2 -2
- package/dist/hooks/rules-injector/injector.d.ts +9 -2
- package/dist/hooks/rules-injector/matcher.d.ts +5 -0
- package/dist/hooks/rules-injector/project-root-finder.d.ts +4 -0
- package/dist/hooks/rules-injector/rule-scan-cache.d.ts +9 -2
- package/dist/hooks/runtime-fallback/constants.d.ts +10 -0
- package/dist/hooks/runtime-fallback/first-prompt-watchdog.d.ts +25 -0
- package/dist/hooks/runtime-fallback/hook.d.ts +14 -1
- package/dist/hooks/runtime-fallback/last-user-retry-parts.d.ts +10 -2
- package/dist/hooks/runtime-fallback/types.d.ts +10 -0
- package/dist/hooks/session-recovery/detect-error-type.d.ts +1 -1
- package/dist/hooks/session-recovery/hook.d.ts +1 -0
- package/dist/hooks/session-recovery/interrupted-idle-message-fetch-timeout.d.ts +7 -0
- package/dist/hooks/session-recovery/recover-tool-result-missing.d.ts +6 -1
- package/dist/hooks/session-recovery/types.d.ts +12 -0
- package/dist/hooks/shared/prompt-async-gate.d.ts +1 -0
- package/dist/hooks/shared/session-idle-settle.d.ts +1 -11
- package/dist/hooks/sisyphus-junior-notepad/constants.d.ts +1 -1
- package/dist/hooks/team-mode-status-injector/hook.d.ts +2 -1
- package/dist/hooks/todo-continuation-enforcer/pending-question-detection.d.ts +2 -0
- package/dist/hooks/todo-continuation-enforcer/session-state.d.ts +3 -4
- package/dist/hooks/todo-continuation-enforcer/types.d.ts +2 -3
- package/dist/hooks/tool-pair-validator/hook.d.ts +7 -2
- package/dist/hooks/unstable-agent-babysitter/task-message-analyzer.d.ts +1 -0
- package/dist/hooks/write-existing-file-guard/tool-execute-before-handler.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +41902 -70602
- package/dist/mcp/index.d.ts +3 -1
- package/dist/mcp/lsp.d.ts +13 -0
- package/dist/mcp/types.d.ts +1 -0
- package/dist/plugin/build-team-idle-wake-hint-client.d.ts +12 -0
- package/dist/plugin/chat-message.d.ts +1 -1
- package/dist/plugin/tool-registry.d.ts +1 -2
- package/dist/plugin-dispose.d.ts +0 -3
- package/dist/shared/agent-sort-shim.d.ts +1 -0
- package/dist/shared/delegated-child-session-bootstrap.d.ts +25 -0
- package/dist/shared/dynamic-truncator.d.ts +2 -0
- package/dist/shared/host-skill-config.d.ts +2 -0
- package/dist/shared/index.d.ts +2 -0
- package/dist/shared/internal-initiator-marker.d.ts +25 -0
- package/dist/shared/legacy-workspace-migration.d.ts +5 -0
- package/dist/shared/logger.d.ts +12 -0
- package/dist/shared/model-error-classifier.d.ts +2 -0
- package/dist/shared/model-resolution-pipeline.d.ts +4 -0
- package/dist/shared/opencode-http-api.d.ts +9 -0
- package/dist/shared/prompt-async-gate.d.ts +82 -0
- package/dist/shared/replace-tool-args.d.ts +13 -0
- package/dist/shared/session-idle-settle.d.ts +11 -0
- package/dist/shared/tmux/tmux-utils/pane-activate.d.ts +1 -0
- package/dist/shared/tmux/tmux-utils/pane-close.d.ts +10 -0
- package/dist/shared/tmux/tmux-utils/pane-command.d.ts +2 -0
- package/dist/shared/tmux/tmux-utils/pane-replace.d.ts +11 -1
- package/dist/shared/tmux/tmux-utils/pane-spawn.d.ts +1 -1
- package/dist/shared/tmux/tmux-utils/server-health.d.ts +12 -1
- package/dist/shared/tmux/tmux-utils/session-spawn.d.ts +2 -2
- package/dist/shared/tmux/tmux-utils/window-spawn.d.ts +1 -1
- package/dist/shared/tmux/tmux-utils.d.ts +2 -0
- package/dist/testing/create-plugin-module.d.ts +41 -0
- package/dist/tools/background-task/constants.d.ts +1 -1
- package/dist/tools/background-task/with-sdk-call-timeout.d.ts +7 -0
- package/dist/tools/call-omo-agent/session-creator.d.ts +2 -1
- package/dist/tools/call-omo-agent/sync-executor.d.ts +2 -2
- package/dist/tools/delegate-task/subagent-discovery.d.ts +2 -0
- package/dist/tools/delegate-task/sync-prompt-sender.d.ts +2 -1
- package/dist/tools/delegate-task/sync-session-creator.d.ts +2 -0
- package/dist/tools/delegate-task/sync-task.d.ts +1 -1
- package/dist/tools/index.d.ts +0 -3
- package/dist/tools/interactive-bash/tools.d.ts +5 -0
- package/package.json +17 -8
- package/dist/hooks/atlas/sisyphus-path.d.ts +0 -6
- package/dist/tools/lsp/client.d.ts +0 -3
- package/dist/tools/lsp/config.d.ts +0 -3
- package/dist/tools/lsp/constants.d.ts +0 -6
- package/dist/tools/lsp/diagnostics-tool.d.ts +0 -2
- package/dist/tools/lsp/directory-diagnostics.d.ts +0 -1
- package/dist/tools/lsp/find-references-tool.d.ts +0 -2
- package/dist/tools/lsp/goto-definition-tool.d.ts +0 -2
- package/dist/tools/lsp/index.d.ts +0 -8
- package/dist/tools/lsp/infer-extension.d.ts +0 -1
- package/dist/tools/lsp/language-config.d.ts +0 -1
- package/dist/tools/lsp/language-mappings.d.ts +0 -3
- package/dist/tools/lsp/lsp-client-connection.d.ts +0 -4
- package/dist/tools/lsp/lsp-client-transport.d.ts +0 -22
- package/dist/tools/lsp/lsp-client-wrapper.d.ts +0 -9
- package/dist/tools/lsp/lsp-client.d.ts +0 -17
- package/dist/tools/lsp/lsp-formatters.d.ts +0 -13
- package/dist/tools/lsp/lsp-manager-process-cleanup.d.ts +0 -15
- package/dist/tools/lsp/lsp-manager-temp-directory-cleanup.d.ts +0 -8
- package/dist/tools/lsp/lsp-process.d.ts +0 -29
- package/dist/tools/lsp/lsp-server.d.ts +0 -24
- package/dist/tools/lsp/rename-tools.d.ts +0 -3
- package/dist/tools/lsp/server-config-loader.d.ts +0 -25
- package/dist/tools/lsp/server-definitions.d.ts +0 -3
- package/dist/tools/lsp/server-installation.d.ts +0 -1
- package/dist/tools/lsp/server-path-bases.d.ts +0 -1
- package/dist/tools/lsp/server-resolution.d.ts +0 -15
- package/dist/tools/lsp/symbols-tool.d.ts +0 -2
- package/dist/tools/lsp/tools.d.ts +0 -5
- package/dist/tools/lsp/types.d.ts +0 -123
- package/dist/tools/lsp/workspace-edit.d.ts +0 -8
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
type RetryPart = {
|
|
2
2
|
type: "text";
|
|
3
3
|
text: string;
|
|
4
|
-
}
|
|
4
|
+
};
|
|
5
|
+
export type LastUserRetryPayload = {
|
|
6
|
+
retryParts: RetryPart[];
|
|
7
|
+
system?: string;
|
|
8
|
+
tools?: Record<string, boolean>;
|
|
9
|
+
};
|
|
10
|
+
export declare function getLastUserRetryParts(messagesResponse: unknown, sessionID?: string): RetryPart[];
|
|
11
|
+
export declare function getLastUserRetryPayload(messagesResponse: unknown, sessionID?: string): LastUserRetryPayload;
|
|
12
|
+
export {};
|
|
@@ -29,6 +29,8 @@ export interface RuntimeFallbackPluginInput {
|
|
|
29
29
|
providerID: string;
|
|
30
30
|
modelID: string;
|
|
31
31
|
};
|
|
32
|
+
system?: string;
|
|
33
|
+
tools?: Record<string, boolean>;
|
|
32
34
|
parts: Array<{
|
|
33
35
|
type: "text";
|
|
34
36
|
text: string;
|
|
@@ -110,4 +112,12 @@ export interface HookDeps {
|
|
|
110
112
|
sessionAwaitingFallbackResult: Set<string>;
|
|
111
113
|
sessionFallbackTimeouts: Map<string, RuntimeFallbackTimeout>;
|
|
112
114
|
sessionStatusRetryKeys: Map<string, string>;
|
|
115
|
+
/**
|
|
116
|
+
* Sessions whose in-flight request was aborted by us (to swap in a fallback
|
|
117
|
+
* model), as opposed to a user-initiated stop. Consumed by
|
|
118
|
+
* handleSessionError so the resulting session.error{isAbort:true} does NOT
|
|
119
|
+
* reset attemptCount — that reset is what was driving the infinite retry
|
|
120
|
+
* loop (every cycle started over at attempt:1). See issue #4006.
|
|
121
|
+
*/
|
|
122
|
+
internallyAbortedSessions: Set<string>;
|
|
113
123
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type RecoveryErrorType = "tool_result_missing" | "thinking_block_order" | "thinking_disabled_violation" | "assistant_prefill_unsupported" | "unavailable_tool" | null;
|
|
1
|
+
export type RecoveryErrorType = "tool_result_missing" | "thinking_block_order" | "thinking_disabled_violation" | "thinking_block_modified" | "assistant_prefill_unsupported" | "unavailable_tool" | null;
|
|
2
2
|
export declare function extractMessageIndex(error: unknown): number | null;
|
|
3
3
|
export declare function extractUnavailableToolName(error: unknown): string | null;
|
|
4
4
|
export declare function detectErrorType(error: unknown): RecoveryErrorType;
|
|
@@ -12,6 +12,7 @@ export interface SessionRecoveryOptions {
|
|
|
12
12
|
}
|
|
13
13
|
export interface SessionRecoveryHook {
|
|
14
14
|
handleSessionRecovery: (info: MessageInfo) => Promise<boolean>;
|
|
15
|
+
handleInterruptedToolResultsOnIdle: (sessionID: string) => Promise<boolean>;
|
|
15
16
|
isRecoverableError: (error: unknown) => boolean;
|
|
16
17
|
setOnAbortCallback: (callback: (sessionID: string) => void) => void;
|
|
17
18
|
setOnRecoveryCompleteCallback: (callback: (sessionID: string) => void) => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const DEFAULT_INTERRUPTED_IDLE_MESSAGES_FETCH_TIMEOUT_MS = 5000;
|
|
2
|
+
export declare function _setInterruptedIdleMessagesFetchTimeoutMsForTesting(value: number | undefined): void;
|
|
3
|
+
export declare function getInterruptedIdleMessagesFetchTimeoutMs(): number;
|
|
4
|
+
export declare class InterruptedIdleMessagesFetchTimeoutError extends Error {
|
|
5
|
+
constructor(timeoutMs: number);
|
|
6
|
+
}
|
|
7
|
+
export declare function withInterruptedIdleMessagesFetchTimeout<T>(operation: Promise<T>, timeoutMs: number): Promise<T>;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { createOpencodeClient } from "@opencode-ai/sdk";
|
|
2
2
|
import type { MessageData, ResumeConfig } from "./types";
|
|
3
3
|
type Client = ReturnType<typeof createOpencodeClient>;
|
|
4
|
-
export
|
|
4
|
+
export type RecoverToolResultMissingOptions = {
|
|
5
|
+
recoverStatuses?: ReadonlySet<string>;
|
|
6
|
+
resultText?: string;
|
|
7
|
+
source?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function recoverToolResultMissing(client: Client, sessionID: string, failedAssistantMsg: MessageData, resumeConfig?: ResumeConfig, options?: RecoverToolResultMissingOptions): Promise<boolean>;
|
|
5
10
|
export {};
|
|
@@ -62,6 +62,11 @@ export interface MessageData {
|
|
|
62
62
|
sessionID?: string;
|
|
63
63
|
parentID?: string;
|
|
64
64
|
error?: unknown;
|
|
65
|
+
finish?: unknown;
|
|
66
|
+
time?: {
|
|
67
|
+
created?: unknown;
|
|
68
|
+
completed?: unknown;
|
|
69
|
+
};
|
|
65
70
|
agent?: string;
|
|
66
71
|
model?: {
|
|
67
72
|
providerID: string;
|
|
@@ -75,10 +80,17 @@ export interface MessageData {
|
|
|
75
80
|
type: string;
|
|
76
81
|
id?: string;
|
|
77
82
|
text?: string;
|
|
83
|
+
synthetic?: boolean;
|
|
78
84
|
thinking?: string;
|
|
79
85
|
name?: string;
|
|
80
86
|
input?: Record<string, unknown>;
|
|
81
87
|
callID?: string;
|
|
88
|
+
state?: {
|
|
89
|
+
status?: unknown;
|
|
90
|
+
input?: Record<string, unknown>;
|
|
91
|
+
output?: unknown;
|
|
92
|
+
error?: unknown;
|
|
93
|
+
};
|
|
82
94
|
}>;
|
|
83
95
|
}
|
|
84
96
|
export interface ResumeConfig {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../shared/prompt-async-gate";
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function settleAfterSessionIdle(ms?: number): Promise<void>;
|
|
3
|
-
type SessionStatusClient = {
|
|
4
|
-
session?: {
|
|
5
|
-
status?: () => Promise<unknown>;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export declare function isActiveSessionStatusType(statusType: string): boolean;
|
|
9
|
-
export declare function isSessionActive(client: SessionStatusClient, sessionID: string): Promise<boolean>;
|
|
10
|
-
export declare function shouldPromptAfterSessionIdle(client: SessionStatusClient, sessionID: string, settleMs?: number): Promise<boolean>;
|
|
11
|
-
export {};
|
|
1
|
+
export * from "../../shared/session-idle-settle";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const HOOK_NAME = "sisyphus-junior-notepad";
|
|
2
|
-
export declare const NOTEPAD_DIRECTIVE = "\n<Work_Context>\n## Notepad Location (for recording learnings)\nNOTEPAD PATH: .
|
|
2
|
+
export declare const NOTEPAD_DIRECTIVE = "\n<Work_Context>\n## Notepad Location (for recording learnings)\nNOTEPAD PATH: .omo/notepads/{plan-name}/\n- learnings.md: Record patterns, conventions, successful approaches\n- issues.md: Record problems, blockers, gotchas encountered\n- decisions.md: Record architectural choices and rationales\n- problems.md: Record unresolved issues, technical debt\n\nYou SHOULD append findings to notepad files after completing work.\nIMPORTANT: Always APPEND to notepad files - never overwrite or use Edit tool.\n\n## Plan Location (READ ONLY)\nPLAN PATH: .omo/plans/{plan-name}.md\n\nCRITICAL RULE: NEVER MODIFY THE PLAN FILE\n\nThe plan file (.omo/plans/*.md) is SACRED and READ-ONLY.\n- You may READ the plan to understand tasks\n- You may READ checkbox items to know what to do\n- You MUST NOT edit, modify, or update the plan file\n- You MUST NOT mark checkboxes as complete in the plan\n- Only the Orchestrator manages the plan file\n\nVIOLATION = IMMEDIATE FAILURE. The Orchestrator tracks plan state.\n</Work_Context>\n";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { KeywordDetectorConfig } from "../../config/schema/keyword-detector";
|
|
1
2
|
import type { TeamModeConfig } from "../../config/schema/team-mode";
|
|
2
3
|
type TransformPart = {
|
|
3
4
|
type: string;
|
|
@@ -24,5 +25,5 @@ type TeamModeStatusInjectorOutput = {
|
|
|
24
25
|
export type TeamModeStatusInjectorHook = {
|
|
25
26
|
"experimental.chat.messages.transform"?: (input: TeamModeStatusInjectorInput, output: TeamModeStatusInjectorOutput) => Promise<void>;
|
|
26
27
|
};
|
|
27
|
-
export declare function createTeamModeStatusInjector(config: TeamModeConfig): TeamModeStatusInjectorHook;
|
|
28
|
+
export declare function createTeamModeStatusInjector(config: TeamModeConfig, keywordDetectorConfig?: KeywordDetectorConfig): TeamModeStatusInjectorHook;
|
|
28
29
|
export {};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SessionState, Todo } from "./types";
|
|
2
2
|
export interface ContinuationProgressUpdate {
|
|
3
3
|
previousIncompleteCount?: number;
|
|
4
4
|
previousStagnationCount: number;
|
|
5
5
|
stagnationCount: number;
|
|
6
6
|
hasProgressed: boolean;
|
|
7
|
-
progressSource: "none" | "todo"
|
|
7
|
+
progressSource: "none" | "todo";
|
|
8
8
|
}
|
|
9
9
|
export interface SessionStateStore {
|
|
10
10
|
getState: (sessionID: string) => SessionState;
|
|
11
11
|
getExistingState: (sessionID: string) => SessionState | undefined;
|
|
12
12
|
startPruneInterval: () => void;
|
|
13
|
-
|
|
14
|
-
trackContinuationProgress: (sessionID: string, incompleteCount: number, todos?: Todo[], options?: ContinuationProgressOptions) => ContinuationProgressUpdate;
|
|
13
|
+
trackContinuationProgress: (sessionID: string, incompleteCount: number, todos?: Todo[]) => ContinuationProgressUpdate;
|
|
15
14
|
resetContinuationProgress: (sessionID: string) => void;
|
|
16
15
|
cancelCountdown: (sessionID: string) => void;
|
|
17
16
|
cleanup: (sessionID: string) => void;
|
|
@@ -62,6 +62,8 @@ export interface MessageWithInfo {
|
|
|
62
62
|
info?: MessageInfo;
|
|
63
63
|
parts?: Array<{
|
|
64
64
|
type?: string;
|
|
65
|
+
text?: string;
|
|
66
|
+
synthetic?: boolean;
|
|
65
67
|
}>;
|
|
66
68
|
}
|
|
67
69
|
export interface ResolvedMessageInfo {
|
|
@@ -78,6 +80,3 @@ export interface ResolveLatestMessageInfoResult {
|
|
|
78
80
|
encounteredCompaction: boolean;
|
|
79
81
|
latestMessageWasCompaction: boolean;
|
|
80
82
|
}
|
|
81
|
-
export interface ContinuationProgressOptions {
|
|
82
|
-
allowActivityProgress?: boolean;
|
|
83
|
-
}
|
|
@@ -6,8 +6,13 @@ type ToolUsePart = {
|
|
|
6
6
|
};
|
|
7
7
|
type ToolResultPart = {
|
|
8
8
|
type: "tool_result";
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
toolUseId: string;
|
|
10
|
+
tool_use_id?: string;
|
|
11
|
+
isError?: boolean;
|
|
12
|
+
content: Array<{
|
|
13
|
+
type: "text";
|
|
14
|
+
text: string;
|
|
15
|
+
}>;
|
|
11
16
|
[key: string]: unknown;
|
|
12
17
|
};
|
|
13
18
|
type TransformPart = Part | ToolUsePart | ToolResultPart;
|
|
@@ -19,6 +19,7 @@ type MessagePart = {
|
|
|
19
19
|
};
|
|
20
20
|
export declare function getMessageInfo(value: unknown): MessageInfo | undefined;
|
|
21
21
|
export declare function getMessageParts(value: unknown): MessagePart[];
|
|
22
|
+
export declare function getMessageCreatedAt(value: unknown): number | undefined;
|
|
22
23
|
export declare function extractMessages(value: unknown): unknown[];
|
|
23
24
|
export declare function isUnstableTask(task: BackgroundTask): boolean;
|
|
24
25
|
export declare function buildReminder(task: BackgroundTask, summary: string | null, idleMs: number): string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PluginModule } from "@opencode-ai/plugin";
|
|
2
2
|
declare const pluginModule: PluginModule;
|
|
3
3
|
export default pluginModule;
|
|
4
|
-
export type {
|
|
4
|
+
export type { AgentName, AgentOverrideConfig, AgentOverrides, BuiltinCommandName, HookName, McpName, OhMyOpenCodeConfig, } from "./config";
|
|
5
5
|
export type { ConfigLoadError } from "./shared/config-errors";
|