@integrity-labs/agt-cli 0.28.708 → 0.28.710

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,10 +40,10 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-7ZW4P5EU.js";
43
+ } from "../chunk-FDI4N2HO.js";
44
44
  import {
45
45
  readDirectChatSessionState
46
- } from "../chunk-VYG4CTEQ.js";
46
+ } from "../chunk-SR2HUGEA.js";
47
47
  import {
48
48
  AnchorSessionClient,
49
49
  CHANNEL_REGISTRY,
@@ -73,7 +73,7 @@ import {
73
73
  requiredMcpWildcard,
74
74
  resolveChannels,
75
75
  serializeManifestForSlackCli
76
- } from "../chunk-NOGQSRQM.js";
76
+ } from "../chunk-FM63TWR3.js";
77
77
  import "../chunk-XWVM4KPK.js";
78
78
 
79
79
  // src/bin/agt.ts
@@ -4909,7 +4909,7 @@ import { execFileSync, execSync } from "child_process";
4909
4909
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4910
4910
  import chalk18 from "chalk";
4911
4911
  import ora16 from "ora";
4912
- var cliVersion = true ? "0.28.708" : "dev";
4912
+ var cliVersion = true ? "0.28.710" : "dev";
4913
4913
  async function fetchLatestVersion() {
4914
4914
  const host2 = getHost();
4915
4915
  if (!host2) return null;
@@ -6089,7 +6089,7 @@ function handleError(err) {
6089
6089
  }
6090
6090
 
6091
6091
  // src/bin/agt.ts
6092
- var cliVersion2 = true ? "0.28.708" : "dev";
6092
+ var cliVersion2 = true ? "0.28.710" : "dev";
6093
6093
  var program = new Command();
6094
6094
  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");
6095
6095
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -12,7 +12,7 @@ import {
12
12
  parseEnvFileEntries,
13
13
  parseEnvIntegrations,
14
14
  shellQuote
15
- } from "./chunk-VYG4CTEQ.js";
15
+ } from "./chunk-SR2HUGEA.js";
16
16
  import {
17
17
  BIND_FAILURE_QUARANTINE_THRESHOLD,
18
18
  INTEGRATIONS_SECTION_END,
@@ -59,7 +59,7 @@ import {
59
59
  resolveConnectivityProbe,
60
60
  worseConnectivityOutcome,
61
61
  wrapScheduledTaskPrompt
62
- } from "./chunk-NOGQSRQM.js";
62
+ } from "./chunk-FM63TWR3.js";
63
63
  import {
64
64
  parsePsRows
65
65
  } from "./chunk-XWVM4KPK.js";
@@ -6396,7 +6396,7 @@ function exchangeFailureKind(err) {
6396
6396
  }
6397
6397
 
6398
6398
  // src/lib/api-client.ts
6399
- var agtCliVersion = true ? "0.28.708" : "dev";
6399
+ var agtCliVersion = true ? "0.28.710" : "dev";
6400
6400
  var lastConfigHash = null;
6401
6401
  function setConfigHash(hash) {
6402
6402
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -10137,4 +10137,4 @@ export {
10137
10137
  managerInstallSystemUnitCommand,
10138
10138
  managerUninstallSystemUnitCommand
10139
10139
  };
10140
- //# sourceMappingURL=chunk-7ZW4P5EU.js.map
10140
+ //# sourceMappingURL=chunk-FDI4N2HO.js.map
@@ -12652,6 +12652,31 @@ function minutesSinceLocalMidnight(now = /* @__PURE__ */ new Date(), timezone) {
12652
12652
  function peekCurrentSession(codeName) {
12653
12653
  return readFile(codeName).current;
12654
12654
  }
12655
+ function readDailySessionPin(codeName) {
12656
+ const path = dailySessionPath(codeName);
12657
+ if (!existsSync(path)) {
12658
+ return { path, present: false, raw: null, currentDate: null, currentSessionId: null };
12659
+ }
12660
+ let raw;
12661
+ try {
12662
+ raw = readFileSync(path, "utf-8");
12663
+ } catch {
12664
+ return { path, present: true, raw: null, currentDate: null, currentSessionId: null };
12665
+ }
12666
+ try {
12667
+ const parsed = JSON.parse(raw);
12668
+ const current = parsed.current ?? null;
12669
+ return {
12670
+ path,
12671
+ present: true,
12672
+ raw,
12673
+ currentDate: current?.date ?? null,
12674
+ currentSessionId: current?.sessionId ?? null
12675
+ };
12676
+ } catch {
12677
+ return { path, present: true, raw, currentDate: null, currentSessionId: null };
12678
+ }
12679
+ }
12655
12680
 
12656
12681
  export {
12657
12682
  isUnsetTimezone,
@@ -12809,6 +12834,7 @@ export {
12809
12834
  isAgentIdle,
12810
12835
  isStaleForToday,
12811
12836
  minutesSinceLocalMidnight,
12812
- peekCurrentSession
12837
+ peekCurrentSession,
12838
+ readDailySessionPin
12813
12839
  };
12814
- //# sourceMappingURL=chunk-NOGQSRQM.js.map
12840
+ //# sourceMappingURL=chunk-FM63TWR3.js.map