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.
- 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/deploy.md +77 -150
- package/.claude/commands/one.md +375 -5
- package/.claude/commands/release.md +64 -3
- package/.mcp.json +57 -0
- package/CLAUDE.md +55 -69
- package/CREATE-WEBSITE.md +442 -0
- package/SECURITY.md +31 -0
- package/TESTING-ONBOARDING.md +185 -0
- package/dist/commands/create-website.d.ts +19 -0
- package/dist/commands/create-website.d.ts.map +1 -0
- package/dist/commands/create-website.js +231 -0
- package/dist/commands/create-website.js.map +1 -0
- package/dist/commands/init.d.ts +5 -6
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +213 -103
- package/dist/commands/init.js.map +1 -1
- package/dist/index.js +7 -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/core-plugins.json +33 -0
- package/one/.obsidian/workspace.json +20 -20
- 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/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/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/package.json +7 -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
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
|
|
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
# Create Website with ONE Platform CLI
|
|
2
|
+
|
|
3
|
+
**New in v3.6.1:** The CLI now includes a complete platform setup integrated directly into the onboarding flow. When you run `npx oneie`, the CLI will:
|
|
4
|
+
|
|
5
|
+
1. **Set up the platform** - Copy `/one` (ontology, docs), `.claude/` (agents, commands), and all documentation files
|
|
6
|
+
2. **Create your organization folder** - Custom folder for your organization-specific content
|
|
7
|
+
3. **Optionally enhance your website** - Clone the complete Astro + React website template configured with your branding
|
|
8
|
+
|
|
9
|
+
## Quick Start
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# Run onboarding (interactive mode)
|
|
13
|
+
npx oneie
|
|
14
|
+
|
|
15
|
+
# Answer questions:
|
|
16
|
+
# 1. Your name
|
|
17
|
+
# 2. Organization name
|
|
18
|
+
# 3. Website URL
|
|
19
|
+
# 4. "Would you like to enhance your website?" → Yes
|
|
20
|
+
# 5. Email
|
|
21
|
+
|
|
22
|
+
# Result: Complete environment ready to use!
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## What Gets Created
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
your-project/
|
|
29
|
+
├── one/ # Ontology, documentation, specifications
|
|
30
|
+
├── .claude/ # AI agents, commands, hooks
|
|
31
|
+
│ ├── agents/ # Agent definitions
|
|
32
|
+
│ ├── commands/ # Slash commands
|
|
33
|
+
│ └── hooks/ # Git hooks
|
|
34
|
+
├── web/ # Astro + React website (if opted in)
|
|
35
|
+
├── your-org/ # Your organization folder
|
|
36
|
+
├── CLAUDE.md # Claude Code instructions
|
|
37
|
+
├── AGENTS.md # Agent coordination rules
|
|
38
|
+
├── README.md # Platform overview
|
|
39
|
+
├── LICENSE.md # Free license
|
|
40
|
+
├── SECURITY.md # Security policy
|
|
41
|
+
└── .mcp.json # MCP server configuration
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## What You Get
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
my-website/
|
|
48
|
+
├── src/
|
|
49
|
+
│ ├── components/ # React components + shadcn/ui (50+)
|
|
50
|
+
│ ├── pages/ # Astro pages
|
|
51
|
+
│ ├── layouts/ # Page layouts
|
|
52
|
+
│ └── styles/ # Tailwind CSS v4
|
|
53
|
+
├── .env.local # Configured with your org settings
|
|
54
|
+
├── astro.config.mjs # React 19 + Cloudflare edge
|
|
55
|
+
├── wrangler.toml # Cloudflare Pages config
|
|
56
|
+
└── package.json # All dependencies
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Features:**
|
|
60
|
+
- ✅ Astro 5 + React 19 with edge SSR
|
|
61
|
+
- ✅ Tailwind CSS v4 (CSS-based config)
|
|
62
|
+
- ✅ shadcn/ui components (50+ pre-installed)
|
|
63
|
+
- ✅ Branded with your organization name
|
|
64
|
+
- ✅ Conditional homepage (ONE vs Customer)
|
|
65
|
+
- ✅ Backend on/off switch
|
|
66
|
+
- ✅ Ready to deploy to Cloudflare Pages
|
|
67
|
+
|
|
68
|
+
## How It Works
|
|
69
|
+
|
|
70
|
+
When you run `npx oneie` and answer "Yes" to "Would you like to enhance your website?", the CLI:
|
|
71
|
+
|
|
72
|
+
1. **Clones template** from github.com/one-ie/web to `./web`
|
|
73
|
+
2. **Configures environment** with your org settings in `web/.env.local`:
|
|
74
|
+
```bash
|
|
75
|
+
ORG_NAME=acme
|
|
76
|
+
ORG_WEBSITE=https://acme.com
|
|
77
|
+
ORG_FOLDER=acme
|
|
78
|
+
ONE_BACKEND=off
|
|
79
|
+
```
|
|
80
|
+
3. **Removes .git** directory so you can initialize your own repo
|
|
81
|
+
4. **Ready to customize** and run with `bun install && bun run dev`
|
|
82
|
+
|
|
83
|
+
## Frontend-Only vs Full Platform
|
|
84
|
+
|
|
85
|
+
### Frontend Only (Recommended to Start)
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
ONE_BACKEND=off
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
**Features:**
|
|
92
|
+
- Static site generation
|
|
93
|
+
- No database required
|
|
94
|
+
- Deploy anywhere (Cloudflare, Vercel, Netlify)
|
|
95
|
+
- Zero backend costs
|
|
96
|
+
- Simple "Get Started" prompt on homepage
|
|
97
|
+
|
|
98
|
+
**Perfect for:**
|
|
99
|
+
- Landing pages
|
|
100
|
+
- Marketing sites
|
|
101
|
+
- Blogs
|
|
102
|
+
- Static documentation
|
|
103
|
+
|
|
104
|
+
### Full Platform
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
ONE_BACKEND=on
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**Features:**
|
|
111
|
+
- Real-time database (Convex)
|
|
112
|
+
- User authentication (Better Auth)
|
|
113
|
+
- Backend API
|
|
114
|
+
- Real-time subscriptions
|
|
115
|
+
- Complete ONE Platform homepage
|
|
116
|
+
|
|
117
|
+
**Requires:**
|
|
118
|
+
- Convex account (free tier available)
|
|
119
|
+
- Backend configuration in `.env.local`
|
|
120
|
+
|
|
121
|
+
## Environment Configuration
|
|
122
|
+
|
|
123
|
+
### Automatically Created (.env.local)
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
# Organization Configuration
|
|
127
|
+
ORG_NAME=acme
|
|
128
|
+
ORG_WEBSITE=https://acme.com
|
|
129
|
+
ORG_FOLDER=acme
|
|
130
|
+
ONE_BACKEND=off
|
|
131
|
+
|
|
132
|
+
# Backend Configuration (only if ONE_BACKEND=on)
|
|
133
|
+
# PUBLIC_CONVEX_URL=https://your-deployment.convex.cloud
|
|
134
|
+
# CONVEX_DEPLOYMENT=prod:your-deployment-name
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Reserved Values
|
|
138
|
+
|
|
139
|
+
**These are protected and cannot be used:**
|
|
140
|
+
- `ORG_NAME="one"` - Reserved for ONE Platform
|
|
141
|
+
- `ORG_WEBSITE="https://one.ie"` - Reserved for ONE Platform
|
|
142
|
+
- `ORG_FOLDER="onegroup"` - Reserved for ONE Platform
|
|
143
|
+
|
|
144
|
+
**The CLI will reject these during setup.**
|
|
145
|
+
|
|
146
|
+
## Homepage Behavior
|
|
147
|
+
|
|
148
|
+
### For ONE Platform (ORG_NAME=one)
|
|
149
|
+
|
|
150
|
+
**Shows:**
|
|
151
|
+
- Full marketing homepage
|
|
152
|
+
- Complete navigation
|
|
153
|
+
- All features
|
|
154
|
+
- Platform branding
|
|
155
|
+
|
|
156
|
+
### For Customer Orgs (ORG_NAME=acme)
|
|
157
|
+
|
|
158
|
+
**Shows:**
|
|
159
|
+
- "Welcome to acme" header
|
|
160
|
+
- Simple "Get Started" prompt
|
|
161
|
+
- Minimal sidebar (Blog + License)
|
|
162
|
+
- Organization website link
|
|
163
|
+
|
|
164
|
+
## Development
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
# Navigate to web directory
|
|
168
|
+
cd web
|
|
169
|
+
|
|
170
|
+
# Install dependencies (if not already done)
|
|
171
|
+
bun install
|
|
172
|
+
|
|
173
|
+
# Start dev server
|
|
174
|
+
bun run dev
|
|
175
|
+
|
|
176
|
+
# Visit http://localhost:4321
|
|
177
|
+
# See: "Welcome to [your-org]" with GetStartedPrompt
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## Deployment
|
|
181
|
+
|
|
182
|
+
### Build
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
bun run build
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
**Output:** `dist/` directory with optimized static site
|
|
189
|
+
|
|
190
|
+
### Deploy to Cloudflare Pages
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
wrangler pages deploy dist --project-name=acme
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
**Live at:** `https://acme.pages.dev`
|
|
197
|
+
|
|
198
|
+
### Custom Domain
|
|
199
|
+
|
|
200
|
+
Add in Cloudflare Pages dashboard:
|
|
201
|
+
1. Go to Settings → Domains
|
|
202
|
+
2. Add `www.acme.com`
|
|
203
|
+
3. Configure DNS (automatic with Cloudflare DNS)
|
|
204
|
+
|
|
205
|
+
## Examples
|
|
206
|
+
|
|
207
|
+
### Example 1: Complete Platform Setup with Website
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
npx oneie
|
|
211
|
+
|
|
212
|
+
# Answer prompts:
|
|
213
|
+
Name: John Doe
|
|
214
|
+
Organization: TechCorp
|
|
215
|
+
Website: https://techcorp.com
|
|
216
|
+
Enhance website? Yes
|
|
217
|
+
Email: john@techcorp.com
|
|
218
|
+
|
|
219
|
+
# Result - Complete environment created:
|
|
220
|
+
# ✅ /one/ → Ontology and documentation
|
|
221
|
+
# ✅ /.claude/ → AI agents and commands
|
|
222
|
+
# ✅ /techcorp/ → Your organization folder
|
|
223
|
+
# ✅ /web/ → Branded Astro + React website
|
|
224
|
+
# ✅ CLAUDE.md, AGENTS.md → AI instructions
|
|
225
|
+
# ✅ README.md, LICENSE.md → Documentation
|
|
226
|
+
# ✅ .mcp.json → MCP configuration
|
|
227
|
+
|
|
228
|
+
# Next: cd web && bun install && bun run dev
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
### Example 2: Add Backend Later
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
# Start with frontend-only (from Example 1)
|
|
235
|
+
cd web
|
|
236
|
+
|
|
237
|
+
# Enable backend in .env.local
|
|
238
|
+
# Change: ONE_BACKEND=off → ONE_BACKEND=on
|
|
239
|
+
|
|
240
|
+
# Configure Convex:
|
|
241
|
+
npx convex deploy
|
|
242
|
+
|
|
243
|
+
# Add to .env.local:
|
|
244
|
+
PUBLIC_CONVEX_URL=https://your-deployment.convex.cloud
|
|
245
|
+
CONVEX_DEPLOYMENT=prod:your-deployment-name
|
|
246
|
+
|
|
247
|
+
# Restart dev server
|
|
248
|
+
bun run dev
|
|
249
|
+
|
|
250
|
+
# Result: Full platform with auth & database
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
### Example 3: Platform Setup Without Website
|
|
254
|
+
|
|
255
|
+
```bash
|
|
256
|
+
npx oneie
|
|
257
|
+
|
|
258
|
+
# Answer prompts:
|
|
259
|
+
Name: Jane Smith
|
|
260
|
+
Organization: StartupCo
|
|
261
|
+
Website: https://startupco.com
|
|
262
|
+
Enhance website? No # <-- Skip website creation
|
|
263
|
+
Email: jane@startupco.com
|
|
264
|
+
|
|
265
|
+
# Result - Platform files without website:
|
|
266
|
+
# ✅ /one/ → Ontology and documentation
|
|
267
|
+
# ✅ /.claude/ → AI agents and commands
|
|
268
|
+
# ✅ /startupco/ → Your organization folder
|
|
269
|
+
# ✅ CLAUDE.md, AGENTS.md → AI instructions
|
|
270
|
+
# ✅ README.md, LICENSE.md → Documentation
|
|
271
|
+
# ✅ .mcp.json → MCP configuration
|
|
272
|
+
# ❌ /web/ → Skipped (can add later)
|
|
273
|
+
|
|
274
|
+
# Next: Run Claude Code and type /one
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
## What Makes It Different
|
|
278
|
+
|
|
279
|
+
### Integrated Onboarding
|
|
280
|
+
|
|
281
|
+
**Traditional CLIs:**
|
|
282
|
+
```bash
|
|
283
|
+
create-react-app my-app
|
|
284
|
+
# Generic template, manual configuration
|
|
285
|
+
# No branding, no customization
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
**ONE Platform:**
|
|
289
|
+
```bash
|
|
290
|
+
npx oneie
|
|
291
|
+
# Interactive onboarding collects your info
|
|
292
|
+
# Automatically brands website with your org
|
|
293
|
+
# Everything configured and ready to run!
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
### Smart Defaults
|
|
297
|
+
|
|
298
|
+
**ONE Platform provides:**
|
|
299
|
+
- ✅ Fully branded with your organization name and website
|
|
300
|
+
- ✅ Backend toggle (ONE_BACKEND=off for static, =on for full platform)
|
|
301
|
+
- ✅ Pre-configured for Cloudflare Pages deployment
|
|
302
|
+
- ✅ 50+ shadcn/ui components pre-installed
|
|
303
|
+
- ✅ Tailwind CSS v4 with modern CSS-based config
|
|
304
|
+
- ✅ React 19 edge-compatible for Cloudflare Workers
|
|
305
|
+
- ✅ Conditional homepage (different UI for ONE vs customer orgs)
|
|
306
|
+
- ✅ Minimal sidebar for customer orgs (Blog + License only)
|
|
307
|
+
|
|
308
|
+
### Progressive Enhancement
|
|
309
|
+
|
|
310
|
+
Start simple, scale when ready:
|
|
311
|
+
1. **Frontend-only** (ONE_BACKEND=off): Static site, no database
|
|
312
|
+
2. **Add backend** (ONE_BACKEND=on): Real-time DB, auth, Convex
|
|
313
|
+
3. **Deploy** (wrangler pages deploy): Production on Cloudflare Edge
|
|
314
|
+
|
|
315
|
+
## Customization
|
|
316
|
+
|
|
317
|
+
### Change Organization Settings
|
|
318
|
+
|
|
319
|
+
Edit `.env.local`:
|
|
320
|
+
```bash
|
|
321
|
+
ORG_NAME=new-name
|
|
322
|
+
ORG_WEBSITE=https://new-site.com
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
Restart dev server to see changes.
|
|
326
|
+
|
|
327
|
+
### Add Backend Later
|
|
328
|
+
|
|
329
|
+
```bash
|
|
330
|
+
# 1. Enable backend in .env.local
|
|
331
|
+
ONE_BACKEND=on
|
|
332
|
+
|
|
333
|
+
# 2. Create Convex deployment
|
|
334
|
+
npx convex deploy
|
|
335
|
+
|
|
336
|
+
# 3. Add backend URL
|
|
337
|
+
PUBLIC_CONVEX_URL=https://your-deployment.convex.cloud
|
|
338
|
+
CONVEX_DEPLOYMENT=prod:your-deployment-name
|
|
339
|
+
|
|
340
|
+
# 4. Restart dev server
|
|
341
|
+
bun run dev
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
### Customize Homepage
|
|
345
|
+
|
|
346
|
+
Edit `src/pages/index.astro`:
|
|
347
|
+
```astro
|
|
348
|
+
---
|
|
349
|
+
const isONE = import.meta.env.ORG_NAME === "one";
|
|
350
|
+
const orgName = import.meta.env.ORG_NAME;
|
|
351
|
+
---
|
|
352
|
+
|
|
353
|
+
{!isONE ? (
|
|
354
|
+
<!-- Your custom homepage here -->
|
|
355
|
+
<MyCustomHomepage orgName={orgName} />
|
|
356
|
+
) : (
|
|
357
|
+
<!-- ONE Platform homepage -->
|
|
358
|
+
<ONEHomepage />
|
|
359
|
+
)}
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
## Troubleshooting
|
|
363
|
+
|
|
364
|
+
### Directory already exists
|
|
365
|
+
|
|
366
|
+
```
|
|
367
|
+
Error: Directory "acme-website" already exists
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
**Solution:** Choose a different directory name or remove the existing one
|
|
371
|
+
|
|
372
|
+
### Git clone failed
|
|
373
|
+
|
|
374
|
+
```
|
|
375
|
+
Error: Failed to clone template
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
**Solution:** Check internet connection and retry
|
|
379
|
+
|
|
380
|
+
### Dependencies installation failed
|
|
381
|
+
|
|
382
|
+
```
|
|
383
|
+
Warning: Failed to install dependencies
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
**Solution:** Run manually:
|
|
387
|
+
```bash
|
|
388
|
+
cd acme-website
|
|
389
|
+
bun install
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
## File Structure
|
|
393
|
+
|
|
394
|
+
### Core Files
|
|
395
|
+
|
|
396
|
+
```
|
|
397
|
+
acme-website/
|
|
398
|
+
├── .env.local # Your org configuration ✓
|
|
399
|
+
├── .env.local.example # Template for reference
|
|
400
|
+
├── astro.config.mjs # Astro + React 19 edge config
|
|
401
|
+
├── wrangler.toml # Cloudflare Pages config
|
|
402
|
+
├── package.json # Dependencies
|
|
403
|
+
├── tailwind.config.js # Tailwind CSS v4
|
|
404
|
+
└── tsconfig.json # TypeScript config
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
### Source Files
|
|
408
|
+
|
|
409
|
+
```
|
|
410
|
+
src/
|
|
411
|
+
├── components/
|
|
412
|
+
│ ├── GetStartedPrompt.tsx # Customer org homepage ✓
|
|
413
|
+
│ ├── MinimalSidebar.tsx # Customer org sidebar ✓
|
|
414
|
+
│ ├── Sidebar.tsx # Full navigation
|
|
415
|
+
│ └── ui/ # shadcn/ui components (50+)
|
|
416
|
+
├── layouts/
|
|
417
|
+
│ └── Layout.astro # Main layout
|
|
418
|
+
├── pages/
|
|
419
|
+
│ └── index.astro # Homepage (conditional) ✓
|
|
420
|
+
└── styles/
|
|
421
|
+
└── global.css # Tailwind CSS v4
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
## Next Steps
|
|
425
|
+
|
|
426
|
+
After creating your website:
|
|
427
|
+
|
|
428
|
+
1. **Customize content** in `src/pages/`
|
|
429
|
+
2. **Add blog posts** to `src/content/blog/`
|
|
430
|
+
3. **Configure Cloudflare** for deployment
|
|
431
|
+
4. **Add custom domain** in Cloudflare dashboard
|
|
432
|
+
5. **Enable backend** when you need it
|
|
433
|
+
|
|
434
|
+
## Support
|
|
435
|
+
|
|
436
|
+
- **Documentation:** https://one.ie
|
|
437
|
+
- **GitHub:** https://github.com/one-ie/web
|
|
438
|
+
- **Issues:** https://github.com/one-ie/web/issues
|
|
439
|
+
|
|
440
|
+
---
|
|
441
|
+
|
|
442
|
+
**Built for instant gratification and gradual complexity.**
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
If you discover a security vulnerability in this project, **please help us by reporting it responsibly**. We appreciate your efforts to make the open-source community a safer place!
|
|
2
|
+
|
|
3
|
+
**How to report:**
|
|
4
|
+
|
|
5
|
+
1. **Do Not Create a Public Issue**
|
|
6
|
+
To protect users, please do **not** disclose vulnerabilities publicly in issue trackers, discussions, or forums.
|
|
7
|
+
|
|
8
|
+
2. **Contact Us Privately**
|
|
9
|
+
Email us at [agent@one.ie](mailto:agent@one.ie) with the following details:
|
|
10
|
+
- A clear description of the vulnerability
|
|
11
|
+
- Steps to reproduce the issue
|
|
12
|
+
- Any proof-of-concept code or screenshots, if available
|
|
13
|
+
- Your contact information for follow-up
|
|
14
|
+
|
|
15
|
+
3. **Response Expectations**
|
|
16
|
+
- We aim to respond within **3 business days**.
|
|
17
|
+
- After confirming the issue, we will work with you to remediate it as quickly as possible.
|
|
18
|
+
- We may request additional information to better understand and address the vulnerability.
|
|
19
|
+
|
|
20
|
+
4. **Responsible Disclosure**
|
|
21
|
+
- We ask that you do **not** publicly disclose the vulnerability until we have had a chance to address it.
|
|
22
|
+
- We greatly value responsible reporters and may provide public acknowledgment for your contribution (with your permission).
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## :handshake: Thank You
|
|
27
|
+
|
|
28
|
+
Your efforts help improve the security of the project and the community at large.
|
|
29
|
+
If you have any other questions or concerns about security, feel free to reach out to us.
|
|
30
|
+
|
|
31
|
+
Stay safe and secure!
|