@wirecat/zoom-cli 0.73.0 → 0.75.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 (137) hide show
  1. package/contracts/wirecat.json +5 -4
  2. package/dist/bin/zm.js +2 -2
  3. package/dist/bundle/{all-profiles-V47CUJFK.js → all-profiles-WFLKFKJC.js} +19 -29
  4. package/dist/bundle/answer-policy-XCKC2LLN.js +110 -0
  5. package/dist/bundle/{anthropic-SID7Z3QN.js → anthropic-H45W4P22.js} +2 -2
  6. package/dist/bundle/{app-server-KCMUSY4A.js → app-server-I4FPLBIX.js} +49 -66
  7. package/dist/bundle/{bun-PWMM6L45.js → bun-V5QLYBZU.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-3TLKUN5A.js → bun-sqlite-X2YZPHDS.js} +3 -3
  9. package/dist/bundle/{chunk-PGPHEC2X.js → chunk-2Q4CB4EI.js} +1 -1
  10. package/dist/bundle/{chunk-PACLT6IW.js → chunk-3U3W6YY5.js} +69 -68
  11. package/dist/bundle/{chunk-QVJMFZFW.js → chunk-3URYKAJP.js} +1 -1
  12. package/dist/bundle/{chunk-UYBLNGZ2.js → chunk-3YKAFLXY.js} +1 -1
  13. package/dist/bundle/{chunk-IKNOTHG2.js → chunk-3YRPDNWK.js} +544 -142
  14. package/dist/bundle/{chunk-CMWFYZ45.js → chunk-4J5GJJ2I.js} +1 -1
  15. package/dist/bundle/{chunk-Y3IH7EZC.js → chunk-4XDWV6VJ.js} +16 -16
  16. package/dist/bundle/{chunk-KHBZ4OEP.js → chunk-4YNUQGDP.js} +1 -1
  17. package/dist/bundle/{chunk-35CYSRGJ.js → chunk-532H3KT3.js} +2 -2
  18. package/dist/bundle/{chunk-TI2OANJZ.js → chunk-6XNTELM5.js} +1 -1
  19. package/dist/bundle/chunk-7ZVWV33Z.js +707 -0
  20. package/dist/bundle/{chunk-ERQRY6WZ.js → chunk-A3Q3PG54.js} +1 -1
  21. package/dist/bundle/{chunk-JQF4LM3V.js → chunk-AVCYD4WQ.js} +20 -19
  22. package/dist/bundle/{chunk-P4FU6R3Z.js → chunk-B6Q53CVA.js} +7 -7
  23. package/dist/bundle/{chunk-KSNJK4QM.js → chunk-BY2YPKZZ.js} +12 -12
  24. package/dist/bundle/{chunk-L6YSKCC3.js → chunk-C5WQ57AB.js} +1 -1
  25. package/dist/bundle/{chunk-AIEMFRBU.js → chunk-CAQ5GW3A.js} +1 -1
  26. package/dist/bundle/{chunk-G2TSDMTA.js → chunk-DQBLDZ7M.js} +3 -3
  27. package/dist/bundle/{chunk-ILDGZBZD.js → chunk-DUPFAY35.js} +6 -6
  28. package/dist/bundle/{chunk-GCZMYDKU.js → chunk-ELD5AC7Q.js} +2 -2
  29. package/dist/bundle/{chunk-CIUJEQH4.js → chunk-EOZAJGB4.js} +11 -12
  30. package/dist/bundle/{chunk-VJVYGTPM.js → chunk-F6RB5FHZ.js} +1 -1
  31. package/dist/bundle/{chunk-LVDTSCIN.js → chunk-F7K2V6OA.js} +10 -10
  32. package/dist/bundle/{chunk-4LFFDUUW.js → chunk-FBYGBR4Q.js} +3 -3
  33. package/dist/bundle/{chunk-6AO2RSYH.js → chunk-GPVSGZ4R.js} +1608 -1096
  34. package/dist/bundle/{chunk-2NQPB6MT.js → chunk-GU4FVTJV.js} +17 -1
  35. package/dist/bundle/{chunk-6NI4FE5G.js → chunk-HKPNQL52.js} +3 -3
  36. package/dist/bundle/{chunk-KUL7S5Y3.js → chunk-IDGWBKMH.js} +10 -10
  37. package/dist/bundle/{chunk-QS6DWXDB.js → chunk-IMDTC4MD.js} +34 -20
  38. package/dist/bundle/{chunk-LSVQCI6V.js → chunk-IO3BQ6JU.js} +22 -22
  39. package/dist/bundle/{chunk-V5Q2QKYM.js → chunk-IW245Q5B.js} +23 -25
  40. package/dist/bundle/{chunk-DPSTOVKC.js → chunk-JDTZCZ5K.js} +2 -2
  41. package/dist/bundle/{chunk-JIS34MLC.js → chunk-JTYWSXJG.js} +7 -7
  42. package/dist/bundle/{chunk-K5JFX5TK.js → chunk-K5E5MB4C.js} +18 -18
  43. package/dist/bundle/{chunk-VPPNYUQM.js → chunk-L5UILROP.js} +322 -11
  44. package/dist/bundle/{chunk-DYLYH7VE.js → chunk-LRCSDAYK.js} +3 -3
  45. package/dist/bundle/{chunk-PJ3FKBXG.js → chunk-MHXZ62CU.js} +1 -1
  46. package/dist/bundle/{chunk-OKOJEBHK.js → chunk-MNVT7EJS.js} +2 -2
  47. package/dist/bundle/{chunk-HAMDPWEZ.js → chunk-NE4GYKQA.js} +5 -5
  48. package/dist/bundle/{chunk-PKON63JH.js → chunk-NL6AZ6S2.js} +1 -1
  49. package/dist/bundle/{chunk-N3SOTKXC.js → chunk-NQLL4KRN.js} +5 -5
  50. package/dist/bundle/{chunk-XLY7V2LB.js → chunk-NQQVNLO6.js} +10 -10
  51. package/dist/bundle/{chunk-44YVZIA4.js → chunk-NU4FSSMN.js} +2 -2
  52. package/dist/bundle/{chunk-ZVQDOKDY.js → chunk-OUM4ZO53.js} +1 -1
  53. package/dist/bundle/{chunk-OU5OXA6Q.js → chunk-P4ZQQLZF.js} +1772 -718
  54. package/dist/bundle/{chunk-OMLVWOEF.js → chunk-P6MQ6FS4.js} +184 -16
  55. package/dist/bundle/{chunk-NBA2V6LB.js → chunk-PCJRHC5Y.js} +7 -7
  56. package/dist/bundle/{chunk-G3SIY4MQ.js → chunk-PPM7UTCT.js} +22 -21
  57. package/dist/bundle/{chunk-3ADFJ3UP.js → chunk-PX4IMYVB.js} +2 -2
  58. package/dist/bundle/{chunk-FJMRDRPN.js → chunk-QBKKTTA3.js} +1155 -484
  59. package/dist/bundle/{chunk-ZX4QWTMQ.js → chunk-QEO3XTIE.js} +37 -29
  60. package/dist/bundle/{chunk-FZLJ2G7A.js → chunk-QXQUANWE.js} +4 -4
  61. package/dist/bundle/{chunk-MG2CCAVG.js → chunk-RABCFGT3.js} +2 -2
  62. package/dist/bundle/{chunk-SYIOT45G.js → chunk-RBYVQE3S.js} +4 -4
  63. package/dist/bundle/{chunk-6WUTUCKH.js → chunk-RKI4BGWG.js} +2 -2
  64. package/dist/bundle/{chunk-EXWZCI5G.js → chunk-SEJBS7SI.js} +1 -1
  65. package/dist/bundle/{chunk-LQYMN36C.js → chunk-SR5X7YKB.js} +1 -1
  66. package/dist/bundle/{chunk-KK2IVZUQ.js → chunk-T25PR26L.js} +5 -5
  67. package/dist/bundle/{chunk-ZAIE3G5I.js → chunk-T4FMXDDV.js} +2 -2
  68. package/dist/bundle/{chunk-SO52EJ2W.js → chunk-TSHUBGN4.js} +2 -2
  69. package/dist/bundle/{chunk-OFA22L4G.js → chunk-V3UK6E5B.js} +4 -4
  70. package/dist/bundle/{chunk-Q43KX56Z.js → chunk-VLK3X53X.js} +2 -2
  71. package/dist/bundle/{chunk-Z5XCU4S7.js → chunk-VPSQZ2YR.js} +44 -52
  72. package/dist/bundle/{chunk-QWGEOQHA.js → chunk-VUPWDCYV.js} +1 -1
  73. package/dist/bundle/{chunk-K7EMVFJ7.js → chunk-W2AC2RAG.js} +13 -13
  74. package/dist/bundle/{chunk-UIKVP23D.js → chunk-WQOGHND4.js} +1 -1
  75. package/dist/bundle/{chunk-ETQNHS3A.js → chunk-WUWF4EXZ.js} +6 -6
  76. package/dist/bundle/{chunk-HO3GBTIT.js → chunk-XCJGDPMN.js} +1547 -917
  77. package/dist/bundle/{chunk-2VYEGKQ3.js → chunk-XUHQ7DVT.js} +1 -1
  78. package/dist/bundle/{chunk-IE7YBRUO.js → chunk-Y5J5CAG2.js} +1 -1
  79. package/dist/bundle/{chunk-MOKEB656.js → chunk-ZBYKCVSV.js} +1 -1
  80. package/dist/bundle/{chunk-CQBLPBZU.js → chunk-ZVVRRMLW.js} +98 -6
  81. package/dist/bundle/{cli-4ZYJ6OZE.js → cli-NPRYCWFH.js} +112 -83
  82. package/dist/bundle/command-contract-OJYRKQHR.js +41 -0
  83. package/dist/bundle/{command-server-entry-CASONRIJ.js → command-server-entry-BV4SUPUI.js} +24 -26
  84. package/dist/bundle/config-UMEV24OE.js +97 -0
  85. package/dist/bundle/{decode-KEFCVGEB.js → decode-PRMKCHHC.js} +2 -2
  86. package/dist/bundle/{dist-GCQ7KCKN.js → dist-HGLDGKUW.js} +18 -15
  87. package/dist/bundle/{echarts-SDZA2SWG.js → echarts-QIXLXS3G.js} +2 -2
  88. package/dist/bundle/{embed-43VJEPM6.js → embed-OZN2BIJY.js} +3 -3
  89. package/dist/bundle/{embedder-Q4ZHAGRP.js → embedder-RBDHO6Z6.js} +6 -6
  90. package/dist/bundle/{first-run-CPOLQVNA.js → first-run-HNCD7U3B.js} +6 -6
  91. package/dist/bundle/first-screen-374BBMO6.js +39 -0
  92. package/dist/bundle/{instructions-7T6JJIFS.js → instructions-MD2RZT5Z.js} +1 -1
  93. package/dist/bundle/{main-NA3QVPXS.js → main-FPMCCRIQ.js} +15 -15
  94. package/dist/bundle/{meetings-7CVIQJTA.js → meetings-WYCVHAIP.js} +17 -1
  95. package/dist/bundle/{node-BZDMUFTW.js → node-IEVT2FSJ.js} +2 -2
  96. package/dist/bundle/{node-sqlite-QHGB23B4.js → node-sqlite-O4C6IWSM.js} +4 -4
  97. package/dist/bundle/{oauth-BMEMCM2I.js → oauth-6VXOUXSE.js} +4 -4
  98. package/dist/bundle/{open-JGU2NRJP.js → open-AMUIWV3Y.js} +2 -2
  99. package/dist/bundle/{openai-VTXXFNCS.js → openai-MEDN6FSK.js} +10 -10
  100. package/dist/bundle/{process-756VBE7E.js → process-6Q23D3TO.js} +1 -1
  101. package/dist/bundle/{program-XM6CDIJ2.js → program-CF2NKA2A.js} +84 -87
  102. package/dist/bundle/{prompt-2IPFXJ4B.js → prompt-N3UZE4ZR.js} +2 -2
  103. package/dist/bundle/{recognize-672E2RIB.js → recognize-I5F3K3CZ.js} +1 -1
  104. package/dist/bundle/{remote-YLHRVPDS.js → remote-CJF5KMMY.js} +6 -6
  105. package/dist/bundle/{rerank-NBXQG3OS.js → rerank-6WLY6MKY.js} +4 -4
  106. package/dist/bundle/{run-log-3WITBT2F.js → run-log-FKF4ZX4M.js} +55 -57
  107. package/dist/bundle/{serve-FNLOUMYP.js → serve-FOQJ3WMX.js} +6 -6
  108. package/dist/bundle/server-BAGY5HEZ.js +74 -0
  109. package/dist/bundle/{server-7ZB5AK5H.js → server-OEEGRSQD.js} +47 -47
  110. package/dist/bundle/{services-Z4UWN64R.js → services-Q6SFESMS.js} +43 -28
  111. package/dist/bundle/{speech-XSYVCKR3.js → speech-PBVEIG4N.js} +12 -12
  112. package/dist/bundle/{sqlite-runtime-GAPXJNWU.js → sqlite-runtime-IWR65V6I.js} +3 -3
  113. package/dist/bundle/{state-QSA53EF5.js → state-G54C2N6U.js} +3 -3
  114. package/dist/bundle/{store-NOF5EYUC.js → store-7EWMPTTW.js} +20 -16
  115. package/dist/bundle/{store-EKI4OAJH.js → store-D5OLXIFW.js} +14 -14
  116. package/dist/bundle/store-connection-34747SCC.js +90 -0
  117. package/dist/bundle/store-maintenance-command-QBO67F7Z.js +65 -0
  118. package/dist/bundle/{tokens-WJQYQ3FK.js → tokens-J7TFHLEG.js} +4 -4
  119. package/dist/bundle/zm.js +2 -2
  120. package/dist/bundle/{zoom-app-Y7RMWLVU.js → zoom-app-SULPMVN4.js} +2 -2
  121. package/dist/recording-schedule-commands.d.ts.map +1 -1
  122. package/dist/recording-schedule-commands.js +2 -2
  123. package/dist/recording-schedule-commands.js.map +1 -1
  124. package/dist/version.d.ts +1 -1
  125. package/dist/version.js +1 -1
  126. package/package.json +2 -2
  127. package/dist/bundle/answer-policy-W6H72X2R.js +0 -112
  128. package/dist/bundle/chunk-2BAZRRJP.js +0 -1239
  129. package/dist/bundle/chunk-KQD4ZVNC.js +0 -153
  130. package/dist/bundle/chunk-R5FTCNLJ.js +0 -76
  131. package/dist/bundle/chunk-USIMMGWS.js +0 -997
  132. package/dist/bundle/command-contract-FJDDCHYP.js +0 -43
  133. package/dist/bundle/config-4DZHX2WX.js +0 -99
  134. package/dist/bundle/first-screen-XYESRGWW.js +0 -41
  135. package/dist/bundle/server-GGRGD4SH.js +0 -77
  136. package/dist/bundle/store-connection-2OZQGEIO.js +0 -92
  137. package/dist/bundle/store-maintenance-command-GNX3SOZ6.js +0 -67
