akanjs 3.2.0-rc.2 → 3.2.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/ARCHITECTURE.md +42 -41
- package/CHANGELOG.md +593 -3
- package/CONTRIBUTING.md +26 -0
- package/base/base.ts +2 -1
- package/client/clientRuntime.ts +1 -0
- package/client/cn.ts +2 -2
- package/client/csrTypes.ts +15 -1
- package/client/frameConfig.ts +5 -2
- package/client/index.ts +249 -26
- package/client/locale.ts +1 -0
- package/client/makePageProto.tsx +33 -82
- package/client/nativeThemeColor.ts +51 -0
- package/client/route/RouteDefinition.ts +24 -7
- package/client/route/RouteGuards.ts +2 -1
- package/client/route/RouteHead.ts +11 -2
- package/client/route/routeArgs.ts +7 -0
- package/client/router.ts +25 -6
- package/client/rscNavigation.ts +3 -3
- package/client/rscRoutePatch.ts +42 -0
- package/client/viewportMeta.ts +34 -4
- package/common/CodeTranscript.ts +1 -1
- package/common/PipelinePlanSchema.ts +2 -2
- package/common/akanGraph.ts +1 -1
- package/common/err.ts +122 -0
- package/common/facetBarrel.ts +38 -0
- package/common/failureCode.ts +18 -0
- package/common/index.ts +9 -0
- package/common/isGuardRefusal.ts +14 -0
- package/common/mcpExposure.ts +17 -4
- package/common/mcpFailure.ts +9 -0
- package/common/pipelinePlan.ts +1 -1
- package/common/restartSchedule.ts +55 -0
- package/common/routeConvention.ts +3 -1
- package/common/types.ts +18 -1
- package/constant/constantRegistry.ts +4 -8
- package/constant/crystalize.ts +1 -2
- package/constant/getDefault.ts +1 -1
- package/constant/immerify.ts +1 -1
- package/constant/index.ts +78 -21
- package/constant/purify.ts +4 -9
- package/constant/serialize.ts +4 -2
- package/constant/types.ts +1 -0
- package/constant/via.ts +1 -2
- package/dictionary/agent.dictionary.ts +4 -0
- package/dictionary/base.dictionary.ts +1 -0
- package/dictionary/locale.ts +1 -1
- package/dictionary/trans.ts +14 -97
- package/document/databaseRegistry.ts +2 -1
- package/document/documentSchema.ts +1 -0
- package/document/filterMeta.ts +4 -1
- package/document/into.ts +2 -1
- package/document/loaderInfo.ts +2 -1
- package/document/noDocumentError.ts +4 -1
- package/document/queryEvaluator.ts +1 -1
- package/document/types.ts +1 -1
- package/fetch/client/fetchClient.ts +87 -270
- package/fetch/client/fetchClientTypes.ts +49 -0
- package/fetch/client/fetchHandle.ts +11 -1
- package/fetch/client/httpClient.ts +14 -2
- package/fetch/client/inflightQueries.ts +17 -0
- package/fetch/client/remoteError.ts +4 -20
- package/fetch/client/requestScope.ts +32 -0
- package/fetch/client/signalCatalog.ts +131 -0
- package/fetch/client/wsClient.ts +11 -0
- package/fetch/index.ts +1 -0
- package/fetch/staleReads.ts +27 -0
- package/fetch/streamedRead.ts +23 -0
- package/package.json +1 -1
- package/server/agentHooks.ts +16 -0
- package/server/akanApp.ts +107 -1272
- package/server/akanOption.ts +17 -4
- package/server/akanServer.ts +167 -675
- package/server/artifact/builderRpc.ts +33 -10
- package/server/artifact/ipcTypes.ts +9 -3
- package/server/artifact/routeSeedIndexStore.ts +4 -2
- package/server/assetHeaders.ts +6 -0
- package/server/console.ts +6 -4
- package/server/decorators.ts +2 -2
- package/server/devtools/README.md +4 -3
- package/server/devtools/devtoolsRouter.ts +9 -5
- package/server/devtools/studio/studioRoute.ts +18 -11
- package/server/di/diLifecycle.ts +24 -35
- package/server/di/predefinedAdaptor.ts +24 -1
- package/server/di/resolveHierarchy.ts +19 -6
- package/server/di/utils.ts +7 -3
- package/server/ed25519Key.ts +31 -15
- package/server/flightRowReader.ts +95 -18
- package/server/gateway/childSupervisor.ts +326 -0
- package/server/gateway/devHostChannel.ts +47 -0
- package/server/gateway/gatewayChildren.ts +135 -0
- package/server/gateway/gatewayConfig.ts +182 -0
- package/server/gateway/gatewayHttpProxy.ts +231 -0
- package/server/gateway/gatewayLogging.ts +111 -0
- package/server/gateway/gatewayRooms.ts +141 -0
- package/server/gateway/gatewayStatus.ts +116 -0
- package/server/gateway/gatewayStatusPage.ts +54 -0
- package/server/gateway/gatewayWebSocketRelay.ts +149 -0
- package/server/head.tsx +4 -19
- package/server/hmr/devHmrController.ts +10 -1
- package/server/htmlResultCache.ts +234 -0
- package/server/imageOptimizer.ts +4 -1
- package/server/index.ts +257 -17
- package/server/lifecycle/parentChannel.ts +78 -0
- package/server/lifecycle/shutdownManager.ts +6 -3
- package/server/lifecycle/startGuard.ts +90 -0
- package/server/logging/logControlSocket.ts +42 -3
- package/server/logging/serverLogging.ts +74 -0
- package/server/machine/machineToken.ts +10 -3
- package/server/mcp/AgentTools.ts +149 -0
- package/server/mcp/AgentToolsAccount.ts +26 -0
- package/server/mcp/McpDispatcher.ts +48 -19
- package/server/mcp/McpPages.ts +21 -6
- package/server/mcp/McpRateLimiter.ts +14 -0
- package/server/mcp/McpRouter.ts +52 -23
- package/server/mcp/McpUiSession.ts +2 -1
- package/server/mcp/index.ts +1 -0
- package/server/nativeFile.ts +30 -11
- package/server/nativeSecret.ts +12 -3
- package/server/oauth/OAuthClientIdMetadata.ts +2 -2
- package/server/ops/opsRoute.ts +5 -1
- package/server/ops/opsToken.ts +3 -1
- package/server/resolver/CascadeRunner.ts +10 -4
- package/server/resolver/database.resolver.ts +10 -417
- package/server/resolver/databaseModelInstance.ts +200 -0
- package/server/resolver/invalidSignal.ts +7 -0
- package/server/resolver/livePause.ts +34 -0
- package/server/resolver/modelFacade.ts +136 -0
- package/server/resolver/modelLoaders.ts +52 -0
- package/server/resolver/modelSchema.ts +52 -0
- package/server/resolver/signal.resolver.ts +92 -116
- package/server/resolver/timedQuery.ts +16 -0
- package/server/resolver/websocketOf.ts +23 -0
- package/server/routeElementComposer.tsx +131 -9
- package/server/routeState.ts +5 -1
- package/server/routeTreeBuilder.ts +22 -9
- package/server/routing/apiRouter.ts +44 -25
- package/server/routing/builtinRoutes.ts +194 -0
- package/server/routing/localRooms.ts +34 -0
- package/server/routing/roomReplay.ts +2 -2
- package/server/routing/serverLimits.ts +4 -1
- package/server/routing/serverListener.ts +194 -0
- package/server/rscClient.tsx +210 -227
- package/server/rscClientCache.ts +165 -0
- package/server/rscClientChunks.ts +209 -0
- package/server/rscClientFetch.ts +15 -3
- package/server/rscClientPatch.ts +78 -15
- package/server/rscDocumentHead.tsx +170 -0
- package/server/rscFlightRenderer.ts +83 -0
- package/server/rscFlightStream.ts +257 -0
- package/server/rscHeadPatch.ts +17 -56
- package/server/rscHostReloads.ts +238 -0
- package/server/rscHostRenderStream.ts +297 -0
- package/server/rscHostRequests.ts +158 -0
- package/server/rscHttp.ts +18 -6
- package/server/rscInlineStream.ts +34 -0
- package/server/rscNavigationState.ts +21 -1
- package/server/rscPagePrompts.ts +11 -5
- package/server/rscParkedRedirect.ts +23 -0
- package/server/rscPatchPlanner.ts +220 -0
- package/server/rscPrefetchCache.ts +68 -32
- package/server/rscRenderControl.ts +33 -0
- package/server/rscRenderFallbacks.ts +297 -0
- package/server/rscRenderHandler.ts +439 -0
- package/server/rscRenderStats.ts +49 -0
- package/server/rscResponse.ts +78 -0
- package/server/rscResultCaches.ts +74 -0
- package/server/rscRouteDocument.tsx +299 -0
- package/server/rscSegmentOutlet.tsx +24 -5
- package/server/rscSegmentOutletReference.ts +14 -12
- package/server/rscWorker.tsx +86 -1392
- package/server/rscWorkerCache.ts +56 -0
- package/server/rscWorkerHost.ts +145 -811
- package/server/rscWorkerProcess.ts +155 -0
- package/server/rscWorkerRecycler.ts +128 -0
- package/server/serverConfig.ts +128 -0
- package/server/serverMetrics.ts +52 -0
- package/server/sitemap.ts +1 -0
- package/server/ssrFromRscRenderer.tsx +20 -20
- package/server/ssrTypes.ts +9 -0
- package/server/webArtifact.ts +86 -0
- package/server/webAssetRoutes.ts +84 -0
- package/server/webCsrSurface.ts +172 -0
- package/server/webDocumentRoute.ts +180 -0
- package/server/webRouteContext.ts +232 -0
- package/server/webRouter.ts +126 -1242
- package/server/webRscRoute.ts +155 -0
- package/server/webSiteFiles.ts +139 -0
- package/server/wellKnownRoutes.ts +73 -0
- package/service/agent.service.ts +59 -5
- package/service/agentAccounts.ts +19 -0
- package/service/agentLoop/agentLoop.ts +387 -0
- package/service/agentLoop/agentLoopTypes.ts +112 -0
- package/service/agentLoop/deltaStream.ts +40 -0
- package/service/agentLoop/loopCompaction.ts +135 -0
- package/service/agentLoop/loopRequest.ts +62 -0
- package/service/agentLoop/loopToolOutput.ts +54 -0
- package/service/agentLoop/loopToolkits.ts +107 -0
- package/service/agentLoop/loopTranscript.ts +102 -0
- package/{signal → service}/agentMeter.ts +83 -15
- package/{signal → service}/agentRelayPolicy.ts +30 -7
- package/service/documentStoreError.ts +16 -0
- package/service/index.ts +7 -0
- package/service/injectError.ts +5 -0
- package/service/injectInfo.ts +30 -18
- package/service/insightQueryError.ts +19 -0
- package/service/ipcTypes.ts +3 -1
- package/service/liveSyncHub.ts +5 -2
- package/service/predefinedAdaptor/agentTools.adaptor.ts +34 -0
- package/service/predefinedAdaptor/anthropicLlm.ts +52 -21
- package/service/predefinedAdaptor/cache.adaptor.ts +3 -2
- package/service/predefinedAdaptor/compress.adaptor.ts +7 -3
- package/service/predefinedAdaptor/database.adaptor.ts +3 -1
- package/service/predefinedAdaptor/documentTransfer.ts +2 -1
- package/service/predefinedAdaptor/index.ts +2 -0
- package/service/predefinedAdaptor/insightQuery.ts +35 -11
- package/service/predefinedAdaptor/llm.adaptor.ts +22 -2
- package/service/predefinedAdaptor/llmSpend.ts +80 -0
- package/service/predefinedAdaptor/openaiDialect.ts +52 -17
- package/service/predefinedAdaptor/openaiLlm.ts +17 -9
- package/service/predefinedAdaptor/role.adaptor.ts +2 -0
- package/service/predefinedAdaptor/searchIndex.ts +5 -1
- package/service/predefinedAdaptor/solidPubsub.adaptor.ts +35 -2
- package/service/predefinedAdaptor/solidQueue.adaptor.ts +2 -2
- package/service/predefinedAdaptor/solidSqlite.ts +3 -2
- package/service/predefinedAdaptor/sql/DocumentHydrator.ts +95 -0
- package/service/predefinedAdaptor/sql/DocumentRowCodec.ts +192 -0
- package/service/predefinedAdaptor/sql/DocumentWriter.ts +292 -0
- package/service/predefinedAdaptor/sql/PostgresInsightSession.ts +15 -5
- package/service/predefinedAdaptor/sql/QueryCompiler.ts +29 -13
- package/service/predefinedAdaptor/sql/QueryScope.ts +70 -0
- package/service/predefinedAdaptor/sql/QueryWriter.ts +200 -0
- package/service/predefinedAdaptor/sql/RawDocumentTable.ts +20 -8
- package/service/predefinedAdaptor/sql/SqlDocumentStore.ts +83 -1124
- package/service/predefinedAdaptor/sql/SqlTableSchema.ts +319 -0
- package/service/predefinedAdaptor/sql/SqliteInsightSession.ts +2 -1
- package/service/predefinedAdaptor/sql/StoredRows.ts +95 -0
- package/service/predefinedAdaptor/sql/UpdateCompiler.ts +6 -2
- package/service/predefinedAdaptor/sql/driver/bunSqlite.ts +3 -3
- package/service/predefinedAdaptor/sql/driver/postgres.ts +1 -1
- package/service/predefinedAdaptor/sql/fieldValues.ts +74 -0
- package/service/predefinedAdaptor/sql/search/fts5.ts +4 -1
- package/service/predefinedAdaptor/sql/search/postgres.ts +6 -2
- package/service/predefinedAdaptor/sql/values.ts +8 -4
- package/service/predefinedAdaptor/sseData.ts +14 -0
- package/service/predefinedAdaptor/storage.adaptor.ts +9 -4
- package/service/predefinedAdaptor/websocket.adaptor.ts +199 -43
- package/service/serve.ts +3 -2
- package/service/serviceModule.ts +2 -2
- package/service/serviceRegistry.ts +1 -0
- package/signal/SignalFailure.ts +30 -1
- package/signal/agent.signal.ts +30 -9
- package/signal/agentTurnStream.ts +12 -8
- package/signal/byIdRead.ts +18 -0
- package/signal/carriedClientIps.ts +1 -0
- package/signal/endpointErrorContract.ts +20 -2
- package/signal/endpointInfo.ts +6 -5
- package/signal/exception.ts +1 -0
- package/signal/index.ts +314 -30
- package/signal/internalInfo.ts +6 -4
- package/signal/mcp/McpDocument.ts +8 -1
- package/signal/mcp/Msg.ts +23 -10
- package/signal/mcp/index.ts +1 -0
- package/signal/mcp/promptError.ts +9 -0
- package/signal/middleware.ts +12 -3
- package/signal/openapi/openapi.ts +10 -1
- package/signal/resolveFieldContext.ts +34 -0
- package/signal/serializer/fetch.serializer.ts +23 -15
- package/signal/signalContext.ts +24 -57
- package/signal/signalContractError.ts +10 -0
- package/signal/signalDeclarationError.ts +13 -0
- package/signal/signalRegistry.ts +3 -1
- package/signal/slice.ts +24 -20
- package/signal/sliceInfo.ts +12 -9
- package/signal/trace.ts +3 -0
- package/signal/types.ts +35 -6
- package/store/action.ts +44 -1086
- package/store/actionErrorKey.ts +9 -0
- package/store/actionOption.ts +22 -0
- package/store/baseSt.ts +1 -0
- package/store/draftFlush.ts +5 -0
- package/store/draftStore.ts +2 -0
- package/store/formDrafts.ts +115 -0
- package/store/formFieldSetters.ts +229 -0
- package/store/index.ts +125 -17
- package/store/modelActionContext.ts +65 -0
- package/store/modelListPatch.ts +53 -0
- package/store/modelOpenActions.ts +158 -0
- package/store/modelWriteActions.ts +240 -0
- package/store/modelWriteGuard.ts +82 -0
- package/store/openSeq.ts +34 -0
- package/store/rootStore.ts +2 -0
- package/store/sliceListActions.ts +370 -0
- package/store/sliceLiveActions.ts +130 -0
- package/store/stateBuilder.ts +2 -0
- package/store/storeInstance.ts +9 -10
- package/store/uploadPoll.ts +52 -0
- package/store/withSelector.ts +6 -4
- package/types/base/base.d.ts +2 -1
- package/types/client/clientRuntime.d.ts +1 -0
- package/types/client/cn.d.ts +2 -2
- package/types/client/csrTypes.d.ts +15 -1
- package/types/client/frameConfig.d.ts +1 -0
- package/types/client/index.d.ts +25 -26
- package/types/client/locale.d.ts +1 -0
- package/types/client/makePageProto.d.ts +28 -26091
- package/types/client/nativeThemeColor.d.ts +6 -0
- package/types/client/route/RouteDefinition.d.ts +2 -2
- package/types/client/route/RouteHead.d.ts +5 -1
- package/types/client/route/routeArgs.d.ts +6 -0
- package/types/client/router.d.ts +6 -3
- package/types/client/rscNavigation.d.ts +3 -2
- package/types/client/rscRoutePatch.d.ts +22 -0
- package/types/client/viewportMeta.d.ts +3 -1
- package/types/common/CodeTranscript.d.ts +1 -1
- package/types/common/akanGraph.d.ts +1 -1
- package/types/common/err.d.ts +48 -0
- package/types/common/facetBarrel.d.ts +4 -0
- package/types/common/failureCode.d.ts +6 -0
- package/types/common/index.d.ts +8 -2
- package/types/common/isGuardRefusal.d.ts +3 -0
- package/types/common/mcpExposure.d.ts +9 -2
- package/types/common/mcpFailure.d.ts +6 -0
- package/types/common/restartSchedule.d.ts +16 -0
- package/types/common/routeConvention.d.ts +2 -0
- package/types/common/types.d.ts +18 -1
- package/types/constant/constantRegistry.d.ts +3 -1
- package/types/constant/crystalize.d.ts +1 -1
- package/types/constant/getDefault.d.ts +1 -1
- package/types/constant/immerify.d.ts +1 -1
- package/types/constant/index.d.ts +21 -21
- package/types/constant/purify.d.ts +2 -1
- package/types/constant/serialize.d.ts +1 -1
- package/types/constant/types.d.ts +1 -0
- package/types/dictionary/agent.dictionary.d.ts +1 -1
- package/types/dictionary/base.dictionary.d.ts +1 -1
- package/types/dictionary/dictionary.d.ts +9 -9
- package/types/dictionary/locale.d.ts +1 -1
- package/types/dictionary/trans.d.ts +3 -26
- package/types/document/databaseRegistry.d.ts +2 -1
- package/types/document/documentSchema.d.ts +1 -0
- package/types/document/filterMeta.d.ts +4 -1
- package/types/document/into.d.ts +1 -1
- package/types/document/loaderInfo.d.ts +2 -1
- package/types/document/noDocumentError.d.ts +8 -1
- package/types/document/queryEvaluator.d.ts +1 -1
- package/types/document/types.d.ts +1 -1
- package/types/fetch/client/fetchClient.d.ts +6 -36
- package/types/fetch/client/fetchClientTypes.d.ts +40 -0
- package/types/fetch/client/fetchHandle.d.ts +1 -0
- package/types/fetch/client/httpClient.d.ts +2 -0
- package/types/fetch/client/inflightQueries.d.ts +2 -0
- package/types/fetch/client/remoteError.d.ts +0 -4
- package/types/fetch/client/requestScope.d.ts +6 -0
- package/types/fetch/client/signalCatalog.d.ts +25 -0
- package/types/fetch/client/wsClient.d.ts +1 -0
- package/types/fetch/index.d.ts +1 -0
- package/types/fetch/staleReads.d.ts +8 -0
- package/types/fetch/streamedRead.d.ts +8 -0
- package/types/server/agentHooks.d.ts +4 -0
- package/types/server/akanApp.d.ts +2 -20
- package/types/server/akanOption.d.ts +9 -3
- package/types/server/akanServer.d.ts +1 -1
- package/types/server/artifact/builderRpc.d.ts +8 -0
- package/types/server/artifact/ipcTypes.d.ts +8 -0
- package/types/server/assetHeaders.d.ts +1 -0
- package/types/server/console.d.ts +4 -3
- package/types/server/devtools/devtoolsRouter.d.ts +4 -1
- package/types/server/devtools/studio/studioRoute.d.ts +2 -1
- package/types/server/di/predefinedAdaptor.d.ts +1 -0
- package/types/server/ed25519Key.d.ts +1 -0
- package/types/server/flightRowReader.d.ts +3 -1
- package/types/server/gateway/childSupervisor.d.ts +33 -0
- package/types/server/gateway/devHostChannel.d.ts +14 -0
- package/types/server/gateway/gatewayChildren.d.ts +47 -0
- package/types/server/gateway/gatewayConfig.d.ts +82 -0
- package/types/server/gateway/gatewayHttpProxy.d.ts +22 -0
- package/types/server/gateway/gatewayLogging.d.ts +16 -0
- package/types/server/gateway/gatewayRooms.d.ts +25 -0
- package/types/server/gateway/gatewayStatus.d.ts +62 -0
- package/types/server/gateway/gatewayStatusPage.d.ts +9 -0
- package/types/server/gateway/gatewayWebSocketRelay.d.ts +17 -0
- package/types/server/head.d.ts +2 -2
- package/types/server/htmlResultCache.d.ts +51 -0
- package/types/server/index.d.ts +17 -17
- package/types/server/lifecycle/parentChannel.d.ts +13 -0
- package/types/server/lifecycle/startGuard.d.ts +10 -0
- package/types/server/logging/rotatingLogWriter.d.ts +1 -1
- package/types/server/logging/serverLogging.d.ts +12 -0
- package/types/server/mcp/AgentTools.d.ts +31 -0
- package/types/server/mcp/AgentToolsAccount.d.ts +7 -0
- package/types/server/mcp/McpDispatcher.d.ts +10 -1
- package/types/server/mcp/McpPages.d.ts +2 -1
- package/types/server/mcp/McpRateLimiter.d.ts +3 -0
- package/types/server/mcp/index.d.ts +1 -0
- package/types/server/resolver/database.resolver.d.ts +2 -2
- package/types/server/resolver/databaseModelInstance.d.ts +4 -0
- package/types/server/resolver/invalidSignal.d.ts +2 -0
- package/types/server/resolver/livePause.d.ts +5 -0
- package/types/server/resolver/modelFacade.d.ts +5 -0
- package/types/server/resolver/modelLoaders.d.ts +9 -0
- package/types/server/resolver/modelSchema.d.ts +6 -0
- package/types/server/resolver/signal.resolver.d.ts +2 -2
- package/types/server/resolver/timedQuery.d.ts +8 -0
- package/types/server/resolver/websocketOf.d.ts +2 -0
- package/types/server/routeElementComposer.d.ts +45 -6
- package/types/server/routeState.d.ts +2 -0
- package/types/server/routing/builtinRoutes.d.ts +24 -0
- package/types/server/routing/localRooms.d.ts +14 -0
- package/types/server/routing/roomReplay.d.ts +2 -2
- package/types/server/routing/serverListener.d.ts +31 -0
- package/types/server/rscClient.d.ts +1 -5
- package/types/server/rscClientCache.d.ts +34 -0
- package/types/server/rscClientChunks.d.ts +18 -0
- package/types/server/rscClientFetch.d.ts +1 -1
- package/types/server/rscClientPatch.d.ts +12 -1
- package/types/server/rscDocumentHead.d.ts +32 -0
- package/types/server/rscFlightRenderer.d.ts +14 -0
- package/types/server/rscFlightStream.d.ts +52 -0
- package/types/server/rscHeadPatch.d.ts +5 -4
- package/types/server/rscHostReloads.d.ts +54 -0
- package/types/server/rscHostRenderStream.d.ts +53 -0
- package/types/server/rscHostRequests.d.ts +29 -0
- package/types/server/rscHttp.d.ts +4 -2
- package/types/server/rscInlineStream.d.ts +9 -0
- package/types/server/rscNavigationState.d.ts +8 -3
- package/types/server/rscParkedRedirect.d.ts +12 -0
- package/types/server/rscPatchPlanner.d.ts +49 -0
- package/types/server/rscPrefetchCache.d.ts +8 -7
- package/types/server/rscRenderControl.d.ts +12 -0
- package/types/server/rscRenderFallbacks.d.ts +41 -0
- package/types/server/rscRenderHandler.d.ts +29 -0
- package/types/server/rscRenderStats.d.ts +32 -0
- package/types/server/rscResponse.d.ts +9 -0
- package/types/server/rscResultCaches.d.ts +18 -0
- package/types/server/rscRouteDocument.d.ts +52 -0
- package/types/server/rscSegmentOutlet.d.ts +5 -0
- package/types/server/rscSegmentOutletReference.d.ts +2 -1
- package/types/server/rscWorker.d.ts +1 -3
- package/types/server/rscWorkerCache.d.ts +33 -1
- package/types/server/rscWorkerHost.d.ts +9 -76
- package/types/server/rscWorkerProcess.d.ts +31 -0
- package/types/server/rscWorkerRecycler.d.ts +22 -0
- package/types/server/serverConfig.d.ts +30 -0
- package/types/server/serverMetrics.d.ts +11 -0
- package/types/server/sitemap.d.ts +1 -0
- package/types/server/ssrFromRscRenderer.d.ts +2 -2
- package/types/server/ssrTypes.d.ts +8 -0
- package/types/server/webArtifact.d.ts +7 -0
- package/types/server/webAssetRoutes.d.ts +11 -0
- package/types/server/webCsrSurface.d.ts +18 -0
- package/types/server/webDocumentRoute.d.ts +19 -0
- package/types/server/webRouteContext.d.ts +45 -0
- package/types/server/webRouter.d.ts +4 -35
- package/types/server/webRscRoute.d.ts +24 -0
- package/types/server/webSiteFiles.d.ts +12 -0
- package/types/server/wellKnownRoutes.d.ts +5 -0
- package/types/service/agent.service.d.ts +13 -4
- package/types/service/agentAccounts.d.ts +8 -0
- package/types/service/agentLoop/agentLoop.d.ts +31 -0
- package/types/service/agentLoop/agentLoopTypes.d.ts +126 -0
- package/types/service/agentLoop/deltaStream.d.ts +3 -0
- package/types/service/agentLoop/loopCompaction.d.ts +11 -0
- package/types/service/agentLoop/loopRequest.d.ts +6 -0
- package/types/service/agentLoop/loopToolOutput.d.ts +7 -0
- package/types/service/agentLoop/loopToolkits.d.ts +14 -0
- package/types/service/agentLoop/loopTranscript.d.ts +12 -0
- package/types/service/agentMeter.d.ts +50 -0
- package/types/service/agentRelayPolicy.d.ts +45 -0
- package/types/service/documentStoreError.d.ts +7 -0
- package/types/service/index.d.ts +7 -0
- package/types/service/injectError.d.ts +4 -0
- package/types/service/injectInfo.d.ts +2 -1
- package/types/service/insightQueryError.d.ts +9 -0
- package/types/service/ipcTypes.d.ts +6 -0
- package/types/service/predefinedAdaptor/agentTools.adaptor.d.ts +31 -0
- package/types/service/predefinedAdaptor/anthropicLlm.d.ts +2 -2
- package/types/service/predefinedAdaptor/index.d.ts +2 -0
- package/types/service/predefinedAdaptor/llm.adaptor.d.ts +18 -2
- package/types/service/predefinedAdaptor/llmSpend.d.ts +22 -0
- package/types/service/predefinedAdaptor/openaiDialect.d.ts +2 -1
- package/types/service/predefinedAdaptor/openaiLlm.d.ts +1 -1
- package/types/service/predefinedAdaptor/role.adaptor.d.ts +2 -0
- package/types/service/predefinedAdaptor/solidPubsub.adaptor.d.ts +3 -0
- package/types/service/predefinedAdaptor/solidSqlite.d.ts +1 -1
- package/types/service/predefinedAdaptor/sql/DocumentHydrator.d.ts +11 -0
- package/types/service/predefinedAdaptor/sql/DocumentRowCodec.d.ts +26 -0
- package/types/service/predefinedAdaptor/sql/DocumentWriter.d.ts +24 -0
- package/types/service/predefinedAdaptor/sql/QueryScope.d.ts +16 -0
- package/types/service/predefinedAdaptor/sql/QueryWriter.d.ts +20 -0
- package/types/service/predefinedAdaptor/sql/SqlDocumentStore.d.ts +1 -32
- package/types/service/predefinedAdaptor/sql/SqlTableSchema.d.ts +20 -0
- package/types/service/predefinedAdaptor/sql/StoredRows.d.ts +27 -0
- package/types/service/predefinedAdaptor/sql/driver/bunSqlite.d.ts +1 -14
- package/types/service/predefinedAdaptor/sql/driver/postgres.d.ts +0 -8
- package/types/service/predefinedAdaptor/sql/fieldValues.d.ts +5 -0
- package/types/service/predefinedAdaptor/sseData.d.ts +5 -0
- package/types/service/predefinedAdaptor/websocket.adaptor.d.ts +14 -5
- package/types/service/serviceModule.d.ts +1 -1
- package/types/service/serviceRegistry.d.ts +1 -0
- package/types/signal/SignalFailure.d.ts +2 -0
- package/types/signal/agentTurnStream.d.ts +2 -1
- package/types/signal/byIdRead.d.ts +7 -0
- package/types/signal/carriedClientIps.d.ts +4 -0
- package/types/signal/endpointErrorContract.d.ts +3 -0
- package/types/signal/exception.d.ts +1 -0
- package/types/signal/index.d.ts +32 -30
- package/types/signal/mcp/McpDocument.d.ts +2 -0
- package/types/signal/mcp/index.d.ts +1 -0
- package/types/signal/mcp/promptError.d.ts +5 -0
- package/types/signal/resolveFieldContext.d.ts +15 -0
- package/types/signal/serializer/fetch.serializer.d.ts +3 -1
- package/types/signal/signalContext.d.ts +1 -13
- package/types/signal/signalContractError.d.ts +4 -0
- package/types/signal/signalDeclarationError.d.ts +4 -0
- package/types/signal/slice.d.ts +15 -13
- package/types/signal/trace.d.ts +3 -0
- package/types/signal/types.d.ts +33 -6
- package/types/store/action.d.ts +8 -27
- package/types/store/actionErrorKey.d.ts +1 -0
- package/types/store/actionOption.d.ts +24 -0
- package/types/store/baseSt.d.ts +2 -295
- package/types/store/draftFlush.d.ts +4 -0
- package/types/store/formDrafts.d.ts +21 -0
- package/types/store/formFieldSetters.d.ts +80 -0
- package/types/store/index.d.ts +17 -16
- package/types/store/modelActionContext.d.ts +189 -0
- package/types/store/modelListPatch.d.ts +34 -0
- package/types/store/modelOpenActions.d.ts +12 -0
- package/types/store/modelWriteActions.d.ts +16 -0
- package/types/store/modelWriteGuard.d.ts +42 -0
- package/types/store/openSeq.d.ts +17 -0
- package/types/store/rootStore.d.ts +6 -0
- package/types/store/sliceListActions.d.ts +295 -0
- package/types/store/sliceLiveActions.d.ts +6 -0
- package/types/store/stateBuilder.d.ts +2 -0
- package/types/store/uploadPoll.d.ts +16 -0
- package/types/store/withSelector.d.ts +1 -1
- package/types/ui/Agent/Chat.d.ts +5 -2
- package/types/ui/Agent/ChatHeader.d.ts +13 -0
- package/types/ui/Agent/ChatPendingCards.d.ts +23 -0
- package/types/ui/Field/Choice.d.ts +2 -1
- package/types/ui/Field/index.d.ts +1 -1
- package/types/ui/Link/inputModality.d.ts +5 -0
- package/types/ui/Link/viewportPrefetch.d.ts +4 -0
- package/types/ui/Load/Edit_Client.d.ts +2 -0
- package/types/ui/Load/Pagination.d.ts +4 -1
- package/types/ui/Load/Stream.d.ts +7 -1
- package/types/ui/Load/StreamBoundary.d.ts +20 -0
- package/types/ui/Load/Units.d.ts +2 -0
- package/types/ui/Load/View.d.ts +2 -0
- package/types/ui/Reference/origin.d.ts +1 -0
- package/types/ui/index.d.ts +1 -1
- package/types/ui/overlayLayer.d.ts +6 -1
- package/types/ui/recipe/badgeRecipe.d.ts +3 -3
- package/types/ui/recipe/buttonRecipe.d.ts +3 -3
- package/types/ui/recipe/inputRecipe.d.ts +1 -1
- package/types/vendor/@akanjs/native/packages/cli/src/lib/project.d.ts +4 -0
- package/types/vendor/@akanjs/native/packages/desktop/src/relaunch.d.ts +1 -0
- package/types/vendor/@akanjs/native/plugins/appearance/src/index.d.ts +9 -0
- package/types/vendor/@akanjs/native/plugins/external-view/src/index.d.ts +18 -11
- package/types/vendor/use-agentic/AgentClientTools.d.ts +19 -0
- package/types/vendor/use-agentic/failureCode.d.ts +4 -0
- package/types/vendor/use-agentic/index.d.ts +1 -0
- package/types/vendor/use-agentic/types.d.ts +11 -0
- package/types/webkit/CsrGuards.d.ts +2 -0
- package/types/webkit/RouteLevelBoundary.d.ts +17 -0
- package/types/webkit/nativeCore.d.ts +1 -0
- package/types/webkit/nativePurchase.d.ts +2 -1
- package/types/webkit/useCsrKeyboard.d.ts +19 -0
- package/types/webkit/useCsrLocationState.d.ts +21 -0
- package/types/webkit/useCsrNavigation.d.ts +25 -0
- package/types/webkit/useCsrRefs.d.ts +33 -0
- package/types/webkit/useCsrRenderTrace.d.ts +13 -0
- package/types/webkit/useCsrStackLifecycle.d.ts +12 -0
- package/types/webkit/useCsrTransitions.d.ts +2 -0
- package/types/webkit/useFrameRuntime.d.ts +1 -0
- package/types/webkit/useGeoLocation.d.ts +1 -1
- package/types/webkit/useHistory.d.ts +2 -3
- package/types/webkit/usePurchase.d.ts +1 -1
- package/types/webkit/useResolvedFrame.d.ts +38 -0
- package/types/webkit/useSyncNavigation.d.ts +22 -0
- package/types/webkit/useTransitionStore.d.ts +1 -0
- package/ui/Agent/Chat.tsx +392 -235
- package/ui/Agent/ChatHeader.tsx +59 -0
- package/ui/Agent/ChatPendingCards.tsx +49 -0
- package/ui/Agent/fetchRunner.ts +8 -1
- package/ui/BottomSheet.tsx +1 -1
- package/ui/Button.tsx +1 -0
- package/ui/Data/Item.tsx +2 -2
- package/ui/Data/ListContainer.tsx +348 -181
- package/ui/Data/useViewModal.ts +10 -4
- package/ui/Dialog/LegacyModal.tsx +1 -1
- package/ui/Dialog/Modal.tsx +1 -1
- package/ui/Field/Choice.tsx +3 -1
- package/ui/Link/inputModality.ts +21 -0
- package/ui/Link/prefetchIntent.ts +7 -25
- package/ui/Link/viewportPrefetch.ts +30 -0
- package/ui/Load/Edit_Client.tsx +7 -1
- package/ui/Load/Pagination.tsx +10 -2
- package/ui/Load/Stream.tsx +24 -4
- package/ui/Load/StreamBoundary.tsx +65 -0
- package/ui/Load/Units.tsx +3 -0
- package/ui/Load/View.tsx +5 -1
- package/ui/Model/EditModal.tsx +2 -1
- package/ui/Popconfirm.tsx +1 -1
- package/ui/Reference/origin.ts +1 -0
- package/ui/Select.tsx +43 -51
- package/ui/Signal/RestApi.tsx +3 -2
- package/ui/System/Client.tsx +32 -8
- package/ui/index.ts +4 -0
- package/ui/overlayLayer.ts +22 -1
- package/vendor/@akanjs/native/CHANGELOG.md +7 -1
- package/vendor/@akanjs/native/native/android/src/com/akanjs/runtime/AkanNativeActivity.kt +27 -12
- package/vendor/@akanjs/native/native/android/src/com/akanjs/runtime/AkanNativePlugin.kt +4 -0
- package/vendor/@akanjs/native/native/desktop/src/external.rs +213 -111
- package/vendor/@akanjs/native/native/desktop/src/lib.rs +12 -4
- package/vendor/@akanjs/native/native/desktop/src/linux/external.rs +509 -0
- package/vendor/@akanjs/native/native/desktop/src/linux/mod.rs +1 -0
- package/vendor/@akanjs/native/native/ios/Sources/AkanNativeViewController.swift +6 -1
- package/vendor/@akanjs/native/packages/cli/src/lib/native-plugins.ts +5 -3
- package/vendor/@akanjs/native/packages/cli/src/lib/project.ts +25 -1
- package/vendor/@akanjs/native/packages/desktop/src/deeplinks.ts +2 -2
- package/vendor/@akanjs/native/packages/desktop/src/host.ts +2 -2
- package/vendor/@akanjs/native/packages/desktop/src/relaunch.ts +8 -3
- package/vendor/@akanjs/native/plugins/app/src/desktop.ts +2 -2
- package/vendor/@akanjs/native/plugins/appearance/android/AppearancePlugin.kt +13 -0
- package/vendor/@akanjs/native/plugins/appearance/ios/AppearancePlugin.swift +27 -0
- package/vendor/@akanjs/native/plugins/appearance/native-plugin.json +2 -2
- package/vendor/@akanjs/native/plugins/appearance/src/index.ts +8 -1
- package/vendor/@akanjs/native/plugins/autostart/src/desktop.ts +2 -1
- package/vendor/@akanjs/native/plugins/external-view/native-plugin.json +4 -1
- package/vendor/@akanjs/native/plugins/external-view/src/index.ts +18 -11
- package/vendor/use-agentic/AgentClientTools.ts +33 -0
- package/vendor/use-agentic/AgentSession.ts +11 -11
- package/vendor/use-agentic/CHANGELOG.md +46 -1
- package/vendor/use-agentic/Compaction.ts +2 -1
- package/vendor/use-agentic/ToolRunner.ts +6 -3
- package/vendor/use-agentic/Transcript.ts +6 -3
- package/vendor/use-agentic/WIRE.md +29 -7
- package/vendor/use-agentic/failureCode.ts +44 -0
- package/vendor/use-agentic/httpRunner.ts +15 -4
- package/vendor/use-agentic/index.ts +1 -0
- package/vendor/use-agentic/types.ts +11 -0
- package/webkit/CsrGuards.ts +7 -2
- package/webkit/McpAppAgent.ts +8 -3
- package/webkit/McpAppFetchBridge.ts +11 -5
- package/webkit/RouteLevelBoundary.tsx +37 -0
- package/webkit/nativeCore.ts +1 -0
- package/webkit/nativePurchase.ts +6 -3
- package/webkit/useCamera.tsx +22 -21
- package/webkit/useCsrKeyboard.ts +155 -0
- package/webkit/useCsrLocationState.ts +58 -0
- package/webkit/useCsrNavigation.ts +302 -0
- package/webkit/useCsrRefs.ts +52 -0
- package/webkit/useCsrRenderTrace.ts +68 -0
- package/webkit/useCsrStackLifecycle.ts +120 -0
- package/webkit/useCsrTransitions.ts +552 -0
- package/webkit/useCsrValues.ts +69 -1234
- package/webkit/useGeoLocation.tsx +4 -1
- package/webkit/useHistory.ts +2 -2
- package/webkit/useLocation.ts +3 -2
- package/webkit/usePurchase.tsx +4 -2
- package/webkit/useResolvedFrame.ts +116 -0
- package/webkit/useSyncNavigation.ts +109 -0
- package/webkit/useTransitionStore.ts +13 -0
- package/types/signal/agentMeter.d.ts +0 -27
- package/types/signal/agentRelayPolicy.d.ts +0 -25
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type PromiseOrObject } from "akanjs/base";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
3
|
import type { Head, LayoutModule, PageConfig, PageModule } from "../csrTypes.d.ts";
|
|
4
|
-
import { type RouteArgInfo, type RouteArgInput, type RouteBaseArgs } from "./routeArgs.d.ts";
|
|
4
|
+
import { type RouteArgInfo, type RouteArgInput, type RouteBaseArgs, type RouteGuardRequest } from "./routeArgs.d.ts";
|
|
5
5
|
export type RouteArgsShape = Record<string, unknown>;
|
|
6
6
|
export type RouteKind = "page" | "layout" | "rootLayout";
|
|
7
7
|
/** Interned: a definition built inside the pages bundle must be recognised by a loader bundled apart from it. */
|
|
@@ -22,7 +22,7 @@ export declare abstract class RouteDefinition<Args extends RouteArgsShape = Reco
|
|
|
22
22
|
config(config: PageConfig): this;
|
|
23
23
|
head(head: HeadStage<RouteBaseArgs & Args>): this;
|
|
24
24
|
/** Runs before any layout body; refuses with `router.redirect()` or `router.notFound()`. */
|
|
25
|
-
guard(guard: (args: RouteBaseArgs & Args) => void | Promise<void>): this;
|
|
25
|
+
guard(guard: (args: RouteBaseArgs & Args, request: RouteGuardRequest) => void | Promise<void>): this;
|
|
26
26
|
loading(render: (args: RouteBaseArgs & Args & Extra) => PromiseOrObject<ReactNode>): this;
|
|
27
27
|
render(render: (args: RouteBaseArgs & Args & Extra) => PromiseOrObject<ReactNode>): this;
|
|
28
28
|
get pageConfig(): PageConfig | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactElement, type ReactNode } from "react";
|
|
2
|
-
import type { ResolveHeadResult } from "../csrTypes.d.ts";
|
|
2
|
+
import type { AkanHeadSnapshotNode, AkanHeadSnapshotV1, ResolveHeadResult } from "../csrTypes.d.ts";
|
|
3
3
|
type TagProps = Record<string, unknown>;
|
|
4
4
|
/** Merges the `.head()` of every route level, root first: a deeper level takes over each singleton tag it writes. */
|
|
5
5
|
export declare class RouteHead {
|
|
@@ -7,6 +7,8 @@ export declare class RouteHead {
|
|
|
7
7
|
static merge(levels: ResolveHeadResult[]): ResolveHeadResult;
|
|
8
8
|
/** `merge` of a page's head over its layouts': a canonical or `og:url` comes from the page or not at all. */
|
|
9
9
|
static mergePage(layouts: ResolveHeadResult, page: ResolveHeadResult): ResolveHeadResult;
|
|
10
|
+
/** `head` as the title, meta and link data a navigation swaps in, or `undefined` if any tag it holds has no such form. */
|
|
11
|
+
static snapshotOf(head: ResolveHeadResult): AkanHeadSnapshotV1 | undefined;
|
|
10
12
|
/** The tags at the top of `node` that a head merges by identity, apart from the rest, which is `node` if none. */
|
|
11
13
|
static split(node: ReactNode): {
|
|
12
14
|
tags: ReactNode[];
|
|
@@ -18,5 +20,7 @@ export declare class RouteHead {
|
|
|
18
20
|
static keyOf(tag: string, props: TagProps): string | null;
|
|
19
21
|
/** `merge` for plain JSX heads, root first. */
|
|
20
22
|
static mergeNodes(nodes: ReactNode[]): ReactNode;
|
|
23
|
+
/** `merge` for snapshot nodes, root first. */
|
|
24
|
+
static mergeSnapshots(levels: AkanHeadSnapshotNode[][]): AkanHeadSnapshotV1;
|
|
21
25
|
}
|
|
22
26
|
export {};
|
|
@@ -12,6 +12,12 @@ export interface RouteArgOption {
|
|
|
12
12
|
export interface RouteBaseArgs {
|
|
13
13
|
lang: string;
|
|
14
14
|
}
|
|
15
|
+
/** A guard's second argument. `path` is a target to send the visitor back to, never a reason to let them in: CSR asks
|
|
16
|
+
* a guard again only when the route or an arg it declared moves, so a query it did not declare can move on. */
|
|
17
|
+
export interface RouteGuardRequest {
|
|
18
|
+
/** The requested in-app path with its search, as `router.push` takes it; `undefined` while MCP lists the screen. */
|
|
19
|
+
path?: string;
|
|
20
|
+
}
|
|
15
21
|
export interface RouteArgInfo {
|
|
16
22
|
kind: "param" | "search";
|
|
17
23
|
name: string;
|
package/types/client/router.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export interface RouterInstance {
|
|
|
27
27
|
refresh: () => void;
|
|
28
28
|
/** Whether `back` has a page to return to; left out, the router reads the index stamped on the history entry. */
|
|
29
29
|
canGoBack?: () => boolean;
|
|
30
|
-
prefetch?: (href: string, priority?: PrefetchPriority) => void;
|
|
30
|
+
prefetch?: (href: string, priority?: PrefetchPriority) => (() => void) | void;
|
|
31
31
|
}
|
|
32
32
|
interface RouterOptions {
|
|
33
33
|
prefix?: string;
|
|
@@ -67,6 +67,8 @@ export declare class AkanNotFoundError extends Error {
|
|
|
67
67
|
readonly digest = "AKAN_NOT_FOUND";
|
|
68
68
|
constructor();
|
|
69
69
|
}
|
|
70
|
+
export declare const isRouteControl: (error: unknown) => boolean;
|
|
71
|
+
export declare const getRequestRoutePath: (lang: string) => string | undefined;
|
|
70
72
|
export declare const normalizeDeepLinkHref: (href: string, origin?: string) => string;
|
|
71
73
|
declare global {
|
|
72
74
|
var __AKAN_ROUTER__: Router | undefined;
|
|
@@ -97,9 +99,10 @@ declare class Router {
|
|
|
97
99
|
enterDeepLink(href: string, options?: DeepLinkOptions): boolean;
|
|
98
100
|
push(href: string, routeOptions?: RouteOptions): never;
|
|
99
101
|
replace(href: string, routeOptions?: RouteOptions): never;
|
|
102
|
+
/** Returns the call that withdraws the request while it still waits behind others. */
|
|
100
103
|
prefetch(href: string, { priority }?: {
|
|
101
104
|
priority?: PrefetchPriority;
|
|
102
|
-
}): void;
|
|
105
|
+
}): () => void;
|
|
103
106
|
/**
|
|
104
107
|
* Asks `guard` before every in-app move — `push`, `replace`, `back`, a `Link`, the browser's back and forward, the
|
|
105
108
|
* agent's navigate — and keeps the page when it answers `false`; returns the call that removes it. A redirect, a
|
|
@@ -124,7 +127,7 @@ declare class Router {
|
|
|
124
127
|
notFound(): never;
|
|
125
128
|
setLang(lang: string): never;
|
|
126
129
|
/** A pathname without its locale and base-path segments; unlike `getPath`, it needs no browser. */
|
|
127
|
-
routeOf(pathname: string): string;
|
|
130
|
+
routeOf(pathname: string, lang?: string): string;
|
|
128
131
|
getPath(pathname?: string): string;
|
|
129
132
|
getFullPath(withLang?: boolean): string;
|
|
130
133
|
getPrefix(): string;
|
|
@@ -6,7 +6,7 @@ declare global {
|
|
|
6
6
|
var __AKAN_RSC_REFRESH__: ((options?: {
|
|
7
7
|
buildId?: number;
|
|
8
8
|
}) => Promise<void>) | undefined;
|
|
9
|
-
var __AKAN_RSC_PREFETCH__: ((href: string, priority?: PrefetchPriority) => void) | undefined;
|
|
9
|
+
var __AKAN_RSC_PREFETCH__: ((href: string, priority?: PrefetchPriority) => () => void) | undefined;
|
|
10
10
|
var __AKAN_RSC_NAVIGATE__: ((href: string, options?: {
|
|
11
11
|
replace?: boolean;
|
|
12
12
|
scrollToTop?: boolean;
|
|
@@ -25,8 +25,9 @@ export declare const navigateRsc: (href: string, options?: {
|
|
|
25
25
|
scrollToTop?: boolean;
|
|
26
26
|
shallow?: boolean;
|
|
27
27
|
}) => Promise<void> | undefined;
|
|
28
|
-
export declare const prefetchRsc: (href: string, priority?: PrefetchPriority) => void;
|
|
28
|
+
export declare const prefetchRsc: (href: string, priority?: PrefetchPriority) => (() => void) | undefined;
|
|
29
29
|
export declare const refreshRsc: () => Promise<void> | undefined;
|
|
30
|
+
/** @deprecated Not a hook; import `navigateRsc`, `clearRscNavigationCache` and `isRscNavigationFromCache`. */
|
|
30
31
|
export declare const useRscNavigation: () => {
|
|
31
32
|
clearCache: () => void;
|
|
32
33
|
isFromCache: () => boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AkanHeadSnapshotV1 } from "./csrTypes.d.ts";
|
|
2
|
+
/** What a partial commit put on screen under the layouts the last full commit rendered, until the next full one. */
|
|
3
|
+
export interface RscRoutePatch {
|
|
4
|
+
href: string;
|
|
5
|
+
/** The page's part of the head; the layouts' part is the one the last full commit rendered. */
|
|
6
|
+
head: AkanHeadSnapshotV1;
|
|
7
|
+
}
|
|
8
|
+
interface RscRoutePatchStore {
|
|
9
|
+
current: RscRoutePatch | null;
|
|
10
|
+
listeners: Set<() => void>;
|
|
11
|
+
heads: Set<() => void>;
|
|
12
|
+
}
|
|
13
|
+
declare global {
|
|
14
|
+
var __AKAN_RSC_ROUTE_PATCH__: RscRoutePatchStore | undefined;
|
|
15
|
+
}
|
|
16
|
+
export declare const readRscRoutePatch: () => RscRoutePatch | null;
|
|
17
|
+
export declare const writeRscRoutePatch: (patch: RscRoutePatch | null) => void;
|
|
18
|
+
export declare const subscribeRscRoutePatch: (listener: () => void, { head }?: {
|
|
19
|
+
head?: boolean;
|
|
20
|
+
}) => () => void;
|
|
21
|
+
export declare const hasRscRouteHead: () => boolean;
|
|
22
|
+
export {};
|
|
@@ -14,5 +14,7 @@ export declare class ViewportMeta {
|
|
|
14
14
|
static applyContent(viewport: RouteViewport | undefined, { native }?: {
|
|
15
15
|
native?: boolean;
|
|
16
16
|
}): void;
|
|
17
|
-
static
|
|
17
|
+
static runtimeThemeColor(): string | null;
|
|
18
|
+
static applyThemeColor(viewport: RouteViewport | undefined, theme?: string): string | null;
|
|
19
|
+
static watchThemeColor(apply: () => void): () => void;
|
|
18
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CodeAgentApprovalRequest, CodeAgentEvent, CodeAgentQuestion, CodeAgentSessionInfo, CodeAgentStopReason, CodeAgentSubagent, CodeAgentToolOutcome, CodeAgentToolSummary } from "
|
|
1
|
+
import type { CodeAgentApprovalRequest, CodeAgentEvent, CodeAgentQuestion, CodeAgentSessionInfo, CodeAgentStopReason, CodeAgentSubagent, CodeAgentToolOutcome, CodeAgentToolSummary } from "./codeAgentWire.d.ts";
|
|
2
2
|
export type CodeTranscriptPart = {
|
|
3
3
|
kind: "user";
|
|
4
4
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type AkanGraphNodeKind = "model" | "scalar" | "enum" | "query" | "slice" | "endpoint" | "guard" | "method" | "action" | "component" | "route" | "layout" | "internal" | "adaptor";
|
|
2
|
-
export type AkanGraphEdgeKind = "field" | "guard" | "calls" | "fetches" | "uses" | "wraps" | "plugs";
|
|
2
|
+
export type AkanGraphEdgeKind = "field" | "guard" | "calls" | "fetches" | "uses" | "wraps" | "plugs" | "binds";
|
|
3
3
|
export type AkanGraphChange = "added" | "removed" | "changed";
|
|
4
4
|
export interface AkanGraphLocation {
|
|
5
5
|
file: string;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AkanError } from "akanjs/base";
|
|
2
|
+
export interface ErrRestoreOption {
|
|
3
|
+
statusCode?: number;
|
|
4
|
+
/** A generalized failure's `AkanError` code, which a restored copy keeps so its caller can branch on it. */
|
|
5
|
+
code?: string;
|
|
6
|
+
details?: unknown;
|
|
7
|
+
path?: string;
|
|
8
|
+
timestamp?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ErrPayload extends ErrRestoreOption {
|
|
11
|
+
error: string;
|
|
12
|
+
data?: Record<string, unknown>;
|
|
13
|
+
}
|
|
14
|
+
export type ErrConstructor<ErrorKey extends string> = (new (key: ErrorKey, data?: Record<string, unknown>, option?: ErrRestoreOption) => Err) & {
|
|
15
|
+
prototype: Err;
|
|
16
|
+
fromJSON(payload: ErrPayload): Err;
|
|
17
|
+
is<Key extends ErrorKey>(error: unknown, ...keys: Key[]): error is Err & {
|
|
18
|
+
readonly error: Key;
|
|
19
|
+
};
|
|
20
|
+
BadRequest: ErrConstructor<ErrorKey>;
|
|
21
|
+
Unauthorized: ErrConstructor<ErrorKey>;
|
|
22
|
+
Forbidden: ErrConstructor<ErrorKey>;
|
|
23
|
+
NotFound: ErrConstructor<ErrorKey>;
|
|
24
|
+
Conflict: ErrConstructor<ErrorKey>;
|
|
25
|
+
};
|
|
26
|
+
export declare class Err extends AkanError<string, Record<string, unknown>> {
|
|
27
|
+
static status?: number;
|
|
28
|
+
readonly error: string;
|
|
29
|
+
readonly details?: unknown;
|
|
30
|
+
readonly path?: string;
|
|
31
|
+
readonly timestamp?: string;
|
|
32
|
+
constructor(key: string, data?: Record<string, unknown>, option?: ErrRestoreOption);
|
|
33
|
+
get forwarded(): boolean;
|
|
34
|
+
toString(): string;
|
|
35
|
+
toJSON(): ErrPayload & {
|
|
36
|
+
statusCode: number;
|
|
37
|
+
};
|
|
38
|
+
static fromJSON(this: unknown, payload: ErrPayload): Err;
|
|
39
|
+
static is<Key extends string>(error: unknown, ...keys: Key[]): error is Err & {
|
|
40
|
+
readonly error: Key;
|
|
41
|
+
};
|
|
42
|
+
static is<E extends AkanError>(this: abstract new (...args: never[]) => E, error: unknown, ...codes: E["code"][]): error is E;
|
|
43
|
+
static BadRequest: typeof Err;
|
|
44
|
+
static Unauthorized: typeof Err;
|
|
45
|
+
static Forbidden: typeof Err;
|
|
46
|
+
static NotFound: typeof Err;
|
|
47
|
+
static Conflict: typeof Err;
|
|
48
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const barrelFacetDirs: readonly ["ui", "webkit", "srvkit", "common", "plugin"];
|
|
2
|
+
export declare const compareExportNames: (a: string, b: string) => number;
|
|
3
|
+
export declare const facetBarrelNamesOf: (facet: string, files: string[], dirs: string[]) => string[];
|
|
4
|
+
export declare const facetBarrelOf: (facet: string, files: string[], dirs: string[]) => string;
|
package/types/common/index.d.ts
CHANGED
|
@@ -15,7 +15,10 @@ export { clientAddressFromHeaders, clientPortFromHeaders, forwardedHeaders, norm
|
|
|
15
15
|
export { type CodeAgentApprovalPolicy, type CodeAgentBuiltinTool, type CodeAgentInteractionMode, type CodeAgentMcpAuthState, type CodeAgentMcpServerRef, type CodeAgentMcpStatus, type CodeAgentModelInfo, type CodeAgentPresetName, type CodeAgentProfile, type CodeAgentProviderInfo, type CodeAgentSubagentBudget, codeAgentDeniedPaths, codeAgentPresets, codeAgentReadOnlyBuiltins, isCodeAgentPresetName, } from "./codeAgentProfile.d.ts";
|
|
16
16
|
export { type CodeAgentAnswer, type CodeAgentApprovalRequest, type CodeAgentCommand, type CodeAgentCommandType, type CodeAgentEffort, type CodeAgentEvent, type CodeAgentEventBody, type CodeAgentEventType, type CodeAgentFrame, type CodeAgentImage, type CodeAgentQuestion, type CodeAgentQuestionOption, type CodeAgentReply, type CodeAgentRequest, type CodeAgentSessionInfo, type CodeAgentStartOptions, type CodeAgentState, type CodeAgentStopReason, type CodeAgentSubagent, type CodeAgentToolOp, type CodeAgentToolOutcome, type CodeAgentToolSummary, codeAgentClip, codeAgentEventLabel, codeAgentEventPersistence, codeAgentLabelChars, codeAgentOutputChars, codeAgentRenderAnswer, codeAgentSessionName, codeAgentShouldPersist, codeAgentWireVersion, isCodeAgentReply, } from "./codeAgentWire.d.ts";
|
|
17
17
|
export { type CookieEntry, CookieJar, type CookieRead } from "./cookieJar.d.ts";
|
|
18
|
+
export { Err, type ErrConstructor, type ErrPayload, type ErrRestoreOption } from "./err.d.ts";
|
|
18
19
|
export { EventStream, type EventStreamOptions } from "./eventStream.d.ts";
|
|
20
|
+
export { barrelFacetDirs, compareExportNames, facetBarrelNamesOf, facetBarrelOf } from "./facetBarrel.d.ts";
|
|
21
|
+
export { FailureCode } from "./failureCode.d.ts";
|
|
19
22
|
export { type FileUploadCapability, fileUploadContract, resolveFileUploadCapability, } from "./fileUpload.d.ts";
|
|
20
23
|
export { formatNumber } from "./formatNumber.d.ts";
|
|
21
24
|
export type { FrameworkChannel, FrameworkClass, FrameworkFacet, FrameworkImport, FrameworkMap, FrameworkMessage, FrameworkPackage, FrameworkSite, } from "./frameworkMap.d.ts";
|
|
@@ -25,6 +28,7 @@ export { IpLiteral } from "./IpLiteral.d.ts";
|
|
|
25
28
|
export { interpolateTranslation } from "./interpolateTranslation.d.ts";
|
|
26
29
|
export { isDayjs } from "./isDayjs.d.ts";
|
|
27
30
|
export { isEmail } from "./isEmail.d.ts";
|
|
31
|
+
export { isGuardRefusal } from "./isGuardRefusal.d.ts";
|
|
28
32
|
export { isQueryEqual } from "./isQueryEqual.d.ts";
|
|
29
33
|
export { isRecord } from "./isRecord.d.ts";
|
|
30
34
|
export { isThenable } from "./isThenable.d.ts";
|
|
@@ -37,7 +41,8 @@ export { type LogContextReader, type LogContextSnapshot, type LogFlightRecorder,
|
|
|
37
41
|
export { type MarkdownBlock, MarkdownBlocks, type MarkdownItem } from "./markdownBlocks.d.ts";
|
|
38
42
|
export { type MarkdownSpan, MarkdownSpans } from "./markdownSpans.d.ts";
|
|
39
43
|
export { type Align, MarkdownTable, type TableBlock } from "./markdownTable.d.ts";
|
|
40
|
-
export { isMcpDescribableArg, type McpExposureEndpoint, type McpExposureOption, mcpBaseVerbOf, mcpHintsOf, mcpRefusalOf, } from "./mcpExposure.d.ts";
|
|
44
|
+
export { isMcpDescribableArg, type McpExposureEndpoint, type McpExposureOption, type McpShelf, mcpBaseVerbOf, mcpHintsOf, mcpRefusalOf, narrowestMcpShelf, } from "./mcpExposure.d.ts";
|
|
45
|
+
export { MCP_FAILURE_META, type McpFailure } from "./mcpFailure.d.ts";
|
|
41
46
|
export { deepObjectify, objectify, plainFieldsOf } from "./objectify.d.ts";
|
|
42
47
|
export { pathGet, pathGetLoose, pathSet, toPathSegments } from "./objectPath.d.ts";
|
|
43
48
|
export { PipelineNames } from "./PipelineNames.d.ts";
|
|
@@ -52,9 +57,10 @@ export { randomPick, randomPicks } from "./randomPick.d.ts";
|
|
|
52
57
|
export { RemoteAuthCode } from "./remoteAuthCode.d.ts";
|
|
53
58
|
export { RequestLocale, type RequestLocaleInput } from "./requestLocale.d.ts";
|
|
54
59
|
export { hostFromRequest, isJsonContentType, originFromRequest } from "./requestOrigin.d.ts";
|
|
60
|
+
export { type RestartPolicy, RestartSchedule } from "./restartSchedule.d.ts";
|
|
55
61
|
export { RestClient, type RestClientOptions, type RestRequestOptions } from "./restClient.d.ts";
|
|
56
62
|
export { round } from "./round.d.ts";
|
|
57
|
-
export { assertUniqueRoutePatterns, compareRouteSpecificity, getPageSourceFileViolation, getRouteExports, isRouteSourceFile, LAYOUT_ROUTE_EXPORTS, matchRoutePattern, normalizeRoutePattern, PAGE_ROUTE_EXPORTS, type ParsedRouteModuleKey, parseRouteModuleKey, RESERVED_ROUTE_CONFIG_EXPORTS, ROOT_LAYOUT_ROUTE_EXPORTS, type RouteModuleKind, routeSegmentToPatternPart, routeSegmentToTreePath, tryParseRouteModuleKey, type ValidatePageSourceFileOptions, type ValidateSubRoutePageKeyOptions, validatePageSourceFile, validateSubRoutePageKey, } from "./routeConvention.d.ts";
|
|
63
|
+
export { assertUniqueRoutePatterns, compareRouteSpecificity, GENERATED_ROOT_LAYOUT_EXPORTS, getPageSourceFileViolation, getRouteExports, isRouteSourceFile, LAYOUT_ROUTE_EXPORTS, matchRoutePattern, normalizeRoutePattern, PAGE_ROUTE_EXPORTS, type ParsedRouteModuleKey, parseRouteModuleKey, RESERVED_ROUTE_CONFIG_EXPORTS, ROOT_LAYOUT_ROUTE_EXPORTS, type RouteModuleKind, routeSegmentToPatternPart, routeSegmentToTreePath, tryParseRouteModuleKey, type ValidatePageSourceFileOptions, type ValidateSubRoutePageKeyOptions, validatePageSourceFile, validateSubRoutePageKey, } from "./routeConvention.d.ts";
|
|
58
64
|
export { type SessionCookieDuplicate, SessionCookies } from "./sessionCookies.d.ts";
|
|
59
65
|
export { sleep } from "./sleep.d.ts";
|
|
60
66
|
export { getBasePathFromPathname, parseBasePaths, parseSubRouteHosts, resolveSubRouteHosts } from "./subRoute.d.ts";
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/** `"agent"` lists it to the in-process agent (`AgentToolsRole`, `agentService.loop`) and keeps it off `/mcp`. */
|
|
2
|
+
export type McpShelf = boolean | "agent";
|
|
3
|
+
export declare const narrowestMcpShelf: (shelves: readonly McpShelf[]) => McpShelf;
|
|
1
4
|
export interface McpExposureEndpoint {
|
|
2
5
|
type: string;
|
|
3
6
|
returns: {
|
|
@@ -12,9 +15,10 @@ export interface McpExposureEndpoint {
|
|
|
12
15
|
}[];
|
|
13
16
|
guards?: string[];
|
|
14
17
|
fileUpload?: boolean;
|
|
15
|
-
mcp?:
|
|
18
|
+
mcp?: McpShelf;
|
|
16
19
|
/** `false` when a guard declares `static agents = false`: no model may ever pass, whatever else the guards say. */
|
|
17
20
|
agents?: boolean;
|
|
21
|
+
destructive?: boolean;
|
|
18
22
|
}
|
|
19
23
|
export interface McpExposureOption {
|
|
20
24
|
refName: string;
|
|
@@ -23,6 +27,8 @@ export interface McpExposureOption {
|
|
|
23
27
|
readOnly?: boolean;
|
|
24
28
|
/** MCP Apps: judges what a rendered view may call, which lifts the two refusals that only curate a model's shelf. */
|
|
25
29
|
view?: boolean;
|
|
30
|
+
/** The in-process agent catalogue, which also lists an endpoint declared `mcp: "agent"`. */
|
|
31
|
+
agent?: boolean;
|
|
26
32
|
}
|
|
27
33
|
/** `Any` publishes as the empty schema, which tells a model nothing, so it is left out. */
|
|
28
34
|
export declare const isMcpDescribableArg: (arg: {
|
|
@@ -32,10 +38,11 @@ export declare const mcpBaseVerbOf: (refName: string, key: string) => "get" | "c
|
|
|
32
38
|
/** Hints never stand in for a guard; `openWorldHint` is false: every endpoint reaches this app's own database. */
|
|
33
39
|
export declare const mcpHintsOf: (key: string, endpoint: {
|
|
34
40
|
type: string;
|
|
41
|
+
destructive?: boolean;
|
|
35
42
|
}) => {
|
|
36
43
|
readOnlyHint: boolean;
|
|
37
44
|
destructiveHint: boolean;
|
|
38
45
|
idempotentHint: boolean;
|
|
39
46
|
openWorldHint: boolean;
|
|
40
47
|
};
|
|
41
|
-
export declare const mcpRefusalOf: (endpoint: McpExposureEndpoint, { refName, key, readOnly, view }: McpExposureOption) => string | null;
|
|
48
|
+
export declare const mcpRefusalOf: (endpoint: McpExposureEndpoint, { refName, key, readOnly, view, agent }: McpExposureOption) => string | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type BackoffPolicy } from "./backoff.d.ts";
|
|
2
|
+
export interface RestartPolicy extends BackoffPolicy {
|
|
3
|
+
maxAttempts?: number;
|
|
4
|
+
}
|
|
5
|
+
export declare class RestartSchedule {
|
|
6
|
+
#private;
|
|
7
|
+
constructor({ jitter, ...policy }?: RestartPolicy);
|
|
8
|
+
get attempts(): number;
|
|
9
|
+
get pending(): boolean;
|
|
10
|
+
get exhausted(): boolean;
|
|
11
|
+
next(): number;
|
|
12
|
+
arm(delay: number, run: () => void): void;
|
|
13
|
+
schedule(run: () => void): number;
|
|
14
|
+
cancel(): void;
|
|
15
|
+
reset(): void;
|
|
16
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export type RouteModuleKind = "page" | "layout" | "overrides";
|
|
2
2
|
export declare const PAGE_ROUTE_EXPORTS: ReadonlySet<string>;
|
|
3
3
|
export declare const LAYOUT_ROUTE_EXPORTS: ReadonlySet<string>;
|
|
4
|
+
/** Root-layout exports the generated root layout defines itself: it reads none of them from an app's root layout. */
|
|
5
|
+
export declare const GENERATED_ROOT_LAYOUT_EXPORTS: ReadonlySet<string>;
|
|
4
6
|
export declare const ROOT_LAYOUT_ROUTE_EXPORTS: ReadonlySet<string>;
|
|
5
7
|
/** Root-layout exports that are plain config rather than components, so a PascalCase check cannot allow them. */
|
|
6
8
|
export declare const RESERVED_ROUTE_CONFIG_EXPORTS: ReadonlySet<string>;
|
package/types/common/types.d.ts
CHANGED
|
@@ -21,7 +21,10 @@ export interface FetchPolicy<_Returns = unknown> {
|
|
|
21
21
|
* A mutation ignores it, since one already sent may have run.
|
|
22
22
|
*/
|
|
23
23
|
signal?: AbortSignal;
|
|
24
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* `pubsub` only: called when the room may have missed events — after a resubscribe, at a frame the server dropped
|
|
26
|
+
* for this socket, or once the server's link to the app's other servers returns — so refetch what the room shows.
|
|
27
|
+
*/
|
|
25
28
|
onResync?: () => void;
|
|
26
29
|
/**
|
|
27
30
|
* Tries again when the server is unreachable, restarting (502/503), too slow (504) or limiting (429, after its
|
|
@@ -36,6 +39,20 @@ export interface FetchPolicy<_Returns = unknown> {
|
|
|
36
39
|
* it, so only a write that is harmless to repeat and safe for anyone to trigger may pass it.
|
|
37
40
|
*/
|
|
38
41
|
duringRender?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Marks a write that changes nothing a query reads back, such as a typing notice: queries already in flight and the
|
|
44
|
+
* pages a link prefetched survive it, where any other write sends them again.
|
|
45
|
+
*/
|
|
46
|
+
keepsReads?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* `false` sends a call made while the server renders a page without the visitor's session or address, so it answers
|
|
49
|
+
* as to a stranger and the render can stay in the route result cache. An explicit `token` and the client's own `jwt`
|
|
50
|
+
* and `clientIp` still go, and a browser's call is unchanged. Only for an endpoint that answers every caller alike:
|
|
51
|
+
* every visitor's render then shares one budget under the server's own address, so give that endpoint
|
|
52
|
+
* `rateLimit: false` (or exempt it) rather than an address budget, or one client forcing renders spends it for
|
|
53
|
+
* everyone.
|
|
54
|
+
*/
|
|
55
|
+
forwardVisitor?: boolean;
|
|
39
56
|
}
|
|
40
57
|
export type SnakeCase<S extends string> = S extends `${infer T}_${infer U}` ? `${Lowercase<T>}_${SnakeCase<U>}` : S;
|
|
41
58
|
export type SnakeCaseObj<T> = {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type Cls, type EnumInstance, type GetStateObject, type PrimitiveScalar } from "akanjs/base";
|
|
2
|
-
import
|
|
2
|
+
import type { FieldObject } from "./fieldInfo.d.ts";
|
|
3
|
+
import type { PurifiedModel } from "./purify.d.ts";
|
|
3
4
|
import type { ConstantType, DefaultOf, DocumentModel, QueryOf } from "./types.d.ts";
|
|
5
|
+
import type { ConstantCls, ConstantModelRef } from "./via.d.ts";
|
|
4
6
|
export declare class ConstantRegistry {
|
|
5
7
|
#private;
|
|
6
8
|
static database: Map<string, ConstantModel<string, any, any, any, any, any, FieldObject, Capitalize<string>, DefaultOf<any>, DefaultOf<any>, GetStateObject<any>, GetStateObject<any>, DefaultOf<any>, any, any, any, any, GetStateObject<any>, GetStateObject<any>>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type GetStateObject } from "akanjs/base";
|
|
2
|
-
import type { FieldProps } from ".";
|
|
2
|
+
import type { FieldProps } from "./fieldInfo.d.ts";
|
|
3
3
|
export type CrystalizeFunc<Model> = (self: GetStateObject<Model>, isChild?: boolean) => Model;
|
|
4
4
|
export type Converter = (value: unknown) => unknown;
|
|
5
5
|
/** Runs one hydration pass, sharing a relation instance across every value in it that names the same id. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FieldObject } from ".";
|
|
1
|
+
import type { FieldObject } from "./fieldInfo.d.ts";
|
|
2
2
|
import type { DefaultOf } from "./types.d.ts";
|
|
3
3
|
export interface DefaultPlan {
|
|
4
4
|
/** Fields whose default is a value that can be shared: a primitive, `null`, or the field's own literal. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ConstantModelRef } from ".";
|
|
1
|
+
import type { ConstantModelRef } from "./via.d.ts";
|
|
2
2
|
export declare const immerify: <T extends object>(modelRef: ConstantModelRef, objOrArr: T) => T;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
1
|
+
export { type CascadeAction, CascadePaths, type CascadeWithPath, cascadeActions } from "./cascadePaths.d.ts";
|
|
2
|
+
export { type ConstantModel, type ConstantOriginKind, ConstantRegistry, type ScalarConstantModel, } from "./constantRegistry.d.ts";
|
|
3
|
+
export { type Converter, type CrystalizeFunc, converterOf, crystalize, withSharedInstances } from "./crystalize.d.ts";
|
|
4
|
+
export { dateAccessorOf, dateSlotOf, isDateSlotField, toDateValue } from "./dateSlot.d.ts";
|
|
5
|
+
export { ConstantField, type ConstantFieldKind, type ConstantFieldProps, type ConstantFieldType, type ConstantFieldTypeInput, type ExtractFieldInfoObject, type FieldBuilder, type FieldInfoObject, type FieldInfoObjectToFieldObject, type FieldObject, type FieldPreset, type FieldProps, type FieldResolver, type FieldToValue, field, fieldPresets, type ParamFieldType, type PlainTypeToFieldType, resolve, } from "./fieldInfo.d.ts";
|
|
6
|
+
export { FieldPlan, type FieldPlanEntry, type FieldPlanKind } from "./fieldPlan.d.ts";
|
|
7
|
+
export { type FieldQueryMeta, fieldQueryMetaOf } from "./fieldQueryMeta.d.ts";
|
|
8
|
+
export { type DefaultPlan, defaultPlanOf, freshPrimitiveValue, getDefault } from "./getDefault.d.ts";
|
|
9
|
+
export { HydrationPlan } from "./hydrationPlan.d.ts";
|
|
10
|
+
export { immerify } from "./immerify.d.ts";
|
|
11
|
+
export { InputParser } from "./inputParser.d.ts";
|
|
12
|
+
export { InvalidInputError } from "./invalidInputError.d.ts";
|
|
13
|
+
export { labelOf } from "./labelOf.d.ts";
|
|
14
|
+
export { agentRead, leakingFieldsOf, type MaskModel, mask, maskFieldsOf, stripSecrets } from "./mask.d.ts";
|
|
15
|
+
export { makePurify, type PurifiedModel, type PurifyFunc, type PurifyFuncV2, type UploadableClientArg } from "./purify.d.ts";
|
|
16
|
+
export { RequestValue } from "./requestValue.d.ts";
|
|
17
|
+
export { deserialize, type Serialized, serialize } from "./serialize.d.ts";
|
|
18
|
+
export { TextFieldPathSet } from "./textFieldPathSet.d.ts";
|
|
19
|
+
export { TextFieldPaths, type TextFieldRole, textFieldRoles } from "./textFieldPaths.d.ts";
|
|
20
|
+
export { BaseInsight, BaseObject, type ConstantType, DEFAULT_PAGE_SIZE, type DefaultOf, type DefaultOfSchema, type DocumentModel, type FieldState, type GetPlainObject, MAX_INT, MAX_PAGE_SIZE, type NonFunctionalKeys, type ProtoAppInfo, type ProtoFile, type ProtoLightFile, type ProtoPatch, type QueryOf, Responsive, resolvePageLimit, resolvePageSkip, responsiveWidths, type ServerArgModel, unsetDate, } from "./types.d.ts";
|
|
21
|
+
export { type ConstantCls, type ConstantMethods, type ConstantModelRef, type ConstantStatics, type DatabaseConstantStatics, type DocumentConstantModelRef, via, } from "./via.d.ts";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Dayjs, type GetStateObject } from "akanjs/base";
|
|
2
|
-
import {
|
|
2
|
+
import type { BaseObject, DefaultOf, DefaultOfSchema } from "./types.d.ts";
|
|
3
|
+
import type { ConstantModelRef } from "./via.d.ts";
|
|
3
4
|
type Purified<O> = O extends BaseObject ? string : O extends BaseObject[] ? string[] : O extends Dayjs ? Dayjs : O extends object ? PurifiedModel<O> : O;
|
|
4
5
|
type PurifiedWithObjectToId<T, StateKeys extends keyof GetStateObject<T> = keyof GetStateObject<T>> = unknown extends T ? T : {
|
|
5
6
|
[K in StateKeys as null extends T[K] ? never : K]: Purified<T[K]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Dayjs, type EnumInstance, type PrimitiveScalar } from "akanjs/base";
|
|
2
|
-
import {
|
|
2
|
+
import type { ConstantModelRef } from "./via.d.ts";
|
|
3
3
|
export type Serialized<O> = O extends (infer V)[] ? Serialized<V>[] : O extends Dayjs ? Date : O extends Map<infer K, infer V> ? {
|
|
4
4
|
[key in K & string]: Serialized<V>;
|
|
5
5
|
} : O extends object ? {
|
|
@@ -84,6 +84,7 @@ export type NonFunctionalKeys<T> = {
|
|
|
84
84
|
[K in keyof T]: T[K] extends (...args: never[]) => unknown ? never : K;
|
|
85
85
|
}[keyof T];
|
|
86
86
|
export declare const unsetDate: Dayjs;
|
|
87
|
+
/** @deprecated Unused by akanjs; write the int32 bound `2 ** 31 - 1` where it is meant. */
|
|
87
88
|
export declare const MAX_INT = 2147483647;
|
|
88
89
|
declare const Responsive_base: import("akanjs/base").EnumInstance<"responsive", "xl" | "lg" | "md" | "sm" | "xs">;
|
|
89
90
|
export declare class Responsive extends Responsive_base {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const agentDictionary: import("./dictInfo.d.ts").ServiceDictInfo<[string, string], "runAgentTurn", "llmUnavailable" | "llmRequestFailed" | "contextOverflow" | "quotaExceeded" | "requestRefused", never>;
|
|
1
|
+
export declare const agentDictionary: import("./dictInfo.d.ts").ServiceDictInfo<[string, string], "runAgentTurn", "llmUnavailable" | "llmRequestFailed" | "contextOverflow" | "quotaExceeded" | "requestRefused" | "accountResolverMissing", never>;
|
|
2
2
|
export declare const agentTurnDictionary: import("./dictInfo.d.ts").ScalarDictInfo<[string, string], "text" | "toolCalls" | "stop", "agentStop", never, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const baseDictionary: import("./dictInfo.d.ts").ServiceDictInfo<[string, string], "ping" | "pingBody" | "pingParam" | "pingQuery" | "wsPing" | "pubsubPing", "payloadTooLarge" | "tooManyRequests" | "gatewayTimeout" | "documentNotFound" | "serverUnreachable" | "serverUnavailable" | "unexpectedResponse" | "immutableField" | "invalidArgument" | "requiredArgument" | "invalidField" | "relationNotFound" | "idempotencyInFlight" | "endpointClosed" | "mutationInApp" | "mutationInRender" | "readOnlyDeployment", "error" | "unauthorized" | "edit" | "ok" | "retry" | "approve" | "
|
|
1
|
+
export declare const baseDictionary: import("./dictInfo.d.ts").ServiceDictInfo<[string, string], "ping" | "pingBody" | "pingParam" | "pingQuery" | "wsPing" | "pubsubPing", "payloadTooLarge" | "tooManyRequests" | "gatewayTimeout" | "documentNotFound" | "serverUnreachable" | "serverUnavailable" | "unexpectedResponse" | "immutableField" | "invalidArgument" | "requiredArgument" | "invalidField" | "relationNotFound" | "idempotencyInFlight" | "endpointClosed" | "mutationInApp" | "mutationInRender" | "readOnlyDeployment", "error" | "unauthorized" | "edit" | "ok" | "retry" | "approve" | "agent" | "view" | "remove" | "skip" | "success" | "save" | "refresh" | "password" | "stop" | "connecting" | "send" | "cancel" | "copy" | "createModel" | "updateModel" | "removeModel" | "somethingWrong" | "connected" | "serverDisconnected" | "refreshing" | "tryReconnecting" | "serverHasProblem" | "checkServerStatus" | "cameraPromptHeader" | "cameraPromptPhoto" | "cameraPromptPicture" | "cameraPromptCancel" | "failed" | "processing" | "processed" | "noData" | "invalidValueError" | "emailInvalidError" | "phoneInvalidError" | "pageLoadFailed" | "loadFailed" | "pageNotFound" | "goBack" | "agentIntro" | "agentPlaceholder" | "agentClear" | "agentQuestion" | "agentToolCard" | "agentAnswer" | "agentListen" | "agentVoiceFailed" | "agentAttach" | "agentAttachRemove" | "agentAttachReading" | "agentReferenceRemove" | "agentReferenceFailed" | "agentAttachTooLarge" | "agentAttachUnsupported" | "agentAttachDuplicate" | "agentAttachTooMany" | "agentAttachTooMuch" | "agentAnswerNeeded" | "agentQueue" | "agentQueuePlaceholder" | "agentQueued" | "agentQueueEdit" | "agentQueueCancel" | "agentToolDone" | "agentToolFailed" | "agentToolRunning" | "agentToolResult" | "agentTokens" | "agentTokensOf" | "agentCompactsAt" | "agentSummarizing" | "agentContinue" | "agentKeepGoing" | "agentCmdNew" | "agentCmdRetry" | "agentCmdCompact" | "agentCmdCopy" | "agentCmdHelp" | "agentCmdTools" | "agentHelpIntro" | "agentHelpNote" | "agentNothingToRetry" | "agentNothingToCompact" | "agentCompacted" | "agentSummary" | "agentBusy" | "agentCopied" | "agentCopyFailed" | "agentToolsHead" | "agentToolsState" | "decline" | "confirmClose" | "textTooShortError" | "textTooLongError" | "selectTooShortError" | "selectTooLongError" | "numberTooSmallError" | "numberTooBigError" | "passwordNotMatchError" | "selectDateError" | "priceUnit" | "passwordConfirm" | "noOptions" | "noSelection" | "addModel" | "createSuccess" | "updateSuccess" | "removeSuccess" | "sureToRemove" | "irreversibleOps" | "typeNameToRemove" | "yesRemove" | "removeMsg" | "confirmMsg" | "perPage" | "cardView" | "tableView" | "exportCsv" | "exportJson" | "actions" | "draftConflict" | "draftApplied" | "draftRestore" | "draftDiscard" | "draftStartOver" | "new">;
|