agent-messenger 1.0.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 (394) hide show
  1. package/.claude/commands/release.md +92 -0
  2. package/.claude-plugin/README.md +144 -0
  3. package/.claude-plugin/marketplace.json +37 -0
  4. package/.claude-plugin/plugin.json +17 -0
  5. package/.github/workflows/ci.yml +30 -0
  6. package/CLAUDE.md +106 -0
  7. package/CONTRIBUTING.md +131 -0
  8. package/README.md +140 -0
  9. package/biome.json +34 -0
  10. package/bun.lock +252 -0
  11. package/dist/cli.d.ts +5 -0
  12. package/dist/cli.d.ts.map +1 -0
  13. package/dist/cli.js +21 -0
  14. package/dist/cli.js.map +1 -0
  15. package/dist/commands/auth.d.ts +3 -0
  16. package/dist/commands/auth.d.ts.map +1 -0
  17. package/dist/commands/auth.js +140 -0
  18. package/dist/commands/auth.js.map +1 -0
  19. package/dist/commands/channel.d.ts +3 -0
  20. package/dist/commands/channel.d.ts.map +1 -0
  21. package/dist/commands/channel.js +118 -0
  22. package/dist/commands/channel.js.map +1 -0
  23. package/dist/commands/file.d.ts +3 -0
  24. package/dist/commands/file.d.ts.map +1 -0
  25. package/dist/commands/file.js +113 -0
  26. package/dist/commands/file.js.map +1 -0
  27. package/dist/commands/index.d.ts +9 -0
  28. package/dist/commands/index.d.ts.map +1 -0
  29. package/dist/commands/index.js +9 -0
  30. package/dist/commands/index.js.map +1 -0
  31. package/dist/commands/message.d.ts +3 -0
  32. package/dist/commands/message.d.ts.map +1 -0
  33. package/dist/commands/message.js +214 -0
  34. package/dist/commands/message.js.map +1 -0
  35. package/dist/commands/reaction.d.ts +3 -0
  36. package/dist/commands/reaction.d.ts.map +1 -0
  37. package/dist/commands/reaction.js +100 -0
  38. package/dist/commands/reaction.js.map +1 -0
  39. package/dist/commands/snapshot.d.ts +3 -0
  40. package/dist/commands/snapshot.d.ts.map +1 -0
  41. package/dist/commands/snapshot.js +88 -0
  42. package/dist/commands/snapshot.js.map +1 -0
  43. package/dist/commands/user.d.ts +3 -0
  44. package/dist/commands/user.d.ts.map +1 -0
  45. package/dist/commands/user.js +96 -0
  46. package/dist/commands/user.js.map +1 -0
  47. package/dist/commands/workspace.d.ts +3 -0
  48. package/dist/commands/workspace.d.ts.map +1 -0
  49. package/dist/commands/workspace.js +89 -0
  50. package/dist/commands/workspace.js.map +1 -0
  51. package/dist/lib/credential-manager.d.ts +13 -0
  52. package/dist/lib/credential-manager.d.ts.map +1 -0
  53. package/dist/lib/credential-manager.js +58 -0
  54. package/dist/lib/credential-manager.js.map +1 -0
  55. package/dist/lib/index.d.ts +3 -0
  56. package/dist/lib/index.d.ts.map +1 -0
  57. package/dist/lib/index.js +3 -0
  58. package/dist/lib/index.js.map +1 -0
  59. package/dist/lib/ref-manager.d.ts +26 -0
  60. package/dist/lib/ref-manager.d.ts.map +1 -0
  61. package/dist/lib/ref-manager.js +92 -0
  62. package/dist/lib/ref-manager.js.map +1 -0
  63. package/dist/lib/slack-client.d.ts +37 -0
  64. package/dist/lib/slack-client.d.ts.map +1 -0
  65. package/dist/lib/slack-client.js +379 -0
  66. package/dist/lib/slack-client.js.map +1 -0
  67. package/dist/lib/token-extractor.d.ts +28 -0
  68. package/dist/lib/token-extractor.d.ts.map +1 -0
  69. package/dist/lib/token-extractor.js +401 -0
  70. package/dist/lib/token-extractor.js.map +1 -0
  71. package/dist/package.json +37 -0
  72. package/dist/src/cli.d.ts +5 -0
  73. package/dist/src/cli.d.ts.map +1 -0
  74. package/dist/src/cli.js +22 -0
  75. package/dist/src/cli.js.map +1 -0
  76. package/dist/src/platforms/discord/cli.d.ts +5 -0
  77. package/dist/src/platforms/discord/cli.d.ts.map +1 -0
  78. package/dist/src/platforms/discord/cli.js +22 -0
  79. package/dist/src/platforms/discord/cli.js.map +1 -0
  80. package/dist/src/platforms/discord/client.d.ts +34 -0
  81. package/dist/src/platforms/discord/client.d.ts.map +1 -0
  82. package/dist/src/platforms/discord/client.js +187 -0
  83. package/dist/src/platforms/discord/client.js.map +1 -0
  84. package/dist/src/platforms/discord/client.test.d.ts +2 -0
  85. package/dist/src/platforms/discord/client.test.d.ts.map +1 -0
  86. package/dist/src/platforms/discord/client.test.js +367 -0
  87. package/dist/src/platforms/discord/client.test.js.map +1 -0
  88. package/dist/src/platforms/discord/commands/auth.d.ts +13 -0
  89. package/dist/src/platforms/discord/commands/auth.d.ts.map +1 -0
  90. package/dist/src/platforms/discord/commands/auth.js +155 -0
  91. package/dist/src/platforms/discord/commands/auth.js.map +1 -0
  92. package/dist/src/platforms/discord/commands/auth.test.d.ts +2 -0
  93. package/dist/src/platforms/discord/commands/auth.test.d.ts.map +1 -0
  94. package/dist/src/platforms/discord/commands/auth.test.js +65 -0
  95. package/dist/src/platforms/discord/commands/auth.test.js.map +1 -0
  96. package/dist/src/platforms/discord/commands/channel.d.ts +13 -0
  97. package/dist/src/platforms/discord/commands/channel.d.ts.map +1 -0
  98. package/dist/src/platforms/discord/commands/channel.js +99 -0
  99. package/dist/src/platforms/discord/commands/channel.js.map +1 -0
  100. package/dist/src/platforms/discord/commands/channel.test.d.ts +2 -0
  101. package/dist/src/platforms/discord/commands/channel.test.d.ts.map +1 -0
  102. package/dist/src/platforms/discord/commands/channel.test.js +136 -0
  103. package/dist/src/platforms/discord/commands/channel.test.js.map +1 -0
  104. package/dist/src/platforms/discord/commands/file.d.ts +13 -0
  105. package/dist/src/platforms/discord/commands/file.d.ts.map +1 -0
  106. package/dist/src/platforms/discord/commands/file.js +99 -0
  107. package/dist/src/platforms/discord/commands/file.js.map +1 -0
  108. package/dist/src/platforms/discord/commands/file.test.d.ts +2 -0
  109. package/dist/src/platforms/discord/commands/file.test.d.ts.map +1 -0
  110. package/dist/src/platforms/discord/commands/file.test.js +83 -0
  111. package/dist/src/platforms/discord/commands/file.test.js.map +1 -0
  112. package/dist/src/platforms/discord/commands/guild.d.ts +15 -0
  113. package/dist/src/platforms/discord/commands/guild.d.ts.map +1 -0
  114. package/dist/src/platforms/discord/commands/guild.js +102 -0
  115. package/dist/src/platforms/discord/commands/guild.js.map +1 -0
  116. package/dist/src/platforms/discord/commands/guild.test.d.ts +2 -0
  117. package/dist/src/platforms/discord/commands/guild.test.d.ts.map +1 -0
  118. package/dist/src/platforms/discord/commands/guild.test.js +100 -0
  119. package/dist/src/platforms/discord/commands/guild.test.js.map +1 -0
  120. package/dist/src/platforms/discord/commands/index.d.ts +9 -0
  121. package/dist/src/platforms/discord/commands/index.d.ts.map +1 -0
  122. package/dist/src/platforms/discord/commands/index.js +9 -0
  123. package/dist/src/platforms/discord/commands/index.js.map +1 -0
  124. package/dist/src/platforms/discord/commands/message.d.ts +17 -0
  125. package/dist/src/platforms/discord/commands/message.d.ts.map +1 -0
  126. package/dist/src/platforms/discord/commands/message.js +131 -0
  127. package/dist/src/platforms/discord/commands/message.js.map +1 -0
  128. package/dist/src/platforms/discord/commands/message.test.d.ts +2 -0
  129. package/dist/src/platforms/discord/commands/message.test.d.ts.map +1 -0
  130. package/dist/src/platforms/discord/commands/message.test.js +91 -0
  131. package/dist/src/platforms/discord/commands/message.test.js.map +1 -0
  132. package/dist/src/platforms/discord/commands/reaction.d.ts +12 -0
  133. package/dist/src/platforms/discord/commands/reaction.d.ts.map +1 -0
  134. package/dist/src/platforms/discord/commands/reaction.js +99 -0
  135. package/dist/src/platforms/discord/commands/reaction.js.map +1 -0
  136. package/dist/src/platforms/discord/commands/reaction.test.d.ts +2 -0
  137. package/dist/src/platforms/discord/commands/reaction.test.d.ts.map +1 -0
  138. package/dist/src/platforms/discord/commands/reaction.test.js +115 -0
  139. package/dist/src/platforms/discord/commands/reaction.test.js.map +1 -0
  140. package/dist/src/platforms/discord/commands/snapshot.d.ts +9 -0
  141. package/dist/src/platforms/discord/commands/snapshot.d.ts.map +1 -0
  142. package/dist/src/platforms/discord/commands/snapshot.js +80 -0
  143. package/dist/src/platforms/discord/commands/snapshot.js.map +1 -0
  144. package/dist/src/platforms/discord/commands/snapshot.test.d.ts +2 -0
  145. package/dist/src/platforms/discord/commands/snapshot.test.d.ts.map +1 -0
  146. package/dist/src/platforms/discord/commands/snapshot.test.js +25 -0
  147. package/dist/src/platforms/discord/commands/snapshot.test.js.map +1 -0
  148. package/dist/src/platforms/discord/commands/user.d.ts +3 -0
  149. package/dist/src/platforms/discord/commands/user.d.ts.map +1 -0
  150. package/dist/src/platforms/discord/commands/user.js +94 -0
  151. package/dist/src/platforms/discord/commands/user.js.map +1 -0
  152. package/dist/src/platforms/discord/commands/user.test.d.ts +2 -0
  153. package/dist/src/platforms/discord/commands/user.test.d.ts.map +1 -0
  154. package/dist/src/platforms/discord/commands/user.test.js +103 -0
  155. package/dist/src/platforms/discord/commands/user.test.js.map +1 -0
  156. package/dist/src/platforms/discord/credential-manager.d.ts +33 -0
  157. package/dist/src/platforms/discord/credential-manager.d.ts.map +1 -0
  158. package/dist/src/platforms/discord/credential-manager.js +73 -0
  159. package/dist/src/platforms/discord/credential-manager.js.map +1 -0
  160. package/dist/src/platforms/discord/credential-manager.test.d.ts +2 -0
  161. package/dist/src/platforms/discord/credential-manager.test.d.ts.map +1 -0
  162. package/dist/src/platforms/discord/credential-manager.test.js +136 -0
  163. package/dist/src/platforms/discord/credential-manager.test.js.map +1 -0
  164. package/dist/src/platforms/discord/token-extractor.d.ts +55 -0
  165. package/dist/src/platforms/discord/token-extractor.d.ts.map +1 -0
  166. package/dist/src/platforms/discord/token-extractor.js +462 -0
  167. package/dist/src/platforms/discord/token-extractor.js.map +1 -0
  168. package/dist/src/platforms/discord/token-extractor.test.d.ts +2 -0
  169. package/dist/src/platforms/discord/token-extractor.test.d.ts.map +1 -0
  170. package/dist/src/platforms/discord/token-extractor.test.js +789 -0
  171. package/dist/src/platforms/discord/token-extractor.test.js.map +1 -0
  172. package/dist/src/platforms/discord/types.d.ts +251 -0
  173. package/dist/src/platforms/discord/types.d.ts.map +1 -0
  174. package/dist/src/platforms/discord/types.js +74 -0
  175. package/dist/src/platforms/discord/types.js.map +1 -0
  176. package/dist/src/platforms/discord/types.test.d.ts +2 -0
  177. package/dist/src/platforms/discord/types.test.d.ts.map +1 -0
  178. package/dist/src/platforms/discord/types.test.js +211 -0
  179. package/dist/src/platforms/discord/types.test.js.map +1 -0
  180. package/dist/src/platforms/slack/cli.d.ts +5 -0
  181. package/dist/src/platforms/slack/cli.d.ts.map +1 -0
  182. package/dist/src/platforms/slack/cli.js +22 -0
  183. package/dist/src/platforms/slack/cli.js.map +1 -0
  184. package/dist/src/platforms/slack/client.d.ts +47 -0
  185. package/dist/src/platforms/slack/client.d.ts.map +1 -0
  186. package/dist/src/platforms/slack/client.js +412 -0
  187. package/dist/src/platforms/slack/client.js.map +1 -0
  188. package/dist/src/platforms/slack/commands/auth.d.ts +3 -0
  189. package/dist/src/platforms/slack/commands/auth.d.ts.map +1 -0
  190. package/dist/src/platforms/slack/commands/auth.js +156 -0
  191. package/dist/src/platforms/slack/commands/auth.js.map +1 -0
  192. package/dist/src/platforms/slack/commands/channel.d.ts +3 -0
  193. package/dist/src/platforms/slack/commands/channel.d.ts.map +1 -0
  194. package/dist/src/platforms/slack/commands/channel.js +118 -0
  195. package/dist/src/platforms/slack/commands/channel.js.map +1 -0
  196. package/dist/src/platforms/slack/commands/file.d.ts +3 -0
  197. package/dist/src/platforms/slack/commands/file.d.ts.map +1 -0
  198. package/dist/src/platforms/slack/commands/file.js +113 -0
  199. package/dist/src/platforms/slack/commands/file.js.map +1 -0
  200. package/dist/src/platforms/slack/commands/index.d.ts +9 -0
  201. package/dist/src/platforms/slack/commands/index.d.ts.map +1 -0
  202. package/dist/src/platforms/slack/commands/index.js +9 -0
  203. package/dist/src/platforms/slack/commands/index.js.map +1 -0
  204. package/dist/src/platforms/slack/commands/message.d.ts +3 -0
  205. package/dist/src/platforms/slack/commands/message.d.ts.map +1 -0
  206. package/dist/src/platforms/slack/commands/message.js +263 -0
  207. package/dist/src/platforms/slack/commands/message.js.map +1 -0
  208. package/dist/src/platforms/slack/commands/reaction.d.ts +3 -0
  209. package/dist/src/platforms/slack/commands/reaction.d.ts.map +1 -0
  210. package/dist/src/platforms/slack/commands/reaction.js +100 -0
  211. package/dist/src/platforms/slack/commands/reaction.js.map +1 -0
  212. package/dist/src/platforms/slack/commands/snapshot.d.ts +3 -0
  213. package/dist/src/platforms/slack/commands/snapshot.d.ts.map +1 -0
  214. package/dist/src/platforms/slack/commands/snapshot.js +87 -0
  215. package/dist/src/platforms/slack/commands/snapshot.js.map +1 -0
  216. package/dist/src/platforms/slack/commands/user.d.ts +3 -0
  217. package/dist/src/platforms/slack/commands/user.d.ts.map +1 -0
  218. package/dist/src/platforms/slack/commands/user.js +96 -0
  219. package/dist/src/platforms/slack/commands/user.js.map +1 -0
  220. package/dist/src/platforms/slack/commands/workspace.d.ts +3 -0
  221. package/dist/src/platforms/slack/commands/workspace.d.ts.map +1 -0
  222. package/dist/src/platforms/slack/commands/workspace.js +89 -0
  223. package/dist/src/platforms/slack/commands/workspace.js.map +1 -0
  224. package/dist/src/platforms/slack/credential-manager.d.ts +13 -0
  225. package/dist/src/platforms/slack/credential-manager.d.ts.map +1 -0
  226. package/dist/src/platforms/slack/credential-manager.js +58 -0
  227. package/dist/src/platforms/slack/credential-manager.js.map +1 -0
  228. package/dist/src/platforms/slack/index.d.ts +3 -0
  229. package/dist/src/platforms/slack/index.d.ts.map +1 -0
  230. package/dist/src/platforms/slack/index.js +3 -0
  231. package/dist/src/platforms/slack/index.js.map +1 -0
  232. package/dist/src/platforms/slack/token-extractor.d.ts +28 -0
  233. package/dist/src/platforms/slack/token-extractor.d.ts.map +1 -0
  234. package/dist/src/platforms/slack/token-extractor.js +401 -0
  235. package/dist/src/platforms/slack/token-extractor.js.map +1 -0
  236. package/dist/src/platforms/slack/types.d.ts +369 -0
  237. package/dist/src/platforms/slack/types.d.ts.map +1 -0
  238. package/dist/src/platforms/slack/types.js +92 -0
  239. package/dist/src/platforms/slack/types.js.map +1 -0
  240. package/dist/src/shared/utils/concurrency.d.ts +2 -0
  241. package/dist/src/shared/utils/concurrency.d.ts.map +1 -0
  242. package/dist/src/shared/utils/concurrency.js +14 -0
  243. package/dist/src/shared/utils/concurrency.js.map +1 -0
  244. package/dist/src/shared/utils/concurrency.test.d.ts +2 -0
  245. package/dist/src/shared/utils/concurrency.test.d.ts.map +1 -0
  246. package/dist/src/shared/utils/concurrency.test.js +39 -0
  247. package/dist/src/shared/utils/concurrency.test.js.map +1 -0
  248. package/dist/src/shared/utils/error-handler.d.ts +2 -0
  249. package/dist/src/shared/utils/error-handler.d.ts.map +1 -0
  250. package/dist/src/shared/utils/error-handler.js +5 -0
  251. package/dist/src/shared/utils/error-handler.js.map +1 -0
  252. package/dist/src/shared/utils/output.d.ts +2 -0
  253. package/dist/src/shared/utils/output.d.ts.map +1 -0
  254. package/dist/src/shared/utils/output.js +4 -0
  255. package/dist/src/shared/utils/output.js.map +1 -0
  256. package/dist/tests/cli.test.d.ts +2 -0
  257. package/dist/tests/cli.test.d.ts.map +1 -0
  258. package/dist/tests/cli.test.js +83 -0
  259. package/dist/tests/cli.test.js.map +1 -0
  260. package/dist/tests/commands/.test-slack-data/Local Storage/leveldb/CURRENT +1 -0
  261. package/dist/tests/commands/.test-slack-data/Local Storage/leveldb/LOCK +0 -0
  262. package/dist/tests/commands/.test-slack-data/Local Storage/leveldb/LOG +3 -0
  263. package/dist/tests/commands/.test-slack-data/Local Storage/leveldb/LOG.old +1 -0
  264. package/dist/tests/commands/.test-slack-data/Local Storage/leveldb/MANIFEST-000004 +0 -0
  265. package/dist/tests/commands/auth.test.d.ts +2 -0
  266. package/dist/tests/commands/auth.test.d.ts.map +1 -0
  267. package/dist/tests/commands/auth.test.js +304 -0
  268. package/dist/tests/commands/auth.test.js.map +1 -0
  269. package/dist/tests/commands/channel.test.d.ts +2 -0
  270. package/dist/tests/commands/channel.test.d.ts.map +1 -0
  271. package/dist/tests/commands/channel.test.js +166 -0
  272. package/dist/tests/commands/channel.test.js.map +1 -0
  273. package/dist/tests/commands/file.test.d.ts +2 -0
  274. package/dist/tests/commands/file.test.d.ts.map +1 -0
  275. package/dist/tests/commands/file.test.js +175 -0
  276. package/dist/tests/commands/file.test.js.map +1 -0
  277. package/dist/tests/commands/message.test.d.ts +2 -0
  278. package/dist/tests/commands/message.test.d.ts.map +1 -0
  279. package/dist/tests/commands/message.test.js +293 -0
  280. package/dist/tests/commands/message.test.js.map +1 -0
  281. package/dist/tests/commands/reaction.test.d.ts +2 -0
  282. package/dist/tests/commands/reaction.test.d.ts.map +1 -0
  283. package/dist/tests/commands/reaction.test.js +84 -0
  284. package/dist/tests/commands/reaction.test.js.map +1 -0
  285. package/dist/tests/commands/snapshot.test.d.ts +2 -0
  286. package/dist/tests/commands/snapshot.test.d.ts.map +1 -0
  287. package/dist/tests/commands/snapshot.test.js +280 -0
  288. package/dist/tests/commands/snapshot.test.js.map +1 -0
  289. package/dist/tests/commands/user.test.d.ts +2 -0
  290. package/dist/tests/commands/user.test.d.ts.map +1 -0
  291. package/dist/tests/commands/user.test.js +117 -0
  292. package/dist/tests/commands/user.test.js.map +1 -0
  293. package/dist/tests/commands/workspace.test.d.ts +2 -0
  294. package/dist/tests/commands/workspace.test.d.ts.map +1 -0
  295. package/dist/tests/commands/workspace.test.js +453 -0
  296. package/dist/tests/commands/workspace.test.js.map +1 -0
  297. package/dist/tests/credential-manager.test.d.ts +2 -0
  298. package/dist/tests/credential-manager.test.d.ts.map +1 -0
  299. package/dist/tests/credential-manager.test.js +199 -0
  300. package/dist/tests/credential-manager.test.js.map +1 -0
  301. package/dist/tests/slack-client.test.d.ts +2 -0
  302. package/dist/tests/slack-client.test.d.ts.map +1 -0
  303. package/dist/tests/slack-client.test.js +741 -0
  304. package/dist/tests/slack-client.test.js.map +1 -0
  305. package/dist/tests/types.test.d.ts +2 -0
  306. package/dist/tests/types.test.d.ts.map +1 -0
  307. package/dist/tests/types.test.js +215 -0
  308. package/dist/tests/types.test.js.map +1 -0
  309. package/dist/types/index.d.ts +369 -0
  310. package/dist/types/index.d.ts.map +1 -0
  311. package/dist/types/index.js +92 -0
  312. package/dist/types/index.js.map +1 -0
  313. package/dist/utils/error-handler.d.ts +2 -0
  314. package/dist/utils/error-handler.d.ts.map +1 -0
  315. package/dist/utils/error-handler.js +5 -0
  316. package/dist/utils/error-handler.js.map +1 -0
  317. package/dist/utils/output.d.ts +2 -0
  318. package/dist/utils/output.d.ts.map +1 -0
  319. package/dist/utils/output.js +4 -0
  320. package/dist/utils/output.js.map +1 -0
  321. package/docs/discord.md +182 -0
  322. package/docs/slack.md +160 -0
  323. package/package.json +37 -0
  324. package/skills/agent-discord/SKILL.md +273 -0
  325. package/skills/agent-discord/references/authentication.md +294 -0
  326. package/skills/agent-discord/references/common-patterns.md +455 -0
  327. package/skills/agent-discord/templates/guild-summary.sh +167 -0
  328. package/skills/agent-discord/templates/monitor-channel.sh +180 -0
  329. package/skills/agent-discord/templates/post-message.sh +173 -0
  330. package/skills/agent-slack/SKILL.md +268 -0
  331. package/skills/agent-slack/references/authentication.md +332 -0
  332. package/skills/agent-slack/references/common-patterns.md +527 -0
  333. package/skills/agent-slack/templates/monitor-channel.sh +186 -0
  334. package/skills/agent-slack/templates/post-message.sh +130 -0
  335. package/skills/agent-slack/templates/workspace-summary.sh +149 -0
  336. package/src/cli.ts +29 -0
  337. package/src/platforms/discord/cli.ts +36 -0
  338. package/src/platforms/discord/client.test.ts +456 -0
  339. package/src/platforms/discord/client.ts +281 -0
  340. package/src/platforms/discord/commands/auth.test.ts +72 -0
  341. package/src/platforms/discord/commands/auth.ts +206 -0
  342. package/src/platforms/discord/commands/channel.test.ts +153 -0
  343. package/src/platforms/discord/commands/channel.ts +127 -0
  344. package/src/platforms/discord/commands/file.test.ts +98 -0
  345. package/src/platforms/discord/commands/file.ts +134 -0
  346. package/src/platforms/discord/commands/guild.test.ts +117 -0
  347. package/src/platforms/discord/commands/guild.ts +129 -0
  348. package/src/platforms/discord/commands/index.ts +8 -0
  349. package/src/platforms/discord/commands/message.test.ts +107 -0
  350. package/src/platforms/discord/commands/message.ts +182 -0
  351. package/src/platforms/discord/commands/reaction.test.ts +123 -0
  352. package/src/platforms/discord/commands/reaction.ts +156 -0
  353. package/src/platforms/discord/commands/snapshot.test.ts +29 -0
  354. package/src/platforms/discord/commands/snapshot.ts +104 -0
  355. package/src/platforms/discord/commands/user.test.ts +115 -0
  356. package/src/platforms/discord/commands/user.ts +124 -0
  357. package/src/platforms/discord/credential-manager.test.ts +173 -0
  358. package/src/platforms/discord/credential-manager.ts +95 -0
  359. package/src/platforms/discord/token-extractor.test.ts +918 -0
  360. package/src/platforms/discord/token-extractor.ts +549 -0
  361. package/src/platforms/discord/types.test.ts +245 -0
  362. package/src/platforms/discord/types.ts +158 -0
  363. package/src/platforms/slack/cli.ts +36 -0
  364. package/src/platforms/slack/client.ts +466 -0
  365. package/src/platforms/slack/commands/auth.ts +211 -0
  366. package/src/platforms/slack/commands/channel.ts +158 -0
  367. package/src/platforms/slack/commands/file.ts +153 -0
  368. package/src/platforms/slack/commands/index.ts +8 -0
  369. package/src/platforms/slack/commands/message.ts +369 -0
  370. package/src/platforms/slack/commands/reaction.ts +166 -0
  371. package/src/platforms/slack/commands/snapshot.ts +114 -0
  372. package/src/platforms/slack/commands/user.ts +110 -0
  373. package/src/platforms/slack/commands/workspace.ts +111 -0
  374. package/src/platforms/slack/credential-manager.ts +74 -0
  375. package/src/platforms/slack/index.ts +2 -0
  376. package/src/platforms/slack/token-extractor.ts +496 -0
  377. package/src/platforms/slack/types.ts +193 -0
  378. package/src/shared/utils/concurrency.test.ts +53 -0
  379. package/src/shared/utils/concurrency.ts +20 -0
  380. package/src/shared/utils/error-handler.ts +4 -0
  381. package/src/shared/utils/output.ts +3 -0
  382. package/tests/cli.test.ts +94 -0
  383. package/tests/commands/auth.test.ts +383 -0
  384. package/tests/commands/channel.test.ts +185 -0
  385. package/tests/commands/file.test.ts +204 -0
  386. package/tests/commands/message.test.ts +344 -0
  387. package/tests/commands/reaction.test.ts +101 -0
  388. package/tests/commands/snapshot.test.ts +308 -0
  389. package/tests/commands/user.test.ts +138 -0
  390. package/tests/commands/workspace.test.ts +528 -0
  391. package/tests/credential-manager.test.ts +241 -0
  392. package/tests/slack-client.test.ts +916 -0
  393. package/tests/types.test.ts +241 -0
  394. package/tsconfig.json +36 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../../../src/platforms/slack/commands/channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAgInC,eAAO,MAAM,cAAc,SA6BxB,CAAA"}
