akanjs 3.2.0-rc.11 → 3.2.0-rc.13

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.
Files changed (173) hide show
  1. package/ARCHITECTURE.md +17 -17
  2. package/CHANGELOG.md +24 -0
  3. package/base/base.ts +2 -1
  4. package/client/clientRuntime.ts +1 -0
  5. package/client/cn.ts +2 -2
  6. package/client/csrTypes.ts +2 -0
  7. package/client/frameConfig.ts +1 -0
  8. package/client/index.ts +249 -26
  9. package/client/locale.ts +1 -0
  10. package/client/route/RouteDefinition.ts +24 -7
  11. package/client/route/routeArgs.ts +7 -0
  12. package/client/router.ts +12 -2
  13. package/client/rscNavigation.ts +1 -0
  14. package/common/CodeTranscript.ts +1 -1
  15. package/constant/constantRegistry.ts +4 -8
  16. package/constant/crystalize.ts +1 -2
  17. package/constant/getDefault.ts +1 -1
  18. package/constant/immerify.ts +1 -1
  19. package/constant/index.ts +78 -21
  20. package/constant/purify.ts +4 -9
  21. package/constant/serialize.ts +4 -2
  22. package/constant/types.ts +1 -0
  23. package/constant/via.ts +1 -2
  24. package/dictionary/locale.ts +1 -1
  25. package/document/databaseRegistry.ts +2 -1
  26. package/document/documentSchema.ts +1 -0
  27. package/document/filterMeta.ts +4 -1
  28. package/document/into.ts +2 -1
  29. package/document/loaderInfo.ts +2 -1
  30. package/document/types.ts +1 -1
  31. package/fetch/client/fetchClient.ts +3 -3
  32. package/fetch/client/httpClient.ts +2 -0
  33. package/fetch/client/wsClient.ts +1 -0
  34. package/package.json +1 -1
  35. package/server/akanApp.ts +103 -1270
  36. package/server/akanServer.ts +1 -1
  37. package/server/console.ts +3 -2
  38. package/server/gateway/childSupervisor.ts +325 -0
  39. package/server/gateway/devHostChannel.ts +40 -0
  40. package/server/gateway/gatewayChildren.ts +135 -0
  41. package/server/gateway/gatewayConfig.ts +182 -0
  42. package/server/gateway/gatewayHttpProxy.ts +231 -0
  43. package/server/gateway/gatewayLogging.ts +111 -0
  44. package/server/gateway/gatewayRooms.ts +134 -0
  45. package/server/gateway/gatewayStatus.ts +116 -0
  46. package/server/gateway/gatewayStatusPage.ts +54 -0
  47. package/server/gateway/gatewayWebSocketRelay.ts +149 -0
  48. package/server/index.ts +257 -17
  49. package/server/logging/logControlSocket.ts +42 -3
  50. package/server/mcp/McpDispatcher.ts +6 -24
  51. package/server/rscClient.tsx +14 -8
  52. package/server/sitemap.ts +1 -0
  53. package/service/injectInfo.ts +2 -1
  54. package/service/predefinedAdaptor/sql/driver/bunSqlite.ts +3 -3
  55. package/service/predefinedAdaptor/sql/driver/postgres.ts +1 -1
  56. package/service/serviceRegistry.ts +1 -0
  57. package/signal/SignalFailure.ts +21 -0
  58. package/signal/agentTurnStream.ts +5 -2
  59. package/signal/index.ts +298 -30
  60. package/signal/resolveFieldContext.ts +34 -0
  61. package/signal/serializer/fetch.serializer.ts +7 -10
  62. package/signal/signalContext.ts +4 -31
  63. package/signal/trace.ts +3 -0
  64. package/store/baseSt.ts +1 -0
  65. package/store/index.ts +125 -18
  66. package/store/stateBuilder.ts +2 -0
  67. package/types/base/base.d.ts +2 -1
  68. package/types/client/clientRuntime.d.ts +1 -0
  69. package/types/client/cn.d.ts +2 -2
  70. package/types/client/csrTypes.d.ts +2 -0
  71. package/types/client/frameConfig.d.ts +1 -0
  72. package/types/client/index.d.ts +25 -26
  73. package/types/client/locale.d.ts +1 -0
  74. package/types/client/route/RouteDefinition.d.ts +2 -2
  75. package/types/client/route/routeArgs.d.ts +6 -0
  76. package/types/client/router.d.ts +2 -1
  77. package/types/client/rscNavigation.d.ts +1 -0
  78. package/types/common/CodeTranscript.d.ts +1 -1
  79. package/types/constant/constantRegistry.d.ts +3 -1
  80. package/types/constant/crystalize.d.ts +1 -1
  81. package/types/constant/getDefault.d.ts +1 -1
  82. package/types/constant/immerify.d.ts +1 -1
  83. package/types/constant/index.d.ts +21 -21
  84. package/types/constant/purify.d.ts +2 -1
  85. package/types/constant/serialize.d.ts +1 -1
  86. package/types/constant/types.d.ts +1 -0
  87. package/types/dictionary/base.dictionary.d.ts +1 -1
  88. package/types/dictionary/dictionary.d.ts +8 -8
  89. package/types/dictionary/locale.d.ts +1 -1
  90. package/types/document/databaseRegistry.d.ts +2 -1
  91. package/types/document/documentSchema.d.ts +1 -0
  92. package/types/document/filterMeta.d.ts +4 -1
  93. package/types/document/into.d.ts +1 -1
  94. package/types/document/loaderInfo.d.ts +2 -1
  95. package/types/document/types.d.ts +1 -1
  96. package/types/fetch/client/fetchClient.d.ts +2 -1
  97. package/types/fetch/client/httpClient.d.ts +2 -0
  98. package/types/fetch/client/wsClient.d.ts +1 -0
  99. package/types/server/akanApp.d.ts +2 -20
  100. package/types/server/console.d.ts +3 -2
  101. package/types/server/gateway/childSupervisor.d.ts +33 -0
  102. package/types/server/gateway/devHostChannel.d.ts +13 -0
  103. package/types/server/gateway/gatewayChildren.d.ts +47 -0
  104. package/types/server/gateway/gatewayConfig.d.ts +82 -0
  105. package/types/server/gateway/gatewayHttpProxy.d.ts +22 -0
  106. package/types/server/gateway/gatewayLogging.d.ts +16 -0
  107. package/types/server/gateway/gatewayRooms.d.ts +22 -0
  108. package/types/server/gateway/gatewayStatus.d.ts +62 -0
  109. package/types/server/gateway/gatewayStatusPage.d.ts +9 -0
  110. package/types/server/gateway/gatewayWebSocketRelay.d.ts +17 -0
  111. package/types/server/index.d.ts +17 -17
  112. package/types/server/logging/rotatingLogWriter.d.ts +1 -1
  113. package/types/server/sitemap.d.ts +1 -0
  114. package/types/service/injectInfo.d.ts +2 -1
  115. package/types/service/predefinedAdaptor/sql/driver/bunSqlite.d.ts +1 -14
  116. package/types/service/predefinedAdaptor/sql/driver/postgres.d.ts +0 -8
  117. package/types/service/serviceRegistry.d.ts +1 -0
  118. package/types/signal/SignalFailure.d.ts +1 -0
  119. package/types/signal/agentTurnStream.d.ts +1 -0
  120. package/types/signal/index.d.ts +31 -30
  121. package/types/signal/resolveFieldContext.d.ts +15 -0
  122. package/types/signal/serializer/fetch.serializer.d.ts +3 -1
  123. package/types/signal/signalContext.d.ts +1 -13
  124. package/types/signal/trace.d.ts +3 -0
  125. package/types/store/baseSt.d.ts +1 -0
  126. package/types/store/index.d.ts +17 -17
  127. package/types/store/stateBuilder.d.ts +2 -0
  128. package/types/ui/Agent/Chat.d.ts +5 -2
  129. package/types/ui/Agent/ChatHeader.d.ts +13 -0
  130. package/types/ui/Agent/ChatPendingCards.d.ts +23 -0
  131. package/types/ui/Reference/origin.d.ts +1 -0
  132. package/types/ui/overlayLayer.d.ts +6 -1
  133. package/types/vendor/@akanjs/native/packages/cli/src/lib/project.d.ts +4 -0
  134. package/types/vendor/@akanjs/native/packages/desktop/src/relaunch.d.ts +1 -0
  135. package/types/vendor/@akanjs/native/plugins/external-view/src/index.d.ts +14 -10
  136. package/types/vendor/use-agentic/failureCode.d.ts +4 -0
  137. package/types/vendor/use-agentic/types.d.ts +6 -0
  138. package/types/webkit/CsrGuards.d.ts +2 -0
  139. package/ui/Agent/Chat.tsx +96 -116
  140. package/ui/Agent/ChatHeader.tsx +59 -0
  141. package/ui/Agent/ChatPendingCards.tsx +49 -0
  142. package/ui/Agent/fetchRunner.ts +8 -1
  143. package/ui/BottomSheet.tsx +1 -1
  144. package/ui/Dialog/LegacyModal.tsx +1 -1
  145. package/ui/Dialog/Modal.tsx +1 -1
  146. package/ui/Popconfirm.tsx +1 -1
  147. package/ui/Reference/origin.ts +1 -0
  148. package/ui/overlayLayer.ts +22 -1
  149. package/vendor/@akanjs/native/CHANGELOG.md +6 -1
  150. package/vendor/@akanjs/native/native/desktop/src/external.rs +213 -111
  151. package/vendor/@akanjs/native/native/desktop/src/lib.rs +12 -4
  152. package/vendor/@akanjs/native/native/desktop/src/linux/external.rs +275 -0
  153. package/vendor/@akanjs/native/native/desktop/src/linux/mod.rs +1 -0
  154. package/vendor/@akanjs/native/packages/cli/src/lib/native-plugins.ts +5 -3
  155. package/vendor/@akanjs/native/packages/cli/src/lib/project.ts +25 -1
  156. package/vendor/@akanjs/native/packages/desktop/src/deeplinks.ts +2 -2
  157. package/vendor/@akanjs/native/packages/desktop/src/host.ts +2 -2
  158. package/vendor/@akanjs/native/packages/desktop/src/relaunch.ts +8 -3
  159. package/vendor/@akanjs/native/plugins/app/src/desktop.ts +2 -2
  160. package/vendor/@akanjs/native/plugins/autostart/src/desktop.ts +2 -1
  161. package/vendor/@akanjs/native/plugins/external-view/native-plugin.json +4 -1
  162. package/vendor/@akanjs/native/plugins/external-view/src/index.ts +14 -10
  163. package/vendor/use-agentic/AgentSession.ts +11 -11
  164. package/vendor/use-agentic/CHANGELOG.md +6 -0
  165. package/vendor/use-agentic/Compaction.ts +2 -1
  166. package/vendor/use-agentic/ToolRunner.ts +3 -15
  167. package/vendor/use-agentic/Transcript.ts +6 -3
  168. package/vendor/use-agentic/WIRE.md +12 -1
  169. package/vendor/use-agentic/failureCode.ts +44 -0
  170. package/vendor/use-agentic/httpRunner.ts +14 -3
  171. package/vendor/use-agentic/types.ts +6 -0
  172. package/webkit/CsrGuards.ts +7 -2
  173. package/webkit/useLocation.ts +3 -2
