@integrity-labs/agt-cli 0.28.3 → 0.28.5

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
@@ -33,7 +33,7 @@ import {
33
33
  success,
34
34
  table,
35
35
  warn
36
- } from "../chunk-CPJ4TFUO.js";
36
+ } from "../chunk-4DTVE2UF.js";
37
37
  import {
38
38
  CHANNEL_REGISTRY,
39
39
  DEPLOYMENT_TEMPLATES,
@@ -4773,7 +4773,7 @@ import { execFileSync, execSync } from "child_process";
4773
4773
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4774
4774
  import chalk18 from "chalk";
4775
4775
  import ora16 from "ora";
4776
- var cliVersion = true ? "0.28.3" : "dev";
4776
+ var cliVersion = true ? "0.28.5" : "dev";
4777
4777
  async function fetchLatestVersion() {
4778
4778
  const host2 = getHost();
4779
4779
  if (!host2) return null;
@@ -5696,7 +5696,7 @@ function handleError(err) {
5696
5696
  }
5697
5697
 
5698
5698
  // src/bin/agt.ts
5699
- var cliVersion2 = true ? "0.28.3" : "dev";
5699
+ var cliVersion2 = true ? "0.28.5" : "dev";
5700
5700
  var program = new Command();
5701
5701
  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");
5702
5702
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -8275,4 +8275,4 @@ export {
8275
8275
  managerInstallSystemUnitCommand,
8276
8276
  managerUninstallSystemUnitCommand
8277
8277
  };
8278
- //# sourceMappingURL=chunk-CPJ4TFUO.js.map
8278
+ //# sourceMappingURL=chunk-4DTVE2UF.js.map
@@ -22,7 +22,7 @@ import {
22
22
  provisionStopHook,
23
23
  requireHost,
24
24
  safeWriteJsonAtomic
25
- } from "../chunk-CPJ4TFUO.js";
25
+ } from "../chunk-4DTVE2UF.js";
26
26
  import {
27
27
  getProjectDir as getProjectDir2,
28
28
  getReadyTasks,
@@ -5079,7 +5079,7 @@ var cachedMaintenanceWindow = null;
5079
5079
  var lastVersionCheckAt = 0;
5080
5080
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
5081
5081
  var lastResponsivenessProbeAt = 0;
5082
- var agtCliVersion = true ? "0.28.3" : "dev";
5082
+ var agtCliVersion = true ? "0.28.5" : "dev";
5083
5083
  function resolveBrewPath(execFileSync4) {
5084
5084
  try {
5085
5085
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -5541,7 +5541,7 @@ async function checkAndUpdateCliViaNpm() {
5541
5541
  }
5542
5542
  let shouldUpdate;
5543
5543
  if (channel === "latest") {
5544
- shouldUpdate = isNewerSemver(agtCliVersion, latest);
5544
+ shouldUpdate = shouldUpdateOnLatest(agtCliVersion, latest);
5545
5545
  } else if (latest === agtCliVersion) {
5546
5546
  shouldUpdate = false;
5547
5547
  } else if (isOlderSemverTuple(agtCliVersion, latest)) {
@@ -5620,6 +5620,15 @@ async function installAgtCliViaNpm(version, reasonLabel) {
5620
5620
  log(`[self-update] npm upgrade failed: ${err.message}`);
5621
5621
  }
5622
5622
  }
5623
+ function isPrereleaseVersion(v) {
5624
+ return v.replace(/^v/, "").split("+")[0].includes("-");
5625
+ }
5626
+ function shouldUpdateOnLatest(installed, latest) {
5627
+ if (isPrereleaseVersion(installed)) {
5628
+ return latest !== installed && !isOlderSemverTuple(installed, latest);
5629
+ }
5630
+ return isNewerSemver(installed, latest);
5631
+ }
5623
5632
  function isNewerSemver(local, remote) {
5624
5633
  const parse = (v) => v.replace(/^v/, "").split(".").map(Number);
5625
5634
  const l = parse(local);
@@ -12014,6 +12023,7 @@ export {
12014
12023
  isKanbanHybridEnabled,
12015
12024
  isOlderSemverTuple,
12016
12025
  isPlainScheduledTemplate,
12026
+ isPrereleaseVersion,
12017
12027
  isScheduledCardTracked,
12018
12028
  isScheduledViaKanbanEnabled,
12019
12029
  markAgentForFreshMemorySync,
@@ -12022,6 +12032,7 @@ export {
12022
12032
  reconcileScheduledRuns,
12023
12033
  routeScheduledTaskViaKanban,
12024
12034
  shouldSkipRevokedCleanup,
12035
+ shouldUpdateOnLatest,
12025
12036
  stampClaudeCodeUpgradeMarker,
12026
12037
  startManager,
12027
12038
  stopManager