oneie 3.6.6 → 3.6.11

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.
Files changed (166) hide show
  1. package/.claude/agents/agent-backend.md +83 -0
  2. package/.claude/agents/agent-designer.md +97 -0
  3. package/.claude/agents/agent-director.md +118 -7
  4. package/.claude/agents/agent-documenter.md +93 -0
  5. package/.claude/agents/agent-frontend.md +96 -0
  6. package/.claude/agents/agent-ops.md +182 -25
  7. package/.claude/agents/agent-problem-solver.md +166 -0
  8. package/.claude/agents/agent-quality.md +127 -0
  9. package/.claude/commands/build.md +293 -0
  10. package/.claude/commands/cascade.md +231 -127
  11. package/.claude/commands/mcp-toggle.md +93 -0
  12. package/.claude/commands/onboard.md +179 -0
  13. package/.claude/commands/one.md +236 -516
  14. package/.claude/commands/plan.md +394 -80
  15. package/.claude/commands/release.md +41 -19
  16. package/.claude/commands/server.md +335 -0
  17. package/.claude/hooks/root-cleanup.py +75 -0
  18. package/.claude/skills/INDEX.md +523 -0
  19. package/.claude/skills/REGISTRY.md +529 -0
  20. package/.claude/skills/agent-backend-create-mutation.md +319 -0
  21. package/.claude/skills/agent-designer-create-wireframe.md +341 -0
  22. package/.claude/skills/agent-frontend-create-page.md +413 -0
  23. package/.claude/skills/agents/README.md +238 -0
  24. package/dist/clone-web.js +1 -1
  25. package/dist/clone-web.js.map +1 -1
  26. package/folders.yaml +1 -1
  27. package/one/.obsidian/workspace.json +38 -38
  28. package/one/connections/api/queries-reference.md +842 -0
  29. package/one/connections/api-reference.md +1011 -0
  30. package/one/connections/integration-examples.md +875 -0
  31. package/one/connections/integration-guide.md +869 -0
  32. package/one/connections/integration-phase2.md +736 -0
  33. package/one/events/API_ROUTES_FIXES_SUMMARY.md +262 -0
  34. package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +636 -0
  35. package/one/events/BEFORE_AFTER_COMPARISON.md +960 -0
  36. package/one/events/CONNECTIONS_DEMO.md +501 -0
  37. package/one/events/DELIVERABLES.md +432 -0
  38. package/one/events/DEMO-GROUPS-PAGE.md +392 -0
  39. package/one/events/DEMO-TESTING-SUMMARY.md +518 -0
  40. package/one/events/DEMO_COMPONENTS.md +487 -0
  41. package/one/events/DEMO_HOOKS_INDEX.md +334 -0
  42. package/one/events/DEMO_INFRASTRUCTURE.md +905 -0
  43. package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +570 -0
  44. package/one/events/DEMO_INTEGRATION_CHECKLIST.md +431 -0
  45. package/one/events/DEMO_QUICK_REFERENCE.md +441 -0
  46. package/one/events/DEMO_SETUP.md +476 -0
  47. package/one/events/EFFECT_TS_API_PATTERN.md +478 -0
  48. package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +414 -0
  49. package/one/events/HOOKS-DEMO.md +441 -0
  50. package/one/events/ONTOLOGY-HOOKS-README.md +700 -0
  51. package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +365 -0
  52. package/one/events/QA-CHECKLIST.md +674 -0
  53. package/one/events/QUICK-START-ONTOLOGY.md +408 -0
  54. package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +639 -0
  55. package/one/events/SEARCH_DEMO_DELIVERY.md +415 -0
  56. package/one/events/SEARCH_DEMO_SUMMARY.md +303 -0
  57. package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +381 -0
  58. package/one/events/TEST-PLAN-INDEX.md +346 -0
  59. package/one/events/TEST-PLAN.md +1417 -0
  60. package/one/events/TESTING-DELIVERY.txt +372 -0
  61. package/one/events/TRANSITIONS-QUICK-START.md +141 -0
  62. package/one/events/TYPESCRIPT_FIXES.md +152 -0
  63. package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +412 -0
  64. package/one/events/TYPESCRIPT_FIXES_INDEX.md +341 -0
  65. package/one/events/VIEW-TRANSITIONS.md +428 -0
  66. package/one/events/backend-integration-tests.md +606 -0
  67. package/one/events/backend-structure-diagram.txt +393 -0
  68. package/one/events/backend-structure-summary.txt +269 -0
  69. package/one/events/cloudflare-pages-infrastructure-setup.md +264 -0
  70. package/one/events/convex-analysis-index.md +304 -0
  71. package/one/events/convex-structure-analysis.md +700 -0
  72. package/one/events/design-spec-complete.md +208 -0
  73. package/one/events/ontology-test-examples.md +562 -0
  74. package/one/events/phase1-backend-implementation-complete.md +518 -0
  75. package/one/events/test-dashboard.md +345 -0
  76. package/one/events/test-index.md +361 -0
  77. package/one/events/test-report-ontology.md +582 -0
  78. package/one/events/testing-summary.md +344 -0
  79. package/one/groups/features.md +2878 -0
  80. package/one/groups/strategy copy.md +869 -0
  81. package/one/knowledge/backend-api-reference.md +710 -0
  82. package/one/knowledge/documentation-summary.md +285 -0
  83. package/one/knowledge/lessons-learned.md +294 -4
  84. package/one/knowledge/ontology-visual-guide.md +360 -0
  85. package/one/knowledge/ontology.md +9 -17
  86. package/one/things/demo-accessibility-animations.md +999 -0
  87. package/one/things/demo-components.md +1304 -0
  88. package/one/things/demo-design-summary.md +629 -0
  89. package/one/things/demo-design-system.md +919 -0
  90. package/one/things/demo-page-layouts.md +989 -0
  91. package/one/things/designs/accessibility-audit.md +790 -0
  92. package/one/things/designs/component-specifications.md +757 -0
  93. package/one/things/designs/design-overview.md +318 -0
  94. package/one/things/designs/design-tokens.md +414 -0
  95. package/one/things/designs/wireframes-dashboard.md +653 -0
  96. package/one/things/docs/api-requests.md +923 -0
  97. package/one/things/features/0 All Features.md +2 -0
  98. package/one/things/implementation/backend-guide.md +412 -0
  99. package/one/things/plans/2-backend-agnostic-frontend.md +11 -8
  100. package/one/things/plans/ai-elements.md +1259 -0
  101. package/one/things/plans/ai-integration.md +947 -0
  102. package/one/things/plans/ai-sdk.md +761 -0
  103. package/one/things/plans/app.md +1 -1
  104. package/one/things/plans/architecture-summary.md +283 -0
  105. package/one/things/plans/async-ai-agents.md +215 -0
  106. package/one/things/plans/backend-agnostic-frontend.md +11 -6
  107. package/one/things/plans/backend-cleanup-quickstart.md +346 -0
  108. package/one/things/plans/backend-ontology-conformance.md +416 -0
  109. package/one/things/plans/backend-status.md +541 -0
  110. package/one/things/plans/backend-structure.md +799 -0
  111. package/one/things/plans/backend-target-structure.md +438 -0
  112. package/one/things/plans/backend.md +1133 -0
  113. package/one/things/plans/better-auth-any-backend.md +11 -11
  114. package/one/things/plans/cli-updates-required.md +280 -0
  115. package/one/things/plans/complete-step-by-step.md +1302 -0
  116. package/one/things/plans/convex-agents.md +1005 -0
  117. package/one/things/plans/deployment-architecture.md +426 -0
  118. package/one/things/plans/development-plan.md +1220 -0
  119. package/one/things/plans/effect.md +808 -48
  120. package/one/things/plans/integrate-frontend-and-backend.md +579 -0
  121. package/one/things/plans/mcp-clear-context-prompt.md +60 -0
  122. package/one/things/plans/mcp-simple.md +228 -0
  123. package/one/things/plans/one.md +8 -7
  124. package/one/things/plans/ontology-6-dimensions.md +20 -14
  125. package/one/things/plans/quick-wins.md +1273 -0
  126. package/one/things/plans/readme-backend-cleanup.md +361 -0
  127. package/one/things/plans/separate-demo.md +830 -0
  128. package/one/things/plans/separate.md +3 -3
  129. package/one/things/plans/sequence.md +1897 -0
  130. package/one/things/plans/sync-checklist.md +321 -0
  131. package/one/things/plans/unified-implementation-plan.md +3 -3
  132. package/one/things/plans/update-demos.md +513 -0
  133. package/package.json +1 -1
  134. package/.claude/agents/backend-specialist.md +0 -169
  135. package/.claude/agents/designer.md +0 -216
  136. package/.claude/agents/frontend-specialist.md +0 -236
  137. package/.claude/commands/done.md +0 -35
  138. package/.claude/commands/infer.md +0 -138
  139. package/.claude/commands/next.md +0 -53
  140. package/.claude/commands/one copy.md +0 -565
  141. package/.claude/commands/one-template.md +0 -106
  142. package/.claude/commands/one-v1.md +0 -609
  143. package/.claude/hooks/__pycache__/knowledge-post.cpython-313.pyc +0 -0
  144. package/.claude/hooks/__pycache__/knowledge-pre.cpython-313.pyc +0 -0
  145. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  146. package/one/groups/nine-padel-customers.md +0 -138
  147. package/one/groups/nine-padel-data-structure.md +0 -167
  148. package/one/groups/nine-padel-ontology-specification.md +0 -359
  149. package/one/groups/nine-padel-ontology.md +0 -143
  150. package/one/groups/nine-padel-strategy.md +0 -234
  151. package/one/groups/nine-padel.md +0 -211
  152. package/one/groups/nine-padle-contents.baked.md +0 -1252
  153. package/one/groups/nine-padle-contents.md +0 -6
  154. package/one/things/features/1-1-agent-prompts/design.md +0 -470
  155. package/one/things/features/1-1-agent-prompts/tests.md +0 -264
  156. package/one/things/features/1-2-yaml-orchestrator/design.md +0 -497
  157. package/one/things/features/1-2-yaml-orchestrator/tests.md +0 -227
  158. package/one/things/features/1-3-event-coordination/design.md +0 -544
  159. package/one/things/features/1-3-event-coordination/tests.md +0 -223
  160. package/one/things/features/1-4-knowledge-management/design.md +0 -609
  161. package/one/things/features/1-4-knowledge-management/tests.md +0 -195
  162. package/one/things/features/1-5-quality-loops/design.md +0 -797
  163. package/one/things/features/1-5-quality-loops/tests.md +0 -212
  164. package/one/things/features/1-6-numbering-structure/design.md +0 -610
  165. package/one/things/features/1-6-numbering-structure/tests.md +0 -213
  166. package/one/things/features/dataprovider-interface/1-tests.md +0 -1522
