@riotprompt/riotplan 0.0.4 → 1.0.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 CHANGED
@@ -53,13 +53,218 @@ grunnverk/prompts/
53
53
  ## Installation
54
54
 
55
55
  ```bash
56
- npm install riotplan
56
+ npm install -g @riotprompt/riotplan
57
57
  ```
58
58
 
59
- ## Usage (Coming Soon)
59
+ Or as a development dependency:
60
+
61
+ ```bash
62
+ npm install --save-dev @riotprompt/riotplan
63
+ ```
64
+
65
+ ### AI-Powered Generation (Optional)
66
+
67
+ `riotplan` can use AI to generate detailed, actionable plans from your descriptions. Install an execution provider:
68
+
69
+ ```bash
70
+ # For Anthropic Claude (recommended)
71
+ npm install @riotprompt/execution-anthropic
72
+
73
+ # For OpenAI GPT
74
+ npm install @riotprompt/execution-openai
75
+
76
+ # For Google Gemini
77
+ npm install @riotprompt/execution-gemini
78
+ ```
79
+
80
+ Set your API key:
81
+
82
+ ```bash
83
+ export ANTHROPIC_API_KEY="sk-ant-..."
84
+ export OPENAI_API_KEY="sk-..."
85
+ export GOOGLE_API_KEY="..."
86
+ ```
87
+
88
+ Without an AI provider, `riotplan` falls back to template-based generation.
89
+
90
+ ## Command-Line Interface
91
+
92
+ ### Creating a Plan
93
+
94
+ Create a new plan with AI generation:
95
+
96
+ ```bash
97
+ riotplan create my-feature
98
+ ```
99
+
100
+ This will:
101
+ 1. Prompt for your plan description (opens editor)
102
+ 2. Ask if you want analysis first or direct generation
103
+ 3. Use AI to generate detailed plan content
104
+ 4. Create all plan files with actionable steps
105
+
106
+ Options:
107
+
108
+ ```bash
109
+ riotplan create my-feature --direct # Skip analysis, generate directly
110
+ riotplan create my-feature --steps 7 # Specify number of steps
111
+ riotplan create my-feature --provider anthropic # Choose AI provider
112
+ riotplan create my-feature --model claude-sonnet-4-5 # Specify model
113
+ riotplan create my-feature --no-ai # Use templates only
114
+ ```
115
+
116
+ Creates:
117
+
118
+ ```
119
+ my-feature/
120
+ ├── my-feature-prompt.md # Your original description
121
+ ├── SUMMARY.md # AI-generated overview and approach
122
+ ├── EXECUTION_PLAN.md # Step-by-step strategy
123
+ ├── STATUS.md # Current state tracking
124
+ └── plan/
125
+ ├── 01-analysis.md # Detailed step with specific tasks
126
+ ├── 02-design.md # Concrete acceptance criteria
127
+ ├── 03-implementation.md # Testing strategies
128
+ └── ...
129
+ ```
130
+
131
+ **AI vs Templates**: With AI, you get specific, actionable content tailored to your project. Without AI, you get template files with placeholders to fill in manually.
132
+
133
+ ### Checking Status
134
+
135
+ Show current plan status:
136
+
137
+ ```bash
138
+ riotplan status # Current directory
139
+ riotplan status ./my-plan # Specific path
140
+ riotplan status -v # Verbose output
141
+ riotplan status --json # JSON output
142
+ ```
143
+
144
+ Example output:
145
+
146
+ ```
147
+ Plan: my-feature
148
+ Status: 🔄 in_progress
149
+ Progress: 45% (5/11 steps)
150
+ Current Step: 06-testing
151
+ Last Updated: 2026-01-10
152
+
153
+ Blockers: None
154
+ Issues: 1 (low priority)
155
+ ```
156
+
157
+ ### Managing Steps
158
+
159
+ List steps in a plan:
160
+
161
+ ```bash
162
+ riotplan step list # All steps
163
+ riotplan step list --pending # Only pending
164
+ riotplan step list --all # Include completed
165
+ ```
166
+
167
+ Example output:
168
+
169
+ ```
170
+ ✅ 01 analysis
171
+ ✅ 02 design
172
+ ✅ 03 architecture
173
+ ✅ 04 implementation-core
174
+ 🔄 05 implementation-api
175
+ ⬜ 06 testing
176
+ ⬜ 07 documentation
177
+ ⬜ 08 release
178
+ ```
179
+
180
+ Add a new step:
181
+
182
+ ```bash
183
+ riotplan step add "Integration Testing"
184
+ riotplan step add "Security Audit" --number 07
185
+ riotplan step add "Review" --after 05
186
+ ```
187
+
188
+ Mark steps as started or completed:
189
+
190
+ ```bash
191
+ riotplan step start 05
192
+ riotplan step complete 05
193
+ ```
194
+
195
+ ### Managing Feedback
196
+
197
+ Create and list feedback records:
198
+
199
+ ```bash
200
+ riotplan feedback create # Create feedback record
201
+ riotplan feedback list # List feedback records
202
+ ```
203
+
204
+ ### Validating Plans
205
+
206
+ Validate plan structure:
207
+
208
+ ```bash
209
+ riotplan plan validate # Current directory
210
+ riotplan plan validate ./my-plan # Specific path
211
+ riotplan plan validate --fix # Attempt to fix issues
212
+ ```
213
+
214
+ Checks:
215
+ - Required files exist (STATUS.md, EXECUTION_PLAN.md, etc.)
216
+ - STATUS.md is parseable
217
+ - Step files have valid numbering (01-*, 02-*, etc.)
218
+ - Step dependencies are valid
219
+ - No circular dependencies
220
+
221
+ Archive a completed plan:
222
+
223
+ ```bash
224
+ riotplan plan archive # Current directory
225
+ riotplan plan archive ./my-plan # Specific path
226
+ ```
227
+
228
+ ### Status Indicators
229
+
230
+ | Symbol | Meaning |
231
+ |--------|---------|
232
+ | ⬜ | Pending |
233
+ | 🔄 | In Progress |
234
+ | ✅ | Completed |
235
+ | ❌ | Failed |
236
+ | ⏸️ | Blocked |
237
+ | ⏭️ | Skipped |
238
+
239
+ ### Generate from Existing Prompt
240
+
241
+ If you already have a plan directory with a prompt file:
242
+
243
+ ```bash
244
+ riotplan generate ./my-plan --steps 5
245
+ riotplan generate ./my-plan --provider anthropic --model claude-sonnet-4-5
246
+ ```
247
+
248
+ ### Configuration
249
+
250
+ Create `.riotplanrc.json` in your plan directory:
251
+
252
+ ```json
253
+ {
254
+ "defaultProvider": "anthropic",
255
+ "autoUpdateStatus": true,
256
+ "stepTemplate": "detailed",
257
+ "analysis": {
258
+ "enabled": true,
259
+ "directory": "analysis"
260
+ }
261
+ }
262
+ ```
263
+
264
+ ## Programmatic Usage
60
265
 
