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.
- package/README.md +240 -300
- package/bin/install.js +473 -0
- package/lib/agent-setup.js +393 -0
- package/lib/context-detector.js +199 -0
- package/lib/me-generator.js +909 -0
- package/lib/progress.js +15 -0
- package/lib/project-integrator.js +718 -0
- package/lib/scaffold-generator.js +460 -0
- package/lib/validator.js +419 -0
- package/package.json +40 -148
- package/templates/claude-commands/agent.md +87 -0
- package/templates/claude-commands/mission.md +65 -0
- package/templates/claude-commands/one.md +151 -0
- package/templates/claude-commands/story.md +68 -0
- package/.one/agent-teams/team-all.yaml +0 -14
- package/.one/agent-teams/team-fullstack.yaml +0 -18
- package/.one/agent-teams/team-ide-minimal.yaml +0 -10
- package/.one/agent-teams/team-marketing.yaml +0 -21
- package/.one/agent-teams/team-no-ui.yaml +0 -13
- package/LICENSE +0 -21
- package/bin/collaborative-install.js +0 -443
- package/one/core-config.yaml +0 -101
- package/one/tools/bin/one-agent.js +0 -25
- package/one/tools/bin/one-mission.js +0 -25
- package/one/tools/bin/one-playbook.js +0 -25
- package/one/tools/bin/one-story.js +0 -25
- package/one/tools/bin/one-team.js +0 -25
- package/one/tools/bin/one-tools.js +0 -25
- package/one/tools/cli.js +0 -2275
- package/one/tools/one-cli.js +0 -270
- package/scaffold/.one/checklists/quality-checklist.yaml +0 -331
- package/scaffold/.one/hooks/content-validator.js +0 -466
- package/scaffold/.one/hooks/file-organization-monitor.js +0 -409
- package/scaffold/.one/spaces/default/config.yaml +0 -103
- package/scaffold/.one/templates/mission-template.yaml +0 -192
|
@@ -1,443 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* ONE Universal Collaborative Intelligence Installer
|
|
5
|
-
* Transform any project into a space where humans and AI agents work as equals
|
|
6
|
-
* npx oneie - Universal installation command
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import chalk from 'chalk';
|
|
10
|
-
import ora from 'ora';
|
|
11
|
-
import inquirer from 'inquirer';
|
|
12
|
-
import fs from 'fs-extra';
|
|
13
|
-
import path from 'path';
|
|
14
|
-
import os from 'os';
|
|
15
|
-
import { fileURLToPath } from 'url';
|
|
16
|
-
|
|
17
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
18
|
-
const __dirname = path.dirname(__filename);
|
|
19
|
-
|
|
20
|
-
class CollaborativeInstaller {
|
|
21
|
-
constructor() {
|
|
22
|
-
this.currentDir = process.cwd();
|
|
23
|
-
this.packageRoot = path.resolve(__dirname, '..');
|
|
24
|
-
this.architecture = null;
|
|
25
|
-
this.context = null;
|
|
26
|
-
this.preservationPlan = null;
|
|
27
|
-
this.spinner = null;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
async install() {
|
|
31
|
-
console.log(chalk.cyan.bold('\nš¤ Installing ONE - Universal Collaborative Intelligence...\n'));
|
|
32
|
-
|
|
33
|
-
try {
|
|
34
|
-
// Phase 1: Welcome & Architecture Analysis
|
|
35
|
-
await this.initiateCollaborativeWelcome();
|
|
36
|
-
await this.analyzeExistingArchitecture();
|
|
37
|
-
await this.detectScaleAndContext();
|
|
38
|
-
|
|
39
|
-
// Phase 2: Human-AI Installation Dialogue
|
|
40
|
-
await this.establishHumanAIDialogue();
|
|
41
|
-
await this.planPreservationStrategy();
|
|
42
|
-
|
|
43
|
-
// Phase 3: Collaborative Framework Creation
|
|
44
|
-
await this.createCollaborativeStructure();
|
|
45
|
-
await this.establishEqualParticipationRights();
|
|
46
|
-
await this.initializePersistentConversations();
|
|
47
|
-
await this.setupConsensusFrameworks();
|
|
48
|
-
|
|
49
|
-
// Phase 4: Lifecycle Integration
|
|
50
|
-
await this.integrateCompleteLifecycle();
|
|
51
|
-
await this.adaptForScale();
|
|
52
|
-
await this.preserveExistingFunctionality();
|
|
53
|
-
|
|
54
|
-
// Phase 5: Collaboration Validation & Success
|
|
55
|
-
await this.validateCollaborativeSetup();
|
|
56
|
-
await this.celebrateCollaborativeIntelligence();
|
|
57
|
-
|
|
58
|
-
} catch (error) {
|
|
59
|
-
console.error(chalk.red('\nā Installation failed:'), error.message);
|
|
60
|
-
process.exit(1);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
async initiateCollaborativeWelcome() {
|
|
65
|
-
console.log(chalk.green('š Analyzing your project architecture...'));
|
|
66
|
-
await this.delay(1000);
|
|
67
|
-
|
|
68
|
-
// Simulate human-AI dialogue
|
|
69
|
-
console.log(chalk.blue('š¤ Human User:'), '"Let me install ONE in my project"');
|
|
70
|
-
await this.delay(1500);
|
|
71
|
-
console.log(chalk.magenta('š¤ Installation Agent:'), '"I see your structure - I\'ll preserve everything and add collaboration"');
|
|
72
|
-
await this.delay(1500);
|
|
73
|
-
console.log(chalk.cyan('š¤ Integration Specialist:'), '"Checking for optimal integration points..."');
|
|
74
|
-
await this.delay(1000);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
async analyzeExistingArchitecture() {
|
|
78
|
-
this.spinner = ora('Analyzing project architecture...').start();
|
|
79
|
-
await this.delay(2000);
|
|
80
|
-
|
|
81
|
-
// Analyze current directory structure
|
|
82
|
-
this.architecture = await this.scanProjectStructure();
|
|
83
|
-
|
|
84
|
-
this.spinner.succeed('Architecture analysis complete - no existing files modified');
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
async scanProjectStructure() {
|
|
88
|
-
const structure = {
|
|
89
|
-
hasPackageJson: fs.existsSync(path.join(this.currentDir, 'package.json')),
|
|
90
|
-
hasGitRepo: fs.existsSync(path.join(this.currentDir, '.git')),
|
|
91
|
-
hasReactApp: false,
|
|
92
|
-
hasNodeModules: fs.existsSync(path.join(this.currentDir, 'node_modules')),
|
|
93
|
-
hasOneSystem: fs.existsSync(path.join(this.currentDir, '.one')),
|
|
94
|
-
projectType: 'unknown',
|
|
95
|
-
files: []
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
try {
|
|
99
|
-
const files = await fs.readdir(this.currentDir);
|
|
100
|
-
structure.files = files;
|
|
101
|
-
|
|
102
|
-
// Detect project type
|
|
103
|
-
if (files.includes('package.json')) {
|
|
104
|
-
const pkg = await fs.readJson(path.join(this.currentDir, 'package.json'));
|
|
105
|
-
if (pkg.dependencies?.react) structure.hasReactApp = true;
|
|
106
|
-
if (pkg.name) structure.projectType = pkg.name;
|
|
107
|
-
}
|
|
108
|
-
} catch (error) {
|
|
109
|
-
// Continue with basic structure
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
return structure;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
async detectScaleAndContext() {
|
|
116
|
-
this.spinner = ora('Detecting scale and context...').start();
|
|
117
|
-
await this.delay(1500);
|
|
118
|
-
|
|
119
|
-
// Universal scale detection
|
|
120
|
-
this.context = await this.analyzeUserContext();
|
|
121
|
-
|
|
122
|
-
this.spinner.succeed(`Universal scale adaptation configured for your context: ${this.context.type}`);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
async analyzeUserContext() {
|
|
126
|
-
const folderNames = this.architecture.files.map(f => f.toLowerCase());
|
|
127
|
-
|
|
128
|
-
// Context detection logic - check for keyword matches in file/folder names
|
|
129
|
-
const hasSchoolKeywords = folderNames.some(name =>
|
|
130
|
-
['homework', 'school', 'assignment', 'assignments', 'study'].some(keyword => name.includes(keyword))
|
|
131
|
-
);
|
|
132
|
-
|
|
133
|
-
if (hasSchoolKeywords) {
|
|
134
|
-
return {
|
|
135
|
-
type: 'elementary-school',
|
|
136
|
-
style: 'educational_partnership',
|
|
137
|
-
tone: 'encouraging_and_patient',
|
|
138
|
-
agents: ['Learning Helper', 'Creative Friend', 'Study Partner']
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
const hasResearchKeywords = folderNames.some(name =>
|
|
143
|
-
['research', 'thesis', 'academic', 'university'].some(keyword => name.includes(keyword))
|
|
144
|
-
);
|
|
145
|
-
|
|
146
|
-
if (hasResearchKeywords) {
|
|
147
|
-
return {
|
|
148
|
-
type: 'university-research',
|
|
149
|
-
style: 'scholarly_partnership',
|
|
150
|
-
tone: 'academic_peer_to_peer',
|
|
151
|
-
agents: ['Research Collaborator', 'Data Analyst', 'Methodology Guide']
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
const hasBusinessKeywords = folderNames.some(name =>
|
|
156
|
-
['business', 'client', 'project', 'startup'].some(keyword => name.includes(keyword))
|
|
157
|
-
);
|
|
158
|
-
|
|
159
|
-
if (hasBusinessKeywords) {
|
|
160
|
-
return {
|
|
161
|
-
type: 'professional-business',
|
|
162
|
-
style: 'strategic_partnership',
|
|
163
|
-
tone: 'business_colleague',
|
|
164
|
-
agents: ['Executive Partner', 'Strategy Analyst', 'Implementation Lead']
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
// Default to professional
|
|
169
|
-
return {
|
|
170
|
-
type: 'professional-business',
|
|
171
|
-
style: 'strategic_partnership',
|
|
172
|
-
tone: 'business_colleague',
|
|
173
|
-
agents: ['Executive Partner', 'Strategy Analyst', 'Implementation Lead']
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
async establishHumanAIDialogue() {
|
|
178
|
-
console.log(chalk.green('\nšļø Creating collaborative workspace...'));
|
|
179
|
-
|
|
180
|
-
// Simulate installation agent interaction
|
|
181
|
-
await this.delay(1000);
|
|
182
|
-
console.log(chalk.magenta('š¤ Installation Agent:'), `"Setting up ${this.context.style} for your ${this.context.type} context"`);
|
|
183
|
-
await this.delay(1000);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
async planPreservationStrategy() {
|
|
187
|
-
this.preservationPlan = {
|
|
188
|
-
preserveFiles: this.architecture.files.filter(file => !file.startsWith('.')),
|
|
189
|
-
overlayMode: true,
|
|
190
|
-
backupStrategy: 'none_needed', // Non-destructive overlay
|
|
191
|
-
integrationPoints: []
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
async createCollaborativeStructure() {
|
|
196
|
-
this.spinner = ora('Creating collaborative framework...').start();
|
|
197
|
-
await this.delay(2000);
|
|
198
|
-
|
|
199
|
-
// Create .one directory structure
|
|
200
|
-
await this.createDirectoryStructure();
|
|
201
|
-
|
|
202
|
-
this.spinner.succeed('Collaborative spaces initialized with equal participation rights');
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
async createDirectoryStructure() {
|
|
206
|
-
const dotOneDir = path.join(this.currentDir, '.one');
|
|
207
|
-
|
|
208
|
-
// Create main .one structure
|
|
209
|
-
const structure = {
|
|
210
|
-
'.one': {
|
|
211
|
-
'spaces': {
|
|
212
|
-
'default': {
|
|
213
|
-
'config.yaml': this.generateSpaceConfig(),
|
|
214
|
-
'agents': {},
|
|
215
|
-
'conversations': {},
|
|
216
|
-
'workflows': {}
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
'agents': {},
|
|
220
|
-
'teams': {},
|
|
221
|
-
'missions': {},
|
|
222
|
-
'stories': {},
|
|
223
|
-
'tasks': {},
|
|
224
|
-
'templates': {},
|
|
225
|
-
'checklists': {},
|
|
226
|
-
'workflows': {},
|
|
227
|
-
'hooks': {}
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
await this.createStructureRecursively(this.currentDir, structure);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
async createStructureRecursively(basePath, structure) {
|
|
235
|
-
for (const [name, content] of Object.entries(structure)) {
|
|
236
|
-
const fullPath = path.join(basePath, name);
|
|
237
|
-
|
|
238
|
-
if (typeof content === 'object' && content !== null) {
|
|
239
|
-
// Create directory and recurse
|
|
240
|
-
await fs.ensureDir(fullPath);
|
|
241
|
-
await this.createStructureRecursively(fullPath, content);
|
|
242
|
-
} else {
|
|
243
|
-
// Create file with content
|
|
244
|
-
await fs.writeFile(fullPath, content || '');
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
generateSpaceConfig() {
|
|
250
|
-
return `# Collaborative Space Configuration
|
|
251
|
-
name: "Default Collaborative Space"
|
|
252
|
-
type: "${this.context.type}"
|
|
253
|
-
collaboration_style: "${this.context.style}"
|
|
254
|
-
communication_tone: "${this.context.tone}"
|
|
255
|
-
|
|
256
|
-
participants:
|
|
257
|
-
humans: []
|
|
258
|
-
agents: ${JSON.stringify(this.context.agents, null, 2)}
|
|
259
|
-
|
|
260
|
-
features:
|
|
261
|
-
equal_participation: true
|
|
262
|
-
persistent_conversations: true
|
|
263
|
-
consensus_decision_making: true
|
|
264
|
-
lifecycle_integration: true
|
|
265
|
-
|
|
266
|
-
created: ${new Date().toISOString()}
|
|
267
|
-
`;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
async establishEqualParticipationRights() {
|
|
271
|
-
await this.delay(1000);
|
|
272
|
-
console.log(chalk.green('ā
Human-AI conversation threads established'));
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
async initializePersistentConversations() {
|
|
276
|
-
await this.delay(1000);
|
|
277
|
-
console.log(chalk.green('ā
Mission ā Stories ā Tasks ā Spaces lifecycle activated'));
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
async setupConsensusFrameworks() {
|
|
281
|
-
await this.delay(1000);
|
|
282
|
-
console.log(chalk.green('ā
Universal scale adaptation configured for your context'));
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
async integrateCompleteLifecycle() {
|
|
286
|
-
this.spinner = ora('Integrating complete lifecycle workflow...').start();
|
|
287
|
-
await this.delay(2000);
|
|
288
|
-
|
|
289
|
-
// Create lifecycle templates based on context
|
|
290
|
-
await this.createLifecycleTemplates();
|
|
291
|
-
|
|
292
|
-
this.spinner.succeed('Complete lifecycle workflow integrated');
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
async createLifecycleTemplates() {
|
|
296
|
-
const templatesDir = path.join(this.currentDir, '.one', 'templates');
|
|
297
|
-
|
|
298
|
-
const missionTemplate = `# Mission Template - ${this.context.type}
|
|
299
|
-
objective: "Define your collaborative goal"
|
|
300
|
-
participants:
|
|
301
|
-
humans: []
|
|
302
|
-
agents: ${JSON.stringify(this.context.agents, null, 2)}
|
|
303
|
-
success_criteria: []
|
|
304
|
-
consensus_required: true
|
|
305
|
-
`;
|
|
306
|
-
|
|
307
|
-
const storyTemplate = `# Story Template - ${this.context.type}
|
|
308
|
-
title: "Collaborative Story"
|
|
309
|
-
from_mission: ""
|
|
310
|
-
participants: []
|
|
311
|
-
conversation_threads: []
|
|
312
|
-
validation: "peer_review_all_participants"
|
|
313
|
-
`;
|
|
314
|
-
|
|
315
|
-
await fs.writeFile(path.join(templatesDir, 'mission-template.md'), missionTemplate);
|
|
316
|
-
await fs.writeFile(path.join(templatesDir, 'story-template.md'), storyTemplate);
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
async adaptForScale() {
|
|
320
|
-
await this.delay(1000);
|
|
321
|
-
|
|
322
|
-
// Context-specific messaging
|
|
323
|
-
const messages = {
|
|
324
|
-
'elementary-school': 'š® Your AI study group is ready to help with homework!',
|
|
325
|
-
'university-research': 'š Your academic collaboration partners are initialized!',
|
|
326
|
-
'professional-business': 'š Your AI co-founders are ready to scale your business!',
|
|
327
|
-
'government-agency': 'š¢ Your institutional AI partners are compliant and ready!'
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
console.log(chalk.green('ā
'), messages[this.context.type] || messages['professional-business']);
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
async preserveExistingFunctionality() {
|
|
334
|
-
// Verify no existing files were modified
|
|
335
|
-
const verification = await this.verifyPreservation();
|
|
336
|
-
if (!verification.success) {
|
|
337
|
-
throw new Error('Failed to preserve existing functionality');
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
async verifyPreservation() {
|
|
342
|
-
// Check that all original files are intact
|
|
343
|
-
const originalFiles = this.preservationPlan.preserveFiles;
|
|
344
|
-
for (const file of originalFiles) {
|
|
345
|
-
const exists = fs.existsSync(path.join(this.currentDir, file));
|
|
346
|
-
if (!exists) {
|
|
347
|
-
return { success: false, missing: file };
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
return { success: true };
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
async validateCollaborativeSetup() {
|
|
354
|
-
this.spinner = ora('Validating collaborative setup...').start();
|
|
355
|
-
await this.delay(2000);
|
|
356
|
-
|
|
357
|
-
const validation = {
|
|
358
|
-
dotOneExists: fs.existsSync(path.join(this.currentDir, '.one')),
|
|
359
|
-
spaceConfigExists: fs.existsSync(path.join(this.currentDir, '.one', 'spaces', 'default', 'config.yaml')),
|
|
360
|
-
templatesExist: fs.existsSync(path.join(this.currentDir, '.one', 'templates')),
|
|
361
|
-
originalFilesIntact: (await this.verifyPreservation()).success
|
|
362
|
-
};
|
|
363
|
-
|
|
364
|
-
const allValid = Object.values(validation).every(v => v === true);
|
|
365
|
-
|
|
366
|
-
if (allValid) {
|
|
367
|
-
this.spinner.succeed('Collaborative setup validated successfully');
|
|
368
|
-
} else {
|
|
369
|
-
this.spinner.fail('Validation failed');
|
|
370
|
-
throw new Error('Collaborative setup validation failed');
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
async celebrateCollaborativeIntelligence() {
|
|
375
|
-
console.log(chalk.green('\nš ONE collaborative intelligence installed successfully!\n'));
|
|
376
|
-
|
|
377
|
-
console.log(chalk.blue('š¬ Ready for human-AI collaboration'));
|
|
378
|
-
console.log(chalk.blue('š Complete lifecycle workflow available'));
|
|
379
|
-
console.log(chalk.blue('š Universal scale adaptation active'));
|
|
380
|
-
console.log(chalk.blue('š¤ Equal participation rights enabled'));
|
|
381
|
-
|
|
382
|
-
console.log(chalk.cyan('\n⨠Welcome to true collaborative intelligence!\n'));
|
|
383
|
-
|
|
384
|
-
// Next steps based on context
|
|
385
|
-
this.showNextSteps();
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
showNextSteps() {
|
|
389
|
-
const nextSteps = {
|
|
390
|
-
'elementary-school': [
|
|
391
|
-
'Try: Create your first learning mission',
|
|
392
|
-
'Chat with your AI study partners',
|
|
393
|
-
'Get help with homework and projects'
|
|
394
|
-
],
|
|
395
|
-
'university-research': [
|
|
396
|
-
'Start: Collaborative research project',
|
|
397
|
-
'Work with AI research partners',
|
|
398
|
-
'Develop academic methodology together'
|
|
399
|
-
],
|
|
400
|
-
'professional-business': [
|
|
401
|
-
'Launch: Strategic business mission',
|
|
402
|
-
'Collaborate with AI executive partners',
|
|
403
|
-
'Scale your business with AI intelligence'
|
|
404
|
-
],
|
|
405
|
-
'government-agency': [
|
|
406
|
-
'Begin: Public service mission',
|
|
407
|
-
'Partner with compliant AI agents',
|
|
408
|
-
'Develop policy with full transparency'
|
|
409
|
-
]
|
|
410
|
-
};
|
|
411
|
-
|
|
412
|
-
const steps = nextSteps[this.context.type] || nextSteps['professional-business'];
|
|
413
|
-
|
|
414
|
-
console.log(chalk.yellow('š Next Steps:'));
|
|
415
|
-
steps.forEach((step, index) => {
|
|
416
|
-
console.log(chalk.white(` ${index + 1}. ${step}`));
|
|
417
|
-
});
|
|
418
|
-
|
|
419
|
-
console.log(chalk.gray('\nš Learn more: https://one.ie/collaborative-intelligence'));
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
delay(ms) {
|
|
423
|
-
return new Promise(resolve => setTimeout(resolve, ms));
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
// Main execution
|
|
428
|
-
async function main() {
|
|
429
|
-
const installer = new CollaborativeInstaller();
|
|
430
|
-
await installer.install();
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
// Handle uncaught errors
|
|
434
|
-
process.on('unhandledRejection', (error) => {
|
|
435
|
-
console.error(chalk.red('\nā Unexpected error:'), error.message);
|
|
436
|
-
process.exit(1);
|
|
437
|
-
});
|
|
438
|
-
|
|
439
|
-
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
440
|
-
main().catch(console.error);
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
export { CollaborativeInstaller };
|
package/one/core-config.yaml
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
# Core Configuration for ONE System Development
|
|
2
|
-
|
|
3
|
-
project:
|
|
4
|
-
name: "ONE System - Viral Growth Engine"
|
|
5
|
-
version: "3.0.0"
|
|
6
|
-
description: "AI-powered viral content multiplication infrastructure"
|
|
7
|
-
|
|
8
|
-
development:
|
|
9
|
-
node_version: ">=20.0.0"
|
|
10
|
-
package_manager: "npm"
|
|
11
|
-
test_framework: "vitest"
|
|
12
|
-
linting: "eslint"
|
|
13
|
-
formatting: "prettier"
|
|
14
|
-
|
|
15
|
-
devLoadAlwaysFiles:
|
|
16
|
-
- "one/ontology.md"
|
|
17
|
-
- "one/data/elevate-methodology.md"
|
|
18
|
-
- "one/workflows/elevate-greenfield-workflow.yaml"
|
|
19
|
-
|
|
20
|
-
architecture:
|
|
21
|
-
type: "modular_ai_agents"
|
|
22
|
-
pattern: "orchestrator_specialist"
|
|
23
|
-
scaling: "horizontal_vertical"
|
|
24
|
-
|
|
25
|
-
viral_infrastructure:
|
|
26
|
-
content_multiplication:
|
|
27
|
-
base_cost: 0.01
|
|
28
|
-
variation_cost: 0.10
|
|
29
|
-
adaptation_cost: 1.00
|
|
30
|
-
personalization_cost: 10.00
|
|
31
|
-
|
|
32
|
-
metrics:
|
|
33
|
-
k_factor_target: 1.5
|
|
34
|
-
viral_cycle_target: 24 # hours
|
|
35
|
-
amplification_target: 100
|
|
36
|
-
share_velocity_target: 10 # per hour
|
|
37
|
-
|
|
38
|
-
agents:
|
|
39
|
-
viral_growth_orchestrator: "coordinates viral activities"
|
|
40
|
-
content_multiplication_engine: "scales content 1:1000"
|
|
41
|
-
share_optimization_specialist: "maximizes viral coefficients"
|
|
42
|
-
network_effect_analyst: "measures network growth"
|
|
43
|
-
advocacy_activation_manager: "converts customers to promoters"
|
|
44
|
-
|
|
45
|
-
tech_stack:
|
|
46
|
-
runtime: "node.js"
|
|
47
|
-
ai_processing: "natural_language_processing"
|
|
48
|
-
personalization: "user_profiling"
|
|
49
|
-
distribution: "multi_channel_api"
|
|
50
|
-
analytics: "real_time_streaming"
|
|
51
|
-
|
|
52
|
-
directories:
|
|
53
|
-
missions: "one/missions"
|
|
54
|
-
stories: "one/stories"
|
|
55
|
-
agents: "one/agents"
|
|
56
|
-
agent_teams: "one/agent-teams"
|
|
57
|
-
checklists: "one/checklists"
|
|
58
|
-
tools: "one/tools"
|
|
59
|
-
tests: "one/tests"
|
|
60
|
-
templates: "one/templates"
|
|
61
|
-
workflows: "one/workflows"
|
|
62
|
-
tasks: "one/tasks"
|
|
63
|
-
data: "one/data"
|
|
64
|
-
playbooks: "one/playbooks"
|
|
65
|
-
|
|
66
|
-
testing:
|
|
67
|
-
unit_tests: "vitest"
|
|
68
|
-
integration_tests: "vitest"
|
|
69
|
-
load_tests: "custom"
|
|
70
|
-
viral_tests: "ab_testing"
|
|
71
|
-
coverage_minimum: 80
|
|
72
|
-
|
|
73
|
-
deployment:
|
|
74
|
-
environment: "node"
|
|
75
|
-
scaling: "horizontal"
|
|
76
|
-
monitoring: "real_time_metrics"
|
|
77
|
-
|
|
78
|
-
quality_standards:
|
|
79
|
-
code_style: "prettier"
|
|
80
|
-
documentation: "inline_jsdoc"
|
|
81
|
-
security: "input_validation"
|
|
82
|
-
performance: "10000_content_pieces_per_day"
|
|
83
|
-
|
|
84
|
-
viral_mechanics:
|
|
85
|
-
triggers:
|
|
86
|
-
emotional_resonance: 0.8
|
|
87
|
-
practical_value: 0.7
|
|
88
|
-
social_currency: 0.6
|
|
89
|
-
|
|
90
|
-
formats:
|
|
91
|
-
- "micro_content"
|
|
92
|
-
- "visual_stories"
|
|
93
|
-
- "mini_tools"
|
|
94
|
-
- "social_proof"
|
|
95
|
-
- "knowledge_nuggets"
|
|
96
|
-
|
|
97
|
-
channels:
|
|
98
|
-
- "blog_to_social"
|
|
99
|
-
- "email_to_sms"
|
|
100
|
-
- "video_to_gif"
|
|
101
|
-
- "podcast_to_snippet"
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Direct agent access: npx one:agent
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { exec } from 'child_process';
|
|
7
|
-
import { promisify } from 'util';
|
|
8
|
-
|
|
9
|
-
const execAsync = promisify(exec);
|
|
10
|
-
|
|
11
|
-
async function main() {
|
|
12
|
-
try {
|
|
13
|
-
const args = process.argv.slice(2);
|
|
14
|
-
const command = `node one/tools/cli.js one:agent ${args.join(' ')}`;
|
|
15
|
-
const { stdout, stderr } = await execAsync(command);
|
|
16
|
-
|
|
17
|
-
if (stdout) console.log(stdout);
|
|
18
|
-
if (stderr) console.error(stderr);
|
|
19
|
-
} catch (error) {
|
|
20
|
-
console.error('Error:', error.message);
|
|
21
|
-
process.exit(1);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
main();
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Direct mission access: npx one:mission
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { exec } from 'child_process';
|
|
7
|
-
import { promisify } from 'util';
|
|
8
|
-
|
|
9
|
-
const execAsync = promisify(exec);
|
|
10
|
-
|
|
11
|
-
async function main() {
|
|
12
|
-
try {
|
|
13
|
-
const args = process.argv.slice(2);
|
|
14
|
-
const command = `node one/tools/cli.js one:mission ${args.join(' ')}`;
|
|
15
|
-
const { stdout, stderr } = await execAsync(command);
|
|
16
|
-
|
|
17
|
-
if (stdout) console.log(stdout);
|
|
18
|
-
if (stderr) console.error(stderr);
|
|
19
|
-
} catch (error) {
|
|
20
|
-
console.error('Error:', error.message);
|
|
21
|
-
process.exit(1);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
main();
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Direct playbook access: npx one:playbook
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { exec } from 'child_process';
|
|
7
|
-
import { promisify } from 'util';
|
|
8
|
-
|
|
9
|
-
const execAsync = promisify(exec);
|
|
10
|
-
|
|
11
|
-
async function main() {
|
|
12
|
-
try {
|
|
13
|
-
const args = process.argv.slice(2);
|
|
14
|
-
const command = `node one/tools/cli.js one:playbook ${args.join(' ')}`;
|
|
15
|
-
const { stdout, stderr } = await execAsync(command);
|
|
16
|
-
|
|
17
|
-
if (stdout) console.log(stdout);
|
|
18
|
-
if (stderr) console.error(stderr);
|
|
19
|
-
} catch (error) {
|
|
20
|
-
console.error('Error:', error.message);
|
|
21
|
-
process.exit(1);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
main();
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Direct story access: npx one:story
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { exec } from 'child_process';
|
|
7
|
-
import { promisify } from 'util';
|
|
8
|
-
|
|
9
|
-
const execAsync = promisify(exec);
|
|
10
|
-
|
|
11
|
-
async function main() {
|
|
12
|
-
try {
|
|
13
|
-
const args = process.argv.slice(2);
|
|
14
|
-
const command = `node one/tools/cli.js one:story ${args.join(' ')}`;
|
|
15
|
-
const { stdout, stderr } = await execAsync(command);
|
|
16
|
-
|
|
17
|
-
if (stdout) console.log(stdout);
|
|
18
|
-
if (stderr) console.error(stderr);
|
|
19
|
-
} catch (error) {
|
|
20
|
-
console.error('Error:', error.message);
|
|
21
|
-
process.exit(1);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
main();
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Direct team access: npx one:team
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { exec } from 'child_process';
|
|
7
|
-
import { promisify } from 'util';
|
|
8
|
-
|
|
9
|
-
const execAsync = promisify(exec);
|
|
10
|
-
|
|
11
|
-
async function main() {
|
|
12
|
-
try {
|
|
13
|
-
const args = process.argv.slice(2);
|
|
14
|
-
const command = `node one/tools/cli.js one:agent-team ${args.join(' ')}`;
|
|
15
|
-
const { stdout, stderr } = await execAsync(command);
|
|
16
|
-
|
|
17
|
-
if (stdout) console.log(stdout);
|
|
18
|
-
if (stderr) console.error(stderr);
|
|
19
|
-
} catch (error) {
|
|
20
|
-
console.error('Error:', error.message);
|
|
21
|
-
process.exit(1);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
main();
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Direct tools access: npx one:tools
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { exec } from 'child_process';
|
|
7
|
-
import { promisify } from 'util';
|
|
8
|
-
|
|
9
|
-
const execAsync = promisify(exec);
|
|
10
|
-
|
|
11
|
-
async function main() {
|
|
12
|
-
try {
|
|
13
|
-
const args = process.argv.slice(2);
|
|
14
|
-
const command = `node one/tools/cli.js one:tool ${args.join(' ')}`;
|
|
15
|
-
const { stdout, stderr } = await execAsync(command);
|
|
16
|
-
|
|
17
|
-
if (stdout) console.log(stdout);
|
|
18
|
-
if (stderr) console.error(stderr);
|
|
19
|
-
} catch (error) {
|
|
20
|
-
console.error('Error:', error.message);
|
|
21
|
-
process.exit(1);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
main();
|