@binaryandthread/cli 0.1.8 → 0.1.9
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 +8 -3
- package/dist/bin.js +5 -5
- package/dist/bin.js.map +1 -1
- package/dist/{browser-EO5EQUXQ.js → browser-WCNC4AWS.js} +22 -3
- package/dist/browser-WCNC4AWS.js.map +1 -0
- package/dist/{chunk-B6PV7EQG.js → chunk-RGXH3EZ6.js} +2 -1
- package/dist/chunk-RGXH3EZ6.js.map +1 -0
- package/dist/{interactive-BYDQJSG4.js → interactive-2YROZBIN.js} +2 -2
- package/package.json +1 -1
- package/dist/browser-EO5EQUXQ.js.map +0 -1
- package/dist/chunk-B6PV7EQG.js.map +0 -1
- /package/dist/{interactive-BYDQJSG4.js.map → interactive-2YROZBIN.js.map} +0 -0
package/README.md
CHANGED
|
@@ -23,14 +23,19 @@ A bare `bt` may collide with another binary on your `PATH`. If it does, this pac
|
|
|
23
23
|
**`btn`** as an alias, `btn browse` works identically. (`npx @binaryandthread/cli …` is always the
|
|
24
24
|
unambiguous form.)
|
|
25
25
|
|
|
26
|
+
> **The only package is the scoped `@binaryandthread/cli`** (signed, 2FA-published). `npx bnt`,
|
|
27
|
+
> `npx bt`, `npx btn`, and `npx binaryandthread` are **different, unscoped packages owned by
|
|
28
|
+
> strangers** — never run them. Always install the full scoped name.
|
|
29
|
+
|
|
26
30
|
## Commands
|
|
27
31
|
|
|
28
32
|
| command | what it does |
|
|
29
33
|
| --- | --- |
|
|
30
|
-
| `bt browse` | the catalog (
|
|
34
|
+
| `bt browse` | the catalog as a numbered table (`bt stage <n>`); `--pick` opts into the ↑/↓ picker; `--json` for scripts |
|
|
31
35
|
| `bt search <q>` | filter the catalog |
|
|
32
|
-
| `bt view <
|
|
33
|
-
| `bt stage <
|
|
36
|
+
| `bt view <n\|slug>` | one piece, specs + mockup (`--colour black` renders the black row) |
|
|
37
|
+
| `bt stage <n\|slug>` | add to your cart (`--size`, `--colour`) |
|
|
38
|
+
| `bt blame <n\|slug>` | the design's lore + sources (git blame, for motifs) |
|
|
34
39
|
| `bt cart` / `bt unstage <ref>` | show / remove a line |
|
|
35
40
|
| `bt checkout` | mint a checkout, hand off to the browser to pay, then poll |
|
|
36
41
|
| `bt order <id>` / `bt log` | track an order / your order history (when logged in) |
|
package/dist/bin.js
CHANGED
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
versionLine,
|
|
50
50
|
warn,
|
|
51
51
|
working
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-RGXH3EZ6.js";
|
|
53
53
|
import {
|
|
54
54
|
__require
|
|
55
55
|
} from "./chunk-7OCVIDC7.js";
|
|
@@ -78,7 +78,7 @@ function makeLogger(debug, write = (s) => process.stderr.write(s)) {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
// src/version.ts
|
|
81
|
-
var VERSION = "0.1.
|
|
81
|
+
var VERSION = "0.1.9";
|
|
82
82
|
|
|
83
83
|
// src/eggs.ts
|
|
84
84
|
function teapot() {
|
|
@@ -440,7 +440,7 @@ function registerBrowse(program, makeClient2, loadConfig2) {
|
|
|
440
440
|
program.command("browse").alias("ls").description("list what's in stock on a branch.").option("--branch <branch>", "main (live) or next (terminal-only drops)").option("--pick", "opt into the arrow-key picker (default is the numbered table \u2014 use bt stage <n>)").option("--plain", "force the static table (the default; kept for back-compat)").action(async (opts) => {
|
|
441
441
|
const { json, brand } = resolveOutput(program);
|
|
442
442
|
if (opts.pick && !json && brand.color && process.stdout.isTTY && process.stdin.isTTY) {
|
|
443
|
-
const { runInteractiveBrowse } = await import("./interactive-
|
|
443
|
+
const { runInteractiveBrowse } = await import("./interactive-2YROZBIN.js");
|
|
444
444
|
const handled = await runInteractiveBrowse(makeClient2(), loadConfig2(), { branch: opts.branch, brand });
|
|
445
445
|
if (handled) return;
|
|
446
446
|
}
|
|
@@ -770,7 +770,7 @@ function registerCheckout(program, makeClient2, loadConfig2) {
|
|
|
770
770
|
const action = async (opts) => {
|
|
771
771
|
const { json, brand } = resolveOutput(program);
|
|
772
772
|
const { makePrompts: makePrompts2 } = await import("./prompts-DDVV5RE6.js");
|
|
773
|
-
const { openCheckout } = await import("./browser-
|
|
773
|
+
const { openCheckout } = await import("./browser-WCNC4AWS.js");
|
|
774
774
|
const { pollUntilPlaced } = await import("./poll-O3VUD5WV.js");
|
|
775
775
|
const { saveConfig: saveConfig2 } = await import("./config-FXGCWC6Y.js");
|
|
776
776
|
const client = makeClient2();
|
|
@@ -1566,7 +1566,7 @@ function registerBuy(program, makeClient2, loadConfig2) {
|
|
|
1566
1566
|
program.command("buy").argument("<handle>", "the design: a slug, a bt browse number (3), or a fuzzy hint (termnl)").option("--size <size>", "garment size").option("--colour <colour>", "colour, e.g. white / black").description("stage + checkout in one \u2014 reserve, then open browser checkout. cards never touch the terminal.").action(async (handle, opts) => {
|
|
1567
1567
|
const { json, brand } = resolveOutput(program);
|
|
1568
1568
|
const { makePrompts: makePrompts2 } = await import("./prompts-DDVV5RE6.js");
|
|
1569
|
-
const { openCheckout } = await import("./browser-
|
|
1569
|
+
const { openCheckout } = await import("./browser-WCNC4AWS.js");
|
|
1570
1570
|
const { pollUntilPlaced } = await import("./poll-O3VUD5WV.js");
|
|
1571
1571
|
const { saveConfig: saveConfig2 } = await import("./config-FXGCWC6Y.js");
|
|
1572
1572
|
const client = makeClient2();
|