@ghostlytools/cli 1.8.0 → 1.9.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 (88) hide show
  1. package/README.md +11 -8
  2. package/SKILL.md +4 -3
  3. package/dist/assets/{api-I_KbuXHa.js → api-DFCgr6RH.js} +94 -35
  4. package/dist/assets/api-DFCgr6RH.js.map +1 -0
  5. package/dist/assets/{api-Dj1yn0px.js → api-raWw9j_m.js} +2 -2
  6. package/dist/assets/{apiKit-C-_PWZvy.js → apiKit-CCavJJcl.js} +2 -2
  7. package/dist/assets/{apiKit-C-_PWZvy.js.map → apiKit-CCavJJcl.js.map} +1 -1
  8. package/dist/assets/{apps-DbEfL_3b.js → apps-B7o2BPj6.js} +1 -1
  9. package/dist/assets/{apps-DKIe8VjF.js → apps-DmxEG147.js} +2 -2
  10. package/dist/assets/{apps-DKIe8VjF.js.map → apps-DmxEG147.js.map} +1 -1
  11. package/dist/assets/{arkade-k1bdSm70.js → arkade-DtYR9H0c.js} +2 -2
  12. package/dist/assets/{arkade-k1bdSm70.js.map → arkade-DtYR9H0c.js.map} +1 -1
  13. package/dist/assets/{backup-Cdd6-HNu.js → backup-BserdrNk.js} +1 -1
  14. package/dist/assets/{backup-beKfbfNk.js → backup-YIB2XIES.js} +4 -4
  15. package/dist/assets/{backup-beKfbfNk.js.map → backup-YIB2XIES.js.map} +1 -1
  16. package/dist/assets/bitcoindevkit_bg-B-iLWrmX.js.map +1 -1
  17. package/dist/assets/buttons-CuRfKnPI.js +1331 -0
  18. package/dist/assets/buttons-CuRfKnPI.js.map +1 -0
  19. package/dist/assets/buttons-De3LPdSG.js +2 -0
  20. package/dist/assets/{envelope-B88yiCQj.js → envelope-Dt75vrmY.js} +2 -2
  21. package/dist/assets/{envelope-B88yiCQj.js.map → envelope-Dt75vrmY.js.map} +1 -1
  22. package/dist/assets/fedimint_client_wasm_bg-BtHHlFpp.js.map +1 -1
  23. package/dist/assets/fixedHosts-B598JzbC.js +24 -0
  24. package/dist/assets/fixedHosts-B598JzbC.js.map +1 -0
  25. package/dist/assets/{ghostly_iroh_web-CO0onry8.js → ghostly_iroh_web-BzAXJUYH.js} +10 -10
  26. package/dist/assets/{ghostly_iroh_web-CO0onry8.js.map → ghostly_iroh_web-BzAXJUYH.js.map} +1 -1
  27. package/dist/assets/ghostly_iroh_web_bg.wasm +0 -0
  28. package/dist/assets/{groupFiles-DjQc5XXv.js → groupFiles-FXel6zIc.js} +41 -11
  29. package/dist/assets/groupFiles-FXel6zIc.js.map +1 -0
  30. package/dist/assets/{host-CNWGB3-j.js → host-DIBeK_c_.js} +95 -28
  31. package/dist/assets/host-DIBeK_c_.js.map +1 -0
  32. package/dist/assets/hyperdhtRelay-1wzya_0L.js +25 -0
  33. package/dist/assets/hyperdhtRelay-1wzya_0L.js.map +1 -0
  34. package/dist/assets/{hyperdhtRelay-g7eXzf5h.js → hyperdhtRelay-D185dETu.js} +15 -3
  35. package/dist/assets/hyperdhtRelay-D185dETu.js.map +1 -0
  36. package/dist/assets/{irohWeb-Bx8dI4be.js → irohWeb-BSv_BWyG.js} +25 -8
  37. package/dist/assets/{irohWeb-Bx8dI4be.js.map → irohWeb-BSv_BWyG.js.map} +1 -1
  38. package/dist/assets/{main-BRxhBctJ.js → main-BbhfMTt8.js} +50 -22
  39. package/dist/assets/main-BbhfMTt8.js.map +1 -0
  40. package/dist/assets/{mainline-CwuS6ngj.js → mainline-9Vc3c3SA.js} +2 -2
  41. package/dist/assets/{mainline-CwuS6ngj.js.map → mainline-9Vc3c3SA.js.map} +1 -1
  42. package/dist/assets/{networkReason-CIAMieQm.js → networkReason-BncJ9KSM.js} +2 -2
  43. package/dist/assets/{networkReason-CIAMieQm.js.map → networkReason-BncJ9KSM.js.map} +1 -1
  44. package/dist/assets/{nwc-C9JLJJkL.js → nwc-QX3Yt1Sb.js} +3 -3
  45. package/dist/assets/{nwc-C9JLJJkL.js.map → nwc-QX3Yt1Sb.js.map} +1 -1
  46. package/dist/assets/{nwcProvider-pFMrsUJh.js → nwcProvider-CzX3xH47.js} +2 -2
  47. package/dist/assets/{nwcProvider-pFMrsUJh.js.map → nwcProvider-CzX3xH47.js.map} +1 -1
  48. package/dist/assets/ownDid-D8z5gwGI.js +281 -0
  49. package/dist/assets/ownDid-D8z5gwGI.js.map +1 -0
  50. package/dist/assets/{registry-Cks7FA_o.js → registry-B2Dtnibo.js} +5 -246
  51. package/dist/assets/registry-B2Dtnibo.js.map +1 -0
  52. package/dist/assets/{registry-DY2ixQfU.js → registry-PTtBMaYZ.js} +1 -1
  53. package/dist/assets/{resolve-C4Y2HPqQ.js → resolve-ZxVzwFNA.js} +3 -280
  54. package/dist/assets/resolve-ZxVzwFNA.js.map +1 -0
  55. package/dist/assets/{server-D9RAmGdm.js → server-Dw1o8z1o.js} +1144 -359
  56. package/dist/assets/server-Dw1o8z1o.js.map +1 -0
  57. package/dist/assets/{src-1RU4TilT.js → src-BD8RBVEp.js} +1269 -134
  58. package/dist/assets/src-BD8RBVEp.js.map +1 -0
  59. package/dist/assets/sshForges-DWrESWkK.js +253 -0
  60. package/dist/assets/sshForges-DWrESWkK.js.map +1 -0
  61. package/dist/assets/{translate-od5GbpvR.js → translate-D1uP0q32.js} +17 -5
  62. package/dist/assets/translate-D1uP0q32.js.map +1 -0
  63. package/dist/assets/{usdt-DldXV0MR.js → usdt-DhVN8geQ.js} +3 -3
  64. package/dist/assets/{usdt-DldXV0MR.js.map → usdt-DhVN8geQ.js.map} +1 -1
  65. package/dist/assets/{waitNotice-Ck3el3_Z.js → waitNotice-B8D8WhbE.js} +2 -2
  66. package/dist/assets/waitNotice-B8D8WhbE.js.map +1 -0
  67. package/dist/assets/{words-BS2qq_vV.js → words-DdXPkB3n.js} +3 -2
  68. package/dist/assets/words-DdXPkB3n.js.map +1 -0
  69. package/dist/ghostly.mjs +1 -1
  70. package/examples/call-echo.mjs +7 -5
  71. package/package.json +1 -1
  72. package/dist/assets/api-I_KbuXHa.js.map +0 -1
  73. package/dist/assets/buttons-BO1_7V4L.js +0 -2
  74. package/dist/assets/buttons-ClI13rdv.js +0 -545
  75. package/dist/assets/buttons-ClI13rdv.js.map +0 -1
  76. package/dist/assets/groupFiles-DjQc5XXv.js.map +0 -1
  77. package/dist/assets/host-CNWGB3-j.js.map +0 -1
  78. package/dist/assets/hyperdhtRelay-BT_wRxab.js +0 -21
  79. package/dist/assets/hyperdhtRelay-BT_wRxab.js.map +0 -1
  80. package/dist/assets/hyperdhtRelay-g7eXzf5h.js.map +0 -1
  81. package/dist/assets/main-BRxhBctJ.js.map +0 -1
  82. package/dist/assets/registry-Cks7FA_o.js.map +0 -1
  83. package/dist/assets/resolve-C4Y2HPqQ.js.map +0 -1
  84. package/dist/assets/server-D9RAmGdm.js.map +0 -1
  85. package/dist/assets/src-1RU4TilT.js.map +0 -1
  86. package/dist/assets/translate-od5GbpvR.js.map +0 -1
  87. package/dist/assets/waitNotice-Ck3el3_Z.js.map +0 -1
  88. package/dist/assets/words-BS2qq_vV.js.map +0 -1