@@ -23,7 +23,6 @@ import {
23
23
  import { Err } from "akanjs/dictionary";
24
24
  import type { Adaptor, AdaptorCls, DatabaseService, InjectRegistry, LiveRegistry } from "akanjs/service";
25
25
  import { websocketRoomContract } from "../common/websocketContract";
26
- import type { Internal, InternalCls, InternalInfo, MiddlewareCls } from ".";
27
26
  import { CrossSiteGuard } from "./CrossSiteGuard";
28
27
  import { carriedClientIps } from "./carriedClientIps";
29
28
  import { EndpointCache } from "./endpointCache";
@@ -33,7 +32,11 @@ import type { ArgInfo, EndpointInfo, EndpointType } from "./endpointInfo";
33
32
  import { EndpointRateLimit } from "./endpointRateLimit";
34
33
  import { Exception, isExceptionLike } from "./exception";
35
34
  import { type GuardCls, type GuardScope, guardOf } from "./guard";
35
+ import type { InternalCls } from "./internal";
36
+ import type { InternalInfo } from "./internalInfo";
37
+ import type { MiddlewareCls } from "./middleware";
36
38
  import { MiddlewareChain } from "./middlewareChain";
39
+ import { ResolveFieldContext } from "./resolveFieldContext";
37
40
  import { RoomKey } from "./roomKey";
38
41
  import { SignalFailure } from "./SignalFailure";
39
42
  import { SignalContractError } from "./signalContractError";
@@ -974,33 +977,3 @@ export class WebSocketExecutionContext<Appended = unknown> {
974
977
  else this.onUnsubscribe.delete(handler);
975
978
  };
976
979
  }
