@hiai-gg/docsmint 0.8.1 → 0.8.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.
Files changed (95) hide show
  1. package/README.md +84 -199
  2. package/dist/backend/index.js +718 -269
  3. package/dist/backend-account-runtime-cleanup.js +2 -0
  4. package/dist/backend-api-key-facade.js +2 -0
  5. package/dist/backend-pipeline-cancellation.js +2 -0
  6. package/dist/client.d.ts +2 -1
  7. package/dist/client.js +10 -0
  8. package/dist/frontend/{CategoryDialog-D_xFSWGh.js → CategoryDialog-B6zqtwE6.js} +2 -2
  9. package/dist/frontend/{ConfirmDialog-Cfq3D2Di.js → ConfirmDialog-Dk7wwcj9.js} +1 -1
  10. package/dist/frontend/{CreateSnapshotDialog-BHODxZWK.js → CreateSnapshotDialog-BPYjO1qN.js} +2 -2
  11. package/dist/frontend/{DatePicker-CZyCnQ1q.js → DatePicker-SiGLx9yh.js} +46 -46
  12. package/dist/frontend/{DeleteDialog-DaJOO6SB.js → DeleteDialog-D1jox8h1.js} +2 -2
  13. package/dist/frontend/{FolderNode-C_91NlEO.js → FolderNode-BG4l6I5C.js} +100 -99
  14. package/dist/frontend/{HiAiEditor-DtUGbQg6.js → HiAiEditor-Dxqt8BUN.js} +979 -1010
  15. package/dist/frontend/{SettingsDialog-BlIZqk2-.js → SettingsDialog-DnrPV8dM.js} +7 -7
  16. package/dist/frontend/Sidebar-BI_ccYTl.js +2149 -0
  17. package/dist/frontend/{TagCreateDialog-BlGz4O9Z.js → TagCreateDialog-C5j3H49u.js} +2 -2
  18. package/dist/frontend/api/settings.js +1 -1
  19. package/dist/frontend/app-shell.js +3 -3
  20. package/dist/frontend/{auth-client-DCMne8vd.js → auth-client-Dc0mkuZH.js} +10 -10
  21. package/dist/frontend/components/category-dialog.js +1 -1
  22. package/dist/frontend/components/create-snapshot-dialog.js +1 -1
  23. package/dist/frontend/components/delete-dialog.js +1 -1
  24. package/dist/frontend/components/editor/compact-editor.js +1 -1
  25. package/dist/frontend/components/editor/document-editor.js +1 -1
  26. package/dist/frontend/components/editor/extensions.js +1 -1
  27. package/dist/frontend/components/editor/markdown-toggle.js +1 -1
  28. package/dist/frontend/components/editor/markdown.js +1 -1
  29. package/dist/frontend/components/folder-node.js +1 -1
  30. package/dist/frontend/components/save-as-dialog.js +2 -2
  31. package/dist/frontend/components/settings.js +1 -1
  32. package/dist/frontend/components/sidebar.js +1 -1
  33. package/dist/frontend/components/tag-create-dialog.js +1 -1
  34. package/dist/frontend/components/version-history.js +3 -3
  35. package/dist/frontend/dashboard.js +1034 -1034
  36. package/dist/frontend/{db-CbFRFAm2.js → db-DUOtrCBC.js} +1 -1
  37. package/dist/frontend/{dialog-tHAH3-9M.js → dialog-DC97Hnxo.js} +1 -1
  38. package/dist/frontend/dist-BLpDfrDC.js +316 -0
  39. package/dist/frontend/dist-D7zL6zdU.js +40 -0
  40. package/dist/frontend/{dist-Cg1BpNS7.js → dist-qd_OnyUC.js} +492 -516
  41. package/dist/frontend/dropdown-menu-COZwS7c0.js +493 -0
  42. package/dist/frontend/editorExtensions-Cu__YKW7.js +158 -0
  43. package/dist/frontend/ellipsis-vertical-CObXWXZW.js +41 -0
  44. package/dist/frontend/frontend.css +1 -1
  45. package/dist/frontend/{identity-O4lAuchv.js → identity-D_rjww-V.js} +1 -1
  46. package/dist/frontend/{editorExtensions-B-mKiWqq.js → lib-DYgslUw1.js} +6782 -6935
  47. package/dist/frontend/loader-circle-DnyUzAmN.js +25 -0
  48. package/dist/frontend/{markdown-CMij27Gg.js → markdown-Co8ZAKf4.js} +2 -1
  49. package/dist/frontend/offline/identity.js +1 -1
  50. package/dist/frontend/search.js +2 -2
  51. package/dist/frontend/{settings-DJW8JkdF.js → settings-CW_SR-EH.js} +1 -1
  52. package/dist/frontend/{confirm-dialog-BFTxjLv-.js → share-context-DooXPYKd.js} +2 -3
  53. package/dist/frontend/theme.js +1 -1
  54. package/dist/frontend/{theme.svelte-Bzitjfh9.js → theme.svelte-gLPpG6eU.js} +1 -0
  55. package/dist/frontend-ssr/api/settings.js +1 -1
  56. package/dist/frontend-ssr/app-shell.js +3 -3
  57. package/dist/frontend-ssr/assets/{FolderNode-CClgk8BL.js → FolderNode-CscMQ9sf.js} +2 -1
  58. package/dist/frontend-ssr/assets/{HiAiEditor-_-m7MJDd.js → HiAiEditor-D-FYXUht.js} +6 -52
  59. package/dist/frontend-ssr/assets/{SettingsDialog-BdvHRAxF.js → SettingsDialog-BaI2MU5d.js} +5 -5
  60. package/dist/frontend-ssr/assets/{Sidebar-B3Saqn0O.js → Sidebar-BpTS2uCa.js} +7 -5
  61. package/dist/frontend-ssr/assets/{auth-client-DzkZlSQ8.js → auth-client-Bo5Fg-sb.js} +13 -13
  62. package/dist/frontend-ssr/assets/{db-CUkQe9AU.js → db-DUKz2X3Z.js} +1 -1
  63. package/dist/frontend-ssr/assets/dist-CshZmNmp.js +50 -0
  64. package/dist/frontend-ssr/assets/dist-DqeAICTy.js +300 -0
  65. package/dist/frontend-ssr/assets/{dropdown-menu-CdEpn_LT.js → dropdown-menu--acO7nXs.js} +1 -94
  66. package/dist/frontend-ssr/assets/ellipsis-vertical-BErUuhWg.js +96 -0
  67. package/dist/frontend-ssr/assets/{identity-veXobEfE.js → identity-_M3U9lqe.js} +1 -1
  68. package/dist/frontend-ssr/assets/{markdown-MhPwNWrC.js → markdown-Co31-Tl2.js} +1 -1
  69. package/dist/frontend-ssr/assets/{settings-DwAcLGM1.js → settings-DaOQ4Gv2.js} +1 -1
  70. package/dist/frontend-ssr/assets/{confirm-dialog-DeOR0SnQ.js → share-context-BvXQrIIH.js} +0 -1
  71. package/dist/frontend-ssr/assets/{theme.svelte-shZrSxz8.js → theme.svelte-CGgnJc3k.js} +1 -0
  72. package/dist/frontend-ssr/components/editor/compact-editor.js +1 -1
  73. package/dist/frontend-ssr/components/editor/document-editor.js +1 -1
  74. package/dist/frontend-ssr/components/editor/extensions.js +1 -1
  75. package/dist/frontend-ssr/components/editor/markdown-toggle.js +1 -1
  76. package/dist/frontend-ssr/components/editor/markdown.js +1 -1
  77. package/dist/frontend-ssr/components/folder-node.js +1 -1
  78. package/dist/frontend-ssr/components/settings.js +1 -1
  79. package/dist/frontend-ssr/components/sidebar.js +1 -1
  80. package/dist/frontend-ssr/dashboard.js +6 -4
  81. package/dist/frontend-ssr/offline/identity.js +1 -1
  82. package/dist/frontend-ssr/search.js +1 -1
  83. package/dist/frontend-ssr/theme.js +1 -1
  84. package/dist/lifecycle-runtime.js +2 -0
  85. package/dist/mcp-cli.js +7 -1
  86. package/dist/mcp-server.js +7 -1
  87. package/dist/types.d.ts +12 -0
  88. package/package.json +1 -1
  89. package/packages/cli/src/index.ts +1 -1
  90. package/packages/db/src/schema.ts +2 -0
  91. package/server.json +2 -2
  92. package/dist/frontend/Sidebar-BVGm5BRR.js +0 -2147
  93. package/dist/frontend/dropdown-menu-AJYeFPHu.js +0 -530
  94. package/dist/frontend-ssr/assets/{DatePicker-TZVeMZ2S.js → DatePicker-CCylVH0q.js} +12 -12
  95. package/dist/frontend-ssr/assets/{editorExtensions-qNlZVP98.js → editorExtensions-rhletNji.js} +1 -1
