@integrity-labs/agt-cli 0.22.4 → 0.22.6

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-N4RO7C3W.js";
29
+ } from "../chunk-Y2XFZBEE.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.22.4" : "dev";
3739
+ var cliVersion = true ? "0.22.6" : "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.22.4" : "dev";
4271
+ var cliVersion2 = true ? "0.22.6" : "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) => {
@@ -225,36 +225,6 @@ function rotateDailySession(codeName, now = /* @__PURE__ */ new Date(), timezone
225
225
  writeFile(codeName, { current: next, history });
226
226
  return next.sessionId;
227
227
  }
228
- function encodeProjectPath(projectDir) {
229
- return "-" + projectDir.replace(/^\//, "").replace(/[/.]/g, "-");
230
- }
231
- function sessionFilePath(projectDir, sessionId) {
232
- return join(
233
- homedir(),
234
- ".claude",
235
- "projects",
236
- encodeProjectPath(projectDir),
237
- `${sessionId}.jsonl`
238
- );
239
- }
240
- function isAgentIdle(projectDir, sessionId, idleSeconds = 60, now = /* @__PURE__ */ new Date()) {
241
- const path = sessionFilePath(projectDir, sessionId);
242
- if (!existsSync(path)) return true;
243
- try {
244
- const mtimeMs = statSync(path).mtimeMs;
245
- return now.getTime() - mtimeMs >= idleSeconds * 1e3;
246
- } catch {
247
- return false;
248
- }
249
- }
250
- function isStaleForToday(codeName, now = /* @__PURE__ */ new Date(), timezone) {
251
- const file = readFile(codeName);
252
- if (!file.current) return false;
253
- return file.current.date !== todayLocalIso(now, timezone);
254
- }
255
- function peekCurrentSession(codeName) {
256
- return readFile(codeName).current;
257
- }
258
228
 
259
229
  // src/lib/persistent-session.ts
260
230
  function syncClaudeCredsToRoot() {
@@ -1109,9 +1079,6 @@ export {
1109
1079
  reapOrphanChannelMcps,
1110
1080
  sanitizeMcpJson,
1111
1081
  buildAllowedTools,
1112
- isAgentIdle,
1113
- isStaleForToday,
1114
- peekCurrentSession,
1115
1082
  resolveClaudeBinary,
1116
1083
  writePersistentClaudeWrapper,
1117
1084
  paneLogPath,
@@ -1133,4 +1100,4 @@ export {
1133
1100
  stopAllSessionsAndWait,
1134
1101
  getProjectDir
1135
1102
  };
1136
- //# sourceMappingURL=chunk-ZTGSZTJH.js.map
1103
+ //# sourceMappingURL=chunk-XNO35ZAN.js.map