oneie 3.4.2 → 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 (143) 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 +411 -10
  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/app.json +8 -0
  28. package/one/.obsidian/appearance.json +1 -0
  29. package/one/.obsidian/community-plugins.json +3 -0
  30. package/one/.obsidian/core-plugins.json +33 -0
  31. package/one/.obsidian/plugins/easy-bake/main.js +361 -0
  32. package/one/.obsidian/plugins/easy-bake/manifest.json +11 -0
  33. package/one/.obsidian/plugins/easy-bake/styles.css +10 -0
  34. package/one/.obsidian/workspace.json +240 -0
  35. package/one/connections/workflow-onboarding.md +683 -0
  36. package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +354 -0
  37. package/one/events/CRITICAL-FIXES-COMPLETE.md +504 -0
  38. package/one/events/DEPLOYMENT.md +178 -0
  39. package/one/events/ECOMMERCE-DEMO-PLAN.md +225 -0
  40. package/one/events/ECOMMERCE-LIVE-DEMO.md +363 -0
  41. package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +735 -0
  42. package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +923 -0
  43. package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +223 -0
  44. package/one/events/HANDOFF.md +313 -0
  45. package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +503 -0
  46. package/one/events/IMPLEMENTATION_SUMMARY.md +529 -0
  47. package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +666 -0
  48. package/one/events/LANDING-PAGE-IMPLEMENTATION.md +642 -0
  49. package/one/events/LANDING-PAGE-QUICKSTART.md +407 -0
  50. package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +1627 -0
  51. package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +573 -0
  52. package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +398 -0
  53. package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +525 -0
  54. package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +455 -0
  55. package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +486 -0
  56. package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +203 -0
  57. package/one/events/SECURITY-AUDIT-FIXES.md +376 -0
  58. package/one/events/SECURITY-SCAN-COMPLETE.md +281 -0
  59. package/one/events/SHOP-BUILD-STATUS.md +114 -0
  60. package/one/events/SHOP-PREMIUM-UPDATE.md +149 -0
  61. package/one/events/SITE-WIDE-GRADIENT-FIX.md +299 -0
  62. package/one/events/STORE-PRODUCTION-READY-STATUS.md +359 -0
  63. package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +429 -0
  64. package/one/events/agent-director-enhancement-summary.md +386 -0
  65. package/one/events/agent-onboard-implementation-summary.md +457 -0
  66. package/one/events/clean-agent-ontology-cleanup-report.md +353 -0
  67. package/one/events/landing-page-generator.md +458 -0
  68. package/one/events/onboarding-implementation-complete.md +505 -0
  69. package/one/events/release.md +254 -0
  70. package/one/events/separate-implementation-status.md +537 -0
  71. package/one/groups/nine-padle-contents.baked.md +1252 -0
  72. package/one/groups/nine-padle-contents.md +6 -0
  73. package/one/knowledge/100-inference-quick-reference.md +431 -0
  74. package/one/knowledge/agent-onboard-usage.md +612 -0
  75. package/one/knowledge/cli-claude-handoff.md +718 -0
  76. package/one/knowledge/installation-folders.md +45 -1
  77. package/one/knowledge/ontology-blog.yaml +31 -0
  78. package/one/knowledge/ontology-cheatsheet.md +591 -0
  79. package/one/knowledge/ontology-community.yaml +42 -0
  80. package/one/knowledge/ontology-core-universal.md +722 -0
  81. package/one/knowledge/ontology-core.yaml +50 -0
  82. package/one/knowledge/ontology-courses.yaml +53 -0
  83. package/one/knowledge/ontology-creator.md +376 -0
  84. package/one/knowledge/ontology-developer-guide.md +789 -0
  85. package/one/knowledge/ontology-education.md +920 -0
  86. package/one/knowledge/ontology-index.md +354 -0
  87. package/one/knowledge/ontology-migration-guide.md +811 -0
  88. package/one/knowledge/ontology-minimal.yaml +1 -1
  89. package/one/knowledge/ontology-portfolio.yaml +31 -0
  90. package/one/knowledge/ontology-quickstart.md +576 -0
  91. package/one/knowledge/ontology-shop.yaml +121 -0
  92. package/one/knowledge/ontology-tokens.yaml +32 -0
  93. package/one/knowledge/ontology-tutorial.md +434 -0
  94. package/one/knowledge/ontology-video-script.md +890 -0
  95. package/one/things/docs/ecommerce/ARCHITECTURE-DIAGRAM.md +467 -0
  96. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-IMPLEMENTATION.md +408 -0
  97. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-SUMMARY.md +369 -0
  98. package/one/things/docs/ecommerce/CONVERSION-UX-IMPLEMENTATION-SUMMARY.md +396 -0
  99. package/one/things/docs/ecommerce/FEATURE-SUMMARY.md +468 -0
  100. package/one/things/docs/ecommerce/IMPLEMENTATION-NOTES.md +582 -0
  101. package/one/things/docs/ecommerce/INTEGRATION-EXAMPLE.md +449 -0
  102. package/one/things/docs/ecommerce/QUICK-START.md +368 -0
  103. package/one/things/docs/ecommerce/URGENCY-IMPLEMENTATION-SUMMARY.md +498 -0
  104. package/one/things/docs/ecommerce/URGENCY-QUICK-REFERENCE.md +237 -0
  105. package/one/things/docs/ecommerce/USAGE-EXAMPLE.astro +171 -0
  106. package/one/things/docs/ecommerce/demo.astro +309 -0
  107. package/one/things/plans/agent-director-100-inference-plans.md +410 -0
  108. package/one/things/plans/dual-website-strategy.md +612 -0
  109. package/one/things/plans/feature-based-sites.md +821 -0
  110. package/one/things/plans/multi-ontology-architecture.md +836 -0
  111. package/one/things/plans/onboarding.md +32 -0
  112. package/one/things/plans/separate.md +15 -17
  113. package/one/things/plans/start-new.md +738 -0
  114. package/one/things/templates.md +254 -0
  115. package/one/things/todo.md +23 -5
  116. package/package.json +2 -2
  117. package/one/things/claude/hooks/agent-hook-manager.js +0 -525
  118. package/one/things/claude/hooks/agent-load-balancer.js +0 -271
  119. package/one/things/claude/hooks/agent-request-interceptor.js +0 -70
  120. package/one/things/claude/hooks/cascade-feedback.js +0 -297
  121. package/one/things/claude/hooks/cascade-integration-hooks.js +0 -648
  122. package/one/things/claude/hooks/continuous-improvement-monitor.js +0 -510
  123. package/one/things/claude/hooks/file-organization-engine.js +0 -427
  124. package/one/things/claude/hooks/file-organization-monitor.js +0 -269
  125. package/one/things/claude/hooks/hook-config-manager.js +0 -202
  126. package/one/things/claude/hooks/hook-orchestrator.js +0 -662
  127. package/one/things/claude/hooks/hook-performance-report.js +0 -120
  128. package/one/things/claude/hooks/mcp-cascade-integration.js +0 -816
  129. package/one/things/claude/hooks/memory-optimizer.js +0 -510
  130. package/one/things/claude/hooks/ontology-compliance.js +0 -394
  131. package/one/things/claude/hooks/ontology-hook-manager.js +0 -316
  132. package/one/things/claude/hooks/ontology-validation-engine.js +0 -317
  133. package/one/things/claude/hooks/performance-monitoring-hook.js +0 -422
  134. package/one/things/claude/hooks/quality-scoring-engine.js +0 -834
  135. package/one/things/claude/hooks/simple-load-balancer.js +0 -238
  136. package/one/things/claude/hooks/startup-optimizer.js +0 -625
  137. package/one/things/claude/hooks/story-scoring-system.js +0 -445
  138. package/one/things/claude/hooks/story-validation-engine.js +0 -473
  139. package/one/things/claude/hooks/structure-synchronizer.js +0 -194
  140. package/one/things/claude/hooks/sub-agent-output-validator.js +0 -647
  141. package/one/things/claude/hooks/sub-agent-validation-hook.js +0 -343
  142. package/one/things/claude/hooks/trinity-validation-system.js +0 -392
  143. package/one/things/plans/organizations-to-groups.md +0 -705