@@ -1,26 +1,39 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ createRenderer,
5
+ fieldsOf,
6
+ processStreams,
7
+ projectFields
8
+ } from "./chunk-HNWDEDMU.js";
9
+ import {
10
+ COMPACT_FLAG
11
+ } from "./chunk-4RJL32PF.js";
3
12
  import {
4
13
  CliError
5
14
  } from "./chunk-EA2OB75T.js";
15
+ import {
16
+ singleLine
17
+ } from "./chunk-HCZYJMBP.js";
6
18
  import {
7
19
  __name
8
20
  } from "./chunk-ZVVMGPBJ.js";
9
21
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/permissions.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/permissions.js
11
23
  var LEVELS = ["deny", "readonly", "ask", "allow"];
12
24
  var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
13
25
  var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
14
26
  var DEFAULT_PERMISSIONS = {
15
- "messages.delete": "ask",
27
+ // Owner, 2026-11-14: deleting a message does not ask; a profile that wants the question sets `ask`.
28
+ "messages.delete": "allow",
16
29
  "account.sessions.end": "ask",
17
- "bot.messages.delete": "ask",
30
+ "bot.messages.delete": "allow",
18
31
  "topics.enable": "ask",
19
32
  "topics.delete": "ask",
20
33
  "chats.delete": "ask",
21
34
  "chats.clear": "ask",
22
- // NEED-568: a rule writes to people with nobody typing a command; it waits for the owner's own allow.
23
- "replies.send": "deny",
35
+ // Owner, 2026-11-14 (replaces NEED-568): a rule the owner enabled may send; `deny` stops every automatic reply.
36
+ "replies.send": "allow",
24
37
  // NEED-1662: an agent that changes settings, schedules or recipients could lift its own limits; the owner opts in.
25
38
  "mcp.authority": "deny",
26
39
  // NEED-1663: writes no level stopped before, so MCP could not offer them; over MCP `ask` goes ahead.
@@ -45,7 +58,11 @@ var DEFAULT_PERMISSIONS = {
45
58
  "images.models.download": "ask",
46
59
  "schedule.run": "ask",
47
60
  "schedule.exec": "ask",
48
- "doctor.reports.create": "ask"
61
+ "doctor.reports.create": "ask",
62
+ // A meeting changed on the service reaches its invitees: asked first, as zoom's `remote-meetings` was.
63
+ "meetings.create": "ask",
64
+ "meetings.update": "ask",
65
+ "meetings.cancel": "ask"
49
66
  };
50
67
  var KEYED_UNDER_HOUSEKEEPING = new Set(Object.keys(DEFAULT_PERMISSIONS).filter((key) => /^(store|server|models|images|schedule|doctor)\./.test(key)));
51
68
  var AUTHORITY_KEY = "mcp.authority";
@@ -93,7 +110,7 @@ var layerPermissions = /* @__PURE__ */ __name((layers) => {
93
110
  for (const [from, layer] of layers) {
94
111
  const nearer = Object.keys(levels);
95
112
  for (const [key, level] of Object.entries(layer ?? {})) {
96
- if (nearer.some((named) => key === named || key.startsWith(`${named}.`)))
113
+ if (nearer.some((named2) => key === named2 || key.startsWith(`${named2}.`)))
97
114
  continue;
98
115
  levels[key] = level;
99
116
  sources[key] = from;
@@ -102,14 +119,31 @@ var layerPermissions = /* @__PURE__ */ __name((layers) => {
102
119
  return { levels, sources };
103
120
  }, "layerPermissions");
104
121
  var CEILING_KEY = "*";
122
+ var STORE_ONLY_KEYS = /* @__PURE__ */ new Set([
123
+ "attachments.extract",
124
+ "conversations.embeddings",
125
+ "conversations.links",
126
+ "messages.server-search",
127
+ "messages.sync-first",
128
+ "metadata.sync",
129
+ "stats.contacts.top.sync-first",
130
+ "stats.messages.counters.sync",
131
+ "stats.messages.show.sync-first",
132
+ "stats.messages.top.sync-first",
133
+ "store.gaps.repair"
134
+ ]);
135
+ var FETCH_KEYS = new Set([...STORE_ONLY_KEYS].filter((key) => !["attachments.extract", "conversations.embeddings", "conversations.links"].includes(key)));
136
+ var fetchesUnder = /* @__PURE__ */ __name((level, key) => level === "readonly" && FETCH_KEYS.has(key), "fetchesUnder");
137
+ var fetchesAt = /* @__PURE__ */ __name((level) => level === "allow" || level === "readonly", "fetchesAt");
138
+ var stops = /* @__PURE__ */ __name((level, key) => level === "deny" || level === "readonly" && !FETCH_KEYS.has(key), "stops");
105
139
  var ALLOWED = { level: "allow", key: null };
106
140
  var ORDER = { deny: 0, readonly: 1, ask: 2, allow: 3 };
107
141
  var nearest = /* @__PURE__ */ __name((levels, key) => {
108
142
  for (let parts = key.split("."); parts.length > 0; parts = parts.slice(0, -1)) {
109
- const named = parts.join(".");
110
- const level = levels[named];
143
+ const named2 = parts.join(".");
144
+ const level = levels[named2];
111
145
  if (level)
112
- return { level, key: named, depth: parts.length };
146
+ return { level, key: named2, depth: parts.length };
113
147
  }
114
148
  return void 0;
115
149
  }, "nearest");
@@ -188,16 +222,16 @@ var keyForWrite = /* @__PURE__ */ __name((kind, action) => {
188
222
  return KIND_KEYS[kind];
189
223
  }, "keyForWrite");
190
224
  var writeOfKey = /* @__PURE__ */ __name((key) => {
191
- const account = Object.entries(ACCOUNT_KEYS).find(([, named]) => named === key)?.[0];
225
+ const account = Object.entries(ACCOUNT_KEYS).find(([, named2]) => named2 === key)?.[0];
192
226
  if (account)
193
227
  return { kind: "account", action: account };
194
- const kind = Object.entries(KIND_KEYS).find(([, named]) => named === key || key.startsWith(`${named}.`))?.[0];
228
+ const kind = Object.entries(KIND_KEYS).find(([, named2]) => named2 === key || key.startsWith(`${named2}.`))?.[0];
195
229
  if (kind)
196
230
  return { kind };
197
231
  if (key === "messages.unpin")
198
232
  return { kind: "pin" };
199
233
  if (key.startsWith("chats.")) {
200
- const action = Object.entries(CHAT_KEYS).find(([, named]) => named === key)?.[0] ?? key.slice("chats.".length);
234
+ const action = Object.entries(CHAT_KEYS).find(([, named2]) => named2 === key)?.[0] ?? key.slice("chats.".length);
201
235
  return { kind: "chat", action };
202
236
  }
203
237
  return {};
@@ -398,8 +432,8 @@ var permissionOverrides = /* @__PURE__ */ __name((entries = [], shape = RESOURCE
398
432
  }, "permissionOverrides");
399
433
  var assertOverridesTighten = /* @__PURE__ */ __name((overrides, profile, defaults = DEFAULT_PERMISSIONS) => {
400
434
  for (const [key, level] of Object.entries(overrides)) {
401
- const under = Object.keys(profile).filter((named) => named.startsWith(`${key}.`));
402
- const lifted = [key, ...under].find((named) => ORDER[level] > ORDER[levelFor(profile, named, defaults).level]);
435
+ const under = Object.keys(profile).filter((named2) => named2.startsWith(`${key}.`));
436
+ const lifted = [key, ...under].find((named2) => ORDER[level] > ORDER[levelFor(profile, named2, defaults).level]);
403
437
  if (lifted !== void 0)
404
438
  throw new CliError("validation_error", `--permission ${key}=${level} would loosen ${lifted} from ${levelFor(profile, lifted, defaults).level}; it only tightens \u2014 change the profile's permissions to loosen it`, { key, lifted });
405
439
  }
@@ -411,6 +445,133 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
411
445
  }
412
446
  }, "assertRetentionEvidenceRead");
413
447
 
448
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
449
+ var named = /* @__PURE__ */ __name((work) => {
450
+ try {
451
+ return work();
452
+ } catch (error) {
453
+ if (error instanceof CliError && error.code === "validation_error")
454
+ throw new CliError("validation_error", "--json takes comma-separated field paths, for example --json=id,text", {
455
+ param: "--json"
456
+ });
457
+ throw error;
458
+ }
459
+ }, "named");
460
+ var fieldsOf2 = /* @__PURE__ */ __name((value) => named(() => fieldsOf(value)), "fieldsOf");
461
+ var projectCommands = /* @__PURE__ */ __name((commands, fields) => commands.map((command) => ({
462
+ ...projectFields(command, fields),
463
+ path: command.path,
464
+ name: command.name,
465
+ origin: command.origin,
466
+ effects: command.effects,
467
+ commands: projectCommands(command.commands, fields)
468
+ })), "projectCommands");
469
+ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
470
+ if (value && typeof value === "object" && "cli" in value && typeof value.cli === "string" && "contract" in value && "commands" in value && Array.isArray(value.commands))
471
+ return { ...value, commands: projectCommands(value.commands, fields) };
472
+ return projectFields(value, fields);
473
+ }), "projectFields");
474
+
475
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/output-detail.js
476
+ var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
477
+ var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
478
+ var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
479
+ var isRecord = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null, "isRecord");
480
+ var isSnakeHit = /* @__PURE__ */ __name((value) => isRecord(value) && typeof value.ref === "string" && typeof value.excerpt === "string", "isSnakeHit");
481
+ var isHit = /* @__PURE__ */ __name((value) => isSnakeHit(value) || isRecord(value) && typeof value.locator === "string" && typeof value.text === "string", "isHit");
482
+ var picked = /* @__PURE__ */ __name((hit, keys) => Object.fromEntries(keys.flatMap((key) => hit[key] === void 0 || hit[key] === null ? [] : [[key, hit[key]]])), "picked");
483
+ var shaped = /* @__PURE__ */ __name((hit, detail) => {
484
+ if (isSnakeHit(hit))
485
+ return detail === "brief" ? picked(hit, SNAKE_BRIEF) : hit;
486
+ if (detail === "brief")
487
+ return picked(hit, BRIEF);
488
+ const { text, providerMetadata, ...rest } = hit;
489
+ for (const key of RARELY_SET)
490
+ if (rest[key] === null)
491
+ delete rest[key];
492
+ const metadata = rest.email ? void 0 : providerMetadata;
493
+ return {
494
+ ...rest,
495
+ ...typeof rest.excerpt === "string" ? {} : { text },
496
+ ...metadata === void 0 ? {} : { providerMetadata: metadata }
497
+ };
498
+ }, "shaped");
499
+ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
500
+ if (detail === "full")
501
+ return value;
502
+ if (Array.isArray(value))
503
+ return value.map((item) => isHit(item) ? shaped(item, detail) : item);
504
+ if (isHit(value))
505
+ return shaped(value, detail);
506
+ if (typeof value === "object" && value !== null && Array.isArray(value.items))
507
+ return { ...value, items: atDetail(value.items, detail) };
508
+ return value;
509
+ }, "atDetail");
510
+
511
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/output.js
512
+ var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
513
+ const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
514
+ if (other)
515
+ throw new CliError("validation_error", `${COMPACT_FLAG} and ${other} ask for different output \u2014 pick one`, {
516
+ reason: "output.conflict",
517
+ param: COMPACT_FLAG
518
+ });
519
+ }, "refuseCompact");
520
+ var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = processStreams, tty, color, fields, hitDetail, env = process.env, capture, compact } = {}) => {
521
+ if (compact)
522
+ refuseCompact({ json, jsonl, fields, hitDetail });
523
+ const interactive = tty ?? process.stdout.isTTY === true;
524
+ const format = jsonl ? "jsonl" : json || compact || !interactive ? "json" : "pretty";
525
+ const painted = format === "pretty" && (color ?? (env.NO_COLOR === void 0 && env.TERM !== "dumb" && !env.CI));
526
+ const printing = createRenderer({ format, color: painted, streams });
527
+ const rendered = capture ? { ...printing, result: capture, stream: /* @__PURE__ */ __name((items) => capture([...items]), "stream") } : printing;
528
+ const level = hitDetail ?? (fields === void 0 ? "default" : "full");
529
+ const standard = format === "pretty" ? rendered : {
530
+ ...rendered,
531
+ result: /* @__PURE__ */ __name((value) => rendered.result(atDetail(value, level)), "result"),
532
+ stream: /* @__PURE__ */ __name((items) => rendered.stream(atDetail([...items], level)), "stream")
533
+ };
534
+ const created = standard;
535
+ const paths = fields === void 0 ? void 0 : fieldsOf2(fields);
536
+ const renderer = format === "pretty" ? oneLineFields(created) : paths ? {
537
+ ...created,
538
+ result: /* @__PURE__ */ __name((value) => created.result(projectFields2(value, paths)), "result"),
539
+ stream: /* @__PURE__ */ __name((items) => created.stream([...items].map((item) => projectFields2(item, paths))), "stream")
540
+ } : created;
541
+ return {
542
+ format,
543
+ color: painted,
544
+ streams,
545
+ renderer: quiet ? silence(renderer) : renderer,
546
+ ...compact ? { compact: true, full: hitDetail === "full" } : {}
547
+ };
548
+ }, "resolveOutput");
549
+ var MULTI_LINE = /* @__PURE__ */ new Set(["text", "description"]);
550
+ var oneLineFields = /* @__PURE__ */ __name((renderer) => ({
551
+ ...renderer,
552
+ result: /* @__PURE__ */ __name((value) => renderer.result(oneLine(value)), "result"),
553
+ stream: /* @__PURE__ */ __name((items) => renderer.stream([...items].map((item) => oneLine(item))), "stream")
554
+ }), "oneLineFields");
555
+ var oneLine = /* @__PURE__ */ __name((value, key) => {
556
+ if (typeof value === "string")
557
+ return key !== void 0 && MULTI_LINE.has(key) ? value : singleLine(value);
558
+ if (Array.isArray(value))
559
+ return value.map((item) => oneLine(item, key));
560
+ if (value !== null && typeof value === "object" && Object.getPrototypeOf(value) === Object.prototype) {
561
+ return Object.fromEntries(Object.entries(value).map(([field, item]) => [field, oneLine(item, field)]));
562
+ }
563
+ return value;
564
+ }, "oneLine");
565
+ var silence = /* @__PURE__ */ __name((renderer) => ({
566
+ ...renderer,
567
+ note: /* @__PURE__ */ __name(() => {
568
+ }, "note"),
569
+ success: /* @__PURE__ */ __name(() => {
570
+ }, "success"),
571
+ warn: /* @__PURE__ */ __name(() => {
572
+ }, "warn")
573
+ }), "silence");
574
+
414
575
  export {
415
576
  LEVELS,
416
577
  skipFlagFor,
@@ -424,6 +585,10 @@ export {
424
585
  RESOURCES,
425
586
  layerPermissions,
426
587
  CEILING_KEY,
588
+ STORE_ONLY_KEYS,
589
+ fetchesUnder,
590
+ fetchesAt,
591
+ stops,
427
592
  levelFor,
428
593
  keyForWrite,
429
594
  writeOfKey,
@@ -434,5 +599,8 @@ export {
434
599
  COMMAND_PATH_KEY,
435
600
  permissionOverrides,
436
601
  assertOverridesTighten,
437
- assertRetentionEvidenceRead
602
+ assertRetentionEvidenceRead,
603
+ fieldsOf2 as fieldsOf,
604
+ projectFields2 as projectFields,
605
+ resolveOutput
438
606
  };
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  normalize
5
- } from "./chunk-KHBZ4OEP.js";
5
+ } from "./chunk-4YNUQGDP.js";
6
6
  import {
7
7
  CliError
8
8
  } from "./chunk-EA2OB75T.js";
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/languages.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/languages.js
14
14
  var LANGUAGES = [
15
15
  { name: "russian", code: "ru", label: "Russian", script: "cyrillic", dictionary: "dictionary-ru" },
16
16
  { name: "english", code: "en", label: "English", script: "latin", dictionary: "dictionary-en" },
@@ -18,7 +18,7 @@ var LANGUAGES = [
18
18
  ];
19
19
  var languagesOf = /* @__PURE__ */ __name((script) => LANGUAGES.filter((one) => one.script === script).map(({ name }) => name), "languagesOf");
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/snowball/base-stemmer.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/snowball/base-stemmer.js
22
22
  var BaseStemmer = class {
23
23
  static {
24
24
  __name(this, "BaseStemmer");
@@ -393,7 +393,7 @@ var BaseStemmer = class {
393
393
  }
394
394
  };
395
395
 
396
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/snowball/english-stemmer.js
396
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/snowball/english-stemmer.js
397
397
  var a_0 = [
398
398
  ["arsen", -1],
399
399
  ["commun", -1],
@@ -1094,7 +1094,7 @@ var english_stemmer_default = class extends BaseStemmer {
1094
1094
  stemWord = this.stem;
1095
1095
  };
1096
1096
 
1097
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/snowball/russian-stemmer.js
1097
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/snowball/russian-stemmer.js
1098
1098
  var a_02 = [
1099
1099
  ["\u0432", 1],
1100
1100
  ["\u0438\u0432", 2, 1],
@@ -1517,7 +1517,7 @@ var russian_stemmer_default = class extends BaseStemmer {
1517
1517
  stemWord = this.stem;
1518
1518
  };
1519
1519
 
1520
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/snowball/spanish-stemmer.js
1520
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/snowball/spanish-stemmer.js
1521
1521
  var a_03 = [
1522
1522
  ["", 6],
1523
1523
  ["\xE1", 1, 1],
@@ -2193,7 +2193,7 @@ var spanish_stemmer_default = class extends BaseStemmer {
2193
2193
  stemWord = this.stem;
2194
2194
  };
2195
2195
 
2196
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/stem.js
2196
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/stem.js
2197
2197
  var SNOWBALL_VERSION = "3.1.1";
2198
2198
  var CYRILLIC_STEMMERS = [...languagesOf("cyrillic"), "none"];
2199
2199
  var LATIN_STEMMERS = [...languagesOf("latin"), "none"];
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  refuseLacking
5
- } from "./chunk-2BAZRRJP.js";
5
+ } from "./chunk-7ZVWV33Z.js";
6
6
  import {
7
7
  servingProfiles
8
- } from "./chunk-3ADFJ3UP.js";
8
+ } from "./chunk-PX4IMYVB.js";
9
9
  import {
10
10
  FloodMemory,
11
11
  OFFLINE,
@@ -21,50 +21,49 @@ import {
21
21
  servicesFor,
22
22
  throughWrapper,
23
23
  withFileLockAsync
24
- } from "./chunk-OU5OXA6Q.js";
24
+ } from "./chunk-P4ZQQLZF.js";
25
25
  import {
26
26
  asFirstWord,
27
27
  baseContext,
28
+ codeOf,
29
+ currentOperation,
28
30
  environmentOf,
29
31
  issueMessage,
32
+ limitBatch,
30
33
  permissionIssues,
31
34
  publicIssue,
32
35
  recalledAccount,
33
36
  rememberAccount,
34
37
  rootOf2 as rootOf
35
- } from "./chunk-FJMRDRPN.js";
38
+ } from "./chunk-QBKKTTA3.js";
36
39
  import {
37
40
  providerErrorKey
38
- } from "./chunk-ILDGZBZD.js";
39
- import {
40
- codeOf,
41
- currentOperation,
42
- limitBatch
43
- } from "./chunk-USIMMGWS.js";
41
+ } from "./chunk-DUPFAY35.js";
44
42
  import {
45
43
  AUTHORITY_KEY,
46
44
  CEILING_KEY,
47
45
  DEFAULT_PERMISSIONS,
48
46
  KEYED_UNDER_HOUSEKEEPING,
49
47
  WRITE_KEYS,
48
+ fetchesUnder,
50
49
  keyForCommand,
51
50
  levelFor,
52
51
  readKeysForCommand,
53
52
  skipFlagFor
54
- } from "./chunk-OMLVWOEF.js";
53
+ } from "./chunk-P6MQ6FS4.js";
55
54
  import {
56
55
  openStore
57
- } from "./chunk-HO3GBTIT.js";
56
+ } from "./chunk-XCJGDPMN.js";
58
57
  import {
59
58
  chatReferenceOf,
60
59
  ensureAccount,
61
60
  foldName,
62
61
  isId,
63
62
  pickPerson
64
- } from "./chunk-K5JFX5TK.js";
63
+ } from "./chunk-K5E5MB4C.js";
65
64
  import {
66
65
  isCliFailure
67
- } from "./chunk-UYBLNGZ2.js";
66
+ } from "./chunk-3YKAFLXY.js";
68
67
  import {
69
68
  resolvePaths
70
69
  } from "./chunk-HNWDEDMU.js";
