@integrity-labs/agt-cli 0.28.1302 → 0.28.1304
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/{api-client-6ZRLLO2M.js → api-client-PYFWHUJS.js} +3 -3
- package/dist/bin/agt.js +7 -7
- package/dist/{chunk-FPJRE3WT.js → chunk-4KSUIAI4.js} +3 -3
- package/dist/chunk-4KSUIAI4.js.map +1 -0
- package/dist/{chunk-WB6FCVI5.js → chunk-G5RHGLJN.js} +5 -5
- package/dist/{chunk-XVGLZ3BT.js → chunk-GLX5CD6S.js} +2 -2
- package/dist/{chunk-LXFCVKHS.js → chunk-I6HGFJNX.js} +2 -2
- package/dist/{chunk-5SLN2B6N.js → chunk-JZ2XBRLQ.js} +3 -3
- package/dist/{chunk-FQOXKQXI.js → chunk-PT3QK5ZP.js} +3 -3
- package/dist/{claude-code-updater-DLCZAKW3.js → claude-code-updater-KA4VMUWK.js} +3 -3
- package/dist/{claude-pair-runtime-43E2YV2S.js → claude-pair-runtime-MC3K2BXU.js} +3 -3
- package/dist/lib/manager-worker.js +21 -21
- package/dist/mcp/direct-chat-channel.js +2 -2
- package/dist/mcp/index.js +2 -2
- package/dist/mcp/origami.js +51 -4
- package/dist/mcp/slack-channel.js +2 -2
- package/dist/mcp/telegram-channel.js +2 -2
- package/dist/{persistent-session-RGMMUKVK.js → persistent-session-ZC4XAUTS.js} +4 -4
- package/dist/{responsiveness-probe-I7HNQGP4.js → responsiveness-probe-TA47HG3A.js} +4 -4
- package/dist/{session-auth-dead-JVDVNJR3.js → session-auth-dead-MDZWPSED.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-FPJRE3WT.js.map +0 -1
- /package/dist/{api-client-6ZRLLO2M.js.map → api-client-PYFWHUJS.js.map} +0 -0
- /package/dist/{chunk-WB6FCVI5.js.map → chunk-G5RHGLJN.js.map} +0 -0
- /package/dist/{chunk-XVGLZ3BT.js.map → chunk-GLX5CD6S.js.map} +0 -0
- /package/dist/{chunk-LXFCVKHS.js.map → chunk-I6HGFJNX.js.map} +0 -0
- /package/dist/{chunk-5SLN2B6N.js.map → chunk-JZ2XBRLQ.js.map} +0 -0
- /package/dist/{chunk-FQOXKQXI.js.map → chunk-PT3QK5ZP.js.map} +0 -0
- /package/dist/{claude-code-updater-DLCZAKW3.js.map → claude-code-updater-KA4VMUWK.js.map} +0 -0
- /package/dist/{claude-pair-runtime-43E2YV2S.js.map → claude-pair-runtime-MC3K2BXU.js.map} +0 -0
- /package/dist/{persistent-session-RGMMUKVK.js.map → persistent-session-ZC4XAUTS.js.map} +0 -0
- /package/dist/{responsiveness-probe-I7HNQGP4.js.map → responsiveness-probe-TA47HG3A.js.map} +0 -0
- /package/dist/{session-auth-dead-JVDVNJR3.js.map → session-auth-dead-MDZWPSED.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
exchangeApiKey,
|
|
3
3
|
getApiKey,
|
|
4
4
|
getHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JZ2XBRLQ.js";
|
|
6
6
|
import {
|
|
7
7
|
LATE_BOUND_VARS,
|
|
8
8
|
PLATFORM_DENY_PERMISSIONS,
|
|
@@ -26,11 +26,11 @@ import {
|
|
|
26
26
|
warnIgnoredIsolationAllowlist,
|
|
27
27
|
withheldRemoteMcpMessage,
|
|
28
28
|
withheldRemoteMcpReasonFor
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-PT3QK5ZP.js";
|
|
30
30
|
import {
|
|
31
31
|
readDailySessionPin,
|
|
32
32
|
sessionTranscriptDir
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-GLX5CD6S.js";
|
|
34
34
|
import {
|
|
35
35
|
classifyUnanswerablePane,
|
|
36
36
|
isConsumerTermsDialogVisible,
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
scanConfigForLiteralSecrets,
|
|
103
103
|
worseConnectivityOutcome,
|
|
104
104
|
wrapScheduledTaskPrompt
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-4KSUIAI4.js";
|
|
106
106
|
import {
|
|
107
107
|
claudeJsonPathFor,
|
|
108
108
|
effectiveClaudeJsonPath,
|
|
@@ -13876,4 +13876,4 @@ export {
|
|
|
13876
13876
|
managerInstallSystemUnitCommand,
|
|
13877
13877
|
managerUninstallSystemUnitCommand
|
|
13878
13878
|
};
|
|
13879
|
-
//# sourceMappingURL=chunk-
|
|
13879
|
+
//# sourceMappingURL=chunk-G5RHGLJN.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
encodeClaudeProjectPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4KSUIAI4.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/daily-session.ts
|
|
6
6
|
import { randomUUID } from "crypto";
|
|
@@ -245,4 +245,4 @@ export {
|
|
|
245
245
|
peekPreviousSession,
|
|
246
246
|
readDailySessionPin
|
|
247
247
|
};
|
|
248
|
-
//# sourceMappingURL=chunk-
|
|
248
|
+
//# sourceMappingURL=chunk-GLX5CD6S.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-XWVM4KPK.js";
|
|
5
5
|
import {
|
|
6
6
|
FORCED_UPDATE_HARD_DEADLINE_MS
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4KSUIAI4.js";
|
|
8
8
|
import {
|
|
9
9
|
effectiveClaudeJsonPath
|
|
10
10
|
} from "./chunk-AIUIMEUS.js";
|
|
@@ -722,4 +722,4 @@ export {
|
|
|
722
722
|
probeClaudeInstalls,
|
|
723
723
|
maybeUpdateClaudeCode
|
|
724
724
|
};
|
|
725
|
-
//# sourceMappingURL=chunk-
|
|
725
|
+
//# sourceMappingURL=chunk-I6HGFJNX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HOST_ROTATE_KEY_CONFLICT
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4KSUIAI4.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/config.ts
|
|
6
6
|
import { readFileSync, writeFileSync, mkdirSync, existsSync } from "fs";
|
|
@@ -103,7 +103,7 @@ function exchangeFailureKind(err) {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
// src/lib/api-client.ts
|
|
106
|
-
var agtCliVersion = true ? "0.28.
|
|
106
|
+
var agtCliVersion = true ? "0.28.1304" : "dev";
|
|
107
107
|
var lastConfigHash = null;
|
|
108
108
|
function setConfigHash(hash) {
|
|
109
109
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -468,4 +468,4 @@ export {
|
|
|
468
468
|
api,
|
|
469
469
|
getHostId
|
|
470
470
|
};
|
|
471
|
-
//# sourceMappingURL=chunk-
|
|
471
|
+
//# sourceMappingURL=chunk-JZ2XBRLQ.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
rotateDailySession,
|
|
5
5
|
sessionFileExists,
|
|
6
6
|
todayLocalIso
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GLX5CD6S.js";
|
|
8
8
|
import {
|
|
9
9
|
classifyUnanswerablePane,
|
|
10
10
|
customApiKeyDialogKeys,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
remoteMcpConnectionEnvInfix,
|
|
55
55
|
remoteMcpConnectionLabel,
|
|
56
56
|
remoteMcpConnectionScopedEnvVar
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-4KSUIAI4.js";
|
|
58
58
|
import {
|
|
59
59
|
CLAUDE_CONFIG_DIR_ENV,
|
|
60
60
|
approveApiKeyInClaudeConfig,
|
|
@@ -6586,4 +6586,4 @@ export {
|
|
|
6586
6586
|
stopAllSessionsAndWait,
|
|
6587
6587
|
getProjectDir
|
|
6588
6588
|
};
|
|
6589
|
-
//# sourceMappingURL=chunk-
|
|
6589
|
+
//# sourceMappingURL=chunk-PT3QK5ZP.js.map
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
probeClaudeInstalls,
|
|
14
14
|
readsAsNativeInstall,
|
|
15
15
|
shouldRunClaudeCodeUpdater
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-I6HGFJNX.js";
|
|
17
17
|
import "./chunk-XWVM4KPK.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-4KSUIAI4.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-
|
|
37
|
+
//# sourceMappingURL=claude-code-updater-KA4VMUWK.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
redactPaneFrame,
|
|
12
12
|
sanitizeTerminalFrame
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4KSUIAI4.js";
|
|
14
14
|
import {
|
|
15
15
|
CLAUDE_CONFIG_DIR_ENV,
|
|
16
16
|
claudeConfigDirFor,
|
|
@@ -323,7 +323,7 @@ async function spawnPairSession(session) {
|
|
|
323
323
|
return { ok: true };
|
|
324
324
|
} catch {
|
|
325
325
|
}
|
|
326
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
326
|
+
const { resolveClaudeBinary } = await import("./persistent-session-ZC4XAUTS.js");
|
|
327
327
|
const claudeBin = resolveClaudeBinary();
|
|
328
328
|
const pairEnv = {
|
|
329
329
|
...process.env,
|
|
@@ -838,4 +838,4 @@ export {
|
|
|
838
838
|
startClaudePair,
|
|
839
839
|
submitClaudePairCode
|
|
840
840
|
};
|
|
841
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
841
|
+
//# sourceMappingURL=claude-pair-runtime-MC3K2BXU.js.map
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
tripClass,
|
|
71
71
|
writeEtcEnvironment,
|
|
72
72
|
writeProfileDScript
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-G5RHGLJN.js";
|
|
74
74
|
import {
|
|
75
75
|
ApiError,
|
|
76
76
|
adoptHostKeyInProcess,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
probeHostKey,
|
|
89
89
|
requireHost,
|
|
90
90
|
setConfigHash
|
|
91
|
-
} from "../chunk-
|
|
91
|
+
} from "../chunk-JZ2XBRLQ.js";
|
|
92
92
|
import {
|
|
93
93
|
BLOCKED_ON_PROMPT_DECISION,
|
|
94
94
|
CHANNEL_SECRET_ENV_KEYS,
|
|
@@ -183,7 +183,7 @@ import {
|
|
|
183
183
|
webFetchBaselineValue,
|
|
184
184
|
webFetchRestartNeeded,
|
|
185
185
|
writeEgressAllowlist
|
|
186
|
-
} from "../chunk-
|
|
186
|
+
} from "../chunk-PT3QK5ZP.js";
|
|
187
187
|
import {
|
|
188
188
|
isAgentIdle,
|
|
189
189
|
isStaleForToday,
|
|
@@ -195,7 +195,7 @@ import {
|
|
|
195
195
|
subagentActivityAgeSeconds,
|
|
196
196
|
subagentTranscriptDir,
|
|
197
197
|
transcriptActivityAgeSeconds
|
|
198
|
-
} from "../chunk-
|
|
198
|
+
} from "../chunk-GLX5CD6S.js";
|
|
199
199
|
import {
|
|
200
200
|
classifyUnanswerablePane,
|
|
201
201
|
focusedConfirmDialogBlock,
|
|
@@ -221,7 +221,7 @@ import {
|
|
|
221
221
|
runSafeCleanup,
|
|
222
222
|
tightestDiskStat,
|
|
223
223
|
withPackageCacheLock
|
|
224
|
-
} from "../chunk-
|
|
224
|
+
} from "../chunk-I6HGFJNX.js";
|
|
225
225
|
import {
|
|
226
226
|
parsePsRows,
|
|
227
227
|
reapOrphanChannelMcps
|
|
@@ -350,7 +350,7 @@ import {
|
|
|
350
350
|
stabiliseResetInstant,
|
|
351
351
|
sumTranscriptUsageInWindow,
|
|
352
352
|
summarizeTranscriptActivity
|
|
353
|
-
} from "../chunk-
|
|
353
|
+
} from "../chunk-4KSUIAI4.js";
|
|
354
354
|
import {
|
|
355
355
|
CLAUDE_CONFIG_DIR_ENV,
|
|
356
356
|
claudeConfigDirFor,
|
|
@@ -15774,7 +15774,7 @@ function createFileMigrationReportIO(codeName, log2) {
|
|
|
15774
15774
|
};
|
|
15775
15775
|
}
|
|
15776
15776
|
var managerHostPost = async (path, body) => {
|
|
15777
|
-
const { api: api2, ApiError: ApiError3 } = await import("../api-client-
|
|
15777
|
+
const { api: api2, ApiError: ApiError3 } = await import("../api-client-PYFWHUJS.js");
|
|
15778
15778
|
try {
|
|
15779
15779
|
const json = await api2.post(path, body);
|
|
15780
15780
|
return { status: 200, json };
|
|
@@ -17863,7 +17863,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
17863
17863
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
17864
17864
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
17865
17865
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
17866
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
17866
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-TA47HG3A.js");
|
|
17867
17867
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
17868
17868
|
if (newest === null) return null;
|
|
17869
17869
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -18759,7 +18759,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
18759
18759
|
var lastVersionCheckAt = 0;
|
|
18760
18760
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
18761
18761
|
var lastResponsivenessProbeAt = 0;
|
|
18762
|
-
var agtCliVersion = true ? "0.28.
|
|
18762
|
+
var agtCliVersion = true ? "0.28.1304" : "dev";
|
|
18763
18763
|
function resolveBrewPath(execFileSync5) {
|
|
18764
18764
|
try {
|
|
18765
18765
|
const out = execFileSync5("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -20885,7 +20885,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
20885
20885
|
if (codeNames.length === 0) return;
|
|
20886
20886
|
void (async () => {
|
|
20887
20887
|
try {
|
|
20888
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
20888
|
+
const { collectDiagnostics } = await import("../persistent-session-ZC4XAUTS.js");
|
|
20889
20889
|
await api.post("/host/heartbeat", {
|
|
20890
20890
|
host_id: hostId,
|
|
20891
20891
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -21028,7 +21028,7 @@ async function pollCycleInner() {
|
|
|
21028
21028
|
}
|
|
21029
21029
|
try {
|
|
21030
21030
|
const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
|
|
21031
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
21031
|
+
const { collectDiagnostics } = await import("../persistent-session-ZC4XAUTS.js");
|
|
21032
21032
|
const recordedSinceHeartbeat = new Set(spawnOutcomesSinceHeartbeat.drain());
|
|
21033
21033
|
const diagCodeNames = heartbeatDiagnosticsCodeNames(agentState.persistentSessionAgents, recordedSinceHeartbeat);
|
|
21034
21034
|
const heartbeatSpawnOutcomeFor = spawnOutcomeIfRecorded(spawnOutcomeForDiagnostics, recordedSinceHeartbeat);
|
|
@@ -21329,7 +21329,7 @@ async function pollCycleInner() {
|
|
|
21329
21329
|
}
|
|
21330
21330
|
try {
|
|
21331
21331
|
const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
|
|
21332
|
-
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-
|
|
21332
|
+
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-KA4VMUWK.js");
|
|
21333
21333
|
const securityFloor = currentSecurityFloor();
|
|
21334
21334
|
claudeUpdaterInFlight = true;
|
|
21335
21335
|
if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
|
|
@@ -21364,7 +21364,7 @@ async function pollCycleInner() {
|
|
|
21364
21364
|
collectPanelessActivityProbes,
|
|
21365
21365
|
getResponsivenessIntervalMs,
|
|
21366
21366
|
occupancyQualificationClassifications
|
|
21367
|
-
} = await import("../responsiveness-probe-
|
|
21367
|
+
} = await import("../responsiveness-probe-TA47HG3A.js");
|
|
21368
21368
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
21369
21369
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
21370
21370
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -21481,7 +21481,7 @@ async function pollCycleInner() {
|
|
|
21481
21481
|
collectResponsivenessProbes,
|
|
21482
21482
|
livePendingInboundOldestAgeSeconds,
|
|
21483
21483
|
parkPendingInbound
|
|
21484
|
-
} = await import("../responsiveness-probe-
|
|
21484
|
+
} = await import("../responsiveness-probe-TA47HG3A.js");
|
|
21485
21485
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
|
|
21486
21486
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
21487
21487
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -21767,7 +21767,7 @@ async function pollCycleInner() {
|
|
|
21767
21767
|
}
|
|
21768
21768
|
}
|
|
21769
21769
|
);
|
|
21770
|
-
const { parkPendingInbound } = await import("../responsiveness-probe-
|
|
21770
|
+
const { parkPendingInbound } = await import("../responsiveness-probe-TA47HG3A.js");
|
|
21771
21771
|
const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
|
|
21772
21772
|
paneFatalStreak.delete(codeName);
|
|
21773
21773
|
paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
|
|
@@ -21798,7 +21798,7 @@ async function pollCycleInner() {
|
|
|
21798
21798
|
TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
|
|
21799
21799
|
bindSourceEscalations
|
|
21800
21800
|
} = await import("../transcript-mount-health-OHE6IVJV.js");
|
|
21801
|
-
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-
|
|
21801
|
+
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-ZC4XAUTS.js");
|
|
21802
21802
|
const mountConfig = resolveTranscriptMountConfig();
|
|
21803
21803
|
const liveAgents = agentState.persistentSessionAgents;
|
|
21804
21804
|
for (const tracked of [
|
|
@@ -21963,7 +21963,7 @@ async function pollCycleInner() {
|
|
|
21963
21963
|
}
|
|
21964
21964
|
try {
|
|
21965
21965
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
|
|
21966
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
21966
|
+
const { probeSessionAuth } = await import("../session-auth-dead-MDZWPSED.js");
|
|
21967
21967
|
const observations = [];
|
|
21968
21968
|
const pendingCacheCommits = [];
|
|
21969
21969
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -27095,7 +27095,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
27095
27095
|
if (!refreshData) return;
|
|
27096
27096
|
const framework = refreshData.agent?.framework ?? agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK;
|
|
27097
27097
|
const hostId = await getHostId();
|
|
27098
|
-
const parkForRestart = await import("../responsiveness-probe-
|
|
27098
|
+
const parkForRestart = await import("../responsiveness-probe-TA47HG3A.js").then(
|
|
27099
27099
|
(m) => m.parkPendingInbound,
|
|
27100
27100
|
(err) => err
|
|
27101
27101
|
);
|
|
@@ -27172,7 +27172,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
27172
27172
|
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}`));
|
|
27173
27173
|
void (async () => {
|
|
27174
27174
|
try {
|
|
27175
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
27175
|
+
const { collectDiagnostics } = await import("../persistent-session-ZC4XAUTS.js");
|
|
27176
27176
|
await api.post("/host/heartbeat", {
|
|
27177
27177
|
host_id: hostId,
|
|
27178
27178
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -27225,7 +27225,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
27225
27225
|
}
|
|
27226
27226
|
try {
|
|
27227
27227
|
const hostId = await getHostId();
|
|
27228
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
27228
|
+
const { collectDiagnostics } = await import("../persistent-session-ZC4XAUTS.js");
|
|
27229
27229
|
await api.post("/host/heartbeat", {
|
|
27230
27230
|
host_id: hostId,
|
|
27231
27231
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -28104,7 +28104,7 @@ async function processClaudePairSessions(agents) {
|
|
|
28104
28104
|
snapshotPairConfig,
|
|
28105
28105
|
// ENG-11659: result -> report body + the manager.log line that records it.
|
|
28106
28106
|
planPairStartReport
|
|
28107
|
-
} = await import("../claude-pair-runtime-
|
|
28107
|
+
} = await import("../claude-pair-runtime-MC3K2BXU.js");
|
|
28108
28108
|
const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
|
|
28109
28109
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
28110
28110
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
@@ -40159,7 +40159,7 @@ var integration_metadata_v1_default = {
|
|
|
40159
40159
|
path_template: {
|
|
40160
40160
|
type: "string",
|
|
40161
40161
|
minLength: 1,
|
|
40162
|
-
description: "URL path with `{arg}` placeholders bound to validated input fields (e.g. `/api.xro/2.0/Invoices/{invoice_id}`)."
|
|
40162
|
+
description: "URL path with `{arg}` placeholders bound to validated input fields (e.g. `/api.xro/2.0/Invoices/{invoice_id}`). `{+arg}` inserts a multi-segment route with its slashes kept (e.g. `/{+endpoint_id}` for `bytedance/seedance-2.5/image-to-video`); each segment must match `[A-Za-z0-9][A-Za-z0-9._~-]*`, at most 8 segments, and a `{$body}` passthrough omits it."
|
|
40163
40163
|
},
|
|
40164
40164
|
body_template: {
|
|
40165
40165
|
description: "Optional body shape with `{arg}` placeholders. JSON-serialised at request time; pass-through fields can be referenced as `{$body}` to inject the entire input."
|
|
@@ -43931,7 +43931,7 @@ var INTEGRATION_REGISTRY = [
|
|
|
43931
43931
|
id: "higgsfield",
|
|
43932
43932
|
name: "Higgsfield",
|
|
43933
43933
|
category: "media",
|
|
43934
|
-
description: "Generative media \u2014 Soul text-to-image with style presets and trained-character consistency, DoP image-to-video with motion presets,
|
|
43934
|
+
description: "Generative media \u2014 Soul text-to-image with style presets and trained-character consistency, DoP image-to-video with motion presets, lip-synced talking video, and any other model your Higgsfield account offers (Seedance, Kling, Grok Image and more) by its endpoint id. Uses Higgsfield's REST API with your own API key.",
|
|
43935
43935
|
// ENG-8440: api_key, NOT the host-brokered MCP this used to be.
|
|
43936
43936
|
//
|
|
43937
43937
|
// Higgsfield MCP (`https://mcp.higgsfield.ai/mcp`) cannot be completed from
|
package/dist/mcp/index.js
CHANGED
|
@@ -23461,7 +23461,7 @@ var integration_metadata_v1_default = {
|
|
|
23461
23461
|
path_template: {
|
|
23462
23462
|
type: "string",
|
|
23463
23463
|
minLength: 1,
|
|
23464
|
-
description: "URL path with `{arg}` placeholders bound to validated input fields (e.g. `/api.xro/2.0/Invoices/{invoice_id}`)."
|
|
23464
|
+
description: "URL path with `{arg}` placeholders bound to validated input fields (e.g. `/api.xro/2.0/Invoices/{invoice_id}`). `{+arg}` inserts a multi-segment route with its slashes kept (e.g. `/{+endpoint_id}` for `bytedance/seedance-2.5/image-to-video`); each segment must match `[A-Za-z0-9][A-Za-z0-9._~-]*`, at most 8 segments, and a `{$body}` passthrough omits it."
|
|
23465
23465
|
},
|
|
23466
23466
|
body_template: {
|
|
23467
23467
|
description: "Optional body shape with `{arg}` placeholders. JSON-serialised at request time; pass-through fields can be referenced as `{$body}` to inject the entire input."
|
|
@@ -27271,7 +27271,7 @@ var INTEGRATION_REGISTRY = [
|
|
|
27271
27271
|
id: "higgsfield",
|
|
27272
27272
|
name: "Higgsfield",
|
|
27273
27273
|
category: "media",
|
|
27274
|
-
description: "Generative media \u2014 Soul text-to-image with style presets and trained-character consistency, DoP image-to-video with motion presets,
|
|
27274
|
+
description: "Generative media \u2014 Soul text-to-image with style presets and trained-character consistency, DoP image-to-video with motion presets, lip-synced talking video, and any other model your Higgsfield account offers (Seedance, Kling, Grok Image and more) by its endpoint id. Uses Higgsfield's REST API with your own API key.",
|
|
27275
27275
|
// ENG-8440: api_key, NOT the host-brokered MCP this used to be.
|
|
27276
27276
|
//
|
|
27277
27277
|
// Higgsfield MCP (`https://mcp.higgsfield.ai/mcp`) cannot be completed from
|
package/dist/mcp/origami.js
CHANGED
|
@@ -33053,7 +33053,7 @@ var integration_metadata_v1_default = {
|
|
|
33053
33053
|
path_template: {
|
|
33054
33054
|
type: "string",
|
|
33055
33055
|
minLength: 1,
|
|
33056
|
-
description: "URL path with `{arg}` placeholders bound to validated input fields (e.g. `/api.xro/2.0/Invoices/{invoice_id}`)."
|
|
33056
|
+
description: "URL path with `{arg}` placeholders bound to validated input fields (e.g. `/api.xro/2.0/Invoices/{invoice_id}`). `{+arg}` inserts a multi-segment route with its slashes kept (e.g. `/{+endpoint_id}` for `bytedance/seedance-2.5/image-to-video`); each segment must match `[A-Za-z0-9][A-Za-z0-9._~-]*`, at most 8 segments, and a `{$body}` passthrough omits it."
|
|
33057
33057
|
},
|
|
33058
33058
|
body_template: {
|
|
33059
33059
|
description: "Optional body shape with `{arg}` placeholders. JSON-serialised at request time; pass-through fields can be referenced as `{$body}` to inject the entire input."
|
|
@@ -33196,12 +33196,20 @@ var FIXED_SECONDS = {
|
|
|
33196
33196
|
|
|
33197
33197
|
// ../core/dist/integrations/integration-broker/http-templater.js
|
|
33198
33198
|
var PLACEHOLDER_RE = /\{([a-zA-Z_][a-zA-Z0-9_]*)\}/g;
|
|
33199
|
+
var ROUTE_PLACEHOLDER_RE = /\{\+([a-zA-Z_][a-zA-Z0-9_]*)\}/g;
|
|
33200
|
+
var ROUTE_SEGMENT_RE = /^[A-Za-z0-9][A-Za-z0-9._~-]*$/;
|
|
33201
|
+
var MAX_ROUTE_SEGMENTS = 8;
|
|
33202
|
+
var MAX_ROUTE_LENGTH = 256;
|
|
33199
33203
|
function buildHttpRequest(input) {
|
|
33200
33204
|
const { tool, args, baseUrl, bearerToken, authScheme, authEncoding, requestId, extraHeaders } = input;
|
|
33201
33205
|
const { method, path_template, query_template, headers_template, body_template, idempotency_key_header } = tool.http;
|
|
33202
33206
|
rejectOptionalPlaceholder("path_template", path_template);
|
|
33203
33207
|
for (const v of Object.values(query_template ?? {}))
|
|
33204
33208
|
rejectOptionalPlaceholder("query_template", v);
|
|
33209
|
+
for (const v of Object.values(query_template ?? {}))
|
|
33210
|
+
rejectRoutePlaceholder("query_template", v);
|
|
33211
|
+
for (const v of Object.values(headers_template ?? {}))
|
|
33212
|
+
rejectRoutePlaceholder("headers_template", v);
|
|
33205
33213
|
const path = templatePath(path_template, args);
|
|
33206
33214
|
const query = query_template ? buildQueryString(query_template, args) : "";
|
|
33207
33215
|
const url = joinUrl(baseUrl, path) + query;
|
|
@@ -33224,7 +33232,9 @@ function buildHttpRequest(input) {
|
|
|
33224
33232
|
}
|
|
33225
33233
|
let body;
|
|
33226
33234
|
if (method !== "GET" && body_template !== void 0) {
|
|
33227
|
-
const
|
|
33235
|
+
const headerOnly = body_template === "{$body}" && headers_template ? headerOnlyPlaceholders(headers_template, tool.http) : /* @__PURE__ */ new Set();
|
|
33236
|
+
const routeOnly = containsBodyPassthrough(body_template) ? routePlaceholderKeys(path_template) : /* @__PURE__ */ new Set();
|
|
33237
|
+
const bodyArgs = omitKeys(args, /* @__PURE__ */ new Set([...headerOnly, ...routeOnly]));
|
|
33228
33238
|
const expanded = expandBodyTemplate(body_template, bodyArgs);
|
|
33229
33239
|
body = JSON.stringify(expanded);
|
|
33230
33240
|
headers["Content-Type"] = "application/json";
|
|
@@ -33265,6 +33275,7 @@ function buildTemplatedHeaders(template, args, reservedNames) {
|
|
|
33265
33275
|
function headerOnlyPlaceholders(headersTemplate, http) {
|
|
33266
33276
|
const elsewhere = /* @__PURE__ */ new Set([
|
|
33267
33277
|
...placeholderKeys(http.path_template),
|
|
33278
|
+
...routePlaceholderKeys(http.path_template),
|
|
33268
33279
|
...Object.values(http.query_template ?? {}).flatMap(placeholderKeys)
|
|
33269
33280
|
]);
|
|
33270
33281
|
const out = /* @__PURE__ */ new Set();
|
|
@@ -33362,8 +33373,35 @@ function isValidHeaderName(name) {
|
|
|
33362
33373
|
function isValidHeaderValue(value) {
|
|
33363
33374
|
return !/[\x00-\x1f\x7f]/.test(value);
|
|
33364
33375
|
}
|
|
33376
|
+
function routePlaceholderKeys(template) {
|
|
33377
|
+
return new Set([...template.matchAll(ROUTE_PLACEHOLDER_RE)].map((m) => m[1]));
|
|
33378
|
+
}
|
|
33379
|
+
function rejectRoutePlaceholder(field, template) {
|
|
33380
|
+
if (typeof template === "string" && new RegExp(ROUTE_PLACEHOLDER_RE.source).test(template)) {
|
|
33381
|
+
throw new TemplateError(`route placeholder {+key} is not supported in ${field} (path_template only)`);
|
|
33382
|
+
}
|
|
33383
|
+
}
|
|
33384
|
+
function expandRoute(key, value) {
|
|
33385
|
+
if (typeof value !== "string") {
|
|
33386
|
+
throw new TemplateError(`route placeholder {+${key}} needs a string value`);
|
|
33387
|
+
}
|
|
33388
|
+
if (value.length === 0 || value.length > MAX_ROUTE_LENGTH) {
|
|
33389
|
+
throw new TemplateError(`route placeholder {+${key}} must be 1-${MAX_ROUTE_LENGTH} characters`);
|
|
33390
|
+
}
|
|
33391
|
+
const segments = value.split("/");
|
|
33392
|
+
if (segments.length > MAX_ROUTE_SEGMENTS) {
|
|
33393
|
+
throw new TemplateError(`route placeholder {+${key}} allows at most ${MAX_ROUTE_SEGMENTS} segments`);
|
|
33394
|
+
}
|
|
33395
|
+
for (const seg of segments) {
|
|
33396
|
+
if (!ROUTE_SEGMENT_RE.test(seg)) {
|
|
33397
|
+
throw new TemplateError(`route placeholder {+${key}} has an invalid segment ${JSON.stringify(seg)}: each segment must start with a letter or digit and contain only letters, digits, ".", "_", "~" and "-"`);
|
|
33398
|
+
}
|
|
33399
|
+
}
|
|
33400
|
+
return segments.map((seg) => encodeURIComponent(seg)).join("/");
|
|
33401
|
+
}
|
|
33365
33402
|
function templatePath(template, args) {
|
|
33366
|
-
|
|
33403
|
+
const routed = template.replace(ROUTE_PLACEHOLDER_RE, (_full, key) => expandRoute(key, args[key]));
|
|
33404
|
+
return routed.replace(PLACEHOLDER_RE, (_full, key) => {
|
|
33367
33405
|
const value = args[key];
|
|
33368
33406
|
if (!isScalar(value)) {
|
|
33369
33407
|
throw new TemplateError(`path placeholder {${key}} cannot be substituted with non-scalar value`);
|
|
@@ -33395,6 +33433,15 @@ function rejectOptionalPlaceholder(field, template) {
|
|
|
33395
33433
|
throw new TemplateError(`optional placeholder ${template.match(OPTIONAL_PLACEHOLDER_RE)[0]} is not supported in ${field} (only as the whole value of an object property in body_template)`);
|
|
33396
33434
|
}
|
|
33397
33435
|
}
|
|
33436
|
+
function containsBodyPassthrough(template) {
|
|
33437
|
+
if (template === "{$body}")
|
|
33438
|
+
return true;
|
|
33439
|
+
if (Array.isArray(template))
|
|
33440
|
+
return template.some(containsBodyPassthrough);
|
|
33441
|
+
if (template !== null && typeof template === "object")
|
|
33442
|
+
return Object.values(template).some(containsBodyPassthrough);
|
|
33443
|
+
return false;
|
|
33444
|
+
}
|
|
33398
33445
|
function expandBodyTemplate(template, args) {
|
|
33399
33446
|
if (template === "{$body}")
|
|
33400
33447
|
return args;
|
|
@@ -37059,7 +37106,7 @@ var INTEGRATION_REGISTRY = [
|
|
|
37059
37106
|
id: "higgsfield",
|
|
37060
37107
|
name: "Higgsfield",
|
|
37061
37108
|
category: "media",
|
|
37062
|
-
description: "Generative media \u2014 Soul text-to-image with style presets and trained-character consistency, DoP image-to-video with motion presets,
|
|
37109
|
+
description: "Generative media \u2014 Soul text-to-image with style presets and trained-character consistency, DoP image-to-video with motion presets, lip-synced talking video, and any other model your Higgsfield account offers (Seedance, Kling, Grok Image and more) by its endpoint id. Uses Higgsfield's REST API with your own API key.",
|
|
37063
37110
|
// ENG-8440: api_key, NOT the host-brokered MCP this used to be.
|
|
37064
37111
|
//
|
|
37065
37112
|
// Higgsfield MCP (`https://mcp.higgsfield.ai/mcp`) cannot be completed from
|
|
@@ -34698,7 +34698,7 @@ var integration_metadata_v1_default = {
|
|
|
34698
34698
|
path_template: {
|
|
34699
34699
|
type: "string",
|
|
34700
34700
|
minLength: 1,
|
|
34701
|
-
description: "URL path with `{arg}` placeholders bound to validated input fields (e.g. `/api.xro/2.0/Invoices/{invoice_id}`)."
|
|
34701
|
+
description: "URL path with `{arg}` placeholders bound to validated input fields (e.g. `/api.xro/2.0/Invoices/{invoice_id}`). `{+arg}` inserts a multi-segment route with its slashes kept (e.g. `/{+endpoint_id}` for `bytedance/seedance-2.5/image-to-video`); each segment must match `[A-Za-z0-9][A-Za-z0-9._~-]*`, at most 8 segments, and a `{$body}` passthrough omits it."
|
|
34702
34702
|
},
|
|
34703
34703
|
body_template: {
|
|
34704
34704
|
description: "Optional body shape with `{arg}` placeholders. JSON-serialised at request time; pass-through fields can be referenced as `{$body}` to inject the entire input."
|
|
@@ -38441,7 +38441,7 @@ var INTEGRATION_REGISTRY = [
|
|
|
38441
38441
|
id: "higgsfield",
|
|
38442
38442
|
name: "Higgsfield",
|
|
38443
38443
|
category: "media",
|
|
38444
|
-
description: "Generative media \u2014 Soul text-to-image with style presets and trained-character consistency, DoP image-to-video with motion presets,
|
|
38444
|
+
description: "Generative media \u2014 Soul text-to-image with style presets and trained-character consistency, DoP image-to-video with motion presets, lip-synced talking video, and any other model your Higgsfield account offers (Seedance, Kling, Grok Image and more) by its endpoint id. Uses Higgsfield's REST API with your own API key.",
|
|
38445
38445
|
// ENG-8440: api_key, NOT the host-brokered MCP this used to be.
|
|
38446
38446
|
//
|
|
38447
38447
|
// Higgsfield MCP (`https://mcp.higgsfield.ai/mcp`) cannot be completed from
|
|
@@ -35175,7 +35175,7 @@ var integration_metadata_v1_default = {
|
|
|
35175
35175
|
path_template: {
|
|
35176
35176
|
type: "string",
|
|
35177
35177
|
minLength: 1,
|
|
35178
|
-
description: "URL path with `{arg}` placeholders bound to validated input fields (e.g. `/api.xro/2.0/Invoices/{invoice_id}`)."
|
|
35178
|
+
description: "URL path with `{arg}` placeholders bound to validated input fields (e.g. `/api.xro/2.0/Invoices/{invoice_id}`). `{+arg}` inserts a multi-segment route with its slashes kept (e.g. `/{+endpoint_id}` for `bytedance/seedance-2.5/image-to-video`); each segment must match `[A-Za-z0-9][A-Za-z0-9._~-]*`, at most 8 segments, and a `{$body}` passthrough omits it."
|
|
35179
35179
|
},
|
|
35180
35180
|
body_template: {
|
|
35181
35181
|
description: "Optional body shape with `{arg}` placeholders. JSON-serialised at request time; pass-through fields can be referenced as `{$body}` to inject the entire input."
|
|
@@ -38913,7 +38913,7 @@ var INTEGRATION_REGISTRY = [
|
|
|
38913
38913
|
id: "higgsfield",
|
|
38914
38914
|
name: "Higgsfield",
|
|
38915
38915
|
category: "media",
|
|
38916
|
-
description: "Generative media \u2014 Soul text-to-image with style presets and trained-character consistency, DoP image-to-video with motion presets,
|
|
38916
|
+
description: "Generative media \u2014 Soul text-to-image with style presets and trained-character consistency, DoP image-to-video with motion presets, lip-synced talking video, and any other model your Higgsfield account offers (Seedance, Kling, Grok Image and more) by its endpoint id. Uses Higgsfield's REST API with your own API key.",
|
|
38917
38917
|
// ENG-8440: api_key, NOT the host-brokered MCP this used to be.
|
|
38918
38918
|
//
|
|
38919
38919
|
// Higgsfield MCP (`https://mcp.higgsfield.ai/mcp`) cannot be completed from
|
|
@@ -87,12 +87,12 @@ import {
|
|
|
87
87
|
writeDirectChatSessionState,
|
|
88
88
|
writeEgressAllowlist,
|
|
89
89
|
writePersistentClaudeWrapper
|
|
90
|
-
} from "./chunk-
|
|
91
|
-
import "./chunk-
|
|
90
|
+
} from "./chunk-PT3QK5ZP.js";
|
|
91
|
+
import "./chunk-GLX5CD6S.js";
|
|
92
92
|
import "./chunk-XL2HPM67.js";
|
|
93
93
|
import "./chunk-6HBXEJHO.js";
|
|
94
94
|
import "./chunk-XWVM4KPK.js";
|
|
95
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-4KSUIAI4.js";
|
|
96
96
|
import "./chunk-AIUIMEUS.js";
|
|
97
97
|
import "./chunk-DGUM43GV.js";
|
|
98
98
|
export {
|
|
@@ -185,4 +185,4 @@ export {
|
|
|
185
185
|
writeEgressAllowlist,
|
|
186
186
|
writePersistentClaudeWrapper
|
|
187
187
|
};
|
|
188
|
-
//# sourceMappingURL=persistent-session-
|
|
188
|
+
//# sourceMappingURL=persistent-session-ZC4XAUTS.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-PT3QK5ZP.js";
|
|
4
|
+
import "./chunk-GLX5CD6S.js";
|
|
5
5
|
import "./chunk-XL2HPM67.js";
|
|
6
6
|
import "./chunk-6HBXEJHO.js";
|
|
7
7
|
import "./chunk-XWVM4KPK.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-4KSUIAI4.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-
|
|
807
|
+
//# sourceMappingURL=responsiveness-probe-TA47HG3A.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionTranscriptDir
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-GLX5CD6S.js";
|
|
4
|
+
import "./chunk-4KSUIAI4.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-
|
|
208
|
+
//# sourceMappingURL=session-auth-dead-MDZWPSED.js.map
|