@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 +5 -5
- package/dist/{chunk-IM5LTTRM.js → chunk-GADDU3OI.js} +5 -5
- package/dist/chunk-GADDU3OI.js.map +1 -0
- package/dist/{chunk-FZZ257OT.js → chunk-GMSDTOIJ.js} +4 -4
- package/dist/{chunk-3OI4ZHJZ.js → chunk-IFKADCYL.js} +29 -3
- package/dist/chunk-IFKADCYL.js.map +1 -0
- package/dist/{claude-pair-runtime-QVKJZJIO.js → claude-pair-runtime-LEBWTMUD.js} +2 -2
- package/dist/lib/manager-worker.js +14 -14
- package/dist/{persistent-session-DA22LYBZ.js → persistent-session-3HKYLJJ4.js} +5 -3
- package/dist/{responsiveness-probe-725OVJWA.js → responsiveness-probe-NTADLB6L.js} +3 -3
- package/dist/{session-auth-dead-4NUNUCRK.js → session-auth-dead-DXSFQIX2.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-3OI4ZHJZ.js.map +0 -1
- package/dist/chunk-IM5LTTRM.js.map +0 -1
- /package/dist/{chunk-FZZ257OT.js.map → chunk-GMSDTOIJ.js.map} +0 -0
- /package/dist/{claude-pair-runtime-QVKJZJIO.js.map → claude-pair-runtime-LEBWTMUD.js.map} +0 -0
- /package/dist/{persistent-session-DA22LYBZ.js.map → persistent-session-3HKYLJJ4.js.map} +0 -0
- /package/dist/{responsiveness-probe-725OVJWA.js.map → responsiveness-probe-NTADLB6L.js.map} +0 -0
- /package/dist/{session-auth-dead-4NUNUCRK.js.map → session-auth-dead-DXSFQIX2.js.map} +0 -0
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
parseEnvFileEntries,
|
|
16
16
|
parseEnvIntegrations,
|
|
17
17
|
shellQuote
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IFKADCYL.js";
|
|
19
19
|
import {
|
|
20
20
|
BIND_FAILURE_QUARANTINE_THRESHOLD,
|
|
21
21
|
INTEGRATIONS_SECTION_END,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
sessionTranscriptDir,
|
|
76
76
|
worseConnectivityOutcome,
|
|
77
77
|
wrapScheduledTaskPrompt
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-GADDU3OI.js";
|
|
79
79
|
import {
|
|
80
80
|
classifyUnanswerablePane,
|
|
81
81
|
summarizeUnanswerablePane
|
|
@@ -6974,7 +6974,7 @@ function exchangeFailureKind(err) {
|
|
|
6974
6974
|
}
|
|
6975
6975
|
|
|
6976
6976
|
// src/lib/api-client.ts
|
|
6977
|
-
var agtCliVersion = true ? "0.28.
|
|
6977
|
+
var agtCliVersion = true ? "0.28.999" : "dev";
|
|
6978
6978
|
var lastConfigHash = null;
|
|
6979
6979
|
function setConfigHash(hash) {
|
|
6980
6980
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -11725,4 +11725,4 @@ export {
|
|
|
11725
11725
|
managerInstallSystemUnitCommand,
|
|
11726
11726
|
managerUninstallSystemUnitCommand
|
|
11727
11727
|
};
|
|
11728
|
-
//# sourceMappingURL=chunk-
|
|
11728
|
+
//# sourceMappingURL=chunk-GMSDTOIJ.js.map
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
isClaudeFastMode,
|
|
13
13
|
isDefaultRemoteMcpConnection,
|
|
14
14
|
isDeprecatedFramework,
|
|
15
|
+
isUnsetTimezone,
|
|
15
16
|
markDailySessionSpawn,
|
|
16
17
|
mcpWildcardsForServers,
|
|
17
18
|
modelSlotsForFramework,
|
|
@@ -22,7 +23,7 @@ import {
|
|
|
22
23
|
rotateDailySession,
|
|
23
24
|
sessionFileExists,
|
|
24
25
|
todayLocalIso
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GADDU3OI.js";
|
|
26
27
|
import {
|
|
27
28
|
classifyUnanswerablePane,
|
|
28
29
|
findUsageLimitResetHint,
|
|
@@ -3743,6 +3744,10 @@ function syncClaudeCredsToRoot() {
|
|
|
3743
3744
|
return false;
|
|
3744
3745
|
}
|
|
3745
3746
|
}
|
|
3747
|
+
function resolveSessionTz(agentTimezone, hostZone = Intl.DateTimeFormat().resolvedOptions().timeZone) {
|
|
3748
|
+
if (!isUnsetTimezone(agentTimezone)) return agentTimezone.trim();
|
|
3749
|
+
return hostZone.trim() || "UTC";
|
|
3750
|
+
}
|
|
3746
3751
|
function resolveOAuthCredAction(claudeAuthMode, openRouterMode, policy, policyApplied) {
|
|
3747
3752
|
if (policy && policyApplied) return policyPutsAnthropicApiKeyInEnv(policy) ? "purge" : "sync";
|
|
3748
3753
|
if (openRouterMode) return "sync";
|
|
@@ -4016,7 +4021,7 @@ function ensureClaudeStateLayout(args) {
|
|
|
4016
4021
|
mkdirSync6(join7(projects, encodeClaudeProjectPath(args.projectDir)), { recursive: true });
|
|
4017
4022
|
}
|
|
4018
4023
|
function buildDockerRunCommand(args) {
|
|
4019
|
-
const { codeName, agentId, wrapperPath, projectDir, homeDir, runId, passApiKey, passOpenRouter, passModelPolicyGateway, passModelPolicyModel, egress, forwardSlackReplyBinding, forwardBlockTurnEndAllMarkers, forwardKanbanWaiting, forwardNotifyDispatch, forwardTurnFailureNotice, forwardChannelSecrets, agentClass } = args;
|
|
4024
|
+
const { codeName, agentId, wrapperPath, projectDir, homeDir, runId, passApiKey, passOpenRouter, passModelPolicyGateway, passModelPolicyModel, egress, forwardSlackReplyBinding, forwardBlockTurnEndAllMarkers, forwardKanbanWaiting, forwardNotifyDispatch, forwardTimezone, forwardTurnFailureNotice, forwardChannelSecrets, agentClass } = args;
|
|
4020
4025
|
const q = (s) => `'${s.replace(/'/g, `'\\''`)}'`;
|
|
4021
4026
|
const agentDir2 = join7(homeDir, ".augmented", codeName);
|
|
4022
4027
|
const agentIdDir = join7(homeDir, ".augmented", agentId);
|
|
@@ -4077,6 +4082,7 @@ function buildDockerRunCommand(args) {
|
|
|
4077
4082
|
if (forwardBlockTurnEndAllMarkers) envArgs.push("-e AGT_BLOCK_TURN_END_ALL_MARKERS_ENABLED");
|
|
4078
4083
|
if (forwardKanbanWaiting) envArgs.push("-e AGT_KANBAN_WAITING_ENABLED");
|
|
4079
4084
|
if (forwardNotifyDispatch) envArgs.push("-e AGT_NOTIFY_DISPATCH");
|
|
4085
|
+
if (forwardTimezone) envArgs.push("-e TZ");
|
|
4080
4086
|
if (forwardTurnFailureNotice) envArgs.push("-e AGT_WEDGE_TRANSIENT_NOTICE_ENABLED");
|
|
4081
4087
|
for (const name of forwardChannelSecrets ?? []) {
|
|
4082
4088
|
envArgs.push(`-e ${name}`);
|
|
@@ -4759,6 +4765,7 @@ function spawnSession(config, session) {
|
|
|
4759
4765
|
"-e",
|
|
4760
4766
|
`${CLAUDE_CODE_TMPDIR_ENV}=${agentTmpDirFor(dirname5(config.projectDir))}`
|
|
4761
4767
|
);
|
|
4768
|
+
tmuxSessionEnvArgs.push("-e", `TZ=${resolveSessionTz(config.agentTimezone)}`);
|
|
4762
4769
|
if (config.perAgentApiKey) {
|
|
4763
4770
|
tmuxSessionEnvArgs.push("-e", `AGT_API_KEY=${config.perAgentApiKey}`);
|
|
4764
4771
|
}
|
|
@@ -4831,6 +4838,24 @@ function spawnSession(config, session) {
|
|
|
4831
4838
|
// silent fallback to the host's auth rather than a visible failure.
|
|
4832
4839
|
passModelPolicyGateway: policyEnvActive,
|
|
4833
4840
|
passModelPolicyModel: policyModelActive,
|
|
4841
|
+
// CS-1746: the container's clock must match the pane's, and this is
|
|
4842
|
+
// UNCONDITIONAL because the pane's now is too.
|
|
4843
|
+
//
|
|
4844
|
+
// This read `!isUnsetTimezone(config.agentTimezone)` until CodeRabbit
|
|
4845
|
+
// caught it on #6319, and it was stale by one commit of my own doing.
|
|
4846
|
+
// When the tmux push was conditional the predicates matched; once I
|
|
4847
|
+
// made the session always state a zone (`TZ=UTC` for a zone-less
|
|
4848
|
+
// agent), this gate became the surviving half of the very asymmetry
|
|
4849
|
+
// the other half was added to remove. A zone-less docker agent got
|
|
4850
|
+
// `TZ=UTC` on its session and NO `-e TZ` into its container, so the
|
|
4851
|
+
// container fell through to the IMAGE's timezone - which a custom
|
|
4852
|
+
// isolation image is free to set to something other than UTC.
|
|
4853
|
+
//
|
|
4854
|
+
// Always forwarding is also simply correct now: there is no longer a
|
|
4855
|
+
// spawn that leaves `TZ` unset, so there is nothing for a conditional
|
|
4856
|
+
// to select. The helper keeps its own `if (forwardTimezone)` — that
|
|
4857
|
+
// is the helper's contract, not this call site's decision.
|
|
4858
|
+
forwardTimezone: true,
|
|
4834
4859
|
egress,
|
|
4835
4860
|
// ENG-6476: forward the reply-routing flag env if it will be present in the
|
|
4836
4861
|
// session env (operator-set OR materialized from the flag above).
|
|
@@ -5685,6 +5710,7 @@ export {
|
|
|
5685
5710
|
modelPolicyEgressDomains,
|
|
5686
5711
|
failoverRestartNotice,
|
|
5687
5712
|
policyResolvedModel,
|
|
5713
|
+
resolveSessionTz,
|
|
5688
5714
|
resolveOAuthCredAction,
|
|
5689
5715
|
resolveClaudeBinary,
|
|
5690
5716
|
isolationMode,
|
|
@@ -5750,4 +5776,4 @@ export {
|
|
|
5750
5776
|
stopAllSessionsAndWait,
|
|
5751
5777
|
getProjectDir
|
|
5752
5778
|
};
|
|
5753
|
-
//# sourceMappingURL=chunk-
|
|
5779
|
+
//# sourceMappingURL=chunk-IFKADCYL.js.map
|