omnibiofex 2.8.4 → 4.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.
package/bin/obx CHANGED
@@ -6,204 +6,76 @@ const figlet = require('figlet');
6
6
  const path = require('path');
7
7
  const fs = require('fs');
8
8
 
9
- // Read version dynamically from package.json
10
- const packageJson = JSON.parse(
11
- fs.readFileSync(path.join(__dirname, '../package.json'), 'utf8')
12
- );
9
+ const packageJson = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json'), 'utf8'));
13
10
  const VERSION = packageJson.version;
14
11
 
15
- // Display banner
16
- console.log(
17
- chalk.hex('#F24E1E')(
18
- figlet.textSync('OmniBioFex X', { horizontalLayout: 'full' })
19
- )
20
- );
12
+ console.log(chalk.hex('#F24E1E')(figlet.textSync('OmniBioFex X', { horizontalLayout: 'full' })));
21
13
  console.log(chalk.gray(`The Autonomous Research Operating System v${VERSION}\n`));
22
14
  console.log(chalk.hex('#F24E1E')('Create Research. Publish It. Earn From It.\n'));
23
15
 
24
- // Global error handler
25
16
  process.on('unhandledRejection', (error) => {
26
17
  console.error(chalk.red('\nāœ— Error:'), error.message);
27
18
  process.exit(1);
28
19
  });
29
20
 
30
- // Register --version flag
31
- program
32
- .name('obx')
33
- .version(VERSION, '-v, --version', 'Show CLI version')
34
- .description('OmniBioFex X - The Autonomous Research Operating System');
21
+ program.name('obx').version(VERSION, '-v, --version', 'Show CLI version').description('OmniBioFex X');
35
22
 
36
- // ==================== AUTHENTICATION ====================
37
23
  const { login, logout } = require('../src/auth');
24
+ program.command('login').description('Sign in with Google').action(login);
25
+ program.command('logout').description('Sign out').action(logout);
38
26
 
39
- program
40
- .command('login')
41
- .description('Authenticate with your OmniBioFex X account')
42
- .action(login);
43
-
44
- program
45
- .command('logout')
46
- .description('Sign out of your account')
47
- .action(logout);
48
-
49
- // ==================== MISSION COMMANDS ====================
50
27
  const { missionCreate, missionStatus, missionResults, missionList } = require('../src/commands/mission');
51
-
52
- program
53
- .command('mission')
54
- .description('Manage research missions')
55
- .argument('<action>', 'create | status | results | list')
28
+ program.command('mission').description('Manage missions').argument('<action>', 'create | status | results | list')
56
29
  .action(async (action) => {
57
30
  switch (action) {
58
- case 'create':
59
- await missionCreate();
60
- break;
61
- case 'status':
62
- await missionStatus();
63
- break;
64
- case 'results':
65
- await missionResults();
66
- break;
67
- case 'list':
68
- await missionList();
69
- break;
70
- default:
71
- console.error(chalk.red('Unknown action. Use: create, status, results, or list'));
31
+ case 'create': await missionCreate(); break;
32
+ case 'status': await missionStatus(); break;
33
+ case 'results': await missionResults(); break;
34
+ case 'list': await missionList(); break;
35
+ default: console.error(chalk.red('Use: create, status, results, or list')); process.exit(1);
72
36
  }
73
37
  });
74
38
 
75
- // ==================== RESEARCH COMMANDS ====================
76
39
  const { literatureReview, paper, compare, gaps, hypothesis } = require('../src/commands/research');
40
+ program.command('literature').description('Literature review').argument('<topic>').action(literatureReview);
41
+ program.command('paper').description('Analyze paper').argument('<file>').action(paper);
42
+ program.command('compare').description('Compare papers').arguments('<files...>').action(compare);
43
+ program.command('gaps').description('Discover gaps').argument('<topic>').action(gaps);
44
+ program.command('hypothesis').description('Generate hypotheses').argument('<topic>').action(hypothesis);
77
45
 
