@jini-ai/admin 0.3.10 → 0.4.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 +64 -0
- package/README.md +71 -37
- package/dist/agent-plugins/adapters/http.d.ts +7 -0
- package/dist/agent-plugins/adapters/http.js +15 -0
- package/dist/agent-plugins/adapters/memory.d.ts +8 -0
- package/dist/agent-plugins/adapters/memory.js +25 -0
- package/dist/agent-plugins/agent-plugins.module.d.ts +51 -0
- package/dist/agent-plugins/agent-plugins.module.js +6 -0
- package/dist/agent-plugins/conformance/agent-plugins-api.conformance.d.ts +12 -0
- package/dist/agent-plugins/conformance/agent-plugins-api.conformance.js +47 -0
- package/dist/agent-plugins/controllers/agent-plugin-files.controller.d.ts +20 -0
- package/dist/agent-plugins/controllers/agent-plugin-files.controller.js +43 -0
- package/dist/agent-plugins/controllers/agent-plugins.controller.d.ts +25 -0
- package/dist/agent-plugins/controllers/agent-plugins.controller.js +91 -0
- package/dist/agent-plugins/index.d.ts +9 -0
- package/dist/agent-plugins/index.js +9 -0
- package/dist/agent-plugins/messages.en.d.ts +23 -0
- package/dist/agent-plugins/messages.en.js +14 -0
- package/dist/agent-plugins/models.d.ts +57 -0
- package/dist/agent-plugins/models.js +2 -0
- package/dist/agent-plugins/package-file-tree.d.ts +111 -0
- package/dist/agent-plugins/package-file-tree.js +188 -0
- package/dist/agent-plugins/ports.d.ts +18 -0
- package/dist/agent-plugins/ports.js +3 -0
- package/dist/agent-plugins/react/components/AgentPluginFileContent.d.ts +5 -0
- package/dist/agent-plugins/react/components/AgentPluginFileContent.js +9 -0
- package/dist/agent-plugins/react/components/AgentPluginFileTree.d.ts +9 -0
- package/dist/agent-plugins/react/components/AgentPluginFileTree.js +7 -0
- package/dist/agent-plugins/react/components/AgentPluginInspector.d.ts +3 -0
- package/dist/agent-plugins/react/components/AgentPluginInspector.js +11 -0
- package/dist/agent-plugins/react/components/AgentPluginListPanel.d.ts +6 -0
- package/dist/agent-plugins/react/components/AgentPluginListPanel.js +10 -0
- package/dist/agent-plugins/react/components/AgentPluginRow.d.ts +5 -0
- package/dist/agent-plugins/react/components/AgentPluginRow.js +8 -0
- package/dist/agent-plugins/react/hooks/AgentPluginInspector.hooks.d.ts +90 -0
- package/dist/agent-plugins/react/hooks/AgentPluginInspector.hooks.js +74 -0
- package/dist/agent-plugins/react/hooks/AgentPluginPanel.hooks.d.ts +67 -0
- package/dist/agent-plugins/react/hooks/AgentPluginPanel.hooks.js +50 -0
- package/dist/agent-plugins/react/hooks/AgentPluginRow.hooks.d.ts +55 -0
- package/dist/agent-plugins/react/hooks/AgentPluginRow.hooks.js +6 -0
- package/dist/agent-plugins/react/hooks/AgentPluginsPage.hooks.d.ts +64 -0
- package/dist/agent-plugins/react/hooks/AgentPluginsPage.hooks.js +39 -0
- package/dist/agent-plugins/react/hooks/AgentPluginsPorts.hooks.d.ts +7 -0
- package/dist/agent-plugins/react/hooks/AgentPluginsPorts.hooks.js +10 -0
- package/dist/agent-plugins/react/hooks/MarketplaceTab.hooks.d.ts +6 -0
- package/dist/agent-plugins/react/hooks/MarketplaceTab.hooks.js +3 -0
- package/dist/agent-plugins/react/index.d.ts +245 -0
- package/dist/agent-plugins/react/index.js +13 -0
- package/dist/agent-plugins/react/pages/AgentPluginsPage.d.ts +4 -0
- package/dist/agent-plugins/react/pages/AgentPluginsPage.js +12 -0
- package/dist/agent-plugins/react/tabs/DownloadedTab.d.ts +4 -0
- package/dist/agent-plugins/react/tabs/DownloadedTab.js +5 -0
- package/dist/agent-plugins/react/tabs/InstalledTab.d.ts +4 -0
- package/dist/agent-plugins/react/tabs/InstalledTab.js +5 -0
- package/dist/agent-plugins/react/tabs/MarketplaceTab.d.ts +4 -0
- package/dist/agent-plugins/react/tabs/MarketplaceTab.js +10 -0
- package/dist/agent-plugins/rules.d.ts +33 -0
- package/dist/agent-plugins/rules.js +51 -0
- package/dist/browser/index.d.ts +1 -0
- package/dist/browser/index.js +1 -0
- package/dist/browser/navigation.d.ts +19 -4
- package/dist/browser/navigation.js +8 -8
- package/dist/browser/shell-navigation.d.ts +12 -0
- package/dist/browser/shell-navigation.js +16 -0
- package/dist/contracts/credential-management.d.ts +8 -0
- package/dist/contracts/credential-management.js +3 -0
- package/dist/contracts/media-picker.d.ts +17 -0
- package/dist/contracts/media-picker.js +5 -0
- package/dist/contracts/playground-render-target.d.ts +18 -0
- package/dist/contracts/playground-render-target.js +3 -0
- package/dist/core/entities/rules.d.ts +138 -0
- package/dist/core/entities/rules.js +344 -0
- package/dist/core/gated/types.d.ts +8 -4
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.js +1 -0
- package/dist/core/manifest/rules.d.ts +24 -6
- package/dist/core/manifest/rules.js +12 -11
- package/dist/core/module/controller-store.d.ts +22 -0
- package/dist/core/module/controller-store.js +32 -0
- package/dist/core/module/create-admin.d.ts +41 -0
- package/dist/core/module/create-admin.js +187 -0
- package/dist/core/module/define-admin-module.d.ts +4 -0
- package/dist/core/module/define-admin-module.js +5 -0
- package/dist/core/module/index.d.ts +7 -0
- package/dist/core/module/index.js +4 -0
- package/dist/core/module/token.d.ts +19 -0
- package/dist/core/module/token.js +4 -0
- package/dist/core/module/types.d.ts +79 -0
- package/dist/core/module/types.js +2 -0
- package/dist/core/permissions/rules.d.ts +4 -1
- package/dist/core/permissions/rules.js +1 -1
- package/dist/core/ports/analytics.d.ts +1 -1
- package/dist/core/ports/auth.d.ts +2 -2
- package/dist/core/ports/comments.d.ts +9 -6
- package/dist/core/ports/database.d.ts +13 -10
- package/dist/core/ports/entities.d.ts +302 -0
- package/dist/core/ports/entities.js +47 -0
- package/dist/core/ports/forms.d.ts +19 -7
- package/dist/core/ports/identity.d.ts +42 -17
- package/dist/core/ports/index.d.ts +2 -0
- package/dist/core/ports/integrations.d.ts +9 -4
- package/dist/core/ports/media.d.ts +16 -7
- package/dist/core/ports/members.d.ts +7 -3
- package/dist/core/ports/menus.d.ts +46 -0
- package/dist/core/ports/menus.js +43 -0
- package/dist/core/ports/plugins.d.ts +3 -2
- package/dist/core/ports/recovery.d.ts +10 -6
- package/dist/core/ports/redirects.d.ts +17 -7
- package/dist/core/ports/seo.d.ts +12 -6
- package/dist/core/ports/shell.d.ts +41 -0
- package/dist/core/ports/shell.js +2 -0
- package/dist/core/ports/workspace.d.ts +3 -3
- package/dist/core/routing/rules.d.ts +17 -4
- package/dist/core/routing/rules.js +4 -4
- package/dist/core/transport/errors.d.ts +13 -4
- package/dist/core/transport/errors.js +4 -4
- package/dist/core/transport/http.d.ts +26 -16
- package/dist/core/transport/http.js +59 -21
- package/dist/core/transport/types.d.ts +26 -14
- package/dist/core/transport/types.js +9 -7
- package/dist/media/adapters/http.d.ts +27 -0
- package/dist/media/adapters/http.js +44 -0
- package/dist/media/adapters/memory.d.ts +11 -0
- package/dist/media/adapters/memory.js +139 -0
- package/dist/media/conformance/media-api.conformance.d.ts +7 -0
- package/dist/media/conformance/media-api.conformance.js +69 -0
- package/dist/media/controllers/edit-media.controller.d.ts +24 -0
- package/dist/media/controllers/edit-media.controller.js +69 -0
- package/dist/media/controllers/library.controller.d.ts +47 -0
- package/dist/media/controllers/library.controller.js +173 -0
- package/dist/media/controllers/providers.controller.d.ts +30 -0
- package/dist/media/controllers/providers.controller.js +76 -0
- package/dist/media/html-attributes.d.ts +82 -0
- package/dist/media/html-attributes.js +204 -0
- package/dist/media/index.d.ts +12 -0
- package/dist/media/index.js +9 -0
- package/dist/media/media.module.d.ts +83 -0
- package/dist/media/media.module.js +43 -0
- package/dist/media/messages.en.d.ts +24 -0
- package/dist/media/messages.en.js +24 -0
- package/dist/media/models.d.ts +72 -0
- package/dist/media/models.js +2 -0
- package/dist/media/ports.d.ts +75 -0
- package/dist/media/ports.js +7 -0
- package/dist/media/react/components/EditMediaPanel.d.ts +3 -0
- package/dist/media/react/components/EditMediaPanel.js +10 -0
- package/dist/media/react/components/MediaCard.d.ts +5 -0
- package/dist/media/react/components/MediaCard.js +17 -0
- package/dist/media/react/components/MediaDialog.d.ts +3 -0
- package/dist/media/react/components/MediaDialog.js +8 -0
- package/dist/media/react/components/MediaGrid.d.ts +4 -0
- package/dist/media/react/components/MediaGrid.js +8 -0
- package/dist/media/react/components/MediaIcons.d.ts +14 -0
- package/dist/media/react/components/MediaIcons.js +39 -0
- package/dist/media/react/components/MediaLightbox.d.ts +5 -0
- package/dist/media/react/components/MediaLightbox.js +12 -0
- package/dist/media/react/components/MediaPicker.d.ts +3 -0
- package/dist/media/react/components/MediaPicker.js +10 -0
- package/dist/media/react/components/MediaPurgeDialog.d.ts +4 -0
- package/dist/media/react/components/MediaPurgeDialog.js +9 -0
- package/dist/media/react/components/UploadButton.d.ts +3 -0
- package/dist/media/react/components/UploadButton.js +8 -0
- package/dist/media/react/hooks/EditMediaPanel.hooks.d.ts +84 -0
- package/dist/media/react/hooks/EditMediaPanel.hooks.js +105 -0
- package/dist/media/react/hooks/LibraryTab.hooks.d.ts +103 -0
- package/dist/media/react/hooks/LibraryTab.hooks.js +164 -0
- package/dist/media/react/hooks/MediaCard.hooks.d.ts +83 -0
- package/dist/media/react/hooks/MediaCard.hooks.js +66 -0
- package/dist/media/react/hooks/MediaDialog.hooks.d.ts +10 -0
- package/dist/media/react/hooks/MediaDialog.hooks.js +20 -0
- package/dist/media/react/hooks/MediaGrid.hooks.d.ts +29 -0
- package/dist/media/react/hooks/MediaGrid.hooks.js +6 -0
- package/dist/media/react/hooks/MediaLightbox.hooks.d.ts +27 -0
- package/dist/media/react/hooks/MediaLightbox.hooks.js +64 -0
- package/dist/media/react/hooks/MediaPage.hooks.d.ts +68 -0
- package/dist/media/react/hooks/MediaPage.hooks.js +68 -0
- package/dist/media/react/hooks/MediaPicker.hooks.d.ts +26 -0
- package/dist/media/react/hooks/MediaPicker.hooks.js +25 -0
- package/dist/media/react/hooks/MediaPorts.hooks.d.ts +9 -0
- package/dist/media/react/hooks/MediaPorts.hooks.js +10 -0
- package/dist/media/react/hooks/MediaPurgeDialog.hooks.d.ts +22 -0
- package/dist/media/react/hooks/MediaPurgeDialog.hooks.js +6 -0
- package/dist/media/react/hooks/ProvidersTab.hooks.d.ts +55 -0
- package/dist/media/react/hooks/ProvidersTab.hooks.js +124 -0
- package/dist/media/react/hooks/UploadButton.hooks.d.ts +48 -0
- package/dist/media/react/hooks/UploadButton.hooks.js +118 -0
- package/dist/media/react/index.d.ts +373 -0
- package/dist/media/react/index.js +73 -0
- package/dist/media/react/pages/MediaPage.d.ts +4 -0
- package/dist/media/react/pages/MediaPage.js +9 -0
- package/dist/media/react/tabs/LibraryTab.d.ts +4 -0
- package/dist/media/react/tabs/LibraryTab.js +14 -0
- package/dist/media/react/tabs/ProvidersTab.d.ts +4 -0
- package/dist/media/react/tabs/ProvidersTab.js +10 -0
- package/dist/media/rules.d.ts +86 -0
- package/dist/media/rules.js +134 -0
- package/dist/media/styles.d.ts +4 -0
- package/dist/media/styles.js +5 -0
- package/dist/playground/adapters/http.d.ts +8 -0
- package/dist/playground/adapters/http.js +4 -0
- package/dist/playground/adapters/memory.d.ts +10 -0
- package/dist/playground/adapters/memory.js +30 -0
- package/dist/playground/conformance/playground-api.conformance.d.ts +6 -0
- package/dist/playground/conformance/playground-api.conformance.js +37 -0
- package/dist/playground/controllers/playground.controller.d.ts +16 -0
- package/dist/playground/controllers/playground.controller.js +21 -0
- package/dist/playground/index.d.ts +7 -0
- package/dist/playground/index.js +5 -0
- package/dist/playground/messages.en.d.ts +9 -0
- package/dist/playground/messages.en.js +2 -0
- package/dist/playground/models.d.ts +4 -0
- package/dist/playground/models.js +2 -0
- package/dist/playground/playground.module.d.ts +31 -0
- package/dist/playground/playground.module.js +5 -0
- package/dist/playground/ports.d.ts +5 -0
- package/dist/playground/ports.js +2 -0
- package/dist/playground/react/components/Canvas.d.ts +3 -0
- package/dist/playground/react/components/Canvas.js +9 -0
- package/dist/playground/react/hooks/Canvas.hooks.d.ts +7 -0
- package/dist/playground/react/hooks/Canvas.hooks.js +18 -0
- package/dist/playground/react/hooks/PlaygroundPage.hooks.d.ts +8 -0
- package/dist/playground/react/hooks/PlaygroundPage.hooks.js +2 -0
- package/dist/playground/react/hooks/PlaygroundPorts.hooks.d.ts +4 -0
- package/dist/playground/react/hooks/PlaygroundPorts.hooks.js +6 -0
- package/dist/playground/react/index.d.ts +136 -0
- package/dist/playground/react/index.js +10 -0
- package/dist/playground/react/pages/PlaygroundPage.d.ts +4 -0
- package/dist/playground/react/pages/PlaygroundPage.js +11 -0
- package/dist/playground/react/tabs/CanvasTab.d.ts +4 -0
- package/dist/playground/react/tabs/CanvasTab.js +5 -0
- package/dist/playground/rules.d.ts +4 -0
- package/dist/playground/rules.js +2 -0
- package/dist/react/OverlayHost.d.ts +3 -0
- package/dist/react/OverlayHost.hooks.d.ts +9 -0
- package/dist/react/OverlayHost.hooks.js +9 -0
- package/dist/react/OverlayHost.js +7 -0
- package/dist/react/bind-react.d.ts +46 -0
- package/dist/react/bind-react.js +28 -0
- package/dist/react/components/ConfirmButton/ConfirmButton.hooks.d.ts +7 -1
- package/dist/react/components/ConfirmButton/ConfirmButton.hooks.js +2 -2
- package/dist/react/components/ConfirmButton/ConfirmButton.js +1 -1
- package/dist/react/components/ConfirmDialog/ConfirmDialog.hooks.d.ts +17 -3
- package/dist/react/components/ConfirmDialog/ConfirmDialog.hooks.js +3 -3
- package/dist/react/components/ConfirmDialog/ConfirmDialog.js +5 -5
- package/dist/react/components/InteractiveHtmlEditor/InteractiveHtmlEditor.d.ts +6 -2
- package/dist/react/components/InteractiveHtmlEditor/InteractiveHtmlEditor.js +7 -8
- package/dist/react/components/RowMenu/RowMenu.d.ts +5 -1
- package/dist/react/components/RowMenu/RowMenu.hooks.d.ts +8 -2
- package/dist/react/components/RowMenu/RowMenu.hooks.js +4 -4
- package/dist/react/components/RowMenu/RowMenu.js +6 -6
- package/dist/react/components/Sidebar.d.ts +1 -1
- package/dist/react/components/Sidebar.js +103 -7
- package/dist/react/entities/EntityCell.d.ts +10 -0
- package/dist/react/entities/EntityCell.js +18 -0
- package/dist/react/entities/EntityDetail.d.ts +3 -0
- package/dist/react/entities/EntityDetail.js +21 -0
- package/dist/react/entities/EntityEdit.d.ts +13 -0
- package/dist/react/entities/EntityEdit.js +45 -0
- package/dist/react/entities/EntityField.d.ts +20 -0
- package/dist/react/entities/EntityField.js +31 -0
- package/dist/react/entities/EntityIndex.d.ts +3 -0
- package/dist/react/entities/EntityIndex.js +10 -0
- package/dist/react/entities/EntityList.d.ts +7 -0
- package/dist/react/entities/EntityList.js +52 -0
- package/dist/react/entities/contribution.d.ts +26 -0
- package/dist/react/entities/contribution.js +78 -0
- package/dist/react/entities/index.d.ts +10 -0
- package/dist/react/entities/index.js +7 -0
- package/dist/react/entities/rules.d.ts +179 -0
- package/dist/react/entities/rules.js +224 -0
- package/dist/react/entities/types.d.ts +45 -0
- package/dist/react/entities/types.js +5 -0
- package/dist/react/entities/use-entity-edit.d.ts +35 -0
- package/dist/react/entities/use-entity-edit.js +98 -0
- package/dist/react/entities/use-entity-read.d.ts +22 -0
- package/dist/react/entities/use-entity-read.js +27 -0
- package/dist/react/hooks/use-nav-sections.d.ts +12 -3
- package/dist/react/hooks/use-nav-sections.js +14 -14
- package/dist/react/hooks/use-sidebar-rail.d.ts +7 -1
- package/dist/react/hooks/use-sidebar-rail.js +11 -11
- package/dist/react/index.d.ts +3 -1
- package/dist/react/index.js +5 -2
- package/dist/react/overlays.d.ts +38 -0
- package/dist/react/overlays.js +46 -0
- package/dist/react/shell/AdminShell.d.ts +9 -0
- package/dist/react/shell/AdminShell.hooks.d.ts +15 -0
- package/dist/react/shell/AdminShell.hooks.js +27 -0
- package/dist/react/shell/AdminShell.js +46 -0
- package/dist/react/shell/index.d.ts +7 -0
- package/dist/react/shell/index.js +5 -0
- package/dist/react/shell/model.d.ts +25 -0
- package/dist/react/shell/model.js +29 -0
- package/dist/react/shell/theme-ports.d.ts +28 -0
- package/dist/react/shell/theme-ports.js +2 -0
- package/dist/react/shell/types.d.ts +99 -0
- package/dist/react/shell/types.js +2 -0
- package/dist/react/shell/use-admin-shell-session.d.ts +13 -0
- package/dist/react/shell/use-admin-shell-session.js +81 -0
- package/dist/react/shell/use-admin-theme.d.ts +16 -0
- package/dist/react/shell/use-admin-theme.js +57 -0
- package/dist/react/types.d.ts +6 -4
- package/dist/react/types.js +2 -2
- package/dist/react/use-controller.d.ts +16 -0
- package/dist/react/use-controller.js +18 -0
- package/dist/security/adapters/http.d.ts +16 -0
- package/dist/security/adapters/http.js +94 -0
- package/dist/security/adapters/memory.d.ts +15 -0
- package/dist/security/adapters/memory.js +60 -0
- package/dist/security/conformance/security-api.conformance.d.ts +10 -0
- package/dist/security/conformance/security-api.conformance.js +48 -0
- package/dist/security/controllers/access-tokens.controller.d.ts +44 -0
- package/dist/security/controllers/access-tokens.controller.js +112 -0
- package/dist/security/controllers/other-credentials.controller.d.ts +30 -0
- package/dist/security/controllers/other-credentials.controller.js +74 -0
- package/dist/security/controllers/root-key.controller.d.ts +35 -0
- package/dist/security/controllers/root-key.controller.js +90 -0
- package/dist/security/index.d.ts +9 -0
- package/dist/security/index.js +9 -0
- package/dist/security/messages.en.d.ts +12 -0
- package/dist/security/messages.en.js +2 -0
- package/dist/security/models.d.ts +112 -0
- package/dist/security/models.js +2 -0
- package/dist/security/ports.d.ts +58 -0
- package/dist/security/ports.js +5 -0
- package/dist/security/react/components/CredentialEditor.d.ts +3 -0
- package/dist/security/react/components/CredentialEditor.js +8 -0
- package/dist/security/react/hooks/AccessTokensTab.hooks.d.ts +94 -0
- package/dist/security/react/hooks/AccessTokensTab.hooks.js +36 -0
- package/dist/security/react/hooks/CredentialEditor.hooks.d.ts +49 -0
- package/dist/security/react/hooks/CredentialEditor.hooks.js +14 -0
- package/dist/security/react/hooks/RootKeyTab.hooks.d.ts +29 -0
- package/dist/security/react/hooks/RootKeyTab.hooks.js +19 -0
- package/dist/security/react/hooks/SecurityPage.hooks.d.ts +17 -0
- package/dist/security/react/hooks/SecurityPage.hooks.js +12 -0
- package/dist/security/react/hooks/SecurityPorts.hooks.d.ts +9 -0
- package/dist/security/react/hooks/SecurityPorts.hooks.js +6 -0
- package/dist/security/react/index.d.ts +215 -0
- package/dist/security/react/index.js +10 -0
- package/dist/security/react/pages/SecurityPage.d.ts +4 -0
- package/dist/security/react/pages/SecurityPage.js +10 -0
- package/dist/security/react/tabs/AccessTokensTab.d.ts +4 -0
- package/dist/security/react/tabs/AccessTokensTab.js +10 -0
- package/dist/security/react/tabs/RootKeyTab.d.ts +4 -0
- package/dist/security/react/tabs/RootKeyTab.js +9 -0
- package/dist/security/rules.d.ts +57 -0
- package/dist/security/rules.js +63 -0
- package/dist/security/security.module.d.ts +45 -0
- package/dist/security/security.module.js +5 -0
- package/dist/source-control/adapters/http.d.ts +6 -0
- package/dist/source-control/adapters/http.js +13 -0
- package/dist/source-control/adapters/memory.d.ts +9 -0
- package/dist/source-control/adapters/memory.js +35 -0
- package/dist/source-control/conformance/source-control-api.conformance.d.ts +10 -0
- package/dist/source-control/conformance/source-control-api.conformance.js +48 -0
- package/dist/source-control/controllers/source-control.controller.d.ts +26 -0
- package/dist/source-control/controllers/source-control.controller.js +70 -0
- package/dist/source-control/index.d.ts +8 -0
- package/dist/source-control/index.js +6 -0
- package/dist/source-control/messages.en.d.ts +11 -0
- package/dist/source-control/messages.en.js +2 -0
- package/dist/source-control/models.d.ts +70 -0
- package/dist/source-control/models.js +2 -0
- package/dist/source-control/ports.d.ts +23 -0
- package/dist/source-control/ports.js +3 -0
- package/dist/source-control/react/components/SourceControlCredentialFields.d.ts +5 -0
- package/dist/source-control/react/components/SourceControlCredentialFields.js +8 -0
- package/dist/source-control/react/components/SourceControlProviderRow.d.ts +5 -0
- package/dist/source-control/react/components/SourceControlProviderRow.js +7 -0
- package/dist/source-control/react/hooks/ProvidersTab.hooks.d.ts +45 -0
- package/dist/source-control/react/hooks/ProvidersTab.hooks.js +20 -0
- package/dist/source-control/react/hooks/SourceControlCredentialFields.hooks.d.ts +43 -0
- package/dist/source-control/react/hooks/SourceControlCredentialFields.hooks.js +9 -0
- package/dist/source-control/react/hooks/SourceControlPage.hooks.d.ts +17 -0
- package/dist/source-control/react/hooks/SourceControlPage.hooks.js +5 -0
- package/dist/source-control/react/hooks/SourceControlPorts.hooks.d.ts +9 -0
- package/dist/source-control/react/hooks/SourceControlPorts.hooks.js +6 -0
- package/dist/source-control/react/index.d.ts +156 -0
- package/dist/source-control/react/index.js +10 -0
- package/dist/source-control/react/pages/SourceControlPage.d.ts +4 -0
- package/dist/source-control/react/pages/SourceControlPage.js +11 -0
- package/dist/source-control/react/tabs/ProvidersTab.d.ts +4 -0
- package/dist/source-control/react/tabs/ProvidersTab.js +10 -0
- package/dist/source-control/rules.d.ts +32 -0
- package/dist/source-control/rules.js +35 -0
- package/dist/source-control/source-control.module.d.ts +36 -0
- package/dist/source-control/source-control.module.js +6 -0
- package/package.json +207 -4
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
export { useSourceControlPorts } from './hooks/SourceControlPorts.hooks.js';
|
|
2
|
+
export declare function sourceControl(_required: Record<string, never>, _optional?: {}): {
|
|
3
|
+
id: "source-control";
|
|
4
|
+
requires: {
|
|
5
|
+
readonly sourceControlApi: import("../../core/module/token.js").AdminPortToken<import("../ports.js").SourceControlApiPort, "admin.source-control.api">;
|
|
6
|
+
};
|
|
7
|
+
optional: {
|
|
8
|
+
readonly sourceControlNavigation: import("../../core/module/token.js").AdminPortToken<import("../../contracts/credential-management.js").CredentialManagementPort, "admin.credentials.management">;
|
|
9
|
+
};
|
|
10
|
+
messages: Readonly<{
|
|
11
|
+
title: "Source Control";
|
|
12
|
+
providers: "Providers";
|
|
13
|
+
description: "Connect an account to read repositories and push to them later. Content versioning is a separate feature.";
|
|
14
|
+
denied: "Permission denied";
|
|
15
|
+
saved: "Token saved";
|
|
16
|
+
replace: "Replace token";
|
|
17
|
+
manage: "Create access token";
|
|
18
|
+
loading: "Loading connections…";
|
|
19
|
+
}>;
|
|
20
|
+
pages: {
|
|
21
|
+
readonly sourceControl: {
|
|
22
|
+
readonly path: "/source-control";
|
|
23
|
+
readonly label: "Source Control";
|
|
24
|
+
readonly permissions: readonly ["source-control.read"];
|
|
25
|
+
readonly nav: {
|
|
26
|
+
readonly group: "operations";
|
|
27
|
+
readonly icon: "git";
|
|
28
|
+
};
|
|
29
|
+
readonly tabs: {
|
|
30
|
+
readonly providers: {
|
|
31
|
+
readonly label: "Providers";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
} & {
|
|
37
|
+
react: {
|
|
38
|
+
module: {
|
|
39
|
+
id: "source-control";
|
|
40
|
+
requires: {
|
|
41
|
+
readonly sourceControlApi: import("../../core/module/token.js").AdminPortToken<import("../ports.js").SourceControlApiPort, "admin.source-control.api">;
|
|
42
|
+
};
|
|
43
|
+
optional: {
|
|
44
|
+
readonly sourceControlNavigation: import("../../core/module/token.js").AdminPortToken<import("../../contracts/credential-management.js").CredentialManagementPort, "admin.credentials.management">;
|
|
45
|
+
};
|
|
46
|
+
messages: Readonly<{
|
|
47
|
+
title: "Source Control";
|
|
48
|
+
providers: "Providers";
|
|
49
|
+
description: "Connect an account to read repositories and push to them later. Content versioning is a separate feature.";
|
|
50
|
+
denied: "Permission denied";
|
|
51
|
+
saved: "Token saved";
|
|
52
|
+
replace: "Replace token";
|
|
53
|
+
manage: "Create access token";
|
|
54
|
+
loading: "Loading connections…";
|
|
55
|
+
}>;
|
|
56
|
+
pages: {
|
|
57
|
+
readonly sourceControl: {
|
|
58
|
+
readonly path: "/source-control";
|
|
59
|
+
readonly label: "Source Control";
|
|
60
|
+
readonly permissions: readonly ["source-control.read"];
|
|
61
|
+
readonly nav: {
|
|
62
|
+
readonly group: "operations";
|
|
63
|
+
readonly icon: "git";
|
|
64
|
+
};
|
|
65
|
+
readonly tabs: {
|
|
66
|
+
readonly providers: {
|
|
67
|
+
readonly label: "Providers";
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
pages: {
|
|
74
|
+
readonly sourceControl: {
|
|
75
|
+
Page: import("react").LazyExoticComponent<import("react").ComponentType<import("../../react/bind-react.js").ModulePageProps>>;
|
|
76
|
+
tabs: {
|
|
77
|
+
readonly providers: import("react").LazyExoticComponent<import("react").ComponentType<import("../../react/bind-react.js").TabViewProps>>;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
Provider: ({ admin, children }: {
|
|
82
|
+
admin: import("../../core/module/types.js").AdminInstance;
|
|
83
|
+
children: import("react").ReactNode;
|
|
84
|
+
}, _optional?: Record<string, never>) => import("react").FunctionComponentElement<import("react").ProviderProps<import("../../core/module/types.js").ScopedPorts<{
|
|
85
|
+
id: "source-control";
|
|
86
|
+
requires: {
|
|
87
|
+
readonly sourceControlApi: import("../../core/module/token.js").AdminPortToken<import("../ports.js").SourceControlApiPort, "admin.source-control.api">;
|
|
88
|
+
};
|
|
89
|
+
optional: {
|
|
90
|
+
readonly sourceControlNavigation: import("../../core/module/token.js").AdminPortToken<import("../../contracts/credential-management.js").CredentialManagementPort, "admin.credentials.management">;
|
|
91
|
+
};
|
|
92
|
+
messages: Readonly<{
|
|
93
|
+
title: "Source Control";
|
|
94
|
+
providers: "Providers";
|
|
95
|
+
description: "Connect an account to read repositories and push to them later. Content versioning is a separate feature.";
|
|
96
|
+
denied: "Permission denied";
|
|
97
|
+
saved: "Token saved";
|
|
98
|
+
replace: "Replace token";
|
|
99
|
+
manage: "Create access token";
|
|
100
|
+
loading: "Loading connections…";
|
|
101
|
+
}>;
|
|
102
|
+
pages: {
|
|
103
|
+
readonly sourceControl: {
|
|
104
|
+
readonly path: "/source-control";
|
|
105
|
+
readonly label: "Source Control";
|
|
106
|
+
readonly permissions: readonly ["source-control.read"];
|
|
107
|
+
readonly nav: {
|
|
108
|
+
readonly group: "operations";
|
|
109
|
+
readonly icon: "git";
|
|
110
|
+
};
|
|
111
|
+
readonly tabs: {
|
|
112
|
+
readonly providers: {
|
|
113
|
+
readonly label: "Providers";
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
}> | null>>;
|
|
119
|
+
usePorts: (_required?: Record<string, never>, _optional?: Record<string, never>) => import("../../core/module/types.js").ScopedPorts<{
|
|
120
|
+
id: "source-control";
|
|
121
|
+
requires: {
|
|
122
|
+
readonly sourceControlApi: import("../../core/module/token.js").AdminPortToken<import("../ports.js").SourceControlApiPort, "admin.source-control.api">;
|
|
123
|
+
};
|
|
124
|
+
optional: {
|
|
125
|
+
readonly sourceControlNavigation: import("../../core/module/token.js").AdminPortToken<import("../../contracts/credential-management.js").CredentialManagementPort, "admin.credentials.management">;
|
|
126
|
+
};
|
|
127
|
+
messages: Readonly<{
|
|
128
|
+
title: "Source Control";
|
|
129
|
+
providers: "Providers";
|
|
130
|
+
description: "Connect an account to read repositories and push to them later. Content versioning is a separate feature.";
|
|
131
|
+
denied: "Permission denied";
|
|
132
|
+
saved: "Token saved";
|
|
133
|
+
replace: "Replace token";
|
|
134
|
+
manage: "Create access token";
|
|
135
|
+
loading: "Loading connections…";
|
|
136
|
+
}>;
|
|
137
|
+
pages: {
|
|
138
|
+
readonly sourceControl: {
|
|
139
|
+
readonly path: "/source-control";
|
|
140
|
+
readonly label: "Source Control";
|
|
141
|
+
readonly permissions: readonly ["source-control.read"];
|
|
142
|
+
readonly nav: {
|
|
143
|
+
readonly group: "operations";
|
|
144
|
+
readonly icon: "git";
|
|
145
|
+
};
|
|
146
|
+
readonly tabs: {
|
|
147
|
+
readonly providers: {
|
|
148
|
+
readonly label: "Providers";
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
}>;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { bindReact } from '../../react/bind-react.js';
|
|
2
|
+
import { sourceControlModule } from '../source-control.module.js';
|
|
3
|
+
import { SourceControlPortsContext } from './hooks/SourceControlPorts.hooks.js';
|
|
4
|
+
export { useSourceControlPorts } from './hooks/SourceControlPorts.hooks.js';
|
|
5
|
+
export function sourceControl(_required, _optional = {}) {
|
|
6
|
+
const module = { ...sourceControlModule };
|
|
7
|
+
const react = bindReact({ module, views: { sourceControl: { page: () => import('./pages/SourceControlPage.js'), tabs: { providers: () => import('./tabs/ProvidersTab.js') } } } }, { context: SourceControlPortsContext });
|
|
8
|
+
return Object.assign(module, { react });
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense } from 'react';
|
|
3
|
+
import { Notice, Spinner, Tabs } from '@jini-ai/ui-kit/react';
|
|
4
|
+
import { useSourceControlPage } from '../hooks/SourceControlPage.hooks.js';
|
|
5
|
+
import { sourceControlMessagesEn as m } from '../../messages.en.js';
|
|
6
|
+
export function SourceControlPage(props, _optional = {}) {
|
|
7
|
+
const vm = useSourceControlPage(props);
|
|
8
|
+
return _jsxs("section", { "data-jini-part": "source-control.page", children: [_jsx("p", { children: "Operations" }), _jsx("h1", { children: props.description.label }), vm.denied ? _jsx(Notice, { tone: "danger", children: m.denied }) : _jsxs(_Fragment, { children: [_jsx("p", { children: m.description }), _jsx(Tabs, { label: "Source control views", value: vm.active, items: vm.items, onValueChange: vm.onValueChange }), _jsx(Suspense, { fallback: _jsx(Spinner, { label: m.loading }), children: vm.ActiveTab && _jsx(vm.ActiveTab, { params: vm.params, permissions: vm.permissions }) })] })] });
|
|
9
|
+
}
|
|
10
|
+
export default SourceControlPage;
|
|
11
|
+
//# sourceMappingURL=SourceControlPage.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Notice, Spinner } from '@jini-ai/ui-kit/react';
|
|
3
|
+
import { useProvidersTab } from '../hooks/ProvidersTab.hooks.js';
|
|
4
|
+
import { SourceControlProviderRow } from '../components/SourceControlProviderRow.js';
|
|
5
|
+
export function ProvidersTab(props, _optional = {}) {
|
|
6
|
+
const vm = useProvidersTab(props);
|
|
7
|
+
return vm.denied ? _jsx(Notice, { tone: "danger", children: "Permission denied" }) : _jsxs("section", { children: [vm.errors.map(error => _jsx(Notice, { tone: "danger", children: error }, error)), vm.loading && _jsx(Spinner, { label: "Loading connections\u2026" }), _jsx(Button, { onPress: vm.reload, disabled: vm.loading, children: "Reload connections" }), vm.rows.map(row => _jsx(SourceControlProviderRow, { row: row }, row.id)), vm.canManage && _jsxs("p", { children: ["Need a second named token or want to rename one? ", _jsx(Button, { variant: "ghost", onPress: vm.manage, children: "Create access token" })] })] });
|
|
8
|
+
}
|
|
9
|
+
export default ProvidersTab;
|
|
10
|
+
//# sourceMappingURL=ProvidersTab.js.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { SourceControlProvider, SourceControlCredential, SourceControlDraft, SourceControlProviderInfo, SourceControlConnection } from './models.js';
|
|
2
|
+
export declare function blankSourceControlDraft(_required: Record<string, never>, _optional?: {}): SourceControlDraft;
|
|
3
|
+
/** Saved connections remain visible even when their provider plugin is missing or off. */
|
|
4
|
+
export declare function sourceControlProviders({ providers, credentials }: {
|
|
5
|
+
providers: readonly SourceControlProvider[];
|
|
6
|
+
credentials: readonly Pick<SourceControlCredential, 'providerId'>[];
|
|
7
|
+
}, _optional?: {}): readonly SourceControlProviderInfo[];
|
|
8
|
+
/** DEFAULT first, then a defensive first-row fallback. Never confuse identity with deploy targets. */
|
|
9
|
+
export declare function defaultSourceControlCredential({ credentials, providerId }: {
|
|
10
|
+
credentials: readonly SourceControlCredential[];
|
|
11
|
+
providerId: string;
|
|
12
|
+
}, _optional?: {}): SourceControlCredential | undefined;
|
|
13
|
+
export declare function sourceControlReady({ info, draft }: {
|
|
14
|
+
info: SourceControlProviderInfo;
|
|
15
|
+
draft: SourceControlDraft;
|
|
16
|
+
}, _optional?: {}): boolean;
|
|
17
|
+
/** Only declared nonblank fields go on the wire; token always uses the API's canonical key. */
|
|
18
|
+
export declare function buildSourceControlConnection({ info, draft }: {
|
|
19
|
+
info: SourceControlProviderInfo;
|
|
20
|
+
draft: SourceControlDraft;
|
|
21
|
+
}, _optional?: {}): SourceControlConnection;
|
|
22
|
+
/** Explicit projection prevents accidental token, ciphertext or username disclosure. */
|
|
23
|
+
export declare function sourceControlSummary({ row }: {
|
|
24
|
+
row: SourceControlCredential;
|
|
25
|
+
}, _optional?: {}): SourceControlCredential;
|
|
26
|
+
export declare function sourceControlErrorMessage({ error }: {
|
|
27
|
+
error: unknown;
|
|
28
|
+
}, _optional?: {}): "This connection was already saved — reload and try again." | "Check the required credential fields." | "Unable to save connection";
|
|
29
|
+
export declare function safeSourceControlUrl({ url }: {
|
|
30
|
+
url: string;
|
|
31
|
+
}, _optional?: {}): string | undefined;
|
|
32
|
+
//# sourceMappingURL=rules.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export function blankSourceControlDraft(_required, _optional = {}) { return { token: '', values: {}, saving: false, error: null }; }
|
|
2
|
+
/** Saved connections remain visible even when their provider plugin is missing or off. */
|
|
3
|
+
export function sourceControlProviders({ providers, credentials }, _optional = {}) {
|
|
4
|
+
const rows = providers.map(p => { const c = p.credential, token = c?.fields.find(f => f.name === c.tokenField); return { id: p.id, label: p.label, listed: true, tokenLabel: token?.label ?? 'Access token', fields: c?.fields.filter(f => f.name !== c.tokenField) ?? [], tokenPageUrl: c?.tokenPageUrl ?? '', help: c?.help ?? '' }; });
|
|
5
|
+
for (const c of credentials)
|
|
6
|
+
if (!rows.some(r => r.id === c.providerId))
|
|
7
|
+
rows.push({ id: c.providerId, label: c.providerId, listed: false, tokenLabel: 'Access token', fields: [], tokenPageUrl: '', help: '' });
|
|
8
|
+
return rows;
|
|
9
|
+
}
|
|
10
|
+
/** DEFAULT first, then a defensive first-row fallback. Never confuse identity with deploy targets. */
|
|
11
|
+
export function defaultSourceControlCredential({ credentials, providerId }, _optional = {}) { const rows = credentials.filter(r => r.providerId === providerId); return rows.find(r => r.isDefault) ?? rows[0]; }
|
|
12
|
+
export function sourceControlReady({ info, draft }, _optional = {}) { return info.listed && !!draft.token.trim() && info.fields.every(f => !f.required || !!draft.values[f.name]?.trim()); }
|
|
13
|
+
/** Only declared nonblank fields go on the wire; token always uses the API's canonical key. */
|
|
14
|
+
export function buildSourceControlConnection({ info, draft }, _optional = {}) {
|
|
15
|
+
const fields = {};
|
|
16
|
+
for (const f of info.fields) {
|
|
17
|
+
const value = draft.values[f.name]?.trim();
|
|
18
|
+
if (value)
|
|
19
|
+
fields[f.name] = value;
|
|
20
|
+
}
|
|
21
|
+
return { ...fields, providerId: info.id, token: draft.token.trim() };
|
|
22
|
+
}
|
|
23
|
+
/** Explicit projection prevents accidental token, ciphertext or username disclosure. */
|
|
24
|
+
export function sourceControlSummary({ row }, _optional = {}) { return Object.freeze({ id: row.id, providerId: row.providerId, label: row.label, configured: true, isDefault: row.isDefault, createdAt: row.createdAt, updatedAt: row.updatedAt }); }
|
|
25
|
+
export function sourceControlErrorMessage({ error }, _optional = {}) { const e = error; const marker = e?.code ?? e?.message; if (marker === 'DUPLICATE_LABEL')
|
|
26
|
+
return 'This connection was already saved — reload and try again.'; if (marker === 'VALIDATION')
|
|
27
|
+
return 'Check the required credential fields.'; return 'Unable to save connection'; }
|
|
28
|
+
export function safeSourceControlUrl({ url }, _optional = {}) { try {
|
|
29
|
+
const parsed = new URL(url);
|
|
30
|
+
return parsed.protocol === 'https:' || parsed.protocol === 'http:' ? url : undefined;
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
return undefined;
|
|
34
|
+
} }
|
|
35
|
+
//# sourceMappingURL=rules.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const sourceControlModule: {
|
|
2
|
+
readonly id: "source-control";
|
|
3
|
+
readonly requires: {
|
|
4
|
+
readonly sourceControlApi: import("../core/module/token.js").AdminPortToken<import("./ports.js").SourceControlApiPort, "admin.source-control.api">;
|
|
5
|
+
};
|
|
6
|
+
readonly optional: {
|
|
7
|
+
readonly sourceControlNavigation: import("../core/module/token.js").AdminPortToken<import("../contracts/credential-management.js").CredentialManagementPort, "admin.credentials.management">;
|
|
8
|
+
};
|
|
9
|
+
readonly messages: Readonly<{
|
|
10
|
+
title: "Source Control";
|
|
11
|
+
providers: "Providers";
|
|
12
|
+
description: "Connect an account to read repositories and push to them later. Content versioning is a separate feature.";
|
|
13
|
+
denied: "Permission denied";
|
|
14
|
+
saved: "Token saved";
|
|
15
|
+
replace: "Replace token";
|
|
16
|
+
manage: "Create access token";
|
|
17
|
+
loading: "Loading connections…";
|
|
18
|
+
}>;
|
|
19
|
+
readonly pages: {
|
|
20
|
+
readonly sourceControl: {
|
|
21
|
+
readonly path: "/source-control";
|
|
22
|
+
readonly label: "Source Control";
|
|
23
|
+
readonly permissions: readonly ["source-control.read"];
|
|
24
|
+
readonly nav: {
|
|
25
|
+
readonly group: "operations";
|
|
26
|
+
readonly icon: "git";
|
|
27
|
+
};
|
|
28
|
+
readonly tabs: {
|
|
29
|
+
readonly providers: {
|
|
30
|
+
readonly label: "Providers";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=source-control.module.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { defineAdminModule } from '../core/module/index.js';
|
|
2
|
+
import { sourceControlApiToken } from './ports.js';
|
|
3
|
+
import { credentialManagementToken } from '../contracts/credential-management.js';
|
|
4
|
+
import { sourceControlMessagesEn as m } from './messages.en.js';
|
|
5
|
+
export const sourceControlModule = defineAdminModule({ id: 'source-control', requires: { sourceControlApi: sourceControlApiToken }, optional: { sourceControlNavigation: credentialManagementToken }, messages: m, pages: { sourceControl: { path: '/source-control', label: m.title, permissions: ['source-control.read'], nav: { group: 'operations', icon: 'git' }, tabs: { providers: { label: m.providers } } } } });
|
|
6
|
+
//# sourceMappingURL=source-control.module.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jini-ai/admin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Composable admin surface for Jini-hosted products: framework-free contracts, panel registry, and route model in `/core`; React shell and panels in `/react`. Import only the layers you need.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,40 @@
|
|
|
16
16
|
".": "universal",
|
|
17
17
|
"./core": "universal",
|
|
18
18
|
"./browser": "browser",
|
|
19
|
-
"./react": "browser"
|
|
19
|
+
"./react": "browser",
|
|
20
|
+
"./react/shell": "browser",
|
|
21
|
+
"./react/entities": "browser",
|
|
22
|
+
"./browser/shell-navigation": "browser",
|
|
23
|
+
"./core/module": "universal",
|
|
24
|
+
"./react/bind-react": "browser",
|
|
25
|
+
"./react/use-controller": "browser",
|
|
26
|
+
"./react/overlays": "browser",
|
|
27
|
+
"./media": "universal",
|
|
28
|
+
"./media/react": "browser",
|
|
29
|
+
"./media/adapters/http": "universal",
|
|
30
|
+
"./media/adapters/memory": "universal",
|
|
31
|
+
"./media/conformance": "universal",
|
|
32
|
+
"./contracts/*": "universal",
|
|
33
|
+
"./security": "universal",
|
|
34
|
+
"./security/react": "browser",
|
|
35
|
+
"./security/adapters/http": "universal",
|
|
36
|
+
"./security/adapters/memory": "universal",
|
|
37
|
+
"./security/conformance": "universal",
|
|
38
|
+
"./playground": "universal",
|
|
39
|
+
"./playground/react": "browser",
|
|
40
|
+
"./playground/adapters/http": "universal",
|
|
41
|
+
"./playground/adapters/memory": "universal",
|
|
42
|
+
"./playground/conformance": "universal",
|
|
43
|
+
"./source-control": "universal",
|
|
44
|
+
"./source-control/react": "browser",
|
|
45
|
+
"./source-control/adapters/http": "universal",
|
|
46
|
+
"./source-control/adapters/memory": "universal",
|
|
47
|
+
"./source-control/conformance": "universal",
|
|
48
|
+
"./agent-plugins": "universal",
|
|
49
|
+
"./agent-plugins/react": "browser",
|
|
50
|
+
"./agent-plugins/adapters/http": "universal",
|
|
51
|
+
"./agent-plugins/adapters/memory": "universal",
|
|
52
|
+
"./agent-plugins/conformance": "universal"
|
|
20
53
|
}
|
|
21
54
|
},
|
|
22
55
|
"type": "module",
|
|
@@ -43,10 +76,178 @@
|
|
|
43
76
|
"types": "./dist/react/index.d.ts",
|
|
44
77
|
"import": "./dist/react/index.js",
|
|
45
78
|
"default": "./dist/react/index.js"
|
|
79
|
+
},
|
|
80
|
+
"./react/shell": {
|
|
81
|
+
"types": "./dist/react/shell/index.d.ts",
|
|
82
|
+
"import": "./dist/react/shell/index.js",
|
|
83
|
+
"default": "./dist/react/shell/index.js"
|
|
84
|
+
},
|
|
85
|
+
"./react/entities": {
|
|
86
|
+
"types": "./dist/react/entities/index.d.ts",
|
|
87
|
+
"import": "./dist/react/entities/index.js",
|
|
88
|
+
"default": "./dist/react/entities/index.js"
|
|
89
|
+
},
|
|
90
|
+
"./browser/shell-navigation": {
|
|
91
|
+
"types": "./dist/browser/shell-navigation.d.ts",
|
|
92
|
+
"import": "./dist/browser/shell-navigation.js",
|
|
93
|
+
"default": "./dist/browser/shell-navigation.js"
|
|
94
|
+
},
|
|
95
|
+
"./core/module": {
|
|
96
|
+
"types": "./dist/core/module/index.d.ts",
|
|
97
|
+
"import": "./dist/core/module/index.js",
|
|
98
|
+
"default": "./dist/core/module/index.js"
|
|
99
|
+
},
|
|
100
|
+
"./react/bind-react": {
|
|
101
|
+
"types": "./dist/react/bind-react.d.ts",
|
|
102
|
+
"import": "./dist/react/bind-react.js",
|
|
103
|
+
"default": "./dist/react/bind-react.js"
|
|
104
|
+
},
|
|
105
|
+
"./react/use-controller": {
|
|
106
|
+
"types": "./dist/react/use-controller.d.ts",
|
|
107
|
+
"import": "./dist/react/use-controller.js",
|
|
108
|
+
"default": "./dist/react/use-controller.js"
|
|
109
|
+
},
|
|
110
|
+
"./react/overlays": {
|
|
111
|
+
"types": "./dist/react/overlays.d.ts",
|
|
112
|
+
"import": "./dist/react/overlays.js",
|
|
113
|
+
"default": "./dist/react/overlays.js"
|
|
114
|
+
},
|
|
115
|
+
"./media": {
|
|
116
|
+
"types": "./dist/media/index.d.ts",
|
|
117
|
+
"import": "./dist/media/index.js",
|
|
118
|
+
"default": "./dist/media/index.js"
|
|
119
|
+
},
|
|
120
|
+
"./media/react": {
|
|
121
|
+
"types": "./dist/media/react/index.d.ts",
|
|
122
|
+
"import": "./dist/media/react/index.js",
|
|
123
|
+
"default": "./dist/media/react/index.js"
|
|
124
|
+
},
|
|
125
|
+
"./media/adapters/http": {
|
|
126
|
+
"types": "./dist/media/adapters/http.d.ts",
|
|
127
|
+
"import": "./dist/media/adapters/http.js",
|
|
128
|
+
"default": "./dist/media/adapters/http.js"
|
|
129
|
+
},
|
|
130
|
+
"./media/adapters/memory": {
|
|
131
|
+
"types": "./dist/media/adapters/memory.d.ts",
|
|
132
|
+
"import": "./dist/media/adapters/memory.js",
|
|
133
|
+
"default": "./dist/media/adapters/memory.js"
|
|
134
|
+
},
|
|
135
|
+
"./media/conformance": {
|
|
136
|
+
"types": "./dist/media/conformance/media-api.conformance.d.ts",
|
|
137
|
+
"import": "./dist/media/conformance/media-api.conformance.js",
|
|
138
|
+
"default": "./dist/media/conformance/media-api.conformance.js"
|
|
139
|
+
},
|
|
140
|
+
"./contracts/*": {
|
|
141
|
+
"types": "./dist/contracts/*.d.ts",
|
|
142
|
+
"import": "./dist/contracts/*.js",
|
|
143
|
+
"default": "./dist/contracts/*.js"
|
|
144
|
+
},
|
|
145
|
+
"./security": {
|
|
146
|
+
"types": "./dist/security/index.d.ts",
|
|
147
|
+
"import": "./dist/security/index.js",
|
|
148
|
+
"default": "./dist/security/index.js"
|
|
149
|
+
},
|
|
150
|
+
"./security/react": {
|
|
151
|
+
"types": "./dist/security/react/index.d.ts",
|
|
152
|
+
"import": "./dist/security/react/index.js",
|
|
153
|
+
"default": "./dist/security/react/index.js"
|
|
154
|
+
},
|
|
155
|
+
"./security/adapters/http": {
|
|
156
|
+
"types": "./dist/security/adapters/http.d.ts",
|
|
157
|
+
"import": "./dist/security/adapters/http.js",
|
|
158
|
+
"default": "./dist/security/adapters/http.js"
|
|
159
|
+
},
|
|
160
|
+
"./security/adapters/memory": {
|
|
161
|
+
"types": "./dist/security/adapters/memory.d.ts",
|
|
162
|
+
"import": "./dist/security/adapters/memory.js",
|
|
163
|
+
"default": "./dist/security/adapters/memory.js"
|
|
164
|
+
},
|
|
165
|
+
"./security/conformance": {
|
|
166
|
+
"types": "./dist/security/conformance/security-api.conformance.d.ts",
|
|
167
|
+
"import": "./dist/security/conformance/security-api.conformance.js",
|
|
168
|
+
"default": "./dist/security/conformance/security-api.conformance.js"
|
|
169
|
+
},
|
|
170
|
+
"./playground": {
|
|
171
|
+
"types": "./dist/playground/index.d.ts",
|
|
172
|
+
"import": "./dist/playground/index.js",
|
|
173
|
+
"default": "./dist/playground/index.js"
|
|
174
|
+
},
|
|
175
|
+
"./playground/react": {
|
|
176
|
+
"types": "./dist/playground/react/index.d.ts",
|
|
177
|
+
"import": "./dist/playground/react/index.js",
|
|
178
|
+
"default": "./dist/playground/react/index.js"
|
|
179
|
+
},
|
|
180
|
+
"./playground/adapters/http": {
|
|
181
|
+
"types": "./dist/playground/adapters/http.d.ts",
|
|
182
|
+
"import": "./dist/playground/adapters/http.js",
|
|
183
|
+
"default": "./dist/playground/adapters/http.js"
|
|
184
|
+
},
|
|
185
|
+
"./playground/adapters/memory": {
|
|
186
|
+
"types": "./dist/playground/adapters/memory.d.ts",
|
|
187
|
+
"import": "./dist/playground/adapters/memory.js",
|
|
188
|
+
"default": "./dist/playground/adapters/memory.js"
|
|
189
|
+
},
|
|
190
|
+
"./playground/conformance": {
|
|
191
|
+
"types": "./dist/playground/conformance/playground-api.conformance.d.ts",
|
|
192
|
+
"import": "./dist/playground/conformance/playground-api.conformance.js",
|
|
193
|
+
"default": "./dist/playground/conformance/playground-api.conformance.js"
|
|
194
|
+
},
|
|
195
|
+
"./source-control": {
|
|
196
|
+
"types": "./dist/source-control/index.d.ts",
|
|
197
|
+
"import": "./dist/source-control/index.js",
|
|
198
|
+
"default": "./dist/source-control/index.js"
|
|
199
|
+
},
|
|
200
|
+
"./source-control/react": {
|
|
201
|
+
"types": "./dist/source-control/react/index.d.ts",
|
|
202
|
+
"import": "./dist/source-control/react/index.js",
|
|
203
|
+
"default": "./dist/source-control/react/index.js"
|
|
204
|
+
},
|
|
205
|
+
"./source-control/adapters/http": {
|
|
206
|
+
"types": "./dist/source-control/adapters/http.d.ts",
|
|
207
|
+
"import": "./dist/source-control/adapters/http.js",
|
|
208
|
+
"default": "./dist/source-control/adapters/http.js"
|
|
209
|
+
},
|
|
210
|
+
"./source-control/adapters/memory": {
|
|
211
|
+
"types": "./dist/source-control/adapters/memory.d.ts",
|
|
212
|
+
"import": "./dist/source-control/adapters/memory.js",
|
|
213
|
+
"default": "./dist/source-control/adapters/memory.js"
|
|
214
|
+
},
|
|
215
|
+
"./source-control/conformance": {
|
|
216
|
+
"types": "./dist/source-control/conformance/source-control-api.conformance.d.ts",
|
|
217
|
+
"import": "./dist/source-control/conformance/source-control-api.conformance.js",
|
|
218
|
+
"default": "./dist/source-control/conformance/source-control-api.conformance.js"
|
|
219
|
+
},
|
|
220
|
+
"./agent-plugins": {
|
|
221
|
+
"types": "./dist/agent-plugins/index.d.ts",
|
|
222
|
+
"import": "./dist/agent-plugins/index.js",
|
|
223
|
+
"default": "./dist/agent-plugins/index.js"
|
|
224
|
+
},
|
|
225
|
+
"./agent-plugins/react": {
|
|
226
|
+
"types": "./dist/agent-plugins/react/index.d.ts",
|
|
227
|
+
"import": "./dist/agent-plugins/react/index.js",
|
|
228
|
+
"default": "./dist/agent-plugins/react/index.js"
|
|
229
|
+
},
|
|
230
|
+
"./agent-plugins/adapters/http": {
|
|
231
|
+
"types": "./dist/agent-plugins/adapters/http.d.ts",
|
|
232
|
+
"import": "./dist/agent-plugins/adapters/http.js",
|
|
233
|
+
"default": "./dist/agent-plugins/adapters/http.js"
|
|
234
|
+
},
|
|
235
|
+
"./agent-plugins/adapters/memory": {
|
|
236
|
+
"types": "./dist/agent-plugins/adapters/memory.d.ts",
|
|
237
|
+
"import": "./dist/agent-plugins/adapters/memory.js",
|
|
238
|
+
"default": "./dist/agent-plugins/adapters/memory.js"
|
|
239
|
+
},
|
|
240
|
+
"./agent-plugins/conformance": {
|
|
241
|
+
"types": "./dist/agent-plugins/conformance/agent-plugins-api.conformance.d.ts",
|
|
242
|
+
"import": "./dist/agent-plugins/conformance/agent-plugins-api.conformance.js",
|
|
243
|
+
"default": "./dist/agent-plugins/conformance/agent-plugins-api.conformance.js"
|
|
46
244
|
}
|
|
47
245
|
},
|
|
48
246
|
"files": [
|
|
49
247
|
"dist",
|
|
248
|
+
"README.md",
|
|
249
|
+
"CHANGELOG.md",
|
|
250
|
+
"LICENSE",
|
|
50
251
|
"!dist/**/*.test.js",
|
|
51
252
|
"!dist/**/*.test.d.ts",
|
|
52
253
|
"!dist/**/*.test.js.map",
|
|
@@ -81,8 +282,10 @@
|
|
|
81
282
|
"react-dom": "^19.2.0"
|
|
82
283
|
},
|
|
83
284
|
"dependencies": {
|
|
84
|
-
"@jini-ai/agentic": "0.
|
|
85
|
-
"@jini-ai/ui": "0.
|
|
285
|
+
"@jini-ai/agentic": "^0.4.1",
|
|
286
|
+
"@jini-ai/ui": "^0.4.2",
|
|
287
|
+
"@jini-ai/ui-kit": "^0.1.0",
|
|
288
|
+
"@jini-ai/agent-plugins": "^0.4.1"
|
|
86
289
|
},
|
|
87
290
|
"scripts": {
|
|
88
291
|
"build": "tsc -p tsconfig.json",
|