@bitmagic/cli 0.1.53-dev.4 → 0.1.53-dev.6

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 (47) hide show
  1. package/README.md +88 -18
  2. package/dist/cli.d.ts +10 -0
  3. package/dist/cli.js +2 -0
  4. package/dist/cli.js.map +1 -1
  5. package/dist/commands/publish.d.ts +7 -2
  6. package/dist/commands/publish.js +39 -7
  7. package/dist/commands/publish.js.map +1 -1
  8. package/dist/commands/reset-account.js +25 -8
  9. package/dist/commands/reset-account.js.map +1 -1
  10. package/dist/commands/self-update.d.ts +67 -0
  11. package/dist/commands/self-update.js +196 -0
  12. package/dist/commands/self-update.js.map +1 -0
  13. package/dist/commands/upgrade.js +5 -2
  14. package/dist/commands/upgrade.js.map +1 -1
  15. package/dist/editor/cli-update.d.ts +32 -0
  16. package/dist/editor/cli-update.js +67 -0
  17. package/dist/editor/cli-update.js.map +1 -0
  18. package/dist/editor/publish-panel.d.ts +31 -0
  19. package/dist/editor/publish-panel.js +69 -0
  20. package/dist/editor/publish-panel.js.map +1 -0
  21. package/dist/editor/server.js +38 -0
  22. package/dist/editor/server.js.map +1 -1
  23. package/dist/editor/shell-page.js +112 -3
  24. package/dist/editor/shell-page.js.map +1 -1
  25. package/dist/publish/record.d.ts +22 -0
  26. package/dist/publish/record.js +62 -0
  27. package/dist/publish/record.js.map +1 -0
  28. package/dist/render/qr-output.d.ts +44 -0
  29. package/dist/render/qr-output.js +71 -0
  30. package/dist/render/qr-output.js.map +1 -0
  31. package/dist/render/qr-png.d.ts +37 -0
  32. package/dist/render/qr-png.js +111 -0
  33. package/dist/render/qr-png.js.map +1 -0
  34. package/dist/render/qr-terminal.d.ts +8 -1
  35. package/dist/render/qr-terminal.js +8 -1
  36. package/dist/render/qr-terminal.js.map +1 -1
  37. package/dist/scaffold/project-files.js +36 -27
  38. package/dist/scaffold/project-files.js.map +1 -1
  39. package/dist/update/check.js +2 -1
  40. package/dist/update/check.js.map +1 -1
  41. package/dist/update/notice.d.ts +31 -1
  42. package/dist/update/notice.js +39 -5
  43. package/dist/update/notice.js.map +1 -1
  44. package/dist/update/self-install.d.ts +175 -0
  45. package/dist/update/self-install.js +335 -0
  46. package/dist/update/self-install.js.map +1 -0
  47. package/package.json +4 -4
