@ghostlytools/cli 1.13.3 → 1.13.4

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 (86) hide show
  1. package/dist/assets/{api-DO0YMLiB.js → api-B5qxNMgg.js} +2 -2
  2. package/dist/assets/{api-Dz2cw7WD.js → api-iiij_pP5.js} +71 -28
  3. package/dist/assets/api-iiij_pP5.js.map +1 -0
  4. package/dist/assets/{apiKit-DAFsWtyk.js → apiKit-BPuHOoXF.js} +2 -2
  5. package/dist/assets/{apiKit-DAFsWtyk.js.map → apiKit-BPuHOoXF.js.map} +1 -1
  6. package/dist/assets/{appFetch-BQO5Pk7W.js → appFetch-D89FnCxr.js} +2 -2
  7. package/dist/assets/{appFetch-BQO5Pk7W.js.map → appFetch-D89FnCxr.js.map} +1 -1
  8. package/dist/assets/{apps-D4KRpZB4.js → apps-BpZcd86Y.js} +1 -1
  9. package/dist/assets/{apps-B88rYWRm.js → apps-D2YGSPJe.js} +5 -5
  10. package/dist/assets/{apps-B88rYWRm.js.map → apps-D2YGSPJe.js.map} +1 -1
  11. package/dist/assets/{backup-CNLY905d.js → backup-BrMe9VPY.js} +4 -4
  12. package/dist/assets/{backup-CNLY905d.js.map → backup-BrMe9VPY.js.map} +1 -1
  13. package/dist/assets/{backup-BeXBtbVL.js → backup-COkkM8Yy.js} +1 -1
  14. package/dist/assets/{bitcoind-BXZdQ1wZ.js → bitcoind-CK1QEUHn.js} +2 -2
  15. package/dist/assets/{bitcoind-BXZdQ1wZ.js.map → bitcoind-CK1QEUHn.js.map} +1 -1
  16. package/dist/assets/{blobFiles-DDs34n0r.js → blobFiles-DA3UEn37.js} +3 -3
  17. package/dist/assets/{blobFiles-DDs34n0r.js.map → blobFiles-DA3UEn37.js.map} +1 -1
  18. package/dist/assets/buttons-BWEdoxgK.js +1 -0
  19. package/dist/assets/{buttons-BKojbx0Q.js → buttons-UsDPQJsQ.js} +4 -4
  20. package/dist/assets/{buttons-BKojbx0Q.js.map → buttons-UsDPQJsQ.js.map} +1 -1
  21. package/dist/assets/{client-BtPhfWjK.js → client-Cj-VLeTs.js} +2 -2
  22. package/dist/assets/{client-BtPhfWjK.js.map → client-Cj-VLeTs.js.map} +1 -1
  23. package/dist/assets/{fileBytes-CfvUXdSy.js → fileBytes-B2jXQI8e.js} +3 -3
  24. package/dist/assets/{fileBytes-CfvUXdSy.js.map → fileBytes-B2jXQI8e.js.map} +1 -1
  25. package/dist/assets/{fileBytes-tj6-VZcB.js → fileBytes-BQrW3m-d.js} +2 -2
  26. package/dist/assets/{fileBytes-tj6-VZcB.js.map → fileBytes-BQrW3m-d.js.map} +1 -1
  27. package/dist/assets/{fileBytes-CCKbwqG_.js → fileBytes-CtjxJ6AL.js} +1 -1
  28. package/dist/assets/{fileBytesIdb-BJirUAjI.js → fileBytesIdb-B7Wjw0S8.js} +3 -3
  29. package/dist/assets/{fileBytesIdb-BJirUAjI.js.map → fileBytesIdb-B7Wjw0S8.js.map} +1 -1
  30. package/dist/assets/fileBytesIdb-Fcj2mwj6.js +1 -0
  31. package/dist/assets/{fileBytesOpfs-DRUYLER4.js → fileBytesOpfs-BW0u-_f_.js} +3 -3
  32. package/dist/assets/{fileBytesOpfs-DRUYLER4.js.map → fileBytesOpfs-BW0u-_f_.js.map} +1 -1
  33. package/dist/assets/{fixedHosts-BJFL8Ell.js → fixedHosts-CrO01M_y.js} +3 -3
  34. package/dist/assets/{fixedHosts-BJFL8Ell.js.map → fixedHosts-CrO01M_y.js.map} +1 -1
  35. package/dist/assets/{groupMeta-Cz95F6sX.js → groupMeta-DHJxOu0K.js} +3 -3
  36. package/dist/assets/groupMeta-DHJxOu0K.js.map +1 -0
  37. package/dist/assets/{host-BsBWxTtW.js → host-C4J4y-Zq.js} +24 -16
  38. package/dist/assets/host-C4J4y-Zq.js.map +1 -0
  39. package/dist/assets/{idb-ewvbqyDI.js → idb-CmIR_bxg.js} +2 -1
  40. package/dist/assets/idb-CmIR_bxg.js.map +1 -0
  41. package/dist/assets/{identityProofs-zI_Iy9uI.js → identityProofs-C0rIGT6y.js} +6 -3
  42. package/dist/assets/identityProofs-C0rIGT6y.js.map +1 -0
  43. package/dist/assets/{irohWeb-BLDcHwYz.js → irohWeb-BXgunUhu.js} +69 -26
  44. package/dist/assets/irohWeb-BXgunUhu.js.map +1 -0
  45. package/dist/assets/{main-D48Ben7C.js → main-BLs-zUTt.js} +18 -18
  46. package/dist/assets/{main-D48Ben7C.js.map → main-BLs-zUTt.js.map} +1 -1
  47. package/dist/assets/{mainline-CDUXtV-I.js → mainline-CYek1H10.js} +2 -2
  48. package/dist/assets/{mainline-CDUXtV-I.js.map → mainline-CYek1H10.js.map} +1 -1
  49. package/dist/assets/{networkReason-DYlPZS5M.js → networkReason-C6LYbjF2.js} +2 -2
  50. package/dist/assets/{networkReason-DYlPZS5M.js.map → networkReason-C6LYbjF2.js.map} +1 -1
  51. package/dist/assets/{ownDid-CwxFBzOH.js → ownDid-Dg-8e_hs.js} +4 -4
  52. package/dist/assets/{ownDid-CwxFBzOH.js.map → ownDid-Dg-8e_hs.js.map} +1 -1
  53. package/dist/assets/{ownStatus-DjD0sQKF.js → ownStatus-BOx4vLi6.js} +3 -3
  54. package/dist/assets/{ownStatus-DjD0sQKF.js.map → ownStatus-BOx4vLi6.js.map} +1 -1
  55. package/dist/assets/{profiles-BAJf0c9E.js → profiles-BA0ePikY.js} +2 -2
  56. package/dist/assets/{profiles-BAJf0c9E.js.map → profiles-BA0ePikY.js.map} +1 -1
  57. package/dist/assets/{registry-CHwHTWbK.js → registry-DuSwXntJ.js} +1 -1
  58. package/dist/assets/{registry-CPuexTle.js → registry-OoIgxDrO.js} +5 -5
  59. package/dist/assets/{registry-CPuexTle.js.map → registry-OoIgxDrO.js.map} +1 -1
  60. package/dist/assets/{relay-gJTOYQJZ.js → relay-NT5bf1WA.js} +9 -6
  61. package/dist/assets/relay-NT5bf1WA.js.map +1 -0
  62. package/dist/assets/{resolve-BqmGXKn4.js → resolve-DUmE70Eo.js} +3 -3
  63. package/dist/assets/{resolve-BqmGXKn4.js.map → resolve-DUmE70Eo.js.map} +1 -1
  64. package/dist/assets/{restoredRows-D_WSHE7H.js → restoredRows-Cgaxx1xW.js} +2 -2
  65. package/dist/assets/{restoredRows-D_WSHE7H.js.map → restoredRows-Cgaxx1xW.js.map} +1 -1
  66. package/dist/assets/{server-e4oKeNez.js → server-WWlXICVB.js} +166 -32
  67. package/dist/assets/server-WWlXICVB.js.map +1 -0
  68. package/dist/assets/{sshForges-Cqt3qfWe.js → sshForges-Cfu-dSwc.js} +2 -2
  69. package/dist/assets/{sshForges-Cqt3qfWe.js.map → sshForges-Cfu-dSwc.js.map} +1 -1
  70. package/dist/assets/{usdt-DLmtf8F9.js → usdt-BkO4SY07.js} +2 -2
  71. package/dist/assets/{usdt-DLmtf8F9.js.map → usdt-BkO4SY07.js.map} +1 -1
  72. package/dist/assets/{waitNotice-mB0Ym145.js → waitNotice-DSECf6II.js} +2 -2
  73. package/dist/assets/{waitNotice-mB0Ym145.js.map → waitNotice-DSECf6II.js.map} +1 -1
  74. package/dist/ghostly.mjs +1 -1
  75. package/npm-shrinkwrap.json +2 -2
  76. package/package.json +1 -1
  77. package/dist/assets/api-Dz2cw7WD.js.map +0 -1
  78. package/dist/assets/buttons-_5Fw8uHn.js +0 -1
  79. package/dist/assets/fileBytesIdb-B0zzJ6p7.js +0 -1
  80. package/dist/assets/groupMeta-Cz95F6sX.js.map +0 -1
  81. package/dist/assets/host-BsBWxTtW.js.map +0 -1
  82. package/dist/assets/idb-ewvbqyDI.js.map +0 -1
  83. package/dist/assets/identityProofs-zI_Iy9uI.js.map +0 -1
  84. package/dist/assets/irohWeb-BLDcHwYz.js.map +0 -1
  85. package/dist/assets/relay-gJTOYQJZ.js.map +0 -1
  86. package/dist/assets/server-e4oKeNez.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  import { a as secretValue, i as localFileError, n as EXIT, o as shownValue, r as asCliError, t as CliError } from "./errors-JVJsO8Iu.js";
