@turtton/oh-my-openagent 3.14.0-copilot.2 → 3.14.1-copilot.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 (114) hide show
  1. package/README.ja.md +1 -1
  2. package/README.md +1 -1
  3. package/dist/agents/atlas/agent.d.ts +1 -1
  4. package/dist/agents/hephaestus/agent.d.ts +1 -1
  5. package/dist/agents/hephaestus/gpt-5-3-codex.d.ts +1 -1
  6. package/dist/agents/sisyphus.d.ts +1 -1
  7. package/dist/agents/types.d.ts +1 -0
  8. package/dist/cli/index.js +327 -152
  9. package/dist/config/schema/agent-overrides.d.ts +330 -15
  10. package/dist/config/schema/background-task.d.ts +2 -0
  11. package/dist/config/schema/categories.d.ts +44 -2
  12. package/dist/config/schema/commands.d.ts +1 -0
  13. package/dist/config/schema/experimental.d.ts +1 -0
  14. package/dist/config/schema/fallback-models.d.ts +67 -1
  15. package/dist/config/schema/hooks.d.ts +3 -0
  16. package/dist/config/schema/oh-my-opencode-config.d.ts +342 -16
  17. package/dist/config/schema/sisyphus-agent.d.ts +1 -0
  18. package/dist/config/schema/tmux.d.ts +11 -0
  19. package/dist/create-hooks.d.ts +5 -0
  20. package/dist/features/background-agent/background-task-notification-template.d.ts +1 -1
  21. package/dist/features/background-agent/constants.d.ts +1 -0
  22. package/dist/features/background-agent/manager.d.ts +3 -0
  23. package/dist/features/background-agent/session-existence.d.ts +3 -0
  24. package/dist/features/background-agent/session-idle-event-handler.d.ts +1 -0
  25. package/dist/features/background-agent/task-poller.d.ts +1 -0
  26. package/dist/features/background-agent/types.d.ts +2 -0
  27. package/dist/features/boulder-state/index.d.ts +1 -0
  28. package/dist/features/boulder-state/worktree-sync.d.ts +1 -0
  29. package/dist/features/builtin-commands/commands.d.ts +4 -1
  30. package/dist/features/builtin-commands/templates/remove-ai-slops.d.ts +1 -0
  31. package/dist/features/builtin-commands/templates/start-work.d.ts +1 -1
  32. package/dist/features/builtin-commands/types.d.ts +1 -1
  33. package/dist/features/builtin-skills/skills/ai-slop-remover.d.ts +2 -0
  34. package/dist/features/builtin-skills/skills/index.d.ts +2 -0
  35. package/dist/features/builtin-skills/skills/review-work.d.ts +2 -0
  36. package/dist/features/claude-code-mcp-loader/configure-allowed-env-vars.d.ts +5 -0
  37. package/dist/features/claude-code-mcp-loader/index.d.ts +1 -0
  38. package/dist/features/claude-code-mcp-loader/scope-filter.d.ts +2 -0
  39. package/dist/features/claude-code-mcp-loader/types.d.ts +8 -4
  40. package/dist/features/claude-code-session-state/state.d.ts +2 -0
  41. package/dist/features/context-injector/collector.d.ts +1 -0
  42. package/dist/features/opencode-skill-loader/async-loader.d.ts +2 -2
  43. package/dist/features/tmux-subagent/manager.d.ts +5 -0
  44. package/dist/hooks/agent-usage-reminder/constants.d.ts +1 -1
  45. package/dist/hooks/anthropic-context-window-limit-recovery/message-builder.d.ts +4 -1
  46. package/dist/hooks/anthropic-context-window-limit-recovery/state.d.ts +2 -0
  47. package/dist/hooks/anthropic-context-window-limit-recovery/types.d.ts +1 -0
  48. package/dist/hooks/atlas/subagent-session-id.d.ts +1 -0
  49. package/dist/hooks/auto-slash-command/executor.d.ts +1 -0
  50. package/dist/hooks/auto-slash-command/hook.d.ts +1 -0
  51. package/dist/hooks/bash-file-read-guard.d.ts +2 -0
  52. package/dist/hooks/claude-code-hooks/claude-code-hooks-hook.d.ts +1 -0
  53. package/dist/hooks/claude-code-hooks/config-loader.d.ts +1 -0
  54. package/dist/hooks/claude-code-hooks/config.d.ts +1 -0
  55. package/dist/hooks/claude-code-hooks/handlers/session-event-handler.d.ts +3 -1
  56. package/dist/hooks/claude-code-hooks/session-hook-state.d.ts +1 -0
  57. package/dist/hooks/claude-code-hooks/tool-input-cache.d.ts +2 -0
  58. package/dist/hooks/claude-code-hooks/transcript.d.ts +1 -0
  59. package/dist/hooks/comment-checker/hook.d.ts +1 -0
  60. package/dist/hooks/comment-checker/pending-calls.d.ts +1 -0
  61. package/dist/hooks/index.d.ts +3 -0
  62. package/dist/hooks/legacy-plugin-toast/auto-migrate.d.ts +7 -0
  63. package/dist/hooks/legacy-plugin-toast/hook.d.ts +9 -0
  64. package/dist/hooks/legacy-plugin-toast/index.d.ts +1 -0
  65. package/dist/hooks/ralph-loop/completion-promise-detector.d.ts +1 -0
  66. package/dist/hooks/rules-injector/constants.d.ts +1 -0
  67. package/dist/hooks/rules-injector/finder.d.ts +1 -1
  68. package/dist/hooks/rules-injector/hook.d.ts +2 -0
  69. package/dist/hooks/rules-injector/injector.d.ts +2 -0
  70. package/dist/hooks/rules-injector/rule-file-finder.d.ts +9 -1
  71. package/dist/hooks/start-work/start-work-hook.d.ts +6 -0
  72. package/dist/hooks/tool-pair-validator/hook.d.ts +28 -0
  73. package/dist/hooks/tool-pair-validator/index.d.ts +1 -0
  74. package/dist/index.js +5053 -1477
  75. package/dist/mcp/websearch.d.ts +2 -2
  76. package/dist/oh-my-opencode.schema.json +1049 -2
  77. package/dist/openclaw/dispatcher.d.ts +6 -0
  78. package/dist/plugin/command-execute-before.d.ts +17 -0
  79. package/dist/plugin/hooks/create-core-hooks.d.ts +3 -0
  80. package/dist/plugin/hooks/create-session-hooks.d.ts +2 -1
  81. package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +2 -1
  82. package/dist/plugin/hooks/create-transform-hooks.d.ts +2 -1
  83. package/dist/plugin/tool-registry.d.ts +1 -0
  84. package/dist/plugin/types.d.ts +1 -0
  85. package/dist/plugin-dispose.d.ts +3 -0
  86. package/dist/shared/agent-display-names.d.ts +8 -0
  87. package/dist/shared/archive-entry-validator.d.ts +6 -0
  88. package/dist/shared/background-output-consumption.d.ts +5 -0
  89. package/dist/shared/connected-providers-cache.d.ts +2 -1
  90. package/dist/shared/contains-path.d.ts +2 -0
  91. package/dist/shared/external-plugin-detector.d.ts +14 -0
  92. package/dist/shared/index.d.ts +1 -0
  93. package/dist/shared/legacy-plugin-warning.d.ts +1 -0
  94. package/dist/shared/migrate-legacy-config-file.d.ts +1 -0
  95. package/dist/shared/migrate-legacy-plugin-entry.d.ts +1 -0
  96. package/dist/shared/session-cursor.d.ts +6 -0
  97. package/dist/shared/skill-path-resolver.d.ts +0 -8
  98. package/dist/shared/tmux/tmux-utils/server-health.d.ts +1 -0
  99. package/dist/shared/tmux/tmux-utils/session-spawn.d.ts +3 -0
  100. package/dist/shared/tmux/tmux-utils/window-spawn.d.ts +3 -0
  101. package/dist/shared/tmux/tmux-utils.d.ts +3 -1
  102. package/dist/shared/zip-entry-listing.d.ts +3 -0
  103. package/dist/tools/call-omo-agent/background-executor.d.ts +2 -1
  104. package/dist/tools/call-omo-agent/sync-executor.d.ts +2 -1
  105. package/dist/tools/delegate-task/constants.d.ts +1 -1
  106. package/dist/tools/delegate-task/executor-types.d.ts +2 -1
  107. package/dist/tools/delegate-task/prompt-builder.d.ts +1 -1
  108. package/dist/tools/delegate-task/sync-prompt-sender.d.ts +2 -0
  109. package/dist/tools/delegate-task/types.d.ts +2 -1
  110. package/dist/tools/grep/cli.d.ts +3 -2
  111. package/dist/tools/grep/constants.d.ts +1 -2
  112. package/dist/tools/lsp/infer-extension.d.ts +1 -0
  113. package/dist/tools/skill/types.d.ts +29 -1
  114. package/package.json +3 -3
