@integrity-labs/agt-cli 0.28.93 → 0.28.95

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.
@@ -977,6 +977,9 @@ var INITIAL_ONBOARDING_STATE = { step: "pending", completed: [] };
977
977
  function withChannel(base, channel) {
978
978
  return channel ? { ...base, channel } : base;
979
979
  }
980
+ function withGeneration(base, generation) {
981
+ return generation === void 0 ? base : { ...base, generation };
982
+ }
980
983
  var VALID_STEPS = /* @__PURE__ */ new Set(["pending", ...AREA_ORDER, "ready"]);
981
984
  var LEGACY_STEP_REMAP = {
982
985
  interviewing: "framing",
@@ -995,7 +998,8 @@ function coerceOnboardingState(raw) {
995
998
  if (step === null)
996
999
  return INITIAL_ONBOARDING_STATE;
997
1000
  const completed = s.completed.filter((c) => typeof c === "string").map(remapStep).filter((c) => c !== null);
998
- const out = withChannel({ step, completed }, coerceOnboardingChannel(s.channel));
1001
+ const generation = typeof s.generation === "number" && Number.isFinite(s.generation) && s.generation >= 0 ? Math.floor(s.generation) : void 0;
1002
+ const out = withGeneration(withChannel({ step, completed }, coerceOnboardingChannel(s.channel)), generation);
999
1003
  const enteredAt = typeof s.areaEnteredAt === "string" && s.areaEnteredAt ? s.areaEnteredAt : void 0;
1000
1004
  return enteredAt && isOnboardingArea(step) ? { ...out, areaEnteredAt: enteredAt } : out;
1001
1005
  }
@@ -5659,4 +5663,4 @@ export {
5659
5663
  parseEnvIntegrations,
5660
5664
  probeMcpEnvSubstitution
5661
5665
  };
5662
- //# sourceMappingURL=chunk-GLBWCCZD.js.map
5666
+ //# sourceMappingURL=chunk-TRKWWYRN.js.map