@eliya-oss/agent-slack 0.1.1 → 0.1.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @eliya-oss/agent-slack
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix the displayed CLI version and make the human command catalog copy-safe in terminals.
8
+
3
9
  ## 0.1.1
4
10
 
5
11
  ### Patch Changes
@@ -1,6 +1,7 @@
1
1
  export const PRIMARY_COMMAND_NAME = "agent-slack";
2
2
  export const SHORT_COMMAND_NAME = "aslk";
3
3
  export const COMMAND_NAMES = [PRIMARY_COMMAND_NAME, SHORT_COMMAND_NAME];
4
+ export const CLI_VERSION = "0.1.2";
4
5
  export const commandMetadata = [
5
6
  {
6
7
  path: ["describe"],
@@ -277,7 +278,7 @@ export const commandMetadata = [
277
278
  export const describeAllCommands = () => ({
278
279
  name: PRIMARY_COMMAND_NAME,
279
280
  aliases: [SHORT_COMMAND_NAME],
280
- version: "0.1.0",
281
+ version: CLI_VERSION,
281
282
  commands: commandMetadata
282
283
  });
283
284
  export const findCommandMetadata = (path) => commandMetadata.find((command) => command.path.join(" ") === path.join(" ")) ?? null;
@@ -48,17 +48,15 @@ const renderCommandCatalog = (catalog, paint) => {
48
48
  ];
49
49
  };
50
50
  const renderCommandGroup = (group, paint) => {
51
- const width = Math.min(34, Math.max(...group.commands.map((command) => commandSignature(command).length)));
52
51
  return [
53
52
  paint("yellow", group.title),
54
53
  ...group.commands.map((command) => {
55
- const signature = pad(commandSignature(command), width);
56
54
  const safety = command.safety === "destructive"
57
55
  ? ` ${paint("yellow", "[destructive]")}`
58
56
  : command.safety === "unknown"
59
57
  ? ` ${paint("yellow", "[review]")}`
60
58
  : "";
61
- return ` ${paint("cyan", signature)} ${command.summary}${safety}`;
59
+ return ` ${paint("cyan", commandSignature(command))} - ${command.summary}${safety}`;
62
60
  }),
63
61
  ""
64
62
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eliya-oss/agent-slack",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Slack context CLI for AI agents.",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@11.9.0",