@@ -1,9 +1,9 @@
1
- import { $a as ROUTINE_STATES, Gn as GROUP_FILE_LIMITS, Qa as PR_STATES, Xa as ITEM_STATES, Ya as CRON_LINE, Za as PR_CHECKS, ao as cardLine, eo as RUN_RESULTS, lo as statusCardBytes, no as TASK_STATUSES, oo as cardUrl, pa as VOICE_LIMITS, to as STATUS_CARD_LIMITS } from "./src-1RU4TilT.js";
2
- import { a as WALLET_TYPES, d as ENGINE_READS, f as READ_PARAMS, i as TRANSPORT_NAMES, l as ENGINE_METHODS, n as CHAT_METHODS, o as turnRef, p as SECRET_RESULTS, r as PAY_METHODS, t as ADDRESS_TYPES, u as ENGINE_PARAMS } from "./words-BS2qq_vV.js";
1
+ import { Qn as GROUP_FILE_LIMITS, _o as statusCardBytes, ao as PR_STATES, ba as VOICE_LIMITS, co as STATUS_CARD_LIMITS, io as PR_CHECKS, lo as TASK_STATUSES, mo as cardUrl, no as CRON_LINE, oo as ROUTINE_STATES, po as cardLine, ro as ITEM_STATES, so as RUN_RESULTS } from "./src-BD8RBVEp.js";
2
+ import { a as WALLET_TYPES, d as ENGINE_READS, f as READ_PARAMS, i as TRANSPORT_NAMES, l as ENGINE_METHODS, n as CHAT_METHODS, o as turnRef, p as SECRET_RESULTS, r as PAY_METHODS, t as ADDRESS_TYPES, u as ENGINE_PARAMS } from "./words-DdXPkB3n.js";
3
3
  import { i as localFileError, n as EXIT, r as asCliError, t as CliError } from "./errors-R4S2SAEM.js";
