@integrity-labs/agt-cli 0.28.718 → 0.28.719

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
@@ -41,7 +41,7 @@ import {
41
41
  success,
42
42
  table,
43
43
  warn
44
- } from "../chunk-EEZHSNQ2.js";
44
+ } from "../chunk-FG5F657H.js";
45
45
  import {
46
46
  getProjectDir,
47
47
  isSessionResumeDisabled,
@@ -5459,7 +5459,7 @@ import { execFileSync, execSync } from "child_process";
5459
5459
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5460
5460
  import chalk18 from "chalk";
5461
5461
  import ora16 from "ora";
5462
- var cliVersion = true ? "0.28.718" : "dev";
5462
+ var cliVersion = true ? "0.28.719" : "dev";
5463
5463
  async function fetchLatestVersion() {
5464
5464
  const host2 = getHost();
5465
5465
  if (!host2) return null;
@@ -6646,7 +6646,7 @@ function handleError(err) {
6646
6646
  }
6647
6647
 
6648
6648
  // src/bin/agt.ts
6649
- var cliVersion2 = true ? "0.28.718" : "dev";
6649
+ var cliVersion2 = true ? "0.28.719" : "dev";
6650
6650
  var program = new Command();
6651
6651
  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");
6652
6652
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -6428,7 +6428,7 @@ function exchangeFailureKind(err) {
6428
6428
  }
6429
6429
 
6430
6430
  // src/lib/api-client.ts
6431
- var agtCliVersion = true ? "0.28.718" : "dev";
6431
+ var agtCliVersion = true ? "0.28.719" : "dev";
6432
6432
  var lastConfigHash = null;
6433
6433
  function setConfigHash(hash) {
6434
6434
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -10470,4 +10470,4 @@ export {
10470
10470
  managerInstallSystemUnitCommand,
10471
10471
  managerUninstallSystemUnitCommand
10472
10472
  };
10473
- //# sourceMappingURL=chunk-EEZHSNQ2.js.map
10473
+ //# sourceMappingURL=chunk-FG5F657H.js.map
@@ -57,7 +57,7 @@ import {
57
57
  safeWriteJsonAtomic,
58
58
  setConfigHash,
59
59
  tripClass
60
- } from "../chunk-EEZHSNQ2.js";
60
+ } from "../chunk-FG5F657H.js";
61
61
  import {
62
62
  getProjectDir as getProjectDir2,
63
63
  getReadyTasks,
@@ -247,8 +247,11 @@ function createSingleFlight(task, opts = {}) {
247
247
  if (running2) {
248
248
  rerunRequested = true;
249
249
  coalesced += 1;
250
- opts.onCoalesce?.(coalesced);
251
- return settled ?? Promise.resolve();
250
+ try {
251
+ opts.onCoalesce?.(coalesced);
252
+ } catch {
253
+ }
254
+ return (settled ?? Promise.resolve()).then(() => ({ coalesced: true }));
252
255
  }
253
256
  running2 = true;
254
257
  let markSettled;
@@ -266,7 +269,7 @@ function createSingleFlight(task, opts = {}) {
266
269
  markSettled();
267
270
  }
268
271
  })();
269
- return primary;
272
+ return primary.then(() => ({ coalesced: false }));
270
273
  }
271
274
  return {
272
275
  run,
@@ -6017,15 +6020,18 @@ function writeManagedSkillManifest(path, ids) {
6017
6020
 
6018
6021
  // src/lib/poll-loop-guard.ts
6019
6022
  async function pollCycleAndReschedule(pollCycle2, opts) {
6023
+ let outcome = void 0;
6020
6024
  try {
6021
- await pollCycle2();
6025
+ outcome = await pollCycle2();
6022
6026
  } catch (err) {
6023
6027
  try {
6024
6028
  await opts.onError(err);
6025
6029
  } catch {
6026
6030
  }
6027
6031
  } finally {
6028
- await opts.reschedule();
6032
+ if (!outcome?.coalesced) {
6033
+ await opts.reschedule();
6034
+ }
6029
6035
  }
6030
6036
  }
6031
6037
 
@@ -12705,7 +12711,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
12705
12711
  var lastVersionCheckAt = 0;
12706
12712
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
12707
12713
  var lastResponsivenessProbeAt = 0;
12708
- var agtCliVersion = true ? "0.28.718" : "dev";
12714
+ var agtCliVersion = true ? "0.28.719" : "dev";
12709
12715
  function resolveBrewPath(execFileSync3) {
12710
12716
  try {
12711
12717
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();