@hiai-gg/docsmint 1.0.2 → 1.0.3
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 +3 -3
- package/dist/backend/index.js +139 -103
- package/dist/frontend/{CategoryDialog-B6zqtwE6.js → CategoryDialog-B1yQFy54.js} +4 -4
- package/dist/frontend/{ConfirmDialog-Dk7wwcj9.js → ConfirmDialog-9N3dJGHt.js} +3 -3
- package/dist/frontend/{CreateSnapshotDialog-BPYjO1qN.js → CreateSnapshotDialog-CR5BHpsb.js} +3 -3
- package/dist/frontend/{DatePicker-SiGLx9yh.js → DatePicker-B7p5pH4-.js} +7 -7
- package/dist/frontend/{DeleteDialog-D1jox8h1.js → DeleteDialog-BqR7AQrP.js} +1 -1
- package/dist/frontend/{FolderNode-BG4l6I5C.js → FolderNode-BQcEuZe3.js} +1 -1
- package/dist/frontend/{HiAiEditor-Dxqt8BUN.js → HiAiEditor-BFpfeft6.js} +10 -10
- package/dist/frontend/{SettingsDialog-DnrPV8dM.js → SettingsDialog-eyTOtZcw.js} +13 -13
- package/dist/frontend/{ShareDialog-CmX-VoJ9.js → ShareDialog-gCbk5Rrv.js} +1 -1
- package/dist/frontend/{Sidebar-BI_ccYTl.js → Sidebar-3ridIx_X.js} +13 -13
- package/dist/frontend/{TagCreateDialog-C5j3H49u.js → TagCreateDialog-B0M1gqk6.js} +3 -3
- package/dist/frontend/api/settings.js +1 -1
- package/dist/frontend/app-shell.js +3 -3
- package/dist/frontend/{auth-client-Dc0mkuZH.js → auth-client-DuY45VqK.js} +10 -10
- package/dist/frontend/components/category-dialog.js +1 -1
- package/dist/frontend/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend/components/delete-dialog.js +1 -1
- package/dist/frontend/components/editor/compact-editor.js +1 -1
- package/dist/frontend/components/editor/document-editor.js +1 -1
- package/dist/frontend/components/editor/extensions.js +1 -1
- package/dist/frontend/components/editor/markdown-toggle.js +1 -1
- package/dist/frontend/components/editor/markdown.js +1 -1
- package/dist/frontend/components/folder-node.js +1 -1
- package/dist/frontend/components/save-as-dialog.js +3 -3
- package/dist/frontend/components/settings.js +1 -1
- package/dist/frontend/components/share-dialog.js +1 -1
- package/dist/frontend/components/sidebar.js +1 -1
- package/dist/frontend/components/tag-create-dialog.js +1 -1
- package/dist/frontend/components/version-history.js +2 -2
- package/dist/frontend/dashboard.js +13 -13
- package/dist/frontend/{db-DUOtrCBC.js → db-rWMRdDfv.js} +1 -1
- package/dist/frontend/{dialog-DC97Hnxo.js → dialog-dq74xSum.js} +9 -9
- package/dist/frontend/{dist-D7zL6zdU.js → dist-BUuz1oVW.js} +1 -1
- package/dist/frontend/dist-COPpfjrc.js +316 -0
- package/dist/frontend/{dropdown-menu-COZwS7c0.js → dropdown-menu-ChtRLf5S.js} +12 -12
- package/dist/frontend/{editorExtensions-Cu__YKW7.js → editorExtensions-DPR-CjMu.js} +1 -1
- package/dist/frontend/frontend.css +1 -1
- package/dist/frontend/{identity-D_rjww-V.js → identity-BCcv0x22.js} +1 -1
- package/dist/frontend/{input-CrlYAH2S.js → input-DTrIztSF.js} +2 -2
- package/dist/frontend/{label-B0syEfns.js → label-BidWF619.js} +2 -2
- package/dist/frontend/{lib-DYgslUw1.js → lib-aUbBbIW2.js} +3357 -3328
- package/dist/frontend/{markdown-Co8ZAKf4.js → markdown-O9YJA70S.js} +2 -2
- package/dist/frontend/offline/identity.js +1 -1
- package/dist/frontend/{popper-layer-force-mount-BAYjg6Pp.js → popper-layer-force-mount-DeBbICF4.js} +63 -63
- package/dist/frontend/search.js +2 -2
- package/dist/frontend/{select-value-D9VqY5n5.js → select-value-BlBmN1Vp.js} +19 -19
- package/dist/frontend/{settings-CW_SR-EH.js → settings-BsuxLoxv.js} +1 -1
- package/dist/frontend/{share-context-DooXPYKd.js → share-context-CX9pmtDz.js} +3 -3
- package/dist/frontend/{textarea-l_gRXsrH.js → textarea-704DccHJ.js} +2 -2
- package/dist/frontend/theme.js +1 -1
- package/dist/frontend/{theme.svelte-gLPpG6eU.js → theme.svelte-B6hsI5me.js} +2 -2
- package/dist/frontend/{utils-B4LKx7VS.js → utils-j7qLkF4C.js} +1 -1
- package/dist/frontend-ssr/api/settings.js +1 -1
- package/dist/frontend-ssr/app-shell.js +3 -3
- package/dist/frontend-ssr/assets/{CategoryDialog-C41IBNWG.js → CategoryDialog-Ch4RlhLg.js} +4 -4
- package/dist/frontend-ssr/assets/{ConfirmDialog-CWO0HBaS.js → ConfirmDialog-B9sc7xt5.js} +3 -3
- package/dist/frontend-ssr/assets/{CreateSnapshotDialog-CECCRK0d.js → CreateSnapshotDialog-XLsNLzRf.js} +3 -3
- package/dist/frontend-ssr/assets/{DatePicker-CCylVH0q.js → DatePicker-BwLyP3b_.js} +3 -3
- package/dist/frontend-ssr/assets/{DeleteDialog-BVnmzR2e.js → DeleteDialog-C0a-RBKC.js} +1 -1
- package/dist/frontend-ssr/assets/{FolderNode-CscMQ9sf.js → FolderNode-imYW-MNe.js} +1 -1
- package/dist/frontend-ssr/assets/{HiAiEditor-D-FYXUht.js → HiAiEditor-CXq29oHf.js} +5 -5
- package/dist/frontend-ssr/assets/{SettingsDialog-BaI2MU5d.js → SettingsDialog-CH5B9IOK.js} +13 -13
- package/dist/frontend-ssr/assets/{ShareDialog-DHPbSHZg.js → ShareDialog-CcKZFHo8.js} +1 -1
- package/dist/frontend-ssr/assets/{Sidebar-BpTS2uCa.js → Sidebar-DQcwbR0y.js} +13 -13
- package/dist/frontend-ssr/assets/{TagCreateDialog-CPg-nG0D.js → TagCreateDialog-DCz6I-FH.js} +3 -3
- package/dist/frontend-ssr/assets/{auth-client-Bo5Fg-sb.js → auth-client-CokKgEB-.js} +13 -13
- package/dist/frontend-ssr/assets/{db-DUKz2X3Z.js → db-BxaCyM9B.js} +1 -1
- package/dist/frontend-ssr/assets/{dialog--tDgDGw9.js → dialog-Bjm7PhCc.js} +9 -9
- package/dist/frontend-ssr/assets/{dist-DqeAICTy.js → dist-71eunluk.js} +6 -6
- package/dist/frontend-ssr/assets/{dropdown-menu--acO7nXs.js → dropdown-menu-dg8hpDGz.js} +12 -12
- package/dist/frontend-ssr/assets/{identity-_M3U9lqe.js → identity-BHNrcgU5.js} +1 -1
- package/dist/frontend-ssr/assets/{input-BlAj7LzC.js → input-BzlpgSwc.js} +2 -2
- package/dist/frontend-ssr/assets/{label-BRToaMg9.js → label-uycYYCYF.js} +2 -2
- package/dist/frontend-ssr/assets/{popper-layer-force-mount-Djnq7l7a.js → popper-layer-force-mount-X3deg3KH.js} +71 -71
- package/dist/frontend-ssr/assets/{select-value-BCWSsoTd.js → select-value-BRQxTiFP.js} +18 -18
- package/dist/frontend-ssr/assets/{settings-DaOQ4Gv2.js → settings-Dy4eZk45.js} +1 -1
- package/dist/frontend-ssr/assets/{share-context-BvXQrIIH.js → share-context-dIAQ413Z.js} +3 -3
- package/dist/frontend-ssr/assets/{textarea-BuszTo9i.js → textarea-CEUFQIma.js} +2 -2
- package/dist/frontend-ssr/assets/{theme.svelte-CGgnJc3k.js → theme.svelte-dM8TietK.js} +2 -2
- package/dist/frontend-ssr/assets/{utils-BK35BJKQ.js → utils-0rlYZMNr.js} +1 -1
- package/dist/frontend-ssr/components/category-dialog.js +1 -1
- package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend-ssr/components/delete-dialog.js +1 -1
- package/dist/frontend-ssr/components/editor/compact-editor.js +1 -1
- package/dist/frontend-ssr/components/editor/document-editor.js +1 -1
- package/dist/frontend-ssr/components/folder-node.js +1 -1
- package/dist/frontend-ssr/components/save-as-dialog.js +3 -3
- package/dist/frontend-ssr/components/settings.js +1 -1
- package/dist/frontend-ssr/components/share-dialog.js +1 -1
- package/dist/frontend-ssr/components/sidebar.js +1 -1
- package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
- package/dist/frontend-ssr/components/version-history.js +2 -2
- package/dist/frontend-ssr/dashboard.js +18 -18
- package/dist/frontend-ssr/offline/identity.js +1 -1
- package/dist/frontend-ssr/search.js +2 -2
- package/dist/frontend-ssr/theme.js +1 -1
- package/dist/mcp-cli.js +50 -3
- package/dist/mcp-server.js +50 -3
- package/package.json +2 -2
- package/packages/cli/src/index.ts +1 -1
- package/server.json +2 -2
- package/dist/frontend/dist-BLpDfrDC.js +0 -316
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
2
|
-
import { $ as styleToString, B as boolToStr, C as PresenceManager, E as ARROW_DOWN, G as attachRef, H as createBitsAttrs, I as PAGE_DOWN, K as DOMContext, L as PAGE_UP, P as HOME, Q as mergeProps, S as noop, T as isIOS, U as getDataOpenClosed, V as boolToTrueOrUndef, W as getDataTransitionAttrs, X as watch, Y as Previous, Z as Context, _ as forward, a as getFloatingContentCSSVars, b as prev, et as boxWith, g as backward, h as boxAutoReset, i as Floating_layer, k as ARROW_UP, m as DOMTypeahead, n as Popper_layer, q as afterTick, r as Floating_layer_anchor, t as Popper_layer_force_mount, v as getNextMatch, x as createId, y as next, z as boolToEmptyStrOrUndef } from "./popper-layer-force-mount-
|
|
1
|
+
import { t as cn } from "./utils-0rlYZMNr.js";
|
|
2
|
+
import { $ as styleToString, B as boolToStr, C as PresenceManager, E as ARROW_DOWN, G as attachRef, H as createBitsAttrs, I as PAGE_DOWN, K as DOMContext, L as PAGE_UP, P as HOME, Q as mergeProps, S as noop, T as isIOS, U as getDataOpenClosed, V as boolToTrueOrUndef, W as getDataTransitionAttrs, X as watch, Y as Previous, Z as Context, _ as forward, a as getFloatingContentCSSVars, b as prev, et as boxWith, g as backward, h as boxAutoReset, i as Floating_layer, k as ARROW_UP, m as DOMTypeahead, n as Popper_layer, q as afterTick, r as Floating_layer_anchor, t as Popper_layer_force_mount, v as getNextMatch, x as createId, y as next, z as boolToEmptyStrOrUndef } from "./popper-layer-force-mount-X3deg3KH.js";
|
|
3
3
|
import * as $ from "svelte/internal/server";
|
|
4
4
|
import "svelte";
|
|
5
5
|
import { on } from "svelte/events";
|
|
6
|
-
//#region ../node_modules/.bun/svelte-toolbelt@0.10.6+
|
|
6
|
+
//#region ../node_modules/.bun/svelte-toolbelt@0.10.6+8c4cd95336874c28/node_modules/svelte-toolbelt/dist/utils/sr-only-styles.js
|
|
7
7
|
var srOnlyStyles = {
|
|
8
8
|
position: "absolute",
|
|
9
9
|
width: "1px",
|
|
@@ -18,7 +18,7 @@ var srOnlyStyles = {
|
|
|
18
18
|
};
|
|
19
19
|
styleToString(srOnlyStyles);
|
|
20
20
|
//#endregion
|
|
21
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+
|
|
21
|
+
//#region ../node_modules/.bun/bits-ui@2.19.0+62fefd7d6160949f/node_modules/bits-ui/dist/bits/utilities/hidden-input.svelte
|
|
22
22
|
function Hidden_input($$renderer, $$props) {
|
|
23
23
|
$$renderer.component(($$renderer) => {
|
|
24
24
|
let { value = void 0, $$slots, $$events, ...restProps } = $$props;
|
|
@@ -45,7 +45,7 @@ function Hidden_input($$renderer, $$props) {
|
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
//#endregion
|
|
48
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+
|
|
48
|
+
//#region ../node_modules/.bun/bits-ui@2.19.0+62fefd7d6160949f/node_modules/bits-ui/dist/internal/data-typeahead.svelte.js
|
|
49
49
|
var DataTypeahead = class {
|
|
50
50
|
#opts;
|
|
51
51
|
#candidateValues = $.derived(() => this.#opts.candidateValues());
|
|
@@ -881,7 +881,7 @@ var SelectViewportState = class SelectViewportState {
|
|
|
881
881
|
}
|
|
882
882
|
};
|
|
883
883
|
//#endregion
|
|
884
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+
|
|
884
|
+
//#region ../node_modules/.bun/bits-ui@2.19.0+62fefd7d6160949f/node_modules/bits-ui/dist/bits/select/components/select-hidden-input.svelte
|
|
885
885
|
function Select_hidden_input($$renderer, $$props) {
|
|
886
886
|
$$renderer.component(($$renderer) => {
|
|
887
887
|
let { value = void 0, autocomplete } = $$props;
|
|
@@ -914,7 +914,7 @@ function Select_hidden_input($$renderer, $$props) {
|
|
|
914
914
|
});
|
|
915
915
|
}
|
|
916
916
|
//#endregion
|
|
917
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+
|
|
917
|
+
//#region ../node_modules/.bun/bits-ui@2.19.0+62fefd7d6160949f/node_modules/bits-ui/dist/bits/select/components/select-content.svelte
|
|
918
918
|
function Select_content$1($$renderer, $$props) {
|
|
919
919
|
$$renderer.component(($$renderer) => {
|
|
920
920
|
const uid = $.props_id($$renderer);
|
|
@@ -1004,7 +1004,7 @@ function Select_content$1($$renderer, $$props) {
|
|
|
1004
1004
|
});
|
|
1005
1005
|
}
|
|
1006
1006
|
//#endregion
|
|
1007
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+
|
|
1007
|
+
//#region ../node_modules/.bun/bits-ui@2.19.0+62fefd7d6160949f/node_modules/bits-ui/dist/bits/utilities/mounted.svelte
|
|
1008
1008
|
function Mounted($$renderer, $$props) {
|
|
1009
1009
|
$$renderer.component(($$renderer) => {
|
|
1010
1010
|
let { mounted = false, onMountedChange = noop } = $$props;
|
|
@@ -1012,7 +1012,7 @@ function Mounted($$renderer, $$props) {
|
|
|
1012
1012
|
});
|
|
1013
1013
|
}
|
|
1014
1014
|
//#endregion
|
|
1015
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+
|
|
1015
|
+
//#region ../node_modules/.bun/bits-ui@2.19.0+62fefd7d6160949f/node_modules/bits-ui/dist/bits/select/components/select-item.svelte
|
|
1016
1016
|
function Select_item$1($$renderer, $$props) {
|
|
1017
1017
|
$$renderer.component(($$renderer) => {
|
|
1018
1018
|
const uid = $.props_id($$renderer);
|
|
@@ -1064,7 +1064,7 @@ function Select_item$1($$renderer, $$props) {
|
|
|
1064
1064
|
});
|
|
1065
1065
|
}
|
|
1066
1066
|
//#endregion
|
|
1067
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+
|
|
1067
|
+
//#region ../node_modules/.bun/bits-ui@2.19.0+62fefd7d6160949f/node_modules/bits-ui/dist/bits/select/components/select-viewport.svelte
|
|
1068
1068
|
function Select_viewport($$renderer, $$props) {
|
|
1069
1069
|
$$renderer.component(($$renderer) => {
|
|
1070
1070
|
const uid = $.props_id($$renderer);
|
|
@@ -1088,7 +1088,7 @@ function Select_viewport($$renderer, $$props) {
|
|
|
1088
1088
|
});
|
|
1089
1089
|
}
|
|
1090
1090
|
//#endregion
|
|
1091
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+
|
|
1091
|
+
//#region ../node_modules/.bun/bits-ui@2.19.0+62fefd7d6160949f/node_modules/bits-ui/dist/bits/select/components/select.svelte
|
|
1092
1092
|
function Select$1($$renderer, $$props) {
|
|
1093
1093
|
$$renderer.component(($$renderer) => {
|
|
1094
1094
|
let { value = void 0, onValueChange = noop, name = "", disabled = false, type, open = false, onOpenChange = noop, onOpenChangeComplete = noop, loop = false, scrollAlignment = "nearest", required = false, items = [], allowDeselect = false, autocomplete, children } = $$props;
|
|
@@ -1179,7 +1179,7 @@ function Select$1($$renderer, $$props) {
|
|
|
1179
1179
|
});
|
|
1180
1180
|
}
|
|
1181
1181
|
//#endregion
|
|
1182
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+
|
|
1182
|
+
//#region ../node_modules/.bun/bits-ui@2.19.0+62fefd7d6160949f/node_modules/bits-ui/dist/bits/select/components/select-value.svelte
|
|
1183
1183
|
function Select_value$1($$renderer, $$props) {
|
|
1184
1184
|
$$renderer.component(($$renderer) => {
|
|
1185
1185
|
const uid = $.props_id($$renderer);
|
|
@@ -1213,7 +1213,7 @@ function Select_value$1($$renderer, $$props) {
|
|
|
1213
1213
|
});
|
|
1214
1214
|
}
|
|
1215
1215
|
//#endregion
|
|
1216
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+
|
|
1216
|
+
//#region ../node_modules/.bun/bits-ui@2.19.0+62fefd7d6160949f/node_modules/bits-ui/dist/bits/select/components/select-trigger.svelte
|
|
1217
1217
|
function Select_trigger$1($$renderer, $$props) {
|
|
1218
1218
|
$$renderer.component(($$renderer) => {
|
|
1219
1219
|
const uid = $.props_id($$renderer);
|
|
@@ -1251,7 +1251,7 @@ function Select_trigger$1($$renderer, $$props) {
|
|
|
1251
1251
|
});
|
|
1252
1252
|
}
|
|
1253
1253
|
//#endregion
|
|
1254
|
-
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+
|
|
1254
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+6f5d64da9e546b9e/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select.svelte
|
|
1255
1255
|
function Select($$renderer, $$props) {
|
|
1256
1256
|
$$renderer.component(($$renderer) => {
|
|
1257
1257
|
let { value = void 0, children, $$slots, $$events, ...restProps } = $$props;
|
|
@@ -1294,7 +1294,7 @@ function Select($$renderer, $$props) {
|
|
|
1294
1294
|
});
|
|
1295
1295
|
}
|
|
1296
1296
|
//#endregion
|
|
1297
|
-
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+
|
|
1297
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+6f5d64da9e546b9e/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-content.svelte
|
|
1298
1298
|
function Select_content($$renderer, $$props) {
|
|
1299
1299
|
$$renderer.component(($$renderer) => {
|
|
1300
1300
|
let { ref = null, class: className, sideOffset = 4, children, $$slots, $$events, ...restProps } = $$props;
|
|
@@ -1357,7 +1357,7 @@ function Select_content($$renderer, $$props) {
|
|
|
1357
1357
|
});
|
|
1358
1358
|
}
|
|
1359
1359
|
//#endregion
|
|
1360
|
-
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+
|
|
1360
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+6f5d64da9e546b9e/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-item.svelte
|
|
1361
1361
|
function Select_item($$renderer, $$props) {
|
|
1362
1362
|
$$renderer.component(($$renderer) => {
|
|
1363
1363
|
let { ref = null, class: className, children, $$slots, $$events, ...restProps } = $$props;
|
|
@@ -1404,7 +1404,7 @@ function Select_item($$renderer, $$props) {
|
|
|
1404
1404
|
});
|
|
1405
1405
|
}
|
|
1406
1406
|
//#endregion
|
|
1407
|
-
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+
|
|
1407
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+6f5d64da9e546b9e/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-trigger.svelte
|
|
1408
1408
|
function Select_trigger($$renderer, $$props) {
|
|
1409
1409
|
$$renderer.component(($$renderer) => {
|
|
1410
1410
|
let { ref = null, class: className, child, children, $$slots, $$events, ...restProps } = $$props;
|
|
@@ -1476,7 +1476,7 @@ function Select_trigger($$renderer, $$props) {
|
|
|
1476
1476
|
});
|
|
1477
1477
|
}
|
|
1478
1478
|
//#endregion
|
|
1479
|
-
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+
|
|
1479
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+6f5d64da9e546b9e/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-value.svelte
|
|
1480
1480
|
function Select_value($$renderer, $$props) {
|
|
1481
1481
|
let { children, $$slots, $$events, ...restProps } = $$props;
|
|
1482
1482
|
if (children) {
|
|
@@ -7,9 +7,9 @@ import { t as action_create } from "./action_create-hqJWjyqh.js";
|
|
|
7
7
|
import { t as error_generic } from "./error_generic-DTK0kwxT.js";
|
|
8
8
|
import { t as action_save } from "./action_save-Bx7vlLZI.js";
|
|
9
9
|
import { n as folders_new, t as folders_rename } from "./folders_rename-DvciOb6K.js";
|
|
10
|
-
import { a as Dialog_content, i as Dialog_description, n as Dialog_header, o as Dialog, r as Dialog_footer, s as Button, t as Dialog_title } from "./dialog
|
|
11
|
-
import { t as Input } from "./input-
|
|
12
|
-
import { t as Label } from "./label-
|
|
10
|
+
import { a as Dialog_content, i as Dialog_description, n as Dialog_header, o as Dialog, r as Dialog_footer, s as Button, t as Dialog_title } from "./dialog-Bjm7PhCc.js";
|
|
11
|
+
import { t as Input } from "./input-BzlpgSwc.js";
|
|
12
|
+
import { t as Label } from "./label-uycYYCYF.js";
|
|
13
13
|
import * as $ from "svelte/internal/server";
|
|
14
14
|
import { getContext, setContext } from "svelte";
|
|
15
15
|
//#region ../node_modules/.bun/lucide-svelte@1.0.1+7a2629d9b18e82d0/node_modules/lucide-svelte/dist/icons/check.svelte
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
1
|
+
import { t as cn } from "./utils-0rlYZMNr.js";
|
|
2
2
|
import * as $ from "svelte/internal/server";
|
|
3
|
-
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+
|
|
3
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+6f5d64da9e546b9e/node_modules/@hiai-gg/hiai-ui/dist/components/ui/textarea/textarea.svelte
|
|
4
4
|
function Textarea($$renderer, $$props) {
|
|
5
5
|
$$renderer.component(($$renderer) => {
|
|
6
6
|
let { ref = null, class: className, value = "", $$slots, $$events, ...restProps } = $$props;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./dist-
|
|
1
|
+
import "./dist-71eunluk.js";
|
|
2
2
|
import "svelte/internal/server";
|
|
3
3
|
import { tick } from "svelte";
|
|
4
4
|
import { browser } from "$app/environment";
|
|
5
|
-
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+
|
|
5
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+6f5d64da9e546b9e/node_modules/@hiai-gg/hiai-ui/dist/lib/theme-spread.js
|
|
6
6
|
function prefersReducedMotion() {
|
|
7
7
|
return typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
8
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { clsx } from "clsx";
|
|
2
2
|
import { twMerge } from "tailwind-merge";
|
|
3
|
-
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+
|
|
3
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+6f5d64da9e546b9e/node_modules/@hiai-gg/hiai-ui/dist/lib/utils.js
|
|
4
4
|
/** Merge Tailwind class names, resolving conflicts (shadcn-svelte convention). */
|
|
5
5
|
function cn(...inputs) {
|
|
6
6
|
return twMerge(clsx(inputs));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as CategoryDialog } from "../assets/CategoryDialog-
|
|
1
|
+
import { t as CategoryDialog } from "../assets/CategoryDialog-Ch4RlhLg.js";
|
|
2
2
|
export { CategoryDialog };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as CreateSnapshotDialog } from "../assets/CreateSnapshotDialog-
|
|
1
|
+
import { t as CreateSnapshotDialog } from "../assets/CreateSnapshotDialog-XLsNLzRf.js";
|
|
2
2
|
export { CreateSnapshotDialog };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as DeleteDialog } from "../assets/DeleteDialog-
|
|
1
|
+
import { t as DeleteDialog } from "../assets/DeleteDialog-C0a-RBKC.js";
|
|
2
2
|
export { DeleteDialog };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as HiAiEditor } from "../../assets/HiAiEditor-
|
|
1
|
+
import { t as HiAiEditor } from "../../assets/HiAiEditor-CXq29oHf.js";
|
|
2
2
|
import "svelte/internal/server";
|
|
3
3
|
//#region src/lib/components/editor/CompactEditor.svelte
|
|
4
4
|
function CompactEditor($$renderer, $$props) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as HiAiEditor } from "../../assets/HiAiEditor-
|
|
1
|
+
import { t as HiAiEditor } from "../../assets/HiAiEditor-CXq29oHf.js";
|
|
2
2
|
export { HiAiEditor as DocsmintDocumentEditorHost };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as FolderNode } from "../assets/FolderNode-
|
|
1
|
+
import { t as FolderNode } from "../assets/FolderNode-imYW-MNe.js";
|
|
2
2
|
export { FolderNode };
|
|
@@ -4,10 +4,10 @@ import { t as Loader_circle } from "../assets/loader-circle-BpRVrMZg.js";
|
|
|
4
4
|
import { t as action_cancel } from "../assets/action_cancel-OVgQDP5Q.js";
|
|
5
5
|
import { t as action_save } from "../assets/action_save-Bx7vlLZI.js";
|
|
6
6
|
import { a as getDocsmintRequestAdapter } from "../assets/route-context-BPRerEtZ.js";
|
|
7
|
-
import { a as Dialog_content, i as Dialog_description, n as Dialog_header, o as Dialog, r as Dialog_footer, s as Button, t as Dialog_title } from "../assets/dialog
|
|
8
|
-
import { t as Label } from "../assets/label-
|
|
7
|
+
import { a as Dialog_content, i as Dialog_description, n as Dialog_header, o as Dialog, r as Dialog_footer, s as Button, t as Dialog_title } from "../assets/dialog-Bjm7PhCc.js";
|
|
8
|
+
import { t as Label } from "../assets/label-uycYYCYF.js";
|
|
9
9
|
import "../assets/categories-C_dxFoHi.js";
|
|
10
|
-
import { a as Select, i as Select_content, n as Select_trigger, r as Select_item, t as Select_value } from "../assets/select-value-
|
|
10
|
+
import { a as Select, i as Select_content, n as Select_trigger, r as Select_item, t as Select_value } from "../assets/select-value-BRQxTiFP.js";
|
|
11
11
|
import { d as refreshFolders } from "../assets/subfolders-refresh-store.svelte-CXHxQWKh.js";
|
|
12
12
|
import * as $ from "svelte/internal/server";
|
|
13
13
|
//#region src/lib/components/SaveAsDialog.svelte
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SettingsDialog } from "../assets/SettingsDialog-
|
|
1
|
+
import { t as SettingsDialog } from "../assets/SettingsDialog-CH5B9IOK.js";
|
|
2
2
|
export { SettingsDialog };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ShareDialog } from "../assets/ShareDialog-
|
|
1
|
+
import { t as ShareDialog } from "../assets/ShareDialog-CcKZFHo8.js";
|
|
2
2
|
export { ShareDialog };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Sidebar } from "../assets/Sidebar-
|
|
1
|
+
import { t as Sidebar } from "../assets/Sidebar-DQcwbR0y.js";
|
|
2
2
|
export { Sidebar };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TagCreateDialog } from "../assets/TagCreateDialog-
|
|
1
|
+
import { t as TagCreateDialog } from "../assets/TagCreateDialog-DCz6I-FH.js";
|
|
2
2
|
export { TagCreateDialog };
|
|
@@ -11,8 +11,8 @@ import { a as version_history_title, c as version_filter_all, d as time_hours_ag
|
|
|
11
11
|
import { t as version_create_snapshot } from "../assets/version_create_snapshot-COHzwjle.js";
|
|
12
12
|
import { a as getDocsmintRequestAdapter } from "../assets/route-context-BPRerEtZ.js";
|
|
13
13
|
import { n as apiFetch, t as ApiError } from "../assets/client-rfwQYYHY.js";
|
|
14
|
-
import { t as ConfirmDialog } from "../assets/ConfirmDialog-
|
|
15
|
-
import { t as CreateSnapshotDialog } from "../assets/CreateSnapshotDialog-
|
|
14
|
+
import { t as ConfirmDialog } from "../assets/ConfirmDialog-B9sc7xt5.js";
|
|
15
|
+
import { t as CreateSnapshotDialog } from "../assets/CreateSnapshotDialog-XLsNLzRf.js";
|
|
16
16
|
import * as $ from "svelte/internal/server";
|
|
17
17
|
//#region ../node_modules/.bun/lucide-svelte@1.0.1+7a2629d9b18e82d0/node_modules/lucide-svelte/dist/icons/history.svelte
|
|
18
18
|
function History($$renderer, $$props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Icon } from "./assets/Icon-Clqe8D8X.js";
|
|
2
|
-
import { i as Folder_kanban, n as Badge, r as X, t as DatePicker } from "./assets/DatePicker-
|
|
3
|
-
import { a as File_text, i as Plus, o as Check, r as FolderDialog, t as getDocsmintShareAdapter } from "./assets/share-context-
|
|
2
|
+
import { i as Folder_kanban, n as Badge, r as X, t as DatePicker } from "./assets/DatePicker-BwLyP3b_.js";
|
|
3
|
+
import { a as File_text, i as Plus, o as Check, r as FolderDialog, t as getDocsmintShareAdapter } from "./assets/share-context-dIAQ413Z.js";
|
|
4
4
|
import { t as Chevron_down } from "./assets/chevron-down-C6BTPJFz.js";
|
|
5
5
|
import { t as Chevron_right } from "./assets/chevron-right-CseGE1qd.js";
|
|
6
6
|
import { t as Copy } from "./assets/copy-DRMKiRZ0.js";
|
|
@@ -20,21 +20,21 @@ import { a as doc_share, i as editor_more_options, o as dashboard_new_document,
|
|
|
20
20
|
import { t as doc_title_placeholder } from "./assets/doc_title_placeholder-DSHpUb7w.js";
|
|
21
21
|
import { a as getDocsmintRequestAdapter, i as resolveDocsmintRoute, n as navigateDocsmintRoute, t as getDocsmintRouteAdapter } from "./assets/route-context-BPRerEtZ.js";
|
|
22
22
|
import { n as formatRelativeTime } from "./assets/utils-DvZnctjz.js";
|
|
23
|
-
import { t as cn } from "./assets/utils-
|
|
24
|
-
import { a as Dialog_content, i as Dialog_description, n as Dialog_header, o as Dialog, r as Dialog_footer, s as Button, t as Dialog_title } from "./assets/dialog
|
|
25
|
-
import { t as Label } from "./assets/label-
|
|
23
|
+
import { t as cn } from "./assets/utils-0rlYZMNr.js";
|
|
24
|
+
import { a as Dialog_content, i as Dialog_description, n as Dialog_header, o as Dialog, r as Dialog_footer, s as Button, t as Dialog_title } from "./assets/dialog-Bjm7PhCc.js";
|
|
25
|
+
import { t as Label } from "./assets/label-uycYYCYF.js";
|
|
26
26
|
import { n as apiFetch } from "./assets/client-rfwQYYHY.js";
|
|
27
27
|
import "./assets/categories-C_dxFoHi.js";
|
|
28
28
|
import { t as getFrontendExtensions } from "./assets/context-Bi_mO-NS.js";
|
|
29
29
|
import { t as resolveExtensions } from "./assets/resolve-BqHozBXl.js";
|
|
30
|
-
import "./assets/dist-
|
|
31
|
-
import { t as ConfirmDialog } from "./assets/ConfirmDialog-
|
|
32
|
-
import { X as watch, Z as Context, et as boxWith, w as isBrowser } from "./assets/popper-layer-force-mount-
|
|
33
|
-
import { a as Select, i as Select_content, n as Select_trigger, r as Select_item, t as Select_value } from "./assets/select-value-
|
|
34
|
-
import { a as Dropdown_menu, i as Dropdown_menu_content, n as Dropdown_menu_separator, r as Dropdown_menu_item, t as Dropdown_menu_trigger } from "./assets/dropdown-menu
|
|
30
|
+
import "./assets/dist-71eunluk.js";
|
|
31
|
+
import { t as ConfirmDialog } from "./assets/ConfirmDialog-B9sc7xt5.js";
|
|
32
|
+
import { X as watch, Z as Context, et as boxWith, w as isBrowser } from "./assets/popper-layer-force-mount-X3deg3KH.js";
|
|
33
|
+
import { a as Select, i as Select_content, n as Select_trigger, r as Select_item, t as Select_value } from "./assets/select-value-BRQxTiFP.js";
|
|
34
|
+
import { a as Dropdown_menu, i as Dropdown_menu_content, n as Dropdown_menu_separator, r as Dropdown_menu_item, t as Dropdown_menu_trigger } from "./assets/dropdown-menu-dg8hpDGz.js";
|
|
35
35
|
import { c as updateDocument, i as getDocument } from "./assets/documents-CEuA1V6N.js";
|
|
36
36
|
import { c as updateFolder, i as duplicateDocument } from "./assets/folders-BOXeb9hz.js";
|
|
37
|
-
import { t as ShareDialog } from "./assets/ShareDialog-
|
|
37
|
+
import { t as ShareDialog } from "./assets/ShareDialog-CcKZFHo8.js";
|
|
38
38
|
import { t as copyToClipboard } from "./assets/clipboard-CXOaoz2W.js";
|
|
39
39
|
import { d as refreshFolders, n as bumpSubfoldersRefresh } from "./assets/subfolders-refresh-store.svelte-CXHxQWKh.js";
|
|
40
40
|
import { n as refreshDocs } from "./assets/tag-store.svelte-QRysvGKe.js";
|
|
@@ -895,7 +895,7 @@ function Upload($$renderer, $$props) {
|
|
|
895
895
|
]));
|
|
896
896
|
}
|
|
897
897
|
//#endregion
|
|
898
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+
|
|
898
|
+
//#region ../node_modules/.bun/bits-ui@2.19.0+62fefd7d6160949f/node_modules/bits-ui/dist/bits/utilities/portal/portal-consumer.svelte
|
|
899
899
|
function Portal_consumer($$renderer, $$props) {
|
|
900
900
|
const { children } = $$props;
|
|
901
901
|
$$renderer.push(`<!---->`);
|
|
@@ -904,7 +904,7 @@ function Portal_consumer($$renderer, $$props) {
|
|
|
904
904
|
$$renderer.push(`<!---->`);
|
|
905
905
|
}
|
|
906
906
|
//#endregion
|
|
907
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+
|
|
907
|
+
//#region ../node_modules/.bun/bits-ui@2.19.0+62fefd7d6160949f/node_modules/bits-ui/dist/bits/utilities/config/bits-config.js
|
|
908
908
|
var BitsConfigContext = new Context("BitsConfig");
|
|
909
909
|
/**
|
|
910
910
|
* Gets the current Bits UI configuration state from the context.
|
|
@@ -971,7 +971,7 @@ function createConfigResolver(parent, currentOpts) {
|
|
|
971
971
|
};
|
|
972
972
|
}
|
|
973
973
|
//#endregion
|
|
974
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+
|
|
974
|
+
//#region ../node_modules/.bun/bits-ui@2.19.0+62fefd7d6160949f/node_modules/bits-ui/dist/bits/utilities/config/prop-resolvers.js
|
|
975
975
|
/**
|
|
976
976
|
* Creates a generic prop resolver that follows a standard priority chain:
|
|
977
977
|
* 1. The getter's prop value (if defined)
|
|
@@ -997,7 +997,7 @@ function createPropResolver(configOption, fallback) {
|
|
|
997
997
|
*/
|
|
998
998
|
var resolvePortalToProp = createPropResolver((config) => config.defaultPortalTo, "body");
|
|
999
999
|
//#endregion
|
|
1000
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+
|
|
1000
|
+
//#region ../node_modules/.bun/bits-ui@2.19.0+62fefd7d6160949f/node_modules/bits-ui/dist/bits/utilities/portal/portal.svelte
|
|
1001
1001
|
function Portal($$renderer, $$props) {
|
|
1002
1002
|
$$renderer.component(($$renderer) => {
|
|
1003
1003
|
let { to: toProp, children, disabled } = $$props;
|
|
@@ -1041,7 +1041,7 @@ function Portal($$renderer, $$props) {
|
|
|
1041
1041
|
});
|
|
1042
1042
|
}
|
|
1043
1043
|
//#endregion
|
|
1044
|
-
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+
|
|
1044
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+6f5d64da9e546b9e/node_modules/@hiai-gg/hiai-ui/dist/components/ui/card/card.svelte
|
|
1045
1045
|
function Card($$renderer, $$props) {
|
|
1046
1046
|
$$renderer.component(($$renderer) => {
|
|
1047
1047
|
let { ref = null, class: className, children, $$slots, $$events, ...restProps } = $$props;
|
|
@@ -1059,7 +1059,7 @@ function Card($$renderer, $$props) {
|
|
|
1059
1059
|
});
|
|
1060
1060
|
}
|
|
1061
1061
|
//#endregion
|
|
1062
|
-
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+
|
|
1062
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+6f5d64da9e546b9e/node_modules/@hiai-gg/hiai-ui/dist/components/ui/card/card-content.svelte
|
|
1063
1063
|
function Card_content($$renderer, $$props) {
|
|
1064
1064
|
$$renderer.component(($$renderer) => {
|
|
1065
1065
|
let { ref = null, class: className, children, $$slots, $$events, ...restProps } = $$props;
|
|
@@ -1077,7 +1077,7 @@ function Card_content($$renderer, $$props) {
|
|
|
1077
1077
|
});
|
|
1078
1078
|
}
|
|
1079
1079
|
//#endregion
|
|
1080
|
-
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+
|
|
1080
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+6f5d64da9e546b9e/node_modules/@hiai-gg/hiai-ui/dist/components/ui/card/card-header.svelte
|
|
1081
1081
|
function Card_header($$renderer, $$props) {
|
|
1082
1082
|
$$renderer.component(($$renderer) => {
|
|
1083
1083
|
let { ref = null, class: className, children, $$slots, $$events, ...restProps } = $$props;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resolveOfflineIdentity, i as offlineDbName, n as enableOfflineAccess, o as resolveOfflineIdentityResolution, r as offlineAccessEnabled, t as disableOfflineAccess } from "../assets/identity-
|
|
1
|
+
import { a as resolveOfflineIdentity, i as offlineDbName, n as enableOfflineAccess, o as resolveOfflineIdentityResolution, r as offlineAccessEnabled, t as disableOfflineAccess } from "../assets/identity-BHNrcgU5.js";
|
|
2
2
|
export { disableOfflineAccess, enableOfflineAccess, offlineAccessEnabled, offlineDbName, resolveOfflineIdentity, resolveOfflineIdentityResolution };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as Icon } from "./assets/Icon-Clqe8D8X.js";
|
|
2
|
-
import { a as Calendar, i as Folder_kanban, r as X, t as DatePicker } from "./assets/DatePicker-
|
|
2
|
+
import { a as Calendar, i as Folder_kanban, r as X, t as DatePicker } from "./assets/DatePicker-BwLyP3b_.js";
|
|
3
3
|
import { t as Chevron_down } from "./assets/chevron-down-C6BTPJFz.js";
|
|
4
4
|
import { t as Folder } from "./assets/folder-DszunwKc.js";
|
|
5
5
|
import { t as Rotate_ccw } from "./assets/rotate-ccw-1GOD_yt_.js";
|
|
@@ -10,7 +10,7 @@ import { a as getDocsmintRequestAdapter, n as navigateDocsmintRoute, t as getDoc
|
|
|
10
10
|
import "./assets/categories-C_dxFoHi.js";
|
|
11
11
|
import { t as getFrontendExtensions } from "./assets/context-Bi_mO-NS.js";
|
|
12
12
|
import { t as resolveExtensions } from "./assets/resolve-BqHozBXl.js";
|
|
13
|
-
import "./assets/select-value-
|
|
13
|
+
import "./assets/select-value-BRQxTiFP.js";
|
|
14
14
|
import "./assets/tag-store.svelte-QRysvGKe.js";
|
|
15
15
|
import * as $ from "svelte/internal/server";
|
|
16
16
|
//#region ../node_modules/.bun/lucide-svelte@1.0.1+7a2629d9b18e82d0/node_modules/lucide-svelte/dist/icons/sliders-horizontal.svelte
|
package/dist/mcp-cli.js
CHANGED
|
@@ -970,6 +970,53 @@ var client = new Proxy({}, {
|
|
|
970
970
|
}
|
|
971
971
|
});
|
|
972
972
|
|
|
973
|
+
// ../mcp-server/src/client-routing-schema.ts
|
|
974
|
+
function hoistObjectUnionClosure(schema) {
|
|
975
|
+
const variants = schema.oneOf;
|
|
976
|
+
if (!Array.isArray(variants) || !variants.every((variant2) => typeof variant2 === "object" && variant2 !== null && variant2.type === "object" && variant2.additionalProperties === false && typeof variant2.properties === "object" && variant2.properties !== null))
|
|
977
|
+
return schema;
|
|
978
|
+
const propertyVariants = new Map;
|
|
979
|
+
for (const variant2 of variants) {
|
|
980
|
+
for (const [key, property] of Object.entries(variant2.properties)) {
|
|
981
|
+
const values = propertyVariants.get(key) ?? [];
|
|
982
|
+
values.push(property);
|
|
983
|
+
propertyVariants.set(key, values);
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
return {
|
|
987
|
+
...schema,
|
|
988
|
+
type: "object",
|
|
989
|
+
properties: Object.fromEntries([...propertyVariants].map(([key, values]) => [
|
|
990
|
+
key,
|
|
991
|
+
values.length === 1 ? values[0] : { anyOf: values }
|
|
992
|
+
])),
|
|
993
|
+
additionalProperties: false,
|
|
994
|
+
oneOf: variants.map((variant2) => {
|
|
995
|
+
const { additionalProperties: _closure, ...branch } = variant2;
|
|
996
|
+
const excluded = [...propertyVariants.keys()].filter((key) => !(key in variant2.properties));
|
|
997
|
+
return excluded.length === 0 ? branch : {
|
|
998
|
+
...branch,
|
|
999
|
+
allOf: [
|
|
1000
|
+
...Array.isArray(branch.allOf) ? branch.allOf : [],
|
|
1001
|
+
{ not: { anyOf: excluded.map((key) => ({ required: [key] })) } }
|
|
1002
|
+
]
|
|
1003
|
+
};
|
|
1004
|
+
})
|
|
1005
|
+
};
|
|
1006
|
+
}
|
|
1007
|
+
function withClientRoutingSchema(schema) {
|
|
1008
|
+
const standard = schema["~standard"];
|
|
1009
|
+
return {
|
|
1010
|
+
"~standard": {
|
|
1011
|
+
...standard,
|
|
1012
|
+
jsonSchema: {
|
|
1013
|
+
...standard.jsonSchema,
|
|
1014
|
+
input: (options) => hoistObjectUnionClosure(standard.jsonSchema.input(options))
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
};
|
|
1018
|
+
}
|
|
1019
|
+
|
|
973
1020
|
// ../mcp-server/src/batch-workspace.ts
|
|
974
1021
|
var uuid = z2.string().uuid().describe("UUID of an item visible to the active API key.");
|
|
975
1022
|
var documentIds = z2.array(uuid).min(1).max(25).refine((ids) => new Set(ids).size === ids.length, "Document IDs must be unique.").describe("One to 25 distinct document UUIDs, explicitly selected by the user; no search expansion.");
|
|
@@ -1036,7 +1083,7 @@ function registerBatchAndWorkspaceCapabilities(server, client2, wrap) {
|
|
|
1036
1083
|
}
|
|
1037
1084
|
server.registerTool("batch_documents", {
|
|
1038
1085
|
description: "Use for multiple explicitly selected documents that need the same action; for one document prefer the matching single-document tool. Accepts 1\u201325 IDs for automation compatibility. Supports move, set_category, add_tag, remove_tag, trash, restore, or refresh_index. Processes sequentially through the existing API with a permission check per document and a per-ID result; partial success is possible. Stops after authentication or rate-limit failure. Never expands a search result or permanently purges documents; version restore is separate.",
|
|
1039
|
-
inputSchema: batchInput,
|
|
1086
|
+
inputSchema: withClientRoutingSchema(batchInput),
|
|
1040
1087
|
outputSchema: toolOutputSchemas.batch_documents,
|
|
1041
1088
|
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false }
|
|
1042
1089
|
}, wrap("batch_documents", batch, toolOutputSchemas.batch_documents));
|
|
@@ -1071,7 +1118,7 @@ function required2(value, name) {
|
|
|
1071
1118
|
}
|
|
1072
1119
|
function registerCompactCapabilities(server, client2, wrap) {
|
|
1073
1120
|
function register(name, description, inputSchema, annotations, handler) {
|
|
1074
|
-
server.registerTool(name, { description, inputSchema, outputSchema: toolOutputSchemas[name], annotations }, wrap(name, handler, toolOutputSchemas[name]));
|
|
1121
|
+
server.registerTool(name, { description, inputSchema: withClientRoutingSchema(inputSchema), outputSchema: toolOutputSchemas[name], annotations }, wrap(name, handler, toolOutputSchemas[name]));
|
|
1075
1122
|
}
|
|
1076
1123
|
register("find_documents", "Find readable documents in the active scope. Use mode=list for paginated browsing by folder or tag UUID; use mode=search for hybrid text and semantic retrieval with tag names.", z3.discriminatedUnion("mode", [
|
|
1077
1124
|
z3.strictObject({ mode: z3.literal("list").describe("Select the list operation explicitly."), folderId: uuid2.optional(), tag: uuid2.optional(), page: z3.number().int().min(1).optional().describe("One-based page number; defaults to the API first page."), limit: z3.number().int().min(1).max(1000).optional().describe("Maximum documents per page, up to 1000.") }),
|
|
@@ -1300,7 +1347,7 @@ function registerDocsmintMcpCapabilities(server, client2) {
|
|
|
1300
1347
|
registerPromptsAndResources(server, client2);
|
|
1301
1348
|
}
|
|
1302
1349
|
function createDocsmintMcpServer(options = {}) {
|
|
1303
|
-
const server = new McpServer({ name: "docsmint", version: "1.0.
|
|
1350
|
+
const server = new McpServer({ name: "docsmint", version: "1.0.3" });
|
|
1304
1351
|
const client2 = options.docsClient ? createMcpDocsClient(options.docsClient, options.requestContext) : options.client ?? createMcpDocsClient(createDefaultDocsClient(), options.requestContext);
|
|
1305
1352
|
registerDocsmintMcpCapabilities(server, client2);
|
|
1306
1353
|
return server;
|
package/dist/mcp-server.js
CHANGED
|
@@ -965,6 +965,53 @@ var client = new Proxy({}, {
|
|
|
965
965
|
}
|
|
966
966
|
});
|
|
967
967
|
|
|
968
|
+
// ../mcp-server/src/client-routing-schema.ts
|
|
969
|
+
function hoistObjectUnionClosure(schema) {
|
|
970
|
+
const variants = schema.oneOf;
|
|
971
|
+
if (!Array.isArray(variants) || !variants.every((variant2) => typeof variant2 === "object" && variant2 !== null && variant2.type === "object" && variant2.additionalProperties === false && typeof variant2.properties === "object" && variant2.properties !== null))
|
|
972
|
+
return schema;
|
|
973
|
+
const propertyVariants = new Map;
|
|
974
|
+
for (const variant2 of variants) {
|
|
975
|
+
for (const [key, property] of Object.entries(variant2.properties)) {
|
|
976
|
+
const values = propertyVariants.get(key) ?? [];
|
|
977
|
+
values.push(property);
|
|
978
|
+
propertyVariants.set(key, values);
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
return {
|
|
982
|
+
...schema,
|
|
983
|
+
type: "object",
|
|
984
|
+
properties: Object.fromEntries([...propertyVariants].map(([key, values]) => [
|
|
985
|
+
key,
|
|
986
|
+
values.length === 1 ? values[0] : { anyOf: values }
|
|
987
|
+
])),
|
|
988
|
+
additionalProperties: false,
|
|
989
|
+
oneOf: variants.map((variant2) => {
|
|
990
|
+
const { additionalProperties: _closure, ...branch } = variant2;
|
|
991
|
+
const excluded = [...propertyVariants.keys()].filter((key) => !(key in variant2.properties));
|
|
992
|
+
return excluded.length === 0 ? branch : {
|
|
993
|
+
...branch,
|
|
994
|
+
allOf: [
|
|
995
|
+
...Array.isArray(branch.allOf) ? branch.allOf : [],
|
|
996
|
+
{ not: { anyOf: excluded.map((key) => ({ required: [key] })) } }
|
|
997
|
+
]
|
|
998
|
+
};
|
|
999
|
+
})
|
|
1000
|
+
};
|
|
1001
|
+
}
|
|
1002
|
+
function withClientRoutingSchema(schema) {
|
|
1003
|
+
const standard = schema["~standard"];
|
|
1004
|
+
return {
|
|
1005
|
+
"~standard": {
|
|
1006
|
+
...standard,
|
|
1007
|
+
jsonSchema: {
|
|
1008
|
+
...standard.jsonSchema,
|
|
1009
|
+
input: (options) => hoistObjectUnionClosure(standard.jsonSchema.input(options))
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
};
|
|
1013
|
+
}
|
|
1014
|
+
|
|
968
1015
|
// ../mcp-server/src/batch-workspace.ts
|
|
969
1016
|
var uuid = z2.string().uuid().describe("UUID of an item visible to the active API key.");
|
|
970
1017
|
var documentIds = z2.array(uuid).min(1).max(25).refine((ids) => new Set(ids).size === ids.length, "Document IDs must be unique.").describe("One to 25 distinct document UUIDs, explicitly selected by the user; no search expansion.");
|
|
@@ -1031,7 +1078,7 @@ function registerBatchAndWorkspaceCapabilities(server, client2, wrap) {
|
|
|
1031
1078
|
}
|
|
1032
1079
|
server.registerTool("batch_documents", {
|
|
1033
1080
|
description: "Use for multiple explicitly selected documents that need the same action; for one document prefer the matching single-document tool. Accepts 1\u201325 IDs for automation compatibility. Supports move, set_category, add_tag, remove_tag, trash, restore, or refresh_index. Processes sequentially through the existing API with a permission check per document and a per-ID result; partial success is possible. Stops after authentication or rate-limit failure. Never expands a search result or permanently purges documents; version restore is separate.",
|
|
1034
|
-
inputSchema: batchInput,
|
|
1081
|
+
inputSchema: withClientRoutingSchema(batchInput),
|
|
1035
1082
|
outputSchema: toolOutputSchemas.batch_documents,
|
|
1036
1083
|
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false }
|
|
1037
1084
|
}, wrap("batch_documents", batch, toolOutputSchemas.batch_documents));
|
|
@@ -1066,7 +1113,7 @@ function required2(value, name) {
|
|
|
1066
1113
|
}
|
|
1067
1114
|
function registerCompactCapabilities(server, client2, wrap) {
|
|
1068
1115
|
function register(name, description, inputSchema, annotations, handler) {
|
|
1069
|
-
server.registerTool(name, { description, inputSchema, outputSchema: toolOutputSchemas[name], annotations }, wrap(name, handler, toolOutputSchemas[name]));
|
|
1116
|
+
server.registerTool(name, { description, inputSchema: withClientRoutingSchema(inputSchema), outputSchema: toolOutputSchemas[name], annotations }, wrap(name, handler, toolOutputSchemas[name]));
|
|
1070
1117
|
}
|
|
1071
1118
|
register("find_documents", "Find readable documents in the active scope. Use mode=list for paginated browsing by folder or tag UUID; use mode=search for hybrid text and semantic retrieval with tag names.", z3.discriminatedUnion("mode", [
|
|
1072
1119
|
z3.strictObject({ mode: z3.literal("list").describe("Select the list operation explicitly."), folderId: uuid2.optional(), tag: uuid2.optional(), page: z3.number().int().min(1).optional().describe("One-based page number; defaults to the API first page."), limit: z3.number().int().min(1).max(1000).optional().describe("Maximum documents per page, up to 1000.") }),
|
|
@@ -1329,7 +1376,7 @@ function registerDocsmintMcpCapabilities(server, client2) {
|
|
|
1329
1376
|
registerPromptsAndResources(server, client2);
|
|
1330
1377
|
}
|
|
1331
1378
|
function createDocsmintMcpServer(options = {}) {
|
|
1332
|
-
const server = new McpServer({ name: "docsmint", version: "1.0.
|
|
1379
|
+
const server = new McpServer({ name: "docsmint", version: "1.0.3" });
|
|
1333
1380
|
const client2 = options.docsClient ? createMcpDocsClient(options.docsClient, options.requestContext) : options.client ?? createMcpDocsClient(createDefaultDocsClient(), options.requestContext);
|
|
1334
1381
|
registerDocsmintMcpCapabilities(server, client2);
|
|
1335
1382
|
return server;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hiai-gg/docsmint",
|
|
3
3
|
"mcpName": "io.github.HiAi-gg/docsmint",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"browser": {
|
|
7
7
|
"./dist/backend-launcher.js": false,
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
"prepublishOnly": "cd packages/sdk && bun run build"
|
|
381
381
|
},
|
|
382
382
|
"dependencies": {
|
|
383
|
-
"@modelcontextprotocol/server": "2.
|
|
383
|
+
"@modelcontextprotocol/server": "2.3.0",
|
|
384
384
|
"bullmq": "^6.3.2",
|
|
385
385
|
"commander": "^15.0.0",
|
|
386
386
|
"ioredis": "^6.0.0",
|
|
@@ -25,7 +25,7 @@ import { registerSearch } from './commands/search.js';
|
|
|
25
25
|
import { registerSnapshot } from './commands/snapshot.js';
|
|
26
26
|
import { registerUpdate } from './commands/update.js';
|
|
27
27
|
|
|
28
|
-
const VERSION = '1.0.
|
|
28
|
+
const VERSION = '1.0.3';
|
|
29
29
|
|
|
30
30
|
const program = new Command();
|
|
31
31
|
program.name('docsmint').description('CLI for the DocsMint knowledge workspace').version(VERSION);
|