@integrity-labs/agt-cli 0.28.1203 → 0.28.1205

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 (25) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-KKQRAJQV.js → chunk-3TV75F2T.js} +2 -2
  3. package/dist/{chunk-QL7LKEYQ.js → chunk-BP6SQ2S6.js} +2 -2
  4. package/dist/{chunk-WCN2OJQT.js → chunk-JNNADUVD.js} +1 -1
  5. package/dist/{chunk-WCN2OJQT.js.map → chunk-JNNADUVD.js.map} +1 -1
  6. package/dist/{chunk-M5XKZVBC.js → chunk-UGZPQ5MY.js} +3 -3
  7. package/dist/{chunk-IXPDHCIL.js → chunk-XSBGF47S.js} +5 -5
  8. package/dist/{claude-code-updater-QRDRPUGF.js → claude-code-updater-TK2EBW36.js} +3 -3
  9. package/dist/{claude-pair-runtime-PQNF3H4Q.js → claude-pair-runtime-GGK52XP3.js} +3 -3
  10. package/dist/lib/manager-worker.js +19 -19
  11. package/dist/mcp/augmented-admin.js +1 -1
  12. package/dist/mcp/index.js +61 -30
  13. package/dist/{persistent-session-SJ25HFBM.js → persistent-session-ACTI4YQP.js} +4 -4
  14. package/dist/{responsiveness-probe-TB2T2Q4L.js → responsiveness-probe-5VA33PTC.js} +4 -4
  15. package/dist/{session-auth-dead-2XSQ6BRX.js → session-auth-dead-DA6XZCKZ.js} +3 -3
  16. package/package.json +1 -1
  17. /package/dist/{chunk-KKQRAJQV.js.map → chunk-3TV75F2T.js.map} +0 -0
  18. /package/dist/{chunk-QL7LKEYQ.js.map → chunk-BP6SQ2S6.js.map} +0 -0
  19. /package/dist/{chunk-M5XKZVBC.js.map → chunk-UGZPQ5MY.js.map} +0 -0
  20. /package/dist/{chunk-IXPDHCIL.js.map → chunk-XSBGF47S.js.map} +0 -0
  21. /package/dist/{claude-code-updater-QRDRPUGF.js.map → claude-code-updater-TK2EBW36.js.map} +0 -0
  22. /package/dist/{claude-pair-runtime-PQNF3H4Q.js.map → claude-pair-runtime-GGK52XP3.js.map} +0 -0
  23. /package/dist/{persistent-session-SJ25HFBM.js.map → persistent-session-ACTI4YQP.js.map} +0 -0
  24. /package/dist/{responsiveness-probe-TB2T2Q4L.js.map → responsiveness-probe-5VA33PTC.js.map} +0 -0
  25. /package/dist/{session-auth-dead-2XSQ6BRX.js.map → session-auth-dead-DA6XZCKZ.js.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  rotateDailySession,
5
5
  sessionFileExists,
6
6
  todayLocalIso
7
- } from "./chunk-KKQRAJQV.js";
7
+ } from "./chunk-3TV75F2T.js";
8
8
  import {
9
9
  classifyUnanswerablePane,
10
10
  customApiKeyDialogKeys,
@@ -51,7 +51,7 @@ import {
51
51
  remoteMcpConnectionEnvInfix,
52
52
  remoteMcpConnectionLabel,
53
53
  remoteMcpConnectionScopedEnvVar
54
- } from "./chunk-WCN2OJQT.js";
54
+ } from "./chunk-JNNADUVD.js";
55
55
  import {
56
56
  CLAUDE_CONFIG_DIR_ENV,
57
57
  approveApiKeyInClaudeConfig,
@@ -6173,4 +6173,4 @@ export {
6173
6173
  stopAllSessionsAndWait,
6174
6174
  getProjectDir
6175
6175
  };
6176
- //# sourceMappingURL=chunk-M5XKZVBC.js.map
6176
+ //# sourceMappingURL=chunk-UGZPQ5MY.js.map
@@ -16,11 +16,11 @@ import {
16
16
  parseEnvFileEntries,
17
17
  parseEnvIntegrations,
18
18
  shellQuote
19
- } from "./chunk-M5XKZVBC.js";
19
+ } from "./chunk-UGZPQ5MY.js";
20
20
  import {
21
21
  readDailySessionPin,
22
22
  sessionTranscriptDir
23
- } from "./chunk-KKQRAJQV.js";
23
+ } from "./chunk-3TV75F2T.js";
24
24
  import {
25
25
  classifyUnanswerablePane,
26
26
  isConsumerTermsDialogVisible,
@@ -92,7 +92,7 @@ import {
92
92
  scanConfigForLiteralSecrets,
93
93
  worseConnectivityOutcome,
94
94
  wrapScheduledTaskPrompt
95
- } from "./chunk-WCN2OJQT.js";
95
+ } from "./chunk-JNNADUVD.js";
96
96
  import {
97
97
  claudeJsonPathFor,
98
98
  effectiveClaudeJsonPath,
@@ -8082,7 +8082,7 @@ function exchangeFailureKind(err) {
8082
8082
  }
8083
8083
 
8084
8084
  // src/lib/api-client.ts
8085
- var agtCliVersion = true ? "0.28.1203" : "dev";
8085
+ var agtCliVersion = true ? "0.28.1205" : "dev";
8086
8086
  var lastConfigHash = null;
8087
8087
  function setConfigHash(hash) {
8088
8088
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -13683,4 +13683,4 @@ export {
13683
13683
  managerInstallSystemUnitCommand,
13684
13684
  managerUninstallSystemUnitCommand
13685
13685
  };
13686
- //# sourceMappingURL=chunk-IXPDHCIL.js.map
13686
+ //# sourceMappingURL=chunk-XSBGF47S.js.map
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-QL7LKEYQ.js";
16
+ } from "./chunk-BP6SQ2S6.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-WCN2OJQT.js";
18
+ import "./chunk-JNNADUVD.js";
19
19
  import "./chunk-AIUIMEUS.js";
20
20
  import "./chunk-DGUM43GV.js";
21
21
  export {
@@ -34,4 +34,4 @@ export {
34
34
  readsAsNativeInstall,
35
35
  shouldRunClaudeCodeUpdater
36
36
  };
37
- //# sourceMappingURL=claude-code-updater-QRDRPUGF.js.map
37
+ //# sourceMappingURL=claude-code-updater-TK2EBW36.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  redactPaneFrame,
10
10
  sanitizeTerminalFrame
11
- } from "./chunk-WCN2OJQT.js";
11
+ } from "./chunk-JNNADUVD.js";
12
12
  import {
13
13
  CLAUDE_CONFIG_DIR_ENV,
14
14
  claudeConfigDirFor,
@@ -321,7 +321,7 @@ async function spawnPairSession(session) {
321
321
  return { ok: true };
322
322
  } catch {
323
323
  }
324
- const { resolveClaudeBinary } = await import("./persistent-session-SJ25HFBM.js");
324
+ const { resolveClaudeBinary } = await import("./persistent-session-ACTI4YQP.js");
325
325
  const claudeBin = resolveClaudeBinary();
326
326
  const pairEnv = {
327
327
  ...process.env,
@@ -836,4 +836,4 @@ export {
836
836
  startClaudePair,
837
837
  submitClaudePairCode
838
838
  };
839
- //# sourceMappingURL=claude-pair-runtime-PQNF3H4Q.js.map
839
+ //# sourceMappingURL=claude-pair-runtime-GGK52XP3.js.map
@@ -85,7 +85,7 @@ import {
85
85
  tripClass,
86
86
  writeEtcEnvironment,
87
87
  writeProfileDScript
88
- } from "../chunk-IXPDHCIL.js";
88
+ } from "../chunk-XSBGF47S.js";
89
89
  import {
90
90
  CLAUDE_CODE_SECURITY_FLOOR,
91
91
  SELF_UPDATE_TIMEOUTS,
@@ -99,7 +99,7 @@ import {
99
99
  runSafeCleanup,
100
100
  tightestDiskStat,
101
101
  withPackageCacheLock
102
- } from "../chunk-QL7LKEYQ.js";
102
+ } from "../chunk-BP6SQ2S6.js";
103
103
  import {
104
104
  rewriteSupervisorApiKey,
105
105
  supervisorChannelsRefusing
@@ -192,7 +192,7 @@ import {
192
192
  webFetchBaselineValue,
193
193
  webFetchRestartNeeded,
194
194
  writeEgressAllowlist
195
- } from "../chunk-M5XKZVBC.js";
195
+ } from "../chunk-UGZPQ5MY.js";
196
196
  import {
197
197
  isAgentIdle,
198
198
  isStaleForToday,
@@ -202,7 +202,7 @@ import {
202
202
  sessionTranscriptDir,
203
203
  subagentActivityAgeSeconds,
204
204
  transcriptActivityAgeSeconds
205
- } from "../chunk-KKQRAJQV.js";
205
+ } from "../chunk-3TV75F2T.js";
206
206
  import {
207
207
  classifyUnanswerablePane,
208
208
  focusedConfirmDialogBlock,
@@ -330,7 +330,7 @@ import {
330
330
  stabiliseResetInstant,
331
331
  sumTranscriptUsageInWindow,
332
332
  summarizeTranscriptActivity
333
- } from "../chunk-WCN2OJQT.js";
333
+ } from "../chunk-JNNADUVD.js";
334
334
  import {
335
335
  CLAUDE_CONFIG_DIR_ENV,
336
336
  claudeConfigDirFor,
@@ -15562,7 +15562,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
15562
15562
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
15563
15563
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
15564
15564
  async function channelInboundActivityAgeSecondsFor(codeName) {
15565
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-TB2T2Q4L.js");
15565
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-5VA33PTC.js");
15566
15566
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
15567
15567
  if (newest === null) return null;
15568
15568
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -16359,7 +16359,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
16359
16359
  var lastVersionCheckAt = 0;
16360
16360
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
16361
16361
  var lastResponsivenessProbeAt = 0;
16362
- var agtCliVersion = true ? "0.28.1203" : "dev";
16362
+ var agtCliVersion = true ? "0.28.1205" : "dev";
16363
16363
  function resolveBrewPath(execFileSync3) {
16364
16364
  try {
16365
16365
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -18263,7 +18263,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
18263
18263
  if (codeNames.length === 0) return;
18264
18264
  void (async () => {
18265
18265
  try {
18266
- const { collectDiagnostics } = await import("../persistent-session-SJ25HFBM.js");
18266
+ const { collectDiagnostics } = await import("../persistent-session-ACTI4YQP.js");
18267
18267
  await api.post("/host/heartbeat", {
18268
18268
  host_id: hostId,
18269
18269
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -18406,7 +18406,7 @@ async function pollCycleInner() {
18406
18406
  }
18407
18407
  try {
18408
18408
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
18409
- const { collectDiagnostics } = await import("../persistent-session-SJ25HFBM.js");
18409
+ const { collectDiagnostics } = await import("../persistent-session-ACTI4YQP.js");
18410
18410
  const diagCodeNames = [...agentState.persistentSessionAgents];
18411
18411
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
18412
18412
  let tailscaleHostname;
@@ -18664,7 +18664,7 @@ async function pollCycleInner() {
18664
18664
  }
18665
18665
  try {
18666
18666
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
18667
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-QRDRPUGF.js");
18667
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-TK2EBW36.js");
18668
18668
  const securityFloor = currentSecurityFloor();
18669
18669
  claudeUpdaterInFlight = true;
18670
18670
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -18699,7 +18699,7 @@ async function pollCycleInner() {
18699
18699
  collectPanelessActivityProbes,
18700
18700
  getResponsivenessIntervalMs,
18701
18701
  occupancyQualificationClassifications
18702
- } = await import("../responsiveness-probe-TB2T2Q4L.js");
18702
+ } = await import("../responsiveness-probe-5VA33PTC.js");
18703
18703
  const probeIntervalMs = getResponsivenessIntervalMs();
18704
18704
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
18705
18705
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -18816,7 +18816,7 @@ async function pollCycleInner() {
18816
18816
  collectResponsivenessProbes,
18817
18817
  livePendingInboundOldestAgeSeconds,
18818
18818
  parkPendingInbound
18819
- } = await import("../responsiveness-probe-TB2T2Q4L.js");
18819
+ } = await import("../responsiveness-probe-5VA33PTC.js");
18820
18820
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
18821
18821
  const wedgeNow = /* @__PURE__ */ new Date();
18822
18822
  const liveAgents = agentState.persistentSessionAgents;
@@ -19102,7 +19102,7 @@ async function pollCycleInner() {
19102
19102
  }
19103
19103
  }
19104
19104
  );
19105
- const { parkPendingInbound } = await import("../responsiveness-probe-TB2T2Q4L.js");
19105
+ const { parkPendingInbound } = await import("../responsiveness-probe-5VA33PTC.js");
19106
19106
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
19107
19107
  paneFatalStreak.delete(codeName);
19108
19108
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -19133,7 +19133,7 @@ async function pollCycleInner() {
19133
19133
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
19134
19134
  bindSourceEscalations
19135
19135
  } = await import("../transcript-mount-health-OHE6IVJV.js");
19136
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-SJ25HFBM.js");
19136
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-ACTI4YQP.js");
19137
19137
  const mountConfig = resolveTranscriptMountConfig();
19138
19138
  const liveAgents = agentState.persistentSessionAgents;
19139
19139
  for (const tracked of [
@@ -19298,7 +19298,7 @@ async function pollCycleInner() {
19298
19298
  }
19299
19299
  try {
19300
19300
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
19301
- const { probeSessionAuth } = await import("../session-auth-dead-2XSQ6BRX.js");
19301
+ const { probeSessionAuth } = await import("../session-auth-dead-DA6XZCKZ.js");
19302
19302
  const observations = [];
19303
19303
  const pendingCacheCommits = [];
19304
19304
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -24028,7 +24028,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24028
24028
  try {
24029
24029
  const freshId = rotateSessionForWedge(codeName);
24030
24030
  consecutiveWedgeCycles.delete(codeName);
24031
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-TB2T2Q4L.js");
24031
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-5VA33PTC.js");
24032
24032
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
24033
24033
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
24034
24034
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -24071,7 +24071,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24071
24071
  void api.post("/host/restart-ack", { host_id: hostId, agent_id: agentId, restart_requested_at: requestedAt }).catch((err) => log(`[restart-lane] ack failed for '${codeName}': ${err.message}`));
24072
24072
  void (async () => {
24073
24073
  try {
24074
- const { collectDiagnostics } = await import("../persistent-session-SJ25HFBM.js");
24074
+ const { collectDiagnostics } = await import("../persistent-session-ACTI4YQP.js");
24075
24075
  await api.post("/host/heartbeat", {
24076
24076
  host_id: hostId,
24077
24077
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24122,7 +24122,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
24122
24122
  }
24123
24123
  try {
24124
24124
  const hostId = await getHostId();
24125
- const { collectDiagnostics } = await import("../persistent-session-SJ25HFBM.js");
24125
+ const { collectDiagnostics } = await import("../persistent-session-ACTI4YQP.js");
24126
24126
  await api.post("/host/heartbeat", {
24127
24127
  host_id: hostId,
24128
24128
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24824,7 +24824,7 @@ async function processClaudePairSessions(agents) {
24824
24824
  snapshotPairConfig,
24825
24825
  // ENG-11659: result -> report body + the manager.log line that records it.
24826
24826
  planPairStartReport
24827
- } = await import("../claude-pair-runtime-PQNF3H4Q.js");
24827
+ } = await import("../claude-pair-runtime-GGK52XP3.js");
24828
24828
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
24829
24829
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
24830
24830
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
@@ -21881,7 +21881,7 @@ server.registerTool(
21881
21881
  );
21882
21882
  server.registerTool(
21883
21883
  "debug_search_orgs",
21884
- { description: `List the ORGANIZATIONS you're authorized to read \u2014 the org-level entry point for triage and access decisions, so you don't have to infer orgs off agent/host rows or probe one org's tier with debug_request_access. Returns a projection per org: { organization_id, organization_slug, display_name, is_internal, management_mode (fully_managed | self_managed), standing_reason (internal | fully_managed | granted \u2014 WHY you can read it), has_active_grant (do you hold a live grant right now), host_count, agent_count, active_agent_count, open_alert_count, created_at, plan_key, subscription_status, byo_credentials }. plan_key is the plan the product enforces now, not the one purchased: past_due or incomplete reads starter, so read it with subscription_status (trialing | active | past_due | incomplete | canceled, or null if the org never subscribed). byo_credentials is whether that plan lets the org use its own credential for premium integrations. If the plan read fails, all three are null, so a null byo_credentials means unknown, not no. No billing amounts. Use it to (1) decide access in one read \u2014 see a self_managed org and its grant state before deciding to debug_request_access; (2) triage the fleet \u2014 "which orgs have open alerts" (open_alert_count includes stuck-restart alerts) without walking agents; (3) disambiguate a slug \u2192 id \u2192 tier without needing an agent/host to exist. Authorized = IL-owned (is_internal) + fully-managed orgs (standing) plus any self-managed org you hold an active grant for. Filter with { q (slug/name substring), management_mode, is_internal, limit }. Projection only \u2014 no secrets, no transcripts; org-walled in SQL and audited as a cross-org access.`, inputSchema: searchOrgsSchema },
21884
+ { description: `List the ORGANIZATIONS you're authorized to read \u2014 the org-level entry point for triage and access decisions, so you don't have to infer orgs off agent/host rows or probe one org's tier with debug_request_access. Returns a projection per org: { organization_id, organization_slug, display_name, is_internal, management_mode (fully_managed | self_managed), standing_reason (internal | fully_managed | granted \u2014 WHY you can read it), has_active_grant (do you hold a live grant right now), host_count, agent_count, active_agent_count, open_alert_count, created_at, plan_key, subscription_status, byo_credentials, purchased_plan_key, billing_method, trial_ends_at, plan_override { org_plan_cache, active_addons } }. To judge WHO the customer is (routing, "is this an enterprise customer") use purchased_plan_key with billing_method. purchased_plan_key is the plan on the live subscription, or none if there is no live one. It does not prove payment: a new org's seed row and an admin editing the plan both set it. billing_method says how it pays: stripe, invoice or manual_invoice are committed payers, comp is a complimentary grant, pending is a seed or a no-card trial. To judge WHAT WORKS for them today use plan_key: the plan the product enforces, where past_due or incomplete reads starter, so an enterprise customer in arrears shows purchased_plan_key enterprise and plan_key starter. Never route on plan_key. subscription_status is trialing | active | past_due | incomplete | canceled, or null if the org never subscribed. A plan set by hand can't be told apart here. plan_override.org_plan_cache is the rare org with no subscription at all, and active_addons add to the plan without changing plan_key. byo_credentials is whether that plan lets the org use its own credential for premium integrations. If the plan read fails, every plan field is null, so null means unknown, not no. No billing amounts or payment details. Use it to (1) decide access in one read \u2014 see a self_managed org and its grant state before deciding to debug_request_access; (2) triage the fleet \u2014 "which orgs have open alerts" (open_alert_count includes stuck-restart alerts) without walking agents; (3) disambiguate a slug \u2192 id \u2192 tier without needing an agent/host to exist. Authorized = IL-owned (is_internal) + fully-managed orgs (standing) plus any self-managed org you hold an active grant for. Filter with { q (slug/name substring), management_mode, is_internal, limit }. Projection only \u2014 no secrets, no transcripts; org-walled in SQL and audited as a cross-org access.`, inputSchema: searchOrgsSchema },
21885
21885
  async (args) => {
21886
21886
  try {
21887
21887
  const result = await client.searchOrgs(args);
package/dist/mcp/index.js CHANGED
@@ -32442,6 +32442,56 @@ var HOST_KEY_ROTATION_GRACE_MAX_MS = 60 * 6e4;
32442
32442
  var TEAM_SLUG_MAX_ATTEMPTS = 20;
32443
32443
  var SUFFIX_RESERVE = `-${TEAM_SLUG_MAX_ATTEMPTS}`.length;
32444
32444
 
32445
+ // src/integration-list-render.ts
32446
+ var PREVIEW_LENGTH = 200;
32447
+ function renderIntegrationList(plugins) {
32448
+ const lines = [];
32449
+ lines.push(`## Installed Integrations (${plugins.length})
32450
+ `);
32451
+ for (const p2 of plugins) {
32452
+ lines.push(`### ${p2.plugin_name} \`${p2.integration_slug ?? p2.plugin_slug}\` (v${p2.version})`);
32453
+ if (p2.description) lines.push(p2.description);
32454
+ lines.push(`- Skills: ${p2.skill_count}`);
32455
+ if (p2.excluded_skills?.length) {
32456
+ lines.push(`- Excluded on this agent only: ${p2.excluded_skills.map((s) => `\`${s}\``).join(", ")}`);
32457
+ }
32458
+ if (p2.base_hash && p2.effective_hash) {
32459
+ lines.push(`- Instructions: shared \`${p2.base_hash}\`, yours \`${p2.effective_hash}\``);
32460
+ }
32461
+ if (p2.has_schema && p2.context_field_count > 0) {
32462
+ lines.push(`- Context values:`);
32463
+ for (const [key, val] of Object.entries(p2.current_values)) {
32464
+ lines.push(` - \`${key}\`: ${JSON.stringify(val)}`);
32465
+ }
32466
+ } else if (p2.has_schema) {
32467
+ lines.push(`- Context: schema declared but no values set (all defaults)`);
32468
+ } else {
32469
+ lines.push(`- Context: no typed schema (freeform overrides only)`);
32470
+ }
32471
+ if (p2.has_overrides) {
32472
+ if (typeof p2.overrides === "string") {
32473
+ lines.push(`- Freeform overrides, on this agent only (full text):`);
32474
+ lines.push(` > ${p2.overrides.replace(/\n/g, "\n > ")}`);
32475
+ } else {
32476
+ const cut = p2.overrides_preview.length >= PREVIEW_LENGTH;
32477
+ lines.push(`- Freeform overrides, on this agent only (${cut ? "preview, call again with include_full_overrides: true for all of it" : "preview"}):`);
32478
+ lines.push(` > ${p2.overrides_preview.replace(/\n/g, "\n > ")}`);
32479
+ }
32480
+ } else {
32481
+ lines.push(`- Freeform overrides: none on this agent`);
32482
+ }
32483
+ lines.push("");
32484
+ }
32485
+ if (plugins.some((p2) => p2.base_hash && p2.effective_hash)) {
32486
+ lines.push(
32487
+ "To compare with another agent: the same shared hash and a different yours hash means one of you has a per-agent layer, which is the values, overrides and excluded skills above. A different shared hash means the shared skills themselves differ: one was edited, renamed, added or removed. These describe what you should have, so a just-changed integration can briefly differ from your files."
32488
+ );
32489
+ lines.push("");
32490
+ }
32491
+ lines.push("To update any integration's behavior, use the `integration_improve` tool with the user's feedback. It changes this agent's copy only, not other agents on the same integration.");
32492
+ return lines.join("\n");
32493
+ }
32494
+
32445
32495
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js
32446
32496
  var external_exports = {};
32447
32497
  __export(external_exports, {
@@ -52556,40 +52606,21 @@ server.tool(
52556
52606
  );
52557
52607
  server.tool(
52558
52608
  "integration_list",
52559
- `List the integrations currently installed on this agent, with their current typed context values and a preview of any freeform overrides. Use this when the user asks "what integrations do I have?", "show me the integrations", "what is the Coding integration configured with?", or before calling integration_improve to see what fields exist and what they're set to.`,
52560
- {},
52561
- async () => {
52609
+ `List the integrations currently installed on this agent, with their current typed context values, any freeform overrides, and hashes to compare your instructions with another agent's. Use this when the user asks "what integrations do I have?", "show me the integrations", "what is the Coding integration configured with?", when two agents seem to read different instructions, or before calling integration_improve to see what fields exist and what they're set to.`,
52610
+ {
52611
+ include_full_overrides: external_exports.boolean().optional().describe(
52612
+ "Return each integration's complete freeform overrides instead of a 200-character preview. This is the text appended to your skill files for that integration."
52613
+ )
52614
+ },
52615
+ async (params) => {
52562
52616
  const data = await apiPost("/host/list-integrations", {
52563
- agent_id: AGT_AGENT_ID
52617
+ agent_id: AGT_AGENT_ID,
52618
+ ...params.include_full_overrides ? { include_full_overrides: true } : {}
52564
52619
  });
52565
52620
  if (!data.plugins.length) {
52566
52621
  return { content: [{ type: "text", text: "No integrations installed on this agent." }] };
52567
52622
  }
52568
- const lines = [];
52569
- lines.push(`## Installed Integrations (${data.plugins.length})
52570
- `);
52571
- for (const p2 of data.plugins) {
52572
- lines.push(`### ${p2.plugin_name} \`${p2.integration_slug ?? p2.plugin_slug}\` (v${p2.version})`);
52573
- if (p2.description) lines.push(p2.description);
52574
- lines.push(`- Skills: ${p2.skill_count}`);
52575
- if (p2.has_schema && p2.context_field_count > 0) {
52576
- lines.push(`- Context values:`);
52577
- for (const [key, val] of Object.entries(p2.current_values)) {
52578
- lines.push(` - \`${key}\`: ${JSON.stringify(val)}`);
52579
- }
52580
- } else if (p2.has_schema) {
52581
- lines.push(`- Context: schema declared but no values set (all defaults)`);
52582
- } else {
52583
- lines.push(`- Context: no typed schema (freeform overrides only)`);
52584
- }
52585
- if (p2.has_overrides) {
52586
- lines.push(`- Freeform overrides (preview):`);
52587
- lines.push(` > ${p2.overrides_preview.replace(/\n/g, "\n > ")}`);
52588
- }
52589
- lines.push("");
52590
- }
52591
- lines.push("To update any integration's behavior, use the `integration_improve` tool with the user's feedback.");
52592
- return { content: [{ type: "text", text: lines.join("\n") }] };
52623
+ return { content: [{ type: "text", text: renderIntegrationList(data.plugins) }] };
52593
52624
  }
52594
52625
  );
52595
52626
  server.tool(
@@ -52597,7 +52628,7 @@ server.tool(
52597
52628
  // Description leads with the user phrasings the agent should match against,
52598
52629
  // then explains the safety rule. Order matters — Claude\'s tool selection
52599
52630
  // weights the first line of a description heavily.
52600
- `Update, edit, or add a rule to an installed integration (e.g. the Coding integration, the Knowledge Base integration, the Slack integration). USE THIS TOOL when the user says any of: "update the X integration", "add a rule to integration Y", "tell the X integration not to do Z", "change the X integration so it does Y", "the Coding integration should always/never...", "remember this for the X integration". This is the ONLY correct way to modify an integration's behavior. NEVER edit SKILL.md files under .claude/skills/integration-* directly \u2014 those files are derived from the platform database and your edits will be silently overwritten on the next manager refresh. The platform calls an LLM to translate the user's request into a structured update of the integration's typed context fields and/or freeform overrides text, then returns a diff for you to show the user. Default flow is preview-then-apply: call once to get the proposed diff, show it to the user, then call again with auto_apply=true if they confirm. Only works for integrations that are actually installed on this agent. Stored overrides are never rewritten: a note is only ever appended after them, and existing overrides text cannot be removed or reworded through this tool. If an auto_apply=true call fails as INDETERMINATE, do NOT retry it: a retry generates the note again and can append it twice. Tell the user the outcome is unknown instead.`,
52631
+ `Update, edit, or add a rule to an installed integration (e.g. the Coding integration, the Knowledge Base integration, the Slack integration). USE THIS TOOL when the user says any of: "update the X integration", "add a rule to integration Y", "tell the X integration not to do Z", "change the X integration so it does Y", "the Coding integration should always/never...", "remember this for the X integration". This is the ONLY correct way to modify an integration's behavior. NEVER edit SKILL.md files under .claude/skills/integration-* directly \u2014 those files are derived from the platform database and your edits will be silently overwritten on the next manager refresh. The platform calls an LLM to translate the user's request into a structured update of the integration's typed context fields and/or freeform overrides text, then returns a diff for you to show the user. Default flow is preview-then-apply: call once to get the proposed diff, show it to the user, then call again with auto_apply=true if they confirm. Only works for integrations that are actually installed on this agent. Stored overrides are never rewritten: a note is only ever appended after them, and existing overrides text cannot be removed or reworded through this tool. If an auto_apply=true call fails as INDETERMINATE, do NOT retry it: a retry generates the note again and can append it twice. Tell the user the outcome is unknown instead. It changes this agent's copy only: other agents on the same integration keep theirs.`,
52601
52632
  {
52602
52633
  integration_slug: external_exports.string().optional().describe('Integration slug to improve (e.g. "claude-code-github"). Either this or integration_id is required.'),
52603
52634
  integration_id: external_exports.string().optional().describe("Integration UUID. Either this or integration_slug is required."),
@@ -68,12 +68,12 @@ import {
68
68
  writeDirectChatSessionState,
69
69
  writeEgressAllowlist,
70
70
  writePersistentClaudeWrapper
71
- } from "./chunk-M5XKZVBC.js";
72
- import "./chunk-KKQRAJQV.js";
71
+ } from "./chunk-UGZPQ5MY.js";
72
+ import "./chunk-3TV75F2T.js";
73
73
  import "./chunk-HYQ7VOC3.js";
74
74
  import "./chunk-6HBXEJHO.js";
75
75
  import "./chunk-XWVM4KPK.js";
76
- import "./chunk-WCN2OJQT.js";
76
+ import "./chunk-JNNADUVD.js";
77
77
  import "./chunk-AIUIMEUS.js";
78
78
  import "./chunk-DGUM43GV.js";
79
79
  export {
@@ -147,4 +147,4 @@ export {
147
147
  writeEgressAllowlist,
148
148
  writePersistentClaudeWrapper
149
149
  };
150
- //# sourceMappingURL=persistent-session-SJ25HFBM.js.map
150
+ //# sourceMappingURL=persistent-session-ACTI4YQP.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-M5XKZVBC.js";
4
- import "./chunk-KKQRAJQV.js";
3
+ } from "./chunk-UGZPQ5MY.js";
4
+ import "./chunk-3TV75F2T.js";
5
5
  import "./chunk-HYQ7VOC3.js";
6
6
  import "./chunk-6HBXEJHO.js";
7
7
  import "./chunk-XWVM4KPK.js";
8
- import "./chunk-WCN2OJQT.js";
8
+ import "./chunk-JNNADUVD.js";
9
9
  import "./chunk-AIUIMEUS.js";
10
10
  import "./chunk-DGUM43GV.js";
11
11
 
@@ -804,4 +804,4 @@ export {
804
804
  readAndResetSlackReplyBindingClassifications,
805
805
  readAndResetSlackReplyTargetClassifications
806
806
  };
807
- //# sourceMappingURL=responsiveness-probe-TB2T2Q4L.js.map
807
+ //# sourceMappingURL=responsiveness-probe-5VA33PTC.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  sessionTranscriptDir
3
- } from "./chunk-KKQRAJQV.js";
4
- import "./chunk-WCN2OJQT.js";
3
+ } from "./chunk-3TV75F2T.js";
4
+ import "./chunk-JNNADUVD.js";
5
5
  import "./chunk-DGUM43GV.js";
6
6
 
7
7
  // src/lib/session-auth-dead.ts
@@ -205,4 +205,4 @@ export {
205
205
  decideSessionAuthState,
206
206
  probeSessionAuth
207
207
  };
208
- //# sourceMappingURL=session-auth-dead-2XSQ6BRX.js.map
208
+ //# sourceMappingURL=session-auth-dead-DA6XZCKZ.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.1203",
3
+ "version": "0.28.1205",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {