@integrity-labs/agt-cli 0.28.1311 → 0.28.1312

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.
Files changed (28) hide show
  1. package/dist/{api-client-LJIV4E3U.js → api-client-GECWNRLW.js} +3 -3
  2. package/dist/bin/agt.js +7 -7
  3. package/dist/{chunk-C35ONIOM.js → chunk-4VFHXY7W.js} +2 -2
  4. package/dist/{chunk-AATR5MO7.js → chunk-BSZRE4X6.js} +38 -6
  5. package/dist/{chunk-AATR5MO7.js.map → chunk-BSZRE4X6.js.map} +1 -1
  6. package/dist/{chunk-PRSMP7YW.js → chunk-JX4S7KFB.js} +2 -2
  7. package/dist/{chunk-DTGNYXYM.js → chunk-JYBRZAAK.js} +8 -1
  8. package/dist/chunk-JYBRZAAK.js.map +1 -0
  9. package/dist/{chunk-LNLKOJC5.js → chunk-NVL3HMYK.js} +5 -5
  10. package/dist/{chunk-NYBVFW7X.js → chunk-WROJACNJ.js} +3 -3
  11. package/dist/{claude-code-updater-QRAOQLXJ.js → claude-code-updater-OLV2OEVG.js} +3 -3
  12. package/dist/{claude-pair-runtime-ZI2LPY5E.js → claude-pair-runtime-QA3AUNBF.js} +3 -3
  13. package/dist/lib/manager-worker.js +21 -21
  14. package/dist/{persistent-session-ADLDX7QL.js → persistent-session-K5WFQVXD.js} +4 -4
  15. package/dist/{responsiveness-probe-ETVF2D2O.js → responsiveness-probe-Q5PDMK2L.js} +4 -4
  16. package/dist/{session-auth-dead-36OZTRBJ.js → session-auth-dead-T57ORTYP.js} +3 -3
  17. package/package.json +1 -1
  18. package/dist/chunk-DTGNYXYM.js.map +0 -1
  19. /package/dist/{api-client-LJIV4E3U.js.map → api-client-GECWNRLW.js.map} +0 -0
  20. /package/dist/{chunk-C35ONIOM.js.map → chunk-4VFHXY7W.js.map} +0 -0
  21. /package/dist/{chunk-PRSMP7YW.js.map → chunk-JX4S7KFB.js.map} +0 -0
  22. /package/dist/{chunk-LNLKOJC5.js.map → chunk-NVL3HMYK.js.map} +0 -0
  23. /package/dist/{chunk-NYBVFW7X.js.map → chunk-WROJACNJ.js.map} +0 -0
  24. /package/dist/{claude-code-updater-QRAOQLXJ.js.map → claude-code-updater-OLV2OEVG.js.map} +0 -0
  25. /package/dist/{claude-pair-runtime-ZI2LPY5E.js.map → claude-pair-runtime-QA3AUNBF.js.map} +0 -0
  26. /package/dist/{persistent-session-ADLDX7QL.js.map → persistent-session-K5WFQVXD.js.map} +0 -0
  27. /package/dist/{responsiveness-probe-ETVF2D2O.js.map → responsiveness-probe-Q5PDMK2L.js.map} +0 -0
  28. /package/dist/{session-auth-dead-36OZTRBJ.js.map → session-auth-dead-T57ORTYP.js.map} +0 -0
@@ -15,8 +15,8 @@ import {
15
15
  mintRotatedHostKey,
16
16
  probeHostKey,
17
17
  setConfigHash
18
- } from "./chunk-NYBVFW7X.js";
19
- import "./chunk-DTGNYXYM.js";
18
+ } from "./chunk-WROJACNJ.js";
19
+ import "./chunk-JYBRZAAK.js";
20
20
  import "./chunk-DGUM43GV.js";
