@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
package/dist/abracadabra-mcp.cjs
CHANGED
|
@@ -14092,6 +14092,9 @@ var AbracadabraMCPServer = class AbracadabraMCPServer {
|
|
|
14092
14092
|
static {
|
|
14093
14093
|
this.TOOL_HISTORY_MAX = 20;
|
|
14094
14094
|
}
|
|
14095
|
+
static {
|
|
14096
|
+
this.DEDUPE_MAX = 1e3;
|
|
14097
|
+
}
|
|
14095
14098
|
constructor(config) {
|
|
14096
14099
|
this._serverInfo = null;
|
|
14097
14100
|
this._rootDocId = null;
|
|
@@ -14109,6 +14112,14 @@ var AbracadabraMCPServer = class AbracadabraMCPServer {
|
|
|
14109
14112
|
this._lastChatChannel = null;
|
|
14110
14113
|
this._signFn = null;
|
|
14111
14114
|
this._toolHistory = [];
|
|
14115
|
+
this._inboxStarted = false;
|
|
14116
|
+
this._inboxDocId = null;
|
|
14117
|
+
this._inboxDoc = null;
|
|
14118
|
+
this._inboxProvider = null;
|
|
14119
|
+
this._inboxDisposers = [];
|
|
14120
|
+
this._inboxInitialized = false;
|
|
14121
|
+
this._seenInboxIds = /* @__PURE__ */ new Set();
|
|
14122
|
+
this._dispatchedMessageIds = /* @__PURE__ */ new Set();
|
|
14112
14123
|
this.config = config;
|
|
14113
14124
|
this.client = new _abraca_dabra.AbracadabraClient({
|
|
14114
14125
|
url: config.url,
|
|
@@ -14338,6 +14349,182 @@ var AbracadabraMCPServer = class AbracadabraMCPServer {
|
|
|
14338
14349
|
this._handleStatelessChat(payload);
|
|
14339
14350
|
});
|
|
14340
14351
|
console.error("[abracadabra-mcp] Stateless chat listener attached");
|
|
14352
|
+
this._startInboxNotifications();
|
|
14353
|
+
}
|
|
14354
|
+
}
|
|
14355
|
+
/**
|
|
14356
|
+
* Bootstrap inbox observation. Sends `messages:inbox_fetch` over the active
|
|
14357
|
+
* provider; the server's `messages:inbox_history` reply carries the
|
|
14358
|
+
* `inbox_doc_id`. We then open a dedicated provider on that doc and observe
|
|
14359
|
+
* its `entries` Y.Array for live DM/mention dispatch. Mirrors the
|
|
14360
|
+
* dashboard's `useNotifications` pattern.
|
|
14361
|
+
*/
|
|
14362
|
+
async _startInboxNotifications() {
|
|
14363
|
+
if (this._inboxStarted) return;
|
|
14364
|
+
const provider = this._activeConnection?.provider;
|
|
14365
|
+
if (!provider) return;
|
|
14366
|
+
this._inboxStarted = true;
|
|
14367
|
+
provider.on("stateless", ({ payload }) => {
|
|
14368
|
+
if (!payload.includes("\"messages:inbox_history\"")) return;
|
|
14369
|
+
try {
|
|
14370
|
+
const data = JSON.parse(payload);
|
|
14371
|
+
if (data?.type !== "messages:inbox_history") return;
|
|
14372
|
+
const inboxDocId = typeof data.inbox_doc_id === "string" ? data.inbox_doc_id : null;
|
|
14373
|
+
if (inboxDocId) this._ensureInboxObserver(inboxDocId);
|
|
14374
|
+
} catch {}
|
|
14375
|
+
});
|
|
14376
|
+
provider.sendStateless(JSON.stringify({
|
|
14377
|
+
type: "messages:inbox_fetch",
|
|
14378
|
+
limit: 50,
|
|
14379
|
+
unread_only: false
|
|
14380
|
+
}));
|
|
14381
|
+
console.error("[abracadabra-mcp] Inbox bootstrap sent (messages:inbox_fetch)");
|
|
14382
|
+
}
|
|
14383
|
+
/**
|
|
14384
|
+
* Open a dedicated provider on the agent's inbox doc and observe its
|
|
14385
|
+
* `entries` Y.Array. The server is the only writer; we only read.
|
|
14386
|
+
*/
|
|
14387
|
+
async _ensureInboxObserver(inboxDocId) {
|
|
14388
|
+
if (this._inboxDocId) return;
|
|
14389
|
+
this._inboxDocId = inboxDocId;
|
|
14390
|
+
if (!this.client.isTokenValid() && this._signFn && this._userId) await this.client.loginWithKey(this._userId, this._signFn);
|
|
14391
|
+
const doc = new yjs.Doc({ guid: inboxDocId });
|
|
14392
|
+
const provider = new _abraca_dabra.AbracadabraProvider({
|
|
14393
|
+
name: inboxDocId,
|
|
14394
|
+
document: doc,
|
|
14395
|
+
client: this.client,
|
|
14396
|
+
disableOfflineStore: true,
|
|
14397
|
+
subdocLoading: "lazy"
|
|
14398
|
+
});
|
|
14399
|
+
this._inboxDoc = doc;
|
|
14400
|
+
this._inboxProvider = provider;
|
|
14401
|
+
try {
|
|
14402
|
+
await waitForSync(provider);
|
|
14403
|
+
} catch (err) {
|
|
14404
|
+
console.error(`[abracadabra-mcp] Inbox sync failed: ${err?.message ?? err}`);
|
|
14405
|
+
return;
|
|
14406
|
+
}
|
|
14407
|
+
const entriesArr = doc.getArray("entries");
|
|
14408
|
+
const readMap = doc.getMap("read");
|
|
14409
|
+
const onChange = () => {
|
|
14410
|
+
this._pumpInbox(entriesArr, readMap);
|
|
14411
|
+
};
|
|
14412
|
+
entriesArr.observe(onChange);
|
|
14413
|
+
readMap.observe(onChange);
|
|
14414
|
+
this._inboxDisposers.push(() => entriesArr.unobserve(onChange));
|
|
14415
|
+
this._inboxDisposers.push(() => readMap.unobserve(onChange));
|
|
14416
|
+
await this._pumpInbox(entriesArr, readMap);
|
|
14417
|
+
console.error(`[abracadabra-mcp] Inbox observer attached (${inboxDocId})`);
|
|
14418
|
+
}
|
|
14419
|
+
/**
|
|
14420
|
+
* Diff the inbox `entries` array against what we've already seen. On the
|
|
14421
|
+
* first pump we only record a baseline (don't replay history). New entries
|
|
14422
|
+
* are classified by their authoritative `kind` and dispatched.
|
|
14423
|
+
*/
|
|
14424
|
+
async _pumpInbox(entriesArr, readMap) {
|
|
14425
|
+
const entries = entriesArr.toArray().map((e) => typeof e?.toJSON === "function" ? e.toJSON() : e);
|
|
14426
|
+
if (!this._inboxInitialized) {
|
|
14427
|
+
for (const e of entries) if (e?.id) this._seenInboxIds.add(e.id);
|
|
14428
|
+
this._inboxInitialized = true;
|
|
14429
|
+
console.error(`[abracadabra-mcp] Inbox baseline: ${this._seenInboxIds.size} existing entries (not replayed)`);
|
|
14430
|
+
return;
|
|
14431
|
+
}
|
|
14432
|
+
for (const e of entries) {
|
|
14433
|
+
const id = e?.id;
|
|
14434
|
+
if (!id || this._seenInboxIds.has(id)) continue;
|
|
14435
|
+
this._seenInboxIds.add(id);
|
|
14436
|
+
if (readMap.get(id)) continue;
|
|
14437
|
+
try {
|
|
14438
|
+
await this._dispatchInboxEntry(e);
|
|
14439
|
+
} catch (err) {
|
|
14440
|
+
console.error(`[abracadabra-mcp] Inbox dispatch failed for ${id}: ${err?.message ?? err}`);
|
|
14441
|
+
}
|
|
14442
|
+
}
|
|
14443
|
+
this._trimSet(this._seenInboxIds);
|
|
14444
|
+
}
|
|
14445
|
+
/** Classify + dispatch one inbox entry as a channel notification. */
|
|
14446
|
+
async _dispatchInboxEntry(entry) {
|
|
14447
|
+
if (!this._serverRef) return;
|
|
14448
|
+
const kind = typeof entry?.kind === "string" ? entry.kind : "";
|
|
14449
|
+
const channelDocId = typeof entry?.channel_doc_id === "string" ? entry.channel_doc_id : "";
|
|
14450
|
+
const messageId = typeof entry?.message_id === "string" ? entry.message_id : null;
|
|
14451
|
+
const senderId = typeof entry?.sender_id === "string" ? entry.sender_id : "";
|
|
14452
|
+
if (!channelDocId) return;
|
|
14453
|
+
if (senderId && senderId === this._userId) return;
|
|
14454
|
+
const mode = this.triggerMode;
|
|
14455
|
+
if (kind === "mention" || kind === "reply") {
|
|
14456
|
+
if (mode === "task") return;
|
|
14457
|
+
} else if (kind !== "dm") return;
|
|
14458
|
+
if (messageId && this._rememberDispatched(messageId)) return;
|
|
14459
|
+
const content = await this._resolveInboxContent(channelDocId, messageId, entry?.preview);
|
|
14460
|
+
this._lastChatChannel = channelDocId;
|
|
14461
|
+
this._beginTurn();
|
|
14462
|
+
this.setAutoStatus("thinking");
|
|
14463
|
+
await this._serverRef.notification({
|
|
14464
|
+
method: "notifications/claude/channel",
|
|
14465
|
+
params: {
|
|
14466
|
+
content,
|
|
14467
|
+
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.`,
|
|
14468
|
+
meta: {
|
|
14469
|
+
source: "abracadabra",
|
|
14470
|
+
type: kind === "dm" ? "dm_message" : "chat_message",
|
|
14471
|
+
channel_doc_id: channelDocId,
|
|
14472
|
+
sender: entry?.sender_name ?? "Unknown",
|
|
14473
|
+
sender_id: senderId,
|
|
14474
|
+
doc_id: channelDocId
|
|
14475
|
+
}
|
|
14476
|
+
}
|
|
14477
|
+
});
|
|
14478
|
+
console.error(`[abracadabra-mcp] Dispatched ${kind} on ${channelDocId} from ${entry?.sender_name ?? (senderId || "unknown")}`);
|
|
14479
|
+
this._activeConnection?.provider?.sendStateless(JSON.stringify({
|
|
14480
|
+
type: "messages:inbox_mark_read",
|
|
14481
|
+
id: entry.id
|
|
14482
|
+
}));
|
|
14483
|
+
}
|
|
14484
|
+
/**
|
|
14485
|
+
* Resolve full message content. The inbox `preview` is truncated to ≤200
|
|
14486
|
+
* bytes (and null for E2E), so for fidelity we read the actual record from
|
|
14487
|
+
* the channel/DM doc's active period — same shape the dashboard reads.
|
|
14488
|
+
* Falls back to the preview, then a short notice.
|
|
14489
|
+
*/
|
|
14490
|
+
async _resolveInboxContent(channelDocId, messageId, preview) {
|
|
14491
|
+
const previewStr = typeof preview === "string" && preview.length > 0 ? preview : null;
|
|
14492
|
+
const root = this._activeConnection?.provider;
|
|
14493
|
+
if (root && messageId) try {
|
|
14494
|
+
const wrapper = await root.loadChild(channelDocId);
|
|
14495
|
+
if (!wrapper.synced) await waitForSync(wrapper);
|
|
14496
|
+
const periods = wrapper.document.getArray("periods");
|
|
14497
|
+
const len = periods.length;
|
|
14498
|
+
for (let i = len - 1; i >= 0 && i >= len - 2; i--) {
|
|
14499
|
+
const p = periods.get(i);
|
|
14500
|
+
const periodId = p?.id ?? p?.get?.("id");
|
|
14501
|
+
if (!periodId) continue;
|
|
14502
|
+
const period = await root.loadChild(periodId);
|
|
14503
|
+
if (!period.synced) await waitForSync(period);
|
|
14504
|
+
const hit = (0, _abraca_dabra.foldRecords)(period.document.getArray("messages").toArray().map((v) => (0, _abraca_dabra.recordFromYAny)(v)).filter((r) => r !== null)).find((f) => f.id === messageId);
|
|
14505
|
+
if (hit) {
|
|
14506
|
+
if ((0, _abraca_dabra.isEncryptedContent)(hit.content)) return previewStr ?? "[encrypted message — this agent is not provisioned to read this channel]";
|
|
14507
|
+
return hit.content;
|
|
14508
|
+
}
|
|
14509
|
+
}
|
|
14510
|
+
} catch (err) {
|
|
14511
|
+
console.error(`[abracadabra-mcp] content read failed for ${channelDocId}/${messageId}: ${err?.message ?? err}`);
|
|
14512
|
+
}
|
|
14513
|
+
return previewStr ?? "[message content unavailable]";
|
|
14514
|
+
}
|
|
14515
|
+
_rememberDispatched(messageId) {
|
|
14516
|
+
if (this._dispatchedMessageIds.has(messageId)) return true;
|
|
14517
|
+
this._dispatchedMessageIds.add(messageId);
|
|
14518
|
+
this._trimSet(this._dispatchedMessageIds);
|
|
14519
|
+
return false;
|
|
14520
|
+
}
|
|
14521
|
+
_trimSet(s) {
|
|
14522
|
+
if (s.size <= AbracadabraMCPServer.DEDUPE_MAX) return;
|
|
14523
|
+
const excess = s.size - AbracadabraMCPServer.DEDUPE_MAX;
|
|
14524
|
+
let i = 0;
|
|
14525
|
+
for (const v of s) {
|
|
14526
|
+
if (i++ >= excess) break;
|
|
14527
|
+
s.delete(v);
|
|
14341
14528
|
}
|
|
14342
14529
|
}
|
|
14343
14530
|
/** Attach awareness observer to detect `ai:task` fields from human users. */
|
|
@@ -14423,6 +14610,7 @@ var AbracadabraMCPServer = class AbracadabraMCPServer {
|
|
|
14423
14610
|
if (data.sender_id && data.sender_id === this._userId) return;
|
|
14424
14611
|
const channelDocId = data.channel_doc_id;
|
|
14425
14612
|
if (!channelDocId) return;
|
|
14613
|
+
if (data.id && this._rememberDispatched(data.id)) return;
|
|
14426
14614
|
const mode = this.triggerMode;
|
|
14427
14615
|
const content = typeof data.content === "string" ? data.content : "";
|
|
14428
14616
|
let dispatchContent = content;
|
|
@@ -14573,6 +14761,13 @@ var AbracadabraMCPServer = class AbracadabraMCPServer {
|
|
|
14573
14761
|
clearInterval(this.evictionTimer);
|
|
14574
14762
|
this.evictionTimer = null;
|
|
14575
14763
|
}
|
|
14764
|
+
for (const dispose of this._inboxDisposers) try {
|
|
14765
|
+
dispose();
|
|
14766
|
+
} catch {}
|
|
14767
|
+
this._inboxDisposers = [];
|
|
14768
|
+
this._inboxProvider?.destroy();
|
|
14769
|
+
this._inboxProvider = null;
|
|
14770
|
+
this._inboxDoc = null;
|
|
14576
14771
|
for (const [, cached] of this.childCache) cached.provider.destroy();
|
|
14577
14772
|
this.childCache.clear();
|
|
14578
14773
|
for (const [, conn] of this._spaceConnections) {
|
|
@@ -15333,13 +15528,13 @@ function normalizeRootId(id, server) {
|
|
|
15333
15528
|
return id === server.rootDocId ? null : id;
|
|
15334
15529
|
}
|
|
15335
15530
|
/** Safely read a tree map value, converting Y.Map to plain object if needed. */
|
|
15336
|
-
function toPlain(val) {
|
|
15531
|
+
function toPlain$3(val) {
|
|
15337
15532
|
return val instanceof yjs.Map ? val.toJSON() : val;
|
|
15338
15533
|
}
|
|
15339
15534
|
function readEntries$1(treeMap) {
|
|
15340
15535
|
const entries = [];
|
|
15341
15536
|
treeMap.forEach((raw, id) => {
|
|
15342
|
-
const value = toPlain(raw);
|
|
15537
|
+
const value = toPlain$3(raw);
|
|
15343
15538
|
if (typeof value !== "object" || value === null) return;
|
|
15344
15539
|
entries.push({
|
|
15345
15540
|
id,
|
|
@@ -15536,7 +15731,7 @@ function registerTreeTools(mcp, server, validator = null) {
|
|
|
15536
15731
|
const normalizedParent = normalizeRootId(parentId, server);
|
|
15537
15732
|
const now = Date.now();
|
|
15538
15733
|
rootDoc.transact(() => {
|
|
15539
|
-
treeMap.set(id, {
|
|
15734
|
+
treeMap.set(id, (0, _abraca_dabra.makeEntryMap)({
|
|
15540
15735
|
label,
|
|
15541
15736
|
parentId: normalizedParent,
|
|
15542
15737
|
order: now,
|
|
@@ -15544,7 +15739,7 @@ function registerTreeTools(mcp, server, validator = null) {
|
|
|
15544
15739
|
meta,
|
|
15545
15740
|
createdAt: now,
|
|
15546
15741
|
updatedAt: now
|
|
15547
|
-
});
|
|
15742
|
+
}));
|
|
15548
15743
|
});
|
|
15549
15744
|
server.setFocusedDoc(id);
|
|
15550
15745
|
return { content: [{
|
|
@@ -15571,14 +15766,11 @@ function registerTreeTools(mcp, server, validator = null) {
|
|
|
15571
15766
|
type: "text",
|
|
15572
15767
|
text: "Not connected"
|
|
15573
15768
|
}] };
|
|
15574
|
-
|
|
15575
|
-
if (!raw) return { content: [{
|
|
15769
|
+
if (!treeMap.get(id)) return { content: [{
|
|
15576
15770
|
type: "text",
|
|
15577
15771
|
text: `Document ${id} not found`
|
|
15578
15772
|
}] };
|
|
15579
|
-
|
|
15580
|
-
treeMap.set(id, {
|
|
15581
|
-
...entry,
|
|
15773
|
+
(0, _abraca_dabra.patchEntry)(treeMap, id, {
|
|
15582
15774
|
label,
|
|
15583
15775
|
updatedAt: Date.now()
|
|
15584
15776
|
});
|
|
@@ -15602,14 +15794,11 @@ function registerTreeTools(mcp, server, validator = null) {
|
|
|
15602
15794
|
type: "text",
|
|
15603
15795
|
text: "Not connected"
|
|
15604
15796
|
}] };
|
|
15605
|
-
|
|
15606
|
-
if (!raw) return { content: [{
|
|
15797
|
+
if (!treeMap.get(id)) return { content: [{
|
|
15607
15798
|
type: "text",
|
|
15608
15799
|
text: `Document ${id} not found`
|
|
15609
15800
|
}] };
|
|
15610
|
-
|
|
15611
|
-
treeMap.set(id, {
|
|
15612
|
-
...entry,
|
|
15801
|
+
(0, _abraca_dabra.patchEntry)(treeMap, id, {
|
|
15613
15802
|
parentId: normalizeRootId(newParentId, server),
|
|
15614
15803
|
order: order ?? Date.now(),
|
|
15615
15804
|
updatedAt: Date.now()
|
|
@@ -15638,7 +15827,7 @@ function registerTreeTools(mcp, server, validator = null) {
|
|
|
15638
15827
|
for (const nid of toDelete) {
|
|
15639
15828
|
const raw = treeMap.get(nid);
|
|
15640
15829
|
if (!raw) continue;
|
|
15641
|
-
const entry = toPlain(raw);
|
|
15830
|
+
const entry = toPlain$3(raw);
|
|
15642
15831
|
trashMap.set(nid, {
|
|
15643
15832
|
label: entry.label || "Untitled",
|
|
15644
15833
|
parentId: entry.parentId ?? null,
|
|
@@ -15669,14 +15858,11 @@ function registerTreeTools(mcp, server, validator = null) {
|
|
|
15669
15858
|
type: "text",
|
|
15670
15859
|
text: "Not connected"
|
|
15671
15860
|
}] };
|
|
15672
|
-
|
|
15673
|
-
if (!raw) return { content: [{
|
|
15861
|
+
if (!treeMap.get(id)) return { content: [{
|
|
15674
15862
|
type: "text",
|
|
15675
15863
|
text: `Document ${id} not found`
|
|
15676
15864
|
}] };
|
|
15677
|
-
|
|
15678
|
-
treeMap.set(id, {
|
|
15679
|
-
...entry,
|
|
15865
|
+
(0, _abraca_dabra.patchEntry)(treeMap, id, {
|
|
15680
15866
|
type,
|
|
15681
15867
|
updatedAt: Date.now()
|
|
15682
15868
|
});
|
|
@@ -15719,13 +15905,13 @@ function registerTreeTools(mcp, server, validator = null) {
|
|
|
15719
15905
|
type: "text",
|
|
15720
15906
|
text: `Document ${id} not found`
|
|
15721
15907
|
}] };
|
|
15722
|
-
const entry = toPlain(raw);
|
|
15908
|
+
const entry = toPlain$3(raw);
|
|
15723
15909
|
const newId = crypto.randomUUID();
|
|
15724
|
-
treeMap.set(newId, {
|
|
15910
|
+
treeMap.set(newId, (0, _abraca_dabra.makeEntryMap)({
|
|
15725
15911
|
...entry,
|
|
15726
15912
|
label: (entry.label || "Untitled") + " (copy)",
|
|
15727
15913
|
order: Date.now()
|
|
15728
|
-
});
|
|
15914
|
+
}));
|
|
15729
15915
|
server.setFocusedDoc(newId);
|
|
15730
15916
|
return { content: [{
|
|
15731
15917
|
type: "text",
|
|
@@ -15771,31 +15957,37 @@ function registerContentTools(mcp, server) {
|
|
|
15771
15957
|
name: "read_document",
|
|
15772
15958
|
target: docId
|
|
15773
15959
|
});
|
|
15774
|
-
const
|
|
15960
|
+
const fragment = (await server.getChildProvider(docId)).document.getXmlFragment("default");
|
|
15775
15961
|
server.setFocusedDoc(docId);
|
|
15776
15962
|
server.setDocCursor(docId, 0);
|
|
15777
15963
|
const treeMap = server.getTreeMap();
|
|
15778
|
-
let label =
|
|
15964
|
+
let label = "Untitled";
|
|
15779
15965
|
let type;
|
|
15780
15966
|
let meta;
|
|
15781
15967
|
let children = [];
|
|
15782
15968
|
if (treeMap) {
|
|
15783
|
-
const entry = treeMap.get(docId);
|
|
15784
|
-
if (entry) {
|
|
15785
|
-
label = entry.label ||
|
|
15969
|
+
const entry = (0, _abraca_dabra.toPlain)(treeMap.get(docId));
|
|
15970
|
+
if (entry && typeof entry === "object") {
|
|
15971
|
+
label = entry.label || label;
|
|
15786
15972
|
type = entry.type;
|
|
15787
15973
|
meta = entry.meta;
|
|
15788
15974
|
}
|
|
15789
|
-
|
|
15790
|
-
|
|
15975
|
+
const collected = [];
|
|
15976
|
+
treeMap.forEach((raw, id) => {
|
|
15977
|
+
const value = (0, _abraca_dabra.toPlain)(raw);
|
|
15978
|
+
if (typeof value !== "object" || value === null) return;
|
|
15979
|
+
if (value.parentId === docId) collected.push({
|
|
15791
15980
|
id,
|
|
15792
15981
|
label: value.label || "Untitled",
|
|
15793
15982
|
type: value.type,
|
|
15794
|
-
meta: value.meta
|
|
15983
|
+
meta: value.meta,
|
|
15984
|
+
order: value.order ?? 0
|
|
15795
15985
|
});
|
|
15796
15986
|
});
|
|
15797
|
-
|
|
15987
|
+
collected.sort((a, b) => a.order - b.order);
|
|
15988
|
+
children = collected.map(({ order, ...rest }) => rest);
|
|
15798
15989
|
}
|
|
15990
|
+
const markdown = (0, _abraca_convert.yjsToMarkdown)(fragment, label, meta, type);
|
|
15799
15991
|
const result = {
|
|
15800
15992
|
label,
|
|
15801
15993
|
type,
|
|
@@ -15836,19 +16028,19 @@ function registerContentTools(mcp, server) {
|
|
|
15836
16028
|
const treeMap = server.getTreeMap();
|
|
15837
16029
|
const rootDoc = server.rootDocument;
|
|
15838
16030
|
if (treeMap && rootDoc) {
|
|
15839
|
-
const
|
|
15840
|
-
if (
|
|
15841
|
-
const
|
|
15842
|
-
|
|
15843
|
-
updatedAt: Date.now()
|
|
15844
|
-
|
|
15845
|
-
|
|
15846
|
-
|
|
15847
|
-
|
|
15848
|
-
|
|
15849
|
-
|
|
15850
|
-
|
|
15851
|
-
}
|
|
16031
|
+
const rawEntry = treeMap.get(docId);
|
|
16032
|
+
if (rawEntry) {
|
|
16033
|
+
const cur = (0, _abraca_dabra.toPlain)(rawEntry);
|
|
16034
|
+
rootDoc.transact(() => {
|
|
16035
|
+
const patch = { updatedAt: Date.now() };
|
|
16036
|
+
if (title) patch.label = title;
|
|
16037
|
+
if (Object.keys(meta).length > 0) patch.meta = {
|
|
16038
|
+
...cur.meta ?? {},
|
|
16039
|
+
...meta
|
|
16040
|
+
};
|
|
16041
|
+
(0, _abraca_dabra.patchEntry)(treeMap, docId, patch);
|
|
16042
|
+
});
|
|
16043
|
+
}
|
|
15852
16044
|
}
|
|
15853
16045
|
}
|
|
15854
16046
|
if (writeMode === "replace") doc.transact(() => {
|
|
@@ -15916,11 +16108,12 @@ function registerMetaTools(mcp, server, validator = null) {
|
|
|
15916
16108
|
type: "text",
|
|
15917
16109
|
text: "Not connected"
|
|
15918
16110
|
}] };
|
|
15919
|
-
const
|
|
15920
|
-
if (!
|
|
16111
|
+
const rawEntry = treeMap.get(docId);
|
|
16112
|
+
if (!rawEntry) return { content: [{
|
|
15921
16113
|
type: "text",
|
|
15922
16114
|
text: `Document ${docId} not found`
|
|
15923
16115
|
}] };
|
|
16116
|
+
const entry = (0, _abraca_dabra.toPlain)(rawEntry);
|
|
15924
16117
|
const mergedMeta = {
|
|
15925
16118
|
...entry.meta ?? {},
|
|
15926
16119
|
...meta
|
|
@@ -15938,8 +16131,7 @@ function registerMetaTools(mcp, server, validator = null) {
|
|
|
15938
16131
|
};
|
|
15939
16132
|
}
|
|
15940
16133
|
}
|
|
15941
|
-
|
|
15942
|
-
...entry,
|
|
16134
|
+
(0, _abraca_dabra.patchEntry)(treeMap, docId, {
|
|
15943
16135
|
meta: mergedMeta,
|
|
15944
16136
|
updatedAt: Date.now()
|
|
15945
16137
|
});
|
|
@@ -16129,7 +16321,7 @@ function registerAwarenessTools(mcp, server) {
|
|
|
16129
16321
|
})
|
|
16130
16322
|
}] };
|
|
16131
16323
|
const resolvedInboxId = inboxId;
|
|
16132
|
-
const
|
|
16324
|
+
const markdown = (0, _abraca_convert.yjsToMarkdown)((await server.getChildProvider(resolvedInboxId)).document.getXmlFragment("default"), "AI Inbox");
|
|
16133
16325
|
const pendingTasks = [];
|
|
16134
16326
|
treeMap.forEach((value, id) => {
|
|
16135
16327
|
if (value.parentId === resolvedInboxId) pendingTasks.push({
|
|
@@ -16215,16 +16407,16 @@ function registerChannelTools(mcp, server) {
|
|
|
16215
16407
|
const replyId = crypto.randomUUID();
|
|
16216
16408
|
const now = Date.now();
|
|
16217
16409
|
rootDoc.transact(() => {
|
|
16218
|
-
treeMap.set(replyId, {
|
|
16410
|
+
treeMap.set(replyId, (0, _abraca_dabra.makeEntryMap)({
|
|
16219
16411
|
label,
|
|
16220
16412
|
parentId: doc_id,
|
|
16221
16413
|
order: now,
|
|
16222
16414
|
type: "doc",
|
|
16223
16415
|
createdAt: now,
|
|
16224
16416
|
updatedAt: now
|
|
16225
|
-
});
|
|
16417
|
+
}));
|
|
16226
16418
|
});
|
|
16227
|
-
(0, _abraca_convert.populateYDocFromMarkdown)((await server.getChildProvider(replyId)).document, text);
|
|
16419
|
+
(0, _abraca_convert.populateYDocFromMarkdown)((await server.getChildProvider(replyId)).document.getXmlFragment("default"), text);
|
|
16228
16420
|
if (task_id) server.clearAiTask(task_id);
|
|
16229
16421
|
return { content: [{
|
|
16230
16422
|
type: "text",
|
|
@@ -16998,9 +17190,14 @@ function registerAgentGuide(mcp) {
|
|
|
16998
17190
|
|
|
16999
17191
|
//#endregion
|
|
17000
17192
|
//#region packages/mcp/src/resources/tree-resource.ts
|
|
17193
|
+
/**
|
|
17194
|
+
* Dynamic resource: document tree as navigable JSON.
|
|
17195
|
+
*/
|
|
17001
17196
|
function readEntries(treeMap) {
|
|
17002
17197
|
const entries = [];
|
|
17003
|
-
treeMap.forEach((
|
|
17198
|
+
treeMap.forEach((raw, id) => {
|
|
17199
|
+
const value = (0, _abraca_dabra.toPlain)(raw);
|
|
17200
|
+
if (typeof value !== "object" || value === null) return;
|
|
17004
17201
|
entries.push({
|
|
17005
17202
|
id,
|
|
17006
17203
|
label: value.label || "Untitled",
|
|
@@ -17297,7 +17494,7 @@ var HookBridge = class {
|
|
|
17297
17494
|
};
|
|
17298
17495
|
|
|
17299
17496
|
//#endregion
|
|
17300
|
-
//#region node_modules/ajv/dist/compile/codegen/code.js
|
|
17497
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/codegen/code.js
|
|
17301
17498
|
var require_code$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
17302
17499
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17303
17500
|
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;
|
|
@@ -17433,7 +17630,7 @@ var require_code$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
17433
17630
|
}));
|
|
17434
17631
|
|
|
17435
17632
|
//#endregion
|
|
17436
|
-
//#region node_modules/ajv/dist/compile/codegen/scope.js
|
|
17633
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/codegen/scope.js
|
|
17437
17634
|
var require_scope = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
17438
17635
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17439
17636
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
|
|
@@ -17571,7 +17768,7 @@ var require_scope = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
17571
17768
|
}));
|
|
17572
17769
|
|
|
17573
17770
|
//#endregion
|
|
17574
|
-
//#region node_modules/ajv/dist/compile/codegen/index.js
|
|
17771
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/codegen/index.js
|
|
17575
17772
|
var require_codegen = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
17576
17773
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17577
17774
|
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;
|
|
@@ -18241,7 +18438,7 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18241
18438
|
}));
|
|
18242
18439
|
|
|
18243
18440
|
//#endregion
|
|
18244
|
-
//#region node_modules/ajv/dist/compile/util.js
|
|
18441
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/util.js
|
|
18245
18442
|
var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18246
18443
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18247
18444
|
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;
|
|
@@ -18383,7 +18580,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18383
18580
|
}));
|
|
18384
18581
|
|
|
18385
18582
|
//#endregion
|
|
18386
|
-
//#region node_modules/ajv/dist/compile/names.js
|
|
18583
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/names.js
|
|
18387
18584
|
var require_names = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18388
18585
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18389
18586
|
const codegen_1 = require_codegen();
|
|
@@ -18409,7 +18606,7 @@ var require_names = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18409
18606
|
}));
|
|
18410
18607
|
|
|
18411
18608
|
//#endregion
|
|
18412
|
-
//#region node_modules/ajv/dist/compile/errors.js
|
|
18609
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/errors.js
|
|
18413
18610
|
var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18414
18611
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18415
18612
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
|
|
@@ -18506,7 +18703,7 @@ var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18506
18703
|
}));
|
|
18507
18704
|
|
|
18508
18705
|
//#endregion
|
|
18509
|
-
//#region node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
18706
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
18510
18707
|
var require_boolSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18511
18708
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18512
18709
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
|
|
@@ -18549,7 +18746,7 @@ var require_boolSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18549
18746
|
}));
|
|
18550
18747
|
|
|
18551
18748
|
//#endregion
|
|
18552
|
-
//#region node_modules/ajv/dist/compile/rules.js
|
|
18749
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/rules.js
|
|
18553
18750
|
var require_rules = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18554
18751
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18555
18752
|
exports.getRules = exports.isJSONType = void 0;
|
|
@@ -18608,7 +18805,7 @@ var require_rules = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18608
18805
|
}));
|
|
18609
18806
|
|
|
18610
18807
|
//#endregion
|
|
18611
|
-
//#region node_modules/ajv/dist/compile/validate/applicability.js
|
|
18808
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/validate/applicability.js
|
|
18612
18809
|
var require_applicability = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18613
18810
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18614
18811
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
|
|
@@ -18629,7 +18826,7 @@ var require_applicability = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18629
18826
|
}));
|
|
18630
18827
|
|
|
18631
18828
|
//#endregion
|
|
18632
|
-
//#region node_modules/ajv/dist/compile/validate/dataType.js
|
|
18829
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/validate/dataType.js
|
|
18633
18830
|
var require_dataType = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18634
18831
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18635
18832
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
|
|
@@ -18794,7 +18991,7 @@ var require_dataType = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18794
18991
|
}));
|
|
18795
18992
|
|
|
18796
18993
|
//#endregion
|
|
18797
|
-
//#region node_modules/ajv/dist/compile/validate/defaults.js
|
|
18994
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/validate/defaults.js
|
|
18798
18995
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18799
18996
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18800
18997
|
exports.assignDefaults = void 0;
|
|
@@ -18821,7 +19018,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18821
19018
|
}));
|
|
18822
19019
|
|
|
18823
19020
|
//#endregion
|
|
18824
|
-
//#region node_modules/ajv/dist/vocabularies/code.js
|
|
19021
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/code.js
|
|
18825
19022
|
var require_code = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18826
19023
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18827
19024
|
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;
|
|
@@ -18946,7 +19143,7 @@ var require_code = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18946
19143
|
}));
|
|
18947
19144
|
|
|
18948
19145
|
//#endregion
|
|
18949
|
-
//#region node_modules/ajv/dist/compile/validate/keyword.js
|
|
19146
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/validate/keyword.js
|
|
18950
19147
|
var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18951
19148
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18952
19149
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
|
|
@@ -19053,7 +19250,7 @@ var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19053
19250
|
}));
|
|
19054
19251
|
|
|
19055
19252
|
//#endregion
|
|
19056
|
-
//#region node_modules/ajv/dist/compile/validate/subschema.js
|
|
19253
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/validate/subschema.js
|
|
19057
19254
|
var require_subschema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
19058
19255
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19059
19256
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
|
|
@@ -19152,7 +19349,7 @@ var require_fast_deep_equal = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
19152
19349
|
}));
|
|
19153
19350
|
|
|
19154
19351
|
//#endregion
|
|
19155
|
-
//#region node_modules/json-schema-traverse/index.js
|
|
19352
|
+
//#region packages/mcp/node_modules/json-schema-traverse/index.js
|
|
19156
19353
|
var require_json_schema_traverse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
19157
19354
|
var traverse = module.exports = function(schema, opts, cb) {
|
|
19158
19355
|
if (typeof opts == "function") {
|
|
@@ -19228,7 +19425,7 @@ var require_json_schema_traverse = /* @__PURE__ */ __commonJSMin(((exports, modu
|
|
|
19228
19425
|
}));
|
|
19229
19426
|
|
|
19230
19427
|
//#endregion
|
|
19231
|
-
//#region node_modules/ajv/dist/compile/resolve.js
|
|
19428
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/resolve.js
|
|
19232
19429
|
var require_resolve = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
19233
19430
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19234
19431
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
|
|
@@ -19356,7 +19553,7 @@ var require_resolve = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19356
19553
|
}));
|
|
19357
19554
|
|
|
19358
19555
|
//#endregion
|
|
19359
|
-
//#region node_modules/ajv/dist/compile/validate/index.js
|
|
19556
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/validate/index.js
|
|
19360
19557
|
var require_validate = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
19361
19558
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19362
19559
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
|
|
@@ -19776,7 +19973,7 @@ var require_validate = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19776
19973
|
}));
|
|
19777
19974
|
|
|
19778
19975
|
//#endregion
|
|
19779
|
-
//#region node_modules/ajv/dist/runtime/validation_error.js
|
|
19976
|
+
//#region packages/mcp/node_modules/ajv/dist/runtime/validation_error.js
|
|
19780
19977
|
var require_validation_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
19781
19978
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19782
19979
|
var ValidationError = class extends Error {
|
|
@@ -19790,7 +19987,7 @@ var require_validation_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19790
19987
|
}));
|
|
19791
19988
|
|
|
19792
19989
|
//#endregion
|
|
19793
|
-
//#region node_modules/ajv/dist/compile/ref_error.js
|
|
19990
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/ref_error.js
|
|
19794
19991
|
var require_ref_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
19795
19992
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19796
19993
|
const resolve_1 = require_resolve();
|
|
@@ -19805,7 +20002,7 @@ var require_ref_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19805
20002
|
}));
|
|
19806
20003
|
|
|
19807
20004
|
//#endregion
|
|
19808
|
-
//#region node_modules/ajv/dist/compile/index.js
|
|
20005
|
+
//#region packages/mcp/node_modules/ajv/dist/compile/index.js
|
|
19809
20006
|
var require_compile = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
19810
20007
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19811
20008
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
|
|
@@ -20020,7 +20217,7 @@ var require_compile = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20020
20217
|
}));
|
|
20021
20218
|
|
|
20022
20219
|
//#endregion
|
|
20023
|
-
//#region node_modules/ajv/dist/refs/data.json
|
|
20220
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/data.json
|
|
20024
20221
|
var require_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
20025
20222
|
module.exports = {
|
|
20026
20223
|
"$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
@@ -20735,7 +20932,7 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20735
20932
|
}));
|
|
20736
20933
|
|
|
20737
20934
|
//#endregion
|
|
20738
|
-
//#region node_modules/ajv/dist/runtime/uri.js
|
|
20935
|
+
//#region packages/mcp/node_modules/ajv/dist/runtime/uri.js
|
|
20739
20936
|
var require_uri = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
20740
20937
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20741
20938
|
const uri = require_fast_uri();
|
|
@@ -20744,7 +20941,7 @@ var require_uri = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20744
20941
|
}));
|
|
20745
20942
|
|
|
20746
20943
|
//#endregion
|
|
20747
|
-
//#region node_modules/ajv/dist/core.js
|
|
20944
|
+
//#region packages/mcp/node_modules/ajv/dist/core.js
|
|
20748
20945
|
var require_core$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
20749
20946
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20750
20947
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
@@ -20886,7 +21083,7 @@ var require_core$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20886
21083
|
constructor(opts = {}) {
|
|
20887
21084
|
this.schemas = {};
|
|
20888
21085
|
this.refs = {};
|
|
20889
|
-
this.formats =
|
|
21086
|
+
this.formats = Object.create(null);
|
|
20890
21087
|
this._compilations = /* @__PURE__ */ new Set();
|
|
20891
21088
|
this._loading = {};
|
|
20892
21089
|
this._cache = /* @__PURE__ */ new Map();
|
|
@@ -21314,7 +21511,7 @@ var require_core$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21314
21511
|
}));
|
|
21315
21512
|
|
|
21316
21513
|
//#endregion
|
|
21317
|
-
//#region node_modules/ajv/dist/vocabularies/core/id.js
|
|
21514
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/core/id.js
|
|
21318
21515
|
var require_id = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21319
21516
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21320
21517
|
const def = {
|
|
@@ -21327,7 +21524,7 @@ var require_id = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21327
21524
|
}));
|
|
21328
21525
|
|
|
21329
21526
|
//#endregion
|
|
21330
|
-
//#region node_modules/ajv/dist/vocabularies/core/ref.js
|
|
21527
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
21331
21528
|
var require_ref = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21332
21529
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21333
21530
|
exports.callRef = exports.getValidate = void 0;
|
|
@@ -21431,7 +21628,7 @@ var require_ref = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21431
21628
|
}));
|
|
21432
21629
|
|
|
21433
21630
|
//#endregion
|
|
21434
|
-
//#region node_modules/ajv/dist/vocabularies/core/index.js
|
|
21631
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/core/index.js
|
|
21435
21632
|
var require_core$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21436
21633
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21437
21634
|
const id_1 = require_id();
|
|
@@ -21450,7 +21647,7 @@ var require_core$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21450
21647
|
}));
|
|
21451
21648
|
|
|
21452
21649
|
//#endregion
|
|
21453
|
-
//#region node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
21650
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
21454
21651
|
var require_limitNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21455
21652
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21456
21653
|
const codegen_1 = require_codegen();
|
|
@@ -21495,7 +21692,7 @@ var require_limitNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21495
21692
|
}));
|
|
21496
21693
|
|
|
21497
21694
|
//#endregion
|
|
21498
|
-
//#region node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
21695
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
21499
21696
|
var require_multipleOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21500
21697
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21501
21698
|
const codegen_1 = require_codegen();
|
|
@@ -21520,7 +21717,7 @@ var require_multipleOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21520
21717
|
}));
|
|
21521
21718
|
|
|
21522
21719
|
//#endregion
|
|
21523
|
-
//#region node_modules/ajv/dist/runtime/ucs2length.js
|
|
21720
|
+
//#region packages/mcp/node_modules/ajv/dist/runtime/ucs2length.js
|
|
21524
21721
|
var require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21525
21722
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21526
21723
|
function ucs2length(str) {
|
|
@@ -21543,7 +21740,7 @@ var require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21543
21740
|
}));
|
|
21544
21741
|
|
|
21545
21742
|
//#endregion
|
|
21546
|
-
//#region node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
21743
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
21547
21744
|
var require_limitLength = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21548
21745
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21549
21746
|
const codegen_1 = require_codegen();
|
|
@@ -21572,7 +21769,7 @@ var require_limitLength = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21572
21769
|
}));
|
|
21573
21770
|
|
|
21574
21771
|
//#endregion
|
|
21575
|
-
//#region node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
21772
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
21576
21773
|
var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21577
21774
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21578
21775
|
const code_1 = require_code();
|
|
@@ -21606,7 +21803,7 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21606
21803
|
}));
|
|
21607
21804
|
|
|
21608
21805
|
//#endregion
|
|
21609
|
-
//#region node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
21806
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
21610
21807
|
var require_limitProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21611
21808
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21612
21809
|
const codegen_1 = require_codegen();
|
|
@@ -21632,7 +21829,7 @@ var require_limitProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21632
21829
|
}));
|
|
21633
21830
|
|
|
21634
21831
|
//#endregion
|
|
21635
|
-
//#region node_modules/ajv/dist/vocabularies/validation/required.js
|
|
21832
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
21636
21833
|
var require_required = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21637
21834
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21638
21835
|
const code_1 = require_code();
|
|
@@ -21700,7 +21897,7 @@ var require_required = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21700
21897
|
}));
|
|
21701
21898
|
|
|
21702
21899
|
//#endregion
|
|
21703
|
-
//#region node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
21900
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
21704
21901
|
var require_limitItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21705
21902
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21706
21903
|
const codegen_1 = require_codegen();
|
|
@@ -21726,7 +21923,7 @@ var require_limitItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21726
21923
|
}));
|
|
21727
21924
|
|
|
21728
21925
|
//#endregion
|
|
21729
|
-
//#region node_modules/ajv/dist/runtime/equal.js
|
|
21926
|
+
//#region packages/mcp/node_modules/ajv/dist/runtime/equal.js
|
|
21730
21927
|
var require_equal = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21731
21928
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21732
21929
|
const equal = require_fast_deep_equal();
|
|
@@ -21735,7 +21932,7 @@ var require_equal = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21735
21932
|
}));
|
|
21736
21933
|
|
|
21737
21934
|
//#endregion
|
|
21738
|
-
//#region node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
21935
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
21739
21936
|
var require_uniqueItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21740
21937
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21741
21938
|
const dataType_1 = require_dataType();
|
|
@@ -21800,7 +21997,7 @@ var require_uniqueItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21800
21997
|
}));
|
|
21801
21998
|
|
|
21802
21999
|
//#endregion
|
|
21803
|
-
//#region node_modules/ajv/dist/vocabularies/validation/const.js
|
|
22000
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
21804
22001
|
var require_const = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21805
22002
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21806
22003
|
const codegen_1 = require_codegen();
|
|
@@ -21823,7 +22020,7 @@ var require_const = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21823
22020
|
}));
|
|
21824
22021
|
|
|
21825
22022
|
//#endregion
|
|
21826
|
-
//#region node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
22023
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
21827
22024
|
var require_enum = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21828
22025
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21829
22026
|
const codegen_1 = require_codegen();
|
|
@@ -21868,7 +22065,7 @@ var require_enum = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21868
22065
|
}));
|
|
21869
22066
|
|
|
21870
22067
|
//#endregion
|
|
21871
|
-
//#region node_modules/ajv/dist/vocabularies/validation/index.js
|
|
22068
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
21872
22069
|
var require_validation$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21873
22070
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21874
22071
|
const limitNumber_1 = require_limitNumber();
|
|
@@ -21905,7 +22102,7 @@ var require_validation$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21905
22102
|
}));
|
|
21906
22103
|
|
|
21907
22104
|
//#endregion
|
|
21908
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
22105
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
21909
22106
|
var require_additionalItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21910
22107
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21911
22108
|
exports.validateAdditionalItems = void 0;
|
|
@@ -21958,7 +22155,7 @@ var require_additionalItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21958
22155
|
}));
|
|
21959
22156
|
|
|
21960
22157
|
//#endregion
|
|
21961
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
22158
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
21962
22159
|
var require_items = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21963
22160
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21964
22161
|
exports.validateTuple = void 0;
|
|
@@ -22012,7 +22209,7 @@ var require_items = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22012
22209
|
}));
|
|
22013
22210
|
|
|
22014
22211
|
//#endregion
|
|
22015
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
22212
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
22016
22213
|
var require_prefixItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22017
22214
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22018
22215
|
const items_1 = require_items();
|
|
@@ -22027,7 +22224,7 @@ var require_prefixItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22027
22224
|
}));
|
|
22028
22225
|
|
|
22029
22226
|
//#endregion
|
|
22030
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
22227
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
22031
22228
|
var require_items2020 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22032
22229
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22033
22230
|
const codegen_1 = require_codegen();
|
|
@@ -22056,7 +22253,7 @@ var require_items2020 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22056
22253
|
}));
|
|
22057
22254
|
|
|
22058
22255
|
//#endregion
|
|
22059
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
22256
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
22060
22257
|
var require_contains = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22061
22258
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22062
22259
|
const codegen_1 = require_codegen();
|
|
@@ -22142,7 +22339,7 @@ var require_contains = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22142
22339
|
}));
|
|
22143
22340
|
|
|
22144
22341
|
//#endregion
|
|
22145
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
22342
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
22146
22343
|
var require_dependencies = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22147
22344
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22148
22345
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
|
|
@@ -22224,7 +22421,7 @@ var require_dependencies = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22224
22421
|
}));
|
|
22225
22422
|
|
|
22226
22423
|
//#endregion
|
|
22227
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
22424
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
22228
22425
|
var require_propertyNames = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22229
22426
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22230
22427
|
const codegen_1 = require_codegen();
|
|
@@ -22262,7 +22459,7 @@ var require_propertyNames = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22262
22459
|
}));
|
|
22263
22460
|
|
|
22264
22461
|
//#endregion
|
|
22265
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
22462
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
22266
22463
|
var require_additionalProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22267
22464
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22268
22465
|
const code_1 = require_code();
|
|
@@ -22353,7 +22550,7 @@ var require_additionalProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22353
22550
|
}));
|
|
22354
22551
|
|
|
22355
22552
|
//#endregion
|
|
22356
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
22553
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
22357
22554
|
var require_properties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22358
22555
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22359
22556
|
const validate_1 = require_validate();
|
|
@@ -22400,7 +22597,7 @@ var require_properties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22400
22597
|
}));
|
|
22401
22598
|
|
|
22402
22599
|
//#endregion
|
|
22403
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
22600
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
22404
22601
|
var require_patternProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22405
22602
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22406
22603
|
const code_1 = require_code();
|
|
@@ -22457,7 +22654,7 @@ var require_patternProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22457
22654
|
}));
|
|
22458
22655
|
|
|
22459
22656
|
//#endregion
|
|
22460
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
22657
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
22461
22658
|
var require_not = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22462
22659
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22463
22660
|
const util_1 = require_util();
|
|
@@ -22486,7 +22683,7 @@ var require_not = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22486
22683
|
}));
|
|
22487
22684
|
|
|
22488
22685
|
//#endregion
|
|
22489
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
22686
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
22490
22687
|
var require_anyOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22491
22688
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22492
22689
|
const def = {
|
|
@@ -22500,7 +22697,7 @@ var require_anyOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22500
22697
|
}));
|
|
22501
22698
|
|
|
22502
22699
|
//#endregion
|
|
22503
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
22700
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
22504
22701
|
var require_oneOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22505
22702
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22506
22703
|
const codegen_1 = require_codegen();
|
|
@@ -22548,7 +22745,7 @@ var require_oneOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22548
22745
|
}));
|
|
22549
22746
|
|
|
22550
22747
|
//#endregion
|
|
22551
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
22748
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
22552
22749
|
var require_allOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22553
22750
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22554
22751
|
const util_1 = require_util();
|
|
@@ -22575,7 +22772,7 @@ var require_allOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22575
22772
|
}));
|
|
22576
22773
|
|
|
22577
22774
|
//#endregion
|
|
22578
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
22775
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
22579
22776
|
var require_if = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22580
22777
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22581
22778
|
const codegen_1 = require_codegen();
|
|
@@ -22633,7 +22830,7 @@ var require_if = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22633
22830
|
}));
|
|
22634
22831
|
|
|
22635
22832
|
//#endregion
|
|
22636
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
22833
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
22637
22834
|
var require_thenElse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22638
22835
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22639
22836
|
const util_1 = require_util();
|
|
@@ -22648,7 +22845,7 @@ var require_thenElse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22648
22845
|
}));
|
|
22649
22846
|
|
|
22650
22847
|
//#endregion
|
|
22651
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
22848
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
22652
22849
|
var require_applicator$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22653
22850
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22654
22851
|
const additionalItems_1 = require_additionalItems();
|
|
@@ -22690,7 +22887,7 @@ var require_applicator$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22690
22887
|
}));
|
|
22691
22888
|
|
|
22692
22889
|
//#endregion
|
|
22693
|
-
//#region node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js
|
|
22890
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js
|
|
22694
22891
|
var require_dynamicAnchor = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22695
22892
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22696
22893
|
exports.dynamicAnchor = void 0;
|
|
@@ -22730,7 +22927,7 @@ var require_dynamicAnchor = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22730
22927
|
}));
|
|
22731
22928
|
|
|
22732
22929
|
//#endregion
|
|
22733
|
-
//#region node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js
|
|
22930
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js
|
|
22734
22931
|
var require_dynamicRef = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22735
22932
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22736
22933
|
exports.dynamicRef = void 0;
|
|
@@ -22770,7 +22967,7 @@ var require_dynamicRef = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22770
22967
|
}));
|
|
22771
22968
|
|
|
22772
22969
|
//#endregion
|
|
22773
|
-
//#region node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js
|
|
22970
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js
|
|
22774
22971
|
var require_recursiveAnchor = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22775
22972
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22776
22973
|
const dynamicAnchor_1 = require_dynamicAnchor();
|
|
@@ -22787,7 +22984,7 @@ var require_recursiveAnchor = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22787
22984
|
}));
|
|
22788
22985
|
|
|
22789
22986
|
//#endregion
|
|
22790
|
-
//#region node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js
|
|
22987
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js
|
|
22791
22988
|
var require_recursiveRef = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22792
22989
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22793
22990
|
const dynamicRef_1 = require_dynamicRef();
|
|
@@ -22800,7 +22997,7 @@ var require_recursiveRef = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22800
22997
|
}));
|
|
22801
22998
|
|
|
22802
22999
|
//#endregion
|
|
22803
|
-
//#region node_modules/ajv/dist/vocabularies/dynamic/index.js
|
|
23000
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/dynamic/index.js
|
|
22804
23001
|
var require_dynamic = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22805
23002
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22806
23003
|
const dynamicAnchor_1 = require_dynamicAnchor();
|
|
@@ -22817,7 +23014,7 @@ var require_dynamic = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22817
23014
|
}));
|
|
22818
23015
|
|
|
22819
23016
|
//#endregion
|
|
22820
|
-
//#region node_modules/ajv/dist/vocabularies/validation/dependentRequired.js
|
|
23017
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js
|
|
22821
23018
|
var require_dependentRequired = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22822
23019
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22823
23020
|
const dependencies_1 = require_dependencies();
|
|
@@ -22832,7 +23029,7 @@ var require_dependentRequired = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22832
23029
|
}));
|
|
22833
23030
|
|
|
22834
23031
|
//#endregion
|
|
22835
|
-
//#region node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js
|
|
23032
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js
|
|
22836
23033
|
var require_dependentSchemas = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22837
23034
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22838
23035
|
const dependencies_1 = require_dependencies();
|
|
@@ -22846,7 +23043,7 @@ var require_dependentSchemas = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22846
23043
|
}));
|
|
22847
23044
|
|
|
22848
23045
|
//#endregion
|
|
22849
|
-
//#region node_modules/ajv/dist/vocabularies/validation/limitContains.js
|
|
23046
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/validation/limitContains.js
|
|
22850
23047
|
var require_limitContains = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22851
23048
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22852
23049
|
const util_1 = require_util();
|
|
@@ -22862,7 +23059,7 @@ var require_limitContains = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22862
23059
|
}));
|
|
22863
23060
|
|
|
22864
23061
|
//#endregion
|
|
22865
|
-
//#region node_modules/ajv/dist/vocabularies/next.js
|
|
23062
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/next.js
|
|
22866
23063
|
var require_next = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22867
23064
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22868
23065
|
const dependentRequired_1 = require_dependentRequired();
|
|
@@ -22877,7 +23074,7 @@ var require_next = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22877
23074
|
}));
|
|
22878
23075
|
|
|
22879
23076
|
//#endregion
|
|
22880
|
-
//#region node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js
|
|
23077
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js
|
|
22881
23078
|
var require_unevaluatedProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22882
23079
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22883
23080
|
const codegen_1 = require_codegen();
|
|
@@ -22932,7 +23129,7 @@ var require_unevaluatedProperties = /* @__PURE__ */ __commonJSMin(((exports) =>
|
|
|
22932
23129
|
}));
|
|
22933
23130
|
|
|
22934
23131
|
//#endregion
|
|
22935
|
-
//#region node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js
|
|
23132
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js
|
|
22936
23133
|
var require_unevaluatedItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22937
23134
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22938
23135
|
const codegen_1 = require_codegen();
|
|
@@ -22975,7 +23172,7 @@ var require_unevaluatedItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22975
23172
|
}));
|
|
22976
23173
|
|
|
22977
23174
|
//#endregion
|
|
22978
|
-
//#region node_modules/ajv/dist/vocabularies/unevaluated/index.js
|
|
23175
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/unevaluated/index.js
|
|
22979
23176
|
var require_unevaluated$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22980
23177
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22981
23178
|
const unevaluatedProperties_1 = require_unevaluatedProperties();
|
|
@@ -22985,7 +23182,7 @@ var require_unevaluated$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22985
23182
|
}));
|
|
22986
23183
|
|
|
22987
23184
|
//#endregion
|
|
22988
|
-
//#region node_modules/ajv/dist/vocabularies/format/format.js
|
|
23185
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/format/format.js
|
|
22989
23186
|
var require_format$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
22990
23187
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22991
23188
|
const codegen_1 = require_codegen();
|
|
@@ -23075,7 +23272,7 @@ var require_format$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23075
23272
|
}));
|
|
23076
23273
|
|
|
23077
23274
|
//#endregion
|
|
23078
|
-
//#region node_modules/ajv/dist/vocabularies/format/index.js
|
|
23275
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/format/index.js
|
|
23079
23276
|
var require_format = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
23080
23277
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23081
23278
|
const format = [require_format$1().default];
|
|
@@ -23083,7 +23280,7 @@ var require_format = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23083
23280
|
}));
|
|
23084
23281
|
|
|
23085
23282
|
//#endregion
|
|
23086
|
-
//#region node_modules/ajv/dist/vocabularies/metadata.js
|
|
23283
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/metadata.js
|
|
23087
23284
|
var require_metadata = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
23088
23285
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23089
23286
|
exports.contentVocabulary = exports.metadataVocabulary = void 0;
|
|
@@ -23104,7 +23301,7 @@ var require_metadata = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23104
23301
|
}));
|
|
23105
23302
|
|
|
23106
23303
|
//#endregion
|
|
23107
|
-
//#region node_modules/ajv/dist/vocabularies/draft2020.js
|
|
23304
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/draft2020.js
|
|
23108
23305
|
var require_draft2020 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
23109
23306
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23110
23307
|
const core_1 = require_core$1();
|
|
@@ -23130,7 +23327,7 @@ var require_draft2020 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23130
23327
|
}));
|
|
23131
23328
|
|
|
23132
23329
|
//#endregion
|
|
23133
|
-
//#region node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
23330
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
23134
23331
|
var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
23135
23332
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23136
23333
|
exports.DiscrError = void 0;
|
|
@@ -23142,7 +23339,7 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23142
23339
|
}));
|
|
23143
23340
|
|
|
23144
23341
|
//#endregion
|
|
23145
|
-
//#region node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
23342
|
+
//#region packages/mcp/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
23146
23343
|
var require_discriminator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
23147
23344
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23148
23345
|
const codegen_1 = require_codegen();
|
|
@@ -23237,7 +23434,7 @@ var require_discriminator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23237
23434
|
}));
|
|
23238
23435
|
|
|
23239
23436
|
//#endregion
|
|
23240
|
-
//#region node_modules/ajv/dist/refs/json-schema-2020-12/schema.json
|
|
23437
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json
|
|
23241
23438
|
var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23242
23439
|
module.exports = {
|
|
23243
23440
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -23294,7 +23491,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23294
23491
|
}));
|
|
23295
23492
|
|
|
23296
23493
|
//#endregion
|
|
23297
|
-
//#region node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json
|
|
23494
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json
|
|
23298
23495
|
var require_applicator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23299
23496
|
module.exports = {
|
|
23300
23497
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -23342,7 +23539,7 @@ var require_applicator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23342
23539
|
}));
|
|
23343
23540
|
|
|
23344
23541
|
//#endregion
|
|
23345
|
-
//#region node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json
|
|
23542
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json
|
|
23346
23543
|
var require_unevaluated = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23347
23544
|
module.exports = {
|
|
23348
23545
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -23359,7 +23556,7 @@ var require_unevaluated = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23359
23556
|
}));
|
|
23360
23557
|
|
|
23361
23558
|
//#endregion
|
|
23362
|
-
//#region node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json
|
|
23559
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json
|
|
23363
23560
|
var require_content = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23364
23561
|
module.exports = {
|
|
23365
23562
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -23377,7 +23574,7 @@ var require_content = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23377
23574
|
}));
|
|
23378
23575
|
|
|
23379
23576
|
//#endregion
|
|
23380
|
-
//#region node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json
|
|
23577
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json
|
|
23381
23578
|
var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23382
23579
|
module.exports = {
|
|
23383
23580
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -23426,7 +23623,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23426
23623
|
}));
|
|
23427
23624
|
|
|
23428
23625
|
//#endregion
|
|
23429
|
-
//#region node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json
|
|
23626
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json
|
|
23430
23627
|
var require_format_annotation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23431
23628
|
module.exports = {
|
|
23432
23629
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -23440,7 +23637,7 @@ var require_format_annotation = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
23440
23637
|
}));
|
|
23441
23638
|
|
|
23442
23639
|
//#endregion
|
|
23443
|
-
//#region node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json
|
|
23640
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json
|
|
23444
23641
|
var require_meta_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23445
23642
|
module.exports = {
|
|
23446
23643
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -23474,7 +23671,7 @@ var require_meta_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23474
23671
|
}));
|
|
23475
23672
|
|
|
23476
23673
|
//#endregion
|
|
23477
|
-
//#region node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json
|
|
23674
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json
|
|
23478
23675
|
var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23479
23676
|
module.exports = {
|
|
23480
23677
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -23557,7 +23754,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
23557
23754
|
}));
|
|
23558
23755
|
|
|
23559
23756
|
//#endregion
|
|
23560
|
-
//#region node_modules/ajv/dist/refs/json-schema-2020-12/index.js
|
|
23757
|
+
//#region packages/mcp/node_modules/ajv/dist/refs/json-schema-2020-12/index.js
|
|
23561
23758
|
var require_json_schema_2020_12 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
23562
23759
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23563
23760
|
const metaSchema = require_schema();
|
|
@@ -23589,7 +23786,7 @@ var require_json_schema_2020_12 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23589
23786
|
}));
|
|
23590
23787
|
|
|
23591
23788
|
//#endregion
|
|
23592
|
-
//#region node_modules/ajv/dist/2020.js
|
|
23789
|
+
//#region packages/mcp/node_modules/ajv/dist/2020.js
|
|
23593
23790
|
var require__2020 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23594
23791
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23595
23792
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv2020 = void 0;
|