@@ -1,128 +1,442 @@
1
- # /plan - View Complete Inference Plan
1
+ # /plan - Convert Ideas to Implementation Plans with CASCADE
2
2
 
3
- **Purpose:** Display the complete 100-inference plan with progress, dependencies, and filtering options.
3
+ **Purpose:** Transform ideas into detailed 100-inference plans with automatic agent assignment and task breakdown.
4
4
 
5
- ## Basic Usage
5
+ ## Core Functionality
6
+
7
+ ### Convert Idea to Full Plan
6
8
 
7
9
  ```bash
8
- /plan
10
+ /plan convert "Build a course platform with AI tutors"
9
11
  ```
10
12
 
11
- Shows complete 100-inference plan with:
12
- - Current inference highlighted
13
- - Completed inferences (✅)
14
- - Skipped inferences (⏭️)
15
- - Pending inferences (⏹️)
16
- - Progress percentage
13
+ Generates:
14
+ - ✅ 100-inference execution plan
15
+ - ✅ Automatic agent assignments
16
+ - ✅ Task dependencies & timeline
17
+ - ✅ 6-dimension ontology mapping
18
+ - ✅ Quality loop workflow
19
+ - ✅ Estimated tokens & budget
20
+
21
+ ## Quick Usage
17
22
 