977
-
978
- export class ResolveFieldContext {
979
- signalContext: SignalContext | null;
980
- internalInfo: InternalInfo<"resolveField">;
981
- internal: Internal;
982
- parent: unknown;
983
- constructor(
984
- parent: unknown,
985
- {
986
- signalContext,
987
- internalInfo,
988
- internal,
989
- }: { signalContext: SignalContext | null; internalInfo: InternalInfo<"resolveField">; internal: Internal },
990
- ) {
991
- this.signalContext = signalContext;
992
- this.internalInfo = internalInfo;
993
- this.internal = internal;
994
- this.parent = parent;
995
- }
996
- async exec() {
997
- if (!this.internalInfo.execFn) throw new SignalContractError("noHandler", "Exec function is not set");
998
- const internalArgs = await Promise.all(
999
- this.internalInfo.internalArgs.map((arg) =>
1000
- this.signalContext ? (new arg.argRef().getArg(this.signalContext) ?? null) : null,
1001
- ),
1002
- );
1003
- const result = await this.internalInfo.execFn.call(this.internal, this.parent, ...internalArgs);
1004
- return result;
1005
- }
1006
- }
package/signal/trace.ts CHANGED
@@ -74,6 +74,7 @@ export const isLocalDevRuntime = ({
74
74
  operationMode === "local" &&
75
75
  (process.env.NODE_ENV !== "production" || process.env.AKAN_COMMAND_TYPE === "start");
76
76
 
77
+ /** @internal */
77
78
  export const isDebugHeaderAllowed = (): boolean => isLocalDevRuntime() || !!process.env.AKAN_LOG_DEBUG_HEADER;
78
79
 
79
80
  const sameSecret = (presented: string, secret: string): boolean =>
@@ -304,6 +305,7 @@ const als = traceProcessStore.__akanTraceAls;
304
305
 
305
306
  export const getCurrentTrace = (): SignalTrace | undefined => als.getStore();
306
307
 
308
+ /** @deprecated Unused by akanjs. `runTraced` replaces it only where the caller owns the trace: it finalizes it. */
307
309
  export const runWithTrace = <T>(trace: SignalTrace, fn: () => T): T => als.run(trace, fn);
308
310
 
309
311
  /** Finalizes `trace` after the caller's own catch has run, which is what lets an error log carry the traceId. */
@@ -345,6 +347,7 @@ export const traceSpan = async <T>(name: string, fn: () => Promise<T>): Promise<
345
347
  }
346
348
  };