@@ -1,4 +1,4 @@
1
- import { n as e } from "./dist-Cg1BpNS7.js";
1
+ import { t as e } from "./loader-circle-DnyUzAmN.js";
2
2
  import { t } from "./action_cancel-Cuxsznzz.js";
3
3
  import { t as n } from "./action_create-CtBQrRuj.js";
4
4
  import { t as r } from "./action_loading-BLCGJVA9.js";
@@ -7,7 +7,7 @@ import { t as a } from "./error_generic-CzNtmBT4.js";
7
7
  import { n as o, r as s, t as c } from "./tags_new-BiNAJ9Bx.js";
8
8
  import { a as l } from "./route-context-DYQlUfzL.js";
9
9
  import { t as u } from "./utils-BovMJHdA.js";
10
- import { a as d, i as f, n as p, o as m, r as h, s as g, t as _ } from "./dialog-tHAH3-9M.js";
10
+ import { a as d, i as f, n as p, o as m, r as h, s as g, t as _ } from "./dialog-DC97Hnxo.js";
11
11
  import { t as v } from "./input-CrlYAH2S.js";
12
12
  import { t as y } from "./label-B0syEfns.js";
13
13
  import { c as b, l as x, n as S, r as C } from "./tags-CzPNUoFw.js";
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, r, t as i } from "../settings-DJW8JkdF.js";
1
+ import { a as e, i as t, n, r, t as i } from "../settings-CW_SR-EH.js";
2
2
  export { i as deleteAccount, n as getEmbeddingConfig, r as getProfile, t as updateEmbeddingConfig, e as updateProfile };
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./Icon-y7xxAIC6.js";
2
- import { n as t, t as n } from "./confirm-dialog-BFTxjLv-.js";
3
- import { n as r } from "./SettingsDialog-BlIZqk2-.js";
4
- import { t as i } from "./Sidebar-BVGm5BRR.js";
2
+ import { n as t, t as n } from "./share-context-DooXPYKd.js";
3
+ import { n as r } from "./SettingsDialog-DnrPV8dM.js";
4
+ import { t as i } from "./Sidebar-BI_ccYTl.js";
5
5
  import { t as a } from "./scroll_to_top_aria-CvkNF_Hu.js";