18
- ## Filtering Options
23
+ ### Plan Conversion (CASCADE Integration)
19
24
 
20
- ### By Dimension
21
25
  ```bash
22
- /plan --dimension=organizations # Show only org-related inferences
23
- /plan --dimension=people # Show only people/auth inferences
24
- /plan --dimension=things # Show only entity inferences
25
- /plan --dimension=connections # Show only relationship inferences
26
- /plan --dimension=events # Show only event inferences
27
- /plan --dimension=knowledge # Show only knowledge/RAG inferences
26
+ /plan convert [idea] # Convert idea to full plan
27
+ /plan show # Show current plan with assignments
28
+ /plan export [format] # Export plan (md, json, csv)
28
29
  ```
29
30
 
30
- ### By Specialist
31
+ ### Execution Management
32
+
31
33
  ```bash
32
- /plan --specialist=backend # Show backend inferences (11-20, 41-50)
33
- /plan --specialist=frontend # Show frontend inferences (21-30, 71-80)
34
- /plan --specialist=integration # Show integration inferences (31-40)
35
- /plan --specialist=quality # Show testing inferences (61-70)
36
- /plan --specialist=design # Show design inferences (71-80)
37
- /plan --specialist=documenter # Show documentation inferences (95-100)
34
+ /now # Show current inference & task
35
+ /next # Advance to next inference
36
+ /done # Mark complete & advance
37
+ /goto [N] # Jump to inference N
38
38
  ```
39
39
 
40
- ### By Status
40
+ ### Plan Filtering & Analysis
41
+
41
42
  ```bash
42
- /plan --status=completed # Show only completed inferences
43
- /plan --status=skipped # Show only skipped inferences
44
- /plan --status=pending # Show only pending inferences
45
- /plan --status=blocked # Show inferences with unmet dependencies
43
+ /plan filter --agent=[name] # Filter by agent (backend, frontend, etc)
44
+ /plan filter --dimension=[name] # Filter by dimension (things, connections, etc)
45
+ /plan filter --status=[status] # Filter by status (completed, pending, blocked)
46
+ /plan dependencies # Show task dependencies
47
+ /plan timeline # Show gantt-style timeline
48
+ /plan stats # Show plan statistics
46
49
  ```
