@wirecat/slack-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 (295) hide show
  1. package/CHANGELOG.md +104 -0
  2. package/LICENSE +204 -0
  3. package/README.md +131 -2
  4. package/contracts/wirecat.json +5526 -0
  5. package/dist/bin/slack.d.ts +3 -0
  6. package/dist/bin/slack.d.ts.map +1 -0
  7. package/dist/bin/slack.js +40 -0
  8. package/dist/bin/slack.js.map +1 -0
  9. package/dist/bundle/agent-GOFXFUQP.js +37 -0
  10. package/dist/bundle/all-profiles-4C7VOT2D.js +320 -0
  11. package/dist/bundle/anthropic-ZD66TC5S.js +91 -0
  12. package/dist/bundle/app-server-QNCVEDMY.js +249 -0
  13. package/dist/bundle/bun-2FULBYXS.js +169 -0
  14. package/dist/bundle/bun-sqlite-PMS26ZUT.js +76 -0
  15. package/dist/bundle/chunk-2LB5BWC4.js +362 -0
  16. package/dist/bundle/chunk-2ZEYRHZV.js +18 -0
  17. package/dist/bundle/chunk-3IJ3THPV.js +7 -0
  18. package/dist/bundle/chunk-4HSVEQ3R.js +29 -0
  19. package/dist/bundle/chunk-4QPMHVM5.js +1007 -0
  20. package/dist/bundle/chunk-53LIHHXC.js +16 -0
  21. package/dist/bundle/chunk-5F36CXDM.js +794 -0
  22. package/dist/bundle/chunk-5LPREGD3.js +12636 -0
  23. package/dist/bundle/chunk-5R5YRYIP.js +1148 -0
  24. package/dist/bundle/chunk-5RSQTG7L.js +388 -0
  25. package/dist/bundle/chunk-5SXZETJF.js +170 -0
  26. package/dist/bundle/chunk-6PDQP5RM.js +50 -0
  27. package/dist/bundle/chunk-75BLNPN3.js +1197 -0
  28. package/dist/bundle/chunk-7BEO72EN.js +131 -0
  29. package/dist/bundle/chunk-7F6RNAIM.js +230 -0
  30. package/dist/bundle/chunk-AG7FP64Z.js +77 -0
  31. package/dist/bundle/chunk-B7ZM3FCB.js +61 -0
  32. package/dist/bundle/chunk-BRXTN5LJ.js +338 -0
  33. package/dist/bundle/chunk-CABZAU37.js +319 -0
  34. package/dist/bundle/chunk-CCOSG3F2.js +24616 -0
  35. package/dist/bundle/chunk-CDTZSFTN.js +58 -0
  36. package/dist/bundle/chunk-CMZBCWND.js +1246 -0
  37. package/dist/bundle/chunk-CRQEEJNF.js +185 -0
  38. package/dist/bundle/chunk-CWYU4R65.js +358 -0
  39. package/dist/bundle/chunk-CZFR6JQX.js +52 -0
  40. package/dist/bundle/chunk-D72URWJE.js +532 -0
  41. package/dist/bundle/chunk-DFDN6AUB.js +21 -0
  42. package/dist/bundle/chunk-DVHX7R54.js +4072 -0
  43. package/dist/bundle/chunk-DYKOG7QR.js +9596 -0
  44. package/dist/bundle/chunk-ECDI42G6.js +100 -0
  45. package/dist/bundle/chunk-EH6ZEJGT.js +932 -0
  46. package/dist/bundle/chunk-ELY2TLCY.js +259 -0
  47. package/dist/bundle/chunk-ERRVUVKR.js +156 -0
  48. package/dist/bundle/chunk-FBWR4E5D.js +353 -0
  49. package/dist/bundle/chunk-GKS6KL57.js +6848 -0
  50. package/dist/bundle/chunk-H2COZZ55.js +2787 -0
  51. package/dist/bundle/chunk-HGXTEK7R.js +82 -0
  52. package/dist/bundle/chunk-HXLXM7HV.js +726 -0
  53. package/dist/bundle/chunk-IPP4N6HD.js +24 -0
  54. package/dist/bundle/chunk-IWTVR7S7.js +53 -0
  55. package/dist/bundle/chunk-IYJH75D4.js +63 -0
  56. package/dist/bundle/chunk-JCZLRT4Z.js +39 -0
  57. package/dist/bundle/chunk-JGRWMR5H.js +123 -0
  58. package/dist/bundle/chunk-JYRYQJBN.js +633 -0
  59. package/dist/bundle/chunk-KIKLDI74.js +161 -0
  60. package/dist/bundle/chunk-L4WO3XH6.js +2020 -0
  61. package/dist/bundle/chunk-LQDNUAK3.js +274 -0
  62. package/dist/bundle/chunk-LV5ONLQH.js +38 -0
  63. package/dist/bundle/chunk-M27Z23OZ.js +23 -0
  64. package/dist/bundle/chunk-M5XTZHXM.js +142 -0
  65. package/dist/bundle/chunk-MJBEGUIZ.js +76 -0
  66. package/dist/bundle/chunk-N4WOLGIV.js +2333 -0
  67. package/dist/bundle/chunk-N5K4OHPT.js +206 -0
  68. package/dist/bundle/chunk-NYAPUET7.js +108 -0
  69. package/dist/bundle/chunk-P4IFLOIK.js +218 -0
  70. package/dist/bundle/chunk-P6G2QTCD.js +288 -0
  71. package/dist/bundle/chunk-PL5P7UKW.js +25216 -0
  72. package/dist/bundle/chunk-PU7R6XNV.js +80 -0
  73. package/dist/bundle/chunk-QLLBACDR.js +72 -0
  74. package/dist/bundle/chunk-QP7XN5KX.js +407 -0
  75. package/dist/bundle/chunk-QY2F6A3D.js +557 -0
  76. package/dist/bundle/chunk-RLIT7VAZ.js +66 -0
  77. package/dist/bundle/chunk-S4UUN6LD.js +1410 -0
  78. package/dist/bundle/chunk-SKGAKI62.js +86 -0
  79. package/dist/bundle/chunk-SQMZP5MA.js +66653 -0
  80. package/dist/bundle/chunk-UB6NTICY.js +95 -0
  81. package/dist/bundle/chunk-UBHQO5HV.js +778 -0
  82. package/dist/bundle/chunk-UM4RKO24.js +106 -0
  83. package/dist/bundle/chunk-VAHFY732.js +1068 -0
  84. package/dist/bundle/chunk-VGDM4C3F.js +188 -0
  85. package/dist/bundle/chunk-VOUAKCPM.js +41181 -0
  86. package/dist/bundle/chunk-WCCFJ4Q6.js +3736 -0
  87. package/dist/bundle/chunk-WV6EXRDV.js +46 -0
  88. package/dist/bundle/chunk-WVAT5TGY.js +334 -0
  89. package/dist/bundle/chunk-WW76JMKE.js +1243 -0
  90. package/dist/bundle/chunk-XXOMUKC6.js +54 -0
  91. package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
  92. package/dist/bundle/chunk-YDO6RJ2P.js +1337 -0
  93. package/dist/bundle/chunk-ZBCFZCJW.js +388 -0
  94. package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
  95. package/dist/bundle/command-contract-BWGRUY6L.js +37 -0
  96. package/dist/bundle/command-server-entry-BATOWE3Y.js +166 -0
  97. package/dist/bundle/decode-MZQGYXJH.js +297 -0
  98. package/dist/bundle/definitions-3EONB23J.js +8600 -0
  99. package/dist/bundle/dispatch-NYC4ARWX.js +411 -0
  100. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  101. package/dist/bundle/dist-XZ65GRQ6.js +7577 -0
  102. package/dist/bundle/echarts-7OYGL2GW.js +42501 -0
  103. package/dist/bundle/embed-4I25DVKZ.js +38 -0
  104. package/dist/bundle/embedder-YXKQHAZO.js +111 -0
  105. package/dist/bundle/emoji-4LYX3GOS.js +4271 -0
  106. package/dist/bundle/failure-3YOVYZTX.js +25 -0
  107. package/dist/bundle/first-run-2VL2BOV7.js +29 -0
  108. package/dist/bundle/first-screen-C7FIWZL2.js +37 -0
  109. package/dist/bundle/instructions-UMNDHXG2.js +11 -0
  110. package/dist/bundle/mcp-V27RHILF.js +167 -0
  111. package/dist/bundle/meeting-combined-LS6XO4JH.js +24 -0
  112. package/dist/bundle/meeting-model-VIR465CY.js +25 -0
  113. package/dist/bundle/meeting-semantic-H5J3OOF2.js +22 -0
  114. package/dist/bundle/node-JJ3WDCNJ.js +2340 -0
  115. package/dist/bundle/node-PYFPGL4E.js +176 -0
  116. package/dist/bundle/node-TLZSIHIJ.js +21 -0
  117. package/dist/bundle/node-sqlite-LFWPGDVP.js +74 -0
  118. package/dist/bundle/oauth-42VCSIVL.js +20 -0
  119. package/dist/bundle/open-XJ5R5LHC.js +23 -0
  120. package/dist/bundle/openai-RZBLV4HG.js +238 -0
  121. package/dist/bundle/process-DD6H3K7L.js +91 -0
  122. package/dist/bundle/program-33RT6DER.js +35421 -0
  123. package/dist/bundle/prompt-NQRDM5LY.js +17 -0
  124. package/dist/bundle/recognize-EM7H2IZS.js +26 -0
  125. package/dist/bundle/remote-Z6NU6QQA.js +31 -0
  126. package/dist/bundle/rerank-PNPCSPNF.js +52 -0
  127. package/dist/bundle/schemas-JMKNP4U3.js +2765 -0
  128. package/dist/bundle/serve-SQVGX76J.js +199 -0
  129. package/dist/bundle/server-NPJH45FZ.js +212 -0
  130. package/dist/bundle/server-Z4ZMGRAH.js +79 -0
  131. package/dist/bundle/slack.js +184 -0
  132. package/dist/bundle/sqlite-runtime-F3AJGAPN.js +20 -0
  133. package/dist/bundle/state-JT7ZFSXN.js +36 -0
  134. package/dist/bundle/store-FXGMHRF3.js +181 -0
  135. package/dist/bundle/store-J5ZL2USR.js +295 -0
  136. package/dist/bundle/store-maintenance-command-TIHOIKLZ.js +66 -0
  137. package/dist/bundle/surface-NW6T5OR6.js +65 -0
  138. package/dist/commands/api.d.ts +7 -0
  139. package/dist/commands/api.d.ts.map +1 -0
  140. package/dist/commands/api.js +49 -0
  141. package/dist/commands/api.js.map +1 -0
  142. package/dist/commands/comments.d.ts +3 -0
  143. package/dist/commands/comments.d.ts.map +1 -0
  144. package/dist/commands/comments.js +114 -0
  145. package/dist/commands/comments.js.map +1 -0
  146. package/dist/commands/doctor.d.ts +7 -0
  147. package/dist/commands/doctor.d.ts.map +1 -0
  148. package/dist/commands/doctor.js +53 -0
  149. package/dist/commands/doctor.js.map +1 -0
  150. package/dist/commands/session.d.ts +7 -0
  151. package/dist/commands/session.d.ts.map +1 -0
  152. package/dist/commands/session.js +26 -0
  153. package/dist/commands/session.js.map +1 -0
  154. package/dist/config.d.ts +24 -0
  155. package/dist/config.d.ts.map +1 -0
  156. package/dist/config.js +75 -0
  157. package/dist/config.js.map +1 -0
  158. package/dist/context.d.ts +59 -0
  159. package/dist/context.d.ts.map +1 -0
  160. package/dist/context.js +75 -0
  161. package/dist/context.js.map +1 -0
  162. package/dist/generated/definitions.d.ts +3 -0
  163. package/dist/generated/definitions.d.ts.map +1 -0
  164. package/dist/generated/definitions.js +8596 -0
  165. package/dist/generated/definitions.js.map +1 -0
  166. package/dist/generated/emoji.d.ts +2 -0
  167. package/dist/generated/emoji.d.ts.map +1 -0
  168. package/dist/generated/emoji.js +4265 -0
  169. package/dist/generated/emoji.js.map +1 -0
  170. package/dist/generated/manifest.d.ts +6 -0
  171. package/dist/generated/manifest.d.ts.map +1 -0
  172. package/dist/generated/manifest.js +6139 -0
  173. package/dist/generated/manifest.js.map +1 -0
  174. package/dist/generated/schemas.d.ts +631 -0
  175. package/dist/generated/schemas.d.ts.map +1 -0
  176. package/dist/generated/schemas.js +2426 -0
  177. package/dist/generated/schemas.js.map +1 -0
  178. package/dist/generated/types.d.ts +3220 -0
  179. package/dist/generated/types.d.ts.map +1 -0
  180. package/dist/generated/types.js +5 -0
  181. package/dist/generated/types.js.map +1 -0
  182. package/dist/identity.d.ts +29 -0
  183. package/dist/identity.d.ts.map +1 -0
  184. package/dist/identity.js +32 -0
  185. package/dist/identity.js.map +1 -0
  186. package/dist/index.d.ts +3 -0
  187. package/dist/index.d.ts.map +1 -0
  188. package/dist/index.js +3 -0
  189. package/dist/index.js.map +1 -0
  190. package/dist/messenger.d.ts +12 -0
  191. package/dist/messenger.d.ts.map +1 -0
  192. package/dist/messenger.js +184 -0
  193. package/dist/messenger.js.map +1 -0
  194. package/dist/program.d.ts +6 -0
  195. package/dist/program.d.ts.map +1 -0
  196. package/dist/program.js +116 -0
  197. package/dist/program.js.map +1 -0
  198. package/dist/reasons.d.ts +7 -0
  199. package/dist/reasons.d.ts.map +1 -0
  200. package/dist/reasons.js +20 -0
  201. package/dist/reasons.js.map +1 -0
  202. package/dist/sample/comments.d.ts +61 -0
  203. package/dist/sample/comments.d.ts.map +1 -0
  204. package/dist/sample/comments.js +39 -0
  205. package/dist/sample/comments.js.map +1 -0
  206. package/dist/sample/records.d.ts +16 -0
  207. package/dist/sample/records.d.ts.map +1 -0
  208. package/dist/sample/records.js +22 -0
  209. package/dist/sample/records.js.map +1 -0
  210. package/dist/sample/transport.d.ts +42 -0
  211. package/dist/sample/transport.d.ts.map +1 -0
  212. package/dist/sample/transport.js +153 -0
  213. package/dist/sample/transport.js.map +1 -0
  214. package/dist/setup/flow.d.ts +2 -0
  215. package/dist/setup/flow.d.ts.map +1 -0
  216. package/dist/setup/flow.js +83 -0
  217. package/dist/setup/flow.js.map +1 -0
  218. package/dist/setup/guide.d.ts +6 -0
  219. package/dist/setup/guide.d.ts.map +1 -0
  220. package/dist/setup/guide.js +13 -0
  221. package/dist/setup/guide.js.map +1 -0
  222. package/dist/setup/texts.d.ts +24 -0
  223. package/dist/setup/texts.d.ts.map +1 -0
  224. package/dist/setup/texts.js +24 -0
  225. package/dist/setup/texts.js.map +1 -0
  226. package/dist/slack/adapter.d.ts +36 -0
  227. package/dist/slack/adapter.d.ts.map +1 -0
  228. package/dist/slack/adapter.js +551 -0
  229. package/dist/slack/adapter.js.map +1 -0
  230. package/dist/slack/app-manifest.d.ts +25 -0
  231. package/dist/slack/app-manifest.d.ts.map +1 -0
  232. package/dist/slack/app-manifest.js +51 -0
  233. package/dist/slack/app-manifest.js.map +1 -0
  234. package/dist/slack/client.d.ts +45 -0
  235. package/dist/slack/client.d.ts.map +1 -0
  236. package/dist/slack/client.js +236 -0
  237. package/dist/slack/client.js.map +1 -0
  238. package/dist/slack/map.d.ts +429 -0
  239. package/dist/slack/map.d.ts.map +1 -0
  240. package/dist/slack/map.js +406 -0
  241. package/dist/slack/map.js.map +1 -0
  242. package/dist/slack/mrkdwn.d.ts +9 -0
  243. package/dist/slack/mrkdwn.d.ts.map +1 -0
  244. package/dist/slack/mrkdwn.js +56 -0
  245. package/dist/slack/mrkdwn.js.map +1 -0
  246. package/dist/slack/search.d.ts +24 -0
  247. package/dist/slack/search.d.ts.map +1 -0
  248. package/dist/slack/search.js +99 -0
  249. package/dist/slack/search.js.map +1 -0
  250. package/dist/slack/threads.d.ts +28 -0
  251. package/dist/slack/threads.d.ts.map +1 -0
  252. package/dist/slack/threads.js +56 -0
  253. package/dist/slack/threads.js.map +1 -0
  254. package/dist/slack/tokens.d.ts +17 -0
  255. package/dist/slack/tokens.d.ts.map +1 -0
  256. package/dist/slack/tokens.js +27 -0
  257. package/dist/slack/tokens.js.map +1 -0
  258. package/dist/slack/writes.d.ts +43 -0
  259. package/dist/slack/writes.d.ts.map +1 -0
  260. package/dist/slack/writes.js +277 -0
  261. package/dist/slack/writes.js.map +1 -0
  262. package/dist/version.d.ts +2 -0
  263. package/dist/version.d.ts.map +1 -0
  264. package/dist/version.js +2 -0
  265. package/dist/version.js.map +1 -0
  266. package/dist/wcat.d.ts +3 -0
  267. package/dist/wcat.d.ts.map +1 -0
  268. package/dist/wcat.js +4 -0
  269. package/dist/wcat.js.map +1 -0
  270. package/package.json +89 -4
  271. package/skills/slack-cli/SKILL.md +117 -0
  272. package/skills/slack-cli/references/api/api-admin.md +541 -0
  273. package/skills/slack-cli/references/api/api-api.md +13 -0
  274. package/skills/slack-cli/references/api/api-apps.md +78 -0
  275. package/skills/slack-cli/references/api/api-auth.md +18 -0
  276. package/skills/slack-cli/references/api/api-bots.md +12 -0
  277. package/skills/slack-cli/references/api/api-calls.md +68 -0
  278. package/skills/slack-cli/references/api/api-chat.md +123 -0
  279. package/skills/slack-cli/references/api/api-conversations.md +230 -0
  280. package/skills/slack-cli/references/api/api-dialog.md +13 -0
  281. package/skills/slack-cli/references/api/api-dnd.md +31 -0
  282. package/skills/slack-cli/references/api/api-emoji.md +8 -0
  283. package/skills/slack-cli/references/api/api-files.md +120 -0
  284. package/skills/slack-cli/references/api/api-migration.md +14 -0
  285. package/skills/slack-cli/references/api/api-pins.md +37 -0
  286. package/skills/slack-cli/references/api/api-reactions.md +58 -0
  287. package/skills/slack-cli/references/api/api-reminders.md +51 -0
  288. package/skills/slack-cli/references/api/api-search.md +18 -0
  289. package/skills/slack-cli/references/api/api-stars.md +42 -0
  290. package/skills/slack-cli/references/api/api-team.md +55 -0
  291. package/skills/slack-cli/references/api/api-usergroups.md +80 -0
  292. package/skills/slack-cli/references/api/api-users.md +101 -0
  293. package/skills/slack-cli/references/api/api-views.md +46 -0
  294. package/skills/slack-cli/references/api/api-workflows.md +36 -0
  295. package/skills/slack-cli/references/api.md +35 -0
