@h-rig/contracts 0.0.6-alpha.103 → 0.0.6-alpha.119
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 +556 -50
- package/dist/index.mjs +556 -50
- package/dist/src/help-catalog.js +63 -50
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +556 -50
- package/dist/src/run-record.d.ts +45 -0
- package/dist/src/run-record.js +1 -0
- package/dist/src/run-session-journal.d.ts +36 -0
- package/dist/src/run-session-journal.js +89 -0
- package/dist/src/run-timeline.d.ts +9 -0
- package/dist/src/run-timeline.js +1360 -0
- package/dist/src/workflow-journal.d.ts +124 -0
- package/dist/src/workflow-journal.js +389 -0
- package/package.json +1 -1
package/dist/src/help-catalog.js
CHANGED
|
@@ -35,14 +35,15 @@ var TOP_LEVEL_SECTIONS = [
|
|
|
35
35
|
subtitle: "every run is an isolated, collaborative OMP session on the selected target",
|
|
36
36
|
commands: [
|
|
37
37
|
{
|
|
38
|
-
command: "rig run start <task|#issue|--next>",
|
|
38
|
+
command: "rig run [start] <task|#issue|--next>",
|
|
39
39
|
description: "Dispatch a run for a task (refuses if one is already active; --force overrides).",
|
|
40
40
|
usecase: "Kick off work on a specific issue, or let Rig pick the next ready one.",
|
|
41
41
|
examples: [
|
|
42
|
-
"rig run
|
|
43
|
-
"rig run
|
|
42
|
+
"rig run 204 # by task/issue id",
|
|
43
|
+
"rig run --next # next ready task by deps/priority",
|
|
44
|
+
"rig run --title 'Fix API' 204 # title override before the task ref",
|
|
44
45
|
"rig run start 204 --force # dispatch even if a run is already active",
|
|
45
|
-
"rig run start 204 --model opus-4.8
|
|
46
|
+
"rig run start 204 --model opus-4.8 --prompt 'focus tests'"
|
|
46
47
|
]
|
|
47
48
|
},
|
|
48
49
|
{
|
|
@@ -87,15 +88,27 @@ var TOP_LEVEL_SECTIONS = [
|
|
|
87
88
|
},
|
|
88
89
|
{
|
|
89
90
|
command: "rig run stop <id> [--reason <text>]",
|
|
90
|
-
description: "Request a graceful stop of a run.",
|
|
91
|
+
description: "Request a graceful stop of a run (terminal).",
|
|
91
92
|
usecase: "Halt a run that's off-track or no longer needed.",
|
|
92
93
|
examples: ["rig run stop 019ee11f", "rig run stop 019ee11f --reason 'superseded by #210'"]
|
|
93
94
|
},
|
|
94
95
|
{
|
|
95
|
-
command: "rig run
|
|
96
|
-
description: "
|
|
96
|
+
command: "rig run pause <id>",
|
|
97
|
+
description: "Park a live run (running \u2192 paused) without finalizing; the session stays attachable.",
|
|
98
|
+
usecase: "Hold an autonomous run mid-flight \u2014 free the agent without losing its place.",
|
|
99
|
+
examples: ["rig run pause 019ee11f"]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
command: "rig run resume <id>",
|
|
103
|
+
description: "Resume a paused run (paused \u2192 running); the agent continues. A dead/stale run is re-dispatched fresh instead.",
|
|
104
|
+
usecase: "Un-pause a parked run, or retry a finished one.",
|
|
105
|
+
examples: ["rig run resume 019ee11f"]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
command: "rig run restart <id>",
|
|
109
|
+
description: "Re-dispatch a task as a fresh run (new runId, clean runtime).",
|
|
97
110
|
usecase: "Retry a failed/stopped run from a clean slate.",
|
|
98
|
-
examples: ["rig run restart 019ee11f"
|
|
111
|
+
examples: ["rig run restart 019ee11f"]
|
|
99
112
|
},
|
|
100
113
|
{
|
|
101
114
|
command: "rig run timeline|replay <id>",
|
|
@@ -111,12 +124,12 @@ var TOP_LEVEL_SECTIONS = [
|
|
|
111
124
|
subtitle: "github-issues / files task sources feed dispatch",
|
|
112
125
|
commands: [
|
|
113
126
|
{
|
|
114
|
-
command: "rig task list [--search <t>] [--
|
|
127
|
+
command: "rig task list [--search <t>] [--state <open|closed>]",
|
|
115
128
|
description: "List tasks from the configured source, with filters.",
|
|
116
129
|
usecase: "Find what's available to dispatch; filter by text or lifecycle status.",
|
|
117
130
|
examples: [
|
|
118
131
|
"rig task list",
|
|
119
|
-
"rig task list --
|
|
132
|
+
"rig task list --state open",
|
|
120
133
|
"rig task list --search 'auth'"
|
|
121
134
|
]
|
|
122
135
|
},
|
|
@@ -128,10 +141,10 @@ var TOP_LEVEL_SECTIONS = [
|
|
|
128
141
|
examples: ["rig task show 204", "rig task info 204"]
|
|
129
142
|
},
|
|
130
143
|
{
|
|
131
|
-
command: "rig task scope|deps
|
|
132
|
-
description: "Inspect a task's scope globs
|
|
144
|
+
command: "rig task scope|deps --task <id>; rig task status",
|
|
145
|
+
description: "Inspect a task's scope globs/dependencies, or show project task status.",
|
|
133
146
|
usecase: "Check what files a run may touch / what's blocking it.",
|
|
134
|
-
examples: ["rig task scope 204", "rig task deps 204", "rig task status
|
|
147
|
+
examples: ["rig task scope --task 204", "rig task deps --task 204", "rig task status"]
|
|
135
148
|
},
|
|
136
149
|
{ command: "rig task lookup <term>", description: "Find a task by id/title substring.", examples: ["rig task lookup revoke-invite"] },
|
|
137
150
|
{ command: "rig task record \u2026", description: "Write task state/metadata back to the source.", usecase: "Programmatically update task lifecycle from scripts/CI." },
|
|
@@ -184,20 +197,19 @@ var TOP_LEVEL_SECTIONS = [
|
|
|
184
197
|
title: "Placement & target \u2014 local vs remote execution",
|
|
185
198
|
subtitle: "where runs execute; the backbone relay/registry is shared",
|
|
186
199
|
commands: [
|
|
187
|
-
{ command: "rig server status", description: "Show the selected placement (local/remote) and
|
|
200
|
+
{ command: "rig server status", description: "Show the selected placement (local/remote) and task source.", examples: ["rig server status"] },
|
|
188
201
|
{ command: "rig server list", description: "List configured server targets.", examples: ["rig server list"] },
|
|
189
202
|
{
|
|
190
|
-
command: "rig server use <alias>",
|
|
203
|
+
command: "rig server use <local|alias>",
|
|
191
204
|
description: "Select a server target (execution placement).",
|
|
192
205
|
usecase: "Switch a repo between local and a remote host for run execution.",
|
|
193
206
|
examples: ["rig server use local", "rig server use prod-box"]
|
|
194
207
|
},
|
|
195
208
|
{
|
|
196
|
-
command: "rig server add|remove <alias>",
|
|
209
|
+
command: "rig server add --alias <alias> --host <host> [--port <n>] | remove <alias>",
|
|
197
210
|
description: "Configure or remove a remote server target.",
|
|
198
|
-
examples: ["rig server add prod-box ubuntu@host", "rig server remove prod-box"]
|
|
211
|
+
examples: ["rig server add --alias prod-box --host ubuntu@host", "rig server remove prod-box"]
|
|
199
212
|
},
|
|
200
|
-
{ 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"] },
|
|
201
213
|
{
|
|
202
214
|
command: "rig remote <list|add|test|status|\u2026>",
|
|
203
215
|
description: "Lower-level remote endpoint management + run control over a remote.",
|
|
@@ -216,10 +228,10 @@ var TOP_LEVEL_SECTIONS = [
|
|
|
216
228
|
examples: ["rig inbox approvals", "rig inbox inputs"]
|
|
217
229
|
},
|
|
218
230
|
{
|
|
219
|
-
command: "rig inbox approve <id> | respond <id> <text>",
|
|
220
|
-
description: "
|
|
221
|
-
usecase: "
|
|
222
|
-
examples: ["rig inbox approve abc123", "rig inbox respond abc123 'use option B'"]
|
|
231
|
+
command: "rig inbox approve --run <id> --request <id> --decision approve|reject | respond --run <id> --request <id> --text <answer>",
|
|
232
|
+
description: "Attempt to resolve an approval or answer a user-input prompt; attach if one-shot delivery is unavailable.",
|
|
233
|
+
usecase: "Resolve pending requests from automation when the live run accepts out-of-band resolution.",
|
|
234
|
+
examples: ["rig inbox approve --run run1 --request abc123 --decision approve", "rig inbox respond --run run1 --request abc123 --text 'use option B'"]
|
|
223
235
|
},
|
|
224
236
|
{ command: "rig inbox watch", description: "Stream inbox changes live.", examples: ["rig inbox watch"] },
|
|
225
237
|
{ 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"] }
|
|
@@ -230,14 +242,14 @@ var TOP_LEVEL_SECTIONS = [
|
|
|
230
242
|
subtitle: "logs, artifacts, diffs, failure analysis",
|
|
231
243
|
commands: [
|
|
232
244
|
{
|
|
233
|
-
command: "rig inspect run-logs|logs --
|
|
234
|
-
description: "
|
|
245
|
+
command: "rig inspect run-logs --run <id> | logs --task <id>",
|
|
246
|
+
description: "Print run/session log lines.",
|
|
235
247
|
usecase: "Debug why a run failed or stalled.",
|
|
236
|
-
examples: ["rig inspect run-logs --run 019ee11f", "rig inspect logs --
|
|
248
|
+
examples: ["rig inspect run-logs --run 019ee11f", "rig inspect logs --task 204"]
|
|
237
249
|
},
|
|
238
250
|
{ command: "rig inspect runs", description: "List runs from on-disk runtime state.", examples: ["rig inspect runs"] },
|
|
239
|
-
{ command: "rig inspect artifact
|
|
240
|
-
{ command: "rig inspect diff|graph", description: "Run diff / task dependency graph.", examples: ["rig inspect diff", "rig inspect graph"] },
|
|
251
|
+
{ command: "rig inspect artifact --task <id> --file <name> | artifacts --task <id>", description: "Inspect a task/run's artifacts.", examples: ["rig inspect artifacts --task 204", "rig inspect artifact --task 204 --file task-result.json"] },
|
|
252
|
+
{ command: "rig inspect diff --task <id> | graph [--task <id>]", description: "Run diff / task dependency graph.", examples: ["rig inspect diff --task 204", "rig inspect graph --task 204"] },
|
|
241
253
|
{ 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"] },
|
|
242
254
|
{ command: "rig stats", description: "Aggregate run stats over a window.", examples: ["rig stats", "rig stats --since 7d"] }
|
|
243
255
|
]
|
|
@@ -278,15 +290,14 @@ var PRIMARY_GROUPS = [
|
|
|
278
290
|
{
|
|
279
291
|
name: "server",
|
|
280
292
|
summary: "Compatibility server selector; the product Server target screen lives in Rig Cockpit.",
|
|
281
|
-
usage: ["rig server <status|list|add|use|
|
|
293
|
+
usage: ["rig server <status|list|add|use|remove> [options]"],
|
|
282
294
|
commands: [
|
|
283
|
-
{ command: "status", description: "Legacy automation-only: show the selected
|
|
295
|
+
{ command: "status", description: "Legacy automation-only: show the selected placement and task source.", primary: true },
|
|
284
296
|
{ command: "use local", description: "Legacy automation-only: switch this repo to local execution placement.", primary: true },
|
|
285
|
-
{ command: "add <alias> <
|
|
297
|
+
{ command: "add --alias <alias> --host <host> [--port <n>]", description: "Legacy automation-only: save a remote execution target.", primary: true },
|
|
286
298
|
{ command: "use <alias>", description: "Legacy automation-only: select a remote execution target alias.", primary: true },
|
|
287
|
-
{ command: "
|
|
288
|
-
{ command: "list", description: "Legacy automation-only: list saved local/remote server aliases.", primary: true }
|
|
289
|
-
{ command: "start [--host <host>] [--port <n>]", description: "Legacy diagnostic-only: start a local rig-server process." }
|
|
299
|
+
{ command: "remove <alias>", description: "Legacy automation-only: remove a saved remote execution target.", primary: true },
|
|
300
|
+
{ command: "list", description: "Legacy automation-only: list saved local/remote server aliases.", primary: true }
|
|
290
301
|
],
|
|
291
302
|
examples: [
|
|
292
303
|
"rig server status # legacy automation only",
|
|
@@ -302,9 +313,9 @@ var PRIMARY_GROUPS = [
|
|
|
302
313
|
{ command: "list [--assignee <login|me|@me>] [--state open|closed]", description: "Legacy automation-only: list tasks from the configured source.", primary: true },
|
|
303
314
|
{ command: "next [filters]", description: "Legacy automation-only: render the next matching task card.", primary: true },
|
|
304
315
|
{ command: "show <id>|--task <id> [--raw]", description: "Legacy automation-only: show a task payload for scripts.", primary: true },
|
|
305
|
-
{ command: "run [#<issue>|<task-id>|--task <id>]", description: "Legacy/fenced: dispatch through the
|
|
316
|
+
{ command: "run [#<issue>|<task-id>|--task <id>] [--title <t>] [--model <m>] [--prompt <p>|--initial-prompt <p>]", description: "Legacy/fenced: dispatch through the CLI run path; not the task-detail dispatch path.", primary: true },
|
|
306
317
|
{ command: "ready", description: "Legacy automation-only: list task IDs that old dispatch can run now." },
|
|
307
|
-
{ command: "validate|verify [--task <id>]", description: "Legacy automation-only: run configured task checks/review gates." },
|
|
318
|
+
{ command: "validate|verify [--task <id>]", description: "Legacy automation-only: run configured task checks/review gates; failing checks exit nonzero." },
|
|
308
319
|
{ command: "details --task <id>", description: "Legacy automation-only: show full task info from the configured source." },
|
|
309
320
|
{ command: "reopen [--task <id> | --all] [--reason <text>]", description: "Legacy automation-only: reopen closed task(s) in the configured source." },
|
|
310
321
|
{ command: "artifacts|artifact-dir|artifact-write", description: "Legacy automation-only: inspect or write task artifacts." }
|
|
@@ -312,30 +323,30 @@ var PRIMARY_GROUPS = [
|
|
|
312
323
|
examples: [
|
|
313
324
|
"rig task list --assignee @me --limit 20 # legacy automation only",
|
|
314
325
|
"rig task show 123 --raw # legacy automation only",
|
|
315
|
-
"rig task run #123 --
|
|
326
|
+
"rig task run #123 --model opus-4.8 --prompt 'focus tests'"
|
|
316
327
|
],
|
|
317
328
|
next: ["For normal UX, run bare `rig`, use Cockpit Server/Tasks, then dispatch from Task detail."]
|
|
318
329
|
},
|
|
319
330
|
{
|
|
320
331
|
name: "run",
|
|
321
332
|
summary: "Legacy automation-only run-record inspection; OMP Runs/collab is the live surface.",
|
|
322
|
-
usage: ["rig run <list|status|show|steer|stop|resume|restart> [options]"],
|
|
333
|
+
usage: ["rig run [start] <task|#issue|--next> [--title <t>] [--model <m>] [--prompt <p>|--initial-prompt <p>]", "rig run <list|status|show|steer|stop|resume|restart> [options]"],
|
|
323
334
|
commands: [
|
|
335
|
+
{ command: "[start] <task|#issue|--next> [--title <t>] [--model <m>] [--prompt <p>|--initial-prompt <p>]", description: "Legacy automation-only: dispatch a task run through the unified run launcher.", primary: true },
|
|
324
336
|
{ command: "list", description: "Legacy automation-only: list old run records from selected server/local state.", primary: true },
|
|
325
337
|
{ command: "status", description: "Legacy automation-only: render old active/recent run-record groups; not live OMP status.", primary: true },
|
|
326
338
|
{ command: "show <id>|--run <id> [--raw]", description: "Legacy automation-only: show an old run-record payload for scripts.", primary: true },
|
|
327
339
|
{ command: "attach <run-id>|--run <id>", description: "Legacy/fenced: not the Rig Cockpit attach path; use OMP Runs or `rig join <link>`.", primary: true },
|
|
328
340
|
{ command: "steer <run-id> --message <text>", description: "Legacy automation-only: queue steering into an old live worker.", primary: true },
|
|
329
|
-
{ command: "stop
|
|
330
|
-
{ command: "resume
|
|
331
|
-
{ command: "restart
|
|
332
|
-
{ command: "timeline
|
|
333
|
-
{ command: "
|
|
334
|
-
{ command: "delete|cleanup", description: "Legacy automation-only: remove completed old run records/artifacts." }
|
|
341
|
+
{ command: "stop <run-id>|--run <id> [--reason <text>]", description: "Legacy automation-only: request stop for old run records.", primary: true },
|
|
342
|
+
{ command: "resume <run-id>|--run <id>", description: "Legacy automation-only: resume an interrupted old run record." },
|
|
343
|
+
{ command: "restart <run-id>|--run <id>", description: "Legacy automation-only: re-dispatch an old run from a clean runtime." },
|
|
344
|
+
{ command: "timeline|replay <run-id>|--run <id> [--with-session]", description: "Legacy automation-only: print an old consolidated run timeline." },
|
|
345
|
+
{ command: "delete|cleanup [<run-id>|--run <id>]", description: "Legacy automation-only: remove stale live-registry entries; journals are retained." }
|
|
335
346
|
],
|
|
336
347
|
examples: [
|
|
337
|
-
"rig run
|
|
338
|
-
"rig run
|
|
348
|
+
"rig run 204 # dispatch task 204",
|
|
349
|
+
"rig run --title 'Fix API' 204",
|
|
339
350
|
"rig run stop <run-id> # legacy automation only"
|
|
340
351
|
],
|
|
341
352
|
next: [
|
|
@@ -351,7 +362,7 @@ var PRIMARY_GROUPS = [
|
|
|
351
362
|
{ command: "approvals [--run <id>] [--task <id>]", description: "Legacy automation-only: list pending approval records.", primary: true },
|
|
352
363
|
{ command: "inputs [--run <id>] [--task <id>]", description: "Legacy automation-only: list pending user-input records.", primary: true },
|
|
353
364
|
{ command: "approve --run <id> --request <id> --decision approve|reject", description: "Legacy automation-only: resolve an approval record." },
|
|
354
|
-
{ command: "respond --run <id> --request <id> --answer
|
|
365
|
+
{ command: "respond --run <id> --request <id> --text <answer> | --answer <answer>", description: "Legacy automation-only: answer a user-input record." }
|
|
355
366
|
],
|
|
356
367
|
examples: [
|
|
357
368
|
"rig inbox approvals # legacy automation only"
|
|
@@ -373,15 +384,17 @@ var PRIMARY_GROUPS = [
|
|
|
373
384
|
{
|
|
374
385
|
name: "inspect",
|
|
375
386
|
summary: "Legacy automation-only artifact/log inspection; normal UX is OMP session history.",
|
|
376
|
-
usage: ["rig inspect <logs|artifacts|failures|graph|
|
|
387
|
+
usage: ["rig inspect <logs|artifact|artifacts|run-logs|runs|failures|graph|diff> [options]"],
|
|
377
388
|
commands: [
|
|
378
389
|
{ command: "logs --task <id>", description: "Legacy automation-only: latest old run log for a task.", primary: true },
|
|
390
|
+
{ command: "run-logs --run <id>", description: "Legacy automation-only: log lines for a specific run.", primary: true },
|
|
391
|
+
{ command: "runs", description: "Legacy automation-only: list projected runs." },
|
|
392
|
+
{ command: "artifact --task <id> --file <name>", description: "Legacy automation-only: preview one completion artifact." },
|
|
379
393
|
{ command: "artifacts --task <id>", description: "Legacy automation-only: list completion artifacts.", primary: true },
|
|
394
|
+
{ command: "diff --task <id>", description: "Legacy automation-only: list task changed files." },
|
|
380
395
|
{ command: "failures --task <id>", description: "Legacy automation-only: recorded failures for a task.", primary: true },
|
|
381
|
-
{ command: "graph", description: "Legacy automation-only: task dependency graph." }
|
|
382
|
-
{ command: "audit", description: "Legacy automation-only: controlled-command audit trail." }
|
|
396
|
+
{ command: "graph [--task <id>]", description: "Legacy automation-only: task dependency graph." }
|
|
383
397
|
],
|
|
384
|
-
examples: ["rig inspect logs --task <id> # legacy automation only"],
|
|
385
398
|
next: ["For normal UX, use the OMP Runs screen and OMP session history."]
|
|
386
399
|
},
|
|
387
400
|
{
|
package/dist/src/index.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export * from "./graph";
|
|
|
5
5
|
export * from "./runtime";
|
|
6
6
|
export * from "./run-journal";
|
|
7
7
|
export * from "./run-session-journal";
|
|
8
|
+
export * from "./workflow-journal";
|
|
9
|
+
export * from "./run-timeline";
|
|
10
|
+
export * from "./run-record";
|
|
8
11
|
export * from "./run-status";
|
|
9
12
|
export * from "./conversation";
|
|
10
13
|
export * from "./plugin";
|