@vibefield/rosetta-room 0.1.10 → 0.1.12
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 +65 -3
- package/dist/components/Transcript.js +6 -2
- package/dist/components/file-viewer/FileViewerDialog.js +3 -2
- package/dist/components/file-viewer/diff/parse.js +7 -0
- package/dist/components/file-viewer/kinds.d.ts +22 -0
- package/dist/components/file-viewer/kinds.js +57 -0
- package/dist/components/file-viewer/markdown/render.d.ts +7 -1
- package/dist/components/file-viewer/markdown/render.js +16 -12
- package/dist/components/file-viewer/registry.d.ts +2 -2
- package/dist/components/file-viewer/registry.js +20 -59
- package/dist/components/file-viewer/views/DiffBody.js +7 -2
- package/dist/components/git/CommitViewer.js +3 -2
- package/dist/components/transcript/Activity.d.ts +10 -4
- package/dist/components/transcript/Activity.js +36 -11
- package/dist/components/transcript/Anchor.js +3 -2
- package/dist/components/transcript/Compaction.d.ts +9 -0
- package/dist/components/transcript/Compaction.js +10 -5
- package/dist/components/transcript/Document.js +150 -208
- package/dist/components/transcript/PromptJump.js +28 -8
- package/dist/components/transcript/Prose.d.ts +5 -1
- package/dist/components/transcript/Prose.js +7 -6
- package/dist/components/transcript/ReadingBlocks.d.ts +71 -0
- package/dist/components/transcript/ReadingBlocks.js +279 -0
- package/dist/components/transcript/activity-plan.d.ts +38 -7
- package/dist/components/transcript/activity-plan.js +198 -28
- package/dist/components/transcript/attachment-file-source.d.ts +1 -2
- package/dist/components/transcript/attachment-file-source.js +7 -5
- package/dist/components/transcript/disclosure-state.d.ts +2 -0
- package/dist/components/transcript/disclosure-state.js +6 -2
- package/dist/components/transcript/document-model.js +53 -9
- package/dist/components/transcript/document-plan.js +263 -98
- package/dist/components/transcript/reading-identity.d.ts +14 -1
- package/dist/components/transcript/reading-identity.js +126 -10
- package/dist/components/worktree/WorktreeColumn.js +12 -1
- package/dist/components/worktree/WorktreeList.d.ts +8 -2
- package/dist/components/worktree/WorktreeList.js +200 -5
- package/dist/components/worktree/worktree-ledger.d.ts +40 -0
- package/dist/components/worktree/worktree-ledger.js +68 -0
- package/dist/conversation/ConversationGallery.d.ts +11 -0
- package/dist/conversation/ConversationGallery.js +14 -0
- package/dist/conversation/ConversationMedia.d.ts +44 -0
- package/dist/conversation/ConversationMedia.js +210 -0
- package/dist/conversation/ConversationProse.d.ts +13 -0
- package/dist/conversation/ConversationProse.js +6 -0
- package/dist/conversation/ConversationRunRows.d.ts +57 -0
- package/dist/conversation/ConversationRunRows.js +84 -0
- package/dist/conversation/ConversationTurnView.d.ts +64 -0
- package/dist/conversation/ConversationTurnView.js +169 -0
- package/dist/conversation/ConversationView.d.ts +3 -0
- package/dist/conversation/ConversationView.js +257 -0
- package/dist/conversation/feed-reads.d.ts +36 -0
- package/dist/conversation/feed-reads.js +155 -0
- package/dist/conversation/feed.d.ts +106 -0
- package/dist/conversation/feed.js +884 -0
- package/dist/conversation/index.d.ts +11 -0
- package/dist/conversation/index.js +25 -0
- package/dist/conversation/model.d.ts +108 -0
- package/dist/conversation/model.js +257 -0
- package/dist/conversation/ports.d.ts +194 -0
- package/dist/conversation/ports.js +9 -0
- package/dist/conversation/rosetta-client.d.ts +8 -0
- package/dist/conversation/rosetta-client.js +1 -0
- package/dist/conversation/use-conversation-feed.d.ts +16 -0
- package/dist/conversation/use-conversation-feed.js +41 -0
- package/dist/conversation/use-conversation-window.d.ts +50 -0
- package/dist/conversation/use-conversation-window.js +336 -0
- package/dist/conversation/words.d.ts +51 -0
- package/dist/conversation/words.js +79 -0
- package/dist/fixtures/conversation.d.ts +34 -0
- package/dist/fixtures/conversation.js +723 -0
- package/dist/fixtures/index.d.ts +2 -0
- package/dist/fixtures/index.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/lib/hooks.js +6 -1
- package/dist/lib/session-leases.d.ts +11 -8
- package/dist/lib/transcript/collaboration.js +53 -19
- package/dist/lib/transcript/head-of-document.js +9 -3
- package/dist/lib/transcript/index.d.ts +1 -1
- package/dist/lib/transcript/index.js +1 -1
- package/dist/lib/transcript/prompt-jump.d.ts +2 -0
- package/dist/lib/transcript/prompt-jump.js +5 -1
- package/dist/lib/transcript/sittings.d.ts +2 -1
- package/dist/lib/transcript/sittings.js +72 -10
- package/dist/lib/transcript/tail-state.d.ts +9 -0
- package/dist/lib/transcript/tail-state.js +25 -1
- package/dist/lib/transcript/turns.d.ts +5 -0
- package/dist/lib/transcript/turns.js +221 -57
- package/dist/lib/transcript/use-transcript-tail.js +17 -3
- package/dist/lib/transcript/vocabulary.d.ts +2 -1
- package/dist/lib/transcript/vocabulary.js +11 -1
- package/dist/parts-context.d.ts +25 -0
- package/dist/parts-context.js +32 -0
- package/dist/ports.d.ts +36 -0
- package/dist/room-context.d.ts +1 -2
- package/dist/room-context.js +11 -9
- package/dist/styles/conversation-turn.css +147 -0
- package/dist/styles/conversation.css +45 -0
- package/dist/styles/room.css +102 -12
- package/dist/styles/transcript.css +11 -2
- package/package.json +9 -4
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/* ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
+
One turn of the conversation view (@vibefield/rosetta-room/conversation).
|
|
3
|
+
Scoped to the view's root (.tr-conv). Sizes come from the host's
|
|
4
|
+
--tr-conv-* tokens, each with its default here; colours and fonts are the
|
|
5
|
+
--vf-* names the room already reads, and nothing else.
|
|
6
|
+
═══════════════════════════════════════════════════════════════════════ */
|
|
7
|
+
.tr-conv {
|
|
8
|
+
--tr-conv-text-size: var(--tr-conv-text, 14px);
|
|
9
|
+
--tr-conv-quiet-size: var(--tr-conv-quiet, 12.5px);
|
|
10
|
+
--tr-conv-lead-size: var(--tr-conv-lead, 28px);
|
|
11
|
+
--tr-conv-lead-space: var(--tr-conv-lead-gap, 12px);
|
|
12
|
+
--tr-conv-run-lead-space: var(--tr-conv-run-lead-gap, 6px);
|
|
13
|
+
--tr-conv-media-width: var(--tr-conv-media-max, 420px);
|
|
14
|
+
--tr-conv-media-round: var(--tr-conv-media-radius, 16px);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.tr-conv__turn { display: flex; flex-direction: column; gap: 10px; min-width: 0; font-size: var(--tr-conv-text-size); line-height: 1.55; color: var(--vf-text-primary); }
|
|
18
|
+
|
|
19
|
+
/* the person's prompt: a bubble on their side, plain words as typed */
|
|
20
|
+
.tr-conv__you { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 0; }
|
|
21
|
+
.tr-conv__bubble {
|
|
22
|
+
margin: 0; max-width: var(--tr-conv-bubble-max, 76%); padding: var(--tr-conv-bubble-pad, 9px 14px);
|
|
23
|
+
border-radius: var(--tr-conv-bubble-radius, 18px); background: var(--vf-fill); color: var(--vf-text-primary);
|
|
24
|
+
white-space: pre-wrap; overflow-wrap: anywhere;
|
|
25
|
+
}
|
|
26
|
+
.tr-conv__you .tr-attachments { max-width: var(--tr-conv-bubble-max, 76%); margin-top: 0; }
|
|
27
|
+
|
|
28
|
+
/* the agent's side: a gutter for the host's lead when it gives one */
|
|
29
|
+
.tr-conv__agent { display: block; min-width: 0; }
|
|
30
|
+
.tr-conv__agent[data-gutter] { display: grid; grid-template-columns: var(--tr-conv-lead-size) minmax(0, 1fr); column-gap: var(--tr-conv-lead-space); }
|
|
31
|
+
.tr-conv__lead { width: var(--tr-conv-lead-size); min-height: 1px; }
|
|
32
|
+
.tr-conv__parts { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
|
|
33
|
+
|
|
34
|
+
/* a quiet line: a request, a compaction, how a turn ended, the steps left out */
|
|
35
|
+
.tr-conv__quiet, .tr-conv__outcome {
|
|
36
|
+
margin: 0; color: var(--vf-text-tertiary); font-size: var(--tr-conv-quiet-size); line-height: 1.45;
|
|
37
|
+
}
|
|
38
|
+
.tr-conv__outcome[data-outcome="failed"] { color: var(--vf-red); }
|
|
39
|
+
.tr-conv__agent[data-gutter] ~ .tr-conv__outcome { margin-left: calc(var(--tr-conv-lead-size) + var(--tr-conv-lead-space)); }
|
|
40
|
+
|
|
41
|
+
/* a run: one line that opens in place, its words between the host's lead (when it gives one) and the chevron */
|
|
42
|
+
.tr-conv__run {
|
|
43
|
+
display: inline-flex; align-items: center; gap: 0; align-self: flex-start; max-width: 100%;
|
|
44
|
+
margin: 0; padding: 2px 0; border: 0; background: none; color: var(--vf-text-tertiary);
|
|
45
|
+
font: inherit; font-size: var(--tr-conv-quiet-size); line-height: 1.45; text-align: left; cursor: pointer;
|
|
46
|
+
}
|
|
47
|
+
.tr-conv__run:hover { color: var(--vf-text-secondary); }
|
|
48
|
+
.tr-conv__run:focus-visible, .tr-conv summary:focus-visible { outline: 2px solid var(--vf-select); outline-offset: 2px; border-radius: 4px; }
|
|
49
|
+
.tr-conv__run-lead { display: inline-flex; align-items: center; flex: none; margin-right: var(--tr-conv-run-lead-space); }
|
|
50
|
+
.tr-conv__run-words { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
51
|
+
.tr-conv__run > .tr-conv__chev { margin-left: 6px; }
|
|
52
|
+
.tr-conv__chev { display: inline-grid; width: 12px; height: 12px; flex: none; transition: transform 140ms var(--vf-ease-island, ease); }
|
|
53
|
+
.tr-conv__chev svg { width: 12px; height: 12px; }
|
|
54
|
+
.tr-conv__run[aria-expanded="true"] .tr-conv__chev, .tr-conv__compaction[open] > summary .tr-conv__chev { transform: rotate(90deg); }
|
|
55
|
+
.tr-conv__part { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
|
|
56
|
+
|
|
57
|
+
.tr-conv__rows { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 1px solid var(--vf-hairline); }
|
|
58
|
+
.tr-conv__rows ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
|
|
59
|
+
.tr-conv__rows li { display: flex; gap: 8px; min-width: 0; color: var(--vf-text-secondary); font-size: var(--tr-conv-quiet-size); line-height: 1.45; }
|
|
60
|
+
.tr-conv__row-words { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
61
|
+
.tr-conv__row-detail { flex: none; color: var(--vf-text-faint); }
|
|
62
|
+
.tr-conv__rows-status { margin: 0; color: var(--vf-text-faint); font-size: var(--tr-conv-quiet-size); }
|
|
63
|
+
.tr-conv__rows-earlier {
|
|
64
|
+
align-self: flex-start; padding: 0; border: 0; background: none; color: var(--vf-text-tertiary);
|
|
65
|
+
font: inherit; font-size: var(--tr-conv-quiet-size); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* a compaction's line, opening to its summary */
|
|
69
|
+
.tr-conv__compaction > summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; }
|
|
70
|
+
.tr-conv__compaction > summary::-webkit-details-marker { display: none; }
|
|
71
|
+
.tr-conv__compaction .tr-compaction__body { margin-top: 6px; padding-left: 18px; border-left: 1px solid var(--vf-hairline); font-size: var(--tr-conv-quiet-size); color: var(--vf-text-secondary); }
|
|
72
|
+
.tr-conv__compaction .tr-compaction__byline { display: flex; gap: 10px; color: var(--vf-text-faint); }
|
|
73
|
+
.tr-conv__compaction .tr-compaction__byline button, .tr-conv__compaction .tr-compaction__status button {
|
|
74
|
+
padding: 0; border: 0; background: none; color: var(--vf-text-tertiary); font: inherit; text-decoration: underline; cursor: pointer;
|
|
75
|
+
}
|
|
76
|
+
.tr-conv__compaction .tr-compaction__status { margin: 0; color: var(--vf-text-faint); }
|
|
77
|
+
|
|
78
|
+
/* a reply: bare words on the measure, with its own media under them. The words keep the turn's size and leading
|
|
79
|
+
themselves, so a host's reply still being written (drawn with the same prose, outside any turn) looks the same */
|
|
80
|
+
.tr-conv__reply { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
|
|
81
|
+
.tr-conv .tr-conv__prose { font-size: var(--tr-conv-text-size); line-height: 1.55; }
|
|
82
|
+
.tr-conv .tr-prose { color: var(--vf-text-primary); overflow-wrap: anywhere; }
|
|
83
|
+
.tr-conv .tr-prose p { margin: 0; }
|
|
84
|
+
.tr-conv .tr-prose p + p, .tr-conv .tr-prose p + ul, .tr-conv .tr-prose p + ol,
|
|
85
|
+
.tr-conv .tr-prose ul + p, .tr-conv .tr-prose ol + p { margin-top: 10px; }
|
|
86
|
+
.tr-conv .tr-prose ul, .tr-conv .tr-prose ol { margin: 0; padding-left: 22px; }
|
|
87
|
+
.tr-conv .tr-prose li { margin-bottom: 4px; }
|
|
88
|
+
.tr-conv .tr-prose li::marker { color: var(--vf-text-tertiary); }
|
|
89
|
+
.tr-conv .tr-prose strong { font-weight: 600; }
|
|
90
|
+
.tr-conv .tr-prose h1, .tr-conv .tr-prose h2, .tr-conv .tr-prose h3,
|
|
91
|
+
.tr-conv .tr-prose h4, .tr-conv .tr-prose h5, .tr-conv .tr-prose h6 { margin: 16px 0 6px; font-size: inherit; font-weight: 600; line-height: 1.3; }
|
|
92
|
+
.tr-conv .tr-prose > :first-child { margin-top: 0; }
|
|
93
|
+
.tr-conv .tr-prose code { padding: 1px 4px; border-radius: 4px; background: var(--vf-fill); font-family: var(--vf-font-mono); font-size: 0.86em; }
|
|
94
|
+
.tr-conv .tr-prose a { color: var(--vf-cyan); text-decoration: none; }
|
|
95
|
+
.tr-conv .tr-prose a:hover { text-decoration: underline; }
|
|
96
|
+
.tr-conv .tr-prose .ah-md__deadlink, .tr-conv .tr-prose .ah-md__image { color: var(--vf-text-secondary); }
|
|
97
|
+
.tr-conv .tr-prose blockquote { margin: 10px 0; padding: 2px 0 2px 12px; border-left: 2px solid var(--vf-hairline-strong); color: var(--vf-text-secondary); }
|
|
98
|
+
.tr-conv .tr-prose hr { margin: 14px 0; border: 0; border-top: 1px solid var(--vf-hairline); }
|
|
99
|
+
.tr-conv .tr-prose .ah-md__tablebox { margin: 10px 0; overflow-x: auto; }
|
|
100
|
+
.tr-conv .tr-prose table { border-collapse: collapse; width: 100%; font-size: var(--tr-conv-quiet-size); }
|
|
101
|
+
.tr-conv .tr-prose th, .tr-conv .tr-prose td { padding: 4px 10px 4px 0; border-bottom: 1px solid var(--vf-hairline); text-align: left; vertical-align: top; }
|
|
102
|
+
.tr-conv .tr-code { margin: 10px 0 0; border-radius: 10px; background: var(--vf-fill); overflow: hidden; }
|
|
103
|
+
.tr-conv .tr-code__bar { display: flex; align-items: center; height: 24px; padding: 0 12px; border-bottom: 1px solid var(--vf-hairline); color: var(--vf-text-tertiary); font-size: 10.5px; }
|
|
104
|
+
.tr-conv .tr-code__bar button { margin-left: auto; padding: 0; border: 0; background: none; color: var(--vf-text-tertiary); font: inherit; cursor: pointer; }
|
|
105
|
+
.tr-conv .tr-code pre { margin: 0; padding: 10px 12px; overflow-x: auto; color: var(--vf-text-secondary); font-family: var(--vf-font-mono); font-size: 12px; line-height: 1.5; }
|
|
106
|
+
.tr-conv .ah-syntax [data-t="comment"] { color: var(--vf-text-faint); font-style: italic; }
|
|
107
|
+
.tr-conv .ah-syntax [data-t="operator"] { color: var(--vf-text-tertiary); }
|
|
108
|
+
|
|
109
|
+
/* media: one picture as wide as the reply, up to the host's measure */
|
|
110
|
+
.tr-conv-media { margin: 0; min-width: 0; }
|
|
111
|
+
.tr-conv-media[data-count="1"] { width: min(100%, var(--tr-conv-media-width)); }
|
|
112
|
+
.tr-conv-media__open {
|
|
113
|
+
display: block; width: 100%; padding: 0; border: 0; border-radius: var(--tr-conv-media-round); overflow: hidden;
|
|
114
|
+
aspect-ratio: var(--tr-conv-media-aspect, 4 / 3); background: var(--vf-fill); box-shadow: inset 0 0 0 1px var(--vf-hairline);
|
|
115
|
+
cursor: zoom-in;
|
|
116
|
+
}
|
|
117
|
+
.tr-conv-media__open img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
|
118
|
+
.tr-conv-media__open:focus-visible { outline: 2px solid var(--vf-select); outline-offset: 2px; }
|
|
119
|
+
.tr-conv-media__missing {
|
|
120
|
+
display: grid; place-items: center; gap: 6px; aspect-ratio: var(--tr-conv-media-aspect, 4 / 3); padding: 12px;
|
|
121
|
+
border: 1px dashed var(--vf-hairline-strong); border-radius: var(--tr-conv-media-round); color: var(--vf-text-tertiary);
|
|
122
|
+
font-size: var(--tr-conv-quiet-size); text-align: center;
|
|
123
|
+
}
|
|
124
|
+
.tr-conv-media__missing button { padding: 0; border: 0; background: none; color: var(--vf-text-secondary); font: inherit; text-decoration: underline; cursor: pointer; }
|
|
125
|
+
.tr-conv-media .tr-attachments { margin-top: 0; }
|
|
126
|
+
|
|
127
|
+
/* a video alone: its first frame, its length and size, played in place */
|
|
128
|
+
.tr-conv-video { margin: 0; width: min(100%, var(--tr-conv-media-width)); min-width: 0; }
|
|
129
|
+
.tr-conv-video__stage {
|
|
130
|
+
position: relative; overflow: hidden; border-radius: var(--tr-conv-media-round);
|
|
131
|
+
aspect-ratio: var(--tr-video-aspect, 1.7778); background: var(--vf-fill); box-shadow: inset 0 0 0 1px var(--vf-hairline);
|
|
132
|
+
}
|
|
133
|
+
.tr-conv-video__stage video { display: block; width: 100%; height: 100%; object-fit: contain; }
|
|
134
|
+
.tr-conv-video__play {
|
|
135
|
+
position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0;
|
|
136
|
+
background: none; color: var(--vf-text-primary); cursor: pointer;
|
|
137
|
+
}
|
|
138
|
+
.tr-conv-video__play svg { filter: drop-shadow(0 1px 2px var(--vf-hairline-strong)); }
|
|
139
|
+
.tr-conv-video__play:focus-visible { outline: 2px solid var(--vf-select); outline-offset: -2px; }
|
|
140
|
+
.tr-conv-video__facts {
|
|
141
|
+
margin-top: 6px; color: var(--vf-text-tertiary); font-size: var(--tr-conv-quiet-size); font-variant-numeric: tabular-nums;
|
|
142
|
+
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
143
|
+
}
|
|
144
|
+
.tr-conv-video .tr-att__video { width: 100%; margin: 0; }
|
|
145
|
+
.tr-conv-video .tr-att__video .tr-att__tile { height: auto; aspect-ratio: var(--tr-video-aspect, 1.7778); border-radius: var(--tr-conv-media-round); }
|
|
146
|
+
|
|
147
|
+
@media (prefers-reduced-motion: reduce) { .tr-conv__chev { transition: none; } }
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
+
The conversation view's stylesheet (`@vibefield/rosetta-room/styles/conversation.css`).
|
|
3
|
+
Import it once, after the host's tokens. Every rule is scoped to the view's
|
|
4
|
+
root (.tr-conv). Sizes are the host's --tr-conv-* tokens, each with its
|
|
5
|
+
default; colours and fonts are the --vf-* names the room already reads.
|
|
6
|
+
It imports no sheet of the room's other views and none of mille's: the
|
|
7
|
+
parts a turn draws (the rail, a long message's fade) bring their own
|
|
8
|
+
sheets beside them, and the room's gallery brings its sheet when it is
|
|
9
|
+
loaded.
|
|
10
|
+
═══════════════════════════════════════════════════════════════════════ */
|
|
11
|
+
@import "./conversation-turn.css";
|
|
12
|
+
|
|
13
|
+
.tr-conv {
|
|
14
|
+
position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0;
|
|
15
|
+
color: var(--vf-text-primary); font-family: var(--vf-font-sans);
|
|
16
|
+
}
|
|
17
|
+
.tr-conv__scroll { position: relative; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overflow-anchor: none; overscroll-behavior: contain; }
|
|
18
|
+
.tr-conv__list { position: relative; width: 100%; }
|
|
19
|
+
.tr-conv__row { position: absolute; top: 0; left: 0; width: 100%; box-sizing: border-box; }
|
|
20
|
+
.tr-conv__cell { max-width: var(--tr-conv-column, 640px); margin: 0 auto; min-width: 0; }
|
|
21
|
+
|
|
22
|
+
/* a day, and the line between two sessions of the chain */
|
|
23
|
+
.tr-conv__day {
|
|
24
|
+
display: flex; justify-content: center; padding: 4px 0;
|
|
25
|
+
color: var(--vf-text-tertiary); font-size: var(--tr-conv-quiet, 12.5px); font-variant-numeric: tabular-nums;
|
|
26
|
+
}
|
|
27
|
+
.tr-conv__boundary { height: 1px; margin: 6px 0; background: var(--vf-hairline); }
|
|
28
|
+
|
|
29
|
+
/* a turn not read yet: its place, at its remembered or estimated height */
|
|
30
|
+
.tr-conv__placeholder { border-radius: 12px; background: var(--vf-fill); opacity: 0.45; }
|
|
31
|
+
|
|
32
|
+
/* what the view says when it holds nothing to draw, and how it is doing */
|
|
33
|
+
.tr-conv__state {
|
|
34
|
+
padding: 24px 0; color: var(--vf-text-secondary); font-size: var(--tr-conv-quiet, 12.5px); text-align: center;
|
|
35
|
+
}
|
|
36
|
+
.tr-conv__state p { margin: 0; }
|
|
37
|
+
.tr-conv__why { color: var(--vf-text-tertiary); }
|
|
38
|
+
.tr-conv__scroll > .tr-conv__state { max-width: var(--tr-conv-column, 640px); margin: 0 auto; }
|
|
39
|
+
|
|
40
|
+
/* a part's receipt (Copied), said and gone */
|
|
41
|
+
.tr-conv__receipt {
|
|
42
|
+
position: absolute; left: 50%; bottom: 12px; margin: 0; transform: translateX(-50%); pointer-events: none;
|
|
43
|
+
color: var(--vf-text-secondary); font-size: var(--tr-conv-quiet, 12.5px);
|
|
44
|
+
}
|
|
45
|
+
.tr-conv__receipt:empty { display: none; }
|
package/dist/styles/room.css
CHANGED
|
@@ -652,7 +652,13 @@
|
|
|
652
652
|
Files take 70% of the area below the tabs and worktrees take 30%, including
|
|
653
653
|
their heading. Both scroll independently; expanding a folder never moves
|
|
654
654
|
the divider. With no sibling worktrees, files take the whole area. */
|
|
655
|
-
|
|
655
|
+
/* One column that is exactly the rail's width. Left to size itself, the
|
|
656
|
+
column grows to its widest row (a long branch name), and the rail then
|
|
657
|
+
cuts every row's right edge: the size, the head's sum. */
|
|
658
|
+
.ah-railbody {
|
|
659
|
+
flex: 1; min-height: 0; display: grid;
|
|
660
|
+
grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr);
|
|
661
|
+
}
|
|
656
662
|
.ah-railbody[data-split] { grid-template-rows: minmax(0, 7fr) minmax(0, 3fr); }
|
|
657
663
|
.ah-railtree { height: 100%; min-height: 0; padding: 6px 6px 0; }
|
|
658
664
|
.ah-railtree[data-mille-theme] [role="tree"] {
|
|
@@ -663,21 +669,101 @@
|
|
|
663
669
|
/* the engine lags a project switch: the old tree dims rather than lies */
|
|
664
670
|
.ah-railtree[data-stale] { opacity: 0.45; transition: opacity 160ms; }
|
|
665
671
|
/* Keep the worktree heading fixed above its scrollable list. */
|
|
666
|
-
.ah-railfoot { display: flex; flex-direction: column; min-height: 0; }
|
|
672
|
+
.ah-railfoot { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
|
|
667
673
|
.ah-railfoot__list {
|
|
668
674
|
flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin;
|
|
669
675
|
padding: 0 6px var(--ah-scroll-foot, 32px);
|
|
670
676
|
scroll-padding-bottom: var(--ah-scroll-foot, 32px);
|
|
671
677
|
}
|
|
672
|
-
.ah-
|
|
673
|
-
|
|
678
|
+
.ah-railsplit {
|
|
679
|
+
flex: none; margin: 12px 12px 4px; padding-top: 12px; border-top: 1px solid var(--vf-hairline);
|
|
680
|
+
display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0;
|
|
681
|
+
}
|
|
682
|
+
.ah-railsplit .ah-eyebrow { flex: 0 1 auto; min-width: 0; }
|
|
683
|
+
.ah-railsplit__sum {
|
|
684
|
+
flex: none; color: var(--vf-text-faint); font-family: var(--vf-font-mono); font-size: 10px;
|
|
685
|
+
white-space: nowrap;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
/* The worktree ledger. A row is a name with its size at the edge, over a bar
|
|
689
|
+
as wide as the row: every bar starts and ends on the same two lines, so
|
|
690
|
+
their lengths compare, and every size ends on the same edge. The bar is
|
|
691
|
+
neutral — hue says which project or which state (DESIGN.md §8), and a share
|
|
692
|
+
of disk is neither. The row is a button: a press copies its name. */
|
|
674
693
|
.ah-worktree {
|
|
675
|
-
display:
|
|
676
|
-
|
|
677
|
-
|
|
694
|
+
display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline;
|
|
695
|
+
column-gap: 12px; row-gap: 5px;
|
|
696
|
+
width: 100%; padding: 6px 9px 7px; border: 0; border-radius: 9px; background: transparent;
|
|
697
|
+
color: var(--vf-text-secondary); font: inherit; font-size: 11.5px; line-height: 15px;
|
|
698
|
+
text-align: left; cursor: pointer;
|
|
699
|
+
}
|
|
700
|
+
.ah-worktree:hover { background: var(--vf-fill); }
|
|
701
|
+
.ah-worktree:focus-visible { outline: 2px solid var(--vf-select); outline-offset: -2px; }
|
|
702
|
+
.ah-worktree[data-open] { color: var(--vf-text-primary); }
|
|
703
|
+
.ah-worktree[data-gone] { color: var(--vf-text-faint); }
|
|
704
|
+
.ah-worktree__name { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
|
|
705
|
+
.ah-worktree__label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
706
|
+
/* the open one's mark: the room's own dot, before the name */
|
|
707
|
+
.ah-worktree[data-open] .ah-worktree__label::before {
|
|
708
|
+
content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 6px 1px 0;
|
|
709
|
+
border-radius: 50%; background: var(--vf-select); vertical-align: middle;
|
|
710
|
+
}
|
|
711
|
+
.ah-worktree code {
|
|
712
|
+
flex: none; font-family: var(--vf-font-mono); font-size: 10px; color: var(--vf-text-faint);
|
|
713
|
+
font-variant-numeric: tabular-nums;
|
|
714
|
+
}
|
|
715
|
+
.ah-worktree__copy {
|
|
716
|
+
flex: none; align-self: center; display: grid; place-items: center; width: 11px; height: 11px;
|
|
717
|
+
color: var(--vf-text-faint); opacity: 0;
|
|
718
|
+
}
|
|
719
|
+
.ah-worktree__copy svg { width: 11px; height: 11px; display: block; }
|
|
720
|
+
.ah-worktree:hover .ah-worktree__copy,
|
|
721
|
+
.ah-worktree:focus-visible .ah-worktree__copy { opacity: 1; }
|
|
722
|
+
.ah-worktree__size {
|
|
723
|
+
justify-self: end; font-family: var(--vf-font-mono); font-size: 10.5px;
|
|
724
|
+
color: var(--vf-text-tertiary); font-variant-numeric: tabular-nums; white-space: nowrap;
|
|
725
|
+
}
|
|
726
|
+
.ah-worktree[data-open] .ah-worktree__size { color: var(--vf-text-secondary); }
|
|
727
|
+
.ah-worktree[data-gone] .ah-worktree__size { color: var(--vf-text-faint); }
|
|
728
|
+
.ah-worktree__bar {
|
|
729
|
+
grid-column: 1 / -1; display: block; height: 3px; border-radius: 2px; overflow: hidden;
|
|
730
|
+
background: var(--vf-fill);
|
|
731
|
+
}
|
|
732
|
+
.ah-worktree:hover .ah-worktree__bar { background: var(--vf-hairline-strong); }
|
|
733
|
+
.ah-worktree__bar > span {
|
|
734
|
+
display: block; height: 100%; border-radius: 2px; background: var(--vf-text-tertiary);
|
|
735
|
+
transition: width 240ms var(--vf-ease-island);
|
|
736
|
+
}
|
|
737
|
+
.ah-worktree[data-open] .ah-worktree__bar > span { background: var(--vf-text-secondary); }
|
|
738
|
+
|
|
739
|
+
/* Being weighed: the bar's track and the size's place carry a slow sheen, so
|
|
740
|
+
a row that is owed a figure says so. Never a blank, and never a spinner per
|
|
741
|
+
row: thirty of those in a column is noise. */
|
|
742
|
+
.ah-worktree__wait {
|
|
743
|
+
display: block; width: 34px; height: 7px; border-radius: 4px; background: var(--vf-fill);
|
|
744
|
+
}
|
|
745
|
+
.ah-worktree[data-weighing] .ah-worktree__bar,
|
|
746
|
+
.ah-worktree[data-weighing] .ah-worktree__wait {
|
|
747
|
+
background:
|
|
748
|
+
linear-gradient(
|
|
749
|
+
90deg,
|
|
750
|
+
transparent 0%,
|
|
751
|
+
color-mix(in srgb, var(--vf-text-primary) 16%, transparent) 50%,
|
|
752
|
+
transparent 100%
|
|
753
|
+
)
|
|
754
|
+
0 0 / 45% 100% no-repeat,
|
|
755
|
+
var(--vf-fill);
|
|
756
|
+
animation: ah-weigh 1.5s ease-in-out infinite;
|
|
757
|
+
}
|
|
758
|
+
@keyframes ah-weigh {
|
|
759
|
+
from { background-position: -45% 0, 0 0; }
|
|
760
|
+
to { background-position: 145% 0, 0 0; }
|
|
761
|
+
}
|
|
762
|
+
@media (prefers-reduced-motion: reduce) {
|
|
763
|
+
.ah-worktree[data-weighing] .ah-worktree__bar,
|
|
764
|
+
.ah-worktree[data-weighing] .ah-worktree__wait { animation: none; background: var(--vf-hairline-strong); }
|
|
765
|
+
.ah-worktree__bar > span { transition: none; }
|
|
678
766
|
}
|
|
679
|
-
.ah-worktree code { font-size: 10px; color: var(--vf-text-faint); font-variant-numeric: tabular-nums; }
|
|
680
|
-
.ah-worktree code[data-dirty] { color: var(--vf-cyan); }
|
|
681
767
|
|
|
682
768
|
/* a receipt, so a copy or an act is never silent */
|
|
683
769
|
.ah-receipt {
|
|
@@ -1267,8 +1353,10 @@
|
|
|
1267
1353
|
|
|
1268
1354
|
/* A diff's rows are as wide as the column, not as wide as their longest
|
|
1269
1355
|
line: the ground behind an added line says "this whole line is new", and a
|
|
1270
|
-
ground that stops at the text says it about the text only.
|
|
1271
|
-
|
|
1356
|
+
ground that stops at the text says it about the text only. A line longer
|
|
1357
|
+
than the column wraps inside its row, as the code view's does, and the row
|
|
1358
|
+
grows with it (DiffBody.tsx measures each row), so the ground covers every
|
|
1359
|
+
visual line of it. */
|
|
1272
1360
|
.ah-diff .ah-code__sizer { width: 100%; }
|
|
1273
1361
|
.ah-diff .ah-code__line { width: 100%; }
|
|
1274
1362
|
.ah-diff .ah-code__line code { flex: 1; min-width: 0; }
|
|
@@ -1295,7 +1383,9 @@
|
|
|
1295
1383
|
flex: none; width: 16px; text-align: center; user-select: none;
|
|
1296
1384
|
color: var(--vf-text-faint);
|
|
1297
1385
|
}
|
|
1298
|
-
|
|
1386
|
+
/* The gutters and the mark sit on a wrapped line's FIRST visual line: a row
|
|
1387
|
+
stretches its children (the code view's own alignment), it does not centre
|
|
1388
|
+
them. Centred, a wrapped line's numbers would float beside its middle. */
|
|
1299
1389
|
.ah-diff .ah-code__line[data-diff="add"] { background: color-mix(in srgb, var(--vf-green) 11%, transparent); }
|
|
1300
1390
|
.ah-diff .ah-code__line[data-diff="del"] { background: color-mix(in srgb, var(--vf-red) 11%, transparent); }
|
|
1301
1391
|
.ah-diff .ah-code__line[data-diff="add"] .ah-diff__mark { color: var(--vf-green); }
|
|
@@ -259,11 +259,20 @@ button.tr-anchor { border: 0; background: none; font-weight: 400; }
|
|
|
259
259
|
z-index: 4; opacity: 0; transition: opacity 160ms ease;
|
|
260
260
|
}
|
|
261
261
|
.tr-seg:hover > .tr-acts, .tr-seg:focus-within > .tr-acts { opacity: 1; }
|
|
262
|
+
/* The act is sticky only while it is drawn (2026-11-29, the reader's arrival
|
|
263
|
+
cost): the browser holds every sticky box to its scroller after each layout,
|
|
264
|
+
and a long document's hidden acts, one a reply, made one arriving row pay for
|
|
265
|
+
all of them. Hidden, it is invisible wherever it sits; on leaving it stays
|
|
266
|
+
pinned until its fade has run. */
|
|
262
267
|
.tr-acts button {
|
|
263
|
-
position:
|
|
268
|
+
position: static; top: 12px; flex: none; white-space: nowrap;
|
|
264
269
|
height: 24px; padding: 0 9px; border: 1px solid var(--vf-hairline); border-radius: 999px;
|
|
265
270
|
background: var(--vf-chrome-solid); color: var(--vf-text-secondary); font-size: 10.5px;
|
|
266
|
-
cursor: pointer; transition: transform 140ms ease, background-color 160ms ease;
|
|
271
|
+
cursor: pointer; transition: transform 140ms ease, background-color 160ms ease, position 0s linear 160ms;
|
|
272
|
+
transition-behavior: allow-discrete;
|
|
273
|
+
}
|
|
274
|
+
.tr-seg:hover > .tr-acts button, .tr-seg:focus-within > .tr-acts button {
|
|
275
|
+
position: sticky; transition: transform 140ms ease, background-color 160ms ease, position 0s;
|
|
267
276
|
}
|
|
268
277
|
.tr-acts button:hover { background: var(--vf-fill); color: var(--vf-text-primary); }
|
|
269
278
|
.tr-acts button:active { transform: scale(0.94); }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibefield/rosetta-room",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "rosetta's History room as a package: the projects, sessions and worktree columns, the panels and charts, and the transcript, behind injected ports. It dials nothing.",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -14,7 +14,12 @@
|
|
|
14
14
|
"types": "./dist/fixtures/index.d.ts",
|
|
15
15
|
"import": "./dist/fixtures/index.js"
|
|
16
16
|
},
|
|
17
|
-
"./
|
|
17
|
+
"./conversation": {
|
|
18
|
+
"types": "./dist/conversation/index.d.ts",
|
|
19
|
+
"import": "./dist/conversation/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./styles/room.css": "./dist/styles/history-room.css",
|
|
22
|
+
"./styles/conversation.css": "./dist/styles/conversation.css"
|
|
18
23
|
},
|
|
19
24
|
"sideEffects": [
|
|
20
25
|
"*.css"
|
|
@@ -35,8 +40,8 @@
|
|
|
35
40
|
"@radix-ui/react-context-menu": "^2.3.7",
|
|
36
41
|
"@radix-ui/react-dialog": "^1.1.23",
|
|
37
42
|
"@radix-ui/react-tooltip": "^1.2.16",
|
|
38
|
-
"@vibefield/rosetta-protocol": "^0.1.
|
|
39
|
-
"@tanstack/react-virtual": "^3.14.
|
|
43
|
+
"@vibefield/rosetta-protocol": "^0.1.12",
|
|
44
|
+
"@tanstack/react-virtual": "^3.14.17",
|
|
40
45
|
"@vibecook/mille": "^0.3.4",
|
|
41
46
|
"@vibecook/mille-ui": "^0.3.4"
|
|
42
47
|
},
|