@integrity-labs/agt-cli 0.28.997 → 0.28.999

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,12 +40,12 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-FZZ257OT.js";
43
+ } from "../chunk-GMSDTOIJ.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-3OI4ZHJZ.js";
48
+ } from "../chunk-IFKADCYL.js";
49
49
  import {
50
50
  AnchorSessionClient,
51
51
  CHANNEL_REGISTRY,
@@ -79,7 +79,7 @@ import {
79
79
  serializeManifestForSlackCli,
80
80
  sessionFileExists,
81
81
  sessionTranscriptDir
82
- } from "../chunk-IM5LTTRM.js";
82
+ } from "../chunk-GADDU3OI.js";
83
83
  import "../chunk-DHWNVVX4.js";
84
84
  import "../chunk-XWVM4KPK.js";
85
85
  import "../chunk-DGUM43GV.js";
@@ -5473,7 +5473,7 @@ import { execFileSync, execSync } from "child_process";
5473
5473
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5474
5474
  import chalk18 from "chalk";
5475
5475
  import ora16 from "ora";
5476
- var cliVersion = true ? "0.28.997" : "dev";
5476
+ var cliVersion = true ? "0.28.999" : "dev";
5477
5477
  async function fetchLatestVersion() {
5478
5478
  const host2 = getHost();
5479
5479
  if (!host2) return null;
@@ -6733,7 +6733,7 @@ function handleError(err) {
6733
6733
  }
6734
6734
 
6735
6735
  // src/bin/agt.ts
6736
- var cliVersion2 = true ? "0.28.997" : "dev";
6736
+ var cliVersion2 = true ? "0.28.999" : "dev";
6737
6737
  var program = new Command();
6738
6738
  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");
6739
6739
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -4915,15 +4915,15 @@ function resolveEffectiveTimezone(taskTimezone, teamTimezone) {
4915
4915
  return void 0;
4916
4916
  }
4917
4917
  function buildNowBlock(timezone) {
4918
- if (!timezone || timezone.trim() === "" || timezone.trim().toUpperCase() === "UTC") {
4918
+ if (!timezone || timezone.trim() === "") {
4919
4919
  return "";
4920
4920
  }
4921
4921
  const tz = timezone.trim();
4922
4922
  return [
4923
4923
  NOW_BLOCK_HEADER,
4924
- `The user operates in IANA timezone \`${tz}\`. The system clock you see is UTC.`,
4925
- `When you compute "today", "yesterday", "tomorrow", or any date range \u2014 including for calendar, kanban, mail, or any tool that takes \`start\`/\`end\`/\`timeMin\`/\`timeMax\` \u2014 first convert the current UTC time to \`${tz}\`, then derive the date from that wall-clock day. Do NOT use the UTC date directly: when UTC and \`${tz}\` straddle midnight (typical in early local morning or late local evening), they disagree by one day, and the agent has previously surfaced "yesterday's" meetings as a result.`,
4926
- `If a tool requires an ISO timestamp, format the start/end as \`<YYYY-MM-DD>T00:00:00\` in \`${tz}\` and let the tool's tz handling apply, or supply the equivalent UTC instant (e.g. local midnight converted back to UTC) \u2014 never the UTC midnight of the UTC date.`,
4924
+ `This task's dates are in IANA timezone \`${tz}\`. "Today", "yesterday" and "tomorrow" mean the wall-clock day in \`${tz}\`.`,
4925
+ `DO NOT TRUST YOUR PROCESS CLOCK TO BE \`${tz}\`. It may or may not be, and you cannot tell which from inside the run. Compute the date in \`${tz}\` EXPLICITLY - for example \`new Date().toLocaleString('en-CA', { timeZone: '${tz}' })\` or \`TZ=${tz} date\` - and use that, whatever \`date\` or \`new Date()\` report on their own.`,
4926
+ `When a tool takes \`start\`/\`end\`/\`timeMin\`/\`timeMax\`, give it the instant that corresponds to local midnight in \`${tz}\` - either \`<YYYY-MM-DD>T00:00:00\` with the tool's own tz handling, or the equivalent UTC instant. Never the UTC midnight of the UTC date.`,
4927
4927
  "",
4928
4928
  ""
4929
4929
  ].join("\n");
@@ -15279,4 +15279,4 @@ export {
15279
15279
  peekCurrentSession,
15280
15280
  readDailySessionPin
15281
15281
  };
15282
- //# sourceMappingURL=chunk-IM5LTTRM.js.map
15282
+ //# sourceMappingURL=chunk-GADDU3OI.js.map