6
6
  import { o, r as s } from "./route-context-DYQlUfzL.js";
7
7
  import { t as c } from "./editor-preferences.svelte-Bt_A9k7n.js";
@@ -1,4 +1,4 @@
1
- //#region ../node_modules/.bun/better-auth@1.7.2+a913405242b7eb5a/node_modules/better-auth/dist/client/broadcast-channel.mjs
1
+ //#region ../node_modules/.bun/better-auth@1.7.2+93880f1bde597d38/node_modules/better-auth/dist/client/broadcast-channel.mjs
2
2
  var e = Symbol.for("better-auth:broadcast-channel"), t = () => Math.floor(Date.now() / 1e3), n = class {
3
3
  listeners = /* @__PURE__ */ new Set();
4
4
  name;
@@ -132,7 +132,7 @@ var i = Symbol("clean"), a = [], o = 0, s = null, c = 4, l = globalThis.nanostor
132
132
  };
133
133
  });
134
134
  //#endregion
135
- //#region ../node_modules/.bun/better-auth@1.7.2+a913405242b7eb5a/node_modules/better-auth/dist/client/equality.mjs
135
+ //#region ../node_modules/.bun/better-auth@1.7.2+93880f1bde597d38/node_modules/better-auth/dist/client/equality.mjs
136
136
  function b(e) {
137
137
  if (typeof e != "object" || !e) return !1;
138
138
  let t = Object.getPrototypeOf(e);
@@ -159,7 +159,7 @@ function S(e, t) {
159
159
  });
