@tonyclaw/agent-inspector 2.0.17 → 2.0.19
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/.output/cli.js +149 -40
- package/.output/nitro.json +1 -1
- package/.output/public/assets/{CompareDrawer-DDg7Cs4N.js → CompareDrawer-D-90PIPw.js} +1 -1
- package/.output/public/assets/ProxyViewerContainer-CxRDWacg.js +114 -0
- package/.output/public/assets/ReplayDialog-DzlLYoTO.js +1 -0
- package/.output/public/assets/{RequestAnatomy-DR8OICOJ.js → RequestAnatomy-0hbyf6oa.js} +1 -1
- package/.output/public/assets/ResponseView-CKe0tNqr.js +1 -0
- package/.output/public/assets/StreamingChunkSequence-enhfdeNh.js +1 -0
- package/.output/public/assets/_sessionId-CJ-SusES.js +1 -0
- package/.output/public/assets/index-BbFsmQRC.js +1 -0
- package/.output/public/assets/index-BfBgrkgU.css +1 -0
- package/.output/public/assets/{main-bwZlEXw2.js → main-o9-hg8g1.js} +2 -2
- package/.output/server/_libs/lucide-react.mjs +141 -118
- package/.output/server/_libs/tanstack__react-virtual.mjs +13 -2
- package/.output/server/_libs/tanstack__virtual-core.mjs +24 -1
- package/.output/server/{_sessionId-BEuJJhqT.mjs → _sessionId-F8lm6PIb.mjs} +3 -2
- package/.output/server/_ssr/{CompareDrawer-yTO93GMz.mjs → CompareDrawer-Cf1yfwfd.mjs} +4 -3
- package/.output/server/_ssr/{ProxyViewerContainer-C8qCkHGB.mjs → ProxyViewerContainer-Bmu9867L.mjs} +349 -74
- package/.output/server/_ssr/{ReplayDialog-DRF9PG7Z.mjs → ReplayDialog-DxZfLBOe.mjs} +199 -17
- package/.output/server/_ssr/{RequestAnatomy-DBcuV_jV.mjs → RequestAnatomy-CbdERGZd.mjs} +4 -3
- package/.output/server/_ssr/{ResponseView-JJm78HZT.mjs → ResponseView-CvLd6qxI.mjs} +4 -3
- package/.output/server/_ssr/{StreamingChunkSequence-DyGKjBYx.mjs → StreamingChunkSequence-B_lkRB6o.mjs} +4 -3
- package/.output/server/_ssr/{index-T7JG28t6.mjs → index-ejrSItfz.mjs} +3 -2
- package/.output/server/_ssr/index.mjs +2 -2
- package/.output/server/_ssr/{router-BJob8RN3.mjs → router-SbCnbDc2.mjs} +896 -240
- package/.output/server/{_tanstack-start-manifest_v-CuiFi3XC.mjs → _tanstack-start-manifest_v-yx8ftqWz.mjs} +1 -1
- package/.output/server/index.mjs +60 -60
- package/README.md +26 -109
- package/package.json +2 -1
- package/src/cli/doctor.ts +160 -8
- package/src/cli/templates/skill-onboard.ts +2 -20
- package/src/components/OnboardingBanner.tsx +13 -13
- package/src/components/ProxyViewer.tsx +55 -38
- package/src/components/ProxyViewerContainer.tsx +5 -0
- package/src/components/providers/SettingsDialog.tsx +113 -2
- package/src/components/proxy-viewer/ConversationGroup.tsx +20 -3
- package/src/components/proxy-viewer/ConversationGroupList.tsx +144 -0
- package/src/components/proxy-viewer/ConversationHeader.tsx +0 -2
- package/src/components/proxy-viewer/ReplayDialog.tsx +200 -13
- package/src/components/proxy-viewer/index.ts +1 -1
- package/src/knowledge/openclawClient.ts +0 -8
- package/src/knowledge/types.ts +0 -2
- package/src/lib/export-logs.ts +72 -5
- package/src/lib/providerTestContract.ts +0 -1
- package/src/lib/useProviders.ts +1 -1
- package/src/mcp/server.ts +14 -6
- package/src/mcp/toolHandlers.ts +21 -4
- package/src/proxy/chunkStorage.ts +2 -4
- package/src/proxy/dataDir.ts +37 -15
- package/src/proxy/formats/anthropic/index.ts +0 -1
- package/src/proxy/formats/anthropic/schemas.ts +0 -2
- package/src/proxy/handler.ts +41 -29
- package/src/proxy/logFinalizer.ts +93 -11
- package/src/proxy/logger.ts +35 -10
- package/src/proxy/providers.ts +12 -5
- package/src/proxy/rawStreamCapture.ts +85 -0
- package/src/proxy/schemas.ts +1 -51
- package/src/proxy/sessionRuntime.ts +0 -9
- package/src/proxy/socketTracker.ts +15 -8
- package/src/proxy/store.ts +414 -13
- package/src/routes/api/logs.$id.replay.ts +66 -1
- package/src/routes/api/logs.stream.ts +11 -3
- package/src/routes/api/logs.ts +51 -17
- package/src/routes/api/providers.$providerId.ts +10 -3
- package/src/routes/api/providers.ts +6 -3
- package/.output/public/assets/ProxyViewerContainer-DbbK1y7N.js +0 -114
- package/.output/public/assets/ReplayDialog-C1zWNkoz.js +0 -1
- package/.output/public/assets/ResponseView-Dh9iSj6h.js +0 -1
- package/.output/public/assets/StreamingChunkSequence-B_xElyH3.js +0 -1
- package/.output/public/assets/_sessionId-gv1a_NNu.js +0 -1
- package/.output/public/assets/index-D_nZj9Vt.css +0 -1
- package/.output/public/assets/index-u-LwDaeH.js +0 -1
- package/src/components/ui/json-expansion-button.tsx +0 -56
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as reactExports } from "./react.mjs";
|
|
2
2
|
import { r as reactDomExports } from "./react-dom.mjs";
|
|
3
|
-
import { V as Virtualizer, e as elementScroll, o as observeElementOffset, a as observeElementRect } from "./tanstack__virtual-core.mjs";
|
|
3
|
+
import { V as Virtualizer, e as elementScroll, o as observeElementOffset, a as observeElementRect, w as windowScroll, b as observeWindowOffset, c as observeWindowRect } from "./tanstack__virtual-core.mjs";
|
|
4
4
|
const useIsomorphicLayoutEffect = typeof document !== "undefined" ? reactExports.useLayoutEffect : reactExports.useEffect;
|
|
5
5
|
function useVirtualizerBase({
|
|
6
6
|
useFlushSync = true,
|
|
@@ -39,6 +39,17 @@ function useVirtualizer(options) {
|
|
|
39
39
|
...options
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
+
function useWindowVirtualizer(options) {
|
|
43
|
+
return useVirtualizerBase({
|
|
44
|
+
getScrollElement: () => typeof document !== "undefined" ? window : null,
|
|
45
|
+
observeElementRect: observeWindowRect,
|
|
46
|
+
observeElementOffset: observeWindowOffset,
|
|
47
|
+
scrollToFn: windowScroll,
|
|
48
|
+
initialOffset: () => typeof document !== "undefined" ? window.scrollY : 0,
|
|
49
|
+
...options
|
|
50
|
+
});
|
|
51
|
+
}
|
|
42
52
|
export {
|
|
43
|
-
useVirtualizer as
|
|
53
|
+
useVirtualizer as a,
|
|
54
|
+
useWindowVirtualizer as u
|
|
44
55
|
};
|
|
@@ -129,6 +129,20 @@ const observeElementRect = (instance, cb) => {
|
|
|
129
129
|
const addEventListenerOptions = {
|
|
130
130
|
passive: true
|
|
131
131
|
};
|
|
132
|
+
const observeWindowRect = (instance, cb) => {
|
|
133
|
+
const element = instance.scrollElement;
|
|
134
|
+
if (!element) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
const handler = () => {
|
|
138
|
+
cb({ width: element.innerWidth, height: element.innerHeight });
|
|
139
|
+
};
|
|
140
|
+
handler();
|
|
141
|
+
element.addEventListener("resize", handler, addEventListenerOptions);
|
|
142
|
+
return () => {
|
|
143
|
+
element.removeEventListener("resize", handler);
|
|
144
|
+
};
|
|
145
|
+
};
|
|
132
146
|
const supportsScrollend = typeof window == "undefined" ? true : "onscrollend" in window;
|
|
133
147
|
const observeOffset = (instance, cb, readOffset) => {
|
|
134
148
|
const element = instance.scrollElement;
|
|
@@ -168,6 +182,11 @@ const observeElementOffset = (instance, cb) => observeOffset(instance, cb, (el)
|
|
|
168
182
|
const { horizontal, isRtl } = instance.options;
|
|
169
183
|
return horizontal ? el.scrollLeft * (isRtl && -1 || 1) : el.scrollTop;
|
|
170
184
|
});
|
|
185
|
+
const observeWindowOffset = (instance, cb) => observeOffset(
|
|
186
|
+
instance,
|
|
187
|
+
cb,
|
|
188
|
+
(win) => instance.options.horizontal ? win.scrollX : win.scrollY
|
|
189
|
+
);
|
|
171
190
|
const measureElement = (element, entry, instance) => {
|
|
172
191
|
if (entry == null ? void 0 : entry.borderBoxSize) {
|
|
173
192
|
const box = entry.borderBoxSize[0];
|
|
@@ -190,6 +209,7 @@ const scrollWithAdjustments = (offset, {
|
|
|
190
209
|
behavior
|
|
191
210
|
});
|
|
192
211
|
};
|
|
212
|
+
const windowScroll = scrollWithAdjustments;
|
|
193
213
|
const elementScroll = scrollWithAdjustments;
|
|
194
214
|
class Virtualizer {
|
|
195
215
|
constructor(opts) {
|
|
@@ -1220,6 +1240,9 @@ function calculateRange({
|
|
|
1220
1240
|
export {
|
|
1221
1241
|
Virtualizer as V,
|
|
1222
1242
|
observeElementRect as a,
|
|
1243
|
+
observeWindowOffset as b,
|
|
1244
|
+
observeWindowRect as c,
|
|
1223
1245
|
elementScroll as e,
|
|
1224
|
-
observeElementOffset as o
|
|
1246
|
+
observeElementOffset as o,
|
|
1247
|
+
windowScroll as w
|
|
1225
1248
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "./_libs/react.mjs";
|
|
2
|
-
import { P as ProxyViewerContainer } from "./_ssr/ProxyViewerContainer-
|
|
3
|
-
import { R as Route$q } from "./_ssr/router-
|
|
2
|
+
import { P as ProxyViewerContainer } from "./_ssr/ProxyViewerContainer-Bmu9867L.mjs";
|
|
3
|
+
import { R as Route$q } from "./_ssr/router-SbCnbDc2.mjs";
|
|
4
4
|
import "./_libs/jszip.mjs";
|
|
5
5
|
import "./_libs/modelcontextprotocol__server.mjs";
|
|
6
6
|
import "./_libs/swr.mjs";
|
|
@@ -128,6 +128,7 @@ import "node:stream";
|
|
|
128
128
|
import "./_libs/isbot.mjs";
|
|
129
129
|
import "node:fs";
|
|
130
130
|
import "node:fs/promises";
|
|
131
|
+
import "node:readline";
|
|
131
132
|
import "node:buffer";
|
|
132
133
|
import "node:child_process";
|
|
133
134
|
import "./_libs/conf.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as reactExports, j as jsxRuntimeExports } from "../_libs/react.mjs";
|
|
2
|
-
import { g as getLogFormatAdapter, r as resolveLogFormat, a as getConversationId, c as cn, B as Badge, f as formatTokens, J as JsonViewerFromString } from "./ProxyViewerContainer-
|
|
3
|
-
import "./router-
|
|
2
|
+
import { g as getLogFormatAdapter, r as resolveLogFormat, a as getConversationId, c as cn, B as Badge, f as formatTokens, J as JsonViewerFromString } from "./ProxyViewerContainer-Bmu9867L.mjs";
|
|
3
|
+
import "./router-SbCnbDc2.mjs";
|
|
4
4
|
import "../_libs/modelcontextprotocol__server.mjs";
|
|
5
5
|
import "../_libs/jszip.mjs";
|
|
6
|
-
import { X, a9 as Rows3, aa as Columns2, p as Minus, P as Plus,
|
|
6
|
+
import { X, a9 as Rows3, aa as Columns2, p as Minus, P as Plus, i as Pencil, m as ChevronRight, ab as Equal, C as Check, a as Copy } from "../_libs/lucide-react.mjs";
|
|
7
7
|
import "../_libs/swr.mjs";
|
|
8
8
|
import "../_libs/use-sync-external-store.mjs";
|
|
9
9
|
import "../_libs/dequal.mjs";
|
|
@@ -128,6 +128,7 @@ import "node:stream";
|
|
|
128
128
|
import "../_libs/isbot.mjs";
|
|
129
129
|
import "node:fs";
|
|
130
130
|
import "node:fs/promises";
|
|
131
|
+
import "node:readline";
|
|
131
132
|
import "node:buffer";
|
|
132
133
|
import "node:child_process";
|
|
133
134
|
import "../_libs/conf.mjs";
|