@abraca/mcp 2.4.0 → 2.6.0
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/README.md +32 -0
- package/dist/abracadabra-mcp.cjs +336 -139
- package/dist/abracadabra-mcp.cjs.map +1 -1
- package/dist/abracadabra-mcp.esm.js +337 -140
- package/dist/abracadabra-mcp.esm.js.map +1 -1
- package/dist/index.d.ts +41 -0
- package/package.json +2 -2
- package/src/resources/tree-resource.ts +6 -1
- package/src/server.ts +273 -7
- package/src/tools/awareness.ts +1 -1
- package/src/tools/channel.ts +5 -3
- package/src/tools/content.ts +26 -15
- package/src/tools/meta.ts +8 -4
- package/src/tools/tree.ts +24 -21
|
@@ -4,7 +4,7 @@ import addFormats from "ajv-formats";
|
|
|
4
4
|
import { ZodOptional, z } from "zod";
|
|
5
5
|
import process$1 from "node:process";
|
|
6
6
|
import * as Y from "yjs";
|
|
7
|
-
import { AbracadabraClient, AbracadabraProvider, Kind, SERVER_ROOT_ID, awarenessStatesToArray } from "@abraca/dabra";
|
|
7
|
+
import { AbracadabraClient, AbracadabraProvider, Kind, SERVER_ROOT_ID, awarenessStatesToArray, foldRecords, isEncryptedContent, makeEntryMap, patchEntry, recordFromYAny, toPlain } from "@abraca/dabra";
|
|
8
8
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
9
9
|
import * as fs from "node:fs";
|
|
10
10
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -14086,6 +14086,9 @@ var AbracadabraMCPServer = class AbracadabraMCPServer {
|
|
|
14086
14086
|
static {
|
|
14087
14087
|
this.TOOL_HISTORY_MAX = 20;
|
|
14088
14088
|
}
|
|
14089
|
+
static {
|
|
14090
|
+
this.DEDUPE_MAX = 1e3;
|
|
14091
|
+
}
|
|
14089
14092
|
constructor(config) {
|
|
14090
14093
|
this._serverInfo = null;
|
|
14091
14094
|
this._rootDocId = null;
|
|
@@ -14103,6 +14106,14 @@ var AbracadabraMCPServer = class AbracadabraMCPServer {
|
|
|
14103
14106
|
this._lastChatChannel = null;
|
|
14104
14107
|
this._signFn = null;
|
|
14105
14108
|
this._toolHistory = [];
|
|
14109
|
+
this._inboxStarted = false;
|
|
14110
|
+
this._inboxDocId = null;
|
|
14111
|
+
this._inboxDoc = null;
|
|
14112
|
+
this._inboxProvider = null;
|
|
14113
|
+
this._inboxDisposers = [];
|
|
14114
|
+
this._inboxInitialized = false;
|
|
14115
|
+
this._seenInboxIds = /* @__PURE__ */ new Set();
|
|
14116
|
+
this._dispatchedMessageIds = /* @__PURE__ */ new Set();
|
|
14106
14117
|
this.config = config;
|
|
14107
14118
|
this.client = new AbracadabraClient({
|
|
14108
14119
|
url: config.url,
|
|
@@ -14332,6 +14343,182 @@ var AbracadabraMCPServer = class AbracadabraMCPServer {
|
|
|
14332
14343
|
this._handleStatelessChat(payload);
|
|
14333
14344
|
});
|
|
14334
14345
|
console.error("[abracadabra-mcp] Stateless chat listener attached");
|
|
14346
|
+
this._startInboxNotifications();
|
|
14347
|
+
}
|
|
14348
|
+
}
|
|
14349
|
+
/**
|
|
14350
|
+
* Bootstrap inbox observation. Sends `messages:inbox_fetch` over the active
|
|
14351
|
+
* provider; the server's `messages:inbox_history` reply carries the
|
|
14352
|
+
* `inbox_doc_id`. We then open a dedicated provider on that doc and observe
|
|
14353
|
+
* its `entries` Y.Array for live DM/mention dispatch. Mirrors the
|
|
14354
|
+
* dashboard's `useNotifications` pattern.
|
|
14355
|
+
*/
|
|
14356
|
+
async _startInboxNotifications() {
|
|
14357
|
+
if (this._inboxStarted) return;
|
|
14358
|
+
const provider = this._activeConnection?.provider;
|
|
14359
|
+
if (!provider) return;
|
|
14360
|
+
this._inboxStarted = true;
|
|
14361
|
+
provider.on("stateless", ({ payload }) => {
|
|
14362
|
+
if (!payload.includes("\"messages:inbox_history\"")) return;
|
|
14363
|
+
try {
|
|
14364
|
+
const data = JSON.parse(payload);
|
|
14365
|
+
if (data?.type !== "messages:inbox_history") return;
|
|
14366
|
+
const inboxDocId = typeof data.inbox_doc_id === "string" ? data.inbox_doc_id : null;
|
|
14367
|
+
if (inboxDocId) this._ensureInboxObserver(inboxDocId);
|
|
14368
|
+
} catch {}
|
|
14369
|
+
});
|
|
14370
|
+
provider.sendStateless(JSON.stringify({
|
|
14371
|
+
type: "messages:inbox_fetch",
|
|
14372
|
+
limit: 50,
|
|
14373
|
+
unread_only: false
|
|
14374
|
+
}));
|
|
14375
|
+
console.error("[abracadabra-mcp] Inbox bootstrap sent (messages:inbox_fetch)");
|
|
14376
|
+
}
|
|
14377
|
+
/**
|
|
14378
|
+
* Open a dedicated provider on the agent's inbox doc and observe its
|
|
14379
|
+
* `entries` Y.Array. The server is the only writer; we only read.
|
|
14380
|
+
*/
|
|
14381
|
+
async _ensureInboxObserver(inboxDocId) {
|
|
14382
|
+
if (this._inboxDocId) return;
|
|
14383
|
+
this._inboxDocId = inboxDocId;
|
|
14384
|
+
if (!this.client.isTokenValid() && this._signFn && this._userId) await this.client.loginWithKey(this._userId, this._signFn);
|
|
14385
|
+
const doc = new Y.Doc({ guid: inboxDocId });
|
|
14386
|
+
const provider = new AbracadabraProvider({
|
|
14387
|
+
name: inboxDocId,
|
|
14388
|
+
document: doc,
|
|
14389
|
+
client: this.client,
|
|
14390
|
+
disableOfflineStore: true,
|
|
14391
|
+
subdocLoading: "lazy"
|
|
14392
|
+
});
|
|
14393
|
+
this._inboxDoc = doc;
|
|
14394
|
+
this._inboxProvider = provider;
|
|
14395
|
+
try {
|
|
14396
|
+
await waitForSync(provider);
|
|
14397
|
+
} catch (err) {
|
|
14398
|
+
console.error(`[abracadabra-mcp] Inbox sync failed: ${err?.message ?? err}`);
|
|
14399
|
+
return;
|
|
14400
|
+
}
|
|
14401
|
+
const entriesArr = doc.getArray("entries");
|
|
14402
|
+
const readMap = doc.getMap("read");
|
|
14403
|
+
const onChange = () => {
|
|
14404
|
+
this._pumpInbox(entriesArr, readMap);
|
|
14405
|
+
};
|
|
14406
|
+
entriesArr.observe(onChange);
|
|
14407
|
+
readMap.observe(onChange);
|
|
14408
|
+
this._inboxDisposers.push(() => entriesArr.unobserve(onChange));
|
|
14409
|
+
this._inboxDisposers.push(() => readMap.unobserve(onChange));
|
|
14410
|
+
await this._pumpInbox(entriesArr, readMap);
|
|
14411
|
+
console.error(`[abracadabra-mcp] Inbox observer attached (${inboxDocId})`);
|
|
14412
|
+
}
|
|
14413
|
+
/**
|
|
14414
|
+
* Diff the inbox `entries` array against what we've already seen. On the
|
|
14415
|
+
* first pump we only record a baseline (don't replay history). New entries
|
|
14416
|
+
* are classified by their authoritative `kind` and dispatched.
|
|
14417
|
+
*/
|
|
14418
|
+
async _pumpInbox(entriesArr, readMap) {
|
|
14419
|
+
const entries = entriesArr.toArray().map((e) => typeof e?.toJSON === "function" ? e.toJSON() : e);
|
|
14420
|
+
if (!this._inboxInitialized) {
|
|
14421
|
+
for (const e of entries) if (e?.id) this._seenInboxIds.add(e.id);
|
|
14422
|
+
this._inboxInitialized = true;
|
|
14423
|
+
console.error(`[abracadabra-mcp] Inbox baseline: ${this._seenInboxIds.size} existing entries (not replayed)`);
|
|
14424
|
+
return;
|
|
14425
|
+
}
|
|
14426
|
+
for (const e of entries) {
|
|
14427
|
+
const id = e?.id;
|
|
14428
|
+
if (!id || this._seenInboxIds.has(id)) continue;
|
|
14429
|
+
this._seenInboxIds.add(id);
|
|
14430
|
+
if (readMap.get(id)) continue;
|
|
14431
|
+
try {
|
|
14432
|
+
await this._dispatchInboxEntry(e);
|
|
14433
|
+
} catch (err) {
|
|
14434
|
+
console.error(`[abracadabra-mcp] Inbox dispatch failed for ${id}: ${err?.message ?? err}`);
|
|
14435
|
+
}
|
|
14436
|
+
}
|
|
14437
|
+
this._trimSet(this._seenInboxIds);
|
|
14438
|
+
}
|
|
14439
|
+
/** Classify + dispatch one inbox entry as a channel notification. */
|
|
14440
|
+
async _dispatchInboxEntry(entry) {
|
|
14441
|
+
if (!this._serverRef) return;
|
|
14442
|
+
const kind = typeof entry?.kind === "string" ? entry.kind : "";
|
|
14443
|
+
const channelDocId = typeof entry?.channel_doc_id === "string" ? entry.channel_doc_id : "";
|
|
14444
|
+
const messageId = typeof entry?.message_id === "string" ? entry.message_id : null;
|
|
14445
|
+
const senderId = typeof entry?.sender_id === "string" ? entry.sender_id : "";
|
|
14446
|
+
if (!channelDocId) return;
|
|
14447
|
+
if (senderId && senderId === this._userId) return;
|
|
14448
|
+
const mode = this.triggerMode;
|
|
14449
|
+
if (kind === "mention" || kind === "reply") {
|
|
14450
|
+
if (mode === "task") return;
|
|
14451
|
+
} else if (kind !== "dm") return;
|
|
14452
|
+
if (messageId && this._rememberDispatched(messageId)) return;
|
|
14453
|
+
const content = await this._resolveInboxContent(channelDocId, messageId, entry?.preview);
|
|
14454
|
+
this._lastChatChannel = channelDocId;
|
|
14455
|
+
this._beginTurn();
|
|
14456
|
+
this.setAutoStatus("thinking");
|
|
14457
|
+
await this._serverRef.notification({
|
|
14458
|
+
method: "notifications/claude/channel",
|
|
14459
|
+
params: {
|
|
14460
|
+
content,
|
|
14461
|
+
instructions: `You MUST use send_chat_message with channel_doc_id="${channelDocId}" for ALL responses — both progress updates and final answers. The user CANNOT see plain text output; they only see messages sent via send_chat_message. When doing multi-step work, send brief status updates via send_chat_message (e.g. "Looking into that..." or "Found it, writing up results...") so the user knows you're working. Never output plain text as a substitute for send_chat_message.`,
|
|
14462
|
+
meta: {
|
|
14463
|
+
source: "abracadabra",
|
|
14464
|
+
type: kind === "dm" ? "dm_message" : "chat_message",
|
|
14465
|
+
channel_doc_id: channelDocId,
|
|
14466
|
+
sender: entry?.sender_name ?? "Unknown",
|
|
14467
|
+
sender_id: senderId,
|
|
14468
|
+
doc_id: channelDocId
|
|
14469
|
+
}
|
|
14470
|
+
}
|
|
14471
|
+
});
|
|
14472
|
+
console.error(`[abracadabra-mcp] Dispatched ${kind} on ${channelDocId} from ${entry?.sender_name ?? (senderId || "unknown")}`);
|
|
14473
|
+
this._activeConnection?.provider?.sendStateless(JSON.stringify({
|
|
14474
|
+
type: "messages:inbox_mark_read",
|
|
14475
|
+
id: entry.id
|
|
14476
|
+
}));
|
|
14477
|
+
}
|
|
14478
|
+
/**
|
|
14479
|
+
* Resolve full message content. The inbox `preview` is truncated to ≤200
|
|
14480
|
+
* bytes (and null for E2E), so for fidelity we read the actual record from
|
|
14481
|
+
* the channel/DM doc's active period — same shape the dashboard reads.
|
|
14482
|
+
* Falls back to the preview, then a short notice.
|
|
14483
|
+
*/
|
|
14484
|
+
async _resolveInboxContent(channelDocId, messageId, preview) {
|
|
14485
|
+
const previewStr = typeof preview === "string" && preview.length > 0 ? preview : null;
|
|
14486
|
+
const root = this._activeConnection?.provider;
|
|
14487
|
+
if (root && messageId) try {
|
|
14488
|
+
const wrapper = await root.loadChild(channelDocId);
|
|
14489
|
+
if (!wrapper.synced) await waitForSync(wrapper);
|
|
14490
|
+
const periods = wrapper.document.getArray("periods");
|
|
14491
|
+
const len = periods.length;
|
|
14492
|
+
for (let i = len - 1; i >= 0 && i >= len - 2; i--) {
|
|
14493
|
+
const p = periods.get(i);
|
|
14494
|
+
const periodId = p?.id ?? p?.get?.("id");
|
|
14495
|
+
if (!periodId) continue;
|
|
14496
|
+
const period = await root.loadChild(periodId);
|
|
14497
|
+
if (!period.synced) await waitForSync(period);
|
|
14498
|
+
const hit = foldRecords(period.document.getArray("messages").toArray().map((v) => recordFromYAny(v)).filter((r) => r !== null)).find((f) => f.id === messageId);
|
|
14499
|
+
if (hit) {
|
|
14500
|
+
if (isEncryptedContent(hit.content)) return previewStr ?? "[encrypted message — this agent is not provisioned to read this channel]";
|
|
14501
|
+
return hit.content;
|
|
14502
|
+
}
|
|
14503
|
+
}
|
|
14504
|
+
} catch (err) {
|
|
14505
|
+
console.error(`[abracadabra-mcp] content read failed for ${channelDocId}/${messageId}: ${err?.message ?? err}`);
|
|
14506
|
+
}
|
|
14507
|
+
return previewStr ?? "[message content unavailable]";
|
|
14508
|
+
}
|
|
14509
|
+
_rememberDispatched(messageId) {
|
|
14510
|
+
if (this._dispatchedMessageIds.has(messageId)) return true;
|
|
14511
|
+
this._dispatchedMessageIds.add(messageId);
|
|
14512
|
+
this._trimSet(this._dispatchedMessageIds);
|
|
14513
|
+
return false;
|
|
14514
|
+
}
|
|
14515
|
+
_trimSet(s) {
|
|
14516
|
+
if (s.size <= AbracadabraMCPServer.DEDUPE_MAX) return;
|
|
14517
|
+
const excess = s.size - AbracadabraMCPServer.DEDUPE_MAX;
|
|
14518
|
+
let i = 0;
|
|
14519
|
+
for (const v of s) {
|
|
14520
|
+
if (i++ >= excess) break;
|
|
14521
|
+
s.delete(v);
|
|
14335
14522
|
}
|
|
14336
14523
|
}
|
|
14337
14524
|
/** Attach awareness observer to detect `ai:task` fields from human users. */
|
|
@@ -14417,6 +14604,7 @@ var AbracadabraMCPServer = class AbracadabraMCPServer {
|
|
|
14417
14604
|
if (data.sender_id && data.sender_id === this._userId) return;
|
|
14418
14605
|
const channelDocId = data.channel_doc_id;
|
|
14419
14606
|
if (!channelDocId) return;
|
|
14607
|
+
if (data.id && this._rememberDispatched(data.id)) return;
|
|
14420
14608
|
const mode = this.triggerMode;
|
|
14421
14609
|
const content = typeof data.content === "string" ? data.content : "";
|
|
14422
14610
|
let dispatchContent = content;
|
|
@@ -14567,6 +14755,13 @@ var AbracadabraMCPServer = class AbracadabraMCPServer {
|
|
|
14567
14755
|
clearInterval(this.evictionTimer);
|
|
14568
14756
|
this.evictionTimer = null;
|
|
14569
14757
|
}
|
|
14758
|
+
for (const dispose of this._inboxDisposers) try {
|
|
14759
|
+
dispose();
|
|
14760
|
+
} catch {}
|
|
14761
|
+
this._inboxDisposers = [];
|
|
14762
|
+
this._inboxProvider?.destroy();
|
|
14763
|
+
this._inboxProvider = null;
|
|
14764
|
+
this._inboxDoc = null;
|
|
14570
14765
|
for (const [, cached] of this.childCache) cached.provider.destroy();
|
|
14571
14766
|
this.childCache.clear();
|
|
14572
14767
|
for (const [, conn] of this._spaceConnections) {
|
|
@@ -15327,13 +15522,13 @@ function normalizeRootId(id, server) {
|
|
|
15327
15522
|
return id === server.rootDocId ? null : id;
|
|
15328
15523
|
}
|
|
15329
15524
|
/** Safely read a tree map value, converting Y.Map to plain object if needed. */
|
|
15330
|
-
function toPlain(val) {
|
|
15525
|
+
function toPlain$1(val) {
|
|
15331
15526
|
return val instanceof Y.Map ? val.toJSON() : val;
|
|
15332
15527
|
}
|
|
15333
15528
|
function readEntries$1(treeMap) {
|
|
15334
15529
|
const entries = [];
|
|
15335
15530
|
treeMap.forEach((raw, id) => {
|
|
15336
|
-
const value = toPlain(raw);
|
|
15531
|
+
const value = toPlain$1(raw);
|
|
15337
15532
|
if (typeof value !== "object" || value === null) return;
|
|
15338
15533
|
entries.push({
|
|
15339
15534
|
id,
|
|
@@ -15530,7 +15725,7 @@ function registerTreeTools(mcp, server, validator = null) {
|
|
|
15530
15725
|
const normalizedParent = normalizeRootId(parentId, server);
|
|
15531
15726
|
const now = Date.now();
|
|
15532
15727
|
rootDoc.transact(() => {
|
|
15533
|
-
treeMap.set(id, {
|
|
15728
|
+
treeMap.set(id, makeEntryMap({
|
|
15534
15729
|
label,
|
|
15535
15730
|
parentId: normalizedParent,
|
|
15536
15731
|
order: now,
|
|
@@ -15538,7 +15733,7 @@ function registerTreeTools(mcp, server, validator = null) {
|
|
|
15538
15733
|
meta,
|
|
15539
15734
|
createdAt: now,
|
|
15540
15735
|
updatedAt: now
|
|
15541
|
-
});
|
|
15736
|
+
}));
|
|
15542
15737
|
});
|
|
15543
15738
|
server.setFocusedDoc(id);
|
|
15544
15739
|
return { content: [{
|
|
@@ -15565,14 +15760,11 @@ function registerTreeTools(mcp, server, validator = null) {
|
|
|
15565
15760
|
type: "text",
|
|
15566
15761
|
text: "Not connected"
|
|
15567
15762
|
}] };
|
|
15568
|
-
|
|
15569
|
-
if (!raw) return { content: [{
|
|
15763
|
+
if (!treeMap.get(id)) return { content: [{
|
|
15570
15764
|
type: "text",
|
|
15571
15765
|
text: `Document ${id} not found`
|
|
15572
15766
|
}] };
|
|
15573
|
-
|
|
15574
|
-
treeMap.set(id, {
|
|
15575
|
-
...entry,
|
|
15767
|
+
patchEntry(treeMap, id, {
|
|
15576
15768
|
label,
|
|
15577
15769
|
updatedAt: Date.now()
|
|
15578
15770
|
});
|
|
@@ -15596,14 +15788,11 @@ function registerTreeTools(mcp, server, validator = null) {
|
|
|
15596
15788
|
type: "text",
|
|
15597
15789
|
text: "Not connected"
|
|
15598
15790
|
}] };
|
|
15599
|
-
|
|
15600
|
-
if (!raw) return { content: [{
|
|
15791
|
+
if (!treeMap.get(id)) return { content: [{
|
|
15601
15792
|
type: "text",
|
|
15602
15793
|
text: `Document ${id} not found`
|
|
15603
15794
|
}] };
|
|
15604
|
-
|
|
15605
|
-
treeMap.set(id, {
|
|
15606
|
-
...entry,
|
|
15795
|
+
patchEntry(treeMap, id, {
|
|
15607
15796
|
parentId: normalizeRootId(newParentId, server),
|
|
15608
15797
|
order: order ?? Date.now(),
|
|
15609
15798
|
updatedAt: Date.now()
|
|
@@ -15632,7 +15821,7 @@ function registerTreeTools(mcp, server, validator = null) {
|
|
|
15632
15821
|
for (const nid of toDelete) {
|
|
15633
15822
|
const raw = treeMap.get(nid);
|
|
15634
15823
|
if (!raw) continue;
|
|
15635
|
-
const entry = toPlain(raw);
|
|
15824
|
+
const entry = toPlain$1(raw);
|
|
15636
15825
|
trashMap.set(nid, {
|
|
15637
15826
|
label: entry.label || "Untitled",
|
|
15638
15827
|
parentId: entry.parentId ?? null,
|
|
@@ -15663,14 +15852,11 @@ function registerTreeTools(mcp, server, validator = null) {
|
|
|
15663
15852
|
type: "text",
|
|
15664
15853
|
text: "Not connected"
|
|
15665
15854
|
}] };
|
|
15666
|
-
|
|
15667
|
-
if (!raw) return { content: [{
|
|
15855
|
+
if (!treeMap.get(id)) return { content: [{
|
|
15668
15856
|
type: "text",
|
|
15669
15857
|
text: `Document ${id} not found`
|
|
15670
15858
|
}] };
|
|
15671
|
-
|
|
15672
|
-
treeMap.set(id, {
|
|
15673
|
-
...entry,
|
|
15859
|
+
patchEntry(treeMap, id, {
|
|
15674
15860
|
type,
|
|
15675
15861
|
updatedAt: Date.now()
|
|
15676
15862
|
});
|
|
@@ -15713,13 +15899,13 @@ function registerTreeTools(mcp, server, validator = null) {
|
|
|
15713
15899
|
type: "text",
|
|
15714
15900
|
text: `Document ${id} not found`
|
|
15715
15901
|
}] };
|
|
15716
|
-
const entry = toPlain(raw);
|
|
15902
|
+
const entry = toPlain$1(raw);
|
|
15717
15903
|
const newId = crypto.randomUUID();
|
|
15718
|
-
treeMap.set(newId, {
|
|
15904
|
+
treeMap.set(newId, makeEntryMap({
|
|
15719
15905
|
...entry,
|
|
15720
15906
|
label: (entry.label || "Untitled") + " (copy)",
|
|
15721
15907
|
order: Date.now()
|
|
15722
|
-
});
|
|
15908
|
+
}));
|
|
15723
15909
|
server.setFocusedDoc(newId);
|
|
15724
15910
|
return { content: [{
|
|
15725
15911
|
type: "text",
|
|
@@ -15762,31 +15948,37 @@ function registerContentTools(mcp, server) {
|
|
|
15762
15948
|
name: "read_document",
|
|
15763
15949
|
target: docId
|
|
15764
15950
|
});
|
|
15765
|
-
const
|
|
15951
|
+
const fragment = (await server.getChildProvider(docId)).document.getXmlFragment("default");
|
|
15766
15952
|
server.setFocusedDoc(docId);
|
|
15767
15953
|
server.setDocCursor(docId, 0);
|
|
15768
15954
|
const treeMap = server.getTreeMap();
|
|
15769
|
-
let label =
|
|
15955
|
+
let label = "Untitled";
|
|
15770
15956
|
let type;
|
|
15771
15957
|
let meta;
|
|
15772
15958
|
let children = [];
|
|
15773
15959
|
if (treeMap) {
|
|
15774
|
-
const entry = treeMap.get(docId);
|
|
15775
|
-
if (entry) {
|
|
15776
|
-
label = entry.label ||
|
|
15960
|
+
const entry = toPlain(treeMap.get(docId));
|
|
15961
|
+
if (entry && typeof entry === "object") {
|
|
15962
|
+
label = entry.label || label;
|
|
15777
15963
|
type = entry.type;
|
|
15778
15964
|
meta = entry.meta;
|
|
15779
15965
|
}
|
|
15780
|
-
|
|
15781
|
-
|
|
15966
|
+
const collected = [];
|
|
15967
|
+
treeMap.forEach((raw, id) => {
|
|
15968
|
+
const value = toPlain(raw);
|
|
15969
|
+
if (typeof value !== "object" || value === null) return;
|
|
15970
|
+
if (value.parentId === docId) collected.push({
|
|
15782
15971
|
id,
|
|
15783
15972
|
label: value.label || "Untitled",
|
|
15784
15973
|
type: value.type,
|
|
15785
|
-
meta: value.meta
|
|
15974
|
+
meta: value.meta,
|
|
15975
|
+
order: value.order ?? 0
|
|
15786
15976
|
});
|
|
15787
15977
|
});
|
|
15788
|
-
|
|
15978
|
+
collected.sort((a, b) => a.order - b.order);
|
|
15979
|
+
children = collected.map(({ order, ...rest }) => rest);
|
|
15789
15980
|
}
|
|
15981
|
+
const markdown = yjsToMarkdown(fragment, label, meta, type);
|
|
15790
15982
|
const result = {
|
|
15791
15983
|
label,
|
|
15792
15984
|
type,
|
|
@@ -15827,19 +16019,19 @@ function registerContentTools(mcp, server) {
|
|
|
15827
16019
|
const treeMap = server.getTreeMap();
|
|
15828
16020
|
const rootDoc = server.rootDocument;
|
|
15829
16021
|
if (treeMap && rootDoc) {
|
|
15830
|
-
const
|
|
15831
|
-
if (
|
|
15832
|
-
const
|
|
15833
|
-
|
|
15834
|
-
updatedAt: Date.now()
|
|
15835
|
-
|
|
15836
|
-
|
|
15837
|
-
|
|
15838
|
-
|
|
15839
|
-
|
|
15840
|
-
|
|
15841
|
-
|
|
15842
|
-
}
|
|
16022
|
+
const rawEntry = treeMap.get(docId);
|
|
16023
|
+
if (rawEntry) {
|
|
16024
|
+
const cur = toPlain(rawEntry);
|
|
16025
|
+
rootDoc.transact(() => {
|
|
16026
|
+
const patch = { updatedAt: Date.now() };
|
|
16027
|
+
if (title) patch.label = title;
|
|
16028
|
+
if (Object.keys(meta).length > 0) patch.meta = {
|
|
16029
|
+
...cur.meta ?? {},
|
|
16030
|
+
...meta
|
|
16031
|
+
};
|
|
16032
|
+
patchEntry(treeMap, docId, patch);
|
|
16033
|
+
});
|
|
16034
|
+
}
|
|
15843
16035
|
}
|
|
15844
16036
|
}
|
|
15845
16037
|
if (writeMode === "replace") doc.transact(() => {
|
|
@@ -15907,11 +16099,12 @@ function registerMetaTools(mcp, server, validator = null) {
|
|
|
15907
16099
|
type: "text",
|
|
15908
16100
|
text: "Not connected"
|
|
15909
16101
|
}] };
|
|
15910
|
-
const
|
|
15911
|
-
if (!
|
|
16102
|
+
const rawEntry = treeMap.get(docId);
|
|
16103
|
+
if (!rawEntry) return { content: [{
|
|
15912
16104
|
type: "text",
|
|
15913
16105
|
text: `Document ${docId} not found`
|
|
15914
16106
|
}] };
|
|
16107
|
+
const entry = toPlain(rawEntry);
|
|
15915
16108
|
const mergedMeta = {
|
|
15916
16109
|
...entry.meta ?? {},
|
|
15917
16110
|
...meta
|
|
@@ -15929,8 +16122,7 @@ function registerMetaTools(mcp, server, validator = null) {
|
|
|
15929
16122
|
};
|
|
15930
16123
|
}
|
|
15931
16124
|
}
|
|
15932
|
-
treeMap
|
|
15933
|
-
...entry,
|
|
16125
|
+
patchEntry(treeMap, docId, {
|
|
15934
16126
|
meta: mergedMeta,
|
|
15935
16127
|
updatedAt: Date.now()
|
|
15936
16128
|
});
|
|
@@ -16120,7 +16312,7 @@ function registerAwarenessTools(mcp, server) {
|
|
|
16120
16312
|
})
|
|
16121
16313
|
}] };
|
|
16122
16314
|
const resolvedInboxId = inboxId;
|
|
16123
|
-
const
|
|
16315
|
+
const markdown = yjsToMarkdown((await server.getChildProvider(resolvedInboxId)).document.getXmlFragment("default"), "AI Inbox");
|
|
16124
16316
|
const pendingTasks = [];
|
|
16125
16317
|
treeMap.forEach((value, id) => {
|
|
16126
16318
|
if (value.parentId === resolvedInboxId) pendingTasks.push({
|
|
@@ -16206,16 +16398,16 @@ function registerChannelTools(mcp, server) {
|
|
|
16206
16398
|
const replyId = crypto.randomUUID();
|
|
16207
16399
|
const now = Date.now();
|
|
16208
16400
|
rootDoc.transact(() => {
|
|
16209
|
-
treeMap.set(replyId, {
|
|
16401
|
+
treeMap.set(replyId, makeEntryMap({
|
|
16210
16402
|
label,
|
|
16211
16403
|
parentId: doc_id,
|
|
16212
16404
|
order: now,
|
|
16213
16405
|
type: "doc",
|
|
16214
16406
|
createdAt: now,
|
|
16215
16407
|
updatedAt: now
|
|
16216
|
-
});
|
|
16408
|
+
}));
|
|
16217
16409
|
});
|
|
16218
|
-
populateYDocFromMarkdown((await server.getChildProvider(replyId)).document, text);
|
|
16410
|
+
populateYDocFromMarkdown((await server.getChildProvider(replyId)).document.getXmlFragment("default"), text);
|
|
16219
16411
|
if (task_id) server.clearAiTask(task_id);
|
|
16220
16412
|
return { content: [{
|
|
16221
16413
|
type: "text",
|
|
@@ -16989,9 +17181,14 @@ function registerAgentGuide(mcp) {
|
|
|
16989
17181
|
|
|
16990
17182
|
//#endregion
|
|
16991
17183
|
//#region packages/mcp/src/resources/tree-resource.ts
|
|
17184
|
+
/**
|
|
17185
|
+
* Dynamic resource: document tree as navigable JSON.
|
|
17186
|
+
*/
|
|
16992
17187
|
function readEntries(treeMap) {
|
|
16993
17188
|
const entries = [];
|
|
16994
|
-
treeMap.forEach((
|
|
17189
|
+
treeMap.forEach((raw, id) => {
|
|
17190
|
+
const value = toPlain(raw);
|
|
17191
|
+
if (typeof value !== "object" || value === null) return;
|
|
16995
17192
|
entries.push({
|
|
16996
17193
|
id,
|
|
16997
17194
|
label: value.label || "Untitled",
|
|
@@ -17288,7 +17485,7 @@ var HookBridge = class {
|
|
|
17288
17485
|
};
|
|
17289
17486
|
|
|
17290
17487
|
//#endregion
|
|
17291
|
-
//#region node_modules/ajv/dist/compile/codegen/code.js
|
|
17488
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/codegen/code.js
|
|
17292
17489
|
var require_code$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
17293
17490
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17294
17491
|
exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
|
|
@@ -17424,7 +17621,7 @@ var require_code$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
17424
17621
|
}));
|
|
17425
17622
|
|
|
17426
17623
|
//#endregion
|
|
17427
|
-
//#region node_modules/ajv/dist/compile/codegen/scope.js
|
|
17624
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/codegen/scope.js
|
|
17428
17625
|
var require_scope = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
17429
17626
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17430
17627
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
|
|
@@ -17562,7 +17759,7 @@ var require_scope = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
17562
17759
|
}));
|
|
17563
17760
|
|
|
17564
17761
|
//#endregion
|
|
17565
|
-
//#region node_modules/ajv/dist/compile/codegen/index.js
|
|
17762
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/codegen/index.js
|
|
17566
17763
|
var require_codegen = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
17567
17764
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17568
17765
|
exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0;
|
|
@@ -18232,7 +18429,7 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18232
18429
|
}));
|
|
18233
18430
|
|
|
18234
18431
|
//#endregion
|
|
18235
|
-
//#region node_modules/ajv/dist/compile/util.js
|
|
18432
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/util.js
|
|
18236
18433
|
var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18237
18434
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18238
18435
|
exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0;
|
|
@@ -18374,7 +18571,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18374
18571
|
}));
|
|
18375
18572
|
|
|
18376
18573
|
//#endregion
|
|
18377
|
-
//#region node_modules/ajv/dist/compile/names.js
|
|
18574
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/names.js
|
|
18378
18575
|
var require_names = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18379
18576
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18380
18577
|
const codegen_1 = require_codegen();
|
|
@@ -18400,7 +18597,7 @@ var require_names = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18400
18597
|
}));
|
|
18401
18598
|
|
|
18402
18599
|
//#endregion
|
|
18403
|
-
//#region node_modules/ajv/dist/compile/errors.js
|
|
18600
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/errors.js
|
|
18404
18601
|
var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18405
18602
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18406
18603
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
|
|
@@ -18497,7 +18694,7 @@ var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18497
18694
|
}));
|
|
18498
18695
|
|
|
18499
18696
|
//#endregion
|
|
18500
|
-
//#region node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
18697
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
18501
18698
|
var require_boolSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18502
18699
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18503
18700
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
|
|
@@ -18540,7 +18737,7 @@ var require_boolSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18540
18737
|
}));
|
|
18541
18738
|
|
|
18542
18739
|
//#endregion
|
|
18543
|
-
//#region node_modules/ajv/dist/compile/rules.js
|
|
18740
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/rules.js
|
|
18544
18741
|
var require_rules = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18545
18742
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18546
18743
|
exports.getRules = exports.isJSONType = void 0;
|
|
@@ -18599,7 +18796,7 @@ var require_rules = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18599
18796
|
}));
|
|
18600
18797
|
|
|
18601
18798
|
//#endregion
|
|
18602
|
-
//#region node_modules/ajv/dist/compile/validate/applicability.js
|
|
18799
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/validate/applicability.js
|
|
18603
18800
|
var require_applicability = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18604
18801
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18605
18802
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
|
|
@@ -18620,7 +18817,7 @@ var require_applicability = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18620
18817
|
}));
|
|
18621
18818
|
|
|
18622
18819
|
//#endregion
|
|
18623
|
-
//#region node_modules/ajv/dist/compile/validate/dataType.js
|
|
18820
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/validate/dataType.js
|
|
18624
18821
|
var require_dataType = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18625
18822
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18626
18823
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
|
|
@@ -18785,7 +18982,7 @@ var require_dataType = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18785
18982
|
}));
|
|
18786
18983
|
|
|
18787
18984
|
//#endregion
|
|
18788
|
-
//#region node_modules/ajv/dist/compile/validate/defaults.js
|
|
18985
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/validate/defaults.js
|
|
18789
18986
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18790
18987
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18791
18988
|
exports.assignDefaults = void 0;
|
|
@@ -18812,7 +19009,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18812
19009
|
}));
|
|
18813
19010
|
|
|
18814
19011
|
//#endregion
|
|
18815
|
-
//#region node_modules/ajv/dist/vocabularies/code.js
|
|
19012
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/code.js
|
|
18816
19013
|
var require_code = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18817
19014
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18818
19015
|
exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = void 0;
|
|
@@ -18937,7 +19134,7 @@ var require_code = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18937
19134
|
}));
|
|
18938
19135
|
|
|
18939
19136
|
//#endregion
|
|
18940
|
-
//#region node_modules/ajv/dist/compile/validate/keyword.js
|
|
19137
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/validate/keyword.js
|
|
18941
19138
|
var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18942
19139
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18943
19140
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
|
|
@@ -19044,7 +19241,7 @@ var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19044
19241
|
}));
|
|
19045
19242
|
|
|
19046
19243
|
//#endregion
|
|
19047
|
-
//#region node_modules/ajv/dist/compile/validate/subschema.js
|
|
19244
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/validate/subschema.js
|
|
19048
19245
|
var require_subschema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
19049
19246
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19050
19247
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
|
|
@@ -19143,7 +19340,7 @@ var require_fast_deep_equal = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
19143
19340
|
}));
|
|
19144
19341
|
|
|
19145
19342
|
//#endregion
|
|
19146
|
-
//#region node_modules/json-schema-traverse/index.js
|
|
19343
|
+
//#region packages/mcp/node_modules/json-schema-traverse/index.js
|
|
19147
19344
|
var require_json_schema_traverse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
19148
19345
|
var traverse = module.exports = function(schema, opts, cb) {
|
|
19149
19346
|
if (typeof opts == "function") {
|
|
@@ -19219,7 +19416,7 @@ var require_json_schema_traverse = /* @__PURE__ */ __commonJSMin(((exports, modu
|
|
|
19219
19416
|
}));
|
|
19220
19417
|
|
|
19221
19418
|
//#endregion
|
|
19222
|
-
//#region node_modules/ajv/dist/compile/resolve.js
|
|
19419
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/resolve.js
|
|
19223
19420
|
var require_resolve = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
19224
19421
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19225
19422
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
|
|
@@ -19347,7 +19544,7 @@ var require_resolve = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19347
19544
|
}));
|
|
19348
19545
|
|
|
19349
19546
|
//#endregion
|
|
19350
|
-
//#region node_modules/ajv/dist/compile/validate/index.js
|
|
19547
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/validate/index.js
|
|
19351
19548
|
var require_validate = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
19352
19549
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19353
19550
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
|
|
@@ -19767,7 +19964,7 @@ var require_validate = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19767
19964
|
}));
|
|
19768
19965
|
|
|
19769
19966
|
//#endregion
|
|
19770
|
-
//#region node_modules/ajv/dist/runtime/validation_error.js
|
|
19967
|
+
//#region packages/mcp/node_modules/ajv/dist/runtime/validation_error.js
|
|
19771
19968
|
var require_validation_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
19772
19969
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19773
19970
|
var ValidationError = class extends Error {
|
|
@@ -19781,7 +19978,7 @@ var require_validation_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19781
19978
|
}));
|
|
19782
19979
|
|
|
19783
19980
|
//#endregion
|
|
19784
|
-
//#region node_modules/ajv/dist/compile/ref_error.js
|
|
19981
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/ref_error.js
|
|
19785
19982
|
var require_ref_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
19786
19983
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19787
19984
|
const resolve_1 = require_resolve();
|
|
@@ -19796,7 +19993,7 @@ var require_ref_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19796
19993
|
}));
|
|
19797
19994
|
|
|
19798
19995
|
//#endregion
|
|
19799
|
-
//#region node_modules/ajv/dist/compile/index.js
|
|
19996
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/index.js
|
|
19800
19997
|
var require_compile = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
19801
19998
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19802
19999
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
|
|
@@ -20011,7 +20208,7 @@ var require_compile = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20011
20208
|
}));
|
|
20012
20209
|
|
|
20013
20210
|
//#endregion
|
|
20014
|
-
//#region node_modules/ajv/dist/refs/data.json
|
|
20211
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/data.json
|
|
20015
20212
|
var require_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
20016
20213
|
module.exports = {
|
|
20017
20214
|
"$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
@@ -20726,7 +20923,7 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20726
20923
|
}));
|
|
20727
20924
|
|
|
20728
20925
|
//#endregion
|
|
20729
|
-
//#region node_modules/ajv/dist/runtime/uri.js
|
|
20926
|
+
//#region packages/mcp/node_modules/ajv/dist/runtime/uri.js
|
|
20730
20927
|
var require_uri = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
20731
20928
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20732
20929
|
const uri = require_fast_uri();
|
|
@@ -20735,7 +20932,7 @@ var require_uri = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20735
20932
|
}));
|
|
20736
20933
|
|
|
20737
20934
|
//#endregion
|
|
20738
|
-
//#region node_modules/ajv/dist/core.js
|
|
20935
|
+
//#region packages/mcp/node_modules/ajv/dist/core.js
|
|
20739
20936
|
var require_core$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
20740
20937
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20741
20938
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
@@ -20877,7 +21074,7 @@ var require_core$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20877
21074
|
constructor(opts = {}) {
|
|
20878
21075
|
this.schemas = {};
|
|
20879
21076
|
this.refs = {};
|
|
20880
|
-
this.formats =
|
|
21077
|
+
this.formats = Object.create(null);
|
|
20881
21078
|
this._compilations = /* @__PURE__ */ new Set();
|
|
20882
21079
|
this._loading = {};
|
|
20883
21080
|
this._cache = /* @__PURE__ */ new Map();
|
|
@@ -21305,7 +21502,7 @@ var require_core$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21305
21502
|
}));
|
|
21306
21503
|
|
|
21307
21504
|
//#endregion
|
|
21308
|
-
//#region node_modules/ajv/dist/vocabularies/core/id.js
|
|
21505
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/core/id.js
|
|
21309
21506
|
var require_id = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21310
21507
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21311
21508
|
const def = {
|
|
@@ -21318,7 +21515,7 @@ var require_id = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21318
21515
|
}));
|
|
21319
21516
|
|
|
21320
21517
|
//#endregion
|
|
21321
|
-
//#region node_modules/ajv/dist/vocabularies/core/ref.js
|
|
21518
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
21322
21519
|
var require_ref = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21323
21520
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21324
21521
|
exports.callRef = exports.getValidate = void 0;
|
|
@@ -21422,7 +21619,7 @@ var require_ref = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21422
21619
|
}));
|
|
21423
21620
|
|
|
21424
21621
|
//#endregion
|
|
21425
|
-
//#region node_modules/ajv/dist/vocabularies/core/index.js
|
|
21622
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/core/index.js
|
|
21426
21623
|
var require_core$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21427
21624
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21428
21625
|
const id_1 = require_id();
|
|
@@ -21441,7 +21638,7 @@ var require_core$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21441
21638
|
}));
|
|
21442
21639
|
|
|
21443
21640
|
//#endregion
|
|
21444
|
-
//#region node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
21641
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
21445
21642
|
var require_limitNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21446
21643
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21447
21644
|
const codegen_1 = require_codegen();
|
|
@@ -21486,7 +21683,7 @@ var require_limitNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21486
21683
|
}));
|
|
21487
21684
|
|
|
21488
21685
|
//#endregion
|
|
21489
|
-
//#region node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
21686
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
21490
21687
|
var require_multipleOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21491
21688
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21492
21689
|
const codegen_1 = require_codegen();
|
|
@@ -21511,7 +21708,7 @@ var require_multipleOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21511
21708
|
}));
|
|
21512
21709
|
|
|
21513
21710
|
//#endregion
|
|
21514
|
-
//#region node_modules/ajv/dist/runtime/ucs2length.js
|
|
21711
|
+
//#region packages/mcp/node_modules/ajv/dist/runtime/ucs2length.js
|
|
21515
21712
|
var require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21516
21713
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21517
21714
|
function ucs2length(str) {
|
|
@@ -21534,7 +21731,7 @@ var require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21534
21731
|
}));
|
|
21535
21732
|
|
|
21536
21733
|
//#endregion
|
|
21537
|
-
//#region node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
21734
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
21538
21735
|
var require_limitLength = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21539
21736
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21540
21737
|
const codegen_1 = require_codegen();
|
|
@@ -21563,7 +21760,7 @@ var require_limitLength = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21563
21760
|
}));
|
|
21564
21761
|
|
|
21565
21762
|
//#endregion
|
|
21566
|
-
//#region node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
21763
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
21567
21764
|
var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21568
21765
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21569
21766
|
const code_1 = require_code();
|
|
@@ -21597,7 +21794,7 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21597
21794
|
}));
|
|
21598
21795
|
|
|
21599
21796
|
//#endregion
|
|
21600
|
-
//#region node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
21797
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
21601
21798
|
var require_limitProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21602
21799
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21603
21800
|
const codegen_1 = require_codegen();
|
|
@@ -21623,7 +21820,7 @@ var require_limitProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21623
21820
|
}));
|
|
21624
21821
|
|
|
21625
21822
|
//#endregion
|
|
21626
|
-
//#region node_modules/ajv/dist/vocabularies/validation/required.js
|
|
21823
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
21627
21824
|
var require_required = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21628
21825
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21629
21826
|
const code_1 = require_code();
|
|
@@ -21691,7 +21888,7 @@ var require_required = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21691
21888
|
}));
|
|
21692
21889
|
|
|
21693
21890
|
//#endregion
|
|
21694
|
-
//#region node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
21891
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
21695
21892
|
var require_limitItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21696
21893
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21697
21894
|
const codegen_1 = require_codegen();
|
|
@@ -21717,7 +21914,7 @@ var require_limitItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21717
21914
|
}));
|
|
21718
21915
|
|
|
21719
21916
|
//#endregion
|
|
21720
|
-
//#region node_modules/ajv/dist/runtime/equal.js
|
|
21917
|
+
//#region packages/mcp/node_modules/ajv/dist/runtime/equal.js
|
|
21721
21918
|
var require_equal = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21722
21919
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21723
21920
|
const equal = require_fast_deep_equal();
|
|
@@ -21726,7 +21923,7 @@ var require_equal = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21726
21923
|
}));
|
|
21727
21924
|
|
|
21728
21925
|
//#endregion
|
|
21729
|
-
//#region node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
21926
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
21730
21927
|
var require_uniqueItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21731
21928
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21732
21929
|
const dataType_1 = require_dataType();
|
|
@@ -21791,7 +21988,7 @@ var require_uniqueItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21791
21988
|
}));
|
|
21792
21989
|
|
|
21793
21990
|
//#endregion
|
|
21794
|
-
//#region node_modules/ajv/dist/vocabularies/validation/const.js
|
|
21991
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
21795
21992
|
var require_const = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21796
21993
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21797
21994
|
const codegen_1 = require_codegen();
|
|
@@ -21814,7 +22011,7 @@ var require_const = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21814
22011
|
}));
|
|
21815
22012
|
|
|
21816
22013
|
//#endregion
|
|
21817
|
-
//#region node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
22014
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
21818
22015
|
var require_enum = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21819
22016
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21820
22017
|
const codegen_1 = require_codegen();
|
|
@@ -21859,7 +22056,7 @@ var require_enum = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21859
22056
|
}));
|
|
21860
22057
|
|
|
21861
22058
|
//#endregion
|
|
21862
|
-
//#region node_modules/ajv/dist/vocabularies/validation/index.js
|
|
22059
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
21863
22060
|
var require_validation$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21864
22061
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21865
22062
|
const limitNumber_1 = require_limitNumber();
|
|
@@ -21896,7 +22093,7 @@ var require_validation$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21896
22093
|
}));
|
|
21897
22094
|
|
|
21898
22095
|
//#endregion
|
|
21899
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
22096
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
21900
22097
|
var require_additionalItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21901
22098
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21902
22099
|
exports.validateAdditionalItems = void 0;
|
|
@@ -21949,7 +22146,7 @@ var require_additionalItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21949
22146
|
}));
|
|
21950
22147
|
|
|
21951
22148
|
//#endregion
|
|
21952
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
22149
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
21953
22150
|
var require_items = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21954
22151
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21955
22152
|
exports.validateTuple = void 0;
|
|
@@ -22003,7 +22200,7 @@ var require_items = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22003
22200
|
}));
|
|
22004
22201
|
|
|
22005
22202
|
//#endregion
|
|
22006
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
22203
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
22007
22204
|
var require_prefixItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22008
22205
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22009
22206
|
const items_1 = require_items();
|
|
@@ -22018,7 +22215,7 @@ var require_prefixItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22018
22215
|
}));
|
|
22019
22216
|
|
|
22020
22217
|
//#endregion
|
|
22021
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
22218
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
22022
22219
|
var require_items2020 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22023
22220
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22024
22221
|
const codegen_1 = require_codegen();
|
|
@@ -22047,7 +22244,7 @@ var require_items2020 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22047
22244
|
}));
|
|
22048
22245
|
|
|
22049
22246
|
//#endregion
|
|
22050
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
22247
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
22051
22248
|
var require_contains = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22052
22249
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22053
22250
|
const codegen_1 = require_codegen();
|
|
@@ -22133,7 +22330,7 @@ var require_contains = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22133
22330
|
}));
|
|
22134
22331
|
|
|
22135
22332
|
//#endregion
|
|
22136
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
22333
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
22137
22334
|
var require_dependencies = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22138
22335
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22139
22336
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
|
|
@@ -22215,7 +22412,7 @@ var require_dependencies = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22215
22412
|
}));
|
|
22216
22413
|
|
|
22217
22414
|
//#endregion
|
|
22218
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
22415
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
22219
22416
|
var require_propertyNames = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22220
22417
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22221
22418
|
const codegen_1 = require_codegen();
|
|
@@ -22253,7 +22450,7 @@ var require_propertyNames = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22253
22450
|
}));
|
|
22254
22451
|
|
|
22255
22452
|
//#endregion
|
|
22256
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
22453
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
22257
22454
|
var require_additionalProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22258
22455
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22259
22456
|
const code_1 = require_code();
|
|
@@ -22344,7 +22541,7 @@ var require_additionalProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22344
22541
|
}));
|
|
22345
22542
|
|
|
22346
22543
|
//#endregion
|
|
22347
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
22544
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
22348
22545
|
var require_properties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22349
22546
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22350
22547
|
const validate_1 = require_validate();
|
|
@@ -22391,7 +22588,7 @@ var require_properties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22391
22588
|
}));
|
|
22392
22589
|
|
|
22393
22590
|
//#endregion
|
|
22394
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
22591
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
22395
22592
|
var require_patternProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22396
22593
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22397
22594
|
const code_1 = require_code();
|
|
@@ -22448,7 +22645,7 @@ var require_patternProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22448
22645
|
}));
|
|
22449
22646
|
|
|
22450
22647
|
//#endregion
|
|
22451
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
22648
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
22452
22649
|
var require_not = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22453
22650
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22454
22651
|
const util_1 = require_util();
|
|
@@ -22477,7 +22674,7 @@ var require_not = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22477
22674
|
}));
|
|
22478
22675
|
|
|
22479
22676
|
//#endregion
|
|
22480
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
22677
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
22481
22678
|
var require_anyOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22482
22679
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22483
22680
|
const def = {
|
|
@@ -22491,7 +22688,7 @@ var require_anyOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22491
22688
|
}));
|
|
22492
22689
|
|
|
22493
22690
|
//#endregion
|
|
22494
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
22691
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
22495
22692
|
var require_oneOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22496
22693
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22497
22694
|
const codegen_1 = require_codegen();
|
|
@@ -22539,7 +22736,7 @@ var require_oneOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22539
22736
|
}));
|
|
22540
22737
|
|
|
22541
22738
|
//#endregion
|
|
22542
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
22739
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
22543
22740
|
var require_allOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22544
22741
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22545
22742
|
const util_1 = require_util();
|
|
@@ -22566,7 +22763,7 @@ var require_allOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22566
22763
|
}));
|
|
22567
22764
|
|
|
22568
22765
|
//#endregion
|
|
22569
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
22766
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
22570
22767
|
var require_if = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22571
22768
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22572
22769
|
const codegen_1 = require_codegen();
|
|
@@ -22624,7 +22821,7 @@ var require_if = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22624
22821
|
}));
|
|
22625
22822
|
|
|
22626
22823
|
//#endregion
|
|
22627
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
22824
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
22628
22825
|
var require_thenElse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22629
22826
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22630
22827
|
const util_1 = require_util();
|
|
@@ -22639,7 +22836,7 @@ var require_thenElse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22639
22836
|
}));
|
|
22640
22837
|
|
|
22641
22838
|
//#endregion
|
|
22642
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
22839
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
22643
22840
|
var require_applicator$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22644
22841
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22645
22842
|
const additionalItems_1 = require_additionalItems();
|
|
@@ -22681,7 +22878,7 @@ var require_applicator$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22681
22878
|
}));
|
|
22682
22879
|
|
|
22683
22880
|
//#endregion
|
|
22684
|
-
//#region node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js
|
|
22881
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js
|
|
22685
22882
|
var require_dynamicAnchor = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22686
22883
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22687
22884
|
exports.dynamicAnchor = void 0;
|
|
@@ -22721,7 +22918,7 @@ var require_dynamicAnchor = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22721
22918
|
}));
|
|
22722
22919
|
|
|
22723
22920
|
//#endregion
|
|
22724
|
-
//#region node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js
|
|
22921
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js
|
|
22725
22922
|
var require_dynamicRef = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22726
22923
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22727
22924
|
exports.dynamicRef = void 0;
|
|
@@ -22761,7 +22958,7 @@ var require_dynamicRef = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22761
22958
|
}));
|
|
22762
22959
|
|
|
22763
22960
|
//#endregion
|
|
22764
|
-
//#region node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js
|
|
22961
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js
|
|
22765
22962
|
var require_recursiveAnchor = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22766
22963
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22767
22964
|
const dynamicAnchor_1 = require_dynamicAnchor();
|
|
@@ -22778,7 +22975,7 @@ var require_recursiveAnchor = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22778
22975
|
}));
|
|
22779
22976
|
|
|
22780
22977
|
//#endregion
|
|
22781
|
-
//#region node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js
|
|
22978
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js
|
|
22782
22979
|
var require_recursiveRef = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22783
22980
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22784
22981
|
const dynamicRef_1 = require_dynamicRef();
|
|
@@ -22791,7 +22988,7 @@ var require_recursiveRef = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22791
22988
|
}));
|
|
22792
22989
|
|
|
22793
22990
|
//#endregion
|
|
22794
|
-
//#region node_modules/ajv/dist/vocabularies/dynamic/index.js
|
|
22991
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/dynamic/index.js
|
|
22795
22992
|
var require_dynamic = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22796
22993
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22797
22994
|
const dynamicAnchor_1 = require_dynamicAnchor();
|
|
@@ -22808,7 +23005,7 @@ var require_dynamic = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22808
23005
|
}));
|
|
22809
23006
|
|
|
22810
23007
|
//#endregion
|
|
22811
|
-
//#region node_modules/ajv/dist/vocabularies/validation/dependentRequired.js
|
|
23008
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js
|
|
22812
23009
|
var require_dependentRequired = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22813
23010
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22814
23011
|
const dependencies_1 = require_dependencies();
|
|
@@ -22823,7 +23020,7 @@ var require_dependentRequired = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22823
23020
|
}));
|
|
22824
23021
|
|
|
22825
23022
|
//#endregion
|
|
22826
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js
|
|
23023
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js
|
|
22827
23024
|
var require_dependentSchemas = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22828
23025
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22829
23026
|
const dependencies_1 = require_dependencies();
|
|
@@ -22837,7 +23034,7 @@ var require_dependentSchemas = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22837
23034
|
}));
|
|
22838
23035
|
|
|
22839
23036
|
//#endregion
|
|
22840
|
-
//#region node_modules/ajv/dist/vocabularies/validation/limitContains.js
|
|
23037
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/limitContains.js
|
|
22841
23038
|
var require_limitContains = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22842
23039
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22843
23040
|
const util_1 = require_util();
|
|
@@ -22853,7 +23050,7 @@ var require_limitContains = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22853
23050
|
}));
|
|
22854
23051
|
|
|
22855
23052
|
//#endregion
|
|
22856
|
-
//#region node_modules/ajv/dist/vocabularies/next.js
|
|
23053
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/next.js
|
|
22857
23054
|
var require_next = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22858
23055
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22859
23056
|
const dependentRequired_1 = require_dependentRequired();
|
|
@@ -22868,7 +23065,7 @@ var require_next = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22868
23065
|
}));
|
|
22869
23066
|
|
|
22870
23067
|
//#endregion
|
|
22871
|
-
//#region node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js
|
|
23068
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js
|
|
22872
23069
|
var require_unevaluatedProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22873
23070
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22874
23071
|
const codegen_1 = require_codegen();
|
|
@@ -22923,7 +23120,7 @@ var require_unevaluatedProperties = /* @__PURE__ */ __commonJSMin(((exports) =>
|
|
|
22923
23120
|
}));
|
|
22924
23121
|
|
|
22925
23122
|
//#endregion
|
|
22926
|
-
//#region node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js
|
|
23123
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js
|
|
22927
23124
|
var require_unevaluatedItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22928
23125
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22929
23126
|
const codegen_1 = require_codegen();
|
|
@@ -22966,7 +23163,7 @@ var require_unevaluatedItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22966
23163
|
}));
|
|
22967
23164
|
|
|
22968
23165
|
//#endregion
|
|
22969
|
-
//#region node_modules/ajv/dist/vocabularies/unevaluated/index.js
|
|
23166
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/unevaluated/index.js
|
|
22970
23167
|
var require_unevaluated$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22971
23168
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22972
23169
|
const unevaluatedProperties_1 = require_unevaluatedProperties();
|
|
@@ -22976,7 +23173,7 @@ var require_unevaluated$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22976
23173
|
}));
|
|
22977
23174
|
|
|
22978
23175
|
//#endregion
|
|
22979
|
-
//#region node_modules/ajv/dist/vocabularies/format/format.js
|
|
23176
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/format/format.js
|
|
22980
23177
|
var require_format$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22981
23178
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22982
23179
|
const codegen_1 = require_codegen();
|
|
@@ -23066,7 +23263,7 @@ var require_format$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23066
23263
|
}));
|
|
23067
23264
|
|
|
23068
23265
|
//#endregion
|
|
23069
|
-
//#region node_modules/ajv/dist/vocabularies/format/index.js
|
|
23266
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/format/index.js
|
|
23070
23267
|
var require_format = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
23071
23268
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23072
23269
|
const format = [require_format$1().default];
|
|
@@ -23074,7 +23271,7 @@ var require_format = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23074
23271
|
}));
|
|
23075
23272
|
|
|
23076
23273
|
//#endregion
|
|
23077
|
-
//#region node_modules/ajv/dist/vocabularies/metadata.js
|
|
23274
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/metadata.js
|
|
23078
23275
|
var require_metadata = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
23079
23276
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23080
23277
|
exports.contentVocabulary = exports.metadataVocabulary = void 0;
|
|
@@ -23095,7 +23292,7 @@ var require_metadata = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23095
23292
|
}));
|
|
23096
23293
|
|
|
23097
23294
|
//#endregion
|
|
23098
|
-
//#region node_modules/ajv/dist/vocabularies/draft2020.js
|
|
23295
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/draft2020.js
|
|
23099
23296
|
var require_draft2020 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
23100
23297
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23101
23298
|
const core_1 = require_core$1();
|
|
@@ -23121,7 +23318,7 @@ var require_draft2020 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23121
23318
|
}));
|
|
23122
23319
|
|
|
23123
23320
|
//#endregion
|
|
23124
|
-
//#region node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
23321
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
23125
23322
|
var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
23126
23323
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23127
23324
|
exports.DiscrError = void 0;
|
|
@@ -23133,7 +23330,7 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23133
23330
|
}));
|
|
23134
23331
|
|
|
23135
23332
|
//#endregion
|
|
23136
|
-
//#region node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
23333
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
23137
23334
|
var require_discriminator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
23138
23335
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23139
23336
|
const codegen_1 = require_codegen();
|
|
@@ -23228,7 +23425,7 @@ var require_discriminator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23228
23425
|
}));
|
|
23229
23426
|
|
|
23230
23427
|
//#endregion
|
|
23231
|
-
//#region node_modules/ajv/dist/refs/json-schema-2020-12/schema.json
|
|
23428
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json
|
|
23232
23429
|
var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23233
23430
|
module.exports = {
|
|
23234
23431
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -23285,7 +23482,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23285
23482
|
}));
|
|
23286
23483
|
|
|
23287
23484
|
//#endregion
|
|
23288
|
-
//#region node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json
|
|
23485
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json
|
|
23289
23486
|
var require_applicator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23290
23487
|
module.exports = {
|
|
23291
23488
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -23333,7 +23530,7 @@ var require_applicator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23333
23530
|
}));
|
|
23334
23531
|
|
|
23335
23532
|
//#endregion
|
|
23336
|
-
//#region node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json
|
|
23533
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json
|
|
23337
23534
|
var require_unevaluated = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23338
23535
|
module.exports = {
|
|
23339
23536
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -23350,7 +23547,7 @@ var require_unevaluated = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23350
23547
|
}));
|
|
23351
23548
|
|
|
23352
23549
|
//#endregion
|
|
23353
|
-
//#region node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json
|
|
23550
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json
|
|
23354
23551
|
var require_content = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23355
23552
|
module.exports = {
|
|
23356
23553
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -23368,7 +23565,7 @@ var require_content = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23368
23565
|
}));
|
|
23369
23566
|
|
|
23370
23567
|
//#endregion
|
|
23371
|
-
//#region node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json
|
|
23568
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json
|
|
23372
23569
|
var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23373
23570
|
module.exports = {
|
|
23374
23571
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -23417,7 +23614,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23417
23614
|
}));
|
|
23418
23615
|
|
|
23419
23616
|
//#endregion
|
|
23420
|
-
//#region node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json
|
|
23617
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json
|
|
23421
23618
|
var require_format_annotation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23422
23619
|
module.exports = {
|
|
23423
23620
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -23431,7 +23628,7 @@ var require_format_annotation = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
23431
23628
|
}));
|
|
23432
23629
|
|
|
23433
23630
|
//#endregion
|
|
23434
|
-
//#region node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json
|
|
23631
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json
|
|
23435
23632
|
var require_meta_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23436
23633
|
module.exports = {
|
|
23437
23634
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -23465,7 +23662,7 @@ var require_meta_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23465
23662
|
}));
|
|
23466
23663
|
|
|
23467
23664
|
//#endregion
|
|
23468
|
-
//#region node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json
|
|
23665
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json
|
|
23469
23666
|
var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23470
23667
|
module.exports = {
|
|
23471
23668
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -23548,7 +23745,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23548
23745
|
}));
|
|
23549
23746
|
|
|
23550
23747
|
//#endregion
|
|
23551
|
-
//#region node_modules/ajv/dist/refs/json-schema-2020-12/index.js
|
|
23748
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/json-schema-2020-12/index.js
|
|
23552
23749
|
var require_json_schema_2020_12 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
23553
23750
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23554
23751
|
const metaSchema = require_schema();
|
|
@@ -23580,7 +23777,7 @@ var require_json_schema_2020_12 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23580
23777
|
}));
|
|
23581
23778
|
|
|
23582
23779
|
//#endregion
|
|
23583
|
-
//#region node_modules/ajv/dist/2020.js
|
|
23780
|
+
//#region packages/mcp/node_modules/ajv/dist/2020.js
|
|
23584
23781
|
var require__2020 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23585
23782
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23586
23783
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv2020 = void 0;
|