@integrity-labs/agt-cli 0.28.760 → 0.28.761

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-WDHDYS4T.js";
44
+ } from "../chunk-BTLFG3T7.js";
45
45
  import {
46
46
  getProjectDir,
47
47
  isSessionResumeDisabled,
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
5467
5467
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5468
5468
  import chalk18 from "chalk";
5469
5469
  import ora16 from "ora";
5470
- var cliVersion = true ? "0.28.760" : "dev";
5470
+ var cliVersion = true ? "0.28.761" : "dev";
5471
5471
  async function fetchLatestVersion() {
5472
5472
  const host2 = getHost();
5473
5473
  if (!host2) return null;
@@ -6658,7 +6658,7 @@ function handleError(err) {
6658
6658
  }
6659
6659
 
6660
6660
  // src/bin/agt.ts
6661
- var cliVersion2 = true ? "0.28.760" : "dev";
6661
+ var cliVersion2 = true ? "0.28.761" : "dev";
6662
6662
  var program = new Command();
6663
6663
  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");
6664
6664
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -6436,7 +6436,7 @@ function exchangeFailureKind(err) {
6436
6436
  }
6437
6437
 
6438
6438
  // src/lib/api-client.ts
6439
- var agtCliVersion = true ? "0.28.760" : "dev";
6439
+ var agtCliVersion = true ? "0.28.761" : "dev";
6440
6440
  var lastConfigHash = null;
6441
6441
  function setConfigHash(hash) {
6442
6442
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -10593,4 +10593,4 @@ export {
10593
10593
  managerInstallSystemUnitCommand,
10594
10594
  managerUninstallSystemUnitCommand
10595
10595
  };
10596
- //# sourceMappingURL=chunk-WDHDYS4T.js.map
10596
+ //# sourceMappingURL=chunk-BTLFG3T7.js.map
@@ -58,7 +58,7 @@ import {
58
58
  safeWriteJsonAtomic,
59
59
  setConfigHash,
60
60
  tripClass
61
- } from "../chunk-WDHDYS4T.js";
61
+ } from "../chunk-BTLFG3T7.js";
62
62
  import {
63
63
  getProjectDir as getProjectDir2,
64
64
  getReadyTasks,
@@ -13468,7 +13468,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
13468
13468
  var lastVersionCheckAt = 0;
13469
13469
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
13470
13470
  var lastResponsivenessProbeAt = 0;
13471
- var agtCliVersion = true ? "0.28.760" : "dev";
13471
+ var agtCliVersion = true ? "0.28.761" : "dev";
13472
13472
  function resolveBrewPath(execFileSync3) {
13473
13473
  try {
13474
13474
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
package/dist/mcp/index.js CHANGED
@@ -47357,11 +47357,40 @@ function safeDownloadName(name, fallback) {
47357
47357
  return base.length > 0 ? base : fallback;
47358
47358
  }
47359
47359
  async function exportArtefactToFile(dir, artefactId, format, item) {
47360
- const data = await apiPost(`/host/artefact/${encodeURIComponent(artefactId)}/export`, {
47361
- agent_id: AGT_AGENT_ID,
47362
- format,
47363
- item
47364
- });
47360
+ const data = await apiPost(
47361
+ `/host/artefact/${encodeURIComponent(artefactId)}/export`,
47362
+ {
47363
+ agent_id: AGT_AGENT_ID,
47364
+ format,
47365
+ item
47366
+ },
47367
+ false,
47368
+ // ENG-9725: this call inherited apiPost's 15s default, so the REAL ceiling
47369
+ // on the host export route was 15s — half the ~30s API Gateway limit every
47370
+ // server-side timeout on that route was reasoned against. ENG-9705 sized a
47371
+ // 25s retry budget that could therefore never be reached from here: the
47372
+ // client aborted first, every time, and the budget looked deployed while
47373
+ // being unreachable.
47374
+ //
47375
+ // The number is NOT invented here. FORWARD_TOOL_CALL_TIMEOUT_MS is already
47376
+ // derived as (gateway ceiling − margin) = 26s and already pinned by a test,
47377
+ // so reusing it keeps one derivation of that quantity rather than a second
47378
+ // copy to drift (ENG-9698's reasoning). It satisfies both constraints at
47379
+ // once: comfortably above the ~20s async grace window ADR-0077 settled on,
47380
+ // and below the gateway ceiling as apiPost's own docblock requires — over
47381
+ // it, the gateway replaces our authored error with its opaque envelope and
47382
+ // we lose the ability to say whether the render landed.
47383
+ //
47384
+ // NOT a readiness signal. Raising the budget does not make this caller able
47385
+ // to consume ADR-0077's async response: the `data.base64` read just below
47386
+ // has no branch for a `{ job_id }` body and would throw on one. So a fleet
47387
+ // fully updated to this CLI is converged on the TIMEOUT and no more ready
47388
+ // for the RESPONSE than before. The server's async path must stay dark for
47389
+ // this route until job-response handling ships here (ENG-9729) — reading a
47390
+ // published version number as evidence of a capability it does not carry is
47391
+ // exactly the mistake this comment's first paragraph describes.
47392
+ FORWARD_TOOL_CALL_TIMEOUT_MS
47393
+ );
47365
47394
  const fallback = `${artefactId}${item !== void 0 ? `-item-${item + 1}` : ""}.${format}`;
47366
47395
  const filePath = join4(dir, safeDownloadName(data.filename, fallback));
47367
47396
  const buf = Buffer.from(data.base64, "base64");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.760",
3
+ "version": "0.28.761",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {