@ghostlytools/cli 1.12.1 → 1.13.0

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 (63) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/{api-jRUXnBdX.js → api-CVtg7MpI.js} +2 -2
  3. package/dist/assets/{api-BwEgbvvK.js → api-CjOaoG-v.js} +16 -16
  4. package/dist/assets/api-CjOaoG-v.js.map +1 -0
  5. package/dist/assets/{apiKit-BlsNk-Cx.js → apiKit-BAGvlQtm.js} +2 -2
  6. package/dist/assets/{apiKit-BlsNk-Cx.js.map → apiKit-BAGvlQtm.js.map} +1 -1
  7. package/dist/assets/{appFetch-CW9fJPHh.js → appFetch-BwJd-kNq.js} +2 -2
  8. package/dist/assets/{appFetch-CW9fJPHh.js.map → appFetch-BwJd-kNq.js.map} +1 -1
  9. package/dist/assets/{apps-CL8TXHhu.js → apps-Cuk45sz5.js} +5 -5
  10. package/dist/assets/{apps-CL8TXHhu.js.map → apps-Cuk45sz5.js.map} +1 -1
  11. package/dist/assets/{apps-BcG4u6SM.js → apps-DjY095Af.js} +1 -1
  12. package/dist/assets/{backup-xZfV-ytw.js → backup-B56sQqoQ.js} +1 -1
  13. package/dist/assets/{backup-BA41EDvh.js → backup-DekVCDWv.js} +3 -3
  14. package/dist/assets/{backup-BA41EDvh.js.map → backup-DekVCDWv.js.map} +1 -1
  15. package/dist/assets/bark_ffi_wasm_bg-CcafsJla.js.map +1 -1
  16. package/dist/assets/{bitcoind-Dh7n9amb.js → bitcoind-B2bbVSzh.js} +2 -2
  17. package/dist/assets/{bitcoind-Dh7n9amb.js.map → bitcoind-B2bbVSzh.js.map} +1 -1
  18. package/dist/assets/bitcoindevkit_bg-BWQHx7vd.js.map +1 -1
  19. package/dist/assets/{buttons-SH1tNRh7.js → buttons-BGxzOtrq.js} +26 -5
  20. package/dist/assets/buttons-BGxzOtrq.js.map +1 -0
  21. package/dist/assets/buttons-CsN2WJOf.js +1 -0
  22. package/dist/assets/{client-DGS-atRu.js → client-DcQAfc3h.js} +2 -2
  23. package/dist/assets/{client-DGS-atRu.js.map → client-DcQAfc3h.js.map} +1 -1
  24. package/dist/assets/{fixedHosts-CPSsGOI2.js → fixedHosts-C3hBliM9.js} +2 -2
  25. package/dist/assets/{fixedHosts-CPSsGOI2.js.map → fixedHosts-C3hBliM9.js.map} +1 -1
  26. package/dist/assets/{groupMeta-DxuJzko_.js → groupMeta-goASqzOt.js} +94 -17
  27. package/dist/assets/{groupMeta-DxuJzko_.js.map → groupMeta-goASqzOt.js.map} +1 -1
  28. package/dist/assets/{host-BxM-HMr0.js → host-C2WRKj3g.js} +52 -32
  29. package/dist/assets/host-C2WRKj3g.js.map +1 -0
  30. package/dist/assets/{irohWeb-CbnGtUo6.js → irohWeb-NfthOL98.js} +6 -6
  31. package/dist/assets/{irohWeb-CbnGtUo6.js.map → irohWeb-NfthOL98.js.map} +1 -1
  32. package/dist/assets/{main-CwTaepxR.js → main-Dh7fePd8.js} +19 -19
  33. package/dist/assets/main-Dh7fePd8.js.map +1 -0
  34. package/dist/assets/{mainline-CVrd0C1n.js → mainline-DY95WbuK.js} +2 -2
  35. package/dist/assets/{mainline-CVrd0C1n.js.map → mainline-DY95WbuK.js.map} +1 -1
  36. package/dist/assets/{ownDid-DY3rYqDI.js → ownDid-BErplN7N.js} +2 -2
  37. package/dist/assets/{ownDid-DY3rYqDI.js.map → ownDid-BErplN7N.js.map} +1 -1
  38. package/dist/assets/{ownStatus-DtzIllg2.js → ownStatus-ClrFjd7h.js} +4 -3
  39. package/dist/assets/ownStatus-ClrFjd7h.js.map +1 -0
  40. package/dist/assets/{profiles-BOYGlmu2.js → profiles-B8xO8-oj.js} +2 -2
  41. package/dist/assets/{profiles-BOYGlmu2.js.map → profiles-B8xO8-oj.js.map} +1 -1
  42. package/dist/assets/{registry-4W1LGlCF.js → registry--Rg2YvOH.js} +1 -1
  43. package/dist/assets/{registry-Bep4umOM.js → registry-CU8PevhI.js} +3 -3
  44. package/dist/assets/{registry-Bep4umOM.js.map → registry-CU8PevhI.js.map} +1 -1
  45. package/dist/assets/{relay-Cjfmdec0.js → relay-CHWg5hpZ.js} +73 -11
  46. package/dist/assets/relay-CHWg5hpZ.js.map +1 -0
  47. package/dist/assets/{resolve-CIc3KZMV.js → resolve-B1upovPM.js} +2 -2
  48. package/dist/assets/{resolve-CIc3KZMV.js.map → resolve-B1upovPM.js.map} +1 -1
  49. package/dist/assets/{server-D4gf-LnD.js → server-Dgxx_DaN.js} +221 -22
  50. package/dist/assets/server-Dgxx_DaN.js.map +1 -0
  51. package/dist/assets/{waitNotice-DQvZgz2T.js → waitNotice-ylU3XwjO.js} +2 -2
  52. package/dist/assets/{waitNotice-DQvZgz2T.js.map → waitNotice-ylU3XwjO.js.map} +1 -1
  53. package/dist/ghostly.mjs +1 -1
  54. package/npm-shrinkwrap.json +2 -2
  55. package/package.json +1 -1
  56. package/dist/assets/api-BwEgbvvK.js.map +0 -1
  57. package/dist/assets/buttons-CsGdQNnR.js +0 -1
  58. package/dist/assets/buttons-SH1tNRh7.js.map +0 -1
  59. package/dist/assets/host-BxM-HMr0.js.map +0 -1
  60. package/dist/assets/main-CwTaepxR.js.map +0 -1
  61. package/dist/assets/ownStatus-DtzIllg2.js.map +0 -1
  62. package/dist/assets/relay-Cjfmdec0.js.map +0 -1
  63. package/dist/assets/server-D4gf-LnD.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  import { i as localFileError, n as EXIT, r as asCliError, t as CliError } from "./errors-DDLFO4Gf.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-DGS-atRu.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-DcQAfc3h.js";
