@hiai-gg/docsmint 1.0.1 → 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 +12 -13
- 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 +56 -9
- package/dist/mcp-server.js +56 -9
- 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.");
|
|
@@ -1035,8 +1082,8 @@ function registerBatchAndWorkspaceCapabilities(server, client2, wrap) {
|
|
|
1035
1082
|
return { action: input.action, total: input.documentIds.length, succeeded, failed: results.filter((result) => result.status === "error").length, aborted, results };
|
|
1036
1083
|
}
|
|
1037
1084
|
server.registerTool("batch_documents", {
|
|
1038
|
-
description: "
|
|
1039
|
-
inputSchema: batchInput,
|
|
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.",
|
|
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.") }),
|
|
@@ -1088,7 +1135,7 @@ function registerCompactCapabilities(server, client2, wrap) {
|
|
|
1088
1135
|
return { operation: "markdown", result: await client2.exportDocument(input.id) };
|
|
1089
1136
|
return { operation: "versions", result: await client2.getVersionHistory(input.id, input.onlySnapshots) };
|
|
1090
1137
|
});
|
|
1091
|
-
register("save_document", "Create a new document or update an existing
|
|
1138
|
+
register("save_document", "Create or update one document. Use action=create for a new document or action=update for an existing one; batch_documents handles the same placement change across multiple existing documents. Creation requires write access; content edits require edit access, and placement changes may require write access. Content or placement changes queue normal indexing.", z3.discriminatedUnion("action", [
|
|
1092
1139
|
z3.strictObject({ action: z3.literal("create").describe("Select the create operation explicitly."), title: title.optional(), content: content.optional(), folderId: uuid2.optional(), categoryId: uuid2.nullable().optional().describe("Optional category UUID; null clears the explicit category.") }),
|
|
1093
1140
|
z3.strictObject({ action: z3.literal("update").describe("Select the update operation explicitly."), id: uuid2, title: title.optional(), content: content.optional(), folderId: uuid2.nullable().optional().describe("Optional folder UUID; null clears the placement on update."), categoryId: uuid2.nullable().optional().describe("Optional category UUID; null clears the explicit category.") }).refine((value) => value.title !== undefined || value.content !== undefined || value.folderId !== undefined || value.categoryId !== undefined)
|
|
1094
1141
|
]), destructive, async (input) => {
|
|
@@ -1099,7 +1146,7 @@ function registerCompactCapabilities(server, client2, wrap) {
|
|
|
1099
1146
|
const { action: _action, id, ...data } = input;
|
|
1100
1147
|
return { operation: "update", result: await client2.updateDocument(id, data) };
|
|
1101
1148
|
});
|
|
1102
|
-
register("delete_document", "Move
|
|
1149
|
+
register("delete_document", "Move one document to trash without purging content or versions. Use batch_documents(action=trash) for multiple explicit IDs. Requires write access and an explicit delete request; permanently_delete_document is a separate irreversible action.", z3.strictObject({ id: uuid2 }), destructive, async ({ id }) => {
|
|
1103
1150
|
await required2(client2.deleteDocument, "delete_document")(id);
|
|
1104
1151
|
return { id, deleted: true };
|
|
1105
1152
|
});
|
|
@@ -1155,7 +1202,7 @@ function registerCompactCapabilities(server, client2, wrap) {
|
|
|
1155
1202
|
await required2(client2.deleteTag, "delete_tag")(id);
|
|
1156
1203
|
return { id, deleted: true };
|
|
1157
1204
|
});
|
|
1158
|
-
register("set_document_tag", "Add or remove
|
|
1205
|
+
register("set_document_tag", "Add or remove an existing tag assignment on one document. Use batch_documents for the same tag action across multiple explicit IDs. Requires edit access to each document; action=remove preserves the tag itself.", z3.strictObject({ action: z3.enum(["add", "remove"]).describe("Add or remove exactly one tag assignment."), documentId: uuid2, tagId: uuid2 }), destructive, async ({ action, documentId, tagId }) => {
|
|
1159
1206
|
if (action === "add") {
|
|
1160
1207
|
await required2(client2.addTagToDocument, "add_tag_to_document")(documentId, tagId);
|
|
1161
1208
|
return { operation: "add", result: { documentId, tagId, assigned: true } };
|
|
@@ -1170,9 +1217,9 @@ function registerCompactCapabilities(server, client2, wrap) {
|
|
|
1170
1217
|
z3.strictObject({ mode: z3.literal("search").describe("Select the search operation explicitly."), docIds: z3.array(uuid2).min(1).max(50).describe("One to 50 authorized seed document UUIDs."), query: z3.string().max(2000).optional().describe("Optional graph relevance query, at most 2000 characters."), limit: z3.number().int().min(1).max(100).optional().describe("Maximum results to return, up to 100.") })
|
|
1171
1218
|
]), read, async (input) => input.mode === "neighbors" ? { operation: "neighbors", result: await client2.getRelatedDocuments(input.documentId, input.limit) } : { operation: "search", result: await client2.searchGraph(input) });
|
|
1172
1219
|
register("get_document_index_status", "Read current indexing and pipeline status for one document without starting work. Use refresh_document_index only when an explicit retry is intended.", z3.strictObject({ documentId: uuid2 }), read, async ({ documentId }) => client2.getDocumentIndexStatus(documentId));
|
|
1173
|
-
register("refresh_document_index", "Queue an explicit asynchronous reindex for one document. Routine content and placement changes already schedule indexing; check get_document_index_status first.", z3.strictObject({ documentId: uuid2 }), write, async ({ documentId }) => client2.refreshDocumentIndex(documentId));
|
|
1220
|
+
register("refresh_document_index", "Queue an explicit asynchronous reindex for one document; use batch_documents(action=refresh_index) for multiple explicit IDs. Routine content and placement changes already schedule indexing; check get_document_index_status first.", z3.strictObject({ documentId: uuid2 }), write, async ({ documentId }) => client2.refreshDocumentIndex(documentId));
|
|
1174
1221
|
register("list_trash", "List soft-deleted documents visible to the active workspace or category scope. Requires read access and does not restore or purge anything.", z3.strictObject({}), read, async () => required2(client2.listTrash, "list_trash")());
|
|
1175
|
-
register("restore_trashed_document", "Return one
|
|
1222
|
+
register("restore_trashed_document", "Return one document from trash to the active library; use batch_documents(action=restore) for multiple explicit IDs. This restores the document itself, unlike restore_document_version which changes content.", z3.strictObject({ id: uuid2 }), write, async ({ id }) => required2(client2.restoreTrashedDocument, "restore_trashed_document")(id));
|
|
1176
1223
|
register("permanently_delete_document", "Irreversibly purge a document already in trash, including its version history. Use only on an explicit user request after checking list_trash.", z3.strictObject({ id: uuid2 }), destructive, async ({ id }) => {
|
|
1177
1224
|
await required2(client2.permanentlyDeleteDocument, "permanently_delete_document")(id);
|
|
1178
1225
|
return { id, deleted: true };
|
|
@@ -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;
|