@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.
- package/dist/bin/agt.js +42 -46
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-G42GLXB6.js → chunk-PJCSU3OI.js} +14 -20
- package/dist/{chunk-G42GLXB6.js.map → chunk-PJCSU3OI.js.map} +1 -1
- package/dist/{chunk-WFCCBTA6.js → chunk-ZV4PUS7E.js} +19 -2
- package/dist/chunk-ZV4PUS7E.js.map +1 -0
- package/dist/{claude-pair-runtime-UUTPSE2V.js → claude-pair-runtime-J2EPW7J2.js} +2 -2
- package/dist/lib/manager-worker.js +14 -10
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-Z46SCCQM.js → persistent-session-56STIRFQ.js} +4 -2
- package/dist/{responsiveness-probe-4MUX7FBH.js → responsiveness-probe-S74AWIEF.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-WFCCBTA6.js.map +0 -1
- /package/dist/{claude-pair-runtime-UUTPSE2V.js.map → claude-pair-runtime-J2EPW7J2.js.map} +0 -0
- /package/dist/{persistent-session-Z46SCCQM.js.map → persistent-session-56STIRFQ.js.map} +0 -0
- /package/dist/{responsiveness-probe-4MUX7FBH.js.map → responsiveness-probe-S74AWIEF.js.map} +0 -0
|
@@ -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-
|
|
8953
|
+
//# sourceMappingURL=chunk-ZV4PUS7E.js.map
|