@@ -75,7 +74,7 @@ import {
75
74
  __name
76
75
  } from "./chunk-ZVVMGPBJ.js";
77
76
 
78
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
77
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
79
78
  import { openSync } from "node:fs";
80
79
  import { createInterface } from "node:readline";
81
80
  import { ReadStream } from "node:tty";
@@ -130,7 +129,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
130
129
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
131
130
  }, "terminalAsker");
132
131
 
133
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
132
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
134
133
  var HOUSEKEEPING = /* @__PURE__ */ new Set([
135
134
  "help",
136
135
  "guide",
@@ -210,7 +209,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
210
209
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
211
210
  }, "refuseUnknownPermissionKeys");
212
211
 
213
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
212
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
214
213
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
215
214
  var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
216
215
  let warned = false;
@@ -786,7 +785,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
786
785
  }
787
786
  }, "keep");
788
787
 
789
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/pace.js
788
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/pace.js
790
789
  import { readFileSync, renameSync, writeFileSync } from "node:fs";
791
790
  import { join } from "node:path";
792
791
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -881,7 +880,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
881
880
  await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
882
881
  }, "waitForTurn");
883
882
 
884
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
883
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
885
884
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
886
885
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
887
886
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -978,7 +977,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
978
977
  });
979
978
  }, "flooded");
