oh-my-opencode 3.5.6 → 3.6.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/cli/index.js +101 -20
- package/dist/cli/run/types.d.ts +1 -1
- package/dist/features/background-agent/constants.d.ts +1 -1
- package/dist/features/background-agent/message-dir.d.ts +1 -1
- package/dist/features/background-agent/result-handler.d.ts +1 -1
- package/dist/features/claude-code-mcp-loader/loader.d.ts +1 -1
- package/dist/features/hook-message-injector/constants.d.ts +1 -3
- package/dist/features/hook-message-injector/index.d.ts +1 -1
- package/dist/features/hook-message-injector/injector.d.ts +51 -3
- package/dist/features/tmux-subagent/manager.d.ts +0 -1
- package/dist/hooks/agent-usage-reminder/constants.d.ts +0 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/client.d.ts +3 -34
- package/dist/hooks/anthropic-context-window-limit-recovery/deduplication-recovery.d.ts +4 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/empty-content-recovery-sdk.d.ts +11 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/message-builder.d.ts +4 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/message-storage-directory.d.ts +5 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.d.ts +4 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-tool-output-truncation.d.ts +5 -2
- package/dist/hooks/anthropic-context-window-limit-recovery/storage-paths.d.ts +2 -2
- package/dist/hooks/anthropic-context-window-limit-recovery/storage.d.ts +1 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/target-token-truncation.d.ts +4 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/tool-result-storage-sdk.d.ts +29 -0
- package/dist/hooks/atlas/session-last-agent.d.ts +4 -1
- package/dist/hooks/atlas/tool-execute-before.d.ts +2 -0
- package/dist/hooks/context-window-monitor.d.ts +1 -1
- package/dist/hooks/directory-agents-injector/constants.d.ts +0 -1
- package/dist/hooks/directory-readme-injector/constants.d.ts +0 -1
- package/dist/hooks/interactive-bash-session/constants.d.ts +0 -1
- package/dist/hooks/prometheus-md-only/agent-resolution.d.ts +4 -1
- package/dist/hooks/ralph-loop/message-storage-directory.d.ts +1 -1
- package/dist/hooks/rules-injector/constants.d.ts +0 -1
- package/dist/hooks/session-recovery/constants.d.ts +1 -3
- package/dist/hooks/session-recovery/recover-empty-content-message-sdk.d.ts +13 -0
- package/dist/hooks/session-recovery/recover-empty-content-message.d.ts +1 -1
- package/dist/hooks/session-recovery/recover-thinking-block-order.d.ts +1 -1
- package/dist/hooks/session-recovery/recover-thinking-disabled-violation.d.ts +1 -1
- package/dist/hooks/session-recovery/storage/empty-text.d.ts +5 -0
- package/dist/hooks/session-recovery/storage/message-dir.d.ts +1 -1
- package/dist/hooks/session-recovery/storage/messages-reader.d.ts +4 -0
- package/dist/hooks/session-recovery/storage/parts-reader.d.ts +4 -0
- package/dist/hooks/session-recovery/storage/text-part-injector.d.ts +4 -0
- package/dist/hooks/session-recovery/storage/thinking-prepend.d.ts +4 -0
- package/dist/hooks/session-recovery/storage/thinking-strip.d.ts +4 -0
- package/dist/hooks/session-recovery/storage.d.ts +7 -0
- package/dist/hooks/sisyphus-junior-notepad/hook.d.ts +1 -1
- package/dist/hooks/todo-continuation-enforcer/message-directory.d.ts +1 -1
- package/dist/hooks/todo-continuation-enforcer/types.d.ts +1 -1
- package/dist/index.js +22515 -21580
- package/dist/plugin-config.d.ts +1 -1
- package/dist/plugin-handlers/agent-key-remapper.d.ts +1 -0
- package/dist/shared/agent-display-names.d.ts +5 -0
- package/dist/shared/index.d.ts +6 -1
- package/dist/shared/model-name-matcher.d.ts +0 -1
- package/dist/shared/normalize-sdk-response.d.ts +4 -0
- package/dist/shared/opencode-http-api.d.ts +3 -0
- package/dist/shared/opencode-storage-detection.d.ts +2 -0
- package/dist/shared/opencode-storage-paths.d.ts +4 -0
- package/dist/shared/opencode-version.d.ts +5 -0
- package/dist/shared/session-utils.d.ts +2 -2
- package/dist/tools/background-task/create-background-cancel.d.ts +1 -1
- package/dist/tools/background-task/create-background-task.d.ts +2 -2
- package/dist/tools/background-task/message-dir.d.ts +1 -1
- package/dist/tools/background-task/modules/background-cancel.d.ts +1 -1
- package/dist/tools/background-task/modules/utils.d.ts +2 -1
- package/dist/tools/call-omo-agent/background-agent-executor.d.ts +2 -1
- package/dist/tools/call-omo-agent/background-executor.d.ts +2 -1
- package/dist/tools/call-omo-agent/message-dir.d.ts +1 -1
- package/dist/tools/call-omo-agent/message-storage-directory.d.ts +1 -1
- package/dist/tools/delegate-task/parent-context-resolver.d.ts +2 -1
- package/dist/tools/delegate-task/sisyphus-junior-agent.d.ts +1 -1
- package/dist/tools/session-manager/constants.d.ts +1 -4
- package/dist/tools/session-manager/session-formatter.d.ts +1 -1
- package/dist/tools/session-manager/storage.d.ts +5 -2
- package/dist/tools/session-manager/types.d.ts +1 -1
- package/dist/tools/task/todo-sync.d.ts +2 -2
- package/package.json +8 -8
- package/dist/tools/task/task-action-create.d.ts +0 -4
- package/dist/tools/task/task-action-delete.d.ts +0 -2
- package/dist/tools/task/task-action-get.d.ts +0 -2
- package/dist/tools/task/task-action-list.d.ts +0 -2
- package/dist/tools/task/task-action-update.d.ts +0 -2
- package/dist/tools/task/task-id-validator.d.ts +0 -1
- package/dist/tools/task/task.d.ts +0 -3
- /package/dist/{features/background-agent/message-storage-locator.d.ts → shared/opencode-message-dir.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { createOpencodeClient } from "@opencode-ai/sdk";
|
|
2
2
|
import type { MessageData } from "./types";
|
|
3
3
|
type Client = ReturnType<typeof createOpencodeClient>;
|
|
4
|
-
export declare function recoverThinkingDisabledViolation(
|
|
4
|
+
export declare function recoverThinkingDisabledViolation(client: Client, sessionID: string, _failedAssistantMsg: MessageData): Promise<boolean>;
|
|
5
5
|
export {};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
type OpencodeClient = PluginInput["client"];
|
|
1
3
|
export declare function replaceEmptyTextParts(messageID: string, replacementText: string): boolean;
|
|
4
|
+
export declare function replaceEmptyTextPartsAsync(client: OpencodeClient, sessionID: string, messageID: string, replacementText: string): Promise<boolean>;
|
|
2
5
|
export declare function findMessagesWithEmptyTextParts(sessionID: string): string[];
|
|
6
|
+
export declare function findMessagesWithEmptyTextPartsFromSDK(client: OpencodeClient, sessionID: string): Promise<string[]>;
|
|
7
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { getMessageDir } from "../../../shared/opencode-message-dir";
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
1
2
|
import type { StoredMessageMeta } from "../types";
|
|
3
|
+
type OpencodeClient = PluginInput["client"];
|
|
2
4
|
export declare function readMessages(sessionID: string): StoredMessageMeta[];
|
|
5
|
+
export declare function readMessagesFromSDK(client: OpencodeClient, sessionID: string): Promise<StoredMessageMeta[]>;
|
|
6
|
+
export {};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
1
2
|
import type { StoredPart } from "../types";
|
|
3
|
+
type OpencodeClient = PluginInput["client"];
|
|
2
4
|
export declare function readParts(messageID: string): StoredPart[];
|
|
5
|
+
export declare function readPartsFromSDK(client: OpencodeClient, sessionID: string, messageID: string): Promise<StoredPart[]>;
|
|
6
|
+
export {};
|
|
@@ -1 +1,5 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
type OpencodeClient = PluginInput["client"];
|
|
1
3
|
export declare function injectTextPart(sessionID: string, messageID: string, text: string): boolean;
|
|
4
|
+
export declare function injectTextPartAsync(client: OpencodeClient, sessionID: string, messageID: string, text: string): Promise<boolean>;
|
|
5
|
+
export {};
|
|
@@ -1 +1,5 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
type OpencodeClient = PluginInput["client"];
|
|
1
3
|
export declare function prependThinkingPart(sessionID: string, messageID: string): boolean;
|
|
4
|
+
export declare function prependThinkingPartAsync(client: OpencodeClient, sessionID: string, messageID: string): Promise<boolean>;
|
|
5
|
+
export {};
|
|
@@ -1 +1,5 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
type OpencodeClient = PluginInput["client"];
|
|
1
3
|
export declare function stripThinkingParts(messageID: string): boolean;
|
|
4
|
+
export declare function stripThinkingPartsAsync(client: OpencodeClient, sessionID: string, messageID: string): Promise<boolean>;
|
|
5
|
+
export {};
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
export { generatePartId } from "./storage/part-id";
|
|
2
2
|
export { getMessageDir } from "./storage/message-dir";
|
|
3
3
|
export { readMessages } from "./storage/messages-reader";
|
|
4
|
+
export { readMessagesFromSDK } from "./storage/messages-reader";
|
|
4
5
|
export { readParts } from "./storage/parts-reader";
|
|
6
|
+
export { readPartsFromSDK } from "./storage/parts-reader";
|
|
5
7
|
export { hasContent, messageHasContent } from "./storage/part-content";
|
|
6
8
|
export { injectTextPart } from "./storage/text-part-injector";
|
|
9
|
+
export { injectTextPartAsync } from "./storage/text-part-injector";
|
|
7
10
|
export { findEmptyMessages, findEmptyMessageByIndex, findFirstEmptyMessage, } from "./storage/empty-messages";
|
|
8
11
|
export { findMessagesWithEmptyTextParts } from "./storage/empty-text";
|
|
12
|
+
export { findMessagesWithEmptyTextPartsFromSDK } from "./storage/empty-text";
|
|
9
13
|
export { findMessagesWithThinkingBlocks, findMessagesWithThinkingOnly, } from "./storage/thinking-block-search";
|
|
10
14
|
export { findMessagesWithOrphanThinking, findMessageByIndexNeedingThinking, } from "./storage/orphan-thinking-search";
|
|
11
15
|
export { prependThinkingPart } from "./storage/thinking-prepend";
|
|
12
16
|
export { stripThinkingParts } from "./storage/thinking-strip";
|
|
13
17
|
export { replaceEmptyTextParts } from "./storage/empty-text";
|
|
18
|
+
export { prependThinkingPartAsync } from "./storage/thinking-prepend";
|
|
19
|
+
export { stripThinkingPartsAsync } from "./storage/thinking-strip";
|
|
20
|
+
export { replaceEmptyTextPartsAsync } from "./storage/empty-text";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
export declare function createSisyphusJuniorNotepadHook(
|
|
2
|
+
export declare function createSisyphusJuniorNotepadHook(ctx: PluginInput): {
|
|
3
3
|
"tool.execute.before": (input: {
|
|
4
4
|
tool: string;
|
|
5
5
|
sessionID: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { getMessageDir } from "../../shared/opencode-message-dir";
|