47
50
 
48
- ### By Range
49
- ```bash
50
- /plan --range=1-10 # Show inferences 1-10 (Foundation)
51
- /plan --range=11-20 # Show inferences 11-20 (Backend)
52
- /plan --range=21-30 # Show inferences 21-30 (Frontend)
51
+ ## Example: Converting an Idea to a Plan
52
+
53
+ ### Input
54
+
55
+ ```
56
+ /plan convert "Build a course platform where creators can:
57
+ - Upload courses with lessons and quizzes
58
+ - Set up AI tutors that answer student questions
59
+ - Earn tokens that students can buy/trade
60
+ - Access analytics on student progress
61
+ - Build a community with forums and discussions"
53
62
  ```
54
63
 
55
- ## Combined Filters
64
+ ### Output
56
65
 
57
- ```bash
58
- /plan --specialist=backend --status=pending
59
- /plan --dimension=knowledge --range=51-60
60
- /plan --status=skipped --show-dependencies
61
66
  ```
67
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
68
+ 📋 IDEA CONVERTED TO IMPLEMENTATION PLAN
69
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
70
+
71
+ Idea: Course Platform with AI Tutors & Token Economy
72
+ Status: ✅ Plan generated | 100 inferences | 15 agents assigned
73
+
74
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
75
+ 📊 PLAN OVERVIEW
76
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
77
+
78
+ Total Inferences: 100
79
+ Estimated Duration: 90 days
80
+ Estimated Tokens: ~500K
81
+ Quality Loops: 4
82
+ Agent Teams: 15 specialists
83
+
84
+ 6-Dimension Coverage:
85
+ ✅ Groups (multi-tenant orgs)
86
+ ✅ People (roles & permissions)
87
+ ✅ Things (entities: courses, lessons, tokens)
88
+ ✅ Connections (relationships between entities)
89
+ ✅ Events (audit trail, activity log)
90
+ ✅ Knowledge (RAG for AI tutors)
91
+
92
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
93
+ 🎯 AGENT ASSIGNMENTS (Automatic)
94
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
95
+
96
+ Lead Orchestrator:
97
+ 🤖 agent-director (infers 1-10, coordinates all specialists)
98
+
99
+ Foundation Phase (Infer 1-10):
100
+ 📊 Validation, mapping, planning with agent-director
101
+ ✅ All done by orchestrator + planning
102
+
103
+ Backend Phase (Infer 11-30):
104
+ ⚙️ agent-backend: Schema, mutations, queries, services
105
+ - Infer 11-20: Convex schema design (groups, entities, connections, events)
106
+ - Infer 21-30: Core mutations (create, update, delete)
107
+ - Infer 41-50: Advanced queries (filtering, pagination, relationships)
108
+
109
+ Frontend Phase (Infer 31-50):
110
+ 🎨 agent-frontend: Pages, components, UI/UX
111
+ - Infer 31-40: Astro pages (course list, detail, creator dashboard)
112
+ - Infer 51-60: React components (course card, lesson player, forum)
113
+ - Infer 71-80: Performance optimization
114
+
115
+ Design Phase (Infer 21-40):
116
+ 🎭 agent-designer: Wireframes, tokens, specs
117
+ - Infer 21-30: Wireframes (acceptance criteria → UI elements)
118
+ - Infer 31-40: Design tokens (brand colors, spacing, typography)
119
+ - Infer 41-50: Component specifications
120
+
121
+ Quality Phase (Infer 41-60):
122
+ 🧪 agent-quality: Tests, validation, requirements
123
+ - Infer 41-50: User flows & acceptance criteria
124
+ - Infer 51-60: Test suite execution
125
+ - Infer 61-70: Quality loop (test → fix → verify)
126
+
127
+ Support Specialists (Throughout):
128
+ 🔧 agent-problem-solver: Analyzes test failures, proposes fixes
129
+ 📝 agent-documenter: Writes docs, captures lessons
130
+ 🚀 agent-ops: Sets up CI/CD, prepares deployment
131
+
132
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
133
+ 📈 PHASE BREAKDOWN (100 Inferences)
134
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
135
+
136
+ Infer 1-10: Foundation & Understanding
137
+ - Validate idea against 6-dimension ontology
138
+ - Map entity types (courses, lessons, tokens, users)
139
+ - Identify connection types (owns, enrolls, holds_tokens)
140
+ - List event types (course_created, quiz_completed, token_earned)
141
+ - Determine knowledge requirements (RAG for AI tutors)
142
+ - Identify org scope (multi-tenant per creator)
143
+ - Define people roles (creator, student, admin)
144
+ - Create vision document
145
+ - Break down features
146
+ - Create 100-inference plan ← You are here!
147
+
148
+ Infer 11-20: Backend Schema & Services
149
+ - Design Convex schema (groups, things, connections, events, knowledge)
150
+ - Define entity types (course, lesson, quiz, token, user, ai_clone)
151
+ - Create relationship types (owns, enrolled_in, holds_tokens)
152
+ - Plan service layer (CourseService, TokenService, AITutorService)
153
+ - Define mutations (createCourse, enrollStudent, earnToken)
154
+ - Plan queries (listCourses, getStudent, checkTokenBalance)
155
+
156
+ Infer 21-30: Frontend Pages & Wireframes
157
+ - Design course list page (SSR with server data)
158
+ - Design course detail page (interactive lessons)
159
+ - Design creator dashboard (analytics, course management)
160
+ - Design AI tutor chat interface
161
+ - Create wireframes satisfying acceptance criteria
162
+ - Plan component hierarchy
163
+ - Design token system UI
164
+
165
+ Infer 31-40: Design Tokens & System
166
+ - Extract brand colors (from onboarding)
167
+ - Create typography scale
168
+ - Define spacing system
169
+ - Generate Tailwind v4 tokens
170
+ - Ensure WCAG AA contrast
171
+ - Create component specs with props
172
+
173
+ Infer 41-50: Quality & Testing
174
+ - Define user flows (creator: upload course, student: take course)
175
+ - Create acceptance criteria (all features testable)
176
+ - Define test suite (unit, integration, e2e)
177
+ - Start test implementation
178
+ - Run tests against schema
179
+
180
+ Infer 51-60: Backend Implementation
181
+ - Implement Convex mutations (createCourse, enrollStudent)
182
+ - Implement queries (listCourses, getProgress)
183
+ - Create Effect.ts services (business logic)
184
+ - Add event logging (complete audit trail)
185
+ - Implement multi-tenant isolation
186
+
187
+ Infer 61-70: Frontend Implementation
188
+ - Implement Astro pages (SSR + React islands)
189
+ - Build React components (course cards, lesson player)
190
+ - Integrate Convex queries (useQuery, useMutation)
191
+ - Add loading/error states
192
+ - Optimize performance (90+ Lighthouse)
193
+
194
+ Infer 71-80: AI Tutor Integration
195
+ - Integrate Claude API for responses
196
+ - Implement RAG (Retrieval-Augmented Generation)
197
+ - Connect knowledge base (course content → embeddings)
198
+ - Create AI personality system
199
+ - Test tutor quality
200
+
201
+ Infer 81-90: Quality Assurance
202
+ - Run full test suite
203
+ - Fix failing tests
204
+ - Performance testing (Core Web Vitals)
205
+ - Security testing
206
+ - Accessibility audit (WCAG AA)
207
+
208
+ Infer 91-100: Deployment & Documentation
209
+ - Write user documentation
210
+ - Create API documentation
211
+ - Set up CI/CD pipeline
212
+ - Deploy to Cloudflare Pages (frontend)
213
+ - Deploy to Convex Cloud (backend)
214
+ - Write deployment guide
215
+
216
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
217
+ 🔗 AGENT TASK ASSIGNMENTS
218
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
219
+
220
+ agent-backend assigned:
221
+ - Infer 11-20: Schema design
222
+ - Infer 41-50: Queries design
223
+ - Infer 51-60: Mutation implementation
224
+ - Skills: agent-backend:create-mutation, create-query, design-schema
225
+
226
+ agent-frontend assigned:
227
+ - Infer 21-30: Page wireframes
228
+ - Infer 61-70: Component implementation
229
+ - Infer 81-90: Performance optimization
230
+ - Skills: agent-frontend:create-page, create-component, optimize-performance
231
+
232
+ agent-designer assigned:
233
+ - Infer 21-30: Wireframe generation
234
+ - Infer 31-40: Token & spec definition
235
+ - Skills: agent-designer:create-wireframe, define-components, set-design-tokens
236
+
237
+ agent-quality assigned:
238
+ - Infer 41-50: Test definition
239
+ - Infer 61-70: Test execution
240
+ - Infer 81-90: Full quality suite
241
+ - Skills: agent-quality:define-tests, run-tests, validate-ontology
62
242
 
63
- ## Output Format
243
+ agent-problem-solver assigned:
244
+ - Throughout: Monitor test failures
245
+ - When needed: Analyze root causes
246
+ - Delegate fixes to specialists
64
247
 
248
+ agent-ops assigned:
249
+ - Infer 91-100: CI/CD setup
250
+ - Deployment configuration
251
+ - Production monitoring
252
+
253
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
254
+ 💾 DEPENDENCIES & TIMELINE
255
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
256
+
257
+ Sequential (Cannot run in parallel):
258
+ 1-10 (Foundation) → All other phases
259
+
260
+ Parallel Tracks (Can run simultaneously after Foundation):
261
+ Backend Track: Infer 11-20 → 41-50 → 51-60
262
+ Frontend Track: Infer 21-30 → 61-70
263
+ Design Track: Infer 21-30 → 31-40
264
+ Quality Track: Infer 41-50 → 61-70 → 81-90
265
+ Integration: Infer 71-80 (after backend + frontend core)
266
+
267
+ Critical Path:
268
+ Foundation → Backend Schema → Mutations → Frontend Implementation
269
+ (28 days minimum, parallelization can reduce)
270
+
271
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
272
+ 🎯 NEXT STEPS
273
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
274
+
275
+ 1. View full plan:
276
+ /plan show
277
+
278
+ 2. See task assignments:
279
+ /plan filter --agent=backend
280
+
281
+ 3. Start execution:
282
+ /now - See Infer 1 context
283
+ /next - Move through plan
284
+ /done - Mark complete & advance
285
+
286
+ 4. Monitor agents:
287
+ /agent dashboard - See all agents working
288
+ /agent [name] - View specific agent
289
+
290
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
65
291
  ```
