@integrity-labs/agt-cli 0.28.1229 → 0.28.1231
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 +6 -6
- package/dist/{chunk-54IS4ENC.js → chunk-BFQKF46D.js} +3 -3
- package/dist/{chunk-NZW6QIEA.js → chunk-FB7WULTV.js} +2 -2
- package/dist/{chunk-CBTAGEAN.js → chunk-IRIZBER7.js} +11 -1
- package/dist/{chunk-CBTAGEAN.js.map → chunk-IRIZBER7.js.map} +1 -1
- package/dist/{chunk-JQ6YNOLW.js → chunk-KJAY4IUW.js} +2 -2
- package/dist/{chunk-Y3T23QKU.js → chunk-YQIXA6TX.js} +5 -5
- package/dist/{claude-code-updater-THRRD7LZ.js → claude-code-updater-HUMYEBO2.js} +3 -3
- package/dist/{claude-pair-runtime-TWVTJBYA.js → claude-pair-runtime-5PYUWRH6.js} +3 -3
- package/dist/lib/manager-worker.js +19 -19
- package/dist/mcp/direct-chat-channel.js +19 -2
- package/dist/mcp/index.js +14 -2
- package/dist/mcp/origami.js +10 -0
- package/dist/mcp/slack-channel.js +15 -1
- package/dist/mcp/teams-channel.js +5 -1
- package/dist/mcp/telegram-channel.js +15 -1
- package/dist/mcp/whatsapp-channel.js +5 -1
- package/dist/{persistent-session-FHWX2DCN.js → persistent-session-73LJPKT2.js} +4 -4
- package/dist/{responsiveness-probe-HA7MTAFM.js → responsiveness-probe-QVIGL5BH.js} +4 -4
- package/dist/{session-auth-dead-PGTY742A.js → session-auth-dead-XLWG3MJF.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-54IS4ENC.js.map → chunk-BFQKF46D.js.map} +0 -0
- /package/dist/{chunk-NZW6QIEA.js.map → chunk-FB7WULTV.js.map} +0 -0
- /package/dist/{chunk-JQ6YNOLW.js.map → chunk-KJAY4IUW.js.map} +0 -0
- /package/dist/{chunk-Y3T23QKU.js.map → chunk-YQIXA6TX.js.map} +0 -0
- /package/dist/{claude-code-updater-THRRD7LZ.js.map → claude-code-updater-HUMYEBO2.js.map} +0 -0
- /package/dist/{claude-pair-runtime-TWVTJBYA.js.map → claude-pair-runtime-5PYUWRH6.js.map} +0 -0
- /package/dist/{persistent-session-FHWX2DCN.js.map → persistent-session-73LJPKT2.js.map} +0 -0
- /package/dist/{responsiveness-probe-HA7MTAFM.js.map → responsiveness-probe-QVIGL5BH.js.map} +0 -0
- /package/dist/{session-auth-dead-PGTY742A.js.map → session-auth-dead-XLWG3MJF.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
encodeClaudeProjectPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IRIZBER7.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/daily-session.ts
|
|
6
6
|
import { randomUUID } from "crypto";
|
|
@@ -244,4 +244,4 @@ export {
|
|
|
244
244
|
peekPreviousSession,
|
|
245
245
|
readDailySessionPin
|
|
246
246
|
};
|
|
247
|
-
//# sourceMappingURL=chunk-
|
|
247
|
+
//# sourceMappingURL=chunk-KJAY4IUW.js.map
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
parseEnvFileEntries,
|
|
17
17
|
parseEnvIntegrations,
|
|
18
18
|
shellQuote
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BFQKF46D.js";
|
|
20
20
|
import {
|
|
21
21
|
readDailySessionPin,
|
|
22
22
|
sessionTranscriptDir
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KJAY4IUW.js";
|
|
24
24
|
import {
|
|
25
25
|
classifyUnanswerablePane,
|
|
26
26
|
isConsumerTermsDialogVisible,
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
scanConfigForLiteralSecrets,
|
|
94
94
|
worseConnectivityOutcome,
|
|
95
95
|
wrapScheduledTaskPrompt
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-IRIZBER7.js";
|
|
97
97
|
import {
|
|
98
98
|
claudeJsonPathFor,
|
|
99
99
|
effectiveClaudeJsonPath,
|
|
@@ -8084,7 +8084,7 @@ function exchangeFailureKind(err) {
|
|
|
8084
8084
|
}
|
|
8085
8085
|
|
|
8086
8086
|
// src/lib/api-client.ts
|
|
8087
|
-
var agtCliVersion = true ? "0.28.
|
|
8087
|
+
var agtCliVersion = true ? "0.28.1231" : "dev";
|
|
8088
8088
|
var lastConfigHash = null;
|
|
8089
8089
|
function setConfigHash(hash) {
|
|
8090
8090
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -13724,4 +13724,4 @@ export {
|
|
|
13724
13724
|
managerInstallSystemUnitCommand,
|
|
13725
13725
|
managerUninstallSystemUnitCommand
|
|
13726
13726
|
};
|
|
13727
|
-
//# sourceMappingURL=chunk-
|
|
13727
|
+
//# sourceMappingURL=chunk-YQIXA6TX.js.map
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
probeClaudeInstalls,
|
|
14
14
|
readsAsNativeInstall,
|
|
15
15
|
shouldRunClaudeCodeUpdater
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FB7WULTV.js";
|
|
17
17
|
import "./chunk-XWVM4KPK.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-IRIZBER7.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-HUMYEBO2.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
redactPaneFrame,
|
|
10
10
|
sanitizeTerminalFrame
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IRIZBER7.js";
|
|
12
12
|
import {
|
|
13
13
|
CLAUDE_CONFIG_DIR_ENV,
|
|
14
14
|
claudeConfigDirFor,
|
|
@@ -321,7 +321,7 @@ async function spawnPairSession(session) {
|
|
|
321
321
|
return { ok: true };
|
|
322
322
|
} catch {
|
|
323
323
|
}
|
|
324
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
324
|
+
const { resolveClaudeBinary } = await import("./persistent-session-73LJPKT2.js");
|
|
325
325
|
const claudeBin = resolveClaudeBinary();
|
|
326
326
|
const pairEnv = {
|
|
327
327
|
...process.env,
|
|
@@ -836,4 +836,4 @@ export {
|
|
|
836
836
|
startClaudePair,
|
|
837
837
|
submitClaudePairCode
|
|
838
838
|
};
|
|
839
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
839
|
+
//# sourceMappingURL=claude-pair-runtime-5PYUWRH6.js.map
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
tripClass,
|
|
86
86
|
writeEtcEnvironment,
|
|
87
87
|
writeProfileDScript
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-YQIXA6TX.js";
|
|
89
89
|
import {
|
|
90
90
|
CLAUDE_CODE_SECURITY_FLOOR,
|
|
91
91
|
SELF_UPDATE_TIMEOUTS,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
runSafeCleanup,
|
|
100
100
|
tightestDiskStat,
|
|
101
101
|
withPackageCacheLock
|
|
102
|
-
} from "../chunk-
|
|
102
|
+
} from "../chunk-FB7WULTV.js";
|
|
103
103
|
import {
|
|
104
104
|
rewriteSupervisorApiKey,
|
|
105
105
|
supervisorChannelsRefusing
|
|
@@ -192,7 +192,7 @@ import {
|
|
|
192
192
|
webFetchBaselineValue,
|
|
193
193
|
webFetchRestartNeeded,
|
|
194
194
|
writeEgressAllowlist
|
|
195
|
-
} from "../chunk-
|
|
195
|
+
} from "../chunk-BFQKF46D.js";
|
|
196
196
|
import {
|
|
197
197
|
isAgentIdle,
|
|
198
198
|
isStaleForToday,
|
|
@@ -203,7 +203,7 @@ import {
|
|
|
203
203
|
subagentActivityAgeSeconds,
|
|
204
204
|
subagentTranscriptDir,
|
|
205
205
|
transcriptActivityAgeSeconds
|
|
206
|
-
} from "../chunk-
|
|
206
|
+
} from "../chunk-KJAY4IUW.js";
|
|
207
207
|
import {
|
|
208
208
|
classifyUnanswerablePane,
|
|
209
209
|
focusedConfirmDialogBlock,
|
|
@@ -334,7 +334,7 @@ import {
|
|
|
334
334
|
stabiliseResetInstant,
|
|
335
335
|
sumTranscriptUsageInWindow,
|
|
336
336
|
summarizeTranscriptActivity
|
|
337
|
-
} from "../chunk-
|
|
337
|
+
} from "../chunk-IRIZBER7.js";
|
|
338
338
|
import {
|
|
339
339
|
CLAUDE_CONFIG_DIR_ENV,
|
|
340
340
|
claudeConfigDirFor,
|
|
@@ -15843,7 +15843,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
15843
15843
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
15844
15844
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
15845
15845
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
15846
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
15846
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-QVIGL5BH.js");
|
|
15847
15847
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
15848
15848
|
if (newest === null) return null;
|
|
15849
15849
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -16643,7 +16643,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
16643
16643
|
var lastVersionCheckAt = 0;
|
|
16644
16644
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
16645
16645
|
var lastResponsivenessProbeAt = 0;
|
|
16646
|
-
var agtCliVersion = true ? "0.28.
|
|
16646
|
+
var agtCliVersion = true ? "0.28.1231" : "dev";
|
|
16647
16647
|
function resolveBrewPath(execFileSync3) {
|
|
16648
16648
|
try {
|
|
16649
16649
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -18640,7 +18640,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
18640
18640
|
if (codeNames.length === 0) return;
|
|
18641
18641
|
void (async () => {
|
|
18642
18642
|
try {
|
|
18643
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
18643
|
+
const { collectDiagnostics } = await import("../persistent-session-73LJPKT2.js");
|
|
18644
18644
|
await api.post("/host/heartbeat", {
|
|
18645
18645
|
host_id: hostId,
|
|
18646
18646
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -18783,7 +18783,7 @@ async function pollCycleInner() {
|
|
|
18783
18783
|
}
|
|
18784
18784
|
try {
|
|
18785
18785
|
const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
|
|
18786
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
18786
|
+
const { collectDiagnostics } = await import("../persistent-session-73LJPKT2.js");
|
|
18787
18787
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
18788
18788
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
|
|
18789
18789
|
let tailscaleHostname;
|
|
@@ -19048,7 +19048,7 @@ async function pollCycleInner() {
|
|
|
19048
19048
|
}
|
|
19049
19049
|
try {
|
|
19050
19050
|
const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
|
|
19051
|
-
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-
|
|
19051
|
+
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-HUMYEBO2.js");
|
|
19052
19052
|
const securityFloor = currentSecurityFloor();
|
|
19053
19053
|
claudeUpdaterInFlight = true;
|
|
19054
19054
|
if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
|
|
@@ -19083,7 +19083,7 @@ async function pollCycleInner() {
|
|
|
19083
19083
|
collectPanelessActivityProbes,
|
|
19084
19084
|
getResponsivenessIntervalMs,
|
|
19085
19085
|
occupancyQualificationClassifications
|
|
19086
|
-
} = await import("../responsiveness-probe-
|
|
19086
|
+
} = await import("../responsiveness-probe-QVIGL5BH.js");
|
|
19087
19087
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
19088
19088
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
19089
19089
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -19200,7 +19200,7 @@ async function pollCycleInner() {
|
|
|
19200
19200
|
collectResponsivenessProbes,
|
|
19201
19201
|
livePendingInboundOldestAgeSeconds,
|
|
19202
19202
|
parkPendingInbound
|
|
19203
|
-
} = await import("../responsiveness-probe-
|
|
19203
|
+
} = await import("../responsiveness-probe-QVIGL5BH.js");
|
|
19204
19204
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
|
|
19205
19205
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
19206
19206
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -19486,7 +19486,7 @@ async function pollCycleInner() {
|
|
|
19486
19486
|
}
|
|
19487
19487
|
}
|
|
19488
19488
|
);
|
|
19489
|
-
const { parkPendingInbound } = await import("../responsiveness-probe-
|
|
19489
|
+
const { parkPendingInbound } = await import("../responsiveness-probe-QVIGL5BH.js");
|
|
19490
19490
|
const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
|
|
19491
19491
|
paneFatalStreak.delete(codeName);
|
|
19492
19492
|
paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
|
|
@@ -19517,7 +19517,7 @@ async function pollCycleInner() {
|
|
|
19517
19517
|
TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
|
|
19518
19518
|
bindSourceEscalations
|
|
19519
19519
|
} = await import("../transcript-mount-health-OHE6IVJV.js");
|
|
19520
|
-
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-
|
|
19520
|
+
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-73LJPKT2.js");
|
|
19521
19521
|
const mountConfig = resolveTranscriptMountConfig();
|
|
19522
19522
|
const liveAgents = agentState.persistentSessionAgents;
|
|
19523
19523
|
for (const tracked of [
|
|
@@ -19682,7 +19682,7 @@ async function pollCycleInner() {
|
|
|
19682
19682
|
}
|
|
19683
19683
|
try {
|
|
19684
19684
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
|
|
19685
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
19685
|
+
const { probeSessionAuth } = await import("../session-auth-dead-XLWG3MJF.js");
|
|
19686
19686
|
const observations = [];
|
|
19687
19687
|
const pendingCacheCommits = [];
|
|
19688
19688
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -24428,7 +24428,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
24428
24428
|
try {
|
|
24429
24429
|
const freshId = rotateSessionForWedge(codeName);
|
|
24430
24430
|
consecutiveWedgeCycles.delete(codeName);
|
|
24431
|
-
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-
|
|
24431
|
+
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-QVIGL5BH.js");
|
|
24432
24432
|
const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
|
|
24433
24433
|
const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
|
|
24434
24434
|
const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
|
|
@@ -24471,7 +24471,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
24471
24471
|
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}`));
|
|
24472
24472
|
void (async () => {
|
|
24473
24473
|
try {
|
|
24474
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
24474
|
+
const { collectDiagnostics } = await import("../persistent-session-73LJPKT2.js");
|
|
24475
24475
|
await api.post("/host/heartbeat", {
|
|
24476
24476
|
host_id: hostId,
|
|
24477
24477
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -24522,7 +24522,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
24522
24522
|
}
|
|
24523
24523
|
try {
|
|
24524
24524
|
const hostId = await getHostId();
|
|
24525
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
24525
|
+
const { collectDiagnostics } = await import("../persistent-session-73LJPKT2.js");
|
|
24526
24526
|
await api.post("/host/heartbeat", {
|
|
24527
24527
|
host_id: hostId,
|
|
24528
24528
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -25224,7 +25224,7 @@ async function processClaudePairSessions(agents) {
|
|
|
25224
25224
|
snapshotPairConfig,
|
|
25225
25225
|
// ENG-11659: result -> report body + the manager.log line that records it.
|
|
25226
25226
|
planPairStartReport
|
|
25227
|
-
} = await import("../claude-pair-runtime-
|
|
25227
|
+
} = await import("../claude-pair-runtime-5PYUWRH6.js");
|
|
25228
25228
|
const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
|
|
25229
25229
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
25230
25230
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
@@ -46979,6 +46979,16 @@ var FLAG_REGISTRY = [
|
|
|
46979
46979
|
// Fleet-wide security posture, not an org's choice: an org override must not be able
|
|
46980
46980
|
// to arm or unarm its own keys (CodeRabbit on #7359).
|
|
46981
46981
|
platformAdminOnly: true
|
|
46982
|
+
},
|
|
46983
|
+
{
|
|
46984
|
+
key: "pronto-gl-subledger-filter",
|
|
46985
|
+
description: "ENG-11885 - lets an agent pass `subledger_code` to the Pronto Xi GL transaction tools. OFF (default) = the parameter is not advertised, and a call that names it is refused as not available on this connection. That refusal is NEW for every Pronto agent whatever the flag: before ENG-11885 the argument was silently ignored and the read ran unfiltered (Obi Wan 2b8002a01c14). ON = advertised and sent to Pronto, within the ordinary 7-day range, with every returned row checked to carry the requested subledger (rowsMustMatch), so a Pronto that ignores the filter is refused rather than answering unfiltered. Off until a live read at Pedders proves Pronto filters on it; target that one agent for the test, then widen.",
|
|
46986
|
+
flagType: "boolean",
|
|
46987
|
+
defaultValue: false,
|
|
46988
|
+
// Obi Wan 6d17155b6efa: the key must be REGISTERED, or evaluation ignores every
|
|
46989
|
+
// row for it and the flag can never be on. Platform-admin-only: whether Pronto
|
|
46990
|
+
// honours the filter is unproven, so an org must not switch it on for itself.
|
|
46991
|
+
platformAdminOnly: true
|
|
46982
46992
|
}
|
|
46983
46993
|
];
|
|
46984
46994
|
var REGISTRY_BY_KEY = new Map(FLAG_REGISTRY.map((definition) => [definition.key, definition]));
|
|
@@ -47119,6 +47129,9 @@ Added by Ninjafy, not by the sender: the words above arrived on the live channel
|
|
|
47119
47129
|
function isOperatorInstructionPayload(payload) {
|
|
47120
47130
|
return typeof payload === "object" && payload !== null && payload.kind === "operator_instruction";
|
|
47121
47131
|
}
|
|
47132
|
+
function isKanbanCheckPayload(payload) {
|
|
47133
|
+
return typeof payload === "object" && payload !== null && payload.kind === "kanban_check";
|
|
47134
|
+
}
|
|
47122
47135
|
function formatDirectChatMessages(messages) {
|
|
47123
47136
|
return messages.map((m) => {
|
|
47124
47137
|
if (m.notice) {
|
|
@@ -47286,6 +47299,7 @@ function foldTurnInitiatorLedger(existing, marker, maxAgeMs = TURN_INITIATOR_MAX
|
|
|
47286
47299
|
...marker.chat_kind ? { chat_kind: marker.chat_kind } : {},
|
|
47287
47300
|
...marker.chat_id ? { chat_id: marker.chat_id } : {},
|
|
47288
47301
|
...marker.unattributed ? { unattributed: true } : {},
|
|
47302
|
+
...marker.loop_tick ? { loop_tick: true } : {},
|
|
47289
47303
|
ts: marker.ts
|
|
47290
47304
|
});
|
|
47291
47305
|
kept.sort((a, b) => b.ts - a.ts);
|
|
@@ -47388,8 +47402,11 @@ function writeUnattributedTurnMarker(channel, opts = {}) {
|
|
|
47388
47402
|
updateTurnInitiatorLedger(file, {
|
|
47389
47403
|
channel,
|
|
47390
47404
|
sender_id: "",
|
|
47391
|
-
|
|
47405
|
+
// ENG-11979: its own ledger key. The ledger keeps one entry per (channel, ref),
|
|
47406
|
+
// so a tick sharing a key would overwrite a stricter unattributed notice.
|
|
47407
|
+
channel_ref: opts.loopTick ? "loop-tick" : "unattributed",
|
|
47392
47408
|
unattributed: true,
|
|
47409
|
+
...opts.loopTick ? { loop_tick: true } : {},
|
|
47393
47410
|
ts: opts.now ?? Date.now()
|
|
47394
47411
|
});
|
|
47395
47412
|
} catch {
|
|
@@ -56168,7 +56185,7 @@ async function pollForMessages(sinceMs) {
|
|
|
56168
56185
|
chat_kind: "direct"
|
|
56169
56186
|
});
|
|
56170
56187
|
} else {
|
|
56171
|
-
writeUnattributedTurnMarker("direct-chat");
|
|
56188
|
+
writeUnattributedTurnMarker("direct-chat", { loopTick: isNotice && isKanbanCheckPayload(msg.payload) });
|
|
56172
56189
|
}
|
|
56173
56190
|
if (isNotice) {
|
|
56174
56191
|
try {
|
package/dist/mcp/index.js
CHANGED
|
@@ -32661,6 +32661,16 @@ var FLAG_REGISTRY = [
|
|
|
32661
32661
|
// Fleet-wide security posture, not an org's choice: an org override must not be able
|
|
32662
32662
|
// to arm or unarm its own keys (CodeRabbit on #7359).
|
|
32663
32663
|
platformAdminOnly: true
|
|
32664
|
+
},
|
|
32665
|
+
{
|
|
32666
|
+
key: "pronto-gl-subledger-filter",
|
|
32667
|
+
description: "ENG-11885 - lets an agent pass `subledger_code` to the Pronto Xi GL transaction tools. OFF (default) = the parameter is not advertised, and a call that names it is refused as not available on this connection. That refusal is NEW for every Pronto agent whatever the flag: before ENG-11885 the argument was silently ignored and the read ran unfiltered (Obi Wan 2b8002a01c14). ON = advertised and sent to Pronto, within the ordinary 7-day range, with every returned row checked to carry the requested subledger (rowsMustMatch), so a Pronto that ignores the filter is refused rather than answering unfiltered. Off until a live read at Pedders proves Pronto filters on it; target that one agent for the test, then widen.",
|
|
32668
|
+
flagType: "boolean",
|
|
32669
|
+
defaultValue: false,
|
|
32670
|
+
// Obi Wan 6d17155b6efa: the key must be REGISTERED, or evaluation ignores every
|
|
32671
|
+
// row for it and the flag can never be on. Platform-admin-only: whether Pronto
|
|
32672
|
+
// honours the filter is unproven, so an org must not switch it on for itself.
|
|
32673
|
+
platformAdminOnly: true
|
|
32664
32674
|
}
|
|
32665
32675
|
];
|
|
32666
32676
|
var REGISTRY_BY_KEY = new Map(FLAG_REGISTRY.map((definition) => [definition.key, definition]));
|
|
@@ -37353,10 +37363,11 @@ function readJson(file) {
|
|
|
37353
37363
|
return void 0;
|
|
37354
37364
|
}
|
|
37355
37365
|
}
|
|
37356
|
-
function freshUnattributed(ledger, now, maxAgeMs) {
|
|
37366
|
+
function freshUnattributed(ledger, now, maxAgeMs, newestSenderTs) {
|
|
37357
37367
|
if (!ledger || !Array.isArray(ledger.entries)) return false;
|
|
37358
37368
|
return ledger.entries.some((e) => {
|
|
37359
37369
|
const r = e;
|
|
37370
|
+
if (r?.loop_tick === true && typeof r.ts === "number" && r.ts < newestSenderTs) return false;
|
|
37360
37371
|
return r?.unattributed === true && typeof r.ts === "number" && Number.isFinite(r.ts) && now - r.ts >= 0 && now - r.ts <= maxAgeMs;
|
|
37361
37372
|
});
|
|
37362
37373
|
}
|
|
@@ -37398,7 +37409,8 @@ function readTurnContextUnguarded(opts) {
|
|
|
37398
37409
|
now
|
|
37399
37410
|
);
|
|
37400
37411
|
if (senders.length === 0) return { v: 1, kind: "none" };
|
|
37401
|
-
|
|
37412
|
+
const newestSenderTs = Math.max(...senders.map((s) => s.ts));
|
|
37413
|
+
if (scheduled || freshUnattributed(ledger, now, maxAgeMs, newestSenderTs)) return { v: 1, kind: "ambiguous" };
|
|
37402
37414
|
const latest = [...senders].sort((a, b) => b.ts - a.ts)[0];
|
|
37403
37415
|
const same = senders.every(
|
|
37404
37416
|
(s) => s.channel === latest.channel && s.sender_id === latest.sender_id && s.chat_kind === latest.chat_kind && s.chat_id === latest.chat_id
|
package/dist/mcp/origami.js
CHANGED
|
@@ -46463,6 +46463,16 @@ var FLAG_REGISTRY = [
|
|
|
46463
46463
|
// Fleet-wide security posture, not an org's choice: an org override must not be able
|
|
46464
46464
|
// to arm or unarm its own keys (CodeRabbit on #7359).
|
|
46465
46465
|
platformAdminOnly: true
|
|
46466
|
+
},
|
|
46467
|
+
{
|
|
46468
|
+
key: "pronto-gl-subledger-filter",
|
|
46469
|
+
description: "ENG-11885 - lets an agent pass `subledger_code` to the Pronto Xi GL transaction tools. OFF (default) = the parameter is not advertised, and a call that names it is refused as not available on this connection. That refusal is NEW for every Pronto agent whatever the flag: before ENG-11885 the argument was silently ignored and the read ran unfiltered (Obi Wan 2b8002a01c14). ON = advertised and sent to Pronto, within the ordinary 7-day range, with every returned row checked to carry the requested subledger (rowsMustMatch), so a Pronto that ignores the filter is refused rather than answering unfiltered. Off until a live read at Pedders proves Pronto filters on it; target that one agent for the test, then widen.",
|
|
46470
|
+
flagType: "boolean",
|
|
46471
|
+
defaultValue: false,
|
|
46472
|
+
// Obi Wan 6d17155b6efa: the key must be REGISTERED, or evaluation ignores every
|
|
46473
|
+
// row for it and the flag can never be on. Platform-admin-only: whether Pronto
|
|
46474
|
+
// honours the filter is unproven, so an org must not switch it on for itself.
|
|
46475
|
+
platformAdminOnly: true
|
|
46466
46476
|
}
|
|
46467
46477
|
];
|
|
46468
46478
|
var REGISTRY_BY_KEY = new Map(FLAG_REGISTRY.map((definition) => [definition.key, definition]));
|
|
@@ -41318,6 +41318,16 @@ var FLAG_REGISTRY = [
|
|
|
41318
41318
|
// Fleet-wide security posture, not an org's choice: an org override must not be able
|
|
41319
41319
|
// to arm or unarm its own keys (CodeRabbit on #7359).
|
|
41320
41320
|
platformAdminOnly: true
|
|
41321
|
+
},
|
|
41322
|
+
{
|
|
41323
|
+
key: "pronto-gl-subledger-filter",
|
|
41324
|
+
description: "ENG-11885 - lets an agent pass `subledger_code` to the Pronto Xi GL transaction tools. OFF (default) = the parameter is not advertised, and a call that names it is refused as not available on this connection. That refusal is NEW for every Pronto agent whatever the flag: before ENG-11885 the argument was silently ignored and the read ran unfiltered (Obi Wan 2b8002a01c14). ON = advertised and sent to Pronto, within the ordinary 7-day range, with every returned row checked to carry the requested subledger (rowsMustMatch), so a Pronto that ignores the filter is refused rather than answering unfiltered. Off until a live read at Pedders proves Pronto filters on it; target that one agent for the test, then widen.",
|
|
41325
|
+
flagType: "boolean",
|
|
41326
|
+
defaultValue: false,
|
|
41327
|
+
// Obi Wan 6d17155b6efa: the key must be REGISTERED, or evaluation ignores every
|
|
41328
|
+
// row for it and the flag can never be on. Platform-admin-only: whether Pronto
|
|
41329
|
+
// honours the filter is unproven, so an org must not switch it on for itself.
|
|
41330
|
+
platformAdminOnly: true
|
|
41321
41331
|
}
|
|
41322
41332
|
];
|
|
41323
41333
|
var REGISTRY_BY_KEY = new Map(FLAG_REGISTRY.map((definition) => [definition.key, definition]));
|
|
@@ -44999,6 +45009,7 @@ function foldTurnInitiatorLedger(existing, marker, maxAgeMs = TURN_INITIATOR_MAX
|
|
|
44999
45009
|
...marker.chat_kind ? { chat_kind: marker.chat_kind } : {},
|
|
45000
45010
|
...marker.chat_id ? { chat_id: marker.chat_id } : {},
|
|
45001
45011
|
...marker.unattributed ? { unattributed: true } : {},
|
|
45012
|
+
...marker.loop_tick ? { loop_tick: true } : {},
|
|
45002
45013
|
ts: marker.ts
|
|
45003
45014
|
});
|
|
45004
45015
|
kept.sort((a, b) => b.ts - a.ts);
|
|
@@ -45143,8 +45154,11 @@ function writeUnattributedTurnMarker(channel, opts = {}) {
|
|
|
45143
45154
|
updateTurnInitiatorLedger(file, {
|
|
45144
45155
|
channel,
|
|
45145
45156
|
sender_id: "",
|
|
45146
|
-
|
|
45157
|
+
// ENG-11979: its own ledger key. The ledger keeps one entry per (channel, ref),
|
|
45158
|
+
// so a tick sharing a key would overwrite a stricter unattributed notice.
|
|
45159
|
+
channel_ref: opts.loopTick ? "loop-tick" : "unattributed",
|
|
45147
45160
|
unattributed: true,
|
|
45161
|
+
...opts.loopTick ? { loop_tick: true } : {},
|
|
45148
45162
|
ts: opts.now ?? Date.now()
|
|
45149
45163
|
});
|
|
45150
45164
|
} catch {
|
|
@@ -15428,6 +15428,7 @@ function foldTurnInitiatorLedger(existing, marker, maxAgeMs = TURN_INITIATOR_MAX
|
|
|
15428
15428
|
...marker.chat_kind ? { chat_kind: marker.chat_kind } : {},
|
|
15429
15429
|
...marker.chat_id ? { chat_id: marker.chat_id } : {},
|
|
15430
15430
|
...marker.unattributed ? { unattributed: true } : {},
|
|
15431
|
+
...marker.loop_tick ? { loop_tick: true } : {},
|
|
15431
15432
|
ts: marker.ts
|
|
15432
15433
|
});
|
|
15433
15434
|
kept.sort((a, b) => b.ts - a.ts);
|
|
@@ -15462,8 +15463,11 @@ function writeUnattributedTurnMarker(channel, opts = {}) {
|
|
|
15462
15463
|
updateTurnInitiatorLedger(file, {
|
|
15463
15464
|
channel,
|
|
15464
15465
|
sender_id: "",
|
|
15465
|
-
|
|
15466
|
+
// ENG-11979: its own ledger key. The ledger keeps one entry per (channel, ref),
|
|
15467
|
+
// so a tick sharing a key would overwrite a stricter unattributed notice.
|
|
15468
|
+
channel_ref: opts.loopTick ? "loop-tick" : "unattributed",
|
|
15466
15469
|
unattributed: true,
|
|
15470
|
+
...opts.loopTick ? { loop_tick: true } : {},
|
|
15467
15471
|
ts: opts.now ?? Date.now()
|
|
15468
15472
|
});
|
|
15469
15473
|
} catch {
|
|
@@ -41509,6 +41509,16 @@ var FLAG_REGISTRY = [
|
|
|
41509
41509
|
// Fleet-wide security posture, not an org's choice: an org override must not be able
|
|
41510
41510
|
// to arm or unarm its own keys (CodeRabbit on #7359).
|
|
41511
41511
|
platformAdminOnly: true
|
|
41512
|
+
},
|
|
41513
|
+
{
|
|
41514
|
+
key: "pronto-gl-subledger-filter",
|
|
41515
|
+
description: "ENG-11885 - lets an agent pass `subledger_code` to the Pronto Xi GL transaction tools. OFF (default) = the parameter is not advertised, and a call that names it is refused as not available on this connection. That refusal is NEW for every Pronto agent whatever the flag: before ENG-11885 the argument was silently ignored and the read ran unfiltered (Obi Wan 2b8002a01c14). ON = advertised and sent to Pronto, within the ordinary 7-day range, with every returned row checked to carry the requested subledger (rowsMustMatch), so a Pronto that ignores the filter is refused rather than answering unfiltered. Off until a live read at Pedders proves Pronto filters on it; target that one agent for the test, then widen.",
|
|
41516
|
+
flagType: "boolean",
|
|
41517
|
+
defaultValue: false,
|
|
41518
|
+
// Obi Wan 6d17155b6efa: the key must be REGISTERED, or evaluation ignores every
|
|
41519
|
+
// row for it and the flag can never be on. Platform-admin-only: whether Pronto
|
|
41520
|
+
// honours the filter is unproven, so an org must not switch it on for itself.
|
|
41521
|
+
platformAdminOnly: true
|
|
41512
41522
|
}
|
|
41513
41523
|
];
|
|
41514
41524
|
var REGISTRY_BY_KEY = new Map(FLAG_REGISTRY.map((definition) => [definition.key, definition]));
|
|
@@ -41627,6 +41637,7 @@ function foldTurnInitiatorLedger(existing, marker, maxAgeMs = TURN_INITIATOR_MAX
|
|
|
41627
41637
|
...marker.chat_kind ? { chat_kind: marker.chat_kind } : {},
|
|
41628
41638
|
...marker.chat_id ? { chat_id: marker.chat_id } : {},
|
|
41629
41639
|
...marker.unattributed ? { unattributed: true } : {},
|
|
41640
|
+
...marker.loop_tick ? { loop_tick: true } : {},
|
|
41630
41641
|
ts: marker.ts
|
|
41631
41642
|
});
|
|
41632
41643
|
kept.sort((a, b) => b.ts - a.ts);
|
|
@@ -41729,8 +41740,11 @@ function writeUnattributedTurnMarker(channel, opts = {}) {
|
|
|
41729
41740
|
updateTurnInitiatorLedger(file, {
|
|
41730
41741
|
channel,
|
|
41731
41742
|
sender_id: "",
|
|
41732
|
-
|
|
41743
|
+
// ENG-11979: its own ledger key. The ledger keeps one entry per (channel, ref),
|
|
41744
|
+
// so a tick sharing a key would overwrite a stricter unattributed notice.
|
|
41745
|
+
channel_ref: opts.loopTick ? "loop-tick" : "unattributed",
|
|
41733
41746
|
unattributed: true,
|
|
41747
|
+
...opts.loopTick ? { loop_tick: true } : {},
|
|
41734
41748
|
ts: opts.now ?? Date.now()
|
|
41735
41749
|
});
|
|
41736
41750
|
} catch {
|
|
@@ -161256,6 +161256,7 @@ function foldTurnInitiatorLedger(existing, marker, maxAgeMs = TURN_INITIATOR_MAX
|
|
|
161256
161256
|
...marker.chat_kind ? { chat_kind: marker.chat_kind } : {},
|
|
161257
161257
|
...marker.chat_id ? { chat_id: marker.chat_id } : {},
|
|
161258
161258
|
...marker.unattributed ? { unattributed: true } : {},
|
|
161259
|
+
...marker.loop_tick ? { loop_tick: true } : {},
|
|
161259
161260
|
ts: marker.ts
|
|
161260
161261
|
});
|
|
161261
161262
|
kept.sort((a, b) => b.ts - a.ts);
|
|
@@ -161290,8 +161291,11 @@ function writeUnattributedTurnMarker(channel, opts = {}) {
|
|
|
161290
161291
|
updateTurnInitiatorLedger(file, {
|
|
161291
161292
|
channel,
|
|
161292
161293
|
sender_id: "",
|
|
161293
|
-
|
|
161294
|
+
// ENG-11979: its own ledger key. The ledger keeps one entry per (channel, ref),
|
|
161295
|
+
// so a tick sharing a key would overwrite a stricter unattributed notice.
|
|
161296
|
+
channel_ref: opts.loopTick ? "loop-tick" : "unattributed",
|
|
161294
161297
|
unattributed: true,
|
|
161298
|
+
...opts.loopTick ? { loop_tick: true } : {},
|
|
161295
161299
|
ts: opts.now ?? Date.now()
|
|
161296
161300
|
});
|
|
161297
161301
|
} catch {
|
|
@@ -68,12 +68,12 @@ import {
|
|
|
68
68
|
writeDirectChatSessionState,
|
|
69
69
|
writeEgressAllowlist,
|
|
70
70
|
writePersistentClaudeWrapper
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import "./chunk-
|
|
71
|
+
} from "./chunk-BFQKF46D.js";
|
|
72
|
+
import "./chunk-KJAY4IUW.js";
|
|
73
73
|
import "./chunk-HYQ7VOC3.js";
|
|
74
74
|
import "./chunk-6HBXEJHO.js";
|
|
75
75
|
import "./chunk-XWVM4KPK.js";
|
|
76
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-IRIZBER7.js";
|
|
77
77
|
import "./chunk-AIUIMEUS.js";
|
|
78
78
|
import "./chunk-DGUM43GV.js";
|
|
79
79
|
export {
|
|
@@ -147,4 +147,4 @@ export {
|
|
|
147
147
|
writeEgressAllowlist,
|
|
148
148
|
writePersistentClaudeWrapper
|
|
149
149
|
};
|
|
150
|
-
//# sourceMappingURL=persistent-session-
|
|
150
|
+
//# sourceMappingURL=persistent-session-73LJPKT2.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-BFQKF46D.js";
|
|
4
|
+
import "./chunk-KJAY4IUW.js";
|
|
5
5
|
import "./chunk-HYQ7VOC3.js";
|
|
6
6
|
import "./chunk-6HBXEJHO.js";
|
|
7
7
|
import "./chunk-XWVM4KPK.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-IRIZBER7.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-QVIGL5BH.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionTranscriptDir
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-KJAY4IUW.js";
|
|
4
|
+
import "./chunk-IRIZBER7.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-XLWG3MJF.js.map
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|