@integrity-labs/agt-cli 0.28.1244 → 0.28.1246

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 (31) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-6YZZ2WN2.js → chunk-22GBHBJZ.js} +2 -2
  3. package/dist/{chunk-4D5PTVNR.js → chunk-EGMQVUAO.js} +3 -3
  4. package/dist/{chunk-JEC3BUC6.js → chunk-MM3OF6UT.js} +1 -1
  5. package/dist/chunk-MM3OF6UT.js.map +1 -0
  6. package/dist/{chunk-UAAR6VJI.js → chunk-OSXVD3YF.js} +37 -1
  7. package/dist/{chunk-UAAR6VJI.js.map → chunk-OSXVD3YF.js.map} +1 -1
  8. package/dist/{chunk-AB47AXD6.js → chunk-V47ZQJ3Y.js} +2 -2
  9. package/dist/{chunk-BCYFOHFP.js → chunk-ZHLBICZL.js} +5 -5
  10. package/dist/{claude-code-updater-2QU66VPT.js → claude-code-updater-6QVV5JHB.js} +3 -3
  11. package/dist/{claude-pair-runtime-DR7HRJNI.js → claude-pair-runtime-IOUQF6RF.js} +4 -4
  12. package/dist/lib/manager-worker.js +20 -20
  13. package/dist/mcp/direct-chat-channel.js +32 -0
  14. package/dist/mcp/index.js +32 -0
  15. package/dist/mcp/origami.js +32 -0
  16. package/dist/mcp/slack-channel.js +32 -0
  17. package/dist/mcp/telegram-channel.js +32 -0
  18. package/dist/{persistent-session-YJSZWSLQ.js → persistent-session-4HI235XH.js} +4 -4
  19. package/dist/{responsiveness-probe-SPEEY2LI.js → responsiveness-probe-AD6WIPDA.js} +4 -4
  20. package/dist/{session-auth-dead-TODAGWTJ.js → session-auth-dead-6FSKTBLA.js} +3 -3
  21. package/package.json +1 -1
  22. package/dist/chunk-JEC3BUC6.js.map +0 -1
  23. /package/dist/{chunk-6YZZ2WN2.js.map → chunk-22GBHBJZ.js.map} +0 -0
  24. /package/dist/{chunk-4D5PTVNR.js.map → chunk-EGMQVUAO.js.map} +0 -0
  25. /package/dist/{chunk-AB47AXD6.js.map → chunk-V47ZQJ3Y.js.map} +0 -0
  26. /package/dist/{chunk-BCYFOHFP.js.map → chunk-ZHLBICZL.js.map} +0 -0
  27. /package/dist/{claude-code-updater-2QU66VPT.js.map → claude-code-updater-6QVV5JHB.js.map} +0 -0
  28. /package/dist/{claude-pair-runtime-DR7HRJNI.js.map → claude-pair-runtime-IOUQF6RF.js.map} +0 -0
  29. /package/dist/{persistent-session-YJSZWSLQ.js.map → persistent-session-4HI235XH.js.map} +0 -0
  30. /package/dist/{responsiveness-probe-SPEEY2LI.js.map → responsiveness-probe-AD6WIPDA.js.map} +0 -0
  31. /package/dist/{session-auth-dead-TODAGWTJ.js.map → session-auth-dead-6FSKTBLA.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  encodeClaudeProjectPath
3
- } from "./chunk-UAAR6VJI.js";
3
+ } from "./chunk-OSXVD3YF.js";
4
4
 
5
5
  // src/lib/daily-session.ts
6
6
  import { randomUUID } from "crypto";
@@ -244,4 +244,4 @@ export {
244
244
  peekPreviousSession,
245
245
  readDailySessionPin
246
246
  };