78
- program
79
- .command('literature')
80
- .description('Generate literature review')
81
- .argument('<topic>', 'Research topic')
82
- .action(literatureReview);
83
-
84
- program
85
- .command('paper')
86
- .description('Analyze a research paper')
87
- .argument('<file>', 'PDF file path')
88
- .action(paper);
89
-
90
- program
91
- .command('compare')
92
- .description('Compare multiple papers')
93
- .arguments('<files...>')
94
- .action(compare);
95
-
96
- program
97
- .command('gaps')
98
- .description('Discover research gaps')
99
- .argument('<topic>', 'Research topic')
100
- .action(gaps);
101
-
102
- program
103
- .command('hypothesis')
104
- .description('Generate research hypotheses')
105
- .argument('<topic>', 'Research topic')
106
- .action(hypothesis);
107
-
108
- // ==================== TIMELINE COMMAND ====================
109
46
  const { timeline } = require('../src/commands/timeline');
47
+ program.command('timeline').description('Research timeline').argument('<topic>').action(timeline);
110
48
 
111
- program
112
- .command('timeline')
113
- .description('šŸ“… Generate visual research timeline')
114
- .argument('<topic>', 'Research topic')
115
- .action(timeline);
116
-
117
- // ==================== DATA COMMANDS ====================
118
49
  const { dataset, code } = require('../src/commands/data');
50
+ program.command('dataset').description('Analyze dataset').argument('<file>').action(dataset);
51
+ program.command('code').description('Review code').argument('[directory]', '.').action(code);
119
52
 
120
- program
121
- .command('dataset')
122
- .description('Analyze dataset')
123
- .argument('<file>', 'CSV/Excel file path')
124
- .action(dataset);
125
-
126
- program
127
- .command('code')
128
- .description('Review code repository')
129
- .argument('[directory]', 'Directory path', '.')
130
- .action(code);
131
-
132
- // ==================== PUBLISH & EARN COMMANDS ====================
133
53
  const { publish } = require('../src/commands/publish');
134
54
  const { earnings } = require('../src/commands/earnings');
55
+ program.command('publish').description('Publish research').argument('[mission-id]').action(publish);
56
+ program.command('earnings').description('View earnings').action(earnings);
135
57
 
136
- program
137
- .command('publish')
138
- .description('šŸ“¤ Publish research and start earning')
139
- .argument('[mission-id]', 'Mission ID to publish')
140
- .action(publish);
141
-
142
- program
143
- .command('earnings')
144
- .description('šŸ’° View your earnings dashboard')
145
- .action(earnings);
146
-
147
- // ==================== MORNING COMMAND ====================
148
58
  const { morning } = require('../src/commands/morning');
59
+ program.command('morning').description('Daily briefing').action(morning);
149
60
 
150
- program
151
- .command('morning')
152
- .description('ā˜€ļø Get daily research briefing')
153
- .action(morning);
154
-
155
- // ==================== OPEN COMMANDS ====================
156
61
  const { openPage } = require('../src/commands/open');
62
+ program.command('open').description('Open pages').argument('[page]').action(openPage);
63
+ program.command('dashboard').description('Open dashboard').action(() => openPage('dashboard'));
64
+ program.command('earn').description('Open earn page').action(() => openPage('earn'));
157
65
 
158
- program
159
- .command('open')
160
- .description('🌐 Open OmniBioFex X pages in browser')
161
- .argument('[page]', 'Page to open (dashboard, earn, pricing, agents, etc.)')
162
- .action(openPage);
163
-
164
- program
165
- .command('dashboard')
166
- .description('šŸ  Open web dashboard')
167
- .action(() => openPage('dashboard'));
168
-
169
- program
170
- .command('earn')
171
- .description('šŸ’° Open earn page')
172
- .action(() => openPage('earn'));
173
-
174
- // ==================== ACCOUNT COMMANDS ====================
175
66
  const { credits, usage, buy } = require('../src/commands/account');
