@genobank/biofs 2.6.2 → 3.0.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.
- package/CHANGELOG.md +76 -0
- package/README.md +556 -201
- package/dist/commands/alias.d.ts +9 -0
- package/dist/commands/alias.d.ts.map +1 -0
- package/dist/commands/alias.js +56 -0
- package/dist/commands/alias.js.map +1 -0
- package/dist/commands/bionft/revoke.d.ts +6 -0
- package/dist/commands/bionft/revoke.d.ts.map +1 -0
- package/dist/commands/bionft/revoke.js +74 -0
- package/dist/commands/bionft/revoke.js.map +1 -0
- package/dist/commands/bionft/status.d.ts +2 -0
- package/dist/commands/bionft/status.d.ts.map +1 -0
- package/dist/commands/bionft/status.js +45 -0
- package/dist/commands/bionft/status.js.map +1 -0
- package/dist/commands/bionft/view.d.ts +5 -0
- package/dist/commands/bionft/view.d.ts.map +1 -0
- package/dist/commands/bionft/view.js +127 -0
- package/dist/commands/bionft/view.js.map +1 -0
- package/dist/commands/cred/issue.d.ts +12 -0
- package/dist/commands/cred/issue.d.ts.map +1 -0
- package/dist/commands/cred/issue.js +95 -0
- package/dist/commands/cred/issue.js.map +1 -0
- package/dist/commands/cred/lib.d.ts +23 -0
- package/dist/commands/cred/lib.d.ts.map +1 -0
- package/dist/commands/cred/lib.js +95 -0
- package/dist/commands/cred/lib.js.map +1 -0
- package/dist/commands/cred/list.d.ts +7 -0
- package/dist/commands/cred/list.d.ts.map +1 -0
- package/dist/commands/cred/list.js +65 -0
- package/dist/commands/cred/list.js.map +1 -0
- package/dist/commands/cred/revoke.d.ts +6 -0
- package/dist/commands/cred/revoke.d.ts.map +1 -0
- package/dist/commands/cred/revoke.js +60 -0
- package/dist/commands/cred/revoke.js.map +1 -0
- package/dist/commands/cred/status.d.ts +5 -0
- package/dist/commands/cred/status.d.ts.map +1 -0
- package/dist/commands/cred/status.js +41 -0
- package/dist/commands/cred/status.js.map +1 -0
- package/dist/commands/htsget.d.ts +8 -0
- package/dist/commands/htsget.d.ts.map +1 -0
- package/dist/commands/htsget.js +43 -0
- package/dist/commands/htsget.js.map +1 -0
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +15 -0
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/pipe.d.ts +8 -0
- package/dist/commands/pipe.d.ts.map +1 -0
- package/dist/commands/pipe.js +76 -0
- package/dist/commands/pipe.js.map +1 -0
- package/dist/commands/stream.d.ts +9 -0
- package/dist/commands/stream.d.ts.map +1 -0
- package/dist/commands/stream.js +58 -0
- package/dist/commands/stream.js.map +1 -0
- package/dist/commands/upload-fastq.d.ts +10 -0
- package/dist/commands/upload-fastq.d.ts.map +1 -0
- package/dist/commands/upload-fastq.js +60 -0
- package/dist/commands/upload-fastq.js.map +1 -0
- package/dist/commands/vault/mount.d.ts +8 -0
- package/dist/commands/vault/mount.d.ts.map +1 -0
- package/dist/commands/vault/mount.js +136 -0
- package/dist/commands/vault/mount.js.map +1 -0
- package/dist/commands/vault/setup.d.ts +6 -0
- package/dist/commands/vault/setup.d.ts.map +1 -0
- package/dist/commands/vault/setup.js +160 -0
- package/dist/commands/vault/setup.js.map +1 -0
- package/dist/commands/vault/status.d.ts +4 -0
- package/dist/commands/vault/status.d.ts.map +1 -0
- package/dist/commands/vault/status.js +97 -0
- package/dist/commands/vault/status.js.map +1 -0
- package/dist/commands/vault/unmount.d.ts +6 -0
- package/dist/commands/vault/unmount.d.ts.map +1 -0
- package/dist/commands/vault/unmount.js +90 -0
- package/dist/commands/vault/unmount.js.map +1 -0
- package/dist/index.js +354 -23
- package/dist/index.js.map +1 -1
- package/dist/lib/aliases/store.d.ts +7 -0
- package/dist/lib/aliases/store.d.ts.map +1 -0
- package/dist/lib/aliases/store.js +83 -0
- package/dist/lib/aliases/store.js.map +1 -0
- package/dist/lib/auth/server.d.ts.map +1 -1
- package/dist/lib/auth/server.js +21 -2
- package/dist/lib/auth/server.js.map +1 -1
- package/dist/lib/bionft/BioAssetVault.abi.json +1104 -0
- package/dist/lib/bionft/BioNFTCredentials.abi.json +1235 -0
- package/dist/lib/bionft/client.d.ts +45 -0
- package/dist/lib/bionft/client.d.ts.map +1 -0
- package/dist/lib/bionft/client.js +219 -0
- package/dist/lib/bionft/client.js.map +1 -0
- package/dist/lib/htsget/client.d.ts +54 -0
- package/dist/lib/htsget/client.d.ts.map +1 -0
- package/dist/lib/htsget/client.js +76 -0
- package/dist/lib/htsget/client.js.map +1 -0
- package/dist/utils/errorReporter.d.ts +6 -0
- package/dist/utils/errorReporter.d.ts.map +1 -1
- package/dist/utils/errorReporter.js +53 -0
- package/dist/utils/errorReporter.js.map +1 -1
- package/package.json +4 -4
- package/dist/commands/access-sequentia.d.ts +0 -35
- package/dist/commands/access-sequentia.d.ts.map +0 -1
- package/dist/commands/access-sequentia.js +0 -256
- package/dist/commands/access-sequentia.js.map +0 -1
- package/dist/commands/biofiles-sequentia.d.ts +0 -21
- package/dist/commands/biofiles-sequentia.d.ts.map +0 -1
- package/dist/commands/biofiles-sequentia.js +0 -238
- package/dist/commands/biofiles-sequentia.js.map +0 -1
- package/dist/commands/download-sequentia.d.ts +0 -19
- package/dist/commands/download-sequentia.d.ts.map +0 -1
- package/dist/commands/download-sequentia.js +0 -159
- package/dist/commands/download-sequentia.js.map +0 -1
- package/dist/commands/researcher/register.d.ts +0 -24
- package/dist/commands/researcher/register.d.ts.map +0 -1
- package/dist/commands/researcher/register.js +0 -192
- package/dist/commands/researcher/register.js.map +0 -1
- package/dist/commands/researcher/status.d.ts +0 -24
- package/dist/commands/researcher/status.d.ts.map +0 -1
- package/dist/commands/researcher/status.js +0 -235
- package/dist/commands/researcher/status.js.map +0 -1
- package/dist/commands/researcher/verify.d.ts +0 -24
- package/dist/commands/researcher/verify.d.ts.map +0 -1
- package/dist/commands/researcher/verify.js +0 -167
- package/dist/commands/researcher/verify.js.map +0 -1
- package/dist/commands/share-sequentia.d.ts +0 -21
- package/dist/commands/share-sequentia.d.ts.map +0 -1
- package/dist/commands/share-sequentia.js +0 -161
- package/dist/commands/share-sequentia.js.map +0 -1
- package/dist/commands/tokenize-sequentia.d.ts +0 -21
- package/dist/commands/tokenize-sequentia.d.ts.map +0 -1
- package/dist/commands/tokenize-sequentia.js +0 -191
- package/dist/commands/tokenize-sequentia.js.map +0 -1
- package/dist/commands/verify-sequentia.d.ts +0 -18
- package/dist/commands/verify-sequentia.d.ts.map +0 -1
- package/dist/commands/verify-sequentia.js +0 -150
- package/dist/commands/verify-sequentia.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,79 @@
|
|
|
1
|
+
# v2.7.1 - Security: 0 vulnerabilities (was 46)
|
|
2
|
+
|
|
3
|
+
**Published**: April 17, 2026
|
|
4
|
+
|
|
5
|
+
## Changes
|
|
6
|
+
- `npm audit fix --force` run to clear **1 critical + 11 high + 18 moderate + 16 low vulnerabilities** (total 46 → 0).
|
|
7
|
+
- `hardhat` bumped 2.x → 3.4.0 (SemVer major; dev-only, used by `scripts/deploy-clara-nft.js` for smart-contract deploy — not by the CLI runtime).
|
|
8
|
+
- `@nomicfoundation/hardhat-toolbox` 6.x → 7.0.0.
|
|
9
|
+
- Auto-fixable patches applied to axios, express, handlebars, minimatch, mocha, path-to-regexp, picomatch, serialize-javascript, undici, etc.
|
|
10
|
+
|
|
11
|
+
## Runtime impact
|
|
12
|
+
- **Zero.** The CLI's runtime dependencies and build (`tsc`) are unaffected.
|
|
13
|
+
- The `scripts/deploy-clara-nft.js` smart-contract deploy script may need minor adjustments for hardhat 3.x API changes — out of scope for this release since it's a one-off deploy tool, not a CLI code path.
|
|
14
|
+
|
|
15
|
+
## How to upgrade
|
|
16
|
+
```bash
|
|
17
|
+
npm install -g @genobank/biofs@2.7.1
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
# v2.7.0 - htsget + smart streaming + aliases
|
|
21
|
+
|
|
22
|
+
**Published**: April 17, 2026
|
|
23
|
+
|
|
24
|
+
## What you get
|
|
25
|
+
|
|
26
|
+
Three new commands that make BioNFT-gated genomic data feel native to the
|
|
27
|
+
bioinformatics toolchain (bcftools, samtools, pysam, IGV) — zero FUSE, zero
|
|
28
|
+
kext, zero install friction on macOS.
|
|
29
|
+
|
|
30
|
+
- `biofs stream <id>` — stream a BioNFT-gated VCF/BAM to stdout via htsget.
|
|
31
|
+
Pipes cleanly into any bioinformatics CLI:
|
|
32
|
+
|
|
33
|
+
biofs stream my-wes | bcftools stats -
|
|
34
|
+
biofs stream my-wes | bcftools view -H -
|
|
35
|
+
|
|
36
|
+
- `biofs pipe <id> -- [tool-args]` — auto-pipe into bcftools (VCF) or
|
|
37
|
+
samtools (BAM). Format detected from registered filename:
|
|
38
|
+
|
|
39
|
+
biofs pipe my-wes -- -H -r chr17:1M-2M # bcftools view
|
|
40
|
+
biofs pipe my-bam -- -b # samtools view
|
|
41
|
+
|
|
42
|
+
- `biofs alias <name> <target>` — local shortcuts for ip_ids. Stored at
|
|
43
|
+
~/.biofs/aliases.json. Works across every command (stream, pipe, info,
|
|
44
|
+
download, mount).
|
|
45
|
+
|
|
46
|
+
biofs alias my-wes 0xCCe14315eE3D6a41596EeB4a2839eE50A8ec59f7
|
|
47
|
+
biofs stream my-wes | bcftools view -H -
|
|
48
|
+
|
|
49
|
+
## Low-level htsget (for debugging)
|
|
50
|
+
|
|
51
|
+
- `biofs htsget service-info` — GA4GH service-info JSON
|
|
52
|
+
- `biofs htsget ticket variants|reads <id>` — raw ticket
|
|
53
|
+
|
|
54
|
+
## Endpoints
|
|
55
|
+
|
|
56
|
+
- Dedicated subdomain: `https://htsget.genobank.app`
|
|
57
|
+
- Legacy path still works: `https://bioip.genobank.app/api_bioip/htsget/*`
|
|
58
|
+
- Override with `BIOFS_HTSGET_URL` env var.
|
|
59
|
+
|
|
60
|
+
## Auth
|
|
61
|
+
|
|
62
|
+
Uses the same `~/.biofs/credentials.json` from `biofs login`. Bearer-token
|
|
63
|
+
auth against the htsget endpoint; server verifies the EIP-191 signature of
|
|
64
|
+
"I want to proceed" on every request.
|
|
65
|
+
|
|
66
|
+
## Compatibility
|
|
67
|
+
|
|
68
|
+
- All existing commands unchanged
|
|
69
|
+
- `view` command retained (prints file content); `pipe` is the new
|
|
70
|
+
bioinformatics-tool wrapper
|
|
71
|
+
- No breaking changes to config files or credentials
|
|
72
|
+
|
|
73
|
+
## Dependencies
|
|
74
|
+
|
|
75
|
+
No new npm dependencies. Uses Node 18+ built-in `fetch` for htsget calls.
|
|
76
|
+
|
|
1
77
|
# v2.6.2 - GCS Migration
|
|
2
78
|
|
|
3
79
|
**Published**: April 16, 2026
|