oh-my-opencode 3.6.0 → 3.7.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 +6 -6
- package/README.ko.md +6 -6
- package/README.md +6 -6
- package/README.zh-cn.md +6 -6
- package/dist/agents/sisyphus-junior/gpt.d.ts +4 -14
- package/dist/cli/index.js +357 -104
- package/dist/cli/run/event-handlers.d.ts +1 -0
- package/dist/cli/run/opencode-bin-path.d.ts +3 -0
- package/dist/cli/run/opencode-binary-resolver.d.ts +5 -0
- package/dist/cli/run/session-resolver.d.ts +1 -0
- package/dist/cli/run/types.d.ts +29 -0
- package/dist/config/schema/browser-automation.d.ts +2 -0
- package/dist/config/schema/experimental.d.ts +1 -0
- package/dist/config/schema/hooks.d.ts +1 -0
- package/dist/config/schema/oh-my-opencode-config.d.ts +3 -0
- package/dist/create-hooks.d.ts +3 -0
- package/dist/create-managers.d.ts +1 -0
- package/dist/features/background-agent/manager.d.ts +3 -0
- package/dist/features/builtin-skills/skills/index.d.ts +1 -0
- package/dist/features/builtin-skills/skills/playwright-cli.d.ts +10 -0
- package/dist/features/tmux-subagent/action-executor-core.d.ts +21 -0
- package/dist/features/tmux-subagent/action-executor.d.ts +3 -12
- package/dist/features/tmux-subagent/grid-planning.d.ts +2 -2
- package/dist/features/tmux-subagent/pane-split-availability.d.ts +3 -2
- package/dist/features/tmux-subagent/polling-manager.d.ts +1 -0
- package/dist/features/tmux-subagent/spawn-target-finder.d.ts +1 -1
- package/dist/hooks/context-window-monitor.d.ts +5 -1
- package/dist/hooks/directory-agents-injector/hook.d.ts +3 -1
- package/dist/hooks/directory-readme-injector/hook.d.ts +3 -1
- package/dist/hooks/hashline-read-enhancer/hook.d.ts +18 -0
- package/dist/hooks/hashline-read-enhancer/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/preemptive-compaction.d.ts +4 -1
- package/dist/hooks/rules-injector/hook.d.ts +3 -1
- package/dist/hooks/think-mode/switcher.d.ts +7 -0
- package/dist/hooks/tool-output-truncator.d.ts +3 -0
- package/dist/index.js +1758 -830
- package/dist/plugin/hooks/create-core-hooks.d.ts +3 -0
- package/dist/plugin/hooks/create-session-hooks.d.ts +2 -0
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +4 -1
- package/dist/shared/dynamic-truncator.d.ts +7 -3
- package/dist/shared/fallback-model-availability.d.ts +9 -2
- package/dist/shared/git-worktree/index.d.ts +2 -0
- package/dist/shared/git-worktree/parse-status-porcelain-line.d.ts +6 -0
- package/dist/shared/index.d.ts +2 -0
- package/dist/shared/model-availability.d.ts +0 -5
- package/dist/shared/session-directory-resolver.d.ts +7 -0
- package/dist/shared/tmux/tmux-utils/layout.d.ts +2 -2
- package/dist/tools/call-omo-agent/tools.d.ts +1 -1
- package/dist/tools/delegate-task/sync-prompt-sender.d.ts +7 -1
- package/dist/tools/hashline-edit/constants.d.ts +2 -0
- package/dist/tools/hashline-edit/edit-operations.d.ts +6 -0
- package/dist/tools/hashline-edit/hash-computation.d.ts +3 -0
- package/dist/tools/hashline-edit/index.d.ts +7 -0
- package/dist/tools/hashline-edit/tools.d.ts +2 -0
- package/dist/tools/hashline-edit/types.d.ts +22 -0
- package/dist/tools/hashline-edit/validation.d.ts +6 -0
- package/dist/tools/index.d.ts +1 -0
- package/package.json +8 -8
- package/dist/features/background-agent/background-event-handler.d.ts +0 -26
- package/dist/features/background-agent/background-manager-shutdown.d.ts +0 -25
- package/dist/features/background-agent/notification-tracker.d.ts +0 -6
- package/dist/features/background-agent/notify-parent-session.d.ts +0 -10
- package/dist/features/background-agent/poll-running-tasks.d.ts +0 -15
- package/dist/features/background-agent/process-signal.d.ts +0 -2
- package/dist/features/background-agent/session-validator.d.ts +0 -7
- package/dist/features/background-agent/spawner/task-factory.d.ts +0 -2
- package/dist/features/background-agent/spawner/task-resumer.d.ts +0 -3
- package/dist/features/background-agent/spawner/task-starter.d.ts +0 -3
- package/dist/features/background-agent/stale-task-pruner.d.ts +0 -15
- package/dist/features/background-agent/task-canceller.d.ts +0 -27
- package/dist/features/background-agent/task-completer.d.ts +0 -13
- package/dist/features/background-agent/task-launch.d.ts +0 -15
- package/dist/features/background-agent/task-queries.d.ts +0 -7
- package/dist/features/background-agent/task-queue-processor.d.ts +0 -14
- package/dist/features/background-agent/task-resumer.d.ts +0 -14
- package/dist/features/background-agent/task-starter.d.ts +0 -27
- package/dist/features/background-agent/task-tracker.d.ts +0 -18
- package/dist/features/tmux-subagent/manager-cleanup.d.ts +0 -12
- package/dist/features/tmux-subagent/session-cleaner.d.ts +0 -23
- package/dist/features/tmux-subagent/session-spawner.d.ts +0 -34
- package/dist/hooks/interactive-bash-session/interactive-bash-session-hook.d.ts +0 -23
- package/dist/shared/available-models-fetcher.d.ts +0 -4
- package/dist/shared/model-cache-availability.d.ts +0 -2
- package/dist/tools/background-task/modules/background-cancel.d.ts +0 -4
- package/dist/tools/background-task/modules/background-output.d.ts +0 -3
- package/dist/tools/background-task/modules/background-task.d.ts +0 -3
- package/dist/tools/background-task/modules/formatters.d.ts +0 -11
- package/dist/tools/background-task/modules/message-processing.d.ts +0 -59
- package/dist/tools/background-task/modules/utils.d.ts +0 -16
- package/dist/tools/call-omo-agent/agent-type-normalizer.d.ts +0 -2
- package/dist/tools/call-omo-agent/sync-agent-executor.d.ts +0 -4
- package/dist/tools/delegate-task/skill-content-resolver.d.ts +0 -9
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { TmuxConfig } from "../../config/schema";
|
|
2
|
-
import type { TrackedSession, CapacityConfig } from "./types";
|
|
3
|
-
import { type SessionMapping } from "./decision-engine";
|
|
4
|
-
import { TmuxPollingManager } from "./polling-manager";
|
|
5
|
-
interface SessionCreatedEvent {
|
|
6
|
-
type: string;
|
|
7
|
-
properties?: {
|
|
8
|
-
info?: {
|
|
9
|
-
id?: string;
|
|
10
|
-
parentID?: string;
|
|
11
|
-
title?: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export interface TmuxUtilDeps {
|
|
16
|
-
isInsideTmux: () => boolean;
|
|
17
|
-
getCurrentPaneId: () => string | undefined;
|
|
18
|
-
}
|
|
19
|
-
export declare class SessionSpawner {
|
|
20
|
-
private tmuxConfig;
|
|
21
|
-
private deps;
|
|
22
|
-
private sessions;
|
|
23
|
-
private pendingSessions;
|
|
24
|
-
private sourcePaneId;
|
|
25
|
-
private getCapacityConfig;
|
|
26
|
-
private getSessionMappings;
|
|
27
|
-
private waitForSessionReady;
|
|
28
|
-
private pollingManager;
|
|
29
|
-
private serverUrl;
|
|
30
|
-
constructor(tmuxConfig: TmuxConfig, deps: TmuxUtilDeps, sessions: Map<string, TrackedSession>, pendingSessions: Set<string>, sourcePaneId: string | undefined, getCapacityConfig: () => CapacityConfig, getSessionMappings: () => SessionMapping[], waitForSessionReady: (sessionId: string) => Promise<boolean>, pollingManager: TmuxPollingManager, serverUrl: string);
|
|
31
|
-
private isEnabled;
|
|
32
|
-
onSessionCreated(event: SessionCreatedEvent): Promise<void>;
|
|
33
|
-
}
|
|
34
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
interface ToolExecuteInput {
|
|
3
|
-
tool: string;
|
|
4
|
-
sessionID: string;
|
|
5
|
-
callID: string;
|
|
6
|
-
args?: Record<string, unknown>;
|
|
7
|
-
}
|
|
8
|
-
interface ToolExecuteOutput {
|
|
9
|
-
title: string;
|
|
10
|
-
output: string;
|
|
11
|
-
metadata: unknown;
|
|
12
|
-
}
|
|
13
|
-
interface EventInput {
|
|
14
|
-
event: {
|
|
15
|
-
type: string;
|
|
16
|
-
properties?: unknown;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export declare function createInteractiveBashSessionHook(ctx: PluginInput): {
|
|
20
|
-
"tool.execute.after": (input: ToolExecuteInput, output: ToolExecuteOutput) => Promise<void>;
|
|
21
|
-
event: ({ event }: EventInput) => Promise<void>;
|
|
22
|
-
};
|
|
23
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
|
-
import type { BackgroundCancelClient } from "../types";
|
|
3
|
-
import type { BackgroundManager } from "../../../features/background-agent";
|
|
4
|
-
export declare function createBackgroundCancel(manager: BackgroundManager, _client: BackgroundCancelClient): ToolDefinition;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { BackgroundTask } from "../../../features/background-agent";
|
|
2
|
-
import type { BackgroundOutputClient } from "../types";
|
|
3
|
-
export declare function formatTaskStatus(task: BackgroundTask): string;
|
|
4
|
-
export declare function formatTaskResult(task: BackgroundTask, client: BackgroundOutputClient): Promise<string>;
|
|
5
|
-
export declare function formatFullSession(task: BackgroundTask, client: BackgroundOutputClient, options: {
|
|
6
|
-
includeThinking: boolean;
|
|
7
|
-
messageLimit?: number;
|
|
8
|
-
sinceMessageId?: string;
|
|
9
|
-
includeToolResults: boolean;
|
|
10
|
-
thinkingMaxChars?: number;
|
|
11
|
-
}): Promise<string>;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export type BackgroundOutputMessage = {
|
|
2
|
-
info?: {
|
|
3
|
-
role?: string;
|
|
4
|
-
time?: string | {
|
|
5
|
-
created?: number;
|
|
6
|
-
};
|
|
7
|
-
agent?: string;
|
|
8
|
-
};
|
|
9
|
-
parts?: Array<{
|
|
10
|
-
type?: string;
|
|
11
|
-
text?: string;
|
|
12
|
-
content?: string | Array<{
|
|
13
|
-
type: string;
|
|
14
|
-
text?: string;
|
|
15
|
-
}>;
|
|
16
|
-
name?: string;
|
|
17
|
-
}>;
|
|
18
|
-
};
|
|
19
|
-
export type BackgroundOutputMessagesResult = {
|
|
20
|
-
data?: BackgroundOutputMessage[];
|
|
21
|
-
error?: unknown;
|
|
22
|
-
} | BackgroundOutputMessage[];
|
|
23
|
-
export type FullSessionMessagePart = {
|
|
24
|
-
type?: string;
|
|
25
|
-
text?: string;
|
|
26
|
-
thinking?: string;
|
|
27
|
-
content?: string | Array<{
|
|
28
|
-
type?: string;
|
|
29
|
-
text?: string;
|
|
30
|
-
}>;
|
|
31
|
-
output?: string;
|
|
32
|
-
};
|
|
33
|
-
export type FullSessionMessage = {
|
|
34
|
-
id?: string;
|
|
35
|
-
info?: {
|
|
36
|
-
role?: string;
|
|
37
|
-
time?: string;
|
|
38
|
-
agent?: string;
|
|
39
|
-
};
|
|
40
|
-
parts?: FullSessionMessagePart[];
|
|
41
|
-
};
|
|
42
|
-
export declare function getErrorMessage(value: BackgroundOutputMessagesResult): string | null;
|
|
43
|
-
export declare function isSessionMessage(value: unknown): value is {
|
|
44
|
-
info?: {
|
|
45
|
-
role?: string;
|
|
46
|
-
time?: string;
|
|
47
|
-
};
|
|
48
|
-
parts?: Array<{
|
|
49
|
-
type?: string;
|
|
50
|
-
text?: string;
|
|
51
|
-
content?: string | Array<{
|
|
52
|
-
type: string;
|
|
53
|
-
text?: string;
|
|
54
|
-
}>;
|
|
55
|
-
name?: string;
|
|
56
|
-
}>;
|
|
57
|
-
};
|
|
58
|
-
export declare function extractMessages(value: BackgroundOutputMessagesResult): BackgroundOutputMessage[];
|
|
59
|
-
export declare function extractToolResultText(part: FullSessionMessagePart): string[];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { getMessageDir } from "../../../shared";
|
|
2
|
-
export { getMessageDir };
|
|
3
|
-
export declare function formatDuration(start: Date, end?: Date): string;
|
|
4
|
-
export declare function truncateText(text: string, maxLength: number): string;
|
|
5
|
-
export declare function delay(ms: number): Promise<void>;
|
|
6
|
-
export declare function formatMessageTime(value: unknown): string;
|
|
7
|
-
export type ToolContextWithMetadata = {
|
|
8
|
-
sessionID: string;
|
|
9
|
-
messageID: string;
|
|
10
|
-
agent: string;
|
|
11
|
-
abort: AbortSignal;
|
|
12
|
-
metadata?: (input: {
|
|
13
|
-
title?: string;
|
|
14
|
-
metadata?: Record<string, unknown>;
|
|
15
|
-
}) => void;
|
|
16
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { CallOmoAgentArgs } from "./types";
|
|
3
|
-
import type { ToolContextWithMetadata } from "./tool-context-with-metadata";
|
|
4
|
-
export declare function executeSyncAgent(args: CallOmoAgentArgs, toolContext: ToolContextWithMetadata, ctx: PluginInput): Promise<string>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { GitMasterConfig, BrowserAutomationProvider } from "../../config/schema";
|
|
2
|
-
export declare function resolveSkillContent(skills: string[], options: {
|
|
3
|
-
gitMasterConfig?: GitMasterConfig;
|
|
4
|
-
browserProvider?: BrowserAutomationProvider;
|
|
5
|
-
disabledSkills?: Set<string>;
|
|
6
|
-
}): Promise<{
|
|
7
|
-
content: string | undefined;
|
|
8
|
-
error: string | null;
|
|
9
|
-
}>;
|