247
- //# sourceMappingURL=chunk-AB47AXD6.js.map
247
+ //# sourceMappingURL=chunk-V47ZQJ3Y.js.map
@@ -18,11 +18,11 @@ import {
18
18
  requiresRemoteMcpToolGate,
19
19
  shellQuote,
20
20
  withheldRemoteMcpMessage
21
- } from "./chunk-4D5PTVNR.js";
21
+ } from "./chunk-EGMQVUAO.js";
22
22
  import {
23
23
  readDailySessionPin,
24
24
  sessionTranscriptDir
25
- } from "./chunk-AB47AXD6.js";
25
+ } from "./chunk-V47ZQJ3Y.js";
26
26
  import {
27
27
  classifyUnanswerablePane,
28
28
  isConsumerTermsDialogVisible,
@@ -95,7 +95,7 @@ import {
95
95
  scanConfigForLiteralSecrets,
96
96
  worseConnectivityOutcome,
97
97
  wrapScheduledTaskPrompt
98
- } from "./chunk-UAAR6VJI.js";
98
+ } from "./chunk-OSXVD3YF.js";
99
99
  import {
100
100
  claudeJsonPathFor,
101
101
  effectiveClaudeJsonPath,
@@ -8095,7 +8095,7 @@ function exchangeFailureKind(err) {
8095
8095
  }
8096
8096
 
8097
8097
  // src/lib/api-client.ts
8098
- var agtCliVersion = true ? "0.28.1244" : "dev";
8098
+ var agtCliVersion = true ? "0.28.1246" : "dev";
8099
8099
  var lastConfigHash = null;
8100
8100
  function setConfigHash(hash) {
8101
8101
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -13750,4 +13750,4 @@ export {
13750
13750
  managerInstallSystemUnitCommand,
13751
13751
  managerUninstallSystemUnitCommand
13752
13752
  };
13753
- //# sourceMappingURL=chunk-BCYFOHFP.js.map
13753
+ //# sourceMappingURL=chunk-ZHLBICZL.js.map
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-6YZZ2WN2.js";
16
+ } from "./chunk-22GBHBJZ.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-UAAR6VJI.js";
18
+ import "./chunk-OSXVD3YF.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-2QU66VPT.js.map
37
+ //# sourceMappingURL=claude-code-updater-6QVV5JHB.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  hostClaudePairCommand
3
- } from "./chunk-JEC3BUC6.js";
3
+ } from "./chunk-MM3OF6UT.js";
4
4
  import {
5
5
  consumerTermsOffKeys,
6
6
  selectRowKeys
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  redactPaneFrame,
10
10
  sanitizeTerminalFrame
11
- } from "./chunk-UAAR6VJI.js";
11
+ } from "./chunk-OSXVD3YF.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-YJSZWSLQ.js");
324
+ const { resolveClaudeBinary } = await import("./persistent-session-4HI235XH.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-DR7HRJNI.js.map
839
+ //# sourceMappingURL=claude-pair-runtime-IOUQF6RF.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  hostClaudeOneShotArgs
3
- } from "../chunk-JEC3BUC6.js";
3
+ } from "../chunk-MM3OF6UT.js";
4
4
  import {
5
5
  ApiError,
6
6
  COMPUTER_USE_MCP_KEY,
@@ -85,7 +85,7 @@ import {
85
85
  tripClass,
86
86
  writeEtcEnvironment,
87
87
  writeProfileDScript
88
- } from "../chunk-BCYFOHFP.js";
88
+ } from "../chunk-ZHLBICZL.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-6YZZ2WN2.js";
102
+ } from "../chunk-22GBHBJZ.js";
103
103
  import {
104
104
  rewriteSupervisorApiKey,
105
105
  supervisorChannelsRefusing
@@ -195,7 +195,7 @@ import {
195
195
  webFetchBaselineValue,
196
196
  webFetchRestartNeeded,
197
197
  writeEgressAllowlist
198
- } from "../chunk-4D5PTVNR.js";
198
+ } from "../chunk-EGMQVUAO.js";
199
199
  import {
200
200
  isAgentIdle,
201
201
  isStaleForToday,
@@ -206,7 +206,7 @@ import {
206
206
  subagentActivityAgeSeconds,
207
207
  subagentTranscriptDir,
208
208
  transcriptActivityAgeSeconds
209
- } from "../chunk-AB47AXD6.js";
209
+ } from "../chunk-V47ZQJ3Y.js";
210
210
  import {
211
211
  classifyUnanswerablePane,
212
212
  focusedConfirmDialogBlock,
@@ -337,7 +337,7 @@ import {
337
337
  stabiliseResetInstant,
338
338
  sumTranscriptUsageInWindow,
339
339
  summarizeTranscriptActivity
340
- } from "../chunk-UAAR6VJI.js";
340
+ } from "../chunk-OSXVD3YF.js";
341
341
  import {
342
342
  CLAUDE_CONFIG_DIR_ENV,
343
343
  claudeConfigDirFor,
@@ -15871,7 +15871,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
15871
15871
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
15872
15872
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
15873
15873
  async function channelInboundActivityAgeSecondsFor(codeName) {
15874
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-SPEEY2LI.js");
15874
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-AD6WIPDA.js");
15875
15875
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
15876
15876
  if (newest === null) return null;
15877
15877
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -16686,7 +16686,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
16686
16686
  var lastVersionCheckAt = 0;
16687
16687
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
16688
16688
  var lastResponsivenessProbeAt = 0;
16689
- var agtCliVersion = true ? "0.28.1244" : "dev";
16689
+ var agtCliVersion = true ? "0.28.1246" : "dev";
16690
16690
  function resolveBrewPath(execFileSync3) {
16691
16691
  try {
16692
16692
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -18683,7 +18683,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
18683
18683
  if (codeNames.length === 0) return;
18684
18684
  void (async () => {
18685
18685
  try {
18686
- const { collectDiagnostics } = await import("../persistent-session-YJSZWSLQ.js");
18686
+ const { collectDiagnostics } = await import("../persistent-session-4HI235XH.js");
18687
18687
  await api.post("/host/heartbeat", {
18688
18688
  host_id: hostId,
18689
18689
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -18826,7 +18826,7 @@ async function pollCycleInner() {
18826
18826
  }
18827
18827
  try {
18828
18828
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
18829
- const { collectDiagnostics } = await import("../persistent-session-YJSZWSLQ.js");
18829
+ const { collectDiagnostics } = await import("../persistent-session-4HI235XH.js");
18830
18830
  const diagCodeNames = [...agentState.persistentSessionAgents];
18831
18831
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
18832
18832
  let tailscaleHostname;
@@ -19091,7 +19091,7 @@ async function pollCycleInner() {
19091
19091
  }
19092
19092
  try {
19093
19093
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
19094
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-2QU66VPT.js");
19094
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-6QVV5JHB.js");
19095
19095
  const securityFloor = currentSecurityFloor();
19096
19096
  claudeUpdaterInFlight = true;
19097
19097
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -19126,7 +19126,7 @@ async function pollCycleInner() {
19126
19126
  collectPanelessActivityProbes,
19127
19127
  getResponsivenessIntervalMs,
19128
19128
  occupancyQualificationClassifications
19129
- } = await import("../responsiveness-probe-SPEEY2LI.js");
19129
+ } = await import("../responsiveness-probe-AD6WIPDA.js");
19130
19130
  const probeIntervalMs = getResponsivenessIntervalMs();
19131
19131
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
19132
19132
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -19243,7 +19243,7 @@ async function pollCycleInner() {
19243
19243
  collectResponsivenessProbes,
19244
19244
  livePendingInboundOldestAgeSeconds,
19245
19245
  parkPendingInbound
19246
- } = await import("../responsiveness-probe-SPEEY2LI.js");
19246
+ } = await import("../responsiveness-probe-AD6WIPDA.js");
19247
19247
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
19248
19248
  const wedgeNow = /* @__PURE__ */ new Date();
19249
19249
  const liveAgents = agentState.persistentSessionAgents;
@@ -19529,7 +19529,7 @@ async function pollCycleInner() {
19529
19529
  }
19530
19530
  }
19531
19531
  );
19532
- const { parkPendingInbound } = await import("../responsiveness-probe-SPEEY2LI.js");
19532
+ const { parkPendingInbound } = await import("../responsiveness-probe-AD6WIPDA.js");
19533
19533
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
19534
19534
  paneFatalStreak.delete(codeName);
19535
19535
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -19560,7 +19560,7 @@ async function pollCycleInner() {
19560
19560
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
19561
19561
  bindSourceEscalations
19562
19562
  } = await import("../transcript-mount-health-OHE6IVJV.js");
19563
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-YJSZWSLQ.js");
19563
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-4HI235XH.js");
19564
19564
  const mountConfig = resolveTranscriptMountConfig();
19565
19565
  const liveAgents = agentState.persistentSessionAgents;
19566
19566
  for (const tracked of [
@@ -19725,7 +19725,7 @@ async function pollCycleInner() {
19725
19725
  }
19726
19726
  try {
19727
19727
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
19728
- const { probeSessionAuth } = await import("../session-auth-dead-TODAGWTJ.js");
19728
+ const { probeSessionAuth } = await import("../session-auth-dead-6FSKTBLA.js");
19729
19729
  const observations = [];
19730
19730
  const pendingCacheCommits = [];
19731
19731
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -24479,7 +24479,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24479
24479
  try {
24480
24480
  const freshId = rotateSessionForWedge(codeName);
24481
24481
  consecutiveWedgeCycles.delete(codeName);
24482
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-SPEEY2LI.js");
24482
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-AD6WIPDA.js");
24483
24483
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
24484
24484
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
24485
24485
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -24522,7 +24522,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24522
24522
  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}`));
24523
24523
  void (async () => {
24524
24524
  try {
24525
- const { collectDiagnostics } = await import("../persistent-session-YJSZWSLQ.js");
24525
+ const { collectDiagnostics } = await import("../persistent-session-4HI235XH.js");
24526
24526
  await api.post("/host/heartbeat", {
24527
24527
  host_id: hostId,
24528
24528
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24573,7 +24573,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
24573
24573
  }
24574
24574
  try {
24575
24575
  const hostId = await getHostId();
24576
- const { collectDiagnostics } = await import("../persistent-session-YJSZWSLQ.js");
24576
+ const { collectDiagnostics } = await import("../persistent-session-4HI235XH.js");
24577
24577
  await api.post("/host/heartbeat", {
24578
24578
  host_id: hostId,
24579
24579
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -25275,7 +25275,7 @@ async function processClaudePairSessions(agents) {
25275
25275
  snapshotPairConfig,
25276
25276
  // ENG-11659: result -> report body + the manager.log line that records it.
25277
25277
  planPairStartReport
25278
- } = await import("../claude-pair-runtime-DR7HRJNI.js");
25278
+ } = await import("../claude-pair-runtime-IOUQF6RF.js");
25279
25279
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
25280
25280
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
25281
25281
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
@@ -37436,6 +37436,38 @@ var integration_metadata_v1_default = {
37436
37436
  type: "string",
37437
37437
  enum: ["required", "optional"],
37438
37438
  description: "ADR 0010 \u2014 per-tool credential expectation. `required` (default) makes the broker fail closed when no install credential is attached; `optional` lets the broker call the vendor without an `Authorization` header (used by keyless integrations such as Augmented Live)."
37439
+ },
37440
+ approval_snapshot: {
37441
+ type: "object",
37442
+ additionalProperties: false,
37443
+ required: ["http", "resource_label"],
37444
+ description: "CS-2460: for a held tool, the GET that reads the resource it acts on. Read when the approval is requested (and shown on the card), and again before the approved call runs; a difference, or a failed read, refuses the call. `http` is templated with the tool's own args.",
37445
+ properties: {
37446
+ http: {
37447
+ type: "object",
37448
+ additionalProperties: false,
37449
+ required: ["method", "path_template"],
37450
+ properties: {
37451
+ method: { const: "GET" },
37452
+ path_template: { type: "string", minLength: 1 },
37453
+ headers_template: {
37454
+ type: "object",
37455
+ propertyNames: { pattern: "^[A-Za-z0-9!#$%&'*+.^_`|~-]+$" },
37456
+ additionalProperties: { type: "string" }
37457
+ }
37458
+ }
37459
+ },
37460
+ resource_label: {
37461
+ type: "string",
37462
+ minLength: 1,
37463
+ description: "What the resource is called to a person (e.g. `campaign`), for the card and the refusal message."
37464
+ },
37465
+ ignore_keys: {
37466
+ type: "array",
37467
+ items: { type: "string", minLength: 1 },
37468
+ description: "Keys removed from the snapshot before hashing, matched by name at any depth (timestamps, statistics)."
37469
+ }
37470
+ }
37439
37471
  }
37440
37472
  }
37441
37473
  }
package/dist/mcp/index.js CHANGED
@@ -23494,6 +23494,38 @@ var integration_metadata_v1_default = {
23494
23494
  type: "string",
23495
23495
  enum: ["required", "optional"],
23496
23496
  description: "ADR 0010 \u2014 per-tool credential expectation. `required` (default) makes the broker fail closed when no install credential is attached; `optional` lets the broker call the vendor without an `Authorization` header (used by keyless integrations such as Augmented Live)."
23497
+ },
23498
+ approval_snapshot: {
23499
+ type: "object",
23500
+ additionalProperties: false,
23501
+ required: ["http", "resource_label"],
23502
+ description: "CS-2460: for a held tool, the GET that reads the resource it acts on. Read when the approval is requested (and shown on the card), and again before the approved call runs; a difference, or a failed read, refuses the call. `http` is templated with the tool's own args.",
23503
+ properties: {
23504
+ http: {
23505
+ type: "object",
23506
+ additionalProperties: false,
23507
+ required: ["method", "path_template"],
23508
+ properties: {
23509
+ method: { const: "GET" },
23510
+ path_template: { type: "string", minLength: 1 },
23511
+ headers_template: {
23512
+ type: "object",
23513
+ propertyNames: { pattern: "^[A-Za-z0-9!#$%&'*+.^_`|~-]+$" },
23514
+ additionalProperties: { type: "string" }
23515
+ }
23516
+ }
23517
+ },
23518
+ resource_label: {
23519
+ type: "string",
23520
+ minLength: 1,
23521
+ description: "What the resource is called to a person (e.g. `campaign`), for the card and the refusal message."
23522
+ },
23523
+ ignore_keys: {
23524
+ type: "array",
23525
+ items: { type: "string", minLength: 1 },
23526
+ description: "Keys removed from the snapshot before hashing, matched by name at any depth (timestamps, statistics)."
23527
+ }
23528
+ }
23497
23529
  }
23498
23530
  }
23499
23531
  }
