oneie 3.5.0 → 3.6.3

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 (141) 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/deploy.md +77 -150
  6. package/.claude/commands/one.md +375 -5
  7. package/.claude/commands/release.md +64 -3
  8. package/.mcp.json +57 -0
  9. package/CLAUDE.md +55 -69
  10. package/CREATE-WEBSITE.md +442 -0
  11. package/SECURITY.md +31 -0
  12. package/TESTING-ONBOARDING.md +185 -0
  13. package/dist/commands/create-website.d.ts +19 -0
  14. package/dist/commands/create-website.d.ts.map +1 -0
  15. package/dist/commands/create-website.js +231 -0
  16. package/dist/commands/create-website.js.map +1 -0
  17. package/dist/commands/init.d.ts +5 -6
  18. package/dist/commands/init.d.ts.map +1 -1
  19. package/dist/commands/init.js +213 -103
  20. package/dist/commands/init.js.map +1 -1
  21. package/dist/index.js +7 -5
  22. package/dist/index.js.map +1 -1
  23. package/dist/utils/installation-setup.d.ts +24 -1
  24. package/dist/utils/installation-setup.d.ts.map +1 -1
  25. package/dist/utils/installation-setup.js +85 -1
  26. package/dist/utils/installation-setup.js.map +1 -1
  27. package/dist/utils/launch-claude.d.ts +6 -0
  28. package/dist/utils/launch-claude.d.ts.map +1 -0
  29. package/dist/utils/launch-claude.js +51 -0
  30. package/dist/utils/launch-claude.js.map +1 -0
  31. package/dist/utils/validation.d.ts +48 -0
  32. package/dist/utils/validation.d.ts.map +1 -0
  33. package/dist/utils/validation.js +73 -0
  34. package/dist/utils/validation.js.map +1 -0
  35. package/folders.yaml +1 -1
  36. package/one/.obsidian/core-plugins.json +33 -0
  37. package/one/.obsidian/workspace.json +20 -20
  38. package/one/connections/workflow-onboarding.md +683 -0
  39. package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +354 -0
  40. package/one/events/CRITICAL-FIXES-COMPLETE.md +504 -0
  41. package/one/events/DEPLOYMENT.md +178 -0
  42. package/one/events/ECOMMERCE-DEMO-PLAN.md +225 -0
  43. package/one/events/ECOMMERCE-LIVE-DEMO.md +363 -0
  44. package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +735 -0
  45. package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +923 -0
  46. package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +223 -0
  47. package/one/events/HANDOFF.md +313 -0
  48. package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +503 -0
  49. package/one/events/IMPLEMENTATION_SUMMARY.md +529 -0
  50. package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +666 -0
  51. package/one/events/LANDING-PAGE-IMPLEMENTATION.md +642 -0
  52. package/one/events/LANDING-PAGE-QUICKSTART.md +407 -0
  53. package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +1627 -0
  54. package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +573 -0
  55. package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +398 -0
  56. package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +525 -0
  57. package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +455 -0
  58. package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +486 -0
  59. package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +203 -0
  60. package/one/events/SECURITY-AUDIT-FIXES.md +376 -0
  61. package/one/events/SECURITY-SCAN-COMPLETE.md +281 -0
  62. package/one/events/SHOP-BUILD-STATUS.md +114 -0
  63. package/one/events/SHOP-PREMIUM-UPDATE.md +149 -0
  64. package/one/events/SITE-WIDE-GRADIENT-FIX.md +299 -0
  65. package/one/events/STORE-PRODUCTION-READY-STATUS.md +359 -0
  66. package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +429 -0
  67. package/one/events/agent-director-enhancement-summary.md +386 -0
  68. package/one/events/agent-onboard-implementation-summary.md +457 -0
  69. package/one/events/clean-agent-ontology-cleanup-report.md +353 -0
  70. package/one/events/landing-page-generator.md +458 -0
  71. package/one/events/onboarding-implementation-complete.md +505 -0
  72. package/one/events/release.md +254 -0
  73. package/one/events/separate-implementation-status.md +537 -0
  74. package/one/knowledge/100-inference-quick-reference.md +431 -0
  75. package/one/knowledge/agent-onboard-usage.md +612 -0
  76. package/one/knowledge/cli-claude-handoff.md +718 -0
  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/package.json +7 -2
  115. package/one/things/claude/hooks/agent-hook-manager.js +0 -525
  116. package/one/things/claude/hooks/agent-load-balancer.js +0 -271
  117. package/one/things/claude/hooks/agent-request-interceptor.js +0 -70
  118. package/one/things/claude/hooks/cascade-feedback.js +0 -297
  119. package/one/things/claude/hooks/cascade-integration-hooks.js +0 -648
  120. package/one/things/claude/hooks/continuous-improvement-monitor.js +0 -510
  121. package/one/things/claude/hooks/file-organization-engine.js +0 -427
  122. package/one/things/claude/hooks/file-organization-monitor.js +0 -269
  123. package/one/things/claude/hooks/hook-config-manager.js +0 -202
  124. package/one/things/claude/hooks/hook-orchestrator.js +0 -662
  125. package/one/things/claude/hooks/hook-performance-report.js +0 -120
  126. package/one/things/claude/hooks/mcp-cascade-integration.js +0 -816
  127. package/one/things/claude/hooks/memory-optimizer.js +0 -510
  128. package/one/things/claude/hooks/ontology-compliance.js +0 -394
  129. package/one/things/claude/hooks/ontology-hook-manager.js +0 -316
  130. package/one/things/claude/hooks/ontology-validation-engine.js +0 -317
  131. package/one/things/claude/hooks/performance-monitoring-hook.js +0 -422
  132. package/one/things/claude/hooks/quality-scoring-engine.js +0 -834
  133. package/one/things/claude/hooks/simple-load-balancer.js +0 -238
  134. package/one/things/claude/hooks/startup-optimizer.js +0 -625
  135. package/one/things/claude/hooks/story-scoring-system.js +0 -445
  136. package/one/things/claude/hooks/story-validation-engine.js +0 -473
  137. package/one/things/claude/hooks/structure-synchronizer.js +0 -194
  138. package/one/things/claude/hooks/sub-agent-output-validator.js +0 -647
  139. package/one/things/claude/hooks/sub-agent-validation-hook.js +0 -343
  140. package/one/things/claude/hooks/trinity-validation-system.js +0 -392
  141. package/one/things/plans/organizations-to-groups.md +0 -705
