@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.
- package/.turbo/turbo-build$colon$css.log +9 -0
- package/.turbo/turbo-build.log +23 -0
- package/.turbo/turbo-test.log +42 -0
- package/CHANGELOG.md +9 -0
- package/LICENSE +21 -0
- package/dist/index.d.mts +205 -0
- package/dist/index.d.ts +205 -0
- package/dist/index.js +3098 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +3073 -0
- package/dist/index.mjs.map +1 -0
- package/eslint.config.mjs +3 -0
- package/package.json +52 -0
- package/src/__tests__/web-inspector.spec.ts +171 -0
- package/src/assets/inspector-logo-icon.svg +8 -0
- package/src/assets/inspector-logo.svg +40 -0
- package/src/components.d.ts +24 -0
- package/src/index.ts +3659 -0
- package/src/lib/context-helpers.ts +125 -0
- package/src/lib/persistence.ts +104 -0
- package/src/lib/types.ts +19 -0
- package/src/styles/generated.css +2 -0
- package/src/styles/tailwind.css +23 -0
- package/src/types/css.d.ts +4 -0
- package/src/types/svg.d.ts +4 -0
- package/tsconfig.json +14 -0
- package/tsup.config.ts +15 -0
- package/vitest.config.ts +8 -0
|
@@ -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
|
+
[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⠇[1G[0K⠏[1G[0K⠋[1G[0K⠙[1G[0K[3m[1m[34m≈[39m[22m[23m tailwindcss [34mv4.1.18[39m
|
|
7
|
+
|
|
8
|
+
Done in [32m33ms[39m
|
|
9
|
+
[1G[0K⠙[1G[0K
|
|
@@ -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
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
7
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
|
+
[34mCLI[39m tsup v8.5.1
|
|
9
|
+
[34mCLI[39m Using tsup config: /Users/mk/Developer/work/CopilotKit/src/v2.x/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
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m149.99 KB[39m
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m217.56 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 46ms
|
|
17
|
+
[32mCJS[39m [1mdist/index.js [22m[32m152.17 KB[39m
|
|
18
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m217.59 KB[39m
|
|
19
|
+
[32mCJS[39m ⚡️ 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
|
+
[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⠇[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
|
|
11
|
+
|
|
12
|
+
Done in [32m42ms[39m
|
|
13
|
+
[1G[0K⠙[1G[0K[?25l
|
|
14
|
+
[1m[46m RUN [49m[22m [36mv3.2.4 [39m[90m/Users/mk/Developer/work/CopilotKit/src/v2.x/packages/web-inspector[39m
|
|
15
|
+
|
|
16
|
+
[?2026h
|
|
17
|
+
[1m[33m ❯ [39m[22msrc/__tests__/web-inspector.spec.ts[2m [queued][22m
|
|
18
|
+
|
|
19
|
+
[2m Test Files [22m[1m[32m0 passed[39m[22m[90m (1)[39m
|
|
20
|
+
[2m Tests [22m[1m[32m0 passed[39m[22m[90m (0)[39m
|
|
21
|
+
[2m Start at [22m13:35:39
|
|
22
|
+
[2m Duration [22m302ms
|
|
23
|
+
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[90mstderr[2m | src/__tests__/web-inspector.spec.ts
|
|
24
|
+
[22m[39mLit is in dev mode. Not recommended for production! See https://lit.dev/msg/dev-mode for more information.
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
[1m[33m ❯ [39m[22msrc/__tests__/web-inspector.spec.ts[2m 0/2[22m
|
|
28
|
+
|
|
29
|
+
[2m Test Files [22m[1m[32m0 passed[39m[22m[90m (1)[39m
|
|
30
|
+
[2m Tests [22m[1m[32m0 passed[39m[22m[90m (2)[39m
|
|
31
|
+
[2m Start at [22m13:35:39
|
|
32
|
+
[2m Duration [22m503ms
|
|
33
|
+
[?2026l[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/__tests__/web-inspector.spec.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 38[2mms[22m[39m
|
|
34
|
+
[32m✓[39m WebInspectorElement[2m > [22mrecords agent events and syncs state/messages/tools[32m 34[2mms[22m[39m
|
|
35
|
+
[32m✓[39m WebInspectorElement[2m > [22mnormalizes context, persists state, and copies context values[32m 4[2mms[22m[39m
|
|
36
|
+
|
|
37
|
+
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
38
|
+
[2m Tests [22m [1m[32m2 passed[39m[22m[90m (2)[39m
|
|
39
|
+
[2m Start at [22m 13:35:39
|
|
40
|
+
[2m Duration [22m 595ms[2m (transform 96ms, setup 0ms, collect 200ms, tests 38ms, environment 162ms, prepare 38ms)[22m
|
|
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.
|
package/dist/index.d.mts
ADDED
|
@@ -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 };
|
package/dist/index.d.ts
ADDED
|
@@ -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 };
|