@@ -0,0 +1,266 @@
1
+ # /one Command Onboarding Enhancement
2
+
3
+ **Date:** 2025-10-20
4
+ **File Modified:** `.claude/commands/one.md`
5
+ **Lines Added:** ~350 lines (original 214 → updated 564)
6
+
7
+ ---
8
+
9
+ ## Summary of Changes
10
+
11
+ Enhanced the `/one` command to support seamless onboarding flow for users coming from `npx oneie init`.
12
+
13
+ ### Key Features Added
14
+
15
+ 1. **Onboarding Detection** - Checks for `.onboarding.json` on every `/one` invocation
16
+ 2. **State-Based Flow** - Handles 4 states: pending_analysis, building, completed, normal
17
+ 3. **Agent Coordination** - Invokes agent-onboard and agent-director via Task tool
18
+ 4. **Progress Tracking** - Shows real-time progress during builds
19
+ 5. **Resumption Support** - Can resume interrupted onboarding flows
20
+ 6. **Backward Compatibility** - Normal /one behavior if no onboarding detected
21
+
22
+ ---
23
+
24
+ ## Changes in Detail
25
+
26
+ ### 1. Updated Initialization Checks (Lines 48-99)
27
+
28
+ **Added Step 1: Onboarding Check**
29
+
30
+ ```bash
31
+ find . -maxdepth 2 -name ".onboarding.json" -type f 2>/dev/null | head -1
32
+ ```
33
+
34
+ - Searches for `.onboarding.json` in installation folders
35
+ - Reads file and checks `status` field
36
+ - Routes to appropriate flow based on status:
37
+ - `"pending_analysis"` → Start onboarding flow
38
+ - `"building"` → Show progress summary
39
+ - `"completed"` → Show completion summary + normal menu
40
+ - Other/missing → Normal /one behavior
41
+
42
+ ### 2. Added Onboarding Flow Section (Lines 217-564)
43
+
44
+ **8 Steps for Complete Onboarding:**
45
+
46
+ #### Step 1: Display Welcome with Context
47
+ - Shows organization name, website URL, and status
48
+ - Friendly welcome message with user's name
49
+
50
+ #### Step 2: Invoke agent-onboard
51
+ - Uses Task tool (not direct function calls)
52
+ - Delegates website analysis to agent-onboard
53
+ - Passes website URL and organization slug
54
+
55
+ #### Step 3: Wait for Analysis
56
+ - Shows "Analyzing..." message
57
+ - Blocks until agent-onboard completes
58
+
59
+ #### Step 4: Present Recommended Features
60
+ - Reads updated `.onboarding.json`
61
+ - Displays extracted brand identity
62
+ - Shows custom ontology dimensions
63
+ - Lists recommended features in 3 categories:
64
+ - Foundation (always recommended)
65
+ - Detected from site
66
+ - AI & Automation (optional)
67
+
68
+ #### Step 5: Accept User Feature Selection
69
+ - Parses user input (comma-separated, "all foundation", "all")
70
+ - Extracts selected feature IDs
71
+
72
+ #### Step 6: Invoke agent-director
73
+ - Uses Task tool to delegate planning
74
+ - Passes selected features and custom ontology path
75
+ - agent-director creates 100-inference plan
76
+
77
+ #### Step 7: Show Plan Summary
78
+ - Displays total inferences and estimated duration
79
+ - Lists phases with specialist assignments
80
+ - Announces build start
81
+
82
+ #### Step 8: Update Status and Let Specialists Work
83
+ - Updates `.onboarding.json` status to "building"
84
+ - Trusts agent-director to coordinate specialists:
85
+ - agent-backend (backend features)
86
+ - agent-frontend (UI/UX)
87
+ - agent-integrator (external systems)
88
+ - agent-quality (validation)
89
+ - agent-designer (wireframes)
90
+ - agent-documenter (documentation)
91
+
92
+ ### 3. Added Progress Check (Lines 417-441)
93
+
94
+ When user runs `/one` during build:
95
+ - Shows current progress (X/Y inferences, Z% complete)
96
+ - Lists phase status with icons (✅ completed, 🔨 in progress, ⏳ pending)
97
+ - Displays completion timestamps and URLs
98
+ - Reminds user building continues in background
99
+
100
+ ### 4. Added Completion Summary (Lines 443-483)
101
+
102
+ When user runs `/one` after completion:
103
+ - Congratulates user
104
+ - Lists completed features with URLs
105
+ - Shows documentation locations
106
+ - Suggests next steps (/build, /design, /deploy, /see)
107
+ - Then continues to normal /one menu
108
+
109
+ ### 5. Added Critical Rules (Lines 487-497)
110
+
111
+ **8 Critical Rules for Onboarding:**
112
+
113
+ 1. ALWAYS check for `.onboarding.json` FIRST
114
+ 2. NEVER skip agent-onboard (website analysis is critical)
115
+ 3. ALWAYS use Task tool to invoke agents
116
+ 4. WAIT for agents to complete before proceeding
117
+ 5. UPDATE `.onboarding.json` after each major step
118
+ 6. SHOW PROGRESS to user (transparency)
119
+ 7. ENABLE RESUMPTION (can restart if interrupted)
120
+ 8. BACKWARD COMPATIBLE (normal /one if no onboarding)
121
+
122
+ ### 6. Added File Update Patterns (Lines 500-563)
123
+
124
+ Documents how to update `.onboarding.json` at each stage:
125
+
126
+ - **After agent-onboard:** Add brand, ontology, recommended features
127
+ - **After user selection:** Add selected feature IDs
128
+ - **After agent-director planning:** Add plan with phases and inferences
129
+ - **After completion:** Mark plan as completed with timestamp
130
+
131
+ ---
132
+
133
+ ## Integration Points
134
+
135
+ ### Works With
136
+
137
+ 1. **CLI (`npx oneie init`)** - Creates `.onboarding.json` with user info
138
+ 2. **agent-onboard** - Analyzes website, extracts brand, generates ontology
139
+ 3. **agent-director** - Creates 100-inference plan, coordinates specialists
140
+ 4. **Specialist agents** - Implement features (backend, frontend, integrator, etc.)
141
+ 5. **Installation folders** - Custom ontology and documentation stored here
142
+
143
+ ### File Dependencies
144
+
145
+ - **Input:** `.onboarding.json` (created by CLI)
146
+ - **Reads:** Installation folder structure, custom ontology
147
+ - **Updates:** `.onboarding.json` (status transitions)
148
+ - **Creates:** Progress tracking, feature documentation
149
+
150
+ ---
151
+
152
+ ## State Transitions
153
+
154
+ ```
155
+ pending_analysis
156
+ ↓ (after agent-onboard completes)
157
+ features_presented
158
+ ↓ (after user selects features)
159
+ plan_generated
160
+ ↓ (after agent-director creates plan)
161
+ building
162
+ ↓ (after all phases complete)
163
+ completed
164
+ ```
165
+
166
+ ---
167
+
168
+ ## User Experience Flow
169
+
170
+ ```
171
+ $ npx oneie init
172
+ → Collects name, org, website, email
173
+ → Creates /[org-slug]/ folder
174
+ → Generates .onboarding.json
175
+ → Launches Claude Code
176
+
177
+ $ /one (in Claude)
178
+ → Detects .onboarding.json (status: pending_analysis)
179
+ → Displays welcome with context
180
+ → Invokes agent-onboard
181
+ → Shows brand extraction results
182
+ → Presents recommended features
183
+ → User selects features
184
+ → Invokes agent-director
185
+ → Shows plan summary
186
+ → Starts build
187
+
188
+ $ /one (check progress)
189
+ → Detects .onboarding.json (status: building)
190
+ → Shows current progress (X/Y inferences)
191
+ → Lists phase status
192
+ → Building continues
193
+
194
+ $ /one (after completion)
195
+ → Detects .onboarding.json (status: completed)
196
+ → Shows completion summary
197
+ → Lists live URLs
198
+ → Continues to normal /one menu
199
+ ```
200
+
201
+ ---
202
+
203
+ ## Backward Compatibility
204
+
205
+ **No Breaking Changes:**
206
+
207
+ - If `.onboarding.json` doesn't exist → Normal /one behavior
208
+ - All existing functionality preserved
209
+ - New onboarding is opt-in (requires CLI to create file)
210
+ - Normal menu still accessible after onboarding completes
211
+
212
+ ---
213
+
214
+ ## Testing Checklist
215
+
216
+ To test this enhancement:
217
+
218
+ - [ ] Create mock `.onboarding.json` with status "pending_analysis"
219
+ - [ ] Run `/one` and verify onboarding flow triggers
220
+ - [ ] Verify agent-onboard is invoked via Task tool
221
+ - [ ] Check `.onboarding.json` updates after analysis
222
+ - [ ] Verify feature selection works (comma-separated input)
223
+ - [ ] Verify agent-director is invoked with correct params
224
+ - [ ] Test progress check (status: "building")
225
+ - [ ] Test completion summary (status: "completed")
226
+ - [ ] Test normal /one behavior (no .onboarding.json)
227
+ - [ ] Test resumption (interrupt and restart)
228
+
229
+ ---
230
+
231
+ ## Key Benefits
232
+
233
+ 1. **Seamless Handoff** - CLI → Claude coordination is smooth
234
+ 2. **Personalized** - Website analysis creates custom ontology
235
+ 3. **Transparent** - User sees progress at every step
236
+ 4. **Resumable** - Can check status and resume anytime
237
+ 5. **Automated** - Minimal user input, maximum automation
238
+ 6. **Backward Compatible** - Doesn't break existing /one usage
239
+
240
+ ---
241
+
242
+ ## Related Files
243
+
244
+ - **CLI Source:** `cli/src/commands/init.ts` (creates .onboarding.json)
245
+ - **Agent Specs:**
246
+ - `.claude/agents/agent-onboard.md` (website analysis)
247
+ - `.claude/agents/agent-director.md` (plan generation)
248
+ - **Documentation:**
249
+ - `one/knowledge/cli-claude-handoff.md` (handoff specification)
250
+ - `one/knowledge/installation-folders.md` (folder structure)
251
+
252
+ ---
253
+
254
+ ## Next Steps
255
+
256
+ 1. **Implement CLI side** - `npx oneie init` command
257
+ 2. **Test onboarding flow** - End-to-end with real website
258
+ 3. **Enhance agent-onboard** - Website analysis logic
259
+ 4. **Add feature library** - Predefined features for recommendations
260
+ 5. **Create analytics** - Track onboarding success rates
261
+
262
+ ---
263
+
264
+ **Status:** ✅ Implementation Complete
265
+
266
+ The `/one` command now supports full onboarding flow while maintaining 100% backward compatibility!
@@ -19,7 +19,13 @@
19
19
 
