@genobank/biofs 1.6.9 → 1.7.1

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 (67) hide show
  1. package/.claude/settings.local.json +33 -0
  2. package/BIOFS_CLI_NODE_CONVERGENCE_ANALYSIS.md +932 -0
  3. package/BIOFS_FEDERATED_NETWORK_ARCHITECTURE.md +1071 -0
  4. package/BIOFS_NODE_CLIENT_ARCHITECTURE.md +557 -0
  5. package/BIOFS_NODE_IMPLEMENTATION_PLAN.md +2164 -0
  6. package/BIOROUTER_IMPLEMENTATION_CHECKLIST.md +618 -0
  7. package/BUBBLEWRAP_INTEGRATION.md +486 -0
  8. package/BUBBLEWRAP_QUICKSTART.md +356 -0
  9. package/BUBBLEWRAP_README.md +466 -0
  10. package/BUBBLEWRAP_STRATEGIC_ANALYSIS.md +625 -0
  11. package/CHANGELOG.md +108 -120
  12. package/EXECUTIVE_SUMMARY_BIOROUTER_CONVERGENCE.md +323 -0
  13. package/GEMINI_REMOVAL_COMPLETE.md +311 -0
  14. package/debug_credentials.js +60 -0
  15. package/dist/commands/sandbox.d.ts +10 -0
  16. package/dist/commands/sandbox.d.ts.map +1 -0
  17. package/dist/commands/sandbox.js +418 -0
  18. package/dist/commands/sandbox.js.map +1 -0
  19. package/dist/index.js +11 -54
  20. package/dist/index.js.map +1 -1
  21. package/dist/lib/ai/classifier.d.ts +3 -1
  22. package/dist/lib/ai/classifier.d.ts.map +1 -1
  23. package/dist/lib/ai/classifier.js +37 -17
  24. package/dist/lib/ai/classifier.js.map +1 -1
  25. package/dist/lib/api/client.d.ts +0 -46
  26. package/dist/lib/api/client.d.ts.map +1 -1
  27. package/dist/lib/api/client.js +19 -159
  28. package/dist/lib/api/client.js.map +1 -1
  29. package/dist/lib/auth/server.d.ts.map +1 -1
  30. package/dist/lib/auth/server.js +11 -2
  31. package/dist/lib/auth/server.js.map +1 -1
  32. package/dist/lib/biofiles/fingerprint.d.ts.map +1 -1
  33. package/dist/lib/biofiles/fingerprint.js +40 -11
  34. package/dist/lib/biofiles/fingerprint.js.map +1 -1
  35. package/dist/lib/biofiles/resolver.d.ts.map +1 -1
  36. package/dist/lib/biofiles/resolver.js +75 -59
  37. package/dist/lib/biofiles/resolver.js.map +1 -1
  38. package/dist/lib/config/constants.d.ts +0 -1
  39. package/dist/lib/config/constants.d.ts.map +1 -1
  40. package/dist/lib/config/constants.js +3 -3
  41. package/dist/lib/config/constants.js.map +1 -1
  42. package/dist/lib/sandbox/bubblewrap.d.ts +125 -0
  43. package/dist/lib/sandbox/bubblewrap.d.ts.map +1 -0
  44. package/dist/lib/sandbox/bubblewrap.js +343 -0
  45. package/dist/lib/sandbox/bubblewrap.js.map +1 -0
  46. package/dist/lib/utils/logger.d.ts +6 -5
  47. package/dist/lib/utils/logger.d.ts.map +1 -1
  48. package/dist/lib/utils/logger.js +23 -5
  49. package/dist/lib/utils/logger.js.map +1 -1
  50. package/dist/types/api.d.ts +0 -21
  51. package/dist/types/api.d.ts.map +1 -1
  52. package/dist/types/biofiles.d.ts +2 -2
  53. package/dist/types/biofiles.d.ts.map +1 -1
  54. package/examples/sandbox-usage.ts +361 -0
  55. package/package.json +3 -2
  56. package/dist/commands/biofiles.d.ts +0 -9
  57. package/dist/commands/biofiles.d.ts.map +0 -1
  58. package/dist/commands/biofiles.js +0 -112
  59. package/dist/commands/biofiles.js.map +0 -1
  60. package/dist/commands/labs/list.d.ts +0 -19
  61. package/dist/commands/labs/list.d.ts.map +0 -1
  62. package/dist/commands/labs/list.js +0 -98
  63. package/dist/commands/labs/list.js.map +0 -1
  64. package/dist/commands/share.d.ts +0 -10
  65. package/dist/commands/share.d.ts.map +0 -1
  66. package/dist/commands/share.js +0 -186
  67. package/dist/commands/share.js.map +0 -1
