@nice-code/action 0.7.0 → 0.9.0

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 (145) hide show
  1. package/build/ActionDevtoolsCore-B4s6aGvI.d.ts +79 -0
  2. package/build/ActionDevtoolsCore-BLeY_N-3.js +159 -0
  3. package/build/ActionDevtoolsCore-BLeY_N-3.js.map +1 -0
  4. package/build/ActionDevtoolsCore-Pg7ERO3L.d.ts +79 -0
  5. package/build/ActionDevtoolsCore-yfJ9tkvl.js +154 -0
  6. package/build/ActionDevtoolsCore-yfJ9tkvl.js.map +1 -0
  7. package/build/ActionPayload.types-BN-rXFBK.d.ts +2328 -0
  8. package/build/ActionPayload.types-D28ELKXC.d.ts +2328 -0
  9. package/build/RunningAction.types-C176rqHG.js +22 -0
  10. package/build/RunningAction.types-C176rqHG.js.map +1 -0
  11. package/build/RunningAction.types-DjCX1xp5.js +39 -0
  12. package/build/RunningAction.types-DjCX1xp5.js.map +1 -0
  13. package/build/devtools/browser/index.d.ts +17 -0
  14. package/build/devtools/browser/index.js +3775 -5814
  15. package/build/devtools/browser/index.js.map +1 -0
  16. package/build/devtools/server/index.d.ts +35 -0
  17. package/build/devtools/server/index.js +97 -255
  18. package/build/devtools/server/index.js.map +1 -0
  19. package/build/index.d.ts +2 -0
  20. package/build/index.js +3877 -3674
  21. package/build/index.js.map +1 -0
  22. package/build/react-query/index.d.ts +17 -0
  23. package/build/react-query/index.js +60 -60
  24. package/build/react-query/index.js.map +1 -0
  25. package/package.json +34 -29
  26. package/build/types/ActionDefinition/Action/Action.combined.types.d.ts +0 -37
  27. package/build/types/ActionDefinition/Action/ActionBase.d.ts +0 -14
  28. package/build/types/ActionDefinition/Action/ActionBase.types.d.ts +0 -24
  29. package/build/types/ActionDefinition/Action/Context/ActionContext.d.ts +0 -25
  30. package/build/types/ActionDefinition/Action/Context/ActionContext.types.d.ts +0 -35
  31. package/build/types/ActionDefinition/Action/Core/ActionCore.d.ts +0 -19
  32. package/build/types/ActionDefinition/Action/Core/ActionCore.types.d.ts +0 -10
  33. package/build/types/ActionDefinition/Action/Payload/ActionPayload.d.ts +0 -14
  34. package/build/types/ActionDefinition/Action/Payload/ActionPayload.types.d.ts +0 -110
  35. package/build/types/ActionDefinition/Action/Payload/ActionPayload_Progress.d.ts +0 -15
  36. package/build/types/ActionDefinition/Action/Payload/ActionPayload_Request.d.ts +0 -26
  37. package/build/types/ActionDefinition/Action/Payload/ActionPayload_Result.d.ts +0 -19
  38. package/build/types/ActionDefinition/Action/RunningAction.d.ts +0 -36
  39. package/build/types/ActionDefinition/Action/RunningAction.types.d.ts +0 -73
  40. package/build/types/ActionDefinition/Domain/ActionDomain.d.ts +0 -42
  41. package/build/types/ActionDefinition/Domain/ActionDomain.types.d.ts +0 -43
  42. package/build/types/ActionDefinition/Domain/ActionDomainBase.d.ts +0 -14
  43. package/build/types/ActionDefinition/Domain/ActionRootDomain.d.ts +0 -24
  44. package/build/types/ActionDefinition/Domain/helpers/createRootActionDomain.d.ts +0 -5
  45. package/build/types/ActionDefinition/Schema/ActionSchema.d.ts +0 -68
  46. package/build/types/ActionDefinition/Schema/ActionSchema.types.d.ts +0 -28
  47. package/build/types/ActionRuntime/ActionDomainManager.d.ts +0 -13
  48. package/build/types/ActionRuntime/ActionRuntime.d.ts +0 -56
  49. package/build/types/ActionRuntime/ActionRuntime.types.d.ts +0 -22
  50. package/build/types/ActionRuntime/ActionRuntimeManager.d.ts +0 -20
  51. package/build/types/ActionRuntime/Handler/ActionHandler.d.ts +0 -16
  52. package/build/types/ActionRuntime/Handler/ActionHandler.types.d.ts +0 -65
  53. package/build/types/ActionRuntime/Handler/ExternalClient/ActionExternalClientHandler.d.ts +0 -45
  54. package/build/types/ActionRuntime/Handler/ExternalClient/ActionExternalClientHandler.types.d.ts +0 -7
  55. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/ConnectionTransportManager.d.ts +0 -16
  56. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/Custom/CustomConnection.d.ts +0 -7
  57. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/Custom/CustomTransport.d.ts +0 -43
  58. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/Custom/TransportCustom.types.d.ts +0 -11
  59. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/Http/HttpConnection.d.ts +0 -8
  60. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/Http/HttpTransport.d.ts +0 -26
  61. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/Http/TransportHttp.types.d.ts +0 -16
  62. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/Transport.d.ts +0 -27
  63. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/Transport.types.d.ts +0 -125
  64. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/TransportConnection.d.ts +0 -27
  65. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/WebSocket/TransportWebSocket.types.d.ts +0 -41
  66. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/WebSocket/WebSocketConnection.d.ts +0 -33
  67. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/WebSocket/WebSocketTransport.d.ts +0 -60
  68. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/WebSocket/actionFrameCrypto.d.ts +0 -31
  69. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/WebSocket/actionWireCodec.d.ts +0 -41
  70. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/WebSocket/actionWsHandshake.d.ts +0 -187
  71. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/WebSocket/createBinaryWsAdapter.d.ts +0 -20
  72. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/WebSocket/createBinaryWsSessionFactory.d.ts +0 -31
  73. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/WebSocket/secureWsChannel.d.ts +0 -63
  74. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/WebSocket/ws_util.d.ts +0 -11
  75. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/err_nice_transport.d.ts +0 -36
  76. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/err_nice_transport_ws.d.ts +0 -18
  77. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/helpers/addTransportStatusMetadata.d.ts +0 -2
  78. package/build/types/ActionRuntime/Handler/ExternalClient/Transport/helpers/createUnsetTransportResolvers.d.ts +0 -2
  79. package/build/types/ActionRuntime/Handler/ExternalClient/err_nice_external_client.d.ts +0 -5
  80. package/build/types/ActionRuntime/Handler/Local/ActionLocalHandler.d.ts +0 -55
  81. package/build/types/ActionRuntime/Handler/Local/ActionLocalHandler.types.d.ts +0 -7
  82. package/build/types/ActionRuntime/Handler/Server/ActionServerHandler.d.ts +0 -197
  83. package/build/types/ActionRuntime/Handler/Server/createSecureActionServer.d.ts +0 -71
  84. package/build/types/ActionRuntime/HandlerCallStack.d.ts +0 -3
  85. package/build/types/ActionRuntime/Routing/ActionRouter.d.ts +0 -55
  86. package/build/types/ActionRuntime/Routing/ActionRouter.types.d.ts +0 -20
  87. package/build/types/ActionRuntime/RuntimeCoordinate.d.ts +0 -58
  88. package/build/types/ActionRuntime/test/helpers/new_action_test_data.d.ts +0 -207
  89. package/build/types/ActionRuntime/utils/runtimeCoordinateToStringIds.d.ts +0 -2
  90. package/build/types/devtools/browser/NiceActionDevtools.d.ts +0 -14
  91. package/build/types/devtools/browser/components/ActionErrorDisplay.d.ts +0 -5
  92. package/build/types/devtools/browser/components/CallStackSection.d.ts +0 -8
  93. package/build/types/devtools/browser/components/ChildDispatchChips.d.ts +0 -6
  94. package/build/types/devtools/browser/components/Chip.d.ts +0 -22
  95. package/build/types/devtools/browser/components/DetailSection.d.ts +0 -5
  96. package/build/types/devtools/browser/components/DomainChip.d.ts +0 -8
  97. package/build/types/devtools/browser/components/HandlerChips.d.ts +0 -21
  98. package/build/types/devtools/browser/components/Icon.d.ts +0 -16
  99. package/build/types/devtools/browser/components/MetaSection.d.ts +0 -4
  100. package/build/types/devtools/browser/components/NiceErrorDisplay.d.ts +0 -19
  101. package/build/types/devtools/browser/components/OriginChip.d.ts +0 -15
  102. package/build/types/devtools/browser/components/PanelChrome.d.ts +0 -41
  103. package/build/types/devtools/browser/components/RoutingSection.d.ts +0 -5
  104. package/build/types/devtools/browser/components/RunningTimer.d.ts +0 -7
  105. package/build/types/devtools/browser/components/SectionLabel.d.ts +0 -4
  106. package/build/types/devtools/browser/components/StackTraceSection.d.ts +0 -9
  107. package/build/types/devtools/browser/components/Tooltip.d.ts +0 -24
  108. package/build/types/devtools/browser/components/action_detail/ActionDetailPanel.d.ts +0 -7
  109. package/build/types/devtools/browser/components/action_list/ActionEntryRow.d.ts +0 -14
  110. package/build/types/devtools/browser/components/action_list/ActionInputAndOutputChip.d.ts +0 -11
  111. package/build/types/devtools/browser/components/action_list/ActionList.d.ts +0 -10
  112. package/build/types/devtools/browser/components/action_list/IoTooltipContent.d.ts +0 -6
  113. package/build/types/devtools/browser/components/action_list/action_list.types.d.ts +0 -4
  114. package/build/types/devtools/browser/components/sourceMapResolver.d.ts +0 -6
  115. package/build/types/devtools/browser/components/utils.d.ts +0 -22
  116. package/build/types/devtools/browser/devtools_dock.d.ts +0 -54
  117. package/build/types/devtools/browser/devtools_storage.d.ts +0 -6
  118. package/build/types/devtools/browser/index.d.ts +0 -3
  119. package/build/types/devtools/browser/ui_util/size.d.ts +0 -6
  120. package/build/types/devtools/core/ActionDevtools.types.d.ts +0 -55
  121. package/build/types/devtools/core/ActionDevtoolsCore.d.ts +0 -14
  122. package/build/types/devtools/core/devtools_colors.d.ts +0 -63
  123. package/build/types/devtools/server/NiceActionServerDevtools.d.ts +0 -30
  124. package/build/types/devtools/server/index.d.ts +0 -3
  125. package/build/types/errors/err_nice_action.d.ts +0 -96
  126. package/build/types/index.d.ts +0 -41
  127. package/build/types/nice_action.static.d.ts +0 -3
  128. package/build/types/react-query/hooks/useActionMutation.d.ts +0 -10
  129. package/build/types/react-query/hooks/useActionQuery.d.ts +0 -17
  130. package/build/types/react-query/index.d.ts +0 -2
  131. package/build/types/utils/assertIsActionJson.d.ts +0 -2
  132. package/build/types/utils/decodeActionFrame.d.ts +0 -17
  133. package/build/types/utils/getAssumedRuntimeEnvironment.d.ts +0 -2
  134. package/build/types/utils/hashPayloadData.d.ts +0 -5
  135. package/build/types/utils/isActionPayload_Any_JsonObject.d.ts +0 -2
  136. package/build/types/utils/isActionPayload_Progress_JsonObject.d.ts +0 -2
  137. package/build/types/utils/isActionPayload_Request_JsonObject.d.ts +0 -2
  138. package/build/types/utils/isActionPayload_Result_JsonObject.d.ts +0 -2
  139. package/build/types/utils/isAction_Any_Instance.d.ts +0 -3
  140. package/build/types/utils/isAction_Any_JsonObject.d.ts +0 -2
  141. package/build/types/utils/isAction_Base_JsonObject.d.ts +0 -2
  142. package/build/types/utils/isAction_Context_JsonObject.d.ts +0 -2
  143. package/build/types/utils/isAction_Core_JsonObject.d.ts +0 -2
  144. package/build/types/utils/typescript/MaybePromise.d.ts +0 -1
  145. package/build/types/utils/wait.utils.d.ts +0 -13
