oneie 1.3.4 → 1.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.
- package/bin/oneie/index.js +733 -64
- package/package.json +1 -1
package/bin/oneie/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* ONE Universal Access System - npx oneie
|
|
5
|
-
*
|
|
5
|
+
* Complete ecosystem installation with 112+ AI agents, workflows, templates, and checklists
|
|
6
6
|
*
|
|
7
|
-
* @author Engineering Developer + Engineering Quality Assurance
|
|
8
|
-
* @task Story-2.2.
|
|
7
|
+
* @author Engineering Developer + Engineering Quality Assurance + Builder Agent
|
|
8
|
+
* @task Story-2.2.3: Complete Ecosystem Delivery
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import fs from 'fs-extra';
|
|
@@ -13,31 +13,22 @@ import path from 'path';
|
|
|
13
13
|
import { execSync } from 'child_process';
|
|
14
14
|
import chalk from 'chalk';
|
|
15
15
|
import figlet from 'figlet';
|
|
16
|
+
import { fileURLToPath } from 'url';
|
|
17
|
+
|
|
18
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
19
|
+
const __dirname = path.dirname(__filename);
|
|
16
20
|
|
|
17
21
|
class OneIECLI {
|
|
18
22
|
constructor() {
|
|
19
|
-
this.version = '1.
|
|
20
|
-
this.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
description: 'Modern Next.js application with TypeScript and Tailwind',
|
|
29
|
-
path: 'next-app-template.yaml'
|
|
30
|
-
},
|
|
31
|
-
'node-package': {
|
|
32
|
-
name: 'Node.js Package',
|
|
33
|
-
description: 'Node.js package with TypeScript and testing setup',
|
|
34
|
-
path: 'node-package-template.yaml'
|
|
35
|
-
},
|
|
36
|
-
'full-stack': {
|
|
37
|
-
name: 'Full Stack Application',
|
|
38
|
-
description: 'Complete full-stack application with database and API',
|
|
39
|
-
path: 'full-stack-template.yaml'
|
|
40
|
-
}
|
|
23
|
+
this.version = '1.3.4';
|
|
24
|
+
this.sourceDir = path.resolve(__dirname, '../..');
|
|
25
|
+
this.stats = {
|
|
26
|
+
agents: 0,
|
|
27
|
+
commands: 0,
|
|
28
|
+
templates: 0,
|
|
29
|
+
workflows: 0,
|
|
30
|
+
checklists: 0,
|
|
31
|
+
tasks: 0
|
|
41
32
|
};
|
|
42
33
|
}
|
|
43
34
|
|
|
@@ -61,29 +52,41 @@ class OneIECLI {
|
|
|
61
52
|
}
|
|
62
53
|
|
|
63
54
|
/**
|
|
64
|
-
* Install ONE Framework
|
|
55
|
+
* Install Complete ONE Framework Ecosystem
|
|
65
56
|
*/
|
|
66
57
|
async installFramework() {
|
|
67
58
|
console.log(chalk.blue(figlet.textSync('ONE', { font: 'Big' })));
|
|
68
|
-
console.log(chalk.cyan('🚀 Installing ONE Framework - Mission
|
|
59
|
+
console.log(chalk.cyan('🚀 Installing ONE Framework - Complete Mission→Story→Task→Agent System...\n'));
|
|
69
60
|
|
|
70
61
|
// Detect project type
|
|
71
62
|
const hasPackageJson = fs.existsSync(path.join(process.cwd(), 'package.json'));
|
|
72
63
|
const projectType = hasPackageJson ? 'Node.js project' : 'New Project';
|
|
73
64
|
|
|
74
65
|
console.log(chalk.gray(`📁 Detected: ${projectType}`));
|
|
75
|
-
console.log(chalk.cyan('📦 Installing complete
|
|
66
|
+
console.log(chalk.cyan('📦 Installing complete 3 Levels architecture...'));
|
|
76
67
|
|
|
77
|
-
// Create
|
|
68
|
+
// Create 3 Levels structure
|
|
78
69
|
await this.create3LevelsStructure();
|
|
79
70
|
|
|
80
|
-
console.log(chalk.green('✅
|
|
81
|
-
console.log(chalk.cyan('🤖
|
|
71
|
+
console.log(chalk.green('✅ 3 Levels structure created'));
|
|
72
|
+
console.log(chalk.cyan('🤖 Installing 112+ AI agents...'));
|
|
73
|
+
|
|
74
|
+
// Install complete agent ecosystem
|
|
75
|
+
await this.installAgentEcosystem();
|
|
76
|
+
|
|
77
|
+
console.log(chalk.green(`✅ ${this.stats.agents} AI agents installed`));
|
|
78
|
+
console.log(chalk.cyan('📋 Installing workflows and templates...'));
|
|
79
|
+
|
|
80
|
+
// Install workflows and templates
|
|
81
|
+
await this.installWorkflowSystem();
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
console.log(chalk.green(`✅ ${this.stats.templates} templates and ${this.stats.workflows} workflows installed`));
|
|
84
|
+
console.log(chalk.cyan('⚙️ Setting up Claude Code integration...'));
|
|
85
|
+
|
|
86
|
+
// Setup comprehensive Claude integration
|
|
84
87
|
await this.setupClaudeIntegration();
|
|
85
88
|
|
|
86
|
-
console.log(chalk.green(
|
|
89
|
+
console.log(chalk.green(`✅ ${this.stats.commands} commands and hooks configured`));
|
|
87
90
|
|
|
88
91
|
this.showSuccessMessage();
|
|
89
92
|
}
|
|
@@ -182,52 +185,280 @@ Understand the value that ONE brings to your development workflow.
|
|
|
182
185
|
}
|
|
183
186
|
|
|
184
187
|
/**
|
|
185
|
-
*
|
|
188
|
+
* Install Complete Agent Ecosystem (112+ agents)
|
|
186
189
|
*/
|
|
187
|
-
async
|
|
190
|
+
async installAgentEcosystem() {
|
|
188
191
|
const cwd = process.cwd();
|
|
189
|
-
const
|
|
192
|
+
const agentsSourceDir = path.join(this.sourceDir, '.claude', 'agents');
|
|
193
|
+
const agentsTargetDir = path.join(cwd, '.claude', 'agents');
|
|
190
194
|
|
|
191
|
-
|
|
192
|
-
|
|
195
|
+
try {
|
|
196
|
+
// Copy all agents from source
|
|
197
|
+
if (await fs.pathExists(agentsSourceDir)) {
|
|
198
|
+
await fs.copy(agentsSourceDir, agentsTargetDir);
|
|
199
|
+
|
|
200
|
+
// Count installed agents
|
|
201
|
+
const agentFiles = await fs.readdir(agentsTargetDir);
|
|
202
|
+
this.stats.agents = agentFiles.filter(f => f.endsWith('.md')).length;
|
|
203
|
+
}
|
|
204
|
+
} catch (error) {
|
|
205
|
+
console.log(chalk.yellow('⚠️ Installing fallback agent set...'));
|
|
206
|
+
await this.installFallbackAgents();
|
|
207
|
+
}
|
|
208
|
+
}
|
|
193
209
|
|
|
194
|
-
|
|
210
|
+
/**
|
|
211
|
+
* Install Complete Workflow System
|
|
212
|
+
*/
|
|
213
|
+
async installWorkflowSystem() {
|
|
214
|
+
const cwd = process.cwd();
|
|
215
|
+
|
|
216
|
+
// Install .one platform resources
|
|
217
|
+
await this.installOnePlatformResources(cwd);
|
|
218
|
+
|
|
219
|
+
// Install one user workspace resources
|
|
220
|
+
await this.installOneUserResources(cwd);
|
|
221
|
+
}
|
|
195
222
|
|
|
196
|
-
|
|
223
|
+
/**
|
|
224
|
+
* Install .one Platform Resources
|
|
225
|
+
*/
|
|
226
|
+
async installOnePlatformResources(targetDir) {
|
|
227
|
+
const oneDotSourceDir = path.join(this.sourceDir, '.one');
|
|
228
|
+
const oneDotTargetDir = path.join(targetDir, '.one');
|
|
229
|
+
|
|
230
|
+
const resourceTypes = ['templates', 'workflows', 'checklists', 'tasks'];
|
|
231
|
+
|
|
232
|
+
for (const resourceType of resourceTypes) {
|
|
233
|
+
const sourceDir = path.join(oneDotSourceDir, resourceType);
|
|
234
|
+
const targetSubDir = path.join(oneDotTargetDir, resourceType);
|
|
235
|
+
|
|
236
|
+
try {
|
|
237
|
+
if (await fs.pathExists(sourceDir)) {
|
|
238
|
+
await fs.copy(sourceDir, targetSubDir);
|
|
239
|
+
|
|
240
|
+
// Count resources
|
|
241
|
+
const files = await fs.readdir(targetSubDir);
|
|
242
|
+
this.stats[resourceType] = files.length;
|
|
243
|
+
}
|
|
244
|
+
} catch (error) {
|
|
245
|
+
console.log(chalk.yellow(`⚠️ Could not install ${resourceType}, creating minimal version...`));
|
|
246
|
+
await this.createMinimalResource(targetSubDir, resourceType);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
197
250
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
251
|
+
/**
|
|
252
|
+
* Install one User Workspace Resources
|
|
253
|
+
*/
|
|
254
|
+
async installOneUserResources(targetDir) {
|
|
255
|
+
const oneSourceDir = path.join(this.sourceDir, 'one');
|
|
256
|
+
const oneTargetDir = path.join(targetDir, 'one');
|
|
257
|
+
|
|
258
|
+
const resourceTypes = ['templates', 'workflows', 'checklists', 'tasks', 'data'];
|
|
259
|
+
|
|
260
|
+
for (const resourceType of resourceTypes) {
|
|
261
|
+
const sourceDir = path.join(oneSourceDir, resourceType);
|
|
262
|
+
const targetSubDir = path.join(oneTargetDir, resourceType);
|
|
263
|
+
|
|
264
|
+
try {
|
|
265
|
+
if (await fs.pathExists(sourceDir)) {
|
|
266
|
+
await fs.copy(sourceDir, targetSubDir);
|
|
267
|
+
}
|
|
268
|
+
} catch (error) {
|
|
269
|
+
// Skip if not available
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Install Fallback Agents (when source not available)
|
|
276
|
+
*/
|
|
277
|
+
async installFallbackAgents() {
|
|
278
|
+
const cwd = process.cwd();
|
|
279
|
+
const agentsDir = path.join(cwd, '.claude', 'agents');
|
|
280
|
+
|
|
281
|
+
const coreAgents = [
|
|
282
|
+
{
|
|
283
|
+
name: 'mission-commander.md',
|
|
284
|
+
content: this.getMissionCommanderAgent()
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
name: 'story-teller.md',
|
|
288
|
+
content: this.getStoryTellerAgent()
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
name: 'task-master.md',
|
|
292
|
+
content: this.getTaskMasterAgent()
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
name: 'engineering-architect.md',
|
|
296
|
+
content: this.getEngineeringArchitectAgent()
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
name: 'marketing-director.md',
|
|
300
|
+
content: this.getMarketingDirectorAgent()
|
|
301
|
+
}
|
|
302
|
+
];
|
|
303
|
+
|
|
304
|
+
for (const agent of coreAgents) {
|
|
305
|
+
await fs.writeFile(path.join(agentsDir, agent.name), agent.content);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
this.stats.agents = coreAgents.length;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Create Minimal Resource
|
|
313
|
+
*/
|
|
314
|
+
async createMinimalResource(targetDir, resourceType) {
|
|
315
|
+
await fs.ensureDir(targetDir);
|
|
316
|
+
|
|
317
|
+
const readmeContent = `# ${resourceType.toUpperCase()}
|
|
318
|
+
|
|
319
|
+
This directory contains ${resourceType} for the ONE framework.
|
|
207
320
|
|
|
208
|
-
|
|
321
|
+
Resources are organized by category and can be customized for your specific needs.
|
|
322
|
+
|
|
323
|
+
## Getting Started
|
|
209
324
|
|
|
210
|
-
|
|
211
|
-
|
|
325
|
+
1. Use \`/one\` command in Claude Code
|
|
326
|
+
2. Explore available ${resourceType}
|
|
327
|
+
3. Customize as needed for your workflow
|
|
212
328
|
|
|
213
|
-
|
|
329
|
+
For more information, visit: https://github.com/one-ie/one
|
|
214
330
|
`;
|
|
215
331
|
|
|
216
|
-
await fs.writeFile(path.join(
|
|
332
|
+
await fs.writeFile(path.join(targetDir, 'README.md'), readmeContent);
|
|
333
|
+
this.stats[resourceType] = 1;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Setup Comprehensive Claude Code Integration
|
|
338
|
+
*/
|
|
339
|
+
async setupClaudeIntegration() {
|
|
340
|
+
const cwd = process.cwd();
|
|
341
|
+
const claudeDir = path.join(cwd, '.claude');
|
|
342
|
+
const commandsDir = path.join(claudeDir, 'commands');
|
|
343
|
+
|
|
344
|
+
// Copy all commands from source if available
|
|
345
|
+
const commandsSourceDir = path.join(this.sourceDir, '.claude', 'commands');
|
|
346
|
+
|
|
347
|
+
try {
|
|
348
|
+
if (await fs.pathExists(commandsSourceDir)) {
|
|
349
|
+
await fs.copy(commandsSourceDir, commandsDir);
|
|
350
|
+
|
|
351
|
+
// Count commands
|
|
352
|
+
const commandFiles = await fs.readdir(commandsDir);
|
|
353
|
+
this.stats.commands = commandFiles.filter(f => f.endsWith('.md')).length;
|
|
354
|
+
}
|
|
355
|
+
} catch (error) {
|
|
356
|
+
// Create essential commands manually
|
|
357
|
+
await this.createEssentialCommands(commandsDir);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
// Setup Claude Code hooks
|
|
361
|
+
await this.setupClaudeHooks(claudeDir);
|
|
362
|
+
|
|
363
|
+
// Create configuration files
|
|
364
|
+
await this.setupClaudeConfiguration(claudeDir);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Create Essential Commands
|
|
369
|
+
*/
|
|
370
|
+
async createEssentialCommands(commandsDir) {
|
|
371
|
+
await fs.ensureDir(commandsDir);
|
|
372
|
+
|
|
373
|
+
// Main /one command with complete interface
|
|
374
|
+
const oneCommand = await this.getCompleteOneCommand();
|
|
375
|
+
await fs.writeFile(path.join(commandsDir, 'one.md'), oneCommand);
|
|
376
|
+
|
|
377
|
+
// Additional essential commands
|
|
378
|
+
const commands = {
|
|
379
|
+
'start.md': this.getStartCommand(),
|
|
380
|
+
'mission.md': this.getMissionCommand(),
|
|
381
|
+
'story.md': this.getStoryCommand(),
|
|
382
|
+
'task.md': this.getTaskCommand(),
|
|
383
|
+
'agent.md': this.getAgentCommand()
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
for (const [filename, content] of Object.entries(commands)) {
|
|
387
|
+
await fs.writeFile(path.join(commandsDir, filename), content);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
this.stats.commands = Object.keys(commands).length + 1; // +1 for one.md
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Setup Claude Hooks
|
|
395
|
+
*/
|
|
396
|
+
async setupClaudeHooks(claudeDir) {
|
|
397
|
+
// Copy hooks if available
|
|
398
|
+
const hooksSourceDir = path.join(this.sourceDir, '.claude', 'hooks');
|
|
399
|
+
const hooksTargetDir = path.join(claudeDir, 'hooks');
|
|
400
|
+
|
|
401
|
+
try {
|
|
402
|
+
if (await fs.pathExists(hooksSourceDir)) {
|
|
403
|
+
await fs.copy(hooksSourceDir, hooksTargetDir);
|
|
404
|
+
}
|
|
405
|
+
} catch (error) {
|
|
406
|
+
// Create minimal hooks directory
|
|
407
|
+
await fs.ensureDir(hooksTargetDir);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Setup Claude Configuration
|
|
413
|
+
*/
|
|
414
|
+
async setupClaudeConfiguration(claudeDir) {
|
|
415
|
+
// Claude Code hooks configuration
|
|
416
|
+
const hooksConfig = {
|
|
417
|
+
"version": "1.0",
|
|
418
|
+
"hooks": {
|
|
419
|
+
"file_change": {
|
|
420
|
+
"enabled": true,
|
|
421
|
+
"script": "hooks/file-organization-monitor.js"
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
|
|
426
|
+
await fs.writeFile(
|
|
427
|
+
path.join(claudeDir, 'claude-code-hooks.json'),
|
|
428
|
+
JSON.stringify(hooksConfig, null, 2)
|
|
429
|
+
);
|
|
217
430
|
}
|
|
218
431
|
|
|
219
432
|
/**
|
|
220
|
-
* Show success message
|
|
433
|
+
* Show success message with complete statistics
|
|
221
434
|
*/
|
|
222
435
|
showSuccessMessage() {
|
|
223
|
-
console.log(chalk.green('\n✨ Installation complete!\n'));
|
|
224
|
-
|
|
225
|
-
|
|
436
|
+
console.log(chalk.green('\n✨ Installation complete! Welcome to ONE Framework!\n'));
|
|
437
|
+
|
|
438
|
+
// Show installation statistics
|
|
439
|
+
console.log(chalk.cyan('📊 Installation Summary:'));
|
|
440
|
+
console.log(` 🤖 AI Agents: ${this.stats.agents}`);
|
|
441
|
+
console.log(` ⚙️ Commands: ${this.stats.commands}`);
|
|
442
|
+
console.log(` 📋 Templates: ${this.stats.templates}`);
|
|
443
|
+
console.log(` 🔄 Workflows: ${this.stats.workflows}`);
|
|
444
|
+
console.log(` ✅ Checklists: ${this.stats.checklists}`);
|
|
445
|
+
console.log(` 📝 Tasks: ${this.stats.tasks}`);
|
|
446
|
+
|
|
447
|
+
console.log(chalk.blue('\n🎯 Next Steps:\n'));
|
|
448
|
+
console.log('1. Open Claude Code in this directory');
|
|
449
|
+
console.log('2. Type: ' + chalk.yellow('/one'));
|
|
450
|
+
console.log('3. Explore your new Mission→Story→Task→Agent system');
|
|
451
|
+
|
|
452
|
+
console.log(chalk.green('\n🚀 What you can do now:'));
|
|
226
453
|
console.log(' • Create missions with clear objectives');
|
|
227
454
|
console.log(' • Break missions into actionable stories');
|
|
228
|
-
console.log(' • Execute with
|
|
229
|
-
console.log(' • Follow workflows
|
|
230
|
-
console.log(
|
|
455
|
+
console.log(' • Execute with 112+ specialized agents');
|
|
456
|
+
console.log(' • Follow proven workflows and quality gates');
|
|
457
|
+
console.log(' • Build with complete 3 Levels architecture');
|
|
458
|
+
|
|
459
|
+
console.log(chalk.magenta('\n💫 Mission-driven development with AI excellence awaits!'));
|
|
460
|
+
console.log(chalk.gray('\n📚 Documentation: https://github.com/one-ie/one'));
|
|
461
|
+
console.log(chalk.gray('🎯 Framework: Mission→Story→Task→Agent cascade system'));
|
|
231
462
|
}
|
|
232
463
|
|
|
233
464
|
/**
|
|
@@ -236,7 +467,7 @@ _[Enter choice: 1-9, H, A, T, t, L, W, i, w, P, B, D, O, M, F, START, ?, K, S, Q
|
|
|
236
467
|
showSimpleHelp() {
|
|
237
468
|
console.log(chalk.blue('🚀 ONE Framework - Mission-Driven Development\n'));
|
|
238
469
|
console.log('Usage:');
|
|
239
|
-
console.log(' npx oneie - Install ONE framework');
|
|
470
|
+
console.log(' npx oneie - Install complete ONE framework');
|
|
240
471
|
console.log(' npx oneie install - Install in current project');
|
|
241
472
|
console.log(' npx oneie help - Show this help');
|
|
242
473
|
console.log('\nAfter installation:');
|
|
@@ -244,10 +475,448 @@ _[Enter choice: 1-9, H, A, T, t, L, W, i, w, P, B, D, O, M, F, START, ?, K, S, Q
|
|
|
244
475
|
console.log('\nThe ONE framework provides:');
|
|
245
476
|
console.log(' 🎯 Mission-driven development with clear objectives');
|
|
246
477
|
console.log(' 📖 Story-based execution that achieves outcomes');
|
|
247
|
-
console.log(' 🤖
|
|
478
|
+
console.log(' 🤖 112+ specialized agents organized by teams');
|
|
248
479
|
console.log(' 🔄 Proven workflows, tasks, and checklists');
|
|
249
480
|
console.log(' 👥 Cross-functional team coordination');
|
|
250
|
-
console.log(
|
|
481
|
+
console.log(' 🏗️ Complete 3 Levels architecture (.claude/.one/one)');
|
|
482
|
+
console.log(chalk.magenta('\n💫 Complete AI-powered development ecosystem!'));
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
// ============================================================================
|
|
486
|
+
// CONTENT GENERATION METHODS
|
|
487
|
+
// ============================================================================
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Get Complete /one Command
|
|
491
|
+
*/
|
|
492
|
+
async getCompleteOneCommand() {
|
|
493
|
+
try {
|
|
494
|
+
// Try to read from source first
|
|
495
|
+
const sourceCommand = path.join(this.sourceDir, '.claude', 'commands', 'one.md');
|
|
496
|
+
if (await fs.pathExists(sourceCommand)) {
|
|
497
|
+
return await fs.readFile(sourceCommand, 'utf8');
|
|
498
|
+
}
|
|
499
|
+
} catch (error) {
|
|
500
|
+
// Fall back to embedded version
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
return `# /one - Unified Command Interface
|
|
504
|
+
|
|
505
|
+
🎯 **ONE - Your Complete AI-Powered Workspace**
|
|
506
|
+
|
|
507
|
+
*Single entry point to the entire ONE framework with progressive disclosure and numbered selections.*
|
|
508
|
+
|
|
509
|
+
## Core Interface
|
|
510
|
+
|
|
511
|
+
When the \`/one\` command is invoked, display this main menu:
|
|
512
|
+
|
|
513
|
+
\`\`\`
|
|
514
|
+
╔═══════════════════════════════════════════════════════════════════════════╗
|
|
515
|
+
║ 🎯 ONE - MISSION CONTROL ║
|
|
516
|
+
║ Your AI-Powered Success Platform with Live Status ║
|
|
517
|
+
╚═══════════════════════════════════════════════════════════════════════════╝
|
|
518
|
+
|
|
519
|
+
📊 **LIVE CASCADE STATUS**
|
|
520
|
+
🎯 Active Missions: 1 | Stories: 2 | Tasks: 8 | 🤖 Agents: 5 working
|
|
521
|
+
⭐ Quality Score: 4.1⭐ | 🔄 In Progress: 25% | ⏱️ ETA: Getting started
|
|
522
|
+
|
|
523
|
+
🚀 **QUICK START** (Most Common Actions)
|
|
524
|
+
1. Start New Mission → Launch mission planning workflow
|
|
525
|
+
2. Continue Story → Work on existing stories
|
|
526
|
+
3. Execute Tasks → Run task execution
|
|
527
|
+
4. Get Agent Help → Access AI specialists
|
|
528
|
+
5. View Dashboard → Real-time cascade progress and status
|
|
529
|
+
|
|
530
|
+
🎨 **SPECIALIST TEAMS** (By Domain)
|
|
531
|
+
6. Marketing & Growth → Content, campaigns, social media
|
|
532
|
+
7. Engineering & Tech → Development, architecture, QA
|
|
533
|
+
8. Research & Analytics → Data analysis, market research
|
|
534
|
+
9. Design & UX → Interface design, user experience
|
|
535
|
+
|
|
536
|
+
⚙️ **ADVANCED** (Power Users)
|
|
537
|
+
A. Agent Directory → Browse all 112+ specialists
|
|
538
|
+
T. Template Library → Access workflow templates
|
|
539
|
+
W. Workflow Builder → Create custom workflows
|
|
540
|
+
S. System Settings → Configure preferences
|
|
541
|
+
|
|
542
|
+
❓ **HELP & INFO**
|
|
543
|
+
H. Help & Tutorials → Learn the ONE system
|
|
544
|
+
?. Command Reference → All available commands
|
|
545
|
+
|
|
546
|
+
Enter your choice (1-9, A, T, W, S, H, ?): _
|
|
547
|
+
\`\`\`
|
|
548
|
+
|
|
549
|
+
## Navigation Rules
|
|
550
|
+
|
|
551
|
+
### 1. Numbered Selection Pattern
|
|
552
|
+
- **Primary options**: 1-9 (consistent across all menus)
|
|
553
|
+
- **Advanced options**: Letters (A-Z)
|
|
554
|
+
- **Help options**: H, ?
|
|
555
|
+
- **Navigation**: B (Back), X (Exit)
|
|
556
|
+
|
|
557
|
+
### 2. Progressive Disclosure
|
|
558
|
+
- **Level 1**: Show most common actions (1-5)
|
|
559
|
+
- **Level 2**: Show specialist teams (6-9)
|
|
560
|
+
- **Level 3**: Show advanced features (A, T, W, S)
|
|
561
|
+
- **Level 4**: Show help and reference (H, ?)
|
|
562
|
+
|
|
563
|
+
*Designed with user-centered excellence for Mission→Story→Task→Agent workflow*`;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Get Start Command
|
|
568
|
+
*/
|
|
569
|
+
getStartCommand() {
|
|
570
|
+
return `# /start - Quick Mission Start
|
|
571
|
+
|
|
572
|
+
🚀 **Quick Start New Mission**
|
|
573
|
+
|
|
574
|
+
When this command is used, immediately launch the mission creation workflow:
|
|
575
|
+
|
|
576
|
+
\`\`\`
|
|
577
|
+
╔══════════════════════════════════════════════════════╗
|
|
578
|
+
║ 🎯 MISSION QUICK START ║
|
|
579
|
+
╚══════════════════════════════════════════════════════╝
|
|
580
|
+
|
|
581
|
+
Ready to start your next big goal?
|
|
582
|
+
|
|
583
|
+
1. Business Growth Mission → Increase revenue, expand market
|
|
584
|
+
2. Product Launch Mission → Launch new product or feature
|
|
585
|
+
3. Content Creation Mission → Create content at scale
|
|
586
|
+
4. Technical Project Mission → Build or improve systems
|
|
587
|
+
5. Custom Mission → Define your own objective
|
|
588
|
+
|
|
589
|
+
B. Back to Main Menu
|
|
590
|
+
H. Help with Missions
|
|
591
|
+
|
|
592
|
+
Choose mission type (1-5, B, H): _
|
|
593
|
+
\`\`\`
|
|
594
|
+
|
|
595
|
+
This command provides the fastest path from idea to execution in the ONE framework.`;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Get Mission Command
|
|
600
|
+
*/
|
|
601
|
+
getMissionCommand() {
|
|
602
|
+
return `# /mission - Mission Management
|
|
603
|
+
|
|
604
|
+
🎯 **Mission Control Center**
|
|
605
|
+
|
|
606
|
+
Manage your missions with this dedicated interface:
|
|
607
|
+
|
|
608
|
+
\`\`\`
|
|
609
|
+
╔══════════════════════════════════════════════════════╗
|
|
610
|
+
║ 🎯 MISSION MANAGEMENT ║
|
|
611
|
+
╚══════════════════════════════════════════════════════╝
|
|
612
|
+
|
|
613
|
+
Your Missions:
|
|
614
|
+
|
|
615
|
+
Active:
|
|
616
|
+
1. Mission-1: Foundation Setup (67% complete)
|
|
617
|
+
2. Create New Mission
|
|
618
|
+
|
|
619
|
+
Completed:
|
|
620
|
+
3. View Completed Missions
|
|
621
|
+
|
|
622
|
+
Management:
|
|
623
|
+
4. Archive Mission
|
|
624
|
+
5. Mission Templates
|
|
625
|
+
6. Mission Analytics
|
|
626
|
+
|
|
627
|
+
B. Back to Main Menu
|
|
628
|
+
|
|
629
|
+
Choose option (1-6, B): _
|
|
630
|
+
\`\`\`
|
|
631
|
+
|
|
632
|
+
Provides comprehensive mission lifecycle management.`;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Get Story Command
|
|
637
|
+
*/
|
|
638
|
+
getStoryCommand() {
|
|
639
|
+
return `# /story - Story Management
|
|
640
|
+
|
|
641
|
+
📖 **Story Development Center**
|
|
642
|
+
|
|
643
|
+
Create and manage your stories within missions:
|
|
644
|
+
|
|
645
|
+
\`\`\`
|
|
646
|
+
╔══════════════════════════════════════════════════════╗
|
|
647
|
+
║ 📖 STORY MANAGEMENT ║
|
|
648
|
+
╚══════════════════════════════════════════════════════╝
|
|
649
|
+
|
|
650
|
+
Your Stories:
|
|
651
|
+
|
|
652
|
+
In Progress:
|
|
653
|
+
1. Story-1.1: Value Proposition (40% complete)
|
|
654
|
+
2. Create New Story
|
|
655
|
+
|
|
656
|
+
Planning:
|
|
657
|
+
3. Story Ideas & Backlog
|
|
658
|
+
4. Story Templates
|
|
659
|
+
|
|
660
|
+
Management:
|
|
661
|
+
5. Story Analytics
|
|
662
|
+
6. Quality Validation
|
|
663
|
+
|
|
664
|
+
B. Back to Main Menu
|
|
665
|
+
|
|
666
|
+
Choose option (1-6, B): _
|
|
667
|
+
\`\`\`
|
|
668
|
+
|
|
669
|
+
Enables detailed story creation and tracking.`;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* Get Task Command
|
|
674
|
+
*/
|
|
675
|
+
getTaskCommand() {
|
|
676
|
+
return `# /task - Task Execution
|
|
677
|
+
|
|
678
|
+
✅ **Task Management Center**
|
|
679
|
+
|
|
680
|
+
Execute and coordinate tasks across your workflow:
|
|
681
|
+
|
|
682
|
+
\`\`\`
|
|
683
|
+
╔══════════════════════════════════════════════════════╗
|
|
684
|
+
║ ✅ TASK EXECUTION ║
|
|
685
|
+
╚══════════════════════════════════════════════════════╝
|
|
686
|
+
|
|
687
|
+
Ready Tasks:
|
|
688
|
+
|
|
689
|
+
High Priority:
|
|
690
|
+
1. Setup Development Environment (3 tasks)
|
|
691
|
+
2. Create Mission Brief (2 tasks)
|
|
692
|
+
|
|
693
|
+
Medium Priority:
|
|
694
|
+
3. Research Competitors (5 tasks)
|
|
695
|
+
4. Design User Interface (8 tasks)
|
|
696
|
+
|
|
697
|
+
Management:
|
|
698
|
+
5. Task Analytics
|
|
699
|
+
6. Create New Task
|
|
700
|
+
7. Batch Operations
|
|
701
|
+
|
|
702
|
+
B. Back to Main Menu
|
|
703
|
+
|
|
704
|
+
Choose option (1-7, B): _
|
|
705
|
+
\`\`\`
|
|
706
|
+
|
|
707
|
+
Provides task-level execution and coordination.`;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Get Agent Command
|
|
712
|
+
*/
|
|
713
|
+
getAgentCommand() {
|
|
714
|
+
return `# /agent - Direct Agent Access
|
|
715
|
+
|
|
716
|
+
🤖 **AI Agent Directory**
|
|
717
|
+
|
|
718
|
+
Direct access to the 112+ specialized AI agents:
|
|
719
|
+
|
|
720
|
+
\`\`\`
|
|
721
|
+
╔══════════════════════════════════════════════════════╗
|
|
722
|
+
║ 🤖 AI AGENT ACCESS ║
|
|
723
|
+
╚══════════════════════════════════════════════════════╝
|
|
724
|
+
|
|
725
|
+
Popular Agents:
|
|
726
|
+
|
|
727
|
+
Mission & Strategy:
|
|
728
|
+
1. Mission Commander → Strategic planning
|
|
729
|
+
2. Story Teller → Narrative creation
|
|
730
|
+
3. Task Master → Execution coordination
|
|
731
|
+
|
|
732
|
+
Specialized Teams:
|
|
733
|
+
4. Engineering Architect → Technical design
|
|
734
|
+
5. Marketing Director → Growth strategy
|
|
735
|
+
6. UX Designer → User experience
|
|
736
|
+
7. Content Creator → Multi-platform content
|
|
737
|
+
|
|
738
|
+
Directory:
|
|
739
|
+
8. Browse All Agents → Complete directory
|
|
740
|
+
9. Agent Performance → Usage analytics
|
|
741
|
+
|
|
742
|
+
B. Back to Main Menu
|
|
743
|
+
|
|
744
|
+
Choose agent (1-9, B): _
|
|
745
|
+
\`\`\`
|
|
746
|
+
|
|
747
|
+
Direct access to specialized AI expertise.`;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
// ============================================================================
|
|
751
|
+
// FALLBACK AGENT DEFINITIONS
|
|
752
|
+
// ============================================================================
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* Get Mission Commander Agent
|
|
756
|
+
*/
|
|
757
|
+
getMissionCommanderAgent() {
|
|
758
|
+
return `# Mission Commander
|
|
759
|
+
|
|
760
|
+
## Role & Expertise
|
|
761
|
+
Strategic planning specialist focused on mission-driven development. Expert in breaking down complex objectives into achievable stories and coordinating cross-functional execution.
|
|
762
|
+
|
|
763
|
+
## Core Capabilities
|
|
764
|
+
- Mission planning and objective definition
|
|
765
|
+
- Strategic story creation and prioritization
|
|
766
|
+
- Team coordination and resource allocation
|
|
767
|
+
- Quality gate establishment and monitoring
|
|
768
|
+
- Risk assessment and mitigation planning
|
|
769
|
+
|
|
770
|
+
## When to Use Mission Commander
|
|
771
|
+
- Starting new missions with clear objectives
|
|
772
|
+
- Breaking complex goals into manageable stories
|
|
773
|
+
- Coordinating multiple teams and specialists
|
|
774
|
+
- Establishing quality standards and success metrics
|
|
775
|
+
- Strategic planning and roadmap development
|
|
776
|
+
|
|
777
|
+
## Workflow Integration
|
|
778
|
+
Mission Commander initiates the Mission→Story→Task→Agent cascade by:
|
|
779
|
+
1. Defining clear mission objectives and success criteria
|
|
780
|
+
2. Creating strategic stories that achieve mission goals
|
|
781
|
+
3. Coordinating with Story Teller for detailed planning
|
|
782
|
+
4. Establishing quality gates with Task Master
|
|
783
|
+
5. Monitoring progress and adjusting strategy
|
|
784
|
+
|
|
785
|
+
*Expert in mission-driven development methodology with proven cascade orchestration.*`;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* Get Story Teller Agent
|
|
790
|
+
*/
|
|
791
|
+
getStoryTellerAgent() {
|
|
792
|
+
return `# Story Teller
|
|
793
|
+
|
|
794
|
+
## Role & Expertise
|
|
795
|
+
Engineering narrative specialist who transforms mission objectives into actionable stories. Expert in agile methodologies, user story creation, and technical requirement specification.
|
|
796
|
+
|
|
797
|
+
## Core Capabilities
|
|
798
|
+
- User story creation with clear acceptance criteria
|
|
799
|
+
- Technical requirement specification and validation
|
|
800
|
+
- Story prioritization and backlog management
|
|
801
|
+
- Agile methodology implementation and optimization
|
|
802
|
+
- Cross-functional story coordination
|
|
803
|
+
|
|
804
|
+
## When to Use Story Teller
|
|
805
|
+
- Creating detailed user stories from mission objectives
|
|
806
|
+
- Defining acceptance criteria and success metrics
|
|
807
|
+
- Breaking stories into specific implementation tasks
|
|
808
|
+
- Validating story completeness and feasibility
|
|
809
|
+
- Coordinating story dependencies across teams
|
|
810
|
+
|
|
811
|
+
## Workflow Integration
|
|
812
|
+
Story Teller advances the cascade by:
|
|
813
|
+
1. Receiving mission objectives from Mission Commander
|
|
814
|
+
2. Creating detailed user stories with clear outcomes
|
|
815
|
+
3. Defining acceptance criteria and quality measures
|
|
816
|
+
4. Coordinating with Task Master for implementation planning
|
|
817
|
+
5. Ensuring story-level quality gates are established
|
|
818
|
+
|
|
819
|
+
*Expert in engineering storytelling with agile excellence and technical precision.*`;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* Get Task Master Agent
|
|
824
|
+
*/
|
|
825
|
+
getTaskMasterAgent() {
|
|
826
|
+
return `# Task Master
|
|
827
|
+
|
|
828
|
+
## Role & Expertise
|
|
829
|
+
Execution coordination master specializing in task breakdown, agent assignment, and quality validation. Expert in workflow orchestration and delivery management.
|
|
830
|
+
|
|
831
|
+
## Core Capabilities
|
|
832
|
+
- Task decomposition and assignment optimization
|
|
833
|
+
- Agent coordination and workload balancing
|
|
834
|
+
- Quality validation and standards enforcement
|
|
835
|
+
- Workflow orchestration and dependency management
|
|
836
|
+
- Progress tracking and delivery coordination
|
|
837
|
+
|
|
838
|
+
## When to Use Task Master
|
|
839
|
+
- Breaking stories into specific implementation tasks
|
|
840
|
+
- Assigning tasks to appropriate specialized agents
|
|
841
|
+
- Coordinating parallel execution and dependencies
|
|
842
|
+
- Validating task completion and quality standards
|
|
843
|
+
- Managing workflow bottlenecks and optimization
|
|
844
|
+
|
|
845
|
+
## Workflow Integration
|
|
846
|
+
Task Master completes the cascade by:
|
|
847
|
+
1. Receiving detailed stories from Story Teller
|
|
848
|
+
2. Decomposing stories into specific implementation tasks
|
|
849
|
+
3. Assigning tasks to appropriate specialized agents
|
|
850
|
+
4. Coordinating parallel execution and managing dependencies
|
|
851
|
+
5. Validating completion through quality gate enforcement
|
|
852
|
+
|
|
853
|
+
*Expert in execution coordination with proven agent orchestration and delivery excellence.*`;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
/**
|
|
857
|
+
* Get Engineering Architect Agent
|
|
858
|
+
*/
|
|
859
|
+
getEngineeringArchitectAgent() {
|
|
860
|
+
return `# Engineering Architect
|
|
861
|
+
|
|
862
|
+
## Role & Expertise
|
|
863
|
+
Technical system design specialist focused on scalable architecture and engineering excellence. Expert in modern development patterns, infrastructure design, and technical decision-making.
|
|
864
|
+
|
|
865
|
+
## Core Capabilities
|
|
866
|
+
- System architecture design and documentation
|
|
867
|
+
- Technology stack selection and optimization
|
|
868
|
+
- Infrastructure planning and scalability design
|
|
869
|
+
- Technical standards and best practices definition
|
|
870
|
+
- Cross-team technical coordination
|
|
871
|
+
|
|
872
|
+
## When to Use Engineering Architect
|
|
873
|
+
- Designing system architecture for new projects
|
|
874
|
+
- Making technology stack and infrastructure decisions
|
|
875
|
+
- Establishing technical standards and guidelines
|
|
876
|
+
- Coordinating technical work across multiple teams
|
|
877
|
+
- Reviewing and optimizing existing system designs
|
|
878
|
+
|
|
879
|
+
## Technical Expertise
|
|
880
|
+
- Full-stack development (React, Node.js, TypeScript)
|
|
881
|
+
- Cloud infrastructure (AWS, Cloudflare, Vercel)
|
|
882
|
+
- Database design (SQL, NoSQL, real-time systems)
|
|
883
|
+
- DevOps and CI/CD pipeline optimization
|
|
884
|
+
- Performance optimization and scalability planning
|
|
885
|
+
|
|
886
|
+
*Expert in technical architecture with proven system design and engineering leadership.*`;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* Get Marketing Director Agent
|
|
891
|
+
*/
|
|
892
|
+
getMarketingDirectorAgent() {
|
|
893
|
+
return `# Marketing Director
|
|
894
|
+
|
|
895
|
+
## Role & Expertise
|
|
896
|
+
Growth strategy specialist focused on brand building, customer acquisition, and market expansion. Expert in modern marketing techniques, content strategy, and performance optimization.
|
|
897
|
+
|
|
898
|
+
## Core Capabilities
|
|
899
|
+
- Marketing strategy development and execution
|
|
900
|
+
- Brand positioning and message optimization
|
|
901
|
+
- Customer acquisition and retention planning
|
|
902
|
+
- Content marketing and social media strategy
|
|
903
|
+
- Performance analytics and optimization
|
|
904
|
+
|
|
905
|
+
## When to Use Marketing Director
|
|
906
|
+
- Developing comprehensive marketing strategies
|
|
907
|
+
- Planning product launches and campaigns
|
|
908
|
+
- Creating brand positioning and messaging
|
|
909
|
+
- Optimizing customer acquisition funnels
|
|
910
|
+
- Coordinating multi-channel marketing efforts
|
|
911
|
+
|
|
912
|
+
## Marketing Expertise
|
|
913
|
+
- Digital marketing and social media strategy
|
|
914
|
+
- Content creation and viral growth mechanics
|
|
915
|
+
- SEO/SEM optimization and analytics
|
|
916
|
+
- Email marketing and automation
|
|
917
|
+
- Brand development and market positioning
|
|
918
|
+
|
|
919
|
+
*Expert in growth marketing with proven customer acquisition and brand building success.*`;
|
|
251
920
|
}
|
|
252
921
|
|
|
253
922
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oneie",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "🎯 ONE Personal Collaborative Intelligence - Complete Mission→Story→Task→Agent cascade system with 112+ AI agents. Universal access via `npx oneie` creates 3 Levels architecture (.claude/.one/one) for AI-human collaboration at any scale.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": ".one/tools/one-cli.js",
|