oneie 1.0.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.
@@ -0,0 +1,270 @@
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);
package/package.json ADDED
@@ -0,0 +1,165 @@
1
+ {
2
+ "name": "oneie",
3
+ "version": "1.0.0",
4
+ "description": "šŸ¤ Universal Collaborative Intelligence - Transform any project into a space where humans and AI agents work as equals. From kids' homework to enterprise systems, ONE adapts to your context and enables true collaborative intelligence through `npx oneie`.",
5
+ "type": "module",
6
+ "main": "one/tools/one-cli.js",
7
+ "bin": {
8
+ "oneie": "bin/collaborative-install.js",
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"
15
+ },
16
+ "scripts": {
17
+ "build": "node one/tools/cli.js build-bundles",
18
+ "build:agents": "node one/tools/cli.js build-bundles --agents-only",
19
+ "build:teams": "node one/tools/cli.js build-bundles --teams-only",
20
+ "list:agents": "node one/tools/cli.js list:agents",
21
+ "validate": "node one/tools/cli.js validate",
22
+ "market": "node one/tools/cli.js market",
23
+ "market:list": "node one/tools/cli.js market --list",
24
+ "market:help": "node one/tools/cli.js market --help-domain",
25
+ "engineer": "node one/tools/cli.js engineer",
26
+ "engineer:list": "node one/tools/cli.js engineer --list",
27
+ "engineer:help": "node one/tools/cli.js engineer --help-domain",
28
+ "generate-playbook": "node one/tools/cli.js generate-playbook",
29
+ "list-playbooks": "node one/tools/cli.js list-playbooks",
30
+ "create-playbook": "node one/tools/cli.js create-playbook",
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"
95
+ },
96
+ "dependencies": {
97
+ "@kayvan/markdown-tree-parser": "^1.5.0",
98
+ "axios": "^1.6.0",
99
+ "chalk": "^5.4.1",
100
+ "cheerio": "^1.0.0-rc.12",
101
+ "commander": "^14.0.0",
102
+ "figlet": "^1.7.0",
103
+ "fs-extra": "^11.3.0",
104
+ "glob": "^11.0.3",
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"
110
+ },
111
+ "keywords": [
112
+ "collaborative-intelligence",
113
+ "human-ai-partnership",
114
+ "universal-installer",
115
+ "equal-participation",
116
+ "mission-driven",
117
+ "development",
118
+ "ai-agents",
119
+ "project-management",
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"
133
+ },
134
+ "license": "MIT",
135
+ "repository": {
136
+ "type": "git",
137
+ "url": "git+https://github.com/one-ie/one.git"
138
+ },
139
+ "homepage": "https://github.com/one-ie/one#readme",
140
+ "bugs": {
141
+ "url": "https://github.com/one-ie/one/issues"
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
+ ]
164
+ }
165
+ }