akanjs 3.1.0-rc.2 → 3.1.0-rc.21
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/base/baseEnv.ts +5 -2
- package/client/device.ts +1 -1
- package/client/frameConfig.ts +2 -2
- package/client/href.ts +35 -0
- package/client/index.ts +1 -0
- package/client/makePageProto.tsx +3 -2
- package/client/router.ts +6 -4
- package/client/rscNavigation.ts +1 -1
- package/client/transitionTypes.ts +0 -4
- package/client/translator.ts +16 -0
- package/client/types.ts +3 -2
- package/client/viewportMeta.ts +23 -8
- package/client/webManifest.ts +5 -3
- package/common/TrustedProxy.ts +14 -0
- package/common/codeAgentWire.ts +8 -1
- package/common/index.ts +1 -0
- package/common/interpolateTranslation.ts +17 -3
- package/common/isEmail.ts +1 -1
- package/common/localeConfig.ts +10 -4
- package/common/markdownSpans.ts +1 -1
- package/common/restClient.ts +3 -1
- package/common/routeConvention.ts +4 -4
- package/common/trimSlashes.ts +11 -0
- package/common/types.ts +1 -1
- package/constant/fieldInfo.ts +2 -2
- package/constant/fieldPlan.ts +80 -0
- package/constant/index.ts +3 -0
- package/constant/inputParser.ts +148 -0
- package/constant/invalidInputError.ts +13 -0
- package/constant/serialize.ts +36 -20
- package/constant/types.ts +1 -1
- package/constant/via.ts +2 -0
- package/dictionary/base.dictionary.ts +4 -0
- package/dictionary/trans.ts +8 -0
- package/document/database.ts +3 -6
- package/document/documentSchema.ts +1 -1
- package/document/noDocumentError.ts +6 -1
- package/fetch/client/fetchClient.ts +2 -1
- package/fetch/client/sliceInitHandle.ts +2 -3
- package/fetch/fetchType/appliedReturn.type.ts +3 -1
- package/fetch/types.ts +4 -2
- package/index.ts +2 -0
- package/package.json +31 -21
- package/server/akanApp.ts +15 -3
- package/server/akanServer.ts +34 -14
- package/server/artifact/routeClientCache.ts +4 -5
- package/server/artifact/routeSeedIndexStore.ts +3 -20
- package/server/artifact/routeSeedMatcher.ts +70 -0
- package/server/console.ts +1 -1
- package/server/di/diLifecycle.ts +16 -7
- package/server/imageOptimizer.ts +1 -1
- package/server/index.ts +1 -0
- package/server/machine/machineAccount.ts +28 -3
- package/server/machine/machineToken.ts +27 -3
- package/server/mcp/McpDispatcher.ts +2 -3
- package/server/mcp/McpExecutionContext.ts +9 -3
- package/server/migration/docPath.ts +121 -0
- package/server/migration/index.ts +15 -0
- package/server/migration/migrationChangeLog.ts +86 -0
- package/server/migration/migrationChanges.ts +70 -0
- package/server/migration/migrationCommand.ts +179 -0
- package/server/migration/migrationContext.ts +53 -0
- package/server/migration/migrationDefinition.ts +87 -0
- package/server/migration/migrationError.ts +45 -0
- package/server/migration/migrationLedger.ts +172 -0
- package/server/migration/migrationLock.ts +103 -0
- package/server/migration/migrationParams.ts +122 -0
- package/server/migration/migrationPulse.ts +39 -0
- package/server/migration/migrationRunner.ts +525 -0
- package/server/migration/migrationScope.ts +93 -0
- package/server/migration/migrationTable.ts +258 -0
- package/server/migration/migrations.ts +57 -0
- package/server/ops/opsCommand.ts +30 -1
- package/server/resolver/CascadeRunner.ts +15 -2
- package/server/resolver/signal.resolver.ts +35 -55
- package/server/routeState.ts +0 -6
- package/server/rscClient.tsx +22 -37
- package/server/rscNavigationState.ts +3 -5
- package/server/rscScrollRestoration.ts +116 -0
- package/server/rscWorker.tsx +12 -19
- package/server/sitemap.ts +4 -4
- package/server/tunnel/TunnelAgent.ts +9 -1
- package/server/webRouter.ts +17 -2
- package/service/agent.service.ts +21 -1
- package/service/endpointCacheKeys.ts +35 -0
- package/service/index.ts +1 -0
- package/service/injectInfo.ts +2 -2
- package/service/predefinedAdaptor/anthropicLlm.ts +37 -17
- package/service/predefinedAdaptor/database.adaptor.ts +15 -0
- package/service/predefinedAdaptor/documentTransfer.ts +50 -0
- package/service/predefinedAdaptor/endpointCacheControl.adaptor.ts +19 -0
- package/service/predefinedAdaptor/index.ts +1 -0
- package/service/predefinedAdaptor/llm.adaptor.ts +7 -0
- package/service/predefinedAdaptor/openaiDialect.ts +53 -17
- package/service/predefinedAdaptor/openaiLlm.ts +1 -1
- package/service/predefinedAdaptor/sql/MigrationTables.ts +90 -0
- package/service/predefinedAdaptor/sql/RawDocumentTable.ts +200 -0
- package/service/predefinedAdaptor/sql/SqlDocumentStore.ts +6 -2
- package/service/predefinedAdaptor/sql/SqliteInsightSession.ts +4 -1
- package/service/predefinedAdaptor/sql/dialect/postgres.ts +0 -1
- package/service/predefinedAdaptor/sql/dialect/sqlite.ts +0 -1
- package/service/predefinedAdaptor/sql/types.ts +3 -1
- package/service/predefinedAdaptor/storage.adaptor.ts +19 -0
- package/signal/endpointCache.ts +23 -7
- package/signal/endpointErrorContract.ts +37 -0
- package/signal/endpointIdempotency.ts +5 -3
- package/signal/endpointInfo.ts +4 -1
- package/signal/endpointRateLimit.ts +6 -2
- package/signal/exception.ts +4 -1
- package/signal/index.ts +1 -0
- package/signal/mcp/McpDocument.ts +16 -1
- package/signal/mcp/McpUriTemplate.ts +1 -1
- package/signal/middlewareChain.ts +105 -0
- package/signal/openapi/openapi.ts +46 -2
- package/signal/serializer/fetch.serializer.ts +1 -0
- package/signal/signalContext.ts +110 -82
- package/signal/slice.ts +2 -2
- package/signal/trace.ts +8 -2
- package/signal/types.ts +13 -0
- package/store/action.ts +102 -42
- package/store/agent/ScreenImage.ts +166 -0
- package/store/agent/ScreenReader.ts +2 -1
- package/store/agent/StoreSurfaceSource.ts +41 -2
- package/store/agent/index.ts +2 -1
- package/store/databaseStateNames.ts +1 -0
- package/store/formUploadOf.ts +41 -0
- package/store/index.ts +1 -0
- package/store/liveInsert.ts +2 -2
- package/store/state.ts +9 -1
- package/store/stateBuilder.ts +8 -2
- package/store/storeInstance.ts +12 -3
- package/store/withSelector.ts +2 -2
- package/types/client/href.d.ts +11 -0
- package/types/client/index.d.ts +1 -0
- package/types/client/rscNavigation.d.ts +1 -1
- package/types/client/transitionTypes.d.ts +0 -2
- package/types/client/translator.d.ts +2 -0
- package/types/common/codeAgentWire.d.ts +7 -0
- package/types/common/index.d.ts +1 -0
- package/types/common/trimSlashes.d.ts +2 -0
- package/types/common/types.d.ts +1 -1
- package/types/constant/fieldInfo.d.ts +2 -2
- package/types/constant/fieldPlan.d.ts +33 -0
- package/types/constant/index.d.ts +3 -0
- package/types/constant/inputParser.d.ts +11 -0
- package/types/constant/invalidInputError.d.ts +8 -0
- package/types/constant/types.d.ts +1 -1
- package/types/dictionary/base.dictionary.d.ts +1 -1
- package/types/dictionary/dictionary.d.ts +3 -3
- package/types/dictionary/trans.d.ts +3 -0
- package/types/document/database.d.ts +2 -3
- package/types/document/documentSchema.d.ts +1 -1
- package/types/document/noDocumentError.d.ts +6 -1
- package/types/fetch/fetchType/appliedReturn.type.d.ts +3 -1
- package/types/fetch/types.d.ts +2 -2
- package/types/index.d.ts +5 -0
- package/types/server/akanServer.d.ts +1 -1
- package/types/server/artifact/routeSeedMatcher.d.ts +8 -0
- package/types/server/di/diLifecycle.d.ts +1 -0
- package/types/server/index.d.ts +1 -0
- package/types/server/machine/machineAccount.d.ts +1 -0
- package/types/server/machine/machineToken.d.ts +9 -0
- package/types/server/migration/docPath.d.ts +20 -0
- package/types/server/migration/index.d.ts +15 -0
- package/types/server/migration/migrationChangeLog.d.ts +27 -0
- package/types/server/migration/migrationChanges.d.ts +27 -0
- package/types/server/migration/migrationCommand.d.ts +33 -0
- package/types/server/migration/migrationContext.d.ts +28 -0
- package/types/server/migration/migrationDefinition.d.ts +42 -0
- package/types/server/migration/migrationError.d.ts +15 -0
- package/types/server/migration/migrationLedger.d.ts +51 -0
- package/types/server/migration/migrationLock.d.ts +34 -0
- package/types/server/migration/migrationParams.d.ts +41 -0
- package/types/server/migration/migrationPulse.d.ts +15 -0
- package/types/server/migration/migrationRunner.d.ts +93 -0
- package/types/server/migration/migrationScope.d.ts +42 -0
- package/types/server/migration/migrationTable.d.ts +52 -0
- package/types/server/migration/migrations.d.ts +12 -0
- package/types/server/migration.d.ts +1 -0
- package/types/server/ops/opsCommand.d.ts +10 -1
- package/types/server/routeState.d.ts +1 -4
- package/types/server/rscNavigationState.d.ts +2 -3
- package/types/server/rscScrollRestoration.d.ts +14 -0
- package/types/server/sitemap.d.ts +1 -1
- package/types/service/agent.service.d.ts +2 -0
- package/types/service/endpointCacheKeys.d.ts +8 -0
- package/types/service/index.d.ts +1 -0
- package/types/service/injectInfo.d.ts +2 -2
- package/types/service/predefinedAdaptor/anthropicLlm.d.ts +9 -4
- package/types/service/predefinedAdaptor/database.adaptor.d.ts +8 -1
- package/types/service/predefinedAdaptor/documentTransfer.d.ts +1 -0
- package/types/service/predefinedAdaptor/endpointCacheControl.adaptor.d.ts +9 -0
- package/types/service/predefinedAdaptor/index.d.ts +1 -0
- package/types/service/predefinedAdaptor/llm.adaptor.d.ts +7 -0
- package/types/service/predefinedAdaptor/openaiDialect.d.ts +20 -5
- package/types/service/predefinedAdaptor/sql/MigrationTables.d.ts +17 -0
- package/types/service/predefinedAdaptor/sql/RawDocumentTable.d.ts +38 -0
- package/types/service/predefinedAdaptor/sql/types.d.ts +1 -0
- package/types/service/predefinedAdaptor/storage.adaptor.d.ts +8 -0
- package/types/signal/endpointCache.d.ts +2 -0
- package/types/signal/endpointErrorContract.d.ts +10 -0
- package/types/signal/endpointIdempotency.d.ts +1 -0
- package/types/signal/endpointRateLimit.d.ts +1 -1
- package/types/signal/exception.d.ts +4 -1
- package/types/signal/index.d.ts +1 -0
- package/types/signal/middlewareChain.d.ts +11 -0
- package/types/signal/signalContext.d.ts +2 -6
- package/types/signal/slice.d.ts +1 -1
- package/types/signal/trace.d.ts +1 -1
- package/types/signal/types.d.ts +12 -0
- package/types/store/action.d.ts +2 -0
- package/types/store/agent/ScreenImage.d.ts +27 -0
- package/types/store/agent/StoreSurfaceSource.d.ts +1 -1
- package/types/store/agent/index.d.ts +2 -1
- package/types/store/databaseStateNames.d.ts +1 -0
- package/types/store/formUploadOf.d.ts +9 -0
- package/types/store/index.d.ts +1 -0
- package/types/store/state.d.ts +7 -1
- package/types/store/stateBuilder.d.ts +2 -1
- package/types/store/storeInstance.d.ts +2 -2
- package/types/store/withSelector.d.ts +1 -1
- package/types/ui/Agent/Composer.d.ts +2 -0
- package/types/ui/Agent/Menu.d.ts +2 -0
- package/types/ui/CsrImage.d.ts +2 -0
- package/types/ui/Data/CardList.d.ts +1 -1
- package/types/ui/Data/Dashboard.d.ts +1 -1
- package/types/ui/Data/Insight.d.ts +1 -1
- package/types/ui/Data/Item.d.ts +2 -2
- package/types/ui/Data/ListContainer.d.ts +1 -1
- package/types/ui/Data/Pagination.d.ts +1 -1
- package/types/ui/Data/TableList.d.ts +1 -1
- package/types/ui/Field/Relation.d.ts +13 -10
- package/types/ui/Field/index.d.ts +4 -4
- package/types/ui/Field/useRelationOptions.d.ts +3 -1
- package/types/ui/Field/useRelationWindow.d.ts +14 -0
- package/types/ui/Image.d.ts +3 -1
- package/types/ui/Load/View.d.ts +1 -1
- package/types/ui/Pagination.d.ts +1 -1
- package/types/ui/Signal/Arg.d.ts +1 -1
- package/types/ui/System/CSR.d.ts +1 -1
- package/types/ui/System/Client.d.ts +1 -1
- package/types/ui/System/SSR.d.ts +1 -1
- package/types/vendor/@akanjs/native/packages/core/src/plugin.d.ts +3 -3
- package/types/vendor/@akanjs/native/packages/desktop/src/page-veto.d.ts +1 -1
- package/types/vendor/@akanjs/native/packages/desktop/src/plugin.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/auth-session/src/desktop.d.ts +2 -2
- package/types/vendor/@akanjs/native/plugins/auth-session/src/index.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/autostart/src/desktop.d.ts +2 -2
- package/types/vendor/@akanjs/native/plugins/autostart/src/index.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/badge/src/desktop.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/badge/src/index.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/badge/src/web.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/biometric/src/index.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/camera/src/desktop.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/camera/src/index.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/camera/src/web.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/clipboard/src/desktop.d.ts +2 -2
- package/types/vendor/@akanjs/native/plugins/clipboard/src/index.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/clipboard/src/web.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/contacts/src/index.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/device/src/desktop.d.ts +2 -2
- package/types/vendor/@akanjs/native/plugins/device/src/index.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/device/src/web.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/dialog/src/desktop.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/dialog/src/index.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/dialog/src/web.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/dock/src/desktop.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/dock/src/index.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/file-picker/src/desktop.d.ts +2 -2
- package/types/vendor/@akanjs/native/plugins/file-picker/src/web.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/filesystem/src/desktop.d.ts +2 -2
- package/types/vendor/@akanjs/native/plugins/filesystem/src/web.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/haptics/src/index.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/haptics/src/web.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/http/src/desktop.d.ts +2 -2
- package/types/vendor/@akanjs/native/plugins/http/src/web.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/keep-awake/src/desktop.d.ts +2 -2
- package/types/vendor/@akanjs/native/plugins/keep-awake/src/index.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/keep-awake/src/web.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/opener/src/desktop.d.ts +2 -2
- package/types/vendor/@akanjs/native/plugins/opener/src/index.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/opener/src/web.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/preferences/src/desktop.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/preferences/src/index.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/preferences/src/web.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/secure-storage/src/desktop.d.ts +2 -2
- package/types/vendor/@akanjs/native/plugins/secure-storage/src/index.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/share/src/index.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/share/src/web.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/single-instance/src/desktop.d.ts +2 -2
- package/types/vendor/@akanjs/native/plugins/splash-screen/src/index.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/splash-screen/src/web.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/sqlite/src/desktop.d.ts +2 -2
- package/types/vendor/@akanjs/native/plugins/toast/src/index.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/toast/src/web.d.ts +1 -1
- package/types/vendor/@akanjs/native/plugins/window/src/index.d.ts +2 -2
- package/types/vendor/@akanjs/native/plugins/window-state/src/desktop.d.ts +2 -2
- package/types/vendor/@akanjs/native/plugins/window-state/src/index.d.ts +1 -1
- package/types/vendor/use-agentic/Compaction.d.ts +3 -1
- package/types/vendor/use-agentic/Reference.d.ts +9 -1
- package/types/vendor/use-agentic/ToolOutput.d.ts +6 -1
- package/types/vendor/use-agentic/ToolReturn.d.ts +18 -0
- package/types/vendor/use-agentic/Transcript.d.ts +7 -0
- package/types/vendor/use-agentic/index.d.ts +1 -0
- package/types/vendor/use-agentic/types.d.ts +6 -0
- package/types/webkit/useDebounce.d.ts +1 -1
- package/ui/Agent/Chat.tsx +1 -0
- package/ui/Agent/Composer.tsx +2 -0
- package/ui/Agent/Menu.tsx +5 -1
- package/ui/Agent/agentSessionOf.ts +15 -8
- package/ui/Agent/mentionDraft.ts +2 -3
- package/ui/Agent/useReferenceMenu.ts +1 -0
- package/ui/Agent/useSlashMenu.ts +1 -0
- package/ui/Clipboard.tsx +1 -0
- package/ui/CsrImage.tsx +3 -1
- package/ui/Data/CardList.tsx +1 -1
- package/ui/Data/Dashboard.tsx +1 -1
- package/ui/Data/Insight.tsx +1 -1
- package/ui/Data/Item.tsx +5 -2
- package/ui/Data/ListContainer.tsx +2 -2
- package/ui/Data/Pagination.tsx +1 -1
- package/ui/Data/TableList.tsx +1 -1
- package/ui/DraggableList.tsx +1 -0
- package/ui/Field/Collection.tsx +4 -0
- package/ui/Field/Relation.tsx +33 -14
- package/ui/Field/useRelationOptions.ts +33 -5
- package/ui/Field/useRelationWindow.ts +50 -0
- package/ui/Image.tsx +4 -4
- package/ui/Input.tsx +1 -0
- package/ui/Layout/Sider.tsx +1 -1
- package/ui/Link/Anchor.tsx +7 -5
- package/ui/Load/Units.tsx +17 -7
- package/ui/Load/View.tsx +2 -2
- package/ui/Model/Edit.tsx +1 -1
- package/ui/Model/EditModal.tsx +11 -5
- package/ui/Model/New.tsx +1 -1
- package/ui/Model/SureToRemove.tsx +1 -0
- package/ui/Model/ViewEditModal.tsx +17 -5
- package/ui/Model/ViewModal.tsx +2 -2
- package/ui/ObjectId.tsx +5 -1
- package/ui/Pagination.tsx +1 -1
- package/ui/Signal/Arg.tsx +1 -3
- package/ui/Signal/Doc.tsx +5 -1
- package/ui/System/CSR.tsx +1 -1
- package/ui/System/Client.tsx +1 -1
- package/ui/System/Reconnect.tsx +1 -1
- package/ui/System/SSR.tsx +3 -36
- package/ui/ToggleSelect.tsx +2 -0
- package/ui/styles.css +10 -103
- package/vendor/@akanjs/native/native/ios/Sources/AkanNativeBridge.swift +3 -2
- package/vendor/@akanjs/native/packages/cli/src/lib/addons.ts +4 -1
- package/vendor/@akanjs/native/packages/cli/src/lib/apk.ts +2 -2
- package/vendor/@akanjs/native/packages/cli/src/lib/codegen.ts +1 -1
- package/vendor/@akanjs/native/packages/cli/src/lib/csp.ts +4 -3
- package/vendor/@akanjs/native/packages/cli/src/lib/googleservices.ts +7 -1
- package/vendor/@akanjs/native/packages/cli/src/lib/hmr.ts +8 -5
- package/vendor/@akanjs/native/packages/cli/src/lib/html.ts +18 -3
- package/vendor/@akanjs/native/packages/cli/src/lib/manifestmerge.ts +1 -1
- package/vendor/@akanjs/native/packages/cli/src/lib/plist.ts +2 -4
- package/vendor/@akanjs/native/packages/cli/src/lib/toolchains.ts +1 -1
- package/vendor/@akanjs/native/packages/cli/src/lib/updates.ts +10 -4
- package/vendor/@akanjs/native/packages/cli/src/lib/xml.ts +4 -3
- package/vendor/@akanjs/native/packages/cli/src/platforms/android.ts +3 -3
- package/vendor/@akanjs/native/packages/core/src/kernel.ts +3 -3
- package/vendor/@akanjs/native/packages/core/src/live.ts +1 -0
- package/vendor/@akanjs/native/packages/core/src/plugin.ts +5 -3
- package/vendor/@akanjs/native/packages/desktop/src/host.ts +13 -5
- package/vendor/@akanjs/native/packages/desktop/src/lifecycle.ts +1 -0
- package/vendor/@akanjs/native/packages/desktop/src/page-veto.ts +1 -1
- package/vendor/@akanjs/native/packages/desktop/src/plugin.ts +4 -1
- package/vendor/@akanjs/native/plugins/camera/src/web.ts +3 -3
- package/vendor/@akanjs/native/plugins/file-picker/src/index.ts +4 -1
- package/vendor/@akanjs/native/plugins/local-notifications/src/web.ts +1 -1
- package/vendor/@akanjs/native/plugins/secure-storage/src/desktop.ts +1 -1
- package/vendor/@akanjs/native/plugins/share/src/options.ts +1 -1
- package/vendor/@akanjs/native/plugins/single-instance/src/desktop.ts +3 -2
- package/vendor/@akanjs/native/plugins/updates/src/desktop.ts +4 -1
- package/vendor/@akanjs/native/plugins/window/src/index.ts +2 -2
- package/vendor/use-agentic/Compaction.ts +38 -7
- package/vendor/use-agentic/Reference.ts +16 -9
- package/vendor/use-agentic/ToolOutput.ts +25 -3
- package/vendor/use-agentic/ToolReturn.ts +32 -0
- package/vendor/use-agentic/ToolRunner.ts +15 -13
- package/vendor/use-agentic/Transcript.ts +38 -2
- package/vendor/use-agentic/WIRE.md +20 -0
- package/vendor/use-agentic/index.ts +1 -0
- package/vendor/use-agentic/types.ts +6 -0
- package/webkit/McpAppAgent.ts +12 -2
- package/webkit/RenderLayer.tsx +23 -4
- package/webkit/useDebounce.ts +23 -14
- package/client/viewTransition.ts +0 -10
- package/types/client/viewTransition.d.ts +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RefObject } from "react";
|
|
1
|
+
import type { EffectCallback, RefObject } from "react";
|
|
2
2
|
import { type AgentGate } from "../vendor/use-agentic.d.ts";
|
|
3
3
|
import { type ActionOwner } from "./actionTag.d.ts";
|
|
4
4
|
import type { RootStoreCls } from "./rootStore.d.ts";
|
|
@@ -11,7 +11,7 @@ export type ReactAPI = {
|
|
|
11
11
|
useRef: <T>(initialValue: T) => {
|
|
12
12
|
current: T;
|
|
13
13
|
};
|
|
14
|
-
useEffect: (effect:
|
|
14
|
+
useEffect: (effect: EffectCallback, deps?: any[]) => void;
|
|
15
15
|
};
|
|
16
16
|
export declare class StoreInstance {
|
|
17
17
|
#private;
|
|
@@ -25,7 +25,7 @@ type WithSelectorsOf<State, WritableState, Action, InternalSliceObj> = StAgentic
|
|
|
25
25
|
get: () => State;
|
|
26
26
|
set: (state: Partial<WritableState> | ((state: WritableState) => any)) => void;
|
|
27
27
|
slice: {
|
|
28
|
-
[K in keyof InternalSliceObj]: InternalSliceObj[K] extends SliceStateAction<infer RefName, infer
|
|
28
|
+
[K in keyof InternalSliceObj]: InternalSliceObj[K] extends SliceStateAction<infer RefName, infer _Suffix, infer _SliceName, infer State, infer Action> ? SliceSelectors<RefName, State, Action> : never;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
export interface SliceSelectors<RefName extends string, State, Action> {
|
|
@@ -31,6 +31,8 @@ export interface ComposerProps {
|
|
|
31
31
|
inputRef?: RefObject<HTMLTextAreaElement | null>;
|
|
32
32
|
/** Draws each `@` pointer as its name; set only when the chat has `reference` sources. */
|
|
33
33
|
mentions?: boolean;
|
|
34
|
+
/** A `/` or `@` menu is up and `onKeyDown` picks from it: an override that takes Enter for a newline passes it on. */
|
|
35
|
+
isMenuOpen?: boolean;
|
|
34
36
|
/** Filled by whichever input is drawn. An override that draws its own textarea leaves it null and `inputRef` answers. */
|
|
35
37
|
handleRef?: RefObject<ComposerHandle | null>;
|
|
36
38
|
}
|
package/types/ui/Agent/Menu.d.ts
CHANGED
package/types/ui/CsrImage.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ type CsrImageProps = Omit<ImgHTMLAttributes<HTMLImageElement>, "alt" | "src"> &
|
|
|
14
14
|
quality?: number;
|
|
15
15
|
unoptimized?: boolean;
|
|
16
16
|
fill?: boolean;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
blurDataURL?: string;
|
|
17
19
|
};
|
|
18
20
|
export declare const CsrImage: ({ src, alt, file, className, abstractData, ...props }: CsrImageProps) => import("react").JSX.Element;
|
|
19
21
|
export {};
|
|
@@ -2,7 +2,7 @@ import { type DataAction, type DataColumn } from "akanjs/client";
|
|
|
2
2
|
import type { FilterInstance } from "akanjs/document";
|
|
3
3
|
import type { FetchInitForm, SliceMeta } from "akanjs/fetch";
|
|
4
4
|
import { type ReactNode } from "react";
|
|
5
|
-
type DataItemProps<T extends string,
|
|
5
|
+
type DataItemProps<T extends string, _M extends {
|
|
6
6
|
id: string;
|
|
7
7
|
}, L extends {
|
|
8
8
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { QuerySetting, SliceMeta } from "akanjs/fetch";
|
|
2
|
-
export interface DashboardProps<
|
|
2
|
+
export interface DashboardProps<_T extends string, _State> {
|
|
3
3
|
className?: string;
|
|
4
4
|
summary: Record<string, unknown>;
|
|
5
5
|
/** The listing these tiles belong to. Kept so a caller names its target; the labels are app-level keys. */
|
package/types/ui/Data/Item.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare const convToAntdColumn: (column: DataColumn<any>) => {
|
|
|
27
27
|
render: (value: unknown) => string | import("react").JSX.Element;
|
|
28
28
|
responsive?: undefined;
|
|
29
29
|
};
|
|
30
|
-
interface ItemProps<
|
|
30
|
+
interface ItemProps<_T extends string, _Full extends {
|
|
31
31
|
id: string;
|
|
32
32
|
}, Light extends {
|
|
33
33
|
id: string;
|
|
@@ -57,7 +57,7 @@ declare namespace Item {
|
|
|
57
57
|
}) => import("react").JSX.Element | import("react").JSX.Element[];
|
|
58
58
|
}
|
|
59
59
|
export default Item;
|
|
60
|
-
interface ActionProps<
|
|
60
|
+
interface ActionProps<_T extends string, _M extends {
|
|
61
61
|
id: string;
|
|
62
62
|
}, L extends {
|
|
63
63
|
id: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type DataAction, type DataColumn, type DataTool, type ModelInsightProps, type ModelProps } from "akanjs/client";
|
|
2
2
|
import type { FetchInitForm, QuerySetting, SliceMeta } from "akanjs/fetch";
|
|
3
3
|
import { type ReactNode } from "react";
|
|
4
|
-
export interface ListContainerProps<
|
|
4
|
+
export interface ListContainerProps<_T extends string, _State, Input, Full extends {
|
|
5
5
|
id: string;
|
|
6
6
|
}, Light extends {
|
|
7
7
|
id: string;
|
|
@@ -2,7 +2,7 @@ import { type DataAction, type DataColumn } from "akanjs/client";
|
|
|
2
2
|
import type { FilterInstance } from "akanjs/document";
|
|
3
3
|
import type { FetchInitForm, SliceMeta } from "akanjs/fetch";
|
|
4
4
|
import { type ReactNode } from "react";
|
|
5
|
-
interface TableListProps<
|
|
5
|
+
interface TableListProps<_T extends string, Input, Full extends {
|
|
6
6
|
id: string;
|
|
7
7
|
}, Light extends {
|
|
8
8
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SliceMeta } from "akanjs/fetch";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
|
-
interface RelationProps<Light> {
|
|
3
|
+
interface RelationProps<Light, Sort> {
|
|
4
4
|
label?: string;
|
|
5
5
|
desc?: string;
|
|
6
6
|
labelClassName?: string;
|
|
@@ -8,11 +8,14 @@ interface RelationProps<Light> {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
nullable?: boolean;
|
|
10
10
|
initArgs?: any[];
|
|
11
|
-
slice: SliceMeta
|
|
11
|
+
slice: SliceMeta<Sort>;
|
|
12
|
+
/** Either one gives the field its own option window, leaving the slice's list on the page as it is. */
|
|
13
|
+
limit?: number;
|
|
14
|
+
sort?: NoInfer<Sort> & string;
|
|
12
15
|
onSearch?: (text: string) => void;
|
|
13
16
|
sortOption?: (a: Light, b: Light) => number;
|
|
14
17
|
}
|
|
15
|
-
export interface ParentProps<Light> extends RelationProps<Light> {
|
|
18
|
+
export interface ParentProps<Light, Sort = unknown> extends RelationProps<Light, Sort> {
|
|
16
19
|
selectClassName?: string;
|
|
17
20
|
value: Light | null;
|
|
18
21
|
onChange: (value: Light | null) => void;
|
|
@@ -21,8 +24,8 @@ export interface ParentProps<Light> extends RelationProps<Light> {
|
|
|
21
24
|
}
|
|
22
25
|
export declare const Parent: <Light extends {
|
|
23
26
|
id: string;
|
|
24
|
-
}>({ label, desc, labelClassName, selectClassName, className, nullable, disabled, initArgs, slice, value, onChange, onSearch, sortOption, renderOption, renderSelected, }: ParentProps<Light>) => import("react").JSX.Element;
|
|
25
|
-
export interface ParentIdProps<Light> extends RelationProps<Light> {
|
|
27
|
+
}, Sort = unknown>({ label, desc, labelClassName, selectClassName, className, nullable, disabled, initArgs, limit, sort, slice, value, onChange, onSearch, sortOption, renderOption, renderSelected, }: ParentProps<Light, Sort>) => import("react").JSX.Element;
|
|
28
|
+
export interface ParentIdProps<Light, Sort = unknown> extends RelationProps<Light, Sort> {
|
|
26
29
|
selectClassName?: string;
|
|
27
30
|
value: string | null;
|
|
28
31
|
onChange: (id: string | null, model: Light | null) => void;
|
|
@@ -31,8 +34,8 @@ export interface ParentIdProps<Light> extends RelationProps<Light> {
|
|
|
31
34
|
}
|
|
32
35
|
export declare const ParentId: <Light extends {
|
|
33
36
|
id: string;
|
|
34
|
-
}>({ label, desc, className, selectClassName, labelClassName, nullable, disabled, initArgs, slice, value, onChange, onSearch, sortOption, renderOption, renderSelected, }: ParentIdProps<Light>) => import("react").JSX.Element;
|
|
35
|
-
export interface ChildrenProps<Light> extends RelationProps<Light> {
|
|
37
|
+
}, Sort = unknown>({ label, desc, className, selectClassName, labelClassName, nullable, disabled, initArgs, limit, sort, slice, value, onChange, onSearch, sortOption, renderOption, renderSelected, }: ParentIdProps<Light, Sort>) => import("react").JSX.Element;
|
|
38
|
+
export interface ChildrenProps<Light, Sort = unknown> extends RelationProps<Light, Sort> {
|
|
36
39
|
selectClassName?: string;
|
|
37
40
|
value: Light[] | null;
|
|
38
41
|
onChange: (value: Light[]) => void;
|
|
@@ -41,13 +44,13 @@ export interface ChildrenProps<Light> extends RelationProps<Light> {
|
|
|
41
44
|
}
|
|
42
45
|
export declare const Children: <Light extends {
|
|
43
46
|
id: string;
|
|
44
|
-
}>({ label, desc, labelClassName, selectClassName, className, nullable, disabled, initArgs, slice, value, onChange, onSearch, sortOption, renderOption, renderSelected, }: ChildrenProps<Light>) => import("react").JSX.Element;
|
|
45
|
-
export interface ChildrenIdProps<Light> extends RelationProps<Light> {
|
|
47
|
+
}, Sort = unknown>({ label, desc, labelClassName, selectClassName, className, nullable, disabled, initArgs, limit, sort, slice, value, onChange, onSearch, sortOption, renderOption, renderSelected, }: ChildrenProps<Light, Sort>) => import("react").JSX.Element;
|
|
48
|
+
export interface ChildrenIdProps<Light, Sort = unknown> extends RelationProps<Light, Sort> {
|
|
46
49
|
value: string[] | null;
|
|
47
50
|
onChange: (value: string[]) => void;
|
|
48
51
|
renderOption: (model: Light) => ReactNode;
|
|
49
52
|
}
|
|
50
53
|
export declare const ChildrenId: <Light extends {
|
|
51
54
|
id: string;
|
|
52
|
-
}>({ label, desc, labelClassName, className, nullable, disabled, initArgs, slice, value, onChange, onSearch, sortOption, renderOption, }: ChildrenIdProps<Light>) => import("react").JSX.Element;
|
|
55
|
+
}, Sort = unknown>({ label, desc, labelClassName, className, nullable, disabled, initArgs, limit, sort, slice, value, onChange, onSearch, sortOption, renderOption, }: ChildrenIdProps<Light, Sort>) => import("react").JSX.Element;
|
|
53
56
|
export {};
|
|
@@ -28,14 +28,14 @@ export declare const Field: (({ className, containerClassName, labelClassName, l
|
|
|
28
28
|
Password: ({ label, desc, labelClassName, className, value, onChange, confirmValue, onChangeConfirm, placeholder, nullable, disabled, minlength, maxlength, transform, validate, onPressEnter, inputClassName, showConfirm, }: import("./Text.d.ts").PasswordProps) => import("react").JSX.Element;
|
|
29
29
|
Parent: <Light extends {
|
|
30
30
|
id: string;
|
|
31
|
-
}>({ label, desc, labelClassName, selectClassName, className, nullable, disabled, initArgs, slice, value, onChange, onSearch, sortOption, renderOption, renderSelected, }: import("./Relation.d.ts").ParentProps<Light>) => import("react").JSX.Element;
|
|
31
|
+
}, Sort = unknown>({ label, desc, labelClassName, selectClassName, className, nullable, disabled, initArgs, limit, sort, slice, value, onChange, onSearch, sortOption, renderOption, renderSelected, }: import("./Relation.d.ts").ParentProps<Light, Sort>) => import("react").JSX.Element;
|
|
32
32
|
ParentId: <Light extends {
|
|
33
33
|
id: string;
|
|
34
|
-
}>({ label, desc, className, selectClassName, labelClassName, nullable, disabled, initArgs, slice, value, onChange, onSearch, sortOption, renderOption, renderSelected, }: import("./Relation.d.ts").ParentIdProps<Light>) => import("react").JSX.Element;
|
|
34
|
+
}, Sort = unknown>({ label, desc, className, selectClassName, labelClassName, nullable, disabled, initArgs, limit, sort, slice, value, onChange, onSearch, sortOption, renderOption, renderSelected, }: import("./Relation.d.ts").ParentIdProps<Light, Sort>) => import("react").JSX.Element;
|
|
35
35
|
Children: <Light extends {
|
|
36
36
|
id: string;
|
|
37
|
-
}>({ label, desc, labelClassName, selectClassName, className, nullable, disabled, initArgs, slice, value, onChange, onSearch, sortOption, renderOption, renderSelected, }: import("./Relation.d.ts").ChildrenProps<Light>) => import("react").JSX.Element;
|
|
37
|
+
}, Sort = unknown>({ label, desc, labelClassName, selectClassName, className, nullable, disabled, initArgs, limit, sort, slice, value, onChange, onSearch, sortOption, renderOption, renderSelected, }: import("./Relation.d.ts").ChildrenProps<Light, Sort>) => import("react").JSX.Element;
|
|
38
38
|
ChildrenId: <Light extends {
|
|
39
39
|
id: string;
|
|
40
|
-
}>({ label, desc, labelClassName, className, nullable, disabled, initArgs, slice, value, onChange, onSearch, sortOption, renderOption, }: import("./Relation.d.ts").ChildrenIdProps<Light>) => import("react").JSX.Element;
|
|
40
|
+
}, Sort = unknown>({ label, desc, labelClassName, className, nullable, disabled, initArgs, limit, sort, slice, value, onChange, onSearch, sortOption, renderOption, }: import("./Relation.d.ts").ChildrenIdProps<Light, Sort>) => import("react").JSX.Element;
|
|
41
41
|
};
|
|
@@ -10,12 +10,14 @@ export interface RelationOptionsSource<Light extends {
|
|
|
10
10
|
/** Rows the control was handed outright, which a `Light`-valued field's own value already is. */
|
|
11
11
|
pinned?: (Light | null)[];
|
|
12
12
|
initArgs?: any[];
|
|
13
|
+
limit?: number;
|
|
14
|
+
sort?: string;
|
|
13
15
|
sortOption?: (a: Light, b: Light) => number;
|
|
14
16
|
renderOption?: (model: Light) => ReactNode;
|
|
15
17
|
}
|
|
16
18
|
export declare const useRelationOptions: <Light extends {
|
|
17
19
|
id: string;
|
|
18
|
-
}>({ slice, ids, pinned, initArgs, sortOption, renderOption, }: RelationOptionsSource<Light>) => {
|
|
20
|
+
}>({ slice, ids, pinned, initArgs, limit, sort, sortOption, renderOption, }: RelationOptionsSource<Light>) => {
|
|
19
21
|
models: DataList<Light>;
|
|
20
22
|
options: {
|
|
21
23
|
label: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DataList } from "akanjs/base";
|
|
2
|
+
export interface RelationWindowQuery {
|
|
3
|
+
queryArgs: unknown[];
|
|
4
|
+
limit: number;
|
|
5
|
+
sort: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const useRelationWindow: <Light extends {
|
|
8
|
+
id: string;
|
|
9
|
+
}>(listName: string, argLength: number) => {
|
|
10
|
+
list: DataList<Light>;
|
|
11
|
+
loading: boolean;
|
|
12
|
+
load: (query: RelationWindowQuery) => Promise<void>;
|
|
13
|
+
read: () => DataList<Light>;
|
|
14
|
+
};
|
package/types/ui/Image.d.ts
CHANGED
|
@@ -7,14 +7,16 @@ type ImageLikeFile = ProtoLightFile | {
|
|
|
7
7
|
} | null;
|
|
8
8
|
type NativeImageProps = Omit<ImgHTMLAttributes<HTMLImageElement>, "alt" | "src" | "srcSet"> & {
|
|
9
9
|
fill?: boolean;
|
|
10
|
+
/** Accepted for next/image compatibility; an `<img>` has no such attribute, so it draws nothing. */
|
|
10
11
|
placeholder?: string;
|
|
12
|
+
/** Accepted for next/image compatibility; an `<img>` has no such attribute, so it draws nothing. */
|
|
11
13
|
blurDataURL?: string;
|
|
12
14
|
};
|
|
13
15
|
type AkanImageProps = NativeImageProps & {
|
|
14
16
|
/** Takes precedence over `file.url`. */
|
|
15
17
|
src?: string;
|
|
16
18
|
file?: ImageLikeFile;
|
|
17
|
-
/** Overrides `file.abstractData
|
|
19
|
+
/** Overrides `file.abstractData`, which no render path draws as a placeholder. */
|
|
18
20
|
abstractData?: string | null;
|
|
19
21
|
/** Defaults to "image". */
|
|
20
22
|
alt?: string;
|
package/types/ui/Load/View.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ClientView } from "akanjs/fetch";
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
|
-
interface DefaultProps<
|
|
3
|
+
interface DefaultProps<_T extends string, M> {
|
|
4
4
|
className?: string;
|
|
5
5
|
/** Renders the model without the default wrapper div. */
|
|
6
6
|
noDiv?: boolean;
|
package/types/ui/Pagination.d.ts
CHANGED
|
@@ -21,5 +21,5 @@ export interface PaginationProps {
|
|
|
21
21
|
pageNumClassName?: string;
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
export declare const DefaultPagination: ({ currentPage, total, onPageSelect, itemsPerPage, empty, renderEmpty, prev, next, ellipsis, classNames, }: PaginationProps) => import("react").JSX.Element | null;
|
|
24
|
+
export declare const DefaultPagination: ({ currentPage, total, onPageSelect, itemsPerPage, empty, renderEmpty, prev, next, ellipsis, classNames, }: PaginationProps) => string | number | bigint | true | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null;
|
|
25
25
|
export declare const Pagination: import("react").ComponentType<PaginationProps>;
|
package/types/ui/Signal/Arg.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ interface ArgProps {
|
|
|
6
6
|
value: any;
|
|
7
7
|
onChange: (value: any) => void;
|
|
8
8
|
}
|
|
9
|
-
declare function Arg({ argType, value, onChange }: ArgProps): import("react").JSX.Element;
|
|
9
|
+
declare function Arg({ argType, value, onChange }: ArgProps): import("react").JSX.Element | null;
|
|
10
10
|
declare namespace Arg {
|
|
11
11
|
var Table: ({ refName, endpointKey, args }: ArgTableProps) => import("react").JSX.Element;
|
|
12
12
|
var Param: ({ endpointKey, arg, value, onChange }: ArgParamProps) => import("react").JSX.Element;
|
package/types/ui/System/CSR.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const CSR: {
|
|
|
7
7
|
}): import("react").JSX.Element;
|
|
8
8
|
Provider: ({ className, appName, params, head, manifest, env, theme, viewport, prefix, children, fonts, layoutStyle, reconnect, wsConnect, of, }: CSRProviderProps) => import("react").JSX.Element;
|
|
9
9
|
Wrapper: ({ children, lang, head, manifest, fonts, appName, className, prefix, layoutStyle, }: CSRWrapperProps) => import("react").JSX.Element;
|
|
10
|
-
Inner: () =>
|
|
10
|
+
Inner: () => null;
|
|
11
11
|
Bridge: ({ lang, prefix }: CSRBridgeProps) => null;
|
|
12
12
|
};
|
|
13
13
|
export type CSRProviderProps = ProviderProps & {
|
|
@@ -3,7 +3,7 @@ import type { AkanTheme } from "akanjs/fetch";
|
|
|
3
3
|
import type { SerializedSignal } from "akanjs/signal";
|
|
4
4
|
import { type HTMLAttributes, type ReactNode, type RefObject } from "react";
|
|
5
5
|
export declare const Client: {
|
|
6
|
-
():
|
|
6
|
+
(): null;
|
|
7
7
|
Wrapper: ({ children, theme, lang, path, dictionary, signals, reconnect, }: ClientWrapperProps) => import("react").JSX.Element;
|
|
8
8
|
Bridge: ({ env, lang, theme, viewport, prefix, wsConnect }: ClientBridgeProps) => null;
|
|
9
9
|
Inner: () => import("react").JSX.Element;
|
package/types/ui/System/SSR.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { type PageState, type ReactFont } from "akanjs/client";
|
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
3
|
import { type ProviderProps } from "./Common.d.ts";
|
|
4
4
|
export declare const SSR: {
|
|
5
|
-
():
|
|
5
|
+
(): null;
|
|
6
6
|
Provider: ({ className, appName, params, head, env, children, theme, viewport, prefix, fonts, layoutStyle, reconnect, wsConnect, dictionary, allDictionary, of, }: SSRProviderProps) => import("react").JSX.Element;
|
|
7
7
|
Wrapper: ({ children, head, fonts, className, lang, path, prefix, layoutStyle, pageState, }: SSRWrapperProps) => import("react").JSX.Element;
|
|
8
8
|
};
|
|
@@ -58,10 +58,10 @@ type WithOptions<F> = F extends (...args: infer P) => infer R ? (...args: P exte
|
|
|
58
58
|
export type PluginMethods<Api> = {
|
|
59
59
|
[K in keyof Api]: Api[K] & WithOptions<Api[K]>;
|
|
60
60
|
};
|
|
61
|
-
export type Plugin<Api, Events =
|
|
61
|
+
export type Plugin<Api, Events = Record<never, never>> = PluginMethods<Api> & PluginHandle<Api, Events>;
|
|
62
62
|
/** Identity helper that gives web implementations their types. */
|
|
63
|
-
export declare function defineWebPlugin<Api, Events =
|
|
64
|
-
export declare function definePlugin<Api extends object, Events extends object =
|
|
63
|
+
export declare function defineWebPlugin<Api, Events = Record<never, never>>(impl: WebPlugin<Api, Events>): WebPlugin<Api, Events>;
|
|
64
|
+
export declare function definePlugin<Api extends object, Events extends object = Record<never, never>>(id: string, options: PluginOptions<Api, Events>): Plugin<Api, Events>;
|
|
65
65
|
/**
|
|
66
66
|
* Dev builds: why `value` would not survive the JSON trip to a native host, or null. JSON would
|
|
67
67
|
* silently turn these into something else (a Date into a string, a Map into {}, NaN into null) or
|
|
@@ -14,4 +14,4 @@ export interface PageVeto<D> {
|
|
|
14
14
|
/** The plugin method the pages answer with: { id, allow? }, from `window` (ctx.window). */
|
|
15
15
|
answer(args: unknown, window?: number): void;
|
|
16
16
|
}
|
|
17
|
-
export declare function createPageVeto<D extends object =
|
|
17
|
+
export declare function createPageVeto<D extends object = Record<never, never>>(ackTimeout?: number): PageVeto<D>;
|
|
@@ -219,4 +219,4 @@ export declare function externalOpenAllowed(now?: number): boolean;
|
|
|
219
219
|
export declare function useShellOpenLimit(limiter: () => boolean): void;
|
|
220
220
|
/** Unit tests only: plugins' tests open many URLs in a row. */
|
|
221
221
|
export declare function limitExternalOpens(enabled: boolean): void;
|
|
222
|
-
export declare function defineDesktopPlugin<Api, Events =
|
|
222
|
+
export declare function defineDesktopPlugin<Api, Events = Record<never, never>>(plugin: DesktopPlugin<Api, Events>): DesktopPlugin<Api, Events>;
|
|
@@ -12,6 +12,6 @@ export declare function createDesktopAuthSession(options?: {
|
|
|
12
12
|
plist?: () => string | null;
|
|
13
13
|
timeoutMs?: number;
|
|
14
14
|
platform?: NodeJS.Platform;
|
|
15
|
-
}): import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<AuthSessionApi,
|
|
16
|
-
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<AuthSessionApi,
|
|
15
|
+
}): import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<AuthSessionApi, Record<never, never>>;
|
|
16
|
+
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<AuthSessionApi, Record<never, never>>;
|
|
17
17
|
export default _default;
|
|
@@ -38,4 +38,4 @@ export interface AuthSessionApi {
|
|
|
38
38
|
url: string;
|
|
39
39
|
}>;
|
|
40
40
|
}
|
|
41
|
-
export declare const authSession: import("../../../packages/core/src/plugin.ts").Plugin<AuthSessionApi,
|
|
41
|
+
export declare const authSession: import("../../../packages/core/src/plugin.ts").Plugin<AuthSessionApi, Record<never, never>>;
|
|
@@ -39,6 +39,6 @@ export declare function createDesktopAutostart(platform?: NodeJS.Platform, linux
|
|
|
39
39
|
status: (ctx: DesktopContext) => ShellAnswer;
|
|
40
40
|
enable(ctx: DesktopContext): ShellAnswer;
|
|
41
41
|
disable(ctx: DesktopContext): ShellAnswer;
|
|
42
|
-
}): import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<AutostartApi,
|
|
43
|
-
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<AutostartApi,
|
|
42
|
+
}): import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<AutostartApi, Record<never, never>>;
|
|
43
|
+
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<AutostartApi, Record<never, never>>;
|
|
44
44
|
export default _default;
|
|
@@ -41,4 +41,4 @@ export interface AutostartApi {
|
|
|
41
41
|
/** Opens System Settings at Login Items, or Settings › Apps › Startup on Windows (to switch a "requiresApproval" item back on). */
|
|
42
42
|
openSettings(): Promise<void>;
|
|
43
43
|
}
|
|
44
|
-
export declare const autostart: import("../../../packages/core/src/plugin.ts").Plugin<AutostartApi,
|
|
44
|
+
export declare const autostart: import("../../../packages/core/src/plugin.ts").Plugin<AutostartApi, Record<never, never>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { BadgeApi } from "./index.ts";
|
|
2
|
-
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<BadgeApi,
|
|
2
|
+
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<BadgeApi, Record<never, never>>;
|
|
3
3
|
export default _default;
|
|
@@ -34,4 +34,4 @@ export interface BadgeApi {
|
|
|
34
34
|
badge: PermissionState;
|
|
35
35
|
}>;
|
|
36
36
|
}
|
|
37
|
-
export declare const badge: import("../../../packages/core/src/plugin.ts").Plugin<BadgeApi,
|
|
37
|
+
export declare const badge: import("../../../packages/core/src/plugin.ts").Plugin<BadgeApi, Record<never, never>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { BadgeApi } from "./index.ts";
|
|
2
|
-
export declare const web: import("../../../packages/core/src/plugin.ts").WebPlugin<BadgeApi,
|
|
2
|
+
export declare const web: import("../../../packages/core/src/plugin.ts").WebPlugin<BadgeApi, Record<never, never>>;
|
|
@@ -48,6 +48,6 @@ export interface BiometricApi {
|
|
|
48
48
|
isAvailable(): Promise<BiometricStatus>;
|
|
49
49
|
authenticate(options: AuthenticateOptions): Promise<void>;
|
|
50
50
|
}
|
|
51
|
-
export declare const biometric: import("../../../packages/core/src/plugin.ts").Plugin<BiometricApi,
|
|
51
|
+
export declare const biometric: import("../../../packages/core/src/plugin.ts").Plugin<BiometricApi, Record<never, never>>;
|
|
52
52
|
/** The biometric status, or null while it loads and where the platform has no biometric plugin (web, macOS). */
|
|
53
53
|
export declare function useBiometricStatus(): BiometricStatus | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CameraApi, PermissionState } from "./index.ts";
|
|
2
2
|
/** AVAuthorizationStatus: 0 notDetermined, 1 restricted, 2 denied, 3 authorized. */
|
|
3
3
|
export declare function permissionState(status: unknown): PermissionState;
|
|
4
|
-
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<CameraApi,
|
|
4
|
+
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<CameraApi, Record<never, never>>;
|
|
5
5
|
export default _default;
|
|
@@ -43,7 +43,7 @@ export interface CameraApi {
|
|
|
43
43
|
camera: PermissionState;
|
|
44
44
|
}>;
|
|
45
45
|
}
|
|
46
|
-
export declare const camera: import("../../../packages/core/src/plugin.ts").Plugin<CameraApi,
|
|
46
|
+
export declare const camera: import("../../../packages/core/src/plugin.ts").Plugin<CameraApi, Record<never, never>>;
|
|
47
47
|
export interface UseCamera {
|
|
48
48
|
supported: boolean;
|
|
49
49
|
photo: Photo | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { CameraApi } from "./index.ts";
|
|
2
|
-
export declare const web: import("../../../packages/core/src/plugin.ts").WebPlugin<CameraApi,
|
|
2
|
+
export declare const web: import("../../../packages/core/src/plugin.ts").WebPlugin<CameraApi, Record<never, never>>;
|
|
@@ -3,6 +3,6 @@ import type { ClipboardApi } from "./index.ts";
|
|
|
3
3
|
* `pasteboard` is a pbcopy -pboard name; tests use "ruler" to leave the user's clipboard alone.
|
|
4
4
|
* `platform` lets tests check the shell ops of Windows and Linux on any OS.
|
|
5
5
|
*/
|
|
6
|
-
export declare function createDesktopClipboard(pasteboard?: "general" | "ruler" | "find" | "font", platform?: NodeJS.Platform): import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<ClipboardApi,
|
|
7
|
-
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<ClipboardApi,
|
|
6
|
+
export declare function createDesktopClipboard(pasteboard?: "general" | "ruler" | "find" | "font", platform?: NodeJS.Platform): import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<ClipboardApi, Record<never, never>>;
|
|
7
|
+
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<ClipboardApi, Record<never, never>>;
|
|
8
8
|
export default _default;
|
|
@@ -21,7 +21,7 @@ export interface ClipboardApi {
|
|
|
21
21
|
text: string;
|
|
22
22
|
}>;
|
|
23
23
|
}
|
|
24
|
-
export declare const clipboard: import("../../../packages/core/src/plugin.ts").Plugin<ClipboardApi,
|
|
24
|
+
export declare const clipboard: import("../../../packages/core/src/plugin.ts").Plugin<ClipboardApi, Record<never, never>>;
|
|
25
25
|
export interface UseClipboard {
|
|
26
26
|
supported: boolean;
|
|
27
27
|
/** True for `resetAfter` ms after a successful copy, for "Copied" feedback next to the button. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ClipboardApi } from "./index.ts";
|
|
2
|
-
export declare const web: import("../../../packages/core/src/plugin.ts").WebPlugin<ClipboardApi,
|
|
2
|
+
export declare const web: import("../../../packages/core/src/plugin.ts").WebPlugin<ClipboardApi, Record<never, never>>;
|
|
@@ -40,4 +40,4 @@ export interface ContactsApi {
|
|
|
40
40
|
contacts: Contact[];
|
|
41
41
|
}>;
|
|
42
42
|
}
|
|
43
|
-
export declare const contacts: import("../../../packages/core/src/plugin.ts").Plugin<ContactsApi,
|
|
43
|
+
export declare const contacts: import("../../../packages/core/src/plugin.ts").Plugin<ContactsApi, Record<never, never>>;
|
|
@@ -28,6 +28,6 @@ export declare function posixLanguage(env: Record<string, string | undefined>):
|
|
|
28
28
|
/** Vendor and product names of hypervisors in DMI/SMBIOS (QEMU, KVM, VMware, VirtualBox, Hyper-V, Parallels, Xen, Apple's Virtualization framework). */
|
|
29
29
|
export declare function isVirtualMachine(manufacturer: string, model: string): boolean;
|
|
30
30
|
/** `platform` and `root` (prefix of /sys, /proc) are replaceable so tests can read a fake Linux on any OS. */
|
|
31
|
-
export declare function createDesktopDevice(platform?: NodeJS.Platform, root?: string, env?: Record<string, string | undefined>): import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<DeviceApi,
|
|
32
|
-
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<DeviceApi,
|
|
31
|
+
export declare function createDesktopDevice(platform?: NodeJS.Platform, root?: string, env?: Record<string, string | undefined>): import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<DeviceApi, Record<never, never>>;
|
|
32
|
+
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<DeviceApi, Record<never, never>>;
|
|
33
33
|
export default _default;
|
|
@@ -50,6 +50,6 @@ export interface DeviceApi {
|
|
|
50
50
|
/** Rejects UNSUPPORTED where the host cannot read the battery (Safari, Firefox). */
|
|
51
51
|
getBattery(): Promise<BatteryInfo>;
|
|
52
52
|
}
|
|
53
|
-
export declare const device: import("../../../packages/core/src/plugin.ts").Plugin<DeviceApi,
|
|
53
|
+
export declare const device: import("../../../packages/core/src/plugin.ts").Plugin<DeviceApi, Record<never, never>>;
|
|
54
54
|
/** Device information, or null until it has loaded. */
|
|
55
55
|
export declare function useDeviceInfo(): DeviceInfo | null;
|
|
@@ -18,5 +18,5 @@ interface HighEntropyValues {
|
|
|
18
18
|
}
|
|
19
19
|
/** Applies Client Hints on top of the user agent fields. */
|
|
20
20
|
export declare function applyClientHints(fields: UserAgentFields, hints: HighEntropyValues): UserAgentFields;
|
|
21
|
-
export declare const web: import("../../../packages/core/src/plugin.ts").WebPlugin<DeviceApi,
|
|
21
|
+
export declare const web: import("../../../packages/core/src/plugin.ts").WebPlugin<DeviceApi, Record<never, never>>;
|
|
22
22
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DialogApi } from "./index.ts";
|
|
2
|
-
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<DialogApi,
|
|
2
|
+
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<DialogApi, Record<never, never>>;
|
|
3
3
|
export default _default;
|
|
@@ -52,7 +52,7 @@ export interface DialogApi {
|
|
|
52
52
|
prompt(options: PromptOptions): Promise<PromptResult>;
|
|
53
53
|
actionSheet(options: ActionSheetOptions): Promise<ActionSheetResult>;
|
|
54
54
|
}
|
|
55
|
-
export declare const dialog: import("../../../packages/core/src/plugin.ts").Plugin<DialogApi,
|
|
55
|
+
export declare const dialog: import("../../../packages/core/src/plugin.ts").Plugin<DialogApi, Record<never, never>>;
|
|
56
56
|
export interface UseDialog extends DialogApi {
|
|
57
57
|
supported: boolean;
|
|
58
58
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { DialogApi } from "./index.ts";
|
|
2
|
-
export declare const web: import("../../../packages/core/src/plugin.ts").WebPlugin<DialogApi,
|
|
2
|
+
export declare const web: import("../../../packages/core/src/plugin.ts").WebPlugin<DialogApi, Record<never, never>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DockApi } from "./index.ts";
|
|
2
|
-
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<DockApi,
|
|
2
|
+
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<DockApi, Record<never, never>>;
|
|
3
3
|
export default _default;
|
|
@@ -43,4 +43,4 @@ export interface DockApi {
|
|
|
43
43
|
}): Promise<DockState>;
|
|
44
44
|
getState(): Promise<DockState>;
|
|
45
45
|
}
|
|
46
|
-
export declare const dock: import("../../../packages/core/src/plugin.ts").Plugin<DockApi,
|
|
46
|
+
export declare const dock: import("../../../packages/core/src/plugin.ts").Plugin<DockApi, Record<never, never>>;
|
|
@@ -4,6 +4,6 @@ export declare function listFiles(dir: string, limit: number): {
|
|
|
4
4
|
files: string[];
|
|
5
5
|
truncated: boolean;
|
|
6
6
|
};
|
|
7
|
-
export declare function createDesktopFilePicker(): import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<FilePickerApi,
|
|
8
|
-
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<FilePickerApi,
|
|
7
|
+
export declare function createDesktopFilePicker(): import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<FilePickerApi, Record<never, never>>;
|
|
8
|
+
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<FilePickerApi, Record<never, never>>;
|
|
9
9
|
export default _default;
|
|
@@ -3,4 +3,4 @@ import type { FilePickerApi, PickDirectoryResult } from "./index.ts";
|
|
|
3
3
|
export declare function acceptAttribute(types: string[]): string;
|
|
4
4
|
/** What pickDirectory makes of the files an <input webkitdirectory> returns. */
|
|
5
5
|
export declare function directoryResult(files: File[], limit: number): PickDirectoryResult;
|
|
6
|
-
export declare const web: import("../../../packages/core/src/plugin.ts").WebPlugin<FilePickerApi,
|
|
6
|
+
export declare const web: import("../../../packages/core/src/plugin.ts").WebPlugin<FilePickerApi, Record<never, never>>;
|
|
@@ -3,6 +3,6 @@ import type { BaseDirectory, FilesystemApi } from "./index.ts";
|
|
|
3
3
|
type Dirs = Record<BaseDirectory, string>;
|
|
4
4
|
/** The base folders for an app. Windows and Linux are unverified until those milestones. */
|
|
5
5
|
export declare function baseDirs(ctx: Pick<DesktopContext, "app" | "appDataDir">, platform?: NodeJS.Platform, env?: NodeJS.ProcessEnv, home?: string, tmp?: string): Dirs;
|
|
6
|
-
export declare function createDesktopFilesystem(dirsFor?: (ctx: DesktopContext) => Dirs): import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<FilesystemApi,
|
|
7
|
-
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<FilesystemApi,
|
|
6
|
+
export declare function createDesktopFilesystem(dirsFor?: (ctx: DesktopContext) => Dirs): import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<FilesystemApi, Record<never, never>>;
|
|
7
|
+
declare const _default: import("../../../packages/desktop/src/plugin.ts").DesktopPlugin<FilesystemApi, Record<never, never>>;
|
|
8
8
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { FilesystemApi } from "./index.ts";
|
|
2
|
-
export declare const web: import("../../../packages/core/src/plugin.ts").WebPlugin<FilesystemApi,
|
|
2
|
+
export declare const web: import("../../../packages/core/src/plugin.ts").WebPlugin<FilesystemApi, Record<never, never>>;
|
|
@@ -28,4 +28,4 @@ export interface HapticsApi {
|
|
|
28
28
|
duration?: number;
|
|
29
29
|
}): Promise<void>;
|
|
30
30
|
}
|
|
31
|
-
export declare const haptics: import("../../../packages/core/src/plugin.ts").Plugin<HapticsApi,
|
|
31
|
+
export declare const haptics: import("../../../packages/core/src/plugin.ts").Plugin<HapticsApi, Record<never, never>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { HapticsApi } from "./index.ts";
|
|
2
|
-
export declare const web: import("../../../packages/core/src/plugin.ts").WebPlugin<HapticsApi,
|
|
2
|
+
export declare const web: import("../../../packages/core/src/plugin.ts").WebPlugin<HapticsApi, Record<never, never>>;
|