@p10i/rundown 1.0.0-rc.12

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Piontkovskii Andrei
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,192 @@
1
+ # rundown
2
+
3
+ **Your Markdown already describes the work. Now it does the work.**
4
+
5
+ ```
6
+ - [x] Confirm the release branch
7
+ - [ ] Add Windows setup guidance to the README ← agent writes it
8
+ - [ ] cli: npm test ← runs, verifies, moves on
9
+ ```
10
+
11
+ ```bash
12
+ rundown run docs/ -- opencode run
13
+ ```
14
+
15
+ One command. Every unchecked box becomes a real execution: prompted, run, verified, and only then marked complete.
16
+
17
+ ---
18
+
19
+ ## The problem
20
+
21
+ You plan in Markdown.
22
+ Agents work in terminals.
23
+ Verification lives in your head.
24
+
25
+ The gap between *writing down what needs to happen* and *making it happen* is still a copy-paste, tab-switch, manual-check mess — even with great AI tools. The handoff is where work stalls.
26
+
27
+ ## The fix
28
+
29
+ `rundown` closes the gap. It treats a Markdown checkbox as a **durable contract between intent and execution**:
30
+
31
+ 1. **Find** the next unchecked task.
32
+ 2. **Build** a prompt from the surrounding document context.
33
+ 3. **Execute** via a worker (like `opencode`) or an inline `cli:` command.
34
+ 4. **Verify** the result with a separate validation pass.
35
+ 5. **Repair** if verification fails — automatically.
36
+ 6. **Complete** the checkbox only when reality agrees.
37
+
38
+ A task is not done because a command ran.
39
+ A task is done because it *passed*.
40
+
41
+ ---
42
+
43
+ ## What makes this different
44
+
45
+ **Markdown-native.** No new file format. No YAML config sprawl. The work stays where the thought already lives.
46
+
47
+ **Validation-first.** Every task gets a verification step. Execution without proof is just hope.
48
+
49
+ **Template-driven.** Your repo defines its own `execute`, `verify`, `repair`, and `plan` prompts. You control what the agent sees.
50
+
51
+ **Deterministic.** Task selection is predictable. No surprising reordering, no ambient "intelligence" deciding what to run next.
52
+
53
+ **Agent-agnostic.** Use `opencode`, `claude`, `aider`, or any CLI-shaped worker. `rundown` doesn't care what does the work — it cares that the work got done.
54
+
55
+ **Git-aware.** `--commit` auto-commits each checked task with a structured message. Trace exactly which commit completed which task with `git log --grep`.
56
+
57
+ ---
58
+
59
+ ## Quick start
60
+
61
+ Install:
62
+
63
+ ```bash
64
+ npm install -g @p10i/rundown@rc
65
+ ```
66
+
67
+ Initialize templates in your repo:
68
+
69
+ ```bash
70
+ rundown init
71
+ ```
72
+
73
+ This creates your prompt templates:
74
+
75
+ ```
76
+ .rundown/
77
+ execute.md # what the agent sees when doing the task
78
+ verify.md # how completion is checked
79
+ repair.md # what to try when verification fails
80
+ plan.md # how to expand a task into subtasks
81
+ ```
82
+
83
+ Run against any Markdown file:
84
+
85
+ ```bash
86
+ rundown run roadmap.md -- opencode run
87
+ ```
88
+
89
+ PowerShell-safe form:
90
+
91
+ ```powershell
92
+ rundown run roadmap.md --worker opencode run
93
+ ```
94
+
95
+ That's it. Write tasks. Run the command. Watch checkboxes earn their marks.
96
+
97
+ Common Git-aware forms:
98
+
99
+ ```bash
100
+ rundown run roadmap.md --commit -- opencode run
101
+ rundown run roadmap.md --commit --commit-message "rundown: complete \"{{task}}\" in {{file}}" -- opencode run
102
+ rundown run roadmap.md --on-complete "git push" -- opencode run
103
+ ```
104
+
105
+ ---
106
+
107
+ ## The loop
108
+
109
+ ### Plan
110
+
111
+ Use `rundown plan` to expand a high-level task into concrete subtasks before execution begins. Big goals become small, runnable steps.
112
+
113
+ ### Execute
114
+
115
+ The task context — the surrounding Markdown, the template, the file paths — gets rendered into a prompt and sent to your worker.
116
+
117
+ ### Verify
118
+
119
+ A separate verification prompt checks the result. The task needs an explicit `OK` to pass. No silent failures.
120
+
121
+ ### Repair
122
+
123
+ If verification fails, a repair prompt fires, the worker retries, and verification runs again. Completion is earned, not assumed.
124
+
125
+ ---
126
+
127
+ ## Why this matters
128
+
129
+ AI tools keep getting better. The bottleneck is no longer capability — it's **coordination**. Who told the agent what to do? Did it actually work? How do you pick up where it left off?
130
+
131
+ `rundown` answers all three with the most boring technology possible: a text file with checkboxes.
132
+
133
+ That's the point. The interface should be so simple you can reconstruct it from memory. Plain files. Visible prompts. Predictable selection. Auditable results.
134
+
135
+ If agents are going to be part of everyday software work, the control surface should be something you already know how to read, write, diff, and review.
136
+
137
+ You already know Markdown. Now Markdown knows how to finish.
138
+
139
+ ---
140
+
141
+ ## Docs
142
+
143
+ | | |
144
+ |---|---|
145
+ | [Overview](docs/overview.md) | Product model, task selection, modes, runtime behavior |
146
+ | [CLI](docs/cli.md) | Commands, flags, shell-friendly usage |
147
+ | [Templates](docs/templates.md) | Template files, variables, prompt rendering |
148
+ | [Examples](docs/examples.md) | Practical flows: planning, validation, inline CLI, `opencode` |
149
+
150
+ ---
151
+
152
+ ## Migration notes (programmatic API)
153
+
154
+ ### Breaking: root exports are now intentionally narrow
155
+
156
+ The package root (`@p10i/rundown`) now exports only `createApp`.
157
+
158
+ If you previously imported low-level helpers from the root barrel (for example `parseTasks`, `runWorker`, `validate`, `correct`, `resolveSources`, runtime artifact helpers, or Git/hook helpers), those imports are no longer part of the supported root API.
159
+
160
+ Use `createApp()` as the stable programmatic entrypoint.
161
+
162
+ ### Breaking: `createApp(...)` override shape changed
163
+
164
+ Dependency injection now uses a structured shape:
165
+
166
+ ```ts
167
+ createApp({
168
+ ports: { output: myOutputPort },
169
+ useCaseFactories: { /* optional factory overrides */ },
170
+ })
171
+ ```
172
+
173
+ Direct root-level use-case overrides such as `createApp({ runTask: ... })` are no longer supported. Use `useCaseFactories` for explicit, port-first wiring.
174
+
175
+ ---
176
+
177
+ ## Status
178
+
179
+ `rundown` is usable today and intentionally small.
180
+
181
+ It is not trying to become an orchestration platform. It is trying to make one workflow feel inevitable:
182
+
183
+ **Write the task. Let the system work. Check the box only when reality agrees.**
184
+
185
+ ---
186
+
187
+ ## Install
188
+
189
+ ```bash
190
+ npm install -g @p10i/rundown@rc
191
+ rundown --help
192
+ ```