@integrity-labs/agt-cli 0.28.1011 → 0.28.1012
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-APSSNA7A.js → chunk-K73BIWKA.js} +32 -4
- package/dist/chunk-K73BIWKA.js.map +1 -0
- package/dist/{chunk-OPDT2OE5.js → chunk-LV72A4BE.js} +1 -1
- package/dist/chunk-LV72A4BE.js.map +1 -0
- package/dist/{chunk-IXWRE7BB.js → chunk-O3DODZVZ.js} +4 -4
- package/dist/{claude-pair-runtime-WLXYE2XB.js → claude-pair-runtime-NPXBXUSE.js} +2 -2
- package/dist/lib/manager-worker.js +14 -14
- package/dist/{persistent-session-FV6AAMTM.js → persistent-session-KPASTJIV.js} +3 -3
- package/dist/{responsiveness-probe-243L66XK.js → responsiveness-probe-RSVGRS63.js} +3 -3
- package/dist/{session-auth-dead-J3MNBHCZ.js → session-auth-dead-YV2X4AGF.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-APSSNA7A.js.map +0 -1
- package/dist/chunk-OPDT2OE5.js.map +0 -1
- /package/dist/{chunk-IXWRE7BB.js.map → chunk-O3DODZVZ.js.map} +0 -0
- /package/dist/{claude-pair-runtime-WLXYE2XB.js.map → claude-pair-runtime-NPXBXUSE.js.map} +0 -0
- /package/dist/{persistent-session-FV6AAMTM.js.map → persistent-session-KPASTJIV.js.map} +0 -0
- /package/dist/{responsiveness-probe-243L66XK.js.map → responsiveness-probe-RSVGRS63.js.map} +0 -0
- /package/dist/{session-auth-dead-J3MNBHCZ.js.map → session-auth-dead-YV2X4AGF.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-O3DODZVZ.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
47
47
|
readDirectChatSessionState
|
|
48
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-K73BIWKA.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-LV72A4BE.js";
|
|
83
83
|
import "../chunk-DHWNVVX4.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.1012" : "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.1012" : "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) => {
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
rotateDailySession,
|
|
24
24
|
sessionFileExists,
|
|
25
25
|
todayLocalIso
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LV72A4BE.js";
|
|
27
27
|
import {
|
|
28
28
|
classifyUnanswerablePane,
|
|
29
29
|
findUsageLimitResetHint,
|
|
@@ -3414,7 +3414,20 @@ function parseModelPolicyModels(raw) {
|
|
|
3414
3414
|
if (typeof role !== "string" || !ROLES.includes(role)) return [];
|
|
3415
3415
|
if (typeof slot !== "string" || slot.trim() === "") return [];
|
|
3416
3416
|
if (typeof modelId !== "string" || modelId.trim() === "") return [];
|
|
3417
|
-
|
|
3417
|
+
const windowRaw = entry["context_window"];
|
|
3418
|
+
let contextWindow = null;
|
|
3419
|
+
if (windowRaw !== void 0 && windowRaw !== null) {
|
|
3420
|
+
if (typeof windowRaw !== "number" || !Number.isSafeInteger(windowRaw) || windowRaw <= 0) {
|
|
3421
|
+
return [];
|
|
3422
|
+
}
|
|
3423
|
+
contextWindow = windowRaw;
|
|
3424
|
+
}
|
|
3425
|
+
out.push({
|
|
3426
|
+
role,
|
|
3427
|
+
slot: slot.trim(),
|
|
3428
|
+
modelId: modelId.trim(),
|
|
3429
|
+
contextWindow
|
|
3430
|
+
});
|
|
3418
3431
|
}
|
|
3419
3432
|
return out;
|
|
3420
3433
|
}
|
|
@@ -3563,6 +3576,17 @@ function modelEnvForRole(policy, role) {
|
|
|
3563
3576
|
}
|
|
3564
3577
|
return out;
|
|
3565
3578
|
}
|
|
3579
|
+
var CLAUDE_CODE_CONTEXT_WINDOW_ENV = "CLAUDE_CODE_MAX_CONTEXT_TOKENS";
|
|
3580
|
+
function contextWindowEnvForRole(policy, role) {
|
|
3581
|
+
if (!policy) return {};
|
|
3582
|
+
for (const m of policy.models) {
|
|
3583
|
+
if (m.role !== role) continue;
|
|
3584
|
+
if (CLAUDE_CODE_SLOT_ENV.get(m.slot) !== "ANTHROPIC_MODEL") continue;
|
|
3585
|
+
if (m.contextWindow === null) continue;
|
|
3586
|
+
return { [CLAUDE_CODE_CONTEXT_WINDOW_ENV]: String(m.contextWindow) };
|
|
3587
|
+
}
|
|
3588
|
+
return {};
|
|
3589
|
+
}
|
|
3566
3590
|
function resolveModelPolicySpawnEnv(input) {
|
|
3567
3591
|
const { policy, openRouterMode, gatewayToken, codeName } = input;
|
|
3568
3592
|
const active = activeBinding(policy);
|
|
@@ -3584,7 +3608,10 @@ function resolveModelPolicySpawnEnv(input) {
|
|
|
3584
3608
|
notice: `[model-policy] '${codeName}' has policy '${policy.name}' but is in OpenRouter mode \u2014 OpenRouter wins, policy not applied (ENG-9483: unifying the two actuators is a separate migration)`
|
|
3585
3609
|
};
|
|
3586
3610
|
}
|
|
3587
|
-
const modelEnv =
|
|
3611
|
+
const modelEnv = {
|
|
3612
|
+
...modelEnvForRole(policy, active.role),
|
|
3613
|
+
...contextWindowEnvForRole(policy, active.role)
|
|
3614
|
+
};
|
|
3588
3615
|
const projectSettings = projectSettingsForRole(policy, active.role);
|
|
3589
3616
|
const modelNote = Object.keys(modelEnv).length > 0 ? ` models=${Object.entries(modelEnv).map(([k, v]) => `${k}=${v}`).join(" ")}` : "";
|
|
3590
3617
|
const advisorNote = Object.keys(projectSettings).length > 0 ? ` project-settings=${Object.entries(projectSettings).map(([k, v]) => `${k}=${v}`).join(" ")}` : "";
|
|
@@ -4109,6 +4136,7 @@ function buildDockerRunCommand(args) {
|
|
|
4109
4136
|
if (passModelPolicyModel) {
|
|
4110
4137
|
envArgs.push("-e ANTHROPIC_MODEL");
|
|
4111
4138
|
envArgs.push("-e ANTHROPIC_SMALL_FAST_MODEL");
|
|
4139
|
+
envArgs.push("-e CLAUDE_CODE_MAX_CONTEXT_TOKENS");
|
|
4112
4140
|
}
|
|
4113
4141
|
if (runId) envArgs.push(`-e ${q(`AGT_RUN_ID=${runId}`)}`);
|
|
4114
4142
|
envArgs.push("-e AGT_API_KEY");
|
|
@@ -5856,4 +5884,4 @@ export {
|
|
|
5856
5884
|
stopAllSessionsAndWait,
|
|
5857
5885
|
getProjectDir
|
|
5858
5886
|
};
|
|
5859
|
-
//# sourceMappingURL=chunk-
|
|
5887
|
+
//# sourceMappingURL=chunk-K73BIWKA.js.map
|