@integrity-labs/agt-cli 0.28.483 → 0.28.485
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/agt.js +4 -4
- package/dist/{chunk-EGVOVL5P.js → chunk-QFQTGSXQ.js} +3 -3
- package/dist/{chunk-DNC5JGOV.js → chunk-SRR5XVWJ.js} +18 -9
- package/dist/{chunk-DNC5JGOV.js.map → chunk-SRR5XVWJ.js.map} +1 -1
- package/dist/{claude-pair-runtime-2XPTEGQR.js → claude-pair-runtime-STSHUESG.js} +2 -2
- package/dist/lib/manager-worker.js +10 -10
- package/dist/mcp/direct-chat-channel.js +99 -30
- package/dist/mcp/origami.js +17 -8
- package/dist/mcp/slack-channel.js +143 -74
- package/dist/mcp/telegram-channel.js +121 -52
- package/dist/{persistent-session-IBMUPQZ2.js → persistent-session-CEGPLUHO.js} +2 -2
- package/dist/{responsiveness-probe-QBLQIMZR.js → responsiveness-probe-RBLOTOHD.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-EGVOVL5P.js.map → chunk-QFQTGSXQ.js.map} +0 -0
- /package/dist/{claude-pair-runtime-2XPTEGQR.js.map → claude-pair-runtime-STSHUESG.js.map} +0 -0
- /package/dist/{persistent-session-IBMUPQZ2.js.map → persistent-session-CEGPLUHO.js.map} +0 -0
- /package/dist/{responsiveness-probe-QBLQIMZR.js.map → responsiveness-probe-RBLOTOHD.js.map} +0 -0
|
@@ -30126,13 +30126,13 @@ var StdioServerTransport = class {
|
|
|
30126
30126
|
import https from "https";
|
|
30127
30127
|
import { createHash as createHash3, randomUUID as randomUUID3 } from "crypto";
|
|
30128
30128
|
import {
|
|
30129
|
-
closeSync,
|
|
30129
|
+
closeSync as closeSync2,
|
|
30130
30130
|
createWriteStream,
|
|
30131
30131
|
existsSync as existsSync9,
|
|
30132
30132
|
ftruncateSync,
|
|
30133
30133
|
mkdirSync as mkdirSync9,
|
|
30134
|
-
openSync,
|
|
30135
|
-
readFileSync as
|
|
30134
|
+
openSync as openSync2,
|
|
30135
|
+
readFileSync as readFileSync14,
|
|
30136
30136
|
readdirSync as readdirSync6,
|
|
30137
30137
|
realpathSync,
|
|
30138
30138
|
renameSync as renameSync7,
|
|
@@ -33756,18 +33756,27 @@ var INTEGRATION_REGISTRY = [
|
|
|
33756
33756
|
id: "firecrawl",
|
|
33757
33757
|
name: "Firecrawl",
|
|
33758
33758
|
category: "knowledge",
|
|
33759
|
-
description: "Web data for agents: scrape, map, crawl and search any website for clean structured data, plus scheduled change-detection monitors whose updates arrive in the agent's direct-chat.
|
|
33759
|
+
description: "Web data for agents: scrape, map, crawl and search any website for clean structured data, plus scheduled change-detection monitors whose updates arrive in the agent's direct-chat. Connect via the platform-managed account, or bring your own Firecrawl API key.",
|
|
33760
33760
|
// ENG-7217: Firecrawl migrates from a customer-API-key stdio MCP
|
|
33761
33761
|
// (`npx firecrawl-mcp`, FIRECRAWL_API_KEY) to a PREMIUM, platform-managed
|
|
33762
33762
|
// integration on the Deck / ElevenLabs model (ADR-0031, epic ENG-6920):
|
|
33763
33763
|
// Augmented holds ONE Firecrawl account key (`FIRECRAWL_ACCOUNT_KEY`) that
|
|
33764
|
-
// every customer agent's web-data calls bill back to
|
|
33765
|
-
//
|
|
33766
|
-
//
|
|
33767
|
-
//
|
|
33768
|
-
//
|
|
33769
|
-
//
|
|
33770
|
-
|
|
33764
|
+
// every customer agent's web-data calls bill back to. The agent-facing tools
|
|
33765
|
+
// are brokered server-side (firecrawl-broker.ts, reusing the official
|
|
33766
|
+
// @mendable/firecrawl-js SDK) rather than via the stdio MCP, so managed usage
|
|
33767
|
+
// is metered at the one control-plane chokepoint and gated on a per-org opt-in
|
|
33768
|
+
// + monthly USD cap.
|
|
33769
|
+
//
|
|
33770
|
+
// ENG-8304 / ADR-0055 (Phase 1b — Firecrawl is the BYO exemplar): `api_key` is
|
|
33771
|
+
// now also offered so a customer can bring their OWN Firecrawl key. A BYO
|
|
33772
|
+
// install (`credential_source='byo'`) authenticates with the customer's key
|
|
33773
|
+
// (stored encrypted on the install) and is NOT metered — its upstream cost is
|
|
33774
|
+
// on the customer's own Firecrawl bill. BYO is gated on the plan-tier
|
|
33775
|
+
// `byo_credentials` entitlement; managed stays the platform-key, billed path.
|
|
33776
|
+
// `api_key` is the BYO option; the connect UI offers it via the toolkit's
|
|
33777
|
+
// `auth_types` seed (Firecrawl surfaces through the premium list, not the
|
|
33778
|
+
// native `installable` picker — that descriptor is for non-premium natives).
|
|
33779
|
+
supported_auth_types: ["none", "api_key"],
|
|
33771
33780
|
capabilities: [
|
|
33772
33781
|
{ id: "firecrawl:scrape", name: "Scrape Pages", description: "Fetch a single URL as clean markdown / structured data (firecrawl_scrape).", access: "write" },
|
|
33773
33782
|
{ id: "firecrawl:search", name: "Web Search", description: "Search the web and return ranked results, optionally scraped (firecrawl_search).", access: "write" },
|
|
@@ -37553,11 +37562,77 @@ function emitToolCallMarkupRedactionTelemetry(channel) {
|
|
|
37553
37562
|
}
|
|
37554
37563
|
|
|
37555
37564
|
// src/rate-limit-watch.ts
|
|
37556
|
-
import {
|
|
37565
|
+
import { closeSync, fstatSync, openSync, readSync, readdirSync, statSync } from "fs";
|
|
37557
37566
|
import { homedir as homedir4 } from "os";
|
|
37558
37567
|
import { join as join8 } from "path";
|
|
37559
37568
|
var DEFAULT_WATCH_MS = 5e3;
|
|
37560
37569
|
var DEFAULT_POLL_MS = 400;
|
|
37570
|
+
var INITIAL_TAIL_BYTES = 256 * 1024;
|
|
37571
|
+
var TAIL_WIDEN_FACTOR = 8;
|
|
37572
|
+
var TAIL_SKEW_TOLERANCE_MS = 5 * 6e4;
|
|
37573
|
+
function readClassifiableTail(path, sinceMs, opts) {
|
|
37574
|
+
let want = Math.max(1, opts?.initialBytes ?? INITIAL_TAIL_BYTES);
|
|
37575
|
+
for (; ; ) {
|
|
37576
|
+
const slice = readTailSlice(path, want);
|
|
37577
|
+
if (slice === null) return "";
|
|
37578
|
+
if (slice.fromStart) return slice.text;
|
|
37579
|
+
const oldest = oldestTimestampMs(slice.text);
|
|
37580
|
+
if (oldest !== null && oldest < sinceMs - TAIL_SKEW_TOLERANCE_MS) return slice.text;
|
|
37581
|
+
want *= TAIL_WIDEN_FACTOR;
|
|
37582
|
+
}
|
|
37583
|
+
}
|
|
37584
|
+
function readTailSlice(path, bytes) {
|
|
37585
|
+
let fd;
|
|
37586
|
+
try {
|
|
37587
|
+
fd = openSync(path, "r");
|
|
37588
|
+
} catch {
|
|
37589
|
+
return null;
|
|
37590
|
+
}
|
|
37591
|
+
try {
|
|
37592
|
+
const size = fstatSync(fd).size;
|
|
37593
|
+
const start = size > bytes ? size - bytes : 0;
|
|
37594
|
+
const len = size - start;
|
|
37595
|
+
if (len <= 0) return { text: "", fromStart: true };
|
|
37596
|
+
const buf = Buffer.allocUnsafe(len);
|
|
37597
|
+
let read = 0;
|
|
37598
|
+
while (read < len) {
|
|
37599
|
+
const n = readSync(fd, buf, read, len - read, start + read);
|
|
37600
|
+
if (n <= 0) break;
|
|
37601
|
+
read += n;
|
|
37602
|
+
}
|
|
37603
|
+
if (read < len) return null;
|
|
37604
|
+
let text = buf.subarray(0, read).toString("utf-8");
|
|
37605
|
+
if (start > 0) {
|
|
37606
|
+
const nl = text.indexOf("\n");
|
|
37607
|
+
text = nl === -1 ? "" : text.slice(nl + 1);
|
|
37608
|
+
}
|
|
37609
|
+
return { text, fromStart: start === 0 };
|
|
37610
|
+
} catch {
|
|
37611
|
+
return null;
|
|
37612
|
+
} finally {
|
|
37613
|
+
closeSync(fd);
|
|
37614
|
+
}
|
|
37615
|
+
}
|
|
37616
|
+
function oldestTimestampMs(text) {
|
|
37617
|
+
let idx = 0;
|
|
37618
|
+
while (idx < text.length) {
|
|
37619
|
+
const nl = text.indexOf("\n", idx);
|
|
37620
|
+
const line = (nl === -1 ? text.slice(idx) : text.slice(idx, nl)).trim();
|
|
37621
|
+
if (line) {
|
|
37622
|
+
try {
|
|
37623
|
+
const ts = JSON.parse(line).timestamp;
|
|
37624
|
+
if (typeof ts === "string") {
|
|
37625
|
+
const ms = new Date(ts).getTime();
|
|
37626
|
+
if (Number.isFinite(ms)) return ms;
|
|
37627
|
+
}
|
|
37628
|
+
} catch {
|
|
37629
|
+
}
|
|
37630
|
+
}
|
|
37631
|
+
if (nl === -1) break;
|
|
37632
|
+
idx = nl + 1;
|
|
37633
|
+
}
|
|
37634
|
+
return null;
|
|
37635
|
+
}
|
|
37561
37636
|
function agentTranscriptDir(opts) {
|
|
37562
37637
|
const cwd = opts?.cwd ?? process.cwd();
|
|
37563
37638
|
const home = opts?.home ?? homedir4();
|
|
@@ -37581,12 +37656,10 @@ function classifyTranscriptSince(opts) {
|
|
|
37581
37656
|
} catch {
|
|
37582
37657
|
continue;
|
|
37583
37658
|
}
|
|
37584
|
-
|
|
37585
|
-
|
|
37586
|
-
|
|
37587
|
-
|
|
37588
|
-
continue;
|
|
37589
|
-
}
|
|
37659
|
+
const content = readClassifiableTail(path, opts.sinceMs, {
|
|
37660
|
+
...opts.initialTailBytes != null ? { initialBytes: opts.initialTailBytes } : {}
|
|
37661
|
+
});
|
|
37662
|
+
if (!content) continue;
|
|
37590
37663
|
newest = pickNewerClassification(
|
|
37591
37664
|
newest,
|
|
37592
37665
|
classifyTranscriptRateLimit(content, opts.sinceMs, opts.nowMs, new Date(opts.nowMs))
|
|
@@ -37622,7 +37695,7 @@ async function watchForRateLimitRefusal(opts) {
|
|
|
37622
37695
|
}
|
|
37623
37696
|
|
|
37624
37697
|
// src/turn-failure-watch.ts
|
|
37625
|
-
import {
|
|
37698
|
+
import { readdirSync as readdirSync2, statSync as statSync2 } from "fs";
|
|
37626
37699
|
import { join as join9 } from "path";
|
|
37627
37700
|
function turnFailureNoticeEnabled(env2) {
|
|
37628
37701
|
return resolveHostBooleanFlag({
|
|
@@ -37666,12 +37739,8 @@ function classifyTurnFailureSince(opts) {
|
|
|
37666
37739
|
if (cached2 && cached2.fingerprint === fingerprint) {
|
|
37667
37740
|
scan = cached2.scan;
|
|
37668
37741
|
} else {
|
|
37669
|
-
|
|
37670
|
-
|
|
37671
|
-
content = readFileSync11(path, "utf-8");
|
|
37672
|
-
} catch {
|
|
37673
|
-
continue;
|
|
37674
|
-
}
|
|
37742
|
+
const content = readClassifiableTail(path, opts.sinceMs);
|
|
37743
|
+
if (!content) continue;
|
|
37675
37744
|
const analysis = analyzeTranscriptTurnFailure(content, opts.sinceMs, opts.nowMs);
|
|
37676
37745
|
scan = {
|
|
37677
37746
|
result: analysis.result,
|
|
@@ -38048,11 +38117,11 @@ function emitTransientApiErrorTelemetry(channel, match, original) {
|
|
|
38048
38117
|
}
|
|
38049
38118
|
|
|
38050
38119
|
// src/telegram-pending-inbound-cleanup.ts
|
|
38051
|
-
import { readdirSync as readdirSync3, readFileSync as
|
|
38120
|
+
import { readdirSync as readdirSync3, readFileSync as readFileSync10, statSync as statSync3 } from "fs";
|
|
38052
38121
|
import { join as join11 } from "path";
|
|
38053
38122
|
function markerArrivalMs(fullPath) {
|
|
38054
38123
|
try {
|
|
38055
|
-
const received = JSON.parse(
|
|
38124
|
+
const received = JSON.parse(readFileSync10(fullPath, "utf-8")).received_at;
|
|
38056
38125
|
const parsed = received ? Date.parse(received) : Number.NaN;
|
|
38057
38126
|
if (Number.isFinite(parsed)) return parsed;
|
|
38058
38127
|
} catch {
|
|
@@ -38114,7 +38183,7 @@ function removeRecoveryLedgerEntry(ledgerDir, markerName, unlink = (p2) => {
|
|
|
38114
38183
|
}
|
|
38115
38184
|
|
|
38116
38185
|
// src/inbound-delivery-ledger.ts
|
|
38117
|
-
import { existsSync as existsSync7, mkdirSync as mkdirSync7, readdirSync as readdirSync4, readFileSync as
|
|
38186
|
+
import { existsSync as existsSync7, mkdirSync as mkdirSync7, readdirSync as readdirSync4, readFileSync as readFileSync11, renameSync as renameSync5, writeFileSync as writeFileSync8 } from "fs";
|
|
38118
38187
|
import { join as join13 } from "path";
|
|
38119
38188
|
function safeInboundId(inboundId) {
|
|
38120
38189
|
return inboundId.replace(/[^A-Za-z0-9_-]/g, "_");
|
|
@@ -38124,7 +38193,7 @@ var defaultDeps = {
|
|
|
38124
38193
|
writeFile: (path, data) => writeFileSync8(path, data, "utf8"),
|
|
38125
38194
|
rename: (from, to) => renameSync5(from, to),
|
|
38126
38195
|
readdir: (dir) => readdirSync4(dir),
|
|
38127
|
-
readFile: (path) =>
|
|
38196
|
+
readFile: (path) => readFileSync11(path, "utf8"),
|
|
38128
38197
|
exists: (path) => existsSync7(path)
|
|
38129
38198
|
};
|
|
38130
38199
|
function writeInboundDeliveryLedgerEntry(dir, record2, deps = defaultDeps) {
|
|
@@ -38338,7 +38407,7 @@ function createKanbanCardActiveClient(args) {
|
|
|
38338
38407
|
import {
|
|
38339
38408
|
existsSync as existsSync8,
|
|
38340
38409
|
mkdirSync as mkdirSync8,
|
|
38341
|
-
readFileSync as
|
|
38410
|
+
readFileSync as readFileSync12,
|
|
38342
38411
|
renameSync as renameSync6,
|
|
38343
38412
|
statSync as statSync4,
|
|
38344
38413
|
unlinkSync as unlinkSync7,
|
|
@@ -38435,7 +38504,7 @@ function defaultLockMtimeMs(path) {
|
|
|
38435
38504
|
function readLockHolder(path) {
|
|
38436
38505
|
if (!existsSync8(path)) return null;
|
|
38437
38506
|
try {
|
|
38438
|
-
const raw =
|
|
38507
|
+
const raw = readFileSync12(path, "utf8");
|
|
38439
38508
|
const parsed = JSON.parse(raw);
|
|
38440
38509
|
const pid = typeof parsed.pid === "number" ? parsed.pid : Number(parsed.pid);
|
|
38441
38510
|
if (!Number.isFinite(pid) || pid <= 0) return null;
|
|
@@ -38447,7 +38516,7 @@ function readLockHolder(path) {
|
|
|
38447
38516
|
}
|
|
38448
38517
|
|
|
38449
38518
|
// src/ack-reaction.ts
|
|
38450
|
-
import { readdirSync as readdirSync5, readFileSync as
|
|
38519
|
+
import { readdirSync as readdirSync5, readFileSync as readFileSync13, writeFileSync as writeFileSync10 } from "fs";
|
|
38451
38520
|
import { join as join15 } from "path";
|
|
38452
38521
|
var REPLY_WEDGED_THRESHOLD_MS = 5 * 60 * 1e3;
|
|
38453
38522
|
var ACK_STARTUP_GRACE_MS = 6e4;
|
|
@@ -38521,7 +38590,7 @@ var GIVE_UP_SIGNAL_MAX_AGE_MS = 30 * 60 * 1e3;
|
|
|
38521
38590
|
function readGiveUpSignal(path, now = Date.now()) {
|
|
38522
38591
|
if (!path) return null;
|
|
38523
38592
|
try {
|
|
38524
|
-
const raw = JSON.parse(
|
|
38593
|
+
const raw = JSON.parse(readFileSync13(path, "utf8"));
|
|
38525
38594
|
if (typeof raw.gave_up_at !== "string") return null;
|
|
38526
38595
|
const t = Date.parse(raw.gave_up_at);
|
|
38527
38596
|
if (!Number.isFinite(t) || t > now) return null;
|
|
@@ -38562,7 +38631,7 @@ function oldestPendingMarkerAgeMs(dir, now = Date.now(), opts) {
|
|
|
38562
38631
|
if (!name.endsWith(".json")) continue;
|
|
38563
38632
|
let receivedAt;
|
|
38564
38633
|
try {
|
|
38565
|
-
const raw = JSON.parse(
|
|
38634
|
+
const raw = JSON.parse(readFileSync13(join15(dir, name), "utf-8"));
|
|
38566
38635
|
if (raw.discretionary === true) continue;
|
|
38567
38636
|
if (!opts?.includeSeen && typeof raw.seen_at === "string" && raw.seen_at) continue;
|
|
38568
38637
|
receivedAt = raw.received_at;
|
|
@@ -38646,7 +38715,7 @@ function recordChannelDeflection(agentDir, channel, cause) {
|
|
|
38646
38715
|
const path = deflectionCounterPath(agentDir, channel);
|
|
38647
38716
|
let counts = {};
|
|
38648
38717
|
try {
|
|
38649
|
-
const parsed = JSON.parse(
|
|
38718
|
+
const parsed = JSON.parse(readFileSync13(path, "utf-8"));
|
|
38650
38719
|
if (parsed && typeof parsed === "object") counts = parsed;
|
|
38651
38720
|
} catch {
|
|
38652
38721
|
}
|
|
@@ -38834,7 +38903,7 @@ var PEER_PRESENCE_STATE_FILE = TELEGRAM_AGENT_DIR ? join16(TELEGRAM_AGENT_DIR, "
|
|
|
38834
38903
|
function readPeerPresenceState() {
|
|
38835
38904
|
if (!PEER_PRESENCE_STATE_FILE) return null;
|
|
38836
38905
|
try {
|
|
38837
|
-
const parsed = JSON.parse(
|
|
38906
|
+
const parsed = JSON.parse(readFileSync14(PEER_PRESENCE_STATE_FILE, "utf-8"));
|
|
38838
38907
|
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return null;
|
|
38839
38908
|
return parsed;
|
|
38840
38909
|
} catch {
|
|
@@ -40220,7 +40289,7 @@ function writePendingInboundMarker(chatId, messageId, chatType, undeliverable =
|
|
|
40220
40289
|
function rewriteTelegramMarkerInPlace(path, marker) {
|
|
40221
40290
|
let fd;
|
|
40222
40291
|
try {
|
|
40223
|
-
fd =
|
|
40292
|
+
fd = openSync2(path, "r+");
|
|
40224
40293
|
const buf = Buffer.from(JSON.stringify(marker));
|
|
40225
40294
|
ftruncateSync(fd, 0);
|
|
40226
40295
|
writeSync(fd, buf, 0, buf.length, 0);
|
|
@@ -40228,7 +40297,7 @@ function rewriteTelegramMarkerInPlace(path, marker) {
|
|
|
40228
40297
|
} finally {
|
|
40229
40298
|
if (fd !== void 0) {
|
|
40230
40299
|
try {
|
|
40231
|
-
|
|
40300
|
+
closeSync2(fd);
|
|
40232
40301
|
} catch {
|
|
40233
40302
|
}
|
|
40234
40303
|
}
|
|
@@ -40237,7 +40306,7 @@ function rewriteTelegramMarkerInPlace(path, marker) {
|
|
|
40237
40306
|
function clearTelegramMarkerFileWithHeal(fullPath) {
|
|
40238
40307
|
let marker = null;
|
|
40239
40308
|
try {
|
|
40240
|
-
marker = JSON.parse(
|
|
40309
|
+
marker = JSON.parse(readFileSync14(fullPath, "utf-8"));
|
|
40241
40310
|
} catch {
|
|
40242
40311
|
}
|
|
40243
40312
|
if (marker && decideRecoveryHeal({
|
|
@@ -40260,7 +40329,7 @@ function markTelegramMarkerPromisedInPlace(fullPath) {
|
|
|
40260
40329
|
function markTelegramMarkerEngagedInPlace(fullPath, opts) {
|
|
40261
40330
|
let marker;
|
|
40262
40331
|
try {
|
|
40263
|
-
marker = JSON.parse(
|
|
40332
|
+
marker = JSON.parse(readFileSync14(fullPath, "utf-8"));
|
|
40264
40333
|
} catch {
|
|
40265
40334
|
return false;
|
|
40266
40335
|
}
|
|
@@ -40275,7 +40344,7 @@ function markTelegramMarkerEngagedInPlace(fullPath, opts) {
|
|
|
40275
40344
|
rewriteTelegramMarkerInPlace(fullPath, marker);
|
|
40276
40345
|
if (!opts.promise) return false;
|
|
40277
40346
|
try {
|
|
40278
|
-
const readBack = JSON.parse(
|
|
40347
|
+
const readBack = JSON.parse(readFileSync14(fullPath, "utf-8"));
|
|
40279
40348
|
return typeof readBack.promised_at === "string" && readBack.promised_at.length > 0;
|
|
40280
40349
|
} catch {
|
|
40281
40350
|
return false;
|
|
@@ -40284,7 +40353,7 @@ function markTelegramMarkerEngagedInPlace(fullPath, opts) {
|
|
|
40284
40353
|
function markTelegramMarkerSeenWithHeal(fullPath) {
|
|
40285
40354
|
let marker = null;
|
|
40286
40355
|
try {
|
|
40287
|
-
marker = JSON.parse(
|
|
40356
|
+
marker = JSON.parse(readFileSync14(fullPath, "utf-8"));
|
|
40288
40357
|
} catch {
|
|
40289
40358
|
return;
|
|
40290
40359
|
}
|
|
@@ -40299,7 +40368,7 @@ function markTelegramMarkerSeenWithHeal(fullPath) {
|
|
|
40299
40368
|
function markTelegramMarkerPromisedWithHeal(fullPath) {
|
|
40300
40369
|
let marker = null;
|
|
40301
40370
|
try {
|
|
40302
|
-
marker = JSON.parse(
|
|
40371
|
+
marker = JSON.parse(readFileSync14(fullPath, "utf-8"));
|
|
40303
40372
|
} catch {
|
|
40304
40373
|
return;
|
|
40305
40374
|
}
|
|
@@ -40317,7 +40386,7 @@ function readPendingInboundMarker(chatId, messageId) {
|
|
|
40317
40386
|
const path = pendingInboundPath(chatId, messageId);
|
|
40318
40387
|
if (!path || !existsSync9(path)) return null;
|
|
40319
40388
|
try {
|
|
40320
|
-
return JSON.parse(
|
|
40389
|
+
return JSON.parse(readFileSync14(path, "utf-8"));
|
|
40321
40390
|
} catch {
|
|
40322
40391
|
return null;
|
|
40323
40392
|
}
|
|
@@ -40340,7 +40409,7 @@ async function processRecoveryOutboxFile(filename) {
|
|
|
40340
40409
|
const fullPath = join16(RECOVERY_OUTBOX_DIR, filename);
|
|
40341
40410
|
let payload;
|
|
40342
40411
|
try {
|
|
40343
|
-
const raw =
|
|
40412
|
+
const raw = readFileSync14(fullPath, "utf-8");
|
|
40344
40413
|
payload = JSON.parse(raw);
|
|
40345
40414
|
} catch (err) {
|
|
40346
40415
|
process.stderr.write(
|
|
@@ -40545,7 +40614,7 @@ async function processNoticeOutboxFile(filename) {
|
|
|
40545
40614
|
}
|
|
40546
40615
|
let payload;
|
|
40547
40616
|
try {
|
|
40548
|
-
const parsed = JSON.parse(
|
|
40617
|
+
const parsed = JSON.parse(readFileSync14(fullPath, "utf-8"));
|
|
40549
40618
|
if (!parsed || typeof parsed !== "object") throw new Error("not an object");
|
|
40550
40619
|
payload = parsed;
|
|
40551
40620
|
} catch {
|
|
@@ -40659,7 +40728,7 @@ function sweepTelegramStaleMarkers(thresholdMs) {
|
|
|
40659
40728
|
const fullPath = join16(PENDING_INBOUND_DIR, filename);
|
|
40660
40729
|
let marker;
|
|
40661
40730
|
try {
|
|
40662
|
-
marker = JSON.parse(
|
|
40731
|
+
marker = JSON.parse(readFileSync14(fullPath, "utf-8"));
|
|
40663
40732
|
} catch (err) {
|
|
40664
40733
|
process.stderr.write(
|
|
40665
40734
|
`telegram-channel(${AGENT_CODE_NAME}): stale-marker parse failed for ${redactId(filename)}: ${err.message}
|
|
@@ -40718,7 +40787,7 @@ var telegramProgressTickRunning = false;
|
|
|
40718
40787
|
function readTelegramProgressHeartbeat() {
|
|
40719
40788
|
if (!TELEGRAM_PROGRESS_HEARTBEAT_PATH || !existsSync9(TELEGRAM_PROGRESS_HEARTBEAT_PATH)) return null;
|
|
40720
40789
|
try {
|
|
40721
|
-
return parseProgressHeartbeat(
|
|
40790
|
+
return parseProgressHeartbeat(readFileSync14(TELEGRAM_PROGRESS_HEARTBEAT_PATH, "utf-8"));
|
|
40722
40791
|
} catch {
|
|
40723
40792
|
return null;
|
|
40724
40793
|
}
|
|
@@ -40745,7 +40814,7 @@ function findTelegramProgressTarget() {
|
|
|
40745
40814
|
if (!name.endsWith(".json")) continue;
|
|
40746
40815
|
let m;
|
|
40747
40816
|
try {
|
|
40748
|
-
m = JSON.parse(
|
|
40817
|
+
m = JSON.parse(readFileSync14(join16(PENDING_INBOUND_DIR, name), "utf-8"));
|
|
40749
40818
|
} catch {
|
|
40750
40819
|
continue;
|
|
40751
40820
|
}
|
|
@@ -40876,7 +40945,7 @@ function listPendingInboundChatIds() {
|
|
|
40876
40945
|
if (!name.endsWith(".json")) continue;
|
|
40877
40946
|
try {
|
|
40878
40947
|
const marker = JSON.parse(
|
|
40879
|
-
|
|
40948
|
+
readFileSync14(join16(PENDING_INBOUND_DIR, name), "utf8")
|
|
40880
40949
|
);
|
|
40881
40950
|
if (typeof marker.seen_at === "string" && marker.seen_at) continue;
|
|
40882
40951
|
if (typeof marker.chat_id === "string" && marker.chat_id) chats.add(marker.chat_id);
|
|
@@ -41369,7 +41438,7 @@ mcp.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
41369
41438
|
isError: true
|
|
41370
41439
|
};
|
|
41371
41440
|
}
|
|
41372
|
-
bytes =
|
|
41441
|
+
bytes = readFileSync14(realPath);
|
|
41373
41442
|
} catch (err) {
|
|
41374
41443
|
return { content: [{ type: "text", text: `Failed to read file: ${err.message}` }], isError: true };
|
|
41375
41444
|
}
|
|
@@ -41949,7 +42018,7 @@ async function replayPendingTelegramMarkers() {
|
|
|
41949
42018
|
const fullPath = join16(PENDING_INBOUND_DIR, name);
|
|
41950
42019
|
let marker;
|
|
41951
42020
|
try {
|
|
41952
|
-
marker = JSON.parse(
|
|
42021
|
+
marker = JSON.parse(readFileSync14(fullPath, "utf-8"));
|
|
41953
42022
|
} catch {
|
|
41954
42023
|
continue;
|
|
41955
42024
|
}
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
writeDirectChatSessionState,
|
|
37
37
|
writeEgressAllowlist,
|
|
38
38
|
writePersistentClaudeWrapper
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-SRR5XVWJ.js";
|
|
40
40
|
import "./chunk-XWVM4KPK.js";
|
|
41
41
|
export {
|
|
42
42
|
EGRESS_BASELINE_DOMAINS,
|
|
@@ -77,4 +77,4 @@ export {
|
|
|
77
77
|
writeEgressAllowlist,
|
|
78
78
|
writePersistentClaudeWrapper
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=persistent-session-
|
|
80
|
+
//# sourceMappingURL=persistent-session-CEGPLUHO.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SRR5XVWJ.js";
|
|
4
4
|
import "./chunk-XWVM4KPK.js";
|
|
5
5
|
|
|
6
6
|
// src/lib/responsiveness-probe.ts
|
|
@@ -596,4 +596,4 @@ export {
|
|
|
596
596
|
readAndResetSlackReplyBindingClassifications,
|
|
597
597
|
readAndResetSlackReplyTargetClassifications
|
|
598
598
|
};
|
|
599
|
-
//# sourceMappingURL=responsiveness-probe-
|
|
599
|
+
//# sourceMappingURL=responsiveness-probe-RBLOTOHD.js.map
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|