@integrity-labs/agt-cli 0.24.2 → 0.24.3

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
@@ -26,7 +26,7 @@ import {
26
26
  success,
27
27
  table,
28
28
  warn
29
- } from "../chunk-BXLWLI2U.js";
29
+ } from "../chunk-KVIKKWXB.js";
30
30
  import {
31
31
  CHANNEL_REGISTRY,
32
32
  DEPLOYMENT_TEMPLATES,
@@ -3736,7 +3736,7 @@ import { execFileSync, execSync } from "child_process";
3736
3736
  import { existsSync as existsSync5, realpathSync } from "fs";
3737
3737
  import chalk17 from "chalk";
3738
3738
  import ora15 from "ora";
3739
- var cliVersion = true ? "0.24.2" : "dev";
3739
+ var cliVersion = true ? "0.24.3" : "dev";
3740
3740
  async function fetchLatestVersion() {
3741
3741
  const host2 = getHost();
3742
3742
  if (!host2) return null;
@@ -4268,7 +4268,7 @@ function handleError(err) {
4268
4268
  }
4269
4269
 
4270
4270
  // src/bin/agt.ts
4271
- var cliVersion2 = true ? "0.24.2" : "dev";
4271
+ var cliVersion2 = true ? "0.24.3" : "dev";
4272
4272
  var program = new Command();
4273
4273
  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");
4274
4274
  program.hook("preAction", (thisCommand) => {
@@ -6717,4 +6717,4 @@ export {
6717
6717
  managerInstallSystemUnitCommand,
6718
6718
  managerUninstallSystemUnitCommand
6719
6719
  };
6720
- //# sourceMappingURL=chunk-BXLWLI2U.js.map
6720
+ //# sourceMappingURL=chunk-KVIKKWXB.js.map
@@ -12,7 +12,7 @@ import {
12
12
  provisionOrientHook,
13
13
  provisionStopHook,
14
14
  requireHost
15
- } from "../chunk-BXLWLI2U.js";
15
+ } from "../chunk-KVIKKWXB.js";
16
16
  import {
17
17
  findTaskByTemplate,
18
18
  getProjectDir as getProjectDir2,
@@ -790,6 +790,7 @@ async function maybeReportTokenUsage(args) {
790
790
  state2.set(codeName, next);
791
791
  return;
792
792
  }
793
+ let reported = 0;
793
794
  for (let i = 0; i < pending.length; i += MAX_ENTRIES_PER_POST) {
794
795
  const batch = pending.slice(i, i + MAX_ENTRIES_PER_POST);
795
796
  try {
@@ -802,10 +803,14 @@ async function maybeReportTokenUsage(args) {
802
803
  for (const b of batch) {
803
804
  files.set(b.sessionId, b.fp);
804
805
  }
806
+ reported += batch.length;
805
807
  } catch (err) {
806
808
  log2(`[token-usage] POST failed for '${codeName}': ${err.message}`);
807
809
  }
808
810
  }
811
+ if (reported > 0) {
812
+ log2(`[token-usage] reported ${reported} entr${reported === 1 ? "y" : "ies"} for '${codeName}'`);
813
+ }
809
814
  state2.set(codeName, next);
810
815
  }
811
816
 
@@ -2783,7 +2788,7 @@ var cachedFrameworkVersion = null;
2783
2788
  var lastVersionCheckAt = 0;
2784
2789
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
2785
2790
  var lastResponsivenessProbeAt = 0;
2786
- var agtCliVersion = true ? "0.24.2" : "dev";
2791
+ var agtCliVersion = true ? "0.24.3" : "dev";
2787
2792
  function resolveBrewPath(execFileSync4) {
2788
2793
  try {
2789
2794
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();