package/README.ja.md CHANGED
@@ -25,7 +25,7 @@ OpenCodeの設定ファイルの `"plugin"` 配列にパッケージ名を追加
25
25
 
26
26
  ## 適用パッチ
27
27
  各パッチの説明:
28
- - **001-block-true-waiting**: バックグラウンドタスクの結果取得時に`block=true`の使用を推奨し、不要なPremium Request消費を削減します。upstreamのデフォルトではバックグラウンドタスク完了時に「レスポンスを終了してシステム通知を待つ」ことを推奨しており、各通知が新しいエージェントターンをトリガーしてPremium Requestを消費します。このパッチは代わりに`block=true`で現在のターン内で結果を待つことを推奨し、ランタイム側もそれを適切にサポートするよう変更します: アクティブにポーリング中のタスクを追跡して冗長な通知を抑制(`noReply: true`)、`block=true`のタイムアウト制限を撤廃(無期限待機、`timeout`パラメータはdeprecatedとなり無視されます)、エージェントプロンプトとツール説明のガイダンステキストを全面更新。ポーリングされていないタスクについては、元の通知駆動の`noReply: !allComplete`ロジックが維持されます。
28
+ - **001-block-true-waiting**: バックグラウンドタスクの結果取得時に`block=true`の使用を推奨し、不要なPremium Request消費を削減します。upstreamのデフォルトではバックグラウンドタスク完了時に「レスポンスを終了してシステム通知を待つ」ことを推奨しており、各通知が新しいエージェントターンをトリガーしてPremium Requestを消費します。このパッチは代わりに`block=true`で現在のターン内で結果を待つことを推奨し、ランタイム側もそれを適切にサポートするよう変更します: `block=true`で収集されたタスクについては完了通知(`promptAsync`呼び出し)を完全にスキップし、親セッションへのテキスト注入を行わず、そのタスクを兄弟タスクへの「全完了」サマリーからも除外します。`block=true`のタイムアウト制限を撤廃(無期限待機、`timeout`パラメータはdeprecatedとなり無視されます)し、エージェントプロンプトとツール説明のガイダンステキストを全面更新します。ポーリングされていないタスクについては、元の通知駆動ロジックが維持されます。
29
29
  - 対象ファイル: `src/tools/background-task/constants.ts`, `src/tools/call-omo-agent/background-executor.ts`, `src/tools/call-omo-agent/background-agent-executor.ts`, `src/tools/background-task/create-background-task.ts`, `src/agents/dynamic-agent-prompt-builder.ts`, `src/agents/sisyphus.ts`, `src/tools/background-task/clients.ts`, `src/tools/background-task/types.ts`, `src/features/background-agent/manager.ts`, `src/tools/background-task/create-background-output.ts`
