@sumrco/cli 0.3.7 → 0.3.8
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 +137 -2
- package/ai/modules/playbook/resources/authoring/overview.md +22 -0
- package/index.js +433 -421
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
</h1>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
|
-
<strong>
|
|
8
|
+
<strong>Keep developers and AI tools aligned with repeatable project setup, API contracts, team knowledge, and delivery workflows.</strong>
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
@@ -17,20 +17,155 @@
|
|
|
17
17
|
<a href="#-install">Install</a>
|
|
18
18
|
·
|
|
19
19
|
<a href="#-quick-start">Quick start</a>
|
|
20
|
+
·
|
|
21
|
+
<a href="#-commands">Commands</a>
|
|
22
|
+
·
|
|
23
|
+
<a href="#-modules">Modules</a>
|
|
20
24
|
</p>
|
|
21
25
|
|
|
22
26
|
---
|
|
23
27
|
|
|
28
|
+
## ✨ Why the SUMR CLI?
|
|
29
|
+
|
|
30
|
+
Store shared setup beside the code it affects. Developers and AI tools use the same versioned files
|
|
31
|
+
and repeatable commands.
|
|
32
|
+
|
|
33
|
+
Use it to:
|
|
34
|
+
|
|
35
|
+
- create and migrate a project's `sumr.yaml` configuration;
|
|
36
|
+
- generate and validate API contract artifacts with Kontract;
|
|
37
|
+
- sync Playbook Documents into supported AI Channels;
|
|
38
|
+
- track plans, evidence, reviews, and next actions with Mission.
|
|
39
|
+
|
|
24
40
|
## 🚀 Install
|
|
25
41
|
|
|
42
|
+
The CLI requires [Bun](https://bun.sh/) 1.1 or later.
|
|
43
|
+
|
|
26
44
|
```bash
|
|
27
45
|
bun add -g @sumrco/cli
|
|
28
46
|
```
|
|
29
47
|
|
|
48
|
+
Confirm the installation and check local requirements:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
sumr --help
|
|
52
|
+
sumr doctor
|
|
53
|
+
```
|
|
54
|
+
|
|
30
55
|
## ⚡ Quick start
|
|
31
56
|
|
|
57
|
+
Run these commands from your project directory:
|
|
58
|
+
|
|
32
59
|
```bash
|
|
60
|
+
# Create sumr.yaml for this project
|
|
61
|
+
sumr init
|
|
62
|
+
|
|
63
|
+
# Check local requirements
|
|
64
|
+
sumr doctor
|
|
65
|
+
|
|
66
|
+
# Explore every command and module
|
|
33
67
|
sumr --help
|
|
34
|
-
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Sign in with `sumr login` only when a workflow needs SUMR account access.
|
|
71
|
+
|
|
72
|
+
To inspect a command before it changes files, add `--help`:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
sumr playbook sync --help
|
|
76
|
+
sumr kontract generate --help
|
|
77
|
+
sumr mission start --help
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## 🧭 Commands
|
|
81
|
+
|
|
82
|
+
| Command | Purpose |
|
|
83
|
+
| --- | --- |
|
|
84
|
+
| `sumr login` | Sign in to SUMR. |
|
|
85
|
+
| `sumr logout` | Sign out of SUMR. |
|
|
86
|
+
| `sumr whoami` | Show the currently signed-in user. |
|
|
87
|
+
| `sumr account` | Manage the account used by SUMR API requests. |
|
|
88
|
+
| `sumr init` | Create a `sumr.yaml` config for the current project. |
|
|
89
|
+
| `sumr migrate` | Apply pending `sumr.yaml` migrations. |
|
|
90
|
+
| `sumr doctor` | Check runtime and tool requirements. |
|
|
91
|
+
| `sumr kontract` | Generate and validate API contract artifacts. |
|
|
92
|
+
| `sumr playbook` | Sync Playbook Documents into AI tools. |
|
|
93
|
+
| `sumr mission` | Track AI-assisted work state and next actions. |
|
|
94
|
+
|
|
95
|
+
Run `sumr <command> --help` for usage, options, and examples.
|
|
96
|
+
|
|
97
|
+
## 🧩 Modules
|
|
98
|
+
|
|
99
|
+
### Kontract
|
|
100
|
+
|
|
101
|
+
Generate multiple contract artifacts from API and async API specifications configured in
|
|
102
|
+
`sumr.yaml`.
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
# Generate configured artifacts
|
|
106
|
+
sumr kontract generate
|
|
107
|
+
|
|
108
|
+
# Validate configured specifications
|
|
109
|
+
sumr kontract validate
|
|
110
|
+
|
|
111
|
+
# Activate Kontract guidance for this workspace
|
|
112
|
+
sumr kontract init
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Playbook
|
|
116
|
+
|
|
117
|
+
Turn Playbook Documents into instructions and resources for supported AI Channels: Claude, Codex,
|
|
118
|
+
Cursor, GitHub Copilot, Gemini, and OpenCode.
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
# Configure Playbook for this project
|
|
122
|
+
sumr playbook config
|
|
123
|
+
|
|
124
|
+
# Validate Documents without writing generated files
|
|
125
|
+
sumr playbook validate
|
|
126
|
+
|
|
127
|
+
# Sync configured AI Channels
|
|
128
|
+
sumr playbook sync
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Mission
|
|
132
|
+
|
|
133
|
+
Keep AI-assisted work inspectable with local plans, execution state, evidence, reviews, and explicit
|
|
134
|
+
next actions.
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
# Configure Mission for this repository
|
|
138
|
+
sumr mission init
|
|
139
|
+
|
|
140
|
+
# Start or resume work from an issue
|
|
141
|
+
sumr mission start <issue-key>
|
|
142
|
+
|
|
143
|
+
# Show current state and the next action
|
|
144
|
+
sumr mission status <issue-key>
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
Mission records work locally. External writes require explicit commands and gates. Run
|
|
148
|
+
`sumr mission --help` to inspect the complete workflow.
|
|
149
|
+
|
|
150
|
+
## 📝 Project config
|
|
151
|
+
|
|
152
|
+
SUMR tools share a versioned `sumr.yaml` at the project root. Start with:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
35
155
|
sumr init
|
|
36
156
|
```
|
|
157
|
+
|
|
158
|
+
Each module then adds or reads only the configuration it owns. Commit `sumr.yaml` when your team
|
|
159
|
+
should share the same setup.
|
|
160
|
+
|
|
161
|
+
## 🤖 AI tool resources
|
|
162
|
+
|
|
163
|
+
The npm package includes public Playbook resources for the shipped modules. Playbook uses these
|
|
164
|
+
resources when generating guidance for configured AI Channels, so the installed CLI and its AI
|
|
165
|
+
instructions stay aligned.
|
|
166
|
+
|
|
167
|
+
## Help and links
|
|
168
|
+
|
|
169
|
+
- Run `sumr --help` or `sumr <command> --help` for command documentation.
|
|
170
|
+
- Report bugs and request features in the [SUMR CLI repository](https://github.com/SUMRco/Cli/issues).
|
|
171
|
+
- View releases on [npm](https://www.npmjs.com/package/@sumrco/cli).
|
|
@@ -48,6 +48,24 @@ source of truth.
|
|
|
48
48
|
See **Lifecycle Hooks** for event fields, generated Claude and Codex outputs,
|
|
49
49
|
placement rules, and validation flow.
|
|
50
50
|
|
|
51
|
+
## Generated Output Ownership
|
|
52
|
+
|
|
53
|
+
Treat every AI-channel folder as generated output, never as an authoring
|
|
54
|
+
surface. Durable guidance, trigger language, role behavior, orchestration, and
|
|
55
|
+
lifecycle automation must originate in canonical Playbook sources under
|
|
56
|
+
`{{PLAYBOOK_PATH}}/`.
|
|
57
|
+
|
|
58
|
+
- Edit topics/references for reusable guidance.
|
|
59
|
+
- Edit `team-member` docs for delegated role behavior.
|
|
60
|
+
- Edit `command` or `workflow` docs for invoked flows and orchestration.
|
|
61
|
+
- Edit `lifecycle` docs for automatic tool/session behavior.
|
|
62
|
+
- If a renderer cannot express the source correctly, fix the customer-agnostic
|
|
63
|
+
renderer and regenerate; never patch its output.
|
|
64
|
+
|
|
65
|
+
Renderer templates may provide only tool-native structure and generic generated
|
|
66
|
+
resource navigation. They must not infer a domain workflow from filenames,
|
|
67
|
+
agent names, or customer conventions.
|
|
68
|
+
|
|
51
69
|
## Splitting Existing Docs
|
|
52
70
|
|
|
53
71
|
Before splitting a file, decide the owning context folder. Do not just create another peer `.md` file in a broad folder when the split content is really its own topic.
|
|
@@ -240,5 +258,9 @@ Before committing any `.md` file under `{{PLAYBOOK_PATH}}/`:
|
|
|
240
258
|
- [ ] No `## References` or `## Related` sections added manually
|
|
241
259
|
- [ ] Doc is under the soft cap (~180 lines); if over, split to references
|
|
242
260
|
- [ ] `{{PLAYBOOK_PATH}}` used instead of hard-coded `docs/` or similar paths in body
|
|
261
|
+
- [ ] No generated `.codex`, `.claude`, `.cursor`, `.opencode`, `.agents`, or
|
|
262
|
+
tool-entrypoint file was hand-edited
|
|
263
|
+
- [ ] Every generated behavioral instruction is traceable to canonical source
|
|
264
|
+
prose or metadata, not renderer inference
|
|
243
265
|
|
|
244
266
|
See **Markdown** for formatting rules (headings, callouts, code blocks, anti-patterns).
|