oneie 1.5.4 ā 1.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/engineering-developer.md +154 -34
- package/.claude/agents/engineering-product-manager.md +147 -18
- package/.claude/agents/engineering-quality-assurance.md +155 -35
- package/.claude/agents/engineering-user-experience.md +154 -34
- package/bin/folders.yaml +52 -0
- package/bin/oneie/index.js +122 -912
- package/one/stories/story-1.6-engineering-agents-cascade-integration.md +4 -4
- package/package.json +2 -9
- package/bin/create-turbo.js +0 -816
- package/bin/install.js +0 -354
package/bin/install.js
DELETED
|
@@ -1,354 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import path from 'path';
|
|
4
|
-
import fs from 'fs-extra';
|
|
5
|
-
import chalk from 'chalk';
|
|
6
|
-
import ora from 'ora';
|
|
7
|
-
import figlet from 'figlet';
|
|
8
|
-
import { fileURLToPath } from 'url';
|
|
9
|
-
import { program } from 'commander';
|
|
10
|
-
|
|
11
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
12
|
-
const __dirname = path.dirname(__filename);
|
|
13
|
-
|
|
14
|
-
// Get version from package.json
|
|
15
|
-
const packageJson = JSON.parse(
|
|
16
|
-
await fs.readFile(path.join(__dirname, '../package.json'), 'utf8')
|
|
17
|
-
);
|
|
18
|
-
const ONE_VERSION = packageJson.version;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Enhanced ONE installer with Mission-3 Turbo Repo capabilities
|
|
22
|
-
* Supports: Original install | Create turbo repo | Add turbo to project
|
|
23
|
-
*/
|
|
24
|
-
async function main() {
|
|
25
|
-
// Parse command arguments for routing
|
|
26
|
-
const args = process.argv.slice(2);
|
|
27
|
-
|
|
28
|
-
// Command Router - Mission-3 Enhancement
|
|
29
|
-
if (args[0] === 'create') {
|
|
30
|
-
// Mission-3: Turbo repo generation
|
|
31
|
-
const { createTurboRepo } = await import('./create-turbo.js');
|
|
32
|
-
return createTurboRepo(args.slice(1));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
if (args[0] === 'init' && args.includes('--turbo')) {
|
|
36
|
-
// Mission-3: Add turbo to existing project
|
|
37
|
-
const { initTurbo } = await import('./init-turbo.js');
|
|
38
|
-
return initTurbo();
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
if (args[0] === 'deploy') {
|
|
42
|
-
// Mission-3: Deployment automation
|
|
43
|
-
const { deployProject } = await import('./deploy.js');
|
|
44
|
-
return deployProject(args.slice(1));
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// Show help if requested
|
|
48
|
-
if (args.includes('--help') || args.includes('-h')) {
|
|
49
|
-
showHelp();
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// Show version if requested
|
|
54
|
-
if (args.includes('--version') || args.includes('-v')) {
|
|
55
|
-
console.log(`oneie v${ONE_VERSION}`);
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// Default: Original ONE installation flow
|
|
60
|
-
await runOriginalInstaller();
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Show help message with all available commands
|
|
65
|
-
*/
|
|
66
|
-
function showHelp() {
|
|
67
|
-
console.log(chalk.cyan(figlet.textSync('ONE', { font: 'ANSI Shadow' })));
|
|
68
|
-
console.log(chalk.white(`
|
|
69
|
-
${chalk.bold('ONE Universal AI System')} v${ONE_VERSION}
|
|
70
|
-
${chalk.gray('Simple blocks. Infinite possibilities.')}
|
|
71
|
-
|
|
72
|
-
${chalk.yellow('Usage:')}
|
|
73
|
-
${chalk.cyan('npx oneie')} Install ONE AI System (original)
|
|
74
|
-
${chalk.cyan('npx oneie create <name>')} Create turbo-powered app ${chalk.green('(NEW!)')}
|
|
75
|
-
${chalk.cyan('npx oneie init --turbo')} Add turbo to existing project
|
|
76
|
-
${chalk.cyan('npx oneie deploy')} Deploy to production
|
|
77
|
-
|
|
78
|
-
${chalk.yellow('Create Options:')}
|
|
79
|
-
${chalk.gray('--template <type>')} Choose template (astro, nextjs, portfolio)
|
|
80
|
-
${chalk.gray('--brand <logo>')} Apply branding from logo
|
|
81
|
-
${chalk.gray('--deploy <platform>')} Setup deployment (vercel, cloudflare, netlify)
|
|
82
|
-
${chalk.gray('--ai <agents>')} Include AI agents (marketing, dev, support)
|
|
83
|
-
|
|
84
|
-
${chalk.yellow('Examples:')}
|
|
85
|
-
${chalk.gray('# Original ONE installation')}
|
|
86
|
-
${chalk.green('npx oneie')}
|
|
87
|
-
|
|
88
|
-
${chalk.gray('# Create Astro marketing site')}
|
|
89
|
-
${chalk.green('npx oneie create my-site --template astro')}
|
|
90
|
-
|
|
91
|
-
${chalk.gray('# Create Next.js SaaS with deployment')}
|
|
92
|
-
${chalk.green('npx oneie create my-saas --template nextjs --deploy vercel')}
|
|
93
|
-
|
|
94
|
-
${chalk.gray('# Add turbo to existing project')}
|
|
95
|
-
${chalk.green('npx oneie init --turbo')}
|
|
96
|
-
|
|
97
|
-
${chalk.yellow('Resources:')}
|
|
98
|
-
${chalk.gray('Documentation:')} https://one.ie/docs
|
|
99
|
-
${chalk.gray('Templates:')} https://one.ie/templates
|
|
100
|
-
${chalk.gray('Discord:')} https://discord.gg/one
|
|
101
|
-
${chalk.gray('GitHub:')} https://github.com/one-ie/one
|
|
102
|
-
`));
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Original ONE installer (preserved for backward compatibility)
|
|
107
|
-
*/
|
|
108
|
-
async function runOriginalInstaller() {
|
|
109
|
-
try {
|
|
110
|
-
console.clear();
|
|
111
|
-
|
|
112
|
-
// 1. Welcome & System Check
|
|
113
|
-
await showWelcome();
|
|
114
|
-
const context = await detectEnvironment();
|
|
115
|
-
|
|
116
|
-
// Check if user wants turbo features
|
|
117
|
-
if (context.hasPackageJson && !context.hasTurbo) {
|
|
118
|
-
const wantsTurbo = await askAboutTurbo();
|
|
119
|
-
if (wantsTurbo) {
|
|
120
|
-
const { initTurbo } = await import('./init-turbo.js');
|
|
121
|
-
return initTurbo();
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// 2. Core Installation
|
|
126
|
-
const spinner = ora('Installing ONE Universal AI System...').start();
|
|
127
|
-
|
|
128
|
-
await sleep(1000);
|
|
129
|
-
spinner.text = 'Creating AI universe structure...';
|
|
130
|
-
await createCoreStructure(context);
|
|
131
|
-
|
|
132
|
-
await sleep(500);
|
|
133
|
-
spinner.text = 'Generating your digital DNA (me.md)...';
|
|
134
|
-
await generateMeFile(context);
|
|
135
|
-
|
|
136
|
-
await sleep(500);
|
|
137
|
-
spinner.text = 'Setting up command interface...';
|
|
138
|
-
await setupCommandInterface();
|
|
139
|
-
|
|
140
|
-
await sleep(500);
|
|
141
|
-
spinner.text = 'Validating installation...';
|
|
142
|
-
const validation = await validateInstallation();
|
|
143
|
-
|
|
144
|
-
spinner.succeed('ONE installed successfully!');
|
|
145
|
-
|
|
146
|
-
// 3. Success & Next Steps
|
|
147
|
-
await showSuccessMessage(context, validation);
|
|
148
|
-
|
|
149
|
-
} catch (error) {
|
|
150
|
-
console.error(chalk.red('\nš„ Installation failed:'), error.message);
|
|
151
|
-
process.exit(1);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Show welcome message with Mission-3 enhancements
|
|
157
|
-
*/
|
|
158
|
-
async function showWelcome() {
|
|
159
|
-
const title = figlet.textSync('ONE', { font: 'ANSI Shadow' });
|
|
160
|
-
console.log(chalk.cyan(title));
|
|
161
|
-
console.log(chalk.cyan(`
|
|
162
|
-
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
|
|
163
|
-
ā ā
|
|
164
|
-
ā š ONE Universal AI System v${ONE_VERSION.padEnd(35)}ā
|
|
165
|
-
ā Simple blocks. Infinite possibilities. ā
|
|
166
|
-
ā ā
|
|
167
|
-
ā ${chalk.green('NEW!')} Create turbo-powered apps with: ${chalk.yellow('npx oneie create')} ā
|
|
168
|
-
ā ā
|
|
169
|
-
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
|
|
170
|
-
`));
|
|
171
|
-
|
|
172
|
-
console.log(chalk.yellow('š Detecting your environment...'));
|
|
173
|
-
await sleep(1500);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Detect user environment and context
|
|
178
|
-
*/
|
|
179
|
-
async function detectEnvironment() {
|
|
180
|
-
const cwd = process.cwd();
|
|
181
|
-
const context = {
|
|
182
|
-
directory: path.basename(cwd),
|
|
183
|
-
hasPackageJson: await fs.pathExists(path.join(cwd, 'package.json')),
|
|
184
|
-
hasTurbo: await fs.pathExists(path.join(cwd, 'turbo.json')),
|
|
185
|
-
hasGit: await fs.pathExists(path.join(cwd, '.git')),
|
|
186
|
-
nodeVersion: process.version,
|
|
187
|
-
platform: process.platform,
|
|
188
|
-
type: 'universal'
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
// Detect project type
|
|
192
|
-
if (context.directory.includes('school') || context.directory.includes('homework')) {
|
|
193
|
-
context.type = 'student';
|
|
194
|
-
} else if (context.hasPackageJson) {
|
|
195
|
-
context.type = 'professional';
|
|
196
|
-
} else if (context.directory.includes('startup') || context.directory.includes('business')) {
|
|
197
|
-
context.type = 'business';
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
console.log(chalk.green(`ā
Detected: ${context.type} environment in "${context.directory}"`));
|
|
201
|
-
|
|
202
|
-
// Show turbo suggestion for existing projects
|
|
203
|
-
if (context.hasPackageJson && !context.hasTurbo) {
|
|
204
|
-
console.log(chalk.yellow('š” Tip: This project could benefit from turbo! Run: npx oneie init --turbo'));
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
return context;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Ask user if they want turbo features
|
|
212
|
-
*/
|
|
213
|
-
async function askAboutTurbo() {
|
|
214
|
-
// Simple prompt implementation (replace with inquirer in production)
|
|
215
|
-
console.log(chalk.yellow('\nš This project could be turbo-powered!'));
|
|
216
|
-
console.log(chalk.gray('Add turbo for faster builds and better monorepo support?'));
|
|
217
|
-
console.log(chalk.gray('Run: npx oneie init --turbo'));
|
|
218
|
-
return false; // For now, don't auto-prompt
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Create core ONE directory structure
|
|
223
|
-
*/
|
|
224
|
-
async function createCoreStructure(context) {
|
|
225
|
-
const dirs = [
|
|
226
|
-
'one',
|
|
227
|
-
'one/me',
|
|
228
|
-
'one/missions',
|
|
229
|
-
'one/stories',
|
|
230
|
-
'one/tasks',
|
|
231
|
-
'one/agents',
|
|
232
|
-
'one/teams',
|
|
233
|
-
'one/workflows',
|
|
234
|
-
'.one',
|
|
235
|
-
'.one/system'
|
|
236
|
-
];
|
|
237
|
-
|
|
238
|
-
for (const dir of dirs) {
|
|
239
|
-
await fs.ensureDir(dir);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Generate personalized me.md file
|
|
245
|
-
*/
|
|
246
|
-
async function generateMeFile(context) {
|
|
247
|
-
const meContent = `# Me - My Digital DNA
|
|
248
|
-
|
|
249
|
-
## š Who I Am
|
|
250
|
-
**Name:** [Your name]
|
|
251
|
-
**Role:** ${context.type === 'student' ? 'Student' : context.type === 'business' ? 'Entrepreneur' : 'Developer'}
|
|
252
|
-
**Vision:** [What you want to achieve]
|
|
253
|
-
|
|
254
|
-
## šÆ My Goals
|
|
255
|
-
1. [Primary goal]
|
|
256
|
-
2. [Secondary goal]
|
|
257
|
-
3. [Long-term vision]
|
|
258
|
-
|
|
259
|
-
## š¤ My AI Team Preferences
|
|
260
|
-
- **Favorite Agents:** [marketing, dev, design]
|
|
261
|
-
- **Communication Style:** [formal, casual, creative]
|
|
262
|
-
- **Workflow Preference:** [structured, flexible, adaptive]
|
|
263
|
-
|
|
264
|
-
## š Current Focus
|
|
265
|
-
**Active Mission:** [What you're working on]
|
|
266
|
-
**Priority:** [What matters most]
|
|
267
|
-
**Timeline:** [Your deadlines]
|
|
268
|
-
|
|
269
|
-
---
|
|
270
|
-
*Edit this file to customize your AI universe*
|
|
271
|
-
*Then run: me generate*
|
|
272
|
-
`;
|
|
273
|
-
|
|
274
|
-
await fs.writeFile('one/me/me.md', meContent);
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* Setup command interface scripts
|
|
279
|
-
*/
|
|
280
|
-
async function setupCommandInterface() {
|
|
281
|
-
const commandScript = `#!/usr/bin/env node
|
|
282
|
-
// ONE Command Interface
|
|
283
|
-
console.log('šÆ ONE Command Interface');
|
|
284
|
-
console.log('Run: /one to launch mission control');
|
|
285
|
-
`;
|
|
286
|
-
|
|
287
|
-
await fs.writeFile('.one/one-command.js', commandScript);
|
|
288
|
-
await fs.chmod('.one/one-command.js', '755');
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Validate installation
|
|
293
|
-
*/
|
|
294
|
-
async function validateInstallation() {
|
|
295
|
-
const checks = {
|
|
296
|
-
directories: await fs.pathExists('one'),
|
|
297
|
-
meFile: await fs.pathExists('one/me/me.md'),
|
|
298
|
-
system: await fs.pathExists('.one/system'),
|
|
299
|
-
commands: await fs.pathExists('.one/one-command.js')
|
|
300
|
-
};
|
|
301
|
-
|
|
302
|
-
return Object.values(checks).every(check => check);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* Show success message with next steps
|
|
307
|
-
*/
|
|
308
|
-
async function showSuccessMessage(context, validation) {
|
|
309
|
-
console.log(chalk.green(`
|
|
310
|
-
š Installation Complete!
|
|
311
|
-
|
|
312
|
-
š Installation Summary:
|
|
313
|
-
ā
ONE directory
|
|
314
|
-
ā
System directory
|
|
315
|
-
ā
Me file
|
|
316
|
-
ā
Command interface
|
|
317
|
-
|
|
318
|
-
š Next Steps:
|
|
319
|
-
1. šÆ Edit your goals in: ${chalk.cyan('one/me/me.md')}
|
|
320
|
-
2. š Create your first mission
|
|
321
|
-
3. š¤ Your AI team is ready to help
|
|
322
|
-
|
|
323
|
-
š” Key Files:
|
|
324
|
-
š Your DNA: ${chalk.cyan('one/me/me.md')}
|
|
325
|
-
šÆ Missions: ${chalk.cyan('one/missions/')}
|
|
326
|
-
š Stories: ${chalk.cyan('one/stories/')}
|
|
327
|
-
š¤ Agents: ${chalk.cyan('one/agents/')}
|
|
328
|
-
|
|
329
|
-
⨠Your AI universe is ready!
|
|
330
|
-
|
|
331
|
-
š® Ready to start? Try these commands:
|
|
332
|
-
${chalk.yellow('me validate')} # Validate your me.md configuration
|
|
333
|
-
${chalk.yellow('me generate')} # Generate your universe from me.md
|
|
334
|
-
${chalk.yellow('node .one/one-command.js')} # Launch mission control dashboard
|
|
335
|
-
|
|
336
|
-
${chalk.green.bold('š NEW!')} Create a turbo-powered app:
|
|
337
|
-
${chalk.yellow('npx oneie create my-app')} # Interactive app creation
|
|
338
|
-
|
|
339
|
-
š” Pro tip: Edit ${chalk.cyan('one/me/me.md')} to customize your AI universe, then run "${chalk.yellow('me generate')}"
|
|
340
|
-
`));
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* Utility sleep function
|
|
345
|
-
*/
|
|
346
|
-
function sleep(ms) {
|
|
347
|
-
return new Promise(resolve => setTimeout(resolve, ms));
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
// Run the main function
|
|
351
|
-
main().catch(error => {
|
|
352
|
-
console.error(chalk.red('Fatal error:'), error);
|
|
353
|
-
process.exit(1);
|
|
354
|
-
});
|