@copilotkitnext/web-inspector 0.0.13 → 0.0.15
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/.turbo/turbo-build$colon$css.log +9 -0
- package/.turbo/turbo-build.log +23 -29
- package/dist/index.d.mts +44 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.js +1206 -106
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1206 -106
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/index.ts +1559 -111
- package/src/lib/persistence.ts +9 -1
- package/src/lib/types.ts +2 -0
- package/src/styles/generated.css +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @copilotkitnext/web-inspector@0.0.14 build:css /Users/mme/Projects/CopilotKit2/main/packages/web-inspector
|
|
4
|
+
> npx @tailwindcss/cli -i ./src/styles/tailwind.css -o ./src/styles/generated.css -m
|
|
5
|
+
|
|
6
|
+
[1G[0K⠙[1G[0K⠹[1G[0K⠸[1G[0K⠼[1G[0K⠴[1G[0K⠦[1G[0K⠧[1G[0K⠇[1G[0K⠏[1G[0K⠋[1G[0K⠙[1G[0K⠹[1G[0K⠸[1G[0K⠼[1G[0K⠴[1G[0K⠦[1G[0K⠧[1G[0K⠇[1G[0K⠏[1G[0K⠋[1G[0K⠙[1G[0K⠹[1G[0K⠸[1G[0K⠼[1G[0K⠴[1G[0K⠦[1G[0K⠧[1G[0K⠇[1G[0K⠏[1G[0K⠋[1G[0K⠙[1G[0K⠹[1G[0K⠸[1G[0K⠼[1G[0K⠴[1G[0K⠦[1G[0K⠧[1G[0K⠇[1G[0K⠏[1G[0K⠋[1G[0K⠙[1G[0K⠹[1G[0K⠸[1G[0K⠼[1G[0K⠴[1G[0K⠦[1G[0K⠧[1G[0K[3m[1m[34m≈[39m[22m[23m tailwindcss [34mv4.1.11[39m
|
|
7
|
+
|
|
8
|
+
Done in [32m49ms[39m
|
|
9
|
+
[1G[0K⠙[1G[0K
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,29 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
ESM dist/index.mjs.map 93.19 KB
|
|
25
|
-
ESM ⚡️ Build success in 20ms
|
|
26
|
-
DTS Build start
|
|
27
|
-
DTS ⚡️ Build success in 1508ms
|
|
28
|
-
DTS dist/index.d.ts 3.21 KB
|
|
29
|
-
DTS dist/index.d.mts 3.21 KB
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @copilotkitnext/web-inspector@0.0.14 build /Users/mme/Projects/CopilotKit2/main/packages/web-inspector
|
|
4
|
+
> tsup
|
|
5
|
+
|
|
6
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
7
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
|
+
[34mCLI[39m tsup v8.5.0
|
|
9
|
+
[34mCLI[39m Using tsup config: /Users/mme/Projects/CopilotKit2/main/packages/web-inspector/tsup.config.ts
|
|
10
|
+
[34mCLI[39m Target: es2022
|
|
11
|
+
[34mCLI[39m Cleaning output folder
|
|
12
|
+
[34mCJS[39m Build start
|
|
13
|
+
[34mESM[39m Build start
|
|
14
|
+
[32mCJS[39m [1mdist/index.js [22m[32m113.57 KB[39m
|
|
15
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m171.75 KB[39m
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in 37ms
|
|
17
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m111.46 KB[39m
|
|
18
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m171.71 KB[39m
|
|
19
|
+
[32mESM[39m ⚡️ Build success in 39ms
|
|
20
|
+
DTS Build start
|
|
21
|
+
DTS ⚡️ Build success in 1566ms
|
|
22
|
+
DTS dist/index.d.ts 4.56 KB
|
|
23
|
+
DTS dist/index.d.mts 4.56 KB
|
package/dist/index.d.mts
CHANGED
|
@@ -14,8 +14,11 @@ declare class WebInspectorElement extends LitElement {
|
|
|
14
14
|
private coreUnsubscribe;
|
|
15
15
|
private agentSubscriptions;
|
|
16
16
|
private agentEvents;
|
|
17
|
+
private agentMessages;
|
|
18
|
+
private agentStates;
|
|
17
19
|
private flattenedEvents;
|
|
18
20
|
private eventCounter;
|
|
21
|
+
private contextStore;
|
|
19
22
|
private pointerId;
|
|
20
23
|
private dragStart;
|
|
21
24
|
private dragOffset;
|
|
@@ -26,6 +29,10 @@ declare class WebInspectorElement extends LitElement {
|
|
|
26
29
|
private ignoreNextButtonClick;
|
|
27
30
|
private selectedMenu;
|
|
28
31
|
private contextMenuOpen;
|
|
32
|
+
private dockMode;
|
|
33
|
+
private previousBodyMargins;
|
|
34
|
+
private transitionTimeoutId;
|
|
35
|
+
private pendingSelectedContext;
|
|
29
36
|
get core(): CopilotKitCore | null;
|
|
30
37
|
set core(value: CopilotKitCore | null);
|
|
31
38
|
private readonly contextState;
|
|
@@ -42,10 +49,22 @@ declare class WebInspectorElement extends LitElement {
|
|
|
42
49
|
private subscribeToAgent;
|
|
43
50
|
private unsubscribeFromAgent;
|
|
44
51
|
private recordAgentEvent;
|
|
52
|
+
private syncAgentMessages;
|
|
53
|
+
private syncAgentState;
|
|
45
54
|
private updateContextOptions;
|
|
46
55
|
private getEventsForSelectedContext;
|
|
56
|
+
private getLatestStateForAgent;
|
|
57
|
+
private getLatestMessagesForAgent;
|
|
58
|
+
private getAgentStatus;
|
|
59
|
+
private getAgentStats;
|
|
60
|
+
private renderToolCallDetails;
|
|
61
|
+
private formatToolCallArguments;
|
|
62
|
+
private hasRenderableState;
|
|
63
|
+
private formatStateForDisplay;
|
|
47
64
|
private getEventBadgeClasses;
|
|
48
65
|
private stringifyPayload;
|
|
66
|
+
private extractEventFromPayload;
|
|
67
|
+
private copyToClipboard;
|
|
49
68
|
static styles: lit.CSSResult[];
|
|
50
69
|
connectedCallback(): void;
|
|
51
70
|
disconnectedCallback(): void;
|
|
@@ -53,6 +72,7 @@ declare class WebInspectorElement extends LitElement {
|
|
|
53
72
|
render(): lit.TemplateResult<1>;
|
|
54
73
|
private renderButton;
|
|
55
74
|
private renderWindow;
|
|
75
|
+
private hydrateStateFromCookieEarly;
|
|
56
76
|
private hydrateStateFromCookie;
|
|
57
77
|
private get activeContext();
|
|
58
78
|
private handlePointerDown;
|
|
@@ -75,26 +95,50 @@ declare class WebInspectorElement extends LitElement {
|
|
|
75
95
|
private getViewportSize;
|
|
76
96
|
private persistState;
|
|
77
97
|
private clampWindowSize;
|
|
98
|
+
private setDockMode;
|
|
99
|
+
private startHostTransition;
|
|
100
|
+
private applyDockStyles;
|
|
101
|
+
private removeDockStyles;
|
|
78
102
|
private updateHostTransform;
|
|
79
103
|
private setDragging;
|
|
80
104
|
private updateAnchorFromPosition;
|
|
105
|
+
private snapButtonToCorner;
|
|
81
106
|
private applyAnchorPosition;
|
|
82
107
|
private resetResizeTracking;
|
|
83
108
|
private resetPointerTracking;
|
|
84
109
|
private openInspector;
|
|
85
110
|
private closeInspector;
|
|
86
111
|
private renderIcon;
|
|
112
|
+
private renderDockControls;
|
|
113
|
+
private getDockedWindowStyles;
|
|
114
|
+
private handleDockClick;
|
|
87
115
|
private serializeAttributes;
|
|
88
116
|
private contextOptions;
|
|
89
117
|
private selectedContext;
|
|
90
118
|
private expandedRows;
|
|
119
|
+
private copiedEvents;
|
|
120
|
+
private expandedTools;
|
|
121
|
+
private expandedContextItems;
|
|
91
122
|
private getSelectedMenu;
|
|
92
123
|
private renderMainContent;
|
|
93
124
|
private renderEventsTable;
|
|
125
|
+
private renderAgentsView;
|
|
94
126
|
private renderContextDropdown;
|
|
95
127
|
private handleMenuSelect;
|
|
96
128
|
private handleContextDropdownToggle;
|
|
97
129
|
private handleContextOptionSelect;
|
|
130
|
+
private renderToolsView;
|
|
131
|
+
private extractToolsFromAgents;
|
|
132
|
+
private renderToolCard;
|
|
133
|
+
private extractSchemaInfo;
|
|
134
|
+
private isZodOptional;
|
|
135
|
+
private extractZodFieldInfo;
|
|
136
|
+
private toggleToolExpansion;
|
|
137
|
+
private renderContextView;
|
|
138
|
+
private renderContextCard;
|
|
139
|
+
private getContextValuePreview;
|
|
140
|
+
private formatContextValue;
|
|
141
|
+
private toggleContextExpansion;
|
|
98
142
|
private handleGlobalPointerDown;
|
|
99
143
|
private toggleRowExpansion;
|
|
100
144
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -14,8 +14,11 @@ declare class WebInspectorElement extends LitElement {
|
|
|
14
14
|
private coreUnsubscribe;
|
|
15
15
|
private agentSubscriptions;
|
|
16
16
|
private agentEvents;
|
|
17
|
+
private agentMessages;
|
|
18
|
+
private agentStates;
|
|
17
19
|
private flattenedEvents;
|
|
18
20
|
private eventCounter;
|
|
21
|
+
private contextStore;
|
|
19
22
|
private pointerId;
|
|
20
23
|
private dragStart;
|
|
21
24
|
private dragOffset;
|
|
@@ -26,6 +29,10 @@ declare class WebInspectorElement extends LitElement {
|
|
|
26
29
|
private ignoreNextButtonClick;
|
|
27
30
|
private selectedMenu;
|
|
28
31
|
private contextMenuOpen;
|
|
32
|
+
private dockMode;
|
|
33
|
+
private previousBodyMargins;
|
|
34
|
+
private transitionTimeoutId;
|
|
35
|
+
private pendingSelectedContext;
|
|
29
36
|
get core(): CopilotKitCore | null;
|
|
30
37
|
set core(value: CopilotKitCore | null);
|
|
31
38
|
private readonly contextState;
|
|
@@ -42,10 +49,22 @@ declare class WebInspectorElement extends LitElement {
|
|
|
42
49
|
private subscribeToAgent;
|
|
43
50
|
private unsubscribeFromAgent;
|
|
44
51
|
private recordAgentEvent;
|
|
52
|
+
private syncAgentMessages;
|
|
53
|
+
private syncAgentState;
|
|
45
54
|
private updateContextOptions;
|
|
46
55
|
private getEventsForSelectedContext;
|
|
56
|
+
private getLatestStateForAgent;
|
|
57
|
+
private getLatestMessagesForAgent;
|
|
58
|
+
private getAgentStatus;
|
|
59
|
+
private getAgentStats;
|
|
60
|
+
private renderToolCallDetails;
|
|
61
|
+
private formatToolCallArguments;
|
|
62
|
+
private hasRenderableState;
|
|
63
|
+
private formatStateForDisplay;
|
|
47
64
|
private getEventBadgeClasses;
|
|
48
65
|
private stringifyPayload;
|
|
66
|
+
private extractEventFromPayload;
|
|
67
|
+
private copyToClipboard;
|
|
49
68
|
static styles: lit.CSSResult[];
|
|
50
69
|
connectedCallback(): void;
|
|
51
70
|
disconnectedCallback(): void;
|
|
@@ -53,6 +72,7 @@ declare class WebInspectorElement extends LitElement {
|
|
|
53
72
|
render(): lit.TemplateResult<1>;
|
|
54
73
|
private renderButton;
|
|
55
74
|
private renderWindow;
|
|
75
|
+
private hydrateStateFromCookieEarly;
|
|
56
76
|
private hydrateStateFromCookie;
|
|
57
77
|
private get activeContext();
|
|
58
78
|
private handlePointerDown;
|
|
@@ -75,26 +95,50 @@ declare class WebInspectorElement extends LitElement {
|
|
|
75
95
|
private getViewportSize;
|
|
76
96
|
private persistState;
|
|
77
97
|
private clampWindowSize;
|
|
98
|
+
private setDockMode;
|
|
99
|
+
private startHostTransition;
|
|
100
|
+
private applyDockStyles;
|
|
101
|
+
private removeDockStyles;
|
|
78
102
|
private updateHostTransform;
|
|
79
103
|
private setDragging;
|
|
80
104
|
private updateAnchorFromPosition;
|
|
105
|
+
private snapButtonToCorner;
|
|
81
106
|
private applyAnchorPosition;
|
|
82
107
|
private resetResizeTracking;
|
|
83
108
|
private resetPointerTracking;
|
|
84
109
|
private openInspector;
|
|
85
110
|
private closeInspector;
|
|
86
111
|
private renderIcon;
|
|
112
|
+
private renderDockControls;
|
|
113
|
+
private getDockedWindowStyles;
|
|
114
|
+
private handleDockClick;
|
|
87
115
|
private serializeAttributes;
|
|
88
116
|
private contextOptions;
|
|
89
117
|
private selectedContext;
|
|
90
118
|
private expandedRows;
|
|
119
|
+
private copiedEvents;
|
|
120
|
+
private expandedTools;
|
|
121
|
+
private expandedContextItems;
|
|
91
122
|
private getSelectedMenu;
|
|
92
123
|
private renderMainContent;
|
|
93
124
|
private renderEventsTable;
|
|
125
|
+
private renderAgentsView;
|
|
94
126
|
private renderContextDropdown;
|
|
95
127
|
private handleMenuSelect;
|
|
96
128
|
private handleContextDropdownToggle;
|
|
97
129
|
private handleContextOptionSelect;
|
|
130
|
+
private renderToolsView;
|
|
131
|
+
private extractToolsFromAgents;
|
|
132
|
+
private renderToolCard;
|
|
133
|
+
private extractSchemaInfo;
|
|
134
|
+
private isZodOptional;
|
|
135
|
+
private extractZodFieldInfo;
|
|
136
|
+
private toggleToolExpansion;
|
|
137
|
+
private renderContextView;
|
|
138
|
+
private renderContextCard;
|
|
139
|
+
private getContextValuePreview;
|
|
140
|
+
private formatContextValue;
|
|
141
|
+
private toggleContextExpansion;
|
|
98
142
|
private handleGlobalPointerDown;
|
|
99
143
|
private toggleRowExpansion;
|
|
100
144
|
}
|