@integrity-labs/agt-cli 0.28.824 → 0.28.826

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
@@ -40,12 +40,12 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-LPCKIZS4.js";
43
+ } from "../chunk-JO7QTVLM.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-2DT4VGWU.js";
48
+ } from "../chunk-Q3JUZZDB.js";
49
49
  import {
50
50
  AnchorSessionClient,
51
51
  CHANNEL_REGISTRY,
@@ -79,7 +79,7 @@ import {
79
79
  serializeManifestForSlackCli,
80
80
  sessionFileExists,
81
81
  sessionTranscriptDir
82
- } from "../chunk-PVPLNARY.js";
82
+ } from "../chunk-GJY3KZG6.js";
83
83
  import "../chunk-XWVM4KPK.js";
84
84
 
85
85
  // src/bin/agt.ts
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
5467
5467
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5468
5468
  import chalk18 from "chalk";
5469
5469
  import ora16 from "ora";
5470
- var cliVersion = true ? "0.28.824" : "dev";
5470
+ var cliVersion = true ? "0.28.826" : "dev";
5471
5471
  async function fetchLatestVersion() {
5472
5472
  const host2 = getHost();
5473
5473
  if (!host2) return null;
@@ -6658,7 +6658,7 @@ function handleError(err) {
6658
6658
  }
6659
6659
 
6660
6660
  // src/bin/agt.ts
6661
- var cliVersion2 = true ? "0.28.824" : "dev";
6661
+ var cliVersion2 = true ? "0.28.826" : "dev";
6662
6662
  var program = new Command();
6663
6663
  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");
6664
6664
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -4025,6 +4025,41 @@ var HOURLY_BY_REGION = {
4025
4025
  };
4026
4026
  var KNOWN_PRICING_REGIONS = Object.keys(HOURLY_BY_REGION);
4027
4027
 
4028
+ // ../../packages/core/dist/provisioning/frameworks/claudecode/slack-behaviour-env.js
4029
+ function normaliseSlackPeerAgentMode(raw) {
4030
+ return raw === "listen" || raw === "respond" ? raw : "";
4031
+ }
4032
+ function normaliseSlackPeerGroupIds(raw) {
4033
+ if (!Array.isArray(raw))
4034
+ return [];
4035
+ return raw.map((v) => typeof v === "string" || typeof v === "number" ? String(v).trim() : "").filter((v) => v.length > 0);
4036
+ }
4037
+ function buildSlackThirdPartyBotsEnvValue(raw) {
4038
+ if (!Array.isArray(raw) || raw.length === 0)
4039
+ return void 0;
4040
+ const entries = [];
4041
+ for (const item of raw) {
4042
+ if (!item || typeof item !== "object")
4043
+ continue;
4044
+ const rec = item;
4045
+ const botUserId = typeof rec["bot_user_id"] === "string" ? rec["bot_user_id"].trim() : "";
4046
+ if (!botUserId)
4047
+ continue;
4048
+ if (!Array.isArray(rec["channel_ids"]))
4049
+ continue;
4050
+ const channelIds = rec["channel_ids"].filter((c) => typeof c === "string" && c.trim() !== "").map((c) => c.trim());
4051
+ const botId = typeof rec["bot_id"] === "string" && rec["bot_id"].trim() ? rec["bot_id"].trim() : void 0;
4052
+ const label = typeof rec["label"] === "string" && rec["label"].trim() ? rec["label"].trim() : void 0;
4053
+ entries.push({
4054
+ bot_user_id: botUserId,
4055
+ channel_ids: channelIds,
4056
+ ...botId ? { bot_id: botId } : {},
4057
+ ...label ? { label } : {}
4058
+ });
4059
+ }
4060
+ return entries.length > 0 ? JSON.stringify(entries) : void 0;
4061
+ }
4062
+
4028
4063
  // ../../packages/core/dist/provisioning/mcp-tool-patterns.js
4029
4064
  function sanitizeMcpName(name) {
4030
4065
  return name.replace(/-/g, "_");
@@ -13664,6 +13699,9 @@ function readDailySessionPin(codeName) {
13664
13699
  }
13665
13700
 
13666
13701
  export {
13702
+ normaliseSlackPeerAgentMode,
13703
+ normaliseSlackPeerGroupIds,
13704
+ buildSlackThirdPartyBotsEnvValue,
13667
13705
  LITERAL_SECRET_PATTERNS,
13668
13706
  scanConfigForLiteralSecrets,
13669
13707
  formatLiteralSecretRejection,
@@ -13836,4 +13874,4 @@ export {
13836
13874
  peekCurrentSession,
13837
13875
  readDailySessionPin
13838
13876
  };
13839
- //# sourceMappingURL=chunk-PVPLNARY.js.map
13877
+ //# sourceMappingURL=chunk-GJY3KZG6.js.map