@integrity-labs/agt-cli 0.28.210 → 0.28.212

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.
@@ -8106,6 +8106,17 @@ function resolveSessionSpawnDecision(args) {
8106
8106
  function directChatSessionStatePath(agentId) {
8107
8107
  return join2(homedir2(), ".augmented", agentId, "direct-chat-session.json");
8108
8108
  }
8109
+ function readDirectChatSessionState(agentId) {
8110
+ try {
8111
+ const parsed = JSON.parse(readFileSync4(directChatSessionStatePath(agentId), "utf-8"));
8112
+ if (!parsed || typeof parsed !== "object") return null;
8113
+ const state = parsed;
8114
+ state.mcpServerKeys = Array.isArray(state.mcpServerKeys) ? state.mcpServerKeys.filter((k) => typeof k === "string") : void 0;
8115
+ return state;
8116
+ } catch {
8117
+ return null;
8118
+ }
8119
+ }
8109
8120
  function writeDirectChatSessionState(agentId, state) {
8110
8121
  const p = directChatSessionStatePath(agentId);
8111
8122
  mkdirSync2(dirname(p), { recursive: true });
@@ -8203,7 +8214,12 @@ function spawnSession(config, session) {
8203
8214
  writeDirectChatSessionState(config.agentId, {
8204
8215
  fresh: !resuming,
8205
8216
  sessionId,
8206
- startedAtMs: Date.now()
8217
+ startedAtMs: Date.now(),
8218
+ // ENG-7263: snapshot the MCP servers this session loads at spawn (the
8219
+ // sanitized --mcp-config it launches with), so the session-tool-bind
8220
+ // probe can confirm "the running session loaded server X" by membership
8221
+ // rather than the churning .mcp.json file mtime.
8222
+ mcpServerKeys: collectMcpServerNames(mcpConfigPath)
8207
8223
  });
8208
8224
  } catch (err) {
8209
8225
  log(
@@ -8915,6 +8931,7 @@ export {
8915
8931
  getLastFailureContext,
8916
8932
  resolveSessionSpawnDecision,
8917
8933
  directChatSessionStatePath,
8934
+ readDirectChatSessionState,
8918
8935
  writeDirectChatSessionState,
8919
8936
  startPersistentSession,
8920
8937
  SEND_KEYS_ENTER_DELAY_MS,
@@ -8933,4 +8950,4 @@ export {
8933
8950
  stopAllSessionsAndWait,
8934
8951
  getProjectDir
8935
8952
  };
8936
- //# sourceMappingURL=chunk-WFCCBTA6.js.map
8953
+ //# sourceMappingURL=chunk-ZV4PUS7E.js.map