61
266
  ```typescript
62
- import { loadPlan, resumePlan } from 'riotplan';
267
+ import { loadPlan, resumePlan } from '@riotprompt/riotplan';
63
268
 
64
269
  // Load an existing plan
65
270
  const plan = await loadPlan('./prompts/my-feature');
@@ -146,10 +351,10 @@ _No issues encountered._
146
351
 
147
352
  ## Related Packages
148
353
 
149
- - `riotprompt` - Prompt modeling for single interactions
150
- - `agentic` - Multi-turn conversation framework
151
- - `execution` - LLM provider interfaces
152
- - `riotplan-cli` - Command-line interface (coming soon)
354
+ - `@riotprompt/riotprompt` - Prompt modeling for single interactions
355
+ - `@riotprompt/agentic` - Multi-turn conversation framework
356
+ - `@riotprompt/execution` - LLM provider interfaces
357
+ - `@riotprompt/riotplan-commands-*` - Command packages (plan, status, step, feedback)
153
358
 
154
359
  ## Philosophy
155
360
 
@@ -168,3 +373,5 @@ A plan provides structure for complex, iterative AI-assisted work where:
168
373
 
169
374
  Apache-2.0
170
375
 
376
+ <!-- v1.0.0 -->
377
+
package/dist/bin.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { }
package/dist/bin.js ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+ import { _ as createProgram } from "./cli-DmsyaX1E.js";
3
+ const program = createProgram();
4
+ program.parse();
5
+ //# sourceMappingURL=bin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.js","sources":["../src/cli/bin.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/**\n * RiotPlan CLI executable entry point\n * This file is the actual binary that gets executed when running `riotplan`\n */\n\nimport { createProgram } from './cli.js';\n\nconst program = createProgram();\nprogram.parse();\n"],"names":[],"mappings":";;AASA,MAAM,UAAU,cAAA;AAChB,QAAQ,MAAA;"}