oneie 3.5.0 → 3.6.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.
Files changed (132) hide show
  1. package/.claude/agents/agent-director.md +902 -22
  2. package/.claude/agents/agent-onboard-example-output.md +600 -0
  3. package/.claude/agents/agent-onboard.md +576 -0
  4. package/.claude/commands/ONBOARDING_ENHANCEMENT_SUMMARY.md +266 -0
  5. package/.claude/commands/one.md +375 -5
  6. package/.claude/commands/release.md +64 -3
  7. package/CLAUDE.md +55 -69
  8. package/dist/commands/init.d.ts +5 -6
  9. package/dist/commands/init.d.ts.map +1 -1
  10. package/dist/commands/init.js +101 -101
  11. package/dist/commands/init.js.map +1 -1
  12. package/dist/index.js +6 -5
  13. package/dist/index.js.map +1 -1
  14. package/dist/utils/installation-setup.d.ts +24 -1
  15. package/dist/utils/installation-setup.d.ts.map +1 -1
  16. package/dist/utils/installation-setup.js +85 -1
  17. package/dist/utils/installation-setup.js.map +1 -1
  18. package/dist/utils/launch-claude.d.ts +6 -0
  19. package/dist/utils/launch-claude.d.ts.map +1 -0
  20. package/dist/utils/launch-claude.js +51 -0
  21. package/dist/utils/launch-claude.js.map +1 -0
  22. package/dist/utils/validation.d.ts +48 -0
  23. package/dist/utils/validation.d.ts.map +1 -0
  24. package/dist/utils/validation.js +73 -0
  25. package/dist/utils/validation.js.map +1 -0
  26. package/folders.yaml +1 -1
  27. package/one/.obsidian/core-plugins.json +33 -0
  28. package/one/.obsidian/workspace.json +20 -20
  29. package/one/connections/workflow-onboarding.md +683 -0
  30. package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +354 -0
  31. package/one/events/CRITICAL-FIXES-COMPLETE.md +504 -0
  32. package/one/events/DEPLOYMENT.md +178 -0
  33. package/one/events/ECOMMERCE-DEMO-PLAN.md +225 -0
  34. package/one/events/ECOMMERCE-LIVE-DEMO.md +363 -0
  35. package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +735 -0
  36. package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +923 -0
  37. package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +223 -0
  38. package/one/events/HANDOFF.md +313 -0
  39. package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +503 -0
  40. package/one/events/IMPLEMENTATION_SUMMARY.md +529 -0
  41. package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +666 -0
  42. package/one/events/LANDING-PAGE-IMPLEMENTATION.md +642 -0
  43. package/one/events/LANDING-PAGE-QUICKSTART.md +407 -0
  44. package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +1627 -0
  45. package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +573 -0
  46. package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +398 -0
  47. package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +525 -0
  48. package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +455 -0
  49. package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +486 -0
  50. package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +203 -0
  51. package/one/events/SECURITY-AUDIT-FIXES.md +376 -0
  52. package/one/events/SECURITY-SCAN-COMPLETE.md +281 -0
  53. package/one/events/SHOP-BUILD-STATUS.md +114 -0
  54. package/one/events/SHOP-PREMIUM-UPDATE.md +149 -0
  55. package/one/events/SITE-WIDE-GRADIENT-FIX.md +299 -0
  56. package/one/events/STORE-PRODUCTION-READY-STATUS.md +359 -0
  57. package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +429 -0
  58. package/one/events/agent-director-enhancement-summary.md +386 -0
  59. package/one/events/agent-onboard-implementation-summary.md +457 -0
  60. package/one/events/clean-agent-ontology-cleanup-report.md +353 -0
  61. package/one/events/landing-page-generator.md +458 -0
  62. package/one/events/onboarding-implementation-complete.md +505 -0
  63. package/one/events/release.md +254 -0
  64. package/one/events/separate-implementation-status.md +537 -0
  65. package/one/knowledge/100-inference-quick-reference.md +431 -0
  66. package/one/knowledge/agent-onboard-usage.md +612 -0
  67. package/one/knowledge/cli-claude-handoff.md +718 -0
  68. package/one/knowledge/ontology-blog.yaml +31 -0
  69. package/one/knowledge/ontology-cheatsheet.md +591 -0
  70. package/one/knowledge/ontology-community.yaml +42 -0
  71. package/one/knowledge/ontology-core-universal.md +722 -0
  72. package/one/knowledge/ontology-core.yaml +50 -0
  73. package/one/knowledge/ontology-courses.yaml +53 -0
  74. package/one/knowledge/ontology-creator.md +376 -0
  75. package/one/knowledge/ontology-developer-guide.md +789 -0
  76. package/one/knowledge/ontology-education.md +920 -0
  77. package/one/knowledge/ontology-index.md +354 -0
  78. package/one/knowledge/ontology-migration-guide.md +811 -0
  79. package/one/knowledge/ontology-minimal.yaml +1 -1
  80. package/one/knowledge/ontology-portfolio.yaml +31 -0
  81. package/one/knowledge/ontology-quickstart.md +576 -0
  82. package/one/knowledge/ontology-shop.yaml +121 -0
  83. package/one/knowledge/ontology-tokens.yaml +32 -0
  84. package/one/knowledge/ontology-tutorial.md +434 -0
  85. package/one/knowledge/ontology-video-script.md +890 -0
  86. package/one/things/docs/ecommerce/ARCHITECTURE-DIAGRAM.md +467 -0
  87. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-IMPLEMENTATION.md +408 -0
  88. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-SUMMARY.md +369 -0
  89. package/one/things/docs/ecommerce/CONVERSION-UX-IMPLEMENTATION-SUMMARY.md +396 -0
  90. package/one/things/docs/ecommerce/FEATURE-SUMMARY.md +468 -0
  91. package/one/things/docs/ecommerce/IMPLEMENTATION-NOTES.md +582 -0
  92. package/one/things/docs/ecommerce/INTEGRATION-EXAMPLE.md +449 -0
  93. package/one/things/docs/ecommerce/QUICK-START.md +368 -0
  94. package/one/things/docs/ecommerce/URGENCY-IMPLEMENTATION-SUMMARY.md +498 -0
  95. package/one/things/docs/ecommerce/URGENCY-QUICK-REFERENCE.md +237 -0
  96. package/one/things/docs/ecommerce/USAGE-EXAMPLE.astro +171 -0
  97. package/one/things/docs/ecommerce/demo.astro +309 -0
  98. package/one/things/plans/agent-director-100-inference-plans.md +410 -0
  99. package/one/things/plans/dual-website-strategy.md +612 -0
  100. package/one/things/plans/feature-based-sites.md +821 -0
  101. package/one/things/plans/multi-ontology-architecture.md +836 -0
  102. package/one/things/plans/onboarding.md +32 -0
  103. package/one/things/plans/separate.md +15 -17
  104. package/one/things/plans/start-new.md +738 -0
  105. package/package.json +2 -2
  106. package/one/things/claude/hooks/agent-hook-manager.js +0 -525
  107. package/one/things/claude/hooks/agent-load-balancer.js +0 -271
  108. package/one/things/claude/hooks/agent-request-interceptor.js +0 -70
  109. package/one/things/claude/hooks/cascade-feedback.js +0 -297
  110. package/one/things/claude/hooks/cascade-integration-hooks.js +0 -648
  111. package/one/things/claude/hooks/continuous-improvement-monitor.js +0 -510
  112. package/one/things/claude/hooks/file-organization-engine.js +0 -427
  113. package/one/things/claude/hooks/file-organization-monitor.js +0 -269
  114. package/one/things/claude/hooks/hook-config-manager.js +0 -202
  115. package/one/things/claude/hooks/hook-orchestrator.js +0 -662
  116. package/one/things/claude/hooks/hook-performance-report.js +0 -120
  117. package/one/things/claude/hooks/mcp-cascade-integration.js +0 -816
  118. package/one/things/claude/hooks/memory-optimizer.js +0 -510
  119. package/one/things/claude/hooks/ontology-compliance.js +0 -394
  120. package/one/things/claude/hooks/ontology-hook-manager.js +0 -316
  121. package/one/things/claude/hooks/ontology-validation-engine.js +0 -317
  122. package/one/things/claude/hooks/performance-monitoring-hook.js +0 -422
  123. package/one/things/claude/hooks/quality-scoring-engine.js +0 -834
  124. package/one/things/claude/hooks/simple-load-balancer.js +0 -238
  125. package/one/things/claude/hooks/startup-optimizer.js +0 -625
  126. package/one/things/claude/hooks/story-scoring-system.js +0 -445
  127. package/one/things/claude/hooks/story-validation-engine.js +0 -473
  128. package/one/things/claude/hooks/structure-synchronizer.js +0 -194
  129. package/one/things/claude/hooks/sub-agent-output-validator.js +0 -647
  130. package/one/things/claude/hooks/sub-agent-validation-hook.js +0 -343
  131. package/one/things/claude/hooks/trinity-validation-system.js +0 -392
  132. package/one/things/plans/organizations-to-groups.md +0 -705
