oneie 3.6.7 → 3.6.12
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-backend.md +83 -0
- package/.claude/agents/agent-designer.md +97 -0
- package/.claude/agents/agent-director.md +118 -7
- package/.claude/agents/agent-documenter.md +93 -0
- package/.claude/agents/agent-frontend.md +96 -0
- package/.claude/agents/agent-ops.md +264 -32
- package/.claude/agents/agent-problem-solver.md +166 -0
- package/.claude/agents/agent-quality.md +127 -0
- package/.claude/commands/build.md +293 -0
- package/.claude/commands/cascade.md +231 -127
- package/.claude/commands/deploy.md +56 -17
- package/.claude/commands/mcp-toggle.md +93 -0
- package/.claude/commands/one.md +78 -127
- package/.claude/commands/plan.md +394 -80
- package/.claude/commands/push.md +75 -14
- package/.claude/commands/release.md +89 -25
- package/.claude/commands/server.md +2 -0
- package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
- package/.claude/hooks/root-cleanup.py +75 -0
- package/.claude/skills/INDEX.md +523 -0
- package/.claude/skills/REGISTRY.md +529 -0
- package/.claude/skills/agent-backend-create-mutation.md +319 -0
- package/.claude/skills/agent-designer-create-wireframe.md +341 -0
- package/.claude/skills/agent-frontend-create-page.md +413 -0
- package/.claude/skills/agents/README.md +238 -0
- package/dist/clone-web.js +1 -1
- package/dist/clone-web.js.map +1 -1
- package/folders.yaml +1 -1
- package/one/.obsidian/workspace.json +38 -38
- package/one/connections/api/queries-reference.md +842 -0
- package/one/connections/api-reference.md +1011 -0
- package/one/connections/integration-examples.md +875 -0
- package/one/connections/integration-guide.md +869 -0
- package/one/connections/integration-phase2.md +736 -0
- package/one/events/API_ROUTES_FIXES_SUMMARY.md +262 -0
- package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +636 -0
- package/one/events/BEFORE_AFTER_COMPARISON.md +960 -0
- package/one/events/CONNECTIONS_DEMO.md +501 -0
- package/one/events/DELIVERABLES.md +432 -0
- package/one/events/DEMO-GROUPS-PAGE.md +392 -0
- package/one/events/DEMO-TESTING-SUMMARY.md +518 -0
- package/one/events/DEMO_COMPONENTS.md +487 -0
- package/one/events/DEMO_HOOKS_INDEX.md +334 -0
- package/one/events/DEMO_INFRASTRUCTURE.md +905 -0
- package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +570 -0
- package/one/events/DEMO_INTEGRATION_CHECKLIST.md +431 -0
- package/one/events/DEMO_QUICK_REFERENCE.md +441 -0
- package/one/events/DEMO_SETUP.md +476 -0
- package/one/events/EFFECT_TS_API_PATTERN.md +478 -0
- package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +414 -0
- package/one/events/HOOKS-DEMO.md +441 -0
- package/one/events/ONTOLOGY-HOOKS-README.md +700 -0
- package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +365 -0
- package/one/events/QA-CHECKLIST.md +674 -0
- package/one/events/QUICK-START-ONTOLOGY.md +408 -0
- package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +639 -0
- package/one/events/SEARCH_DEMO_DELIVERY.md +415 -0
- package/one/events/SEARCH_DEMO_SUMMARY.md +303 -0
- package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +381 -0
- package/one/events/TEST-PLAN-INDEX.md +346 -0
- package/one/events/TEST-PLAN.md +1417 -0
- package/one/events/TESTING-DELIVERY.txt +372 -0
- package/one/events/TRANSITIONS-QUICK-START.md +141 -0
- package/one/events/TYPESCRIPT_FIXES.md +152 -0
- package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +412 -0
- package/one/events/TYPESCRIPT_FIXES_INDEX.md +341 -0
- package/one/events/VIEW-TRANSITIONS.md +428 -0
- package/one/events/backend-integration-tests.md +606 -0
- package/one/events/backend-structure-diagram.txt +393 -0
- package/one/events/backend-structure-summary.txt +269 -0
- package/one/events/cloudflare-pages-infrastructure-setup.md +264 -0
- package/one/events/convex-analysis-index.md +304 -0
- package/one/events/convex-structure-analysis.md +700 -0
- package/one/events/design-spec-complete.md +208 -0
- package/one/events/ontology-test-examples.md +562 -0
- package/one/events/phase1-backend-implementation-complete.md +518 -0
- package/one/events/test-dashboard.md +345 -0
- package/one/events/test-index.md +361 -0
- package/one/events/test-report-ontology.md +582 -0
- package/one/events/testing-summary.md +344 -0
- package/one/groups/features.md +2878 -0
- package/one/groups/strategy copy.md +869 -0
- package/one/knowledge/backend-api-reference.md +710 -0
- package/one/knowledge/documentation-summary.md +285 -0
- package/one/knowledge/lessons-learned.md +294 -4
- package/one/knowledge/ontology-visual-guide.md +360 -0
- package/one/knowledge/ontology.md +9 -17
- package/one/things/demo-accessibility-animations.md +999 -0
- package/one/things/demo-components.md +1304 -0
- package/one/things/demo-design-summary.md +629 -0
- package/one/things/demo-design-system.md +919 -0
- package/one/things/demo-page-layouts.md +989 -0
- package/one/things/designs/accessibility-audit.md +790 -0
- package/one/things/designs/component-specifications.md +757 -0
- package/one/things/designs/design-overview.md +318 -0
- package/one/things/designs/design-tokens.md +414 -0
- package/one/things/designs/wireframes-dashboard.md +653 -0
- package/one/things/docs/api-requests.md +923 -0
- package/one/things/features/0 All Features.md +2 -0
- package/one/things/implementation/backend-guide.md +412 -0
- package/one/things/plans/2-backend-agnostic-frontend.md +11 -8
- package/one/things/plans/2-sites.md +895 -0
- package/one/things/plans/ai-elements.md +1259 -0
- package/one/things/plans/ai-integration.md +947 -0
- package/one/things/plans/ai-sdk.md +761 -0
- package/one/things/plans/app.md +1 -1
- package/one/things/plans/architecture-summary.md +283 -0
- package/one/things/plans/async-ai-agents.md +215 -0
- package/one/things/plans/backend-agnostic-frontend.md +11 -6
- package/one/things/plans/backend-cleanup-quickstart.md +346 -0
- package/one/things/plans/backend-ontology-conformance.md +416 -0
- package/one/things/plans/backend-status.md +541 -0
- package/one/things/plans/backend-structure.md +799 -0
- package/one/things/plans/backend-target-structure.md +438 -0
- package/one/things/plans/backend.md +1133 -0
- package/one/things/plans/better-auth-any-backend.md +11 -11
- package/one/things/plans/cli-updates-required.md +280 -0
- package/one/things/plans/complete-step-by-step.md +1302 -0
- package/one/things/plans/convex-agents.md +1005 -0
- package/one/things/plans/deployment-architecture.md +426 -0
- package/one/things/plans/development-plan.md +1220 -0
- package/one/things/plans/effect.md +808 -48
- package/one/things/plans/integrate-frontend-and-backend.md +579 -0
- package/one/things/plans/mcp-clear-context-prompt.md +60 -0
- package/one/things/plans/mcp-simple.md +228 -0
- package/one/things/plans/one.md +8 -7
- package/one/things/plans/ontology-6-dimensions.md +20 -14
- package/one/things/plans/quick-wins.md +1273 -0
- package/one/things/plans/readme-backend-cleanup.md +361 -0
- package/one/things/plans/separate-demo.md +830 -0
- package/one/things/plans/separate.md +3 -3
- package/one/things/plans/sequence.md +1897 -0
- package/one/things/plans/sync-checklist.md +321 -0
- package/one/things/plans/unified-implementation-plan.md +3 -3
- package/one/things/plans/update-demos.md +513 -0
- package/package.json +1 -1
- package/.claude/agents/backend-specialist.md +0 -169
- package/.claude/agents/designer.md +0 -216
- package/.claude/agents/frontend-specialist.md +0 -236
- package/.claude/commands/done.md +0 -35
- package/.claude/commands/infer.md +0 -138
- package/.claude/commands/next.md +0 -53
- package/.claude/commands/one copy.md +0 -565
- package/.claude/commands/one-template.md +0 -106
- package/.claude/commands/one-v1.md +0 -609
- package/.claude/hooks/__pycache__/knowledge-post.cpython-313.pyc +0 -0
- package/.claude/hooks/__pycache__/knowledge-pre.cpython-313.pyc +0 -0
- package/one/groups/nine-padel-customers.md +0 -138
- package/one/groups/nine-padel-data-structure.md +0 -167
- package/one/groups/nine-padel-ontology-specification.md +0 -359
- package/one/groups/nine-padel-ontology.md +0 -143
- package/one/groups/nine-padel-strategy.md +0 -234
- package/one/groups/nine-padel.md +0 -211
- package/one/groups/nine-padle-contents.baked.md +0 -1252
- package/one/groups/nine-padle-contents.md +0 -6
- package/one/things/features/1-1-agent-prompts/design.md +0 -470
- package/one/things/features/1-1-agent-prompts/tests.md +0 -264
- package/one/things/features/1-2-yaml-orchestrator/design.md +0 -497
- package/one/things/features/1-2-yaml-orchestrator/tests.md +0 -227
- package/one/things/features/1-3-event-coordination/design.md +0 -544
- package/one/things/features/1-3-event-coordination/tests.md +0 -223
- package/one/things/features/1-4-knowledge-management/design.md +0 -609
- package/one/things/features/1-4-knowledge-management/tests.md +0 -195
- package/one/things/features/1-5-quality-loops/design.md +0 -797
- package/one/things/features/1-5-quality-loops/tests.md +0 -212
- package/one/things/features/1-6-numbering-structure/design.md +0 -610
- package/one/things/features/1-6-numbering-structure/tests.md +0 -213
- package/one/things/features/dataprovider-interface/1-tests.md +0 -1522
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
Better Auth is already integrated in our `/frontend` with 6 authentication methods. This plan shows how to make it work with **the ONE 6-dimension ontology** and **ANY backend** (Convex, Supabase, Neon, WordPress) using Effect.ts and the DataProvider pattern.
|
|
10
10
|
|
|
11
|
-
**Key Insight:** Auth maps perfectly to the 6 dimensions:
|
|
11
|
+
**Key Insight:** Auth maps perfectly to the 6 dimensions: groups partition auth data, people are the authorized users, sessions are connections, auth actions are events, and all operations use Effect.ts for type-safety.
|
|
12
12
|
|
|
13
13
|
**Architecture:**
|
|
14
14
|
```
|
|
@@ -26,21 +26,21 @@ Better Auth is already integrated in our `/frontend` with 6 authentication metho
|
|
|
26
26
|
│ - signUp → creates person (dimension 2) + event │
|
|
27
27
|
│ - signIn → creates session connection + event │
|
|
28
28
|
│ - signOut → deletes session connection + event │
|
|
29
|
-
│ - All operations
|
|
29
|
+
│ - All operations group-scoped & backend-agnostic │
|
|
30
30
|
└────────────────┬────────────────────────────────────────┘
|
|
31
31
|
│ DataProvider Interface
|
|
32
32
|
↓
|
|
33
33
|
┌─────────────────────────────────────────────────────────┐
|
|
34
34
|
│ ONE 6-Dimension Ontology │
|
|
35
35
|
│ │
|
|
36
|
-
│ 1.
|
|
37
|
-
│ - Each auth operation scoped to
|
|
36
|
+
│ 1. Groups: Multi-tenant partitioning │
|
|
37
|
+
│ - Each auth operation scoped to groupId │
|
|
38
38
|
│ - Perfect data isolation │
|
|
39
39
|
│ │
|
|
40
40
|
│ 2. People: Users & authorization │
|
|
41
41
|
│ - type: "creator" thing with role property │
|
|
42
42
|
│ - properties: { email, emailVerified, role } │
|
|
43
|
-
│ - roles: platform_owner,
|
|
43
|
+
│ - roles: platform_owner, group_owner, group_user │
|
|
44
44
|
│ │
|
|
45
45
|
│ 3. Things: Session devices (optional) │
|
|
46
46
|
│ - type: "device" for session tracking │
|
|
@@ -53,7 +53,7 @@ Better Auth is already integrated in our `/frontend` with 6 authentication metho
|
|
|
53
53
|
│ 5. Events: Complete auth audit trail │
|
|
54
54
|
│ - type: "sign_up", "sign_in", "sign_out" │
|
|
55
55
|
│ - actorId: userId (always required) │
|
|
56
|
-
│ -
|
|
56
|
+
│ - groupId: which group (always required) │
|
|
57
57
|
│ │
|
|
58
58
|
│ 6. Knowledge: Auth patterns for AI │
|
|
59
59
|
│ - Login behavior patterns │
|
|
@@ -149,10 +149,10 @@ Better Auth is already integrated in our `/frontend` with 6 authentication metho
|
|
|
149
149
|
image?: string, // Avatar URL
|
|
150
150
|
|
|
151
151
|
// CRITICAL: Role determines access level
|
|
152
|
-
role: "platform_owner" | "
|
|
152
|
+
role: "platform_owner" | "group_owner" | "group_user" | "customer",
|
|
153
153
|
|
|
154
154
|
// Organization context
|
|
155
|
-
|
|
155
|
+
groupId: Id<'groups'>, // Primary group
|
|
156
156
|
organizations: Id<'organizations'>[], // All orgs this person belongs to
|
|
157
157
|
permissions?: string[], // Fine-grained permissions
|
|
158
158
|
|
|
@@ -872,7 +872,7 @@ const generateSecureToken = () =>
|
|
|
872
872
|
- ✅ Users stored as things (type: person)
|
|
873
873
|
- ✅ Sessions stored as connections (type: session)
|
|
874
874
|
- ✅ All actions logged as events
|
|
875
|
-
- ✅ Multi-tenant by default (
|
|
875
|
+
- ✅ Multi-tenant by default (groupId scoping)
|
|
876
876
|
|
|
877
877
|
---
|
|
878
878
|
|
|
@@ -1812,7 +1812,7 @@ frontend/src/
|
|
|
1812
1812
|
|
|
1813
1813
|
3. **Backend-Agnostic:** DataProvider pattern works with any backend
|
|
1814
1814
|
|
|
1815
|
-
4. **Multi-Tenant by Design:** Every operation scoped to
|
|
1815
|
+
4. **Multi-Tenant by Design:** Every operation scoped to groupId
|
|
1816
1816
|
|
|
1817
1817
|
5. **Event-Driven:** All auth actions logged with actorId
|
|
1818
1818
|
|
|
@@ -1834,7 +1834,7 @@ frontend/src/
|
|
|
1834
1834
|
| **Backend** | Database-specific adapters | Universal DataProvider |
|
|
1835
1835
|
| **Error Handling** | Try/catch | Typed Effect errors |
|
|
1836
1836
|
| **Testing** | Mock database | Effect test layers |
|
|
1837
|
-
| **Data Isolation** | Manual queries | Automatic (
|
|
1837
|
+
| **Data Isolation** | Manual queries | Automatic (groupId scoping) |
|
|
1838
1838
|
| **Analytics** | External tool | Built-in (events + knowledge) |
|
|
1839
1839
|
|
|
1840
1840
|
### Next Steps
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
# CLI Status: Working Perfectly ✅
|
|
2
|
+
|
|
3
|
+
## No Changes Required!
|
|
4
|
+
|
|
5
|
+
The CLI is already correct. It clones from `one-ie/web` which is the single source of truth for the website.
|
|
6
|
+
|
|
7
|
+
## Current Architecture (Correct!)
|
|
8
|
+
|
|
9
|
+
**Repository Structure:**
|
|
10
|
+
1. `one-ie/web` - Website source (pushed from `/web`)
|
|
11
|
+
2. `one-ie/one` - Demo assembly (web/, one/, .claude/)
|
|
12
|
+
3. `one-ie/oneie` - Main site assembly (web/, one/, .claude/)
|
|
13
|
+
|
|
14
|
+
**CLI flow (perfect as-is):**
|
|
15
|
+
1. ✅ CLI bundles `/one` and `/.claude` in npm package
|
|
16
|
+
2. ✅ CLI syncs these to user directory
|
|
17
|
+
3. ✅ CLI optionally clones `web/` from `one-ie/web`
|
|
18
|
+
4. ✅ Users get website source + docs
|
|
19
|
+
|
|
20
|
+
## No Changes Required!
|
|
21
|
+
|
|
22
|
+
### clone-web.ts is Already Correct ✅
|
|
23
|
+
|
|
24
|
+
**File:** `cli/src/clone-web.ts`
|
|
25
|
+
|
|
26
|
+
**Current code (perfect):**
|
|
27
|
+
```typescript
|
|
28
|
+
// Clone from one-ie/web (single source of truth)
|
|
29
|
+
await execAsync(
|
|
30
|
+
"git clone https://github.com/one-ie/web.git web",
|
|
31
|
+
{ cwd: process.cwd() }
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**Why this is correct:**
|
|
36
|
+
- `one-ie/web` is the single source of truth for website
|
|
37
|
+
- Pushed from local `/web` development
|
|
38
|
+
- CLI clones the official website source
|
|
39
|
+
- Clean, simple, works perfectly
|
|
40
|
+
|
|
41
|
+
### 2. Keep Sync Operations (NO CHANGES NEEDED)
|
|
42
|
+
|
|
43
|
+
**Current Flow (PERFECT):**
|
|
44
|
+
1. CLI syncs `/one` files from npm package ✅
|
|
45
|
+
2. CLI syncs `/.claude` files from npm package ✅
|
|
46
|
+
3. CLI optionally clones web from one-ie/one ✅
|
|
47
|
+
|
|
48
|
+
**Why this works:**
|
|
49
|
+
- Users who just want docs/ontology don't need to clone anything
|
|
50
|
+
- Users who want web can opt-in
|
|
51
|
+
- web/ is extracted from demo repo (one-ie/one)
|
|
52
|
+
- Clean separation of concerns
|
|
53
|
+
|
|
54
|
+
**Files to Keep:**
|
|
55
|
+
- `cli/src/index.ts` - ✅ No changes needed
|
|
56
|
+
- `cli/src/sync-ontology.ts` - ✅ Keep as-is
|
|
57
|
+
- `cli/src/sync-agents.ts` - ✅ Keep as-is
|
|
58
|
+
- `cli/src/copy-claude-config.ts` - ✅ Keep as-is
|
|
59
|
+
|
|
60
|
+
### 3. Keep package.json Files Array (NO CHANGES)
|
|
61
|
+
|
|
62
|
+
**File:** `cli/package.json`
|
|
63
|
+
|
|
64
|
+
**Current (lines 58-74) - KEEP AS-IS:**
|
|
65
|
+
```json
|
|
66
|
+
"files": [
|
|
67
|
+
"dist",
|
|
68
|
+
"README.md",
|
|
69
|
+
"LICENSE.md",
|
|
70
|
+
"SECURITY.md",
|
|
71
|
+
"TESTING-ONBOARDING.md",
|
|
72
|
+
"CREATE-WEBSITE.md",
|
|
73
|
+
".mcp.json",
|
|
74
|
+
"folders.yaml",
|
|
75
|
+
"CLAUDE.md",
|
|
76
|
+
"AGENTS.md",
|
|
77
|
+
"one",
|
|
78
|
+
".claude/agents",
|
|
79
|
+
".claude/commands",
|
|
80
|
+
".claude/hooks",
|
|
81
|
+
".claude/skills"
|
|
82
|
+
]
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
**Rationale:**
|
|
86
|
+
- CLI bundles documentation and config
|
|
87
|
+
- Users get instant access without cloning
|
|
88
|
+
- Lightweight users (just want docs) don't need full repo
|
|
89
|
+
- web/ is optional and cloned separately
|
|
90
|
+
|
|
91
|
+
### 4. index.ts Logic (NO CHANGES NEEDED)
|
|
92
|
+
|
|
93
|
+
**Current flow is perfect:**
|
|
94
|
+
```typescript
|
|
95
|
+
// Step 1: Sync ontology from npm package ✅
|
|
96
|
+
syncOntologyFiles();
|
|
97
|
+
|
|
98
|
+
// Step 2: Sync agent definitions ✅
|
|
99
|
+
syncAgentDefinitions();
|
|
100
|
+
|
|
101
|
+
// Step 3: Copy Claude config ✅
|
|
102
|
+
copyClaudeConfig();
|
|
103
|
+
|
|
104
|
+
// Step 4: Optionally clone web ✅
|
|
105
|
+
if (buildWebsite) {
|
|
106
|
+
cloneWeb(); // Now clones from one-ie/one
|
|
107
|
+
}
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**Why this is better:**
|
|
111
|
+
- Users without web still get docs/ontology
|
|
112
|
+
- Flexible - opt-in to web
|
|
113
|
+
- web/ comes from demo repo (one-ie/one)
|
|
114
|
+
- Fast for docs-only users
|
|
115
|
+
|
|
116
|
+
**No changes needed to index.ts!**
|
|
117
|
+
|
|
118
|
+
### 5. Update Repository Reference
|
|
119
|
+
|
|
120
|
+
**File:** `cli/package.json` (line 34)
|
|
121
|
+
|
|
122
|
+
**Current:**
|
|
123
|
+
```json
|
|
124
|
+
"repository": {
|
|
125
|
+
"type": "git",
|
|
126
|
+
"url": "git+https://github.com/one-ie/one.git",
|
|
127
|
+
"directory": "cli"
|
|
128
|
+
}
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
**Keep as-is** - This is correct! The CLI code lives in `one-ie/one/cli/`
|
|
132
|
+
|
|
133
|
+
### 6. Test the Updated CLI
|
|
134
|
+
|
|
135
|
+
**Test locally:**
|
|
136
|
+
```bash
|
|
137
|
+
# Build CLI
|
|
138
|
+
cd cli
|
|
139
|
+
bun run build
|
|
140
|
+
|
|
141
|
+
# Test in temp directory
|
|
142
|
+
cd /tmp
|
|
143
|
+
mkdir test-oneie
|
|
144
|
+
cd test-oneie
|
|
145
|
+
npx /path/to/ONE/cli
|
|
146
|
+
|
|
147
|
+
# Verify structure
|
|
148
|
+
ls -la
|
|
149
|
+
# Should show: web/, one/, .claude/, README.md, etc.
|
|
150
|
+
|
|
151
|
+
cd web
|
|
152
|
+
bun run dev
|
|
153
|
+
# Should work!
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
**Test from npm:**
|
|
157
|
+
```bash
|
|
158
|
+
# After publishing
|
|
159
|
+
npx oneie@latest
|
|
160
|
+
|
|
161
|
+
# Should clone entire one-ie/one repo
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## Migration Checklist
|
|
167
|
+
|
|
168
|
+
### Phase 1: Update CLI Code
|
|
169
|
+
- [x] Update `cli/src/clone-web.ts` to clone from one-ie/one ✅ DONE
|
|
170
|
+
- [ ] ~~Simplify index.ts~~ - NO CHANGES NEEDED ✅
|
|
171
|
+
- [ ] ~~Update package.json~~ - NO CHANGES NEEDED ✅
|
|
172
|
+
- [ ] ~~Remove sync files~~ - KEEP THEM ✅
|
|
173
|
+
|
|
174
|
+
### Phase 2: Test Locally
|
|
175
|
+
- [ ] Build CLI: `cd cli && bun run build`
|
|
176
|
+
- [ ] Test in clean directory
|
|
177
|
+
- [ ] Verify all files present (web/, one/, .claude/)
|
|
178
|
+
- [ ] Verify web dev server works
|
|
179
|
+
- [ ] Verify Claude Code config works
|
|
180
|
+
|
|
181
|
+
### Phase 3: Update Documentation
|
|
182
|
+
- [ ] Update CLI README
|
|
183
|
+
- [ ] Update main README
|
|
184
|
+
- [ ] Update architecture docs
|
|
185
|
+
|
|
186
|
+
### Phase 4: Publish
|
|
187
|
+
- [ ] Bump CLI version (major change)
|
|
188
|
+
- [ ] Publish to npm
|
|
189
|
+
- [ ] Test `npx oneie@latest`
|
|
190
|
+
- [ ] Verify users get complete structure
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## Breaking Changes
|
|
195
|
+
|
|
196
|
+
This is a **major breaking change** (v3.x.x → v4.0.0):
|
|
197
|
+
|
|
198
|
+
**Before:**
|
|
199
|
+
- `npx oneie` cloned web from `one-ie/web`
|
|
200
|
+
- Synced docs from npm package
|
|
201
|
+
- Required separate steps
|
|
202
|
+
|
|
203
|
+
**After:**
|
|
204
|
+
- `npx oneie` clones everything from `one-ie/one`
|
|
205
|
+
- Single operation
|
|
206
|
+
- Complete starter kit immediately
|
|
207
|
+
|
|
208
|
+
**Migration Guide for Users:**
|
|
209
|
+
|
|
210
|
+
If users have existing projects:
|
|
211
|
+
```bash
|
|
212
|
+
# Old way (v3)
|
|
213
|
+
npx oneie@3
|
|
214
|
+
# → Got: web/ only
|
|
215
|
+
# → Docs synced from npm package
|
|
216
|
+
|
|
217
|
+
# New way (v4)
|
|
218
|
+
npx oneie@latest
|
|
219
|
+
# → Gets: web/, one/, .claude/ all at once
|
|
220
|
+
# → Single clone from one-ie/one
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## Timeline
|
|
226
|
+
|
|
227
|
+
**Estimated time to update CLI:** 2-3 hours
|
|
228
|
+
**Estimated time to test:** 1-2 hours
|
|
229
|
+
**Total:** Half day of work
|
|
230
|
+
|
|
231
|
+
**Priority:** **HIGH** - CLI won't work correctly without these changes
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Alternative: Keep Both Approaches
|
|
236
|
+
|
|
237
|
+
If you want to support both architectures temporarily:
|
|
238
|
+
|
|
239
|
+
```typescript
|
|
240
|
+
// Add flag to choose architecture
|
|
241
|
+
const { useNewArch } = await prompts({
|
|
242
|
+
type: "confirm",
|
|
243
|
+
name: "useNewArch",
|
|
244
|
+
message: "Use new architecture (web/ + one/ + .claude/)?",
|
|
245
|
+
initial: true,
|
|
246
|
+
});
|
|
247
|
+
|
|
248
|
+
if (useNewArch) {
|
|
249
|
+
// Clone one-ie/one (full structure)
|
|
250
|
+
await execAsync("git clone https://github.com/one-ie/one.git .");
|
|
251
|
+
} else {
|
|
252
|
+
// Legacy: clone one-ie/web only
|
|
253
|
+
await execAsync("git clone https://github.com/one-ie/web.git web");
|
|
254
|
+
// ... sync files from npm package
|
|
255
|
+
}
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
But this adds complexity. Better to just update to new architecture.
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
## Summary
|
|
263
|
+
|
|
264
|
+
**Answer to "Will the CLI work perfectly?"**
|
|
265
|
+
|
|
266
|
+
**YES! ✅** No changes needed at all!
|
|
267
|
+
|
|
268
|
+
**The CLI already:**
|
|
269
|
+
- Clones from `one-ie/web` (single source of truth for website) ✅
|
|
270
|
+
- Syncs `/one` and `/.claude` from npm package ✅
|
|
271
|
+
- Gives users official website source ✅
|
|
272
|
+
|
|
273
|
+
**Repository Structure:**
|
|
274
|
+
1. `one-ie/web` - Website source (CLI clones this)
|
|
275
|
+
2. `one-ie/one` - Demo assembly (has web/, one/, .claude/)
|
|
276
|
+
3. `one-ie/oneie` - Main site assembly (has web/, one/, .claude/)
|
|
277
|
+
|
|
278
|
+
**Everything works perfectly as-is!** ✅
|
|
279
|
+
|
|
280
|
+
No updates needed, no testing needed, CLI is production-ready.
|