fanout-cli 0.9.1 → 0.9.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fanout-cli",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "Let Claude Code lead the other coding-agent CLIs you already pay for.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -14,10 +14,12 @@
14
14
  },
15
15
  "homepage": "https://github.com/elberacasa/fanout#readme",
16
16
  "bin": {
17
- "fanout": "./src/cli.ts"
17
+ "fanout": "./dist/cli.js"
18
18
  },
19
19
  "exports": {
20
- ".": "./src/main.ts"
20
+ ".": {
21
+ "default": "./dist/cli.js"
22
+ }
21
23
  },
22
24
  "files": [
23
25
  "dist",
@@ -25,20 +27,11 @@
25
27
  "README.md",
26
28
  "LICENSE"
27
29
  ],
28
- "publishConfig": {
29
- "exports": {
30
- ".": {
31
- "default": "./dist/cli.js"
32
- }
33
- },
34
- "bin": {
35
- "fanout": "./dist/cli.js"
36
- }
37
- },
38
30
  "scripts": {
39
31
  "typecheck": "tsc -p tsconfig.json",
40
32
  "build": "node ../../scripts/bundle-cli.mjs",
41
- "prepack": "node ../../scripts/bundle-cli.mjs"
33
+ "prepack": "node ../../scripts/bundle-cli.mjs",
34
+ "prepublishOnly": "node ../../scripts/check-publish.mjs"
42
35
  },
43
36
  "dependencies": {
44
37
  "@modelcontextprotocol/sdk": "1.30.0",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fanout",
3
3
  "description": "Lead a crew of the coding-agent CLIs you already pay for: plan, fan out into isolated git worktrees, watch, and review before anything merges.",
4
- "version": "0.9.1",
4
+ "version": "0.9.2",
5
5
  "author": {
6
6
  "name": "elberacasa"
7
7
  },
@@ -7,24 +7,30 @@ The user wants this done by the crew: **$ARGUMENTS**
7
7
 
8
8
  You are the lead. Work in this order, and do not skip the parts that keep it safe.
9
9
 
10
- 1. **Look before planning.** Call `repo_overview` and `seats`. If no seat is ready, say so and stop: there is no
10
+ 1. **Say back what you heard, before anything else.** Restate the goal in one line `Planning: <goal>` in the
11
+ words you received it in. A prompt pasted into a terminal can arrive with characters missing, silently: a real
12
+ paste turned "fails on the old code" into "fails on the olcode" and nothing reported it. A goal that lost a
13
+ word still produces a confident plan, and every step after that looks reasonable, so this line is the only
14
+ place the input itself is ever visible. If it reads as truncated, contradictory or half a sentence, ask
15
+ instead of guessing.
16
+ 2. **Look before planning.** Call `repo_overview` and `seats`. If no seat is ready, say so and stop: there is no
11
17
  crew to lead.
12
- 2. **Split the work honestly.** One line per piece that can stand alone, each with:
18
+ 3. **Split the work honestly.** One line per piece that can stand alone, each with:
13
19
  - a **write scope** narrow enough that no two lines that run at once can touch the same file;
14
20
  - a **prompt** that names the exact files, the expected behaviour with an example, the project's check commands,
15
21
  and "do not commit";
16
22
  - a **seat**: give the risky or subtle piece to the strongest seat, the mechanical piece to the cheapest, and
17
23
  read-only work to an auditor. Claude is opt-in; prefer the other subscriptions.
18
24
  Dependent work goes in `dependsOn` rather than in one big line.
19
- 3. **Check before launching.** Call `plan_check`. Fix what it blocks; do not argue with it. Show the user the plan
25
+ 4. **Check before launching.** Call `plan_check`. Fix what it blocks; do not argue with it. Show the user the plan
20
26
  as a short list (line, seat, scope) and the dry run if they ask.
21
- 4. **Launch** with `launch`, then tell the user the mission id and what each line is doing.
22
- 5. **Watch** with `mission_status`. While runs are going, do not start unrelated work in this session: you are the
27
+ 5. **Launch** with `launch`, then tell the user the mission id and what each line is doing.
28
+ 6. **Watch** with `mission_status`. While runs are going, do not start unrelated work in this session: you are the
23
29
  lead, and reviewing is your job.
24
- 6. **Review each finished run** with `run_diff`. Read the risky lines yourself. Anything written outside its scope
30
+ 7. **Review each finished run** with `run_diff`. Read the risky lines yourself. Anything written outside its scope
25
31
  is the first thing you look at. Then tell the user, per run: what it changed, what you would keep, what you would
26
32
  not, and what you could not verify.
27
- 7. **Merging is the user's call, and it is not automatic.** Apply a diff yourself only when they say so, run the
33
+ 8. **Merging is the user's call, and it is not automatic.** Apply a diff yourself only when they say so, run the
28
34
  project's real checks afterwards, and never present an agent's "tests pass" as your own verification.
29
35
 
30
36
  If something fails, say which line, why, and what you propose — never "it didn't work".
package/src/cli.ts DELETED
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env node
2
- // First, and it has to stay first: it silences a warning that fires while the imports below are evaluating.
3
- import "./quiet.ts";
4
- import { main } from "./main.ts";
5
-
6
- /* The thin edge of the CLI: everything testable lives in main.ts, which takes its output as an argument. */
7
-
8
- const code = await main(process.argv.slice(2), {
9
- out: (text) => process.stdout.write(text),
10
- err: (text) => process.stderr.write(text),
11
- });
12
- process.exitCode = code;