@chinhae/atw-cli 0.3.6 → 0.4.0
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 +188 -15
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +25 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/init.d.ts +3 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +154 -17
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/mode.d.ts +21 -0
- package/dist/commands/mode.d.ts.map +1 -0
- package/dist/commands/mode.js +401 -0
- package/dist/commands/mode.js.map +1 -0
- package/dist/commands/update.d.ts +7 -0
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +20 -13
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/workflow.d.ts +17 -0
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +9 -3
- package/dist/commands/workflow.js.map +1 -1
- package/dist/configurators/claude.d.ts +3 -2
- package/dist/configurators/claude.d.ts.map +1 -1
- package/dist/configurators/claude.js +3 -3
- package/dist/configurators/claude.js.map +1 -1
- package/dist/configurators/codex.d.ts +4 -3
- package/dist/configurators/codex.d.ts.map +1 -1
- package/dist/configurators/codex.js +10 -10
- package/dist/configurators/codex.js.map +1 -1
- package/dist/configurators/index.d.ts +9 -3
- package/dist/configurators/index.d.ts.map +1 -1
- package/dist/configurators/index.js +95 -17
- package/dist/configurators/index.js.map +1 -1
- package/dist/configurators/shared.d.ts +13 -0
- package/dist/configurators/shared.d.ts.map +1 -1
- package/dist/configurators/shared.js +25 -0
- package/dist/configurators/shared.js.map +1 -1
- package/dist/configurators/workflow.d.ts +15 -1
- package/dist/configurators/workflow.d.ts.map +1 -1
- package/dist/configurators/workflow.js +23 -5
- package/dist/configurators/workflow.js.map +1 -1
- package/dist/configurators/zcode.d.ts +1 -1
- package/dist/configurators/zcode.d.ts.map +1 -1
- package/dist/configurators/zcode.js +2 -2
- package/dist/configurators/zcode.js.map +1 -1
- package/dist/constants/paths.d.ts +4 -0
- package/dist/constants/paths.d.ts.map +1 -1
- package/dist/constants/paths.js +4 -0
- package/dist/constants/paths.js.map +1 -1
- package/dist/migrations/manifests/0.4.0.json +9 -0
- package/dist/templates/atw/index.d.ts +10 -1
- package/dist/templates/atw/index.d.ts.map +1 -1
- package/dist/templates/atw/index.js +11 -1
- package/dist/templates/atw/index.js.map +1 -1
- package/dist/templates/atw/scripts/add_session.py +34 -13
- package/dist/templates/atw/scripts/common/active_task.py +2 -2
- package/dist/templates/atw/scripts/common/config.py +13 -0
- package/dist/templates/atw/scripts/common/developer.py +15 -4
- package/dist/templates/atw/scripts/common/noob_mode.py +35 -15
- package/dist/templates/atw/scripts/common/packages_context.py +16 -3
- package/dist/templates/atw/scripts/common/session_context.py +77 -19
- package/dist/templates/atw/scripts/common/task_store.py +78 -27
- package/dist/templates/atw/scripts/noob_mode.py +16 -4
- package/dist/templates/atw/scripts/task.py +99 -38
- package/dist/templates/atw/workflow-general.md +554 -0
- package/dist/templates/atw/workflow.md +1 -1
- package/dist/templates/codex/hooks/session-start.py +69 -18
- package/dist/templates/common/bundled-skills/atw-noob-mode/SKILL.md +6 -4
- package/dist/templates/common/commands/start.md +43 -0
- package/dist/templates/copilot/hooks/session-start.py +69 -18
- package/dist/templates/dsh/DSH.md +43 -0
- package/dist/templates/markdown/agents.md +11 -0
- package/dist/templates/markdown/index.d.ts +9 -0
- package/dist/templates/markdown/index.d.ts.map +1 -1
- package/dist/templates/markdown/index.js +14 -1
- package/dist/templates/markdown/index.js.map +1 -1
- package/dist/templates/markdown/spec/conventions.md.txt +13 -0
- package/dist/templates/opencode/lib/atw-context.js +19 -0
- package/dist/templates/opencode/lib/session-utils.js +79 -24
- package/dist/templates/opencode/plugins/inject-workflow-state.js +18 -8
- package/dist/templates/pi/extensions/atw/index.ts.txt +20 -9
- package/dist/templates/shared-hooks/inject-shell-session-context.py +3 -3
- package/dist/templates/shared-hooks/inject-workflow-state.py +21 -2
- package/dist/templates/shared-hooks/session-start.py +70 -22
- package/dist/templates/snow/SNOW.md +30 -0
- package/dist/templates/snow/hooks/write-atw-context.py +64 -0
- package/dist/utils/manifest-prune.d.ts +2 -1
- package/dist/utils/manifest-prune.d.ts.map +1 -1
- package/dist/utils/manifest-prune.js +10 -7
- package/dist/utils/manifest-prune.js.map +1 -1
- package/dist/utils/optional-skills.d.ts.map +1 -1
- package/dist/utils/optional-skills.js +2 -1
- package/dist/utils/optional-skills.js.map +1 -1
- package/dist/utils/project-mode.d.ts +30 -0
- package/dist/utils/project-mode.d.ts.map +1 -0
- package/dist/utils/project-mode.js +86 -0
- package/dist/utils/project-mode.js.map +1 -0
- package/dist/utils/workflow-resolver.d.ts +9 -5
- package/dist/utils/workflow-resolver.d.ts.map +1 -1
- package/dist/utils/workflow-resolver.js +25 -11
- package/dist/utils/workflow-resolver.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<h1 align="center">A Team Workflow</h1>
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<strong>An AI
|
|
5
|
-
<sub>AI
|
|
4
|
+
<strong>An AI workflow framework that encodes your conventions into the process — for writing code, and for work that isn't code.</strong><br/>
|
|
5
|
+
<sub>AI works fast, but every session it starts from scratch — no memory of your project, your conventions, or what was agreed last time. ATW persists specs, tasks, and memory into your project. In <code>dev</code> mode any coding agent works to your team's engineering standards; in <code>general</code> mode the same record carries writing, research, organizing material and planning.</sub>
|
|
6
6
|
</p>
|
|
7
7
|
|
|
8
8
|
<p align="center">
|
|
@@ -13,8 +13,149 @@
|
|
|
13
13
|
<a href="https://www.npmjs.com/package/@chinhae/atw-cli"><img src="https://img.shields.io/npm/v/@chinhae/atw-cli.svg?style=flat-square&color=2563eb" alt="npm version" /></a>
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
|
+
## Two modes
|
|
17
|
+
|
|
18
|
+
A project is in one of two modes. The mode is a project setting — the `mode:`
|
|
19
|
+
line in `.atw/config.yaml`, committed with the project and shared by everyone
|
|
20
|
+
working in it — and it decides three things at once: which workflow the AI
|
|
21
|
+
follows, which skills and sub-agents are installed, and whether noob mode is on
|
|
22
|
+
by default.
|
|
23
|
+
|
|
24
|
+
| | `dev` (the default) | `general` |
|
|
25
|
+
| --- | --- | --- |
|
|
26
|
+
| For | Building software — whether or not you are an engineer | Work that is not code: writing, research, organizing material, planning |
|
|
27
|
+
| The AI follows | Six stages, four stops, tickets, review by sub-agents — see [How It Works](#how-it-works) | Talk it through → write it down → do it → check it, with two stops |
|
|
28
|
+
| Installed | 28 skills, the `/atw-continue` and `/atw-finish-work` commands, the `atw-implement-agent` and `atw-review` sub-agents, `.atw/spec/` by package and layer | 6 skills and one conventions file |
|
|
29
|
+
| Noob mode, for someone who never chose | Off | On |
|
|
30
|
+
|
|
31
|
+
A project with no `mode:` line is a `dev` project, so one set up before modes
|
|
32
|
+
existed needs no change.
|
|
33
|
+
|
|
34
|
+
### Choosing a mode
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
atw init -u your-name # in a terminal, asks what the project is for
|
|
38
|
+
atw init --mode general -u your-name # answers it up front
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
In a terminal, `atw init` asks a project that is not set up yet "What is this
|
|
42
|
+
project mainly for?". "Writing code" is `dev`; "Other work (writing, research,
|
|
43
|
+
organizing material, planning)" is `general`. `--mode dev` or `--mode general`
|
|
44
|
+
answers the question up front. With `--yes`, or when it is not run from a
|
|
45
|
+
terminal, the question is not asked and the project is `dev` unless `--mode`
|
|
46
|
+
says otherwise.
|
|
47
|
+
|
|
48
|
+
`--template` and `--registry` install coding guidelines, which a `general`
|
|
49
|
+
project does not have, so `atw init` refuses them there.
|
|
50
|
+
|
|
51
|
+
### Switching later
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
atw mode # show the current mode
|
|
55
|
+
atw mode general # switch to general
|
|
56
|
+
atw mode dev # and back
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
`atw mode <mode>` first prints what it is about to do, file by file: what will
|
|
60
|
+
be deleted, added and replaced, which files it keeps because you changed them,
|
|
61
|
+
and which tasks are not archived yet. Then it asks. Nothing on disk changes
|
|
62
|
+
before you confirm.
|
|
63
|
+
|
|
64
|
+
- A file you edited is not deleted. It stays where it is and the output names
|
|
65
|
+
it.
|
|
66
|
+
- Unarchived tasks do not block the switch. Both modes use the same task
|
|
67
|
+
statuses, so the tasks carry over.
|
|
68
|
+
- `-y, --yes` switches without asking. Without a terminal and without `--yes`,
|
|
69
|
+
the command prints the full list, changes nothing and exits with status 1 —
|
|
70
|
+
so it also serves as a preview.
|
|
71
|
+
- `-f, --force` replaces an edited `.atw/workflow.md` with the target mode's
|
|
72
|
+
workflow without asking.
|
|
73
|
+
- Asking for the mode the project is already in changes nothing and exits
|
|
74
|
+
normally.
|
|
75
|
+
- `atw init --mode` does not switch a project that is already set up; it stops
|
|
76
|
+
and points to `atw mode`.
|
|
77
|
+
|
|
78
|
+
Switching to `general` leaves an existing `.atw/spec/` tree where it is, unused.
|
|
79
|
+
Switching to `dev` puts the empty spec skeleton back when there is none.
|
|
80
|
+
|
|
81
|
+
### What `general` keeps, and what it drops
|
|
82
|
+
|
|
83
|
+
You say what you want in your own words; the AI runs the process.
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
Phase 1: Plan talk it through → write down what was agreed → you confirm
|
|
87
|
+
Phase 2: Do the AI does the work
|
|
88
|
+
Phase 3: Finish item-by-item check → you accept → archive and journal
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Kept:
|
|
92
|
+
|
|
93
|
+
- **Task records.** Anything beyond a small request gets a directory under
|
|
94
|
+
`.atw/tasks/`. The AI creates it itself instead of asking whether to; a small
|
|
95
|
+
request is just done, with no record.
|
|
96
|
+
- **Written down and confirmed.** Before starting, the AI writes what will be
|
|
97
|
+
done, what will not be done, and what counts as done into the task's
|
|
98
|
+
`prd.md`, shows it to you, and waits. When something is unclear it asks you
|
|
99
|
+
first, without being told to.
|
|
100
|
+
- **Checked against what was agreed.** When the work is finished the AI goes
|
|
101
|
+
through "what counts as done" item by item, with evidence, and waits for you
|
|
102
|
+
to accept.
|
|
103
|
+
- **Session memory.** After you accept, the AI archives the task and writes the
|
|
104
|
+
session journal itself. Say "continue" in a later session and it picks up
|
|
105
|
+
unfinished work. `atw mem` still searches earlier conversations.
|
|
106
|
+
- **Conventions, injected.** One flat file, `.atw/spec/conventions.md`, is
|
|
107
|
+
handed to the AI at the start of every session. When you correct the AI or
|
|
108
|
+
repeat a preference, it writes the rule there itself.
|
|
109
|
+
|
|
110
|
+
Dropped:
|
|
111
|
+
|
|
112
|
+
- **Tickets, and two of the four stops.** There is no `slice` stage, no "create
|
|
113
|
+
a task?" question and no `/atw-implement` to run. The two stops left are the
|
|
114
|
+
two above: confirming what was written down, and accepting the result. You
|
|
115
|
+
never type a command to move the work along.
|
|
116
|
+
- **22 of the 28 skills.** The six that stay: `atw-interview`, `atw-research`,
|
|
117
|
+
`atw-session-insight` and `atw-noob-mode`, which the AI also uses on its own,
|
|
118
|
+
and `/atw-askme` and `/atw-handoff`, which start only when you type them.
|
|
119
|
+
- **The `/atw-continue` and `/atw-finish-work` commands.** `/atw-start` stays on
|
|
120
|
+
platforms that have no session-start hook, in a version without the
|
|
121
|
+
spec-reading step. On platforms that turn commands into skills, such as
|
|
122
|
+
Codex, it shows up as a seventh skill, `atw-start`.
|
|
123
|
+
- **The sub-agents.** The closing check is done by the main session, not by an
|
|
124
|
+
independent reviewer. It is less strict than `dev` review, and your acceptance
|
|
125
|
+
is what backs it.
|
|
126
|
+
- **The spec tree.** No `.atw/spec/` by package and layer, and no
|
|
127
|
+
`00-bootstrap-guidelines` task to fill it in.
|
|
128
|
+
- **The need for git.** A `general` project works in an ordinary folder that is
|
|
129
|
+
not a git repository.
|
|
130
|
+
|
|
131
|
+
### Noob mode and project mode
|
|
132
|
+
|
|
133
|
+
The two are independent. The project mode decides the process: which stages,
|
|
134
|
+
which stops, which skills. Noob mode decides only how the AI talks to one
|
|
135
|
+
person — plain words, terms explained where they appear, every action explained
|
|
136
|
+
before it happens. It changes no stage, no stop and nothing in the task files,
|
|
137
|
+
and it is personal: one line in your own `.atw/.developer`, never committed.
|
|
138
|
+
|
|
139
|
+
The one link between them is the default for someone who has never chosen: on
|
|
140
|
+
in a `general` project, off in a `dev` project. Your own choice comes first.
|
|
141
|
+
Say "关闭小白模式" / "turn off noob mode", or run `/atw-noob-mode off`, and it
|
|
142
|
+
stays off — neither the project default nor a later change of project mode
|
|
143
|
+
turns it back on. `python3 ./.atw/scripts/noob_mode.py status` prints whether
|
|
144
|
+
it is on, and whether that comes from your own setting or from the project
|
|
145
|
+
default.
|
|
146
|
+
|
|
147
|
+
**Not technical, but building software? Use `dev` mode with noob mode on, not
|
|
148
|
+
`general`.** `general` takes away the spec, the tickets and the independent
|
|
149
|
+
review, and those are the protections software needs most when you cannot read
|
|
150
|
+
the code yourself. Noob mode keeps all of them and changes only the language.
|
|
151
|
+
|
|
16
152
|
## Why ATW?
|
|
17
153
|
|
|
154
|
+
This table describes `dev` mode, and so do [Set Up a Project](#set-up-a-project),
|
|
155
|
+
[How It Works](#how-it-works) and [Skills and sub-agents](#skills-and-sub-agents)
|
|
156
|
+
below, except where they say otherwise. Project memory, records shared through
|
|
157
|
+
the repo and multi-platform setup hold in `general` mode as well.
|
|
158
|
+
|
|
18
159
|
| Capability | What it changes |
|
|
19
160
|
| --- | --- |
|
|
20
161
|
| **A task record with six stages** | Every task moves through `discover → specify → slice → implement → accept → completed`. The stage lives in `task.json`, and a per-turn hook injects that stage's rules into the session — so the AI knows where it is without being told again. |
|
|
@@ -41,16 +182,24 @@ atw init -u your-name
|
|
|
41
182
|
|
|
42
183
|
# 3. Or initialize with the platforms you actually use
|
|
43
184
|
atw init --cursor --opencode --codex -u your-name
|
|
185
|
+
|
|
186
|
+
# 4. Or set the project up for work that is not code
|
|
187
|
+
atw init --mode general -u your-name
|
|
44
188
|
```
|
|
45
189
|
|
|
46
190
|
In a terminal, `atw init` opens by asking which language its own prompts should
|
|
47
|
-
use — 中文 or English —
|
|
48
|
-
[
|
|
49
|
-
|
|
50
|
-
|
|
191
|
+
use — 中文 or English — then asks a project that is not set up yet what it is
|
|
192
|
+
mainly for (see [Two modes](#two-modes)), and closes by offering extra skills to
|
|
193
|
+
install (see [Extra skills](#extra-skills)). With `--yes`, or when it is not run
|
|
194
|
+
from a terminal, it asks none of these: the prompts stay English, the project
|
|
195
|
+
is `dev` unless `--mode` says otherwise, and no extra skill is installed.
|
|
51
196
|
|
|
52
197
|
## Set Up a Project
|
|
53
198
|
|
|
199
|
+
This section is for a `dev` project. A `general` project needs neither step:
|
|
200
|
+
`/atw-init-repo` is not installed there and there is no spec tree to fill, so
|
|
201
|
+
you can start talking to the AI right after `atw init`.
|
|
202
|
+
|
|
54
203
|
`atw init` writes the files. Two one-time steps make them useful. Order between
|
|
55
204
|
them doesn't matter; the AI does most of the work in both.
|
|
56
205
|
|
|
@@ -85,6 +234,9 @@ where issues and research notes belong.
|
|
|
85
234
|
|
|
86
235
|
## How It Works
|
|
87
236
|
|
|
237
|
+
This is the `dev` workflow. The `general` workflow is under
|
|
238
|
+
[What `general` keeps, and what it drops](#what-general-keeps-and-what-it-drops).
|
|
239
|
+
|
|
88
240
|
ATW runs three phases over a six-stage task record:
|
|
89
241
|
|
|
90
242
|
```
|
|
@@ -158,14 +310,31 @@ Outside these four, the AI advances stages on its own. It does not stop to ask
|
|
|
158
310
|
└── scripts/ the Python that reads and writes all of it
|
|
159
311
|
```
|
|
160
312
|
|
|
313
|
+
A `general` project gets a smaller tree:
|
|
314
|
+
|
|
315
|
+
```
|
|
316
|
+
.atw/
|
|
317
|
+
├── spec/conventions.md what you asked for more than once, injected every session
|
|
318
|
+
├── tasks/MM-DD-<slug>/
|
|
319
|
+
│ ├── task.json status and metadata
|
|
320
|
+
│ ├── prd.md what will be done, what will not, what counts as done
|
|
321
|
+
│ └── research/<topic>.md notes from looking things up, one file per topic
|
|
322
|
+
├── workspace/<you>/ per-person session journals
|
|
323
|
+
├── workflow.md the general workflow
|
|
324
|
+
└── scripts/ the Python that reads and writes all of it
|
|
325
|
+
```
|
|
326
|
+
|
|
161
327
|
`workflow.md` is a file in your project, not something baked into the CLI —
|
|
162
328
|
`atw workflow` switches it between the built-in `native` template and anything
|
|
163
329
|
published to the workflow marketplace, and editing it changes what the AI
|
|
164
|
-
actually does.
|
|
330
|
+
actually does. `native` is the workflow that comes with the project's mode: the
|
|
331
|
+
`dev` workflow in a `dev` project, the `general` one in a `general` project.
|
|
165
332
|
|
|
166
333
|
## Skills and sub-agents
|
|
167
334
|
|
|
168
|
-
28 skills install into every configured platform
|
|
335
|
+
In `dev` mode, 28 skills install into every configured platform; in `general`
|
|
336
|
+
mode, six do (see [Two modes](#two-modes)). The ones you reach for daily in
|
|
337
|
+
`dev`:
|
|
169
338
|
|
|
170
339
|
| Skill | For |
|
|
171
340
|
| --- | --- |
|
|
@@ -179,13 +348,14 @@ actually does.
|
|
|
179
348
|
| `/atw-diagnosing-bugs` | the same bug got fixed more than once |
|
|
180
349
|
| `/atw-update-spec` | promote a learning back into `.atw/spec/` |
|
|
181
350
|
| `/atw-channel` | multi-agent collaboration over a durable local event log |
|
|
182
|
-
| `/atw-noob-mode` | plain-language mode for a user who is not an engineer: terms explained where they appear, every action explained before it happens, in every stage until switched off — say "开启小白模式" / "turn on noob mode", or run it; personal, never committed |
|
|
351
|
+
| `/atw-noob-mode` | plain-language mode for a user who is not an engineer: terms explained where they appear, every action explained before it happens, in every stage until switched off — say "开启小白模式" / "turn on noob mode", or run it; personal, never committed; off by default in `dev`, on by default in `general` |
|
|
183
352
|
|
|
184
353
|
Three commands sit alongside them: `/atw-start` loads session context on
|
|
185
354
|
platforms that have no session-start hook, `/atw-continue` resumes the current
|
|
186
355
|
task at the right step, and `/atw-finish-work` archives the task and writes the
|
|
187
356
|
session journal. Nothing is committed there — the implement chain commits per
|
|
188
|
-
ticket, long before a task reaches it.
|
|
357
|
+
ticket, long before a task reaches it. Of the three, a `general`
|
|
358
|
+
project keeps only `/atw-start`: the AI resumes and files the work itself.
|
|
189
359
|
|
|
190
360
|
`/atw-implement` writes the code in your main session; `atw-review` sub-agents
|
|
191
361
|
review the diff so the review does not share the implementer's context.
|
|
@@ -196,9 +366,9 @@ On top of the built-in skills, `atw init` can install optional ones. They are
|
|
|
196
366
|
not part of ATW: the list and the skills themselves are downloaded from
|
|
197
367
|
[LFT-OXY/oxy-Tools](https://github.com/LFT-OXY/oxy-Tools) when you ask for
|
|
198
368
|
them. At the end of every run — the first one and any later one in the same
|
|
199
|
-
project — init asks whether you want any, shows the list with
|
|
200
|
-
each skill does, and installs the ones you tick into the skill
|
|
201
|
-
each configured platform.
|
|
369
|
+
project, in either mode — init asks whether you want any, shows the list with
|
|
370
|
+
one line on what each skill does, and installs the ones you tick into the skill
|
|
371
|
+
directory of each configured platform.
|
|
202
372
|
|
|
203
373
|
- `atw update` checks that list and replaces an installed extra skill when it
|
|
204
374
|
names another version. The skill's whole directory is replaced without
|
|
@@ -213,6 +383,7 @@ atw init # set up this repo, optionally per-platform
|
|
|
213
383
|
atw platforms # show which platforms are configured here
|
|
214
384
|
atw update # pull new template bodies into this repo, refresh extra skills
|
|
215
385
|
atw workflow # list or switch the .atw/workflow.md template
|
|
386
|
+
atw mode # show the project's mode, or switch it between dev and general
|
|
216
387
|
atw upgrade # upgrade the CLI itself
|
|
217
388
|
atw mem # search conversation history across Claude Code, Codex, OpenCode, Pi
|
|
218
389
|
atw channel # multi-agent collaboration runtime
|
|
@@ -229,7 +400,8 @@ Those files are useful entry points, but they tend to become monolithic, and
|
|
|
229
400
|
they say the same thing on every turn regardless of what you are doing. ATW adds
|
|
230
401
|
a stage the work is actually in, specs scoped to the package and layer you are
|
|
231
402
|
touching, a spec you confirmed before implementation started, and four points
|
|
232
|
-
where the AI has to stop and ask you.
|
|
403
|
+
where the AI has to stop and ask you. A `general` project keeps the stage and
|
|
404
|
+
the confirmed write-up, with one conventions file and two stops.
|
|
233
405
|
|
|
234
406
|
</details>
|
|
235
407
|
|
|
@@ -268,7 +440,8 @@ platform portability.
|
|
|
268
440
|
No. Many teams start by letting AI draft specs from existing code and then
|
|
269
441
|
tighten the important parts by hand. `/atw-update-spec` promotes learnings back
|
|
270
442
|
as you go. ATW works best when you keep the high-signal rules explicit and
|
|
271
|
-
versioned.
|
|
443
|
+
versioned. A `general` project has no spec files to write: the AI adds to
|
|
444
|
+
`.atw/spec/conventions.md` as you correct it.
|
|
272
445
|
|
|
273
446
|
</details>
|
|
274
447
|
|
package/dist/cli/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAMhE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
package/dist/cli/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import { uninstall } from "../commands/uninstall.js";
|
|
|
9
9
|
import { ablate, restore } from "../commands/ablate.js";
|
|
10
10
|
import { runMem } from "../commands/mem.js";
|
|
11
11
|
import { runWorkflowCommand, WorkflowCommandError, } from "../commands/workflow.js";
|
|
12
|
+
import { runModeCommand } from "../commands/mode.js";
|
|
12
13
|
import { registerChannelCommand } from "../commands/channel/index.js";
|
|
13
14
|
import { DIR_NAMES } from "../constants/paths.js";
|
|
14
15
|
import { PACKAGE_NAME, VERSION } from "../constants/version.js";
|
|
@@ -46,7 +47,7 @@ if (fs.existsSync(path.join(cwd, DIR_NAMES.WORKFLOW))) {
|
|
|
46
47
|
const program = new Command();
|
|
47
48
|
program
|
|
48
49
|
.name("atw")
|
|
49
|
-
.description("AI
|
|
50
|
+
.description("AI workflow framework for writing code and for work that isn't code, on Cursor, Claude Code and more")
|
|
50
51
|
.version(VERSION, "-v, --version", "output the version number");
|
|
51
52
|
program
|
|
52
53
|
.command("init")
|
|
@@ -76,6 +77,7 @@ program
|
|
|
76
77
|
.option("--snow", "Include Snow CLI skills and commands")
|
|
77
78
|
.option("--with-statusline", "Install the ATW statusLine for Claude Code (off by default)")
|
|
78
79
|
.option("-y, --yes", "Skip prompts and use defaults")
|
|
80
|
+
.option("--mode <mode>", "What the project is for: dev (writing code, the default) or general (other work)")
|
|
79
81
|
.option("-u, --user <name>", "Initialize developer identity with specified name")
|
|
80
82
|
.option("-f, --force", "Overwrite existing files without asking")
|
|
81
83
|
.option("-s, --skip-existing", "Skip existing files without asking")
|
|
@@ -261,6 +263,28 @@ program
|
|
|
261
263
|
process.exit(1);
|
|
262
264
|
}
|
|
263
265
|
});
|
|
266
|
+
program
|
|
267
|
+
.command("mode")
|
|
268
|
+
.description("Show the project's mode, or switch it: dev (writing code) or general (other work)")
|
|
269
|
+
.argument("[mode]", "Mode to switch to: dev or general")
|
|
270
|
+
.option("-y, --yes", "Switch without asking for confirmation")
|
|
271
|
+
.option("-f, --force", "Replace a modified .atw/workflow.md with the target mode's workflow without asking")
|
|
272
|
+
.action(async (mode, options) => {
|
|
273
|
+
try {
|
|
274
|
+
await runModeCommand({
|
|
275
|
+
target: mode,
|
|
276
|
+
yes: options.yes,
|
|
277
|
+
force: options.force,
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
catch (error) {
|
|
281
|
+
console.error(chalk.red("Error:"), error instanceof Error ? error.message : error);
|
|
282
|
+
if (process.env.DEBUG || process.env.ATW_DEBUG) {
|
|
283
|
+
console.error(error instanceof Error ? error.stack : error);
|
|
284
|
+
}
|
|
285
|
+
process.exit(1);
|
|
286
|
+
}
|
|
287
|
+
});
|
|
264
288
|
program
|
|
265
289
|
.command("platforms")
|
|
266
290
|
.description("Show which AI platforms are configured (active) in the current project")
|
package/dist/cli/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EACL,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,uFAAuF;AACvF,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;AAEjC;;GAEG;AACH,SAAS,eAAe,CAAC,GAAW;IAClC,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IAEnE,IAAI,CAAC,EAAE,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C;QACf,OAAO,CAAC,KAAK,CACX,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EACnB,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAC/C,CAAC;QACF,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;YAC/C,OAAO,CAAC,KAAK,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAC9D,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC,CAAC;AAEL,sBAAsB,CAAC,OAAO,CAAC,CAAC;AAEhC,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
package/dist/commands/init.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare function resolveSupportedPython(): {
|
|
|
17
17
|
command: string;
|
|
18
18
|
version: string;
|
|
19
19
|
};
|
|
20
|
+
export declare const BOOTSTRAP_TASK_NAME = "00-bootstrap-guidelines";
|
|
20
21
|
/**
|
|
21
22
|
* Slugify a developer name for safe use in task directory names.
|
|
22
23
|
*
|
|
@@ -63,6 +64,8 @@ interface InitOptions {
|
|
|
63
64
|
monorepo?: boolean;
|
|
64
65
|
/** Claude Code only: install the opt-in ATW statusLine (--with-statusline) */
|
|
65
66
|
withStatusline?: boolean;
|
|
67
|
+
/** 项目模式(--mode):`dev` 或 `general`。 */
|
|
68
|
+
mode?: string;
|
|
66
69
|
workflow?: string;
|
|
67
70
|
workflowSource?: string;
|
|
68
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings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