@copilotkitnext/web-inspector 0.0.0-0.0.0-max-changeset-10101010101010-20260109191632

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.
@@ -0,0 +1,9 @@
1
+
2
+ 
3
+ > @copilotkitnext/web-inspector@0.0.33 build:css /Users/mk/Developer/work/CopilotKit/src/v2.x/packages/web-inspector
4
+ > npx @tailwindcss/cli -i ./src/styles/tailwind.css -o ./src/styles/generated.css -m
5
+
6
+ ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙≈ tailwindcss v4.1.18
7
+
8
+ Done in 33ms
9
+ ⠙
@@ -0,0 +1,23 @@
1
+
2
+ 
3
+ > @copilotkitnext/web-inspector@0.0.33 build /Users/mk/Developer/work/CopilotKit/src/v2.x/packages/web-inspector
4
+ > tsup
5
+
6
+ CLI Building entry: src/index.ts
7
+ CLI Using tsconfig: tsconfig.json
8
+ CLI tsup v8.5.1
9
+ CLI Using tsup config: /Users/mk/Developer/work/CopilotKit/src/v2.x/packages/web-inspector/tsup.config.ts
10
+ CLI Target: es2022
11
+ CLI Cleaning output folder
12
+ CJS Build start
13
+ ESM Build start
14
+ ESM dist/index.mjs 149.99 KB
15
+ ESM dist/index.mjs.map 217.56 KB
16
+ ESM ⚡️ Build success in 46ms
17
+ CJS dist/index.js 152.17 KB
18
+ CJS dist/index.js.map 217.59 KB
19
+ CJS ⚡️ Build success in 46ms
20
+ DTS Build start
21
+ DTS ⚡️ Build success in 913ms
22
+ DTS dist/index.d.ts 6.30 KB
23
+ DTS dist/index.d.mts 6.30 KB
@@ -0,0 +1,42 @@
1
+
2
+ 
3
+ > @copilotkitnext/web-inspector@0.0.33 test /Users/mk/Developer/work/CopilotKit/src/v2.x/packages/web-inspector
4
+ > pnpm run build:css && vitest run
5
+
6
+
7
+ > @copilotkitnext/web-inspector@0.0.33 build:css /Users/mk/Developer/work/CopilotKit/src/v2.x/packages/web-inspector
8
+ > npx @tailwindcss/cli -i ./src/styles/tailwind.css -o ./src/styles/generated.css -m
9
+
10
+ ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼≈ tailwindcss v4.1.11
11
+
12
+ Done in 42ms
13
+ ⠙[?25l
14
+  RUN  v3.2.4 /Users/mk/Developer/work/CopilotKit/src/v2.x/packages/web-inspector
15
+
16
+ [?2026h
17
+  ❯ src/__tests__/web-inspector.spec.ts [queued]
18
+
19
+  Test Files 0 passed (1)
20
+  Tests 0 passed (0)
21
+  Start at 13:35:39
22
+  Duration 302ms
23
+ [?2026l[?2026hstderr | src/__tests__/web-inspector.spec.ts
24
+ Lit is in dev mode. Not recommended for production! See https://lit.dev/msg/dev-mode for more information.
25
+
26
+
27
+  ❯ src/__tests__/web-inspector.spec.ts 0/2
28
+
29
+  Test Files 0 passed (1)
30
+  Tests 0 passed (2)
31
+  Start at 13:35:39
32
+  Duration 503ms
33
+ [?2026l ✓ src/__tests__/web-inspector.spec.ts (2 tests) 38ms
34
+ ✓ WebInspectorElement > records agent events and syncs state/messages/tools 34ms
35
+ ✓ WebInspectorElement > normalizes context, persists state, and copies context values 4ms
36
+
37
+  Test Files  1 passed (1)
38
+  Tests  2 passed (2)
39
+  Start at  13:35:39
40
+  Duration  595ms (transform 96ms, setup 0ms, collect 200ms, tests 38ms, environment 162ms, prepare 38ms)
41
+
42
+ [?25h
package/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # @copilotkitnext/web-inspector
2
+
3
+ ## 0.0.0-0.0.0-max-changeset-10101010101010-20260109191632
4
+
5
+ ### Patch Changes
6
+
7
+ - 6da0e74: Update versioning strategy
8
+ - Updated dependencies [6da0e74]
9
+ - @copilotkitnext/core@0.0.0-0.0.0-max-changeset-10101010101010-20260109191632
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License
2
+
3
+ Copyright (c) Atai Barkai
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,205 @@
1
+ import * as lit from 'lit';
2
+ import { LitElement } from 'lit';
3
+ import { CopilotKitCore } from '@copilotkitnext/core';
4
+
5
+ declare const WEB_INSPECTOR_TAG: "cpk-web-inspector";
6
+ declare class WebInspectorElement extends LitElement {
7
+ static properties: {
8
+ readonly core: {
9
+ readonly attribute: false;
10
+ };
11
+ readonly autoAttachCore: {
12
+ readonly type: BooleanConstructor;
13
+ readonly attribute: "auto-attach-core";
14
+ };
15
+ };
16
+ private _core;
17
+ private coreSubscriber;
18
+ private coreUnsubscribe;
19
+ private runtimeStatus;
20
+ private coreProperties;
21
+ private lastCoreError;
22
+ private agentSubscriptions;
23
+ private agentEvents;
24
+ private agentMessages;
25
+ private agentStates;
26
+ private flattenedEvents;
27
+ private eventCounter;
28
+ private contextStore;
29
+ private pointerId;
30
+ private dragStart;
31
+ private dragOffset;
32
+ private isDragging;
33
+ private pointerContext;
34
+ private isOpen;
35
+ private draggedDuringInteraction;
36
+ private ignoreNextButtonClick;
37
+ private selectedMenu;
38
+ private contextMenuOpen;
39
+ private dockMode;
40
+ private previousBodyMargins;
41
+ private transitionTimeoutId;
42
+ private pendingSelectedContext;
43
+ private autoAttachCore;
44
+ private attemptedAutoAttach;
45
+ private cachedTools;
46
+ private toolSignature;
47
+ private eventFilterText;
48
+ private eventTypeFilter;
49
+ private announcementMarkdown;
50
+ private announcementHtml;
51
+ private announcementTimestamp;
52
+ private announcementPreviewText;
53
+ private hasUnseenAnnouncement;
54
+ private announcementLoaded;
55
+ private announcementLoadError;
56
+ private announcementPromise;
57
+ private showAnnouncementPreview;
58
+ get core(): CopilotKitCore | null;
59
+ set core(value: CopilotKitCore | null);
60
+ private readonly contextState;
61
+ private hasCustomPosition;
62
+ private resizePointerId;
63
+ private resizeStart;
64
+ private resizeInitialSize;
65
+ private isResizing;
66
+ private readonly menuItems;
67
+ private attachToCore;
68
+ private detachFromCore;
69
+ private teardownAgentSubscriptions;
70
+ private processAgentsChanged;
71
+ private refreshToolsSnapshot;
72
+ private tryAutoAttachCore;
73
+ private subscribeToAgent;
74
+ private unsubscribeFromAgent;
75
+ private recordAgentEvent;
76
+ private syncAgentMessages;
77
+ private syncAgentState;
78
+ private updateContextOptions;
79
+ private getEventsForSelectedContext;
80
+ private filterEvents;
81
+ private getLatestStateForAgent;
82
+ private getLatestMessagesForAgent;
83
+ private getAgentStatus;
84
+ private getAgentStats;
85
+ private renderToolCallDetails;
86
+ private formatToolCallArguments;
87
+ private hasRenderableState;
88
+ private formatStateForDisplay;
89
+ private getEventBadgeClasses;
90
+ private stringifyPayload;
91
+ private extractEventFromPayload;
92
+ private copyToClipboard;
93
+ static styles: lit.CSSResult[];
94
+ connectedCallback(): void;
95
+ disconnectedCallback(): void;
96
+ firstUpdated(): void;
97
+ render(): lit.TemplateResult<1>;
98
+ private renderButton;
99
+ private renderWindow;
100
+ private hydrateStateFromStorageEarly;
101
+ private hydrateStateFromStorage;
102
+ private get activeContext();
103
+ private handlePointerDown;
104
+ private handlePointerMove;
105
+ private handlePointerUp;
106
+ private handlePointerCancel;
107
+ private handleButtonClick;
108
+ private handleClosePointerDown;
109
+ private handleCloseClick;
110
+ private handleResizePointerDown;
111
+ private handleResizePointerMove;
112
+ private handleResizePointerUp;
113
+ private handleResizePointerCancel;
114
+ private handleResize;
115
+ private measureContext;
116
+ private centerContext;
117
+ private ensureWindowPlacement;
118
+ private constrainToViewport;
119
+ private keepPositionWithinViewport;
120
+ private getViewportSize;
121
+ private persistState;
122
+ private clampWindowSize;
123
+ private setDockMode;
124
+ private startHostTransition;
125
+ private applyDockStyles;
126
+ private removeDockStyles;
127
+ private updateHostTransform;
128
+ private setDragging;
129
+ private updateAnchorFromPosition;
130
+ private snapButtonToCorner;
131
+ private applyAnchorPosition;
132
+ private resetResizeTracking;
133
+ private resetPointerTracking;
134
+ private openInspector;
135
+ private closeInspector;
136
+ private renderIcon;
137
+ private renderDockControls;
138
+ private getDockedWindowStyles;
139
+ private handleDockClick;
140
+ private serializeAttributes;
141
+ private sanitizeForLogging;
142
+ private normalizeEventPayload;
143
+ private normalizeMessageContent;
144
+ private normalizeToolCalls;
145
+ private normalizeAgentMessage;
146
+ private normalizeAgentMessages;
147
+ private normalizeContextStore;
148
+ private contextOptions;
149
+ private selectedContext;
150
+ private expandedRows;
151
+ private copiedEvents;
152
+ private expandedTools;
153
+ private expandedContextItems;
154
+ private copiedContextItems;
155
+ private getSelectedMenu;
156
+ private renderCoreWarningBanner;
157
+ private getCoreStatusSummary;
158
+ private renderMainContent;
159
+ private renderEventsTable;
160
+ private handleEventFilterInput;
161
+ private handleEventTypeChange;
162
+ private resetEventFilters;
163
+ private handleClearEvents;
164
+ private exportEvents;
165
+ private renderAgentsView;
166
+ private renderContextDropdown;
167
+ private handleMenuSelect;
168
+ private handleContextDropdownToggle;
169
+ private handleContextOptionSelect;
170
+ private renderToolsView;
171
+ private extractToolsFromAgents;
172
+ private renderToolCard;
173
+ private extractSchemaInfo;
174
+ private isZodOptional;
175
+ private extractZodFieldInfo;
176
+ private toggleToolExpansion;
177
+ private renderContextView;
178
+ private renderContextCard;
179
+ private getContextValuePreview;
180
+ private formatContextValue;
181
+ private copyContextValue;
182
+ private toggleContextExpansion;
183
+ private handleGlobalPointerDown;
184
+ private toggleRowExpansion;
185
+ private renderAnnouncementPanel;
186
+ private ensureAnnouncementLoading;
187
+ private renderAnnouncementPreview;
188
+ private handleAnnouncementPreviewClick;
189
+ private handleDismissAnnouncement;
190
+ private fetchAnnouncement;
191
+ private convertMarkdownToHtml;
192
+ private appendRefParam;
193
+ private escapeHtmlAttr;
194
+ private loadStoredAnnouncementTimestamp;
195
+ private persistAnnouncementTimestamp;
196
+ private markAnnouncementSeen;
197
+ }
198
+ declare function defineWebInspector(): void;
199
+ declare global {
200
+ interface HTMLElementTagNameMap {
201
+ "cpk-web-inspector": WebInspectorElement;
202
+ }
203
+ }
204
+
205
+ export { WEB_INSPECTOR_TAG, WebInspectorElement, defineWebInspector };
@@ -0,0 +1,205 @@
1
+ import * as lit from 'lit';
2
+ import { LitElement } from 'lit';
3
+ import { CopilotKitCore } from '@copilotkitnext/core';
4
+
5
+ declare const WEB_INSPECTOR_TAG: "cpk-web-inspector";
6
+ declare class WebInspectorElement extends LitElement {
7
+ static properties: {
8
+ readonly core: {
9
+ readonly attribute: false;
10
+ };
11
+ readonly autoAttachCore: {
12
+ readonly type: BooleanConstructor;
13
+ readonly attribute: "auto-attach-core";
14
+ };
15
+ };
16
+ private _core;
17
+ private coreSubscriber;
18
+ private coreUnsubscribe;
19
+ private runtimeStatus;
20
+ private coreProperties;
21
+ private lastCoreError;
22
+ private agentSubscriptions;
23
+ private agentEvents;
24
+ private agentMessages;
25
+ private agentStates;
26
+ private flattenedEvents;
27
+ private eventCounter;
28
+ private contextStore;
29
+ private pointerId;
30
+ private dragStart;
31
+ private dragOffset;
32
+ private isDragging;
33
+ private pointerContext;
34
+ private isOpen;
35
+ private draggedDuringInteraction;
36
+ private ignoreNextButtonClick;
37
+ private selectedMenu;
38
+ private contextMenuOpen;
39
+ private dockMode;
40
+ private previousBodyMargins;
41
+ private transitionTimeoutId;
42
+ private pendingSelectedContext;
43
+ private autoAttachCore;
44
+ private attemptedAutoAttach;
45
+ private cachedTools;
46
+ private toolSignature;
47
+ private eventFilterText;
48
+ private eventTypeFilter;
49
+ private announcementMarkdown;
50
+ private announcementHtml;
51
+ private announcementTimestamp;
52
+ private announcementPreviewText;
53
+ private hasUnseenAnnouncement;
54
+ private announcementLoaded;
55
+ private announcementLoadError;
56
+ private announcementPromise;
57
+ private showAnnouncementPreview;
58
+ get core(): CopilotKitCore | null;
59
+ set core(value: CopilotKitCore | null);
60
+ private readonly contextState;
61
+ private hasCustomPosition;
62
+ private resizePointerId;
63
+ private resizeStart;
64
+ private resizeInitialSize;
65
+ private isResizing;
66
+ private readonly menuItems;
67
+ private attachToCore;
68
+ private detachFromCore;
69
+ private teardownAgentSubscriptions;
70
+ private processAgentsChanged;
71
+ private refreshToolsSnapshot;
72
+ private tryAutoAttachCore;
73
+ private subscribeToAgent;
74
+ private unsubscribeFromAgent;
75
+ private recordAgentEvent;
76
+ private syncAgentMessages;
77
+ private syncAgentState;
78
+ private updateContextOptions;
79
+ private getEventsForSelectedContext;
80
+ private filterEvents;
81
+ private getLatestStateForAgent;
82
+ private getLatestMessagesForAgent;
83
+ private getAgentStatus;
84
+ private getAgentStats;
85
+ private renderToolCallDetails;
86
+ private formatToolCallArguments;
87
+ private hasRenderableState;
88
+ private formatStateForDisplay;
89
+ private getEventBadgeClasses;
90
+ private stringifyPayload;
91
+ private extractEventFromPayload;
92
+ private copyToClipboard;
93
+ static styles: lit.CSSResult[];
94
+ connectedCallback(): void;
95
+ disconnectedCallback(): void;
96
+ firstUpdated(): void;
97
+ render(): lit.TemplateResult<1>;
98
+ private renderButton;
99
+ private renderWindow;
100
+ private hydrateStateFromStorageEarly;
101
+ private hydrateStateFromStorage;
102
+ private get activeContext();
103
+ private handlePointerDown;
104
+ private handlePointerMove;
105
+ private handlePointerUp;
106
+ private handlePointerCancel;
107
+ private handleButtonClick;
108
+ private handleClosePointerDown;
109
+ private handleCloseClick;
110
+ private handleResizePointerDown;
111
+ private handleResizePointerMove;
112
+ private handleResizePointerUp;
113
+ private handleResizePointerCancel;
114
+ private handleResize;
115
+ private measureContext;
116
+ private centerContext;
117
+ private ensureWindowPlacement;
118
+ private constrainToViewport;
119
+ private keepPositionWithinViewport;
120
+ private getViewportSize;
121
+ private persistState;
122
+ private clampWindowSize;
123
+ private setDockMode;
124
+ private startHostTransition;
125
+ private applyDockStyles;
126
+ private removeDockStyles;
127
+ private updateHostTransform;
128
+ private setDragging;
129
+ private updateAnchorFromPosition;
130
+ private snapButtonToCorner;
131
+ private applyAnchorPosition;
132
+ private resetResizeTracking;
133
+ private resetPointerTracking;
134
+ private openInspector;
135
+ private closeInspector;
136
+ private renderIcon;
137
+ private renderDockControls;
138
+ private getDockedWindowStyles;
139
+ private handleDockClick;
140
+ private serializeAttributes;
141
+ private sanitizeForLogging;
142
+ private normalizeEventPayload;
143
+ private normalizeMessageContent;
144
+ private normalizeToolCalls;
145
+ private normalizeAgentMessage;
146
+ private normalizeAgentMessages;
147
+ private normalizeContextStore;
148
+ private contextOptions;
149
+ private selectedContext;
150
+ private expandedRows;
151
+ private copiedEvents;
152
+ private expandedTools;
153
+ private expandedContextItems;
154
+ private copiedContextItems;
155
+ private getSelectedMenu;
156
+ private renderCoreWarningBanner;
157
+ private getCoreStatusSummary;
158
+ private renderMainContent;
159
+ private renderEventsTable;
160
+ private handleEventFilterInput;
161
+ private handleEventTypeChange;
162
+ private resetEventFilters;
163
+ private handleClearEvents;
164
+ private exportEvents;
165
+ private renderAgentsView;
166
+ private renderContextDropdown;
167
+ private handleMenuSelect;
168
+ private handleContextDropdownToggle;
169
+ private handleContextOptionSelect;
170
+ private renderToolsView;
171
+ private extractToolsFromAgents;
172
+ private renderToolCard;
173
+ private extractSchemaInfo;
174
+ private isZodOptional;
175
+ private extractZodFieldInfo;
176
+ private toggleToolExpansion;
177
+ private renderContextView;
178
+ private renderContextCard;
179
+ private getContextValuePreview;
180
+ private formatContextValue;
181
+ private copyContextValue;
182
+ private toggleContextExpansion;
183
+ private handleGlobalPointerDown;
184
+ private toggleRowExpansion;
185
+ private renderAnnouncementPanel;
186
+ private ensureAnnouncementLoading;
187
+ private renderAnnouncementPreview;
188
+ private handleAnnouncementPreviewClick;
189
+ private handleDismissAnnouncement;
190
+ private fetchAnnouncement;
191
+ private convertMarkdownToHtml;
192
+ private appendRefParam;
193
+ private escapeHtmlAttr;
194
+ private loadStoredAnnouncementTimestamp;
195
+ private persistAnnouncementTimestamp;
196
+ private markAnnouncementSeen;
197
+ }
198
+ declare function defineWebInspector(): void;
199
+ declare global {
200
+ interface HTMLElementTagNameMap {
201
+ "cpk-web-inspector": WebInspectorElement;
202
+ }
203
+ }
204
+
205
+ export { WEB_INSPECTOR_TAG, WebInspectorElement, defineWebInspector };