@agent-scope/core 1.2.0 → 1.3.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.
- package/dist/index.d.cts +55 -1
- package/dist/index.d.ts +55 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -630,4 +630,58 @@ interface SerializeOptions {
|
|
|
630
630
|
*/
|
|
631
631
|
declare function serialize(value: unknown, options?: SerializeOptions): SerializedValue;
|
|
632
632
|
|
|
633
|
-
|
|
633
|
+
/**
|
|
634
|
+
* A lightweight node in the captured React component tree.
|
|
635
|
+
*
|
|
636
|
+
* Used when `__SCOPE_CAPTURE__({ lightweight: true })` is called.
|
|
637
|
+
* Omits expensive fields (props, state, context, source, renderCount,
|
|
638
|
+
* renderDuration) to produce a ~99% smaller payload suitable for large trees.
|
|
639
|
+
*
|
|
640
|
+
* Each `LightweightComponentNode` corresponds to a single React fiber at the
|
|
641
|
+
* time of capture.
|
|
642
|
+
*/
|
|
643
|
+
interface LightweightComponentNode {
|
|
644
|
+
/**
|
|
645
|
+
* The React fiber's internal numeric ID. Stable for the lifetime of a
|
|
646
|
+
* mounted component; reused after unmount.
|
|
647
|
+
*/
|
|
648
|
+
id: number;
|
|
649
|
+
/**
|
|
650
|
+
* The resolved display name of the component.
|
|
651
|
+
*/
|
|
652
|
+
name: string;
|
|
653
|
+
/**
|
|
654
|
+
* Implementation strategy of the component.
|
|
655
|
+
* @see {@link ComponentType}
|
|
656
|
+
*/
|
|
657
|
+
type: ComponentType;
|
|
658
|
+
/**
|
|
659
|
+
* Total number of hooks used by this component.
|
|
660
|
+
* Derived by counting the fiber's memoizedState linked list without
|
|
661
|
+
* serializing hook values.
|
|
662
|
+
*/
|
|
663
|
+
hookCount: number;
|
|
664
|
+
/**
|
|
665
|
+
* Ordered list of hook types used by this component.
|
|
666
|
+
* Ordered by hook call-order (first `use*` call = index 0).
|
|
667
|
+
* Empty for class components and host elements.
|
|
668
|
+
*/
|
|
669
|
+
hookTypes: HookType[];
|
|
670
|
+
/**
|
|
671
|
+
* Number of direct children of this node.
|
|
672
|
+
* Equals `children.length`.
|
|
673
|
+
*/
|
|
674
|
+
childCount: number;
|
|
675
|
+
/**
|
|
676
|
+
* Depth of this node in the tree. Root node = 0, incremented per level.
|
|
677
|
+
*/
|
|
678
|
+
depth: number;
|
|
679
|
+
/**
|
|
680
|
+
* Ordered list of child component nodes.
|
|
681
|
+
*
|
|
682
|
+
* Depth-first; an empty array means the component is a leaf node.
|
|
683
|
+
*/
|
|
684
|
+
children: LightweightComponentNode[];
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
export { COMPONENT_TYPES, CONSOLE_LEVELS, type CapturedError, type ComponentNode, type ComponentType, type ConsoleEntry, type ConsoleLevel, type ContextConsumption, HOOK_TYPES, type HookState, type HookType, type LightweightComponentNode, type PageReport, type RouteInfo, SCHEMA_VERSION, SERIALIZED_VALUE_TYPES, type SerializeOptions, type SerializedValue, type SerializedValueType, type SourceLocation, type SuspenseBoundaryInfo, isCapturedError, isComponentNode, isComponentNodeDeep, isConsoleEntry, isContextConsumption, isHookState, isPageReport, isPageReportDeep, isRouteInfo, isSerializedValue, isSourceLocation, isSuspenseBoundaryInfo, serialize };
|
package/dist/index.d.ts
CHANGED
|
@@ -630,4 +630,58 @@ interface SerializeOptions {
|
|
|
630
630
|
*/
|
|
631
631
|
declare function serialize(value: unknown, options?: SerializeOptions): SerializedValue;
|
|
632
632
|
|
|
633
|
-
|
|
633
|
+
/**
|
|
634
|
+
* A lightweight node in the captured React component tree.
|
|
635
|
+
*
|
|
636
|
+
* Used when `__SCOPE_CAPTURE__({ lightweight: true })` is called.
|
|
637
|
+
* Omits expensive fields (props, state, context, source, renderCount,
|
|
638
|
+
* renderDuration) to produce a ~99% smaller payload suitable for large trees.
|
|
639
|
+
*
|
|
640
|
+
* Each `LightweightComponentNode` corresponds to a single React fiber at the
|
|
641
|
+
* time of capture.
|
|
642
|
+
*/
|
|
643
|
+
interface LightweightComponentNode {
|
|
644
|
+
/**
|
|
645
|
+
* The React fiber's internal numeric ID. Stable for the lifetime of a
|
|
646
|
+
* mounted component; reused after unmount.
|
|
647
|
+
*/
|
|
648
|
+
id: number;
|
|
649
|
+
/**
|
|
650
|
+
* The resolved display name of the component.
|
|
651
|
+
*/
|
|
652
|
+
name: string;
|
|
653
|
+
/**
|
|
654
|
+
* Implementation strategy of the component.
|
|
655
|
+
* @see {@link ComponentType}
|
|
656
|
+
*/
|
|
657
|
+
type: ComponentType;
|
|
658
|
+
/**
|
|
659
|
+
* Total number of hooks used by this component.
|
|
660
|
+
* Derived by counting the fiber's memoizedState linked list without
|
|
661
|
+
* serializing hook values.
|
|
662
|
+
*/
|
|
663
|
+
hookCount: number;
|
|
664
|
+
/**
|
|
665
|
+
* Ordered list of hook types used by this component.
|
|
666
|
+
* Ordered by hook call-order (first `use*` call = index 0).
|
|
667
|
+
* Empty for class components and host elements.
|
|
668
|
+
*/
|
|
669
|
+
hookTypes: HookType[];
|
|
670
|
+
/**
|
|
671
|
+
* Number of direct children of this node.
|
|
672
|
+
* Equals `children.length`.
|
|
673
|
+
*/
|
|
674
|
+
childCount: number;
|
|
675
|
+
/**
|
|
676
|
+
* Depth of this node in the tree. Root node = 0, incremented per level.
|
|
677
|
+
*/
|
|
678
|
+
depth: number;
|
|
679
|
+
/**
|
|
680
|
+
* Ordered list of child component nodes.
|
|
681
|
+
*
|
|
682
|
+
* Depth-first; an empty array means the component is a leaf node.
|
|
683
|
+
*/
|
|
684
|
+
children: LightweightComponentNode[];
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
export { COMPONENT_TYPES, CONSOLE_LEVELS, type CapturedError, type ComponentNode, type ComponentType, type ConsoleEntry, type ConsoleLevel, type ContextConsumption, HOOK_TYPES, type HookState, type HookType, type LightweightComponentNode, type PageReport, type RouteInfo, SCHEMA_VERSION, SERIALIZED_VALUE_TYPES, type SerializeOptions, type SerializedValue, type SerializedValueType, type SourceLocation, type SuspenseBoundaryInfo, isCapturedError, isComponentNode, isComponentNodeDeep, isConsoleEntry, isContextConsumption, isHookState, isPageReport, isPageReportDeep, isRouteInfo, isSerializedValue, isSourceLocation, isSuspenseBoundaryInfo, serialize };
|