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.
Files changed (93) hide show
  1. package/README.ja.md +6 -6
  2. package/README.ko.md +6 -6
  3. package/README.md +6 -6
  4. package/README.zh-cn.md +6 -6
  5. package/dist/agents/sisyphus-junior/gpt.d.ts +4 -14
  6. package/dist/cli/index.js +357 -104
  7. package/dist/cli/run/event-handlers.d.ts +1 -0
  8. package/dist/cli/run/opencode-bin-path.d.ts +3 -0
  9. package/dist/cli/run/opencode-binary-resolver.d.ts +5 -0
  10. package/dist/cli/run/session-resolver.d.ts +1 -0
  11. package/dist/cli/run/types.d.ts +29 -0
  12. package/dist/config/schema/browser-automation.d.ts +2 -0
  13. package/dist/config/schema/experimental.d.ts +1 -0
  14. package/dist/config/schema/hooks.d.ts +1 -0
  15. package/dist/config/schema/oh-my-opencode-config.d.ts +3 -0
  16. package/dist/create-hooks.d.ts +3 -0
  17. package/dist/create-managers.d.ts +1 -0
  18. package/dist/features/background-agent/manager.d.ts +3 -0
  19. package/dist/features/builtin-skills/skills/index.d.ts +1 -0
  20. package/dist/features/builtin-skills/skills/playwright-cli.d.ts +10 -0
  21. package/dist/features/tmux-subagent/action-executor-core.d.ts +21 -0
  22. package/dist/features/tmux-subagent/action-executor.d.ts +3 -12
  23. package/dist/features/tmux-subagent/grid-planning.d.ts +2 -2
  24. package/dist/features/tmux-subagent/pane-split-availability.d.ts +3 -2
  25. package/dist/features/tmux-subagent/polling-manager.d.ts +1 -0
  26. package/dist/features/tmux-subagent/spawn-target-finder.d.ts +1 -1
  27. package/dist/hooks/context-window-monitor.d.ts +5 -1
  28. package/dist/hooks/directory-agents-injector/hook.d.ts +3 -1
  29. package/dist/hooks/directory-readme-injector/hook.d.ts +3 -1
  30. package/dist/hooks/hashline-read-enhancer/hook.d.ts +18 -0
  31. package/dist/hooks/hashline-read-enhancer/index.d.ts +1 -0
  32. package/dist/hooks/index.d.ts +1 -0
  33. package/dist/hooks/preemptive-compaction.d.ts +4 -1
  34. package/dist/hooks/rules-injector/hook.d.ts +3 -1
  35. package/dist/hooks/think-mode/switcher.d.ts +7 -0
  36. package/dist/hooks/tool-output-truncator.d.ts +3 -0
  37. package/dist/index.js +1758 -830
  38. package/dist/plugin/hooks/create-core-hooks.d.ts +3 -0
  39. package/dist/plugin/hooks/create-session-hooks.d.ts +2 -0
  40. package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +4 -1
  41. package/dist/shared/dynamic-truncator.d.ts +7 -3
  42. package/dist/shared/fallback-model-availability.d.ts +9 -2
  43. package/dist/shared/git-worktree/index.d.ts +2 -0
  44. package/dist/shared/git-worktree/parse-status-porcelain-line.d.ts +6 -0
  45. package/dist/shared/index.d.ts +2 -0
  46. package/dist/shared/model-availability.d.ts +0 -5
  47. package/dist/shared/session-directory-resolver.d.ts +7 -0
  48. package/dist/shared/tmux/tmux-utils/layout.d.ts +2 -2
  49. package/dist/tools/call-omo-agent/tools.d.ts +1 -1
  50. package/dist/tools/delegate-task/sync-prompt-sender.d.ts +7 -1
  51. package/dist/tools/hashline-edit/constants.d.ts +2 -0
  52. package/dist/tools/hashline-edit/edit-operations.d.ts +6 -0
  53. package/dist/tools/hashline-edit/hash-computation.d.ts +3 -0
  54. package/dist/tools/hashline-edit/index.d.ts +7 -0
  55. package/dist/tools/hashline-edit/tools.d.ts +2 -0
  56. package/dist/tools/hashline-edit/types.d.ts +22 -0
  57. package/dist/tools/hashline-edit/validation.d.ts +6 -0
  58. package/dist/tools/index.d.ts +1 -0
  59. package/package.json +8 -8
  60. package/dist/features/background-agent/background-event-handler.d.ts +0 -26
  61. package/dist/features/background-agent/background-manager-shutdown.d.ts +0 -25
  62. package/dist/features/background-agent/notification-tracker.d.ts +0 -6
  63. package/dist/features/background-agent/notify-parent-session.d.ts +0 -10
  64. package/dist/features/background-agent/poll-running-tasks.d.ts +0 -15
  65. package/dist/features/background-agent/process-signal.d.ts +0 -2
  66. package/dist/features/background-agent/session-validator.d.ts +0 -7
  67. package/dist/features/background-agent/spawner/task-factory.d.ts +0 -2
  68. package/dist/features/background-agent/spawner/task-resumer.d.ts +0 -3
  69. package/dist/features/background-agent/spawner/task-starter.d.ts +0 -3
  70. package/dist/features/background-agent/stale-task-pruner.d.ts +0 -15
  71. package/dist/features/background-agent/task-canceller.d.ts +0 -27
  72. package/dist/features/background-agent/task-completer.d.ts +0 -13
  73. package/dist/features/background-agent/task-launch.d.ts +0 -15
  74. package/dist/features/background-agent/task-queries.d.ts +0 -7
  75. package/dist/features/background-agent/task-queue-processor.d.ts +0 -14
  76. package/dist/features/background-agent/task-resumer.d.ts +0 -14
  77. package/dist/features/background-agent/task-starter.d.ts +0 -27
  78. package/dist/features/background-agent/task-tracker.d.ts +0 -18
  79. package/dist/features/tmux-subagent/manager-cleanup.d.ts +0 -12
  80. package/dist/features/tmux-subagent/session-cleaner.d.ts +0 -23
  81. package/dist/features/tmux-subagent/session-spawner.d.ts +0 -34
  82. package/dist/hooks/interactive-bash-session/interactive-bash-session-hook.d.ts +0 -23
  83. package/dist/shared/available-models-fetcher.d.ts +0 -4
  84. package/dist/shared/model-cache-availability.d.ts +0 -2
  85. package/dist/tools/background-task/modules/background-cancel.d.ts +0 -4
  86. package/dist/tools/background-task/modules/background-output.d.ts +0 -3
  87. package/dist/tools/background-task/modules/background-task.d.ts +0 -3
  88. package/dist/tools/background-task/modules/formatters.d.ts +0 -11
  89. package/dist/tools/background-task/modules/message-processing.d.ts +0 -59
  90. package/dist/tools/background-task/modules/utils.d.ts +0 -16
  91. package/dist/tools/call-omo-agent/agent-type-normalizer.d.ts +0 -2
  92. package/dist/tools/call-omo-agent/sync-agent-executor.d.ts +0 -4
  93. 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
- export declare function getConnectedProviders(client: unknown): Promise<string[]>;
2
- export declare function fetchAvailableModels(client?: unknown, options?: {
3
- connectedProviders?: string[] | null;
4
- }): Promise<Set<string>>;
@@ -1,2 +0,0 @@
1
- export declare function __resetModelCache(): void;
2
- export declare function isModelCacheAvailable(): boolean;
@@ -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,3 +0,0 @@
1
- import { type ToolDefinition } from "@opencode-ai/plugin";
2
- import type { BackgroundOutputManager, BackgroundOutputClient } from "../types";
3
- export declare function createBackgroundOutput(manager: BackgroundOutputManager, client: BackgroundOutputClient): ToolDefinition;
@@ -1,3 +0,0 @@
1
- import { type ToolDefinition } from "@opencode-ai/plugin";
2
- import type { BackgroundManager } from "../../../features/background-agent";
3
- export declare function createBackgroundTask(manager: BackgroundManager): 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,2 +0,0 @@
1
- import type { AllowedAgentType } from "./types";
2
- export declare function normalizeAgentType(input: string): AllowedAgentType | null;
@@ -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
- }>;