21
21
  export {
22
22
  ApiError,
@@ -36,4 +36,4 @@ export {
36
36
  probeHostKey,
37
37
  setConfigHash
38
38
  };
39
- //# sourceMappingURL=api-client-LJIV4E3U.js.map
39
+ //# sourceMappingURL=api-client-GECWNRLW.js.map
package/dist/bin/agt.js CHANGED
@@ -31,7 +31,7 @@ import {
31
31
  success,
32
32
  table,
33
33
  warn
34
- } from "../chunk-LNLKOJC5.js";
34
+ } from "../chunk-NVL3HMYK.js";
35
35
  import {
36
36
  ApiError,
37
37
  PROD_AGT_HOST,
@@ -42,17 +42,17 @@ import {
42
42
  getHost,
43
43
  getHostId,
44
44
  setActiveTeam
45
- } from "../chunk-NYBVFW7X.js";
45
+ } from "../chunk-WROJACNJ.js";
46
46
  import {
47
47
  getProjectDir,
48
48
  isSessionResumeDisabled,
49
49
  readDirectChatSessionState
50
- } from "../chunk-AATR5MO7.js";
50
+ } from "../chunk-BSZRE4X6.js";
51
51
  import {
52
52
  markDailySessionSpawn,
53
53
  sessionFileExists,
54
54
  sessionTranscriptDir
55
- } from "../chunk-PRSMP7YW.js";
55
+ } from "../chunk-JX4S7KFB.js";
56
56
  import "../chunk-XL2HPM67.js";
57
57
  import "../chunk-6HBXEJHO.js";
58
58
  import "../chunk-XWVM4KPK.js";
@@ -85,7 +85,7 @@ import {
85
85
  requiredMcpWildcard,
86
86
  resolveChannels,
87
87
  serializeManifestForSlackCli
88
- } from "../chunk-DTGNYXYM.js";
88
+ } from "../chunk-JYBRZAAK.js";
89
89
  import "../chunk-AIUIMEUS.js";
90
90
  import "../chunk-DGUM43GV.js";
91
91
 
@@ -5207,7 +5207,7 @@ import { execFileSync, execSync } from "child_process";
5207
5207
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
5208
5208
  import chalk17 from "chalk";
5209
5209
  import ora15 from "ora";
5210
- var cliVersion = true ? "0.28.1311" : "dev";
5210
+ var cliVersion = true ? "0.28.1312" : "dev";
5211
5211
  async function fetchLatestVersion() {
5212
5212
  const host2 = getHost();
5213
5213
  if (!host2) return null;
@@ -6467,7 +6467,7 @@ function handleError(err) {
6467
6467
  }
6468
6468
 
6469
6469
  // src/bin/agt.ts
6470
- var cliVersion2 = true ? "0.28.1311" : "dev";
6470
+ var cliVersion2 = true ? "0.28.1312" : "dev";
6471
6471
  var program = new Command();
6472
6472
  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");
6473
6473
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XWVM4KPK.js";
5
5
  import {
6
6
  FORCED_UPDATE_HARD_DEADLINE_MS
7
- } from "./chunk-DTGNYXYM.js";
7
+ } from "./chunk-JYBRZAAK.js";
8
8
  import {
9
9
  effectiveClaudeJsonPath
10
10
  } from "./chunk-AIUIMEUS.js";
@@ -722,4 +722,4 @@ export {
722
722
  probeClaudeInstalls,
723
723
  maybeUpdateClaudeCode
724
724
  };
725
- //# sourceMappingURL=chunk-C35ONIOM.js.map
725
+ //# sourceMappingURL=chunk-4VFHXY7W.js.map
@@ -4,7 +4,7 @@ import {
4
4
  rotateDailySession,
5
5
  sessionFileExists,
6
6
  todayLocalIso
7
- } from "./chunk-PRSMP7YW.js";
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-DTGNYXYM.js";
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) return { env: {}, modelEnv: {}, projectSettings: {}, notice: null };
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 advisorNote = Object.keys(projectSettings).length > 0 ? ` project-settings=${Object.entries(projectSettings).map(([k, v]) => `${k}=${v}`).join(" ")}` : "";
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-AATR5MO7.js.map
6744
+ //# sourceMappingURL=chunk-BSZRE4X6.js.map