@nonbot/cli 0.9.7 → 0.9.8

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.
@@ -42,6 +42,9 @@ export function shellQuoteSingle(s) {
42
42
  const escaped = String(s).replace(/'/g, `'\\''`);
43
43
  return `'${escaped}'`;
44
44
  }
45
+ export function bannerSafeText(s) {
46
+ return String(s).replace(/[\\"$`]/g, (ch) => (ch === '\\' ? '\\\\\\\\' : '\\' + ch));
47
+ }
45
48
  function bannerHeader(title) {
46
49
  const inner = BANNER_WIDTH - 2;
47
50
  const top = BOX_TL + BOX_H.repeat(inner) + BOX_TR;
@@ -264,7 +267,7 @@ export function buildRealCommand(params) {
264
267
  '',
265
268
  bannerHeader('Run'),
266
269
  '',
267
- kvRow('Story', titleLabel),
270
+ kvRow('Story', bannerSafeText(titleLabel)),
268
271
  kvRow('Activation', params.activationId || '(unknown)'),
269
272
  kvRow('Provider', providerLabel),
270
273
  kvRow('Repo', repoLabel),
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.9.7';
1
+ export const VERSION = '0.9.8';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nonbot/cli",
3
- "version": "0.9.7",
3
+ "version": "0.9.8",
4
4
  "type": "module",
5
5
  "description": "The local host for non.bot ▶ Run — opens a terminal on your machine and starts the work in your linked repo.",
6
6
  "license": "UNLICENSED",