@meridianlabs/log-viewer 0.3.144 → 0.3.146
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageContent.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/chat/MessageContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AACtC,OAAO,EACL,YAAY,EACZ,WAAW,EACX,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,YAAY,EAGb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAUjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKpD,KAAK,aAAa,GACd,WAAW,GACX,gBAAgB,GAChB,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,eAAe,GACf,WAAW,GACX,WAAW,GACX,cAAc,CAAC;AAInB,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,aAAa,EAAE,CAAC;AAEpD,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,eAAO,MAAM,gBAAgB,GAC3B,SAAS,OAAO,KACf,OAAO,IAAI,aAOb,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAoDlD,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageContent.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/chat/MessageContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AACtC,OAAO,EACL,YAAY,EACZ,WAAW,EACX,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,YAAY,EAGb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAUjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKpD,KAAK,aAAa,GACd,WAAW,GACX,gBAAgB,GAChB,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,eAAe,GACf,WAAW,GACX,WAAW,GACX,cAAc,CAAC;AAInB,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,aAAa,EAAE,CAAC;AAEpD,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,eAAO,MAAM,gBAAgB,GAC3B,SAAS,OAAO,KACf,OAAO,IAAI,aAOb,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAoDlD,CAAC;AAkRF,MAAM,MAAM,gBAAgB,CAAC,IAAI,EAAE,IAAI,SAAS,WAAW,IAAI,IAAI,SAAS,GAAG,GAC3E,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAChB,KAAK,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -97238,11 +97238,18 @@ const messageRenderers = {
|
|
|
97238
97238
|
reasoning: {
|
|
97239
97239
|
render: (key2, content2, isLast, _context) => {
|
|
97240
97240
|
const r2 = content2;
|
|
97241
|
+
let title2 = "Reasoning";
|
|
97241
97242
|
let text2 = r2.reasoning;
|
|
97242
97243
|
if (r2.redacted) {
|
|
97243
97244
|
text2 = r2.summary || "Reasoning encrypted by model provider.";
|
|
97245
|
+
if (r2.summary) {
|
|
97246
|
+
title2 = "Reasoning (Summary)";
|
|
97247
|
+
}
|
|
97244
97248
|
} else if (!text2) {
|
|
97245
97249
|
text2 = r2.summary || "Reasoning text not provided.";
|
|
97250
|
+
if (r2.summary) {
|
|
97251
|
+
title2 = "Reasoning (Summary)";
|
|
97252
|
+
}
|
|
97246
97253
|
}
|
|
97247
97254
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$1F.reasoning, "text-size-small"), children: [
|
|
97248
97255
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -97253,7 +97260,7 @@ const messageRenderers = {
|
|
|
97253
97260
|
"text-style-secondary",
|
|
97254
97261
|
isLast ? "no-last-para-padding" : ""
|
|
97255
97262
|
),
|
|
97256
|
-
children:
|
|
97263
|
+
children: title2
|
|
97257
97264
|
}
|
|
97258
97265
|
),
|
|
97259
97266
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(ExpandablePanel, { id: `${key2}-reasoning`, collapse: true, children: [
|
|
@@ -104390,7 +104397,7 @@ const ViewerOptionsPopover = ({
|
|
|
104390
104397
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1q.fullWidth, styles$1q.fullWidthPadded), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$1q.logDir, children: logDir2 }) }),
|
|
104391
104398
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1q.spacer) }),
|
|
104392
104399
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Version" }),
|
|
104393
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.
|
|
104400
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.146-0-gc4af21d61" }),
|
|
104394
104401
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Schema" }),
|
|
104395
104402
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: DB_VERSION }),
|
|
104396
104403
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1q.spacer) }),
|
|
@@ -140181,7 +140188,8 @@ class CompletionTooltip {
|
|
|
140181
140188
|
this.range = rangeAroundSelected(open.options.length, open.selected, this.view.state.facet(completionConfig).maxRenderedOptions);
|
|
140182
140189
|
this.showOptions(open.options, cState.id);
|
|
140183
140190
|
}
|
|
140184
|
-
|
|
140191
|
+
let newSel = this.updateSelectedOption(open.selected);
|
|
140192
|
+
if (newSel) {
|
|
140185
140193
|
this.destroyInfo();
|
|
140186
140194
|
let { completion } = open.options[open.selected];
|
|
140187
140195
|
let { info } = completion;
|
|
@@ -140197,6 +140205,7 @@ class CompletionTooltip {
|
|
|
140197
140205
|
}).catch((e) => logException(this.view.state, e, "completion info"));
|
|
140198
140206
|
} else {
|
|
140199
140207
|
this.addInfoPane(infoResult, completion);
|
|
140208
|
+
newSel.setAttribute("aria-describedby", this.info.id);
|
|
140200
140209
|
}
|
|
140201
140210
|
}
|
|
140202
140211
|
}
|
|
@@ -140204,6 +140213,7 @@ class CompletionTooltip {
|
|
|
140204
140213
|
this.destroyInfo();
|
|
140205
140214
|
let wrap2 = this.info = document.createElement("div");
|
|
140206
140215
|
wrap2.className = "cm-tooltip cm-completionInfo";
|
|
140216
|
+
wrap2.id = "cm-completionInfo-" + Math.floor(Math.random() * 65535).toString(16);
|
|
140207
140217
|
if (content2.nodeType != null) {
|
|
140208
140218
|
wrap2.appendChild(content2);
|
|
140209
140219
|
this.infoDestroy = null;
|
|
@@ -140226,8 +140236,10 @@ class CompletionTooltip {
|
|
|
140226
140236
|
set3 = opt;
|
|
140227
140237
|
}
|
|
140228
140238
|
} else {
|
|
140229
|
-
if (opt.hasAttribute("aria-selected"))
|
|
140239
|
+
if (opt.hasAttribute("aria-selected")) {
|
|
140230
140240
|
opt.removeAttribute("aria-selected");
|
|
140241
|
+
opt.removeAttribute("aria-describedby");
|
|
140242
|
+
}
|
|
140231
140243
|
}
|
|
140232
140244
|
}
|
|
140233
140245
|
if (set3)
|