3
3
  import { n as dropSecretEnv, t as childEnv } from "./childEnv-C-99hdbL.js";
4
- import { Cr as cardUrl, D as GROUP_FILE_LIMITS, Dr as statusCardBytes, En as VOICE_LIMITS, Sr as cardLine, Zn as reactionEmoji, _r as TASK_STATUSES, bt as STATUS_AVAILABILITIES, dr as ITEM_STATES, fr as PR_CHECKS, gr as STATUS_CARD_LIMITS, hr as RUN_RESULTS, mr as ROUTINE_STATES, pr as PR_STATES, ur as CRON_LINE } from "./groupMeta-DxuJzko_.js";
5
- import { S as userPath, _ 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, w as ownProfile, y as selectProfile } from "./profiles-BOYGlmu2.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-DtzIllg2.js";
7
- import { B as shellWord, V as jsonOut, a as contactKeyOf, b as namedByThem, y as nameKey } from "./apiKit-BlsNk-Cx.js";
8
- import { i as waitsFor, r as waitNotice } from "./waitNotice-DQvZgz2T.js";
4
+ import { Cr as cardUrl, D as GROUP_FILE_LIMITS, Dr as statusCardBytes, En as VOICE_LIMITS, Sr as cardLine, Zn as reactionEmoji, _r as TASK_STATUSES, bt as STATUS_AVAILABILITIES, dr as ITEM_STATES, fr as PR_CHECKS, gr as STATUS_CARD_LIMITS, hr as RUN_RESULTS, mr as ROUTINE_STATES, pr as PR_STATES, ur as CRON_LINE } from "./groupMeta-goASqzOt.js";
5
+ import { S as userPath, _ 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, w as ownProfile, y as selectProfile } from "./profiles-B8xO8-oj.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-ClrFjd7h.js";
7
+ import { B as shellWord, V as jsonOut, a as contactKeyOf, b as namedByThem, y as nameKey } from "./apiKit-BAGvlQtm.js";
8
+ import { i as waitsFor, r as waitNotice } from "./waitNotice-ylU3XwjO.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";
@@ -13,7 +13,7 @@ import { connect } from "node:net";
13
13
  import { format } from "node:util";
