@integrity-labs/agt-cli 0.28.429 → 0.28.430

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-WR53BM4P.js";
43
+ } from "../chunk-ARNUO2QE.js";
44
44
  import {
45
45
  AnchorSessionClient,
46
46
  CHANNEL_REGISTRY,
@@ -70,7 +70,7 @@ import {
70
70
  renderTemplate,
71
71
  resolveChannels,
72
72
  serializeManifestForSlackCli
73
- } from "../chunk-IILXBXBL.js";
73
+ } from "../chunk-EREBH2LV.js";
74
74
  import "../chunk-XWVM4KPK.js";
75
75
 
76
76
  // src/bin/agt.ts
@@ -4829,7 +4829,7 @@ import { execFileSync, execSync } from "child_process";
4829
4829
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4830
4830
  import chalk18 from "chalk";
4831
4831
  import ora16 from "ora";
4832
- var cliVersion = true ? "0.28.429" : "dev";
4832
+ var cliVersion = true ? "0.28.430" : "dev";
4833
4833
  async function fetchLatestVersion() {
4834
4834
  const host2 = getHost();
4835
4835
  if (!host2) return null;
@@ -6001,7 +6001,7 @@ function handleError(err) {
6001
6001
  }
6002
6002
 
6003
6003
  // src/bin/agt.ts
6004
- var cliVersion2 = true ? "0.28.429" : "dev";
6004
+ var cliVersion2 = true ? "0.28.430" : "dev";
6005
6005
  var program = new Command();
6006
6006
  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");
6007
6007
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -28,7 +28,7 @@ import {
28
28
  resolveConnectivityProbe,
29
29
  worseConnectivityOutcome,
30
30
  wrapScheduledTaskPrompt
31
- } from "./chunk-IILXBXBL.js";
31
+ } from "./chunk-EREBH2LV.js";
32
32
  import {
33
33
  parsePsRows
34
34
  } from "./chunk-XWVM4KPK.js";
@@ -4903,7 +4903,7 @@ function requireHost() {
4903
4903
  }
4904
4904
 
4905
4905
  // src/lib/api-client.ts
4906
- var agtCliVersion = true ? "0.28.429" : "dev";
4906
+ var agtCliVersion = true ? "0.28.430" : "dev";
4907
4907
  var lastConfigHash = null;
4908
4908
  function setConfigHash(hash) {
4909
4909
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -7404,4 +7404,4 @@ export {
7404
7404
  managerInstallSystemUnitCommand,
7405
7405
  managerUninstallSystemUnitCommand
7406
7406
  };
7407
- //# sourceMappingURL=chunk-WR53BM4P.js.map
7407
+ //# sourceMappingURL=chunk-ARNUO2QE.js.map
@@ -7426,15 +7426,24 @@ function isUnsetTimezone(tz) {
7426
7426
  const trimmed = tz.trim();
7427
7427
  return trimmed.length === 0 || trimmed.toLowerCase() === "auto" || trimmed.toUpperCase() === "UTC";
7428
7428
  }
7429
- function resolveAgentTimezone(agentTimezone, teamTimezone, orgTimezone) {
7430
- if (!isUnsetTimezone(agentTimezone))
7429
+ function resolveAgentTimezone(agentTimezone, teamTimezone, orgTimezone, agentTimezoneExpiresAt) {
7430
+ if (!isUnsetTimezone(agentTimezone) && !isAgentTimezoneOverrideExpired(agentTimezoneExpiresAt)) {
7431
7431
  return agentTimezone.trim();
7432
+ }
7432
7433
  if (!isUnsetTimezone(teamTimezone))
7433
7434
  return teamTimezone.trim();
7434
7435
  if (!isUnsetTimezone(orgTimezone))
7435
7436
  return orgTimezone.trim();
7436
7437
  return "UTC";
7437
7438
  }
7439
+ function isAgentTimezoneOverrideExpired(expiresAt, now = /* @__PURE__ */ new Date()) {
7440
+ if (expiresAt === null || expiresAt === void 0)
7441
+ return false;
7442
+ const expiry = expiresAt instanceof Date ? expiresAt.getTime() : Date.parse(expiresAt);
7443
+ if (Number.isNaN(expiry))
7444
+ return false;
7445
+ return expiry <= now.getTime();
7446
+ }
7438
7447
 
7439
7448
  // ../../packages/core/dist/inbound-lanes/index.js
7440
7449
  var DIRECTIVE_KINDS = [
@@ -13958,6 +13967,7 @@ function getProjectDir(codeName) {
13958
13967
  export {
13959
13968
  isUnsetTimezone,
13960
13969
  resolveAgentTimezone,
13970
+ isAgentTimezoneOverrideExpired,
13961
13971
  wrapScheduledTaskPrompt,
13962
13972
  buildScheduledTaskContextBlocks,
13963
13973
  DEFAULT_FRAMEWORK,
@@ -14116,4 +14126,4 @@ export {
14116
14126
  stopAllSessionsAndWait,
14117
14127
  getProjectDir
14118
14128
  };
14119
- //# sourceMappingURL=chunk-IILXBXBL.js.map
14129
+ //# sourceMappingURL=chunk-EREBH2LV.js.map