67
+ program.command('credits').description('Check balance').action(credits);
68
+ program.command('usage').description('View usage').action(usage);
69
+ program.command('buy').description('Purchase credits').action(buy);
176
70
 
177
- program
178
- .command('credits')
179
- .description('Check your RCC balance')
180
- .action(credits);
181
-
182
- program
183
- .command('usage')
184
- .description('View usage statistics')
185
- .action(usage);
186
-
187
- program
188
- .command('buy')
189
- .description('Open browser to purchase credits')
190
- .action(buy);
191
-
192
- // ==================== DEBUG COMMAND ====================
193
71
  const { debug } = require('../src/commands/debug');
72
+ program.command('debug').description('Debug auth').action(debug);
194
73
 
195
- program
196
- .command('debug')
197
- .description('Debug authentication and token status')
198
- .action(debug);
199
-
200
- // Parse arguments
201
74
  program.parse(process.argv);
202
75
 
203
- // Show help if no command provided
204
76
  if (!process.argv.slice(2).length) {
205
77
  console.log(chalk.hex('#F24E1E')('\nšŸ“š QUICK START:\n'));
206
- console.log(chalk.white(' obx login # Authenticate'));
78
+ console.log(chalk.white(' obx login # Sign in with Google'));
207
79
  console.log(chalk.white(' obx morning # Daily briefing'));
208
80
  console.log(chalk.white(' obx mission create # Create research'));
209
81
  console.log(chalk.white(' obx publish <mission-id> # Publish & earn'));
package/package.json CHANGED
@@ -1,48 +1,33 @@
1
1
  {
2
2
  "name": "omnibiofex",
3
- "version": "2.8.4",
4
- "description": "OmniBioFex X - The Autonomous Research Terminal for AI-powered research missions",
3
+ "version": "4.0.0",
4
+ "description": "OmniBioFex X - The Autonomous Research Operating System",
5
5
  "main": "bin/obx",
6
6
  "bin": {
7
7
  "obx": "./bin/obx"
8
8
  },
9
9
  "scripts": {
10
- "start": "node bin/obx",
11
- "test": "echo \"No tests yet\" && exit 0"
10
+ "test": "echo \"Error: no test specified\" && exit 1"
12
11
  },
13
12
  "keywords": [
13
+ "omnibiofex",
14
14
  "ai",
15
15
  "research",
16
- "terminal",
17
16
  "cli",
18
- "autonomous",
19
- "omnibiofex"
17
+ "autonomous"
20
18
  ],
21
- "author": {
22
- "name": "OmniBioFex",
23
- "email": "omnibiofexcloud@gmail.com",
24
- "url": "https://x.omnibiofex.cloud"
25
- },
19
+ "author": "OmniBioFex X",
26
20
  "license": "MIT",
27
- "homepage": "https://x.omnibiofex.cloud",
28
- "engines": {
29
- "node": ">=14.0.0"
30
- },
31
21
  "dependencies": {
32
- "firebase": "^10.7.1",
33
- "axios": "^1.6.2",
34
22
  "chalk": "^4.1.2",
35
23
  "commander": "^11.1.0",
36
- "inquirer": "^8.2.6",
37
- "open": "^8.4.2",
38
- "ora": "^5.4.1",
24
+ "conf": "^10.2.0",
39
25
  "figlet": "^1.7.0",
40
- "conf": "^10.2.0"
26
+ "firebase": "^10.7.1",
27
+ "inquirer": "^8.2.6",
28
+ "open": "^8.4.2"
41
29
  },
42
- "files": [
43
- "bin/",
44
- "src/",
45
- "README.md",
46
- "LICENSE"
47
- ]
30
+ "engines": {
31
+ "node": ">=14.0.0"
32
+ }
48
33
  }