160
160
  }
161
161
  //#endregion
162
- //#region ../node_modules/.bun/better-auth@1.7.2+a913405242b7eb5a/node_modules/better-auth/dist/client/focus-manager.mjs
162
+ //#region ../node_modules/.bun/better-auth@1.7.2+93880f1bde597d38/node_modules/better-auth/dist/client/focus-manager.mjs
163
163
  var C = Symbol.for("better-auth:focus-manager"), ee = class {
164
164
  listeners = /* @__PURE__ */ new Set();
165
165
  subscribe(e) {
@@ -184,7 +184,7 @@ function w() {
184
184
  return globalThis[C] || (globalThis[C] = new ee()), globalThis[C];
185
185
  }
186
186
  //#endregion
187
- //#region ../node_modules/.bun/better-auth@1.7.2+a913405242b7eb5a/node_modules/better-auth/dist/client/online-manager.mjs
187
+ //#region ../node_modules/.bun/better-auth@1.7.2+93880f1bde597d38/node_modules/better-auth/dist/client/online-manager.mjs
188
188
  var T = Symbol.for("better-auth:online-manager"), te = class {
189
189
  listeners = /* @__PURE__ */ new Set();
190
190
  isOnline = typeof navigator < "u" ? navigator.onLine : !0;
@@ -208,7 +208,7 @@ function E() {
208
208
  return globalThis[T] || (globalThis[T] = new te()), globalThis[T];
209
209
  }
210
210
  //#endregion
211
- //#region ../node_modules/.bun/better-auth@1.7.2+a913405242b7eb5a/node_modules/better-auth/dist/client/parser.mjs
211
+ //#region ../node_modules/.bun/better-auth@1.7.2+93880f1bde597d38/node_modules/better-auth/dist/client/parser.mjs
212
212
  var ne = {
213
213
  proto: /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,
214
214
  constructor: /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,
@@ -270,7 +270,7 @@ function ce(e, t = { strict: !0 }) {
270
270
  return se(e, t);
271
271
  }
272
272
  //#endregion
273
- //#region ../node_modules/.bun/better-auth@1.7.2+a913405242b7eb5a/node_modules/better-auth/dist/client/session-refresh.mjs
273
+ //#region ../node_modules/.bun/better-auth@1.7.2+93880f1bde597d38/node_modules/better-auth/dist/client/session-refresh.mjs
274
274
  var O = () => Math.floor(Date.now() / 1e3), le = 5;
275
275
  function ue(e) {
276
276
  let { fetchSession: t, shouldPollSession: n = () => !0, sessionSignal: i, options: a = {} } = e, o = a.sessionOptions?.refetchInterval ?? 0, s = a.sessionOptions?.refetchOnWindowFocus ?? !0, c = a.sessionOptions?.refetchWhenOffline ?? !1, l = {
@@ -561,7 +561,7 @@ function xe(e) {
561
561
  return !be.includes(t.protocol);
562
562
  }
563
563
  //#endregion
564
- //#region ../node_modules/.bun/better-auth@1.7.2+a913405242b7eb5a/node_modules/better-auth/dist/client/fetch-plugins.mjs
564
+ //#region ../node_modules/.bun/better-auth@1.7.2+93880f1bde597d38/node_modules/better-auth/dist/client/fetch-plugins.mjs
565
565
  var Se = {
566
566
  id: "redirect",
567
567
  name: "Redirect",
@@ -1178,7 +1178,7 @@ var Z = async (e, t) => {
1178
1178
  };
1179
1179
  };
1180
1180
  //#endregion
1181
- //#region ../node_modules/.bun/better-auth@1.7.2+a913405242b7eb5a/node_modules/better-auth/dist/utils/is-atom.mjs
1181
+ //#region ../node_modules/.bun/better-auth@1.7.2+93880f1bde597d38/node_modules/better-auth/dist/utils/is-atom.mjs
1182
1182
  function it(e) {
1183
1183
  return typeof e == "object" && !!e && "get" in e && typeof e.get == "function" && "lc" in e && typeof e.lc == "number";
1184
1184
  }
@@ -1195,7 +1195,7 @@ function lt(e) {
1195
1195
  return ct(e).map((e) => e.toLowerCase()).join("-");
1196
1196
  }
1197
1197
  //#endregion
1198
- //#region ../node_modules/.bun/better-auth@1.7.2+a913405242b7eb5a/node_modules/better-auth/dist/client/proxy.mjs
1198
+ //#region ../node_modules/.bun/better-auth@1.7.2+93880f1bde597d38/node_modules/better-auth/dist/client/proxy.mjs
1199
1199
  function ut(e, t, n) {
1200
1200
  let r = t[e], { fetchOptions: i, query: a, ...o } = n || {};
1201
1201
  return r || (i?.method ? i.method : o && Object.keys(o).length > 0 ? "POST" : "GET");
@@ -1249,7 +1249,7 @@ function dt(e, t, n, r, i) {
1249
1249
  return a();
1250
1250
  }
1251
1251
  //#endregion
1252
- //#region ../node_modules/.bun/better-auth@1.7.2+a913405242b7eb5a/node_modules/better-auth/dist/client/vanilla.mjs
1252
+ //#region ../node_modules/.bun/better-auth@1.7.2+93880f1bde597d38/node_modules/better-auth/dist/client/vanilla.mjs
1253
1253
  function ft(e) {
1254
1254
  let { pluginPathMethods: t, pluginsActions: n, pluginsAtoms: r, hydrateSession: i, $fetch: a, atomListeners: o, $store: s } = rt(e), c = {};
1255
1255
  for (let [e, t] of Object.entries(r)) c[`use${at(e)}`] = t;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../CategoryDialog-D_xFSWGh.js";
1
+ import { t as e } from "../CategoryDialog-B6zqtwE6.js";
2
2
  export { e as CategoryDialog };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../CreateSnapshotDialog-BHODxZWK.js";
1
+ import { t as e } from "../CreateSnapshotDialog-BPYjO1qN.js";
2
2
  export { e as CreateSnapshotDialog };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../DeleteDialog-DaJOO6SB.js";
1
+ import { t as e } from "../DeleteDialog-D1jox8h1.js";
2
2
  export { e as DeleteDialog };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../HiAiEditor-DtUGbQg6.js";
1
+ import { t as e } from "../../HiAiEditor-Dxqt8BUN.js";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as t from "svelte/internal/client";
4
4
  //#region src/lib/components/editor/CompactEditor.svelte
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../HiAiEditor-DtUGbQg6.js";
1
+ import { t as e } from "../../HiAiEditor-Dxqt8BUN.js";
2
2
  export { e as DocsmintDocumentEditorHost };
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "../../editorExtensions-B-mKiWqq.js";
1
+ import { n as e, r as t, t as n } from "../../editorExtensions-Cu__YKW7.js";
2
2
  export { n as TextAlignHeading, e as TextAlignParagraph, t as editorExtensions };
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "../../check-sdTlLwi9.js";
2
2
  import { t } from "../../copy-4H99lwAQ.js";
3
3
  import { n, t as r } from "../../editor_markdown_placeholder-BIWDUF1E.js";
4
- import { t as i } from "../../markdown-CMij27Gg.js";
4
+ import { t as i } from "../../markdown-Co8ZAKf4.js";
5
5
  import "svelte/internal/disclose-version";
6
6
  import * as a from "svelte/internal/client";
7
7
  //#region src/lib/components/editor/MarkdownToggle.svelte
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../markdown-CMij27Gg.js";
1
+ import { t as e } from "../../markdown-Co8ZAKf4.js";
2
2
  export { e as markdownToJson };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../FolderNode-C_91NlEO.js";
1
+ import { t as e } from "../FolderNode-BG4l6I5C.js";
2
2
  export { e as FolderNode };
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "../chevron-down-DlBnIE7Y.js";
2
2
  import { t } from "../FolderTreeSelector-DqO-f0nt.js";
3
- import { n } from "../dist-Cg1BpNS7.js";
3
+ import { t as n } from "../loader-circle-DnyUzAmN.js";
4
4
  import { t as r } from "../action_cancel-Cuxsznzz.js";
5
5
  import { t as i } from "../action_save-BRN2Z_GP.js";
6
6
  import { a } from "../route-context-DYQlUfzL.js";
7
- import { a as o, i as s, n as c, o as l, r as u, s as d, t as f } from "../dialog-tHAH3-9M.js";
7
+ import { a as o, i as s, n as c, o as l, r as u, s as d, t as f } from "../dialog-DC97Hnxo.js";
8
8
  import { t as p } from "../label-B0syEfns.js";
9
9
  import { i as m } from "../categories-Bjcc41We.js";
10
10
  import { a as h, i as g, n as _, r as v, t as y } from "../select-value-D9VqY5n5.js";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../SettingsDialog-BlIZqk2-.js";
1
+ import { t as e } from "../SettingsDialog-DnrPV8dM.js";
2
2
  export { e as SettingsDialog };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../Sidebar-BVGm5BRR.js";
1
+ import { t as e } from "../Sidebar-BI_ccYTl.js";
2
2
  export { e as Sidebar };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../TagCreateDialog-BlGz4O9Z.js";
1
+ import { t as e } from "../TagCreateDialog-C5j3H49u.js";
2
2
  export { e as TagCreateDialog };
@@ -2,7 +2,7 @@ import { t as e } from "../Icon-y7xxAIC6.js";
2
2
  import { t } from "../camera-BI-BtnIm.js";
3
3
  import { t as n } from "../circle-check-hWC-HeKu.js";
4
4
  import { t as r } from "../clock-C4FHq-9q.js";
5
- import { n as i } from "../dist-Cg1BpNS7.js";
5
+ import { t as i } from "../loader-circle-DnyUzAmN.js";
6
6
  import { t as a } from "../rotate-ccw-DtZDfSK3.js";
7
7
  import { t as o } from "../action_cancel-Cuxsznzz.js";
8
8
  import { t as s } from "../action_loading-BLCGJVA9.js";
@@ -12,8 +12,8 @@ import { a as u, c as d, d as f, f as p, i as m, l as h, n as g, o as _, r as v,
12
12
  import { t as x } from "../version_create_snapshot-3bu-0qzH.js";
13
13
  import { a as S } from "../route-context-DYQlUfzL.js";
14
14
  import { n as C, t as w } from "../client-GbtOH90i.js";
15
- import { t as T } from "../ConfirmDialog-Cfq3D2Di.js";
16
- import { t as E } from "../CreateSnapshotDialog-BHODxZWK.js";
15
+ import { t as T } from "../ConfirmDialog-Dk7wwcj9.js";
16
+ import { t as E } from "../CreateSnapshotDialog-BPYjO1qN.js";
17
17
  import "svelte/internal/disclose-version";
18
18
  import * as D from "svelte/internal/client";
19
19
  import "svelte/internal/flags/legacy";