@@ -47,7 +47,25 @@ You are ONE, an AI Agent helping users build apps, websites, and agent teams.
47
47
 
48
48
  **CRITICAL - Initialization Checks:** Before displaying anything, run these checks in order:
49
49
 
50
- 1. **Git Repository Check:**
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:**
51
69
  - Use Bash: `[ -d .git ] && echo "exists" || echo ""`
52
70
  - If empty output (no .git):
53
71
  - Output to user: "📦 Initializing git repository..."
@@ -57,24 +75,24 @@ You are ONE, an AI Agent helping users build apps, websites, and agent teams.
57
75
  - Output: "✓ Git repository initialized"
58
76
  - DO NOT show bash output or errors
59
77
 
60
- 2. **Account Owner Check:**
78
+ 3. **Account Owner Check:**
61
79
  - Check for CLI installation metadata: `[ -f .oneie/installation.json ] && cat .oneie/installation.json || echo "{}"`
62
80
  - Extract owner info from installation.json (if exists)
63
81
  - Store owner name for display
64
82
 
65
- 3. **Organization Check:**
83
+ 4. **Organization Check:**
66
84
  - Check for organization metadata in installation.json
67
85
  - Extract org name and URL (if exists)
68
86
  - Store org info for display
69
87
 
70
- 4. **Dev Server Check:**
88
+ 5. **Dev Server Check:**
71
89
  - Use Bash: `lsof -ti:4321 2>/dev/null || echo ""`
72
90
  - If empty output (server not running):
73
91
  - Output to user: "🚀 Starting dev server..."
74
92
  - Start server in background: `cd /Users/toc/Server/ONE/web && bun run dev`
75
93
  - DO NOT show bash output or errors
76
94
 
77
- 5. **Then display the welcome screen with:**
95
+ 6. **Then display the welcome screen with:**
78
96
  - Logo and menu
79
97
  - Account owner (if found): "Account: [owner name]"
80
98
  - Organization (if found): "Organization: [org name] - [org url]"
@@ -193,3 +211,355 @@ Essential Commands:
193
211
  9. /solve → Launch Problem Solver (ultrathink mode)
194
212
  10. /document → Run Documenter Agent (auto-generation)
195
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
+ ---
@@ -227,6 +227,58 @@ Before running `/release`, ensure:
227
227
 
228
228
  **CRITICAL:** The `CLOUDFLARE_GLOBAL_API_KEY` in `.env` provides **FULL ACCESS** to the Cloudflare API. This is required for fully automated deployments via `/release` command.
229
229
 
230
+ ## Frontend Onboarding Environment Variables
231
+
232
+ **New in v3.6.0:** The frontend now supports organization-specific onboarding via environment variables in `web/.env.local`:
233
+
234
+ ```bash
235
+ # Organization Configuration (Frontend Onboarding)
236
+ ORG_NAME=your-org-name # Reserved: "one" for ONE Platform
237
+ ORG_WEBSITE=https://example.com # Reserved: "https://one.ie" for ONE Platform
238
+ ORG_FOLDER=your-org-folder # Reserved: "onegroup", "one" for ONE Platform
239
+ ONE_BACKEND=off # "off" = frontend-only, "on" = full platform
240
+ ```
241
+
242
+ **How it works:**
243
+ - `ORG_NAME=one` → Full ONE Platform homepage with complete navigation
244
+ - `ORG_NAME=acme` → Customer org homepage with GetStartedPrompt interface
245
+ - `ONE_BACKEND=off` → Frontend-only mode (no Convex, no auth)
246
+ - `ONE_BACKEND=on` → Full platform with backend features
247
+
248
+ **Reserved values** (protected in CLI via validation):
249
+ - Name: `one`
250
+ - Folders: `onegroup`, `one`
251
+ - Website: `https://one.ie`, `one.ie`
252
+
253
+ **Testing:**
254
+ See `TESTING-ONBOARDING.md` for complete test guide.
255
+
256
+ ## MCP Server Configuration
257
+
258
+ **Important:** The `.mcp.json` file configures MCP (Model Context Protocol) servers and is automatically synced to all target repositories:
259
+
260
+ ```json
261
+ {
262
+ "mcpServers": {
263
+ "shadcn": {
264
+ "command": "npx",
265
+ "args": ["shadcn@latest", "mcp"]
266
+ },
267
+ "stripe": {
268
+ "url": "https://mcp.stripe.com"
269
+ }
270
+ }
271
+ }
272
+ ```
273
+
274
+ **What it provides:**
275
+ - **shadcn MCP:** Access to shadcn/ui component library via MCP
276
+ - **Stripe MCP:** Stripe API integration via Model Context Protocol
277
+
278
+ **Synced to:**
279
+ - `cli/.mcp.json` - For CLI MCP server access
280
+ - `apps/one/one/.mcp.json` - For assembly repo MCP access
281
+
230
282
  ## Post-Release Tasks