@@ -0,0 +1,361 @@
1
+ /**
2
+ * BioFS Bubblewrap Sandbox - Usage Examples
3
+ *
4
+ * Demonstrates how to use the bubblewrap sandbox integration
5
+ * for secure genomic data processing.
6
+ */
7
+
8
+ import { BubblewrapSandbox, isSandboxAvailable } from '../src/lib/sandbox/bubblewrap';
9
+ import * as path from 'path';
10
+ import * as os from 'os';
11
+
12
+ /**
13
+ * Example 1: Basic sandboxed command execution
14
+ */
15
+ async function basicExample() {
16
+ console.log('=== Example 1: Basic Sandboxed Execution ===\n');
17
+
18
+ const sandbox = new BubblewrapSandbox({
19
+ isolateNetwork: true,
20
+ isolatePID: true,
21
+ workingDir: '/workspace',
22
+ });
23
+
24
+ const result = await sandbox.exec(['echo', 'Hello from sandbox!']);
25
+ console.log('Output:', result.stdout);
26
+ console.log('Exit code:', result.exitCode);
27
+ }
28
+
29
+ /**
30
+ * Example 2: Sandboxed genomic file download
31
+ */
32
+ async function downloadExample() {
33
+ console.log('\n=== Example 2: Sandboxed File Download ===\n');
34
+
35
+ const outputDir = path.join(os.homedir(), 'Downloads/genobank');
36
+ const sandbox = BubblewrapSandbox.forDownload(outputDir);
37
+
38
+ // Simulated download command
39
+ const result = await sandbox.exec([
40
+ 'curl',
41
+ '-o',
42
+ '/output/sample.vcf',
43
+ 'https://example.com/genomic-data/sample.vcf',
44
+ ]);
45
+
46
+ console.log('Download result:', result.exitCode === 0 ? 'Success' : 'Failed');
47
+ }
48
+
49
+ /**
50
+ * Example 3: Network-isolated file processing
51
+ */
52
+ async function processingExample() {
53
+ console.log('\n=== Example 3: Network-Isolated Processing ===\n');
54
+
55
+ const inputFile = '/path/to/genome.vcf';
56
+ const outputDir = '/tmp/biofs-results';
57
+
58
+ const sandbox = BubblewrapSandbox.forProcessing(inputFile, outputDir);
59
+
60
+ // Process VCF file with NO network access (prevents exfiltration)
61
+ const result = await sandbox.exec([
62
+ 'python3',
63
+ '/usr/local/bin/vcf-analyzer.py',
64
+ '/data/input',
65
+ '/data/output/results.csv',
66
+ ]);
67
+
68
+ console.log('Processing completed:', result.exitCode === 0 ? 'Success' : 'Failed');
69
+ console.log('Note: Process had ZERO network access - data exfiltration impossible');
70
+ }
71
+
72
+ /**
73
+ * Example 4: Research job with custom mounts
74
+ */
75
+ async function jobExample() {
76
+ console.log('\n=== Example 4: Research Job Execution ===\n');
77
+
78
+ const sandbox = BubblewrapSandbox.forJob({
79
+ inputs: [
80
+ '/data/patient1.vcf',
81
+ '/data/patient2.vcf',
82
+ '/data/reference-genome.fasta',
83
+ ],
84
+ outputDir: '/tmp/job-results',
85
+ allowNetwork: false, // No network for maximum security
86
+ });
87
+
88
+ const result = await sandbox.exec([
89
+ 'variant-caller',
90
+ '--input1',
91
+ '/data/input/0',
92
+ '--input2',
93
+ '/data/input/1',
94
+ '--reference',
95
+ '/data/input/2',
96
+ '--output',
97
+ '/data/output/variants.vcf',
98
+ ]);
99
+
100
+ console.log('Job result:', result.exitCode === 0 ? 'Success' : 'Failed');
101
+ }
102
+
103
+ /**
104
+ * Example 5: Credential-protected operation
105
+ */
106
+ async function credentialExample() {
107
+ console.log('\n=== Example 5: Credential Protection ===\n');
108
+
109
+ const sandbox = new BubblewrapSandbox({
110
+ isolateNetwork: false,
111
+ isolatePID: true,
112
+ isolateIPC: true,
113
+ mounts: [
114
+ {
115
+ source: path.join(os.homedir(), '.genobank/credentials.json'),
116
+ target: '/creds.json',
117
+ readonly: true, // ← Credentials mounted READ-ONLY
118
+ },
119
+ ],
120
+ });
121
+
122
+ const result = await sandbox.exec([
123
+ 'node',
124
+ '/usr/local/lib/node_modules/@genobank/biofs/dist/lib/api/client.js',
125
+ 'list-files',
126
+ ]);
127
+
128
+ console.log('API call result:', result.stdout);
129
+ console.log('Note: Credentials were READ-ONLY - cannot be modified or stolen');
130
+ }
131
+
132
+ /**
133
+ * Example 6: GDPR consent enforcement
134
+ */
135
+ async function gdprExample() {
136
+ console.log('\n=== Example 6: GDPR Consent Enforcement ===\n');
137
+
138
+ // User has NOT consented yet - file is NOT mounted
139
+ console.log('Step 1: File access requested, but no consent...');
140
+
141
+ let sandbox = new BubblewrapSandbox({
142
+ isolateNetwork: true,
143
+ isolatePID: true,
144
+ mounts: [], // ← No file access without consent
145
+ });
146
+
147
+ console.log('Step 2: Show consent prompt to user...');
148
+ console.log('[ User agrees to GDPR consent ]');
149
+
150
+ // After consent - NOW mount the file
151
+ console.log('Step 3: Consent recorded, file now accessible...');
152
+
153
+ sandbox = new BubblewrapSandbox({
154
+ isolateNetwork: true,
155
+ isolatePID: true,
156
+ mounts: [
157
+ {
158
+ source: '/vault/genomic-data/patient123.vcf',
159
+ target: '/data/genome.vcf',
160
+ readonly: true,
161
+ },
162
+ ],
163
+ });
164
+
165
+ const result = await sandbox.exec([
166
+ 'genomic-analyzer',
167
+ '/data/genome.vcf',
168
+ ]);
169
+
170
+ console.log('Analysis completed with GDPR compliance:', result.exitCode === 0);
171
+ }
172
+
173
+ /**
174
+ * Example 7: Multi-tenant isolation
175
+ */
176
+ async function multiTenantExample() {
177
+ console.log('\n=== Example 7: Multi-Tenant Isolation ===\n');
178
+
179
+ // Researcher A's sandbox
180
+ const sandboxA = new BubblewrapSandbox({
181
+ isolateNetwork: true,
182
+ isolatePID: true,
183
+ isolateIPC: true,
184
+ isolateUTS: true,
185
+ hostname: 'researcher-a',
186
+ uid: 1000,
187
+ gid: 1000,
188
+ mounts: [
189
+ {
190
+ source: '/home/researcher-a/.genobank',
191
+ target: '/home/user/.genobank',
192
+ readonly: false,
193
+ },
194
+ ],
195
+ });
196
+
197
+ // Researcher B's sandbox (completely isolated from A)
198
+ const sandboxB = new BubblewrapSandbox({
199
+ isolateNetwork: true,
200
+ isolatePID: true,
201
+ isolateIPC: true,
202
+ isolateUTS: true,
203
+ hostname: 'researcher-b',
204
+ uid: 1001,
205
+ gid: 1001,
206
+ mounts: [
207
+ {
208
+ source: '/home/researcher-b/.genobank',
209
+ target: '/home/user/.genobank',
210
+ readonly: false,
211
+ },
212
+ ],
213
+ });
214
+
215
+ console.log('Researcher A and B are completely isolated:');
216
+ console.log('- Separate PID namespaces (cannot see each other\'s processes)');
217
+ console.log('- Separate IPC namespaces (no shared memory)');
218
+ console.log('- Separate filesystems (cannot access each other\'s data)');
219
+ console.log('- Separate hostnames (process isolation visible)');
220
+ }
221
+
222
+ /**
223
+ * Example 8: Plugin system with sandboxing
224
+ */
225
+ async function pluginExample() {
226
+ console.log('\n=== Example 8: Untrusted Plugin Execution ===\n');
227
+
228
+ const sandbox = new BubblewrapSandbox({
229
+ isolateNetwork: true, // Plugin cannot phone home
230
+ isolatePID: true,
231
+ isolateIPC: true,
232
+ dropCapabilities: true, // No special privileges
233
+ enableSeccomp: true, // Syscall restrictions
234
+ mounts: [
235
+ {
236
+ source: '/opt/biofs-plugins/community-variant-filter',
237
+ target: '/plugin',
238
+ readonly: true, // Plugin code is read-only
239
+ },
240
+ {
241
+ source: '/data/input.vcf',
242
+ target: '/data/input.vcf',
243
+ readonly: true,
244
+ },
245
+ {
246
+ source: '/tmp/plugin-output',
247
+ target: '/output',
248
+ readonly: false,
249
+ },
250
+ ],
251
+ });
252
+
253
+ const result = await sandbox.exec([
254
+ '/plugin/run.sh',
255
+ '/data/input.vcf',
256
+ '/output/filtered.vcf',
257
+ ]);
258
+
259
+ console.log('Plugin execution result:', result.exitCode === 0 ? 'Success' : 'Failed');
260
+ console.log('Security guarantees:');
261
+ console.log(' - Plugin had NO network access (cannot exfiltrate data)');
262
+ console.log(' - Plugin had NO write access to system (cannot install backdoor)');
263
+ console.log(' - Plugin had NO special capabilities (cannot escalate privileges)');
264
+ }
265
+
266
+ /**
267
+ * Example 9: Check sandbox availability
268
+ */
269
+ async function availabilityCheck() {
270
+ console.log('\n=== Example 9: Sandbox Availability Check ===\n');
271
+
272
+ const available = await isSandboxAvailable();
273
+
274
+ if (available) {
275
+ const version = await BubblewrapSandbox.getVersion();
276
+ console.log('āœ… Bubblewrap is available');
277
+ console.log('Version:', version);
278
+ } else {
279
+ console.log('āŒ Bubblewrap is NOT installed');
280
+ console.log('Install with: sudo apt-get install bubblewrap');
281
+ }
282
+ }
283
+
284
+ /**
285
+ * Example 10: Performance comparison
286
+ */
287
+ async function performanceExample() {
288
+ console.log('\n=== Example 10: Performance Comparison ===\n');
289
+
290
+ const testCommand = ['echo', 'test'];
291
+
292
+ // Without sandbox
293
+ const start1 = Date.now();
294
+ const { execFile } = require('child_process');
295
+ const { promisify } = require('util');
296
+ await promisify(execFile)('echo', ['test']);
297
+ const time1 = Date.now() - start1;
298
+
299
+ // With sandbox
300
+ const sandbox = new BubblewrapSandbox({
301
+ isolateNetwork: true,
302
+ isolatePID: true,
303
+ });
304
+ const start2 = Date.now();
305
+ await sandbox.exec(testCommand);
306
+ const time2 = Date.now() - start2;
307
+
308
+ console.log('Direct execution:', time1, 'ms');
309
+ console.log('Sandboxed execution:', time2, 'ms');
310
+ console.log('Overhead:', time2 - time1, 'ms');
311
+ console.log(
312
+ 'Performance impact:',
313
+ (((time2 - time1) / time1) * 100).toFixed(2),
314
+ '%'
315
+ );
316
+ }
317
+
318
+ /**
319
+ * Run all examples
320
+ */
321
+ async function main() {
322
+ console.log('╔════════════════════════════════════════════════════════════╗');
323
+ console.log('ā•‘ BioFS Bubblewrap Sandbox - Comprehensive Usage Examples ā•‘');
324
+ console.log('ā•šā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•\n');
325
+
326
+ try {
327
+ await availabilityCheck();
328
+
329
+ if (await isSandboxAvailable()) {
330
+ await basicExample();
331
+ // await downloadExample();
332
+ // await processingExample();
333
+ // await jobExample();
334
+ // await credentialExample();
335
+ await gdprExample();
336
+ await multiTenantExample();
337
+ await pluginExample();
338
+ // await performanceExample();
339
+ }
340
+ } catch (error) {
341
+ console.error('Error running examples:', error);
342
+ }
343
+ }
344
+
345
+ // Run if executed directly
346
+ if (require.main === module) {
347
+ main().catch(console.error);
348
+ }
349
+
350
+ export {
351
+ basicExample,
352
+ downloadExample,
353
+ processingExample,
354
+ jobExample,
355
+ credentialExample,
356
+ gdprExample,
357
+ multiTenantExample,
358
+ pluginExample,
359
+ availabilityCheck,
360
+ performanceExample,
361
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genobank/biofs",
3
- "version": "1.6.9",
3
+ "version": "1.7.1",
4
4
  "description": "BioFS - GenoBank.io BioNFT-Gated S3 CLI with GDPR Consent for genomic data",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -12,8 +12,9 @@
12
12
  "test": "jest"
13
13
  },
