@ai-atomic-framework/cli 0.1.20 → 0.1.21

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
@@ -1,20 +1,44 @@
1
1
  # @ai-atomic-framework/cli
2
2
 
3
- CLI owns command entrypoints and run envelopes. The skeleton reserves the `atm` binary while later tasks define concrete commands.
3
+ Day-1 install and first governed write for ATM. Checked against npm 0.1.20 (`welcome` field `evidence.versions.frameworkVersion`). Commands below are what that release actually runs.
4
4
 
5
- Current standalone commands include `bootstrap`, `init`, `self-host-alpha`, `spec`, `status`, `task-view`, `test`, `validate`, and `verify`.
5
+ ## New project
6
6
 
7
- ## Operator lanes (normal path)
7
+ `create-atm` is the newcomer entry. It installs this CLI, runs `git init`, and makes the first commit. Set Git `user.name` and `user.email` first (`git config --global user.name` / `git config --global user.email`). If the initial commit fails, the files are kept: set the Git author inside the project, `git add -A`, and `git commit -m "chore: initialize ATM project"`.
8
8
 
9
- | Command | Role |
10
- |---|---|
11
- | `taskflow open` / `taskflow close` | Governed dual-repo open and closeback. Prefer over backend `tasks close`. |
12
- | `taskflow pre-close` | Read-only blocker summary before `close --write`. |
13
- | `task-view --task <id>` | Read-only dashboard: status triangulation, evidence blockers, close completion checklist, next safe command. |
14
- | `next` | Route the next governed action; do not skip for parallel agents. |
15
- | `git commit --task <id>` | Task-scoped delivery and governance commits with ATM trailers. |
9
+ ```bash
10
+ npx --yes create-atm@latest my-app --agent cursor --json
11
+ ```
16
12
 
17
- Closeback operator sequence, banned patterns, foreign staged restore, and
18
- checklist fields: `docs/ATM_NEW_USER_WORKFLOW.md` (Closeback operator runbook).
19
- Protected backend surfaces (`tasks repair-closure`, `tasks reconcile`) are
20
- emergency repair only.
13
+ ## Existing repository
14
+
15
+ Keep this install at a stable path. `setup` writes that path into the project's `atm.mjs`.
16
+
17
+ ```bash
18
+ npm install --prefix ~/atm-runner @ai-atomic-framework/cli@latest
19
+ node ~/atm-runner/node_modules/@ai-atomic-framework/cli/dist/npm-runtime/atm.mjs setup --cwd /absolute/path/to/existing-repo --agents cursor --json
20
+ ```
21
+
22
+ ## Version pin
23
+
24
+ Pin `evidence.versions.frameworkVersion` from `node atm.mjs welcome --json`. On 0.1.20, `evidence.versions.releaseTrain.frameworkVersion` is `0.0.0`; do not pin to it. Git tags such as `v0.9.0-alpha.1` are paper snapshots, not this package.
25
+
26
+ ## First governed write
27
+
28
+ Day-1 commands: `welcome`, `next`, `taskflow`, `evidence`, `doctor`. From the project root:
29
+
30
+ **Empty queue: skip `guide`, `orient`, and `start`.** **After claim, `nextAction.command` is `implement-deliverables`**, the same sentinel as `playbook.commandSequence[0]`. It is the file edit, not a shell command. **Replace every `<...>` placeholder; this block has none.** **Do not dump the JSON; use `jq`.**
31
+
32
+ ```bash
33
+ node atm.mjs taskflow open --write --actor newcomer-ai --title "Add hello.txt" --goal "Create hello.txt with one line of text." --scope-path hello.txt --validator "test -f hello.txt" --json > /tmp/atm-open.json
34
+ TASK=$(jq -r '.evidence.generation.taskId' /tmp/atm-open.json)
35
+ node atm.mjs next --claim --actor newcomer-ai --task "$TASK" --json > /tmp/atm-claim.json
36
+ printf 'hello\n' > hello.txt
37
+ EVIDENCE=$(jq -r '.evidence.nextAction.playbook.commandSequence[] | select(startswith("node atm.mjs evidence run"))' /tmp/atm-claim.json)
38
+ CLOSE=$(jq -r '.evidence.nextAction.playbook.commandSequence[] | select(startswith("node atm.mjs taskflow close") and contains(" --write "))' /tmp/atm-claim.json)
39
+ bash -c "$EVIDENCE" > /tmp/atm-evidence.json
40
+ bash -c "$CLOSE" > /tmp/atm-close.json
41
+ jq -r '.ok, .messages[0].code' /tmp/atm-close.json
42
+ ```
43
+
44
+ `close --write` commits the deliverables. It needs the playbook's `--lane-session` and Git `user.name` / `user.email`. A missing Git author is `ATM_CLI_UNHANDLED` with no `identity set` hint. ATM `identity set` is an actor profile, not that Git author. Captain, dispatch, and wave flows are day 2+.
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "schemaId": "atm.runtimeBuildIdentity.v1",
3
- "sourceCommit": "cc1f362ed3ebc3730996d4d80b08df2f200bcfd2",
4
- "sourceDigest": "f23868ff71192b9c11c0368419d58a3a37f73ee2c41cbb5fa9e9cc4ac7befd7d",
3
+ "sourceCommit": "3faf627b25219cbb72c00bd300777796cdae040f",
4
+ "sourceDigest": "a9b60b1d661d449b7d8e05980a3d78a6a6ed91c56b4766e6bb16f24288d2656d",
5
5
  "packageName": "@ai-atomic-framework/cli",
