@integrity-labs/agt-cli 0.28.1251 → 0.28.1252
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-ECOBF6BM.js → api-client-6A36YH3M.js} +3 -3
- package/dist/bin/agt.js +7 -7
- package/dist/{chunk-O6WRX5FE.js → chunk-3HRBU4H6.js} +3 -3
- package/dist/{chunk-VOMOPWFI.js → chunk-4VOQ6D7X.js} +2 -2
- package/dist/{chunk-2VGFSHFP.js → chunk-5ZNYCNMI.js} +3 -3
- package/dist/{chunk-6KY5FKXC.js → chunk-RUKGOBVA.js} +23 -1
- package/dist/{chunk-6KY5FKXC.js.map → chunk-RUKGOBVA.js.map} +1 -1
- package/dist/{chunk-4AUE34MF.js → chunk-S3DUSCWR.js} +5 -5
- package/dist/{chunk-OAAKFU3J.js → chunk-XTFVVZIR.js} +2 -2
- package/dist/{claude-code-updater-2TZ4TSOB.js → claude-code-updater-WSQTK6TQ.js} +3 -3
- package/dist/{claude-pair-runtime-CTJCJNK4.js → claude-pair-runtime-WWF5BCK3.js} +3 -3
- package/dist/lib/manager-worker.js +21 -21
- package/dist/mcp/direct-chat-channel.js +87 -4
- package/dist/mcp/index.js +22 -0
- package/dist/mcp/origami.js +22 -0
- package/dist/mcp/slack-channel.js +22 -0
- package/dist/mcp/telegram-channel.js +22 -0
- package/dist/{persistent-session-TBE4KP4K.js → persistent-session-HS33PGZZ.js} +4 -4
- package/dist/{responsiveness-probe-J7DA3AB4.js → responsiveness-probe-32AWSVSL.js} +4 -4
- package/dist/{session-auth-dead-OL5ODQRN.js → session-auth-dead-2L2NLMMB.js} +3 -3
- package/package.json +1 -1
- /package/dist/{api-client-ECOBF6BM.js.map → api-client-6A36YH3M.js.map} +0 -0
- /package/dist/{chunk-O6WRX5FE.js.map → chunk-3HRBU4H6.js.map} +0 -0
- /package/dist/{chunk-VOMOPWFI.js.map → chunk-4VOQ6D7X.js.map} +0 -0
- /package/dist/{chunk-2VGFSHFP.js.map → chunk-5ZNYCNMI.js.map} +0 -0
- /package/dist/{chunk-4AUE34MF.js.map → chunk-S3DUSCWR.js.map} +0 -0
- /package/dist/{chunk-OAAKFU3J.js.map → chunk-XTFVVZIR.js.map} +0 -0
- /package/dist/{claude-code-updater-2TZ4TSOB.js.map → claude-code-updater-WSQTK6TQ.js.map} +0 -0
- /package/dist/{claude-pair-runtime-CTJCJNK4.js.map → claude-pair-runtime-WWF5BCK3.js.map} +0 -0
- /package/dist/{persistent-session-TBE4KP4K.js.map → persistent-session-HS33PGZZ.js.map} +0 -0
- /package/dist/{responsiveness-probe-J7DA3AB4.js.map → responsiveness-probe-32AWSVSL.js.map} +0 -0
- /package/dist/{session-auth-dead-OL5ODQRN.js.map → session-auth-dead-2L2NLMMB.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
exchangeApiKey,
|
|
3
3
|
getApiKey,
|
|
4
4
|
getHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5ZNYCNMI.js";
|
|
6
6
|
import {
|
|
7
7
|
LATE_BOUND_VARS,
|
|
8
8
|
PLATFORM_DENY_PERMISSIONS,
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
requiresRemoteMcpToolGate,
|
|
24
24
|
shellQuote,
|
|
25
25
|
withheldRemoteMcpMessage
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-3HRBU4H6.js";
|
|
27
27
|
import {
|
|
28
28
|
readDailySessionPin,
|
|
29
29
|
sessionTranscriptDir
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-4VOQ6D7X.js";
|
|
31
31
|
import {
|
|
32
32
|
classifyUnanswerablePane,
|
|
33
33
|
isConsumerTermsDialogVisible,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
scanConfigForLiteralSecrets,
|
|
100
100
|
worseConnectivityOutcome,
|
|
101
101
|
wrapScheduledTaskPrompt
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-RUKGOBVA.js";
|
|
103
103
|
import {
|
|
104
104
|
claudeJsonPathFor,
|
|
105
105
|
effectiveClaudeJsonPath,
|
|
@@ -13347,4 +13347,4 @@ export {
|
|
|
13347
13347
|
managerInstallSystemUnitCommand,
|
|
13348
13348
|
managerUninstallSystemUnitCommand
|
|
13349
13349
|
};
|
|
13350
|
-
//# sourceMappingURL=chunk-
|
|
13350
|
+
//# sourceMappingURL=chunk-S3DUSCWR.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-RUKGOBVA.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-XTFVVZIR.js.map
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
probeClaudeInstalls,
|
|
14
14
|
readsAsNativeInstall,
|
|
15
15
|
shouldRunClaudeCodeUpdater
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XTFVVZIR.js";
|
|
17
17
|
import "./chunk-XWVM4KPK.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-RUKGOBVA.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-WSQTK6TQ.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
redactPaneFrame,
|
|
10
10
|
sanitizeTerminalFrame
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RUKGOBVA.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-HS33PGZZ.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-WWF5BCK3.js.map
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
tripClass,
|
|
70
70
|
writeEtcEnvironment,
|
|
71
71
|
writeProfileDScript
|
|
72
|
-
} from "../chunk-
|
|
72
|
+
} from "../chunk-S3DUSCWR.js";
|
|
73
73
|
import {
|
|
74
74
|
ApiError,
|
|
75
75
|
adoptHostKeyInProcess,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
probeHostKey,
|
|
88
88
|
requireHost,
|
|
89
89
|
setConfigHash
|
|
90
|
-
} from "../chunk-
|
|
90
|
+
} from "../chunk-5ZNYCNMI.js";
|
|
91
91
|
import {
|
|
92
92
|
BLOCKED_ON_PROMPT_DECISION,
|
|
93
93
|
CHANNEL_SECRET_ENV_KEYS,
|
|
@@ -171,7 +171,7 @@ import {
|
|
|
171
171
|
webFetchBaselineValue,
|
|
172
172
|
webFetchRestartNeeded,
|
|
173
173
|
writeEgressAllowlist
|
|
174
|
-
} from "../chunk-
|
|
174
|
+
} from "../chunk-3HRBU4H6.js";
|
|
175
175
|
import {
|
|
176
176
|
isAgentIdle,
|
|
177
177
|
isStaleForToday,
|
|
@@ -182,7 +182,7 @@ import {
|
|
|
182
182
|
subagentActivityAgeSeconds,
|
|
183
183
|
subagentTranscriptDir,
|
|
184
184
|
transcriptActivityAgeSeconds
|
|
185
|
-
} from "../chunk-
|
|
185
|
+
} from "../chunk-4VOQ6D7X.js";
|
|
186
186
|
import {
|
|
187
187
|
classifyUnanswerablePane,
|
|
188
188
|
focusedConfirmDialogBlock,
|
|
@@ -206,7 +206,7 @@ import {
|
|
|
206
206
|
runSafeCleanup,
|
|
207
207
|
tightestDiskStat,
|
|
208
208
|
withPackageCacheLock
|
|
209
|
-
} from "../chunk-
|
|
209
|
+
} from "../chunk-XTFVVZIR.js";
|
|
210
210
|
import {
|
|
211
211
|
parsePsRows,
|
|
212
212
|
reapOrphanChannelMcps
|
|
@@ -333,7 +333,7 @@ import {
|
|
|
333
333
|
stabiliseResetInstant,
|
|
334
334
|
sumTranscriptUsageInWindow,
|
|
335
335
|
summarizeTranscriptActivity
|
|
336
|
-
} from "../chunk-
|
|
336
|
+
} from "../chunk-RUKGOBVA.js";
|
|
337
337
|
import {
|
|
338
338
|
CLAUDE_CONFIG_DIR_ENV,
|
|
339
339
|
claudeConfigDirFor,
|
|
@@ -14133,7 +14133,7 @@ function createFileMigrationReportIO(codeName, log2) {
|
|
|
14133
14133
|
};
|
|
14134
14134
|
}
|
|
14135
14135
|
var managerHostPost = async (path, body) => {
|
|
14136
|
-
const { api: api2, ApiError: ApiError3 } = await import("../api-client-
|
|
14136
|
+
const { api: api2, ApiError: ApiError3 } = await import("../api-client-6A36YH3M.js");
|
|
14137
14137
|
try {
|
|
14138
14138
|
const json = await api2.post(path, body);
|
|
14139
14139
|
return { status: 200, json };
|
|
@@ -16172,7 +16172,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
16172
16172
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
16173
16173
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
16174
16174
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
16175
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
16175
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-32AWSVSL.js");
|
|
16176
16176
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
16177
16177
|
if (newest === null) return null;
|
|
16178
16178
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -16988,7 +16988,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
16988
16988
|
var lastVersionCheckAt = 0;
|
|
16989
16989
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
16990
16990
|
var lastResponsivenessProbeAt = 0;
|
|
16991
|
-
var agtCliVersion = true ? "0.28.
|
|
16991
|
+
var agtCliVersion = true ? "0.28.1252" : "dev";
|
|
16992
16992
|
function resolveBrewPath(execFileSync4) {
|
|
16993
16993
|
try {
|
|
16994
16994
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -18987,7 +18987,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
18987
18987
|
if (codeNames.length === 0) return;
|
|
18988
18988
|
void (async () => {
|
|
18989
18989
|
try {
|
|
18990
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
18990
|
+
const { collectDiagnostics } = await import("../persistent-session-HS33PGZZ.js");
|
|
18991
18991
|
await api.post("/host/heartbeat", {
|
|
18992
18992
|
host_id: hostId,
|
|
18993
18993
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -19130,7 +19130,7 @@ async function pollCycleInner() {
|
|
|
19130
19130
|
}
|
|
19131
19131
|
try {
|
|
19132
19132
|
const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
|
|
19133
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19133
|
+
const { collectDiagnostics } = await import("../persistent-session-HS33PGZZ.js");
|
|
19134
19134
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
19135
19135
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
|
|
19136
19136
|
let tailscaleHostname;
|
|
@@ -19395,7 +19395,7 @@ async function pollCycleInner() {
|
|
|
19395
19395
|
}
|
|
19396
19396
|
try {
|
|
19397
19397
|
const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
|
|
19398
|
-
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-
|
|
19398
|
+
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-WSQTK6TQ.js");
|
|
19399
19399
|
const securityFloor = currentSecurityFloor();
|
|
19400
19400
|
claudeUpdaterInFlight = true;
|
|
19401
19401
|
if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
|
|
@@ -19430,7 +19430,7 @@ async function pollCycleInner() {
|
|
|
19430
19430
|
collectPanelessActivityProbes,
|
|
19431
19431
|
getResponsivenessIntervalMs,
|
|
19432
19432
|
occupancyQualificationClassifications
|
|
19433
|
-
} = await import("../responsiveness-probe-
|
|
19433
|
+
} = await import("../responsiveness-probe-32AWSVSL.js");
|
|
19434
19434
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
19435
19435
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
19436
19436
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -19547,7 +19547,7 @@ async function pollCycleInner() {
|
|
|
19547
19547
|
collectResponsivenessProbes,
|
|
19548
19548
|
livePendingInboundOldestAgeSeconds,
|
|
19549
19549
|
parkPendingInbound
|
|
19550
|
-
} = await import("../responsiveness-probe-
|
|
19550
|
+
} = await import("../responsiveness-probe-32AWSVSL.js");
|
|
19551
19551
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
|
|
19552
19552
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
19553
19553
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -19833,7 +19833,7 @@ async function pollCycleInner() {
|
|
|
19833
19833
|
}
|
|
19834
19834
|
}
|
|
19835
19835
|
);
|
|
19836
|
-
const { parkPendingInbound } = await import("../responsiveness-probe-
|
|
19836
|
+
const { parkPendingInbound } = await import("../responsiveness-probe-32AWSVSL.js");
|
|
19837
19837
|
const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
|
|
19838
19838
|
paneFatalStreak.delete(codeName);
|
|
19839
19839
|
paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
|
|
@@ -19864,7 +19864,7 @@ async function pollCycleInner() {
|
|
|
19864
19864
|
TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
|
|
19865
19865
|
bindSourceEscalations
|
|
19866
19866
|
} = await import("../transcript-mount-health-OHE6IVJV.js");
|
|
19867
|
-
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-
|
|
19867
|
+
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-HS33PGZZ.js");
|
|
19868
19868
|
const mountConfig = resolveTranscriptMountConfig();
|
|
19869
19869
|
const liveAgents = agentState.persistentSessionAgents;
|
|
19870
19870
|
for (const tracked of [
|
|
@@ -20029,7 +20029,7 @@ async function pollCycleInner() {
|
|
|
20029
20029
|
}
|
|
20030
20030
|
try {
|
|
20031
20031
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
|
|
20032
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
20032
|
+
const { probeSessionAuth } = await import("../session-auth-dead-2L2NLMMB.js");
|
|
20033
20033
|
const observations = [];
|
|
20034
20034
|
const pendingCacheCommits = [];
|
|
20035
20035
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -24957,7 +24957,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
24957
24957
|
if (!refreshData) return;
|
|
24958
24958
|
const framework = refreshData.agent?.framework ?? agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK;
|
|
24959
24959
|
const hostId = await getHostId();
|
|
24960
|
-
const parkForRestart = await import("../responsiveness-probe-
|
|
24960
|
+
const parkForRestart = await import("../responsiveness-probe-32AWSVSL.js").then(
|
|
24961
24961
|
(m) => m.parkPendingInbound,
|
|
24962
24962
|
(err) => err
|
|
24963
24963
|
);
|
|
@@ -25030,7 +25030,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
25030
25030
|
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}`));
|
|
25031
25031
|
void (async () => {
|
|
25032
25032
|
try {
|
|
25033
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
25033
|
+
const { collectDiagnostics } = await import("../persistent-session-HS33PGZZ.js");
|
|
25034
25034
|
await api.post("/host/heartbeat", {
|
|
25035
25035
|
host_id: hostId,
|
|
25036
25036
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -25081,7 +25081,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
25081
25081
|
}
|
|
25082
25082
|
try {
|
|
25083
25083
|
const hostId = await getHostId();
|
|
25084
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
25084
|
+
const { collectDiagnostics } = await import("../persistent-session-HS33PGZZ.js");
|
|
25085
25085
|
await api.post("/host/heartbeat", {
|
|
25086
25086
|
host_id: hostId,
|
|
25087
25087
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -25783,7 +25783,7 @@ async function processClaudePairSessions(agents) {
|
|
|
25783
25783
|
snapshotPairConfig,
|
|
25784
25784
|
// ENG-11659: result -> report body + the manager.log line that records it.
|
|
25785
25785
|
planPairStartReport
|
|
25786
|
-
} = await import("../claude-pair-runtime-
|
|
25786
|
+
} = await import("../claude-pair-runtime-WWF5BCK3.js");
|
|
25787
25787
|
const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
|
|
25788
25788
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
25789
25789
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
@@ -46494,6 +46494,28 @@ var FLAG_REGISTRY = [
|
|
|
46494
46494
|
// edec921a519f); THREATS_FOUND rows stay hidden either way.
|
|
46495
46495
|
defaultValue: false
|
|
46496
46496
|
},
|
|
46497
|
+
{
|
|
46498
|
+
key: "direct-chat-extracted-text",
|
|
46499
|
+
// ENG-11967 part 2b. Read stage-wide only (empty scope), like
|
|
46500
|
+
// direct-chat-malware-scan: a scoped override would do nothing.
|
|
46501
|
+
stageWideOnly: true,
|
|
46502
|
+
sensitive: true,
|
|
46503
|
+
description: `Serve a Direct Chat PDF or DOCX to the agent as its EXTRACTED TEXT instead of the raw file (ENG-11967 part 2b, Sherlock ruling (a)). off = today: the agent gets the raw file (scan-gated). hold-30s / hold-60s / hold-120s = armed, and the value is the HOLD CAP: the agent poll does not claim a message whose text is not ready yet for up to that long, and holds the rest of its session with it so order is kept. Holds chain: a message also waits for every document sent after it in the same session, so its delay is bounded by the cap measured from the LAST document in a run of sends, not from its own send. Ready text is delivered as <name>.txt. If extraction finished without text, or died, the message is released at once with "text extraction unavailable for <name> (couldn't read the file)" or "(timed out)"; at the cap it is released with "(timed out)" and the release is logged. Takes effect only while direct-chat-malware-scan is on, because extraction runs on GuardDuty's clean-scan event. ARM ONLY AFTER DIRECT_CHAT_TEXT_EXTRACTION=true has deployed the DirectChatTextExtract Lambda: armed without it, every PDF/DOCX waits out the cap and arrives as a timed-out notice. A flag-store read error counts as off on this read path. GLOBAL ONLY: evaluated with an empty context, so scoped overrides have no effect.`,
|
|
46504
|
+
flagType: "enum",
|
|
46505
|
+
allowedValues: ["off", "hold-30s", "hold-60s", "hold-120s"],
|
|
46506
|
+
// Off is the pre-2b behaviour: no hold, no .txt read, the raw file.
|
|
46507
|
+
defaultValue: "off",
|
|
46508
|
+
// The flag is evaluated server-side, but its notice entries need the host's
|
|
46509
|
+
// direct-chat MCP to render them: an older agt-cli shows a notice as
|
|
46510
|
+
// "download failed; ask the user to re-send", which sends users in circles
|
|
46511
|
+
// (Sherlock, 13 Nov). So the flip-reach modal must count hosts by the CLI
|
|
46512
|
+
// that renders notices. DELIBERATE UNREACHABLE PLACEHOLDER until this PR
|
|
46513
|
+
// merges and "Publish CLI on adapter changes (main)" publishes the first
|
|
46514
|
+
// agt-cli carrying the MCP change: replace it with that exact version in a
|
|
46515
|
+
// one-line follow-up, and arm only when the modal shows 0 stale and 0
|
|
46516
|
+
// unknown hosts. A placeholder over-reports stale hosts; it never hides one.
|
|
46517
|
+
since: "0.29.0"
|
|
46518
|
+
},
|
|
46497
46519
|
{
|
|
46498
46520
|
key: "platform-held-key-central-probe",
|
|
46499
46521
|
description: "Arm the scheduled CENTRAL connectivity probe lane for platform-held-key integrations (ENG-10086). These store no customer credential (auth_type none), so the host cannot probe them and reports unverified forever. When on, the hourly PlatformHeldKeyProbe cron runs each central probe that exists (today only ninjafy-notes: org entitlement + broker routing, never note contents) and writes the result through the monitor observation path, so consecutive_connectivity_failures / _ok_cycles move and integration_down alerts can open and close on it. Definitions with no central probe are skipped, never written as a failure. When off the cron reads nothing and writes nothing. Boolean gate; ships dark because a new writer of the escalation counters is a paging change. GLOBAL ONLY: the cron and the host connectivity route both evaluate this flag with an empty context, so an org-, team- or agent-scoped override is stored but has NO effect. Arm it by its global value, not as a staged per-org rollout (Obi Wan 63053d02035e).",
|
|
@@ -48828,6 +48850,40 @@ async function fetchWithTimeout(input, init, timeoutMs, fetchImpl = fetch) {
|
|
|
48828
48850
|
clearTimeout(timer);
|
|
48829
48851
|
}
|
|
48830
48852
|
}
|
|
48853
|
+
var HELD_RETRY_MIN_MS = 1e3;
|
|
48854
|
+
var HELD_RETRY_MAX_MS = 3e4;
|
|
48855
|
+
function heldRetryDelayMs(value) {
|
|
48856
|
+
if (typeof value !== "number" || !Number.isFinite(value) || value <= 0) return null;
|
|
48857
|
+
return Math.min(HELD_RETRY_MAX_MS, Math.max(HELD_RETRY_MIN_MS, Math.round(value)));
|
|
48858
|
+
}
|
|
48859
|
+
var PollFollowUps = class {
|
|
48860
|
+
constructor(schedule, cancel) {
|
|
48861
|
+
this.schedule = schedule;
|
|
48862
|
+
this.cancel = cancel;
|
|
48863
|
+
}
|
|
48864
|
+
requested = null;
|
|
48865
|
+
retryTimer = null;
|
|
48866
|
+
/** A poll was requested but skipped because another was in flight. */
|
|
48867
|
+
noteSkipped(sinceMs) {
|
|
48868
|
+
this.requested = typeof sinceMs === "number" ? { sinceMs } : {};
|
|
48869
|
+
}
|
|
48870
|
+
/** Call when a poll finishes, with the server's retry_after_ms (if any). */
|
|
48871
|
+
afterPoll(run, sinceMs, retryAfterMs) {
|
|
48872
|
+
const owed = this.requested;
|
|
48873
|
+
this.requested = null;
|
|
48874
|
+
if (owed) {
|
|
48875
|
+
this.schedule(() => run(owed.sinceMs), 0);
|
|
48876
|
+
return;
|
|
48877
|
+
}
|
|
48878
|
+
const delay = heldRetryDelayMs(retryAfterMs);
|
|
48879
|
+
if (delay === null) return;
|
|
48880
|
+
if (this.retryTimer !== null) this.cancel(this.retryTimer);
|
|
48881
|
+
this.retryTimer = this.schedule(() => {
|
|
48882
|
+
this.retryTimer = null;
|
|
48883
|
+
run(sinceMs);
|
|
48884
|
+
}, delay);
|
|
48885
|
+
}
|
|
48886
|
+
};
|
|
48831
48887
|
|
|
48832
48888
|
// src/mcp-spawn-lock.ts
|
|
48833
48889
|
import {
|
|
@@ -54234,6 +54290,12 @@ function buildAttachmentAnnotation(items) {
|
|
|
54234
54290
|
const lines = items.map((a) => {
|
|
54235
54291
|
if (a.archive || isZipAttachment(a.content_type, a.filename)) return archiveAnnotationLines(a);
|
|
54236
54292
|
if (a.email || emailParseType(a.content_type, a.filename)) return emailAnnotationLines(a);
|
|
54293
|
+
if (a.unavailable) {
|
|
54294
|
+
return `- ${sanitizeAttachmentLabel(a.filename)} - ${oneLine(a.unavailable, 400) || "text extraction unavailable"}. You were not given this file; ask the user to paste the part you need.`;
|
|
54295
|
+
}
|
|
54296
|
+
if (a.extractedTextOf && a.path) {
|
|
54297
|
+
return `- ${sanitizeAttachmentLabel(a.extractedTextOf)} (text extracted from it, ${formatBytes(a.byte_size)}) - downloaded to ${a.path}. Read it to inspect the document; the original file was not delivered.`;
|
|
54298
|
+
}
|
|
54237
54299
|
const head = `- ${sanitizeAttachmentLabel(a.filename)} (${a.content_type}, ${formatBytes(a.byte_size)})`;
|
|
54238
54300
|
if (a.path) {
|
|
54239
54301
|
return a.isImage ? `${head} - downloaded to ${a.path}. Read it to view the image.` : `${head} - downloaded to ${a.path}. Read it to inspect the file.`;
|
|
@@ -54353,13 +54415,17 @@ async function downloadInboundAttachment(att, dir, deps) {
|
|
|
54353
54415
|
filename: att.filename,
|
|
54354
54416
|
content_type: att.content_type,
|
|
54355
54417
|
byte_size: att.byte_size,
|
|
54356
|
-
isImage: isImageContentType(att.content_type)
|
|
54418
|
+
isImage: isImageContentType(att.content_type),
|
|
54419
|
+
...att.extracted_text_of ? { extractedTextOf: att.extracted_text_of } : {}
|
|
54357
54420
|
};
|
|
54421
|
+
if (att.extraction_unavailable) return { ...base, unavailable: att.extraction_unavailable };
|
|
54422
|
+
if (!att.download_url) return { ...base, error: "no download link was provided" };
|
|
54358
54423
|
if (att.byte_size > MAX_INBOUND_ATTACHMENT_BYTES) {
|
|
54359
54424
|
return { ...base, error: OVER_CAP_ERROR };
|
|
54360
54425
|
}
|
|
54426
|
+
const downloadUrl = att.download_url;
|
|
54361
54427
|
try {
|
|
54362
|
-
const res = await deps.fetchUrl(
|
|
54428
|
+
const res = await deps.fetchUrl(downloadUrl, att.byte_size);
|
|
54363
54429
|
if (!res.ok) {
|
|
54364
54430
|
let s3Body = "";
|
|
54365
54431
|
try {
|
|
@@ -54368,7 +54434,7 @@ async function downloadInboundAttachment(att, dir, deps) {
|
|
|
54368
54434
|
} catch {
|
|
54369
54435
|
}
|
|
54370
54436
|
deps.warn(
|
|
54371
|
-
`direct-chat inbound download HTTP ${res.status} for ${att.filename} url=${redactPresignSignature(
|
|
54437
|
+
`direct-chat inbound download HTTP ${res.status} for ${att.filename} url=${redactPresignSignature(downloadUrl)} s3Body=${s3Body}`
|
|
54372
54438
|
);
|
|
54373
54439
|
return { ...base, error: `download HTTP ${res.status}` };
|
|
54374
54440
|
}
|
|
@@ -56396,6 +56462,15 @@ function armUsageLimitWatch(args) {
|
|
|
56396
56462
|
}
|
|
56397
56463
|
})();
|
|
56398
56464
|
}
|
|
56465
|
+
var lastPollRetryAfterMs = void 0;
|
|
56466
|
+
var pollFollowUps = new PollFollowUps(
|
|
56467
|
+
(fn, ms) => {
|
|
56468
|
+
const t = setTimeout(fn, ms);
|
|
56469
|
+
t.unref?.();
|
|
56470
|
+
return t;
|
|
56471
|
+
},
|
|
56472
|
+
(t) => clearTimeout(t)
|
|
56473
|
+
);
|
|
56399
56474
|
async function pollForMessages(sinceMs) {
|
|
56400
56475
|
let pushPendingId = null;
|
|
56401
56476
|
try {
|
|
@@ -56418,6 +56493,7 @@ async function pollForMessages(sinceMs) {
|
|
|
56418
56493
|
for (let i = 0; i < 250; i++) processedIds.delete(ids[i]);
|
|
56419
56494
|
}
|
|
56420
56495
|
};
|
|
56496
|
+
lastPollRetryAfterMs = data.retry_after_ms;
|
|
56421
56497
|
for (const msg of data.messages ?? []) {
|
|
56422
56498
|
if (processedIds.has(msg.id)) continue;
|
|
56423
56499
|
const isNotice = msg.kind === "notice";
|
|
@@ -56682,7 +56758,10 @@ var DOORBELL_FILE = "direct-chat-doorbell";
|
|
|
56682
56758
|
var pollGuard = { inFlight: false, inFlightSinceMs: null, leaseUntilMs: null };
|
|
56683
56759
|
async function pollOnce(sinceMs) {
|
|
56684
56760
|
const decision = evaluatePollGuard(pollGuard, Date.now(), POLL_STUCK_MS);
|
|
56685
|
-
if (!decision.run)
|
|
56761
|
+
if (!decision.run) {
|
|
56762
|
+
pollFollowUps.noteSkipped(sinceMs);
|
|
56763
|
+
return { ran: false, ok: false };
|
|
56764
|
+
}
|
|
56686
56765
|
if (decision.stuck) {
|
|
56687
56766
|
process.stderr.write(
|
|
56688
56767
|
`direct-chat-channel: previous poll wedged >${POLL_STUCK_MS}ms \u2014 superseding so the pull loop self-heals
|
|
@@ -56691,6 +56770,7 @@ async function pollOnce(sinceMs) {
|
|
|
56691
56770
|
}
|
|
56692
56771
|
pollGuard.inFlight = true;
|
|
56693
56772
|
pollGuard.inFlightSinceMs = Date.now();
|
|
56773
|
+
lastPollRetryAfterMs = void 0;
|
|
56694
56774
|
try {
|
|
56695
56775
|
const ok = await pollForMessages(sinceMs);
|
|
56696
56776
|
return { ran: true, ok };
|
|
@@ -56698,6 +56778,9 @@ async function pollOnce(sinceMs) {
|
|
|
56698
56778
|
pollGuard.inFlight = false;
|
|
56699
56779
|
pollGuard.inFlightSinceMs = null;
|
|
56700
56780
|
pollGuard.leaseUntilMs = null;
|
|
56781
|
+
pollFollowUps.afterPoll((s) => {
|
|
56782
|
+
void pollOnce(s);
|
|
56783
|
+
}, sinceMs, lastPollRetryAfterMs);
|
|
56701
56784
|
}
|
|
56702
56785
|
}
|
|
56703
56786
|
var doorbellWatcher = null;
|
package/dist/mcp/index.js
CHANGED
|
@@ -32176,6 +32176,28 @@ var FLAG_REGISTRY = [
|
|
|
32176
32176
|
// edec921a519f); THREATS_FOUND rows stay hidden either way.
|
|
32177
32177
|
defaultValue: false
|
|
32178
32178
|
},
|
|
32179
|
+
{
|
|
32180
|
+
key: "direct-chat-extracted-text",
|
|
32181
|
+
// ENG-11967 part 2b. Read stage-wide only (empty scope), like
|
|
32182
|
+
// direct-chat-malware-scan: a scoped override would do nothing.
|
|
32183
|
+
stageWideOnly: true,
|
|
32184
|
+
sensitive: true,
|
|
32185
|
+
description: `Serve a Direct Chat PDF or DOCX to the agent as its EXTRACTED TEXT instead of the raw file (ENG-11967 part 2b, Sherlock ruling (a)). off = today: the agent gets the raw file (scan-gated). hold-30s / hold-60s / hold-120s = armed, and the value is the HOLD CAP: the agent poll does not claim a message whose text is not ready yet for up to that long, and holds the rest of its session with it so order is kept. Holds chain: a message also waits for every document sent after it in the same session, so its delay is bounded by the cap measured from the LAST document in a run of sends, not from its own send. Ready text is delivered as <name>.txt. If extraction finished without text, or died, the message is released at once with "text extraction unavailable for <name> (couldn't read the file)" or "(timed out)"; at the cap it is released with "(timed out)" and the release is logged. Takes effect only while direct-chat-malware-scan is on, because extraction runs on GuardDuty's clean-scan event. ARM ONLY AFTER DIRECT_CHAT_TEXT_EXTRACTION=true has deployed the DirectChatTextExtract Lambda: armed without it, every PDF/DOCX waits out the cap and arrives as a timed-out notice. A flag-store read error counts as off on this read path. GLOBAL ONLY: evaluated with an empty context, so scoped overrides have no effect.`,
|
|
32186
|
+
flagType: "enum",
|
|
32187
|
+
allowedValues: ["off", "hold-30s", "hold-60s", "hold-120s"],
|
|
32188
|
+
// Off is the pre-2b behaviour: no hold, no .txt read, the raw file.
|
|
32189
|
+
defaultValue: "off",
|
|
32190
|
+
// The flag is evaluated server-side, but its notice entries need the host's
|
|
32191
|
+
// direct-chat MCP to render them: an older agt-cli shows a notice as
|
|
32192
|
+
// "download failed; ask the user to re-send", which sends users in circles
|
|
32193
|
+
// (Sherlock, 13 Nov). So the flip-reach modal must count hosts by the CLI
|
|
32194
|
+
// that renders notices. DELIBERATE UNREACHABLE PLACEHOLDER until this PR
|
|
32195
|
+
// merges and "Publish CLI on adapter changes (main)" publishes the first
|
|
32196
|
+
// agt-cli carrying the MCP change: replace it with that exact version in a
|
|
32197
|
+
// one-line follow-up, and arm only when the modal shows 0 stale and 0
|
|
32198
|
+
// unknown hosts. A placeholder over-reports stale hosts; it never hides one.
|
|
32199
|
+
since: "0.29.0"
|
|
32200
|
+
},
|
|
32179
32201
|
{
|
|
32180
32202
|
key: "platform-held-key-central-probe",
|
|
32181
32203
|
description: "Arm the scheduled CENTRAL connectivity probe lane for platform-held-key integrations (ENG-10086). These store no customer credential (auth_type none), so the host cannot probe them and reports unverified forever. When on, the hourly PlatformHeldKeyProbe cron runs each central probe that exists (today only ninjafy-notes: org entitlement + broker routing, never note contents) and writes the result through the monitor observation path, so consecutive_connectivity_failures / _ok_cycles move and integration_down alerts can open and close on it. Definitions with no central probe are skipped, never written as a failure. When off the cron reads nothing and writes nothing. Boolean gate; ships dark because a new writer of the escalation counters is a paging change. GLOBAL ONLY: the cron and the host connectivity route both evaluate this flag with an empty context, so an org-, team- or agent-scoped override is stored but has NO effect. Arm it by its global value, not as a staged per-org rollout (Obi Wan 63053d02035e).",
|
package/dist/mcp/origami.js
CHANGED
|
@@ -45978,6 +45978,28 @@ var FLAG_REGISTRY = [
|
|
|
45978
45978
|
// edec921a519f); THREATS_FOUND rows stay hidden either way.
|
|
45979
45979
|
defaultValue: false
|
|
45980
45980
|
},
|
|
45981
|
+
{
|
|
45982
|
+
key: "direct-chat-extracted-text",
|
|
45983
|
+
// ENG-11967 part 2b. Read stage-wide only (empty scope), like
|
|
45984
|
+
// direct-chat-malware-scan: a scoped override would do nothing.
|
|
45985
|
+
stageWideOnly: true,
|
|
45986
|
+
sensitive: true,
|
|
45987
|
+
description: `Serve a Direct Chat PDF or DOCX to the agent as its EXTRACTED TEXT instead of the raw file (ENG-11967 part 2b, Sherlock ruling (a)). off = today: the agent gets the raw file (scan-gated). hold-30s / hold-60s / hold-120s = armed, and the value is the HOLD CAP: the agent poll does not claim a message whose text is not ready yet for up to that long, and holds the rest of its session with it so order is kept. Holds chain: a message also waits for every document sent after it in the same session, so its delay is bounded by the cap measured from the LAST document in a run of sends, not from its own send. Ready text is delivered as <name>.txt. If extraction finished without text, or died, the message is released at once with "text extraction unavailable for <name> (couldn't read the file)" or "(timed out)"; at the cap it is released with "(timed out)" and the release is logged. Takes effect only while direct-chat-malware-scan is on, because extraction runs on GuardDuty's clean-scan event. ARM ONLY AFTER DIRECT_CHAT_TEXT_EXTRACTION=true has deployed the DirectChatTextExtract Lambda: armed without it, every PDF/DOCX waits out the cap and arrives as a timed-out notice. A flag-store read error counts as off on this read path. GLOBAL ONLY: evaluated with an empty context, so scoped overrides have no effect.`,
|
|
45988
|
+
flagType: "enum",
|
|
45989
|
+
allowedValues: ["off", "hold-30s", "hold-60s", "hold-120s"],
|
|
45990
|
+
// Off is the pre-2b behaviour: no hold, no .txt read, the raw file.
|
|
45991
|
+
defaultValue: "off",
|
|
45992
|
+
// The flag is evaluated server-side, but its notice entries need the host's
|
|
45993
|
+
// direct-chat MCP to render them: an older agt-cli shows a notice as
|
|
45994
|
+
// "download failed; ask the user to re-send", which sends users in circles
|
|
45995
|
+
// (Sherlock, 13 Nov). So the flip-reach modal must count hosts by the CLI
|
|
45996
|
+
// that renders notices. DELIBERATE UNREACHABLE PLACEHOLDER until this PR
|
|
45997
|
+
// merges and "Publish CLI on adapter changes (main)" publishes the first
|
|
45998
|
+
// agt-cli carrying the MCP change: replace it with that exact version in a
|
|
45999
|
+
// one-line follow-up, and arm only when the modal shows 0 stale and 0
|
|
46000
|
+
// unknown hosts. A placeholder over-reports stale hosts; it never hides one.
|
|
46001
|
+
since: "0.29.0"
|
|
46002
|
+
},
|
|
45981
46003
|
{
|
|
45982
46004
|
key: "platform-held-key-central-probe",
|
|
45983
46005
|
description: "Arm the scheduled CENTRAL connectivity probe lane for platform-held-key integrations (ENG-10086). These store no customer credential (auth_type none), so the host cannot probe them and reports unverified forever. When on, the hourly PlatformHeldKeyProbe cron runs each central probe that exists (today only ninjafy-notes: org entitlement + broker routing, never note contents) and writes the result through the monitor observation path, so consecutive_connectivity_failures / _ok_cycles move and integration_down alerts can open and close on it. Definitions with no central probe are skipped, never written as a failure. When off the cron reads nothing and writes nothing. Boolean gate; ships dark because a new writer of the escalation counters is a paging change. GLOBAL ONLY: the cron and the host connectivity route both evaluate this flag with an empty context, so an org-, team- or agent-scoped override is stored but has NO effect. Arm it by its global value, not as a staged per-org rollout (Obi Wan 63053d02035e).",
|
|
@@ -40833,6 +40833,28 @@ var FLAG_REGISTRY = [
|
|
|
40833
40833
|
// edec921a519f); THREATS_FOUND rows stay hidden either way.
|
|
40834
40834
|
defaultValue: false
|
|
40835
40835
|
},
|
|
40836
|
+
{
|
|
40837
|
+
key: "direct-chat-extracted-text",
|
|
40838
|
+
// ENG-11967 part 2b. Read stage-wide only (empty scope), like
|
|
40839
|
+
// direct-chat-malware-scan: a scoped override would do nothing.
|
|
40840
|
+
stageWideOnly: true,
|
|
40841
|
+
sensitive: true,
|
|
40842
|
+
description: `Serve a Direct Chat PDF or DOCX to the agent as its EXTRACTED TEXT instead of the raw file (ENG-11967 part 2b, Sherlock ruling (a)). off = today: the agent gets the raw file (scan-gated). hold-30s / hold-60s / hold-120s = armed, and the value is the HOLD CAP: the agent poll does not claim a message whose text is not ready yet for up to that long, and holds the rest of its session with it so order is kept. Holds chain: a message also waits for every document sent after it in the same session, so its delay is bounded by the cap measured from the LAST document in a run of sends, not from its own send. Ready text is delivered as <name>.txt. If extraction finished without text, or died, the message is released at once with "text extraction unavailable for <name> (couldn't read the file)" or "(timed out)"; at the cap it is released with "(timed out)" and the release is logged. Takes effect only while direct-chat-malware-scan is on, because extraction runs on GuardDuty's clean-scan event. ARM ONLY AFTER DIRECT_CHAT_TEXT_EXTRACTION=true has deployed the DirectChatTextExtract Lambda: armed without it, every PDF/DOCX waits out the cap and arrives as a timed-out notice. A flag-store read error counts as off on this read path. GLOBAL ONLY: evaluated with an empty context, so scoped overrides have no effect.`,
|
|
40843
|
+
flagType: "enum",
|
|
40844
|
+
allowedValues: ["off", "hold-30s", "hold-60s", "hold-120s"],
|
|
40845
|
+
// Off is the pre-2b behaviour: no hold, no .txt read, the raw file.
|
|
40846
|
+
defaultValue: "off",
|
|
40847
|
+
// The flag is evaluated server-side, but its notice entries need the host's
|
|
40848
|
+
// direct-chat MCP to render them: an older agt-cli shows a notice as
|
|
40849
|
+
// "download failed; ask the user to re-send", which sends users in circles
|
|
40850
|
+
// (Sherlock, 13 Nov). So the flip-reach modal must count hosts by the CLI
|
|
40851
|
+
// that renders notices. DELIBERATE UNREACHABLE PLACEHOLDER until this PR
|
|
40852
|
+
// merges and "Publish CLI on adapter changes (main)" publishes the first
|
|
40853
|
+
// agt-cli carrying the MCP change: replace it with that exact version in a
|
|
40854
|
+
// one-line follow-up, and arm only when the modal shows 0 stale and 0
|
|
40855
|
+
// unknown hosts. A placeholder over-reports stale hosts; it never hides one.
|
|
40856
|
+
since: "0.29.0"
|
|
40857
|
+
},
|
|
40836
40858
|
{
|
|
40837
40859
|
key: "platform-held-key-central-probe",
|
|
40838
40860
|
description: "Arm the scheduled CENTRAL connectivity probe lane for platform-held-key integrations (ENG-10086). These store no customer credential (auth_type none), so the host cannot probe them and reports unverified forever. When on, the hourly PlatformHeldKeyProbe cron runs each central probe that exists (today only ninjafy-notes: org entitlement + broker routing, never note contents) and writes the result through the monitor observation path, so consecutive_connectivity_failures / _ok_cycles move and integration_down alerts can open and close on it. Definitions with no central probe are skipped, never written as a failure. When off the cron reads nothing and writes nothing. Boolean gate; ships dark because a new writer of the escalation counters is a paging change. GLOBAL ONLY: the cron and the host connectivity route both evaluate this flag with an empty context, so an org-, team- or agent-scoped override is stored but has NO effect. Arm it by its global value, not as a staged per-org rollout (Obi Wan 63053d02035e).",
|
|
@@ -41279,6 +41279,28 @@ var FLAG_REGISTRY = [
|
|
|
41279
41279
|
// edec921a519f); THREATS_FOUND rows stay hidden either way.
|
|
41280
41280
|
defaultValue: false
|
|
41281
41281
|
},
|
|
41282
|
+
{
|
|
41283
|
+
key: "direct-chat-extracted-text",
|
|
41284
|
+
// ENG-11967 part 2b. Read stage-wide only (empty scope), like
|
|
41285
|
+
// direct-chat-malware-scan: a scoped override would do nothing.
|
|
41286
|
+
stageWideOnly: true,
|
|
41287
|
+
sensitive: true,
|
|
41288
|
+
description: `Serve a Direct Chat PDF or DOCX to the agent as its EXTRACTED TEXT instead of the raw file (ENG-11967 part 2b, Sherlock ruling (a)). off = today: the agent gets the raw file (scan-gated). hold-30s / hold-60s / hold-120s = armed, and the value is the HOLD CAP: the agent poll does not claim a message whose text is not ready yet for up to that long, and holds the rest of its session with it so order is kept. Holds chain: a message also waits for every document sent after it in the same session, so its delay is bounded by the cap measured from the LAST document in a run of sends, not from its own send. Ready text is delivered as <name>.txt. If extraction finished without text, or died, the message is released at once with "text extraction unavailable for <name> (couldn't read the file)" or "(timed out)"; at the cap it is released with "(timed out)" and the release is logged. Takes effect only while direct-chat-malware-scan is on, because extraction runs on GuardDuty's clean-scan event. ARM ONLY AFTER DIRECT_CHAT_TEXT_EXTRACTION=true has deployed the DirectChatTextExtract Lambda: armed without it, every PDF/DOCX waits out the cap and arrives as a timed-out notice. A flag-store read error counts as off on this read path. GLOBAL ONLY: evaluated with an empty context, so scoped overrides have no effect.`,
|
|
41289
|
+
flagType: "enum",
|
|
41290
|
+
allowedValues: ["off", "hold-30s", "hold-60s", "hold-120s"],
|
|
41291
|
+
// Off is the pre-2b behaviour: no hold, no .txt read, the raw file.
|
|
41292
|
+
defaultValue: "off",
|
|
41293
|
+
// The flag is evaluated server-side, but its notice entries need the host's
|
|
41294
|
+
// direct-chat MCP to render them: an older agt-cli shows a notice as
|
|
41295
|
+
// "download failed; ask the user to re-send", which sends users in circles
|
|
41296
|
+
// (Sherlock, 13 Nov). So the flip-reach modal must count hosts by the CLI
|
|
41297
|
+
// that renders notices. DELIBERATE UNREACHABLE PLACEHOLDER until this PR
|
|
41298
|
+
// merges and "Publish CLI on adapter changes (main)" publishes the first
|
|
41299
|
+
// agt-cli carrying the MCP change: replace it with that exact version in a
|
|
41300
|
+
// one-line follow-up, and arm only when the modal shows 0 stale and 0
|
|
41301
|
+
// unknown hosts. A placeholder over-reports stale hosts; it never hides one.
|
|
41302
|
+
since: "0.29.0"
|
|
41303
|
+
},
|
|
41282
41304
|
{
|
|
41283
41305
|
key: "platform-held-key-central-probe",
|
|
41284
41306
|
description: "Arm the scheduled CENTRAL connectivity probe lane for platform-held-key integrations (ENG-10086). These store no customer credential (auth_type none), so the host cannot probe them and reports unverified forever. When on, the hourly PlatformHeldKeyProbe cron runs each central probe that exists (today only ninjafy-notes: org entitlement + broker routing, never note contents) and writes the result through the monitor observation path, so consecutive_connectivity_failures / _ok_cycles move and integration_down alerts can open and close on it. Definitions with no central probe are skipped, never written as a failure. When off the cron reads nothing and writes nothing. Boolean gate; ships dark because a new writer of the escalation counters is a paging change. GLOBAL ONLY: the cron and the host connectivity route both evaluate this flag with an empty context, so an org-, team- or agent-scoped override is stored but has NO effect. Arm it by its global value, not as a staged per-org rollout (Obi Wan 63053d02035e).",
|
|
@@ -68,12 +68,12 @@ import {
|
|
|
68
68
|
writeDirectChatSessionState,
|
|
69
69
|
writeEgressAllowlist,
|
|
70
70
|
writePersistentClaudeWrapper
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import "./chunk-
|
|
71
|
+
} from "./chunk-3HRBU4H6.js";
|
|
72
|
+
import "./chunk-4VOQ6D7X.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-RUKGOBVA.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-HS33PGZZ.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-3HRBU4H6.js";
|
|
4
|
+
import "./chunk-4VOQ6D7X.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-RUKGOBVA.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-32AWSVSL.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionTranscriptDir
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-4VOQ6D7X.js";
|
|
4
|
+
import "./chunk-RUKGOBVA.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-2L2NLMMB.js.map
|
package/package.json
CHANGED
|
File without changes
|