@mjasnikovs/pi-task 0.13.6 → 0.13.7
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/dist/remote/push.d.ts +12 -3
- package/dist/remote/push.js +63 -9
- package/dist/remote/ui-script.d.ts +3 -0
- package/dist/remote/ui-script.js +804 -0
- package/dist/remote/ui-styles.d.ts +1 -0
- package/dist/remote/ui-styles.js +202 -0
- package/dist/remote/ui.js +4 -1000
- package/dist/shared/child-process.d.ts +27 -0
- package/dist/shared/child-process.js +151 -139
- package/dist/task/auto-orchestrator.js +3 -6
- package/dist/task/child-runner.js +1 -1
- package/dist/task/context-usage.d.ts +16 -0
- package/dist/task/context-usage.js +22 -0
- package/dist/task/external-context.d.ts +27 -0
- package/dist/task/external-context.js +93 -0
- package/dist/task/failure-classifier.js +1 -1
- package/dist/task/orchestrator.js +7 -13
- package/dist/task/parsers.d.ts +1 -15
- package/dist/task/parsers.js +17 -84
- package/dist/task/phases.d.ts +5 -7
- package/dist/task/phases.js +29 -84
- package/dist/task/prompts.d.ts +1 -0
- package/dist/task/prompts.js +9 -0
- package/dist/task/spec-validation.d.ts +23 -0
- package/dist/task/spec-validation.js +90 -0
- package/dist/task/widget.d.ts +1 -1
- package/dist/task/widget.js +1 -1
- package/dist/workers/pi-worker-docs.js +69 -58
- package/dist/workers/pi-worker-fetch.js +25 -21
- package/dist/workers/pi-worker-search.js +7 -13
- package/dist/workers/pi-worker.js +8 -14
- package/dist/workers/shared.d.ts +40 -0
- package/dist/workers/shared.js +31 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const STYLES = " :root {\n --base: #1e1e2e; --mantle: #181825; --crust: #11111b;\n --surface0: #313244; --surface1: #45475a; --surface2: #585b70;\n --text: #cdd6f4; --subtext1: #a6adc8; --subtext0: #7f849c;\n --mauve: #cba6f7; --blue: #89b4fa; --green: #a6e3a1; --red: #f38ba8;\n --yellow: #f9e2af; --peach: #fab387; --teal: #94e2d5;\n }\n *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }\n body {\n background: var(--base); color: var(--text);\n font-family: ui-monospace, monospace; height: 100dvh;\n display: flex; flex-direction: column; overflow: hidden;\n padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)\n 0px env(safe-area-inset-left, 0px);\n }\n #context-bar { height: 4px; background: var(--surface0); flex-shrink: 0; }\n #context-bar-fill { height: 100%; background: var(--mauve); width: 0%; transition: width 0.4s ease; }\n #header {\n background: var(--mantle); padding: 8px 16px;\n display: flex; justify-content: space-between; align-items: center;\n font-size: 13px; flex-shrink: 0; border-bottom: 1px solid var(--surface0);\n }\n #header .title { font-weight: bold; color: var(--mauve); letter-spacing: 0.05em;\n position: relative; animation: glitch 5s steps(1) infinite; }\n @keyframes glitch {\n 0%, 88%, 100% { text-shadow: none; transform: translate(0, 0); }\n 90% { text-shadow: -1px 0 var(--red), 1px 0 var(--teal); transform: translate(1px, -1px); }\n 92% { text-shadow: 1px 0 var(--red), -1px 0 var(--blue); transform: translate(-1px, 1px); }\n 94% { text-shadow: -1px 0 var(--blue), 1px 0 var(--red); transform: translate(1px, 0); }\n 96% { text-shadow: 1px 0 var(--teal), -1px 0 var(--red); transform: translate(-1px, 0); }\n }\n @media (prefers-reduced-motion: reduce) { #header .title { animation: none; } }\n #header .hgroup { display: flex; align-items: center; gap: 10px; }\n #bell {\n background: none; border: none; color: var(--subtext1); cursor: pointer;\n font-size: 15px; line-height: 1; padding: 2px; font-family: inherit;\n }\n #bell:hover { color: var(--text); }\n #bell.on { color: var(--mauve); }\n #chat-log {\n flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 16px;\n display: flex; flex-direction: column; gap: 8px;\n }\n #chat-log::-webkit-scrollbar { width: 6px; }\n #chat-log::-webkit-scrollbar-track { background: transparent; }\n #chat-log::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }\n .bubble {\n max-width: 82%; padding: 8px 12px; border-radius: 8px;\n line-height: 1.6; white-space: pre-wrap; word-break: break-word; font-size: 13px;\n }\n .bubble.user { background: var(--surface1); color: var(--text); align-self: flex-end; }\n .bubble.assistant { background: var(--surface0); color: var(--text); align-self: flex-start; }\n .bubble.error {\n background: var(--crust); color: var(--red); align-self: stretch;\n max-width: 100%; border: 1px solid var(--red); font-size: 12px;\n }\n /* Persistent inline system note (e.g. context compaction) \u2014 a muted centered\n divider, distinct from chat bubbles. */\n .sysnote {\n align-self: center; color: var(--subtext0); font-size: 11px;\n font-family: ui-monospace, monospace; letter-spacing: 0.5px;\n padding: 2px 10px; opacity: 0.85;\n }\n .bubble.thinking {\n display: flex; gap: 5px; align-items: center; padding: 10px 14px;\n }\n .bubble.thinking .spinner {\n color: var(--mauve); font-size: 15px; line-height: 1;\n font-family: ui-monospace, monospace;\n }\n .tool-call {\n background: var(--crust); border-radius: 6px; align-self: flex-start;\n max-width: 90%; font-size: 12px; border: 1px solid var(--surface0);\n }\n .tool-call summary {\n padding: 6px 10px; color: var(--subtext1); cursor: pointer;\n user-select: none; list-style: none;\n overflow-wrap: anywhere; word-break: break-word;\n }\n .tool-call summary::-webkit-details-marker { display: none; }\n .tool-call summary::before { content: \"\u25B6 \"; }\n .tool-call[open] > summary::before { content: \"\u25BC \"; }\n .tool-call.error > summary { color: var(--red); }\n .tool-call pre {\n padding: 8px 12px; overflow-y: auto;\n color: var(--subtext1); font-size: 11px; max-height: 280px;\n border-top: 1px solid var(--surface0);\n white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;\n }\n .tool-spin { color: var(--mauve); margin-left: 6px; font-family: ui-monospace, monospace; font-size: 13px; }\n .code-block {\n background: var(--crust); border: 1px solid var(--surface0);\n border-radius: 6px; overflow: hidden; margin: 4px 0;\n align-self: stretch; max-width: 100%; font-size: 12px;\n }\n .code-lang {\n background: var(--surface0); color: var(--subtext0);\n font-size: 10px; padding: 3px 10px; letter-spacing: 0.05em;\n }\n .code-block code {\n display: block; padding: 10px 12px; overflow-x: auto;\n color: var(--text); white-space: pre; line-height: 1.55;\n }\n .hl-kw { color: var(--mauve); }\n .hl-str { color: var(--green); }\n .hl-cmt { color: var(--subtext0); font-style: italic; }\n .hl-num { color: var(--blue); }\n .hl-fn { color: var(--yellow); }\n #input-bar {\n background: var(--mantle); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));\n display: flex; gap: 8px; flex-shrink: 0;\n border-top: 1px solid var(--surface0);\n position: relative;\n }\n #cmd-suggestions {\n display: none; position: absolute; bottom: 100%; left: 16px; right: 16px;\n background: var(--mantle); border: 1px solid var(--surface1);\n border-bottom: none; border-radius: 8px 8px 0 0;\n overflow: hidden; z-index: 10;\n }\n .cmd-item {\n display: flex; align-items: baseline; gap: 10px;\n padding: 7px 12px; cursor: pointer; font-size: 12px;\n border-bottom: 1px solid var(--surface0);\n }\n .cmd-item:last-child { border-bottom: none; }\n .cmd-item:hover, .cmd-item.active { background: var(--surface0); }\n .cmd-item .cmd-name { color: var(--blue); font-weight: bold; flex-shrink: 0; }\n .cmd-item .cmd-desc { color: var(--subtext0); }\n #input {\n flex: 1; background: var(--surface0); color: var(--text);\n border: none; border-radius: 6px; padding: 8px 12px;\n font-family: inherit; font-size: 13px; resize: none;\n outline: none; line-height: 1.5; min-height: 36px; max-height: 120px;\n }\n #input::placeholder { color: var(--subtext0); }\n #input:focus { box-shadow: 0 0 0 1px var(--mauve); }\n #send {\n background: var(--blue); color: var(--crust); border: none;\n border-radius: 6px; padding: 8px 16px; font-weight: bold;\n cursor: pointer; font-size: 13px; font-family: inherit;\n white-space: nowrap; align-self: flex-end;\n }\n #send:disabled, #input:disabled { opacity: 0.45; cursor: not-allowed; }\n #reconnect-overlay {\n display: none; position: fixed; inset: 0;\n background: rgba(30,30,46,0.88); color: var(--subtext1);\n justify-content: center; align-items: center;\n font-size: 13px; z-index: 100; letter-spacing: 0.03em;\n }\n #reconnect-overlay.visible { display: flex; }\n /* Trailing stream indicator: the same braille spinner as the thinking bubble,\n inline at the end of the streaming text (not a green blinking block). */\n .cursor {\n color: var(--mauve); margin-left: 2px;\n font-family: ui-monospace, monospace;\n }\n #status-panel { padding: 6px 12px; border-bottom: 1px solid var(--surface1);\n color: var(--subtext1); white-space: pre-wrap; font-size: 13px; display: none; }\n #prompt-card { position: fixed; left: 0; right: 0; bottom: 0; background: var(--mantle);\n border-top: 2px solid var(--mauve); padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px));\n display: none; z-index: 50; max-height: 80dvh; overflow-y: auto; }\n #prompt-card .q-label { color: var(--mauve); font-size: 11px; font-weight: 700;\n text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }\n #prompt-card .q { color: var(--text); margin-bottom: 12px; white-space: pre-wrap;\n font-size: 15px; line-height: 1.5; }\n #prompt-card .rec-panel { background: var(--surface0); border-left: 3px solid var(--green);\n border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; }\n #prompt-card .rec-label { color: var(--green); font-size: 11px; font-weight: 700;\n text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }\n #prompt-card .rec-text { color: var(--text); font-size: 15px; line-height: 1.5;\n white-space: pre-wrap; overflow-wrap: anywhere; }\n #prompt-card textarea { width: 100%; background: var(--surface0); color: var(--text);\n border: 1px solid var(--surface2); border-radius: 6px; padding: 10px; font-size: 15px;\n font-family: inherit; line-height: 1.5; resize: vertical; margin-bottom: 4px; }\n #prompt-card .row { display: flex; gap: 8px; margin-top: 12px; align-items: stretch;\n flex-wrap: wrap; }\n /* Recommendation answers can be long sentences, so stack them as a readable list. */\n #prompt-card .row.stacked { flex-direction: column; align-items: stretch; }\n #prompt-card .row.stacked button { flex: none; text-align: left; }\n #prompt-card .row.stacked button.cancel { align-self: center; text-align: center; }\n #prompt-card button { padding: 11px 16px; border-radius: 8px; border: none; cursor: pointer;\n font-family: inherit; font-size: 14px; font-weight: 600; transition: filter .15s ease; }\n #prompt-card button:hover { filter: brightness(1.08); }\n #prompt-card button.primary { background: var(--green); color: var(--crust);\n font-weight: 700; flex: 1; min-width: 160px; }\n #prompt-card button.secondary { background: var(--surface1); color: var(--text);\n flex: 1; min-width: 160px; }\n #prompt-card button.cancel { margin-left: auto; align-self: center; background: transparent;\n color: var(--subtext0); font-size: 12px; font-weight: 500; padding: 8px 10px; }\n #prompt-card button.cancel:hover { color: var(--red); filter: none; }\n #prompt-card button.cancel.armed { background: var(--red); color: var(--crust); font-weight: 700; }\n .toast { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px);\n right: calc(env(safe-area-inset-right, 0px) + 12px); max-width: calc(100vw - 24px);\n padding: 8px 12px; border-radius: 6px; overflow-wrap: anywhere; word-break: break-word;\n background: var(--surface1); color: var(--text); z-index: 60; }\n .toast.warning { background: var(--peach); color: var(--crust); }\n .toast.error { background: var(--red); color: var(--crust); }\n #viewer { position: fixed; inset: 24px; background: var(--mantle); border: 1px solid var(--surface2);\n border-radius: 8px; padding: 16px; overflow: auto; white-space: pre-wrap;\n overflow-wrap: anywhere; word-break: break-word; display: none; z-index: 70; }\n #viewer .close { position: absolute; top: 8px; right: 12px; cursor: pointer; color: var(--subtext0); }";
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
export const STYLES = ` :root {
|
|
2
|
+
--base: #1e1e2e; --mantle: #181825; --crust: #11111b;
|
|
3
|
+
--surface0: #313244; --surface1: #45475a; --surface2: #585b70;
|
|
4
|
+
--text: #cdd6f4; --subtext1: #a6adc8; --subtext0: #7f849c;
|
|
5
|
+
--mauve: #cba6f7; --blue: #89b4fa; --green: #a6e3a1; --red: #f38ba8;
|
|
6
|
+
--yellow: #f9e2af; --peach: #fab387; --teal: #94e2d5;
|
|
7
|
+
}
|
|
8
|
+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
9
|
+
body {
|
|
10
|
+
background: var(--base); color: var(--text);
|
|
11
|
+
font-family: ui-monospace, monospace; height: 100dvh;
|
|
12
|
+
display: flex; flex-direction: column; overflow: hidden;
|
|
13
|
+
padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
|
|
14
|
+
0px env(safe-area-inset-left, 0px);
|
|
15
|
+
}
|
|
16
|
+
#context-bar { height: 4px; background: var(--surface0); flex-shrink: 0; }
|
|
17
|
+
#context-bar-fill { height: 100%; background: var(--mauve); width: 0%; transition: width 0.4s ease; }
|
|
18
|
+
#header {
|
|
19
|
+
background: var(--mantle); padding: 8px 16px;
|
|
20
|
+
display: flex; justify-content: space-between; align-items: center;
|
|
21
|
+
font-size: 13px; flex-shrink: 0; border-bottom: 1px solid var(--surface0);
|
|
22
|
+
}
|
|
23
|
+
#header .title { font-weight: bold; color: var(--mauve); letter-spacing: 0.05em;
|
|
24
|
+
position: relative; animation: glitch 5s steps(1) infinite; }
|
|
25
|
+
@keyframes glitch {
|
|
26
|
+
0%, 88%, 100% { text-shadow: none; transform: translate(0, 0); }
|
|
27
|
+
90% { text-shadow: -1px 0 var(--red), 1px 0 var(--teal); transform: translate(1px, -1px); }
|
|
28
|
+
92% { text-shadow: 1px 0 var(--red), -1px 0 var(--blue); transform: translate(-1px, 1px); }
|
|
29
|
+
94% { text-shadow: -1px 0 var(--blue), 1px 0 var(--red); transform: translate(1px, 0); }
|
|
30
|
+
96% { text-shadow: 1px 0 var(--teal), -1px 0 var(--red); transform: translate(-1px, 0); }
|
|
31
|
+
}
|
|
32
|
+
@media (prefers-reduced-motion: reduce) { #header .title { animation: none; } }
|
|
33
|
+
#header .hgroup { display: flex; align-items: center; gap: 10px; }
|
|
34
|
+
#bell {
|
|
35
|
+
background: none; border: none; color: var(--subtext1); cursor: pointer;
|
|
36
|
+
font-size: 15px; line-height: 1; padding: 2px; font-family: inherit;
|
|
37
|
+
}
|
|
38
|
+
#bell:hover { color: var(--text); }
|
|
39
|
+
#bell.on { color: var(--mauve); }
|
|
40
|
+
#chat-log {
|
|
41
|
+
flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 16px;
|
|
42
|
+
display: flex; flex-direction: column; gap: 8px;
|
|
43
|
+
}
|
|
44
|
+
#chat-log::-webkit-scrollbar { width: 6px; }
|
|
45
|
+
#chat-log::-webkit-scrollbar-track { background: transparent; }
|
|
46
|
+
#chat-log::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }
|
|
47
|
+
.bubble {
|
|
48
|
+
max-width: 82%; padding: 8px 12px; border-radius: 8px;
|
|
49
|
+
line-height: 1.6; white-space: pre-wrap; word-break: break-word; font-size: 13px;
|
|
50
|
+
}
|
|
51
|
+
.bubble.user { background: var(--surface1); color: var(--text); align-self: flex-end; }
|
|
52
|
+
.bubble.assistant { background: var(--surface0); color: var(--text); align-self: flex-start; }
|
|
53
|
+
.bubble.error {
|
|
54
|
+
background: var(--crust); color: var(--red); align-self: stretch;
|
|
55
|
+
max-width: 100%; border: 1px solid var(--red); font-size: 12px;
|
|
56
|
+
}
|
|
57
|
+
/* Persistent inline system note (e.g. context compaction) — a muted centered
|
|
58
|
+
divider, distinct from chat bubbles. */
|
|
59
|
+
.sysnote {
|
|
60
|
+
align-self: center; color: var(--subtext0); font-size: 11px;
|
|
61
|
+
font-family: ui-monospace, monospace; letter-spacing: 0.5px;
|
|
62
|
+
padding: 2px 10px; opacity: 0.85;
|
|
63
|
+
}
|
|
64
|
+
.bubble.thinking {
|
|
65
|
+
display: flex; gap: 5px; align-items: center; padding: 10px 14px;
|
|
66
|
+
}
|
|
67
|
+
.bubble.thinking .spinner {
|
|
68
|
+
color: var(--mauve); font-size: 15px; line-height: 1;
|
|
69
|
+
font-family: ui-monospace, monospace;
|
|
70
|
+
}
|
|
71
|
+
.tool-call {
|
|
72
|
+
background: var(--crust); border-radius: 6px; align-self: flex-start;
|
|
73
|
+
max-width: 90%; font-size: 12px; border: 1px solid var(--surface0);
|
|
74
|
+
}
|
|
75
|
+
.tool-call summary {
|
|
76
|
+
padding: 6px 10px; color: var(--subtext1); cursor: pointer;
|
|
77
|
+
user-select: none; list-style: none;
|
|
78
|
+
overflow-wrap: anywhere; word-break: break-word;
|
|
79
|
+
}
|
|
80
|
+
.tool-call summary::-webkit-details-marker { display: none; }
|
|
81
|
+
.tool-call summary::before { content: "▶ "; }
|
|
82
|
+
.tool-call[open] > summary::before { content: "▼ "; }
|
|
83
|
+
.tool-call.error > summary { color: var(--red); }
|
|
84
|
+
.tool-call pre {
|
|
85
|
+
padding: 8px 12px; overflow-y: auto;
|
|
86
|
+
color: var(--subtext1); font-size: 11px; max-height: 280px;
|
|
87
|
+
border-top: 1px solid var(--surface0);
|
|
88
|
+
white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
|
|
89
|
+
}
|
|
90
|
+
.tool-spin { color: var(--mauve); margin-left: 6px; font-family: ui-monospace, monospace; font-size: 13px; }
|
|
91
|
+
.code-block {
|
|
92
|
+
background: var(--crust); border: 1px solid var(--surface0);
|
|
93
|
+
border-radius: 6px; overflow: hidden; margin: 4px 0;
|
|
94
|
+
align-self: stretch; max-width: 100%; font-size: 12px;
|
|
95
|
+
}
|
|
96
|
+
.code-lang {
|
|
97
|
+
background: var(--surface0); color: var(--subtext0);
|
|
98
|
+
font-size: 10px; padding: 3px 10px; letter-spacing: 0.05em;
|
|
99
|
+
}
|
|
100
|
+
.code-block code {
|
|
101
|
+
display: block; padding: 10px 12px; overflow-x: auto;
|
|
102
|
+
color: var(--text); white-space: pre; line-height: 1.55;
|
|
103
|
+
}
|
|
104
|
+
.hl-kw { color: var(--mauve); }
|
|
105
|
+
.hl-str { color: var(--green); }
|
|
106
|
+
.hl-cmt { color: var(--subtext0); font-style: italic; }
|
|
107
|
+
.hl-num { color: var(--blue); }
|
|
108
|
+
.hl-fn { color: var(--yellow); }
|
|
109
|
+
#input-bar {
|
|
110
|
+
background: var(--mantle); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
|
|
111
|
+
display: flex; gap: 8px; flex-shrink: 0;
|
|
112
|
+
border-top: 1px solid var(--surface0);
|
|
113
|
+
position: relative;
|
|
114
|
+
}
|
|
115
|
+
#cmd-suggestions {
|
|
116
|
+
display: none; position: absolute; bottom: 100%; left: 16px; right: 16px;
|
|
117
|
+
background: var(--mantle); border: 1px solid var(--surface1);
|
|
118
|
+
border-bottom: none; border-radius: 8px 8px 0 0;
|
|
119
|
+
overflow: hidden; z-index: 10;
|
|
120
|
+
}
|
|
121
|
+
.cmd-item {
|
|
122
|
+
display: flex; align-items: baseline; gap: 10px;
|
|
123
|
+
padding: 7px 12px; cursor: pointer; font-size: 12px;
|
|
124
|
+
border-bottom: 1px solid var(--surface0);
|
|
125
|
+
}
|
|
126
|
+
.cmd-item:last-child { border-bottom: none; }
|
|
127
|
+
.cmd-item:hover, .cmd-item.active { background: var(--surface0); }
|
|
128
|
+
.cmd-item .cmd-name { color: var(--blue); font-weight: bold; flex-shrink: 0; }
|
|
129
|
+
.cmd-item .cmd-desc { color: var(--subtext0); }
|
|
130
|
+
#input {
|
|
131
|
+
flex: 1; background: var(--surface0); color: var(--text);
|
|
132
|
+
border: none; border-radius: 6px; padding: 8px 12px;
|
|
133
|
+
font-family: inherit; font-size: 13px; resize: none;
|
|
134
|
+
outline: none; line-height: 1.5; min-height: 36px; max-height: 120px;
|
|
135
|
+
}
|
|
136
|
+
#input::placeholder { color: var(--subtext0); }
|
|
137
|
+
#input:focus { box-shadow: 0 0 0 1px var(--mauve); }
|
|
138
|
+
#send {
|
|
139
|
+
background: var(--blue); color: var(--crust); border: none;
|
|
140
|
+
border-radius: 6px; padding: 8px 16px; font-weight: bold;
|
|
141
|
+
cursor: pointer; font-size: 13px; font-family: inherit;
|
|
142
|
+
white-space: nowrap; align-self: flex-end;
|
|
143
|
+
}
|
|
144
|
+
#send:disabled, #input:disabled { opacity: 0.45; cursor: not-allowed; }
|
|
145
|
+
#reconnect-overlay {
|
|
146
|
+
display: none; position: fixed; inset: 0;
|
|
147
|
+
background: rgba(30,30,46,0.88); color: var(--subtext1);
|
|
148
|
+
justify-content: center; align-items: center;
|
|
149
|
+
font-size: 13px; z-index: 100; letter-spacing: 0.03em;
|
|
150
|
+
}
|
|
151
|
+
#reconnect-overlay.visible { display: flex; }
|
|
152
|
+
/* Trailing stream indicator: the same braille spinner as the thinking bubble,
|
|
153
|
+
inline at the end of the streaming text (not a green blinking block). */
|
|
154
|
+
.cursor {
|
|
155
|
+
color: var(--mauve); margin-left: 2px;
|
|
156
|
+
font-family: ui-monospace, monospace;
|
|
157
|
+
}
|
|
158
|
+
#status-panel { padding: 6px 12px; border-bottom: 1px solid var(--surface1);
|
|
159
|
+
color: var(--subtext1); white-space: pre-wrap; font-size: 13px; display: none; }
|
|
160
|
+
#prompt-card { position: fixed; left: 0; right: 0; bottom: 0; background: var(--mantle);
|
|
161
|
+
border-top: 2px solid var(--mauve); padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px));
|
|
162
|
+
display: none; z-index: 50; max-height: 80dvh; overflow-y: auto; }
|
|
163
|
+
#prompt-card .q-label { color: var(--mauve); font-size: 11px; font-weight: 700;
|
|
164
|
+
text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
|
|
165
|
+
#prompt-card .q { color: var(--text); margin-bottom: 12px; white-space: pre-wrap;
|
|
166
|
+
font-size: 15px; line-height: 1.5; }
|
|
167
|
+
#prompt-card .rec-panel { background: var(--surface0); border-left: 3px solid var(--green);
|
|
168
|
+
border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; }
|
|
169
|
+
#prompt-card .rec-label { color: var(--green); font-size: 11px; font-weight: 700;
|
|
170
|
+
text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
|
|
171
|
+
#prompt-card .rec-text { color: var(--text); font-size: 15px; line-height: 1.5;
|
|
172
|
+
white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
173
|
+
#prompt-card textarea { width: 100%; background: var(--surface0); color: var(--text);
|
|
174
|
+
border: 1px solid var(--surface2); border-radius: 6px; padding: 10px; font-size: 15px;
|
|
175
|
+
font-family: inherit; line-height: 1.5; resize: vertical; margin-bottom: 4px; }
|
|
176
|
+
#prompt-card .row { display: flex; gap: 8px; margin-top: 12px; align-items: stretch;
|
|
177
|
+
flex-wrap: wrap; }
|
|
178
|
+
/* Recommendation answers can be long sentences, so stack them as a readable list. */
|
|
179
|
+
#prompt-card .row.stacked { flex-direction: column; align-items: stretch; }
|
|
180
|
+
#prompt-card .row.stacked button { flex: none; text-align: left; }
|
|
181
|
+
#prompt-card .row.stacked button.cancel { align-self: center; text-align: center; }
|
|
182
|
+
#prompt-card button { padding: 11px 16px; border-radius: 8px; border: none; cursor: pointer;
|
|
183
|
+
font-family: inherit; font-size: 14px; font-weight: 600; transition: filter .15s ease; }
|
|
184
|
+
#prompt-card button:hover { filter: brightness(1.08); }
|
|
185
|
+
#prompt-card button.primary { background: var(--green); color: var(--crust);
|
|
186
|
+
font-weight: 700; flex: 1; min-width: 160px; }
|
|
187
|
+
#prompt-card button.secondary { background: var(--surface1); color: var(--text);
|
|
188
|
+
flex: 1; min-width: 160px; }
|
|
189
|
+
#prompt-card button.cancel { margin-left: auto; align-self: center; background: transparent;
|
|
190
|
+
color: var(--subtext0); font-size: 12px; font-weight: 500; padding: 8px 10px; }
|
|
191
|
+
#prompt-card button.cancel:hover { color: var(--red); filter: none; }
|
|
192
|
+
#prompt-card button.cancel.armed { background: var(--red); color: var(--crust); font-weight: 700; }
|
|
193
|
+
.toast { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px);
|
|
194
|
+
right: calc(env(safe-area-inset-right, 0px) + 12px); max-width: calc(100vw - 24px);
|
|
195
|
+
padding: 8px 12px; border-radius: 6px; overflow-wrap: anywhere; word-break: break-word;
|
|
196
|
+
background: var(--surface1); color: var(--text); z-index: 60; }
|
|
197
|
+
.toast.warning { background: var(--peach); color: var(--crust); }
|
|
198
|
+
.toast.error { background: var(--red); color: var(--crust); }
|
|
199
|
+
#viewer { position: fixed; inset: 24px; background: var(--mantle); border: 1px solid var(--surface2);
|
|
200
|
+
border-radius: 8px; padding: 16px; overflow: auto; white-space: pre-wrap;
|
|
201
|
+
overflow-wrap: anywhere; word-break: break-word; display: none; z-index: 70; }
|
|
202
|
+
#viewer .close { position: absolute; top: 8px; right: 12px; cursor: pointer; color: var(--subtext0); }`;
|