@copilotkitnext/web-inspector 0.0.28 → 0.0.29

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.
@@ -1,9 +1,9 @@
1
1
 
2
2
  
3
- > @copilotkitnext/web-inspector@0.0.28 build:css /Users/mme/Projects/CopilotKit2/main/packages/web-inspector
3
+ > @copilotkitnext/web-inspector@0.0.29 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
- ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧≈ tailwindcss v4.1.11
6
+ ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇≈ tailwindcss v4.1.11
7
7
 
8
- Done in 32ms
8
+ Done in 26ms
9
9
  ⠙
@@ -1,23 +1,23 @@
1
1
 
2
2
  
3
- > @copilotkitnext/web-inspector@0.0.28 build /Users/mme/Projects/CopilotKit2/main/packages/web-inspector
3
+ > @copilotkitnext/web-inspector@0.0.29 build /Users/mikeryan/Repos/cpk/vnext_experimental/packages/web-inspector
4
4
  > tsup
5
5
 
6
6
  CLI Building entry: src/index.ts
7
7
  CLI Using tsconfig: tsconfig.json
8
8
  CLI tsup v8.5.0
9
- CLI Using tsup config: /Users/mme/Projects/CopilotKit2/main/packages/web-inspector/tsup.config.ts
9
+ CLI Using tsup config: /Users/mikeryan/Repos/cpk/vnext_experimental/packages/web-inspector/tsup.config.ts
10
10
  CLI Target: es2022
11
11
  CLI Cleaning output folder
12
12
  CJS Build start
13
13
  ESM Build start
14
- CJS dist/index.js 113.58 KB
15
- CJS dist/index.js.map 171.77 KB
16
- CJS ⚡️ Build success in 64ms
17
- ESM dist/index.mjs 111.48 KB
18
- ESM dist/index.mjs.map 171.73 KB
19
- ESM ⚡️ Build success in 64ms
14
+ ESM dist/index.mjs 150.00 KB
15
+ ESM dist/index.mjs.map 217.58 KB
16
+ ESM ⚡️ Build success in 31ms
17
+ CJS dist/index.js 152.18 KB
18
+ CJS dist/index.js.map 217.60 KB
19
+ CJS ⚡️ Build success in 31ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 1639ms
22
- DTS dist/index.d.ts 4.56 KB
23
- DTS dist/index.d.mts 4.56 KB
21
+ DTS ⚡️ Build success in 687ms
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,4 @@
1
+
2
+ > @copilotkitnext/web-inspector@0.0.27 lint /Users/mikeryan/Repos/cpk/vnext_experimental/packages/web-inspector
3
+ > eslint . --max-warnings 0
4
+
@@ -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
+ ⠙⠹⠸⠼⠴⠦[?25l
11
+  RUN  v3.2.4 /Users/mikeryan/Repos/cpk/vnext_experimental/packages/web-inspector
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 hydrateStateFromCookieEarly;
76
- private hydrateStateFromCookie;
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 hydrateStateFromCookieEarly;
76
- private hydrateStateFromCookie;
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