2
- import { a as endedUnsent, i as endedUnanswered, o as isNotTheDaemon, p as CALL_RATES, r as connectDaemon, s as notTheDaemon, t as DaemonClient, y as isCallRate } from "./client-BtPhfWjK.js";
2
+ import { a as endedUnsent, i as endedUnanswered, o as isNotTheDaemon, p as CALL_RATES, r as connectDaemon, s as notTheDaemon, t as DaemonClient, y as isCallRate } from "./client-Cj-VLeTs.js";
3
3
  import { n as dropSecretEnv, t as childEnv } from "./childEnv-C-99hdbL.js";
4
- import { $n as reactionEmoji, O as GROUP_FILE_LIMITS, On as VOICE_LIMITS, Tr as cardUrl, _r as RUN_RESULTS, fr as CRON_LINE, gr as ROUTINE_STATES, hr as PR_STATES, kr as statusCardBytes, mr as PR_CHECKS, pr as ITEM_STATES, vr as STATUS_CARD_LIMITS, wr as cardLine, xt as STATUS_AVAILABILITIES, yr as TASK_STATUSES } from "./groupMeta-Cz95F6sX.js";
5
- import { S as userPath, T as ownProfile, _ as profileExists, b as startingDaemon, c as createProfile, d as daemonClaim, f as ghostlyHome, g as noProfile, i as checkProfileName, l as currentProfile, m as lockOwner, o as checkShownNameOption, p as listProfiles, s as claimForDaemon, u as currentProfileOrNone, v as profilePaths, y as selectProfile } from "./profiles-BAJf0c9E.js";
6
- import { _ as hideSecretFields, a as PAY_METHODS, c as turnRef, d as ENGINE_METHODS, f as ENGINE_PARAMS, h as SECRET_RESULTS, i as CHAT_METHODS, m as READ_PARAMS, o as TRANSPORT_NAMES, p as ENGINE_READS, r as ADDRESS_TYPES, s as WALLET_TYPES, t as checkOwnStatus } from "./ownStatus-DjD0sQKF.js";
7
- import { G as jsonOut, W as shellWord, a as contactKeyOf, b as nameKey, x as namedByThem } from "./apiKit-DAFsWtyk.js";
8
- import { c as waitsFor, o as longTextChat, r as dhtOnlyNotice, s as waitNotice } from "./waitNotice-mB0Ym145.js";
4
+ import { $n as reactionEmoji, O as GROUP_FILE_LIMITS, On as VOICE_LIMITS, Tr as cardUrl, _r as RUN_RESULTS, fr as CRON_LINE, gr as ROUTINE_STATES, hr as PR_STATES, kr as statusCardBytes, mr as PR_CHECKS, pr as ITEM_STATES, vr as STATUS_CARD_LIMITS, wr as cardLine, xt as STATUS_AVAILABILITIES, yr as TASK_STATUSES } from "./groupMeta-DHJxOu0K.js";
5
+ import { S as userPath, T as ownProfile, _ as profileExists, b as startingDaemon, c as createProfile, d as daemonClaim, f as ghostlyHome, g as noProfile, i as checkProfileName, l as currentProfile, m as lockOwner, o as checkShownNameOption, p as listProfiles, s as claimForDaemon, u as currentProfileOrNone, v as profilePaths, y as selectProfile } from "./profiles-BA0ePikY.js";
6
+ import { _ as hideSecretFields, a as PAY_METHODS, c as turnRef, d as ENGINE_METHODS, f as ENGINE_PARAMS, h as SECRET_RESULTS, i as CHAT_METHODS, m as READ_PARAMS, o as TRANSPORT_NAMES, p as ENGINE_READS, r as ADDRESS_TYPES, s as WALLET_TYPES, t as checkOwnStatus } from "./ownStatus-BOx4vLi6.js";
7
+ import { G as jsonOut, W as shellWord, a as contactKeyOf, b as nameKey, x as namedByThem } from "./apiKit-BPuHOoXF.js";
8
+ import { c as waitsFor, o as longTextChat, r as dhtOnlyNotice, s as waitNotice } from "./waitNotice-DSECf6II.js";
9
9
  import { spawn } from "node:child_process";
