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,264 +0,0 @@
1
- # Tests for Feature 1-1: Agent Prompts System
2
-
3
- **Feature:** 1-1-agent-prompts
4
- **Status:** Tests Defined → Design Phase
5
- **Quality Agent:** agent-quality.md
6
-
7
- ---
8
-
9
- ## User Flows (What Users Must Accomplish)
10
-
11
- ### Flow 1: Agent Understands Its Role
12
- **User goal:** Agent receives work and knows what to do
13
- **Time budget:** < 5 seconds to parse prompt and context
14
- **Steps:**
15
- 1. Agent receives feature assignment event
16
- 2. Agent loads prompt from file
17
- 3. Agent understands role, responsibilities, inputs, outputs
18
- 4. Agent knows what decisions to make
19
- 5. Agent begins work correctly
20
-
21
- **Acceptance Criteria:**
22
- - [ ] Agent loads correct prompt file (< 100ms)
23
- - [ ] Agent parses role and responsibilities clearly
24
- - [ ] Agent identifies required inputs from event metadata
25
- - [ ] Agent knows what outputs to produce
26
- - [ ] Agent understands decision framework
27
- - [ ] Total prompt comprehension: < 5 seconds
28
-
29
- ---
30
-
31
- ### Flow 2: Agent Coordinates via Events
32
- **User goal:** Agents communicate through events without manual intervention
33
- **Time budget:** < 1 second per event emission/reception
34
- **Steps:**
35
- 1. Agent completes work
36
- 2. Agent emits appropriate event with metadata
37
- 3. Other agents monitoring for that event receive it
38
- 4. Receiving agents act on event automatically
39
- 5. No manual coordination needed
40
-
41
- **Acceptance Criteria:**
42
- - [ ] Agent emits events with correct type and metadata
43
- - [ ] Events logged to events table (< 50ms)
44
- - [ ] Subscribing agents receive events (< 500ms)
45
- - [ ] Agents trigger correct actions based on events
46
- - [ ] No missed events (100% delivery)
47
- - [ ] Complete coordination cycle: < 5 seconds
48
-
49
- ---
50
-
51
- ### Flow 3: Agent Uses Context Correctly
52
- **User goal:** Agent loads exactly what it needs within token budget
53
- **Time budget:** < 2 seconds to assemble context
54
- **Steps:**
55
- 1. Agent receives assignment
56
- 2. Agent determines what context needed
57
- 3. Agent loads ontology types (if needed)
58
- 4. Agent loads patterns (if needed)
59
- 5. Agent loads recent lessons (if needed)
60
- 6. Agent stays within token budget
61
- 7. Agent has sufficient context to execute
62
-
63
- **Acceptance Criteria:**
64
- - [ ] Context loading: < 2 seconds
65
- - [ ] Token count within budget (director: 200, specialist: 1500, quality: 2000, problem-solver: 2500, documenter: 1000)
66
- - [ ] Includes all necessary information
67
- - [ ] Excludes unnecessary information
68
- - [ ] Context prioritizes recent/relevant items
69
- - [ ] Agent can execute successfully with loaded context
70
-
71
- ---
72
-
73
- ### Flow 4: Agent Makes Correct Decisions
74
- **User goal:** Agent follows decision framework consistently
75
- **Time budget:** < 10 seconds per decision
76
- **Steps:**
77
- 1. Agent encounters decision point
78
- 2. Agent references decision framework from prompt
79
- 3. Agent evaluates options against criteria
80
- 4. Agent makes decision
81
- 5. Agent documents reasoning
82
- 6. Decision aligns with framework
83
-
84
- **Acceptance Criteria:**
85
- - [ ] Agent references decision framework
86
- - [ ] Agent evaluates all decision criteria
87
- - [ ] Agent makes consistent decisions (same inputs → same outputs)
88
- - [ ] Agent documents reasoning in output
89
- - [ ] Decisions align with role responsibilities
90
- - [ ] Decision time: < 10 seconds
91
-
92
- ---
93
-
94
- ### Flow 5: Agent Captures Examples from Prompt
95
- **User goal:** Agent learns from examples in prompt
96
- **Time budget:** Instant (examples part of prompt)
97
- **Steps:**
98
- 1. Agent reads prompt with examples
99
- 2. Agent identifies example patterns
100
- 3. Agent applies example patterns to current work
101
- 4. Agent output matches example format
102
- 5. Consistency across similar tasks
103
-
104
- **Acceptance Criteria:**
105
- - [ ] Agent output format matches prompt examples
106
- - [ ] Agent applies patterns from examples
107
- - [ ] Consistent structure across outputs
108
- - [ ] Examples inform agent behavior
109
- - [ ] New situations handled similarly to examples
110
-
111
- ---
112
-
113
- ## Technical Tests (Implementation Validation)
114
-
115
- ### Unit Tests
116
-
117
- **Prompt Loading:**
118
- - [ ] `loadAgentPrompt(role)` loads correct .md file
119
- - [ ] `loadAgentPrompt(role)` caches after first load
120
- - [ ] `loadAgentPrompt(role)` returns error if file missing
121
- - [ ] `loadAgentPrompt(role)` handles all 8 agent types
122
-
123
- **Context Assembly:**
124
- - [ ] `assembleContext(role, input)` stays within token budget
125
- - [ ] `assembleContext("director")` loads 200 tokens (ontology types)
126
- - [ ] `assembleContext("backend-specialist")` loads 1500 tokens (types + patterns)
127
- - [ ] `assembleContext("quality")` loads 2000 tokens (ontology + feature + UX)
128
- - [ ] `assembleContext("problem-solver")` loads 2500 tokens (tests + code + ontology)
129
- - [ ] `assembleContext("documenter")` loads 1000 tokens (feature + tests)
130
-
131
- **Decision Framework:**
132
- - [ ] Agents parse decision framework from prompt
133
- - [ ] Agents apply framework to inputs
134
- - [ ] Same inputs → same decisions (consistency)
135
-
136
- **Event Communication:**
137
- - [ ] Agent emits correct event types
138
- - [ ] Event metadata includes required fields
139
- - [ ] Events logged to events table
140
- - [ ] Agent subscriptions trigger correctly
141
-
142
- ---
143
-
144
- ### Integration Tests
145
-
146
- **Complete Agent Execution:**
147
- - [ ] Director agent: Validates idea → creates plan
148
- - [ ] Backend specialist: Writes feature spec → implements code
149
- - [ ] Frontend specialist: Writes UI spec → implements components
150
- - [ ] Integration specialist: Connects systems → validates flow
151
- - [ ] Quality agent: Defines tests → validates implementation
152
- - [ ] Design agent: Creates wireframes → defines architecture
153
- - [ ] Problem solver: Analyzes failure → proposes solution
154
- - [ ] Documenter: Writes docs → updates knowledge base
155
-
156
- **Agent Coordination:**
157
- - [ ] Director assigns → Specialist receives
158
- - [ ] Specialist completes → Quality validates
159
- - [ ] Quality fails → Problem solver analyzes
160
- - [ ] Problem solver proposes → Specialist fixes
161
- - [ ] Specialist fixes → Quality re-validates
162
- - [ ] Quality passes → Documenter writes
163
- - [ ] Documenter completes → Director marks done
164
-
165
- **Context Management:**
166
- - [ ] All agents stay within token budgets
167
- - [ ] Context includes necessary information
168
- - [ ] Context loading performant (< 2s)
169
-
170
- ---
171
-
172
- ### E2E Tests
173
-
174
- **Complete Workflow (Idea → Implementation):**
175
- - [ ] Director validates idea (Flow 1)
176
- - [ ] Director creates plan with features
177
- - [ ] Director assigns features to specialists
178
- - [ ] Specialists write specs using prompts
179
- - [ ] Quality defines tests
180
- - [ ] Design creates wireframes
181
- - [ ] Specialists implement
182
- - [ ] Quality validates
183
- - [ ] Documenter writes docs
184
- - [ ] Director marks complete
185
- - [ ] Total time: < 1 hour for simple feature
186
-
187
- **Agent Coordination (No Manual Intervention):**
188
- - [ ] Agents coordinate via events only
189
- - [ ] No manual handoffs needed
190
- - [ ] Parallel execution works (multiple features)
191
- - [ ] Error handling works (test failures → problem solver)
192
- - [ ] Knowledge capture works (lessons learned added)
193
-
194
- **Prompt Quality:**
195
- - [ ] All 8 prompts contain required sections
196
- - [ ] Prompts are clear and unambiguous
197
- - [ ] Examples are helpful and accurate
198
- - [ ] Decision frameworks are complete
199
- - [ ] Communication patterns are defined
200
-
201
- ---
202
-
203
- ## Definition of Done
204
-
205
- - [ ] All 8 agent prompt files created
206
- - [ ] All user flows work as specified
207
- - [ ] All acceptance criteria met
208
- - [ ] All unit tests pass
209
- - [ ] All integration tests pass
210
- - [ ] All e2e tests pass
211
- - [ ] Agents coordinate autonomously via events
212
- - [ ] Context budgets respected
213
- - [ ] Decision frameworks applied consistently
214
- - [ ] Examples in prompts inform agent behavior
215
-
216
- ---
217
-
218
- ## Test Priority
219
-
220
- **Critical (Must Pass):**
221
- - Agent loads correct prompt
222
- - Context stays within token budget
223
- - Agents emit events correctly
224
- - Basic coordination works (assign → receive)
225
-
226
- **High (Should Pass):**
227
- - All user flows work
228
- - Decision framework applied consistently
229
- - Complete workflow (idea → implementation)
230
-
231
- **Medium (Nice to Have):**
232
- - Performance targets met (< 2s context, < 5s decisions)
233
- - Advanced coordination (error handling, parallel execution)
234
-
235
- ---
236
-
237
- ## Test Execution Plan
238
-
239
- ### Phase 1: Unit Tests (Week 1)
240
- - Test prompt loading
241
- - Test context assembly
242
- - Test decision framework parsing
243
- - Test event emission
244
-
245
- ### Phase 2: Integration Tests (Week 2)
246
- - Test agent execution (one agent at a time)
247
- - Test agent coordination (pairs: director → specialist)
248
- - Test context management
249
-
250
- ### Phase 3: E2E Tests (Week 3)
251
- - Test complete workflow (simple feature)
252
- - Test error handling (test failures)
253
- - Test parallel execution
254
- - Test knowledge capture
255
-
256
- ### Phase 4: Refinement (Week 4)
257
- - Fix failing tests
258
- - Optimize performance
259
- - Improve prompt clarity
260
- - Add missing examples
261
-
262
- ---
263
-
264
- **Next:** Design phase - Structure prompt templates and context loading system