@integrity-labs/agt-cli 0.28.86 → 0.28.88

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-3EZHAJGB.js";
40
+ } from "../chunk-ULHJX4A2.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-3G2D4VXI.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.86" : "dev";
4780
+ var cliVersion = true ? "0.28.88" : "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.86" : "dev";
5794
+ var cliVersion2 = true ? "0.28.88" : "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) => {
@@ -968,6 +968,9 @@ function isOnboardingArea(step) {
968
968
  return AREA_SET.has(step);
969
969
  }
970
970
  var INITIAL_ONBOARDING_STATE = { step: "pending", completed: [] };
971
+ function withChannel(base, channel) {
972
+ return channel ? { ...base, channel } : base;
973
+ }
971
974
  var VALID_STEPS = /* @__PURE__ */ new Set(["pending", ...AREA_ORDER, "ready"]);
972
975
  var LEGACY_STEP_REMAP = {
973
976
  interviewing: "framing",
@@ -986,11 +989,23 @@ function coerceOnboardingState(raw) {
986
989
  if (step === null)
987
990
  return INITIAL_ONBOARDING_STATE;
988
991
  const completed = s.completed.filter((c) => typeof c === "string").map(remapStep).filter((c) => c !== null);
989
- return { step, completed };
992
+ return withChannel({ step, completed }, coerceOnboardingChannel(s.channel));
990
993
  }
991
994
  }
992
995
  return INITIAL_ONBOARDING_STATE;
993
996
  }
997
+ function coerceOnboardingChannel(raw) {
998
+ if (raw && typeof raw === "object") {
999
+ const ch = raw;
1000
+ if ((ch.kind === "slack" || ch.kind === "telegram") && typeof ch.id === "string" && ch.id) {
1001
+ const channel = { kind: ch.kind, id: ch.id };
1002
+ if (typeof ch.thread === "string" && ch.thread)
1003
+ channel.thread = ch.thread;
1004
+ return channel;
1005
+ }
1006
+ }
1007
+ return void 0;
1008
+ }
994
1009
 
995
1010
  // ../../packages/core/dist/claude-code-usage/run-marker.js
996
1011
  function formatRunMarker(runId) {
@@ -5622,4 +5637,4 @@ export {
5622
5637
  parseEnvIntegrations,
5623
5638
  probeMcpEnvSubstitution
5624
5639
  };
5625
- //# sourceMappingURL=chunk-E5TGFEDQ.js.map
5640
+ //# sourceMappingURL=chunk-3G2D4VXI.js.map