agentfootprint-lens 0.72.0 → 0.72.1
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/README.md +6 -2
- package/dist/{chunk-OM2CDZJS.js → chunk-DBEVLCHX.js} +8 -3
- package/dist/chunk-DBEVLCHX.js.map +1 -0
- package/dist/index.cjs +7 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1 -1
- package/dist/why.cjs +7 -2
- package/dist/why.cjs.map +1 -1
- package/dist/why.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-OM2CDZJS.js.map +0 -1
package/README.md
CHANGED
|
@@ -1043,8 +1043,12 @@ const { account, shown } = await res.json();
|
|
|
1043
1043
|
library's `text`; the pane's own strings are `PLAIN_WORDS_LABELS` — names,
|
|
1044
1044
|
never claims (walked by `test/served/no-own-claims.test.ts`).
|
|
1045
1045
|
- **No HTML from data.** A sentence renders from its typed `parts` as text:
|
|
1046
|
-
`code` → `<code>`, `quote` →
|
|
1047
|
-
own voucher. A `<script>` in a question is shown as the characters
|
|
1046
|
+
`code` → `<code>`, `quote` → a span, a declared `label` → `<strong>` with
|
|
1047
|
+
its own voucher. A `<script>` in a question is shown as the characters
|
|
1048
|
+
`<script>`.
|
|
1049
|
+
- **No punctuation of its own.** The account's text carries its quotation
|
|
1050
|
+
marks (`“{{question:quote}}”`), so a quote is never a `<q>` — the browser
|
|
1051
|
+
would draw a second pair around it.
|
|
1048
1052
|
- **Show me = leaves.** A withheld leaf says why (`not shown here`, `too large
|
|
1049
1053
|
to show here`, …); a line into a call the model read without the tool's
|
|
1050
1054
|
report-only fields says so softly.
|
|
@@ -882,6 +882,9 @@ var LENS_STYLESHEET = `
|
|
|
882
882
|
.lens-plain-line, .lens-plain-text { overflow-wrap: anywhere; }
|
|
883
883
|
.lens-plain-line code { font-family: ${T.fontMono}; font-size: 0.92em; }
|
|
884
884
|
.lens-plain-label { font-weight: 600; }
|
|
885
|
+
/* The person's words, quoted \u2014 the account's text carries the marks, so this is a span, never a
|
|
886
|
+
<q> (which the browser draws with a second pair). A long unbroken token in them still wraps. */
|
|
887
|
+
.lens-plain-quote { overflow-wrap: anywhere; }
|
|
885
888
|
.lens-plain-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 6px; vertical-align: middle; }
|
|
886
889
|
.lens-plain-chips--row { display: flex; margin: 6px 0 0; }
|
|
887
890
|
.lens-plain-chip {
|
|
@@ -1236,7 +1239,8 @@ import { coolDark, coolLight, tokensToCSSVars } from "footprint-explainable-ui";
|
|
|
1236
1239
|
import { Fragment, jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1237
1240
|
var Parts = ({ parts }) => /* @__PURE__ */ jsx5(Fragment, { children: parts.map((part, i) => {
|
|
1238
1241
|
if ("code" in part) return /* @__PURE__ */ jsx5("code", { children: part.code }, i);
|
|
1239
|
-
if ("quote" in part)
|
|
1242
|
+
if ("quote" in part)
|
|
1243
|
+
return /* @__PURE__ */ jsx5("span", { className: "lens-plain-quote", children: part.quote }, i);
|
|
1240
1244
|
if ("label" in part)
|
|
1241
1245
|
return /* @__PURE__ */ jsx5("strong", { className: "lens-plain-label", title: `${LABELS.voucher}: ${part.source}`, children: part.label }, i);
|
|
1242
1246
|
return /* @__PURE__ */ jsx5(React5.Fragment, { children: part.text }, i);
|
|
@@ -1449,7 +1453,8 @@ var PRINT_ANSWER_FOLD = 1200;
|
|
|
1449
1453
|
var iso = (ms) => new Date(ms).toISOString();
|
|
1450
1454
|
var Text = ({ sentence }) => /* @__PURE__ */ jsx6(Fragment2, { children: sentence.parts.map((part, i) => {
|
|
1451
1455
|
if ("code" in part) return /* @__PURE__ */ jsx6("code", { children: part.code }, i);
|
|
1452
|
-
if ("quote" in part)
|
|
1456
|
+
if ("quote" in part)
|
|
1457
|
+
return /* @__PURE__ */ jsx6("span", { className: "lens-plain-quote", children: part.quote }, i);
|
|
1453
1458
|
if ("label" in part) return /* @__PURE__ */ jsx6("strong", { children: part.label }, i);
|
|
1454
1459
|
return /* @__PURE__ */ jsx6(React6.Fragment, { children: part.text }, i);
|
|
1455
1460
|
}) });
|
|
@@ -5448,4 +5453,4 @@ export {
|
|
|
5448
5453
|
useBookmarkSidecar,
|
|
5449
5454
|
Lens
|
|
5450
5455
|
};
|
|
5451
|
-
//# sourceMappingURL=chunk-
|
|
5456
|
+
//# sourceMappingURL=chunk-DBEVLCHX.js.map
|