@integrity-labs/agt-cli 0.28.91 → 0.28.92
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 +4 -4
- package/dist/{chunk-Y4UI2QAF.js → chunk-BXPISVR7.js} +3 -3
- package/dist/{chunk-GO3OXGPM.js → chunk-CSTDOXOK.js} +2 -2
- package/dist/{chunk-ELCO6VIJ.js → chunk-GLBWCCZD.js} +5 -2
- package/dist/chunk-GLBWCCZD.js.map +1 -0
- package/dist/{claude-pair-runtime-4OZQZQEP.js → claude-pair-runtime-FA7DXRHH.js} +2 -2
- package/dist/lib/manager-worker.js +19 -9
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +31 -8
- package/dist/{persistent-session-JNYVPBFG.js → persistent-session-4HWN54DY.js} +3 -3
- package/dist/{responsiveness-probe-OKAANVK6.js → responsiveness-probe-C2N4UJSE.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-ELCO6VIJ.js.map +0 -1
- /package/dist/{chunk-Y4UI2QAF.js.map → chunk-BXPISVR7.js.map} +0 -0
- /package/dist/{chunk-GO3OXGPM.js.map → chunk-CSTDOXOK.js.map} +0 -0
- /package/dist/{claude-pair-runtime-4OZQZQEP.js.map → claude-pair-runtime-FA7DXRHH.js.map} +0 -0
- /package/dist/{persistent-session-JNYVPBFG.js.map → persistent-session-4HWN54DY.js.map} +0 -0
- /package/dist/{responsiveness-probe-OKAANVK6.js.map → responsiveness-probe-C2N4UJSE.js.map} +0 -0
|
@@ -14044,6 +14044,22 @@ function buildDirectChatChannelMeta(input) {
|
|
|
14044
14044
|
};
|
|
14045
14045
|
}
|
|
14046
14046
|
|
|
14047
|
+
// src/turn-initiator-marker.ts
|
|
14048
|
+
import { writeFileSync, mkdirSync, renameSync } from "fs";
|
|
14049
|
+
import { dirname } from "path";
|
|
14050
|
+
function writeTurnInitiatorMarker(input) {
|
|
14051
|
+
const file = process.env["AGT_TURN_INITIATOR_FILE"];
|
|
14052
|
+
if (!file || !input.sender_id) return;
|
|
14053
|
+
try {
|
|
14054
|
+
mkdirSync(dirname(file), { recursive: true });
|
|
14055
|
+
const marker = { ...input, ts: Date.now() };
|
|
14056
|
+
const tmp = `${file}.tmp`;
|
|
14057
|
+
writeFileSync(tmp, JSON.stringify(marker), "utf8");
|
|
14058
|
+
renameSync(tmp, file);
|
|
14059
|
+
} catch {
|
|
14060
|
+
}
|
|
14061
|
+
}
|
|
14062
|
+
|
|
14047
14063
|
// src/direct-chat-poll-guard.ts
|
|
14048
14064
|
function evaluatePollGuard(state, nowMs, stuckMs) {
|
|
14049
14065
|
if (!state.inFlight) return { run: true, stuck: false };
|
|
@@ -14067,11 +14083,11 @@ async function fetchWithTimeout(input, init, timeoutMs, fetchImpl = fetch) {
|
|
|
14067
14083
|
// src/mcp-spawn-lock.ts
|
|
14068
14084
|
import {
|
|
14069
14085
|
existsSync as existsSync2,
|
|
14070
|
-
mkdirSync,
|
|
14086
|
+
mkdirSync as mkdirSync2,
|
|
14071
14087
|
readFileSync as readFileSync2,
|
|
14072
|
-
renameSync,
|
|
14088
|
+
renameSync as renameSync2,
|
|
14073
14089
|
unlinkSync,
|
|
14074
|
-
writeFileSync
|
|
14090
|
+
writeFileSync as writeFileSync2
|
|
14075
14091
|
} from "fs";
|
|
14076
14092
|
import { join as join2 } from "path";
|
|
14077
14093
|
function defaultIsPidAlive(pid) {
|
|
@@ -14101,11 +14117,11 @@ function acquireMcpSpawnLock(args) {
|
|
|
14101
14117
|
return { kind: "blocked", path, holder: existing };
|
|
14102
14118
|
}
|
|
14103
14119
|
}
|
|
14104
|
-
|
|
14120
|
+
mkdirSync2(agentDir, { recursive: true, mode: 448 });
|
|
14105
14121
|
const tmpPath = `${path}.${selfPid}.tmp`;
|
|
14106
14122
|
const payload = { pid: selfPid, started_at: now() };
|
|
14107
|
-
|
|
14108
|
-
|
|
14123
|
+
writeFileSync2(tmpPath, JSON.stringify(payload), { mode: 384 });
|
|
14124
|
+
renameSync2(tmpPath, path);
|
|
14109
14125
|
return { kind: "acquired", path };
|
|
14110
14126
|
}
|
|
14111
14127
|
function releaseMcpSpawnLock(lockPath, opts = {}) {
|
|
@@ -14136,7 +14152,7 @@ function readLockHolder(path) {
|
|
|
14136
14152
|
// src/direct-chat-channel.ts
|
|
14137
14153
|
import { homedir as homedir2 } from "os";
|
|
14138
14154
|
import { join as join4 } from "path";
|
|
14139
|
-
import { watch, mkdirSync as
|
|
14155
|
+
import { watch, mkdirSync as mkdirSync3 } from "fs";
|
|
14140
14156
|
|
|
14141
14157
|
// src/flags-cache-read.ts
|
|
14142
14158
|
import { existsSync as existsSync3, readFileSync as readFileSync3 } from "fs";
|
|
@@ -14509,6 +14525,13 @@ async function pollForMessages(sinceMs) {
|
|
|
14509
14525
|
meta: buildDirectChatChannelMeta({ sessionId: msg.session_id, isNotice })
|
|
14510
14526
|
}
|
|
14511
14527
|
});
|
|
14528
|
+
if (!isNotice && msg.sender_id) {
|
|
14529
|
+
writeTurnInitiatorMarker({
|
|
14530
|
+
channel: "direct-chat",
|
|
14531
|
+
sender_id: msg.sender_id,
|
|
14532
|
+
channel_ref: msg.session_id
|
|
14533
|
+
});
|
|
14534
|
+
}
|
|
14512
14535
|
if (isNotice) {
|
|
14513
14536
|
try {
|
|
14514
14537
|
const res2 = await apiPost("/host/direct-chat/consume", {
|
|
@@ -14589,7 +14612,7 @@ var doorbellWatcher = null;
|
|
|
14589
14612
|
var safetyNetTimer = null;
|
|
14590
14613
|
if (DOORBELL_ENABLED && DIRECT_CHAT_AGENT_DIR) {
|
|
14591
14614
|
try {
|
|
14592
|
-
|
|
14615
|
+
mkdirSync3(DIRECT_CHAT_AGENT_DIR, { recursive: true });
|
|
14593
14616
|
} catch {
|
|
14594
14617
|
}
|
|
14595
14618
|
const sessionState = readDirectChatSessionState(DIRECT_CHAT_AGENT_DIR, Date.now());
|
|
@@ -25,8 +25,8 @@ import {
|
|
|
25
25
|
takeZombieDetection,
|
|
26
26
|
writeDirectChatSessionState,
|
|
27
27
|
writePersistentClaudeWrapper
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-CSTDOXOK.js";
|
|
29
|
+
import "./chunk-GLBWCCZD.js";
|
|
30
30
|
import "./chunk-XWVM4KPK.js";
|
|
31
31
|
export {
|
|
32
32
|
SEND_KEYS_ENTER_DELAY_MS,
|
|
@@ -56,4 +56,4 @@ export {
|
|
|
56
56
|
writeDirectChatSessionState,
|
|
57
57
|
writePersistentClaudeWrapper
|
|
58
58
|
};
|
|
59
|
-
//# sourceMappingURL=persistent-session-
|
|
59
|
+
//# sourceMappingURL=persistent-session-4HWN54DY.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-CSTDOXOK.js";
|
|
4
|
+
import "./chunk-GLBWCCZD.js";
|
|
5
5
|
import "./chunk-XWVM4KPK.js";
|
|
6
6
|
|
|
7
7
|
// src/lib/responsiveness-probe.ts
|
|
@@ -250,4 +250,4 @@ export {
|
|
|
250
250
|
parkPendingInbound,
|
|
251
251
|
readAndResetChannelDeflections
|
|
252
252
|
};
|
|
253
|
-
//# sourceMappingURL=responsiveness-probe-
|
|
253
|
+
//# sourceMappingURL=responsiveness-probe-C2N4UJSE.js.map
|