@@ -0,0 +1,118 @@
1
+ import { Command } from 'commander';
2
+ import { handleError } from '../../../shared/utils/error-handler';
3
+ import { formatOutput } from '../../../shared/utils/output';
4
+ import { SlackClient } from '../client';
5
+ import { CredentialManager } from '../credential-manager';
6
+ async function listAction(options) {
7
+ try {
8
+ const credManager = new CredentialManager();
9
+ const workspace = await credManager.getWorkspace();
10
+ if (!workspace) {
11
+ console.log(formatOutput({ error: 'No current workspace set. Run "auth extract" first.' }, options.pretty));
12
+ process.exit(1);
13
+ }
14
+ const client = new SlackClient(workspace.token, workspace.cookie);
15
+ let channels = await client.listChannels();
16
+ if (!options.includeArchived) {
17
+ channels = channels.filter((c) => !c.is_archived);
18
+ }
19
+ if (options.type === 'public') {
20
+ channels = channels.filter((c) => !c.is_private);
21
+ }
22
+ else if (options.type === 'private') {
23
+ channels = channels.filter((c) => c.is_private);
24
+ }
25
+ else if (options.type === 'dm') {
26
+ channels = [];
27
+ }
28
+ const output = channels.map((ch) => ({
29
+ id: ch.id,
30
+ name: ch.name,
31
+ is_private: ch.is_private,
32
+ ...(options.includeArchived && { is_archived: ch.is_archived }),
33
+ created: ch.created,
34
+ topic: ch.topic?.value,
35
+ purpose: ch.purpose?.value,
36
+ }));
37
+ console.log(formatOutput(output, options.pretty));
38
+ }
39
+ catch (error) {
40
+ handleError(error);
41
+ }
42
+ }
43
+ async function infoAction(channel, options) {
44
+ try {
45
+ const credManager = new CredentialManager();
46
+ const workspace = await credManager.getWorkspace();
47
+ if (!workspace) {
48
+ console.log(formatOutput({ error: 'No current workspace set. Run "auth extract" first.' }, options.pretty));
49
+ process.exit(1);
50
+ }
51
+ const client = new SlackClient(workspace.token, workspace.cookie);
52
+ const ch = await client.getChannel(channel);
53
+ const output = {
54
+ id: ch.id,
55
+ name: ch.name,
56
+ is_private: ch.is_private,
57
+ is_archived: ch.is_archived,
58
+ created: ch.created,
59
+ creator: ch.creator,
60
+ topic: ch.topic,
61
+ purpose: ch.purpose,
62
+ };
63
+ console.log(formatOutput(output, options.pretty));
64
+ }
65
+ catch (error) {
66
+ handleError(error);
67
+ }
68
+ }
69
+ async function historyAction(channel, options) {
70
+ try {
71
+ const credManager = new CredentialManager();
72
+ const workspace = await credManager.getWorkspace();
73
+ if (!workspace) {
74
+ console.log(formatOutput({ error: 'No current workspace set. Run "auth extract" first.' }, options.pretty));
75
+ process.exit(1);
76
+ }
77
+ const client = new SlackClient(workspace.token, workspace.cookie);
78
+ const messages = await client.getMessages(channel, options.limit || 20);
79
+ const output = messages.map((msg) => ({
80
+ ts: msg.ts,
81
+ text: msg.text,
82
+ user: msg.user,
83
+ username: msg.username,
84
+ type: msg.type,
85
+ thread_ts: msg.thread_ts,
86
+ reply_count: msg.reply_count,
87
+ }));
88
+ console.log(formatOutput(output, options.pretty));
89
+ }
90
+ catch (error) {
91
+ handleError(error);
92
+ }
93
+ }
94
+ export const channelCommand = new Command('channel')
95
+ .description('Channel commands')
96
+ .addCommand(new Command('list')
97
+ .description('List channels')
98
+ .option('--type <public|private|dm>', 'Filter by channel type')
99
+ .option('--include-archived', 'Include archived channels')
100
+ .option('--pretty', 'Pretty print JSON output')
101
+ .action(listAction))
102
+ .addCommand(new Command('info')
103
+ .description('Get channel info')
104
+ .argument('<channel>', 'Channel ID or name')
105
+ .option('--pretty', 'Pretty print JSON output')
106
+ .action(infoAction))
107
+ .addCommand(new Command('history')
108
+ .description('Get channel message history (alias for message list)')
109
+ .argument('<channel>', 'Channel ID or name')
110
+ .option('--limit <n>', 'Number of messages to fetch', '20')
111
+ .option('--pretty', 'Pretty print JSON output')
112
+ .action((channel, options) => {
113
+ historyAction(channel, {
114
+ limit: parseInt(options.limit, 10),
115
+ pretty: options.pretty,
116
+ });
117
+ }));
118
+ //# sourceMappingURL=channel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel.js","sourceRoot":"","sources":["../../../../../src/platforms/slack/commands/channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAEzD,KAAK,UAAU,UAAU,CAAC,OAIzB;IACC,IAAI,CAAC;QACH,MAAM,WAAW,GAAG,IAAI,iBAAiB,EAAE,CAAA;QAC3C,MAAM,SAAS,GAAG,MAAM,WAAW,CAAC,YAAY,EAAE,CAAA;QAElD,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,OAAO,CAAC,GAAG,CACT,YAAY,CACV,EAAE,KAAK,EAAE,qDAAqD,EAAE,EAChE,OAAO,CAAC,MAAM,CACf,CACF,CAAA;YACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QACjB,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,WAAW,CAAC,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;QACjE,IAAI,QAAQ,GAAG,MAAM,MAAM,CAAC,YAAY,EAAE,CAAA;QAE1C,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC;YAC7B,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAA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AC,MAAM,CAAC;KAChB,WAAW,CAAC,kBAAkB,CAAC;KAC/B,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;KAC3C,MAAM,CAAC,UAAU,EAAE,0BAA0B,CAAC;KAC9C,MAAM,CAAC,UAAU,CAAC,CACtB;KACA,UAAU,CACT,IAAI,OAAO,CAAC,SAAS,CAAC;KACnB,WAAW,CAAC,sDAAsD,CAAC;KACnE,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;KAC3C,MAAM,CAAC,aAAa,EAAE,6BAA6B,EAAE,IAAI,CAAC;KAC1D,MAAM,CAAC,UAAU,EAAE,0BAA0B,CAAC;KAC9C,MAAM,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE;IAC3B,aAAa,CAAC,OAAO,EAAE;QACrB,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;QAClC,MAAM,EAAE,OAAO,CAAC,MAAM;KACvB,CAAC,CAAA;AACJ,CAAC,CAAC,CACL,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare const fileCommand: Command;
3
+ //# sourceMappingURL=file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../../src/platforms/slack/commands/file.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAiInC,eAAO,MAAM,WAAW,SAqBrB,CAAA"}
@@ -0,0 +1,113 @@
1
+ import { readFileSync } from 'node:fs';
2
+ import { resolve } from 'node:path';
3
+ import { Command } from 'commander';
4
+ import { handleError } from '../../../shared/utils/error-handler';
5
+ import { formatOutput } from '../../../shared/utils/output';
6
+ import { SlackClient } from '../client';
7
+ import { CredentialManager } from '../credential-manager';
8
+ async function uploadAction(channel, path, options) {
9
+ try {
10
+ const credManager = new CredentialManager();
11
+ const workspace = await credManager.getWorkspace();
12
+ if (!workspace) {
13
+ console.log(formatOutput({ error: 'No current workspace set. Run "auth extract" first.' }, options.pretty));
14
+ process.exit(1);
15
+ }
16
+ const client = new SlackClient(workspace.token, workspace.cookie);
17
+ const filePath = resolve(path);
18
+ const fileBuffer = readFileSync(filePath);
19
+ const filename = options.filename || filePath.split('/').pop() || 'file';
20
+ const file = await client.uploadFile([channel], fileBuffer, filename);
21
+ const output = {
22
+ id: file.id,
23
+ name: file.name,
24
+ title: file.title,
25
+ mimetype: file.mimetype,
26
+ size: file.size,
27
+ url_private: file.url_private,
28
+ created: file.created,
29
+ user: file.user,
30
+ channels: file.channels,
31
+ };
32
+ console.log(formatOutput(output, options.pretty));
33
+ }
34
+ catch (error) {
35
+ handleError(error);
36
+ }
37
+ }
38
+ async function listAction(options) {
39
+ try {
40
+ const credManager = new CredentialManager();
41
+ const workspace = await credManager.getWorkspace();
42
+ if (!workspace) {
43
+ console.log(formatOutput({ error: 'No current workspace set. Run "auth extract" first.' }, options.pretty));
44
+ process.exit(1);
45
+ }
46
+ const client = new SlackClient(workspace.token, workspace.cookie);
47
+ const files = await client.listFiles(options.channel);
48
+ const output = files.map((file) => ({
49
+ id: file.id,
50
+ name: file.name,
51
+ title: file.title,
52
+ mimetype: file.mimetype,
53
+ size: file.size,
54
+ url_private: file.url_private,
55
+ created: file.created,
56
+ user: file.user,
57
+ channels: file.channels,
58
+ }));
59
+ console.log(formatOutput(output, options.pretty));
60
+ }
61
+ catch (error) {
62
+ handleError(error);
63
+ }
64
+ }
65
+ async function infoAction(fileId, options) {
66
+ try {
67
+ const credManager = new CredentialManager();
68
+ const workspace = await credManager.getWorkspace();
69
+ if (!workspace) {
70
+ console.log(formatOutput({ error: 'No current workspace set. Run "auth extract" first.' }, options.pretty));
71
+ process.exit(1);
72
+ }
73
+ const client = new SlackClient(workspace.token, workspace.cookie);
74
+ const files = await client.listFiles();
75
+ const fileData = files.find((f) => f.id === fileId);
76
+ if (!fileData) {
77
+ console.log(formatOutput({ error: `File not found: ${fileId}` }, options.pretty));
78
+ process.exit(1);
79
+ }
80
+ const output = {
81
+ id: fileData.id,
82
+ name: fileData.name,
83
+ title: fileData.title,
84
+ mimetype: fileData.mimetype,
85
+ size: fileData.size,
86
+ url_private: fileData.url_private,
87
+ created: fileData.created,
88
+ user: fileData.user,
89
+ channels: fileData.channels,
90
+ };
91
+ console.log(formatOutput(output, options.pretty));
92
+ }
93
+ catch (error) {
94
+ handleError(error);
95
+ }
96
+ }
97
+ export const fileCommand = new Command('file')
98
+ .description('file commands')
99
+ .addCommand(new Command('upload')
100
+ .description('upload file to channel')
101
+ .argument('<channel>', 'channel ID or name')
102
+ .argument('<path>', 'file path')
103
+ .option('--filename <name>', 'override filename')
104
+ .action(uploadAction))
105
+ .addCommand(new Command('list')
106
+ .description('list files in workspace')
107
+ .option('--channel <id>', 'filter by channel')
108
+ .action(listAction))
109
+ .addCommand(new Command('info')
110
+ .description('show file details')
111
+ .argument('<file>', 'file ID')
112
+ .action(infoAction));
113
+ //# sourceMappingURL=file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.js","sourceRoot":"","sources":["../../../../../src/platforms/slack/commands/file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAEzD,KAAK,UAAU,YAAY,CACzB,OAAe,EACf,IAAY,EACZ,OAAgD;IAEhD,IAAI,CAAC;QACH,MAAM,WAAW,GAAG,IAAI,iBAAiB,EAAE,CAAA;QAC3C,MAAM,SAAS,GAAG,MAAM,WAAW,CAAC,YA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,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAA;IACnD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,WAAW,CAAC,KAAc,CAAC,CAAA;IAC7B,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC;KAC3C,WAAW,CAAC,eAAe,CAAC;KAC5B,UAAU,CACT,IAAI,OAAO,CAAC,QAAQ,CAAC;KAClB,WAAW,CAAC,wBAAwB,CAAC;KACrC,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;KAC3C,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC;KAC/B,MAAM,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;KAChD,MAAM,CAAC,YAAY,CAAC,CACxB;KACA,UAAU,CACT,IAAI,OAAO,CAAC,MAAM,CAAC;KAChB,WAAW,CAAC,yBAAyB,CAAC;KACtC,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC;KAC7C,MAAM,CAAC,UAAU,CAAC,CACtB;KACA,UAAU,CACT,IAAI,OAAO,CAAC,MAAM,CAAC;KAChB,WAAW,CAAC,mBAAmB,CAAC;KAChC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;KAC7B,MAAM,CAAC,UAAU,CAAC,CACtB,CAAA"}
@@ -0,0 +1,9 @@
1
+ export { authCommand } from './auth';
2
+ export { channelCommand } from './channel';
3
+ export { fileCommand } from './file';
4
+ export { messageCommand } from './message';
5
+ export { reactionCommand } from './reaction';
6
+ export { snapshotCommand } from './snapshot';
7
+ export { userCommand } from './user';
8
+ export { workspaceCommand } from './workspace';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/platforms/slack/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA"}
@@ -0,0 +1,9 @@
1
+ export { authCommand } from './auth';
2
+ export { channelCommand } from './channel';
3
+ export { fileCommand } from './file';
4
+ export { messageCommand } from './message';
5
+ export { reactionCommand } from './reaction';
6
+ export { snapshotCommand } from './snapshot';
7
+ export { userCommand } from './user';
8
+ export { workspaceCommand } from './workspace';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/platforms/slack/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare const messageCommand: Command;
3
+ //# sourceMappingURL=message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../../../src/platforms/slack/commands/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAwRnC,eAAO,MAAM,cAAc,SAwFxB,CAAA"}
@@ -0,0 +1,263 @@
1
+ import { Command } from 'commander';
2
+ import { handleError } from '../../../shared/utils/error-handler';
3
+ import { formatOutput } from '../../../shared/utils/output';
4
+ import { SlackClient } from '../client';
5
+ import { CredentialManager } from '../credential-manager';
6
+ async function sendAction(channel, text, options) {
7
+ try {
8
+ const credManager = new CredentialManager();
9
+ const workspace = await credManager.getWorkspace();
10
+ if (!workspace) {
11
+ console.log(formatOutput({ error: 'No current workspace set. Run "auth extract" first.' }, options.pretty));
12
+ process.exit(1);
13
+ }
14
+ const client = new SlackClient(workspace.token, workspace.cookie);
15
+ const message = await client.sendMessage(channel, text, options.thread);
16
+ const output = {
17
+ ts: message.ts,
18
+ text: message.text,
19
+ type: message.type,
20
+ user: message.user,
21
+ thread_ts: message.thread_ts,
22
+ };
23
+ console.log(formatOutput(output, options.pretty));
24
+ }
25
+ catch (error) {
26
+ handleError(error);
27
+ }
28
+ }
29
+ async function listAction(channel, options) {
30
+ try {
31
+ const credManager = new CredentialManager();
32
+ const workspace = await credManager.getWorkspace();
33
+ if (!workspace) {
34
+ console.log(formatOutput({ error: 'No current workspace set. Run "auth extract" first.' }, options.pretty));
35
+ process.exit(1);
36
+ }
37
+ const client = new SlackClient(workspace.token, workspace.cookie);
38
+ const limit = options.limit || 20;
39
+ const messages = await client.getMessages(channel, limit);
40
+ const output = messages.map((msg) => ({
41
+ ts: msg.ts,
42
+ text: msg.text,
43
+ type: msg.type,
44
+ user: msg.user,
45
+ username: msg.username,
46
+ thread_ts: msg.thread_ts,
47
+ reply_count: msg.reply_count,
48
+ edited: msg.edited,
49
+ }));
50
+ console.log(formatOutput(output, options.pretty));
51
+ }
52
+ catch (error) {
53
+ handleError(error);
54
+ }
55
+ }
56
+ async function getAction(channel, ts, options) {
57
+ try {
58
+ const credManager = new CredentialManager();
59
+ const workspace = await credManager.getWorkspace();
60
+ if (!workspace) {
61
+ console.log(formatOutput({ error: 'No current workspace set. Run "auth extract" first.' }, options.pretty));
62
+ process.exit(1);
63
+ }
64
+ const client = new SlackClient(workspace.token, workspace.cookie);
65
+ const message = await client.getMessage(channel, ts);
66
+ if (!message) {
67
+ console.log(formatOutput({ error: `Message not found: ${ts}` }, options.pretty));
68
+ process.exit(1);
69
+ }
70
+ const output = {
71
+ ts: message.ts,
72
+ text: message.text,
73
+ type: message.type,
74
+ user: message.user,
75
+ username: message.username,
76
+ thread_ts: message.thread_ts,
77
+ reply_count: message.reply_count,
78
+ edited: message.edited,
79
+ };
80
+ console.log(formatOutput(output, options.pretty));
81
+ }
82
+ catch (error) {
83
+ handleError(error);
84
+ }
85
+ }
86
+ async function updateAction(channel, ts, text, options) {
87
+ try {
88
+ const credManager = new CredentialManager();
89
+ const workspace = await credManager.getWorkspace();
90
+ if (!workspace) {
91
+ console.log(formatOutput({ error: 'No current workspace set. Run "auth extract" first.' }, options.pretty));
92
+ process.exit(1);
93
+ }
94
+ const client = new SlackClient(workspace.token, workspace.cookie);
95
+ const message = await client.updateMessage(channel, ts, text);
96
+ const output = {
97
+ ts: message.ts,
98
+ text: message.text,
99
+ type: message.type,
100
+ user: message.user,
101
+ };
102
+ console.log(formatOutput(output, options.pretty));
103
+ }
104
+ catch (error) {
105
+ handleError(error);
106
+ }
107
+ }
108
+ async function deleteAction(channel, ts, options) {
109
+ try {
110
+ const credManager = new CredentialManager();
111
+ const workspace = await credManager.getWorkspace();
112
+ if (!workspace) {
113
+ console.log(formatOutput({ error: 'No current workspace set. Run "auth extract" first.' }, options.pretty));
114
+ process.exit(1);
115
+ }
116
+ if (!options.force) {
117
+ console.log(formatOutput({ warning: 'Use --force to confirm deletion', ts }, options.pretty));
118
+ process.exit(0);
119
+ }
120
+ const client = new SlackClient(workspace.token, workspace.cookie);
121
+ await client.deleteMessage(channel, ts);
122
+ console.log(formatOutput({ deleted: ts }, options.pretty));
123
+ }
124
+ catch (error) {
125
+ handleError(error);
126
+ }
127
+ }
128
+ async function searchAction(query, options) {
129
+ try {
130
+ const credManager = new CredentialManager();
131
+ const workspace = await credManager.getWorkspace();
132
+ if (!workspace) {
133
+ console.log(formatOutput({ error: 'No current workspace set. Run "auth extract" first.' }, options.pretty));
134
+ process.exit(1);
135
+ }
136
+ const client = new SlackClient(workspace.token, workspace.cookie);
137
+ const results = await client.searchMessages(query, {
138
+ sort: options.sort,
139
+ sortDir: options.sortDir,
140
+ count: options.limit || 20,
141
+ });
142
+ const output = results.map((result) => ({
143
+ ts: result.ts,
144
+ text: result.text,
145
+ user: result.user,
146
+ username: result.username,
147
+ channel_id: result.channel.id,
148
+ channel_name: result.channel.name,
149
+ permalink: result.permalink,
150
+ }));
151
+ console.log(formatOutput(output, options.pretty));
152
+ }
153
+ catch (error) {
154
+ handleError(error);
155
+ }
156
+ }
157
+ async function repliesAction(channel, threadTs, options) {
158
+ try {
159
+ const credManager = new CredentialManager();
160
+ const workspace = await credManager.getWorkspace();
161
+ if (!workspace) {
162
+ console.log(formatOutput({ error: 'No current workspace set. Run "auth extract" first.' }, options.pretty));
163
+ process.exit(1);
164
+ }
165
+ const client = new SlackClient(workspace.token, workspace.cookie);
166
+ const result = await client.getThreadReplies(channel, threadTs, {
167
+ limit: options.limit,
168
+ oldest: options.oldest,
169
+ latest: options.latest,
170
+ cursor: options.cursor,
171
+ });
172
+ const output = result.messages.map((msg) => ({
173
+ ts: msg.ts,
174
+ text: msg.text,
175
+ type: msg.type,
176
+ user: msg.user,
177
+ username: msg.username,
178
+ thread_ts: msg.thread_ts,
179
+ reply_count: msg.reply_count,
180
+ edited: msg.edited,
181
+ }));
182
+ console.log(formatOutput(output, options.pretty));
183
+ }
184
+ catch (error) {
185
+ handleError(error);
186
+ }
187
+ }
188
+ export const messageCommand = new Command('message')
189
+ .description('Message commands')
190
+ .addCommand(new Command('send')
191
+ .description('Send message to channel')
192
+ .argument('<channel>', 'Channel ID or name')
193
+ .argument('<text>', 'Message text')
194
+ .option('--thread <ts>', 'Thread timestamp for replies')
195
+ .option('--pretty', 'Pretty print JSON output')
196
+ .action(sendAction))
197
+ .addCommand(new Command('list')
198
+ .description('List messages from channel')
199
+ .argument('<channel>', 'Channel ID or name')
200
+ .option('--limit <n>', 'Number of messages to retrieve', '20')
201
+ .option('--thread <ts>', 'Filter by thread timestamp')
202
+ .option('--pretty', 'Pretty print JSON output')
203
+ .action((channel, options) => {
204
+ listAction(channel, {
205
+ limit: parseInt(options.limit, 10),
206
+ thread: options.thread,
207
+ pretty: options.pretty,
208
+ });
209
+ }))
210
+ .addCommand(new Command('get')
211
+ .description('Get a single message by timestamp')
212
+ .argument('<channel>', 'Channel ID or name')
213
+ .argument('<ts>', 'Message timestamp')
214
+ .option('--pretty', 'Pretty print JSON output')
215
+ .action(getAction))
216
+ .addCommand(new Command('update')
217
+ .description('Update message text')
218
+ .argument('<channel>', 'Channel ID or name')
219
+ .argument('<ts>', 'Message timestamp')
220
+ .argument('<text>', 'New message text')
221
+ .option('--pretty', 'Pretty print JSON output')
222
+ .action(updateAction))
223
+ .addCommand(new Command('delete')
224
+ .description('Delete message')
225
+ .argument('<channel>', 'Channel ID or name')
226
+ .argument('<ts>', 'Message timestamp')
227
+ .option('--force', 'Skip confirmation')
228
+ .option('--pretty', 'Pretty print JSON output')
229
+ .action(deleteAction))
230
+ .addCommand(new Command('search')
231
+ .description('Search messages across workspace')
232
+ .argument('<query>', 'Search query')
233
+ .option('--sort <type>', 'Sort by: score, timestamp (default: timestamp)')
234
+ .option('--sort-dir <dir>', 'Sort direction: asc, desc (default: desc)')
235
+ .option('--limit <n>', 'Number of results', '20')
236
+ .option('--pretty', 'Pretty print JSON output')
237
+ .action((query, options) => {
238
+ searchAction(query, {
239
+ sort: options.sort,
240
+ sortDir: options.sortDir,
241
+ limit: parseInt(options.limit, 10),
242
+ pretty: options.pretty,
243
+ });
244
+ }))
245
+ .addCommand(new Command('replies')
246
+ .description('Get thread replies')
247
+ .argument('<channel>', 'Channel ID or name')
248
+ .argument('<thread_ts>', 'Thread timestamp')
249
+ .option('--limit <n>', 'Number of replies to retrieve', '100')
250
+ .option('--oldest <ts>', 'Only messages after this timestamp')
251
+ .option('--latest <ts>', 'Only messages before this timestamp')
252
+ .option('--cursor <cursor>', 'Pagination cursor for next page')
253
+ .option('--pretty', 'Pretty print JSON output')
254
+ .action((channel, threadTs, options) => {
255
+ repliesAction(channel, threadTs, {
256
+ limit: options.limit ? parseInt(options.limit, 10) : undefined,
257
+ oldest: options.oldest,
258
+ latest: options.latest,
259
+ cursor: options.cursor,
260
+ pretty: options.pretty,
261
+ });
262
+ }));
263
+ //# sourceMappingURL=message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.js","sourceRoot":"","sources":["../../../../../src/platforms/slack/commands/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAGzD,KAAK,UAAU,UAAU,CACvB,OAAe,EACf,IAAY,EACZ,OAA8C;IAE9C,IAAI,CAAC;QACH,MAAM,WAAW,GAAG,IAAI,iBAAiB,EAAE,CAAA;QAC3C,MAAM,SAAS,GAAG,MAAM,WAAW,CAAC,YAAY,EAAE,CAAA;QAElD,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,OAAO,CAAC,GAAG,CACT,YAAY,CACV,EAAE,KAAK,EAAE,qDAAqD,EAAE,EAChE,OAAO,CAAC,MAAM,CACf,CACF,CAAA;YACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QACjB,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,WAAW,CAAC,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,MAAM,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AAI;QAClB,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;QAClC,MAAM,EAAE,OAAO,CAAC,MAAM;KACvB,CAAC,CAAA;AACJ,CAAC,CAAC,CACL;KACA,UAAU,CACT,IAAI,OAAO,CAAC,SAAS,CAAC;KACnB,WAAW,CAAC,oBAAoB,CAAC;KACjC,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;KAC3C,QAAQ,CAAC,aAAa,EAAE,kBAAkB,CAAC;KAC3C,MAAM,CAAC,aAAa,EAAE,+BAA+B,EAAE,KAAK,CAAC;KAC7D,MAAM,CAAC,eAAe,EAAE,oCAAoC,CAAC;KAC7D,MAAM,CAAC,eAAe,EAAE,qCAAqC,CAAC;KAC9D,MAAM,CAAC,mBAAmB,EAAE,iCAAiC,CAAC;KAC9D,MAAM,CAAC,UAAU,EAAE,0BAA0B,CAAC;KAC9C,MAAM,CAAC,CAAC,OAAe,EAAE,QAAgB,EAAE,OAAY,EAAE,EAAE;IAC1D,aAAa,CAAC,OAAO,EAAE,QAAQ,EAAE;QAC/B,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS;QAC9D,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,MAAM,EAAE,OAAO,CAAC,MAAM;KACvB,CAAC,CAAA;AACJ,CAAC,CAAC,CACL,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare const reactionCommand: Command;
3
+ //# sourceMappingURL=reaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reaction.d.ts","sourceRoot":"","sources":["../../../../../src/platforms/slack/commands/reaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AA0InC,eAAO,MAAM,eAAe,SA2BzB,CAAA"}