@integrity-labs/agt-cli 0.28.75 → 0.28.77

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-MB5MHGBP.js";
40
+ } from "../chunk-EHSKP4FA.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-EGQDFTBK.js";
67
+ } from "../chunk-XHKMS4UY.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.75" : "dev";
4780
+ var cliVersion = true ? "0.28.77" : "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.75" : "dev";
5794
+ var cliVersion2 = true ? "0.28.77" : "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) => {
@@ -22,7 +22,7 @@ import {
22
22
  resolveConnectivityProbe,
23
23
  worseConnectivityOutcome,
24
24
  wrapScheduledTaskPrompt
25
- } from "./chunk-EGQDFTBK.js";
25
+ } from "./chunk-XHKMS4UY.js";
26
26
 
27
27
  // ../../packages/core/dist/integrations/registry.js
28
28
  var INTEGRATION_REGISTRY = [
@@ -7397,7 +7397,7 @@ function requireHost() {
7397
7397
  }
7398
7398
 
7399
7399
  // src/lib/api-client.ts
7400
- var agtCliVersion = true ? "0.28.75" : "dev";
7400
+ var agtCliVersion = true ? "0.28.77" : "dev";
7401
7401
  var lastConfigHash = null;
7402
7402
  function setConfigHash(hash) {
7403
7403
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8693,4 +8693,4 @@ export {
8693
8693
  managerInstallSystemUnitCommand,
8694
8694
  managerUninstallSystemUnitCommand
8695
8695
  };
8696
- //# sourceMappingURL=chunk-MB5MHGBP.js.map
8696
+ //# sourceMappingURL=chunk-EHSKP4FA.js.map
@@ -3,7 +3,7 @@ import {
3
3
  formatMissingVar,
4
4
  isClaudeFastMode,
5
5
  probeMcpEnvSubstitution
6
- } from "./chunk-EGQDFTBK.js";
6
+ } from "./chunk-XHKMS4UY.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-MG4WB7BD.js.map
1398
+ //# sourceMappingURL=chunk-PEVDRQJA.js.map
@@ -957,21 +957,36 @@ var HOURLY_BY_REGION = {
957
957
  var KNOWN_PRICING_REGIONS = Object.keys(HOURLY_BY_REGION);
958
958
 
959
959
  // ../../packages/core/dist/onboarding/state-machine.js
960
- var TRANSITIONS = {
961
- // RESUME is omitted from `pending` on purpose: there is nothing to resume
962
- // before onboarding has begun. The host endpoint maps that case to START.
963
- pending: { START: "interviewing" },
964
- interviewing: { INTERVIEW_DONE: "configuring", RESET: "interviewing", RESUME: "interviewing" },
965
- configuring: { CONFIGURE_DONE: "ready", RESET: "interviewing", RESUME: "configuring" },
966
- ready: { RESET: "interviewing", RESUME: "ready" }
967
- };
960
+ var AREA_ORDER = [
961
+ "framing",
962
+ "tasks",
963
+ "integrations",
964
+ "reporting"
965
+ ];
966
+ var AREA_SET = new Set(AREA_ORDER);
967
+ function isOnboardingArea(step) {
968
+ return AREA_SET.has(step);
969
+ }
968
970
  var INITIAL_ONBOARDING_STATE = { step: "pending", completed: [] };
969
- var VALID_STEPS = new Set(Object.keys(TRANSITIONS));
971
+ var VALID_STEPS = /* @__PURE__ */ new Set(["pending", ...AREA_ORDER, "ready"]);
972
+ var LEGACY_STEP_REMAP = {
973
+ interviewing: "framing",
974
+ configuring: "tasks"
975
+ };
976
+ function remapStep(raw) {
977
+ if (VALID_STEPS.has(raw))
978
+ return raw;
979
+ return LEGACY_STEP_REMAP[raw] ?? null;
980
+ }
970
981
  function coerceOnboardingState(raw) {
971
982
  if (raw && typeof raw === "object") {
972
983
  const s = raw;
973
- if (typeof s.step === "string" && VALID_STEPS.has(s.step) && Array.isArray(s.completed)) {
974
- return s;
984
+ if (typeof s.step === "string" && Array.isArray(s.completed)) {
985
+ const step = remapStep(s.step);
986
+ if (step === null)
987
+ return INITIAL_ONBOARDING_STATE;
988
+ const completed = s.completed.filter((c) => typeof c === "string").map(remapStep).filter((c) => c !== null);
989
+ return { step, completed };
975
990
  }
976
991
  }
977
992
  return INITIAL_ONBOARDING_STATE;
@@ -5559,6 +5574,7 @@ export {
5559
5574
  probeComposioAccount,
5560
5575
  probeComposioMcpToolCall,
5561
5576
  probeHttpProvider,
5577
+ isOnboardingArea,
5562
5578
  coerceOnboardingState,
5563
5579
  detectDrift,
5564
5580
  SUPPRESS_SENTINEL,
@@ -5581,4 +5597,4 @@ export {
5581
5597
  parseEnvIntegrations,
5582
5598
  probeMcpEnvSubstitution
5583
5599
  };
5584
- //# sourceMappingURL=chunk-EGQDFTBK.js.map
5600
+ //# sourceMappingURL=chunk-XHKMS4UY.js.map