@@ -37359,6 +37359,38 @@ var integration_metadata_v1_default = {
37359
37359
  type: "string",
37360
37360
  enum: ["required", "optional"],
37361
37361
  description: "ADR 0010 \u2014 per-tool credential expectation. `required` (default) makes the broker fail closed when no install credential is attached; `optional` lets the broker call the vendor without an `Authorization` header (used by keyless integrations such as Augmented Live)."
37362
+ },
37363
+ approval_snapshot: {
37364
+ type: "object",
37365
+ additionalProperties: false,
37366
+ required: ["http", "resource_label"],
37367
+ description: "CS-2460: for a held tool, the GET that reads the resource it acts on. Read when the approval is requested (and shown on the card), and again before the approved call runs; a difference, or a failed read, refuses the call. `http` is templated with the tool's own args.",
37368
+ properties: {
37369
+ http: {
37370
+ type: "object",
37371
+ additionalProperties: false,
37372
+ required: ["method", "path_template"],
37373
+ properties: {
37374
+ method: { const: "GET" },
37375
+ path_template: { type: "string", minLength: 1 },
37376
+ headers_template: {
37377
+ type: "object",
37378
+ propertyNames: { pattern: "^[A-Za-z0-9!#$%&'*+.^_`|~-]+$" },
37379
+ additionalProperties: { type: "string" }
37380
+ }
37381
+ }
37382
+ },
37383
+ resource_label: {
37384
+ type: "string",
37385
+ minLength: 1,
37386
+ description: "What the resource is called to a person (e.g. `campaign`), for the card and the refusal message."
37387
+ },
37388
+ ignore_keys: {
37389
+ type: "array",
37390
+ items: { type: "string", minLength: 1 },
37391
+ description: "Keys removed from the snapshot before hashing, matched by name at any depth (timestamps, statistics)."
37392
+ }
37393
+ }
37362
37394
  }
