@wirecat/amo-cli 0.0.0-stage → 0.1.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 (294) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/LICENSE +204 -0
  3. package/README.md +257 -2
  4. package/contracts/wirecat.json +1356 -0
  5. package/dist/amo/account.d.ts +18 -0
  6. package/dist/amo/account.d.ts.map +1 -0
  7. package/dist/amo/account.js +48 -0
  8. package/dist/amo/account.js.map +1 -0
  9. package/dist/amo/allow-list.d.ts +31 -0
  10. package/dist/amo/allow-list.d.ts.map +1 -0
  11. package/dist/amo/allow-list.js +106 -0
  12. package/dist/amo/allow-list.js.map +1 -0
  13. package/dist/amo/call.d.ts +24 -0
  14. package/dist/amo/call.d.ts.map +1 -0
  15. package/dist/amo/call.js +54 -0
  16. package/dist/amo/call.js.map +1 -0
  17. package/dist/amo/errors.d.ts +12 -0
  18. package/dist/amo/errors.d.ts.map +1 -0
  19. package/dist/amo/errors.js +72 -0
  20. package/dist/amo/errors.js.map +1 -0
  21. package/dist/amo/json.d.ts +3 -0
  22. package/dist/amo/json.d.ts.map +1 -0
  23. package/dist/amo/json.js +3 -0
  24. package/dist/amo/json.js.map +1 -0
  25. package/dist/amo/oauth.d.ts +55 -0
  26. package/dist/amo/oauth.d.ts.map +1 -0
  27. package/dist/amo/oauth.js +189 -0
  28. package/dist/amo/oauth.js.map +1 -0
  29. package/dist/amo/operation.d.ts +45 -0
  30. package/dist/amo/operation.d.ts.map +1 -0
  31. package/dist/amo/operation.js +119 -0
  32. package/dist/amo/operation.js.map +1 -0
  33. package/dist/amo/operations.d.ts +3 -0
  34. package/dist/amo/operations.d.ts.map +1 -0
  35. package/dist/amo/operations.js +1407 -0
  36. package/dist/amo/operations.js.map +1 -0
  37. package/dist/amo/routes.d.ts +67 -0
  38. package/dist/amo/routes.d.ts.map +1 -0
  39. package/dist/amo/routes.js +65 -0
  40. package/dist/amo/routes.js.map +1 -0
  41. package/dist/amo/transport.d.ts +62 -0
  42. package/dist/amo/transport.d.ts.map +1 -0
  43. package/dist/amo/transport.js +282 -0
  44. package/dist/amo/transport.js.map +1 -0
  45. package/dist/api-keys.d.ts +47 -0
  46. package/dist/api-keys.d.ts.map +1 -0
  47. package/dist/api-keys.js +224 -0
  48. package/dist/api-keys.js.map +1 -0
  49. package/dist/bin/amo.d.ts +3 -0
  50. package/dist/bin/amo.d.ts.map +1 -0
  51. package/dist/bin/amo.js +40 -0
  52. package/dist/bin/amo.js.map +1 -0
  53. package/dist/bundle/all-profiles-3KQVWDV4.js +278 -0
  54. package/dist/bundle/amo.js +198 -0
  55. package/dist/bundle/anthropic-N5NOX7K7.js +90 -0
  56. package/dist/bundle/app-server-2MST5EZ5.js +245 -0
  57. package/dist/bundle/bun-4NHWOFX2.js +169 -0
  58. package/dist/bundle/bun-sqlite-DRSXPWPR.js +75 -0
  59. package/dist/bundle/chunk-2I5UVMLW.js +3232 -0
  60. package/dist/bundle/chunk-3IRJDH2U.js +731 -0
  61. package/dist/bundle/chunk-4ZAK773N.js +100 -0
  62. package/dist/bundle/chunk-5D4AEUVA.js +24783 -0
  63. package/dist/bundle/chunk-5D4Z2B5B.js +334 -0
  64. package/dist/bundle/chunk-5E5R65CA.js +54 -0
  65. package/dist/bundle/chunk-5HGGG3QO.js +73 -0
  66. package/dist/bundle/chunk-5RLUHTK6.js +23 -0
  67. package/dist/bundle/chunk-5SBLU7D7.js +63 -0
  68. package/dist/bundle/chunk-5Z5PEEKP.js +206 -0
  69. package/dist/bundle/chunk-63F65DHU.js +29 -0
  70. package/dist/bundle/chunk-6RS7OYTD.js +64 -0
  71. package/dist/bundle/chunk-73CXFE36.js +88 -0
  72. package/dist/bundle/chunk-7GTUZY7M.js +170 -0
  73. package/dist/bundle/chunk-7PKFYX7V.js +189 -0
  74. package/dist/bundle/chunk-7U5HJEPZ.js +1400 -0
  75. package/dist/bundle/chunk-A33TIM5D.js +4172 -0
  76. package/dist/bundle/chunk-ADEWU4P4.js +38 -0
  77. package/dist/bundle/chunk-ADLS6FVG.js +24600 -0
  78. package/dist/bundle/chunk-AHJ4W2IL.js +106 -0
  79. package/dist/bundle/chunk-AUBB72VF.js +2572 -0
  80. package/dist/bundle/chunk-BVMNXI53.js +1266 -0
  81. package/dist/bundle/chunk-CDY2NJFE.js +136 -0
  82. package/dist/bundle/chunk-CHUKWON6.js +244 -0
  83. package/dist/bundle/chunk-CUZRHF34.js +230 -0
  84. package/dist/bundle/chunk-D72URWJE.js +532 -0
  85. package/dist/bundle/chunk-DAY6TSPF.js +786 -0
  86. package/dist/bundle/chunk-DFDN6AUB.js +21 -0
  87. package/dist/bundle/chunk-DJD7TBYG.js +2791 -0
  88. package/dist/bundle/chunk-DOSJONCX.js +1197 -0
  89. package/dist/bundle/chunk-DQV2IKCF.js +72 -0
  90. package/dist/bundle/chunk-DTA5YV5O.js +25 -0
  91. package/dist/bundle/chunk-DXGGCGRP.js +218 -0
  92. package/dist/bundle/chunk-EH6ZEJGT.js +932 -0
  93. package/dist/bundle/chunk-EPOV5UIO.js +185 -0
  94. package/dist/bundle/chunk-EQ7A6NA6.js +53 -0
  95. package/dist/bundle/chunk-EQUKVVHX.js +353 -0
  96. package/dist/bundle/chunk-EROSAUNP.js +133 -0
  97. package/dist/bundle/chunk-ESZSMZKT.js +82 -0
  98. package/dist/bundle/chunk-FKR3M62D.js +407 -0
  99. package/dist/bundle/chunk-GNTJMB6X.js +142 -0
  100. package/dist/bundle/chunk-GQ7VFIYM.js +316 -0
  101. package/dist/bundle/chunk-JH3UOHRE.js +161 -0
  102. package/dist/bundle/chunk-JMDLPBXK.js +1068 -0
  103. package/dist/bundle/chunk-JR6TSMFX.js +9435 -0
  104. package/dist/bundle/chunk-K5UU3IOR.js +27955 -0
  105. package/dist/bundle/chunk-L6AFE73L.js +18 -0
  106. package/dist/bundle/chunk-LDEBZ3IX.js +238 -0
  107. package/dist/bundle/chunk-LGQXGOPJ.js +58 -0
  108. package/dist/bundle/chunk-LJQUYECN.js +6848 -0
  109. package/dist/bundle/chunk-LRBPT7LQ.js +95 -0
  110. package/dist/bundle/chunk-LSND5QYI.js +460 -0
  111. package/dist/bundle/chunk-NHXJYS4R.js +1334 -0
  112. package/dist/bundle/chunk-NJYAL3UW.js +92 -0
  113. package/dist/bundle/chunk-NTLSWCJ5.js +1718 -0
  114. package/dist/bundle/chunk-O2UCU52O.js +4065 -0
  115. package/dist/bundle/chunk-ODNQU7DH.js +1028 -0
  116. package/dist/bundle/chunk-P3WQRTYZ.js +24 -0
  117. package/dist/bundle/chunk-P5LYZRKW.js +63373 -0
  118. package/dist/bundle/chunk-PFO76YFP.js +2003 -0
  119. package/dist/bundle/chunk-PM77PRB6.js +12269 -0
  120. package/dist/bundle/chunk-Q2VNBY4Y.js +38109 -0
  121. package/dist/bundle/chunk-QDMXZZG4.js +604 -0
  122. package/dist/bundle/chunk-QRQYUHCZ.js +761 -0
  123. package/dist/bundle/chunk-RPWAJYI6.js +2336 -0
  124. package/dist/bundle/chunk-SMSTGO2G.js +58 -0
  125. package/dist/bundle/chunk-SZ2V62HB.js +72 -0
  126. package/dist/bundle/chunk-T2UDLX76.js +259 -0
  127. package/dist/bundle/chunk-TGEQNS6G.js +16 -0
  128. package/dist/bundle/chunk-TNUFLULO.js +2333 -0
  129. package/dist/bundle/chunk-U7RLVJ34.js +274 -0
  130. package/dist/bundle/chunk-UBRREVLJ.js +72 -0
  131. package/dist/bundle/chunk-ULXQ5MJM.js +76 -0
  132. package/dist/bundle/chunk-UMVRT7VQ.js +46 -0
  133. package/dist/bundle/chunk-V77XNPXG.js +360 -0
  134. package/dist/bundle/chunk-VVHRQ46X.js +193 -0
  135. package/dist/bundle/chunk-VX37MPTJ.js +7 -0
  136. package/dist/bundle/chunk-WCYCUTSK.js +362 -0
  137. package/dist/bundle/chunk-XEFAMLSD.js +288 -0
  138. package/dist/bundle/chunk-XQL7FEF4.js +721 -0
  139. package/dist/bundle/chunk-XRTD2GCU.js +627 -0
  140. package/dist/bundle/chunk-Y37A3232.js +804 -0
  141. package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
  142. package/dist/bundle/chunk-ZM7I52EP.js +78 -0
  143. package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
  144. package/dist/bundle/cli-KEGIR67U.js +1193 -0
  145. package/dist/bundle/command-contract-QBUQBXH7.js +39 -0
  146. package/dist/bundle/command-server-entry-5VL5U5EE.js +168 -0
  147. package/dist/bundle/decode-SQ5WGNDX.js +296 -0
  148. package/dist/bundle/dispatch-LA4DFXJD.js +411 -0
  149. package/dist/bundle/dist-XJGFOXYI.js +7577 -0
  150. package/dist/bundle/echarts-25Z3RINX.js +42501 -0
  151. package/dist/bundle/embed-BNOTNXMA.js +37 -0
  152. package/dist/bundle/embedder-BCUT7KKV.js +110 -0
  153. package/dist/bundle/failure-PKAC6XCT.js +24 -0
  154. package/dist/bundle/first-run-EO5K5GME.js +28 -0
  155. package/dist/bundle/first-screen-GMN3T6RW.js +39 -0
  156. package/dist/bundle/instructions-VLM3QAYB.js +11 -0
  157. package/dist/bundle/mcp-7ILNMJH5.js +167 -0
  158. package/dist/bundle/meeting-combined-LAMF7S2B.js +24 -0
  159. package/dist/bundle/meeting-model-GHMMUQ34.js +24 -0
  160. package/dist/bundle/meeting-semantic-BMP6323L.js +21 -0
  161. package/dist/bundle/node-CT3N3TNL.js +176 -0
  162. package/dist/bundle/node-P4E63KXA.js +2340 -0
  163. package/dist/bundle/node-TLZSIHIJ.js +21 -0
  164. package/dist/bundle/node-sqlite-MELD2SBX.js +73 -0
  165. package/dist/bundle/oauth-YBH5OKC2.js +19 -0
  166. package/dist/bundle/open-WNSBWTAG.js +22 -0
  167. package/dist/bundle/openai-XSNMNLW6.js +237 -0
  168. package/dist/bundle/process-I2QKOMM7.js +91 -0
  169. package/dist/bundle/program-VQQTSSAF.js +4940 -0
  170. package/dist/bundle/prompt-SOG4AKPM.js +16 -0
  171. package/dist/bundle/recognize-WMQLWMXH.js +25 -0
  172. package/dist/bundle/remote-4BTFOLFY.js +30 -0
  173. package/dist/bundle/rerank-LJ3TWRNV.js +51 -0
  174. package/dist/bundle/serve-B6UANKXN.js +198 -0
  175. package/dist/bundle/server-S6XD6V6E.js +77 -0
  176. package/dist/bundle/server-YRH6GJ5Z.js +206 -0
  177. package/dist/bundle/source-DGFTA2TN.js +42 -0
  178. package/dist/bundle/sqlite-runtime-R7QFWFE7.js +19 -0
  179. package/dist/bundle/state-DIJ5YUOE.js +35 -0
  180. package/dist/bundle/store-6WFWW7EC.js +294 -0
  181. package/dist/bundle/store-BPNIM4BF.js +32 -0
  182. package/dist/bundle/store-MYTYDV6A.js +177 -0
  183. package/dist/bundle/store-maintenance-command-B5TMKFMG.js +68 -0
  184. package/dist/bundle/writer-GP7VIMAU.js +44 -0
  185. package/dist/commands/account.d.ts +3 -0
  186. package/dist/commands/account.d.ts.map +1 -0
  187. package/dist/commands/account.js +86 -0
  188. package/dist/commands/account.js.map +1 -0
  189. package/dist/commands/api.d.ts +3 -0
  190. package/dist/commands/api.d.ts.map +1 -0
  191. package/dist/commands/api.js +224 -0
  192. package/dist/commands/api.js.map +1 -0
  193. package/dist/commands/comments.d.ts +3 -0
  194. package/dist/commands/comments.d.ts.map +1 -0
  195. package/dist/commands/comments.js +114 -0
  196. package/dist/commands/comments.js.map +1 -0
  197. package/dist/commands/crm-shared.d.ts +8 -0
  198. package/dist/commands/crm-shared.d.ts.map +1 -0
  199. package/dist/commands/crm-shared.js +111 -0
  200. package/dist/commands/crm-shared.js.map +1 -0
  201. package/dist/commands/schedule.d.ts +3 -0
  202. package/dist/commands/schedule.d.ts.map +1 -0
  203. package/dist/commands/schedule.js +9 -0
  204. package/dist/commands/schedule.js.map +1 -0
  205. package/dist/commands/session.d.ts +18 -0
  206. package/dist/commands/session.d.ts.map +1 -0
  207. package/dist/commands/session.js +265 -0
  208. package/dist/commands/session.js.map +1 -0
  209. package/dist/commands/write.d.ts +14 -0
  210. package/dist/commands/write.d.ts.map +1 -0
  211. package/dist/commands/write.js +36 -0
  212. package/dist/commands/write.js.map +1 -0
  213. package/dist/config.d.ts +4 -0
  214. package/dist/config.d.ts.map +1 -0
  215. package/dist/config.js +29 -0
  216. package/dist/config.js.map +1 -0
  217. package/dist/context.d.ts +62 -0
  218. package/dist/context.d.ts.map +1 -0
  219. package/dist/context.js +97 -0
  220. package/dist/context.js.map +1 -0
  221. package/dist/crm/activities.d.ts +32 -0
  222. package/dist/crm/activities.d.ts.map +1 -0
  223. package/dist/crm/activities.js +196 -0
  224. package/dist/crm/activities.js.map +1 -0
  225. package/dist/crm/records.d.ts +20 -0
  226. package/dist/crm/records.d.ts.map +1 -0
  227. package/dist/crm/records.js +175 -0
  228. package/dist/crm/records.js.map +1 -0
  229. package/dist/crm/source.d.ts +41 -0
  230. package/dist/crm/source.d.ts.map +1 -0
  231. package/dist/crm/source.js +673 -0
  232. package/dist/crm/source.js.map +1 -0
  233. package/dist/crm/writer.d.ts +14 -0
  234. package/dist/crm/writer.d.ts.map +1 -0
  235. package/dist/crm/writer.js +247 -0
  236. package/dist/crm/writer.js.map +1 -0
  237. package/dist/identity.d.ts +7 -0
  238. package/dist/identity.d.ts.map +1 -0
  239. package/dist/identity.js +33 -0
  240. package/dist/identity.js.map +1 -0
  241. package/dist/index.d.ts +3 -0
  242. package/dist/index.d.ts.map +1 -0
  243. package/dist/index.js +3 -0
  244. package/dist/index.js.map +1 -0
  245. package/dist/program.d.ts +6 -0
  246. package/dist/program.d.ts.map +1 -0
  247. package/dist/program.js +91 -0
  248. package/dist/program.js.map +1 -0
  249. package/dist/reasons.d.ts +10 -0
  250. package/dist/reasons.d.ts.map +1 -0
  251. package/dist/reasons.js +35 -0
  252. package/dist/reasons.js.map +1 -0
  253. package/dist/sample/comments.d.ts +61 -0
  254. package/dist/sample/comments.d.ts.map +1 -0
  255. package/dist/sample/comments.js +39 -0
  256. package/dist/sample/comments.js.map +1 -0
  257. package/dist/sample/records.d.ts +16 -0
  258. package/dist/sample/records.d.ts.map +1 -0
  259. package/dist/sample/records.js +22 -0
  260. package/dist/sample/records.js.map +1 -0
  261. package/dist/sample/transport.d.ts +42 -0
  262. package/dist/sample/transport.d.ts.map +1 -0
  263. package/dist/sample/transport.js +153 -0
  264. package/dist/sample/transport.js.map +1 -0
  265. package/dist/setup/flow.d.ts +2 -0
  266. package/dist/setup/flow.d.ts.map +1 -0
  267. package/dist/setup/flow.js +127 -0
  268. package/dist/setup/flow.js.map +1 -0
  269. package/dist/setup/texts.en.json +25 -0
  270. package/dist/setup/texts.es.json +25 -0
  271. package/dist/setup/texts.ru.json +25 -0
  272. package/dist/store.d.ts +15 -0
  273. package/dist/store.d.ts.map +1 -0
  274. package/dist/store.js +16 -0
  275. package/dist/store.js.map +1 -0
  276. package/dist/version.d.ts +2 -0
  277. package/dist/version.d.ts.map +1 -0
  278. package/dist/version.js +2 -0
  279. package/dist/version.js.map +1 -0
  280. package/dist/wcat.d.ts +3 -0
  281. package/dist/wcat.d.ts.map +1 -0
  282. package/dist/wcat.js +4 -0
  283. package/dist/wcat.js.map +1 -0
  284. package/dist/whoami.d.ts +24 -0
  285. package/dist/whoami.d.ts.map +1 -0
  286. package/dist/whoami.js +33 -0
  287. package/dist/whoami.js.map +1 -0
  288. package/package.json +85 -4
  289. package/skills/amo-cli/SKILL.md +116 -0
  290. package/skills/amo-cli/references/mcp.md +38 -0
  291. package/skills/amo-cli/references/output.md +42 -0
  292. package/skills/amo-cli/references/reading.md +77 -0
  293. package/skills/amo-cli/references/setup.md +59 -0
  294. package/skills/amo-cli/references/writing.md +85 -0
