@eliya-oss/agent-slack 0.1.11 → 0.1.13

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.
@@ -22,7 +22,8 @@ Non-goal for v0: agent-side summarization. The CLI returns clean context; agents
22
22
  ## Global Flags
23
23
 
24
24
  ```bash
25
- agent-slack [--profile NAME] [--team TEAM_ID] [--token user|bot|admin|app]
25
+ agent-slack [--version] [--help]
26
+ [--profile NAME] [--team TEAM_ID] [--token user|bot|admin|app]
26
27
  [--json] [--format json|ndjson|table] [--pretty] [--full]
27
28
  [--fields FIELD[,FIELD...]]
28
29
  [--limit N] [--cursor CURSOR] [--all]
@@ -35,6 +36,7 @@ Defaults:
35
36
  - `--token user` for user-visible data.
36
37
  - `--format json` when stdout is not a TTY.
37
38
  - `--limit` uses Slack's method default unless a command defines a smaller agent-safe default.
39
+ - `--version` prints the CLI version as a bare line and exits `0`. `--help` prints the command catalog.
38
40
 
39
41
  ## Auth
40
42
 
@@ -116,6 +118,8 @@ agent-slack conversation context CHANNEL_ID [--since 24h] [--include users,threa
116
118
 
117
119
  `conversation context` returns normalized messages, hydrated users, thread refs, file refs, reactions, and permalinks in one deterministic payload for agents.
118
120
 
121
+ `conversation list`, `conversation history`, and `conversation context` accept `--all` to auto-paginate every page, plus `--types`/`--limit` where relevant. These flags are advertised in `describe --json` and `<command> --help` so agents can discover them; without `--all` a large list returns only the first page with `paging.has_more: true`.
122
+
119
123
  ### Threads and messages
120
124
 
121
125
  ```bash
@@ -240,6 +244,17 @@ NDJSON streaming record:
240
244
  {"ok":true,"type":"slack.message","team_id":"T123","channel_id":"C123","ts":"1710000000.000100","data":{}}
241
245
  ```
242
246
 
247
+ NDJSON enrichment records: when `--include` is combined with `--format ndjson`,
248
+ the hydration maps that `--json` returns under `data.users`/`data.threads`/`data.permalinks`
249
+ are streamed as typed records after the message lines, so the streaming mode is
250
+ not lossy. Message lines stay bare; enrichment lines carry a `type`:
251
+
252
+ ```json
253
+ {"type":"slack.user","data":{"id":"U123","name":"ada","real_name":"Ada"}}
254
+ {"type":"slack.thread","data":{"ts":"1710000000.000100","replies":[]}}
255
+ {"type":"slack.permalink","data":{"ts":"1710000000.000100","permalink":"https://slack.com/..."}}
256
+ ```
257
+
243
258
  Structured error on stderr:
244
259
 
245
260
  ```json
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @eliya-oss/agent-slack
2
2
 
3
+ ## 0.1.13
4
+
5
+ ### Patch Changes
6
+
7
+ - 48d5879: Three CLI fixes for agents.
8
+
9
+ - `agent-slack --version` now prints the version and exits 0 instead of raising a usage error.
10
+ - `conversation list`, `conversation history`, and `conversation context` now advertise their pagination flags (`--all`, `--types`, `--limit`) in `describe --json` and `--help`, so agents can discover `--all` instead of only getting the first page.
11
+ - `--include users,threads,permalinks` now works with `--format ndjson`: the hydrated users, threads, and permalinks are streamed as typed records (`slack.user`, `slack.thread`, `slack.permalink`) after the message lines. Previously they were only present with `--json` and silently dropped in ndjson.
12
+
13
+ ## 0.1.12
14
+
15
+ ### Patch Changes
16
+
17
+ - c48375b: The CLI now starts far faster. Every invocation used to load hundreds of separate module files, dominating the run time of even quick commands like `auth status`. The CLI now ships as a single bundled file, cutting cold start from over a second to about 45ms on a typical machine.
18
+
19
+ No commands or output change.
20
+
3
21
  ## 0.1.11
4
22
 
5
23
  ### Patch Changes