@1sat/cli 0.0.42 → 0.0.43

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 CHANGED
@@ -4,6 +4,14 @@
4
4
 
5
5
  Command-line interface for 1Sat Ordinals on BSV.
6
6
 
7
+ Requires the [Bun](https://bun.sh) runtime. Install Bun first:
8
+
9
+ ```
10
+ curl -fsSL https://bun.sh/install | bash
11
+ ```
12
+
13
+ Then:
14
+
7
15
  ```
8
16
  bun add -g @1sat/cli
9
17
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1sat/cli",
3
- "version": "0.0.42",
3
+ "version": "0.0.43",
4
4
  "description": "CLI for 1Sat Ordinals SDK",
5
5
  "type": "module",
6
6
  "main": "./src/cli.ts",
@@ -8,9 +8,11 @@
8
8
  "1sat": "./src/cli.ts"
9
9
  },
10
10
  "files": [
11
- "src"
11
+ "src",
12
+ "scripts"
12
13
  ],
13
14
  "scripts": {
15
+ "preinstall": "node scripts/check-bun.cjs",
14
16
  "build": "bun build ./src/cli.ts --compile --outfile=bin/1sat --external pg --external pg-native --external pg-query-stream --external tedious --external oracledb --external mysql",
15
17
  "dev": "bun run src/cli.ts",
16
18
  "lint": "biome check src"
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node
2
+ const { spawnSync } = require('node:child_process')
3
+
4
+ const result = spawnSync('bun', ['--version'], { stdio: 'ignore' })
5
+ if (result.error || result.status !== 0) {
6
+ console.error('')
7
+ console.error('@1sat/cli requires the Bun runtime (https://bun.sh).')
8
+ console.error('')
9
+ console.error('Install Bun:')
10
+ console.error(' curl -fsSL https://bun.sh/install | bash')
11
+ console.error('')
12
+ console.error('Then retry:')
13
+ console.error(' bunx @1sat/cli # run without installing')
14
+ console.error(' bun add -g @1sat/cli # install globally')
15
+ console.error('')
16
+ process.exit(1)
17
+ }
@@ -353,7 +353,7 @@ async function walletListActions(
353
353
 
354
354
  try {
355
355
  const listArgs: Parameters<typeof ctx.wallet.listActions>[0] = {
356
- labels: labels.length > 0 ? labels : ['*'], // Default to all labels if none specified
356
+ labels: labels.length > 0 ? labels : [],
357
357
  limit,
358
358
  }
359
359