oneie 3.3.6 → 3.4.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.
@@ -0,0 +1,432 @@
1
+ # /push - Smart Multi-Repository Push
2
+
3
+ **Purpose:** Intelligently commit and push changes to all ONE Platform repositories with contextual commit messages.
4
+
5
+ ## How It Works
6
+
7
+ This command analyzes changes across the monorepo and pushes to the appropriate repositories:
8
+ - `/web` → `github.com/one-ie/web`
9
+ - `/cli` → `github.com/one-ie/cli`
10
+ - `/one` → `github.com/one-ie/one-ontology`
11
+ - `/apps/one` → `github.com/one-ie/one` (assembly repository)
12
+
13
+ ## Your Task
14
+
15
+ When the user runs `/push`, you MUST:
16
+
17
+ ### Step 1: Analyze Changes
18
+
19
+ Run git status in each directory to understand what changed:
20
+
21
+ ```bash
22
+ # Check web changes
23
+ cd web && git status --short
24
+
25
+ # Check cli changes
26
+ cd cli && git status --short
27
+
28
+ # Check ontology changes
29
+ cd one && git status --short
30
+
31
+ # Check one assembly changes
32
+ cd apps/one && git status --short
33
+ ```
34
+
35
+ ### Step 2: Generate Contextual Commit Messages
36
+
37
+ Based on the changes detected, create commit messages following this structure:
38
+
39
+ **Format:**
40
+ ```
41
+ <type>: <short description>
42
+
43
+ <detailed explanation>
44
+
45
+ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
46
+
47
+ Co-Authored-By: Claude <noreply@anthropic.com>
48
+ ```
49
+
50
+ **Types:**
51
+ - `feat:` - New features or capabilities
52
+ - `fix:` - Bug fixes
53
+ - `docs:` - Documentation updates
54
+ - `style:` - UI/styling changes
55
+ - `refactor:` - Code refactoring without functional changes
56
+ - `test:` - Test additions or updates
57
+ - `chore:` - Maintenance tasks (dependency updates, config changes)
58
+ - `perf:` - Performance improvements
59
+ - `ci:` - CI/CD pipeline changes
60
+
61
+ ### Step 3: Push to Each Repository
62
+
63
+ For each repository with changes:
64
+
65
+ **Web Repository:**
66
+ ```bash
67
+ cd web
68
+ git add .
69
+ git commit -m "$(cat <<'EOF'
70
+ <type>: <description>
71
+
72
+ <detailed explanation of web-specific changes>
73
+
74
+ Changes:
75
+ - Updated component X with Y
76
+ - Fixed Z issue in page A
77
+ - Added new feature B
78
+
79
+ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
80
+
81
+ Co-Authored-By: Claude <noreply@anthropic.com>
82
+ EOF
83
+ )"
84
+ git push origin main
85
+ ```
86
+
87
+ **CLI Repository:**
88
+ ```bash
89
+ cd cli
90
+ git add .
91
+ git commit -m "$(cat <<'EOF'
92
+ <type>: <description>
93
+
94
+ <detailed explanation of CLI-specific changes>
95
+
96
+ Changes:
97
+ - Enhanced command X
98
+ - Fixed Y issue in Z
99
+ - Updated documentation
100
+
101
+ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
102
+
103
+ Co-Authored-By: Claude <noreply@anthropic.com>
104
+ EOF
105
+ )"
106
+ git push origin main
107
+ ```
108
+
109
+ **ONE Ontology Repository:**
110
+ ```bash
111
+ cd one
112
+ git add .
113
+ git commit -m "$(cat <<'EOF'
114
+ <type>: <description>
115
+
116
+ <detailed explanation of ontology documentation changes>
117
+
118
+ Changes:
119
+ - Updated dimension X documentation
120
+ - Added new ontology specification Y
121
+ - Enhanced knowledge base Z
122
+
123
+ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
124
+
125
+ Co-Authored-By: Claude <noreply@anthropic.com>
126
+ EOF
127
+ )"
128
+ git push origin main
129
+ ```
130
+
131
+ **One Assembly Repository:**
132
+ ```bash
133
+ cd apps/one
134
+ git add .
135
+ git commit -m "$(cat <<'EOF'
136
+ <type>: <description>
137
+
138
+ <detailed explanation of assembly changes>
139
+
140
+ Synced:
141
+ - Ontology documentation updates
142
+ - Web subtree changes
143
+ - CLI synchronization
144
+
145
+ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
146
+
147
+ Co-Authored-By: Claude <noreply@anthropic.com>
148
+ EOF
149
+ )"
150
+ git push origin main
151
+ ```
152
+
153
+ ### Step 4: Smart Message Generation
154
+
155
+ Analyze the actual file changes to craft meaningful messages:
156
+
157
+ **Example Analysis:**
158
+ ```bash
159
+ # For web changes
160
+ git diff --stat web/
161
+
162
+ # Look for patterns:
163
+ # - src/pages/*.astro → "page updates"
164
+ # - src/components/*.tsx → "component changes"
165
+ # - src/styles/*.css → "styling updates"
166
+ # - package.json → "dependency updates"
167
+ ```
168
+
169
+ **Example Smart Messages:**
170
+
171
+ ```
172
+ feat: add hierarchical group navigation to ontology page
173
+
174
+ Enhanced the ontology page with multi-level group visualization:
175
+ - Added parent-child group relationship display
176
+ - Implemented breadcrumb navigation for nested groups
177
+ - Created GroupHierarchy component with collapse/expand
178
+ - Updated styles for visual depth indicators
179
+
180
+ Technical Details:
181
+ - Uses recursive rendering for unlimited nesting
182
+ - Optimized for performance with React.memo
183
+ - Added accessibility support (ARIA labels)
184
+
185
+ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
186
+
187
+ Co-Authored-By: Claude <noreply@anthropic.com>
188
+ ```
189
+
190
+ ```
191
+ fix: resolve TypeScript errors in CLI init command
192
+
193
+ Fixed type errors preventing successful CLI builds:
194
+ - Added missing type annotations in init.ts:45
195
+ - Corrected InstallationConfig interface
196
+ - Fixed async/await usage in file creation
197
+ - Updated test mocks with proper types
198
+
199
+ Errors Resolved:
200
+ - TS2345: Argument type mismatch (3 instances)
201
+ - TS2322: Type assignment error (1 instance)
202
+ - TS7006: Implicit any parameter (2 instances)
203
+
204
+ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
205
+
206
+ Co-Authored-By: Claude <noreply@anthropic.com>
207
+ ```
208
+
209
+ ```
210
+ docs: update installation folder documentation
211
+
212
+ Comprehensive documentation updates for installation folders:
213
+ - Added architecture diagrams to CLAUDE.md
214
+ - Documented file resolution priority
215
+ - Created examples in README.md
216
+ - Updated CLI command reference
217
+
218
+ Files Updated:
219
+ - CLAUDE.md: Added "Installation Folders" section
220
+ - README.md: Added quick start guide
221
+ - cli/README.md: Documented init command
222
+ - one/knowledge/installation-folders.md: Full specification
223
+
224
+ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
225
+
226
+ Co-Authored-By: Claude <noreply@anthropic.com>
227
+ ```
228
+
229
+ ### Step 5: Report Summary
230
+
231
+ After pushing, provide a clear summary:
232
+
233
+ ```
234
+ ✅ Multi-Repository Push Complete!
235
+
236
+ 📦 Repositories Updated:
237
+ - web: feat: add hierarchical group navigation
238
+ → https://github.com/one-ie/web/commit/<hash>
239
+
240
+ - cli: fix: resolve TypeScript errors in init command
241
+ → https://github.com/one-ie/cli/commit/<hash>
242
+
243
+ - one: docs: update 6-dimension ontology specification
244
+ → https://github.com/one-ie/one-ontology/commit/<hash>
245
+
246
+ - apps/one: chore: sync assembly repository
247
+ → https://github.com/one-ie/one/commit/<hash>
248
+
249
+ 🔗 Total commits: 4
250
+ ⏱️ Time: ~30 seconds
251
+
252
+ Next Steps:
253
+ - Monitor CI/CD pipelines
254
+ - Review commit history on GitHub
255
+ - Check for any failed workflows
256
+ ```
257
+
258
+ ## Advanced Features
259
+
260
+ ### Selective Push
261
+
262
+ If only one repository has changes, only push that one:
263
+
264
+ ```bash
265
+ # User: /push web
266
+ # → Only push web repository
267
+
268
+ # User: /push cli one
269
+ # → Push both cli and one repositories
270
+ ```
271
+
272
+ ### Dry Run Mode
273
+
274
+ ```bash
275
+ # User: /push --dry-run
276
+ # → Show what would be committed/pushed without actually doing it
277
+ ```
278
+
279
+ ### Interactive Mode
280
+
281
+ ```bash
282
+ # User: /push --interactive
283
+ # → Review each commit message before pushing
284
+ ```
285
+
286
+ ## Important Guidelines
287
+
288
+ **DO:**
289
+ - ✅ Analyze actual file changes before writing messages
290
+ - ✅ Use conventional commit format
291
+ - ✅ Include specific details (file names, functions, issues)
292
+ - ✅ Group related changes logically
293
+ - ✅ Check git status before committing
294
+ - ✅ Verify push succeeded
295
+
296
+ **DON'T:**
297
+ - ❌ Use generic messages like "update files"
298
+ - ❌ Commit without reviewing changes first
299
+ - ❌ Push without verifying branch is correct
300
+ - ❌ Skip the signature footer
301
+ - ❌ Ignore git status warnings
302
+
303
+ ## Error Handling
304
+
305
+ ### If repository has no changes:
306
+ ```
307
+ ℹ️ web: No changes to commit (working tree clean)
308
+ ```
309
+
310
+ ### If push fails:
311
+ ```
312
+ ❌ cli: Push failed
313
+ Reason: rejected (non-fast-forward)
314
+
315
+ Suggested action:
316
+ - Pull latest changes: cd cli && git pull
317
+ - Resolve conflicts if any
318
+ - Retry push
319
+ ```
320
+
321
+ ### If uncommitted changes exist:
322
+ ```
323
+ ⚠️ one: Uncommitted changes detected
324
+
325
+ Modified files:
326
+ - one/knowledge/ontology.md
327
+ - CLAUDE.md
328
+
329
+ Action: Will commit these changes before pushing
330
+ ```
331
+
332
+ ## Pre-Commit Hooks
333
+
334
+ If pre-commit hooks are configured, respect them:
335
+
336
+ ```bash
337
+ # If hook fails
338
+ ⚠️ Pre-commit hook failed in web/
339
+
340
+ Issues found:
341
+ - Linting errors in src/pages/ontology.astro
342
+ - Type errors in src/components/GroupHierarchy.tsx
343
+
344
+ Fix these issues before pushing? [y/N]
345
+ ```
346
+
347
+ ## Examples
348
+
349
+ **Example 1: Push all repositories**
350
+ ```
351
+ User: /push
352
+
353
+ Analyzing changes...
354
+ ✓ web: 5 files modified
355
+ ✓ cli: 2 files modified
356
+ ✓ one: 3 files modified
357
+ ✓ apps/one: 12 files modified
358
+
359
+ Generating commit messages...
360
+ Pushing to GitHub...
361
+
362
+ ✅ Complete! 4 repositories updated.
363
+ ```
364
+
365
+ **Example 2: Push specific repository**
366
+ ```
367
+ User: /push cli
368
+
369
+ Analyzing changes...
370
+ ✓ cli: 2 files modified
371
+
372
+ Commit message:
373
+ feat: add --verbose flag to init command
374
+
375
+ Allows users to see detailed output during initialization...
376
+
377
+ Push to one-ie/cli? [Y/n] y
378
+
379
+ ✅ Pushed to github.com/one-ie/cli
380
+ ```
381
+
382
+ **Example 3: Dry run**
383
+ ```
384
+ User: /push --dry-run
385
+
386
+ Would commit and push:
387
+
388
+ 📦 web (5 files):
389
+ - src/pages/ontology.astro
390
+ - src/components/GroupHierarchy.tsx
391
+ - src/styles/groups.css
392
+ Message: "feat: add hierarchical group navigation"
393
+
394
+ 📦 cli (2 files):
395
+ - src/commands/init.ts
396
+ - test/commands/init.test.ts
397
+ Message: "fix: resolve TypeScript errors in init command"
398
+
399
+ 📦 one (3 files):
400
+ - connections/ontology.md
401
+ - knowledge/architecture.md
402
+ - things/specifications/groups.md
403
+ Message: "docs: update 6-dimension ontology specification"
404
+
405
+ 📦 apps/one (12 files):
406
+ - Synced from root repositories
407
+ Message: "chore: sync assembly repository with latest changes"
408
+
409
+ 🔍 Dry run mode - nothing was actually pushed
410
+ ```
411
+
412
+ ## Security Considerations
413
+
414
+ - **Never commit secrets** (API keys, tokens, passwords)
415
+ - **Check .env files** are gitignored
416
+ - **Verify branch** before pushing (should be main or feature branch)
417
+ - **Review sensitive data** in commit diffs
418
+
419
+ ## Integration with /release
420
+
421
+ The `/push` command is complementary to `/release`:
422
+ - Use `/push` for regular development commits
423
+ - Use `/release` for versioned releases with deployment
424
+
425
+ ```
426
+ Development workflow:
427
+ /push → /push → /push → /release patch → /push
428
+ ```
429
+
430
+ ---
431
+
432
+ **Smart commits across all repositories with one command! 🚀**
@@ -1,4 +1,4 @@
1
- export declare function cloneFrontend(orgProfile: {
1
+ export declare function cloneWeb(orgProfile: {
2
2
  name: string;
3
3
  slug: string;
4
4
  domain: string;
@@ -9,4 +9,4 @@ export declare function cloneFrontend(orgProfile: {
9
9
  cloned: boolean;
10
10
  alreadyExists?: undefined;
11
11
  }>;
12
- //# sourceMappingURL=clone-frontend.d.ts.map
12
+ //# sourceMappingURL=clone-web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clone-web.d.ts","sourceRoot":"","sources":["../src/clone-web.ts"],"names":[],"mappings":"AAOA,wBAAsB,QAAQ,CAAC,UAAU,EAAE;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;;;;;;GAqDA"}
@@ -3,19 +3,19 @@ import { promisify } from "util";
3
3
  import fs from "fs/promises";
4
4
  import path from "path";
5
5
  const execAsync = promisify(exec);
6
- export async function cloneFrontend(orgProfile) {
7
- const targetDir = path.join(process.cwd(), "frontend");
8
- // Check if frontend already exists
6
+ export async function cloneWeb(orgProfile) {
7
+ const targetDir = path.join(process.cwd(), "web");
8
+ // Check if web already exists
9
9
  if (await fs.stat(targetDir).catch(() => null)) {
10
- console.log("⚠️ Frontend directory already exists, skipping clone");
10
+ console.log("⚠️ Web directory already exists, skipping clone");
11
11
  return { alreadyExists: true };
12
12
  }
13
13
  // Clone repository
14
- console.log("Cloning frontend repository...");
15
- await execAsync("git clone https://github.com/one-ie/frontend.git frontend", {
14
+ console.log("Cloning web repository...");
15
+ await execAsync("git clone https://github.com/one-ie/web.git web", {
16
16
  cwd: process.cwd(),
17
17
  });
18
- console.log("✓ Cloned frontend repository");
18
+ console.log("✓ Cloned web repository");
19
19
  // Install dependencies
20
20
  console.log("Installing dependencies...");
21
21
  await execAsync("bun install", { cwd: targetDir });
@@ -47,4 +47,4 @@ GOOGLE_CLIENT_SECRET=
47
47
  console.log("✓ Created .env.local");
48
48
  return { cloned: true };
49
49
  }
50
- //# sourceMappingURL=clone-frontend.js.map
50
+ //# sourceMappingURL=clone-web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clone-web.js","sourceRoot":"","sources":["../src/clone-web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACjC,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;AAElC,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,UAI9B;IACC,M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  import { copyClaudeConfig } from "./copy-claude-config.js";
8
8
  import { createUserProfile } from "./create-user-profile.js";
9
9
  import { createOrgProfile } from "./create-org-profile.js";
10
- import { cloneFrontend } from "./clone-frontend.js";
10
+ import { cloneWeb } from "./clone-web.js";
11
11
  import { cloneThirdPartyDocs } from "./clone-docs.js";
12
12
  import { displayBanner } from "./banner.js";
13
13
  import { runInit } from "./commands/init.js";
@@ -116,19 +116,19 @@ async function runFullSetup() {
116
116
  initial: true,
117
117
  });
118
118
  if (buildWebsite) {
119
- spinner = ora("Cloning frontend repository...").start();
120
- const frontendResult = await cloneFrontend({
119
+ spinner = ora("Cloning web repository...").start();
120
+ const webResult = await cloneWeb({
121
121
  name: orgAnswers.name,
122
122
  slug: slug,
123
123
  domain: domain,
124
124
  });
125
- if (frontendResult.alreadyExists) {
126
- spinner.warn("Frontend directory already exists");
125
+ if (webResult.alreadyExists) {
126
+ spinner.warn("Web directory already exists");
127
127
  }
128
128
  else {
129
- spinner.succeed("Cloned and configured frontend");
129
+ spinner.succeed("Cloned and configured web");
130
130
  console.log(chalk.gray("\nYour website is ready at: http://localhost:4321"));
131
- console.log(chalk.gray("Run: cd frontend && bun run dev\n"));
131
+ console.log(chalk.gray("Run: cd web && bun run dev\n"));
132
132
  }
133
133
  }
134
134
  // Step 6: Third-party docs (optional)
@@ -151,7 +151,7 @@ async function runFullSetup() {
151
151
  console.log(chalk.cyan("📁 Project Structure:"));
152
152
  console.log(" /one/ → 6-dimension ontology (100+ files)");
153
153
  if (buildWebsite) {
154
- console.log(" /frontend/ → Astro + React website");
154
+ console.log(" /web/ → Astro + React website");
155
155
  }
156
156
  if (cloneDocs) {
157
157
  console.log(" /docs/ → Third-party documentation");
@@ -172,7 +172,7 @@ async function runFullSetup() {
172
172
  console.log(chalk.bold("🚀 Next Steps:\n"));
173
173
  if (buildWebsite) {
174
174
  console.log("1. Start building:");
175
- console.log(chalk.gray(" cd frontend && bun run dev\n"));
175
+ console.log(chalk.gray(" cd web && bun run dev\n"));
176
176
  }
177
177
  console.log("2. Use AI agents:");
178
178
  console.log(chalk.gray(" claude\n"));
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,KAAK,UAAU,IAAI;IACjB,mCAAmC;IACnC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAEnC,wBAAwB;IACxB,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,MAAM,EAAE,CAAC;QACvB,MAAM,OAAO,EAAE,CAAC;QAChB,OAAO;IACT,CAAC;IAED,0BAA0B;IAC1B,MAAM,YAAY,EAAE,CAAC;AACvB,CAAC;AAED,KAAK,UAAU,YAAY;IACzB,yBAAyB;IACzB,aAAa,EAAE,CAAC;IAEhB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC,CAAC;IAC1D,OAAO,CAAC,GAAG,CACT,gEAAgE,CACjE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,CAAC,CAAC;IACjC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;IACvC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;IACjC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,CAAC,CAAC,CAAC;IAC9D,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;IAC7C,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IAErC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC;AACxD,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACtD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
package/folders.yaml CHANGED
@@ -87,6 +87,6 @@ exclude_patterns:
87
87
  deployment:
88
88
  github_repo: one-ie/one
89
89
  npm_package: oneie
90
- version: 3.3.6
90
+ version: 3.4.0
91
91
  homepage: https://one.ie
92
92
  license_url: https://one.ie/free-license
@@ -22,7 +22,7 @@
22
22
  ## ✨ Get Started
23
23
 
24
24
  ```bash
25
- npx oneie init
25
+ npx oneie
26
26
  ```
27
27
 
28
28
  That's it. Your complete ontology-driven platform is ready.
@@ -34,7 +34,7 @@ That's it. Your complete ontology-driven platform is ready.
34
34
  The ONE CLI creates **living, ontology-driven codebases** with installation folder architecture for multi-tenancy:
35
35
 
36
36
  ```
37
- npx oneie init
37
+ npx oneie
38
38
  ↓
39
39
  Global Ontology + Installation Folder + Web App + Backend → Ready!
40
40
  ```
@@ -132,73 +132,136 @@ Global Ontology + Installation Folder + Web App + Backend → Ready!
132
132
 
133
133
  ## Usage
134
134
 
135
- ### Bootstrap New Installation
135
+ ### Bootstrap New Project (First-Time Setup)
136
136
 
137
137
  ```bash
138
- npx oneie init
138
+ npx oneie
139
139
  ```
140
140
 
141
- **Interactive prompts:**
141
+ **Full interactive setup with web app and backend:**
142
142
 
143
143
  ```
144
- ✨ Welcome to ONE!
144
+ ✨ Welcome to ONE Platform!
145
+
146
+ Let's set up your environment with the 6-dimension ontology.
147
+
148
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
149
+
150
+ 🧑 Step 1: Tell us about yourself
151
+
152
+ What's your full name? Anthony O'Connell
153
+ What's your email? anthony@one.ie
154
+
155
+ ✓ Created your profile in one/people/anthony-o-connell.md
156
+
157
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
158
+
159
+ 🏢 Step 2: Organization Setup
145
160
 
146
- ONE is organized by groups which have their own people, things,
147
- connections, events, and knowledge. Groups can have subgroups.
161
+ What's your organization name? Acme Corp
162
+ What's your organization website? acme.com
163
+
164
+ ✓ Created organization profile
148
165
 
149
166
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
150
167
 
151
- 📥 Downloading ONE Framework...
168
+ 📚 Step 3: Syncing ONE Ontology
152
169
 
153
170
  ✓ Copied 100+ ontology files from /one/
154
171
  ✓ Synced 12 agent definitions to .claude/agents/
155
- ✓ Copied Claude Code hooks and commands
156
-
157
- ONE Setup Complete! 🎉
172
+ ✓ Synced .claude/hooks/ and .claude/commands/
158
173
 
159
174
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
160
175
 
161
- 👤 Account Setup
176
+ 🌐 Step 4: Website Setup
162
177
 
163
- What's your name? Anthony O'Connell
164
- What's your email? anthony@one.ie
178
+ Would you like to build a website? Yes
165
179
 
166
- ✓ Created your profile in one/people/anthony-o-connell.md
180
+ ✓ Cloning web repository...
181
+ ✓ Installing dependencies...
182
+ ✓ Created .env.local
167
183
 
168
- Account Setup Complete! 🎉
184
+ Your website is ready at: http://localhost:4321
185
+ Run: cd web && bun run dev
169
186
 
170
187
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
171
188
 
172
- 🏢 Organization Setup
189
+ 📖 Step 5: Third-Party Documentation
173
190
 
174
- What's your organization name? Acme Corp
175
- Installation identifier: acme
176
- Domain: acme.com
177
-
178
- Creating your installation folder...
179
- ✓ /acme/groups/
180
- ✓ /acme/people/
181
- ✓ /acme/things/
182
- ✓ /acme/connections/
183
- ✓ /acme/events/
184
- ✓ /acme/knowledge/
185
-
186
- ✓ Created installation README
187
- ✓ Updated .env.local with INSTALLATION_NAME=acme
191
+ Would you like to clone third-party docs for AI context? Yes
188
192
 
189
- Organization Setup Complete! 🎉
193
+ ✓ Cloned 3 documentation repositories
190
194
 
191
195
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
192
196
 
193
- 🌐 Next: Create Your First Group
197
+ ✅ Setup Complete!
194
198
 
195
- Visit your web app to create groups in the database:
196
- cd web && bun run dev
199
+ 📁 Project Structure:
200
+ /one/ → 6-dimension ontology (100+ files)
201
+ /web/ → Astro + React website
202
+ /docs/ → Third-party documentation
203
+ /.claude/ → AI agent integration
197
204
 
198
- Then run this to generate group documentation:
199
- npx oneie create-group-docs
205
+ 🚀 Next Steps:
200
206
 
201
- You're all set! 🚀
207
+ 1. Start building:
208
+ cd web && bun run dev
209
+
210
+ 2. Use AI agents:
211
+ claude
212
+
213
+ 3. Read the docs:
214
+ cat one/knowledge/ontology.md
215
+
216
+ 4. Create your first feature:
217
+ /one
218
+
219
+ Happy building! 🎉
220
+ ```
221
+
222
+ ### Add Installation Folder to Existing Project
223
+
224
+ ```bash
225
+ npx oneie init
226
+ ```
227
+
228
+ **Installation folder setup only (no web cloning):**
229
+
230
+ ```
231
+ ✨ Initialize Installation Folder
232
+
233
+ What is your organization name? Acme Corp
234
+ Installation identifier (lowercase, hyphens only): acme
235
+ Exclude /acme/ from git? Yes
236
+
237
+ ✓ Created installation folder: /acme
238
+ ✓ Created 6 ontology subdirectories
239
+ - /groups/
240
+ - /people/
241
+ - /things/
242
+ - /connections/
243
+ - /events/
244
+ - /knowledge/
245
+ ✓ Created README.md
246
+ ✓ Updated .env.local with INSTALLATION_NAME=acme
247
+ ✓ Updated .gitignore to exclude /acme/
248
+
249
+ 🎉 Installation initialized!
250
+
251
+ 📁 Your installation folder:
252
+ /acme/
253
+
254
+ 🔧 Configuration:
255
+ Organization: Acme Corp
256
+ Identifier: acme
257
+ Git: excluded
258
+
259
+ 📝 Next steps:
260
+
261
+ 1. Create your first group in the database (via web UI)
262
+ 2. Add group-specific docs: /acme/groups/<group-slug>/
263
+ 3. Override global templates: /acme/<dimension>/
264
+ 4. Read the README: cat acme/README.md
202
265
  ```
203
266
 
204
267
  **Generated structure:**
@@ -370,26 +433,60 @@ tests/unit/services/token-purchase.test.ts # Tests
370
433
 
371
434
  ## Command Reference
372
435
 
436
+ ### `npx oneie`
437
+
438
+ **Full project bootstrap** - Initialize new ONE project with complete setup.
439
+
440
+ ```bash
441
+ npx oneie
442
+ ```
443
+
444
+ **What it does:**
445
+ 1. Prompts for user profile (name, email)
446
+ 2. Prompts for organization (name, website)
447
+ 3. Syncs global ontology (`/one/`)
448
+ 4. Syncs AI agent definitions (`.claude/`)
449
+ 5. Optionally clones web repository (`/web/`)
450
+ 6. Optionally clones third-party docs (`/docs/`)
451
+
452
+ **Creates:**
453
+ - `/one/` - Global ontology (100+ files)
454
+ - `/web/` - Astro 5 + React 19 application
455
+ - `/docs/` - Third-party documentation (optional)
456
+ - `.claude/` - AI configuration
457
+ - User profile in `one/people/`
458
+ - Organization profile in `one/people/`
459
+
460
+ **Use this for:** First-time setup, new projects
461
+
462
+ ---
463
+
373
464
  ### `npx oneie init`
374
465
 
375
- Initialize new ONE installation with installation folder architecture.
466
+ **Installation folder only** - Add installation folder to existing project.
376
467
 
377
468
  ```bash
378
469
  npx oneie init
379
470
  ```
380
471
 
381
- **Prompts for:**
382
- - User name and email
383
- - Organization name and domain
384
- - Installation identifier
472
+ **What it does:**
473
+ 1. Prompts for organization name
474
+ 2. Prompts for installation identifier (e.g., "acme")
475
+ 3. Creates installation folder structure
476
+ 4. Updates `.env.local` with `INSTALLATION_NAME`
477
+ 5. Optionally updates `.gitignore`
385
478
 
386
479
  **Creates:**
387
- - `/one/` - Global ontology
388
480
  - `/<installation-name>/` - Installation folder
389
- - `/web/` - Web application
390
- - `/backend/` - Convex backend
391
- - `.claude/` - AI configuration
392
- - `.env.local` - Environment variables
481
+ - `groups/` - Hierarchical group docs
482
+ - `people/` - People profiles
483
+ - `things/` - Custom entities
484
+ - `connections/` - Custom relationships
485
+ - `events/` - Custom events
486
+ - `knowledge/` - Custom knowledge
487
+ - `.env.local` - Updated with installation name
488
+
489
+ **Use this for:** Existing projects, adding multi-tenancy
393
490
 
394
491
  ---
395
492
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oneie",
3
- "version": "3.3.6",
3
+ "version": "3.4.0",
4
4
  "type": "module",
5
5
  "description": "Build apps, websites, and AI agents in English. Download to your computer, run in the cloud, deploy to the edge. Open source and free forever.",
6
6
  "bin": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"clone-frontend.d.ts","sourceRoot":"","sources":["../src/clone-frontend.ts"],"names":[],"mappings":"AAOA,wBAAsB,aAAa,CAAC,UAAU,EAAE;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;;;;;;GAqDA"}
@@ -1 +0,0 @@
1
- {"version":3,"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