231
283
 
232
284
  After `/release` succeeds, remind user to:
@@ -238,6 +290,11 @@ After `/release` succeeds, remind user to:
238
290
 
239
291
  ## Installation Folder Sync (Optional)
240
292
 
293
+ **Note:** `INSTALLATION_NAME` is different from `ORG_NAME`:
294
+ - `INSTALLATION_NAME` - Backend/filesystem identifier for org-specific documentation
295
+ - `ORG_NAME` - Frontend environment variable controlling UI/branding
296
+ - Both can have the same value (e.g., "acme") but serve different purposes
297
+
241
298
  If installation folders need to be synced across repositories:
242
299
 
243
300
  ```bash
@@ -269,18 +326,22 @@ cat >> CHANGELOG.md <<EOF
269
326
  ## [${NEW_VERSION}] - $(date +%Y-%m-%d)
270
327
 
271
328
  ### Added
329
+ - Frontend onboarding system with ORG_NAME/ORG_WEBSITE/ONE_BACKEND
330
+ - Reserved name validation in CLI (prevents use of "one", "one.ie")
331
+ - GetStartedPrompt component for customer organizations
332
+ - MinimalSidebar layout with Blog + License only
272
333
  - Installation folder multi-tenancy support
273
334
  - Hierarchical file resolution with group support
274
335
  - CLI: \`npx oneie init\` to create installation folders
275
336
  - Frontend: Auto-resolution of installation-specific files
276
- - Deployment: Cloudflare Pages integration for installation folders
277
337
 
278
338
  ### Changed
279
- - Terminology: "group folder" → "installation folder"
280
- - Environment: \`GROUP_NAME\` → \`INSTALLATION_NAME\`
339
+ - Frontend conditionally renders based on ORG_NAME environment variable
340
+ - Backend can be disabled with ONE_BACKEND=off for frontend-only development
281
341
  - Documentation updated across CLAUDE.md, AGENTS.md, README.md
282
342
 
283
343
  ### Security
344
+ - Reserved name protection prevents brand confusion
284
345
  - Path traversal prevention in file resolution
285
346
  - Symlink validation
286
347
  - Audit logging for file access
package/.mcp.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "mcpServers": {
3
+ "shadcn": {
4
+ "command": "npx",
5
+ "args": [
6
+ "shadcn@latest",
7
+ "mcp"
8
+ ]
9
+ },
10
+ "cloudflare-builds": {
11
+ "command": "npx",
12
+ "args": [
13
+ "-y",
14
+ "mcp-remote",
15
+ "https://builds.mcp.cloudflare.com/sse"
16
+ ],
17
+ "env": {
18
+ "CLOUDFLARE_API_KEY": "${CLOUDFLARE_GLOBAL_API_KEY}",
19
+ "CLOUDFLARE_API_TOKEN": "${CLOUDFLARE_GLOBAL_API_KEY}"
20
+ }
21
+ },
22
+ "chrome-devtools": {
23
+ "command": "npx",
24
+ "args": [
25
+ "-y",
26
+ "chrome-devtools-mcp@latest"
27
+ ]
28
+ },
29
+ "claude": {
30
+ "command": "npx",
31
+ "args": [
32
+ "-y",
33
+ "@anthropic-ai/mcp-server-claude"
34
+ ],
35
+ "env": {
36
+ "ANTHROPIC_API_KEY": "${ANTHROPIC_API_KEY}"
37
+ }
38
+ },
39
+ "framelink-figma": {
40
+ "command": "npx",
41
+ "args": [
42
+ "-y",
43
+ "figma-developer-mcp",
44
+ "--figma-api-key=${FIGMA_ACCESS_TOKEN}",
45
+ "--stdio"
46
+ ]
47
+ },
48
+ "astro-docs": {
49
+ "transport": "http",
50
+ "url": "https://mcp.docs.astro.build/mcp"
51
+ },
52
+ "stripe": {
53
+ "transport": "http",
54
+ "url": "https://mcp.stripe.com/"
55
+ }
56
+ }
57
+ }