@jini-ai/admin 0.7.1 → 0.7.3-next.1
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/CHANGELOG.md +4 -4
- package/dist/agent-plugins/agent-plugins.module.d.ts +1 -1
- package/dist/agent-plugins/agent-plugins.module.js +1 -1
- package/dist/agent-plugins/controllers/agent-plugin-files.controller.d.ts +3 -3
- package/dist/agent-plugins/controllers/agent-plugin-files.controller.js +1 -1
- package/dist/agent-plugins/controllers/agent-plugins.controller.d.ts +3 -3
- package/dist/agent-plugins/controllers/agent-plugins.controller.js +30 -27
- package/dist/agent-plugins/index.d.ts +11 -8
- package/dist/agent-plugins/index.js +7 -8
- package/dist/agent-plugins/models.d.ts +19 -11
- package/dist/agent-plugins/ports.d.ts +1 -1
- package/dist/agent-plugins/ports.js +1 -1
- package/dist/agent-plugins/react/components/AgentPluginFileContent.d.ts +4 -2
- package/dist/agent-plugins/react/components/AgentPluginFileContent.js +3 -3
- package/dist/agent-plugins/react/components/AgentPluginFileTree.d.ts +4 -2
- package/dist/agent-plugins/react/components/AgentPluginFileTree.js +2 -2
- package/dist/agent-plugins/react/components/AgentPluginInspector.d.ts +4 -2
- package/dist/agent-plugins/react/components/AgentPluginInspector.js +3 -3
- package/dist/agent-plugins/react/components/AgentPluginListPanel.d.ts +5 -3
- package/dist/agent-plugins/react/components/AgentPluginListPanel.js +3 -3
- package/dist/agent-plugins/react/components/AgentPluginRow.d.ts +3 -1
- package/dist/agent-plugins/react/components/AgentPluginRow.js +3 -3
- package/dist/agent-plugins/react/hooks/AgentPluginInspector.hooks.js +2 -2
- package/dist/agent-plugins/react/hooks/AgentPluginPanel.hooks.d.ts +6 -5
- package/dist/agent-plugins/react/hooks/AgentPluginRow.hooks.d.ts +5 -4
- package/dist/agent-plugins/react/hooks/AgentPluginsPage.hooks.d.ts +11 -7
- package/dist/agent-plugins/react/hooks/AgentPluginsPage.hooks.js +3 -3
- package/dist/agent-plugins/react/hooks/AgentPluginsPorts.hooks.d.ts +5 -0
- package/dist/agent-plugins/react/hooks/AgentPluginsPorts.hooks.js +11 -1
- package/dist/agent-plugins/react/hooks/MarketplaceTab.hooks.d.ts +1 -1
- package/dist/agent-plugins/react/index.d.ts +25 -71
- package/dist/agent-plugins/react/index.js +9 -6
- package/dist/agent-plugins/react/pages/AgentPluginsPage.d.ts +8 -2
- package/dist/agent-plugins/react/pages/AgentPluginsPage.js +3 -3
- package/dist/agent-plugins/react/tabs/DownloadedTab.d.ts +2 -2
- package/dist/agent-plugins/react/tabs/DownloadedTab.js +1 -1
- package/dist/agent-plugins/react/tabs/InstalledTab.d.ts +2 -2
- package/dist/agent-plugins/react/tabs/InstalledTab.js +1 -1
- package/dist/agent-plugins/react/tabs/MarketplaceTab.d.ts +5 -2
- package/dist/agent-plugins/react/tabs/MarketplaceTab.js +3 -3
- package/dist/browser/index.d.ts +2 -0
- package/dist/browser/index.js +2 -0
- package/dist/browser/react-root-errors.d.ts +19 -0
- package/dist/browser/react-root-errors.js +16 -0
- package/dist/comments/adapters/http.js +2 -3
- package/dist/comments/adapters/memory.d.ts +5 -3
- package/dist/comments/adapters/memory.js +5 -6
- package/dist/comments/comments.module.d.ts +3 -3
- package/dist/comments/comments.module.js +1 -1
- package/dist/comments/controllers/comment-queue.controller.d.ts +14 -12
- package/dist/comments/controllers/comment-queue.controller.js +154 -155
- package/dist/comments/controllers/comment-settings.controller.d.ts +4 -4
- package/dist/comments/controllers/comment-settings.controller.js +40 -39
- package/dist/comments/controllers/comments.controller.d.ts +4 -4
- package/dist/comments/controllers/comments.controller.js +1 -2
- package/dist/comments/ports.d.ts +3 -3
- package/dist/comments/ports.js +1 -1
- package/dist/comments/react/components/QueueActionsCell.d.ts +20 -0
- package/dist/comments/react/components/QueueActionsCell.js +15 -0
- package/dist/comments/react/components/QueueSection.d.ts +20 -9
- package/dist/comments/react/components/QueueSection.js +9 -20
- package/dist/comments/react/components/SettingsFields.d.ts +13 -0
- package/dist/comments/react/components/SettingsFields.js +17 -0
- package/dist/comments/react/components/SettingsSection.d.ts +4 -1
- package/dist/comments/react/components/SettingsSection.js +5 -10
- package/dist/comments/react/hooks/CommentsPage.hooks.js +1 -1
- package/dist/comments/react/hooks/CommentsPorts.hooks.d.ts +5 -0
- package/dist/comments/react/hooks/CommentsPorts.hooks.js +11 -1
- package/dist/comments/react/hooks/QueueActionsCell.hooks.d.ts +13 -0
- package/dist/comments/react/hooks/QueueActionsCell.hooks.js +7 -0
- package/dist/comments/react/hooks/QueueSection.hooks.d.ts +3 -11
- package/dist/comments/react/hooks/QueueSection.hooks.js +8 -11
- package/dist/comments/react/hooks/use-comment-queue.hooks.js +4 -4
- package/dist/comments/react/hooks/use-comment-settings.hooks.js +3 -3
- package/dist/comments/react/hooks/use-comments.hooks.js +3 -3
- package/dist/comments/react/index.d.ts +27 -89
- package/dist/comments/react/index.js +5 -6
- package/dist/comments/react/pages/CommentsPage.d.ts +4 -1
- package/dist/comments/react/pages/CommentsPage.js +2 -2
- package/dist/comments/rules.d.ts +1 -1
- package/dist/comments/rules.js +2 -3
- package/dist/contracts/credential-management.d.ts +1 -1
- package/dist/contracts/credential-management.js +1 -1
- package/dist/contracts/media-picker.d.ts +1 -1
- package/dist/contracts/media-picker.js +1 -1
- package/dist/contracts/playground-render-target.d.ts +1 -1
- package/dist/contracts/playground-render-target.js +1 -1
- package/dist/core/entities/rules.d.ts +8 -2
- package/dist/core/entities/rules.js +3 -3
- package/dist/core/index.d.ts +1 -2
- package/dist/core/index.js +1 -3
- package/dist/core/ledger-slice.d.ts +3 -3
- package/dist/core/ledger-slice.js +3 -3
- package/dist/core/manifest/rules.js +1 -1
- package/dist/core/manifest/types.d.ts +11 -0
- package/dist/core/module/create-admin.d.ts +1 -8
- package/dist/core/module/create-admin.js +4 -9
- package/dist/core/module/index.d.ts +1 -5
- package/dist/core/module/index.js +1 -3
- package/dist/core/ports/auth.d.ts +2 -2
- package/dist/core/ports/auth.js +1 -1
- package/dist/core/ports/comment-repo.d.ts +53 -0
- package/dist/core/ports/comment-repo.js +2 -0
- package/dist/core/ports/comments.d.ts +1 -1
- package/dist/core/ports/comments.js +1 -1
- package/dist/core/ports/database.d.ts +1 -1
- package/dist/core/ports/embed-policy.d.ts +19 -0
- package/dist/core/ports/embed-policy.js +2 -0
- package/dist/core/ports/entities.d.ts +14 -0
- package/dist/core/ports/forms-catalog.d.ts +27 -0
- package/dist/core/ports/forms-catalog.js +2 -0
- package/dist/core/ports/forms.d.ts +3 -3
- package/dist/core/ports/identity.d.ts +1 -1
- package/dist/core/ports/identity.js +1 -1
- package/dist/core/ports/index.d.ts +3 -0
- package/dist/core/ports/media.d.ts +1 -1
- package/dist/core/ports/plugins.d.ts +1 -1
- package/dist/core/react/bind-react.d.ts +6 -16
- package/dist/core/react/bind-react.js +1 -1
- package/dist/core/react/index.d.ts +3 -2
- package/dist/core/react/index.js +3 -2
- package/dist/core/react/module-ui.d.ts +10 -0
- package/dist/core/react/module-ui.js +6 -0
- package/dist/core/react/use-controller.d.ts +1 -1
- package/dist/core/react/use-controller.js +2 -1
- package/dist/core/routing/route-template.d.ts +11 -0
- package/dist/core/routing/route-template.js +23 -0
- package/dist/core/transport/http.js +7 -5
- package/dist/core/transport/index.d.ts +0 -1
- package/dist/core/transport/index.js +0 -1
- package/dist/forms/adapters/http.js +2 -2
- package/dist/forms/adapters/memory.d.ts +1 -1
- package/dist/forms/adapters/memory.js +35 -26
- package/dist/forms/controllers/draft-store.d.ts +4 -4
- package/dist/forms/controllers/draft-store.js +1 -1
- package/dist/forms/controllers/field-attributes-dialog.controller.d.ts +7 -8
- package/dist/forms/controllers/field-attributes-dialog.controller.js +8 -6
- package/dist/forms/controllers/form-editor.controller.d.ts +8 -5
- package/dist/forms/controllers/form-editor.controller.js +2 -2
- package/dist/forms/controllers/form-fields-editor.controller.d.ts +4 -4
- package/dist/forms/controllers/form-submission-detail.controller.d.ts +4 -4
- package/dist/forms/controllers/form-submissions.controller.d.ts +4 -4
- package/dist/forms/controllers/forms-list.controller.d.ts +4 -4
- package/dist/forms/field-settings.d.ts +32 -16
- package/dist/forms/field-settings.js +52 -41
- package/dist/forms/forms.module.d.ts +5 -4
- package/dist/forms/forms.module.js +3 -3
- package/dist/forms/html-rules.d.ts +4 -2
- package/dist/forms/html-rules.js +19 -19
- package/dist/forms/index.d.ts +6 -4
- package/dist/forms/index.js +3 -3
- package/dist/forms/messages.en.js +1 -1
- package/dist/forms/models.d.ts +1 -1
- package/dist/forms/ports.d.ts +8 -4
- package/dist/forms/ports.js +3 -1
- package/dist/forms/react/components/FieldAttributesDialog.d.ts +4 -1
- package/dist/forms/react/components/FieldAttributesDialog.js +6 -28
- package/dist/forms/react/components/FieldAttributesStyling.d.ts +26 -0
- package/dist/forms/react/components/FieldAttributesStyling.js +42 -0
- package/dist/forms/react/components/FieldSettingsRows.js +3 -4
- package/dist/forms/react/components/FieldSettingsSection.d.ts +4 -1
- package/dist/forms/react/components/FieldSettingsSection.js +3 -3
- package/dist/forms/react/components/FormEditorFieldsBody.d.ts +5 -2
- package/dist/forms/react/components/FormEditorFieldsBody.js +3 -3
- package/dist/forms/react/components/FormEditorFieldsBodyParts.js +1 -1
- package/dist/forms/react/components/FormEditorFieldsSlot.d.ts +6 -0
- package/dist/forms/react/components/FormEditorFieldsSlot.js +10 -0
- package/dist/forms/react/components/FormEditorHeader.d.ts +9 -0
- package/dist/forms/react/components/FormEditorHeader.js +16 -0
- package/dist/forms/react/components/FormEditorHeaderText.d.ts +1 -1
- package/dist/forms/react/components/FormEditorHeaderText.js +1 -1
- package/dist/forms/react/components/FormEditorMainPanel.d.ts +1 -1
- package/dist/forms/react/components/FormEditorMainPanel.js +4 -4
- package/dist/forms/react/components/FormEditorTabStrip.d.ts +5 -2
- package/dist/forms/react/components/FormEditorTabStrip.js +3 -4
- package/dist/forms/react/components/FormFieldRow.d.ts +10 -0
- package/dist/forms/react/components/FormFieldRow.js +53 -0
- package/dist/forms/react/components/FormFieldsEditor.d.ts +4 -1
- package/dist/forms/react/components/FormFieldsEditor.js +6 -22
- package/dist/forms/react/components/FormFieldsTableParts.d.ts +10 -0
- package/dist/forms/react/components/FormFieldsTableParts.js +11 -0
- package/dist/forms/react/components/FormSubmissionDate.d.ts +1 -1
- package/dist/forms/react/components/FormSubmissionDate.js +1 -1
- package/dist/forms/react/components/FormSubmissionDetail.d.ts +4 -1
- package/dist/forms/react/components/FormSubmissionDetail.js +3 -3
- package/dist/forms/react/components/FormSubmissions.d.ts +6 -1
- package/dist/forms/react/components/FormSubmissions.js +3 -3
- package/dist/forms/react/components/FormSubmissionsTable.js +1 -1
- package/dist/forms/react/components/FormsListParts.d.ts +36 -0
- package/dist/forms/react/components/FormsListParts.js +41 -0
- package/dist/forms/react/hooks/FormsPorts.hooks.d.ts +7 -1
- package/dist/forms/react/hooks/FormsPorts.hooks.js +11 -1
- package/dist/forms/react/hooks/forms-view.hooks.d.ts +17 -11
- package/dist/forms/react/hooks/forms-view.hooks.js +13 -11
- package/dist/forms/react/hooks/use-field-attributes-dialog.hooks.d.ts +4 -1
- package/dist/forms/react/hooks/use-field-attributes-dialog.hooks.js +6 -4
- package/dist/forms/react/hooks/use-form-editor-parts.hooks.d.ts +127 -0
- package/dist/forms/react/hooks/use-form-editor-parts.hooks.js +223 -0
- package/dist/forms/react/hooks/use-form-editor.hooks.d.ts +13 -3
- package/dist/forms/react/hooks/use-form-editor.hooks.js +34 -210
- package/dist/forms/react/hooks/use-form-fields-editor.hooks.js +2 -2
- package/dist/forms/react/hooks/use-form-submission-detail.hooks.d.ts +2 -2
- package/dist/forms/react/hooks/use-form-submission-detail.hooks.js +4 -4
- package/dist/forms/react/hooks/use-form-submissions.hooks.d.ts +2 -2
- package/dist/forms/react/hooks/use-form-submissions.hooks.js +4 -5
- package/dist/forms/react/hooks/use-forms-list.hooks.js +3 -3
- package/dist/forms/react/index.d.ts +35 -26
- package/dist/forms/react/index.js +5 -6
- package/dist/forms/react/pages/FormEditor.d.ts +2 -2
- package/dist/forms/react/pages/FormEditor.js +7 -12
- package/dist/forms/react/pages/FormsList.d.ts +5 -2
- package/dist/forms/react/pages/FormsList.js +4 -30
- package/dist/forms/rules.d.ts +5 -5
- package/dist/forms/rules.js +8 -20
- package/dist/media/adapters/http.d.ts +24 -2
- package/dist/media/adapters/http.js +133 -10
- package/dist/media/adapters/memory.js +41 -46
- package/dist/media/conformance/media-api.conformance.js +60 -42
- package/dist/media/controllers/edit-media.controller.d.ts +5 -5
- package/dist/media/controllers/edit-media.controller.js +20 -17
- package/dist/media/controllers/library.controller.d.ts +14 -14
- package/dist/media/controllers/library.controller.js +180 -167
- package/dist/media/controllers/providers.controller.d.ts +4 -4
- package/dist/media/controllers/providers.controller.js +46 -40
- package/dist/media/html-attributes.d.ts +23 -13
- package/dist/media/html-attributes.js +15 -23
- package/dist/media/index.d.ts +5 -4
- package/dist/media/index.js +3 -3
- package/dist/media/media.module.d.ts +6 -5
- package/dist/media/media.module.js +3 -3
- package/dist/media/ports.d.ts +8 -3
- package/dist/media/ports.js +4 -1
- package/dist/media/react/components/EditMediaPanel.d.ts +4 -1
- package/dist/media/react/components/EditMediaPanel.js +3 -3
- package/dist/media/react/components/MediaCard.d.ts +7 -2
- package/dist/media/react/components/MediaCard.js +6 -6
- package/dist/media/react/components/MediaDialog.d.ts +4 -1
- package/dist/media/react/components/MediaDialog.js +3 -3
- package/dist/media/react/components/MediaGrid.d.ts +4 -1
- package/dist/media/react/components/MediaGrid.js +2 -2
- package/dist/media/react/components/MediaIcons.d.ts +9 -9
- package/dist/media/react/components/MediaIcons.js +9 -9
- package/dist/media/react/components/MediaLightbox.d.ts +4 -1
- package/dist/media/react/components/MediaLightbox.js +3 -3
- package/dist/media/react/components/MediaPicker.d.ts +4 -1
- package/dist/media/react/components/MediaPicker.js +3 -3
- package/dist/media/react/components/MediaPurgeDialog.d.ts +4 -1
- package/dist/media/react/components/MediaPurgeDialog.js +3 -3
- package/dist/media/react/components/UploadButton.d.ts +4 -1
- package/dist/media/react/components/UploadButton.js +3 -3
- package/dist/media/react/hooks/EditMediaPanel.hooks.d.ts +6 -3
- package/dist/media/react/hooks/EditMediaPanel.hooks.js +62 -50
- package/dist/media/react/hooks/LibraryTab.hooks.d.ts +23 -23
- package/dist/media/react/hooks/LibraryTab.hooks.js +52 -36
- package/dist/media/react/hooks/MediaCard.hooks.d.ts +1 -1
- package/dist/media/react/hooks/MediaCard.hooks.js +2 -1
- package/dist/media/react/hooks/MediaDialog.hooks.d.ts +1 -1
- package/dist/media/react/hooks/MediaPage.hooks.d.ts +22 -18
- package/dist/media/react/hooks/MediaPage.hooks.js +3 -3
- package/dist/media/react/hooks/MediaPicker.hooks.d.ts +1 -1
- package/dist/media/react/hooks/MediaPicker.hooks.js +2 -2
- package/dist/media/react/hooks/MediaPorts.hooks.d.ts +7 -0
- package/dist/media/react/hooks/MediaPorts.hooks.js +11 -1
- package/dist/media/react/hooks/MediaQuery.hooks.d.ts +3 -3
- package/dist/media/react/hooks/MediaQuery.hooks.js +1 -1
- package/dist/media/react/hooks/ProvidersTab.hooks.d.ts +7 -1
- package/dist/media/react/hooks/ProvidersTab.hooks.js +49 -46
- package/dist/media/react/index.d.ts +39 -114
- package/dist/media/react/index.js +55 -48
- package/dist/media/react/pages/MediaPage.d.ts +4 -1
- package/dist/media/react/pages/MediaPage.js +2 -2
- package/dist/media/react/tabs/LibraryTab.d.ts +5 -2
- package/dist/media/react/tabs/LibraryTab.js +3 -3
- package/dist/media/react/tabs/ProvidersTab.d.ts +5 -2
- package/dist/media/react/tabs/ProvidersTab.js +2 -2
- package/dist/media/rules.d.ts +0 -7
- package/dist/media/rules.js +0 -12
- package/dist/playground/controllers/playground.controller.d.ts +3 -3
- package/dist/playground/controllers/playground.controller.js +1 -1
- package/dist/playground/playground.module.d.ts +1 -1
- package/dist/playground/playground.module.js +1 -1
- package/dist/playground/react/components/Canvas.d.ts +5 -2
- package/dist/playground/react/components/Canvas.js +3 -3
- package/dist/playground/react/hooks/Canvas.hooks.d.ts +1 -1
- package/dist/playground/react/hooks/PlaygroundPage.hooks.d.ts +7 -3
- package/dist/playground/react/hooks/PlaygroundPorts.hooks.js +1 -1
- package/dist/playground/react/index.d.ts +9 -9
- package/dist/playground/react/pages/PlaygroundPage.d.ts +8 -2
- package/dist/playground/react/pages/PlaygroundPage.js +3 -3
- package/dist/playground/react/tabs/CanvasTab.d.ts +2 -2
- package/dist/playground/react/tabs/CanvasTab.js +1 -1
- package/dist/react/OverlayHost.d.ts +4 -1
- package/dist/react/OverlayHost.js +2 -2
- package/dist/react/components/ConfirmDialog/ConfirmDialog.d.ts +12 -2
- package/dist/react/components/ConfirmDialog/ConfirmDialog.hooks.js +1 -2
- package/dist/react/components/ConfirmDialog/ConfirmDialog.js +6 -4
- package/dist/react/components/ConfirmDialog/confirm-dialog-attrs.d.ts +1 -1
- package/dist/react/components/ConfirmDialog/confirm-dialog-attrs.js +1 -1
- package/dist/react/components/InteractiveHtmlEditor/InteractiveHtmlEditor.d.ts +2 -2
- package/dist/react/components/InteractiveHtmlEditor/InteractiveHtmlEditor.js +9 -8
- package/dist/react/components/RowMenu/RowMenu.hooks.js +66 -63
- package/dist/react/components/RowMenu/RowMenu.js +1 -1
- package/dist/react/components/Sidebar.d.ts +11 -4
- package/dist/react/components/Sidebar.js +11 -101
- package/dist/react/components/SidebarIcon.d.ts +4 -0
- package/dist/react/components/SidebarIcon.js +91 -0
- package/dist/react/components/ThemePreviewReloadControl.d.ts +7 -0
- package/dist/react/components/ThemePreviewReloadControl.js +5 -0
- package/dist/react/entities/EntityDetail.d.ts +4 -1
- package/dist/react/entities/EntityDetail.hooks.d.ts +14 -0
- package/dist/react/entities/EntityDetail.hooks.js +10 -0
- package/dist/react/entities/EntityDetail.js +3 -6
- package/dist/react/entities/EntityEdit.d.ts +6 -1
- package/dist/react/entities/EntityEdit.js +23 -6
- package/dist/react/entities/EntityField.d.ts +3 -1
- package/dist/react/entities/EntityField.js +9 -6
- package/dist/react/entities/EntityList.d.ts +4 -1
- package/dist/react/entities/EntityList.hooks.d.ts +33 -0
- package/dist/react/entities/EntityList.hooks.js +28 -0
- package/dist/react/entities/EntityList.js +3 -23
- package/dist/react/entities/FailureNotice.d.ts +29 -0
- package/dist/react/entities/FailureNotice.js +33 -0
- package/dist/react/entities/contribution.d.ts +2 -0
- package/dist/react/entities/contribution.js +2 -2
- package/dist/react/entities/rules.d.ts +6 -1
- package/dist/react/entities/rules.js +7 -4
- package/dist/react/entities/types.d.ts +19 -0
- package/dist/react/entities/use-entity-edit.d.ts +11 -2
- package/dist/react/entities/use-entity-edit.js +18 -12
- package/dist/react/entities/use-entity-read.d.ts +7 -2
- package/dist/react/entities/use-entity-read.js +9 -4
- package/dist/react/hooks/use-browser-telemetry-feed.d.ts +13 -0
- package/dist/react/hooks/use-browser-telemetry-feed.js +14 -0
- package/dist/react/hooks/use-overflow-title.d.ts +17 -0
- package/dist/react/hooks/use-overflow-title.js +29 -0
- package/dist/react/hooks/use-process-restart.d.ts +46 -0
- package/dist/react/hooks/use-process-restart.js +59 -0
- package/dist/react/hooks/use-rail-label-titles.d.ts +18 -0
- package/dist/react/hooks/use-rail-label-titles.js +44 -0
- package/dist/react/index.d.ts +6 -0
- package/dist/react/index.js +5 -0
- package/dist/react/kit-media-providers.d.ts +187 -0
- package/dist/react/kit-media-providers.js +2 -0
- package/dist/react/kit.d.ts +478 -0
- package/dist/react/kit.js +75 -0
- package/dist/react/overlays.d.ts +4 -4
- package/dist/react/overlays.js +1 -1
- package/dist/react/shell/AdminShell.d.ts +2 -2
- package/dist/react/shell/AdminShell.js +56 -24
- package/dist/react/shell/index.d.ts +1 -1
- package/dist/react/shell/model.d.ts +9 -1
- package/dist/react/shell/model.js +31 -15
- package/dist/react/shell/shell-hooks.d.ts +34 -0
- package/dist/react/shell/shell-hooks.js +31 -0
- package/dist/react/shell/theme-ports.d.ts +1 -1
- package/dist/react/shell/types.d.ts +97 -3
- package/dist/react/shell/use-admin-theme.d.ts +4 -2
- package/dist/react/shell/use-admin-theme.js +4 -3
- package/dist/react/testing-kit-media-providers.d.ts +3 -0
- package/dist/react/testing-kit-media-providers.js +96 -0
- package/dist/react/testing-kit.d.ts +11 -0
- package/dist/react/testing-kit.js +114 -0
- package/dist/redirects/adapters/memory.js +42 -33
- package/dist/redirects/conformance/redirects-api.conformance.js +1 -1
- package/dist/redirects/controllers/hit-count.controller.d.ts +5 -5
- package/dist/redirects/controllers/hit-count.controller.js +1 -1
- package/dist/redirects/controllers/import-redirects.controller.d.ts +5 -5
- package/dist/redirects/controllers/import-redirects.controller.js +1 -1
- package/dist/redirects/controllers/redirects.controller.d.ts +5 -5
- package/dist/redirects/controllers/redirects.controller.js +1 -1
- package/dist/redirects/index.d.ts +11 -7
- package/dist/redirects/index.js +6 -7
- package/dist/redirects/ports.d.ts +2 -2
- package/dist/redirects/ports.js +1 -1
- package/dist/redirects/react/components/CreateRedirectForm.d.ts +17 -0
- package/dist/redirects/react/components/CreateRedirectForm.js +19 -0
- package/dist/redirects/react/components/HitCountCell.js +2 -2
- package/dist/redirects/react/components/ImportRedirectsForm.js +1 -1
- package/dist/redirects/react/hooks/RedirectsPage.hooks.d.ts +1 -1
- package/dist/redirects/react/hooks/RedirectsPorts.hooks.d.ts +5 -0
- package/dist/redirects/react/hooks/RedirectsPorts.hooks.js +11 -1
- package/dist/redirects/react/hooks/use-hit-count-cell.hooks.js +3 -3
- package/dist/redirects/react/hooks/use-import-redirects-form.hooks.js +4 -4
- package/dist/redirects/react/hooks/use-redirects.hooks.d.ts +1 -1
- package/dist/redirects/react/hooks/use-redirects.hooks.js +4 -4
- package/dist/redirects/react/hooks/wired.hooks.d.ts +1 -1
- package/dist/redirects/react/index.d.ts +25 -90
- package/dist/redirects/react/index.js +6 -7
- package/dist/redirects/react/pages/RedirectsPage.d.ts +3 -1
- package/dist/redirects/react/pages/RedirectsPage.js +5 -5
- package/dist/redirects/redirects.module.d.ts +2 -2
- package/dist/redirects/redirects.module.js +1 -1
- package/dist/security/controllers/access-tokens.controller.d.ts +4 -4
- package/dist/security/controllers/access-tokens.controller.js +20 -15
- package/dist/security/controllers/other-credentials.controller.d.ts +4 -4
- package/dist/security/controllers/other-credentials.controller.js +1 -1
- package/dist/security/controllers/root-key.controller.d.ts +4 -4
- package/dist/security/controllers/root-key.controller.js +1 -1
- package/dist/security/ports.d.ts +3 -3
- package/dist/security/ports.js +1 -1
- package/dist/security/react/components/CredentialEditor.d.ts +4 -2
- package/dist/security/react/components/CredentialEditor.js +3 -3
- package/dist/security/react/hooks/AccessTokensTab.hooks.d.ts +5 -5
- package/dist/security/react/hooks/RootKeyTab.hooks.d.ts +1 -1
- package/dist/security/react/hooks/SecurityPage.hooks.d.ts +7 -3
- package/dist/security/react/hooks/SecurityPorts.hooks.js +1 -1
- package/dist/security/react/index.d.ts +22 -22
- package/dist/security/react/pages/SecurityPage.d.ts +8 -2
- package/dist/security/react/pages/SecurityPage.js +3 -3
- package/dist/security/react/tabs/AccessTokensTab.d.ts +5 -2
- package/dist/security/react/tabs/AccessTokensTab.js +3 -3
- package/dist/security/react/tabs/RootKeyTab.d.ts +5 -2
- package/dist/security/react/tabs/RootKeyTab.js +3 -3
- package/dist/security/rules.d.ts +1 -1
- package/dist/security/security.module.d.ts +4 -4
- package/dist/security/security.module.js +1 -1
- package/dist/seo/controllers/entry-picker.controller.d.ts +7 -7
- package/dist/seo/controllers/entry-picker.controller.js +1 -1
- package/dist/seo/controllers/entry-section.controller.d.ts +9 -9
- package/dist/seo/controllers/entry-section.controller.js +1 -1
- package/dist/seo/controllers/media-ref.controller.d.ts +9 -9
- package/dist/seo/controllers/media-ref.controller.js +1 -1
- package/dist/seo/controllers/seo-entry.controller.d.ts +7 -7
- package/dist/seo/controllers/seo-entry.controller.js +1 -1
- package/dist/seo/controllers/seo.controller.d.ts +7 -7
- package/dist/seo/controllers/seo.controller.js +1 -1
- package/dist/seo/controllers/sitemap.controller.d.ts +7 -7
- package/dist/seo/controllers/sitemap.controller.js +2 -2
- package/dist/seo/index.d.ts +4 -2
- package/dist/seo/index.js +2 -2
- package/dist/seo/ports.d.ts +2 -2
- package/dist/seo/ports.js +1 -1
- package/dist/seo/react/components/AnalyzePanel.d.ts +13 -0
- package/dist/seo/react/components/AnalyzePanel.js +21 -0
- package/dist/seo/react/components/EntryPicker.d.ts +19 -0
- package/dist/seo/react/components/EntryPicker.js +25 -0
- package/dist/seo/react/components/MediaPickerBridge.d.ts +4 -1
- package/dist/seo/react/components/MediaPickerBridge.js +2 -2
- package/dist/seo/react/components/MediaRefField.d.ts +5 -2
- package/dist/seo/react/components/MediaRefField.js +5 -5
- package/dist/seo/react/components/SeoEntryFields.d.ts +19 -0
- package/dist/seo/react/components/SeoEntryFields.js +19 -0
- package/dist/seo/react/components/SeoEntryPanel.d.ts +31 -0
- package/dist/seo/react/components/SeoEntryPanel.js +64 -0
- package/dist/seo/react/components/SeoIcons.d.ts +3 -3
- package/dist/seo/react/components/SeoIcons.js +3 -3
- package/dist/seo/react/components/SeoSection.d.ts +27 -0
- package/dist/seo/react/components/SeoSection.js +24 -0
- package/dist/seo/react/components/SitemapModal.d.ts +42 -2
- package/dist/seo/react/components/SitemapModal.js +17 -17
- package/dist/seo/react/hooks/MediaRefField.hooks.js +6 -6
- package/dist/seo/react/hooks/SeoModuleTabs.d.ts +2 -2
- package/dist/seo/react/hooks/SeoModuleTabs.js +3 -1
- package/dist/seo/react/hooks/SeoPage.hooks.d.ts +2 -2
- package/dist/seo/react/hooks/SeoPorts.hooks.d.ts +5 -0
- package/dist/seo/react/hooks/SeoPorts.hooks.js +11 -1
- package/dist/seo/react/hooks/SeoQuery.hooks.d.ts +3 -3
- package/dist/seo/react/hooks/SeoQuery.hooks.js +1 -1
- package/dist/seo/react/hooks/SitemapModal.hooks.js +1 -1
- package/dist/seo/react/hooks/use-entry-picker.hooks.js +1 -1
- package/dist/seo/react/hooks/use-seo-entry-panel.hooks.js +3 -3
- package/dist/seo/react/hooks/use-seo-entry-section.hooks.js +2 -2
- package/dist/seo/react/hooks/use-seo.hooks.js +3 -3
- package/dist/seo/react/hooks/use-share-image-warning.hooks.js +1 -1
- package/dist/seo/react/hooks/use-sitemap-modal.hooks.d.ts +4 -1
- package/dist/seo/react/hooks/use-sitemap-modal.hooks.js +6 -5
- package/dist/seo/react/index.d.ts +28 -21
- package/dist/seo/react/index.js +5 -6
- package/dist/seo/react/pages/SeoPage.d.ts +16 -82
- package/dist/seo/react/pages/SeoPage.js +29 -216
- package/dist/seo/react/tabs/SeoDefaultsSections.d.ts +19 -0
- package/dist/seo/react/tabs/SeoDefaultsSections.js +48 -0
- package/dist/seo/react/tabs/SeoDefaultsTab.d.ts +24 -0
- package/dist/seo/react/tabs/SeoDefaultsTab.js +30 -0
- package/dist/seo/react/tabs/SeoSitemapTab.d.ts +24 -0
- package/dist/seo/react/tabs/SeoSitemapTab.js +38 -0
- package/dist/seo/rules.d.ts +3 -3
- package/dist/seo/rules.js +6 -6
- package/dist/seo/seo.module.d.ts +3 -3
- package/dist/seo/seo.module.js +1 -1
- package/dist/source-control/controllers/source-control.controller.d.ts +3 -3
- package/dist/source-control/controllers/source-control.controller.js +1 -1
- package/dist/source-control/ports.d.ts +1 -1
- package/dist/source-control/ports.js +1 -1
- package/dist/source-control/react/components/SourceControlCredentialFields.d.ts +4 -2
- package/dist/source-control/react/components/SourceControlCredentialFields.js +3 -3
- package/dist/source-control/react/components/SourceControlProviderRow.d.ts +1 -1
- package/dist/source-control/react/components/SourceControlProviderRow.js +2 -2
- package/dist/source-control/react/hooks/ProvidersTab.hooks.d.ts +1 -1
- package/dist/source-control/react/hooks/ProvidersTab.hooks.js +2 -2
- package/dist/source-control/react/hooks/SourceControlPage.hooks.d.ts +7 -3
- package/dist/source-control/react/hooks/SourceControlPorts.hooks.d.ts +5 -0
- package/dist/source-control/react/hooks/SourceControlPorts.hooks.js +11 -1
- package/dist/source-control/react/index.d.ts +25 -50
- package/dist/source-control/react/index.js +9 -6
- package/dist/source-control/react/pages/SourceControlPage.d.ts +8 -2
- package/dist/source-control/react/pages/SourceControlPage.js +3 -3
- package/dist/source-control/react/tabs/ProvidersTab.d.ts +5 -2
- package/dist/source-control/react/tabs/ProvidersTab.js +3 -3
- package/dist/source-control/source-control.module.d.ts +2 -2
- package/dist/source-control/source-control.module.js +1 -1
- package/dist/widgets/adapters/http.js +2 -2
- package/dist/widgets/adapters/memory.js +26 -20
- package/dist/widgets/controllers/instance-editor.controller.d.ts +3 -3
- package/dist/widgets/controllers/instance-editor.controller.js +48 -38
- package/dist/widgets/controllers/library.controller.d.ts +3 -3
- package/dist/widgets/controllers/library.controller.js +1 -2
- package/dist/widgets/controllers/region-editor.controller.d.ts +3 -3
- package/dist/widgets/controllers/region-editor.controller.js +5 -5
- package/dist/widgets/controllers/regions.controller.d.ts +3 -3
- package/dist/widgets/controllers/regions.controller.js +1 -2
- package/dist/widgets/index.d.ts +2 -1
- package/dist/widgets/index.js +1 -1
- package/dist/widgets/messages.en.js +1 -1
- package/dist/widgets/ports.d.ts +3 -3
- package/dist/widgets/ports.js +1 -1
- package/dist/widgets/react/components/RegionPlacementRow.d.ts +14 -0
- package/dist/widgets/react/components/RegionPlacementRow.js +8 -0
- package/dist/widgets/react/components/TrashWidgetDialog.d.ts +11 -0
- package/dist/widgets/react/components/TrashWidgetDialog.js +8 -0
- package/dist/widgets/react/components/WidgetInstanceNotices.js +1 -1
- package/dist/widgets/react/components/WidgetPageHeaders.d.ts +42 -0
- package/dist/widgets/react/components/WidgetPageHeaders.js +54 -0
- package/dist/widgets/react/components/WidgetRegionEditorHeaderActions.js +1 -1
- package/dist/widgets/react/components/WidgetTableColumns.d.ts +12 -0
- package/dist/widgets/react/components/WidgetTableColumns.js +47 -0
- package/dist/widgets/react/hooks/WidgetsPorts.hooks.d.ts +12 -7
- package/dist/widgets/react/hooks/WidgetsPorts.hooks.js +11 -0
- package/dist/widgets/react/hooks/WidgetsQuery.hooks.d.ts +2 -2
- package/dist/widgets/react/hooks/WidgetsQuery.hooks.js +1 -1
- package/dist/widgets/react/hooks/page-views.hooks.d.ts +1 -1
- package/dist/widgets/react/hooks/page-views.hooks.js +1 -1
- package/dist/widgets/react/hooks/use-widget-instance-editor.hooks.d.ts +2 -2
- package/dist/widgets/react/hooks/use-widget-instance-editor.hooks.js +3 -3
- package/dist/widgets/react/hooks/use-widget-region-editor.hooks.d.ts +1 -1
- package/dist/widgets/react/hooks/use-widget-region-editor.hooks.js +2 -2
- package/dist/widgets/react/hooks/use-widget-regions.hooks.d.ts +3 -1
- package/dist/widgets/react/hooks/use-widget-regions.hooks.js +7 -6
- package/dist/widgets/react/hooks/use-widgets-library.hooks.d.ts +4 -2
- package/dist/widgets/react/hooks/use-widgets-library.hooks.js +7 -6
- package/dist/widgets/react/index.d.ts +41 -34
- package/dist/widgets/react/index.js +5 -6
- package/dist/widgets/react/pages/WidgetInstanceEditor.d.ts +5 -1
- package/dist/widgets/react/pages/WidgetInstanceEditor.js +7 -9
- package/dist/widgets/react/pages/WidgetRegionEditor.d.ts +5 -1
- package/dist/widgets/react/pages/WidgetRegionEditor.js +8 -10
- package/dist/widgets/react/pages/WidgetRegions.d.ts +5 -1
- package/dist/widgets/react/pages/WidgetRegions.js +6 -8
- package/dist/widgets/react/pages/WidgetsLibrary.d.ts +5 -1
- package/dist/widgets/react/pages/WidgetsLibrary.js +8 -45
- package/dist/widgets/rules.d.ts +5 -3
- package/dist/widgets/rules.js +4 -9
- package/dist/widgets/widgets.module.d.ts +3 -3
- package/dist/widgets/widgets.module.js +1 -1
- package/package.json +23 -57
- package/dist/consent/react/ConsentFields.d.ts +0 -39
- package/dist/consent/react/ConsentFields.js +0 -87
- package/dist/consent/react/ConsentPreviewFrame.d.ts +0 -14
- package/dist/consent/react/ConsentPreviewFrame.js +0 -14
- package/dist/consent/react/ConsentSettingsPanel.d.ts +0 -54
- package/dist/consent/react/ConsentSettingsPanel.js +0 -13
- package/dist/consent/react/index.d.ts +0 -8
- package/dist/consent/react/index.js +0 -4
- package/dist/consent/react/settings-panel.hooks.d.ts +0 -49
- package/dist/consent/react/settings-panel.hooks.js +0 -57
- package/dist/core/module/controller-store.d.ts +0 -22
- package/dist/core/module/controller-store.js +0 -32
- package/dist/core/module/define-admin-module.d.ts +0 -4
- package/dist/core/module/define-admin-module.js +0 -5
- package/dist/core/module/token.d.ts +0 -19
- package/dist/core/module/token.js +0 -4
- package/dist/core/module/types.d.ts +0 -79
- package/dist/core/module/types.js +0 -2
- package/dist/core/permissions/rules.d.ts +0 -35
- package/dist/core/permissions/rules.js +0 -34
- package/dist/core/transport/errors.d.ts +0 -62
- package/dist/core/transport/errors.js +0 -63
- package/dist/core/transport/query-suffix.d.ts +0 -3
- package/dist/core/transport/query-suffix.js +0 -5
- package/dist/react/bind-react.d.ts +0 -2
- package/dist/react/bind-react.js +0 -3
- package/dist/react/use-controller.d.ts +0 -2
- package/dist/react/use-controller.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
|
|
104
104
|
**`@jini-ai/composio` is retired, not versioned forward.** It was published (0.1.0, 0.2.0, 0.2.1 —
|
|
105
105
|
a longer public life than ui-core's single version), but has zero consumers: no source file,
|
|
106
|
-
package.json, or lockfile in either this repo or
|
|
106
|
+
package.json, or lockfile in either this repo or the first host has ever referenced it, verified with a `-S`
|
|
107
107
|
pickaxe over full git history rather than current state alone. Deleting the source does **not**
|
|
108
108
|
unpublish anything — 0.2.1 stays installable and no existing build breaks — so a deprecation-stub
|
|
109
109
|
package was judged not worth keeping alive for a name nothing needs. Whoever runs the next release
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
One caution for anyone re-examining that consumer question later: composio's CHANGELOG for 0.2.1
|
|
117
|
-
says "Verified against a real external consumer (
|
|
117
|
+
says "Verified against a real external consumer (the first host...)", which reads like direct evidence of a
|
|
118
118
|
dependency. It is not. That exact sentence appears verbatim in 23 other packages' CHANGELOGs — it
|
|
119
119
|
is boilerplate from a repo-wide `main`/`types` resolution fix that was batch-applied, not a
|
|
120
120
|
composio-specific claim.
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
|
|
147
147
|
## 0.4.10 — 2026-10-13
|
|
148
148
|
|
|
149
|
-
- Forms HTML starter: URL fields emit `type="text"` plus the registry's URL hints (`inputmode`, `autocomplete`, `spellcheck`, `autocapitalize`), so bare domains such as `
|
|
149
|
+
- Forms HTML starter: URL fields emit `type="text"` plus the registry's URL hints (`inputmode`, `autocomplete`, `spellcheck`, `autocapitalize`), so bare domains such as `example.com` are no longer refused by the browser. CMS peer floor ^0.5.11.
|
|
150
150
|
|
|
151
151
|
## 0.4.9 — 2026-10-13
|
|
152
152
|
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
|
|
170
170
|
### Patch Changes
|
|
171
171
|
|
|
172
|
-
-
|
|
172
|
+
- Host clean-up release (2026-10-08): code the first host moved into Jini, plus the Jini clean-up (see the commit log since 0.4.2).
|
|
173
173
|
|
|
174
174
|
## 0.4.2 — 2026-10-05
|
|
175
175
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const agentPluginsModule: {
|
|
2
2
|
readonly id: "agent-plugins";
|
|
3
3
|
readonly requires: {
|
|
4
|
-
readonly agentPluginsApi: import("
|
|
4
|
+
readonly agentPluginsApi: import("@jini-ai/core/contracts/admin-module").AdminPortToken<import("./ports.js").AgentPluginsApiPort, "admin.agent-plugins.api">;
|
|
5
5
|
};
|
|
6
6
|
readonly messages: {
|
|
7
7
|
readonly title: "Agent Plugins";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineAdminModule } from '
|
|
1
|
+
import { defineAdminModule } from '@jini-ai/core/contracts/admin-module';
|
|
2
2
|
import { agentPluginsApiToken } from './ports.js';
|
|
3
3
|
import { agentPluginsMessagesEn as m } from './messages.en.js';
|
|
4
4
|
import { AGENT_PLUGINS_READ } from './rules.js';
|
|
@@ -4,10 +4,10 @@ export declare function createAgentPluginFilesController({ api, permissions }: {
|
|
|
4
4
|
api: AgentPluginsApiPort;
|
|
5
5
|
permissions?: readonly string[];
|
|
6
6
|
}, _optional?: {}): {
|
|
7
|
-
getSnapshot: () =>
|
|
8
|
-
subscribe: (
|
|
7
|
+
getSnapshot: (required?: Record<string, never>, optional?: Record<string, never>) => AgentPluginFilesState;
|
|
8
|
+
subscribe: (required: {
|
|
9
9
|
listener: () => void;
|
|
10
|
-
}) => () => void;
|
|
10
|
+
}, optional?: Record<string, never>) => () => void;
|
|
11
11
|
open({ pluginId }: {
|
|
12
12
|
pluginId: string;
|
|
13
13
|
}, _optional?: {}): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createControllerStore } from '
|
|
1
|
+
import { createControllerStore } from '@jini-ai/core/admin-runtime';
|
|
2
2
|
import { agentPluginFilesSnapshot, selectAgentPluginFile, AGENT_PLUGINS_READ } from '../rules.js';
|
|
3
3
|
import { agentPluginsMessagesEn as m } from '../messages.en.js';
|
|
4
4
|
const selectedPathIn = ({ files, path }, _optional = {}) => selectAgentPluginFile({ files, path })?.relativePath ?? '';
|
|
@@ -4,10 +4,10 @@ export declare function createAgentPluginsController({ api, permissions }: {
|
|
|
4
4
|
api: AgentPluginsApiPort;
|
|
5
5
|
permissions?: readonly string[];
|
|
6
6
|
}, _optional?: {}): {
|
|
7
|
-
getSnapshot: () =>
|
|
8
|
-
subscribe: (
|
|
7
|
+
getSnapshot: (required?: Record<string, never>, optional?: Record<string, never>) => AgentPluginsState;
|
|
8
|
+
subscribe: (required: {
|
|
9
9
|
listener: () => void;
|
|
10
|
-
}) => () => void;
|
|
10
|
+
}, optional?: Record<string, never>) => () => void;
|
|
11
11
|
load: (_required: Record<string, never>, _optional?: {}) => Promise<void>;
|
|
12
12
|
setEnabled: (input: AgentPluginActivationInput, _optional?: {}) => Promise<boolean>;
|
|
13
13
|
requestDisable(input: AgentPluginDisableRequest, _optional?: {}): void;
|
|
@@ -1,6 +1,34 @@
|
|
|
1
|
-
import { createControllerStore } from '
|
|
1
|
+
import { createControllerStore } from '@jini-ai/core/admin-runtime';
|
|
2
2
|
import { agentPluginSummary, AGENT_PLUGINS_READ, AGENT_PLUGINS_WRITE } from '../rules.js';
|
|
3
3
|
import { agentPluginsMessagesEn as m } from '../messages.en.js';
|
|
4
|
+
function createPluginActivationWriter(api, store, { rowFor, canWrite, onAccepted }) {
|
|
5
|
+
return async function setEnabled(input, _optional = {}) {
|
|
6
|
+
const row = rowFor(input.pluginId), state = store.getSnapshot();
|
|
7
|
+
if (!canWrite() || !row || row.enabled === input.enabled || state.busyIds.includes(input.pluginId))
|
|
8
|
+
return false;
|
|
9
|
+
store.set({ patch: { busyIds: [...state.busyIds, input.pluginId], actionError: null } });
|
|
10
|
+
try {
|
|
11
|
+
const updated = await api.setEnabled(input, { signal: store.signal });
|
|
12
|
+
if (store.signal.aborted)
|
|
13
|
+
return false;
|
|
14
|
+
if (updated.pluginId !== input.pluginId)
|
|
15
|
+
throw new Error('Invalid activation response');
|
|
16
|
+
onAccepted();
|
|
17
|
+
// No optimistic flip: independent rows always splice into the newest snapshot.
|
|
18
|
+
// rowFor found this row above and plugins is never reset to null, so the list exists here.
|
|
19
|
+
const current = store.getSnapshot();
|
|
20
|
+
store.set({ patch: { plugins: Object.freeze(current.plugins.map(p => p.pluginId === updated.pluginId ? agentPluginSummary({ row: updated }) : p)) } });
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
catch {
|
|
24
|
+
store.set({ patch: { actionError: m.actionError } });
|
|
25
|
+
}
|
|
26
|
+
finally {
|
|
27
|
+
store.set({ patch: { busyIds: store.getSnapshot().busyIds.filter(id => id !== input.pluginId) } });
|
|
28
|
+
}
|
|
29
|
+
return false;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
4
32
|
export function createAgentPluginsController({ api, permissions = [] }, _optional = {}) {
|
|
5
33
|
const grants = new Set(permissions);
|
|
6
34
|
const store = createControllerStore({ initial: { plugins: null, loading: false, error: null, actionError: null, busyIds: [], expandedIds: [], pendingDisable: null, inspectedId: null } });
|
|
@@ -36,32 +64,7 @@ export function createAgentPluginsController({ api, permissions = [] }, _optiona
|
|
|
36
64
|
store.set({ patch: { loading: false } });
|
|
37
65
|
}
|
|
38
66
|
}
|
|
39
|
-
|
|
40
|
-
const row = rowFor(input.pluginId), state = store.getSnapshot();
|
|
41
|
-
if (!canWrite() || !row || row.enabled === input.enabled || state.busyIds.includes(input.pluginId))
|
|
42
|
-
return false;
|
|
43
|
-
store.set({ patch: { busyIds: [...state.busyIds, input.pluginId], actionError: null } });
|
|
44
|
-
try {
|
|
45
|
-
const updated = await api.setEnabled(input, { signal: store.signal });
|
|
46
|
-
if (store.signal.aborted)
|
|
47
|
-
return false;
|
|
48
|
-
if (updated.pluginId !== input.pluginId)
|
|
49
|
-
throw new Error('Invalid activation response');
|
|
50
|
-
revision++;
|
|
51
|
-
// No optimistic flip: independent rows always splice into the newest snapshot.
|
|
52
|
-
// rowFor found this row above and plugins is never reset to null, so the list exists here.
|
|
53
|
-
const current = store.getSnapshot();
|
|
54
|
-
store.set({ patch: { plugins: Object.freeze(current.plugins.map(p => p.pluginId === updated.pluginId ? agentPluginSummary({ row: updated }) : p)) } });
|
|
55
|
-
return true;
|
|
56
|
-
}
|
|
57
|
-
catch {
|
|
58
|
-
store.set({ patch: { actionError: m.actionError } });
|
|
59
|
-
}
|
|
60
|
-
finally {
|
|
61
|
-
store.set({ patch: { busyIds: store.getSnapshot().busyIds.filter(id => id !== input.pluginId) } });
|
|
62
|
-
}
|
|
63
|
-
return false;
|
|
64
|
-
}
|
|
67
|
+
const setEnabled = createPluginActivationWriter(api, store, { rowFor, canWrite, onAccepted: () => { revision++; } });
|
|
65
68
|
return {
|
|
66
69
|
getSnapshot: store.getSnapshot, subscribe: store.subscribe, load, setEnabled,
|
|
67
70
|
requestDisable(input, _optional = {}) {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
1
|
+
export type { AgentPluginActivationInput, AgentPluginDisableRequest, AgentPluginFiles, AgentPluginFilesState, AgentPluginPackageFile, AgentPluginRequestOptions, AgentPluginSummary, AgentPluginTab, AgentPluginsState } from './models.js';
|
|
2
|
+
export { agentPluginsApiToken } from './ports.js';
|
|
3
|
+
export type { AgentPluginsApiPort, AgentPluginsTransportPort } from './ports.js';
|
|
4
|
+
export { AGENT_PLUGINS_READ, AGENT_PLUGINS_SPEC_URL, AGENT_PLUGINS_WRITE, agentPluginDisableCopy, agentPluginFileNotice, agentPluginFilesSnapshot, agentPluginGlyphKind, agentPluginSummary, humanizeAgentPluginId, selectAgentPluginFile } from './rules.js';
|
|
5
|
+
export type { AgentPluginGlyphKind } from './rules.js';
|
|
6
|
+
export { ancestorFolderPaths, buildPackageFileTree, firstPackageFilePath, packageFileIconKind, packageFileTreeKeyAction, visiblePackageFileRows } from './package-file-tree.js';
|
|
7
|
+
export type { PackageFileIconKind, PackageFileTreeFile, PackageFileTreeFolder, PackageFileTreeKeyAction, PackageFileTreeNode, PackageFileTreeRow } from './package-file-tree.js';
|
|
8
|
+
export { agentPluginsMessagesEn } from './messages.en.js';
|
|
9
|
+
export { agentPluginsModule } from './agent-plugins.module.js';
|
|
10
|
+
export { createAgentPluginsController } from './controllers/agent-plugins.controller.js';
|
|
11
|
+
export { createAgentPluginFilesController } from './controllers/agent-plugin-files.controller.js';
|
|
9
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export * from './controllers/agent-plugin-files.controller.js';
|
|
1
|
+
export { agentPluginsApiToken } from './ports.js';
|
|
2
|
+
export { AGENT_PLUGINS_READ, AGENT_PLUGINS_SPEC_URL, AGENT_PLUGINS_WRITE, agentPluginDisableCopy, agentPluginFileNotice, agentPluginFilesSnapshot, agentPluginGlyphKind, agentPluginSummary, humanizeAgentPluginId, selectAgentPluginFile } from './rules.js';
|
|
3
|
+
export { ancestorFolderPaths, buildPackageFileTree, firstPackageFilePath, packageFileIconKind, packageFileTreeKeyAction, visiblePackageFileRows } from './package-file-tree.js';
|
|
4
|
+
export { agentPluginsMessagesEn } from './messages.en.js';
|
|
5
|
+
export { agentPluginsModule } from './agent-plugins.module.js';
|
|
6
|
+
export { createAgentPluginsController } from './controllers/agent-plugins.controller.js';
|
|
7
|
+
export { createAgentPluginFilesController } from './controllers/agent-plugin-files.controller.js';
|
|
9
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
readonly
|
|
1
|
+
/**
|
|
2
|
+
* HTTP presentation projection; installation paths/digests never enter the browser.
|
|
3
|
+
* Restated from the plugin lifecycle's `InstalledAgentPlugin` (only the fields the screen reads) so admin owns its
|
|
4
|
+
* plugin-list port; `__tests__/installed-plugin-fit.typecheck.ts` fails to compile when the lifecycle's types drift.
|
|
5
|
+
*/
|
|
6
|
+
export interface AgentPluginSummary {
|
|
7
|
+
readonly pluginId: string;
|
|
8
|
+
readonly version: string | null;
|
|
9
|
+
readonly description: string | null;
|
|
10
|
+
readonly keywords: readonly string[];
|
|
11
|
+
readonly skills: readonly {
|
|
12
|
+
readonly name: string;
|
|
8
13
|
readonly summary: string;
|
|
9
|
-
}
|
|
14
|
+
}[];
|
|
10
15
|
readonly mcpServerIds: readonly string[];
|
|
11
|
-
readonly enabled:
|
|
16
|
+
readonly enabled: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface AgentPluginActivationInput {
|
|
19
|
+
readonly pluginId: string;
|
|
20
|
+
readonly enabled: boolean;
|
|
12
21
|
}
|
|
13
|
-
export type AgentPluginActivationInput = Pick<SetAgentPluginEnabledInput, 'pluginId' | 'enabled'>;
|
|
14
22
|
export interface AgentPluginPackageFile {
|
|
15
23
|
readonly relativePath: string;
|
|
16
24
|
readonly sizeBytes: number;
|
|
@@ -19,7 +27,7 @@ export interface AgentPluginPackageFile {
|
|
|
19
27
|
}
|
|
20
28
|
/** The existing read-only route's bounded listing, not lifecycle's on-disk files array. */
|
|
21
29
|
export interface AgentPluginFiles {
|
|
22
|
-
readonly pluginId:
|
|
30
|
+
readonly pluginId: string;
|
|
23
31
|
readonly files: readonly AgentPluginPackageFile[];
|
|
24
32
|
readonly truncated: boolean;
|
|
25
33
|
readonly limits: {
|
|
@@ -14,5 +14,5 @@ export interface AgentPluginsTransportPort {
|
|
|
14
14
|
readonly body?: unknown;
|
|
15
15
|
}, optional?: AgentPluginRequestOptions): Promise<T>;
|
|
16
16
|
}
|
|
17
|
-
export declare const agentPluginsApiToken: import("
|
|
17
|
+
export declare const agentPluginsApiToken: import("@jini-ai/core/contracts/admin-module").AdminPortToken<AgentPluginsApiPort, "admin.agent-plugins.api">;
|
|
18
18
|
//# sourceMappingURL=ports.d.ts.map
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { AgentPluginPackageFile } from '../../models.js';
|
|
2
|
-
|
|
2
|
+
import { useAgentPluginFileContent } from '../hooks/AgentPluginInspector.hooks.js';
|
|
3
|
+
export declare function AgentPluginFileContent({ file, useAgentPluginFileContentHook }: {
|
|
3
4
|
file: AgentPluginPackageFile;
|
|
4
|
-
|
|
5
|
+
useAgentPluginFileContentHook?: typeof useAgentPluginFileContent;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
5
7
|
//# sourceMappingURL=AgentPluginFileContent.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment } from 'react';
|
|
3
|
-
import { Button } from '
|
|
3
|
+
import { Button } from '../../../react/kit.js';
|
|
4
4
|
import { useAgentPluginFileContent } from '../hooks/AgentPluginInspector.hooks.js';
|
|
5
|
-
export function AgentPluginFileContent({ file
|
|
6
|
-
const vm =
|
|
5
|
+
export function AgentPluginFileContent({ file, useAgentPluginFileContentHook = useAgentPluginFileContent }) {
|
|
6
|
+
const vm = useAgentPluginFileContentHook({ file });
|
|
7
7
|
return _jsxs("section", { "aria-labelledby": vm.headingId, children: [_jsx("h3", { id: vm.headingId, children: vm.segments.map((segment, i) => _jsxs("span", { children: [segment.text, segment.slash && _jsxs(_Fragment, { children: [_jsx("span", { children: "/" }), _jsx("wbr", {})] })] }, i)) }), vm.hasContent ? _jsxs(_Fragment, { children: [_jsx(Button, { attrs: vm.wrapAttrs, onPress: vm.toggleWrap, children: vm.wrapText }), _jsx("div", { style: vm.codeStyle, children: vm.lines.map(line => _jsxs(Fragment, { children: [_jsxs("span", { "aria-hidden": true, children: [line.number, " "] }), _jsx("code", { style: vm.lineStyle, children: line.text })] }, line.number)) })] }) : _jsx("p", { role: "status", children: vm.notice })] });
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=AgentPluginFileContent.js.map
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { AgentPluginPackageFile } from '../../models.js';
|
|
2
|
-
|
|
2
|
+
import { useAgentPluginFileTree } from '../hooks/AgentPluginInspector.hooks.js';
|
|
3
|
+
export declare function AgentPluginFileTree({ files, selectedPath, onOpen, useAgentPluginFileTreeHook }: {
|
|
3
4
|
files: readonly AgentPluginPackageFile[];
|
|
4
5
|
selectedPath: string | null;
|
|
5
6
|
onOpen: (required: {
|
|
6
7
|
path: string;
|
|
7
8
|
}) => void;
|
|
8
|
-
|
|
9
|
+
useAgentPluginFileTreeHook?: typeof useAgentPluginFileTree;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
9
11
|
//# sourceMappingURL=AgentPluginFileTree.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useAgentPluginFileTree } from '../hooks/AgentPluginInspector.hooks.js';
|
|
3
|
-
export function AgentPluginFileTree({ files, selectedPath, onOpen
|
|
4
|
-
const vm =
|
|
3
|
+
export function AgentPluginFileTree({ files, selectedPath, onOpen, useAgentPluginFileTreeHook = useAgentPluginFileTree }) {
|
|
4
|
+
const vm = useAgentPluginFileTreeHook({ files, selectedPath, onOpen });
|
|
5
5
|
return _jsx("div", { role: "tree", "aria-label": "Package files", onKeyDown: vm.onKeyDown, children: vm.rows.map(row => _jsxs("div", { role: "treeitem", "aria-label": row.name, "aria-level": row.depth, "aria-setsize": row.setSize, "aria-posinset": row.posInSet, "aria-expanded": row.expanded, "aria-selected": row.selected, tabIndex: row.tabIndex, title: row.path, "data-tree-path": row.path, style: row.indent, onClick: row.onClick, onFocus: row.onFocus, children: [_jsxs("span", { "aria-hidden": true, children: [row.icon, " "] }), row.name] }, row.key)) });
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=AgentPluginFileTree.js.map
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import { type AgentPluginInspectorProps } from '../hooks/AgentPluginInspector.hooks.js';
|
|
2
|
-
export declare function AgentPluginInspector(props: AgentPluginInspectorProps
|
|
1
|
+
import { useAgentPluginInspector, type AgentPluginInspectorProps } from '../hooks/AgentPluginInspector.hooks.js';
|
|
2
|
+
export declare function AgentPluginInspector({ useAgentPluginInspectorHook, ...props }: AgentPluginInspectorProps & {
|
|
3
|
+
useAgentPluginInspectorHook?: typeof useAgentPluginInspector;
|
|
4
|
+
}): import("react").JSX.Element;
|
|
3
5
|
//# sourceMappingURL=AgentPluginInspector.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Dialog, Notice } from '
|
|
2
|
+
import { Dialog, Notice } from '../../../react/kit.js';
|
|
3
3
|
import { useAgentPluginInspector } from '../hooks/AgentPluginInspector.hooks.js';
|
|
4
4
|
import { AgentPluginFileTree } from './AgentPluginFileTree.js';
|
|
5
5
|
import { AgentPluginFileContent } from './AgentPluginFileContent.js';
|
|
6
6
|
import { agentPluginsMessagesEn as m } from '../../messages.en.js';
|
|
7
|
-
export function AgentPluginInspector(
|
|
8
|
-
const vm =
|
|
7
|
+
export function AgentPluginInspector({ useAgentPluginInspectorHook = useAgentPluginInspector, ...props }) {
|
|
8
|
+
const vm = useAgentPluginInspectorHook(props);
|
|
9
9
|
if (vm.denied)
|
|
10
10
|
return _jsx(Dialog, { open: true, title: vm.title, closeLabel: "Close package files", onClose: props.onClose, children: _jsx(Notice, { tone: "danger", children: m.denied }) });
|
|
11
11
|
const status = vm.status && _jsx("p", { role: vm.status.role, children: vm.status.text });
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type { TabViewProps } from '
|
|
2
|
-
|
|
1
|
+
import type { TabViewProps } from '@jini-ai/core/contracts/admin-module';
|
|
2
|
+
import { useAgentPluginPanel } from '../hooks/AgentPluginPanel.hooks.js';
|
|
3
|
+
export declare function AgentPluginListPanel({ props, mode, useAgentPluginPanelHook }: {
|
|
3
4
|
props: TabViewProps;
|
|
4
5
|
mode: 'installed' | 'downloaded';
|
|
5
|
-
|
|
6
|
+
useAgentPluginPanelHook?: typeof useAgentPluginPanel;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
6
8
|
//# sourceMappingURL=AgentPluginListPanel.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button, Notice, Spinner } from '
|
|
2
|
+
import { Button, Notice, Spinner } from '../../../react/kit.js';
|
|
3
3
|
import { useAgentPluginPanel } from '../hooks/AgentPluginPanel.hooks.js';
|
|
4
4
|
import { AgentPluginRow } from './AgentPluginRow.js';
|
|
5
5
|
import { agentPluginsMessagesEn as m } from '../../messages.en.js';
|
|
6
|
-
export function AgentPluginListPanel({ props, mode
|
|
7
|
-
const vm =
|
|
6
|
+
export function AgentPluginListPanel({ props, mode, useAgentPluginPanelHook = useAgentPluginPanel }) {
|
|
7
|
+
const vm = useAgentPluginPanelHook({ props, mode });
|
|
8
8
|
return vm.denied ? _jsx(Notice, { tone: "danger", children: m.denied }) : _jsxs("section", { "aria-label": vm.label, children: [_jsx("p", { children: vm.lede }), vm.error && _jsx(Notice, { tone: "danger", children: vm.error }), vm.loading && _jsx(Spinner, { label: m.loading }), vm.actionError && _jsx("p", { role: "alert", children: vm.actionError }), vm.empty && _jsx("p", { role: "status", children: m.empty }), _jsx(Button, { onPress: vm.reload, children: "Reload packages" }), _jsx("ul", { children: vm.rows.map(row => _jsx(AgentPluginRow, { row: row }, row.id)) }), _jsx("p", { id: vm.uninstallNoteId, children: vm.uninstallNotice }), _jsxs("p", { children: ["Package format: ", _jsx("a", { href: vm.specUrl, target: "_blank", rel: "noreferrer", children: "Agent Plugins open standard" })] })] });
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=AgentPluginListPanel.js.map
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { AgentPluginRowView } from '../hooks/AgentPluginPanel.hooks.js';
|
|
2
|
-
|
|
2
|
+
import { useAgentPluginRow } from '../hooks/AgentPluginRow.hooks.js';
|
|
3
|
+
export declare function AgentPluginRow({ row, useAgentPluginRowHook }: {
|
|
3
4
|
row: AgentPluginRowView;
|
|
5
|
+
useAgentPluginRowHook?: typeof useAgentPluginRow;
|
|
4
6
|
}): import("react").JSX.Element;
|
|
5
7
|
//# sourceMappingURL=AgentPluginRow.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Badge, Button, IconButton, Switch } from '
|
|
2
|
+
import { Badge, Button, IconButton, Switch } from '../../../react/kit.js';
|
|
3
3
|
import { useAgentPluginRow } from '../hooks/AgentPluginRow.hooks.js';
|
|
4
|
-
export function AgentPluginRow({ row }) {
|
|
5
|
-
const vm =
|
|
4
|
+
export function AgentPluginRow({ row, useAgentPluginRowHook = useAgentPluginRow }) {
|
|
5
|
+
const vm = useAgentPluginRowHook({ row });
|
|
6
6
|
return _jsxs("li", { "data-jini-part": "agent-plugins.row", children: [_jsx("span", { "aria-hidden": true, children: vm.glyph }), _jsxs("h3", { children: [vm.name, " ", vm.version && _jsx("small", { children: vm.version })] }), vm.description && _jsx("p", { children: vm.description }), _jsx(Badge, { children: vm.stateLabel }), _jsx(AgentPluginRowActivation, { vm: vm }), _jsx(Button, { attrs: vm.expandAttrs, onPress: vm.expand, children: "Details" }), _jsx(IconButton, { label: vm.inspectLabel, attrs: vm.inspectAttrs, onPress: vm.inspect, children: "Inspect" }), _jsx(IconButton, { label: vm.uninstallLabel, attrs: vm.uninstallAttrs, disabled: true, children: "Uninstall" }), _jsx(AgentPluginRowDetails, { vm: vm })] });
|
|
7
7
|
}
|
|
8
8
|
function AgentPluginRowActivation({ vm }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useId, useRef, useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { useAgentPluginsController } from './AgentPluginsPorts.hooks.js';
|
|
3
3
|
import { createAgentPluginFilesController } from '../../controllers/agent-plugin-files.controller.js';
|
|
4
4
|
import { useAgentPluginsPorts } from './AgentPluginsPorts.hooks.js';
|
|
5
5
|
import { AGENT_PLUGINS_READ, agentPluginFileNotice, selectAgentPluginFile } from '../../rules.js';
|
|
@@ -7,7 +7,7 @@ import { ancestorFolderPaths, buildPackageFileTree, visiblePackageFileRows, pack
|
|
|
7
7
|
import { agentPluginsMessagesEn as m } from '../../messages.en.js';
|
|
8
8
|
export function useAgentPluginInspector({ pluginId, permissions, name }, _optional = {}) {
|
|
9
9
|
const { agentPluginsApi } = useAgentPluginsPorts({}), key = permissions.join('\0');
|
|
10
|
-
const { controller, snapshot } =
|
|
10
|
+
const { controller, snapshot } = useAgentPluginsController({ create: () => createAgentPluginFilesController({ api: agentPluginsApi, permissions }), dependencies: [agentPluginsApi, key, pluginId] }, { start: ({ controller }) => { void controller.open({ pluginId }); } });
|
|
11
11
|
// Do not show any stored read tagged with another id, even before the new effect commits.
|
|
12
12
|
const state = snapshot?.pluginId === pluginId ? snapshot : null;
|
|
13
13
|
return { title: `${name} — Package files`, denied: !permissions.includes(AGENT_PLUGINS_READ), ...inspectorFilesView({ state }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TabViewProps } from '
|
|
1
|
+
import type { TabViewProps } from '@jini-ai/core/contracts/admin-module';
|
|
2
2
|
type PanelMode = 'installed' | 'downloaded';
|
|
3
3
|
export declare function useAgentPluginPanel({ props, mode }: {
|
|
4
4
|
props: TabViewProps;
|
|
@@ -19,8 +19,8 @@ export declare function useAgentPluginPanel({ props, mode }: {
|
|
|
19
19
|
rows: {
|
|
20
20
|
id: string;
|
|
21
21
|
name: string;
|
|
22
|
-
version: string | null
|
|
23
|
-
description: string | null
|
|
22
|
+
version: string | null;
|
|
23
|
+
description: string | null;
|
|
24
24
|
glyph: string;
|
|
25
25
|
enabled: boolean;
|
|
26
26
|
stateLabel: string;
|
|
@@ -31,9 +31,10 @@ export declare function useAgentPluginPanel({ props, mode }: {
|
|
|
31
31
|
toggleLabel: string;
|
|
32
32
|
actionLabel: string;
|
|
33
33
|
actionText: string;
|
|
34
|
-
skills: readonly
|
|
34
|
+
skills: readonly {
|
|
35
|
+
readonly name: string;
|
|
35
36
|
readonly summary: string;
|
|
36
|
-
}
|
|
37
|
+
}[];
|
|
37
38
|
keywords: readonly string[];
|
|
38
39
|
servers: readonly string[];
|
|
39
40
|
hasSkills: boolean;
|
|
@@ -13,8 +13,8 @@ export declare function useAgentPluginRow({ row }: {
|
|
|
13
13
|
detailHidden: boolean;
|
|
14
14
|
id: string;
|
|
15
15
|
name: string;
|
|
16
|
-
version: string | null
|
|
17
|
-
description: string | null
|
|
16
|
+
version: string | null;
|
|
17
|
+
description: string | null;
|
|
18
18
|
glyph: string;
|
|
19
19
|
enabled: boolean;
|
|
20
20
|
stateLabel: string;
|
|
@@ -25,9 +25,10 @@ export declare function useAgentPluginRow({ row }: {
|
|
|
25
25
|
toggleLabel: string;
|
|
26
26
|
actionLabel: string;
|
|
27
27
|
actionText: string;
|
|
28
|
-
skills: readonly
|
|
28
|
+
skills: readonly {
|
|
29
|
+
readonly name: string;
|
|
29
30
|
readonly summary: string;
|
|
30
|
-
}
|
|
31
|
+
}[];
|
|
31
32
|
keywords: readonly string[];
|
|
32
33
|
servers: readonly string[];
|
|
33
34
|
hasSkills: boolean;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { ModulePageProps, TabViewProps } from '@jini-ai/core/contracts/admin-module';
|
|
2
3
|
import { createAgentPluginsController } from '../../controllers/agent-plugins.controller.js';
|
|
3
4
|
import type { AgentPluginsState } from '../../models.js';
|
|
5
|
+
/** The shell passes this page its tabs as renderable components. */
|
|
6
|
+
type TabbedPageProps = ModulePageProps<ComponentType<TabViewProps>>;
|
|
4
7
|
export interface AgentPluginsPageScope {
|
|
5
8
|
readonly controller: ReturnType<typeof createAgentPluginsController> | null;
|
|
6
9
|
readonly snapshot: Readonly<AgentPluginsState> | null;
|
|
@@ -9,7 +12,7 @@ export interface AgentPluginsPageScope {
|
|
|
9
12
|
}
|
|
10
13
|
export declare const AgentPluginsPageContext: import("react").Context<AgentPluginsPageScope | null>;
|
|
11
14
|
export declare function useAgentPluginsPageScope(_required: Record<string, never>, _optional?: {}): AgentPluginsPageScope;
|
|
12
|
-
export declare function useAgentPluginsPage(props:
|
|
15
|
+
export declare function useAgentPluginsPage(props: TabbedPageProps, _optional?: {}): {
|
|
13
16
|
closeInspector(_required: Record<string, never>, _optional?: {}): void;
|
|
14
17
|
confirm(_required: Record<string, never>, _optional?: {}): Promise<void>;
|
|
15
18
|
cancel(_required: Record<string, never>, _optional?: {}): void;
|
|
@@ -26,10 +29,10 @@ export declare function useAgentPluginsPage(props: ModulePageProps, _optional?:
|
|
|
26
29
|
denied: boolean;
|
|
27
30
|
scope: {
|
|
28
31
|
controller: {
|
|
29
|
-
getSnapshot: () =>
|
|
30
|
-
subscribe: (
|
|
32
|
+
getSnapshot: (required?: Record<string, never>, optional?: Record<string, never>) => AgentPluginsState;
|
|
33
|
+
subscribe: (required: {
|
|
31
34
|
listener: () => void;
|
|
32
|
-
}) => () => void;
|
|
35
|
+
}, optional?: Record<string, never>) => () => void;
|
|
33
36
|
load: (_required: Record<string, never>, _optional?: {}) => Promise<void>;
|
|
34
37
|
setEnabled: (input: import("../../models.js").AgentPluginActivationInput, _optional?: {}) => Promise<boolean>;
|
|
35
38
|
requestDisable(input: import("../../models.js").AgentPluginDisableRequest, _optional?: {}): void;
|
|
@@ -44,12 +47,12 @@ export declare function useAgentPluginsPage(props: ModulePageProps, _optional?:
|
|
|
44
47
|
closeInspector(_required: Record<string, never>, _optional?: {}): void;
|
|
45
48
|
dispose(_required?: Record<string, never>, _optional?: {}): void;
|
|
46
49
|
} | null;
|
|
47
|
-
snapshot:
|
|
50
|
+
snapshot: AgentPluginsState | null;
|
|
48
51
|
permissions: readonly string[];
|
|
49
52
|
uninstallNoteId: string;
|
|
50
53
|
};
|
|
51
54
|
activeId: string;
|
|
52
|
-
ActiveTab:
|
|
55
|
+
ActiveTab: ComponentType<TabViewProps> | undefined;
|
|
53
56
|
params: Readonly<Record<string, unknown>>;
|
|
54
57
|
permissions: readonly string[];
|
|
55
58
|
items: {
|
|
@@ -61,4 +64,5 @@ export declare function useAgentPluginsPage(props: ModulePageProps, _optional?:
|
|
|
61
64
|
value: string;
|
|
62
65
|
}, _optional?: {}): void;
|
|
63
66
|
};
|
|
67
|
+
export {};
|
|
64
68
|
//# sourceMappingURL=AgentPluginsPage.hooks.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createContext, useContext, useId, useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { useAgentPluginsController } from './AgentPluginsPorts.hooks.js';
|
|
3
3
|
import { createAgentPluginsController } from '../../controllers/agent-plugins.controller.js';
|
|
4
4
|
import { AGENT_PLUGINS_READ, agentPluginDisableCopy, humanizeAgentPluginId } from '../../rules.js';
|
|
5
5
|
import { useAgentPluginsPorts } from './AgentPluginsPorts.hooks.js';
|
|
6
|
-
import { AdminConfigError } from '
|
|
6
|
+
import { AdminConfigError } from '@jini-ai/core/admin-runtime';
|
|
7
7
|
export const AgentPluginsPageContext = createContext(null);
|
|
8
8
|
export function useAgentPluginsPageScope(_required, _optional = {}) {
|
|
9
9
|
const scope = useContext(AgentPluginsPageContext);
|
|
@@ -14,7 +14,7 @@ export function useAgentPluginsPageScope(_required, _optional = {}) {
|
|
|
14
14
|
export function useAgentPluginsPage(props, _optional = {}) {
|
|
15
15
|
const { agentPluginsApi } = useAgentPluginsPorts({});
|
|
16
16
|
const permissions = props.description.visible ? props.description.grants : [], key = permissions.join('\0');
|
|
17
|
-
const { controller, snapshot } =
|
|
17
|
+
const { controller, snapshot } = useAgentPluginsController({ create: () => createAgentPluginsController({ api: agentPluginsApi, permissions }), dependencies: [agentPluginsApi, key] }, { start: ({ controller }) => { void controller.load({}); } });
|
|
18
18
|
const [localTab, setLocalTab] = useState('installed'), uninstallNoteId = useId();
|
|
19
19
|
const { visible, active, activeId } = pageTabs({ description: props.description, tab: props.requestedTab ?? localTab });
|
|
20
20
|
return {
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { AgentPluginsApiPort } from '../../ports.js';
|
|
2
|
+
import type { UseAdminController } from '@jini-ai/core/contracts/admin-module';
|
|
2
3
|
export interface AgentPluginsPorts {
|
|
3
4
|
readonly agentPluginsApi: AgentPluginsApiPort;
|
|
4
5
|
}
|
|
5
6
|
export declare const AgentPluginsPortsContext: import("react").Context<AgentPluginsPorts | null>;
|
|
6
7
|
export declare function useAgentPluginsPorts(_required?: Record<string, never>, _optional?: {}): AgentPluginsPorts;
|
|
8
|
+
/** The controller hook the host injects through the module factory (owner answer 2026-11-17, J4:
|
|
9
|
+
* injected, never imported). The factory's Provider supplies it; outside it a hook fails loudly. */
|
|
10
|
+
export declare const AgentPluginsControllerContext: import("react").Context<UseAdminController | null>;
|
|
11
|
+
export declare const useAgentPluginsController: UseAdminController;
|
|
7
12
|
//# sourceMappingURL=AgentPluginsPorts.hooks.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext, useContext } from 'react';
|
|
2
|
-
import { AdminConfigError } from '
|
|
2
|
+
import { AdminConfigError } from '@jini-ai/core/admin-runtime';
|
|
3
3
|
export const AgentPluginsPortsContext = createContext(null);
|
|
4
4
|
export function useAgentPluginsPorts(_required = {}, _optional = {}) {
|
|
5
5
|
const ports = useContext(AgentPluginsPortsContext);
|
|
@@ -7,4 +7,14 @@ export function useAgentPluginsPorts(_required = {}, _optional = {}) {
|
|
|
7
7
|
throw new AdminConfigError({ issues: ['React scope unavailable: agent-plugins'] });
|
|
8
8
|
return ports;
|
|
9
9
|
}
|
|
10
|
+
/** The controller hook the host injects through the module factory (owner answer 2026-11-17, J4:
|
|
11
|
+
* injected, never imported). The factory's Provider supplies it; outside it a hook fails loudly. */
|
|
12
|
+
export const AgentPluginsControllerContext = createContext(null);
|
|
13
|
+
function controllerMissing() {
|
|
14
|
+
throw new AdminConfigError({ issues: ['Controller hook unavailable: agent-plugins'] });
|
|
15
|
+
}
|
|
16
|
+
export const useAgentPluginsController = (required, optional = {}) => {
|
|
17
|
+
const useController = useContext(AgentPluginsControllerContext) ?? controllerMissing;
|
|
18
|
+
return useController(required, optional);
|
|
19
|
+
};
|
|
10
20
|
//# sourceMappingURL=AgentPluginsPorts.hooks.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TabViewProps } from '
|
|
1
|
+
import type { TabViewProps } from '@jini-ai/core/contracts/admin-module';
|
|
2
2
|
export declare function useMarketplaceTab({ permissions }: TabViewProps, _optional?: {}): {
|
|
3
3
|
denied: boolean;
|
|
4
4
|
specUrl: string;
|