oh-my-opencode 2.13.2 → 3.0.0-beta.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 +71 -14
- package/README.md +169 -37
- package/README.zh-cn.md +68 -14
- package/dist/agents/metis.d.ts +18 -0
- package/dist/agents/momus.d.ts +6 -0
- package/dist/agents/orchestrator-sisyphus.d.ts +19 -0
- package/dist/agents/plan-prompt.d.ts +8 -5
- package/dist/agents/prometheus-prompt.d.ts +27 -0
- package/dist/agents/sisyphus-junior.d.ts +3 -0
- package/dist/agents/types.d.ts +1 -1
- package/dist/agents/utils.d.ts +4 -1
- package/dist/auth/antigravity/accounts.d.ts +40 -0
- package/dist/auth/antigravity/accounts.test.d.ts +1 -0
- package/dist/auth/antigravity/browser.d.ts +27 -0
- package/dist/auth/antigravity/browser.test.d.ts +1 -0
- package/dist/auth/antigravity/cli.d.ts +2 -0
- package/dist/auth/antigravity/cli.test.d.ts +1 -0
- package/dist/auth/antigravity/constants.d.ts +63 -1
- package/dist/auth/antigravity/constants.test.d.ts +1 -0
- package/dist/auth/antigravity/fetch.d.ts +2 -1
- package/dist/auth/antigravity/integration.test.d.ts +10 -0
- package/dist/auth/antigravity/oauth.d.ts +6 -40
- package/dist/auth/antigravity/oauth.test.d.ts +1 -0
- package/dist/auth/antigravity/request.d.ts +12 -0
- package/dist/auth/antigravity/request.test.d.ts +1 -0
- package/dist/auth/antigravity/storage.d.ts +5 -0
- package/dist/auth/antigravity/storage.test.d.ts +1 -0
- package/dist/auth/antigravity/thinking.d.ts +45 -1
- package/dist/auth/antigravity/thinking.test.d.ts +10 -0
- package/dist/auth/antigravity/token.test.d.ts +1 -0
- package/dist/auth/antigravity/types.d.ts +29 -5
- package/dist/cli/commands/auth.d.ts +2 -0
- package/dist/cli/index.js +341 -116
- package/dist/config/schema.d.ts +281 -7
- package/dist/features/background-agent/concurrency.d.ts +10 -0
- package/dist/features/background-agent/concurrency.test.d.ts +1 -0
- package/dist/features/background-agent/index.d.ts +1 -0
- package/dist/features/background-agent/manager.d.ts +16 -2
- package/dist/features/background-agent/types.d.ts +26 -0
- package/dist/features/boulder-state/constants.d.ts +10 -0
- package/dist/features/boulder-state/index.d.ts +3 -0
- package/dist/features/boulder-state/storage.d.ts +28 -0
- package/dist/features/boulder-state/storage.test.d.ts +1 -0
- package/dist/features/boulder-state/types.d.ts +24 -0
- package/dist/features/builtin-commands/templates/init-deep.d.ts +1 -1
- package/dist/features/builtin-commands/templates/refactor.d.ts +1 -1
- package/dist/features/builtin-commands/templates/start-work.d.ts +1 -0
- package/dist/features/builtin-commands/types.d.ts +1 -1
- package/dist/features/hook-message-injector/injector.d.ts +2 -2
- package/dist/features/hook-message-injector/types.d.ts +3 -2
- package/dist/features/opencode-skill-loader/index.d.ts +1 -0
- package/dist/features/opencode-skill-loader/skill-content.d.ts +5 -0
- package/dist/features/opencode-skill-loader/skill-content.test.d.ts +1 -0
- package/dist/features/task-toast-manager/index.d.ts +2 -0
- package/dist/features/task-toast-manager/manager.d.ts +56 -0
- package/dist/features/task-toast-manager/manager.test.d.ts +1 -0
- package/dist/features/task-toast-manager/types.d.ts +16 -0
- package/dist/google-auth.js +2167 -161
- package/dist/hooks/agent-usage-reminder/constants.d.ts +1 -1
- package/dist/hooks/auto-slash-command/executor.d.ts +5 -1
- package/dist/hooks/auto-slash-command/index.d.ts +5 -1
- package/dist/hooks/claude-code-hooks/index.d.ts +2 -1
- package/dist/hooks/claude-code-hooks/types.d.ts +1 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/keyword-detector/index.test.d.ts +1 -0
- package/dist/hooks/prometheus-md-only/constants.d.ts +6 -0
- package/dist/hooks/prometheus-md-only/index.d.ts +12 -0
- package/dist/hooks/prometheus-md-only/index.test.d.ts +1 -0
- package/dist/hooks/sisyphus-orchestrator/index.d.ts +35 -0
- package/dist/hooks/sisyphus-orchestrator/index.test.d.ts +1 -0
- package/dist/hooks/start-work/index.d.ts +16 -0
- package/dist/hooks/start-work/index.test.d.ts +1 -0
- package/dist/hooks/task-resume-info/index.d.ts +11 -0
- package/dist/hooks/todo-continuation-enforcer.d.ts +1 -0
- package/dist/index.js +23047 -14427
- package/dist/mcp/index.d.ts +4 -2
- package/dist/mcp/types.d.ts +1 -0
- package/dist/mcp/websearch.d.ts +8 -0
- package/dist/shared/external-plugin-detector.d.ts +18 -0
- package/dist/shared/external-plugin-detector.test.d.ts +1 -0
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/migration.d.ts +6 -0
- package/dist/tools/background-task/index.d.ts +1 -1
- package/dist/tools/call-omo-agent/constants.d.ts +1 -1
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/sisyphus-task/constants.d.ts +12 -0
- package/dist/tools/sisyphus-task/index.d.ts +3 -0
- package/dist/tools/sisyphus-task/tools.d.ts +16 -0
- package/dist/tools/sisyphus-task/tools.test.d.ts +1 -0
- package/dist/tools/sisyphus-task/types.d.ts +9 -0
- package/dist/tools/slashcommand/types.d.ts +2 -1
- package/package.json +3 -2
- package/README.ko.md +0 -1040
|
@@ -2,4 +2,4 @@ export declare const OPENCODE_STORAGE: string;
|
|
|
2
2
|
export declare const AGENT_USAGE_REMINDER_STORAGE: string;
|
|
3
3
|
export declare const TARGET_TOOLS: Set<string>;
|
|
4
4
|
export declare const AGENT_TOOLS: Set<string>;
|
|
5
|
-
export declare const REMINDER_MESSAGE = "\n[Agent Usage Reminder]\n\nYou called a search/fetch tool directly without leveraging specialized agents.\n\nRECOMMENDED: Use
|
|
5
|
+
export declare const REMINDER_MESSAGE = "\n[Agent Usage Reminder]\n\nYou called a search/fetch tool directly without leveraging specialized agents.\n\nRECOMMENDED: Use sisyphus_task with explore/librarian agents for better results:\n\n```\n// Parallel exploration - fire multiple agents simultaneously\nsisyphus_task(agent=\"explore\", prompt=\"Find all files matching pattern X\")\nsisyphus_task(agent=\"explore\", prompt=\"Search for implementation of Y\") \nsisyphus_task(agent=\"librarian\", prompt=\"Lookup documentation for Z\")\n\n// Then continue your work while they run in background\n// System will notify you when each completes\n```\n\nWHY:\n- Agents can perform deeper, more thorough searches\n- Background tasks run in parallel, saving time\n- Specialized agents have domain expertise\n- Reduces context window usage in main session\n\nALWAYS prefer: Multiple parallel sisyphus_task calls > Direct tool calls\n";
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { type LoadedSkill } from "../../features/opencode-skill-loader";
|
|
1
2
|
import type { ParsedSlashCommand } from "./types";
|
|
3
|
+
export interface ExecutorOptions {
|
|
4
|
+
skills?: LoadedSkill[];
|
|
5
|
+
}
|
|
2
6
|
export interface ExecuteResult {
|
|
3
7
|
success: boolean;
|
|
4
8
|
replacementText?: string;
|
|
5
9
|
error?: string;
|
|
6
10
|
}
|
|
7
|
-
export declare function executeSlashCommand(parsed: ParsedSlashCommand): Promise<ExecuteResult>;
|
|
11
|
+
export declare function executeSlashCommand(parsed: ParsedSlashCommand, options?: ExecutorOptions): Promise<ExecuteResult>;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { AutoSlashCommandHookInput, AutoSlashCommandHookOutput } from "./types";
|
|
2
|
+
import type { LoadedSkill } from "../../features/opencode-skill-loader";
|
|
2
3
|
export * from "./detector";
|
|
3
4
|
export * from "./executor";
|
|
4
5
|
export * from "./constants";
|
|
5
6
|
export * from "./types";
|
|
6
|
-
export
|
|
7
|
+
export interface AutoSlashCommandHookOptions {
|
|
8
|
+
skills?: LoadedSkill[];
|
|
9
|
+
}
|
|
10
|
+
export declare function createAutoSlashCommandHook(options?: AutoSlashCommandHookOptions): {
|
|
7
11
|
"chat.message": (input: AutoSlashCommandHookInput, output: AutoSlashCommandHookOutput) => Promise<void>;
|
|
8
12
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
2
|
import type { PluginConfig } from "./types";
|
|
3
|
-
|
|
3
|
+
import type { ContextCollector } from "../../features/context-injector";
|
|
4
|
+
export declare function createClaudeCodeHooksHook(ctx: PluginInput, config?: PluginConfig, contextCollector?: ContextCollector): {
|
|
4
5
|
"experimental.session.compacting": (input: {
|
|
5
6
|
sessionID: string;
|
|
6
7
|
}, output: {
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -24,3 +24,7 @@ export { createThinkingBlockValidatorHook } from "./thinking-block-validator";
|
|
|
24
24
|
export { createRalphLoopHook, type RalphLoopHook } from "./ralph-loop";
|
|
25
25
|
export { createAutoSlashCommandHook } from "./auto-slash-command";
|
|
26
26
|
export { createEditErrorRecoveryHook } from "./edit-error-recovery";
|
|
27
|
+
export { createPrometheusMdOnlyHook } from "./prometheus-md-only";
|
|
28
|
+
export { createTaskResumeInfoHook } from "./task-resume-info";
|
|
29
|
+
export { createStartWorkHook } from "./start-work";
|
|
30
|
+
export { createSisyphusOrchestratorHook } from "./sisyphus-orchestrator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const HOOK_NAME = "prometheus-md-only";
|
|
2
|
+
export declare const PROMETHEUS_AGENTS: string[];
|
|
3
|
+
export declare const ALLOWED_EXTENSIONS: string[];
|
|
4
|
+
export declare const ALLOWED_PATH_PREFIX = ".sisyphus/";
|
|
5
|
+
export declare const BLOCKED_TOOLS: string[];
|
|
6
|
+
export declare const PLANNING_CONSULT_WARNING = "\n\n---\n\n[SYSTEM DIRECTIVE - READ-ONLY PLANNING CONSULTATION]\n\nYou are being invoked by Prometheus (Planner), a READ-ONLY planning agent.\n\n**CRITICAL CONSTRAINTS:**\n- DO NOT modify any files (no Write, Edit, or any file mutations)\n- DO NOT execute commands that change system state\n- DO NOT create, delete, or rename files\n- ONLY provide analysis, recommendations, and information\n\n**YOUR ROLE**: Provide consultation, research, and analysis to assist with planning.\nReturn your findings and recommendations. The actual implementation will be handled separately after planning is complete.\n\n---\n\n";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
export * from "./constants";
|
|
3
|
+
export declare function createPrometheusMdOnlyHook(_ctx: PluginInput): {
|
|
4
|
+
"tool.execute.before": (input: {
|
|
5
|
+
tool: string;
|
|
6
|
+
sessionID: string;
|
|
7
|
+
callID: string;
|
|
8
|
+
}, output: {
|
|
9
|
+
args: Record<string, unknown>;
|
|
10
|
+
message?: string;
|
|
11
|
+
}) => Promise<void>;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
|
+
export declare const HOOK_NAME = "sisyphus-orchestrator";
|
|
4
|
+
interface ToolExecuteAfterInput {
|
|
5
|
+
tool: string;
|
|
6
|
+
sessionID?: string;
|
|
7
|
+
callID?: string;
|
|
8
|
+
}
|
|
9
|
+
interface ToolExecuteAfterOutput {
|
|
10
|
+
title: string;
|
|
11
|
+
output: string;
|
|
12
|
+
metadata: Record<string, unknown>;
|
|
13
|
+
}
|
|
14
|
+
export interface SisyphusOrchestratorHookOptions {
|
|
15
|
+
directory: string;
|
|
16
|
+
backgroundManager?: BackgroundManager;
|
|
17
|
+
}
|
|
18
|
+
export declare function createSisyphusOrchestratorHook(ctx: PluginInput, options?: SisyphusOrchestratorHookOptions): {
|
|
19
|
+
handler: ({ event }: {
|
|
20
|
+
event: {
|
|
21
|
+
type: string;
|
|
22
|
+
properties?: unknown;
|
|
23
|
+
};
|
|
24
|
+
}) => Promise<void>;
|
|
25
|
+
"tool.execute.before": (input: {
|
|
26
|
+
tool: string;
|
|
27
|
+
sessionID?: string;
|
|
28
|
+
callID?: string;
|
|
29
|
+
}, output: {
|
|
30
|
+
args: Record<string, unknown>;
|
|
31
|
+
message?: string;
|
|
32
|
+
}) => Promise<void>;
|
|
33
|
+
"tool.execute.after": (input: ToolExecuteAfterInput, output: ToolExecuteAfterOutput) => Promise<void>;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
export declare const HOOK_NAME = "start-work";
|
|
3
|
+
interface StartWorkHookInput {
|
|
4
|
+
sessionID: string;
|
|
5
|
+
messageID?: string;
|
|
6
|
+
}
|
|
7
|
+
interface StartWorkHookOutput {
|
|
8
|
+
parts: Array<{
|
|
9
|
+
type: string;
|
|
10
|
+
text?: string;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
13
|
+
export declare function createStartWorkHook(ctx: PluginInput): {
|
|
14
|
+
"chat.message": (input: StartWorkHookInput, output: StartWorkHookOutput) => Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,6 +2,7 @@ import type { PluginInput } from "@opencode-ai/plugin";
|
|
|
2
2
|
import type { BackgroundManager } from "../features/background-agent";
|
|
3
3
|
export interface TodoContinuationEnforcerOptions {
|
|
4
4
|
backgroundManager?: BackgroundManager;
|
|
5
|
+
skipAgents?: string[];
|
|
5
6
|
}
|
|
6
7
|
export interface TodoContinuationEnforcer {
|
|
7
8
|
handler: (input: {
|