feat: add file upload command#95
Conversation
Adds a dedicated `file upload` subcommand as a more discoverable alternative to `message send --attach`. Supports uploading one or more files to channels, DMs, and threads with an optional comment. Usage: agent-slack file upload <target> <path> [--comment "text"] [--thread-ts <ts>] agent-slack file upload "#channel" ./report.md --attach ./data.csv Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add test/file-upload.test.ts with 4 tests covering single/multi file upload, --comment handling, and path deduplication - Add File section to commands.md reference - Add upload examples and triggers to SKILL.md - Add file upload to llms.txt feature list Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Thanks for putting this together. I agree with the underlying problem: file uploads through the CLI should be easier to discover. After looking through the implementation, I do not think we should add a new top-level I opened a docs-only PR that keeps your discoverability improvement but documents the existing path more clearly: #96. It covers file-only uploads, uploads with an initial comment, thread uploads, and multiple attachments via I am going to close this PR in favor of #96. If the documented path still proves hard for agents/users to find, I would reconsider this as a very thin alias over |
Summary
file uploadsubcommand as a more discoverable alternative tomessage send --attachuploadLocalFileToSlack()fromsrc/slack/upload.tsUsage
Test plan
bun run typecheckpassesbun run buildpasses