30
30
  - **002-disable-todo-continuation-enforcer**: `todo-continuation-enforcer`フックをデフォルトで無効化します。このフックはTODOリストに基づいて自動的に作業を継続し、意図しない追加のエージェントターン(とPremium Request)をトリガーする場合があります。設定初期化時のデフォルト`disabled_hooks`リストに追加することで無効化しています。
31
31
 
package/README.md CHANGED
@@ -29,7 +29,7 @@ OpenCode will automatically install and load the plugin on next startup.
29
29
 
30
30
  ## Patches Applied
31
31
 
32
- - **001-block-true-waiting**: Encourages agents to use `block=true` when collecting background task results, reducing unnecessary premium request consumption. The upstream default recommends agents "end their response and wait for system notifications" when background tasks complete — each notification triggers a new agent turn, consuming a premium request. This patch instead recommends `block=true` to wait within the current turn, and makes the runtime support it properly: tracking which tasks are being actively polled to suppress redundant notifications (`noReply: true`), removing the `block=true` timeout limit (now waits indefinitely, with the `timeout` parameter deprecated and ignored), and updating all guidance text across agent prompts and tool descriptions. For tasks not being actively polled, the original notification-driven `noReply: !allComplete` logic is preserved.
32
+ - **001-block-true-waiting**: Encourages agents to use `block=true` when collecting background task results, reducing unnecessary premium request consumption. The upstream default recommends agents "end their response and wait for system notifications" when background tasks complete — each notification triggers a new agent turn, consuming a premium request. This patch instead recommends `block=true` to wait within the current turn, and makes the runtime support it properly: when a task is collected via `block=true`, the completion notification (`promptAsync` call) is skipped entirely — no text is injected into the parent session, and the task is excluded from the "all complete" summary shown to siblings. This removes the `block=true` timeout limit (now waits indefinitely, with the `timeout` parameter deprecated and ignored), and updates all guidance text across agent prompts and tool descriptions. For tasks not being actively polled, the original notification-driven logic is preserved.
33
33
  - Files affected: `src/tools/background-task/constants.ts`, `src/tools/call-omo-agent/background-executor.ts`, `src/tools/call-omo-agent/background-agent-executor.ts`, `src/tools/background-task/create-background-task.ts`, `src/agents/dynamic-agent-prompt-builder.ts`, `src/agents/sisyphus.ts`, `src/tools/background-task/clients.ts`, `src/tools/background-task/types.ts`, `src/features/background-agent/manager.ts`, `src/tools/background-task/create-background-output.ts`