6
- "version": "0.1.20",
6
+ "version": "0.1.21",
7
7
  "files": [
8
8
  {
9
9
  "path": "atm.mjs",
@@ -319,7 +319,7 @@
319
319
  },
320
320
  {
321
321
  "path": "data/templates/root-drop/AGENTS.md",
322
- "sha256": "d0f37b6cccf2fa080ae23a6b0b7729fdf3a39dc020f6357a84acf2e6b9b9176f"
322
+ "sha256": "ffc21db09c612133c13a305b5b7f590d4b689cd0f64f46ba9180591fc070db3c"
323
323
  },
324
324
  {
325
325
  "path": "index.d.ts",
@@ -331,8 +331,8 @@
331
331
  },
332
332
  {
333
333
  "path": "runtime.mjs",
334
- "sha256": "525970c7a8058a96013a9254b49c1b8181737c923a1ae099e74e7dffbd899d13"
334
+ "sha256": "6f3bbc1ec0369a5ca32d7b1b8ff6762f6e54d1bb2521a824b919ce9adbe29276"
335
335
  }
336
336
  ],
337
- "buildId": "95c63d83a6bd7c5c84a7bc874ca750d5588ed26946b5e0c010a8889040cfbb98"
337
+ "buildId": "4e8dfdafab659c31f2d47a8a44206b888414ca7e34a5fd320443f4bb5fba93e1"
338
338
  }
@@ -1,6 +1,32 @@
1
1
  <!-- ATM TEMPLATE: root-drop-agent-instructions -->
2
2
  # ATM Bootstrap Instructions
3
3
 
4
+ ## Day 1
5
+
6
+ Use only these five commands: `welcome`, `next`, `taskflow`, `evidence`, `doctor`.
7
+
8
+ **Empty queue: skip `guide`, `orient`, and `start`.** **Trust `evidence.nextAction.playbook` over a conflicting `nextAction.command`** (after claim it is often `start`; do not paste it). **Replace every `<...>` placeholder before pasting; unquoted `<id>` is a shell redirect.** **Do not dump the JSON. Write it to a file and extract fields with `jq`.**
9
+
10
+ First governed write, from the project root. Change the title, goal, scope file, and validator for the real task. `--lane-session` is inside the playbook lines; do not invent it. `create-atm` writes `{{ATM_COMMAND_PREFIX}}` as the entrypoint.
11
+
12
+ ```bash
13
+ {{ATM_COMMAND_PREFIX}} taskflow open --write --actor newcomer-ai --title "Add hello.txt" --goal "Create hello.txt with one line of text." --scope-path hello.txt --validator "test -f hello.txt" --json > /tmp/atm-open.json
14
+ TASK=$(jq -r '.evidence.generation.taskId' /tmp/atm-open.json)
15
+ {{ATM_COMMAND_PREFIX}} next --claim --actor newcomer-ai --task "$TASK" --json > /tmp/atm-claim.json
16
+ printf 'hello\n' > hello.txt
17
+ EVIDENCE=$(jq -r '.evidence.nextAction.playbook.commandSequence[] | select(startswith("{{ATM_COMMAND_PREFIX}} evidence run"))' /tmp/atm-claim.json)
18
+ CLOSE=$(jq -r '.evidence.nextAction.playbook.commandSequence[] | select(startswith("{{ATM_COMMAND_PREFIX}} taskflow close") and contains(" --write "))' /tmp/atm-claim.json)
19
+ bash -c "$EVIDENCE" > /tmp/atm-evidence.json
20
+ bash -c "$CLOSE" > /tmp/atm-close.json
21
+ jq -r '.ok, .messages[0].code' /tmp/atm-close.json
22
+ ```
23
+
24
+ `welcome --json` reports the product version at `evidence.versions.frameworkVersion`. Pin that npm version. Do not pin `evidence.versions.releaseTrain.frameworkVersion` or a git tag such as `v0.9.0-alpha.1`. Git `user.name` / `user.email` are required for the commit `taskflow close --write` creates. ATM `identity set` is a different actor profile and is not the recovery hint when that commit fails.
25
+
26
+ ## Day 2+
27
+
28
+ Captain, dispatch, wave, batch, and team flows are not day-1 work.
29
+
4
30
  This repository uses the default ATM bootstrap pack.
