@ai-atomic-framework/cli 0.1.20 → 0.1.22
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
|
-
|
|
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
|
-
|
|
5
|
+
## New project
|
|
6
6
|
|
|
7
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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": "
|
|
4
|
-
"sourceDigest": "
|
|
3
|
+
"sourceCommit": "b0ec7c1c21c5eab1d95323e968a8a40cbfe9a678",
|
|
4
|
+
"sourceDigest": "92cc7230033c7f2c0a074a7fab133349dfecfb944072b984500dc37d748fb33f",
|
|
5
5
|
"packageName": "@ai-atomic-framework/cli",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.22",
|
|
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": "
|
|
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": "
|
|
334
|
+
"sha256": "ac12d4b5912609158f9a36b09499605f1d99ebc4dbf3512502df3743fc3a6469"
|
|
335
335
|
}
|
|
336
336
|
],
|
|
337
|
-
"buildId": "
|
|
337
|
+
"buildId": "3802786da73b8050c9cc8970fa119cd2e6bd48635db10af30e1ddf5be8e94ed0"
|
|
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,
|
|
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:
|
|
79
|
+
"sha256": "sha256:593b166df759250d2b539d51dfcaf2763b89ab69af97abe50d369bee44fa8119"
|
|
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":
|
|
547
|
-
"sha256": "sha256:
|
|
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":
|
|
565
|
-
"sha256": "sha256:
|
|
564
|
+
"bytes": 2655449,
|
|
565
|
+
"sha256": "sha256:ac12d4b5912609158f9a36b09499605f1d99ebc4dbf3512502df3743fc3a6469"
|
|
566
566
|
}
|
|
567
567
|
],
|
|
568
568
|
"fileCount": 84,
|
|
569
|
-
"totalBytes":
|
|
569
|
+
"totalBytes": 2990648
|
|
570
570
|
}
|