playmakerlabs 0.1.1 → 0.1.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "playmaker",
3
3
  "displayName": "Playmaker",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "description": "Notices when there is enough parallelizable work, offers to run it with the agent CLIs you already have installed (Claude Code, Codex, Gemini/Antigravity, Copilot), and coordinates the workers through git worktrees and Lore.",
6
6
  "author": {
7
7
  "name": "Síntese Labs"
package/hooks/hooks.json CHANGED
@@ -7,7 +7,7 @@
7
7
  {
8
8
  "type": "command",
9
9
  "command": "node",
10
- "args": ["${CLAUDE_PLUGIN_ROOT}/scripts/detect-agents.mjs", "--hook"],
10
+ "args": ["${CLAUDE_PLUGIN_ROOT}/scripts/detect-agents.mjs", "--hook", "--proactive", "${user_config.proactive}"],
11
11
  "timeout": 10
12
12
  }
13
13
  ]
@@ -20,7 +20,7 @@
20
20
  {
21
21
  "type": "command",
22
22
  "command": "node",
23
- "args": ["${CLAUDE_PLUGIN_ROOT}/scripts/task-watch.mjs"],
23
+ "args": ["${CLAUDE_PLUGIN_ROOT}/scripts/task-watch.mjs", "--proactive", "${user_config.proactive}", "--min_tasks", "${user_config.min_tasks}"],
24
24
  "timeout": 10
25
25
  }
26
26
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playmakerlabs",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Parallel multi-agent orchestration: one manager agent runs workers on the CLIs you already have (Claude Code, Codex, Gemini, Antigravity, Copilot) in isolated git worktrees.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -112,7 +112,17 @@ export function hookOutput(eventName, additionalContext) {
112
112
  return JSON.stringify({ hookSpecificOutput: { hookEventName: eventName, additionalContext } });
113
113
  }
114
114
 
115
+ /**
116
+ * A plugin option. hooks.json passes each one as an argument (`--proactive ${user_config.proactive}`).
117
+ * The copy Claude Code also exports to the environment is read by its literal name, only when the
118
+ * argument is missing or was not substituted.
119
+ */
115
120
  export function option(name, fallback) {
116
- const raw = process.env[`CLAUDE_PLUGIN_OPTION_${name.toUpperCase()}`];
121
+ const i = process.argv.indexOf(`--${name}`);
122
+ let raw = i >= 0 ? process.argv[i + 1] : undefined;
123
+ if (raw === undefined || raw === '' || raw.includes('${')) {
124
+ if (name === 'proactive') raw = process.env.CLAUDE_PLUGIN_OPTION_PROACTIVE;
125
+ else if (name === 'min_tasks') raw = process.env.CLAUDE_PLUGIN_OPTION_MIN_TASKS;
126
+ }
117
127
  return raw === undefined || raw === '' ? fallback : raw;
118
128
  }