@integrity-labs/agt-cli 0.28.1250 → 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-6A36YH3M.js +39 -0
- package/dist/bin/agt.js +17 -15
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-IUMFAYZO.js → chunk-3HRBU4H6.js} +3 -3
- package/dist/{chunk-SMD577FW.js → chunk-4VOQ6D7X.js} +2 -2
- package/dist/chunk-5ZNYCNMI.js +471 -0
- package/dist/chunk-5ZNYCNMI.js.map +1 -0
- package/dist/{chunk-DFJ5E5EW.js → chunk-RUKGOBVA.js} +214 -1
- package/dist/chunk-RUKGOBVA.js.map +1 -0
- package/dist/{chunk-5ALBA7KT.js → chunk-S3DUSCWR.js} +94 -552
- package/dist/chunk-S3DUSCWR.js.map +1 -0
- package/dist/{chunk-JOBL3ZF4.js → chunk-XTFVVZIR.js} +2 -2
- package/dist/{claude-code-updater-5MPOBIWN.js → claude-code-updater-WSQTK6TQ.js} +3 -3
- package/dist/{claude-pair-runtime-SNU3CU3K.js → claude-pair-runtime-WWF5BCK3.js} +3 -3
- package/dist/lib/manager-worker.js +172 -61
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +92 -4
- package/dist/mcp/index.js +27 -0
- package/dist/mcp/origami.js +27 -0
- package/dist/mcp/slack-channel.js +27 -0
- package/dist/mcp/telegram-channel.js +389 -186
- package/dist/{persistent-session-SYCA6MW2.js → persistent-session-HS33PGZZ.js} +4 -4
- package/dist/persistent-session-HS33PGZZ.js.map +1 -0
- package/dist/{responsiveness-probe-BUXWVOSA.js → responsiveness-probe-32AWSVSL.js} +4 -4
- package/dist/{session-auth-dead-G5NHWSRP.js → session-auth-dead-2L2NLMMB.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-5ALBA7KT.js.map +0 -1
- package/dist/chunk-DFJ5E5EW.js.map +0 -1
- /package/dist/{claude-code-updater-5MPOBIWN.js.map → api-client-6A36YH3M.js.map} +0 -0
- /package/dist/{chunk-IUMFAYZO.js.map → chunk-3HRBU4H6.js.map} +0 -0
- /package/dist/{chunk-SMD577FW.js.map → chunk-4VOQ6D7X.js.map} +0 -0
- /package/dist/{chunk-JOBL3ZF4.js.map → chunk-XTFVVZIR.js.map} +0 -0
- /package/dist/{persistent-session-SYCA6MW2.js.map → claude-code-updater-WSQTK6TQ.js.map} +0 -0
- /package/dist/{claude-pair-runtime-SNU3CU3K.js.map → claude-pair-runtime-WWF5BCK3.js.map} +0 -0
- /package/dist/{responsiveness-probe-BUXWVOSA.js.map → responsiveness-probe-32AWSVSL.js.map} +0 -0
- /package/dist/{session-auth-dead-G5NHWSRP.js.map → session-auth-dead-2L2NLMMB.js.map} +0 -0
|
@@ -38018,6 +38018,11 @@ function decideDeclineReply(input) {
|
|
|
38018
38018
|
return { reply: true };
|
|
38019
38019
|
}
|
|
38020
38020
|
|
|
38021
|
+
// ../core/dist/channels/telegram-group-link-host.js
|
|
38022
|
+
var MIGRATION_REPORT_MAX_DELAY_MS = 60 * 6e4;
|
|
38023
|
+
var MIGRATION_REPORT_MAX_AGE_MS = 7 * 24 * 60 * 6e4;
|
|
38024
|
+
var MIGRATION_REPORT_CLOCK_SKEW_MS = 5 * 6e4;
|
|
38025
|
+
|
|
38021
38026
|
// ../core/dist/parser/frontmatter.js
|
|
38022
38027
|
var import_yaml = __toESM(require_dist2(), 1);
|
|
38023
38028
|
|
|
@@ -46489,6 +46494,28 @@ var FLAG_REGISTRY = [
|
|
|
46489
46494
|
// edec921a519f); THREATS_FOUND rows stay hidden either way.
|
|
46490
46495
|
defaultValue: false
|
|
46491
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
|
+
},
|
|
46492
46519
|
{
|
|
46493
46520
|
key: "platform-held-key-central-probe",
|
|
46494
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).",
|
|
@@ -48823,6 +48850,40 @@ async function fetchWithTimeout(input, init, timeoutMs, fetchImpl = fetch) {
|
|
|
48823
48850
|
clearTimeout(timer);
|
|
48824
48851
|
}
|
|
48825
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
|
+
};
|
|
48826
48887
|
|
|
48827
48888
|
// src/mcp-spawn-lock.ts
|
|
48828
48889
|
import {
|
|
@@ -54229,6 +54290,12 @@ function buildAttachmentAnnotation(items) {
|
|
|
54229
54290
|
const lines = items.map((a) => {
|
|
54230
54291
|
if (a.archive || isZipAttachment(a.content_type, a.filename)) return archiveAnnotationLines(a);
|
|
54231
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
|
+
}
|
|
54232
54299
|
const head = `- ${sanitizeAttachmentLabel(a.filename)} (${a.content_type}, ${formatBytes(a.byte_size)})`;
|
|
54233
54300
|
if (a.path) {
|
|
54234
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.`;
|
|
@@ -54348,13 +54415,17 @@ async function downloadInboundAttachment(att, dir, deps) {
|
|
|
54348
54415
|
filename: att.filename,
|
|
54349
54416
|
content_type: att.content_type,
|
|
54350
54417
|
byte_size: att.byte_size,
|
|
54351
|
-
isImage: isImageContentType(att.content_type)
|
|
54418
|
+
isImage: isImageContentType(att.content_type),
|
|
54419
|
+
...att.extracted_text_of ? { extractedTextOf: att.extracted_text_of } : {}
|
|
54352
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" };
|
|
54353
54423
|
if (att.byte_size > MAX_INBOUND_ATTACHMENT_BYTES) {
|
|
54354
54424
|
return { ...base, error: OVER_CAP_ERROR };
|
|
54355
54425
|
}
|
|
54426
|
+
const downloadUrl = att.download_url;
|
|
54356
54427
|
try {
|
|
54357
|
-
const res = await deps.fetchUrl(
|
|
54428
|
+
const res = await deps.fetchUrl(downloadUrl, att.byte_size);
|
|
54358
54429
|
if (!res.ok) {
|
|
54359
54430
|
let s3Body = "";
|
|
54360
54431
|
try {
|
|
@@ -54363,7 +54434,7 @@ async function downloadInboundAttachment(att, dir, deps) {
|
|
|
54363
54434
|
} catch {
|
|
54364
54435
|
}
|
|
54365
54436
|
deps.warn(
|
|
54366
|
-
`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}`
|
|
54367
54438
|
);
|
|
54368
54439
|
return { ...base, error: `download HTTP ${res.status}` };
|
|
54369
54440
|
}
|
|
@@ -56391,6 +56462,15 @@ function armUsageLimitWatch(args) {
|
|
|
56391
56462
|
}
|
|
56392
56463
|
})();
|
|
56393
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
|
+
);
|
|
56394
56474
|
async function pollForMessages(sinceMs) {
|
|
56395
56475
|
let pushPendingId = null;
|
|
56396
56476
|
try {
|
|
@@ -56413,6 +56493,7 @@ async function pollForMessages(sinceMs) {
|
|
|
56413
56493
|
for (let i = 0; i < 250; i++) processedIds.delete(ids[i]);
|
|
56414
56494
|
}
|
|
56415
56495
|
};
|
|
56496
|
+
lastPollRetryAfterMs = data.retry_after_ms;
|
|
56416
56497
|
for (const msg of data.messages ?? []) {
|
|
56417
56498
|
if (processedIds.has(msg.id)) continue;
|
|
56418
56499
|
const isNotice = msg.kind === "notice";
|
|
@@ -56677,7 +56758,10 @@ var DOORBELL_FILE = "direct-chat-doorbell";
|
|
|
56677
56758
|
var pollGuard = { inFlight: false, inFlightSinceMs: null, leaseUntilMs: null };
|
|
56678
56759
|
async function pollOnce(sinceMs) {
|
|
56679
56760
|
const decision = evaluatePollGuard(pollGuard, Date.now(), POLL_STUCK_MS);
|
|
56680
|
-
if (!decision.run)
|
|
56761
|
+
if (!decision.run) {
|
|
56762
|
+
pollFollowUps.noteSkipped(sinceMs);
|
|
56763
|
+
return { ran: false, ok: false };
|
|
56764
|
+
}
|
|
56681
56765
|
if (decision.stuck) {
|
|
56682
56766
|
process.stderr.write(
|
|
56683
56767
|
`direct-chat-channel: previous poll wedged >${POLL_STUCK_MS}ms \u2014 superseding so the pull loop self-heals
|
|
@@ -56686,6 +56770,7 @@ async function pollOnce(sinceMs) {
|
|
|
56686
56770
|
}
|
|
56687
56771
|
pollGuard.inFlight = true;
|
|
56688
56772
|
pollGuard.inFlightSinceMs = Date.now();
|
|
56773
|
+
lastPollRetryAfterMs = void 0;
|
|
56689
56774
|
try {
|
|
56690
56775
|
const ok = await pollForMessages(sinceMs);
|
|
56691
56776
|
return { ran: true, ok };
|
|
@@ -56693,6 +56778,9 @@ async function pollOnce(sinceMs) {
|
|
|
56693
56778
|
pollGuard.inFlight = false;
|
|
56694
56779
|
pollGuard.inFlightSinceMs = null;
|
|
56695
56780
|
pollGuard.leaseUntilMs = null;
|
|
56781
|
+
pollFollowUps.afterPoll((s) => {
|
|
56782
|
+
void pollOnce(s);
|
|
56783
|
+
}, sinceMs, lastPollRetryAfterMs);
|
|
56696
56784
|
}
|
|
56697
56785
|
}
|
|
56698
56786
|
var doorbellWatcher = null;
|
package/dist/mcp/index.js
CHANGED
|
@@ -24063,6 +24063,11 @@ var AZURE_PROVISIONING_SCOPES = [
|
|
|
24063
24063
|
"https://management.azure.com/user_impersonation"
|
|
24064
24064
|
];
|
|
24065
24065
|
|
|
24066
|
+
// ../core/dist/channels/telegram-group-link-host.js
|
|
24067
|
+
var MIGRATION_REPORT_MAX_DELAY_MS = 60 * 6e4;
|
|
24068
|
+
var MIGRATION_REPORT_MAX_AGE_MS = 7 * 24 * 60 * 6e4;
|
|
24069
|
+
var MIGRATION_REPORT_CLOCK_SKEW_MS = 5 * 6e4;
|
|
24070
|
+
|
|
24066
24071
|
// ../core/dist/parser/frontmatter.js
|
|
24067
24072
|
var import_yaml = __toESM(require_dist2(), 1);
|
|
24068
24073
|
|
|
@@ -32171,6 +32176,28 @@ var FLAG_REGISTRY = [
|
|
|
32171
32176
|
// edec921a519f); THREATS_FOUND rows stay hidden either way.
|
|
32172
32177
|
defaultValue: false
|
|
32173
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
|
+
},
|
|
32174
32201
|
{
|
|
32175
32202
|
key: "platform-held-key-central-probe",
|
|
32176
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
|
@@ -38190,6 +38190,11 @@ var AZURE_PROVISIONING_SCOPES = [
|
|
|
38190
38190
|
"https://management.azure.com/user_impersonation"
|
|
38191
38191
|
];
|
|
38192
38192
|
|
|
38193
|
+
// ../core/dist/channels/telegram-group-link-host.js
|
|
38194
|
+
var MIGRATION_REPORT_MAX_DELAY_MS = 60 * 6e4;
|
|
38195
|
+
var MIGRATION_REPORT_MAX_AGE_MS = 7 * 24 * 60 * 6e4;
|
|
38196
|
+
var MIGRATION_REPORT_CLOCK_SKEW_MS = 5 * 6e4;
|
|
38197
|
+
|
|
38193
38198
|
// ../core/dist/parser/frontmatter.js
|
|
38194
38199
|
var import_yaml = __toESM(require_dist2(), 1);
|
|
38195
38200
|
|
|
@@ -45973,6 +45978,28 @@ var FLAG_REGISTRY = [
|
|
|
45973
45978
|
// edec921a519f); THREATS_FOUND rows stay hidden either way.
|
|
45974
45979
|
defaultValue: false
|
|
45975
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
|
+
},
|
|
45976
46003
|
{
|
|
45977
46004
|
key: "platform-held-key-central-probe",
|
|
45978
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).",
|
|
@@ -32623,6 +32623,11 @@ var AZURE_PROVISIONING_SCOPES = [
|
|
|
32623
32623
|
"https://management.azure.com/user_impersonation"
|
|
32624
32624
|
];
|
|
32625
32625
|
|
|
32626
|
+
// ../core/dist/channels/telegram-group-link-host.js
|
|
32627
|
+
var MIGRATION_REPORT_MAX_DELAY_MS = 60 * 6e4;
|
|
32628
|
+
var MIGRATION_REPORT_MAX_AGE_MS = 7 * 24 * 60 * 6e4;
|
|
32629
|
+
var MIGRATION_REPORT_CLOCK_SKEW_MS = 5 * 6e4;
|
|
32630
|
+
|
|
32626
32631
|
// ../core/dist/parser/frontmatter.js
|
|
32627
32632
|
var import_yaml = __toESM(require_dist2(), 1);
|
|
32628
32633
|
|
|
@@ -40828,6 +40833,28 @@ var FLAG_REGISTRY = [
|
|
|
40828
40833
|
// edec921a519f); THREATS_FOUND rows stay hidden either way.
|
|
40829
40834
|
defaultValue: false
|
|
40830
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
|
+
},
|
|
40831
40858
|
{
|
|
40832
40859
|
key: "platform-held-key-central-probe",
|
|
40833
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).",
|