@bgx4k3p/huly-mcp-server 2.2.4 → 2.2.5
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 +186 -56
- package/node_modules/@hcengineering/account-client/lib/__tests__/utils.test.js +249 -0
- package/node_modules/@hcengineering/account-client/lib/__tests__/utils.test.js.map +7 -0
- package/node_modules/@hcengineering/account-client/lib/client.js +88 -3
- package/node_modules/@hcengineering/account-client/lib/client.js.map +2 -2
- package/node_modules/@hcengineering/account-client/lib/types.js.map +2 -2
- package/node_modules/@hcengineering/account-client/lib/utils.js +50 -0
- package/node_modules/@hcengineering/account-client/lib/utils.js.map +2 -2
- package/node_modules/@hcengineering/account-client/package.json +22 -19
- package/node_modules/@hcengineering/account-client/src/__tests__/utils.test.ts +304 -0
- package/node_modules/@hcengineering/account-client/src/client.ts +127 -6
- package/node_modules/@hcengineering/account-client/src/types.ts +7 -0
- package/node_modules/@hcengineering/account-client/src/utils.ts +65 -1
- package/node_modules/@hcengineering/analytics/lib/index.js +1 -1
- package/node_modules/@hcengineering/analytics/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/analytics/package.json +19 -16
- package/node_modules/@hcengineering/analytics/src/index.ts +2 -1
- package/node_modules/@hcengineering/api-client/lib/client.js +9 -4
- package/node_modules/@hcengineering/api-client/lib/client.js.map +2 -2
- package/node_modules/@hcengineering/api-client/lib/rest/adapter.js +64 -0
- package/node_modules/@hcengineering/api-client/lib/rest/adapter.js.map +7 -0
- package/node_modules/@hcengineering/api-client/lib/rest/index.js +2 -0
- package/node_modules/@hcengineering/api-client/lib/rest/index.js.map +2 -2
- package/node_modules/@hcengineering/api-client/lib/socket/node.js +5 -1
- package/node_modules/@hcengineering/api-client/lib/socket/node.js.map +2 -2
- package/node_modules/@hcengineering/api-client/package.json +28 -25
- package/node_modules/@hcengineering/api-client/src/client.ts +10 -1
- package/node_modules/@hcengineering/api-client/src/rest/adapter.ts +96 -0
- package/node_modules/@hcengineering/api-client/src/rest/index.ts +1 -0
- package/node_modules/@hcengineering/api-client/src/socket/node.ts +6 -1
- package/node_modules/@hcengineering/chunter/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/chunter/package.json +13 -10
- package/node_modules/@hcengineering/client/package.json +21 -18
- package/node_modules/@hcengineering/client-resources/package.json +24 -21
- package/node_modules/@hcengineering/collaborator-client/package.json +21 -18
- package/node_modules/@hcengineering/contact/lib/__tests__/workspaceMemberStatusUtils.test.js +38 -0
- package/node_modules/@hcengineering/contact/lib/__tests__/workspaceMemberStatusUtils.test.js.map +7 -0
- package/node_modules/@hcengineering/contact/lib/index.js +13 -4
- package/node_modules/@hcengineering/contact/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/contact/lib/types.js.map +1 -1
- package/node_modules/@hcengineering/contact/lib/utils.js +132 -108
- package/node_modules/@hcengineering/contact/lib/utils.js.map +3 -3
- package/node_modules/@hcengineering/contact/lib/workspaceMemberStatusUtils.js +79 -0
- package/node_modules/@hcengineering/contact/lib/workspaceMemberStatusUtils.js.map +7 -0
- package/node_modules/@hcengineering/contact/package.json +12 -9
- package/node_modules/@hcengineering/core/CHANGELOG.md +9 -1
- package/node_modules/@hcengineering/core/lang/cs.json +6 -1
- package/node_modules/@hcengineering/core/lang/de.json +6 -1
- package/node_modules/@hcengineering/core/lang/en.json +6 -1
- package/node_modules/@hcengineering/core/lang/es.json +6 -1
- package/node_modules/@hcengineering/core/lang/fr.json +6 -1
- package/node_modules/@hcengineering/core/lang/it.json +6 -1
- package/node_modules/@hcengineering/core/lang/ja.json +6 -1
- package/node_modules/@hcengineering/core/lang/pt-br.json +70 -0
- package/node_modules/@hcengineering/core/lang/pt.json +6 -1
- package/node_modules/@hcengineering/core/lang/ru.json +6 -1
- package/node_modules/@hcengineering/core/lang/tr.json +6 -1
- package/node_modules/@hcengineering/core/lang/zh.json +6 -1
- package/node_modules/@hcengineering/core/lib/__tests__/autoJoinRoles.test.js +13 -0
- package/node_modules/@hcengineering/core/lib/__tests__/autoJoinRoles.test.js.map +7 -0
- package/node_modules/@hcengineering/core/lib/__tests__/memdb.test.js +133 -0
- package/node_modules/@hcengineering/core/lib/__tests__/memdb.test.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/__tests__/minmodel.js +25 -0
- package/node_modules/@hcengineering/core/lib/__tests__/minmodel.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/__tests__/query.test.js +43 -0
- package/node_modules/@hcengineering/core/lib/__tests__/query.test.js.map +7 -0
- package/node_modules/@hcengineering/core/lib/autoJoinRoles.js +36 -0
- package/node_modules/@hcengineering/core/lib/autoJoinRoles.js.map +7 -0
- package/node_modules/@hcengineering/core/lib/classes.js +5 -0
- package/node_modules/@hcengineering/core/lib/classes.js.map +3 -3
- package/node_modules/@hcengineering/core/lib/clone.js +13 -2
- package/node_modules/@hcengineering/core/lib/clone.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/component.js +14 -3
- package/node_modules/@hcengineering/core/lib/component.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/index.js +2 -0
- package/node_modules/@hcengineering/core/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/memdb.js +6 -2
- package/node_modules/@hcengineering/core/lib/memdb.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/operations.js +11 -0
- package/node_modules/@hcengineering/core/lib/operations.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/predicate.js +3 -0
- package/node_modules/@hcengineering/core/lib/predicate.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/storage.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/tx.js +3 -1
- package/node_modules/@hcengineering/core/lib/tx.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/utils.js +1 -1
- package/node_modules/@hcengineering/core/lib/utils.js.map +2 -2
- package/node_modules/@hcengineering/core/lib/versioning.js +17 -0
- package/node_modules/@hcengineering/core/lib/versioning.js.map +7 -0
- package/node_modules/@hcengineering/core/package.json +22 -19
- package/node_modules/@hcengineering/core/src/__tests__/autoJoinRoles.test.ts +27 -0
- package/node_modules/@hcengineering/core/src/__tests__/memdb.test.ts +150 -1
- package/node_modules/@hcengineering/core/src/__tests__/minmodel.ts +29 -1
- package/node_modules/@hcengineering/core/src/__tests__/query.test.ts +66 -0
- package/node_modules/@hcengineering/core/src/autoJoinRoles.ts +33 -0
- package/node_modules/@hcengineering/core/src/classes.ts +61 -1
- package/node_modules/@hcengineering/core/src/clone.ts +13 -2
- package/node_modules/@hcengineering/core/src/component.ts +25 -9
- package/node_modules/@hcengineering/core/src/index.ts +2 -0
- package/node_modules/@hcengineering/core/src/memdb.ts +7 -3
- package/node_modules/@hcengineering/core/src/operations.ts +11 -0
- package/node_modules/@hcengineering/core/src/predicate.ts +3 -0
- package/node_modules/@hcengineering/core/src/storage.ts +6 -3
- package/node_modules/@hcengineering/core/src/tx.ts +4 -1
- package/node_modules/@hcengineering/core/src/utils.ts +1 -1
- package/node_modules/@hcengineering/core/src/versioning.ts +13 -0
- package/node_modules/@hcengineering/measurements/lib/__tests__/performance.test.js +3 -3
- package/node_modules/@hcengineering/measurements/lib/__tests__/performance.test.js.map +2 -2
- package/node_modules/@hcengineering/measurements/package.json +17 -14
- package/node_modules/@hcengineering/measurements/src/__tests__/performance.test.ts +3 -3
- package/node_modules/@hcengineering/platform/lang/pt-br.json +31 -0
- package/node_modules/@hcengineering/platform/lib/__tests__/i18n.test.js +100 -0
- package/node_modules/@hcengineering/platform/lib/__tests__/i18n.test.js.map +2 -2
- package/node_modules/@hcengineering/platform/lib/__tests__/status.test.js +78 -0
- package/node_modules/@hcengineering/platform/lib/__tests__/status.test.js.map +7 -0
- package/node_modules/@hcengineering/platform/lib/i18n.js +78 -69
- package/node_modules/@hcengineering/platform/lib/i18n.js.map +3 -3
- package/node_modules/@hcengineering/platform/lib/status.js +25 -0
- package/node_modules/@hcengineering/platform/lib/status.js.map +2 -2
- package/node_modules/@hcengineering/platform/package.json +18 -15
- package/node_modules/@hcengineering/platform/src/__tests__/i18n.test.ts +114 -2
- package/node_modules/@hcengineering/platform/src/__tests__/status.test.ts +77 -0
- package/node_modules/@hcengineering/platform/src/i18n.ts +99 -71
- package/node_modules/@hcengineering/platform/src/status.ts +30 -0
- package/node_modules/@hcengineering/rank/package.json +19 -16
- package/node_modules/@hcengineering/rpc/package.json +21 -18
- package/node_modules/@hcengineering/tags/package.json +12 -9
- package/node_modules/@hcengineering/task/package.json +14 -11
- package/node_modules/@hcengineering/text/lib/markup/__tests__/utils.test.js +25 -0
- package/node_modules/@hcengineering/text/lib/markup/__tests__/utils.test.js.map +2 -2
- package/node_modules/@hcengineering/text/lib/tiptapExtensions.js +6 -0
- package/node_modules/@hcengineering/text/lib/tiptapExtensions.js.map +2 -2
- package/node_modules/@hcengineering/text/package.json +23 -18
- package/node_modules/@hcengineering/text/src/markup/__tests__/utils.test.ts +27 -0
- package/node_modules/@hcengineering/text/src/tiptapExtensions.ts +3 -0
- package/node_modules/@hcengineering/text-core/lib/markup/model.js +1 -0
- package/node_modules/@hcengineering/text-core/lib/markup/model.js.map +2 -2
- package/node_modules/@hcengineering/text-core/package.json +20 -17
- package/node_modules/@hcengineering/text-core/src/markup/model.ts +2 -1
- package/node_modules/@hcengineering/text-html/package.json +19 -16
- package/node_modules/@hcengineering/text-markdown/lib/serializer.js +14 -0
- package/node_modules/@hcengineering/text-markdown/lib/serializer.js.map +2 -2
- package/node_modules/@hcengineering/text-markdown/package.json +20 -17
- package/node_modules/@hcengineering/text-markdown/src/serializer.ts +14 -0
- package/node_modules/@hcengineering/tracker/lib/index.js +1 -0
- package/node_modules/@hcengineering/tracker/lib/index.js.map +2 -2
- package/node_modules/@hcengineering/tracker/package.json +16 -13
- package/node_modules/@tiptap/core/dist/commands/focus.d.ts.map +1 -1
- package/node_modules/@tiptap/core/dist/index.cjs +19 -2
- package/node_modules/@tiptap/core/dist/index.cjs.map +1 -1
- package/node_modules/@tiptap/core/dist/index.js +19 -3
- package/node_modules/@tiptap/core/dist/index.js.map +1 -1
- package/node_modules/@tiptap/core/dist/index.umd.js +19 -2
- package/node_modules/@tiptap/core/dist/index.umd.js.map +1 -1
- package/node_modules/@tiptap/core/dist/utilities/index.d.ts +1 -0
- package/node_modules/@tiptap/core/dist/utilities/index.d.ts.map +1 -1
- package/node_modules/@tiptap/core/dist/utilities/isSafari.d.ts +10 -0
- package/node_modules/@tiptap/core/dist/utilities/isSafari.d.ts.map +1 -0
- package/node_modules/@tiptap/core/package.json +2 -2
- package/node_modules/@tiptap/core/src/commands/focus.ts +7 -2
- package/node_modules/@tiptap/core/src/utilities/index.ts +1 -0
- package/node_modules/@tiptap/core/src/utilities/isSafari.ts +11 -0
- package/node_modules/@tiptap/extension-blockquote/package.json +2 -2
- package/node_modules/@tiptap/extension-bold/package.json +2 -2
- package/node_modules/@tiptap/extension-bullet-list/package.json +2 -2
- package/node_modules/@tiptap/extension-code/package.json +2 -2
- package/node_modules/@tiptap/extension-code-block/package.json +3 -3
- package/node_modules/@tiptap/extension-document/package.json +2 -2
- package/node_modules/@tiptap/extension-dropcursor/package.json +3 -3
- package/node_modules/@tiptap/extension-gapcursor/package.json +3 -3
- package/node_modules/@tiptap/extension-hard-break/package.json +2 -2
- package/node_modules/@tiptap/extension-heading/package.json +2 -2
- package/node_modules/@tiptap/extension-highlight/package.json +2 -2
- package/node_modules/@tiptap/extension-history/package.json +3 -3
- package/node_modules/@tiptap/extension-horizontal-rule/package.json +3 -3
- package/node_modules/@tiptap/extension-italic/package.json +2 -2
- package/node_modules/@tiptap/extension-link/package.json +3 -3
- package/node_modules/@tiptap/extension-list-item/package.json +2 -2
- package/node_modules/@tiptap/extension-mention/package.json +4 -4
- package/node_modules/@tiptap/extension-ordered-list/package.json +2 -2
- package/node_modules/@tiptap/extension-paragraph/package.json +2 -2
- package/node_modules/@tiptap/extension-strike/package.json +2 -2
- package/node_modules/@tiptap/extension-subscript/README.md +14 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.cjs +61 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.cjs.map +1 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.d.ts +4 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.d.ts.map +1 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.js +56 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.js.map +1 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.umd.js +65 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.umd.js.map +1 -0
- package/node_modules/@tiptap/extension-subscript/dist/subscript.d.ts +36 -0
- package/node_modules/@tiptap/extension-subscript/dist/subscript.d.ts.map +1 -0
- package/node_modules/@tiptap/extension-subscript/package.json +49 -0
- package/node_modules/@tiptap/extension-subscript/src/index.ts +5 -0
- package/node_modules/@tiptap/extension-subscript/src/subscript.ts +91 -0
- package/node_modules/@tiptap/extension-superscript/README.md +14 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.cjs +61 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.cjs.map +1 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.d.ts +4 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.d.ts.map +1 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.js +56 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.js.map +1 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.umd.js +65 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.umd.js.map +1 -0
- package/node_modules/@tiptap/extension-superscript/dist/superscript.d.ts +36 -0
- package/node_modules/@tiptap/extension-superscript/dist/superscript.d.ts.map +1 -0
- package/node_modules/@tiptap/extension-superscript/package.json +49 -0
- package/node_modules/@tiptap/extension-superscript/src/index.ts +5 -0
- package/node_modules/@tiptap/extension-superscript/src/superscript.ts +91 -0
- package/node_modules/@tiptap/extension-table/package.json +3 -3
- package/node_modules/@tiptap/extension-table-cell/package.json +2 -2
- package/node_modules/@tiptap/extension-table-header/package.json +2 -2
- package/node_modules/@tiptap/extension-table-row/package.json +2 -2
- package/node_modules/@tiptap/extension-task-item/package.json +3 -3
- package/node_modules/@tiptap/extension-task-list/package.json +2 -2
- package/node_modules/@tiptap/extension-text/package.json +2 -2
- package/node_modules/@tiptap/extension-typography/package.json +2 -2
- package/node_modules/@tiptap/extension-underline/package.json +2 -2
- package/node_modules/@tiptap/html/package.json +3 -3
- package/node_modules/@tiptap/pm/package.json +1 -1
- package/node_modules/@tiptap/starter-kit/node_modules/@tiptap/extension-text-style/package.json +2 -2
- package/node_modules/@tiptap/starter-kit/package.json +22 -22
- package/node_modules/@tiptap/suggestion/package.json +3 -3
- package/node_modules/linkify-it/build/index.cjs.js +99 -94
- package/node_modules/linkify-it/index.mjs +99 -94
- package/node_modules/linkify-it/package.json +11 -1
- package/node_modules/linkifyjs/README.md +4 -2
- package/node_modules/linkifyjs/dist/linkify.cjs +8 -11
- package/node_modules/linkifyjs/dist/linkify.d.cts +14 -14
- package/node_modules/linkifyjs/dist/linkify.d.mts +14 -14
- package/node_modules/linkifyjs/dist/linkify.js +8 -11
- package/node_modules/linkifyjs/dist/linkify.min.js +1 -1
- package/node_modules/linkifyjs/dist/linkify.mjs +8 -11
- package/node_modules/linkifyjs/package.json +1 -1
- package/node_modules/markdown-it/README.md +13 -17
- package/node_modules/markdown-it/dist/index.cjs.js +111 -31
- package/node_modules/markdown-it/dist/markdown-it.js +117 -31
- package/node_modules/markdown-it/dist/markdown-it.min.js +2 -2
- package/node_modules/markdown-it/lib/common/utils.mjs +30 -1
- package/node_modules/markdown-it/lib/index.mjs +1 -1
- package/node_modules/markdown-it/lib/rules_block/heading.mjs +2 -2
- package/node_modules/markdown-it/lib/rules_block/html_block.mjs +12 -1
- package/node_modules/markdown-it/lib/rules_block/lheading.mjs +4 -1
- package/node_modules/markdown-it/lib/rules_block/paragraph.mjs +3 -1
- package/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +37 -21
- package/node_modules/markdown-it/lib/rules_inline/entity.mjs +2 -2
- package/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +37 -6
- package/node_modules/markdown-it/package.json +14 -3
- package/node_modules/msgpackr/README.md +1 -3
- package/node_modules/msgpackr/benchmark.md +26 -16
- package/node_modules/msgpackr/dist/index-no-eval.cjs +35 -16
- package/node_modules/msgpackr/dist/index-no-eval.cjs.map +1 -1
- package/node_modules/msgpackr/dist/index-no-eval.min.js +1 -1
- package/node_modules/msgpackr/dist/index-no-eval.min.js.map +1 -1
- package/node_modules/msgpackr/dist/index.js +35 -16
- package/node_modules/msgpackr/dist/index.js.map +1 -1
- package/node_modules/msgpackr/dist/index.min.js +1 -1
- package/node_modules/msgpackr/dist/index.min.js.map +1 -1
- package/node_modules/msgpackr/dist/node.cjs +50 -26
- package/node_modules/msgpackr/dist/node.cjs.map +1 -1
- package/node_modules/msgpackr/dist/test.js +44 -16
- package/node_modules/msgpackr/dist/test.js.map +1 -1
- package/node_modules/msgpackr/dist/unpack-no-eval.cjs +35 -16
- package/node_modules/msgpackr/dist/unpack-no-eval.cjs.map +1 -1
- package/node_modules/msgpackr/index.d.cts +2 -0
- package/node_modules/msgpackr/index.d.ts +2 -0
- package/node_modules/msgpackr/package.json +1 -1
- package/node_modules/msgpackr/stream.js +15 -10
- package/node_modules/msgpackr/unpack.js +35 -16
- package/node_modules/prosemirror-changeset/CHANGELOG.md +12 -0
- package/node_modules/prosemirror-changeset/README.md +31 -2
- package/node_modules/prosemirror-changeset/dist/index.cjs +17 -2
- package/node_modules/prosemirror-changeset/dist/index.d.cts +32 -2
- package/node_modules/prosemirror-changeset/dist/index.d.ts +32 -2
- package/node_modules/prosemirror-changeset/dist/index.js +18 -3
- package/node_modules/prosemirror-changeset/package.json +2 -2
- package/node_modules/prosemirror-changeset/src/README.md +4 -2
- package/node_modules/prosemirror-changeset/src/change.ts +18 -0
- package/node_modules/prosemirror-changeset/src/changeset.ts +10 -4
- package/node_modules/prosemirror-changeset/src/simplify.ts +1 -1
- package/node_modules/prosemirror-changeset/test/test-simplify.ts +3 -0
- package/node_modules/prosemirror-gapcursor/CHANGELOG.md +6 -0
- package/node_modules/prosemirror-gapcursor/dist/index.cjs +1 -1
- package/node_modules/prosemirror-gapcursor/dist/index.js +1 -1
- package/node_modules/prosemirror-gapcursor/package.json +3 -2
- package/node_modules/prosemirror-gapcursor/src/gapcursor.ts +1 -1
- package/node_modules/prosemirror-markdown/CHANGELOG.md +12 -0
- package/node_modules/prosemirror-markdown/dist/index.cjs +11 -1
- package/node_modules/prosemirror-markdown/dist/index.js +14 -2
- package/node_modules/prosemirror-markdown/package.json +1 -1
- package/node_modules/prosemirror-markdown/src/to_markdown.ts +12 -3
- package/node_modules/prosemirror-menu/CHANGELOG.md +18 -0
- package/node_modules/prosemirror-menu/CONTRIBUTING.md +22 -18
- package/node_modules/prosemirror-menu/README.md +69 -29
- package/node_modules/prosemirror-menu/dist/index.cjs +232 -48
- package/node_modules/prosemirror-menu/dist/index.d.cts +29 -14
- package/node_modules/prosemirror-menu/dist/index.d.ts +29 -14
- package/node_modules/prosemirror-menu/dist/index.js +229 -36
- package/node_modules/prosemirror-menu/package.json +2 -2
- package/node_modules/prosemirror-menu/src/README.md +30 -1
- package/node_modules/prosemirror-menu/src/icons.ts +3 -2
- package/node_modules/prosemirror-menu/src/menu.ts +193 -40
- package/node_modules/prosemirror-menu/src/menubar.ts +50 -5
- package/node_modules/prosemirror-menu/style/menu.css +28 -7
- package/node_modules/prosemirror-model/CHANGELOG.md +20 -0
- package/node_modules/prosemirror-model/CONTRIBUTING.md +19 -19
- package/node_modules/prosemirror-model/README.md +3 -3
- package/node_modules/prosemirror-model/dist/index.cjs +13 -10
- package/node_modules/prosemirror-model/dist/index.d.cts +25 -21
- package/node_modules/prosemirror-model/dist/index.d.ts +25 -21
- package/node_modules/prosemirror-model/dist/index.js +19 -23
- package/node_modules/prosemirror-model/package.json +2 -2
- package/node_modules/prosemirror-model/src/fragment.ts +1 -1
- package/node_modules/prosemirror-model/src/from_dom.ts +4 -1
- package/node_modules/prosemirror-model/src/node.ts +5 -4
- package/node_modules/prosemirror-model/src/replace.ts +6 -15
- package/node_modules/prosemirror-model/src/schema.ts +1 -1
- package/node_modules/prosemirror-model/src/to_dom.ts +24 -20
- package/node_modules/prosemirror-transform/CHANGELOG.md +16 -0
- package/node_modules/prosemirror-transform/dist/index.cjs +38 -4
- package/node_modules/prosemirror-transform/dist/index.d.cts +19 -0
- package/node_modules/prosemirror-transform/dist/index.d.ts +19 -0
- package/node_modules/prosemirror-transform/dist/index.js +52 -1
- package/node_modules/prosemirror-transform/package.json +1 -1
- package/node_modules/prosemirror-transform/src/replace.ts +16 -0
- package/node_modules/prosemirror-transform/src/replace_step.ts +10 -1
- package/node_modules/prosemirror-transform/src/transform.ts +21 -2
- package/node_modules/prosemirror-view/CHANGELOG.md +34 -2
- package/node_modules/prosemirror-view/CONTRIBUTING.md +19 -19
- package/node_modules/prosemirror-view/README.md +3 -3
- package/node_modules/prosemirror-view/dist/index.cjs +96 -40
- package/node_modules/prosemirror-view/dist/index.d.cts +2 -2
- package/node_modules/prosemirror-view/dist/index.d.ts +2 -2
- package/node_modules/prosemirror-view/dist/index.js +90 -39
- package/node_modules/prosemirror-view/package.json +2 -2
- package/node_modules/prosemirror-view/src/domchange.ts +1 -1
- package/node_modules/prosemirror-view/src/domobserver.ts +59 -16
- package/node_modules/prosemirror-view/src/index.ts +4 -4
- package/node_modules/prosemirror-view/src/input.ts +9 -6
- package/node_modules/prosemirror-view/src/viewdesc.ts +26 -22
- package/node_modules/prosemirror-view/style/prosemirror.css +1 -1
- package/package.json +5 -4
- package/src/client.mjs +2 -2
- package/src/config.mjs +1 -0
- package/src/helpers.mjs +2 -2
- package/src/index.mjs +31 -1
- package/src/initCodex.mjs +281 -0
- package/src/mcp.mjs +1 -1
- package/src/mcpShared.mjs +95 -5
- package/node_modules/@hcengineering/account-client/types/client.d.ts +0 -140
- package/node_modules/@hcengineering/account-client/types/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/account-client/types/index.d.ts +0 -4
- package/node_modules/@hcengineering/account-client/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/account-client/types/types.d.ts +0 -177
- package/node_modules/@hcengineering/account-client/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/account-client/types/utils.d.ts +0 -5
- package/node_modules/@hcengineering/account-client/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/analytics/types/index.d.ts +0 -25
- package/node_modules/@hcengineering/analytics/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/config.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/config.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/markup-client.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/markup-client.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/markup-types.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/markup-types.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/rest-utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/rest-utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/api-client/types/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/client.d.ts +0 -6
- package/node_modules/@hcengineering/api-client/types/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/config.d.ts +0 -8
- package/node_modules/@hcengineering/api-client/types/config.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/index.d.ts +0 -9
- package/node_modules/@hcengineering/api-client/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/markup/client.d.ts +0 -5
- package/node_modules/@hcengineering/api-client/types/markup/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/markup/index.d.ts +0 -3
- package/node_modules/@hcengineering/api-client/types/markup/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/markup/types.d.ts +0 -41
- package/node_modules/@hcengineering/api-client/types/markup/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/index.d.ts +0 -4
- package/node_modules/@hcengineering/api-client/types/rest/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/rest.d.ts +0 -39
- package/node_modules/@hcengineering/api-client/types/rest/rest.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/tx.d.ts +0 -3
- package/node_modules/@hcengineering/api-client/types/rest/tx.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/types.d.ts +0 -16
- package/node_modules/@hcengineering/api-client/types/rest/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/rest/utils.d.ts +0 -3
- package/node_modules/@hcengineering/api-client/types/rest/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/socket/browser.d.ts +0 -4
- package/node_modules/@hcengineering/api-client/types/socket/browser.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/socket/index.d.ts +0 -3
- package/node_modules/@hcengineering/api-client/types/socket/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/socket/node.d.ts +0 -4
- package/node_modules/@hcengineering/api-client/types/socket/node.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/storage/client.d.ts +0 -21
- package/node_modules/@hcengineering/api-client/types/storage/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/storage/error.d.ts +0 -10
- package/node_modules/@hcengineering/api-client/types/storage/error.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/storage/index.d.ts +0 -4
- package/node_modules/@hcengineering/api-client/types/storage/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/storage/types.d.ts +0 -10
- package/node_modules/@hcengineering/api-client/types/storage/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/types.d.ts +0 -101
- package/node_modules/@hcengineering/api-client/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/api-client/types/utils.d.ts +0 -12
- package/node_modules/@hcengineering/api-client/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/chunter/types/analytics.d.ts +0 -5
- package/node_modules/@hcengineering/chunter/types/analytics.d.ts.map +0 -1
- package/node_modules/@hcengineering/chunter/types/index.d.ts +0 -211
- package/node_modules/@hcengineering/chunter/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/chunter/types/utils.d.ts +0 -7
- package/node_modules/@hcengineering/chunter/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/client/types/__tests__/client.test.d.ts +0 -2
- package/node_modules/@hcengineering/client/types/__tests__/client.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/client/types/index.d.ts +0 -69
- package/node_modules/@hcengineering/client/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/client-resources/types/__tests__/connection.test.d.ts +0 -2
- package/node_modules/@hcengineering/client-resources/types/__tests__/connection.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/client-resources/types/__tests__/integration.test.d.ts +0 -45
- package/node_modules/@hcengineering/client-resources/types/__tests__/integration.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/client-resources/types/connection.d.ts +0 -7
- package/node_modules/@hcengineering/client-resources/types/connection.d.ts.map +0 -1
- package/node_modules/@hcengineering/client-resources/types/index.d.ts +0 -11
- package/node_modules/@hcengineering/client-resources/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/collaborator-client/types/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/collaborator-client/types/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/collaborator-client/types/client.d.ts +0 -34
- package/node_modules/@hcengineering/collaborator-client/types/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/collaborator-client/types/index.d.ts +0 -3
- package/node_modules/@hcengineering/collaborator-client/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/collaborator-client/types/utils.d.ts +0 -9
- package/node_modules/@hcengineering/collaborator-client/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/__tests__/cache.test.d.ts +0 -2
- package/node_modules/@hcengineering/contact/types/__tests__/cache.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/analytics.d.ts +0 -6
- package/node_modules/@hcengineering/contact/types/analytics.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/avatar.d.ts +0 -12
- package/node_modules/@hcengineering/contact/types/avatar.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/cache.d.ts +0 -49
- package/node_modules/@hcengineering/contact/types/cache.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/index.d.ts +0 -367
- package/node_modules/@hcengineering/contact/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/types.d.ts +0 -25
- package/node_modules/@hcengineering/contact/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/contact/types/utils.d.ts +0 -110
- package/node_modules/@hcengineering/contact/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/client.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/client.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/clone.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/clone.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/collaboration.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/collaboration.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/collaborators.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/collaborators.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/common.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/common.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/connection.d.ts +0 -4
- package/node_modules/@hcengineering/core/types/__tests__/connection.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/contexts.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/contexts.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/hierarchy.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/hierarchy.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/lang.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/lang.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/limiter-edge-cases.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/limiter-edge-cases.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/limits.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/limits.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/memdb.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/memdb.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/minmodel.d.ts +0 -50
- package/node_modules/@hcengineering/core/types/__tests__/minmodel.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/objvalue.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/objvalue.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/operator-bugs.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/operator-bugs.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/operator.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/operator.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/rate-limiter.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/rate-limiter.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/time.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/time.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/core/types/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/backup.d.ts +0 -26
- package/node_modules/@hcengineering/core/types/backup.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/benchmark.d.ts +0 -19
- package/node_modules/@hcengineering/core/types/benchmark.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/classes.d.ts +0 -716
- package/node_modules/@hcengineering/core/types/classes.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/client.d.ts +0 -69
- package/node_modules/@hcengineering/core/types/client.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/clone.d.ts +0 -3
- package/node_modules/@hcengineering/core/types/clone.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/collaboration.d.ts +0 -16
- package/node_modules/@hcengineering/core/types/collaboration.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/collaborators.d.ts +0 -3
- package/node_modules/@hcengineering/core/types/collaborators.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/common.d.ts +0 -4
- package/node_modules/@hcengineering/core/types/common.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/component.d.ts +0 -229
- package/node_modules/@hcengineering/core/types/component.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/hierarchy.d.ts +0 -84
- package/node_modules/@hcengineering/core/types/hierarchy.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/index.d.ts +0 -25
- package/node_modules/@hcengineering/core/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/memdb.d.ts +0 -60
- package/node_modules/@hcengineering/core/types/memdb.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/objvalue.d.ts +0 -10
- package/node_modules/@hcengineering/core/types/objvalue.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/operations.d.ts +0 -87
- package/node_modules/@hcengineering/core/types/operations.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/operator.d.ts +0 -16
- package/node_modules/@hcengineering/core/types/operator.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/predicate.d.ts +0 -6
- package/node_modules/@hcengineering/core/types/predicate.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/proxy.d.ts +0 -21
- package/node_modules/@hcengineering/core/types/proxy.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/query.d.ts +0 -21
- package/node_modules/@hcengineering/core/types/query.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/server.d.ts +0 -82
- package/node_modules/@hcengineering/core/types/server.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/status.d.ts +0 -30
- package/node_modules/@hcengineering/core/types/status.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/storage.d.ts +0 -233
- package/node_modules/@hcengineering/core/types/storage.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/time.d.ts +0 -8
- package/node_modules/@hcengineering/core/types/time.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/tx.d.ts +0 -261
- package/node_modules/@hcengineering/core/types/tx.d.ts.map +0 -1
- package/node_modules/@hcengineering/core/types/utils.d.ts +0 -207
- package/node_modules/@hcengineering/core/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/__tests__/context.test.d.ts +0 -2
- package/node_modules/@hcengineering/measurements/types/__tests__/context.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/__tests__/index.test.d.ts +0 -2
- package/node_modules/@hcengineering/measurements/types/__tests__/index.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/__tests__/metrics.test.d.ts +0 -2
- package/node_modules/@hcengineering/measurements/types/__tests__/metrics.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/__tests__/performance.test.d.ts +0 -2
- package/node_modules/@hcengineering/measurements/types/__tests__/performance.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/context.d.ts +0 -64
- package/node_modules/@hcengineering/measurements/types/context.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/index.d.ts +0 -12
- package/node_modules/@hcengineering/measurements/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/metrics.d.ts +0 -34
- package/node_modules/@hcengineering/measurements/types/metrics.d.ts.map +0 -1
- package/node_modules/@hcengineering/measurements/types/types.d.ts +0 -88
- package/node_modules/@hcengineering/measurements/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/__tests__/i18n.test.d.ts +0 -2
- package/node_modules/@hcengineering/platform/types/__tests__/i18n.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/__tests__/ident.test.d.ts +0 -2
- package/node_modules/@hcengineering/platform/types/__tests__/ident.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/__tests__/plugin.d.ts +0 -7
- package/node_modules/@hcengineering/platform/types/__tests__/plugin.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/__tests__/resource.test.d.ts +0 -2
- package/node_modules/@hcengineering/platform/types/__tests__/resource.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/event.d.ts +0 -39
- package/node_modules/@hcengineering/platform/types/event.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/i18n.d.ts +0 -28
- package/node_modules/@hcengineering/platform/types/i18n.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/ident.d.ts +0 -14
- package/node_modules/@hcengineering/platform/types/ident.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/index.d.ts +0 -19
- package/node_modules/@hcengineering/platform/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/metadata.d.ts +0 -38
- package/node_modules/@hcengineering/platform/types/metadata.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/platform.d.ts +0 -218
- package/node_modules/@hcengineering/platform/types/platform.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/resource.d.ts +0 -49
- package/node_modules/@hcengineering/platform/types/resource.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/status.d.ts +0 -60
- package/node_modules/@hcengineering/platform/types/status.d.ts.map +0 -1
- package/node_modules/@hcengineering/platform/types/testUtils.d.ts +0 -8
- package/node_modules/@hcengineering/platform/types/testUtils.d.ts.map +0 -1
- package/node_modules/@hcengineering/rank/types/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/rank/types/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/rank/types/index.d.ts +0 -3
- package/node_modules/@hcengineering/rank/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/rank/types/types.d.ts +0 -2
- package/node_modules/@hcengineering/rank/types/types.d.ts.map +0 -1
- package/node_modules/@hcengineering/rank/types/utils.d.ts +0 -6
- package/node_modules/@hcengineering/rank/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/rpc/types/index.d.ts +0 -3
- package/node_modules/@hcengineering/rpc/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/rpc/types/rpc.d.ts +0 -96
- package/node_modules/@hcengineering/rpc/types/rpc.d.ts.map +0 -1
- package/node_modules/@hcengineering/rpc/types/sliding.d.ts +0 -11
- package/node_modules/@hcengineering/rpc/types/sliding.d.ts.map +0 -1
- package/node_modules/@hcengineering/rpc/types/test/rateLimit.spec.d.ts +0 -2
- package/node_modules/@hcengineering/rpc/types/test/rateLimit.spec.d.ts.map +0 -1
- package/node_modules/@hcengineering/tags/types/analytics.d.ts +0 -5
- package/node_modules/@hcengineering/tags/types/analytics.d.ts.map +0 -1
- package/node_modules/@hcengineering/tags/types/index.d.ts +0 -105
- package/node_modules/@hcengineering/tags/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/task/types/index.d.ts +0 -227
- package/node_modules/@hcengineering/task/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/task/types/utils.d.ts +0 -61
- package/node_modules/@hcengineering/task/types/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/extensions.d.ts +0 -53
- package/node_modules/@hcengineering/text/types/extensions.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/index.d.ts +0 -13
- package/node_modules/@hcengineering/text/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/kit.d.ts +0 -12
- package/node_modules/@hcengineering/text/types/kit.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/kits/common-kit.d.ts +0 -72
- package/node_modules/@hcengineering/text/types/kits/common-kit.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/kits/server-kit.d.ts +0 -106
- package/node_modules/@hcengineering/text/types/kits/server-kit.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/code.d.ts +0 -8
- package/node_modules/@hcengineering/text/types/marks/code.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/colors.d.ts +0 -21
- package/node_modules/@hcengineering/text/types/marks/colors.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/inlineComment.d.ts +0 -5
- package/node_modules/@hcengineering/text/types/marks/inlineComment.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/noteBase.d.ts +0 -23
- package/node_modules/@hcengineering/text/types/marks/noteBase.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/marks/qmsInlineCommentMark.d.ts +0 -6
- package/node_modules/@hcengineering/text/types/marks/qmsInlineCommentMark.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/markup/__tests__/dsl.test.d.ts +0 -2
- package/node_modules/@hcengineering/text/types/markup/__tests__/dsl.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/markup/__tests__/utils.test.d.ts +0 -5
- package/node_modules/@hcengineering/text/types/markup/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/markup/utils.d.ts +0 -19
- package/node_modules/@hcengineering/text/types/markup/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/codeblock.d.ts +0 -12
- package/node_modules/@hcengineering/text/types/nodes/codeblock.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/comment.d.ts +0 -6
- package/node_modules/@hcengineering/text/types/nodes/comment.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/embed.d.ts +0 -3
- package/node_modules/@hcengineering/text/types/nodes/embed.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/emoji.d.ts +0 -17
- package/node_modules/@hcengineering/text/types/nodes/emoji.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/file.d.ts +0 -13
- package/node_modules/@hcengineering/text/types/nodes/file.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/image.d.ts +0 -52
- package/node_modules/@hcengineering/text/types/nodes/image.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/index.d.ts +0 -11
- package/node_modules/@hcengineering/text/types/nodes/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/markdown.d.ts +0 -3
- package/node_modules/@hcengineering/text/types/nodes/markdown.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/mermaid.d.ts +0 -4
- package/node_modules/@hcengineering/text/types/nodes/mermaid.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/reference.d.ts +0 -18
- package/node_modules/@hcengineering/text/types/nodes/reference.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/todo.d.ts +0 -3
- package/node_modules/@hcengineering/text/types/nodes/todo.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/nodes/utils.d.ts +0 -6
- package/node_modules/@hcengineering/text/types/nodes/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/text/types/tiptapExtensions.d.ts +0 -28
- package/node_modules/@hcengineering/text/types/tiptapExtensions.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/index.d.ts +0 -6
- package/node_modules/@hcengineering/text-core/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/__tests__/traverse.test.d.ts +0 -2
- package/node_modules/@hcengineering/text-core/types/markup/__tests__/traverse.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/__tests__/utils.test.d.ts +0 -2
- package/node_modules/@hcengineering/text-core/types/markup/__tests__/utils.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/dsl.d.ts +0 -25
- package/node_modules/@hcengineering/text-core/types/markup/dsl.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/model.d.ts +0 -74
- package/node_modules/@hcengineering/text-core/types/markup/model.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/reference.d.ts +0 -15
- package/node_modules/@hcengineering/text-core/types/markup/reference.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/traverse.d.ts +0 -6
- package/node_modules/@hcengineering/text-core/types/markup/traverse.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-core/types/markup/utils.d.ts +0 -25
- package/node_modules/@hcengineering/text-core/types/markup/utils.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-html/types/__tests__/html.test.d.ts +0 -2
- package/node_modules/@hcengineering/text-html/types/__tests__/html.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-html/types/index.d.ts +0 -6
- package/node_modules/@hcengineering/text-html/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-html/types/parser.d.ts +0 -10
- package/node_modules/@hcengineering/text-html/types/parser.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-html/types/serializer.d.ts +0 -9
- package/node_modules/@hcengineering/text-html/types/serializer.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/__tests__/markdown.test.d.ts +0 -9
- package/node_modules/@hcengineering/text-markdown/types/__tests__/markdown.test.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/compare.d.ts +0 -10
- package/node_modules/@hcengineering/text-markdown/types/compare.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/index.d.ts +0 -14
- package/node_modules/@hcengineering/text-markdown/types/index.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/marks.d.ts +0 -8
- package/node_modules/@hcengineering/text-markdown/types/marks.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/node.d.ts +0 -4
- package/node_modules/@hcengineering/text-markdown/types/node.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/parser.d.ts +0 -50
- package/node_modules/@hcengineering/text-markdown/types/parser.d.ts.map +0 -1
- package/node_modules/@hcengineering/text-markdown/types/serializer.d.ts +0 -102
- package/node_modules/@hcengineering/text-markdown/types/serializer.d.ts.map +0 -1
- package/node_modules/@hcengineering/tracker/types/analytics.d.ts +0 -24
- package/node_modules/@hcengineering/tracker/types/analytics.d.ts.map +0 -1
- package/node_modules/@hcengineering/tracker/types/index.d.ts +0 -431
- package/node_modules/@hcengineering/tracker/types/index.d.ts.map +0 -1
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helpers for generating project-scoped MCP configuration.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs';
|
|
6
|
+
import { dirname, join, parse, resolve } from 'path';
|
|
7
|
+
|
|
8
|
+
const DEFAULT_SERVER_NAME = 'huly';
|
|
9
|
+
|
|
10
|
+
function usage(command = 'all') {
|
|
11
|
+
const commands = {
|
|
12
|
+
codex: 'huly-mcp-server --init-codex [--workspace <slug>] [--project <identifier>] [--server-name <name>] [--force]',
|
|
13
|
+
claude: 'huly-mcp-server --init-claude --workspace <slug> [--project <identifier>] [--server-name <name>] [--force]',
|
|
14
|
+
all: 'huly-mcp-server --init-all --workspace <slug> [--project <identifier>] [--server-name <name>] [--force]'
|
|
15
|
+
};
|
|
16
|
+
return [
|
|
17
|
+
`Usage: ${commands[command] || commands.all}`,
|
|
18
|
+
'',
|
|
19
|
+
'Secrets are referenced from the user environment.',
|
|
20
|
+
'HULY_WORKSPACE is written literally per project.',
|
|
21
|
+
'HULY_PROJECT is optional and written only when --project is provided or inferable.'
|
|
22
|
+
].join('\n');
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function flagValue(args, names) {
|
|
26
|
+
for (const name of names) {
|
|
27
|
+
const i = args.indexOf(name);
|
|
28
|
+
if (i !== -1 && i + 1 < args.length) return args[i + 1];
|
|
29
|
+
}
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function hasFlag(args, names) {
|
|
34
|
+
return names.some(name => args.includes(name));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function findUp(filename, startDir = process.cwd()) {
|
|
38
|
+
let dir = resolve(startDir);
|
|
39
|
+
while (true) {
|
|
40
|
+
const candidate = join(dir, filename);
|
|
41
|
+
if (existsSync(candidate)) return candidate;
|
|
42
|
+
|
|
43
|
+
const parent = dirname(dir);
|
|
44
|
+
if (parent === dir || parse(dir).root === dir) return null;
|
|
45
|
+
dir = parent;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function isEnvReference(value) {
|
|
50
|
+
return typeof value === 'string' && /^\$\{[A-Z0-9_]+\}$/.test(value);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function readHulyMcpConfig(mcpPath, serverName) {
|
|
54
|
+
const raw = readFileSync(mcpPath, 'utf8');
|
|
55
|
+
const parsed = JSON.parse(raw);
|
|
56
|
+
const servers = parsed.mcpServers || {};
|
|
57
|
+
return servers[serverName] || servers[DEFAULT_SERVER_NAME] || null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function readMcpJson(mcpPath) {
|
|
61
|
+
if (!existsSync(mcpPath)) return { mcpServers: {} };
|
|
62
|
+
const raw = readFileSync(mcpPath, 'utf8');
|
|
63
|
+
return JSON.parse(raw);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function inferLiteralEnv(hulyConfig, key, explicitValue) {
|
|
67
|
+
if (explicitValue) return explicitValue;
|
|
68
|
+
|
|
69
|
+
const value = hulyConfig?.env?.[key];
|
|
70
|
+
if (typeof value === 'string' && value.length > 0 && !isEnvReference(value)) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function inferEnvVars(hulyConfig) {
|
|
78
|
+
const env = hulyConfig?.env || {};
|
|
79
|
+
const vars = [];
|
|
80
|
+
|
|
81
|
+
for (const key of ['HULY_URL', 'HULY_TOKEN', 'HULY_EMAIL', 'HULY_PASSWORD']) {
|
|
82
|
+
const value = env[key];
|
|
83
|
+
if (isEnvReference(value)) {
|
|
84
|
+
const name = value.slice(2, -1);
|
|
85
|
+
if (!vars.includes(name)) vars.push(name);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return vars.length > 0 ? vars : ['HULY_URL', 'HULY_TOKEN'];
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function tomlString(value) {
|
|
93
|
+
return JSON.stringify(value);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function renderCodexConfig({ serverName, envVars, workspace, project }) {
|
|
97
|
+
const args = ['-y', '@bgx4k3p/huly-mcp-server'];
|
|
98
|
+
const lines = [
|
|
99
|
+
`[mcp_servers.${serverName}]`,
|
|
100
|
+
'command = "npx"',
|
|
101
|
+
`args = [${args.map(tomlString).join(', ')}]`,
|
|
102
|
+
`env_vars = [${envVars.map(tomlString).join(', ')}]`,
|
|
103
|
+
'startup_timeout_sec = 20',
|
|
104
|
+
'tool_timeout_sec = 120',
|
|
105
|
+
'',
|
|
106
|
+
`[mcp_servers.${serverName}.env]`,
|
|
107
|
+
`HULY_WORKSPACE = ${tomlString(workspace)}`
|
|
108
|
+
];
|
|
109
|
+
|
|
110
|
+
if (project) {
|
|
111
|
+
lines.push(`HULY_PROJECT = ${tomlString(project)}`);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
lines.push('');
|
|
115
|
+
return lines.join('\n');
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function codexHeaderName(line) {
|
|
119
|
+
const match = line.trim().match(/^\[([^\]]+)\]$/);
|
|
120
|
+
return match?.[1] || null;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function isCodexServerHeader(header, serverName) {
|
|
124
|
+
const prefix = `mcp_servers.${serverName}`;
|
|
125
|
+
return header === prefix || header.startsWith(`${prefix}.`);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function hasCodexServerConfig(content, serverName) {
|
|
129
|
+
return content
|
|
130
|
+
.split(/\r?\n/)
|
|
131
|
+
.some(line => {
|
|
132
|
+
const header = codexHeaderName(line);
|
|
133
|
+
return header && isCodexServerHeader(header, serverName);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function removeCodexServerConfig(content, serverName) {
|
|
138
|
+
const lines = content.split(/\r?\n/);
|
|
139
|
+
const kept = [];
|
|
140
|
+
let skipping = false;
|
|
141
|
+
|
|
142
|
+
for (const line of lines) {
|
|
143
|
+
const header = codexHeaderName(line);
|
|
144
|
+
if (header) {
|
|
145
|
+
skipping = isCodexServerHeader(header, serverName);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
if (!skipping) kept.push(line);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
return kept.join('\n').trimEnd();
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
function mergeCodexConfig(existing, serverName, serverConfig, force) {
|
|
155
|
+
if (!existing.trim()) return serverConfig;
|
|
156
|
+
|
|
157
|
+
const hasServer = hasCodexServerConfig(existing, serverName);
|
|
158
|
+
if (hasServer && !force) {
|
|
159
|
+
throw new Error(`.codex/config.toml already has mcp_servers.${serverName}. Re-run with --force to replace it.`);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
const base = hasServer ? removeCodexServerConfig(existing, serverName) : existing.trimEnd();
|
|
163
|
+
return `${base}\n\n${serverConfig}`;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
function renderClaudeServer({ workspace, project }) {
|
|
167
|
+
const env = {
|
|
168
|
+
HULY_URL: '${HULY_URL}',
|
|
169
|
+
HULY_TOKEN: '${HULY_TOKEN}',
|
|
170
|
+
HULY_WORKSPACE: workspace
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
if (project) {
|
|
174
|
+
env.HULY_PROJECT = project;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
return {
|
|
178
|
+
type: 'stdio',
|
|
179
|
+
command: 'npx',
|
|
180
|
+
args: ['-y', '@bgx4k3p/huly-mcp-server'],
|
|
181
|
+
env
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
function projectDirFromCwd(cwd) {
|
|
186
|
+
const mcpPath = findUp('.mcp.json', cwd);
|
|
187
|
+
return mcpPath ? dirname(mcpPath) : resolve(cwd);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
function existingHulyConfig(projectDir, serverName) {
|
|
191
|
+
const mcpPath = join(projectDir, '.mcp.json');
|
|
192
|
+
return existsSync(mcpPath) ? readHulyMcpConfig(mcpPath, serverName) : null;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
function resolveWorkspaceAndProject(args, projectDir, serverName) {
|
|
196
|
+
const hulyConfig = existingHulyConfig(projectDir, serverName);
|
|
197
|
+
const workspace = inferLiteralEnv(hulyConfig, 'HULY_WORKSPACE', flagValue(args, ['--workspace', '-w']));
|
|
198
|
+
const project = inferLiteralEnv(hulyConfig, 'HULY_PROJECT', flagValue(args, ['--project', '-p']));
|
|
199
|
+
|
|
200
|
+
if (!workspace) {
|
|
201
|
+
throw new Error('Could not determine HULY_WORKSPACE. Re-run with --workspace <slug>.');
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
return { hulyConfig, workspace, project };
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export function initCodexConfig(args = process.argv.slice(2), cwd = process.cwd()) {
|
|
208
|
+
if (hasFlag(args, ['--help', '-h'])) {
|
|
209
|
+
return { ok: true, message: usage('codex') };
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
const serverName = flagValue(args, ['--server-name']) || DEFAULT_SERVER_NAME;
|
|
213
|
+
const force = hasFlag(args, ['--force']);
|
|
214
|
+
const projectDir = projectDirFromCwd(cwd);
|
|
215
|
+
const { hulyConfig, workspace, project } = resolveWorkspaceAndProject(args, projectDir, serverName);
|
|
216
|
+
|
|
217
|
+
const codexDir = join(projectDir, '.codex');
|
|
218
|
+
const configPath = join(codexDir, 'config.toml');
|
|
219
|
+
|
|
220
|
+
mkdirSync(codexDir, { recursive: true });
|
|
221
|
+
const serverConfig = renderCodexConfig({
|
|
222
|
+
serverName,
|
|
223
|
+
envVars: inferEnvVars(hulyConfig),
|
|
224
|
+
workspace,
|
|
225
|
+
project
|
|
226
|
+
});
|
|
227
|
+
const existing = existsSync(configPath) ? readFileSync(configPath, 'utf8') : '';
|
|
228
|
+
const content = mergeCodexConfig(existing, serverName, serverConfig, force);
|
|
229
|
+
writeFileSync(configPath, content, 'utf8');
|
|
230
|
+
|
|
231
|
+
return {
|
|
232
|
+
ok: true,
|
|
233
|
+
path: configPath,
|
|
234
|
+
message: `Wrote ${configPath} for Huly workspace "${workspace}".`
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export function initClaudeConfig(args = process.argv.slice(2), cwd = process.cwd()) {
|
|
239
|
+
if (hasFlag(args, ['--help', '-h'])) {
|
|
240
|
+
return { ok: true, message: usage('claude') };
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
const serverName = flagValue(args, ['--server-name']) || DEFAULT_SERVER_NAME;
|
|
244
|
+
const force = hasFlag(args, ['--force']);
|
|
245
|
+
const projectDir = projectDirFromCwd(cwd);
|
|
246
|
+
const mcpPath = join(projectDir, '.mcp.json');
|
|
247
|
+
const parsed = readMcpJson(mcpPath);
|
|
248
|
+
parsed.mcpServers ||= {};
|
|
249
|
+
|
|
250
|
+
const existing = parsed.mcpServers[serverName];
|
|
251
|
+
const { workspace, project } = resolveWorkspaceAndProject(args, projectDir, serverName);
|
|
252
|
+
const nextServer = renderClaudeServer({ workspace, project });
|
|
253
|
+
|
|
254
|
+
if (existing && !force && JSON.stringify(existing) !== JSON.stringify(nextServer)) {
|
|
255
|
+
throw new Error(`${mcpPath} already has mcpServers.${serverName}. Re-run with --force to replace it.`);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
parsed.mcpServers[serverName] = nextServer;
|
|
259
|
+
writeFileSync(mcpPath, `${JSON.stringify(parsed, null, 2)}\n`, 'utf8');
|
|
260
|
+
|
|
261
|
+
return {
|
|
262
|
+
ok: true,
|
|
263
|
+
path: mcpPath,
|
|
264
|
+
message: `Wrote ${mcpPath} for Huly workspace "${workspace}".`
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export function initAllConfigs(args = process.argv.slice(2), cwd = process.cwd()) {
|
|
269
|
+
if (hasFlag(args, ['--help', '-h'])) {
|
|
270
|
+
return { ok: true, message: usage('all') };
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
const claude = initClaudeConfig(args, cwd);
|
|
274
|
+
const codex = initCodexConfig(args, cwd);
|
|
275
|
+
|
|
276
|
+
return {
|
|
277
|
+
ok: true,
|
|
278
|
+
paths: [claude.path, codex.path],
|
|
279
|
+
message: [claude.message, codex.message].join('\n')
|
|
280
|
+
};
|
|
281
|
+
}
|
package/src/mcp.mjs
CHANGED
package/src/mcpShared.mjs
CHANGED
|
@@ -16,13 +16,39 @@ import {
|
|
|
16
16
|
import { createRequire } from 'module';
|
|
17
17
|
import { pool } from './pool.mjs';
|
|
18
18
|
import { accountTools, workspaceTools } from './dispatch.mjs';
|
|
19
|
-
import { HULY_URL, HULY_CREDS } from './config.mjs';
|
|
19
|
+
import { HULY_URL, HULY_TOKEN, HULY_EMAIL, HULY_PASSWORD, HULY_WORKSPACE, HULY_PROJECT, HULY_CREDS } from './config.mjs';
|
|
20
20
|
|
|
21
21
|
const require = createRequire(import.meta.url);
|
|
22
22
|
const { name: PKG_NAME, version: PKG_VERSION } = require('../package.json');
|
|
23
23
|
|
|
24
24
|
export { PKG_NAME, PKG_VERSION };
|
|
25
25
|
|
|
26
|
+
const PROJECT_DEFAULT_TOOLS = new Set([
|
|
27
|
+
'get_project',
|
|
28
|
+
'list_issues',
|
|
29
|
+
'create_issue',
|
|
30
|
+
'update_project',
|
|
31
|
+
'delete_project',
|
|
32
|
+
'archive_project',
|
|
33
|
+
'batch_create_issues',
|
|
34
|
+
'summarize_project',
|
|
35
|
+
'create_issues_from_template',
|
|
36
|
+
'list_components',
|
|
37
|
+
'get_component',
|
|
38
|
+
'create_component',
|
|
39
|
+
'update_component',
|
|
40
|
+
'delete_component',
|
|
41
|
+
'list_milestones',
|
|
42
|
+
'get_milestone',
|
|
43
|
+
'create_milestone',
|
|
44
|
+
'update_milestone',
|
|
45
|
+
'delete_milestone',
|
|
46
|
+
'list_statuses',
|
|
47
|
+
'get_status',
|
|
48
|
+
'list_task_types',
|
|
49
|
+
'get_task_type'
|
|
50
|
+
]);
|
|
51
|
+
|
|
26
52
|
// Optional workspace property added to every tool
|
|
27
53
|
const workspaceProp = {
|
|
28
54
|
workspace: {
|
|
@@ -47,18 +73,51 @@ const paginationProps = {
|
|
|
47
73
|
|
|
48
74
|
export { workspaceProp };
|
|
49
75
|
|
|
76
|
+
function hulyUrlHost() {
|
|
77
|
+
try {
|
|
78
|
+
return new URL(HULY_URL).host;
|
|
79
|
+
} catch {
|
|
80
|
+
return HULY_URL || null;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function authMode() {
|
|
85
|
+
if (HULY_TOKEN) return 'token';
|
|
86
|
+
if (HULY_EMAIL && HULY_PASSWORD) return 'email_password';
|
|
87
|
+
if (HULY_EMAIL || HULY_PASSWORD) return 'incomplete_email_password';
|
|
88
|
+
return 'none';
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function getHulyContext() {
|
|
92
|
+
return {
|
|
93
|
+
defaultWorkspace: HULY_WORKSPACE || null,
|
|
94
|
+
defaultProject: HULY_PROJECT || null,
|
|
95
|
+
hulyUrlHost: hulyUrlHost(),
|
|
96
|
+
authMode: authMode(),
|
|
97
|
+
packageName: PKG_NAME,
|
|
98
|
+
packageVersion: PKG_VERSION
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
50
102
|
/**
|
|
51
103
|
* Route a tool call to the appropriate HulyClient method.
|
|
52
104
|
*/
|
|
53
|
-
export async function handleToolCall(name, args) {
|
|
105
|
+
export async function handleToolCall(name, args = {}) {
|
|
106
|
+
if (name === 'get_huly_context') {
|
|
107
|
+
return getHulyContext();
|
|
108
|
+
}
|
|
109
|
+
|
|
54
110
|
if (accountTools[name]) {
|
|
55
111
|
return await accountTools[name](args, HULY_URL, HULY_CREDS);
|
|
56
112
|
}
|
|
57
113
|
|
|
58
114
|
if (workspaceTools[name]) {
|
|
59
|
-
const
|
|
115
|
+
const toolArgs = PROJECT_DEFAULT_TOOLS.has(name) && HULY_PROJECT && !args.project
|
|
116
|
+
? { ...args, project: HULY_PROJECT }
|
|
117
|
+
: args;
|
|
118
|
+
const workspace = toolArgs.workspace || process.env.HULY_WORKSPACE;
|
|
60
119
|
const client = await pool.getClient(workspace);
|
|
61
|
-
return await client.withReconnect(() => workspaceTools[name](
|
|
120
|
+
return await client.withReconnect(() => workspaceTools[name](toolArgs, client));
|
|
62
121
|
}
|
|
63
122
|
|
|
64
123
|
throw new Error(`Unknown tool: ${name}`);
|
|
@@ -71,7 +130,7 @@ export async function handleToolCall(name, args) {
|
|
|
71
130
|
*/
|
|
72
131
|
export function createMcpServer(capabilities = {}) {
|
|
73
132
|
// Import TOOLS inline to keep this module self-contained
|
|
74
|
-
const TOOLS = getToolDefinitions();
|
|
133
|
+
const TOOLS = applyDefaultProject(getToolDefinitions());
|
|
75
134
|
|
|
76
135
|
const server = new Server(
|
|
77
136
|
{ name: PKG_NAME, version: PKG_VERSION },
|
|
@@ -185,6 +244,11 @@ export function createMcpServer(capabilities = {}) {
|
|
|
185
244
|
|
|
186
245
|
function getToolDefinitions() {
|
|
187
246
|
return [
|
|
247
|
+
{
|
|
248
|
+
name: 'get_huly_context',
|
|
249
|
+
description: 'Return sanitized runtime context for this Huly MCP server: default workspace, default project, Huly URL host, auth mode, package name, and package version. Does not return secrets.',
|
|
250
|
+
inputSchema: { type: 'object', properties: {}, required: [] }
|
|
251
|
+
},
|
|
188
252
|
// ── Account & Workspace Management ──────────────────────
|
|
189
253
|
{
|
|
190
254
|
name: 'list_workspaces',
|
|
@@ -616,3 +680,29 @@ function getToolDefinitions() {
|
|
|
616
680
|
},
|
|
617
681
|
];
|
|
618
682
|
}
|
|
683
|
+
|
|
684
|
+
function applyDefaultProject(tools) {
|
|
685
|
+
if (!HULY_PROJECT) return tools;
|
|
686
|
+
|
|
687
|
+
return tools.map(tool => {
|
|
688
|
+
if (!PROJECT_DEFAULT_TOOLS.has(tool.name)) return tool;
|
|
689
|
+
|
|
690
|
+
const schema = tool.inputSchema;
|
|
691
|
+
if (!schema?.properties?.project || !schema.required?.includes('project')) return tool;
|
|
692
|
+
|
|
693
|
+
return {
|
|
694
|
+
...tool,
|
|
695
|
+
inputSchema: {
|
|
696
|
+
...schema,
|
|
697
|
+
properties: {
|
|
698
|
+
...schema.properties,
|
|
699
|
+
project: {
|
|
700
|
+
...schema.properties.project,
|
|
701
|
+
description: `${schema.properties.project.description} Optional when HULY_PROJECT is set; defaults to "${HULY_PROJECT}".`
|
|
702
|
+
}
|
|
703
|
+
},
|
|
704
|
+
required: schema.required.filter(name => name !== 'project')
|
|
705
|
+
}
|
|
706
|
+
};
|
|
707
|
+
});
|
|
708
|
+
}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { type AccountInfo, type AccountRole, type AccountUuid, type BackupStatus, Data, type Person, type PersonId, type PersonInfo, type PersonUuid, type SocialIdType, Version, type UsageStatus, type WorkspaceInfoWithStatus, type WorkspaceMemberInfo, WorkspaceMode, type WorkspaceUserOperation, type WorkspaceUuid } from '@hcengineering/core';
|
|
2
|
-
import type { AccountAggregatedInfo, Integration, IntegrationKey, IntegrationSecret, IntegrationSecretKey, LoginInfo, LoginInfoByToken, LoginInfoRequestData, LoginInfoWithWorkspaces, MailboxInfo, MailboxOptions, MailboxSecret, OtpInfo, PersonWithProfile, ProviderInfo, RegionInfo, SocialId, Subscription, SubscriptionData, UserProfile, WorkspaceLoginInfo, WorkspaceOperation } from './types';
|
|
3
|
-
/** @public */
|
|
4
|
-
export interface AccountClient {
|
|
5
|
-
getProviders: () => Promise<ProviderInfo[]>;
|
|
6
|
-
getUserWorkspaces: () => Promise<WorkspaceInfoWithStatus[]>;
|
|
7
|
-
selectWorkspace: (workspaceUrl: string, kind?: 'external' | 'internal' | 'byregion', externalRegions?: string[]) => Promise<WorkspaceLoginInfo>;
|
|
8
|
-
validateOtp: (email: string, code: string, password?: string, action?: 'verify') => Promise<LoginInfo>;
|
|
9
|
-
loginOtp: (email: string) => Promise<OtpInfo>;
|
|
10
|
-
getLoginInfoByToken: (data?: LoginInfoRequestData) => Promise<LoginInfoByToken>;
|
|
11
|
-
getLoginWithWorkspaceInfo: () => Promise<LoginInfoWithWorkspaces>;
|
|
12
|
-
restorePassword: (password: string) => Promise<LoginInfo>;
|
|
13
|
-
confirm: () => Promise<LoginInfo>;
|
|
14
|
-
requestPasswordReset: (email: string) => Promise<void>;
|
|
15
|
-
sendInvite: (email: string, role: AccountRole) => Promise<void>;
|
|
16
|
-
resendInvite: (email: string, role: AccountRole) => Promise<void>;
|
|
17
|
-
createInviteLink: (email: string, role: AccountRole, autoJoin: boolean, firstName: string, lastName: string, navigateUrl?: string, expHours?: number) => Promise<string>;
|
|
18
|
-
leaveWorkspace: (account: AccountUuid) => Promise<LoginInfo | null>;
|
|
19
|
-
changeUsername: (first: string, last: string) => Promise<void>;
|
|
20
|
-
changePassword: (oldPassword: string, newPassword: string) => Promise<void>;
|
|
21
|
-
signUpJoin: (email: string, password: string, first: string, last: string, inviteId: string, workspaceUrl: string) => Promise<WorkspaceLoginInfo>;
|
|
22
|
-
join: (email: string, password: string, inviteId: string, workspaceUrl: string) => Promise<WorkspaceLoginInfo>;
|
|
23
|
-
createInvite: (exp: number, emailMask: string, limit: number, role: AccountRole) => Promise<string>;
|
|
24
|
-
/**
|
|
25
|
-
* @param options.personalized
|
|
26
|
-
* If true, will generate a link with a personalized token for one person access
|
|
27
|
-
* If false, will generate a link with an open-ended account in the token. Every token use will generate a new account.
|
|
28
|
-
* When false, notBefore and expiration parameters are mandatory.
|
|
29
|
-
* @param options.notBefore - not valid before; timestamp in seconds
|
|
30
|
-
* @param options.expiration - expires after; timestamp in seconds
|
|
31
|
-
*/
|
|
32
|
-
createAccessLink: (role: AccountRole, options?: {
|
|
33
|
-
firstName?: string;
|
|
34
|
-
lastName?: string;
|
|
35
|
-
navigateUrl?: string;
|
|
36
|
-
extra?: Record<string, any>;
|
|
37
|
-
spaces?: string[];
|
|
38
|
-
notBefore?: number;
|
|
39
|
-
expiration?: number;
|
|
40
|
-
personalized?: boolean;
|
|
41
|
-
}) => Promise<string>;
|
|
42
|
-
checkJoin: (inviteId: string) => Promise<WorkspaceLoginInfo>;
|
|
43
|
-
checkAutoJoin: (inviteId: string, firstName?: string, lastName?: string) => Promise<WorkspaceLoginInfo>;
|
|
44
|
-
getWorkspaceInfo: (updateLastVisit?: boolean) => Promise<WorkspaceInfoWithStatus>;
|
|
45
|
-
getWorkspacesInfo: (workspaces: WorkspaceUuid[]) => Promise<WorkspaceInfoWithStatus[]>;
|
|
46
|
-
updateLastVisit: (workspaces: WorkspaceUuid[]) => Promise<void>;
|
|
47
|
-
getRegionInfo: () => Promise<RegionInfo[]>;
|
|
48
|
-
createWorkspace: (name: string, region?: string) => Promise<WorkspaceLoginInfo>;
|
|
49
|
-
signUpOtp: (email: string, first: string, last: string) => Promise<OtpInfo>;
|
|
50
|
-
/**
|
|
51
|
-
* Deprecated. Only to be used for dev setups without mail service.
|
|
52
|
-
*/
|
|
53
|
-
signUp: (email: string, password: string, first: string, last: string) => Promise<LoginInfo>;
|
|
54
|
-
login: (email: string, password: string) => Promise<LoginInfo>;
|
|
55
|
-
loginAsGuest: () => Promise<LoginInfo>;
|
|
56
|
-
isReadOnlyGuest: () => Promise<boolean>;
|
|
57
|
-
getPerson: () => Promise<Person>;
|
|
58
|
-
getPersonInfo: (account: PersonUuid) => Promise<PersonInfo>;
|
|
59
|
-
getSocialIds: (includeDeleted?: boolean) => Promise<SocialId[]>;
|
|
60
|
-
getWorkspaceMembers: () => Promise<WorkspaceMemberInfo[]>;
|
|
61
|
-
updateWorkspaceRole: (account: string, role: AccountRole) => Promise<void>;
|
|
62
|
-
updateAllowReadOnlyGuests: (readOnlyGuestsAllowed: boolean) => Promise<{
|
|
63
|
-
guestPerson: Person;
|
|
64
|
-
guestSocialIds: SocialId[];
|
|
65
|
-
} | undefined>;
|
|
66
|
-
updateAllowGuestSignUp: (guestSignUpAllowed: boolean) => Promise<void>;
|
|
67
|
-
updateWorkspaceName: (name: string) => Promise<void>;
|
|
68
|
-
deleteWorkspace: () => Promise<void>;
|
|
69
|
-
findPersonBySocialKey: (socialKey: string, requireAccount?: boolean) => Promise<PersonUuid | undefined>;
|
|
70
|
-
findPersonBySocialId: (socialId: PersonId, requireAccount?: boolean) => Promise<PersonUuid | undefined>;
|
|
71
|
-
findSocialIdBySocialKey: (socialKey: string) => Promise<PersonId | undefined>;
|
|
72
|
-
findFullSocialIdBySocialKey: (socialKey: string) => Promise<SocialId | undefined>;
|
|
73
|
-
findFullSocialIds: (socialIds: PersonId[]) => Promise<SocialId[]>;
|
|
74
|
-
getMailboxOptions: () => Promise<MailboxOptions>;
|
|
75
|
-
getMailboxSecret: (mailbox: string) => Promise<MailboxSecret | undefined>;
|
|
76
|
-
createMailbox: (name: string, domain: string) => Promise<{
|
|
77
|
-
mailbox: string;
|
|
78
|
-
socialId: PersonId;
|
|
79
|
-
}>;
|
|
80
|
-
getMailboxes: () => Promise<MailboxInfo[]>;
|
|
81
|
-
deleteMailbox: (mailbox: string) => Promise<void>;
|
|
82
|
-
listAccounts: (search?: string, skip?: number, limit?: number) => Promise<AccountAggregatedInfo[]>;
|
|
83
|
-
deleteAccount: (uuid: AccountUuid) => Promise<void>;
|
|
84
|
-
workerHandshake: (region: string, version: Data<Version>, operation: WorkspaceOperation) => Promise<void>;
|
|
85
|
-
getPendingWorkspace: (region: string, version: Data<Version>, operation: WorkspaceOperation) => Promise<WorkspaceInfoWithStatus | null>;
|
|
86
|
-
updateWorkspaceInfo: (wsUuid: string, event: string, version: Data<Version>, progress: number, message?: string) => Promise<void>;
|
|
87
|
-
listWorkspaces: (region?: string | null, mode?: WorkspaceMode | null) => Promise<WorkspaceInfoWithStatus[]>;
|
|
88
|
-
performWorkspaceOperation: (workspaceId: string | string[], event: WorkspaceUserOperation, ...params: any) => Promise<boolean>;
|
|
89
|
-
assignWorkspace: (email: string, workspaceUuid: string, role: AccountRole) => Promise<void>;
|
|
90
|
-
updateBackupInfo: (info: BackupStatus) => Promise<void>;
|
|
91
|
-
updateUsageInfo: (info: UsageStatus) => Promise<void>;
|
|
92
|
-
updateWorkspaceRoleBySocialKey: (socialKey: string, targetRole: AccountRole) => Promise<void>;
|
|
93
|
-
ensurePerson: (socialType: SocialIdType, socialValue: string, firstName: string, lastName: string) => Promise<{
|
|
94
|
-
uuid: PersonUuid;
|
|
95
|
-
socialId: PersonId;
|
|
96
|
-
}>;
|
|
97
|
-
addSocialIdToPerson: (person: PersonUuid, type: SocialIdType, value: string, confirmed: boolean, displayValue?: string) => Promise<PersonId>;
|
|
98
|
-
updateSocialId: (personId: PersonId, displayValue: string) => Promise<PersonId>;
|
|
99
|
-
exchangeGuestToken: (token: string) => Promise<string>;
|
|
100
|
-
/**
|
|
101
|
-
* Releases the target social id for the target account.
|
|
102
|
-
* If called with user's token it releases the social id for the user's account.
|
|
103
|
-
* @param personUuid Required for services
|
|
104
|
-
* @param type Social id type
|
|
105
|
-
* @param value Social id value
|
|
106
|
-
* @param deleteIntegrations Deletes associated integrations if true. Otherwise, throws an error if any.
|
|
107
|
-
* @returns Deleted social id with updated isDeleted flag and key/value
|
|
108
|
-
*/
|
|
109
|
-
releaseSocialId: (personUuid: PersonUuid | undefined, type: SocialIdType, value: string, deleteIntegrations?: boolean) => Promise<SocialId>;
|
|
110
|
-
createIntegration: (integration: Integration) => Promise<void>;
|
|
111
|
-
updateIntegration: (integration: Integration) => Promise<void>;
|
|
112
|
-
deleteIntegration: (integrationKey: IntegrationKey) => Promise<void>;
|
|
113
|
-
getIntegration: (integrationKey: IntegrationKey) => Promise<Integration | null>;
|
|
114
|
-
listIntegrations: (filter: Partial<IntegrationKey>) => Promise<Integration[]>;
|
|
115
|
-
addIntegrationSecret: (integrationSecret: IntegrationSecret) => Promise<void>;
|
|
116
|
-
updateIntegrationSecret: (integrationSecret: IntegrationSecret) => Promise<void>;
|
|
117
|
-
deleteIntegrationSecret: (integrationSecretKey: IntegrationSecretKey) => Promise<void>;
|
|
118
|
-
getIntegrationSecret: (integrationSecretKey: IntegrationSecretKey) => Promise<IntegrationSecret | null>;
|
|
119
|
-
listIntegrationsSecrets: (filter: Partial<IntegrationSecretKey>) => Promise<IntegrationSecret[]>;
|
|
120
|
-
getAccountInfo: (uuid: AccountUuid) => Promise<AccountInfo>;
|
|
121
|
-
canMergeSpecifiedPersons: (primaryPerson: PersonUuid, secondaryPerson: PersonUuid) => Promise<boolean>;
|
|
122
|
-
mergeSpecifiedPersons: (primaryPerson: PersonUuid, secondaryPerson: PersonUuid) => Promise<void>;
|
|
123
|
-
mergeSpecifiedAccounts: (primaryAccount: AccountUuid, secondaryAccount: AccountUuid) => Promise<void>;
|
|
124
|
-
addEmailSocialId: (email: string) => Promise<OtpInfo>;
|
|
125
|
-
addHulyAssistantSocialId: () => Promise<PersonId>;
|
|
126
|
-
refreshHulyAssistantToken: () => Promise<void>;
|
|
127
|
-
updatePasswordAgingRule: (days: number) => Promise<void>;
|
|
128
|
-
checkPasswordAging: () => Promise<boolean>;
|
|
129
|
-
setMyProfile: (profile: Partial<Omit<UserProfile, 'personUuid'>>) => Promise<void>;
|
|
130
|
-
getUserProfile: (personUuid?: PersonUuid) => Promise<PersonWithProfile | null>;
|
|
131
|
-
getSubscriptions: (workspaceUuid?: WorkspaceUuid | undefined, activeOnly?: boolean) => Promise<Subscription[]>;
|
|
132
|
-
getSubscriptionByProviderId: (provider: string, providerSubscriptionId: string) => Promise<Subscription | null>;
|
|
133
|
-
getSubscriptionById: (subscriptionId: string) => Promise<Subscription | null>;
|
|
134
|
-
upsertSubscription: (subscription: SubscriptionData) => Promise<void>;
|
|
135
|
-
setCookie: () => Promise<void>;
|
|
136
|
-
deleteCookie: () => Promise<void>;
|
|
137
|
-
}
|
|
138
|
-
/** @public */
|
|
139
|
-
export declare function getClient(accountsUrl?: string, token?: string, retryTimeoutMs?: number): AccountClient;
|
|
140
|
-
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,YAAY,EAEjB,IAAI,EACJ,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,OAAO,EACP,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,aAAa,EACb,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EACnB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,KAAK,EACV,qBAAqB,EACrB,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,uBAAuB,EACvB,WAAW,EACX,cAAc,EACd,aAAa,EACb,OAAO,EACP,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV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