opencode-pair-autonomy 1.0.2 → 1.0.3

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 (2) hide show
  1. package/dist/index.js +11 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -16902,23 +16902,28 @@ var PLAN_MODE_ALLOWED_AGENTS = new Set([
16902
16902
  "odokawa",
16903
16903
  "rajdhani"
16904
16904
  ]);
16905
- function isWorkerSpawnTool(tool) {
16906
- return tool === "task" || tool.startsWith("task_") || tool === "delegate" || tool.startsWith("delegate");
16907
- }
16908
16905
  function resolveTargetAgent(args) {
16909
16906
  if (typeof args.subagent_type === "string")
16910
16907
  return args.subagent_type;
16911
16908
  if (typeof args.agent === "string")
16912
16909
  return args.agent;
16910
+ if (typeof args.subagent === "string")
16911
+ return args.subagent;
16912
+ if (typeof args.type === "string")
16913
+ return args.type;
16913
16914
  return;
16914
16915
  }
16915
16916
  function isBlockedInPlanMode(tool, args) {
16916
16917
  if (PLAN_MODE_ALWAYS_BLOCKED.has(tool))
16917
16918
  return true;
16918
- if (!isWorkerSpawnTool(tool))
16919
- return false;
16920
16919
  const target = resolveTargetAgent(args);
16921
- return !(target && PLAN_MODE_ALLOWED_AGENTS.has(target));
16920
+ if (target) {
16921
+ return !PLAN_MODE_ALLOWED_AGENTS.has(target);
16922
+ }
16923
+ if (tool === "task" || tool.startsWith("task_") || tool === "delegate" || tool.startsWith("delegate")) {
16924
+ return true;
16925
+ }
16926
+ return false;
16922
16927
  }
16923
16928
  function isNodeCommand(command) {
16924
16929
  return NODE_COMMAND_RE.test(command.trim()) || NODE_MODULES_BIN_RE.test(command);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-pair-autonomy",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "OpenCode harness with opinionated agent orchestration. One coordinator, eight specialized workers, automatic verify+review pipeline.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",