14
14
  var package_default = {
15
15
  name: "@ghostlytools/cli",
16
- version: "1.12.1",
16
+ version: "1.13.0",
17
17
  type: "module",
18
18
  description: "Ghostly for bots and terminals: the app's own engine, headless on Node, behind a daemon and a `ghostly` command with JSON output.",
19
19
  license: "MIT",
@@ -1209,7 +1209,7 @@ var commands$8 = {
1209
1209
  description: "Replace the three files when they are there"
1210
1210
  }
1211
1211
  },
1212
- run: async ({ options }, a) => (await import("./apps-BcG4u6SM.js")).initApp(a.dir, {
1212
+ run: async ({ options }, a) => (await import("./apps-DjY095Af.js")).initApp(a.dir, {
1213
1213
  name: options.name,
1214
1214
  title: options.title,
1215
1215
  force: options.force === true
@@ -1249,7 +1249,7 @@ var commands$8 = {
1249
1249
  description: "This version's sequence, higher than the bundle at --out's (default: one more than it)"
1250
1250
  }
1251
1251
  },
1252
- run: async ({ options }, a) => (await import("./apps-BcG4u6SM.js")).publishApp(a.dir, keyFile(options.key, "app publish <dir> --key <file> [--out <file>] [--sequence n]"), here(options.out), options.sequence)
1252
+ run: async ({ options }, a) => (await import("./apps-DjY095Af.js")).publishApp(a.dir, keyFile(options.key, "app publish <dir> --key <file> [--out <file>] [--sequence n]"), here(options.out), options.sequence)
1253
1253
  },
1254
1254
  "app revoke": {
1255
1255
  method: "app.revoke",
@@ -1282,7 +1282,7 @@ var commands$8 = {
1282
1282
  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"
1283
1283
  }
1284
1284
  },
1285
- run: async ({ options }, a) => (await import("./apps-BcG4u6SM.js")).revokeApp(a.dir, keyFile(options.key, "app revoke <dir> --key <file> (--digest <digest>... | --up-to <sequence>) [--reason <text>] [--bundle <file>] [--force]"), {
1285
+ run: async ({ options }, a) => (await import("./apps-DjY095Af.js")).revokeApp(a.dir, keyFile(options.key, "app revoke <dir> --key <file> (--digest <digest>... | --up-to <sequence>) [--reason <text>] [--bundle <file>] [--force]"), {
1286
1286
  digests: options.digest,
1287
1287
  upTo: options["up-to"],
1288
1288
  reason: options.reason,
@@ -1343,7 +1343,7 @@ var commands$8 = {
1343
1343
  usage: "app verify <bundle|url>",
1344
1344
  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",
1345
1345
  args: ["bundle"],
1346
- run: async (_, a) => (await import("./apps-BcG4u6SM.js")).verifyApp(a.bundle)
1346
+ run: async (_, a) => (await import("./apps-DjY095Af.js")).verifyApp(a.bundle)
1347
1347
  },
1348
1348
  "store sign": {
1349
1349
  method: "store.sign",
@@ -1360,7 +1360,7 @@ var commands$8 = {
1360
1360
  description: "The folder to write ghostly-store.json and ghostly-store.sig in (default: the index's)"
1361
1361
  }
1362
1362
  },
1363
- run: async ({ options }, a) => (await import("./apps-BcG4u6SM.js")).signStore(a.index, keyFile(options.key, "store sign <index> --key <file> [--out <dir>]"), here(options.out))
1363
+ run: async ({ options }, a) => (await import("./apps-DjY095Af.js")).signStore(a.index, keyFile(options.key, "store sign <index> --key <file> [--out <dir>]"), here(options.out))
1364
1364
  }
1365
1365
  };
1366
1366
  // src/commands/calls.ts
@@ -2584,7 +2584,7 @@ var commands$3 = {
2584
2584
  "group join": {
2585
2585
  method: "group.join",
2586
2586
  usage: "group join [<link> | -]",
2587
- summary: "Join a group by its link; the link on stdin keeps it out of ps",
2587
+ summary: "Join a group by its link; the link on stdin keeps it out of ps (without a daemon it waits up to 60 s to be let in)",
2588
2588
  args: ["link?"],
2589
2589
  params: (_, { link }) => ({ link })
2590
2590
  },
@@ -4472,8 +4472,8 @@ var VERSION = package_default.version;
4472
4472
  * command a running daemon answers loads none of them, and starts about as fast as Node does. Statically imported, they
4473
4473
  * cost every command ~100 ms before its socket was opened.
4474
4474
  */
4475
- var engineApi = () => import("./api-jRUXnBdX.js");
4476
- var engineHost = () => import("./host-BxM-HMr0.js");
4475
+ var engineApi = () => import("./api-CVtg7MpI.js");
4476
+ var engineHost = () => import("./host-C2WRKj3g.js");
4477
4477
  /**
4478
4478
  * `--translate <lang>`'s translator, or null (not asked; or the runtime is not there, said on stderr). Loaded only when
4479
4479
  * asked: the app's message parser it reads costs every other command nothing.
@@ -5581,7 +5581,7 @@ async function profileCommand(sub, argv) {
5581
5581
  if (!given || !name) throw new CliError("usage", `Missing <${given ? "new profile" : "file"}>: ghostly profile restore <file> <new profile> [--passphrase-file f] [--use]`);
5582
5582
  noMoreThan(2, parsed.positionals, "profile restore <file> <new profile> [--passphrase-file f] [--use]");
5583
5583
  const file = here(given);
5584
- const { backupFileProtection, restoreProfile } = await import("./backup-xZfV-ytw.js");
5584
+ const { backupFileProtection, restoreProfile } = await import("./backup-B56sQqoQ.js");
5585
5585
  const protection = await backupFileProtection(file);
5586
5586
  const paths = await restoreProfile(g.home, checkProfileName(name), file, protection === "none" ? void 0 : await backupPassphrase(parsed.options["passphrase-file"], RESTORE_PASSPHRASE));
5587
5587
  if (parsed.options.use) selectProfile(g.home, name);
@@ -6428,7 +6428,7 @@ async function textCommand(name, argv) {
6428
6428
  };
6429
6429
  if (spec.target === "group") params.mentions = parsed.options.mention ?? [];
6430
6430
  if (parsed.options.reply !== void 0) params.reply = parsed.options.reply;
6431
- if (!spec.message) Object.assign(params, (await import("./buttons-CsGdQNnR.js")).buttonsOf(parsed.options));
6431
+ if (!spec.message) Object.assign(params, (await import("./buttons-CsN2WJOf.js")).buttonsOf(parsed.options));
6432
6432
  print(await withSession(g, (s) => {
6433
6433
  if (parsed.options.wait !== void 0) params.wait = parsed.options.wait;
6434
6434
  if (parsed.options.timeout !== void 0) params.timeout = parsed.options.timeout;
@@ -6472,7 +6472,7 @@ async function identityAddCommand(argv) {
6472
6472
  if (!provider) throw new CliError("usage", "Missing <provider>: ghostly identity add <provider> [subject] [--signer id] [--field name=value]... [--stdin] [--days n] [--timeout s]");
6473
6473
  inRange(parsed.options, "timeout", "a number of seconds", 5, 3600);
6474
6474
  const items = parsed.options.field ?? [];
6475
- const known = parsed.options.days !== void 0 || items.length ? (await import("./registry-4W1LGlCF.js")).IDENTITY_PROVIDERS.find((p) => p.id === provider) : void 0;
6475
+ const known = parsed.options.days !== void 0 || items.length ? (await import("./registry--Rg2YvOH.js")).IDENTITY_PROVIDERS.find((p) => p.id === provider) : void 0;
6476
6476
  if (known && parsed.options.days !== void 0) inRange(parsed.options, "days", "a whole number", 1, known.validity.maxDays, true);
6477
6477
  const { fields, warning } = await identityFields(items, parsed.options.stdin === true, identitySecretFields(known, parsed.options.signer), readStdin, process.stdin.isTTY === true);
6478
6478
  if (warning) process.stderr.write(`ghostly: ${warning}\n`);
@@ -6834,4 +6834,4 @@ async function run(argv) {
6834
6834
  }
6835
6835
  export { run };
6836
6836
 
6837
- //# sourceMappingURL=main-CwTaepxR.js.map
6837
+ //# sourceMappingURL=main-Dh7fePd8.js.map