@integrity-labs/agt-cli 0.28.87 → 0.28.89

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
@@ -37,7 +37,7 @@ import {
37
37
  success,
38
38
  table,
39
39
  warn
40
- } from "../chunk-IRXTLOES.js";
40
+ } from "../chunk-Q7HS3VI2.js";
41
41
  import {
42
42
  CHANNEL_REGISTRY,
43
43
  DEPLOYMENT_TEMPLATES,
@@ -64,7 +64,7 @@ import {
64
64
  renderTemplate,
65
65
  resolveChannels,
66
66
  serializeManifestForSlackCli
67
- } from "../chunk-E5TGFEDQ.js";
67
+ } from "../chunk-UB2LZXAL.js";
68
68
 
69
69
  // src/bin/agt.ts
70
70
  import { join as join22 } from "path";
@@ -4777,7 +4777,7 @@ import { execFileSync, execSync } from "child_process";
4777
4777
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4778
4778
  import chalk18 from "chalk";
4779
4779
  import ora16 from "ora";
4780
- var cliVersion = true ? "0.28.87" : "dev";
4780
+ var cliVersion = true ? "0.28.89" : "dev";
4781
4781
  async function fetchLatestVersion() {
4782
4782
  const host2 = getHost();
4783
4783
  if (!host2) return null;
@@ -5791,7 +5791,7 @@ function handleError(err) {
5791
5791
  }
5792
5792
 
5793
5793
  // src/bin/agt.ts
5794
- var cliVersion2 = true ? "0.28.87" : "dev";
5794
+ var cliVersion2 = true ? "0.28.89" : "dev";
5795
5795
  var program = new Command();
5796
5796
  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");
5797
5797
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -3,7 +3,7 @@ import {
3
3
  formatMissingVar,
4
4
  isClaudeFastMode,
5
5
  probeMcpEnvSubstitution
6
- } from "./chunk-E5TGFEDQ.js";
6
+ } from "./chunk-UB2LZXAL.js";
7
7
  import {
8
8
  reapOrphanChannelMcps
9
9
  } from "./chunk-XWVM4KPK.js";
@@ -1395,4 +1395,4 @@ export {
1395
1395
  stopAllSessionsAndWait,
1396
1396
  getProjectDir
1397
1397
  };
1398
- //# sourceMappingURL=chunk-OZWBVM7M.js.map
1398
+ //# sourceMappingURL=chunk-II75Z6KB.js.map
@@ -22,7 +22,7 @@ import {
22
22
  resolveConnectivityProbe,
23
23
  worseConnectivityOutcome,
24
24
  wrapScheduledTaskPrompt
25
- } from "./chunk-E5TGFEDQ.js";
25
+ } from "./chunk-UB2LZXAL.js";
26
26
 
27
27
  // ../../packages/core/dist/integrations/registry.js
28
28
  var INTEGRATION_REGISTRY = [
@@ -7533,7 +7533,7 @@ function requireHost() {
7533
7533
  }
7534
7534
 
7535
7535
  // src/lib/api-client.ts
7536
- var agtCliVersion = true ? "0.28.87" : "dev";
7536
+ var agtCliVersion = true ? "0.28.89" : "dev";
7537
7537
  var lastConfigHash = null;
7538
7538
  function setConfigHash(hash) {
7539
7539
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8830,4 +8830,4 @@ export {
8830
8830
  managerInstallSystemUnitCommand,
8831
8831
  managerUninstallSystemUnitCommand
8832
8832
  };
8833
- //# sourceMappingURL=chunk-IRXTLOES.js.map
8833
+ //# sourceMappingURL=chunk-Q7HS3VI2.js.map
@@ -967,7 +967,16 @@ var AREA_SET = new Set(AREA_ORDER);
967
967
  function isOnboardingArea(step) {
968
968
  return AREA_SET.has(step);
969
969
  }
970
+ function describeOnboardingChannel(channel) {
971
+ if (channel.kind === "slack") {
972
+ return `Slack channel \`${channel.id}\`${channel.thread ? ` (thread \`${channel.thread}\`)` : ""}`;
973
+ }
974
+ return `Telegram chat \`${channel.id}\``;
975
+ }
970
976
  var INITIAL_ONBOARDING_STATE = { step: "pending", completed: [] };
977
+ function withChannel(base, channel) {
978
+ return channel ? { ...base, channel } : base;
979
+ }
971
980
  var VALID_STEPS = /* @__PURE__ */ new Set(["pending", ...AREA_ORDER, "ready"]);
972
981
  var LEGACY_STEP_REMAP = {
973
982
  interviewing: "framing",
@@ -986,11 +995,23 @@ function coerceOnboardingState(raw) {
986
995
  if (step === null)
987
996
  return INITIAL_ONBOARDING_STATE;
988
997
  const completed = s.completed.filter((c) => typeof c === "string").map(remapStep).filter((c) => c !== null);
989
- return { step, completed };
998
+ return withChannel({ step, completed }, coerceOnboardingChannel(s.channel));
990
999
  }
991
1000
  }
992
1001
  return INITIAL_ONBOARDING_STATE;
993
1002
  }
1003
+ function coerceOnboardingChannel(raw) {
1004
+ if (raw && typeof raw === "object") {
1005
+ const ch = raw;
1006
+ if ((ch.kind === "slack" || ch.kind === "telegram") && typeof ch.id === "string" && ch.id) {
1007
+ const channel = { kind: ch.kind, id: ch.id };
1008
+ if (typeof ch.thread === "string" && ch.thread)
1009
+ channel.thread = ch.thread;
1010
+ return channel;
1011
+ }
1012
+ }
1013
+ return void 0;
1014
+ }
994
1015
 
995
1016
  // ../../packages/core/dist/claude-code-usage/run-marker.js
996
1017
  function formatRunMarker(runId) {
@@ -5600,6 +5621,7 @@ export {
5600
5621
  probeComposioMcpToolCall,
5601
5622
  probeHttpProvider,
5602
5623
  isOnboardingArea,
5624
+ describeOnboardingChannel,
5603
5625
  coerceOnboardingState,
5604
5626
  detectDrift,
5605
5627
  SUPPRESS_SENTINEL,
@@ -5622,4 +5644,4 @@ export {
5622
5644
  parseEnvIntegrations,
5623
5645
  probeMcpEnvSubstitution
5624
5646
  };
5625
- //# sourceMappingURL=chunk-E5TGFEDQ.js.map
5647
+ //# sourceMappingURL=chunk-UB2LZXAL.js.map