@integrity-labs/agt-cli 0.28.709 → 0.28.711

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.
@@ -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