@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.mjs CHANGED
@@ -4956,109 +4956,269 @@ var TOP_LEVEL_SECTIONS = [
4956
4956
  title: "Open Rig",
4957
4957
  subtitle: "the cockpit \u2014 bare rig opens the Rig Cockpit inside an OMP collab session",
4958
4958
  commands: [
4959
- { command: "rig", description: "Open the Rig Cockpit (OMP collaboration substrate) for the current workspace." },
4960
- { command: "rig --workspace <path>", description: "Open the cockpit for another workspace instead of the current dir." },
4961
- { command: "rig join <link>", description: "Join an encrypted OMP collaborative session from another operator." },
4962
- { command: "/rig", description: "From inside an OMP session, (re)open the Rig Cockpit screen." },
4963
- { command: "rig --version", description: "Print the installed Rig CLI version." }
4959
+ {
4960
+ command: "rig",
4961
+ description: "Open the Rig Cockpit (OMP collaboration substrate) for the current workspace.",
4962
+ usecase: "Day-to-day entry point: drive everything (tasks, runs, inbox) from the board.",
4963
+ examples: ["cd my-project && rig", "rig # in a repo with rig.config.ts"]
4964
+ },
4965
+ {
4966
+ command: "rig --workspace <path>",
4967
+ description: "Open the cockpit for another workspace instead of the current dir.",
4968
+ usecase: "Operate a project without cd-ing into it.",
4969
+ examples: ["rig --workspace ~/work/humanwork", "rig --workspace ../other-repo"]
4970
+ },
4971
+ {
4972
+ command: "rig join <link>",
4973
+ description: "Join an encrypted OMP collaborative session from another operator.",
4974
+ usecase: "Pair on a teammate's live run from the join link they shared.",
4975
+ examples: ["rig join where.rig-does.work/r/AbC123\u2026"]
4976
+ },
4977
+ { 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." },
4978
+ { command: "rig --version", description: "Print the installed Rig CLI version.", examples: ["rig --version"] }
4964
4979
  ]
4965
4980
  },
4966
4981
  {
4967
4982
  title: "Runs \u2014 dispatch & control task runs",
4968
4983
  subtitle: "every run is an isolated, collaborative OMP session on the selected target",
4969
4984
  commands: [
4970
- { command: "rig run start <task|#issue|--next>", description: "Dispatch a run for a task (refuses if one is already active; --force overrides)." },
4971
- { command: "rig run start-parallel [--limit n]", description: "Dispatch all ready tasks concurrently up to the limit." },
4972
- { command: "rig run start-serial", description: "Dispatch the next ready task; re-run to continue the serial queue." },
4973
- { command: "rig run list", description: "List every discoverable run (live registry + local) with status and links." },
4974
- { command: "rig run status", description: "Active vs recent runs at a glance." },
4975
- { command: "rig run show <id>", description: "Run card: status, task, PR, join link, pending approvals/inputs, error summary." },
4976
- { command: "rig run attach <id>", description: "Attach to a run's live OMP collab session (write access)." },
4977
- { command: "rig run steer <id> --message <text>", description: "Send a steering message into a running session (remote routes to its host)." },
4978
- { command: "rig run stop <id> [--reason <text>]", description: "Request a graceful stop of a run." },
4979
- { command: "rig run resume|restart <id>", description: "Re-dispatch a task (detached runs start fresh)." },
4980
- { command: "rig run timeline|replay <id>", description: "Inspect a run's folded timeline / replay its journal." },
4981
- { command: "rig run cleanup", description: "Prune dead/stale run state." }
4985
+ {
4986
+ command: "rig run start <task|#issue|--next>",
4987
+ description: "Dispatch a run for a task (refuses if one is already active; --force overrides).",
4988
+ usecase: "Kick off work on a specific issue, or let Rig pick the next ready one.",
4989
+ examples: [
4990
+ "rig run start 204 # by task/issue id",
4991
+ "rig run start --next # next ready task by deps/priority",
4992
+ "rig run start 204 --force # dispatch even if a run is already active",
4993
+ "rig run start 204 --model opus-4.8 # override the agent model"
4994
+ ]
4995
+ },
4996
+ {
4997
+ command: "rig run start-parallel [--limit n]",
4998
+ description: "Dispatch all ready tasks concurrently up to the limit.",
4999
+ usecase: "Burn down a backlog of independent tasks at once.",
5000
+ examples: ["rig run start-parallel", "rig run start-parallel --limit 3"]
5001
+ },
5002
+ {
5003
+ command: "rig run start-serial",
5004
+ description: "Dispatch the next ready task; re-run to continue the serial queue.",
5005
+ usecase: "Work a queue one-at-a-time (e.g. dependent tasks, limited capacity).",
5006
+ examples: ["rig run start-serial"]
5007
+ },
5008
+ {
5009
+ command: "rig run list",
5010
+ description: "List every discoverable run (live registry + local) with status and links.",
5011
+ usecase: "See what's running anywhere (local + remote) and grab ids/join links.",
5012
+ examples: ["rig run list", "rig run list | grep running"]
5013
+ },
5014
+ { command: "rig run status", description: "Active vs recent runs at a glance.", examples: ["rig run status"] },
5015
+ {
5016
+ command: "rig run show <id>",
5017
+ description: "Run card: status, task, PR, join link, pending approvals/inputs, error summary.",
5018
+ usecase: "Get the full picture of one run before attaching or steering.",
5019
+ examples: ["rig run show 019ee11f", "rig run show 019ee11f # copy the join link"]
5020
+ },
5021
+ {
5022
+ command: "rig run attach <id>",
5023
+ description: "Attach to a run's live OMP collab session (write access).",
5024
+ usecase: "Watch/drive a run interactively \u2014 type to the agent, see its work live.",
5025
+ examples: ["rig run attach 019ee11f"]
5026
+ },
5027
+ {
5028
+ command: "rig run steer <id> --message <text>",
5029
+ description: "Send a steering message into a running session (remote routes to its host).",
5030
+ usecase: "Course-correct an autonomous run without attaching.",
5031
+ examples: [
5032
+ "rig run steer 019ee11f --message 'focus on the API first'",
5033
+ "rig run steer 019ee11f --message 'stop and open the PR now'"
5034
+ ]
5035
+ },
5036
+ {
5037
+ command: "rig run stop <id> [--reason <text>]",
5038
+ description: "Request a graceful stop of a run.",
5039
+ usecase: "Halt a run that's off-track or no longer needed.",
5040
+ examples: ["rig run stop 019ee11f", "rig run stop 019ee11f --reason 'superseded by #210'"]
5041
+ },
5042
+ {
5043
+ command: "rig run resume|restart <id>",
5044
+ description: "Re-dispatch a task (detached runs start fresh).",
5045
+ usecase: "Retry a failed/stopped run from a clean slate.",
5046
+ examples: ["rig run restart 019ee11f", "rig run resume 019ee11f"]
5047
+ },
5048
+ {
5049
+ command: "rig run timeline|replay <id>",
5050
+ description: "Inspect a run's folded timeline / replay its journal.",
5051
+ usecase: "Audit what an agent did, step by step, after the fact.",
5052
+ examples: ["rig run timeline 019ee11f", "rig run replay 019ee11f"]
5053
+ },
5054
+ { command: "rig run cleanup", description: "Prune dead/stale run state.", usecase: "Clear out finished/orphaned run entries cluttering the board.", examples: ["rig run cleanup"] }
4982
5055
  ]
4983
5056
  },
4984
5057
  {
4985
5058
  title: "Tasks \u2014 the configured task source",
4986
5059
  subtitle: "github-issues / files task sources feed dispatch",
4987
5060
  commands: [
4988
- { command: "rig task list [--search <t>] [--status <s>]", description: "List tasks from the configured source, with filters." },
4989
- { command: "rig task next", description: "Show the next ready task by dependency/priority." },
4990
- { command: "rig task show|info <id>", description: "Task detail: title, body, status, labels, scope, deps, URL." },
4991
- { command: "rig task scope|deps|status <id>", description: "Inspect a task's scope globs, dependencies, or lifecycle status." },
4992
- { command: "rig task lookup <term>", description: "Find a task by id/title substring." },
4993
- { command: "rig task record \u2026", description: "Write task state/metadata back to the source." },
4994
- { command: "rig task artifacts <id>", description: "List/inspect a task's run artifacts." },
4995
- { command: "rig triage", description: "Run the configured issueAnalysis pass once (schedule via cron/CI for continuous)." }
5061
+ {
5062
+ command: "rig task list [--search <t>] [--status <s>]",
5063
+ description: "List tasks from the configured source, with filters.",
5064
+ usecase: "Find what's available to dispatch; filter by text or lifecycle status.",
5065
+ examples: [
5066
+ "rig task list",
5067
+ "rig task list --status open",
5068
+ "rig task list --search 'auth'"
5069
+ ]
5070
+ },
5071
+ { 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"] },
5072
+ {
5073
+ command: "rig task show|info <id>",
5074
+ description: "Task detail: title, body, status, labels, scope, deps, URL.",
5075
+ usecase: "Read the full issue before dispatching a run for it.",
5076
+ examples: ["rig task show 204", "rig task info 204"]
5077
+ },
5078
+ {
5079
+ command: "rig task scope|deps|status <id>",
5080
+ description: "Inspect a task's scope globs, dependencies, or lifecycle status.",
5081
+ usecase: "Check what files a run may touch / what's blocking it.",
5082
+ examples: ["rig task scope 204", "rig task deps 204", "rig task status 204"]
5083
+ },
5084
+ { command: "rig task lookup <term>", description: "Find a task by id/title substring.", examples: ["rig task lookup revoke-invite"] },
5085
+ { command: "rig task record \u2026", description: "Write task state/metadata back to the source.", usecase: "Programmatically update task lifecycle from scripts/CI." },
5086
+ { command: "rig task artifacts <id>", description: "List/inspect a task's run artifacts.", examples: ["rig task artifacts 204"] },
5087
+ { 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"] }
4996
5088
  ]
4997
5089
  },
4998
5090
  {
4999
5091
  title: "Config \u2014 everything through rig.config.ts",
5000
5092
  subtitle: "resolution: ambient env \u2192 rig.config.ts \u2192 computed default",
5001
5093
  commands: [
5002
- { command: "rig config get [<key>]", description: "Effective value(s) + which layer won (env / rig.config.ts / default)." },
5003
- { command: "rig config set <key> <value>", description: "Write an override (relayUrl/registryUrl/registrySecret/sshTarget or any RIG_*) into rig.config.ts." },
5004
- { command: "rig init", description: "Create rig.config.ts (project, task source, placement/sshTarget) interactively." },
5005
- { command: "runtime.server in rig.config.ts", description: "Backbone (relay/registry/secret) + remote placement (sshTarget); defaults under the hood." }
5094
+ {
5095
+ command: "rig config get [<key>]",
5096
+ description: "Effective value(s) + which layer won (env / rig.config.ts / default).",
5097
+ usecase: "Debug why a value is what it is \u2014 see the winning layer.",
5098
+ examples: [
5099
+ "rig config get # all effective values + sources",
5100
+ "rig config get sshTarget # one key + winning layer",
5101
+ "rig config get relayUrl"
5102
+ ]
5103
+ },
5104
+ {
5105
+ command: "rig config set <key> <value>",
5106
+ description: "Write an override (relayUrl/registryUrl/registrySecret/sshTarget or any RIG_*) into rig.config.ts.",
5107
+ usecase: "Persist a setting so it survives across runs without env vars.",
5108
+ examples: [
5109
+ "rig config set sshTarget ubuntu@host # remote placement",
5110
+ "rig config set relayUrl wss://my-relay",
5111
+ "rig config set RIG_ANYTHING value # any RIG_* knob"
5112
+ ]
5113
+ },
5114
+ {
5115
+ command: "rig init",
5116
+ description: "Create rig.config.ts (project, task source, placement/sshTarget) interactively.",
5117
+ usecase: "First-time setup of a repo for Rig.",
5118
+ examples: ["rig init"]
5119
+ },
5120
+ {
5121
+ command: "runtime.server in rig.config.ts",
5122
+ description: "Backbone (relay/registry/secret) + remote placement (sshTarget); defaults under the hood.",
5123
+ usecase: "Pin a project's relay/registry and remote host in code.",
5124
+ examples: [
5125
+ "runtime: { server: { sshTarget: 'ubuntu@host' } } // remote placement",
5126
+ "runtime: { server: { relayUrl: 'wss://\u2026', registryUrl: 'https://\u2026/registry' } }"
5127
+ ]
5128
+ }
5006
5129
  ]
5007
5130
  },
5008
5131
  {
5009
5132
  title: "Placement & target \u2014 local vs remote execution",
5010
5133
  subtitle: "where runs execute; the backbone relay/registry is shared",
5011
5134
  commands: [
5012
- { command: "rig server status", description: "Show the selected placement (local/remote) and project-root link." },
5013
- { command: "rig server list", description: "List configured server targets." },
5014
- { command: "rig server use <alias>", description: "Select a server target (execution placement)." },
5015
- { command: "rig server add|remove <alias>", description: "Configure or remove a remote server target." },
5016
- { command: "rig server repair-link", description: "Repair the project-root link for the selected target." },
5017
- { command: "rig remote <list|add|test|status|\u2026>", description: "Lower-level remote endpoint management + run control over a remote." }
5135
+ { command: "rig server status", description: "Show the selected placement (local/remote) and project-root link.", examples: ["rig server status"] },
5136
+ { command: "rig server list", description: "List configured server targets.", examples: ["rig server list"] },
5137
+ {
5138
+ command: "rig server use <alias>",
5139
+ description: "Select a server target (execution placement).",
5140
+ usecase: "Switch a repo between local and a remote host for run execution.",
5141
+ examples: ["rig server use local", "rig server use prod-box"]
5142
+ },
5143
+ {
5144
+ command: "rig server add|remove <alias>",
5145
+ description: "Configure or remove a remote server target.",
5146
+ examples: ["rig server add prod-box ubuntu@host", "rig server remove prod-box"]
5147
+ },
5148
+ { 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"] },
5149
+ {
5150
+ command: "rig remote <list|add|test|status|\u2026>",
5151
+ description: "Lower-level remote endpoint management + run control over a remote.",
5152
+ examples: ["rig remote list", "rig remote test prod-box", "rig remote status"]
5153
+ }
5018
5154
  ]
5019
5155
  },
5020
5156
  {
5021
5157
  title: "Inbox & Doctor \u2014 approvals and health",
5022
5158
  subtitle: "answer pending workflow entries; probe setup",
5023
5159
  commands: [
5024
- { command: "rig inbox approvals|inputs", description: "List pending approval / user-input workflow entries." },
5025
- { command: "rig inbox approve <id> | respond <id> <text>", description: "Approve an entry or answer a user-input prompt." },
5026
- { command: "rig inbox watch", description: "Stream inbox changes live." },
5027
- { command: "rig doctor", description: "Cheap health checks: session discovery, registry, selected target, workflow entries." }
5160
+ {
5161
+ command: "rig inbox approvals|inputs",
5162
+ description: "List pending approval / user-input workflow entries.",
5163
+ usecase: "See what a run is blocked on waiting for you.",
5164
+ examples: ["rig inbox approvals", "rig inbox inputs"]
5165
+ },
5166
+ {
5167
+ command: "rig inbox approve <id> | respond <id> <text>",
5168
+ description: "Approve an entry or answer a user-input prompt.",
5169
+ usecase: "Unblock a paused run from the CLI.",
5170
+ examples: ["rig inbox approve abc123", "rig inbox respond abc123 'use option B'"]
5171
+ },
5172
+ { command: "rig inbox watch", description: "Stream inbox changes live.", examples: ["rig inbox watch"] },
5173
+ { 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"] }
5028
5174
  ]
5029
5175
  },
5030
5176
  {
5031
5177
  title: "Inspect & stats \u2014 observability",
5032
5178
  subtitle: "logs, artifacts, diffs, failure analysis",
5033
5179
  commands: [
5034
- { command: "rig inspect run-logs|logs --run <id>", description: "Tail a run's process / session logs." },
5035
- { command: "rig inspect runs", description: "List runs from on-disk runtime state." },
5036
- { command: "rig inspect artifact(s) --task <id>", description: "Inspect a task/run's artifacts." },
5037
- { command: "rig inspect diff|graph", description: "Run diff / task dependency graph." },
5038
- { command: "rig inspect failures --task <id>", description: "Classified failure diagnostics for a task's runs." },
5039
- { command: "rig stats", description: "Aggregate run stats over a window." }
5180
+ {
5181
+ command: "rig inspect run-logs|logs --run <id>",
5182
+ description: "Tail a run's process / session logs.",
5183
+ usecase: "Debug why a run failed or stalled.",
5184
+ examples: ["rig inspect run-logs --run 019ee11f", "rig inspect logs --run 019ee11f"]
5185
+ },
5186
+ { command: "rig inspect runs", description: "List runs from on-disk runtime state.", examples: ["rig inspect runs"] },
5187
+ { command: "rig inspect artifact(s) --task <id>", description: "Inspect a task/run's artifacts.", examples: ["rig inspect artifacts --task 204"] },
5188
+ { command: "rig inspect diff|graph", description: "Run diff / task dependency graph.", examples: ["rig inspect diff", "rig inspect graph"] },
5189
+ { 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"] },
5190
+ { command: "rig stats", description: "Aggregate run stats over a window.", examples: ["rig stats", "rig stats --since 7d"] }
5040
5191
  ]
5041
5192
  },
5042
5193
  {
5043
5194
  title: "Setup & integrations",
5044
5195
  subtitle: "initialize, authenticate, and wire the project",
5045
5196
  commands: [
5046
- { command: "rig init", description: "Set up a new repo: rig.config.ts, task source, placement, state." },
5047
- { command: "rig setup", description: "Run/repair the full setup wizard (repo, placement, GitHub auth, labels, verify)." },
5048
- { command: "rig github status|token|import-gh", description: "GitHub auth status, token management, issue import." },
5049
- { command: "rig repo|git \u2026", description: "Repo/source helpers (clone, credentials, git ops)." },
5050
- { command: "rig review", description: "Inspect or change the completion-review (Greptile) gate policy." }
5197
+ { command: "rig init", description: "Set up a new repo: rig.config.ts, task source, placement, state.", examples: ["rig init"] },
5198
+ { 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"] },
5199
+ {
5200
+ command: "rig github status|token|import-gh",
5201
+ description: "GitHub auth status, token management, issue import.",
5202
+ examples: ["rig github status", "rig github import-gh"]
5203
+ },
5204
+ { command: "rig repo|git \u2026", description: "Repo/source helpers (clone, credentials, git ops).", examples: ["rig repo status", "rig git \u2026"] },
5205
+ { command: "rig review", description: "Inspect or change the completion-review (Greptile) gate policy.", examples: ["rig review"] }
5051
5206
  ]
5052
5207
  },
5053
5208
  {
5054
5209
  title: "Extend & build",
5055
5210
  subtitle: "plugins, OMP/Pi packages, binaries, workspaces",
5056
5211
  commands: [
5057
- { command: "rig plugin list|validate|run", description: "Inspect and exercise plugin-contributed channels." },
5058
- { command: "rig pi list|add|remove|search", description: "Manage OMP/Pi extension packages for sessions/workers." },
5059
- { command: "rig dist build|install", description: "Build/install the self-contained rig binary distribution." },
5060
- { command: "rig workspace summary|topology", description: "Multi-root workspace inspection." },
5061
- { command: "rig.config.ts plugins / runtime.pi.packages", description: "Declare task sources, validators, hooks, skills, roles + team OMP/Pi packages." }
5212
+ { command: "rig plugin list|validate|run", description: "Inspect and exercise plugin-contributed channels.", examples: ["rig plugin list", "rig plugin validate", "rig plugin run <name>"] },
5213
+ { 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>"] },
5214
+ {
5215
+ command: "rig dist build|install",
5216
+ description: "Build/install the self-contained rig binary distribution.",
5217
+ usecase: "Produce/refresh the single-file rig binary.",
5218
+ examples: ["rig dist build", "rig dist install"]
5219
+ },
5220
+ { command: "rig workspace summary|topology", description: "Multi-root workspace inspection.", examples: ["rig workspace summary", "rig workspace topology"] },
5221
+ { 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'] } }"] }
5062
5222
  ]
5063
5223
  }
5064
5224
  ];