@vibelord/lanes 1.8.0 → 1.9.3
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/package.json +1 -1
- package/payload/lanes/README.md +29 -11
- package/payload/lanes/VERSION +1 -1
- package/payload/lanes/bin/lanes +159 -59
- package/payload/lanes/bin-rs/BINARIES.json +2 -17
- package/payload/lanes/client/lanes-launch +51 -2
- package/payload/lanes/container/lane +142 -19
- package/payload/lanes/container/lane-mcp +168 -55
- package/payload/lanes/container/lane-peerd +6 -6
- package/payload/lanes/container/lane-signal +48 -3
- package/payload/lanes/container/lane_core.py +1040 -164
- package/payload/lanes/container/throttle-pulse +13 -4
- package/payload/lanes/docs/AGENTS-lanes.md +15 -7
- package/payload/lanes/docs/ARCHITECTURE.md +478 -101
- package/payload/lanes/docs/DESIGN.md +7 -2
- package/payload/lanes/docs/INSTALL.md +20 -3
- package/payload/lanes/docs/PLAN-1.9.1-SIDEBAR-CODEX.md +128 -0
- package/payload/lanes/docs/RUNBOOK.md +1428 -107
- package/payload/lanes/docs/USERGUIDE.md +488 -86
- package/payload/lanes/holders/tmux.sh +3 -3
- package/payload/lanes/install/services.py +68 -11
- package/payload/lanes/libexec/agent_state.py +2 -5
- package/payload/lanes/libexec/attach.py +11 -3
- package/payload/lanes/libexec/cursor_sync.py +22 -2
- package/payload/lanes/libexec/docsd.py +38 -4
- package/payload/lanes/libexec/lanes_lib.py +377 -39
- package/payload/lanes/libexec/mdlite.py +43 -3
- package/payload/lanes/libexec/notify.py +69 -26
- package/payload/lanes/libexec/registrations.py +5 -0
- package/payload/lanes/libexec/session_actions.py +114 -27
- package/payload/lanes/libexec/sidebar.py +246 -64
- package/payload/lanes/libexec/site_hooks.py +65 -0
- package/payload/lanes/libexec/statusd.py +139 -189
- package/payload/lanes/libexec/studio_host.py +8 -2
- package/payload/lanes/libexec/tokens.py +6 -2
- package/payload/lanes/libexec/update.py +13 -5
- package/payload/lanes/libexec/view.sh +39 -4
- package/payload/lanes/libexec/workspace_keys.py +54 -0
- package/payload/lanes/site/protocol.py +15 -5
- package/payload/lanes/site/relay.py +5 -2
- package/payload/lanes/site/server.py +29 -18
- package/payload/lanes/systemd/lanes-economy.service +3 -1
- package/payload/lanes/tokens/README.md +10 -0
- package/payload/lanes/tokens/generate.py +1 -1
- package/payload/lanes/web/Caddyfile +9 -2
- package/payload/lanes/web/README.md +2410 -95
- package/payload/lanes/web/browser.css +2 -0
- package/payload/lanes/web/browser.js +18 -6
- package/payload/lanes/web/directory.js +1 -1
- package/payload/lanes/web/docs.js +23 -0
- package/payload/lanes/web/links.js +157 -0
- package/payload/lanes/web/manifest.webmanifest +0 -2
- package/payload/lanes/web/mobile.css +30 -32
- package/payload/lanes/web/mobile.js +286 -227
- package/payload/lanes/web/upload.js +65 -22
- package/payload/lanes/web/workspace-keys.js +65 -0
- package/payload/lanes/zellij/config.kdl +1 -1
- package/payload/manifest.json +5 -22
- package/payload/lanes/bin-rs/THIRD-PARTY-NOTICES +0 -18953
- package/payload/lanes/bin-rs/x86_64-unknown-linux-musl/lanes-hook +0 -0
- package/payload/lanes/bin-rs/x86_64-unknown-linux-musl/lanes-terminal +0 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* LNS-31 laptop/tablet extras, outside the phone's mobile.css budget (spec §8). No scroll-time paint. */
|
|
2
2
|
/* Tablet (LNS-31): the dock joins the top bar; the workspace sheet is a left panel */
|
|
3
3
|
html.lanes-tablet, html.lanes-tablet.lanes-keyboard { --lanes-dock: 0px; }
|
|
4
|
+
.lanes-tablet .lanes-header { flex-wrap: nowrap; }
|
|
5
|
+
.lanes-tablet .lanes-status { width: auto; }
|
|
4
6
|
.lanes-tablet .lanes-dock { position: static; display: flex; gap: 4px; width: auto; height: 48px; padding: 0; border: 0; background: none; }
|
|
5
7
|
.lanes-tablet .lanes-dock .lanes-button { flex-direction: row; gap: 6px; min-height: 44px; padding: 0 10px; }
|
|
6
8
|
.lanes-tablet .lanes-dock .lanes-button span { font-size: 13px; }
|
|
@@ -24,11 +24,16 @@ function laneFullRender(api, send) {
|
|
|
24
24
|
return true;
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
function laneDesktopPane(d, s) {
|
|
28
|
+
const t = d?.tabs?.find(t => t.name.replace(/ ☰$/, '') === s?.workspace), m = t && laneBarModel({...d, active_pane: {tab_position: t.position}});
|
|
29
|
+
const p = m && (m.lanes.find(o => o.label === s.lane) || !laneBarModel(d).workspaces.find(o => o.current && o.label === s.workspace) && m.workspaces.find(o => o.current));
|
|
30
|
+
return p && p.pane !== d.active_pane?.pane_id ? p.pane : 0;
|
|
31
|
+
}
|
|
32
|
+
if (typeof module === 'object') module.exports = {laneBarModel, laneFullRender, laneDesktopPane};
|
|
28
33
|
(() => {
|
|
29
34
|
const mode = globalThis.document?.documentElement.dataset.lanesShell;
|
|
30
35
|
if (mode !== 'desktop' && mode !== 'tablet') return;
|
|
31
|
-
const send = p => window.__zjSendControl?.(p), focus = () => window.term?.focus();
|
|
36
|
+
const send = p => window.__zjSendControl?.(p), focus = () => window.term?.focus(), go = pane_id => send({type: 'FocusPane', pane_id, is_plugin: false});
|
|
32
37
|
const make = (tag, props) => Object.assign(document.createElement(tag), props);
|
|
33
38
|
const ready = api => {
|
|
34
39
|
const setData = api.setData, after = mode === 'tablet' ? tablet(api) : desktop(api);
|
|
@@ -40,15 +45,22 @@ if (typeof module === 'object') module.exports = {laneBarModel, laneFullRender};
|
|
|
40
45
|
return () => full() && dispatchEvent(new Event('zellij:rendering-resize'));
|
|
41
46
|
};
|
|
42
47
|
const desktop = api => {
|
|
43
|
-
let last;
|
|
48
|
+
let last, seen = 0, wait, wrote;
|
|
44
49
|
const picks = ['Workspace', 'Lane'].map(title => make('select', {title, onchange() {
|
|
45
|
-
|
|
50
|
+
wait = 0;
|
|
51
|
+
go(+this.value);
|
|
46
52
|
focus();
|
|
47
53
|
}}));
|
|
48
54
|
const bar = make('nav', {className: 'lanes-bar', hidden: true, onkeydown: ev => ev.key === 'Escape' && focus()});
|
|
49
55
|
const render = () => {
|
|
50
|
-
const
|
|
51
|
-
if (
|
|
56
|
+
const d = api.getState()?.data, m = laneBarModel(d), w = m.workspaces.find(o => o.current), sig = JSON.stringify(m);
|
|
57
|
+
if (w) {
|
|
58
|
+
const now = JSON.stringify({workspace: w.label, lane: m.lanes.find(o => o.current)?.label || ''}), k = 'lanes:desktop:' + window.location?.pathname;
|
|
59
|
+
if (!seen++) try { const p = laneDesktopPane(d, JSON.parse(localStorage.getItem(k))); p && (wait = now, go(p)); } catch {}
|
|
60
|
+
else if (now !== wait) wait = 0;
|
|
61
|
+
if (!wait && now + k !== wrote) try { localStorage.setItem(k, (wrote = now + k, now)); } catch {}
|
|
62
|
+
}
|
|
63
|
+
if (bar.hidden || sig === last) return;
|
|
52
64
|
last = sig;
|
|
53
65
|
[m.workspaces, m.lanes].forEach((l, i) => picks[i].replaceChildren(...l.map(o => new Option(o.label, o.pane, 0, o.current))));
|
|
54
66
|
};
|
|
@@ -32,7 +32,7 @@ const LANES_DIRECTORY_TOKENS = {
|
|
|
32
32
|
const SECTIONS = ['needs', 'working', 'done', 'rest', 'unregistered'];
|
|
33
33
|
// The attention queue of lanes/libexec/sidebar.py (ATTENTION, ALWAYS_DRAWN) and statusd's section table.
|
|
34
34
|
const ATTENTION = [['needs', 'Needs you', ['needs_approval', 'errored', 'needs_input']], ['working', 'Working', ['working']],
|
|
35
|
-
['done', 'Done', ['done']]];
|
|
35
|
+
['done', 'Done, not seen', ['done']]];
|
|
36
36
|
const ALWAYS_DRAWN = ['needs', 'working'];
|
|
37
37
|
const SECTION_OF = {needs_approval: 'needs', errored: 'needs', needs_input: 'needs', working: 'working', done: 'done'};
|
|
38
38
|
const NEEDS_RANK = {needs_approval: 0, errored: 1, needs_input: 2};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Lanes docs page (plan W10 W6, LNS-107): render ```mermaid fences with the pinned Mermaid, only on a page that has
|
|
2
2
|
// one: its versioned file (DEF-1870), its sha256 as SRI. Without it every fence keeps its source. web/README.md.
|
|
3
|
+
// Each other fence gets a Copy button and says as the phone shell's Copy does (BEY-8667 E10c).
|
|
3
4
|
(function () {
|
|
4
5
|
'use strict';
|
|
5
6
|
var SRC = '/lanes-assets/vendor/mermaid-11.17.2.min.js';
|
|
@@ -21,7 +22,29 @@
|
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
|
|
25
|
+
function copies() {
|
|
26
|
+
var codes = document.querySelectorAll('pre > code'), i;
|
|
27
|
+
for (i = 0; i < codes.length; i++) (function (code, n) {
|
|
28
|
+
var pre = code.parentNode, b = document.createElement('button'), out = document.createElement('output'), t;
|
|
29
|
+
pre.id = pre.id || 'docs-code-' + n;
|
|
30
|
+
b.type = 'button'; b.textContent = 'Copy'; b.setAttribute('aria-describedby', pre.id);
|
|
31
|
+
out.setAttribute('aria-live', 'polite');
|
|
32
|
+
function say(w, ms) {
|
|
33
|
+
clearTimeout(t); out.textContent = w;
|
|
34
|
+
if (ms) t = setTimeout(function () { out.textContent = ''; }, ms);
|
|
35
|
+
}
|
|
36
|
+
b.onclick = function () {
|
|
37
|
+
try {
|
|
38
|
+
navigator.clipboard.writeText(code.textContent.replace(/\n$/, ''))
|
|
39
|
+
.then(function () { say('Copied', 1600); }, function () { say('Clipboard blocked'); });
|
|
40
|
+
} catch (e) { say('Clipboard blocked'); }
|
|
41
|
+
};
|
|
42
|
+
pre.parentNode.insertBefore(b, pre); pre.parentNode.insertBefore(out, pre);
|
|
43
|
+
}(codes[i], i));
|
|
44
|
+
}
|
|
45
|
+
|
|
24
46
|
function start() {
|
|
47
|
+
copies();
|
|
25
48
|
if (!document.querySelector('pre.mermaid')) return;
|
|
26
49
|
var s = document.createElement('script');
|
|
27
50
|
s.setAttribute('integrity', SRI);
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const ADDRESS = /(?:(?:https?|HTTPS?):\/\/|\/lanes-docs\/)[^\s"'<>\\^`{|}─-╿…\p{Cf}]*/gu;
|
|
5
|
+
const TRAILING = '.,;:!?*_~';
|
|
6
|
+
const HOST_AND_NO_USER = /^\w+:\/\/[^/?#@:][^/?#@]*(?:[/?#]|$)/;
|
|
7
|
+
|
|
8
|
+
function trimmed(address) {
|
|
9
|
+
let extraParens = 0;
|
|
10
|
+
let extraBrackets = 0;
|
|
11
|
+
for (const ch of address) {
|
|
12
|
+
if (ch === ')') extraParens++;
|
|
13
|
+
else if (ch === '(') extraParens--;
|
|
14
|
+
else if (ch === ']') extraBrackets++;
|
|
15
|
+
else if (ch === '[') extraBrackets--;
|
|
16
|
+
}
|
|
17
|
+
let end = address.length;
|
|
18
|
+
while (end > 0) {
|
|
19
|
+
const last = address[end - 1];
|
|
20
|
+
if (last === ')' && extraParens > 0) extraParens--;
|
|
21
|
+
else if (last === ']' && extraBrackets > 0) extraBrackets--;
|
|
22
|
+
else if (!TRAILING.includes(last)) break;
|
|
23
|
+
end--;
|
|
24
|
+
}
|
|
25
|
+
return address.slice(0, end);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function laneLinkAt(rows, cols, col, row) {
|
|
29
|
+
const line = i => rows[i] || '';
|
|
30
|
+
const tapped = line(row);
|
|
31
|
+
const barRight = tapped.indexOf('│', col);
|
|
32
|
+
const left = tapped.lastIndexOf('│', col) + 1;
|
|
33
|
+
const right = barRight < 0 ? cols : barRight;
|
|
34
|
+
if (col < left || col >= right) return null;
|
|
35
|
+
const goesOn = i => /\S/.test(line(i)[right - 1] || ' ');
|
|
36
|
+
|
|
37
|
+
let top = row;
|
|
38
|
+
while (top > 0 && goesOn(top - 1)) top--;
|
|
39
|
+
let joined = '';
|
|
40
|
+
let tappedAt = -1;
|
|
41
|
+
for (let i = top; i < rows.length; i++) {
|
|
42
|
+
const part = line(i).slice(left, right);
|
|
43
|
+
const indent = i > top ? part.length - part.trimStart().length : 0;
|
|
44
|
+
if (i === row && col - left >= indent) tappedAt = joined.length + col - left - indent;
|
|
45
|
+
joined += part.slice(indent);
|
|
46
|
+
if (i >= row && !goesOn(i)) break;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
for (const match of joined.matchAll(ADDRESS)) {
|
|
50
|
+
const address = trimmed(match[0]);
|
|
51
|
+
const start = match.index;
|
|
52
|
+
if (tappedAt < start || tappedAt >= start + address.length) continue;
|
|
53
|
+
if (address.startsWith('/')) {
|
|
54
|
+
const before = joined[start - 1] || ' ';
|
|
55
|
+
const url = new URL(address, 'http://h');
|
|
56
|
+
if (/[\w.~/-]/.test(before) || !url.pathname.startsWith('/lanes-docs/')) return null;
|
|
57
|
+
return url.pathname + url.search + url.hash;
|
|
58
|
+
}
|
|
59
|
+
return HOST_AND_NO_USER.test(address) ? address : null;
|
|
60
|
+
}
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function linkLabel(address) {
|
|
65
|
+
if (address.startsWith('/')) return address;
|
|
66
|
+
try { return new URL(address).host; } catch { return /^\w+:\/\/([^/?#]*)/.exec(address)[1]; }
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (typeof module === 'object') module.exports.laneLinkAt = laneLinkAt;
|
|
70
|
+
|
|
71
|
+
const D = globalThis.document;
|
|
72
|
+
const terminal = D?.getElementById('terminal');
|
|
73
|
+
const term = globalThis.term;
|
|
74
|
+
if (!terminal || !term) return;
|
|
75
|
+
|
|
76
|
+
const LISTEN = {capture: true, passive: true};
|
|
77
|
+
const TAP_MOVE_PX = 16;
|
|
78
|
+
const TAP_HOLD_MS = 500;
|
|
79
|
+
const SHOWN_MS = 8000;
|
|
80
|
+
|
|
81
|
+
let touch = null;
|
|
82
|
+
let control = null;
|
|
83
|
+
let names = null;
|
|
84
|
+
let expiry = 0;
|
|
85
|
+
|
|
86
|
+
function hide() {
|
|
87
|
+
clearTimeout(expiry);
|
|
88
|
+
if (control && !control.hidden) {
|
|
89
|
+
control.hidden = true;
|
|
90
|
+
names.hidden = false;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function show(address) {
|
|
95
|
+
hide();
|
|
96
|
+
control?.remove();
|
|
97
|
+
control = null;
|
|
98
|
+
names = D.querySelector('button.lanes-context');
|
|
99
|
+
if (!names) return;
|
|
100
|
+
const open = D.createElement('strong');
|
|
101
|
+
open.textContent = 'Open';
|
|
102
|
+
const label = D.createElement('span');
|
|
103
|
+
const text = D.createElement('bdi');
|
|
104
|
+
label.dir = 'rtl';
|
|
105
|
+
text.dir = 'ltr';
|
|
106
|
+
text.textContent = linkLabel(address);
|
|
107
|
+
label.append(text);
|
|
108
|
+
control = D.createElement('a');
|
|
109
|
+
control.className = 'lanes-context';
|
|
110
|
+
control.href = address;
|
|
111
|
+
control.target = '_blank';
|
|
112
|
+
control.rel = 'noopener noreferrer';
|
|
113
|
+
control.append(open, ' ', label);
|
|
114
|
+
control.addEventListener('click', hide);
|
|
115
|
+
names.hidden = true;
|
|
116
|
+
names.after(control);
|
|
117
|
+
expiry = setTimeout(hide, SHOWN_MS);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
terminal.addEventListener('touchstart', event => {
|
|
121
|
+
touch = null;
|
|
122
|
+
if (event.touches.length !== 1) return;
|
|
123
|
+
const finger = event.touches[0];
|
|
124
|
+
const pan = globalThis.__zjMobilePan;
|
|
125
|
+
const offset = pan?.isActive?.() ? pan.getOffset() : {x: 0, y: 0};
|
|
126
|
+
const point = {clientX: finger.clientX + offset.x, clientY: finger.clientY + offset.y};
|
|
127
|
+
const cell = term._core?._mouseService?.getMouseReportCoords?.(point, terminal);
|
|
128
|
+
if (!cell) return;
|
|
129
|
+
const buffer = term.buffer.active;
|
|
130
|
+
const rows = [];
|
|
131
|
+
for (let i = 0; i < term.rows; i++) rows.push(buffer.getLine(buffer.viewportY + i)?.translateToString(true) ?? '');
|
|
132
|
+
touch = {x: finger.clientX, y: finger.clientY, startedAt: event.timeStamp, cell, rows, cols: term.cols};
|
|
133
|
+
}, LISTEN);
|
|
134
|
+
|
|
135
|
+
terminal.addEventListener('touchmove', event => {
|
|
136
|
+
if (!touch) return;
|
|
137
|
+
const finger = event.touches.length === 1 && event.touches[0];
|
|
138
|
+
if (!finger || Math.hypot(finger.clientX - touch.x, finger.clientY - touch.y) > TAP_MOVE_PX) touch = null;
|
|
139
|
+
}, LISTEN);
|
|
140
|
+
|
|
141
|
+
terminal.addEventListener('touchend', event => {
|
|
142
|
+
const tap = touch;
|
|
143
|
+
touch = null;
|
|
144
|
+
if (!tap || event.touches.length > 0 || event.timeStamp - tap.startedAt >= TAP_HOLD_MS) return;
|
|
145
|
+
const address = laneLinkAt(tap.rows, tap.cols, tap.cell.col, tap.cell.row);
|
|
146
|
+
if (address) show(address);
|
|
147
|
+
}, LISTEN);
|
|
148
|
+
|
|
149
|
+
terminal.addEventListener('touchcancel', () => { touch = null; }, LISTEN);
|
|
150
|
+
|
|
151
|
+
D.addEventListener('keydown', hide, true);
|
|
152
|
+
|
|
153
|
+
window.addEventListener('pointerdown', event => {
|
|
154
|
+
if (control?.contains(event.target)) clearTimeout(expiry);
|
|
155
|
+
else hide();
|
|
156
|
+
}, true);
|
|
157
|
+
})();
|
|
@@ -62,71 +62,68 @@ html.lanes-mobile:root {
|
|
|
62
62
|
--zj-yellow: var(--lanes-tone-attention);
|
|
63
63
|
}
|
|
64
64
|
/* END lanes tokens */
|
|
65
|
-
|
|
66
|
-
html.lanes-
|
|
67
|
-
html.lanes-
|
|
65
|
+
html.lanes-mobile { --lanes-safe-top: env(safe-area-inset-top, 0px); --lanes-safe-bottom: env(safe-area-inset-bottom, 0px); --lanes-safe-left: env(safe-area-inset-left, 0px); --lanes-safe-right: env(safe-area-inset-right, 0px); --lanes-head: calc(64px + var(--lanes-safe-top)); --lanes-dock: calc(66px + var(--lanes-safe-bottom)); --lanes-keys: 0px; --lanes-quick: 0px; --lanes-vh: 100dvh; --lanes-vw: 100vw; --lanes-offset-top: 0px; --lanes-offset-left: 0px; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
|
|
66
|
+
html.lanes-keyboard { --lanes-dock: 48px; --lanes-safe-bottom: 0px; }
|
|
67
|
+
html.lanes-keys-open { --lanes-keys: 48px; }
|
|
68
|
+
[data-lanes-shell=phone].lanes-keyboard:has(.is-typing) { --lanes-quick: 0px !important; }
|
|
68
69
|
.lanes-mobile body { overscroll-behavior: none; }
|
|
69
70
|
.lanes-mobile body, .lanes-mobile #terminal { background: var(--lanes-surface) !important; }
|
|
70
71
|
.lanes-shell, .lanes-shell *, .lanes-mobile .security-modal *, .lanes-mobile #zj-mobile-root * { box-sizing: border-box; }
|
|
71
72
|
.lanes-shell { color: var(--lanes-text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-tap-highlight-color: transparent; }
|
|
72
|
-
.lanes-shell [hidden], .lanes-shell[hidden] { display: none !important; }
|
|
73
|
+
.lanes-shell [hidden], .lanes-shell[hidden], .lanes-ready .zj-mobile-topbar, .lanes-ready .zj-mobile-modbar { display: none !important; }
|
|
73
74
|
.lanes-shell button, .lanes-mobile #zj-mobile-root button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer; }
|
|
74
75
|
.lanes-shell button { font: inherit; color: inherit; }
|
|
75
76
|
.lanes-shell button:focus-visible, .lanes-shell input:focus-visible { outline: 2px solid var(--lanes-accent); outline-offset: -3px; }
|
|
76
|
-
.lanes-ready .zj-mobile-topbar { display: none !important; }
|
|
77
77
|
.lanes-ready body.zj-mobile-active #terminal { position: fixed; top: calc(var(--lanes-offset-top) + var(--lanes-head) + 8px); left: calc(var(--lanes-offset-left) + var(--lanes-safe-left) + 8px); width: calc(var(--lanes-vw) - var(--lanes-safe-left) - var(--lanes-safe-right) - 16px); height: calc(var(--lanes-vh) - var(--lanes-head) - var(--lanes-dock) - var(--lanes-keys) - var(--lanes-quick) - 16px); margin: 0; padding: 0; }
|
|
78
|
-
.lanes-header { position: fixed; z-index: 510; top: var(--lanes-offset-top); left: var(--lanes-offset-left); width: var(--lanes-vw); height: var(--lanes-head); padding: var(--lanes-safe-top) calc(8px + var(--lanes-safe-right)) 0 calc(16px + var(--lanes-safe-left)); display: flex; align-items: center; gap: 10px; background: var(--lanes-bg); border-bottom: 1px solid var(--lanes-border); }
|
|
79
|
-
.lanes-
|
|
80
|
-
.lanes-context { display: flex; flex: 1; min-width: 0; height: 54px; flex-direction: column; justify-content: center; align-items: flex-start; border: 0; background: none; padding: 0; text-align: left; }
|
|
78
|
+
.lanes-header { position: fixed; z-index: 510; top: var(--lanes-offset-top); left: var(--lanes-offset-left); width: var(--lanes-vw); height: var(--lanes-head); padding: var(--lanes-safe-top) calc(8px + var(--lanes-safe-right)) 0 calc(16px + var(--lanes-safe-left)); display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; background: var(--lanes-bg); border-bottom: 1px solid var(--lanes-border); }
|
|
79
|
+
.lanes-context { display: flex; flex: 1; min-width: 0; height: 48px; flex-direction: column; justify-content: center; align-items: flex-start; border: 0; background: none; padding: 0; text-align: left; }
|
|
81
80
|
.lanes-context strong { font-size: 17px; letter-spacing: -.3px; line-height: 22px; }
|
|
82
81
|
.lanes-context span { font-size: 13px; color: var(--lanes-muted); line-height: 18px; }
|
|
83
|
-
.lanes-context
|
|
84
|
-
.lanes-
|
|
85
|
-
.lanes-button
|
|
86
|
-
.lanes-button
|
|
82
|
+
.lanes-context *, .lanes-status, .lanes-workspace-copy small { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
83
|
+
.lanes-status { height: 15px; font-size: 12px; line-height: 15px; }
|
|
84
|
+
.lanes-button, .lanes-input-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
|
|
85
|
+
.lanes-button { min-width: 48px; min-height: 48px; padding: 5px; border: 0; background: transparent; border-radius: 12px; }
|
|
86
|
+
.lanes-button svg, .lanes-input-label svg { width: 23px; height: 23px; }
|
|
87
|
+
.lanes-button svg { flex: 0 0 23px; }
|
|
88
|
+
.lanes-button span, .lanes-input-label span { font-size: 12px; font-weight: 600; letter-spacing: .1px; }
|
|
87
89
|
.lanes-more, .lanes-close { flex: 0 0 48px; }
|
|
88
|
-
.lanes-more span, .lanes-close span { display: none; }
|
|
89
90
|
.lanes-button:active, .lanes-workspace:active, .lanes-quick button:active { background: var(--lanes-press); }
|
|
90
91
|
.lanes-dock { position: fixed; z-index: 510; top: calc(var(--lanes-offset-top) + var(--lanes-vh) - var(--lanes-dock)); left: var(--lanes-offset-left); width: var(--lanes-vw); height: var(--lanes-dock); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px calc(8px + var(--lanes-safe-right)) var(--lanes-safe-bottom) calc(8px + var(--lanes-safe-left)); border-top: 1px solid var(--lanes-border); background: var(--lanes-bg); }
|
|
91
92
|
.lanes-dock .lanes-button { color: var(--lanes-muted); position: relative; }
|
|
92
|
-
.lanes-dock .lanes-button[aria-pressed=
|
|
93
|
+
.lanes-dock .lanes-button[aria-pressed=true] { color: var(--lanes-accent); background: var(--lanes-current); }
|
|
93
94
|
.lanes-button[data-count]::after { content: attr(data-count); position: absolute; top: 2px; right: 8px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--lanes-tone-attention); color: var(--lanes-on-accent); font-size: 12px; font-weight: 600; }
|
|
94
95
|
.lanes-terminal-input { position: relative; align-self: center; min-width: 0; height: 52px; margin: 0 2px; border: 1px solid var(--lanes-border); border-radius: 12px; background: var(--lanes-panel); color: var(--lanes-muted); }
|
|
95
|
-
.lanes-input-label { position: absolute; inset: 0; pointer-events: none;
|
|
96
|
-
.lanes-input-label svg { width: 23px; height: 23px; }
|
|
97
|
-
.lanes-input-label span { font-size: 12px; font-weight: 600; letter-spacing: .1px; }
|
|
96
|
+
.lanes-input-label { position: absolute; inset: 0; pointer-events: none; }
|
|
98
97
|
.lanes-terminal-input:focus-within, .lanes-terminal-input.is-typing { border-color: var(--lanes-accent); color: var(--lanes-accent); background: var(--lanes-current); }
|
|
99
98
|
.lanes-keyboard .lanes-dock { padding-top: 0; }
|
|
100
99
|
.lanes-keyboard .lanes-dock .lanes-button { min-height: 44px; padding: 0; }
|
|
101
|
-
.lanes-keyboard .lanes-dock .lanes-button span { display: none; }
|
|
102
100
|
.lanes-keyboard .lanes-terminal-input { height: 44px; }
|
|
103
101
|
.lanes-keyboard .lanes-input-label { flex-direction: row; gap: 5px; }
|
|
104
|
-
.lanes-ready .zj-mobile-modbar, .lanes-quick { top: calc(var(--lanes-offset-top) + var(--lanes-vh) - var(--lanes-dock) - var(--lanes-keys)); bottom: auto; left: calc(var(--lanes-offset-left) + var(--lanes-safe-left)); right: auto; width: calc(var(--lanes-vw) - var(--lanes-safe-left) - var(--lanes-safe-right)); height: 48px; z-index: 510;
|
|
105
|
-
.lanes-
|
|
106
|
-
.lanes-quick { position: fixed; top: calc(var(--lanes-offset-top) + var(--lanes-vh) - var(--lanes-dock) - var(--lanes-keys) - var(--lanes-quick)); display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 2px 16px; border-top: 1px solid var(--lanes-border); }
|
|
102
|
+
.lanes-ready .zj-mobile-modbar, .lanes-quick { top: calc(var(--lanes-offset-top) + var(--lanes-vh) - var(--lanes-dock) - var(--lanes-quick) - var(--lanes-keys)); bottom: auto; left: calc(var(--lanes-offset-left) + var(--lanes-safe-left)); right: auto; width: calc(var(--lanes-vw) - var(--lanes-safe-left) - var(--lanes-safe-right)); height: 48px; z-index: 510; background: var(--lanes-panel); border-color: var(--lanes-border); }
|
|
103
|
+
.lanes-quick { position: fixed; top: calc(var(--lanes-offset-top) + var(--lanes-vh) - var(--lanes-dock) - var(--lanes-quick)); z-index: 511; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 2px 16px; border-top: 1px solid var(--lanes-border); }
|
|
107
104
|
.lanes-quick button { min-height: 44px; min-width: 44px; border: 1px solid var(--lanes-border); border-radius: 12px; background: var(--lanes-bg); font: 600 15px ui-monospace, Menlo, monospace; }
|
|
108
105
|
.lanes-quick .is-destructive { color: var(--lanes-tone-urgent); }
|
|
109
106
|
.lanes-quick .is-destructive:active { background: var(--lanes-tone-urgent); color: var(--lanes-on-accent); transition: background 0s 400ms, color 0s 400ms; }
|
|
110
|
-
.lanes-ready.lanes-
|
|
111
|
-
.lanes-ready .zj-mobile-modbar button {
|
|
107
|
+
.lanes-ready.lanes-keys-open .zj-mobile-modbar { display: flex !important; }
|
|
108
|
+
.lanes-ready .zj-mobile-modbar button { min-width: 44px; min-height: 48px; color: var(--lanes-text); font: 500 13px -apple-system, sans-serif; border-color: var(--lanes-border); }
|
|
112
109
|
.lanes-ready .zj-mobile-modbar button.zj-armed { background: var(--lanes-accent); color: var(--lanes-on-accent); }
|
|
110
|
+
.lanes-more span, .lanes-close span, .lanes-keyboard .lanes-dock .lanes-button span, html:not(.lanes-keyboard) .lanes-done, .lanes-keyboard [aria-label="More options"], .lanes-ready :is([data-cell=esc], [data-cell=up], [data-cell=down], [data-cell=minus]) { display: none; }
|
|
113
111
|
.lanes-sheet { position: fixed; z-index: 800; top: var(--lanes-offset-top); left: var(--lanes-offset-left); height: var(--lanes-vh); width: var(--lanes-vw); display: flex; align-items: flex-end; background: var(--lanes-scrim); padding: var(--lanes-safe-top) var(--lanes-safe-right) 0 var(--lanes-safe-left); }
|
|
114
112
|
.lanes-sheet-panel { display: flex; flex-direction: column; width: 100%; min-height: 0; max-height: calc(var(--lanes-vh) - var(--lanes-safe-top) - 20px); background: var(--lanes-bg); border: 1px solid var(--lanes-border); border-bottom: 0; border-radius: 24px 24px 0 0; padding: 20px 16px calc(8px + var(--lanes-safe-bottom)); box-shadow: var(--lanes-shadow); }
|
|
115
113
|
.lanes-sheet-head { display: flex; justify-content: space-between; align-items: center; flex: 0 0 auto; margin-bottom: 18px; }
|
|
116
114
|
.lanes-sheet-head h2 { font-size: 25px; line-height: 30px; letter-spacing: -.8px; margin: 0 0 3px; }
|
|
117
|
-
.lanes-sheet-head p { font-size: 13px; color: var(--lanes-muted); margin: 0; }
|
|
118
115
|
.lanes-close { background: var(--lanes-panel); border-radius: 50%; }
|
|
119
116
|
.lanes-search { display: flex; align-items: center; gap: 10px; flex: 0 0 48px; height: 48px; background: var(--lanes-panel); border: 1px solid var(--lanes-border); border-radius: 12px; padding: 0 14px; margin-bottom: 12px; }
|
|
120
117
|
.lanes-search svg { width: 20px; height: 20px; color: var(--lanes-muted); flex-shrink: 0; }
|
|
121
118
|
.lanes-search input { border: 0; outline: none; background: transparent; color: var(--lanes-text); font: 16px -apple-system, sans-serif; min-width: 0; width: 100%; height: 44px; }
|
|
122
|
-
.lanes-search input::placeholder { color: var(--lanes-muted); }
|
|
123
|
-
.lanes-workspaces { min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px;
|
|
119
|
+
.lanes-search input::placeholder, .lanes-filter-bar input::placeholder { color: var(--lanes-muted); }
|
|
120
|
+
.lanes-workspaces { min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; }
|
|
124
121
|
.lanes-workspace { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; width: 100%; min-height: 74px; padding: 12px; background: var(--lanes-panel); border: 1px solid transparent; border-radius: 14px; text-align: left; }
|
|
125
122
|
.lanes-workspace.is-current { border-color: var(--lanes-current-border); background: var(--lanes-current); }
|
|
126
123
|
.lanes-monogram { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; font-size: 17px; font-weight: 650; color: var(--lanes-accent); background: var(--lanes-chip); border: 1px solid var(--lanes-border); border-radius: 11px; }
|
|
127
124
|
.lanes-workspace-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
|
|
128
125
|
.lanes-workspace-copy strong { font-size: 16px; font-weight: 600; line-height: 21px; overflow-wrap: anywhere; }
|
|
129
|
-
.lanes-workspace-copy small { font-size: 13px; color: var(--lanes-muted); }
|
|
126
|
+
.lanes-workspace-copy small, .lanes-sheet-head output { font-size: 13px; color: var(--lanes-muted); }
|
|
130
127
|
.lanes-tone-urgent { color: var(--lanes-tone-urgent); }
|
|
131
128
|
.lanes-tone-attention { color: var(--lanes-tone-attention); }
|
|
132
129
|
.lanes-tone-working { color: var(--lanes-tone-working); }
|
|
@@ -135,6 +132,7 @@ html.lanes-keyboard { --lanes-dock: 48px; --lanes-keys: 48px; --lanes-safe-botto
|
|
|
135
132
|
.is-current .lanes-workspace-arrow { color: var(--lanes-accent); }
|
|
136
133
|
.lanes-session-link { border: 0; background: transparent; min-height: 48px; color: var(--lanes-muted) !important; font-size: 13px !important; flex-shrink: 0; }
|
|
137
134
|
.lanes-empty { text-align: center; color: var(--lanes-muted); padding: 30px 12px; }
|
|
135
|
+
.lanes-shot { margin: 0; overflow: auto; font: 13px ui-monospace, monospace; -webkit-user-select: text; }
|
|
138
136
|
.lanes-mobile #zj-mobile-root, .lanes-mobile .security-modal { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
|
|
139
137
|
.lanes-mobile .zj-mobile-menu { top: calc(var(--lanes-offset-top) + var(--lanes-head) + 6px); right: calc(var(--lanes-safe-right) + 8px); left: auto; max-height: calc(var(--lanes-vh) - var(--lanes-head) - 16px); max-width: calc(var(--lanes-vw) - var(--lanes-safe-left) - var(--lanes-safe-right) - 16px); min-width: min(290px, 90vw); overflow-y: auto; background: var(--lanes-panel); border: 1px solid var(--lanes-border); border-radius: 16px; box-shadow: var(--lanes-shadow); }
|
|
140
138
|
.lanes-mobile .zj-mobile-menu button { min-height: 48px; color: var(--lanes-text); font-size: 15px; }
|
|
@@ -158,15 +156,17 @@ html.lanes-keyboard { --lanes-dock: 48px; --lanes-keys: 48px; --lanes-safe-botto
|
|
|
158
156
|
.lanes-mobile .security-modal .security-modal-content { width: 100%; max-width: 400px; max-height: 100%; overflow-y: auto; border: 1px solid var(--lanes-border); border-radius: 24px; padding: 24px; background: var(--lanes-panel); color: var(--lanes-text); box-shadow: none; }
|
|
159
157
|
.lanes-mobile .security-modal .security-modal-content::before { display: none; }
|
|
160
158
|
.lanes-mobile .security-modal h3 { font-size: 25px; font-weight: 650; text-transform: none; letter-spacing: -.7px; color: var(--lanes-text); border: 0; margin-bottom: 18px; }
|
|
161
|
-
.lanes-mobile .security-modal input[type=
|
|
159
|
+
.lanes-mobile .security-modal input[type=password] { display: block; width: 100%; padding: 12px; margin-bottom: 12px; font-size: 16px; min-height: 52px; border-radius: 12px; background: var(--lanes-bg); color: var(--lanes-text); border: 1px solid var(--lanes-border); appearance: none; }
|
|
162
160
|
.lanes-mobile .security-modal label { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 44px; color: var(--lanes-muted); margin-bottom: 0; }
|
|
163
|
-
.lanes-mobile .security-modal input[type=
|
|
161
|
+
.lanes-mobile .security-modal input[type=checkbox] { width: 22px; height: 22px; border-radius: 6px; flex: 0 0 22px; accent-color: var(--lanes-accent); }
|
|
164
162
|
.lanes-mobile .security-modal .button-row { display: flex; gap: 12px; margin-top: 20px; }
|
|
165
163
|
.lanes-mobile .security-modal button { min-height: 48px; border: 1px solid; border-radius: 12px; font-size: 15px; padding: 10px 20px; appearance: none; }
|
|
166
164
|
.lanes-mobile .security-modal .submit-btn { background: var(--lanes-accent); border-color: var(--lanes-accent); color: var(--lanes-on-accent); font-weight: 650; flex: 1; }
|
|
167
165
|
.lanes-mobile .security-modal .cancel-btn { background: transparent; color: var(--lanes-muted); border-color: var(--lanes-border); }
|
|
168
166
|
@media (orientation: landscape) and (max-height: 500px) {
|
|
169
167
|
html.lanes-mobile { --lanes-head: calc(48px + var(--lanes-safe-top)); --lanes-dock: calc(48px + var(--lanes-safe-bottom)); }
|
|
168
|
+
.lanes-header { flex-wrap: nowrap; }
|
|
169
|
+
.lanes-status { width: auto; }
|
|
170
170
|
.lanes-context { height: 46px; }
|
|
171
171
|
.lanes-dock { padding-top: 0; }
|
|
172
172
|
.lanes-dock .lanes-button { flex-direction: row; gap: 8px; min-height: 44px; }
|
|
@@ -180,9 +180,7 @@ html.lanes-keyboard { --lanes-dock: 48px; --lanes-keys: 48px; --lanes-safe-botto
|
|
|
180
180
|
.lanes-sheet-panel { animation: lanes-sheet-in 150ms ease-out; }
|
|
181
181
|
@keyframes lanes-sheet-in { from {transform: translateY(20px); opacity: .4;} to {transform: translateY(0); opacity: 1;} }
|
|
182
182
|
}
|
|
183
|
-
|
|
184
|
-
.lanes-filter-bar { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; padding: 0 12px; height: 44px; background: var(--lanes-chip); border: 1px solid var(--lanes-border); border-radius: 12px; }
|
|
183
|
+
.lanes-filter-bar { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 12px; height: 44px; background: var(--lanes-chip); border: 1px solid var(--lanes-border); border-radius: 12px; }
|
|
185
184
|
.lanes-filter-bar > svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--lanes-muted); }
|
|
186
185
|
.lanes-filter-bar input { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; outline: none; color: var(--lanes-text); font-size: 16px; caret-color: var(--lanes-accent); }
|
|
187
|
-
.lanes-filter-bar input::placeholder { color: var(--lanes-muted); }
|
|
188
186
|
.lanes-filter-bar input::-webkit-search-cancel-button { -webkit-appearance: none; }
|