@@ -0,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ack raises beyond cli-core's, so an agent branches on it (WC-OUT-15). `slack_error` is Slack's own
4
+ * code, from the method's page on docs.slack.dev.
5
+ */
6
+ export declare const REASONS: ErrorReason[];
7
+ //# sourceMappingURL=reasons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reasons.d.ts","sourceRoot":"","sources":["../src/reasons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAE7E;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,WAAW,EAiBhC,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { defineReasons } from "@wirecat/cli-base/standards";
2
+ /**
3
+ * Every reason slack raises beyond cli-core's, so an agent branches on it (WC-OUT-15). `slack_error` is Slack's own
4
+ * code, from the method's page on docs.slack.dev.
5
+ */
6
+ export const REASONS = defineReasons([
7
+ // chat.update's cant_update_message, chat.delete's cant_delete_message.
8
+ ["message.not-yours", "permission_error", "Slack lets this account change only messages it may change"],
9
+ // chat.update's edit_window_closed.
10
+ ["message.edit-window-closed", "permission_error", "the workspace no longer lets this message be edited"],
11
+ // chat.postMessage's and chat.update's msg_too_long.
12
+ ["message.too-long", "validation_error", "the message is longer than Slack takes"],
13
+ // chat.postMessage's not_in_channel.
14
+ ["chat.not-joined", "permission_error", "this account is not in the chat"],
15
+ // chat.postMessage's and conversations.join's is_archived.
16
+ ["chat.archived", "validation_error", "the chat is archived"],
17
+ // chat.postMessage's restricted_action and restricted_action_* codes.
18
+ ["chat.restricted", "permission_error", "a workspace or channel setting stops this action"],
19
+ ].map(([reason, code, message]) => ({ reason, code, message, details: ["slack_error"] })));
20
+ //# sourceMappingURL=reasons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reasons.js","sourceRoot":"","sources":["../src/reasons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAoB,MAAM,6BAA6B,CAAA;AAE7E;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAAkB,aAAa,CAE/C;IACE,wEAAwE;IACxE,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,4DAA4D,CAAC;IACvG,oCAAoC;IACpC,CAAC,4BAA4B,EAAE,kBAAkB,EAAE,qDAAqD,CAAC;IACzG,qDAAqD;IACrD,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,wCAAwC,CAAC;IAClF,qCAAqC;IACrC,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,iCAAiC,CAAC;IAC1E,2DAA2D;IAC3D,CAAC,eAAe,EAAE,kBAAkB,EAAE,sBAAsB,CAAC;IAC7D,sEAAsE;IACtE,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,kDAAkD,CAAC;CAE9F,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAC1F,CAAA"}
@@ -0,0 +1,61 @@
1
+ import * as v from "valibot";
2
+ import type { Transport } from "./transport.js";
3
+ declare const wireComment: v.ObjectSchema<{
4
+ readonly id: v.StringSchema<undefined>;
5
+ readonly body: v.StringSchema<undefined>;
6
+ readonly authorName: v.StringSchema<undefined>;
7
+ readonly createdAt: v.StringSchema<undefined>;
8
+ }, undefined>;
9
+ /**
10
+ * The answer's own shape, in snake_case (WC-OUT-12). `answerEntity` publishes it, so `--json=id,text` and the MCP
11
+ * schema both come from here (WC-CMD-19). No wire type leaves this file (WC-ARCH-3).
12
+ */
13
+ export declare const commentSchema: v.StrictObjectSchema<{
14
+ readonly id: v.StringSchema<undefined>;
15
+ readonly text: v.StringSchema<undefined>;
16
+ readonly author: v.StringSchema<undefined>;
17
+ readonly created_at: v.StringSchema<undefined>;
18
+ }, undefined>;
19
+ export type Comment = v.InferOutput<typeof commentSchema>;
20
+ export declare const commentOf: (wire: v.InferOutput<typeof wireComment>) => Comment;
21
+ /** Every call the sample makes: a method, a path template and only the fields the service documents. */
22
+ export declare const commentsService: (api: Transport) => {
23
+ me: () => Promise<{
24
+ id: string;
25
+ name: string;
26
+ }>;
27
+ list: ({ limit, offset, author }: {
28
+ limit: number;
29
+ offset: number;
30
+ author?: string | undefined;
31
+ }) => Promise<{
32
+ items: {
33
+ id: string;
34
+ text: string;
35
+ author: string;
36
+ created_at: string;
37
+ }[];
38
+ hasMore: boolean;
39
+ }>;
40
+ show: (id: string) => Promise<{
41
+ id: string;
42
+ text: string;
43
+ author: string;
44
+ created_at: string;
45
+ }>;
46
+ create: (text: string) => Promise<{
47
+ id: string;
48
+ text: string;
49
+ author: string;
50
+ created_at: string;
51
+ }>;
52
+ update: (id: string, text: string) => Promise<{
53
+ id: string;
54
+ text: string;
55
+ author: string;
56
+ created_at: string;
57
+ }>;
58
+ };
59
+ export type CommentsService = ReturnType<typeof commentsService>;
60
+ export {};
61
+ //# sourceMappingURL=comments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comments.d.ts","sourceRoot":"","sources":["../../src/sample/comments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAI/C,QAAA,MAAM,WAAW;;;;;aAKf,CAAA;AAIF;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;aAKxB,CAAA;AACF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAA;AAEzD,eAAO,MAAM,SAAS,SAAU,CAAC,CAAC,WAAW,CAAC,OAAO,WAAW,CAAC,KAAG,OAKlE,CAAA;AAEF,wGAAwG;AACxG,eAAO,MAAM,eAAe,QAAS,SAAS;IAC5C,EAAE;;;;IACF,IAAI,8BAAoC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE;;;;;;;;;IAItG,IAAI,OAAa,MAAM;;;;;;IAEvB,MAAM,SAAe,MAAM;;;;;;IAE3B,MAAM,OAAa,MAAM,QAAQ,MAAM;;;;;;CAIvC,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA"}
@@ -0,0 +1,39 @@
1
+ import * as v from "valibot";
2
+ // SAMPLE: replace these shapes with your service's. Each wire name comes from the service's docs or a captured answer,
3
+ // never from memory; the strict fake in src/testing/fake-comments.ts refuses any other.
4
+ const wireComment = v.object({
5
+ id: v.string(),
6
+ body: v.string(),
7
+ authorName: v.string(),
8
+ createdAt: v.string(),
9
+ });
10
+ const wirePage = v.object({ comments: v.array(wireComment), hasMore: v.boolean() });
11
+ const wireUser = v.object({ id: v.string(), name: v.string() });
12
+ /**
13
+ * The answer's own shape, in snake_case (WC-OUT-12). `answerEntity` publishes it, so `--json=id,text` and the MCP
14
+ * schema both come from here (WC-CMD-19). No wire type leaves this file (WC-ARCH-3).
15
+ */
16
+ export const commentSchema = v.strictObject({
17
+ id: v.string(),
18
+ text: v.string(),
19
+ author: v.string(),
20
+ created_at: v.string(),
21
+ });
22
+ export const commentOf = (wire) => ({
23
+ id: wire.id,
24
+ text: wire.body,
25
+ author: wire.authorName,
26
+ created_at: wire.createdAt,
27
+ });
28
+ /** Every call the sample makes: a method, a path template and only the fields the service documents. */
29
+ export const commentsService = (api) => ({
30
+ me: () => api.send({ method: "GET", path: "me" }, wireUser),
31
+ list: async ({ limit, offset, author }) => {
32
+ const page = await api.send({ method: "GET", path: "comments", query: { limit, offset, by: author } }, wirePage);
33
+ return { items: page.comments.map(commentOf), hasMore: page.hasMore };
34
+ },
35
+ show: async (id) => commentOf(await api.send({ method: "GET", path: "comments/{id}", ids: { id } }, wireComment)),
36
+ create: async (text) => commentOf(await api.send({ method: "POST", path: "comments", body: { body: text } }, wireComment)),
37
+ update: async (id, text) => commentOf(await api.send({ method: "PATCH", path: "comments/{id}", ids: { id }, body: { body: text } }, wireComment)),
38
+ });
39
+ //# sourceMappingURL=comments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comments.js","sourceRoot":"","sources":["../../src/sample/comments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B,uHAAuH;AACvH,wFAAwF;AACxF,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAA;AACF,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;AACnF,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;AAE/D;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,YAAY,CAAC;IAC1C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAA;AAGF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAuC,EAAW,EAAE,CAAC,CAAC;IAC9E,EAAE,EAAE,IAAI,CAAC,EAAE;IACX,IAAI,EAAE,IAAI,CAAC,IAAI;IACf,MAAM,EAAE,IAAI,CAA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,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,WAAW,CAAC,CAC3G;CACJ,CAAC,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { type IngestReceipt } from "@wirecat/cli-core/services";
2
+ import type { MessageStore } from "@wirecat/cli-core/store";
3
+ import type { Comment } from "./comments.js";
4
+ export interface RecordsSource {
5
+ provider: string;
6
+ account: string;
7
+ batchId: string;
8
+ }
9
+ /** The JSONL a records import reads, ready for a file or stdout: the header line, then one record per line. */
10
+ export declare function commentLines(source: RecordsSource, comments: AsyncIterable<Comment> | Iterable<Comment>): AsyncGenerator<string, void, unknown>;
11
+ /**
12
+ * Takes a JSONL file or stdin into the shared store one line at a time, so memory does not grow with the file. The
13
+ * header's `source.account` must be `account`, or every record is refused.
14
+ */
15
+ export declare const importRecords: (store: Pick<MessageStore, "records">, input: NodeJS.ReadableStream, account: string) => Promise<IngestReceipt>;
16
+ //# sourceMappingURL=records.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../src/sample/records.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAA2B,MAAM,4BAA4B,CAAA;AACxF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAM5C,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,+GAA+G;AAC/G,wBAAuB,YAAY,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,yCAa9G;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,UACjB,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,SAC7B,MAAM,CAAC,cAAc,WACnB,MAAM,KACd,OAAO,CAAC,aAAa,CAAuD,CAAA"}
@@ -0,0 +1,22 @@
1
+ import { ingestLines, jsonlLines } from "@wirecat/cli-core/services";
2
+ /** The JSONL a records import reads, ready for a file or stdout: the header line, then one record per line. */
3
+ export async function* commentLines(source, comments) {
4
+ yield `${JSON.stringify({
5
+ schema_version: 1,
6
+ source: { provider: source.provider, account: source.account, batch_id: source.batchId },
7
+ })}\n`;
8
+ for await (const comment of comments)
9
+ yield `${JSON.stringify({
10
+ key: comment.id,
11
+ type: "custom:comment",
12
+ external_id: comment.id,
13
+ operation: "upsert",
14
+ fields: { text: comment.text, author: comment.author, created_at: comment.created_at },
15
+ })}\n`;
16
+ }
17
+ /**
18
+ * Takes a JSONL file or stdin into the shared store one line at a time, so memory does not grow with the file. The
19
+ * header's `source.account` must be `account`, or every record is refused.
20
+ */
21
+ export const importRecords = (store, input, account) => ingestLines(store, jsonlLines(input), { account });
22
+ //# sourceMappingURL=records.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"records.js","sourceRoot":"","sources":["../../src/sample/records.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,WAAW,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAcxF,+GAA+G;AAC/G,MAAM,CAAC,KAAK,SAAS,CAAC,CAAC,YAAY,CAAC,MAAqB,EAAE,QAAoD;IAC7G,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC;QACtB,cAAc,EAAE,CAAC;QACjB,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,OAAO,EAAE;KACzF,CAAC,IAAI,CAAA;IACN,IAAI,KAAK,EAAE,MAAM,OAAO,IAAI,QAAQ;QAClC,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC;YACtB,GAAG,EAAE,OAAO,CAAC,EAAE;YACf,IAAI,EAAE,gBAAgB;YACtB,WAAW,EAAE,OAAO,CAAC,EAAE;YACvB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE;SACvF,CAAC,IAAI,CAAA;AACV,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,KAAoC,EACpC,KAA4B,EAC5B,OAAe,EACS,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,CAAA"}
@@ -0,0 +1,42 @@
1
+ import { CliError, type SleepLike } from "@wirecat/cli-base";
2
+ import { type EventSink } from "@wirecat/cli-core/cli";
3
+ import type { Pacer } from "@wirecat/cli-core/sends";
4
+ import * as v from "valibot";
5
+ export declare const SERVICE_URL = "https://comments.example.invalid/v1/";
6
+ export declare const SERVICE = "Example Comments";
7
+ export interface Request {
8
+ method: "GET" | "POST" | "PATCH";
9
+ /** The path as a template, `comments/{id}`: the run record keeps the template, never an id. */
10
+ path: string;
11
+ ids?: Record<string, string>;
12
+ query?: Record<string, string | number | undefined>;
13
+ body?: Record<string, unknown>;
14
+ }
15
+ export interface TransportOptions {
16
+ token: string;
17
+ fetch?: typeof fetch;
18
+ signal?: AbortSignal | undefined;
19
+ /** The run's sink from `baseContext(...).run(events => …)`, so each request lands in the run record (WC-LIFE-15). */
20
+ events?: EventSink;
21
+ /** cli-core's per-profile pace, shared by every process of the profile through a file. */
22
+ pacer?: Pacer;
23
+ sleep?: SleepLike;
24
+ now?: () => number;
25
+ timeoutMs?: number;
26
+ }
27
+ /**
28
+ * A refusal as a CliError with cli-base's code for its status. The service's own message is never repeated: it can
29
+ * quote what was sent (WC-SECR-6). A write that failed on the service's side may have happened, so it is
30
+ * `outcome_unknown` and never retryable (WC-OUT-20, WC-LIFE-9).
31
+ */
32
+ export declare const failureOf: (status: number, writes: boolean, retryAfterMs?: number) => CliError;
33
+ /**
34
+ * The only code that holds the token: it goes in the Authorization header, never in an address, an error or a run
35
+ * record (WC-SECR-7). Nothing here retries. A read the caller may run again; a write is never sent twice, since the
36
+ * first may have landed (WC-OUT-20).
37
+ */
38
+ export declare const transport: (options: TransportOptions) => {
39
+ send: <T>(request: Request, answer: v.GenericSchema<unknown, T>) => Promise<T>;
40
+ };
41
+ export type Transport = ReturnType<typeof transport>;
42
+ //# sourceMappingURL=transport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/sample/transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAyB,KAAK,SAAS,EAAa,MAAM,mBAAmB,CAAA;AAE9F,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,uBAAuB,CAAA;AACvE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,WAAW,yCAAyC,CAAA;AACjE,eAAO,MAAM,OAAO,qBAAqB,CAAA;AAOzC,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,CAAA;IAChC,+FAA+F;IAC/F,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAAA;IACnD,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC/B;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,OAAO,KAAK,CAAA;IACpB,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;IAChC,qHAAqH;IACrH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,0FAA0F;IAC1F,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAkBD;;;;GAIG;AACH,eAAO,MAAM,SAAS,WAAY,MAAM,UAAU,OAAO,iBAAiB,MAAM,KAAG,QAqBlF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS,YAAa,gBAAgB;WA6B7B,CAAC,WAAW,OAAO,UAAU,CAAC,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC,KAAG,OAAO,CAAC,CAAC,CAAC;CAiE1F,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAA"}
@@ -0,0 +1,153 @@
1
+ import { CliError, isCliError, realSleep, wallClock } from "@wirecat/cli-base";
2
+ import { hostFetch, providerWaitMs, readJsonResponse, statusToCode } from "@wirecat/cli-base/http";
3
+ import { providerRequest } from "@wirecat/cli-core/cli";
4
+ import * as v from "valibot";
5
+ import { DESKTOP } from "../identity.js";
6
+ // SAMPLE: the Example Comments service does not exist; `.invalid` never resolves, so a real run reaches nothing.
7
+ // Replace the address, the paths and the answer shapes with your service's, each from its docs or a captured answer.
8
+ export const SERVICE_URL = "https://comments.example.invalid/v1/";
9
+ export const SERVICE = "Example Comments";
10
+ const TIMEOUT_MS = 30_000;
11
+ const LARGEST_ANSWER = 8 * 1024 * 1024;
12
+ /** A pace wait longer than this ends the run with `rate_limited` instead of sitting in it. */
13
+ const LONGEST_PACE_WAIT_MS = 60_000;
14
+ /** `new URL` folds a `.` or `..` segment into its parent, so such an id would reach another endpoint. */
15
+ const segment = (name, value) => {
16
+ if (value === "" || value === "." || value === "..")
17
+ throw new CliError("validation_error", `${name} must name one item; an empty, "." or ".." id is refused`);
18
+ return encodeURIComponent(value);
19
+ };
20
+ const urlOf = ({ path, ids = {}, query = {} }) => {
21
+ const url = new URL(path.replace(/\{(\w+)\}/g, (_, name) => segment(name, ids[name] ?? "")), SERVICE_URL);
22
+ for (const [key, value] of Object.entries(query))
23
+ if (value !== undefined)
24
+ url.searchParams.set(key, String(value));
25
+ return url;
26
+ };
27
+ /**
28
+ * A refusal as a CliError with cli-base's code for its status. The service's own message is never repeated: it can
29
+ * quote what was sent (WC-SECR-6). A write that failed on the service's side may have happened, so it is
30
+ * `outcome_unknown` and never retryable (WC-OUT-20, WC-LIFE-9).
31
+ */
32
+ export const failureOf = (status, writes, retryAfterMs) => {
33
+ if (status === 401)
34
+ return new CliError("authentication_error", `${SERVICE} refused the token; sign in again with session start`, {
35
+ status,
36
+ });
37
+ if (status === 429)
38
+ return new CliError("rate_limited", `${SERVICE} asked to slow down; retry the command later`, {
39
+ status,
40
+ retryable: true,
41
+ ...(retryAfterMs === undefined ? {} : { retry_after_ms: retryAfterMs }),
42
+ });
43
+ if (status >= 500 && writes)
44
+ return new CliError("outcome_unknown", `${SERVICE} failed during a write; check it before repeating the write`, {
45
+ status,
46
+ retryable: false,
47
+ });
48
+ if (status === 404)
49
+ return new CliError("not_found", `${SERVICE} has no such item, or this token cannot see it`);
50
+ return new CliError(statusToCode(status), `${SERVICE} refused the request (HTTP ${status})`, {
51
+ status,
52
+ retryable: status >= 500,
53
+ });
54
+ };
55
+ /**
56
+ * The only code that holds the token: it goes in the Authorization header, never in an address, an error or a run
57
+ * record (WC-SECR-7). Nothing here retries. A read the caller may run again; a write is never sent twice, since the
58
+ * first may have landed (WC-OUT-20).
59
+ */
60
+ export const transport = (options) => {
61
+ const fetchOf = hostFetch({ hosts: DESKTOP.hosts, ...(options.fetch ? { fetch: options.fetch } : {}) });
62
+ const sleep = options.sleep ?? realSleep;
63
+ const now = options.now ?? Date.now;
64
+ const turn = async () => {
65
+ if (!options.pacer)
66
+ return;
67
+ const wait = (await options.pacer.reserve()) - now();
68
+ if (wait <= 0)
69
+ return;
70
+ if (wait > LONGEST_PACE_WAIT_MS)
71
+ throw new CliError("rate_limited", `this profile must wait ${Math.ceil(wait / 1000)} s before its next request`, {
72
+ retry_after_ms: wait,
73
+ });
74
+ await sleep(wait, options.signal, "retry");
75
+ };
76
+ const unanswered = (writes, error) => {
77
+ // Before the stop check: a write stopped in flight may still have landed (WC-LIFE-9).
78
+ if (writes)
79
+ return new CliError("outcome_unknown", `${SERVICE} did not answer a write; check it before repeating the write`, {
80
+ retryable: false,
81
+ });
82
+ if (options.signal?.aborted)
83
+ return new CliError("cancelled", `the ${SERVICE} request was stopped`);
84
+ const timedOut = error?.name === "TimeoutError";
85
+ return timedOut
86
+ ? new CliError("timeout", `${SERVICE} did not answer in time`, { retryable: true })
87
+ : new CliError("network_error", `${SERVICE} could not be reached`, { retryable: true });
88
+ };
89
+ const send = async (request, answer) => {
90
+ const writes = request.method !== "GET";
91
+ const url = urlOf(request);
92
+ await turn();
93
+ // Not AbortSignal.timeout: its timer keeps the run's async context alive until it fires.
94
+ const deadline = new AbortController();
95
+ const timer = setTimeout(() => deadline.abort(new DOMException("timed out", "TimeoutError")), options.timeoutMs ?? TIMEOUT_MS);
96
+ timer.unref();
97
+ const signal = options.signal ? AbortSignal.any([options.signal, deadline.signal]) : deadline.signal;
98
+ const end = providerRequest(`${request.method} /${request.path}`, options.events, {
99
+ method: request.method,
100
+ transport: "http",
101
+ });
102
+ try {
103
+ let response;
104
+ try {
105
+ response = await fetchOf(url, {
106
+ method: request.method,
107
+ headers: {
108
+ authorization: `Bearer ${options.token}`,
109
+ accept: "application/json",
110
+ ...(request.body ? { "content-type": "application/json" } : {}),
111
+ },
112
+ ...(request.body ? { body: JSON.stringify(request.body) } : {}),
113
+ // A redirect would carry the Authorization header to an address we did not choose.
114
+ redirect: "error",
115
+ signal,
116
+ });
117
+ }
118
+ catch (error) {
119
+ const failure = unanswered(writes, deadline.signal.reason ?? error);
120
+ end({ errorCode: failure.code });
121
+ throw failure;
122
+ }
123
+ if (!response.ok) {
124
+ const failure = failureOf(response.status, writes, providerWaitMs(response.headers, wallClock));
125
+ end({ status: response.status, errorCode: failure.code });
126
+ throw failure;
127
+ }
128
+ let body;
129
+ try {
130
+ body = await readJsonResponse(response, { maxBytes: LARGEST_ANSWER, signal });
131
+ }
132
+ catch (error) {
133
+ const failure = isCliError(error) && error.code !== "invalid_response"
134
+ ? error
135
+ : new CliError("invalid_response", `${SERVICE} answered with something other than bounded JSON`);
136
+ end({ status: response.status, errorCode: failure.code });
137
+ throw failure;
138
+ }
139
+ const parsed = v.safeParse(answer, body);
140
+ if (!parsed.success) {
141
+ end({ status: response.status, errorCode: "invalid_response" });
142
+ throw new CliError("invalid_response", `${SERVICE}'s answer does not have the documented shape`);
143
+ }
144
+ end({ status: response.status });
145
+ return parsed.output;
146
+ }
147
+ finally {
148
+ clearTimeout(timer);
149
+ }
150
+ };
151
+ return { send };
152
+ };
153
+ //# sourceMappingURL=transport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transport.js","sourceRoot":"","sources":["../../src/sample/transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAkB,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC9F,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAClG,OAAO,EAAkB,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvE,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAExC,iHAAiH;AACjH,qHAAqH;AACrH,MAAM,CAAC,MAAM,WAAW,GAAG,sCAAsC,CAAA;AACjE,MAAM,CAAC,MAAM,OAAO,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C,CAAA;gBACzD,MAAM,OAAO,CAAA;YACf,CAAC;YACD,MAAM,MAAM,GAAG,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;YACxC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;gBACpB,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC,CAAA;gBAC/D,MAAM,IAAI,QAAQ,CAAC,kBAAkB,EAAE,GAAG,OAAO,8CAA8C,CAAC,CAAA;YAClG,CAAC;YACD,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAA;YAChC,OAAO,MAAM,CAAC,MAAM,CAAA;QACtB,CAAC;gBAAS,CAAC;YACT,YAAY,CAAC,KAAK,CAAC,CAAA;QACrB,CAAC;IACH,CAAC,CAAA;IAED,OAAO,EAAE,IAAI,EAAE,CAAA;AACjB,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const slackSetup: import("@wirecat/cli-core/cli").Setup;
2
+ //# sourceMappingURL=flow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../src/setup/flow.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,UAAU,uCA+DrB,CAAA"}
@@ -0,0 +1,83 @@
1
+ import { CliError } from "@wirecat/cli-base";
2
+ import { defineSetup, refuseOffline } from "@wirecat/cli-core/cli";
3
+ import { configuration } from "../config.js";
4
+ import { slackFor } from "../context.js";
5
+ import { IDENTITY, SERVICE } from "../identity.js";
6
+ import { APP_LINK, APPS_LINK } from "../slack/app-manifest.js";
7
+ import { refuseOtherTokens, whoAmI } from "../slack/tokens.js";
8
+ import { en } from "./texts.js";
9
+ /** The same proof `session start` runs: the token is a user token, and `auth.test` says whose it is. */
10
+ const check = async ({ command, secrets }) => {
11
+ refuseOffline(command, SERVICE);
12
+ const token = secrets.token?.trim();
13
+ if (!token)
14
+ throw new CliError("validation_error", "paste the User OAuth Token", { param: "token" });
15
+ refuseOtherTokens(token);
16
+ const { id, account } = await whoAmI(slackFor(command, token));
17
+ return { ...account, keep: { secrets: { token }, account: id } };
18
+ };
19
+ export const slackSetup = defineSetup({
20
+ app: IDENTITY,
21
+ configuration,
22
+ check,
23
+ start: "app",
24
+ steps: {
25
+ app: {
26
+ title: "app.title",
27
+ blocks: [
28
+ { type: "text", text: "app.intro" },
29
+ { type: "text", text: "app.steps" },
30
+ { type: "link", href: APP_LINK, text: "app.link" },
31
+ { type: "text", text: "app.by-hand" },
32
+ ],
33
+ next: "install",
34
+ },
35
+ install: {
36
+ title: "install.title",
37
+ blocks: [
38
+ { type: "text", text: "install.steps" },
39
+ { type: "link", href: APPS_LINK, text: "install.link" },
40
+ { type: "note", role: "tip", text: "install.admin" },
41
+ ],
42
+ next: "token",
43
+ },
44
+ token: {
45
+ title: "token.title",
46
+ blocks: [
47
+ { type: "text", text: "token.where" },
48
+ { type: "note", role: "warning", text: "token.bot" },
49
+ { type: "input", id: "token", secret: "token", input: "password", label: "token.label", hint: "token.hint" },
50
+ ],
51
+ next: "check",
52
+ },
53
+ check: {
54
+ kind: "run",
55
+ title: "check.title",
56
+ action: "apply",
57
+ blocks: [{ type: "text", text: "check.body" }],
58
+ next: [
59
+ { when: { result: "check", is: "ok" }, to: "done" },
60
+ { when: { result: "check", error: "authentication_error" }, to: "token" },
61
+ { when: { result: "check", error: "validation_error" }, to: "token" },
62
+ { to: "failed" },
63
+ ],
64
+ back: false,
65
+ },
66
+ failed: {
67
+ kind: "done",
68
+ title: "failed.title",
69
+ blocks: [{ type: "note", role: "danger", text: "failed.body" }],
70
+ back: true,
71
+ },
72
+ done: {
73
+ kind: "done",
74
+ title: "done.title",
75
+ blocks: [
76
+ { type: "text", text: "done.body" },
77
+ { type: "code", code: "slk <profile> chats list\nslk <profile> messages sync '#general'", copy: true },
78
+ ],
79
+ },
80
+ },
81
+ texts: { en },
82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K;YACX,KAAK,EAAE,aAAa;YACpB,MAAM,EAAE,OAAO;YACf,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;YAC9C,IAAI,EAAE;gBACJ,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE;gBACnD,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,sBAAsB,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE;gBACzE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE;gBACrE,EAAE,EAAE,EAAE,QAAQ,EAAE;aACjB;YACD,IAAI,EAAE,KAAK;SACZ;QACD,MAAM,EAAE;YACN,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,cAAc;YACrB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;YAC/D,IAAI,EAAE,IAAI;SACX;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,YAAY;YACnB,MAAM,EAAE;gBACN,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE;gBACnC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kEAAkE,EAAE,IAAI,EAAE,IAAI,EAAE;aACvG;SACF;KACF;IACD,KAAK,EAAE,EAAE,EAAE,EAAE;CACd,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The setup flow's steps as one text for `session start`, so the terminal and WireCat Desktop say the same. It is a
3
+ * setup text's restricted Markdown: cli-core prints it plainly, its links drawn as links where the terminal can.
4
+ */
5
+ export declare const TOKEN_GUIDE: string;
6
+ //# sourceMappingURL=guide.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guide.d.ts","sourceRoot":"","sources":["../../src/setup/guide.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,WAAW,QAKV,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { APP_LINK } from "../slack/app-manifest.js";
2
+ import { en } from "./texts.js";
3
+ /**
4
+ * The setup flow's steps as one text for `session start`, so the terminal and WireCat Desktop say the same. It is a
5
+ * setup text's restricted Markdown: cli-core prints it plainly, its links drawn as links where the terminal can.
6
+ */
7
+ export const TOKEN_GUIDE = [
8
+ `## How to get the token\n\n${en["app.intro"]}`,
9
+ `## ${en["app.title"]}\n\n${en["app.steps"]}\n\n[${en["app.link"]}](${APP_LINK})\n\n${en["app.by-hand"]}`,
10
+ `## ${en["install.title"]}\n\n${en["install.steps"]}\n\n${en["install.admin"]}`,
11
+ `## ${en["token.title"]}\n\n${en["token.where"]} ${en["token.bot"]}`,
12
+ ].join("\n\n");
13
+ //# sourceMappingURL=guide.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guide.js","sourceRoot":"","sources":["../../src/setup/guide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACnD,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAA;AAE/B;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,8BAA8B,EAAE,CAAC,WAAW,CAAC,EAAE;IAC/C,MAAM,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,UAAU,CAAC,KAAK,QAAQ,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE;IACzG,MAAM,EAAE,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC,eAAe,CAAC,EAAE;IAC/E,MAAM,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC,WAAW,CAAC,EAAE;CACrE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA"}
@@ -0,0 +1,24 @@
1
+ /** The setup flow's English texts, by key. `session start` prints the same steps (src/setup/guide.ts). */
2
+ export declare const en: {
3
+ "app.title": string;
4
+ "app.intro": string;
5
+ "app.steps": string;
6
+ "app.link": string;
7
+ "app.by-hand": string;
8
+ "install.title": string;
9
+ "install.steps": string;
10
+ "install.link": string;
11
+ "install.admin": string;
12
+ "token.title": string;
13
+ "token.where": string;
14
+ "token.label": string;
15
+ "token.hint": string;
16
+ "token.bot": string;
17
+ "check.title": string;
18
+ "check.body": string;
19
+ "failed.title": string;
20
+ "failed.body": string;
21
+ "done.title": string;
22
+ "done.body": string;
23
+ };
24
+ //# sourceMappingURL=texts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"texts.d.ts","sourceRoot":"","sources":["../../src/setup/texts.ts"],"names":[],"mappings":"AAAA,0GAA0G;AAC1G,eAAO,MAAM,EAAE;IACb,WAAW;IACX,WAAW;IAEX,WAAW;IAEX,UAAU;IACV,aAAa;IAEb,eAAe;IACf,eAAe;IAEf,cAAc;IACd,eAAe;IAEf,aAAa;IACb,aAAa;IAEb,aAAa;IACb,YAAY;IACZ,WAAW;IAEX,aAAa;IACb,YAAY;IACZ,cAAc;IACd,aAAa;IAEb,YAAY;IACZ,WAAW;CACZ,CAAA"}
@@ -0,0 +1,24 @@
1
+ /** The setup flow's English texts, by key. `session start` prints the same steps (src/setup/guide.ts). */
2
+ export const en = {
3
+ "app.title": "Make your own Slack app",
4
+ "app.intro": "Slack lets a program read your messages only through an app installed in your workspace. So you make a small app for slk yourself: it takes about three minutes, it belongs to you, and only you use it. Your messages and the token stay on this computer and go only to Slack. An app of your own also keeps Slack's full speed for reading history: Slack slows an app another company publishes outside its Marketplace to one read of 15 messages a minute.",
5
+ "app.steps": "1. Sign in to Slack in your browser, in the workspace slk should read: [slack.com/signin](https://slack.com/signin)\n2. Open the link below. Slack opens **Create New App** with slk's settings already filled in.\n3. Choose your workspace in the list and click **Next** until you see **Create**, then click **Create**. You do not need to change anything on the way.\n4. Slack opens the app's **Basic Information** page. Its Client ID, Client Secret, Signing Secret and Verification Token are not needed: the token you need comes in the next step.",
6
+ "app.link": "Create the app in Slack",
7
+ "app.by-hand": "If the link does not open the form: go to [api.slack.com/apps](https://api.slack.com/apps), click **Create New App**, then **From a manifest**, choose your workspace, and replace the text there with [slk's manifest](https://github.com/WireCatLabs/slack-cli/blob/main/docs/slack-app-manifest.json): on that page, click **Copy raw file** (the button with two squares above the text) and paste.",
8
+ "install.title": "Install the app and copy the token",
9
+ "install.steps": "1. On the app's page, in the menu on the left, click **OAuth & Permissions**. Lost the page? Open [api.slack.com/apps](https://api.slack.com/apps) and click **WireCat slk**.\n2. Click **Install to Workspace** (Slack may show your workspace's name in place of \"Workspace\"). Slack lists what slk may do as you: read and send messages, see people and files. Click **Allow**.\n3. You are back on **OAuth & Permissions**. Under **OAuth Tokens**, find **User OAuth Token**: it starts with `xoxp-`. Click **Copy**.",
10
+ "install.link": "Your Slack apps",
11
+ "install.admin": "If Slack offers to send a request in place of installing, only an administrator may install apps in this workspace. Send the request. Once they approve it, open **OAuth & Permissions** again and click **Install to Workspace**.",
12
+ "token.title": "Paste the token",
13
+ "token.where": "Paste the **User OAuth Token** you copied. It works like a password to your Slack, so slk checks it with Slack and keeps it in your system keyring.",
14
+ "token.label": "User OAuth Token",
15
+ "token.hint": "Starts with `xoxp-`. Kept in your system keyring or, without one, in a file only you can read.",
16
+ "token.bot": "Copy only the token that starts with `xoxp-`. slk refuses a bot token (`xoxb-`): a bot sees only the channels it is added to, and slk reads as you.",
17
+ "check.title": "Checking the token",
18
+ "check.body": "slk asks Slack whose the token is. It keeps the token only if Slack answers.",
19
+ "failed.title": "The check did not pass",
20
+ "failed.body": "Slack did not take the token, so nothing was saved. Copy the **User OAuth Token** again from **OAuth & Permissions** and check your internet connection.",
21
+ "done.title": "Connected",
22
+ "done.body": "The profile is ready. List your chats, then copy one into the local store to search it:",
23
+ };
24
+ //# sourceMappingURL=texts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"texts.js","sourceRoot":"","sources":["../../src/setup/texts.ts"],"names":[],"mappings":"AAAA,0GAA0G;AAC1G,MAAM,CAAC,MAAM,EAAE,GAAG;IAChB,WAAW,EAAE,yBAAyB;IACtC,WAAW,EACT,kcAAkc;IACpc,WAAW,EACT,kiBAAkiB;IACpiB,UAAU,EAAE,yBAAyB;IACrC,aAAa,EACX,yYAAyY;IAC3Y,eAAe,EAAE,oCAAoC;IACrD,eAAe,EACb,+fAA+f;IACjgB,cAAc,EAAE,iBAAiB;IACjC,eAAe,EACb,oOAAoO;IACtO,aAAa,EAAE,iBAAiB;IAChC,aAAa,EACX,qJAAqJ;IACvJ,aAAa,EAAE,kBAAkB;IACjC,YAAY,EAAE,gGAAgG;IAC9G,WAAW,EACT,qJAAqJ;IACvJ,aAAa,EAAE,oBAAoB;IACnC,YAAY,EAAE,8EAA8E;IAC5F,cAAc,EAAE,wBAAwB;IACxC,aAAa,EACX,0JAA0J;IAC5J,YAAY,EAAE,WAAW;IACzB,WAAW,EAAE,yFAAyF;CACvG,CAAA"}