66
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
67
- 📋 INFERENCE PLAN: Feature Name
68
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
69
292
 
70
- Progress: 23/100 (23%) | Completed: 22 | Skipped: 1 | Pending: 77
293
+ ## Advanced Features
71
294
 
72
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
73
- 📦 INFER 1-10: FOUNDATION & SETUP
74
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
295
+ ### Plan Filtering
75
296
 
76
- ✅ Infer 1: Validate idea against 6-dimension ontology
77
- └─ Dimensions: foundation | Specialist: director
297
+ ```bash
298
+ # Filter by agent
299
+ /plan filter --agent=backend # Shows backend inferences
300
+ /plan filter --agent=frontend # Shows frontend inferences
301
+ /plan filter --agent=designer # Shows design inferences
302
+
303
+ # Filter by dimension
304
+ /plan filter --dimension=things # Entity-related tasks
305
+ /plan filter --dimension=connections # Relationship-related tasks
306
+ /plan filter --dimension=events # Event-related tasks
78
307
 
79
- ✅ Infer 2: Map idea to specific entity types
80
- └─ Dimensions: things | Specialist: director
308
+ # Filter by status
309
+ /plan filter --status=pending # Not started
310
+ /plan filter --status=completed # Already done
311
+ /plan filter --status=blocked # Dependencies unmet
312
+ ```
81
313
 
