oh-my-opencode 3.7.3 → 3.8.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.
Files changed (146) hide show
  1. package/README.ja.md +206 -243
  2. package/README.ko.md +205 -244
  3. package/README.md +176 -174
  4. package/README.zh-cn.md +211 -255
  5. package/dist/agents/atlas/default.d.ts +1 -1
  6. package/dist/agents/atlas/gpt.d.ts +1 -1
  7. package/dist/agents/atlas/prompt-section-builder.d.ts +1 -1
  8. package/dist/agents/builtin-agents/environment-context.d.ts +5 -1
  9. package/dist/agents/builtin-agents/general-agents.d.ts +1 -0
  10. package/dist/agents/builtin-agents/hephaestus-agent.d.ts +1 -0
  11. package/dist/agents/builtin-agents/sisyphus-agent.d.ts +1 -0
  12. package/dist/agents/builtin-agents.d.ts +1 -1
  13. package/dist/agents/dynamic-agent-prompt-builder.d.ts +0 -5
  14. package/dist/agents/index.d.ts +2 -1
  15. package/dist/agents/metis.d.ts +1 -1
  16. package/dist/agents/prometheus/behavioral-summary.d.ts +1 -1
  17. package/dist/agents/prometheus/gpt.d.ts +24 -0
  18. package/dist/agents/prometheus/identity-constraints.d.ts +1 -1
  19. package/dist/agents/prometheus/index.d.ts +3 -1
  20. package/dist/agents/prometheus/interview-mode.d.ts +1 -1
  21. package/dist/agents/prometheus/plan-generation.d.ts +1 -1
  22. package/dist/agents/prometheus/plan-template.d.ts +1 -1
  23. package/dist/agents/prometheus/system-prompt.d.ts +13 -2
  24. package/dist/agents/sisyphus-junior/agent.d.ts +1 -1
  25. package/dist/agents/types.d.ts +1 -0
  26. package/dist/cli/config-manager/antigravity-provider-configuration.d.ts +2 -2
  27. package/dist/cli/fallback-chain-resolution.d.ts +1 -1
  28. package/dist/cli/index.js +527 -175
  29. package/dist/cli/model-fallback-requirements.d.ts +3 -0
  30. package/dist/cli/provider-model-id-transform.d.ts +1 -1
  31. package/dist/cli/run/event-state.d.ts +4 -0
  32. package/dist/cli/run/stdin-suppression.d.ts +12 -0
  33. package/dist/cli/run/timestamp-output.d.ts +5 -0
  34. package/dist/cli/run/types.d.ts +1 -0
  35. package/dist/config/index.d.ts +2 -2
  36. package/dist/config/schema/agent-overrides.d.ts +75 -0
  37. package/dist/config/schema/categories.d.ts +2 -0
  38. package/dist/config/schema/experimental.d.ts +2 -0
  39. package/dist/config/schema/fallback-models.d.ts +3 -0
  40. package/dist/config/schema/hooks.d.ts +4 -3
  41. package/dist/config/schema/oh-my-opencode-config.d.ts +87 -47
  42. package/dist/config/schema/ralph-loop.d.ts +4 -0
  43. package/dist/config/schema/runtime-fallback.d.ts +10 -0
  44. package/dist/config/schema.d.ts +2 -0
  45. package/dist/create-hooks.d.ts +8 -5
  46. package/dist/features/background-agent/manager.d.ts +3 -0
  47. package/dist/features/background-agent/parent-session-context-resolver.d.ts +1 -0
  48. package/dist/features/background-agent/types.d.ts +7 -0
  49. package/dist/features/builtin-commands/templates/ralph-loop.d.ts +1 -1
  50. package/dist/features/claude-code-session-state/state.d.ts +1 -0
  51. package/dist/features/task-toast-manager/manager.d.ts +5 -0
  52. package/dist/features/task-toast-manager/types.d.ts +2 -1
  53. package/dist/features/tmux-subagent/action-executor.d.ts +10 -3
  54. package/dist/features/tmux-subagent/grid-planning.d.ts +5 -3
  55. package/dist/features/tmux-subagent/manager.d.ts +12 -0
  56. package/dist/features/tmux-subagent/pane-split-availability.d.ts +0 -1
  57. package/dist/features/tmux-subagent/spawn-target-finder.d.ts +2 -2
  58. package/dist/features/tmux-subagent/tmux-grid-constants.d.ts +4 -0
  59. package/dist/features/tmux-subagent/types.d.ts +2 -0
  60. package/dist/hooks/atlas/recent-model-resolver.d.ts +6 -0
  61. package/dist/hooks/atlas/system-reminder-templates.d.ts +1 -1
  62. package/dist/hooks/hashline-edit-diff-enhancer/hook.d.ts +28 -0
  63. package/dist/hooks/hashline-edit-diff-enhancer/index.d.ts +1 -0
  64. package/dist/hooks/index.d.ts +5 -2
  65. package/dist/hooks/model-fallback/hook.d.ts +60 -0
  66. package/dist/hooks/no-hephaestus-non-gpt/hook.d.ts +16 -0
  67. package/dist/hooks/no-hephaestus-non-gpt/index.d.ts +1 -0
  68. package/dist/hooks/{sisyphus-gpt-hephaestus-reminder → no-sisyphus-gpt}/hook.d.ts +6 -1
  69. package/dist/hooks/no-sisyphus-gpt/index.d.ts +1 -0
  70. package/dist/hooks/ralph-loop/command-arguments.d.ts +8 -0
  71. package/dist/hooks/ralph-loop/continuation-prompt-injector.d.ts +1 -0
  72. package/dist/hooks/ralph-loop/iteration-continuation.d.ts +12 -0
  73. package/dist/hooks/ralph-loop/loop-state-controller.d.ts +2 -0
  74. package/dist/hooks/ralph-loop/ralph-loop-event-handler.d.ts +1 -0
  75. package/dist/hooks/ralph-loop/ralph-loop-hook.d.ts +1 -0
  76. package/dist/hooks/ralph-loop/session-reset-strategy.d.ts +3 -0
  77. package/dist/hooks/ralph-loop/types.d.ts +1 -0
  78. package/dist/hooks/runtime-fallback/agent-resolver.d.ts +5 -0
  79. package/dist/hooks/runtime-fallback/auto-retry.d.ts +10 -0
  80. package/dist/hooks/runtime-fallback/chat-message-handler.d.ts +20 -0
  81. package/dist/hooks/runtime-fallback/constants.d.ts +19 -0
  82. package/dist/hooks/runtime-fallback/error-classifier.d.ts +17 -0
  83. package/dist/hooks/runtime-fallback/event-handler.d.ts +8 -0
  84. package/dist/hooks/runtime-fallback/fallback-models.d.ts +2 -0
  85. package/dist/hooks/runtime-fallback/fallback-state.d.ts +6 -0
  86. package/dist/hooks/runtime-fallback/hook.d.ts +3 -0
  87. package/dist/hooks/runtime-fallback/index.d.ts +2 -0
  88. package/dist/hooks/runtime-fallback/message-update-handler.d.ts +5 -0
  89. package/dist/hooks/runtime-fallback/types.d.ts +59 -0
  90. package/dist/hooks/session-recovery/detect-error-type.d.ts +2 -1
  91. package/dist/hooks/session-recovery/recover-unavailable-tool.d.ts +5 -0
  92. package/dist/hooks/session-recovery/types.d.ts +1 -0
  93. package/dist/hooks/todo-continuation-enforcer/continuation-injection.d.ts +1 -0
  94. package/dist/hooks/todo-continuation-enforcer/countdown.d.ts +1 -0
  95. package/dist/hooks/unstable-agent-babysitter/task-message-analyzer.d.ts +1 -0
  96. package/dist/hooks/unstable-agent-babysitter/unstable-agent-babysitter-hook.d.ts +2 -0
  97. package/dist/hooks/write-existing-file-guard/hook.d.ts +1 -0
  98. package/dist/index.js +6614 -3149
  99. package/dist/oh-my-opencode.schema.json +3681 -0
  100. package/dist/plugin/chat-headers.d.ts +4 -0
  101. package/dist/plugin/chat-message.d.ts +9 -8
  102. package/dist/plugin/chat-params.d.ts +2 -3
  103. package/dist/plugin/event.d.ts +2 -6
  104. package/dist/plugin/hooks/create-core-hooks.d.ts +8 -5
  105. package/dist/plugin/hooks/create-session-hooks.d.ts +7 -5
  106. package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +2 -1
  107. package/dist/plugin/hooks/create-transform-hooks.d.ts +1 -1
  108. package/dist/plugin/system-transform.d.ts +5 -0
  109. package/dist/plugin/types.d.ts +7 -1
  110. package/dist/plugin/ultrawork-db-model-override.d.ts +11 -0
  111. package/dist/plugin/ultrawork-model-override.d.ts +37 -0
  112. package/dist/shared/index.d.ts +4 -0
  113. package/dist/shared/internal-initiator-marker.d.ts +5 -0
  114. package/dist/shared/model-error-classifier.d.ts +31 -0
  115. package/dist/shared/model-resolution-pipeline.d.ts +1 -0
  116. package/dist/shared/model-resolver.d.ts +6 -0
  117. package/dist/shared/prompt-tools.d.ts +3 -0
  118. package/dist/shared/provider-model-id-transform.d.ts +1 -0
  119. package/dist/shared/session-category-registry.d.ts +32 -0
  120. package/dist/shared/session-model-state.d.ts +7 -0
  121. package/dist/shared/tmux/tmux-utils/layout.d.ts +17 -2
  122. package/dist/tools/delegate-task/background-task.d.ts +2 -1
  123. package/dist/tools/delegate-task/category-resolver.d.ts +2 -0
  124. package/dist/tools/delegate-task/constants.d.ts +1 -1
  125. package/dist/tools/delegate-task/skill-resolver.d.ts +1 -0
  126. package/dist/tools/delegate-task/subagent-resolver.d.ts +2 -0
  127. package/dist/tools/delegate-task/sync-task.d.ts +1 -1
  128. package/dist/tools/hashline-edit/constants.d.ts +5 -2
  129. package/dist/tools/hashline-edit/diff-utils.d.ts +6 -0
  130. package/dist/tools/hashline-edit/edit-operations.d.ts +4 -4
  131. package/dist/tools/hashline-edit/hash-computation.d.ts +1 -1
  132. package/dist/tools/hashline-edit/index.d.ts +1 -1
  133. package/dist/tools/hashline-edit/types.d.ts +4 -4
  134. package/dist/tools/hashline-edit/validation.d.ts +1 -0
  135. package/dist/tools/index.d.ts +2 -2
  136. package/dist/tools/skill/constants.d.ts +2 -2
  137. package/dist/tools/skill/types.d.ts +4 -0
  138. package/dist/tools/slashcommand/index.d.ts +1 -1
  139. package/dist/tools/slashcommand/types.d.ts +1 -7
  140. package/package.json +10 -10
  141. package/dist/cli/run/opencode-bin-path.d.ts +0 -3
  142. package/dist/hooks/sisyphus-gpt-hephaestus-reminder/index.d.ts +0 -1
  143. package/dist/tools/slashcommand/skill-command-converter.d.ts +0 -3
  144. package/dist/tools/slashcommand/slashcommand-description.d.ts +0 -3
  145. package/dist/tools/slashcommand/slashcommand-tool.d.ts +0 -4
  146. package/dist/tools/slashcommand/tools.d.ts +0 -2
