diff --git a/.changeset/list-agent-commands.md b/.changeset/list-agent-commands.md deleted file mode 100644 index da19a40e..00000000 --- a/.changeset/list-agent-commands.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -"@herdctl/core": minor ---- - -Add `FleetManager.listAgentCommands(agentName, options?)` — a one-shot way to -read the slash commands available to an agent for populating a command palette / -autocomplete, without hand-managing a live streaming session. - -Internally it opens a chat session, reads its command list, and **always closes -the session** (in a `finally`, even if the listing throws), so consumers never -have to guard the underlying `claude` subprocess lifecycle themselves: - -- Returns the full `SlashCommand[]` — `{ name, description, argumentHint }` per - command (built-ins + project `.claude/commands` + MCP-provided commands) for - the resolved session's cwd/config. -- Accepts the same `ChatSessionOptions` as `openChatSession` (notably - `workingDirectory` and `injectedMcpServers`) so the list reflects the intended - project context. -- Works for `cli`-runtime agents (the session runs on the SDK runtime - regardless of the agent's configured runtime) and surfaces - `StreamingSessionUnsupportedError` unchanged for Docker-wrapped agents. - -Each call spawns and tears down a `claude` subprocess (~seconds); the list is -essentially static per project, so callers that query it repeatedly should -cache the result. - -Also re-exports the `SlashCommand` type from `@herdctl/core`, so consumers can -`import type { SlashCommand } from "@herdctl/core"` instead of reaching into the -Claude Agent SDK directly. diff --git a/packages/chat/CHANGELOG.md b/packages/chat/CHANGELOG.md index b237bbd7..8033d925 100644 --- a/packages/chat/CHANGELOG.md +++ b/packages/chat/CHANGELOG.md @@ -1,5 +1,12 @@ # @herdctl/chat +## 0.5.1 + +### Patch Changes + +- Updated dependencies [[`1395fb2`](https://github.com/edspencer/herdctl/commit/1395fb2f1de4c5a153f5498b96d06994fdf80376)]: + - @herdctl/core@5.16.0 + ## 0.5.0 ### Minor Changes diff --git a/packages/chat/package.json b/packages/chat/package.json index b36b744e..d58407e7 100644 --- a/packages/chat/package.json +++ b/packages/chat/package.json @@ -1,6 +1,6 @@ { "name": "@herdctl/chat", - "version": "0.5.0", + "version": "0.5.1", "description": "Shared chat infrastructure for herdctl connectors", "license": "MIT", "type": "module", diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 8e5affde..e4089d0f 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,15 @@ # herdctl +## 1.5.22 + +### Patch Changes + +- Updated dependencies [[`1395fb2`](https://github.com/edspencer/herdctl/commit/1395fb2f1de4c5a153f5498b96d06994fdf80376)]: + - @herdctl/core@5.16.0 + - @herdctl/discord@1.2.13 + - @herdctl/slack@1.2.26 + - @herdctl/web@0.9.24 + ## 1.5.21 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 8337e3c6..787052c8 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "herdctl", - "version": "1.5.21", + "version": "1.5.22", "description": "Autonomous Agent Fleet Management for Claude Code", "license": "MIT", "type": "module", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 60fe0acb..ae949c7f 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,35 @@ # @herdctl/core +## 5.16.0 + +### Minor Changes + +- [#301](https://github.com/edspencer/herdctl/pull/301) [`1395fb2`](https://github.com/edspencer/herdctl/commit/1395fb2f1de4c5a153f5498b96d06994fdf80376) Thanks [@edspencer](https://github.com/edspencer)! - Add `FleetManager.listAgentCommands(agentName, options?)` — a one-shot way to + read the slash commands available to an agent for populating a command palette / + autocomplete, without hand-managing a live streaming session. + + Internally it opens a chat session, reads its command list, and **always closes + the session** (in a `finally`, even if the listing throws), so consumers never + have to guard the underlying `claude` subprocess lifecycle themselves: + + - Returns the full `SlashCommand[]` — `{ name, description, argumentHint }` per + command (built-ins + project `.claude/commands` + MCP-provided commands) for + the resolved session's cwd/config. + - Accepts the same `ChatSessionOptions` as `openChatSession` (notably + `workingDirectory` and `injectedMcpServers`) so the list reflects the intended + project context. + - Works for `cli`-runtime agents (the session runs on the SDK runtime + regardless of the agent's configured runtime) and surfaces + `StreamingSessionUnsupportedError` unchanged for Docker-wrapped agents. + + Each call spawns and tears down a `claude` subprocess (~seconds); the list is + essentially static per project, so callers that query it repeatedly should + cache the result. + + Also re-exports the `SlashCommand` type from `@herdctl/core`, so consumers can + `import type { SlashCommand } from "@herdctl/core"` instead of reaching into the + Claude Agent SDK directly. + ## 5.15.2 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index d0bebdac..422752cb 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@herdctl/core", - "version": "5.15.2", + "version": "5.16.0", "description": "Core library for herdctl fleet management", "license": "MIT", "type": "module", diff --git a/packages/discord/CHANGELOG.md b/packages/discord/CHANGELOG.md index c0794313..958df078 100644 --- a/packages/discord/CHANGELOG.md +++ b/packages/discord/CHANGELOG.md @@ -1,5 +1,13 @@ # @herdctl/discord +## 1.2.13 + +### Patch Changes + +- Updated dependencies [[`1395fb2`](https://github.com/edspencer/herdctl/commit/1395fb2f1de4c5a153f5498b96d06994fdf80376)]: + - @herdctl/core@5.16.0 + - @herdctl/chat@0.5.1 + ## 1.2.12 ### Patch Changes diff --git a/packages/discord/package.json b/packages/discord/package.json index b1e72a32..8ccbbfb4 100644 --- a/packages/discord/package.json +++ b/packages/discord/package.json @@ -1,6 +1,6 @@ { "name": "@herdctl/discord", - "version": "1.2.12", + "version": "1.2.13", "description": "Discord connector for herdctl fleet management", "license": "MIT", "type": "module", diff --git a/packages/slack/CHANGELOG.md b/packages/slack/CHANGELOG.md index bf2cb70a..3d3e7bfa 100644 --- a/packages/slack/CHANGELOG.md +++ b/packages/slack/CHANGELOG.md @@ -1,5 +1,13 @@ # @herdctl/slack +## 1.2.26 + +### Patch Changes + +- Updated dependencies [[`1395fb2`](https://github.com/edspencer/herdctl/commit/1395fb2f1de4c5a153f5498b96d06994fdf80376)]: + - @herdctl/core@5.16.0 + - @herdctl/chat@0.5.1 + ## 1.2.25 ### Patch Changes diff --git a/packages/slack/package.json b/packages/slack/package.json index 2ffccdd5..baba069f 100644 --- a/packages/slack/package.json +++ b/packages/slack/package.json @@ -1,6 +1,6 @@ { "name": "@herdctl/slack", - "version": "1.2.25", + "version": "1.2.26", "description": "Slack connector for herdctl fleet management", "license": "MIT", "type": "module", diff --git a/packages/web/CHANGELOG.md b/packages/web/CHANGELOG.md index 5746e503..f70f0b65 100644 --- a/packages/web/CHANGELOG.md +++ b/packages/web/CHANGELOG.md @@ -1,5 +1,13 @@ # @herdctl/web +## 0.9.24 + +### Patch Changes + +- Updated dependencies [[`1395fb2`](https://github.com/edspencer/herdctl/commit/1395fb2f1de4c5a153f5498b96d06994fdf80376)]: + - @herdctl/core@5.16.0 + - @herdctl/chat@0.5.1 + ## 0.9.23 ### Patch Changes diff --git a/packages/web/package.json b/packages/web/package.json index 0c9b1d83..81221307 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -1,6 +1,6 @@ { "name": "@herdctl/web", - "version": "0.9.23", + "version": "0.9.24", "description": "Web dashboard for herdctl fleet management", "license": "MIT", "type": "module",