@clemrig/factory 0.4.0 → 0.5.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.
package/README.md CHANGED
@@ -51,7 +51,7 @@ The global `factory` command uses the nearest `.factory/` holding a `package.jso
51
51
  4. **Executing.** `factory run implement --issue <slug>`: starting the run approves the spec. It runs without the operator; follow it in `factory ui`.
52
52
  5. **To Approve → Done.** Review and merge the pull request. After `git pull`, `plan.md` is on the main branch: the issue is done. Its folder stays.
53
53
 
54
- A failed run stops; past `prepare`, it leaves the repository on the branch `<slug>`, with the agent's changes, for inspection. Clean up, fix what is needed (often the spec, committed and pushed again) and start a new run: it starts again from the main branch, recreates the branch and replaces the pull request's content. Requested changes on a pull request are fixed the same way, or by hand on the branch. An issue is abandoned by deleting its folder (and closing its pull request, if any).
54
+ A failed run stops; past `prepare`, it leaves the repository on the branch `<slug>`, with the agent's changes, for inspection. When the cause has passed (a timeout, the budget, the network, a Git hook), `factory resume <RUN_ID>` starts the stopped stage again, its agent in the same conversation: the repository must still be on `<slug>` at the commit where the run stopped (the plan's commit, or the starting commit before it), with its changes in progress and none in `.factory/`; a delivery that stopped after its commit resumes once `git reset --soft <plan commit>` puts the changes back in progress, as the refusal says, and a run whose pull request is recorded in its state, stopped once its delivery was done, does not resume. Otherwise, clean up, fix what is needed (often the spec, committed and pushed again) and start a new run: it starts again from the main branch, recreates the branch and replaces the pull request's content. Requested changes on a pull request are fixed the same way, or by hand on the branch. An issue is abandoned by deleting its folder (and closing its pull request, if any).
55
55
 
56
56
  `issue-save` lists every problem of a draft at once, refuses a spec for an issue that has no `issue.md`, replaces the file if it exists and commits nothing; each save is a run. The skill tells the agent never to write in `.factory/issues/` directly, commit or run `implement`. Pi reads a project's skills once the project is trusted; Codex ignores a `SKILL.md` that is itself a link, hence the folder link.
57
57
 
@@ -222,7 +222,9 @@ Workflows are TypeScript run directly by Node: use erasable syntax only (no `enu
222
222
 
223
223
  **On the issue cards.** A workflow whose `input` has an `issue` field and that declares `steps` is shown on the cards: each issue's card shows its last run whose `issue` input is the issue's slug. `steps` are ordered, named groups of the workflow's stages, for `changelog` above `steps: [{ name: "read", stages: ["log"] }, { name: "write", stages: ["write", "check"] }]`; a correction that goes back to an earlier stage brings the current step back. Such a workflow never changes an issue's column. `issue-save` declares no steps and is not shown.
224
224
 
225
- **Budget.** `maxCostUsd` (optional) fails a run once the cost its agents' runtimes announced exceeds it; `factory run … --max-cost-usd 2` sets it for one run, instead of the workflow's. It is checked before and after each agent call, failed or not, on the runtime's figures: a running call is not stopped and can go past it; once it is exceeded, no further call starts and the run fails at its next stage boundary, even if workflow code catches the error. A call that announced no cost fails a run that has a budget, since the budget can no longer be checked; Codex announces tokens only, so a budget is refused, before any run, for a workflow with a Codex stage. With a subscription, the cost is an estimate.
225
+ **Resumption.** `factory resume` starts a failed run again at the stage where it stopped (see Resume below). A workflow whose stages change the repository can declare `resumeProblem: async ({ state, dir }) => …`, which returns why the run cannot resume from the directory as it is now, or `undefined`; the resumption is then refused with that reason, before anything changes.
226
+
227
+ **Budget.** `maxCostUsd` (optional) fails a run once the cost its agents' runtimes announced exceeds it; `factory run … --max-cost-usd 2` sets it for one run, instead of the workflow's, and the run keeps it when resumed. It is checked before and after each agent call, failed or not, on the runtime's figures: a running call is not stopped and can go past it; once it is exceeded, no further call starts and the run fails at its next stage boundary, even if workflow code catches the error. A call that announced no cost fails a run that has a budget, since the budget can no longer be checked, until the run is resumed (see Resume below); Codex announces tokens only, so a budget is refused, before any run, for a workflow with a Codex stage. With a subscription, the cost is an estimate.
226
228
 