@@ -1,8 +0,0 @@
1
- import type { IDevtoolsActionEntry } from "../../core/ActionDevtools.types";
2
- export declare function CallStackSection({ parent, childEntries, focusedChildCuid, onFocusChild, onSelectParent, }: {
3
- parent: IDevtoolsActionEntry | null;
4
- childEntries: IDevtoolsActionEntry[];
5
- focusedChildCuid: string | null;
6
- onFocusChild: (cuid: string) => void;
7
- onSelectParent: (cuid: string) => void;
8
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,6 +0,0 @@
1
- import type { IDevtoolsRouteItem } from "../../core/ActionDevtools.types";
2
- import { ESize } from "../ui_util/size";
3
- export declare function ChildDispatchChips({ childRouteItems, size, }: {
4
- childRouteItems?: IDevtoolsRouteItem[];
5
- size?: ESize;
6
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,22 +0,0 @@
1
- import { type ReactNode } from "react";
2
- import { type ESemanticThing } from "../../core/devtools_colors";
3
- import { ESize } from "../ui_util/size";
4
- import { type ITooltipConfig } from "./Tooltip";
5
- export interface IChipColorEntry {
6
- color: string;
7
- borderColor: string;
8
- subtle?: {
9
- color?: string;
10
- borderColor?: string;
11
- };
12
- }
13
- interface IChipProps {
14
- color: ESemanticThing;
15
- subtle?: boolean;
16
- size?: ESize;
17
- rounded?: boolean;
18
- tooltip?: ITooltipConfig;
19
- children: ReactNode;
20
- }
21
- export declare function Chip({ color, subtle, size, rounded, tooltip, children, }: IChipProps): import("react/jsx-runtime").JSX.Element;
22
- export {};
@@ -1,5 +0,0 @@
1
- export declare function DetailSection({ label, value, color, }: {
2
- label: string;
3
- value: unknown;
4
- color?: string;
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { ESize } from "../ui_util/size";
2
- export declare function DomainChip({ compact, subtle, domain, allDomains, size, }: {
3
- compact?: boolean;
4
- subtle?: boolean;
5
- domain: string;
6
- allDomains: string[];
7
- size?: ESize;
8
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,21 +0,0 @@
1
- import type { IDevtoolsActionEntry, IDevtoolsRouteItem } from "../../core/ActionDevtools.types";
2
- import { ESize } from "../ui_util/size";
3
- import type { ITooltipConfig } from "./Tooltip";
4
- export declare function getExternalLabel(hop: IDevtoolsRouteItem): string | null;
5
- /**
6
- * Extended transport details (request/WebSocket endpoint) for the external handler — shown on hover
7
- * only, so the chip/label itself stays short.
8
- */
9
- export declare function getTransportTooltip(hop: IDevtoolsRouteItem): ITooltipConfig | undefined;
10
- /**
11
- * Aggregate transport tooltip for a chip/label that represents one or more external hops (e.g. a
12
- * grouped child-dispatch chip that accumulates several transports for the same runtime).
13
- */
14
- export declare function getTransportTooltipForHops(hops: IDevtoolsRouteItem[]): ITooltipConfig | undefined;
15
- interface IHandlerChipsProps {
16
- entry: IDevtoolsActionEntry;
17
- size: ESize;
18
- subtle?: boolean;
19
- }
20
- export declare function HandlerChips({ entry, size, subtle }: IHandlerChipsProps): import("react/jsx-runtime").JSX.Element;
21
- export {};
@@ -1,16 +0,0 @@
1
- import type { LucideIcon } from "lucide-react";
2
- import type { CSSProperties } from "react";
3
- import { type ESemanticThing } from "../../core/devtools_colors";
4
- import { ESize } from "../ui_util/size";
5
- import { type ITooltipConfig } from "./Tooltip";
6
- interface IIconProps {
7
- icon: LucideIcon | LucideIcon[];
8
- color: ESemanticThing;
9
- size?: ESize;
10
- subtle?: boolean;
11
- tooltip?: ITooltipConfig;
12
- style?: CSSProperties;
13
- noBackground?: boolean;
14
- }
15
- export declare function Icon({ icon: IconComponent, color, size, subtle, tooltip, style, noBackground, }: IIconProps): import("react/jsx-runtime").JSX.Element;
16
- export {};
@@ -1,4 +0,0 @@
1
- import type { IDevtoolsActionEntry } from "../../core/ActionDevtools.types";
2
- export declare function MetaSection({ entry }: {
3
- entry: IDevtoolsActionEntry;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,19 +0,0 @@
1
- export type TNiceErrorJson = {
2
- name: "NiceError";
3
- message: string;
4
- ids: string[];
5
- httpStatusCode: number;
6
- def: {
7
- domain: string;
8
- allDomains: string[];
9
- };
10
- };
11
- export declare function isNiceErrorJson(value: unknown): value is TNiceErrorJson;
12
- export declare function NiceErrorBody({ error }: {
13
- error: TNiceErrorJson;
14
- }): import("react/jsx-runtime").JSX.Element;
15
- export declare function NiceErrorDisplay({ error, label, color, }: {
16
- error: TNiceErrorJson;
17
- label: string;
18
- color: string;
19
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,15 +0,0 @@
1
- import { ESize } from "../ui_util/size";
2
- /**
3
- * Marks an action that was received from another runtime (a backend push, or an action relayed from
4
- * another client) rather than dispatched locally. The chip shows the origin's `envId`; the tooltip
5
- * carries the full coordinate. Render it only when {@link getInboundOrigin} returns a value.
6
- */
7
- export declare function OriginChip({ origin, size, subtle, }: {
8
- origin: {
9
- envId: string;
10
- perId?: string;
11
- insId?: string;
12
- };
13
- size?: ESize;
14
- subtle?: boolean;
15
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,41 +0,0 @@
1
- import type { TDevtoolsPosition } from "../../core/ActionDevtools.types";
2
- export interface IDevtoolsLauncherItem {
3
- id: string;
4
- label: string;
5
- icon: string;
6
- badge?: string;
7
- onOpen: () => void;
8
- }
9
- export type TDockSide = "top" | "bottom" | "left" | "right";
10
- export declare function getDockSide(pos: TDevtoolsPosition): TDockSide;
11
- export declare function PanelHeader({ position, onPositionChange, onClose, onClear, openOthers, }: {
12
- position: TDevtoolsPosition;
13
- onPositionChange: (p: TDevtoolsPosition) => void;
14
- onClose: () => void;
15
- onClear?: () => void;
16
- openOthers?: IDevtoolsLauncherItem[];
17
- }): import("react/jsx-runtime").JSX.Element;
18
- export declare function ResizeHandle({ dockSide, dockedSize, onChange, }: {
19
- dockSide: TDockSide;
20
- dockedSize: number;
21
- onChange: (size: number) => void;
22
- }): import("react/jsx-runtime").JSX.Element;
23
- /**
24
- * Draggable divider between the list and the detail pane. `horizontal` refers to
25
- * the split axis: a row layout (dock top/bottom) splits horizontally and drags
26
- * left/right; a column layout (dock left/right) splits vertically. The reported
27
- * ratio is the fraction of the container the *detail* pane should occupy.
28
- */
29
- export declare function SplitHandle({ horizontal, onRatioChange, }: {
30
- horizontal: boolean;
31
- onRatioChange: (ratio: number) => void;
32
- }): import("react/jsx-runtime").JSX.Element;
33
- /**
34
- * The combined, page-wide launcher shown while every devtool is collapsed — one
35
- * grouped pill with a segment per registered devtool, so the buttons never
36
- * overlap or hide behind each other. Rendered by the coordinator's "primary"
37
- * devtool only.
38
- */
39
- export declare function DevtoolsLauncher({ items }: {
40
- items: IDevtoolsLauncherItem[];
41
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- import type { IDevtoolsActionEntry } from "../../core/ActionDevtools.types";
2
- export declare function RoutingSection({ entry, minHopCount, }: {
3
- entry: IDevtoolsActionEntry;
4
- minHopCount?: number;
5
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,7 +0,0 @@
1
- import type { IDevtoolsActionEntry } from "../../core/ActionDevtools.types";
2
- export declare function RunningTimer({ startTime }: {
3
- startTime: number;
4
- }): import("react/jsx-runtime").JSX.Element;
5
- export declare function DurationDisplay({ entry }: {
6
- entry: IDevtoolsActionEntry;
7
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export declare function SectionLabel({ label, color, }: {
2
- label: string;
3
- color?: string;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- import type { IRuntimeCoordinate } from "../../../ActionRuntime/RuntimeCoordinate";
2
- export declare function countUserFrames(_runtime: IRuntimeCoordinate, stack: string | undefined): number;
3
- export declare function StackTraceSection({ label, stack, color, runtime, minFrameCount, }: {
4
- label: string;
5
- stack: string | undefined;
6
- runtime: IRuntimeCoordinate;
7
- color?: string;
8
- minFrameCount?: number;
9
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,24 +0,0 @@
1
- import { type CSSProperties, type ReactNode } from "react";
2
- export interface ITooltipConfig {
3
- content: ReactNode;
4
- title?: ReactNode;
5
- /** "center" centers the tooltip above/below the anchor (default).
6
- * "edge" aligns the nearer horizontal edge with the anchor edge. */
7
- align?: "center" | "edge";
8
- maxWidth?: number;
9
- }
10
- export declare function Tooltip({ anchor, config, children, }: {
11
- anchor: DOMRect;
12
- config: ITooltipConfig;
13
- children?: ReactNode;
14
- }): import("react/jsx-runtime").JSX.Element;
15
- /**
16
- * Wraps inline content so it shows `config` as a hover tooltip. When `config` is null the children
17
- * render untouched (no hover handlers, no tooltip). Useful for non-Chip text labels that still need
18
- * the same tooltip treatment as Chips.
19
- */
20
- export declare function HoverTooltip({ config, children, style, }: {
21
- config?: ITooltipConfig;
22
- children: ReactNode;
23
- style?: CSSProperties;
24
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import type { IDevtoolsActionEntry } from "../../../core/ActionDevtools.types";
2
- export declare function ActionDetailPanel({ entry, parent, childEntries, onSelectEntry, }: {
3
- entry: IDevtoolsActionEntry;
4
- parent: IDevtoolsActionEntry | null;
5
- childEntries: IDevtoolsActionEntry[];
6
- onSelectEntry: (cuid: string) => void;
7
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,14 +0,0 @@
1
- import type { IDevtoolsActionEntry } from "../../../core/ActionDevtools.types";
2
- import { EBreakGroupReason } from "./action_list.types";
3
- export declare function ActionEntryRow({ entry, isSelected, onClick, isLatest, latestTime, childEntries, breakReasons, groupEntries, selectedGroupCuid, onSelectGroupEntry, }: {
4
- entry: IDevtoolsActionEntry;
5
- isSelected: boolean;
6
- onClick: () => void;
7
- isLatest?: boolean;
8
- latestTime?: number;
9
- childEntries?: IDevtoolsActionEntry[];
10
- breakReasons: EBreakGroupReason[];
11
- groupEntries?: IDevtoolsActionEntry[];
12
- selectedGroupCuid?: string | null;
13
- onSelectGroupEntry?: (cuid: string) => void;
14
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +0,0 @@
1
- import type { IDevtoolsActionEntry } from "../../../core/ActionDevtools.types";
2
- import { ESize } from "../../ui_util/size";
3
- import { EBreakGroupReason } from "./action_list.types";
4
- interface IActionInputAndOutputChipProps {
5
- entry: IDevtoolsActionEntry;
6
- breakReasons: EBreakGroupReason[];
7
- subtle?: boolean;
8
- size?: ESize;
9
- }
10
- export declare const ActionInputAndOutputChip: ({ entry, breakReasons, subtle, size, }: IActionInputAndOutputChipProps) => import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,10 +0,0 @@
1
- import type { IDevtoolsActionEntry } from "../../../server";
2
- import type { IEntryGroup } from "../../NiceActionDevtools";
3
- export declare function ActionList({ groups, selectedCuid, onGroupClick, onSubClick, childEntriesMap, style, }: {
4
- groups: IEntryGroup[];
5
- selectedCuid: string | null;
6
- onGroupClick: (group: IEntryGroup) => void;
7
- onSubClick: (cuid: string, isSelected: boolean) => void;
8
- childEntriesMap: Map<string, IDevtoolsActionEntry[]>;
9
- style?: React.CSSProperties;
10
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- export declare const _IoTooltipContent: ({ value }: {
2
- value: unknown;
3
- }) => import("react/jsx-runtime").JSX.Element;
4
- export declare function IoTooltipContent({ value }: {
5
- value: unknown;
6
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export declare enum EBreakGroupReason {
2
- new_input = "new_input",
3
- new_output = "new_output"
4
- }
@@ -1,6 +0,0 @@
1
- export interface IResolvedSourcePosition {
2
- file: string;
3
- line: number;
4
- col: number;
5
- }
6
- export declare function resolveCompiledPosition(fileUrl: string, line: number, col: number): Promise<IResolvedSourcePosition | null>;
@@ -1,22 +0,0 @@
1
- import { type LucideIcon } from "lucide-react";
2
- import type { IDevtoolsActionEntry, TDevtoolsActionStatus } from "../../core/ActionDevtools.types";
3
- import { ESemanticThing } from "../../core/devtools_colors";
4
- export declare const STATUS_COLOR: Record<TDevtoolsActionStatus, string>;
5
- export declare const STATUS_THING: Record<TDevtoolsActionStatus, ESemanticThing>;
6
- export declare const STATUS_SYMBOL: Record<TDevtoolsActionStatus, string>;
7
- export declare const STATUS_ICON: Record<TDevtoolsActionStatus, LucideIcon>;
8
- /**
9
- * The runtime an action *originated* on, when that differs from the runtime that handled it — i.e. an
10
- * inbound action received over a transport (a backend push, or an action relayed from another client),
11
- * rather than one dispatched locally. Returns `null` for locally-originated actions (where the origin
12
- * matches the handling runtime) and for actions with no known origin.
13
- */
14
- export declare function getInboundOrigin(entry: IDevtoolsActionEntry): {
15
- envId: string;
16
- perId?: string;
17
- insId?: string;
18
- } | null;
19
- export declare function safeStringify(value: unknown, indent?: number): string;
20
- export declare function formatRelativeAge(ms: number): string;
21
- export declare function formatDuration(entry: IDevtoolsActionEntry): string | null;
22
- export declare function formatTimestamp(startTime: number): string;
@@ -1,54 +0,0 @@
1
- export type TDockSide = "top" | "bottom" | "left" | "right";
2
- /** A handle to one registered devtool, used to render launch controls. */
3
- export interface IDockDevtoolRef {
4
- id: string;
5
- label: string;
6
- icon: string;
7
- badge?: string;
8
- onOpen: () => void;
9
- }
10
- /** The live, syncable part of a devtool's registration. */
11
- export interface IDockDevtoolSync {
12
- side: TDockSide;
13
- size: number;
14
- open: boolean;
15
- badge?: string;
16
- }
17
- export interface IDockDevtoolInput extends IDockDevtoolSync {
18
- id: string;
19
- label: string;
20
- icon: string;
21
- onOpen: () => void;
22
- }
23
- export interface IDockView {
24
- /** Offset (px) from the docked edge — stacks open panels on the same side. */
25
- dockOffset: number;
26
- /**
27
- * True when this panel shares its dock side with another open panel (stacked
28
- * either nearer or further from the edge). Stacked panels square off all their
29
- * corners so they sit flush as one continuous block — only a panel alone on
30
- * its side keeps its rounded, page-facing corners.
31
- */
32
- stacked: boolean;
33
- /** Is any devtool on the page currently open? */
34
- anyOpen: boolean;
35
- /** First-registered devtool — the one that renders the combined launcher. */
36
- isPrimary: boolean;
37
- /** Every registered devtool, for the combined launcher. */
38
- devtools: IDockDevtoolRef[];
39
- /** Closed devtools other than this one, for an open panel's header. */
40
- otherClosed: IDockDevtoolRef[];
41
- }
42
- export interface IDevtoolsDockCoordinator {
43
- version: number;
44
- register(panel: IDockDevtoolInput): () => void;
45
- update(id: string, next: IDockDevtoolSync): void;
46
- getView(id: string): IDockView;
47
- subscribe(listener: () => void): () => void;
48
- }
49
- /**
50
- * Returns the page-wide dock coordinator, installing it on `window` the first
51
- * time it is requested. On the server (no `window`) a throwaway instance is
52
- * returned so callers can use it unconditionally.
53
- */
54
- export declare function getDevtoolsDockCoordinator(): IDevtoolsDockCoordinator;
@@ -1,6 +0,0 @@
1
- import type { TRuntimeCoordinateEnvId } from "../../ActionRuntime/RuntimeCoordinate";
2
- interface TBrowserDevtoolsTypedStorage {
3
- runtimeToProjectFilePath: Record<TRuntimeCoordinateEnvId, string>;
4
- }
5
- export declare const devtools_storage: import("@nice-code/util").ITypedStorage<TBrowserDevtoolsTypedStorage>;
6
- export {};
@@ -1,3 +0,0 @@
1
- export type { IDevtoolsActionEntry, IDevtoolsObservableDomain, TDevtoolsActionStatus, TDevtoolsListener, } from "../core/ActionDevtools.types";
2
- export { ActionDevtoolsCore, type IActionDevtoolsCoreOptions } from "../core/ActionDevtoolsCore";
3
- export { type INiceActionDevtoolsProps, NiceActionDevtools } from "./NiceActionDevtools";
@@ -1,6 +0,0 @@
1
- export declare enum ESize {
2
- sm = "sm",
3
- md = "md",
4
- lg = "lg"
5
- }
6
- export declare function getSizeValue(size: ESize): number;
@@ -1,55 +0,0 @@
1
- import type { TActionProgress } from "../../ActionDefinition/Action/Payload/ActionPayload.types";
2
- import type { IRuntimeCoordinate } from "../../ActionRuntime/RuntimeCoordinate";
3
- export type TDevtoolsActionStatus = "running" | "success" | "action-error" | "failed" | "aborted";
4
- export type TDevtoolsPosition = "dock-bottom" | "dock-top" | "dock-left" | "dock-right";
5
- export interface IDevtoolsRouteItem {
6
- runtime: IRuntimeCoordinate;
7
- handlerType: "local" | "external";
8
- handlerClient?: {
9
- envId: string;
10
- perId?: string;
11
- insId?: string;
12
- };
13
- /** Transport type string (e.g. "http", "ws", "custom"). */
14
- transport?: string;
15
- /** Short transport summary for chips (e.g. "POST /resolve_action"). */
16
- transportSummary?: string;
17
- /** Resolved endpoint (request URL / WebSocket URL), when available. */
18
- transportUrl?: string;
19
- time: number;
20
- label?: string;
21
- }
22
- export interface IDevtoolsActionMeta {
23
- timeCreated: number;
24
- originClient: {
25
- envId: string;
26
- perId?: string;
27
- insId?: string;
28
- };
29
- routing: IDevtoolsRouteItem[];
30
- }
31
- export interface IDevtoolsActionEntry {
32
- cuid: string;
33
- actionId: string;
34
- domain: string;
35
- allDomains: string[];
36
- status: TDevtoolsActionStatus;
37
- startTime: number;
38
- endTime?: number;
39
- input: unknown;
40
- inputHash?: string;
41
- output?: unknown;
42
- outputHash?: string;
43
- error?: unknown;
44
- abortReason?: unknown;
45
- progressUpdates: TActionProgress[];
46
- meta: IDevtoolsActionMeta;
47
- parentCuid?: string;
48
- callSite?: string;
49
- errorStack?: string;
50
- }
51
- export type TDevtoolsListener = (entries: readonly IDevtoolsActionEntry[]) => void;
52
- export interface IDevtoolsObservableDomain {
53
- domain: string;
54
- addActionListener(listener: (update: any) => void): () => void;
55
- }
@@ -1,14 +0,0 @@
1
- import type { IDevtoolsActionEntry, IDevtoolsObservableDomain, TDevtoolsListener } from "./ActionDevtools.types";
2
- export interface IActionDevtoolsCoreOptions {
3
- }
4
- export declare class ActionDevtoolsCore {
5
- private _entries;
6
- private _listeners;
7
- constructor(_options?: IActionDevtoolsCoreOptions);
8
- attachToDomain(domain: IDevtoolsObservableDomain): () => void;
9
- getEntries(): readonly IDevtoolsActionEntry[];
10
- subscribe(listener: TDevtoolsListener): () => void;
11
- clear(): void;
12
- private _updateEntry;
13
- private _notify;
14
- }
@@ -1,63 +0,0 @@
1
- import type { IChipColorEntry } from "../browser/components/Chip";
2
- export declare const DEVTOOL_COLOR_SEMANTIC_ERROR = "#FF5C5C";
3
- export declare const DEVTOOL_COLOR_SEMANTIC_SUCCESS = "#A3E635";
4
- export declare const DEVTOOL_COLOR_SEMANTIC_SYSTEM = "#38BDF8";
5
- export declare const DEVTOOL_COLOR_SEMANTIC_WARNING = "#FB923C";
6
- export declare const DEVTOOL_COLOR_SEMANTIC_METADATA = "#A1A1AA";
7
- export declare const DEVTOOL_COLOR_HANDLER_LOCAL_TEXT = "#34bb89";
8
- export declare const DEVTOOL_COLOR_HANDLER_LOCAL_BORDER = "#144427";
9
- export declare const DEVTOOL_COLOR_HANDLER_EXTERNAL_TEXT = "#cfa12a";
10
- export declare const DEVTOOL_COLOR_HANDLER_EXTERNAL_BORDER = "#723917";
11
- export declare const DEVTOOL_COLOR_TEXT_EMPHASIS = "#f1f5f9";
12
- export declare const DEVTOOL_COLOR_TEXT_SECONDARY = "#cbd5e1";
13
- export declare const DEVTOOL_COLOR_TEXT_MUTED = "#64748b";
14
- export declare const DEVTOOL_COLOR_TEXT_FAINT = "#334155";
15
- export declare const DEVTOOL_LIST_BASE_BACKGROUND = "#0f172a";
16
- export declare const DEVTOOL_LIST_HEADER_SELECTED_BACKGROUND = "#1d2942";
17
- export declare const DEVTOOL_LIST_GROUP_DIVIDER = "#101109";
18
- export declare const DEVTOOL_DETAIL_BASE_BACKGROUND = "#0d1729";
19
- export declare const DEVTOOL_DETAIL_HEADER_BACKGROUND = "#131f35";
20
- export declare const DEVTOOL_SECTION_BACKGROUND = "#1e293b";
21
- export declare const DEVTOOL_SECTION_STRING_BACKGROUND = "#0d131f";
22
- export declare const DEVTOOL_STACK_TRACE_BACKGROUND = "#040a13";
23
- export declare const DEVTOOL_PANEL_BORDER = "#1e293b";
24
- export declare const DEVTOOL_PANEL_DIVIDER_BORDER = "#1d3352";
25
- export declare const DEVTOOL_ERROR_BACKGROUND = "#1e0a0a";
26
- export declare const DEVTOOL_ERROR_BADGE_BACKGROUND = "#2d0f0f";
27
- export declare const DEVTOOL_TOOLTIP_BACKGROUND = "#0c1526";
28
- export declare const DEVTOOL_TOOLTIP_TITLE_BACKGROUND = "#101b2e";
29
- export declare const DEVTOOL_TOOLTIP_TITLE_BOTTOM_BORDER = "#211f5f";
30
- export declare const DEVTOOL_TOOLTIP_BORDER = "#312e81";
31
- export declare const DEVTOOL_COLOR_CALL_STACK_DIVIDER = "#0a1120";
32
- export declare const DEVTOOL_JSON_KEY = "#a5b4fc";
33
- export declare const DEVTOOL_JSON_STRING = "#fbbf24";
34
- export declare const DEVTOOL_JSON_NUMBER = "#34d399";
35
- export declare const DEVTOOL_JSON_KEYWORD = "#a78bfa";
36
- export declare const DEVTOOL_JSON_PUNCTUATION = "#475569";
37
- export declare const DEVTOOL_STACK_FRAME_USER_NUMBER = "#64748b";
38
- export declare const DEVTOOL_STACK_FRAME_USER_FUNCTION = "#e2e8f0";
39
- export declare const DEVTOOL_STACK_FRAME_USER_FOLDER = "#596b83";
40
- export declare const DEVTOOL_STACK_FRAME_USER_FILE = "#8a9ebb";
41
- export declare const DEVTOOL_STACK_FRAME_USER_LINE = "#4a7fa8";
42
- export declare const DEVTOOL_STACK_FRAME_INTERNAL_NUMBER = "#2d3f53";
43
- export declare const DEVTOOL_STACK_FRAME_INTERNAL_FUNCTION = "#50698b";
44
- export declare const DEVTOOL_STACK_FRAME_INTERNAL_FOLDER = "#2d3f53";
45
- export declare const DEVTOOL_STACK_FRAME_INTERNAL_FILE = "#425979";
46
- export declare const DEVTOOL_STACK_FRAME_INTERNAL_LINE = "#2d4a63";
47
- export declare enum ESemanticThing {
48
- running_action = "running_action",
49
- success = "success",
50
- action_error = "action_error",
51
- failed = "failed",
52
- aborted = "aborted",
53
- error = "error",// error chip in list / tooltip
54
- domain = "domain",
55
- handler_local = "handler_local",
56
- handler_external = "handler_external",
57
- origin = "origin",// runtime an action was received from (inbound / pushed actions)
58
- age = "age",// non-latest relative-age chip
59
- io_input = "io_input",
60
- io_output = "io_output",
61
- default = "default"
62
- }
63
- export declare const SEMANTIC_COLORS: Record<ESemanticThing, IChipColorEntry>;
@@ -1,30 +0,0 @@
1
- import type { IDevtoolsObservableDomain } from "../core/ActionDevtools.types";
2
- export type TServerDevtoolsLogFn = (message: string, data?: Record<string, unknown>) => void;
3
- export interface IActionServerDevtoolsOptions {
4
- /**
5
- * Custom logger function. Defaults to console.log / console.error.
6
- */
7
- logger?: TServerDevtoolsLogFn;
8
- /**
9
- * Output format.
10
- * - "pretty": human-readable lines (default)
11
- * - "json": newline-delimited JSON for log aggregators
12
- */
13
- format?: "pretty" | "json";
14
- /**
15
- * Whether to log action input/output payloads.
16
- * Disable if payloads may contain sensitive data. Defaults to true.
17
- */
18
- logPayloads?: boolean;
19
- /**
20
- * Whether devtools are active. Defaults to process.env.NODE_ENV !== "production".
21
- */
22
- enabled?: boolean;
23
- }
24
- export declare class ActionServerDevtools {
25
- private readonly _options;
26
- private readonly _inFlight;
27
- constructor(options?: IActionServerDevtoolsOptions);
28
- attachToDomain(domain: IDevtoolsObservableDomain): () => void;
29
- private _log;
30
- }
@@ -1,3 +0,0 @@
1
- export type { IDevtoolsActionEntry, IDevtoolsObservableDomain, TDevtoolsActionStatus, TDevtoolsListener, } from "../core/ActionDevtools.types";
2
- export { ActionDevtoolsCore, type IActionDevtoolsCoreOptions } from "../core/ActionDevtoolsCore";
3
- export { ActionServerDevtools, type IActionServerDevtoolsOptions, type TServerDevtoolsLogFn, } from "./NiceActionServerDevtools";