@integrity-labs/agt-cli 0.28.1033 → 0.28.1034
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 +5 -5
- package/dist/{chunk-OOTJBM4Z.js → chunk-6AEWTLG7.js} +4 -4
- package/dist/{chunk-XP4TNPGF.js → chunk-H54FYWAK.js} +23 -4
- package/dist/chunk-H54FYWAK.js.map +1 -0
- package/dist/{chunk-X2YAGXVQ.js → chunk-V74YKGXU.js} +2 -2
- package/dist/{claude-pair-runtime-Y35IP7YV.js → claude-pair-runtime-I4XYDZWO.js} +2 -2
- package/dist/lib/manager-worker.js +19 -15
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-AZQGN35Q.js → persistent-session-MUY7PVLJ.js} +3 -3
- package/dist/{responsiveness-probe-GPKEUHXN.js → responsiveness-probe-MPL5PM33.js} +3 -3
- package/dist/{session-auth-dead-NLOUEO37.js → session-auth-dead-5ECPRU2V.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-XP4TNPGF.js.map +0 -1
- /package/dist/{chunk-OOTJBM4Z.js.map → chunk-6AEWTLG7.js.map} +0 -0
- /package/dist/{chunk-X2YAGXVQ.js.map → chunk-V74YKGXU.js.map} +0 -0
- /package/dist/{claude-pair-runtime-Y35IP7YV.js.map → claude-pair-runtime-I4XYDZWO.js.map} +0 -0
- /package/dist/{persistent-session-AZQGN35Q.js.map → persistent-session-MUY7PVLJ.js.map} +0 -0
- /package/dist/{responsiveness-probe-GPKEUHXN.js.map → responsiveness-probe-MPL5PM33.js.map} +0 -0
- /package/dist/{session-auth-dead-NLOUEO37.js.map → session-auth-dead-5ECPRU2V.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,12 +40,12 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-6AEWTLG7.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
47
47
|
readDirectChatSessionState
|
|
48
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-V74YKGXU.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-
|
|
82
|
+
} from "../chunk-H54FYWAK.js";
|
|
83
83
|
import "../chunk-TQDIIS3X.js";
|
|
84
84
|
import "../chunk-XWVM4KPK.js";
|
|
85
85
|
import "../chunk-EL5MWGGH.js";
|
|
@@ -5474,7 +5474,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5474
5474
|
import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
|
|
5475
5475
|
import chalk18 from "chalk";
|
|
5476
5476
|
import ora16 from "ora";
|
|
5477
|
-
var cliVersion = true ? "0.28.
|
|
5477
|
+
var cliVersion = true ? "0.28.1034" : "dev";
|
|
5478
5478
|
async function fetchLatestVersion() {
|
|
5479
5479
|
const host2 = getHost();
|
|
5480
5480
|
if (!host2) return null;
|
|
@@ -6734,7 +6734,7 @@ function handleError(err) {
|
|
|
6734
6734
|
}
|
|
6735
6735
|
|
|
6736
6736
|
// src/bin/agt.ts
|
|
6737
|
-
var cliVersion2 = true ? "0.28.
|
|
6737
|
+
var cliVersion2 = true ? "0.28.1034" : "dev";
|
|
6738
6738
|
var program = new Command();
|
|
6739
6739
|
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");
|
|
6740
6740
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
parseEnvFileEntries,
|
|
16
16
|
parseEnvIntegrations,
|
|
17
17
|
shellQuote
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-V74YKGXU.js";
|
|
19
19
|
import {
|
|
20
20
|
BIND_FAILURE_QUARANTINE_THRESHOLD,
|
|
21
21
|
INTEGRATIONS_SECTION_END,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
sessionTranscriptDir,
|
|
78
78
|
worseConnectivityOutcome,
|
|
79
79
|
wrapScheduledTaskPrompt
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-H54FYWAK.js";
|
|
81
81
|
import {
|
|
82
82
|
classifyUnanswerablePane,
|
|
83
83
|
isConsumerTermsDialogVisible,
|
|
@@ -7143,7 +7143,7 @@ function exchangeFailureKind(err) {
|
|
|
7143
7143
|
}
|
|
7144
7144
|
|
|
7145
7145
|
// src/lib/api-client.ts
|
|
7146
|
-
var agtCliVersion = true ? "0.28.
|
|
7146
|
+
var agtCliVersion = true ? "0.28.1034" : "dev";
|
|
7147
7147
|
var lastConfigHash = null;
|
|
7148
7148
|
function setConfigHash(hash) {
|
|
7149
7149
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -12100,4 +12100,4 @@ export {
|
|
|
12100
12100
|
managerInstallSystemUnitCommand,
|
|
12101
12101
|
managerUninstallSystemUnitCommand
|
|
12102
12102
|
};
|
|
12103
|
-
//# sourceMappingURL=chunk-
|
|
12103
|
+
//# sourceMappingURL=chunk-6AEWTLG7.js.map
|
|
@@ -5066,14 +5066,33 @@ function resolveEffectiveTimezone(taskTimezone, teamTimezone) {
|
|
|
5066
5066
|
return teamTimezone.trim();
|
|
5067
5067
|
return void 0;
|
|
5068
5068
|
}
|
|
5069
|
-
function
|
|
5069
|
+
function fireTimeLiteral(tz, firedAt) {
|
|
5070
|
+
if (!Number.isFinite(firedAt.getTime()))
|
|
5071
|
+
return "";
|
|
5072
|
+
try {
|
|
5073
|
+
const partsOf = (opts) => Object.fromEntries(new Intl.DateTimeFormat("en-GB", { timeZone: tz, ...opts }).formatToParts(firedAt).map((p2) => [p2.type, p2.value]));
|
|
5074
|
+
const named = partsOf({ weekday: "long", month: "long" });
|
|
5075
|
+
const num = partsOf({ year: "numeric", month: "2-digit", day: "2-digit" });
|
|
5076
|
+
if (!named.weekday || !named.month || !num.year || !num.month || !num.day)
|
|
5077
|
+
return "";
|
|
5078
|
+
const iso = `${num.year}-${num.month}-${num.day}`;
|
|
5079
|
+
return `At fire time (${firedAt.toISOString()}) it was ${named.weekday} ${Number(num.day)} ${named.month} ${num.year} in \`${tz}\` (${iso}).`;
|
|
5080
|
+
} catch {
|
|
5081
|
+
return "";
|
|
5082
|
+
}
|
|
5083
|
+
}
|
|
5084
|
+
function buildNowBlock(timezone, firedAt) {
|
|
5070
5085
|
if (!timezone || timezone.trim() === "") {
|
|
5071
5086
|
return "";
|
|
5072
5087
|
}
|
|
5073
5088
|
const tz = timezone.trim();
|
|
5089
|
+
const literal = firedAt ? fireTimeLiteral(tz, firedAt) : "";
|
|
5074
5090
|
return [
|
|
5075
5091
|
NOW_BLOCK_HEADER,
|
|
5076
5092
|
`This task's dates are in IANA timezone \`${tz}\`. "Today", "yesterday" and "tomorrow" mean the wall-clock day in \`${tz}\`.`,
|
|
5093
|
+
...literal ? [
|
|
5094
|
+
`${literal} That is when this run fired, NOT necessarily now: a card worked later may be on a later date. If the date you compute differs from this one, get the weekday the same way (\`TZ=${tz} date +%A\`) rather than working it out.`
|
|
5095
|
+
] : [],
|
|
5077
5096
|
`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.`,
|
|
5078
5097
|
`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.`,
|
|
5079
5098
|
"",
|
|
@@ -5117,7 +5136,7 @@ function wrapScheduledTaskPrompt(prompt, options = {}) {
|
|
|
5117
5136
|
const conditionalBlock = buildConditionalDeliveryBlock(options.deliveryPolicy);
|
|
5118
5137
|
const priorBlock = buildPriorRunsBlock(options.priorRuns);
|
|
5119
5138
|
const afterPreamble = conditionalBlock + priorBlock;
|
|
5120
|
-
const nowBlock = buildNowBlock(resolveEffectiveTimezone(options.timezone, options.teamTimezone));
|
|
5139
|
+
const nowBlock = buildNowBlock(resolveEffectiveTimezone(options.timezone, options.teamTimezone), options.firedAt);
|
|
5121
5140
|
const baseInput = stripNowBlock(prompt);
|
|
5122
5141
|
const hasPreamble = baseInput.startsWith(PREAMBLE_HEAD);
|
|
5123
5142
|
let body;
|
|
@@ -5132,7 +5151,7 @@ ${baseInput}`;
|
|
|
5132
5151
|
return nowBlock + body;
|
|
5133
5152
|
}
|
|
5134
5153
|
function buildScheduledTaskContextBlocks(options = {}) {
|
|
5135
|
-
const nowBlock = buildNowBlock(resolveEffectiveTimezone(options.timezone, options.teamTimezone));
|
|
5154
|
+
const nowBlock = buildNowBlock(resolveEffectiveTimezone(options.timezone, options.teamTimezone), options.firedAt);
|
|
5136
5155
|
const priorBlock = buildPriorRunsBlock(options.priorRuns);
|
|
5137
5156
|
return nowBlock + priorBlock;
|
|
5138
5157
|
}
|
|
@@ -15576,4 +15595,4 @@ export {
|
|
|
15576
15595
|
peekCurrentSession,
|
|
15577
15596
|
readDailySessionPin
|
|
15578
15597
|
};
|
|
15579
|
-
//# sourceMappingURL=chunk-
|
|
15598
|
+
//# sourceMappingURL=chunk-H54FYWAK.js.map
|