@integrity-labs/agt-cli 0.27.78 → 0.27.79
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-FAR2FJBQ.js → chunk-FD5YRWYC.js} +2 -2
- package/dist/{chunk-5SWHKUL3.js → chunk-GNIA4KN5.js} +1 -1
- package/dist/chunk-GNIA4KN5.js.map +1 -0
- package/dist/{chunk-RCCPYN3U.js → chunk-QYUQLNI3.js} +2 -2
- package/dist/{claude-pair-runtime-EZ73GJW7.js → claude-pair-runtime-BK76FFIY.js} +2 -2
- package/dist/lib/manager-worker.js +29 -11
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-4HYXVGKO.js → persistent-session-LGKYKSBP.js} +3 -3
- package/dist/{responsiveness-probe-NUGYDDMS.js → responsiveness-probe-C6ZWB26H.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-5SWHKUL3.js.map +0 -1
- /package/dist/{chunk-FAR2FJBQ.js.map → chunk-FD5YRWYC.js.map} +0 -0
- /package/dist/{chunk-RCCPYN3U.js.map → chunk-QYUQLNI3.js.map} +0 -0
- /package/dist/{claude-pair-runtime-EZ73GJW7.js.map → claude-pair-runtime-BK76FFIY.js.map} +0 -0
- /package/dist/{persistent-session-4HYXVGKO.js.map → persistent-session-LGKYKSBP.js.map} +0 -0
- /package/dist/{responsiveness-probe-NUGYDDMS.js.map → responsiveness-probe-C6ZWB26H.js.map} +0 -0
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
parseDeliveryTarget,
|
|
10
10
|
registerFramework,
|
|
11
11
|
wrapScheduledTaskPrompt
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GNIA4KN5.js";
|
|
13
13
|
|
|
14
14
|
// ../../packages/core/dist/integrations/registry.js
|
|
15
15
|
var INTEGRATION_REGISTRY = [
|
|
@@ -7488,4 +7488,4 @@ export {
|
|
|
7488
7488
|
managerInstallSystemUnitCommand,
|
|
7489
7489
|
managerUninstallSystemUnitCommand
|
|
7490
7490
|
};
|
|
7491
|
-
//# sourceMappingURL=chunk-
|
|
7491
|
+
//# sourceMappingURL=chunk-QYUQLNI3.js.map
|
|
@@ -100,7 +100,7 @@ async function spawnPairSession(session) {
|
|
|
100
100
|
return { ok: true };
|
|
101
101
|
} catch {
|
|
102
102
|
}
|
|
103
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
103
|
+
const { resolveClaudeBinary } = await import("./persistent-session-LGKYKSBP.js");
|
|
104
104
|
const claudeBin = resolveClaudeBinary();
|
|
105
105
|
const pairEnv = {
|
|
106
106
|
...process.env,
|
|
@@ -373,4 +373,4 @@ export {
|
|
|
373
373
|
startClaudePair,
|
|
374
374
|
submitClaudePairCode
|
|
375
375
|
};
|
|
376
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
376
|
+
//# sourceMappingURL=claude-pair-runtime-BK76FFIY.js.map
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
provisionStopHook,
|
|
17
17
|
requireHost,
|
|
18
18
|
safeWriteJsonAtomic
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-QYUQLNI3.js";
|
|
20
20
|
import {
|
|
21
21
|
getProjectDir as getProjectDir2,
|
|
22
22
|
getReadyTasks,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
stopPersistentSession,
|
|
54
54
|
takeWatchdogGiveUpCount,
|
|
55
55
|
takeZombieDetection
|
|
56
|
-
} from "../chunk-
|
|
56
|
+
} from "../chunk-FD5YRWYC.js";
|
|
57
57
|
import {
|
|
58
58
|
KANBAN_CHECK_COMMAND,
|
|
59
59
|
appendDmFooter,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
resolveConnectivityProbe,
|
|
77
77
|
resolveDmTarget,
|
|
78
78
|
wrapScheduledTaskPrompt
|
|
79
|
-
} from "../chunk-
|
|
79
|
+
} from "../chunk-GNIA4KN5.js";
|
|
80
80
|
import {
|
|
81
81
|
parsePsRows,
|
|
82
82
|
reapOrphanChannelMcps
|
|
@@ -3115,14 +3115,32 @@ function startRealtimeIntegrationContext(config2) {
|
|
|
3115
3115
|
if (agentIds.length === 0) return;
|
|
3116
3116
|
const sb = ensureClient(config2);
|
|
3117
3117
|
const filterStr = agentIds.length === 1 ? `agent_id=eq.${agentIds[0]}` : `agent_id=in.(${agentIds.join(",")})`;
|
|
3118
|
-
integrationContextChannel = sb.channel("
|
|
3118
|
+
integrationContextChannel = sb.channel("agent-integration-context-realtime").on("postgres_changes", {
|
|
3119
|
+
event: "INSERT",
|
|
3120
|
+
schema: "public",
|
|
3121
|
+
table: "agent_integration_context",
|
|
3122
|
+
filter: filterStr
|
|
3123
|
+
}, (payload) => {
|
|
3124
|
+
const row = payload.new;
|
|
3125
|
+
log2(`[realtime] agent_integration_context INSERT for agent ${row.agent_id} (plugin ${row.plugin_id})`);
|
|
3126
|
+
onContextChange(row);
|
|
3127
|
+
}).on("postgres_changes", {
|
|
3128
|
+
event: "UPDATE",
|
|
3129
|
+
schema: "public",
|
|
3130
|
+
table: "agent_integration_context",
|
|
3131
|
+
filter: filterStr
|
|
3132
|
+
}, (payload) => {
|
|
3133
|
+
const row = payload.new;
|
|
3134
|
+
log2(`[realtime] agent_integration_context UPDATE for agent ${row.agent_id} (plugin ${row.plugin_id})`);
|
|
3135
|
+
onContextChange(row);
|
|
3136
|
+
}).on("postgres_changes", {
|
|
3119
3137
|
event: "INSERT",
|
|
3120
3138
|
schema: "public",
|
|
3121
3139
|
table: "plugin_context",
|
|
3122
3140
|
filter: filterStr
|
|
3123
3141
|
}, (payload) => {
|
|
3124
3142
|
const row = payload.new;
|
|
3125
|
-
log2(`[realtime] plugin_context INSERT for agent ${row.agent_id} (plugin ${row.plugin_id})`);
|
|
3143
|
+
log2(`[realtime] plugin_context (legacy) INSERT for agent ${row.agent_id} (plugin ${row.plugin_id})`);
|
|
3126
3144
|
onContextChange(row);
|
|
3127
3145
|
}).on("postgres_changes", {
|
|
3128
3146
|
event: "UPDATE",
|
|
@@ -3131,7 +3149,7 @@ function startRealtimeIntegrationContext(config2) {
|
|
|
3131
3149
|
filter: filterStr
|
|
3132
3150
|
}, (payload) => {
|
|
3133
3151
|
const row = payload.new;
|
|
3134
|
-
log2(`[realtime] plugin_context UPDATE for agent ${row.agent_id} (plugin ${row.plugin_id})`);
|
|
3152
|
+
log2(`[realtime] plugin_context (legacy) UPDATE for agent ${row.agent_id} (plugin ${row.plugin_id})`);
|
|
3135
3153
|
onContextChange(row);
|
|
3136
3154
|
}).subscribe((status) => {
|
|
3137
3155
|
if (status === "SUBSCRIBED") {
|
|
@@ -3140,7 +3158,7 @@ function startRealtimeIntegrationContext(config2) {
|
|
|
3140
3158
|
log2(`[realtime] Integration context channel: ${status}`);
|
|
3141
3159
|
}
|
|
3142
3160
|
});
|
|
3143
|
-
log2(`[realtime] Subscribing to plugin_context for ${agentIds.length} agent(s)`);
|
|
3161
|
+
log2(`[realtime] Subscribing to agent_integration_context (+ legacy plugin_context) for ${agentIds.length} agent(s)`);
|
|
3144
3162
|
}
|
|
3145
3163
|
function stopRealtimeIntegrationContext() {
|
|
3146
3164
|
if (!integrationContextChannel) return;
|
|
@@ -3668,7 +3686,7 @@ var cachedMaintenanceWindow = null;
|
|
|
3668
3686
|
var lastVersionCheckAt = 0;
|
|
3669
3687
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
3670
3688
|
var lastResponsivenessProbeAt = 0;
|
|
3671
|
-
var agtCliVersion = true ? "0.27.
|
|
3689
|
+
var agtCliVersion = true ? "0.27.79" : "dev";
|
|
3672
3690
|
function resolveBrewPath(execFileSync4) {
|
|
3673
3691
|
try {
|
|
3674
3692
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -4782,7 +4800,7 @@ async function pollCycle() {
|
|
|
4782
4800
|
}
|
|
4783
4801
|
try {
|
|
4784
4802
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
4785
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
4803
|
+
const { collectDiagnostics } = await import("../persistent-session-LGKYKSBP.js");
|
|
4786
4804
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
4787
4805
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
|
|
4788
4806
|
let tailscaleHostname;
|
|
@@ -4855,7 +4873,7 @@ async function pollCycle() {
|
|
|
4855
4873
|
const {
|
|
4856
4874
|
collectResponsivenessProbes,
|
|
4857
4875
|
getResponsivenessIntervalMs
|
|
4858
|
-
} = await import("../responsiveness-probe-
|
|
4876
|
+
} = await import("../responsiveness-probe-C6ZWB26H.js");
|
|
4859
4877
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
4860
4878
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
4861
4879
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -9022,7 +9040,7 @@ async function processClaudePairSessions(agents) {
|
|
|
9022
9040
|
killPairSession,
|
|
9023
9041
|
pairTmuxSession,
|
|
9024
9042
|
finalizeClaudePairOnboarding
|
|
9025
|
-
} = await import("../claude-pair-runtime-
|
|
9043
|
+
} = await import("../claude-pair-runtime-BK76FFIY.js");
|
|
9026
9044
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
9027
9045
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
9028
9046
|
const killed = await killPairSession(pairTmuxSession(pairId));
|