akanjs 3.0.0-alpha.2 → 3.0.0-alpha.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/README.ko.md +1 -1
- package/README.md +1 -1
- package/base/symbols.ts +4 -0
- package/client/clientRuntime.ts +8 -0
- package/client/cn.ts +7 -0
- package/client/csrTypes.ts +2 -0
- package/client/frameDebug.ts +3 -2
- package/common/Logger.ts +4 -0
- package/common/deepObjectify.ts +21 -7
- package/common/index.ts +14 -0
- package/common/mcpExposure.ts +99 -0
- package/common/pathSet.ts +17 -5
- package/common/routeConvention.ts +30 -0
- package/constant/crystalize.ts +3 -1
- package/constant/fieldInfo.ts +6 -0
- package/constant/getDefault.ts +37 -9
- package/constant/immerify.ts +1 -1
- package/constant/index.ts +2 -0
- package/constant/labelOf.ts +17 -0
- package/constant/mask.ts +60 -0
- package/constant/purify.ts +17 -11
- package/constant/types.ts +14 -12
- package/dictionary/DictionaryLookup.ts +30 -0
- package/dictionary/agent.dictionary.ts +31 -0
- package/dictionary/agentTurn.dictionary.ts +29 -0
- package/dictionary/base.dictionary.ts +8 -0
- package/dictionary/dictInfo.ts +8 -0
- package/dictionary/dictionary.ts +9 -3
- package/dictionary/index.ts +1 -0
- package/document/database.ts +21 -0
- package/document/filterMeta.ts +7 -0
- package/document/index.ts +1 -0
- package/document/into.ts +7 -1
- package/document/noDocumentError.ts +12 -0
- package/fetch/agentTurn.ts +19 -0
- package/fetch/client/fetchClient.ts +71 -13
- package/fetch/client/wsClient.ts +17 -2
- package/fetch/fetchType/endpointFetch.type.ts +10 -4
- package/fetch/index.ts +1 -0
- package/local/apps/serverLifecycle/serverLifecycle-local.db +0 -0
- package/local/apps/serverLifecycle/serverLifecycle-local.db-shm +0 -0
- package/local/apps/serverLifecycle/serverLifecycle-local.db-wal +0 -0
- package/local/apps/serverLifecycle/serverLifecycle-local_solid.db +0 -0
- package/local/apps/serverLifecycle/serverLifecycle-local_solid.db-shm +0 -0
- package/local/apps/serverLifecycle/serverLifecycle-local_solid.db-wal +0 -0
- package/package.json +11 -9
- package/server/akanApp.ts +30 -34
- package/server/akanOption.ts +65 -7
- package/server/akanServer.ts +172 -7
- package/server/animatedImage.ts +83 -0
- package/server/artifact/routeClientCache.ts +14 -0
- package/server/assetEncoding.ts +47 -0
- package/server/devtools/signalSerializer.ts +2 -2
- package/server/devtools/types.ts +2 -2
- package/server/di/diLifecycle.ts +31 -3
- package/server/di/predefinedAdaptor.ts +6 -0
- package/server/imageOptimizer.ts +33 -46
- package/server/index.ts +1 -2
- package/server/mcp/McpAuth.ts +177 -0
- package/server/mcp/McpDispatcher.ts +245 -0
- package/server/mcp/McpEventStream.ts +76 -0
- package/server/mcp/McpExecutionContext.ts +105 -0
- package/server/mcp/McpRouter.ts +591 -0
- package/server/mcp/index.ts +5 -0
- package/server/resolver/CascadeRunner.ts +1 -1
- package/server/resolver/database.resolver.ts +42 -5
- package/server/resolver/service.resolver.ts +29 -0
- package/server/resolver/signal.resolver.ts +16 -1
- package/server/routeTreeBuilder.ts +2 -44
- package/server/rscWorker.tsx +6 -2
- package/server/subRouteIndexDocument.tsx +61 -0
- package/server/systemPageDocument.tsx +2 -2
- package/server/systemPages.tsx +49 -16
- package/server/vendor/akanjs-fetch.ts +1 -0
- package/server/webRouter.ts +159 -35
- package/service/agent.service.ts +14 -0
- package/service/base.service.ts +2 -1
- package/service/index.ts +1 -0
- package/service/predefinedAdaptor/database.adaptor.ts +78 -24
- package/service/predefinedAdaptor/deepseekLlm.ts +230 -0
- package/service/predefinedAdaptor/index.ts +3 -0
- package/service/predefinedAdaptor/insightQuery.ts +183 -0
- package/service/predefinedAdaptor/llm.adaptor.ts +76 -0
- package/service/predefinedAdaptor/role.adaptor.ts +2 -0
- package/service/predefinedAdaptor/schedule.adaptor.ts +12 -5
- package/service/serviceModule.ts +17 -0
- package/service/types.ts +4 -0
- package/signal/agent/AgentCatalogue.ts +165 -0
- package/signal/agent/index.ts +1 -0
- package/signal/agent.signal.ts +42 -0
- package/signal/agentTurn.ts +8 -0
- package/signal/agentTurnStream.ts +48 -0
- package/signal/base.signal.ts +2 -1
- package/signal/endpointInfo.ts +38 -2
- package/signal/guard.ts +13 -1
- package/signal/guards.ts +52 -1
- package/signal/index.ts +6 -0
- package/signal/mcp/McpDocument.ts +286 -0
- package/signal/mcp/McpProgress.ts +106 -0
- package/signal/mcp/McpUriTemplate.ts +85 -0
- package/signal/mcp/Msg.ts +368 -0
- package/signal/mcp/index.ts +5 -0
- package/signal/mcp/mcpProtocol.ts +120 -0
- package/signal/middleware.ts +7 -3
- package/signal/openapi/openapi.ts +32 -171
- package/signal/schema/JsonSchemaBuilder.ts +211 -0
- package/signal/schema/index.ts +1 -0
- package/signal/signalContext.ts +85 -9
- package/signal/slice.ts +9 -9
- package/signal/types.ts +1 -1
- package/store/action.ts +11 -22
- package/store/actionTag.ts +33 -0
- package/store/agent/AgentBridge.ts +323 -0
- package/store/agent/AgentContext.ts +74 -0
- package/store/agent/AgentPrompts.ts +82 -0
- package/store/agent/AgentVisibility.ts +68 -0
- package/store/agent/ScreenReader.ts +208 -0
- package/store/agent/StoreCatalogue.ts +351 -0
- package/store/agent/StoreSurfaceSource.ts +122 -0
- package/store/agent/index.ts +9 -0
- package/store/agent/storeSurface.ts +28 -0
- package/store/agent/types.ts +50 -0
- package/store/agentic/StToolBuilder.ts +199 -0
- package/store/agentic/attachAgentic.ts +22 -0
- package/store/agentic/index.ts +5 -0
- package/store/agentic/readableValue.ts +17 -0
- package/store/agentic/useStExpose.ts +18 -0
- package/store/agentic/useStState.ts +35 -0
- package/store/baseSt.ts +7 -0
- package/store/databaseStateNames.ts +31 -0
- package/store/formSetterNames.ts +21 -0
- package/store/index.ts +8 -0
- package/store/rootStore.ts +3 -1
- package/store/sliceRole.ts +36 -0
- package/store/state.ts +2 -12
- package/store/store.ts +19 -1
- package/store/storeInstance.ts +165 -20
- package/store/storeRegistry.ts +16 -1
- package/store/types.ts +18 -0
- package/store/withSelector.ts +7 -8
- package/test/registerDom.ts +4 -0
- package/types/base/symbols.d.ts +4 -0
- package/types/client/cn.d.ts +5 -0
- package/types/client/csrTypes.d.ts +2 -0
- package/types/common/Logger.d.ts +2 -0
- package/types/common/deepObjectify.d.ts +4 -2
- package/types/common/index.d.ts +2 -1
- package/types/common/mcpExposure.d.ts +60 -0
- package/types/common/routeConvention.d.ts +8 -0
- package/types/constant/fieldInfo.d.ts +1 -0
- package/types/constant/getDefault.d.ts +5 -0
- package/types/constant/index.d.ts +2 -0
- package/types/constant/labelOf.d.ts +6 -0
- package/types/constant/mask.d.ts +34 -0
- package/types/constant/purify.d.ts +2 -2
- package/types/constant/types.d.ts +2 -2
- package/types/dictionary/DictionaryLookup.d.ts +14 -0
- package/types/dictionary/agent.dictionary.d.ts +1 -0
- package/types/dictionary/agentTurn.dictionary.d.ts +1 -0
- package/types/dictionary/base.dictionary.d.ts +1 -1
- package/types/dictionary/dictInfo.d.ts +6 -0
- package/types/dictionary/dictionary.d.ts +11 -9
- package/types/dictionary/index.d.ts +1 -0
- package/types/document/database.d.ts +20 -0
- package/types/document/filterMeta.d.ts +1 -0
- package/types/document/index.d.ts +1 -0
- package/types/document/into.d.ts +6 -1
- package/types/document/noDocumentError.d.ts +12 -0
- package/types/fetch/agentTurn.d.ts +593 -0
- package/types/fetch/client/fetchClient.d.ts +10 -0
- package/types/fetch/fetchType/endpointFetch.type.d.ts +5 -3
- package/types/fetch/index.d.ts +1 -0
- package/types/server/akanOption.d.ts +35 -7
- package/types/server/akanServer.d.ts +44 -1
- package/types/server/animatedImage.d.ts +7 -0
- package/types/server/artifact/routeClientCache.d.ts +6 -0
- package/types/server/assetEncoding.d.ts +7 -0
- package/types/server/devtools/types.d.ts +2 -2
- package/types/server/di/predefinedAdaptor.d.ts +4 -1
- package/types/server/index.d.ts +0 -2
- package/types/server/mcp/McpAuth.d.ts +62 -0
- package/types/server/mcp/McpDispatcher.d.ts +54 -0
- package/types/server/mcp/McpEventStream.d.ts +18 -0
- package/types/server/mcp/McpExecutionContext.d.ts +44 -0
- package/types/server/mcp/McpRouter.d.ts +60 -0
- package/types/server/mcp/index.d.ts +5 -0
- package/types/server/mcp.d.ts +1 -0
- package/types/server/subRouteIndexDocument.d.ts +8 -0
- package/types/server/systemPageDocument.d.ts +1 -0
- package/types/server/systemPages.d.ts +5 -0
- package/types/server/vendor/akanjs-fetch.d.ts +1 -0
- package/types/service/agent.service.d.ts +12 -0
- package/types/service/base.service.d.ts +4 -0
- package/types/service/index.d.ts +1 -0
- package/types/service/predefinedAdaptor/database.adaptor.d.ts +24 -2
- package/types/service/predefinedAdaptor/deepseekLlm.d.ts +64 -0
- package/types/service/predefinedAdaptor/index.d.ts +3 -0
- package/types/service/predefinedAdaptor/insightQuery.d.ts +50 -0
- package/types/service/predefinedAdaptor/llm.adaptor.d.ts +68 -0
- package/types/service/predefinedAdaptor/role.adaptor.d.ts +2 -0
- package/types/service/predefinedAdaptor/schedule.adaptor.d.ts +10 -6
- package/types/service/types.d.ts +4 -1
- package/types/signal/agent/AgentCatalogue.d.ts +100 -0
- package/types/signal/agent/index.d.ts +1 -0
- package/types/signal/agent.d.ts +1 -0
- package/types/signal/agent.signal.d.ts +29 -0
- package/types/signal/agentTurn.d.ts +9 -0
- package/types/signal/agentTurnStream.d.ts +16 -0
- package/types/signal/base.signal.d.ts +1 -1
- package/types/signal/endpointInfo.d.ts +21 -3
- package/types/signal/guard.d.ts +11 -0
- package/types/signal/guards.d.ts +22 -1
- package/types/signal/index.d.ts +6 -0
- package/types/signal/mcp/McpDocument.d.ts +65 -0
- package/types/signal/mcp/McpProgress.d.ts +40 -0
- package/types/signal/mcp/McpUriTemplate.d.ts +26 -0
- package/types/signal/mcp/Msg.d.ts +143 -0
- package/types/signal/mcp/index.d.ts +5 -0
- package/types/signal/mcp/mcpProtocol.d.ts +107 -0
- package/types/signal/mcp.d.ts +1 -0
- package/types/signal/openapi/openapi.d.ts +3 -3
- package/types/signal/schema/JsonSchemaBuilder.d.ts +47 -0
- package/types/signal/schema/index.d.ts +1 -0
- package/types/signal/schema.d.ts +1 -0
- package/types/signal/signalContext.d.ts +16 -1
- package/types/signal/slice.d.ts +8 -8
- package/types/signal/types.d.ts +1 -1
- package/types/store/actionTag.d.ts +21 -0
- package/types/store/agent/AgentBridge.d.ts +77 -0
- package/types/store/agent/AgentContext.d.ts +16 -0
- package/types/store/agent/AgentPrompts.d.ts +31 -0
- package/types/store/agent/AgentVisibility.d.ts +21 -0
- package/types/store/agent/ScreenReader.d.ts +11 -0
- package/types/store/agent/StoreCatalogue.d.ts +26 -0
- package/types/store/agent/StoreSurfaceSource.d.ts +18 -0
- package/types/store/agent/index.d.ts +9 -0
- package/types/store/agent/storeSurface.d.ts +14 -0
- package/types/store/agent/types.d.ts +49 -0
- package/types/store/agent.d.ts +1 -0
- package/types/store/agentic/StToolBuilder.d.ts +41 -0
- package/types/store/agentic/attachAgentic.d.ts +14 -0
- package/types/store/agentic/index.d.ts +5 -0
- package/types/store/agentic/readableValue.d.ts +3 -0
- package/types/store/agentic/useStExpose.d.ts +8 -0
- package/types/store/agentic/useStState.d.ts +12 -0
- package/types/store/agentic.d.ts +1 -0
- package/types/store/baseSt.d.ts +29 -22
- package/types/store/databaseStateNames.d.ts +25 -0
- package/types/store/formSetterNames.d.ts +16 -0
- package/types/store/index.d.ts +7 -0
- package/types/store/rootStore.d.ts +5 -1
- package/types/store/sliceRole.d.ts +25 -0
- package/types/store/store.d.ts +7 -2
- package/types/store/storeInstance.d.ts +33 -1
- package/types/store/storeRegistry.d.ts +5 -0
- package/types/store/types.d.ts +15 -0
- package/types/store/withSelector.d.ts +7 -8
- package/types/test/registerDom.d.ts +1 -0
- package/types/ui/Agent/Approval.d.ts +7 -0
- package/types/ui/Agent/Bubble.d.ts +13 -0
- package/types/ui/Agent/Chat.d.ts +24 -0
- package/types/ui/Agent/Context.d.ts +9 -0
- package/types/ui/Agent/Dock.d.ts +16 -0
- package/types/ui/Agent/Guide.d.ts +9 -0
- package/types/ui/Agent/Section.d.ts +10 -0
- package/types/ui/Agent/StateKey.d.ts +16 -0
- package/types/ui/Agent/Tool.d.ts +15 -0
- package/types/ui/Agent/Transcript.d.ts +13 -0
- package/types/ui/Agent/Zone.d.ts +23 -0
- package/types/ui/Agent/fetchRunner.d.ts +12 -0
- package/types/ui/Agent/index.d.ts +17 -0
- package/types/ui/Agent/index_.d.ts +1 -0
- package/types/ui/Agent/sessionHistory.d.ts +12 -0
- package/types/ui/Agent.d.ts +1 -0
- package/types/ui/Badge.d.ts +1 -1
- package/types/ui/Button.d.ts +1 -1
- package/types/ui/CsrImage.d.ts +1 -1
- package/types/ui/Dropdown.d.ts +2 -0
- package/types/ui/Image.d.ts +3 -3
- package/types/ui/Layout/BottomInset.d.ts +2 -1
- package/types/ui/Layout/index.d.ts +1 -1
- package/types/ui/Signal/style.d.ts +4 -1
- package/types/ui/UiOverride/context.d.ts +14 -2
- package/types/ui/agentAttrs.d.ts +14 -0
- package/types/ui/index.d.ts +4 -1
- package/types/ui/overlayLayer.d.ts +24 -0
- package/types/ui/recipe/badgeRecipe.d.ts +7 -3
- package/types/ui/recipe/buttonRecipe.d.ts +7 -3
- package/types/ui/recipe/inputRecipe.d.ts +5 -1
- package/types/vendor/use-agentic/AgentProvider.d.ts +18 -0
- package/types/vendor/use-agentic/AgentScope.d.ts +9 -0
- package/types/vendor/use-agentic/AgentSession.d.ts +50 -0
- package/types/vendor/use-agentic/Agentic.d.ts +21 -0
- package/types/vendor/use-agentic/AgenticSurface.d.ts +44 -0
- package/types/vendor/use-agentic/httpRunner.d.ts +15 -0
- package/types/vendor/use-agentic/index.d.ts +13 -0
- package/types/vendor/use-agentic/surfaceContext.d.ts +5 -0
- package/types/vendor/use-agentic/types.d.ts +133 -0
- package/types/vendor/use-agentic/useAgent.d.ts +4 -0
- package/types/vendor/use-agentic/useAgentGuide.d.ts +6 -0
- package/types/vendor/use-agentic/useAgentResource.d.ts +7 -0
- package/types/vendor/use-agentic/useAgentState.d.ts +13 -0
- package/types/vendor/use-agentic/useAgentTool.d.ts +16 -0
- package/types/vendor/use-agentic.d.ts +1 -0
- package/types/webkit/index.d.ts +3 -0
- package/types/webkit/lazy.d.ts +12 -0
- package/types/webkit/useCsrValues.d.ts +3 -3
- package/types/webkit/useEscapeKey.d.ts +5 -0
- package/types/webkit/useFrameRuntime.d.ts +6 -1
- package/types/webkit/useScreenScope.d.ts +18 -0
- package/ui/Agent/Approval.tsx +29 -0
- package/ui/Agent/Bubble.tsx +74 -0
- package/ui/Agent/Chat.tsx +225 -0
- package/ui/Agent/Context.tsx +38 -0
- package/ui/Agent/Dock.tsx +72 -0
- package/ui/Agent/Guide.tsx +16 -0
- package/ui/Agent/Section.tsx +24 -0
- package/ui/Agent/StateKey.tsx +44 -0
- package/ui/Agent/Tool.tsx +66 -0
- package/ui/Agent/Transcript.tsx +33 -0
- package/ui/Agent/Zone.tsx +48 -0
- package/ui/Agent/fetchRunner.ts +30 -0
- package/ui/Agent/index.ts +12 -0
- package/ui/Agent/index_.tsx +4 -0
- package/ui/Agent/sessionHistory.ts +33 -0
- package/ui/Badge.tsx +3 -3
- package/ui/BottomSheet.tsx +5 -0
- package/ui/Button.tsx +6 -2
- package/ui/Constant/Doc.tsx +1 -1
- package/ui/CsrImage.tsx +1 -1
- package/ui/Data/ListContainer.tsx +1 -1
- package/ui/DatePicker.tsx +5 -4
- package/ui/Dialog/Modal.tsx +12 -15
- package/ui/DraggableList.tsx +3 -1
- package/ui/Dropdown.tsx +33 -11
- package/ui/Field.tsx +30 -16
- package/ui/Image.tsx +3 -3
- package/ui/Input.tsx +14 -5
- package/ui/Layout/BottomInset.tsx +6 -1
- package/ui/Load/Units.tsx +11 -2
- package/ui/Load/View.tsx +7 -2
- package/ui/Loading/ProgressBar.tsx +8 -1
- package/ui/Menu.tsx +7 -8
- package/ui/Model/EditModal.tsx +37 -2
- package/ui/Model/SureToRemove.tsx +2 -1
- package/ui/Model/index_.tsx +42 -15
- package/ui/ObjectId.tsx +3 -4
- package/ui/Pagination.tsx +3 -4
- package/ui/Popconfirm.tsx +8 -7
- package/ui/Select.tsx +6 -4
- package/ui/Signal/RestApi.tsx +43 -16
- package/ui/Signal/WebSocket.tsx +1 -1
- package/ui/Signal/style.ts +6 -1
- package/ui/Switch.tsx +2 -0
- package/ui/System/CSR.tsx +6 -2
- package/ui/System/ThemeToggle.tsx +55 -33
- package/ui/ToggleSelect.tsx +4 -3
- package/ui/Tooltip.tsx +2 -1
- package/ui/UiOverride/context.ts +14 -2
- package/ui/agentAttrs.ts +19 -0
- package/ui/index.ts +10 -1
- package/ui/overlayLayer.ts +39 -0
- package/ui/recipe/badgeRecipe.ts +22 -3
- package/ui/recipe/buttonRecipe.ts +51 -2
- package/ui/recipe/factory.ts +2 -2
- package/ui/recipe/inputRecipe.ts +18 -4
- package/vendor/use-agentic/AgentProvider.tsx +39 -0
- package/vendor/use-agentic/AgentScope.tsx +20 -0
- package/vendor/use-agentic/AgentSession.ts +292 -0
- package/vendor/use-agentic/Agentic.tsx +44 -0
- package/vendor/use-agentic/AgenticSurface.ts +294 -0
- package/vendor/use-agentic/WIRE.md +57 -0
- package/vendor/use-agentic/httpRunner.ts +115 -0
- package/vendor/use-agentic/index.ts +14 -0
- package/vendor/use-agentic/surfaceContext.ts +9 -0
- package/vendor/use-agentic/types.ts +144 -0
- package/vendor/use-agentic/useAgent.ts +17 -0
- package/vendor/use-agentic/useAgentGuide.ts +16 -0
- package/vendor/use-agentic/useAgentResource.ts +30 -0
- package/vendor/use-agentic/useAgentState.ts +61 -0
- package/vendor/use-agentic/useAgentTool.ts +55 -0
- package/webkit/bootCsr.tsx +2 -33
- package/webkit/index.ts +3 -0
- package/webkit/lazy.tsx +27 -3
- package/webkit/useCsrValues.ts +121 -4
- package/webkit/useEscapeKey.tsx +42 -0
- package/webkit/useFrameRuntime.ts +65 -32
- package/webkit/useScreenScope.tsx +49 -0
|
@@ -0,0 +1,593 @@
|
|
|
1
|
+
import { Any } from "akanjs/base";
|
|
2
|
+
declare const AgentStop_base: import("akanjs/base").EnumInstance<"agentStop", "end" | "toolUse">;
|
|
3
|
+
export declare class AgentStop extends AgentStop_base {
|
|
4
|
+
}
|
|
5
|
+
declare const AgentTurn_base: import("akanjs/constant").ConstantCls<import("akanjs/constant").ExtractFieldInfoObject<{
|
|
6
|
+
text: {
|
|
7
|
+
readonly value: StringConstructor;
|
|
8
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
9
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
10
|
+
explicitType: any;
|
|
11
|
+
mapValue: any;
|
|
12
|
+
_isEnum: false;
|
|
13
|
+
_isPrimitive: true;
|
|
14
|
+
_isScalar: false;
|
|
15
|
+
_isRelation: false;
|
|
16
|
+
_isHidden: false;
|
|
17
|
+
_isSecret: false;
|
|
18
|
+
_isMap: false;
|
|
19
|
+
optional(): {
|
|
20
|
+
readonly value: StringConstructor | null;
|
|
21
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
22
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
23
|
+
explicitType: any;
|
|
24
|
+
mapValue: any;
|
|
25
|
+
_isEnum: false;
|
|
26
|
+
_isPrimitive: true;
|
|
27
|
+
_isScalar: false;
|
|
28
|
+
_isRelation: false;
|
|
29
|
+
_isHidden: false;
|
|
30
|
+
_isSecret: false;
|
|
31
|
+
_isMap: false;
|
|
32
|
+
optional(): /*elided*/ any;
|
|
33
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
34
|
+
toField(): import("akanjs/constant").ConstantField<"property", StringConstructor | null, any, any, true, false, false, true, false, false, false, false, {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
}>;
|
|
37
|
+
};
|
|
38
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
39
|
+
toField(): import("akanjs/constant").ConstantField<"property", StringConstructor, any, any, false, false, false, true, false, false, false, false, {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}>;
|
|
42
|
+
};
|
|
43
|
+
toolCalls: {
|
|
44
|
+
readonly value: (typeof Any)[];
|
|
45
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
46
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
47
|
+
explicitType: any;
|
|
48
|
+
mapValue: any;
|
|
49
|
+
_isEnum: false;
|
|
50
|
+
_isPrimitive: true;
|
|
51
|
+
_isScalar: false;
|
|
52
|
+
_isRelation: false;
|
|
53
|
+
_isHidden: false;
|
|
54
|
+
_isSecret: false;
|
|
55
|
+
_isMap: false;
|
|
56
|
+
optional(): {
|
|
57
|
+
readonly value: (typeof Any)[] | null;
|
|
58
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
59
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
60
|
+
explicitType: any;
|
|
61
|
+
mapValue: any;
|
|
62
|
+
_isEnum: false;
|
|
63
|
+
_isPrimitive: true;
|
|
64
|
+
_isScalar: false;
|
|
65
|
+
_isRelation: false;
|
|
66
|
+
_isHidden: false;
|
|
67
|
+
_isSecret: false;
|
|
68
|
+
_isMap: false;
|
|
69
|
+
optional(): /*elided*/ any;
|
|
70
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
71
|
+
toField(): import("akanjs/constant").ConstantField<"property", (typeof Any)[] | null, any, any, true, false, false, true, false, false, false, false, {
|
|
72
|
+
[key: string]: any;
|
|
73
|
+
}>;
|
|
74
|
+
};
|
|
75
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
76
|
+
toField(): import("akanjs/constant").ConstantField<"property", (typeof Any)[], any, any, false, false, false, true, false, false, false, false, {
|
|
77
|
+
[key: string]: any;
|
|
78
|
+
}>;
|
|
79
|
+
};
|
|
80
|
+
stop: {
|
|
81
|
+
readonly value: typeof AgentStop;
|
|
82
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
83
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
84
|
+
explicitType: any;
|
|
85
|
+
mapValue: any;
|
|
86
|
+
_isEnum: true;
|
|
87
|
+
_isPrimitive: false;
|
|
88
|
+
_isScalar: false;
|
|
89
|
+
_isRelation: false;
|
|
90
|
+
_isHidden: false;
|
|
91
|
+
_isSecret: false;
|
|
92
|
+
_isMap: false;
|
|
93
|
+
optional(): {
|
|
94
|
+
readonly value: typeof AgentStop | null;
|
|
95
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
96
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
97
|
+
explicitType: any;
|
|
98
|
+
mapValue: any;
|
|
99
|
+
_isEnum: true;
|
|
100
|
+
_isPrimitive: false;
|
|
101
|
+
_isScalar: false;
|
|
102
|
+
_isRelation: false;
|
|
103
|
+
_isHidden: false;
|
|
104
|
+
_isSecret: false;
|
|
105
|
+
_isMap: false;
|
|
106
|
+
optional(): /*elided*/ any;
|
|
107
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
108
|
+
toField(): import("akanjs/constant").ConstantField<"property", typeof AgentStop | null, any, any, true, false, true, false, false, false, false, false, {
|
|
109
|
+
[key: string]: any;
|
|
110
|
+
}>;
|
|
111
|
+
};
|
|
112
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
113
|
+
toField(): import("akanjs/constant").ConstantField<"property", typeof AgentStop, any, any, false, false, true, false, false, false, false, false, {
|
|
114
|
+
[key: string]: any;
|
|
115
|
+
}>;
|
|
116
|
+
};
|
|
117
|
+
}>, import("akanjs/constant").FieldInfoObjectToFieldObject<{
|
|
118
|
+
text: {
|
|
119
|
+
readonly value: StringConstructor;
|
|
120
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
121
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
122
|
+
explicitType: any;
|
|
123
|
+
mapValue: any;
|
|
124
|
+
_isEnum: false;
|
|
125
|
+
_isPrimitive: true;
|
|
126
|
+
_isScalar: false;
|
|
127
|
+
_isRelation: false;
|
|
128
|
+
_isHidden: false;
|
|
129
|
+
_isSecret: false;
|
|
130
|
+
_isMap: false;
|
|
131
|
+
optional(): {
|
|
132
|
+
readonly value: StringConstructor | null;
|
|
133
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
134
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
135
|
+
explicitType: any;
|
|
136
|
+
mapValue: any;
|
|
137
|
+
_isEnum: false;
|
|
138
|
+
_isPrimitive: true;
|
|
139
|
+
_isScalar: false;
|
|
140
|
+
_isRelation: false;
|
|
141
|
+
_isHidden: false;
|
|
142
|
+
_isSecret: false;
|
|
143
|
+
_isMap: false;
|
|
144
|
+
optional(): /*elided*/ any;
|
|
145
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
146
|
+
toField(): import("akanjs/constant").ConstantField<"property", StringConstructor | null, any, any, true, false, false, true, false, false, false, false, {
|
|
147
|
+
[key: string]: any;
|
|
148
|
+
}>;
|
|
149
|
+
};
|
|
150
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
151
|
+
toField(): import("akanjs/constant").ConstantField<"property", StringConstructor, any, any, false, false, false, true, false, false, false, false, {
|
|
152
|
+
[key: string]: any;
|
|
153
|
+
}>;
|
|
154
|
+
};
|
|
155
|
+
toolCalls: {
|
|
156
|
+
readonly value: (typeof Any)[];
|
|
157
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
158
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
159
|
+
explicitType: any;
|
|
160
|
+
mapValue: any;
|
|
161
|
+
_isEnum: false;
|
|
162
|
+
_isPrimitive: true;
|
|
163
|
+
_isScalar: false;
|
|
164
|
+
_isRelation: false;
|
|
165
|
+
_isHidden: false;
|
|
166
|
+
_isSecret: false;
|
|
167
|
+
_isMap: false;
|
|
168
|
+
optional(): {
|
|
169
|
+
readonly value: (typeof Any)[] | null;
|
|
170
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
171
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
172
|
+
explicitType: any;
|
|
173
|
+
mapValue: any;
|
|
174
|
+
_isEnum: false;
|
|
175
|
+
_isPrimitive: true;
|
|
176
|
+
_isScalar: false;
|
|
177
|
+
_isRelation: false;
|
|
178
|
+
_isHidden: false;
|
|
179
|
+
_isSecret: false;
|
|
180
|
+
_isMap: false;
|
|
181
|
+
optional(): /*elided*/ any;
|
|
182
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
183
|
+
toField(): import("akanjs/constant").ConstantField<"property", (typeof Any)[] | null, any, any, true, false, false, true, false, false, false, false, {
|
|
184
|
+
[key: string]: any;
|
|
185
|
+
}>;
|
|
186
|
+
};
|
|
187
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
188
|
+
toField(): import("akanjs/constant").ConstantField<"property", (typeof Any)[], any, any, false, false, false, true, false, false, false, false, {
|
|
189
|
+
[key: string]: any;
|
|
190
|
+
}>;
|
|
191
|
+
};
|
|
192
|
+
stop: {
|
|
193
|
+
readonly value: typeof AgentStop;
|
|
194
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
195
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
196
|
+
explicitType: any;
|
|
197
|
+
mapValue: any;
|
|
198
|
+
_isEnum: true;
|
|
199
|
+
_isPrimitive: false;
|
|
200
|
+
_isScalar: false;
|
|
201
|
+
_isRelation: false;
|
|
202
|
+
_isHidden: false;
|
|
203
|
+
_isSecret: false;
|
|
204
|
+
_isMap: false;
|
|
205
|
+
optional(): {
|
|
206
|
+
readonly value: typeof AgentStop | null;
|
|
207
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
208
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
209
|
+
explicitType: any;
|
|
210
|
+
mapValue: any;
|
|
211
|
+
_isEnum: true;
|
|
212
|
+
_isPrimitive: false;
|
|
213
|
+
_isScalar: false;
|
|
214
|
+
_isRelation: false;
|
|
215
|
+
_isHidden: false;
|
|
216
|
+
_isSecret: false;
|
|
217
|
+
_isMap: false;
|
|
218
|
+
optional(): /*elided*/ any;
|
|
219
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
220
|
+
toField(): import("akanjs/constant").ConstantField<"property", typeof AgentStop | null, any, any, true, false, true, false, false, false, false, false, {
|
|
221
|
+
[key: string]: any;
|
|
222
|
+
}>;
|
|
223
|
+
};
|
|
224
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
225
|
+
toField(): import("akanjs/constant").ConstantField<"property", typeof AgentStop, any, any, false, false, true, false, false, false, false, false, {
|
|
226
|
+
[key: string]: any;
|
|
227
|
+
}>;
|
|
228
|
+
};
|
|
229
|
+
}>, import("akanjs/constant").ExtractFieldInfoObject<{
|
|
230
|
+
text: {
|
|
231
|
+
readonly value: StringConstructor;
|
|
232
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
233
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
234
|
+
explicitType: any;
|
|
235
|
+
mapValue: any;
|
|
236
|
+
_isEnum: false;
|
|
237
|
+
_isPrimitive: true;
|
|
238
|
+
_isScalar: false;
|
|
239
|
+
_isRelation: false;
|
|
240
|
+
_isHidden: false;
|
|
241
|
+
_isSecret: false;
|
|
242
|
+
_isMap: false;
|
|
243
|
+
optional(): {
|
|
244
|
+
readonly value: StringConstructor | null;
|
|
245
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
246
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
247
|
+
explicitType: any;
|
|
248
|
+
mapValue: any;
|
|
249
|
+
_isEnum: false;
|
|
250
|
+
_isPrimitive: true;
|
|
251
|
+
_isScalar: false;
|
|
252
|
+
_isRelation: false;
|
|
253
|
+
_isHidden: false;
|
|
254
|
+
_isSecret: false;
|
|
255
|
+
_isMap: false;
|
|
256
|
+
optional(): /*elided*/ any;
|
|
257
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
258
|
+
toField(): import("akanjs/constant").ConstantField<"property", StringConstructor | null, any, any, true, false, false, true, false, false, false, false, {
|
|
259
|
+
[key: string]: any;
|
|
260
|
+
}>;
|
|
261
|
+
};
|
|
262
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
263
|
+
toField(): import("akanjs/constant").ConstantField<"property", StringConstructor, any, any, false, false, false, true, false, false, false, false, {
|
|
264
|
+
[key: string]: any;
|
|
265
|
+
}>;
|
|
266
|
+
};
|
|
267
|
+
toolCalls: {
|
|
268
|
+
readonly value: (typeof Any)[];
|
|
269
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
270
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
271
|
+
explicitType: any;
|
|
272
|
+
mapValue: any;
|
|
273
|
+
_isEnum: false;
|
|
274
|
+
_isPrimitive: true;
|
|
275
|
+
_isScalar: false;
|
|
276
|
+
_isRelation: false;
|
|
277
|
+
_isHidden: false;
|
|
278
|
+
_isSecret: false;
|
|
279
|
+
_isMap: false;
|
|
280
|
+
optional(): {
|
|
281
|
+
readonly value: (typeof Any)[] | null;
|
|
282
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
283
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
284
|
+
explicitType: any;
|
|
285
|
+
mapValue: any;
|
|
286
|
+
_isEnum: false;
|
|
287
|
+
_isPrimitive: true;
|
|
288
|
+
_isScalar: false;
|
|
289
|
+
_isRelation: false;
|
|
290
|
+
_isHidden: false;
|
|
291
|
+
_isSecret: false;
|
|
292
|
+
_isMap: false;
|
|
293
|
+
optional(): /*elided*/ any;
|
|
294
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
295
|
+
toField(): import("akanjs/constant").ConstantField<"property", (typeof Any)[] | null, any, any, true, false, false, true, false, false, false, false, {
|
|
296
|
+
[key: string]: any;
|
|
297
|
+
}>;
|
|
298
|
+
};
|
|
299
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
300
|
+
toField(): import("akanjs/constant").ConstantField<"property", (typeof Any)[], any, any, false, false, false, true, false, false, false, false, {
|
|
301
|
+
[key: string]: any;
|
|
302
|
+
}>;
|
|
303
|
+
};
|
|
304
|
+
stop: {
|
|
305
|
+
readonly value: typeof AgentStop;
|
|
306
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
307
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
308
|
+
explicitType: any;
|
|
309
|
+
mapValue: any;
|
|
310
|
+
_isEnum: true;
|
|
311
|
+
_isPrimitive: false;
|
|
312
|
+
_isScalar: false;
|
|
313
|
+
_isRelation: false;
|
|
314
|
+
_isHidden: false;
|
|
315
|
+
_isSecret: false;
|
|
316
|
+
_isMap: false;
|
|
317
|
+
optional(): {
|
|
318
|
+
readonly value: typeof AgentStop | null;
|
|
319
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
320
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
321
|
+
explicitType: any;
|
|
322
|
+
mapValue: any;
|
|
323
|
+
_isEnum: true;
|
|
324
|
+
_isPrimitive: false;
|
|
325
|
+
_isScalar: false;
|
|
326
|
+
_isRelation: false;
|
|
327
|
+
_isHidden: false;
|
|
328
|
+
_isSecret: false;
|
|
329
|
+
_isMap: false;
|
|
330
|
+
optional(): /*elided*/ any;
|
|
331
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
332
|
+
toField(): import("akanjs/constant").ConstantField<"property", typeof AgentStop | null, any, any, true, false, true, false, false, false, false, false, {
|
|
333
|
+
[key: string]: any;
|
|
334
|
+
}>;
|
|
335
|
+
};
|
|
336
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
337
|
+
toField(): import("akanjs/constant").ConstantField<"property", typeof AgentStop, any, any, false, false, true, false, false, false, false, false, {
|
|
338
|
+
[key: string]: any;
|
|
339
|
+
}>;
|
|
340
|
+
};
|
|
341
|
+
}>, import("akanjs/constant").FieldInfoObjectToFieldObject<{
|
|
342
|
+
text: {
|
|
343
|
+
readonly value: StringConstructor;
|
|
344
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
345
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
346
|
+
explicitType: any;
|
|
347
|
+
mapValue: any;
|
|
348
|
+
_isEnum: false;
|
|
349
|
+
_isPrimitive: true;
|
|
350
|
+
_isScalar: false;
|
|
351
|
+
_isRelation: false;
|
|
352
|
+
_isHidden: false;
|
|
353
|
+
_isSecret: false;
|
|
354
|
+
_isMap: false;
|
|
355
|
+
optional(): {
|
|
356
|
+
readonly value: StringConstructor | null;
|
|
357
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
358
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
359
|
+
explicitType: any;
|
|
360
|
+
mapValue: any;
|
|
361
|
+
_isEnum: false;
|
|
362
|
+
_isPrimitive: true;
|
|
363
|
+
_isScalar: false;
|
|
364
|
+
_isRelation: false;
|
|
365
|
+
_isHidden: false;
|
|
366
|
+
_isSecret: false;
|
|
367
|
+
_isMap: false;
|
|
368
|
+
optional(): /*elided*/ any;
|
|
369
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
370
|
+
toField(): import("akanjs/constant").ConstantField<"property", StringConstructor | null, any, any, true, false, false, true, false, false, false, false, {
|
|
371
|
+
[key: string]: any;
|
|
372
|
+
}>;
|
|
373
|
+
};
|
|
374
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
375
|
+
toField(): import("akanjs/constant").ConstantField<"property", StringConstructor, any, any, false, false, false, true, false, false, false, false, {
|
|
376
|
+
[key: string]: any;
|
|
377
|
+
}>;
|
|
378
|
+
};
|
|
379
|
+
toolCalls: {
|
|
380
|
+
readonly value: (typeof Any)[];
|
|
381
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
382
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
383
|
+
explicitType: any;
|
|
384
|
+
mapValue: any;
|
|
385
|
+
_isEnum: false;
|
|
386
|
+
_isPrimitive: true;
|
|
387
|
+
_isScalar: false;
|
|
388
|
+
_isRelation: false;
|
|
389
|
+
_isHidden: false;
|
|
390
|
+
_isSecret: false;
|
|
391
|
+
_isMap: false;
|
|
392
|
+
optional(): {
|
|
393
|
+
readonly value: (typeof Any)[] | null;
|
|
394
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
395
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
396
|
+
explicitType: any;
|
|
397
|
+
mapValue: any;
|
|
398
|
+
_isEnum: false;
|
|
399
|
+
_isPrimitive: true;
|
|
400
|
+
_isScalar: false;
|
|
401
|
+
_isRelation: false;
|
|
402
|
+
_isHidden: false;
|
|
403
|
+
_isSecret: false;
|
|
404
|
+
_isMap: false;
|
|
405
|
+
optional(): /*elided*/ any;
|
|
406
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
407
|
+
toField(): import("akanjs/constant").ConstantField<"property", (typeof Any)[] | null, any, any, true, false, false, true, false, false, false, false, {
|
|
408
|
+
[key: string]: any;
|
|
409
|
+
}>;
|
|
410
|
+
};
|
|
411
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
412
|
+
toField(): import("akanjs/constant").ConstantField<"property", (typeof Any)[], any, any, false, false, false, true, false, false, false, false, {
|
|
413
|
+
[key: string]: any;
|
|
414
|
+
}>;
|
|
415
|
+
};
|
|
416
|
+
stop: {
|
|
417
|
+
readonly value: typeof AgentStop;
|
|
418
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
419
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
420
|
+
explicitType: any;
|
|
421
|
+
mapValue: any;
|
|
422
|
+
_isEnum: true;
|
|
423
|
+
_isPrimitive: false;
|
|
424
|
+
_isScalar: false;
|
|
425
|
+
_isRelation: false;
|
|
426
|
+
_isHidden: false;
|
|
427
|
+
_isSecret: false;
|
|
428
|
+
_isMap: false;
|
|
429
|
+
optional(): {
|
|
430
|
+
readonly value: typeof AgentStop | null;
|
|
431
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
432
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
433
|
+
explicitType: any;
|
|
434
|
+
mapValue: any;
|
|
435
|
+
_isEnum: true;
|
|
436
|
+
_isPrimitive: false;
|
|
437
|
+
_isScalar: false;
|
|
438
|
+
_isRelation: false;
|
|
439
|
+
_isHidden: false;
|
|
440
|
+
_isSecret: false;
|
|
441
|
+
_isMap: false;
|
|
442
|
+
optional(): /*elided*/ any;
|
|
443
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
444
|
+
toField(): import("akanjs/constant").ConstantField<"property", typeof AgentStop | null, any, any, true, false, true, false, false, false, false, false, {
|
|
445
|
+
[key: string]: any;
|
|
446
|
+
}>;
|
|
447
|
+
};
|
|
448
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
449
|
+
toField(): import("akanjs/constant").ConstantField<"property", typeof AgentStop, any, any, false, false, true, false, false, false, false, false, {
|
|
450
|
+
[key: string]: any;
|
|
451
|
+
}>;
|
|
452
|
+
};
|
|
453
|
+
}>, "input" | "scalar", {
|
|
454
|
+
optional: never;
|
|
455
|
+
relation: never;
|
|
456
|
+
primitive: "text" | "toolCalls";
|
|
457
|
+
scalar: never;
|
|
458
|
+
enum: "stop";
|
|
459
|
+
map: never;
|
|
460
|
+
hidden: never;
|
|
461
|
+
secret: never;
|
|
462
|
+
}>;
|
|
463
|
+
export declare class AgentTurn extends AgentTurn_base {
|
|
464
|
+
isToolUse(): boolean;
|
|
465
|
+
}
|
|
466
|
+
export declare const agentTurnConstant: import("akanjs/constant").ScalarConstantModel<"agentTurn", AgentTurn, import("akanjs/base").GetStateObject<{
|
|
467
|
+
isToolUse: () => boolean;
|
|
468
|
+
text: string;
|
|
469
|
+
toolCalls: unknown[];
|
|
470
|
+
stop: "end" | "toolUse";
|
|
471
|
+
set: (obj: Partial<import("akanjs/constant").ExtractFieldInfoObject<{
|
|
472
|
+
text: {
|
|
473
|
+
readonly value: StringConstructor;
|
|
474
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
475
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
476
|
+
explicitType: any;
|
|
477
|
+
mapValue: any;
|
|
478
|
+
_isEnum: false;
|
|
479
|
+
_isPrimitive: true;
|
|
480
|
+
_isScalar: false;
|
|
481
|
+
_isRelation: false;
|
|
482
|
+
_isHidden: false;
|
|
483
|
+
_isSecret: false;
|
|
484
|
+
_isMap: false;
|
|
485
|
+
optional(): {
|
|
486
|
+
readonly value: StringConstructor | null;
|
|
487
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
488
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
489
|
+
explicitType: any;
|
|
490
|
+
mapValue: any;
|
|
491
|
+
_isEnum: false;
|
|
492
|
+
_isPrimitive: true;
|
|
493
|
+
_isScalar: false;
|
|
494
|
+
_isRelation: false;
|
|
495
|
+
_isHidden: false;
|
|
496
|
+
_isSecret: false;
|
|
497
|
+
_isMap: false;
|
|
498
|
+
optional(): /*elided*/ any;
|
|
499
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
500
|
+
toField(): import("akanjs/constant").ConstantField<"property", StringConstructor | null, any, any, true, false, false, true, false, false, false, false, {
|
|
501
|
+
[key: string]: any;
|
|
502
|
+
}>;
|
|
503
|
+
};
|
|
504
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
505
|
+
toField(): import("akanjs/constant").ConstantField<"property", StringConstructor, any, any, false, false, false, true, false, false, false, false, {
|
|
506
|
+
[key: string]: any;
|
|
507
|
+
}>;
|
|
508
|
+
};
|
|
509
|
+
toolCalls: {
|
|
510
|
+
readonly value: (typeof Any)[];
|
|
511
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
512
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
513
|
+
explicitType: any;
|
|
514
|
+
mapValue: any;
|
|
515
|
+
_isEnum: false;
|
|
516
|
+
_isPrimitive: true;
|
|
517
|
+
_isScalar: false;
|
|
518
|
+
_isRelation: false;
|
|
519
|
+
_isHidden: false;
|
|
520
|
+
_isSecret: false;
|
|
521
|
+
_isMap: false;
|
|
522
|
+
optional(): {
|
|
523
|
+
readonly value: (typeof Any)[] | null;
|
|
524
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
525
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
526
|
+
explicitType: any;
|
|
527
|
+
mapValue: any;
|
|
528
|
+
_isEnum: false;
|
|
529
|
+
_isPrimitive: true;
|
|
530
|
+
_isScalar: false;
|
|
531
|
+
_isRelation: false;
|
|
532
|
+
_isHidden: false;
|
|
533
|
+
_isSecret: false;
|
|
534
|
+
_isMap: false;
|
|
535
|
+
optional(): /*elided*/ any;
|
|
536
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
537
|
+
toField(): import("akanjs/constant").ConstantField<"property", (typeof Any)[] | null, any, any, true, false, false, true, false, false, false, false, {
|
|
538
|
+
[key: string]: any;
|
|
539
|
+
}>;
|
|
540
|
+
};
|
|
541
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
542
|
+
toField(): import("akanjs/constant").ConstantField<"property", (typeof Any)[], any, any, false, false, false, true, false, false, false, false, {
|
|
543
|
+
[key: string]: any;
|
|
544
|
+
}>;
|
|
545
|
+
};
|
|
546
|
+
stop: {
|
|
547
|
+
readonly value: typeof AgentStop;
|
|
548
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
549
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
550
|
+
explicitType: any;
|
|
551
|
+
mapValue: any;
|
|
552
|
+
_isEnum: true;
|
|
553
|
+
_isPrimitive: false;
|
|
554
|
+
_isScalar: false;
|
|
555
|
+
_isRelation: false;
|
|
556
|
+
_isHidden: false;
|
|
557
|
+
_isSecret: false;
|
|
558
|
+
_isMap: false;
|
|
559
|
+
optional(): {
|
|
560
|
+
readonly value: typeof AgentStop | null;
|
|
561
|
+
readonly type: import("akanjs/constant").ConstantFieldTypeInput;
|
|
562
|
+
readonly option: import("akanjs/constant").ConstantFieldProps;
|
|
563
|
+
explicitType: any;
|
|
564
|
+
mapValue: any;
|
|
565
|
+
_isEnum: true;
|
|
566
|
+
_isPrimitive: false;
|
|
567
|
+
_isScalar: false;
|
|
568
|
+
_isRelation: false;
|
|
569
|
+
_isHidden: false;
|
|
570
|
+
_isSecret: false;
|
|
571
|
+
_isMap: false;
|
|
572
|
+
optional(): /*elided*/ any;
|
|
573
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
574
|
+
toField(): import("akanjs/constant").ConstantField<"property", typeof AgentStop | null, any, any, true, false, true, false, false, false, false, false, {
|
|
575
|
+
[key: string]: any;
|
|
576
|
+
}>;
|
|
577
|
+
};
|
|
578
|
+
meta(meta: import("akanjs/constant").ConstantFieldProps["meta"]): /*elided*/ any;
|
|
579
|
+
toField(): import("akanjs/constant").ConstantField<"property", typeof AgentStop, any, any, false, false, true, false, false, false, false, false, {
|
|
580
|
+
[key: string]: any;
|
|
581
|
+
}>;
|
|
582
|
+
};
|
|
583
|
+
}>>) => AgentTurn;
|
|
584
|
+
}>, {
|
|
585
|
+
text: string;
|
|
586
|
+
toolCalls: unknown[];
|
|
587
|
+
stop: NonNullable<"end" | "toolUse">;
|
|
588
|
+
} & {}, {
|
|
589
|
+
text: string;
|
|
590
|
+
toolCalls: unknown[];
|
|
591
|
+
stop: "end" | "toolUse";
|
|
592
|
+
} & {}>;
|
|
593
|
+
export {};
|
|
@@ -34,7 +34,17 @@ export declare class FetchClient {
|
|
|
34
34
|
constructor(origin: string, handler?: Record<string, FetchHandler>, serializedSignal?: {
|
|
35
35
|
[key: string]: SerializedSignal;
|
|
36
36
|
}, ErrorCls?: ErrorConstructor | undefined);
|
|
37
|
+
/**
|
|
38
|
+
* Every signal any client in this process has applied, which is the whole callable surface of the app.
|
|
39
|
+
*
|
|
40
|
+
* A copy, because this is the registry each client merges its own signals into and a reader that mutated it
|
|
41
|
+
* would change what the next client applies. Read by the agent catalogue, which needs the argument schemas.
|
|
42
|
+
*/
|
|
43
|
+
static get sharedSerializedSignal(): {
|
|
44
|
+
[key: string]: SerializedSignal;
|
|
45
|
+
};
|
|
37
46
|
static resetSharedRegistry(): void;
|
|
47
|
+
static resetSharedClient(): void;
|
|
38
48
|
setErrorConstructor(ErrorCls?: ErrorConstructor): void;
|
|
39
49
|
applySignal(serializedSignal: {
|
|
40
50
|
[key: string]: SerializedSignal;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { ENDPOINT_META, PromiseOrObject } from "akanjs/base";
|
|
2
2
|
import type { FetchPolicy } from "akanjs/common";
|
|
3
|
-
import type { EndpInfoArgs, EndpInfoClientReturns, EndpInfoNullable, EndpInfoReqType, EndpointCls, EndpointInfo, SlceCnstFull, SlceCnstInsight, SlceCnstLight, SliceCls } from "akanjs/signal";
|
|
3
|
+
import type { EndpInfoArgs, EndpInfoClientReturns, EndpInfoNullable, EndpInfoReqType, EndpointCls, EndpointInfo, PromptMessage, SlceCnstFull, SlceCnstInsight, SlceCnstLight, SliceCls } from "akanjs/signal";
|
|
4
4
|
type ExtendedEndpointReturn<ClientReturns, Full, Light, Insight> = ClientReturns extends (infer R)[] ? ExtendedEndpointReturn<R, Full, Light, Insight>[] : Full extends ClientReturns ? Full : Light extends ClientReturns ? Light : Insight extends ClientReturns ? Insight : ClientReturns;
|
|
5
5
|
type EndpointClientReturns<E, SlceCls extends SliceCls | never> = [SlceCls] extends [never] ? EndpInfoClientReturns<E> : ExtendedEndpointReturn<EndpInfoClientReturns<E>, SlceCnstFull<SlceCls>, SlceCnstLight<SlceCls>, SlceCnstInsight<SlceCls>>;
|
|
6
6
|
type EndpInfoReturns<E, SlceCls extends SliceCls | never> = EndpointClientReturns<E, SlceCls> | (EndpInfoNullable<E> extends true ? null : never);
|
|
7
7
|
type QueryOrMutationFetchFn<E, SlceCls extends SliceCls | never> = (...args: [...EndpInfoArgs<E>, fetchPolicy?: FetchPolicy]) => Promise<EndpInfoReturns<E, SlceCls>>;
|
|
8
|
+
/** Typed off `PromptResult` rather than the endpoint's return ref, which is the `Any` carrier a prompt rides on. */
|
|
9
|
+
type PromptFetchFn<E> = (...args: [...EndpInfoArgs<E>, fetchPolicy?: FetchPolicy]) => Promise<PromptMessage[]>;
|
|
8
10
|
type MessageEmitFn<E> = (...args: EndpInfoArgs<E>) => void;
|
|
9
11
|
type MessageListenFn<E, SlceCls extends SliceCls | never> = (handleEvent: (data: EndpInfoReturns<E, SlceCls>) => PromiseOrObject<void>, options?: FetchPolicy) => () => void;
|
|
10
12
|
type PubsubSubscribeFn<E, SlceCls extends SliceCls | never> = (...args: [
|
|
@@ -12,11 +14,11 @@ type PubsubSubscribeFn<E, SlceCls extends SliceCls | never> = (...args: [
|
|
|
12
14
|
handleEvent: (data: EndpInfoReturns<E, SlceCls>) => PromiseOrObject<void>,
|
|
13
15
|
options?: FetchPolicy
|
|
14
16
|
]) => () => void;
|
|
15
|
-
type PrimaryFetchFn<E, SlceCls extends SliceCls | never> = EndpInfoReqType<E> extends "query" | "mutation" ? QueryOrMutationFetchFn<E, SlceCls> : EndpInfoReqType<E> extends "message" ? MessageEmitFn<E> : never;
|
|
17
|
+
type PrimaryFetchFn<E, SlceCls extends SliceCls | never> = EndpInfoReqType<E> extends "query" | "mutation" ? QueryOrMutationFetchFn<E, SlceCls> : EndpInfoReqType<E> extends "prompt" ? PromptFetchFn<E> : EndpInfoReqType<E> extends "message" ? MessageEmitFn<E> : never;
|
|
16
18
|
type PrimaryFetchType<EInfoObj extends {
|
|
17
19
|
[key: string]: EndpointInfo;
|
|
18
20
|
}, SlceCls extends SliceCls | never> = {
|
|
19
|
-
[K in keyof EInfoObj as EndpInfoReqType<EInfoObj[K]> extends "query" | "mutation" | "message" ? K : never]: PrimaryFetchFn<EInfoObj[K], SlceCls>;
|
|
21
|
+
[K in keyof EInfoObj as EndpInfoReqType<EInfoObj[K]> extends "query" | "mutation" | "prompt" | "message" ? K : never]: PrimaryFetchFn<EInfoObj[K], SlceCls>;
|
|
20
22
|
};
|
|
21
23
|
type PubsubFetchType<EInfoObj extends {
|
|
22
24
|
[key: string]: EndpointInfo;
|
package/types/fetch/index.d.ts
CHANGED