@@ -0,0 +1,111 @@
1
+ /**
2
+ * A QR code as PNG bytes, for the creator who cannot scan the terminal.
3
+ *
4
+ * `qr-terminal.ts` covers the case where a person is looking at the output. That is not the common
5
+ * case for this CLI: the pro lane is driven by an agent, so stdout is a pipe, and the human who
6
+ * would do the scanning is on the far side of it. A file crosses that boundary where escape
7
+ * sequences cannot — an agent can hand an image to its creator, and cannot hand them a repainted
8
+ * terminal.
9
+ *
10
+ * Greyscale, one byte per pixel. A QR carries one bit per module, so colour would be three bytes of
11
+ * nothing; and at this size the whole image deflates to a few hundred bytes either way. The
12
+ * encoder is hand-rolled for the same reason `qr.ts` is — `@bitmagic/cli` ships four runtime
13
+ * dependencies on purpose, and node's own `zlib` (already used in `publish/` and `assets/`) does
14
+ * the only part that is genuinely hard.
15
+ *
16
+ * Two other hand-rolled PNG encoders exist in this repo — `world-forger-internal`'s vehicle atlas
17
+ * and `game-play-agent`'s solid-colour tile — and neither is reachable from here: the first is in a
18
+ * `private: true` package the CLI does not depend on, the second is server code. A shared home
19
+ * would have to be `@bitmagic/asset-core`; that is worth doing when something needs the third copy,
20
+ * not for the second.
21
+ */
22
+ import { Buffer } from 'buffer';
23
+ import * as zlib from 'zlib';
24
+ /** Pixels per QR module. Large enough that a phone camera reads it off a normal screen. */
25
+ const MODULE_PIXELS = 8;
26
+ /**
27
+ * Quiet zone in modules. Four, the value the spec asks for, rather than the two `qr-terminal.ts`
28
+ * uses — that one is trading margin for terminal columns, and a file has no such constraint.
29
+ */
30
+ const QUIET_MODULES = 4;
31
+ const PNG_SIGNATURE = Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]);
32
+ /** The standard CRC-32 table (PNG spec annex D), built once. */
33
+ function buildCrcTable() {
34
+ const table = new Uint32Array(256);
35
+ for (let n = 0; n < 256; n += 1) {
36
+ let c = n;
37
+ for (let k = 0; k < 8; k += 1) {
38
+ c = (c & 1) !== 0 ? 0xedb88320 ^ (c >>> 1) : c >>> 1;
39
+ }
40
+ table[n] = c >>> 0;
41
+ }
42
+ return table;
43
+ }
44
+ const CRC_TABLE = buildCrcTable();
45
+ function crc32(bytes) {
46
+ let crc = 0xffffffff;
47
+ for (const byte of bytes) {
48
+ crc = CRC_TABLE[(crc ^ byte) & 0xff] ^ (crc >>> 8);
49
+ }
50
+ return (crc ^ 0xffffffff) >>> 0;
51
+ }
52
+ /** One PNG chunk: length, type, data, and the CRC over type+data (never over the length). */
53
+ function chunk(type, data) {
54
+ const length = Buffer.alloc(4);
55
+ length.writeUInt32BE(data.length, 0);
56
+ const typeAndData = Buffer.concat([Buffer.from(type, 'ascii'), data]);
57
+ const crc = Buffer.alloc(4);
58
+ crc.writeUInt32BE(crc32(typeAndData), 0);
59
+ return Buffer.concat([length, typeAndData, crc]);
60
+ }
61
+ /** The pixel width (and height) `encodeQrPng` produces for a matrix of this size. */
62
+ export function qrPngDimension(matrix, options = {}) {
63
+ const scale = options.scale ?? MODULE_PIXELS;
64
+ const quiet = options.quietZone ?? QUIET_MODULES;
65
+ return (matrix.length + quiet * 2) * scale;
66
+ }
67
+ /**
68
+ * Encode a module matrix as a greyscale PNG: dark modules black, everything else white.
69
+ *
70
+ * White is 0xff and dark is 0x00, never inverted — a scanner wants dark on light, and unlike the
71
+ * terminal there is no theme here to fight about it.
72
+ */
73
+ export function encodeQrPng(matrix, options = {}) {
74
+ const scale = options.scale ?? MODULE_PIXELS;
75
+ const quiet = options.quietZone ?? QUIET_MODULES;
76
+ const dimension = qrPngDimension(matrix, options);
77
+ // One filter byte per scanline (0 = None: a QR is flat colour, so the other filters buy nothing
78
+ // that deflate does not already get from the runs), then one byte per pixel.
79
+ const raw = Buffer.alloc(dimension * (dimension + 1), 0xff);
80
+ for (let y = 0; y < dimension; y += 1) {
81
+ const rowStart = y * (dimension + 1);
82
+ raw[rowStart] = 0;
83
+ const moduleRow = Math.floor(y / scale) - quiet;
84
+ if (moduleRow < 0 || moduleRow >= matrix.length)
85
+ continue;
86
+ for (let x = 0; x < dimension; x += 1) {
87
+ const moduleCol = Math.floor(x / scale) - quiet;
88
+ if (moduleCol < 0 || moduleCol >= matrix.length)
89
+ continue;
90
+ if (matrix[moduleRow][moduleCol])
91
+ raw[rowStart + 1 + x] = 0x00;
92
+ }
93
+ }
94
+ const ihdr = Buffer.alloc(13);
95
+ ihdr.writeUInt32BE(dimension, 0);
96
+ ihdr.writeUInt32BE(dimension, 4);
97
+ ihdr[8] = 8; // bit depth
98
+ ihdr[9] = 0; // colour type 0 — greyscale
99
+ ihdr[10] = 0; // compression: deflate, the only value PNG defines
100
+ ihdr[11] = 0; // filter method: adaptive, the only value PNG defines
101
+ ihdr[12] = 0; // interlace: none
102
+ return Buffer.concat([
103
+ PNG_SIGNATURE,
104
+ chunk('IHDR', ihdr),
105
+ // deflateSync, not fflate's — fflate's `deflateSync` emits RAW deflate with no zlib header,
106
+ // and an IDAT must carry the zlib wrapper. (fflate's `zlibSync` would also do.)
107
+ chunk('IDAT', zlib.deflateSync(raw)),
108
+ chunk('IEND', Buffer.alloc(0)),
109
+ ]);
110
+ }
111
+ //# sourceMappingURL=qr-png.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"qr-png.js","sourceRoot":"","sources":["../../src/render/qr-png.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,2FAA2F;AAC3F,MAAM,aAAa,GAAG,CAAC,CAAC;AAExB;;;GAGG;AACH,MAAM,aAAa,GAAG,CAAC,CAAC;AAExB,MAAM,aAAa,GAAG,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AAC,MAAM,CAAC;QACnB,aAAa;QACb,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC;QACnB,4FAA4F;QAC5F,gFAAgF;QAChF,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACpC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAC/B,CAAC,CAAC;AACL,CAAC"}
@@ -10,6 +10,11 @@
10
10
  * never replaces a line and it never reports failure as an error, because an agent tool is usually
