@integrity-labs/agt-cli 0.28.590 → 0.28.592

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
@@ -40,7 +40,7 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-YXB2QIM5.js";
43
+ } from "../chunk-NRP5FPSD.js";
44
44
  import {
45
45
  AnchorSessionClient,
46
46
  CHANNEL_REGISTRY,
@@ -71,7 +71,7 @@ import {
71
71
  requiredMcpWildcard,
72
72
  resolveChannels,
73
73
  serializeManifestForSlackCli
74
- } from "../chunk-QDJEEGZB.js";
74
+ } from "../chunk-ZILMYD5B.js";
75
75
  import "../chunk-XWVM4KPK.js";
76
76
 
77
77
  // src/bin/agt.ts
@@ -4908,7 +4908,7 @@ import { execFileSync, execSync } from "child_process";
4908
4908
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4909
4909
  import chalk18 from "chalk";
4910
4910
  import ora16 from "ora";
4911
- var cliVersion = true ? "0.28.590" : "dev";
4911
+ var cliVersion = true ? "0.28.592" : "dev";
4912
4912
  async function fetchLatestVersion() {
4913
4913
  const host2 = getHost();
4914
4914
  if (!host2) return null;
@@ -6088,7 +6088,7 @@ function handleError(err) {
6088
6088
  }
6089
6089
 
6090
6090
  // src/bin/agt.ts
6091
- var cliVersion2 = true ? "0.28.590" : "dev";
6091
+ var cliVersion2 = true ? "0.28.592" : "dev";
6092
6092
  var program = new Command();
6093
6093
  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");
6094
6094
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -46,7 +46,7 @@ import {
46
46
  resolveConnectivityProbe,
47
47
  worseConnectivityOutcome,
48
48
  wrapScheduledTaskPrompt
49
- } from "./chunk-QDJEEGZB.js";
49
+ } from "./chunk-ZILMYD5B.js";
50
50
  import {
51
51
  parsePsRows
52
52
  } from "./chunk-XWVM4KPK.js";
@@ -5971,7 +5971,7 @@ function exchangeFailureKind(err) {
5971
5971
  }
5972
5972
 
5973
5973
  // src/lib/api-client.ts
5974
- var agtCliVersion = true ? "0.28.590" : "dev";
5974
+ var agtCliVersion = true ? "0.28.592" : "dev";
5975
5975
  var lastConfigHash = null;
5976
5976
  function setConfigHash(hash) {
5977
5977
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -9353,4 +9353,4 @@ export {
9353
9353
  managerInstallSystemUnitCommand,
9354
9354
  managerUninstallSystemUnitCommand
9355
9355
  };
9356
- //# sourceMappingURL=chunk-YXB2QIM5.js.map
9356
+ //# sourceMappingURL=chunk-NRP5FPSD.js.map
@@ -9262,6 +9262,39 @@ function formatRunMarker(runId) {
9262
9262
  }
9263
9263
  var RUN_MARKER_RE = /<!--\s*agt-run:([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})\s*-->/;
9264
9264
  var RUN_MARKER_RE_GLOBAL = new RegExp(RUN_MARKER_RE.source, "g");
9265
+ var MARKER_WALK_MAX_DEPTH = 6;
9266
+ var MARKER_WALK_MAX_NODES = 512;
9267
+ function findRunMarker(content) {
9268
+ let found = null;
9269
+ let nodes = 0;
9270
+ const walk = (value, depth) => {
9271
+ if (depth > MARKER_WALK_MAX_DEPTH || nodes >= MARKER_WALK_MAX_NODES)
9272
+ return;
9273
+ nodes += 1;
9274
+ if (typeof value === "string") {
9275
+ const matches = value.match(RUN_MARKER_RE_GLOBAL);
9276
+ const last = matches?.[matches.length - 1];
9277
+ if (last) {
9278
+ const id = last.match(RUN_MARKER_RE)?.[1];
9279
+ if (id)
9280
+ found = id;
9281
+ }
9282
+ return;
9283
+ }
9284
+ if (Array.isArray(value)) {
9285
+ for (const item of value)
9286
+ walk(item, depth + 1);
9287
+ return;
9288
+ }
9289
+ if (value && typeof value === "object") {
9290
+ const obj = value;
9291
+ walk(obj.text, depth + 1);
9292
+ walk(obj.content, depth + 1);
9293
+ }
9294
+ };
9295
+ walk(content, 0);
9296
+ return found;
9297
+ }
9265
9298
 
9266
9299
  // ../../packages/core/dist/claude-code-usage/transcript-parser.js
9267
9300
  function nonNegInt(value) {
@@ -15974,6 +16007,7 @@ export {
15974
16007
  SCHEDULED_TURN_MARKER_FILENAME,
15975
16008
  parseUsageBanner,
15976
16009
  formatRunMarker,
16010
+ findRunMarker,
15977
16011
  parseTranscriptUsage,
15978
16012
  sumTranscriptUsageInWindow,
15979
16013
  isEmptyTotals,
@@ -16084,4 +16118,4 @@ export {
16084
16118
  stopAllSessionsAndWait,
16085
16119
  getProjectDir
16086
16120
  };
16087
- //# sourceMappingURL=chunk-QDJEEGZB.js.map
16121
+ //# sourceMappingURL=chunk-ZILMYD5B.js.map