82
- ⏸️ Infer 3: Identify connection types needed
83
- └─ Dimensions: connections | Specialist: director
314
+ ### Plan Analysis
315
+
316
+ ```bash
317
+ # View dependencies
318
+ /plan dependencies # Show all task dependencies
84
319
 
85
- ⏹️ Infer 4: List event types that will be triggered
86
- └─ Dimensions: events | Specialist: director
320
+ # Show timeline
321
+ /plan timeline # Show gantt chart of phases
87
322
 
88
- [... continues through 100 ...]
323
+ # Get statistics
324
+ /plan stats # Show plan metrics
325
+ - Total inferences: 100
326
+ - Agents assigned: 15
327
+ - Estimated duration: 90 days
328
+ - Parallel tracks: 5
329
+ - Quality loops: 4
330
+ ```
331
+
332
+ ### Export Plan
333
+
334
+ ```bash
335
+ # Export to different formats
336
+ /plan export markdown # one/plans/[feature-name].md
337
+ /plan export json # .claude/state/plan.json
338
+ /plan export csv # plan.csv (for spreadsheets)
339
+ /plan export timeline # project timeline format
89
340
 
90
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
341
+ # Share plan
342
+ /plan share # Generate shareable link
91
343
  ```
92
344
 
93
- ## Legend
345
+ ## Plan Structure
94
346
 
95
- - ✅ = Completed
96
- - ⏸️ = Current (in progress)
97
- - ⏭️ = Skipped (not applicable)
98
- - ⏹️ = Pending
99
- - 🚫 = Blocked (dependencies not met)
347
+ Each plan includes:
100
348
 
