oneie 1.0.0 → 1.0.2

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.
Files changed (35) hide show
  1. package/README.md +240 -300
  2. package/bin/install.js +473 -0
  3. package/lib/agent-setup.js +393 -0
  4. package/lib/context-detector.js +199 -0
  5. package/lib/me-generator.js +909 -0
  6. package/lib/progress.js +15 -0
  7. package/lib/project-integrator.js +718 -0
  8. package/lib/scaffold-generator.js +460 -0
  9. package/lib/validator.js +419 -0
  10. package/package.json +40 -148
  11. package/templates/claude-commands/agent.md +87 -0
  12. package/templates/claude-commands/mission.md +65 -0
  13. package/templates/claude-commands/one.md +151 -0
  14. package/templates/claude-commands/story.md +68 -0
  15. package/.one/agent-teams/team-all.yaml +0 -14
  16. package/.one/agent-teams/team-fullstack.yaml +0 -18
  17. package/.one/agent-teams/team-ide-minimal.yaml +0 -10
  18. package/.one/agent-teams/team-marketing.yaml +0 -21
  19. package/.one/agent-teams/team-no-ui.yaml +0 -13
  20. package/LICENSE +0 -21
  21. package/bin/collaborative-install.js +0 -443
  22. package/one/core-config.yaml +0 -101
  23. package/one/tools/bin/one-agent.js +0 -25
  24. package/one/tools/bin/one-mission.js +0 -25
  25. package/one/tools/bin/one-playbook.js +0 -25
  26. package/one/tools/bin/one-story.js +0 -25
  27. package/one/tools/bin/one-team.js +0 -25
  28. package/one/tools/bin/one-tools.js +0 -25
  29. package/one/tools/cli.js +0 -2275
  30. package/one/tools/one-cli.js +0 -270
  31. package/scaffold/.one/checklists/quality-checklist.yaml +0 -331
  32. package/scaffold/.one/hooks/content-validator.js +0 -466
  33. package/scaffold/.one/hooks/file-organization-monitor.js +0 -409
  34. package/scaffold/.one/spaces/default/config.yaml +0 -103
  35. package/scaffold/.one/templates/mission-template.yaml +0 -192
