patchrelay 0.9.0 → 0.9.1

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "service": "patchrelay",
3
- "version": "0.9.0",
4
- "commit": "b6f05891dddc",
5
- "builtAt": "2026-03-22T18:06:49.707Z"
3
+ "version": "0.9.1",
4
+ "commit": "cb0e47c488a3",
5
+ "builtAt": "2026-03-22T18:27:36.425Z"
6
6
  }
package/dist/cli/args.js CHANGED
@@ -69,7 +69,7 @@ export function resolveCommand(parsed) {
69
69
  export function hasHelpFlag(parsed) {
70
70
  return parsed.flags.get("help") === true;
71
71
  }
72
- export function getStageFlag(value) {
72
+ export function getRunTypeFlag(value) {
73
73
  if (typeof value !== "string") {
74
74
  return undefined;
75
75
  }
@@ -1,5 +1,5 @@
1
1
  import { setTimeout as delay } from "node:timers/promises";
2
- import { getStageFlag, parsePositiveIntegerFlag } from "../args.js";
2
+ import { getRunTypeFlag, parsePositiveIntegerFlag } from "../args.js";
3
3
  import { formatJson } from "../formatters/json.js";
4
4
  import { formatEvents, formatInspect, formatList, formatLive, formatOpen, formatReport, formatRetry, formatWorktree } from "../formatters/text.js";
5
5
  import { buildOpenCommand } from "../interactive.js";
@@ -41,11 +41,11 @@ export async function handleReportCommand(params) {
41
41
  throw new Error("report requires <issueKey>.");
42
42
  }
43
43
  const reportOptions = {};
44
- const stage = getStageFlag(params.parsed.flags.get("stage"));
45
- if (stage) {
46
- reportOptions.runType = stage;
44
+ const runType = getRunTypeFlag(params.parsed.flags.get("run-type"));
45
+ if (runType) {
46
+ reportOptions.runType = runType;
47
47
  }
48
- const runId = parsePositiveIntegerFlag(params.parsed.flags.get("stage-run"), "--stage-run");
48
+ const runId = parsePositiveIntegerFlag(params.parsed.flags.get("run"), "--run");
49
49
  if (runId !== undefined) {
50
50
  reportOptions.runId = runId;
51
51
  }
@@ -63,7 +63,7 @@ export async function handleEventsCommand(params) {
63
63
  }
64
64
  const follow = params.parsed.flags.get("follow") === true;
65
65
  let afterId;
66
- let runId = parsePositiveIntegerFlag(params.parsed.flags.get("stage-run"), "--stage-run");
66
+ let runId = parsePositiveIntegerFlag(params.parsed.flags.get("run"), "--run");
67
67
  do {
68
68
  const result = params.data.events(issueKey, {
69
69
  ...(runId !== undefined ? { runId } : {}),
@@ -71,7 +71,7 @@ export async function handleEventsCommand(params) {
71
71
  ...(afterId !== undefined ? { afterId } : {}),
72
72
  });
73
73
  if (!result) {
74
- throw new Error(`Stage run not found for ${issueKey}`);
74
+ throw new Error(`Run not found for ${issueKey}`);
75
75
  }
76
76
  runId = result.run.id;
77
77
  if (result.events.length > 0) {
@@ -132,9 +132,9 @@ export async function handleRetryCommand(params) {
132
132
  throw new Error("retry requires <issueKey>.");
133
133
  }
134
134
  const retryOptions = {};
135
- const stage = getStageFlag(params.parsed.flags.get("stage"));
136
- if (stage) {
137
- retryOptions.runType = stage;
135
+ const runType = getRunTypeFlag(params.parsed.flags.get("run-type"));
136
+ if (runType) {
137
+ retryOptions.runType = runType;
138
138
  }
139
139
  if (typeof params.parsed.flags.get("reason") === "string") {
140
140
  retryOptions.reason = String(params.parsed.flags.get("reason"));
package/dist/cli/help.js CHANGED
@@ -12,7 +12,7 @@ export function rootHelpText() {
12
12
  " 1. patchrelay init <public-https-url>",
13
13
  " 2. Fill in ~/.config/patchrelay/service.env",
14
14
  " 3. patchrelay project apply <id> <repo-path>",
15
- " 4. Edit the generated project workflows if needed, then add those workflow files to the repo",
15
+ " 4. Add IMPLEMENTATION_WORKFLOW.md and REVIEW_WORKFLOW.md to the repo",
16
16
  " 5. patchrelay doctor",
17
17
  "",
18
18
  "Why init needs the public URL:",
@@ -31,7 +31,7 @@ export function rootHelpText() {
31
31
  " init <public-base-url> [--force] [--json] Bootstrap the machine-level PatchRelay home",
32
32
  " project apply <id> <repo-path> [--issue-prefix <prefixes>] [--team-id <ids>] [--no-connect] [--no-open] [--timeout <seconds>] [--json]",
33
33
  " Upsert one local repository and connect it to Linear when ready",
34
- " doctor [--json] Check secrets, paths, configured workflow files, git, and codex",
34
+ " doctor [--json] Check secrets, paths, git, and codex",
35
35
  " install-service [--force] [--write-only] [--json] Reinstall the systemd user service and watcher",
36
36
  " restart-service [--json] Reload-or-restart the systemd user service",
37
37
  " connect [--project <projectId>] [--no-open] [--timeout <seconds>] [--json]",
@@ -42,14 +42,14 @@ export function rootHelpText() {
42
42
  " serve Run the local PatchRelay service",
43
43
  " inspect <issueKey> Show the latest known issue state",
44
44
  " live <issueKey> [--watch] [--json] Show the active run status",
45
- " report <issueKey> [--stage <workflow>] [--stage-run <id>] [--json]",
46
- " Show finished workflow reports",
47
- " events <issueKey> [--stage-run <id>] [--method <name>] [--follow] [--json]",
45
+ " report <issueKey> [--run-type <type>] [--run <id>] [--json]",
46
+ " Show finished run reports",
47
+ " events <issueKey> [--run <id>] [--method <name>] [--follow] [--json]",
48
48
  " Show raw thread events",
49
49
  " worktree <issueKey> [--cd] [--json] Print the issue worktree path",
50
50
  " open <issueKey> [--print] [--json] Open Codex in the issue worktree",
51
- " retry <issueKey> [--stage <workflow>] [--reason <text>] [--json]",
52
- " Requeue a workflow",
51
+ " retry <issueKey> [--run-type <type>] [--reason <text>] [--json]",
52
+ " Requeue a run",
53
53
  " list [--active] [--failed] [--project <projectId>] [--json]",
54
54
  " List tracked issues",
55
55
  "",
package/dist/cli/index.js CHANGED
@@ -51,10 +51,10 @@ function validateFlags(command, commandArgs, parsed) {
51
51
  assertKnownFlags(parsed, command, ["watch", "json"]);
52
52
  return;
53
53
  case "report":
54
- assertKnownFlags(parsed, command, ["stage", "stage-run", "json"]);
54
+ assertKnownFlags(parsed, command, ["run-type", "run", "json"]);
55
55
  return;
56
56
  case "events":
57
- assertKnownFlags(parsed, command, ["stage-run", "method", "follow", "json"]);
57
+ assertKnownFlags(parsed, command, ["run", "method", "follow", "json"]);
58
58
  return;
59
59
  case "worktree":
60
60
  assertKnownFlags(parsed, command, ["cd", "json"]);
@@ -63,7 +63,7 @@ function validateFlags(command, commandArgs, parsed) {
63
63
  assertKnownFlags(parsed, command, ["print", "json"]);
64
64
  return;
65
65
  case "retry":
66
- assertKnownFlags(parsed, command, ["stage", "reason", "json"]);
66
+ assertKnownFlags(parsed, command, ["run-type", "reason", "json"]);
67
67
  return;
68
68
  case "list":
69
69
  assertKnownFlags(parsed, command, ["active", "failed", "project", "json"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchrelay",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {