@miragon/pulse-widget-shell 0.24.2 → 0.25.0
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 +134 -127
- package/dist/caller.d.ts +3 -0
- package/dist/caller.d.ts.map +1 -0
- package/dist/caller.js +18 -0
- package/dist/caller.js.map +1 -0
- package/dist/composed-server.d.ts +34 -66
- package/dist/composed-server.d.ts.map +1 -1
- package/dist/composed-server.js +130 -137
- package/dist/composed-server.js.map +1 -1
- package/dist/composition.d.ts +61 -111
- package/dist/composition.d.ts.map +1 -1
- package/dist/composition.js +120 -54
- package/dist/composition.js.map +1 -1
- package/dist/font-assets.d.ts +7 -28
- package/dist/font-assets.d.ts.map +1 -1
- package/dist/font-assets.js +11 -43
- package/dist/font-assets.js.map +1 -1
- package/dist/health.d.ts +9 -45
- package/dist/health.d.ts.map +1 -1
- package/dist/health.js +6 -24
- package/dist/health.js.map +1 -1
- package/dist/host-boot.d.ts +8 -38
- package/dist/host-boot.d.ts.map +1 -1
- package/dist/host-boot.js +10 -32
- package/dist/host-boot.js.map +1 -1
- package/dist/http-edge.d.ts +20 -76
- package/dist/http-edge.d.ts.map +1 -1
- package/dist/http-edge.js +17 -60
- package/dist/http-edge.js.map +1 -1
- package/dist/metrics.d.ts +6 -21
- package/dist/metrics.d.ts.map +1 -1
- package/dist/metrics.js +8 -36
- package/dist/metrics.js.map +1 -1
- package/dist/node-listener.d.ts +7 -39
- package/dist/node-listener.d.ts.map +1 -1
- package/dist/node-listener.js +6 -18
- package/dist/node-listener.js.map +1 -1
- package/dist/oauth-env.d.ts +15 -35
- package/dist/oauth-env.d.ts.map +1 -1
- package/dist/oauth-env.js +122 -62
- package/dist/oauth-env.js.map +1 -1
- package/dist/protocol/bpmn-names.d.ts +19 -0
- package/dist/protocol/bpmn-names.d.ts.map +1 -0
- package/dist/{bpmn-names.js → protocol/bpmn-names.js} +9 -38
- package/dist/protocol/bpmn-names.js.map +1 -0
- package/dist/protocol/served-fonts.d.ts +17 -0
- package/dist/protocol/served-fonts.d.ts.map +1 -0
- package/dist/protocol/served-fonts.js +30 -0
- package/dist/protocol/served-fonts.js.map +1 -0
- package/dist/protocol/tool-result.d.ts +24 -0
- package/dist/protocol/tool-result.d.ts.map +1 -0
- package/dist/protocol/tool-result.js +37 -0
- package/dist/protocol/tool-result.js.map +1 -0
- package/dist/protocol/translator.d.ts +14 -0
- package/dist/protocol/translator.d.ts.map +1 -0
- package/dist/protocol/translator.js +18 -0
- package/dist/protocol/translator.js.map +1 -0
- package/dist/protocol/view-name.d.ts +11 -0
- package/dist/protocol/view-name.d.ts.map +1 -0
- package/dist/protocol/view-name.js +23 -0
- package/dist/protocol/view-name.js.map +1 -0
- package/dist/request-context.d.ts +4 -33
- package/dist/request-context.d.ts.map +1 -1
- package/dist/request-context.js +11 -43
- package/dist/request-context.js.map +1 -1
- package/dist/server.d.ts +19 -39
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +28 -32
- package/dist/server.js.map +1 -1
- package/dist/testing/glossary.d.ts +4 -32
- package/dist/testing/glossary.d.ts.map +1 -1
- package/dist/testing/glossary.js +6 -30
- package/dist/testing/glossary.js.map +1 -1
- package/dist/testing/index.d.ts +1 -38
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +1 -38
- package/dist/testing/index.js.map +1 -1
- package/dist/tool-errors.d.ts +16 -0
- package/dist/tool-errors.d.ts.map +1 -0
- package/dist/tool-errors.js +23 -0
- package/dist/tool-errors.js.map +1 -0
- package/dist/tool-registrar.d.ts +29 -0
- package/dist/tool-registrar.d.ts.map +1 -0
- package/dist/tool-registrar.js +47 -0
- package/dist/tool-registrar.js.map +1 -0
- package/dist/tool-registration.d.ts +35 -0
- package/dist/tool-registration.d.ts.map +1 -0
- package/dist/tool-registration.js +80 -0
- package/dist/tool-registration.js.map +1 -0
- package/dist/tool-schema-trim.d.ts +1 -15
- package/dist/tool-schema-trim.d.ts.map +1 -1
- package/dist/tool-schema-trim.js +1 -16
- package/dist/tool-schema-trim.js.map +1 -1
- package/dist/toolsets.d.ts +10 -56
- package/dist/toolsets.d.ts.map +1 -1
- package/dist/toolsets.js +2 -10
- package/dist/toolsets.js.map +1 -1
- package/dist/ui/action-feedback.d.ts +4 -26
- package/dist/ui/action-feedback.d.ts.map +1 -1
- package/dist/ui/action-feedback.js +5 -19
- package/dist/ui/action-feedback.js.map +1 -1
- package/dist/ui/ask-ai-button.d.ts +6 -43
- package/dist/ui/ask-ai-button.d.ts.map +1 -1
- package/dist/ui/ask-ai-button.js +6 -18
- package/dist/ui/ask-ai-button.js.map +1 -1
- package/dist/ui/ask-ai-prompt.d.ts +6 -82
- package/dist/ui/ask-ai-prompt.d.ts.map +1 -1
- package/dist/ui/ask-ai-prompt.js +10 -77
- package/dist/ui/ask-ai-prompt.js.map +1 -1
- package/dist/ui/bpmn-tokens.d.ts +3 -48
- package/dist/ui/bpmn-tokens.d.ts.map +1 -1
- package/dist/ui/bpmn-tokens.js +3 -46
- package/dist/ui/bpmn-tokens.js.map +1 -1
- package/dist/ui/bpmn-zoom-controls.d.ts +4 -17
- package/dist/ui/bpmn-zoom-controls.d.ts.map +1 -1
- package/dist/ui/bpmn-zoom-controls.js +2 -16
- package/dist/ui/bpmn-zoom-controls.js.map +1 -1
- package/dist/ui/call-observer.d.ts +35 -0
- package/dist/ui/call-observer.d.ts.map +1 -0
- package/dist/ui/call-observer.js +86 -0
- package/dist/ui/call-observer.js.map +1 -0
- package/dist/ui/confirm-dialog.d.ts +4 -31
- package/dist/ui/confirm-dialog.d.ts.map +1 -1
- package/dist/ui/confirm-dialog.js +4 -27
- package/dist/ui/confirm-dialog.js.map +1 -1
- package/dist/ui/count-tone.d.ts +3 -17
- package/dist/ui/count-tone.d.ts.map +1 -1
- package/dist/ui/count-tone.js +2 -16
- package/dist/ui/count-tone.js.map +1 -1
- package/dist/ui/declare-served-fonts.d.ts +4 -10
- package/dist/ui/declare-served-fonts.d.ts.map +1 -1
- package/dist/ui/declare-served-fonts.js +6 -13
- package/dist/ui/declare-served-fonts.js.map +1 -1
- package/dist/ui/describe-error.d.ts +5 -47
- package/dist/ui/describe-error.d.ts.map +1 -1
- package/dist/ui/describe-error.js +8 -45
- package/dist/ui/describe-error.js.map +1 -1
- package/dist/ui/display-mode-toggle.d.ts +3 -16
- package/dist/ui/display-mode-toggle.d.ts.map +1 -1
- package/dist/ui/display-mode-toggle.js +6 -15
- package/dist/ui/display-mode-toggle.js.map +1 -1
- package/dist/ui/error-labels.d.ts +3 -19
- package/dist/ui/error-labels.d.ts.map +1 -1
- package/dist/ui/error-labels.js +0 -1
- package/dist/ui/error-labels.js.map +1 -1
- package/dist/ui/hand-off-button.d.ts +3 -18
- package/dist/ui/hand-off-button.d.ts.map +1 -1
- package/dist/ui/hand-off-button.js +3 -18
- package/dist/ui/hand-off-button.js.map +1 -1
- package/dist/ui/host-context.d.ts +13 -50
- package/dist/ui/host-context.d.ts.map +1 -1
- package/dist/ui/host-context.js +20 -51
- package/dist/ui/host-context.js.map +1 -1
- package/dist/ui/host-contexts.d.ts +19 -0
- package/dist/ui/host-contexts.d.ts.map +1 -0
- package/dist/ui/host-contexts.js +31 -0
- package/dist/ui/host-contexts.js.map +1 -0
- package/dist/ui/host-document.d.ts +3 -18
- package/dist/ui/host-document.d.ts.map +1 -1
- package/dist/ui/host-document.js +7 -25
- package/dist/ui/host-document.js.map +1 -1
- package/dist/ui/host-widgets.d.ts +21 -4
- package/dist/ui/host-widgets.d.ts.map +1 -1
- package/dist/ui/host-widgets.js +19 -11
- package/dist/ui/host-widgets.js.map +1 -1
- package/dist/ui/id-text.d.ts +1 -17
- package/dist/ui/id-text.d.ts.map +1 -1
- package/dist/ui/id-text.js +5 -26
- package/dist/ui/id-text.js.map +1 -1
- package/dist/ui/index.d.ts +24 -43
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +36 -51
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/inline-budget.d.ts +2 -16
- package/dist/ui/inline-budget.d.ts.map +1 -1
- package/dist/ui/inline-budget.js +1 -8
- package/dist/ui/inline-budget.js.map +1 -1
- package/dist/ui/inline-fit-registry.d.ts +4 -31
- package/dist/ui/inline-fit-registry.d.ts.map +1 -1
- package/dist/ui/inline-fit-registry.js +9 -27
- package/dist/ui/inline-fit-registry.js.map +1 -1
- package/dist/ui/inline-fit-solve.d.ts +5 -27
- package/dist/ui/inline-fit-solve.d.ts.map +1 -1
- package/dist/ui/inline-fit-solve.js +4 -23
- package/dist/ui/inline-fit-solve.js.map +1 -1
- package/dist/ui/inline-fit.d.ts +4 -53
- package/dist/ui/inline-fit.d.ts.map +1 -1
- package/dist/ui/inline-fit.js +16 -62
- package/dist/ui/inline-fit.js.map +1 -1
- package/dist/ui/kit-labels.d.ts +12 -51
- package/dist/ui/kit-labels.d.ts.map +1 -1
- package/dist/ui/kit-labels.js +18 -28
- package/dist/ui/kit-labels.js.map +1 -1
- package/dist/ui/list-table.d.ts +15 -69
- package/dist/ui/list-table.d.ts.map +1 -1
- package/dist/ui/list-table.js +11 -69
- package/dist/ui/list-table.js.map +1 -1
- package/dist/ui/locale-gate.d.ts +11 -0
- package/dist/ui/locale-gate.d.ts.map +1 -0
- package/dist/ui/locale-gate.js +53 -0
- package/dist/ui/locale-gate.js.map +1 -0
- package/dist/ui/mcp-use-host.d.ts +20 -0
- package/dist/ui/mcp-use-host.d.ts.map +1 -0
- package/dist/ui/mcp-use-host.js +162 -0
- package/dist/ui/mcp-use-host.js.map +1 -0
- package/dist/ui/open-in-cockpit-link.d.ts +2 -21
- package/dist/ui/open-in-cockpit-link.d.ts.map +1 -1
- package/dist/ui/open-in-cockpit-link.js +5 -20
- package/dist/ui/open-in-cockpit-link.js.map +1 -1
- package/dist/ui/paged-rows.d.ts +3 -14
- package/dist/ui/paged-rows.d.ts.map +1 -1
- package/dist/ui/paged-rows.js +4 -14
- package/dist/ui/paged-rows.js.map +1 -1
- package/dist/ui/query-fallback.d.ts +2 -16
- package/dist/ui/query-fallback.d.ts.map +1 -1
- package/dist/ui/query-fallback.js +2 -14
- package/dist/ui/query-fallback.js.map +1 -1
- package/dist/ui/shell-host.d.ts +13 -23
- package/dist/ui/shell-host.d.ts.map +1 -1
- package/dist/ui/shell-host.js +1 -46
- package/dist/ui/shell-host.js.map +1 -1
- package/dist/ui/test-view-host.d.ts +51 -0
- package/dist/ui/test-view-host.d.ts.map +1 -0
- package/dist/ui/test-view-host.js +72 -0
- package/dist/ui/test-view-host.js.map +1 -0
- package/dist/ui/tool-query.d.ts +41 -0
- package/dist/ui/tool-query.d.ts.map +1 -0
- package/dist/ui/tool-query.js +128 -0
- package/dist/ui/tool-query.js.map +1 -0
- package/dist/ui/use-apply-theme.d.ts +1 -8
- package/dist/ui/use-apply-theme.d.ts.map +1 -1
- package/dist/ui/use-apply-theme.js +1 -8
- package/dist/ui/use-apply-theme.js.map +1 -1
- package/dist/ui/use-bpmn-viewer.d.ts +39 -73
- package/dist/ui/use-bpmn-viewer.d.ts.map +1 -1
- package/dist/ui/use-bpmn-viewer.js +18 -66
- package/dist/ui/use-bpmn-viewer.js.map +1 -1
- package/dist/ui/use-detail-view.d.ts +4 -26
- package/dist/ui/use-detail-view.d.ts.map +1 -1
- package/dist/ui/use-detail-view.js +7 -28
- package/dist/ui/use-detail-view.js.map +1 -1
- package/dist/ui/use-paged-list-view.d.ts +5 -25
- package/dist/ui/use-paged-list-view.d.ts.map +1 -1
- package/dist/ui/use-paged-list-view.js +5 -14
- package/dist/ui/use-paged-list-view.js.map +1 -1
- package/dist/ui/use-paged-view-data.d.ts +11 -66
- package/dist/ui/use-paged-view-data.d.ts.map +1 -1
- package/dist/ui/use-paged-view-data.js +20 -53
- package/dist/ui/use-paged-view-data.js.map +1 -1
- package/dist/ui/view-call.d.ts +66 -0
- package/dist/ui/view-call.d.ts.map +1 -0
- package/dist/ui/view-call.js +63 -0
- package/dist/ui/view-call.js.map +1 -0
- package/dist/ui/view-data-state.d.ts +1 -31
- package/dist/ui/view-data-state.d.ts.map +1 -1
- package/dist/ui/view-data-state.js +3 -32
- package/dist/ui/view-data-state.js.map +1 -1
- package/dist/ui/view-error-boundary.d.ts +24 -0
- package/dist/ui/view-error-boundary.d.ts.map +1 -0
- package/dist/ui/view-error-boundary.js +33 -0
- package/dist/ui/view-error-boundary.js.map +1 -0
- package/dist/ui/view-frame.d.ts +15 -0
- package/dist/ui/view-frame.d.ts.map +1 -0
- package/dist/ui/view-frame.js +72 -0
- package/dist/ui/view-frame.js.map +1 -0
- package/dist/ui/view-host.d.ts +35 -0
- package/dist/ui/view-host.d.ts.map +1 -0
- package/dist/ui/view-host.js +18 -0
- package/dist/ui/view-host.js.map +1 -0
- package/dist/ui/view-meta.d.ts +6 -29
- package/dist/ui/view-meta.d.ts.map +1 -1
- package/dist/ui/view-meta.js +2 -13
- package/dist/ui/view-meta.js.map +1 -1
- package/dist/ui/view-refresh-state.d.ts +4 -18
- package/dist/ui/view-refresh-state.d.ts.map +1 -1
- package/dist/ui/view-refresh-state.js +1 -7
- package/dist/ui/view-refresh-state.js.map +1 -1
- package/dist/ui/view-root.d.ts +26 -0
- package/dist/ui/view-root.d.ts.map +1 -0
- package/dist/ui/view-root.js +48 -0
- package/dist/ui/view-root.js.map +1 -0
- package/dist/ui/views.d.ts +17 -0
- package/dist/ui/views.d.ts.map +1 -0
- package/dist/ui/views.js +11 -0
- package/dist/ui/views.js.map +1 -0
- package/dist/ui/widget-shell.d.ts +1 -13
- package/dist/ui/widget-shell.d.ts.map +1 -1
- package/dist/ui/widget-shell.js +5 -30
- package/dist/ui/widget-shell.js.map +1 -1
- package/dist/view-bundle.d.ts +15 -0
- package/dist/view-bundle.d.ts.map +1 -0
- package/dist/view-bundle.js +23 -0
- package/dist/view-bundle.js.map +1 -0
- package/dist/view-results.d.ts +12 -23
- package/dist/view-results.d.ts.map +1 -1
- package/dist/view-results.js +14 -11
- package/dist/view-results.js.map +1 -1
- package/dist/widget-tool-bindings.d.ts +19 -48
- package/dist/widget-tool-bindings.d.ts.map +1 -1
- package/dist/widget-tool-bindings.js +21 -49
- package/dist/widget-tool-bindings.js.map +1 -1
- package/package.json +24 -36
- package/dist/adapt-data-widget.d.ts +0 -7
- package/dist/adapt-data-widget.d.ts.map +0 -1
- package/dist/adapt-data-widget.js +0 -7
- package/dist/adapt-data-widget.js.map +0 -1
- package/dist/bpmn-names.d.ts +0 -42
- package/dist/bpmn-names.d.ts.map +0 -1
- package/dist/bpmn-names.js.map +0 -1
- package/dist/bpmn-names.test.d.ts +0 -2
- package/dist/bpmn-names.test.d.ts.map +0 -1
- package/dist/bpmn-names.test.js +0 -143
- package/dist/bpmn-names.test.js.map +0 -1
- package/dist/build-data-feed-result.test.d.ts +0 -2
- package/dist/build-data-feed-result.test.d.ts.map +0 -1
- package/dist/build-data-feed-result.test.js +0 -28
- package/dist/build-data-feed-result.test.js.map +0 -1
- package/dist/build-single-widget-view.test.d.ts +0 -2
- package/dist/build-single-widget-view.test.d.ts.map +0 -1
- package/dist/build-single-widget-view.test.js +0 -136
- package/dist/build-single-widget-view.test.js.map +0 -1
- package/dist/builder-texts.d.ts +0 -27
- package/dist/builder-texts.d.ts.map +0 -1
- package/dist/builder-texts.js +0 -32
- package/dist/builder-texts.js.map +0 -1
- package/dist/builder-texts.test.d.ts +0 -2
- package/dist/builder-texts.test.d.ts.map +0 -1
- package/dist/builder-texts.test.js +0 -54
- package/dist/builder-texts.test.js.map +0 -1
- package/dist/catalogue-sync.d.ts +0 -18
- package/dist/catalogue-sync.d.ts.map +0 -1
- package/dist/catalogue-sync.js +0 -31
- package/dist/catalogue-sync.js.map +0 -1
- package/dist/catalogue-sync.test.d.ts +0 -2
- package/dist/catalogue-sync.test.d.ts.map +0 -1
- package/dist/catalogue-sync.test.js +0 -22
- package/dist/catalogue-sync.test.js.map +0 -1
- package/dist/composed-server.edge.test.d.ts +0 -2
- package/dist/composed-server.edge.test.d.ts.map +0 -1
- package/dist/composed-server.edge.test.js +0 -184
- package/dist/composed-server.edge.test.js.map +0 -1
- package/dist/composed-server.fonts.test.d.ts +0 -2
- package/dist/composed-server.fonts.test.d.ts.map +0 -1
- package/dist/composed-server.fonts.test.js +0 -186
- package/dist/composed-server.fonts.test.js.map +0 -1
- package/dist/composed-server.test.d.ts +0 -2
- package/dist/composed-server.test.d.ts.map +0 -1
- package/dist/composed-server.test.js +0 -332
- package/dist/composed-server.test.js.map +0 -1
- package/dist/composition.test.d.ts +0 -2
- package/dist/composition.test.d.ts.map +0 -1
- package/dist/composition.test.js +0 -275
- package/dist/composition.test.js.map +0 -1
- package/dist/dashboard-store-postgres.d.ts +0 -43
- package/dist/dashboard-store-postgres.d.ts.map +0 -1
- package/dist/dashboard-store-postgres.js +0 -225
- package/dist/dashboard-store-postgres.js.map +0 -1
- package/dist/dashboard-store-postgres.test.d.ts +0 -2
- package/dist/dashboard-store-postgres.test.d.ts.map +0 -1
- package/dist/dashboard-store-postgres.test.js +0 -272
- package/dist/dashboard-store-postgres.test.js.map +0 -1
- package/dist/font-assets.test.d.ts +0 -2
- package/dist/font-assets.test.d.ts.map +0 -1
- package/dist/font-assets.test.js +0 -123
- package/dist/font-assets.test.js.map +0 -1
- package/dist/health.test.d.ts +0 -2
- package/dist/health.test.d.ts.map +0 -1
- package/dist/health.test.js +0 -140
- package/dist/health.test.js.map +0 -1
- package/dist/host-boot.test.d.ts +0 -2
- package/dist/host-boot.test.d.ts.map +0 -1
- package/dist/host-boot.test.js +0 -59
- package/dist/host-boot.test.js.map +0 -1
- package/dist/http-edge.test.d.ts +0 -2
- package/dist/http-edge.test.d.ts.map +0 -1
- package/dist/http-edge.test.js +0 -255
- package/dist/http-edge.test.js.map +0 -1
- package/dist/metrics.test.d.ts +0 -2
- package/dist/metrics.test.d.ts.map +0 -1
- package/dist/metrics.test.js +0 -154
- package/dist/metrics.test.js.map +0 -1
- package/dist/node-listener.test.d.ts +0 -2
- package/dist/node-listener.test.d.ts.map +0 -1
- package/dist/node-listener.test.js +0 -331
- package/dist/node-listener.test.js.map +0 -1
- package/dist/oauth-env.test.d.ts +0 -2
- package/dist/oauth-env.test.d.ts.map +0 -1
- package/dist/oauth-env.test.js +0 -76
- package/dist/oauth-env.test.js.map +0 -1
- package/dist/postgres.d.ts +0 -59
- package/dist/postgres.d.ts.map +0 -1
- package/dist/postgres.js +0 -80
- package/dist/postgres.js.map +0 -1
- package/dist/profile-advisory.d.ts +0 -19
- package/dist/profile-advisory.d.ts.map +0 -1
- package/dist/profile-advisory.js +0 -48
- package/dist/profile-advisory.js.map +0 -1
- package/dist/profile-advisory.test.d.ts +0 -2
- package/dist/profile-advisory.test.d.ts.map +0 -1
- package/dist/profile-advisory.test.js +0 -53
- package/dist/profile-advisory.test.js.map +0 -1
- package/dist/profile-constants.d.ts +0 -37
- package/dist/profile-constants.d.ts.map +0 -1
- package/dist/profile-constants.js +0 -37
- package/dist/profile-constants.js.map +0 -1
- package/dist/profile-migrations.d.ts +0 -71
- package/dist/profile-migrations.d.ts.map +0 -1
- package/dist/profile-migrations.js +0 -88
- package/dist/profile-migrations.js.map +0 -1
- package/dist/profile-migrations.test.d.ts +0 -2
- package/dist/profile-migrations.test.d.ts.map +0 -1
- package/dist/profile-migrations.test.js +0 -200
- package/dist/profile-migrations.test.js.map +0 -1
- package/dist/profile-record.d.ts +0 -60
- package/dist/profile-record.d.ts.map +0 -1
- package/dist/profile-record.js +0 -78
- package/dist/profile-record.js.map +0 -1
- package/dist/profile-slice.d.ts +0 -53
- package/dist/profile-slice.d.ts.map +0 -1
- package/dist/profile-slice.js +0 -73
- package/dist/profile-slice.js.map +0 -1
- package/dist/profile-slice.test.d.ts +0 -2
- package/dist/profile-slice.test.d.ts.map +0 -1
- package/dist/profile-slice.test.js +0 -73
- package/dist/profile-slice.test.js.map +0 -1
- package/dist/profile-store-env.d.ts +0 -34
- package/dist/profile-store-env.d.ts.map +0 -1
- package/dist/profile-store-env.js +0 -44
- package/dist/profile-store-env.js.map +0 -1
- package/dist/profile-store-env.test.d.ts +0 -2
- package/dist/profile-store-env.test.d.ts.map +0 -1
- package/dist/profile-store-env.test.js +0 -69
- package/dist/profile-store-env.test.js.map +0 -1
- package/dist/profile-store-postgres.d.ts +0 -33
- package/dist/profile-store-postgres.d.ts.map +0 -1
- package/dist/profile-store-postgres.js +0 -87
- package/dist/profile-store-postgres.js.map +0 -1
- package/dist/profile-store-raw.test.d.ts +0 -2
- package/dist/profile-store-raw.test.d.ts.map +0 -1
- package/dist/profile-store-raw.test.js +0 -185
- package/dist/profile-store-raw.test.js.map +0 -1
- package/dist/profile-store.d.ts +0 -85
- package/dist/profile-store.d.ts.map +0 -1
- package/dist/profile-store.js +0 -182
- package/dist/profile-store.js.map +0 -1
- package/dist/profile-store.test.d.ts +0 -2
- package/dist/profile-store.test.d.ts.map +0 -1
- package/dist/profile-store.test.js +0 -353
- package/dist/profile-store.test.js.map +0 -1
- package/dist/profile.d.ts +0 -75
- package/dist/profile.d.ts.map +0 -1
- package/dist/profile.js +0 -85
- package/dist/profile.js.map +0 -1
- package/dist/profile.test.d.ts +0 -2
- package/dist/profile.test.d.ts.map +0 -1
- package/dist/profile.test.js +0 -71
- package/dist/profile.test.js.map +0 -1
- package/dist/request-context.test.d.ts +0 -2
- package/dist/request-context.test.d.ts.map +0 -1
- package/dist/request-context.test.js +0 -107
- package/dist/request-context.test.js.map +0 -1
- package/dist/served-fonts.d.ts +0 -38
- package/dist/served-fonts.d.ts.map +0 -1
- package/dist/served-fonts.js +0 -51
- package/dist/served-fonts.js.map +0 -1
- package/dist/served-fonts.test.d.ts +0 -2
- package/dist/served-fonts.test.d.ts.map +0 -1
- package/dist/served-fonts.test.js +0 -30
- package/dist/served-fonts.test.js.map +0 -1
- package/dist/server-locale.d.ts +0 -58
- package/dist/server-locale.d.ts.map +0 -1
- package/dist/server-locale.js +0 -64
- package/dist/server-locale.js.map +0 -1
- package/dist/server-locale.test.d.ts +0 -2
- package/dist/server-locale.test.d.ts.map +0 -1
- package/dist/server-locale.test.js +0 -90
- package/dist/server-locale.test.js.map +0 -1
- package/dist/shell-catalogue.d.ts +0 -12
- package/dist/shell-catalogue.d.ts.map +0 -1
- package/dist/shell-catalogue.js +0 -142
- package/dist/shell-catalogue.js.map +0 -1
- package/dist/shell-settings-contract.d.ts +0 -34
- package/dist/shell-settings-contract.d.ts.map +0 -1
- package/dist/shell-settings-contract.js +0 -21
- package/dist/shell-settings-contract.js.map +0 -1
- package/dist/shell-settings.d.ts +0 -24
- package/dist/shell-settings.d.ts.map +0 -1
- package/dist/shell-settings.js +0 -148
- package/dist/shell-settings.js.map +0 -1
- package/dist/shell-settings.test.d.ts +0 -2
- package/dist/shell-settings.test.d.ts.map +0 -1
- package/dist/shell-settings.test.js +0 -115
- package/dist/shell-settings.test.js.map +0 -1
- package/dist/testing/catalog-text.d.ts +0 -53
- package/dist/testing/catalog-text.d.ts.map +0 -1
- package/dist/testing/catalog-text.js +0 -146
- package/dist/testing/catalog-text.js.map +0 -1
- package/dist/testing/catalog-text.test.d.ts +0 -2
- package/dist/testing/catalog-text.test.d.ts.map +0 -1
- package/dist/testing/catalog-text.test.js +0 -137
- package/dist/testing/catalog-text.test.js.map +0 -1
- package/dist/testing/colors.d.ts +0 -34
- package/dist/testing/colors.d.ts.map +0 -1
- package/dist/testing/colors.js +0 -124
- package/dist/testing/colors.js.map +0 -1
- package/dist/testing/colors.test.d.ts +0 -2
- package/dist/testing/colors.test.d.ts.map +0 -1
- package/dist/testing/colors.test.js +0 -166
- package/dist/testing/colors.test.js.map +0 -1
- package/dist/testing/contrast.d.ts +0 -77
- package/dist/testing/contrast.d.ts.map +0 -1
- package/dist/testing/contrast.js +0 -382
- package/dist/testing/contrast.js.map +0 -1
- package/dist/testing/contrast.test.d.ts +0 -2
- package/dist/testing/contrast.test.d.ts.map +0 -1
- package/dist/testing/contrast.test.js +0 -230
- package/dist/testing/contrast.test.js.map +0 -1
- package/dist/testing/display-texts.d.ts +0 -23
- package/dist/testing/display-texts.d.ts.map +0 -1
- package/dist/testing/display-texts.js +0 -88
- package/dist/testing/display-texts.js.map +0 -1
- package/dist/testing/display-texts.test.d.ts +0 -2
- package/dist/testing/display-texts.test.d.ts.map +0 -1
- package/dist/testing/display-texts.test.js +0 -169
- package/dist/testing/display-texts.test.js.map +0 -1
- package/dist/testing/glossary.test.d.ts +0 -2
- package/dist/testing/glossary.test.d.ts.map +0 -1
- package/dist/testing/glossary.test.js +0 -78
- package/dist/testing/glossary.test.js.map +0 -1
- package/dist/testing/glyphs.d.ts +0 -27
- package/dist/testing/glyphs.d.ts.map +0 -1
- package/dist/testing/glyphs.js +0 -130
- package/dist/testing/glyphs.js.map +0 -1
- package/dist/testing/glyphs.test.d.ts +0 -2
- package/dist/testing/glyphs.test.d.ts.map +0 -1
- package/dist/testing/glyphs.test.js +0 -146
- package/dist/testing/glyphs.test.js.map +0 -1
- package/dist/testing/icon-sizes.d.ts +0 -22
- package/dist/testing/icon-sizes.d.ts.map +0 -1
- package/dist/testing/icon-sizes.js +0 -39
- package/dist/testing/icon-sizes.js.map +0 -1
- package/dist/testing/icon-sizes.test.d.ts +0 -2
- package/dist/testing/icon-sizes.test.d.ts.map +0 -1
- package/dist/testing/icon-sizes.test.js +0 -36
- package/dist/testing/icon-sizes.test.js.map +0 -1
- package/dist/testing/source-scan.d.ts +0 -16
- package/dist/testing/source-scan.d.ts.map +0 -1
- package/dist/testing/source-scan.js +0 -57
- package/dist/testing/source-scan.js.map +0 -1
- package/dist/testing/tone-pairs.d.ts +0 -20
- package/dist/testing/tone-pairs.d.ts.map +0 -1
- package/dist/testing/tone-pairs.js +0 -154
- package/dist/testing/tone-pairs.js.map +0 -1
- package/dist/testing/type-scale.d.ts +0 -40
- package/dist/testing/type-scale.d.ts.map +0 -1
- package/dist/testing/type-scale.js +0 -55
- package/dist/testing/type-scale.js.map +0 -1
- package/dist/testing/type-scale.test.d.ts +0 -2
- package/dist/testing/type-scale.test.d.ts.map +0 -1
- package/dist/testing/type-scale.test.js +0 -61
- package/dist/testing/type-scale.test.js.map +0 -1
- package/dist/tool-schema-trim.test.d.ts +0 -2
- package/dist/tool-schema-trim.test.d.ts.map +0 -1
- package/dist/tool-schema-trim.test.js +0 -53
- package/dist/tool-schema-trim.test.js.map +0 -1
- package/dist/toolsets.test.d.ts +0 -2
- package/dist/toolsets.test.d.ts.map +0 -1
- package/dist/toolsets.test.js +0 -86
- package/dist/toolsets.test.js.map +0 -1
- package/dist/ui/action-feedback.test.d.ts +0 -2
- package/dist/ui/action-feedback.test.d.ts.map +0 -1
- package/dist/ui/action-feedback.test.js +0 -77
- package/dist/ui/action-feedback.test.js.map +0 -1
- package/dist/ui/app-shell-providers.d.ts +0 -18
- package/dist/ui/app-shell-providers.d.ts.map +0 -1
- package/dist/ui/app-shell-providers.js +0 -19
- package/dist/ui/app-shell-providers.js.map +0 -1
- package/dist/ui/app-shell-providers.test.d.ts +0 -2
- package/dist/ui/app-shell-providers.test.d.ts.map +0 -1
- package/dist/ui/app-shell-providers.test.js +0 -249
- package/dist/ui/app-shell-providers.test.js.map +0 -1
- package/dist/ui/ask-ai-button.test.d.ts +0 -2
- package/dist/ui/ask-ai-button.test.d.ts.map +0 -1
- package/dist/ui/ask-ai-button.test.js +0 -103
- package/dist/ui/ask-ai-button.test.js.map +0 -1
- package/dist/ui/ask-ai-prompt.test.d.ts +0 -2
- package/dist/ui/ask-ai-prompt.test.d.ts.map +0 -1
- package/dist/ui/ask-ai-prompt.test.js +0 -240
- package/dist/ui/ask-ai-prompt.test.js.map +0 -1
- package/dist/ui/bpmn-heatmap/heat-ramp.test.d.ts +0 -2
- package/dist/ui/bpmn-heatmap/heat-ramp.test.d.ts.map +0 -1
- package/dist/ui/bpmn-heatmap/heat-ramp.test.js +0 -174
- package/dist/ui/bpmn-heatmap/heat-ramp.test.js.map +0 -1
- package/dist/ui/bpmn-heatmap/heat-utils.d.ts +0 -119
- package/dist/ui/bpmn-heatmap/heat-utils.d.ts.map +0 -1
- package/dist/ui/bpmn-heatmap/heat-utils.js +0 -231
- package/dist/ui/bpmn-heatmap/heat-utils.js.map +0 -1
- package/dist/ui/bpmn-heatmap/heat-utils.test.d.ts +0 -2
- package/dist/ui/bpmn-heatmap/heat-utils.test.d.ts.map +0 -1
- package/dist/ui/bpmn-heatmap/heat-utils.test.js +0 -59
- package/dist/ui/bpmn-heatmap/heat-utils.test.js.map +0 -1
- package/dist/ui/bpmn-heatmap-labels.d.ts +0 -46
- package/dist/ui/bpmn-heatmap-labels.d.ts.map +0 -1
- package/dist/ui/bpmn-heatmap-labels.js +0 -16
- package/dist/ui/bpmn-heatmap-labels.js.map +0 -1
- package/dist/ui/bpmn-heatmap-widget.d.ts +0 -38
- package/dist/ui/bpmn-heatmap-widget.d.ts.map +0 -1
- package/dist/ui/bpmn-heatmap-widget.js +0 -65
- package/dist/ui/bpmn-heatmap-widget.js.map +0 -1
- package/dist/ui/bpmn-heatmap-widget.test.d.ts +0 -2
- package/dist/ui/bpmn-heatmap-widget.test.d.ts.map +0 -1
- package/dist/ui/bpmn-heatmap-widget.test.js +0 -173
- package/dist/ui/bpmn-heatmap-widget.test.js.map +0 -1
- package/dist/ui/bpmn-heatmap.d.ts +0 -61
- package/dist/ui/bpmn-heatmap.d.ts.map +0 -1
- package/dist/ui/bpmn-heatmap.js +0 -119
- package/dist/ui/bpmn-heatmap.js.map +0 -1
- package/dist/ui/bpmn-tokens.test.d.ts +0 -2
- package/dist/ui/bpmn-tokens.test.d.ts.map +0 -1
- package/dist/ui/bpmn-tokens.test.js +0 -98
- package/dist/ui/bpmn-tokens.test.js.map +0 -1
- package/dist/ui/brand-gates.test.d.ts +0 -2
- package/dist/ui/brand-gates.test.d.ts.map +0 -1
- package/dist/ui/brand-gates.test.js +0 -131
- package/dist/ui/brand-gates.test.js.map +0 -1
- package/dist/ui/brand-mark.d.ts +0 -37
- package/dist/ui/brand-mark.d.ts.map +0 -1
- package/dist/ui/brand-mark.js +0 -33
- package/dist/ui/brand-mark.js.map +0 -1
- package/dist/ui/brand-mark.test.d.ts +0 -2
- package/dist/ui/brand-mark.test.d.ts.map +0 -1
- package/dist/ui/brand-mark.test.js +0 -111
- package/dist/ui/brand-mark.test.js.map +0 -1
- package/dist/ui/confirm-dialog.test.d.ts +0 -2
- package/dist/ui/confirm-dialog.test.d.ts.map +0 -1
- package/dist/ui/confirm-dialog.test.js +0 -115
- package/dist/ui/confirm-dialog.test.js.map +0 -1
- package/dist/ui/count-tone.test.d.ts +0 -2
- package/dist/ui/count-tone.test.d.ts.map +0 -1
- package/dist/ui/count-tone.test.js +0 -27
- package/dist/ui/count-tone.test.js.map +0 -1
- package/dist/ui/create-use-t.d.ts +0 -15
- package/dist/ui/create-use-t.d.ts.map +0 -1
- package/dist/ui/create-use-t.js +0 -17
- package/dist/ui/create-use-t.js.map +0 -1
- package/dist/ui/declare-served-fonts.test.d.ts +0 -2
- package/dist/ui/declare-served-fonts.test.d.ts.map +0 -1
- package/dist/ui/declare-served-fonts.test.js +0 -44
- package/dist/ui/declare-served-fonts.test.js.map +0 -1
- package/dist/ui/describe-error.test.d.ts +0 -2
- package/dist/ui/describe-error.test.d.ts.map +0 -1
- package/dist/ui/describe-error.test.js +0 -274
- package/dist/ui/describe-error.test.js.map +0 -1
- package/dist/ui/format.d.ts +0 -81
- package/dist/ui/format.d.ts.map +0 -1
- package/dist/ui/format.js +0 -189
- package/dist/ui/format.js.map +0 -1
- package/dist/ui/format.test.d.ts +0 -2
- package/dist/ui/format.test.d.ts.map +0 -1
- package/dist/ui/format.test.js +0 -181
- package/dist/ui/format.test.js.map +0 -1
- package/dist/ui/generic-widgets.d.ts +0 -15
- package/dist/ui/generic-widgets.d.ts.map +0 -1
- package/dist/ui/generic-widgets.js +0 -122
- package/dist/ui/generic-widgets.js.map +0 -1
- package/dist/ui/generic-widgets.test.d.ts +0 -2
- package/dist/ui/generic-widgets.test.d.ts.map +0 -1
- package/dist/ui/generic-widgets.test.js +0 -139
- package/dist/ui/generic-widgets.test.js.map +0 -1
- package/dist/ui/hand-off-button.test.d.ts +0 -2
- package/dist/ui/hand-off-button.test.d.ts.map +0 -1
- package/dist/ui/hand-off-button.test.js +0 -78
- package/dist/ui/hand-off-button.test.js.map +0 -1
- package/dist/ui/host-context.test.d.ts +0 -2
- package/dist/ui/host-context.test.d.ts.map +0 -1
- package/dist/ui/host-context.test.js +0 -160
- package/dist/ui/host-context.test.js.map +0 -1
- package/dist/ui/host-document.test.d.ts +0 -2
- package/dist/ui/host-document.test.d.ts.map +0 -1
- package/dist/ui/host-document.test.js +0 -112
- package/dist/ui/host-document.test.js.map +0 -1
- package/dist/ui/humanize-key.d.ts +0 -11
- package/dist/ui/humanize-key.d.ts.map +0 -1
- package/dist/ui/humanize-key.js +0 -26
- package/dist/ui/humanize-key.js.map +0 -1
- package/dist/ui/humanize-key.test.d.ts +0 -2
- package/dist/ui/humanize-key.test.d.ts.map +0 -1
- package/dist/ui/humanize-key.test.js +0 -42
- package/dist/ui/humanize-key.test.js.map +0 -1
- package/dist/ui/icon.d.ts +0 -37
- package/dist/ui/icon.d.ts.map +0 -1
- package/dist/ui/icon.js +0 -32
- package/dist/ui/icon.js.map +0 -1
- package/dist/ui/id-breaks.d.ts +0 -17
- package/dist/ui/id-breaks.d.ts.map +0 -1
- package/dist/ui/id-breaks.js +0 -36
- package/dist/ui/id-breaks.js.map +0 -1
- package/dist/ui/id-breaks.test.d.ts +0 -2
- package/dist/ui/id-breaks.test.d.ts.map +0 -1
- package/dist/ui/id-breaks.test.js +0 -37
- package/dist/ui/id-breaks.test.js.map +0 -1
- package/dist/ui/id-text.test.d.ts +0 -2
- package/dist/ui/id-text.test.d.ts.map +0 -1
- package/dist/ui/id-text.test.js +0 -122
- package/dist/ui/id-text.test.js.map +0 -1
- package/dist/ui/index.test.d.ts +0 -2
- package/dist/ui/index.test.d.ts.map +0 -1
- package/dist/ui/index.test.js +0 -34
- package/dist/ui/index.test.js.map +0 -1
- package/dist/ui/inline-fit-solve.test.d.ts +0 -2
- package/dist/ui/inline-fit-solve.test.d.ts.map +0 -1
- package/dist/ui/inline-fit-solve.test.js +0 -108
- package/dist/ui/inline-fit-solve.test.js.map +0 -1
- package/dist/ui/inline-fit-time.test.d.ts +0 -2
- package/dist/ui/inline-fit-time.test.d.ts.map +0 -1
- package/dist/ui/inline-fit-time.test.js +0 -110
- package/dist/ui/inline-fit-time.test.js.map +0 -1
- package/dist/ui/inline-fit.test-support.d.ts +0 -26
- package/dist/ui/inline-fit.test-support.d.ts.map +0 -1
- package/dist/ui/inline-fit.test-support.js +0 -34
- package/dist/ui/inline-fit.test-support.js.map +0 -1
- package/dist/ui/inline-fit.test.d.ts +0 -2
- package/dist/ui/inline-fit.test.d.ts.map +0 -1
- package/dist/ui/inline-fit.test.js +0 -159
- package/dist/ui/inline-fit.test.js.map +0 -1
- package/dist/ui/kit-labels.test.d.ts +0 -2
- package/dist/ui/kit-labels.test.d.ts.map +0 -1
- package/dist/ui/kit-labels.test.js +0 -98
- package/dist/ui/kit-labels.test.js.map +0 -1
- package/dist/ui/kit-type-roles.test.d.ts +0 -2
- package/dist/ui/kit-type-roles.test.d.ts.map +0 -1
- package/dist/ui/kit-type-roles.test.js +0 -122
- package/dist/ui/kit-type-roles.test.js.map +0 -1
- package/dist/ui/komet-svg.d.ts +0 -15
- package/dist/ui/komet-svg.d.ts.map +0 -1
- package/dist/ui/komet-svg.js +0 -21
- package/dist/ui/komet-svg.js.map +0 -1
- package/dist/ui/list-table.test.d.ts +0 -2
- package/dist/ui/list-table.test.d.ts.map +0 -1
- package/dist/ui/list-table.test.js +0 -169
- package/dist/ui/list-table.test.js.map +0 -1
- package/dist/ui/localized-app-view.d.ts +0 -40
- package/dist/ui/localized-app-view.d.ts.map +0 -1
- package/dist/ui/localized-app-view.js +0 -71
- package/dist/ui/localized-app-view.js.map +0 -1
- package/dist/ui/log-text.d.ts +0 -24
- package/dist/ui/log-text.d.ts.map +0 -1
- package/dist/ui/log-text.js +0 -31
- package/dist/ui/log-text.js.map +0 -1
- package/dist/ui/menu-item.d.ts +0 -12
- package/dist/ui/menu-item.d.ts.map +0 -1
- package/dist/ui/menu-item.js +0 -13
- package/dist/ui/menu-item.js.map +0 -1
- package/dist/ui/named-id.d.ts +0 -23
- package/dist/ui/named-id.d.ts.map +0 -1
- package/dist/ui/named-id.js +0 -21
- package/dist/ui/named-id.js.map +0 -1
- package/dist/ui/named-id.test.d.ts +0 -2
- package/dist/ui/named-id.test.d.ts.map +0 -1
- package/dist/ui/named-id.test.js +0 -57
- package/dist/ui/named-id.test.js.map +0 -1
- package/dist/ui/native-select.d.ts +0 -17
- package/dist/ui/native-select.d.ts.map +0 -1
- package/dist/ui/native-select.js +0 -20
- package/dist/ui/native-select.js.map +0 -1
- package/dist/ui/navigation-focus.d.ts +0 -20
- package/dist/ui/navigation-focus.d.ts.map +0 -1
- package/dist/ui/navigation-focus.js +0 -25
- package/dist/ui/navigation-focus.js.map +0 -1
- package/dist/ui/navigation-focus.test.d.ts +0 -2
- package/dist/ui/navigation-focus.test.d.ts.map +0 -1
- package/dist/ui/navigation-focus.test.js +0 -28
- package/dist/ui/navigation-focus.test.js.map +0 -1
- package/dist/ui/paged-list-footer.test.d.ts +0 -2
- package/dist/ui/paged-list-footer.test.d.ts.map +0 -1
- package/dist/ui/paged-list-footer.test.js +0 -128
- package/dist/ui/paged-list-footer.test.js.map +0 -1
- package/dist/ui/parse-tool-result.test.d.ts +0 -2
- package/dist/ui/parse-tool-result.test.d.ts.map +0 -1
- package/dist/ui/parse-tool-result.test.js +0 -88
- package/dist/ui/parse-tool-result.test.js.map +0 -1
- package/dist/ui/profile-gate.d.ts +0 -37
- package/dist/ui/profile-gate.d.ts.map +0 -1
- package/dist/ui/profile-gate.js +0 -126
- package/dist/ui/profile-gate.js.map +0 -1
- package/dist/ui/profile-gate.test.d.ts +0 -2
- package/dist/ui/profile-gate.test.d.ts.map +0 -1
- package/dist/ui/profile-gate.test.js +0 -246
- package/dist/ui/profile-gate.test.js.map +0 -1
- package/dist/ui/query-fallback.test.d.ts +0 -2
- package/dist/ui/query-fallback.test.d.ts.map +0 -1
- package/dist/ui/query-fallback.test.js +0 -49
- package/dist/ui/query-fallback.test.js.map +0 -1
- package/dist/ui/row-card.d.ts +0 -13
- package/dist/ui/row-card.d.ts.map +0 -1
- package/dist/ui/row-card.js +0 -11
- package/dist/ui/row-card.js.map +0 -1
- package/dist/ui/section.d.ts +0 -18
- package/dist/ui/section.d.ts.map +0 -1
- package/dist/ui/section.js +0 -14
- package/dist/ui/section.js.map +0 -1
- package/dist/ui/segmented-control.d.ts +0 -25
- package/dist/ui/segmented-control.d.ts.map +0 -1
- package/dist/ui/segmented-control.js +0 -22
- package/dist/ui/segmented-control.js.map +0 -1
- package/dist/ui/settings-labels.d.ts +0 -33
- package/dist/ui/settings-labels.d.ts.map +0 -1
- package/dist/ui/settings-labels.js +0 -50
- package/dist/ui/settings-labels.js.map +0 -1
- package/dist/ui/settings-layout.d.ts +0 -29
- package/dist/ui/settings-layout.d.ts.map +0 -1
- package/dist/ui/settings-layout.js +0 -49
- package/dist/ui/settings-layout.js.map +0 -1
- package/dist/ui/settings-layout.test.d.ts +0 -2
- package/dist/ui/settings-layout.test.d.ts.map +0 -1
- package/dist/ui/settings-layout.test.js +0 -73
- package/dist/ui/settings-layout.test.js.map +0 -1
- package/dist/ui/settings.d.ts +0 -47
- package/dist/ui/settings.d.ts.map +0 -1
- package/dist/ui/settings.js +0 -48
- package/dist/ui/settings.js.map +0 -1
- package/dist/ui/settings.test.d.ts +0 -2
- package/dist/ui/settings.test.d.ts.map +0 -1
- package/dist/ui/settings.test.js +0 -38
- package/dist/ui/settings.test.js.map +0 -1
- package/dist/ui/shell-settings.d.ts +0 -31
- package/dist/ui/shell-settings.d.ts.map +0 -1
- package/dist/ui/shell-settings.js +0 -97
- package/dist/ui/shell-settings.js.map +0 -1
- package/dist/ui/shell-settings.test.d.ts +0 -2
- package/dist/ui/shell-settings.test.d.ts.map +0 -1
- package/dist/ui/shell-settings.test.js +0 -108
- package/dist/ui/shell-settings.test.js.map +0 -1
- package/dist/ui/shell-widgets.d.ts +0 -14
- package/dist/ui/shell-widgets.d.ts.map +0 -1
- package/dist/ui/shell-widgets.js +0 -18
- package/dist/ui/shell-widgets.js.map +0 -1
- package/dist/ui/table.d.ts +0 -61
- package/dist/ui/table.d.ts.map +0 -1
- package/dist/ui/table.js +0 -43
- package/dist/ui/table.js.map +0 -1
- package/dist/ui/tone-components.test.d.ts +0 -2
- package/dist/ui/tone-components.test.d.ts.map +0 -1
- package/dist/ui/tone-components.test.js +0 -145
- package/dist/ui/tone-components.test.js.map +0 -1
- package/dist/ui/tone-contrast.test.d.ts +0 -2
- package/dist/ui/tone-contrast.test.d.ts.map +0 -1
- package/dist/ui/tone-contrast.test.js +0 -66
- package/dist/ui/tone-contrast.test.js.map +0 -1
- package/dist/ui/toolkit-overlap.test.d.ts +0 -2
- package/dist/ui/toolkit-overlap.test.d.ts.map +0 -1
- package/dist/ui/toolkit-overlap.test.js +0 -86
- package/dist/ui/toolkit-overlap.test.js.map +0 -1
- package/dist/ui/use-apply-theme.test.d.ts +0 -2
- package/dist/ui/use-apply-theme.test.d.ts.map +0 -1
- package/dist/ui/use-apply-theme.test.js +0 -102
- package/dist/ui/use-apply-theme.test.js.map +0 -1
- package/dist/ui/use-bpmn-viewer.test.d.ts +0 -2
- package/dist/ui/use-bpmn-viewer.test.d.ts.map +0 -1
- package/dist/ui/use-bpmn-viewer.test.js +0 -239
- package/dist/ui/use-bpmn-viewer.test.js.map +0 -1
- package/dist/ui/use-detail-view.test.d.ts +0 -2
- package/dist/ui/use-detail-view.test.d.ts.map +0 -1
- package/dist/ui/use-detail-view.test.js +0 -178
- package/dist/ui/use-detail-view.test.js.map +0 -1
- package/dist/ui/use-paged-list-view.test.d.ts +0 -2
- package/dist/ui/use-paged-list-view.test.d.ts.map +0 -1
- package/dist/ui/use-paged-list-view.test.js +0 -136
- package/dist/ui/use-paged-list-view.test.js.map +0 -1
- package/dist/ui/use-paged-view-data.seeded.test.d.ts +0 -2
- package/dist/ui/use-paged-view-data.seeded.test.d.ts.map +0 -1
- package/dist/ui/use-paged-view-data.seeded.test.js +0 -144
- package/dist/ui/use-paged-view-data.seeded.test.js.map +0 -1
- package/dist/ui/use-paged-view-data.test.d.ts +0 -2
- package/dist/ui/use-paged-view-data.test.d.ts.map +0 -1
- package/dist/ui/use-paged-view-data.test.js +0 -330
- package/dist/ui/use-paged-view-data.test.js.map +0 -1
- package/dist/ui/use-reset-on-change.d.ts +0 -22
- package/dist/ui/use-reset-on-change.d.ts.map +0 -1
- package/dist/ui/use-reset-on-change.js +0 -29
- package/dist/ui/use-reset-on-change.js.map +0 -1
- package/dist/ui/use-reset-on-change.test.d.ts +0 -2
- package/dist/ui/use-reset-on-change.test.d.ts.map +0 -1
- package/dist/ui/use-reset-on-change.test.js +0 -61
- package/dist/ui/use-reset-on-change.test.js.map +0 -1
- package/dist/ui/use-view-data.seeded.test.d.ts +0 -2
- package/dist/ui/use-view-data.seeded.test.d.ts.map +0 -1
- package/dist/ui/use-view-data.seeded.test.js +0 -168
- package/dist/ui/use-view-data.seeded.test.js.map +0 -1
- package/dist/ui/view-data-state.test.d.ts +0 -2
- package/dist/ui/view-data-state.test.d.ts.map +0 -1
- package/dist/ui/view-data-state.test.js +0 -62
- package/dist/ui/view-data-state.test.js.map +0 -1
- package/dist/ui/view-meta.test.d.ts +0 -2
- package/dist/ui/view-meta.test.d.ts.map +0 -1
- package/dist/ui/view-meta.test.js +0 -92
- package/dist/ui/view-meta.test.js.map +0 -1
- package/dist/ui/widget-shell.test.d.ts +0 -2
- package/dist/ui/widget-shell.test.d.ts.map +0 -1
- package/dist/ui/widget-shell.test.js +0 -41
- package/dist/ui/widget-shell.test.js.map +0 -1
- package/dist/widget-meta-defaults.d.ts +0 -48
- package/dist/widget-meta-defaults.d.ts.map +0 -1
- package/dist/widget-meta-defaults.js +0 -80
- package/dist/widget-meta-defaults.js.map +0 -1
- package/dist/widget-meta-defaults.test.d.ts +0 -2
- package/dist/widget-meta-defaults.test.d.ts.map +0 -1
- package/dist/widget-meta-defaults.test.js +0 -196
- package/dist/widget-meta-defaults.test.js.map +0 -1
- package/dist/widget-tool-bindings.test.d.ts +0 -2
- package/dist/widget-tool-bindings.test.d.ts.map +0 -1
- package/dist/widget-tool-bindings.test.js +0 -83
- package/dist/widget-tool-bindings.test.js.map +0 -1
- package/dist/with-tool-errors.test.d.ts +0 -2
- package/dist/with-tool-errors.test.d.ts.map +0 -1
- package/dist/with-tool-errors.test.js +0 -38
- package/dist/with-tool-errors.test.js.map +0 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type CallObserver } from "./call-observer.js";
|
|
2
|
+
import { type HostWidgets } from "./host-widgets.js";
|
|
3
|
+
import type { ViewComponent, ViewMap } from "./views.js";
|
|
4
|
+
export interface MountViewOptions {
|
|
5
|
+
/** The view's name (= its show tool's name); the stripped-result recovery re-runs it. */
|
|
6
|
+
name: string | undefined;
|
|
7
|
+
view: ViewComponent | undefined;
|
|
8
|
+
hostWidgets?: HostWidgets;
|
|
9
|
+
}
|
|
10
|
+
export interface MountViewsOptions {
|
|
11
|
+
views: ViewMap;
|
|
12
|
+
hostWidgets?: HostWidgets;
|
|
13
|
+
}
|
|
14
|
+
/** One view, no map: the observer listens BEFORE the runtime connects, so it sees every notification. */
|
|
15
|
+
export declare function mountView(options: MountViewOptions): void;
|
|
16
|
+
/** The view the document's prelude names; an unknown name renders the "can't show" state. */
|
|
17
|
+
export declare function mountViews({ views, hostWidgets }: MountViewsOptions): void;
|
|
18
|
+
/**
|
|
19
|
+
* The provider order is load-bearing: the host first (every hook below reads it), ONE query client
|
|
20
|
+
* per document, the document layer (theme, fonts, the inline budget box), the gate that resolves
|
|
21
|
+
* the locale from the host context, then the kit's icon stroke and toasts.
|
|
22
|
+
*/
|
|
23
|
+
export declare function ViewRoot({ name, view, hostWidgets, observer, }: MountViewOptions & {
|
|
24
|
+
observer: CallObserver | null;
|
|
25
|
+
}): import("react").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=view-root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-root.d.ts","sourceRoot":"","sources":["../../src/ui/view-root.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAG3E,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAKzE,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAExD,MAAM,WAAW,gBAAgB;IAC/B,yFAAyF;IACzF,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,IAAI,EAAE,aAAa,GAAG,SAAS,CAAA;IAC/B,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B;AAID,yGAAyG;AACzG,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAMzD;AAED,6FAA6F;AAC7F,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,iBAAiB,GAAG,IAAI,CAI1E;AAUD;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,QAAQ,GACT,EAAE,gBAAgB,GAAG;IAAE,QAAQ,EAAE,YAAY,GAAG,IAAI,CAAA;CAAE,+BAqBtD"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The bundle root (the second widget-shell file that imports `mcp-use/react`; the other is
|
|
4
|
+
* `mcp-use-host.tsx`). `mountViews` picks the view the document's prelude names; `mountView`
|
|
5
|
+
* mounts one view without a map, the entry a per-view build would call.
|
|
6
|
+
*/
|
|
7
|
+
import { StrictMode, useState } from "react";
|
|
8
|
+
import { QueryClientProvider } from "@tanstack/react-query";
|
|
9
|
+
import { ToastProvider, ICON_STROKE } from "@miragon/pulse-ui";
|
|
10
|
+
import { LucideProvider } from "lucide-react";
|
|
11
|
+
import { bootstrapView } from "mcp-use/react";
|
|
12
|
+
import { readViewName } from "../protocol/view-name.js";
|
|
13
|
+
import { installCallObserver } from "./call-observer.js";
|
|
14
|
+
import { SHELL_VIEW_CONFIG } from "./display-mode-toggle.js";
|
|
15
|
+
import { HostDocument } from "./host-document.js";
|
|
16
|
+
import { HostWidgetsProvider } from "./host-widgets.js";
|
|
17
|
+
import { McpUseViewHost, useMcpUseViewCall } from "./mcp-use-host.js";
|
|
18
|
+
import { LocaleGate } from "./locale-gate.js";
|
|
19
|
+
import { createViewQueryClient } from "./tool-query.js";
|
|
20
|
+
import { ViewFrame } from "./view-frame.js";
|
|
21
|
+
const NO_WIDGETS = {};
|
|
22
|
+
/** One view, no map: the observer listens BEFORE the runtime connects, so it sees every notification. */
|
|
23
|
+
export function mountView(options) {
|
|
24
|
+
const observer = installCallObserver();
|
|
25
|
+
bootstrapView({
|
|
26
|
+
default: () => _jsx(ViewRoot, { ...options, observer: observer }),
|
|
27
|
+
viewConfig: SHELL_VIEW_CONFIG,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/** The view the document's prelude names; an unknown name renders the "can't show" state. */
|
|
31
|
+
export function mountViews({ views, hostWidgets }) {
|
|
32
|
+
const name = readViewName();
|
|
33
|
+
const view = name !== undefined && Object.hasOwn(views, name) ? views[name] : undefined;
|
|
34
|
+
mountView({ name, view, hostWidgets });
|
|
35
|
+
}
|
|
36
|
+
function McpUseViewFrame({ name, view, observer, }) {
|
|
37
|
+
return _jsx(ViewFrame, { call: useMcpUseViewCall(name, observer), view: view });
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The provider order is load-bearing: the host first (every hook below reads it), ONE query client
|
|
41
|
+
* per document, the document layer (theme, fonts, the inline budget box), the gate that resolves
|
|
42
|
+
* the locale from the host context, then the kit's icon stroke and toasts.
|
|
43
|
+
*/
|
|
44
|
+
export function ViewRoot({ name, view, hostWidgets, observer, }) {
|
|
45
|
+
const [client] = useState(createViewQueryClient);
|
|
46
|
+
return (_jsx(StrictMode, { children: _jsx(McpUseViewHost, { children: _jsx(QueryClientProvider, { client: client, children: _jsx(HostDocument, { children: _jsx(LocaleGate, { children: _jsx(LucideProvider, { strokeWidth: ICON_STROKE, children: _jsx(ToastProvider, { children: _jsx(HostWidgetsProvider, { widgets: hostWidgets ?? NO_WIDGETS, children: _jsx(McpUseViewFrame, { name: name, view: view, observer: observer }) }) }) }) }) }) }) }) }));
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=view-root.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-root.js","sourceRoot":"","sources":["../../src/ui/view-root.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,EAAE,mBAAmB,EAAqB,MAAM,oBAAoB,CAAA;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,mBAAmB,EAAoB,MAAM,mBAAmB,CAAA;AACzE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAe3C,MAAM,UAAU,GAAgB,EAAE,CAAA;AAElC,yGAAyG;AACzG,MAAM,UAAU,SAAS,CAAC,OAAyB;IACjD,MAAM,QAAQ,GAAG,mBAAmB,EAAE,CAAA;IACtC,aAAa,CAAC;QACZ,OAAO,EAAE,GAAG,EAAE,CAAC,KAAC,QAAQ,OAAK,OAAO,EAAE,QAAQ,EAAE,QAAQ,GAAI;QAC5D,UAAU,EAAE,iBAAiB;KAC9B,CAAC,CAAA;AACJ,CAAC;AAED,6FAA6F;AAC7F,MAAM,UAAU,UAAU,CAAC,EAAE,KAAK,EAAE,WAAW,EAAqB;IAClE,MAAM,IAAI,GAAG,YAAY,EAAE,CAAA;IAC3B,MAAM,IAAI,GAAG,IAAI,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;IACvF,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAA;AACxC,CAAC;AAED,SAAS,eAAe,CAAC,EACvB,IAAI,EACJ,IAAI,EACJ,QAAQ,GACkE;IAC1E,OAAO,KAAC,SAAS,IAAC,IAAI,EAAE,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,GAAI,CAAA;AAC3E,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,EACvB,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,QAAQ,GAC6C;IACrD,MAAM,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,qBAAqB,CAAC,CAAA;IAChD,OAAO,CACL,KAAC,UAAU,cACT,KAAC,cAAc,cACb,KAAC,mBAAmB,IAAC,MAAM,EAAE,MAAM,YACjC,KAAC,YAAY,cACX,KAAC,UAAU,cACT,KAAC,cAAc,IAAC,WAAW,EAAE,WAAW,YACtC,KAAC,aAAa,cACZ,KAAC,mBAAmB,IAAC,OAAO,EAAE,WAAW,IAAI,UAAU,YACrD,KAAC,eAAe,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,GAAI,GAC3C,GACR,GACD,GACN,GACA,GACK,GACP,GACN,CACd,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
/** A view gets its show tool's `structuredContent` as `data`; it composes its own widgets. */
|
|
3
|
+
export interface ViewProps<TData> {
|
|
4
|
+
data: TData;
|
|
5
|
+
}
|
|
6
|
+
/** A function type (contravariant in `data`), so every `ViewComponent<X>` is a `ViewComponent`. */
|
|
7
|
+
export type ViewComponent<TData = never> = (props: ViewProps<TData>) => ReactNode;
|
|
8
|
+
/** Key = view name = show tool name (`showToolBinding`). */
|
|
9
|
+
export type ViewMap = Readonly<Record<string, ViewComponent>>;
|
|
10
|
+
/**
|
|
11
|
+
* The static-layout helper: full-width rows, each widget in its own shell. Every row sits in its
|
|
12
|
+
* own error boundary, so one crashing widget shows its fallback while its siblings stay up.
|
|
13
|
+
*/
|
|
14
|
+
export declare function ViewStack({ children }: {
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
}): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=views.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../src/ui/views.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAGhE,8FAA8F;AAC9F,MAAM,WAAW,SAAS,CAAC,KAAK;IAC9B,IAAI,EAAE,KAAK,CAAA;CACZ;AAED,mGAAmG;AACnG,MAAM,MAAM,aAAa,CAAC,KAAK,GAAG,KAAK,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,KAAK,SAAS,CAAA;AAEjF,4DAA4D;AAC5D,MAAM,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAA;AAE7D;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAU9D"}
|
package/dist/ui/views.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Children, isValidElement } from "react";
|
|
3
|
+
import { ViewErrorBoundary } from "./view-error-boundary.js";
|
|
4
|
+
/**
|
|
5
|
+
* The static-layout helper: full-width rows, each widget in its own shell. Every row sits in its
|
|
6
|
+
* own error boundary, so one crashing widget shows its fallback while its siblings stay up.
|
|
7
|
+
*/
|
|
8
|
+
export function ViewStack({ children }) {
|
|
9
|
+
return (_jsx("div", { className: "flex min-w-0 flex-col gap-4", children: Children.toArray(children).map((child, index) => (_jsx(ViewErrorBoundary, { children: child }, isValidElement(child) ? child.key : index))) }));
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=views.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"views.js","sourceRoot":"","sources":["../../src/ui/views.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAkB,MAAM,OAAO,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAa5D;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,EAAE,QAAQ,EAA2B;IAC7D,OAAO,CACL,cAAK,SAAS,EAAC,6BAA6B,YACzC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAChD,KAAC,iBAAiB,cACf,KAAK,IADgB,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAE7C,CACrB,CAAC,GACE,CACP,CAAA;AACH,CAAC"}
|
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
/** Provide the host-reported display mode to the widget tree (bundle root only). */
|
|
3
2
|
export declare function DisplayModeProvider({ mode, children }: {
|
|
4
3
|
mode: string;
|
|
5
4
|
children: ReactNode;
|
|
6
5
|
}): import("react").JSX.Element;
|
|
7
|
-
/** The host-reported display mode for this subtree (`"inline"` outside a host). */
|
|
8
6
|
export declare function useHostDisplayMode(): string;
|
|
9
|
-
/**
|
|
10
|
-
* Top-level container for a Miragon-styled widget. Sets max-width, padding,
|
|
11
|
-
* background, and the default text/font conventions used by all dashboards.
|
|
12
|
-
* Nesting-aware: an inner WidgetShell keeps only the section stack (gap), so a
|
|
13
|
-
* widget that owns a shell can be embedded under an app-level shell unchanged.
|
|
14
|
-
*
|
|
15
|
-
* Padding on the CI grid: 24 px, 16 px below 640 px (an inline view on a
|
|
16
|
-
* phone or in a narrow chat column). Every child may shrink below its content
|
|
17
|
-
* (`min-w-0`), so a wide table scrolls inside its own region (`ListTable`)
|
|
18
|
-
* instead of widening the document.
|
|
19
|
-
*/
|
|
7
|
+
/** Every child may shrink (`min-w-0`), so a wide table scrolls in its own region instead of widening the document. */
|
|
20
8
|
export declare function WidgetShell({ children, className }: {
|
|
21
9
|
children: ReactNode;
|
|
22
10
|
className?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-shell.d.ts","sourceRoot":"","sources":["../../src/ui/widget-shell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"widget-shell.d.ts","sourceRoot":"","sources":["../../src/ui/widget-shell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AASjE,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAE5F;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED,sHAAsH;AACtH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BAoB/F"}
|
package/dist/ui/widget-shell.js
CHANGED
|
@@ -1,46 +1,21 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useContext } from "react";
|
|
3
|
-
import { cn } from "@miragon/
|
|
4
|
-
/**
|
|
5
|
-
* True below an already-rendered WidgetShell. Widgets wrap themselves in a
|
|
6
|
-
* shell so they work standalone; composed hosts (the cockpit) also wrap the
|
|
7
|
-
* whole app in one — without this flag every embedded widget would stack a
|
|
8
|
-
* second layer of background, padding and max-width inside the first.
|
|
9
|
-
*/
|
|
3
|
+
import { cn } from "@miragon/pulse-ui";
|
|
4
|
+
/** Without this flag every embedded widget would stack a second background and padding inside the first. */
|
|
10
5
|
const InsideShellContext = createContext(false);
|
|
11
|
-
/**
|
|
12
|
-
* The host's display mode for the current render. mcp-use 2.x's
|
|
13
|
-
* `useDisplayMode` only works inside a `bootstrapView`-mounted view, so the
|
|
14
|
-
* value is provided from the bundle root (where that hook is legal) and
|
|
15
|
-
* defaults to `"inline"` everywhere else (unit renders, fixtures, standalone
|
|
16
|
-
* embeds) — exactly the pre-2.x fallback behaviour.
|
|
17
|
-
*/
|
|
6
|
+
/** mcp-use 2.x's `useDisplayMode` only works under `bootstrapView`, so the bundle root provides it. */
|
|
18
7
|
const DisplayModeContext = createContext("inline");
|
|
19
|
-
/** Provide the host-reported display mode to the widget tree (bundle root only). */
|
|
20
8
|
export function DisplayModeProvider({ mode, children }) {
|
|
21
9
|
return _jsx(DisplayModeContext.Provider, { value: mode, children: children });
|
|
22
10
|
}
|
|
23
|
-
/** The host-reported display mode for this subtree (`"inline"` outside a host). */
|
|
24
11
|
export function useHostDisplayMode() {
|
|
25
12
|
return useContext(DisplayModeContext);
|
|
26
13
|
}
|
|
27
|
-
/**
|
|
28
|
-
* Top-level container for a Miragon-styled widget. Sets max-width, padding,
|
|
29
|
-
* background, and the default text/font conventions used by all dashboards.
|
|
30
|
-
* Nesting-aware: an inner WidgetShell keeps only the section stack (gap), so a
|
|
31
|
-
* widget that owns a shell can be embedded under an app-level shell unchanged.
|
|
32
|
-
*
|
|
33
|
-
* Padding on the CI grid: 24 px, 16 px below 640 px (an inline view on a
|
|
34
|
-
* phone or in a narrow chat column). Every child may shrink below its content
|
|
35
|
-
* (`min-w-0`), so a wide table scrolls inside its own region (`ListTable`)
|
|
36
|
-
* instead of widening the document.
|
|
37
|
-
*/
|
|
14
|
+
/** Every child may shrink (`min-w-0`), so a wide table scrolls in its own region instead of widening the document. */
|
|
38
15
|
export function WidgetShell({ children, className }) {
|
|
39
16
|
const nested = useContext(InsideShellContext);
|
|
40
17
|
const displayMode = useContext(DisplayModeContext);
|
|
41
|
-
// Nested:
|
|
42
|
-
// owns those), but keep the internal section stack — widgets rely on the
|
|
43
|
-
// shell's gap for the spacing between their own header/KPIs/tables.
|
|
18
|
+
// Nested: keep the section stack; widgets rely on the shell's gap.
|
|
44
19
|
if (nested) {
|
|
45
20
|
return _jsx("div", { className: cn("flex min-w-0 flex-col gap-6", className), children: children });
|
|
46
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-shell.js","sourceRoot":"","sources":["../../src/ui/widget-shell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAA;AACjE,OAAO,EAAE,EAAE,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"widget-shell.js","sourceRoot":"","sources":["../../src/ui/widget-shell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAA;AACjE,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAA;AAEtC,4GAA4G;AAC5G,MAAM,kBAAkB,GAAG,aAAa,CAAC,KAAK,CAAC,CAAA;AAE/C,uGAAuG;AACvG,MAAM,kBAAkB,GAAG,aAAa,CAAS,QAAQ,CAAC,CAAA;AAE1D,MAAM,UAAU,mBAAmB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAyC;IAC3F,OAAO,KAAC,kBAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,YAAG,QAAQ,GAA+B,CAAA;AAC3F,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,OAAO,UAAU,CAAC,kBAAkB,CAAC,CAAA;AACvC,CAAC;AAED,sHAAsH;AACtH,MAAM,UAAU,WAAW,CAAC,EAAE,QAAQ,EAAE,SAAS,EAA+C;IAC9F,MAAM,MAAM,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAA;IAC7C,MAAM,WAAW,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAA;IAClD,mEAAmE;IACnE,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,cAAK,SAAS,EAAE,EAAE,CAAC,6BAA6B,EAAE,SAAS,CAAC,YAAG,QAAQ,GAAO,CAAA;IACvF,CAAC;IAED,MAAM,YAAY,GAAG,WAAW,KAAK,YAAY,CAAA;IACjD,OAAO,CACL,KAAC,kBAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,YACtC,cAAK,SAAS,EAAE,EAAE,CAAC,iDAAiD,EAAE,SAAS,CAAC,YAC9E,cACE,SAAS,EAAE,kDAAkD,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,WAAW,EAAE,YAEvG,QAAQ,GACL,GACF,GACsB,CAC/B,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The packages a host's view bundle must resolve to ONE instance: spread it into Vite's
|
|
3
|
+
* `resolve.dedupe` (`dedupe: [...VIEW_BUNDLE_DEDUPE]`) in every server that bundles views.
|
|
4
|
+
*
|
|
5
|
+
* pnpm installs a package once per peer set, so the connectors, your own modules and the app
|
|
6
|
+
* can each see their own copy of these. Each copy carries its own React context or module
|
|
7
|
+
* state: the view root (widget-shell's copy) provides the view host and the ONE `QueryClient`,
|
|
8
|
+
* but a widget that reads another copy finds no host and no client, and every in-widget query
|
|
9
|
+
* hangs on "Loading…". The same holds for the view runtime in `mcp-use/react`, the locale and
|
|
10
|
+
* toast contexts of `@miragon/pulse-ui`, the view runtime of this package and the
|
|
11
|
+
* `LucideProvider` of `lucide-react` (dedupe a 1.x copy: 0.x has no `LucideProvider`).
|
|
12
|
+
* A version bump of this package ships a change to the list; never trim it in a host.
|
|
13
|
+
*/
|
|
14
|
+
export declare const VIEW_BUNDLE_DEDUPE: readonly ["react", "react-dom", "@tanstack/react-query", "mcp-use", "@miragon/pulse-ui", "@miragon/pulse-widget-shell", "lucide-react"];
|
|
15
|
+
//# sourceMappingURL=view-bundle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-bundle.d.ts","sourceRoot":"","sources":["../src/view-bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,kBAAkB,yIAQrB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The packages a host's view bundle must resolve to ONE instance: spread it into Vite's
|
|
3
|
+
* `resolve.dedupe` (`dedupe: [...VIEW_BUNDLE_DEDUPE]`) in every server that bundles views.
|
|
4
|
+
*
|
|
5
|
+
* pnpm installs a package once per peer set, so the connectors, your own modules and the app
|
|
6
|
+
* can each see their own copy of these. Each copy carries its own React context or module
|
|
7
|
+
* state: the view root (widget-shell's copy) provides the view host and the ONE `QueryClient`,
|
|
8
|
+
* but a widget that reads another copy finds no host and no client, and every in-widget query
|
|
9
|
+
* hangs on "Loading…". The same holds for the view runtime in `mcp-use/react`, the locale and
|
|
10
|
+
* toast contexts of `@miragon/pulse-ui`, the view runtime of this package and the
|
|
11
|
+
* `LucideProvider` of `lucide-react` (dedupe a 1.x copy: 0.x has no `LucideProvider`).
|
|
12
|
+
* A version bump of this package ships a change to the list; never trim it in a host.
|
|
13
|
+
*/
|
|
14
|
+
export const VIEW_BUNDLE_DEDUPE = [
|
|
15
|
+
"react",
|
|
16
|
+
"react-dom",
|
|
17
|
+
"@tanstack/react-query",
|
|
18
|
+
"mcp-use",
|
|
19
|
+
"@miragon/pulse-ui",
|
|
20
|
+
"@miragon/pulse-widget-shell",
|
|
21
|
+
"lucide-react",
|
|
22
|
+
];
|
|
23
|
+
//# sourceMappingURL=view-bundle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-bundle.js","sourceRoot":"","sources":["../src/view-bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,OAAO;IACP,WAAW;IACX,uBAAuB;IACvB,SAAS;IACT,mBAAmB;IACnB,6BAA6B;IAC7B,cAAc;CACN,CAAA"}
|
package/dist/view-results.d.ts
CHANGED
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
import { type ComposedViewInput, type SingleWidgetViewInput } from "@miragon/mcp-toolkit-core";
|
|
2
1
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* `/server` barrel that re-exports them.
|
|
2
|
+
* A type alias, NOT an interface: TypeScript synthesizes the index signature mcp-use's tool
|
|
3
|
+
* callback expects for anonymous types only.
|
|
6
4
|
*/
|
|
7
|
-
|
|
8
|
-
* mcp-use's raw `server.tool()` callback expects a result with an implicit
|
|
9
|
-
* string index signature, which TypeScript synthesizes for anonymous object
|
|
10
|
-
* types but NOT for the toolkit's named `ViewToolResult` interface. Re-annotate
|
|
11
|
-
* the builders' return as that anonymous shape (the runtime value is the
|
|
12
|
-
* toolkit's, unchanged) so the eager `*_show_*` handlers stay assignable.
|
|
13
|
-
*/
|
|
14
|
-
type ViewResult = {
|
|
5
|
+
export type ViewResult = {
|
|
15
6
|
content: {
|
|
16
7
|
type: "text";
|
|
17
8
|
text: string;
|
|
18
9
|
}[];
|
|
19
10
|
structuredContent: Record<string, unknown>;
|
|
20
11
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
/**
|
|
13
|
+
* A show tool's result: `structuredContent` IS the data its view renders (the view is picked by
|
|
14
|
+
* its name, the tool's name); the text is what the model reads: a short summary or, where the
|
|
15
|
+
* model needs the figures, the result as compact JSON.
|
|
16
|
+
*/
|
|
17
|
+
export declare function buildViewResult(data: object, summary: string): ViewResult;
|
|
24
18
|
type FeedResult = {
|
|
25
19
|
content: {
|
|
26
20
|
type: "text";
|
|
@@ -28,14 +22,9 @@ type FeedResult = {
|
|
|
28
22
|
}[];
|
|
29
23
|
};
|
|
30
24
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* of being returned to the in-widget `callTool()` (architecture invariant 5).
|
|
35
|
-
* Text, not `structuredContent`: the widgets read either (the toolkit's
|
|
36
|
-
* `parseToolResult` falls back to the JSON text), a host that strips
|
|
37
|
-
* `structuredContent` keeps text, and sending both doubled every feed.
|
|
38
|
-
* The single shared implementation for every module's data feeds.
|
|
25
|
+
* No widget `_meta`: a widget-tool result would be rendered by the host instead
|
|
26
|
+
* of reaching the in-widget `callTool()`. Text only: hosts may strip
|
|
27
|
+
* `structuredContent`, and sending both doubled every feed.
|
|
39
28
|
*/
|
|
40
29
|
export declare const buildDataFeedResult: (data: Record<string, unknown>) => FeedResult;
|
|
41
30
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-results.d.ts","sourceRoot":"","sources":["../src/view-results.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"view-results.d.ts","sourceRoot":"","sources":["../src/view-results.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACzC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC3C,CAAA;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,UAAU,CAKzE;AAED,KAAK,UAAU,GAAG;IAAE,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,CAAA;AAE/D;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,UAElE,CAAA"}
|
package/dist/view-results.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { buildComposedView as buildComposedViewCore, buildSingleWidgetView as buildSingleWidgetViewCore, } from "@miragon/mcp-toolkit-core";
|
|
2
|
-
export const buildSingleWidgetView = (input) => buildSingleWidgetViewCore(input);
|
|
3
|
-
export const buildComposedView = (input) => buildComposedViewCore(input);
|
|
4
1
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
* A show tool's result: `structuredContent` IS the data its view renders (the view is picked by
|
|
3
|
+
* its name, the tool's name); the text is what the model reads: a short summary or, where the
|
|
4
|
+
* model needs the figures, the result as compact JSON.
|
|
5
|
+
*/
|
|
6
|
+
export function buildViewResult(data, summary) {
|
|
7
|
+
return {
|
|
8
|
+
content: [{ type: "text", text: summary }],
|
|
9
|
+
structuredContent: data,
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* No widget `_meta`: a widget-tool result would be rendered by the host instead
|
|
14
|
+
* of reaching the in-widget `callTool()`. Text only: hosts may strip
|
|
15
|
+
* `structuredContent`, and sending both doubled every feed.
|
|
13
16
|
*/
|
|
14
17
|
export const buildDataFeedResult = (data) => ({
|
|
15
18
|
content: [{ type: "text", text: JSON.stringify(data) }],
|
package/dist/view-results.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-results.js","sourceRoot":"","sources":["../src/view-results.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"view-results.js","sourceRoot":"","sources":["../src/view-results.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,IAAY,EAAE,OAAe;IAC3D,OAAO;QACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;QAC1C,iBAAiB,EAAE,IAA+B;KACnD,CAAA;AACH,CAAC;AAID;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAA6B,EAAc,EAAE,CAAC,CAAC;IACjF,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;CACxD,CAAC,CAAA"}
|
|
@@ -1,28 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
/** mcp-use's scheme for view resources; it exports none, and the widget-contract e2e pins it. */
|
|
3
|
+
export declare const VIEW_RESOURCE_URI_PREFIX = "ui://views/";
|
|
4
|
+
export declare function viewResourceUri(viewName: string): string;
|
|
2
5
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* expectations on the first mcp-use change.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* View binding + Apps-SDK `_meta` half for a widget-RENDERING (model-visible)
|
|
11
|
-
* tool — spread into the `server.tool` definition of every `show_*` tool. The
|
|
12
|
-
* view name IS the tool name: mcp-use derives the entire MCP Apps half of the
|
|
13
|
-
* wire contract (`_meta.ui.resourceUri`, flat `ui/resourceUri`, resource CSP)
|
|
14
|
-
* from the first-class `view` binding — never stamp `ui` keys by hand, mcp-use
|
|
15
|
-
* overwrites that namespace on `tools/list`. What mcp-use does NOT derive is
|
|
16
|
-
* the OpenAI Apps SDK half (`openai/*`): `appsSdkMeta` builds it, pointing
|
|
17
|
-
* `openai/outputTemplate` at the same `ui://views/<name>.html` resource. The
|
|
18
|
-
* `outputSchema` is required by mcp-use for any view-bound tool; `passthrough`
|
|
19
|
-
* matches the free-form `structuredContent` the view builders return without
|
|
20
|
-
* stripping keys on SDK-side validation.
|
|
21
|
-
*
|
|
22
|
-
* The view resource carries its title as `description` (hosts that list
|
|
23
|
-
* resources show it) and asks the host for a border (`prefersBorder`, owner
|
|
24
|
-
* decision 2026-10-12, #344 N159): the cards draw none of their own, so a
|
|
25
|
-
* frame sets them off from the chat around them.
|
|
6
|
+
* mcp-use derives the MCP Apps half of `_meta` from `view` and overwrites `ui` on tools/list; this
|
|
7
|
+
* stamps only the OpenAI Apps SDK half (`openai/*`), in the wire order hosts read. mcp-use requires
|
|
8
|
+
* an `outputSchema`; `passthrough` keeps free-form `structuredContent` intact. `prefersBorder`: the
|
|
9
|
+
* cards draw no frame of their own (#344).
|
|
26
10
|
*/
|
|
27
11
|
export declare function showToolBinding(name: string, title: string): {
|
|
28
12
|
view: {
|
|
@@ -31,36 +15,23 @@ export declare function showToolBinding(name: string, title: string): {
|
|
|
31
15
|
prefersBorder: boolean;
|
|
32
16
|
};
|
|
33
17
|
outputSchema: z.ZodObject<{}, z.core.$loose>;
|
|
34
|
-
_meta:
|
|
18
|
+
_meta: {
|
|
19
|
+
"openai/outputTemplate": string;
|
|
20
|
+
"openai/toolInvocation/invoking": string;
|
|
21
|
+
"openai/toolInvocation/invoked": string;
|
|
22
|
+
"openai/widgetAccessible": boolean;
|
|
23
|
+
"openai/resultCanProduceWidget": boolean;
|
|
24
|
+
};
|
|
35
25
|
};
|
|
36
26
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* mcp-use STRIP an unknown key before the handler runs: a misnamed optional
|
|
41
|
-
* filter then silently widens the result (#329). Strict, the schema is
|
|
42
|
-
* advertised with `additionalProperties: false`, and an unknown key fails
|
|
43
|
-
* validation with the toolkit's own message — every unknown key plus every
|
|
44
|
-
* valid one — as an `isError` result the model can correct in one retry.
|
|
45
|
-
*
|
|
46
|
-
* The message mirrors the toolkit's `unknownKeysMessage` (not exported);
|
|
47
|
-
* `widget-tool-bindings.test.ts` pins the two to the same text.
|
|
27
|
+
* A non-strict `z.object` lets mcp-use STRIP an unknown key, so a misnamed
|
|
28
|
+
* filter silently widens the result (#329). The registrar and every raw
|
|
29
|
+
* registration take this one schema.
|
|
48
30
|
*/
|
|
49
31
|
export declare function strictToolInput<TShape extends z.ZodRawShape>(shape: TShape): z.ZodObject<{ -readonly [P in keyof TShape]: TShape[P]; }, z.core.$strict>;
|
|
50
32
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* field (emitted as SEP-1865 `_meta.ui.visibility: ["app"]`): conforming hosts
|
|
54
|
-
* hide these tools from the LLM tool surface while keeping them callable from
|
|
55
|
-
* widgets via `callTool`; the "Internal JSON feed" descriptions stay as
|
|
56
|
-
* fallback for non-conforming hosts. Deliberately no `view` binding — the
|
|
57
|
-
* feeds must return JSON, not render UI.
|
|
58
|
-
*
|
|
59
|
-
* `openai/widgetAccessible` covers the Apps-SDK half of the dual contract:
|
|
60
|
-
* those hosts only allow in-widget callTool on tools carrying the key — a
|
|
61
|
-
* feed without it renders fine but every pagination/search/refresh is denied.
|
|
62
|
-
* The key does NOT render anything (no outputTemplate), so the feeds stay
|
|
63
|
-
* JSON-only. mcp-use passes non-`ui` `_meta` entries through untouched.
|
|
33
|
+
* SEP-1865 hosts hide `visibility: "app"` tools from the LLM. Apps-SDK hosts
|
|
34
|
+
* deny in-widget callTool without `openai/widgetAccessible`; it renders nothing.
|
|
64
35
|
*/
|
|
65
36
|
export declare const appOnly: {
|
|
66
37
|
visibility: "app";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-tool-bindings.d.ts","sourceRoot":"","sources":["../src/widget-tool-bindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"widget-tool-bindings.d.ts","sourceRoot":"","sources":["../src/widget-tool-bindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,iGAAiG;AACjG,eAAO,MAAM,wBAAwB,gBAAgB,CAAA;AAErD,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;;;;;;;;;;;;;;EAY1D;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,SAAS,CAAC,CAAC,WAAW,EAAE,KAAK,EAAE,MAAM,8EAM1E;AAUD;;;GAGG;AACH,eAAO,MAAM,OAAO;;;;;CAGnB,CAAA"}
|
|
@@ -1,49 +1,32 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* a module that hand-rolls these drifts out of the widget-contract e2e test's
|
|
8
|
-
* expectations on the first mcp-use change.
|
|
9
|
-
*/
|
|
2
|
+
/** mcp-use's scheme for view resources; it exports none, and the widget-contract e2e pins it. */
|
|
3
|
+
export const VIEW_RESOURCE_URI_PREFIX = "ui://views/";
|
|
4
|
+
export function viewResourceUri(viewName) {
|
|
5
|
+
return `${VIEW_RESOURCE_URI_PREFIX}${viewName}.html`;
|
|
6
|
+
}
|
|
10
7
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* from the first-class `view` binding — never stamp `ui` keys by hand, mcp-use
|
|
16
|
-
* overwrites that namespace on `tools/list`. What mcp-use does NOT derive is
|
|
17
|
-
* the OpenAI Apps SDK half (`openai/*`): `appsSdkMeta` builds it, pointing
|
|
18
|
-
* `openai/outputTemplate` at the same `ui://views/<name>.html` resource. The
|
|
19
|
-
* `outputSchema` is required by mcp-use for any view-bound tool; `passthrough`
|
|
20
|
-
* matches the free-form `structuredContent` the view builders return without
|
|
21
|
-
* stripping keys on SDK-side validation.
|
|
22
|
-
*
|
|
23
|
-
* The view resource carries its title as `description` (hosts that list
|
|
24
|
-
* resources show it) and asks the host for a border (`prefersBorder`, owner
|
|
25
|
-
* decision 2026-10-12, #344 N159): the cards draw none of their own, so a
|
|
26
|
-
* frame sets them off from the chat around them.
|
|
8
|
+
* mcp-use derives the MCP Apps half of `_meta` from `view` and overwrites `ui` on tools/list; this
|
|
9
|
+
* stamps only the OpenAI Apps SDK half (`openai/*`), in the wire order hosts read. mcp-use requires
|
|
10
|
+
* an `outputSchema`; `passthrough` keeps free-form `structuredContent` intact. `prefersBorder`: the
|
|
11
|
+
* cards draw no frame of their own (#344).
|
|
27
12
|
*/
|
|
28
13
|
export function showToolBinding(name, title) {
|
|
29
14
|
return {
|
|
30
15
|
view: { name, description: title, prefersBorder: true },
|
|
31
16
|
outputSchema: z.object({}).passthrough(),
|
|
32
|
-
_meta:
|
|
17
|
+
_meta: {
|
|
18
|
+
"openai/outputTemplate": viewResourceUri(name),
|
|
19
|
+
"openai/toolInvocation/invoking": `Loading ${title}…`,
|
|
20
|
+
"openai/toolInvocation/invoked": `${title} ready`,
|
|
21
|
+
"openai/widgetAccessible": true,
|
|
22
|
+
"openai/resultCanProduceWidget": true,
|
|
23
|
+
},
|
|
33
24
|
};
|
|
34
25
|
}
|
|
35
26
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* mcp-use STRIP an unknown key before the handler runs: a misnamed optional
|
|
40
|
-
* filter then silently widens the result (#329). Strict, the schema is
|
|
41
|
-
* advertised with `additionalProperties: false`, and an unknown key fails
|
|
42
|
-
* validation with the toolkit's own message — every unknown key plus every
|
|
43
|
-
* valid one — as an `isError` result the model can correct in one retry.
|
|
44
|
-
*
|
|
45
|
-
* The message mirrors the toolkit's `unknownKeysMessage` (not exported);
|
|
46
|
-
* `widget-tool-bindings.test.ts` pins the two to the same text.
|
|
27
|
+
* A non-strict `z.object` lets mcp-use STRIP an unknown key, so a misnamed
|
|
28
|
+
* filter silently widens the result (#329). The registrar and every raw
|
|
29
|
+
* registration take this one schema.
|
|
47
30
|
*/
|
|
48
31
|
export function strictToolInput(shape) {
|
|
49
32
|
const valid = Object.keys(shape);
|
|
@@ -59,19 +42,8 @@ function unknownKeysMessage(unknown, valid) {
|
|
|
59
42
|
: `${head} Valid keys: ${quote(valid)}.`;
|
|
60
43
|
}
|
|
61
44
|
/**
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* field (emitted as SEP-1865 `_meta.ui.visibility: ["app"]`): conforming hosts
|
|
65
|
-
* hide these tools from the LLM tool surface while keeping them callable from
|
|
66
|
-
* widgets via `callTool`; the "Internal JSON feed" descriptions stay as
|
|
67
|
-
* fallback for non-conforming hosts. Deliberately no `view` binding — the
|
|
68
|
-
* feeds must return JSON, not render UI.
|
|
69
|
-
*
|
|
70
|
-
* `openai/widgetAccessible` covers the Apps-SDK half of the dual contract:
|
|
71
|
-
* those hosts only allow in-widget callTool on tools carrying the key — a
|
|
72
|
-
* feed without it renders fine but every pagination/search/refresh is denied.
|
|
73
|
-
* The key does NOT render anything (no outputTemplate), so the feeds stay
|
|
74
|
-
* JSON-only. mcp-use passes non-`ui` `_meta` entries through untouched.
|
|
45
|
+
* SEP-1865 hosts hide `visibility: "app"` tools from the LLM. Apps-SDK hosts
|
|
46
|
+
* deny in-widget callTool without `openai/widgetAccessible`; it renders nothing.
|
|
75
47
|
*/
|
|
76
48
|
export const appOnly = {
|
|
77
49
|
visibility: "app",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-tool-bindings.js","sourceRoot":"","sources":["../src/widget-tool-bindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"widget-tool-bindings.js","sourceRoot":"","sources":["../src/widget-tool-bindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,iGAAiG;AACjG,MAAM,CAAC,MAAM,wBAAwB,GAAG,aAAa,CAAA;AAErD,MAAM,UAAU,eAAe,CAAC,QAAgB;IAC9C,OAAO,GAAG,wBAAwB,GAAG,QAAQ,OAAO,CAAA;AACtD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,IAAY,EAAE,KAAa;IACzD,OAAO;QACL,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE;QACvD,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE;QACxC,KAAK,EAAE;YACL,uBAAuB,EAAE,eAAe,CAAC,IAAI,CAAC;YAC9C,gCAAgC,EAAE,WAAW,KAAK,GAAG;YACrD,+BAA+B,EAAE,GAAG,KAAK,QAAQ;YACjD,yBAAyB,EAAE,IAAI;YAC/B,+BAA+B,EAAE,IAAI;SACtC;KACF,CAAA;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAA+B,KAAa;IACzE,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAChC,OAAO,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE;QAC3B,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CACf,KAAK,CAAC,IAAI,KAAK,mBAAmB,CAAC,CAAC,CAAC,kBAAkB,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;KACzF,CAAC,CAAA;AACJ,CAAC;AAED,SAAS,kBAAkB,CAAC,OAA0B,EAAE,KAAwB;IAC9E,MAAM,KAAK,GAAG,CAAC,IAAuB,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC5F,MAAM,IAAI,GAAG,cAAc,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAA;IAC/E,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;QACvB,CAAC,CAAC,GAAG,IAAI,gCAAgC;QACzC,CAAC,CAAC,GAAG,IAAI,gBAAgB,KAAK,CAAC,KAAK,CAAC,GAAG,CAAA;AAC5C,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,UAAU,EAAE,KAAc;IAC1B,KAAK,EAAE,EAAE,yBAAyB,EAAE,IAAI,EAAE;CAC3C,CAAA"}
|