37363
37395
  }
37364
37396
  }
@@ -32055,6 +32055,38 @@ var integration_metadata_v1_default = {
32055
32055
  type: "string",
32056
32056
  enum: ["required", "optional"],
32057
32057
  description: "ADR 0010 \u2014 per-tool credential expectation. `required` (default) makes the broker fail closed when no install credential is attached; `optional` lets the broker call the vendor without an `Authorization` header (used by keyless integrations such as Augmented Live)."
32058
+ },
32059
+ approval_snapshot: {
32060
+ type: "object",
32061
+ additionalProperties: false,
32062
+ required: ["http", "resource_label"],
32063
+ description: "CS-2460: for a held tool, the GET that reads the resource it acts on. Read when the approval is requested (and shown on the card), and again before the approved call runs; a difference, or a failed read, refuses the call. `http` is templated with the tool's own args.",
32064
+ properties: {
32065
+ http: {
32066
+ type: "object",
32067
+ additionalProperties: false,
32068
+ required: ["method", "path_template"],
32069
+ properties: {
32070
+ method: { const: "GET" },
32071
+ path_template: { type: "string", minLength: 1 },
32072
+ headers_template: {
32073
+ type: "object",
32074
+ propertyNames: { pattern: "^[A-Za-z0-9!#$%&'*+.^_`|~-]+$" },
32075
+ additionalProperties: { type: "string" }
32076
+ }
32077
+ }
32078
+ },
32079
+ resource_label: {
32080
+ type: "string",
32081
+ minLength: 1,
32082
+ description: "What the resource is called to a person (e.g. `campaign`), for the card and the refusal message."
32083
+ },
32084
+ ignore_keys: {
32085
+ type: "array",
32086
+ items: { type: "string", minLength: 1 },
32087
+ description: "Keys removed from the snapshot before hashing, matched by name at any depth (timestamps, statistics)."
32088
+ }
32089
+ }
32058
32090
  }