@@ -0,0 +1,604 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ createRenderer,
5
+ fieldsOf,
6
+ processStreams,
7
+ projectFields
8
+ } from "./chunk-DJD7TBYG.js";
9
+ import {
10
+ COMPACT_FLAG
11
+ } from "./chunk-AUBB72VF.js";
12
+ import {
13
+ CliError,
14
+ singleLine
15
+ } from "./chunk-SZ2V62HB.js";
16
+ import {
17
+ __name
18
+ } from "./chunk-ZVVMGPBJ.js";
19
+
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/sends/permissions.js
21
+ var LEVELS = ["deny", "readonly", "ask", "allow"];
22
+ var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
23
+ var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
24
+ var DEFAULT_PERMISSIONS = {
25
+ // Owner, 2026-11-14: deleting a message does not ask; a profile that wants the question sets `ask`.
26
+ "messages.delete": "allow",
27
+ "account.sessions.end": "ask",
28
+ "bot.messages.delete": "allow",
29
+ "topics.enable": "ask",
30
+ "topics.delete": "ask",
31
+ "chats.delete": "ask",
32
+ "chats.clear": "ask",
33
+ // Owner, 2026-11-14 (replaces NEED-568): a rule the owner enabled may send; `deny` stops every automatic reply.
34
+ "replies.send": "allow",
35
+ // NEED-1662: an agent that changes settings, schedules or recipients could lift its own limits; the owner opts in.
36
+ "mcp.authority": "deny",
37
+ // NEED-1663: writes no level stopped before, so MCP could not offer them; over MCP `ask` goes ahead.
38
+ "store.backup": "ask",
39
+ "store.restore": "ask",
40
+ "store.migrate": "ask",
41
+ "store.repair": "ask",
42
+ "store.reset": "ask",
43
+ "store.import": "ask",
44
+ "store.clear": "ask",
45
+ "store.decrypt": "ask",
46
+ "store.copies.delete": "ask",
47
+ "store.recover.run": "ask",
48
+ "server.start": "ask",
49
+ "server.stop": "ask",
50
+ "server.restart": "ask",
51
+ "models.download": "ask",
52
+ // NEED-2357.f: many MCP clients (ChatGPT) cannot answer a question, and a switch deletes nothing; kept as a key so a
53
+ // profile can still deny it.
54
+ "models.set": "allow",
55
+ "models.add": "ask",
56
+ "images.models.download": "ask",
57
+ "schedule.run": "ask",
58
+ "schedule.exec": "ask",
59
+ "doctor.reports.create": "ask",
60
+ // A meeting changed on the service reaches its invitees: asked first, as zoom's `remote-meetings` was.
61
+ "meetings.create": "ask",
62
+ "meetings.update": "ask",
63
+ "meetings.cancel": "ask"
64
+ };
65
+ var KEYED_UNDER_HOUSEKEEPING = new Set(Object.keys(DEFAULT_PERMISSIONS).filter((key) => /^(store|server|models|images|schedule|doctor)\./.test(key)));
66
+ var AUTHORITY_KEY = "mcp.authority";
67
+ var authorityAllowed = /* @__PURE__ */ __name((levels) => {
68
+ const { level } = levelFor(levels, AUTHORITY_KEY);
69
+ return level === "allow" || level === "ask";
70
+ }, "authorityAllowed");
71
+ var BOT_API_KEY = "bot.api";
72
+ var isBotApi = /* @__PURE__ */ __name((path) => path[0] === "bot" && path[1] === "api", "isBotApi");
73
+ var botApiAllowed = /* @__PURE__ */ __name((levels) => {
74
+ const { level } = levelFor(levels, BOT_API_KEY, { ...DEFAULT_PERMISSIONS, [BOT_API_KEY]: "deny" });
75
+ return level === "allow" || level === "ask";
76
+ }, "botApiAllowed");
77
+ var RESOURCES = [
78
+ "messages",
79
+ "drafts",
80
+ "reactions",
81
+ "polls",
82
+ "topics",
83
+ "chats",
84
+ "contacts",
85
+ "account",
86
+ "bot",
87
+ "conversations",
88
+ "tags",
89
+ "mentions",
90
+ "search",
91
+ "searches",
92
+ "tasks",
93
+ "replies",
94
+ "attachments",
95
+ "stats",
96
+ "store",
97
+ "metadata",
98
+ "mcp",
99
+ "server",
100
+ "models",
101
+ "schedule",
102
+ "doctor",
103
+ "images"
104
+ ];
105
+ var layerPermissions = /* @__PURE__ */ __name((layers) => {
106
+ const levels = {};
107
+ const sources = {};
108
+ for (const [from, layer] of layers) {
109
+ const nearer = Object.keys(levels);
110
+ for (const [key, level] of Object.entries(layer ?? {})) {
111
+ if (nearer.some((named2) => key === named2 || key.startsWith(`${named2}.`)))
112
+ continue;
113
+ levels[key] = level;
114
+ sources[key] = from;
115
+ }
116
+ }
117
+ return { levels, sources };
118
+ }, "layerPermissions");
119
+ var CEILING_KEY = "*";
120
+ var STORE_ONLY_KEYS = /* @__PURE__ */ new Set([
121
+ "attachments.extract",
122
+ "conversations.embeddings",
123
+ "conversations.links",
124
+ "messages.server-search",
125
+ "messages.sync-first",
126
+ "metadata.sync",
127
+ "stats.contacts.top.sync-first",
128
+ "stats.messages.counters.sync",
129
+ "stats.messages.show.sync-first",
130
+ "stats.messages.top.sync-first",
131
+ "store.gaps.repair"
132
+ ]);
133
+ var FETCH_KEYS = new Set([...STORE_ONLY_KEYS].filter((key) => !["attachments.extract", "conversations.embeddings", "conversations.links"].includes(key)));
134
+ var fetchesUnder = /* @__PURE__ */ __name((level, key) => level === "readonly" && FETCH_KEYS.has(key), "fetchesUnder");
135
+ var fetchesAt = /* @__PURE__ */ __name((level) => level === "allow" || level === "readonly", "fetchesAt");
136
+ var stops = /* @__PURE__ */ __name((level, key) => level === "deny" || level === "readonly" && !FETCH_KEYS.has(key), "stops");
137
+ var ALLOWED = { level: "allow", key: null };
138
+ var ORDER = { deny: 0, readonly: 1, ask: 2, allow: 3 };
139
+ var nearest = /* @__PURE__ */ __name((levels, key) => {
140
+ for (let parts = key.split("."); parts.length > 0; parts = parts.slice(0, -1)) {
141
+ const named2 = parts.join(".");
142
+ const level = levels[named2];
143
+ if (level)
144
+ return { level, key: named2, depth: parts.length };
145
+ }
146
+ return void 0;
147
+ }, "nearest");
148
+ var levelFor = /* @__PURE__ */ __name((permissions, key, defaults = DEFAULT_PERMISSIONS) => {
149
+ const found = profileLevel(permissions, key, defaults);
150
+ const ceiling = permissions[CEILING_KEY];
151
+ return ceiling && ORDER[ceiling] < ORDER[found.level] ? { level: ceiling, key: CEILING_KEY } : found;
152
+ }, "levelFor");
153
+ var profileLevel = /* @__PURE__ */ __name((permissions, key, defaults) => {
154
+ const own = nearest(permissions, key);
155
+ const builtIn = nearest(defaults, key);
156
+ if (!builtIn || own && own.depth >= builtIn.depth)
157
+ return own ? { level: own.level, key: own.key } : ALLOWED;
158
+ if (!own || ORDER[builtIn.level] <= ORDER[own.level])
159
+ return { level: builtIn.level, key: builtIn.key };
160
+ return { level: own.level, key: own.key };
161
+ }, "profileLevel");
162
+ var CHAT_KEYS = {
163
+ settings: "chats.update",
164
+ "requests.accept": "chats.requests.confirm",
165
+ "requests.decline": "chats.requests.reject",
166
+ "link.create": "chats.links.create",
167
+ "link.reset": "chats.links.reset",
168
+ "link.revoke": "chats.links.remove",
169
+ "link.update": "chats.links.update"
170
+ };
171
+ var ACCOUNT_KEYS = {
172
+ "contact-add": "contacts.add",
173
+ "contact-remove": "contacts.remove",
174
+ "contact-import": "contacts.import",
175
+ "contact-rename": "contacts.rename",
176
+ "contact-block": "contacts.block",
177
+ "contact-unblock": "contacts.unblock",
178
+ profile: "account.update",
179
+ "folder-create": "chats.folders.create",
180
+ "folder-update": "chats.folders.update",
181
+ "folder-delete": "chats.folders.delete",
182
+ "folder-order": "chats.folders.order",
183
+ "folder-join": "chats.folders.join",
184
+ "sessions-end": "account.sessions.end",
185
+ "chat-mute": "chats.mute",
186
+ "chat-unmute": "chats.unmute",
187
+ "chat-archive": "chats.archive",
188
+ "chat-unarchive": "chats.unarchive",
189
+ "chat-pin": "chats.pin",
190
+ "chat-unpin": "chats.unpin",
191
+ "chat-mark-unread": "chats.mark-unread",
192
+ "message-star": "messages.star",
193
+ "message-unstar": "messages.unstar",
194
+ // A mail CLI names its own key on every write; these only answer `keyForWrite` when one is left out.
195
+ "message-flag": "messages.update",
196
+ "message-move": "messages.move",
197
+ "message-copy": "messages.copy",
198
+ "message-delete": "messages.trash",
199
+ "message-restore": "messages.restore",
200
+ privacy: "account.privacy.set"
201
+ };
202
+ var KIND_KEYS = {
203
+ message: "messages.send",
204
+ forward: "messages.forward",
205
+ edit: "messages.edit",
206
+ pin: "messages.pin",
207
+ reaction: "reactions",
208
+ read: "chats.mark-read",
209
+ delete: "messages.delete"
210
+ };
211
+ var keyForWrite = /* @__PURE__ */ __name((kind, action) => {
212
+ if (kind === "chat")
213
+ return CHAT_KEYS[action] ?? `chats.${action ?? "update"}`;
214
+ if (kind === "account") {
215
+ const key = ACCOUNT_KEYS[action];
216
+ if (!key)
217
+ throw new Error(`an account change without a known action: ${action}`);
218
+ return key;
219
+ }
220
+ return KIND_KEYS[kind];
221
+ }, "keyForWrite");
222
+ var writeOfKey = /* @__PURE__ */ __name((key) => {
223
+ const account = Object.entries(ACCOUNT_KEYS).find(([, named2]) => named2 === key)?.[0];
224
+ if (account)
225
+ return { kind: "account", action: account };
226
+ const kind = Object.entries(KIND_KEYS).find(([, named2]) => named2 === key || key.startsWith(`${named2}.`))?.[0];
227
+ if (kind)
228
+ return { kind };
229
+ if (key === "messages.unpin")
230
+ return { kind: "pin" };
231
+ if (key.startsWith("chats.")) {
232
+ const action = Object.entries(CHAT_KEYS).find(([, named2]) => named2 === key)?.[0] ?? key.slice("chats.".length);
233
+ return { kind: "chat", action };
234
+ }
235
+ return {};
236
+ }, "writeOfKey");
237
+ var NAMED_WRITE_KEYS = [
238
+ "drafts",
239
+ "store.gaps.repair",
240
+ "messages.sync-first",
241
+ "messages.server-search",
242
+ "messages.press",
243
+ "chats.start",
244
+ "chats.app",
245
+ "stats.messages.counters.sync",
246
+ "stats.messages.show.sync-first",
247
+ "stats.messages.top.sync-first",
248
+ "stats.contacts.top.sync-first",
249
+ "account.sessions.list",
250
+ "attachments.extract",
251
+ "attachments.move",
252
+ "attachments.update",
253
+ "bot.callbacks.answer",
254
+ "bot.chats.action",
255
+ "bot.chats.admins.add",
256
+ "bot.chats.admins.remove",
257
+ "bot.chats.leave",
258
+ "bot.chats.members.remove",
259
+ "bot.chats.moderate",
260
+ "bot.messages.delete",
261
+ "bot.messages.edit",
262
+ "bot.messages.pin",
263
+ "bot.messages.send",
264
+ "bot.messages.unpin",
265
+ "chats.admins.add",
266
+ "chats.admins.remove",
267
+ "chats.links.create",
268
+ "chats.links.reset",
269
+ "chats.links.remove",
270
+ "chats.links.update",
271
+ "chats.members.add",
272
+ "chats.members.remove",
273
+ "chats.moderate",
274
+ "conversations.embeddings",
275
+ "conversations.links",
276
+ "polls.close",
277
+ "polls.create",
278
+ "polls.vote",
279
+ "searches.clear",
280
+ "searches.create",
281
+ "searches.delete",
282
+ "contacts.aliases.set",
283
+ "contacts.aliases.remove",
284
+ "contacts.notes.add",
285
+ "contacts.notes.edit",
286
+ "contacts.notes.remove",
287
+ "tags.rebuild",
288
+ "metadata.sync",
289
+ "mentions.rebuild",
290
+ "mentions.confirm",
291
+ "mentions.reject",
292
+ "tags.add",
293
+ "tags.remove",
294
+ "tasks.acknowledge",
295
+ "tasks.add",
296
+ "tasks.claim",
297
+ "tasks.close",
298
+ "tasks.duplicates.defer",
299
+ "tasks.duplicates.reject",
300
+ "tasks.link",
301
+ "tasks.merge",
302
+ "tasks.update",
303
+ "tasks.release",
304
+ "tasks.scan",
305
+ "tasks.unmerge",
306
+ "topics.create",
307
+ "topics.edit",
308
+ "topics.enable"
309
+ ];
310
+ var WRITE_KEYS = [
311
+ .../* @__PURE__ */ new Set([
312
+ ...NAMED_WRITE_KEYS,
313
+ ...Object.keys(DEFAULT_PERMISSIONS),
314
+ ...Object.values(KIND_KEYS),
315
+ ...Object.values(ACCOUNT_KEYS),
316
+ ...Object.values(CHAT_KEYS)
317
+ ])
318
+ ];
319
+ var HOUSEKEEPING = /* @__PURE__ */ new Set([
320
+ "help",
321
+ "guide",
322
+ "config",
323
+ "session",
324
+ "doctor",
325
+ "commands",
326
+ "complete",
327
+ "upgrade",
328
+ "skill",
329
+ "models",
330
+ "server",
331
+ // What a schedule runs is checked by its own key when it runs; an agent runs read-only.
332
+ "schedule",
333
+ "runs",
334
+ "sends",
335
+ "recipients",
336
+ "flood",
337
+ "mcp",
338
+ // Its commands read the rules or flip the pause switch; what a rule sends is checked as `replies.send`.
339
+ "replies"
340
+ ]);
341
+ var BOT_HOUSEKEEPING = /* @__PURE__ */ new Set(["auth", "list", "sends", "recipients", "mcp"]);
342
+ var STORE_MAINTENANCE = /* @__PURE__ */ new Set(["info", "check", "copies"]);
343
+ var SHOW_MESSAGES = /* @__PURE__ */ new Set(["inbox", "review", "watch", "serve", "store", "conversations", "projects"]);
344
+ var readKeysForCommand = /* @__PURE__ */ __name((path) => {
345
+ if (path[0] === "bot")
346
+ return readKeysForCommand(path.slice(1)).map((key2) => `bot.${key2}`);
347
+ const key = keyForCommand(path);
348
+ if (!key)
349
+ return [];
350
+ if (path[0] === "attachments" && path[1] === "download")
351
+ return [key, "messages", "chats"];
352
+ if (path[0] === "attachments" && (path[1] === "extract" || path[1] === "show"))
353
+ return [key, "messages"];
354
+ if (path[0] === "store" && path[1] === "gaps" && path[2] === "repair")
355
+ return [key, "messages"];
356
+ if (path[0] === "store" && ["reset", "clear", "decrypt"].includes(path[1] ?? ""))
357
+ return [key, "messages"];
358
+ if (key === "store.recover.run")
359
+ return [key, "messages"];
360
+ if (path[0] === "search") {
361
+ if (path[1] === "notes")
362
+ return [key];
363
+ if (path[1] === "topics")
364
+ return [key, "topics"];
365
+ if (path[1] === "conversations")
366
+ return [key, "messages", "conversations"];
367
+ return [key, "messages"];
368
+ }
369
+ if (path[0] !== "stats")
370
+ return [key];
371
+ const resource = path[1] === "charts" ? "chats" : path[1];
372
+ return [
373
+ .../* @__PURE__ */ new Set([
374
+ key,
375
+ "messages",
376
+ ...["chats", "contacts", "tasks"].includes(resource ?? "") ? [resource] : []
377
+ ])
378
+ ];
379
+ }, "readKeysForCommand");
380
+ var keyForCommand = /* @__PURE__ */ __name((path) => {
381
+ if (path.length === 0)
382
+ return null;
383
+ const [top, next] = path;
384
+ if (top === "bot") {
385
+ if (next === void 0 || BOT_HOUSEKEEPING.has(next))
386
+ return null;
387
+ const inner = keyForCommand(path.slice(1));
388
+ return `bot.${inner ?? path.slice(1).join(".")}`;
389
+ }
390
+ if (KEYED_UNDER_HOUSEKEEPING.has(path.join(".")))
391
+ return path.join(".");
392
+ if (top === void 0 || HOUSEKEEPING.has(top) || top === "search" && next === "runs")
393
+ return null;
394
+ if (top === "images" && next === "models")
395
+ return null;
396
+ if (top === "attachments" && (next === "check" || next === "jobs"))
397
+ return null;
398
+ if (top === "attachments" && next === "download")
399
+ return "messages";
400
+ if (top === "store" && next !== void 0 && STORE_MAINTENANCE.has(next))
401
+ return null;
402
+ if (top === "conversations" && next === "links")
403
+ return path[2] === "rebuild" ? "conversations.links.rebuild" : "conversations.links";
404
+ if (top === "conversations" && (next === "embeddings" || next === "embed") || top === "images" && next === "embed" || top === "conversations" && next === "rebuild")
405
+ return "conversations.embeddings";
406
+ if (top === "attachments" && next === "list" || top === "chats" && next === "documents")
407
+ return "messages";
408
+ if (top === "mentions")
409
+ return next === "rebuild" || next === "confirm" || next === "reject" ? `mentions.${next}` : "messages";
410
+ if (top === "store" && (next === "gaps" || next === "jobs"))
411
+ return path.join(".");
412
+ if (SHOW_MESSAGES.has(top) || top === "contacts" && (next === "context" || next === "prepare" || next === "events"))
413
+ return "messages";
414
+ if (RESOURCES.includes(top))
415
+ return path.join(".");
416
+ return void 0;
417
+ }, "keyForCommand");
418
+ var RESOURCE_KEY = new RegExp(`^(${RESOURCES.join("|")})(\\.[a-z][a-z-]*)*$`);
419
+ var COMMAND_PATH_KEY = /^[a-z][a-z-]*(\.[a-zA-Z][a-zA-Z-]*)*$/;
420
+ var permissionOverrides = /* @__PURE__ */ __name((entries = [], shape = RESOURCE_KEY) => {
421
+ const levels = {};
422
+ const example = shape === RESOURCE_KEY ? "messages.send=allow" : "api=readonly";
423
+ for (const entry of entries) {
424
+ const [key = "", level = "", extra] = entry.split("=");
425
+ if (!shape.test(key) || !LEVELS.includes(level) || extra !== void 0)
426
+ throw new CliError("validation_error", `--permission takes a command path and level, e.g. ${example} (deny, readonly, ask, allow)`);
427
+ levels[key] = level;
428
+ }
429
+ return levels;
430
+ }, "permissionOverrides");
431
+ var assertOverridesTighten = /* @__PURE__ */ __name((overrides, profile, defaults = DEFAULT_PERMISSIONS) => {
432
+ for (const [key, level] of Object.entries(overrides)) {
433
+ const under = Object.keys(profile).filter((named2) => named2.startsWith(`${key}.`));
434
+ const lifted = [key, ...under].find((named2) => ORDER[level] > ORDER[levelFor(profile, named2, defaults).level]);
435
+ if (lifted !== void 0)
436
+ 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 });
437
+ }
438
+ }, "assertOverridesTighten");
439
+ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
440
+ for (const permission of ["stats.chats.retention", "chats"]) {
441
+ if (levelFor(permissions, permission).level === "deny")
442
+ throw new CliError("permission_error", `profile denies ${permission}`, { permission });
443
+ }
444
+ }, "assertRetentionEvidenceRead");
445
+
446
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
447
+ var named = /* @__PURE__ */ __name((work) => {
448
+ try {
449
+ return work();
450
+ } catch (error) {
451
+ if (error instanceof CliError && error.code === "validation_error")
452
+ throw new CliError("validation_error", "--json takes comma-separated field paths, for example --json=id,text", {
453
+ param: "--json"
454
+ });
455
+ throw error;
456
+ }
457
+ }, "named");
458
+ var fieldsOf2 = /* @__PURE__ */ __name((value) => named(() => fieldsOf(value)), "fieldsOf");
459
+ var projectCommands = /* @__PURE__ */ __name((commands, fields) => commands.map((command) => ({
460
+ ...projectFields(command, fields),
461
+ path: command.path,
462
+ name: command.name,
463
+ origin: command.origin,
464
+ effects: command.effects,
465
+ commands: projectCommands(command.commands, fields)
466
+ })), "projectCommands");
467
+ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
468
+ if (value && typeof value === "object" && "cli" in value && typeof value.cli === "string" && "contract" in value && "commands" in value && Array.isArray(value.commands))
469
+ return { ...value, commands: projectCommands(value.commands, fields) };
470
+ return projectFields(value, fields);
471
+ }), "projectFields");
472
+
473
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/output-detail.js
474
+ var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
475
+ var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
476
+ var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
477
+ var isRecord = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null, "isRecord");
478
+ var isSnakeHit = /* @__PURE__ */ __name((value) => isRecord(value) && typeof value.ref === "string" && typeof value.excerpt === "string", "isSnakeHit");
479
+ var isHit = /* @__PURE__ */ __name((value) => isSnakeHit(value) || isRecord(value) && typeof value.locator === "string" && typeof value.text === "string", "isHit");
480
+ var picked = /* @__PURE__ */ __name((hit, keys) => Object.fromEntries(keys.flatMap((key) => hit[key] === void 0 || hit[key] === null ? [] : [[key, hit[key]]])), "picked");
481
+ var shaped = /* @__PURE__ */ __name((hit, detail) => {
482
+ if (isSnakeHit(hit))
483
+ return detail === "brief" ? picked(hit, SNAKE_BRIEF) : hit;
484
+ if (detail === "brief")
485
+ return picked(hit, BRIEF);
486
+ const { text, providerMetadata, ...rest } = hit;
487
+ for (const key of RARELY_SET)
488
+ if (rest[key] === null)
489
+ delete rest[key];
490
+ const metadata = rest.email ? void 0 : providerMetadata;
491
+ return {
492
+ ...rest,
493
+ ...typeof rest.excerpt === "string" ? {} : { text },
494
+ ...metadata === void 0 ? {} : { providerMetadata: metadata }
495
+ };
496
+ }, "shaped");
497
+ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
498
+ if (detail === "full")
499
+ return value;
500
+ if (Array.isArray(value))
501
+ return value.map((item) => isHit(item) ? shaped(item, detail) : item);
502
+ if (isHit(value))
503
+ return shaped(value, detail);
504
+ if (typeof value === "object" && value !== null && Array.isArray(value.items))
505
+ return { ...value, items: atDetail(value.items, detail) };
506
+ return value;
507
+ }, "atDetail");
508
+
509
+ // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.113.0_commander@15.0.0_esbuild@0.28.2_typ_9a2e508bb6f63e7e29f0d776540ec8fd/node_modules/@wirecat/cli-core/dist/output.js
510
+ var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
511
+ const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
512
+ if (other)
513
+ throw new CliError("validation_error", `${COMPACT_FLAG} and ${other} ask for different output \u2014 pick one`, {
514
+ reason: "output.conflict",
515
+ param: COMPACT_FLAG
516
+ });
517
+ }, "refuseCompact");
518
+ var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = processStreams, tty, color, fields, hitDetail, env = process.env, capture, compact } = {}) => {
519
+ if (compact)
520
+ refuseCompact({ json, jsonl, fields, hitDetail });
521
+ const interactive = tty ?? process.stdout.isTTY === true;
522
+ const format = jsonl ? "jsonl" : json || compact || !interactive ? "json" : "pretty";
523
+ const painted = format === "pretty" && (color ?? (env.NO_COLOR === void 0 && env.TERM !== "dumb" && !env.CI));
524
+ const printing = createRenderer({ format, color: painted, streams });
525
+ const rendered = capture ? { ...printing, result: capture, stream: /* @__PURE__ */ __name((items) => capture([...items]), "stream") } : printing;
526
+ const level = hitDetail ?? (fields === void 0 ? "default" : "full");
527
+ const standard = format === "pretty" ? rendered : {
528
+ ...rendered,
529
+ result: /* @__PURE__ */ __name((value) => rendered.result(atDetail(value, level)), "result"),
530
+ stream: /* @__PURE__ */ __name((items) => rendered.stream(atDetail([...items], level)), "stream")
531
+ };
532
+ const created = standard;
533
+ const paths = fields === void 0 ? void 0 : fieldsOf2(fields);
534
+ const renderer = format === "pretty" ? oneLineFields(created) : paths ? {
535
+ ...created,
536
+ result: /* @__PURE__ */ __name((value) => created.result(projectFields2(value, paths)), "result"),
537
+ stream: /* @__PURE__ */ __name((items) => created.stream([...items].map((item) => projectFields2(item, paths))), "stream")
538
+ } : created;
539
+ return {
540
+ format,
541
+ color: painted,
542
+ streams,
543
+ renderer: quiet ? silence(renderer) : renderer,
544
+ ...compact ? { compact: true, full: hitDetail === "full" } : {}
545
+ };
546
+ }, "resolveOutput");
547
+ var MULTI_LINE = /* @__PURE__ */ new Set(["text", "description"]);
548
+ var oneLineFields = /* @__PURE__ */ __name((renderer) => ({
549
+ ...renderer,
550
+ result: /* @__PURE__ */ __name((value) => renderer.result(oneLine(value)), "result"),
551
+ stream: /* @__PURE__ */ __name((items) => renderer.stream([...items].map((item) => oneLine(item))), "stream")
552
+ }), "oneLineFields");
553
+ var oneLine = /* @__PURE__ */ __name((value, key) => {
554
+ if (typeof value === "string")
555
+ return key !== void 0 && MULTI_LINE.has(key) ? value : singleLine(value);
556
+ if (Array.isArray(value))
557
+ return value.map((item) => oneLine(item, key));
558
+ if (value !== null && typeof value === "object" && Object.getPrototypeOf(value) === Object.prototype) {
559
+ return Object.fromEntries(Object.entries(value).map(([field, item]) => [field, oneLine(item, field)]));
560
+ }
561
+ return value;
562
+ }, "oneLine");
563
+ var silence = /* @__PURE__ */ __name((renderer) => ({
564
+ ...renderer,
565
+ note: /* @__PURE__ */ __name(() => {
566
+ }, "note"),
567
+ success: /* @__PURE__ */ __name(() => {
568
+ }, "success"),
569
+ warn: /* @__PURE__ */ __name(() => {
570
+ }, "warn")
571
+ }), "silence");
572
+
573
+ export {
574
+ LEVELS,
575
+ skipFlagFor,
576
+ DEFAULT_PERMISSIONS,
577
+ KEYED_UNDER_HOUSEKEEPING,
578
+ AUTHORITY_KEY,
579
+ authorityAllowed,
580
+ BOT_API_KEY,
581
+ isBotApi,
582
+ botApiAllowed,
583
+ RESOURCES,
584
+ layerPermissions,
585
+ CEILING_KEY,
586
+ STORE_ONLY_KEYS,
587
+ fetchesUnder,
588
+ fetchesAt,
589
+ stops,
590
+ levelFor,
591
+ keyForWrite,
592
+ writeOfKey,
593
+ WRITE_KEYS,
594
+ readKeysForCommand,
595
+ keyForCommand,
596
+ RESOURCE_KEY,
597
+ COMMAND_PATH_KEY,
598
+ permissionOverrides,
599
+ assertOverridesTighten,
600
+ assertRetentionEvidenceRead,
601
+ fieldsOf2 as fieldsOf,
602
+ projectFields2 as projectFields,
603
+ resolveOutput
604
+ };