347
349
 
350
+ /** @deprecated Unused by akanjs; call `getCurrentTrace()?.countDbQuery(ms)`. */
348
351
  export const traceDbQuery = (durationMs: number): void => {
349
352
  getCurrentTrace()?.countDbQuery(durationMs);
350
353
  };
package/store/baseSt.ts CHANGED
@@ -15,6 +15,7 @@ const defaultMessage = {
15
15
 
16
16
  export type BaseSearchParamsState = { [key: string]: string | string[] };
17
17
 
18
+ /** @deprecated Unused by akanjs; read `searchParams[key]`, taking the first value of an array. */
18
19
  export const getBaseSearchParam = (searchParams: BaseSearchParamsState, key: string) => {
19
20
  const value = searchParams[key];
20
21
  return Array.isArray(value) ? value[0] : value;
package/store/index.ts CHANGED
@@ -1,19 +1,126 @@
1
- export * from "./action";
2
- export * from "./actionOption";
3
- export * from "./actionTag";
4
- export * from "./agentic";
5
- export * from "./baseSt";
6
- export * from "./deprecatedAgent";
7
- export * from "./deprecatedNames";
8
- export * from "./draftStore";
9
- export * from "./formUploadOf";
10
- export * from "./liveInsert";
11
- export * from "./rootStore";
12
- export * from "./sliceRole";
13
- export * from "./state";
14
- export * from "./stateBuilder";
15
- export * from "./store";
16
-
1
+ export { type DefaultAction, makeActions, makeFormSetter, type SliceAction } from "./action";
2
+ export type { CreateOption, EditOption, ErrorReportOption, NewOption } from "./actionOption";
3
+ export { type ActionOwner, type ActionTag, actionTagOf, tagAction } from "./actionTag";
4
+ export {
5
+ AgentAbort,
6
+ AgentConfirm,
7
+ type AgentConfirmPolicy,
8
+ type AgentFieldType,
9
+ AgentProgress,
10
+ type AgentProgressStep,
11
+ type AgentReferenceInput,
12
+ AgentValue,
13
+ type AgentValueOf,
14
+ attachAgentic,
15
+ type FieldToolOptions,
16
+ type FileFieldSource,
17
+ type FormFieldRef,
18
+ FormFields,
19
+ type RelationFieldSource,
20
+ type StAgentic,
21
+ StExposeBuilder,
22
+ StExposeDraft,
23
+ type StExposeMeta,
24
+ StStateBuilder,
25
+ StStateDraft,
26
+ type StStateMeta,
27
+ type StToolArgOption,
28
+ type StToolArgType,
29
+ StToolBuilder,
30
+ type StToolCardControl,
31
+ StToolDraft,
32
+ type StToolMeta,
33
+ ToolReturn,
34
+ useAgentReference,
35
+ useFieldTool,
36
+ useFileFieldTool,
37
+ useFormTools,
38
+ useRelationFieldTool,
39
+ } from "./agentic";
40
+ export { type BaseSearchParamsState, BaseStore, base, getBaseSearchParam, RootStore, st } from "./baseSt";
41
+ export {
42
+ AgentBridge,
43
+ AgentContext,
44
+ AgentCursor,
45
+ AgentPrompts,
46
+ AgentVisual,
47
+ type AgentVisualOption,
48
+ databaseStateModelTypes,
49
+ ensureStoreSurface,
50
+ ScreenFlash,
51
+ ScreenImage,
52
+ type ScreenImageView,
53
+ ScreenReader,
54
+ type ScreenReadOptions,
55
+ ScreenSettle,
56
+ type ScreenSettleOptions,
57
+ ScreenTarget,
58
+ type SerializedStoreState,
59
+ StoreCatalogue,
60
+ type StoreSurface,
61
+ StoreSurfaceSource,
62
+ } from "./deprecatedAgent";
63
+ export { databaseStateNames, formSetterNames } from "./deprecatedNames";
64
+ export { type DraftRecord, DraftStore } from "./draftStore";
65
+ export { type FormUpload, formUploadOf } from "./formUploadOf";
66
+ export { type LivePlacementProps, type LiveSortableRow, livePlacementIndex } from "./liveInsert";
67
+ export type { RootStoreCls } from "./rootStore";
68
+ export type { SliceActionKey, SliceActionRole, SliceStateRole } from "./sliceRole";
69
+ export {
70
+ createDatabaseState,
71
+ createSliceState,
72
+ type DefaultState,
73
+ type DraftState,
74
+ type FormUploading,
75
+ type SliceState,
76
+ type SliceStateKey,
77
+ } from "./state";
78
+ export {
79
+ type ComputedMeta,
80
+ type ComputedOptions,
81
+ createDerivedStateBuilder,
82
+ createEmptyDerivedMeta,
83
+ createStateInitializerMap,
84
+ createWritableStateBuilder,
85
+ type DepValues,
86
+ type DerivedStateBuilder,
87
+ type DerivedStateOf,
88
+ type DraftMeta,
89
+ draftMetaOf,
90
+ evaluateInitializers,
91
+ getSearchParam,
92
+ isStateBuilderMarker,
93
+ makeDefaultFactory,
94
+ mergeDerivedMeta,
95
+ type PersistSessionMeta,
96
+ type PersistSessionOptions,
97
+ resolveDerivedState,
98
+ resolveWritableState,
99
+ type SearchMeta,
100
+ type SearchOptions,
101
+ type SearchParamsState,
102
+ type StateDerivedMeta,
103
+ type StateInitializer,
104
+ type StateInitializerMap,
105
+ type WritableStateBuilder,
106
+ type WritableStateOf,
107
+ } from "./stateBuilder";
108
+ export { type ModelStore, type StoreCls, type StoreReturn, store } from "./store";
17
109
  export { StoreInstance } from "./storeInstance";
18
- export * from "./storeRegistry";
19
- export * from "./types";
110
+ export { type ReactAPI, StoreRegistry } from "./storeRegistry";
111
+ export type {
112
+ Get,
113
+ InternalSlice,
114
+ SetGet,
115
+ SetGetWritable,
116
+ SetPick,
117
+ SliceStateAction,
118
+ StoreSliceArgs,
119
+ StoreSliceMap,
120
+ StoreSliceName,
121
+ StoreSliceSuffix,
122
+ StoreSliceSuffixCap,
123
+ StoreUseOptions,
124
+ Submit,
125
+ VoidActions,
126
+ } from "./types";
@@ -211,6 +211,7 @@ export const createDerivedStateBuilder = <WritableState>(): DerivedStateBuilder<
211
211
  ({ [STATE_BUILDER_MARK]: true, kind: "computed", deps, selector, options: options ?? {} }) as any,
212
212
  });
