@h-rig/cli 0.0.6-alpha.28 → 0.0.6-alpha.29
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/bin/rig.js +421 -241
- package/dist/src/commands/_connection-state.js +0 -2
- package/dist/src/commands/_doctor-checks.js +0 -2
- package/dist/src/commands/_help-catalog.js +27 -3
- package/dist/src/commands/_operator-view.js +0 -2
- package/dist/src/commands/_parsers.js +0 -2
- package/dist/src/commands/_pi-frontend.js +0 -2
- package/dist/src/commands/_pi-worker-bridge-extension.js +0 -2
- package/dist/src/commands/_policy.js +0 -2
- package/dist/src/commands/_preflight.js +0 -2
- package/dist/src/commands/_run-driver-helpers.js +0 -2
- package/dist/src/commands/_server-client.js +0 -2
- package/dist/src/commands/_snapshot-upload.js +0 -2
- package/dist/src/commands/agent.js +0 -2
- package/dist/src/commands/browser.js +0 -2
- package/dist/src/commands/connect.js +0 -2
- package/dist/src/commands/dist.js +0 -2
- package/dist/src/commands/doctor.js +0 -2
- package/dist/src/commands/github.js +0 -2
- package/dist/src/commands/inbox.js +0 -2
- package/dist/src/commands/init.js +0 -2
- package/dist/src/commands/inspect.js +0 -2
- package/dist/src/commands/inspector.js +0 -2
- package/dist/src/commands/plugin.js +73 -19
- package/dist/src/commands/profile-and-review.js +0 -2
- package/dist/src/commands/queue.js +0 -2
- package/dist/src/commands/remote.js +0 -2
- package/dist/src/commands/repo-git-harness.js +2 -4
- package/dist/src/commands/run.js +2 -4
- package/dist/src/commands/server.js +0 -2
- package/dist/src/commands/setup.js +0 -8
- package/dist/src/commands/task-report-bug.js +0 -2
- package/dist/src/commands/task-run-driver.js +0 -2
- package/dist/src/commands/task.js +34 -7
- package/dist/src/commands/test.js +0 -2
- package/dist/src/commands/workspace.js +0 -2
- package/dist/src/commands.js +403 -214
- package/dist/src/index.js +415 -238
- package/dist/src/runner.js +2 -17
- package/package.json +6 -6
|
@@ -9,8 +9,6 @@ import { cancel as cancel2, confirm, isCancel as isCancel2 } from "@clack/prompt
|
|
|
9
9
|
import { EventBus } from "@rig/runtime/control-plane/runtime/events";
|
|
10
10
|
import { CliError } from "@rig/runtime/control-plane/errors";
|
|
11
11
|
import { evaluate, loadPolicy, resolveAction } from "@rig/runtime/control-plane/runtime/guard";
|
|
12
|
-
import { PluginManager } from "@rig/runtime/control-plane/runtime/plugins";
|
|
13
|
-
import { loadRuntimeContextFromEnv } from "@rig/runtime/control-plane/runtime/context";
|
|
14
12
|
import { buildBinary } from "@rig/runtime/control-plane/runtime/isolation";
|
|
15
13
|
import { CliError as CliError2 } from "@rig/runtime/control-plane/errors";
|
|
16
14
|
function takeFlag(args, flag) {
|
|
@@ -1877,6 +1875,9 @@ var PRIMARY_GROUPS = [
|
|
|
1877
1875
|
{ command: "show <id>|--task <id> [--raw]", description: "Show a human task summary; --raw prints the full payload.", primary: true },
|
|
1878
1876
|
{ command: "run [#<issue>|<task-id>|--next|--task <id>]", description: "Submit a task run; interactive follows with bundled Pi.", primary: true },
|
|
1879
1877
|
{ command: "validate|verify [--task <id>]", description: "Run configured task checks/review gates." },
|
|
1878
|
+
{ command: "details --task <id>", description: "Show full task info from the configured source." },
|
|
1879
|
+
{ command: "reopen [--task <id> | --all] [--reason <text>]", description: "Reopen closed task(s) in the configured source." },
|
|
1880
|
+
{ command: "reset --task <id>", description: "Compatibility spelling of `reopen --task <id>`." },
|
|
1880
1881
|
{ command: "artifacts|artifact-dir|artifact-write", description: "Inspect or write task artifacts." },
|
|
1881
1882
|
{ command: "report-bug", description: "Create a structured bug report/task." }
|
|
1882
1883
|
],
|
|
@@ -1901,6 +1902,8 @@ var PRIMARY_GROUPS = [
|
|
|
1901
1902
|
{ command: "attach <run-id>|--run <id> [--follow]", description: "Attach to the run; --follow launches native bundled Pi for live Pi runs.", primary: true },
|
|
1902
1903
|
{ command: "stop [<run-id>|--run <id>]", description: "Request stop for one run or local active runs.", primary: true },
|
|
1903
1904
|
{ command: "timeline --run <id> [--follow]", description: "Stream raw run timeline events." },
|
|
1905
|
+
{ command: "resume", description: "Resume the most recent interrupted local run." },
|
|
1906
|
+
{ command: "restart", description: "Restart the most recent local run from a clean runtime." },
|
|
1904
1907
|
{ command: "delete|cleanup", description: "Remove completed run records/artifacts." }
|
|
1905
1908
|
],
|
|
1906
1909
|
examples: [
|
|
@@ -1987,8 +1990,28 @@ var ADVANCED_GROUPS = [
|
|
|
1987
1990
|
{ name: "inspect", summary: "Inspect logs, artifacts, graphs, failures.", usage: ["rig inspect <logs|artifacts|failures|graph|audit|diff>"], commands: [{ command: "logs --task <id>", description: "Inspect task logs." }] },
|
|
1988
1991
|
{ name: "repo", summary: "Repository sync/baseline helpers.", usage: ["rig repo <sync|reset-baseline>"], commands: [{ command: "sync", description: "Sync project repository state." }] },
|
|
1989
1992
|
{ name: "profile", summary: "Runtime profile/model defaults.", usage: ["rig profile <show|set>"], commands: [{ command: "show", description: "Show active profile." }] },
|
|
1990
|
-
{
|
|
1991
|
-
|
|
1993
|
+
{
|
|
1994
|
+
name: "browser",
|
|
1995
|
+
summary: "Browser/app diagnostics for browser-required tasks.",
|
|
1996
|
+
usage: ["rig browser <help|explain|demo|app|hp-next> [options]"],
|
|
1997
|
+
commands: [
|
|
1998
|
+
{ command: "help", description: "Rich browser command help (canonical: `rig browser help`)." },
|
|
1999
|
+
{ command: "explain", description: "Explain the browser-required task contract." },
|
|
2000
|
+
{ command: "demo", description: "Run browser demo flows against a local page." },
|
|
2001
|
+
{ command: "app", description: "Launch the Rig Browser workstation app." },
|
|
2002
|
+
{ command: "hp-next <dev|check|e2e|reset>", description: "Drive the hp-next browser test harness." }
|
|
2003
|
+
]
|
|
2004
|
+
},
|
|
2005
|
+
{
|
|
2006
|
+
name: "plugin",
|
|
2007
|
+
summary: "Plugin listing, validation, and plugin-contributed commands.",
|
|
2008
|
+
usage: ["rig plugin <list|validate|run> [options]"],
|
|
2009
|
+
commands: [
|
|
2010
|
+
{ command: "list", description: "List plugins declared in rig.config.ts and their contributions." },
|
|
2011
|
+
{ command: "validate --task <id>", description: "Run plugin-contributed validators for a task." },
|
|
2012
|
+
{ command: "run <command-id> [args...]", description: "Execute a plugin-contributed CLI command (also callable as `rig <command-id>`)." }
|
|
2013
|
+
]
|
|
2014
|
+
},
|
|
1992
2015
|
{ name: "queue", summary: "Run task queues locally.", usage: ["rig queue run [options]"], commands: [{ command: "run", description: "Process queue work." }] },
|
|
1993
2016
|
{ name: "agent", summary: "Runtime agent workspace helpers.", usage: ["rig agent <list|prepare|run|cleanup>"], commands: [{ command: "list", description: "List prepared agents." }] },
|
|
1994
2017
|
{ name: "inspector", summary: "Event stream and drift scanners.", usage: ["rig inspector <stream|scan-upstream-drift>"], commands: [{ command: "stream", description: "Stream events." }] },
|
|
@@ -2562,7 +2585,7 @@ async function executeTask(context, args, options) {
|
|
|
2562
2585
|
await context.runCommand(["rig", "task", "verify", ...task ? ["--task", task] : []]);
|
|
2563
2586
|
return { ok: true, group: "task", command, details: { task: task || "active" } };
|
|
2564
2587
|
}
|
|
2565
|
-
const ok = await withMutedConsole(context.outputMode === "json", () => taskVerify(context.projectRoot,
|
|
2588
|
+
const ok = await withMutedConsole(context.outputMode === "json", () => taskVerify(context.projectRoot, task || undefined));
|
|
2566
2589
|
if (!ok) {
|
|
2567
2590
|
throw new CliError2(`Verification rejected for ${task || "active task"}.`, 2);
|
|
2568
2591
|
}
|
|
@@ -2572,8 +2595,12 @@ async function executeTask(context, args, options) {
|
|
|
2572
2595
|
const { value: task, rest: remaining } = takeOption(rest, "--task");
|
|
2573
2596
|
requireNoExtraArgs(remaining, "rig task reset --task <task-id>");
|
|
2574
2597
|
const requiredTask = requireTask(task, "rig task reset --task <task-id>");
|
|
2575
|
-
|
|
2576
|
-
|
|
2598
|
+
const summary = withMutedConsole(context.outputMode === "json", () => taskReopen(context.projectRoot, {
|
|
2599
|
+
all: false,
|
|
2600
|
+
taskId: requiredTask,
|
|
2601
|
+
dryRun: false
|
|
2602
|
+
}));
|
|
2603
|
+
return { ok: true, group: "task", command, details: summary };
|
|
2577
2604
|
}
|
|
2578
2605
|
case "details": {
|
|
2579
2606
|
const { value: task, rest: remaining } = takeOption(rest, "--task");
|
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
import { EventBus } from "@rig/runtime/control-plane/runtime/events";
|
|
4
4
|
import { CliError } from "@rig/runtime/control-plane/errors";
|
|
5
5
|
import { evaluate, loadPolicy, resolveAction } from "@rig/runtime/control-plane/runtime/guard";
|
|
6
|
-
import { PluginManager } from "@rig/runtime/control-plane/runtime/plugins";
|
|
7
|
-
import { loadRuntimeContextFromEnv } from "@rig/runtime/control-plane/runtime/context";
|
|
8
6
|
import { buildBinary } from "@rig/runtime/control-plane/runtime/isolation";
|
|
9
7
|
import { CliError as CliError2 } from "@rig/runtime/control-plane/errors";
|
|
10
8
|
function requireNoExtraArgs(args, usage) {
|
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
import { EventBus } from "@rig/runtime/control-plane/runtime/events";
|
|
4
4
|
import { CliError } from "@rig/runtime/control-plane/errors";
|
|
5
5
|
import { evaluate, loadPolicy, resolveAction } from "@rig/runtime/control-plane/runtime/guard";
|
|
6
|
-
import { PluginManager } from "@rig/runtime/control-plane/runtime/plugins";
|
|
7
|
-
import { loadRuntimeContextFromEnv } from "@rig/runtime/control-plane/runtime/context";
|
|
8
6
|
import { buildBinary } from "@rig/runtime/control-plane/runtime/isolation";
|
|
9
7
|
import { CliError as CliError2 } from "@rig/runtime/control-plane/errors";
|
|
10
8
|
function takeOption(args, option) {
|