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.
- package/.claude/agents/agent-director.md +902 -22
- package/.claude/agents/agent-onboard-example-output.md +600 -0
- package/.claude/agents/agent-onboard.md +576 -0
- package/.claude/commands/ONBOARDING_ENHANCEMENT_SUMMARY.md +266 -0
- package/.claude/commands/one.md +411 -10
- package/.claude/commands/release.md +64 -3
- package/CLAUDE.md +55 -69
- package/dist/commands/init.d.ts +5 -6
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +101 -101
- package/dist/commands/init.js.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/utils/installation-setup.d.ts +24 -1
- package/dist/utils/installation-setup.d.ts.map +1 -1
- package/dist/utils/installation-setup.js +85 -1
- package/dist/utils/installation-setup.js.map +1 -1
- package/dist/utils/launch-claude.d.ts +6 -0
- package/dist/utils/launch-claude.d.ts.map +1 -0
- package/dist/utils/launch-claude.js +51 -0
- package/dist/utils/launch-claude.js.map +1 -0
- package/dist/utils/validation.d.ts +48 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +73 -0
- package/dist/utils/validation.js.map +1 -0
- package/folders.yaml +1 -1
- package/one/.obsidian/app.json +8 -0
- package/one/.obsidian/appearance.json +1 -0
- package/one/.obsidian/community-plugins.json +3 -0
- package/one/.obsidian/core-plugins.json +33 -0
- package/one/.obsidian/plugins/easy-bake/main.js +361 -0
- package/one/.obsidian/plugins/easy-bake/manifest.json +11 -0
- package/one/.obsidian/plugins/easy-bake/styles.css +10 -0
- package/one/.obsidian/workspace.json +240 -0
- package/one/connections/workflow-onboarding.md +683 -0
- package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +354 -0
- package/one/events/CRITICAL-FIXES-COMPLETE.md +504 -0
- package/one/events/DEPLOYMENT.md +178 -0
- package/one/events/ECOMMERCE-DEMO-PLAN.md +225 -0
- package/one/events/ECOMMERCE-LIVE-DEMO.md +363 -0
- package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +735 -0
- package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +923 -0
- package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +223 -0
- package/one/events/HANDOFF.md +313 -0
- package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +503 -0
- package/one/events/IMPLEMENTATION_SUMMARY.md +529 -0
- package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +666 -0
- package/one/events/LANDING-PAGE-IMPLEMENTATION.md +642 -0
- package/one/events/LANDING-PAGE-QUICKSTART.md +407 -0
- package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +1627 -0
- package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +573 -0
- package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +398 -0
- package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +525 -0
- package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +455 -0
- package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +486 -0
- package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +203 -0
- package/one/events/SECURITY-AUDIT-FIXES.md +376 -0
- package/one/events/SECURITY-SCAN-COMPLETE.md +281 -0
- package/one/events/SHOP-BUILD-STATUS.md +114 -0
- package/one/events/SHOP-PREMIUM-UPDATE.md +149 -0
- package/one/events/SITE-WIDE-GRADIENT-FIX.md +299 -0
- package/one/events/STORE-PRODUCTION-READY-STATUS.md +359 -0
- package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +429 -0
- package/one/events/agent-director-enhancement-summary.md +386 -0
- package/one/events/agent-onboard-implementation-summary.md +457 -0
- package/one/events/clean-agent-ontology-cleanup-report.md +353 -0
- package/one/events/landing-page-generator.md +458 -0
- package/one/events/onboarding-implementation-complete.md +505 -0
- package/one/events/release.md +254 -0
- package/one/events/separate-implementation-status.md +537 -0
- package/one/groups/nine-padle-contents.baked.md +1252 -0
- package/one/groups/nine-padle-contents.md +6 -0
- package/one/knowledge/100-inference-quick-reference.md +431 -0
- package/one/knowledge/agent-onboard-usage.md +612 -0
- package/one/knowledge/cli-claude-handoff.md +718 -0
- package/one/knowledge/installation-folders.md +45 -1
- package/one/knowledge/ontology-blog.yaml +31 -0
- package/one/knowledge/ontology-cheatsheet.md +591 -0
- package/one/knowledge/ontology-community.yaml +42 -0
- package/one/knowledge/ontology-core-universal.md +722 -0
- package/one/knowledge/ontology-core.yaml +50 -0
- package/one/knowledge/ontology-courses.yaml +53 -0
- package/one/knowledge/ontology-creator.md +376 -0
- package/one/knowledge/ontology-developer-guide.md +789 -0
- package/one/knowledge/ontology-education.md +920 -0
- package/one/knowledge/ontology-index.md +354 -0
- package/one/knowledge/ontology-migration-guide.md +811 -0
- package/one/knowledge/ontology-minimal.yaml +1 -1
- package/one/knowledge/ontology-portfolio.yaml +31 -0
- package/one/knowledge/ontology-quickstart.md +576 -0
- package/one/knowledge/ontology-shop.yaml +121 -0
- package/one/knowledge/ontology-tokens.yaml +32 -0
- package/one/knowledge/ontology-tutorial.md +434 -0
- package/one/knowledge/ontology-video-script.md +890 -0
- package/one/things/docs/ecommerce/ARCHITECTURE-DIAGRAM.md +467 -0
- package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-IMPLEMENTATION.md +408 -0
- package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-SUMMARY.md +369 -0
- package/one/things/docs/ecommerce/CONVERSION-UX-IMPLEMENTATION-SUMMARY.md +396 -0
- package/one/things/docs/ecommerce/FEATURE-SUMMARY.md +468 -0
- package/one/things/docs/ecommerce/IMPLEMENTATION-NOTES.md +582 -0
- package/one/things/docs/ecommerce/INTEGRATION-EXAMPLE.md +449 -0
- package/one/things/docs/ecommerce/QUICK-START.md +368 -0
- package/one/things/docs/ecommerce/URGENCY-IMPLEMENTATION-SUMMARY.md +498 -0
- package/one/things/docs/ecommerce/URGENCY-QUICK-REFERENCE.md +237 -0
- package/one/things/docs/ecommerce/USAGE-EXAMPLE.astro +171 -0
- package/one/things/docs/ecommerce/demo.astro +309 -0
- package/one/things/plans/agent-director-100-inference-plans.md +410 -0
- package/one/things/plans/dual-website-strategy.md +612 -0
- package/one/things/plans/feature-based-sites.md +821 -0
- package/one/things/plans/multi-ontology-architecture.md +836 -0
- package/one/things/plans/onboarding.md +32 -0
- package/one/things/plans/separate.md +15 -17
- package/one/things/plans/start-new.md +738 -0
- package/one/things/templates.md +254 -0
- package/one/things/todo.md +23 -5
- package/package.json +2 -2
- package/one/things/claude/hooks/agent-hook-manager.js +0 -525
- package/one/things/claude/hooks/agent-load-balancer.js +0 -271
- package/one/things/claude/hooks/agent-request-interceptor.js +0 -70
- package/one/things/claude/hooks/cascade-feedback.js +0 -297
- package/one/things/claude/hooks/cascade-integration-hooks.js +0 -648
- package/one/things/claude/hooks/continuous-improvement-monitor.js +0 -510
- package/one/things/claude/hooks/file-organization-engine.js +0 -427
- package/one/things/claude/hooks/file-organization-monitor.js +0 -269
- package/one/things/claude/hooks/hook-config-manager.js +0 -202
- package/one/things/claude/hooks/hook-orchestrator.js +0 -662
- package/one/things/claude/hooks/hook-performance-report.js +0 -120
- package/one/things/claude/hooks/mcp-cascade-integration.js +0 -816
- package/one/things/claude/hooks/memory-optimizer.js +0 -510
- package/one/things/claude/hooks/ontology-compliance.js +0 -394
- package/one/things/claude/hooks/ontology-hook-manager.js +0 -316
- package/one/things/claude/hooks/ontology-validation-engine.js +0 -317
- package/one/things/claude/hooks/performance-monitoring-hook.js +0 -422
- package/one/things/claude/hooks/quality-scoring-engine.js +0 -834
- package/one/things/claude/hooks/simple-load-balancer.js +0 -238
- package/one/things/claude/hooks/startup-optimizer.js +0 -625
- package/one/things/claude/hooks/story-scoring-system.js +0 -445
- package/one/things/claude/hooks/story-validation-engine.js +0 -473
- package/one/things/claude/hooks/structure-synchronizer.js +0 -194
- package/one/things/claude/hooks/sub-agent-output-validator.js +0 -647
- package/one/things/claude/hooks/sub-agent-validation-hook.js +0 -343
- package/one/things/claude/hooks/trinity-validation-system.js +0 -392
- package/one/things/plans/organizations-to-groups.md +0 -705
|
@@ -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
|
-
-
|
|
280
|
-
-
|
|
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/CLAUDE.md
CHANGED
|
@@ -203,27 +203,38 @@ knowledge ā groupId: Id<"groups">
|
|
|
203
203
|
|
|
204
204
|
```
|
|
205
205
|
/
|
|
206
|
-
āāā one/ # Global templates (
|
|
207
|
-
āāā <installation-name>/ # Customer-specific overrides
|
|
208
|
-
ā āāā groups/ # Hierarchical group docs
|
|
209
|
-
ā āāā people/
|
|
210
|
-
ā āāā things/
|
|
211
|
-
ā āāā connections/
|
|
212
|
-
ā āāā events/
|
|
206
|
+
āāā one/ # Global templates (everyone uses these)
|
|
213
207
|
ā āāā knowledge/
|
|
208
|
+
ā āāā ontology.md # Universal 6-dimension ontology
|
|
209
|
+
āāā <installation-name>/ # Customer-specific overrides
|
|
210
|
+
ā āāā knowledge/
|
|
211
|
+
ā ā āāā brand-guide.md # Custom branding only
|
|
212
|
+
ā ā āāā features.md # Organization features
|
|
213
|
+
ā ā āāā rules.md # Org-specific rules
|
|
214
|
+
ā āāā groups/ # Hierarchical group docs
|
|
214
215
|
āāā web/
|
|
215
216
|
āāā backend/
|
|
216
217
|
āāā .claude/
|
|
217
218
|
```
|
|
218
219
|
|
|
219
|
-
###
|
|
220
|
+
### What Goes Where
|
|
221
|
+
|
|
222
|
+
**Global (everyone uses):**
|
|
223
|
+
- `/one/knowledge/ontology.md` - Universal 6-dimension ontology
|
|
224
|
+
- `/one/knowledge/architecture.md` - Platform architecture
|
|
225
|
+
- All `/one/*` documentation
|
|
226
|
+
|
|
227
|
+
**Installation-specific (per organization):**
|
|
228
|
+
- Brand identity (colors, logos, fonts, tone)
|
|
229
|
+
- Organization features and capabilities
|
|
230
|
+
- Group-specific documentation
|
|
231
|
+
- Custom business rules
|
|
232
|
+
|
|
233
|
+
### Key Principle
|
|
220
234
|
|
|
221
|
-
|
|
235
|
+
**Data isolation happens via `groupId` in the database, NOT via schema customization.**
|
|
222
236
|
|
|
223
|
-
|
|
224
|
-
2. Parent group paths (walk up hierarchy)
|
|
225
|
-
3. `/<installation-name>/<file>` (installation root)
|
|
226
|
-
4. `/one/<file>` (global fallback)
|
|
237
|
+
The 6-dimension ontology is universal and flexible enough for all use cases.
|
|
227
238
|
|
|
228
239
|
### Initialize Installation
|
|
229
240
|
|
|
@@ -235,23 +246,29 @@ npx oneie init
|
|
|
235
246
|
|
|
236
247
|
### Usage
|
|
237
248
|
|
|
238
|
-
**Add installation-specific
|
|
249
|
+
**Add installation-specific branding:**
|
|
239
250
|
```bash
|
|
240
|
-
mkdir -p /acme/
|
|
241
|
-
echo "#
|
|
251
|
+
mkdir -p /acme/knowledge
|
|
252
|
+
echo "# Acme Brand Guide" > /acme/knowledge/brand-guide.md
|
|
242
253
|
```
|
|
243
254
|
|
|
244
|
-
**
|
|
255
|
+
**Document organization features:**
|
|
245
256
|
```bash
|
|
246
|
-
echo "#
|
|
257
|
+
echo "# Acme Features" > /acme/knowledge/features.md
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
**Add group-specific docs:**
|
|
261
|
+
```bash
|
|
262
|
+
mkdir -p /acme/groups/engineering
|
|
263
|
+
echo "# Engineering Practices" > /acme/groups/engineering/practices.md
|
|
247
264
|
```
|
|
248
265
|
|
|
249
266
|
### Important Distinctions
|
|
250
267
|
|
|
251
|
-
- **Installation folder** = Filesystem customization
|
|
268
|
+
- **Installation folder** = Filesystem customization for branding and features
|
|
252
269
|
- **Database groups** = Runtime data isolation per group (via `groupId`)
|
|
253
270
|
- One installation can serve many database groups
|
|
254
|
-
-
|
|
271
|
+
- **ONE ontology** = Universal schema shared by all installations
|
|
255
272
|
|
|
256
273
|
### Security
|
|
257
274
|
|
|
@@ -406,54 +423,28 @@ ONE/
|
|
|
406
423
|
āāā stack/ # Stack Auth example
|
|
407
424
|
```
|
|
408
425
|
|
|
409
|
-
## Development Workflow (
|
|
426
|
+
## Development Workflow (6-Phase Process)
|
|
410
427
|
|
|
411
428
|
Before implementing ANY feature, follow this workflow defined in `one/connections/workflow.md`:
|
|
412
429
|
|
|
413
|
-
### Phase 0: CHECK INSTALLATION FOLDER (NEW)
|
|
414
|
-
|
|
415
|
-
**FIRST STEP:** Check if there are installation-specific overrides before reading global templates.
|
|
416
|
-
|
|
417
|
-
```bash
|
|
418
|
-
# Check if installation folder exists
|
|
419
|
-
if [ -d "/${INSTALLATION_NAME}" ]; then
|
|
420
|
-
echo "ā
Installation folder detected: /${INSTALLATION_NAME}"
|
|
421
|
-
echo "Priority: Installation-specific docs override global /one/ templates"
|
|
422
|
-
fi
|
|
423
|
-
```
|
|
424
|
-
|
|
425
|
-
**File Resolution Priority:**
|
|
426
|
-
1. Check `/<installation-name>/groups/<group-path>/<file>` (group-specific)
|
|
427
|
-
2. Check `/<installation-name>/<file>` (installation-wide)
|
|
428
|
-
3. Fallback to `/one/<file>` (global template)
|
|
429
|
-
|
|
430
|
-
**Key Questions:**
|
|
431
|
-
- Is there a custom `things/vision.md` in the installation folder?
|
|
432
|
-
- Are there group-specific `groups/<group-name>/` docs?
|
|
433
|
-
- Does this feature need installation-specific documentation?
|
|
434
|
-
|
|
435
430
|
### Phase 1: UNDERSTAND
|
|
436
431
|
|
|
437
|
-
1.
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
3. Read `web/AGENTS.md` (Convex patterns and quick reference)
|
|
442
|
-
4. Read `one/knowledge/rules.md` (golden rules for AI agents)
|
|
432
|
+
1. Read `/one/knowledge/ontology.md` (universal 6-dimension ontology)
|
|
433
|
+
2. Read `web/AGENTS.md` (Convex patterns and quick reference)
|
|
434
|
+
3. Read `/one/knowledge/rules.md` (golden rules for AI agents)
|
|
435
|
+
4. Check installation folder for branding: `/<installation>/knowledge/brand-guide.md` (if exists)
|
|
443
436
|
5. Identify feature category (entity, relationship, action, query)
|
|
444
437
|
6. Find similar patterns in existing code
|
|
445
|
-
7. **Check for group-specific docs** in `/<installation-name>/groups/<group-path>/`
|
|
446
438
|
|
|
447
439
|
### Phase 2: MAP TO ONTOLOGY
|
|
448
440
|
|
|
449
441
|
1. Identify **groups** (which group owns this? any parent/child relationships?)
|
|
450
|
-
- **NEW:** Check if group has custom docs in `/<installation-name>/groups/<group-slug>/`
|
|
451
442
|
2. Identify **people** (who can access/modify this?)
|
|
452
443
|
3. Identify **things** (what entities are involved?)
|
|
453
444
|
4. Identify **connections** (how do they relate?)
|
|
454
445
|
5. Identify **events** (what actions need logging?)
|
|
455
446
|
6. Identify **knowledge** (what needs to be learned/searched?)
|
|
456
|
-
7.
|
|
447
|
+
7. Check if group has specific docs in `/<installation-name>/groups/<group-slug>/`
|
|
457
448
|
|
|
458
449
|
### Phase 3: DESIGN SERVICES
|
|
459
450
|
|
|
@@ -482,15 +473,10 @@ fi
|
|
|
482
473
|
1. Write unit tests for services
|
|
483
474
|
2. Write integration tests for full flows
|
|
484
475
|
3. Update documentation:
|
|
485
|
-
- **
|
|
486
|
-
- **
|
|
487
|
-
- **
|
|
476
|
+
- **Platform-wide features:** Add to `/one/<dimension>/`
|
|
477
|
+
- **Organization features:** Add to `/<installation-name>/knowledge/features.md`
|
|
478
|
+
- **Group-specific practices:** Add to `/<installation-name>/groups/<group-slug>/`
|
|
488
479
|
4. Run type checking (`bunx astro check`)
|
|
489
|
-
5. **NEW:** Test file resolution with installation folder:
|
|
490
|
-
```bash
|
|
491
|
-
# Test that installation-specific docs override global docs
|
|
492
|
-
cat /<installation-name>/things/vision.md # Should show custom version
|
|
493
|
-
```
|
|
494
480
|
|
|
495
481
|
## Key Patterns and Best Practices
|
|
496
482
|
|
|
@@ -785,16 +771,16 @@ Verify `react-dom/server.edge` alias is set in `astro.config.mjs` under `vite.re
|
|
|
785
771
|
|
|
786
772
|
**For ANY feature implementation, read in this order:**
|
|
787
773
|
|
|
788
|
-
1.
|
|
789
|
-
|
|
790
|
-
|
|
774
|
+
1. **`/one/knowledge/ontology.md`** - Universal 6-dimension ontology specification (Version 1.0.0)
|
|
775
|
+
2. **`web/AGENTS.md`** - Quick reference for Convex patterns
|
|
776
|
+
3. **`/one/knowledge/rules.md`** - Golden rules for AI development
|
|
777
|
+
4. **`/one/connections/workflow.md`** - 6-phase development workflow
|
|
778
|
+
5. **`/one/connections/patterns.md`** - Proven code patterns to replicate
|
|
779
|
+
6. **Check installation folder** (if `INSTALLATION_NAME` is set):
|
|
780
|
+
- `/<installation-name>/knowledge/brand-guide.md` (custom branding)
|
|
781
|
+
- `/<installation-name>/knowledge/features.md` (organization features)
|
|
782
|
+
- `/<installation-name>/knowledge/rules.md` (org-specific rules)
|
|
791
783
|
- `/<installation-name>/groups/<group-slug>/` (group-specific docs)
|
|
792
|
-
2. **`one/knowledge/ontology.md`** - Complete 6-dimension ontology specification (Version 1.0.0)
|
|
793
|
-
3. **`web/AGENTS.md`** - Quick reference for Convex patterns
|
|
794
|
-
4. **`one/knowledge/rules.md`** - Golden rules for AI development
|
|
795
|
-
5. **`one/connections/workflow.md`** - 7-phase development workflow (includes installation folders)
|
|
796
|
-
6. **`one/connections/patterns.md`** - Proven code patterns to replicate
|
|
797
|
-
7. **`one/knowledge/installation-folders.md`** - Installation folder architecture and usage
|
|
798
784
|
|
|
799
785
|
**For specific feature types:**
|
|
800
786
|
|
package/dist/commands/init.d.ts
CHANGED
|
@@ -2,17 +2,16 @@
|
|
|
2
2
|
* Init command options
|
|
3
3
|
*/
|
|
4
4
|
export interface InitOptions {
|
|
5
|
+
name?: string;
|
|
6
|
+
email?: string;
|
|
5
7
|
organizationName?: string;
|
|
6
8
|
installationName?: string;
|
|
7
|
-
|
|
9
|
+
websiteUrl?: string;
|
|
8
10
|
basePath?: string;
|
|
11
|
+
skipClaudeLaunch?: boolean;
|
|
9
12
|
}
|
|
10
13
|
/**
|
|
11
|
-
* Runs the init command interactively
|
|
14
|
+
* Runs the init command interactively (new onboarding flow)
|
|
12
15
|
*/
|
|
13
16
|
export declare function runInit(options?: InitOptions): Promise<void>;
|
|
14
|
-
/**
|
|
15
|
-
* Non-interactive init (for programmatic use)
|
|
16
|
-
*/
|
|
17
|
-
export declare function initInstallation(organizationName: string, installationName: string, options?: Partial<InitOptions>): Promise<string>;
|
|
18
17
|
//# sourceMappingURL=init.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAyBA;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAsB,OAAO,CAAC,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6KtE"}
|
package/dist/commands/init.js
CHANGED
|
@@ -1,20 +1,49 @@
|
|
|
1
1
|
import prompts from "prompts";
|
|
2
2
|
import chalk from "chalk";
|
|
3
3
|
import ora from "ora";
|
|
4
|
-
import {
|
|
4
|
+
import { createInstallationFolder, mirrorOntologyStructure, createOnboardingFile, updateOrgEnvFile, updateGitignore, rollbackInstallation, } from "../utils/installation-setup.js";
|
|
5
|
+
import { isValidEmail, isValidUrl, slugify, isReservedName, isReservedWebsite, } from "../utils/validation.js";
|
|
6
|
+
import { launchClaude } from "../utils/launch-claude.js";
|
|
7
|
+
import { displayBanner } from "../banner.js";
|
|
5
8
|
/**
|
|
6
|
-
* Runs the init command interactively
|
|
9
|
+
* Runs the init command interactively (new onboarding flow)
|
|
7
10
|
*/
|
|
8
11
|
export async function runInit(options = {}) {
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
// Display banner
|
|
13
|
+
displayBanner();
|
|
14
|
+
console.log(chalk.cyan("\nāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā"));
|
|
15
|
+
console.log(chalk.cyan("Welcome! Let's build your platform."));
|
|
16
|
+
console.log(chalk.cyan("āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā\n"));
|
|
17
|
+
// Step 1: Collect user information
|
|
18
|
+
let userName = options.name;
|
|
19
|
+
if (!userName) {
|
|
20
|
+
const { name } = await prompts({
|
|
21
|
+
type: "text",
|
|
22
|
+
name: "name",
|
|
23
|
+
message: "What's your name?",
|
|
24
|
+
validate: (value) => value.length > 0 ? true : "Name cannot be empty",
|
|
25
|
+
});
|
|
26
|
+
if (!name) {
|
|
27
|
+
console.log(chalk.yellow("\nCancelled."));
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
userName = name;
|
|
31
|
+
}
|
|
32
|
+
// Step 2: Collect organization name
|
|
11
33
|
let organizationName = options.organizationName;
|
|
12
34
|
if (!organizationName) {
|
|
13
35
|
const { name } = await prompts({
|
|
14
36
|
type: "text",
|
|
15
37
|
name: "name",
|
|
16
|
-
message: "
|
|
17
|
-
validate: (value) =>
|
|
38
|
+
message: "Organization name?",
|
|
39
|
+
validate: (value) => {
|
|
40
|
+
if (value.length === 0)
|
|
41
|
+
return "Organization name cannot be empty";
|
|
42
|
+
if (isReservedName(value)) {
|
|
43
|
+
return 'Organization name "one" is reserved for ONE Platform';
|
|
44
|
+
}
|
|
45
|
+
return true;
|
|
46
|
+
},
|
|
18
47
|
});
|
|
19
48
|
if (!name) {
|
|
20
49
|
console.log(chalk.yellow("\nCancelled."));
|
|
@@ -22,46 +51,51 @@ export async function runInit(options = {}) {
|
|
|
22
51
|
}
|
|
23
52
|
organizationName = name;
|
|
24
53
|
}
|
|
25
|
-
// Step
|
|
26
|
-
let
|
|
27
|
-
if (
|
|
28
|
-
const
|
|
29
|
-
.toLowerCase()
|
|
30
|
-
.replace(/[^a-z0-9]+/g, "-")
|
|
31
|
-
.replace(/^-|-$/g, "");
|
|
32
|
-
const { identifier } = await prompts({
|
|
54
|
+
// Step 3: Collect website URL (optional)
|
|
55
|
+
let websiteUrl = options.websiteUrl;
|
|
56
|
+
if (websiteUrl === undefined) {
|
|
57
|
+
const { url } = await prompts({
|
|
33
58
|
type: "text",
|
|
34
|
-
name: "
|
|
35
|
-
message: "
|
|
36
|
-
initial: suggestedSlug,
|
|
59
|
+
name: "url",
|
|
60
|
+
message: "What's your current website?",
|
|
37
61
|
validate: (value) => {
|
|
38
|
-
if (!value)
|
|
39
|
-
return "
|
|
62
|
+
if (!value)
|
|
63
|
+
return "Website URL is required";
|
|
64
|
+
if (!isValidUrl(value)) {
|
|
65
|
+
return "Please enter a valid URL (e.g., https://example.com)";
|
|
40
66
|
}
|
|
41
|
-
if (
|
|
42
|
-
return "
|
|
67
|
+
if (isReservedWebsite(value)) {
|
|
68
|
+
return "Website one.ie is reserved for ONE Platform";
|
|
43
69
|
}
|
|
44
70
|
return true;
|
|
45
71
|
},
|
|
46
72
|
});
|
|
47
|
-
if (!
|
|
73
|
+
if (!url) {
|
|
48
74
|
console.log(chalk.yellow("\nCancelled."));
|
|
49
75
|
return;
|
|
50
76
|
}
|
|
51
|
-
|
|
77
|
+
websiteUrl = url;
|
|
52
78
|
}
|
|
53
|
-
// Step
|
|
54
|
-
let
|
|
55
|
-
if (
|
|
56
|
-
const {
|
|
57
|
-
type: "
|
|
58
|
-
name: "
|
|
59
|
-
message:
|
|
60
|
-
|
|
79
|
+
// Step 4: Collect email
|
|
80
|
+
let email = options.email;
|
|
81
|
+
if (!email) {
|
|
82
|
+
const { userEmail } = await prompts({
|
|
83
|
+
type: "text",
|
|
84
|
+
name: "userEmail",
|
|
85
|
+
message: "What email should we use?",
|
|
86
|
+
validate: (value) => isValidEmail(value) ? true : "Please enter a valid email address",
|
|
61
87
|
});
|
|
62
|
-
|
|
88
|
+
if (!userEmail) {
|
|
89
|
+
console.log(chalk.yellow("\nCancelled."));
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
email = userEmail;
|
|
63
93
|
}
|
|
64
|
-
|
|
94
|
+
console.log(chalk.green("\nā
Information collected!\n"));
|
|
95
|
+
// Generate org slug
|
|
96
|
+
const orgSlug = slugify(organizationName);
|
|
97
|
+
const installationName = orgSlug;
|
|
98
|
+
// Create installation folder
|
|
65
99
|
const basePath = options.basePath || process.cwd();
|
|
66
100
|
let installationPath = null;
|
|
67
101
|
try {
|
|
@@ -69,43 +103,43 @@ export async function runInit(options = {}) {
|
|
|
69
103
|
let spinner = ora(`Creating installation folder: /${installationName}`).start();
|
|
70
104
|
installationPath = await createInstallationFolder(installationName, basePath);
|
|
71
105
|
spinner.succeed(`Created installation folder: /${installationName}`);
|
|
72
|
-
// Mirror ontology structure
|
|
73
|
-
spinner = ora("
|
|
106
|
+
// Mirror ontology structure (minimal for onboarding)
|
|
107
|
+
spinner = ora("Creating folder structure...").start();
|
|
74
108
|
await mirrorOntologyStructure(installationPath);
|
|
75
|
-
spinner.succeed("Created
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
spinner.succeed("Created
|
|
86
|
-
// Update .env.local
|
|
109
|
+
spinner.succeed("Created ontology subdirectories");
|
|
110
|
+
// Create .onboarding.json handoff file
|
|
111
|
+
spinner = ora("Creating .onboarding.json...").start();
|
|
112
|
+
await createOnboardingFile(installationPath, {
|
|
113
|
+
userName: userName,
|
|
114
|
+
userEmail: email,
|
|
115
|
+
organizationName: organizationName,
|
|
116
|
+
organizationSlug: orgSlug,
|
|
117
|
+
websiteUrl: websiteUrl,
|
|
118
|
+
});
|
|
119
|
+
spinner.succeed("Created .onboarding.json handoff file");
|
|
120
|
+
// Update .env.local with org configuration
|
|
87
121
|
spinner = ora("Updating .env.local...").start();
|
|
88
|
-
await
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
122
|
+
await updateOrgEnvFile({
|
|
123
|
+
orgName: organizationName,
|
|
124
|
+
orgWebsite: websiteUrl,
|
|
125
|
+
orgFolder: installationName,
|
|
126
|
+
backendEnabled: false, // Default to frontend-only mode
|
|
127
|
+
}, basePath);
|
|
128
|
+
spinner.succeed(`Updated .env.local:\n ORG_NAME=${organizationName}\n ORG_WEBSITE=${websiteUrl}\n ORG_FOLDER=${installationName}\n ONE_BACKEND=off`);
|
|
129
|
+
// Always exclude from git for onboarding
|
|
130
|
+
spinner = ora("Updating .gitignore...").start();
|
|
131
|
+
await updateGitignore(installationName, true, basePath);
|
|
132
|
+
spinner.succeed(`Updated .gitignore to exclude /${installationName}/`);
|
|
133
|
+
// Launch Claude Code (unless skipped)
|
|
134
|
+
if (!options.skipClaudeLaunch) {
|
|
135
|
+
await launchClaude(`/${installationName}`);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
console.log(chalk.green("\nā
Setup Complete!\n"));
|
|
139
|
+
console.log(`Created: /${installationName}/`);
|
|
140
|
+
console.log(chalk.gray(`Saved: Website URL (${websiteUrl})\n`));
|
|
141
|
+
console.log(chalk.bold("Next: Run Claude Code and type /one\n"));
|
|
95
142
|
}
|
|
96
|
-
// Success!
|
|
97
|
-
console.log(chalk.green("\nš Installation initialized!\n"));
|
|
98
|
-
console.log(chalk.cyan("š Your installation folder:"));
|
|
99
|
-
console.log(chalk.gray(` ${installationPath}\n`));
|
|
100
|
-
console.log(chalk.cyan("š§ Configuration:"));
|
|
101
|
-
console.log(chalk.gray(` Organization: ${organizationName}`));
|
|
102
|
-
console.log(chalk.gray(` Identifier: ${installationName}`));
|
|
103
|
-
console.log(chalk.gray(` Git: ${excludeFromGit ? "excluded" : "tracked"}\n`));
|
|
104
|
-
console.log(chalk.bold("š Next steps:\n"));
|
|
105
|
-
console.log(chalk.gray(`1. Create your first group in the database (via web UI)`));
|
|
106
|
-
console.log(chalk.gray(`2. Add group-specific docs: /${installationName}/groups/<group-slug>/`));
|
|
107
|
-
console.log(chalk.gray(`3. Override global templates: /${installationName}/<dimension>/`));
|
|
108
|
-
console.log(chalk.gray(`4. Read the README: cat ${installationName}/README.md\n`));
|
|
109
143
|
}
|
|
110
144
|
catch (error) {
|
|
111
145
|
console.error(chalk.red("\nā Error:"), error.message);
|
|
@@ -118,38 +152,4 @@ export async function runInit(options = {}) {
|
|
|
118
152
|
throw error;
|
|
119
153
|
}
|
|
120
154
|
}
|
|
121
|
-
/**
|
|
122
|
-
* Non-interactive init (for programmatic use)
|
|
123
|
-
*/
|
|
124
|
-
export async function initInstallation(organizationName, installationName, options = {}) {
|
|
125
|
-
if (!validateInstallationName(installationName)) {
|
|
126
|
-
throw new Error(`Invalid installation name: "${installationName}". ` +
|
|
127
|
-
"Must be lowercase letters, numbers, and hyphens only.");
|
|
128
|
-
}
|
|
129
|
-
const basePath = options.basePath || process.cwd();
|
|
130
|
-
const excludeFromGit = options.excludeFromGit ?? true;
|
|
131
|
-
let installationPath = null;
|
|
132
|
-
try {
|
|
133
|
-
// Create folder
|
|
134
|
-
installationPath = await createInstallationFolder(installationName, basePath);
|
|
135
|
-
// Mirror ontology structure
|
|
136
|
-
await mirrorOntologyStructure(installationPath);
|
|
137
|
-
// Create README
|
|
138
|
-
await createReadme(installationPath, organizationName, installationName);
|
|
139
|
-
// Update .env.local
|
|
140
|
-
await updateEnvFile(installationName, basePath);
|
|
141
|
-
// Update .gitignore
|
|
142
|
-
if (excludeFromGit) {
|
|
143
|
-
await updateGitignore(installationName, true, basePath);
|
|
144
|
-
}
|
|
145
|
-
return installationPath;
|
|
146
|
-
}
|
|
147
|
-
catch (error) {
|
|
148
|
-
// Rollback on failure
|
|
149
|
-
if (installationPath) {
|
|
150
|
-
await rollbackInstallation(installationPath);
|
|
151
|
-
}
|
|
152
|
-
throw error;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
155
|
//# sourceMappingURL=init.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAEL,wBAAwB,EACxB,uBAAuB,EAEvB,oBAAoB,EAEpB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,GACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,YAAY,EACZ,UAAU,EACV,OAAO,EACP,cAAc,EAEd,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAe7C;;GAEG;AAC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CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,uCAAuC,CAAC,CAAC,CAAC;QACnE,CAAC;IACH,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;QAEtD,sBAAsB;QACtB,IAAI,gBAAgB,EAAE,CAAC;YACrB,MAAM,OAAO,GAAG,GAAG,CAAC,8BAA8B,CAAC,CAAC,KAAK,EAAE,CAAC;YAC5D,MAAM,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;YAC7C,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;QACzC,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -14,13 +14,14 @@ import { runInit } from "./commands/init.js";
|
|
|
14
14
|
async function main() {
|
|
15
15
|
// Check for command line arguments
|
|
16
16
|
const args = process.argv.slice(2);
|
|
17
|
-
// Handle "
|
|
18
|
-
if (args[0] === "
|
|
19
|
-
await
|
|
17
|
+
// Handle legacy "setup" command (full ontology sync)
|
|
18
|
+
if (args[0] === "setup") {
|
|
19
|
+
await runFullSetup();
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
|
-
// Default: run
|
|
23
|
-
|
|
22
|
+
// Default: run onboarding (init)
|
|
23
|
+
// This makes `npx oneie` and `npx oneie init` both work
|
|
24
|
+
await runInit();
|
|
24
25
|
}
|
|
25
26
|
async function runFullSetup() {
|
|
26
27
|
// Display welcome banner
|