@h-rig/contracts 0.0.6-alpha.100 → 0.0.6-alpha.103
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/index.cjs +215 -55
- package/dist/index.mjs +215 -55
- package/dist/src/help-catalog.js +215 -55
- package/dist/src/index.js +215 -55
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5513,109 +5513,269 @@ var TOP_LEVEL_SECTIONS = [
|
|
|
5513
5513
|
title: "Open Rig",
|
|
5514
5514
|
subtitle: "the cockpit \u2014 bare rig opens the Rig Cockpit inside an OMP collab session",
|
|
5515
5515
|
commands: [
|
|
5516
|
-
{
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5516
|
+
{
|
|
5517
|
+
command: "rig",
|
|
5518
|
+
description: "Open the Rig Cockpit (OMP collaboration substrate) for the current workspace.",
|
|
5519
|
+
usecase: "Day-to-day entry point: drive everything (tasks, runs, inbox) from the board.",
|
|
5520
|
+
examples: ["cd my-project && rig", "rig # in a repo with rig.config.ts"]
|
|
5521
|
+
},
|
|
5522
|
+
{
|
|
5523
|
+
command: "rig --workspace <path>",
|
|
5524
|
+
description: "Open the cockpit for another workspace instead of the current dir.",
|
|
5525
|
+
usecase: "Operate a project without cd-ing into it.",
|
|
5526
|
+
examples: ["rig --workspace ~/work/humanwork", "rig --workspace ../other-repo"]
|
|
5527
|
+
},
|
|
5528
|
+
{
|
|
5529
|
+
command: "rig join <link>",
|
|
5530
|
+
description: "Join an encrypted OMP collaborative session from another operator.",
|
|
5531
|
+
usecase: "Pair on a teammate's live run from the join link they shared.",
|
|
5532
|
+
examples: ["rig join where.rig-does.work/r/AbC123\u2026"]
|
|
5533
|
+
},
|
|
5534
|
+
{ command: "/rig", description: "From inside an OMP session, (re)open the Rig Cockpit screen.", usecase: "Jump back to the board after dropping into the raw agent session." },
|
|
5535
|
+
{ command: "rig --version", description: "Print the installed Rig CLI version.", examples: ["rig --version"] }
|
|
5521
5536
|
]
|
|
5522
5537
|
},
|
|
5523
5538
|
{
|
|
5524
5539
|
title: "Runs \u2014 dispatch & control task runs",
|
|
5525
5540
|
subtitle: "every run is an isolated, collaborative OMP session on the selected target",
|
|
5526
5541
|
commands: [
|
|
5527
|
-
{
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
{
|
|
5542
|
+
{
|
|
5543
|
+
command: "rig run start <task|#issue|--next>",
|
|
5544
|
+
description: "Dispatch a run for a task (refuses if one is already active; --force overrides).",
|
|
5545
|
+
usecase: "Kick off work on a specific issue, or let Rig pick the next ready one.",
|
|
5546
|
+
examples: [
|
|
5547
|
+
"rig run start 204 # by task/issue id",
|
|
5548
|
+
"rig run start --next # next ready task by deps/priority",
|
|
5549
|
+
"rig run start 204 --force # dispatch even if a run is already active",
|
|
5550
|
+
"rig run start 204 --model opus-4.8 # override the agent model"
|
|
5551
|
+
]
|
|
5552
|
+
},
|
|
5553
|
+
{
|
|
5554
|
+
command: "rig run start-parallel [--limit n]",
|
|
5555
|
+
description: "Dispatch all ready tasks concurrently up to the limit.",
|
|
5556
|
+
usecase: "Burn down a backlog of independent tasks at once.",
|
|
5557
|
+
examples: ["rig run start-parallel", "rig run start-parallel --limit 3"]
|
|
5558
|
+
},
|
|
5559
|
+
{
|
|
5560
|
+
command: "rig run start-serial",
|
|
5561
|
+
description: "Dispatch the next ready task; re-run to continue the serial queue.",
|
|
5562
|
+
usecase: "Work a queue one-at-a-time (e.g. dependent tasks, limited capacity).",
|
|
5563
|
+
examples: ["rig run start-serial"]
|
|
5564
|
+
},
|
|
5565
|
+
{
|
|
5566
|
+
command: "rig run list",
|
|
5567
|
+
description: "List every discoverable run (live registry + local) with status and links.",
|
|
5568
|
+
usecase: "See what's running anywhere (local + remote) and grab ids/join links.",
|
|
5569
|
+
examples: ["rig run list", "rig run list | grep running"]
|
|
5570
|
+
},
|
|
5571
|
+
{ command: "rig run status", description: "Active vs recent runs at a glance.", examples: ["rig run status"] },
|
|
5572
|
+
{
|
|
5573
|
+
command: "rig run show <id>",
|
|
5574
|
+
description: "Run card: status, task, PR, join link, pending approvals/inputs, error summary.",
|
|
5575
|
+
usecase: "Get the full picture of one run before attaching or steering.",
|
|
5576
|
+
examples: ["rig run show 019ee11f", "rig run show 019ee11f # copy the join link"]
|
|
5577
|
+
},
|
|
5578
|
+
{
|
|
5579
|
+
command: "rig run attach <id>",
|
|
5580
|
+
description: "Attach to a run's live OMP collab session (write access).",
|
|
5581
|
+
usecase: "Watch/drive a run interactively \u2014 type to the agent, see its work live.",
|
|
5582
|
+
examples: ["rig run attach 019ee11f"]
|
|
5583
|
+
},
|
|
5584
|
+
{
|
|
5585
|
+
command: "rig run steer <id> --message <text>",
|
|
5586
|
+
description: "Send a steering message into a running session (remote routes to its host).",
|
|
5587
|
+
usecase: "Course-correct an autonomous run without attaching.",
|
|
5588
|
+
examples: [
|
|
5589
|
+
"rig run steer 019ee11f --message 'focus on the API first'",
|
|
5590
|
+
"rig run steer 019ee11f --message 'stop and open the PR now'"
|
|
5591
|
+
]
|
|
5592
|
+
},
|
|
5593
|
+
{
|
|
5594
|
+
command: "rig run stop <id> [--reason <text>]",
|
|
5595
|
+
description: "Request a graceful stop of a run.",
|
|
5596
|
+
usecase: "Halt a run that's off-track or no longer needed.",
|
|
5597
|
+
examples: ["rig run stop 019ee11f", "rig run stop 019ee11f --reason 'superseded by #210'"]
|
|
5598
|
+
},
|
|
5599
|
+
{
|
|
5600
|
+
command: "rig run resume|restart <id>",
|
|
5601
|
+
description: "Re-dispatch a task (detached runs start fresh).",
|
|
5602
|
+
usecase: "Retry a failed/stopped run from a clean slate.",
|
|
5603
|
+
examples: ["rig run restart 019ee11f", "rig run resume 019ee11f"]
|
|
5604
|
+
},
|
|
5605
|
+
{
|
|
5606
|
+
command: "rig run timeline|replay <id>",
|
|
5607
|
+
description: "Inspect a run's folded timeline / replay its journal.",
|
|
5608
|
+
usecase: "Audit what an agent did, step by step, after the fact.",
|
|
5609
|
+
examples: ["rig run timeline 019ee11f", "rig run replay 019ee11f"]
|
|
5610
|
+
},
|
|
5611
|
+
{ command: "rig run cleanup", description: "Prune dead/stale run state.", usecase: "Clear out finished/orphaned run entries cluttering the board.", examples: ["rig run cleanup"] }
|
|
5539
5612
|
]
|
|
5540
5613
|
},
|
|
5541
5614
|
{
|
|
5542
5615
|
title: "Tasks \u2014 the configured task source",
|
|
5543
5616
|
subtitle: "github-issues / files task sources feed dispatch",
|
|
5544
5617
|
commands: [
|
|
5545
|
-
{
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5618
|
+
{
|
|
5619
|
+
command: "rig task list [--search <t>] [--status <s>]",
|
|
5620
|
+
description: "List tasks from the configured source, with filters.",
|
|
5621
|
+
usecase: "Find what's available to dispatch; filter by text or lifecycle status.",
|
|
5622
|
+
examples: [
|
|
5623
|
+
"rig task list",
|
|
5624
|
+
"rig task list --status open",
|
|
5625
|
+
"rig task list --search 'auth'"
|
|
5626
|
+
]
|
|
5627
|
+
},
|
|
5628
|
+
{ command: "rig task next", description: "Show the next ready task by dependency/priority.", usecase: "Decide what to run next without scanning the whole list.", examples: ["rig task next"] },
|
|
5629
|
+
{
|
|
5630
|
+
command: "rig task show|info <id>",
|
|
5631
|
+
description: "Task detail: title, body, status, labels, scope, deps, URL.",
|
|
5632
|
+
usecase: "Read the full issue before dispatching a run for it.",
|
|
5633
|
+
examples: ["rig task show 204", "rig task info 204"]
|
|
5634
|
+
},
|
|
5635
|
+
{
|
|
5636
|
+
command: "rig task scope|deps|status <id>",
|
|
5637
|
+
description: "Inspect a task's scope globs, dependencies, or lifecycle status.",
|
|
5638
|
+
usecase: "Check what files a run may touch / what's blocking it.",
|
|
5639
|
+
examples: ["rig task scope 204", "rig task deps 204", "rig task status 204"]
|
|
5640
|
+
},
|
|
5641
|
+
{ command: "rig task lookup <term>", description: "Find a task by id/title substring.", examples: ["rig task lookup revoke-invite"] },
|
|
5642
|
+
{ command: "rig task record \u2026", description: "Write task state/metadata back to the source.", usecase: "Programmatically update task lifecycle from scripts/CI." },
|
|
5643
|
+
{ command: "rig task artifacts <id>", description: "List/inspect a task's run artifacts.", examples: ["rig task artifacts 204"] },
|
|
5644
|
+
{ command: "rig triage", description: "Run the configured issueAnalysis pass once (schedule via cron/CI for continuous).", usecase: "Auto-classify/label/scope new issues in a batch.", examples: ["rig triage"] }
|
|
5553
5645
|
]
|
|
5554
5646
|
},
|
|
5555
5647
|
{
|
|
5556
5648
|
title: "Config \u2014 everything through rig.config.ts",
|
|
5557
5649
|
subtitle: "resolution: ambient env \u2192 rig.config.ts \u2192 computed default",
|
|
5558
5650
|
commands: [
|
|
5559
|
-
{
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5651
|
+
{
|
|
5652
|
+
command: "rig config get [<key>]",
|
|
5653
|
+
description: "Effective value(s) + which layer won (env / rig.config.ts / default).",
|
|
5654
|
+
usecase: "Debug why a value is what it is \u2014 see the winning layer.",
|
|
5655
|
+
examples: [
|
|
5656
|
+
"rig config get # all effective values + sources",
|
|
5657
|
+
"rig config get sshTarget # one key + winning layer",
|
|
5658
|
+
"rig config get relayUrl"
|
|
5659
|
+
]
|
|
5660
|
+
},
|
|
5661
|
+
{
|
|
5662
|
+
command: "rig config set <key> <value>",
|
|
5663
|
+
description: "Write an override (relayUrl/registryUrl/registrySecret/sshTarget or any RIG_*) into rig.config.ts.",
|
|
5664
|
+
usecase: "Persist a setting so it survives across runs without env vars.",
|
|
5665
|
+
examples: [
|
|
5666
|
+
"rig config set sshTarget ubuntu@host # remote placement",
|
|
5667
|
+
"rig config set relayUrl wss://my-relay",
|
|
5668
|
+
"rig config set RIG_ANYTHING value # any RIG_* knob"
|
|
5669
|
+
]
|
|
5670
|
+
},
|
|
5671
|
+
{
|
|
5672
|
+
command: "rig init",
|
|
5673
|
+
description: "Create rig.config.ts (project, task source, placement/sshTarget) interactively.",
|
|
5674
|
+
usecase: "First-time setup of a repo for Rig.",
|
|
5675
|
+
examples: ["rig init"]
|
|
5676
|
+
},
|
|
5677
|
+
{
|
|
5678
|
+
command: "runtime.server in rig.config.ts",
|
|
5679
|
+
description: "Backbone (relay/registry/secret) + remote placement (sshTarget); defaults under the hood.",
|
|
5680
|
+
usecase: "Pin a project's relay/registry and remote host in code.",
|
|
5681
|
+
examples: [
|
|
5682
|
+
"runtime: { server: { sshTarget: 'ubuntu@host' } } // remote placement",
|
|
5683
|
+
"runtime: { server: { relayUrl: 'wss://\u2026', registryUrl: 'https://\u2026/registry' } }"
|
|
5684
|
+
]
|
|
5685
|
+
}
|
|
5563
5686
|
]
|
|
5564
5687
|
},
|
|
5565
5688
|
{
|
|
5566
5689
|
title: "Placement & target \u2014 local vs remote execution",
|
|
5567
5690
|
subtitle: "where runs execute; the backbone relay/registry is shared",
|
|
5568
5691
|
commands: [
|
|
5569
|
-
{ command: "rig server status", description: "Show the selected placement (local/remote) and project-root link." },
|
|
5570
|
-
{ command: "rig server list", description: "List configured server targets." },
|
|
5571
|
-
{
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5692
|
+
{ command: "rig server status", description: "Show the selected placement (local/remote) and project-root link.", examples: ["rig server status"] },
|
|
5693
|
+
{ command: "rig server list", description: "List configured server targets.", examples: ["rig server list"] },
|
|
5694
|
+
{
|
|
5695
|
+
command: "rig server use <alias>",
|
|
5696
|
+
description: "Select a server target (execution placement).",
|
|
5697
|
+
usecase: "Switch a repo between local and a remote host for run execution.",
|
|
5698
|
+
examples: ["rig server use local", "rig server use prod-box"]
|
|
5699
|
+
},
|
|
5700
|
+
{
|
|
5701
|
+
command: "rig server add|remove <alias>",
|
|
5702
|
+
description: "Configure or remove a remote server target.",
|
|
5703
|
+
examples: ["rig server add prod-box ubuntu@host", "rig server remove prod-box"]
|
|
5704
|
+
},
|
|
5705
|
+
{ command: "rig server repair-link", description: "Repair the project-root link for the selected target.", usecase: "Fix a remote that shows unavailable after a host/checkout change.", examples: ["rig server repair-link"] },
|
|
5706
|
+
{
|
|
5707
|
+
command: "rig remote <list|add|test|status|\u2026>",
|
|
5708
|
+
description: "Lower-level remote endpoint management + run control over a remote.",
|
|
5709
|
+
examples: ["rig remote list", "rig remote test prod-box", "rig remote status"]
|
|
5710
|
+
}
|
|
5575
5711
|
]
|
|
5576
5712
|
},
|
|
5577
5713
|
{
|
|
5578
5714
|
title: "Inbox & Doctor \u2014 approvals and health",
|
|
5579
5715
|
subtitle: "answer pending workflow entries; probe setup",
|
|
5580
5716
|
commands: [
|
|
5581
|
-
{
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5717
|
+
{
|
|
5718
|
+
command: "rig inbox approvals|inputs",
|
|
5719
|
+
description: "List pending approval / user-input workflow entries.",
|
|
5720
|
+
usecase: "See what a run is blocked on waiting for you.",
|
|
5721
|
+
examples: ["rig inbox approvals", "rig inbox inputs"]
|
|
5722
|
+
},
|
|
5723
|
+
{
|
|
5724
|
+
command: "rig inbox approve <id> | respond <id> <text>",
|
|
5725
|
+
description: "Approve an entry or answer a user-input prompt.",
|
|
5726
|
+
usecase: "Unblock a paused run from the CLI.",
|
|
5727
|
+
examples: ["rig inbox approve abc123", "rig inbox respond abc123 'use option B'"]
|
|
5728
|
+
},
|
|
5729
|
+
{ command: "rig inbox watch", description: "Stream inbox changes live.", examples: ["rig inbox watch"] },
|
|
5730
|
+
{ command: "rig doctor", description: "Cheap health checks: session discovery, registry, selected target, workflow entries.", usecase: "First thing to run when something seems off.", examples: ["rig doctor"] }
|
|
5585
5731
|
]
|
|
5586
5732
|
},
|
|
5587
5733
|
{
|
|
5588
5734
|
title: "Inspect & stats \u2014 observability",
|
|
5589
5735
|
subtitle: "logs, artifacts, diffs, failure analysis",
|
|
5590
5736
|
commands: [
|
|
5591
|
-
{
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5737
|
+
{
|
|
5738
|
+
command: "rig inspect run-logs|logs --run <id>",
|
|
5739
|
+
description: "Tail a run's process / session logs.",
|
|
5740
|
+
usecase: "Debug why a run failed or stalled.",
|
|
5741
|
+
examples: ["rig inspect run-logs --run 019ee11f", "rig inspect logs --run 019ee11f"]
|
|
5742
|
+
},
|
|
5743
|
+
{ command: "rig inspect runs", description: "List runs from on-disk runtime state.", examples: ["rig inspect runs"] },
|
|
5744
|
+
{ command: "rig inspect artifact(s) --task <id>", description: "Inspect a task/run's artifacts.", examples: ["rig inspect artifacts --task 204"] },
|
|
5745
|
+
{ command: "rig inspect diff|graph", description: "Run diff / task dependency graph.", examples: ["rig inspect diff", "rig inspect graph"] },
|
|
5746
|
+
{ command: "rig inspect failures --task <id>", description: "Classified failure diagnostics for a task's runs.", usecase: "Triage repeated failures on one task.", examples: ["rig inspect failures --task 204"] },
|
|
5747
|
+
{ command: "rig stats", description: "Aggregate run stats over a window.", examples: ["rig stats", "rig stats --since 7d"] }
|
|
5597
5748
|
]
|
|
5598
5749
|
},
|
|
5599
5750
|
{
|
|
5600
5751
|
title: "Setup & integrations",
|
|
5601
5752
|
subtitle: "initialize, authenticate, and wire the project",
|
|
5602
5753
|
commands: [
|
|
5603
|
-
{ command: "rig init", description: "Set up a new repo: rig.config.ts, task source, placement, state." },
|
|
5604
|
-
{ command: "rig setup", description: "Run/repair the full setup wizard (repo, placement, GitHub auth, labels, verify)." },
|
|
5605
|
-
{
|
|
5606
|
-
|
|
5607
|
-
|
|
5754
|
+
{ command: "rig init", description: "Set up a new repo: rig.config.ts, task source, placement, state.", examples: ["rig init"] },
|
|
5755
|
+
{ command: "rig setup", description: "Run/repair the full setup wizard (repo, placement, GitHub auth, labels, verify).", usecase: "Re-run when auth/labels/placement drift or after onboarding.", examples: ["rig setup"] },
|
|
5756
|
+
{
|
|
5757
|
+
command: "rig github status|token|import-gh",
|
|
5758
|
+
description: "GitHub auth status, token management, issue import.",
|
|
5759
|
+
examples: ["rig github status", "rig github import-gh"]
|
|
5760
|
+
},
|
|
5761
|
+
{ command: "rig repo|git \u2026", description: "Repo/source helpers (clone, credentials, git ops).", examples: ["rig repo status", "rig git \u2026"] },
|
|
5762
|
+
{ command: "rig review", description: "Inspect or change the completion-review (Greptile) gate policy.", examples: ["rig review"] }
|
|
5608
5763
|
]
|
|
5609
5764
|
},
|
|
5610
5765
|
{
|
|
5611
5766
|
title: "Extend & build",
|
|
5612
5767
|
subtitle: "plugins, OMP/Pi packages, binaries, workspaces",
|
|
5613
5768
|
commands: [
|
|
5614
|
-
{ command: "rig plugin list|validate|run", description: "Inspect and exercise plugin-contributed channels." },
|
|
5615
|
-
{ command: "rig pi list|add|remove|search", description: "Manage OMP/Pi extension packages for sessions/workers." },
|
|
5616
|
-
{
|
|
5617
|
-
|
|
5618
|
-
|
|
5769
|
+
{ command: "rig plugin list|validate|run", description: "Inspect and exercise plugin-contributed channels.", examples: ["rig plugin list", "rig plugin validate", "rig plugin run <name>"] },
|
|
5770
|
+
{ command: "rig pi list|add|remove|search", description: "Manage OMP/Pi extension packages for sessions/workers.", examples: ["rig pi list", "rig pi add <pkg>", "rig pi search <term>"] },
|
|
5771
|
+
{
|
|
5772
|
+
command: "rig dist build|install",
|
|
5773
|
+
description: "Build/install the self-contained rig binary distribution.",
|
|
5774
|
+
usecase: "Produce/refresh the single-file rig binary.",
|
|
5775
|
+
examples: ["rig dist build", "rig dist install"]
|
|
5776
|
+
},
|
|
5777
|
+
{ command: "rig workspace summary|topology", description: "Multi-root workspace inspection.", examples: ["rig workspace summary", "rig workspace topology"] },
|
|
5778
|
+
{ command: "rig.config.ts plugins / runtime.pi.packages", description: "Declare task sources, validators, hooks, skills, roles + team OMP/Pi packages.", examples: ["plugins: [standard()]", "runtime: { pi: { packages: ['@me/my-ext'] } }"] }
|
|
5619
5779
|
]
|
|
5620
5780
|
}
|
|
5621
5781
|
];
|