@copilotkitnext/web-inspector 0.0.28 → 0.0.30
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 +3 -3
- package/.turbo/turbo-build.log +11 -11
- package/.turbo/turbo-check-types.log +11 -0
- package/.turbo/turbo-lint.log +4 -0
- package/.turbo/turbo-test.log +12 -0
- package/dist/index.d.mts +57 -4
- package/dist/index.d.ts +57 -4
- package/dist/index.js +1048 -282
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1050 -282
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -5
- package/src/__tests__/web-inspector.spec.ts +171 -0
- package/src/assets/inspector-logo.svg +40 -0
- package/src/index.ts +1272 -361
- package/src/lib/persistence.ts +33 -25
- package/src/styles/generated.css +1 -1
- package/vitest.config.ts +8 -0
- /package/src/assets/{logo-mark.svg → inspector-logo-icon.svg} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @copilotkitnext/web-inspector@0.0.
|
|
3
|
+
> @copilotkitnext/web-inspector@0.0.30 build:css /Users/mikeryan/Repos/cpk/vnext_experimental/packages/web-inspector
|
|
4
4
|
> npx @tailwindcss/cli -i ./src/styles/tailwind.css -o ./src/styles/generated.css -m
|
|
5
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
|
|
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[3m[1m[34m≈[39m[22m[23m tailwindcss [34mv4.1.11[39m
|
|
7
7
|
|
|
8
|
-
Done in [
|
|
8
|
+
Done in [32m28ms[39m
|
|
9
9
|
[1G[0K⠙[1G[0K
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @copilotkitnext/web-inspector@0.0.
|
|
3
|
+
> @copilotkitnext/web-inspector@0.0.30 build /Users/mikeryan/Repos/cpk/vnext_experimental/packages/web-inspector
|
|
4
4
|
> tsup
|
|
5
5
|
|
|
6
6
|
[34mCLI[39m Building entry: src/index.ts
|
|
7
7
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
8
|
[34mCLI[39m tsup v8.5.0
|
|
9
|
-
[34mCLI[39m Using tsup config: /Users/
|
|
9
|
+
[34mCLI[39m Using tsup config: /Users/mikeryan/Repos/cpk/vnext_experimental/packages/web-inspector/tsup.config.ts
|
|
10
10
|
[34mCLI[39m Target: es2022
|
|
11
11
|
[34mCLI[39m Cleaning output folder
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
13
|
[34mESM[39m Build start
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m150.00 KB[39m
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m217.58 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 69ms
|
|
17
|
+
[32mCJS[39m [1mdist/index.js [22m[32m152.18 KB[39m
|
|
18
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m217.60 KB[39m
|
|
19
|
+
[32mCJS[39m ⚡️ Build success in 70ms
|
|
20
20
|
DTS Build start
|
|
21
|
-
DTS ⚡️ Build success in
|
|
22
|
-
DTS dist/index.d.ts
|
|
23
|
-
DTS dist/index.d.mts
|
|
21
|
+
DTS ⚡️ Build success in 770ms
|
|
22
|
+
DTS dist/index.d.ts 6.30 KB
|
|
23
|
+
DTS dist/index.d.mts 6.30 KB
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
> @copilotkitnext/web-inspector@0.0.27 check-types /Users/mikeryan/Repos/cpk/vnext_experimental/packages/web-inspector
|
|
3
|
+
> pnpm run build:css && tsc --noEmit
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
> @copilotkitnext/web-inspector@0.0.27 build:css /Users/mikeryan/Repos/cpk/vnext_experimental/packages/web-inspector
|
|
7
|
+
> npx @tailwindcss/cli -i ./src/styles/tailwind.css -o ./src/styles/generated.css -m
|
|
8
|
+
|
|
9
|
+
≈ tailwindcss v4.1.11
|
|
10
|
+
|
|
11
|
+
Done in 37ms
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @copilotkitnext/web-inspector@0.0.28 test /Users/mikeryan/Repos/cpk/vnext_experimental/packages/web-inspector
|
|
4
|
+
> pnpm run build:css && vitest run
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
> @copilotkitnext/web-inspector@0.0.28 build:css /Users/mikeryan/Repos/cpk/vnext_experimental/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⠦[?25l
|
|
11
|
+
[1m[46m RUN [49m[22m [36mv3.2.4 [39m[90m/Users/mikeryan/Repos/cpk/vnext_experimental/packages/web-inspector[39m
|
|
12
|
+
|
package/dist/index.d.mts
CHANGED
|
@@ -2,16 +2,23 @@ import * as lit from 'lit';
|
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
3
|
import { CopilotKitCore } from '@copilotkitnext/core';
|
|
4
4
|
|
|
5
|
-
declare const WEB_INSPECTOR_TAG: "web-inspector";
|
|
5
|
+
declare const WEB_INSPECTOR_TAG: "cpk-web-inspector";
|
|
6
6
|
declare class WebInspectorElement extends LitElement {
|
|
7
7
|
static properties: {
|
|
8
8
|
readonly core: {
|
|
9
9
|
readonly attribute: false;
|
|
10
10
|
};
|
|
11
|
+
readonly autoAttachCore: {
|
|
12
|
+
readonly type: BooleanConstructor;
|
|
13
|
+
readonly attribute: "auto-attach-core";
|
|
14
|
+
};
|
|
11
15
|
};
|
|
12
16
|
private _core;
|
|
13
17
|
private coreSubscriber;
|
|
14
18
|
private coreUnsubscribe;
|
|
19
|
+
private runtimeStatus;
|
|
20
|
+
private coreProperties;
|
|
21
|
+
private lastCoreError;
|
|
15
22
|
private agentSubscriptions;
|
|
16
23
|
private agentEvents;
|
|
17
24
|
private agentMessages;
|
|
@@ -33,6 +40,21 @@ declare class WebInspectorElement extends LitElement {
|
|
|
33
40
|
private previousBodyMargins;
|
|
34
41
|
private transitionTimeoutId;
|
|
35
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;
|
|
36
58
|
get core(): CopilotKitCore | null;
|
|
37
59
|
set core(value: CopilotKitCore | null);
|
|
38
60
|
private readonly contextState;
|
|
@@ -46,6 +68,8 @@ declare class WebInspectorElement extends LitElement {
|
|
|
46
68
|
private detachFromCore;
|
|
47
69
|
private teardownAgentSubscriptions;
|
|
48
70
|
private processAgentsChanged;
|
|
71
|
+
private refreshToolsSnapshot;
|
|
72
|
+
private tryAutoAttachCore;
|
|
49
73
|
private subscribeToAgent;
|
|
50
74
|
private unsubscribeFromAgent;
|
|
51
75
|
private recordAgentEvent;
|
|
@@ -53,6 +77,7 @@ declare class WebInspectorElement extends LitElement {
|
|
|
53
77
|
private syncAgentState;
|
|
54
78
|
private updateContextOptions;
|
|
55
79
|
private getEventsForSelectedContext;
|
|
80
|
+
private filterEvents;
|
|
56
81
|
private getLatestStateForAgent;
|
|
57
82
|
private getLatestMessagesForAgent;
|
|
58
83
|
private getAgentStatus;
|
|
@@ -72,8 +97,8 @@ declare class WebInspectorElement extends LitElement {
|
|
|
72
97
|
render(): lit.TemplateResult<1>;
|
|
73
98
|
private renderButton;
|
|
74
99
|
private renderWindow;
|
|
75
|
-
private
|
|
76
|
-
private
|
|
100
|
+
private hydrateStateFromStorageEarly;
|
|
101
|
+
private hydrateStateFromStorage;
|
|
77
102
|
private get activeContext();
|
|
78
103
|
private handlePointerDown;
|
|
79
104
|
private handlePointerMove;
|
|
@@ -113,15 +138,30 @@ declare class WebInspectorElement extends LitElement {
|
|
|
113
138
|
private getDockedWindowStyles;
|
|
114
139
|
private handleDockClick;
|
|
115
140
|
private serializeAttributes;
|
|
141
|
+
private sanitizeForLogging;
|
|
142
|
+
private normalizeEventPayload;
|
|
143
|
+
private normalizeMessageContent;
|
|
144
|
+
private normalizeToolCalls;
|
|
145
|
+
private normalizeAgentMessage;
|
|
146
|
+
private normalizeAgentMessages;
|
|
147
|
+
private normalizeContextStore;
|
|
116
148
|
private contextOptions;
|
|
117
149
|
private selectedContext;
|
|
118
150
|
private expandedRows;
|
|
119
151
|
private copiedEvents;
|
|
120
152
|
private expandedTools;
|
|
121
153
|
private expandedContextItems;
|
|
154
|
+
private copiedContextItems;
|
|
122
155
|
private getSelectedMenu;
|
|
156
|
+
private renderCoreWarningBanner;
|
|
157
|
+
private getCoreStatusSummary;
|
|
123
158
|
private renderMainContent;
|
|
124
159
|
private renderEventsTable;
|
|
160
|
+
private handleEventFilterInput;
|
|
161
|
+
private handleEventTypeChange;
|
|
162
|
+
private resetEventFilters;
|
|
163
|
+
private handleClearEvents;
|
|
164
|
+
private exportEvents;
|
|
125
165
|
private renderAgentsView;
|
|
126
166
|
private renderContextDropdown;
|
|
127
167
|
private handleMenuSelect;
|
|
@@ -138,14 +178,27 @@ declare class WebInspectorElement extends LitElement {
|
|
|
138
178
|
private renderContextCard;
|
|
139
179
|
private getContextValuePreview;
|
|
140
180
|
private formatContextValue;
|
|
181
|
+
private copyContextValue;
|
|
141
182
|
private toggleContextExpansion;
|
|
142
183
|
private handleGlobalPointerDown;
|
|
143
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;
|
|
144
197
|
}
|
|
145
198
|
declare function defineWebInspector(): void;
|
|
146
199
|
declare global {
|
|
147
200
|
interface HTMLElementTagNameMap {
|
|
148
|
-
"web-inspector": WebInspectorElement;
|
|
201
|
+
"cpk-web-inspector": WebInspectorElement;
|
|
149
202
|
}
|
|
150
203
|
}
|
|
151
204
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2,16 +2,23 @@ import * as lit from 'lit';
|
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
3
|
import { CopilotKitCore } from '@copilotkitnext/core';
|
|
4
4
|
|
|
5
|
-
declare const WEB_INSPECTOR_TAG: "web-inspector";
|
|
5
|
+
declare const WEB_INSPECTOR_TAG: "cpk-web-inspector";
|
|
6
6
|
declare class WebInspectorElement extends LitElement {
|
|
7
7
|
static properties: {
|
|
8
8
|
readonly core: {
|
|
9
9
|
readonly attribute: false;
|
|
10
10
|
};
|
|
11
|
+
readonly autoAttachCore: {
|
|
12
|
+
readonly type: BooleanConstructor;
|
|
13
|
+
readonly attribute: "auto-attach-core";
|
|
14
|
+
};
|
|
11
15
|
};
|
|
12
16
|
private _core;
|
|
13
17
|
private coreSubscriber;
|
|
14
18
|
private coreUnsubscribe;
|
|
19
|
+
private runtimeStatus;
|
|
20
|
+
private coreProperties;
|
|
21
|
+
private lastCoreError;
|
|
15
22
|
private agentSubscriptions;
|
|
16
23
|
private agentEvents;
|
|
17
24
|
private agentMessages;
|
|
@@ -33,6 +40,21 @@ declare class WebInspectorElement extends LitElement {
|
|
|
33
40
|
private previousBodyMargins;
|
|
34
41
|
private transitionTimeoutId;
|
|
35
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;
|
|
36
58
|
get core(): CopilotKitCore | null;
|
|
37
59
|
set core(value: CopilotKitCore | null);
|
|
38
60
|
private readonly contextState;
|
|
@@ -46,6 +68,8 @@ declare class WebInspectorElement extends LitElement {
|
|
|
46
68
|
private detachFromCore;
|
|
47
69
|
private teardownAgentSubscriptions;
|
|
48
70
|
private processAgentsChanged;
|
|
71
|
+
private refreshToolsSnapshot;
|
|
72
|
+
private tryAutoAttachCore;
|
|
49
73
|
private subscribeToAgent;
|
|
50
74
|
private unsubscribeFromAgent;
|
|
51
75
|
private recordAgentEvent;
|
|
@@ -53,6 +77,7 @@ declare class WebInspectorElement extends LitElement {
|
|
|
53
77
|
private syncAgentState;
|
|
54
78
|
private updateContextOptions;
|
|
55
79
|
private getEventsForSelectedContext;
|
|
80
|
+
private filterEvents;
|
|
56
81
|
private getLatestStateForAgent;
|
|
57
82
|
private getLatestMessagesForAgent;
|
|
58
83
|
private getAgentStatus;
|
|
@@ -72,8 +97,8 @@ declare class WebInspectorElement extends LitElement {
|
|
|
72
97
|
render(): lit.TemplateResult<1>;
|
|
73
98
|
private renderButton;
|
|
74
99
|
private renderWindow;
|
|
75
|
-
private
|
|
76
|
-
private
|
|
100
|
+
private hydrateStateFromStorageEarly;
|
|
101
|
+
private hydrateStateFromStorage;
|
|
77
102
|
private get activeContext();
|
|
78
103
|
private handlePointerDown;
|
|
79
104
|
private handlePointerMove;
|
|
@@ -113,15 +138,30 @@ declare class WebInspectorElement extends LitElement {
|
|
|
113
138
|
private getDockedWindowStyles;
|
|
114
139
|
private handleDockClick;
|
|
115
140
|
private serializeAttributes;
|
|
141
|
+
private sanitizeForLogging;
|
|
142
|
+
private normalizeEventPayload;
|
|
143
|
+
private normalizeMessageContent;
|
|
144
|
+
private normalizeToolCalls;
|
|
145
|
+
private normalizeAgentMessage;
|
|
146
|
+
private normalizeAgentMessages;
|
|
147
|
+
private normalizeContextStore;
|
|
116
148
|
private contextOptions;
|
|
117
149
|
private selectedContext;
|
|
118
150
|
private expandedRows;
|
|
119
151
|
private copiedEvents;
|
|
120
152
|
private expandedTools;
|
|
121
153
|
private expandedContextItems;
|
|
154
|
+
private copiedContextItems;
|
|
122
155
|
private getSelectedMenu;
|
|
156
|
+
private renderCoreWarningBanner;
|
|
157
|
+
private getCoreStatusSummary;
|
|
123
158
|
private renderMainContent;
|
|
124
159
|
private renderEventsTable;
|
|
160
|
+
private handleEventFilterInput;
|
|
161
|
+
private handleEventTypeChange;
|
|
162
|
+
private resetEventFilters;
|
|
163
|
+
private handleClearEvents;
|
|
164
|
+
private exportEvents;
|
|
125
165
|
private renderAgentsView;
|
|
126
166
|
private renderContextDropdown;
|
|
127
167
|
private handleMenuSelect;
|
|
@@ -138,14 +178,27 @@ declare class WebInspectorElement extends LitElement {
|
|
|
138
178
|
private renderContextCard;
|
|
139
179
|
private getContextValuePreview;
|
|
140
180
|
private formatContextValue;
|
|
181
|
+
private copyContextValue;
|
|
141
182
|
private toggleContextExpansion;
|
|
142
183
|
private handleGlobalPointerDown;
|
|
143
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;
|
|
144
197
|
}
|
|
145
198
|
declare function defineWebInspector(): void;
|
|
146
199
|
declare global {
|
|
147
200
|
interface HTMLElementTagNameMap {
|
|
148
|
-
"web-inspector": WebInspectorElement;
|
|
201
|
+
"cpk-web-inspector": WebInspectorElement;
|
|
149
202
|
}
|
|
150
203
|
}
|
|
151
204
|
|