20
20
  **Control Your AI. Build Anything.**
21
21
 
22
- Server: http://localhost:4321
22
+ Server Started at http://localhost:4321
23
+
24
+ [If account owner found from .oneie/installation.json, display:]
25
+ Account: [owner name]
26
+
27
+ [If organization found from .oneie/installation.json, display:]
28
+ Organization: [org name] - [org url]
23
29
 
24
30
  Type:
25
31
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
@@ -39,15 +45,58 @@ or type anything...
39
45
 
40
46
  You are ONE, an AI Agent helping users build apps, websites, and agent teams.
41
47
 
42
- **CRITICAL - Server Check:** Before displaying anything, check if the dev server is running:
43
-
44
- 1. Use Bash to check: `lsof -ti:4321 2>/dev/null || echo ""`
45
- 2. If empty output (server not running):
46
- - Output to user: "🚀 Starting dev server..."
47
- - Start server in background: `cd /Users/toc/Server/ONE/web && bun run dev`
48
- - DO NOT show bash output or errors
49
- - DO NOT show "sleep" or "wait" commands
50
- 3. Then display the logo and menu (server URL will show http://localhost:4321)
48
+ **CRITICAL - Initialization Checks:** Before displaying anything, run these checks in order:
49
+
50
+ 1. **Onboarding Check (NEW):**
51
+ - Check ALL installation folders for `.onboarding.json`
52
+ - Use Bash: `find . -maxdepth 2 -name ".onboarding.json" -type f 2>/dev/null | head -1`
53
+ - If found:
54
+ - Read the file
55
+ - Check `status` field
56
+ - If status is `"pending_analysis"`:
57
+ - **START ONBOARDING FLOW** (see "Onboarding Flow" section below)
58
+ - DO NOT continue to normal /one menu
59
+ - If status is `"building"`:
60
+ - Show progress summary (see "Progress Check" section)
61
+ - DO NOT continue to normal /one menu
62
+ - If status is `"completed"`:
63
+ - Show completion summary (see "Completion Summary" section)
64
+ - Then continue to normal /one menu
65
+ - If not found or status is anything else:
66
+ - Continue to normal /one behavior (steps 2-5 below)
67
+
68
+ 2. **Git Repository Check:**
69
+ - Use Bash: `[ -d .git ] && echo "exists" || echo ""`
70
+ - If empty output (no .git):
71
+ - Output to user: "📦 Initializing git repository..."
72
+ - Run: `git init`
73
+ - Run: `git add .`
74
+ - Run: `git commit -m "chore: initialize ONE Platform repository"`
75
+ - Output: "✓ Git repository initialized"
76
+ - DO NOT show bash output or errors
77
+
78
+ 3. **Account Owner Check:**
79
+ - Check for CLI installation metadata: `[ -f .oneie/installation.json ] && cat .oneie/installation.json || echo "{}"`
80
+ - Extract owner info from installation.json (if exists)
81
+ - Store owner name for display
82
+
83
+ 4. **Organization Check:**
84
+ - Check for organization metadata in installation.json
85
+ - Extract org name and URL (if exists)
86
+ - Store org info for display
87
+
88
+ 5. **Dev Server Check:**
89
+ - Use Bash: `lsof -ti:4321 2>/dev/null || echo ""`
90
+ - If empty output (server not running):
91
+ - Output to user: "🚀 Starting dev server..."
92
+ - Start server in background: `cd /Users/toc/Server/ONE/web && bun run dev`
93
+ - DO NOT show bash output or errors
94
+
95
+ 6. **Then display the welcome screen with:**
96
+ - Logo and menu
97
+ - Account owner (if found): "Account: [owner name]"
98
+ - Organization (if found): "Organization: [org name] - [org url]"
99
+ - Server URL: http://localhost:4321
51
100
 
52
101
  **CRITICAL:** Always display the logo and menu above (between "DISPLAY THIS TO USER" markers) FIRST before any other response.
53
102
 
@@ -162,3 +211,355 @@ Essential Commands:
162
211
  9. /solve → Launch Problem Solver (ultrathink mode)
163
212
  10. /document → Run Documenter Agent (auto-generation)
164
213
  ```
214
+
215
+ ---
216
+
217
+ ## ONBOARDING FLOW (NEW)
218
+
219
+ This section describes how to handle users coming from `npx oneie init` with `.onboarding.json`.
220
+
221
+ ### When to Trigger Onboarding
222
+
223
+ Onboarding starts ONLY when:
224
+ 1. `.onboarding.json` exists in an installation folder
225
+ 2. `status` field is `"pending_analysis"`
226
+
227
+ ### Onboarding Flow Steps
228
+
229
+ #### Step 1: Display Welcome with Context
230
+
231
+ ```
232
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
233
+ 🚀 ONE PLATFORM ONBOARDING
234
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
235
+
236
+ Welcome, [user.name]!
237
+
238
+ ✅ Found onboarding context:
239
+ • Organization: [organization.name]
240
+ • Website: [website.url]
241
+ • Status: Pending analysis
242
+
243
+ Let's analyze your website and build your platform!
244
+
245
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
246
+ 🤖 Starting agent-onboard
247
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
248
+ ```
249
+
250
+ #### Step 2: Invoke agent-onboard
251
+
252
+ **CRITICAL:** Use the Task tool to invoke agent-onboard (DO NOT use direct function calls).
253
+
254
+ ```yaml
255
+ Task to delegate: |
256
+ Analyze website [website.url] for onboarding:
257
+
258
+ 1. Extract brand identity (colors, logo, fonts, tone)
259
+ 2. Detect existing features and content types
260
+ 3. Map detected features to universal 6-dimension ontology
261
+ 4. Create installation-specific branding documentation
262
+ 5. Recommend features based on analysis
263
+
264
+ Save results to:
265
+ - /[org-slug]/knowledge/brand-guide.md
266
+ - /[org-slug]/knowledge/features.md
267
+ - /[org-slug]/knowledge/ontology-mapping.md
268
+
269
+ Update .onboarding.json with results.
270
+
271
+ Agent: agent-onboard
272
+ ```
273
+
274
+ #### Step 3: Wait for Analysis
275
+
276
+ While agent-onboard is running, show:
277
+
278
+ ```
279
+ Analyzing [website.url]...
280
+
281
+ [Wait for agent-onboard to complete]
282
+ ```
283
+
284
+ **DO NOT proceed until agent-onboard completes.**
285
+
286
+ #### Step 4: Present Recommended Features
287
+
288
+ After agent-onboard completes, read updated `.onboarding.json` and display:
289
+
290
+ ```
291
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
292
+ ✨ ANALYSIS COMPLETE
293
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
294
+
295
+ ✅ Brand extracted:
296
+ • Primary color: [brand.colors.primary]
297
+ • Secondary color: [brand.colors.secondary]
298
+ • Logo: [brand.logo]
299
+ • Voice: [brand.voice]
300
+ • Audience: [brand.audience]
301
+
302
+ ✅ Ontology mapping created:
303
+ • Groups: [mapping.groups] (which group types apply)
304
+ • People: [mapping.people] (which roles apply)
305
+ • Things: [mapping.things] (which thing types apply)
306
+ • Connections: [mapping.connections] (which relationships apply)
307
+ • Events: [mapping.events] (which events tracked)
308
+ • Knowledge: [mapping.knowledge] (which knowledge types used)
309
+
310
+ 📄 Documentation saved:
311
+ • /[org-slug]/knowledge/ontology-mapping.md
312
+ • /[org-slug]/knowledge/brand-guide.md
313
+ • /[org-slug]/knowledge/features.md
314
+
315
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
316
+ ✨ RECOMMENDED FEATURES
317
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
318
+
319
+ Based on [website.url] analysis:
320
+
321
+ FOUNDATION (Always recommended)
322
+ [x] [feature.name] (Infer [feature.inferences[0]]-[feature.inferences[1]], [feature.duration])
323
+ [... for each required feature ...]
324
+
325
+ DETECTED FROM YOUR SITE
326
+ [ ] [feature.name] (Infer [feature.inferences[0]]-[feature.inferences[1]], [feature.duration])
327
+ [... for each detected feature ...]
328
+
329
+ AI & AUTOMATION (Optional)
330
+ [ ] [feature.name] (Infer [feature.inferences[0]]-[feature.inferences[1]], [feature.duration])
331
+ [... for each AI feature ...]
332
+
333
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
334
+
335
+ Which features would you like to build?
336
+
337
+ Type feature names (comma-separated) or "all foundation" or "all":
338
+ ```
339
+
340
+ #### Step 5: Accept User Feature Selection
341
+
342
+ User responds with selections like:
343
+ - `landing page, authentication, multi-tenant`
344
+ - `all foundation`
345
+ - `all`
346
+ - Feature IDs: `landing-page, authentication, multi-tenant, ai-agents`
347
+
348
+ Parse the response and extract selected feature IDs.
349
+
350
+ #### Step 6: Invoke agent-director
351
+
352
+ **CRITICAL:** Use the Task tool to invoke agent-director.
353
+
354
+ ```yaml
355
+ Task to delegate: |
356
+ Create 100-inference plan for selected features:
357
+ [list of selected feature IDs]
358
+
359
+ Based on universal 6-dimension ontology.
360
+ Reference ontology mapping at:
361
+ /[org-slug]/knowledge/ontology-mapping.md
362
+
363
+ Generate:
364
+ 1. Feature collection (plan document)
365
+ 2. 100-inference sequence
366
+ 3. Specialist assignments
367
+ 4. Dependency mapping
368
+ 5. Timeline estimates
369
+
370
+ Update .onboarding.json with plan details.
371
+
372
+ Start execution immediately after plan created.
373
+
374
+ Agent: agent-director
375
+ ```
376
+
377
+ #### Step 7: Show Plan Summary
378
+
379
+ After agent-director completes planning, display:
380
+
381
+ ```
382
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
383
+ ✅ PLAN GENERATED
384
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
385
+
386
+ Total inferences: [plan.totalInferences]
387
+ Estimated duration: [plan.estimatedDuration]
388
+
389
+ PHASES:
390
+ [for each phase:]
391
+ [phase.name] (Infer [phase.inferences[0]]-[phase.inferences[1]])
392
+ Specialist: [phase.specialist]
393
+ Status: [phase.status]
394
+
395
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
396
+ 🚀 STARTING BUILD
397
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
398
+
399
+ Building your platform...
400
+ Progress updates will appear as features complete.
401
+
402
+ You can check progress anytime by running /one again.
403
+ ```
404
+
405
+ #### Step 8: Update Status and Let Specialists Work
406
+
407
+ 1. Update `.onboarding.json` status to `"building"`
408
+ 2. Let agent-director coordinate specialist agents
409
+ 3. DO NOT micromanage - trust the workflow system
410
+ 4. Specialist agents will:
411
+ - agent-backend: Implement backend features
412
+ - agent-frontend: Build UI/UX
413
+ - agent-integrator: Connect external systems
414
+ - agent-quality: Validate and test
415
+ - agent-designer: Create wireframes
416
+ - agent-documenter: Write documentation
417
+
418
+ ### Progress Check
419
+
420
+ If user runs `/one` again while status is `"building"`:
421
+
422
+ ```
423
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
424
+ 🔨 BUILD IN PROGRESS
425
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
426
+
427
+ Organization: [organization.name]
428
+ Current progress: [plan.currentInference]/[plan.totalInferences] ([plan.progress]%)
429
+
430
+ PHASE STATUS:
431
+ [for each phase:]
432
+ [✅/🔨/⏳] [phase.name]
433
+ Status: [phase.status]
434
+ [if completed:] Completed: [phase.completedAt formatted]
435
+ [if completed and has URL:] URL: [phase.url]
436
+ [if in_progress:] Started: [phase.startedAt formatted]
437
+
438
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
439
+
440
+ Building continues in background.
441
+ Check back later for updates, or type /see for live URLs.
442
+ ```
443
+
444
+ ### Completion Summary
445
+
446
+ If user runs `/one` again while status is `"completed"`:
447
+
448
+ ```
449
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
450
+ ✨ ONBOARDING COMPLETE!
451
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
452
+
453
+ Congratulations, [user.name]!
454
+
455
+ Your [organization.name] platform is ready:
456
+
457
+ COMPLETED FEATURES:
458
+ [for each completed phase:]
459
+ ✅ [phase.name]
460
+ [if has URL:] 🌐 [phase.url]
461
+
462
+ DOCUMENTATION:
463
+ 📖 Ontology mapping: /[org-slug]/knowledge/ontology-mapping.md
464
+ 🎨 Brand guide: /[org-slug]/knowledge/brand-guide.md
465
+ 📚 Knowledge base: /[org-slug]/knowledge/
466
+
467
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
468
+ NEXT STEPS
469
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
470
+
471
+ Your platform is live and ready to use!
472
+
473
+ Continue building:
474
+ /build → Add more features
475
+ /design → Create custom UI components
476
+ /deploy → Deploy updates
477
+
478
+ Explore:
479
+ /see → View analytics and insights
480
+
481
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
482
+ ```
483
+
484
+ Then continue to display normal `/one` menu.
485
+
486
+ ---
487
+
488
+ ## CRITICAL RULES FOR ONBOARDING
489
+
490
+ 1. **ALWAYS check for `.onboarding.json` FIRST** before normal /one behavior
491
+ 2. **NEVER skip agent-onboard** - website analysis is critical for personalization
492
+ 3. **ALWAYS use Task tool** to invoke agents (agent-onboard, agent-director)
493
+ 4. **WAIT for agents to complete** before proceeding to next step
494
+ 5. **UPDATE `.onboarding.json`** after each major step (analysis complete, features selected, plan generated, building, completed)
495
+ 6. **SHOW PROGRESS** to user - be transparent about what's happening
496
+ 7. **ENABLE RESUMPTION** - if interrupted, user can run /one again to see status
497
+ 8. **BACKWARD COMPATIBLE** - if no `.onboarding.json`, use normal /one menu
498
+
499
+ ---
500
+
501
+ ## FILE UPDATES DURING ONBOARDING
502
+
503
+ ### After agent-onboard Completes
504
+
505
+ Update `.onboarding.json` with:
506
+ ```json
507
+ {
508
+ "status": "features_presented",
509
+ "website": {
510
+ "analyzed": true,
511
+ "analyzedAt": [timestamp],
512
+ "brandExtracted": true,
513
+ "ontologyGenerated": true
514
+ },
515
+ "brand": { ... },
516
+ "ontology": { ... },
517
+ "features": {
518
+ "recommended": [ ... ]
519
+ }
520
+ }
521
+ ```
522
+
523
+ ### After User Selects Features
524
+
525
+ Update `.onboarding.json` with:
526
+ ```json
527
+ {
528
+ "status": "plan_generated",
529
+ "features": {
530
+ "selected": ["landing-page", "authentication", ...]
531
+ }
532
+ }
533
+ ```
534
+
535
+ ### After agent-director Creates Plan
536
+
537
+ Update `.onboarding.json` with:
538
+ ```json
539
+ {
540
+ "status": "building",
541
+ "plan": {
542
+ "status": "in_progress",
543
+ "totalInferences": 70,
544
+ "estimatedDuration": "~50 min",
545
+ "currentInference": 0,
546
+ "progress": 0,
547
+ "phases": [ ... ]
548
+ }
549
+ }
550
+ ```
551
+
552
+ ### After All Phases Complete
553
+
554
+ Update `.onboarding.json` with:
555
+ ```json
556
+ {
557
+ "status": "completed",
558
+ "plan": {
559
+ "status": "completed",
560
+ "completedAt": [timestamp]
561
+ }
562
+ }
563
+ ```
564
+
565
+ ---