@integrity-labs/agt-cli 0.28.1311 → 0.28.1313
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/{api-client-LJIV4E3U.js → api-client-OATI5QPI.js} +3 -3
- package/dist/bin/agt.js +8 -8
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-C35ONIOM.js → chunk-4VFHXY7W.js} +2 -2
- package/dist/{chunk-LNLKOJC5.js → chunk-ABU3BOHU.js} +10 -10
- package/dist/{chunk-LNLKOJC5.js.map → chunk-ABU3BOHU.js.map} +1 -1
- package/dist/{chunk-AATR5MO7.js → chunk-BSZRE4X6.js} +38 -6
- package/dist/{chunk-AATR5MO7.js.map → chunk-BSZRE4X6.js.map} +1 -1
- package/dist/{chunk-PRSMP7YW.js → chunk-JX4S7KFB.js} +2 -2
- package/dist/{chunk-DTGNYXYM.js → chunk-JYBRZAAK.js} +8 -1
- package/dist/chunk-JYBRZAAK.js.map +1 -0
- package/dist/{chunk-NYBVFW7X.js → chunk-NBIS2LOE.js} +3 -3
- package/dist/{chunk-H3JMPEH7.js → chunk-ZE6WANYK.js} +11 -4
- package/dist/chunk-ZE6WANYK.js.map +1 -0
- package/dist/{claude-code-updater-QRAOQLXJ.js → claude-code-updater-OLV2OEVG.js} +3 -3
- package/dist/{claude-pair-runtime-ZI2LPY5E.js → claude-pair-runtime-QA3AUNBF.js} +3 -3
- package/dist/lib/manager-worker.js +22 -22
- package/dist/{manager-supervisor-TD7E6FPC.js → manager-supervisor-NZHBYHWF.js} +2 -2
- package/dist/mcp/direct-chat-channel.js +61 -2
- package/dist/mcp/slack-channel.js +48 -2
- package/dist/mcp/teams-channel.js +48 -2
- package/dist/mcp/telegram-channel.js +48 -2
- package/dist/{persistent-session-ADLDX7QL.js → persistent-session-K5WFQVXD.js} +4 -4
- package/dist/{responsiveness-probe-ETVF2D2O.js → responsiveness-probe-Q5PDMK2L.js} +4 -4
- package/dist/{session-auth-dead-36OZTRBJ.js → session-auth-dead-T57ORTYP.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-DTGNYXYM.js.map +0 -1
- package/dist/chunk-H3JMPEH7.js.map +0 -1
- /package/dist/{api-client-LJIV4E3U.js.map → api-client-OATI5QPI.js.map} +0 -0
- /package/dist/{chunk-C35ONIOM.js.map → chunk-4VFHXY7W.js.map} +0 -0
- /package/dist/{chunk-PRSMP7YW.js.map → chunk-JX4S7KFB.js.map} +0 -0
- /package/dist/{chunk-NYBVFW7X.js.map → chunk-NBIS2LOE.js.map} +0 -0
- /package/dist/{claude-code-updater-QRAOQLXJ.js.map → claude-code-updater-OLV2OEVG.js.map} +0 -0
- /package/dist/{claude-pair-runtime-ZI2LPY5E.js.map → claude-pair-runtime-QA3AUNBF.js.map} +0 -0
- /package/dist/{manager-supervisor-TD7E6FPC.js.map → manager-supervisor-NZHBYHWF.js.map} +0 -0
- /package/dist/{persistent-session-ADLDX7QL.js.map → persistent-session-K5WFQVXD.js.map} +0 -0
- /package/dist/{responsiveness-probe-ETVF2D2O.js.map → responsiveness-probe-Q5PDMK2L.js.map} +0 -0
- /package/dist/{session-auth-dead-36OZTRBJ.js.map → session-auth-dead-T57ORTYP.js.map} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
rotateDailySession,
|
|
5
5
|
sessionFileExists,
|
|
6
6
|
todayLocalIso
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JX4S7KFB.js";
|
|
8
8
|
import {
|
|
9
9
|
classifyUnanswerablePane,
|
|
10
10
|
customApiKeyDialogKeys,
|
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
reapOrphanChannelMcps
|
|
34
34
|
} from "./chunk-XWVM4KPK.js";
|
|
35
35
|
import {
|
|
36
|
+
DEFAULT_MODEL_POLICY_EFFORT,
|
|
36
37
|
INTEGRATION_REGISTRY,
|
|
37
38
|
OAUTH_PROVIDERS,
|
|
38
39
|
PLATFORM_STORAGE_RULE,
|
|
@@ -46,6 +47,7 @@ import {
|
|
|
46
47
|
isClaudeFastMode,
|
|
47
48
|
isDefaultRemoteMcpConnection,
|
|
48
49
|
isDeprecatedFramework,
|
|
50
|
+
isModelPolicyEffort,
|
|
49
51
|
isPlatformGatewayOrigin,
|
|
50
52
|
isUnsetTimezone,
|
|
51
53
|
mcpWildcardsForServers,
|
|
@@ -54,7 +56,7 @@ import {
|
|
|
54
56
|
remoteMcpConnectionEnvInfix,
|
|
55
57
|
remoteMcpConnectionLabel,
|
|
56
58
|
remoteMcpConnectionScopedEnvVar
|
|
57
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-JYBRZAAK.js";
|
|
58
60
|
import {
|
|
59
61
|
CLAUDE_CONFIG_DIR_ENV,
|
|
60
62
|
approveApiKeyInClaudeConfig,
|
|
@@ -3702,9 +3704,13 @@ function parseModelPolicy(raw) {
|
|
|
3702
3704
|
resolvedFrom,
|
|
3703
3705
|
activeRole,
|
|
3704
3706
|
bindings,
|
|
3705
|
-
models: parseModelPolicyModels(raw["models"])
|
|
3707
|
+
models: parseModelPolicyModels(raw["models"]),
|
|
3708
|
+
effort: parseModelPolicyEffort(raw["effort"])
|
|
3706
3709
|
};
|
|
3707
3710
|
}
|
|
3711
|
+
function parseModelPolicyEffort(raw) {
|
|
3712
|
+
return isModelPolicyEffort(raw) ? raw : DEFAULT_MODEL_POLICY_EFFORT;
|
|
3713
|
+
}
|
|
3708
3714
|
var GATEWAY_TOKEN_FINGERPRINT_LENGTH = 16;
|
|
3709
3715
|
function gatewayTokenFingerprint(token) {
|
|
3710
3716
|
return createHash2("sha256").update(token, "utf8").digest("hex").slice(0, GATEWAY_TOKEN_FINGERPRINT_LENGTH);
|
|
@@ -3783,9 +3789,11 @@ var CLAUDE_CODE_SLOT_ENV = /* @__PURE__ */ new Map([
|
|
|
3783
3789
|
var CLAUDE_CODE_SLOT_SETTINGS_KEY = /* @__PURE__ */ new Map([
|
|
3784
3790
|
["advisor", "advisorModel"]
|
|
3785
3791
|
]);
|
|
3792
|
+
var EFFORT_SETTINGS_KEY = "effortLevel";
|
|
3786
3793
|
var MANAGED_PROJECT_SETTINGS_KEYS = [
|
|
3787
3794
|
...CLAUDE_CODE_SLOT_SETTINGS_KEY.values()
|
|
3788
3795
|
];
|
|
3796
|
+
var SET_ONLY_PROJECT_SETTINGS_KEYS = [EFFORT_SETTINGS_KEY];
|
|
3789
3797
|
function projectSettingsForRole(policy, role) {
|
|
3790
3798
|
if (!policy) return {};
|
|
3791
3799
|
const out = {};
|
|
@@ -3795,6 +3803,7 @@ function projectSettingsForRole(policy, role) {
|
|
|
3795
3803
|
if (!key) continue;
|
|
3796
3804
|
out[key] = m.modelId;
|
|
3797
3805
|
}
|
|
3806
|
+
out[EFFORT_SETTINGS_KEY] = policy.effort;
|
|
3798
3807
|
return out;
|
|
3799
3808
|
}
|
|
3800
3809
|
function modelEnvForRole(policy, role) {
|
|
@@ -3822,7 +3831,17 @@ function contextWindowEnvForRole(policy, role) {
|
|
|
3822
3831
|
function resolveModelPolicySpawnEnv(input) {
|
|
3823
3832
|
const { policy, openRouterMode, gatewayToken, codeName } = input;
|
|
3824
3833
|
const active = activeBinding(policy);
|
|
3825
|
-
if (!policy || !active)
|
|
3834
|
+
if (!policy || !active) {
|
|
3835
|
+
return {
|
|
3836
|
+
env: {},
|
|
3837
|
+
modelEnv: {},
|
|
3838
|
+
// CodeRabbit #7875: NOT in OpenRouter mode. OpenRouter withholds effort
|
|
3839
|
+
// (its meaning on OpenRouter's models is unverified; see that branch below),
|
|
3840
|
+
// and a policy-less OpenRouter agent must not get it through this door.
|
|
3841
|
+
projectSettings: openRouterMode ? {} : { [EFFORT_SETTINGS_KEY]: DEFAULT_MODEL_POLICY_EFFORT },
|
|
3842
|
+
notice: null
|
|
3843
|
+
};
|
|
3844
|
+
}
|
|
3826
3845
|
const roleNote = policy.activeRole === "primary" ? "" : ` role=${policy.activeRole} (FAILOVER)`;
|
|
3827
3846
|
if (openRouterMode) {
|
|
3828
3847
|
return {
|
|
@@ -3836,6 +3855,11 @@ function resolveModelPolicySpawnEnv(input) {
|
|
|
3836
3855
|
// the env half of it — writing an advisor into the settings file for an
|
|
3837
3856
|
// agent whose model selection this branch just refused would be the
|
|
3838
3857
|
// half-applied state the `blocked` branch below spells out.
|
|
3858
|
+
//
|
|
3859
|
+
// ENG-12342: effort is withheld here too, deliberately (Sherlock's scope
|
|
3860
|
+
// call on #7875, overriding obi-wan c465fabb6528). Effort is a Claude
|
|
3861
|
+
// Code knob whose meaning on the non-Anthropic models OpenRouter serves
|
|
3862
|
+
// is unverified, and "no partial application" holds for every field.
|
|
3839
3863
|
projectSettings: {},
|
|
3840
3864
|
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)`
|
|
3841
3865
|
};
|
|
@@ -3846,7 +3870,10 @@ function resolveModelPolicySpawnEnv(input) {
|
|
|
3846
3870
|
};
|
|
3847
3871
|
const projectSettings = projectSettingsForRole(policy, active.role);
|
|
3848
3872
|
const modelNote = Object.keys(modelEnv).length > 0 ? ` models=${Object.entries(modelEnv).map(([k, v]) => `${k}=${v}`).join(" ")}` : "";
|
|
3849
|
-
const
|
|
3873
|
+
const notedSettings = Object.entries(projectSettings).filter(
|
|
3874
|
+
([k, v]) => !(k === EFFORT_SETTINGS_KEY && v === DEFAULT_MODEL_POLICY_EFFORT)
|
|
3875
|
+
);
|
|
3876
|
+
const advisorNote = notedSettings.length > 0 ? ` project-settings=${notedSettings.map(([k, v]) => `${k}=${v}`).join(" ")}` : "";
|
|
3850
3877
|
const noPrimaryModelNote = modelEnv.ANTHROPIC_MODEL ? "" : Object.keys(modelEnv).length === 0 ? " models=none - this policy names NO primary model: the agent's own --model alias is NOT overridden, so the policy is not choosing what crosses this gateway" : " - but NO primary model: the agent's --model alias is suppressed by the rows above and nothing replaces it, so the policy is not choosing what crosses this gateway";
|
|
3851
3878
|
const resolution = resolveBindingCredential(active, gatewayToken);
|
|
3852
3879
|
switch (resolution.kind) {
|
|
@@ -3891,6 +3918,8 @@ function resolveModelPolicySpawnEnv(input) {
|
|
|
3891
3918
|
modelEnv: {},
|
|
3892
3919
|
// ENG-10075: and no advisor, for the identical reason. An advisor is a
|
|
3893
3920
|
// model choice made for an endpoint this manager could not honour.
|
|
3921
|
+
// ENG-12342: and no effort either — the same deliberate withholding as
|
|
3922
|
+
// the OpenRouter branch above.
|
|
3894
3923
|
projectSettings: {},
|
|
3895
3924
|
notice: `[model-policy] '${codeName}' policy '${policy.name}' NOT applied \u2014 reason=${resolution.reason}; keeping existing auth (transport=${active.transport}, credential_source=${active.credentialSource})${roleNote}`
|
|
3896
3925
|
};
|
|
@@ -4016,6 +4045,9 @@ function writeProjectClaudeSettings(args) {
|
|
|
4016
4045
|
if (key in managed) next[key] = managed[key];
|
|
4017
4046
|
else delete next[key];
|
|
4018
4047
|
}
|
|
4048
|
+
for (const key of SET_ONLY_PROJECT_SETTINGS_KEYS) {
|
|
4049
|
+
if (key in managed) next[key] = managed[key];
|
|
4050
|
+
}
|
|
4019
4051
|
let denyAdded = false;
|
|
4020
4052
|
if (deny.length > 0) {
|
|
4021
4053
|
const perms = next["permissions"] !== null && typeof next["permissions"] === "object" && !Array.isArray(next["permissions"]) ? { ...next["permissions"] } : {};
|
|
@@ -6709,4 +6741,4 @@ export {
|
|
|
6709
6741
|
stopAllSessionsAndWait,
|
|
6710
6742
|
getProjectDir
|
|
6711
6743
|
};
|
|
6712
|
-
//# sourceMappingURL=chunk-
|
|
6744
|
+
//# sourceMappingURL=chunk-BSZRE4X6.js.map
|