@meridianlabs/log-viewer 0.3.189 → 0.3.191
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/lib/app/log-view/tabs/SamplesTab.d.ts.map +1 -1
- package/lib/app/samples/InlineSampleDisplay.d.ts.map +1 -1
- package/lib/app/samples/SampleDetailComponent.d.ts.map +1 -1
- package/lib/app/samples/SampleDisplay.d.ts +1 -0
- package/lib/app/samples/SampleDisplay.d.ts.map +1 -1
- package/lib/app/samples/scores/SampleScoresView.d.ts.map +1 -1
- package/lib/index.js +31 -31
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SamplesTab.d.ts","sourceRoot":"","sources":["../../../../src/app/log-view/tabs/SamplesTab.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAwC,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAqB7C,eAAO,MAAM,mBAAmB,GAC9B,YAAY,MAAM,GAAG,SAAS,EAC9B,YAAY,MAAM,IAAI;;;;;;;;;CAuCvB,CAAC;AAEF,UAAU,eAAe;IAEvB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"SamplesTab.d.ts","sourceRoot":"","sources":["../../../../src/app/log-view/tabs/SamplesTab.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAwC,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAqB7C,eAAO,MAAM,mBAAmB,GAC9B,YAAY,MAAM,GAAG,SAAS,EAC9B,YAAY,MAAM,IAAI;;;;;;;;;CAuCvB,CAAC;AAEF,UAAU,eAAe;IAEvB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAgF1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlineSampleDisplay.d.ts","sourceRoot":"","sources":["../../../src/app/samples/InlineSampleDisplay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAU,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"InlineSampleDisplay.d.ts","sourceRoot":"","sources":["../../../src/app/samples/InlineSampleDisplay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAU,MAAM,OAAO,CAAC;AAWnC,UAAU,wBAAwB;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC/B;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAU5D,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,wBAAwB,CA8B9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SampleDetailComponent.d.ts","sourceRoot":"","sources":["../../../src/app/samples/SampleDetailComponent.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAmC,MAAM,OAAO,CAAC;AAYnE;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,gDAAgD;IAChD,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,4CAA4C;IAC5C,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,wDAAwD;IACxD,WAAW,EAAE,OAAO,CAAC;IACrB,oDAAoD;IACpD,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,gDAAgD;IAChD,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,gEAAgE;IAChE,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5D,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,oCAAoC;IACpC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,gCAAgC;IAChC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,mFAAmF;IACnF,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,oDAAoD;IACpD,UAAU,EAAE,sBAAsB,CAAC;IACnC,8DAA8D;IAC9D,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,
|
|
1
|
+
{"version":3,"file":"SampleDetailComponent.d.ts","sourceRoot":"","sources":["../../../src/app/samples/SampleDetailComponent.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAmC,MAAM,OAAO,CAAC;AAYnE;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,gDAAgD;IAChD,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,4CAA4C;IAC5C,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,wDAAwD;IACxD,WAAW,EAAE,OAAO,CAAC;IACrB,oDAAoD;IACpD,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,gDAAgD;IAChD,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,gEAAgE;IAChE,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5D,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,oCAAoC;IACpC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,gCAAgC;IAChC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,mFAAmF;IACnF,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,oDAAoD;IACpD,UAAU,EAAE,sBAAsB,CAAC;IACnC,8DAA8D;IAC9D,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAuKhE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SampleDisplay.d.ts","sourceRoot":"","sources":["../../../src/app/samples/SampleDisplay.tsx"],"names":[],"mappings":"AAWA,OAAO,EACL,EAAE,EAGF,SAAS,EAMV,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SampleDisplay.d.ts","sourceRoot":"","sources":["../../../src/app/samples/SampleDisplay.tsx"],"names":[],"mappings":"AAWA,OAAO,EACL,EAAE,EAGF,SAAS,EAMV,MAAM,OAAO,CAAC;AAuCf,UAAU,kBAAkB;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC5C,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAuchD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SampleScoresView.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/scores/SampleScoresView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SampleScoresView.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/scores/SampleScoresView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQtC,UAAU,qBAAqB;IAC7B,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC9B,SAAS,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;CAC7C;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA8DtD,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -106577,7 +106577,7 @@ const ViewerOptionsPopover = ({
|
|
|
106577
106577
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1d.fullWidth, styles$1d.fullWidthPadded), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$1d.logDir, children: logDir2 }) }),
|
|
106578
106578
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1d.spacer) }),
|
|
106579
106579
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Version" }),
|
|
106580
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.
|
|
106580
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.191-0-g980fc96cd" }),
|
|
106581
106581
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Schema" }),
|
|
106582
106582
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: DB_VERSION }),
|
|
106583
106583
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1d.spacer) }),
|
|
@@ -106816,7 +106816,7 @@ const ApplicationNavbar = ({
|
|
|
106816
106816
|
fnNavigationUrl,
|
|
106817
106817
|
bordered: bordered2,
|
|
106818
106818
|
children: children2,
|
|
106819
|
-
showActivity = "
|
|
106819
|
+
showActivity = "log",
|
|
106820
106820
|
breadcrumbsEnabled
|
|
106821
106821
|
}) => {
|
|
106822
106822
|
const optionsRef = useRef(null);
|
|
@@ -167763,7 +167763,7 @@ const SampleScoresView = ({
|
|
|
167763
167763
|
return void 0;
|
|
167764
167764
|
}
|
|
167765
167765
|
if (!sample2) {
|
|
167766
|
-
return
|
|
167766
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(NoContentsPanel, { text: "Scoring data not available" });
|
|
167767
167767
|
}
|
|
167768
167768
|
const scoreInput = inputString(sample2.input);
|
|
167769
167769
|
if (sample2.choices && sample2.choices.length > 0) {
|
|
@@ -180457,6 +180457,7 @@ const TranscriptPanel = memo((props) => {
|
|
|
180457
180457
|
const SampleDisplay = ({
|
|
180458
180458
|
id,
|
|
180459
180459
|
scrollRef,
|
|
180460
|
+
showActivity,
|
|
180460
180461
|
focusOnLoad
|
|
180461
180462
|
}) => {
|
|
180462
180463
|
const baseId = `sample-display`;
|
|
@@ -180500,6 +180501,7 @@ const SampleDisplay = ({
|
|
|
180500
180501
|
return [];
|
|
180501
180502
|
}
|
|
180502
180503
|
}, [sample2?.messages, runningSampleData]);
|
|
180504
|
+
const hasSampleData = sample2 !== void 0 || sampleEvents !== void 0 || sampleMessages !== void 0;
|
|
180503
180505
|
const {
|
|
180504
180506
|
logPath: urlLogPath,
|
|
180505
180507
|
id: urlSampleId,
|
|
@@ -180685,10 +180687,10 @@ const SampleDisplay = ({
|
|
|
180685
180687
|
return isRunning(selectedSampleSummary, runningSampleData);
|
|
180686
180688
|
}, [selectedSampleSummary, runningSampleData]);
|
|
180687
180689
|
const sampleDetailNavigation = useSampleDetailNavigation();
|
|
180688
|
-
const displaySample = sample2 || selectedSampleSummary;
|
|
180689
180690
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
|
|
180690
|
-
|
|
180691
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
180691
|
+
selectedSampleSummary ? /* @__PURE__ */ jsxRuntimeExports.jsx(SampleSummaryView, { parent_id: id, sample: selectedSampleSummary }) : void 0,
|
|
180692
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ActivityBar, { animating: showActivity }),
|
|
180693
|
+
hasSampleData && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
180692
180694
|
TabSet,
|
|
180693
180695
|
{
|
|
180694
180696
|
id: tabsetId,
|
|
@@ -180796,7 +180798,7 @@ const SampleDisplay = ({
|
|
|
180796
180798
|
title: "Metadata",
|
|
180797
180799
|
onSelected: onSelectedTab,
|
|
180798
180800
|
selected: effectiveSelectedTab === kSampleMetdataTabId,
|
|
180799
|
-
children:
|
|
180801
|
+
children: sampleMetadatas.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$Z.padded, styles$Z.fullWidth), children: sampleMetadatas }) : /* @__PURE__ */ jsxRuntimeExports.jsx(NoContentsPanel, { text: "No sample metadata available" })
|
|
180800
180802
|
}
|
|
180801
180803
|
),
|
|
180802
180804
|
sample2?.error || sample2?.error_retries && sample2?.error_retries.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -181061,27 +181063,20 @@ const InlineSampleComponent = ({
|
|
|
181061
181063
|
}) => {
|
|
181062
181064
|
const sampleData = useSampleData();
|
|
181063
181065
|
const scrollRef = useRef(null);
|
|
181064
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
181065
|
-
|
|
181066
|
-
|
|
181067
|
-
|
|
181068
|
-
|
|
181069
|
-
|
|
181070
|
-
|
|
181071
|
-
|
|
181072
|
-
|
|
181073
|
-
|
|
181074
|
-
|
|
181075
|
-
|
|
181076
|
-
|
|
181077
|
-
|
|
181078
|
-
SampleDisplay,
|
|
181079
|
-
{
|
|
181080
|
-
id: "inline-sample-display",
|
|
181081
|
-
scrollRef
|
|
181082
|
-
}
|
|
181083
|
-
) }) }) })
|
|
181084
|
-
] });
|
|
181066
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(className2, styles$w.container), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$w.scroller), ref: scrollRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(StickyScrollProvider, { value: scrollRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$w.body, children: sampleData.error ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
181067
|
+
ErrorPanel,
|
|
181068
|
+
{
|
|
181069
|
+
title: "Unable to load sample",
|
|
181070
|
+
error: sampleData.error
|
|
181071
|
+
}
|
|
181072
|
+
) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
181073
|
+
SampleDisplay,
|
|
181074
|
+
{
|
|
181075
|
+
id: "inline-sample-display",
|
|
181076
|
+
showActivity: !!showActivity,
|
|
181077
|
+
scrollRef
|
|
181078
|
+
}
|
|
181079
|
+
) }) }) }) });
|
|
181085
181080
|
};
|
|
181086
181081
|
const detail = "_detail_14cqz_1";
|
|
181087
181082
|
const panel$3 = "_panel_14cqz_7";
|
|
@@ -181231,10 +181226,10 @@ const SampleDetailComponent = ({
|
|
|
181231
181226
|
] })
|
|
181232
181227
|
}
|
|
181233
181228
|
),
|
|
181234
|
-
|
|
181229
|
+
sampleMatchesRequest && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
181235
181230
|
InlineSampleComponent,
|
|
181236
181231
|
{
|
|
181237
|
-
showActivity:
|
|
181232
|
+
showActivity: sampleStatus2 === "loading" || sampleStatus2 === "streaming",
|
|
181238
181233
|
className: styles$v.panel
|
|
181239
181234
|
}
|
|
181240
181235
|
)
|
|
@@ -203835,7 +203830,12 @@ const SamplesTab = ({ running }) => {
|
|
|
203835
203830
|
}
|
|
203836
203831
|
} else {
|
|
203837
203832
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
|
|
203838
|
-
samplesDescriptor && totalSampleCount === 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
203833
|
+
samplesDescriptor && totalSampleCount === 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
203834
|
+
InlineSampleDisplay,
|
|
203835
|
+
{
|
|
203836
|
+
showActivity: sampleStatus2 === "loading" || sampleStatus2 === "streaming"
|
|
203837
|
+
}
|
|
203838
|
+
) : void 0,
|
|
203839
203839
|
samplesDescriptor && totalSampleCount > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
203840
203840
|
SampleList,
|
|
203841
203841
|
{
|