11
11
  * what reads this output.
12
12
  *
13
+ * That last clause is also why nothing should call this module directly. Refusing to DRAW into a
14
+ * pipe is right; having nothing to offer when there is one is not, and since an agent drives most
15
+ * publishes, the pipe is the common case rather than the edge. `qr-output.ts` owns that decision —
16
+ * it asks this module first and falls back to a PNG file — and `bitmagic publish` goes through it.
17
+ *
13
18
  * Where it DIVERGES from that file is the gate. `supportsInlineImage` is an allowlist of terminals
14
19
  * known to implement the iTerm2 protocol, because the ones that do not print a screenful of raw
15
20
  * base64. Nothing here is exotic: half-block characters and SGR colour are universal, and tmux
@@ -24,7 +29,9 @@ export interface TerminalQrEnv {
24
29
  * Whether this terminal can show a scannable code at all.
25
30
  *
26
31
  * Not an allowlist — see the file header. `TERM=dumb` is the one terminal that answers no on its
27
- * own behalf, and a non-TTY means something is reading this rather than looking at it.
32
+ * own behalf, and a non-TTY means something is reading this rather than looking at it — which is a
33
+ * reason not to paint escape sequences, NOT a reason to withhold the code. `qr-output.ts` writes an
34
+ * image for every case this function turns down.
28
35
  */
29
36
  export declare function supportsTerminalQr(env: TerminalQrEnv, isTTY: boolean): boolean;
30
37
  /** How many columns the drawn code occupies, quiet zone included. */
@@ -10,6 +10,11 @@
10
10
  * never replaces a line and it never reports failure as an error, because an agent tool is usually
11
11
  * what reads this output.
12
12
  *
13
+ * That last clause is also why nothing should call this module directly. Refusing to DRAW into a
14
+ * pipe is right; having nothing to offer when there is one is not, and since an agent drives most
15
+ * publishes, the pipe is the common case rather than the edge. `qr-output.ts` owns that decision —
16
+ * it asks this module first and falls back to a PNG file — and `bitmagic publish` goes through it.
17
+ *
13
18
  * Where it DIVERGES from that file is the gate. `supportsInlineImage` is an allowlist of terminals
14
19
  * known to implement the iTerm2 protocol, because the ones that do not print a screenful of raw
15
20
  * base64. Nothing here is exotic: half-block characters and SGR colour are universal, and tmux
@@ -51,7 +56,9 @@ const BOTH_LIGHT = ' ';
51
56
  * Whether this terminal can show a scannable code at all.
52
57
  *
53
58
  * Not an allowlist — see the file header. `TERM=dumb` is the one terminal that answers no on its
54
- * own behalf, and a non-TTY means something is reading this rather than looking at it.
59
+ * own behalf, and a non-TTY means something is reading this rather than looking at it — which is a
60
+ * reason not to paint escape sequences, NOT a reason to withhold the code. `qr-output.ts` writes an
61
+ * image for every case this function turns down.
55
62
  */
56
63
  export function supportsTerminalQr(env, isTTY) {
57
64
  if (!isTTY)
@@ -1 +1 @@
1
- {"version":3,"file":"qr-terminal.js","sourceRoot":"","sources":["../../src/render/qr-terminal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,8FAA8F;AAC9F,MAAM,GAAG,GAAG,QAAQ,CAAC;AAErB;;;;;;;;GAQG;AACH,MAAM,KAAK,GAAG,GAAG,GAAG,UAAU,CAAC;AAC/B,MAAM,KAAK,GAAG,GAAG,GAAG,KAAK,CAAC;AAE1B;;;;GAIG;AACH,MAAM,UAAU,GAAG,CAAC,CAAC;AAErB;;;;;;GAMG;AACH,MAAM,SAAS,GAAG,GAAG,CAAC,CAAC,aAAa;AACpC,MAAM,QAAQ,GAAG,GAAG,CAAC,CAAC,mBAAmB;AACzC,MAAM,WAAW,GAAG,GAAG,CAAC,CAAC,mBAAmB;AAC5C,MAAM,UAAU,GAAG,GAAG,CAAC;AAOvB;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAAkB,EAAE,K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399
- * The "Updating the bitmagic CLI" section, which exists because the answer is written down and was
400
- * still being asked.
399
+ * The "Updating the bitmagic CLI" section, which used to have two jobs and now has one.
401
400
  *
402
- * An agent told to update the CLI in a project directory has two published lines to choose from and,
403
- * before this, nothing in the project that named one so it asked the creator "dev or prod?", which
404
- * is a question the project already answers. The pin decides it (see `updateTagForEnvironment`), so
405
- * the section states the command outright rather than describing how to work it out.
401
+ * It began as an answer to a question the project already answered: an agent told to update the CLI
402
+ * had two published lines to choose from, nothing in the project naming one, and so asked the
403
+ * creator "dev or prod?". The section baked in the right `npm i -g` for the pin and forbade the
404
+ * question.
406
405
  *
407
- * The rule is spelled out under the command anyway, for the one case the baked value can be wrong:
408
- * this file is written at scaffold time and refreshed by `bitmagic upgrade`, so a creator who edits
409
- * `environment` in between has a project whose pin has moved and whose AGENTS.md has not.
406
+ * That instruction was right about the line and wrong about the mechanism. A printed `npm i -g` is
407
+ * run by whatever `npm` the agent's shell resolves, and a coding agent's non-interactive shell
408
+ * sources no profile under nvm it gets a different node's npm, installs into a prefix nothing on
409
+ * PATH points at, and reports success while `bitmagic --version` never moves. `bitmagic
410
+ * self-update` resolves its own install from the running process and reads the pin itself, so the
411
+ * whole two-line explanation collapses into one command that cannot be aimed at the wrong place or
412
+ * the wrong line. What remains of the old paragraph is the *why*, which an agent still needs when
413
+ * something looks wrong — not a choice for it to make.
410
414
  *
411
- * `environment` is undefined for a project scaffolded before the pin existed. That project has no
412
- * answer to bake, so the section gives it the rule and the command that produces the pin instead of
413
- * guessing a line on its behalf.
415
+ * `environment` is undefined for a project scaffolded before the pin existed. The command still
416
+ * works there (it falls back to the line the installed build is on), so that case only loses the
417
+ * sentence naming this project's environment.
414
418
  */
415
419
  function renderCliUpdateSection(environment) {
416
- const install = environment === 'prod' ? 'npm i -g @bitmagic/cli' : 'npm i -g @bitmagic/cli@dev';
417
420
  const here = environment === undefined
418
421
  ? `This project predates the \`environment\` field of \`bitmagic.json\` and so has no pin yet.
419
- Run \`bitmagic upgrade\` once to stamp one; \`bitmagic whoami\` prints what the CLI resolves in the
420
- meantime, and that environment decides the line by the rule below.`
421
- : `This project is on the **${environment}** environment (\`environment\` in
422
- \`bitmagic.json\`), so exactly one command updates the CLI here:
422
+ Run \`bitmagic upgrade\` once to stamp one, and \`bitmagic whoami\` to see what the CLI resolves in
423
+ the meantime; until there is a pin, \`self-update\` keeps you on the line your installed build is
424
+ already on.`
425
+ : `This project is on the **${environment}** environment (\`environment\` in \`bitmagic.json\`), and the command reads that pin itself.`;
426
+ return `## Updating the bitmagic CLI
423
427
 
424
428
  \`\`\`
425
- ${install}
426
- \`\`\``;
427
- return `## Updating the bitmagic CLI
429
+ bitmagic self-update
430
+ \`\`\`
428
431
 
429
432
  ${here}
430
433
 
431
- **Never ask which line to install, and never offer the choice** the environment decides it.
432
- \`dev\` and \`local\` projects take \`npm i -g @bitmagic/cli@dev\`, the prerelease line developed
433
- against the dev api-server; \`prod\` projects take the plain \`npm i -g @bitmagic/cli\`. They are not
434
- interchangeable the wrong one calls endpoints that do not exist yet, or lags the engine its
435
- environment serves, and both fail as opaque command errors rather than version warnings. Run the
436
- wrong one here and every command opens with a notice saying so. If \`bitmagic.json\` ever disagrees
437
- with this paragraph, the file is right. The engine is a separate command: \`bitmagic upgrade\`.`;
434
+ **Never ask which line to install, never offer the choice, and never update with \`npm i -g @bitmagic/cli\`** —
435
+ \`self-update\` reinstalls into the exact place this CLI lives, using the node running it, which the \`npm\` on
436
+ your PATH may not be; under nvm it usually is not, and the install lands in another prefix while
437
+ \`bitmagic --version\` never moves. The lines are not interchangeable (\`dev\` and \`local\` take the prerelease
438
+ built against the dev api-server, \`prod\` the release), and the wrong one fails as opaque command errors
439
+ rather than version warnings so run \`self-update\` before debugging a command that started failing
440
+ strangely. If \`bitmagic.json\` ever disagrees with this paragraph, the file is right. The engine is a
441
+ separate command: \`bitmagic upgrade\`.`;
438
442
  }
439
443
  export function renderAgentsMd(environment) {
440
444
  return `# Working on this Bitmagic game
@@ -774,6 +778,11 @@ Follow this order; \`publish\` enforces it and refuses otherwise:
774
778
  3. Run \`bitmagic publish\`. It rebuilds automatically if the project changed since the last
775
779
  build, so a manual \`bitmagic build\` first is optional.
776
780
 
781
+ **Show your creator the QR code.** Publish turns the game's URL into a scannable image. Your
782
+ output is a pipe, so it cannot be drawn in the terminal: publish writes \`.bitmagic/publish-qr.png\`
783
+ and names it (\`qrPath\` under \`--json\`). Surface that image like any artifact you made — scanning
784
+ it opens the game on a phone, and a bare URL leaves your creator retyping a game id into a browser.
785
+
777
786
  **A bare \`bitmagic publish\` does not make the game public.** Every publish uploads and
778
787
  registers the game, but \`visibility\` defaults to \`private\` — reachable by URL, not listed on
779
788
  bitmagic.ai. Pass \`--visibility public\` explicitly, on that call, to list it; omit it on a later
@@ -1 +1 @@
1
- {"version":3,"file":"project-files.js","sourceRoot":"","sources":["../../src/scaffold/project-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAKjF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;IAkBnC,CAAC;AAEL;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,2BAA2B,EAAE,SAAS;IACtC,2BAA2B,EAAE,SAAS;IACtC,kBAAkB,EAAE,QAAQ;IAC5B,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,kCAAkC,EAAE,QAAQ;IAC5C,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,UAAU;IACjB,4FAA4F;IAC5F,6FAA6F;IAC7F,4CAA4C;CACZ,CAAC;AAEnC,MAAM,CAAC,MAAM,gBAAgB,GAA2B;IACtD,aAAa,EAAE,UAAU;IACzB,cAAc,EAAE,UAAU;IAC1B,8FAA8F;IAC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AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8DR,CAAC;AACF,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CR,CAAC;AACF,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAa;IAC9C,MAAM,KAAK,GAAG,IAAI,EAAE,IAAI,EAAE,CAAC;IAC3B,OAAO;;EAEP,KAAK;QACH,CAAC,CAAC,8GAA8G;QAChH,CAAC,CAAC,0KAA0K;;;;EAI9K,KAAK,IAAI,iEAAiE;;;;;;;;;;;;;;CAc3E,CAAC;AACF,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,OAAO,cAAc,CAAC;AACxB,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;CAwBR,CAAC;AACF,CAAC"}
@@ -116,7 +116,8 @@ export async function refreshUpdateCacheInBackground(currentVersion, now = Date.
116
116
  const tag = updateTagFor(currentVersion);
117
117
  const cache = readUpdateCache(baseDir);
118
118
  // A cache about the other line is refreshed immediately however recent it is — switching lines
119
- // with `npm i -g @bitmagic/cli@dev` must not leave the nudge mute for the rest of its interval.
119
+ // with `bitmagic self-update --tag dev` must not leave the nudge mute for the rest of its
120
+ // interval.
120
121
  if (cache !== null && cache.tag === tag && !isCacheStale(cache, now))
121
122
  return;
122
123
  const latest = await fetchTagVersion(tag, fetchImpl);
@@ -1 +1 @@
1
- {"version":3,"file":"check.js","sourceRoot":"","sources":["../../src/update/check.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAA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tC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,GAAG,KAAK,YAAY,CAAC,cAAc,CAAC;QAAE,OAAO,IAAI,CAAC;IAC9E,OAAO,eAAe,CAAC,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;AACvD,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,aAAa,CAC3B,cAAsB,EACtB,kBAA+C,EAC/C,OAAgB;IAEhB,MAAM,QAAQ,GACZ,kBAAkB,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,qBAAqB,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;IACtG,OAAO,QAAQ,IAAI,mBAAmB,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAClE,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAClD,cAAsB,EACtB,MAAc,IAAI,CAAC,GAAG,EAAE,EACxB,OAAgB,EAChB,YAAqC,UAAU,CAAC,KAAK;IAErD,MAAM,GAAG,GAAG,YAAY,CAAC,cAAc,CAAC,CAAC;IACzC,MAAM,KAAK,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;IACvC,+FAA+F;IAC/F,0FAA0F;IAC1F,YAAY;IACZ,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC;QAAE,OAAO;IAC7E,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IACrD,+FAA+F;IAC/F,6CAA6C;IAC7C,gBAAgB,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,EAAE,OAAO,CAAC,CAAC;AAC7D,CAAC"}
@@ -10,8 +10,38 @@ export type UpdateTag = 'latest' | 'dev';
10
10
  * release as "newer" for half a patch cycle and never mention the dev build that fixes things.
11
11
  */
12
12
  export declare function updateTagFor(version: string): UpdateTag;
13
- /** How to install the line a build is already on, so a nudge never moves someone between lines. */
13
+ /**
14
+ * How to install the line a build is already on, from scratch, with npm.
15
+ *
16
+ * Now only for the cases that genuinely mean a FIRST install — the README, the portal's /pro page,
17
+ * and `reset-account`'s "start over where a new creator starts" — where there is no bitmagic on
18
+ * the machine to run anything. Everything that updates an EXISTING install names
19
+ * `SELF_UPDATE_COMMAND` instead, for the reason spelled out there.
20
+ */
14
21
  export declare function installCommandFor(tag: UpdateTag): string;
22
+ /**
23
+ * What every update nudge names, and the one command that reliably lands.
24
+ *
25
+ * A printed `npm i -g` is run by whatever `npm` the reading shell resolves, which on a machine
26
+ * using nvm is routinely not the one that owns this install: a coding agent's non-interactive
27
+ * shell sources no profile, nvm never loads, and the install goes to a prefix nobody's PATH points
28
+ * at while npm reports success. `bitmagic self-update` resolves its own install from
29
+ * `process.execPath` and asks the shell nothing (see update/self-install.ts).
30
+ *
31
+ * Naming a bitmagic command in a message printed BY bitmagic is safe by construction: the binary
32
+ * is on that shell's PATH, because it just ran there. That is exactly the guarantee the npm line
33
+ * never had.
34
+ */
35
+ export declare const SELF_UPDATE_COMMAND = "bitmagic self-update";
36
+ /**
37
+ * The same command when it has to cross lines.
38
+ *
39
+ * `self-update` reads a project's pin itself, so inside a project the bare form already does the
40
+ * right thing — but the mismatch notice is also printed outside one, and it is the single message
41
+ * whose whole subject is which line you should be on. Saying it out loud costs nothing and leaves
42
+ * nothing to infer.
43
+ */
44
+ export declare function crossLineUpdateCommand(tag: UpdateTag): string;
15
45
  /**
16
46
  * What to call a line in a sentence.
17
47
  *
@@ -10,10 +10,42 @@ import { isOlderSemverVersion } from '../project/version-compare.js';
10
10
  export function updateTagFor(version) {
11
11
  return version.includes('-') ? 'dev' : 'latest';
12
12
  }
13
- /** How to install the line a build is already on, so a nudge never moves someone between lines. */
13
+ /**
14
+ * How to install the line a build is already on, from scratch, with npm.
15
+ *
16
+ * Now only for the cases that genuinely mean a FIRST install — the README, the portal's /pro page,
17
+ * and `reset-account`'s "start over where a new creator starts" — where there is no bitmagic on
18
+ * the machine to run anything. Everything that updates an EXISTING install names
19
+ * `SELF_UPDATE_COMMAND` instead, for the reason spelled out there.
20
+ */
14
21
  export function installCommandFor(tag) {
15
22
  return tag === 'dev' ? 'npm i -g @bitmagic/cli@dev' : 'npm i -g @bitmagic/cli';
16
23
  }
24
+ /**
25
+ * What every update nudge names, and the one command that reliably lands.
26
+ *
27
+ * A printed `npm i -g` is run by whatever `npm` the reading shell resolves, which on a machine
28
+ * using nvm is routinely not the one that owns this install: a coding agent's non-interactive
29
+ * shell sources no profile, nvm never loads, and the install goes to a prefix nobody's PATH points
30
+ * at while npm reports success. `bitmagic self-update` resolves its own install from
31
+ * `process.execPath` and asks the shell nothing (see update/self-install.ts).
32
+ *
33
+ * Naming a bitmagic command in a message printed BY bitmagic is safe by construction: the binary
34
+ * is on that shell's PATH, because it just ran there. That is exactly the guarantee the npm line
35
+ * never had.
36
+ */
37
+ export const SELF_UPDATE_COMMAND = 'bitmagic self-update';
38
+ /**
39
+ * The same command when it has to cross lines.
40
+ *
41
+ * `self-update` reads a project's pin itself, so inside a project the bare form already does the
42
+ * right thing — but the mismatch notice is also printed outside one, and it is the single message
43
+ * whose whole subject is which line you should be on. Saying it out loud costs nothing and leaves
44
+ * nothing to infer.
45
+ */
46
+ export function crossLineUpdateCommand(tag) {
47
+ return `${SELF_UPDATE_COMMAND} --tag ${tag}`;
48
+ }
17
49
  /**
18
50
  * What to call a line in a sentence.
19
51
  *
@@ -98,9 +130,11 @@ export function cliUpdateNotice(currentVersion, latestVersion) {
98
130
  return null;
99
131
  if (isOlderSemverVersion(currentVersion, latestVersion) !== true)
100
132
  return null;
101
- // Naming the bare install for a dev build would silently move a tester onto the release line.
102
- const install = installCommandFor(updateTagFor(currentVersion));
103
- return `A newer bitmagic CLI is available: ${latestVersion} (you have ${currentVersion}). Run \`${install}\` to update.`;
133
+ // No `--tag` here: this notice is by definition about the line the build is already on, and
134
+ // `self-update` outside a project defaults to exactly that. A tester on a prerelease stays on the
135
+ // prerelease line, which is the guarantee the old per-line npm string existed to give.
136
+ return (`A newer bitmagic CLI is available: ${latestVersion} (you have ${currentVersion}). ` +
137
+ `Run \`${SELF_UPDATE_COMMAND}\` to update.`);
104
138
  }
105
139
  /**
106
140
  * The line to say when the CLI running inside a project came from the other one.
@@ -123,6 +157,6 @@ export function cliLineMismatchNotice(currentVersion, projectEnvironment) {
123
157
  return null;
124
158
  return (`This project is on the ${projectEnvironment} environment, so its CLI comes from the ` +
125
159
  `${describeUpdateTag(wanted)} line — but you are running a ${describeUpdateTag(installed)} ` +
126
- `build (${currentVersion}). Run \`${installCommandFor(wanted)}\`.`);
160
+ `build (${currentVersion}). Run \`${crossLineUpdateCommand(wanted)}\`.`);
127
161
  }
128
162
  //# sourceMappingURL=notice.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notice.js","sourceRoot":"","sources":["../../src/update/notice.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAKrE;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY,CAAC,OAAe;IAC1C,OAAO,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC;AAClD,CAAC;AAED,mGAAmG;AACnG,MAAM,UAAU,iBAAiB,CAAC,GAAc;IAC9C,OAAO,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,wBAAwB,CAAC;AACjF,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,iBAAiB,CAAC,GAAc;IAC9C,OAAO,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;AACxD,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,uBAAuB,CAAC,WAA4B;IAClE,OA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