@grackle-ai/web-components 0.112.1 → 0.112.2
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/.rush/temp/1421806d07f6b0c455deca4bf89a6412726ffd8b.tar.log +236 -0
- package/.rush/temp/{30718c57404891eb5c6c96c935c4a6879170c963.untar.log → 1421806d07f6b0c455deca4bf89a6412726ffd8b.untar.log} +2 -2
- package/.rush/temp/a0341c0f1c835c664217d8a879aa38d780e62122.tar.log +12 -0
- package/.rush/temp/{6ab1fbb7acd3281d7612ffe24dcc9982dd8c9061.untar.log → a0341c0f1c835c664217d8a879aa38d780e62122.untar.log} +2 -2
- package/.rush/temp/chunked-rush-logs/web-components._phase_build.chunks.jsonl +18 -0
- package/.rush/temp/chunked-rush-logs/web-components._phase_test.chunks.jsonl +125 -0
- package/.rush/temp/operation/_phase_build/all.log +4 -4
- package/.rush/temp/operation/_phase_build/log-chunks.jsonl +4 -4
- package/.rush/temp/operation/_phase_build/state.json +1 -1
- package/.rush/temp/operation/_phase_test/all.log +21 -21
- package/.rush/temp/operation/_phase_test/log-chunks.jsonl +21 -21
- package/.rush/temp/operation/_phase_test/state.json +1 -1
- package/dist/index.js +76 -76
- package/package.json +2 -2
- package/rush-logs/web-components._phase_build.cache.log +1 -1
- package/rush-logs/web-components._phase_build.log +18 -0
- package/rush-logs/web-components._phase_test.cache.log +1 -1
- package/rush-logs/web-components._phase_test.log +125 -0
- package/src/hooks/types.ts +1 -1
- package/src/mocks/MockGrackleProvider.tsx +2 -2
- package/temp/build/lint/_eslint-5eVG3S6w.json +838 -0
package/dist/index.js
CHANGED
|
@@ -6323,11 +6323,11 @@ const YC = {
|
|
|
6323
6323
|
position: "relative",
|
|
6324
6324
|
zIndex: 0
|
|
6325
6325
|
};
|
|
6326
|
-
function JC({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i, nodeTypes: s, edgeTypes: o, onNodeClick: a, onEdgeClick: l, onInit: c, onMove: u, onMoveStart: d, onMoveEnd: p, onConnect: f, onConnectStart: h, onConnectEnd: g, onClickConnectStart: b, onClickConnectEnd: y, onNodeMouseEnter: _, onNodeMouseMove: v, onNodeMouseLeave: w, onNodeContextMenu: x, onNodeDoubleClick: k, onNodeDragStart: C, onNodeDrag: I, onNodeDragStop: D, onNodesDelete: S, onEdgesDelete: A, onDelete: O, onSelectionChange: $, onSelectionDragStart: E, onSelectionDrag: P, onSelectionDragStop: R, onSelectionContextMenu: L, onSelectionStart: B, onSelectionEnd: F, onBeforeDelete: N, connectionMode: H, connectionLineType: G = Hr.Bezier, connectionLineStyle: M, connectionLineComponent: j, connectionLineContainerStyle: z, deleteKeyCode: U = "Backspace", selectionKeyCode: V = "Shift", selectionOnDrag: q = !1, selectionMode: Y = po.Full, panActivationKeyCode: re = "Space", multiSelectionKeyCode: oe = ho() ? "Meta" : "Control", zoomActivationKeyCode: me = ho() ? "Meta" : "Control", snapToGrid: ge, snapGrid: Se, onlyRenderVisibleElements: Q = !1, selectNodesOnDrag: le, nodesDraggable: Ae, autoPanOnNodeFocus: Fe, nodesConnectable: Et, nodesFocusable: yn, nodeOrigin: er = cv, edgesFocusable: tr, edgesReconnectable: nr, elementsSelectable: Pr = !0, defaultViewport: vr = xI, minZoom: ee = 0.5, maxZoom: fe = 2, translateExtent: Ie = uo, preventScrolling: De = !0, nodeExtent: Ue, defaultMarkerColor: Gt = "#b1b1b7", zoomOnScroll: bn = !0, zoomOnPinch: on = !0, panOnScroll: rr = !1, panOnScrollSpeed: ir = 0.5, panOnScrollMode: Ft = yi.Free, zoomOnDoubleClick: $n = !0, panOnDrag: an = !0, onPaneClick: la, onPaneMouseEnter: ca, onPaneMouseMove: ua, onPaneMouseLeave: da, onPaneScroll: pa, onPaneContextMenu: fa, paneClickDistance: ha = 1, nodeClickDistance: ma = 0, children: Cc, onReconnect: W, onReconnectStart: ne, onReconnectEnd: ce, onEdgeContextMenu: pe, onEdgeDoubleClick: ye, onEdgeMouseEnter: je, onEdgeMouseMove: ke, onEdgeMouseLeave: Oe, reconnectRadius: We = 10, onNodesChange:
|
|
6326
|
+
function JC({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i, nodeTypes: s, edgeTypes: o, onNodeClick: a, onEdgeClick: l, onInit: c, onMove: u, onMoveStart: d, onMoveEnd: p, onConnect: f, onConnectStart: h, onConnectEnd: g, onClickConnectStart: b, onClickConnectEnd: y, onNodeMouseEnter: _, onNodeMouseMove: v, onNodeMouseLeave: w, onNodeContextMenu: x, onNodeDoubleClick: k, onNodeDragStart: C, onNodeDrag: I, onNodeDragStop: D, onNodesDelete: S, onEdgesDelete: A, onDelete: O, onSelectionChange: $, onSelectionDragStart: E, onSelectionDrag: P, onSelectionDragStop: R, onSelectionContextMenu: L, onSelectionStart: B, onSelectionEnd: F, onBeforeDelete: N, connectionMode: H, connectionLineType: G = Hr.Bezier, connectionLineStyle: M, connectionLineComponent: j, connectionLineContainerStyle: z, deleteKeyCode: U = "Backspace", selectionKeyCode: V = "Shift", selectionOnDrag: q = !1, selectionMode: Y = po.Full, panActivationKeyCode: re = "Space", multiSelectionKeyCode: oe = ho() ? "Meta" : "Control", zoomActivationKeyCode: me = ho() ? "Meta" : "Control", snapToGrid: ge, snapGrid: Se, onlyRenderVisibleElements: Q = !1, selectNodesOnDrag: le, nodesDraggable: Ae, autoPanOnNodeFocus: Fe, nodesConnectable: Et, nodesFocusable: yn, nodeOrigin: er = cv, edgesFocusable: tr, edgesReconnectable: nr, elementsSelectable: Pr = !0, defaultViewport: vr = xI, minZoom: ee = 0.5, maxZoom: fe = 2, translateExtent: Ie = uo, preventScrolling: De = !0, nodeExtent: Ue, defaultMarkerColor: Gt = "#b1b1b7", zoomOnScroll: bn = !0, zoomOnPinch: on = !0, panOnScroll: rr = !1, panOnScrollSpeed: ir = 0.5, panOnScrollMode: Ft = yi.Free, zoomOnDoubleClick: $n = !0, panOnDrag: an = !0, onPaneClick: la, onPaneMouseEnter: ca, onPaneMouseMove: ua, onPaneMouseLeave: da, onPaneScroll: pa, onPaneContextMenu: fa, paneClickDistance: ha = 1, nodeClickDistance: ma = 0, children: Cc, onReconnect: W, onReconnectStart: ne, onReconnectEnd: ce, onEdgeContextMenu: pe, onEdgeDoubleClick: ye, onEdgeMouseEnter: je, onEdgeMouseMove: ke, onEdgeMouseLeave: Oe, reconnectRadius: We = 10, onNodesChange: st, onEdgesChange: Xe, noDragClassName: Vt = "nodrag", noWheelClassName: Zt = "nowheel", noPanClassName: It = "nopan", fitView: _r, fitViewOptions: sr, connectOnClick: Ns, attributionPosition: kx, proOptions: xx, defaultEdgeOptions: Sx, elevateNodesOnSelect: Ex = !0, elevateEdgesOnSelect: Nx = !1, disableKeyboardA11y: kh = !1, autoPanOnConnect: Tx, autoPanOnNodeDrag: Ix, autoPanSpeed: Cx, connectionRadius: Ax, isValidConnection: Rx, onError: Ox, style: Mx, id: xh, nodeDragThreshold: Px, connectionDragThreshold: Dx, viewport: Lx, onViewportChange: $x, width: zx, height: Bx, colorMode: Fx = "light", debug: jx, onScroll: ga, ariaLabelConfig: Vx, zIndexMode: Sh = "basic", ...Hx }, Ux) {
|
|
6327
6327
|
const Ac = xh || "1", qx = TI(Fx), Gx = ae((Eh) => {
|
|
6328
6328
|
Eh.currentTarget.scrollTo({ top: 0, left: 0, behavior: "instant" }), ga == null || ga(Eh);
|
|
6329
6329
|
}, [ga]);
|
|
6330
|
-
return m("div", { "data-testid": "rf__wrapper", ...Hx, onScroll: Gx, style: { ...Mx, ...YC }, ref: Ux, className: Lt(["react-flow", i, qx]), id: xh, role: "application", children: T(KC, { nodes: e, edges: t, width: zx, height: Bx, fitView: _r, fitViewOptions: sr, minZoom: ee, maxZoom: fe, nodeOrigin: er, nodeExtent: Ue, zIndexMode: Sh, children: [m(GC, { onInit: c, onNodeClick: a, onEdgeClick: l, onNodeMouseEnter: _, onNodeMouseMove: v, onNodeMouseLeave: w, onNodeContextMenu: x, onNodeDoubleClick: k, nodeTypes: s, edgeTypes: o, connectionLineType: G, connectionLineStyle: M, connectionLineComponent: j, connectionLineContainerStyle: z, selectionKeyCode: V, selectionOnDrag: q, selectionMode: Y, deleteKeyCode: U, multiSelectionKeyCode: oe, panActivationKeyCode: re, zoomActivationKeyCode: me, onlyRenderVisibleElements: Q, defaultViewport: vr, translateExtent: Ie, minZoom: ee, maxZoom: fe, preventScrolling: De, zoomOnScroll: bn, zoomOnPinch: on, zoomOnDoubleClick: $n, panOnScroll: rr, panOnScrollSpeed: ir, panOnScrollMode: Ft, panOnDrag: an, onPaneClick: la, onPaneMouseEnter: ca, onPaneMouseMove: ua, onPaneMouseLeave: da, onPaneScroll: pa, onPaneContextMenu: fa, paneClickDistance: ha, nodeClickDistance: ma, onSelectionContextMenu: L, onSelectionStart: B, onSelectionEnd: F, onReconnect: W, onReconnectStart: ne, onReconnectEnd: ce, onEdgeContextMenu: pe, onEdgeDoubleClick: ye, onEdgeMouseEnter: je, onEdgeMouseMove: ke, onEdgeMouseLeave: Oe, reconnectRadius: We, defaultMarkerColor: Gt, noDragClassName: Vt, noWheelClassName: Zt, noPanClassName: It, rfId: Ac, disableKeyboardA11y: kh, nodeExtent: Ue, viewport: Lx, onViewportChange: $x }), m(NI, { nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: f, onConnectStart: h, onConnectEnd: g, onClickConnectStart: b, onClickConnectEnd: y, nodesDraggable: Ae, autoPanOnNodeFocus: Fe, nodesConnectable: Et, nodesFocusable: yn, edgesFocusable: tr, edgesReconnectable: nr, elementsSelectable: Pr, elevateNodesOnSelect: Ex, elevateEdgesOnSelect: Nx, minZoom: ee, maxZoom: fe, nodeExtent: Ue, onNodesChange:
|
|
6330
|
+
return m("div", { "data-testid": "rf__wrapper", ...Hx, onScroll: Gx, style: { ...Mx, ...YC }, ref: Ux, className: Lt(["react-flow", i, qx]), id: xh, role: "application", children: T(KC, { nodes: e, edges: t, width: zx, height: Bx, fitView: _r, fitViewOptions: sr, minZoom: ee, maxZoom: fe, nodeOrigin: er, nodeExtent: Ue, zIndexMode: Sh, children: [m(GC, { onInit: c, onNodeClick: a, onEdgeClick: l, onNodeMouseEnter: _, onNodeMouseMove: v, onNodeMouseLeave: w, onNodeContextMenu: x, onNodeDoubleClick: k, nodeTypes: s, edgeTypes: o, connectionLineType: G, connectionLineStyle: M, connectionLineComponent: j, connectionLineContainerStyle: z, selectionKeyCode: V, selectionOnDrag: q, selectionMode: Y, deleteKeyCode: U, multiSelectionKeyCode: oe, panActivationKeyCode: re, zoomActivationKeyCode: me, onlyRenderVisibleElements: Q, defaultViewport: vr, translateExtent: Ie, minZoom: ee, maxZoom: fe, preventScrolling: De, zoomOnScroll: bn, zoomOnPinch: on, zoomOnDoubleClick: $n, panOnScroll: rr, panOnScrollSpeed: ir, panOnScrollMode: Ft, panOnDrag: an, onPaneClick: la, onPaneMouseEnter: ca, onPaneMouseMove: ua, onPaneMouseLeave: da, onPaneScroll: pa, onPaneContextMenu: fa, paneClickDistance: ha, nodeClickDistance: ma, onSelectionContextMenu: L, onSelectionStart: B, onSelectionEnd: F, onReconnect: W, onReconnectStart: ne, onReconnectEnd: ce, onEdgeContextMenu: pe, onEdgeDoubleClick: ye, onEdgeMouseEnter: je, onEdgeMouseMove: ke, onEdgeMouseLeave: Oe, reconnectRadius: We, defaultMarkerColor: Gt, noDragClassName: Vt, noWheelClassName: Zt, noPanClassName: It, rfId: Ac, disableKeyboardA11y: kh, nodeExtent: Ue, viewport: Lx, onViewportChange: $x }), m(NI, { nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: f, onConnectStart: h, onConnectEnd: g, onClickConnectStart: b, onClickConnectEnd: y, nodesDraggable: Ae, autoPanOnNodeFocus: Fe, nodesConnectable: Et, nodesFocusable: yn, edgesFocusable: tr, edgesReconnectable: nr, elementsSelectable: Pr, elevateNodesOnSelect: Ex, elevateEdgesOnSelect: Nx, minZoom: ee, maxZoom: fe, nodeExtent: Ue, onNodesChange: st, onEdgesChange: Xe, snapToGrid: ge, snapGrid: Se, connectionMode: H, translateExtent: Ie, connectOnClick: Ns, defaultEdgeOptions: Sx, fitView: _r, fitViewOptions: sr, onNodesDelete: S, onEdgesDelete: A, onDelete: O, onNodeDragStart: C, onNodeDrag: I, onNodeDragStop: D, onSelectionDrag: P, onSelectionDragStart: E, onSelectionDragStop: R, onMove: u, onMoveStart: d, onMoveEnd: p, noPanClassName: It, nodeOrigin: er, rfId: Ac, autoPanOnConnect: Tx, autoPanOnNodeDrag: Ix, autoPanSpeed: Cx, onError: Ox, connectionRadius: Ax, isValidConnection: Rx, selectNodesOnDrag: le, nodeDragThreshold: Px, connectionDragThreshold: Dx, onBeforeDelete: N, debug: jx, ariaLabelConfig: Vx, zIndexMode: Sh }), m(kI, { onSelectionChange: $ }), Cc, m(yI, { proOptions: xx, position: kx }), m(gI, { rfId: Ac, disableKeyboardA11y: kh })] }) });
|
|
6331
6331
|
}
|
|
6332
6332
|
var XC = dv(JC);
|
|
6333
6333
|
function QC({ dimensions: e, lineWidth: t, variant: n, className: r }) {
|
|
@@ -11313,7 +11313,7 @@ const cd = Qr(/\d/), EP = Qr(/[\dA-Fa-f]/), NP = Qr(/[!-/:-@[-`{-~]/);
|
|
|
11313
11313
|
function Ne(e) {
|
|
11314
11314
|
return e !== null && e < -2;
|
|
11315
11315
|
}
|
|
11316
|
-
function
|
|
11316
|
+
function ot(e) {
|
|
11317
11317
|
return e !== null && (e < 0 || e === 32);
|
|
11318
11318
|
}
|
|
11319
11319
|
function ze(e) {
|
|
@@ -11509,7 +11509,7 @@ function RP(e, t, n) {
|
|
|
11509
11509
|
return qe(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
11510
11510
|
}
|
|
11511
11511
|
function cs(e) {
|
|
11512
|
-
if (e === null ||
|
|
11512
|
+
if (e === null || ot(e) || Ni(e))
|
|
11513
11513
|
return 1;
|
|
11514
11514
|
if (oc(e))
|
|
11515
11515
|
return 2;
|
|
@@ -12181,7 +12181,7 @@ function f_(e, t, n, r, i, s, o, a, l) {
|
|
|
12181
12181
|
return y === 60 || y === 62 || y === 92 ? (e.consume(y), f) : f(y);
|
|
12182
12182
|
}
|
|
12183
12183
|
function g(y) {
|
|
12184
|
-
return !u && (y === null || y === 41 ||
|
|
12184
|
+
return !u && (y === null || y === 41 || ot(y)) ? (e.exit("chunkString"), e.exit(a), e.exit(o), e.exit(r), t(y)) : u < c && y === 40 ? (e.consume(y), u++, g) : y === 41 ? (e.consume(y), u--, g) : y === null || y === 32 || y === 40 || El(y) ? n(y) : (e.consume(y), y === 92 ? b : g);
|
|
12185
12185
|
}
|
|
12186
12186
|
function b(y) {
|
|
12187
12187
|
return y === 40 || y === 41 || y === 92 ? (e.consume(y), g) : g(y);
|
|
@@ -12269,7 +12269,7 @@ function oD(e, t, n) {
|
|
|
12269
12269
|
return i = Kn(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), l) : n(f);
|
|
12270
12270
|
}
|
|
12271
12271
|
function l(f) {
|
|
12272
|
-
return
|
|
12272
|
+
return ot(f) ? Js(e, c)(f) : c(f);
|
|
12273
12273
|
}
|
|
12274
12274
|
function c(f) {
|
|
12275
12275
|
return f_(
|
|
@@ -12297,7 +12297,7 @@ function oD(e, t, n) {
|
|
|
12297
12297
|
function aD(e, t, n) {
|
|
12298
12298
|
return r;
|
|
12299
12299
|
function r(a) {
|
|
12300
|
-
return
|
|
12300
|
+
return ot(a) ? Js(e, i)(a) : n(a);
|
|
12301
12301
|
}
|
|
12302
12302
|
function i(a) {
|
|
12303
12303
|
return m_(e, s, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
|
|
@@ -12350,7 +12350,7 @@ function pD(e, t, n) {
|
|
|
12350
12350
|
return e.enter("atxHeadingSequence"), o(u);
|
|
12351
12351
|
}
|
|
12352
12352
|
function o(u) {
|
|
12353
|
-
return u === 35 && r++ < 6 ? (e.consume(u), o) : u === null ||
|
|
12353
|
+
return u === 35 && r++ < 6 ? (e.consume(u), o) : u === null || ot(u) ? (e.exit("atxHeadingSequence"), a(u)) : n(u);
|
|
12354
12354
|
}
|
|
12355
12355
|
function a(u) {
|
|
12356
12356
|
return u === 35 ? (e.enter("atxHeadingSequence"), l(u)) : u === null || Ne(u) ? (e.exit("atxHeading"), t(u)) : ze(u) ? qe(e, a, "whitespace")(u) : (e.enter("atxHeadingText"), c(u));
|
|
@@ -12359,7 +12359,7 @@ function pD(e, t, n) {
|
|
|
12359
12359
|
return u === 35 ? (e.consume(u), l) : (e.exit("atxHeadingSequence"), a(u));
|
|
12360
12360
|
}
|
|
12361
12361
|
function c(u) {
|
|
12362
|
-
return u === null || u === 35 ||
|
|
12362
|
+
return u === null || u === 35 || ot(u) ? (e.exit("atxHeadingText"), a(u)) : (e.consume(u), c);
|
|
12363
12363
|
}
|
|
12364
12364
|
}
|
|
12365
12365
|
const fD = [
|
|
@@ -12470,7 +12470,7 @@ function bD(e, t, n) {
|
|
|
12470
12470
|
return nn(M) ? (e.consume(M), o = String.fromCharCode(M), b) : n(M);
|
|
12471
12471
|
}
|
|
12472
12472
|
function b(M) {
|
|
12473
|
-
if (M === null || M === 47 || M === 62 ||
|
|
12473
|
+
if (M === null || M === 47 || M === 62 || ot(M)) {
|
|
12474
12474
|
const j = M === 47, z = o.toLowerCase();
|
|
12475
12475
|
return !j && !s && sg.includes(z) ? (i = 1, r.interrupt ? t(M) : O(M)) : fD.includes(o.toLowerCase()) ? (i = 6, j ? (e.consume(M), y) : r.interrupt ? t(M) : O(M)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(M) : s ? _(M) : v(M));
|
|
12476
12476
|
}
|
|
@@ -12498,7 +12498,7 @@ function bD(e, t, n) {
|
|
|
12498
12498
|
return M === l ? (e.consume(M), l = null, D) : M === null || Ne(M) ? n(M) : (e.consume(M), C);
|
|
12499
12499
|
}
|
|
12500
12500
|
function I(M) {
|
|
12501
|
-
return M === null || M === 34 || M === 39 || M === 47 || M === 60 || M === 61 || M === 62 || M === 96 ||
|
|
12501
|
+
return M === null || M === 34 || M === 39 || M === 47 || M === 60 || M === 61 || M === 62 || M === 96 || ot(M) ? x(M) : (e.consume(M), I);
|
|
12502
12502
|
}
|
|
12503
12503
|
function D(M) {
|
|
12504
12504
|
return M === 47 || M === 62 || ze(M) ? v(M) : n(M);
|
|
@@ -12624,7 +12624,7 @@ function kD(e, t, n) {
|
|
|
12624
12624
|
return Ne(N) ? (o = C, L(N)) : ze(N) ? (e.consume(N), C) : R(N);
|
|
12625
12625
|
}
|
|
12626
12626
|
function I(N) {
|
|
12627
|
-
return N === 45 || Kt(N) ? (e.consume(N), I) : N === 47 || N === 62 ||
|
|
12627
|
+
return N === 45 || Kt(N) ? (e.consume(N), I) : N === 47 || N === 62 || ot(N) ? D(N) : n(N);
|
|
12628
12628
|
}
|
|
12629
12629
|
function D(N) {
|
|
12630
12630
|
return N === 47 ? (e.consume(N), R) : N === 58 || N === 95 || nn(N) ? (e.consume(N), S) : Ne(N) ? (o = D, L(N)) : ze(N) ? (e.consume(N), D) : R(N);
|
|
@@ -12642,10 +12642,10 @@ function kD(e, t, n) {
|
|
|
12642
12642
|
return N === i ? (e.consume(N), i = void 0, P) : N === null ? n(N) : Ne(N) ? (o = $, L(N)) : (e.consume(N), $);
|
|
12643
12643
|
}
|
|
12644
12644
|
function E(N) {
|
|
12645
|
-
return N === null || N === 34 || N === 39 || N === 60 || N === 61 || N === 96 ? n(N) : N === 47 || N === 62 ||
|
|
12645
|
+
return N === null || N === 34 || N === 39 || N === 60 || N === 61 || N === 96 ? n(N) : N === 47 || N === 62 || ot(N) ? D(N) : (e.consume(N), E);
|
|
12646
12646
|
}
|
|
12647
12647
|
function P(N) {
|
|
12648
|
-
return N === 47 || N === 62 ||
|
|
12648
|
+
return N === 47 || N === 62 || ot(N) ? D(N) : n(N);
|
|
12649
12649
|
}
|
|
12650
12650
|
function R(N) {
|
|
12651
12651
|
return N === 62 ? (e.consume(N), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(N);
|
|
@@ -12758,13 +12758,13 @@ function CD(e, t, n) {
|
|
|
12758
12758
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(d), e.exit("resourceMarker"), i;
|
|
12759
12759
|
}
|
|
12760
12760
|
function i(d) {
|
|
12761
|
-
return
|
|
12761
|
+
return ot(d) ? Js(e, s)(d) : s(d);
|
|
12762
12762
|
}
|
|
12763
12763
|
function s(d) {
|
|
12764
12764
|
return d === 41 ? u(d) : f_(e, o, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(d);
|
|
12765
12765
|
}
|
|
12766
12766
|
function o(d) {
|
|
12767
|
-
return
|
|
12767
|
+
return ot(d) ? Js(e, l)(d) : u(d);
|
|
12768
12768
|
}
|
|
12769
12769
|
function a(d) {
|
|
12770
12770
|
return n(d);
|
|
@@ -12773,7 +12773,7 @@ function CD(e, t, n) {
|
|
|
12773
12773
|
return d === 34 || d === 39 || d === 40 ? m_(e, c, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(d) : u(d);
|
|
12774
12774
|
}
|
|
12775
12775
|
function c(d) {
|
|
12776
|
-
return
|
|
12776
|
+
return ot(d) ? Js(e, u)(d) : u(d);
|
|
12777
12777
|
}
|
|
12778
12778
|
function u(d) {
|
|
12779
12779
|
return d === 41 ? (e.enter("resourceMarker"), e.consume(d), e.exit("resourceMarker"), e.exit("resource"), t) : n(d);
|
|
@@ -22216,7 +22216,7 @@ function rB(e, t, n) {
|
|
|
22216
22216
|
return d === 47 ? (e.consume(d), s ? c : (s = !0, l)) : n(d);
|
|
22217
22217
|
}
|
|
22218
22218
|
function c(d) {
|
|
22219
|
-
return d === null || El(d) ||
|
|
22219
|
+
return d === null || El(d) || ot(d) || Ni(d) || oc(d) ? n(d) : e.attempt(Y_, e.attempt(J_, u), n)(d);
|
|
22220
22220
|
}
|
|
22221
22221
|
function u(d) {
|
|
22222
22222
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(d);
|
|
@@ -22236,7 +22236,7 @@ function sB(e, t, n) {
|
|
|
22236
22236
|
let r, i, s;
|
|
22237
22237
|
return o;
|
|
22238
22238
|
function o(c) {
|
|
22239
|
-
return c === 46 || c === 95 ? e.check(X_, l, a)(c) : c === null ||
|
|
22239
|
+
return c === 46 || c === 95 ? e.check(X_, l, a)(c) : c === null || ot(c) || Ni(c) || c !== 45 && oc(c) ? l(c) : (s = !0, e.consume(c), o);
|
|
22240
22240
|
}
|
|
22241
22241
|
function a(c) {
|
|
22242
22242
|
return c === 95 ? r = !0 : (i = r, r = void 0), e.consume(c), o;
|
|
@@ -22249,7 +22249,7 @@ function oB(e, t) {
|
|
|
22249
22249
|
let n = 0, r = 0;
|
|
22250
22250
|
return i;
|
|
22251
22251
|
function i(o) {
|
|
22252
|
-
return o === 40 ? (n++, e.consume(o), i) : o === 41 && r < n ? s(o) : o === 33 || o === 34 || o === 38 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 60 || o === 63 || o === 93 || o === 95 || o === 126 ? e.check(X_, t, s)(o) : o === null ||
|
|
22252
|
+
return o === 40 ? (n++, e.consume(o), i) : o === 41 && r < n ? s(o) : o === 33 || o === 34 || o === 38 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 60 || o === 63 || o === 93 || o === 95 || o === 126 ? e.check(X_, t, s)(o) : o === null || ot(o) || Ni(o) ? t(o) : (e.consume(o), i);
|
|
22253
22253
|
}
|
|
22254
22254
|
function s(o) {
|
|
22255
22255
|
return o === 41 && r++, e.consume(o), i;
|
|
@@ -22261,11 +22261,11 @@ function aB(e, t, n) {
|
|
|
22261
22261
|
return a === 33 || a === 34 || a === 39 || a === 41 || a === 42 || a === 44 || a === 46 || a === 58 || a === 59 || a === 63 || a === 95 || a === 126 ? (e.consume(a), r) : a === 38 ? (e.consume(a), s) : a === 93 ? (e.consume(a), i) : (
|
|
22262
22262
|
// `<` is an end.
|
|
22263
22263
|
a === 60 || // So is whitespace.
|
|
22264
|
-
a === null ||
|
|
22264
|
+
a === null || ot(a) || Ni(a) ? t(a) : n(a)
|
|
22265
22265
|
);
|
|
22266
22266
|
}
|
|
22267
22267
|
function i(a) {
|
|
22268
|
-
return a === null || a === 40 || a === 91 ||
|
|
22268
|
+
return a === null || a === 40 || a === 91 || ot(a) || Ni(a) ? t(a) : r(a);
|
|
22269
22269
|
}
|
|
22270
22270
|
function s(a) {
|
|
22271
22271
|
return nn(a) ? o(a) : n(a);
|
|
@@ -22284,7 +22284,7 @@ function lB(e, t, n) {
|
|
|
22284
22284
|
}
|
|
22285
22285
|
}
|
|
22286
22286
|
function tw(e) {
|
|
22287
|
-
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 ||
|
|
22287
|
+
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || ot(e);
|
|
22288
22288
|
}
|
|
22289
22289
|
function nw(e) {
|
|
22290
22290
|
return !nn(e);
|
|
@@ -22431,7 +22431,7 @@ function fB(e, t, n) {
|
|
|
22431
22431
|
s > 999 || // Closing brace with nothing.
|
|
22432
22432
|
d === 93 && !o || // Space or tab is not supported by GFM for some reason.
|
|
22433
22433
|
// `\n` and `[` not being supported makes sense.
|
|
22434
|
-
d === null || d === 91 ||
|
|
22434
|
+
d === null || d === 91 || ot(d)
|
|
22435
22435
|
)
|
|
22436
22436
|
return n(d);
|
|
22437
22437
|
if (d === 93) {
|
|
@@ -22439,7 +22439,7 @@ function fB(e, t, n) {
|
|
|
22439
22439
|
const p = e.exit("gfmFootnoteCallString");
|
|
22440
22440
|
return i.includes(Kn(r.sliceSerialize(p))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(d), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(d);
|
|
22441
22441
|
}
|
|
22442
|
-
return
|
|
22442
|
+
return ot(d) || (o = !0), s++, e.consume(d), d === 92 ? u : c;
|
|
22443
22443
|
}
|
|
22444
22444
|
function u(d) {
|
|
22445
22445
|
return d === 91 || d === 92 || d === 93 ? (e.consume(d), s++, c) : c(d);
|
|
@@ -22461,7 +22461,7 @@ function hB(e, t, n) {
|
|
|
22461
22461
|
o > 999 || // Closing brace with nothing.
|
|
22462
22462
|
h === 93 && !a || // Space or tab is not supported by GFM for some reason.
|
|
22463
22463
|
// `\n` and `[` not being supported makes sense.
|
|
22464
|
-
h === null || h === 91 ||
|
|
22464
|
+
h === null || h === 91 || ot(h)
|
|
22465
22465
|
)
|
|
22466
22466
|
return n(h);
|
|
22467
22467
|
if (h === 93) {
|
|
@@ -22469,7 +22469,7 @@ function hB(e, t, n) {
|
|
|
22469
22469
|
const g = e.exit("gfmFootnoteDefinitionLabelString");
|
|
22470
22470
|
return s = Kn(r.sliceSerialize(g)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(h), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), p;
|
|
22471
22471
|
}
|
|
22472
|
-
return
|
|
22472
|
+
return ot(h) || (a = !0), o++, e.consume(h), h === 92 ? d : u;
|
|
22473
22473
|
}
|
|
22474
22474
|
function d(h) {
|
|
22475
22475
|
return h === 91 || h === 92 || h === 93 ? (e.consume(h), o++, u) : u(h);
|
|
@@ -22680,7 +22680,7 @@ function xB(e, t, n) {
|
|
|
22680
22680
|
return S === null ? n(S) : Ne(S) ? s > 1 ? (s = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(S), e.exit("lineEnding"), f) : n(S) : ze(S) ? qe(e, u, "whitespace")(S) : (s += 1, o && (o = !1, i += 1), S === 124 ? (e.enter("tableCellDivider"), e.consume(S), e.exit("tableCellDivider"), o = !0, u) : (e.enter("data"), d(S)));
|
|
22681
22681
|
}
|
|
22682
22682
|
function d(S) {
|
|
22683
|
-
return S === null || S === 124 ||
|
|
22683
|
+
return S === null || S === 124 || ot(S) ? (e.exit("data"), u(S)) : (e.consume(S), S === 92 ? p : d);
|
|
22684
22684
|
}
|
|
22685
22685
|
function p(S) {
|
|
22686
22686
|
return S === 92 || S === 124 ? (e.consume(S), d) : d(S);
|
|
@@ -22719,7 +22719,7 @@ function xB(e, t, n) {
|
|
|
22719
22719
|
return S === 124 ? (e.enter("tableCellDivider"), e.consume(S), e.exit("tableCellDivider"), C) : S === null || Ne(S) ? (e.exit("tableRow"), t(S)) : ze(S) ? qe(e, C, "whitespace")(S) : (e.enter("data"), I(S));
|
|
22720
22720
|
}
|
|
22721
22721
|
function I(S) {
|
|
22722
|
-
return S === null || S === 124 ||
|
|
22722
|
+
return S === null || S === 124 || ot(S) ? (e.exit("data"), C(S)) : (e.consume(S), S === 92 ? D : I);
|
|
22723
22723
|
}
|
|
22724
22724
|
function D(S) {
|
|
22725
22725
|
return S === 92 || S === 124 ? (e.consume(S), I) : I(S);
|
|
@@ -22805,7 +22805,7 @@ function TB(e, t, n) {
|
|
|
22805
22805
|
);
|
|
22806
22806
|
}
|
|
22807
22807
|
function s(l) {
|
|
22808
|
-
return
|
|
22808
|
+
return ot(l) ? (e.enter("taskListCheckValueUnchecked"), e.consume(l), e.exit("taskListCheckValueUnchecked"), o) : l === 88 || l === 120 ? (e.enter("taskListCheckValueChecked"), e.consume(l), e.exit("taskListCheckValueChecked"), o) : n(l);
|
|
22809
22809
|
}
|
|
22810
22810
|
function o(l) {
|
|
22811
22811
|
return l === 93 ? (e.enter("taskListCheckMarker"), e.consume(l), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), a) : n(l);
|
|
@@ -32348,7 +32348,7 @@ function A7(e) {
|
|
|
32348
32348
|
const R7 = /* @__PURE__ */ te("ZodUnknown", (e, t) => {
|
|
32349
32349
|
eq.init(e, t), ht.init(e, t), e._zod.processJSONSchema = (n, r, i) => E9();
|
|
32350
32350
|
});
|
|
32351
|
-
function
|
|
32351
|
+
function at() {
|
|
32352
32352
|
return /* @__PURE__ */ Qq(R7);
|
|
32353
32353
|
}
|
|
32354
32354
|
const O7 = /* @__PURE__ */ te("ZodNever", (e, t) => {
|
|
@@ -32364,7 +32364,7 @@ function Ce(e, t) {
|
|
|
32364
32364
|
return /* @__PURE__ */ p9(M7, e, t);
|
|
32365
32365
|
}
|
|
32366
32366
|
const f1 = /* @__PURE__ */ te("ZodObject", (e, t) => {
|
|
32367
|
-
iq.init(e, t), ht.init(e, t), e._zod.processJSONSchema = (n, r, i) => R9(e, n, r, i), tt(e, "shape", () => t.shape), e.keyof = () => Nn(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall:
|
|
32367
|
+
iq.init(e, t), ht.init(e, t), e._zod.processJSONSchema = (n, r, i) => R9(e, n, r, i), tt(e, "shape", () => t.shape), e.keyof = () => Nn(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: at() }), e.loose = () => e.clone({ ...e._zod.def, catchall: at() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Bd() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => k8(e, n), e.safeExtend = (n) => x8(e, n), e.merge = (n) => S8(e, n), e.pick = (n) => _8(e, n), e.omit = (n) => w8(e, n), e.partial = (...n) => E8(y1, e, n[0]), e.required = (...n) => N8(b1, e, n[0]);
|
|
32368
32368
|
});
|
|
32369
32369
|
function X(e, t) {
|
|
32370
32370
|
const n = {
|
|
@@ -32378,7 +32378,7 @@ function dn(e, t) {
|
|
|
32378
32378
|
return new f1({
|
|
32379
32379
|
type: "object",
|
|
32380
32380
|
shape: e,
|
|
32381
|
-
catchall:
|
|
32381
|
+
catchall: at(),
|
|
32382
32382
|
..._e(t)
|
|
32383
32383
|
});
|
|
32384
32384
|
}
|
|
@@ -32695,7 +32695,7 @@ const Qf = X({
|
|
|
32695
32695
|
/**
|
|
32696
32696
|
* Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
|
|
32697
32697
|
*/
|
|
32698
|
-
data:
|
|
32698
|
+
data: at().optional()
|
|
32699
32699
|
})
|
|
32700
32700
|
}).strict(), sG = (e) => Qf.safeParse(e).success, oG = He([
|
|
32701
32701
|
x1,
|
|
@@ -32785,10 +32785,10 @@ const E1 = qt.strict(), aG = Dn.extend({
|
|
|
32785
32785
|
description: J().optional()
|
|
32786
32786
|
}), cG = Yf(X({
|
|
32787
32787
|
applyDefaults: ut().optional()
|
|
32788
|
-
}), nt(J(),
|
|
32788
|
+
}), nt(J(), at())), uG = _1((e) => e && typeof e == "object" && !Array.isArray(e) && Object.keys(e).length === 0 ? { form: {} } : e, Yf(X({
|
|
32789
32789
|
form: cG.optional(),
|
|
32790
32790
|
url: Bt.optional()
|
|
32791
|
-
}), nt(J(),
|
|
32791
|
+
}), nt(J(), at()).optional())), dG = dn({
|
|
32792
32792
|
/**
|
|
32793
32793
|
* Present if the client supports listing tasks.
|
|
32794
32794
|
*/
|
|
@@ -33052,7 +33052,7 @@ const oh = na.extend({
|
|
|
33052
33052
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
33053
33053
|
* for notes on _meta usage.
|
|
33054
33054
|
*/
|
|
33055
|
-
_meta: nt(J(),
|
|
33055
|
+
_meta: nt(J(), at()).optional()
|
|
33056
33056
|
}), T1 = N1.extend({
|
|
33057
33057
|
/**
|
|
33058
33058
|
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
@@ -33236,7 +33236,7 @@ const oh = na.extend({
|
|
|
33236
33236
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
33237
33237
|
* for notes on _meta usage.
|
|
33238
33238
|
*/
|
|
33239
|
-
_meta: nt(J(),
|
|
33239
|
+
_meta: nt(J(), at()).optional()
|
|
33240
33240
|
}), ph = X({
|
|
33241
33241
|
type: K("image"),
|
|
33242
33242
|
/**
|
|
@@ -33255,7 +33255,7 @@ const oh = na.extend({
|
|
|
33255
33255
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
33256
33256
|
* for notes on _meta usage.
|
|
33257
33257
|
*/
|
|
33258
|
-
_meta: nt(J(),
|
|
33258
|
+
_meta: nt(J(), at()).optional()
|
|
33259
33259
|
}), fh = X({
|
|
33260
33260
|
type: K("audio"),
|
|
33261
33261
|
/**
|
|
@@ -33274,7 +33274,7 @@ const oh = na.extend({
|
|
|
33274
33274
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
33275
33275
|
* for notes on _meta usage.
|
|
33276
33276
|
*/
|
|
33277
|
-
_meta: nt(J(),
|
|
33277
|
+
_meta: nt(J(), at()).optional()
|
|
33278
33278
|
}), $G = X({
|
|
33279
33279
|
type: K("tool_use"),
|
|
33280
33280
|
/**
|
|
@@ -33291,12 +33291,12 @@ const oh = na.extend({
|
|
|
33291
33291
|
* Arguments to pass to the tool.
|
|
33292
33292
|
* Must conform to the tool's inputSchema.
|
|
33293
33293
|
*/
|
|
33294
|
-
input: nt(J(),
|
|
33294
|
+
input: nt(J(), at()),
|
|
33295
33295
|
/**
|
|
33296
33296
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
33297
33297
|
* for notes on _meta usage.
|
|
33298
33298
|
*/
|
|
33299
|
-
_meta: nt(J(),
|
|
33299
|
+
_meta: nt(J(), at()).optional()
|
|
33300
33300
|
}), B1 = X({
|
|
33301
33301
|
type: K("resource"),
|
|
33302
33302
|
resource: He([T1, I1]),
|
|
@@ -33308,7 +33308,7 @@ const oh = na.extend({
|
|
|
33308
33308
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
33309
33309
|
* for notes on _meta usage.
|
|
33310
33310
|
*/
|
|
33311
|
-
_meta: nt(J(),
|
|
33311
|
+
_meta: nt(J(), at()).optional()
|
|
33312
33312
|
}), F1 = C1.extend({
|
|
33313
33313
|
type: K("resource_link")
|
|
33314
33314
|
}), oa = He([
|
|
@@ -33392,7 +33392,7 @@ const oh = na.extend({
|
|
|
33392
33392
|
type: K("object"),
|
|
33393
33393
|
properties: nt(J(), Bt).optional(),
|
|
33394
33394
|
required: Ce(J()).optional()
|
|
33395
|
-
}).catchall(
|
|
33395
|
+
}).catchall(at()),
|
|
33396
33396
|
/**
|
|
33397
33397
|
* An optional JSON Schema 2020-12 object defining the structure of the tool's output
|
|
33398
33398
|
* returned in the structuredContent field of a CallToolResult.
|
|
@@ -33402,7 +33402,7 @@ const oh = na.extend({
|
|
|
33402
33402
|
type: K("object"),
|
|
33403
33403
|
properties: nt(J(), Bt).optional(),
|
|
33404
33404
|
required: Ce(J()).optional()
|
|
33405
|
-
}).catchall(
|
|
33405
|
+
}).catchall(at()).optional(),
|
|
33406
33406
|
/**
|
|
33407
33407
|
* Optional additional tool information.
|
|
33408
33408
|
*/
|
|
@@ -33415,7 +33415,7 @@ const oh = na.extend({
|
|
|
33415
33415
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
33416
33416
|
* for notes on _meta usage.
|
|
33417
33417
|
*/
|
|
33418
|
-
_meta: nt(J(),
|
|
33418
|
+
_meta: nt(J(), at()).optional()
|
|
33419
33419
|
}), VG = na.extend({
|
|
33420
33420
|
method: K("tools/list")
|
|
33421
33421
|
}), V1 = ra.extend({
|
|
@@ -33433,7 +33433,7 @@ const oh = na.extend({
|
|
|
33433
33433
|
*
|
|
33434
33434
|
* If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
|
|
33435
33435
|
*/
|
|
33436
|
-
structuredContent: nt(J(),
|
|
33436
|
+
structuredContent: nt(J(), at()).optional(),
|
|
33437
33437
|
/**
|
|
33438
33438
|
* Whether the tool call ended in an error.
|
|
33439
33439
|
*
|
|
@@ -33451,7 +33451,7 @@ const oh = na.extend({
|
|
|
33451
33451
|
isError: ut().optional()
|
|
33452
33452
|
});
|
|
33453
33453
|
Io.or(qt.extend({
|
|
33454
|
-
toolResult:
|
|
33454
|
+
toolResult: at()
|
|
33455
33455
|
}));
|
|
33456
33456
|
const HG = Qo.extend({
|
|
33457
33457
|
/**
|
|
@@ -33461,7 +33461,7 @@ const HG = Qo.extend({
|
|
|
33461
33461
|
/**
|
|
33462
33462
|
* Arguments to pass to the tool.
|
|
33463
33463
|
*/
|
|
33464
|
-
arguments: nt(J(),
|
|
33464
|
+
arguments: nt(J(), at()).optional()
|
|
33465
33465
|
}), H1 = Ut.extend({
|
|
33466
33466
|
method: K("tools/call"),
|
|
33467
33467
|
params: HG
|
|
@@ -33509,7 +33509,7 @@ const q1 = Nn(["debug", "info", "notice", "warning", "error", "critical", "alert
|
|
|
33509
33509
|
/**
|
|
33510
33510
|
* The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here.
|
|
33511
33511
|
*/
|
|
33512
|
-
data:
|
|
33512
|
+
data: at()
|
|
33513
33513
|
}), G1 = Ln.extend({
|
|
33514
33514
|
method: K("notifications/message"),
|
|
33515
33515
|
params: GG
|
|
@@ -33553,7 +33553,7 @@ const q1 = Nn(["debug", "info", "notice", "warning", "error", "critical", "alert
|
|
|
33553
33553
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
33554
33554
|
* for notes on _meta usage.
|
|
33555
33555
|
*/
|
|
33556
|
-
_meta: nt(J(),
|
|
33556
|
+
_meta: nt(J(), at()).optional()
|
|
33557
33557
|
}), JG = m1("type", [dh, ph, fh]), Hl = m1("type", [
|
|
33558
33558
|
dh,
|
|
33559
33559
|
ph,
|
|
@@ -33567,7 +33567,7 @@ const q1 = Nn(["debug", "info", "notice", "warning", "error", "critical", "alert
|
|
|
33567
33567
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
33568
33568
|
* for notes on _meta usage.
|
|
33569
33569
|
*/
|
|
33570
|
-
_meta: nt(J(),
|
|
33570
|
+
_meta: nt(J(), at()).optional()
|
|
33571
33571
|
}), QG = Qo.extend({
|
|
33572
33572
|
messages: Ce(XG),
|
|
33573
33573
|
/**
|
|
@@ -33849,7 +33849,7 @@ const q1 = Nn(["debug", "info", "notice", "warning", "error", "critical", "alert
|
|
|
33849
33849
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
33850
33850
|
* for notes on _meta usage.
|
|
33851
33851
|
*/
|
|
33852
|
-
_meta: nt(J(),
|
|
33852
|
+
_meta: nt(J(), at()).optional()
|
|
33853
33853
|
}), TZ = Ut.extend({
|
|
33854
33854
|
method: K("roots/list"),
|
|
33855
33855
|
params: Tn.optional()
|
|
@@ -34857,12 +34857,12 @@ var jZ = X({ method: K("ui/notifications/sandbox-proxy-ready"), params: X({}) })
|
|
|
34857
34857
|
|
|
34858
34858
|
- Maps to CSP \`connect-src\` directive
|
|
34859
34859
|
- Empty or omitted → no network connections (secure default)`), resourceDomains: Ce(J()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"), frameDomains: Ce(J()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"), baseUriDomains: Ce(J()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)") }), yh = X({ camera: X({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."), microphone: X({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."), geolocation: X({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."), clipboardWrite: X({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.") }), VZ = X({ method: K("ui/notifications/size-changed"), params: X({ width: Le().optional().describe("New width in pixels."), height: Le().optional().describe("New height in pixels.") }) });
|
|
34860
|
-
X({ method: K("ui/notifications/tool-input"), params: X({ arguments: nt(J(),
|
|
34861
|
-
X({ method: K("ui/notifications/tool-input-partial"), params: X({ arguments: nt(J(),
|
|
34860
|
+
X({ method: K("ui/notifications/tool-input"), params: X({ arguments: nt(J(), at().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.") }) });
|
|
34861
|
+
X({ method: K("ui/notifications/tool-input-partial"), params: X({ arguments: nt(J(), at().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).") }) });
|
|
34862
34862
|
X({ method: K("ui/notifications/tool-cancelled"), params: X({ reason: J().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").') }) });
|
|
34863
34863
|
var HZ = X({ fonts: J().optional() }), UZ = X({ variables: BZ.optional().describe("CSS variables for theming the app."), css: HZ.optional().describe("CSS blocks that apps can inject.") });
|
|
34864
34864
|
X({ method: K("ui/resource-teardown"), params: X({}) });
|
|
34865
|
-
var qZ = nt(J(),
|
|
34865
|
+
var qZ = nt(J(), at()), A0 = X({ text: X({}).optional().describe("Host supports text content blocks."), image: X({}).optional().describe("Host supports image content blocks."), audio: X({}).optional().describe("Host supports audio content blocks."), resource: X({}).optional().describe("Host supports resource content blocks."), resourceLink: X({}).optional().describe("Host supports resource link content blocks."), structuredContent: X({}).optional().describe("Host supports structured content.") }), GZ = X({ method: K("ui/notifications/request-teardown"), params: X({}).optional() }), ZZ = X({ experimental: X({}).optional().describe("Experimental features (structure TBD)."), openLinks: X({}).optional().describe("Host supports opening external URLs."), downloadFile: X({}).optional().describe("Host supports file downloads via ui/download-file."), serverTools: X({ listChanged: ut().optional().describe("Host supports tools/list_changed notifications.") }).optional().describe("Host can proxy tool calls to the MCP server."), serverResources: X({ listChanged: ut().optional().describe("Host supports resources/list_changed notifications.") }).optional().describe("Host can proxy resource reads to the MCP server."), logging: X({}).optional().describe("Host accepts log messages."), sandbox: X({ permissions: yh.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."), csp: gh.optional().describe("CSP domains approved by the host.") }).optional().describe("Sandbox configuration applied by the host."), updateModelContext: A0.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."), message: A0.optional().describe("Host supports receiving content messages (ui/message) from the view."), sampling: X({ tools: X({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.") }).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.") }), WZ = X({ experimental: X({}).optional().describe("Experimental features (structure TBD)."), tools: X({ listChanged: ut().optional().describe("App supports tools/list_changed notifications.") }).optional().describe("App exposes MCP-style tools that the host can call."), availableDisplayModes: Ce(Co).optional().describe("Display modes the app supports.") }), KZ = X({ method: K("ui/notifications/initialized"), params: X({}).optional() });
|
|
34866
34866
|
X({ csp: gh.optional().describe("Content Security Policy configuration for UI resources."), permissions: yh.optional().describe("Sandbox permissions requested by the UI resource."), domain: J().optional().describe(`Dedicated origin for view sandbox.
|
|
34867
34867
|
|
|
34868
34868
|
Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
|
|
@@ -34891,7 +34891,7 @@ X({ method: K("ui/notifications/tool-result"), params: Io.describe("Standard MCP
|
|
|
34891
34891
|
var Y1 = X({ toolInfo: X({ id: ea.optional().describe("JSON-RPC id of the tools/call request."), tool: hh.describe("Tool definition including name, inputSchema, etc.") }).optional().describe("Metadata of the tool call that instantiated this App."), theme: $Z.optional().describe("Current color theme preference."), styles: UZ.optional().describe("Style configuration for theming the app."), displayMode: Co.optional().describe("How the UI is currently displayed."), availableDisplayModes: Ce(Co).optional().describe("Display modes the host supports."), containerDimensions: He([X({ height: Le().describe("Fixed container height in pixels.") }), X({ maxHeight: He([Le(), zd()]).optional().describe("Maximum container height in pixels.") })]).and(He([X({ width: Le().describe("Fixed container width in pixels.") }), X({ maxWidth: He([Le(), zd()]).optional().describe("Maximum container width in pixels.") })])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
|
|
34892
34892
|
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`), locale: J().optional().describe("User's language and region preference in BCP 47 format."), timeZone: J().optional().describe("User's timezone in IANA format."), userAgent: J().optional().describe("Host application identifier."), platform: He([K("web"), K("desktop"), K("mobile")]).optional().describe("Platform type for responsive design decisions."), deviceCapabilities: X({ touch: ut().optional().describe("Whether the device supports touch input."), hover: ut().optional().describe("Whether the device supports hover interactions.") }).optional().describe("Device input capabilities."), safeAreaInsets: X({ top: Le().describe("Top safe area inset in pixels."), right: Le().describe("Right safe area inset in pixels."), bottom: Le().describe("Bottom safe area inset in pixels."), left: Le().describe("Left safe area inset in pixels.") }).optional().describe("Mobile safe area boundaries in pixels.") }).passthrough();
|
|
34893
34893
|
X({ method: K("ui/notifications/host-context-changed"), params: Y1.describe("Partial context update containing only changed fields.") });
|
|
34894
|
-
var QZ = X({ method: K("ui/update-model-context"), params: X({ content: Ce(oa).optional().describe("Context content blocks (text, image, etc.)."), structuredContent: nt(J(),
|
|
34894
|
+
var QZ = X({ method: K("ui/update-model-context"), params: X({ content: Ce(oa).optional().describe("Context content blocks (text, image, etc.)."), structuredContent: nt(J(), at().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.") }) }), eW = X({ method: K("ui/initialize"), params: X({ appInfo: Nc.describe("App identification (name and version)."), appCapabilities: WZ.describe("Features and capabilities this app provides."), protocolVersion: J().describe("Protocol version this app supports.") }) });
|
|
34895
34895
|
X({ protocolVersion: J().describe('Negotiated protocol version string (e.g., "2025-11-21").'), hostInfo: Nc.describe("Host application identification and version."), hostCapabilities: ZZ.describe("Features and capabilities provided by the host."), hostContext: Y1.describe("Rich context about the host environment.") }).passthrough();
|
|
34896
34896
|
class tW {
|
|
34897
34897
|
constructor(t = window.parent, n) {
|
|
@@ -44497,7 +44497,7 @@ function _x({ children: e }) {
|
|
|
44497
44497
|
i((Oe) => [...Oe, je]), l(ye);
|
|
44498
44498
|
const ke = Se();
|
|
44499
44499
|
if (console.log(`[MockGrackle] Playing scenario: ${ke.label}`), ke.pauseForInput) {
|
|
44500
|
-
const Oe = ke.pauseAfterStep ?? ke.steps.length - 1, We = ke.steps.slice(0, Oe + 1),
|
|
44500
|
+
const Oe = ke.pauseAfterStep ?? ke.steps.length - 1, We = ke.steps.slice(0, Oe + 1), st = We.length > 0 ? We[We.length - 1].delayMs : 0;
|
|
44501
44501
|
Et(ye, We), Q(
|
|
44502
44502
|
() => {
|
|
44503
44503
|
Ae(ye, "idle"), Fe({
|
|
@@ -44507,7 +44507,7 @@ function _x({ children: e }) {
|
|
|
44507
44507
|
content: "idle"
|
|
44508
44508
|
});
|
|
44509
44509
|
},
|
|
44510
|
-
|
|
44510
|
+
st + K0,
|
|
44511
44511
|
ye
|
|
44512
44512
|
), ke.resumeSteps && oe.current.set(ye, ke.resumeSteps);
|
|
44513
44513
|
} else
|
|
@@ -44554,7 +44554,7 @@ function _x({ children: e }) {
|
|
|
44554
44554
|
}, []), ee = ae(
|
|
44555
44555
|
async (W, ne, ce, pe, ye, je, ke, Oe, We) => {
|
|
44556
44556
|
console.log("[MockGrackle] createWorkspace", { name: W, description: ne });
|
|
44557
|
-
const
|
|
44557
|
+
const st = {
|
|
44558
44558
|
id: ge("proj"),
|
|
44559
44559
|
name: W,
|
|
44560
44560
|
description: ne || "",
|
|
@@ -44569,7 +44569,7 @@ function _x({ children: e }) {
|
|
|
44569
44569
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
44570
44570
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
44571
44571
|
};
|
|
44572
|
-
u((Xe) => [...Xe,
|
|
44572
|
+
u((Xe) => [...Xe, st]), Oe && Oe(st);
|
|
44573
44573
|
},
|
|
44574
44574
|
[ge]
|
|
44575
44575
|
), fe = ae(
|
|
@@ -44586,12 +44586,12 @@ function _x({ children: e }) {
|
|
|
44586
44586
|
[]
|
|
44587
44587
|
), De = ae(
|
|
44588
44588
|
async (W, ne, ce, pe, ye, je, ke, Oe, We) => {
|
|
44589
|
-
console.log("[MockGrackle] createTask", { workspaceId: W, title: ne, parentTaskId: ye }), h((
|
|
44590
|
-
const Vt =
|
|
44589
|
+
console.log("[MockGrackle] createTask", { workspaceId: W, title: ne, parentTaskId: ye }), h((st) => {
|
|
44590
|
+
const Vt = st.filter((sr) => sr.workspaceId === W).reduce((sr, Ns) => Math.max(sr, Ns.sortOrder), 0), Zt = ye ? st.find((sr) => sr.id === ye) : void 0;
|
|
44591
44591
|
if (ye && !Zt)
|
|
44592
|
-
return console.warn("[MockGrackle] Parent task not found:", ye),
|
|
44592
|
+
return console.warn("[MockGrackle] Parent task not found:", ye), st;
|
|
44593
44593
|
if (Zt && !Zt.canDecompose)
|
|
44594
|
-
return console.warn("[MockGrackle] Parent task does not have decomposition rights:", ye),
|
|
44594
|
+
return console.warn("[MockGrackle] Parent task does not have decomposition rights:", ye), st;
|
|
44595
44595
|
const It = Zt ? Zt.depth + 1 : 0, _r = {
|
|
44596
44596
|
id: ge("task"),
|
|
44597
44597
|
workspaceId: W,
|
|
@@ -44613,13 +44613,13 @@ function _x({ children: e }) {
|
|
|
44613
44613
|
tokenBudget: 0,
|
|
44614
44614
|
costBudgetMillicents: 0
|
|
44615
44615
|
};
|
|
44616
|
-
return [...
|
|
44616
|
+
return [...st, _r];
|
|
44617
44617
|
}), Oe && Oe();
|
|
44618
44618
|
},
|
|
44619
44619
|
[ge]
|
|
44620
44620
|
), Ue = ae(
|
|
44621
44621
|
async (W, ne, ce, pe) => {
|
|
44622
|
-
var
|
|
44622
|
+
var st;
|
|
44623
44623
|
console.log("[MockGrackle] startTask", { taskId: W });
|
|
44624
44624
|
const ye = re.current.find((Xe) => Xe.id === W), je = (ye == null ? void 0 : ye.title) ?? "", ke = ge("sess"), Oe = {
|
|
44625
44625
|
id: ke,
|
|
@@ -44670,7 +44670,7 @@ function _x({ children: e }) {
|
|
|
44670
44670
|
} else {
|
|
44671
44671
|
const Xe = We.steps.length > 0 ? We.steps[We.steps.length - 1].delayMs : 0;
|
|
44672
44672
|
Et(ke, We.steps);
|
|
44673
|
-
const Vt = (
|
|
44673
|
+
const Vt = (st = We.steps[We.steps.length - 1]) == null ? void 0 : st.event.content;
|
|
44674
44674
|
Q(
|
|
44675
44675
|
() => {
|
|
44676
44676
|
Vt === "completed" ? h(
|
|
@@ -44997,7 +44997,7 @@ function _x({ children: e }) {
|
|
|
44997
44997
|
personasLoading: !1,
|
|
44998
44998
|
createPersona: async (W, ne, ce, pe, ye, je, ke, Oe, We) => {
|
|
44999
44999
|
console.log("[MockGrackle] createPersona", { name: W });
|
|
45000
|
-
const
|
|
45000
|
+
const st = {
|
|
45001
45001
|
id: `mock-persona-${Date.now()}`,
|
|
45002
45002
|
name: W,
|
|
45003
45003
|
description: ne,
|
|
@@ -45013,9 +45013,9 @@ function _x({ children: e }) {
|
|
|
45013
45013
|
script: Oe || "",
|
|
45014
45014
|
allowedMcpTools: We || []
|
|
45015
45015
|
};
|
|
45016
|
-
return D((Xe) => [...Xe,
|
|
45016
|
+
return D((Xe) => [...Xe, st]), st;
|
|
45017
45017
|
},
|
|
45018
|
-
updatePersona: async (W, ne, ce, pe, ye, je, ke, Oe, We,
|
|
45018
|
+
updatePersona: async (W, ne, ce, pe, ye, je, ke, Oe, We, st) => {
|
|
45019
45019
|
console.log("[MockGrackle] updatePersona", { personaId: W, name: ne });
|
|
45020
45020
|
const Xe = I.find((It) => It.id === W);
|
|
45021
45021
|
if (!Xe)
|
|
@@ -45030,7 +45030,7 @@ function _x({ children: e }) {
|
|
|
45030
45030
|
...ke !== void 0 ? { maxTurns: ke } : {},
|
|
45031
45031
|
...Oe !== void 0 ? { type: Oe } : {},
|
|
45032
45032
|
...We !== void 0 ? { script: We } : {},
|
|
45033
|
-
...
|
|
45033
|
+
...st !== void 0 ? { allowedMcpTools: st } : {},
|
|
45034
45034
|
updatedAt: Vt
|
|
45035
45035
|
};
|
|
45036
45036
|
return D(
|
|
@@ -45099,8 +45099,8 @@ function _x({ children: e }) {
|
|
|
45099
45099
|
j(W);
|
|
45100
45100
|
const ne = z.current, ce = ne ? ar.filter((ke) => !ke.workspaceId || ke.workspaceId === ne) : ar, pe = W.toLowerCase(), ye = ce.filter(
|
|
45101
45101
|
(ke) => {
|
|
45102
|
-
var Oe, We,
|
|
45103
|
-
return ke.label.toLowerCase().includes(pe) || ((Oe = ke.content) == null ? void 0 : Oe.toLowerCase().includes(pe)) || ((We = ke.tags) == null ? void 0 : We.some((Xe) => Xe.toLowerCase().includes(pe))) || ((
|
|
45102
|
+
var Oe, We, st;
|
|
45103
|
+
return ke.label.toLowerCase().includes(pe) || ((Oe = ke.content) == null ? void 0 : Oe.toLowerCase().includes(pe)) || ((We = ke.tags) == null ? void 0 : We.some((Xe) => Xe.toLowerCase().includes(pe))) || ((st = ke.category) == null ? void 0 : st.toLowerCase().includes(pe));
|
|
45104
45104
|
}
|
|
45105
45105
|
);
|
|
45106
45106
|
R(ye);
|
|
@@ -45145,10 +45145,10 @@ function _x({ children: e }) {
|
|
|
45145
45145
|
return ne;
|
|
45146
45146
|
const je = ar.filter((Oe) => ye.has(Oe.id)), ke = /* @__PURE__ */ new Set([...ce, ...ye]);
|
|
45147
45147
|
return B((Oe) => {
|
|
45148
|
-
const We = new Set(Oe.map((Xe) => `${Xe.source}|${Xe.target}|${Xe.type}`)),
|
|
45148
|
+
const We = new Set(Oe.map((Xe) => `${Xe.source}|${Xe.target}|${Xe.type}`)), st = jr.filter(
|
|
45149
45149
|
(Xe) => ke.has(Xe.source) && ke.has(Xe.target) && !We.has(`${Xe.source}|${Xe.target}|${Xe.type}`)
|
|
45150
45150
|
);
|
|
45151
|
-
return
|
|
45151
|
+
return st.length > 0 ? [...Oe, ...st] : Oe;
|
|
45152
45152
|
}), [...ne, ...je];
|
|
45153
45153
|
});
|
|
45154
45154
|
},
|