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
|
@@ -0,0 +1,1586 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "A business app's screens"
|
|
3
|
+
description: "The screens back-office apps are made of, the Pairz way: one View per file, the app's own shared components in lib/, Views that read and handlers that save, an app's own frame and home, lists with search, filters, paging and exports, deletes that ask first, records in dialogs, dates, sign-in, printed documents, shortcuts and files, all from the toolkit with no CSS."
|
|
4
|
+
section: Guides
|
|
5
|
+
order: 9
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# A business app's screens
|
|
9
|
+
|
|
10
|
+
A back-office app is mostly screens: lists to search and export, forms that add and change records,
|
|
11
|
+
dates, a home page of places, a printed document or two. This guide builds them for the salon's
|
|
12
|
+
staff: its customers, their visits, and the services it offers. Each recipe is whole files, in the
|
|
13
|
+
place they go, and each compiles against `pairz@1.0.0-rc.82`.
|
|
14
|
+
|
|
15
|
+
The pieces themselves (every prop, every token) are in [the web toolkit](the-web-toolkit.md). This
|
|
16
|
+
guide is how to put them together.
|
|
17
|
+
|
|
18
|
+
## The rules every screen keeps
|
|
19
|
+
|
|
20
|
+
- **Views read; handlers save.** A View reads in its own body, with `ctx.db`, and hands what it read
|
|
21
|
+
to React components. When a commit changes what it read, it runs again and the screen redraws: no
|
|
22
|
+
fetching in effects, no polling, no refresh button. A handler (a click, a submit) saves with the
|
|
23
|
+
View's collections (`insertOne`, `updateOne`, `deleteOne`), as the person, under the rules and the
|
|
24
|
+
schema; what's more than a save is an Action, called with `ctx.call`. A View never writes while it
|
|
25
|
+
renders.
|
|
26
|
+
- **Screens read named queries.** In the browser, a View's own `find` reaches only a collection a
|
|
27
|
+
rule speaks for (the `shared` resource, or a `guard`); any other answers `forbidden`, and the part
|
|
28
|
+
says "You can't see this here". A named query with an `allow` (`people`) runs on the server, as
|
|
29
|
+
whoever asks, and answers just what the screen shows: every read below is one.
|
|
30
|
+
- **One View per file.** A plugin's front end is `plugins/<name>/views/web/`, a file per View. Give
|
|
31
|
+
each View a default export. `pairz gen` assembles the web entry point. React components aren't
|
|
32
|
+
Views: they live in `lib/`, the plugin's for its own screens and the app's for what every plugin's
|
|
33
|
+
screens share ([shared UI](#shared-ui-an-apps-own-components)). The data's side is a folder per
|
|
34
|
+
primitive: `collections/` (each with its schema, its type and its named queries), `actions/` for
|
|
35
|
+
business logic.
|
|
36
|
+
- **The toolkit, and no CSS.** Screens are made of `pairz/web`'s pieces, layout included (`Page`,
|
|
37
|
+
`Stack`, `Grid`, `Toolbar`, `Split`, `Card`). The look is the app's theme. No stylesheet, no
|
|
38
|
+
`style={{…}}` for looks, no rules on the toolkit's `.pairz-*` classes. A printed document's print
|
|
39
|
+
layout is the one exception. What the toolkit lacks is a gap to report, not a reason for CSS.
|
|
40
|
+
- **Settings are resources.** The time zone, the date formats and the words are the app's, never the
|
|
41
|
+
browser's locale.
|
|
42
|
+
- **The schema checks every save.** A form helps people fill it in (`required`, `type="email"`). The
|
|
43
|
+
schema checks the save again, for every caller, and names the field it refuses; an Action checks
|
|
44
|
+
what a schema can't say. Either refusal is what the form shows.
|
|
45
|
+
|
|
46
|
+
## Files and names
|
|
47
|
+
|
|
48
|
+
Start with `pairz init`. In a generated customers plugin the files go here:
|
|
49
|
+
|
|
50
|
+
```text
|
|
51
|
+
app.ts lists #pairz/plugins/customers/mod.ts on the server
|
|
52
|
+
front.ts lists #pairz/plugins/customers/web.ts in the browser
|
|
53
|
+
lib/web/status-badge.tsx a React component any plugin can import
|
|
54
|
+
plugins/customers/
|
|
55
|
+
plugin.ts defaults.allow, requires and the guard
|
|
56
|
+
contract.ts types another plugin may import
|
|
57
|
+
collections/customer.ts defineCollection<Customer> with its named queries
|
|
58
|
+
views/web/screen/customers.tsx screen:customers
|
|
59
|
+
views/web/dialog/customer.tsx dialog:customer
|
|
60
|
+
lib/web/delete-customer.tsx a row's Delete, which asks first
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Type an Action's input on `run`. Use a document type in `defineCollection<T>` and put named queries
|
|
64
|
+
beside it. The [compiler guide](the-compiler.md) shows the declarations and generated imports. The
|
|
65
|
+
worked salon recipes below use the hand-written alternative. In a generated plugin, use the paths
|
|
66
|
+
above and default-export the View functions in those recipes.
|
|
67
|
+
|
|
68
|
+
A View's name says where it shows:
|
|
69
|
+
|
|
70
|
+
| Name | What it is |
|
|
71
|
+
| ---------------- | ------------------------------------------------------------------------------------------- |
|
|
72
|
+
| `screen:<place>` | a whole screen, at `/<place>…`, which the frame shows for the address |
|
|
73
|
+
| `dialog:<name>` | a dialog over a screen, at an address of that screen (`/customers/12`), shown by the screen |
|
|
74
|
+
| `panel:<name>` | a part of another View that reads its own data (a customer's last visits, in their dialog) |
|
|
75
|
+
|
|
76
|
+
Names are conventions, not a router: the frame below turns `/customers/…` into `screen:customers`.
|
|
77
|
+
Under Pairz's own shell (`webShell`), an address `/<kind>/<id>` shows the View named `<kind>`, or
|
|
78
|
+
`web.<kind>`, given `{ _id }`; this guide's apps draw their own frame instead.
|
|
79
|
+
|
|
80
|
+
### Shared UI: an app's own components
|
|
81
|
+
|
|
82
|
+
Screens share more than the toolkit's pieces: a status badge every list shows, a table with the
|
|
83
|
+
app's page sizes and exports, a form section (an address's fields) several dialogs hold. Those are
|
|
84
|
+
the app's own components, made of the toolkit's pieces, and they live in `lib/`:
|
|
85
|
+
|
|
86
|
+
- **A plugin's `lib/web/`** for what its own screens share, and for a component one View draws (a
|
|
87
|
+
screen's keyboard shortcuts need one: the visits board below).
|
|
88
|
+
- **The app's `lib/web/`**, beside `plugins/`, for what every plugin's screens share. It isn't a
|
|
89
|
+
plugin, so any plugin imports it; `boundaries()` checks imports between plugins only.
|
|
90
|
+
|
|
91
|
+
Files in `lib/` are never read as declarations: they're plain modules, and export what they like.
|
|
92
|
+
Views stay one per file, in `views/web/`: don't group Views in a file, or put components among them.
|
|
93
|
+
A shared component composes the toolkit and leaves the look to the theme, as a screen does.
|
|
94
|
+
|
|
95
|
+
```tsx
|
|
96
|
+
// lib/web/status-badge.tsx
|
|
97
|
+
import { Badge, type Tone } from "pairz/web";
|
|
98
|
+
import type { ReactNode } from "react";
|
|
99
|
+
|
|
100
|
+
const TONES: Record<string, Tone> = {
|
|
101
|
+
open: "info",
|
|
102
|
+
paid: "success",
|
|
103
|
+
overdue: "warning",
|
|
104
|
+
void: "neutral",
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/** An invoice's or an order's status, the same on every screen that shows one. */
|
|
108
|
+
export function StatusBadge({ status }: { status: string }): ReactNode {
|
|
109
|
+
return <Badge tone={TONES[status] ?? "neutral"}>{status}</Badge>;
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
A list's column shows it, from any plugin:
|
|
114
|
+
|
|
115
|
+
```tsx
|
|
116
|
+
import { StatusBadge } from "../../../../lib/web/status-badge.tsx";
|
|
117
|
+
|
|
118
|
+
const status: Column<Invoice> = {
|
|
119
|
+
key: "status",
|
|
120
|
+
title: "Status",
|
|
121
|
+
render: (invoice) => <StatusBadge status={invoice.status} />,
|
|
122
|
+
};
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
```tsx
|
|
126
|
+
// plugins/customers/web.tsx
|
|
127
|
+
import { definePlugin, type Plugin } from "pairz";
|
|
128
|
+
import { customerDialog } from "./views/web/customer-dialog.tsx";
|
|
129
|
+
import { customersScreen } from "./views/web/customers-screen.tsx";
|
|
130
|
+
|
|
131
|
+
/** Customers' web front end: each View is a file of views/web/; this only names them. */
|
|
132
|
+
export const customersWeb: Plugin = definePlugin({
|
|
133
|
+
name: "customers-web",
|
|
134
|
+
views: {
|
|
135
|
+
"screen:customers": customersScreen,
|
|
136
|
+
"dialog:customer": customerDialog,
|
|
137
|
+
},
|
|
138
|
+
});
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
## The frame and its home
|
|
142
|
+
|
|
143
|
+
A business app without Pairz's sidebar draws its own frame: a `TopBar` (a clock, who's signed in,
|
|
144
|
+
Sign out), an `AppBar` of places, the screen the address names, and `Toasts`. The web host observes
|
|
145
|
+
the View named `web.shell` for the address it's at, with a `Where` (`{ path, query }`). Home is a
|
|
146
|
+
`Page` of `TileGrid` tiles, one per place.
|
|
147
|
+
|
|
148
|
+
The salon's time zone and formats are a resource of its own, `formats`, read by every screen:
|
|
149
|
+
|
|
150
|
+
```ts
|
|
151
|
+
// plugins/look/contract.ts
|
|
152
|
+
/** Where the salon is, and how it writes dates: settings, never the browser's own. */
|
|
153
|
+
export type Formats = { timeZone: string; day: string; dayTime: string };
|
|
154
|
+
|
|
155
|
+
/** The `formats` resource, over the defaults. */
|
|
156
|
+
export const formatsOf = (resources: Record<string, unknown>): Formats => ({
|
|
157
|
+
timeZone: "UTC",
|
|
158
|
+
day: "dd/MM/yyyy",
|
|
159
|
+
dayTime: "dd/MM/yyyy HH:mm:ss",
|
|
160
|
+
...(resources.formats as Partial<Formats> | undefined),
|
|
161
|
+
});
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
```ts
|
|
165
|
+
// plugins/look/mod.ts
|
|
166
|
+
import { definePlugin, type Plugin } from "pairz";
|
|
167
|
+
|
|
168
|
+
/** The salon's look, words and formats: among the page's plugins, and the server's first paint. */
|
|
169
|
+
export const look: Plugin = definePlugin({
|
|
170
|
+
name: "look",
|
|
171
|
+
resources: {
|
|
172
|
+
theme: {
|
|
173
|
+
light: { primary: "#6d28d9" },
|
|
174
|
+
dark: { primary: "#a78bfa" },
|
|
175
|
+
// Sizes are tokens too: a wider list page, and the home's tiles centred.
|
|
176
|
+
tokens: { "page-width-lg": "1180px", "tile-justify": "center" },
|
|
177
|
+
},
|
|
178
|
+
formats: { timeZone: "Europe/London", day: "dd/MM/yyyy", dayTime: "dd/MM/yyyy HH:mm:ss" },
|
|
179
|
+
words: { "toolkit.noRows": "Nothing here yet." },
|
|
180
|
+
signInPage: { about: { headline: "The salon,", quiet: "for its staff." } },
|
|
181
|
+
},
|
|
182
|
+
});
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
```tsx
|
|
186
|
+
// plugins/frame/views/web/shell.tsx
|
|
187
|
+
import type { ViewContext } from "pairz";
|
|
188
|
+
import {
|
|
189
|
+
AppBar,
|
|
190
|
+
Button,
|
|
191
|
+
LiveClock,
|
|
192
|
+
Page,
|
|
193
|
+
signOut,
|
|
194
|
+
Stack,
|
|
195
|
+
Text,
|
|
196
|
+
TileGrid,
|
|
197
|
+
Toasts,
|
|
198
|
+
TopBar,
|
|
199
|
+
} from "pairz/web";
|
|
200
|
+
import type { IconLike, Where } from "pairz/web";
|
|
201
|
+
import type { ReactNode } from "react";
|
|
202
|
+
import { formatsOf } from "../../../look/contract.ts";
|
|
203
|
+
|
|
204
|
+
/** The salon's places, in the bar's order: each is the View `screen:<key>`, at `/<key>`. */
|
|
205
|
+
const PLACES: { key: string; label: string; icon: IconLike; description: string }[] = [
|
|
206
|
+
{
|
|
207
|
+
key: "visits",
|
|
208
|
+
label: "Visits",
|
|
209
|
+
icon: "note",
|
|
210
|
+
description: "Who comes when, and what they had",
|
|
211
|
+
},
|
|
212
|
+
{ key: "customers", label: "Customers", icon: "users", description: "Everyone who books" },
|
|
213
|
+
{ key: "services", label: "Services", icon: "tags", description: "What the salon offers" },
|
|
214
|
+
{ key: "reports", label: "Reports", icon: "chart", description: "Takings, by day" },
|
|
215
|
+
];
|
|
216
|
+
|
|
217
|
+
/** The app's frame, the View the web host observes for the address: bars, the screen, toasts. */
|
|
218
|
+
export const shell = (where: Where, ctx: ViewContext<ReactNode>): ReactNode => {
|
|
219
|
+
const [place] = where.path.split("/").filter(Boolean);
|
|
220
|
+
const { timeZone, dayTime } = formatsOf(ctx.resources);
|
|
221
|
+
const screen = place
|
|
222
|
+
? ctx.show(`screen:${place}`, where) ?? <Page title="Not found">{null}</Page>
|
|
223
|
+
: (
|
|
224
|
+
<Page title="Good to see you" width="lg" align="center">
|
|
225
|
+
<TileGrid
|
|
226
|
+
label="Places"
|
|
227
|
+
tiles={PLACES.map((p) => ({
|
|
228
|
+
href: `/${p.key}`,
|
|
229
|
+
label: p.label,
|
|
230
|
+
icon: p.icon,
|
|
231
|
+
description: p.description,
|
|
232
|
+
}))}
|
|
233
|
+
/>
|
|
234
|
+
</Page>
|
|
235
|
+
);
|
|
236
|
+
return (
|
|
237
|
+
<Stack gap="none">
|
|
238
|
+
<TopBar
|
|
239
|
+
start={<LiveClock format={dayTime} timeZone={timeZone} />}
|
|
240
|
+
center="The salon"
|
|
241
|
+
end={
|
|
242
|
+
<Stack direction="row" gap="sm" align="center">
|
|
243
|
+
<Text size="sm">{ctx.viewer?.label ?? ctx.viewer?.name}</Text>
|
|
244
|
+
<Button variant="link" size="xs" onClick={() => void signOut()}>Sign out</Button>
|
|
245
|
+
</Stack>
|
|
246
|
+
}
|
|
247
|
+
/>
|
|
248
|
+
<AppBar
|
|
249
|
+
brand="The salon"
|
|
250
|
+
href="/"
|
|
251
|
+
active={place}
|
|
252
|
+
items={PLACES.map((p) => ({ href: `/${p.key}`, key: p.key, label: p.label, icon: p.icon }))}
|
|
253
|
+
/>
|
|
254
|
+
<main>{screen}</main>
|
|
255
|
+
<Toasts placement="bottom-end" />
|
|
256
|
+
</Stack>
|
|
257
|
+
);
|
|
258
|
+
};
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
```tsx
|
|
262
|
+
// plugins/frame/web.tsx
|
|
263
|
+
import { definePlugin, type Plugin } from "pairz";
|
|
264
|
+
import { shell } from "./views/web/shell.tsx";
|
|
265
|
+
|
|
266
|
+
/** The app's frame: its `web.shell` replaces the Pairz shell's, so list it after any other. */
|
|
267
|
+
export const frameWeb: Plugin = definePlugin({ name: "frame-web", views: { "web.shell": shell } });
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
The page runs the look first and the frame last (its `web.shell` is the one drawn), and the server
|
|
271
|
+
gives the same look to the page's first paint and the sign-in page:
|
|
272
|
+
|
|
273
|
+
```ts
|
|
274
|
+
// front.ts
|
|
275
|
+
import type { Plugin } from "pairz";
|
|
276
|
+
import { customersWeb } from "./plugins/customers/web.tsx";
|
|
277
|
+
import { frameWeb } from "./plugins/frame/web.tsx";
|
|
278
|
+
import { look } from "./plugins/look/mod.ts";
|
|
279
|
+
import { visitsWeb } from "./plugins/visits/web.tsx";
|
|
280
|
+
|
|
281
|
+
/** The plugins the page runs: the look, each plugin's front end, and the frame. */
|
|
282
|
+
export const front: Plugin[] = [look, customersWeb, visitsWeb, frameWeb];
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
```tsx
|
|
286
|
+
// browser.tsx
|
|
287
|
+
import { web } from "pairz/web";
|
|
288
|
+
import { front } from "./front.ts";
|
|
289
|
+
|
|
290
|
+
await web({ root: document.getElementById("app")!, plugins: front });
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
```ts
|
|
294
|
+
// app.ts
|
|
295
|
+
import type { Plugin } from "pairz";
|
|
296
|
+
import { access, passwordSignIn } from "pairz/plugins/access";
|
|
297
|
+
import { customers } from "./plugins/customers/mod.ts";
|
|
298
|
+
import { visits } from "./plugins/visits/mod.ts";
|
|
299
|
+
|
|
300
|
+
export function plugins(): Plugin[] {
|
|
301
|
+
return [...access, passwordSignIn, customers, visits];
|
|
302
|
+
}
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
```ts
|
|
306
|
+
// server.ts
|
|
307
|
+
import { createRuntime, definePlugin } from "pairz";
|
|
308
|
+
import { memoryStore } from "pairz/stores/memory";
|
|
309
|
+
import { bundle, listen } from "pairz/web/node";
|
|
310
|
+
import { webPage } from "pairz/web/server";
|
|
311
|
+
import { themeOf } from "pairz/web/theme";
|
|
312
|
+
import { plugins } from "./app.ts";
|
|
313
|
+
import { look } from "./plugins/look/mod.ts";
|
|
314
|
+
|
|
315
|
+
const runtime = await createRuntime({
|
|
316
|
+
store: memoryStore(),
|
|
317
|
+
plugins: [
|
|
318
|
+
...plugins(),
|
|
319
|
+
webPage,
|
|
320
|
+
definePlugin({
|
|
321
|
+
name: "page",
|
|
322
|
+
resources: {
|
|
323
|
+
page: { title: "The salon", code: () => bundle(new URL("./browser.tsx", import.meta.url)) },
|
|
324
|
+
// The page's first paint, and the sign-in page, in the salon's look.
|
|
325
|
+
theme: themeOf([look]),
|
|
326
|
+
},
|
|
327
|
+
}),
|
|
328
|
+
],
|
|
329
|
+
});
|
|
330
|
+
await listen(runtime.fetch, { hostname: "127.0.0.1", port: 8080 });
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
- ``ctx.show(`screen:${place}`, where)`` shows the screen as a part of the frame: it runs again on
|
|
334
|
+
its own when what it read changes, and the bars don't.
|
|
335
|
+
- A screen is a `Page`: its title, its `actions`, and a `width` (`lg` for a list, `full` for a wide
|
|
336
|
+
form). The frame gives it no padding of its own.
|
|
337
|
+
- `Toasts` goes in once, in the frame. Any handler then says a few seconds' word with `toast()`.
|
|
338
|
+
- Icons are the toolkit's by name. An app's own glyph is `<Icon drawing={…} />`, never an image
|
|
339
|
+
restyled with CSS.
|
|
340
|
+
- The home's tiles are centred by a token of the theme (`tile-justify`), as the list page is widened
|
|
341
|
+
by one (`page-width-lg`): sizes and placements are tokens, not CSS.
|
|
342
|
+
|
|
343
|
+
## A list: search, filters, paging and exports
|
|
344
|
+
|
|
345
|
+
A list that may grow past a few thousand rows pages on the server. Its named query takes the table's
|
|
346
|
+
state (`search`, `sort`, `order`, `offset`, `limit`) and the screen's filters, and answers a page
|
|
347
|
+
and how many match:
|
|
348
|
+
|
|
349
|
+
```ts
|
|
350
|
+
// plugins/customers/collections/customer.ts
|
|
351
|
+
import { defineCollection, type Filter, type Infer, people } from "pairz";
|
|
352
|
+
import type { CustomerPage, PageParams } from "../contract.ts";
|
|
353
|
+
|
|
354
|
+
const schema = {
|
|
355
|
+
type: "object",
|
|
356
|
+
properties: {
|
|
357
|
+
// Something besides spaces.
|
|
358
|
+
name: { type: "string", pattern: "\\S" },
|
|
359
|
+
phone: { type: "string" },
|
|
360
|
+
// Empty, or an address.
|
|
361
|
+
email: { type: "string", pattern: "^$|^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$" },
|
|
362
|
+
/** The salon's day they first came, `YYYY-MM-DD`. */
|
|
363
|
+
since: { type: "string", pattern: "^\\d{4}-\\d{2}-\\d{2}$" },
|
|
364
|
+
archived: { type: "boolean" },
|
|
365
|
+
},
|
|
366
|
+
required: ["name", "since"],
|
|
367
|
+
additionalProperties: false,
|
|
368
|
+
} as const;
|
|
369
|
+
|
|
370
|
+
/** A customer, as the schema says: the type follows it. */
|
|
371
|
+
export type Customer = Infer<typeof schema> & { _id: string };
|
|
372
|
+
|
|
373
|
+
/** What someone typed, matched as it is: a search box's text is never a pattern. */
|
|
374
|
+
const literally = (text: string) => text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
375
|
+
|
|
376
|
+
export const customer = defineCollection({
|
|
377
|
+
schema,
|
|
378
|
+
queries: {
|
|
379
|
+
/** `customer.page`: one page of customers, searched, filtered and sorted in the store. */
|
|
380
|
+
page: {
|
|
381
|
+
allow: people,
|
|
382
|
+
run: async (customers, params: PageParams): Promise<CustomerPage> => {
|
|
383
|
+
const filter: Filter = {
|
|
384
|
+
...(params.search ? { name: { $regex: literally(params.search), $options: "i" } } : {}),
|
|
385
|
+
...(params.from && params.to ? { since: { $gte: params.from, $lte: params.to } } : {}),
|
|
386
|
+
...(params.archived ? {} : { archived: { $ne: true } }),
|
|
387
|
+
};
|
|
388
|
+
const sort = { [params.sort ?? "name"]: params.order === "desc" ? -1 : 1 } as const;
|
|
389
|
+
const [rows, total] = await Promise.all([
|
|
390
|
+
customers.find(filter, { sort, skip: params.offset, limit: params.limit }),
|
|
391
|
+
customers.countDocuments(filter),
|
|
392
|
+
]);
|
|
393
|
+
return { rows, total };
|
|
394
|
+
},
|
|
395
|
+
},
|
|
396
|
+
/** `customer.one`: a customer, for their dialog. */
|
|
397
|
+
one: {
|
|
398
|
+
allow: people,
|
|
399
|
+
run: (customers, { _id }: { _id: string }) => customers.findOne({ _id }),
|
|
400
|
+
},
|
|
401
|
+
/** `customer.choices`: who can be picked, as a picker's options. */
|
|
402
|
+
choices: {
|
|
403
|
+
allow: people,
|
|
404
|
+
run: async (customers) =>
|
|
405
|
+
(await customers.find({ archived: { $ne: true } }, { sort: { name: 1 } }))
|
|
406
|
+
.map((c) => ({ value: c._id, label: c.name })),
|
|
407
|
+
},
|
|
408
|
+
},
|
|
409
|
+
});
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
```ts
|
|
413
|
+
// plugins/customers/contract.ts
|
|
414
|
+
import { failure } from "pairz";
|
|
415
|
+
import type { Customer } from "./collections/customer.ts";
|
|
416
|
+
|
|
417
|
+
export type { Customer };
|
|
418
|
+
|
|
419
|
+
/** What `customer.page` is asked: the table's state, and the screen's filters. */
|
|
420
|
+
export type PageParams = {
|
|
421
|
+
search: string;
|
|
422
|
+
sort?: string;
|
|
423
|
+
order: "asc" | "desc";
|
|
424
|
+
offset: number;
|
|
425
|
+
limit: number;
|
|
426
|
+
/** Customers who first came in this range of days. */
|
|
427
|
+
from?: string;
|
|
428
|
+
to?: string;
|
|
429
|
+
archived?: boolean;
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
/** A page of customers, and how many match. */
|
|
433
|
+
export type CustomerPage = { rows: Customer[]; total: number };
|
|
434
|
+
|
|
435
|
+
/** An Action's refusal a form shows by one field: words for anyone, and the field in `detail`. */
|
|
436
|
+
export const refusal = (field: string, message: string) =>
|
|
437
|
+
Object.assign(failure("invalid", message, { public: true }), { detail: { field } });
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
No Action saves a customer: adding or changing one is a plain save, so the dialog writes the
|
|
441
|
+
collection, as an import script (`connect()`) and REST would. The schema checks every one, and the
|
|
442
|
+
`shared` rule (or the guard) says who may.
|
|
443
|
+
|
|
444
|
+
```ts
|
|
445
|
+
// plugins/customers/mod.ts
|
|
446
|
+
import { definePlugin, type Plugin } from "pairz";
|
|
447
|
+
import { customer } from "./collections/customer.ts";
|
|
448
|
+
|
|
449
|
+
export const customers: Plugin = definePlugin({
|
|
450
|
+
name: "customers",
|
|
451
|
+
collections: { customer },
|
|
452
|
+
});
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
The screen keeps the table's state and its filters in the page's address, so the View reads them
|
|
456
|
+
from `where`, Back undoes a page or a filter, and a dialog over the list returns to the same place:
|
|
457
|
+
|
|
458
|
+
```tsx
|
|
459
|
+
// plugins/customers/views/web/customers-screen.tsx
|
|
460
|
+
import type { ViewContext } from "pairz";
|
|
461
|
+
import {
|
|
462
|
+
Button,
|
|
463
|
+
Checkbox,
|
|
464
|
+
DataTable,
|
|
465
|
+
DateRangePicker,
|
|
466
|
+
go,
|
|
467
|
+
IconButton,
|
|
468
|
+
Page,
|
|
469
|
+
Stack,
|
|
470
|
+
} from "pairz/web";
|
|
471
|
+
import { tableAddress, tableQuery, todayIn, Toolbar } from "pairz/web";
|
|
472
|
+
import type { Column, Where } from "pairz/web";
|
|
473
|
+
import type { ReactNode } from "react";
|
|
474
|
+
import { formatsOf } from "../../../look/contract.ts";
|
|
475
|
+
import type { Customer, CustomerPage } from "../../contract.ts";
|
|
476
|
+
import { DeleteCustomer } from "../../lib/web/delete-customer.tsx";
|
|
477
|
+
|
|
478
|
+
/** The list's columns; the last two hold a row's Edit and Delete. */
|
|
479
|
+
const columns = (remove: (c: Customer) => Promise<unknown>): Column<Customer>[] => [
|
|
480
|
+
{ key: "name", title: "Name" },
|
|
481
|
+
{ key: "phone", title: "Phone", nowrap: true },
|
|
482
|
+
{ key: "email", title: "Email" },
|
|
483
|
+
{ key: "since", title: "Since", nowrap: true },
|
|
484
|
+
{
|
|
485
|
+
key: "edit",
|
|
486
|
+
title: "",
|
|
487
|
+
label: "Edit",
|
|
488
|
+
render: (c) => (
|
|
489
|
+
<IconButton icon="pencil" label={`Edit ${c.name}`} size="sm" href={`/customers/${c._id}`} />
|
|
490
|
+
),
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
key: "delete",
|
|
494
|
+
title: "",
|
|
495
|
+
label: "Delete",
|
|
496
|
+
render: (c) => <DeleteCustomer customer={c} remove={() => remove(c)} />,
|
|
497
|
+
},
|
|
498
|
+
];
|
|
499
|
+
|
|
500
|
+
/** `screen:customers`, at `/customers`: the list, and the dialog its address opens over it. */
|
|
501
|
+
export const customersScreen = (where: Where, ctx: ViewContext<ReactNode>): ReactNode => {
|
|
502
|
+
const [, open] = where.path.split("/").filter(Boolean); // "new", or a customer's id
|
|
503
|
+
const table = tableAddress(where, 25);
|
|
504
|
+
const { from, to, archived } = where.query ?? {};
|
|
505
|
+
const found = ctx.db.collection("customer").query<CustomerPage>("page", {
|
|
506
|
+
...table.state,
|
|
507
|
+
from,
|
|
508
|
+
to,
|
|
509
|
+
archived: archived === "yes",
|
|
510
|
+
});
|
|
511
|
+
const { day, timeZone } = formatsOf(ctx.resources);
|
|
512
|
+
// A plain delete, as whoever's at the screen; the row asks first.
|
|
513
|
+
const customers = ctx.db.collection<Customer>("customer");
|
|
514
|
+
const remove = (c: Customer) => customers.deleteOne({ _id: c._id });
|
|
515
|
+
// A filter is in the address too, from the first page: Back takes it off again.
|
|
516
|
+
const filter = (extra: Record<string, string | undefined>) =>
|
|
517
|
+
go(`/customers${tableQuery(where, { ...table.state, offset: 0 }, extra)}`);
|
|
518
|
+
return (
|
|
519
|
+
<Page
|
|
520
|
+
title="Customers"
|
|
521
|
+
width="lg"
|
|
522
|
+
actions={<Button variant="primary" icon="plus" href="/customers/new">New customer</Button>}
|
|
523
|
+
>
|
|
524
|
+
<Stack gap="lg">
|
|
525
|
+
<Toolbar
|
|
526
|
+
end={
|
|
527
|
+
<>
|
|
528
|
+
<Checkbox
|
|
529
|
+
label="Archived too"
|
|
530
|
+
checked={archived === "yes"}
|
|
531
|
+
onChange={(e) => filter({ archived: e.target.checked ? "yes" : undefined })}
|
|
532
|
+
/>
|
|
533
|
+
<DateRangePicker
|
|
534
|
+
label="Customers since"
|
|
535
|
+
value={from && to ? { start: from, end: to } : undefined}
|
|
536
|
+
onChange={(range) => filter({ from: range.start, to: range.end })}
|
|
537
|
+
today={todayIn(timeZone)}
|
|
538
|
+
format={day}
|
|
539
|
+
presets
|
|
540
|
+
/>
|
|
541
|
+
</>
|
|
542
|
+
}
|
|
543
|
+
/>
|
|
544
|
+
<DataTable
|
|
545
|
+
{...table}
|
|
546
|
+
label="Customers"
|
|
547
|
+
columns={columns(remove)}
|
|
548
|
+
rows={found.value?.rows ?? []}
|
|
549
|
+
total={found.value?.total ?? 0}
|
|
550
|
+
loading={found.status === "loading"}
|
|
551
|
+
rowKey={(c) => c._id}
|
|
552
|
+
exportName="customers"
|
|
553
|
+
/>
|
|
554
|
+
</Stack>
|
|
555
|
+
{open
|
|
556
|
+
? ctx.show("dialog:customer", { _id: open, back: `/customers${tableQuery(where)}` })
|
|
557
|
+
: null}
|
|
558
|
+
</Page>
|
|
559
|
+
);
|
|
560
|
+
};
|
|
561
|
+
```
|
|
562
|
+
|
|
563
|
+
- **`tableAddress(where, 25)`** gives the table its `state` and `onState`: a new page, sort or
|
|
564
|
+
search moves the address (`go()`), and the View reads the query again. `total` puts the table in
|
|
565
|
+
server mode: `rows` is the page.
|
|
566
|
+
- **Filters** sit in a `Toolbar` over the table (`end` for filters and dates, `start` for the
|
|
567
|
+
screen's buttons, `grow` for a field that takes the room left). Each moves the address with
|
|
568
|
+
`tableQuery(where, state, extra)`, back to the first page; an `undefined` value takes a key away.
|
|
569
|
+
- **A column titled `""`** holds links or buttons: it isn't sorted, searched or exported, and its
|
|
570
|
+
`label` names it for screen readers. `text` is what search, sorting and files use when a cell is
|
|
571
|
+
formatted.
|
|
572
|
+
- **Delete asks first.** A row's Delete is a component of the plugin's `lib/web/` (a View holds no
|
|
573
|
+
hooks), and `useConfirm` asks in it: the dialog stays busy while the delete runs, says why if it's
|
|
574
|
+
refused, and closes once it's done. When the row goes with the record, the question goes with it,
|
|
575
|
+
and the toast still says it's deleted.
|
|
576
|
+
[Confirming an action](the-web-toolkit.md#confirming-an-action).
|
|
577
|
+
|
|
578
|
+
```tsx
|
|
579
|
+
// plugins/customers/lib/web/delete-customer.tsx
|
|
580
|
+
import { IconButton, useConfirm } from "pairz/web";
|
|
581
|
+
import type { ReactNode } from "react";
|
|
582
|
+
import type { Customer } from "../../contract.ts";
|
|
583
|
+
|
|
584
|
+
/** A customer's Delete, in their row: asks, then deletes. */
|
|
585
|
+
export function DeleteCustomer({ customer, remove }: {
|
|
586
|
+
customer: Customer;
|
|
587
|
+
remove(): Promise<unknown>;
|
|
588
|
+
}): ReactNode {
|
|
589
|
+
const [dialog, confirm] = useConfirm();
|
|
590
|
+
return (
|
|
591
|
+
<>
|
|
592
|
+
<IconButton
|
|
593
|
+
icon="trash"
|
|
594
|
+
label={`Delete ${customer.name}`}
|
|
595
|
+
size="sm"
|
|
596
|
+
onClick={() =>
|
|
597
|
+
confirm({
|
|
598
|
+
title: `Delete ${customer.name}?`,
|
|
599
|
+
message: "Their visits stay, under their name. This can't be undone.",
|
|
600
|
+
danger: true,
|
|
601
|
+
toast: "Customer deleted.",
|
|
602
|
+
onConfirm: remove,
|
|
603
|
+
})}
|
|
604
|
+
/>
|
|
605
|
+
{dialog}
|
|
606
|
+
</>
|
|
607
|
+
);
|
|
608
|
+
}
|
|
609
|
+
```
|
|
610
|
+
|
|
611
|
+
- **Exports:** the menu saves the visible columns of the rows shown, as `<exportName>.csv`, `.xlsx`
|
|
612
|
+
or `.pdf` (`exports` picks the formats). In server mode that's the page. To export every matching
|
|
613
|
+
row, either give the table every row (the visits list under Dates: `exportAll`), or add an Action
|
|
614
|
+
with `record: false` that returns them, and a `Menu` in the table's `actions` that saves them with
|
|
615
|
+
`download(format, { headers, rows }, name)`. Totals in a table's `footer` aren't exported: put
|
|
616
|
+
them in the sheet yourself when the file needs them.
|
|
617
|
+
- **Search in the store** is a `$regex` with `$options: "i"`, and what someone typed is escaped
|
|
618
|
+
first: it's text, never a pattern.
|
|
619
|
+
|
|
620
|
+
## A form in a dialog
|
|
621
|
+
|
|
622
|
+
A record opens in a dialog over its list, at an address of the list's (`/customers/new`,
|
|
623
|
+
`/customers/<id>`): Back closes it, a link opens it, and closing goes back to the list as it was.
|
|
624
|
+
The dialog's View reads the record and returns a `RecordDialog`. The dialog keeps what's typed
|
|
625
|
+
itself, so the View needs no component of its own: a View is a function the runtime runs again, and
|
|
626
|
+
holds no state or hooks.
|
|
627
|
+
|
|
628
|
+
```tsx
|
|
629
|
+
// plugins/customers/views/web/customer-dialog.tsx
|
|
630
|
+
import type { ViewContext } from "pairz";
|
|
631
|
+
import { DatePicker, Dialog, Field, go, Input, RecordDialog, todayIn } from "pairz/web";
|
|
632
|
+
import type { ReactNode } from "react";
|
|
633
|
+
import { formatsOf } from "../../../look/contract.ts";
|
|
634
|
+
import type { Customer } from "../../contract.ts";
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* What the form says of a field the schema refuses: the schema names the field, in words for
|
|
638
|
+
* developers; these are the words for people.
|
|
639
|
+
*/
|
|
640
|
+
const SAYS = {
|
|
641
|
+
name: "Give the customer's name.",
|
|
642
|
+
email: "That email address isn't complete.",
|
|
643
|
+
since: "Give the day they first came.",
|
|
644
|
+
};
|
|
645
|
+
|
|
646
|
+
/** `dialog:customer`: a customer's form over the list (`_id` "new" for a new one). */
|
|
647
|
+
export const customerDialog = (
|
|
648
|
+
item: { _id: string; back: string },
|
|
649
|
+
ctx: ViewContext<ReactNode>,
|
|
650
|
+
): ReactNode => {
|
|
651
|
+
const fresh = item._id === "new";
|
|
652
|
+
const found = fresh
|
|
653
|
+
? undefined
|
|
654
|
+
: ctx.db.collection("customer").query<Customer | null>("one", { _id: item._id });
|
|
655
|
+
if (found?.status === "loading") return null;
|
|
656
|
+
const close = () => go(item.back);
|
|
657
|
+
if (found && !found.value) return <Dialog open onClose={close} title="No such customer" />;
|
|
658
|
+
const customer = found?.value ?? undefined;
|
|
659
|
+
const { timeZone, day } = formatsOf(ctx.resources);
|
|
660
|
+
const today = todayIn(timeZone);
|
|
661
|
+
const customers = ctx.db.collection<Customer>("customer");
|
|
662
|
+
// A View inside this one, shown in this View's body: its own reads, live on its own.
|
|
663
|
+
const visits = customer ? ctx.show("panel:customer_visits", { _id: customer._id }) : null;
|
|
664
|
+
return (
|
|
665
|
+
<RecordDialog<Customer>
|
|
666
|
+
title={customer ? customer.name : "New customer"}
|
|
667
|
+
record={customer}
|
|
668
|
+
defaults={{ since: today }}
|
|
669
|
+
size="lg"
|
|
670
|
+
errors={SAYS}
|
|
671
|
+
toast="Customer saved."
|
|
672
|
+
// A plain save: the collection, as whoever's at the screen.
|
|
673
|
+
onSave={(change) =>
|
|
674
|
+
change.kind === "create"
|
|
675
|
+
? customers.insertOne(change.values)
|
|
676
|
+
: customers.updateOne({ _id: change._id }, change.update)}
|
|
677
|
+
onClose={close}
|
|
678
|
+
>
|
|
679
|
+
{(form) => (
|
|
680
|
+
<>
|
|
681
|
+
<Field layout="row" label="Name" required error={form.error("name")}>
|
|
682
|
+
{(control) => <Input {...control} {...form.text("name")} required />}
|
|
683
|
+
</Field>
|
|
684
|
+
<Field layout="row" label="Phone" error={form.error("phone")}>
|
|
685
|
+
{(control) => <Input {...control} {...form.text("phone")} type="tel" />}
|
|
686
|
+
</Field>
|
|
687
|
+
<Field layout="row" label="Email" error={form.error("email")}>
|
|
688
|
+
{(control) => <Input {...control} {...form.text("email")} type="email" icon="mail" />}
|
|
689
|
+
</Field>
|
|
690
|
+
<Field layout="row" label="Customer since" htmlFor="since" error={form.error("since")}>
|
|
691
|
+
<DatePicker
|
|
692
|
+
id="since"
|
|
693
|
+
{...form.value("since")}
|
|
694
|
+
today={today}
|
|
695
|
+
format={day}
|
|
696
|
+
max={today}
|
|
697
|
+
/>
|
|
698
|
+
</Field>
|
|
699
|
+
{visits}
|
|
700
|
+
</>
|
|
701
|
+
)}
|
|
702
|
+
</RecordDialog>
|
|
703
|
+
);
|
|
704
|
+
};
|
|
705
|
+
```
|
|
706
|
+
|
|
707
|
+
What the save sends:
|
|
708
|
+
|
|
709
|
+
- **A new customer** is `{ kind: "create", values }`: the defaults (`since`, today) with what was
|
|
710
|
+
typed, for `insertOne`.
|
|
711
|
+
- **A customer's edit** is `{ kind: "update", _id, set, unset, update }`, only what changed. A field
|
|
712
|
+
nobody touched isn't in it, so an email someone else changed while the dialog was open stays
|
|
713
|
+
theirs. A phone emptied is a clear (`unset`, `$unset` in `update`), not an empty string. With
|
|
714
|
+
nothing changed, the dialog just closes.
|
|
715
|
+
- **While it saves**, Save is busy and the dialog stays open: Escape, the backdrop and Cancel wait.
|
|
716
|
+
It closes after the save answered, with a toast.
|
|
717
|
+
|
|
718
|
+
Where its errors come from:
|
|
719
|
+
|
|
720
|
+
- **The browser's own checks** run first: `required`, `type="email"`.
|
|
721
|
+
- **The collection schema checks the save** for every caller. When it refuses a field, the error
|
|
722
|
+
names it in `detail.field`, and the dialog shows it under that field's `Field` (the one whose
|
|
723
|
+
`error` is `form.error(name)`), in `SAYS`' words, and moves the focus to it. A `Field` whose child
|
|
724
|
+
is a function of its control (`{(control) => <Input {...control} />}`) ties the error to the field
|
|
725
|
+
for screen readers too (`aria-invalid`, `aria-describedby`).
|
|
726
|
+
- **A save through an Action** can receive a public `failure` from it, shown the same way: by its
|
|
727
|
+
field when it has a `detail.field`, at the form's top otherwise.
|
|
728
|
+
|
|
729
|
+
A row `Field` (`layout="row"`) puts its label in a column beside its control: `labelWidth` and
|
|
730
|
+
`controlWidth` are each a share of the whole row (`"33.33%"` and `"66.67%"` fill it). Each record is
|
|
731
|
+
a draft of its own: an error or an edit never shows on the next customer opened.
|
|
732
|
+
[A record in a dialog](the-web-toolkit.md#a-record-in-a-dialog) has every binder and rule.
|
|
733
|
+
|
|
734
|
+
## A View inside a View
|
|
735
|
+
|
|
736
|
+
The customer's dialog shows their last visits. Those are the visits plugin's, so it's the visits
|
|
737
|
+
plugin's View, shown by name: customers never imports visits' code, and `ctx.show` gives `undefined`
|
|
738
|
+
when no plugin has that View.
|
|
739
|
+
|
|
740
|
+
```tsx
|
|
741
|
+
// plugins/visits/views/web/customer-visits-panel.tsx
|
|
742
|
+
import type { ViewContext } from "pairz";
|
|
743
|
+
import { Card, formatDayTime, ListGroup } from "pairz/web";
|
|
744
|
+
import type { ReactNode } from "react";
|
|
745
|
+
import { formatsOf } from "../../../look/contract.ts";
|
|
746
|
+
import type { Visit } from "../../contract.ts";
|
|
747
|
+
|
|
748
|
+
/** `panel:customer_visits`: a customer's last visits, a part of whichever View shows it. */
|
|
749
|
+
export const customerVisitsPanel = (
|
|
750
|
+
item: { _id: string },
|
|
751
|
+
ctx: ViewContext<ReactNode>,
|
|
752
|
+
): ReactNode => {
|
|
753
|
+
const visits =
|
|
754
|
+
ctx.db.collection("visit").query<Visit[]>("ofCustomer", { customer: item._id }).value ?? [];
|
|
755
|
+
const { dayTime } = formatsOf(ctx.resources);
|
|
756
|
+
return (
|
|
757
|
+
<Card title="Last visits" icon="note" padding="none">
|
|
758
|
+
<ListGroup
|
|
759
|
+
flush
|
|
760
|
+
items={visits.map((v) => ({
|
|
761
|
+
href: `/visits/${v._id}`,
|
|
762
|
+
label: v.service,
|
|
763
|
+
description: formatDayTime(v.at, dayTime),
|
|
764
|
+
}))}
|
|
765
|
+
/>
|
|
766
|
+
</Card>
|
|
767
|
+
);
|
|
768
|
+
};
|
|
769
|
+
```
|
|
770
|
+
|
|
771
|
+
```tsx
|
|
772
|
+
// plugins/visits/web.tsx
|
|
773
|
+
import { definePlugin, type Plugin } from "pairz";
|
|
774
|
+
import { customerVisitsPanel } from "./views/web/customer-visits-panel.tsx";
|
|
775
|
+
import { invoiceScreen } from "./views/web/invoice-screen.tsx";
|
|
776
|
+
import { visitDialog } from "./views/web/visit-dialog.tsx";
|
|
777
|
+
import { visitsScreen } from "./views/web/visits-screen.tsx";
|
|
778
|
+
|
|
779
|
+
/** Visits' web front end: each View is a file of web/; this only names them. */
|
|
780
|
+
export const visitsWeb: Plugin = definePlugin({
|
|
781
|
+
name: "visits-web",
|
|
782
|
+
views: {
|
|
783
|
+
"screen:visits": visitsScreen,
|
|
784
|
+
"dialog:visit": visitDialog,
|
|
785
|
+
"screen:invoice": invoiceScreen,
|
|
786
|
+
"panel:customer_visits": customerVisitsPanel,
|
|
787
|
+
},
|
|
788
|
+
});
|
|
789
|
+
```
|
|
790
|
+
|
|
791
|
+
- **`ctx.show` belongs in a View's body**, with its reads. What it returns is a part, a React node
|
|
792
|
+
to hand to a component: it reads on its own and redraws on its own. Called later, from a
|
|
793
|
+
component's render, a handler, a table's `render` or `detail`, it throws.
|
|
794
|
+
- **Shown later, on demand** (a table's detail row someone opens, a tab not yet chosen):
|
|
795
|
+
`<LazyView kind="panel:customer_visits" item={{ _id }} />`, which observes the View only while
|
|
796
|
+
it's drawn.
|
|
797
|
+
- **A part that saves with its parent's form** joins it with `useFormSubmit`, inside a `Form`: see
|
|
798
|
+
[forms with parts](the-web-toolkit.md#forms).
|
|
799
|
+
|
|
800
|
+
## Dates
|
|
801
|
+
|
|
802
|
+
Days are `YYYY-MM-DD` and times of day `YYYY-MM-DD HH:mm` or `YYYY-MM-DD HH:mm:ss`: the app's clock
|
|
803
|
+
time, with no zone. `todayIn(timeZone)` and `nowIn(timeZone, …)` give today and now in the app's
|
|
804
|
+
time zone, and every picker writes and reads in the app's `format` pattern. Never a `Date`'s ISO
|
|
805
|
+
string, and never `toLocaleString`, which follow the browser and not the app.
|
|
806
|
+
|
|
807
|
+
This list has every visit of a range of days in the browser, so the table searches, sorts, pages and
|
|
808
|
+
exports them itself, every matching row with `exportAll`:
|
|
809
|
+
|
|
810
|
+
```ts
|
|
811
|
+
// plugins/visits/contract.ts
|
|
812
|
+
/** A visit: who came, when (the salon's clock, to the second), for what, and its price in cents. */
|
|
813
|
+
export type Visit = {
|
|
814
|
+
_id: string;
|
|
815
|
+
customer: string;
|
|
816
|
+
name: string;
|
|
817
|
+
service: string;
|
|
818
|
+
at: string;
|
|
819
|
+
price: number;
|
|
820
|
+
};
|
|
821
|
+
```
|
|
822
|
+
|
|
823
|
+
```ts
|
|
824
|
+
// plugins/visits/queries.ts
|
|
825
|
+
import { people } from "pairz";
|
|
826
|
+
import type { QueryDef } from "pairz";
|
|
827
|
+
import type { Visit } from "./contract.ts";
|
|
828
|
+
|
|
829
|
+
/** `visit.between`: the visits of a range of days, the latest first. */
|
|
830
|
+
export const between: QueryDef<Visit> = {
|
|
831
|
+
allow: people,
|
|
832
|
+
run: (visits, { from, to }: { from: string; to: string }) =>
|
|
833
|
+
visits.find({ at: { $gte: from, $lte: `${to} 23:59:59` } }, { sort: { at: -1 } }),
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
/** `visit.ofCustomer`: a customer's last five visits. */
|
|
837
|
+
export const ofCustomer: QueryDef<Visit> = {
|
|
838
|
+
allow: people,
|
|
839
|
+
run: (visits, { customer }: { customer: string }) =>
|
|
840
|
+
visits.find({ customer }, { sort: { at: -1 }, limit: 5 }),
|
|
841
|
+
};
|
|
842
|
+
|
|
843
|
+
/** `visit.one`: a visit, for its dialog and its invoice. */
|
|
844
|
+
export const one: QueryDef<Visit> = {
|
|
845
|
+
allow: people,
|
|
846
|
+
run: (visits, { _id }: { _id: string }) => visits.findOne({ _id }),
|
|
847
|
+
};
|
|
848
|
+
```
|
|
849
|
+
|
|
850
|
+
```tsx
|
|
851
|
+
// plugins/visits/views/web/visits-screen.tsx
|
|
852
|
+
import type { ViewContext } from "pairz";
|
|
853
|
+
import { addDays, go, Page, todayIn } from "pairz/web";
|
|
854
|
+
import type { DateRange, Where } from "pairz/web";
|
|
855
|
+
import type { ReactNode } from "react";
|
|
856
|
+
import { formatsOf } from "../../../look/contract.ts";
|
|
857
|
+
import type { Visit } from "../../contract.ts";
|
|
858
|
+
import { VisitsBoard } from "../../lib/web/visits-board.tsx";
|
|
859
|
+
|
|
860
|
+
/** `screen:visits`, at `/visits`: the visits in a range of days, and a visit's dialog over them. */
|
|
861
|
+
export const visitsScreen = (where: Where, ctx: ViewContext<ReactNode>): ReactNode => {
|
|
862
|
+
const [, open] = where.path.split("/").filter(Boolean);
|
|
863
|
+
const { timeZone, day, dayTime } = formatsOf(ctx.resources);
|
|
864
|
+
const today = todayIn(timeZone);
|
|
865
|
+
const range: DateRange = {
|
|
866
|
+
start: where.query?.from ?? addDays(today, -6),
|
|
867
|
+
end: where.query?.to ?? today,
|
|
868
|
+
};
|
|
869
|
+
// Every visit of the range: the table searches, sorts, pages and exports them in the browser.
|
|
870
|
+
const visits = ctx.db.collection("visit").query<Visit[]>("between", {
|
|
871
|
+
from: range.start,
|
|
872
|
+
to: range.end,
|
|
873
|
+
});
|
|
874
|
+
const query = where.query ? `?${new URLSearchParams(where.query)}` : "";
|
|
875
|
+
return (
|
|
876
|
+
<Page title="Visits" width="lg">
|
|
877
|
+
<VisitsBoard
|
|
878
|
+
visits={visits.value ?? []}
|
|
879
|
+
loading={visits.status === "loading"}
|
|
880
|
+
range={range}
|
|
881
|
+
today={today}
|
|
882
|
+
dayFormat={day}
|
|
883
|
+
dayTimeFormat={dayTime}
|
|
884
|
+
pick={(picked) => go(`/visits?from=${picked.start}&to=${picked.end}`)}
|
|
885
|
+
add={() => go(`/visits/new${query}`)}
|
|
886
|
+
/>
|
|
887
|
+
{open ? ctx.show("dialog:visit", { _id: open, back: `/visits${query}` }) : null}
|
|
888
|
+
</Page>
|
|
889
|
+
);
|
|
890
|
+
};
|
|
891
|
+
```
|
|
892
|
+
|
|
893
|
+
```tsx
|
|
894
|
+
// plugins/visits/lib/web/visits-board.tsx
|
|
895
|
+
import {
|
|
896
|
+
Button,
|
|
897
|
+
DataTable,
|
|
898
|
+
DateRangePicker,
|
|
899
|
+
formatDayTime,
|
|
900
|
+
Kbd,
|
|
901
|
+
shortcutLabel,
|
|
902
|
+
Stack,
|
|
903
|
+
} from "pairz/web";
|
|
904
|
+
import { Toolbar, useShortcuts } from "pairz/web";
|
|
905
|
+
import type { Column, DateRange } from "pairz/web";
|
|
906
|
+
import type { ReactNode } from "react";
|
|
907
|
+
import type { Visit } from "../../contract.ts";
|
|
908
|
+
|
|
909
|
+
/** The visits list: a component, so it can hold the screen's keyboard shortcuts. */
|
|
910
|
+
export function VisitsBoard(
|
|
911
|
+
{ visits, loading, range, today, dayFormat, dayTimeFormat, pick, add }: {
|
|
912
|
+
visits: Visit[];
|
|
913
|
+
loading: boolean;
|
|
914
|
+
range: DateRange;
|
|
915
|
+
today: string;
|
|
916
|
+
dayFormat: string;
|
|
917
|
+
dayTimeFormat: string;
|
|
918
|
+
pick(range: DateRange): void;
|
|
919
|
+
add(): void;
|
|
920
|
+
},
|
|
921
|
+
): ReactNode {
|
|
922
|
+
useShortcuts({ "Alt+N": add });
|
|
923
|
+
const columns: Column<Visit>[] = [
|
|
924
|
+
{ key: "at", title: "When", nowrap: true, text: (v) => formatDayTime(v.at, dayTimeFormat) },
|
|
925
|
+
{ key: "name", title: "Customer" },
|
|
926
|
+
{ key: "service", title: "Service" },
|
|
927
|
+
{
|
|
928
|
+
key: "price",
|
|
929
|
+
title: "Price",
|
|
930
|
+
numeric: true,
|
|
931
|
+
align: "right",
|
|
932
|
+
text: (v) => (v.price / 100).toFixed(2),
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
key: "open",
|
|
936
|
+
title: "",
|
|
937
|
+
label: "Invoice",
|
|
938
|
+
render: (v) => <Button size="xs" href={`/invoice/${v._id}`}>Invoice</Button>,
|
|
939
|
+
},
|
|
940
|
+
];
|
|
941
|
+
return (
|
|
942
|
+
<Stack gap="lg">
|
|
943
|
+
<Toolbar
|
|
944
|
+
start={
|
|
945
|
+
<Button variant="primary" icon="plus" onClick={add}>
|
|
946
|
+
New visit <Kbd>{shortcutLabel("Alt+N")}</Kbd>
|
|
947
|
+
</Button>
|
|
948
|
+
}
|
|
949
|
+
end={
|
|
950
|
+
<DateRangePicker
|
|
951
|
+
label="Days"
|
|
952
|
+
value={range}
|
|
953
|
+
onChange={pick}
|
|
954
|
+
today={today}
|
|
955
|
+
format={dayFormat}
|
|
956
|
+
presets
|
|
957
|
+
/>
|
|
958
|
+
}
|
|
959
|
+
/>
|
|
960
|
+
<DataTable
|
|
961
|
+
label="Visits"
|
|
962
|
+
columns={columns}
|
|
963
|
+
rows={visits}
|
|
964
|
+
loading={loading}
|
|
965
|
+
rowKey={(v) => v._id}
|
|
966
|
+
exportName="visits"
|
|
967
|
+
exportAll
|
|
968
|
+
/>
|
|
969
|
+
</Stack>
|
|
970
|
+
);
|
|
971
|
+
}
|
|
972
|
+
```
|
|
973
|
+
|
|
974
|
+
The visit's form picks a customer from a list it searches, and a day and time:
|
|
975
|
+
|
|
976
|
+
```tsx
|
|
977
|
+
// plugins/visits/views/web/visit-dialog.tsx
|
|
978
|
+
import type { ViewContext } from "pairz";
|
|
979
|
+
import { go, nowIn } from "pairz/web";
|
|
980
|
+
import type { PickerOption } from "pairz/web";
|
|
981
|
+
import type { ReactNode } from "react";
|
|
982
|
+
import { formatsOf } from "../../../look/contract.ts";
|
|
983
|
+
import type { Visit } from "../../contract.ts";
|
|
984
|
+
import { VisitForm } from "../../lib/web/visit-form.tsx";
|
|
985
|
+
|
|
986
|
+
/** `dialog:visit`: a visit's form over the list (`_id` "new" for a new one). */
|
|
987
|
+
export const visitDialog = (
|
|
988
|
+
item: { _id: string; back: string },
|
|
989
|
+
ctx: ViewContext<ReactNode>,
|
|
990
|
+
): ReactNode => {
|
|
991
|
+
const fresh = item._id === "new";
|
|
992
|
+
const visit = fresh
|
|
993
|
+
? undefined
|
|
994
|
+
: ctx.db.collection("visit").query<Visit | null>("one", { _id: item._id });
|
|
995
|
+
// Another plugin's query, by name: visits requires customers.
|
|
996
|
+
const customers = ctx.db.collection("customer").query<PickerOption[]>("choices", {});
|
|
997
|
+
if (visit?.status === "loading" || customers.status === "loading") return null;
|
|
998
|
+
const { timeZone, dayTime } = formatsOf(ctx.resources);
|
|
999
|
+
return (
|
|
1000
|
+
<VisitForm
|
|
1001
|
+
visit={visit?.value ?? undefined}
|
|
1002
|
+
customers={customers.value}
|
|
1003
|
+
now={nowIn(timeZone, 1, undefined, true)}
|
|
1004
|
+
timeZone={timeZone}
|
|
1005
|
+
dayTimeFormat={dayTime}
|
|
1006
|
+
save={(input) => ctx.call("visit.save", fresh ? input : { ...input, _id: item._id })}
|
|
1007
|
+
close={() => go(item.back)}
|
|
1008
|
+
/>
|
|
1009
|
+
);
|
|
1010
|
+
};
|
|
1011
|
+
```
|
|
1012
|
+
|
|
1013
|
+
```tsx
|
|
1014
|
+
// plugins/visits/lib/web/visit-form.tsx
|
|
1015
|
+
import { Button, DateTimePicker, Dialog, Field, Form, Input, Picker, toast } from "pairz/web";
|
|
1016
|
+
import type { PickerOption } from "pairz/web";
|
|
1017
|
+
import { type ReactNode, useState } from "react";
|
|
1018
|
+
import type { Visit } from "../../contract.ts";
|
|
1019
|
+
|
|
1020
|
+
type Draft = { customer?: string; service: string; at: string; price: string };
|
|
1021
|
+
|
|
1022
|
+
export function VisitForm({ visit, customers, now, timeZone, dayTimeFormat, save, close }: {
|
|
1023
|
+
visit?: Visit;
|
|
1024
|
+
customers: PickerOption[];
|
|
1025
|
+
now: string;
|
|
1026
|
+
timeZone: string;
|
|
1027
|
+
dayTimeFormat: string;
|
|
1028
|
+
save(input: { customer: string; service: string; at: string; price: string }): Promise<unknown>;
|
|
1029
|
+
close(): void;
|
|
1030
|
+
}): ReactNode {
|
|
1031
|
+
const [draft, setDraft] = useState<Draft>({
|
|
1032
|
+
customer: visit?.customer,
|
|
1033
|
+
service: visit?.service ?? "",
|
|
1034
|
+
at: visit?.at ?? now, // `YYYY-MM-DD HH:mm:ss`: its seconds stay until its time is changed
|
|
1035
|
+
price: visit ? (visit.price / 100).toFixed(2) : "",
|
|
1036
|
+
});
|
|
1037
|
+
const set = (change: Partial<Draft>) => setDraft({ ...draft, ...change });
|
|
1038
|
+
return (
|
|
1039
|
+
<Dialog
|
|
1040
|
+
open
|
|
1041
|
+
onClose={close}
|
|
1042
|
+
title={visit ? "Visit" : "New visit"}
|
|
1043
|
+
placement="top"
|
|
1044
|
+
footer={<Button type="submit" form="visit" variant="primary">Save</Button>}
|
|
1045
|
+
>
|
|
1046
|
+
<Form
|
|
1047
|
+
id="visit"
|
|
1048
|
+
onSubmit={async () => {
|
|
1049
|
+
// The Action checks it all again, and its refusal's words show at the form's top.
|
|
1050
|
+
await save({
|
|
1051
|
+
customer: draft.customer ?? "",
|
|
1052
|
+
service: draft.service,
|
|
1053
|
+
at: draft.at,
|
|
1054
|
+
price: draft.price,
|
|
1055
|
+
});
|
|
1056
|
+
toast("Visit saved.", "success");
|
|
1057
|
+
close();
|
|
1058
|
+
}}
|
|
1059
|
+
>
|
|
1060
|
+
<Field layout="row" label="Customer" htmlFor="customer" required>
|
|
1061
|
+
<Picker
|
|
1062
|
+
id="customer"
|
|
1063
|
+
label="Customer"
|
|
1064
|
+
search
|
|
1065
|
+
value={draft.customer}
|
|
1066
|
+
options={customers}
|
|
1067
|
+
onChange={(customer) => set({ customer })}
|
|
1068
|
+
/>
|
|
1069
|
+
</Field>
|
|
1070
|
+
<Field layout="row" label="Service" htmlFor="service" required>
|
|
1071
|
+
<Input
|
|
1072
|
+
id="service"
|
|
1073
|
+
value={draft.service}
|
|
1074
|
+
onChange={(e) => set({ service: e.target.value })}
|
|
1075
|
+
required
|
|
1076
|
+
/>
|
|
1077
|
+
</Field>
|
|
1078
|
+
<Field layout="row" label="When" htmlFor="at" required>
|
|
1079
|
+
<DateTimePicker
|
|
1080
|
+
id="at"
|
|
1081
|
+
value={draft.at}
|
|
1082
|
+
onChange={(at) => set({ at })}
|
|
1083
|
+
timeZone={timeZone}
|
|
1084
|
+
format={dayTimeFormat}
|
|
1085
|
+
minuteStep={5}
|
|
1086
|
+
seconds
|
|
1087
|
+
/>
|
|
1088
|
+
</Field>
|
|
1089
|
+
<Field layout="row" label="Price" htmlFor="price" controlWidth="160px">
|
|
1090
|
+
<Input
|
|
1091
|
+
id="price"
|
|
1092
|
+
inputMode="decimal"
|
|
1093
|
+
value={draft.price}
|
|
1094
|
+
onChange={(e) => set({ price: e.target.value })}
|
|
1095
|
+
/>
|
|
1096
|
+
</Field>
|
|
1097
|
+
</Form>
|
|
1098
|
+
</Dialog>
|
|
1099
|
+
);
|
|
1100
|
+
}
|
|
1101
|
+
```
|
|
1102
|
+
|
|
1103
|
+
A visit is more than a save, so it keeps an Action: it checks the customer is there, copies their
|
|
1104
|
+
name onto the visit (a field the server sets, which a browser's View can't), and turns the price
|
|
1105
|
+
into cents. A record whose fields the server sets (who made it, when, a number in a sequence) keeps
|
|
1106
|
+
its Action the same way.
|
|
1107
|
+
|
|
1108
|
+
```ts
|
|
1109
|
+
// plugins/visits/actions/save.ts
|
|
1110
|
+
import { defineAction, failure, people } from "pairz";
|
|
1111
|
+
|
|
1112
|
+
const refuse = (message: string) => failure("invalid", message, { public: true });
|
|
1113
|
+
|
|
1114
|
+
/** Adds or changes a visit. Every check is here, whoever calls: the form only helps. */
|
|
1115
|
+
export const save = defineAction({
|
|
1116
|
+
input: {
|
|
1117
|
+
type: "object",
|
|
1118
|
+
properties: {
|
|
1119
|
+
_id: { type: "string" },
|
|
1120
|
+
customer: { type: "string" },
|
|
1121
|
+
service: { type: "string" },
|
|
1122
|
+
at: { type: "string" },
|
|
1123
|
+
price: { type: "string" },
|
|
1124
|
+
},
|
|
1125
|
+
required: ["customer", "service", "at", "price"],
|
|
1126
|
+
additionalProperties: false,
|
|
1127
|
+
},
|
|
1128
|
+
allow: people,
|
|
1129
|
+
run: async (ctx, { _id, customer, service, at, price }) => {
|
|
1130
|
+
const who = await ctx.db.collection<{ name: string }>("customer").findOne({ _id: customer });
|
|
1131
|
+
if (!who) throw refuse("Choose the customer.");
|
|
1132
|
+
if (!service.trim()) throw refuse("Say what the visit was for.");
|
|
1133
|
+
if (!/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(at)) {
|
|
1134
|
+
throw refuse("Give the visit's day and time.");
|
|
1135
|
+
}
|
|
1136
|
+
if (!/^\d+(\.\d{1,2})?$/.test(price)) {
|
|
1137
|
+
throw refuse("Give the price as a number, such as 25.50.");
|
|
1138
|
+
}
|
|
1139
|
+
const [units, hundredths = ""] = price.split(".");
|
|
1140
|
+
const fields = {
|
|
1141
|
+
customer,
|
|
1142
|
+
name: who.name,
|
|
1143
|
+
service: service.trim(),
|
|
1144
|
+
at,
|
|
1145
|
+
price: Number(units) * 100 + Number(hundredths.padEnd(2, "0")),
|
|
1146
|
+
};
|
|
1147
|
+
const visits = ctx.db.collection("visit");
|
|
1148
|
+
if (_id) {
|
|
1149
|
+
await visits.updateOne({ _id }, { $set: fields });
|
|
1150
|
+
return { visit: _id };
|
|
1151
|
+
}
|
|
1152
|
+
const { insertedId } = await visits.insertOne(fields);
|
|
1153
|
+
return { visit: insertedId };
|
|
1154
|
+
},
|
|
1155
|
+
});
|
|
1156
|
+
```
|
|
1157
|
+
|
|
1158
|
+
```ts
|
|
1159
|
+
// plugins/visits/mod.ts
|
|
1160
|
+
import { definePlugin, type Plugin } from "pairz";
|
|
1161
|
+
import { save } from "./actions/save.ts";
|
|
1162
|
+
import { between, ofCustomer, one } from "./queries.ts";
|
|
1163
|
+
|
|
1164
|
+
export const visits: Plugin = definePlugin({
|
|
1165
|
+
name: "visits",
|
|
1166
|
+
requires: ["customers"],
|
|
1167
|
+
collections: {
|
|
1168
|
+
visit: {
|
|
1169
|
+
schema: {
|
|
1170
|
+
type: "object",
|
|
1171
|
+
properties: {
|
|
1172
|
+
customer: { type: "string" },
|
|
1173
|
+
name: { type: "string" },
|
|
1174
|
+
service: { type: "string" },
|
|
1175
|
+
at: { type: "string" },
|
|
1176
|
+
price: { type: "integer" },
|
|
1177
|
+
},
|
|
1178
|
+
required: ["customer", "name", "service", "at", "price"],
|
|
1179
|
+
},
|
|
1180
|
+
indexes: [["customer"], ["at"]],
|
|
1181
|
+
queries: { between, ofCustomer, one },
|
|
1182
|
+
},
|
|
1183
|
+
},
|
|
1184
|
+
actions: { "visit.save": save },
|
|
1185
|
+
});
|
|
1186
|
+
```
|
|
1187
|
+
|
|
1188
|
+
- **`DatePicker`** picks a day; **`DateRangePicker`** a range, with presets (`presets`, or
|
|
1189
|
+
`rangePresets(today, { keys, fiscalYearStart, min, max })`) and the range's From and To typed over
|
|
1190
|
+
its months. Give `format` as a pattern where people type: a function can't be read back.
|
|
1191
|
+
- **`DateTimePicker`** picks a day and a time. A stored value's seconds stay until its time is
|
|
1192
|
+
changed, so saving a record unchanged keeps them; `seconds` shows them in a field of their own,
|
|
1193
|
+
and the value then always has them.
|
|
1194
|
+
- **`DateRangePicker` with `time`** gives each end a time (`00:00` to `23:59` for a preset). A
|
|
1195
|
+
stored time with seconds sorts after its minute, so compare it with an end to the minute:
|
|
1196
|
+
`at.slice(0, 16) <= range.end`.
|
|
1197
|
+
- **`DateRangePicker` with `seconds`** takes each end to the second (`00:00:00` to `23:59:59` for a
|
|
1198
|
+
preset), typed whole in From and To and read back by the pattern it's shown in
|
|
1199
|
+
([date ranges with seconds](the-web-toolkit.md#date-ranges-with-seconds)).
|
|
1200
|
+
- **Days compare as text** in the store (`$gte`, `$lte`), since `YYYY-MM-DD` sorts as it reads.
|
|
1201
|
+
|
|
1202
|
+
## Sign-in
|
|
1203
|
+
|
|
1204
|
+
Signing in is Pairz's own page, in the app's look and words: `passwordSignIn` for staff who sign in
|
|
1205
|
+
with a username (in `app.ts` above), `emailSignIn` for people with an address. The page takes the
|
|
1206
|
+
theme (`theme: themeOf([look])` on the server), and its words (`words`, by the keys of
|
|
1207
|
+
`SIGN_IN_WORDS`) and the pitch beside its form (`about`) from the `signInPage` resource of the
|
|
1208
|
+
browser's plugins (the look's). Staff accounts are made by an Action of the app's that calls
|
|
1209
|
+
`password.set`, for whoever it lets manage staff: see
|
|
1210
|
+
[signing in](serving-on-the-web.md#signing-in).
|
|
1211
|
+
|
|
1212
|
+
Don't write a sign-in route or a session cookie of your own. A page someone sees before signing in
|
|
1213
|
+
(a notice, an operator's import) is a route's page, `routePage` from `pairz/web/server`, laid out as
|
|
1214
|
+
a `Screen`: it centres a card in the window and keeps a footer at its foot (see
|
|
1215
|
+
[a page that is the whole window](the-web-toolkit.md#laying-out-a-screen)). No script runs there:
|
|
1216
|
+
its links and forms that post are what work.
|
|
1217
|
+
|
|
1218
|
+
## A printed document
|
|
1219
|
+
|
|
1220
|
+
An invoice, a receipt or a ticket is a screen like any other, at its own address, and the browser
|
|
1221
|
+
prints it:
|
|
1222
|
+
|
|
1223
|
+
```tsx
|
|
1224
|
+
// plugins/visits/views/web/invoice-screen.tsx
|
|
1225
|
+
import type { ViewContext } from "pairz";
|
|
1226
|
+
import {
|
|
1227
|
+
Barcode,
|
|
1228
|
+
Button,
|
|
1229
|
+
DetailList,
|
|
1230
|
+
formatDayTime,
|
|
1231
|
+
NoPrint,
|
|
1232
|
+
Page,
|
|
1233
|
+
PrintOnly,
|
|
1234
|
+
Stack,
|
|
1235
|
+
Text,
|
|
1236
|
+
} from "pairz/web";
|
|
1237
|
+
import type { Where } from "pairz/web";
|
|
1238
|
+
import type { ReactNode } from "react";
|
|
1239
|
+
import { formatsOf } from "../../../look/contract.ts";
|
|
1240
|
+
import type { Visit } from "../../contract.ts";
|
|
1241
|
+
|
|
1242
|
+
/** A printed invoice's own layout: the one place an app writes CSS, and only for paper. */
|
|
1243
|
+
const PAPER = "@media print { @page { size: 80mm auto; margin: 4mm; } }";
|
|
1244
|
+
|
|
1245
|
+
/** `screen:invoice`, at `/invoice/<visit>`: the visit's invoice, to print. */
|
|
1246
|
+
export const invoiceScreen = (where: Where, ctx: ViewContext<ReactNode>): ReactNode => {
|
|
1247
|
+
const [, id] = where.path.split("/").filter(Boolean);
|
|
1248
|
+
const visit = ctx.db.collection("visit").query<Visit | null>("one", { _id: id ?? "" });
|
|
1249
|
+
if (visit.status === "loading") return null;
|
|
1250
|
+
if (!visit.value) return <Page title="No such visit">{null}</Page>;
|
|
1251
|
+
const v = visit.value;
|
|
1252
|
+
const { dayTime } = formatsOf(ctx.resources);
|
|
1253
|
+
return (
|
|
1254
|
+
<Page
|
|
1255
|
+
title={`Invoice ${v._id}`}
|
|
1256
|
+
actions={
|
|
1257
|
+
<NoPrint>
|
|
1258
|
+
<Button icon="file" onClick={() => print()}>Print</Button>
|
|
1259
|
+
</NoPrint>
|
|
1260
|
+
}
|
|
1261
|
+
>
|
|
1262
|
+
<style href="invoice-paper" precedence="default">{PAPER}</style>
|
|
1263
|
+
<Stack gap="md">
|
|
1264
|
+
<PrintOnly>
|
|
1265
|
+
<Text weight="bold" align="center">The salon</Text>
|
|
1266
|
+
</PrintOnly>
|
|
1267
|
+
<DetailList
|
|
1268
|
+
item={{
|
|
1269
|
+
When: formatDayTime(v.at, dayTime),
|
|
1270
|
+
Customer: v.name,
|
|
1271
|
+
Service: v.service,
|
|
1272
|
+
Total: (v.price / 100).toFixed(2),
|
|
1273
|
+
}}
|
|
1274
|
+
/>
|
|
1275
|
+
<Barcode value={`VISIT ${v._id}`} caption height={48} />
|
|
1276
|
+
</Stack>
|
|
1277
|
+
</Page>
|
|
1278
|
+
);
|
|
1279
|
+
};
|
|
1280
|
+
```
|
|
1281
|
+
|
|
1282
|
+
- A printed page leaves out the frame's bars, buttons, toasts and a `Page`'s header (`printHeader`
|
|
1283
|
+
keeps it). `NoPrint` marks more of the screen to leave out, and `PrintOnly` what only paper shows.
|
|
1284
|
+
- `Barcode` draws Code 128, black on white.
|
|
1285
|
+
- The paper's own layout (a receipt's width, an invoice's margins) is the one place an app writes
|
|
1286
|
+
CSS: `@media print` rules, beside the document. Nothing else.
|
|
1287
|
+
- The same document as a PDF on a server (to e-mail it) is `documentPdf` from `pairz/web/export`:
|
|
1288
|
+
see [PDFs on a server](the-web-toolkit.md#pdfs-on-a-server).
|
|
1289
|
+
|
|
1290
|
+
## Keyboard shortcuts
|
|
1291
|
+
|
|
1292
|
+
A screen's keys are `useShortcuts` in one of its components (the visits board above:
|
|
1293
|
+
`{ "Alt+N": add }`), bound while the screen is shown. A key waits while someone types in a field,
|
|
1294
|
+
unless it says `inFields`, and while a dialog or a popover is open over the screen, unless the
|
|
1295
|
+
screen is in it (`within`). `shortcutLabel("Alt+N")` writes it as the keyboard does, in a `Kbd`.
|
|
1296
|
+
Don't add `keydown` listeners to the document.
|
|
1297
|
+
|
|
1298
|
+
## Files and pictures
|
|
1299
|
+
|
|
1300
|
+
`FileInput` is the field: the browser's file field drawn as the toolkit's, with its own words
|
|
1301
|
+
(`chooseLabel`, `changeLabel`, `removeLabel`), a file already stored (`current`, removed by
|
|
1302
|
+
`onRemove`), and files dropped on it. A picture chosen but not yet sent shows in an `Avatar` from a
|
|
1303
|
+
`blob:` address (`URL.createObjectURL`), with `initial={false}` for an empty box when there's none.
|
|
1304
|
+
Sending it is the Action's: the form reads the file as a `data:` address and passes it in the input.
|
|
1305
|
+
|
|
1306
|
+
The picture is private (only trusted code reads or writes it, and no event holds it), so a service
|
|
1307
|
+
is saved by an Action, which outsiders' writes, a View's included, can't do.
|
|
1308
|
+
|
|
1309
|
+
```ts
|
|
1310
|
+
// plugins/services/actions/save.ts
|
|
1311
|
+
import { defineAction, failure, people } from "pairz";
|
|
1312
|
+
|
|
1313
|
+
/** A picture as the form sends it: a PNG, JPEG or WebP `data:` address, 1 MB or so at most. */
|
|
1314
|
+
const PICTURE = /^data:image\/(png|jpeg|webp);base64,[A-Za-z0-9+/]+=*$/;
|
|
1315
|
+
|
|
1316
|
+
export const save = defineAction({
|
|
1317
|
+
input: {
|
|
1318
|
+
type: "object",
|
|
1319
|
+
properties: {
|
|
1320
|
+
_id: { type: "string" },
|
|
1321
|
+
name: { type: "string" },
|
|
1322
|
+
// `null` takes the picture away; left out, it stays as it is.
|
|
1323
|
+
picture: { type: ["string", "null"], maxLength: 1_400_000 },
|
|
1324
|
+
},
|
|
1325
|
+
required: ["name"],
|
|
1326
|
+
additionalProperties: false,
|
|
1327
|
+
},
|
|
1328
|
+
// The picture is kept in the service, not again in the call's record.
|
|
1329
|
+
private: ["picture"],
|
|
1330
|
+
allow: people,
|
|
1331
|
+
run: async (ctx, { _id, name, picture }) => {
|
|
1332
|
+
if (!name.trim()) throw failure("invalid", "Give the service a name.", { public: true });
|
|
1333
|
+
if (picture && !PICTURE.test(picture)) {
|
|
1334
|
+
throw failure("invalid", "The picture must be a PNG, JPEG or WebP image.", { public: true });
|
|
1335
|
+
}
|
|
1336
|
+
const services = ctx.db.collection("service");
|
|
1337
|
+
const fields = { name: name.trim(), ...(picture !== undefined ? { picture } : {}) };
|
|
1338
|
+
if (_id) {
|
|
1339
|
+
await services.updateOne({ _id }, { $set: fields });
|
|
1340
|
+
return { service: _id };
|
|
1341
|
+
}
|
|
1342
|
+
const { insertedId } = await services.insertOne(fields);
|
|
1343
|
+
return { service: insertedId };
|
|
1344
|
+
},
|
|
1345
|
+
});
|
|
1346
|
+
```
|
|
1347
|
+
|
|
1348
|
+
```tsx
|
|
1349
|
+
// plugins/services/lib/web/service-form.tsx
|
|
1350
|
+
import { Avatar, Button, Dialog, Field, FileInput, Form, Input, Stack, toast } from "pairz/web";
|
|
1351
|
+
import { type ReactNode, useEffect, useState } from "react";
|
|
1352
|
+
|
|
1353
|
+
type Service = { _id: string; name: string; picture?: string };
|
|
1354
|
+
|
|
1355
|
+
/** A file as a `data:` address, for an Action's input. */
|
|
1356
|
+
const dataOf = (file: File) =>
|
|
1357
|
+
new Promise<string>((done, failed) => {
|
|
1358
|
+
const reader = new FileReader();
|
|
1359
|
+
reader.onload = () => done(String(reader.result));
|
|
1360
|
+
reader.onerror = () => failed(reader.error);
|
|
1361
|
+
reader.readAsDataURL(file);
|
|
1362
|
+
});
|
|
1363
|
+
|
|
1364
|
+
export function ServiceForm({ service, save, close }: {
|
|
1365
|
+
service?: Service;
|
|
1366
|
+
save(input: { name: string; picture?: string | null }): Promise<unknown>;
|
|
1367
|
+
close(): void;
|
|
1368
|
+
}): ReactNode {
|
|
1369
|
+
const [file, setFile] = useState<File>();
|
|
1370
|
+
const [removed, setRemoved] = useState(false);
|
|
1371
|
+
// A picture chosen but not yet sent shows from a `blob:` address, let go once it's replaced.
|
|
1372
|
+
const [preview, setPreview] = useState<string>();
|
|
1373
|
+
useEffect(() => {
|
|
1374
|
+
if (!file) return setPreview(undefined);
|
|
1375
|
+
const url = URL.createObjectURL(file);
|
|
1376
|
+
setPreview(url);
|
|
1377
|
+
return () => URL.revokeObjectURL(url);
|
|
1378
|
+
}, [file]);
|
|
1379
|
+
const shown = preview ?? (removed ? undefined : service?.picture);
|
|
1380
|
+
return (
|
|
1381
|
+
<Dialog
|
|
1382
|
+
open
|
|
1383
|
+
onClose={close}
|
|
1384
|
+
title={service ? service.name : "New service"}
|
|
1385
|
+
placement="top"
|
|
1386
|
+
footer={<Button type="submit" form="service" variant="primary">Save</Button>}
|
|
1387
|
+
>
|
|
1388
|
+
<Form
|
|
1389
|
+
id="service"
|
|
1390
|
+
onSubmit={async (_values, form) => {
|
|
1391
|
+
const name = String(new FormData(form).get("name") ?? "");
|
|
1392
|
+
const picture = file ? await dataOf(file) : removed ? null : undefined;
|
|
1393
|
+
await save({ name, ...(picture !== undefined ? { picture } : {}) });
|
|
1394
|
+
toast("Service saved.", "success");
|
|
1395
|
+
close();
|
|
1396
|
+
}}
|
|
1397
|
+
>
|
|
1398
|
+
<Field layout="row" label="Name" htmlFor="name" required>
|
|
1399
|
+
<Input id="name" name="name" defaultValue={service?.name} required />
|
|
1400
|
+
</Field>
|
|
1401
|
+
<Field layout="row" label="Picture" htmlFor="picture">
|
|
1402
|
+
<Stack gap="sm">
|
|
1403
|
+
<FileInput
|
|
1404
|
+
id="picture"
|
|
1405
|
+
accept="image/png,image/jpeg,image/webp"
|
|
1406
|
+
chooseLabel="Choose a picture"
|
|
1407
|
+
changeLabel="Change picture"
|
|
1408
|
+
removeLabel="Remove picture"
|
|
1409
|
+
current={service?.picture && !removed ? "Current picture" : undefined}
|
|
1410
|
+
onChange={(files) => setFile(files[0])}
|
|
1411
|
+
onRemove={() => {
|
|
1412
|
+
setFile(undefined);
|
|
1413
|
+
setRemoved(true);
|
|
1414
|
+
}}
|
|
1415
|
+
/>
|
|
1416
|
+
<Avatar
|
|
1417
|
+
name={service?.name ?? "New service"}
|
|
1418
|
+
picture={shown}
|
|
1419
|
+
initial={false}
|
|
1420
|
+
size={64}
|
|
1421
|
+
/>
|
|
1422
|
+
</Stack>
|
|
1423
|
+
</Field>
|
|
1424
|
+
</Form>
|
|
1425
|
+
</Dialog>
|
|
1426
|
+
);
|
|
1427
|
+
}
|
|
1428
|
+
```
|
|
1429
|
+
|
|
1430
|
+
- **The file field comes first** in the control's column, the preview under it: a row `Field`'s
|
|
1431
|
+
label lines up with the first line of text beside it.
|
|
1432
|
+
- **`private: ["picture"]`** keeps the picture out of the call's record: its `action.started` holds
|
|
1433
|
+
the rest of the input. The service keeps it, and so does the record of the service's changes: a
|
|
1434
|
+
string over 16 KiB is a blob, stored once by the hash of its content, and the document and each of
|
|
1435
|
+
its events hold a small reference to it. Reads load it whole.
|
|
1436
|
+
- **A picture replaced or taken away isn't erased.** Nothing deletes a blob: it stays where blobs
|
|
1437
|
+
live, and the service's earlier events still refer to it.
|
|
1438
|
+
- **A file to import** (a CSV of customers) is read in the browser, its rows checked and sent to one
|
|
1439
|
+
Action that saves them in one `ctx.transaction`.
|
|
1440
|
+
|
|
1441
|
+
### Pictures in a list
|
|
1442
|
+
|
|
1443
|
+
A list reads names, not pictures. Its query leaves the picture out, so no blob is even read, and
|
|
1444
|
+
each row shows the picture from a route of the plugin's, which checks who asks, then reads it with
|
|
1445
|
+
`runtime.bytes`:
|
|
1446
|
+
|
|
1447
|
+
```ts
|
|
1448
|
+
// plugins/services/queries.ts
|
|
1449
|
+
import { people } from "pairz";
|
|
1450
|
+
import type { QueryDef } from "pairz";
|
|
1451
|
+
|
|
1452
|
+
type Service = { _id: string; name: string; picture?: string };
|
|
1453
|
+
|
|
1454
|
+
/** `service.list`: every service, its picture left out. */
|
|
1455
|
+
export const list: QueryDef<Service> = {
|
|
1456
|
+
allow: people,
|
|
1457
|
+
run: (services) => services.find({}, { sort: { name: 1 }, projection: { picture: 0 } }),
|
|
1458
|
+
};
|
|
1459
|
+
```
|
|
1460
|
+
|
|
1461
|
+
```ts
|
|
1462
|
+
// plugins/services/routes.ts
|
|
1463
|
+
import { people, type Route } from "pairz";
|
|
1464
|
+
|
|
1465
|
+
/** A picture as the Action keeps it: a PNG, JPEG, GIF or WebP `data:` address. */
|
|
1466
|
+
const PICTURE = /^data:(image\/(?:png|jpeg|gif|webp));base64,(.+)$/;
|
|
1467
|
+
|
|
1468
|
+
/** `GET /pictures/<id>`: a service's picture, to whom the list's query lets in. */
|
|
1469
|
+
export const picture: Route = async (_request, { runtime, actor, params }) => {
|
|
1470
|
+
const none = new Response("Not found", { status: 404 });
|
|
1471
|
+
if (!people(actor)) return none;
|
|
1472
|
+
// No rule speaks for "service", so it's read as the system, now the route has let them in.
|
|
1473
|
+
const kept = await runtime.bytes("service", { _id: params.id }, "picture");
|
|
1474
|
+
if (!kept) return none;
|
|
1475
|
+
const text = new TextDecoder().decode(await kept.read(0, kept.size));
|
|
1476
|
+
const [, type, base64] = PICTURE.exec(text) ?? [];
|
|
1477
|
+
if (!base64) return none;
|
|
1478
|
+
const body = Uint8Array.from(atob(base64), (c) => c.charCodeAt(0));
|
|
1479
|
+
return new Response(body, {
|
|
1480
|
+
headers: {
|
|
1481
|
+
"content-type": type,
|
|
1482
|
+
// Never read as anything but the image it says it is.
|
|
1483
|
+
"x-content-type-options": "nosniff",
|
|
1484
|
+
// A changed picture keeps its address: the browser asks again, and nothing shared keeps it.
|
|
1485
|
+
"cache-control": "private, no-cache",
|
|
1486
|
+
},
|
|
1487
|
+
});
|
|
1488
|
+
};
|
|
1489
|
+
```
|
|
1490
|
+
|
|
1491
|
+
```ts
|
|
1492
|
+
// plugins/services/mod.ts
|
|
1493
|
+
import { definePlugin, type Plugin } from "pairz";
|
|
1494
|
+
import { save } from "./actions/save.ts";
|
|
1495
|
+
import { list } from "./queries.ts";
|
|
1496
|
+
import { picture } from "./routes.ts";
|
|
1497
|
+
|
|
1498
|
+
export const services: Plugin = definePlugin({
|
|
1499
|
+
name: "services",
|
|
1500
|
+
collections: {
|
|
1501
|
+
service: {
|
|
1502
|
+
schema: {
|
|
1503
|
+
type: "object",
|
|
1504
|
+
properties: { name: { type: "string" }, picture: { type: "string" } },
|
|
1505
|
+
required: ["name"],
|
|
1506
|
+
},
|
|
1507
|
+
queries: { list },
|
|
1508
|
+
},
|
|
1509
|
+
},
|
|
1510
|
+
actions: { "service.save": save },
|
|
1511
|
+
routes: { "/pictures/:id": picture },
|
|
1512
|
+
});
|
|
1513
|
+
```
|
|
1514
|
+
|
|
1515
|
+
```tsx
|
|
1516
|
+
// plugins/services/views/web/services-screen.tsx
|
|
1517
|
+
import type { ViewContext } from "pairz";
|
|
1518
|
+
import { Avatar, DataTable, Page } from "pairz/web";
|
|
1519
|
+
import type { Column, Where } from "pairz/web";
|
|
1520
|
+
import type { ReactNode } from "react";
|
|
1521
|
+
|
|
1522
|
+
/** A service as the list reads it: no picture. */
|
|
1523
|
+
type Listed = { _id: string; name: string };
|
|
1524
|
+
|
|
1525
|
+
const columns: Column<Listed>[] = [
|
|
1526
|
+
{
|
|
1527
|
+
key: "picture",
|
|
1528
|
+
title: "",
|
|
1529
|
+
label: "Picture",
|
|
1530
|
+
// Fetched as any image is: the initial shows until it loads, and when there's none.
|
|
1531
|
+
render: (s) => <Avatar name={s.name} picture={`/pictures/${s._id}`} size={32} />,
|
|
1532
|
+
},
|
|
1533
|
+
{ key: "name", title: "Name" },
|
|
1534
|
+
];
|
|
1535
|
+
|
|
1536
|
+
/** `screen:services`, at `/services`: every service, with its picture. */
|
|
1537
|
+
export const servicesScreen = (_where: Where, ctx: ViewContext<ReactNode>): ReactNode => {
|
|
1538
|
+
const found = ctx.db.collection("service").query<Listed[]>("list", {});
|
|
1539
|
+
return (
|
|
1540
|
+
<Page title="Services" width="lg">
|
|
1541
|
+
<DataTable
|
|
1542
|
+
label="Services"
|
|
1543
|
+
columns={columns}
|
|
1544
|
+
rows={found.value ?? []}
|
|
1545
|
+
loading={found.status === "loading"}
|
|
1546
|
+
rowKey={(s) => s._id}
|
|
1547
|
+
/>
|
|
1548
|
+
</Page>
|
|
1549
|
+
);
|
|
1550
|
+
};
|
|
1551
|
+
```
|
|
1552
|
+
|
|
1553
|
+
- **Check who asks before reading.** A route is trusted code: it decides who gets in, as a query's
|
|
1554
|
+
`allow` does. `runtime.bytes` with `{ actor }` then reads under the rules, and only a collection a
|
|
1555
|
+
rule speaks for (`shared`, a `guard`): elsewhere it's refused (`forbidden`), since no rule would
|
|
1556
|
+
narrow what they reach. `service` has none, so the route reads it as the system once `people` let
|
|
1557
|
+
them in, as the list's query reads it for them. A collection in `shared` is read as the actor
|
|
1558
|
+
instead, so the rules decide which of its documents they reach (out of reach: none, a 404).
|
|
1559
|
+
- **`Avatar`** takes a path on the app's own origin, and the browser sends the session's cookie with
|
|
1560
|
+
it. A picture that fails to load (none, or out of reach: a 404 alike) shows the initial.
|
|
1561
|
+
- **A file of more than a few MB** (a PDF, a scan) goes in a call of its own, since a call carries
|
|
1562
|
+
at most 16 MiB, and is better kept as plain base64 beside its name and type, then streamed:
|
|
1563
|
+
`kept.read(start, end)` hands over a part at a time (the owner loads the blob once), and each four
|
|
1564
|
+
base64 characters decode on their own. Chat does so: `chat.attach` takes one file a call,
|
|
1565
|
+
unrecorded, and `/files/<id>` streams it, with ranges.
|
|
1566
|
+
|
|
1567
|
+
## When the toolkit lacks something
|
|
1568
|
+
|
|
1569
|
+
Compose the toolkit's pieces first: `Grid` and `Stack` place anything, `Card` and `ListGroup` make
|
|
1570
|
+
panels and lists, `RowsEditor` edits repeating rows, `Picker search` is a choice from a long list,
|
|
1571
|
+
`Split` sets a main column beside a summary, `Tabs` and `Menu` the rest. What several screens share
|
|
1572
|
+
is a component of the app's own in `lib/`, made of those pieces
|
|
1573
|
+
([shared UI](#shared-ui-an-apps-own-components)). If a screen still needs what no piece or token
|
|
1574
|
+
does, it's a gap: say what's missing in the smallest example, and keep the screen to the toolkit
|
|
1575
|
+
until it's there. Don't restyle the toolkit (a stylesheet of the app's own, overrides of `.pairz-*`
|
|
1576
|
+
classes), or copy a workaround written for an older release without checking this one: rc.54 has
|
|
1577
|
+
`Screen`, typed range ends, seconds in day-times, `hidden` on layout pieces, fields that fit table
|
|
1578
|
+
cells, `detailOpen`, `Toolbar grow`, a file field's own words and previews.
|
|
1579
|
+
|
|
1580
|
+
## Related
|
|
1581
|
+
|
|
1582
|
+
- [The web toolkit](the-web-toolkit.md): every piece, prop and token.
|
|
1583
|
+
- [Serving on the web](serving-on-the-web.md): the page, routes, sign-in and its words.
|
|
1584
|
+
- [Getting Started, chapter 3](../getting-started/03-its-own-web-page.md): a React View, tested by
|
|
1585
|
+
pressing its buttons.
|
|
1586
|
+
- [Views](../architecture/views.md): how Views run, and parts.
|