@integrity-labs/agt-cli 0.27.137 → 0.27.138

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/dist/bin/agt.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  success,
29
29
  table,
30
30
  warn
31
- } from "../chunk-UIRCFCED.js";
31
+ } from "../chunk-SCZVYC5P.js";
32
32
  import {
33
33
  CHANNEL_REGISTRY,
34
34
  DEPLOYMENT_TEMPLATES,
@@ -54,7 +54,7 @@ import {
54
54
  renderTemplate,
55
55
  resolveChannels,
56
56
  serializeManifestForSlackCli
57
- } from "../chunk-TDMOEMDM.js";
57
+ } from "../chunk-PDDU4Z5V.js";
58
58
 
59
59
  // src/bin/agt.ts
60
60
  import { join as join20 } from "path";
@@ -4934,7 +4934,7 @@ import { execFileSync, execSync } from "child_process";
4934
4934
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4935
4935
  import chalk18 from "chalk";
4936
4936
  import ora16 from "ora";
4937
- var cliVersion = true ? "0.27.137" : "dev";
4937
+ var cliVersion = true ? "0.27.138" : "dev";
4938
4938
  async function fetchLatestVersion() {
4939
4939
  const host2 = getHost();
4940
4940
  if (!host2) return null;
@@ -5857,7 +5857,7 @@ function handleError(err) {
5857
5857
  }
5858
5858
 
5859
5859
  // src/bin/agt.ts
5860
- var cliVersion2 = true ? "0.27.137" : "dev";
5860
+ var cliVersion2 = true ? "0.27.138" : "dev";
5861
5861
  var program = new Command();
5862
5862
  program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
5863
5863
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -847,17 +847,20 @@ function generateSlackAppManifest(input) {
847
847
  // ENG-5150: also register /restart. The slash_commands envelope handler
848
848
  // in packages/mcp/src/slack-channel.ts already routes it; without the
849
849
  // manifest entry Slack treats typed `/restart` as a plain message and
850
- // posts it to the channel before the bot can intercept it. /help is
851
- // intentionally NOT registered here — Slack reserves `/help` as a
852
- // built-in global command, so app-level registration is unreliable.
853
- // The message-intercept fallback in slack-channel.ts handles /help.
850
+ // posts it to the channel before the bot can intercept it.
851
+ //
852
+ // ENG-6233: bare `/help` can't be registered Slack reserves it as a
853
+ // built-in global command — so we register the per-agent `/help-<code>`
854
+ // instead (a non-reserved name) to get `/`-autocomplete discovery. The
855
+ // message-intercept fallback in slack-channel.ts still handles a typed
856
+ // bare `/help` for muscle memory.
854
857
  //
855
858
  // ENG-6044: the per-agent commands carry the agent code-name suffix
856
- // (/agent-status-don) so multiple agents in one workspace don't
859
+ // (/status-don, /help-don) so multiple agents in one workspace don't
857
860
  // register colliding names; /kill + /unkill stay generic
858
861
  // (thread-wide semantics). /debug is renamed /investigate-<code-name>
859
862
  // in the same move; the envelope handler still routes legacy names
860
- // during migration.
863
+ // (including the pre-ENG-6233 /agent-status-<code>) during migration.
861
864
  ...slash_command_url && scopes.includes("commands") ? {
862
865
  slash_commands: [
863
866
  {
@@ -875,11 +878,25 @@ function generateSlackAppManifest(input) {
875
878
  should_escape: false
876
879
  },
877
880
  {
878
- command: agentSlashCommand("/agent-status", agent_code_name),
881
+ command: agentSlashCommand("/status", agent_code_name),
879
882
  url: slash_command_url,
880
- description: "Check whether this agent is online + last activity.",
883
+ description: "This agent's model, session origin, uptime + connectivity.",
881
884
  should_escape: false
882
885
  },
886
+ // ENG-6233: per-agent /help-<code>. Bare `/help` is Slack-reserved,
887
+ // so register ONLY when a valid code name actually suffixes it
888
+ // (agentSlashCommand returns the bare base when it can't suffix —
889
+ // no code name, non-kebab, or over the 32-char limit). The typed
890
+ // bare-`/help` message-intercept in slack-channel.ts covers the
891
+ // unsuffixed case.
892
+ ...agentSlashCommand("/help", agent_code_name) !== "/help" ? [
893
+ {
894
+ command: agentSlashCommand("/help", agent_code_name),
895
+ url: slash_command_url,
896
+ description: "List this agent\u2019s available commands.",
897
+ should_escape: false
898
+ }
899
+ ] : [],
883
900
  {
884
901
  command: agentSlashCommand("/restart", agent_code_name),
885
902
  url: slash_command_url,
@@ -4727,4 +4744,4 @@ export {
4727
4744
  attributeTranscriptUsageByRun,
4728
4745
  KANBAN_CHECK_COMMAND
4729
4746
  };
4730
- //# sourceMappingURL=chunk-TDMOEMDM.js.map
4747
+ //# sourceMappingURL=chunk-PDDU4Z5V.js.map