213
213
 
214
+ /** @internal */
214
215
  export const isStateBuilderMarker = (value: unknown): value is Marker =>
215
216
  Boolean(value && typeof value === "object" && (value as { [STATE_BUILDER_MARK]?: boolean })[STATE_BUILDER_MARK]);
216
217
 
@@ -425,6 +426,7 @@ const tryParseSearchArray = (raw: string): string[] => {
425
426
  }
426
427
  };
427
428
 
429
+ /** @deprecated Unused by akanjs; read `searchParams[key]`, taking the first value of an array. */
428
430
  export const getSearchParam = (searchParams: SearchParamsState, key: string): string | undefined =>
429
431
  firstSearchParam(searchParams[key]);
430
432
 
@@ -1,5 +1,6 @@
1
- import type { CLIENT_VALUE, Cls, DEFAULT_VALUE, PURIFIED_VALUE, SERVER_VALUE } from ".";
2
1
  import { Float, Int } from "./primitiveRegistry.d.ts";
2
+ import type { CLIENT_VALUE, DEFAULT_VALUE, PURIFIED_VALUE, SERVER_VALUE } from "./symbols.d.ts";
3
+ import type { Cls } from "./types.d.ts";
3
4
  export type EnumInstance<RefName extends string = string, T = string | number> = Cls<{
4
5
  refName: RefName;
5
6
  value: T;
@@ -60,6 +60,7 @@ type RuntimeScope = "app" | "lib";
60
60
  export declare const registerClientRuntime: <Runtime>(runtime: Runtime, { scope }?: {
61
61
  scope?: RuntimeScope;
62
62
  }) => Runtime;
63
+ /** @internal */
63
64
  export declare const getClientRuntime: () => ClientRuntime;
64
65
  export declare const isClientRuntimeRegistered: () => boolean;
65
66
  export declare const msg: RuntimeMsg;
@@ -1,7 +1,7 @@
1
1
  import { type ClassNameValue } from "tailwind-merge";
2
- /** Registered with tailwind-merge so `cn("bg-primary", "bg-open")` resolves to `"bg-open"` instead of keeping both. */
2
+ /** @internal Registered with tailwind-merge so `cn("bg-primary", "bg-open")` resolves to `"bg-open"` instead of keeping both. */
3
3
  export declare const colorTokens: string[];
4
- /** `--radius-box` / `--radius-field`; unregistered, `cn("rounded-field", "rounded-full")` would keep both. */
4
+ /** @internal `--radius-box` / `--radius-field`; unregistered, `cn("rounded-field", "rounded-full")` would keep both. */
5
5
  export declare const radiusTokens: string[];
6
6
  /** Joins class parts and resolves Tailwind conflicts; object syntax (`{ x: cond }`) is unsupported — write `cond && "x"`. */
7
7
  export declare const cn: (...inputs: ClassNameValue[]) => string;
@@ -126,6 +126,8 @@ export interface RouteGuardProps {
126
126
  searchParams: Record<string, string | string[]>;
127
127
  /** MCP is listing the screen, so no argument is known: a guard reading one throws `RouteArgPending`. */
128
128
  listing?: boolean;
129
+ /** The CSR target's in-app path; a server request's own URL gives it when this is left off. */
130
+ path?: string;
129
131
  }
130
132
  export type RouteGuard = (props: RouteGuardProps) => Promise<void>;
131
133
  export interface RouteRender {
@@ -23,6 +23,7 @@ export declare const breakpointQuery: (name: TailwindBreakpoint, { below }?: {
23
23
  below?: boolean;
24
24
  }) => string;
25
25
  export declare const validatePageConfig: (routeKey: string, config?: PageConfig) => void;
26
+ /** @internal */
26
27
  export declare const isResponsiveInset: (inset: PageConfig["topInset"]) => inset is ResponsiveInset;
27
28
  /** The inset at each breakpoint, each one the nearest declared value at or below it. */
28
29
  export declare const insetsByBreakpoint: (inset: PageConfig["topInset"]) => { [bp in InsetBreakpoint]: number; };
@@ -1,27 +1,26 @@
1
- export * from "./clientRuntime.d.ts";
2
- export * from "./cn.d.ts";
3
- export * from "./cookie.d.ts";
4
- export * from "./createFont.d.ts";
5
- export * from "./csrLocation.d.ts";
6
- export * from "./csrTypes.d.ts";
7
- export * from "./decorators.d.ts";
8
- export * from "./device.d.ts";
9
- export * from "./frameConfig.d.ts";
10
- export * from "./href.d.ts";
11
- export * from "./locale.d.ts";
12
- export * from "./makePageProto.d.ts";
13
- export * from "./mcpView.d.ts";
14
- export * from "./nativeHost.d.ts";
1
+ export { type ClientRuntime, Err, fetch, getClientRuntime, isClientRuntimeRegistered, msg, registerClientRuntime, sig, usePage, } from "./clientRuntime.d.ts";
2
+ export { cn, colorTokens, radiusTokens } from "./cn.d.ts";
3
+ export { authTokenKey, cookieJar, cookies, type GetOption, getAccount, getAuthToken, getCookie, getHeader, getSessionClaims, getStoredAuthToken, headers, initAuth, removeCookie, resetAuth, setAuth, setCookie, } from "./cookie.d.ts";
4
+ export { createFont, Inter, Nanum_Gothic_Coding, Noto_Sans_KR, Roboto } from "./createFont.d.ts";
5
+ export { CsrLocation, csrLocation } from "./csrLocation.d.ts";
6
+ export { type AkanHeadSnapshotNode, type AkanHeadSnapshotV1, type AnimatedDivProps, type ContainerTransition, type CsrContextType, type CsrNavigationKind, type CsrNavigationPhase, type CsrPageType, type CsrStackAccount, type CsrStackEntry, type CsrState, type CsrTransitionStyles, csrContext, DEFAULT_BOTTOM_INSET, DEFAULT_TOP_INSET, type FrameContentViewportState, type FrameLayer, type FrameLayerZIndex, type FrameLayoutState, type FramePlatformProfile, type FrameSlotBucket, type FrameSlotRegistration, type FrameSlotRole, type FrameSlotScope, type FrameSlotType, type FrameSnapshot, type FrameViewportState, type GenerateHead, type Head, type HeadProps, type History, type KeyboardAccessoryFrameState, type KeyboardFrameState, type LayoutErrorProps, type LayoutErrorRender, type LayoutFallbackRoute, type LayoutLoadingProps, type LayoutLoadingRender, type LayoutModule, type LayoutNotFoundProps, type LayoutNotFoundRender, type LayoutProps, type LayoutRender, type Location, type LocationState, type NavigationIntent, type PageActivity, type PageActivityState, type PageConfig, type PageLoadingProps, type PageLoadingRender, type PageModule, type PageProps, type PageRender, type PageSafeAreaConfig, type PageState, type PageTransition, type PathContextType, type PathRoute, pageActivityContext, pathContext, type ResolvedHead, type ResolveHead, type ResolveHeadResult, type ResponsiveInset, type Route, type RouteGuard, type RouteGuardProps, type RouteGuide, type RouteModule, type RouteRender, type RouterProps, type RouteState, type RouteViewport, type SafeAreaTransition, type SsrRenderMode, type TransitionAction, type TransitionActionContext, type TransitionPlan, type TransitionStyle, type UseCsrTransition, useCsr, usePathCtx, type WebAppManifest, type WebAppManifestIcon, } from "./csrTypes.d.ts";
7
+ export { Toast } from "./decorators.d.ts";
8
+ export { Device, debugFrame, isMobileDevice, isNativeTarget } from "./device.d.ts";
9
+ export { breakpointQuery, type DevicePlatform, defaultPageState, getExplicitPageConfigKeys, type InsetBreakpoint, insetAt, insetBreakpoints, insetsByBreakpoint, isResponsiveInset, mergePageConfigs, type ResolvePageStateOptions, readCssSafeAreaInsets, resolvePageState, type SafeAreaInsets, type TailwindBreakpoint, validatePageConfig, } from "./frameConfig.d.ts";
10
+ export { Href } from "./href.d.ts";
11
+ export { dictionaryContext } from "./locale.d.ts";
12
+ export { type ErrPayload, makePageProto, type PageErrConstructor, type PageErrInstance, type TransMessageOption, } from "./makePageProto.d.ts";
13
+ export { isMcpView } from "./mcpView.d.ts";
14
+ export { desktopPlatform, isNativeApp, isNativeShell, nativePlatform, openExternalUrl } from "./nativeHost.d.ts";
15
15
  export { type NavigationAttempt, type NavigationGuard, type NavigationKind, NavigationRefused, } from "./navigationGuards.d.ts";
16
- export * from "./resolveServerUrl.d.ts";
17
- export * from "./route.d.ts";
18
- export * from "./router.d.ts";
19
- export * from "./rscNavigation.d.ts";
20
- export * from "./sharedContext.d.ts";
21
- export * from "./storage.d.ts";
22
- export * from "./transitionTypes.d.ts";
23
- export * from "./translator.d.ts";
24
- export * from "./types.d.ts";
25
- export * from "./useClient.d.ts";
26
- export * from "./viewportMeta.d.ts";
27
- export * from "./webManifest.d.ts";
16
+ export { resolveServerUrl } from "./resolveServerUrl.d.ts";
17
+ export { assertGuardOnChain, isRouteDefinition, LayoutDefinition, type LayoutExtra, layout, PageDefinition, page, type ResolvedRouteModule, type ResolveRouteModuleOption, RootLayoutDefinition, RouteArgError, type RouteArgInfo, type RouteArgInput, type RouteArgOption, RouteArgPending, type RouteArgResolveOption, type RouteArgsShape, type RouteArgType, type RouteArgValue, type RouteBaseArgs, RouteDefinition, type RouteGuardRequest, RouteGuards, RouteHead, type RouteKind, type RouteModuleSource, type RoutePromptArgument, type RoutePromptMeta, type RouteSearchType, resolveRouteModule, rootLayout, routeArgsMarker, routeDefinitionMarker, } from "./route.d.ts";
18
+ export { AkanNotFoundError, AkanRedirectError, type DeepLinkOptions, getPathInfo, isRouteControl, normalizeDeepLinkHref, type RedirectMethod, type RedirectOptions, type RedirectStatus, type RouteManifest, type RouteOptions, type RouterInstance, router, } from "./router.d.ts";
19
+ export { clearRscNavigationCache, isRscNavigationFromCache, navigateRsc, type PrefetchPriority, prefetchRsc, refreshRsc, useRscNavigation, } from "./rscNavigation.d.ts";
20
+ export { sharedContext } from "./sharedContext.d.ts";
21
+ export { secretStorage, storage } from "./storage.d.ts";
22
+ export { type TransitionType, transitionTypes } from "./transitionTypes.d.ts";
23
+ export { type AllDictionary, type Dictionary, Translator } from "./translator.d.ts";
24
+ export { type DataAction, type DataColumn, type DataMenu, type DataMenuItem, type DataTool, type Font, getFontFaces, getFontFallbackName, getFontStyles, getFontVariableName, getOptimizedFontSrc, isFontOptimizationEnabled, isFontPreloadEnabled, loadFonts, type MenuItem, type ModelDashboardProps, type ModelEditProps, type ModelInsightProps, type ModelProps, type ModelsProps, type ModelViewProps, type ReactFont, type ReactFontCategory, type ReactFontDeclaration, type ReactFontDisplay, type ReactFontFace, type ReactFontPath, type ReactFontStyle, type ReactFontSubset, type RootLayoutProps, type UserMenuItem, } from "./types.d.ts";
25
+ export { type ThemeColorTag, ViewportMeta } from "./viewportMeta.d.ts";
26
+ export { getWebManifestBasePath, toManifestJson, webManifestHref } from "./webManifest.d.ts";
@@ -1,3 +1,4 @@
1
+ /** @deprecated Nothing in akanjs provides or reads it; removed in a later minor. */
1
2
  export declare const dictionaryContext: import("react").Context<{
2
3
  [key: string]: {
3
4
  [key: string]: string;
@@ -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;
@@ -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;
@@ -68,6 +68,7 @@ export declare class AkanNotFoundError extends Error {
68
68
  constructor();
69
69
  }
70
70
  export declare const isRouteControl: (error: unknown) => boolean;
71
+ export declare const getRequestRoutePath: (lang: string) => string | undefined;
71
72
  export declare const normalizeDeepLinkHref: (href: string, origin?: string) => string;
72
73
  declare global {
73
74
  var __AKAN_ROUTER__: Router | undefined;
@@ -126,7 +127,7 @@ declare class Router {
126
127
  notFound(): never;
127
128
  setLang(lang: string): never;
128
129
  /** A pathname without its locale and base-path segments; unlike `getPath`, it needs no browser. */
129
- routeOf(pathname: string): string;
130
+ routeOf(pathname: string, lang?: string): string;
130
131
  getPath(pathname?: string): string;
131
132
  getFullPath(withLang?: boolean): string;
132
133
  getPrefix(): string;
@@ -27,6 +27,7 @@ export declare const navigateRsc: (href: string, options?: {
27
27
  }) => Promise<void> | undefined;
28
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;
@@ -1,4 +1,4 @@
1
- import type { CodeAgentApprovalRequest, CodeAgentEvent, CodeAgentQuestion, CodeAgentSessionInfo, CodeAgentStopReason, CodeAgentSubagent, CodeAgentToolOutcome, CodeAgentToolSummary } from "akanjs/common";
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,6 +1,8 @@
1
1
  import { type Cls, type EnumInstance, type GetStateObject, type PrimitiveScalar } from "akanjs/base";
2
- import { type ConstantCls, type ConstantModelRef, type FieldObject, type PurifiedModel } from ".";
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 * from "./cascadePaths.d.ts";
2
- export * from "./constantRegistry.d.ts";
3
- export * from "./crystalize.d.ts";
4
- export * from "./dateSlot.d.ts";
5
- export * from "./fieldInfo.d.ts";
6
- export * from "./fieldPlan.d.ts";
7
- export * from "./fieldQueryMeta.d.ts";
8
- export * from "./getDefault.d.ts";
9
- export * from "./hydrationPlan.d.ts";
10
- export * from "./immerify.d.ts";
11
- export * from "./inputParser.d.ts";
12
- export * from "./invalidInputError.d.ts";
13
- export * from "./labelOf.d.ts";
14
- export * from "./mask.d.ts";
15
- export * from "./purify.d.ts";
16
- export * from "./requestValue.d.ts";
17
- export * from "./serialize.d.ts";
18
- export * from "./textFieldPathSet.d.ts";
19
- export * from "./textFieldPaths.d.ts";
20
- export * from "./types.d.ts";
21
- export * from "./via.d.ts";
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 { type BaseObject, type ConstantModelRef, type DefaultOf, type DefaultOfSchema } from ".";
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 { type ConstantModelRef } from ".";
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 +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" | "view" | "remove" | "skip" | "success" | "password" | "save" | "refresh" | "agent" | "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">;
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" | "view" | "remove" | "skip" | "success" | "save" | "refresh" | "password" | "agent" | "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">;