32059
32091
  }
32060
32092
  }
@@ -32252,6 +32252,38 @@ var integration_metadata_v1_default = {
32252
32252
  type: "string",
32253
32253
  enum: ["required", "optional"],
32254
32254
  description: "ADR 0010 \u2014 per-tool credential expectation. `required` (default) makes the broker fail closed when no install credential is attached; `optional` lets the broker call the vendor without an `Authorization` header (used by keyless integrations such as Augmented Live)."
32255
+ },
32256
+ approval_snapshot: {
32257
+ type: "object",
32258
+ additionalProperties: false,
32259
+ required: ["http", "resource_label"],
32260
+ description: "CS-2460: for a held tool, the GET that reads the resource it acts on. Read when the approval is requested (and shown on the card), and again before the approved call runs; a difference, or a failed read, refuses the call. `http` is templated with the tool's own args.",
32261
+ properties: {
32262
+ http: {
32263
+ type: "object",
32264
+ additionalProperties: false,
32265
+ required: ["method", "path_template"],
32266
+ properties: {
32267
+ method: { const: "GET" },
32268
+ path_template: { type: "string", minLength: 1 },
32269
+ headers_template: {
32270
+ type: "object",
32271
+ propertyNames: { pattern: "^[A-Za-z0-9!#$%&'*+.^_`|~-]+$" },
32272
+ additionalProperties: { type: "string" }
32273
+ }
32274
+ }
32275
+ },
32276
+ resource_label: {
32277
+ type: "string",
32278
+ minLength: 1,
32279
+ description: "What the resource is called to a person (e.g. `campaign`), for the card and the refusal message."
32280
+ },
32281
+ ignore_keys: {
32282
+ type: "array",
32283
+ items: { type: "string", minLength: 1 },
32284
+ description: "Keys removed from the snapshot before hashing, matched by name at any depth (timestamps, statistics)."
32285
+ }
32286
+ }
32255
32287
  }
