@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 +6 -0
- package/dist/cli/metadata.js +2 -1
- package/dist/output/human.js +1 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/cli/metadata.js
CHANGED
|
@@ -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:
|
|
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;
|
package/dist/output/human.js
CHANGED
|
@@ -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",
|
|
59
|
+
return ` ${paint("cyan", commandSignature(command))} - ${command.summary}${safety}`;
|
|
62
60
|
}),
|
|
63
61
|
""
|
|
64
62
|
];
|