@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
|
@@ -1,24 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Trims the input schemas `tools/list` advertises of keys that tell a model
|
|
3
|
-
* nothing but cost characters on EVERY tool of every turn:
|
|
4
|
-
*
|
|
5
|
-
* - the `$schema` dialect URI zod stamps on each input schema;
|
|
6
|
-
* - the ±`Number.MAX_SAFE_INTEGER` bounds zod emits for every `.int()` — no
|
|
7
|
-
* caller ever approaches them, and a real bound (`maxResults ≤ 100`, an
|
|
8
|
-
* offset `≥ 0`) stays untouched.
|
|
9
|
-
*
|
|
10
|
-
* Behaviour-neutral: input validation runs server-side against the zod
|
|
11
|
-
* schemas, never against the advertised JSON. Output schemas stay untouched —
|
|
12
|
-
* a client validates `structuredContent` against them, and the model never
|
|
13
|
-
* reads them. Server path only.
|
|
14
|
-
*/
|
|
1
|
+
/** Drops the `$schema` URI and zod's ±MAX_SAFE_INTEGER `.int()` bounds from advertised input schemas: they cost characters on every tool of every turn. Validation runs against the zod schemas, so this is behaviour-neutral; output schemas stay (clients validate against them). */
|
|
15
2
|
/** The narrow structural surface the middleware needs (an `MCPServer` satisfies it). */
|
|
16
3
|
export interface ToolListMiddlewareHost {
|
|
17
4
|
use(pattern: "mcp:tools/list", fn: (ctx: unknown, next: () => Promise<unknown[]>) => Promise<unknown[]>): unknown;
|
|
18
5
|
}
|
|
19
6
|
/** One advertised schema, trimmed: no root `$schema`, no safe-integer bounds. */
|
|
20
7
|
export declare function trimToolSchema(schema: unknown): unknown;
|
|
21
|
-
/** One `tools/list` entry with its input schema trimmed. */
|
|
22
8
|
export declare function trimToolDescriptor(tool: unknown): unknown;
|
|
23
9
|
export declare function installToolSchemaTrim(server: ToolListMiddlewareHost): void;
|
|
24
10
|
//# sourceMappingURL=tool-schema-trim.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-schema-trim.d.ts","sourceRoot":"","sources":["../src/tool-schema-trim.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"tool-schema-trim.d.ts","sourceRoot":"","sources":["../src/tool-schema-trim.ts"],"names":[],"mappings":"AAAA,uRAAuR;AAEvR,wFAAwF;AACxF,MAAM,WAAW,sBAAsB;IACrC,GAAG,CACD,OAAO,EAAE,gBAAgB,EACzB,EAAE,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC,KAAK,OAAO,CAAC,OAAO,EAAE,CAAC,GACvE,OAAO,CAAA;CACX;AAuBD,iFAAiF;AACjF,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAKvD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAGzD;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI,CAE1E"}
|
package/dist/tool-schema-trim.js
CHANGED
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Trims the input schemas `tools/list` advertises of keys that tell a model
|
|
3
|
-
* nothing but cost characters on EVERY tool of every turn:
|
|
4
|
-
*
|
|
5
|
-
* - the `$schema` dialect URI zod stamps on each input schema;
|
|
6
|
-
* - the ±`Number.MAX_SAFE_INTEGER` bounds zod emits for every `.int()` — no
|
|
7
|
-
* caller ever approaches them, and a real bound (`maxResults ≤ 100`, an
|
|
8
|
-
* offset `≥ 0`) stays untouched.
|
|
9
|
-
*
|
|
10
|
-
* Behaviour-neutral: input validation runs server-side against the zod
|
|
11
|
-
* schemas, never against the advertised JSON. Output schemas stay untouched —
|
|
12
|
-
* a client validates `structuredContent` against them, and the model never
|
|
13
|
-
* reads them. Server path only.
|
|
14
|
-
*/
|
|
1
|
+
/** Drops the `$schema` URI and zod's ±MAX_SAFE_INTEGER `.int()` bounds from advertised input schemas: they cost characters on every tool of every turn. Validation runs against the zod schemas, so this is behaviour-neutral; output schemas stay (clients validate against them). */
|
|
15
2
|
function isRecord(value) {
|
|
16
3
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
17
4
|
}
|
|
@@ -19,7 +6,6 @@ function isSafeIntegerBound(key, value) {
|
|
|
19
6
|
return ((key === "maximum" && value === Number.MAX_SAFE_INTEGER) ||
|
|
20
7
|
(key === "minimum" && value === Number.MIN_SAFE_INTEGER));
|
|
21
8
|
}
|
|
22
|
-
/** A copy of `node` without the safe-integer bounds, at every depth. */
|
|
23
9
|
function withoutSafeIntegerBounds(node) {
|
|
24
10
|
if (Array.isArray(node))
|
|
25
11
|
return node.map(withoutSafeIntegerBounds);
|
|
@@ -37,7 +23,6 @@ export function trimToolSchema(schema) {
|
|
|
37
23
|
delete rest.$schema;
|
|
38
24
|
return withoutSafeIntegerBounds(rest);
|
|
39
25
|
}
|
|
40
|
-
/** One `tools/list` entry with its input schema trimmed. */
|
|
41
26
|
export function trimToolDescriptor(tool) {
|
|
42
27
|
if (!isRecord(tool) || !("inputSchema" in tool))
|
|
43
28
|
return tool;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-schema-trim.js","sourceRoot":"","sources":["../src/tool-schema-trim.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"tool-schema-trim.js","sourceRoot":"","sources":["../src/tool-schema-trim.ts"],"names":[],"mappings":"AAAA,uRAAuR;AAUvR,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;AAC7E,CAAC;AAED,SAAS,kBAAkB,CAAC,GAAW,EAAE,KAAc;IACrD,OAAO,CACL,CAAC,GAAG,KAAK,SAAS,IAAI,KAAK,KAAK,MAAM,CAAC,gBAAgB,CAAC;QACxD,CAAC,GAAG,KAAK,SAAS,IAAI,KAAK,KAAK,MAAM,CAAC,gBAAgB,CAAC,CACzD,CAAA;AACH,CAAC;AAED,SAAS,wBAAwB,CAAC,IAAa;IAC7C,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAA;IAClE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAA;IAChC,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;SACjB,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;SACzD,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC,CACjE,CAAA;AACH,CAAC;AAED,iFAAiF;AACjF,MAAM,UAAU,cAAc,CAAC,MAAe;IAC5C,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;QAAE,OAAO,MAAM,CAAA;IACpC,MAAM,IAAI,GAAG,EAAE,GAAG,MAAM,EAAE,CAAA;IAC1B,OAAO,IAAI,CAAC,OAAO,CAAA;IACnB,OAAO,wBAAwB,CAAC,IAAI,CAAC,CAAA;AACvC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,IAAa;IAC9C,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,aAAa,IAAI,IAAI,CAAC;QAAE,OAAO,IAAI,CAAA;IAC5D,OAAO,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAA;AACnE,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,MAA8B;IAClE,MAAM,CAAC,GAAG,CAAC,gBAAgB,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAA;AAC5F,CAAC"}
|
package/dist/toolsets.d.ts
CHANGED
|
@@ -1,76 +1,30 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The shared skeleton of every module's toolset vocabulary: a declared name
|
|
3
|
-
* list, a typed guard, and the ONE fail-closed rule for the
|
|
4
|
-
* `MCP_ACTIVE_MODULES=<module>:<toolset>` suffix:
|
|
5
|
-
*
|
|
6
|
-
* - no suffix → the auth-dependent DEFAULT: the module's most restrictive
|
|
7
|
-
* toolset (the fallback) on an unauthenticated boot, its standard non-admin
|
|
8
|
-
* toolset (`authenticatedDefault`) when the root installed OAuth;
|
|
9
|
-
* - an empty or unknown suffix → warns and degrades to the fallback: a suffix
|
|
10
|
-
* always meant to restrict, so restricting harder is the only safe reading;
|
|
11
|
-
* - a known name → itself.
|
|
12
|
-
*
|
|
13
|
-
* Nothing ever resolves to "everything": a module's widest toolset (e.g.
|
|
14
|
-
* camunda7's `admin`) is reachable only by naming it.
|
|
15
|
-
*
|
|
16
|
-
* The vocabulary itself (which names exist, what each one filters) stays
|
|
17
|
-
* module-owned: peers own their names, only the semantics are shared. A module
|
|
18
|
-
* builds its filter/durable-write decisions on top of `resolve` — never on an
|
|
19
|
-
* ad-hoc `toolset === "read-only"` compare, which fails open for every other
|
|
20
|
-
* name without the warning.
|
|
21
|
-
*/
|
|
1
|
+
/** The shared fail-closed toolset rule: no suffix → floor (unauthenticated) or `authenticatedDefault` (OAuth); empty/unknown suffix → warn + floor, since a suffix always means to restrict. Nothing resolves to "everything". Vocabularies stay module-owned. */
|
|
22
2
|
export interface ToolsetVocabulary<T extends string> {
|
|
23
|
-
/** The owning module's name — the prefix of every warning. */
|
|
24
3
|
module: string;
|
|
25
4
|
names: readonly T[];
|
|
26
|
-
/**
|
|
27
|
-
* The most restrictive toolset — the module's READ-ONLY FLOOR: it permits no
|
|
28
|
-
* durable write. Empty/unknown suffixes, unauthenticated boots and direct
|
|
29
|
-
* callers that pass no toolset all land here.
|
|
30
|
-
*/
|
|
5
|
+
/** The read-only floor: empty/unknown suffixes, unauthenticated boots and direct callers without a toolset land here. */
|
|
31
6
|
fallback: T;
|
|
32
|
-
/** The no-suffix default under OAuth
|
|
7
|
+
/** The no-suffix default under OAuth: the module's standard non-admin toolset. */
|
|
33
8
|
authenticatedDefault: T;
|
|
34
9
|
isKnown(value: string): value is T;
|
|
35
|
-
/**
|
|
36
|
-
* Normalize a configured toolset on the MODULE side: a known name resolves to
|
|
37
|
-
* itself, an unknown one warns and resolves to the fallback, and a missing one
|
|
38
|
-
* resolves to the fallback silently. The composition root hands every module
|
|
39
|
-
* a concrete name ({@link ToolsetVocabulary.effective}), so a missing toolset
|
|
40
|
-
* only reaches here from a direct `createPlugin` caller — which therefore
|
|
41
|
-
* gets the floor, never everything.
|
|
42
|
-
*/
|
|
10
|
+
/** A missing toolset only arrives from a direct `createPlugin` caller, which gets the floor, never everything. */
|
|
43
11
|
resolve(toolset: string | undefined): T;
|
|
44
|
-
/**
|
|
45
|
-
* The COMPOSITION side: the toolset a module runs with, given its
|
|
46
|
-
* `module:toolset` suffix (`undefined` = no suffix, `""` = present but empty)
|
|
47
|
-
* and whether the root installed OAuth. Warns on an empty or unknown suffix.
|
|
48
|
-
*/
|
|
12
|
+
/** `undefined` = no suffix, `""` = present but empty. */
|
|
49
13
|
effective(suffix: string | undefined, options: {
|
|
50
14
|
authenticated: boolean;
|
|
51
15
|
}): EffectiveSelection<T>;
|
|
52
|
-
/** Whether the toolset permits durable writes — every toolset above the read-only floor. */
|
|
53
|
-
allowsDurableWrites(toolset: T): boolean;
|
|
54
16
|
}
|
|
55
|
-
/** Where an effective toolset came from
|
|
17
|
+
/** Where an effective toolset came from: the reason the boot log names. */
|
|
56
18
|
export type ToolsetSource = "suffix" | "default" | "fallback";
|
|
57
|
-
|
|
19
|
+
interface EffectiveSelection<T extends string> {
|
|
58
20
|
toolset: T;
|
|
59
21
|
source: ToolsetSource;
|
|
60
22
|
}
|
|
61
23
|
export declare function createToolsetVocabulary<T extends string>(moduleName: string, names: readonly T[],
|
|
62
|
-
/**
|
|
63
|
-
* The module's most restrictive toolset — the read-only floor (no durable
|
|
64
|
-
* writes). A `<module>:<toolset>` suffix is always an attempt to restrict, so
|
|
65
|
-
* a typo must never grant more than the strictest set it could have meant,
|
|
66
|
-
* and an unauthenticated boot without a suffix gets exactly this.
|
|
67
|
-
*/
|
|
24
|
+
/** A suffix is always an attempt to restrict, so a typo must never grant more than the strictest set. */
|
|
68
25
|
fallback: NoInfer<T>, options?: {
|
|
69
|
-
/**
|
|
70
|
-
* The no-suffix default when the root installed OAuth — the module's
|
|
71
|
-
* standard non-admin toolset. Omitted = the fallback (a module whose only
|
|
72
|
-
* toolset is its floor).
|
|
73
|
-
*/
|
|
26
|
+
/** Omitted = the fallback (a module whose only toolset is its floor). */
|
|
74
27
|
authenticatedDefault?: NoInfer<T>;
|
|
75
28
|
}): ToolsetVocabulary<T>;
|
|
29
|
+
export {};
|
|
76
30
|
//# sourceMappingURL=toolsets.d.ts.map
|
package/dist/toolsets.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolsets.d.ts","sourceRoot":"","sources":["../src/toolsets.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"toolsets.d.ts","sourceRoot":"","sources":["../src/toolsets.ts"],"names":[],"mappings":"AAAA,kQAAkQ;AAClQ,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,MAAM;IACjD,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,SAAS,CAAC,EAAE,CAAA;IACnB,yHAAyH;IACzH,QAAQ,EAAE,CAAC,CAAA;IACX,kFAAkF;IAClF,oBAAoB,EAAE,CAAC,CAAA;IACvB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,CAAC,CAAA;IAClC,kHAAkH;IAClH,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,CAAC,CAAA;IACvC,yDAAyD;IACzD,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE;QAAE,aAAa,EAAE,OAAO,CAAA;KAAE,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAA;CAClG;AAED,2EAA2E;AAC3E,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAA;AAE7D,UAAU,kBAAkB,CAAC,CAAC,SAAS,MAAM;IAC3C,OAAO,EAAE,CAAC,CAAA;IACV,MAAM,EAAE,aAAa,CAAA;CACtB;AAED,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,EACtD,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,SAAS,CAAC,EAAE;AACnB,yGAAyG;AACzG,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EACpB,OAAO,GAAE;IACP,yEAAyE;IACzE,oBAAoB,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAA;CAC7B,GACL,iBAAiB,CAAC,CAAC,CAAC,CA6BtB"}
|
package/dist/toolsets.js
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
export function createToolsetVocabulary(moduleName, names,
|
|
2
|
-
/**
|
|
3
|
-
* The module's most restrictive toolset — the read-only floor (no durable
|
|
4
|
-
* writes). A `<module>:<toolset>` suffix is always an attempt to restrict, so
|
|
5
|
-
* a typo must never grant more than the strictest set it could have meant,
|
|
6
|
-
* and an unauthenticated boot without a suffix gets exactly this.
|
|
7
|
-
*/
|
|
2
|
+
/** A suffix is always an attempt to restrict, so a typo must never grant more than the strictest set. */
|
|
8
3
|
fallback, options = {}) {
|
|
9
4
|
const { authenticatedDefault = fallback } = options;
|
|
10
5
|
const isKnown = (value) => names.includes(value);
|
|
11
6
|
const degrade = (reason) => {
|
|
12
|
-
console.warn(`[${moduleName}] ${reason}
|
|
7
|
+
console.warn(`[${moduleName}] ${reason}: falling back to "${fallback}". Known toolsets: ${names.join(", ")}`);
|
|
13
8
|
return fallback;
|
|
14
9
|
};
|
|
15
10
|
return {
|
|
@@ -33,9 +28,6 @@ fallback, options = {}) {
|
|
|
33
28
|
const reason = name === "" ? "Empty toolset suffix" : `Unknown toolset "${name}"`;
|
|
34
29
|
return { toolset: degrade(reason), source: "fallback" };
|
|
35
30
|
},
|
|
36
|
-
allowsDurableWrites(toolset) {
|
|
37
|
-
return toolset !== fallback;
|
|
38
|
-
},
|
|
39
31
|
};
|
|
40
32
|
}
|
|
41
33
|
//# sourceMappingURL=toolsets.js.map
|
package/dist/toolsets.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolsets.js","sourceRoot":"","sources":["../src/toolsets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toolsets.js","sourceRoot":"","sources":["../src/toolsets.ts"],"names":[],"mappings":"AAuBA,MAAM,UAAU,uBAAuB,CACrC,UAAkB,EAClB,KAAmB;AACnB,yGAAyG;AACzG,QAAoB,EACpB,UAGI,EAAE;IAEN,MAAM,EAAE,oBAAoB,GAAG,QAAQ,EAAE,GAAG,OAAO,CAAA;IACnD,MAAM,OAAO,GAAG,CAAC,KAAa,EAAc,EAAE,CAAE,KAA2B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;IAC3F,MAAM,OAAO,GAAG,CAAC,MAAc,EAAK,EAAE;QACpC,OAAO,CAAC,IAAI,CACV,IAAI,UAAU,KAAK,MAAM,sBAAsB,QAAQ,sBAAsB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAChG,CAAA;QACD,OAAO,QAAQ,CAAA;IACjB,CAAC,CAAA;IACD,OAAO;QACL,MAAM,EAAE,UAAU;QAClB,KAAK;QACL,QAAQ;QACR,oBAAoB;QACpB,OAAO;QACP,OAAO,CAAC,OAAO;YACb,IAAI,OAAO,KAAK,SAAS;gBAAE,OAAO,QAAQ,CAAA;YAC1C,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,oBAAoB,OAAO,GAAG,CAAC,CAAA;QAC7E,CAAC;QACD,SAAS,CAAC,MAAM,EAAE,EAAE,aAAa,EAAE;YACjC,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;gBACzB,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,CAAA;YACxF,CAAC;YACD,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,EAAE,CAAA;YAC1B,IAAI,OAAO,CAAC,IAAI,CAAC;gBAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAA;YAC7D,MAAM,MAAM,GAAG,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,oBAAoB,IAAI,GAAG,CAAA;YACjF,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAA;QACzD,CAAC;KACF,CAAA;AACH,CAAC"}
|
|
@@ -1,33 +1,11 @@
|
|
|
1
|
-
/** What a write says when it is done — the toolkit's toasts, never a silent row change. */
|
|
2
1
|
export interface ActionFeedback {
|
|
3
|
-
/**
|
|
4
|
-
* The write worked: a success toast whose title names the object
|
|
5
|
-
* ("Job für LEA-2026-00424 neu eingeplant", "Einstellungen gespeichert").
|
|
6
|
-
*/
|
|
2
|
+
/** The title names the object ("Einstellungen gespeichert"). */
|
|
7
3
|
succeeded: (title: string, description?: string) => void;
|
|
8
|
-
/**
|
|
9
|
-
* The write failed: a danger toast (5 s) whose title names the object
|
|
10
|
-
* ("Job für LEA-2026-00424 konnte nicht neu eingeplant werden") and whose
|
|
11
|
-
* second line says why and what you can do ({@link failureLine}).
|
|
12
|
-
*/
|
|
4
|
+
/** A 5 s danger toast naming the object, its second line from {@link failureLine}. */
|
|
13
5
|
failed: (title: string, error: unknown) => void;
|
|
14
6
|
}
|
|
15
|
-
/**
|
|
16
|
-
* The toast's second line for a failed write: what happened in words
|
|
17
|
-
* ({@link describeError}), then the next step. A toast has no "Details", so
|
|
18
|
-
* the line carries what an `ErrorState` keeps there: an engine refusal quotes
|
|
19
|
-
* the engine's own reason, without its status code ("Die Engine prod meldet
|
|
20
|
-
* einen Fehler (HTTP 500): „Cannot resolve incident“."), and a write whose
|
|
21
|
-
* answer never came says it may have gone through, so you check before you
|
|
22
|
-
* retry instead of applying it twice.
|
|
23
|
-
*/
|
|
7
|
+
/** A toast has no "Details", so the line quotes the engine's reason, and a write whose answer never came says it may have gone through, so you check before retrying instead of applying it twice. */
|
|
24
8
|
export declare function failureLine(error: unknown, locale: string | undefined): string;
|
|
25
|
-
/**
|
|
26
|
-
* Feedback for a write (CI §9: success and failure each a toast, never only
|
|
27
|
-
* a console line). The toasts are the toolkit's (`McpAppView` mounts their
|
|
28
|
-
* provider, a polite live region bottom centre): announced to screen readers,
|
|
29
|
-
* held while hovered or focused. Outside a provider (a bare fixture) the
|
|
30
|
-
* calls are no-ops.
|
|
31
|
-
*/
|
|
9
|
+
/** Outside a pulse-ui toast provider (a bare fixture) the calls are no-ops. */
|
|
32
10
|
export declare function useActionFeedback(): ActionFeedback;
|
|
33
11
|
//# sourceMappingURL=action-feedback.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-feedback.d.ts","sourceRoot":"","sources":["../../src/ui/action-feedback.ts"],"names":[],"mappings":"AAMA,
|
|
1
|
+
{"version":3,"file":"action-feedback.d.ts","sourceRoot":"","sources":["../../src/ui/action-feedback.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,cAAc;IAC7B,gEAAgE;IAChE,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACxD,sFAAsF;IACtF,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;CAChD;AAED,sMAAsM;AACtM,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAU9E;AAOD,+EAA+E;AAC/E,wBAAgB,iBAAiB,IAAI,cAAc,CAclD"}
|
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
import { useLocale, useToast } from "@miragon/
|
|
2
|
+
import { useLocale, useToast } from "@miragon/pulse-ui";
|
|
3
3
|
import { classifyError, describeError } from "./describe-error.js";
|
|
4
4
|
import { ERROR_LABELS } from "./error-labels.js";
|
|
5
|
-
import {
|
|
6
|
-
/**
|
|
7
|
-
* The toast's second line for a failed write: what happened in words
|
|
8
|
-
* ({@link describeError}), then the next step. A toast has no "Details", so
|
|
9
|
-
* the line carries what an `ErrorState` keeps there: an engine refusal quotes
|
|
10
|
-
* the engine's own reason, without its status code ("Die Engine prod meldet
|
|
11
|
-
* einen Fehler (HTTP 500): „Cannot resolve incident“."), and a write whose
|
|
12
|
-
* answer never came says it may have gone through, so you check before you
|
|
13
|
-
* retry instead of applying it twice.
|
|
14
|
-
*/
|
|
5
|
+
import { resolveLanguage } from "./host-context.js";
|
|
6
|
+
/** A toast has no "Details", so the line quotes the engine's reason, and a write whose answer never came says it may have gone through, so you check before retrying instead of applying it twice. */
|
|
15
7
|
export function failureLine(error, locale) {
|
|
16
8
|
const described = describeError(error, locale);
|
|
17
9
|
const facts = classifyError(error);
|
|
18
|
-
const toast = ERROR_LABELS[
|
|
10
|
+
const toast = ERROR_LABELS[resolveLanguage(locale)].toast;
|
|
19
11
|
const happened = described.kind === "unknown" ? "" : `${described.title}. `;
|
|
20
12
|
if (facts.mayHaveApplied)
|
|
21
13
|
return `${happened}${toast.mayHaveApplied()}`;
|
|
@@ -29,13 +21,7 @@ export function failureLine(error, locale) {
|
|
|
29
21
|
/** A toast line stays readable: a long engine text (a stack trace's head) is cut. */
|
|
30
22
|
const MAX_TOAST_REASON = 200;
|
|
31
23
|
const clip = (text) => text.length > MAX_TOAST_REASON ? `${text.slice(0, MAX_TOAST_REASON).trimEnd()}…` : text;
|
|
32
|
-
/**
|
|
33
|
-
* Feedback for a write (CI §9: success and failure each a toast, never only
|
|
34
|
-
* a console line). The toasts are the toolkit's (`McpAppView` mounts their
|
|
35
|
-
* provider, a polite live region bottom centre): announced to screen readers,
|
|
36
|
-
* held while hovered or focused. Outside a provider (a bare fixture) the
|
|
37
|
-
* calls are no-ops.
|
|
38
|
-
*/
|
|
24
|
+
/** Outside a pulse-ui toast provider (a bare fixture) the calls are no-ops. */
|
|
39
25
|
export function useActionFeedback() {
|
|
40
26
|
const toast = useToast();
|
|
41
27
|
const locale = useLocale();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-feedback.js","sourceRoot":"","sources":["../../src/ui/action-feedback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"action-feedback.js","sourceRoot":"","sources":["../../src/ui/action-feedback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AASnD,sMAAsM;AACtM,MAAM,UAAU,WAAW,CAAC,KAAc,EAAE,MAA0B;IACpE,MAAM,SAAS,GAAG,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;IAC9C,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,CAAA;IAClC,MAAM,KAAK,GAAG,YAAY,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAA;IACzD,MAAM,QAAQ,GAAG,SAAS,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,KAAK,IAAI,CAAA;IAC3E,IAAI,KAAK,CAAC,cAAc;QAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC,cAAc,EAAE,EAAE,CAAA;IACvE,IAAI,SAAS,CAAC,IAAI,KAAK,QAAQ;QAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC,IAAI,EAAE,CAAA;IACtE,IAAI,CAAC,KAAK,CAAC,MAAM;QAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC,UAAU,EAAE,EAAE,CAAA;IAC5D,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IACjC,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,IAAI,KAAK,CAAC,UAAU,EAAE,EAAE,CAAA;AACpF,CAAC;AAED,qFAAqF;AACrF,MAAM,gBAAgB,GAAG,GAAG,CAAA;AAC5B,MAAM,IAAI,GAAG,CAAC,IAAY,EAAE,EAAE,CAC5B,IAAI,CAAC,MAAM,GAAG,gBAAgB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,CAAA;AAEzF,+EAA+E;AAC/E,MAAM,UAAU,iBAAiB;IAC/B,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAA;IACxB,MAAM,MAAM,GAAG,SAAS,EAAE,CAAA;IAC1B,OAAO,OAAO,CACZ,GAAG,EAAE,CAAC,CAAC;QACL,SAAS,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE;YAChC,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAA;QACjF,CAAC;QACD,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;YACvB,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,CAAC,CAAA;QAChF,CAAC;KACF,CAAC,EACF,CAAC,KAAK,EAAE,MAAM,CAAC,CAChB,CAAA;AACH,CAAC"}
|
|
@@ -1,56 +1,19 @@
|
|
|
1
|
+
import { type LucideIcon } from "@miragon/pulse-ui";
|
|
1
2
|
import type { AskAiPrompt } from "./ask-ai-prompt.js";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Placement tiers. All but `menuitem` render as the same secondary outline
|
|
5
|
-
* button (a hand-off is never the view's primary action: the deterministic
|
|
6
|
-
* next step, Retry or Resolve, is); `icon` drops the visible label for dense
|
|
7
|
-
* rows; `menuitem` is an entry of a row's action menu ({@link MENU_ITEM},
|
|
8
|
-
* `role="menuitem"`), whose card is its surface.
|
|
9
|
-
*/
|
|
3
|
+
/** A hand-off is never the view's primary action, so every tier but `menuitem` is the same secondary outline button. */
|
|
10
4
|
export type AskAiVariant = "primary" | "subtle" | "icon" | "menuitem";
|
|
11
5
|
export interface AskAiButtonProps {
|
|
12
|
-
/**
|
|
13
|
-
* The hand-off posted to the agent as the user's chat message (`askAi` →
|
|
14
|
-
* `sendFollowup`). Only {@link askAiPrompt} builds one: a short localized
|
|
15
|
-
* intent + ids, engine text fenced as untrusted data, and only the tools
|
|
16
|
-
* the deployment registers for the model. `null` — nothing in the task is
|
|
17
|
-
* available here (or not yet known) — renders no button at all.
|
|
18
|
-
*/
|
|
6
|
+
/** Only {@link askAiPrompt} builds one; `null` renders no button. */
|
|
19
7
|
prompt: AskAiPrompt | null;
|
|
20
|
-
/**
|
|
21
|
-
* The Lucide icon of the CONCRETE function the chat will do — `FileSearch`
|
|
22
|
-
* to explain an error, `ClipboardList` to draft a ticket, `GitCompare` to
|
|
23
|
-
* compare (CI: no sparkles, no generic "AI" symbol). Defaults to a neutral
|
|
24
|
-
* `MessageSquare` (it goes to the chat).
|
|
25
|
-
*/
|
|
8
|
+
/** The concrete function's icon (CI: no sparkles, no generic "AI" symbol). */
|
|
26
9
|
icon?: LucideIcon;
|
|
27
|
-
/**
|
|
28
|
-
* A verb phrase that says the work happens in the chat: "Im Chat
|
|
29
|
-
* erklären" / "Explain in chat", "Ticket im Chat entwerfen". Defaults to
|
|
30
|
-
* the locale's "Im Chat analysieren" / "Analyze in chat". For `icon` it
|
|
31
|
-
* moves to `aria-label`/`title`.
|
|
32
|
-
*/
|
|
10
|
+
/** A verb phrase naming the chat ("Explain in chat"); for `icon` it moves to `aria-label`. */
|
|
33
11
|
label?: string;
|
|
34
|
-
/**
|
|
35
|
-
* `primary` = the one surface-level entry of a view; `subtle` = per-row /
|
|
36
|
-
* per-section (the common case); `icon` = dense table rows (icon only,
|
|
37
|
-
* label → aria-label); `menuitem` = an entry of a row's action menu.
|
|
38
|
-
*/
|
|
39
12
|
variant?: AskAiVariant;
|
|
40
|
-
/** Tooltip/aria override; defaults to `label`. */
|
|
41
13
|
title?: string;
|
|
42
14
|
disabled?: boolean;
|
|
43
|
-
/** Optional hook fired after the handoff is dispatched. */
|
|
44
15
|
onSent?: () => void;
|
|
45
16
|
}
|
|
46
|
-
/**
|
|
47
|
-
* The single "cross into chat" affordance for the whole cockpit and the ONLY
|
|
48
|
-
* owner of the {@link useHostActions} `askAi` call site (a structural test
|
|
49
|
-
* fails on any other) for analyze / explain / compare / draft / prepare-action
|
|
50
|
-
* handoffs. Renders the same everywhere: an outline button with the icon of
|
|
51
|
-
* the concrete function and a verb that names the chat. Deterministic
|
|
52
|
-
* navigation (`useNav`/`showWidget`) and mutations must NOT use this — they
|
|
53
|
-
* keep their own controls.
|
|
54
|
-
*/
|
|
17
|
+
/** The ONLY owner of the hand-off follow-up (a structural test fails on any other). Navigation and mutations must not use it. */
|
|
55
18
|
export declare function AskAiButton({ prompt, icon, label, variant, title, disabled, onSent, }: AskAiButtonProps): import("react").JSX.Element | null;
|
|
56
19
|
//# sourceMappingURL=ask-ai-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ask-ai-button.d.ts","sourceRoot":"","sources":["../../src/ui/ask-ai-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ask-ai-button.d.ts","sourceRoot":"","sources":["../../src/ui/ask-ai-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,UAAU,EAAa,MAAM,mBAAmB,CAAA;AAEvF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAIrD,wHAAwH;AACxH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAA;AAErE,MAAM,WAAW,gBAAgB;IAC/B,qEAAqE;IACrE,MAAM,EAAE,WAAW,GAAG,IAAI,CAAA;IAC1B,8EAA8E;IAC9E,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,8FAA8F;IAC9F,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,iIAAiI;AACjI,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,IAAoB,EACpB,KAAK,EACL,OAAkB,EAClB,KAAK,EACL,QAAQ,EACR,MAAM,GACP,EAAE,gBAAgB,sCAyClB"}
|
package/dist/ui/ask-ai-button.js
CHANGED
|
@@ -1,30 +1,18 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button, useLocale } from "@miragon/
|
|
2
|
+
import { Button, useLocale, Icon, MENU_ITEM } from "@miragon/pulse-ui";
|
|
3
3
|
import { MessageSquare } from "lucide-react";
|
|
4
|
-
import { useHostActions } from "@miragon/mcp-toolkit-ui/app";
|
|
5
|
-
import { Icon } from "./icon.js";
|
|
6
4
|
import { kitLabels } from "./kit-labels.js";
|
|
7
|
-
import {
|
|
8
|
-
/**
|
|
9
|
-
* The single "cross into chat" affordance for the whole cockpit and the ONLY
|
|
10
|
-
* owner of the {@link useHostActions} `askAi` call site (a structural test
|
|
11
|
-
* fails on any other) for analyze / explain / compare / draft / prepare-action
|
|
12
|
-
* handoffs. Renders the same everywhere: an outline button with the icon of
|
|
13
|
-
* the concrete function and a verb that names the chat. Deterministic
|
|
14
|
-
* navigation (`useNav`/`showWidget`) and mutations must NOT use this — they
|
|
15
|
-
* keep their own controls.
|
|
16
|
-
*/
|
|
5
|
+
import { useViewHost } from "./view-host.js";
|
|
6
|
+
/** The ONLY owner of the hand-off follow-up (a structural test fails on any other). Navigation and mutations must not use it. */
|
|
17
7
|
export function AskAiButton({ prompt, icon = MessageSquare, label, variant = "subtle", title, disabled, onSent, }) {
|
|
18
|
-
const
|
|
8
|
+
const { sendFollowUp } = useViewHost();
|
|
19
9
|
const locale = useLocale();
|
|
20
10
|
if (prompt === null)
|
|
21
11
|
return null;
|
|
22
|
-
// The kit has no
|
|
23
|
-
// ambient locale — otherwise every label-less call site leaks English into a
|
|
24
|
-
// localized cockpit.
|
|
12
|
+
// The kit has no catalog, so the default verb follows the ambient locale instead of leaking English.
|
|
25
13
|
const effectiveLabel = label ?? kitLabels(locale).askAiDefault;
|
|
26
14
|
const send = () => {
|
|
27
|
-
|
|
15
|
+
sendFollowUp(prompt);
|
|
28
16
|
onSent?.();
|
|
29
17
|
};
|
|
30
18
|
if (variant === "menuitem") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ask-ai-button.js","sourceRoot":"","sources":["../../src/ui/ask-ai-button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"ask-ai-button.js","sourceRoot":"","sources":["../../src/ui/ask-ai-button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAmB,SAAS,EAAE,MAAM,mBAAmB,CAAA;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAE5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAkB5C,iIAAiI;AACjI,MAAM,UAAU,WAAW,CAAC,EAC1B,MAAM,EACN,IAAI,GAAG,aAAa,EACpB,KAAK,EACL,OAAO,GAAG,QAAQ,EAClB,KAAK,EACL,QAAQ,EACR,MAAM,GACW;IACjB,MAAM,EAAE,YAAY,EAAE,GAAG,WAAW,EAAE,CAAA;IACtC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAA;IAC1B,IAAI,MAAM,KAAK,IAAI;QAAE,OAAO,IAAI,CAAA;IAChC,qGAAqG;IACrG,MAAM,cAAc,GAAG,KAAK,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC,YAAY,CAAA;IAC9D,MAAM,IAAI,GAAG,GAAG,EAAE;QAChB,YAAY,CAAC,MAAM,CAAC,CAAA;QACpB,MAAM,EAAE,EAAE,CAAA;IACZ,CAAC,CAAA;IACD,IAAI,OAAO,KAAK,UAAU,EAAE,CAAC;QAC3B,OAAO,CACL,kBACE,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,CAAC,CAAC,EACZ,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,IAAI,aAEb,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,SAAG,EACzB,cAAc,IACR,CACV,CAAA;IACH,CAAC;IACD,MAAM,MAAM,GAAG,OAAO,KAAK,MAAM,CAAA;IACjC,OAAO,CACL,MAAC,MAAM,IACL,IAAI,EAAC,QAAQ,EACb,OAAO,EAAC,SAAS,EACjB,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,EAC/B,QAAQ,EAAE,QAAQ,gBACN,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,EAC1D,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,cAAc,CAAC,CAAC,CAAC,CAAC,KAAK,EACjD,OAAO,EAAE,IAAI,aAEb,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,GAAI,EAClC,CAAC,MAAM,IAAI,cAAc,IACnB,CACV,CAAA;AACH,CAAC"}
|
|
@@ -1,82 +1,25 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The ONE builder of every widget → model hand-off text (#338).
|
|
3
|
-
*
|
|
4
|
-
* An Ask-AI hand-off reaches the host as a `role: "user"` chat message
|
|
5
|
-
* (`askAi` → `sendFollowup`), so whatever a widget inlines reads to the model
|
|
6
|
-
* as the operator's own words. A model context (`HostModelContext`) is quieter
|
|
7
|
-
* but just as trusted. Both are therefore assembled from typed parts only:
|
|
8
|
-
*
|
|
9
|
-
* - `intent` — a SHORT task from the module's message catalogue (localized,
|
|
10
|
-
* static text: no data, no tool names);
|
|
11
|
-
* - `ids` / `facts` — identifiers the model passes to tools and on-screen
|
|
12
|
-
* numbers; a value that is not id-shaped is never inlined, it moves into
|
|
13
|
-
* the untrusted block instead;
|
|
14
|
-
* - `untrusted` — engine or third-party free text (exception messages,
|
|
15
|
-
* process and activity names, business keys, variable values), length
|
|
16
|
-
* capped and quoted in a fence the text cannot close, under an explicit
|
|
17
|
-
* "data, not instructions" label;
|
|
18
|
-
* - `tools` — the tools that fit the task, filtered by the deployment's live
|
|
19
|
-
* surface, so a hand-off never names a tool the server does not register
|
|
20
|
-
* for the model; `toolIds` — arguments only some of those tools take,
|
|
21
|
-
* inlined only while their tool is named (strict inputs refuse an argument
|
|
22
|
-
* a tool does not take).
|
|
23
|
-
*/
|
|
24
|
-
/** A hand-off built by {@link askAiPrompt} — the only prompt `AskAiButton` accepts. */
|
|
1
|
+
/** The ONE builder of widget → model hand-off text (#338). A hand-off is posted as the user's message, so it is built from typed parts only: static intent, id-shaped ids and facts, engine text fenced as untrusted. A hand-off names no tool: the module instructions and the tool descriptions steer the model. */
|
|
25
2
|
export type AskAiPrompt = string & {
|
|
26
3
|
readonly __brand: "AskAiPrompt";
|
|
27
4
|
};
|
|
28
5
|
/** An id or on-screen fact: inlined only when id-shaped, else quoted as untrusted. */
|
|
29
|
-
|
|
6
|
+
type HandOffValue = string | number | boolean | readonly string[] | null | undefined;
|
|
30
7
|
/** Engine / third-party free text, quoted as data under its author-chosen name. */
|
|
31
|
-
|
|
32
|
-
/** What the text is (`incidentMessage`, `businessKey`) — a fixed identifier, never data. */
|
|
8
|
+
interface UntrustedText {
|
|
33
9
|
label: string;
|
|
34
10
|
text: string | null | undefined;
|
|
35
11
|
}
|
|
36
|
-
/**
|
|
37
|
-
* Which tools the deployment registers for the model — the filter every tool
|
|
38
|
-
* mention passes. Three answers:
|
|
39
|
-
*
|
|
40
|
-
* - `true` — registered: the tool is named;
|
|
41
|
-
* - `false` — absent, or not answered yet (fail closed: a hand-off whose
|
|
42
|
-
* tools are ALL `false` is null, so its button appears a moment late
|
|
43
|
-
* instead of naming a tool that is gone);
|
|
44
|
-
* - `undefined` — cannot be known (the surface feed failed, or the host has
|
|
45
|
-
* no in-widget tools/call): the tool is not named, but the hand-off is
|
|
46
|
-
* still built — intent, ids and fence, no Tools line — since the host can
|
|
47
|
-
* still post it.
|
|
48
|
-
*/
|
|
49
|
-
export interface ToolSurface {
|
|
50
|
-
has(tool: string): boolean | undefined;
|
|
51
|
-
}
|
|
52
|
-
/** A surface that confirms nothing (no tool is ever mentioned). */
|
|
53
|
-
export declare const EMPTY_TOOL_SURFACE: ToolSurface;
|
|
54
12
|
export interface HandOffParts {
|
|
55
|
-
/** Identifiers the model passes to the listed tools (`engine`, `incidentId`, …). */
|
|
56
13
|
ids?: Readonly<Record<string, HandOffValue>>;
|
|
57
|
-
/** On-screen numbers and flags the task refers to (`openIncidents`, …). */
|
|
58
14
|
facts?: Readonly<Record<string, HandOffValue>>;
|
|
59
|
-
/** Engine / third-party free text — only ever inside the fence. */
|
|
60
15
|
untrusted?: readonly UntrustedText[];
|
|
61
|
-
/** The tools that fit the task; the ones off `surface` are dropped. */
|
|
62
|
-
tools?: readonly string[];
|
|
63
|
-
/**
|
|
64
|
-
* Arguments only SOME listed tools take (`period` for an analytics drill),
|
|
65
|
-
* keyed by tool: inlined into the Ids line only while that tool is named —
|
|
66
|
-
* a dropped tool must not leave behind an argument the remaining tools'
|
|
67
|
-
* strict inputs refuse.
|
|
68
|
-
*/
|
|
69
|
-
toolIds?: Readonly<Record<string, Readonly<Record<string, HandOffValue>>>>;
|
|
70
|
-
surface: ToolSurface;
|
|
71
16
|
}
|
|
72
17
|
export interface AskAiPromptSpec extends HandOffParts {
|
|
73
|
-
/** The short task, from the module's catalogue (`t("askAi.…")`)
|
|
18
|
+
/** The short task, from the module's catalogue (`t("askAi.…")`): static text. */
|
|
74
19
|
intent: string;
|
|
75
|
-
/** The active locale — decides the language of the fixed labels. */
|
|
76
20
|
locale: string;
|
|
77
21
|
}
|
|
78
22
|
export interface ModelContextSpec extends HandOffParts {
|
|
79
|
-
/** What the operator is looking at — static, model-facing text. */
|
|
80
23
|
summary: string;
|
|
81
24
|
}
|
|
82
25
|
/** Max characters of ONE untrusted text; longer text keeps its head. */
|
|
@@ -84,32 +27,13 @@ export declare const MAX_UNTRUSTED_CHARS = 600;
|
|
|
84
27
|
interface Labels {
|
|
85
28
|
ids: string;
|
|
86
29
|
facts: string;
|
|
87
|
-
tools: string;
|
|
88
30
|
untrusted: string;
|
|
89
31
|
}
|
|
90
32
|
/** The kit has no catalogue of its own; these few labels follow the locale like AskAiButton's verb. */
|
|
91
33
|
export declare const ASK_AI_PROMPT_LABELS: Readonly<Record<"en" | "de", Labels>>;
|
|
92
|
-
/**
|
|
93
|
-
* A fenced block the text cannot close: the fence is one backtick longer than
|
|
94
|
-
* the longest backtick run inside (at least three). A closing fence must be at
|
|
95
|
-
* least as long as the opening one, so no line of the text can end the block —
|
|
96
|
-
* whatever it says stays quoted data.
|
|
97
|
-
*/
|
|
98
|
-
export declare function fenceUntrusted(text: string): string;
|
|
99
|
-
/**
|
|
100
|
-
* Build an Ask-AI hand-off. Returns `null` — and `AskAiButton` renders
|
|
101
|
-
* nothing — when the task named tools and the surface answers `false` for
|
|
102
|
-
* EVERY one: there is nothing the model could do with it in this deployment
|
|
103
|
-
* (or the surface has not answered yet; the button then appears once it
|
|
104
|
-
* has). A tool the surface cannot know (`undefined`) keeps the hand-off,
|
|
105
|
-
* built without naming that tool.
|
|
106
|
-
*/
|
|
34
|
+
/** `null` only for an empty intent. */
|
|
107
35
|
export declare function askAiPrompt(spec: AskAiPromptSpec): AskAiPrompt | null;
|
|
108
|
-
/**
|
|
109
|
-
* Build a model-context text (`HostModelContext` content) from the same parts.
|
|
110
|
-
* Never null: the context describes the view whether or not a tool fits.
|
|
111
|
-
* English — it addresses the model, not the user.
|
|
112
|
-
*/
|
|
36
|
+
/** Never null. English: it addresses the model, not the user. */
|
|
113
37
|
export declare function modelContextText(spec: ModelContextSpec): string;
|
|
114
38
|
export {};
|
|
115
39
|
//# sourceMappingURL=ask-ai-prompt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ask-ai-prompt.d.ts","sourceRoot":"","sources":["../../src/ui/ask-ai-prompt.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ask-ai-prompt.d.ts","sourceRoot":"","sources":["../../src/ui/ask-ai-prompt.ts"],"names":[],"mappings":"AAAA,sTAAsT;AAEtT,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAA;CAAE,CAAA;AAEtE,sFAAsF;AACtF,KAAK,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,CAAA;AAEpF,mFAAmF;AACnF,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;CAChC;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAA;IAC5C,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAA;IAC9C,SAAS,CAAC,EAAE,SAAS,aAAa,EAAE,CAAA;CACrC;AAED,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,iFAAiF;IACjF,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,wEAAwE;AACxE,eAAO,MAAM,mBAAmB,MAAM,CAAA;AAWtC,UAAU,MAAM;IACd,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,uGAAuG;AACvG,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,EAAE,MAAM,CAAC,CAatE,CAAA;AA2ED,uCAAuC;AACvC,wBAAgB,WAAW,CAAC,IAAI,EAAE,eAAe,GAAG,WAAW,GAAG,IAAI,CAIrE;AAED,iEAAiE;AACjE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,gBAAgB,GAAG,MAAM,CAE/D"}
|