@@ -0,0 +1,386 @@
1
+ # Agent Director Enhancement Summary
2
+
3
+ **Date:** 2025-10-20
4
+ **Version:** 2.0.0
5
+ **Enhancement:** 100-Inference Plan Generation from Feature Selections
6
+
7
+ ---
8
+
9
+ ## What Was Added
10
+
11
+ The agent-director has been enhanced with complete 100-inference plan generation capabilities, transforming it from a simple workflow orchestrator into an intelligent plan generator and execution coordinator.
12
+
13
+ ### 1. Feature Library (20+ Features)
14
+
15
+ A comprehensive library mapping every feature to specific inference ranges:
16
+
17
+ **Foundation Features (Required):**
18
+ - `landing-page` (Infer 1-10) - agent-frontend - ~5 min
19
+ - `authentication` (Infer 11-20) - existing - ~0 min
20
+ - `multi-tenant-groups` (Infer 21-30) - agent-backend - ~10 min
21
+
22
+ **Content & Creator Features:**
23
+ - `content-publishing` (Infer 31-40) - agent-frontend - ~15 min
24
+ - `membership-tiers` (Infer 41-50) - agent-backend - ~15 min
25
+ - `revenue-tracking` (Infer 51-60) - agent-backend - ~10 min
26
+
27
+ **Developer Features:**
28
+ - `project-management` (Infer 31-40) - agent-builder - ~15 min
29
+ - `code-repositories` (Infer 41-50) - agent-integrator - ~15 min
30
+ - `deployment-pipeline` (Infer 51-60) - agent-ops - ~20 min
31
+
32
+ **AI Features:**
33
+ - `ai-agents` (Infer 61-70) - agent-builder - ~20 min
34
+ - `rag-knowledge` (Infer 71-80) - agent-backend - ~15 min
35
+ - `semantic-search` (Infer 81-90) - agent-backend - ~10 min
36
+
37
+ **Integration Features:**
38
+ - `stripe-payments` (Infer 31-40) - agent-integrator - ~15 min
39
+ - `email-marketing` (Infer 41-50) - agent-integrator - ~10 min
40
+ - `discord-community` (Infer 51-60) - agent-integrator - ~15 min
41
+
42
+ **Design & UX Features:**
43
+ - `design-system` (Infer 71-80) - agent-designer - ~15 min
44
+ - `wireframes` (Infer 71-75) - agent-designer - ~10 min
45
+
46
+ **Performance & Analytics Features:**
47
+ - `performance-monitoring` (Infer 81-90) - agent-ops - ~10 min
48
+ - `analytics-dashboard` (Infer 81-90) - agent-frontend - ~15 min
49
+
50
+ Each feature includes:
51
+ - Inference range (where it fits in 1-100)
52
+ - Specialist agent assignment
53
+ - Duration estimate
54
+ - Cost estimate
55
+ - Dependencies
56
+ - Complete ontology mapping (things, connections, events, knowledge)
57
+
58
+ ### 2. Plan Generation Algorithm
59
+
60
+ A 6-step algorithm for converting feature selections into executable plans:
61
+
62
+ **Step 1: Read Feature Selections**
63
+ - From `.onboarding.json` or user input
64
+ - Includes organization name, website URL, custom ontology
65
+
66
+ **Step 2: Resolve Dependencies**
67
+ - Automatically includes required dependencies
68
+ - Prevents breaking changes from missing dependencies
69
+ - Example: Selecting "ai-agents" automatically includes "landing-page", "authentication", "multi-tenant-groups"
70
+
71
+ **Step 3: Map to Inference Ranges**
72
+ - Creates phases with specific inference ranges
73
+ - Assigns specialist agents
74
+ - Maps to ontology dimensions
75
+
76
+ **Step 4: Calculate Estimates**
77
+ - Total duration (minutes + hours)
78
+ - Total cost (sum of all features)
79
+ - Total inference count (out of 100)
80
+
81
+ **Step 5: Generate Execution Plan**
82
+ - Complete ExecutionPlan structure
83
+ - Phase definitions with metadata
84
+ - Progress tracking structure
85
+
86
+ **Step 6: Write to .onboarding.json**
87
+ - Saves complete plan as JSON
88
+ - Creates human-readable markdown summary (.onboarding-plan.md)
89
+
90
+ ### 3. Execution Coordination
91
+
92
+ Event-driven workflow coordination across all specialist agents:
93
+
94
+ **Phase Execution Pattern:**
95
+ 1. Emit `phase_started` event
96
+ 2. Delegate to specialist agent
97
+ 3. Monitor progress via events
98
+ 4. Update `.onboarding.json` progress
99
+ 5. Emit `phase_complete` event
100
+
101
+ **Progress Tracking:**
102
+ - Real-time updates to `.onboarding.json`
103
+ - Completion percentage calculation
104
+ - Current inference tracking
105
+ - Phase status tracking
106
+
107
+ **Sequential vs Parallel Execution:**
108
+ - Automatic detection of parallelizable phases
109
+ - No shared dependencies = parallel execution
110
+ - Different specialists = optimization opportunity
111
+
112
+ **Error Handling & Recovery:**
113
+ - Retry with exponential backoff (max 3 attempts)
114
+ - Delegate to problem-solver on final failure
115
+ - Manual intervention support
116
+ - Error logging to `.onboarding.json`
117
+
118
+ **Real-Time Status Display:**
119
+ - Progress percentage
120
+ - Current phase and inference
121
+ - Phase list with status icons
122
+ - Estimates (duration, cost)
123
+
124
+ ### 4. Data Structures
125
+
126
+ **ExecutionPlan Interface:**
127
+ ```typescript
128
+ interface ExecutionPlan {
129
+ version: string;
130
+ organizationName: string;
131
+ createdAt: number;
132
+ plan: {
133
+ phases: Phase[];
134
+ totalInferences: number;
135
+ currentInference: number;
136
+ completedInferences: number[];
137
+ estimates: {
138
+ duration: string;
139
+ cost: string;
140
+ inferences: number;
141
+ };
142
+ };
143
+ progress: {
144
+ status: "pending" | "in_progress" | "completed";
145
+ startedAt?: number;
146
+ completedAt?: number;
147
+ currentPhase?: string;
148
+ };
149
+ }
150
+ ```
151
+
152
+ **Phase Interface:**
153
+ ```typescript
154
+ interface Phase {
155
+ name: string;
156
+ featureKey: string;
157
+ inferences: { start: number; end: number };
158
+ specialist: string;
159
+ duration: string;
160
+ cost: string;
161
+ status: "pending" | "in_progress" | "completed" | "failed";
162
+ ontology: {
163
+ things?: string[];
164
+ connections?: string[];
165
+ events?: string[];
166
+ knowledge?: string[];
167
+ };
168
+ }
169
+ ```
170
+
171
+ ---
172
+
173
+ ## How It Works
174
+
175
+ ### Example: User Selects 5 Features
176
+
177
+ **Input:**
178
+ ```json
179
+ {
180
+ "selectedFeatures": [
181
+ "landing-page",
182
+ "authentication",
183
+ "multi-tenant-groups",
184
+ "project-management",
185
+ "ai-agents"
186
+ ],
187
+ "organizationName": "Acme Corp",
188
+ "websiteUrl": "https://acme.com"
189
+ }
190
+ ```
191
+
192
+ **Process:**
193
+ 1. **Resolve Dependencies**: All dependencies automatically included (none needed in this case)
194
+ 2. **Map to Inferences**:
195
+ - landing-page → Infer 1-10
196
+ - authentication → Infer 11-20 (existing, skip)
197
+ - multi-tenant-groups → Infer 21-30
198
+ - project-management → Infer 31-40
199
+ - ai-agents → Infer 61-70
200
+ - deployment → Infer 91-100 (always included)
201
+ 3. **Calculate Estimates**:
202
+ - Total: 50 inferences (out of 100)
203
+ - Duration: ~60 minutes (~1 hour)
204
+ - Cost: $0
205
+ 4. **Generate Plan**: Complete ExecutionPlan with 6 phases
206
+ 5. **Write to `.onboarding.json`**: JSON + markdown summary
207
+
208
+ **Output:**
209
+ ```
210
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
211
+ 🤖 BUILDING Acme Corp
212
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
213
+
214
+ Progress: 0.0% (0/50 inferences)
215
+
216
+ Current Phase: Starting...
217
+ Current Inference: 1
218
+
219
+ Phases:
220
+ ⏳ Landing Page (Infer 1-10)
221
+ agent-frontend • ~5 min
222
+ ⏳ Authentication (Infer 11-20)
223
+ existing • ~0 min
224
+ ⏳ Multi-Tenant Groups (Infer 21-30)
225
+ agent-backend • ~10 min
226
+ ⏳ Project Management (Infer 31-40)
227
+ agent-builder • ~15 min
228
+ ⏳ AI Agents (Infer 61-70)
229
+ agent-builder • ~20 min
230
+ ⏳ Deployment & Documentation (Infer 91-100)
231
+ agent-ops • ~10 min
232
+
233
+ Estimates:
234
+ Duration: 60 minutes (~1 hours)
235
+ Cost: $0.00
236
+
237
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
238
+ ```
239
+
240
+ ---
241
+
242
+ ## Integration with Onboarding Workflow
243
+
244
+ The enhanced agent-director integrates seamlessly with the existing onboarding workflow:
245
+
246
+ 1. **CLI runs** `npx oneie init`
247
+ 2. **User provides** organization name, website URL
248
+ 3. **agent-onboard** analyzes website, creates custom ontology
249
+ 4. **User selects** features from CLI menu
250
+ 5. **agent-director** generates 100-inference plan
251
+ 6. **agent-director** coordinates execution across specialists
252
+ 7. **Real-time progress** shown in terminal
253
+ 8. **Each phase completes** → Live deployment
254
+ 9. **Final result** → Fully functional platform
255
+
256
+ ---
257
+
258
+ ## Benefits
259
+
260
+ ### 1. Transparent Planning
261
+ - Users see exactly what will be built
262
+ - Clear inference count (e.g., 50/100 inferences)
263
+ - Accurate time and cost estimates
264
+
265
+ ### 2. Incremental Value
266
+ - Each phase deploys immediately
267
+ - User sees progress in real-time
268
+ - Can stop/resume at any inference
269
+
270
+ ### 3. Intelligent Dependencies
271
+ - Automatic dependency resolution
272
+ - No breaking changes from missing features
273
+ - Optimized execution order
274
+
275
+ ### 4. Multi-Agent Coordination
276
+ - Event-driven workflow (no manual handoffs)
277
+ - Parallel execution where possible
278
+ - Automatic error recovery
279
+
280
+ ### 5. Complete Tracking
281
+ - `.onboarding.json` contains full history
282
+ - Markdown summary for human readability
283
+ - Progress events for real-time monitoring
284
+
285
+ ---
286
+
287
+ ## Next Steps
288
+
289
+ ### For Implementation:
290
+
291
+ 1. **Test Plan Generation**:
292
+ - Run with various feature combinations
293
+ - Verify dependency resolution
294
+ - Validate estimates
295
+
296
+ 2. **Test Execution Coordination**:
297
+ - Execute phases sequentially
298
+ - Test parallel execution
299
+ - Verify error handling
300
+
301
+ 3. **Integrate with CLI**:
302
+ - Add feature selection menu
303
+ - Display progress in terminal
304
+ - Handle user interruption
305
+
306
+ 4. **Add Real-Time Updates**:
307
+ - Stream progress to CLI
308
+ - Send notifications on phase completion
309
+ - Update live dashboard
310
+
311
+ 5. **Optimize Performance**:
312
+ - Maximize parallel execution
313
+ - Minimize specialist context switching
314
+ - Cache common operations
315
+
316
+ ---
317
+
318
+ ## Files Modified
319
+
320
+ - **/.claude/agents/agent-director.md** - Enhanced with:
321
+ - Feature library (20+ features)
322
+ - Plan generation algorithm (6 steps)
323
+ - Execution coordination (event-driven)
324
+ - Progress tracking (real-time)
325
+
326
+ ---
327
+
328
+ ## Example .onboarding.json Output
329
+
330
+ ```json
331
+ {
332
+ "version": "1.0.0",
333
+ "organizationName": "Acme Corp",
334
+ "createdAt": 1729425600000,
335
+ "plan": {
336
+ "phases": [
337
+ {
338
+ "name": "Landing Page",
339
+ "featureKey": "landing-page",
340
+ "inferences": { "start": 1, "end": 10 },
341
+ "specialist": "agent-frontend",
342
+ "duration": "~5 min",
343
+ "cost": "$0",
344
+ "status": "pending",
345
+ "ontology": {
346
+ "things": ["landing_page", "website"],
347
+ "connections": ["part_of"],
348
+ "events": ["page_created", "page_deployed"],
349
+ "knowledge": ["brand_colors", "brand_voice"]
350
+ }
351
+ }
352
+ // ... more phases
353
+ ],
354
+ "totalInferences": 50,
355
+ "currentInference": 1,
356
+ "completedInferences": [],
357
+ "estimates": {
358
+ "duration": "60 minutes (~1 hours)",
359
+ "cost": "$0.00",
360
+ "inferences": 50
361
+ }
362
+ },
363
+ "progress": {
364
+ "status": "pending"
365
+ }
366
+ }
367
+ ```
368
+
369
+ ---
370
+
371
+ ## Success Metrics
372
+
373
+ The enhancement is successful if:
374
+
375
+ - [ ] Feature library contains 20+ features with complete metadata
376
+ - [ ] Plan generation resolves dependencies correctly
377
+ - [ ] Estimates are accurate (±10% margin of error)
378
+ - [ ] Execution coordinator handles all phases sequentially
379
+ - [ ] Progress tracking updates .onboarding.json in real-time
380
+ - [ ] Parallel execution works for independent phases
381
+ - [ ] Error recovery retries failed phases
382
+ - [ ] Real-time display shows current status
383
+
384
+ ---
385
+
386
+ **Ready to generate 100-inference plans from feature selections!** 🚀