32256
32288
  }
32257
32289
  }
@@ -68,12 +68,12 @@ import {
68
68
  writeDirectChatSessionState,
69
69
  writeEgressAllowlist,
70
70
  writePersistentClaudeWrapper
71
- } from "./chunk-4D5PTVNR.js";
72
- import "./chunk-AB47AXD6.js";
71
+ } from "./chunk-EGMQVUAO.js";
72
+ import "./chunk-V47ZQJ3Y.js";
73
73
  import "./chunk-HYQ7VOC3.js";
74
74
  import "./chunk-6HBXEJHO.js";
75
75
  import "./chunk-XWVM4KPK.js";
76
- import "./chunk-UAAR6VJI.js";
76
+ import "./chunk-OSXVD3YF.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-YJSZWSLQ.js.map
150
+ //# sourceMappingURL=persistent-session-4HI235XH.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-4D5PTVNR.js";
4
- import "./chunk-AB47AXD6.js";
3
+ } from "./chunk-EGMQVUAO.js";
4
+ import "./chunk-V47ZQJ3Y.js";
5
5
  import "./chunk-HYQ7VOC3.js";
6
6
  import "./chunk-6HBXEJHO.js";
7
7
  import "./chunk-XWVM4KPK.js";
8
- import "./chunk-UAAR6VJI.js";
8
+ import "./chunk-OSXVD3YF.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-SPEEY2LI.js.map
807
+ //# sourceMappingURL=responsiveness-probe-AD6WIPDA.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  sessionTranscriptDir
3
- } from "./chunk-AB47AXD6.js";
4
- import "./chunk-UAAR6VJI.js";
3
+ } from "./chunk-V47ZQJ3Y.js";
4
+ import "./chunk-OSXVD3YF.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-TODAGWTJ.js.map
208
+ //# sourceMappingURL=session-auth-dead-6FSKTBLA.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.1244",
3
+ "version": "0.28.1246",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/lib/claude-host-args.ts"],"sourcesContent":["/**\n * ENG-11277 — the arguments every manager-run, host-side `claude -p` one-shot\n * shares (conversation eval, the runtime auth probe, the host usage poll).\n *\n * These run on the HOST against the shared `~/.claude`. On Pedders v8\n * (2026-10-02) Claude Code's retention sweep removed live transcript bind\n * sources (`.last-cleanup` 04:24:12Z, mask dir gone, the container's projects\n * dir at nlink 0) and three agents failed every transcript write and\n * compaction; see transcript-mount-health.ts.\n *\n * `-p` one-shots DO run that sweep: measured 5 Oct on 2.1.285 (Koda, ENG-11279),\n * a print-mode run removed old and empty project trees from its config dir. The\n * `--settings` flag below loads flag-level settings, which outrank user settings\n * (user < project < local < flag < policy), and a 3650-day `cleanupPeriodDays`\n * (Claude Code's own suggestion for long retention; 0 is rejected by its schema)\n * means the sweep ages nothing out. It does NOT stop the empty-dir rmdirs, which\n * have no age check, so it is defence in depth, not the guard.\n *\n * The guard is the sentinel kept in every bind source\n * (ensureTranscriptBindSources in persistent-session.ts) plus the manager's mount\n * probe. ENG-11279 additionally runs two of the three one-shots in a PRIVATE\n * config dir on api_key hosts (applyClaudeAuthToEnv's `isolateApiKeyConfigDir`),\n * so they are not sweepers of the shared tree at all:\n * - conversation eval and the host usage poll: isolated on api_key hosts.\n * Subscription hosts stay on the shared dir - a second copy of the OAuth\n * credential could refresh and rotate the refresh token out from under every\n * other session; isolating those is an open decision on the ticket.\n * - the runtime auth probe: DELIBERATELY on the shared dir in every mode. It\n * exists to prove the host's real credential round-trips (ENG-8623); in a\n * private dir it would report a host with a dead shared credential as healthy.\n */\nexport const HOST_CLAUDE_RETENTION_SETTINGS = JSON.stringify({ cleanupPeriodDays: 3650 });\n\n/** The isolation + retention tail shared by every manager host-side `claude -p`. */\nexport function hostClaudeOneShotArgs(emptyMcpConfigPath: string): string[] {\n return [\n // No project config, no MCP, no tools: these exercise the model or auth only.\n '--mcp-config', emptyMcpConfigPath,\n '--strict-mcp-config',\n '--permission-mode', 'auto',\n '--allowedTools', '',\n // ENG-11277: never age anything out of the shared ~/.claude from here.\n '--settings', HOST_CLAUDE_RETENTION_SETTINGS,\n ];\n}\n\n/** POSIX single-quote one argument: `'` -> `'\\''`. */\nfunction posixSingleQuote(value: string): string {\n return `'${value.replace(/'/g, `'\\\\''`)}'`;\n}\n\n/**\n * ENG-11279 (4): the pair/login runtime's `claude` command, with the same\n * retention flag as the one-shots, for parity.\n *\n * NOT load-bearing: the pair runtime must write the SHARED config dir (it is the\n * login), so it cannot be isolated, and the flag does not stop the empty-dir\n * rmdirs. It only stops this process ageing transcripts out at the 30-day default.\n *\n * A single shell-command STRING, quoted here, because that is what tmux\n * `new-session` is given (it runs one argument through `sh -c`; splitting it into\n * several argv entries changes that to a direct exec on some tmux versions, which\n * is a behaviour change this ticket has no business making).\n */\nexport function hostClaudePairCommand(claudeBin: string): string {\n return `${posixSingleQuote(claudeBin)} --settings ${posixSingleQuote(HOST_CLAUDE_RETENTION_SETTINGS)}`;\n}\n"],"mappings":";AA+BO,IAAM,iCAAiC,KAAK,UAAU,EAAE,mBAAmB,KAAK,CAAC;AAGjF,SAAS,sBAAsB,oBAAsC;AAC1E,SAAO;AAAA;AAAA,IAEL;AAAA,IAAgB;AAAA,IAChB;AAAA,IACA;AAAA,IAAqB;AAAA,IACrB;AAAA,IAAkB;AAAA;AAAA,IAElB;AAAA,IAAc;AAAA,EAChB;AACF;AAGA,SAAS,iBAAiB,OAAuB;AAC/C,SAAO,IAAI,MAAM,QAAQ,MAAM,OAAO,CAAC;AACzC;AAeO,SAAS,sBAAsB,WAA2B;AAC/D,SAAO,GAAG,iBAAiB,SAAS,CAAC,eAAe,iBAAiB,8BAA8B,CAAC;AACtG;","names":[]}