copilotz 1.0.0-rc.5 → 1.0.0-rc.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +400 -0
- package/CHANGELOG.md +2587 -0
- package/README.md +288 -830
- package/hosts/terminal/contract.d.ts +1 -1
- package/hosts/terminal/host.js +13 -5
- package/hosts/web/assets.d.ts +14 -11
- package/hosts/web/assets.js +27 -18
- package/hosts/web/host-words.d.ts +1 -0
- package/hosts/web/host-words.js +24 -0
- package/hosts/web/host.d.ts +20 -4
- package/hosts/web/host.js +120 -39
- package/hosts/web/lazy.js +1 -1
- package/hosts/web/mod.d.ts +10 -7
- package/hosts/web/mod.js +15 -6
- package/hosts/web/node/bundle.d.ts +5 -0
- package/hosts/web/node/bundle.js +2 -2
- package/hosts/web/node/mod.d.ts +45 -19
- package/hosts/web/node/mod.js +45 -19
- package/hosts/web/node/serve.d.ts +57 -34
- package/hosts/web/node/serve.js +95 -31
- package/hosts/web/palette/palette.d.ts +2 -1
- package/hosts/web/palette/palette.js +36 -35
- package/hosts/web/palette/sources.js +1 -1
- package/hosts/web/palette/state.d.ts +18 -6
- package/hosts/web/palette/state.js +8 -0
- package/hosts/web/palette/words.d.ts +1 -0
- package/hosts/web/palette/words.js +23 -0
- package/hosts/web/part.d.ts +7 -1
- package/hosts/web/part.js +22 -5
- package/hosts/web/pt-br/about.d.ts +3 -0
- package/hosts/web/pt-br/about.js +21 -0
- package/hosts/web/pt-br/chat.d.ts +3 -0
- package/hosts/web/pt-br/chat.js +266 -0
- package/hosts/web/pt-br/host.d.ts +3 -0
- package/hosts/web/pt-br/host.js +18 -0
- package/hosts/web/pt-br/memory.d.ts +3 -0
- package/hosts/web/pt-br/memory.js +41 -0
- package/hosts/web/pt-br/mod.d.ts +23 -0
- package/hosts/web/pt-br/mod.js +39 -0
- package/hosts/web/pt-br/palette.d.ts +6 -0
- package/hosts/web/pt-br/palette.js +17 -0
- package/hosts/web/pt-br/shell.d.ts +3 -0
- package/hosts/web/pt-br/shell.js +47 -0
- package/hosts/web/pt-br/sign-in.d.ts +3 -0
- package/hosts/web/pt-br/sign-in.js +92 -0
- package/hosts/web/pt-br/spaces.d.ts +3 -0
- package/hosts/web/pt-br/spaces.js +271 -0
- package/hosts/web/pt-br/toolkit.d.ts +3 -0
- package/hosts/web/pt-br/toolkit.js +54 -0
- package/hosts/web/pt-br/usage.d.ts +3 -0
- package/hosts/web/pt-br/usage.js +156 -0
- package/hosts/web/pwa.js +1 -1
- package/hosts/web/screens.d.ts +17 -0
- package/hosts/web/screens.js +26 -0
- package/hosts/web/server.d.ts +46 -102
- package/hosts/web/server.js +182 -163
- package/hosts/web/session.d.ts +27 -1
- package/hosts/web/session.js +34 -0
- package/hosts/web/signin-email.d.ts +71 -0
- package/hosts/web/signin-email.js +416 -0
- package/hosts/web/signin-password.d.ts +19 -0
- package/hosts/web/signin-password.js +68 -0
- package/hosts/web/signin-words.d.ts +154 -0
- package/hosts/web/signin-words.js +177 -0
- package/hosts/web/signin.d.ts +30 -12
- package/hosts/web/signin.js +113 -56
- package/hosts/web/style.d.ts +1 -1
- package/hosts/web/style.js +10 -0
- package/hosts/web/surface.d.ts +20 -0
- package/hosts/web/surface.js +42 -0
- package/hosts/web/theme/css.d.ts +3 -2
- package/hosts/web/theme/css.js +10 -3
- package/hosts/web/theme/default.d.ts +1 -1
- package/hosts/web/theme/files/mod.d.ts +1 -1
- package/hosts/web/toolkit/ago.d.ts +0 -5
- package/hosts/web/toolkit/ago.js +17 -17
- package/hosts/web/toolkit/anchor.d.ts +3 -1
- package/hosts/web/toolkit/anchor.js +16 -3
- package/hosts/web/toolkit/audio-player.d.ts +1 -1
- package/hosts/web/toolkit/audio-player.js +12 -7
- package/hosts/web/toolkit/button.js +6 -0
- package/hosts/web/toolkit/code-block.js +4 -3
- package/hosts/web/toolkit/copy-button.js +8 -2
- package/hosts/web/toolkit/detail-value.js +11 -7
- package/hosts/web/toolkit/dialog.js +2 -1
- package/hosts/web/toolkit/drawer.d.ts +3 -1
- package/hosts/web/toolkit/drawer.js +7 -3
- package/hosts/web/toolkit/formula.js +3 -2
- package/hosts/web/toolkit/humanize.d.ts +0 -12
- package/hosts/web/toolkit/humanize.js +2 -1
- package/hosts/web/toolkit/icon-button.d.ts +6 -3
- package/hosts/web/toolkit/icon-button.js +11 -2
- package/hosts/web/toolkit/icon.d.ts +3 -0
- package/hosts/web/toolkit/icon.js +6 -0
- package/hosts/web/toolkit/inline-edit.js +2 -1
- package/hosts/web/toolkit/input.js +6 -0
- package/hosts/web/toolkit/long-text.js +2 -1
- package/hosts/web/toolkit/markdown/markdown.js +4 -3
- package/hosts/web/toolkit/rail-item.d.ts +39 -0
- package/hosts/web/toolkit/rail-item.js +47 -0
- package/hosts/web/toolkit/terminal.js +5 -4
- package/hosts/web/toolkit/time.js +4 -2
- package/hosts/web/toolkit/tooltip.d.ts +2 -2
- package/hosts/web/toolkit/tooltip.js +3 -1
- package/hosts/web/toolkit/words.d.ts +1 -0
- package/hosts/web/toolkit/words.js +60 -0
- package/hosts/web/update.js +2 -1
- package/hosts/web/widget.d.ts +31 -0
- package/hosts/web/widget.js +430 -0
- package/hosts/web/widgets.d.ts +43 -0
- package/hosts/web/widgets.js +118 -0
- package/hosts/web/words.d.ts +76 -0
- package/hosts/web/words.js +114 -0
- package/package.json +135 -16
- package/plugins/access/accounts/actions/callback.d.ts +0 -1
- package/plugins/access/accounts/actions/callback.js +20 -34
- 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 +8 -6
- 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 +2 -3
- package/plugins/access/accounts/collections/flow.d.ts +2 -2
- package/plugins/access/{directory/collections/org-host.d.ts → accounts/collections/model-key.d.ts} +16 -19
- package/plugins/access/accounts/collections/model-key.js +17 -0
- package/plugins/access/accounts/contract.d.ts +1 -1
- package/plugins/access/accounts/mod.d.ts +7 -2
- package/plugins/access/accounts/mod.js +20 -5
- package/plugins/access/accounts/resources/models.js +2 -0
- package/plugins/access/accounts/routes/callback.d.ts +10 -0
- package/plugins/access/accounts/routes/callback.js +33 -0
- package/plugins/access/accounts/shared/flow.js +1 -1
- package/plugins/access/accounts/shared/oauth.d.ts +2 -2
- package/plugins/access/accounts/shared/oauth.js +2 -2
- package/plugins/access/accounts/shared/renew.js +4 -1
- package/plugins/access/accounts/shared/rules.d.ts +4 -2
- package/plugins/access/accounts/shared/rules.js +20 -5
- package/plugins/access/accounts/shared/settings.js +2 -2
- package/plugins/access/accounts/web.js +3 -3
- 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 +58 -0
- package/plugins/access/contacts/actions/start.d.ts +1 -0
- package/plugins/access/contacts/actions/start.js +60 -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 +33 -0
- package/plugins/access/contacts/mod.js +64 -0
- package/plugins/access/contacts/views/contact.d.ts +8 -0
- package/plugins/access/contacts/views/contact.js +26 -0
- package/plugins/access/contacts/views/notes.d.ts +11 -0
- package/plugins/access/contacts/views/notes.js +34 -0
- package/plugins/access/contacts/web.d.ts +7 -0
- package/plugins/access/contacts/web.js +11 -0
- package/plugins/access/contract.d.ts +14 -0
- package/plugins/access/contract.js +12 -0
- package/plugins/access/dev/actions/sign-in.d.ts +1 -0
- package/plugins/access/dev/actions/sign-in.js +52 -0
- package/plugins/access/dev/mod.d.ts +17 -0
- package/plugins/access/dev/mod.js +32 -0
- package/plugins/access/dev/routes/sign-in.d.ts +8 -0
- package/plugins/access/dev/routes/sign-in.js +25 -0
- package/plugins/access/dev/shared/here.d.ts +4 -0
- package/plugins/access/dev/shared/here.js +32 -0
- package/plugins/access/dev/shared/nearby.d.ts +2 -0
- package/plugins/access/dev/shared/nearby.js +27 -0
- package/plugins/access/email/actions/code.d.ts +2 -0
- package/plugins/access/email/actions/code.js +106 -0
- package/plugins/access/email/actions/import.d.ts +1 -0
- package/plugins/access/email/actions/import.js +54 -0
- package/plugins/access/email/actions/invite.d.ts +5 -0
- package/plugins/access/email/actions/invite.js +143 -0
- package/plugins/access/email/actions/password-accounts.d.ts +3 -0
- package/plugins/access/email/actions/password-accounts.js +118 -0
- package/plugins/access/email/actions/password-sign-in.d.ts +2 -0
- package/plugins/access/email/actions/password-sign-in.js +84 -0
- package/plugins/access/email/actions/prune.d.ts +3 -0
- package/plugins/access/email/actions/prune.js +32 -0
- package/plugins/access/email/actions/reset.d.ts +2 -0
- package/plugins/access/email/actions/reset.js +98 -0
- package/plugins/access/email/actions/send.d.ts +1 -0
- package/plugins/access/email/actions/send.js +95 -0
- package/plugins/access/email/actions/sign-in.d.ts +1 -0
- package/plugins/access/email/actions/sign-in.js +70 -0
- package/plugins/access/email/actions/sign-up.d.ts +4 -0
- package/plugins/access/email/actions/sign-up.js +105 -0
- package/plugins/access/email/adapters/console.d.ts +8 -0
- package/plugins/access/email/adapters/console.js +16 -0
- package/plugins/access/email/adapters/resend.d.ts +9 -0
- package/plugins/access/email/adapters/resend.js +40 -0
- package/plugins/access/email/adapters/smtp.d.ts +10 -0
- package/plugins/access/email/adapters/smtp.js +16 -0
- package/plugins/access/email/collections/code.d.ts +118 -0
- package/plugins/access/email/collections/code.js +39 -0
- package/plugins/access/email/collections/login.d.ts +78 -0
- package/plugins/access/email/collections/login.js +28 -0
- package/plugins/access/email/collections/password-login.d.ts +70 -0
- package/plugins/access/email/collections/password-login.js +26 -0
- package/plugins/access/email/collections/rate.d.ts +51 -0
- package/plugins/access/email/collections/rate.js +14 -0
- package/plugins/access/email/contract.d.ts +207 -0
- package/plugins/access/email/contract.js +8 -0
- package/plugins/access/email/mod.d.ts +75 -0
- package/plugins/access/email/mod.js +181 -0
- package/plugins/access/email/password.d.ts +38 -0
- package/plugins/access/email/password.js +63 -0
- package/plugins/access/email/resources/messages.d.ts +9 -0
- package/plugins/access/email/resources/messages.js +64 -0
- package/plugins/access/email/routes/password.d.ts +13 -0
- package/plugins/access/email/routes/password.js +8 -0
- package/plugins/access/email/routes/sign-in.d.ts +38 -0
- package/plugins/access/email/routes/sign-in.js +31 -0
- package/plugins/access/email/shared/addresses.d.ts +13 -0
- package/plugins/access/email/shared/addresses.js +16 -0
- package/plugins/access/email/shared/bcrypt.d.ts +7 -0
- package/plugins/access/email/shared/bcrypt.js +138 -0
- package/plugins/access/email/shared/codes.d.ts +41 -0
- package/plugins/access/email/shared/codes.js +90 -0
- package/plugins/access/email/shared/identifiers.d.ts +8 -0
- package/plugins/access/email/shared/identifiers.js +22 -0
- package/plugins/access/email/shared/inputs.d.ts +37 -0
- package/plugins/access/email/shared/inputs.js +43 -0
- package/plugins/access/email/shared/limits.d.ts +54 -0
- package/plugins/access/email/shared/limits.js +71 -0
- package/plugins/access/email/shared/mail.d.ts +20 -0
- package/plugins/access/email/shared/mail.js +30 -0
- package/plugins/access/email/shared/mime.d.ts +24 -0
- package/plugins/access/email/shared/mime.js +153 -0
- package/plugins/access/email/shared/password.d.ts +18 -0
- package/plugins/access/email/shared/password.js +91 -0
- package/plugins/access/email/shared/people.d.ts +35 -0
- package/plugins/access/email/shared/people.js +55 -0
- package/plugins/access/email/shared/pi.d.ts +7 -0
- package/plugins/access/email/shared/pi.js +101 -0
- package/plugins/access/email/shared/settings.d.ts +33 -0
- package/plugins/access/email/shared/settings.js +41 -0
- package/plugins/access/email/shared/smtp.d.ts +22 -0
- package/plugins/access/email/shared/smtp.js +160 -0
- package/plugins/access/email/shared/step.d.ts +27 -0
- package/plugins/access/email/shared/step.js +87 -0
- package/plugins/access/google/actions/sign-in.js +5 -2
- package/plugins/access/google/adapters/keys.d.ts +4 -4
- package/plugins/access/google/adapters/keys.js +2 -2
- package/plugins/access/google/mod.d.ts +4 -2
- package/plugins/access/google/mod.js +6 -2
- package/plugins/access/google/routes/sign-in.d.ts +12 -0
- package/plugins/access/google/routes/sign-in.js +36 -0
- package/plugins/access/identity/actions/person.d.ts +7 -0
- package/plugins/access/identity/actions/person.js +38 -2
- package/plugins/access/identity/actions/session.js +10 -6
- package/plugins/access/identity/collections/credential.d.ts +9 -19
- package/plugins/access/identity/collections/credential.js +9 -24
- package/plugins/access/identity/collections/person.d.ts +9 -0
- package/plugins/access/identity/collections/person.js +2 -0
- package/plugins/access/identity/contract.d.ts +16 -2
- package/plugins/access/identity/contract.js +18 -1
- package/plugins/access/identity/mod.d.ts +16 -7
- package/plugins/access/identity/mod.js +43 -18
- package/plugins/access/identity/routes/session.d.ts +17 -0
- package/plugins/access/identity/routes/session.js +35 -0
- package/plugins/access/mod.d.ts +28 -6
- package/plugins/access/mod.js +9 -3
- 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 +6 -6
- package/plugins/access/spaces/actions/create.js +17 -5
- 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.d.ts +6 -0
- package/plugins/access/spaces/actions/member.js +131 -46
- package/plugins/access/spaces/actions/org.d.ts +3 -2
- package/plugins/access/spaces/actions/org.js +26 -17
- package/plugins/access/spaces/actions/personal.js +12 -5
- package/plugins/access/spaces/actions/rename.js +8 -5
- package/plugins/access/spaces/actions/request.js +8 -13
- package/plugins/access/spaces/collections/invitation.js +7 -5
- package/plugins/access/spaces/collections/member.d.ts +31 -3
- package/plugins/access/spaces/collections/member.js +11 -2
- 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 +10 -1
- package/plugins/access/spaces/collections/space.js +35 -4
- package/plugins/access/spaces/contract.d.ts +68 -7
- package/plugins/access/spaces/contract.js +3 -0
- package/plugins/access/spaces/mod.d.ts +27 -7
- package/plugins/access/spaces/mod.js +45 -14
- 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 +15 -5
- 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/audience.d.ts +51 -0
- package/plugins/access/spaces/shared/audience.js +113 -0
- package/plugins/access/spaces/shared/can.d.ts +46 -0
- package/plugins/access/spaces/shared/can.js +76 -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 +24 -10
- package/plugins/access/spaces/shared/labels.js +79 -20
- package/plugins/access/spaces/shared/managers.d.ts +2 -1
- package/plugins/access/spaces/shared/managers.js +4 -4
- package/plugins/access/spaces/shared/names.d.ts +70 -0
- package/plugins/access/spaces/shared/names.js +105 -0
- package/plugins/access/spaces/shared/personal.d.ts +3 -2
- package/plugins/access/spaces/shared/personal.js +5 -3
- 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 +115 -9
- package/plugins/access/spaces/shared/reach.js +363 -25
- package/plugins/access/spaces/shared/rules.d.ts +29 -10
- package/plugins/access/spaces/shared/rules.js +127 -18
- package/plugins/access/spaces/shared/seat.d.ts +15 -0
- package/plugins/access/spaces/shared/seat.js +44 -0
- package/plugins/access/spaces/terminal.js +1 -1
- package/plugins/access/spaces/views/elsewhere.d.ts +9 -4
- package/plugins/access/spaces/views/elsewhere.js +32 -8
- package/plugins/access/spaces/views/web/agents.d.ts +6 -1
- package/plugins/access/spaces/views/web/agents.js +21 -21
- package/plugins/access/spaces/views/web/header.d.ts +3 -1
- package/plugins/access/spaces/views/web/header.js +26 -25
- package/plugins/access/spaces/views/web/invitation.d.ts +3 -1
- package/plugins/access/spaces/views/web/invitation.js +13 -10
- package/plugins/access/spaces/views/web/invitations.d.ts +3 -1
- package/plugins/access/spaces/views/web/invitations.js +12 -3
- package/plugins/access/spaces/views/web/invite-dialog.d.ts +2 -2
- package/plugins/access/spaces/views/web/invite-dialog.js +6 -5
- package/plugins/access/spaces/views/web/invite.js +6 -5
- package/plugins/access/spaces/views/web/invited.js +4 -1
- package/plugins/access/spaces/views/web/inviting.js +11 -6
- package/plugins/access/spaces/views/web/members.d.ts +4 -1
- package/plugins/access/spaces/views/web/members.js +65 -23
- package/plugins/access/spaces/views/web/new-space.js +4 -3
- package/plugins/access/spaces/views/web/not-here.js +12 -16
- package/plugins/access/spaces/views/web/org-about.js +21 -18
- package/plugins/access/spaces/views/web/org-members.d.ts +1 -1
- package/plugins/access/spaces/views/web/org-members.js +34 -27
- package/plugins/access/spaces/views/web/palette.js +44 -33
- package/plugins/access/spaces/views/web/panel.d.ts +3 -2
- package/plugins/access/spaces/views/web/panel.js +36 -19
- package/plugins/access/spaces/views/web/pending.d.ts +3 -1
- package/plugins/access/spaces/views/web/pending.js +10 -7
- package/plugins/access/spaces/views/web/pick.js +10 -6
- package/plugins/access/spaces/views/web/sections.d.ts +31 -0
- package/plugins/access/spaces/views/web/sections.js +23 -0
- package/plugins/access/spaces/views/web/settings.js +26 -29
- package/plugins/access/spaces/views/web/space.d.ts +4 -2
- package/plugins/access/spaces/views/web/space.js +31 -14
- package/plugins/access/spaces/views/web/spaces.d.ts +3 -1
- package/plugins/access/spaces/views/web/spaces.js +12 -3
- package/plugins/access/spaces/views/web/steps.js +19 -20
- package/plugins/access/spaces/views/web/style.d.ts +1 -1
- package/plugins/access/spaces/views/web/style.js +47 -0
- package/plugins/access/spaces/views/web/tabs.d.ts +18 -6
- package/plugins/access/spaces/views/web/tabs.js +26 -9
- package/plugins/access/spaces/views/web/tree.d.ts +24 -1
- package/plugins/access/spaces/views/web/tree.js +64 -25
- package/plugins/access/spaces/views/web/who.d.ts +38 -22
- package/plugins/access/spaces/views/web/who.js +80 -28
- package/plugins/access/spaces/views/web/words.d.ts +1 -0
- package/plugins/access/spaces/views/web/words.js +290 -0
- package/plugins/access/spaces/views/where.d.ts +4 -2
- package/plugins/access/spaces/views/where.js +18 -3
- package/plugins/access/spaces/web.d.ts +3 -0
- package/plugins/access/spaces/web.js +73 -22
- package/plugins/access/web.d.ts +1 -0
- package/plugins/access/web.js +1 -0
- package/plugins/agents/chat/actions/approve.js +109 -0
- package/plugins/agents/chat/actions/attach.d.ts +3 -0
- package/plugins/agents/chat/actions/attach.js +92 -0
- package/plugins/agents/chat/actions/erase.d.ts +1 -0
- package/plugins/agents/chat/actions/erase.js +47 -0
- package/plugins/agents/chat/actions/forget-grant.d.ts +1 -0
- package/plugins/agents/chat/actions/forget-grant.js +16 -0
- package/plugins/agents/chat/actions/fork.js +2 -2
- package/plugins/agents/chat/actions/import.d.ts +1 -0
- package/plugins/agents/chat/actions/import.js +244 -0
- package/plugins/agents/chat/actions/move.js +15 -21
- package/plugins/agents/chat/actions/notes.d.ts +1 -0
- package/plugins/agents/chat/actions/notes.js +48 -0
- package/plugins/agents/chat/actions/open.d.ts +1 -0
- package/plugins/agents/chat/actions/open.js +49 -0
- package/plugins/agents/chat/actions/prune.d.ts +3 -0
- package/plugins/agents/chat/actions/prune.js +20 -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 +165 -0
- package/plugins/agents/chat/actions/send.d.ts +10 -0
- package/plugins/agents/chat/actions/send.js +240 -68
- 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/actions/unmark.d.ts +1 -0
- package/plugins/agents/chat/actions/unmark.js +100 -0
- package/plugins/agents/chat/collections/approval.d.ts +307 -0
- package/plugins/agents/chat/collections/approval.js +107 -0
- package/plugins/agents/chat/collections/file.d.ts +80 -3
- package/plugins/agents/chat/collections/file.js +67 -7
- package/plugins/{compute/computers → agents/chat}/collections/grant.d.ts +37 -23
- package/plugins/agents/chat/collections/grant.js +47 -0
- package/plugins/agents/chat/collections/intent.d.ts +183 -0
- package/plugins/agents/chat/collections/intent.js +73 -0
- package/plugins/agents/chat/collections/live.d.ts +14 -3
- package/plugins/agents/chat/collections/live.js +11 -1
- package/plugins/agents/chat/collections/message.d.ts +280 -14
- package/plugins/agents/chat/collections/message.js +122 -14
- 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 +81 -2
- package/plugins/agents/chat/collections/thread.js +65 -4
- package/plugins/agents/chat/collections/wait.d.ts +15 -6
- package/plugins/agents/chat/collections/wait.js +4 -2
- package/plugins/agents/chat/contract.d.ts +53 -10
- package/plugins/agents/chat/contract.js +37 -0
- package/plugins/agents/chat/mod.d.ts +82 -9
- package/plugins/agents/chat/mod.js +189 -18
- package/plugins/agents/chat/processors/failed.js +30 -6
- package/plugins/agents/chat/processors/turn.d.ts +1 -1
- package/plugins/agents/chat/processors/turn.js +290 -59
- package/plugins/agents/chat/resources/commands.d.ts +5 -0
- package/plugins/agents/chat/resources/commands.js +101 -22
- package/plugins/agents/chat/resources/tools.d.ts +3 -0
- package/plugins/agents/chat/resources/tools.js +136 -0
- package/plugins/agents/chat/routes/files.d.ts +39 -0
- package/plugins/agents/chat/routes/files.js +169 -0
- package/plugins/agents/chat/shared/agents.d.ts +17 -2
- package/plugins/agents/chat/shared/agents.js +22 -4
- package/plugins/agents/chat/shared/asks.d.ts +81 -0
- package/plugins/agents/chat/shared/asks.js +203 -0
- package/plugins/agents/chat/shared/contact-send.d.ts +32 -0
- package/plugins/agents/chat/shared/contact-send.js +18 -0
- package/plugins/agents/chat/shared/delivery.d.ts +34 -4
- package/plugins/agents/chat/shared/delivery.js +212 -11
- package/plugins/agents/chat/shared/lineage.d.ts +31 -5
- package/plugins/agents/chat/shared/lineage.js +65 -21
- package/plugins/agents/chat/shared/live.d.ts +4 -2
- package/plugins/agents/chat/shared/live.js +2 -1
- package/plugins/agents/chat/shared/notes.d.ts +28 -0
- package/plugins/agents/chat/shared/notes.js +35 -0
- 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 +12 -2
- package/plugins/agents/chat/shared/send.js +191 -4
- package/plugins/agents/chat/shared/share.d.ts +48 -0
- package/plugins/agents/chat/shared/share.js +67 -0
- 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 +197 -13
- package/plugins/agents/chat/shared/types.js +3 -0
- package/plugins/agents/chat/shared/unmark.d.ts +145 -0
- package/plugins/agents/chat/shared/unmark.js +237 -0
- package/plugins/agents/chat/shared/where.d.ts +20 -0
- package/plugins/agents/chat/shared/where.js +18 -0
- package/plugins/agents/chat/terminal.d.ts +2 -1
- package/plugins/agents/chat/terminal.js +12 -8
- package/plugins/agents/chat/views/asked.d.ts +35 -0
- package/plugins/agents/chat/views/asked.js +89 -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/held.d.ts +10 -0
- package/plugins/agents/chat/views/held.js +10 -0
- package/plugins/agents/chat/views/history.d.ts +4 -0
- package/plugins/agents/chat/views/history.js +1 -1
- package/plugins/agents/chat/views/message.d.ts +9 -2
- package/plugins/agents/chat/views/message.js +59 -15
- 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/asks.d.ts +14 -0
- package/plugins/agents/chat/views/terminal/asks.js +35 -0
- package/plugins/agents/chat/views/terminal/author.js +5 -1
- package/plugins/agents/chat/views/terminal/conversation.js +2 -2
- package/plugins/agents/chat/views/terminal/message.js +9 -9
- package/plugins/agents/chat/views/terminal/moving.d.ts +11 -0
- package/plugins/agents/chat/views/terminal/moving.js +27 -0
- package/plugins/agents/chat/views/web/asking.d.ts +15 -0
- package/plugins/agents/chat/views/web/asking.js +50 -0
- package/plugins/agents/chat/views/web/asks.d.ts +42 -0
- package/plugins/agents/chat/views/web/asks.js +170 -0
- package/plugins/agents/chat/views/web/attach.d.ts +9 -3
- package/plugins/agents/chat/views/web/attach.js +17 -6
- package/plugins/agents/chat/views/web/before-send.d.ts +9 -0
- package/plugins/agents/chat/views/web/before-send.js +7 -0
- package/plugins/agents/chat/views/web/chats.js +9 -6
- package/plugins/agents/chat/views/web/composer.d.ts +58 -4
- package/plugins/agents/chat/views/web/composer.js +111 -31
- package/plugins/agents/chat/views/web/conversation.d.ts +63 -2
- package/plugins/agents/chat/views/web/conversation.js +156 -51
- package/plugins/agents/chat/views/web/download.js +2 -1
- package/plugins/agents/chat/views/web/handed.d.ts +17 -0
- package/plugins/agents/chat/views/web/handed.js +47 -0
- package/plugins/agents/chat/views/web/header.d.ts +12 -7
- package/plugins/agents/chat/views/web/header.js +9 -8
- 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 +13 -17
- package/plugins/agents/chat/views/web/lane.d.ts +11 -0
- package/plugins/agents/chat/views/web/lane.js +44 -0
- package/plugins/agents/chat/views/web/listed.d.ts +9 -1
- package/plugins/agents/chat/views/web/listed.js +22 -8
- package/plugins/agents/chat/views/web/live.js +7 -6
- package/plugins/agents/chat/views/web/message.d.ts +16 -3
- package/plugins/agents/chat/views/web/message.js +65 -26
- package/plugins/agents/chat/views/web/missing.js +2 -1
- package/plugins/agents/chat/views/web/move.d.ts +7 -2
- package/plugins/agents/chat/views/web/move.js +44 -12
- package/plugins/agents/chat/views/web/moving.d.ts +21 -0
- package/plugins/agents/chat/views/web/moving.js +46 -0
- package/plugins/agents/chat/views/web/new-thread.d.ts +5 -1
- package/plugins/agents/chat/views/web/new-thread.js +6 -3
- package/plugins/agents/chat/views/web/notes-lane.d.ts +66 -0
- package/plugins/agents/chat/views/web/notes-lane.js +57 -0
- package/plugins/agents/chat/views/web/notes.d.ts +16 -0
- package/plugins/agents/chat/views/web/notes.js +36 -0
- package/plugins/agents/chat/views/web/over.d.ts +17 -11
- package/plugins/agents/chat/views/web/over.js +18 -10
- package/plugins/agents/chat/views/web/palette.js +21 -15
- package/plugins/agents/chat/views/web/picture.js +2 -1
- package/plugins/agents/chat/views/web/plain.d.ts +8 -1
- package/plugins/agents/chat/views/web/plain.js +18 -1
- package/plugins/agents/chat/views/web/queued.js +3 -3
- package/plugins/agents/chat/views/web/recent.js +4 -3
- package/plugins/agents/chat/views/web/record.js +10 -12
- package/plugins/agents/chat/views/web/recorder.js +10 -9
- package/plugins/agents/chat/views/web/retrying.js +5 -4
- package/plugins/agents/chat/views/web/send-on.d.ts +29 -0
- package/plugins/agents/chat/views/web/send-on.js +68 -0
- package/plugins/agents/chat/views/web/steps.js +8 -5
- package/plugins/agents/chat/views/web/style.d.ts +5 -3
- package/plugins/agents/chat/views/web/style.js +177 -11
- package/plugins/agents/chat/views/web/transcript.js +3 -2
- package/plugins/agents/chat/views/web/voice-failed.js +2 -1
- package/plugins/agents/chat/views/web/voice-note.js +2 -1
- package/plugins/agents/chat/views/web/who.js +4 -1
- package/plugins/agents/chat/views/web/words.d.ts +1 -0
- package/plugins/agents/chat/views/web/words.js +315 -0
- package/plugins/agents/chat/web.d.ts +33 -4
- package/plugins/agents/chat/web.js +60 -15
- package/plugins/agents/contract.d.ts +12 -0
- package/plugins/agents/contract.js +12 -0
- package/plugins/agents/history/collections/outline.d.ts +102 -9
- package/plugins/agents/history/collections/outline.js +26 -4
- package/plugins/agents/history/collections/summary.d.ts +16 -4
- package/plugins/agents/history/collections/summary.js +8 -1
- package/plugins/agents/history/mod.d.ts +21 -9
- package/plugins/agents/history/mod.js +26 -13
- package/plugins/agents/history/processors/compact.d.ts +7 -1
- package/plugins/agents/history/processors/compact.js +235 -81
- 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 +41 -16
- package/plugins/agents/history/shared/lines.d.ts +21 -5
- package/plugins/agents/history/shared/lines.js +39 -3
- package/plugins/agents/history/shared/settings.d.ts +5 -1
- package/plugins/agents/history/shared/summarized.d.ts +3 -0
- package/plugins/agents/history/shared/summarized.js +3 -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 +6 -3
- package/plugins/agents/history/views/history.js +41 -14
- package/plugins/agents/history/views/since.d.ts +6 -3
- package/plugins/agents/history/views/since.js +10 -2
- package/plugins/agents/history/views/summary.d.ts +4 -1
- package/plugins/agents/history/views/summary.js +5 -2
- package/plugins/agents/memory/actions/import.d.ts +1 -0
- package/plugins/agents/memory/actions/import.js +88 -0
- package/plugins/agents/memory/collections/memory.d.ts +2 -2
- package/plugins/agents/memory/collections/memory.js +32 -6
- package/plugins/agents/memory/mod.d.ts +21 -8
- package/plugins/agents/memory/mod.js +40 -13
- package/plugins/agents/memory/processors/extract.d.ts +11 -2
- package/plugins/agents/memory/processors/extract.js +86 -18
- package/plugins/agents/memory/resources/commands.js +1 -1
- package/plugins/agents/memory/resources/context.d.ts +12 -1
- package/plugins/agents/memory/resources/context.js +10 -2
- package/plugins/agents/memory/resources/tools.js +76 -16
- package/plugins/agents/memory/shared/scope.d.ts +35 -6
- package/plugins/agents/memory/shared/scope.js +84 -19
- package/plugins/agents/memory/shared/search.d.ts +5 -2
- package/plugins/agents/memory/shared/search.js +40 -14
- package/plugins/agents/memory/shared/settings.d.ts +17 -4
- package/plugins/agents/memory/shared/settings.js +15 -4
- package/plugins/agents/memory/terminal.js +1 -1
- package/plugins/agents/memory/views/context.d.ts +4 -7
- package/plugins/agents/memory/views/context.js +92 -44
- 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 +12 -8
- package/plugins/agents/memory/views/web/list.d.ts +3 -1
- package/plugins/agents/memory/views/web/list.js +30 -18
- package/plugins/agents/memory/views/web/memories.js +9 -4
- package/plugins/agents/memory/views/web/move.js +4 -3
- package/plugins/agents/memory/views/web/palette.js +8 -5
- package/plugins/agents/memory/views/web/pick.js +15 -10
- package/plugins/agents/memory/views/web/words.d.ts +1 -0
- package/plugins/agents/memory/views/web/words.js +48 -0
- package/plugins/agents/memory/web.js +12 -4
- package/plugins/agents/mod.d.ts +9 -5
- package/plugins/agents/mod.js +9 -5
- 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 +77 -0
- package/plugins/agents/openapi/mod.d.ts +5 -0
- package/plugins/agents/openapi/mod.js +75 -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 +128 -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 +20 -8
- 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 +23 -3
- package/plugins/agents/routines/resources/tools.js +103 -29
- package/plugins/agents/routines/shared/fire.d.ts +7 -2
- package/plugins/agents/routines/shared/fire.js +33 -15
- package/plugins/agents/routines/shared/routines.d.ts +18 -9
- package/plugins/agents/routines/shared/routines.js +33 -19
- package/plugins/agents/routines/shared/schedule.d.ts +6 -1
- 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 +6 -6
- 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.d.ts +1 -1
- package/plugins/agents/skills/collections/skill.js +4 -4
- package/plugins/agents/skills/mod.js +14 -5
- package/plugins/agents/skills/resources/tools.js +1 -1
- package/plugins/agents/skills/shared/skills.d.ts +2 -2
- package/plugins/agents/skills/shared/skills.js +3 -6
- package/plugins/agents/skills/shared/write.d.ts +2 -3
- package/plugins/agents/skills/shared/write.js +2 -1
- package/plugins/agents/skills/views/context.d.ts +8 -4
- package/plugins/agents/skills/views/context.js +9 -4
- package/plugins/agents/skills/views/web/page.js +7 -3
- package/plugins/agents/skills/web.js +8 -6
- package/plugins/agents/web.d.ts +0 -1
- package/plugins/agents/web.js +0 -1
- package/plugins/agents/webtools/adapters/duckduckgo.d.ts +21 -0
- package/plugins/agents/webtools/adapters/duckduckgo.js +168 -0
- package/plugins/agents/webtools/adapters/fake.d.ts +3 -0
- package/plugins/agents/webtools/adapters/fake.js +8 -0
- package/plugins/agents/webtools/adapters/serper.d.ts +2 -0
- package/plugins/agents/webtools/adapters/serper.js +30 -0
- package/plugins/agents/webtools/contract.d.ts +72 -0
- package/plugins/agents/webtools/contract.js +1 -0
- package/plugins/agents/webtools/mod.d.ts +55 -0
- package/plugins/agents/webtools/mod.js +75 -0
- package/plugins/agents/webtools/resources/tools.d.ts +2 -0
- package/plugins/agents/webtools/resources/tools.js +82 -0
- package/plugins/agents/webtools/shared/address.d.ts +9 -0
- package/plugins/agents/webtools/shared/address.js +112 -0
- package/plugins/agents/webtools/shared/read.d.ts +11 -0
- package/plugins/agents/webtools/shared/read.js +129 -0
- package/plugins/agents/webtools/shared/search.d.ts +15 -0
- package/plugins/agents/webtools/shared/search.js +54 -0
- package/plugins/agents/webtools/shared/settings.d.ts +20 -0
- package/plugins/agents/webtools/shared/settings.js +21 -0
- package/plugins/agents/webtools/shared/text.d.ts +15 -0
- package/plugins/agents/webtools/shared/text.js +88 -0
- package/plugins/billing/mod.d.ts +4 -1
- package/plugins/billing/mod.js +4 -1
- 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 +16 -4
- package/plugins/billing/usage/actions/org.d.ts +29 -1
- package/plugins/billing/usage/actions/org.js +24 -67
- package/plugins/billing/usage/actions/quote.d.ts +6 -0
- package/plugins/billing/usage/actions/quote.js +47 -3
- package/plugins/billing/usage/actions/rerate.js +1 -0
- 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 +4 -4
- package/plugins/billing/usage/collections/rollup.js +8 -4
- package/plugins/billing/usage/collections/usage.d.ts +7 -6
- package/plugins/billing/usage/collections/usage.js +16 -12
- package/plugins/billing/usage/mod.d.ts +20 -7
- package/plugins/billing/usage/mod.js +29 -10
- package/plugins/billing/usage/shared/categories.d.ts +24 -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 +10 -3
- package/plugins/billing/usage/shared/rate.js +18 -3
- 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 +19 -5
- package/plugins/billing/usage/shared/totals.js +45 -10
- package/plugins/billing/usage/shared/use.d.ts +1 -2
- package/plugins/billing/usage/shared/use.js +6 -8
- package/plugins/billing/usage/terminal.js +1 -1
- package/plugins/billing/usage/views/web/chart.d.ts +25 -12
- package/plugins/billing/usage/views/web/chart.js +72 -61
- package/plugins/billing/usage/views/web/numbers.d.ts +77 -53
- package/plugins/billing/usage/views/web/numbers.js +221 -84
- package/plugins/billing/usage/views/web/org.d.ts +122 -12
- package/plugins/billing/usage/views/web/org.js +571 -222
- package/plugins/billing/usage/views/web/style.d.ts +9 -8
- package/plugins/billing/usage/views/web/style.js +147 -141
- package/plugins/billing/usage/views/web/words.d.ts +1 -0
- package/plugins/billing/usage/views/web/words.js +173 -0
- package/plugins/billing/usage/web.d.ts +8 -6
- package/plugins/billing/usage/web.js +9 -7
- package/plugins/billing/web.d.ts +2 -0
- package/plugins/billing/web.js +2 -0
- package/plugins/compute/computers/actions/admit.js +2 -0
- package/plugins/compute/computers/actions/allow-origin.d.ts +5 -0
- package/plugins/compute/computers/actions/allow-origin.js +47 -0
- package/plugins/compute/computers/actions/allowed.js +6 -2
- package/plugins/compute/computers/actions/code.js +6 -4
- package/plugins/compute/computers/actions/default.js +4 -8
- package/plugins/compute/computers/actions/enrollment.js +2 -0
- package/plugins/compute/computers/actions/env.d.ts +3 -0
- package/plugins/compute/computers/actions/env.js +137 -0
- package/plugins/compute/computers/actions/forget.js +7 -4
- 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 +1 -4
- package/plugins/compute/computers/actions/preview.js +51 -25
- package/plugins/compute/computers/actions/provision.js +5 -3
- package/plugins/compute/computers/actions/rename.js +2 -2
- package/plugins/compute/computers/actions/scope.js +30 -10
- package/plugins/compute/computers/actions/share.js +5 -4
- package/plugins/compute/computers/actions/unshare.js +5 -8
- package/plugins/compute/computers/actions/upgrade-asks.d.ts +1 -0
- package/plugins/compute/computers/actions/upgrade-asks.js +29 -0
- package/plugins/compute/computers/actions/view.js +2 -2
- package/plugins/compute/computers/actions/work.js +17 -4
- package/plugins/compute/computers/collections/computer.d.ts +46 -0
- package/plugins/compute/computers/collections/computer.js +12 -2
- package/plugins/compute/computers/collections/desk.d.ts +40 -2
- package/plugins/compute/computers/collections/desk.js +10 -4
- package/plugins/compute/computers/collections/enrollment.d.ts +1 -1
- 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/preview.d.ts +4 -2
- package/plugins/compute/computers/collections/preview.js +10 -4
- package/plugins/compute/computers/contract.d.ts +18 -5
- package/plugins/compute/computers/contract.js +7 -4
- package/plugins/compute/computers/mod.d.ts +11 -5
- package/plugins/compute/computers/mod.js +49 -17
- package/plugins/compute/computers/processors/left.d.ts +8 -0
- package/plugins/compute/computers/processors/left.js +31 -0
- package/plugins/compute/computers/program/browser/actions.d.ts +6 -0
- package/plugins/compute/computers/program/browser/actions.js +256 -0
- package/plugins/compute/computers/program/browser/async.d.ts +27 -0
- package/plugins/compute/computers/program/browser/async.js +65 -0
- package/plugins/compute/computers/program/browser/batch.d.ts +2 -0
- package/plugins/compute/computers/program/browser/batch.js +46 -0
- package/plugins/compute/computers/program/browser/cdp.d.ts +40 -0
- package/plugins/compute/computers/program/browser/cdp.js +151 -0
- package/plugins/compute/computers/program/browser/chrome.d.ts +64 -0
- package/plugins/compute/computers/program/browser/chrome.js +249 -0
- package/plugins/compute/computers/program/browser/control.d.ts +18 -0
- package/plugins/compute/computers/program/browser/control.js +65 -0
- package/plugins/compute/computers/program/browser/live.d.ts +95 -0
- package/plugins/compute/computers/program/browser/live.js +345 -0
- package/plugins/compute/computers/program/browser/math.d.ts +8 -0
- package/plugins/compute/computers/program/browser/math.js +38 -0
- package/plugins/compute/computers/program/browser/mod.d.ts +32 -0
- package/plugins/compute/computers/program/browser/mod.js +202 -0
- package/plugins/compute/computers/program/browser/page.d.ts +56 -0
- package/plugins/compute/computers/program/browser/page.js +346 -0
- package/plugins/compute/computers/program/browser/profile.d.ts +14 -0
- package/plugins/compute/computers/program/browser/profile.js +70 -0
- package/plugins/compute/computers/program/browser/refs.d.ts +35 -0
- package/plugins/compute/computers/program/browser/refs.js +79 -0
- package/plugins/compute/computers/program/browser/schema.d.ts +73 -0
- package/plugins/compute/computers/program/browser/schema.js +73 -0
- package/plugins/compute/computers/program/browser/session.d.ts +62 -0
- package/plugins/compute/computers/program/browser/session.js +294 -0
- package/plugins/compute/computers/program/browser/storage.d.ts +8 -0
- package/plugins/compute/computers/program/browser/storage.js +70 -0
- package/plugins/compute/computers/program/browser/types.d.ts +93 -0
- package/plugins/compute/computers/program/browser/types.js +1 -0
- package/plugins/compute/computers/program/computer.d.ts +58 -0
- package/plugins/compute/computers/program/computer.js +285 -0
- package/plugins/compute/computers/program/mod.d.ts +8 -0
- package/plugins/compute/computers/program/mod.js +8 -0
- package/plugins/compute/computers/program/pool.d.ts +39 -0
- package/plugins/compute/computers/program/pool.js +335 -0
- package/plugins/compute/computers/program/state.d.ts +69 -0
- package/plugins/compute/computers/program/state.js +198 -0
- package/plugins/compute/computers/program/update.d.ts +17 -0
- package/plugins/compute/computers/program/update.js +144 -0
- package/plugins/compute/computers/program/version.d.ts +1 -1
- package/plugins/compute/computers/program/version.js +1 -1
- package/plugins/compute/computers/program/workloads/answer.d.ts +13 -0
- package/plugins/compute/computers/program/workloads/answer.js +29 -0
- package/plugins/compute/computers/program/workloads/archive.d.ts +6 -0
- package/plugins/compute/computers/program/workloads/archive.js +128 -0
- package/plugins/compute/computers/program/workloads/browser.d.ts +16 -0
- package/plugins/compute/computers/program/workloads/browser.js +17 -0
- package/plugins/compute/computers/program/workloads/files.d.ts +13 -0
- package/plugins/compute/computers/program/workloads/files.js +236 -0
- package/plugins/compute/computers/program/workloads/http.d.ts +20 -0
- package/plugins/compute/computers/program/workloads/http.js +168 -0
- package/plugins/compute/computers/program/workloads/info.d.ts +8 -0
- package/plugins/compute/computers/program/workloads/info.js +22 -0
- package/plugins/compute/computers/program/workloads/jobs.d.ts +32 -0
- package/plugins/compute/computers/program/workloads/jobs.js +287 -0
- package/plugins/compute/computers/program/workloads/ports.d.ts +5 -0
- package/plugins/compute/computers/program/workloads/ports.js +160 -0
- package/plugins/compute/computers/program/workloads/processes.d.ts +23 -0
- package/plugins/compute/computers/program/workloads/processes.js +103 -0
- package/plugins/compute/computers/program/workloads/search.d.ts +23 -0
- package/plugins/compute/computers/program/workloads/search.js +170 -0
- package/plugins/compute/computers/program/workloads/shell.d.ts +21 -0
- package/plugins/compute/computers/program/workloads/shell.js +140 -0
- package/plugins/compute/computers/program/workloads/spaces.d.ts +13 -0
- package/plugins/compute/computers/program/workloads/spaces.js +47 -0
- package/plugins/compute/computers/program/workloads/streams.d.ts +20 -0
- package/plugins/compute/computers/program/workloads/streams.js +94 -0
- package/plugins/compute/computers/program/workloads/terminal.d.ts +26 -0
- package/plugins/compute/computers/program/workloads/terminal.js +384 -0
- package/plugins/compute/computers/resources/commands.d.ts +2 -3
- package/plugins/compute/computers/resources/commands.js +15 -52
- package/plugins/compute/computers/resources/downloads.js +11 -13
- package/plugins/compute/computers/resources/previews.d.ts +6 -25
- package/plugins/compute/computers/resources/previews.js +40 -18
- package/plugins/compute/computers/resources/tools.d.ts +11 -5
- package/plugins/compute/computers/resources/tools.js +118 -27
- package/plugins/compute/computers/shared/ask.d.ts +39 -6
- package/plugins/compute/computers/shared/ask.js +64 -43
- package/plugins/compute/computers/shared/desks.d.ts +1 -5
- package/plugins/compute/computers/shared/desks.js +3 -13
- package/plugins/compute/computers/shared/env.d.ts +20 -0
- package/plugins/compute/computers/shared/env.js +50 -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/pool.d.ts +45 -0
- package/plugins/compute/computers/shared/pool.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 +9 -3
- package/plugins/compute/computers/shared/settings.js +3 -0
- package/plugins/compute/computers/shared/upgrade.d.ts +42 -0
- package/plugins/compute/computers/shared/upgrade.js +44 -0
- package/plugins/compute/computers/shared/wake.d.ts +7 -5
- package/plugins/compute/computers/shared/wake.js +28 -11
- package/plugins/compute/computers/shared/where.d.ts +34 -7
- package/plugins/compute/computers/shared/where.js +86 -17
- package/plugins/compute/computers/shared/workloads.d.ts +4 -0
- package/plugins/compute/computers/terminal.d.ts +4 -3
- package/plugins/compute/computers/terminal.js +5 -6
- package/plugins/compute/computers/views/context.d.ts +7 -6
- package/plugins/compute/computers/views/context.js +121 -49
- package/plugins/compute/computers/views/web/add.js +3 -1
- 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 +5 -2
- package/plugins/compute/computers/views/web/asked.js +2 -14
- package/plugins/compute/computers/views/web/asks.d.ts +14 -12
- package/plugins/compute/computers/views/web/asks.js +9 -58
- package/plugins/compute/computers/views/web/calls.js +5 -2
- package/plugins/compute/computers/views/web/computer.js +9 -1
- package/plugins/compute/computers/views/web/desks.d.ts +6 -3
- package/plugins/compute/computers/views/web/desks.js +22 -15
- 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 +7 -4
- package/plugins/compute/computers/views/web/jobs.js +28 -13
- package/plugins/compute/computers/views/web/kinds.d.ts +24 -2
- package/plugins/compute/computers/views/web/kinds.js +10 -0
- 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 +3 -1
- package/plugins/compute/computers/views/web/page.js +2 -2
- package/plugins/compute/computers/views/web/previews.d.ts +2 -7
- package/plugins/compute/computers/views/web/previews.js +0 -14
- package/plugins/compute/computers/views/web/routine-panel.d.ts +14 -0
- package/plugins/compute/computers/views/web/routine-panel.js +98 -0
- package/plugins/compute/computers/views/web/serve.d.ts +6 -4
- package/plugins/compute/computers/views/web/serve.js +12 -48
- package/plugins/compute/computers/views/web/space-tab.d.ts +1 -1
- package/plugins/compute/computers/views/web/space-tab.js +26 -7
- package/plugins/compute/computers/views/web/step.js +7 -1
- package/plugins/compute/computers/views/web/style.d.ts +6 -6
- package/plugins/compute/computers/views/web/style.js +87 -39
- package/plugins/compute/computers/views/web/workspace.d.ts +4 -2
- package/plugins/compute/computers/views/web/workspace.js +3 -2
- package/plugins/compute/computers/web.d.ts +15 -14
- package/plugins/compute/computers/web.js +44 -25
- package/plugins/compute/contract.d.ts +6 -0
- package/plugins/compute/contract.js +6 -0
- package/plugins/compute/mod.d.ts +3 -8
- package/plugins/compute/mod.js +3 -8
- package/plugins/compute/web.d.ts +2 -6
- package/plugins/compute/web.js +2 -6
- package/plugins/interfaces/api/actions/create.js +51 -26
- package/plugins/interfaces/api/actions/revoke.js +19 -9
- package/plugins/interfaces/api/collections/key.d.ts +127 -54
- package/plugins/interfaces/api/collections/key.js +41 -38
- package/plugins/interfaces/api/contract.d.ts +11 -11
- package/plugins/interfaces/api/contract.js +1 -1
- package/plugins/interfaces/api/mod.d.ts +18 -13
- package/plugins/interfaces/api/mod.js +24 -15
- package/plugins/interfaces/api/processors/left.d.ts +7 -0
- package/plugins/interfaces/api/processors/left.js +19 -0
- package/plugins/interfaces/api/resources/presets.d.ts +3 -2
- package/plugins/interfaces/api/resources/presets.js +6 -4
- package/plugins/interfaces/api/shared/actor.d.ts +23 -16
- package/plugins/interfaces/api/shared/actor.js +32 -22
- package/plugins/interfaces/api/shared/end.d.ts +9 -0
- package/plugins/interfaces/api/shared/end.js +10 -0
- package/plugins/interfaces/api/shared/rules.d.ts +7 -11
- package/plugins/interfaces/api/shared/rules.js +20 -24
- package/plugins/interfaces/api/views/web/create.d.ts +7 -5
- package/plugins/interfaces/api/views/web/create.js +38 -33
- package/plugins/interfaces/api/views/web/keys.d.ts +21 -4
- package/plugins/interfaces/api/views/web/keys.js +22 -19
- package/plugins/interfaces/api/views/web/members.d.ts +13 -0
- package/plugins/interfaces/api/views/web/members.js +35 -0
- package/plugins/interfaces/api/views/web/reference.d.ts +6 -6
- package/plugins/interfaces/api/views/web/reference.js +17 -7
- package/plugins/interfaces/api/views/web/snippet.d.ts +18 -13
- package/plugins/interfaces/api/views/web/snippet.js +27 -16
- package/plugins/interfaces/api/views/web/style.d.ts +4 -3
- package/plugins/interfaces/api/views/web/style.js +31 -2
- package/plugins/interfaces/api/web.d.ts +5 -4
- package/plugins/interfaces/api/web.js +11 -6
- package/plugins/interfaces/contract.d.ts +16 -0
- package/plugins/interfaces/contract.js +14 -0
- 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 +64 -0
- package/plugins/interfaces/maintenance/contract.js +2 -0
- package/plugins/interfaces/maintenance/mod.d.ts +57 -0
- package/plugins/interfaces/maintenance/mod.js +69 -0
- package/plugins/interfaces/maintenance/resources/routes.d.ts +65 -0
- package/plugins/interfaces/maintenance/resources/routes.js +471 -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 +15 -0
- package/plugins/interfaces/mcp/actions/call.js +392 -0
- package/plugins/interfaces/mcp/actions/conversation.d.ts +1 -0
- package/plugins/interfaces/mcp/actions/conversation.js +49 -0
- package/plugins/interfaces/mcp/actions/prune.d.ts +1 -0
- package/plugins/interfaces/mcp/actions/prune.js +20 -0
- package/plugins/interfaces/mcp/actions/public.d.ts +8 -0
- package/plugins/interfaces/mcp/actions/public.js +81 -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/opening.d.ts +24 -0
- package/plugins/interfaces/mcp/collections/opening.js +28 -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 +8 -0
- package/plugins/interfaces/mcp/contract.js +8 -0
- package/plugins/interfaces/mcp/mod.d.ts +145 -0
- package/plugins/interfaces/mcp/mod.js +196 -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/limits.d.ts +38 -0
- package/plugins/interfaces/mcp/resources/limits.js +77 -0
- package/plugins/interfaces/mcp/resources/public.d.ts +45 -0
- package/plugins/interfaces/mcp/resources/public.js +99 -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 +60 -0
- package/plugins/interfaces/mcp/resources/server.js +628 -0
- package/plugins/interfaces/mcp/resources/tools.d.ts +183 -0
- package/plugins/interfaces/mcp/resources/tools.js +432 -0
- package/plugins/interfaces/mcp/resources/widgets.d.ts +161 -0
- package/plugins/interfaces/mcp/resources/widgets.js +247 -0
- package/plugins/interfaces/mcp/shared/keys.d.ts +56 -0
- package/plugins/interfaces/mcp/shared/keys.js +99 -0
- package/plugins/interfaces/mcp/shared/settings.d.ts +236 -0
- package/plugins/interfaces/mcp/shared/settings.js +234 -0
- package/plugins/interfaces/mcp/shared/shown.d.ts +20 -0
- package/plugins/interfaces/mcp/shared/shown.js +31 -0
- package/plugins/interfaces/mcp/views/offered.d.ts +19 -0
- package/plugins/interfaces/mcp/views/offered.js +20 -0
- package/plugins/interfaces/mod.d.ts +6 -1
- package/plugins/interfaces/mod.js +6 -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/terminal/terminal.js +3 -3
- package/plugins/interfaces/terminal/views/shell.js +8 -3
- 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/prune.d.ts +1 -0
- package/plugins/interfaces/voice/actions/prune.js +43 -0
- package/plugins/interfaces/voice/actions/ring.d.ts +6 -0
- package/plugins/interfaces/voice/actions/ring.js +165 -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/{access/directory/collections/membership.d.ts → interfaces/voice/collections/phone.d.ts} +24 -22
- 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 +56 -0
- package/plugins/interfaces/voice/mod.js +124 -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/tools.d.ts +1 -0
- package/plugins/interfaces/voice/resources/tools.js +27 -0
- package/plugins/interfaces/voice/routes/hook.d.ts +21 -0
- package/plugins/interfaces/voice/routes/hook.js +114 -0
- package/plugins/interfaces/voice/routes/relay.d.ts +20 -0
- package/plugins/interfaces/voice/routes/relay.js +488 -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 +128 -0
- package/plugins/interfaces/voice/shared/settings.js +115 -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 +48 -0
- package/plugins/interfaces/voice/views/call.js +42 -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/actions/arrive.d.ts +1 -0
- package/plugins/interfaces/web/actions/arrive.js +104 -0
- package/plugins/interfaces/web/actions/prune.d.ts +1 -0
- package/plugins/interfaces/web/actions/prune.js +51 -0
- package/plugins/interfaces/web/actions/sending.d.ts +1 -0
- package/plugins/interfaces/web/actions/sending.js +226 -0
- package/plugins/interfaces/web/actions/spent.d.ts +2 -0
- package/plugins/interfaces/web/actions/spent.js +59 -0
- package/plugins/interfaces/web/collections/rate.d.ts +122 -0
- package/plugins/interfaces/web/collections/rate.js +37 -0
- package/plugins/interfaces/web/collections/visitor.d.ts +110 -0
- package/plugins/interfaces/web/collections/visitor.js +69 -0
- package/plugins/interfaces/web/contract.d.ts +19 -7
- package/plugins/interfaces/web/contract.js +3 -1
- package/plugins/interfaces/web/lines.d.ts +35 -0
- package/plugins/interfaces/web/lines.js +83 -0
- package/plugins/interfaces/web/mod.d.ts +30 -15
- package/plugins/interfaces/web/mod.js +30 -20
- package/plugins/interfaces/web/processors/forget.d.ts +10 -0
- package/plugins/interfaces/web/processors/forget.js +14 -0
- package/plugins/interfaces/web/resources/spend.d.ts +2 -0
- package/plugins/interfaces/web/resources/spend.js +68 -0
- package/plugins/interfaces/web/routes/arrive.d.ts +20 -0
- package/plugins/interfaces/web/routes/arrive.js +92 -0
- package/plugins/interfaces/web/shared/budget.d.ts +65 -0
- package/plugins/interfaces/web/shared/budget.js +134 -0
- package/plugins/interfaces/web/shared/lines.d.ts +147 -0
- package/plugins/interfaces/web/shared/lines.js +147 -0
- package/plugins/interfaces/web/shared/orgs.d.ts +71 -63
- package/plugins/interfaces/web/shared/orgs.js +40 -42
- package/plugins/interfaces/web/shared/panel.d.ts +0 -5
- package/plugins/interfaces/web/shared/panel.js +5 -1
- package/plugins/interfaces/web/shared/secret.d.ts +33 -0
- package/plugins/interfaces/web/shared/secret.js +86 -0
- package/plugins/interfaces/web/shared/sidebar.d.ts +22 -0
- package/plugins/interfaces/web/shared/sidebar.js +29 -0
- package/plugins/interfaces/web/shared/standing.js +4 -3
- package/plugins/interfaces/web/shared/style.d.ts +15 -5
- package/plugins/interfaces/web/shared/style.js +49 -196
- package/plugins/interfaces/web/views/default.d.ts +2 -2
- package/plugins/interfaces/web/views/default.js +5 -3
- package/plugins/interfaces/web/views/frame.d.ts +38 -9
- package/plugins/interfaces/web/views/frame.js +89 -40
- package/plugins/interfaces/web/views/me.d.ts +20 -16
- package/plugins/interfaces/web/views/me.js +88 -31
- package/plugins/interfaces/web/views/panel.js +3 -2
- package/plugins/interfaces/web/views/rail.d.ts +41 -0
- package/plugins/interfaces/web/views/rail.js +55 -0
- package/plugins/interfaces/web/views/shell.d.ts +12 -3
- package/plugins/interfaces/web/views/shell.js +25 -3
- package/plugins/interfaces/web/views/words.d.ts +1 -0
- package/plugins/interfaces/web/views/words.js +58 -0
- package/plugins/interfaces/whatsapp/actions/connect.js +13 -12
- package/plugins/interfaces/whatsapp/actions/disconnect.js +6 -3
- package/plugins/interfaces/whatsapp/actions/hook.d.ts +8 -1
- package/plugins/interfaces/whatsapp/actions/hook.js +97 -60
- package/plugins/interfaces/whatsapp/actions/link.js +12 -15
- package/plugins/interfaces/whatsapp/actions/set.d.ts +8 -0
- package/plugins/interfaces/whatsapp/actions/set.js +152 -0
- package/plugins/interfaces/whatsapp/actions/template.d.ts +1 -0
- package/plugins/interfaces/whatsapp/actions/template.js +89 -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 +170 -4
- package/plugins/interfaces/whatsapp/collections/number.js +57 -4
- package/plugins/interfaces/whatsapp/collections/phone.d.ts +39 -4
- package/plugins/interfaces/whatsapp/collections/phone.js +21 -2
- 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 +25 -13
- package/plugins/interfaces/whatsapp/collections/sent.js +12 -8
- package/plugins/interfaces/whatsapp/collections/template.d.ts +96 -0
- package/plugins/interfaces/whatsapp/collections/template.js +30 -0
- 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 +34 -5
- package/plugins/interfaces/whatsapp/contract.js +41 -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 +59 -7
- package/plugins/interfaces/whatsapp/mod.js +122 -14
- package/plugins/interfaces/whatsapp/processors/forget.d.ts +7 -0
- package/plugins/interfaces/whatsapp/processors/forget.js +17 -0
- package/plugins/interfaces/whatsapp/processors/receive.d.ts +25 -7
- package/plugins/interfaces/whatsapp/processors/receive.js +293 -97
- package/plugins/interfaces/whatsapp/processors/reply.d.ts +44 -9
- package/plugins/interfaces/whatsapp/processors/reply.js +342 -24
- package/plugins/interfaces/whatsapp/processors/typing.d.ts +8 -0
- package/plugins/interfaces/whatsapp/processors/typing.js +25 -0
- package/plugins/interfaces/whatsapp/routes/hook.d.ts +16 -0
- package/plugins/interfaces/whatsapp/routes/hook.js +52 -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 +50 -7
- package/plugins/interfaces/whatsapp/shared/graph.js +140 -12
- package/plugins/interfaces/whatsapp/shared/media.d.ts +24 -0
- package/plugins/interfaces/whatsapp/shared/media.js +49 -0
- package/plugins/interfaces/whatsapp/shared/number.d.ts +31 -9
- package/plugins/interfaces/whatsapp/shared/number.js +83 -8
- 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 +4 -4
- package/plugins/interfaces/whatsapp/shared/rules.js +8 -9
- package/plugins/interfaces/whatsapp/shared/settings.d.ts +93 -13
- package/plugins/interfaces/whatsapp/shared/settings.js +11 -9
- package/plugins/interfaces/whatsapp/shared/template.d.ts +48 -0
- package/plugins/interfaces/whatsapp/shared/template.js +117 -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 +10 -3
- package/plugins/models/actions/check.d.ts +1 -0
- package/plugins/models/actions/check.js +32 -2
- package/plugins/models/actions/image.d.ts +1 -0
- package/plugins/models/actions/image.js +46 -0
- package/plugins/models/actions/offered.d.ts +34 -0
- package/plugins/models/actions/offered.js +190 -0
- package/plugins/models/actions/price.d.ts +0 -2
- package/plugins/models/actions/price.js +5 -5
- package/plugins/models/adapters/image/fake.d.ts +6 -0
- package/plugins/models/adapters/image/fake.js +8 -0
- package/plugins/models/adapters/image/gemini.d.ts +2 -0
- package/plugins/models/adapters/image/gemini.js +111 -0
- package/plugins/models/adapters/image/openai.d.ts +2 -0
- package/plugins/models/adapters/image/openai.js +69 -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 +26 -3
- package/plugins/models/adapters/llm/openai.d.ts +1 -1
- package/plugins/models/adapters/llm/openai.js +158 -28
- package/plugins/models/collections/image.d.ts +96 -0
- package/plugins/models/collections/image.js +27 -0
- package/plugins/models/contract.d.ts +20 -5
- package/plugins/models/contract.js +2 -1
- package/plugins/models/mod.d.ts +26 -5
- package/plugins/models/mod.js +42 -6
- package/plugins/models/resources/providers.d.ts +2 -2
- package/plugins/models/resources/providers.js +2 -2
- package/plugins/models/shared/catalog.json +9208 -8909
- package/plugins/models/shared/choice.d.ts +39 -0
- package/plugins/models/shared/choice.js +56 -6
- package/plugins/models/shared/embed.js +2 -1
- package/plugins/models/shared/generate.d.ts +3 -1
- package/plugins/models/shared/generate.js +54 -12
- package/plugins/models/shared/image.d.ts +110 -0
- package/plugins/models/shared/image.js +172 -0
- package/plugins/models/shared/provider.d.ts +5 -0
- package/plugins/models/shared/provider.js +14 -0
- package/plugins/models/shared/retry.d.ts +9 -2
- package/plugins/models/shared/retry.js +26 -2
- package/plugins/models/shared/telemetry.d.ts +4 -2
- package/plugins/models/shared/transcribe.js +9 -2
- package/plugins/models/shared/types.d.ts +21 -2
- package/plugins/models/shared/types.js +10 -0
- package/plugins/models/shared/use.d.ts +41 -6
- package/plugins/models/shared/use.js +84 -4
- package/runtime/actor.d.ts +106 -0
- package/runtime/actor.js +93 -0
- package/runtime/address.d.ts +11 -0
- package/runtime/address.js +48 -0
- package/runtime/aggregate.js +8 -2
- package/runtime/api.d.ts +49 -0
- package/runtime/api.js +700 -0
- package/runtime/blobs.d.ts +15 -12
- package/runtime/blobs.js +58 -11
- package/runtime/body.d.ts +16 -0
- package/runtime/body.js +57 -0
- package/runtime/browsers.d.ts +181 -24
- package/runtime/browsers.js +358 -39
- package/runtime/cache.d.ts +6 -0
- package/runtime/cache.js +44 -6
- package/runtime/caller.d.ts +126 -0
- package/runtime/caller.js +226 -0
- package/runtime/client.d.ts +163 -12
- package/runtime/client.js +400 -53
- package/runtime/collection.d.ts +2 -0
- package/runtime/collection.js +2 -1
- package/runtime/cookies.d.ts +72 -0
- package/runtime/cookies.js +125 -0
- package/runtime/define.d.ts +251 -32
- package/runtime/describe.d.ts +319 -0
- package/runtime/describe.js +594 -0
- package/runtime/errors.d.ts +65 -0
- package/runtime/errors.js +41 -0
- package/runtime/executor.d.ts +2 -0
- package/runtime/executor.js +408 -72
- package/runtime/expiring.d.ts +23 -0
- package/runtime/expiring.js +64 -0
- package/runtime/fetch.d.ts +99 -0
- package/runtime/fetch.js +415 -0
- package/runtime/kept.d.ts +22 -0
- package/runtime/kept.js +128 -0
- package/runtime/links.d.ts +54 -0
- package/runtime/links.js +98 -0
- package/runtime/maintain.d.ts +88 -0
- package/runtime/maintain.js +120 -0
- package/runtime/memory.js +109 -19
- package/runtime/mod.d.ts +15 -3
- package/runtime/mod.js +13 -0
- package/runtime/mongo.d.ts +50 -5
- package/runtime/mongo.js +183 -9
- package/runtime/observe.d.ts +10 -3
- package/runtime/observe.js +119 -41
- package/runtime/ops.d.ts +22 -1
- package/runtime/ops.js +113 -1
- package/runtime/owner.d.ts +81 -31
- package/runtime/owner.js +697 -146
- package/runtime/pattern.d.ts +44 -0
- package/runtime/pattern.js +476 -0
- package/runtime/presence.d.ts +18 -0
- package/runtime/presence.js +25 -0
- package/runtime/reads.d.ts +5 -3
- package/runtime/reads.js +16 -7
- package/runtime/registry.d.ts +22 -3
- package/runtime/registry.js +70 -6
- package/runtime/rest.d.ts +10 -0
- package/runtime/rest.js +247 -0
- package/runtime/routes.d.ts +51 -0
- package/runtime/routes.js +79 -0
- package/runtime/runtime.d.ts +9 -5
- package/runtime/runtime.js +19 -10
- package/runtime/runtimes.d.ts +43 -0
- package/runtime/runtimes.js +86 -0
- package/runtime/schedules.d.ts +23 -4
- package/runtime/schedules.js +9 -2
- package/runtime/site.d.ts +52 -0
- package/runtime/site.js +178 -0
- package/runtime/store.d.ts +61 -2
- package/runtime/tickets.d.ts +15 -0
- package/runtime/tickets.js +65 -0
- package/runtime/timers.d.ts +4 -1
- package/runtime/timers.js +36 -10
- package/runtime/views.d.ts +2 -4
- package/runtime/views.js +9 -11
- package/runtime/wire.d.ts +24 -3
- package/runtime/wire.js +34 -2
- 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/dialect.d.ts +2 -1
- package/stores/sql/postgres/dialect.js +9 -0
- package/stores/sql/postgres/lease.d.ts +55 -0
- package/stores/sql/postgres/lease.js +102 -0
- package/stores/sql/postgres/maintenance.d.ts +32 -0
- package/stores/sql/postgres/maintenance.js +325 -0
- package/stores/sql/postgres/mod.d.ts +29 -4
- package/stores/sql/postgres/mod.js +386 -104
- package/stores/sql/postgres/pattern.d.ts +10 -0
- package/stores/sql/postgres/pattern.js +70 -0
- 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/filter.d.ts +23 -2
- package/stores/sql/shared/filter.js +49 -12
- 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/dialect.d.ts +7 -1
- package/stores/sql/sqlite/dialect.js +10 -0
- package/stores/sql/sqlite/mod.d.ts +34 -3
- package/stores/sql/sqlite/mod.js +308 -62
- package/testing/mod.d.ts +34 -1
- package/testing/mod.js +64 -2
- package/testing/words.d.ts +18 -0
- package/testing/words.js +60 -0
- package/hosts/orgs/mod.d.ts +0 -102
- package/hosts/orgs/mod.js +0 -598
- package/hosts/web/files.d.ts +0 -24
- package/hosts/web/files.js +0 -83
- package/hosts/web/orgs.d.ts +0 -112
- package/hosts/web/orgs.js +0 -225
- package/hosts/web/routes.d.ts +0 -146
- package/hosts/web/routes.js +0 -233
- package/hosts/web/tickets.d.ts +0 -20
- package/hosts/web/tickets.js +0 -21
- package/plugins/access/directory/actions/host.d.ts +0 -2
- package/plugins/access/directory/actions/host.js +0 -55
- package/plugins/access/directory/actions/invite.d.ts +0 -5
- package/plugins/access/directory/actions/invite.js +0 -130
- package/plugins/access/directory/actions/org.d.ts +0 -11
- package/plugins/access/directory/actions/org.js +0 -280
- package/plugins/access/directory/collections/invite.d.ts +0 -81
- package/plugins/access/directory/collections/invite.js +0 -20
- package/plugins/access/directory/collections/membership.js +0 -22
- package/plugins/access/directory/collections/org-host.js +0 -29
- package/plugins/access/directory/collections/org.d.ts +0 -141
- package/plugins/access/directory/collections/org.js +0 -36
- package/plugins/access/directory/collections/staff.d.ts +0 -42
- package/plugins/access/directory/collections/staff.js +0 -12
- package/plugins/access/directory/mod.d.ts +0 -23
- package/plugins/access/directory/mod.js +0 -50
- package/plugins/access/directory/shared/settings.d.ts +0 -21
- package/plugins/access/directory/shared/settings.js +0 -16
- package/plugins/access/identity/actions/key.d.ts +0 -2
- package/plugins/access/identity/actions/key.js +0 -48
- package/plugins/access/spaces/actions/share.d.ts +0 -1
- package/plugins/access/spaces/actions/share.js +0 -37
- package/plugins/agents/team/actions/agent.d.ts +0 -4
- package/plugins/agents/team/actions/agent.js +0 -180
- package/plugins/agents/team/actions/define.d.ts +0 -1
- package/plugins/agents/team/actions/define.js +0 -27
- package/plugins/agents/team/collections/agent.d.ts +0 -132
- package/plugins/agents/team/collections/agent.js +0 -75
- package/plugins/agents/team/contract.d.ts +0 -7
- package/plugins/agents/team/mod.d.ts +0 -21
- package/plugins/agents/team/mod.js +0 -42
- package/plugins/agents/team/shared/definition.d.ts +0 -3
- package/plugins/agents/team/shared/definition.js +0 -10
- package/plugins/agents/team/views/web/agent-add.d.ts +0 -14
- package/plugins/agents/team/views/web/agent-add.js +0 -47
- package/plugins/agents/team/views/web/agent-fields.d.ts +0 -33
- package/plugins/agents/team/views/web/agent-fields.js +0 -84
- package/plugins/agents/team/views/web/agent-known.d.ts +0 -22
- package/plugins/agents/team/views/web/agent-known.js +0 -60
- package/plugins/agents/team/views/web/agent-new.d.ts +0 -24
- package/plugins/agents/team/views/web/agent-new.js +0 -124
- package/plugins/agents/team/views/web/agent-palette.d.ts +0 -19
- package/plugins/agents/team/views/web/agent-palette.js +0 -200
- package/plugins/agents/team/views/web/agent-steps.d.ts +0 -23
- package/plugins/agents/team/views/web/agent-steps.js +0 -52
- package/plugins/agents/team/views/web/agent.d.ts +0 -17
- package/plugins/agents/team/views/web/agent.js +0 -247
- package/plugins/agents/team/views/web/agents.d.ts +0 -48
- package/plugins/agents/team/views/web/agents.js +0 -55
- package/plugins/agents/team/views/web/places.d.ts +0 -24
- package/plugins/agents/team/views/web/places.js +0 -15
- package/plugins/agents/team/views/web/style.d.ts +0 -9
- package/plugins/agents/team/views/web/style.js +0 -195
- package/plugins/agents/team/web.d.ts +0 -20
- package/plugins/agents/team/web.js +0 -37
- package/plugins/compute/apps/actions/build.d.ts +0 -1
- package/plugins/compute/apps/actions/build.js +0 -93
- package/plugins/compute/apps/actions/list.d.ts +0 -1
- package/plugins/compute/apps/actions/list.js +0 -13
- package/plugins/compute/apps/actions/meter.d.ts +0 -1
- package/plugins/compute/apps/actions/meter.js +0 -43
- package/plugins/compute/apps/actions/publish.d.ts +0 -1
- package/plugins/compute/apps/actions/publish.js +0 -36
- package/plugins/compute/apps/actions/redeploy.d.ts +0 -1
- package/plugins/compute/apps/actions/redeploy.js +0 -27
- package/plugins/compute/apps/actions/remove.d.ts +0 -1
- package/plugins/compute/apps/actions/remove.js +0 -47
- package/plugins/compute/apps/adapters/cloudrun.d.ts +0 -90
- package/plugins/compute/apps/adapters/cloudrun.js +0 -341
- package/plugins/compute/apps/adapters/local.d.ts +0 -15
- package/plugins/compute/apps/adapters/local.js +0 -139
- package/plugins/compute/apps/adapters/tar.d.ts +0 -29
- package/plugins/compute/apps/adapters/tar.js +0 -178
- package/plugins/compute/apps/collections/app.d.ts +0 -136
- package/plugins/compute/apps/collections/app.js +0 -58
- package/plugins/compute/apps/contract.d.ts +0 -71
- package/plugins/compute/apps/contract.js +0 -8
- package/plugins/compute/apps/mod.d.ts +0 -42
- package/plugins/compute/apps/mod.js +0 -65
- package/plugins/compute/apps/resources/tools.d.ts +0 -10
- package/plugins/compute/apps/resources/tools.js +0 -63
- package/plugins/compute/apps/shared/archive.d.ts +0 -24
- package/plugins/compute/apps/shared/archive.js +0 -69
- package/plugins/compute/apps/shared/claims.d.ts +0 -28
- package/plugins/compute/apps/shared/claims.js +0 -18
- package/plugins/compute/apps/shared/errors.d.ts +0 -4
- package/plugins/compute/apps/shared/errors.js +0 -4
- package/plugins/compute/apps/shared/host.d.ts +0 -19
- package/plugins/compute/apps/shared/host.js +0 -19
- package/plugins/compute/apps/shared/label.d.ts +0 -21
- package/plugins/compute/apps/shared/label.js +0 -51
- package/plugins/compute/apps/shared/meter.d.ts +0 -17
- package/plugins/compute/apps/shared/meter.js +0 -29
- package/plugins/compute/apps/shared/publish.d.ts +0 -39
- package/plugins/compute/apps/shared/publish.js +0 -113
- package/plugins/compute/apps/shared/settings.d.ts +0 -49
- package/plugins/compute/apps/shared/settings.js +0 -22
- package/plugins/compute/apps/views/web/apps.d.ts +0 -52
- package/plugins/compute/apps/views/web/apps.js +0 -48
- package/plugins/compute/apps/views/web/publish.d.ts +0 -24
- package/plugins/compute/apps/views/web/publish.js +0 -156
- package/plugins/compute/apps/views/web/space.d.ts +0 -15
- package/plugins/compute/apps/views/web/space.js +0 -126
- package/plugins/compute/apps/views/web/style.d.ts +0 -6
- package/plugins/compute/apps/views/web/style.js +0 -102
- package/plugins/compute/apps/web.d.ts +0 -16
- package/plugins/compute/apps/web.js +0 -29
- package/plugins/compute/cloud/actions/create.d.ts +0 -1
- package/plugins/compute/cloud/actions/create.js +0 -90
- package/plugins/compute/cloud/actions/daily.d.ts +0 -1
- package/plugins/compute/cloud/actions/daily.js +0 -75
- package/plugins/compute/cloud/actions/destroy.d.ts +0 -1
- package/plugins/compute/cloud/actions/destroy.js +0 -71
- package/plugins/compute/cloud/actions/org.d.ts +0 -1
- package/plugins/compute/cloud/actions/org.js +0 -21
- package/plugins/compute/cloud/actions/pool-tick.d.ts +0 -4
- package/plugins/compute/cloud/actions/pool-tick.js +0 -91
- package/plugins/compute/cloud/actions/pool.d.ts +0 -3
- package/plugins/compute/cloud/actions/pool.js +0 -98
- package/plugins/compute/cloud/actions/release.d.ts +0 -1
- package/plugins/compute/cloud/actions/release.js +0 -58
- package/plugins/compute/cloud/actions/remote.d.ts +0 -10
- package/plugins/compute/cloud/actions/remote.js +0 -24
- package/plugins/compute/cloud/actions/tick.d.ts +0 -1
- package/plugins/compute/cloud/actions/tick.js +0 -95
- package/plugins/compute/cloud/actions/touch.d.ts +0 -1
- package/plugins/compute/cloud/actions/touch.js +0 -32
- package/plugins/compute/cloud/actions/vms.d.ts +0 -7
- package/plugins/compute/cloud/actions/vms.js +0 -201
- package/plugins/compute/cloud/actions/wake.d.ts +0 -1
- package/plugins/compute/cloud/actions/wake.js +0 -147
- package/plugins/compute/cloud/adapters/gce/index.d.ts +0 -73
- package/plugins/compute/cloud/adapters/gce/index.js +0 -242
- package/plugins/compute/cloud/adapters/local.d.ts +0 -48
- package/plugins/compute/cloud/adapters/local.js +0 -179
- package/plugins/compute/cloud/collections/cloud-computer.d.ts +0 -109
- package/plugins/compute/cloud/collections/cloud-computer.js +0 -82
- package/plugins/compute/cloud/collections/pool-vm.d.ts +0 -79
- package/plugins/compute/cloud/collections/pool-vm.js +0 -36
- package/plugins/compute/cloud/contract.d.ts +0 -236
- package/plugins/compute/cloud/contract.js +0 -67
- package/plugins/compute/cloud/mod.d.ts +0 -92
- package/plugins/compute/cloud/mod.js +0 -185
- package/plugins/compute/cloud/shared/host.d.ts +0 -11
- package/plugins/compute/cloud/shared/host.js +0 -29
- package/plugins/compute/cloud/shared/meter.d.ts +0 -29
- package/plugins/compute/cloud/shared/meter.js +0 -59
- package/plugins/compute/cloud/shared/names.d.ts +0 -10
- package/plugins/compute/cloud/shared/names.js +0 -11
- package/plugins/compute/cloud/shared/people.d.ts +0 -24
- package/plugins/compute/cloud/shared/people.js +0 -19
- package/plugins/compute/cloud/shared/records.d.ts +0 -18
- package/plugins/compute/cloud/shared/records.js +0 -8
- package/plugins/compute/cloud/shared/settings.d.ts +0 -75
- package/plugins/compute/cloud/shared/settings.js +0 -48
- package/plugins/compute/cloud/shared/time.d.ts +0 -19
- package/plugins/compute/cloud/shared/time.js +0 -31
- package/plugins/compute/cloud/views/web/cloud.d.ts +0 -72
- package/plugins/compute/cloud/views/web/cloud.js +0 -112
- package/plugins/compute/cloud/views/web/computer.d.ts +0 -31
- package/plugins/compute/cloud/views/web/computer.js +0 -185
- package/plugins/compute/cloud/views/web/new.d.ts +0 -25
- package/plugins/compute/cloud/views/web/new.js +0 -89
- package/plugins/compute/cloud/views/web/style.d.ts +0 -6
- package/plugins/compute/cloud/views/web/style.js +0 -84
- package/plugins/compute/cloud/web.d.ts +0 -19
- package/plugins/compute/cloud/web.js +0 -54
- package/plugins/compute/computers/actions/approve.js +0 -57
- package/plugins/compute/computers/collections/approval.d.ts +0 -162
- package/plugins/compute/computers/collections/approval.js +0 -59
- package/plugins/compute/computers/collections/grant.js +0 -29
- package/plugins/compute/computers/shared/asks.d.ts +0 -5
- package/plugins/compute/computers/shared/asks.js +0 -3
- package/plugins/compute/computers/shared/person.d.ts +0 -3
- package/plugins/compute/computers/shared/person.js +0 -8
- package/plugins/compute/computers/views/terminal/approvals.d.ts +0 -9
- package/plugins/compute/computers/views/terminal/approvals.js +0 -14
- package/plugins/compute/computers/views/web/waiting.d.ts +0 -10
- package/plugins/compute/computers/views/web/waiting.js +0 -34
- package/plugins/interfaces/api/shared/events.d.ts +0 -26
- package/plugins/interfaces/api/shared/events.js +0 -142
- package/plugins/interfaces/api/shared/http.d.ts +0 -28
- package/plugins/interfaces/api/shared/http.js +0 -93
- package/plugins/interfaces/api/shared/reference.d.ts +0 -48
- package/plugins/interfaces/api/shared/reference.js +0 -37
- package/plugins/interfaces/api/shared/server.d.ts +0 -34
- package/plugins/interfaces/api/shared/server.js +0 -177
- package/plugins/interfaces/web/views/console.d.ts +0 -13
- package/plugins/interfaces/web/views/console.js +0 -212
- package/plugins/interfaces/web/views/org.d.ts +0 -12
- package/plugins/interfaces/web/views/org.js +0 -54
- package/plugins/interfaces/web/views/orgs.d.ts +0 -44
- package/plugins/interfaces/web/views/orgs.js +0 -256
- package/plugins/interfaces/whatsapp/shared/http.d.ts +0 -47
- package/plugins/interfaces/whatsapp/shared/http.js +0 -22
- /package/plugins/{compute/computers → agents/chat}/actions/approve.d.ts +0 -0
- /package/plugins/agents/{team → openapi}/contract.js +0 -0
- /package/plugins/compute/{cloud/shared/google.d.ts → google.d.ts} +0 -0
- /package/plugins/compute/{cloud/shared/google.js → google.js} +0 -0
package/AGENTS.md
ADDED
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
A guide for coding agents (Claude Code, Codex, Cursor, Gemini) building an app with Copilotz. Read
|
|
4
|
+
it whole before you write code. The last section is for work on Copilotz itself.
|
|
5
|
+
|
|
6
|
+
It ships in the package (`node_modules/copilotz/AGENTS.md`, and `@copilotz/copilotz` on JSR) and
|
|
7
|
+
goes with `copilotz@1.0.0-rc.50`. Every docs page is Markdown at
|
|
8
|
+
`https://copilotz.com/docs/<slug>.md`, and https://copilotz.com/llms.txt lists them all. When you're
|
|
9
|
+
unsure of a name, fetch its page or read the package's types (`node_modules/copilotz/**/*.d.ts`).
|
|
10
|
+
Don't guess.
|
|
11
|
+
|
|
12
|
+
It also comes as an Agent Skill, for any coding agent: `npx skills add copilotzhq/copilotz`.
|
|
13
|
+
|
|
14
|
+
## What Copilotz is
|
|
15
|
+
|
|
16
|
+
A runtime for apps that people and AI use alike. You write the app once: its data, what can be done,
|
|
17
|
+
who may do it, and how it shows. People use it on a web page or in a terminal, the app's own agents
|
|
18
|
+
through tools, and outside assistants (ChatGPT, Claude, any MCP client) over MCP. Every way in calls
|
|
19
|
+
the same Actions, under the same rules, and every write is on one record of who did what, for whom.
|
|
20
|
+
It runs on Node 24+, Deno 2.9+ and Bun.
|
|
21
|
+
|
|
22
|
+
## How Copilotz works, in one minute
|
|
23
|
+
|
|
24
|
+
An app is a **runtime** made of **plugins**. A plugin is plain objects, made of six primitives:
|
|
25
|
+
|
|
26
|
+
| Primitive | What it is |
|
|
27
|
+
| -------------- | ---------------------------------------------------------------------------------------- |
|
|
28
|
+
| **Collection** | documents with a JSON Schema, read and written with the MongoDB collection API |
|
|
29
|
+
| **Action** | something that can be done, by name, with a JSON Schema `input` and an `allow` (who may) |
|
|
30
|
+
| **Processor** | what happens when events happen: it hears the events it names, at least once, in order |
|
|
31
|
+
| **View** | how data shows in one place: text for a model or the terminal, Ink, React for the web |
|
|
32
|
+
| **Resource** | configuration as named plain objects, by kind (`agents`, `tools`, `provider`…) |
|
|
33
|
+
| **Adapter** | one implementation of a port, by name: a model provider's protocol, an email service |
|
|
34
|
+
|
|
35
|
+
A plugin may also declare `routes` and `who` (HTTP), `guard` (rules), `schedules` and a startup
|
|
36
|
+
`check`. Plugins merge in order: a later plugin's resources patch an earlier one's (objects merge,
|
|
37
|
+
`null` removes), and a later View, adapter or route replaces one of the same name.
|
|
38
|
+
|
|
39
|
+
The runtime keeps one contract for every caller:
|
|
40
|
+
|
|
41
|
+
- **Who, for whom, where.** Every call carries an actor, `{ kind, id, for?, in? }`: a person, a
|
|
42
|
+
contact from outside, or an agent working `for` one of them. `in` is where the work is (a space,
|
|
43
|
+
with the access plugin).
|
|
44
|
+
- **The rules, at the data.** Reads come back filtered by what the actor reaches, and writes are
|
|
45
|
+
checked, whichever way the call came in.
|
|
46
|
+
- **The record.** Every write records an event in the same commit, naming its actor.
|
|
47
|
+
|
|
48
|
+
What people often get wrong:
|
|
49
|
+
|
|
50
|
+
- **Two kinds of events.** A collection write records `<collection>.created`, `.updated` or
|
|
51
|
+
`.deleted`. An Action call records `action.started`, then `action.completed` or `action.failed`.
|
|
52
|
+
Callers call Actions; events are what Actions and writes produce.
|
|
53
|
+
- **`runtime.subscribe` hears events; `runtime.observe` keeps a View live**, running it again when a
|
|
54
|
+
commit changes what it read.
|
|
55
|
+
- **Queries read; Actions write.** Named queries and Views never write.
|
|
56
|
+
|
|
57
|
+
Plugins reach each other only through the runtime, by name. One that builds on another says so
|
|
58
|
+
(`requires: ["chat"]`) and imports only that plugin's `contract.ts`, never its code.
|
|
59
|
+
|
|
60
|
+
## Start a project
|
|
61
|
+
|
|
62
|
+
There's no project generator. Set a project up as the docs' courses do, on Node 24 or newer:
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
mkdir my-app && cd my-app
|
|
66
|
+
npm init -y && npm pkg set type=module
|
|
67
|
+
npm install copilotz@1.0.0-rc.50 react@19 react-dom@19
|
|
68
|
+
npm install -D typescript @types/node @types/react @types/react-dom esbuild
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Pin the version: npm's `latest` tag still points at an early release candidate. On Deno, run
|
|
72
|
+
`deno add jsr:@copilotz/copilotz` and map `"copilotz": "jsr:@copilotz/copilotz@^1.0.0-rc.50"` in
|
|
73
|
+
`deno.json`, so imports read the same.
|
|
74
|
+
|
|
75
|
+
Node runs `.ts` files as they are, so there's no build step. It doesn't run `.tsx`: tests that load
|
|
76
|
+
a `web.tsx` need a loader hook (Getting Started chapter 3 adds one). Copy `tsconfig.json` from
|
|
77
|
+
[Build Compass](https://copilotz.com/docs/build-compass.md), under "What you need": `NodeNext`
|
|
78
|
+
modules, `allowImportingTsExtensions`, `verbatimModuleSyntax`, `erasableSyntaxOnly`, `strict`,
|
|
79
|
+
`noEmit`, and `jsx: "react-jsx"`. The scripts, in `package.json` (add `dev` and `terminal` once
|
|
80
|
+
there's a server and a terminal):
|
|
81
|
+
|
|
82
|
+
```json
|
|
83
|
+
"scripts": {
|
|
84
|
+
"test": "node --disable-warning=ExperimentalWarning --test --test-timeout=60000 --test-concurrency=1 \"tests/*.test.ts\"",
|
|
85
|
+
"check": "tsc --noEmit -p ."
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
The layout the docs use:
|
|
90
|
+
|
|
91
|
+
```text
|
|
92
|
+
app.ts plugins(settings): every plugin, in order. It reads no environment.
|
|
93
|
+
plugins/<name>/
|
|
94
|
+
mod.ts assembles the plugin, and nothing else
|
|
95
|
+
actions.ts … one file per primitive; or collections/, actions/, views/… with one file per
|
|
96
|
+
declaration, as Copilotz's own plugins are laid out
|
|
97
|
+
contract.ts what other plugins may import: shapes and small helpers, never code
|
|
98
|
+
web.tsx its web front end (React Views); terminal.ts, its terminal one
|
|
99
|
+
server.ts the web host: reads the environment, passes settings to plugins()
|
|
100
|
+
tests/kit.ts the app as app.ts makes it, in memory, with a scripted model
|
|
101
|
+
tests/*.test.ts
|
|
102
|
+
.env OPENAI_API_KEY=… (optional; dev and terminal read it: --env-file-if-exists=.env)
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**Give the project its own guide.** Write `AGENTS.md` at its root, and `CLAUDE.md` holding the one
|
|
106
|
+
line `@AGENTS.md` (Claude Code reads `CLAUDE.md`, and follows the import). Keep it short and true:
|
|
107
|
+
|
|
108
|
+
```markdown
|
|
109
|
+
# AGENTS.md
|
|
110
|
+
|
|
111
|
+
This app runs on Copilotz (copilotz@1.0.0-rc.50). Read node_modules/copilotz/AGENTS.md first;
|
|
112
|
+
https://copilotz.com/llms.txt lists the docs, as Markdown.
|
|
113
|
+
|
|
114
|
+
- `npm test` runs every test offline, with a scripted model: run it after each change.
|
|
115
|
+
`npm run check` checks the types.
|
|
116
|
+
- `app.ts` lists the plugins in order; `plugins/<name>/mod.ts` assembles each one.
|
|
117
|
+
- Every change to data is an Action that pages, tools and scripts all call. Access rules live at the
|
|
118
|
+
data (the `shared` resource or a `guard`). Each tool has a `tool:<name>` View.
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## A plugin, end to end
|
|
122
|
+
|
|
123
|
+
A collection, an Action, a View for people and one for the model, a rule, a tool and an agent, in
|
|
124
|
+
`plugins/tasks/mod.ts`:
|
|
125
|
+
|
|
126
|
+
```ts
|
|
127
|
+
import { defineAction, definePlugin, failure, people } from "copilotz";
|
|
128
|
+
import type { Plugin, ViewContext } from "copilotz";
|
|
129
|
+
import { tool } from "copilotz/plugins/agents";
|
|
130
|
+
|
|
131
|
+
type Task = { _id: string; title: string; in: string };
|
|
132
|
+
|
|
133
|
+
export const tasks: Plugin = definePlugin({
|
|
134
|
+
name: "tasks",
|
|
135
|
+
requires: ["chat", "spaces"],
|
|
136
|
+
collections: {
|
|
137
|
+
task: {
|
|
138
|
+
schema: {
|
|
139
|
+
type: "object",
|
|
140
|
+
properties: { title: { type: "string" }, in: { type: "string" } },
|
|
141
|
+
required: ["title", "in"],
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
actions: {
|
|
146
|
+
// The one way to add a task: a button, the agent's tool and a script all call it.
|
|
147
|
+
"task.add": defineAction({
|
|
148
|
+
input: { type: "object", properties: { title: { type: "string" } }, required: ["title"] },
|
|
149
|
+
allow: people,
|
|
150
|
+
run: async (ctx, { title }) => {
|
|
151
|
+
if (!ctx.in) throw failure("invalid", "Add tasks in a space.", { public: true });
|
|
152
|
+
const { insertedId } = await ctx.db.collection("task").insertOne({ title, in: ctx.in });
|
|
153
|
+
return { task: insertedId };
|
|
154
|
+
},
|
|
155
|
+
}),
|
|
156
|
+
},
|
|
157
|
+
views: {
|
|
158
|
+
// Text, for the terminal and for a model. It reads as whoever looks.
|
|
159
|
+
tasks: (_: unknown, ctx: ViewContext) => {
|
|
160
|
+
const found = ctx.db.collection<Task>("task").find({}).value ?? [];
|
|
161
|
+
return found.length ? found.map((t) => `- ${t.title}`).join("\n") : "No tasks.";
|
|
162
|
+
},
|
|
163
|
+
// What a model reads after it calls add_task.
|
|
164
|
+
"tool:add_task": (_call: unknown, ctx: ViewContext) => ctx.show("tasks", {}),
|
|
165
|
+
},
|
|
166
|
+
resources: {
|
|
167
|
+
// The rule, at the data: a task lives in a space (its `in`).
|
|
168
|
+
shared: { task: {} },
|
|
169
|
+
tools: {
|
|
170
|
+
add_task: tool({
|
|
171
|
+
description: "Adds a task to this chat's space",
|
|
172
|
+
input: { type: "object", properties: { title: { type: "string" } }, required: ["title"] },
|
|
173
|
+
run: ({ title }, ctx) => ctx.call("task.add", { title }),
|
|
174
|
+
}),
|
|
175
|
+
},
|
|
176
|
+
agents: {
|
|
177
|
+
helper: { default: true, instructions: "Keep tasks.", model: "helper", tools: ["add_task"] },
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
});
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
`app.ts` lists the plugins and sets the model alias the agent names. Without a key it's
|
|
184
|
+
`"fake/echo"`, Copilotz's offline model: it echoes what it's told, and calls a tool, with no input,
|
|
185
|
+
when the message names it ("add task" for `add_task`).
|
|
186
|
+
|
|
187
|
+
```ts
|
|
188
|
+
import { definePlugin, type Plugin } from "copilotz";
|
|
189
|
+
import { models } from "copilotz/plugins/models";
|
|
190
|
+
import { chat } from "copilotz/plugins/agents";
|
|
191
|
+
import { access } from "copilotz/plugins/access";
|
|
192
|
+
import { tasks } from "./plugins/tasks/mod.ts";
|
|
193
|
+
|
|
194
|
+
export function plugins(settings: { openai?: string } = {}): Plugin[] {
|
|
195
|
+
const provider = settings.openai ? { openai: { apiKey: settings.openai } } : {};
|
|
196
|
+
const model = { helper: settings.openai ? "openai/gpt-5.4-mini" : "fake/echo" };
|
|
197
|
+
const app = definePlugin({ name: "app-settings", resources: { provider, model } });
|
|
198
|
+
return [models, chat, ...access, tasks, app];
|
|
199
|
+
}
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
## Test without an API key: the default loop
|
|
203
|
+
|
|
204
|
+
Run `npm test` after every change, and `npm run check` before you stop. No test needs a key or the
|
|
205
|
+
network. Run the app as `app.ts` makes it, with fakes only where it meets the world: a scripted
|
|
206
|
+
model (below); `createRuntime({ clock: manualClock(Date.now()) })` and `clock.advance(ms)` for time;
|
|
207
|
+
`createRuntime({ fetch })` for what plugins call outside (`ctx.fetch`). A model provider is called
|
|
208
|
+
with the platform's `fetch`, so a fake one is a local server (`serve`, from `copilotz/testing`) set
|
|
209
|
+
as the provider's `baseURL`. `runtime.fetch(new Request(…))` tests HTTP without a port, and
|
|
210
|
+
`await runtime.idle()` waits until nothing is left to run.
|
|
211
|
+
|
|
212
|
+
`tests/kit.ts`:
|
|
213
|
+
|
|
214
|
+
```ts
|
|
215
|
+
import { createRuntime, definePlugin } from "copilotz";
|
|
216
|
+
import { memoryStore } from "copilotz/stores/memory";
|
|
217
|
+
import type { LlmAdapter, LlmRequest } from "copilotz/plugins/models";
|
|
218
|
+
import { plugins } from "../app.ts";
|
|
219
|
+
|
|
220
|
+
export type Move = string | { tool: string; input?: Record<string, unknown> };
|
|
221
|
+
|
|
222
|
+
/** A model that plays its moves in order, one per call, and keeps what each call sent it. */
|
|
223
|
+
export function scripted(moves: Move[]) {
|
|
224
|
+
const sent: LlmRequest[] = [];
|
|
225
|
+
const adapter: LlmAdapter = {
|
|
226
|
+
async *generate(request) {
|
|
227
|
+
sent.push(request);
|
|
228
|
+
const move = moves.shift();
|
|
229
|
+
if (move === undefined) throw new Error(`The script has no move for call ${sent.length}.`);
|
|
230
|
+
if (typeof move === "string") yield { type: "text", text: move };
|
|
231
|
+
else {
|
|
232
|
+
const call = { id: `call-${sent.length}`, name: move.tool, input: move.input ?? {} };
|
|
233
|
+
yield { type: "tool_call", call };
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
};
|
|
237
|
+
return { adapter, sent };
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/** The app, in memory, with the `helper` alias on a script. */
|
|
241
|
+
export async function start(moves: Move[] = []) {
|
|
242
|
+
const store = memoryStore();
|
|
243
|
+
const helper = scripted(moves);
|
|
244
|
+
const script = definePlugin({
|
|
245
|
+
name: "test-script",
|
|
246
|
+
resources: { provider: { script: { adapter: "script" } }, model: { helper: "script/helper" } },
|
|
247
|
+
adapters: { llm: { script: helper.adapter } },
|
|
248
|
+
});
|
|
249
|
+
const runtime = await createRuntime({ store, plugins: [...plugins(), script] });
|
|
250
|
+
return { runtime, store, helper };
|
|
251
|
+
}
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
`tests/tasks.test.ts`:
|
|
255
|
+
|
|
256
|
+
```ts
|
|
257
|
+
import assert from "node:assert/strict";
|
|
258
|
+
import { test } from "node:test";
|
|
259
|
+
import { type Actor, personOf } from "copilotz";
|
|
260
|
+
import { start } from "./kit.ts";
|
|
261
|
+
|
|
262
|
+
test("the agent adds a task for Ana, through the same Action", async () => {
|
|
263
|
+
const { runtime, store, helper } = await start([
|
|
264
|
+
{ tool: "add_task", input: { title: "Bo" } },
|
|
265
|
+
"Done.",
|
|
266
|
+
]);
|
|
267
|
+
try {
|
|
268
|
+
const ana: Actor = { kind: "person", id: "ana" };
|
|
269
|
+
const { space } = await runtime.call<{ space: string }>("space.personal", {}, { actor: ana });
|
|
270
|
+
const here: Actor = { ...ana, in: space };
|
|
271
|
+
await runtime.call("chat.send", { in: space, text: "Add Bo." }, { actor: here });
|
|
272
|
+
await runtime.idle();
|
|
273
|
+
assert.equal(helper.sent[1].messages.at(-1)?.text, "- Bo"); // what the model read
|
|
274
|
+
const made = (await store.events(0)).find((e) => e.type === "task.created");
|
|
275
|
+
assert.equal(personOf(made?.actor), "ana"); // the record: written for Ana…
|
|
276
|
+
assert.equal(made?.actor?.kind, "agent"); // …by the agent
|
|
277
|
+
const seen = await runtime.observe<string>("tasks", {}, { actor: here }).ready;
|
|
278
|
+
assert.deepEqual(seen, { status: "ready", value: "- Bo" }); // what Ana sees
|
|
279
|
+
} finally {
|
|
280
|
+
await runtime.close();
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
Test what callers may not do as well: call as someone else, and `assert.rejects`.
|
|
286
|
+
|
|
287
|
+
## Rules: do this, not that
|
|
288
|
+
|
|
289
|
+
- **One Action per change, called from every way in.** A button and a tool call it with `ctx.call`,
|
|
290
|
+
a script with `runtime.call`. Never add a second, looser path. A tool is a thin caller of Actions.
|
|
291
|
+
- **Rules at the data, not in handlers.** Name a collection in the `shared` resource (its documents
|
|
292
|
+
live `in` a space; `part` ties one to another document, as a booking to its chat), or write a
|
|
293
|
+
`guard`. Don't filter by who's asking inside an Action. To keep a collection changing only through
|
|
294
|
+
its Actions, refuse `direct` writes in a `guard`.
|
|
295
|
+
- **Say `allow` on every Action outsiders call:** `people`, `contacts`, `peopleOrContacts`,
|
|
296
|
+
`publicCallers`, or `inPerson` for what only the person decides (consent, keys, who's in a space,
|
|
297
|
+
money). Write it by kind, never by identity. It's asked of agents too, and of whom they work for.
|
|
298
|
+
An Action without `allow` is internal.
|
|
299
|
+
- **A View for whatever anyone reads, a model included.** Each tool gets a `tool:<name>` View: short
|
|
300
|
+
text, with ids the model can act on. A failed call's output is its error's words; pass them on,
|
|
301
|
+
don't throw. An MCP server that offers a tool without its View doesn't start.
|
|
302
|
+
- **A View reads in its own body.** A React View reads with `ctx.db` and hands the result to its
|
|
303
|
+
component, so it stays live. Views never write.
|
|
304
|
+
- **Errors for callers are `failure(code, message, { public: true })`.** Only a public failure's
|
|
305
|
+
words reach a caller outside or a model.
|
|
306
|
+
- **Settings are resources, not code.** `app.ts` reads no environment: the server, the terminal or a
|
|
307
|
+
test passes settings in. Agents name a model alias that the app sets.
|
|
308
|
+
- **Writes that must agree go in one `ctx.transaction`.** A refused write rolls it all back. It
|
|
309
|
+
holds the store's writer, so keep slow work out.
|
|
310
|
+
- **Who acts:** `personOf(ctx.actor)`, not `ctx.actor.id` (an agent's is its own). Where: `ctx.in`.
|
|
311
|
+
A tool works where its chat is.
|
|
312
|
+
- **Going past the actor's reach is a named grant,** `ctx.as(grant("…"))`, in trusted code, on the
|
|
313
|
+
record. Keys stay in code: never in Action inputs (they're recorded), never with a model.
|
|
314
|
+
- **An agent tells a conversation only what everyone in it could see.** Its work reads what both its
|
|
315
|
+
asker and the place its answer goes reach: a space and what it draws on; a customer's chat, what
|
|
316
|
+
that customer reaches (a space drawing on another with `contacts: "read"` lets them read it); its
|
|
317
|
+
person's Personal space, all they reach. Writing anywhere its readers don't all reach that asks
|
|
318
|
+
the person first (`needs_approval`): don't catch it, let it through to the turn.
|
|
319
|
+
- **A tool that goes past its caller, offered to a contact or the public, is a declassifier.** Scope
|
|
320
|
+
it to them (their own bookings, never any record), take no free-form query that could widen it,
|
|
321
|
+
and return only what they may see. In a customer's chat, an Action people call that goes past its
|
|
322
|
+
caller is refused; the app's own (no `allow`) runs as its tool chose. The public (`publicCallers`,
|
|
323
|
+
`{ kind: "public" }`) reads only spaces that have it as a viewer, and writes nothing.
|
|
324
|
+
- **Outside effects:** write the intent, call out with its id as the idempotency key (a tool's
|
|
325
|
+
`callId`), then write the result.
|
|
326
|
+
- **Online:** `devSignIn` is for this machine only; Copilotz won't start it with a public origin.
|
|
327
|
+
Keep the `links` secret (32 bytes or more) across restarts, or MCP conversations start over.
|
|
328
|
+
|
|
329
|
+
## Recipes
|
|
330
|
+
|
|
331
|
+
Each link is a page as Markdown. GS is Getting Started (a salon's bookings, 10 chapters). BC is
|
|
332
|
+
Build Compass (41 chapters, written for an earlier release candidate: check names in the reference).
|
|
333
|
+
|
|
334
|
+
- A plugin: [GS 1](https://copilotz.com/docs/getting-started/01-one-booking.md). People, contacts,
|
|
335
|
+
spaces, the rules: [GS 2](https://copilotz.com/docs/getting-started/02-who-sees-what.md).
|
|
336
|
+
- The web: [GS 3](https://copilotz.com/docs/getting-started/03-its-own-web-page.md),
|
|
337
|
+
[serving on the web](https://copilotz.com/docs/guides/serving-on-the-web.md). An agent and its
|
|
338
|
+
tools: [GS 4](https://copilotz.com/docs/getting-started/04-its-own-agent.md).
|
|
339
|
+
- MCP: [GS 5](https://copilotz.com/docs/getting-started/05-chatgpt-claude-and-gemini-over-mcp.md).
|
|
340
|
+
One test, every way in:
|
|
341
|
+
[GS 6](https://copilotz.com/docs/getting-started/06-the-same-bookings-every-way-in.md).
|
|
342
|
+
- Widgets: [GS 7](https://copilotz.com/docs/getting-started/07-a-widget-in-the-assistant.md). A
|
|
343
|
+
site's chat: [GS 8](https://copilotz.com/docs/getting-started/08-a-chat-on-your-site.md).
|
|
344
|
+
WhatsApp: [GS 9](https://copilotz.com/docs/getting-started/09-whatsapp.md).
|
|
345
|
+
- Shipping (SQLite, PostgreSQL, sign-in by email):
|
|
346
|
+
[GS 10](https://copilotz.com/docs/getting-started/10-shipping-the-salon.md). A container of 512
|
|
347
|
+
MiB or less (Deno 2.9+, `--max-semi-space-size=2`, SQLite's cache, each plugin from its own entry
|
|
348
|
+
point): [memory](https://copilotz.com/docs/operations/memory.md).
|
|
349
|
+
- The prompt and context Views:
|
|
350
|
+
[BC 2](https://copilotz.com/docs/build-compass/part-1-an-agent-of-your-own/02-north-in-your-terminal.md),
|
|
351
|
+
[BC 4](https://copilotz.com/docs/build-compass/part-2-your-own-plugins/04-today-every-turn.md).
|
|
352
|
+
- A Processor:
|
|
353
|
+
[BC 6](https://copilotz.com/docs/build-compass/part-2-your-own-plugins/06-chats-that-name-themselves.md).
|
|
354
|
+
Transactions:
|
|
355
|
+
[BC 9](https://copilotz.com/docs/build-compass/part-3-the-board/09-the-boards-data-and-actions.md).
|
|
356
|
+
- Schedules and a manual clock:
|
|
357
|
+
[BC 27](https://copilotz.com/docs/build-compass/part-8-skills-and-routines/27-routines-on-a-schedule.md).
|
|
358
|
+
Fakes at the edges:
|
|
359
|
+
[BC 31](https://copilotz.com/docs/build-compass/part-10-testing/31-fakes-at-the-edges.md).
|
|
360
|
+
- Scripts over REST: [REST and the client](https://copilotz.com/docs/guides/rest-and-the-client.md).
|
|
361
|
+
Many orgs: [many orgs](https://copilotz.com/docs/guides/many-orgs.md).
|
|
362
|
+
- Every entry point, option, event and context field:
|
|
363
|
+
[reference](https://copilotz.com/docs/reference.md). Each of Copilotz's plugins (`chat`, `spaces`,
|
|
364
|
+
`mcp`…): [plugins](https://copilotz.com/docs/reference/plugins.md). How it runs:
|
|
365
|
+
[architecture](https://copilotz.com/docs/architecture.md).
|
|
366
|
+
|
|
367
|
+
## Entry points
|
|
368
|
+
|
|
369
|
+
The same names on npm (`copilotz/…`) and JSR (`@copilotz/copilotz/…`); the package's `package.json`
|
|
370
|
+
lists them all. Besides those above: `copilotz/stores/sqlite` and `copilotz/stores/postgres`
|
|
371
|
+
(stores), `copilotz/plugins/interfaces` (`mcp`, `api`, `whatsapp`, `voice`, `webLines`),
|
|
372
|
+
`copilotz/web` (the web host, `web`), `copilotz/web/pt-br` (`ptBR`: every web word in Brazilian
|
|
373
|
+
Portuguese, first among the page's plugins), `copilotz/web/server` (`webPage`), `copilotz/web/node`
|
|
374
|
+
(`listen`, `serve`, `bundle`), `copilotz/terminal` (`terminal`) and `copilotz/testing`. Each plugin
|
|
375
|
+
of `agents`, `access` and `interfaces` is also its own entry point, which loads it alone:
|
|
376
|
+
`copilotz/plugins/interfaces/mcp`, `copilotz/plugins/agents/chat`, `copilotz/plugins/access/spaces`…
|
|
377
|
+
Front ends sit beside each theme (`copilotz/plugins/agents/web` has `chatWeb`). Product packages
|
|
378
|
+
ship at the same version: `@copilotz/work` (`boards`, `documents`), `@copilotz/team`,
|
|
379
|
+
`@copilotz/directory` and `@copilotz/billing`.
|
|
380
|
+
|
|
381
|
+
## Working on Copilotz itself
|
|
382
|
+
|
|
383
|
+
[CONTRIBUTING.md](CONTRIBUTING.md) has the rest. The checks:
|
|
384
|
+
|
|
385
|
+
```sh
|
|
386
|
+
deno task check && deno task test # types, the suite (COPILOTZ_TEST_POSTGRES_URL: PostgreSQL)
|
|
387
|
+
npm install && npm test # the suite on Node 24 (bun test --timeout 60000 on Bun)
|
|
388
|
+
deno fmt --check # the format CI checks
|
|
389
|
+
npm run build && node scripts/npm/smoke.ts && deno publish --dry-run # the packages
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
- The runtime imports nothing outside it. A plugin imports the runtime, the hosts' toolkits, its own
|
|
393
|
+
files and other plugins' `contract.ts` (`testing/boundaries.test.ts`).
|
|
394
|
+
- A plugin is `plugins/<theme>/<name>/`, by primitive, one file per declaration; `mod.ts` only
|
|
395
|
+
assembles it. Tests sit in `plugins/<theme>/tests/`. Factories and plain data, no classes.
|
|
396
|
+
- After changing a plugin, `deno run -A scripts/describe.ts --docs` remakes its reference page.
|
|
397
|
+
After changing docs, `python3 scripts/docs-index.py && deno fmt docs`.
|
|
398
|
+
- `testing/agents-md.test.ts` checks this file's imports, links and version;
|
|
399
|
+
`node scripts/version.ts <version>` moves its version with the rest. Releases are tags the
|
|
400
|
+
maintainers push: don't tag or publish.
|