10
10
  import { accessSync, closeSync, constants, existsSync, fstatSync, openSync, readFileSync, readSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
11
11
  import { dirname, resolve, sep } from "node:path";
@@ -14,7 +14,7 @@ import { connect } from "node:net";
14
14
  import { format } from "node:util";
15
15
  var package_default = {
16
16
  name: "@ghostlytools/cli",
17
- version: "1.13.3",
17
+ version: "1.13.4",
18
18
  type: "module",
19
19
  description: "Ghostly for bots and terminals: the app's own engine, headless on Node, behind a daemon and a `ghostly` command with JSON output.",
20
20
  license: "MIT",
@@ -1211,7 +1211,7 @@ var commands$8 = {
1211
1211
  description: "Replace the three files when they are there"
1212
1212
  }
1213
1213
  },
1214
- run: async ({ options }, a) => (await import("./apps-D4KRpZB4.js")).initApp(a.dir, {
1214
+ run: async ({ options }, a) => (await import("./apps-BpZcd86Y.js")).initApp(a.dir, {
1215
1215
  name: options.name,
1216
1216
  title: options.title,
1217
1217
  force: options.force === true
@@ -1251,7 +1251,7 @@ var commands$8 = {
1251
1251
  description: "This version's sequence, higher than the bundle at --out's (default: one more than it)"
1252
1252
  }
1253
1253
  },
1254
- run: async ({ options }, a) => (await import("./apps-D4KRpZB4.js")).publishApp(a.dir, keyFile(options.key, "app publish <dir> --key <file> [--out <file>] [--sequence n]"), here(options.out), options.sequence)
1254
+ run: async ({ options }, a) => (await import("./apps-BpZcd86Y.js")).publishApp(a.dir, keyFile(options.key, "app publish <dir> --key <file> [--out <file>] [--sequence n]"), here(options.out), options.sequence)
1255
1255
  },
1256
1256
  "app revoke": {
1257
1257
  method: "app.revoke",
@@ -1284,7 +1284,7 @@ var commands$8 = {
1284
1284
  description: "Allow --up-to past the bundle's own sequence (versions published from elsewhere), and a --reason that looks like a seed, a key or ecash"
1285
1285
  }
1286
1286
  },
1287
- run: async ({ options }, a) => (await import("./apps-D4KRpZB4.js")).revokeApp(a.dir, keyFile(options.key, "app revoke <dir> --key <file> (--digest <digest>... | --up-to <sequence>) [--reason <text>] [--bundle <file>] [--force]"), {
1287
+ run: async ({ options }, a) => (await import("./apps-BpZcd86Y.js")).revokeApp(a.dir, keyFile(options.key, "app revoke <dir> --key <file> (--digest <digest>... | --up-to <sequence>) [--reason <text>] [--bundle <file>] [--force]"), {
1288
1288
  digests: options.digest,
1289
1289
  upTo: options["up-to"],
1290
1290
  reason: options.reason,
@@ -1345,7 +1345,7 @@ var commands$8 = {
1345
1345
  usage: "app verify <bundle|url>",
1346
1346
  summary: "Check a .ghostlyapp as a client would, from a file or an https URL: its manifest and digest, or refused (exit 1) with the reason, revoked when the ghostly-revoke.json beside it (for a URL, or beside one of its sources) revokes this version",
1347
1347
  args: ["bundle"],
1348
- run: async (_, a) => (await import("./apps-D4KRpZB4.js")).verifyApp(a.bundle)
1348
+ run: async (_, a) => (await import("./apps-BpZcd86Y.js")).verifyApp(a.bundle)
1349
1349
  },
1350
1350
  "store sign": {
1351
1351
  method: "store.sign",
@@ -1362,7 +1362,7 @@ var commands$8 = {
1362
1362
  description: "The folder to write ghostly-store.json and ghostly-store.sig in (default: the index's)"
1363
1363
  }
1364
1364
  },
1365
- run: async ({ options }, a) => (await import("./apps-D4KRpZB4.js")).signStore(a.index, keyFile(options.key, "store sign <index> --key <file> [--out <dir>]"), here(options.out))
1365
+ run: async ({ options }, a) => (await import("./apps-BpZcd86Y.js")).signStore(a.index, keyFile(options.key, "store sign <index> --key <file> [--out <dir>]"), here(options.out))
1366
1366
  }
1367
1367
  };
1368
1368
  // src/commands/calls.ts
@@ -4502,8 +4502,8 @@ var VERSION = package_default.version;
4502
4502
  * command a running daemon answers loads none of them, and starts about as fast as Node does. Statically imported, they
4503
4503
  * cost every command ~100 ms before its socket was opened.
4504
4504
  */
4505
- var engineApi = () => import("./api-DO0YMLiB.js");
4506
- var engineHost = () => import("./host-BsBWxTtW.js");
4505
+ var engineApi = () => import("./api-B5qxNMgg.js");
4506
+ var engineHost = () => import("./host-C4J4y-Zq.js");
4507
4507
  /**
4508
4508
  * `--translate <lang>`'s translator, or null (not asked; or the runtime is not there, said on stderr). Loaded only when
4509
4509
  * asked: the app's message parser it reads costs every other command nothing.
@@ -5631,7 +5631,7 @@ async function profileCommand(sub, argv) {
5631
5631
  if (!given || !name) throw new CliError("usage", `Missing <${given ? "new profile" : "file"}>: ghostly profile restore <file> <new profile> [--passphrase-file f] [--use]`);
5632
5632
  noMoreThan(2, parsed.positionals, "profile restore <file> <new profile> [--passphrase-file f] [--use]");
5633
5633
  const file = here(given);
5634
- const { backupFileProtection, restoreProfile } = await import("./backup-BeXBtbVL.js");
5634
+ const { backupFileProtection, restoreProfile } = await import("./backup-COkkM8Yy.js");
5635
5635
  const protection = await backupFileProtection(file);
5636
5636
  const paths = await restoreProfile(g.home, checkProfileName(name), file, protection === "none" ? void 0 : await backupPassphrase(parsed.options["passphrase-file"], RESTORE_PASSPHRASE));
5637
5637
  if (parsed.options.use) selectProfile(g.home, name);
@@ -6479,7 +6479,7 @@ async function textCommand(name, argv) {
6479
6479
  };
6480
6480
  if (spec.target === "group") params.mentions = parsed.options.mention ?? [];
6481
6481
  if (parsed.options.reply !== void 0) params.reply = parsed.options.reply;
6482
- if (!spec.message) Object.assign(params, (await import("./buttons-_5Fw8uHn.js")).buttonsOf(parsed.options));
6482
+ if (!spec.message) Object.assign(params, (await import("./buttons-BWEdoxgK.js")).buttonsOf(parsed.options));
6483
6483
  print(await withSession(g, (s) => {
6484
6484
  if (parsed.options.wait !== void 0) params.wait = parsed.options.wait;
6485
6485
  if (parsed.options.timeout !== void 0) params.timeout = parsed.options.timeout;
@@ -6523,7 +6523,7 @@ async function identityAddCommand(argv) {
6523
6523
  if (!provider) throw new CliError("usage", "Missing <provider>: ghostly identity add <provider> [subject] [--signer id] [--field name=value]... [--stdin] [--days n] [--timeout s]");
6524
6524
  inRange(parsed.options, "timeout", "a number of seconds", 5, 3600);
6525
6525
  const items = parsed.options.field ?? [];
6526
- const known = parsed.options.days !== void 0 || items.length ? (await import("./registry-CHwHTWbK.js")).IDENTITY_PROVIDERS.find((p) => p.id === provider) : void 0;
6526
+ const known = parsed.options.days !== void 0 || items.length ? (await import("./registry-DuSwXntJ.js")).IDENTITY_PROVIDERS.find((p) => p.id === provider) : void 0;
6527
6527
  if (known && parsed.options.days !== void 0) inRange(parsed.options, "days", "a whole number", 1, known.validity.maxDays, true);
6528
6528
  const { fields, warning } = await identityFields(items, parsed.options.stdin === true, identitySecretFields(known, parsed.options.signer), readStdin, process.stdin.isTTY === true);
6529
6529
  if (warning) process.stderr.write(`ghostly: ${warning}\n`);
@@ -6912,4 +6912,4 @@ async function run(argv) {
6912
6912
  }
6913
6913
  export { run };
6914
6914
 
6915
- //# sourceMappingURL=main-D48Ben7C.js.map
6915
+ //# sourceMappingURL=main-BLs-zUTt.js.map