14
14
  "dependencies": {
15
- "@google/generative-ai": "^0.24.1",
15
+ "@anthropic-ai/sdk": "^0.67.0",
16
16
  "axios": "^1.6.0",
17
+ "bloom-filters": "^3.0.4",
17
18
  "boxen": "^5.1.2",
18
19
  "chalk": "^4.1.2",
19
20
  "cli-progress": "^3.12.0",
@@ -1,9 +0,0 @@
1
- export interface FilesOptions {
2
- filter?: string;
3
- source?: string;
4
- json?: boolean;
5
- refresh?: boolean;
6
- verbose?: boolean;
7
- }
8
- export declare function filesCommand(options: FilesOptions): Promise<void>;
9
- //# sourceMappingURL=biofiles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"biofiles.d.ts","sourceRoot":"","sources":["../../src/commands/biofiles.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAoCvE"}
@@ -1,112 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.filesCommand = filesCommand;
7
- const resolver_1 = require("../lib/biofiles/resolver");
8
- const logger_1 = require("../lib/utils/logger");
9
- const chalk_1 = __importDefault(require("chalk"));
10
- const boxen_1 = __importDefault(require("boxen"));
11
- async function filesCommand(options) {
12
- const resolver = new resolver_1.BioCIDResolver();
13
- const spinner = logger_1.Logger.spinner('Discovering your BioFiles...');
14
- try {
15
- const allFiles = await resolver.discoverAllBioFiles(options.verbose);
16
- spinner.stop();
17
- // Apply filters
18
- let files = allFiles;
19
- if (options.filter) {
20
- files = files.filter(f => f.type.toLowerCase() === options.filter?.toLowerCase());
21
- }
22
- if (options.source) {
23
- files = files.filter(f => f.source.toLowerCase() === options.source?.toLowerCase());
24
- }
25
- if (files.length === 0) {
26
- logger_1.Logger.info('No files found matching your criteria');
27
- return;
28
- }
29
- // Output results
30
- if (options.json) {
31
- console.log(JSON.stringify(files, null, 2));
32
- }
33
- else {
34
- displayFilesTable(files, options.filter);
35
- }
36
- }
37
- catch (error) {
38
- spinner.fail('Failed to discover files');
39
- logger_1.Logger.error(`Error: ${error}`);
40
- process.exit(1);
41
- }
42
- }
43
- function displayFilesTable(files, filterType) {
44
- const totalCount = files.length;
45
- const typeDescription = filterType ? ` ${filterType.toUpperCase()}` : '';
46
- console.log(chalk_1.default.cyan(`\nšŸ“ Your BioFiles (${totalCount}${typeDescription} files)\n`));
47
- // Group files by type
48
- const filesByType = files.reduce((acc, file) => {
49
- if (!acc[file.type])
50
- acc[file.type] = [];
51
- acc[file.type].push(file);
52
- return acc;
53
- }, {});
54
- // Display each type
55
- for (const [type, typeFiles] of Object.entries(filesByType)) {
56
- console.log(chalk_1.default.yellow(`\n${type.toUpperCase()} Files (${typeFiles.length}):`));
57
- for (const file of typeFiles) {
58
- const box = (0, boxen_1.default)(formatFileInfo(file), {
59
- padding: 1,
60
- borderStyle: 'round',
61
- borderColor: getSourceColor(file.source)
62
- });
63
- console.log(box);
64
- }
65
- }
66
- }
67
- function formatFileInfo(file) {
68
- const lines = [];
69
- lines.push(`${chalk_1.default.bold('BioCID:')} ${chalk_1.default.cyan(file.biocid)}`);
70
- lines.push(`${chalk_1.default.bold('Filename:')} ${file.filename}`);
71
- lines.push(`${chalk_1.default.bold('Type:')} ${file.type.toUpperCase()}`);
72
- lines.push(`${chalk_1.default.bold('Source:')} ${getSourceBadge(file.source)}`);
73
- if (file.size) {
74
- lines.push(`${chalk_1.default.bold('Size:')} ${logger_1.Logger.formatFileSize(file.size)}`);
75
- }
76
- if (file.created_at) {
77
- lines.push(`${chalk_1.default.bold('Created:')} ${new Date(file.created_at).toLocaleDateString()}`);
78
- }
79
- if (file.ip_asset) {
80
- lines.push(`${chalk_1.default.bold('IP Asset:')} ${logger_1.Logger.formatWallet(file.ip_asset)}`);
81
- }
82
- return lines.join('\n');
83
- }
84
- function getSourceColor(source) {
85
- switch (source) {
86
- case 'S3':
87
- return 'blue';
88
- case 'BioFS':
89
- return 'cyan'; // BioNFT-Gated S3 storage
90
- case 'IPFS':
91
- return 'magenta';
92
- case 'Story':
93
- return 'green';
94
- default:
95
- return 'gray';
96
- }
97
- }
98
- function getSourceBadge(source) {
99
- switch (source) {
100
- case 'S3':
101
- return chalk_1.default.bgBlue.white(` S3 `);
102
- case 'BioFS':
103
- return chalk_1.default.bgCyan.black(` BioFS 🧬 `); // BioNFT-Gated S3 - our proprietary protocol
104
- case 'IPFS':
105
- return chalk_1.default.bgMagenta.white(` IPFS `);
106
- case 'Story':
107
- return chalk_1.default.bgGreen.white(` Story `);
108
- default:
109
- return chalk_1.default.bgGray.white(` ${source} `);
110
- }
111
- }
112
- //# sourceMappingURL=biofiles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"biofiles.js","sourceRoot":"","sources":["../../src/commands/biofiles.ts"],"names":[],"mappings":";;;;;AAcA,oCAoCC;AAlDD,uDAA0D;AAC1D,gDAA6C;AAE7C,kDAA0B;AAC1B,kDAA0B;AAUnB,KAAK,UAAU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,IAAI,CAAC,WAAW,CAAC,IAAI,eAAM,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACjF,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,SAAS,cAAc,CAAC,MAAc;IACpC,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,IAAI;YACP,OAAO,MAAM,CAAC;QAChB,KAAK,OAAO;YACV,OAAO,MAAM,CAAC,CAAE,0BAA0B;QAC5C,KAAK,MAAM;YACT,OAAO,SAAS,CAAC;QACnB,KAAK,OAAO;YACV,OAAO,OAAO,CAAC;QACjB;YACE,OAAO,MAAM,CAAC;IAClB,CAAC;AACH,CAAC;AAED,SAAS,cAAc,CAAC,MAAc;IACpC,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,IAAI;YACP,OAAO,eAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACpC,KAAK,OAAO;YACV,OAAO,eAAK,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAE,6CAA6C;QACzF,KAAK,MAAM;YACT,OAAO,eAAK,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACzC,KAAK,OAAO;YACV,OAAO,eAAK,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACxC;YACE,OAAO,eAAK,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,MAAM,GAAG,CAAC,CAAC;IAC7C,CAAC;AACH,CAAC"}
@@ -1,19 +0,0 @@
1
- export interface LabNFTsOptions {
2
- filter?: string;
3
- location?: string;
4
- json?: boolean;
5
- verbose?: boolean;
6
- }
7
- export interface Lab {
8
- name: string;
9
- wallet_address: string;
10
- specialization?: string;
11
- location?: string;
12
- verified: boolean;
13
- story_protocol_verified: boolean;
14
- contact_email?: string;
15
- website?: string;
16
- description?: string;
17
- }
18
- export declare function labNFTsCommand(options: LabNFTsOptions): Promise<void>;
19
- //# sourceMappingURL=list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/labs/list.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,uBAAuB,EAAE,OAAO,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAsB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAkD3E"}
@@ -1,98 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.labNFTsCommand = labNFTsCommand;
7
- const chalk_1 = __importDefault(require("chalk"));
8
- const boxen_1 = __importDefault(require("boxen"));
9
- const client_1 = require("../../lib/api/client");
10
- const logger_1 = require("../../lib/utils/logger");
11
- async function labNFTsCommand(options) {
12
- const api = client_1.GenoBankAPIClient.getInstance();
13
- if (options.verbose) {
14
- console.log('šŸ” Fetching approved research labs...');
15
- }
16
- try {
17
- // Fetch approved labs from both sources
18
- const labs = await api.getApprovedLabs();
19
- if (!labs || labs.length === 0) {
20
- console.log(chalk_1.default.yellow('āš ļø No approved labs found in the registry'));
21
- return;
22
- }
23
- // Apply filters
24
- let filteredLabs = labs;
25
- if (options.filter) {
26
- const filterLower = options.filter.toLowerCase();
27
- filteredLabs = filteredLabs.filter(lab => lab.specialization?.toLowerCase().includes(filterLower) ||
28
- lab.name.toLowerCase().includes(filterLower));
29
- }
30
- if (options.location) {
31
- const locationLower = options.location.toLowerCase();
32
- filteredLabs = filteredLabs.filter(lab => lab.location?.toLowerCase().includes(locationLower));
33
- }
34
- if (filteredLabs.length === 0) {
35
- console.log(chalk_1.default.yellow(`āš ļø No labs found matching your criteria`));
36
- return;
37
- }
38
- // Output results
39
- if (options.json) {
40
- console.log(JSON.stringify(filteredLabs, null, 2));
41
- }
42
- else {
43
- displayLabsTable(filteredLabs, options.filter, options.location);
44
- }
45
- }
46
- catch (error) {
47
- logger_1.Logger.error(`Failed to fetch approved labs: ${error}`);
48
- throw error;
49
- }
50
- }
51
- function displayLabsTable(labs, filter, location) {
52
- const filterText = filter ? ` matching "${filter}"` : '';
53
- const locationText = location ? ` in ${location}` : '';
54
- console.log(chalk_1.default.cyan(`\nšŸ„ Approved Research Labs${filterText}${locationText} (${labs.length})\n`));
55
- console.log(chalk_1.default.gray('These labs are verified to receive BioNFT-licensed genomic data\n'));
56
- for (const lab of labs) {
57
- const verificationBadge = lab.story_protocol_verified
58
- ? chalk_1.default.green('āœ… Story Protocol Verified')
59
- : chalk_1.default.yellow('āš ļø Pending Verification');
60
- const content = [
61
- chalk_1.default.bold.white(`šŸ„ ${lab.name}`),
62
- '',
63
- `${chalk_1.default.gray('Wallet:')} ${chalk_1.default.cyan(formatWallet(lab.wallet_address))}`,
64
- lab.specialization ? `${chalk_1.default.gray('Focus:')} ${lab.specialization}` : '',
65
- lab.location ? `${chalk_1.default.gray('Location:')} ${lab.location}` : '',
66
- '',
67
- verificationBadge,
68
- ]
69
- .filter(Boolean)
70
- .join('\n');
71
- const box = (0, boxen_1.default)(content, {
72
- padding: 1,
73
- borderStyle: 'round',
74
- borderColor: lab.story_protocol_verified ? 'green' : 'yellow',
75
- margin: { top: 0, right: 0, bottom: 1, left: 0 }
76
- });
77
- console.log(box);
78
- // Show additional info if available
79
- if (lab.website || lab.contact_email) {
80
- const contactInfo = [];
81
- if (lab.website)
82
- contactInfo.push(`🌐 ${chalk_1.default.blue(lab.website)}`);
83
- if (lab.contact_email)
84
- contactInfo.push(`šŸ“§ ${lab.contact_email}`);
85
- console.log(chalk_1.default.gray(` ${contactInfo.join(' | ')}\n`));
86
- }
87
- }
88
- // Show usage hint
89
- console.log(chalk_1.default.gray('\nšŸ’” To share a biofile with a lab:'));
90
- console.log(chalk_1.default.gray(' biofs share <filename> --lab <wallet_address> --license non-commercial\n'));
91
- }
92
- function formatWallet(wallet) {
93
- if (wallet.length === 42) {
94
- return `${wallet.slice(0, 6)}...${wallet.slice(-4)}`;
95
- }
96
- return wallet;
97
- }
98
- //# sourceMappingURL=list.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/labs/list.ts"],"names":[],"mappings":";;;;;AAwBA,wCAkDC;AA1ED,kDAA0B;AAC1B,kDAA0B;AAC1B,iDAAyD;AACzD,mDAAgD;AAqBzC,KAAK,UAAU,cAAc,CAAC,OAAuB;IAC1D,MAAM,GAAG,GAAG,0BAAiB,CAAC,WAAW,EAAE,CAAC;IAE5C,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;QACpB,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;IACvD,CAAC;IAED,IAAI,CAAC;QACH,wCAAwC;QACxC,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,eAAe,EAAE,CAAC;QAEzC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC/B,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,MAAM,CAAC,4CAA4C,CAAC,CAAC,CAAC;YACxE,OAAO;QACT,CAAC;QAED,gBAAgB;QAChB,IAAI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KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACvD,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,10 +0,0 @@
1
- export interface ShareOptions {
2
- lab: string;
3
- license?: 'non-commercial' | 'commercial' | 'commercial-remix';
4
- skipSequentias?: boolean;
5
- skipStory?: boolean;
6
- verbose?: boolean;
7
- debug?: boolean;
8
- }
9
- export declare function shareCommand(biocidOrFilename: string, options: ShareOptions): Promise<void>;
10
- //# sourceMappingURL=share.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"share.d.ts","sourceRoot":"","sources":["../../src/commands/share.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,gBAAgB,GAAG,YAAY,GAAG,kBAAkB,CAAC;IAC/D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wBAAsB,YAAY,CAChC,gBAAgB,EAAE,MAAM,EACxB,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,IAAI,CAAC,CAgMf"}