clavarium 0.2.266-next.1 → 0.2.269-next.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/config/launch/claude-code.sh +6 -2
- package/config/launch/codex.sh +2 -2
- package/config/launch/screen-watch.mjs +32 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/web/app.js +42 -0
- package/web/index.html +5 -0
- package/web/style.css +33 -9
|
@@ -53,10 +53,14 @@ if [ -f "$chat/server.mjs" ]; then
|
|
|
53
53
|
|| echo "launch: the chat will not say when Claude Code works without a word" >&2
|
|
54
54
|
fi
|
|
55
55
|
# WHAT ITS SCREEN ASKS (02-11), read by the generic screen-watch -- Claude Code's own words, here and only
|
|
56
|
-
# here: its sign-in link sent to the person's chat
|
|
56
|
+
# here: not signed in, its sign-in started by itself, its link sent to the person's chat, the code they paste
|
|
57
|
+
# there typed back (02-11, tried on a real Claude Code); an update installed told to the agent, which restarts
|
|
57
58
|
# when it suits it (never in the middle of its work). A tool that changes its words: only these lines change.
|
|
58
59
|
node "$(dirname "$0")/screen-watch.mjs" \
|
|
59
|
-
'
|
|
60
|
+
'type:Not logged in · Run /login=/login' \
|
|
61
|
+
'keys:Select login method:=Enter' \
|
|
62
|
+
'link:https://(claude\.ai|claude\.com|console\.anthropic\.com)/\S*oauth\S*' \
|
|
63
|
+
'code:Paste code here' \
|
|
60
64
|
'notice:(update|updated|installed)[^\n]{0,80}restart=Your tool was updated: when nothing runs, touch /work/.parley/restart-asked to take it up.' \
|
|
61
65
|
</dev/null >/dev/null 2>&1 &
|
|
62
66
|
exec "$@"
|
package/config/launch/codex.sh
CHANGED
|
@@ -29,8 +29,8 @@ node "$here/toml-block.mjs" .codex/config.toml tools "$block" \
|
|
|
29
29
|
# WHAT ITS SCREEN ASKS, read by the generic screen-watch -- Codex's own words: its sign-in link (and the
|
|
30
30
|
# code beside it) sent to the person's chat; an update told to the agent, which restarts when it suits it.
|
|
31
31
|
node "$here/screen-watch.mjs" \
|
|
32
|
-
'link:https://auth\.openai\.com
|
|
33
|
-
'link:https://chatgpt\.com
|
|
32
|
+
'link:https://auth\.openai\.com/\S+' \
|
|
33
|
+
'link:https://chatgpt\.com/\S*auth\S*' \
|
|
34
34
|
'notice:update available[^\n]{0,120}=Your tool has an update: when nothing runs, touch /work/.parley/restart-asked to take it up.' \
|
|
35
35
|
</dev/null >/dev/null 2>&1 &
|
|
36
36
|
exec "$@"
|
|
@@ -11,16 +11,21 @@
|
|
|
11
11
|
* The agent decides when it suits it -- never restarted in the middle of its work (02-11).
|
|
12
12
|
* keys:PATTERN=K a question with one answer always: the keys K typed (Enter, Down, Up, Escape, 1, y...),
|
|
13
13
|
* once per screen. Only what its launcher wrote: nothing else is ever typed.
|
|
14
|
+
* type:PATTERN=TEXT the same with a few words (a command such as /login), then Enter; once per screen.
|
|
15
|
+
* code:PATTERN the tool waits for a code the person gets after signing in: the next message they write
|
|
16
|
+
* in the chat that looks like one (no space, 10 to 300 signs) is typed there, then Enter.
|
|
14
17
|
* Only the last LINES lines are read: what the tool prints of its own work above never counts.
|
|
15
18
|
*/
|
|
16
19
|
import { spawnSync } from 'node:child_process';
|
|
20
|
+
import { readFileSync, statSync } from 'node:fs';
|
|
17
21
|
|
|
18
22
|
const LINES = 12; const EVERY_MS = 3000;
|
|
19
23
|
const KEYS = new Set(['Enter', 'Down', 'Up', 'Left', 'Right', 'Escape', 'Tab', 'y', 'n', '1', '2', '3']);
|
|
20
24
|
export function rulesOf(args) {
|
|
21
25
|
return args.flatMap((a) => {
|
|
22
|
-
const m = /^(link|notice|keys):(.+)$/s.exec(a); if (!m) return [];
|
|
26
|
+
const m = /^(link|notice|keys|type|code):(.+)$/s.exec(a); if (!m) return [];
|
|
23
27
|
let pattern = m[2]; let value = null;
|
|
28
|
+
if (m[1] === 'type') { const at = pattern.lastIndexOf('='); if (at < 1) return []; value = pattern.slice(at + 1).slice(0, 80); pattern = pattern.slice(0, at); if (!value.trim()) return []; }
|
|
24
29
|
if (m[1] === 'notice') { const at = pattern.lastIndexOf('='); if (at < 1) return []; value = pattern.slice(at + 1).trim().slice(0, 300); pattern = pattern.slice(0, at); if (!value) return []; }
|
|
25
30
|
if (m[1] === 'keys') { const at = pattern.lastIndexOf('='); if (at < 1) return []; value = pattern.slice(at + 1).split(',').filter((k) => KEYS.has(k)); pattern = pattern.slice(0, at); if (!value.length) return []; }
|
|
26
31
|
try { return [{ kind: m[1], re: new RegExp(pattern, 'i'), value }]; } catch { return []; }
|
|
@@ -28,7 +33,12 @@ export function rulesOf(args) {
|
|
|
28
33
|
}
|
|
29
34
|
/* -> what to do on this screen: [{ kind, match, value }], each once (seen: a Set kept between looks). */
|
|
30
35
|
export function actionsOn(screen, rules, seen) {
|
|
31
|
-
|
|
36
|
+
/* A long link the tool's screen broke over several lines (full lines, no space): put back in one. */
|
|
37
|
+
const raw = String(screen).replace(/\s+$/u, '').split('\n').map((l) => l.replace(/\s+$/u, ''));
|
|
38
|
+
const width = Math.max(0, ...raw.map((l) => l.length));
|
|
39
|
+
const joined = [];
|
|
40
|
+
for (const l of raw) { const prev = joined.at(-1); if (prev !== undefined && width > 40 && prev.length >= width - 1 && /^\S+$/.test(prev.split(' ').at(-1)) && /^\S+$/.test(l) && /https?:\/\//.test(prev)) joined[joined.length - 1] = prev + l; else joined.push(l); }
|
|
41
|
+
const bottom = joined.slice(-LINES).join('\n');
|
|
32
42
|
const out = [];
|
|
33
43
|
for (const r of rules) {
|
|
34
44
|
const m = r.re.exec(bottom); if (!m) continue;
|
|
@@ -53,13 +63,33 @@ if (main) {
|
|
|
53
63
|
const pane = process.env.SCREEN_WATCH_PANE ?? '=main:';
|
|
54
64
|
const chat = process.env.PARLEY_DIR ?? '/work/.parley';
|
|
55
65
|
const seen = new Set();
|
|
66
|
+
/* Waiting for a code: the person's chat, from where it stood when the tool asked (to-agent.jsonl). */
|
|
67
|
+
let awaiting = null;
|
|
68
|
+
const inbox = `${chat}/to-agent.jsonl`;
|
|
69
|
+
const codeFrom = () => { try { return statSync(inbox).size; } catch { return 0; } };
|
|
70
|
+
const typeCode = () => {
|
|
71
|
+
if (awaiting === null) return;
|
|
72
|
+
let text = ''; try { const b = readFileSync(inbox); text = b.subarray(awaiting).toString('utf8'); } catch { return; }
|
|
73
|
+
for (const line of text.split('\n').filter(Boolean)) {
|
|
74
|
+
let m; try { m = JSON.parse(line); } catch { continue; }
|
|
75
|
+
const code = String(m?.text ?? '').trim();
|
|
76
|
+
if (/^[A-Za-z0-9_#.~+/=-]{10,300}$/.test(code)) {
|
|
77
|
+
spawnSync('tmux', [...tmux, 'send-keys', '-t', pane, '-l', '--', code], { timeout: 5000 });
|
|
78
|
+
spawnSync('tmux', [...tmux, 'send-keys', '-t', pane, 'Enter'], { timeout: 5000 });
|
|
79
|
+
awaiting = null; return;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
56
83
|
const look = () => {
|
|
84
|
+
typeCode();
|
|
57
85
|
const r = spawnSync('tmux', [...tmux, 'capture-pane', '-p', '-t', pane], { encoding: 'utf8', timeout: 5000 });
|
|
58
86
|
if (r.status !== 0) return;
|
|
59
87
|
for (const a of actionsOn(r.stdout, rules, seen)) {
|
|
60
88
|
if (a.kind === 'link') spawnSync('parley', ['tell', `Your tool asks you to open this link: ${a.match}${a.around && a.around !== a.match ? `\n\n\`\`\`\n${a.around}\n\`\`\`` : ''}`, '--dir', chat], { timeout: 10_000 });
|
|
61
89
|
if (a.kind === 'notice') spawnSync('docket', ['remind', '--in', '1m', a.value, '--dir', process.env.DOCKET_DIR ?? '/work/.docket'], { timeout: 10_000 });
|
|
62
90
|
if (a.kind === 'keys') for (const k of a.value) spawnSync('tmux', [...tmux, 'send-keys', '-t', pane, k], { timeout: 5000 });
|
|
91
|
+
if (a.kind === 'type') { spawnSync('tmux', [...tmux, 'send-keys', '-t', pane, '-l', '--', a.value], { timeout: 5000 }); spawnSync('tmux', [...tmux, 'send-keys', '-t', pane, 'Enter'], { timeout: 5000 }); }
|
|
92
|
+
if (a.kind === 'code') { awaiting = codeFrom(); spawnSync('parley', ['tell', 'Once signed in, paste here the code the page gives you.', '--dir', chat], { timeout: 10_000 }); }
|
|
63
93
|
}
|
|
64
94
|
};
|
|
65
95
|
/* Its life is the tool's: started just before the launcher becomes the tool (exec), it ends with it. */
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.269-next.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "clavarium",
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.269-next.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/package.json
CHANGED
package/web/app.js
CHANGED
|
@@ -4959,6 +4959,46 @@
|
|
|
4959
4959
|
await paintAssets();
|
|
4960
4960
|
}
|
|
4961
4961
|
async function openAssets() { await openAssetsPlace(); }
|
|
4962
|
+
/* ---------- the conversations as cards (02-11) ---------- */
|
|
4963
|
+
/* ONE CONVERSATION AS A CARD, as a playing card: its name and its state on a plate, a picture of its own
|
|
4964
|
+
(its colours drawn from its name, its initial), its agent and its tool, its last word. Reusable: any
|
|
4965
|
+
page that shows conversations as things to pick or move takes it. `onOpen(c)`. */
|
|
4966
|
+
function convCard(c, onOpen) {
|
|
4967
|
+
let h = 0; for (const ch of String(c.name)) h = (h * 31 + ch.codePointAt(0)) >>> 0;
|
|
4968
|
+
const hue = h % 360;
|
|
4969
|
+
const card = el('button', 'conv-card'); card.type = 'button'; card.dataset.name = c.name;
|
|
4970
|
+
const state = c.asleep ? 'asleep' : c.talk?.state === 'waiting' || (c.talk?.waiting ?? 0) > 0 ? 'waits' : c.phase === 'ready' ? 'ready' : 'busy';
|
|
4971
|
+
const plate = el('span', 'conv-card-plate'); const dot = el('span', 'conv-card-dot'); dot.dataset.state = state;
|
|
4972
|
+
plate.append(dot, el('b', '', shownName(c)));
|
|
4973
|
+
const art = el('span', 'conv-card-art'); art.style.setProperty('--h', String(hue));
|
|
4974
|
+
art.append(el('span', 'conv-card-initial', (shownName(c).trim()[0] ?? '?').toUpperCase()));
|
|
4975
|
+
const kind = el('span', 'conv-card-type', [c.chatName, c.toolLabel ?? c.tool].filter(Boolean).join(' · '));
|
|
4976
|
+
const text = el('span', 'conv-card-text');
|
|
4977
|
+
if (c.talk?.lastText) text.append(el('i', '', c.talk.lastText));
|
|
4978
|
+
text.append(el('small', '', c.asleep ? 'Asleep' : state === 'waits' ? 'Waits for you' : c.talk?.lastAt ? cardAgo(c.talk.lastAt) : c.phase === 'ready' ? 'Ready' : (c.step || c.phase || '')));
|
|
4979
|
+
card.append(plate, art, kind, text);
|
|
4980
|
+
card.setAttribute('aria-label', `${shownName(c)}, ${kind.textContent}`);
|
|
4981
|
+
card.addEventListener('click', () => onOpen(c));
|
|
4982
|
+
return card;
|
|
4983
|
+
}
|
|
4984
|
+
const cardAgo = (at) => { const s = Math.max(0, (Date.now() - Date.parse(at)) / 1000); return s < 90 ? 'Just now' : s < 5400 ? `${Math.round(s / 60)} min ago` : s < 129600 ? `${Math.round(s / 3600)} h ago` : `${Math.round(s / 86400)} days ago`; };
|
|
4985
|
+
function paintDeck() {
|
|
4986
|
+
$('deck-title').textContent = appName;
|
|
4987
|
+
const list = [...conversations];
|
|
4988
|
+
const add = el('button', 'conv-card conv-card-new'); add.type = 'button';
|
|
4989
|
+
add.append(el('span', 'conv-card-plus', '+'), el('small', '', 'New conversation'));
|
|
4990
|
+
add.addEventListener('click', () => { void openNew(); });
|
|
4991
|
+
$('deck-cards').replaceChildren(...list.map((c) => convCard(c, (x) => { leavePlace(); select(x.name); })), add);
|
|
4992
|
+
$('deck-cards').hidden = list.length === 0; $('deck-empty').hidden = list.length > 0;
|
|
4993
|
+
}
|
|
4994
|
+
function openDeck(push = true) { if (DEVICE) return; enterPlace('deck', push); paintDeck(); }
|
|
4995
|
+
$('deck-close').addEventListener('click', () => leavePlace());
|
|
4996
|
+
$('deck-empty-new').addEventListener('click', () => { void openNew(); });
|
|
4997
|
+
/* Import a configuration: the import of the map (Access, Flows), a file chosen at once. */
|
|
4998
|
+
$('deck-empty-import').addEventListener('click', () => { void openAccessPage('map', { mode: 'flows' }).then(() => document.getElementById('flows-import')?.click()).catch(() => {}); });
|
|
4999
|
+
$('list-title').addEventListener('click', () => openDeck());
|
|
5000
|
+
$('list-title').setAttribute('role', 'button'); $('list-title').tabIndex = 0;
|
|
5001
|
+
$('list-title').addEventListener('keydown', (e) => { if (e.key === 'Enter') openDeck(); });
|
|
4962
5002
|
/* ---------- private repositories: how this server gets in ---------- */
|
|
4963
5003
|
/* The host of an address, whatever its form (user@host:path has no URL form). */
|
|
4964
5004
|
const hostOf = (from) => { try { return new URL(from).hostname; } catch { return /@([^:/]+):/.exec(String(from))?.[1] ?? String(from); } };
|
|
@@ -5130,6 +5170,7 @@
|
|
|
5130
5170
|
$('access').hidden = which !== 'access';
|
|
5131
5171
|
$('settings').hidden = which !== 'settings';
|
|
5132
5172
|
$('assets').hidden = which !== 'assets';
|
|
5173
|
+
$('deck').hidden = which !== 'deck';
|
|
5133
5174
|
$('newconv').hidden = which !== 'new';
|
|
5134
5175
|
if (which !== 'access') composing = false;
|
|
5135
5176
|
/* What the conversation had open (its tab) waits under the place, as it was. */
|
|
@@ -5445,6 +5486,7 @@
|
|
|
5445
5486
|
if (home && wanted !== current && conversations.some((c) => c.name === wanted)) select(wanted);
|
|
5446
5487
|
const open = q.get('open') ?? '';
|
|
5447
5488
|
if (open === 'new') { await openNew({ push: false }); return; }
|
|
5489
|
+
if (open === 'deck') { openDeck(false); return; }
|
|
5448
5490
|
if (open === 'settings') {
|
|
5449
5491
|
await openSettings({ push: false });
|
|
5450
5492
|
/* A link to one chapter of Settings (?open=settings&at=resources): that one opened, and shown. */
|
package/web/index.html
CHANGED
|
@@ -480,6 +480,11 @@
|
|
|
480
480
|
right: who uses it, its state, its settings. The forms that make
|
|
481
481
|
one, and a repository's remote, wait in #assets-forms and are moved
|
|
482
482
|
into the detail when asked for. -->
|
|
483
|
+
<div id="deck" class="sheet as-place" hidden>
|
|
484
|
+
<div class="panel-top"><b id="deck-title">Conversations</b><button type="button" id="deck-close" class="as-link place-back">‹ Back</button></div>
|
|
485
|
+
<div id="deck-cards" class="deck"></div>
|
|
486
|
+
<div id="deck-empty" class="deck-empty" hidden><p>No conversation yet.</p><div class="deck-empty-acts"><button type="button" id="deck-empty-new" class="primary">+ Create a conversation</button><button type="button" id="deck-empty-import">Import a configuration</button></div></div>
|
|
487
|
+
</div>
|
|
483
488
|
<div id="assets" class="sheet as-place" hidden>
|
|
484
489
|
<div class="panel-top"><b>Assets</b><button type="button" id="assets-close" class="as-link place-back">‹ Conversations</button></div>
|
|
485
490
|
<p id="assets-error" class="error" role="alert" hidden></p>
|
package/web/style.css
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
--brass: #d2a94e; --on-brass: #1b1405; --ok: #5fc39d; --warn: #e39a5c; --danger: #ee7f79; --wait: #5aa9f0;
|
|
6
6
|
/* Brass as the colour of text or of a small sign: darker on a light screen, to be read. */
|
|
7
7
|
--brass-ink: #d2a94e;
|
|
8
|
+
--button: #222c38; /* declared in both themes (02-11, the charter): no fallback scattered in the rules */
|
|
8
9
|
--sans: system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
9
10
|
}
|
|
10
11
|
/* A light screen, for whoever reads better dark on light. The terminal gets
|
|
@@ -21,9 +22,10 @@ html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink);
|
|
|
21
22
|
body { font: .875rem var(--sans); }
|
|
22
23
|
body { height: 100dvh; padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0); }
|
|
23
24
|
[hidden] { display: none !important; }
|
|
24
|
-
button { font: 600 .8125rem var(--sans); color: var(--ink); background: var(--button
|
|
25
|
+
button { font: 600 .8125rem var(--sans); color: var(--ink); background: var(--button); border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; cursor: pointer; }
|
|
26
|
+
button:disabled { opacity: .5; cursor: default; } /* one look for a button that cannot be pressed (the charter) */
|
|
25
27
|
/* The main button (02-11): its words and outline in brass, no fill -- quieter, like a suggestion. */
|
|
26
|
-
button.primary { background: transparent; border-color: var(--brass); color: var(--brass); }
|
|
28
|
+
button.primary { background: transparent; border-color: var(--brass); color: var(--brass-ink); }
|
|
27
29
|
button.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--brass) 12%, transparent); }
|
|
28
30
|
button:focus-visible, input:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
|
|
29
31
|
/* The list on the left, the three places under it, the conversation beside them. */
|
|
@@ -111,7 +113,7 @@ main { position: relative; flex: 1; min-height: 0; }
|
|
|
111
113
|
#notice button { padding: 10px 18px; font-size: .9375rem; }
|
|
112
114
|
footer { display: flex; gap: 6px; padding: 6px 8px; background: var(--bar); border-top: 1px solid var(--line); overflow-x: auto; }
|
|
113
115
|
footer button { flex: 0 0 auto; min-width: 44px; padding: 9px 12px; }
|
|
114
|
-
footer button.wide { flex: 1 0 auto; background: transparent; border-color: var(--brass); color: var(--brass); }
|
|
116
|
+
footer button.wide { flex: 1 0 auto; background: transparent; border-color: var(--brass); color: var(--brass-ink); }
|
|
115
117
|
@media (max-width: 700px) {
|
|
116
118
|
#app { grid-template-columns: minmax(0, 1fr); }
|
|
117
119
|
#list, #room { grid-column: 1; grid-row: 1; border-right: 0; }
|
|
@@ -194,7 +196,7 @@ html[data-door="device"] #room { height: 100%; }
|
|
|
194
196
|
.chip[data-access="offline"] { color: var(--warn); border-color: var(--warn); }
|
|
195
197
|
#signin-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; background: rgba(210, 169, 78, .14); border-bottom: 1px solid var(--brass); font-size: .8125rem; }
|
|
196
198
|
#signin-text { flex: 1; min-width: 160px; }
|
|
197
|
-
a.button { font: 600 .8125rem var(--sans); text-decoration: none; border-radius:
|
|
199
|
+
a.button { font: 600 .8125rem var(--sans); text-decoration: none; border-radius: 8px; padding: 7px 11px; background: transparent; border: 1px solid var(--brass); color: var(--brass-ink); }
|
|
198
200
|
#signin-form input { flex: 1; min-width: 130px; font: .875rem var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; }
|
|
199
201
|
/* On a narrow screen the key row wraps instead of hiding its end, and
|
|
200
202
|
dictation comes first: by voice is how a phone is used. */
|
|
@@ -245,7 +247,7 @@ footer button.careful { border-style: dashed; color: var(--ink2); }
|
|
|
245
247
|
#viewer .row { align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
246
248
|
#viewer .sp { flex: 1; }
|
|
247
249
|
#viewer #preview-name { overflow-wrap: anywhere; }
|
|
248
|
-
#viewer a.button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 8px; background: transparent; border: 1px solid var(--brass); color: var(--brass); font-weight: 600; text-decoration: none; }
|
|
250
|
+
#viewer a.button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 8px; background: transparent; border: 1px solid var(--brass); color: var(--brass-ink); font-weight: 600; text-decoration: none; }
|
|
249
251
|
#viewer button { min-height: 40px; }
|
|
250
252
|
#viewer p { margin: 0; }
|
|
251
253
|
#preview-body { overflow: auto; flex: 1; min-height: 0; }
|
|
@@ -379,7 +381,7 @@ footer button.careful { border-style: dashed; color: var(--ink2); }
|
|
|
379
381
|
#viewer .md-switch button { min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink2); font-weight: 600; }
|
|
380
382
|
#viewer .md-switch button[aria-pressed="true"] { background: var(--bar); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
|
|
381
383
|
#preview-body .md-view { display: block; container: none; min-height: 0; padding: 0 2px 24px; font-size: .9375rem; line-height: 1.55;
|
|
382
|
-
--parley-bg: var(--panel); --parley-text: var(--ink); --parley-dim: var(--ink2); --parley-line: var(--line); --parley-agent: var(--bar); --parley-action: var(--brass); --parley-measure: 80ch; }
|
|
384
|
+
--parley-bg: var(--panel); --parley-text: var(--ink); --parley-dim: var(--ink2); --parley-line: var(--line); --parley-agent: var(--bar); --parley-action: var(--brass-ink); --parley-measure: 80ch; }
|
|
383
385
|
:root[data-theme="light"] #preview-body .md-view { --parley-action: #8a5d00; }
|
|
384
386
|
#preview-body .md-view .parley-md { max-width: 80ch; }
|
|
385
387
|
#preview-body .md-view .parley-md > * + * { margin-top: .8em; }
|
|
@@ -446,7 +448,7 @@ footer button.careful { border-style: dashed; color: var(--ink2); }
|
|
|
446
448
|
#chat-off p { margin: 0 0 10px; font-size: 1rem; }
|
|
447
449
|
#chat-off p + p { color: var(--ink2); }
|
|
448
450
|
#simple[data-chat] { display: flex; flex-direction: column; overflow: hidden; padding: 10px 14px 12px; }
|
|
449
|
-
#simple-thread { flex: 1; min-height: 0; --parley-bg: var(--bg); --parley-text: var(--ink); --parley-dim: var(--ink2); --parley-line: var(--line); --parley-agent: var(--panel); --parley-person: var(--bar); --parley-ask: var(--brass); --parley-action: var(--brass); --parley-on-action: #1b1405; --parley-live: var(--danger); }
|
|
451
|
+
#simple-thread { flex: 1; min-height: 0; --parley-bg: var(--bg); --parley-text: var(--ink); --parley-dim: var(--ink2); --parley-line: var(--line); --parley-agent: var(--panel); --parley-person: var(--bar); --parley-ask: var(--brass-ink); --parley-action: var(--brass-ink); --parley-on-action: #1b1405; --parley-live: var(--danger); }
|
|
450
452
|
|
|
451
453
|
|
|
452
454
|
/* Private repositories: how the server gets in, and the keys made here. */
|
|
@@ -1953,7 +1955,7 @@ details.chapter[data-attention] > summary .chapter-title::after, #settings-nav b
|
|
|
1953
1955
|
/* Its whole height: a long card neither runs past its ground nor under what follows it (Assets). */
|
|
1954
1956
|
.binder-holder > .binder, .as-binder { flex-shrink: 0; }
|
|
1955
1957
|
body .binder-holder .binder { --binder-bg: var(--bg); --binder-text: var(--ink); --binder-dim: var(--ink2); --binder-line: var(--line); --binder-panel: var(--panel);
|
|
1956
|
-
--binder-action: var(--brass); --binder-on-action: #1b1405; --binder-ok: var(--ok); --binder-ask: var(--warn); --binder-danger: var(--danger); }
|
|
1958
|
+
--binder-action: var(--brass-ink); --binder-on-action: #1b1405; --binder-ok: var(--ok); --binder-ask: var(--warn); --binder-danger: var(--danger); }
|
|
1957
1959
|
.binder-holder .binder-new-list, .binder-holder .binder-empty .binder-primary { display: none; }
|
|
1958
1960
|
/* One list opened in Assets: no row of tabs for it alone. */
|
|
1959
1961
|
.as-binder .binder-top { display: none; }
|
|
@@ -2021,7 +2023,7 @@ details.commit > pre { margin: 6px 0 0 1.6em; white-space: pre-wrap; overflow-wr
|
|
|
2021
2023
|
Download stands out. Full screen: the file takes the whole screen. */
|
|
2022
2024
|
#viewer .ico { display: inline-flex; align-items: center; justify-content: center; width: 38px; min-width: 38px; height: 34px; padding: 0; }
|
|
2023
2025
|
#viewer .ico svg { width: 18px; height: 18px; }
|
|
2024
|
-
#viewer .ico.primary { background: transparent; border-color: var(--brass); color: var(--brass); }
|
|
2026
|
+
#viewer .ico.primary { background: transparent; border-color: var(--brass); color: var(--brass-ink); }
|
|
2025
2027
|
#viewer #preview-copy[data-done="true"] { color: var(--ok); border-color: currentColor; }
|
|
2026
2028
|
#viewer #preview-full[aria-pressed="true"] { border-color: var(--brass); }
|
|
2027
2029
|
#viewer.viewer-full { padding: 0; }
|
|
@@ -2169,3 +2171,25 @@ body.as-dragging #assets-rows .as-row { touch-action: none; }
|
|
|
2169
2171
|
.sheet-table th { position: sticky; background: var(--bar); color: var(--ink2); font-weight: 600; }
|
|
2170
2172
|
.sheet-table thead th { top: 0; z-index: 1; } .sheet-table tbody th { left: 0; }
|
|
2171
2173
|
.doc-frame { width: 100%; min-height: 70vh; border: 0; border-radius: 8px; background: transparent; }
|
|
2174
|
+
|
|
2175
|
+
/* THE CONVERSATIONS AS CARDS (02-11): playing cards, one per conversation, and one to add. */
|
|
2176
|
+
#list-title { cursor: pointer; }
|
|
2177
|
+
#deck { overflow-y: auto; }
|
|
2178
|
+
.deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; padding: 14px 16px 24px; }
|
|
2179
|
+
.conv-card { position: relative; aspect-ratio: 63 / 88; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--bar), var(--panel)); color: var(--ink); text-align: left; font: inherit; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); cursor: pointer; transition: transform .15s, border-color .15s; min-height: 0; }
|
|
2180
|
+
.conv-card:hover, .conv-card:focus-visible { transform: translateY(-3px); border-color: var(--brass); }
|
|
2181
|
+
.conv-card-plate { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); min-width: 0; }
|
|
2182
|
+
.conv-card-plate b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
|
|
2183
|
+
.conv-card-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--ink2); }
|
|
2184
|
+
.conv-card-dot[data-state="ready"] { background: var(--ok); } .conv-card-dot[data-state="waits"] { background: var(--wait); } .conv-card-dot[data-state="busy"] { background: var(--ink2); }
|
|
2185
|
+
.conv-card-dot[data-state="asleep"] { background: transparent; border: 1.5px solid var(--ink2); } .conv-card-dot[data-state="problem"] { background: var(--danger); }
|
|
2186
|
+
.conv-card-art { flex: 1.2; min-height: 0; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: linear-gradient(135deg, hsl(var(--h) 38% 30%), hsl(calc(var(--h) + 40) 42% 14%)); }
|
|
2187
|
+
.conv-card-initial { font: 700 2.4rem/1 var(--sans); color: rgba(255, 255, 255, .82); }
|
|
2188
|
+
.conv-card-type { font-size: .74rem; color: var(--ink2); padding: 2px 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2189
|
+
.conv-card-text { flex: .9; min-height: 0; display: flex; flex-direction: column; gap: 3px; padding: 2px 6px; font-size: .78rem; color: var(--ink2); overflow: hidden; }
|
|
2190
|
+
.conv-card-text i { font-style: normal; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
2191
|
+
.conv-card-new { align-items: center; justify-content: center; border-style: dashed; border-width: 1.5px; background: transparent; box-shadow: none; color: var(--ink2); }
|
|
2192
|
+
.conv-card-plus { font-size: 2.6rem; line-height: 1; color: var(--brass); }
|
|
2193
|
+
.deck-empty { text-align: center; padding: 48px 16px; color: var(--ink2); }
|
|
2194
|
+
.deck-empty-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
|
|
2195
|
+
@media (max-width: 520px) { .deck { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
|