34
34
  - **002-disable-todo-continuation-enforcer**: Disables the `todo-continuation-enforcer` hook by default. This hook automatically continues work based on todo items, triggering additional agent turns (and premium requests) that may not be intended. Disabled by adding it to the default `disabled_hooks` list in the config initialization.
35
35
 
@@ -30,6 +30,6 @@ export interface OrchestratorContext {
30
30
  export declare function getAtlasPrompt(model?: string): string;
31
31
  export declare function createAtlasAgent(ctx: OrchestratorContext): AgentConfig;
32
32
  export declare namespace createAtlasAgent {
33
- var mode: "all";
33
+ var mode: "primary";
34
34
  }
35
35
  export declare const atlasPromptMetadata: AgentPromptMetadata;
@@ -14,6 +14,6 @@ export interface HephaestusContext {
14
14
  export declare function getHephaestusPrompt(model?: string, useTaskSystem?: boolean): string;
15
15
  export declare function createHephaestusAgent(model: string, availableAgents?: AvailableAgent[], availableToolNames?: string[], availableSkills?: AvailableSkill[], availableCategories?: AvailableCategory[], useTaskSystem?: boolean): AgentConfig;
16
16
  export declare namespace createHephaestusAgent {
17
- var mode: "all";
17
+ var mode: "primary";
18
18
  }
19
19
  export declare const hephaestusPromptMetadata: AgentPromptMetadata;
@@ -17,5 +17,5 @@ import type { AvailableAgent, AvailableTool, AvailableSkill, AvailableCategory }
17
17
  export declare function buildHephaestusPrompt(availableAgents?: AvailableAgent[], availableTools?: AvailableTool[], availableSkills?: AvailableSkill[], availableCategories?: AvailableCategory[], useTaskSystem?: boolean): string;
18
18
  export declare function createHephaestusAgent(model: string, availableAgents?: AvailableAgent[], availableToolNames?: string[], availableSkills?: AvailableSkill[], availableCategories?: AvailableCategory[], useTaskSystem?: boolean): AgentConfig;
19
19
  export declare namespace createHephaestusAgent {
20
- var mode: "all";
20
+ var mode: "primary";
21
21
  }
@@ -4,5 +4,5 @@ export declare const SISYPHUS_PROMPT_METADATA: AgentPromptMetadata;
4
4
  import type { AvailableAgent, AvailableSkill, AvailableCategory } from "./dynamic-agent-prompt-builder";
5
5
  export declare function createSisyphusAgent(model: string, availableAgents?: AvailableAgent[], availableToolNames?: string[], availableSkills?: AvailableSkill[], availableCategories?: AvailableCategory[], useTaskSystem?: boolean): AgentConfig;
6
6
  export declare namespace createSisyphusAgent {
7
- var mode: "all";
7
+ var mode: "primary";
8
8
  }
@@ -56,6 +56,7 @@ export declare function isGptModel(model: string): boolean;
56
56
  export declare function isGpt5_4Model(model: string): boolean;
57
57
  export declare function isGpt5_3CodexModel(model: string): boolean;
58
58
  export declare function isMiniMaxModel(model: string): boolean;
59
+ export declare function isGlmModel(model: string): boolean;
59
60
  export declare function isGeminiModel(model: string): boolean;
60
61
  export type BuiltinAgentName = "sisyphus" | "hephaestus" | "oracle" | "librarian" | "explore" | "multimodal-looker" | "metis" | "momus" | "atlas" | "sisyphus-junior";
61
62
  export type OverridableAgentName = "build" | BuiltinAgentName;