@h-rig/cli 0.0.6-alpha.27 → 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.
Files changed (42) hide show
  1. package/dist/bin/rig.js +1505 -907
  2. package/dist/src/commands/_cli-format.js +211 -6
  3. package/dist/src/commands/_connection-state.js +1 -3
  4. package/dist/src/commands/_doctor-checks.js +3 -5
  5. package/dist/src/commands/_help-catalog.js +251 -66
  6. package/dist/src/commands/_operator-view.js +1 -3
  7. package/dist/src/commands/_parsers.js +0 -2
  8. package/dist/src/commands/_pi-frontend.js +1 -3
  9. package/dist/src/commands/_pi-worker-bridge-extension.js +1 -3
  10. package/dist/src/commands/_policy.js +0 -2
  11. package/dist/src/commands/_preflight.js +2 -4
  12. package/dist/src/commands/_run-driver-helpers.js +0 -2
  13. package/dist/src/commands/_server-client.js +1 -3
  14. package/dist/src/commands/_snapshot-upload.js +1 -3
  15. package/dist/src/commands/agent.js +7 -9
  16. package/dist/src/commands/browser.js +4 -6
  17. package/dist/src/commands/connect.js +5 -6
  18. package/dist/src/commands/dist.js +4 -6
  19. package/dist/src/commands/doctor.js +3 -5
  20. package/dist/src/commands/github.js +1 -3
  21. package/dist/src/commands/inbox.js +351 -31
  22. package/dist/src/commands/init.js +3 -5
  23. package/dist/src/commands/inspect.js +10 -12
  24. package/dist/src/commands/inspector.js +2 -4
  25. package/dist/src/commands/plugin.js +76 -22
  26. package/dist/src/commands/profile-and-review.js +8 -10
  27. package/dist/src/commands/queue.js +1 -3
  28. package/dist/src/commands/remote.js +18 -20
  29. package/dist/src/commands/repo-git-harness.js +6 -8
  30. package/dist/src/commands/run.js +159 -41
  31. package/dist/src/commands/server.js +6 -7
  32. package/dist/src/commands/setup.js +7 -15
  33. package/dist/src/commands/task-report-bug.js +5 -7
  34. package/dist/src/commands/task-run-driver.js +1 -3
  35. package/dist/src/commands/task.js +483 -50
  36. package/dist/src/commands/test.js +3 -5
  37. package/dist/src/commands/workspace.js +4 -6
  38. package/dist/src/commands.js +1508 -901
  39. package/dist/src/index.js +1511 -916
  40. package/dist/src/report-bug.js +3 -3
  41. package/dist/src/runner.js +2 -17
  42. package/package.json +6 -6
@@ -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, "bun run rig test unit");
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, "bun run rig test e2e");
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, "bun run rig test all");
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, "bun run rig workspace summary");
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, "bun run rig workspace topology");
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, "bun run rig workspace remote-hosts");
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, "bun run rig workspace service-fabric <status|up|verify|down> [--service <name>]");
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
  }