@@ -1,8 +1,10 @@
1
1
  import type { SkillScope, LoadedSkill } from "../../features/opencode-skill-loader/types";
2
2
  import type { SkillMcpManager } from "../../features/skill-mcp-manager";
3
3
  import type { GitMasterConfig } from "../../config/schema";
4
+ import type { CommandInfo } from "../slashcommand/types";
4
5
  export interface SkillArgs {
5
6
  name: string;
7
+ user_message?: string;
6
8
  }
7
9
  export interface SkillInfo {
8
10
  name: string;
@@ -19,6 +21,8 @@ export interface SkillLoadOptions {
19
21
  opencodeOnly?: boolean;
20
22
  /** Pre-merged skills to use instead of discovering */
21
23
  skills?: LoadedSkill[];
24
+ /** Pre-discovered commands to use instead of discovering */
25
+ commands?: CommandInfo[];
22
26
  /** MCP manager for querying skill-embedded MCP servers */
23
27
  mcpManager?: SkillMcpManager;
24
28
  /** Session ID getter for MCP client identification */
@@ -1,2 +1,2 @@
1
1
  export * from "./types";
2
- export { slashcommand, createSlashcommandTool, discoverCommandsSync } from "./tools";
2
+ export { discoverCommandsSync } from "./command-discovery";
@@ -1,4 +1,4 @@
1
- import type { LoadedSkill, LazyContentLoader } from "../../features/opencode-skill-loader";
1
+ import type { LazyContentLoader } from "../../features/opencode-skill-loader";
2
2
  export type CommandScope = "builtin" | "config" | "user" | "project" | "opencode" | "opencode-project";
3
3
  export interface CommandMetadata {
4
4
  name: string;
@@ -16,9 +16,3 @@ export interface CommandInfo {
16
16
  scope: CommandScope;
17
17
  lazyContentLoader?: LazyContentLoader;
18
18
  }
19
- export interface SlashcommandToolOptions {
20
- /** Pre-loaded commands (skip discovery if provided) */
21
- commands?: CommandInfo[];
22
- /** Pre-loaded skills (skip discovery if provided) */
23
- skills?: LoadedSkill[];
24
- }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "oh-my-opencode",
3
- "version": "3.7.3",
3
+ "version": "3.8.0",
4
4
  "description": "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "type": "module",
8
8
  "bin": {
9
- "oh-my-opencode": "./bin/oh-my-opencode.js"
9
+ "oh-my-opencode": "bin/oh-my-opencode.js"
10
10
  },
11
11
  "files": [
12
12
  "dist",
@@ -55,7 +55,7 @@
55
55
  "@ast-grep/napi": "^0.40.0",
56
56
  "@clack/prompts": "^0.11.0",
57
57
  "@code-yeongyu/comment-checker": "^0.6.1",
58
- "@modelcontextprotocol/sdk": "^1.25.1",
58
+ "@modelcontextprotocol/sdk": "^1.25.2",
59
59
  "@opencode-ai/plugin": "^1.1.19",
60
60
  "@opencode-ai/sdk": "^1.1.19",
61
61
  "commander": "^14.0.2",
@@ -74,13 +74,13 @@
74
74
  "typescript": "^5.7.3"
75
75
  },
76
76
  "optionalDependencies": {
77
- "oh-my-opencode-darwin-arm64": "3.7.3",
78
- "oh-my-opencode-darwin-x64": "3.7.3",
79
- "oh-my-opencode-linux-arm64": "3.7.3",
80
- "oh-my-opencode-linux-arm64-musl": "3.7.3",
81
- "oh-my-opencode-linux-x64": "3.7.3",
82
- "oh-my-opencode-linux-x64-musl": "3.7.3",
83
- "oh-my-opencode-windows-x64": "3.7.3"
77
+ "oh-my-opencode-darwin-arm64": "3.8.0",
78
+ "oh-my-opencode-darwin-x64": "3.8.0",
79
+ "oh-my-opencode-linux-arm64": "3.8.0",
80
+ "oh-my-opencode-linux-arm64-musl": "3.8.0",
81
+ "oh-my-opencode-linux-x64": "3.8.0",
82
+ "oh-my-opencode-linux-x64-musl": "3.8.0",
83
+ "oh-my-opencode-windows-x64": "3.8.0"
84
84
  },
85
85
  "trustedDependencies": [
86
86
  "@ast-grep/cli",
@@ -1,3 +0,0 @@
1
- type EnvLike = Record<string, string | undefined>;
2
- export declare function prependResolvedOpencodeBinToPath(env?: EnvLike, resolve?: (id: string) => string): void;
3
- export {};
@@ -1 +0,0 @@
1
- export { createSisyphusGptHephaestusReminderHook } from "./hook";
@@ -1,3 +0,0 @@
1
- import type { LoadedSkill } from "../../features/opencode-skill-loader";
2
- import type { CommandInfo } from "./types";
3
- export declare function skillToCommandInfo(skill: LoadedSkill): CommandInfo;
@@ -1,3 +0,0 @@
1
- import type { CommandInfo } from "./types";
2
- export declare const TOOL_DESCRIPTION_PREFIX = "Load a skill or execute a command to get detailed instructions for a specific task.\n\nSkills and commands provide specialized knowledge and step-by-step guidance.\nUse this when a task matches an available skill's or command's description.\n\n**How to use:**\n- Call with command name only: command='publish'\n- Call with command and arguments: command='publish' user_message='patch'\n- The tool will return detailed instructions for the command with your arguments substituted.\n";
3
- export declare function buildDescriptionFromItems(items: CommandInfo[]): string;
@@ -1,4 +0,0 @@
1
- import { type ToolDefinition } from "@opencode-ai/plugin";
2
- import type { SlashcommandToolOptions } from "./types";
3
- export declare function createSlashcommandTool(options?: SlashcommandToolOptions): ToolDefinition;
4
- export declare const slashcommand: ToolDefinition;
@@ -1,2 +0,0 @@
1
- export { discoverCommandsSync } from "./command-discovery";
2
- export { createSlashcommandTool, slashcommand } from "./slashcommand-tool";