980
979
 
981
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
980
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
982
981
  var observed = /* @__PURE__ */ __name((messenger, events) => {
983
982
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
984
983
  const write = currentOperation();
@@ -1077,7 +1076,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
1077
1076
  counts[part] = (counts[part] ?? 0) + items.length;
1078
1077
  }, "byPart");
1079
1078
 
1080
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1079
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1081
1080
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1082
1081
  let opened;
1083
1082
  return {
@@ -1355,6 +1354,8 @@ var refuseLocalWrite = /* @__PURE__ */ __name((context, command, permission) =>
1355
1354
  const { level, key } = levelFor(settings.permissions, permission);
1356
1355
  if (level === "allow" || level === "ask" && context.agent)
1357
1356
  return;
1357
+ if (fetchesUnder(level, permission))
1358
+ return;
1358
1359
  if (key === CEILING_KEY)
1359
1360
  throw ceilingRefusal(permission, command);
1360
1361
  throw new CliError(level === "ask" ? "confirmation_required" : "permission_error", `profile ${settings.profile} does not let ${permission} write (permissions.${key} is ${level}, from the ${settings.permissionSources[key ?? ""] ?? "default"}); to allow it: ${command} ${settings.profile} config set permissions.${permission} allow`, { permission });
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  alive
5
- } from "./chunk-UIKVP23D.js";
5
+ } from "./chunk-WQOGHND4.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
@@ -11,7 +11,7 @@ import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/background/lock.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/background/lock.js
15
15
  import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
16
16
  import { dirname, join } from "node:path";
17
17
  var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");