copilotz 1.0.0-rc.7 → 1.0.0-rc.9
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/CHANGELOG.md +57 -0
- package/README.md +2 -2
- package/hosts/web/pwa.js +1 -1
- package/hosts/web/server.js +8 -1
- package/hosts/web/style.d.ts +1 -1
- package/hosts/web/style.js +10 -0
- package/hosts/web/toolkit/button.js +6 -0
- package/hosts/web/toolkit/copy-button.js +4 -0
- package/hosts/web/toolkit/icon-button.js +6 -0
- package/hosts/web/toolkit/icon.d.ts +1 -0
- package/hosts/web/toolkit/icon.js +2 -0
- package/hosts/web/toolkit/input.js +6 -0
- package/package.json +1 -1
- package/plugins/access/spaces/contract.d.ts +24 -3
- package/plugins/access/spaces/views/web/palette.js +10 -7
- package/plugins/access/spaces/views/web/panel.d.ts +3 -2
- package/plugins/access/spaces/views/web/panel.js +28 -13
- package/plugins/access/spaces/views/web/sections.d.ts +31 -0
- package/plugins/access/spaces/views/web/sections.js +22 -0
- package/plugins/access/spaces/views/web/space.d.ts +4 -2
- package/plugins/access/spaces/views/web/space.js +16 -6
- package/plugins/access/spaces/views/web/style.d.ts +1 -1
- package/plugins/access/spaces/views/web/style.js +39 -0
- package/plugins/access/spaces/views/web/tabs.d.ts +18 -6
- package/plugins/access/spaces/views/web/tabs.js +24 -8
- package/plugins/access/spaces/web.js +16 -2
- package/plugins/agents/chat/collections/message.d.ts +45 -0
- package/plugins/agents/chat/collections/message.js +14 -0
- package/plugins/agents/chat/processors/turn.js +8 -2
- package/plugins/agents/chat/shared/delivery.d.ts +2 -1
- package/plugins/agents/chat/shared/delivery.js +2 -0
- package/plugins/agents/chat/shared/types.d.ts +13 -2
- package/plugins/agents/chat/views/message.d.ts +4 -1
- package/plugins/agents/chat/views/message.js +10 -2
- package/plugins/agents/chat/views/prompt.d.ts +3 -1
- package/plugins/agents/chat/views/prompt.js +12 -4
- package/plugins/agents/chat/views/terminal/agent-prompt.js +2 -2
- package/plugins/agents/chat/views/web/style.d.ts +1 -1
- package/plugins/agents/chat/views/web/style.js +10 -6
- package/plugins/agents/history/collections/outline.d.ts +15 -0
- package/plugins/agents/history/collections/outline.js +2 -0
- package/plugins/agents/history/mod.d.ts +8 -6
- package/plugins/agents/history/mod.js +8 -6
- package/plugins/agents/history/processors/compact.d.ts +1 -1
- package/plugins/agents/history/processors/compact.js +52 -29
- package/plugins/agents/memory/collections/memory.js +15 -4
- package/plugins/agents/memory/resources/context.d.ts +9 -1
- package/plugins/agents/memory/resources/context.js +7 -1
- package/plugins/agents/memory/shared/search.d.ts +3 -1
- package/plugins/agents/memory/shared/search.js +10 -2
- package/plugins/agents/memory/views/context.d.ts +4 -1
- package/plugins/agents/memory/views/context.js +27 -11
- package/plugins/agents/memory/web.js +9 -1
- package/plugins/agents/routines/web.js +1 -1
- package/plugins/agents/skills/web.js +3 -1
- package/plugins/compute/apps/web.js +3 -1
- package/plugins/compute/computers/program/version.d.ts +1 -1
- package/plugins/compute/computers/program/version.js +1 -1
- package/plugins/compute/computers/resources/downloads.js +1 -1
- package/plugins/compute/computers/views/web/asks.d.ts +3 -1
- package/plugins/compute/computers/views/web/asks.js +5 -3
- package/plugins/compute/computers/web.js +9 -2
- package/plugins/interfaces/api/web.js +3 -1
- package/plugins/interfaces/whatsapp/collections/phone.d.ts +1 -1
- package/plugins/interfaces/whatsapp/web.js +8 -1
- package/plugins/models/adapters/llm/openai.js +57 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,60 @@
|
|
|
1
|
+
## 1.0.0-rc.9 — 2026-10-31
|
|
2
|
+
|
|
3
|
+
- **A space's page has a few tabs, and their sections.** A `spaceTabs` entry `under` another tab is
|
|
4
|
+
a section of it, listed in its menu, with an optional `group` heading; a tab with sections names
|
|
5
|
+
its own View among them (`own`) and shows them in a menu beside (`menu: "side"`) or as tabs above
|
|
6
|
+
(`top`, the default). A section's key opens its tab there (`?tab=memories`), so every address
|
|
7
|
+
still works, and the palette lists sections too. The tabs now: Chats, Board and Documents (an
|
|
8
|
+
app's), Computer (Computers, Environment, Apps), Routines and Settings (General, Members,
|
|
9
|
+
Memories, Skills, Channels: WhatsApp, API). Where there's no room for a menu beside (a phone),
|
|
10
|
+
Settings is a list to tap into, and a section says how to get back; in the side panel, sections
|
|
11
|
+
are tabs under the panel's. Who's waiting to join shows on Settings and on Members.
|
|
12
|
+
- **On phones, an app's page.** The viewport spans the screen (`viewport-fit=cover`; the composer
|
|
13
|
+
keeps clear of the home bar) and the keyboard resizes the page where browsers allow
|
|
14
|
+
(`interactive-widget`); pinching still zooms. The page never scrolls sideways or bounces as a
|
|
15
|
+
whole, and a tap is a tap (no double-tap zoom, no grey flash). On touch screens, text is 16px,
|
|
16
|
+
fields too at least (so Safari never zooms in on one you type in), and buttons, icon buttons,
|
|
17
|
+
fields and copy buttons are 44px targets (40px small).
|
|
18
|
+
- **A conversation scrolls up and down only.** What's wider (a table, code) scrolls in its own box;
|
|
19
|
+
text wraps; a file's chip and a tool call being written no longer widen it.
|
|
20
|
+
- **What an agent asks you never covers the conversation.** The command or the file it shows scrolls
|
|
21
|
+
within a few lines (a command can wrap into dozens), with a copy button, so the answers are always
|
|
22
|
+
in sight; the cards keep to at most 60% of the chat's height and scroll there.
|
|
23
|
+
|
|
24
|
+
## 1.0.0-rc.8 — 2026-10-31
|
|
25
|
+
|
|
26
|
+
- **Agents' prompts only grow, so the prompt cache keeps them whole.** A turn context (the
|
|
27
|
+
computers', the spaces elsewhere, memories, an app's) is sent after the conversation only when it
|
|
28
|
+
says something new: when its text isn't what the agent was last told there. The turn's first
|
|
29
|
+
message keeps what it was told (`told`, `[{ name, text }]`, a private field: people's reads come
|
|
30
|
+
without it), and later turns are sent it there. So each model call starts with the whole call
|
|
31
|
+
before it, tool steps and earlier contexts included, where before a turn's context, dropped the
|
|
32
|
+
next turn, cut the cached prefix at the turn's start. `Prompt.turn` is now `{ name, text }[]`:
|
|
33
|
+
what's new this turn.
|
|
34
|
+
- **OpenAI's newer models keep the prefix where told.** Since GPT-5.6, OpenAI caches only at
|
|
35
|
+
breakpoints: its implicit one falls at the end of the latest user message, the turn's context,
|
|
36
|
+
which the next turn didn't send, so a conversation reused only its system text. The Responses
|
|
37
|
+
adapter now marks a message with `cache` (the end of the history) with an explicit
|
|
38
|
+
`prompt_cache_breakpoint`, on the user's or tool's input at or before it. A model that refuses
|
|
39
|
+
breakpoints (earlier ones, other servers) is asked again without, and never again. What OpenAI
|
|
40
|
+
wrote to the cache is metered as `cacheWrite` (billed at a premium by models that report it).
|
|
41
|
+
- **Memory: the system text says how to remember; what's remembered is told.** The `memory` context
|
|
42
|
+
(system) is the guide alone, the same in every conversation, so the system text is cached across
|
|
43
|
+
all of an agent's conversations in a space. Core memories about who's here are the new
|
|
44
|
+
`remembered` turn context: those learned before the conversation began, told at its start and kept
|
|
45
|
+
there. Core memories learned since come up in `recall` when relevant (query `relevant` takes
|
|
46
|
+
`since`; `core` takes `before`), so a memory learned mid-conversation never rewrites its prompt.
|
|
47
|
+
- **History summarizes a message when it leaves the tail**, not when it comes: only then is its line
|
|
48
|
+
read (in the outline, or by `zoom`). A conversation that stays within the tail never calls the
|
|
49
|
+
summarizer; a longer one builds the same tree, in batches, as its tail shrinks. The outline keeps
|
|
50
|
+
the tail's message ids (`tailIds`); threads summarized before keep the lines they have.
|
|
51
|
+
- Measured on Compass's own plugins with real OpenAI calls (gpt-6.1-sol; a 12-turn conversation,
|
|
52
|
+
then a 4-turn one with tool steps, the same agent in the same space): the agent's calls read 95.5%
|
|
53
|
+
of their input from the prompt cache, up from 59.3%, and every model call in the run (memory
|
|
54
|
+
extraction included) 92.4%, up from 44.4%, with no summarizer call (101 before). A 24-turn
|
|
55
|
+
conversation that outgrew its tail: 92.4% for the agent, its one miss when the outline arrives
|
|
56
|
+
(the prompt is new from there).
|
|
57
|
+
|
|
1
58
|
## 1.0.0-rc.7 — 2026-10-30
|
|
2
59
|
|
|
3
60
|
- **Agents choose among a space's computers.** Every computer tool (the terminal, jobs, files, the
|
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ bun add copilotz # Bun
|
|
|
22
22
|
deno add jsr:@copilotz/copilotz # Deno (or `deno add npm:copilotz`)
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
On Deno, name it `copilotz` in `deno.json` (`"copilotz": "jsr:@copilotz/copilotz@^1.0.0-rc.
|
|
25
|
+
On Deno, name it `copilotz` in `deno.json` (`"copilotz": "jsr:@copilotz/copilotz@^1.0.0-rc.9"`), and
|
|
26
26
|
the imports below are the same everywhere. Some pieces need a package of their own, installed beside
|
|
27
27
|
it: `esbuild` to bundle the web host on Node, `@electric-sql/pglite` for PostgreSQL in the process,
|
|
28
28
|
and `@types/react` for the front ends' types.
|
|
@@ -204,7 +204,7 @@ and an app serves it from there by default:
|
|
|
204
204
|
import { computerDownloads } from "copilotz/plugins/compute/downloads";
|
|
205
205
|
|
|
206
206
|
plugins: [...plugins, await computerDownloads()], // this Copilotz's release
|
|
207
|
-
plugins: [...plugins, await computerDownloads({ dir: "dist/computer/1.0.0-rc.
|
|
207
|
+
plugins: [...plugins, await computerDownloads({ dir: "dist/computer/1.0.0-rc.9" })], // its own: /computer/download/
|
|
208
208
|
plugins: [...plugins, await computerDownloads({ url: "https://downloads.example.com/computer/" })], // or elsewhere
|
|
209
209
|
```
|
|
210
210
|
|
package/hosts/web/pwa.js
CHANGED
|
@@ -92,7 +92,7 @@ function offlinePage(theme, title) {
|
|
|
92
92
|
? `@media (prefers-color-scheme: dark){body{background:${dark.bg};color:${dark.fg}}p{color:${dark.muted ?? dark.fg}}button{background:${dark.button ?? dark.fg};color:${dark.on ?? dark.bg}}}`
|
|
93
93
|
: "";
|
|
94
94
|
return `<!doctype html><html lang="en"><head><meta charset="utf-8">` +
|
|
95
|
-
`<meta name="viewport" content="width=device-width, initial-scale=1">` +
|
|
95
|
+
`<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content">` +
|
|
96
96
|
`<title>${safe(title)}: offline</title><style>` +
|
|
97
97
|
`body{margin:0;min-height:100vh;display:grid;place-items:center;font:15px/1.55 ui-sans-serif,system-ui,sans-serif;` +
|
|
98
98
|
`background:${light.bg};color:${light.fg}}main{max-width:360px;padding:24px;text-align:center}` +
|
package/hosts/web/server.js
CHANGED
|
@@ -91,11 +91,18 @@ const installable = (options) => {
|
|
|
91
91
|
"",
|
|
92
92
|
].join("\n");
|
|
93
93
|
};
|
|
94
|
+
/**
|
|
95
|
+
* The page: on phones, an app's. It spans the whole screen (`viewport-fit=cover`:
|
|
96
|
+
* the shell keeps its content clear of the notch and the home bar with the
|
|
97
|
+
* safe-area insets), and the keyboard resizes it rather than covering it
|
|
98
|
+
* (`interactive-widget`, where browsers take it). Zoom stays: nothing caps
|
|
99
|
+
* the scale, so people can still pinch to read.
|
|
100
|
+
*/
|
|
94
101
|
const page = (options, entry) => `<!doctype html>
|
|
95
102
|
<html lang="en">
|
|
96
103
|
<head>
|
|
97
104
|
<meta charset="utf-8">
|
|
98
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
105
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content">
|
|
99
106
|
${look(options.theme)}${installable(options)}<title>${options.title ?? "Copilotz"}</title>
|
|
100
107
|
<script id="copilotz-config" type="application/json">${
|
|
101
108
|
// Escaped, so nothing in it can end the script.
|
package/hosts/web/style.d.ts
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* pieces (`toolkit/`); a front end's own CSS is in no layer, so it always
|
|
6
6
|
* wins over both.
|
|
7
7
|
*/
|
|
8
|
-
export declare const BASE = "\n@layer copilotz-base, copilotz-toolkit;\n@layer copilotz-base {\n:root {\n font: 15px/1.55 var(--font-sans);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n -webkit-text-size-adjust: 100%;\n text-size-adjust: 100%;\n}\n*, *::before, *::after { box-sizing: border-box; }\nhtml, body, #app { height: 100%; }\nbody { margin: 0; background: var(--background); color: var(--foreground); }\nbutton, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }\na { color: inherit; }\ncode, kbd, pre, samp { font-family: var(--font-mono); font-variant-ligatures: none; }\n:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }\n::selection { background: color-mix(in oklab, var(--primary-text) 28%, transparent); }\n.copilotz-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;\n overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }\n@media (prefers-reduced-motion: reduce) {\n *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;\n transition-duration: .01ms !important; scroll-behavior: auto !important; }\n}\n}\n";
|
|
8
|
+
export declare const BASE = "\n@layer copilotz-base, copilotz-toolkit;\n@layer copilotz-base {\n:root {\n font: 15px/1.55 var(--font-sans);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n -webkit-text-size-adjust: 100%;\n text-size-adjust: 100%;\n}\n*, *::before, *::after { box-sizing: border-box; }\nhtml, body, #app { height: 100%; }\n/* An app's page: it never scrolls sideways or bounces as a whole (its panes scroll); a tap is a\n tap (no double-tap zoom, no grey flash), and pinching still zooms. */\nhtml, body { overflow-x: clip; overscroll-behavior: none; }\nhtml { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }\nbody { margin: 0; background: var(--background); color: var(--foreground); }\nbutton, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }\na { color: inherit; }\ncode, kbd, pre, samp { font-family: var(--font-mono); font-variant-ligatures: none; }\n:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }\n::selection { background: color-mix(in oklab, var(--primary-text) 28%, transparent); }\n.copilotz-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;\n overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }\n/* Touch screens: text a little larger, and fields at 16px at least, so phones never zoom in on\n one you type in (Safari does under 16px). Important, so every field's size gives way. */\n@media (pointer: coarse) {\n :root { font-size: 16px; }\n input, textarea, select { font-size: max(16px, 1em) !important; }\n}\n@media (prefers-reduced-motion: reduce) {\n *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;\n transition-duration: .01ms !important; scroll-behavior: auto !important; }\n}\n}\n";
|
package/hosts/web/style.js
CHANGED
|
@@ -18,6 +18,10 @@ export const BASE = `
|
|
|
18
18
|
}
|
|
19
19
|
*, *::before, *::after { box-sizing: border-box; }
|
|
20
20
|
html, body, #app { height: 100%; }
|
|
21
|
+
/* An app's page: it never scrolls sideways or bounces as a whole (its panes scroll); a tap is a
|
|
22
|
+
tap (no double-tap zoom, no grey flash), and pinching still zooms. */
|
|
23
|
+
html, body { overflow-x: clip; overscroll-behavior: none; }
|
|
24
|
+
html { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
|
|
21
25
|
body { margin: 0; background: var(--background); color: var(--foreground); }
|
|
22
26
|
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
|
|
23
27
|
a { color: inherit; }
|
|
@@ -26,6 +30,12 @@ code, kbd, pre, samp { font-family: var(--font-mono); font-variant-ligatures: no
|
|
|
26
30
|
::selection { background: color-mix(in oklab, var(--primary-text) 28%, transparent); }
|
|
27
31
|
.copilotz-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
|
|
28
32
|
overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
|
|
33
|
+
/* Touch screens: text a little larger, and fields at 16px at least, so phones never zoom in on
|
|
34
|
+
one you type in (Safari does under 16px). Important, so every field's size gives way. */
|
|
35
|
+
@media (pointer: coarse) {
|
|
36
|
+
:root { font-size: 16px; }
|
|
37
|
+
input, textarea, select { font-size: max(16px, 1em) !important; }
|
|
38
|
+
}
|
|
29
39
|
@media (prefers-reduced-motion: reduce) {
|
|
30
40
|
*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
|
|
31
41
|
transition-duration: .01ms !important; scroll-behavior: auto !important; }
|
|
@@ -15,6 +15,12 @@ const SHEET = sheet("button", `
|
|
|
15
15
|
.copilotz-button[aria-busy=true] { cursor: progress; }
|
|
16
16
|
.copilotz-button-sm { min-height: 30px; padding: 0 11px; gap: 6px; font-size: 13px; }
|
|
17
17
|
.copilotz-button-lg { min-height: 44px; padding: 0 18px; font-size: 15px; }
|
|
18
|
+
/* Touch screens: targets a finger finds (44px, as phones' own guidelines ask) */
|
|
19
|
+
@media (pointer: coarse) {
|
|
20
|
+
.copilotz-button { min-height: 44px; }
|
|
21
|
+
.copilotz-button-sm { min-height: 40px; }
|
|
22
|
+
.copilotz-button-lg { min-height: 48px; }
|
|
23
|
+
}
|
|
18
24
|
.copilotz-button-outline { background: var(--card); color: var(--card-foreground); border-color: var(--input);
|
|
19
25
|
box-shadow: var(--shadow-sm); }
|
|
20
26
|
.copilotz-button-outline:hover:not(:disabled) { background: var(--muted); }
|
|
@@ -9,6 +9,10 @@ const SHEET = sheet("copy-button", `
|
|
|
9
9
|
font-size: 12px; cursor: pointer; transition: background-color .15s, color .15s; }
|
|
10
10
|
.copilotz-copy:hover { background: var(--accent); color: var(--accent-foreground); }
|
|
11
11
|
.copilotz-copy span:empty { display: none; }
|
|
12
|
+
/* Touch screens: a target a finger finds */
|
|
13
|
+
@media (pointer: coarse) {
|
|
14
|
+
.copilotz-copy { height: 40px; min-width: 40px; justify-content: center; }
|
|
15
|
+
}
|
|
12
16
|
`);
|
|
13
17
|
export function CopyButton({ text, label = "Copy" }) {
|
|
14
18
|
const [copied, setCopied] = useState(false);
|
|
@@ -14,6 +14,12 @@ const SHEET = sheet("icon-button", `
|
|
|
14
14
|
.copilotz-icon-button:disabled { opacity: .5; cursor: default; }
|
|
15
15
|
.copilotz-icon-button-sm { width: 28px; height: 28px; border-radius: var(--radius-sm); }
|
|
16
16
|
.copilotz-icon-button-lg { width: 38px; height: 38px; }
|
|
17
|
+
/* Touch screens: targets a finger finds (44px, as phones' own guidelines ask) */
|
|
18
|
+
@media (pointer: coarse) {
|
|
19
|
+
.copilotz-icon-button { width: 44px; height: 44px; }
|
|
20
|
+
.copilotz-icon-button-sm { width: 40px; height: 40px; }
|
|
21
|
+
.copilotz-icon-button-lg { width: 48px; height: 48px; }
|
|
22
|
+
}
|
|
17
23
|
.copilotz-icon-button-outline { background: var(--card); color: var(--card-foreground); border-color: var(--input);
|
|
18
24
|
box-shadow: var(--shadow-sm); }
|
|
19
25
|
.copilotz-icon-button-outline:hover:not(:disabled) { background: var(--muted); color: var(--card-foreground); }
|
|
@@ -19,6 +19,7 @@ declare const PATHS: {
|
|
|
19
19
|
readonly building: "M4 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16M16 9h2a2 2 0 0 1 2 2v10M2 21h20M8 7h4M8 11h4M8 15h4";
|
|
20
20
|
readonly chart: "M3 3v18h18M8 17v-5M13 17V8M18 17v-8";
|
|
21
21
|
readonly chat: "M21 12a8.5 8.5 0 0 1-12.4 7.6L3 21l1.4-5.4A8.5 8.5 0 1 1 21 12z";
|
|
22
|
+
readonly "chat-round": "M7.9 20A9 9 0 1 0 4 16.1L2 22z";
|
|
22
23
|
readonly check: "M5 12.5 9.5 17 19 7.5";
|
|
23
24
|
readonly "check-circle": "M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0zM8 12.5l2.7 2.7L16 9.8";
|
|
24
25
|
readonly chevron: "M9 6l6 6-6 6";
|
|
@@ -11,6 +11,8 @@ const PATHS = {
|
|
|
11
11
|
building: "M4 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16M16 9h2a2 2 0 0 1 2 2v10M2 21h20M8 7h4M8 11h4M8 15h4",
|
|
12
12
|
chart: "M3 3v18h18M8 17v-5M13 17V8M18 17v-8",
|
|
13
13
|
chat: "M21 12a8.5 8.5 0 0 1-12.4 7.6L3 21l1.4-5.4A8.5 8.5 0 1 1 21 12z",
|
|
14
|
+
// A round bubble: a messaging app's channel (WhatsApp).
|
|
15
|
+
"chat-round": "M7.9 20A9 9 0 1 0 4 16.1L2 22z",
|
|
14
16
|
check: "M5 12.5 9.5 17 19 7.5",
|
|
15
17
|
"check-circle": "M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0zM8 12.5l2.7 2.7L16 9.8",
|
|
16
18
|
chevron: "M9 6l6 6-6 6",
|
|
@@ -20,6 +20,12 @@ const SHEET = sheet("input", `
|
|
|
20
20
|
.copilotz-input-lg { height: 44px; padding: 0 14px; }
|
|
21
21
|
.copilotz-input-lg > input { font-size: 15px; }
|
|
22
22
|
.copilotz-input-end { display: flex; align-items: center; gap: 2px; }
|
|
23
|
+
/* Touch screens: fields a finger finds (their text is 16px at least: the page's base) */
|
|
24
|
+
@media (pointer: coarse) {
|
|
25
|
+
.copilotz-input { height: 44px; }
|
|
26
|
+
.copilotz-input-sm { height: 40px; }
|
|
27
|
+
.copilotz-input-lg { height: 48px; }
|
|
28
|
+
}
|
|
23
29
|
`);
|
|
24
30
|
export function Input({ icon, end, size = "md", invalid, className, ...rest }) {
|
|
25
31
|
const bad = invalid ?? (rest["aria-invalid"] === true || rest["aria-invalid"] === "true");
|
package/package.json
CHANGED
|
@@ -21,7 +21,12 @@
|
|
|
21
21
|
* `{ in, mode }`: `page`, the tab's content under the space's header (the
|
|
22
22
|
* page is its frame: no title of its own), or `panel`, the same View,
|
|
23
23
|
* compact. Lowest `order` first; the address says which tab is open
|
|
24
|
-
* (`/space/<id>?tab=chats`), the first when it says none.
|
|
24
|
+
* (`/space/<id>?tab=chats`), the first when it says none. One `under`
|
|
25
|
+
* another tab is a section of it, in its menu: the space's settings take
|
|
26
|
+
* members, memories, skills, its channels (`group`: "Channels") and the
|
|
27
|
+
* API, in a menu beside them (`menu: "side"`, their own View named
|
|
28
|
+
* `own`: "General"); the computer takes its environment and apps, as tabs
|
|
29
|
+
* above. A section's key opens its tab there (`?tab=memories`).
|
|
25
30
|
* - `spaceSidebar`: what a space shows under it in the sidebar once it's
|
|
26
31
|
* unfolded (its latest chats): a View with item `{ _id }` and hints
|
|
27
32
|
* `{ in, path }`, the address open, to mark what's current.
|
|
@@ -33,7 +38,10 @@
|
|
|
33
38
|
*
|
|
34
39
|
* ```ts
|
|
35
40
|
* resources: {
|
|
36
|
-
* spaceTabs: {
|
|
41
|
+
* spaceTabs: {
|
|
42
|
+
* notes: { title: "Notes", view: "notes", icon: "note", order: 50 },
|
|
43
|
+
* slack: { title: "Slack", view: "slack.space", under: "settings", group: "Channels" },
|
|
44
|
+
* },
|
|
37
45
|
* spaceSidebar: { chats: { view: "chats.recent", title: "chats" } },
|
|
38
46
|
* spaceInvite: { agents: { title: "Agents", view: "agent.add", personal: true } },
|
|
39
47
|
* }
|
|
@@ -49,13 +57,26 @@ export type { Profile } from "./collections/profile.js";
|
|
|
49
57
|
export { idsIn, nameOf, namesFor, namesIn, namesOf, type NamesResource, PROFILE, withNames, } from "./shared/names.js";
|
|
50
58
|
export { PERSONAL } from "./shared/personal.js";
|
|
51
59
|
export { AGENT_ROLES } from "./views/web/who.js";
|
|
52
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* A `spaceTabs` resource: a tab on a space's page and in its side panel, or,
|
|
62
|
+
* `under` another tab, one of that tab's sections (the space's settings take
|
|
63
|
+
* memories, skills, channels; its computer, its environment and apps).
|
|
64
|
+
*/
|
|
53
65
|
export type SpaceTab = {
|
|
54
66
|
title: string;
|
|
55
67
|
/** The View it shows: item `{ _id }`, hints `{ in, mode: "page" | "panel" }`. */
|
|
56
68
|
view: string;
|
|
57
69
|
icon?: IconName;
|
|
70
|
+
/** Among its tabs, or among its tab's sections: lowest first. */
|
|
58
71
|
order?: number;
|
|
72
|
+
/** A section of this tab (its key), listed in its menu rather than among the tabs. */
|
|
73
|
+
under?: string;
|
|
74
|
+
/** Among its tab's sections, the heading it's listed under ("Channels"). */
|
|
75
|
+
group?: string;
|
|
76
|
+
/** A tab with sections: its own View's name among them ("General"; its title otherwise). */
|
|
77
|
+
own?: string;
|
|
78
|
+
/** A tab with sections: a menu beside them (`side`, as settings) or tabs above (`top`). */
|
|
79
|
+
menu?: "side" | "top";
|
|
59
80
|
};
|
|
60
81
|
/** A `spaceSidebar` resource: a View under a space in the sidebar, item `{ _id }`, hints `{ in, path }`. */
|
|
61
82
|
export type SpaceSidebar = {
|
|
@@ -103,14 +103,17 @@ export const spacesPaletteView = (_, ctx) => {
|
|
|
103
103
|
step: leaveStep(here, call),
|
|
104
104
|
});
|
|
105
105
|
if (searching) {
|
|
106
|
+
// Its tabs, and their sections (Memories: in Settings).
|
|
106
107
|
for (const tab of tabsOf(ctx.resources.spaceTabs)) {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
108
|
+
for (const part of [tab, ...tab.sections]) {
|
|
109
|
+
items.push({
|
|
110
|
+
key: `space:tab:${part.key}`,
|
|
111
|
+
label: part.title,
|
|
112
|
+
...(part.icon ? { icon: part.icon } : {}),
|
|
113
|
+
description: part === tab ? name : `${name} · ${tab.title}`,
|
|
114
|
+
href: spacePath(here._id, part.key, part === tab && tab.sections.length > 0),
|
|
115
|
+
});
|
|
116
|
+
}
|
|
114
117
|
}
|
|
115
118
|
}
|
|
116
119
|
groups.push({ title: "This space", order: 10, items });
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
* shell's `panel`): its name, a link to its page, and its tabs, compact:
|
|
4
4
|
* the same Views as on its page, with hints `{ in, mode: "panel" }`, each
|
|
5
5
|
* read only once chosen (and kept while the panel is open, so a terminal
|
|
6
|
-
* keeps what it showed).
|
|
7
|
-
*
|
|
6
|
+
* keeps what it showed). A tab with sections (its settings, its computer)
|
|
7
|
+
* shows them as tabs of its own under it. The tab (or section) last chosen
|
|
8
|
+
* opens next time. Where tabs don't all fit, the others show as icons.
|
|
8
9
|
*/
|
|
9
10
|
import { type ReactNode } from "react";
|
|
10
11
|
import type { ViewContext } from "../../../../../runtime/mod.js";
|
|
@@ -4,13 +4,15 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
4
4
|
* shell's `panel`): its name, a link to its page, and its tabs, compact:
|
|
5
5
|
* the same Views as on its page, with hints `{ in, mode: "panel" }`, each
|
|
6
6
|
* read only once chosen (and kept while the panel is open, so a terminal
|
|
7
|
-
* keeps what it showed).
|
|
8
|
-
*
|
|
7
|
+
* keeps what it showed). A tab with sections (its settings, its computer)
|
|
8
|
+
* shows them as tabs of its own under it. The tab (or section) last chosen
|
|
9
|
+
* opens next time. Where tabs don't all fit, the others show as icons.
|
|
9
10
|
*/
|
|
10
11
|
import { useEffect, useId, useState } from "react";
|
|
11
12
|
import { Avatar, Icon, IconButton, keep, kept, LazyView, Skeleton, Tabs, } from "../../../../../hosts/web/mod.js";
|
|
12
13
|
import { STYLE } from "./style.js";
|
|
13
|
-
import {
|
|
14
|
+
import { TabSections } from "./sections.js";
|
|
15
|
+
import { chosen, sectionOf, spacePath, tabsOf } from "./tabs.js";
|
|
14
16
|
import { ownersOf, spaceName } from "./who.js";
|
|
15
17
|
import { namesIn } from "../../shared/names.js";
|
|
16
18
|
export const spacePanelView = (item, ctx) => {
|
|
@@ -30,25 +32,38 @@ function SpacePanel({ space, tabs, viewer = "", names }) {
|
|
|
30
32
|
const key = `copilotz-space-panel-tab:${viewer}`;
|
|
31
33
|
const [asked, setAsked] = useState(() => kept(key) ?? undefined);
|
|
32
34
|
const tab = chosen(tabs, asked);
|
|
33
|
-
const
|
|
35
|
+
const section = sectionOf(tab, asked);
|
|
36
|
+
// What's shown: the tab's own View, or its section.
|
|
37
|
+
const shown = section ?? tab;
|
|
38
|
+
const [opened, setOpened] = useState(() => shown ? [shown.key] : []);
|
|
34
39
|
useEffect(() => {
|
|
35
|
-
if (
|
|
36
|
-
setOpened([...opened,
|
|
37
|
-
}, [
|
|
40
|
+
if (shown && !opened.includes(shown.key))
|
|
41
|
+
setOpened([...opened, shown.key]);
|
|
42
|
+
}, [shown?.key]);
|
|
43
|
+
const pick = (next) => {
|
|
44
|
+
setAsked(next);
|
|
45
|
+
keep(key, next);
|
|
46
|
+
};
|
|
38
47
|
const id = useId();
|
|
39
48
|
const personal = space.kind === "personal";
|
|
40
49
|
const name = spaceName(space, viewer, names);
|
|
41
50
|
return (_jsxs("section", { className: "space-panel", "aria-label": `${name}, beside this chat`, children: [_jsxs("header", { className: "space-panel-head", children: [personal
|
|
42
51
|
? (_jsx("span", { className: "space-panel-mark", children: _jsx(Icon, { name: "person", size: 14 }) }))
|
|
43
|
-
: _jsx(Avatar, { name: space.name, kind: "space", size: 26 }), _jsxs("div", { className: "space-panel-titles", children: [_jsx("h2", { children: name }), _jsx("span", { children: personal ? "Just you" : "Shared space" })] }), _jsx(IconButton, { icon: "external", label: `Open ${name}'s page`, size: "sm", href: spacePath(space._id, tab?.key) })] }), tabs.length > 1
|
|
44
|
-
? (_jsx(Tabs, { label: `${name}'s tabs`, className: "space-panel-tabs", value: tab?.key ?? "", panel: `${id}-tab`, onChange: (
|
|
45
|
-
setAsked(next);
|
|
46
|
-
keep(key, next);
|
|
47
|
-
}, tabs: tabs.map((t) => ({
|
|
52
|
+
: _jsx(Avatar, { name: space.name, kind: "space", size: 26 }), _jsxs("div", { className: "space-panel-titles", children: [_jsx("h2", { children: name }), _jsx("span", { children: personal ? "Just you" : "Shared space" })] }), _jsx(IconButton, { icon: "external", label: `Open ${name}'s page`, size: "sm", href: spacePath(space._id, shown?.key, shown?.key === tab?.key) })] }), tabs.length > 1
|
|
53
|
+
? (_jsx(Tabs, { label: `${name}'s tabs`, className: "space-panel-tabs", value: tab?.key ?? "", panel: `${id}-tab`, onChange: pick, tabs: tabs.map((t) => ({
|
|
48
54
|
value: t.key,
|
|
49
55
|
label: _jsx("span", { className: "space-panel-tab-label", children: t.title }),
|
|
50
56
|
...(t.icon ? { icon: t.icon } : {}),
|
|
51
57
|
title: t.title,
|
|
52
58
|
})) }))
|
|
53
|
-
: null, _jsx("div", { id: `${id}-tab`, role: "tabpanel", className: "space-panel-body", children: tabs.
|
|
59
|
+
: null, _jsx("div", { id: `${id}-tab`, role: "tabpanel", className: "space-panel-body", children: tabs.map((t) => {
|
|
60
|
+
// Each part read once chosen, then kept (hidden) while the panel stays.
|
|
61
|
+
const parts = [t, ...t.sections].filter((p) => opened.includes(p.key));
|
|
62
|
+
if (!parts.length)
|
|
63
|
+
return null;
|
|
64
|
+
const views = parts.map((p) => (_jsx("div", { className: "space-panel-tab", hidden: p.key !== shown?.key, children: _jsx(LazyView, { kind: p.view, item: { _id: space._id }, hints: { in: space._id, mode: "panel" } }) }, p.key)));
|
|
65
|
+
return (_jsx("div", { className: "space-panel-part", hidden: t.key !== tab?.key, children: t.sections.length
|
|
66
|
+
? (_jsx(TabSections, { tab: t, ...(t.key === tab?.key && section ? { section } : {}), picked: true, menu: "top", onPick: pick, children: views }))
|
|
67
|
+
: views }, t.key));
|
|
68
|
+
}) })] }));
|
|
54
69
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A tab's sections (the tabs `under` it, see contract.ts), around the one
|
|
3
|
+
* shown: the tab's own View first (named `own`: "General"), then each
|
|
4
|
+
* section, those of a `group` under its heading ("Channels").
|
|
5
|
+
*
|
|
6
|
+
* - `side` (the space's settings, on its page): a menu beside, as settings
|
|
7
|
+
* pages have. Where there's no room for both (a phone), the menu is a list
|
|
8
|
+
* to tap into, and a section, once chosen, says how to get back to it.
|
|
9
|
+
* - `top` (the computer's, and every tab's in the side panel): tabs above.
|
|
10
|
+
*
|
|
11
|
+
* On the page each is a link (`href`, and `onPick` for the keyboard's
|
|
12
|
+
* arrows); in the panel, a choice (`onPick`).
|
|
13
|
+
*/
|
|
14
|
+
import type { ReactNode } from "react";
|
|
15
|
+
import type { ShownTab } from "./tabs.js";
|
|
16
|
+
export declare function TabSections({ tab, section, picked, menu, href, back, onPick, counts, children }: {
|
|
17
|
+
tab: ShownTab;
|
|
18
|
+
/** The section shown; none: the tab's own View. */
|
|
19
|
+
section?: ShownTab;
|
|
20
|
+
/** Whether the address chose what's shown (a phone shows the list until it does). */
|
|
21
|
+
picked: boolean;
|
|
22
|
+
menu: "side" | "top";
|
|
23
|
+
href?: (key: string) => string;
|
|
24
|
+
/** Where the menu is, to get back to it (where a phone lists it). */
|
|
25
|
+
back?: string;
|
|
26
|
+
onPick?: (key: string) => void;
|
|
27
|
+
/** What waits on someone, by section (who asked to join). */
|
|
28
|
+
counts?: Record<string, number>;
|
|
29
|
+
/** What's shown: the section's View, or the tab's own. */
|
|
30
|
+
children: ReactNode;
|
|
31
|
+
}): ReactNode;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Badge, Icon, NavItem, Tabs } from "../../../../../hosts/web/mod.js";
|
|
3
|
+
export function TabSections({ tab, section, picked, menu, href, back, onPick, counts = {}, children }) {
|
|
4
|
+
const items = [{ ...tab, title: tab.own ?? tab.title, group: undefined }, ...tab.sections];
|
|
5
|
+
const current = section ?? items[0];
|
|
6
|
+
if (menu === "top") {
|
|
7
|
+
return (_jsxs("div", { className: "space-sections space-sections-top", children: [_jsx(Tabs, { label: `${tab.title}: its parts`, className: "space-sections-tabs", value: current.key, onChange: (key) => onPick?.(key), tabs: items.map((item) => ({
|
|
8
|
+
value: item.key,
|
|
9
|
+
label: item.title,
|
|
10
|
+
...(item.icon ? { icon: item.icon } : {}),
|
|
11
|
+
...(counts[item.key] ? { count: counts[item.key] } : {}),
|
|
12
|
+
...(href ? { href: href(item.key) } : {}),
|
|
13
|
+
})) }), _jsx("div", { className: "space-sections-body", children: children })] }));
|
|
14
|
+
}
|
|
15
|
+
return (_jsx("div", { className: "space-sections", children: _jsxs("div", { className: "space-sections-side", "data-picked": picked, children: [_jsx("nav", { className: "space-sections-menu", "aria-label": tab.title, children: items.map((item, i) => (_jsxs("div", { className: "space-sections-item", children: [item.group && item.group !== items[i - 1]?.group
|
|
16
|
+
? _jsx("p", { className: "space-sections-group", children: item.group })
|
|
17
|
+
: null, _jsx(NavItem, { ...(href ? { href: href(item.key) } : { onClick: () => onPick?.(item.key) }), ...(item.icon ? { icon: item.icon } : {}), ...(item.key === current.key ? { current: "page" } : {}), end: counts[item.key]
|
|
18
|
+
? _jsx(Badge, { tone: "primary", children: counts[item.key] })
|
|
19
|
+
: _jsx(Icon, { name: "chevron", size: 16, className: "space-sections-chevron" }), children: item.title })] }, item.key))) }), _jsxs("div", { className: "space-sections-body", children: [_jsxs("div", { className: "space-sections-back", children: [back
|
|
20
|
+
? (_jsxs("a", { href: back, className: "space-sections-back-link", children: [_jsx(Icon, { name: "chevron-left", size: 16 }), tab.title] }))
|
|
21
|
+
: null, _jsx("h2", { className: "space-sections-title", children: current.title })] }), children] })] }) }));
|
|
22
|
+
}
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
* renamed in place by those who manage it; Personal or shared; its people;
|
|
4
4
|
* inviting someone; a new chat there), then its tabs, which front ends add
|
|
5
5
|
* (`spaceTabs`, see contract.ts): the one the address asks for
|
|
6
|
-
* (`?tab=computer`), the first otherwise, each a link.
|
|
7
|
-
*
|
|
6
|
+
* (`?tab=computer`), the first otherwise, each a link. A tab with sections
|
|
7
|
+
* (its settings, its computer) shows them around the one asked for
|
|
8
|
+
* (`?tab=memories` opens Settings at Memories; see sections.tsx). The View
|
|
9
|
+
* shown gets the space (`{ _id }`) and hints `{ in, mode: "page" }`. An archived space
|
|
8
10
|
* says so, calmly, over its tabs, with Restore for those who manage it. A
|
|
9
11
|
* space the person doesn't reach says so.
|
|
10
12
|
*/
|
|
@@ -4,8 +4,10 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
4
4
|
* renamed in place by those who manage it; Personal or shared; its people;
|
|
5
5
|
* inviting someone; a new chat there), then its tabs, which front ends add
|
|
6
6
|
* (`spaceTabs`, see contract.ts): the one the address asks for
|
|
7
|
-
* (`?tab=computer`), the first otherwise, each a link.
|
|
8
|
-
*
|
|
7
|
+
* (`?tab=computer`), the first otherwise, each a link. A tab with sections
|
|
8
|
+
* (its settings, its computer) shows them around the one asked for
|
|
9
|
+
* (`?tab=memories` opens Settings at Memories; see sections.tsx). The View
|
|
10
|
+
* shown gets the space (`{ _id }`) and hints `{ in, mode: "page" }`. An archived space
|
|
9
11
|
* says so, calmly, over its tabs, with Restore for those who manage it. A
|
|
10
12
|
* space the person doesn't reach says so.
|
|
11
13
|
*/
|
|
@@ -13,7 +15,8 @@ import { useState } from "react";
|
|
|
13
15
|
import { Button, EmptyState, go, message, Notice, Page, Skeleton, Tabs, Title, } from "../../../../../hosts/web/mod.js";
|
|
14
16
|
import { SpaceHeader } from "./header.js";
|
|
15
17
|
import { STYLE } from "./style.js";
|
|
16
|
-
import {
|
|
18
|
+
import { TabSections } from "./sections.js";
|
|
19
|
+
import { chosen, sectionOf, spacePath, tabsOf } from "./tabs.js";
|
|
17
20
|
import { ownersOf, spaceName } from "./who.js";
|
|
18
21
|
import { namesIn } from "../../shared/names.js";
|
|
19
22
|
export const spaceView = (item, ctx) => {
|
|
@@ -33,8 +36,12 @@ export const spaceView = (item, ctx) => {
|
|
|
33
36
|
const tabs = tabsOf(ctx.resources.spaceTabs);
|
|
34
37
|
const query = (ctx.hints.query ?? {});
|
|
35
38
|
const tab = chosen(tabs, query.tab);
|
|
39
|
+
const section = sectionOf(tab, query.tab);
|
|
36
40
|
const manage = space.can.includes("manage");
|
|
37
41
|
const waiting = manage ? (requests ?? []).length : 0;
|
|
42
|
+
// Who's waiting to join, on what lets them in (and on the tab it's in).
|
|
43
|
+
const counts = waiting ? { members: waiting } : {};
|
|
44
|
+
const countOf = (t) => (counts[t.key] ?? 0) + t.sections.reduce((n, s) => n + (counts[s.key] ?? 0), 0);
|
|
38
45
|
// Its people by name, and whose it is (someone else's Personal).
|
|
39
46
|
const names = namesIn(ctx, [
|
|
40
47
|
...members.map((m) => m.member),
|
|
@@ -45,10 +52,13 @@ export const spaceView = (item, ctx) => {
|
|
|
45
52
|
value: t.key,
|
|
46
53
|
label: t.title,
|
|
47
54
|
...(t.icon ? { icon: t.icon } : {}),
|
|
48
|
-
|
|
49
|
-
...(t.key === "members" && waiting ? { count: waiting } : {}),
|
|
55
|
+
...(countOf(t) ? { count: countOf(t) } : {}),
|
|
50
56
|
href: spacePath(id, t.key),
|
|
51
|
-
})) }), _jsx("div", { id: "space-tab", role: "tabpanel", className: "space-tab", "data-tab": tab?.key, children: tab
|
|
57
|
+
})) }), _jsx("div", { id: "space-tab", role: "tabpanel", className: "space-tab", "data-tab": section?.key ?? tab?.key, children: tab && tab.sections.length
|
|
58
|
+
? (_jsx(TabSections, { tab: tab, ...(section ? { section } : {}), picked: !!section || query.open === "1", menu: tab.menu ?? "top", href: (key) => spacePath(id, key, key === tab.key), back: spacePath(id, tab.key), onPick: (key) => go(spacePath(id, key, key === tab.key)), counts: counts, children: ctx.show((section ?? tab).view, { _id: id }, { in: id, mode: "page" }) }))
|
|
59
|
+
: tab
|
|
60
|
+
? ctx.show(tab.view, { _id: id }, { in: id, mode: "page" })
|
|
61
|
+
: null })] }))
|
|
52
62
|
: (_jsx(EmptyState, { icon: "info", title: "Nothing here yet", className: "space-empty", children: "This app adds nothing to a space's page." }))] }));
|
|
53
63
|
};
|
|
54
64
|
/** An archived space, said calmly: still readable, listed apart; Restore for those who manage it. */
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* the org's sections (About, Members). Only layout: the pieces are the
|
|
7
7
|
* toolkit's.
|
|
8
8
|
*/
|
|
9
|
-
export declare const STYLE = "\n/* The sidebar: spaces as a tree */\n.spaces { list-style: none; display: grid; gap: 1px; margin: 0; padding: 0; }\n.spaces-item { display: grid; }\n.spaces-row { position: relative; }\n.spaces-row > .copilotz-nav-item { padding-right: 36px; }\n.spaces-fold { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); color: var(--muted-foreground); }\n.spaces-fold .copilotz-icon { transition: transform .15s; }\n.spaces-fold[aria-expanded=true] .copilotz-icon { transform: rotate(90deg); }\n.spaces-under { position: relative; display: grid; margin: 1px 0 8px 20px; padding-left: 10px; }\n.spaces-under::before { content: \"\"; position: absolute; top: 3px; bottom: 3px; left: 0; width: 1px;\n background: var(--sidebar-border); }\n.spaces-under > .copilotz-loading { min-height: 32px; padding: 6px; }\n.spaces-personal, .spaces-new-icon { display: grid; place-items: center; flex: none; width: 22px; height: 22px;\n border-radius: var(--radius-full); background: var(--muted); color: var(--secondary-foreground); }\n.spaces [aria-current] .spaces-personal { background: var(--card); color: var(--primary-text); }\n.spaces-new-icon { border: 1px dashed var(--input); border-radius: var(--radius-sm); background: transparent; }\n.spaces-form { margin-top: 2px; }\n.spaces-error { margin: 6px 10px 0; color: var(--destructive-text); font-size: 12.5px; }\n.spaces-archived { display: grid; margin-top: 4px; }\n.spaces-archived-icon { display: grid; place-items: center; flex: none; width: 22px; height: 22px; }\n.spaces-archived-end { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }\n.spaces-archived-end .copilotz-icon { transition: transform .15s; }\n.spaces-archived[data-open] .spaces-archived-end .copilotz-icon { transform: rotate(90deg); }\n.spaces-archived-list { margin: 1px 0 6px 12px; }\n.spaces-archived-list .copilotz-avatar { opacity: .75; }\n\n/* Invitations to you: in the sidebar, and on home */\n.invitations { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }\n.invitation { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;\n padding: 14px 14px 14px 16px; border-color: var(--primary-border);\n background: color-mix(in oklab, var(--primary-soft) 45%, var(--card)); animation: invitation-in .3s ease-out; }\n@keyframes invitation-in { from { opacity: 0; transform: translateY(-4px); } }\n.invitation-compact { grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 10px;\n margin: 2px 0 4px; padding: 11px 12px; }\n.invitation-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-full);\n background: var(--primary-soft); color: var(--primary-text); }\n.invitation-text { display: grid; gap: 2px; min-width: 0; }\n.invitation-title { margin: 0; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }\n.invitation-compact .invitation-title { font-size: 13.5px; }\n.invitation-title b { font-weight: 650; }\n.invitation-meta { margin: 0; color: var(--muted-foreground); font-size: 12.5px; line-height: 1.45;\n overflow-wrap: anywhere; }\n.invitation-answers { display: flex; flex-wrap: wrap; gap: 6px; }\n.invitation-compact .invitation-answers { margin-top: 8px; }\n@media (max-width: 600px) {\n .invitation:not(.invitation-compact) { grid-template-columns: auto minmax(0, 1fr); }\n .invitation:not(.invitation-compact) .invitation-answers { grid-column: 2; }\n}\n\n/* A space's page */\n.space-mark-personal { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-lg);\n background: var(--primary-soft); color: var(--primary-text); }\n.space-rename { color: var(--muted-foreground); }\n.space-faces { display: flex; align-items: center; padding: 0 4px 0 6px; border-radius: var(--radius-full);\n text-decoration: none; }\n.space-faces > * { margin-left: -6px; outline: 2px solid var(--background); }\n.space-faces-more { min-width: 28px; min-height: 28px; }\n.space-narrow { display: none; }\n.space-tabs { position: sticky; top: 0; z-index: 4; display: flex; width: 100%; margin-top: -2px;\n background: var(--background); -webkit-mask-image: linear-gradient(to right, currentColor calc(100% - 24px), transparent);\n mask-image: linear-gradient(to right, currentColor calc(100% - 24px), transparent); }\n.space-tabs .copilotz-tab { padding: 0 10px; }\n.space-tab { padding-top: 22px; }\n.space-loading { display: grid; gap: 14px; margin-top: 8px; }\n.space-missing { display: grid; place-items: center; padding: 32px; }\n.space-empty { margin-top: 48px; }\n.space-archived { margin: -4px 0 18px; }\n@container copilotz-page (max-width: 640px) {\n .space-wide, .space-faces { display: none; }\n .space-narrow { display: inline-grid; }\n .space-mark { --size: 36px !important; }\n .space-mark-personal { width: 36px; height: 36px; border-radius: var(--radius-md); }\n}\n@media (max-width: 760px) {\n .space-tabs { position: static; }\n}\n\n/* Members, and inviting people */\n.space-members, .space-settings, .space-inviting { container: space-tab / inline-size; display: grid; gap: 24px; }\n.space-inviting { gap: 16px; }\n.space-inviting-kind { display: grid; gap: 22px; }\n.space-members-compact, .space-settings-compact { gap: 18px; }\n.space-section { display: grid; gap: 10px; }\n.space-section-title { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted-foreground);\n font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }\n.space-count { font-variant-numeric: tabular-nums; letter-spacing: 0; }\n.space-rows { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }\n.space-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px;\n padding: 10px 10px 10px 14px; }\n.space-row-asking { border-color: var(--warning-border); }\n.space-row-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-md);\n background: var(--primary-soft); color: var(--primary-text); }\n.space-row-text { display: grid; gap: 1px; min-width: 0; }\n.space-row-name { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; font-weight: 620; }\n.space-row-name .copilotz-time { color: var(--muted-foreground); font-size: 12px; font-weight: 450; }\n.space-row-what { margin: 0; overflow: hidden; color: var(--muted-foreground); font-size: 12.5px;\n text-overflow: ellipsis; white-space: nowrap; }\n.space-row-end { display: flex; align-items: center; gap: 6px; }\n.space-row-end > .copilotz-select { min-width: 116px; }\n.space-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;\n min-height: 30px; margin-bottom: -4px; }\n.space-section-head .copilotz-button { margin-right: -6px; }\n.space-section-about { margin: -2px 2px 2px; color: var(--muted-foreground); font-size: 13px; line-height: 1.5; }\n\n/* Agents among the members */\n.space-row-face { display: grid; }\n.space-row-link { min-width: 0; overflow: hidden; color: inherit; text-decoration: none; text-overflow: ellipsis;\n white-space: nowrap; }\n.space-row-link:hover { text-decoration: underline; text-underline-offset: 3px;\n text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); }\n.space-row-handle { flex: none; color: var(--muted-foreground); font: 500 12.5px var(--font-mono); }\n.space-row-name .copilotz-badge { flex: none; }\n.space-row-agent[aria-busy] { opacity: .7; }\n.space-agents-none { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px;\n padding: 14px 16px; border-style: dashed; box-shadow: none; background: transparent; }\n.space-agents-none p { margin: 0; color: var(--muted-foreground); font-size: 13.5px; }\n.space-invite { display: grid; gap: 7px; }\n.space-invite-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }\n.space-invite-row > .copilotz-select { min-width: 128px; }\n.space-invite-note { margin: 0 2px; color: var(--muted-foreground); font-size: 12.5px; }\n.space-invite-note > span { display: inline-flex; align-items: center; gap: 6px; }\n.space-row-mail { border-radius: var(--radius-full); background: var(--muted); color: var(--muted-foreground); }\n.space-row-email { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.space-invite-error { color: var(--destructive-text); }\n.space-invite-done { color: var(--success-text); }\n@container space-tab (max-width: 520px) {\n .space-row { gap: 10px; padding-left: 12px; }\n .space-row-agent { grid-template-columns: 32px minmax(0, 1fr); }\n .space-row-agent .space-row-end { grid-column: 2; }\n .space-row-agent .space-row-handle { display: none; }\n .space-row-asking { grid-template-columns: 32px minmax(0, 1fr); }\n .space-row-asking .space-row-end { grid-column: 1 / -1; flex-wrap: wrap; }\n .space-invite-row { grid-template-columns: minmax(0, 1fr) auto; }\n .space-invite-row > .copilotz-input { grid-column: 1 / -1; }\n}\n@container space-tab (max-width: 340px) {\n .space-row { grid-template-columns: 32px minmax(0, 1fr); }\n .space-row-end { grid-column: 2; }\n}\n\n/* A message naming agents that don't answer here: over where you type */\n.space-not-here-title { display: inline-flex; align-items: center; gap: 8px; }\n.space-not-here-faces { display: inline-flex; }\n.space-not-here-faces > * + * { margin-left: -5px; outline: 2px solid var(--info-soft); }\n@media (max-width: 760px) {\n .space-not-here { flex-wrap: wrap; }\n .space-not-here .copilotz-notice-body { flex-basis: calc(100% - 30px); }\n .space-not-here .copilotz-notice-action { width: 100%; justify-content: flex-end; margin: 2px 0 0; }\n}\n\n/* Settings */\n.space-setting-list { display: grid; }\n.space-setting { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 400px); align-items: start;\n gap: 10px 32px; padding: 18px 20px; }\n.space-setting + .space-setting { border-top: 1px solid var(--border); }\n.space-setting h3 { margin: 0 0 3px; font-size: 14.5px; font-weight: 650; }\n.space-setting-text { margin: 0; color: var(--muted-foreground); font-size: 13.5px; line-height: 1.5; }\n.space-setting-control { display: grid; justify-items: start; min-width: 0; }\n.space-setting-form { display: grid; gap: 6px; width: 100%; }\n.space-setting-inline { display: flex; gap: 8px; }\n.space-setting-inline > .copilotz-input { flex: 1; min-width: 0; }\n.space-setting-control > .copilotz-input { width: 100%; }\n.space-setting-form > .copilotz-select { width: 100%; }\n.space-setting-note { display: flex; align-items: center; gap: 6px; margin: 0 2px; font-size: 12.5px; }\n.space-setting-about { display: grid; gap: 14px; padding: 18px 20px; }\n.space-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 9px 22px; margin: 0;\n font-size: 14px; }\n.space-facts dt { color: var(--muted-foreground); }\n.space-facts dd { min-width: 0; margin: 0; }\n.space-facts-id { display: flex; align-items: center; gap: 6px; }\n.space-facts-id code { min-width: 0; overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }\n.space-archive-means { display: grid; gap: 10px; margin: 0; padding: 0 0 0 18px; color: var(--secondary-foreground);\n font-size: 14px; line-height: 1.5; }\n.space-archive-means b { color: var(--foreground); font-weight: 620; }\n.space-archive-means + .copilotz-notice { margin-top: 14px; }\n@container space-tab (max-width: 620px) {\n .space-setting { grid-template-columns: minmax(0, 1fr); padding: 16px; }\n .space-setting-control { justify-items: stretch; }\n}\n\n/* In the side panel */\n.space-panel { container: space-panel / inline-size; display: flex; flex-direction: column; height: 100%; min-height: 0; }\n.space-panel-head { flex: none; display: flex; align-items: center; gap: 10px; min-height: 58px;\n padding: 9px max(10px, var(--copilotz-inset-end, 0px)) 9px 16px; border-bottom: 1px solid var(--border); }\n.space-panel-mark { display: grid; place-items: center; flex: none; width: 26px; height: 26px;\n border-radius: var(--radius-full); background: var(--primary-soft); color: var(--primary-text); }\n.space-panel-titles { flex: 1; display: grid; min-width: 0; line-height: 1.25; }\n.space-panel-titles h2 { margin: 0; overflow: hidden; font-family: var(--font-display); font-size: 15px;\n font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }\n.space-panel-titles span { color: var(--muted-foreground); font-size: 12px; }\n.space-panel-tabs { flex: none; align-self: flex-start; max-width: calc(100% - 24px); margin: 10px 12px 0; }\n.space-panel-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;\n scrollbar-color: var(--input) transparent; }\n.space-panel-tab { min-height: 100%; padding: 14px 14px 20px; }\n.space-panel-tab[hidden] { display: none; }\n.space-panel-missing { padding: 24px; color: var(--muted-foreground); }\n@container space-panel (max-width: 560px) {\n .space-panel-tabs .copilotz-tab[aria-selected=false] { padding: 0 9px; }\n .space-panel-tabs .copilotz-tab[aria-selected=false] .space-panel-tab-label { position: absolute; width: 1px;\n height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }\n}\n\n/* The org's sections: its people, and what it is */\n.org-row { grid-template-columns: 34px minmax(0, 1fr) auto; }\n.org-row-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.org-row-spacer { width: 30px; }\n.org-row .space-row-end > .copilotz-badge { min-width: 116px; justify-content: center; }\n.org-note { margin: -8px 0 0; }\n.org-remove { display: grid; gap: 18px; }\n.org-remove-means { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; color: var(--secondary-foreground);\n font-size: 14px; line-height: 1.5; }\n.org-remove-means li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }\n.org-remove-means .copilotz-icon { margin-top: 3px; color: var(--muted-foreground); }\n.org-about-role { display: inline-flex; padding-top: 4px; }\n.org-about-role .copilotz-badge { gap: 4px; font-size: 12.5px; padding: 3px 10px; }\n.org-about-roles { display: grid; gap: 6px; color: var(--secondary-foreground); line-height: 1.5; }\n.org-about-roles b { color: var(--foreground); font-weight: 620; }\n.org-about-sees .copilotz-notice-body { line-height: 1.55; }\n@container space-tab (max-width: 520px) {\n .org-row { grid-template-columns: 34px minmax(0, 1fr); }\n .org-row .space-row-end { grid-column: 2; }\n}\n";
|
|
9
|
+
export declare const STYLE = "\n/* The sidebar: spaces as a tree */\n.spaces { list-style: none; display: grid; gap: 1px; margin: 0; padding: 0; }\n.spaces-item { display: grid; }\n.spaces-row { position: relative; }\n.spaces-row > .copilotz-nav-item { padding-right: 36px; }\n.spaces-fold { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); color: var(--muted-foreground); }\n.spaces-fold .copilotz-icon { transition: transform .15s; }\n.spaces-fold[aria-expanded=true] .copilotz-icon { transform: rotate(90deg); }\n.spaces-under { position: relative; display: grid; margin: 1px 0 8px 20px; padding-left: 10px; }\n.spaces-under::before { content: \"\"; position: absolute; top: 3px; bottom: 3px; left: 0; width: 1px;\n background: var(--sidebar-border); }\n.spaces-under > .copilotz-loading { min-height: 32px; padding: 6px; }\n.spaces-personal, .spaces-new-icon { display: grid; place-items: center; flex: none; width: 22px; height: 22px;\n border-radius: var(--radius-full); background: var(--muted); color: var(--secondary-foreground); }\n.spaces [aria-current] .spaces-personal { background: var(--card); color: var(--primary-text); }\n.spaces-new-icon { border: 1px dashed var(--input); border-radius: var(--radius-sm); background: transparent; }\n.spaces-form { margin-top: 2px; }\n.spaces-error { margin: 6px 10px 0; color: var(--destructive-text); font-size: 12.5px; }\n.spaces-archived { display: grid; margin-top: 4px; }\n.spaces-archived-icon { display: grid; place-items: center; flex: none; width: 22px; height: 22px; }\n.spaces-archived-end { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }\n.spaces-archived-end .copilotz-icon { transition: transform .15s; }\n.spaces-archived[data-open] .spaces-archived-end .copilotz-icon { transform: rotate(90deg); }\n.spaces-archived-list { margin: 1px 0 6px 12px; }\n.spaces-archived-list .copilotz-avatar { opacity: .75; }\n\n/* Invitations to you: in the sidebar, and on home */\n.invitations { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }\n.invitation { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;\n padding: 14px 14px 14px 16px; border-color: var(--primary-border);\n background: color-mix(in oklab, var(--primary-soft) 45%, var(--card)); animation: invitation-in .3s ease-out; }\n@keyframes invitation-in { from { opacity: 0; transform: translateY(-4px); } }\n.invitation-compact { grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 10px;\n margin: 2px 0 4px; padding: 11px 12px; }\n.invitation-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-full);\n background: var(--primary-soft); color: var(--primary-text); }\n.invitation-text { display: grid; gap: 2px; min-width: 0; }\n.invitation-title { margin: 0; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }\n.invitation-compact .invitation-title { font-size: 13.5px; }\n.invitation-title b { font-weight: 650; }\n.invitation-meta { margin: 0; color: var(--muted-foreground); font-size: 12.5px; line-height: 1.45;\n overflow-wrap: anywhere; }\n.invitation-answers { display: flex; flex-wrap: wrap; gap: 6px; }\n.invitation-compact .invitation-answers { margin-top: 8px; }\n@media (max-width: 600px) {\n .invitation:not(.invitation-compact) { grid-template-columns: auto minmax(0, 1fr); }\n .invitation:not(.invitation-compact) .invitation-answers { grid-column: 2; }\n}\n\n/* A space's page */\n.space-mark-personal { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-lg);\n background: var(--primary-soft); color: var(--primary-text); }\n.space-rename { color: var(--muted-foreground); }\n.space-faces { display: flex; align-items: center; padding: 0 4px 0 6px; border-radius: var(--radius-full);\n text-decoration: none; }\n.space-faces > * { margin-left: -6px; outline: 2px solid var(--background); }\n.space-faces-more { min-width: 28px; min-height: 28px; }\n.space-narrow { display: none; }\n.space-tabs { position: sticky; top: 0; z-index: 4; display: flex; width: 100%; margin-top: -2px;\n background: var(--background); -webkit-mask-image: linear-gradient(to right, currentColor calc(100% - 24px), transparent);\n mask-image: linear-gradient(to right, currentColor calc(100% - 24px), transparent); }\n.space-tabs .copilotz-tab { padding: 0 10px; }\n.space-tab { padding-top: 22px; }\n.space-loading { display: grid; gap: 14px; margin-top: 8px; }\n.space-missing { display: grid; place-items: center; padding: 32px; }\n.space-empty { margin-top: 48px; }\n.space-archived { margin: -4px 0 18px; }\n@container copilotz-page (max-width: 640px) {\n .space-wide, .space-faces { display: none; }\n .space-narrow { display: inline-grid; }\n .space-mark { --size: 36px !important; }\n .space-mark-personal { width: 36px; height: 36px; border-radius: var(--radius-md); }\n}\n@media (max-width: 760px) {\n .space-tabs { position: static; }\n}\n\n/* A tab's sections (sections.tsx): a menu beside them (settings), or tabs above (the computer's) */\n.space-sections { container: space-sections / inline-size; }\n.space-sections-side { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; align-items: start; }\n.space-sections-menu { position: sticky; top: 60px; display: grid; gap: 2px; }\n.space-sections-group { margin: 14px 0 4px; padding: 0 10px; color: var(--muted-foreground);\n font-family: var(--font-display); font-size: 11.5px; font-weight: 650; letter-spacing: .08em;\n text-transform: uppercase; }\n.space-sections-chevron { display: none; color: var(--muted-foreground); }\n.space-sections-body { min-width: 0; }\n.space-sections-back { display: none; }\n.space-sections-back-link { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-left: -6px;\n padding-right: 8px; color: var(--muted-foreground); font-size: 14px; text-decoration: none; }\n.space-sections-back-link:hover { color: var(--foreground); }\n.space-sections-title { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 640;\n letter-spacing: -.01em; }\n.space-sections-top { display: grid; gap: 20px; }\n.space-sections-tabs { justify-self: start; }\n/* Without room for both (a phone): the menu is a list to tap into; a section says how to get back */\n@container space-sections (max-width: 640px) {\n .space-sections-side { grid-template-columns: minmax(0, 1fr); gap: 0; }\n .space-sections-side[data-picked=false] .space-sections-body,\n .space-sections-side[data-picked=true] .space-sections-menu { display: none; }\n .space-sections-menu { position: static; gap: 0; }\n .space-sections-menu .copilotz-nav-item { min-height: 52px; padding: 8px 12px; font-size: 15px; }\n .space-sections-chevron { display: inline-flex; }\n /* Listed, nothing is open yet: none looks chosen */\n .space-sections-side[data-picked=false] .copilotz-nav-item[aria-current] { border-color: transparent;\n background: transparent; box-shadow: none; }\n .space-sections-side[data-picked=false] .copilotz-nav-item[aria-current] .copilotz-nav-label { font-weight: inherit; }\n .space-sections-side[data-picked=true] .space-sections-back { display: grid; gap: 4px; margin: -12px 0 18px; }\n}\n\n/* Members, and inviting people */\n.space-members, .space-settings, .space-inviting { container: space-tab / inline-size; display: grid; gap: 24px; }\n.space-inviting { gap: 16px; }\n.space-inviting-kind { display: grid; gap: 22px; }\n.space-members-compact, .space-settings-compact { gap: 18px; }\n.space-section { display: grid; gap: 10px; }\n.space-section-title { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted-foreground);\n font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }\n.space-count { font-variant-numeric: tabular-nums; letter-spacing: 0; }\n.space-rows { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }\n.space-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px;\n padding: 10px 10px 10px 14px; }\n.space-row-asking { border-color: var(--warning-border); }\n.space-row-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-md);\n background: var(--primary-soft); color: var(--primary-text); }\n.space-row-text { display: grid; gap: 1px; min-width: 0; }\n.space-row-name { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; font-weight: 620; }\n.space-row-name .copilotz-time { color: var(--muted-foreground); font-size: 12px; font-weight: 450; }\n.space-row-what { margin: 0; overflow: hidden; color: var(--muted-foreground); font-size: 12.5px;\n text-overflow: ellipsis; white-space: nowrap; }\n.space-row-end { display: flex; align-items: center; gap: 6px; }\n.space-row-end > .copilotz-select { min-width: 116px; }\n.space-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;\n min-height: 30px; margin-bottom: -4px; }\n.space-section-head .copilotz-button { margin-right: -6px; }\n.space-section-about { margin: -2px 2px 2px; color: var(--muted-foreground); font-size: 13px; line-height: 1.5; }\n\n/* Agents among the members */\n.space-row-face { display: grid; }\n.space-row-link { min-width: 0; overflow: hidden; color: inherit; text-decoration: none; text-overflow: ellipsis;\n white-space: nowrap; }\n.space-row-link:hover { text-decoration: underline; text-underline-offset: 3px;\n text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); }\n.space-row-handle { flex: none; color: var(--muted-foreground); font: 500 12.5px var(--font-mono); }\n.space-row-name .copilotz-badge { flex: none; }\n.space-row-agent[aria-busy] { opacity: .7; }\n.space-agents-none { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px;\n padding: 14px 16px; border-style: dashed; box-shadow: none; background: transparent; }\n.space-agents-none p { margin: 0; color: var(--muted-foreground); font-size: 13.5px; }\n.space-invite { display: grid; gap: 7px; }\n.space-invite-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }\n.space-invite-row > .copilotz-select { min-width: 128px; }\n.space-invite-note { margin: 0 2px; color: var(--muted-foreground); font-size: 12.5px; }\n.space-invite-note > span { display: inline-flex; align-items: center; gap: 6px; }\n.space-row-mail { border-radius: var(--radius-full); background: var(--muted); color: var(--muted-foreground); }\n.space-row-email { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.space-invite-error { color: var(--destructive-text); }\n.space-invite-done { color: var(--success-text); }\n@container space-tab (max-width: 520px) {\n .space-row { gap: 10px; padding-left: 12px; }\n .space-row-agent { grid-template-columns: 32px minmax(0, 1fr); }\n .space-row-agent .space-row-end { grid-column: 2; }\n .space-row-agent .space-row-handle { display: none; }\n .space-row-asking { grid-template-columns: 32px minmax(0, 1fr); }\n .space-row-asking .space-row-end { grid-column: 1 / -1; flex-wrap: wrap; }\n .space-invite-row { grid-template-columns: minmax(0, 1fr) auto; }\n .space-invite-row > .copilotz-input { grid-column: 1 / -1; }\n}\n@container space-tab (max-width: 340px) {\n .space-row { grid-template-columns: 32px minmax(0, 1fr); }\n .space-row-end { grid-column: 2; }\n}\n\n/* A message naming agents that don't answer here: over where you type */\n.space-not-here-title { display: inline-flex; align-items: center; gap: 8px; }\n.space-not-here-faces { display: inline-flex; }\n.space-not-here-faces > * + * { margin-left: -5px; outline: 2px solid var(--info-soft); }\n@media (max-width: 760px) {\n .space-not-here { flex-wrap: wrap; }\n .space-not-here .copilotz-notice-body { flex-basis: calc(100% - 30px); }\n .space-not-here .copilotz-notice-action { width: 100%; justify-content: flex-end; margin: 2px 0 0; }\n}\n\n/* Settings */\n.space-setting-list { display: grid; }\n.space-setting { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 400px); align-items: start;\n gap: 10px 32px; padding: 18px 20px; }\n.space-setting + .space-setting { border-top: 1px solid var(--border); }\n.space-setting h3 { margin: 0 0 3px; font-size: 14.5px; font-weight: 650; }\n.space-setting-text { margin: 0; color: var(--muted-foreground); font-size: 13.5px; line-height: 1.5; }\n.space-setting-control { display: grid; justify-items: start; min-width: 0; }\n.space-setting-form { display: grid; gap: 6px; width: 100%; }\n.space-setting-inline { display: flex; gap: 8px; }\n.space-setting-inline > .copilotz-input { flex: 1; min-width: 0; }\n.space-setting-control > .copilotz-input { width: 100%; }\n.space-setting-form > .copilotz-select { width: 100%; }\n.space-setting-note { display: flex; align-items: center; gap: 6px; margin: 0 2px; font-size: 12.5px; }\n.space-setting-about { display: grid; gap: 14px; padding: 18px 20px; }\n.space-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 9px 22px; margin: 0;\n font-size: 14px; }\n.space-facts dt { color: var(--muted-foreground); }\n.space-facts dd { min-width: 0; margin: 0; }\n.space-facts-id { display: flex; align-items: center; gap: 6px; }\n.space-facts-id code { min-width: 0; overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }\n.space-archive-means { display: grid; gap: 10px; margin: 0; padding: 0 0 0 18px; color: var(--secondary-foreground);\n font-size: 14px; line-height: 1.5; }\n.space-archive-means b { color: var(--foreground); font-weight: 620; }\n.space-archive-means + .copilotz-notice { margin-top: 14px; }\n@container space-tab (max-width: 620px) {\n .space-setting { grid-template-columns: minmax(0, 1fr); padding: 16px; }\n .space-setting-control { justify-items: stretch; }\n}\n\n/* In the side panel */\n.space-panel { container: space-panel / inline-size; display: flex; flex-direction: column; height: 100%; min-height: 0; }\n.space-panel-head { flex: none; display: flex; align-items: center; gap: 10px; min-height: 58px;\n padding: 9px max(10px, var(--copilotz-inset-end, 0px)) 9px 16px; border-bottom: 1px solid var(--border); }\n.space-panel-mark { display: grid; place-items: center; flex: none; width: 26px; height: 26px;\n border-radius: var(--radius-full); background: var(--primary-soft); color: var(--primary-text); }\n.space-panel-titles { flex: 1; display: grid; min-width: 0; line-height: 1.25; }\n.space-panel-titles h2 { margin: 0; overflow: hidden; font-family: var(--font-display); font-size: 15px;\n font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }\n.space-panel-titles span { color: var(--muted-foreground); font-size: 12px; }\n.space-panel-tabs { flex: none; align-self: flex-start; max-width: calc(100% - 24px); margin: 10px 12px 0; }\n.space-panel-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;\n scrollbar-color: var(--input) transparent; }\n.space-panel-tab { min-height: 100%; padding: 14px 14px 20px; }\n.space-panel-tab[hidden] { display: none; }\n/* A tab with sections, in the panel: its own tabs, under the panel's */\n.space-panel-part { min-height: 100%; display: flex; flex-direction: column; }\n.space-panel-part[hidden] { display: none; }\n.space-panel-part > .space-sections-top { flex: 1; display: flex; flex-direction: column; gap: 0; }\n.space-panel-part .space-sections-tabs { flex: none; max-width: calc(100% - 28px); margin: 12px 14px 0; }\n.space-panel-part .space-sections-body { flex: 1; display: flex; flex-direction: column; }\n.space-panel-part .space-sections-body > .space-panel-tab { flex: 1; min-height: auto; }\n.space-panel-missing { padding: 24px; color: var(--muted-foreground); }\n@container space-panel (max-width: 560px) {\n .space-panel-tabs .copilotz-tab[aria-selected=false] { padding: 0 9px; }\n .space-panel-tabs .copilotz-tab[aria-selected=false] .space-panel-tab-label { position: absolute; width: 1px;\n height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }\n}\n\n/* The org's sections: its people, and what it is */\n.org-row { grid-template-columns: 34px minmax(0, 1fr) auto; }\n.org-row-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.org-row-spacer { width: 30px; }\n.org-row .space-row-end > .copilotz-badge { min-width: 116px; justify-content: center; }\n.org-note { margin: -8px 0 0; }\n.org-remove { display: grid; gap: 18px; }\n.org-remove-means { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; color: var(--secondary-foreground);\n font-size: 14px; line-height: 1.5; }\n.org-remove-means li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }\n.org-remove-means .copilotz-icon { margin-top: 3px; color: var(--muted-foreground); }\n.org-about-role { display: inline-flex; padding-top: 4px; }\n.org-about-role .copilotz-badge { gap: 4px; font-size: 12.5px; padding: 3px 10px; }\n.org-about-roles { display: grid; gap: 6px; color: var(--secondary-foreground); line-height: 1.5; }\n.org-about-roles b { color: var(--foreground); font-weight: 620; }\n.org-about-sees .copilotz-notice-body { line-height: 1.55; }\n@container space-tab (max-width: 520px) {\n .org-row { grid-template-columns: 34px minmax(0, 1fr); }\n .org-row .space-row-end { grid-column: 2; }\n}\n";
|