@turtton/oh-my-openagent 3.17.0-copilot.1 → 3.17.0-copilot.2

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 CHANGED
@@ -26,7 +26,7 @@ OpenCodeの設定ファイルの `"plugin"` 配列にパッケージ名を追加
26
26
  ## 適用パッチ
27
27
  各パッチの説明:
28
28
  - **001-block-true-waiting**: バックグラウンドタスクの結果取得時に`block=true`の使用を推奨し、不要なPremium Request消費を削減します。upstreamのデフォルトではバックグラウンドタスク完了時に「レスポンスを終了してシステム通知を待つ」ことを推奨しており、各通知が新しいエージェントターンをトリガーしてPremium Requestを消費します。このパッチは代わりに`block=true`で現在のターン内で結果を待つことを推奨し、ランタイム側もそれを適切にサポートするよう変更します: `block=true`で収集されたタスクについては完了通知(`promptAsync`呼び出し)を完全にスキップし、親セッションへのテキスト注入を行わず、そのタスクを兄弟タスクへの「全完了」サマリーからも除外します。`block=true`のタイムアウト制限を撤廃(無期限待機、`timeout`パラメータはdeprecatedとなり無視されます)し、エージェントプロンプトとツール説明のガイダンステキストを全面更新します。ポーリングされていないタスクについては、元の通知駆動ロジックが維持されます。
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`
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`, `src/tools/delegate-task/background-task.ts`, `src/tools/delegate-task/background-continuation.ts`, `src/features/background-agent/background-task-notification-template.ts`
30
30
  - **002-disable-todo-continuation-enforcer**: `todo-continuation-enforcer`フックをデフォルトで無効化します。このフックはTODOリストに基づいて自動的に作業を継続し、意図しない追加のエージェントターン(とPremium Request)をトリガーする場合があります。設定初期化時のデフォルト`disabled_hooks`リストに追加することで無効化しています。
31
31
 
32
32
  ## 無効化されたフックの再有効化
package/README.md CHANGED
@@ -30,7 +30,7 @@ OpenCode will automatically install and load the plugin on next startup.
30
30
  ## Patches Applied
31
31
 
32
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
- - 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`
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`, `src/tools/delegate-task/background-task.ts`, `src/tools/delegate-task/background-continuation.ts`, `src/features/background-agent/background-task-notification-template.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
 
36
36
  ## Re-enabling Disabled Hooks
package/dist/index.js CHANGED
@@ -121331,9 +121331,7 @@ Agent: ${task.agent}
121331
121331
  Status: ${task.status}
121332
121332
 
121333
121333
  Agent continues with full previous context preserved.
121334
- System notifies on completion. Use \`background_output\` with task_id="${task.id}" to check.
121335
-
121336
- Do NOT call background_output now. Wait for <system-reminder> notification first.
121334
+ Use \`background_output\` with task_id="${task.id}" and block=true to wait for results.
121337
121335
 
121338
121336
  <task_metadata>
121339
121337
  session_id: ${task.sessionID}
@@ -122052,9 +122050,7 @@ Description: ${task.description}
122052
122050
  Agent: ${task.agent}${args.category ? ` (category: ${args.category})` : ""}
122053
122051
  Status: ${task.status}
122054
122052
 
122055
- System notifies on completion. Use \`background_output\` with task_id="${task.id}" to check.
122056
-
122057
- Do NOT call background_output now. Wait for <system-reminder> notification first.${taskMetadataBlock}`;
122053
+ Use \`background_output\` with task_id="${task.id}" and block=true to wait for results.${taskMetadataBlock}`;
122058
122054
  } catch (error92) {
122059
122055
  return formatDetailedError(error92, {
122060
122056
  operation: "Launch background task",
@@ -126122,9 +126118,10 @@ Use \`background_output(task_id="<id>")\` to retrieve each result.${hasFailures
126122
126118
  **Description:** ${safeDescription(task)}
126123
126119
  **Duration:** ${duration5}${errorInfo}
126124
126120
 
126125
- **${remainingCount} task${remainingCount === 1 ? "" : "s"} still in progress.** You WILL be notified when ALL complete.
126126
- ${isFailure ? "**ACTION REQUIRED:** This task failed. Check the error and decide whether to retry, cancel remaining tasks, or continue." : "Do NOT poll - continue productive work."}
126127
-
126121
+ **${remainingCount} task${remainingCount === 1 ? "" : "s"} still in progress.** Use \`background_output(task_id="...", block=true)\` to wait for remaining results.
126122
+ ${isFailure ? `
126123
+ **ACTION REQUIRED:** This task failed. Check the error and decide whether to retry, cancel remaining tasks, or continue.
126124
+ ` : ""}
126128
126125
  Use \`background_output(task_id="${task.id}")\` to retrieve this result when ready.
126129
126126
  </system-reminder>`;
126130
126127
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turtton/oh-my-openagent",
3
- "version": "3.17.0-copilot.1",
3
+ "version": "3.17.0-copilot.2",
4
4
  "description": "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools (Copilot-compatible fork)",
5
5
  "main": "./dist/index.js",
6
6
  "types": "dist/index.d.ts",