227
229
  **Profiles.** Each agent stage declares its profile; no machine setting of the factory changes it. A profile is a plain object: share one between stages with a constant, typed with `satisfies AgentProfile` (`AgentProfile` is exported by `@clemrig/factory`).
228
230
 
@@ -233,7 +235,7 @@ Workflows are TypeScript run directly by Node: use erasable syntax only (no `enu
233
235
  | `thinking` | effort: `low` … `max` | reasoning effort of the model (`low`, `medium`, `high`…) | `off` … `max` |
234
236
  | `tools` | optional: exact names (`Read`, `Grep`, `Bash`…) and `mcp__<server>__<tool>`; limits the built-in tools and lets the listed ones run | — | optional: exact names (`read`, `bash`…); `[]` for none |
235
237
  | other | `permissionMode` (a `--permission-mode` choice), `mcpServers: { name: { command, args? } }` | `sandbox`: `read-only`, `workspace-write` or `danger-full-access` | `skills`, `extensions` (paths) |
236
- | `timeoutMs` | default 15 minutes | default 15 minutes | default 15 minutes |
238
+ | `timeoutMs` | default 15 minutes, no maximum | default 15 minutes, no maximum | default 15 minutes, no maximum |
237
239
 
238
240
  Each agent runs with this machine's and this repository's configuration, as you would run it yourself: Claude Code with its settings, `CLAUDE.md`, plugins, hooks, skills, MCP servers and memory; Codex with its `config.toml`, `AGENTS.md` files, skills and MCP servers; Pi with its extensions, skills, context files and MCP servers. The profile only adds its settings; without `tools`, `permissionMode` or `sandbox`, the agent's own configuration decides. The same workflow can therefore behave differently on another machine, and a repository's own hooks and MCP servers run with its agents. Relative skill, extension and MCP command paths are relative to `.factory/`; a bare command is looked up in the `PATH`. Runtimes are not sandboxes unless one is enabled: their tools act with your rights.
239
241
 
@@ -245,6 +247,7 @@ Each agent runs with this machine's and this repository's configuration, as you
245
247
 
246
248
  ```sh
247
249
  factory run WORKFLOW [--INPUT VALUE…] [--max-cost-usd USD] [--json]
250
+ factory resume RUN_ID [--max-cost-usd USD] [--json]
248
251
  factory status [RUN_ID] [--json]
249
252
  factory ui [--port 4321]
250
253
  factory doctor [--json]
@@ -254,9 +257,11 @@ Before creating a run, `factory run` validates the input, reads the prompts and
254
257
 
255
258
  The run executes in the foreground. The terminal shows each stage's start and end, decisions and corrections with their counter (`[verify.failed 1/3]`), journal messages and, for an agent, the start of its call with its model, thinking, runtime choices and tools, its end, each finished tool with its duration and the runtime's warnings; then the result, the duration, the agents' tokens and estimated cost, and the runtimes used. `--json` writes every event, then the result, as JSON lines on standard output. Exit codes: 0 completed, 1 error or failed run.
256
259
 
257
- **Ctrl-C** stops the run's child processes and ends the run as `failed` with its cause before its next stage, or instead of completing; a second Ctrl-C kills the remaining child processes and quits at once (exit code 130, the run may then stay `running`); commands that Codex runs in their own process groups are stopped by Codex on the first Ctrl-C, not by the second. A failed or interrupted run is not resumed: start a new one.
260
+ **Ctrl-C** stops the run's child processes and ends the run as `failed` with its cause before its next stage, or instead of completing; a second Ctrl-C kills the remaining child processes and quits at once (exit code 130, the run may then stay `running`); commands that Codex runs in their own process groups are stopped by Codex on the first Ctrl-C, not by the second.
261
+
262
+ **Resume.** `factory resume RUN_ID` runs a failed run again in the foreground, under the same ID, at the stage where it stopped: its input, data, corrections, cost and agents' conversations are kept, the stage's journal starts with why the run had stopped (`Resumed after: …`), and its agent is told so and asked to continue rather than start over. The workflow is the one `factory.ts` defines now, its prompts are read again, and its runtimes are checked as for `factory run`. The budget is the one given with `--max-cost-usd`, else the run's own, else the workflow's; a run that already spent it does not resume without a higher one. The run's budget still counts its whole cost, but calls that announced no cost before the resumption, such as a call stopped by its timeout, no longer fail it; their cost counts only if the runtime includes it in the total it later announces for the resumed session, and the run's cost stays marked partial. The run's duration leaves out the time it spent stopped. Only a failed run resumes, and by one command at a time: a run left `running` after a second Ctrl-C does not, and a workflow may refuse to resume from the state of the repository, as `implement` does. A resumed stage starts over: what it did before it failed must be safe to do again. A run stopped by a correction maximum resumes at the stage that asked for it: the checks may pass after a fix by hand, but a gate judging the same answer fails again; start a new run then.
258
263
 
259
- `factory status` lists the repository's runs or shows one; while `factory.ts` cannot load, `status` and `ui` say so and still show the runs with the default rendering. `factory ui` serves on `127.0.0.1` (port chosen by the system unless `--port` sets it, URL printed; Ctrl-C stops it) the Kanban on `/` and, under `/runs/`, a read-only dashboard of the repository's runs: the runs with workflow, status, current stage, duration, estimated cost and last update, and for a run its runtimes, a timeline with one block per stage (status, duration, the agent call's model and settings, its tools and tokens as they come, journal, decision), the correction counters and the result. It follows a running run as it goes. To watch on another machine, forward the same port through SSH: `ssh -L 4321:127.0.0.1:4321 machine`, run `factory ui --port 4321` there, and open `http://localhost:4321/`. `factory doctor` checks Node, loads the workflows, reads their prompts, lists each workflow's options and checks each runtime's executable, version and connection, without any provider request.
264
+ `factory status` lists the repository's runs or shows one; while `factory.ts` cannot load, `status` and `ui` say so and still show the runs with the default rendering. `factory ui` serves on `127.0.0.1` (port chosen by the system unless `--port` sets it, URL printed; Ctrl-C stops it) the Kanban on `/` and, under `/runs/`, a read-only dashboard of the repository's runs: the runs with workflow, status, current stage, duration, estimated cost and last update, and for a run its runtimes, its launches (the first one, then each resumption), each with a strip of its stages sized by duration, then its stages beside the selected one's detail (start, duration, outcome, the agent call's model, settings, tools and tokens as they come, the journal and the tool calls), the correction counters and the result. It follows a running run as it goes. To watch on another machine, forward the same port through SSH: `ssh -L 4321:127.0.0.1:4321 machine`, run `factory ui --port 4321` there, and open `http://localhost:4321/`. `factory doctor` checks Node, loads the workflows, reads their prompts, lists each workflow's options and checks each runtime's executable, version and connection, without any provider request.
260
265
 
261
266
  ## Data
262
267
 
@@ -268,10 +273,10 @@ Tokens and costs are the figures each runtime announces: Claude Code announces a
268
273
 
269
274
  - No release or observation stage: an issue is done once merged. Requested changes on a pull request are not handled by a run.
270
275
  - Runs are local: Executing and Blocked show only on the machine of the run; Done shows after `git pull`. A refusal at `prepare` is a failed run, so the issue looks Blocked until its next run; after a second Ctrl-C a run may stay `running`, and its issue looks Executing until its next run.
271
- - The repository is used in place: one `implement` run at a time, since it needs a clean tree and stops if another run moved the repository during its starting checks; after a failure, the operator cleans up. The repository's Git hooks run on the run's commits, and a failing hook fails the run.
276
+ - The repository is used in place: one `implement` run at a time, since it needs a clean tree and stops if another run moved the repository during its starting checks; after a failure, the operator cleans up, or leaves the branch as it is to resume the run. The repository's Git hooks run on the run's commits, and a failing hook fails the run.
272
277
  - The factory's own agents (`plan`, `implement`, `review`) cannot run on Codex, since `maxCostUsd` is required and Codex announces no cost; the repository's own workflows and the `issue` skill can use Codex.
273
278
  - Runtimes are not sandboxes: the implementing agent's tools can run any command its profile allows, bounded only by its prompt, the repository's agent instructions and the run's checks.
274
- - Not in this version: changing the factory's prompts, correction maximums, pull request format or columns from a repository; columns added by a workflow; backlog priority; actions or drag-and-drop on the board; resuming a run, detached runs, logs `--follow` and stop; local settings or profile overrides; graph drawing in the dashboard; runs or issues of several repositories; `factory new`; a shared stage library; a test harness for workflows; CI, cron or Git hook triggers; notifications; Windows.
279
+ - Not in this version: changing the factory's prompts, correction maximums, pull request format or columns from a repository; columns added by a workflow; backlog priority; actions or drag-and-drop on the board; resuming a run left `running` after its process was killed, detached runs, logs `--follow` and stop; local settings or profile overrides; graph drawing in the dashboard; runs or issues of several repositories; `factory new`; a shared stage library; a test harness for workflows; CI, cron or Git hook triggers; notifications; Windows.
275
280
 
276
281
  ## License
277
282
 
package/dist/app/run.d.ts CHANGED
@@ -6,3 +6,9 @@ import { type Factory } from "../system/factory.js";
6
6
  * and is kept in its `runs/`.
7
7
  */
8
8
  export declare function startRun(factory: Factory, name: string, options: Record<string, string | boolean>, hooks: RunHooks): Promise<StartedRun>;
9
+ /**
10
+ * Resumes a failed run of the repository at the stage where it stopped, with
11
+ * its workflow as `factory.ts` defines it now and its prompts read again;
12
+ * `--max-cost-usd` is its only option.
13
+ */
14
+ export declare function resumeRun(factory: Factory, runId: string, options: Record<string, string | boolean>, hooks: RunHooks): Promise<StartedRun>;
package/dist/app/run.js CHANGED
@@ -1,6 +1,7 @@
1
- import { startRun as start, } from "@clemrig/flow";
1
+ import { resumeRun as resume, startRun as start, } from "@clemrig/flow";
2
2
  import { loadPrompts, workflowOf } from "../system/factory.js";
3
3
  import { asOptionsError, inputFromOptions, parseBudget } from "./options.js";
4
+ import { loadRun } from "./runs.js";
4
5
  /**
5
6
  * Starts a workflow of the factory from `factory run` options, with its prompts
6
7
  * from `.factory/`; the run works in the repository that contains `.factory/`
@@ -26,4 +27,26 @@ export async function startRun(factory, name, options, hooks) {
26
27
  throw asOptionsError(workflow, given, error);
27
28
  }
28
29
  }
30
+ /**
31
+ * Resumes a failed run of the repository at the stage where it stopped, with
32
+ * its workflow as `factory.ts` defines it now and its prompts read again;
33
+ * `--max-cost-usd` is its only option.
34
+ */
35
+ export async function resumeRun(factory, runId, options, hooks) {
36
+ const { "max-cost-usd": budget, ...others } = options;
37
+ const [unknown] = Object.keys(others);
38
+ if (unknown)
39
+ throw new Error(`Unknown option --${unknown} for resume`);
40
+ const maxCostUsd = budget === undefined ? undefined : parseBudget(budget);
41
+ const workflow = workflowOf(factory, (await loadRun(factory, runId)).workflow);
42
+ return resume({
43
+ workflow,
44
+ runId,
45
+ maxCostUsd,
46
+ prompts: () => loadPrompts(factory, workflow),
47
+ dir: factory.dir,
48
+ configDir: factory.factoryDir,
49
+ runsDir: factory.runsDir,
50
+ }, hooks);
51
+ }
29
52
  //# sourceMappingURL=run.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/app/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,QAAQ,IAAI,KAAK,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAgB,WAAW,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE7E;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAC5B,OAAgB,EAChB,IAAY,EACZ,OAAyC,EACzC,KAAe;IAEf,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC3C,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,GAAG,OAAO,CAAC;IACrD,MAAM,UAAU,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1E,MAAM,KAAK,GAAG,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAChD,IAAI,CAAC;QACH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
@@ -92,6 +92,34 @@ async function guard({ dir, state }) {
92
92
  if (await git.hasChanges(dir, ".factory"))
93
93
  throw new Error("The implementing agent changed .factory/: the run stops");
94
94
  }
95
+ /**
96
+ * A failed run resumes on its branch, at the commit its stage started from,
97
+ * with its changes in progress and none in .factory/ but the plan it may have
98
+ * written; `prepare` checks everything again, and a delivered run is done.
99
+ */
100
+ async function resumeProblem({ dir, state, }) {
101
+ if (state.stage === "prepare")
102
+ return undefined;
103
+ // Stopped once its last stage was done, such as by Ctrl-C.
104
+ const { pullRequest } = state.data;
105
+ if (typeof pullRequest === "string")
106
+ return `the run already delivered its pull request ${pullRequest}`;
107
+ const { slug, baseCommit, planPath } = facts(state);
108
+ // Until the plan is committed, the branch is at the run's starting commit.
109
+ const { planCommit } = state.data;
110
+ const expected = typeof planCommit === "string" ? planCommit : baseCommit;
111
+ const branch = await git.currentBranch(dir);
112
+ const head = await git.commitOf(dir, "HEAD");
113
+ const problems = [];
114
+ if (branch !== slug || head !== expected)
115
+ problems.push(`the repository must be on ${slug} at ${short(expected)}, where the run stopped, with its changes in progress; it is on ${branch || "a detached HEAD"} at ${short(head)}${state.stage === "deliver" && branch === slug
116
+ ? `; if the run already committed its changes, git reset --soft ${short(expected)} puts them back in progress`
117
+ : ""}`);
118
+ // `commit-plan` writes the plan again before committing it.
119
+ if (await git.hasChanges(dir, ".factory", state.stage === "commit-plan" ? planPath : undefined))
120
+ problems.push(".factory/ has changes in progress, which a run never delivers: discard them");
121
+ return problems.length ? problems.join("; ") : undefined;
122
+ }
95
123
  /** Plans, implements, checks and reviews an approved spec, then opens its pull request. */
96
124
  export function implement(definition) {
97
125
  return defineWorkflow({
@@ -251,6 +279,7 @@ export function implement(definition) {
251
279
  return { pullRequest };
252
280
  }), { ok: END }),
253
281
  },
282
+ resumeProblem,
254
283
  // Also called for a failed run, which opened no pull request.
255
284
  presentResult: (state) => {
256
285
  const { pullRequest, checks } = facts(state);
@@ -1 +1 @@
1
- {"version":3,"file":"implement.js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EAAsB,CAAC;YAC7C,CAAC,CAAC,EACF,EAAE,EAAE,EAAE,GAAG,EAAE,CACZ;SACF;QACD,aAAa;QACb,8DAA8D;QAC9D,aAAa,EAAE,CAAC,KAAK,EAAE,EAAE;YACvB,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;YAC7C,IAAI,OAAO,WAAW,KAAK,QAAQ;gBAAE,OAAO,EAAE,CAAC;YAC/C,MAAM,MAAM,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;YACnC,OAAO;gBACL,iBAAiB,WAAW,EAAE;gBAC9B,oBAAoB,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,MAAM,SAAS,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,aAAa,EAAE;gBACzH,kBAAkB,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;aAC9D,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -5,7 +5,7 @@ import { noOptions, parseArgs } from "./args.js";
5
5
  import { doctor } from "./doctor.js";
6
6
  import { help } from "./help.js";
7
7
  import { TerminalReporter } from "./reporter.js";
8
- import { run } from "./run.js";
8
+ import { resume, run } from "./run.js";
9
9
  import { status } from "./status.js";
10
10
  import { ui } from "./ui.js";
11
11
  /** `--port`: a fixed port, so that an SSH tunnel can forward the same one. */
@@ -33,10 +33,10 @@ export async function main(argv, directory) {
33
33
  noOptions(args);
34
34
  return await doctor(factoryDir, args.json);
35
35
  }
36
- if (args.command === "run") {
36
+ if (args.command === "run" || args.command === "resume") {
37
37
  const factory = await openFactory(factoryDir);
38
38
  const reporter = new TerminalReporter((state) => presentResult(factory, state), args.json);
39
- return await run(factory, args, reporter);
39
+ return await (args.command === "run" ? run : resume)(factory, args, reporter);
40
40
  }
41
41
  if (!["status", "ui"].includes(args.command))
42
42
  throw new Error(`Unknown command ${args.command}; see factory help`);
@@ -1 +1 @@
1
- {"version":3,"file":"application.js","sourceRoot":"","sources":["../../src/cli/application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAE7B,8EAA8E;AAC9E,SAAS,SAAS,CAAC,KAAoB;IACrC,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC3B,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,KAAK;QACpE,MAAM,IAAI,KAAK,CACb,kBAAkB,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,mCAAmC,CACjF,CAAC;IACJ,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,IAAI,CAAC,IAAc,EAAE,SAAiB;IAC1D,4EAA4E;IAC5E,MAAM,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC,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,KAAK,IAAI;YAAE,OAAO,MAAM,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;QAC1E,MAAM,QAAQ,GAAG,IAAI,gBAAgB,CACnC,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,EACxC,IAAI,CAAC,IAAI,CACV,CAAC;QACF,OAAO,MAAM,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7D,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,YAAY,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CACvE,CAAC;QACF,OAAO,CAAC,CAAC;IACX,CAAC;AACH,CAAC"}
@@ -1 +1 @@
1
- export declare const help = "factory \u2014 this repository's issues, from spec to pull request, with .factory/\n\n factory init create .factory/ here and install it\n factory doctor [--json] check Node, workflows, prompts and runtimes\n factory run WORKFLOW [--INPUT VALUE\u2026] [--max-cost-usd USD] [--json]\n factory status [RUN_ID] [--json] list this repository's runs, or show one\n factory ui [--port N] serve the live read-only Kanban, runs under /runs/\n\nCommands other than init and help use the nearest .factory/ in the current directory\nor a parent, with the factory version installed there. factory doctor lists each\nworkflow's input options. factory run issue-save saves an issue or its spec;\nfactory run implement --issue SLUG takes a pushed spec to a pull request.\n.factory/.env is loaded; shell variables take precedence.\n--max-cost-usd fails the run once its agents' announced cost exceeds it, instead\nof the workflow's maxCostUsd. --json writes events, then the result, as JSON lines.\nCtrl-C stops a run, which ends failed; press it again to quit at once.\nExit codes: 0 completed, 1 error or failed run, 130 second Ctrl-C.\n";
1
+ export declare const help = "factory \u2014 this repository's issues, from spec to pull request, with .factory/\n\n factory init create .factory/ here and install it\n factory doctor [--json] check Node, workflows, prompts and runtimes\n factory run WORKFLOW [--INPUT VALUE\u2026] [--max-cost-usd USD] [--json]\n factory resume RUN_ID [--max-cost-usd USD] [--json]\n factory status [RUN_ID] [--json] list this repository's runs, or show one\n factory ui [--port N] serve the live read-only Kanban, runs under /runs/\n\nCommands other than init and help use the nearest .factory/ in the current directory\nor a parent, with the factory version installed there. factory doctor lists each\nworkflow's input options. factory run issue-save saves an issue or its spec;\nfactory run implement --issue SLUG takes a pushed spec to a pull request.\n.factory/.env is loaded; shell variables take precedence.\n--max-cost-usd fails the run once its agents' announced cost exceeds it, instead\nof the workflow's maxCostUsd. --json writes events, then the result, as JSON lines.\nCtrl-C stops a run, which ends failed; press it again to quit at once.\nfactory resume starts a failed run again at the stage where it stopped, with its\ndata and its agents' conversations.\nExit codes: 0 completed, 1 error or failed run, 130 second Ctrl-C.\n";
package/dist/cli/help.js CHANGED
@@ -3,6 +3,7 @@ export const help = `factory — this repository's issues, from spec to pull req
3
3
  factory init create .factory/ here and install it
4
4
  factory doctor [--json] check Node, workflows, prompts and runtimes
5
5
  factory run WORKFLOW [--INPUT VALUE…] [--max-cost-usd USD] [--json]
6
+ factory resume RUN_ID [--max-cost-usd USD] [--json]
6
7
  factory status [RUN_ID] [--json] list this repository's runs, or show one
7
8
  factory ui [--port N] serve the live read-only Kanban, runs under /runs/
8
9
 
@@ -14,6 +15,8 @@ factory run implement --issue SLUG takes a pushed spec to a pull request.
14
15
  --max-cost-usd fails the run once its agents' announced cost exceeds it, instead
15
16
  of the workflow's maxCostUsd. --json writes events, then the result, as JSON lines.
16
17
  Ctrl-C stops a run, which ends failed; press it again to quit at once.
18
+ factory resume starts a failed run again at the stage where it stopped, with its
19
+ data and its agents' conversations.
17
20
  Exit codes: 0 completed, 1 error or failed run, 130 second Ctrl-C.
18
21
  `;
19
22
  //# sourceMappingURL=help.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"help.js","sourceRoot":"","sources":["../../src/cli/help.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;CAiBnB,CAAC"}
1
+ {"version":3,"file":"help.js","sourceRoot":"","sources":["../../src/cli/help.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;CAoBnB,CAAC"}
package/dist/cli/run.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import type { Factory } from "../app/factory.js";
2
2
  import type { Arguments } from "./args.js";
3
3
  import type { TerminalReporter } from "./reporter.js";
4
- /** `factory run`: the run executes in the foreground, with the repository as the current directory. */
4
+ /** `factory run`: the run executes in the foreground. */
5
5
  export declare function run(factory: Factory, args: Arguments, reporter: TerminalReporter): Promise<number>;
6
+ /** `factory resume`: a failed run starts again, in the foreground, at the stage where it stopped. */
7
+ export declare function resume(factory: Factory, args: Arguments, reporter: TerminalReporter): Promise<number>;
package/dist/cli/run.js CHANGED
@@ -1,47 +1,39 @@
1
- import { killChildProcesses } from "@clemrig/flow";
2
- import { startRun } from "../app/run.js";
1
+ import { killChildProcesses, } from "@clemrig/flow";
2
+ import { resumeRun, startRun } from "../app/run.js";
3
3
  /**
4
- * Starts the run and waits for its end. The first SIGINT or SIGTERM stops it
5
- * before its next stage (child processes are stopped at once); a second one
6
- * kills the child process groups and exits with 130.
4
+ * Starts or resumes the run in the repository, as the current directory so
5
+ * that relative paths in workflow code resolve there, and waits for its end.
6
+ * The first SIGINT or SIGTERM stops it before its next stage (child processes
7
+ * are stopped at once); a second one kills the child process groups and exits
8
+ * with 130.
7
9
  */
8
- async function execute(factory, name, options, reporter) {
9
- const started = await startRun(factory, name, options, {
10
- onEvent: reporter.event,
11
- });
12
- for (const runtime of started.runtimes)
13
- reporter.runtime(runtime.detail);
14
- let interrupted = false;
15
- const interrupt = (signal) => {
16
- if (interrupted) {
17
- killChildProcesses();
18
- process.exit(130);
19
- }
20
- interrupted = true;
21
- reporter.detail(`${signal} received: stopping the run; press Ctrl-C again to quit at once`);
22
- started.stop(new Error(`Run interrupted by ${signal}`));
23
- };
24
- process.on("SIGINT", interrupt);
25
- process.on("SIGTERM", interrupt);
26
- try {
27
- return await started.done;
28
- }
29
- finally {
30
- process.off("SIGINT", interrupt);
31
- process.off("SIGTERM", interrupt);
32
- }
33
- }
34
- /** `factory run`: the run executes in the foreground, with the repository as the current directory. */
35
- export async function run(factory, args, reporter) {
36
- const name = args.positional[0];
37
- if (!name)
38
- throw new Error(`Usage: factory run WORKFLOW [--INPUT VALUE…]; workflows: ${[...factory.workflows.keys()].join(", ") || "none"}`);
39
- // Relative paths in workflow code resolve in the repository, wherever the command was started.
10
+ async function execute(factory, launch, reporter) {
40
11
  const previous = process.cwd();
41
12
  process.chdir(factory.dir);
42
13
  let state;
43
14
  try {
44
- state = await execute(factory, name, args.options, reporter);
15
+ const started = await launch({ onEvent: reporter.event });
16
+ for (const runtime of started.runtimes)
17
+ reporter.runtime(runtime.detail);
18
+ let interrupted = false;
19
+ const interrupt = (signal) => {
20
+ if (interrupted) {
21
+ killChildProcesses();
22
+ process.exit(130);
23
+ }
24
+ interrupted = true;
25
+ reporter.detail(`${signal} received: stopping the run; press Ctrl-C again to quit at once`);
26
+ started.stop(new Error(`Run interrupted by ${signal}`));
27
+ };
28
+ process.on("SIGINT", interrupt);
29
+ process.on("SIGTERM", interrupt);
30
+ try {
31
+ state = await started.done;
32
+ }
33
+ finally {
34
+ process.off("SIGINT", interrupt);
35
+ process.off("SIGTERM", interrupt);
36
+ }
45
37
  }
46
38
  finally {
47
39
  process.chdir(previous);
@@ -49,4 +41,18 @@ export async function run(factory, args, reporter) {
49
41
  reporter.result(state);
50
42
  return state.status === "completed" ? 0 : 1;
51
43
  }
44
+ /** `factory run`: the run executes in the foreground. */
45
+ export async function run(factory, args, reporter) {
46
+ const name = args.positional[0];
47
+ if (!name)
48
+ throw new Error(`Usage: factory run WORKFLOW [--INPUT VALUE…]; workflows: ${[...factory.workflows.keys()].join(", ") || "none"}`);
49
+ return execute(factory, (hooks) => startRun(factory, name, args.options, hooks), reporter);
50
+ }
51
+ /** `factory resume`: a failed run starts again, in the foreground, at the stage where it stopped. */
52
+ export async function resume(factory, args, reporter) {
53
+ const runId = args.positional[0];
54
+ if (!runId)
55
+ throw new Error("Usage: factory resume RUN_ID [--max-cost-usd USD]; factory status lists the runs");
56
+ return execute(factory, (hooks) => resumeRun(factory, runId, args.options, hooks), reporter);
57
+ }
52
58
  //# sourceMappingURL=run.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/cli/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAiB,MAAM,eAAe,CAAC;AAElE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAIzC;;;;GAIG;AACH,KAAK,UAAU,OAAO,CACpB,OAAgB,EAChB,IAAY,EACZ,OAA6B,EAC7B,QAA0B;IAE1B,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;QACrD,OAAO,EAAE,QAAQ,CAAC,KAAK;KACxB,CAAC,CAAC;IACH,KAAK,MAAM,OAAO,IAAI,OAAO,CAAC,QAAQ;QAAE,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACzE,IAAI,WAAW,GAAG,KAAK,CAAC;IACxB,MAAM,SAAS,GAAG,CAAC,MAAsB,EAAE,EAAE;QAC3C,IAAI,WAAW,EAAE,CAAC;YAChB,kBAAkB,EAAE,CAAC;YACrB,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACpB,CAAC;QACD,WAAW,GAAG,IAAI,CAAC;QACnB,QAAQ,CAAC,MAAM,CACb,GAAG,MAAM,iEAAiE,CAC3E,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,sBAAsB,MAAM,EAAE,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC;IACF,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,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8 @@ export declare function gitDir(dir: string): Promise<string>;
9
9
  /** The files under `path` in a branch or commit, relative to the repository. */
10
10
  export declare function filesIn(dir: string, ref: string, path: string): Promise<string[]>;
11
11
  export declare function currentBranch(dir: string): Promise<string>;
12
- /** Modified, staged or untracked files, in the whole tree or under a path. */
13
- export declare function hasChanges(dir: string, path?: string): Promise<boolean>;
12
+ /** Modified, staged or untracked files, in the whole tree or under a path, `except` one of its files. */
13
+ export declare function hasChanges(dir: string, path?: string, except?: string): Promise<boolean>;
14
14
  export declare function fetchBranch(dir: string, branch: string): Promise<void>;
15
15
  export declare function commitOf(dir: string, ref: string): Promise<string>;
16
16
  /** Switches to a branch; `from` creates it at that commit, replacing a branch of that name. */
@@ -34,14 +34,14 @@ export async function filesIn(dir, ref, path) {
34
34
  export function currentBranch(dir) {
35
35
  return output(dir, ["branch", "--show-current"]);
36
36
  }
37
- /** Modified, staged or untracked files, in the whole tree or under a path. */
38
- export async function hasChanges(dir, path) {
37
+ /** Modified, staged or untracked files, in the whole tree or under a path, `except` one of its files. */
38
+ export async function hasChanges(dir, path, except) {
39
39
  return ((await output(dir, [
40
40
  "status",
41
41
  "--porcelain",
42
42
  // Every untracked file, whatever status.showUntrackedFiles says.
43
43
  "--untracked-files=all",
44
- ...(path ? ["--", path] : []),
44
+ ...(path ? ["--", path, ...(except ? [`:(exclude)${except}`] : [])] : []),
45
45
  ])) !== "");
46
46
  }
47
47
  export async function fetchBranch(dir, branch) {
@@ -1 +1 @@
1
- {"version":3,"file":"git.js","sourceRoot":"","sources":["../../src/system/git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,uEAAuE;AACvE,KAAK,UAAU,GAAG,CAAC,GAAW,EAAE,IAAc,EAAE,SAAS,GAAG,MAAM;IAChE,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC;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GAAW,EAAE,MAAc;IACzD,MAAM,GAAG,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IAC9B,MAAM,GAAG,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,GAAG,IAAI,GAAG,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;AAChF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clemrig/factory",
3
- "version": "0.4.0",
3
+ "version": "0.5.1",
4
4
  "description": "Take a repository's issues from spec to pull request with agents, watch them on a local Kanban, and run the repository's own workflows",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@clemrig/factory-ui": "0.1.0",
43
- "@clemrig/flow": "0.4.0",
44
- "@clemrig/flow-ui": "0.2.0"
43
+ "@clemrig/flow": "0.5.1",
44
+ "@clemrig/flow-ui": "0.4.0"
45
45
  }
46
46
  }