101
- ## Dependencies View
349
+ ### 1. Idea Validation
350
+ - Maps to 6-dimension ontology
351
+ - Identifies entity types
352
+ - Lists required connections
353
+ - Determines event types
354
+
355
+ ### 2. 100-Inference Breakdown
356
+ - Foundation (Infer 1-10)
357
+ - Backend (Infer 11-50)
358
+ - Frontend (Infer 21-80)
359
+ - Quality (Infer 41-90)
360
+ - Operations (Infer 91-100)
361
+
362
+ ### 3. Agent Assignments
363
+ - Each agent gets specific inferences
364
+ - Skills listed for each task
365
+ - Dependencies documented
366
+
367
+ ### 4. Quality Loop
368
+ - Tests defined before design/implementation
369
+ - Design created to satisfy tests
370
+ - Implementation validates against tests
371
+ - Failures trigger root cause analysis
372
+
373
+ ### 5. Timeline & Dependencies
374
+ - Parallel work identified
375
+ - Critical path highlighted
376
+ - Gantt chart generated
377
+
378
+ ## Usage Examples
379
+
380
+ ### Example 1: Convert Idea to Plan
102
381
 
103
382
  ```bash
104
- /plan --show-dependencies
383
+ /plan convert "Build an e-commerce store with product recommendations"
384
+
385
+ Output:
386
+ ✅ Plan generated: 100 inferences
387
+ ✅ Agents assigned: 15 specialists
388
+ ✅ Quality loops: 3
389
+ ✅ Dependencies: 24
105
390
  ```
106
391
 
107
- Shows dependency graph:
392
+ ### Example 2: View Plan with Agent Filter
393
+
394
+ ```bash
395
+ /plan filter --agent=backend
396
+
397
+ Output:
398
+ Shows only backend inferences:
399
+ - Infer 11-20: Schema design
400
+ - Infer 41-50: Queries
401
+ - Infer 51-60: Mutations
108
402
  ```
109
- Infer 21 (Create Astro page)
110
- ├─ Requires: Infer 12 (schema.ts updated)
111
- ├─ Requires: Infer 13 (Effect.ts service)
112
- └─ Requires: Infer 15 (Convex queries)
403
+
404
+ ### Example 3: Export and Share
405
+
406
+ ```bash
407
+ /plan export markdown
408
+
409
+ Output:
410
+ 📄 Created: one/plans/ecommerce-store.md
411
+ 📊 Statistics: 100 inferences, 15 agents, 90 days
412
+ 🔗 Share: /plan share
113
413
  ```
114
414
 
115
- ## Export Plan
415
+ ## Inference Workflow Integration
416
+
417
+ Once plan is created, use these commands:
116
418
 
117
419
  ```bash
118
- /plan --export=markdown # Export to one/plans/current-feature.md
119
- /plan --export=json # Export to .claude/state/plan.json
420
+ /now # Show current inference (Infer 1)
421
+ /next # Advance to next inference
422
+ /done # Mark complete, capture lessons
423
+ /goto [N] # Jump to specific inference
424
+ /build # Start building with agents
120
425
  ```
121
426
 
122
- ## Use Cases
427
+ ## Key Principles
428
+
429
+ 1. **Ideas → Plans:** Convert any idea into actionable 100-inference plan
430
+ 2. **Automatic Assignment:** Agent assignments happen automatically based on inference type
431
+ 3. **Quality First:** Tests defined before implementation
432
+ 4. **Parallel Execution:** Maximize agent parallelization
433
+ 5. **Complete Tracking:** Every inference tracked with status, dependencies, lessons
434
+ 6. **Continuous Learning:** Capture lessons after each inference
435
+
436
+ ---
437
+
438
+ ## See Also
123
439
 
124
- 1. **Starting a feature:** Review complete plan before beginning
125
- 2. **Mid-feature:** Check progress and what's remaining
126
- 3. **Blocked:** See dependencies for current inference
127
- 4. **Skipped review:** Verify skipped inferences were correct
128
- 5. **Handoff:** Share plan with team members
440
+ - [CASCADE System](./cascade.md) - Full agent orchestration
441
+ - [Inference Workflow](../commands/done.md) - Mark inferences complete
442
+ - [Agent Dashboard](./one.md) - View all agents
@@ -25,6 +25,12 @@ This command **MUST** delegate to the `agent-ops` specialist agent, which has th
25
25
  - `/release major` - Breaking changes (3.3.5 → 4.0.0)
26
26
  - `/release sync` - Sync files without version bump
27
27
 
28
+ ## Deployment Targets
29
+
30
+ - `/release patch main` - Deploy to one.ie (main site)
31
+ - `/release patch demo` - Deploy to demo.one.ie (demo/starter)
32
+ - `/release patch` - Deploy to both (default)
33
+
28
34
  ## Your Task
29
35
 
30
36
  **CRITICAL:** You MUST delegate this entire release to the `agent-ops` specialist by using the Task tool:
@@ -57,16 +63,21 @@ IMPORTANT: The CLOUDFLARE_GLOBAL_API_KEY is set in .env and provides FULL ACCESS
57
63
  4. If warnings only, continue
58
64
 
59
65
  ### Step 2: Version Bump & Sync (if not "sync")
