pairz 0.0.1 → 1.0.0-rc.82
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 +1054 -0
- package/CHANGELOG.md +4460 -0
- package/CONTRIBUTING.md +326 -0
- package/LICENSE +21 -0
- package/README.md +343 -2
- package/cli/bin.js +37 -0
- package/cli/folders.js +155 -0
- package/cli/generate.js +163 -0
- package/cli/import-map.js +141 -0
- package/cli/init.js +40 -0
- package/cli/input-schema.js +580 -0
- package/cli/legacy.js +65 -0
- package/cli/mod.d.ts +2 -0
- package/cli/mod.js +11 -0
- package/cli/run.js +21 -0
- package/cli/template.js +184 -0
- package/cli/watch.js +65 -0
- package/docs/architecture/events.md +124 -0
- package/docs/architecture/the-owner.md +238 -0
- package/docs/architecture/topology.md +128 -0
- package/docs/architecture/transports.md +121 -0
- package/docs/architecture/views.md +100 -0
- package/docs/architecture.md +147 -0
- package/docs/build-compass/part-1-an-agent-of-your-own/01-one-agent-one-message.md +144 -0
- package/docs/build-compass/part-1-an-agent-of-your-own/02-north-in-your-terminal.md +284 -0
- package/docs/build-compass/part-1-an-agent-of-your-own/03-compass-in-the-browser.md +373 -0
- package/docs/build-compass/part-10-testing/31-fakes-at-the-edges.md +350 -0
- package/docs/build-compass/part-10-testing/32-parity.md +225 -0
- package/docs/build-compass/part-11-other-ways-in/33-the-rest-api.md +197 -0
- package/docs/build-compass/part-11-other-ways-in/34-the-client.md +147 -0
- package/docs/build-compass/part-11-other-ways-in/35-your-board-over-mcp.md +255 -0
- package/docs/build-compass/part-12-shipping/36-postgresql-and-blobs.md +200 -0
- package/docs/build-compass/part-12-shipping/37-watching-it-run.md +242 -0
- package/docs/build-compass/part-12-shipping/38-a-computer-for-your-agents.md +325 -0
- package/docs/build-compass/part-13-from-one-person-to-many/39-swapping-in-pairzs-plugins.md +245 -0
- package/docs/build-compass/part-13-from-one-person-to-many/40-sign-in-and-people.md +218 -0
- package/docs/build-compass/part-13-from-one-person-to-many/41-many-orgs-and-billing.md +246 -0
- package/docs/build-compass/part-2-your-own-plugins/04-today-every-turn.md +134 -0
- package/docs/build-compass/part-2-your-own-plugins/05-one-store.md +151 -0
- package/docs/build-compass/part-2-your-own-plugins/06-chats-that-name-themselves.md +157 -0
- package/docs/build-compass/part-2-your-own-plugins/07-spaces.md +299 -0
- package/docs/build-compass/part-2-your-own-plugins/08-spaces-on-the-web.md +169 -0
- package/docs/build-compass/part-3-the-board/09-the-boards-data-and-actions.md +182 -0
- package/docs/build-compass/part-3-the-board/10-the-board-on-screen.md +167 -0
- package/docs/build-compass/part-3-the-board/11-the-board-for-north.md +175 -0
- package/docs/build-compass/part-4-documents/12-documents-and-their-versions.md +305 -0
- package/docs/build-compass/part-4-documents/13-saves-that-merge-or-refuse.md +263 -0
- package/docs/build-compass/part-4-documents/14-documents-on-the-web-and-in-the-terminal.md +255 -0
- package/docs/build-compass/part-4-documents/15-documents-for-north.md +229 -0
- package/docs/build-compass/part-5-long-conversations/16-a-line-for-every-message.md +272 -0
- package/docs/build-compass/part-5-long-conversations/17-the-outline-in-norths-prompt.md +188 -0
- package/docs/build-compass/part-5-long-conversations/18-zoom.md +142 -0
- package/docs/build-compass/part-6-memory/19-memories-found-by-meaning.md +255 -0
- package/docs/build-compass/part-6-memory/20-recall-in-the-prompt.md +228 -0
- package/docs/build-compass/part-6-memory/21-remember-recall-forget.md +203 -0
- package/docs/build-compass/part-6-memory/22-memories-on-their-own.md +200 -0
- package/docs/build-compass/part-7-the-team/23-east-south-and-west.md +186 -0
- package/docs/build-compass/part-7-the-team/24-asking-in-parallel.md +162 -0
- package/docs/build-compass/part-7-the-team/25-reading-other-conversations.md +201 -0
- package/docs/build-compass/part-8-skills-and-routines/26-skills.md +338 -0
- package/docs/build-compass/part-8-skills-and-routines/27-routines-on-a-schedule.md +291 -0
- package/docs/build-compass/part-8-skills-and-routines/28-agents-that-schedule.md +281 -0
- package/docs/build-compass/part-9-the-web-for-agents/29-search-an-adapter-port.md +326 -0
- package/docs/build-compass/part-9-the-web-for-agents/30-reading-a-page-safely.md +246 -0
- package/docs/build-compass.md +323 -0
- package/docs/getting-started/01-one-booking.md +198 -0
- package/docs/getting-started/02-who-sees-what.md +243 -0
- package/docs/getting-started/03-its-own-web-page.md +235 -0
- package/docs/getting-started/04-its-own-agent.md +276 -0
- package/docs/getting-started/05-chatgpt-claude-and-gemini-over-mcp.md +182 -0
- package/docs/getting-started/06-the-same-bookings-every-way-in.md +173 -0
- package/docs/getting-started/07-a-widget-in-the-assistant.md +190 -0
- package/docs/getting-started/08-a-chat-on-your-site.md +206 -0
- package/docs/getting-started/09-whatsapp.md +175 -0
- package/docs/getting-started/10-shipping-the-salon.md +239 -0
- package/docs/getting-started.md +120 -0
- package/docs/guides/a-business-apps-screens.md +1586 -0
- package/docs/guides/agents-on-peoples-plans.md +450 -0
- package/docs/guides/chats.md +151 -0
- package/docs/guides/installing-a-computer.md +112 -0
- package/docs/guides/many-orgs.md +137 -0
- package/docs/guides/public-mcp-server.md +84 -0
- package/docs/guides/rest-and-the-client.md +172 -0
- package/docs/guides/serving-on-the-web.md +499 -0
- package/docs/guides/the-compiler.md +279 -0
- package/docs/guides/the-web-toolkit.md +1971 -0
- package/docs/guides/visitors.md +141 -0
- package/docs/manifest.json +739 -0
- package/docs/operations/maintenance.md +346 -0
- package/docs/operations/memory.md +111 -0
- package/docs/operations/metrics.md +96 -0
- package/docs/operations/stores.md +248 -0
- package/docs/reference/plugins/accounts-web.md +47 -0
- package/docs/reference/plugins/accounts.md +96 -0
- package/docs/reference/plugins/api-web.md +46 -0
- package/docs/reference/plugins/api.md +75 -0
- package/docs/reference/plugins/boards-web.md +47 -0
- package/docs/reference/plugins/boards.md +81 -0
- package/docs/reference/plugins/chat-channels-pt-br.md +53 -0
- package/docs/reference/plugins/chat-channels.md +55 -0
- package/docs/reference/plugins/chat-terminal.md +49 -0
- package/docs/reference/plugins/chat-web.md +65 -0
- package/docs/reference/plugins/chat.md +149 -0
- package/docs/reference/plugins/computers-terminal.md +45 -0
- package/docs/reference/plugins/computers-web.md +53 -0
- package/docs/reference/plugins/computers.md +185 -0
- package/docs/reference/plugins/contacts-web.md +45 -0
- package/docs/reference/plugins/contacts.md +72 -0
- package/docs/reference/plugins/credits-web.md +47 -0
- package/docs/reference/plugins/credits.md +95 -0
- package/docs/reference/plugins/dev-sign-in.md +52 -0
- package/docs/reference/plugins/directory-member.md +57 -0
- package/docs/reference/plugins/directory-web.md +47 -0
- package/docs/reference/plugins/directory.md +112 -0
- package/docs/reference/plugins/documents-web.md +48 -0
- package/docs/reference/plugins/documents.md +88 -0
- package/docs/reference/plugins/email-sign-in.md +100 -0
- package/docs/reference/plugins/email.md +83 -0
- package/docs/reference/plugins/google-sign-in.md +63 -0
- package/docs/reference/plugins/history.md +78 -0
- package/docs/reference/plugins/identity.md +77 -0
- package/docs/reference/plugins/maintenance.md +67 -0
- package/docs/reference/plugins/mcp.md +94 -0
- package/docs/reference/plugins/memory-extraction.md +57 -0
- package/docs/reference/plugins/memory-terminal.md +46 -0
- package/docs/reference/plugins/memory-web.md +47 -0
- package/docs/reference/plugins/memory.md +90 -0
- package/docs/reference/plugins/models.md +66 -0
- package/docs/reference/plugins/openapi.md +66 -0
- package/docs/reference/plugins/password-sign-in.md +82 -0
- package/docs/reference/plugins/push-web.md +46 -0
- package/docs/reference/plugins/push.md +75 -0
- package/docs/reference/plugins/routines-web.md +46 -0
- package/docs/reference/plugins/routines.md +87 -0
- package/docs/reference/plugins/skills-web.md +46 -0
- package/docs/reference/plugins/skills.md +79 -0
- package/docs/reference/plugins/spaces-terminal.md +49 -0
- package/docs/reference/plugins/spaces-web.md +51 -0
- package/docs/reference/plugins/spaces.md +116 -0
- package/docs/reference/plugins/stripe-webhook.md +63 -0
- package/docs/reference/plugins/stripe.md +73 -0
- package/docs/reference/plugins/team-web.md +46 -0
- package/docs/reference/plugins/team.md +93 -0
- package/docs/reference/plugins/terminal-shell.md +45 -0
- package/docs/reference/plugins/terminal.md +62 -0
- package/docs/reference/plugins/tiers-web.md +48 -0
- package/docs/reference/plugins/tiers.md +75 -0
- package/docs/reference/plugins/usage-terminal.md +46 -0
- package/docs/reference/plugins/usage-web.md +46 -0
- package/docs/reference/plugins/usage.md +85 -0
- package/docs/reference/plugins/voice.md +117 -0
- package/docs/reference/plugins/web-lines.md +89 -0
- package/docs/reference/plugins/web-page.md +69 -0
- package/docs/reference/plugins/web-shell.md +52 -0
- package/docs/reference/plugins/webTools.md +66 -0
- package/docs/reference/plugins/whatsapp-web.md +46 -0
- package/docs/reference/plugins/whatsapp.md +127 -0
- package/docs/reference/plugins.json +27020 -0
- package/docs/reference/plugins.md +146 -0
- package/docs/reference.md +1113 -0
- package/exporters/mod.d.ts +27 -0
- package/exporters/mod.js +27 -0
- package/exporters/otlp.d.ts +257 -0
- package/exporters/otlp.js +71 -0
- package/exporters/prometheus.d.ts +12 -0
- package/exporters/prometheus.js +40 -0
- package/hosts/terminal/composer.d.ts +22 -0
- package/hosts/terminal/composer.js +25 -0
- package/hosts/terminal/contract.d.ts +84 -0
- package/hosts/terminal/contract.js +10 -0
- package/hosts/terminal/host.d.ts +45 -0
- package/hosts/terminal/host.js +211 -0
- package/hosts/terminal/mod.d.ts +18 -0
- package/hosts/terminal/mod.js +18 -0
- package/hosts/terminal/part.d.ts +8 -0
- package/hosts/terminal/part.js +24 -0
- package/hosts/terminal/scrollback.d.ts +13 -0
- package/hosts/terminal/scrollback.js +32 -0
- package/hosts/web/assets.d.ts +48 -0
- package/hosts/web/assets.js +134 -0
- package/hosts/web/base.d.ts +6 -0
- package/hosts/web/base.js +16 -0
- package/hosts/web/dom-client.d.ts +9 -0
- package/hosts/web/dom-client.js +4 -0
- package/hosts/web/export.d.ts +19 -0
- package/hosts/web/export.js +19 -0
- package/hosts/web/head.d.ts +10 -0
- package/hosts/web/head.js +65 -0
- package/hosts/web/host-words.d.ts +1 -0
- package/hosts/web/host-words.js +24 -0
- package/hosts/web/host.d.ts +53 -0
- package/hosts/web/host.js +253 -0
- package/hosts/web/install.d.ts +14 -0
- package/hosts/web/install.js +96 -0
- package/hosts/web/lazy.d.ts +21 -0
- package/hosts/web/lazy.js +50 -0
- package/hosts/web/mod.d.ts +115 -0
- package/hosts/web/mod.js +138 -0
- package/hosts/web/node/bundle.d.ts +12 -0
- package/hosts/web/node/bundle.js +46 -0
- package/hosts/web/node/mod.d.ts +60 -0
- package/hosts/web/node/mod.js +60 -0
- package/hosts/web/node/serve.d.ts +92 -0
- package/hosts/web/node/serve.js +143 -0
- package/hosts/web/palette/list.d.ts +22 -0
- package/hosts/web/palette/list.js +51 -0
- package/hosts/web/palette/palette.d.ts +36 -0
- package/hosts/web/palette/palette.js +294 -0
- package/hosts/web/palette/rank.d.ts +16 -0
- package/hosts/web/palette/rank.js +110 -0
- package/hosts/web/palette/row.d.ts +19 -0
- package/hosts/web/palette/row.js +37 -0
- package/hosts/web/palette/sources.d.ts +10 -0
- package/hosts/web/palette/sources.js +67 -0
- package/hosts/web/palette/state.d.ts +120 -0
- package/hosts/web/palette/state.js +31 -0
- package/hosts/web/palette/words.d.ts +1 -0
- package/hosts/web/palette/words.js +23 -0
- package/hosts/web/part.d.ts +23 -0
- package/hosts/web/part.js +72 -0
- package/hosts/web/pt-br/about.d.ts +3 -0
- package/hosts/web/pt-br/about.js +21 -0
- package/hosts/web/pt-br/accounts.d.ts +6 -0
- package/hosts/web/pt-br/accounts.js +39 -0
- package/hosts/web/pt-br/chat.d.ts +3 -0
- package/hosts/web/pt-br/chat.js +330 -0
- package/hosts/web/pt-br/computers.d.ts +7 -0
- package/hosts/web/pt-br/computers.js +243 -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 +54 -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/push.d.ts +3 -0
- package/hosts/web/pt-br/push.js +24 -0
- package/hosts/web/pt-br/shell.d.ts +3 -0
- package/hosts/web/pt-br/shell.js +49 -0
- package/hosts/web/pt-br/sign-in.d.ts +3 -0
- package/hosts/web/pt-br/sign-in.js +97 -0
- package/hosts/web/pt-br/spaces.d.ts +3 -0
- package/hosts/web/pt-br/spaces.js +272 -0
- package/hosts/web/pt-br/toolkit.d.ts +3 -0
- package/hosts/web/pt-br/toolkit.js +114 -0
- package/hosts/web/pt-br/usage.d.ts +3 -0
- package/hosts/web/pt-br/usage.js +156 -0
- package/hosts/web/push.d.ts +32 -0
- package/hosts/web/push.js +138 -0
- package/hosts/web/pwa.d.ts +71 -0
- package/hosts/web/pwa.js +242 -0
- package/hosts/web/route-page.d.ts +53 -0
- package/hosts/web/route-page.js +83 -0
- package/hosts/web/screens.d.ts +17 -0
- package/hosts/web/screens.js +26 -0
- package/hosts/web/server.d.ts +76 -0
- package/hosts/web/server.js +218 -0
- package/hosts/web/session.d.ts +36 -0
- package/hosts/web/session.js +35 -0
- package/hosts/web/signin-email.d.ts +71 -0
- package/hosts/web/signin-email.js +420 -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 +174 -0
- package/hosts/web/signin-words.js +197 -0
- package/hosts/web/signin.d.ts +40 -0
- package/hosts/web/signin.js +260 -0
- package/hosts/web/style.d.ts +16 -0
- package/hosts/web/style.js +65 -0
- package/hosts/web/surface.d.ts +20 -0
- package/hosts/web/surface.js +42 -0
- package/hosts/web/table-address.d.ts +31 -0
- package/hosts/web/table-address.js +71 -0
- package/hosts/web/theme/context.d.ts +2 -0
- package/hosts/web/theme/context.js +8 -0
- package/hosts/web/theme/css.d.ts +37 -0
- package/hosts/web/theme/css.js +125 -0
- package/hosts/web/theme/default.d.ts +68 -0
- package/hosts/web/theme/default.js +191 -0
- package/hosts/web/theme/files/OFL-Manrope.txt +93 -0
- package/hosts/web/theme/files/OFL-SpaceGrotesk.txt +93 -0
- package/hosts/web/theme/files/faces.d.ts +2 -0
- package/hosts/web/theme/files/faces.js +28 -0
- package/hosts/web/theme/files/icon-png.d.ts +2 -0
- package/hosts/web/theme/files/icon-png.js +2 -0
- package/hosts/web/theme/files/manrope-v23-latin-ext.d.ts +2 -0
- package/hosts/web/theme/files/manrope-v23-latin-ext.js +2 -0
- package/hosts/web/theme/files/manrope-v23-latin.d.ts +2 -0
- package/hosts/web/theme/files/manrope-v23-latin.js +2 -0
- package/hosts/web/theme/files/mod.d.ts +21 -0
- package/hosts/web/theme/files/mod.js +35 -0
- package/hosts/web/theme/files/space-grotesk-v22-latin-ext.d.ts +2 -0
- package/hosts/web/theme/files/space-grotesk-v22-latin-ext.js +2 -0
- package/hosts/web/theme/files/space-grotesk-v22-latin.d.ts +2 -0
- package/hosts/web/theme/files/space-grotesk-v22-latin.js +2 -0
- package/hosts/web/theme/files/temml-v0140.d.ts +2 -0
- package/hosts/web/theme/files/temml-v0140.js +2 -0
- package/hosts/web/theme/icon.d.ts +3 -0
- package/hosts/web/theme/icon.js +26 -0
- package/hosts/web/theme/own-path.d.ts +8 -0
- package/hosts/web/theme/own-path.js +14 -0
- package/hosts/web/theme/pairz.d.ts +12 -0
- package/hosts/web/theme/pairz.js +43 -0
- package/hosts/web/theme/picture.d.ts +18 -0
- package/hosts/web/theme/picture.js +74 -0
- package/hosts/web/theme/png.d.ts +19 -0
- package/hosts/web/theme/png.js +387 -0
- package/hosts/web/ticket.d.ts +11 -0
- package/hosts/web/ticket.js +37 -0
- package/hosts/web/toolkit/ago.d.ts +1 -0
- package/hosts/web/toolkit/ago.js +56 -0
- package/hosts/web/toolkit/anchor.d.ts +11 -0
- package/hosts/web/toolkit/anchor.js +80 -0
- package/hosts/web/toolkit/app-bar.d.ts +55 -0
- package/hosts/web/toolkit/app-bar.js +107 -0
- package/hosts/web/toolkit/audio-player.d.ts +29 -0
- package/hosts/web/toolkit/audio-player.js +164 -0
- package/hosts/web/toolkit/autocomplete.d.ts +56 -0
- package/hosts/web/toolkit/autocomplete.js +84 -0
- package/hosts/web/toolkit/avatar.d.ts +29 -0
- package/hosts/web/toolkit/avatar.js +81 -0
- package/hosts/web/toolkit/badge.d.ts +17 -0
- package/hosts/web/toolkit/badge.js +27 -0
- package/hosts/web/toolkit/barcode-png.d.ts +6 -0
- package/hosts/web/toolkit/barcode-png.js +7 -0
- package/hosts/web/toolkit/barcode.d.ts +33 -0
- package/hosts/web/toolkit/barcode.js +34 -0
- package/hosts/web/toolkit/button.d.ts +40 -0
- package/hosts/web/toolkit/button.js +81 -0
- package/hosts/web/toolkit/bytes.d.ts +2 -0
- package/hosts/web/toolkit/bytes.js +13 -0
- package/hosts/web/toolkit/calendar.d.ts +62 -0
- package/hosts/web/toolkit/calendar.js +223 -0
- package/hosts/web/toolkit/card.d.ts +38 -0
- package/hosts/web/toolkit/card.js +32 -0
- package/hosts/web/toolkit/checkbox.d.ts +15 -0
- package/hosts/web/toolkit/checkbox.js +24 -0
- package/hosts/web/toolkit/chip.d.ts +24 -0
- package/hosts/web/toolkit/chip.js +33 -0
- package/hosts/web/toolkit/clock.d.ts +6 -0
- package/hosts/web/toolkit/clock.js +12 -0
- package/hosts/web/toolkit/code-block.d.ts +45 -0
- package/hosts/web/toolkit/code-block.js +111 -0
- package/hosts/web/toolkit/code-lines.d.ts +15 -0
- package/hosts/web/toolkit/code-lines.js +33 -0
- package/hosts/web/toolkit/code128.d.ts +61 -0
- package/hosts/web/toolkit/code128.js +229 -0
- package/hosts/web/toolkit/confirm-dialog.d.ts +71 -0
- package/hosts/web/toolkit/confirm-dialog.js +168 -0
- package/hosts/web/toolkit/confirm-state.d.ts +40 -0
- package/hosts/web/toolkit/confirm-state.js +91 -0
- package/hosts/web/toolkit/copy-button.d.ts +6 -0
- package/hosts/web/toolkit/copy-button.js +28 -0
- package/hosts/web/toolkit/cx.d.ts +2 -0
- package/hosts/web/toolkit/cx.js +2 -0
- package/hosts/web/toolkit/data-table.d.ts +121 -0
- package/hosts/web/toolkit/data-table.js +339 -0
- package/hosts/web/toolkit/date-picker.d.ts +121 -0
- package/hosts/web/toolkit/date-picker.js +409 -0
- package/hosts/web/toolkit/date-time-picker.d.ts +91 -0
- package/hosts/web/toolkit/date-time-picker.js +181 -0
- package/hosts/web/toolkit/dates.d.ts +145 -0
- package/hosts/web/toolkit/dates.js +438 -0
- package/hosts/web/toolkit/day-time-field.d.ts +27 -0
- package/hosts/web/toolkit/day-time-field.js +46 -0
- package/hosts/web/toolkit/day-time-text.d.ts +92 -0
- package/hosts/web/toolkit/day-time-text.js +549 -0
- package/hosts/web/toolkit/day-time-zone.d.ts +16 -0
- package/hosts/web/toolkit/day-time-zone.js +87 -0
- package/hosts/web/toolkit/detail-list.d.ts +39 -0
- package/hosts/web/toolkit/detail-list.js +41 -0
- package/hosts/web/toolkit/detail-value.d.ts +22 -0
- package/hosts/web/toolkit/detail-value.js +135 -0
- package/hosts/web/toolkit/dialog.d.ts +62 -0
- package/hosts/web/toolkit/dialog.js +76 -0
- package/hosts/web/toolkit/drawer.d.ts +23 -0
- package/hosts/web/toolkit/drawer.js +38 -0
- package/hosts/web/toolkit/empty-state.d.ts +25 -0
- package/hosts/web/toolkit/empty-state.js +25 -0
- package/hosts/web/toolkit/export.d.ts +117 -0
- package/hosts/web/toolkit/export.js +294 -0
- package/hosts/web/toolkit/field.d.ts +50 -0
- package/hosts/web/toolkit/field.js +74 -0
- package/hosts/web/toolkit/file-input.d.ts +61 -0
- package/hosts/web/toolkit/file-input.js +152 -0
- package/hosts/web/toolkit/files.d.ts +20 -0
- package/hosts/web/toolkit/files.js +31 -0
- package/hosts/web/toolkit/form-submit.d.ts +29 -0
- package/hosts/web/toolkit/form-submit.js +38 -0
- package/hosts/web/toolkit/form.d.ts +65 -0
- package/hosts/web/toolkit/form.js +94 -0
- package/hosts/web/toolkit/formula-style.d.ts +7 -0
- package/hosts/web/toolkit/formula-style.js +309 -0
- package/hosts/web/toolkit/formula.d.ts +17 -0
- package/hosts/web/toolkit/formula.js +37 -0
- package/hosts/web/toolkit/grid.d.ts +44 -0
- package/hosts/web/toolkit/grid.js +66 -0
- package/hosts/web/toolkit/humanize.d.ts +1 -0
- package/hosts/web/toolkit/humanize.js +42 -0
- package/hosts/web/toolkit/icon-button.d.ts +35 -0
- package/hosts/web/toolkit/icon-button.js +52 -0
- package/hosts/web/toolkit/icon.d.ts +125 -0
- package/hosts/web/toolkit/icon.js +121 -0
- package/hosts/web/toolkit/inline-edit.d.ts +23 -0
- package/hosts/web/toolkit/inline-edit.js +58 -0
- package/hosts/web/toolkit/input.d.ts +49 -0
- package/hosts/web/toolkit/input.js +101 -0
- package/hosts/web/toolkit/kbd.d.ts +6 -0
- package/hosts/web/toolkit/kbd.js +12 -0
- package/hosts/web/toolkit/kept.d.ts +22 -0
- package/hosts/web/toolkit/kept.js +50 -0
- package/hosts/web/toolkit/line-editor.d.ts +44 -0
- package/hosts/web/toolkit/line-editor.js +167 -0
- package/hosts/web/toolkit/list-group.d.ts +47 -0
- package/hosts/web/toolkit/list-group.js +51 -0
- package/hosts/web/toolkit/live-clock.d.ts +31 -0
- package/hosts/web/toolkit/live-clock.js +55 -0
- package/hosts/web/toolkit/logo.d.ts +25 -0
- package/hosts/web/toolkit/logo.js +47 -0
- package/hosts/web/toolkit/long-text.d.ts +15 -0
- package/hosts/web/toolkit/long-text.js +31 -0
- package/hosts/web/toolkit/markdown/blocks.d.ts +46 -0
- package/hosts/web/toolkit/markdown/blocks.js +184 -0
- package/hosts/web/toolkit/markdown/markdown.d.ts +15 -0
- package/hosts/web/toolkit/markdown/markdown.js +123 -0
- package/hosts/web/toolkit/markdown/spans.d.ts +34 -0
- package/hosts/web/toolkit/markdown/spans.js +91 -0
- package/hosts/web/toolkit/mathml.d.ts +14 -0
- package/hosts/web/toolkit/mathml.js +18 -0
- package/hosts/web/toolkit/menu.d.ts +65 -0
- package/hosts/web/toolkit/menu.js +159 -0
- package/hosts/web/toolkit/modal.d.ts +34 -0
- package/hosts/web/toolkit/modal.js +75 -0
- package/hosts/web/toolkit/nav-item.d.ts +33 -0
- package/hosts/web/toolkit/nav-item.js +41 -0
- package/hosts/web/toolkit/notice.d.ts +26 -0
- package/hosts/web/toolkit/notice.js +37 -0
- package/hosts/web/toolkit/page.d.ts +61 -0
- package/hosts/web/toolkit/page.js +93 -0
- package/hosts/web/toolkit/pagination.d.ts +25 -0
- package/hosts/web/toolkit/pagination.js +55 -0
- package/hosts/web/toolkit/pdf-image.d.ts +15 -0
- package/hosts/web/toolkit/pdf-image.js +147 -0
- package/hosts/web/toolkit/pdf.d.ts +152 -0
- package/hosts/web/toolkit/pdf.js +597 -0
- package/hosts/web/toolkit/picker.d.ts +67 -0
- package/hosts/web/toolkit/picker.js +163 -0
- package/hosts/web/toolkit/png.d.ts +21 -0
- package/hosts/web/toolkit/png.js +206 -0
- package/hosts/web/toolkit/popover.d.ts +44 -0
- package/hosts/web/toolkit/popover.js +98 -0
- package/hosts/web/toolkit/print.d.ts +31 -0
- package/hosts/web/toolkit/print.js +28 -0
- package/hosts/web/toolkit/radio.d.ts +18 -0
- package/hosts/web/toolkit/radio.js +23 -0
- package/hosts/web/toolkit/rail-item.d.ts +39 -0
- package/hosts/web/toolkit/rail-item.js +47 -0
- package/hosts/web/toolkit/record-dialog.d.ts +142 -0
- package/hosts/web/toolkit/record-dialog.js +210 -0
- package/hosts/web/toolkit/record-draft.d.ts +64 -0
- package/hosts/web/toolkit/record-draft.js +169 -0
- package/hosts/web/toolkit/refusal.d.ts +8 -0
- package/hosts/web/toolkit/refusal.js +14 -0
- package/hosts/web/toolkit/resample.d.ts +10 -0
- package/hosts/web/toolkit/resample.js +31 -0
- package/hosts/web/toolkit/resize-handle.d.ts +26 -0
- package/hosts/web/toolkit/resize-handle.js +67 -0
- package/hosts/web/toolkit/retail-barcodes.d.ts +10 -0
- package/hosts/web/toolkit/retail-barcodes.js +106 -0
- package/hosts/web/toolkit/return-focus.d.ts +11 -0
- package/hosts/web/toolkit/return-focus.js +35 -0
- package/hosts/web/toolkit/rows-editor.d.ts +62 -0
- package/hosts/web/toolkit/rows-editor.js +126 -0
- package/hosts/web/toolkit/rows.d.ts +36 -0
- package/hosts/web/toolkit/rows.js +66 -0
- package/hosts/web/toolkit/screen.d.ts +20 -0
- package/hosts/web/toolkit/screen.js +15 -0
- package/hosts/web/toolkit/select.d.ts +24 -0
- package/hosts/web/toolkit/select.js +36 -0
- package/hosts/web/toolkit/sheet.d.ts +16 -0
- package/hosts/web/toolkit/sheet.js +2 -0
- package/hosts/web/toolkit/shortcuts.d.ts +72 -0
- package/hosts/web/toolkit/shortcuts.js +195 -0
- package/hosts/web/toolkit/skeleton.d.ts +17 -0
- package/hosts/web/toolkit/skeleton.js +13 -0
- package/hosts/web/toolkit/space.d.ts +6 -0
- package/hosts/web/toolkit/space.js +21 -0
- package/hosts/web/toolkit/spinner.d.ts +13 -0
- package/hosts/web/toolkit/spinner.js +23 -0
- package/hosts/web/toolkit/split.d.ts +31 -0
- package/hosts/web/toolkit/split.js +25 -0
- package/hosts/web/toolkit/stack.d.ts +48 -0
- package/hosts/web/toolkit/stack.js +61 -0
- package/hosts/web/toolkit/switch.d.ts +30 -0
- package/hosts/web/toolkit/switch.js +41 -0
- package/hosts/web/toolkit/table-sheet.d.ts +20 -0
- package/hosts/web/toolkit/table-sheet.js +25 -0
- package/hosts/web/toolkit/table.d.ts +101 -0
- package/hosts/web/toolkit/table.js +97 -0
- package/hosts/web/toolkit/tabs.d.ts +45 -0
- package/hosts/web/toolkit/tabs.js +105 -0
- package/hosts/web/toolkit/tags-input.d.ts +25 -0
- package/hosts/web/toolkit/tags-input.js +90 -0
- package/hosts/web/toolkit/tags.d.ts +10 -0
- package/hosts/web/toolkit/tags.js +18 -0
- package/hosts/web/toolkit/temml.d.ts +8 -0
- package/hosts/web/toolkit/temml.js +29 -0
- package/hosts/web/toolkit/terminal-theme.d.ts +18 -0
- package/hosts/web/toolkit/terminal-theme.js +83 -0
- package/hosts/web/toolkit/terminal.d.ts +58 -0
- package/hosts/web/toolkit/terminal.js +261 -0
- package/hosts/web/toolkit/text.d.ts +36 -0
- package/hosts/web/toolkit/text.js +55 -0
- package/hosts/web/toolkit/textarea.d.ts +13 -0
- package/hosts/web/toolkit/textarea.js +52 -0
- package/hosts/web/toolkit/tile-grid.d.ts +31 -0
- package/hosts/web/toolkit/tile-grid.js +43 -0
- package/hosts/web/toolkit/time.d.ts +12 -0
- package/hosts/web/toolkit/time.js +39 -0
- package/hosts/web/toolkit/title.d.ts +3 -0
- package/hosts/web/toolkit/title.js +10 -0
- package/hosts/web/toolkit/toast-state.d.ts +49 -0
- package/hosts/web/toolkit/toast-state.js +84 -0
- package/hosts/web/toolkit/toast.d.ts +30 -0
- package/hosts/web/toolkit/toast.js +117 -0
- package/hosts/web/toolkit/toolbar.d.ts +28 -0
- package/hosts/web/toolkit/toolbar.js +16 -0
- package/hosts/web/toolkit/tooltip.d.ts +22 -0
- package/hosts/web/toolkit/tooltip.js +76 -0
- package/hosts/web/toolkit/waveform.d.ts +35 -0
- package/hosts/web/toolkit/waveform.js +110 -0
- package/hosts/web/toolkit/words.d.ts +1 -0
- package/hosts/web/toolkit/words.js +132 -0
- package/hosts/web/toolkit/xterm-style.d.ts +3 -0
- package/hosts/web/toolkit/xterm-style.js +67 -0
- package/hosts/web/toolkit/xterm.d.ts +23 -0
- package/hosts/web/toolkit/xterm.js +44 -0
- package/hosts/web/toolkit/zip.d.ts +18 -0
- package/hosts/web/toolkit/zip.js +91 -0
- package/hosts/web/update.d.ts +8 -0
- package/hosts/web/update.js +29 -0
- package/hosts/web/widget.d.ts +31 -0
- package/hosts/web/widget.js +434 -0
- package/hosts/web/widgets.d.ts +43 -0
- package/hosts/web/widgets.js +118 -0
- package/hosts/web/words.d.ts +83 -0
- package/hosts/web/words.js +124 -0
- package/llms.txt +167 -0
- package/package.json +335 -4
- package/plugins/access/accounts/actions/callback.d.ts +1 -0
- package/plugins/access/accounts/actions/callback.js +38 -0
- package/plugins/access/accounts/actions/complete.d.ts +1 -0
- package/plugins/access/accounts/actions/complete.js +42 -0
- package/plugins/access/accounts/actions/connect.d.ts +1 -0
- package/plugins/access/accounts/actions/connect.js +23 -0
- package/plugins/access/accounts/actions/connected.d.ts +1 -0
- package/plugins/access/accounts/actions/connected.js +22 -0
- package/plugins/access/accounts/actions/disconnect.d.ts +1 -0
- package/plugins/access/accounts/actions/disconnect.js +50 -0
- package/plugins/access/accounts/actions/model-key.d.ts +5 -0
- package/plugins/access/accounts/actions/model-key.js +130 -0
- package/plugins/access/accounts/actions/refresh.d.ts +1 -0
- package/plugins/access/accounts/actions/refresh.js +48 -0
- package/plugins/access/accounts/actions/token.d.ts +1 -0
- package/plugins/access/accounts/actions/token.js +54 -0
- package/plugins/access/accounts/collections/account.d.ts +107 -0
- package/plugins/access/accounts/collections/account.js +51 -0
- package/plugins/access/accounts/collections/flow.d.ts +65 -0
- package/plugins/access/accounts/collections/flow.js +20 -0
- package/plugins/access/accounts/collections/model-key.d.ts +69 -0
- package/plugins/access/accounts/collections/model-key.js +42 -0
- package/plugins/access/accounts/contract.d.ts +156 -0
- package/plugins/access/accounts/contract.js +1 -0
- package/plugins/access/accounts/events/changed.d.ts +8 -0
- package/plugins/access/accounts/events/changed.js +14 -0
- package/plugins/access/accounts/mod.d.ts +63 -0
- package/plugins/access/accounts/mod.js +141 -0
- package/plugins/access/accounts/resources/chatgpt.d.ts +17 -0
- package/plugins/access/accounts/resources/chatgpt.js +52 -0
- package/plugins/access/accounts/resources/models.d.ts +24 -0
- package/plugins/access/accounts/resources/models.js +21 -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/errors.d.ts +19 -0
- package/plugins/access/accounts/shared/errors.js +19 -0
- package/plugins/access/accounts/shared/flow.d.ts +28 -0
- package/plugins/access/accounts/shared/flow.js +141 -0
- package/plugins/access/accounts/shared/oauth.d.ts +50 -0
- package/plugins/access/accounts/shared/oauth.js +144 -0
- package/plugins/access/accounts/shared/renew.d.ts +20 -0
- package/plugins/access/accounts/shared/renew.js +104 -0
- package/plugins/access/accounts/shared/rules.d.ts +11 -0
- package/plugins/access/accounts/shared/rules.js +22 -0
- package/plugins/access/accounts/shared/seal.d.ts +11 -0
- package/plugins/access/accounts/shared/seal.js +63 -0
- package/plugins/access/accounts/shared/settings.d.ts +37 -0
- package/plugins/access/accounts/shared/settings.js +31 -0
- package/plugins/access/accounts/views/web/accounts.d.ts +21 -0
- package/plugins/access/accounts/views/web/accounts.js +84 -0
- package/plugins/access/accounts/views/web/card.d.ts +14 -0
- package/plugins/access/accounts/views/web/card.js +19 -0
- package/plugins/access/accounts/views/web/connect.d.ts +41 -0
- package/plugins/access/accounts/views/web/connect.js +163 -0
- package/plugins/access/accounts/views/web/disconnect.d.ts +16 -0
- package/plugins/access/accounts/views/web/disconnect.js +31 -0
- package/plugins/access/accounts/views/web/own-keys.d.ts +12 -0
- package/plugins/access/accounts/views/web/own-keys.js +112 -0
- package/plugins/access/accounts/views/web/palette.d.ts +11 -0
- package/plugins/access/accounts/views/web/palette.js +71 -0
- package/plugins/access/accounts/views/web/style.d.ts +6 -0
- package/plugins/access/accounts/views/web/style.js +79 -0
- package/plugins/access/accounts/views/web/words.d.ts +31 -0
- package/plugins/access/accounts/views/web/words.js +104 -0
- package/plugins/access/accounts/web.d.ts +28 -0
- package/plugins/access/accounts/web.js +47 -0
- 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 +74 -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 +112 -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 +101 -0
- package/plugins/access/email/actions/send.d.ts +1 -0
- package/plugins/access/email/actions/send.js +101 -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 +109 -0
- package/plugins/access/email/adapters/capture.d.ts +13 -0
- package/plugins/access/email/adapters/capture.js +28 -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 +42 -0
- package/plugins/access/email/adapters/sendmail.d.ts +13 -0
- package/plugins/access/email/adapters/sendmail.js +59 -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 +111 -0
- package/plugins/access/email/collections/code.js +39 -0
- package/plugins/access/email/collections/login.d.ts +71 -0
- package/plugins/access/email/collections/login.js +28 -0
- package/plugins/access/email/collections/password-login.d.ts +63 -0
- package/plugins/access/email/collections/password-login.js +26 -0
- package/plugins/access/email/collections/rate.d.ts +44 -0
- package/plugins/access/email/collections/rate.js +14 -0
- package/plugins/access/email/contract.d.ts +240 -0
- package/plugins/access/email/contract.js +8 -0
- package/plugins/access/email/mod.d.ts +79 -0
- package/plugins/access/email/mod.js +204 -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 +37 -0
- package/plugins/access/email/shared/mail.js +71 -0
- package/plugins/access/email/shared/mime.d.ts +28 -0
- package/plugins/access/email/shared/mime.js +179 -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.d.ts +1 -0
- package/plugins/access/google/actions/sign-in.js +42 -0
- package/plugins/access/google/adapters/keys.d.ts +10 -0
- package/plugins/access/google/adapters/keys.js +17 -0
- package/plugins/access/google/mod.d.ts +22 -0
- package/plugins/access/google/mod.js +34 -0
- package/plugins/access/google/routes/sign-in.d.ts +12 -0
- package/plugins/access/google/routes/sign-in.js +36 -0
- package/plugins/access/google/shared/jwt.d.ts +19 -0
- package/plugins/access/google/shared/jwt.js +29 -0
- package/plugins/access/google/shared/settings.d.ts +9 -0
- package/plugins/access/google/shared/settings.js +1 -0
- package/plugins/access/identity/actions/person.d.ts +9 -0
- package/plugins/access/identity/actions/person.js +84 -0
- package/plugins/access/identity/actions/session.d.ts +3 -0
- package/plugins/access/identity/actions/session.js +71 -0
- package/plugins/access/identity/collections/credential.d.ts +82 -0
- package/plugins/access/identity/collections/credential.js +45 -0
- package/plugins/access/identity/collections/person.d.ts +78 -0
- package/plugins/access/identity/collections/person.js +33 -0
- package/plugins/access/identity/contract.d.ts +21 -0
- package/plugins/access/identity/contract.js +18 -0
- package/plugins/access/identity/mod.d.ts +32 -0
- package/plugins/access/identity/mod.js +71 -0
- 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 +46 -0
- package/plugins/access/mod.js +15 -0
- package/plugins/access/spaces/actions/agents.d.ts +2 -0
- package/plugins/access/spaces/actions/agents.js +57 -0
- package/plugins/access/spaces/actions/archive.d.ts +1 -0
- package/plugins/access/spaces/actions/archive.js +34 -0
- package/plugins/access/spaces/actions/can.d.ts +1 -0
- package/plugins/access/spaces/actions/can.js +26 -0
- package/plugins/access/spaces/actions/create.d.ts +1 -0
- package/plugins/access/spaces/actions/create.js +54 -0
- package/plugins/access/spaces/actions/invitation.d.ts +3 -0
- package/plugins/access/spaces/actions/invitation.js +126 -0
- 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.d.ts +1 -0
- package/plugins/access/spaces/actions/leave.js +37 -0
- package/plugins/access/spaces/actions/member.d.ts +8 -0
- package/plugins/access/spaces/actions/member.js +195 -0
- package/plugins/access/spaces/actions/org.d.ts +32 -0
- package/plugins/access/spaces/actions/org.js +261 -0
- package/plugins/access/spaces/actions/personal.d.ts +1 -0
- package/plugins/access/spaces/actions/personal.js +41 -0
- package/plugins/access/spaces/actions/rename.d.ts +1 -0
- package/plugins/access/spaces/actions/rename.js +39 -0
- package/plugins/access/spaces/actions/request.d.ts +2 -0
- package/plugins/access/spaces/actions/request.js +46 -0
- package/plugins/access/spaces/collections/invitation.d.ts +80 -0
- package/plugins/access/spaces/collections/invitation.js +43 -0
- package/plugins/access/spaces/collections/member.d.ts +89 -0
- package/plugins/access/spaces/collections/member.js +32 -0
- package/plugins/access/spaces/collections/profile.d.ts +54 -0
- package/plugins/access/spaces/collections/profile.js +54 -0
- package/plugins/access/spaces/collections/request.d.ts +66 -0
- package/plugins/access/spaces/collections/request.js +29 -0
- package/plugins/access/spaces/collections/space.d.ts +85 -0
- package/plugins/access/spaces/collections/space.js +73 -0
- package/plugins/access/spaces/contract.d.ts +132 -0
- package/plugins/access/spaces/contract.js +5 -0
- package/plugins/access/spaces/mod.d.ts +80 -0
- package/plugins/access/spaces/mod.js +154 -0
- package/plugins/access/spaces/processors/agent-gone.d.ts +7 -0
- package/plugins/access/spaces/processors/agent-gone.js +13 -0
- 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.d.ts +11 -0
- package/plugins/access/spaces/resources/commands.js +212 -0
- package/plugins/access/spaces/resources/tools.d.ts +2 -0
- package/plugins/access/spaces/resources/tools.js +50 -0
- package/plugins/access/spaces/shared/agents.d.ts +48 -0
- package/plugins/access/spaces/shared/agents.js +101 -0
- 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 +33 -0
- package/plugins/access/spaces/shared/labels.js +97 -0
- package/plugins/access/spaces/shared/managers.d.ts +9 -0
- package/plugins/access/spaces/shared/managers.js +15 -0
- 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 +8 -0
- package/plugins/access/spaces/shared/personal.js +13 -0
- package/plugins/access/spaces/shared/profile.d.ts +21 -0
- package/plugins/access/spaces/shared/profile.js +27 -0
- package/plugins/access/spaces/shared/reach.d.ts +145 -0
- package/plugins/access/spaces/shared/reach.js +443 -0
- package/plugins/access/spaces/shared/rules.d.ts +47 -0
- package/plugins/access/spaces/shared/rules.js +152 -0
- package/plugins/access/spaces/shared/seat.d.ts +15 -0
- package/plugins/access/spaces/shared/seat.js +44 -0
- package/plugins/access/spaces/terminal.d.ts +7 -0
- package/plugins/access/spaces/terminal.js +14 -0
- package/plugins/access/spaces/views/elsewhere.d.ts +16 -0
- package/plugins/access/spaces/views/elsewhere.js +53 -0
- package/plugins/access/spaces/views/terminal/spaces.d.ts +10 -0
- package/plugins/access/spaces/views/terminal/spaces.js +3 -0
- package/plugins/access/spaces/views/web/agents.d.ts +44 -0
- package/plugins/access/spaces/views/web/agents.js +94 -0
- package/plugins/access/spaces/views/web/header.d.ts +29 -0
- package/plugins/access/spaces/views/web/header.js +97 -0
- package/plugins/access/spaces/views/web/invitation.d.ts +17 -0
- package/plugins/access/spaces/views/web/invitation.js +41 -0
- package/plugins/access/spaces/views/web/invitations.d.ts +12 -0
- package/plugins/access/spaces/views/web/invitations.js +24 -0
- package/plugins/access/spaces/views/web/invite-dialog.d.ts +21 -0
- package/plugins/access/spaces/views/web/invite-dialog.js +17 -0
- package/plugins/access/spaces/views/web/invite.d.ts +18 -0
- package/plugins/access/spaces/views/web/invite.js +59 -0
- package/plugins/access/spaces/views/web/invited.d.ts +9 -0
- package/plugins/access/spaces/views/web/invited.js +12 -0
- package/plugins/access/spaces/views/web/inviting.d.ts +15 -0
- package/plugins/access/spaces/views/web/inviting.js +54 -0
- package/plugins/access/spaces/views/web/members.d.ts +19 -0
- package/plugins/access/spaces/views/web/members.js +160 -0
- package/plugins/access/spaces/views/web/new-space.d.ts +5 -0
- package/plugins/access/spaces/views/web/new-space.js +42 -0
- package/plugins/access/spaces/views/web/not-here.d.ts +14 -0
- package/plugins/access/spaces/views/web/not-here.js +89 -0
- package/plugins/access/spaces/views/web/org-about.d.ts +12 -0
- package/plugins/access/spaces/views/web/org-about.js +89 -0
- package/plugins/access/spaces/views/web/org-members.d.ts +16 -0
- package/plugins/access/spaces/views/web/org-members.js +244 -0
- package/plugins/access/spaces/views/web/palette.d.ts +17 -0
- package/plugins/access/spaces/views/web/palette.js +156 -0
- package/plugins/access/spaces/views/web/panel.d.ts +14 -0
- package/plugins/access/spaces/views/web/panel.js +70 -0
- package/plugins/access/spaces/views/web/pending.d.ts +17 -0
- package/plugins/access/spaces/views/web/pending.js +34 -0
- package/plugins/access/spaces/views/web/pick.d.ts +21 -0
- package/plugins/access/spaces/views/web/pick.js +63 -0
- 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.d.ts +13 -0
- package/plugins/access/spaces/views/web/settings.js +185 -0
- package/plugins/access/spaces/views/web/space.d.ts +17 -0
- package/plugins/access/spaces/views/web/space.js +85 -0
- package/plugins/access/spaces/views/web/spaces.d.ts +16 -0
- package/plugins/access/spaces/views/web/spaces.js +33 -0
- package/plugins/access/spaces/views/web/steps.d.ts +19 -0
- package/plugins/access/spaces/views/web/steps.js +122 -0
- package/plugins/access/spaces/views/web/style.d.ts +9 -0
- package/plugins/access/spaces/views/web/style.js +279 -0
- package/plugins/access/spaces/views/web/tabs.d.ts +39 -0
- package/plugins/access/spaces/views/web/tabs.js +41 -0
- package/plugins/access/spaces/views/web/tree.d.ts +52 -0
- package/plugins/access/spaces/views/web/tree.js +127 -0
- package/plugins/access/spaces/views/web/who.d.ts +102 -0
- package/plugins/access/spaces/views/web/who.js +150 -0
- package/plugins/access/spaces/views/web/words.d.ts +1 -0
- package/plugins/access/spaces/views/web/words.js +291 -0
- package/plugins/access/spaces/views/where.d.ts +11 -0
- package/plugins/access/spaces/views/where.js +48 -0
- package/plugins/access/spaces/web.d.ts +35 -0
- package/plugins/access/spaces/web.js +138 -0
- package/plugins/access/terminal.d.ts +2 -0
- package/plugins/access/terminal.js +2 -0
- package/plugins/access/web.d.ts +4 -0
- package/plugins/access/web.js +4 -0
- package/plugins/agents/chat/actions/approve.d.ts +1 -0
- package/plugins/agents/chat/actions/approve.js +109 -0
- package/plugins/agents/chat/actions/archive.d.ts +1 -0
- package/plugins/agents/chat/actions/archive.js +95 -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.d.ts +1 -0
- package/plugins/agents/chat/actions/fork.js +47 -0
- 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.d.ts +1 -0
- package/plugins/agents/chat/actions/move.js +55 -0
- 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 +77 -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/rename.d.ts +1 -0
- package/plugins/agents/chat/actions/rename.js +49 -0
- package/plugins/agents/chat/actions/say.d.ts +1 -0
- package/plugins/agents/chat/actions/say.js +168 -0
- package/plugins/agents/chat/actions/send.d.ts +11 -0
- package/plugins/agents/chat/actions/send.js +419 -0
- 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.d.ts +1 -0
- package/plugins/agents/chat/actions/stop.js +81 -0
- package/plugins/agents/chat/actions/unmark.d.ts +1 -0
- package/plugins/agents/chat/actions/unmark.js +100 -0
- package/plugins/agents/chat/actions/welcomed.d.ts +1 -0
- package/plugins/agents/chat/actions/welcomed.js +20 -0
- package/plugins/agents/chat/channels.d.ts +27 -0
- package/plugins/agents/chat/channels.js +124 -0
- package/plugins/agents/chat/collections/approval.d.ts +300 -0
- package/plugins/agents/chat/collections/approval.js +107 -0
- package/plugins/agents/chat/collections/file.d.ts +214 -0
- package/plugins/agents/chat/collections/file.js +108 -0
- package/plugins/agents/chat/collections/grant.d.ts +107 -0
- package/plugins/agents/chat/collections/grant.js +47 -0
- package/plugins/agents/chat/collections/intent.d.ts +176 -0
- package/plugins/agents/chat/collections/intent.js +73 -0
- package/plugins/agents/chat/collections/live.d.ts +159 -0
- package/plugins/agents/chat/collections/live.js +75 -0
- package/plugins/agents/chat/collections/message.d.ts +557 -0
- package/plugins/agents/chat/collections/message.js +250 -0
- package/plugins/agents/chat/collections/shown.d.ts +98 -0
- package/plugins/agents/chat/collections/shown.js +34 -0
- package/plugins/agents/chat/collections/thread.d.ts +260 -0
- package/plugins/agents/chat/collections/thread.js +192 -0
- package/plugins/agents/chat/collections/wait.d.ts +98 -0
- package/plugins/agents/chat/collections/wait.js +23 -0
- package/plugins/agents/chat/collections/welcome.d.ts +16 -0
- package/plugins/agents/chat/collections/welcome.js +27 -0
- package/plugins/agents/chat/contract.d.ts +71 -0
- package/plugins/agents/chat/contract.js +45 -0
- package/plugins/agents/chat/events/turn-requested.d.ts +3 -0
- package/plugins/agents/chat/events/turn-requested.js +15 -0
- package/plugins/agents/chat/mod.d.ts +134 -0
- package/plugins/agents/chat/mod.js +310 -0
- package/plugins/agents/chat/processors/failed.d.ts +3 -0
- package/plugins/agents/chat/processors/failed.js +60 -0
- package/plugins/agents/chat/processors/turn.d.ts +17 -0
- package/plugins/agents/chat/processors/turn.js +474 -0
- package/plugins/agents/chat/resources/commands.d.ts +17 -0
- package/plugins/agents/chat/resources/commands.js +406 -0
- 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 +87 -0
- package/plugins/agents/chat/shared/agents.js +114 -0
- package/plugins/agents/chat/shared/asks.d.ts +81 -0
- package/plugins/agents/chat/shared/asks.js +203 -0
- package/plugins/agents/chat/shared/chat-of.d.ts +27 -0
- package/plugins/agents/chat/shared/chat-of.js +32 -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 +68 -0
- package/plugins/agents/chat/shared/delivery.js +294 -0
- package/plugins/agents/chat/shared/lineage.d.ts +44 -0
- package/plugins/agents/chat/shared/lineage.js +88 -0
- package/plugins/agents/chat/shared/live.d.ts +44 -0
- package/plugins/agents/chat/shared/live.js +88 -0
- 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 +55 -0
- package/plugins/agents/chat/shared/send.js +380 -0
- package/plugins/agents/chat/shared/share.d.ts +48 -0
- package/plugins/agents/chat/shared/share.js +67 -0
- package/plugins/agents/chat/shared/summary.d.ts +65 -0
- package/plugins/agents/chat/shared/summary.js +41 -0
- package/plugins/agents/chat/shared/threads.d.ts +50 -0
- package/plugins/agents/chat/shared/threads.js +15 -0
- package/plugins/agents/chat/shared/tools.d.ts +42 -0
- package/plugins/agents/chat/shared/tools.js +61 -0
- package/plugins/agents/chat/shared/types.d.ts +404 -0
- package/plugins/agents/chat/shared/types.js +9 -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 +12 -0
- package/plugins/agents/chat/terminal.js +34 -0
- 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 +11 -0
- package/plugins/agents/chat/views/context.js +9 -0
- 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 +16 -0
- package/plugins/agents/chat/views/history.js +3 -0
- package/plugins/agents/chat/views/message.d.ts +12 -0
- package/plugins/agents/chat/views/message.js +110 -0
- package/plugins/agents/chat/views/participants.d.ts +8 -0
- package/plugins/agents/chat/views/participants.js +26 -0
- package/plugins/agents/chat/views/prompt.d.ts +12 -0
- package/plugins/agents/chat/views/prompt.js +115 -0
- package/plugins/agents/chat/views/seen.d.ts +7 -0
- package/plugins/agents/chat/views/seen.js +7 -0
- package/plugins/agents/chat/views/terminal/agent-prompt.d.ts +7 -0
- package/plugins/agents/chat/views/terminal/agent-prompt.js +18 -0
- 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.d.ts +7 -0
- package/plugins/agents/chat/views/terminal/author.js +11 -0
- package/plugins/agents/chat/views/terminal/conversation.d.ts +5 -0
- package/plugins/agents/chat/views/terminal/conversation.js +24 -0
- package/plugins/agents/chat/views/terminal/live.d.ts +4 -0
- package/plugins/agents/chat/views/terminal/live.js +16 -0
- package/plugins/agents/chat/views/terminal/message.d.ts +4 -0
- package/plugins/agents/chat/views/terminal/message.js +34 -0
- 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/terminal/retrying.d.ts +7 -0
- package/plugins/agents/chat/views/terminal/retrying.js +22 -0
- package/plugins/agents/chat/views/terminal/threads.d.ts +13 -0
- package/plugins/agents/chat/views/terminal/threads.js +2 -0
- package/plugins/agents/chat/views/web/add.d.ts +33 -0
- package/plugins/agents/chat/views/web/add.js +88 -0
- package/plugins/agents/chat/views/web/agents.d.ts +89 -0
- package/plugins/agents/chat/views/web/agents.js +107 -0
- package/plugins/agents/chat/views/web/archive.d.ts +42 -0
- package/plugins/agents/chat/views/web/archive.js +45 -0
- package/plugins/agents/chat/views/web/archived-note.d.ts +15 -0
- package/plugins/agents/chat/views/web/archived-note.js +26 -0
- package/plugins/agents/chat/views/web/archived.d.ts +14 -0
- package/plugins/agents/chat/views/web/archived.js +26 -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 +28 -0
- package/plugins/agents/chat/views/web/attach.js +37 -0
- 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/chat-row.d.ts +25 -0
- package/plugins/agents/chat/views/web/chat-row.js +41 -0
- package/plugins/agents/chat/views/web/chats.d.ts +24 -0
- package/plugins/agents/chat/views/web/chats.js +138 -0
- package/plugins/agents/chat/views/web/composer.d.ts +135 -0
- package/plugins/agents/chat/views/web/composer.js +504 -0
- package/plugins/agents/chat/views/web/conversation.d.ts +94 -0
- package/plugins/agents/chat/views/web/conversation.js +351 -0
- package/plugins/agents/chat/views/web/download.d.ts +8 -0
- package/plugins/agents/chat/views/web/download.js +8 -0
- package/plugins/agents/chat/views/web/file.d.ts +23 -0
- package/plugins/agents/chat/views/web/file.js +15 -0
- 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 +48 -0
- package/plugins/agents/chat/views/web/header.js +34 -0
- package/plugins/agents/chat/views/web/held.d.ts +17 -0
- package/plugins/agents/chat/views/web/held.js +51 -0
- package/plugins/agents/chat/views/web/home.d.ts +27 -0
- package/plugins/agents/chat/views/web/home.js +122 -0
- 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 +33 -0
- package/plugins/agents/chat/views/web/listed.js +67 -0
- package/plugins/agents/chat/views/web/live.d.ts +14 -0
- package/plugins/agents/chat/views/web/live.js +37 -0
- package/plugins/agents/chat/views/web/message.d.ts +34 -0
- package/plugins/agents/chat/views/web/message.js +112 -0
- package/plugins/agents/chat/views/web/missing.d.ts +5 -0
- package/plugins/agents/chat/views/web/missing.js +6 -0
- package/plugins/agents/chat/views/web/move.d.ts +23 -0
- package/plugins/agents/chat/views/web/move.js +55 -0
- 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 +10 -0
- package/plugins/agents/chat/views/web/new-thread.js +13 -0
- package/plugins/agents/chat/views/web/notes-lane.d.ts +74 -0
- package/plugins/agents/chat/views/web/notes-lane.js +67 -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 +24 -0
- package/plugins/agents/chat/views/web/over.js +28 -0
- package/plugins/agents/chat/views/web/palette.d.ts +18 -0
- package/plugins/agents/chat/views/web/palette.js +157 -0
- package/plugins/agents/chat/views/web/picture.d.ts +12 -0
- package/plugins/agents/chat/views/web/picture.js +17 -0
- package/plugins/agents/chat/views/web/plain.d.ts +15 -0
- package/plugins/agents/chat/views/web/plain.js +32 -0
- package/plugins/agents/chat/views/web/queued.d.ts +19 -0
- package/plugins/agents/chat/views/web/queued.js +28 -0
- package/plugins/agents/chat/views/web/recent.d.ts +13 -0
- package/plugins/agents/chat/views/web/recent.js +55 -0
- package/plugins/agents/chat/views/web/record.d.ts +37 -0
- package/plugins/agents/chat/views/web/record.js +230 -0
- package/plugins/agents/chat/views/web/recorder.d.ts +23 -0
- package/plugins/agents/chat/views/web/recorder.js +51 -0
- package/plugins/agents/chat/views/web/rename.d.ts +15 -0
- package/plugins/agents/chat/views/web/rename.js +29 -0
- package/plugins/agents/chat/views/web/replies.d.ts +71 -0
- package/plugins/agents/chat/views/web/replies.js +122 -0
- package/plugins/agents/chat/views/web/retrying.d.ts +12 -0
- package/plugins/agents/chat/views/web/retrying.js +29 -0
- 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/shelf.d.ts +18 -0
- package/plugins/agents/chat/views/web/shelf.js +14 -0
- package/plugins/agents/chat/views/web/steps.d.ts +29 -0
- package/plugins/agents/chat/views/web/steps.js +45 -0
- package/plugins/agents/chat/views/web/style.d.ts +9 -0
- package/plugins/agents/chat/views/web/style.js +572 -0
- package/plugins/agents/chat/views/web/tool-view.d.ts +15 -0
- package/plugins/agents/chat/views/web/tool-view.js +15 -0
- package/plugins/agents/chat/views/web/transcript.d.ts +13 -0
- package/plugins/agents/chat/views/web/transcript.js +58 -0
- package/plugins/agents/chat/views/web/voice-failed.d.ts +15 -0
- package/plugins/agents/chat/views/web/voice-failed.js +6 -0
- package/plugins/agents/chat/views/web/voice-note.d.ts +20 -0
- package/plugins/agents/chat/views/web/voice-note.js +20 -0
- package/plugins/agents/chat/views/web/waiting.d.ts +10 -0
- package/plugins/agents/chat/views/web/waiting.js +9 -0
- package/plugins/agents/chat/views/web/waking.d.ts +12 -0
- package/plugins/agents/chat/views/web/waking.js +30 -0
- package/plugins/agents/chat/views/web/welcome.d.ts +25 -0
- package/plugins/agents/chat/views/web/welcome.js +44 -0
- package/plugins/agents/chat/views/web/who.d.ts +15 -0
- package/plugins/agents/chat/views/web/who.js +18 -0
- package/plugins/agents/chat/views/web/words.d.ts +1 -0
- package/plugins/agents/chat/views/web/words.js +384 -0
- package/plugins/agents/chat/web.d.ts +71 -0
- package/plugins/agents/chat/web.js +131 -0
- package/plugins/agents/contract.d.ts +12 -0
- package/plugins/agents/contract.js +12 -0
- package/plugins/agents/history/collections/outline.d.ts +195 -0
- package/plugins/agents/history/collections/outline.js +44 -0
- package/plugins/agents/history/collections/summary.d.ts +89 -0
- package/plugins/agents/history/collections/summary.js +31 -0
- package/plugins/agents/history/mod.d.ts +38 -0
- package/plugins/agents/history/mod.js +61 -0
- package/plugins/agents/history/processors/compact.d.ts +9 -0
- package/plugins/agents/history/processors/compact.js +339 -0
- 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.d.ts +1 -0
- package/plugins/agents/history/resources/tools.js +70 -0
- package/plugins/agents/history/shared/lines.d.ts +28 -0
- package/plugins/agents/history/shared/lines.js +48 -0
- package/plugins/agents/history/shared/settings.d.ts +23 -0
- package/plugins/agents/history/shared/settings.js +8 -0
- package/plugins/agents/history/shared/summarized.d.ts +8 -0
- package/plugins/agents/history/shared/summarized.js +9 -0
- 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 +15 -0
- package/plugins/agents/history/views/history.js +59 -0
- package/plugins/agents/history/views/since.d.ts +10 -0
- package/plugins/agents/history/views/since.js +10 -0
- package/plugins/agents/history/views/summary.d.ts +6 -0
- package/plugins/agents/history/views/summary.js +8 -0
- 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 +134 -0
- package/plugins/agents/memory/collections/memory.js +77 -0
- package/plugins/agents/memory/collections/progress.d.ts +19 -0
- package/plugins/agents/memory/collections/progress.js +8 -0
- package/plugins/agents/memory/mod.d.ts +48 -0
- package/plugins/agents/memory/mod.js +106 -0
- package/plugins/agents/memory/processors/extract.d.ts +12 -0
- package/plugins/agents/memory/processors/extract.js +149 -0
- package/plugins/agents/memory/resources/commands.d.ts +3 -0
- package/plugins/agents/memory/resources/commands.js +13 -0
- package/plugins/agents/memory/resources/context.d.ts +20 -0
- package/plugins/agents/memory/resources/context.js +13 -0
- package/plugins/agents/memory/resources/tools.d.ts +5 -0
- package/plugins/agents/memory/resources/tools.js +153 -0
- package/plugins/agents/memory/shared/scope.d.ts +82 -0
- package/plugins/agents/memory/shared/scope.js +172 -0
- package/plugins/agents/memory/shared/search.d.ts +32 -0
- package/plugins/agents/memory/shared/search.js +108 -0
- package/plugins/agents/memory/shared/settings.d.ts +41 -0
- package/plugins/agents/memory/shared/settings.js +46 -0
- package/plugins/agents/memory/terminal.d.ts +6 -0
- package/plugins/agents/memory/terminal.js +13 -0
- package/plugins/agents/memory/views/context.d.ts +8 -0
- package/plugins/agents/memory/views/context.js +97 -0
- package/plugins/agents/memory/views/memory.d.ts +5 -0
- package/plugins/agents/memory/views/memory.js +4 -0
- package/plugins/agents/memory/views/terminal/memory.d.ts +5 -0
- package/plugins/agents/memory/views/terminal/memory.js +8 -0
- package/plugins/agents/memory/views/web/card.d.ts +19 -0
- package/plugins/agents/memory/views/web/card.js +25 -0
- package/plugins/agents/memory/views/web/list.d.ts +28 -0
- package/plugins/agents/memory/views/web/list.js +87 -0
- package/plugins/agents/memory/views/web/memories.d.ts +15 -0
- package/plugins/agents/memory/views/web/memories.js +39 -0
- package/plugins/agents/memory/views/web/move.d.ts +13 -0
- package/plugins/agents/memory/views/web/move.js +13 -0
- package/plugins/agents/memory/views/web/palette.d.ts +11 -0
- package/plugins/agents/memory/views/web/palette.js +42 -0
- package/plugins/agents/memory/views/web/pick.d.ts +10 -0
- package/plugins/agents/memory/views/web/pick.js +42 -0
- package/plugins/agents/memory/views/web/style.d.ts +6 -0
- package/plugins/agents/memory/views/web/style.js +41 -0
- 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.d.ts +11 -0
- package/plugins/agents/memory/web.js +34 -0
- package/plugins/agents/mod.d.ts +24 -0
- package/plugins/agents/mod.js +24 -0
- 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/contract.js +1 -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.d.ts +1 -0
- package/plugins/agents/routines/actions/create.js +72 -0
- package/plugins/agents/routines/actions/delete.d.ts +1 -0
- package/plugins/agents/routines/actions/delete.js +20 -0
- package/plugins/agents/routines/actions/fire.d.ts +1 -0
- package/plugins/agents/routines/actions/fire.js +26 -0
- 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.d.ts +1 -0
- package/plugins/agents/routines/actions/pause.js +23 -0
- package/plugins/agents/routines/actions/resume.d.ts +1 -0
- package/plugins/agents/routines/actions/resume.js +26 -0
- package/plugins/agents/routines/actions/run.d.ts +1 -0
- package/plugins/agents/routines/actions/run.js +21 -0
- package/plugins/agents/routines/actions/update.d.ts +1 -0
- package/plugins/agents/routines/actions/update.js +88 -0
- package/plugins/agents/routines/collections/routine.d.ts +149 -0
- package/plugins/agents/routines/collections/routine.js +95 -0
- package/plugins/agents/routines/collections/run.d.ts +108 -0
- package/plugins/agents/routines/collections/run.js +31 -0
- package/plugins/agents/routines/contract.d.ts +17 -0
- package/plugins/agents/routines/contract.js +1 -0
- package/plugins/agents/routines/mod.d.ts +38 -0
- package/plugins/agents/routines/mod.js +79 -0
- package/plugins/agents/routines/resources/tools.d.ts +2 -0
- package/plugins/agents/routines/resources/tools.js +207 -0
- package/plugins/agents/routines/shared/fire.d.ts +26 -0
- package/plugins/agents/routines/shared/fire.js +101 -0
- package/plugins/agents/routines/shared/routines.d.ts +118 -0
- package/plugins/agents/routines/shared/routines.js +91 -0
- package/plugins/agents/routines/shared/schedule.d.ts +148 -0
- package/plugins/agents/routines/shared/schedule.js +347 -0
- package/plugins/agents/routines/views/web/delete.d.ts +16 -0
- package/plugins/agents/routines/views/web/delete.js +26 -0
- package/plugins/agents/routines/views/web/form.d.ts +31 -0
- package/plugins/agents/routines/views/web/form.js +102 -0
- package/plugins/agents/routines/views/web/list.d.ts +16 -0
- package/plugins/agents/routines/views/web/list.js +145 -0
- package/plugins/agents/routines/views/web/new.d.ts +26 -0
- package/plugins/agents/routines/views/web/new.js +37 -0
- package/plugins/agents/routines/views/web/page.d.ts +15 -0
- package/plugins/agents/routines/views/web/page.js +174 -0
- package/plugins/agents/routines/views/web/palette.d.ts +16 -0
- package/plugins/agents/routines/views/web/palette.js +145 -0
- package/plugins/agents/routines/views/web/picker.d.ts +19 -0
- package/plugins/agents/routines/views/web/picker.js +57 -0
- package/plugins/agents/routines/views/web/routines.d.ts +66 -0
- package/plugins/agents/routines/views/web/routines.js +110 -0
- package/plugins/agents/routines/views/web/step.d.ts +12 -0
- package/plugins/agents/routines/views/web/step.js +24 -0
- package/plugins/agents/routines/views/web/style.d.ts +8 -0
- package/plugins/agents/routines/views/web/style.js +196 -0
- package/plugins/agents/routines/web.d.ts +17 -0
- package/plugins/agents/routines/web.js +37 -0
- package/plugins/agents/skills/actions/create.d.ts +1 -0
- package/plugins/agents/skills/actions/create.js +43 -0
- package/plugins/agents/skills/actions/delete.d.ts +1 -0
- package/plugins/agents/skills/actions/delete.js +29 -0
- package/plugins/agents/skills/actions/update.d.ts +1 -0
- package/plugins/agents/skills/actions/update.js +58 -0
- package/plugins/agents/skills/collections/skill-file.d.ts +62 -0
- package/plugins/agents/skills/collections/skill-file.js +20 -0
- package/plugins/agents/skills/collections/skill.d.ts +133 -0
- package/plugins/agents/skills/collections/skill.js +105 -0
- package/plugins/agents/skills/contract.d.ts +11 -0
- package/plugins/agents/skills/contract.js +1 -0
- package/plugins/agents/skills/mod.d.ts +31 -0
- package/plugins/agents/skills/mod.js +80 -0
- package/plugins/agents/skills/resources/planning.d.ts +11 -0
- package/plugins/agents/skills/resources/planning.js +114 -0
- package/plugins/agents/skills/resources/tools.d.ts +7 -0
- package/plugins/agents/skills/resources/tools.js +57 -0
- package/plugins/agents/skills/shared/check.d.ts +37 -0
- package/plugins/agents/skills/shared/check.js +92 -0
- package/plugins/agents/skills/shared/skill-md.d.ts +18 -0
- package/plugins/agents/skills/shared/skill-md.js +63 -0
- package/plugins/agents/skills/shared/skills.d.ts +53 -0
- package/plugins/agents/skills/shared/skills.js +53 -0
- package/plugins/agents/skills/shared/write.d.ts +72 -0
- package/plugins/agents/skills/shared/write.js +54 -0
- package/plugins/agents/skills/views/context.d.ts +14 -0
- package/plugins/agents/skills/views/context.js +17 -0
- package/plugins/agents/skills/views/web/delete.d.ts +19 -0
- package/plugins/agents/skills/views/web/delete.js +27 -0
- package/plugins/agents/skills/views/web/form.d.ts +28 -0
- package/plugins/agents/skills/views/web/form.js +190 -0
- package/plugins/agents/skills/views/web/list.d.ts +13 -0
- package/plugins/agents/skills/views/web/list.js +88 -0
- package/plugins/agents/skills/views/web/page.d.ts +13 -0
- package/plugins/agents/skills/views/web/page.js +117 -0
- package/plugins/agents/skills/views/web/palette.d.ts +21 -0
- package/plugins/agents/skills/views/web/palette.js +133 -0
- package/plugins/agents/skills/views/web/skills.d.ts +42 -0
- package/plugins/agents/skills/views/web/skills.js +97 -0
- package/plugins/agents/skills/views/web/step.d.ts +10 -0
- package/plugins/agents/skills/views/web/step.js +26 -0
- package/plugins/agents/skills/views/web/style.d.ts +8 -0
- package/plugins/agents/skills/views/web/style.js +155 -0
- package/plugins/agents/skills/web.d.ts +16 -0
- package/plugins/agents/skills/web.js +37 -0
- package/plugins/agents/terminal.d.ts +3 -0
- package/plugins/agents/terminal.js +3 -0
- package/plugins/agents/web.d.ts +6 -0
- package/plugins/agents/web.js +6 -0
- 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 +12 -0
- package/plugins/billing/mod.js +12 -0
- package/plugins/billing/terminal.d.ts +2 -0
- package/plugins/billing/terminal.js +2 -0
- package/plugins/billing/usage/actions/activity.d.ts +84 -0
- package/plugins/billing/usage/actions/activity.js +310 -0
- package/plugins/billing/usage/actions/close.d.ts +1 -0
- package/plugins/billing/usage/actions/close.js +172 -0
- package/plugins/billing/usage/actions/org.d.ts +30 -0
- package/plugins/billing/usage/actions/org.js +64 -0
- package/plugins/billing/usage/actions/quote.d.ts +7 -0
- package/plugins/billing/usage/actions/quote.js +86 -0
- package/plugins/billing/usage/actions/record.d.ts +1 -0
- package/plugins/billing/usage/actions/record.js +25 -0
- package/plugins/billing/usage/actions/rerate.d.ts +1 -0
- package/plugins/billing/usage/actions/rerate.js +69 -0
- package/plugins/billing/usage/collections/closed.d.ts +65 -0
- package/plugins/billing/usage/collections/closed.js +22 -0
- package/plugins/billing/usage/collections/rollup.d.ts +203 -0
- package/plugins/billing/usage/collections/rollup.js +50 -0
- package/plugins/billing/usage/collections/usage.d.ts +218 -0
- package/plugins/billing/usage/collections/usage.js +75 -0
- package/plugins/billing/usage/mod.d.ts +61 -0
- package/plugins/billing/usage/mod.js +94 -0
- package/plugins/billing/usage/resources/commands.d.ts +3 -0
- package/plugins/billing/usage/resources/commands.js +21 -0
- package/plugins/billing/usage/resources/ledger.d.ts +3 -0
- package/plugins/billing/usage/resources/ledger.js +2 -0
- package/plugins/billing/usage/shared/categories.d.ts +24 -0
- package/plugins/billing/usage/shared/categories.js +40 -0
- package/plugins/billing/usage/shared/days.d.ts +17 -0
- package/plugins/billing/usage/shared/days.js +28 -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 +79 -0
- package/plugins/billing/usage/shared/rate.js +157 -0
- package/plugins/billing/usage/shared/settings.d.ts +34 -0
- package/plugins/billing/usage/shared/settings.js +18 -0
- package/plugins/billing/usage/shared/totals.d.ts +80 -0
- package/plugins/billing/usage/shared/totals.js +193 -0
- package/plugins/billing/usage/shared/use.d.ts +42 -0
- package/plugins/billing/usage/shared/use.js +51 -0
- package/plugins/billing/usage/terminal.d.ts +6 -0
- package/plugins/billing/usage/terminal.js +13 -0
- package/plugins/billing/usage/views/terminal/totals.d.ts +9 -0
- package/plugins/billing/usage/views/terminal/totals.js +48 -0
- package/plugins/billing/usage/views/web/chart.d.ts +31 -0
- package/plugins/billing/usage/views/web/chart.js +125 -0
- package/plugins/billing/usage/views/web/numbers.d.ts +167 -0
- package/plugins/billing/usage/views/web/numbers.js +330 -0
- package/plugins/billing/usage/views/web/org.d.ts +129 -0
- package/plugins/billing/usage/views/web/org.js +642 -0
- package/plugins/billing/usage/views/web/style.d.ts +12 -0
- package/plugins/billing/usage/views/web/style.js +199 -0
- 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 +14 -0
- package/plugins/billing/usage/web.js +22 -0
- package/plugins/billing/web.d.ts +2 -0
- package/plugins/billing/web.js +2 -0
- package/plugins/compute/computers/actions/admit.d.ts +1 -0
- package/plugins/compute/computers/actions/admit.js +62 -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.d.ts +1 -0
- package/plugins/compute/computers/actions/allowed.js +50 -0
- package/plugins/compute/computers/actions/claim-names.d.ts +1 -0
- package/plugins/compute/computers/actions/claim-names.js +25 -0
- package/plugins/compute/computers/actions/code.d.ts +1 -0
- package/plugins/compute/computers/actions/code.js +52 -0
- package/plugins/compute/computers/actions/connected.d.ts +1 -0
- package/plugins/compute/computers/actions/connected.js +43 -0
- package/plugins/compute/computers/actions/default.d.ts +1 -0
- package/plugins/compute/computers/actions/default.js +23 -0
- package/plugins/compute/computers/actions/domain.d.ts +4 -0
- package/plugins/compute/computers/actions/domain.js +121 -0
- package/plugins/compute/computers/actions/engine.d.ts +12 -0
- package/plugins/compute/computers/actions/engine.js +167 -0
- package/plugins/compute/computers/actions/engines.d.ts +16 -0
- package/plugins/compute/computers/actions/engines.js +133 -0
- package/plugins/compute/computers/actions/enrollment.d.ts +1 -0
- package/plugins/compute/computers/actions/enrollment.js +51 -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.d.ts +1 -0
- package/plugins/compute/computers/actions/forget.js +30 -0
- package/plugins/compute/computers/actions/gone.d.ts +1 -0
- package/plugins/compute/computers/actions/gone.js +12 -0
- 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.d.ts +1 -0
- package/plugins/compute/computers/actions/move.js +36 -0
- package/plugins/compute/computers/actions/prepare.d.ts +13 -0
- package/plugins/compute/computers/actions/prepare.js +98 -0
- package/plugins/compute/computers/actions/preview.d.ts +43 -0
- package/plugins/compute/computers/actions/preview.js +215 -0
- package/plugins/compute/computers/actions/provision.d.ts +1 -0
- package/plugins/compute/computers/actions/provision.js +51 -0
- package/plugins/compute/computers/actions/publish.d.ts +3 -0
- package/plugins/compute/computers/actions/publish.js +71 -0
- package/plugins/compute/computers/actions/ready.d.ts +1 -0
- package/plugins/compute/computers/actions/ready.js +53 -0
- package/plugins/compute/computers/actions/rename.d.ts +1 -0
- package/plugins/compute/computers/actions/rename.js +22 -0
- package/plugins/compute/computers/actions/running.d.ts +1 -0
- package/plugins/compute/computers/actions/running.js +33 -0
- package/plugins/compute/computers/actions/scope.d.ts +1 -0
- package/plugins/compute/computers/actions/scope.js +61 -0
- package/plugins/compute/computers/actions/share.d.ts +1 -0
- package/plugins/compute/computers/actions/share.js +44 -0
- package/plugins/compute/computers/actions/unshare.d.ts +1 -0
- package/plugins/compute/computers/actions/unshare.js +27 -0
- 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/upload.d.ts +1 -0
- package/plugins/compute/computers/actions/upload.js +35 -0
- package/plugins/compute/computers/actions/view.d.ts +1 -0
- package/plugins/compute/computers/actions/view.js +29 -0
- package/plugins/compute/computers/actions/watch.d.ts +7 -0
- package/plugins/compute/computers/actions/watch.js +159 -0
- package/plugins/compute/computers/actions/work.d.ts +1 -0
- package/plugins/compute/computers/actions/work.js +80 -0
- package/plugins/compute/computers/adapters/engine.d.ts +34 -0
- package/plugins/compute/computers/adapters/engine.js +297 -0
- package/plugins/compute/computers/collections/computer.d.ts +185 -0
- package/plugins/compute/computers/collections/computer.js +69 -0
- package/plugins/compute/computers/collections/desk.d.ts +182 -0
- package/plugins/compute/computers/collections/desk.js +63 -0
- package/plugins/compute/computers/collections/domain.d.ts +91 -0
- package/plugins/compute/computers/collections/domain.js +39 -0
- package/plugins/compute/computers/collections/enrollment.d.ts +64 -0
- package/plugins/compute/computers/collections/enrollment.js +22 -0
- package/plugins/compute/computers/collections/env-var.d.ts +115 -0
- package/plugins/compute/computers/collections/env-var.js +51 -0
- package/plugins/compute/computers/collections/job-watch.d.ts +141 -0
- package/plugins/compute/computers/collections/job-watch.js +39 -0
- package/plugins/compute/computers/collections/preview.d.ts +138 -0
- package/plugins/compute/computers/collections/preview.js +98 -0
- package/plugins/compute/computers/contract.d.ts +24 -0
- package/plugins/compute/computers/contract.js +12 -0
- package/plugins/compute/computers/mod.d.ts +68 -0
- package/plugins/compute/computers/mod.js +224 -0
- package/plugins/compute/computers/processors/left.d.ts +8 -0
- package/plugins/compute/computers/processors/left.js +31 -0
- package/plugins/compute/computers/program/agents/acp.d.ts +46 -0
- package/plugins/compute/computers/program/agents/acp.js +479 -0
- package/plugins/compute/computers/program/agents/claude.d.ts +4 -0
- package/plugins/compute/computers/program/agents/claude.js +439 -0
- package/plugins/compute/computers/program/agents/codex.d.ts +78 -0
- package/plugins/compute/computers/program/agents/codex.js +580 -0
- package/plugins/compute/computers/program/agents/cursor-runner.d.ts +28 -0
- package/plugins/compute/computers/program/agents/cursor-runner.js +228 -0
- package/plugins/compute/computers/program/agents/engines.d.ts +43 -0
- package/plugins/compute/computers/program/agents/engines.js +539 -0
- package/plugins/compute/computers/program/agents/grok.d.ts +2 -0
- package/plugins/compute/computers/program/agents/grok.js +296 -0
- package/plugins/compute/computers/program/agents/mcp.d.ts +28 -0
- package/plugins/compute/computers/program/agents/mcp.js +252 -0
- package/plugins/compute/computers/program/agents/permission.d.ts +11 -0
- package/plugins/compute/computers/program/agents/permission.js +46 -0
- package/plugins/compute/computers/program/agents/rpc.d.ts +37 -0
- package/plugins/compute/computers/program/agents/rpc.js +192 -0
- package/plugins/compute/computers/program/agents/steps.d.ts +68 -0
- package/plugins/compute/computers/program/agents/steps.js +146 -0
- package/plugins/compute/computers/program/agents/types.d.ts +153 -0
- package/plugins/compute/computers/program/agents/types.js +13 -0
- package/plugins/compute/computers/program/agents/write.d.ts +2 -0
- package/plugins/compute/computers/program/agents/write.js +13 -0
- package/plugins/compute/computers/program/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 +250 -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 +79 -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 +72 -0
- package/plugins/compute/computers/program/computer.js +313 -0
- package/plugins/compute/computers/program/legacy-paths.d.ts +16 -0
- package/plugins/compute/computers/program/legacy-paths.js +33 -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 +44 -0
- package/plugins/compute/computers/program/pool.js +387 -0
- package/plugins/compute/computers/program/release.d.ts +85 -0
- package/plugins/compute/computers/program/release.js +88 -0
- package/plugins/compute/computers/program/state.d.ts +78 -0
- package/plugins/compute/computers/program/state.js +212 -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 +2 -0
- package/plugins/compute/computers/program/version.js +2 -0
- package/plugins/compute/computers/program/workloads/agents.d.ts +32 -0
- package/plugins/compute/computers/program/workloads/agents.js +46 -0
- 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 +28 -0
- package/plugins/compute/computers/program/workloads/files.js +393 -0
- package/plugins/compute/computers/program/workloads/http.d.ts +26 -0
- package/plugins/compute/computers/program/workloads/http.js +169 -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 +54 -0
- package/plugins/compute/computers/program/workloads/jobs.js +403 -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 +32 -0
- package/plugins/compute/computers/program/workloads/processes.js +121 -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/sockets.d.ts +17 -0
- package/plugins/compute/computers/program/workloads/sockets.js +86 -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 +30 -0
- package/plugins/compute/computers/program/workloads/terminal.js +388 -0
- package/plugins/compute/computers/resources/commands.d.ts +11 -0
- package/plugins/compute/computers/resources/commands.js +122 -0
- package/plugins/compute/computers/resources/downloads.d.ts +21 -0
- package/plugins/compute/computers/resources/downloads.js +122 -0
- package/plugins/compute/computers/resources/engines.d.ts +62 -0
- package/plugins/compute/computers/resources/engines.js +62 -0
- package/plugins/compute/computers/resources/preview-sockets.d.ts +28 -0
- package/plugins/compute/computers/resources/preview-sockets.js +86 -0
- package/plugins/compute/computers/resources/previews.d.ts +35 -0
- package/plugins/compute/computers/resources/previews.js +436 -0
- package/plugins/compute/computers/resources/tools.d.ts +8 -0
- package/plugins/compute/computers/resources/tools.js +705 -0
- package/plugins/compute/computers/routes/upload.d.ts +30 -0
- package/plugins/compute/computers/routes/upload.js +169 -0
- package/plugins/compute/computers/shared/ask.d.ts +63 -0
- package/plugins/compute/computers/shared/ask.js +73 -0
- package/plugins/compute/computers/shared/browser.d.ts +106 -0
- package/plugins/compute/computers/shared/browser.js +89 -0
- package/plugins/compute/computers/shared/claims.d.ts +26 -0
- package/plugins/compute/computers/shared/claims.js +3 -0
- package/plugins/compute/computers/shared/cost.d.ts +58 -0
- package/plugins/compute/computers/shared/cost.js +70 -0
- package/plugins/compute/computers/shared/desks.d.ts +28 -0
- package/plugins/compute/computers/shared/desks.js +88 -0
- package/plugins/compute/computers/shared/domains.d.ts +52 -0
- package/plugins/compute/computers/shared/domains.js +123 -0
- package/plugins/compute/computers/shared/engines.d.ts +87 -0
- package/plugins/compute/computers/shared/engines.js +147 -0
- package/plugins/compute/computers/shared/env.d.ts +20 -0
- package/plugins/compute/computers/shared/env.js +50 -0
- package/plugins/compute/computers/shared/failed.d.ts +3 -0
- package/plugins/compute/computers/shared/failed.js +6 -0
- package/plugins/compute/computers/shared/folder.d.ts +4 -0
- package/plugins/compute/computers/shared/folder.js +13 -0
- package/plugins/compute/computers/shared/hosts.d.ts +14 -0
- package/plugins/compute/computers/shared/hosts.js +92 -0
- package/plugins/compute/computers/shared/install.d.ts +8 -0
- package/plugins/compute/computers/shared/install.js +8 -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 +54 -0
- package/plugins/compute/computers/shared/pool.js +25 -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/publish.d.ts +40 -0
- package/plugins/compute/computers/shared/publish.js +116 -0
- package/plugins/compute/computers/shared/seal.d.ts +4 -0
- package/plugins/compute/computers/shared/seal.js +68 -0
- package/plugins/compute/computers/shared/secret.d.ts +8 -0
- package/plugins/compute/computers/shared/secret.js +24 -0
- package/plugins/compute/computers/shared/served.d.ts +33 -0
- package/plugins/compute/computers/shared/served.js +61 -0
- package/plugins/compute/computers/shared/serving.d.ts +19 -0
- package/plugins/compute/computers/shared/serving.js +15 -0
- package/plugins/compute/computers/shared/settings.d.ts +87 -0
- package/plugins/compute/computers/shared/settings.js +38 -0
- package/plugins/compute/computers/shared/sockets.d.ts +67 -0
- package/plugins/compute/computers/shared/sockets.js +296 -0
- package/plugins/compute/computers/shared/streams.d.ts +13 -0
- package/plugins/compute/computers/shared/streams.js +36 -0
- package/plugins/compute/computers/shared/update.d.ts +29 -0
- package/plugins/compute/computers/shared/update.js +39 -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 +96 -0
- package/plugins/compute/computers/shared/wake.js +139 -0
- package/plugins/compute/computers/shared/where.d.ts +49 -0
- package/plugins/compute/computers/shared/where.js +108 -0
- package/plugins/compute/computers/shared/workloads.d.ts +527 -0
- package/plugins/compute/computers/shared/workloads.js +68 -0
- package/plugins/compute/computers/terminal.d.ts +8 -0
- package/plugins/compute/computers/terminal.js +13 -0
- package/plugins/compute/computers/views/context.d.ts +14 -0
- package/plugins/compute/computers/views/context.js +140 -0
- package/plugins/compute/computers/views/web/add.d.ts +41 -0
- package/plugins/compute/computers/views/web/add.js +60 -0
- package/plugins/compute/computers/views/web/allowed.d.ts +16 -0
- package/plugins/compute/computers/views/web/allowed.js +38 -0
- package/plugins/compute/computers/views/web/asked.d.ts +55 -0
- package/plugins/compute/computers/views/web/asked.js +75 -0
- package/plugins/compute/computers/views/web/asks.d.ts +17 -0
- package/plugins/compute/computers/views/web/asks.js +22 -0
- package/plugins/compute/computers/views/web/calls.d.ts +38 -0
- package/plugins/compute/computers/views/web/calls.js +60 -0
- package/plugins/compute/computers/views/web/computer.d.ts +17 -0
- package/plugins/compute/computers/views/web/computer.js +45 -0
- package/plugins/compute/computers/views/web/connect-flow.d.ts +45 -0
- package/plugins/compute/computers/views/web/connect-flow.js +245 -0
- package/plugins/compute/computers/views/web/connect-lines.d.ts +90 -0
- package/plugins/compute/computers/views/web/connect-lines.js +111 -0
- package/plugins/compute/computers/views/web/connect.d.ts +44 -0
- package/plugins/compute/computers/views/web/connect.js +205 -0
- package/plugins/compute/computers/views/web/cost.d.ts +25 -0
- package/plugins/compute/computers/views/web/cost.js +56 -0
- package/plugins/compute/computers/views/web/desks.d.ts +48 -0
- package/plugins/compute/computers/views/web/desks.js +237 -0
- package/plugins/compute/computers/views/web/diff.d.ts +15 -0
- package/plugins/compute/computers/views/web/diff.js +66 -0
- 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/file-view.d.ts +27 -0
- package/plugins/compute/computers/views/web/file-view.js +147 -0
- package/plugins/compute/computers/views/web/files.d.ts +37 -0
- package/plugins/compute/computers/views/web/files.js +223 -0
- package/plugins/compute/computers/views/web/jobs.d.ts +39 -0
- package/plugins/compute/computers/views/web/jobs.js +215 -0
- package/plugins/compute/computers/views/web/kinds.d.ts +112 -0
- package/plugins/compute/computers/views/web/kinds.js +37 -0
- package/plugins/compute/computers/views/web/mark.d.ts +11 -0
- package/plugins/compute/computers/views/web/mark.js +5 -0
- package/plugins/compute/computers/views/web/move.d.ts +16 -0
- package/plugins/compute/computers/views/web/move.js +10 -0
- package/plugins/compute/computers/views/web/names.d.ts +39 -0
- package/plugins/compute/computers/views/web/names.js +49 -0
- package/plugins/compute/computers/views/web/page.d.ts +38 -0
- package/plugins/compute/computers/views/web/page.js +91 -0
- package/plugins/compute/computers/views/web/palette.d.ts +11 -0
- package/plugins/compute/computers/views/web/palette.js +33 -0
- package/plugins/compute/computers/views/web/plan-card.d.ts +28 -0
- package/plugins/compute/computers/views/web/plan-card.js +58 -0
- package/plugins/compute/computers/views/web/plan-shared.d.ts +11 -0
- package/plugins/compute/computers/views/web/plan-shared.js +7 -0
- package/plugins/compute/computers/views/web/plan-states.d.ts +196 -0
- package/plugins/compute/computers/views/web/plan-states.js +271 -0
- package/plugins/compute/computers/views/web/plans-data.d.ts +29 -0
- package/plugins/compute/computers/views/web/plans-data.js +55 -0
- package/plugins/compute/computers/views/web/plans-palette.d.ts +10 -0
- package/plugins/compute/computers/views/web/plans-palette.js +36 -0
- package/plugins/compute/computers/views/web/plans.d.ts +19 -0
- package/plugins/compute/computers/views/web/plans.js +76 -0
- package/plugins/compute/computers/views/web/platform.d.ts +8 -0
- package/plugins/compute/computers/views/web/platform.js +58 -0
- package/plugins/compute/computers/views/web/previews.d.ts +44 -0
- package/plugins/compute/computers/views/web/previews.js +33 -0
- package/plugins/compute/computers/views/web/publish.d.ts +25 -0
- package/plugins/compute/computers/views/web/publish.js +114 -0
- 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 +48 -0
- package/plugins/compute/computers/views/web/serve.js +180 -0
- package/plugins/compute/computers/views/web/shell.d.ts +34 -0
- package/plugins/compute/computers/views/web/shell.js +87 -0
- package/plugins/compute/computers/views/web/space-tab.d.ts +17 -0
- package/plugins/compute/computers/views/web/space-tab.js +87 -0
- package/plugins/compute/computers/views/web/step.d.ts +16 -0
- package/plugins/compute/computers/views/web/step.js +276 -0
- package/plugins/compute/computers/views/web/style.d.ts +10 -0
- package/plugins/compute/computers/views/web/style.js +669 -0
- package/plugins/compute/computers/views/web/terminal-tab.d.ts +21 -0
- package/plugins/compute/computers/views/web/terminal-tab.js +18 -0
- package/plugins/compute/computers/views/web/transfer.d.ts +18 -0
- package/plugins/compute/computers/views/web/transfer.js +42 -0
- package/plugins/compute/computers/views/web/upload-tray.d.ts +70 -0
- package/plugins/compute/computers/views/web/upload-tray.js +249 -0
- package/plugins/compute/computers/views/web/uploads.d.ts +184 -0
- package/plugins/compute/computers/views/web/uploads.js +425 -0
- package/plugins/compute/computers/views/web/welcome.d.ts +18 -0
- package/plugins/compute/computers/views/web/welcome.js +51 -0
- package/plugins/compute/computers/views/web/words.d.ts +1 -0
- package/plugins/compute/computers/views/web/words.js +265 -0
- package/plugins/compute/computers/views/web/workspace.d.ts +46 -0
- package/plugins/compute/computers/views/web/workspace.js +142 -0
- package/plugins/compute/computers/views/web/yours.d.ts +11 -0
- package/plugins/compute/computers/views/web/yours.js +33 -0
- package/plugins/compute/computers/web.d.ts +44 -0
- package/plugins/compute/computers/web.js +123 -0
- package/plugins/compute/contract.d.ts +6 -0
- package/plugins/compute/contract.js +6 -0
- package/plugins/compute/google.d.ts +75 -0
- package/plugins/compute/google.js +218 -0
- package/plugins/compute/mod.d.ts +4 -0
- package/plugins/compute/mod.js +4 -0
- package/plugins/compute/web.d.ts +9 -0
- package/plugins/compute/web.js +9 -0
- package/plugins/interfaces/api/actions/create.d.ts +1 -0
- package/plugins/interfaces/api/actions/create.js +89 -0
- package/plugins/interfaces/api/actions/revoke.d.ts +2 -0
- package/plugins/interfaces/api/actions/revoke.js +45 -0
- package/plugins/interfaces/api/collections/key.d.ts +205 -0
- package/plugins/interfaces/api/collections/key.js +73 -0
- package/plugins/interfaces/api/contract.d.ts +33 -0
- package/plugins/interfaces/api/contract.js +1 -0
- package/plugins/interfaces/api/mod.d.ts +32 -0
- package/plugins/interfaces/api/mod.js +55 -0
- 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 +9 -0
- package/plugins/interfaces/api/resources/presets.js +17 -0
- package/plugins/interfaces/api/shared/actor.d.ts +30 -0
- package/plugins/interfaces/api/shared/actor.js +34 -0
- 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 +10 -0
- package/plugins/interfaces/api/shared/rules.js +24 -0
- package/plugins/interfaces/api/shared/secret.d.ts +7 -0
- package/plugins/interfaces/api/shared/secret.js +11 -0
- package/plugins/interfaces/api/views/web/catalog.d.ts +24 -0
- package/plugins/interfaces/api/views/web/catalog.js +43 -0
- package/plugins/interfaces/api/views/web/create.d.ts +23 -0
- package/plugins/interfaces/api/views/web/create.js +138 -0
- package/plugins/interfaces/api/views/web/keys.d.ts +30 -0
- package/plugins/interfaces/api/views/web/keys.js +88 -0
- 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/palette.d.ts +9 -0
- package/plugins/interfaces/api/views/web/palette.js +17 -0
- package/plugins/interfaces/api/views/web/reference.d.ts +11 -0
- package/plugins/interfaces/api/views/web/reference.js +36 -0
- package/plugins/interfaces/api/views/web/snippet.d.ts +31 -0
- package/plugins/interfaces/api/views/web/snippet.js +66 -0
- package/plugins/interfaces/api/views/web/style.d.ts +8 -0
- package/plugins/interfaces/api/views/web/style.js +134 -0
- package/plugins/interfaces/api/web.d.ts +17 -0
- package/plugins/interfaces/api/web.js +33 -0
- 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 +16 -0
- package/plugins/interfaces/mcp/collections/closed.js +17 -0
- package/plugins/interfaces/mcp/collections/opening.d.ts +17 -0
- package/plugins/interfaces/mcp/collections/opening.js +28 -0
- package/plugins/interfaces/mcp/collections/rate.d.ts +20 -0
- package/plugins/interfaces/mcp/collections/rate.js +18 -0
- package/plugins/interfaces/mcp/collections/receipt.d.ts +39 -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 +643 -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 +244 -0
- package/plugins/interfaces/mcp/shared/settings.js +243 -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 +13 -0
- package/plugins/interfaces/mod.js +13 -0
- package/plugins/interfaces/push/actions/send.d.ts +4 -0
- package/plugins/interfaces/push/actions/send.js +61 -0
- package/plugins/interfaces/push/actions/subscribe.d.ts +3 -0
- package/plugins/interfaces/push/actions/subscribe.js +95 -0
- package/plugins/interfaces/push/collections/looking.d.ts +32 -0
- package/plugins/interfaces/push/collections/looking.js +20 -0
- package/plugins/interfaces/push/collections/subscription.d.ts +58 -0
- package/plugins/interfaces/push/collections/subscription.js +40 -0
- package/plugins/interfaces/push/contract.d.ts +34 -0
- package/plugins/interfaces/push/contract.js +6 -0
- package/plugins/interfaces/push/mod.d.ts +36 -0
- package/plugins/interfaces/push/mod.js +68 -0
- package/plugins/interfaces/push/processors/notify.d.ts +20 -0
- package/plugins/interfaces/push/processors/notify.js +58 -0
- package/plugins/interfaces/push/shared/deliver.d.ts +20 -0
- package/plugins/interfaces/push/shared/deliver.js +68 -0
- package/plugins/interfaces/push/shared/rules.d.ts +7 -0
- package/plugins/interfaces/push/shared/rules.js +19 -0
- package/plugins/interfaces/push/shared/settings.d.ts +12 -0
- package/plugins/interfaces/push/shared/settings.js +12 -0
- package/plugins/interfaces/push/shared/webpush.d.ts +42 -0
- package/plugins/interfaces/push/shared/webpush.js +111 -0
- package/plugins/interfaces/push/views/web/notifications.d.ts +17 -0
- package/plugins/interfaces/push/views/web/notifications.js +99 -0
- package/plugins/interfaces/push/views/web/words.d.ts +1 -0
- package/plugins/interfaces/push/views/web/words.js +26 -0
- package/plugins/interfaces/push/web.d.ts +12 -0
- package/plugins/interfaces/push/web.js +22 -0
- package/plugins/interfaces/terminal/actions/print.d.ts +1 -0
- package/plugins/interfaces/terminal/actions/print.js +30 -0
- package/plugins/interfaces/terminal/actions/set.d.ts +1 -0
- package/plugins/interfaces/terminal/actions/set.js +38 -0
- package/plugins/interfaces/terminal/collections/output.d.ts +36 -0
- package/plugins/interfaces/terminal/collections/output.js +21 -0
- package/plugins/interfaces/terminal/collections/shell.d.ts +42 -0
- package/plugins/interfaces/terminal/collections/shell.js +30 -0
- package/plugins/interfaces/terminal/mod.d.ts +13 -0
- package/plugins/interfaces/terminal/mod.js +21 -0
- package/plugins/interfaces/terminal/terminal.d.ts +18 -0
- package/plugins/interfaces/terminal/terminal.js +30 -0
- package/plugins/interfaces/terminal/views/default.d.ts +1 -0
- package/plugins/interfaces/terminal/views/default.js +23 -0
- package/plugins/interfaces/terminal/views/prompt.d.ts +7 -0
- package/plugins/interfaces/terminal/views/prompt.js +5 -0
- package/plugins/interfaces/terminal/views/shell.d.ts +5 -0
- package/plugins/interfaces/terminal/views/shell.js +32 -0
- 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 +80 -0
- package/plugins/interfaces/voice/collections/blocked.js +34 -0
- package/plugins/interfaces/voice/collections/call.d.ts +272 -0
- package/plugins/interfaces/voice/collections/call.js +77 -0
- package/plugins/interfaces/voice/collections/phone.d.ts +67 -0
- package/plugins/interfaces/voice/collections/phone.js +26 -0
- package/plugins/interfaces/voice/contract.d.ts +14 -0
- package/plugins/interfaces/voice/contract.js +2 -0
- package/plugins/interfaces/voice/mod.d.ts +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 +69 -0
- package/plugins/interfaces/voice/routes/relay.js +437 -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 +115 -0
- package/plugins/interfaces/web/collections/rate.js +37 -0
- package/plugins/interfaces/web/collections/visitor.d.ts +103 -0
- package/plugins/interfaces/web/collections/visitor.js +69 -0
- package/plugins/interfaces/web/contract.d.ts +32 -0
- package/plugins/interfaces/web/contract.js +3 -0
- package/plugins/interfaces/web/lines.d.ts +35 -0
- package/plugins/interfaces/web/lines.js +83 -0
- package/plugins/interfaces/web/mod.d.ts +79 -0
- package/plugins/interfaces/web/mod.js +81 -0
- 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/menu.d.ts +14 -0
- package/plugins/interfaces/web/shared/menu.js +4 -0
- package/plugins/interfaces/web/shared/orgs.d.ts +98 -0
- package/plugins/interfaces/web/shared/orgs.js +72 -0
- package/plugins/interfaces/web/shared/palette.d.ts +36 -0
- package/plugins/interfaces/web/shared/palette.js +30 -0
- package/plugins/interfaces/web/shared/panel.d.ts +28 -0
- package/plugins/interfaces/web/shared/panel.js +29 -0
- 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.d.ts +7 -0
- package/plugins/interfaces/web/shared/standing.js +36 -0
- package/plugins/interfaces/web/shared/style.d.ts +23 -0
- package/plugins/interfaces/web/shared/style.js +130 -0
- package/plugins/interfaces/web/views/default.d.ts +10 -0
- package/plugins/interfaces/web/views/default.js +28 -0
- package/plugins/interfaces/web/views/frame.d.ts +76 -0
- package/plugins/interfaces/web/views/frame.js +171 -0
- package/plugins/interfaces/web/views/me.d.ts +27 -0
- package/plugins/interfaces/web/views/me.js +94 -0
- package/plugins/interfaces/web/views/panel.d.ts +42 -0
- package/plugins/interfaces/web/views/panel.js +62 -0
- 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 +32 -0
- package/plugins/interfaces/web/views/shell.js +54 -0
- package/plugins/interfaces/web/views/words.d.ts +1 -0
- package/plugins/interfaces/web/views/words.js +60 -0
- package/plugins/interfaces/web.d.ts +5 -0
- package/plugins/interfaces/web.js +5 -0
- package/plugins/interfaces/whatsapp/actions/connect.d.ts +17 -0
- package/plugins/interfaces/whatsapp/actions/connect.js +123 -0
- package/plugins/interfaces/whatsapp/actions/disconnect.d.ts +2 -0
- package/plugins/interfaces/whatsapp/actions/disconnect.js +58 -0
- package/plugins/interfaces/whatsapp/actions/hook.d.ts +10 -0
- package/plugins/interfaces/whatsapp/actions/hook.js +125 -0
- package/plugins/interfaces/whatsapp/actions/link.d.ts +3 -0
- package/plugins/interfaces/whatsapp/actions/link.js +90 -0
- 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 +22 -0
- package/plugins/interfaces/whatsapp/collections/blocked.js +22 -0
- package/plugins/interfaces/whatsapp/collections/code.d.ts +71 -0
- package/plugins/interfaces/whatsapp/collections/code.js +27 -0
- package/plugins/interfaces/whatsapp/collections/number.d.ts +267 -0
- package/plugins/interfaces/whatsapp/collections/number.js +84 -0
- package/plugins/interfaces/whatsapp/collections/phone.d.ts +160 -0
- package/plugins/interfaces/whatsapp/collections/phone.js +55 -0
- package/plugins/interfaces/whatsapp/collections/rate.d.ts +20 -0
- package/plugins/interfaces/whatsapp/collections/rate.js +13 -0
- package/plugins/interfaces/whatsapp/collections/secret.d.ts +57 -0
- package/plugins/interfaces/whatsapp/collections/secret.js +25 -0
- package/plugins/interfaces/whatsapp/collections/sent.d.ts +73 -0
- package/plugins/interfaces/whatsapp/collections/sent.js +28 -0
- package/plugins/interfaces/whatsapp/collections/template.d.ts +89 -0
- package/plugins/interfaces/whatsapp/collections/template.js +30 -0
- package/plugins/interfaces/whatsapp/collections/thread.d.ts +67 -0
- package/plugins/interfaces/whatsapp/collections/thread.js +21 -0
- package/plugins/interfaces/whatsapp/collections/typing.d.ts +63 -0
- package/plugins/interfaces/whatsapp/collections/typing.js +21 -0
- package/plugins/interfaces/whatsapp/contract.d.ts +44 -0
- package/plugins/interfaces/whatsapp/contract.js +41 -0
- package/plugins/interfaces/whatsapp/events/received.d.ts +7 -0
- package/plugins/interfaces/whatsapp/events/received.js +17 -0
- 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 +83 -0
- package/plugins/interfaces/whatsapp/mod.js +186 -0
- 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 +42 -0
- package/plugins/interfaces/whatsapp/processors/receive.js +434 -0
- package/plugins/interfaces/whatsapp/processors/reply.d.ts +49 -0
- package/plugins/interfaces/whatsapp/processors/reply.js +358 -0
- 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/commands.d.ts +27 -0
- package/plugins/interfaces/whatsapp/shared/commands.js +43 -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 +79 -0
- package/plugins/interfaces/whatsapp/shared/graph.js +202 -0
- 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 +39 -0
- package/plugins/interfaces/whatsapp/shared/number.js +115 -0
- 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 +102 -0
- package/plugins/interfaces/whatsapp/shared/payload.js +129 -0
- package/plugins/interfaces/whatsapp/shared/rules.d.ts +11 -0
- package/plugins/interfaces/whatsapp/shared/rules.js +17 -0
- package/plugins/interfaces/whatsapp/shared/settings.d.ts +98 -0
- package/plugins/interfaces/whatsapp/shared/settings.js +11 -0
- package/plugins/interfaces/whatsapp/shared/signature.d.ts +11 -0
- package/plugins/interfaces/whatsapp/shared/signature.js +28 -0
- package/plugins/interfaces/whatsapp/shared/template.d.ts +48 -0
- package/plugins/interfaces/whatsapp/shared/template.js +117 -0
- package/plugins/interfaces/whatsapp/shared/text.d.ts +16 -0
- package/plugins/interfaces/whatsapp/shared/text.js +88 -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/connect.d.ts +45 -0
- package/plugins/interfaces/whatsapp/views/web/connect.js +136 -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/palette.d.ts +10 -0
- package/plugins/interfaces/whatsapp/views/web/palette.js +26 -0
- package/plugins/interfaces/whatsapp/views/web/phone.d.ts +25 -0
- package/plugins/interfaces/whatsapp/views/web/phone.js +60 -0
- package/plugins/interfaces/whatsapp/views/web/space.d.ts +17 -0
- package/plugins/interfaces/whatsapp/views/web/space.js +98 -0
- package/plugins/interfaces/whatsapp/views/web/style.d.ts +7 -0
- package/plugins/interfaces/whatsapp/views/web/style.js +84 -0
- package/plugins/interfaces/whatsapp/views/web/words.d.ts +15 -0
- package/plugins/interfaces/whatsapp/views/web/words.js +26 -0
- package/plugins/interfaces/whatsapp/web.d.ts +15 -0
- package/plugins/interfaces/whatsapp/web.js +37 -0
- package/plugins/models/actions/check.d.ts +2 -0
- package/plugins/models/actions/check.js +64 -0
- package/plugins/models/actions/embed.d.ts +1 -0
- package/plugins/models/actions/embed.js +22 -0
- package/plugins/models/actions/generate.d.ts +1 -0
- package/plugins/models/actions/generate.js +28 -0
- package/plugins/models/actions/image.d.ts +1 -0
- package/plugins/models/actions/image.js +46 -0
- package/plugins/models/actions/offered.d.ts +43 -0
- package/plugins/models/actions/offered.js +313 -0
- package/plugins/models/actions/price.d.ts +1 -0
- package/plugins/models/actions/price.js +23 -0
- package/plugins/models/actions/stream.d.ts +1 -0
- package/plugins/models/actions/stream.js +27 -0
- package/plugins/models/actions/test.d.ts +2 -0
- package/plugins/models/actions/test.js +44 -0
- package/plugins/models/actions/transcribe.d.ts +1 -0
- package/plugins/models/actions/transcribe.js +27 -0
- package/plugins/models/adapters/embeddings/hash.d.ts +7 -0
- package/plugins/models/adapters/embeddings/hash.js +24 -0
- package/plugins/models/adapters/embeddings/openai.d.ts +2 -0
- package/plugins/models/adapters/embeddings/openai.js +21 -0
- 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 +12 -0
- package/plugins/models/adapters/llm/anthropic.js +237 -0
- package/plugins/models/adapters/llm/fake.d.ts +10 -0
- package/plugins/models/adapters/llm/fake.js +30 -0
- package/plugins/models/adapters/llm/gemini.d.ts +18 -0
- package/plugins/models/adapters/llm/gemini.js +218 -0
- package/plugins/models/adapters/llm/openai-compatible.d.ts +9 -0
- package/plugins/models/adapters/llm/openai-compatible.js +147 -0
- package/plugins/models/adapters/llm/openai.d.ts +2 -0
- package/plugins/models/adapters/llm/openai.js +268 -0
- package/plugins/models/adapters/transcription/fake.d.ts +3 -0
- package/plugins/models/adapters/transcription/fake.js +3 -0
- package/plugins/models/adapters/transcription/openai.d.ts +2 -0
- package/plugins/models/adapters/transcription/openai.js +44 -0
- package/plugins/models/collections/image.d.ts +89 -0
- package/plugins/models/collections/image.js +27 -0
- package/plugins/models/contract.d.ts +53 -0
- package/plugins/models/contract.js +8 -0
- package/plugins/models/mod.d.ts +66 -0
- package/plugins/models/mod.js +126 -0
- package/plugins/models/resources/providers.d.ts +15 -0
- package/plugins/models/resources/providers.js +9 -0
- package/plugins/models/shared/catalog.json +12418 -0
- package/plugins/models/shared/choice.d.ts +197 -0
- package/plugins/models/shared/choice.js +163 -0
- package/plugins/models/shared/embed.d.ts +46 -0
- package/plugins/models/shared/embed.js +51 -0
- package/plugins/models/shared/files.d.ts +18 -0
- package/plugins/models/shared/files.js +47 -0
- package/plugins/models/shared/generate.d.ts +53 -0
- package/plugins/models/shared/generate.js +269 -0
- package/plugins/models/shared/image.d.ts +110 -0
- package/plugins/models/shared/image.js +172 -0
- package/plugins/models/shared/plans.d.ts +72 -0
- package/plugins/models/shared/plans.js +81 -0
- package/plugins/models/shared/provider.d.ts +71 -0
- package/plugins/models/shared/provider.js +87 -0
- package/plugins/models/shared/request.d.ts +58 -0
- package/plugins/models/shared/request.js +19 -0
- package/plugins/models/shared/retry.d.ts +29 -0
- package/plugins/models/shared/retry.js +90 -0
- package/plugins/models/shared/telemetry.d.ts +18 -0
- package/plugins/models/shared/telemetry.js +66 -0
- package/plugins/models/shared/transcribe.d.ts +51 -0
- package/plugins/models/shared/transcribe.js +54 -0
- package/plugins/models/shared/types.d.ts +147 -0
- package/plugins/models/shared/types.js +11 -0
- package/plugins/models/shared/use.d.ts +75 -0
- package/plugins/models/shared/use.js +92 -0
- package/runtime/action-input.d.ts +10 -0
- package/runtime/action-input.js +4 -0
- package/runtime/actor.d.ts +122 -0
- package/runtime/actor.js +139 -0
- package/runtime/address.d.ts +11 -0
- package/runtime/address.js +48 -0
- package/runtime/aggregate.d.ts +57 -0
- package/runtime/aggregate.js +202 -0
- package/runtime/api.d.ts +49 -0
- package/runtime/api.js +719 -0
- package/runtime/blobs.d.ts +45 -0
- package/runtime/blobs.js +114 -0
- package/runtime/body.d.ts +16 -0
- package/runtime/body.js +57 -0
- package/runtime/browsers.d.ts +208 -0
- package/runtime/browsers.js +539 -0
- package/runtime/cache.d.ts +24 -0
- package/runtime/cache.js +243 -0
- package/runtime/call-ids.d.ts +8 -0
- package/runtime/call-ids.js +36 -0
- package/runtime/caller.d.ts +105 -0
- package/runtime/caller.js +225 -0
- package/runtime/client.d.ts +203 -0
- package/runtime/client.js +561 -0
- package/runtime/collection.d.ts +125 -0
- package/runtime/collection.js +94 -0
- package/runtime/cookies.d.ts +72 -0
- package/runtime/cookies.js +125 -0
- package/runtime/define.d.ts +822 -0
- package/runtime/define.js +18 -0
- package/runtime/describe.d.ts +331 -0
- package/runtime/describe.js +610 -0
- package/runtime/errors.d.ts +65 -0
- package/runtime/errors.js +41 -0
- package/runtime/executor.d.ts +24 -0
- package/runtime/executor.js +918 -0
- package/runtime/expiring.d.ts +23 -0
- package/runtime/expiring.js +64 -0
- package/runtime/fetch.d.ts +119 -0
- package/runtime/fetch.js +487 -0
- package/runtime/kept.d.ts +22 -0
- package/runtime/kept.js +128 -0
- package/runtime/legacy-env.d.ts +25 -0
- package/runtime/legacy-env.js +35 -0
- package/runtime/links.d.ts +65 -0
- package/runtime/links.js +110 -0
- package/runtime/maintain.d.ts +89 -0
- package/runtime/maintain.js +120 -0
- package/runtime/memory.d.ts +2 -0
- package/runtime/memory.js +328 -0
- package/runtime/metrics.d.ts +83 -0
- package/runtime/metrics.js +167 -0
- package/runtime/mod.d.ts +32 -0
- package/runtime/mod.js +21 -0
- package/runtime/mongo.d.ts +75 -0
- package/runtime/mongo.js +482 -0
- package/runtime/names.d.ts +14 -0
- package/runtime/names.js +1 -0
- package/runtime/observe.d.ts +66 -0
- package/runtime/observe.js +463 -0
- package/runtime/ops.d.ts +187 -0
- package/runtime/ops.js +304 -0
- package/runtime/owner.d.ts +248 -0
- package/runtime/owner.js +2300 -0
- 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 +31 -0
- package/runtime/reads.js +87 -0
- package/runtime/registry.d.ts +131 -0
- package/runtime/registry.js +464 -0
- 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 +52 -0
- package/runtime/runtime.js +59 -0
- package/runtime/runtimes.d.ts +62 -0
- package/runtime/runtimes.js +95 -0
- package/runtime/schedules.d.ts +161 -0
- package/runtime/schedules.js +156 -0
- package/runtime/site.d.ts +61 -0
- package/runtime/site.js +188 -0
- package/runtime/store.d.ts +300 -0
- package/runtime/store.js +27 -0
- package/runtime/tickets.d.ts +15 -0
- package/runtime/tickets.js +65 -0
- package/runtime/timers.d.ts +44 -0
- package/runtime/timers.js +308 -0
- package/runtime/updates.d.ts +16 -0
- package/runtime/updates.js +222 -0
- package/runtime/views.d.ts +37 -0
- package/runtime/views.js +105 -0
- package/runtime/wire.d.ts +145 -0
- package/runtime/wire.js +113 -0
- package/stores/blobs/files/mod.d.ts +4 -0
- package/stores/blobs/files/mod.js +39 -0
- package/stores/blobs/gcs/mod.d.ts +30 -0
- package/stores/blobs/gcs/mod.js +106 -0
- package/stores/blobs/http/mod.d.ts +15 -0
- package/stores/blobs/http/mod.js +33 -0
- package/stores/latency/mod.d.ts +7 -0
- package/stores/latency/mod.js +46 -0
- package/stores/memory/mod.d.ts +7 -0
- package/stores/memory/mod.js +7 -0
- package/stores/sql/postgres/dialect.d.ts +13 -0
- package/stores/sql/postgres/dialect.js +108 -0
- package/stores/sql/postgres/layout.d.ts +53 -0
- package/stores/sql/postgres/layout.js +241 -0
- package/stores/sql/postgres/lease.d.ts +30 -0
- package/stores/sql/postgres/lease.js +142 -0
- package/stores/sql/postgres/legacy.d.ts +47 -0
- package/stores/sql/postgres/legacy.js +108 -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 +73 -0
- package/stores/sql/postgres/mod.js +1300 -0
- package/stores/sql/postgres/pattern.d.ts +10 -0
- package/stores/sql/postgres/pattern.js +70 -0
- package/stores/sql/postgres/pool.d.ts +35 -0
- package/stores/sql/postgres/pool.js +47 -0
- package/stores/sql/postgres/tenants.d.ts +60 -0
- package/stores/sql/postgres/tenants.js +309 -0
- package/stores/sql/postgres/update.d.ts +13 -0
- package/stores/sql/postgres/update.js +71 -0
- package/stores/sql/shared/aggregate.d.ts +32 -0
- package/stores/sql/shared/aggregate.js +80 -0
- package/stores/sql/shared/capped.d.ts +2 -0
- package/stores/sql/shared/capped.js +22 -0
- package/stores/sql/shared/filter.d.ts +84 -0
- package/stores/sql/shared/filter.js +153 -0
- package/stores/sql/shared/rows.d.ts +14 -0
- package/stores/sql/shared/rows.js +29 -0
- package/stores/sql/shared/statement.d.ts +12 -0
- package/stores/sql/shared/statement.js +244 -0
- package/stores/sql/sqlite/apart.d.ts +11 -0
- package/stores/sql/sqlite/apart.js +219 -0
- package/stores/sql/sqlite/dialect.d.ts +17 -0
- package/stores/sql/sqlite/dialect.js +119 -0
- package/stores/sql/sqlite/mod.d.ts +78 -0
- package/stores/sql/sqlite/mod.js +713 -0
- package/testing/boundaries.d.ts +10 -0
- package/testing/boundaries.js +72 -0
- package/testing/mod.d.ts +81 -0
- package/testing/mod.js +225 -0
- package/testing/words.d.ts +18 -0
- package/testing/words.js +60 -0
- package/index.js +0 -1
package/AGENTS.md
ADDED
|
@@ -0,0 +1,1054 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
A guide for coding agents (Claude Code, Codex, Cursor, Gemini) building an app with Pairz. Read it
|
|
4
|
+
whole before you write code. The last section is for work on Pairz itself.
|
|
5
|
+
|
|
6
|
+
It ships in the package (`node_modules/pairz/AGENTS.md`, and `@pairz/pairz` on JSR) and goes with
|
|
7
|
+
`pairz@1.0.0-rc.82`. The [reading list](llms.txt) links to every docs page in the installed package.
|
|
8
|
+
The same pages are online at https://pairz.ai/llms.txt. When you're unsure of a name, fetch its page
|
|
9
|
+
or read the package's types (`node_modules/pairz/**/*.d.ts`). Don't guess.
|
|
10
|
+
|
|
11
|
+
It also comes as an Agent Skill, for any coding agent: `npx skills add pairzhq/pairz`.
|
|
12
|
+
|
|
13
|
+
## What Pairz is
|
|
14
|
+
|
|
15
|
+
A runtime for apps that people and AI use alike. You write the app once: its data, what can be done,
|
|
16
|
+
who may do it, and how it shows. People use it on a web page or in a terminal, the app's own agents
|
|
17
|
+
through tools, and outside assistants (ChatGPT, Claude, any MCP client) over MCP. Every way in calls
|
|
18
|
+
the same Actions, under the same rules, and every write is on one record of who did what, for whom.
|
|
19
|
+
It runs on Node 24+, Deno 2.9+ and Bun.
|
|
20
|
+
|
|
21
|
+
## Find it: what an app needs, and where it's documented
|
|
22
|
+
|
|
23
|
+
**Starting and checking an app**
|
|
24
|
+
|
|
25
|
+
- Start a checked TypeScript app → `pairz init [dir]` →
|
|
26
|
+
[Start an app](docs/guides/the-compiler.md#start-an-app).
|
|
27
|
+
- Assemble plugins from declarations → `pairz gen` →
|
|
28
|
+
[The files and their names](docs/guides/the-compiler.md#the-files-and-their-names).
|
|
29
|
+
- Load only one host's declarations → `#pairz/plugins/<name>/web.ts` →
|
|
30
|
+
[Load a plugin](docs/guides/the-compiler.md#load-a-plugin).
|
|
31
|
+
- Catch misspelled registry names → `AppNames` →
|
|
32
|
+
[Typed names](docs/guides/the-compiler.md#typed-names).
|
|
33
|
+
- Keep generated files current → `pairz gen --watch` →
|
|
34
|
+
[Watch and check](docs/guides/the-compiler.md#watch-and-check).
|
|
35
|
+
- Check generated files in CI → `pairz gen --check` →
|
|
36
|
+
[Watch and check](docs/guides/the-compiler.md#watch-and-check).
|
|
37
|
+
- Take over a plugin's assembly → `pairz gen --eject [plugin]` →
|
|
38
|
+
[Mix generated and hand-written plugins](docs/guides/the-compiler.md#mix-generated-and-hand-written-plugins).
|
|
39
|
+
- Validate an Action's annotated input → `defineAction({ run })`, `pairz gen` →
|
|
40
|
+
[An Action's input from its type](docs/guides/the-compiler.md#an-actions-input-from-its-type).
|
|
41
|
+
- Validate collection writes from a document type → `defineCollection<Order>({ indexes, queries })`
|
|
42
|
+
→ [A collection from its type](docs/guides/the-compiler.md#a-collection-from-its-type).
|
|
43
|
+
- Read a typed document by collection name → `ctx.db.collection("order")` →
|
|
44
|
+
[Collections](docs/reference.md#collections).
|
|
45
|
+
- Test without an API key → a scripted `LlmAdapter`, `memoryStore` →
|
|
46
|
+
[Fakes at the edges](docs/build-compass/part-10-testing/31-fakes-at-the-edges.md).
|
|
47
|
+
|
|
48
|
+
**Actions, access and mail**
|
|
49
|
+
|
|
50
|
+
- Call an Action that takes nothing → `defineAction({ run })` →
|
|
51
|
+
[Actions with no parameters](docs/reference.md#actions-with-no-parameters).
|
|
52
|
+
- Type an Action's parameters from its fields → `defineAction({ input, run })` →
|
|
53
|
+
[A grant and a transaction for the whole Action](docs/reference.md#a-grant-and-a-transaction-for-the-whole-action).
|
|
54
|
+
- Share caller rules across a plugin → `definePlugin({ defaults: { allow } })` →
|
|
55
|
+
[One permission check for Actions and queries](docs/reference.md#one-permission-check-for-actions-and-queries).
|
|
56
|
+
- Check a person's permission before an Action runs → `async allow(actor, input, ctx)` →
|
|
57
|
+
[One permission check for Actions and queries](docs/reference.md#one-permission-check-for-actions-and-queries).
|
|
58
|
+
- Record writes under a named grant → `defineAction({ as: "inventory-adjust" })` →
|
|
59
|
+
[A grant and a transaction for the whole Action](docs/reference.md#a-grant-and-a-transaction-for-the-whole-action).
|
|
60
|
+
- Run an Action in one transaction → `defineAction({ transaction: true })` →
|
|
61
|
+
[A grant and a transaction for the whole Action](docs/reference.md#a-grant-and-a-transaction-for-the-whole-action).
|
|
62
|
+
- Act on events on the app's own authority, for nobody → a Processor's `as: "order-review"` →
|
|
63
|
+
[Processors](docs/reference.md#processors).
|
|
64
|
+
- Add a Processor that ignores the events already logged → its `start: "now"` →
|
|
65
|
+
[Processors](docs/reference.md#processors).
|
|
66
|
+
- Test mail without sending it → `captureEmail()` →
|
|
67
|
+
[Mail in tests: the capture adapter](docs/reference/plugins/email.md#mail-in-tests-the-capture-adapter).
|
|
68
|
+
- Open development mail as files → `resources.email.capture.directory` →
|
|
69
|
+
[Mail in tests: the capture adapter](docs/build-compass/part-10-testing/31-fakes-at-the-edges.md#mail-in-tests-the-capture-adapter).
|
|
70
|
+
- Send a receipt or build its MIME source → `email.send`, `mime(message, from)` →
|
|
71
|
+
[Mail in tests: the capture adapter](docs/reference/plugins/email.md#mail-in-tests-the-capture-adapter).
|
|
72
|
+
- Limit reads and writes at the data → `resources.shared`, `guard`, `byCollection` →
|
|
73
|
+
[Rules: `guard` and `labels`](docs/reference.md#rules-guard-and-labels).
|
|
74
|
+
- Group several writes inside an Action → `ctx.transaction`, `tx.call` →
|
|
75
|
+
[A grant and a transaction for the whole Action](docs/reference.md#a-grant-and-a-transaction-for-the-whole-action).
|
|
76
|
+
- Make nested calls safe to retry → `ctx.call`, `ctx.retry`, `ctx.branch(key)` →
|
|
77
|
+
[Nested calls and retries](docs/reference.md#nested-calls-and-retries).
|
|
78
|
+
- Read a named query as its caller → `collection.query`, `runtime.query` →
|
|
79
|
+
[Collections](docs/reference.md#collections).
|
|
80
|
+
|
|
81
|
+
**Chats**
|
|
82
|
+
|
|
83
|
+
- Archive a chat, for everyone who sees it → `chat.archive { thread, archived: true }` →
|
|
84
|
+
[Archiving a chat](docs/guides/chats.md#archiving-a-chat).
|
|
85
|
+
- Restore an archived chat → `chat.archive { thread, archived: false }`, or a new message →
|
|
86
|
+
[Restoring a chat](docs/guides/chats.md#restoring-a-chat).
|
|
87
|
+
- List archived chats → `thread.recent { archived: true }` →
|
|
88
|
+
[Listing archived chats](docs/guides/chats.md#listing-archived-chats).
|
|
89
|
+
|
|
90
|
+
**Screens and dates**
|
|
91
|
+
|
|
92
|
+
- UI components several screens or plugins share → `lib/web/` (the plugin's, or the app's) →
|
|
93
|
+
[Shared UI: an app's own components](docs/guides/a-business-apps-screens.md#shared-ui-an-apps-own-components).
|
|
94
|
+
- Build a form with labelled inputs → `Form`, `Field`, `Input` →
|
|
95
|
+
[Forms](docs/guides/the-web-toolkit.md#forms).
|
|
96
|
+
- Ask before deleting → `useConfirm`, `ConfirmDialog` →
|
|
97
|
+
[Confirming an action](docs/guides/the-web-toolkit.md#confirming-an-action).
|
|
98
|
+
- Add or edit a record in a dialog with field errors → `RecordDialog`, `RecordChange` →
|
|
99
|
+
[A record in a dialog](docs/guides/the-web-toolkit.md#a-record-in-a-dialog).
|
|
100
|
+
- Show a server's refused field under its input → `form.error(name)`, `refusedField` →
|
|
101
|
+
[Showing a refused field](docs/guides/the-web-toolkit.md#showing-a-refused-field).
|
|
102
|
+
- Search, sort and page a list → `DataTable`, `tableAddress`, `tableQuery` →
|
|
103
|
+
[Tables and their files](docs/guides/the-web-toolkit.md#tables-and-their-files).
|
|
104
|
+
- Choose a day, time or range → `DatePicker`, `DateTimePicker`, `DateRangePicker` →
|
|
105
|
+
[Dates](docs/guides/the-web-toolkit.md#dates).
|
|
106
|
+
- Filter a report by a date range to the second → `DateRangePicker seconds` →
|
|
107
|
+
[Date ranges with seconds](docs/guides/the-web-toolkit.md#date-ranges-with-seconds).
|
|
108
|
+
- Read and check a typed or pasted date-time → `parseDayTime`, `patternProblem`, `dayTimePattern` →
|
|
109
|
+
[Reading typed dates and times](docs/guides/the-web-toolkit.md#reading-typed-dates-and-times).
|
|
110
|
+
- Turn a local wall-clock time into an instant in a time zone → `dateOfDayTime` →
|
|
111
|
+
[Reading typed dates and times](docs/guides/the-web-toolkit.md#reading-typed-dates-and-times).
|
|
112
|
+
- Save from a View handler → `ctx.db.collection(name).insertOne/updateOne/deleteOne` →
|
|
113
|
+
[The rules every screen keeps](docs/guides/a-business-apps-screens.md#the-rules-every-screen-keeps).
|
|
114
|
+
|
|
115
|
+
**Files, exports and paper**
|
|
116
|
+
|
|
117
|
+
- Export a table to CSV/JSON/SQL/PDF with totals → `DataTable tableExportOptions/formats/footerRows`
|
|
118
|
+
→ [Exporting a table](docs/guides/the-web-toolkit.md#exporting-a-table).
|
|
119
|
+
- Share a custom file format across screens → `TableExportFormats`, `TableExportFormat` →
|
|
120
|
+
[Exporting a table](docs/guides/the-web-toolkit.md#exporting-a-table).
|
|
121
|
+
- Choose the order and labels of available formats → `exportChoices` →
|
|
122
|
+
[Exporting a table](docs/guides/the-web-toolkit.md#exporting-a-table).
|
|
123
|
+
- Project rows and totals by column key → `tableSheet`, `TableExportSheet`, `ExportCell` →
|
|
124
|
+
[Exporting a table](docs/guides/the-web-toolkit.md#exporting-a-table).
|
|
125
|
+
- Make an attachment or download a table → `exportTableFile`, `downloadTableFile`,
|
|
126
|
+
`TableExportOptions` → [Exporting a table](docs/guides/the-web-toolkit.md#exporting-a-table).
|
|
127
|
+
- Choose a CSV dialect or SQL target → `csv` (`quote`, `delimiter`, `lineEnding`, `finalNewline`,
|
|
128
|
+
`header`), `values`, `tableName` →
|
|
129
|
+
[Exporting a table](docs/guides/the-web-toolkit.md#exporting-a-table).
|
|
130
|
+
- Put New or Print beside the table controls → `DataTable toolbarContent` →
|
|
131
|
+
[A toolbar of your own](docs/guides/the-web-toolkit.md#a-toolbar-of-your-own).
|
|
132
|
+
- Show a page-size menu with one choice → `DataTable/Pagination showSinglePageSize` →
|
|
133
|
+
[A toolbar of your own](docs/guides/the-web-toolkit.md#a-toolbar-of-your-own).
|
|
134
|
+
- Print or email a table with aligned totals and a logo → `TablePdfOptions` (`size`, `columns`,
|
|
135
|
+
`titleLines`, `subtitle`, `headerImage`) →
|
|
136
|
+
[Printing a table](docs/guides/the-web-toolkit.md#printing-a-table).
|
|
137
|
+
- Place a transparent PNG or a JPEG on an invoice → `pdfImage`, `PdfImage`, `drawDocumentPdf` →
|
|
138
|
+
[Images and barcodes in a document](docs/guides/the-web-toolkit.md#images-and-barcodes-in-a-document).
|
|
139
|
+
- Print a barcode on paper or screen → `drawDocumentPdf`, `ProductBarcode`, `barcodeBars`,
|
|
140
|
+
`BarcodeOptions` →
|
|
141
|
+
[Images and barcodes in a document](docs/guides/the-web-toolkit.md#images-and-barcodes-in-a-document).
|
|
142
|
+
- Make a barcode PNG for a product label or email → `barcodePng` →
|
|
143
|
+
[Images and barcodes in a document](docs/guides/the-web-toolkit.md#images-and-barcodes-in-a-document).
|
|
144
|
+
- Encode a retail symbol or a Code 39 shelf label → `ean8`, `ean13`, `code39` (`format`, `check`) →
|
|
145
|
+
[Images and barcodes in a document](docs/guides/the-web-toolkit.md#images-and-barcodes-in-a-document).
|
|
146
|
+
- Compute or verify a product's EAN check digit → `eanDigits` →
|
|
147
|
+
[Images and barcodes in a document](docs/guides/the-web-toolkit.md#images-and-barcodes-in-a-document).
|
|
148
|
+
- Print a screen → `NoPrint`, `PrintOnly` → [Printing](docs/guides/the-web-toolkit.md#printing).
|
|
149
|
+
- Build a PDF on the server → `documentPdf` from `pairz/web/export` →
|
|
150
|
+
[PDFs on a server](docs/guides/the-web-toolkit.md#pdfs-on-a-server).
|
|
151
|
+
- Read a file without loading it in a list → `projection`, `runtime.bytes` →
|
|
152
|
+
[Pictures in a list](docs/guides/a-business-apps-screens.md#pictures-in-a-list).
|
|
153
|
+
|
|
154
|
+
**Computers and plans**
|
|
155
|
+
|
|
156
|
+
- Run a tier's models on each person's plans first → `harness` on a provider,
|
|
157
|
+
`modelChoice.harnesses`, `connectedPlans` →
|
|
158
|
+
[Plans first](docs/guides/agents-on-peoples-plans.md#plans-first).
|
|
159
|
+
- Run a model a plan names its own way (Cursor's) → `serves` (`CURSOR_NAMES`) →
|
|
160
|
+
[Cursor's names for models](docs/guides/agents-on-peoples-plans.md#cursors-names-for-models).
|
|
161
|
+
- Offer a tier's models by how each is paid for → `models.offered` with `plans`, `model.pick`'s
|
|
162
|
+
`plans` →
|
|
163
|
+
[Choosing a tier's models](docs/guides/agents-on-peoples-plans.md#choosing-a-tiers-models).
|
|
164
|
+
- See what a chain would try for someone → `models.check` with `harnesses` →
|
|
165
|
+
[Plans first](docs/guides/agents-on-peoples-plans.md#plans-first).
|
|
166
|
+
- Run agents on a person's Grok plan → `grok-plan`, engine `grok` →
|
|
167
|
+
[The providers](docs/guides/agents-on-peoples-plans.md#the-providers).
|
|
168
|
+
- Run agents on a person's Cursor plan → `cursor-plan`, engine `cursor` (Cursor's SDK, with Node) →
|
|
169
|
+
[The providers](docs/guides/agents-on-peoples-plans.md#the-providers).
|
|
170
|
+
- Connect a person's plans without a terminal → the connect flow, `/accounts?connect=<plan>` →
|
|
171
|
+
[Connecting plans: one flow](docs/guides/agents-on-peoples-plans.md#connecting-plans-one-flow).
|
|
172
|
+
- Ready a computer for plans (woken, updated, checked) → `computer.prepare` →
|
|
173
|
+
[Readying a computer](docs/guides/agents-on-peoples-plans.md#readying-a-computer).
|
|
174
|
+
- Install a missing plan CLI, then sign in → `computer.engine.login` (`install: true`) →
|
|
175
|
+
[A missing CLI](docs/guides/agents-on-peoples-plans.md#a-missing-cli).
|
|
176
|
+
- Check that a person's plan answers → `llm.test` →
|
|
177
|
+
[A test, on the plan](docs/guides/agents-on-peoples-plans.md#a-test-on-the-plan).
|
|
178
|
+
- Show a person's plans and computers → Your AI, `accountSections` (`plans: true`), `planList` →
|
|
179
|
+
[Your AI](docs/guides/agents-on-peoples-plans.md#your-ai).
|
|
180
|
+
- Ask about plans in the app's welcome → `computer.plans.welcome` →
|
|
181
|
+
[Your AI](docs/guides/agents-on-peoples-plans.md#your-ai).
|
|
182
|
+
- Sign a plan out on one computer → `computer.engine.logout` →
|
|
183
|
+
[Signing out](docs/guides/agents-on-peoples-plans.md#signing-out).
|
|
184
|
+
- Share a computer signed in to a plan → `computer.share` (`plan_signed_in`) →
|
|
185
|
+
[Signing out](docs/guides/agents-on-peoples-plans.md#signing-out).
|
|
186
|
+
- Keep a cloud computer's installed CLIs across sleep → `startPool` (its home: `<disk>/home`) →
|
|
187
|
+
[What a cloud computer keeps](docs/guides/agents-on-peoples-plans.md#what-a-cloud-computer-keeps).
|
|
188
|
+
- Keep cloud computers on the app's release → `offerUpdate` (a pool's `ready`) →
|
|
189
|
+
[What a cloud computer keeps](docs/guides/agents-on-peoples-plans.md#what-a-cloud-computer-keeps).
|
|
190
|
+
- Say a plan's computer is waking, and how long → `computerWake.estimate`, the `waking` chunk →
|
|
191
|
+
[Waking a computer](docs/guides/agents-on-peoples-plans.md#waking-a-computer).
|
|
192
|
+
- Price a tier at what the person would run → `TierShown.yours`, `ModelShown.plan` →
|
|
193
|
+
[What a plan costs](docs/guides/agents-on-peoples-plans.md#what-a-plan-costs).
|
|
194
|
+
- Show what a cloud computer costs → `computer.cost`, `computerWake.prices` →
|
|
195
|
+
[What a plan costs](docs/guides/agents-on-peoples-plans.md#what-a-plan-costs).
|
|
196
|
+
|
|
197
|
+
## How Pairz works, in one minute
|
|
198
|
+
|
|
199
|
+
An app is a **runtime** made of **plugins**. A plugin is plain objects, made of six primitives:
|
|
200
|
+
|
|
201
|
+
| Primitive | What it is |
|
|
202
|
+
| -------------- | ---------------------------------------------------------------------------------------- |
|
|
203
|
+
| **Collection** | documents with a JSON Schema, read and written with the MongoDB collection API |
|
|
204
|
+
| **Action** | something that can be done, by name, with a JSON Schema `input` and an `allow` (who may) |
|
|
205
|
+
| **Processor** | what happens when events happen: it hears the events it names, at least once, in order |
|
|
206
|
+
| **View** | how data shows in one place: text for a model or the terminal, Ink, React for the web |
|
|
207
|
+
| **Resource** | configuration as named plain objects, by kind (`agents`, `tools`, `provider`…) |
|
|
208
|
+
| **Adapter** | one implementation of a port, by name: a model provider's protocol, an email service |
|
|
209
|
+
|
|
210
|
+
A plugin may also declare `routes` and `who` (HTTP), `guard` (rules), `schedules` and a startup
|
|
211
|
+
`check`. Plugins merge in order: a later plugin's resources patch an earlier one's (objects merge,
|
|
212
|
+
`null` removes), and a later View, adapter or route replaces one of the same name.
|
|
213
|
+
|
|
214
|
+
The runtime keeps one contract for every caller:
|
|
215
|
+
|
|
216
|
+
- **Who, for whom, where.** Every call carries an actor, `{ kind, id, for?, in? }`: a person, a
|
|
217
|
+
contact from outside, or an agent working `for` one of them. `in` is where the work is (a space,
|
|
218
|
+
with the access plugin).
|
|
219
|
+
- **The rules, at the data.** Reads come back filtered by what the actor reaches, and writes are
|
|
220
|
+
checked, whichever way the call came in.
|
|
221
|
+
- **The record.** Every write records an event in the same commit, naming its actor.
|
|
222
|
+
|
|
223
|
+
What people often get wrong:
|
|
224
|
+
|
|
225
|
+
- **Two kinds of events.** A collection write records `<collection>.created`, `.updated` or
|
|
226
|
+
`.deleted`. An Action call records `action.started`, then `action.completed` or `action.failed`.
|
|
227
|
+
Callers call Actions; events are what Actions and writes produce.
|
|
228
|
+
- **`runtime.subscribe` hears events; `runtime.observe` keeps a View live**, running it again when a
|
|
229
|
+
commit changes what it read.
|
|
230
|
+
- **Plain saves write the collection; Actions do what's more.** A screen's handler, a tool, a script
|
|
231
|
+
and REST insert, update and delete documents directly, under the rules and the schema. An Action
|
|
232
|
+
is for business logic: a rule a schema can't say, several writes that must agree, an effect
|
|
233
|
+
outside (a message, a payment). Named queries and Views read, and never write while they render.
|
|
234
|
+
|
|
235
|
+
Plugins reach each other only through the runtime, by name. One that builds on another says so
|
|
236
|
+
(`requires: ["chat"]`) and imports only that plugin's `contract.ts`, never its code.
|
|
237
|
+
|
|
238
|
+
## Start a project
|
|
239
|
+
|
|
240
|
+
Start on Node 24 or newer:
|
|
241
|
+
|
|
242
|
+
```sh
|
|
243
|
+
npx pairz@1.0.0-rc.82 init orders
|
|
244
|
+
cd orders
|
|
245
|
+
npm run check
|
|
246
|
+
npm run dev
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
Open the local address the server prints. The starter installs dependencies, configures Node to load
|
|
250
|
+
TSX, and includes an orders plugin with a collection, query, Action, web View and test.
|
|
251
|
+
|
|
252
|
+
In `app.ts`, list the plugins in order. In `plugins/<name>/`, each declaration is a file with a
|
|
253
|
+
default export. Put a collection's type and named queries in `collections/`, business logic in
|
|
254
|
+
`actions/`, and Views in `views/` (including `views/web/` and `views/terminal/`). Use `plugin.ts`
|
|
255
|
+
for fields such as `requires`, `defaults` and `guard`, `lib/web/` for React components, and
|
|
256
|
+
`contract.ts` for shapes other plugins import.
|
|
257
|
+
|
|
258
|
+
`pairz gen` assembles the files, writes schemas from the TypeScript types, and records the app's
|
|
259
|
+
names in `pairz-env.d.ts`. Commit that declaration and ignore `.pairz/build/`. The server imports
|
|
260
|
+
`#pairz/plugins/<name>/mod.ts`, the browser `web.ts` and the terminal `terminal.ts` from the same
|
|
261
|
+
folder. The starter's dev script watches declarations and the server. On Deno, the compiler entry is
|
|
262
|
+
`deno run -A jsr:@pairz/pairz@1.0.0-rc.82/gen`.
|
|
263
|
+
|
|
264
|
+
Existing plugins with a hand-written `mod.ts` keep their own assembly and explicit schemas. List
|
|
265
|
+
them alongside generated plugins in `app.ts`. [The compiler](docs/guides/the-compiler.md).
|
|
266
|
+
|
|
267
|
+
**Give the project its own guide.** Write `AGENTS.md` at its root, and `CLAUDE.md` holding the one
|
|
268
|
+
line `@AGENTS.md` (Claude Code reads `CLAUDE.md`, and follows the import). Keep it short and true:
|
|
269
|
+
|
|
270
|
+
```markdown
|
|
271
|
+
# AGENTS.md
|
|
272
|
+
|
|
273
|
+
This app runs on Pairz (pairz@1.0.0-rc.82). Read node_modules/pairz/AGENTS.md first;
|
|
274
|
+
node_modules/pairz/llms.txt lists the installed guides.
|
|
275
|
+
|
|
276
|
+
- `npm test` runs offline. Run `npm run build` after editing declarations. `npm run check` checks
|
|
277
|
+
generated files, types, unused code, lint, formatting and the plugin's declaration.
|
|
278
|
+
- `app.ts` lists the plugins in order. Each file in a plugin's primitive folders default-exports its
|
|
279
|
+
declaration. Put React components in `lib/web/`.
|
|
280
|
+
- Plain saves write the collection. Actions hold business logic. Keep access rules at the data
|
|
281
|
+
(`shared` first, then a `guard`). Give each tool a `tool:<name>` View.
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
## A plugin, end to end
|
|
285
|
+
|
|
286
|
+
A collection, a tool that adds to it, an Action for what's more than a save, a View for the model, a
|
|
287
|
+
rule and an agent: `plugins/tasks/`, a file each.
|
|
288
|
+
|
|
289
|
+
Each path below is relative to `plugins/tasks/` until `app.ts`. The compiler names each declaration
|
|
290
|
+
from its file. The example adds tasks to the starter's orders app.
|
|
291
|
+
|
|
292
|
+
`collections/task.ts` declares the document and its open-tasks query. The plugin sets who may call
|
|
293
|
+
the query in `plugin.ts`.
|
|
294
|
+
|
|
295
|
+
```ts
|
|
296
|
+
import { defineCollection } from "pairz";
|
|
297
|
+
|
|
298
|
+
export interface Task {
|
|
299
|
+
/** @minLength 1 */
|
|
300
|
+
title: string;
|
|
301
|
+
done?: boolean;
|
|
302
|
+
in: string;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export default defineCollection<Task>({
|
|
306
|
+
queries: {
|
|
307
|
+
open: (tasks) => tasks.find({ done: { $ne: true } }).toArray(),
|
|
308
|
+
},
|
|
309
|
+
});
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
`resources/tools.ts`: a plain save, so the tool writes the collection itself (as its agent, for the
|
|
313
|
+
person it works for, under the rules):
|
|
314
|
+
|
|
315
|
+
```ts
|
|
316
|
+
import { failure } from "pairz";
|
|
317
|
+
import { tool } from "pairz/plugins/agents";
|
|
318
|
+
|
|
319
|
+
export default {
|
|
320
|
+
// A plain save: the tool writes the collection, under the rules, as its agent's person.
|
|
321
|
+
add_task: tool({
|
|
322
|
+
description: "Adds a task to this chat's space",
|
|
323
|
+
input: { type: "object", properties: { title: { type: "string" } }, required: ["title"] },
|
|
324
|
+
run: async ({ title }, ctx) => {
|
|
325
|
+
if (!ctx.in) throw failure("invalid", "Add tasks in a space.", { public: true });
|
|
326
|
+
const { insertedId } = await ctx.db.collection("task").insertOne({ title, in: ctx.in });
|
|
327
|
+
return { task: insertedId };
|
|
328
|
+
},
|
|
329
|
+
}),
|
|
330
|
+
// An Action, as a tool: its description and input are the Action's.
|
|
331
|
+
complete_task: { action: "task.complete" },
|
|
332
|
+
};
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
`actions/task.complete.ts`: completing a task holds a rule the schema can't say, so it's an Action,
|
|
336
|
+
the one way every caller completes one:
|
|
337
|
+
|
|
338
|
+
```ts
|
|
339
|
+
import { defineAction, failure } from "pairz";
|
|
340
|
+
|
|
341
|
+
/** Done once, by whoever reaches the task: a rule the schema can't say, so an Action. */
|
|
342
|
+
export default defineAction({
|
|
343
|
+
description: "Marks a task done, once",
|
|
344
|
+
run: async (ctx, { task }: { task: string }) => {
|
|
345
|
+
const tasks = ctx.db.collection("task");
|
|
346
|
+
// The filter holds the rule: of two at once, one completes it.
|
|
347
|
+
const { matchedCount } = await tasks
|
|
348
|
+
.updateOne({ _id: task, done: { $ne: true } }, { $set: { done: true } });
|
|
349
|
+
if (matchedCount) return { done: task };
|
|
350
|
+
// Not one they reach, or done already: say which.
|
|
351
|
+
if (!await tasks.findOne({ _id: task })) {
|
|
352
|
+
throw failure("not_found", `No task ${task} here.`, { public: true });
|
|
353
|
+
}
|
|
354
|
+
throw failure("invalid", "That task is done already.", { public: true });
|
|
355
|
+
},
|
|
356
|
+
});
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
`views/tasks.ts` shows the records the viewer can reach, with the ids a model needs to complete
|
|
360
|
+
them.
|
|
361
|
+
|
|
362
|
+
```ts
|
|
363
|
+
import type { ViewContext } from "pairz";
|
|
364
|
+
import type { Task } from "../collections/task.ts";
|
|
365
|
+
|
|
366
|
+
export default function tasks(_: unknown, ctx: ViewContext) {
|
|
367
|
+
const read = ctx.db.collection("task").query<(Task & { _id: string })[]>("open");
|
|
368
|
+
const open = read.value ?? [];
|
|
369
|
+
return open.length ? open.map((t) => `- ${t.title} (${t._id})`).join("\n") : "No tasks.";
|
|
370
|
+
}
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
`views/tool/add_task.ts` shows the list after a save. A failure passes its words to the model.
|
|
374
|
+
|
|
375
|
+
```ts
|
|
376
|
+
import type { ViewContext } from "pairz";
|
|
377
|
+
|
|
378
|
+
export default (call: { output: string }, ctx: ViewContext) =>
|
|
379
|
+
call.output.startsWith("Error:") ? call.output : ctx.show("tasks", {});
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
`views/tool/complete_task.ts` shows the same list after completion.
|
|
383
|
+
|
|
384
|
+
```ts
|
|
385
|
+
export { default } from "./add_task.ts";
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
`resources/shared.ts`, `resources/agents.ts` and `plugin.ts`:
|
|
389
|
+
|
|
390
|
+
```ts
|
|
391
|
+
/** The rule, at the data: a task lives in a space (its `in`), and its members reach it. */
|
|
392
|
+
export default { task: {} };
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
```ts
|
|
396
|
+
export default {
|
|
397
|
+
helper: {
|
|
398
|
+
default: true,
|
|
399
|
+
instructions: "Keep tasks.",
|
|
400
|
+
model: "helper",
|
|
401
|
+
tools: ["add_task", "complete_task"],
|
|
402
|
+
},
|
|
403
|
+
};
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
```ts
|
|
407
|
+
import { people, type Plugin } from "pairz";
|
|
408
|
+
|
|
409
|
+
export default { requires: ["chat", "spaces"], defaults: { allow: people } } satisfies Partial<
|
|
410
|
+
Plugin
|
|
411
|
+
>;
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
`app.ts` lists the plugins and sets the model alias the agent names. Without a key it's
|
|
415
|
+
`"fake/echo"`, Pairz's offline model: it echoes what it's told, and calls a tool, with no input,
|
|
416
|
+
when the message names it ("add task" for `add_task`).
|
|
417
|
+
|
|
418
|
+
```ts
|
|
419
|
+
import { definePlugin, type Plugin } from "pairz";
|
|
420
|
+
import { models } from "pairz/plugins/models";
|
|
421
|
+
import { chat } from "pairz/plugins/agents";
|
|
422
|
+
import { access, devSignIn } from "pairz/plugins/access";
|
|
423
|
+
import orders from "#pairz/plugins/orders/mod.ts";
|
|
424
|
+
import tasks from "#pairz/plugins/tasks/mod.ts";
|
|
425
|
+
|
|
426
|
+
export function plugins(settings: { openai?: string } = {}): Plugin[] {
|
|
427
|
+
const provider = settings.openai ? { openai: { apiKey: settings.openai } } : {};
|
|
428
|
+
const model = { helper: settings.openai ? "openai/gpt-5.4-mini" : "fake/echo" };
|
|
429
|
+
const app = definePlugin({ name: "app-settings", resources: { provider, model } });
|
|
430
|
+
return [models, chat, ...access, devSignIn, orders, tasks, app];
|
|
431
|
+
}
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
## Test without an API key: the default loop
|
|
435
|
+
|
|
436
|
+
Run `npm run build` to generate and type-check changes, `npm test` after each change, and
|
|
437
|
+
`npm run check` before you stop. The starter checks generated files, types, unused code, lint,
|
|
438
|
+
formatting and the plugin's declaration. No test needs a key or the network. Run the app as `app.ts`
|
|
439
|
+
makes it, with fakes only where it meets the world: a scripted model (below);
|
|
440
|
+
`createRuntime({ clock: manualClock(Date.now()) })` and `clock.advance(ms)` for time;
|
|
441
|
+
`createRuntime({ fetch })` for what plugins call outside (`ctx.fetch`). A model provider is called
|
|
442
|
+
with the platform's `fetch`, so a fake one is a local server (`serve`, from `pairz/testing`) set as
|
|
443
|
+
the provider's `baseURL`. `runtime.fetch(new Request(…))` tests HTTP without a port, and
|
|
444
|
+
`await runtime.idle()` waits until nothing is left to run.
|
|
445
|
+
|
|
446
|
+
**Mail in tests.** Trusted code sends invoices and receipts with `ctx.call("email.send", message)`.
|
|
447
|
+
In a test, import `captureEmail` and `email` from `pairz/plugins/access/email`, make
|
|
448
|
+
`const inbox = captureEmail()`, register `adapters: { email: { capture: inbox } }` and select
|
|
449
|
+
`resources: { email: { adapter: "capture", from: "orders@example.com" } }`. Read `inbox.messages`
|
|
450
|
+
after the send and call `inbox.clear()` to empty it. The exported `mime(message, from).source`
|
|
451
|
+
builds its MIME source.
|
|
452
|
+
[Mail in tests](docs/reference/plugins/email.md#mail-in-tests-the-capture-adapter).
|
|
453
|
+
|
|
454
|
+
`tests/kit.ts`:
|
|
455
|
+
|
|
456
|
+
```ts
|
|
457
|
+
import { createRuntime, definePlugin } from "pairz";
|
|
458
|
+
import { memoryStore } from "pairz/stores/memory";
|
|
459
|
+
import type { LlmAdapter, LlmRequest } from "pairz/plugins/models";
|
|
460
|
+
import { plugins } from "../app.ts";
|
|
461
|
+
|
|
462
|
+
export type Move = string | { tool: string; input?: Record<string, unknown> };
|
|
463
|
+
|
|
464
|
+
/** A model that plays its moves in order, one per call, and keeps what each call sent it. */
|
|
465
|
+
export function scripted(moves: Move[]) {
|
|
466
|
+
const sent: LlmRequest[] = [];
|
|
467
|
+
const adapter: LlmAdapter = {
|
|
468
|
+
async *generate(request) {
|
|
469
|
+
sent.push(request);
|
|
470
|
+
const move = moves.shift();
|
|
471
|
+
if (move === undefined) throw new Error(`The script has no move for call ${sent.length}.`);
|
|
472
|
+
if (typeof move === "string") yield { type: "text", text: move };
|
|
473
|
+
else {
|
|
474
|
+
const call = { id: `call-${sent.length}`, name: move.tool, input: move.input ?? {} };
|
|
475
|
+
yield { type: "tool_call", call };
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
};
|
|
479
|
+
return { adapter, sent };
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/** The app, in memory, with the `helper` alias on a script. */
|
|
483
|
+
export async function start(moves: Move[] = []) {
|
|
484
|
+
const store = memoryStore();
|
|
485
|
+
const helper = scripted(moves);
|
|
486
|
+
const script = definePlugin({
|
|
487
|
+
name: "test-script",
|
|
488
|
+
resources: { provider: { script: { adapter: "script" } }, model: { helper: "script/helper" } },
|
|
489
|
+
adapters: { llm: { script: helper.adapter } },
|
|
490
|
+
});
|
|
491
|
+
const runtime = await createRuntime({ store, plugins: [...plugins(), script] });
|
|
492
|
+
return { runtime, store, helper };
|
|
493
|
+
}
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
`tests/tasks.test.ts`:
|
|
497
|
+
|
|
498
|
+
```ts
|
|
499
|
+
import assert from "node:assert/strict";
|
|
500
|
+
import { test } from "node:test";
|
|
501
|
+
import { type Actor, personOf } from "pairz";
|
|
502
|
+
import { start } from "./kit.ts";
|
|
503
|
+
|
|
504
|
+
test("the agent adds a task for Ana; she completes it, once", async () => {
|
|
505
|
+
const { runtime, store, helper } = await start([
|
|
506
|
+
{ tool: "add_task", input: { title: "Bo" } },
|
|
507
|
+
"Done.",
|
|
508
|
+
]);
|
|
509
|
+
try {
|
|
510
|
+
const ana: Actor = { kind: "person", id: "ana" };
|
|
511
|
+
const { space } = await runtime.call<{ space: string }>("space.personal", {}, { actor: ana });
|
|
512
|
+
const here: Actor = { ...ana, in: space };
|
|
513
|
+
await runtime.call("chat.send", { in: space, text: "Add Bo." }, { actor: here });
|
|
514
|
+
await runtime.idle();
|
|
515
|
+
const made = (await store.events(0)).find((e) => e.type === "task.created");
|
|
516
|
+
assert.equal(personOf(made?.actor), "ana"); // the record: written for Ana…
|
|
517
|
+
assert.equal(made?.actor?.kind, "agent"); // …by the agent
|
|
518
|
+
const task = made!.data._id as string;
|
|
519
|
+
const listing = `- Bo (${task})`;
|
|
520
|
+
assert.equal(helper.sent[1].messages.at(-1)?.text, listing); // what the model read
|
|
521
|
+
const seen = await runtime.observe<string>("tasks", {}, { actor: here }).ready;
|
|
522
|
+
assert.deepEqual(seen, { status: "ready", value: listing }); // what Ana sees
|
|
523
|
+
// Completing it is business logic: once, and refused after.
|
|
524
|
+
await runtime.call("task.complete", { task }, { actor: here });
|
|
525
|
+
await assert.rejects(runtime.call("task.complete", { task }, { actor: here }), /done already/);
|
|
526
|
+
} finally {
|
|
527
|
+
await runtime.close();
|
|
528
|
+
}
|
|
529
|
+
});
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
Test what callers may not do as well: call as someone else, and `assert.rejects`. And a test that
|
|
533
|
+
reads each of the app's plugins as a tool does (`pairz/describe`), and fails on what it finds wrong
|
|
534
|
+
(a schema that names no fields, a route outside the plugin's name), `tests/describe.test.ts`:
|
|
535
|
+
|
|
536
|
+
```ts
|
|
537
|
+
import assert from "node:assert/strict";
|
|
538
|
+
import { test } from "node:test";
|
|
539
|
+
import { describe } from "pairz/describe";
|
|
540
|
+
import tasks from "#pairz/plugins/tasks/mod.ts";
|
|
541
|
+
|
|
542
|
+
// Each of the app's own plugins, as a tool reads it: no schema that names no fields, no route
|
|
543
|
+
// outside its name, no setting outside its contract.
|
|
544
|
+
for (const plugin of [tasks]) {
|
|
545
|
+
test(`${plugin.name} describes itself without problems`, async () => {
|
|
546
|
+
assert.deepEqual((await describe(plugin)).listing.problems, []);
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
```
|
|
550
|
+
|
|
551
|
+
And one that holds the app's plugins to their boundaries (`pairz/testing`'s `boundaries`: one
|
|
552
|
+
imports another only through its `contract.ts`, and only one it `requires`),
|
|
553
|
+
`tests/boundaries.test.ts`:
|
|
554
|
+
|
|
555
|
+
```ts
|
|
556
|
+
import assert from "node:assert/strict";
|
|
557
|
+
import { test } from "node:test";
|
|
558
|
+
import { boundaries } from "pairz/testing";
|
|
559
|
+
import { plugins } from "../app.ts";
|
|
560
|
+
|
|
561
|
+
test("each plugin imports another only through its contract, and requires it", () => {
|
|
562
|
+
assert.deepEqual(
|
|
563
|
+
boundaries({ root: new URL("../plugins/", import.meta.url), plugins: plugins() }),
|
|
564
|
+
[],
|
|
565
|
+
);
|
|
566
|
+
});
|
|
567
|
+
```
|
|
568
|
+
|
|
569
|
+
## Rules: do this, not that
|
|
570
|
+
|
|
571
|
+
- **A tool can be an Action, by name:** `tools: { complete_task: { action: "task.complete" } }`
|
|
572
|
+
offers the model the Action's description and input, and calls it as the agent; don't write its
|
|
573
|
+
schema twice. A tool that only saves writes the collection (`ctx.db`).
|
|
574
|
+
- **Plain saves are collection writes.** A screen's handler writes with its View's collections
|
|
575
|
+
(`ctx.db.collection("customer").insertOne(…)`, `updateOne`, `deleteOne`), a tool with `ctx.db`, a
|
|
576
|
+
script with `connect()`'s `db`, REST at `/api/collections/<name>`. Each writes as its caller,
|
|
577
|
+
under the rules, checked against the schema, on the record as theirs. Don't write an Action that
|
|
578
|
+
only saves what it's given.
|
|
579
|
+
- **An Action is for business logic,** and every way in calls it: a rule the schema can't say (done
|
|
580
|
+
once, a stock that can't go below zero), writes that must agree, an effect outside. Never a
|
|
581
|
+
second, looser path beside it: once a collection changes only by its Actions, refuse `direct`
|
|
582
|
+
writes to it in the guard.
|
|
583
|
+
- **Rules at the data, `shared` first.** Name a collection in the `shared` resource: its documents
|
|
584
|
+
live `in` a space (`field` says where else), `part` ties one to another document (a booking to its
|
|
585
|
+
chat), `write: "manage"` keeps writes to managers. What `shared` can't say goes in the plugin's
|
|
586
|
+
`guard` (in `plugin.ts`): `byCollection({ sale: …, item: … })`, a rule for each collection it
|
|
587
|
+
rules and none for any other, its larger rules in `lib/guards/<collection>.ts`. A rule knows which
|
|
588
|
+
write it's asked about (`write`: `"insert"`, `"update"`, `"replace"` or `"delete"`), so it can let
|
|
589
|
+
people add and change documents but not delete them. Don't filter by who's asking inside an
|
|
590
|
+
Action.
|
|
591
|
+
- **A schema says what a document is, and every write keeps to it.** Generated object schemas are
|
|
592
|
+
closed. When writing a schema by hand, name each field and its type, say what's required, and
|
|
593
|
+
close it (`additionalProperties: false`). Inserts and replaces are checked; so are updates, as
|
|
594
|
+
MongoDB's `$jsonSchema` validator checks them: what `$set` gives must fit, a field the schema
|
|
595
|
+
doesn't allow can't be set nor a required one unset, `$inc` counts numbers, and the document an
|
|
596
|
+
update leaves must be valid. An update names its operators (`$set`, `$inc`, `$push`…): plugin
|
|
597
|
+
code's update with none is refused (REST's `PATCH` and a View's `updateOne` set plain fields). A
|
|
598
|
+
document older than its schema can still be updated with what fits; a migration fixes the rest.
|
|
599
|
+
- **Say who may call a plugin's Actions and queries once.** Set `defaults: { allow: people }` in
|
|
600
|
+
`plugin.ts`. Each Action or query may override it, for example with `inPerson` when only the
|
|
601
|
+
person decides. Without either, it's internal. An async `allow(actor, input, ctx)` reads with
|
|
602
|
+
`ctx.db` as the caller, before a grant. An agent and its principal must both pass.
|
|
603
|
+
- **Give an Action the declarations it needs.** For no parameters, omit `input` and the second
|
|
604
|
+
parameter to `run`. Call it with nothing or `{}`. Extra fields are refused. For a typed input,
|
|
605
|
+
annotate `run`'s second parameter and generate. An explicit schema types both `run` and `allow`.
|
|
606
|
+
For example, an inventory plugin can keep the permission check and the stock rule in its `lib/`.
|
|
607
|
+
Its `actions/stock.issue.ts` then reads:
|
|
608
|
+
|
|
609
|
+
```ts
|
|
610
|
+
import { defineAction } from "pairz";
|
|
611
|
+
import { canUse, issueOne } from "../lib/inventory.ts";
|
|
612
|
+
|
|
613
|
+
export default defineAction({
|
|
614
|
+
as: "inventory-adjust",
|
|
615
|
+
transaction: true,
|
|
616
|
+
run: (ctx, { product }: { product: string }) => issueOne(ctx.db, product, ctx.in),
|
|
617
|
+
allow: canUse("inventory"),
|
|
618
|
+
});
|
|
619
|
+
```
|
|
620
|
+
|
|
621
|
+
`canUse` checks the caller before the grant. The writes record the grant and who called it. A
|
|
622
|
+
throw rolls them back. If every inventory Action shares the check, move it to `defaults.allow`.
|
|
623
|
+
[The full stock example](docs/reference.md#a-grant-and-a-transaction-for-the-whole-action).
|
|
624
|
+
- **A View for whatever anyone reads, a model included.** Each tool gets a `tool:<name>` View: short
|
|
625
|
+
text, with ids the model can act on. A failed call's output is its error's words; pass them on,
|
|
626
|
+
don't throw. An MCP server that offers a tool without its View doesn't start.
|
|
627
|
+
- **A View reads in its own body.** A React View reads with `ctx.db` and hands the result to its
|
|
628
|
+
component, so it stays live. It writes only from its handlers, never while it renders.
|
|
629
|
+
- **Errors for callers are `failure(code, message, { public: true })`.** Only a public failure's
|
|
630
|
+
words reach a caller outside or a model.
|
|
631
|
+
- **Settings are resources, not code.** `app.ts` reads no environment: the server, the terminal or a
|
|
632
|
+
test passes settings in. Agents name a model alias that the app sets.
|
|
633
|
+
- **Writes that must agree use `transaction: true` for a whole Action or one `ctx.transaction` for
|
|
634
|
+
part of it.** A refused write rolls it all back. It holds the store's writer, so keep slow work
|
|
635
|
+
out. Another plugin's Action joins it with `tx.call` when that Action declares `transaction: true`
|
|
636
|
+
or `atomic: true`.
|
|
637
|
+
- **Who acts:** `personOf(ctx.actor)`, not `ctx.actor.id` (an agent's is its own). Where: `ctx.in`.
|
|
638
|
+
A tool works where its chat is.
|
|
639
|
+
- **Going past the actor's reach is a named grant,** `as: "inventory-adjust"` for a whole Action or
|
|
640
|
+
a Processor, or `ctx.as(grant("…"))` for one operation, in trusted code, on the record. Keys stay
|
|
641
|
+
in code: never in Action inputs (they're recorded), never with a model.
|
|
642
|
+
- **An agent tells a conversation only what everyone in it could see.** Its work reads what both its
|
|
643
|
+
asker and the place its answer goes reach: a space and what it draws on; a customer's chat, what
|
|
644
|
+
that customer reaches (a space drawing on another with `contacts: "read"` lets them read it); its
|
|
645
|
+
person's Personal space, all they reach. Writing anywhere its readers don't all reach that asks
|
|
646
|
+
the person first (`needs_approval`): don't catch it, let it through to the turn.
|
|
647
|
+
- **A tool that goes past its caller, offered to a contact or the public, is a declassifier.** Scope
|
|
648
|
+
it to them (their own bookings, never any record), take no free-form query that could widen it,
|
|
649
|
+
and return only what they may see. In a customer's chat, an Action people call that goes past its
|
|
650
|
+
caller is refused; an internal Action (no `allow` of its own or inherited) runs as its tool chose.
|
|
651
|
+
What the app's own rules do there on their own (moving the chat to people after an agent's reply)
|
|
652
|
+
is a Processor with its grant (`as`), not code in the agent's turn. The public (`publicCallers`,
|
|
653
|
+
`{ kind: "public" }`) reads only spaces that have it as a viewer, and writes nothing.
|
|
654
|
+
- **Outside effects:** write the intent, call out with its id as the idempotency key (a tool's
|
|
655
|
+
`callId`), then write the result.
|
|
656
|
+
- **Nested calls on a retry:** a retried Action or delivery (`ctx.retry`) gets each `ctx.call` that
|
|
657
|
+
completed back from its record, wherever in the code it's made; identical calls are matched in the
|
|
658
|
+
order they're made. Keep a nested call's input the same across attempts (no clock or random id
|
|
659
|
+
made inside it), and put who it's for in it when the same call is made for several people
|
|
660
|
+
(`ctx.as(person)`). Don't call a failed Action again in a loop of your own: let the failure fail
|
|
661
|
+
the caller, and retry the caller. Use `ctx.branch(key)` to keep identical calls of concurrent work
|
|
662
|
+
apart.
|
|
663
|
+
- **Online:** `devSignIn` is for this machine only; Pairz won't start it with a public origin. Keep
|
|
664
|
+
the `links` secret (32 bytes or more) across restarts, or MCP conversations start over.
|
|
665
|
+
|
|
666
|
+
## The record and bytes
|
|
667
|
+
|
|
668
|
+
**The record lasts as the store does.** Each commit appends its events to the `events` table, and
|
|
669
|
+
the runtime never changes or deletes one. An event is `{ seq, id, type, data, cause, actor, at }`:
|
|
670
|
+
`cause` is the event behind it, `actor` the whole actor (`for`, `in`, `via`), `at` its commit's
|
|
671
|
+
time. `action.started` holds `{ action, input, inputHash, startedAt, attempt }`, `action.completed`
|
|
672
|
+
the `result`, a collection's event `{ _id, doc }`. Read it with `store.events(afterSeq, limit)` in a
|
|
673
|
+
test or script, `runtime.subscribe` live, or SQL (`sqlite3`, `psql`,
|
|
674
|
+
[maintenance](docs/operations/maintenance.md)). Plugin code reads no log.
|
|
675
|
+
|
|
676
|
+
**Kept out:** a collection's `private` fields (keys, tokens), an Action's `private` fields, an
|
|
677
|
+
unrecorded Action's call (`record: false`; not its writes), and collections with `events: false` or
|
|
678
|
+
`durable: false`. All else an Action is given stays for good.
|
|
679
|
+
|
|
680
|
+
**Large values.** A string over 16 KiB is a blob, stored once by its hash: documents and events keep
|
|
681
|
+
a reference, and reads load it whole unless a `projection` leaves the field out. Blobs live in the
|
|
682
|
+
store, or in files or a bucket (`createRuntime({ blobs })`), chosen before it fills. A file is a
|
|
683
|
+
string (a `data:` address, base64). Nothing deletes a blob: a value deleted or replaced stays on the
|
|
684
|
+
record. [Stores](docs/operations/stores.md) and
|
|
685
|
+
[BC 36](docs/build-compass/part-12-shipping/36-postgresql-and-blobs.md) have the rest.
|
|
686
|
+
|
|
687
|
+
**A list reads names, not pictures:** its query leaves them out (`projection: { picture: 0 }`), and
|
|
688
|
+
each row shows `/pictures/<id>`, a route that checks who asks before it reads. With `{ actor }`,
|
|
689
|
+
`runtime.bytes` reads only where a rule speaks for the collection (else it's refused); `service` has
|
|
690
|
+
none, so it's read as the system:
|
|
691
|
+
|
|
692
|
+
```ts
|
|
693
|
+
import { definePlugin, people } from "pairz";
|
|
694
|
+
|
|
695
|
+
const PICTURE = /^data:(image\/(?:png|jpeg|gif|webp));base64,(.+)$/;
|
|
696
|
+
|
|
697
|
+
export const pictures = definePlugin({
|
|
698
|
+
name: "pictures",
|
|
699
|
+
routes: {
|
|
700
|
+
"/pictures/:id": async (_request, { runtime, actor, params }) => {
|
|
701
|
+
const none = new Response("Not found", { status: 404 });
|
|
702
|
+
if (!people(actor)) return none;
|
|
703
|
+
const kept = await runtime.bytes("service", { _id: params.id }, "picture");
|
|
704
|
+
if (!kept) return none;
|
|
705
|
+
const text = new TextDecoder().decode(await kept.read(0, kept.size));
|
|
706
|
+
const [, type, base64] = PICTURE.exec(text) ?? [];
|
|
707
|
+
if (!base64) return none;
|
|
708
|
+
const body = Uint8Array.from(atob(base64), (c) => c.charCodeAt(0));
|
|
709
|
+
return new Response(body, {
|
|
710
|
+
headers: { "content-type": type, "x-content-type-options": "nosniff" },
|
|
711
|
+
});
|
|
712
|
+
},
|
|
713
|
+
},
|
|
714
|
+
});
|
|
715
|
+
```
|
|
716
|
+
|
|
717
|
+
**Common mistakes:** a list reading pictures whole; a key in an Action's input or in a field that
|
|
718
|
+
isn't `private`; a route reading before it checks who asks; counting on a delete to erase a file.
|
|
719
|
+
|
|
720
|
+
## A business app's web front end
|
|
721
|
+
|
|
722
|
+
Screens for people at work: lists, forms in dialogs, dates, a home, printed documents.
|
|
723
|
+
[A business app's screens](docs/guides/a-business-apps-screens.md) builds each one in full, as files
|
|
724
|
+
that compile; [the web toolkit](docs/guides/the-web-toolkit.md) has every piece, prop and token.
|
|
725
|
+
Read both before the first screen.
|
|
726
|
+
|
|
727
|
+
**Files and names.**
|
|
728
|
+
|
|
729
|
+
- **One View per file** in `plugins/<name>/views/web/`. A folder gives it its prefix
|
|
730
|
+
(`screen/orders.tsx` is `screen:orders`). The compiler writes the web entry point.
|
|
731
|
+
- **React components live in `lib/web/`.** Use the plugin's for its own Views, including a component
|
|
732
|
+
with hooks. Use the app's `lib/web/`, beside `plugins/`, for a status badge, table preset or form
|
|
733
|
+
section used across plugins. Build them from the toolkit. The compiler reads `views/**` as Views
|
|
734
|
+
and skips `lib/`.
|
|
735
|
+
|
|
736
|
+
- **A name says where a View shows.** `screen:<place>` is a whole screen at `/<place>…`.
|
|
737
|
+
`dialog:<name>` is a dialog over a screen, at an address of that screen (`/customers/12`), so Back
|
|
738
|
+
closes it and the list behind keeps its page. `panel:<name>` is a part of another View that reads
|
|
739
|
+
its own data.
|
|
740
|
+
- **The app's frame** is a View named `web.shell`, the one the web host observes for the address:
|
|
741
|
+
given `{ path, query }`, it draws the bars and shows ``ctx.show(`screen:${place}`, where)``. List
|
|
742
|
+
its plugin last among the browser's. Under Pairz's own shell (`webShell`), `/<kind>/<id>` shows
|
|
743
|
+
the View named `<kind>` or `web.<kind>` instead.
|
|
744
|
+
|
|
745
|
+
**Views read; handlers save, or call Actions.**
|
|
746
|
+
|
|
747
|
+
- **A View reads in its own body** with `ctx.db`: a named query, `.query(name, params)`, or `find`,
|
|
748
|
+
`findOne`, `countDocuments`. A read is `{ status: "loading" }`, then `{ status: "ready", value }`,
|
|
749
|
+
and the View runs again when a commit changes it. It hands values to React components. Don't fetch
|
|
750
|
+
in an effect, poll, or call `/api/` from the page.
|
|
751
|
+
- **Screens read named queries admitted by `allow`**, their own or the plugin default. They run on
|
|
752
|
+
the server as whoever asks. In the browser a View's own `find` reaches only a collection a rule
|
|
753
|
+
speaks for (`shared`, or a `guard`); any other answers `forbidden` ("You can't see this here").
|
|
754
|
+
- **Handlers save with the View's collections:** `ctx.db.collection("customer").insertOne(record)`,
|
|
755
|
+
`updateOne({ _id }, fields)` (plain fields are set), `deleteOne({ _id })`, as the person: under
|
|
756
|
+
the rules (one must speak for the collection's writes), checked against the schema, recorded as
|
|
757
|
+
theirs. What's more than a save is an Action, called with `ctx.call(name, input)`. A View writes
|
|
758
|
+
and calls nothing while it renders. Suggestions as someone types come from an unrecorded Action
|
|
759
|
+
(`record: false`, with an `allow`) that runs the query.
|
|
760
|
+
- **A View is a function the runtime runs again, not a component:** no hooks, no state. A form's
|
|
761
|
+
draft, a chosen file and `useShortcuts` live in a component the View returns.
|
|
762
|
+
- **`ctx.show(name, item)` goes in a View's body only.** It's how a View shows a View: what it
|
|
763
|
+
returns is a part that reads and redraws on its own, handed to a component as a child or a prop.
|
|
764
|
+
Another plugin's View is shown by name, without importing its code (`undefined` when there's
|
|
765
|
+
none). Called later (a component's render, a handler, a table's `render` or `detail`), it throws:
|
|
766
|
+
`<LazyView kind="panel:…" item={…} />` shows a View on demand.
|
|
767
|
+
- **Validation errors come from where the write is checked.** The browser's `required` and `type`
|
|
768
|
+
help first. A save the schema refuses rejects with a public `invalid` that names its field
|
|
769
|
+
(`detail: { field: "price" }`), and the form can catch it and pass a message to that `Field`'s
|
|
770
|
+
`error`. An Action's own rule throws `failure("invalid", "Give the name.", { public: true })`,
|
|
771
|
+
with `detail: { field }` when it's about one field (`Object.assign(failure(…), { detail })`), and
|
|
772
|
+
the form shows it at its top or by its field. An Action's `input` schema's messages are for
|
|
773
|
+
developers, so a form says each field's refusal its own way (`{ name: "Give the name." }`, by
|
|
774
|
+
`detail.field`), and the schema's text where it has none. A record whose fields the server sets
|
|
775
|
+
(who made it, when, a number in a sequence) keeps an Action: a browser's View doesn't know who's
|
|
776
|
+
looking. A dialog closes only after the save, or the Action, answered. In a `RecordDialog`, each
|
|
777
|
+
`Field`'s `error` is `form.error(name)` and `errors` gives the words by field; with a plain
|
|
778
|
+
`Form`, `refusedField(error)` reads the field.
|
|
779
|
+
|
|
780
|
+
**Toolkit first.**
|
|
781
|
+
|
|
782
|
+
- **Every screen is the toolkit's pieces**, `pairz/web`, layout included. The look is the theme's
|
|
783
|
+
configuration and nothing else: the `theme` resource's colours (`light`, `dark`), sizes (`tokens`)
|
|
784
|
+
and each piece's own tokens (`button-height`, `table-stripe`…). No stylesheet, no `style={{…}}`
|
|
785
|
+
for a look, no rule on a `.pairz-*` class, no restyled copy of a piece. `className` may name an
|
|
786
|
+
element for a test, never restyle it.
|
|
787
|
+
- **Something the toolkit lacks is a gap to report**, with the smallest example of what's needed,
|
|
788
|
+
never a reason for CSS. Compose first: most "missing" pieces are a `Grid`, a `Stack` or a `Card`
|
|
789
|
+
of existing ones.
|
|
790
|
+
- **The one exception is a printed document's paper layout**: `@media print` rules beside it.
|
|
791
|
+
- **Words and formats are the app's.** The toolkit's words (`toolkit.noRows`, the date presets) are
|
|
792
|
+
changed by key in the `words` resource
|
|
793
|
+
([WORDS.md](https://github.com/pairzhq/pairz/blob/main/hosts/web/WORDS.md) lists them). Time zone
|
|
794
|
+
and date patterns are settings the screens read, never the browser's locale.
|
|
795
|
+
- **Where the names are:** the toolkit guide's sections and its "Every piece's tokens" tables; the
|
|
796
|
+
types, `node_modules/pairz/hosts/web/toolkit/*.d.ts`, and the theme's,
|
|
797
|
+
`node_modules/pairz/hosts/web/theme/default.d.ts`.
|
|
798
|
+
|
|
799
|
+
The pieces, by job:
|
|
800
|
+
|
|
801
|
+
- **Layout:** `Page`, `Screen`, `Stack`, `Grid`, `GridItem`, `Toolbar`, `Split`, `Card`,
|
|
802
|
+
`ListGroup`, `Tabs`, `Divider`, `Spacer`, `Heading`, `Text`.
|
|
803
|
+
- **Fields:** `Form`, `Field`, `Input`, `Textarea`, `Select`, `Checkbox`, `Radio`, `Switch`,
|
|
804
|
+
`Picker`, `MultiPicker`, `Autocomplete`, `TagsInput`, `FileInput`, `RowsEditor`, `DatePicker`,
|
|
805
|
+
`DateRangePicker`, `DateTimePicker`, `TimeFields`.
|
|
806
|
+
- **Actions and overlays:** `Button`, `IconButton`, `Menu`, `Popover`, `Dialog`, `Drawer`,
|
|
807
|
+
`Tooltip`, `toast` and `Toasts`; `useConfirm` and `ConfirmDialog` to ask first; `RecordDialog` to
|
|
808
|
+
add or edit a record.
|
|
809
|
+
- **Data:** `DataTable` (with `tableAddress`, `tableQuery`), `Pagination`, `DetailList`, `Badge`,
|
|
810
|
+
`Chip`, `Avatar`, `Notice`, `EmptyState`, `Skeleton`, `Spinner`, `Kbd`.
|
|
811
|
+
- **An app's own frame:** `AppBar`, `TopBar`, `TileGrid`, `LiveClock`, `Logo`, `Icon` (`drawing`: an
|
|
812
|
+
app's own glyph).
|
|
813
|
+
- **Paper and files:** `NoPrint`, `PrintOnly`, `Barcode`, `download`, `exportFile`; on a server,
|
|
814
|
+
`documentPdf` from `pairz/web/export`. **Keys:** `useShortcuts`, `shortcutLabel`.
|
|
815
|
+
|
|
816
|
+
**Short recipes** (whole, in the guide):
|
|
817
|
+
|
|
818
|
+
- **A list with search, filters, paging and exports:** a `Page` (`width="lg"`, New in `actions`)
|
|
819
|
+
over a `Toolbar` of filters and a `DataTable`. Up to a few thousand rows, give the table every row
|
|
820
|
+
and it searches, sorts, pages and exports them (`exportAll`: every matching row). More, a named
|
|
821
|
+
query takes the table's state and answers `{ rows, total }`: spread `tableAddress(where, 25)` on
|
|
822
|
+
the table, give it `total`, and keep each filter in the address too, back to the first page
|
|
823
|
+
(`go(path + tableQuery(where, { ...state, offset: 0 }, { from, to }))`). The export menu saves the
|
|
824
|
+
rows shown; every row of a server-paged list is an unrecorded Action's, saved with `download`.
|
|
825
|
+
- **Custom table files and totals:** give `DataTable` `formats` (or the shell
|
|
826
|
+
`<TableExportFormats value={formats}>`), `exportName` and `footerRows` by column key.
|
|
827
|
+
`tableExportOptions` sets CSV's dialect, JSON's shape, SQL's `tableName`, `values: "raw"` and the
|
|
828
|
+
PDF layout. Give `toolbarContent` a button or filter; `showSinglePageSize` keeps a lone size
|
|
829
|
+
visible. [Exporting a table](docs/guides/the-web-toolkit.md#exporting-a-table).
|
|
830
|
+
- **Invoices and product labels:** in an Action, `pairz/web/export` has `exportTableFile` for a
|
|
831
|
+
report with totals. Prepare a logo with `await pdfImage(bytesOrDataUrl)` for its header or a
|
|
832
|
+
`drawDocumentPdf` page. Draw Code 128, Code 39 or EAN-8/13 with `ProductBarcode` on screen,
|
|
833
|
+
`{ barcode, format, x, y, width, height }` in a PDF and `await barcodePng(value, options)` for an
|
|
834
|
+
image.
|
|
835
|
+
[Images and barcodes in a document](docs/guides/the-web-toolkit.md#images-and-barcodes-in-a-document).
|
|
836
|
+
- **A create or edit form in a dialog:** the screen shows
|
|
837
|
+
`ctx.show("dialog:customer", { _id, back })` when its address names one (`/customers/new`,
|
|
838
|
+
`/customers/<id>`). The dialog's View reads the record and returns a `RecordDialog` (`record`, or
|
|
839
|
+
`defaults` for a new one) whose children are `(form) => <Field … error={form.error("name")}>`s,
|
|
840
|
+
each control spread with its binder (`{...form.text("name")}`, `form.number`, `form.value` for a
|
|
841
|
+
picker). `onSave(change)` writes it: `insertOne(change.values)` for a new one,
|
|
842
|
+
`updateOne({ _id: change._id }, change.update)` for an edit, which holds only what changed (a
|
|
843
|
+
field emptied is an `$unset`). `toast` and `onClose={() => go(back)}` finish it. Call `ctx.show`
|
|
844
|
+
in the View's body, and put what it gives in the fields' function.
|
|
845
|
+
- **A delete that asks first:** in a component of `lib/web/` (a row's Delete),
|
|
846
|
+
`const [dialog, confirm] = useConfirm()`, draw `{dialog}`, and on click
|
|
847
|
+
`confirm({ title, danger: true, toast, onConfirm: () => collection.deleteOne({ _id }) })`. As a
|
|
848
|
+
dialog View, `<ConfirmDialog key={_id} … onClose={() => go(back)} />`.
|
|
849
|
+
- **Date, date-time and date-range fields:** days are `YYYY-MM-DD` and times `YYYY-MM-DD HH:mm` or
|
|
850
|
+
`HH:mm:ss`, the app's clock time with no zone, never ISO timestamps. `todayIn(timeZone)` and
|
|
851
|
+
`nowIn(timeZone)` in the app's zone, `format` patterns from its settings. `DatePicker`;
|
|
852
|
+
`DateTimePicker` keeps a value's seconds until its time changes (`seconds` shows them);
|
|
853
|
+
`DateRangePicker` has `presets` (or `rangePresets(…)`), typed From and To, `time` for ends with a
|
|
854
|
+
time of day, and `seconds` for ends to the second, typed whole and read back by the pattern
|
|
855
|
+
they're shown in. Typed or pasted text: `parseDayTime(text, pattern, locale)`, with
|
|
856
|
+
`patternProblem(pattern)` in a test for the app's patterns. To compare stored timestamps with a
|
|
857
|
+
range, `dateOfDayTime(end, timeZone)` is each end's moment in the app's zone.
|
|
858
|
+
- **A sign-in page:** Pairz's own, with `passwordSignIn` (staff with usernames) or `emailSignIn`:
|
|
859
|
+
the theme gives its look (`themeOf([look])` on the server), the `signInPage` resource its words
|
|
860
|
+
and pitch. Accounts come from an Action of the app's that calls `password.set`. Don't write a
|
|
861
|
+
sign-in route or a session cookie. A page before sign-in is `routePage` (`pairz/web/server`) with
|
|
862
|
+
a `Screen`, which centres a card and keeps a footer at the window's foot.
|
|
863
|
+
- **A home of tiles with an app bar:** the frame's `web.shell`: a `TopBar` (`LiveClock`, who's
|
|
864
|
+
signed in, Sign out with `signOut()`), an `AppBar` (`items`, `active`), the screen, and
|
|
865
|
+
`<Toasts />` once. At `/`, a `Page` of a `TileGrid`.
|
|
866
|
+
- **A printed document:** a screen at its own address: a `Page` with Print in a `NoPrint`, its
|
|
867
|
+
content (`DetailList`, `DataTable`, `Barcode`), `PrintOnly` for paper's words, and the paper's
|
|
868
|
+
`@media print` rules beside it. It prints without the bars, buttons or the page's header
|
|
869
|
+
(`printHeader` keeps it). The same as a PDF on a server, for e-mail: `documentPdf`.
|
|
870
|
+
- **Keyboard shortcuts:** `useShortcuts({ "Alt+N": add, Escape: { run: close, inFields: true } })`
|
|
871
|
+
in a component of the screen, and `<Kbd>{shortcutLabel("Alt+N")}</Kbd>` where it's offered. Keys
|
|
872
|
+
wait while someone types in a field or a dialog is open. No `keydown` listener on `document`.
|
|
873
|
+
- **File and image inputs:** `FileInput` (`accept`; `chooseLabel`, `changeLabel`, `removeLabel`;
|
|
874
|
+
`current` and `onRemove` for a stored file). A picture chosen shows in an `Avatar`
|
|
875
|
+
(`picture={URL.createObjectURL(file)}`, `initial={false}`). The form sends it to an Action as a
|
|
876
|
+
`data:` address; `private: ["picture"]` keeps it out of the call's record, and a list shows it
|
|
877
|
+
from a route (The record and bytes).
|
|
878
|
+
|
|
879
|
+
**Common mistakes:**
|
|
880
|
+
|
|
881
|
+
- Stylesheets of the app's own, inline styles for looks, or overrides of `.pairz-*`, instead of the
|
|
882
|
+
toolkit and the theme; components several screens share copied into each, instead of one in
|
|
883
|
+
`lib/`. Hand-made `<table>`s of fields (use `DataTable` with fields in cells, or `RowsEditor`), a
|
|
884
|
+
hidden `<input type="file">` behind buttons (`FileInput`), the browser's `datetime-local`
|
|
885
|
+
(`DateTimePicker`), a `document` key listener (`useShortcuts`), a form part listening for the
|
|
886
|
+
DOM's `submit` (`Form` and `useFormSubmit`).
|
|
887
|
+
- One big `web.tsx`; a View that holds state or hooks; a screen fetching `/api/queries/…` from an
|
|
888
|
+
effect instead of reading `ctx.db` in the View; a browser View's `find` on a collection no rule
|
|
889
|
+
speaks for, instead of a named query; `ctx.show` in a row's `render`.
|
|
890
|
+
- An Action that only saves what a form gives it (`customer.save`), where the collection write does.
|
|
891
|
+
A refusal returned as a value (`{ ok: false }`) instead of a thrown public `failure`: the REST API
|
|
892
|
+
answers 200 and a script believes it worked. A second Action, or a second input shape, for
|
|
893
|
+
scripts.
|
|
894
|
+
- A table's page, sort and filters kept in component state: Back and a closed dialog lose them. Keep
|
|
895
|
+
them in the address.
|
|
896
|
+
- Forms as pages, a capability reachable only by an Action no screen calls, a disabled placeholder
|
|
897
|
+
for a field that should work. Open every screen in a browser and use it, not only its tests.
|
|
898
|
+
- A save per field on blur, racing the next one: keep a record's edits together and send them once
|
|
899
|
+
(Save, or a row's Update and Enter).
|
|
900
|
+
- Dates in the browser's locale (`toLocaleString`, `<input type="date">`) or as ISO timestamps given
|
|
901
|
+
to a picker; a function `format` on a range people type into (it can't be read back: use a
|
|
902
|
+
pattern); a pattern with a two-digit year (`yy`: `patternProblem` says so) or fields that run
|
|
903
|
+
together (`yyyy/dM`) where people type; a record's date-time saved unchanged without its seconds.
|
|
904
|
+
- A delete with no question, or `window.confirm`; a record dialog that saves the whole record
|
|
905
|
+
(`$set` of every field) instead of `change.update`, writing back fields nobody touched; a
|
|
906
|
+
`ConfirmDialog` reused for another record without a new `key`.
|
|
907
|
+
- A `controlWidth` from rc.52–53 or from a CSS-grid habit. Both `labelWidth` and `controlWidth` are
|
|
908
|
+
shares of the whole row: `"33.33%"` and `"66.67%"` fill it.
|
|
909
|
+
- A workaround copied from an older release: rc.54 has `Screen`, typed range ends, seconds, `hidden`
|
|
910
|
+
on layout pieces, fields that fit table cells, `detailOpen`, `Toolbar grow`, a file field's own
|
|
911
|
+
words and picture previews.
|
|
912
|
+
|
|
913
|
+
## Recipes
|
|
914
|
+
|
|
915
|
+
Each link is a page as Markdown. GS is Getting Started (a salon's bookings, 10 chapters). BC is
|
|
916
|
+
Build Compass (41 chapters, written for an earlier release candidate: check names in the reference).
|
|
917
|
+
|
|
918
|
+
- A plugin: [GS 1](docs/getting-started/01-one-booking.md). People, contacts, spaces, the rules:
|
|
919
|
+
[GS 2](docs/getting-started/02-who-sees-what.md).
|
|
920
|
+
- The web: [GS 3](docs/getting-started/03-its-own-web-page.md),
|
|
921
|
+
[serving on the web](docs/guides/serving-on-the-web.md). An agent and its tools:
|
|
922
|
+
[GS 4](docs/getting-started/04-its-own-agent.md).
|
|
923
|
+
- MCP: [GS 5](docs/getting-started/05-chatgpt-claude-and-gemini-over-mcp.md). One test, every way
|
|
924
|
+
in: [GS 6](docs/getting-started/06-the-same-bookings-every-way-in.md).
|
|
925
|
+
- Widgets: [GS 7](docs/getting-started/07-a-widget-in-the-assistant.md). A site's chat:
|
|
926
|
+
[GS 8](docs/getting-started/08-a-chat-on-your-site.md). WhatsApp:
|
|
927
|
+
[GS 9](docs/getting-started/09-whatsapp.md).
|
|
928
|
+
- Shipping (SQLite, PostgreSQL, sign-in by email):
|
|
929
|
+
[GS 10](docs/getting-started/10-shipping-the-salon.md). A container of 512 MiB or less (Deno 2.9+,
|
|
930
|
+
`--max-semi-space-size=2`, SQLite's cache, each plugin from its own entry point):
|
|
931
|
+
[memory](docs/operations/memory.md).
|
|
932
|
+
- The prompt and context Views:
|
|
933
|
+
[BC 2](docs/build-compass/part-1-an-agent-of-your-own/02-north-in-your-terminal.md),
|
|
934
|
+
[BC 4](docs/build-compass/part-2-your-own-plugins/04-today-every-turn.md).
|
|
935
|
+
- A Processor, below; more in
|
|
936
|
+
[BC 6](docs/build-compass/part-2-your-own-plugins/06-chats-that-name-themselves.md). Transactions:
|
|
937
|
+
[BC 9](docs/build-compass/part-3-the-board/09-the-boards-data-and-actions.md).
|
|
938
|
+
- Schedules and a manual clock:
|
|
939
|
+
[BC 27](docs/build-compass/part-8-skills-and-routines/27-routines-on-a-schedule.md). Fakes at the
|
|
940
|
+
edges: [BC 31](docs/build-compass/part-10-testing/31-fakes-at-the-edges.md).
|
|
941
|
+
- Scripts over REST: [REST and the client](docs/guides/rest-and-the-client.md). Many orgs:
|
|
942
|
+
[many orgs](docs/guides/many-orgs.md).
|
|
943
|
+
- Every entry point, option, event and context field: [reference](docs/reference.md). Each of
|
|
944
|
+
Pairz's plugins (`chat`, `spaces`, `mcp`…): [plugins](docs/reference/plugins.md). How it runs:
|
|
945
|
+
[architecture](docs/architecture.md).
|
|
946
|
+
|
|
947
|
+
**An Action's schema from its type.** In a plugin built by `pairz gen`, give the default export's
|
|
948
|
+
`run` a typed second parameter. The generator uses the app's `typescript` devDependency to make its
|
|
949
|
+
`input` in `mod.ts`. A field's comment reaches the model. A tag puts a constraint in the schema
|
|
950
|
+
checked for every caller.
|
|
951
|
+
|
|
952
|
+
```ts
|
|
953
|
+
import { defineAction } from "pairz";
|
|
954
|
+
|
|
955
|
+
export default defineAction({
|
|
956
|
+
description: "Calculate an order line's total in cents.",
|
|
957
|
+
run: (_ctx, input: {
|
|
958
|
+
/** Number of units ordered.
|
|
959
|
+
* @integer
|
|
960
|
+
* @minimum 1
|
|
961
|
+
*/
|
|
962
|
+
quantity: number;
|
|
963
|
+
unitPrice: number;
|
|
964
|
+
}) => input.quantity * input.unitPrice,
|
|
965
|
+
});
|
|
966
|
+
```
|
|
967
|
+
|
|
968
|
+
A hand-written `input` wins. Use one in a plugin with a hand-written `mod.ts`, or to share an
|
|
969
|
+
existing schema. [Actions](docs/reference.md#actions).
|
|
970
|
+
|
|
971
|
+
**A collection's schema from its type.** In a plugin built by `pairz gen`, use
|
|
972
|
+
`export default defineCollection<Order>({ indexes: [["customerId"]] })`. The compiler writes its
|
|
973
|
+
schema and a named collection read knows `Order & { _id: string }`. Leave `_id` out of the document
|
|
974
|
+
type. Write timestamps as `string` with `/** @format date-time */` on the field. An explicit
|
|
975
|
+
`schema` wins. [The compiler](docs/guides/the-compiler.md#a-collection-from-its-type).
|
|
976
|
+
|
|
977
|
+
**Schema-first collections and Actions.** When a plugin shares an existing JSON Schema or assembles
|
|
978
|
+
its own `mod.ts`, pass `schema` to `defineCollection` and `input` to `defineAction`. Use `as const`
|
|
979
|
+
on a schema kept in a variable. `Infer<typeof schema>` names its TypeScript type. An explicit schema
|
|
980
|
+
takes precedence when generating too.
|
|
981
|
+
|
|
982
|
+
```ts
|
|
983
|
+
import { defineCollection, type Infer } from "pairz";
|
|
984
|
+
|
|
985
|
+
const schema = {
|
|
986
|
+
type: "object",
|
|
987
|
+
properties: { code: { type: "string", minLength: 1 } },
|
|
988
|
+
required: ["code"],
|
|
989
|
+
additionalProperties: false,
|
|
990
|
+
} as const;
|
|
991
|
+
|
|
992
|
+
export type Product = Infer<typeof schema>;
|
|
993
|
+
export default defineCollection({ schema });
|
|
994
|
+
```
|
|
995
|
+
|
|
996
|
+
**A Processor, for what follows a commit.** What must happen with a write goes in its transaction
|
|
997
|
+
(`ctx.transaction`); what follows it (a count, a message, a call outside) is a Processor: it hears
|
|
998
|
+
the events it names after they commit, at least once and in order, and runs as their actor. A
|
|
999
|
+
collection's `<name>.updated` event holds `{ _id, doc, changed, removed }`, so `where` wakes it only
|
|
1000
|
+
for what it's about. One that acts on the app's own authority, whoever's event it is, names its
|
|
1001
|
+
grant (`as: "order-review"`): it runs for nobody, and reads as the event's actor only through
|
|
1002
|
+
`ctx.as(event.actor)`. One added to an app whose log it mustn't act on starts at its end
|
|
1003
|
+
(`start: "now"`); after downtime it still hears what it missed, so an effect that mustn't come late
|
|
1004
|
+
checks `event.at`. `processors/tally.ts`:
|
|
1005
|
+
|
|
1006
|
+
```ts
|
|
1007
|
+
import type { ProcessorDef } from "pairz";
|
|
1008
|
+
|
|
1009
|
+
/** Once a task is done, its space's tally counts it: after the commit, retried until it's done. */
|
|
1010
|
+
export default {
|
|
1011
|
+
on: "task.updated",
|
|
1012
|
+
where: { changed: "done", "doc.done": true },
|
|
1013
|
+
run: async (ctx, event) => {
|
|
1014
|
+
const space = (event.data.doc as { in: string }).in;
|
|
1015
|
+
await ctx.db.collection("tally")
|
|
1016
|
+
.updateOne({ _id: space }, { $inc: { done: 1 } }, { upsert: true });
|
|
1017
|
+
},
|
|
1018
|
+
} satisfies ProcessorDef;
|
|
1019
|
+
```
|
|
1020
|
+
|
|
1021
|
+
## Entry points
|
|
1022
|
+
|
|
1023
|
+
The same names on npm (`pairz/…`) and JSR (`@pairz/pairz/…`); the package's `package.json` lists
|
|
1024
|
+
them all. Besides those above: `pairz/stores/sqlite` and `pairz/stores/postgres` (stores),
|
|
1025
|
+
`pairz/plugins/interfaces` (`mcp`, `api`, `whatsapp`, `voice`, `webLines`), `pairz/web` (the web
|
|
1026
|
+
host, `web`), `pairz/web/pt-br` (`ptBR`: every web word in Brazilian Portuguese, first among the
|
|
1027
|
+
page's plugins), `pairz/web/server` (`webPage`), `pairz/web/node` (`listen`, `serve`, `bundle`),
|
|
1028
|
+
`pairz/terminal` (`terminal`) and `pairz/testing`. Each plugin of `agents`, `access` and
|
|
1029
|
+
`interfaces` is also its own entry point, which loads it alone: `pairz/plugins/interfaces/mcp`,
|
|
1030
|
+
`pairz/plugins/agents/chat`, `pairz/plugins/access/spaces`… Front ends sit beside each theme
|
|
1031
|
+
(`pairz/plugins/agents/web` has `chatWeb`). Product packages ship at the same version: `@pairz/work`
|
|
1032
|
+
(`boards`, `documents`), `@pairz/team`, `@pairz/directory` and `@pairz/billing`.
|
|
1033
|
+
|
|
1034
|
+
## Working on Pairz itself
|
|
1035
|
+
|
|
1036
|
+
[CONTRIBUTING.md](CONTRIBUTING.md) has the rest. The checks:
|
|
1037
|
+
|
|
1038
|
+
```sh
|
|
1039
|
+
deno task check && deno task test # types, the suite (PAIRZ_TEST_POSTGRES_URL: PostgreSQL)
|
|
1040
|
+
npm install && npm test # the suite on Node 24 (bun test --timeout 60000 on Bun)
|
|
1041
|
+
deno fmt --check # the format CI checks
|
|
1042
|
+
npm run build && node scripts/npm/smoke.ts && deno publish --dry-run # the packages
|
|
1043
|
+
node scripts/npm/shims.ts --smoke # the packages under their old names, in an app made before
|
|
1044
|
+
```
|
|
1045
|
+
|
|
1046
|
+
- The runtime imports nothing outside it. A plugin imports the runtime, the hosts' toolkits, its own
|
|
1047
|
+
files and other plugins' `contract.ts` (`testing/boundaries.test.ts`).
|
|
1048
|
+
- A plugin is `plugins/<theme>/<name>/`, by primitive, one file per declaration; `mod.ts` only
|
|
1049
|
+
assembles it. Tests sit in `plugins/<theme>/tests/`. Factories and plain data, no classes.
|
|
1050
|
+
- After changing a plugin, `deno run -A scripts/describe.ts --docs` remakes its reference page.
|
|
1051
|
+
After changing docs, `python3 scripts/docs-index.py && deno fmt docs`.
|
|
1052
|
+
- `testing/agents-md.test.ts` checks this file's imports, links and version;
|
|
1053
|
+
`node scripts/version.ts <version>` moves its version with the rest. Releases are tags the
|
|
1054
|
+
maintainers push: don't tag or publish.
|