@@ -1,270 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * ONE Framework Installer
4
- * Usage: npx oneie (installs framework)
5
- * Then use Claude Code with /one slash command
6
- */
7
-
8
- import { FrictionlessInstaller } from './frictionless-installer.js';
9
- import { TransformativeAI } from './transformative-ai-engine.js';
10
- import fs from 'fs';
11
- import path from 'path';
12
-
13
- class OneCLI {
14
- constructor() {
15
- this.projectRoot = process.cwd();
16
- this.oneInstalled = this.checkInstallation();
17
- }
18
-
19
- async run() {
20
- const args = process.argv.slice(2);
21
- const command = args[0];
22
-
23
- // Default behavior: install the framework
24
- if (!command || command === 'install' || command === 'init') {
25
- await this.install();
26
- return;
27
- }
28
-
29
- // Handle help requests
30
- if (command === '--help' || command === '-h' || command === 'help') {
31
- this.showHelp();
32
- return;
33
- }
34
-
35
- // For existing installations, show how to use /one
36
- if (this.oneInstalled) {
37
- console.log('🎯 ONE Framework is already installed!');
38
- console.log('\nUse Claude Code and type: /one\n');
39
- console.log('Then you can:');
40
- console.log(' • Create missions with clear objectives');
41
- console.log(' • Break missions into actionable stories');
42
- console.log(' • Execute with 18+ specialized agents');
43
- console.log(' • Follow workflows, tasks, and checklists\n');
44
- } else {
45
- // Install if not present
46
- await this.install();
47
- }
48
- }
49
-
50
- checkInstallation() {
51
- return fs.existsSync(path.join(this.projectRoot, 'one'));
52
- }
53
-
54
- async install() {
55
- const installer = new FrictionlessInstaller();
56
- await installer.install();
57
- this.oneInstalled = true;
58
- }
59
-
60
- async processRequest(userInput) {
61
- try {
62
- const ai = new TransformativeAI();
63
- await ai.processRequest(userInput);
64
- } catch (error) {
65
- console.error('🔧 AI processing temporarily unavailable.');
66
- console.log('💡 Try using direct commands instead:');
67
- console.log(' npx oneie one:agent - Access AI specialists');
68
- console.log(' npx oneie one:mission - Mission management');
69
- console.log(' npx oneie one:story - Story creation');
70
- console.log(' npx oneie help - Show all options');
71
- }
72
- }
73
-
74
- async handleUpgrade(args) {
75
- const upgradeType = args[1]; // --trial or --premium
76
-
77
- if (upgradeType === '--trial') {
78
- await this.startFreeTrial();
79
- } else if (upgradeType === '--premium') {
80
- await this.upgradeToPremium();
81
- } else {
82
- await this.showUpgradeOptions();
83
- }
84
- }
85
-
86
- async startFreeTrial() {
87
- console.log('🎁 Starting your 7-day FREE trial...\n');
88
-
89
- // Simulate trial setup
90
- console.log('✨ Setting up premium features...');
91
- await this.sleep(1000);
92
- console.log('🔐 Activating specialized agents...');
93
- await this.sleep(1000);
94
- console.log('🚀 Unlocking viral growth workflows...');
95
- await this.sleep(1000);
96
-
97
- console.log('\n🎉 FREE TRIAL ACTIVATED!\n');
98
- console.log('You now have access to:');
99
- console.log(' 🤖 50+ Specialized Agents');
100
- console.log(' 🚀 Viral Growth Workflows');
101
- console.log(' 🧠 AI-Powered Intelligence');
102
- console.log(' 💼 Enterprise Features\n');
103
-
104
- console.log('Try these premium commands:');
105
- console.log(' npx oneie "Generate 20 marketing specialists"');
106
- console.log(' npx oneie "Create viral marketing campaign"');
107
- console.log(' npx oneie "Build enterprise API with microservices"\n');
108
-
109
- // Create trial config
110
- const trialConfig = {
111
- trial: true,
112
- startDate: new Date().toISOString(),
113
- expiryDate: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000).toISOString(),
114
- features: ['premium-agents', 'viral-workflows', 'ai-intelligence']
115
- };
116
-
117
- const fs = await import('fs');
118
- fs.writeFileSync('.one-trial', JSON.stringify(trialConfig, null, 2));
119
-
120
- console.log('💡 Trial expires in 7 days. Upgrade anytime with:');
121
- console.log(' npx oneie upgrade --premium\n');
122
- }
123
-
124
- async upgradeToPremium() {
125
- console.log('💰 Upgrading to ONE Premium...\n');
126
-
127
- console.log('🔐 Premium Features Include:');
128
- console.log(' ✨ 50+ Specialized AI Agents');
129
- console.log(' 🚀 Viral Growth Orchestrator');
130
- console.log(' 🎯 Content Multiplication Engine');
131
- console.log(' 💼 Enterprise Workflows');
132
- console.log(' 🧠 AI-Powered Market Intelligence');
133
- console.log(' 🎨 Advanced UI/UX Specialists');
134
- console.log(' 🔧 Backend Architecture Experts\n');
135
-
136
- console.log('💳 Pricing:');
137
- console.log(' 💎 Premium: $49/month');
138
- console.log(' 🏢 Enterprise: $199/month\n');
139
-
140
- console.log('🌐 Visit: https://one.ai/upgrade');
141
- console.log('📧 Email: premium@one.ai');
142
- console.log('💬 Chat: Live support available\n');
143
-
144
- console.log('🎁 Special offer: Use code TRANSFORM50 for 50% off first month!');
145
- }
146
-
147
- async showUpgradeOptions() {
148
- console.log('🌟 ONE Premium - Unlock Your Full Potential\n');
149
-
150
- console.log('🆓 Current (Free):');
151
- console.log(' ✅ 3 Core Agents');
152
- console.log(' ✅ Basic Workflows');
153
- console.log(' ✅ Standard Templates');
154
- console.log(' ✅ Unlimited Usage\n');
155
-
156
- console.log('💎 Premium ($49/month):');
157
- console.log(' 🚀 50+ Specialized Agents');
158
- console.log(' 🎯 Viral Growth Workflows');
159
- console.log(' 🧠 AI Intelligence Suite');
160
- console.log(' 💼 Enterprise Templates');
161
- console.log(' 🎨 Advanced UI/UX Tools');
162
- console.log(' ⚡ Priority Processing\n');
163
-
164
- console.log('🏢 Enterprise ($199/month):');
165
- console.log(' 🌟 Everything in Premium');
166
- console.log(' 🔧 Custom Agent Creation');
167
- console.log(' 📊 Advanced Analytics');
168
- console.log(' 🛠️ Custom Integrations');
169
- console.log(' 👥 Dedicated Support\n');
170
-
171
- console.log('Commands:');
172
- console.log(' npx oneie upgrade --trial # Start 7-day free trial');
173
- console.log(' npx oneie upgrade --premium # View premium options');
174
- console.log(' npx oneie upgrade --help # More information\n');
175
- }
176
-
177
- sleep(ms) {
178
- return new Promise(resolve => setTimeout(resolve, ms));
179
- }
180
-
181
- async showOneInterface() {
182
- console.log('🎯 ONE Framework - Mission Control\n');
183
-
184
- // Check for existing foundation
185
- const hasFoundation = this.checkFoundation();
186
-
187
- console.log('Current Status:');
188
- if (hasFoundation) {
189
- console.log('✅ Foundation loaded');
190
- console.log('✅ 18 agents ready');
191
- console.log('✅ Teams assembled\n');
192
- } else {
193
- console.log('🔄 Foundation setup needed');
194
- console.log('✅ 18 agents ready');
195
- console.log('✅ Teams assembled\n');
196
- }
197
-
198
- // Show beautiful menu
199
- console.log('What would you like to do?');
200
- console.log('[1] View Active Missions');
201
- console.log('[2] Create New Mission');
202
- console.log('[3] Continue Story');
203
- console.log('[4] Summon Agent');
204
- console.log('[5] Check Team Status');
205
- console.log('[6] Generate Playbook\n');
206
-
207
- console.log('Select a number or describe what you want to accomplish.\n');
208
- }
209
-
210
- checkFoundation() {
211
- const foundationPath = path.join(this.projectRoot, 'one', 'data');
212
- return fs.existsSync(foundationPath);
213
- }
214
-
215
- async createFoundation() {
216
- // Simulate foundation creation
217
- await this.sleep(500);
218
- console.log('📊 Analyzing your project structure...');
219
- await this.sleep(500);
220
- console.log('🎯 Setting up mission templates...');
221
- await this.sleep(500);
222
- console.log('👥 Activating AI agent teams...');
223
- await this.sleep(300);
224
- }
225
-
226
- async handleOneCommand(args) {
227
- // Delegate to the main CLI with the one:* command
228
- const { exec } = await import('child_process');
229
- const { promisify } = await import('util');
230
- const execAsync = promisify(exec);
231
-
232
- try {
233
- const command = `node one/tools/cli.js ${args.join(' ')}`;
234
- const { stdout, stderr } = await execAsync(command);
235
-
236
- if (stdout) console.log(stdout);
237
- if (stderr) console.error(stderr);
238
- } catch (error) {
239
- console.error('Error executing command:', error.message);
240
- console.log('\n💡 Available one:* commands:');
241
- console.log(' npx oneie one:mission - Mission management');
242
- console.log(' npx oneie one:story - Story creation');
243
- console.log(' npx oneie one:agent - Agent summoning');
244
- console.log(' npx oneie one:team - Team coordination');
245
- console.log(' npx oneie one:playbook - Playbook generation');
246
- console.log(' npx oneie one:tools - Development tools');
247
- }
248
- }
249
-
250
- showHelp() {
251
- console.log('🚀 ONE Framework - Mission-Driven Development\n');
252
- console.log('Usage:');
253
- console.log(' npx oneie - Install ONE framework');
254
- console.log(' npx oneie install - Install in current project');
255
- console.log(' npx oneie help - Show this help\n');
256
- console.log('After installation:');
257
- console.log(' Use Claude Code and type: /one');
258
- console.log('\nThe ONE framework provides:');
259
- console.log(' 🎯 Mission-driven development with clear objectives');
260
- console.log(' 📖 Story-based execution that achieves outcomes');
261
- console.log(' 🤖 18+ specialized agents organized by teams');
262
- console.log(' 🔄 Proven workflows, tasks, and checklists');
263
- console.log(' 👥 Cross-functional team coordination\n');
264
- console.log('💫 Beautiful mission-driven development awaits!');
265
- }
266
- }
267
-
268
- // Run CLI
269
- const cli = new OneCLI();
270
- cli.run().catch(console.error);
@@ -1,331 +0,0 @@
1
- # Quality Checklist - R.O.C.K.E.T. Framework
2
- # 4-Level validation system for Mission → Story → Task → Agent cascade
3
-
4
- quality_checklist:
5
- version: "1.0"
6
- framework: "R.O.C.K.E.T."
7
- description: "Comprehensive quality validation for cascade workflow"
8
-
9
- # Level 1: Mission Quality Gate
10
- mission_quality:
11
- threshold: 4.0 # Minimum 4 stars required
12
- max_score: 5.0
13
-
14
- criteria:
15
- role:
16
- weight: 1.0
17
- description: "Clear mission role and purpose definition"
18
- checkpoints:
19
- - "Mission role clearly defined"
20
- - "Purpose statement is specific"
21
- - "Scope boundaries established"
22
- - "Accountability assigned"
23
-
24
- objective:
25
- weight: 2.0 # Higher weight for objectives
26
- description: "Well-defined goals and measurable outcomes"
27
- checkpoints:
28
- - "Objective is specific and measurable"
29
- - "Success criteria are quantifiable"
30
- - "Timeline is realistic and defined"
31
- - "Business value is clear"
32
-
33
- context:
34
- weight: 1.0
35
- description: "Sufficient background and requirements"
36
- checkpoints:
37
- - "Business context provided"
38
- - "Requirements documented"
39
- - "Constraints identified"
40
- - "Dependencies mapped"
41
-
42
- key_instructions:
43
- weight: 1.5
44
- description: "Actionable guidance and execution plan"
45
- checkpoints:
46
- - "Execution strategy defined"
47
- - "Resource requirements specified"
48
- - "Team assignments appropriate"
49
- - "Risk mitigation planned"
50
-
51
- examples:
52
- weight: 0.5
53
- description: "Reference examples and benchmarks"
54
- checkpoints:
55
- - "Success examples provided"
56
- - "Benchmarks established"
57
- - "Best practices referenced"
58
- - "Lessons learned included"
59
-
60
- tone:
61
- weight: 1.0
62
- description: "Consistent voice and communication style"
63
- checkpoints:
64
- - "Brand voice maintained"
65
- - "Tone appropriate for audience"
66
- - "Messaging consistent"
67
- - "Communication clear"
68
-
69
- # Level 2: Story Quality Gate
70
- story_quality:
71
- threshold: 4.0
72
- max_score: 5.0
73
-
74
- criteria:
75
- role:
76
- weight: 1.0
77
- description: "Story role within mission context"
78
- checkpoints:
79
- - "Story role in mission clear"
80
- - "Narrative purpose defined"
81
- - "Contribution to mission obvious"
82
- - "Story boundaries established"
83
-
84
- objective:
85
- weight: 2.0
86
- description: "Specific story outcomes and deliverables"
87
- checkpoints:
88
- - "Story objectives measurable"
89
- - "Deliverables clearly defined"
90
- - "Acceptance criteria specified"
91
- - "Definition of done established"
92
-
93
- context:
94
- weight: 1.0
95
- description: "Story context and background"
96
- checkpoints:
97
- - "Mission context maintained"
98
- - "User perspective included"
99
- - "Technical context provided"
100
- - "Business impact clear"
101
-
102
- key_instructions:
103
- weight: 1.5
104
- description: "Task breakdown and execution plan"
105
- checkpoints:
106
- - "Tasks properly defined"
107
- - "Execution sequence logical"
108
- - "Agent assignments optimal"
109
- - "Quality gates implemented"
110
-
111
- examples:
112
- weight: 0.5
113
- description: "Story examples and references"
114
- checkpoints:
115
- - "Similar stories referenced"
116
- - "Success patterns identified"
117
- - "Templates provided"
118
- - "Reference materials linked"
119
-
120
- tone:
121
- weight: 1.0
122
- description: "Story voice and narrative style"
123
- checkpoints:
124
- - "Narrative voice consistent"
125
- - "Story engaging and clear"
126
- - "Technical details appropriate"
127
- - "User perspective maintained"
128
-
129
- # Level 3: Task Quality Gate
130
- task_quality:
131
- threshold: 4.0
132
- max_score: 5.0
133
-
134
- criteria:
135
- role:
136
- weight: 1.0
137
- description: "Task role within story context"
138
- checkpoints:
139
- - "Task purpose crystal clear"
140
- - "Contribution to story obvious"
141
- - "Scope appropriately sized"
142
- - "Dependencies identified"
143
-
144
- objective:
145
- weight: 2.0
146
- description: "Specific task outputs and criteria"
147
- checkpoints:
148
- - "Outputs clearly specified"
149
- - "Quality criteria defined"
150
- - "Completion criteria measurable"
151
- - "Success metrics established"
152
-
153
- context:
154
- weight: 1.0
155
- description: "Task context and requirements"
156
- checkpoints:
157
- - "Input requirements clear"
158
- - "Technical constraints known"
159
- - "Business rules understood"
160
- - "User needs considered"
161
-
162
- key_instructions:
163
- weight: 1.5
164
- description: "Execution instructions and guidance"
165
- checkpoints:
166
- - "Step-by-step instructions clear"
167
- - "Agent capabilities matched"
168
- - "Tools and resources specified"
169
- - "Quality validation built-in"
170
-
171
- examples:
172
- weight: 0.5
173
- description: "Task examples and templates"
174
- checkpoints:
175
- - "Input examples provided"
176
- - "Output examples shown"
177
- - "Templates available"
178
- - "Reference implementations linked"
179
-
180
- tone:
181
- weight: 1.0
182
- description: "Task communication and style"
183
- checkpoints:
184
- - "Instructions clear and actionable"
185
- - "Tone appropriate for agent"
186
- - "Technical level appropriate"
187
- - "Feedback mechanisms defined"
188
-
189
- # Level 4: Agent Quality Gate
190
- agent_quality:
191
- threshold: 4.0
192
- max_score: 5.0
193
-
194
- criteria:
195
- role:
196
- weight: 1.0
197
- description: "Agent role and capabilities alignment"
198
- checkpoints:
199
- - "Agent expertise matches task"
200
- - "Role boundaries respected"
201
- - "Capabilities sufficient"
202
- - "Specialization appropriate"
203
-
204
- objective:
205
- weight: 2.0
206
- description: "Task completion and output quality"
207
- checkpoints:
208
- - "All outputs delivered"
209
- - "Quality criteria met"
210
- - "Specifications followed"
211
- - "Acceptance criteria satisfied"
212
-
213
- context:
214
- weight: 1.0
215
- description: "Context understanding and application"
216
- checkpoints:
217
- - "Context properly understood"
218
- - "Requirements addressed"
219
- - "Constraints respected"
220
- - "Integration considered"
221
-
222
- key_instructions:
223
- weight: 1.5
224
- description: "Instruction following and execution"
225
- checkpoints:
226
- - "Instructions followed precisely"
227
- - "Best practices applied"
228
- - "Quality processes used"
229
- - "Validation performed"
230
-
231
- examples:
232
- weight: 0.5
233
- description: "Example usage and pattern following"
234
- checkpoints:
235
- - "Examples properly referenced"
236
- - "Patterns correctly applied"
237
- - "Templates used appropriately"
238
- - "Standards maintained"
239
-
240
- tone:
241
- weight: 1.0
242
- description: "Communication and brand consistency"
243
- checkpoints:
244
- - "Brand voice maintained"
245
- - "Tone consistent with requirements"
246
- - "Communication clear"
247
- - "Feedback provided appropriately"
248
-
249
- # Cascade Integration Rules
250
- cascade_rules:
251
- mission_to_story:
252
- validation_required: true
253
- handoff_criteria:
254
- - "Mission quality >= 4.0 stars"
255
- - "Stories properly spawned"
256
- - "Team assignments confirmed"
257
- - "Resource allocation approved"
258
-
259
- story_to_task:
260
- validation_required: true
261
- handoff_criteria:
262
- - "Story quality >= 4.0 stars"
263
- - "Tasks properly defined"
264
- - "Agent assignments optimal"
265
- - "Quality gates implemented"
266
-
267
- task_to_agent:
268
- validation_required: true
269
- handoff_criteria:
270
- - "Task quality >= 4.0 stars"
271
- - "Agent capabilities matched"
272
- - "Instructions complete"
273
- - "Success criteria clear"
274
-
275
- agent_completion:
276
- validation_required: true
277
- completion_criteria:
278
- - "Agent quality >= 4.0 stars"
279
- - "All outputs delivered"
280
- - "Quality standards met"
281
- - "Integration verified"
282
-
283
- # Automated Quality Assurance
284
- automation:
285
- enabled: true
286
-
287
- auto_checks:
288
- - "R.O.C.K.E.T. component presence"
289
- - "Content length validation"
290
- - "Required field completion"
291
- - "Template compliance"
292
- - "Brand consistency"
293
- - "Ontology compliance"
294
-
295
- quality_gates:
296
- - level: "mission"
297
- auto_advance: false # Requires manual approval
298
- notifications: ["mission-commander", "project-lead"]
299
-
300
- - level: "story"
301
- auto_advance: true # Can auto-advance if quality met
302
- notifications: ["story-teller", "team-lead"]
303
-
304
- - level: "task"
305
- auto_advance: true
306
- notifications: ["task-master", "agent-coordinator"]
307
-
308
- - level: "agent"
309
- auto_advance: true
310
- notifications: ["quality-guardian", "completion-tracker"]
311
-
312
- reporting:
313
- frequency: "real-time"
314
- dashboards: ["quality-metrics", "cascade-progress", "agent-performance"]
315
- alerts: ["quality-failures", "cascade-blocks", "completion-delays"]
316
-
317
- # Quality Improvement
318
- continuous_improvement:
319
- learning_enabled: true
320
-
321
- feedback_loops:
322
- - "Quality score trending analysis"
323
- - "Common failure pattern identification"
324
- - "Best practice propagation"
325
- - "Template optimization"
326
-
327
- optimization:
328
- - "Criteria weight adjustment based on outcomes"
329
- - "Threshold tuning based on performance"
330
- - "Automation rule refinement"
331
- - "Checklist evolution based on usage"