@xenosystem/agent-conversation 0.1.65 → 0.1.66

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/transcript.css +46 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xenosystem/agent-conversation",
3
- "version": "0.1.65",
3
+ "version": "0.1.66",
4
4
  "license": "UNLICENSED",
5
5
  "description": "The XENO Agent conversation surface: the transcript, the composer, and the logic behind them.",
6
6
  "type": "module",
@@ -43,10 +43,10 @@
43
43
  "react-markdown": "^10.1.0",
44
44
  "remark-gfm": "^4.0.1",
45
45
  "zustand": "^5.0.2",
46
+ "@xenosystem/agent-interface-hub-adapter": "0.1.51",
46
47
  "@xenosystem/agent-interface-contract": "0.1.51",
47
48
  "@xenosystem/agent-interface-core": "0.1.51",
48
- "@xenosystem/agent-interface-client": "0.1.51",
49
- "@xenosystem/agent-interface-hub-adapter": "0.1.51"
49
+ "@xenosystem/agent-interface-client": "0.1.51"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": "^19.0.0",
@@ -364,11 +364,53 @@
364
364
  durations READ the same (see the JSX); the moment there is other work the receipt returns.
365
365
  `Worked for` blurs out exactly as the square does, and the thought glides into its place:
366
366
  the same fold, one column further. */
367
+ /* RUN-IN: the trace begins on the SAME line, just right of `Thought for 2s >`, and wraps to the
368
+ full width underneath — so a one-sentence trace reads as one line rather than a header with a
369
+ near-empty row under it. A float is the only thing that does this: grid and flex both put a
370
+ child in its OWN track, which is what produced the second row. The header floats, the trace is
371
+ ordinary flow text, and the browser shortens the first line by the float's width for free.
372
+ The line stops being a grid here, so the `grid-area` assignments below no longer apply to it. */
367
373
  .xa-collapsed .xa-turn.xa-thought-only:not(.xa-live) .xa-line.xa-thoughtsolo {
368
- grid-template-columns: auto auto 1fr;
369
- grid-template-areas:
370
- "cur chev shots"
371
- "hang hang hang";
374
+ display: block;
375
+ }
376
+ /* 🔴 The float's HEIGHT decides how many lines are shortened. At the clock row's 22px it
377
+ overlapped the trace's second 16px line too, so line 1 also started at x=91.6 instead of
378
+ returning to the left margin — measured. Matching the float to the text's own line-height
379
+ means exactly ONE line runs in, and every line after it is full width. */
380
+ .xa-collapsed .xa-turn.xa-thought-only:not(.xa-live) .xa-line.xa-thoughtsolo > .xa-cur,
381
+ .xa-collapsed .xa-turn.xa-thought-only:not(.xa-live) .xa-line.xa-thoughtsolo > .xa-chev {
382
+ float: left;
383
+ height: 16px;
384
+ display: flex;
385
+ align-items: center;
386
+ }
387
+ .xa-collapsed .xa-turn.xa-thought-only:not(.xa-live) .xa-line.xa-thoughtsolo > .xa-chev {
388
+ margin-right: 8px; /* the gap the grid's column-gap used to give */
389
+ }
390
+ /* 🔴 The trace must NOT establish a block formatting context. `overflow: hidden` does, and a BFC
391
+ never overlaps a float — measured, the whole block indented to x=91.6 and sat beside the header
392
+ instead of wrapping under it. The fold's `overflow: hidden` therefore cannot live here; the
393
+ 0fr/1fr grid on `.xa-hang` is also a BFC, so the FOLD moves out to a wrapper and this element
394
+ stays plain flow text. */
395
+ .xa-collapsed .xa-turn.xa-thought-only:not(.xa-live) .xa-line.xa-thoughtsolo > .xa-hang {
396
+ display: block;
397
+ overflow: visible;
398
+ grid-template-rows: none;
399
+ transition: none;
400
+ }
401
+ .xa-collapsed .xa-turn.xa-thought-only:not(.xa-live) .xa-line.xa-thoughtsolo > .xa-hang > .xa-hangin {
402
+ overflow: visible;
403
+ padding: 0;
404
+ }
405
+ /* folded: the trace is simply not rendered, rather than a zero-height box that would still
406
+ shorten the first line */
407
+ .xa-collapsed .xa-turn.xa-thought-only:not(.xa-open) .xa-line.xa-thoughtsolo > .xa-hang { display: none; }
408
+ .xa-collapsed .xa-turn.xa-thought-only:not(.xa-live) .xa-line.xa-thoughtsolo > .xa-shots { float: right; }
409
+ /* the float must not escape the line into the reply below it */
410
+ .xa-collapsed .xa-turn.xa-thought-only:not(.xa-live) .xa-line.xa-thoughtsolo::after {
411
+ content: '';
412
+ display: block;
413
+ clear: both;
372
414
  }
373
415
  .xa-collapsed .xa-turn.xa-thought-only .xa-line.xa-thoughtsolo > .xa-read,
374
416
  .xa-collapsed .xa-turn.xa-thought-only .xa-line.xa-thoughtsolo > .xa-vr { display: none; }