@h-rig/cli 0.0.6-alpha.3 → 0.0.6-alpha.30
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 +3606 -1172
- package/dist/src/commands/_authority-runs.js +1 -0
- package/dist/src/commands/_cli-format.js +369 -0
- package/dist/src/commands/_connection-state.js +1 -3
- package/dist/src/commands/_doctor-checks.js +13 -27
- package/dist/src/commands/_help-catalog.js +388 -0
- package/dist/src/commands/_operator-surface.js +204 -0
- package/dist/src/commands/_operator-view.js +861 -56
- package/dist/src/commands/_parsers.js +0 -2
- package/dist/src/commands/_pi-frontend.js +841 -0
- package/dist/src/commands/_pi-install.js +4 -3
- package/dist/src/commands/_pi-worker-bridge-extension.js +759 -0
- package/dist/src/commands/_policy.js +0 -2
- package/dist/src/commands/_preflight.js +32 -109
- package/dist/src/commands/_run-driver-helpers.js +0 -2
- package/dist/src/commands/_server-client.js +161 -31
- package/dist/src/commands/_snapshot-upload.js +8 -23
- package/dist/src/commands/_task-picker.js +44 -16
- package/dist/src/commands/agent.js +9 -9
- package/dist/src/commands/browser.js +4 -6
- package/dist/src/commands/connect.js +132 -25
- package/dist/src/commands/dist.js +4 -6
- package/dist/src/commands/doctor.js +13 -27
- package/dist/src/commands/github.js +10 -25
- package/dist/src/commands/inbox.js +351 -31
- package/dist/src/commands/init.js +298 -71
- package/dist/src/commands/inspect.js +10 -12
- package/dist/src/commands/inspector.js +2 -4
- package/dist/src/commands/plugin.js +76 -22
- package/dist/src/commands/profile-and-review.js +8 -10
- package/dist/src/commands/queue.js +2 -3
- package/dist/src/commands/remote.js +18 -20
- package/dist/src/commands/repo-git-harness.js +6 -8
- package/dist/src/commands/run.js +1157 -122
- package/dist/src/commands/server.js +217 -33
- package/dist/src/commands/setup.js +17 -37
- package/dist/src/commands/task-report-bug.js +5 -7
- package/dist/src/commands/task-run-driver.js +660 -73
- package/dist/src/commands/task.js +1542 -252
- package/dist/src/commands/test.js +3 -5
- package/dist/src/commands/workspace.js +4 -6
- package/dist/src/commands.js +3599 -1159
- package/dist/src/index.js +3646 -1215
- package/dist/src/launcher.js +5 -3
- package/dist/src/report-bug.js +3 -3
- package/dist/src/runner.js +5 -19
- package/package.json +6 -4
|
@@ -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) {
|
|
@@ -19,15 +17,15 @@ async function executeTest(context, args) {
|
|
|
19
17
|
const [command = "unit", ...rest] = args;
|
|
20
18
|
switch (command) {
|
|
21
19
|
case "unit":
|
|
22
|
-
requireNoExtraArgs(rest, "
|
|
20
|
+
requireNoExtraArgs(rest, "rig test unit");
|
|
23
21
|
await context.runCommand(["bun", "test", "tests/harness/", "--ignore", "tests/harness/e2e/**"]);
|
|
24
22
|
return { ok: true, group: "test", command };
|
|
25
23
|
case "e2e":
|
|
26
|
-
requireNoExtraArgs(rest, "
|
|
24
|
+
requireNoExtraArgs(rest, "rig test e2e");
|
|
27
25
|
await context.runCommand(["bun", "test", "tests/harness/e2e/"]);
|
|
28
26
|
return { ok: true, group: "test", command };
|
|
29
27
|
case "all":
|
|
30
|
-
requireNoExtraArgs(rest, "
|
|
28
|
+
requireNoExtraArgs(rest, "rig test all");
|
|
31
29
|
await context.runCommand(["bun", "test", "tests/harness/"]);
|
|
32
30
|
return { ok: true, group: "test", command };
|
|
33
31
|
default:
|
|
@@ -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) {
|
|
@@ -45,7 +43,7 @@ async function executeWorkspace(context, args) {
|
|
|
45
43
|
const [command = "summary", ...rest] = args;
|
|
46
44
|
switch (command) {
|
|
47
45
|
case "summary": {
|
|
48
|
-
requireNoExtraArgs(rest, "
|
|
46
|
+
requireNoExtraArgs(rest, "rig workspace summary");
|
|
49
47
|
const summary = await readWorkspaceSummary(context.projectRoot);
|
|
50
48
|
if (context.outputMode === "text") {
|
|
51
49
|
console.log("Workspace Summary");
|
|
@@ -70,7 +68,7 @@ Warnings:`);
|
|
|
70
68
|
return { ok: true, group: "workspace", command, details: summary };
|
|
71
69
|
}
|
|
72
70
|
case "topology": {
|
|
73
|
-
requireNoExtraArgs(rest, "
|
|
71
|
+
requireNoExtraArgs(rest, "rig workspace topology");
|
|
74
72
|
const topology = readWorkspaceTopology(context.projectRoot);
|
|
75
73
|
if (context.outputMode === "text") {
|
|
76
74
|
console.log(`Topology: ${topology.status}`);
|
|
@@ -83,7 +81,7 @@ Warnings:`);
|
|
|
83
81
|
return { ok: true, group: "workspace", command, details: topology };
|
|
84
82
|
}
|
|
85
83
|
case "remote-hosts": {
|
|
86
|
-
requireNoExtraArgs(rest, "
|
|
84
|
+
requireNoExtraArgs(rest, "rig workspace remote-hosts");
|
|
87
85
|
const fleet = readWorkspaceRemoteFleet(context.projectRoot);
|
|
88
86
|
if (context.outputMode === "text") {
|
|
89
87
|
console.log(`Remote Hosts: ${fleet.status}`);
|
|
@@ -98,7 +96,7 @@ Warnings:`);
|
|
|
98
96
|
let pending = serviceRest;
|
|
99
97
|
const services = takeOption(pending, "--service");
|
|
100
98
|
pending = services.rest;
|
|
101
|
-
requireNoExtraArgs(pending, "
|
|
99
|
+
requireNoExtraArgs(pending, "rig workspace service-fabric <status|up|verify|down> [--service <name>]");
|
|
102
100
|
if (action !== "status" && action !== "up" && action !== "verify" && action !== "down") {
|
|
103
101
|
throw new CliError2(`Unknown workspace service-fabric action: ${action}`);
|
|
104
102
|
}
|