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
package/lib/validator.js
ADDED
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
const fs = require('fs-extra');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const chalk = require('chalk');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Validates ONE installation completeness and correctness
|
|
7
|
+
* @param {Object} progress - Progress bar instance
|
|
8
|
+
*/
|
|
9
|
+
async function validateInstallation(progress) {
|
|
10
|
+
const validationResults = {
|
|
11
|
+
passed: 0,
|
|
12
|
+
failed: 0,
|
|
13
|
+
warnings: 0,
|
|
14
|
+
details: []
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const validations = [
|
|
18
|
+
{ name: 'Directory Structure', fn: validateDirectoryStructure },
|
|
19
|
+
{ name: 'Me Configuration', fn: validateMeConfiguration },
|
|
20
|
+
{ name: 'Agent Setup', fn: validateAgentSetup },
|
|
21
|
+
{ name: 'CLI Integration', fn: validateCLIIntegration },
|
|
22
|
+
{ name: 'Package Integration', fn: validatePackageIntegration },
|
|
23
|
+
{ name: 'File Permissions', fn: validateFilePermissions }
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
for (const validation of validations) {
|
|
27
|
+
try {
|
|
28
|
+
const result = await validation.fn();
|
|
29
|
+
if (result.passed) {
|
|
30
|
+
validationResults.passed++;
|
|
31
|
+
} else {
|
|
32
|
+
validationResults.failed++;
|
|
33
|
+
}
|
|
34
|
+
validationResults.details.push({
|
|
35
|
+
name: validation.name,
|
|
36
|
+
...result
|
|
37
|
+
});
|
|
38
|
+
} catch (error) {
|
|
39
|
+
validationResults.failed++;
|
|
40
|
+
validationResults.details.push({
|
|
41
|
+
name: validation.name,
|
|
42
|
+
passed: false,
|
|
43
|
+
message: error.message,
|
|
44
|
+
severity: 'error'
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
progress.update(100);
|
|
50
|
+
|
|
51
|
+
// Display validation results
|
|
52
|
+
displayValidationResults(validationResults);
|
|
53
|
+
|
|
54
|
+
return validationResults;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function validateDirectoryStructure() {
|
|
58
|
+
const requiredDirs = [
|
|
59
|
+
'.one',
|
|
60
|
+
'.one/core',
|
|
61
|
+
'.one/agents',
|
|
62
|
+
'.one/workflows',
|
|
63
|
+
'.one/apps',
|
|
64
|
+
'one',
|
|
65
|
+
'one/agents',
|
|
66
|
+
'one/spaces',
|
|
67
|
+
'one/missions',
|
|
68
|
+
'one/stories',
|
|
69
|
+
'one/tools',
|
|
70
|
+
'me',
|
|
71
|
+
'me/assets',
|
|
72
|
+
'me/themes'
|
|
73
|
+
];
|
|
74
|
+
|
|
75
|
+
const missing = [];
|
|
76
|
+
|
|
77
|
+
for (const dir of requiredDirs) {
|
|
78
|
+
if (!await fs.pathExists(dir)) {
|
|
79
|
+
missing.push(dir);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
passed: missing.length === 0,
|
|
85
|
+
message: missing.length > 0
|
|
86
|
+
? `Missing directories: ${missing.join(', ')}`
|
|
87
|
+
: 'All required directories present',
|
|
88
|
+
severity: missing.length > 0 ? 'error' : 'success',
|
|
89
|
+
details: { missing, required: requiredDirs.length, found: requiredDirs.length - missing.length }
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
async function validateMeConfiguration() {
|
|
94
|
+
const mePath = path.join(process.cwd(), 'me', 'me.md');
|
|
95
|
+
|
|
96
|
+
if (!await fs.pathExists(mePath)) {
|
|
97
|
+
return {
|
|
98
|
+
passed: false,
|
|
99
|
+
message: 'me/me.md file not found',
|
|
100
|
+
severity: 'error'
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
try {
|
|
105
|
+
const content = await fs.readFile(mePath, 'utf8');
|
|
106
|
+
const issues = [];
|
|
107
|
+
|
|
108
|
+
// Check for required sections
|
|
109
|
+
const requiredSections = [
|
|
110
|
+
'company:',
|
|
111
|
+
'brand:',
|
|
112
|
+
'top_agents:',
|
|
113
|
+
'spaces:',
|
|
114
|
+
'goals:'
|
|
115
|
+
];
|
|
116
|
+
|
|
117
|
+
for (const section of requiredSections) {
|
|
118
|
+
if (!content.includes(section)) {
|
|
119
|
+
issues.push(`Missing section: ${section}`);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Check for basic YAML structure
|
|
124
|
+
if (!content.includes('---') && content.includes(':')) {
|
|
125
|
+
issues.push('Consider using YAML frontmatter for better structure');
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
passed: issues.length === 0,
|
|
130
|
+
message: issues.length > 0
|
|
131
|
+
? `Configuration issues: ${issues.join(', ')}`
|
|
132
|
+
: 'me.md configuration is valid',
|
|
133
|
+
severity: issues.length > 0 ? 'warning' : 'success',
|
|
134
|
+
details: { issues, size: content.length }
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
} catch (error) {
|
|
138
|
+
return {
|
|
139
|
+
passed: false,
|
|
140
|
+
message: `Failed to read me.md: ${error.message}`,
|
|
141
|
+
severity: 'error'
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
async function validateAgentSetup() {
|
|
147
|
+
const agentsDir = path.join(process.cwd(), 'one', 'agents');
|
|
148
|
+
|
|
149
|
+
if (!await fs.pathExists(agentsDir)) {
|
|
150
|
+
return {
|
|
151
|
+
passed: false,
|
|
152
|
+
message: 'Agents directory not found',
|
|
153
|
+
severity: 'error'
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
try {
|
|
158
|
+
const agentFiles = await fs.readdir(agentsDir);
|
|
159
|
+
const yamlFiles = agentFiles.filter(f => f.endsWith('.yaml') || f.endsWith('.yml'));
|
|
160
|
+
|
|
161
|
+
if (yamlFiles.length === 0) {
|
|
162
|
+
return {
|
|
163
|
+
passed: false,
|
|
164
|
+
message: 'No agent configuration files found',
|
|
165
|
+
severity: 'error'
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// Validate at least one agent has slot 1 (ARIA)
|
|
170
|
+
let hasSlot1 = false;
|
|
171
|
+
const invalidAgents = [];
|
|
172
|
+
|
|
173
|
+
for (const file of yamlFiles) {
|
|
174
|
+
try {
|
|
175
|
+
const content = await fs.readFile(path.join(agentsDir, file), 'utf8');
|
|
176
|
+
if (content.includes('slot: 1')) {
|
|
177
|
+
hasSlot1 = true;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// Basic validation - check for required fields
|
|
181
|
+
const required = ['name:', 'role:', 'personality:'];
|
|
182
|
+
const missing = required.filter(field => !content.includes(field));
|
|
183
|
+
if (missing.length > 0) {
|
|
184
|
+
invalidAgents.push(`${file}: missing ${missing.join(', ')}`);
|
|
185
|
+
}
|
|
186
|
+
} catch (error) {
|
|
187
|
+
invalidAgents.push(`${file}: ${error.message}`);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
const issues = [];
|
|
192
|
+
if (!hasSlot1) issues.push('No agent assigned to slot 1 (Primary Assistant)');
|
|
193
|
+
if (invalidAgents.length > 0) issues.push(...invalidAgents);
|
|
194
|
+
|
|
195
|
+
return {
|
|
196
|
+
passed: issues.length === 0,
|
|
197
|
+
message: issues.length > 0
|
|
198
|
+
? `Agent issues: ${issues.join('; ')}`
|
|
199
|
+
: `${yamlFiles.length} agents configured successfully`,
|
|
200
|
+
severity: issues.length > 0 ? 'error' : 'success',
|
|
201
|
+
details: { agentCount: yamlFiles.length, hasSlot1, invalidAgents }
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
} catch (error) {
|
|
205
|
+
return {
|
|
206
|
+
passed: false,
|
|
207
|
+
message: `Failed to validate agents: ${error.message}`,
|
|
208
|
+
severity: 'error'
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
async function validateCLIIntegration() {
|
|
214
|
+
const cliPath = path.join(process.cwd(), 'one', 'tools', 'cli.js');
|
|
215
|
+
|
|
216
|
+
if (!await fs.pathExists(cliPath)) {
|
|
217
|
+
return {
|
|
218
|
+
passed: false,
|
|
219
|
+
message: 'CLI integration file not found',
|
|
220
|
+
severity: 'error'
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
try {
|
|
225
|
+
const content = await fs.readFile(cliPath, 'utf8');
|
|
226
|
+
const issues = [];
|
|
227
|
+
|
|
228
|
+
// Check for required CLI features
|
|
229
|
+
const requiredFeatures = [
|
|
230
|
+
'dashboard',
|
|
231
|
+
'generate',
|
|
232
|
+
'dev',
|
|
233
|
+
'publish',
|
|
234
|
+
'agents'
|
|
235
|
+
];
|
|
236
|
+
|
|
237
|
+
for (const feature of requiredFeatures) {
|
|
238
|
+
if (!content.includes(feature)) {
|
|
239
|
+
issues.push(`Missing CLI command: ${feature}`);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// Check if file is executable
|
|
244
|
+
try {
|
|
245
|
+
const stats = await fs.stat(cliPath);
|
|
246
|
+
const isExecutable = (stats.mode & parseInt('111', 8)) !== 0;
|
|
247
|
+
if (!isExecutable) {
|
|
248
|
+
issues.push('CLI file is not executable');
|
|
249
|
+
}
|
|
250
|
+
} catch (error) {
|
|
251
|
+
issues.push('Cannot check CLI file permissions');
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
return {
|
|
255
|
+
passed: issues.length === 0,
|
|
256
|
+
message: issues.length > 0
|
|
257
|
+
? `CLI issues: ${issues.join(', ')}`
|
|
258
|
+
: 'CLI integration is properly configured',
|
|
259
|
+
severity: issues.length > 0 ? 'warning' : 'success',
|
|
260
|
+
details: { issues, size: content.length }
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
} catch (error) {
|
|
264
|
+
return {
|
|
265
|
+
passed: false,
|
|
266
|
+
message: `Failed to validate CLI: ${error.message}`,
|
|
267
|
+
severity: 'error'
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
async function validatePackageIntegration() {
|
|
273
|
+
const packagePath = path.join(process.cwd(), 'package.json');
|
|
274
|
+
|
|
275
|
+
if (!await fs.pathExists(packagePath)) {
|
|
276
|
+
return {
|
|
277
|
+
passed: false,
|
|
278
|
+
message: 'package.json not found',
|
|
279
|
+
severity: 'error'
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
try {
|
|
284
|
+
const pkg = await fs.readJSON(packagePath);
|
|
285
|
+
const issues = [];
|
|
286
|
+
|
|
287
|
+
// Check for ONE scripts
|
|
288
|
+
const requiredScripts = [
|
|
289
|
+
'one',
|
|
290
|
+
'one:generate',
|
|
291
|
+
'one:dev',
|
|
292
|
+
'one:publish'
|
|
293
|
+
];
|
|
294
|
+
|
|
295
|
+
for (const script of requiredScripts) {
|
|
296
|
+
if (!pkg.scripts || !pkg.scripts[script]) {
|
|
297
|
+
issues.push(`Missing script: ${script}`);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
// Check for ONE configuration
|
|
302
|
+
if (!pkg.one) {
|
|
303
|
+
issues.push('Missing ONE configuration section');
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// Check Node.js version requirement
|
|
307
|
+
if (!pkg.engines || !pkg.engines.node) {
|
|
308
|
+
issues.push('Missing Node.js version requirement');
|
|
309
|
+
} else {
|
|
310
|
+
const nodeVersion = pkg.engines.node;
|
|
311
|
+
if (!nodeVersion.includes('18') && !nodeVersion.includes('>=18')) {
|
|
312
|
+
issues.push('Node.js version should be >=18.0.0');
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
return {
|
|
317
|
+
passed: issues.length === 0,
|
|
318
|
+
message: issues.length > 0
|
|
319
|
+
? `Package issues: ${issues.join(', ')}`
|
|
320
|
+
: 'Package.json is properly configured for ONE',
|
|
321
|
+
severity: issues.length === 0 ? 'success' : 'warning',
|
|
322
|
+
details: {
|
|
323
|
+
issues,
|
|
324
|
+
hasONEConfig: !!pkg.one,
|
|
325
|
+
scriptCount: pkg.scripts ? Object.keys(pkg.scripts).length : 0
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
} catch (error) {
|
|
330
|
+
return {
|
|
331
|
+
passed: false,
|
|
332
|
+
message: `Failed to validate package.json: ${error.message}`,
|
|
333
|
+
severity: 'error'
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
async function validateFilePermissions() {
|
|
339
|
+
const criticalFiles = [
|
|
340
|
+
'one/tools/cli.js',
|
|
341
|
+
'me/me.md'
|
|
342
|
+
];
|
|
343
|
+
|
|
344
|
+
const issues = [];
|
|
345
|
+
|
|
346
|
+
for (const file of criticalFiles) {
|
|
347
|
+
try {
|
|
348
|
+
if (await fs.pathExists(file)) {
|
|
349
|
+
const stats = await fs.stat(file);
|
|
350
|
+
|
|
351
|
+
// Check if file is readable
|
|
352
|
+
try {
|
|
353
|
+
await fs.access(file, fs.constants.R_OK);
|
|
354
|
+
} catch (error) {
|
|
355
|
+
issues.push(`${file} is not readable`);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
// Check if CLI is executable
|
|
359
|
+
if (file.includes('cli.js')) {
|
|
360
|
+
try {
|
|
361
|
+
await fs.access(file, fs.constants.X_OK);
|
|
362
|
+
} catch (error) {
|
|
363
|
+
issues.push(`${file} is not executable`);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
// Check if me.md is writable
|
|
368
|
+
if (file.includes('me.md')) {
|
|
369
|
+
try {
|
|
370
|
+
await fs.access(file, fs.constants.W_OK);
|
|
371
|
+
} catch (error) {
|
|
372
|
+
issues.push(`${file} is not writable`);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
} else {
|
|
376
|
+
issues.push(`${file} does not exist`);
|
|
377
|
+
}
|
|
378
|
+
} catch (error) {
|
|
379
|
+
issues.push(`Cannot check ${file}: ${error.message}`);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
return {
|
|
384
|
+
passed: issues.length === 0,
|
|
385
|
+
message: issues.length > 0
|
|
386
|
+
? `Permission issues: ${issues.join(', ')}`
|
|
387
|
+
: 'All file permissions are correct',
|
|
388
|
+
severity: issues.length > 0 ? 'warning' : 'success',
|
|
389
|
+
details: { issues, checkedFiles: criticalFiles.length }
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
function displayValidationResults(results) {
|
|
394
|
+
console.log(chalk.white('\\n🔍 Installation Validation Results:\\n'));
|
|
395
|
+
|
|
396
|
+
for (const detail of results.details) {
|
|
397
|
+
const icon = detail.passed ? '✅' : '❌';
|
|
398
|
+
const color = detail.severity === 'error' ? chalk.red :
|
|
399
|
+
detail.severity === 'warning' ? chalk.yellow : chalk.green;
|
|
400
|
+
|
|
401
|
+
console.log(`${icon} ${chalk.white(detail.name)}: ${color(detail.message)}`);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
const totalChecks = results.passed + results.failed;
|
|
405
|
+
const successRate = Math.round((results.passed / totalChecks) * 100);
|
|
406
|
+
|
|
407
|
+
console.log(chalk.white(`\\n📊 Validation Summary:`));
|
|
408
|
+
console.log(chalk.green(`✅ Passed: ${results.passed}`));
|
|
409
|
+
console.log(chalk.red(`❌ Failed: ${results.failed}`));
|
|
410
|
+
console.log(chalk.white(`📈 Success Rate: ${successRate}%`));
|
|
411
|
+
|
|
412
|
+
if (results.failed === 0) {
|
|
413
|
+
console.log(chalk.green('\\n🎉 Installation validation passed! Your ONE universe is ready.'));
|
|
414
|
+
} else {
|
|
415
|
+
console.log(chalk.yellow('\\n⚠️ Some issues detected. Please review and fix before proceeding.'));
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
module.exports = { validateInstallation };
|
package/package.json
CHANGED
|
@@ -1,165 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oneie",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "Universal AI system installer - Simple blocks, infinite possibilities",
|
|
5
|
+
"keywords": ["ai", "agents", "collaboration", "cli", "installer", "productivity", "automation", "universal"],
|
|
6
|
+
"main": "index.js",
|
|
5
7
|
"type": "module",
|
|
6
|
-
"main": "one/tools/one-cli.js",
|
|
7
8
|
"bin": {
|
|
8
|
-
"oneie": "bin/
|
|
9
|
-
"one:agent": "one/tools/bin/one-agent.js",
|
|
10
|
-
"one:mission": "one/tools/bin/one-mission.js",
|
|
11
|
-
"one:story": "one/tools/bin/one-story.js",
|
|
12
|
-
"one:team": "one/tools/bin/one-team.js",
|
|
13
|
-
"one:playbook": "one/tools/bin/one-playbook.js",
|
|
14
|
-
"one:tools": "one/tools/bin/one-tools.js"
|
|
9
|
+
"oneie": "./bin/install.js"
|
|
15
10
|
},
|
|
16
11
|
"scripts": {
|
|
17
|
-
"
|
|
18
|
-
"build
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
"contents": "node one/tools/playbook-generator/commands/contents.js",
|
|
32
|
-
"contents:bullstamp": "node one/tools/playbook-generator/commands/contents.js one/playbooks/clients/bullstamp",
|
|
33
|
-
"contents:crypto": "node one/tools/playbook-generator/commands/contents.js one/playbooks/industries/crypto",
|
|
34
|
-
"generate": "node one/tools/playbook-generator/commands/generate.js",
|
|
35
|
-
"generate:bullstamp": "node one/tools/playbook-generator/commands/generate.js one/playbooks/clients/bullstamp/contents.yaml",
|
|
36
|
-
"generate:bullstamp:enhanced": "node one/tools/playbook-generator/commands/generate.js one/playbooks/clients/bullstamp/contents.yaml --enhanced-pdf-only",
|
|
37
|
-
"generate:bullstamp:chapters": "node one/tools/playbook-generator/commands/generate-chapters.js one/playbooks/clients/bullstamp/chapters/",
|
|
38
|
-
"generate:bullstamp:premium": "node one/tools/playbook-generator/commands/generate-chapters.js one/playbooks/clients/bullstamp/chapters/ --all-formats --verbose",
|
|
39
|
-
"generate:bullstamp:beautiful": "node one/tools/playbook-generator/commands/generate-chapters.js one/playbooks/clients/bullstamp/chapters/ --beautiful-pdf --verbose",
|
|
40
|
-
"generate:bullstamp:complete": "node one/tools/playbook-generator/commands/generate-complete-package.js one/playbooks/clients/bullstamp/chapters/ --verbose",
|
|
41
|
-
"generate:crypto": "node one/tools/playbook-generator/commands/generate.js one/playbooks/industries/crypto/contents.yaml",
|
|
42
|
-
"generate:crypto:enhanced": "node one/tools/playbook-generator/commands/generate.js one/playbooks/industries/crypto/contents.yaml --enhanced-pdf-only",
|
|
43
|
-
"test": "vitest run one/tests/",
|
|
44
|
-
"test:watch": "vitest one/tests/",
|
|
45
|
-
"test:coverage": "vitest run --coverage one/tests/",
|
|
46
|
-
"test:ui": "vitest --ui one/tests/",
|
|
47
|
-
"install:one": "node one/tools/installer/bin/one.js install",
|
|
48
|
-
"format": "prettier --write \"**/*.md\"",
|
|
49
|
-
"version:patch": "node one/tools/version-bump.js patch",
|
|
50
|
-
"version:minor": "node one/tools/version-bump.js minor",
|
|
51
|
-
"version:major": "node one/tools/version-bump.js major",
|
|
52
|
-
"version:core": "node one/tools/bump-core-version.js",
|
|
53
|
-
"version:core:major": "node one/tools/bump-core-version.js major",
|
|
54
|
-
"version:core:minor": "node one/tools/bump-core-version.js minor",
|
|
55
|
-
"version:core:patch": "node one/tools/bump-core-version.js patch",
|
|
56
|
-
"version:expansion": "node one/tools/bump-expansion-version.js",
|
|
57
|
-
"version:expansion:set": "node one/tools/update-expansion-version.js",
|
|
58
|
-
"version:all": "node one/tools/bump-all-versions.js",
|
|
59
|
-
"version:all:minor": "node one/tools/bump-all-versions.js minor",
|
|
60
|
-
"version:all:major": "node one/tools/bump-all-versions.js major",
|
|
61
|
-
"version:all:patch": "node one/tools/bump-all-versions.js patch",
|
|
62
|
-
"version:expansion:all": "node one/tools/bump-all-versions.js",
|
|
63
|
-
"version:expansion:all:minor": "node one/tools/bump-all-versions.js minor",
|
|
64
|
-
"version:expansion:all:major": "node one/tools/bump-all-versions.js major",
|
|
65
|
-
"version:expansion:all:patch": "node one/tools/bump-all-versions.js patch",
|
|
66
|
-
"story": "node story-writing-interface.js",
|
|
67
|
-
"story:writer": "node story-writing-interface.js",
|
|
68
|
-
"convert-wav": "node one/tools/convert-wav-to-mp3.js",
|
|
69
|
-
"convert-wav:bullstamp": "node one/tools/convert-wav-to-mp3.js one/playbooks/clients/bullstamp/images --directory",
|
|
70
|
-
"text-to-speech": "node one/tools/text-to-speech.js",
|
|
71
|
-
"tts:bullstamp-foundation": "node one/tools/text-to-speech.js one/playbooks/clients/bullstamp/1-foundation/bullstamp-foundation-playbook.md",
|
|
72
|
-
"pdf:convert": "python3 one/tools/enhanced-pdf-converter.py",
|
|
73
|
-
"pdf:bullstamp-character": "python3 one/tools/enhanced-pdf-converter.py one/playbooks/clients/bullstamp/1-foundation/character/1.0-the-bull-character-guide.md",
|
|
74
|
-
"pdf:bullstamp-foundation": "python3 one/tools/enhanced-pdf-converter.py one/playbooks/clients/bullstamp/1-foundation/bullstamp-foundation-playbook.md",
|
|
75
|
-
"one:pdf": "node one/tools/cli.js one:pdf",
|
|
76
|
-
"one:formats": "node one/tools/cli.js one:formats",
|
|
77
|
-
"formats:all": "node one/tools/cli.js one:formats --format all",
|
|
78
|
-
"formats:md": "node one/tools/cli.js one:formats --format md",
|
|
79
|
-
"formats:docx": "node one/tools/cli.js one:formats --format docx",
|
|
80
|
-
"formats:epub": "node one/tools/cli.js one:formats --format epub",
|
|
81
|
-
"formats:pdf": "node one/tools/cli.js one:formats --format pdf",
|
|
82
|
-
"spiral": "node one/tools/cli.js spiral",
|
|
83
|
-
"spiral:demo": "node one/tools/cli.js spiral --demo",
|
|
84
|
-
"spiral:test": "node one/tools/cli.js spiral --test",
|
|
85
|
-
"spiral:info": "node one/tools/cli.js spiral --info",
|
|
86
|
-
"bull-character:all": "python3 one/tools/bull-character-multi-format.py && python3 one/tools/bull-character-docx-epub.py && python3 one/tools/merge-bull-pdfs.py",
|
|
87
|
-
"bull-character:md": "python3 one/tools/bull-character-multi-format.py",
|
|
88
|
-
"bull-character:docx-epub": "python3 one/tools/bull-character-docx-epub.py",
|
|
89
|
-
"bull-character:pdf": "python3 one/tools/merge-bull-pdfs.py",
|
|
90
|
-
"playbook-generator": "node one/tools/cli.js playbook-generator",
|
|
91
|
-
"one:playbook": "node one/tools/cli.js one:playbook",
|
|
92
|
-
"release": "semantic-release",
|
|
93
|
-
"release:test": "semantic-release --dry-run --no-ci || echo 'Config test complete - authentication errors are expected locally'",
|
|
94
|
-
"prepare": "husky"
|
|
12
|
+
"test": "vitest",
|
|
13
|
+
"build": "node scripts/build.js",
|
|
14
|
+
"dev": "node bin/install.js",
|
|
15
|
+
"lint": "eslint .",
|
|
16
|
+
"format": "prettier --write ."
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"bin/",
|
|
20
|
+
"lib/",
|
|
21
|
+
"templates/",
|
|
22
|
+
"assets/"
|
|
23
|
+
],
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=18.0.0"
|
|
95
26
|
},
|
|
96
27
|
"dependencies": {
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
28
|
+
"chalk": "^5.3.0",
|
|
29
|
+
"ora": "^8.0.1",
|
|
30
|
+
"prompts": "^2.4.2",
|
|
31
|
+
"fs-extra": "^11.2.0",
|
|
32
|
+
"semver": "^7.5.4",
|
|
102
33
|
"figlet": "^1.7.0",
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"inquirer": "^12.6.3",
|
|
106
|
-
"js-yaml": "^4.1.0",
|
|
107
|
-
"markdown": "^0.5.0",
|
|
108
|
-
"ora": "^8.2.0",
|
|
109
|
-
"puppeteer": "^21.5.0"
|
|
34
|
+
"gradient-string": "^2.0.2",
|
|
35
|
+
"cli-progress": "^3.12.0"
|
|
110
36
|
},
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"claude-code",
|
|
121
|
-
"workflows",
|
|
122
|
-
"quality-gates",
|
|
123
|
-
"cross-functional",
|
|
124
|
-
"story-driven",
|
|
125
|
-
"framework",
|
|
126
|
-
"productivity",
|
|
127
|
-
"collaboration"
|
|
128
|
-
],
|
|
129
|
-
"author": {
|
|
130
|
-
"name": "Anthony O'Connell",
|
|
131
|
-
"email": "tony@one.ie",
|
|
132
|
-
"url": "https://one.ie"
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"vitest": "^1.2.0",
|
|
39
|
+
"eslint": "^8.56.0",
|
|
40
|
+
"prettier": "^3.2.0",
|
|
41
|
+
"@types/node": "^20.10.0"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"@one/core": "^1.0.0",
|
|
45
|
+
"me-engine-one": "^1.0.0"
|
|
133
46
|
},
|
|
47
|
+
"author": "ONE Team",
|
|
134
48
|
"license": "MIT",
|
|
49
|
+
"homepage": "https://one.ie",
|
|
135
50
|
"repository": {
|
|
136
51
|
"type": "git",
|
|
137
|
-
"url": "
|
|
52
|
+
"url": "https://github.com/oneie/oneie.git"
|
|
138
53
|
},
|
|
139
|
-
"homepage": "https://github.com/one-ie/one#readme",
|
|
140
54
|
"bugs": {
|
|
141
|
-
"url": "https://github.com/
|
|
142
|
-
},
|
|
143
|
-
"engines": {
|
|
144
|
-
"node": ">=20.0.0"
|
|
145
|
-
},
|
|
146
|
-
"devDependencies": {
|
|
147
|
-
"@semantic-release/changelog": "^6.0.3",
|
|
148
|
-
"@semantic-release/git": "^10.0.1",
|
|
149
|
-
"@vitest/coverage-v8": "^3.2.4",
|
|
150
|
-
"@vitest/ui": "^3.2.4",
|
|
151
|
-
"c8": "^10.1.3",
|
|
152
|
-
"husky": "^9.1.7",
|
|
153
|
-
"lint-staged": "^16.1.1",
|
|
154
|
-
"prettier": "^3.5.3",
|
|
155
|
-
"semantic-release": "^22.0.0",
|
|
156
|
-
"sinon": "^21.0.0",
|
|
157
|
-
"vitest": "^3.2.4",
|
|
158
|
-
"yaml-lint": "^1.7.0"
|
|
159
|
-
},
|
|
160
|
-
"lint-staged": {
|
|
161
|
-
"**/*.md": [
|
|
162
|
-
"prettier --write"
|
|
163
|
-
]
|
|
55
|
+
"url": "https://github.com/oneie/oneie/issues"
|
|
164
56
|
}
|
|
165
|
-
}
|
|
57
|
+
}
|