@h-rig/supervisor-plugin 0.0.6-alpha.142 → 0.0.6-alpha.144

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/dist/src/cli.d.ts CHANGED
@@ -12,9 +12,9 @@ export declare function executeUnblock(context: RuntimeCliContext, args: readonl
12
12
  export declare const supervisorCliCommands: readonly [{
13
13
  readonly id: "supervisor.loop";
14
14
  readonly family: "loop";
15
- readonly command: "rig loop [--max-tasks <n>] [--concurrency <n>] [--dry-run]";
16
- readonly description: "Run the autonomous supervisor loop over ready tasks.";
17
- readonly usage: "rig loop [--max-tasks <n>] [--concurrency <n>] [--stop-when <csv>] [--dry-run] [--json]";
15
+ readonly command: "rig loop [--task <id>] [--max-tasks <n>] [--concurrency <n>] [--dry-run]";
16
+ readonly description: "Run the autonomous supervisor loop over ready tasks, optionally restricted to one task.";
17
+ readonly usage: "rig loop [--task <id>] [--max-tasks <n>] [--concurrency <n>] [--stop-when <csv>] [--dry-run] [--json]";
18
18
  readonly projectRequired: true;
19
19
  readonly run: typeof executeLoop;
20
20
  }, {
package/dist/src/cli.js CHANGED
@@ -145,13 +145,15 @@ async function executeLoop(context, args) {
145
145
  const json = takeFlag(dry.rest, "--json");
146
146
  const maxTasks = takeOption(json.rest, "--max-tasks");
147
147
  const concurrency = takeOption(maxTasks.rest, "--concurrency");
148
- const stopWhen = takeOption(concurrency.rest, "--stop-when");
148
+ const task = takeOption(concurrency.rest, "--task");
149
+ const stopWhen = takeOption(task.rest, "--stop-when");
149
150
  const timeout = takeOption(stopWhen.rest, "--timeout-ms");
150
- requireNoExtraArgs(timeout.rest, "rig loop [--max-tasks <n>] [--concurrency <n>] [--stop-when <csv>] [--dry-run] [--json]");
151
+ requireNoExtraArgs(timeout.rest, "rig loop [--task <id>] [--max-tasks <n>] [--concurrency <n>] [--stop-when <csv>] [--dry-run] [--json]");
151
152
  const { runSupervisorLoop } = await loadSupervisorClient();
152
153
  const result = await runSupervisorLoop(context.projectRoot, supervisorDeps(parsePositiveInt(timeout.value, "--timeout-ms", 1800000)), {
153
154
  maxTasks: parsePositiveInt(maxTasks.value, "--max-tasks", 1),
154
155
  concurrency: parsePositiveInt(concurrency.value, "--concurrency", 1),
156
+ ...task.value ? { candidateTaskIds: [task.value] } : {},
155
157
  dryRun: dry.value || context.dryRun
156
158
  });
157
159
  const details = { ...result, stopWhen: parseCsv(stopWhen.value) };
@@ -183,9 +185,9 @@ var supervisorCliCommands = [
183
185
  {
184
186
  id: SUPERVISOR_LOOP_CLI_ID,
185
187
  family: "loop",
186
- command: "rig loop [--max-tasks <n>] [--concurrency <n>] [--dry-run]",
187
- description: "Run the autonomous supervisor loop over ready tasks.",
188
- usage: "rig loop [--max-tasks <n>] [--concurrency <n>] [--stop-when <csv>] [--dry-run] [--json]",
188
+ command: "rig loop [--task <id>] [--max-tasks <n>] [--concurrency <n>] [--dry-run]",
189
+ description: "Run the autonomous supervisor loop over ready tasks, optionally restricted to one task.",
190
+ usage: "rig loop [--task <id>] [--max-tasks <n>] [--concurrency <n>] [--stop-when <csv>] [--dry-run] [--json]",
189
191
  projectRequired: true,
190
192
  run: executeLoop
191
193
  },
package/dist/src/index.js CHANGED
@@ -201,13 +201,15 @@ async function executeLoop(context, args) {
201
201
  const json = takeFlag(dry.rest, "--json");
202
202
  const maxTasks = takeOption(json.rest, "--max-tasks");
203
203
  const concurrency = takeOption(maxTasks.rest, "--concurrency");
204
- const stopWhen = takeOption(concurrency.rest, "--stop-when");
204
+ const task = takeOption(concurrency.rest, "--task");
205
+ const stopWhen = takeOption(task.rest, "--stop-when");
205
206
  const timeout = takeOption(stopWhen.rest, "--timeout-ms");
206
- requireNoExtraArgs(timeout.rest, "rig loop [--max-tasks <n>] [--concurrency <n>] [--stop-when <csv>] [--dry-run] [--json]");
207
+ requireNoExtraArgs(timeout.rest, "rig loop [--task <id>] [--max-tasks <n>] [--concurrency <n>] [--stop-when <csv>] [--dry-run] [--json]");
207
208
  const { runSupervisorLoop } = await loadSupervisorClient();
208
209
  const result = await runSupervisorLoop(context.projectRoot, supervisorDeps(parsePositiveInt(timeout.value, "--timeout-ms", 1800000)), {
209
210
  maxTasks: parsePositiveInt(maxTasks.value, "--max-tasks", 1),
210
211
  concurrency: parsePositiveInt(concurrency.value, "--concurrency", 1),
212
+ ...task.value ? { candidateTaskIds: [task.value] } : {},
211
213
  dryRun: dry.value || context.dryRun
212
214
  });
213
215
  const details = { ...result, stopWhen: parseCsv(stopWhen.value) };
@@ -239,9 +241,9 @@ var supervisorCliCommands = [
239
241
  {
240
242
  id: SUPERVISOR_LOOP_CLI_ID,
241
243
  family: "loop",
242
- command: "rig loop [--max-tasks <n>] [--concurrency <n>] [--dry-run]",
243
- description: "Run the autonomous supervisor loop over ready tasks.",
244
- usage: "rig loop [--max-tasks <n>] [--concurrency <n>] [--stop-when <csv>] [--dry-run] [--json]",
244
+ command: "rig loop [--task <id>] [--max-tasks <n>] [--concurrency <n>] [--dry-run]",
245
+ description: "Run the autonomous supervisor loop over ready tasks, optionally restricted to one task.",
246
+ usage: "rig loop [--task <id>] [--max-tasks <n>] [--concurrency <n>] [--stop-when <csv>] [--dry-run] [--json]",
245
247
  projectRequired: true,
246
248
  run: executeLoop
247
249
  },
@@ -313,7 +315,7 @@ function createSupervisorJournal(store) {
313
315
  return { append, readEvents, readProjection };
314
316
  }
315
317
  // packages/supervisor-plugin/src/plugin.ts
316
- import { definePlugin } from "@rig/core";
318
+ import { definePlugin } from "@rig/core/config";
317
319
  var SUPERVISOR_PLUGIN_NAME = "@rig/supervisor-plugin";
318
320
  var supervisorPlugin = definePlugin({
319
321
  name: SUPERVISOR_PLUGIN_NAME,
@@ -2,7 +2,7 @@
2
2
  var __require = import.meta.require;
3
3
 
4
4
  // packages/supervisor-plugin/src/plugin.ts
5
- import { definePlugin } from "@rig/core";
5
+ import { definePlugin } from "@rig/core/config";
6
6
 
7
7
  // packages/supervisor-plugin/src/closureStage.ts
8
8
  var SUPERVISOR_CLOSURE_STAGE_ID = "supervisor-closure-observer";
@@ -193,13 +193,15 @@ async function executeLoop(context, args) {
193
193
  const json = takeFlag(dry.rest, "--json");
194
194
  const maxTasks = takeOption(json.rest, "--max-tasks");
195
195
  const concurrency = takeOption(maxTasks.rest, "--concurrency");
196
- const stopWhen = takeOption(concurrency.rest, "--stop-when");
196
+ const task = takeOption(concurrency.rest, "--task");
197
+ const stopWhen = takeOption(task.rest, "--stop-when");
197
198
  const timeout = takeOption(stopWhen.rest, "--timeout-ms");
198
- requireNoExtraArgs(timeout.rest, "rig loop [--max-tasks <n>] [--concurrency <n>] [--stop-when <csv>] [--dry-run] [--json]");
199
+ requireNoExtraArgs(timeout.rest, "rig loop [--task <id>] [--max-tasks <n>] [--concurrency <n>] [--stop-when <csv>] [--dry-run] [--json]");
199
200
  const { runSupervisorLoop } = await loadSupervisorClient();
200
201
  const result = await runSupervisorLoop(context.projectRoot, supervisorDeps(parsePositiveInt(timeout.value, "--timeout-ms", 1800000)), {
201
202
  maxTasks: parsePositiveInt(maxTasks.value, "--max-tasks", 1),
202
203
  concurrency: parsePositiveInt(concurrency.value, "--concurrency", 1),
204
+ ...task.value ? { candidateTaskIds: [task.value] } : {},
203
205
  dryRun: dry.value || context.dryRun
204
206
  });
205
207
  const details = { ...result, stopWhen: parseCsv(stopWhen.value) };
@@ -231,9 +233,9 @@ var supervisorCliCommands = [
231
233
  {
232
234
  id: SUPERVISOR_LOOP_CLI_ID,
233
235
  family: "loop",
234
- command: "rig loop [--max-tasks <n>] [--concurrency <n>] [--dry-run]",
235
- description: "Run the autonomous supervisor loop over ready tasks.",
236
- usage: "rig loop [--max-tasks <n>] [--concurrency <n>] [--stop-when <csv>] [--dry-run] [--json]",
236
+ command: "rig loop [--task <id>] [--max-tasks <n>] [--concurrency <n>] [--dry-run]",
237
+ description: "Run the autonomous supervisor loop over ready tasks, optionally restricted to one task.",
238
+ usage: "rig loop [--task <id>] [--max-tasks <n>] [--concurrency <n>] [--stop-when <csv>] [--dry-run] [--json]",
237
239
  projectRequired: true,
238
240
  run: executeLoop
239
241
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h-rig/supervisor-plugin",
3
- "version": "0.0.6-alpha.142",
3
+ "version": "0.0.6-alpha.144",
4
4
  "type": "module",
5
5
  "description": "First-party autonomous supervisor loop plugin for Rig.",
6
6
  "license": "UNLICENSED",
@@ -10,8 +10,8 @@
10
10
  ],
11
11
  "exports": {
12
12
  ".": {
13
- "types": "./dist/src/index.d.ts",
14
- "import": "./dist/src/index.js"
13
+ "types": "./dist/src/plugin.d.ts",
14
+ "import": "./dist/src/plugin.js"
15
15
  },
16
16
  "./supervisor": {
17
17
  "types": "./dist/src/supervisor.d.ts",
@@ -41,9 +41,9 @@
41
41
  "module": "./dist/src/index.js",
42
42
  "types": "./dist/src/index.d.ts",
43
43
  "dependencies": {
44
- "@rig/client": "npm:@h-rig/client@0.0.6-alpha.142",
45
- "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.142",
46
- "@rig/core": "npm:@h-rig/core@0.0.6-alpha.142",
44
+ "@rig/client": "npm:@h-rig/client@0.0.6-alpha.144",
45
+ "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.144",
46
+ "@rig/core": "npm:@h-rig/core@0.0.6-alpha.144",
47
47
  "effect": "4.0.0-beta.90"
48
48
  }
49
49
  }