copilotz 1.0.0-rc.56 → 1.0.0-rc.58
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/AGENTS.md +4 -4
- package/CHANGELOG.md +88 -0
- package/README.md +2 -2
- package/hosts/web/pt-br/computers.d.ts +7 -0
- package/hosts/web/pt-br/computers.js +213 -0
- package/hosts/web/pt-br/mod.d.ts +2 -2
- package/hosts/web/pt-br/mod.js +14 -3
- package/package.json +1 -1
- package/plugins/access/accounts/contract.d.ts +19 -1
- package/plugins/access/accounts/mod.d.ts +4 -1
- package/plugins/access/accounts/mod.js +4 -1
- package/plugins/access/accounts/views/web/accounts.d.ts +8 -1
- package/plugins/access/accounts/views/web/accounts.js +16 -6
- package/plugins/access/accounts/web.d.ts +6 -0
- package/plugins/access/accounts/web.js +6 -0
- package/plugins/access/spaces/views/web/words.d.ts +1 -1
- package/plugins/agents/chat/actions/send.d.ts +1 -1
- package/plugins/agents/chat/actions/send.js +1 -1
- package/plugins/agents/chat/collections/message.d.ts +1 -1
- package/plugins/agents/chat/contract.d.ts +1 -1
- package/plugins/agents/chat/contract.js +1 -1
- package/plugins/agents/chat/views/message.js +9 -8
- package/plugins/billing/usage/views/web/words.d.ts +1 -1
- package/plugins/compute/computers/actions/engine.d.ts +8 -0
- package/plugins/compute/computers/actions/engine.js +142 -0
- package/plugins/compute/computers/actions/engines.d.ts +15 -0
- package/plugins/compute/computers/actions/engines.js +111 -0
- package/plugins/compute/computers/actions/upload.d.ts +1 -0
- package/plugins/compute/computers/actions/upload.js +35 -0
- package/plugins/compute/computers/actions/work.js +9 -23
- package/plugins/compute/computers/adapters/engine.d.ts +34 -0
- package/plugins/compute/computers/adapters/engine.js +228 -0
- package/plugins/compute/computers/collections/computer.d.ts +19 -0
- package/plugins/compute/computers/collections/computer.js +6 -0
- package/plugins/compute/computers/collections/preview.d.ts +1 -1
- package/plugins/compute/computers/mod.d.ts +14 -0
- package/plugins/compute/computers/mod.js +32 -1
- package/plugins/compute/computers/program/agents/acp.d.ts +44 -0
- package/plugins/compute/computers/program/agents/acp.js +473 -0
- package/plugins/compute/computers/program/agents/claude.d.ts +4 -0
- package/plugins/compute/computers/program/agents/claude.js +439 -0
- package/plugins/compute/computers/program/agents/codex.d.ts +78 -0
- package/plugins/compute/computers/program/agents/codex.js +580 -0
- package/plugins/compute/computers/program/agents/engines.d.ts +32 -0
- package/plugins/compute/computers/program/agents/engines.js +381 -0
- package/plugins/compute/computers/program/agents/mcp.d.ts +28 -0
- package/plugins/compute/computers/program/agents/mcp.js +252 -0
- package/plugins/compute/computers/program/agents/permission.d.ts +11 -0
- package/plugins/compute/computers/program/agents/permission.js +46 -0
- package/plugins/compute/computers/program/agents/rpc.d.ts +37 -0
- package/plugins/compute/computers/program/agents/rpc.js +192 -0
- package/plugins/compute/computers/program/agents/steps.d.ts +68 -0
- package/plugins/compute/computers/program/agents/steps.js +146 -0
- package/plugins/compute/computers/program/agents/types.d.ts +136 -0
- package/plugins/compute/computers/program/agents/types.js +13 -0
- package/plugins/compute/computers/program/agents/write.d.ts +2 -0
- package/plugins/compute/computers/program/agents/write.js +13 -0
- package/plugins/compute/computers/program/computer.d.ts +4 -1
- package/plugins/compute/computers/program/computer.js +20 -3
- package/plugins/compute/computers/program/version.d.ts +1 -1
- package/plugins/compute/computers/program/version.js +1 -1
- package/plugins/compute/computers/program/workloads/agents.d.ts +29 -0
- package/plugins/compute/computers/program/workloads/agents.js +38 -0
- package/plugins/compute/computers/program/workloads/files.d.ts +16 -1
- package/plugins/compute/computers/program/workloads/files.js +159 -3
- package/plugins/compute/computers/program/workloads/search.d.ts +1 -1
- package/plugins/compute/computers/resources/downloads.js +1 -1
- package/plugins/compute/computers/resources/engines.d.ts +30 -0
- package/plugins/compute/computers/resources/engines.js +22 -0
- package/plugins/compute/computers/resources/previews.js +2 -28
- package/plugins/compute/computers/resources/tools.d.ts +5 -0
- package/plugins/compute/computers/resources/tools.js +155 -1
- package/plugins/compute/computers/routes/upload.d.ts +30 -0
- package/plugins/compute/computers/routes/upload.js +169 -0
- package/plugins/compute/computers/shared/desks.d.ts +13 -1
- package/plugins/compute/computers/shared/desks.js +34 -0
- package/plugins/compute/computers/shared/engines.d.ts +51 -0
- package/plugins/compute/computers/shared/engines.js +47 -0
- package/plugins/compute/computers/shared/streams.d.ts +13 -0
- package/plugins/compute/computers/shared/streams.js +36 -0
- package/plugins/compute/computers/shared/workloads.d.ts +172 -0
- package/plugins/compute/computers/shared/workloads.js +12 -0
- package/plugins/compute/computers/views/web/file-view.d.ts +5 -1
- package/plugins/compute/computers/views/web/file-view.js +4 -2
- package/plugins/compute/computers/views/web/files.d.ts +18 -1
- package/plugins/compute/computers/views/web/files.js +117 -16
- package/plugins/compute/computers/views/web/plan-card.d.ts +30 -0
- package/plugins/compute/computers/views/web/plan-card.js +85 -0
- package/plugins/compute/computers/views/web/plan-shared.d.ts +18 -0
- package/plugins/compute/computers/views/web/plan-shared.js +45 -0
- package/plugins/compute/computers/views/web/plan-sign-in.d.ts +26 -0
- package/plugins/compute/computers/views/web/plan-sign-in.js +207 -0
- package/plugins/compute/computers/views/web/plan-states.d.ts +138 -0
- package/plugins/compute/computers/views/web/plan-states.js +225 -0
- package/plugins/compute/computers/views/web/plans-palette.d.ts +11 -0
- package/plugins/compute/computers/views/web/plans-palette.js +40 -0
- package/plugins/compute/computers/views/web/plans.d.ts +22 -0
- package/plugins/compute/computers/views/web/plans.js +156 -0
- package/plugins/compute/computers/views/web/step.d.ts +6 -4
- package/plugins/compute/computers/views/web/step.js +43 -1
- package/plugins/compute/computers/views/web/style.d.ts +5 -4
- package/plugins/compute/computers/views/web/style.js +239 -7
- package/plugins/compute/computers/views/web/upload-tray.d.ts +70 -0
- package/plugins/compute/computers/views/web/upload-tray.js +249 -0
- package/plugins/compute/computers/views/web/uploads.d.ts +184 -0
- package/plugins/compute/computers/views/web/uploads.js +425 -0
- package/plugins/compute/computers/views/web/words.d.ts +1 -0
- package/plugins/compute/computers/views/web/words.js +226 -0
- package/plugins/compute/computers/views/web/workspace.js +3 -1
- package/plugins/compute/computers/web.d.ts +9 -4
- package/plugins/compute/computers/web.js +21 -5
- package/plugins/models/shared/catalog.json +9279 -7578
- package/plugins/models/shared/generate.d.ts +4 -1
- package/plugins/models/shared/generate.js +45 -2
- package/plugins/models/shared/provider.d.ts +8 -1
- package/plugins/models/shared/provider.js +9 -2
- package/plugins/models/shared/types.d.ts +2 -0
package/AGENTS.md
CHANGED
|
@@ -4,7 +4,7 @@ A guide for coding agents (Claude Code, Codex, Cursor, Gemini) building an app w
|
|
|
4
4
|
it whole before you write code. The last section is for work on Copilotz itself.
|
|
5
5
|
|
|
6
6
|
It ships in the package (`node_modules/copilotz/AGENTS.md`, and `@copilotz/copilotz` on JSR) and
|
|
7
|
-
goes with `copilotz@1.0.0-rc.
|
|
7
|
+
goes with `copilotz@1.0.0-rc.58`. Every docs page is Markdown at
|
|
8
8
|
`https://copilotz.com/docs/<slug>.md`, and https://copilotz.com/llms.txt lists them all. When you're
|
|
9
9
|
unsure of a name, fetch its page or read the package's types (`node_modules/copilotz/**/*.d.ts`).
|
|
10
10
|
Don't guess.
|
|
@@ -64,12 +64,12 @@ There's no project generator. Set a project up as the docs' courses do, on Node
|
|
|
64
64
|
```sh
|
|
65
65
|
mkdir my-app && cd my-app
|
|
66
66
|
npm init -y && npm pkg set type=module
|
|
67
|
-
npm install copilotz@1.0.0-rc.
|
|
67
|
+
npm install copilotz@1.0.0-rc.58 react@19 react-dom@19
|
|
68
68
|
npm install -D typescript @types/node @types/react @types/react-dom esbuild
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
Pin the version: npm's `latest` tag still points at an early release candidate. On Deno, run
|
|
72
|
-
`deno add jsr:@copilotz/copilotz` and map `"copilotz": "jsr:@copilotz/copilotz@^1.0.0-rc.
|
|
72
|
+
`deno add jsr:@copilotz/copilotz` and map `"copilotz": "jsr:@copilotz/copilotz@^1.0.0-rc.58"` in
|
|
73
73
|
`deno.json`, so imports read the same.
|
|
74
74
|
|
|
75
75
|
Node runs `.ts` files as they are, so there's no build step. It doesn't run `.tsx`: tests that load
|
|
@@ -110,7 +110,7 @@ line `@AGENTS.md` (Claude Code reads `CLAUDE.md`, and follows the import). Keep
|
|
|
110
110
|
```markdown
|
|
111
111
|
# AGENTS.md
|
|
112
112
|
|
|
113
|
-
This app runs on Copilotz (copilotz@1.0.0-rc.
|
|
113
|
+
This app runs on Copilotz (copilotz@1.0.0-rc.58). Read node_modules/copilotz/AGENTS.md first;
|
|
114
114
|
https://copilotz.com/llms.txt lists the docs, as Markdown.
|
|
115
115
|
|
|
116
116
|
- `npm test` runs every test offline, with a scripted model: run it after each change.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,91 @@
|
|
|
1
|
+
## 1.0.0-rc.58 — 2026-11-21
|
|
2
|
+
|
|
3
|
+
Files go between a chat and a computer both ways, and people put files on a computer from its page.
|
|
4
|
+
When a model hands over to the next in its list (a person's plan to an API key), the log and the
|
|
5
|
+
usage say why. A tool call held for a person's plan waits past Claude Code's 5-minute idle limit,
|
|
6
|
+
and the models catalog is refreshed.
|
|
7
|
+
|
|
8
|
+
**New:**
|
|
9
|
+
|
|
10
|
+
- **An agent saves a file sent in its chat on a computer** (`save_file`, the computers plugin): a
|
|
11
|
+
zip to unpack, a spreadsheet to work on, an image to edit, into the space's folder, where commands
|
|
12
|
+
and the other tools reach it. It's a write like `write_file`'s, asked first where writes are. Each
|
|
13
|
+
file a message carries now says its id to the agent
|
|
14
|
+
(`[file data.zip: application/zip, 3214000
|
|
15
|
+
bytes, id …]`, and `[image …, id …]`,
|
|
16
|
+
`[file notes.txt, id …]`), which the tool takes; it reads the file as the agent, so the rules
|
|
17
|
+
decide which it reaches.
|
|
18
|
+
- **An agent sends a file from a computer into its chat** (`send_file`): a report, a chart, a zip it
|
|
19
|
+
made, as its own message with the file (`chat.say`), up to a chat file's size (about 10 MB). Run
|
|
20
|
+
again as itself (a retried turn), it sends nothing more. Chat's contract exports `FILE_DATA`.
|
|
21
|
+
- **Uploads to a computer** (`PUT /computers/upload?desk=&path=[&replace=1]`, the Files view): a
|
|
22
|
+
person puts files in a space's folder on a computer, of up to 2 GiB each, streamed through to it
|
|
23
|
+
as they come and put in place once whole, so a broken upload leaves nothing. Past what one request
|
|
24
|
+
may carry on its way (Cloud Run's 32 MiB, a CDN's 100 MB), a file goes in parts, in order
|
|
25
|
+
(`&upload=&offset=&total=`), kept apart on the computer until the last; parts nobody finished go
|
|
26
|
+
after a day. Only where they may change the computer from its panel (`computer.upload`, on the
|
|
27
|
+
record: who put what where), a computer that sleeps woken first, and one between connections
|
|
28
|
+
waited for. A file there is kept unless replaced. The Files view takes files picked or dropped,
|
|
29
|
+
with each one's progress, and asks before replacing one.
|
|
30
|
+
- **The computer program says what it serves** (`Info.serves`), and takes a file streamed in
|
|
31
|
+
(`computer.files.put`). The app asks a computer what it serves before an upload, so one whose
|
|
32
|
+
program is older answers at once that it needs updating (501, `outdated`).
|
|
33
|
+
|
|
34
|
+
- **Why a model handed over, on the record.** A model of a list that doesn't answer and hands over
|
|
35
|
+
to the next (a person's plan falling back to an API key) is logged by the process
|
|
36
|
+
(`models: <model> didn't answer after 31.2 s, thinking (<code>: <words>); <next> answers instead
|
|
37
|
+
[thread=… agent=… turn=…]`),
|
|
38
|
+
and the model that answers instead says so on its usage (`fallback`, `fallbackWhy` tags). The
|
|
39
|
+
engine adapter logs a session it starts over. The computer program logs a plan's prompt that
|
|
40
|
+
failed, and a step the app stopped reading before it ended, with how long it ran (`computer.log`).
|
|
41
|
+
|
|
42
|
+
**Fixed:**
|
|
43
|
+
|
|
44
|
+
- **A tool call held for a person's plan no longer fails after 5 minutes.** Claude Code aborts a
|
|
45
|
+
tool that sends nothing for 5 minutes, and a call held for its answer is silent until it comes (a
|
|
46
|
+
person's yes, the app's next step). The computer program gives Claude Code's idle limit a day, as
|
|
47
|
+
its whole limit already was (`CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT`, and the server's own `timeout`
|
|
48
|
+
in its MCP config).
|
|
49
|
+
|
|
50
|
+
**Changed:**
|
|
51
|
+
|
|
52
|
+
- **The models catalog**, refreshed from models.dev (2026-11-21): Google's Gemini 4 Carbon, Neon and
|
|
53
|
+
Hydrogen among what's new, with their prices and reasoning.
|
|
54
|
+
- `computer.work`'s rules for a person working on a computer (in its space, its owner's where they
|
|
55
|
+
answer for it, a computer that sleeps woken) are `personalDesk`, which uploads share. A desk that
|
|
56
|
+
isn't there is `not_found` (it was `invalid`).
|
|
57
|
+
|
|
58
|
+
## 1.0.0-rc.57 — 2026-11-20
|
|
59
|
+
|
|
60
|
+
Agents can run on the plan of the person they work for: Claude, ChatGPT through Codex, or Google AI
|
|
61
|
+
through Antigravity, through the plan's CLI on a computer of theirs, signed in once.
|
|
62
|
+
|
|
63
|
+
**New:**
|
|
64
|
+
|
|
65
|
+
- **Agents on people's own plans** (the computers plugin). Three model providers run a model call on
|
|
66
|
+
the plan's CLI on the person's own computer instead of an API key: `claude-plan/<model>` (Claude
|
|
67
|
+
Code), `codex-plan/<model>` (Codex, on a ChatGPT plan) and `gemini-plan/<model>` (Antigravity, on
|
|
68
|
+
a Google AI plan). An agent names one first and an API model next
|
|
69
|
+
(`["claude-plan/claude-opus-5-5", "anthropic/claude-opus-5-5"]`): with nobody there (a routine),
|
|
70
|
+
no plan signed in, the computer off or the plan's limit reached, the list moves on at once. The
|
|
71
|
+
CLI is only the engine: the agent's instructions replace its own, its built-in tools are off, and
|
|
72
|
+
the agent's tools reach it as MCP tools from the computer program, running where every tool runs.
|
|
73
|
+
A tool call ends a step while the CLI waits; the next step answers it and goes on. A session per
|
|
74
|
+
conversation saves time, and the conversation stays the truth: edited or summarized, a fresh
|
|
75
|
+
session is given it all. Uses are metered as `paid: "subscription"`, at no cost to the app. See
|
|
76
|
+
[Agents on people's own plans](docs/guides/agents-on-peoples-plans.md).
|
|
77
|
+
- **Signing a plan in, once** (`computer.engines`, `computer.engine.login`): a person's computers
|
|
78
|
+
and the CLIs each has, signed in or not, and the CLI's own sign-in, run there from the app. It
|
|
79
|
+
stays on the computer, in a home the program keeps for each CLI, apart from the person's own use
|
|
80
|
+
of it. A plan runs only on its person's own computer, never on one shared where others' agents
|
|
81
|
+
work as them. Connected accounts shows them beside the ChatGPT plan, through a new
|
|
82
|
+
`accountSections` resource other plugins can add to.
|
|
83
|
+
- **The computer program speaks the Agent Client Protocol** to the CLIs (the `computer.agents.*`
|
|
84
|
+
workloads): Antigravity natively, Claude Code and Codex through its own adapters. No CLI is
|
|
85
|
+
shipped with it.
|
|
86
|
+
- **A provider's adapter can ask Actions as whom a call is for** (`connection.call`), beside the
|
|
87
|
+
`headers` function that already heard it.
|
|
88
|
+
|
|
1
89
|
## 1.0.0-rc.56 — 2026-11-18
|
|
2
90
|
|
|
3
91
|
A security fix: `runtime.bytes` no longer serves an outside actor what no rule speaks for. And the
|
package/README.md
CHANGED
|
@@ -152,7 +152,7 @@ ana sees: Tue 10:00, Wed 15:00
|
|
|
152
152
|
```sh
|
|
153
153
|
npm install copilotz@next # Node 24+ (npm, pnpm, yarn)
|
|
154
154
|
bun add copilotz@next # Bun
|
|
155
|
-
deno add jsr:@copilotz/copilotz@^1.0.0-rc.
|
|
155
|
+
deno add jsr:@copilotz/copilotz@^1.0.0-rc.58 # Deno 2.9+ (or `deno add npm:copilotz@next`)
|
|
156
156
|
```
|
|
157
157
|
|
|
158
158
|
Until 1.0, the release candidates are on npm's `next` tag, and a plain `npm install copilotz` or
|
|
@@ -166,7 +166,7 @@ OPENAI_API_KEY=sk-… node salon.ts # or bun salon.ts, or deno run -A salon.t
|
|
|
166
166
|
```
|
|
167
167
|
|
|
168
168
|
On Deno, map the name `copilotz` in `deno.json`
|
|
169
|
-
(`"copilotz": "jsr:@copilotz/copilotz@^1.0.0-rc.
|
|
169
|
+
(`"copilotz": "jsr:@copilotz/copilotz@^1.0.0-rc.58"`) so the imports read the same everywhere.
|
|
170
170
|
Copilotz runs on Node 24+, Deno 2.9+ and Bun, and it's built on web standards for Cloudflare Workers
|
|
171
171
|
and the browser.
|
|
172
172
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Computers' words in Brazilian Portuguese (a person's plans on their own computers, a
|
|
3
|
+
* computer's Files tab and uploading to it, an agent's calls that move a file between a chat and
|
|
4
|
+
* a computer): the keys `hosts/web/WORDS.md` lists, `computers.*`.
|
|
5
|
+
*/
|
|
6
|
+
import type { Words } from "../words.js";
|
|
7
|
+
export declare const computers: Words;
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
export const computers = {
|
|
2
|
+
"computers.anotherComputer": "Outro computador",
|
|
3
|
+
"computers.antigravityAbout": "Seus agentes rodam no seu plano do Google AI, pelo Antigravity no seu computador.",
|
|
4
|
+
"computers.antigravityCli": "Antigravity",
|
|
5
|
+
"computers.antigravityPlan": "plano do Google AI",
|
|
6
|
+
"computers.antigravityTitle": "Plano do Google AI, pelo Antigravity",
|
|
7
|
+
"computers.askMeFirst": "Perguntar a mim antes em {spaces}",
|
|
8
|
+
"computers.cancel": "Cancelar",
|
|
9
|
+
"computers.checkAgain": "Verificar de novo",
|
|
10
|
+
"computers.checkFailed": "Não deu para verificar seus computadores: {why}",
|
|
11
|
+
"computers.checkedAt": "verificado por último {time}",
|
|
12
|
+
"computers.checking": "Verificando seus computadores…",
|
|
13
|
+
"computers.claudeAbout": "Seus agentes rodam no seu plano do Claude, pelo Claude Code no seu computador.",
|
|
14
|
+
"computers.claudeCli": "Claude Code",
|
|
15
|
+
"computers.claudePlan": "plano do Claude",
|
|
16
|
+
"computers.claudeTitle": "Plano do Claude",
|
|
17
|
+
"computers.close": "Fechar",
|
|
18
|
+
"computers.codeHint": "Se a página mostrar um código depois que você entrar, cole aqui.",
|
|
19
|
+
"computers.codeLabel": "O código da página de login",
|
|
20
|
+
"computers.codePlaceholder": "Cole o código",
|
|
21
|
+
"computers.codeSent": "Código enviado: finalizando…",
|
|
22
|
+
"computers.codexAbout": "Seus agentes rodam no seu plano do ChatGPT, pelo Codex no seu computador.",
|
|
23
|
+
"computers.codexCli": "Codex",
|
|
24
|
+
"computers.codexPlan": "plano do ChatGPT",
|
|
25
|
+
"computers.codexTitle": "Plano do ChatGPT, pelo Codex",
|
|
26
|
+
"computers.connectComputer": "Conectar um computador",
|
|
27
|
+
"computers.copyCode": "Copiar o código",
|
|
28
|
+
"computers.done": "Pronto",
|
|
29
|
+
"computers.doneAs": "Conectado como {account}",
|
|
30
|
+
"computers.doneNext": "Seus agentes rodam nele a partir de agora, em todas as conversas e espaços daqui.",
|
|
31
|
+
"computers.doneOn": "Em {computer}, pelo {cli}",
|
|
32
|
+
"computers.doneTitle": "Seu {plan} está conectado",
|
|
33
|
+
"computers.dropTitle": "Solte para enviar",
|
|
34
|
+
"computers.dropTo": "Para {folder} em {computer}",
|
|
35
|
+
"computers.failedEnded": "Ele parou sem entrar. Tente de novo, ou leia abaixo o que ele disse.",
|
|
36
|
+
"computers.failedStart": "Não deu para entrar: {why}",
|
|
37
|
+
"computers.failedTitle": "O {cli} não entrou",
|
|
38
|
+
"computers.filesDownload": "Baixar {name}",
|
|
39
|
+
"computers.filesEmpty": "Nada aqui ainda",
|
|
40
|
+
"computers.filesEmptyDrop": "Solte arquivos aqui para enviá-los. O que você e seus agentes fizerem nesta pasta também aparece aqui.",
|
|
41
|
+
"computers.filesEmptyText": "O que você e seus agentes fizerem nesta pasta aparece aqui.",
|
|
42
|
+
"computers.filesFilter": "Filtrar",
|
|
43
|
+
"computers.filesFilterLabel": "Filtrar esta pasta",
|
|
44
|
+
"computers.filesIn": "Em {folder}",
|
|
45
|
+
"computers.filesItsOwner": "o dono dele",
|
|
46
|
+
"computers.filesJustUploaded": "enviado",
|
|
47
|
+
"computers.filesNoMatch": "Nada aqui corresponde a “{filter}”.",
|
|
48
|
+
"computers.filesOn": "{folder}, em {computer}",
|
|
49
|
+
"computers.filesRefresh": "Atualizar",
|
|
50
|
+
"computers.filesUpTo": "Voltar para {folder}",
|
|
51
|
+
"computers.filesViewOnly": "Só {owner} muda arquivos em {computer} aqui. Você pode abri-los e baixá-los.",
|
|
52
|
+
"computers.filesWhere": "Onde, na pasta",
|
|
53
|
+
"computers.folderDropped": "“{name}” é uma pasta, e pastas não podem ser enviadas. Solte os arquivos dela, ou um zip dela.",
|
|
54
|
+
"computers.foldersDropped": {
|
|
55
|
+
one: "{count} pasta não foi enviada: pastas não podem ser. Solte os arquivos dela, ou um zip dela.",
|
|
56
|
+
other: "{count} pastas não foram enviadas: pastas não podem ser. Solte os arquivos delas, ou um zip de cada uma.",
|
|
57
|
+
},
|
|
58
|
+
"computers.gotCode": "A página deu um código?",
|
|
59
|
+
"computers.hideInstall": "Ocultar",
|
|
60
|
+
"computers.howToFix": "Como usar",
|
|
61
|
+
"computers.howToInstall": "Como instalar",
|
|
62
|
+
"computers.installAnywhere": "Num terminal nesse computador, rode:",
|
|
63
|
+
"computers.installCommand": "O comando que instala o {cli}",
|
|
64
|
+
"computers.installIn": "Num terminal em {computer}, rode:",
|
|
65
|
+
"computers.installMissing": "O {cli} ainda não está instalado em {computer}. Num terminal lá, rode:",
|
|
66
|
+
"computers.installThen": "Depois verifique de novo aqui. É a instalação oficial do {cli}.",
|
|
67
|
+
"computers.keepAsIs": "Deixar como está",
|
|
68
|
+
"computers.keepBoth": "Manter os dois",
|
|
69
|
+
"computers.listMore": "{rest} e {last}",
|
|
70
|
+
"computers.listPair": "{first} e {second}",
|
|
71
|
+
"computers.moreOn": "Mais de {computer}",
|
|
72
|
+
"computers.newFile": "Novo arquivo",
|
|
73
|
+
"computers.newFileMake": "Criar o arquivo",
|
|
74
|
+
"computers.newFileName": "O nome do novo arquivo",
|
|
75
|
+
"computers.newFilePlaceholder": "notas.md, ou src/novo.ts",
|
|
76
|
+
"computers.noComputerText": "Os planos rodam pelos apps deles num computador seu, um Mac, um PC com Linux ou Windows, " +
|
|
77
|
+
"enquanto ele estiver ligado. Conecte um, e entre aqui.",
|
|
78
|
+
"computers.noComputerTitle": "Conecte um computador seu primeiro",
|
|
79
|
+
"computers.notOpened": "Não está nessa tela? Abra aqui",
|
|
80
|
+
"computers.offline": "Offline",
|
|
81
|
+
"computers.offlineNote": "{computer} está offline. Ligue-o, ou abra o programa do computador nele, e tente de novo.",
|
|
82
|
+
"computers.openSignIn": "Abrir a página de login",
|
|
83
|
+
"computers.openSpace": "Abrir {space}",
|
|
84
|
+
"computers.optionAsleep": "Dormindo: ele acorda primeiro",
|
|
85
|
+
"computers.optionReady": "Pronto para entrar",
|
|
86
|
+
"computers.output": "O que o {cli} diz",
|
|
87
|
+
"computers.ownSignIn": "É o login dos seus agentes: o seu próprio uso do {cli} nesse computador continua como está.",
|
|
88
|
+
"computers.paletteGroup": "Geral",
|
|
89
|
+
"computers.paletteKeywords": "plano, assinatura, entrar, login, computador, Claude, ChatGPT, Codex, Gemini, Google",
|
|
90
|
+
"computers.palettePlans": "Planos nos seus computadores",
|
|
91
|
+
"computers.paletteSignIn": "Entrar no seu {plan}",
|
|
92
|
+
"computers.paletteSignedIn": "Conectado em {computer}",
|
|
93
|
+
"computers.paletteSignedInMany": {
|
|
94
|
+
one: "Conectado em {count} computador",
|
|
95
|
+
other: "Conectado em {count} computadores",
|
|
96
|
+
},
|
|
97
|
+
"computers.personal": "seu espaço Pessoal",
|
|
98
|
+
"computers.plansAbout": "Seus agentes podem rodar num plano que você já paga, em vez de uma chave de API. Entre uma " +
|
|
99
|
+
"vez, pelo app dele num computador seu, e ele vale em todas as conversas e espaços daqui.",
|
|
100
|
+
"computers.plansPrivate": "Nada é cobrado aqui por essas chamadas. O login fica no seu computador: este app nunca o vê.",
|
|
101
|
+
"computers.plansTitle": "Planos nos seus computadores",
|
|
102
|
+
"computers.replace": "Substituir",
|
|
103
|
+
"computers.replaceAll": {
|
|
104
|
+
one: "Fazer o mesmo com o outro arquivo que já está lá",
|
|
105
|
+
other: "Fazer o mesmo com os outros {count} arquivos que já estão lá",
|
|
106
|
+
},
|
|
107
|
+
"computers.replaceFolderText": "Um arquivo não substitui uma pasta. Envie o seu ao lado dela com outro nome, ou pule.",
|
|
108
|
+
"computers.replaceFolderTitle": "Já tem uma pasta chamada “{name}”",
|
|
109
|
+
"computers.replaceKeepAs": "Manter os dois envia o seu como “{name}”.",
|
|
110
|
+
"computers.replaceText": "{folder} já tem um arquivo chamado “{name}”. Substituir põe o seu no lugar dele.",
|
|
111
|
+
"computers.replaceThere": "O que está lá: {size}, alterado {time}",
|
|
112
|
+
"computers.replaceTitle": "Substituir “{name}”?",
|
|
113
|
+
"computers.replaceYours": "O seu: {size}, alterado {time}",
|
|
114
|
+
"computers.rowInstalled": "Instalado, sem login",
|
|
115
|
+
"computers.rowMissing": "O {cli} não está instalado",
|
|
116
|
+
"computers.rowOld": "Não respondeu: o programa do computador talvez precise de atualização",
|
|
117
|
+
"computers.rowSharedSomewhere": "Compartilhado com agentes de outros",
|
|
118
|
+
"computers.rowSignedIn": "Conectado",
|
|
119
|
+
"computers.rowSignedInAs": "Conectado como {account}",
|
|
120
|
+
"computers.rowUnchecked": "Ainda não verificado",
|
|
121
|
+
"computers.runsWhileOn": "Seus agentes o usam enquanto {computer} estiver ligado; até lá, usam os modelos do app.",
|
|
122
|
+
"computers.send": "Enviar",
|
|
123
|
+
"computers.sharedFix": "Para usá-lo no seu plano, faça os agentes deles perguntarem a você antes lá: assim nada roda " +
|
|
124
|
+
"nele sem o seu sim. Ou tire-o de {spaces}, pelo menu dele lá.",
|
|
125
|
+
"computers.sharedNotice": "{computer} está compartilhado com agentes de outros em {spaces}, então seus planos não rodam nele.",
|
|
126
|
+
"computers.sharedNoticeSomewhere": "{computer} está compartilhado com agentes de outros, então seus planos não rodam nele.",
|
|
127
|
+
"computers.sharedTitle": "{computer} está compartilhado com agentes de outros",
|
|
128
|
+
"computers.sharedWhy": "Em {spaces}, os agentes de cada pessoa trabalham em {computer} como você. Com login lá, " +
|
|
129
|
+
"seu plano também seria deles para usar, então ele não pode rodar nele.",
|
|
130
|
+
"computers.sharedWhySomewhere": "Agentes de outros trabalham em {computer} como você, onde ele está compartilhado. Com login " +
|
|
131
|
+
"lá, seu plano também seria deles para usar, então ele não pode rodar nele.",
|
|
132
|
+
"computers.signIn": "Entrar",
|
|
133
|
+
"computers.signInAgain": "Entrar de novo",
|
|
134
|
+
"computers.signInOn": "Pelo {cli}, em {computer}.",
|
|
135
|
+
"computers.signInOther": "Entrar em outro computador",
|
|
136
|
+
"computers.signInThrough": "Pelo {cli}, num computador seu.",
|
|
137
|
+
"computers.signInTitle": "Entrar no seu {plan}",
|
|
138
|
+
"computers.signedIn": "Conectado",
|
|
139
|
+
"computers.skip": "Pular",
|
|
140
|
+
"computers.start": "Começar o login",
|
|
141
|
+
"computers.stepCode": "Cole o código que ela der",
|
|
142
|
+
"computers.stepEnterCode": "Abra a página de login, entre com a conta que tem o seu plano, e digite este código lá:",
|
|
143
|
+
"computers.stepSaved": "Salvou {file} em {path}",
|
|
144
|
+
"computers.stepSaves": "Salva {file} em {path}",
|
|
145
|
+
"computers.stepSavesFile": "Salva um arquivo desta conversa em {path}",
|
|
146
|
+
"computers.stepSavesFolder": "Salva um arquivo desta conversa na pasta do espaço",
|
|
147
|
+
"computers.stepSends": "Envia {path} para esta conversa",
|
|
148
|
+
"computers.stepSent": "Enviou {file}",
|
|
149
|
+
"computers.stepSignIn": "Entre no seu {plan}",
|
|
150
|
+
"computers.stepSignInHere": "Abra a página de login, e entre com a conta que tem o seu plano.",
|
|
151
|
+
"computers.stepSignInThere": "Uma página de login abre no navegador de {computer}. Entre lá, com a conta que tem o seu plano.",
|
|
152
|
+
"computers.stepSignInWait": "A página de login aparece aqui assim que o {cli} a mostrar.",
|
|
153
|
+
"computers.stepStart": "Abrindo o {cli} em {computer}",
|
|
154
|
+
"computers.stepWake": "Acordando {computer}",
|
|
155
|
+
"computers.tryAgain": "Tentar de novo",
|
|
156
|
+
"computers.upload": "Enviar",
|
|
157
|
+
"computers.uploadAsking": "Já tem um com este nome",
|
|
158
|
+
"computers.uploadCancel": "Cancelar o envio de {name}",
|
|
159
|
+
"computers.uploadCancelled": "Cancelado",
|
|
160
|
+
"computers.uploadDone": "Enviado",
|
|
161
|
+
"computers.uploadDoneAs": "Enviado como {name}",
|
|
162
|
+
"computers.uploadFailed": "Não foi enviado. Tente de novo.",
|
|
163
|
+
"computers.uploadFinishing": "Salvando em {computer}…",
|
|
164
|
+
"computers.uploadFolderThere": "Já tem uma pasta com esse nome, e um arquivo não a substitui.",
|
|
165
|
+
"computers.uploadForbidden": "Você não pode mudar arquivos neste computador.",
|
|
166
|
+
"computers.uploadFull": "Não tem mais espaço no disco de {computer}.",
|
|
167
|
+
"computers.uploadIn": "em {folder}",
|
|
168
|
+
"computers.uploadInvalid": "Esse nome não pode ser usado aqui.",
|
|
169
|
+
"computers.uploadNetwork": "A conexão caiu. Tente de novo.",
|
|
170
|
+
"computers.uploadNoLength": "O navegador não disse o tamanho dele. Tente de novo.",
|
|
171
|
+
"computers.uploadNoWake": "{computer} não acordou a tempo. Tente de novo.",
|
|
172
|
+
"computers.uploadNotFound": "Este computador não está mais neste espaço.",
|
|
173
|
+
"computers.uploadOffline": "{computer} está offline. Tente de novo quando ele estiver ligado.",
|
|
174
|
+
"computers.uploadOpen": "Abrir {name}",
|
|
175
|
+
"computers.uploadOutdated": "O programa do computador de {computer} é antigo demais para receber envios. Ele se atualiza sozinho, ou o dono dele o atualiza: depois tente de novo.",
|
|
176
|
+
"computers.uploadProgress": "{done} de {total}",
|
|
177
|
+
"computers.uploadProgressLabel": "Enviando {name}",
|
|
178
|
+
"computers.uploadQueued": "Esperando para enviar",
|
|
179
|
+
"computers.uploadReplaced": "Enviado no lugar do que estava lá",
|
|
180
|
+
"computers.uploadRestart": "Este envio foi interrompido e precisa começar de novo.",
|
|
181
|
+
"computers.uploadSignedOut": "Você saiu da sua conta. Entre de novo, e tente de novo.",
|
|
182
|
+
"computers.uploadSkipped": "Pulado: o que está lá fica",
|
|
183
|
+
"computers.uploadTooLarge": "Ele tem {size}: um arquivo pode ter no máximo {most}.",
|
|
184
|
+
"computers.uploadTooLargeHere": "Ele tem {size}: grande demais para enviar por este app.",
|
|
185
|
+
"computers.uploadUnavailable": "{computer} não conseguiu acordar. Tente de novo daqui a pouco.",
|
|
186
|
+
"computers.uploadWaiting": "Esperando {computer}…",
|
|
187
|
+
"computers.uploadWaking": "Acordando {computer}…",
|
|
188
|
+
"computers.uploading": {
|
|
189
|
+
one: "Enviando {count} arquivo",
|
|
190
|
+
other: "Enviando {count} arquivos",
|
|
191
|
+
},
|
|
192
|
+
"computers.uploads": "Envios",
|
|
193
|
+
"computers.uploadsAsking": {
|
|
194
|
+
one: "{count} espera por você",
|
|
195
|
+
other: "{count} esperam por você",
|
|
196
|
+
},
|
|
197
|
+
"computers.uploadsCancelAll": "Cancelar todos",
|
|
198
|
+
"computers.uploadsDone": {
|
|
199
|
+
one: "{count} arquivo enviado",
|
|
200
|
+
other: "{count} arquivos enviados",
|
|
201
|
+
},
|
|
202
|
+
"computers.uploadsFailed": {
|
|
203
|
+
one: "{count} não foi enviado",
|
|
204
|
+
other: "{count} não foram enviados",
|
|
205
|
+
},
|
|
206
|
+
"computers.uploadsHide": "Ocultar envios",
|
|
207
|
+
"computers.uploadsLeft": "faltam {size}",
|
|
208
|
+
"computers.version": "versão {version}",
|
|
209
|
+
"computers.waiting": "Esperando o login terminar…",
|
|
210
|
+
"computers.wakeNote": "{computer} acorda primeiro: leva um momento.",
|
|
211
|
+
"computers.whichComputer": "Em qual computador?",
|
|
212
|
+
"computers.whichHint": "As chamadas dos seus agentes rodam lá, então ele precisa estar ligado enquanto eles trabalham.",
|
|
213
|
+
};
|
package/hosts/web/pt-br/mod.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Brazilian Portuguese for the web, out of the box (`copilotz/web/pt-br`): a
|
|
3
3
|
* plugin of the page's whose `words` say every word Copilotz's web front ends
|
|
4
|
-
* show (chat, spaces, the shell, memory, usage,
|
|
5
|
-
* host: every key of hosts/web/WORDS.md), and whose `signInPage` says the
|
|
4
|
+
* show (chat, spaces, the shell, memory, usage, computers' plans, the palette,
|
|
5
|
+
* the toolkit, the host: every key of hosts/web/WORDS.md), and whose `signInPage` says the
|
|
6
6
|
* sign-in page's, with Copilotz's pitch beside the form in Portuguese.
|
|
7
7
|
*
|
|
8
8
|
* ```ts
|
package/hosts/web/pt-br/mod.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Brazilian Portuguese for the web, out of the box (`copilotz/web/pt-br`): a
|
|
3
3
|
* plugin of the page's whose `words` say every word Copilotz's web front ends
|
|
4
|
-
* show (chat, spaces, the shell, memory, usage,
|
|
5
|
-
* host: every key of hosts/web/WORDS.md), and whose `signInPage` says the
|
|
4
|
+
* show (chat, spaces, the shell, memory, usage, computers' plans, the palette,
|
|
5
|
+
* the toolkit, the host: every key of hosts/web/WORDS.md), and whose `signInPage` says the
|
|
6
6
|
* sign-in page's, with Copilotz's pitch beside the form in Portuguese.
|
|
7
7
|
*
|
|
8
8
|
* ```ts
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
import { definePlugin } from "../../../runtime/mod.js";
|
|
22
22
|
import { about } from "./about.js";
|
|
23
23
|
import { chat } from "./chat.js";
|
|
24
|
+
import { computers } from "./computers.js";
|
|
24
25
|
import { host } from "./host.js";
|
|
25
26
|
import { memory } from "./memory.js";
|
|
26
27
|
import { palette } from "./palette.js";
|
|
@@ -32,7 +33,17 @@ import { usage } from "./usage.js";
|
|
|
32
33
|
export const ptBR = definePlugin({
|
|
33
34
|
name: "words-pt-br",
|
|
34
35
|
resources: {
|
|
35
|
-
words: {
|
|
36
|
+
words: {
|
|
37
|
+
...chat,
|
|
38
|
+
...computers,
|
|
39
|
+
...host,
|
|
40
|
+
...memory,
|
|
41
|
+
...palette,
|
|
42
|
+
...shell,
|
|
43
|
+
...spaces,
|
|
44
|
+
...toolkit,
|
|
45
|
+
...usage,
|
|
46
|
+
},
|
|
36
47
|
signInPage: { words: signIn, about },
|
|
37
48
|
},
|
|
38
49
|
});
|
package/package.json
CHANGED
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
* (a person's), and `account.token` (trusted code only: a model provider,
|
|
12
12
|
* a tool calling the provider's API for its person);
|
|
13
13
|
* - its event `account.changed`, as an account is connected, lost or
|
|
14
|
-
* disconnected
|
|
14
|
+
* disconnected;
|
|
15
|
+
* - on the web, the `accountSections` resource: a section of another front
|
|
16
|
+
* end's on the Connected accounts page, below the providers
|
|
17
|
+
* (`AccountSection`).
|
|
15
18
|
*
|
|
16
19
|
* A provider is a resource: the OAuth endpoints, the client, its scopes, how
|
|
17
20
|
* to tell who the account is, and the headers its token goes in:
|
|
@@ -121,6 +124,21 @@ export type ProviderShown = {
|
|
|
121
124
|
paste?: string;
|
|
122
125
|
models?: string[];
|
|
123
126
|
};
|
|
127
|
+
/**
|
|
128
|
+
* An `accountSections` resource: a section another front end adds to the
|
|
129
|
+
* Connected accounts page, below the providers (a person's plans on their
|
|
130
|
+
* own computers). Its View gets item `{}` and hints `{ query, mode }`: the
|
|
131
|
+
* page's address query, for its own parameters (`?signin=claude`), and
|
|
132
|
+
* `full` or `panel`. Lowest `order` first; `null` takes one out.
|
|
133
|
+
*
|
|
134
|
+
* ```ts
|
|
135
|
+
* resources: { accountSections: { plans: { view: "computer.plans", order: 10 } } }
|
|
136
|
+
* ```
|
|
137
|
+
*/
|
|
138
|
+
export type AccountSection = {
|
|
139
|
+
view: string;
|
|
140
|
+
order?: number;
|
|
141
|
+
};
|
|
124
142
|
/** What `account.connect` answers: where to sign in, and (to paste back) where the person lands. */
|
|
125
143
|
export type Connecting = {
|
|
126
144
|
url: string;
|
|
@@ -40,7 +40,10 @@
|
|
|
40
40
|
* disconnected: the audit trail, with nothing secret in it.
|
|
41
41
|
*
|
|
42
42
|
* Its web front end is `accountsWeb` (web.tsx): the Connected accounts page,
|
|
43
|
-
* and in a chat, a quiet word when its agents run on your plan.
|
|
43
|
+
* and in a chat, a quiet word when its agents run on your plan. Other front
|
|
44
|
+
* ends add sections to that page, below the providers, with an
|
|
45
|
+
* `accountSections` resource (`{ <key>: { view, order } }`, see contract.ts):
|
|
46
|
+
* computers' plans, signed in on the person's own computers, are one.
|
|
44
47
|
*
|
|
45
48
|
* ```ts
|
|
46
49
|
* plugins: [...access, accounts, definePlugin({ name: "app", resources: {
|
|
@@ -40,7 +40,10 @@
|
|
|
40
40
|
* disconnected: the audit trail, with nothing secret in it.
|
|
41
41
|
*
|
|
42
42
|
* Its web front end is `accountsWeb` (web.tsx): the Connected accounts page,
|
|
43
|
-
* and in a chat, a quiet word when its agents run on your plan.
|
|
43
|
+
* and in a chat, a quiet word when its agents run on your plan. Other front
|
|
44
|
+
* ends add sections to that page, below the providers, with an
|
|
45
|
+
* `accountSections` resource (`{ <key>: { view, order } }`, see contract.ts):
|
|
46
|
+
* computers' plans, signed in on the person's own computers, are one.
|
|
44
47
|
*
|
|
45
48
|
* ```ts
|
|
46
49
|
* plugins: [...access, accounts, definePlugin({ name: "app", resources: {
|
|
@@ -5,8 +5,15 @@
|
|
|
5
5
|
* tokens), live: renewed, lost or disconnected, it shows at once.
|
|
6
6
|
* Connecting opens its dialog; the address opens one too
|
|
7
7
|
* (`?connect=chatgpt`: the command palette's), and says how a connection
|
|
8
|
-
* that came back to the app went (`?connected=`, `?failed=…&why=`).
|
|
8
|
+
* that came back to the app went (`?connected=`, `?failed=…&why=`). Below
|
|
9
|
+
* the providers, the sections other front ends add (`accountSections`, each
|
|
10
|
+
* shown with the address's query), then the person's own API keys.
|
|
9
11
|
*/
|
|
10
12
|
import { type ReactNode } from "react";
|
|
11
13
|
import type { ViewContext } from "../../../../../runtime/mod.js";
|
|
14
|
+
import type { AccountSection } from "../../contract.js";
|
|
12
15
|
export declare const accountsView: (_: unknown, ctx: ViewContext<ReactNode>) => ReactNode;
|
|
16
|
+
/** The sections an `accountSections` resource adds, lowest `order` first (by key when they tie). */
|
|
17
|
+
export declare const sectionsOf: (given: unknown) => (AccountSection & {
|
|
18
|
+
key: string;
|
|
19
|
+
})[];
|
|
@@ -6,9 +6,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
* tokens), live: renewed, lost or disconnected, it shows at once.
|
|
7
7
|
* Connecting opens its dialog; the address opens one too
|
|
8
8
|
* (`?connect=chatgpt`: the command palette's), and says how a connection
|
|
9
|
-
* that came back to the app went (`?connected=`, `?failed=…&why=`).
|
|
9
|
+
* that came back to the app went (`?connected=`, `?failed=…&why=`). Below
|
|
10
|
+
* the providers, the sections other front ends add (`accountSections`, each
|
|
11
|
+
* shown with the address's query), then the person's own API keys.
|
|
10
12
|
*/
|
|
11
|
-
import { useEffect, useState } from "react";
|
|
13
|
+
import { Fragment, useEffect, useState } from "react";
|
|
12
14
|
import { Button, EmptyState, go, Icon, Notice, Page, Skeleton, Title, } from "../../../../../hosts/web/mod.js";
|
|
13
15
|
import { ProviderCard } from "./card.js";
|
|
14
16
|
import { ConnectDialog } from "./connect.js";
|
|
@@ -27,11 +29,17 @@ export const accountsView = (_, ctx) => {
|
|
|
27
29
|
if (!providers || !accounts) {
|
|
28
30
|
return (_jsxs(Page, { title: TITLE, description: ABOUT, icon: "lock", density: density, children: [_jsx(Title, { text: TITLE }), style, _jsx("div", { className: "account-skeleton", "aria-busy": "true", children: _jsx(Skeleton, { height: 112, radius: "xl" }) })] }));
|
|
29
31
|
}
|
|
32
|
+
// Other front ends' sections, below the providers (`accountSections`), as the address asks.
|
|
33
|
+
const sections = sectionsOf(ctx.resources.accountSections).map((section) => (_jsx(Fragment, { children: ctx.show(section.view, {}, { query, mode: density }) }, section.key)));
|
|
30
34
|
// The person's own API keys, below their accounts (`accounts.keys`).
|
|
31
35
|
const keys = ctx.show("accounts.keys", {});
|
|
32
|
-
return (_jsxs(Page, { title: TITLE, description: ABOUT, icon: "lock", density: density, children: [_jsx(Title, { text: TITLE }), style, _jsx(AccountsBody, { providers: providers, accounts: accounts, query: query, call: ctx.call }), keys] }));
|
|
36
|
+
return (_jsxs(Page, { title: TITLE, description: ABOUT, icon: "lock", density: density, children: [_jsx(Title, { text: TITLE }), style, _jsx(AccountsBody, { providers: providers, accounts: accounts, query: query, call: ctx.call, sections: sections }), keys] }));
|
|
33
37
|
};
|
|
34
|
-
|
|
38
|
+
/** The sections an `accountSections` resource adds, lowest `order` first (by key when they tie). */
|
|
39
|
+
export const sectionsOf = (given) => Object.entries((given ?? {}))
|
|
40
|
+
.flatMap(([key, section]) => section?.view ? [{ ...section, key }] : [])
|
|
41
|
+
.sort((a, b) => (a.order ?? 0) - (b.order ?? 0) || a.key.localeCompare(b.key));
|
|
42
|
+
function AccountsBody({ providers, accounts, query, call, sections }) {
|
|
35
43
|
const asked = providers.some((p) => p.name === query.connect) ? query.connect : undefined;
|
|
36
44
|
const [connecting, setConnecting] = useState(asked);
|
|
37
45
|
// Asked for by the address (the palette's "Connect…"), on this page already or not.
|
|
@@ -53,7 +61,9 @@ function AccountsBody({ providers, accounts, query, call }) {
|
|
|
53
61
|
const leavingFrom = providers.find((p) => p.name === leaving);
|
|
54
62
|
const leavingAccount = accountOf(leaving);
|
|
55
63
|
if (!providers.length) {
|
|
56
|
-
return
|
|
64
|
+
return sections.length
|
|
65
|
+
? _jsx("div", { className: "accounts", children: sections })
|
|
66
|
+
: (_jsx(EmptyState, { icon: "lock", title: "Nothing to connect yet", children: "This app doesn't offer accounts to connect." }));
|
|
57
67
|
}
|
|
58
68
|
return (_jsxs("div", { className: "accounts", children: [came && query.connected && accountOf(query.connected)?.status === "connected"
|
|
59
69
|
? (_jsxs(Notice, { tone: "success", role: "status", action: _jsx(Button, { size: "sm", variant: "ghost", onClick: clear, children: "Dismiss" }), children: [titleOf(query.connected), " is connected: agents working for you use it from now on."] }))
|
|
@@ -61,7 +71,7 @@ function AccountsBody({ providers, accounts, query, call }) {
|
|
|
61
71
|
? (_jsx(Notice, { tone: "warning", role: "alert", action: providers.some((p) => p.name === query.failed)
|
|
62
72
|
? (_jsx(Button, { size: "sm", onClick: () => setConnecting(query.failed), children: "Try again" }))
|
|
63
73
|
: null, children: failedWhy(query.why, titleOf(query.failed)) }))
|
|
64
|
-
: null, _jsx("ul", { className: "accounts-list", children: providers.map((provider) => (_jsx(ProviderCard, { provider: provider, account: accountOf(provider.name), onConnect: () => setConnecting(provider.name), onDisconnect: () => setLeaving(provider.name) }, provider.name))) }), _jsxs("p", { className: "accounts-foot", children: [_jsx(Icon, { name: "lock", size: 14 }), _jsx("span", { children: "Sign-ins stay on the server, never shown in the app or to agents' models. Disconnecting ends them at the provider too." })] }), connectingTo
|
|
74
|
+
: null, _jsx("ul", { className: "accounts-list", children: providers.map((provider) => (_jsx(ProviderCard, { provider: provider, account: accountOf(provider.name), onConnect: () => setConnecting(provider.name), onDisconnect: () => setLeaving(provider.name) }, provider.name))) }), _jsxs("p", { className: "accounts-foot", children: [_jsx(Icon, { name: "lock", size: 14 }), _jsx("span", { children: "Sign-ins stay on the server, never shown in the app or to agents' models. Disconnecting ends them at the provider too." })] }), sections, connectingTo
|
|
65
75
|
? (_jsx(ConnectDialog, { provider: connectingTo, open: !!connecting, again: !!accountOf(connectingTo.name), onClose: closeConnect, call: call }, connectingTo.name))
|
|
66
76
|
: null, leavingFrom && leavingAccount
|
|
67
77
|
? (_jsx(DisconnectDialog, { provider: leavingFrom, account: leavingAccount, open: !!leaving, onClose: () => setLeaving(undefined), call: call }))
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
* you type, a quiet word when its agents run on your plan (chat's
|
|
9
9
|
* `conversation` resource) or would, if you reconnected it.
|
|
10
10
|
*
|
|
11
|
+
* Other front ends add a section to the page, below the providers, with an
|
|
12
|
+
* `accountSections` resource: `{ <key>: { view, order } }`, its View given
|
|
13
|
+
* item `{}` and hints `{ query, mode }` (contract.ts's `AccountSection`).
|
|
14
|
+
* Computers' front end adds a person's plans, signed in on their own
|
|
15
|
+
* computers (`plans: { view: "computer.plans" }`).
|
|
16
|
+
*
|
|
11
17
|
* For the shell's account menu, it names its page in `userMenu` (the menu
|
|
12
18
|
* by the person's name, when the shell has one). Add it beside the web shell
|
|
13
19
|
* and chat's front end:
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
* you type, a quiet word when its agents run on your plan (chat's
|
|
9
9
|
* `conversation` resource) or would, if you reconnected it.
|
|
10
10
|
*
|
|
11
|
+
* Other front ends add a section to the page, below the providers, with an
|
|
12
|
+
* `accountSections` resource: `{ <key>: { view, order } }`, its View given
|
|
13
|
+
* item `{}` and hints `{ query, mode }` (contract.ts's `AccountSection`).
|
|
14
|
+
* Computers' front end adds a person's plans, signed in on their own
|
|
15
|
+
* computers (`plans: { view: "computer.plans" }`).
|
|
16
|
+
*
|
|
11
17
|
* For the shell's account menu, it names its page in `userMenu` (the menu
|
|
12
18
|
* by the person's name, when the shell has one). Add it beside the web shell
|
|
13
19
|
* and chat's front end:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const say: import("../../../../../hosts/web/words.js").Say<"cancel" | "done" | "join" | "kind" | "id" | "person" | "view" | "name" | "ok" | "settings" | "
|
|
1
|
+
export declare const say: import("../../../../../hosts/web/words.js").Say<"cancel" | "done" | "join" | "kind" | "id" | "person" | "view" | "name" | "ok" | "settings" | "space" | "people" | "invite" | "restore" | "details" | "save" | "emailPlaceholder" | "inviteTitle" | "personal" | "staff" | "archived" | "shared" | "roles" | "agents" | "theirPersonal" | "roleViewer" | "roleViewerLets" | "roleEditor" | "roleEditorLets" | "roleManager" | "roleManagerLets" | "agentEditorLets" | "agentViewerLets" | "aRole" | "anRole" | "listPair" | "listMore" | "invitedOne" | "invitedMany" | "kindPeople" | "newSpace" | "nameIt" | "newSpaceNote" | "createNamed" | "atMost" | "renameTitle" | "newName" | "renameNote" | "renameTo" | "archiveTitle" | "archiveNote" | "archiveNamed" | "keepIt" | "leaveTitle" | "leaveNote" | "leaveNamed" | "stay" | "peopleCount" | "agentsCount" | "workBoth" | "workPeopleOnly" | "rename" | "archiveMenu" | "leaveMenu" | "spaceNameLabel" | "renameSpace" | "justYou" | "personalAbout" | "membersNamed" | "inviteSomeone" | "newChat" | "newChatHere" | "moreOf" | "addAgent" | "agentsAboutPersonal" | "agentsAboutShared" | "noAgents" | "madeIn" | "madeElsewhere" | "appAgent" | "anAgent" | "makeAnswer" | "edit" | "removeFromSpace" | "answersNew" | "roleOf" | "joinNamed" | "decline" | "invitationTo" | "invitedTo" | "invitedYou" | "byAs" | "invitedAt" | "invitations" | "moreInvitations" | "invitationsWaiting" | "inviteAbout" | "addAgentTitle" | "addAgentAbout" | "theirEmail" | "theirRole" | "inviteHint" | "inviteHintMany" | "personalAlone" | "managersAdd" | "managersAddThis" | "whoToAdd" | "membersPersonal" | "waitingToJoin" | "invitePeople" | "spacesDrawing" | "spaceMembersIn" | "you" | "leaveThisSpace" | "takeOut" | "askedBy" | "askedByWhy" | "asked" | "askedWhy" | "letIn" | "turnDown" | "nameNewSpace" | "nameSpace" | "makeSpace" | "nothingSent" | "onlyReadsTitle" | "notWorkingTitle" | "notNow" | "makeEditorsSend" | "addSend" | "waitingReads" | "waitingAdd" | "askManagersEditor" | "askManagersAdd" | "aboutLabel" | "orgNamePersonal" | "orgNameOwner" | "orgNameOthers" | "orgNameLabel" | "yourRole" | "staffRole" | "kindPersonal" | "kindTeam" | "orgRoleLine" | "copyOrgId" | "seesYou" | "seesOwners" | "seesAsOwner" | "seesAsAdmin" | "seesTheirs" | "orgSaved" | "orgPersonalAlone" | "invitedHeading" | "removedHanded" | "removedPlain" | "onlyOwner" | "removeFromOrg" | "orgInvited" | "invitedTime" | "takeBackTo" | "takeBack" | "removeTitle" | "removeNamed" | "removeMeansOut" | "removeMeansPersonal" | "heirLabel" | "heirHint" | "youNamed" | "invitedYouAs" | "declineInvitation" | "inviteToNamed" | "renameNamed" | "restoreNamed" | "archiveNamedMore" | "leaveNamedMore" | "tabIn" | "thisSpace" | "spacesGroup" | "youreHere" | "createGroup" | "newSpaceMore" | "newSpaceNamed" | "keysAcceptInvitation" | "keysInvitation" | "keysInvite" | "keysRestore" | "keysPersonal" | "keysNewSpace" | "keysPick" | "keysCreate" | "panelMissing" | "panelLabel" | "sharedSpace" | "openPage" | "tabsOf" | "invitedNotJoined" | "invitedByYou" | "invitedBy" | "partsOf" | "notYourSpace" | "notInSpace" | "goHome" | "notInSpaceAbout" | "nothingHere" | "nothingHereAbout" | "isArchived" | "archivedNote" | "general" | "members" | "managersChange" | "nameSettingPersonal" | "nameSettingShared" | "copySpaceId" | "leave" | "leaveAbout" | "archiveSetting" | "archivedAt" | "archiveAbout" | "archiveReadableLead" | "archiveReadableRest" | "archiveApartLead" | "archiveApartRest" | "archiveBackLead" | "archiveBackRest" | "saved" | "answersAbout" | "answersViewersOnly" | "answersNone" | "answersLabel" | "answersNow" | "acrossOrg" | "acrossOrgHint" | "spacesUnder" | "nameArchived" | "personalHint" | "showWhat" | "hideWhat" | "showIn" | "hideIn">;
|