copilotz 1.0.0-rc.2 → 1.0.0-rc.21
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 +927 -0
- package/README.md +351 -35
- package/hosts/orgs/mod.d.ts +29 -3
- package/hosts/orgs/mod.js +135 -12
- package/hosts/web/files.d.ts +6 -2
- package/hosts/web/files.js +36 -3
- package/hosts/web/mod.d.ts +1 -1
- package/hosts/web/mod.js +1 -1
- package/hosts/web/node/mod.d.ts +1 -1
- package/hosts/web/node/mod.js +1 -1
- package/hosts/web/node/serve.d.ts +26 -0
- package/hosts/web/node/serve.js +27 -2
- package/hosts/web/orgs.d.ts +36 -0
- package/hosts/web/orgs.js +21 -3
- package/hosts/web/pwa.js +1 -1
- package/hosts/web/routes.d.ts +90 -6
- package/hosts/web/routes.js +190 -34
- package/hosts/web/server.d.ts +13 -2
- package/hosts/web/server.js +12 -4
- 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/hosts/web/toolkit/time.js +2 -1
- package/package.json +10 -6
- package/plugins/access/accounts/actions/complete.js +2 -2
- package/plugins/access/accounts/actions/connect.js +2 -2
- package/plugins/access/accounts/actions/disconnect.js +2 -2
- package/plugins/access/accounts/actions/model-key.d.ts +5 -0
- package/plugins/access/accounts/actions/model-key.js +102 -0
- package/plugins/access/accounts/collections/account.d.ts +2 -2
- package/plugins/access/accounts/collections/account.js +1 -2
- package/plugins/access/accounts/collections/flow.d.ts +1 -1
- package/plugins/access/accounts/collections/model-key.d.ts +58 -0
- package/plugins/access/accounts/collections/model-key.js +17 -0
- package/plugins/access/accounts/mod.d.ts +5 -0
- package/plugins/access/accounts/mod.js +14 -1
- package/plugins/access/accounts/resources/models.js +2 -0
- package/plugins/access/accounts/shared/rules.js +1 -1
- package/plugins/access/accounts/shared/settings.js +2 -2
- package/plugins/access/contacts/actions/chat.d.ts +1 -0
- package/plugins/access/contacts/actions/chat.js +45 -0
- package/plugins/access/contacts/actions/forget.d.ts +1 -0
- package/plugins/access/contacts/actions/forget.js +56 -0
- package/plugins/access/contacts/actions/start.d.ts +1 -0
- package/plugins/access/contacts/actions/start.js +50 -0
- package/plugins/access/contacts/collections/contact.d.ts +81 -0
- package/plugins/access/contacts/collections/contact.js +58 -0
- package/plugins/access/contacts/contract.d.ts +10 -0
- package/plugins/access/contacts/contract.js +10 -0
- package/plugins/access/contacts/mod.d.ts +27 -0
- package/plugins/access/contacts/mod.js +49 -0
- package/plugins/access/contacts/views/contact.d.ts +8 -0
- package/plugins/access/contacts/views/contact.js +25 -0
- package/plugins/access/contacts/web.d.ts +7 -0
- package/plugins/access/contacts/web.js +11 -0
- package/plugins/access/directory/actions/code.d.ts +4 -0
- package/plugins/access/directory/actions/code.js +135 -0
- package/plugins/access/directory/actions/host.d.ts +2 -0
- package/plugins/access/directory/actions/host.js +54 -0
- package/plugins/access/directory/actions/invite.js +1 -2
- package/plugins/access/directory/actions/org.js +19 -9
- package/plugins/access/directory/collections/credit-code.d.ts +114 -0
- package/plugins/access/directory/collections/credit-code.js +28 -0
- package/plugins/access/directory/collections/invite.d.ts +1 -1
- package/plugins/access/directory/collections/org-host.d.ts +61 -0
- package/plugins/access/directory/collections/org-host.js +29 -0
- package/plugins/access/directory/collections/org.d.ts +3 -3
- package/plugins/access/directory/mod.d.ts +4 -1
- package/plugins/access/directory/mod.js +13 -2
- package/plugins/access/identity/actions/key.js +3 -3
- package/plugins/access/identity/actions/session.js +2 -2
- package/plugins/access/identity/collections/credential.d.ts +1 -1
- package/plugins/access/identity/collections/credential.js +2 -2
- package/plugins/access/identity/mod.js +8 -6
- package/plugins/access/mod.d.ts +7 -1
- package/plugins/access/mod.js +7 -2
- package/plugins/access/spaces/actions/agents.js +15 -12
- package/plugins/access/spaces/actions/archive.js +4 -5
- package/plugins/access/spaces/actions/can.js +4 -4
- package/plugins/access/spaces/actions/create.js +12 -3
- package/plugins/access/spaces/actions/invitation.js +16 -13
- package/plugins/access/spaces/actions/keep.d.ts +1 -0
- package/plugins/access/spaces/actions/keep.js +55 -0
- package/plugins/access/spaces/actions/leave.js +2 -2
- package/plugins/access/spaces/actions/member.js +46 -38
- package/plugins/access/spaces/actions/org.d.ts +1 -0
- package/plugins/access/spaces/actions/org.js +26 -17
- package/plugins/access/spaces/actions/personal.js +5 -2
- package/plugins/access/spaces/actions/rename.js +8 -5
- package/plugins/access/spaces/actions/request.js +8 -13
- package/plugins/access/spaces/actions/share.js +2 -3
- package/plugins/access/spaces/collections/invitation.js +2 -2
- package/plugins/access/spaces/collections/member.d.ts +1 -1
- package/plugins/access/spaces/collections/profile.d.ts +61 -0
- package/plugins/access/spaces/collections/profile.js +54 -0
- package/plugins/access/spaces/collections/request.d.ts +1 -1
- package/plugins/access/spaces/collections/request.js +2 -2
- package/plugins/access/spaces/collections/space.d.ts +9 -0
- package/plugins/access/spaces/collections/space.js +33 -4
- package/plugins/access/spaces/contract.d.ts +50 -6
- package/plugins/access/spaces/contract.js +3 -0
- package/plugins/access/spaces/mod.d.ts +12 -1
- package/plugins/access/spaces/mod.js +26 -3
- package/plugins/access/spaces/processors/profile.d.ts +7 -0
- package/plugins/access/spaces/processors/profile.js +10 -0
- package/plugins/access/spaces/resources/commands.js +14 -4
- package/plugins/access/spaces/resources/tools.d.ts +0 -5
- package/plugins/access/spaces/resources/tools.js +14 -2
- package/plugins/access/spaces/shared/agents.js +2 -2
- package/plugins/access/spaces/shared/can.d.ts +27 -0
- package/plugins/access/spaces/shared/can.js +51 -0
- package/plugins/access/spaces/shared/declared.d.ts +21 -0
- package/plugins/access/spaces/shared/declared.js +8 -0
- package/plugins/access/spaces/shared/labels.d.ts +7 -1
- package/plugins/access/spaces/shared/labels.js +79 -11
- package/plugins/access/spaces/shared/managers.js +3 -3
- package/plugins/access/spaces/shared/names.d.ts +70 -0
- package/plugins/access/spaces/shared/names.js +105 -0
- package/plugins/access/spaces/shared/profile.d.ts +21 -0
- package/plugins/access/spaces/shared/profile.js +27 -0
- package/plugins/access/spaces/shared/reach.d.ts +28 -4
- package/plugins/access/spaces/shared/reach.js +81 -14
- package/plugins/access/spaces/shared/rules.d.ts +10 -5
- package/plugins/access/spaces/shared/rules.js +39 -12
- package/plugins/access/spaces/shared/seat.d.ts +10 -0
- package/plugins/access/spaces/shared/seat.js +29 -0
- package/plugins/access/spaces/views/elsewhere.d.ts +2 -1
- package/plugins/access/spaces/views/elsewhere.js +30 -8
- package/plugins/access/spaces/views/web/agents.d.ts +6 -1
- package/plugins/access/spaces/views/web/agents.js +7 -5
- package/plugins/access/spaces/views/web/header.d.ts +3 -1
- package/plugins/access/spaces/views/web/header.js +5 -5
- package/plugins/access/spaces/views/web/invitation.d.ts +3 -1
- package/plugins/access/spaces/views/web/invitation.js +2 -2
- package/plugins/access/spaces/views/web/invitations.js +3 -1
- package/plugins/access/spaces/views/web/invited.js +3 -1
- package/plugins/access/spaces/views/web/inviting.js +5 -3
- package/plugins/access/spaces/views/web/members.d.ts +3 -1
- package/plugins/access/spaces/views/web/members.js +52 -19
- package/plugins/access/spaces/views/web/org-about.js +3 -3
- package/plugins/access/spaces/views/web/org-members.d.ts +1 -1
- package/plugins/access/spaces/views/web/org-members.js +8 -7
- package/plugins/access/spaces/views/web/palette.js +18 -10
- package/plugins/access/spaces/views/web/panel.d.ts +3 -2
- package/plugins/access/spaces/views/web/panel.js +33 -17
- package/plugins/access/spaces/views/web/pending.d.ts +3 -1
- package/plugins/access/spaces/views/web/pending.js +5 -5
- 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 +25 -9
- package/plugins/access/spaces/views/web/spaces.js +3 -2
- package/plugins/access/spaces/views/web/style.d.ts +1 -1
- package/plugins/access/spaces/views/web/style.js +41 -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/views/web/tree.d.ts +3 -1
- package/plugins/access/spaces/views/web/tree.js +10 -9
- package/plugins/access/spaces/views/web/who.d.ts +14 -5
- package/plugins/access/spaces/views/web/who.js +25 -10
- package/plugins/access/spaces/views/where.d.ts +4 -2
- package/plugins/access/spaces/views/where.js +18 -3
- package/plugins/access/spaces/web.js +19 -2
- package/plugins/access/web.d.ts +1 -0
- package/plugins/access/web.js +1 -0
- package/plugins/agents/chat/actions/erase.d.ts +1 -0
- package/plugins/agents/chat/actions/erase.js +51 -0
- package/plugins/agents/chat/actions/fork.js +2 -2
- package/plugins/agents/chat/actions/move.js +2 -2
- package/plugins/agents/chat/actions/open.d.ts +1 -0
- package/plugins/agents/chat/actions/open.js +49 -0
- package/plugins/agents/chat/actions/quiet.d.ts +1 -0
- package/plugins/agents/chat/actions/quiet.js +33 -0
- package/plugins/agents/chat/actions/say.d.ts +1 -0
- package/plugins/agents/chat/actions/say.js +82 -0
- package/plugins/agents/chat/actions/send.js +77 -18
- package/plugins/agents/chat/actions/shown.d.ts +1 -0
- package/plugins/agents/chat/actions/shown.js +35 -0
- package/plugins/agents/chat/actions/stop.js +9 -2
- package/plugins/agents/chat/collections/file.d.ts +2 -0
- package/plugins/agents/chat/collections/file.js +4 -2
- package/plugins/agents/chat/collections/intent.d.ts +124 -0
- package/plugins/agents/chat/collections/intent.js +52 -0
- package/plugins/agents/chat/collections/message.d.ts +223 -3
- package/plugins/agents/chat/collections/message.js +73 -6
- package/plugins/agents/chat/collections/shown.d.ts +105 -0
- package/plugins/agents/chat/collections/shown.js +34 -0
- package/plugins/agents/chat/collections/thread.d.ts +9 -0
- package/plugins/agents/chat/collections/thread.js +5 -3
- package/plugins/agents/chat/contract.d.ts +19 -8
- package/plugins/agents/chat/contract.js +9 -0
- package/plugins/agents/chat/mod.d.ts +30 -7
- package/plugins/agents/chat/mod.js +62 -9
- package/plugins/agents/chat/processors/failed.js +21 -5
- package/plugins/agents/chat/processors/turn.d.ts +1 -1
- package/plugins/agents/chat/processors/turn.js +139 -43
- package/plugins/agents/chat/shared/agents.d.ts +9 -0
- package/plugins/agents/chat/shared/delivery.d.ts +23 -3
- package/plugins/agents/chat/shared/delivery.js +96 -10
- package/plugins/agents/chat/shared/lineage.d.ts +31 -5
- package/plugins/agents/chat/shared/lineage.js +65 -21
- package/plugins/agents/chat/shared/origin.d.ts +22 -0
- package/plugins/agents/chat/shared/origin.js +11 -0
- package/plugins/agents/chat/shared/send.d.ts +3 -1
- package/plugins/agents/chat/shared/send.js +82 -3
- package/plugins/agents/chat/shared/tools.d.ts +33 -0
- package/plugins/agents/chat/shared/tools.js +28 -0
- package/plugins/agents/chat/shared/types.d.ts +105 -9
- package/plugins/agents/chat/shared/types.js +3 -0
- package/plugins/agents/chat/views/context.d.ts +4 -2
- package/plugins/agents/chat/views/context.js +7 -3
- package/plugins/agents/chat/views/history.d.ts +4 -0
- package/plugins/agents/chat/views/message.d.ts +8 -2
- package/plugins/agents/chat/views/message.js +46 -10
- package/plugins/agents/chat/views/participants.js +7 -1
- package/plugins/agents/chat/views/prompt.d.ts +3 -1
- package/plugins/agents/chat/views/prompt.js +66 -18
- package/plugins/agents/chat/views/terminal/agent-prompt.js +2 -2
- package/plugins/agents/chat/views/terminal/author.js +5 -1
- package/plugins/agents/chat/views/web/composer.d.ts +7 -2
- package/plugins/agents/chat/views/web/composer.js +9 -1
- package/plugins/agents/chat/views/web/conversation.d.ts +3 -2
- package/plugins/agents/chat/views/web/conversation.js +18 -5
- package/plugins/agents/chat/views/web/header.d.ts +2 -1
- package/plugins/agents/chat/views/web/header.js +1 -1
- package/plugins/agents/chat/views/web/held.d.ts +10 -9
- package/plugins/agents/chat/views/web/held.js +27 -20
- package/plugins/agents/chat/views/web/home.d.ts +3 -2
- package/plugins/agents/chat/views/web/home.js +1 -1
- package/plugins/agents/chat/views/web/message.d.ts +10 -1
- package/plugins/agents/chat/views/web/message.js +23 -5
- package/plugins/agents/chat/views/web/over.d.ts +9 -8
- package/plugins/agents/chat/views/web/over.js +10 -9
- package/plugins/agents/chat/views/web/style.d.ts +1 -1
- package/plugins/agents/chat/views/web/style.js +19 -6
- package/plugins/agents/chat/web.d.ts +5 -1
- package/plugins/agents/chat/web.js +5 -1
- package/plugins/agents/history/collections/outline.d.ts +74 -7
- package/plugins/agents/history/collections/outline.js +20 -4
- package/plugins/agents/history/collections/summary.d.ts +1 -1
- package/plugins/agents/history/mod.d.ts +14 -6
- package/plugins/agents/history/mod.js +16 -7
- package/plugins/agents/history/processors/compact.d.ts +6 -1
- package/plugins/agents/history/processors/compact.js +112 -43
- package/plugins/agents/history/processors/erase.d.ts +3 -0
- package/plugins/agents/history/processors/erase.js +11 -0
- package/plugins/agents/history/resources/tools.js +12 -3
- package/plugins/agents/history/shared/lines.d.ts +5 -2
- package/plugins/agents/history/shared/lines.js +10 -2
- package/plugins/agents/history/shared/settings.d.ts +5 -1
- package/plugins/agents/history/shared/weight.d.ts +28 -0
- package/plugins/agents/history/shared/weight.js +62 -0
- package/plugins/agents/history/views/history.d.ts +4 -1
- package/plugins/agents/history/views/history.js +21 -7
- package/plugins/agents/history/views/since.d.ts +6 -3
- package/plugins/agents/history/views/since.js +9 -2
- package/plugins/agents/memory/collections/memory.js +17 -6
- package/plugins/agents/memory/mod.js +4 -3
- package/plugins/agents/memory/processors/extract.d.ts +1 -1
- package/plugins/agents/memory/processors/extract.js +14 -4
- package/plugins/agents/memory/resources/context.d.ts +9 -1
- package/plugins/agents/memory/resources/context.js +7 -1
- package/plugins/agents/memory/resources/tools.js +12 -9
- package/plugins/agents/memory/shared/scope.d.ts +12 -3
- package/plugins/agents/memory/shared/scope.js +25 -6
- package/plugins/agents/memory/shared/search.d.ts +3 -1
- package/plugins/agents/memory/shared/search.js +18 -4
- package/plugins/agents/memory/shared/settings.d.ts +12 -4
- package/plugins/agents/memory/shared/settings.js +15 -4
- package/plugins/agents/memory/views/context.d.ts +4 -1
- package/plugins/agents/memory/views/context.js +27 -11
- package/plugins/agents/memory/views/memory.d.ts +1 -0
- package/plugins/agents/memory/views/memory.js +4 -2
- package/plugins/agents/memory/views/terminal/memory.d.ts +4 -1
- package/plugins/agents/memory/views/terminal/memory.js +7 -2
- package/plugins/agents/memory/views/web/card.d.ts +4 -2
- package/plugins/agents/memory/views/web/card.js +4 -3
- package/plugins/agents/memory/views/web/list.d.ts +3 -1
- package/plugins/agents/memory/views/web/list.js +20 -9
- package/plugins/agents/memory/views/web/memories.js +5 -1
- package/plugins/agents/memory/views/web/pick.js +8 -5
- package/plugins/agents/memory/web.js +9 -1
- package/plugins/agents/mod.d.ts +7 -3
- package/plugins/agents/mod.js +7 -3
- package/plugins/agents/openapi/actions/operation.d.ts +11 -0
- package/plugins/agents/openapi/actions/operation.js +86 -0
- package/plugins/agents/openapi/contract.d.ts +79 -0
- package/plugins/agents/openapi/contract.js +1 -0
- package/plugins/agents/openapi/mod.d.ts +5 -0
- package/plugins/agents/openapi/mod.js +78 -0
- package/plugins/agents/openapi/resources/tools.d.ts +9 -0
- package/plugins/agents/openapi/resources/tools.js +23 -0
- package/plugins/agents/openapi/shared/files.d.ts +4 -0
- package/plugins/agents/openapi/shared/files.js +126 -0
- package/plugins/agents/openapi/shared/plan.d.ts +34 -0
- package/plugins/agents/openapi/shared/plan.js +122 -0
- package/plugins/agents/openapi/shared/request.d.ts +15 -0
- package/plugins/agents/openapi/shared/request.js +87 -0
- package/plugins/agents/openapi/shared/response.d.ts +24 -0
- package/plugins/agents/openapi/shared/response.js +133 -0
- package/plugins/agents/openapi/shared/schema.d.ts +20 -0
- package/plugins/agents/openapi/shared/schema.js +128 -0
- package/plugins/agents/openapi/shared/settings.d.ts +22 -0
- package/plugins/agents/openapi/shared/settings.js +34 -0
- package/plugins/agents/openapi/shared/spec.d.ts +55 -0
- package/plugins/agents/openapi/shared/spec.js +99 -0
- package/plugins/agents/routines/actions/create.js +24 -12
- package/plugins/agents/routines/actions/delete.js +2 -2
- package/plugins/agents/routines/actions/origin.d.ts +1 -0
- package/plugins/agents/routines/actions/origin.js +32 -0
- package/plugins/agents/routines/actions/pause.js +2 -2
- package/plugins/agents/routines/actions/resume.js +2 -2
- package/plugins/agents/routines/actions/run.js +4 -4
- package/plugins/agents/routines/actions/update.js +18 -10
- package/plugins/agents/routines/collections/routine.d.ts +15 -3
- package/plugins/agents/routines/collections/routine.js +14 -8
- package/plugins/agents/routines/collections/run.d.ts +10 -1
- package/plugins/agents/routines/collections/run.js +2 -0
- package/plugins/agents/routines/contract.d.ts +7 -1
- package/plugins/agents/routines/mod.d.ts +10 -2
- package/plugins/agents/routines/mod.js +14 -2
- package/plugins/agents/routines/resources/tools.js +64 -13
- package/plugins/agents/routines/shared/fire.d.ts +5 -2
- package/plugins/agents/routines/shared/fire.js +30 -14
- package/plugins/agents/routines/shared/routines.d.ts +17 -8
- package/plugins/agents/routines/shared/routines.js +33 -19
- package/plugins/agents/routines/shared/schedule.d.ts +5 -0
- package/plugins/agents/routines/shared/schedule.js +12 -1
- package/plugins/agents/routines/views/web/form.d.ts +4 -3
- package/plugins/agents/routines/views/web/form.js +29 -7
- package/plugins/agents/routines/views/web/new.js +1 -1
- package/plugins/agents/routines/views/web/page.d.ts +2 -1
- package/plugins/agents/routines/views/web/page.js +32 -10
- package/plugins/agents/routines/views/web/routines.d.ts +2 -1
- package/plugins/agents/routines/views/web/routines.js +1 -1
- package/plugins/agents/routines/views/web/step.js +3 -1
- package/plugins/agents/routines/views/web/style.d.ts +1 -1
- package/plugins/agents/routines/views/web/style.js +1 -0
- package/plugins/agents/routines/web.js +1 -1
- package/plugins/agents/skills/actions/create.js +2 -2
- package/plugins/agents/skills/actions/delete.js +2 -2
- package/plugins/agents/skills/actions/update.js +2 -2
- package/plugins/agents/skills/collections/skill.js +4 -4
- package/plugins/agents/skills/shared/write.d.ts +2 -3
- package/plugins/agents/skills/shared/write.js +2 -1
- package/plugins/agents/skills/views/web/page.js +7 -3
- package/plugins/agents/skills/web.js +3 -1
- package/plugins/agents/team/actions/agent.js +5 -6
- package/plugins/agents/team/collections/agent.js +3 -3
- package/plugins/agents/team/contract.d.ts +7 -4
- package/plugins/agents/team/views/web/agent-fields.js +3 -4
- package/plugins/agents/team/views/web/model-pick.d.ts +25 -0
- package/plugins/agents/team/views/web/model-pick.js +39 -0
- package/plugins/agents/team/views/web/model-picker.d.ts +23 -0
- package/plugins/agents/team/views/web/model-picker.js +206 -0
- package/plugins/agents/team/views/web/style.d.ts +2 -2
- package/plugins/agents/team/views/web/style.js +52 -1
- package/plugins/agents/team/web.d.ts +4 -2
- package/plugins/agents/team/web.js +6 -2
- package/plugins/agents/tiers/actions/choose.d.ts +2 -0
- package/plugins/agents/tiers/actions/choose.js +98 -0
- package/plugins/agents/tiers/actions/model.d.ts +1 -0
- package/plugins/agents/tiers/actions/model.js +36 -0
- package/plugins/agents/tiers/collections/choice.d.ts +48 -0
- package/plugins/agents/tiers/collections/choice.js +59 -0
- package/plugins/agents/tiers/contract.d.ts +19 -0
- package/plugins/agents/tiers/contract.js +1 -0
- package/plugins/agents/tiers/mod.d.ts +54 -0
- package/plugins/agents/tiers/mod.js +92 -0
- package/plugins/agents/tiers/shared/shown.d.ts +87 -0
- package/plugins/agents/tiers/shared/shown.js +155 -0
- package/plugins/agents/tiers/shared/tiers.d.ts +103 -0
- package/plugins/agents/tiers/shared/tiers.js +129 -0
- package/plugins/agents/tiers/views/web/org.d.ts +38 -0
- package/plugins/agents/tiers/views/web/org.js +142 -0
- package/plugins/agents/tiers/views/web/space.d.ts +43 -0
- package/plugins/agents/tiers/views/web/space.js +103 -0
- package/plugins/agents/tiers/views/web/style.d.ts +7 -0
- package/plugins/agents/tiers/views/web/style.js +87 -0
- package/plugins/agents/tiers/views/web/words.d.ts +21 -0
- package/plugins/agents/tiers/views/web/words.js +49 -0
- package/plugins/agents/tiers/web.d.ts +18 -0
- package/plugins/agents/tiers/web.js +40 -0
- package/plugins/agents/web.d.ts +1 -0
- package/plugins/agents/web.js +1 -0
- package/plugins/billing/credits/actions/check.d.ts +5 -0
- package/plugins/billing/credits/actions/check.js +97 -0
- package/plugins/billing/credits/actions/manage.d.ts +9 -0
- package/plugins/billing/credits/actions/manage.js +266 -0
- package/plugins/billing/credits/actions/state.d.ts +2 -0
- package/plugins/billing/credits/actions/state.js +172 -0
- package/plugins/billing/credits/collections/credit.d.ts +110 -0
- package/plugins/billing/credits/collections/credit.js +31 -0
- package/plugins/billing/credits/collections/payment.d.ts +139 -0
- package/plugins/billing/credits/collections/payment.js +32 -0
- package/plugins/billing/credits/collections/plan.d.ts +428 -0
- package/plugins/billing/credits/collections/plan.js +97 -0
- package/plugins/billing/credits/collections/room.d.ts +85 -0
- package/plugins/billing/credits/collections/room.js +24 -0
- package/plugins/billing/credits/contract.d.ts +19 -0
- package/plugins/billing/credits/contract.js +12 -0
- package/plugins/billing/credits/mod.d.ts +38 -0
- package/plugins/billing/credits/mod.js +72 -0
- package/plugins/billing/credits/shared/apply.d.ts +66 -0
- package/plugins/billing/credits/shared/apply.js +106 -0
- package/plugins/billing/credits/shared/settings.d.ts +70 -0
- package/plugins/billing/credits/shared/settings.js +28 -0
- package/plugins/billing/credits/shared/standing.d.ts +71 -0
- package/plugins/billing/credits/shared/standing.js +235 -0
- package/plugins/billing/credits/shared/walk.d.ts +50 -0
- package/plugins/billing/credits/shared/walk.js +127 -0
- package/plugins/billing/credits/views/web/add.d.ts +25 -0
- package/plugins/billing/credits/views/web/add.js +92 -0
- package/plugins/billing/credits/views/web/budget.d.ts +16 -0
- package/plugins/billing/credits/views/web/budget.js +62 -0
- package/plugins/billing/credits/views/web/composer.d.ts +13 -0
- package/plugins/billing/credits/views/web/composer.js +64 -0
- package/plugins/billing/credits/views/web/history.d.ts +12 -0
- package/plugins/billing/credits/views/web/history.js +55 -0
- package/plugins/billing/credits/views/web/numbers.d.ts +256 -0
- package/plugins/billing/credits/views/web/numbers.js +291 -0
- package/plugins/billing/credits/views/web/org.d.ts +31 -0
- package/plugins/billing/credits/views/web/org.js +238 -0
- package/plugins/billing/credits/views/web/plan.d.ts +28 -0
- package/plugins/billing/credits/views/web/plan.js +84 -0
- package/plugins/billing/credits/views/web/staff.d.ts +20 -0
- package/plugins/billing/credits/views/web/staff.js +265 -0
- package/plugins/billing/credits/views/web/style.d.ts +9 -0
- package/plugins/billing/credits/views/web/style.js +190 -0
- package/plugins/billing/credits/views/web/types.d.ts +17 -0
- package/plugins/billing/credits/views/web/types.js +32 -0
- package/plugins/billing/credits/web.d.ts +12 -0
- package/plugins/billing/credits/web.js +33 -0
- package/plugins/billing/mod.d.ts +8 -3
- package/plugins/billing/mod.js +7 -3
- package/plugins/billing/stripe/actions/checkout.d.ts +4 -0
- package/plugins/billing/stripe/actions/checkout.js +188 -0
- package/plugins/billing/stripe/mod.d.ts +18 -0
- package/plugins/billing/stripe/mod.js +33 -0
- package/plugins/billing/stripe/shared/api.d.ts +14 -0
- package/plugins/billing/stripe/shared/api.js +42 -0
- package/plugins/billing/stripe/shared/events.d.ts +42 -0
- package/plugins/billing/stripe/shared/events.js +226 -0
- package/plugins/billing/stripe/shared/settings.d.ts +34 -0
- package/plugins/billing/stripe/shared/settings.js +10 -0
- package/plugins/billing/stripe/webhook.d.ts +17 -0
- package/plugins/billing/stripe/webhook.js +45 -0
- package/plugins/billing/usage/actions/activity.d.ts +84 -0
- package/plugins/billing/usage/actions/activity.js +310 -0
- package/plugins/billing/usage/actions/close.js +36 -5
- package/plugins/billing/usage/actions/org.d.ts +29 -1
- package/plugins/billing/usage/actions/org.js +32 -62
- package/plugins/billing/usage/actions/quote.d.ts +7 -0
- package/plugins/billing/usage/actions/quote.js +86 -0
- package/plugins/billing/usage/actions/rerate.js +23 -2
- package/plugins/billing/usage/collections/closed.d.ts +11 -1
- package/plugins/billing/usage/collections/closed.js +4 -1
- package/plugins/billing/usage/collections/rollup.d.ts +81 -2
- package/plugins/billing/usage/collections/rollup.js +16 -4
- package/plugins/billing/usage/collections/usage.d.ts +75 -5
- package/plugins/billing/usage/collections/usage.js +34 -15
- package/plugins/billing/usage/mod.d.ts +31 -11
- package/plugins/billing/usage/mod.js +41 -13
- package/plugins/billing/usage/resources/commands.js +1 -1
- package/plugins/billing/usage/shared/categories.d.ts +23 -0
- package/plugins/billing/usage/shared/categories.js +40 -0
- package/plugins/billing/usage/shared/names.d.ts +45 -0
- package/plugins/billing/usage/shared/names.js +60 -0
- package/plugins/billing/usage/shared/rate.d.ts +39 -11
- package/plugins/billing/usage/shared/rate.js +90 -32
- package/plugins/billing/usage/shared/settings.d.ts +18 -1
- package/plugins/billing/usage/shared/settings.js +11 -2
- package/plugins/billing/usage/shared/totals.d.ts +38 -8
- package/plugins/billing/usage/shared/totals.js +87 -22
- package/plugins/billing/usage/shared/use.d.ts +12 -1
- package/plugins/billing/usage/shared/use.js +14 -7
- package/plugins/billing/usage/views/terminal/totals.d.ts +6 -2
- package/plugins/billing/usage/views/terminal/totals.js +38 -6
- package/plugins/billing/usage/views/web/chart.d.ts +25 -10
- package/plugins/billing/usage/views/web/chart.js +67 -39
- package/plugins/billing/usage/views/web/numbers.d.ts +143 -48
- package/plugins/billing/usage/views/web/numbers.js +250 -56
- package/plugins/billing/usage/views/web/org.d.ts +32 -6
- package/plugins/billing/usage/views/web/org.js +538 -123
- package/plugins/billing/usage/views/web/style.d.ts +9 -5
- package/plugins/billing/usage/views/web/style.js +148 -65
- package/plugins/billing/usage/web.d.ts +8 -5
- package/plugins/billing/usage/web.js +8 -5
- package/plugins/billing/web.d.ts +3 -0
- package/plugins/billing/web.js +3 -0
- package/plugins/compute/apps/actions/build.d.ts +1 -0
- package/plugins/compute/apps/actions/build.js +99 -0
- package/plugins/compute/apps/actions/configure.d.ts +1 -0
- package/plugins/compute/apps/actions/configure.js +74 -0
- package/plugins/compute/apps/actions/list.d.ts +1 -0
- package/plugins/compute/apps/actions/list.js +13 -0
- package/plugins/compute/apps/actions/meter.d.ts +1 -0
- package/plugins/compute/apps/actions/meter.js +43 -0
- package/plugins/compute/apps/actions/publish.d.ts +1 -0
- package/plugins/compute/apps/actions/publish.js +41 -0
- package/plugins/compute/apps/actions/redeploy.d.ts +1 -0
- package/plugins/compute/apps/actions/redeploy.js +26 -0
- package/plugins/compute/apps/actions/remove.d.ts +1 -0
- package/plugins/compute/apps/actions/remove.js +47 -0
- package/plugins/compute/apps/adapters/cloudrun.d.ts +90 -0
- package/plugins/compute/apps/adapters/cloudrun.js +353 -0
- package/plugins/compute/apps/adapters/front.d.ts +24 -0
- package/plugins/compute/apps/adapters/front.js +131 -0
- package/plugins/compute/apps/adapters/local.d.ts +15 -0
- package/plugins/compute/apps/adapters/local.js +139 -0
- package/plugins/compute/apps/adapters/tar.d.ts +29 -0
- package/plugins/compute/apps/adapters/tar.js +178 -0
- package/plugins/compute/apps/collections/app.d.ts +143 -0
- package/plugins/compute/apps/collections/app.js +60 -0
- package/plugins/compute/apps/contract.d.ts +73 -0
- package/plugins/compute/apps/contract.js +8 -0
- package/plugins/compute/apps/mod.d.ts +42 -0
- package/plugins/compute/apps/mod.js +69 -0
- package/plugins/compute/apps/resources/tools.d.ts +10 -0
- package/plugins/compute/apps/resources/tools.js +85 -0
- package/plugins/compute/apps/shared/archive.d.ts +24 -0
- package/plugins/compute/apps/shared/archive.js +69 -0
- package/plugins/compute/apps/shared/claims.d.ts +28 -0
- package/plugins/compute/apps/shared/claims.js +18 -0
- package/plugins/compute/apps/shared/environment.d.ts +8 -0
- package/plugins/compute/apps/shared/environment.js +15 -0
- package/plugins/compute/apps/shared/errors.d.ts +4 -0
- package/plugins/compute/apps/shared/errors.js +4 -0
- package/plugins/compute/apps/shared/host.d.ts +19 -0
- package/plugins/compute/apps/shared/host.js +19 -0
- package/plugins/compute/apps/shared/label.d.ts +21 -0
- package/plugins/compute/apps/shared/label.js +51 -0
- package/plugins/compute/apps/shared/meter.d.ts +17 -0
- package/plugins/compute/apps/shared/meter.js +29 -0
- package/plugins/compute/apps/shared/publish.d.ts +41 -0
- package/plugins/compute/apps/shared/publish.js +141 -0
- package/plugins/compute/apps/shared/settings.d.ts +49 -0
- package/plugins/compute/apps/shared/settings.js +22 -0
- package/plugins/compute/apps/views/web/apps.d.ts +54 -0
- package/plugins/compute/apps/views/web/apps.js +48 -0
- package/plugins/compute/apps/views/web/env.d.ts +54 -0
- package/plugins/compute/apps/views/web/env.js +195 -0
- package/plugins/compute/apps/views/web/publish.d.ts +24 -0
- package/plugins/compute/apps/views/web/publish.js +158 -0
- package/plugins/compute/apps/views/web/space.d.ts +16 -0
- package/plugins/compute/apps/views/web/space.js +138 -0
- package/plugins/compute/apps/views/web/style.d.ts +7 -0
- package/plugins/compute/apps/views/web/style.js +155 -0
- package/plugins/compute/apps/web.d.ts +17 -0
- package/plugins/compute/apps/web.js +35 -0
- package/plugins/compute/cloud/actions/create.d.ts +1 -0
- package/plugins/compute/cloud/actions/create.js +76 -0
- package/plugins/compute/cloud/actions/daily.d.ts +1 -0
- package/plugins/compute/cloud/actions/daily.js +75 -0
- package/plugins/compute/cloud/actions/destroy.d.ts +1 -0
- package/plugins/compute/cloud/actions/destroy.js +71 -0
- package/plugins/compute/cloud/actions/may.d.ts +1 -0
- package/plugins/compute/cloud/actions/may.js +15 -0
- package/plugins/compute/cloud/actions/org.d.ts +1 -0
- package/plugins/compute/cloud/actions/org.js +21 -0
- package/plugins/compute/cloud/actions/pool-tick.d.ts +4 -0
- package/plugins/compute/cloud/actions/pool-tick.js +96 -0
- package/plugins/compute/cloud/actions/pool.d.ts +3 -0
- package/plugins/compute/cloud/actions/pool.js +98 -0
- package/plugins/compute/cloud/actions/release.d.ts +1 -0
- package/plugins/compute/cloud/actions/release.js +58 -0
- package/plugins/compute/cloud/actions/remote.d.ts +10 -0
- package/plugins/compute/cloud/actions/remote.js +24 -0
- package/plugins/compute/cloud/actions/tick.d.ts +1 -0
- package/plugins/compute/cloud/actions/tick.js +105 -0
- package/plugins/compute/cloud/actions/touch.d.ts +1 -0
- package/plugins/compute/cloud/actions/touch.js +32 -0
- package/plugins/compute/cloud/actions/vms.d.ts +7 -0
- package/plugins/compute/cloud/actions/vms.js +211 -0
- package/plugins/compute/cloud/actions/wake.d.ts +1 -0
- package/plugins/compute/cloud/actions/wake.js +153 -0
- package/plugins/compute/cloud/adapters/gce/index.d.ts +73 -0
- package/plugins/compute/cloud/adapters/gce/index.js +242 -0
- package/plugins/compute/cloud/adapters/local.d.ts +48 -0
- package/plugins/compute/cloud/adapters/local.js +188 -0
- package/plugins/compute/cloud/collections/cloud-computer.d.ts +109 -0
- package/plugins/compute/cloud/collections/cloud-computer.js +89 -0
- package/plugins/compute/cloud/collections/pool-vm.d.ts +79 -0
- package/plugins/compute/cloud/collections/pool-vm.js +36 -0
- package/plugins/compute/cloud/collections/pool-want.d.ts +94 -0
- package/plugins/compute/cloud/collections/pool-want.js +27 -0
- package/plugins/compute/cloud/contract.d.ts +236 -0
- package/plugins/compute/cloud/contract.js +67 -0
- package/plugins/compute/cloud/mod.d.ts +97 -0
- package/plugins/compute/cloud/mod.js +197 -0
- package/plugins/compute/cloud/processors/mark.d.ts +9 -0
- package/plugins/compute/cloud/processors/mark.js +13 -0
- package/plugins/compute/cloud/resources/tools.d.ts +3 -0
- package/plugins/compute/cloud/resources/tools.js +237 -0
- package/plugins/compute/cloud/shared/google.d.ts +75 -0
- package/plugins/compute/cloud/shared/google.js +218 -0
- package/plugins/compute/cloud/shared/host.d.ts +11 -0
- package/plugins/compute/cloud/shared/host.js +29 -0
- package/plugins/compute/cloud/shared/may.d.ts +21 -0
- package/plugins/compute/cloud/shared/may.js +22 -0
- package/plugins/compute/cloud/shared/meter.d.ts +36 -0
- package/plugins/compute/cloud/shared/meter.js +68 -0
- package/plugins/compute/cloud/shared/names.d.ts +10 -0
- package/plugins/compute/cloud/shared/names.js +11 -0
- package/plugins/compute/cloud/shared/people.d.ts +19 -0
- package/plugins/compute/cloud/shared/people.js +12 -0
- package/plugins/compute/cloud/shared/records.d.ts +31 -0
- package/plugins/compute/cloud/shared/records.js +18 -0
- package/plugins/compute/cloud/shared/settings.d.ts +70 -0
- package/plugins/compute/cloud/shared/settings.js +47 -0
- package/plugins/compute/cloud/shared/time.d.ts +21 -0
- package/plugins/compute/cloud/shared/time.js +33 -0
- package/plugins/compute/cloud/views/web/cloud.d.ts +79 -0
- package/plugins/compute/cloud/views/web/cloud.js +122 -0
- package/plugins/compute/cloud/views/web/computer.d.ts +37 -0
- package/plugins/compute/cloud/views/web/computer.js +195 -0
- package/plugins/compute/cloud/views/web/new.d.ts +27 -0
- package/plugins/compute/cloud/views/web/new.js +103 -0
- package/plugins/compute/cloud/views/web/style.d.ts +6 -0
- package/plugins/compute/cloud/views/web/style.js +84 -0
- package/plugins/compute/cloud/web.d.ts +19 -0
- package/plugins/compute/cloud/web.js +61 -0
- package/plugins/compute/computers/actions/allow-origin.d.ts +5 -0
- package/plugins/compute/computers/actions/allow-origin.js +48 -0
- package/plugins/compute/computers/actions/allowed.d.ts +1 -0
- package/plugins/compute/computers/actions/allowed.js +50 -0
- package/plugins/compute/computers/actions/approve.js +19 -10
- package/plugins/compute/computers/actions/code.js +4 -4
- package/plugins/compute/computers/actions/default.js +4 -8
- package/plugins/compute/computers/actions/enrollment.d.ts +1 -0
- package/plugins/compute/computers/actions/enrollment.js +49 -0
- package/plugins/compute/computers/actions/env.d.ts +3 -0
- package/plugins/compute/computers/actions/env.js +134 -0
- package/plugins/compute/computers/actions/forget-grant.d.ts +1 -0
- package/plugins/compute/computers/actions/forget-grant.js +16 -0
- package/plugins/compute/computers/actions/forget.js +2 -2
- package/plugins/compute/computers/actions/mark.d.ts +1 -0
- package/plugins/compute/computers/actions/mark.js +36 -0
- package/plugins/compute/computers/actions/move.js +5 -4
- package/plugins/compute/computers/actions/preview.d.ts +4 -0
- package/plugins/compute/computers/actions/preview.js +183 -0
- package/plugins/compute/computers/actions/provision.d.ts +1 -0
- package/plugins/compute/computers/actions/provision.js +51 -0
- package/plugins/compute/computers/actions/rename.js +2 -2
- package/plugins/compute/computers/actions/running.d.ts +1 -0
- package/plugins/compute/computers/actions/running.js +33 -0
- package/plugins/compute/computers/actions/scope.d.ts +1 -0
- package/plugins/compute/computers/actions/scope.js +61 -0
- package/plugins/compute/computers/actions/share.js +5 -4
- package/plugins/compute/computers/actions/unshare.js +5 -8
- package/plugins/compute/computers/actions/view.d.ts +1 -0
- package/plugins/compute/computers/actions/view.js +29 -0
- package/plugins/compute/computers/actions/work.js +41 -6
- package/plugins/compute/computers/collections/approval.d.ts +57 -5
- package/plugins/compute/computers/collections/approval.js +16 -4
- package/plugins/compute/computers/collections/computer.d.ts +70 -1
- package/plugins/compute/computers/collections/computer.js +18 -2
- package/plugins/compute/computers/collections/desk.d.ts +53 -0
- package/plugins/compute/computers/collections/desk.js +11 -3
- package/plugins/compute/computers/collections/env-var.d.ts +122 -0
- package/plugins/compute/computers/collections/env-var.js +51 -0
- package/plugins/compute/computers/collections/grant.d.ts +20 -3
- package/plugins/compute/computers/collections/grant.js +21 -5
- package/plugins/compute/computers/collections/preview.d.ts +111 -0
- package/plugins/compute/computers/collections/preview.js +58 -0
- package/plugins/compute/computers/contract.d.ts +18 -0
- package/plugins/compute/computers/contract.js +8 -0
- package/plugins/compute/computers/mod.d.ts +9 -1
- package/plugins/compute/computers/mod.js +50 -6
- package/plugins/compute/computers/processors/left.d.ts +8 -0
- package/plugins/compute/computers/processors/left.js +31 -0
- package/plugins/compute/computers/program/version.d.ts +1 -1
- package/plugins/compute/computers/program/version.js +1 -1
- package/plugins/compute/computers/resources/commands.js +29 -13
- package/plugins/compute/computers/resources/downloads.js +1 -1
- package/plugins/compute/computers/resources/previews.d.ts +48 -0
- package/plugins/compute/computers/resources/previews.js +391 -0
- package/plugins/compute/computers/resources/tools.d.ts +11 -5
- package/plugins/compute/computers/resources/tools.js +155 -22
- package/plugins/compute/computers/shared/ask.d.ts +7 -3
- package/plugins/compute/computers/shared/ask.js +36 -11
- package/plugins/compute/computers/shared/asks.d.ts +2 -2
- package/plugins/compute/computers/shared/asks.js +3 -2
- package/plugins/compute/computers/shared/desks.d.ts +1 -5
- package/plugins/compute/computers/shared/desks.js +2 -11
- package/plugins/compute/computers/shared/env.d.ts +20 -0
- package/plugins/compute/computers/shared/env.js +50 -0
- package/plugins/compute/computers/shared/grants.d.ts +26 -0
- package/plugins/compute/computers/shared/grants.js +49 -0
- package/plugins/compute/computers/shared/jobs.d.ts +13 -0
- package/plugins/compute/computers/shared/jobs.js +16 -0
- package/plugins/compute/computers/shared/preview-url.d.ts +5 -0
- package/plugins/compute/computers/shared/preview-url.js +5 -0
- package/plugins/compute/computers/shared/seal.d.ts +4 -0
- package/plugins/compute/computers/shared/seal.js +60 -0
- package/plugins/compute/computers/shared/settings.d.ts +32 -5
- package/plugins/compute/computers/shared/settings.js +12 -0
- package/plugins/compute/computers/shared/wake.d.ts +43 -0
- package/plugins/compute/computers/shared/wake.js +80 -0
- package/plugins/compute/computers/shared/where.d.ts +34 -7
- package/plugins/compute/computers/shared/where.js +81 -11
- package/plugins/compute/computers/shared/workloads.d.ts +50 -0
- package/plugins/compute/computers/shared/workloads.js +4 -0
- package/plugins/compute/computers/views/context.d.ts +6 -3
- package/plugins/compute/computers/views/context.js +85 -6
- package/plugins/compute/computers/views/terminal/approvals.js +3 -1
- package/plugins/compute/computers/views/web/add.d.ts +41 -0
- package/plugins/compute/computers/views/web/add.js +60 -0
- package/plugins/compute/computers/views/web/allowed.d.ts +16 -0
- package/plugins/compute/computers/views/web/allowed.js +38 -0
- package/plugins/compute/computers/views/web/asked.d.ts +26 -7
- package/plugins/compute/computers/views/web/asked.js +47 -10
- package/plugins/compute/computers/views/web/asks.d.ts +10 -5
- package/plugins/compute/computers/views/web/asks.js +38 -13
- package/plugins/compute/computers/views/web/calls.js +5 -2
- package/plugins/compute/computers/views/web/computer.d.ts +4 -1
- package/plugins/compute/computers/views/web/computer.js +21 -2
- package/plugins/compute/computers/views/web/connect.d.ts +18 -3
- package/plugins/compute/computers/views/web/connect.js +52 -35
- package/plugins/compute/computers/views/web/desks.d.ts +19 -8
- package/plugins/compute/computers/views/web/desks.js +67 -37
- package/plugins/compute/computers/views/web/env.d.ts +32 -0
- package/plugins/compute/computers/views/web/env.js +154 -0
- package/plugins/compute/computers/views/web/environment.d.ts +23 -0
- package/plugins/compute/computers/views/web/environment.js +47 -0
- package/plugins/compute/computers/views/web/jobs.d.ts +18 -6
- package/plugins/compute/computers/views/web/jobs.js +56 -21
- package/plugins/compute/computers/views/web/kinds.d.ts +102 -0
- package/plugins/compute/computers/views/web/kinds.js +37 -0
- package/plugins/compute/computers/views/web/mark.d.ts +7 -2
- package/plugins/compute/computers/views/web/mark.js +2 -2
- package/plugins/compute/computers/views/web/names.d.ts +3 -2
- package/plugins/compute/computers/views/web/names.js +5 -3
- package/plugins/compute/computers/views/web/page.d.ts +14 -2
- package/plugins/compute/computers/views/web/page.js +48 -26
- package/plugins/compute/computers/views/web/previews.d.ts +44 -0
- package/plugins/compute/computers/views/web/previews.js +33 -0
- package/plugins/compute/computers/views/web/routine-panel.d.ts +14 -0
- package/plugins/compute/computers/views/web/routine-panel.js +91 -0
- package/plugins/compute/computers/views/web/serve.d.ts +47 -0
- package/plugins/compute/computers/views/web/serve.js +168 -0
- package/plugins/compute/computers/views/web/space-tab.d.ts +4 -3
- package/plugins/compute/computers/views/web/space-tab.js +39 -9
- package/plugins/compute/computers/views/web/step.js +7 -1
- package/plugins/compute/computers/views/web/style.d.ts +1 -1
- package/plugins/compute/computers/views/web/style.js +166 -2
- package/plugins/compute/computers/views/web/workspace.d.ts +16 -3
- package/plugins/compute/computers/views/web/workspace.js +49 -6
- package/plugins/compute/computers/web.d.ts +17 -4
- package/plugins/compute/computers/web.js +32 -5
- package/plugins/compute/mod.d.ts +8 -1
- package/plugins/compute/mod.js +8 -1
- package/plugins/compute/web.d.ts +13 -0
- package/plugins/compute/web.js +13 -0
- package/plugins/interfaces/api/actions/create.js +2 -3
- package/plugins/interfaces/api/actions/revoke.js +2 -2
- package/plugins/interfaces/api/collections/key.d.ts +2 -2
- package/plugins/interfaces/api/collections/key.js +3 -3
- package/plugins/interfaces/api/mod.js +2 -0
- package/plugins/interfaces/api/processors/left.d.ts +6 -0
- package/plugins/interfaces/api/processors/left.js +12 -0
- package/plugins/interfaces/api/shared/actor.d.ts +3 -11
- package/plugins/interfaces/api/shared/actor.js +1 -23
- package/plugins/interfaces/api/shared/events.js +7 -6
- package/plugins/interfaces/api/shared/rules.d.ts +3 -10
- package/plugins/interfaces/api/shared/rules.js +8 -24
- package/plugins/interfaces/api/shared/server.js +1 -1
- package/plugins/interfaces/api/web.js +3 -1
- package/plugins/interfaces/maintenance/actions/read.d.ts +4 -0
- package/plugins/interfaces/maintenance/actions/read.js +76 -0
- package/plugins/interfaces/maintenance/actions/write.d.ts +4 -0
- package/plugins/interfaces/maintenance/actions/write.js +64 -0
- package/plugins/interfaces/maintenance/contract.d.ts +60 -0
- package/plugins/interfaces/maintenance/contract.js +2 -0
- package/plugins/interfaces/maintenance/mod.d.ts +52 -0
- package/plugins/interfaces/maintenance/mod.js +66 -0
- package/plugins/interfaces/maintenance/resources/routes.d.ts +71 -0
- package/plugins/interfaces/maintenance/resources/routes.js +457 -0
- package/plugins/interfaces/maintenance/shared/ops.d.ts +4 -0
- package/plugins/interfaces/maintenance/shared/ops.js +19 -0
- package/plugins/interfaces/mcp/actions/call.d.ts +11 -0
- package/plugins/interfaces/mcp/actions/call.js +304 -0
- package/plugins/interfaces/mcp/actions/prune.d.ts +1 -0
- package/plugins/interfaces/mcp/actions/prune.js +18 -0
- package/plugins/interfaces/mcp/collections/closed.d.ts +23 -0
- package/plugins/interfaces/mcp/collections/closed.js +17 -0
- package/plugins/interfaces/mcp/collections/rate.d.ts +27 -0
- package/plugins/interfaces/mcp/collections/rate.js +18 -0
- package/plugins/interfaces/mcp/collections/receipt.d.ts +46 -0
- package/plugins/interfaces/mcp/collections/receipt.js +46 -0
- package/plugins/interfaces/mcp/contract.d.ts +9 -0
- package/plugins/interfaces/mcp/contract.js +9 -0
- package/plugins/interfaces/mcp/mod.d.ts +84 -0
- package/plugins/interfaces/mcp/mod.js +122 -0
- package/plugins/interfaces/mcp/processors/closed.d.ts +13 -0
- package/plugins/interfaces/mcp/processors/closed.js +16 -0
- package/plugins/interfaces/mcp/resources/running.d.ts +21 -0
- package/plugins/interfaces/mcp/resources/running.js +36 -0
- package/plugins/interfaces/mcp/resources/server.d.ts +54 -0
- package/plugins/interfaces/mcp/resources/server.js +423 -0
- package/plugins/interfaces/mcp/resources/tools.d.ts +114 -0
- package/plugins/interfaces/mcp/resources/tools.js +324 -0
- package/plugins/interfaces/mcp/shared/caller.d.ts +45 -0
- package/plugins/interfaces/mcp/shared/caller.js +99 -0
- package/plugins/interfaces/mcp/shared/keys.d.ts +50 -0
- package/plugins/interfaces/mcp/shared/keys.js +53 -0
- package/plugins/interfaces/mcp/shared/settings.d.ts +187 -0
- package/plugins/interfaces/mcp/shared/settings.js +176 -0
- package/plugins/interfaces/mcp/views/offered.d.ts +20 -0
- package/plugins/interfaces/mcp/views/offered.js +20 -0
- package/plugins/interfaces/mod.d.ts +5 -1
- package/plugins/interfaces/mod.js +5 -1
- package/plugins/interfaces/terminal/actions/print.js +1 -1
- package/plugins/interfaces/terminal/actions/set.js +1 -1
- package/plugins/interfaces/terminal/collections/output.d.ts +1 -1
- package/plugins/interfaces/terminal/collections/shell.js +1 -1
- package/plugins/interfaces/voice/actions/block.d.ts +2 -0
- package/plugins/interfaces/voice/actions/block.js +74 -0
- package/plugins/interfaces/voice/actions/call.d.ts +19 -0
- package/plugins/interfaces/voice/actions/call.js +253 -0
- package/plugins/interfaces/voice/actions/hook.d.ts +5 -0
- package/plugins/interfaces/voice/actions/hook.js +225 -0
- package/plugins/interfaces/voice/actions/prune.d.ts +1 -0
- package/plugins/interfaces/voice/actions/prune.js +35 -0
- package/plugins/interfaces/voice/collections/blocked.d.ts +87 -0
- package/plugins/interfaces/voice/collections/blocked.js +34 -0
- package/plugins/interfaces/voice/collections/call.d.ts +279 -0
- package/plugins/interfaces/voice/collections/call.js +77 -0
- package/plugins/interfaces/voice/collections/phone.d.ts +74 -0
- package/plugins/interfaces/voice/collections/phone.js +26 -0
- package/plugins/interfaces/voice/contract.d.ts +14 -0
- package/plugins/interfaces/voice/contract.js +2 -0
- package/plugins/interfaces/voice/mod.d.ts +57 -0
- package/plugins/interfaces/voice/mod.js +118 -0
- package/plugins/interfaces/voice/processors/forget.d.ts +13 -0
- package/plugins/interfaces/voice/processors/forget.js +27 -0
- package/plugins/interfaces/voice/resources/relay.d.ts +77 -0
- package/plugins/interfaces/voice/resources/relay.js +428 -0
- package/plugins/interfaces/voice/resources/tools.d.ts +1 -0
- package/plugins/interfaces/voice/resources/tools.js +25 -0
- package/plugins/interfaces/voice/shared/caller.d.ts +27 -0
- package/plugins/interfaces/voice/shared/caller.js +38 -0
- package/plugins/interfaces/voice/shared/settings.d.ts +136 -0
- package/plugins/interfaces/voice/shared/settings.js +121 -0
- package/plugins/interfaces/voice/shared/signature.d.ts +11 -0
- package/plugins/interfaces/voice/shared/signature.js +34 -0
- package/plugins/interfaces/voice/views/call.d.ts +41 -0
- package/plugins/interfaces/voice/views/call.js +30 -0
- package/plugins/interfaces/voice/views/context.d.ts +9 -0
- package/plugins/interfaces/voice/views/context.js +14 -0
- package/plugins/interfaces/voice/views/message.d.ts +17 -0
- package/plugins/interfaces/voice/views/message.js +41 -0
- package/plugins/interfaces/web/shared/codes.d.ts +31 -0
- package/plugins/interfaces/web/shared/codes.js +44 -0
- package/plugins/interfaces/web/shared/orgs.d.ts +1 -1
- package/plugins/interfaces/web/shared/orgs.js +1 -1
- package/plugins/interfaces/web/shared/style.d.ts +1 -1
- package/plugins/interfaces/web/shared/style.js +3 -0
- package/plugins/interfaces/web/views/console-codes.d.ts +14 -0
- package/plugins/interfaces/web/views/console-codes.js +159 -0
- package/plugins/interfaces/web/views/console.d.ts +4 -2
- package/plugins/interfaces/web/views/console.js +24 -10
- package/plugins/interfaces/web/views/org.js +12 -6
- package/plugins/interfaces/web/views/orgs.js +13 -3
- package/plugins/interfaces/whatsapp/actions/connect.js +11 -10
- package/plugins/interfaces/whatsapp/actions/disconnect.js +6 -3
- package/plugins/interfaces/whatsapp/actions/hook.js +27 -11
- package/plugins/interfaces/whatsapp/actions/link.js +10 -13
- package/plugins/interfaces/whatsapp/actions/set.d.ts +8 -0
- package/plugins/interfaces/whatsapp/actions/set.js +121 -0
- package/plugins/interfaces/whatsapp/collections/blocked.d.ts +29 -0
- package/plugins/interfaces/whatsapp/collections/blocked.js +22 -0
- package/plugins/interfaces/whatsapp/collections/code.d.ts +1 -1
- package/plugins/interfaces/whatsapp/collections/number.d.ts +90 -4
- package/plugins/interfaces/whatsapp/collections/number.js +36 -4
- package/plugins/interfaces/whatsapp/collections/phone.d.ts +14 -4
- package/plugins/interfaces/whatsapp/collections/phone.js +9 -3
- package/plugins/interfaces/whatsapp/collections/rate.d.ts +27 -0
- package/plugins/interfaces/whatsapp/collections/rate.js +13 -0
- package/plugins/interfaces/whatsapp/collections/sent.d.ts +24 -12
- package/plugins/interfaces/whatsapp/collections/sent.js +11 -7
- package/plugins/interfaces/whatsapp/collections/thread.d.ts +14 -6
- package/plugins/interfaces/whatsapp/collections/thread.js +7 -5
- package/plugins/interfaces/whatsapp/collections/typing.d.ts +70 -0
- package/plugins/interfaces/whatsapp/collections/typing.js +21 -0
- package/plugins/interfaces/whatsapp/contract.d.ts +27 -4
- package/plugins/interfaces/whatsapp/contract.js +34 -1
- package/plugins/interfaces/whatsapp/events/undelivered.d.ts +8 -0
- package/plugins/interfaces/whatsapp/events/undelivered.js +17 -0
- package/plugins/interfaces/whatsapp/mod.d.ts +28 -2
- package/plugins/interfaces/whatsapp/mod.js +65 -6
- package/plugins/interfaces/whatsapp/processors/forget.d.ts +6 -0
- package/plugins/interfaces/whatsapp/processors/forget.js +11 -0
- package/plugins/interfaces/whatsapp/processors/receive.d.ts +17 -3
- package/plugins/interfaces/whatsapp/processors/receive.js +267 -91
- package/plugins/interfaces/whatsapp/processors/reply.d.ts +25 -5
- package/plugins/interfaces/whatsapp/processors/reply.js +216 -20
- package/plugins/interfaces/whatsapp/processors/typing.d.ts +8 -0
- package/plugins/interfaces/whatsapp/processors/typing.js +25 -0
- package/plugins/interfaces/whatsapp/shared/customers.d.ts +13 -0
- package/plugins/interfaces/whatsapp/shared/customers.js +16 -0
- package/plugins/interfaces/whatsapp/shared/graph.d.ts +31 -6
- package/plugins/interfaces/whatsapp/shared/graph.js +117 -10
- package/plugins/interfaces/whatsapp/shared/media.d.ts +23 -0
- package/plugins/interfaces/whatsapp/shared/media.js +46 -0
- package/plugins/interfaces/whatsapp/shared/number.d.ts +19 -8
- package/plugins/interfaces/whatsapp/shared/number.js +64 -7
- package/plugins/interfaces/whatsapp/shared/parts.d.ts +94 -0
- package/plugins/interfaces/whatsapp/shared/parts.js +184 -0
- package/plugins/interfaces/whatsapp/shared/payload.d.ts +27 -1
- package/plugins/interfaces/whatsapp/shared/payload.js +36 -1
- package/plugins/interfaces/whatsapp/shared/rules.d.ts +1 -3
- package/plugins/interfaces/whatsapp/shared/rules.js +1 -9
- package/plugins/interfaces/whatsapp/shared/settings.d.ts +49 -1
- package/plugins/interfaces/whatsapp/shared/settings.js +11 -0
- package/plugins/interfaces/whatsapp/views/message.d.ts +13 -0
- package/plugins/interfaces/whatsapp/views/message.js +13 -0
- package/plugins/interfaces/whatsapp/views/web/line.d.ts +24 -0
- package/plugins/interfaces/whatsapp/views/web/line.js +44 -0
- package/plugins/interfaces/whatsapp/views/web/space.d.ts +7 -5
- package/plugins/interfaces/whatsapp/views/web/space.js +17 -10
- package/plugins/interfaces/whatsapp/views/web/style.d.ts +1 -1
- package/plugins/interfaces/whatsapp/views/web/style.js +8 -0
- package/plugins/interfaces/whatsapp/web.js +8 -1
- package/plugins/models/actions/check.d.ts +1 -0
- package/plugins/models/actions/check.js +25 -0
- package/plugins/models/actions/offered.d.ts +34 -0
- package/plugins/models/actions/offered.js +186 -0
- package/plugins/models/adapters/llm/anthropic.d.ts +1 -1
- package/plugins/models/adapters/llm/anthropic.js +38 -20
- package/plugins/models/adapters/llm/gemini.d.ts +1 -1
- package/plugins/models/adapters/llm/gemini.js +7 -2
- package/plugins/models/adapters/llm/openai-compatible.d.ts +1 -1
- package/plugins/models/adapters/llm/openai-compatible.js +36 -7
- package/plugins/models/adapters/llm/openai.d.ts +1 -1
- package/plugins/models/adapters/llm/openai.js +158 -28
- package/plugins/models/contract.d.ts +6 -1
- package/plugins/models/mod.d.ts +7 -1
- package/plugins/models/mod.js +12 -2
- package/plugins/models/shared/catalog.json +9208 -8909
- package/plugins/models/shared/choice.d.ts +31 -0
- package/plugins/models/shared/choice.js +19 -3
- package/plugins/models/shared/generate.d.ts +3 -1
- package/plugins/models/shared/generate.js +91 -11
- package/plugins/models/shared/provider.d.ts +5 -0
- package/plugins/models/shared/provider.js +14 -0
- package/plugins/models/shared/types.d.ts +21 -2
- package/plugins/models/shared/types.js +10 -0
- package/plugins/models/shared/use.d.ts +6 -2
- package/plugins/models/shared/use.js +15 -5
- package/runtime/actor.d.ts +15 -0
- package/runtime/actor.js +14 -0
- package/runtime/aggregate.js +8 -2
- package/runtime/blobs.d.ts +15 -12
- package/runtime/blobs.js +58 -11
- package/runtime/cache.d.ts +6 -0
- package/runtime/cache.js +19 -1
- package/runtime/client.js +28 -5
- package/runtime/define.d.ts +10 -0
- package/runtime/errors.d.ts +36 -0
- package/runtime/errors.js +13 -0
- package/runtime/executor.js +29 -13
- package/runtime/links.d.ts +31 -0
- package/runtime/links.js +60 -0
- package/runtime/maintain.d.ts +88 -0
- package/runtime/maintain.js +120 -0
- package/runtime/memory.js +7 -4
- package/runtime/mod.d.ts +6 -2
- package/runtime/mod.js +5 -0
- package/runtime/mongo.d.ts +13 -0
- package/runtime/mongo.js +39 -8
- package/runtime/observe.d.ts +2 -0
- package/runtime/observe.js +14 -10
- package/runtime/ops.d.ts +5 -0
- package/runtime/ops.js +10 -1
- package/runtime/owner.d.ts +31 -2
- package/runtime/owner.js +159 -59
- package/runtime/presence.d.ts +18 -0
- package/runtime/presence.js +25 -0
- package/runtime/registry.d.ts +5 -0
- package/runtime/registry.js +18 -0
- package/runtime/runtime.js +9 -3
- package/runtime/store.d.ts +48 -1
- package/runtime/wire.d.ts +1 -0
- package/runtime/wire.js +3 -1
- package/stores/blobs/files/mod.js +4 -2
- package/stores/blobs/gcs/mod.d.ts +30 -0
- package/stores/blobs/gcs/mod.js +106 -0
- package/stores/blobs/http/mod.d.ts +1 -1
- package/stores/blobs/http/mod.js +2 -1
- package/stores/latency/mod.js +5 -1
- package/stores/sql/postgres/maintenance.d.ts +24 -0
- package/stores/sql/postgres/maintenance.js +258 -0
- package/stores/sql/postgres/mod.d.ts +20 -4
- package/stores/sql/postgres/mod.js +363 -96
- package/stores/sql/postgres/update.js +3 -1
- package/stores/sql/shared/capped.d.ts +2 -0
- package/stores/sql/shared/capped.js +22 -0
- package/stores/sql/shared/rows.d.ts +14 -0
- package/stores/sql/shared/rows.js +29 -0
- package/stores/sql/shared/statement.d.ts +12 -0
- package/stores/sql/shared/statement.js +244 -0
- package/stores/sql/sqlite/apart.d.ts +11 -0
- package/stores/sql/sqlite/apart.js +219 -0
- package/stores/sql/sqlite/mod.d.ts +16 -2
- package/stores/sql/sqlite/mod.js +246 -51
- package/testing/mod.js +1 -1
- package/plugins/compute/computers/shared/person.d.ts +0 -3
- package/plugins/compute/computers/shared/person.js +0 -8
|
@@ -2,9 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
/**
|
|
3
3
|
* A space's computers (kind `computer.space`: its Computer tab, item
|
|
4
4
|
* `{ _id }`, the space; spaces' `spaceTabs`): those it has (its desks), each
|
|
5
|
-
* a machine of someone's
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* a machine of someone's (or a cloud computer: `computerKinds`) with a
|
|
6
|
+
* folder for this space, and adding one (a cloud computer, connecting a
|
|
7
|
+
* computer here, or putting one of yours here); then the one
|
|
8
|
+
* picked (the default, at first) to work on: its terminal, jobs and
|
|
8
9
|
* files in this space's folder (agents' jobs by their names: chat's
|
|
9
10
|
* `thread.agents`). A viewer sees them; those who may write here
|
|
10
11
|
* work on them. In a side panel (`hints.mode: "panel"`), the same, compact,
|
|
@@ -13,9 +14,12 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
13
14
|
import { useState } from "react";
|
|
14
15
|
import { Notice, Skeleton } from "../../../../../hosts/web/mod.js";
|
|
15
16
|
import { Desks } from "./desks.js";
|
|
17
|
+
import { blockedBy, jobActionsOf, kindByComputer, kindsOf, queryOf, } from "./kinds.js";
|
|
16
18
|
import { namedOf } from "./names.js";
|
|
17
19
|
import { STYLE } from "./style.js";
|
|
18
20
|
import { Workspace } from "./workspace.js";
|
|
21
|
+
import { nameOf as personName, namesIn } from "../../../../access/spaces/contract.js";
|
|
22
|
+
import { Allowed } from "./allowed.js";
|
|
19
23
|
export const spaceComputersView = (item, ctx) => {
|
|
20
24
|
const id = item._id ?? (typeof ctx.hints.in === "string" ? ctx.hints.in : "");
|
|
21
25
|
const desks = ctx.db.collection("desk").query("here", { in: id }).value;
|
|
@@ -23,15 +27,41 @@ export const spaceComputersView = (item, ctx) => {
|
|
|
23
27
|
const spaces = ctx.db.collection("space").query("reached", {}).value;
|
|
24
28
|
// The agents answering here, as they're named: whose its jobs are.
|
|
25
29
|
const team = ctx.db.collection("thread").query("agents", { in: id }).value;
|
|
30
|
+
// What the person has let agents do here.
|
|
31
|
+
const grants = ctx.db.collection("grant").query("mine", {}).value ?? [];
|
|
32
|
+
// What its computers serve, at addresses of their own.
|
|
33
|
+
const previews = ctx.db.collection("preview").query("here", { in: id }).value;
|
|
34
|
+
// Kinds of computer beyond people's own machines (cloud ones), and which of the person's are.
|
|
35
|
+
const kinds = kindsOf(ctx.resources.computerKinds);
|
|
36
|
+
const records = kinds.map((k) => {
|
|
37
|
+
const [collection, query] = queryOf(k.mine);
|
|
38
|
+
return ctx.db.collection(collection).query(query, {}).value;
|
|
39
|
+
});
|
|
40
|
+
// Whether the person may make each kind here now (only admins, a budget spent): why not, shown.
|
|
41
|
+
const makeable = kinds.map((k) => {
|
|
42
|
+
const named = k.add?.available ? queryOf(k.add.available) : undefined;
|
|
43
|
+
return named ? ctx.db.collection(named[0]).query(named[1], {}).value : undefined;
|
|
44
|
+
});
|
|
45
|
+
const offered = kinds.map((k, i) => {
|
|
46
|
+
const blocked = blockedBy(k, makeable[i]);
|
|
47
|
+
return blocked ? { ...k, blocked } : k;
|
|
48
|
+
});
|
|
26
49
|
const compact = ctx.hints.mode === "panel";
|
|
27
50
|
const style = _jsx("style", { href: "computers-web", precedence: "copilotz", children: STYLE });
|
|
28
|
-
if (desks === undefined || mine === undefined || spaces === undefined
|
|
51
|
+
if (desks === undefined || mine === undefined || spaces === undefined ||
|
|
52
|
+
records.some((r) => r === undefined)) {
|
|
29
53
|
return (_jsxs("div", { className: "space-computers", "aria-busy": "true", children: [style, _jsx(Skeleton, { height: 60, radius: "xl", width: compact ? "100%" : 320 }), _jsx(Skeleton, { height: compact ? 260 : 380, radius: "xl" })] }));
|
|
30
54
|
}
|
|
31
55
|
const space = spaces.find((s) => s._id === id);
|
|
32
56
|
if (!space)
|
|
33
57
|
return null;
|
|
34
|
-
|
|
58
|
+
// People by name: its members (who started jobs), whose its computers are.
|
|
59
|
+
const members = ctx.db.collection("member").find({ space: id }).value ?? [];
|
|
60
|
+
const names = namesIn(ctx, [
|
|
61
|
+
...members.map((m) => m.member).filter((m) => m.startsWith("person:")),
|
|
62
|
+
...desks.map((d) => d.owner),
|
|
63
|
+
]);
|
|
64
|
+
return (_jsxs(_Fragment, { children: [style, _jsx(SpaceComputers, { space: space, desks: desks, mine: mine, me: ctx.viewer?.name, agents: namedOf(team?.agents), names: names, compact: compact, call: ctx.call, kinds: offered, kindOf: kindByComputer(kinds, records), previews: previews ?? [], jobActions: jobActionsOf(ctx.resources.jobActions) }, space._id), _jsx(Allowed, { grants: grants, desks: desks, named: (agent) => team?.agents[agent]?.name || agent, call: ctx.call })] }));
|
|
35
65
|
};
|
|
36
66
|
/** A desk's computer, as a page about it needs it: the person's own, or what the desk says of it. */
|
|
37
67
|
const machineOf = (desk, mine) => mine.find((c) => c._id === desk.computer) ?? {
|
|
@@ -44,13 +74,13 @@ const machineOf = (desk, mine) => mine.find((c) => c._id === desk.computer) ?? {
|
|
|
44
74
|
...(desk.seen ? { seen: desk.seen } : {}),
|
|
45
75
|
...(desk.info ? { info: desk.info } : {}),
|
|
46
76
|
};
|
|
47
|
-
function SpaceComputers({ space, desks, mine, me, agents, compact, call }) {
|
|
77
|
+
function SpaceComputers({ space, desks, mine, me, agents, names, compact, call, kinds, kindOf, previews, jobActions }) {
|
|
48
78
|
const [picked, setPicked] = useState();
|
|
49
|
-
// The one picked while it's here; else the
|
|
79
|
+
// The one picked while it's here; else the default (the query lists it first).
|
|
50
80
|
const desk = desks.find((d) => d._id === picked) ?? desks[0];
|
|
51
81
|
const write = space.can.includes("write");
|
|
52
|
-
return (_jsxs("div", { className: `space-computers${compact ? " space-computers-compact" : ""}`, children: [_jsx(Desks, { space: space, desks: desks, mine: mine, chosen: desk?._id, choose: setPicked, me: me, call: call, compact: compact }), desk && write
|
|
53
|
-
? (_jsx(Workspace, { computer: machineOf(desk, mine), spaces: [space], desks: [desk], here: space._id, me: me, agents: agents, call: call, fixed: true, compact: compact, ...(desk.owner === me ? {} : { theirs: desk.owner }) }, desk._id))
|
|
82
|
+
return (_jsxs("div", { className: `space-computers${compact ? " space-computers-compact" : ""}`, children: [_jsx(Desks, { space: space, desks: desks, mine: mine, chosen: desk?._id, choose: setPicked, me: me, call: call, compact: compact, kinds: kinds, kindOf: kindOf, names: names }), desk && write
|
|
83
|
+
? (_jsx(Workspace, { computer: machineOf(desk, mine), spaces: [space], desks: [desk], here: space._id, me: me, agents: agents, names: names, call: call, fixed: true, compact: compact, ...(desk.owner === me ? {} : { theirs: personName(desk.owner, names) }), ...(kindOf[desk.computer] ? { kind: kindOf[desk.computer] } : {}), previews: previews, jobActions: jobActions }, desk._id))
|
|
54
84
|
: desk
|
|
55
85
|
? (_jsxs(Notice, { tone: "neutral", icon: "lock", children: ["You can see ", space.name, "'s computers; its editors work on them."] }))
|
|
56
86
|
: null] }));
|
|
@@ -219,10 +219,16 @@ const VIEWS = {
|
|
|
219
219
|
web_search: Search,
|
|
220
220
|
browser: Browser,
|
|
221
221
|
};
|
|
222
|
+
/** Which computer it ran on, where the space has several: the one named, or the one that answered. */
|
|
223
|
+
const ranOn = (call, done) => str(call.input?.computer) ||
|
|
224
|
+
(done.kind === "done" && record(done.value) ? str(done.value.computer) : "");
|
|
222
225
|
export const stepView = (call, ctx) => {
|
|
223
226
|
const View = VIEWS[call.name];
|
|
224
227
|
if (!View)
|
|
225
228
|
return null;
|
|
226
229
|
const done = ctx.hints.running === true ? { kind: "running" } : outcome(call);
|
|
227
|
-
|
|
230
|
+
const on = ranOn(call, done);
|
|
231
|
+
return (_jsxs("div", { className: "step-computer", "data-tool": call.name, children: [_jsx("style", { href: "computers-web", precedence: "copilotz", children: STYLE }), on
|
|
232
|
+
? (_jsxs("p", { className: "step-on", title: "The computer it ran on", children: [_jsx(Icon, { name: "computer", size: 12 }), " ", on] }))
|
|
233
|
+
: null, _jsx(View, { call: call, done: done })] }));
|
|
228
234
|
};
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* files), what agents ask in a chat, and their calls there. Only layout:
|
|
6
6
|
* the pieces are the toolkit's.
|
|
7
7
|
*/
|
|
8
|
-
export declare const STYLE = "\n/* The sidebar: what waits on you */\n.computers { list-style: none; display: grid; gap: 1px; margin: 0; padding: 0; }\n.computer-mark { position: relative; display: grid; place-items: center; flex: none; width: 22px; height: 22px;\n border-radius: var(--radius-sm); background: var(--muted); color: var(--secondary-foreground); }\n.computer-mark-lg { width: 44px; height: 44px; border-radius: var(--radius-lg); background: var(--primary-soft);\n color: var(--primary-text); }\n.computer-dot { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: var(--radius-full);\n background: var(--muted-foreground); outline: 2px solid var(--sidebar); opacity: .7; }\n.computer-mark-lg .computer-dot { right: -3px; bottom: -3px; width: 13px; height: 13px; outline: 3px solid var(--background); }\n.computer-mark[data-online] .computer-dot { background: var(--success); opacity: 1; }\n.computers-waiting { display: grid; place-items: center; flex: none; width: 22px; height: 22px;\n border-radius: var(--radius-full); background: var(--warning-soft); color: var(--warning-text);\n animation: computers-pulse 2.4s ease-in-out infinite; }\n@keyframes computers-pulse { 50% { background: color-mix(in oklab, var(--warning) 26%, var(--sidebar)); } }\n.computers-more { margin: 0 10px 4px 41px; color: var(--muted-foreground); font-size: 12px; }\n\n/* Connecting one */\n.connect-notice { margin-bottom: 18px; }\n.connect-steps { list-style: none; display: grid; gap: 18px; margin: 4px 0 0; padding: 0; }\n.connect-steps > li:not(.connect-waiting) { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }\n.connect-step-number { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-full);\n background: var(--primary-soft); color: var(--primary-text); font-size: 13px; font-weight: 700; }\n.connect-step { display: grid; gap: 10px; min-width: 0; padding-top: 2px; }\n.connect-step p { margin: 0; line-height: 1.55; }\n.connect-step code { font-size: .92em; }\n.connect-command .copilotz-code-body { padding-block: 10px; font-size: 13px; }\n.connect-expiry { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted-foreground);\n font-size: 13px; }\n.connect-left { color: var(--foreground); font-variant-numeric: tabular-nums; }\n.connect-waiting { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-lg);\n background: var(--muted); color: var(--secondary-foreground); font-size: 13.5px; }\n.connect-done { display: flex; align-items: center; gap: 14px; padding: 6px 0 4px; }\n.connect-done-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: var(--radius-full);\n background: var(--success-soft); color: var(--success-text); }\n.connect-done-name { margin: 0; font-size: 16px; font-weight: 650; }\n.connect-done-facts { margin: 2px 0 0; color: var(--muted-foreground); font-size: 13.5px; }\n.connect-step-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }\n.connect-step .connect-step-title { font-weight: 620; }\n.connect-systems { flex: none; }\n.connect-systems .copilotz-tab { height: 28px; padding: 0 10px; font-size: 13px; }\n.connect-direct { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }\n.connect-direct > summary { display: flex; align-items: center; gap: 8px; padding: 9px 12px; cursor: pointer; white-space: nowrap;\n list-style: none; color: var(--secondary-foreground); font-size: 13.5px; font-weight: 560; border-radius: var(--radius-lg); }\n.connect-direct > summary::-webkit-details-marker { display: none; }\n.connect-direct > summary:hover { color: var(--foreground); }\n.connect-direct-chevron { transition: transform .15s; color: var(--muted-foreground); }\n.connect-direct[open] .connect-direct-chevron { transform: rotate(90deg); }\n.connect-direct-version { margin-left: auto; color: var(--muted-foreground); font-size: 12.5px; font-weight: 450;\n font-variant-numeric: tabular-nums; }\n.connect-direct-body { display: grid; gap: 10px; padding: 2px 12px 12px; }\n.connect-direct-body > p { font-size: 13.5px; }\n.connect-binaries { list-style: none; display: grid; gap: 1px; margin: 0; padding: 0; border-radius: var(--radius-md);\n overflow: hidden; background: var(--border); }\n.connect-binary { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--card); }\n.connect-binary-text { display: grid; gap: 2px; flex: 1; min-width: 0; }\n.connect-binary-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; }\n.connect-binary-yours { padding: 1px 7px; border-radius: var(--radius-full); background: var(--primary-soft);\n color: var(--primary-text); font-size: 11.5px; font-weight: 600; }\n.connect-binary-facts, .connect-binary-sha { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px;\n color: var(--muted-foreground); font-size: 12.5px; min-width: 0; }\n.connect-binary-facts code, .connect-binary-sha code { font-size: 12px; overflow-wrap: anywhere; }\n.connect-binary-sha .copilotz-copy { height: 22px; padding: 0 5px; }\n.connect-unsigned, .connect-stop { display: flex; align-items: flex-start; gap: 8px; margin: 0;\n color: var(--muted-foreground); font-size: 12.5px; line-height: 1.5; }\n.connect-unsigned svg, .connect-stop svg { flex: none; margin-top: 2px; }\n.connect-stop { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; }\n.connect-stop code, .connect-unsigned code { font-size: .92em; }\n@media (max-width: 560px) {\n .connect-binary { flex-wrap: wrap; }\n .connect-binary .copilotz-button { width: 100%; justify-content: center; }\n}\n\n/* A space's computers: its tab */\n.space-computers { display: grid; gap: 16px; }\n.desks { display: grid; gap: 10px; }\n.desks-list { list-style: none; display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 0; padding: 0; }\n.desk { display: flex; align-items: center; min-width: 0; max-width: 100%; padding: 0 4px 0 0;\n transition: border-color .15s, background-color .15s; }\n.desk[data-chosen] { border-color: var(--primary-border); background: var(--primary-soft); }\n.desk-pick { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 9px 8px 9px 12px; border: 0;\n background: transparent; color: inherit; font: inherit; text-align: left; }\nbutton.desk-pick { cursor: pointer; }\n.desk .computer-mark { width: 32px; height: 32px; border-radius: var(--radius-md); }\n.desk .computer-dot { outline-color: var(--card); }\n.desk[data-chosen] .computer-mark { background: var(--card); color: var(--primary-text); }\n.desk-text { display: grid; gap: 1px; min-width: 0; }\n.desk-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 620; }\n.desk-name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.desk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; color: var(--muted-foreground);\n font-size: 12.5px; }\n.desk-meta .copilotz-time { font-size: 12.5px; }\n.desk-online { color: var(--success-text); }\n.desks-add { display: flex; align-items: center; }\n.desks-notes { display: grid; gap: 4px; }\n.desks-note { display: flex; align-items: baseline; gap: 7px; margin: 0 2px; color: var(--muted-foreground);\n font-size: 12.5px; line-height: 1.5; }\n.desks-note .copilotz-icon { flex: none; transform: translateY(2px); }\n.desks-none { display: grid; justify-items: center; gap: 8px; max-width: 520px; margin: 28px auto 8px;\n text-align: center; }\n.desks-none-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px;\n border-radius: var(--radius-2xl); background: var(--primary-soft); color: var(--primary-text); }\n.desks-none h3 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 650; letter-spacing: -.015em; }\n.desks-none p { margin: 0; color: var(--muted-foreground); line-height: 1.55; }\n.desks-none-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }\n.desks-dialog { display: grid; gap: 14px; }\n.desks-dialog-hint, .desks-dialog-text { margin: 0; color: var(--muted-foreground); font-size: 13.5px; line-height: 1.55; }\n.desks-dialog-hint { padding-left: 28px; margin-top: -8px; }\n.desks-dialog-text { color: inherit; font-size: 14px; }\n.desks-compact .desks-list { flex-direction: column; flex-wrap: nowrap; }\n.desks-compact .desk { width: 100%; }\n.desks-compact .desk-pick { flex: 1; }\n.desks-compact .desks-add { align-self: flex-start; }\n.desks-compact .desks-none { margin-top: 12px; }\n.desks-compact .desks-none h3 { font-size: 16px; }\n.desks-compact .desks-none p { font-size: 13.5px; }\n.space-computers .computer-terminal-screen { height: clamp(300px, calc(100dvh - 450px), 760px); }\n.space-computers-compact { gap: 12px; }\n.computer-work-compact { margin-top: 0; }\n.computer-work-compact .computer-terminal-screen { height: clamp(260px, calc(100dvh - 330px), 720px); }\n.computer-work-compact .computer-panel { padding-top: 12px; }\n.computer-work-compact .computer-bar .copilotz-tab { padding: 0 4px; }\n\n/* A computer's page */\n.computer-page { container: computer-page / inline-size; }\n.computer-page .copilotz-page-description { max-width: none; }\n.computer-loading { display: grid; gap: 18px; margin-top: 8px; }\n.computer-gone { display: grid; place-items: center; padding: 32px; }\n.computer-presence { gap: 6px; }\n.computer-presence-dot { width: 7px; height: 7px; border-radius: var(--radius-full); background: currentColor; }\n.computer-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 13.5px; }\n.computer-facts > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }\n.computer-facts code { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.computer-rename { display: block; max-width: 420px; }\n.computer-forget-text { margin: 0 0 12px; line-height: 1.55; }\n.computer-forget-text code { font-size: .92em; }\n\n.computer-work { container: computer-work / inline-size; margin-top: 4px; }\n.computer-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 18px;\n border-bottom: 1px solid var(--border); }\n.computer-bar .copilotz-tabs-line { border-bottom: 0; }\n.computer-space { display: flex; align-items: center; gap: 8px; min-width: 0; padding-bottom: 6px; font-size: 13px; }\n.computer-space-label { color: var(--muted-foreground); }\n.computer-space-path { min-width: 0; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis;\n white-space: nowrap; }\n.computer-space-path code { font-size: 12px; }\n.computer-panel { padding-top: 16px; }\n.computer-tab[hidden] { display: none; }\n.computer-offline { display: grid; gap: 12px; max-width: 640px; }\n\n/* The terminal */\n.computer-terminal { display: grid; gap: 8px; }\n.computer-terminal-screen { height: clamp(320px, calc(100dvh - 340px), 860px); }\n.computer-terminal-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 2px;\n color: var(--muted-foreground); font-size: 12.5px; }\n\n/* Jobs */\n.jobs { display: grid; gap: 18px; }\n.jobs-start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 200px) auto; gap: 8px; }\n.jobs-command input { font-family: var(--font-mono); font-size: 13.5px; }\n.jobs-error { grid-column: 1 / -1; margin: 0; color: var(--destructive-text); font-size: 13px; }\n.jobs-group { display: grid; gap: 8px; }\n.jobs-group h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 650;\n letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); }\n.jobs-count { font-variant-numeric: tabular-nums; letter-spacing: 0; }\n.jobs-list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }\n.job-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px;\n padding: 11px 12px 11px 14px; }\n.job-state { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-full);\n background: var(--muted); color: var(--muted-foreground); }\n.job-state[data-state=running] { background: var(--success-soft); }\n.job-state[data-state=done] { background: var(--success-soft); color: var(--success-text); }\n.job-state[data-state=failed] { background: var(--destructive-soft); color: var(--destructive-text); }\n.job-pulse { width: 9px; height: 9px; border-radius: var(--radius-full); background: var(--success);\n animation: job-pulse 1.6s ease-in-out infinite; }\n@keyframes job-pulse { 50% { transform: scale(.6); opacity: .5; } }\n.job-text { display: grid; gap: 3px; min-width: 0; }\n.job-name { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; font-weight: 620; }\n.job-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.job-command { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--secondary-foreground);\n font-size: 12.5px; }\n.job-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; color: var(--muted-foreground);\n font-size: 12.5px; }\n.job-meta .copilotz-time { font-size: 12.5px; }\n.job-who { display: inline-flex; align-items: center; gap: 5px; color: var(--secondary-foreground); }\n.job-actions { display: flex; align-items: center; gap: 4px; }\n.job-error { margin: 0 14px 10px 52px; }\n.job-logs { padding: 0 12px 12px; }\n.job-streams { display: grid; gap: 8px; }\n.job-loading { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted-foreground); font-size: 13px; }\n.jobs-empty { margin-top: 18px; }\n@container computer-work (max-width: 560px) {\n .jobs-start { grid-template-columns: minmax(0, 1fr) auto; }\n .jobs-start .jobs-command { grid-column: 1 / -1; }\n .job-row { grid-template-columns: 26px minmax(0, 1fr); }\n .job-actions { grid-column: 2; }\n}\n\n/* Files */\n.files { display: grid; gap: 12px; }\n.files-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }\n.files-crumbs { min-width: 0; }\n.files-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0; padding: 0; }\n.files-crumbs li { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }\n.files-crumb { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 4px 8px;\n border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--secondary-foreground);\n font-size: 13.5px; font-weight: 560; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.files-crumb:hover { background: var(--accent); color: var(--accent-foreground); }\n.files-crumb[aria-current] { color: var(--foreground); font-weight: 650; }\n.files-crumb .copilotz-icon { color: var(--primary-text); }\n.files-crumb-sep { color: var(--muted-foreground); }\n.files-tools { display: flex; align-items: center; gap: 6px; }\n.files-filter { width: 170px; }\n.files-new { max-width: 420px; }\n.files-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }\n.files[data-open] .files-body { grid-template-columns: minmax(210px, 300px) minmax(0, 1fr); }\n.files-list-box { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card);\n overflow: hidden; }\n.files-list { list-style: none; display: grid; margin: 0; padding: 4px; }\n.files-list > .copilotz-skeleton { margin: 3px 4px; }\n.file-row { position: relative; display: flex; align-items: center; border-radius: var(--radius-md); }\n.file-row:hover { background: var(--accent); }\n.file-row[data-current] { background: var(--primary-soft); }\n.file-open { flex: 1; min-width: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center;\n gap: 10px; min-height: 38px; padding: 4px 8px; border: 0; border-radius: var(--radius-md); background: transparent;\n color: inherit; font-size: 14px; text-align: left; cursor: pointer; }\n.file-row:has(.file-save) .file-open { padding-right: 38px; }\n.file-icon { display: grid; place-items: center; color: var(--muted-foreground); }\n.file-icon[data-type=folder] { color: var(--primary-text); }\n.file-icon[data-type=image] { color: var(--info-text); }\n.file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.file-meta { display: flex; align-items: center; gap: 10px; color: var(--muted-foreground); font-size: 12px;\n font-variant-numeric: tabular-nums; white-space: nowrap; }\n.file-meta .copilotz-time { font-size: 12px; }\n.file-size { min-width: 52px; text-align: right; }\n.file-save { position: absolute; right: 5px; opacity: 0; transition: opacity .12s; }\n.file-row:hover .file-save, .file-save:focus-visible, .file-save[aria-busy] { opacity: 1; }\n@media (hover: none) { .file-save { opacity: 1; } }\n.files[data-open] .file-meta { display: none; }\n.files-empty { padding: 18px 8px; }\n.files-none { padding: 14px 10px; color: var(--muted-foreground); font-size: 13.5px; }\n\n.file-view { display: grid; gap: 10px; min-width: 0; }\n.file-view-head { display: flex; align-items: center; gap: 10px; min-width: 0; }\n.file-view-back { display: none; }\n.file-view-title { flex: 1; min-width: 0; }\n.file-view-title h3 { margin: 0; font-size: 15px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.file-view-title p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 1px 0 0;\n color: var(--muted-foreground); font-size: 12.5px; }\n.file-view-title .copilotz-time { font-size: 12.5px; }\n.file-view-actions { flex: none; display: flex; align-items: center; gap: 6px; }\n.file-view-body { min-width: 0; }\n.file-view-wait { display: flex; align-items: center; gap: 8px; margin: 18px 4px; color: var(--muted-foreground); font-size: 13.5px; }\n.file-text .copilotz-code-body { max-height: min(70vh, 760px); }\n.file-lines { color: var(--muted-foreground); font: 500 12px var(--font-sans); }\n.file-edit { width: 100%; min-height: min(62vh, 640px); font-family: var(--font-mono); font-size: 13px; line-height: 1.6;\n tab-size: 4; white-space: pre; }\n.file-view-hint { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted-foreground); font-size: 12.5px; }\n.file-picture { display: grid; gap: 8px; justify-items: center; margin: 0; padding: 18px; border: 1px solid var(--border);\n border-radius: var(--radius-xl); background: repeating-conic-gradient(var(--muted) 0 25%, var(--card) 0 50%) 0 0 / 18px 18px; }\n.file-picture img { display: block; max-width: 100%; max-height: min(66vh, 720px); object-fit: contain; }\n@container computer-work (max-width: 680px) {\n .files[data-open] .files-body { grid-template-columns: minmax(0, 1fr); }\n .files[data-open] .files-list-box { display: none; }\n .file-view-back { display: inline-grid; }\n .file-view-close { display: none; }\n .files-filter { width: 130px; }\n}\n\n/* What agents ask, over where you type */\n.asks { display: grid; gap: 8px; }\n.asks > .ask { animation: ask-in .36s cubic-bezier(.2, .8, .2, 1) both; }\n@keyframes ask-in { from { opacity: 0; transform: translateY(8px); } }\n.ask { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 12px 14px 12px 12px;\n border-color: var(--warning-border); box-shadow: var(--shadow-md); animation: ask-in .22s ease-out; }\n@keyframes ask-in { from { opacity: 0; transform: translateY(6px); } }\n.ask-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-md);\n background: var(--warning-soft); color: var(--warning-text); }\n.ask-main { display: grid; gap: 9px; min-width: 0; }\n.ask-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 4px 0 0; font-size: 14.5px; }\n.ask-where { margin-left: auto; color: var(--muted-foreground); font-size: 12.5px; }\n.ask-where .copilotz-time { font-size: 12.5px; }\n.ask-what .copilotz-code-body { padding: 7px 11px; font-size: 13px; }\n.ask-preview .copilotz-code-head code { font-size: 12.5px; font-weight: 600; }\n.ask-answers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }\n.ask-deny { margin-left: auto; color: var(--destructive-text); }\n.ask-error { margin: 0; color: var(--destructive-text); font-size: 13px; }\n@media (max-width: 760px) {\n .ask { grid-template-columns: minmax(0, 1fr); padding: 12px; }\n .ask-icon { display: none; }\n .ask-head { margin: 0; }\n /* Two rows: Allow once and Deny, then the wider yeses (the tooltips' wrappers lay out as their buttons). */\n .ask-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }\n .ask-answers .copilotz-button { order: 2; min-width: 0; width: 100%; white-space: normal; text-align: center;\n line-height: 1.2; }\n .ask-answers > :first-child .copilotz-button { order: 0; }\n .ask-answers > .ask-deny { order: 1; margin: 0; }\n}\n\n/* Agents' calls, in the conversation */\n.step-computer { min-width: 0; }\n.step-block .copilotz-code-head { font-weight: 560; }\n.step-block .copilotz-code-title > span, .step-file { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px;\n min-width: 0; font-family: var(--font-sans); font-size: 13px; }\n.step-block .copilotz-code-title code { font-size: 12.5px; overflow-wrap: anywhere; }\n.step-command { display: inline-flex; gap: 8px; min-width: 0; font-size: 12.5px; overflow-wrap: anywhere; white-space: pre-wrap; }\n.step-prompt { color: var(--success-text); user-select: none; }\n.step-status { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; color: var(--muted-foreground);\n font: 500 12px var(--font-sans); white-space: nowrap; }\n.step-ok { display: inline-flex; align-items: center; gap: 3px; color: var(--success-text); }\n.step-bad { color: var(--destructive-text); }\n.step-block .copilotz-code-foot code { font-size: 11.5px; }\n.step-line { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--secondary-foreground); font-size: 13.5px; }\n.step-line > .copilotz-icon { color: var(--muted-foreground); }\n.step-line-text { flex: 1; min-width: 0; }\n.step-search { display: grid; gap: 8px; }\n.step-results { list-style: none; display: grid; gap: 2px; margin: 0; padding: 0 0 0 22px; }\n.step-results li { display: grid; padding: 6px 10px; border-left: 2px solid var(--border); }\n.step-results a { display: inline-flex; align-items: center; gap: 5px; width: fit-content; color: var(--primary-text);\n font-weight: 600; font-size: 14px; text-decoration: none; }\n.step-results a:hover { text-decoration: underline; text-underline-offset: 3px; }\n.step-host { color: var(--success-text); font-size: 12px; }\n.step-results p { margin: 2px 0 0; color: var(--secondary-foreground); font-size: 13px; line-height: 1.45;\n display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }\n.step-more { color: var(--muted-foreground); font-size: 12.5px; }\n.step-why { margin: 0 0 0 22px; color: var(--muted-foreground); font-size: 13px; }\n.step-page { margin: 0 0 0 22px; font-size: 13.5px; }\n.step-page a { display: inline-flex; align-items: center; gap: 5px; color: var(--primary-text); }\n";
|
|
8
|
+
export declare const STYLE = "\n/* The sidebar: what waits on you */\n.computers { list-style: none; display: grid; gap: 1px; margin: 0; padding: 0; }\n.computer-mark { position: relative; display: grid; place-items: center; flex: none; width: 22px; height: 22px;\n border-radius: var(--radius-sm); background: var(--muted); color: var(--secondary-foreground); }\n.computer-mark-lg { width: 44px; height: 44px; border-radius: var(--radius-lg); background: var(--primary-soft);\n color: var(--primary-text); }\n.computer-dot { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: var(--radius-full);\n background: var(--muted-foreground); outline: 2px solid var(--sidebar); opacity: .7; }\n.computer-mark-lg .computer-dot { right: -3px; bottom: -3px; width: 13px; height: 13px; outline: 3px solid var(--background); }\n.computer-mark[data-online] .computer-dot { background: var(--success); opacity: 1; }\n.computers-waiting { display: grid; place-items: center; flex: none; width: 22px; height: 22px;\n border-radius: var(--radius-full); background: var(--warning-soft); color: var(--warning-text);\n animation: computers-pulse 2.4s ease-in-out infinite; }\n@keyframes computers-pulse { 50% { background: color-mix(in oklab, var(--warning) 26%, var(--sidebar)); } }\n.computers-more { margin: 0 10px 4px 41px; color: var(--muted-foreground); font-size: 12px; }\n\n/* Connecting one */\n.connect-notice { margin-bottom: 18px; }\n.connect-steps { list-style: none; display: grid; gap: 18px; margin: 4px 0 0; padding: 0; }\n.connect-steps > li:not(.connect-waiting) { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }\n.connect-step-number { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-full);\n background: var(--primary-soft); color: var(--primary-text); font-size: 13px; font-weight: 700; }\n.connect-step { display: grid; gap: 10px; min-width: 0; padding-top: 2px; }\n.connect-step p { margin: 0; line-height: 1.55; }\n.connect-step code { font-size: .92em; }\n.connect-command .copilotz-code-body { padding-block: 10px; font-size: 13px; }\n.connect-expiry { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted-foreground);\n font-size: 13px; }\n.connect-left { color: var(--foreground); font-variant-numeric: tabular-nums; }\n.connect-waiting { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-lg);\n background: var(--muted); color: var(--secondary-foreground); font-size: 13.5px; }\n.connect-done { display: flex; align-items: center; gap: 14px; padding: 6px 0 4px; }\n.connect-done-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: var(--radius-full);\n background: var(--success-soft); color: var(--success-text); }\n.connect-done-name { margin: 0; font-size: 16px; font-weight: 650; }\n.connect-done-facts { margin: 2px 0 0; color: var(--muted-foreground); font-size: 13.5px; }\n.connect-step-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }\n.connect-step .connect-step-title { font-weight: 620; }\n.connect-systems { flex: none; }\n.connect-systems .copilotz-tab { height: 28px; padding: 0 10px; font-size: 13px; }\n.connect-direct { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }\n.connect-direct > summary { display: flex; align-items: center; gap: 8px; padding: 9px 12px; cursor: pointer; white-space: nowrap;\n list-style: none; color: var(--secondary-foreground); font-size: 13.5px; font-weight: 560; border-radius: var(--radius-lg); }\n.connect-direct > summary::-webkit-details-marker { display: none; }\n.connect-direct > summary:hover { color: var(--foreground); }\n.connect-direct-chevron { transition: transform .15s; color: var(--muted-foreground); }\n.connect-direct[open] .connect-direct-chevron { transform: rotate(90deg); }\n.connect-direct-version { margin-left: auto; color: var(--muted-foreground); font-size: 12.5px; font-weight: 450;\n font-variant-numeric: tabular-nums; }\n.connect-direct-body { display: grid; gap: 10px; padding: 2px 12px 12px; }\n.connect-direct-body > p { font-size: 13.5px; }\n.connect-binaries { list-style: none; display: grid; gap: 1px; margin: 0; padding: 0; border-radius: var(--radius-md);\n overflow: hidden; background: var(--border); }\n.connect-binary { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--card); }\n.connect-binary-text { display: grid; gap: 2px; flex: 1; min-width: 0; }\n.connect-binary-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; }\n.connect-binary-yours { padding: 1px 7px; border-radius: var(--radius-full); background: var(--primary-soft);\n color: var(--primary-text); font-size: 11.5px; font-weight: 600; }\n.connect-binary-facts, .connect-binary-sha { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px;\n color: var(--muted-foreground); font-size: 12.5px; min-width: 0; }\n.connect-binary-facts code, .connect-binary-sha code { font-size: 12px; overflow-wrap: anywhere; }\n.connect-binary-sha .copilotz-copy { height: 22px; padding: 0 5px; }\n.connect-unsigned, .connect-stop { display: flex; align-items: flex-start; gap: 8px; margin: 0;\n color: var(--muted-foreground); font-size: 12.5px; line-height: 1.5; }\n.connect-unsigned svg, .connect-stop svg { flex: none; margin-top: 2px; }\n.connect-stop { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; }\n.connect-stop code, .connect-unsigned code { font-size: .92em; }\n@media (max-width: 560px) {\n .connect-binary { flex-wrap: wrap; }\n .connect-binary .copilotz-button { width: 100%; justify-content: center; }\n}\n\n/* Adding one: the ways, as a choice */\n.add-body { display: grid; gap: 20px; }\n.add-choices { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }\n.add-choice { display: grid; grid-template-columns: 44px minmax(0, 1fr) 16px; align-items: center; gap: 14px; width: 100%;\n padding: 14px 16px 14px 14px; color: inherit; font: inherit; }\n.add-choice:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }\n.add-choice-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-lg);\n background: var(--muted); color: var(--secondary-foreground); }\n.add-choice-icon[data-kind] { background: var(--primary-soft); color: var(--primary-text); }\n.add-choice-text { display: grid; gap: 3px; min-width: 0; }\n.add-choice-title { font-size: 15px; font-weight: 640; }\n.add-choice-description { color: var(--muted-foreground); font-size: 13px; line-height: 1.45; }\n.add-choice[data-blocked] { cursor: default; background: var(--muted); box-shadow: none; }\n.add-choice[data-blocked] .add-choice-icon { opacity: 0.6; }\n.add-choice-why { display: flex; align-items: flex-start; gap: 6px; }\n.add-choice-why svg { flex: none; margin-top: 2px; }\n.add-choice-go { color: var(--muted-foreground); transition: transform .15s, color .15s; }\n.add-choice:hover .add-choice-go { color: var(--foreground); transform: translateX(2px); }\n.add-yours { display: grid; gap: 8px; }\n.add-yours h3 { margin: 0; color: var(--muted-foreground); font-size: 12px; font-weight: 650; letter-spacing: .06em;\n text-transform: uppercase; }\n.add-yours ul { list-style: none; display: grid; gap: 2px; margin: 0; padding: 0; }\n.add-yours-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px;\n border: 0; border-radius: var(--radius-md); background: transparent; color: inherit; font: inherit; text-align: left;\n cursor: pointer; }\n.add-yours-item:hover { background: var(--accent); color: var(--accent-foreground); }\n.add-yours-item:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }\n.add-yours-item .computer-dot { outline-color: var(--popover); }\n.add-yours-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 560; }\n.add-yours-state { color: var(--muted-foreground); font-size: 12.5px; }\n.add-yours-plus { color: var(--muted-foreground); }\n.add-back { margin-right: auto; }\n.desks-none-choices { max-width: 560px; }\n.desks-none-choices .add-choices { width: 100%; margin-top: 10px; text-align: left; }\n.desks-none-choices .desks-none-actions { margin-top: 2px; }\n.add-choices-compact .add-choice { grid-template-columns: 36px minmax(0, 1fr) 14px; gap: 10px; padding: 10px 12px 10px 10px; }\n.add-choices-compact .add-choice-icon { width: 36px; height: 36px; }\n\n/* A space's computers: its tab */\n.space-computers { display: grid; gap: 16px; }\n.desks { display: grid; gap: 10px; }\n.desks-list { list-style: none; display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 0; padding: 0; }\n.desk { display: flex; align-items: center; min-width: 0; max-width: 100%; padding: 0 4px 0 0;\n transition: border-color .15s, background-color .15s; }\n.desk[data-chosen] { border-color: var(--primary-border); background: var(--primary-soft); }\n.desk-pick { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 9px 8px 9px 12px; border: 0;\n background: transparent; color: inherit; font: inherit; text-align: left; }\nbutton.desk-pick { cursor: pointer; }\n.desk .computer-mark { width: 32px; height: 32px; border-radius: var(--radius-md); }\n.desk .computer-dot { outline-color: var(--card); }\n.desk[data-chosen] .computer-mark { background: var(--card); color: var(--primary-text); }\n.desk-text { display: grid; gap: 1px; min-width: 0; }\n.desk-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 620; }\n.desk-name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.desk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; color: var(--muted-foreground);\n font-size: 12.5px; }\n.desk-meta .copilotz-time { font-size: 12.5px; }\n.desk-online { color: var(--success-text); }\n.desks-add { display: flex; align-items: center; }\n.desks-notes { display: grid; gap: 4px; }\n.desks-note { display: flex; align-items: baseline; gap: 7px; margin: 0 2px; color: var(--muted-foreground);\n font-size: 12.5px; line-height: 1.5; }\n.desks-note .copilotz-icon { flex: none; transform: translateY(2px); }\n.desks-none { display: grid; justify-items: center; gap: 8px; max-width: 520px; margin: 28px auto 8px;\n text-align: center; }\n.desks-none-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px;\n border-radius: var(--radius-2xl); background: var(--primary-soft); color: var(--primary-text); }\n.desks-none h3 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 650; letter-spacing: -.015em; }\n.desks-none p { margin: 0; color: var(--muted-foreground); line-height: 1.55; }\n.desks-none-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }\n.desks-dialog { display: grid; gap: 14px; }\n.desks-dialog-hint, .desks-dialog-text { margin: 0; color: var(--muted-foreground); font-size: 13.5px; line-height: 1.55; }\n.desks-dialog-hint { padding-left: 28px; margin-top: -8px; }\n.desks-dialog-text { color: inherit; font-size: 14px; }\n.desks-compact .desks-list { flex-direction: column; flex-wrap: nowrap; }\n.desks-compact .desk { width: 100%; }\n.desks-compact .desk-pick { flex: 1; }\n.desks-compact .desks-add { align-self: flex-start; }\n.desks-compact .desks-none { margin-top: 12px; }\n.desks-compact .desks-none h3 { font-size: 16px; }\n.desks-compact .desks-none p { font-size: 13.5px; }\n.space-computers .computer-terminal-screen { height: clamp(300px, calc(100dvh - 450px), 760px); }\n.space-computers-compact { gap: 12px; }\n.computer-work-compact { margin-top: 0; }\n.computer-work-compact .computer-terminal-screen { height: clamp(260px, calc(100dvh - 330px), 720px); }\n.computer-work-compact .computer-panel { padding-top: 12px; }\n.computer-work-compact .computer-bar .copilotz-tab { padding: 0 4px; }\n\n/* A computer's page */\n.computer-page { container: computer-page / inline-size; }\n.computer-page .copilotz-page-description { max-width: none; }\n.computer-loading { display: grid; gap: 18px; margin-top: 8px; }\n.computer-gone { display: grid; place-items: center; padding: 32px; }\n.computer-presence { gap: 6px; }\n.computer-presence-dot { width: 7px; height: 7px; border-radius: var(--radius-full); background: currentColor; }\n.computer-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 13.5px; }\n.computer-facts > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }\n.computer-facts code { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.computer-rename { display: block; max-width: 420px; }\n.computer-forget-text { margin: 0 0 12px; line-height: 1.55; }\n.computer-forget-text code { font-size: .92em; }\n\n.computer-work { container: computer-work / inline-size; margin-top: 4px; }\n.computer-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 18px;\n border-bottom: 1px solid var(--border); }\n.computer-bar .copilotz-tabs-line { border-bottom: 0; }\n.computer-space { display: flex; align-items: center; gap: 8px; min-width: 0; padding-bottom: 6px; font-size: 13px; }\n.computer-space-label { color: var(--muted-foreground); }\n.computer-space-path { min-width: 0; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis;\n white-space: nowrap; }\n.computer-space-path code { font-size: 12px; }\n.computer-panel { padding-top: 16px; }\n.computer-tab[hidden] { display: none; }\n.computer-offline { display: grid; gap: 12px; max-width: 640px; }\n\n/* The terminal */\n.computer-terminal { display: grid; gap: 8px; }\n.computer-terminal-screen { height: clamp(320px, calc(100dvh - 340px), 860px); }\n.computer-terminal-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 2px;\n color: var(--muted-foreground); font-size: 12.5px; }\n\n/* Jobs */\n.jobs { display: grid; gap: 18px; }\n.jobs-start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 200px) 92px auto; gap: 8px; }\n.jobs-command input { font-family: var(--font-mono); font-size: 13.5px; }\n.jobs-port input { font-variant-numeric: tabular-nums; }\n.jobs-keep { grid-column: 1 / -1; margin: 2px 2px 0; font-size: 13.5px; }\n.jobs-keep-hint { color: var(--muted-foreground); }\n.jobs-more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;\n gap: 4px 16px; }\n.jobs-more .jobs-keep { margin-top: 0; }\n.jobs-env-toggle[aria-expanded=true] { color: var(--primary-text); }\n.jobs-env { grid-column: 1 / -1; display: grid; gap: 6px; }\n.jobs-env textarea { font-family: var(--font-mono); font-size: 13px; }\n.jobs-env-hint { margin: 0 2px; color: var(--muted-foreground); font-size: 12.5px; line-height: 1.45; }\n.jobs-env-hint code { font-size: 12px; }\n.jobs-error { grid-column: 1 / -1; margin: 0; color: var(--destructive-text); font-size: 13px; }\n.jobs-group { display: grid; gap: 8px; }\n.jobs-group h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 650;\n letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); }\n.jobs-count { font-variant-numeric: tabular-nums; letter-spacing: 0; }\n.jobs-list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }\n.job-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px;\n padding: 11px 12px 11px 14px; }\n.job-state { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-full);\n background: var(--muted); color: var(--muted-foreground); }\n.job-state[data-state=running] { background: var(--success-soft); }\n.job-state[data-state=done] { background: var(--success-soft); color: var(--success-text); }\n.job-state[data-state=failed] { background: var(--destructive-soft); color: var(--destructive-text); }\n.job-pulse { width: 9px; height: 9px; border-radius: var(--radius-full); background: var(--success);\n animation: job-pulse 1.6s ease-in-out infinite; }\n@keyframes job-pulse { 50% { transform: scale(.6); opacity: .5; } }\n.job-text { display: grid; gap: 3px; min-width: 0; }\n.job-name { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; font-weight: 620; }\n.job-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.job-command { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--secondary-foreground);\n font-size: 12.5px; }\n.job-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; color: var(--muted-foreground);\n font-size: 12.5px; }\n.job-meta .copilotz-time { font-size: 12.5px; }\n.job-who { display: inline-flex; align-items: center; gap: 5px; color: var(--secondary-foreground); }\n.job-actions { display: flex; align-items: center; gap: 4px; }\n.job-error { margin: 0 14px 10px 52px; }\n.job-logs { padding: 0 12px 12px; }\n.job-streams { display: grid; gap: 8px; }\n.job-loading { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted-foreground); font-size: 13px; }\n.jobs-empty { margin-top: 18px; }\n\n/* What a job serves: its port, its preview, what else it can become */\n.job-serve { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;\n margin: 0 12px 12px 52px; padding: 8px 8px 8px 12px; border-radius: var(--radius-lg);\n background: color-mix(in oklab, var(--muted) 70%, var(--card)); font-size: 13px; }\n.job-serve-what { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0;\n color: var(--secondary-foreground); }\n.job-serve-what code { font-size: 12.5px; font-weight: 600; color: var(--foreground); }\n.job-serve-dot { width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--success); }\n.job-serve-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--primary-text);\n font-weight: 560; text-decoration: none; }\n.job-serve-url:hover { text-decoration: underline; text-underline-offset: 3px; }\n.job-serve-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }\n.job-serve-split { display: inline-flex; }\n.job-serve-split > .copilotz-button { border-top-right-radius: 0; border-bottom-right-radius: 0; }\n.job-serve-split .copilotz-icon-button { width: 28px; height: 30px; margin-left: -1px; border-top-left-radius: 0;\n border-bottom-left-radius: 0; }\n.job-serve-error { flex-basis: 100%; }\n.serve-who { display: inline-flex; align-items: center; gap: 5px; color: var(--muted-foreground); font-size: 12.5px;\n white-space: nowrap; }\n.serve-who[data-visibility=link] { color: var(--warning-text); }\n\n/* Previews */\n.preview-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px;\n padding: 10px 10px 10px 14px; }\n.preview[aria-busy] { opacity: .65; }\n.preview-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-md);\n background: var(--primary-soft); color: var(--primary-text); }\n.preview-icon[data-visibility=link] { background: var(--warning-soft); color: var(--warning-text); }\n.preview-text { display: grid; gap: 2px; min-width: 0; }\n.preview-url { display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: var(--primary-text);\n font-weight: 600; font-size: 14px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\na.preview-url:hover { text-decoration: underline; text-underline-offset: 3px; }\n.preview-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0; color: var(--muted-foreground); font-size: 12.5px; }\n.preview-meta code { font-size: 12px; }\n.preview-meta .copilotz-time { font-size: 12.5px; }\n.preview-job { min-width: 0; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.preview-actions { display: flex; align-items: center; gap: 4px; }\n.preview-error { margin: 0 14px 10px 56px; }\n@container computer-work (max-width: 560px) {\n .jobs-start { grid-template-columns: minmax(0, 1fr) 84px auto; }\n .jobs-start .jobs-command { grid-column: 1 / -1; }\n .job-row { grid-template-columns: 26px minmax(0, 1fr); }\n .job-actions { grid-column: 2; }\n .job-serve { margin-left: 12px; }\n .preview-row { grid-template-columns: 30px minmax(0, 1fr); }\n .preview-actions { grid-column: 2; }\n .preview-error { margin-left: 14px; }\n}\n\n/* Files */\n.files { display: grid; gap: 12px; }\n.files-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }\n.files-crumbs { min-width: 0; }\n.files-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0; padding: 0; }\n.files-crumbs li { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }\n.files-crumb { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 4px 8px;\n border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--secondary-foreground);\n font-size: 13.5px; font-weight: 560; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.files-crumb:hover { background: var(--accent); color: var(--accent-foreground); }\n.files-crumb[aria-current] { color: var(--foreground); font-weight: 650; }\n.files-crumb .copilotz-icon { color: var(--primary-text); }\n.files-crumb-sep { color: var(--muted-foreground); }\n.files-tools { display: flex; align-items: center; gap: 6px; }\n.files-filter { width: 170px; }\n.files-new { max-width: 420px; }\n.files-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }\n.files[data-open] .files-body { grid-template-columns: minmax(210px, 300px) minmax(0, 1fr); }\n.files-list-box { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card);\n overflow: hidden; }\n.files-list { list-style: none; display: grid; margin: 0; padding: 4px; }\n.files-list > .copilotz-skeleton { margin: 3px 4px; }\n.file-row { position: relative; display: flex; align-items: center; border-radius: var(--radius-md); }\n.file-row:hover { background: var(--accent); }\n.file-row[data-current] { background: var(--primary-soft); }\n.file-open { flex: 1; min-width: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center;\n gap: 10px; min-height: 38px; padding: 4px 8px; border: 0; border-radius: var(--radius-md); background: transparent;\n color: inherit; font-size: 14px; text-align: left; cursor: pointer; }\n.file-row:has(.file-save) .file-open { padding-right: 38px; }\n.file-icon { display: grid; place-items: center; color: var(--muted-foreground); }\n.file-icon[data-type=folder] { color: var(--primary-text); }\n.file-icon[data-type=image] { color: var(--info-text); }\n.file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.file-meta { display: flex; align-items: center; gap: 10px; color: var(--muted-foreground); font-size: 12px;\n font-variant-numeric: tabular-nums; white-space: nowrap; }\n.file-meta .copilotz-time { font-size: 12px; }\n.file-size { min-width: 52px; text-align: right; }\n.file-save { position: absolute; right: 5px; opacity: 0; transition: opacity .12s; }\n.file-row:hover .file-save, .file-save:focus-visible, .file-save[aria-busy] { opacity: 1; }\n@media (hover: none) { .file-save { opacity: 1; } }\n.files[data-open] .file-meta { display: none; }\n.files-empty { padding: 18px 8px; }\n.files-none { padding: 14px 10px; color: var(--muted-foreground); font-size: 13.5px; }\n\n.file-view { display: grid; gap: 10px; min-width: 0; }\n.file-view-head { display: flex; align-items: center; gap: 10px; min-width: 0; }\n.file-view-back { display: none; }\n.file-view-title { flex: 1; min-width: 0; }\n.file-view-title h3 { margin: 0; font-size: 15px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.file-view-title p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 1px 0 0;\n color: var(--muted-foreground); font-size: 12.5px; }\n.file-view-title .copilotz-time { font-size: 12.5px; }\n.file-view-actions { flex: none; display: flex; align-items: center; gap: 6px; }\n.file-view-body { min-width: 0; }\n.file-view-wait { display: flex; align-items: center; gap: 8px; margin: 18px 4px; color: var(--muted-foreground); font-size: 13.5px; }\n.file-text .copilotz-code-body { max-height: min(70vh, 760px); }\n.file-lines { color: var(--muted-foreground); font: 500 12px var(--font-sans); }\n.file-edit { width: 100%; min-height: min(62vh, 640px); font-family: var(--font-mono); font-size: 13px; line-height: 1.6;\n tab-size: 4; white-space: pre; }\n.file-view-hint { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted-foreground); font-size: 12.5px; }\n.file-picture { display: grid; gap: 8px; justify-items: center; margin: 0; padding: 18px; border: 1px solid var(--border);\n border-radius: var(--radius-xl); background: repeating-conic-gradient(var(--muted) 0 25%, var(--card) 0 50%) 0 0 / 18px 18px; }\n.file-picture img { display: block; max-width: 100%; max-height: min(66vh, 720px); object-fit: contain; }\n@container computer-work (max-width: 680px) {\n .files[data-open] .files-body { grid-template-columns: minmax(0, 1fr); }\n .files[data-open] .files-list-box { display: none; }\n .file-view-back { display: inline-grid; }\n .file-view-close { display: none; }\n .files-filter { width: 130px; }\n}\n\n/* What agents ask, over where you type */\n/* What you've let agents do: on the Computer tab */\n.computer-allowed { display: grid; gap: 10px; margin-top: 14px; }\n.computer-allowed h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 650; }\n.computer-allowed h3 .copilotz-icon { color: var(--muted-foreground); }\n.computer-allowed ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }\n.computer-allowed li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13.5px; }\n.computer-allowed li + li { border-top: 1px solid var(--border); }\n.computer-allowed li span { display: grid; gap: 2px; min-width: 0; }\n.computer-allowed small { color: var(--muted-foreground); font-size: 12.5px; }\n/* What a routine may do on its own: on its page */\n.routine-allowed-wrap { display: grid; gap: 12px; }\n.routine-allowed-wrap:empty { display: none; }\n.routine-allowed { display: grid; gap: 12px; }\n.routine-allowed h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 650; }\n.routine-allowed h2 .copilotz-icon { color: var(--muted-foreground); }\n.routine-allowed-note { margin: 0; color: var(--muted-foreground); font-size: 13px; line-height: 1.5; }\n.routine-allowed-row { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--border); }\n.routine-allowed-row legend { display: contents; font-size: 14px; font-weight: 600; }\n.routine-allowed-row legend small { margin-left: 8px; color: var(--muted-foreground); font-size: 12.5px; font-weight: 500; }\n.routine-allowed-work { display: flex; flex-wrap: wrap; gap: 8px 20px; }\n.routine-allowed-what { overflow-wrap: anywhere; font-size: 13px; }\n.asks { display: grid; gap: 8px; }\n.asks > .ask { animation: ask-in .36s cubic-bezier(.2, .8, .2, 1) both; }\n@keyframes ask-in { from { opacity: 0; transform: translateY(8px); } }\n.ask { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 12px 14px 12px 12px;\n border-color: var(--warning-border); box-shadow: var(--shadow-md); animation: ask-in .22s ease-out; }\n@keyframes ask-in { from { opacity: 0; transform: translateY(6px); } }\n.ask-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-md);\n background: var(--warning-soft); color: var(--warning-text); }\n.ask-main { display: grid; gap: 9px; min-width: 0; }\n.ask-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 4px 0 0; font-size: 14.5px; }\n.ask-where { margin-left: auto; color: var(--muted-foreground); font-size: 12.5px; }\n.ask-where .copilotz-time { font-size: 12.5px; }\n.ask-what .copilotz-code-body { padding: 7px 11px; font-size: 13px; }\n.ask-preview .copilotz-code-head code { font-size: 12.5px; font-weight: 600; }\n.ask-publish { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-lg);\n background: var(--card); }\n.ask-publish-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: 14.5px; }\n.ask-publish-at { color: var(--primary-text); font-size: 13px; overflow-wrap: anywhere; }\n.ask-publish-from { margin: 0; color: var(--muted-foreground); font-size: 13px; line-height: 1.5; }\n.ask-answers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }\n.ask-deny { margin-left: auto; color: var(--destructive-text); }\n.ask-error { margin: 0; color: var(--destructive-text); font-size: 13px; }\n@media (max-width: 760px) {\n .ask { grid-template-columns: minmax(0, 1fr); padding: 12px; }\n .ask-icon { display: none; }\n .ask-head { margin: 0; }\n /* Two rows: Allow once and Deny, then the wider yeses (the tooltips' wrappers lay out as their buttons). */\n .ask-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }\n .ask-answers .copilotz-button { order: 2; min-width: 0; width: 100%; white-space: normal; text-align: center;\n line-height: 1.2; }\n .ask-answers > :first-child .copilotz-button { order: 0; }\n .ask-answers > .ask-deny { order: 1; margin: 0; }\n}\n\n/* Agents' calls, in the conversation */\n.step-computer { min-width: 0; }\n.step-on { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 6px; padding: 2px 8px;\n border-radius: var(--radius-sm); background: var(--muted); color: var(--muted-foreground); font-size: 12px; }\n.step-block .copilotz-code-head { font-weight: 560; }\n.step-block .copilotz-code-title > span, .step-file { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px;\n min-width: 0; font-family: var(--font-sans); font-size: 13px; }\n.step-block .copilotz-code-title code { font-size: 12.5px; overflow-wrap: anywhere; }\n.step-command { display: inline-flex; gap: 8px; min-width: 0; font-size: 12.5px; overflow-wrap: anywhere; white-space: pre-wrap; }\n.step-prompt { color: var(--success-text); user-select: none; }\n.step-status { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; color: var(--muted-foreground);\n font: 500 12px var(--font-sans); white-space: nowrap; }\n.step-ok { display: inline-flex; align-items: center; gap: 3px; color: var(--success-text); }\n.step-bad { color: var(--destructive-text); }\n.step-block .copilotz-code-foot code { font-size: 11.5px; }\n.step-line { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--secondary-foreground); font-size: 13.5px; }\n.step-line > .copilotz-icon { color: var(--muted-foreground); }\n.step-line-text { flex: 1; min-width: 0; }\n.step-search { display: grid; gap: 8px; }\n.step-results { list-style: none; display: grid; gap: 2px; margin: 0; padding: 0 0 0 22px; }\n.step-results li { display: grid; padding: 6px 10px; border-left: 2px solid var(--border); }\n.step-results a { display: inline-flex; align-items: center; gap: 5px; width: fit-content; color: var(--primary-text);\n font-weight: 600; font-size: 14px; text-decoration: none; }\n.step-results a:hover { text-decoration: underline; text-underline-offset: 3px; }\n.step-host { color: var(--success-text); font-size: 12px; }\n.step-results p { margin: 2px 0 0; color: var(--secondary-foreground); font-size: 13px; line-height: 1.45;\n display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }\n.step-more { color: var(--muted-foreground); font-size: 12.5px; }\n.step-why { margin: 0 0 0 22px; color: var(--muted-foreground); font-size: 13px; }\n.step-page { margin: 0 0 0 22px; font-size: 13.5px; }\n.step-page a { display: inline-flex; align-items: center; gap: 5px; color: var(--primary-text); }\n\n/* A space's environment (its tab) */\n.env { container: env / inline-size; display: grid; gap: 14px; }\n.env-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }\n.env-intro { flex: 1 1 320px; max-width: 720px; margin: 0 2px; color: var(--muted-foreground); font-size: 13.5px;\n line-height: 1.5; }\n.env-intro strong { color: var(--foreground); font-weight: 620; }\n.env-table { overflow: hidden; }\n.env-list { list-style: none; margin: 0; padding: 0; }\n.env-row { display: grid; grid-template-columns: minmax(150px, 240px) minmax(0, 1fr) auto auto;\n grid-template-areas: \"key value where actions\"; align-items: center; gap: 6px 16px; min-height: 56px;\n padding: 9px 10px 9px 16px; transition: background-color .12s; }\n.env-row + .env-row { border-top: 1px solid var(--border); }\n.env-row:hover { background: color-mix(in oklab, var(--muted) 40%, var(--card)); }\n.env-key { grid-area: key; display: grid; gap: 1px; min-width: 0; }\n.env-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--foreground);\n font-size: 13px; font-weight: 650; }\n.env-meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-foreground);\n font-size: 12px; }\n.env-meta .copilotz-time { font-size: 12px; }\n.env-value { grid-area: value; display: flex; align-items: center; gap: 2px; min-width: 0; }\n.env-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--secondary-foreground);\n font-size: 12.5px; }\n.env-sealed { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: var(--radius-full);\n background: var(--muted); color: var(--muted-foreground); font: 12px var(--font-mono); letter-spacing: .04em; }\n.env-blank { color: var(--muted-foreground); font-size: 12.5px; font-style: italic; }\n.env-where { grid-area: where; display: inline-flex; align-items: center; gap: 5px; color: var(--muted-foreground);\n font-size: 12.5px; white-space: nowrap; }\n.env-where[data-exposed] { color: var(--warning-text); }\n.env-actions { grid-area: actions; display: flex; align-items: center; gap: 2px; }\n.env-empty { margin-top: 12px; }\n.env-dialog-text { margin: 0 0 12px; line-height: 1.55; }\n.env-form { display: grid; gap: 16px; }\n.env-form-name input, .env-form-value { font-family: var(--font-mono); font-size: 13.5px; }\n.env-form-options { display: grid; gap: 12px; padding: 12px 14px; border: 1px solid var(--border);\n border-radius: var(--radius-lg); background: color-mix(in oklab, var(--muted) 40%, var(--popover)); }\n.env-form-options .copilotz-checkbox > span { display: grid; gap: 1px; }\n.env-form-option { font-size: 14px; font-weight: 580; }\n.env-form-option-note { color: var(--muted-foreground); font-size: 12.5px; line-height: 1.45; }\n.env-form-limit { margin-top: -4px; }\n@container env (max-width: 600px) {\n .env-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: \"key actions\" \"value value\" \"where where\";\n padding-left: 14px; }\n}\n";
|
|
@@ -78,6 +78,44 @@ export const STYLE = `
|
|
|
78
78
|
.connect-binary .copilotz-button { width: 100%; justify-content: center; }
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
/* Adding one: the ways, as a choice */
|
|
82
|
+
.add-body { display: grid; gap: 20px; }
|
|
83
|
+
.add-choices { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
|
|
84
|
+
.add-choice { display: grid; grid-template-columns: 44px minmax(0, 1fr) 16px; align-items: center; gap: 14px; width: 100%;
|
|
85
|
+
padding: 14px 16px 14px 14px; color: inherit; font: inherit; }
|
|
86
|
+
.add-choice:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
|
|
87
|
+
.add-choice-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-lg);
|
|
88
|
+
background: var(--muted); color: var(--secondary-foreground); }
|
|
89
|
+
.add-choice-icon[data-kind] { background: var(--primary-soft); color: var(--primary-text); }
|
|
90
|
+
.add-choice-text { display: grid; gap: 3px; min-width: 0; }
|
|
91
|
+
.add-choice-title { font-size: 15px; font-weight: 640; }
|
|
92
|
+
.add-choice-description { color: var(--muted-foreground); font-size: 13px; line-height: 1.45; }
|
|
93
|
+
.add-choice[data-blocked] { cursor: default; background: var(--muted); box-shadow: none; }
|
|
94
|
+
.add-choice[data-blocked] .add-choice-icon { opacity: 0.6; }
|
|
95
|
+
.add-choice-why { display: flex; align-items: flex-start; gap: 6px; }
|
|
96
|
+
.add-choice-why svg { flex: none; margin-top: 2px; }
|
|
97
|
+
.add-choice-go { color: var(--muted-foreground); transition: transform .15s, color .15s; }
|
|
98
|
+
.add-choice:hover .add-choice-go { color: var(--foreground); transform: translateX(2px); }
|
|
99
|
+
.add-yours { display: grid; gap: 8px; }
|
|
100
|
+
.add-yours h3 { margin: 0; color: var(--muted-foreground); font-size: 12px; font-weight: 650; letter-spacing: .06em;
|
|
101
|
+
text-transform: uppercase; }
|
|
102
|
+
.add-yours ul { list-style: none; display: grid; gap: 2px; margin: 0; padding: 0; }
|
|
103
|
+
.add-yours-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px;
|
|
104
|
+
border: 0; border-radius: var(--radius-md); background: transparent; color: inherit; font: inherit; text-align: left;
|
|
105
|
+
cursor: pointer; }
|
|
106
|
+
.add-yours-item:hover { background: var(--accent); color: var(--accent-foreground); }
|
|
107
|
+
.add-yours-item:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
|
|
108
|
+
.add-yours-item .computer-dot { outline-color: var(--popover); }
|
|
109
|
+
.add-yours-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 560; }
|
|
110
|
+
.add-yours-state { color: var(--muted-foreground); font-size: 12.5px; }
|
|
111
|
+
.add-yours-plus { color: var(--muted-foreground); }
|
|
112
|
+
.add-back { margin-right: auto; }
|
|
113
|
+
.desks-none-choices { max-width: 560px; }
|
|
114
|
+
.desks-none-choices .add-choices { width: 100%; margin-top: 10px; text-align: left; }
|
|
115
|
+
.desks-none-choices .desks-none-actions { margin-top: 2px; }
|
|
116
|
+
.add-choices-compact .add-choice { grid-template-columns: 36px minmax(0, 1fr) 14px; gap: 10px; padding: 10px 12px 10px 10px; }
|
|
117
|
+
.add-choices-compact .add-choice-icon { width: 36px; height: 36px; }
|
|
118
|
+
|
|
81
119
|
/* A space's computers: its tab */
|
|
82
120
|
.space-computers { display: grid; gap: 16px; }
|
|
83
121
|
.desks { display: grid; gap: 10px; }
|
|
@@ -163,8 +201,19 @@ button.desk-pick { cursor: pointer; }
|
|
|
163
201
|
|
|
164
202
|
/* Jobs */
|
|
165
203
|
.jobs { display: grid; gap: 18px; }
|
|
166
|
-
.jobs-start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 200px) auto; gap: 8px; }
|
|
204
|
+
.jobs-start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 200px) 92px auto; gap: 8px; }
|
|
167
205
|
.jobs-command input { font-family: var(--font-mono); font-size: 13.5px; }
|
|
206
|
+
.jobs-port input { font-variant-numeric: tabular-nums; }
|
|
207
|
+
.jobs-keep { grid-column: 1 / -1; margin: 2px 2px 0; font-size: 13.5px; }
|
|
208
|
+
.jobs-keep-hint { color: var(--muted-foreground); }
|
|
209
|
+
.jobs-more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
|
|
210
|
+
gap: 4px 16px; }
|
|
211
|
+
.jobs-more .jobs-keep { margin-top: 0; }
|
|
212
|
+
.jobs-env-toggle[aria-expanded=true] { color: var(--primary-text); }
|
|
213
|
+
.jobs-env { grid-column: 1 / -1; display: grid; gap: 6px; }
|
|
214
|
+
.jobs-env textarea { font-family: var(--font-mono); font-size: 13px; }
|
|
215
|
+
.jobs-env-hint { margin: 0 2px; color: var(--muted-foreground); font-size: 12.5px; line-height: 1.45; }
|
|
216
|
+
.jobs-env-hint code { font-size: 12px; }
|
|
168
217
|
.jobs-error { grid-column: 1 / -1; margin: 0; color: var(--destructive-text); font-size: 13px; }
|
|
169
218
|
.jobs-group { display: grid; gap: 8px; }
|
|
170
219
|
.jobs-group h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 650;
|
|
@@ -196,11 +245,54 @@ button.desk-pick { cursor: pointer; }
|
|
|
196
245
|
.job-streams { display: grid; gap: 8px; }
|
|
197
246
|
.job-loading { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted-foreground); font-size: 13px; }
|
|
198
247
|
.jobs-empty { margin-top: 18px; }
|
|
248
|
+
|
|
249
|
+
/* What a job serves: its port, its preview, what else it can become */
|
|
250
|
+
.job-serve { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
|
|
251
|
+
margin: 0 12px 12px 52px; padding: 8px 8px 8px 12px; border-radius: var(--radius-lg);
|
|
252
|
+
background: color-mix(in oklab, var(--muted) 70%, var(--card)); font-size: 13px; }
|
|
253
|
+
.job-serve-what { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0;
|
|
254
|
+
color: var(--secondary-foreground); }
|
|
255
|
+
.job-serve-what code { font-size: 12.5px; font-weight: 600; color: var(--foreground); }
|
|
256
|
+
.job-serve-dot { width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--success); }
|
|
257
|
+
.job-serve-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--primary-text);
|
|
258
|
+
font-weight: 560; text-decoration: none; }
|
|
259
|
+
.job-serve-url:hover { text-decoration: underline; text-underline-offset: 3px; }
|
|
260
|
+
.job-serve-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
261
|
+
.job-serve-split { display: inline-flex; }
|
|
262
|
+
.job-serve-split > .copilotz-button { border-top-right-radius: 0; border-bottom-right-radius: 0; }
|
|
263
|
+
.job-serve-split .copilotz-icon-button { width: 28px; height: 30px; margin-left: -1px; border-top-left-radius: 0;
|
|
264
|
+
border-bottom-left-radius: 0; }
|
|
265
|
+
.job-serve-error { flex-basis: 100%; }
|
|
266
|
+
.serve-who { display: inline-flex; align-items: center; gap: 5px; color: var(--muted-foreground); font-size: 12.5px;
|
|
267
|
+
white-space: nowrap; }
|
|
268
|
+
.serve-who[data-visibility=link] { color: var(--warning-text); }
|
|
269
|
+
|
|
270
|
+
/* Previews */
|
|
271
|
+
.preview-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px;
|
|
272
|
+
padding: 10px 10px 10px 14px; }
|
|
273
|
+
.preview[aria-busy] { opacity: .65; }
|
|
274
|
+
.preview-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-md);
|
|
275
|
+
background: var(--primary-soft); color: var(--primary-text); }
|
|
276
|
+
.preview-icon[data-visibility=link] { background: var(--warning-soft); color: var(--warning-text); }
|
|
277
|
+
.preview-text { display: grid; gap: 2px; min-width: 0; }
|
|
278
|
+
.preview-url { display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: var(--primary-text);
|
|
279
|
+
font-weight: 600; font-size: 14px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
280
|
+
a.preview-url:hover { text-decoration: underline; text-underline-offset: 3px; }
|
|
281
|
+
.preview-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0; color: var(--muted-foreground); font-size: 12.5px; }
|
|
282
|
+
.preview-meta code { font-size: 12px; }
|
|
283
|
+
.preview-meta .copilotz-time { font-size: 12.5px; }
|
|
284
|
+
.preview-job { min-width: 0; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
285
|
+
.preview-actions { display: flex; align-items: center; gap: 4px; }
|
|
286
|
+
.preview-error { margin: 0 14px 10px 56px; }
|
|
199
287
|
@container computer-work (max-width: 560px) {
|
|
200
|
-
.jobs-start { grid-template-columns: minmax(0, 1fr) auto; }
|
|
288
|
+
.jobs-start { grid-template-columns: minmax(0, 1fr) 84px auto; }
|
|
201
289
|
.jobs-start .jobs-command { grid-column: 1 / -1; }
|
|
202
290
|
.job-row { grid-template-columns: 26px minmax(0, 1fr); }
|
|
203
291
|
.job-actions { grid-column: 2; }
|
|
292
|
+
.job-serve { margin-left: 12px; }
|
|
293
|
+
.preview-row { grid-template-columns: 30px minmax(0, 1fr); }
|
|
294
|
+
.preview-actions { grid-column: 2; }
|
|
295
|
+
.preview-error { margin-left: 14px; }
|
|
204
296
|
}
|
|
205
297
|
|
|
206
298
|
/* Files */
|
|
@@ -275,6 +367,27 @@ button.desk-pick { cursor: pointer; }
|
|
|
275
367
|
}
|
|
276
368
|
|
|
277
369
|
/* What agents ask, over where you type */
|
|
370
|
+
/* What you've let agents do: on the Computer tab */
|
|
371
|
+
.computer-allowed { display: grid; gap: 10px; margin-top: 14px; }
|
|
372
|
+
.computer-allowed h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 650; }
|
|
373
|
+
.computer-allowed h3 .copilotz-icon { color: var(--muted-foreground); }
|
|
374
|
+
.computer-allowed ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
|
|
375
|
+
.computer-allowed li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13.5px; }
|
|
376
|
+
.computer-allowed li + li { border-top: 1px solid var(--border); }
|
|
377
|
+
.computer-allowed li span { display: grid; gap: 2px; min-width: 0; }
|
|
378
|
+
.computer-allowed small { color: var(--muted-foreground); font-size: 12.5px; }
|
|
379
|
+
/* What a routine may do on its own: on its page */
|
|
380
|
+
.routine-allowed-wrap { display: grid; gap: 12px; }
|
|
381
|
+
.routine-allowed-wrap:empty { display: none; }
|
|
382
|
+
.routine-allowed { display: grid; gap: 12px; }
|
|
383
|
+
.routine-allowed h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 650; }
|
|
384
|
+
.routine-allowed h2 .copilotz-icon { color: var(--muted-foreground); }
|
|
385
|
+
.routine-allowed-note { margin: 0; color: var(--muted-foreground); font-size: 13px; line-height: 1.5; }
|
|
386
|
+
.routine-allowed-row { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--border); }
|
|
387
|
+
.routine-allowed-row legend { display: contents; font-size: 14px; font-weight: 600; }
|
|
388
|
+
.routine-allowed-row legend small { margin-left: 8px; color: var(--muted-foreground); font-size: 12.5px; font-weight: 500; }
|
|
389
|
+
.routine-allowed-work { display: flex; flex-wrap: wrap; gap: 8px 20px; }
|
|
390
|
+
.routine-allowed-what { overflow-wrap: anywhere; font-size: 13px; }
|
|
278
391
|
.asks { display: grid; gap: 8px; }
|
|
279
392
|
.asks > .ask { animation: ask-in .36s cubic-bezier(.2, .8, .2, 1) both; }
|
|
280
393
|
@keyframes ask-in { from { opacity: 0; transform: translateY(8px); } }
|
|
@@ -289,6 +402,11 @@ button.desk-pick { cursor: pointer; }
|
|
|
289
402
|
.ask-where .copilotz-time { font-size: 12.5px; }
|
|
290
403
|
.ask-what .copilotz-code-body { padding: 7px 11px; font-size: 13px; }
|
|
291
404
|
.ask-preview .copilotz-code-head code { font-size: 12.5px; font-weight: 600; }
|
|
405
|
+
.ask-publish { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-lg);
|
|
406
|
+
background: var(--card); }
|
|
407
|
+
.ask-publish-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: 14.5px; }
|
|
408
|
+
.ask-publish-at { color: var(--primary-text); font-size: 13px; overflow-wrap: anywhere; }
|
|
409
|
+
.ask-publish-from { margin: 0; color: var(--muted-foreground); font-size: 13px; line-height: 1.5; }
|
|
292
410
|
.ask-answers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
293
411
|
.ask-deny { margin-left: auto; color: var(--destructive-text); }
|
|
294
412
|
.ask-error { margin: 0; color: var(--destructive-text); font-size: 13px; }
|
|
@@ -306,6 +424,8 @@ button.desk-pick { cursor: pointer; }
|
|
|
306
424
|
|
|
307
425
|
/* Agents' calls, in the conversation */
|
|
308
426
|
.step-computer { min-width: 0; }
|
|
427
|
+
.step-on { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 6px; padding: 2px 8px;
|
|
428
|
+
border-radius: var(--radius-sm); background: var(--muted); color: var(--muted-foreground); font-size: 12px; }
|
|
309
429
|
.step-block .copilotz-code-head { font-weight: 560; }
|
|
310
430
|
.step-block .copilotz-code-title > span, .step-file { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px;
|
|
311
431
|
min-width: 0; font-family: var(--font-sans); font-size: 13px; }
|
|
@@ -333,4 +453,48 @@ button.desk-pick { cursor: pointer; }
|
|
|
333
453
|
.step-why { margin: 0 0 0 22px; color: var(--muted-foreground); font-size: 13px; }
|
|
334
454
|
.step-page { margin: 0 0 0 22px; font-size: 13.5px; }
|
|
335
455
|
.step-page a { display: inline-flex; align-items: center; gap: 5px; color: var(--primary-text); }
|
|
456
|
+
|
|
457
|
+
/* A space's environment (its tab) */
|
|
458
|
+
.env { container: env / inline-size; display: grid; gap: 14px; }
|
|
459
|
+
.env-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
|
|
460
|
+
.env-intro { flex: 1 1 320px; max-width: 720px; margin: 0 2px; color: var(--muted-foreground); font-size: 13.5px;
|
|
461
|
+
line-height: 1.5; }
|
|
462
|
+
.env-intro strong { color: var(--foreground); font-weight: 620; }
|
|
463
|
+
.env-table { overflow: hidden; }
|
|
464
|
+
.env-list { list-style: none; margin: 0; padding: 0; }
|
|
465
|
+
.env-row { display: grid; grid-template-columns: minmax(150px, 240px) minmax(0, 1fr) auto auto;
|
|
466
|
+
grid-template-areas: "key value where actions"; align-items: center; gap: 6px 16px; min-height: 56px;
|
|
467
|
+
padding: 9px 10px 9px 16px; transition: background-color .12s; }
|
|
468
|
+
.env-row + .env-row { border-top: 1px solid var(--border); }
|
|
469
|
+
.env-row:hover { background: color-mix(in oklab, var(--muted) 40%, var(--card)); }
|
|
470
|
+
.env-key { grid-area: key; display: grid; gap: 1px; min-width: 0; }
|
|
471
|
+
.env-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--foreground);
|
|
472
|
+
font-size: 13px; font-weight: 650; }
|
|
473
|
+
.env-meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-foreground);
|
|
474
|
+
font-size: 12px; }
|
|
475
|
+
.env-meta .copilotz-time { font-size: 12px; }
|
|
476
|
+
.env-value { grid-area: value; display: flex; align-items: center; gap: 2px; min-width: 0; }
|
|
477
|
+
.env-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--secondary-foreground);
|
|
478
|
+
font-size: 12.5px; }
|
|
479
|
+
.env-sealed { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: var(--radius-full);
|
|
480
|
+
background: var(--muted); color: var(--muted-foreground); font: 12px var(--font-mono); letter-spacing: .04em; }
|
|
481
|
+
.env-blank { color: var(--muted-foreground); font-size: 12.5px; font-style: italic; }
|
|
482
|
+
.env-where { grid-area: where; display: inline-flex; align-items: center; gap: 5px; color: var(--muted-foreground);
|
|
483
|
+
font-size: 12.5px; white-space: nowrap; }
|
|
484
|
+
.env-where[data-exposed] { color: var(--warning-text); }
|
|
485
|
+
.env-actions { grid-area: actions; display: flex; align-items: center; gap: 2px; }
|
|
486
|
+
.env-empty { margin-top: 12px; }
|
|
487
|
+
.env-dialog-text { margin: 0 0 12px; line-height: 1.55; }
|
|
488
|
+
.env-form { display: grid; gap: 16px; }
|
|
489
|
+
.env-form-name input, .env-form-value { font-family: var(--font-mono); font-size: 13.5px; }
|
|
490
|
+
.env-form-options { display: grid; gap: 12px; padding: 12px 14px; border: 1px solid var(--border);
|
|
491
|
+
border-radius: var(--radius-lg); background: color-mix(in oklab, var(--muted) 40%, var(--popover)); }
|
|
492
|
+
.env-form-options .copilotz-checkbox > span { display: grid; gap: 1px; }
|
|
493
|
+
.env-form-option { font-size: 14px; font-weight: 580; }
|
|
494
|
+
.env-form-option-note { color: var(--muted-foreground); font-size: 12.5px; line-height: 1.45; }
|
|
495
|
+
.env-form-limit { margin-top: -4px; }
|
|
496
|
+
@container env (max-width: 600px) {
|
|
497
|
+
.env-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "key actions" "value value" "where where";
|
|
498
|
+
padding-left: 14px; }
|
|
499
|
+
}
|
|
336
500
|
`;
|
|
@@ -5,17 +5,20 @@
|
|
|
5
5
|
* and files, as tabs. A tab, once opened, stays open while the page is (the
|
|
6
6
|
* terminal keeps what it showed); the one last used opens next time.
|
|
7
7
|
* `compact` in a side panel. Offline, it says how to bring the computer
|
|
8
|
-
* back instead (or, someone else's, who can)
|
|
8
|
+
* back instead (or, someone else's, who can); a cloud computer asleep, its
|
|
9
|
+
* kind's View says so, and wakes it (at once, as its page opens: `wake`).
|
|
9
10
|
*/
|
|
10
11
|
import { type ReactNode } from "react";
|
|
11
12
|
import type { Computer } from "../../collections/computer.js";
|
|
12
13
|
import type { Desk } from "../../collections/desk.js";
|
|
14
|
+
import type { Preview } from "../../collections/preview.js";
|
|
15
|
+
import type { JobAction, Kind } from "./kinds.js";
|
|
13
16
|
import { type Named } from "./names.js";
|
|
14
17
|
import type { Space } from "./page.js";
|
|
15
18
|
type Call = <R = unknown>(action: string, input?: unknown) => Promise<R>;
|
|
16
19
|
/** A space as the picker says it: Personal, or the space's name. */
|
|
17
20
|
export declare const spaceName: (p: Space) => string;
|
|
18
|
-
export declare function Workspace({ computer, spaces, desks, here, me, agents, call, fixed, compact, theirs }: {
|
|
21
|
+
export declare function Workspace({ computer, spaces, desks, here, me, agents, names, call, fixed, compact, theirs, kind, wake, previews, jobActions, }: {
|
|
19
22
|
computer: Computer;
|
|
20
23
|
spaces: Space[];
|
|
21
24
|
desks: Desk[];
|
|
@@ -23,11 +26,21 @@ export declare function Workspace({ computer, spaces, desks, here, me, agents, c
|
|
|
23
26
|
me?: string;
|
|
24
27
|
/** Agents as they're named, for whose each job is. */
|
|
25
28
|
agents?: Record<string, Named>;
|
|
29
|
+
/** People by name (`namesIn`): whose each is, who started each job. */
|
|
30
|
+
names?: Record<string, string>;
|
|
26
31
|
call: Call;
|
|
27
32
|
/** One space's folder only: no picking another. */
|
|
28
33
|
fixed?: boolean;
|
|
29
34
|
compact?: boolean;
|
|
30
|
-
/** Whose it is, when it isn't the person's: they bring it back online. */
|
|
35
|
+
/** Whose it is (by name), when it isn't the person's: they bring it back online. */
|
|
31
36
|
theirs?: string;
|
|
37
|
+
/** Its kind (a cloud computer's): asleep, its kind's View shows in place of the tabs. */
|
|
38
|
+
kind?: Kind;
|
|
39
|
+
/** Wake it now, if it's asleep (its page opened). */
|
|
40
|
+
wake?: boolean;
|
|
41
|
+
/** What it serves, at addresses of their own (the spaces' previews). */
|
|
42
|
+
previews?: Preview[];
|
|
43
|
+
/** What a job that serves a port can become, beyond a preview (published). */
|
|
44
|
+
jobActions?: JobAction[];
|
|
32
45
|
}): ReactNode;
|
|
33
46
|
export {};
|
|
@@ -6,12 +6,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
* and files, as tabs. A tab, once opened, stays open while the page is (the
|
|
7
7
|
* terminal keeps what it showed); the one last used opens next time.
|
|
8
8
|
* `compact` in a side panel. Offline, it says how to bring the computer
|
|
9
|
-
* back instead (or, someone else's, who can)
|
|
9
|
+
* back instead (or, someone else's, who can); a cloud computer asleep, its
|
|
10
|
+
* kind's View says so, and wakes it (at once, as its page opens: `wake`).
|
|
10
11
|
*/
|
|
11
12
|
import { useEffect, useId, useMemo, useRef, useState } from "react";
|
|
12
|
-
import { CodeBlock, Icon, Notice, Select, Tabs } from "../../../../../hosts/web/mod.js";
|
|
13
|
+
import { CodeBlock, Icon, LazyView, Notice, Select, Skeleton, Tabs, } from "../../../../../hosts/web/mod.js";
|
|
13
14
|
import { FilesTab } from "./files.js";
|
|
14
15
|
import { JobsTab, useJobs } from "./jobs.js";
|
|
16
|
+
import { previewsAt } from "./previews.js";
|
|
15
17
|
import { folderPath, nameOf, workOn } from "./names.js";
|
|
16
18
|
import { TerminalTab } from "./terminal-tab.js";
|
|
17
19
|
const KEY = "copilotz-computer-tab";
|
|
@@ -24,9 +26,38 @@ const lastTab = () => {
|
|
|
24
26
|
return "terminal";
|
|
25
27
|
}
|
|
26
28
|
};
|
|
29
|
+
/** How often the person says they have a computer open, while its page shows. */
|
|
30
|
+
const VIEW_MS = 120_000;
|
|
31
|
+
/**
|
|
32
|
+
* Says the person has the computer open (`computer.view`): once it shows
|
|
33
|
+
* (online), then every two minutes while the page is visible, and when it
|
|
34
|
+
* becomes visible again after a while. A computer that sleeps (a cloud
|
|
35
|
+
* computer) stays awake while it's viewed, up to the app's limit; it wakes
|
|
36
|
+
* nothing, and means nothing to a person's own computer.
|
|
37
|
+
*/
|
|
38
|
+
function useViewing(desk, online, call) {
|
|
39
|
+
useEffect(() => {
|
|
40
|
+
if (!desk || !online || typeof document === "undefined")
|
|
41
|
+
return;
|
|
42
|
+
let last = 0;
|
|
43
|
+
const view = () => {
|
|
44
|
+
if (document.visibilityState !== "visible" || Date.now() - last < VIEW_MS / 2)
|
|
45
|
+
return;
|
|
46
|
+
last = Date.now();
|
|
47
|
+
call.current("computer.view", { desk }).catch(() => { });
|
|
48
|
+
};
|
|
49
|
+
view();
|
|
50
|
+
const timer = setInterval(view, VIEW_MS);
|
|
51
|
+
document.addEventListener("visibilitychange", view);
|
|
52
|
+
return () => {
|
|
53
|
+
clearInterval(timer);
|
|
54
|
+
document.removeEventListener("visibilitychange", view);
|
|
55
|
+
};
|
|
56
|
+
}, [desk, online]);
|
|
57
|
+
}
|
|
27
58
|
/** A space as the picker says it: Personal, or the space's name. */
|
|
28
59
|
export const spaceName = (p) => p.kind === "personal" ? "Personal" : p.name;
|
|
29
|
-
export function Workspace({ computer, spaces, desks, here, me, agents, call, fixed, compact, theirs }) {
|
|
60
|
+
export function Workspace({ computer, spaces, desks, here, me, agents, names, call, fixed, compact, theirs, kind, wake, previews = [], jobActions = [], }) {
|
|
30
61
|
const named = useMemo(() => new Map(spaces.map((p) => [p._id, p])), [spaces]);
|
|
31
62
|
const sorted = useMemo(() => [...desks].sort((a, b) => {
|
|
32
63
|
const [pa, pb] = [named.get(a.in), named.get(b.in)];
|
|
@@ -44,7 +75,9 @@ export function Workspace({ computer, spaces, desks, here, me, agents, call, fix
|
|
|
44
75
|
const latest = useRef(call);
|
|
45
76
|
latest.current = call;
|
|
46
77
|
const work = useMemo(() => workOn((action, input) => latest.current(action, input), deskId), [deskId]);
|
|
47
|
-
|
|
78
|
+
// A computer that sleeps isn't asked about its jobs while they don't show: asking is using it.
|
|
79
|
+
const jobs = useJobs(work, computer.online && !!deskId, tab === "jobs", !!kind);
|
|
80
|
+
useViewing(deskId, computer.online, latest);
|
|
48
81
|
const desk = sorted.find((d) => d._id === deskId);
|
|
49
82
|
const space = desk?.in ?? "";
|
|
50
83
|
const chosen = named.get(space);
|
|
@@ -81,11 +114,21 @@ export function Workspace({ computer, spaces, desks, here, me, agents, call, fix
|
|
|
81
114
|
? (_jsxs("div", { className: "computer-tabs", children: [opened.has("terminal")
|
|
82
115
|
? (_jsx("div", { hidden: tab !== "terminal", className: "computer-tab computer-tab-terminal", children: _jsx(TerminalTab, { computer: computer, ...(theirs ? { theirs } : {}), space: space, spaceName: chosen ? spaceName(chosen) : "this space", folder: folder, work: work, active: tab === "terminal" }) }))
|
|
83
116
|
: null, opened.has("jobs")
|
|
84
|
-
? (_jsx("div", { hidden: tab !== "jobs", className: "computer-tab", children: _jsx(JobsTab, { work: work, jobs: jobs, me: me, agents: agents, active: tab === "jobs"
|
|
117
|
+
? (_jsx("div", { hidden: tab !== "jobs", className: "computer-tab", children: _jsx(JobsTab, { work: work, jobs: jobs, me: me, agents: agents, names: names, active: tab === "jobs", served: {
|
|
118
|
+
call: (action, input) => latest.current(action, input),
|
|
119
|
+
space,
|
|
120
|
+
computer: computer._id,
|
|
121
|
+
...(desk ? { desk: desk._id } : {}),
|
|
122
|
+
...(path ? { folder: path } : {}),
|
|
123
|
+
previews: previewsAt(previews, computer._id, space),
|
|
124
|
+
actions: jobActions,
|
|
125
|
+
} }) }))
|
|
85
126
|
: null, opened.has("files")
|
|
86
127
|
? (_jsx("div", { hidden: tab !== "files", className: "computer-tab", children: _jsx(FilesTab, { work: work, folder: folder, computer: nameOf(computer) }) }))
|
|
87
128
|
: null] }, deskId))
|
|
88
|
-
:
|
|
129
|
+
: kind
|
|
130
|
+
? (_jsx(LazyView, { kind: kind.view, item: { _id: computer._id, desk: deskId, name: nameOf(computer) }, hints: { mode: "asleep", ...(wake ? { wake: true } : {}) }, fallback: _jsx(Skeleton, { height: compact ? 180 : 240, radius: "xl" }) }))
|
|
131
|
+
: _jsx(Offline, { name: nameOf(computer), theirs: theirs }) })] }));
|
|
89
132
|
}
|
|
90
133
|
/** How to bring it back; someone else's, who can. */
|
|
91
134
|
function Offline({ name, theirs }) {
|