5
31
 
6
32
  Captain/dispatch entry gate: if the user asks for Captain, Coordinator, dispatch, task cards, sidecars, subagents, delegation, condition review, or closeout work, first route the request through `ai-role-router` when available, then through `atm-dispatch` before drafting instructions, delegating work, or reviewing another agent. State `Skill used: atm-dispatch` and the chosen `Delegation mode`. Internal sidecar is the default for review, preflight, grep, checklist, planning-only checks, and post-report verification. External dispatch is opt-in, and external write is forbidden unless the user explicitly grants write authority and scope.
@@ -13,7 +39,7 @@ If the request says to finish all task cards, a whole plan, a task family, or mu
13
39
 
14
40
  Use `{{ATM_COMMAND_PREFIX}} next --json` only as read-only repository orientation when there is no current user prompt.
15
41
 
16
- For ordinary work with no matching task card, open one yourself with `{{ATM_COMMAND_PREFIX}} taskflow open --write --actor <id> --title "<title>" --goal "<goal>" --scope-path "<files>" --validator "<command>" --json` (cards live in `docs/tasks/`), claim it with `next --claim --task <TASK-ID>`, and pass the playbook's `--lane-session <id>` to every later ATM command.
42
+ For ordinary work with no matching task card, use the Day-1 short path at the top of this file. Cards are written to `docs/tasks/`. Do not paste unquoted placeholders, and do not paste `nextAction.command` when it disagrees with the playbook.
17
43
 
18
44
  First-contact behavior:
19
45
 
@@ -76,7 +76,7 @@
76
76
  "path": "build-identity.json",
77
77
  "kind": "runtime-entrypoint",
78
78
  "bytes": 15023,
79
- "sha256": "sha256:680d0c5dbf0578ca10100f8433e1e158caed4f11438ee0c3f0cf0253e80d471a"
79
+ "sha256": "sha256:24e38f0ddde625cc73e00253e2a85689a86d65e95200fa2547af464752f42158"
80
80
  },
81
81
  {
82
82
  "path": "data/_vendor/atm-markdown-task-source/templates/aao-l2-split-template.md",
@@ -543,8 +543,8 @@
543
543
  {
544
544
  "path": "data/templates/root-drop/AGENTS.md",
545
545
  "kind": "immutable-runtime-asset",
546
- "bytes": 5112,
547
- "sha256": "sha256:d0f37b6cccf2fa080ae23a6b0b7729fdf3a39dc020f6357a84acf2e6b9b9176f"
546
+ "bytes": 7042,
547
+ "sha256": "sha256:ffc21db09c612133c13a305b5b7f590d4b689cd0f64f46ba9180591fc070db3c"
548
548
  },
549
549
  {
550
550
  "path": "index.d.ts",
@@ -561,10 +561,10 @@
561
561
  {
562
562
  "path": "runtime.mjs",
563
563
  "kind": "runtime-entrypoint",
564
- "bytes": 2560031,
565
- "sha256": "sha256:525970c7a8058a96013a9254b49c1b8181737c923a1ae099e74e7dffbd899d13"
564
+ "bytes": 2586381,
565
+ "sha256": "sha256:6f3bbc1ec0369a5ca32d7b1b8ff6762f6e54d1bb2521a824b919ce9adbe29276"
566
566
  }
567
567
  ],
568
568
  "fileCount": 84,
569
- "totalBytes": 2893300
569
+ "totalBytes": 2921580
570
570
  }