60
- 1. Run `./scripts/release.sh [patch|minor|major]`
66
+ 1. Run `./scripts/release.sh [patch|minor|major] [main|demo]`
61
67
  2. This will:
62
68
  - Bump version in cli/package.json
63
- - Sync 518+ files to cli/ and apps/one/:
64
- - `/one/*` → `cli/one/` and `apps/one/one/`
65
- - `/.claude/*` → `cli/.claude/` and `apps/one/one/.claude/`
66
- - `/web/*` → `apps/one/web/` (git subtree)
69
+ - Sync 518+ files based on target:
70
+ - **For main:** `/web` + `/one` + `/.claude` → `apps/oneie/`
71
+ - **For demo:** `/web` + `/one` + `/.claude` → `apps/one/`
72
+ - **For both:** Sync to both targets
73
+ - Files synced:
74
+ - `/one/*` → `cli/one/` and `apps/{target}/one/`
75
+ - `/.claude/*` → `cli/.claude/` and `apps/{target}/one/.claude/`
76
+ - `/web/*` → `apps/{target}/web/` (rsync)
67
77
  - `CLAUDE.md`, `README.md`, `LICENSE.md`, `SECURITY.md` → all targets
68
- - `web/AGENTS.md` → `apps/one/one/AGENTS.md`
69
- - **AUTOMATICALLY** commit and push apps/one/ to one-ie/one (no confirmation needed)
78
+ - `web/AGENTS.md` → `apps/{target}/one/AGENTS.md`
79
+ - Copy environment file (.env.main or .env.demo) to apps/{target}/web/.env.local
80
+ - **AUTOMATICALLY** commit and push to GitHub repos (no confirmation needed)
70
81
  - Show git status for review
71
82
  3. When prompted for cli/ "Commit and push?", answer 'y'
72
83
  4. When prompted "Create tag?", answer 'y'
@@ -80,30 +91,41 @@ IMPORTANT: The CLOUDFLARE_GLOBAL_API_KEY is set in .env and provides FULL ACCESS
80
91
 
81
92
  ### Step 4: Build & Deploy Web to Cloudflare
82
93
 
83
- **Automatic Mode (if CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID are set):**
94
+ **Multi-Site Architecture:**
95
+ - **Main Site (oneie project):** https://one.ie - Full platform with backend
96
+ - **Demo Site (one project):** https://demo.one.ie - Starter template (frontend-only)
97
+
98
+ **Automatic Mode (if CLOUDFLARE_GLOBAL_API_KEY is set):**
84
99
  1. The release script automatically detects credentials
85
- 2. Builds web with `cd web && bun run build`
86
- 3. Deploys via `scripts/cloudflare-deploy.sh` using Cloudflare API
87
- 4. Shows deployment status and URLs
88
- 5. **Zero confirmation needed** - fully automated!
100
+ 2. Syncs web to apps/oneie/ or apps/one/ based on target
101
+ 3. Copies appropriate .env file (.env.main or .env.demo)
102
+ 4. Builds web with environment-specific config
103
+ 5. Deploys via Cloudflare API
104
+ 6. Shows deployment status and URLs
105
+ 7. **Zero confirmation needed** - fully automated!
89
106
 
90
107
  **Manual Mode (if credentials not set):**
91
- 1. `cd web`
108
+ 1. `cd apps/oneie/web` (or `apps/one/web` for demo)
92
109
  2. Run `bun run build`
93
- 3. When prompted "Deploy web to Cloudflare Pages via wrangler?", answer 'y'
94
- 4. Script runs `wrangler pages deploy dist --project-name=web`
110
+ 3. When prompted "Deploy to Cloudflare Pages?", answer 'y'
111
+ 4. Script runs `wrangler pages deploy dist --project-name=oneie` (or `one`)
95
112
  5. Capture deployment URL and report to user
96
113
 
97
114
  **Standalone Deployment:**
98
115
  ```bash
99
- # Deploy directly via Cloudflare module
100
- scripts/cloudflare-deploy.sh deploy web web/dist production
116
+ # Deploy main site
117
+ scripts/cloudflare-deploy.sh deploy oneie apps/oneie/web/dist production
118
+
119
+ # Deploy demo site
120
+ scripts/cloudflare-deploy.sh deploy one apps/one/web/dist production
101
121
 
102
122
  # Check deployment status
103
- scripts/cloudflare-deploy.sh status web
123
+ scripts/cloudflare-deploy.sh status oneie
124
+ scripts/cloudflare-deploy.sh status one
104
125
 
105
126
  # List recent deployments
106
- scripts/cloudflare-deploy.sh list web 5
127
+ scripts/cloudflare-deploy.sh list oneie 5
128
+ scripts/cloudflare-deploy.sh list one 5
107
129
  ```
108
130
 
109
131
  ### Step 5: Verification