4
- import { m as namedByThem, t as CONTACT_KEY } from "./apiKit-C-_PWZvy.js";
4
+ import { m as namedByThem, t as CONTACT_KEY } from "./apiKit-CCavJJcl.js";
5
5
  import { _ as userPath, a as checkShownName, c as ghostlyHome, f as profileExists, h as startingDaemon, i as checkProfileName, l as listProfiles, m as selectProfile, o as createProfile, p as profilePaths, s as currentProfile, u as lockOwner, y as ownSocket } from "./profiles-MFtCmJwK.js";
6
- import { n as waitNotice, r as waitsFor } from "./waitNotice-Ck3el3_Z.js";
6
+ import { n as waitNotice, r as waitsFor } from "./waitNotice-B8D8WhbE.js";
7
7
  import { _ as isCallRate, a as newNonce, c as provesGreeting, d as CALL_RATES, l as readDaemonSecret, n as daemonOfThisRelease, s as provesDaemon, t as HELLO } from "./daemonProof-DtrL5lE5.js";
8
8
  import { spawn } from "node:child_process";
9
9
  import { accessSync, closeSync, constants, existsSync, fstatSync, openSync, readFileSync, readSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
@@ -13,7 +13,7 @@ import { createInterface } from "node:readline";
13
13
  import { format } from "node:util";
14
14
  var package_default = {
15
15
  name: "@ghostlytools/cli",
16
- version: "1.8.0",
16
+ version: "1.9.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",
@@ -159,7 +159,8 @@ function parseArgs(argv, spec, idSlot = () => false, parsing) {
159
159
  if (!long) throw unknownOption(arg, all, parsing);
160
160
  name = long;
161
161
  }
162
- if (name.startsWith("no-") && all[name.slice(3)]?.type === "boolean" && inline === void 0) {
162
+ if (name.startsWith("no-") && all[name.slice(3)]?.type === "boolean") {
163
+ if (inline !== void 0) throw new CliError("usage", `--${name} takes no value`);
163
164
  setBoolean(name.slice(3), false);
164
165
  continue;
165
166
  }
@@ -823,6 +824,12 @@ function percent(options, flag) {
823
824
  const value = options[flag];
824
825
  if (value !== void 0 && !(typeof value === "number" && value >= 0 && value <= 100)) throw new CliError("usage", `--${flag} takes a percent from 0 to 100, not ${JSON.stringify(value)}`);
825
826
  }
827
+ /**
828
+ * `--pr-number`, `--additions`, `--used`, `--limit`…: a count as the card takes it, a whole number from `min` up to
829
+ * `STATUS_CARD_LIMITS.count`. Before, it reached the card's check: `bad_request` (exit 1), "Status card: pr.number is a
830
+ * whole number from 1".
831
+ */
832
+ var cardCount = (options, flag, min) => inRange(options, flag, "a whole number", min, STATUS_CARD_LIMITS.count, true);
826
833
  /** The flags of a task's pull request, and the field of `pr` each one gives. */
827
834
  var PR_FLAGS = [
828
835
  ["pr-url", "url"],
@@ -864,9 +871,16 @@ function taskFields(options) {
864
871
  if (!match) throw new CliError("usage", `--steps takes done/total, like 2/5, not ${JSON.stringify(options.steps)}`);
865
872
  fields.done = Number(match[1]);
866
873
  fields.total = Number(match[2]);
874
+ if (Number(match[2]) > STATUS_CARD_LIMITS.count) throw new CliError("usage", `--steps takes done/total of at most ${STATUS_CARD_LIMITS.count} steps, like 2/5, not ${JSON.stringify(options.steps)}`);
867
875
  if (Number(match[2]) < 1 || Number(match[1]) > Number(match[2])) throw new CliError("usage", `--steps takes done/total with done at most total, like 2/5, not ${JSON.stringify(options.steps)}`);
868
876
  }
869
877
  if (options["pr-url"] !== void 0 && !cardUrl(options["pr-url"])) throw new CliError("usage", `--pr-url takes an https link of at most ${STATUS_CARD_LIMITS.url} characters, not ${JSON.stringify(options["pr-url"])}`);
878
+ for (const flag of [
879
+ "pr-number",
880
+ "additions",
881
+ "deletions",
882
+ "files"
883
+ ]) cardCount(options, flag, flag === "pr-number" ? 1 : 0);
870
884
  const pr = {};
871
885
  for (const [flag, key] of PR_FLAGS) if (options[flag] !== void 0) pr[key] = options[flag];
872
886
  if (Object.keys(pr).length) fields.pr = {
@@ -1089,6 +1103,8 @@ function usageFields(options) {
1089
1103
  const fields = { ...cardJson(options.json) };
1090
1104
  percent(options, "left");
1091
1105
  if (options.left !== void 0 && (options.used !== void 0 || options.limit !== void 0)) throw new CliError("usage", "--left or --used with --limit, not both");
1106
+ const used = cardCount(options, "used", 0), limit = cardCount(options, "limit", 1);
1107
+ if (used !== void 0 && limit !== void 0 && used > limit) throw new CliError("usage", `--used takes at most --limit (${limit}), not ${used}`);
1092
1108
  for (const [flag, max] of [
1093
1109
  ["label", STATUS_CARD_LIMITS.usageLabel],
1094
1110
  ["account", STATUS_CARD_LIMITS.usageLabel],
@@ -1211,7 +1227,7 @@ var commands$8 = {
1211
1227
  description: "Replace the three files when they are there"
1212
1228
  }
1213
1229
  },
1214
- run: async ({ options }, a) => (await import("./apps-DbEfL_3b.js")).initApp(a.dir, {
1230
+ run: async ({ options }, a) => (await import("./apps-B7o2BPj6.js")).initApp(a.dir, {
1215
1231
  name: options.name,
1216
1232
  title: options.title,
1217
1233
  force: options.force === true
@@ -1251,7 +1267,7 @@ var commands$8 = {
1251
1267
  description: "This version's sequence, higher than the bundle at --out's (default: one more than it)"
1252
1268
  }
1253
1269
  },
1254
- run: async ({ options }, a) => (await import("./apps-DbEfL_3b.js")).publishApp(a.dir, keyFile(options.key, "app publish <dir> --key <file> [--out <file>] [--sequence n]"), here(options.out), options.sequence)
1270
+ run: async ({ options }, a) => (await import("./apps-B7o2BPj6.js")).publishApp(a.dir, keyFile(options.key, "app publish <dir> --key <file> [--out <file>] [--sequence n]"), here(options.out), options.sequence)
1255
1271
  },
1256
1272
  "app revoke": {
1257
1273
  method: "app.revoke",
@@ -1284,7 +1300,7 @@ var commands$8 = {
1284
1300
  description: "Allow --up-to past the bundle's own sequence (versions published from elsewhere)"
1285
1301
  }
1286
1302
  },
1287
- run: async ({ options }, a) => (await import("./apps-DbEfL_3b.js")).revokeApp(a.dir, keyFile(options.key, "app revoke <dir> --key <file> (--digest <digest>... | --up-to <sequence>) [--reason <text>] [--bundle <file>] [--force]"), {
1303
+ run: async ({ options }, a) => (await import("./apps-B7o2BPj6.js")).revokeApp(a.dir, keyFile(options.key, "app revoke <dir> --key <file> (--digest <digest>... | --up-to <sequence>) [--reason <text>] [--bundle <file>] [--force]"), {
1288
1304
  digests: options.digest,
1289
1305
  upTo: options["up-to"],
1290
1306
  reason: options.reason,
@@ -1345,7 +1361,7 @@ var commands$8 = {
1345
1361
  usage: "app verify <bundle|url>",
1346
1362
  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 revokes this version",
1347
1363
  args: ["bundle"],
1348
- run: async (_, a) => (await import("./apps-DbEfL_3b.js")).verifyApp(a.bundle)
1364
+ run: async (_, a) => (await import("./apps-B7o2BPj6.js")).verifyApp(a.bundle)
1349
1365
  },
1350
1366
  "store sign": {
1351
1367
  method: "store.sign",
@@ -1362,7 +1378,7 @@ var commands$8 = {
1362
1378
  description: "The folder to write ghostly-store.json and ghostly-store.sig in (default: the index's)"
1363
1379
  }
1364
1380
  },
1365
- run: async ({ options }, a) => (await import("./apps-DbEfL_3b.js")).signStore(a.index, keyFile(options.key, "store sign <index> --key <file> [--out <dir>]"), here(options.out))
1381
+ run: async ({ options }, a) => (await import("./apps-B7o2BPj6.js")).signStore(a.index, keyFile(options.key, "store sign <index> --key <file> [--out <dir>]"), here(options.out))
1366
1382
  }
1367
1383
  };
1368
1384
  //#endregion
@@ -2185,7 +2201,7 @@ var commands$5 = {
2185
2201
  },
2186
2202
  "file send": {
2187
2203
  method: "file.send",
2188
- usage: "file send <chat|group> <path> [--name n] [--mime t] [--voice [ms] [--peaks 0,40,…]] [--reply <message>]",
2204
+ usage: "file send <chat|group> <path> [--name n] [--mime t] [--voice [ms] [--peaks 0,40,…]] [--reply <message>] [--wait none|sent] [--timeout s]",
2189
2205
  summary: `Send a file (or, with --voice, a voice note), as a reply with --reply; to a group, every member's app fetches it (up to ${GROUP_FILE_LIMITS.maxBytes / 1024 / 1024} MiB)`,
2190
2206
  args: ["chat", "path"],
2191
2207
  options: {
@@ -2206,7 +2222,16 @@ var commands$5 = {
2206
2222
  type: "string",
2207
2223
  description: "Loudness bars 0-255, comma-separated (default: measured from the sound)"
2208
2224
  },
2209
- reply
2225
+ reply,
2226
+ wait: {
2227
+ type: "string",
2228
+ choices: ["none", "sent"],
2229
+ description: "none or sent: until the contact has the whole file, in a 1:1 chat (default: none with a daemon, sent without; a group: none)"
2230
+ },
2231
+ timeout: {
2232
+ type: "number",
2233
+ description: "Seconds --wait sent waits (default 300)"
2234
+ }
2210
2235
  },
2211
2236
  params: ({ options }, a) => ({
2212
2237
  chat: a.chat,
@@ -2214,7 +2239,9 @@ var commands$5 = {
2214
2239
  name: options.name,
2215
2240
  mime: options.mime,
2216
2241
  ...voiceOf(options),
2217
- reply: options.reply
2242
+ reply: options.reply,
2243
+ wait: options.wait,
2244
+ timeout: timeout(options, LONG_WAIT_SECONDS)
2218
2245
  })
2219
2246
  },
2220
2247
  "file wait": {
@@ -4093,15 +4120,15 @@ var VERSION = package_default.version;
4093
4120
  * command a running daemon answers loads none of them, and starts about as fast as Node does. Statically imported, they
4094
4121
  * cost every command ~100 ms before its socket was opened.
4095
4122
  */
4096
- var engineApi = () => import("./api-Dj1yn0px.js");
4097
- var engineHost = () => import("./host-CNWGB3-j.js");
4123
+ var engineApi = () => import("./api-raWw9j_m.js");
4124
+ var engineHost = () => import("./host-DIBeK_c_.js");
4098
4125
  /**
4099
4126
  * `--translate <lang>`'s translator, or null (not asked; or the runtime is not there, said on stderr). Loaded only when
4100
4127
  * asked: the app's message parser it reads costs every other command nothing.
4101
4128
  */
4102
4129
  async function translatorFor(value, home) {
4103
4130
  if (value === void 0) return null;
4104
- const { loadDetector, openTranslator, translateTarget } = await import("./translate-od5GbpvR.js");
4131
+ const { loadDetector, openTranslator, translateTarget } = await import("./translate-D1uP0q32.js");
4105
4132
  return openTranslator({
4106
4133
  home,
4107
4134
  to: translateTarget(value),
@@ -4924,7 +4951,7 @@ async function profileCommand(sub, argv) {
4924
4951
  if (!given || !name) throw new CliError("usage", `Missing <${given ? "new profile" : "file"}>: ghostly profile restore <file> <new profile> [--passphrase-file f] [--use]`);
4925
4952
  noMoreThan(2, parsed.positionals, "profile restore <file> <new profile> [--passphrase-file f] [--use]");
4926
4953
  const file = here(given);
4927
- const { backupFileProtection, restoreProfile } = await import("./backup-Cdd6-HNu.js");
4954
+ const { backupFileProtection, restoreProfile } = await import("./backup-BserdrNk.js");
4928
4955
  const protection = await backupFileProtection(file);
4929
4956
  const paths = await restoreProfile(g.home, checkProfileName(name), file, protection === "none" ? void 0 : backupPassphrase(parsed.options["passphrase-file"], RESTORE_PASSPHRASE));
4930
4957
  if (parsed.options.use) selectProfile(g.home, name);
@@ -5651,7 +5678,7 @@ async function textCommand(name, argv) {
5651
5678
  };
5652
5679
  if (spec.target === "group") params.mentions = parsed.options.mention ?? [];
5653
5680
  if (parsed.options.reply !== void 0) params.reply = parsed.options.reply;
5654
- if (!spec.message) Object.assign(params, (await import("./buttons-BO1_7V4L.js")).buttonsOf(parsed.options));
5681
+ if (!spec.message) Object.assign(params, (await import("./buttons-De3LPdSG.js")).buttonsOf(parsed.options));
5655
5682
  print(await withSession(g, (s) => {
5656
5683
  if (spec.target === "chat") {
5657
5684
  params.wait = parsed.options.wait ?? (s.mode === "one-shot" ? spec.message ? "confirmed" : "sent" : "none");
@@ -5697,7 +5724,7 @@ async function identityAddCommand(argv) {
5697
5724
  if (!provider) throw new CliError("usage", "Missing <provider>: ghostly identity add <provider> [subject] [--signer id] [--field name=value]... [--stdin] [--days n] [--timeout s]");
5698
5725
  inRange(parsed.options, "timeout", "a number of seconds", 5, 3600);
5699
5726
  const items = parsed.options.field ?? [];
5700
- const known = parsed.options.days !== void 0 || items.length ? (await import("./registry-DY2ixQfU.js")).IDENTITY_PROVIDERS.find((p) => p.id === provider) : void 0;
5727
+ const known = parsed.options.days !== void 0 || items.length ? (await import("./registry-PTtBMaYZ.js")).IDENTITY_PROVIDERS.find((p) => p.id === provider) : void 0;
5701
5728
  if (known && parsed.options.days !== void 0) inRange(parsed.options, "days", "a whole number", 1, known.validity.maxDays, true);
5702
5729
  const { fields, warning } = await identityFields(items, parsed.options.stdin === true, identitySecretFields(known, parsed.options.signer), readStdin, process.stdin.isTTY === true);
5703
5730
  if (warning) process.stderr.write(`ghostly: ${warning}\n`);
@@ -5807,7 +5834,7 @@ async function tableCommand(name, argv) {
5807
5834
  });
5808
5835
  if (translator) {
5809
5836
  try {
5810
- printAnswer(await (await import("./translate-od5GbpvR.js")).translateAnswer(result, translator));
5837
+ printAnswer(await (await import("./translate-D1uP0q32.js")).translateAnswer(result, translator));
5811
5838
  } finally {
5812
5839
  translator.close();
5813
5840
  }
@@ -5838,6 +5865,7 @@ async function callPipeCommand(argv) {
5838
5865
  socket.once("connect", resolve);
5839
5866
  socket.once("error", reject);
5840
5867
  });
5868
+ socket.write(`${audio.token}\n`);
5841
5869
  process.stderr.write(`ghostly: call ${call.call}: s16le mono ${audio.rate} Hz on stdin/stdout\n`);
5842
5870
  process.stdin.pipe(socket, { end: false });
5843
5871
  socket.pipe(process.stdout);
@@ -6027,4 +6055,4 @@ async function run(argv) {
6027
6055
  //#endregion
6028
6056
  export { run };
6029
6057
 
6030
- //# sourceMappingURL=main-BRxhBctJ.js.map
6058
+ //# sourceMappingURL=main-BbhfMTt8.js.map