@yaks/platform 0.0.0-stage → 0.2.36
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/LICENSE +202 -0
- package/README.md +261 -2
- package/_client-blobs.js +7 -0
- package/_client-error.js +70 -0
- package/_client-modal.js +3 -0
- package/_client-replica.js +5 -0
- package/_client-review.js +1 -0
- package/_client-schema.js +1 -0
- package/_client-vault.js +31 -0
- package/_edit-query.js +1 -0
- package/_uploads.js +4 -0
- package/account-browser.js +67 -0
- package/account-browser.js.map +1 -0
- package/account-browser.ts +87 -0
- package/account-rows.js +130 -0
- package/account-rows.js.map +1 -0
- package/account-rows.ts +237 -0
- package/admin-visits-view.js +65 -0
- package/admin-visits-view.js.map +1 -0
- package/admin-visits-view.ts +120 -0
- package/admin-visits.js +143 -0
- package/admin-visits.js.map +1 -0
- package/admin-visits.ts +211 -0
- package/admit-graph.js +8 -0
- package/admit-graph.js.map +1 -0
- package/admit-graph.ts +10 -0
- package/agent-guide.js +368 -0
- package/agent-guide.js.map +1 -0
- package/agent-guide.ts +450 -0
- package/agents-browser.js +143 -0
- package/agents-browser.js.map +1 -0
- package/agents-browser.ts +141 -0
- package/agents-view.js +129 -0
- package/agents-view.js.map +1 -0
- package/agents-view.ts +236 -0
- package/agents.js +148 -0
- package/agents.js.map +1 -0
- package/agents.ts +150 -0
- package/app-actions.js +56 -0
- package/app-actions.js.map +1 -0
- package/app-actions.ts +61 -0
- package/app-authority.js +280 -0
- package/app-authority.js.map +1 -0
- package/app-authority.ts +356 -0
- package/app-canvas-browser.js +308 -0
- package/app-canvas-browser.js.map +1 -0
- package/app-canvas-browser.ts +377 -0
- package/app-canvas-view.js +244 -0
- package/app-canvas-view.js.map +1 -0
- package/app-canvas-view.ts +399 -0
- package/app-canvas.js +87 -0
- package/app-canvas.js.map +1 -0
- package/app-canvas.ts +170 -0
- package/app-client.js +521 -0
- package/app-client.js.map +1 -0
- package/app-client.ts +562 -0
- package/app-command.js +108 -0
- package/app-command.js.map +1 -0
- package/app-command.ts +155 -0
- package/app-commands.js +334 -0
- package/app-commands.js.map +1 -0
- package/app-commands.ts +379 -0
- package/app-decision.js +69 -0
- package/app-decision.js.map +1 -0
- package/app-decision.ts +61 -0
- package/app-effects.js +43 -0
- package/app-effects.js.map +1 -0
- package/app-effects.ts +53 -0
- package/app-file.js +252 -0
- package/app-file.js.map +1 -0
- package/app-file.ts +362 -0
- package/app-friends.js +60 -0
- package/app-friends.js.map +1 -0
- package/app-friends.ts +81 -0
- package/app-graph.js +9 -0
- package/app-graph.js.map +1 -0
- package/app-graph.ts +9 -0
- package/app-icon.js +59 -0
- package/app-icon.js.map +1 -0
- package/app-icon.ts +121 -0
- package/app-made.js +164 -0
- package/app-made.js.map +1 -0
- package/app-made.ts +306 -0
- package/app-outbound.js +72 -0
- package/app-outbound.js.map +1 -0
- package/app-outbound.ts +109 -0
- package/app-outbox.js +42 -0
- package/app-outbox.js.map +1 -0
- package/app-outbox.ts +46 -0
- package/app-patch.js +75 -0
- package/app-patch.js.map +1 -0
- package/app-patch.ts +106 -0
- package/app-read.js +101 -0
- package/app-read.js.map +1 -0
- package/app-read.ts +126 -0
- package/app-role-tools.js +232 -0
- package/app-role-tools.js.map +1 -0
- package/app-role-tools.ts +258 -0
- package/app-roles.js +91 -0
- package/app-roles.js.map +1 -0
- package/app-roles.ts +76 -0
- package/app-session-access.js +109 -0
- package/app-session-access.js.map +1 -0
- package/app-session-access.ts +145 -0
- package/app-starter.js +109 -0
- package/app-starter.js.map +1 -0
- package/app-starter.ts +123 -0
- package/app-storage.js +38 -0
- package/app-storage.js.map +1 -0
- package/app-storage.ts +54 -0
- package/app-style-guide.js +138 -0
- package/app-style-guide.js.map +1 -0
- package/app-style-guide.ts +195 -0
- package/app-subs.js +89 -0
- package/app-subs.js.map +1 -0
- package/app-subs.ts +110 -0
- package/app-tests.js +54 -0
- package/app-tests.js.map +1 -0
- package/app-tests.ts +56 -0
- package/app-tile.js +209 -0
- package/app-tile.js.map +1 -0
- package/app-tile.ts +227 -0
- package/app-transfer.js +188 -0
- package/app-transfer.js.map +1 -0
- package/app-transfer.ts +281 -0
- package/app-vocab.js +52 -0
- package/app-vocab.js.map +1 -0
- package/app-vocab.ts +43 -0
- package/app-words.js +55 -0
- package/app-words.js.map +1 -0
- package/app-words.ts +73 -0
- package/app-worker.js +28 -0
- package/app-worker.js.map +1 -0
- package/app-worker.ts +38 -0
- package/app-writes.js +132 -0
- package/app-writes.js.map +1 -0
- package/app-writes.ts +128 -0
- package/asset-bytes.js +57 -0
- package/asset-bytes.js.map +1 -0
- package/asset-bytes.ts +90 -0
- package/asset-response.js +28 -0
- package/asset-response.js.map +1 -0
- package/asset-response.ts +46 -0
- package/asset-url.js +556 -0
- package/asset-url.js.map +1 -0
- package/asset-url.ts +774 -0
- package/attribution-vocab.js +14 -0
- package/attribution-vocab.js.map +1 -0
- package/attribution-vocab.ts +11 -0
- package/authorship-graph.js +8 -0
- package/authorship-graph.js.map +1 -0
- package/authorship-graph.ts +10 -0
- package/badge.js +98 -0
- package/blob-images.js +206 -0
- package/blob-images.js.map +1 -0
- package/blob-images.ts +323 -0
- package/blob-posters.js +125 -0
- package/blob-posters.js.map +1 -0
- package/blob-posters.ts +207 -0
- package/blob-routes.js +14 -0
- package/blob-routes.js.map +1 -0
- package/blob-routes.ts +25 -0
- package/bots.js +77 -0
- package/bots.js.map +1 -0
- package/bots.ts +93 -0
- package/browser-mockup.js +81 -0
- package/browser-mockup.js.map +1 -0
- package/browser-mockup.ts +105 -0
- package/browser-record.js +55 -0
- package/browser-record.js.map +1 -0
- package/browser-record.ts +66 -0
- package/browser-scroll.js +90 -0
- package/browser-scroll.js.map +1 -0
- package/browser-scroll.ts +108 -0
- package/browser-stream.js +79 -0
- package/browser-stream.js.map +1 -0
- package/browser-stream.ts +84 -0
- package/browser-trace.js +252 -0
- package/browser-trace.js.map +1 -0
- package/browser-trace.ts +330 -0
- package/browser-viewer.js +236 -0
- package/browser-viewer.js.map +1 -0
- package/browser-viewer.ts +233 -0
- package/browser-visit.js +1522 -0
- package/browser-visit.js.map +1 -0
- package/browser-visit.ts +2179 -0
- package/browser-wire.js +242 -0
- package/browser-wire.js.map +1 -0
- package/browser-wire.ts +262 -0
- package/budget.js +17 -0
- package/budget.js.map +1 -0
- package/budget.ts +42 -0
- package/cli.js +52 -0
- package/cli.js.map +1 -0
- package/cli.ts +55 -0
- package/client-modules.js +24 -0
- package/client-modules.js.map +1 -0
- package/client-modules.ts +24 -0
- package/client-routes.js +83 -0
- package/client-routes.js.map +1 -0
- package/client-routes.ts +104 -0
- package/client-words.js +62 -0
- package/client-words.js.map +1 -0
- package/client-words.ts +77 -0
- package/client.js +709 -0
- package/comp.js +2 -0
- package/comp.js.map +1 -0
- package/comp.ts +15 -0
- package/config.js +497 -0
- package/config.js.map +1 -0
- package/config.ts +287 -0
- package/connect-parts.js +107 -0
- package/connect-parts.js.map +1 -0
- package/connect-parts.ts +165 -0
- package/connected-activity-browser.js +301 -0
- package/connected-activity-browser.js.map +1 -0
- package/connected-activity-browser.ts +341 -0
- package/connected-activity-view.js +55 -0
- package/connected-activity-view.js.map +1 -0
- package/connected-activity-view.ts +81 -0
- package/connected-activity-wire.js +165 -0
- package/connected-activity-wire.js.map +1 -0
- package/connected-activity-wire.ts +171 -0
- package/connected-activity.css +156 -0
- package/connected-activity.js +185 -0
- package/connected-activity.js.map +1 -0
- package/connected-activity.ts +278 -0
- package/connection-icon-browser.js +50 -0
- package/connection-icon-browser.js.map +1 -0
- package/connection-icon-browser.ts +52 -0
- package/connections-browser.js +393 -0
- package/connections-browser.js.map +1 -0
- package/connections-browser.ts +465 -0
- package/connections-page.js +178 -0
- package/connections-page.js.map +1 -0
- package/connections-page.ts +461 -0
- package/connections-view.js +1215 -0
- package/connections-view.js.map +1 -0
- package/connections-view.ts +2239 -0
- package/connector-upload.js +94 -0
- package/connector-upload.js.map +1 -0
- package/connector-upload.ts +146 -0
- package/consent.js +2 -0
- package/consent.js.map +1 -0
- package/consent.ts +3 -0
- package/cookie.js +53 -0
- package/cookie.js.map +1 -0
- package/cookie.ts +75 -0
- package/copy.js +104 -0
- package/corner.js +226 -0
- package/credential-draft-move.js +154 -0
- package/credential-draft-move.js.map +1 -0
- package/credential-draft-move.ts +197 -0
- package/credential-draft-place.js +2 -0
- package/credential-draft-place.js.map +1 -0
- package/credential-draft-place.ts +4 -0
- package/credential-drafts.js +66 -0
- package/credential-drafts.js.map +1 -0
- package/credential-drafts.ts +93 -0
- package/dashboard-browser.js +149 -0
- package/dashboard-browser.js.map +1 -0
- package/dashboard-browser.ts +184 -0
- package/dashboard-view.js +293 -0
- package/dashboard-view.js.map +1 -0
- package/dashboard-view.ts +423 -0
- package/dashboard.js +268 -0
- package/dashboard.js.map +1 -0
- package/dashboard.ts +436 -0
- package/deno.json +1 -0
- package/describe-graph.js +8 -0
- package/describe-graph.js.map +1 -0
- package/describe-graph.ts +7 -0
- package/directory-derived.js +142 -0
- package/directory-derived.js.map +1 -0
- package/directory-derived.ts +198 -0
- package/directory-index-move.js +77 -0
- package/directory-index-move.js.map +1 -0
- package/directory-index-move.ts +59 -0
- package/directory-index.js +382 -0
- package/directory-index.js.map +1 -0
- package/directory-index.ts +550 -0
- package/directory-pages.js +41 -0
- package/directory-pages.js.map +1 -0
- package/directory-pages.ts +71 -0
- package/directory-route.js +129 -0
- package/directory-route.js.map +1 -0
- package/directory-route.ts +189 -0
- package/directory-vocab.js +58 -0
- package/directory-vocab.js.map +1 -0
- package/directory-vocab.ts +46 -0
- package/document-graph.js +86 -0
- package/document-graph.js.map +1 -0
- package/document-graph.ts +93 -0
- package/document-ocr.js +146 -0
- package/document-ocr.js.map +1 -0
- package/document-ocr.ts +204 -0
- package/documents.js +50 -0
- package/documents.js.map +1 -0
- package/documents.ts +64 -0
- package/domain-pages.js +221 -0
- package/domain-pages.js.map +1 -0
- package/domain-pages.ts +586 -0
- package/domain-settings.js +88 -0
- package/domain-settings.js.map +1 -0
- package/domain-settings.ts +132 -0
- package/domain-transfer.js +138 -0
- package/domain-transfer.js.map +1 -0
- package/domain-transfer.ts +190 -0
- package/donation-loans.js +176 -0
- package/donation-loans.js.map +1 -0
- package/donation-loans.ts +271 -0
- package/draft-choice.js +136 -0
- package/draft-choice.js.map +1 -0
- package/draft-choice.ts +310 -0
- package/drawing.js +27 -0
- package/drawing.js.map +1 -0
- package/drawing.ts +40 -0
- package/early-report.js +18 -0
- package/early-report.js.map +1 -0
- package/early-report.ts +31 -0
- package/edit-client-path.js +2 -0
- package/edit-client-path.js.map +1 -0
- package/edit-client-path.ts +1 -0
- package/edit-mode.js +920 -0
- package/edit-mode.js.map +1 -0
- package/edit-mode.ts +1003 -0
- package/edit-sync.js +61 -0
- package/edit-sync.js.map +1 -0
- package/edit-sync.ts +83 -0
- package/edit.js +265 -0
- package/embed-graph.js +11 -0
- package/embed-graph.js.map +1 -0
- package/embed-graph.ts +8 -0
- package/embedded-payment.js +211 -0
- package/embedded-payment.js.map +1 -0
- package/embedded-payment.ts +290 -0
- package/entry-actions-browser.js +43 -0
- package/entry-actions-browser.js.map +1 -0
- package/entry-actions-browser.ts +64 -0
- package/entry-actions.js +56 -0
- package/entry-actions.js.map +1 -0
- package/entry-actions.ts +59 -0
- package/escape.js +14 -0
- package/escape.js.map +1 -0
- package/escape.ts +24 -0
- package/face-input.js +6 -0
- package/face-input.js.map +1 -0
- package/face-input.ts +14 -0
- package/facebook.js +370 -0
- package/facebook.js.map +1 -0
- package/facebook.ts +474 -0
- package/facets.js +142 -0
- package/facets.js.map +1 -0
- package/facets.ts +89 -0
- package/fee.js +45 -0
- package/fee.js.map +1 -0
- package/fee.ts +51 -0
- package/fence.js +164 -0
- package/fence.js.map +1 -0
- package/fence.ts +223 -0
- package/file-metadata.js +135 -0
- package/file-metadata.js.map +1 -0
- package/file-metadata.ts +177 -0
- package/file-operation.js +51 -0
- package/file-operation.js.map +1 -0
- package/file-operation.ts +32 -0
- package/file-redirects.js +72 -0
- package/file-redirects.js.map +1 -0
- package/file-redirects.ts +74 -0
- package/file-root.js +8 -0
- package/file-root.js.map +1 -0
- package/file-root.ts +24 -0
- package/files-routes.js +203 -0
- package/files-routes.js.map +1 -0
- package/files-routes.ts +282 -0
- package/files.js +369 -0
- package/files.js.map +1 -0
- package/files.ts +522 -0
- package/fingerprint.js +217 -0
- package/fingerprint.js.map +1 -0
- package/fingerprint.ts +314 -0
- package/firsts.js +335 -0
- package/firsts.js.map +1 -0
- package/firsts.ts +368 -0
- package/friends-at.js +78 -0
- package/friends-at.js.map +1 -0
- package/friends-at.ts +115 -0
- package/friends-browser.js +66 -0
- package/friends-browser.js.map +1 -0
- package/friends-browser.ts +77 -0
- package/friends-dock-browser.js +375 -0
- package/friends-dock-browser.js.map +1 -0
- package/friends-dock-browser.ts +408 -0
- package/friends-dock-view.js +363 -0
- package/friends-dock-view.js.map +1 -0
- package/friends-dock-view.ts +592 -0
- package/friends-view.js +33 -0
- package/friends-view.js.map +1 -0
- package/friends-view.ts +69 -0
- package/friends.js +153 -0
- package/friends.js.map +1 -0
- package/friends.ts +200 -0
- package/fundraising-orders.js +197 -0
- package/fundraising-orders.js.map +1 -0
- package/fundraising-orders.ts +283 -0
- package/fundraising.js +165 -0
- package/fundraising.js.map +1 -0
- package/fundraising.ts +215 -0
- package/funnel.js +141 -0
- package/funnel.js.map +1 -0
- package/funnel.ts +284 -0
- package/gift-savings.js +19 -0
- package/gift-savings.js.map +1 -0
- package/gift-savings.ts +29 -0
- package/git-history.js +331 -0
- package/git-history.js.map +1 -0
- package/git-history.ts +481 -0
- package/giving-browser.js +35 -0
- package/giving-browser.js.map +1 -0
- package/giving-browser.ts +40 -0
- package/giving-pages.js +284 -0
- package/giving-pages.js.map +1 -0
- package/giving-pages.ts +418 -0
- package/giving-view.js +244 -0
- package/giving-view.js.map +1 -0
- package/giving-view.ts +509 -0
- package/giving.js +198 -0
- package/giving.js.map +1 -0
- package/giving.ts +280 -0
- package/gmail-mailbox.js +52 -0
- package/gmail-mailbox.js.map +1 -0
- package/gmail-mailbox.ts +74 -0
- package/graves.js +136 -0
- package/graves.js.map +1 -0
- package/graves.ts +180 -0
- package/hashed.js +499 -0
- package/hashed.js.map +1 -0
- package/hashed.ts +676 -0
- package/home/assets.js +15 -0
- package/home/assets.js.map +1 -0
- package/home/assets.ts +16 -0
- package/home/brands/stripe.svg +12 -0
- package/home/brands/zoom.svg +34 -0
- package/home/demos.js +413 -0
- package/home/demos.js.map +1 -0
- package/home/demos.ts +431 -0
- package/home/games.js +112 -0
- package/home/games.js.map +1 -0
- package/home/games.ts +137 -0
- package/home/icons.js +41 -0
- package/home/icons.js.map +1 -0
- package/home/icons.ts +42 -0
- package/home/mascot/calculating.webp +0 -0
- package/home/mascot/flag.webp +0 -0
- package/home/mascot/letter.webp +0 -0
- package/home/mascot/plane.webp +0 -0
- package/home/mascot/plug.webp +0 -0
- package/home/mascot/thinking.webp +0 -0
- package/home/mascot/typing.webp +0 -0
- package/home/mascot/wave.webp +0 -0
- package/home/mod.tsx +517 -0
- package/home/parts.js +149 -0
- package/home/parts.js.map +1 -0
- package/home/parts.ts +45 -0
- package/home/phone.tsx +152 -0
- package/home/scenes.tsx +212 -0
- package/home/sky.js +930 -0
- package/home/sky.tsx +479 -0
- package/home/story.js +392 -0
- package/home/style.css +1304 -0
- package/home/words.js +2 -0
- package/home/words.js.map +1 -0
- package/home/words.ts +8 -0
- package/home/yak.js +146 -0
- package/home/yak_test.tsx +111 -0
- package/home-router.js +30 -0
- package/home-router.js.map +1 -0
- package/home-router.ts +41 -0
- package/host.js +58 -0
- package/host.js.map +1 -0
- package/host.ts +97 -0
- package/hosted-page.js +126 -0
- package/hosted-page.js.map +1 -0
- package/hosted-page.ts +295 -0
- package/install-browser.js +89 -0
- package/install-browser.js.map +1 -0
- package/install-browser.ts +99 -0
- package/install-icons.js +271 -0
- package/install-icons.js.map +1 -0
- package/install-icons.ts +366 -0
- package/installs.js +197 -0
- package/installs.js.map +1 -0
- package/installs.ts +270 -0
- package/instrument.js +50 -0
- package/instrument.js.map +1 -0
- package/instrument.ts +55 -0
- package/integration-icons.js +138 -0
- package/integration-icons.js.map +1 -0
- package/integration-icons.ts +198 -0
- package/interaction-browser.js +95 -0
- package/interaction-browser.js.map +1 -0
- package/interaction-browser.ts +107 -0
- package/interaction-report.js +399 -0
- package/interaction-report.js.map +1 -0
- package/interaction-report.ts +450 -0
- package/interaction.js +273 -0
- package/interaction.js.map +1 -0
- package/interaction.ts +290 -0
- package/invite-browser.js +98 -0
- package/invite-browser.js.map +1 -0
- package/invite-browser.ts +123 -0
- package/invite-view.js +100 -0
- package/invite-view.js.map +1 -0
- package/invite-view.ts +137 -0
- package/kept.js +520 -0
- package/kept.js.map +1 -0
- package/kept.ts +821 -0
- package/kills-graph.js +18 -0
- package/kills-graph.js.map +1 -0
- package/kills-graph.ts +16 -0
- package/ladder.js +418 -0
- package/ladder.js.map +1 -0
- package/ladder.ts +510 -0
- package/lenses-graph.js +24 -0
- package/lenses-graph.js.map +1 -0
- package/lenses-graph.ts +27 -0
- package/lenses.js +197 -0
- package/lenses.js.map +1 -0
- package/lenses.ts +204 -0
- package/lent.js +32 -0
- package/lent.js.map +1 -0
- package/lent.ts +95 -0
- package/letters.js +134 -0
- package/letters.js.map +1 -0
- package/letters.ts +251 -0
- package/lexicon-graph.js +11 -0
- package/lexicon-graph.js.map +1 -0
- package/lexicon-graph.ts +7 -0
- package/link-preview.js +111 -0
- package/link-preview.js.map +1 -0
- package/link-preview.ts +136 -0
- package/listing.js +262 -0
- package/listing.js.map +1 -0
- package/listing.ts +330 -0
- package/local-time.js +32 -0
- package/local-time.js.map +1 -0
- package/local-time.ts +41 -0
- package/located.js +380 -0
- package/located.js.map +1 -0
- package/located.ts +471 -0
- package/log-graph.js +7 -0
- package/log-graph.js.map +1 -0
- package/log-graph.ts +9 -0
- package/lower-graph.js +7 -0
- package/lower-graph.js.map +1 -0
- package/lower-graph.ts +9 -0
- package/mail-request.js +32 -0
- package/mail-request.js.map +1 -0
- package/mail-request.ts +29 -0
- package/mail-senders.js +40 -0
- package/mail-senders.js.map +1 -0
- package/mail-senders.ts +47 -0
- package/managed-browser-pilot.js +151 -0
- package/managed-browser-pilot.js.map +1 -0
- package/managed-browser-pilot.ts +230 -0
- package/managed-browser-sites.js +43 -0
- package/managed-browser-sites.js.map +1 -0
- package/managed-browser-sites.ts +41 -0
- package/managed-browser-wire.js +142 -0
- package/managed-browser-wire.js.map +1 -0
- package/managed-browser-wire.ts +140 -0
- package/managed-browser.js +529 -0
- package/managed-browser.js.map +1 -0
- package/managed-browser.ts +740 -0
- package/manifest.js +425 -0
- package/manifest.js.map +1 -0
- package/manifest.ts +468 -0
- package/metadata-effect.js +61 -0
- package/metadata-effect.js.map +1 -0
- package/metadata-effect.ts +59 -0
- package/meter-graph.js +205 -0
- package/meter-graph.js.map +1 -0
- package/meter-graph.ts +238 -0
- package/meter-vocab.js +8 -0
- package/meter-vocab.js.map +1 -0
- package/meter-vocab.ts +4 -0
- package/meter.js +402 -0
- package/meter.js.map +1 -0
- package/meter.ts +697 -0
- package/mod.js +14 -0
- package/mod.js.map +1 -0
- package/mod.ts +16 -0
- package/models-vocab.js +25 -0
- package/models-vocab.js.map +1 -0
- package/models-vocab.ts +15 -0
- package/monogram.js +32 -0
- package/monogram.js.map +1 -0
- package/monogram.ts +46 -0
- package/mover.js +6 -0
- package/mover.js.map +1 -0
- package/mover.ts +45 -0
- package/named.js +136 -0
- package/named.js.map +1 -0
- package/named.ts +169 -0
- package/names.js +196 -0
- package/names.js.map +1 -0
- package/names.ts +252 -0
- package/notices-vocab.js +20 -0
- package/notices-vocab.js.map +1 -0
- package/notices-vocab.ts +28 -0
- package/numbers.js +85 -0
- package/numbers.js.map +1 -0
- package/numbers.ts +97 -0
- package/object-hosts.js +137 -0
- package/object-hosts.js.map +1 -0
- package/object-hosts.ts +153 -0
- package/open-script.js +235 -0
- package/open-script.js.map +1 -0
- package/open-script.ts +253 -0
- package/opening.js +31 -0
- package/opening.js.map +1 -0
- package/opening.ts +28 -0
- package/operator-activity-view.js +82 -0
- package/operator-activity-view.js.map +1 -0
- package/operator-activity-view.ts +85 -0
- package/operator-activity.js +220 -0
- package/operator-activity.js.map +1 -0
- package/operator-activity.ts +293 -0
- package/operator-brief.js +36 -0
- package/operator-brief.js.map +1 -0
- package/operator-brief.ts +76 -0
- package/operator-copy-browser.js +67 -0
- package/operator-copy-browser.js.map +1 -0
- package/operator-copy-browser.ts +71 -0
- package/operator-corner.js +266 -0
- package/operator-corner.js.map +1 -0
- package/operator-corner.ts +300 -0
- package/operator-decisions.js +19 -0
- package/operator-decisions.js.map +1 -0
- package/operator-decisions.ts +18 -0
- package/operator-docs.js +152 -0
- package/operator-docs.js.map +1 -0
- package/operator-docs.ts +196 -0
- package/operator-door.js +10 -0
- package/operator-door.js.map +1 -0
- package/operator-door.ts +14 -0
- package/operator-drafts-browser.js +28 -0
- package/operator-drafts-browser.js.map +1 -0
- package/operator-drafts-browser.ts +32 -0
- package/operator-drafts.js +60 -0
- package/operator-drafts.js.map +1 -0
- package/operator-drafts.ts +80 -0
- package/operator-early-draft.js +110 -0
- package/operator-early-draft.js.map +1 -0
- package/operator-early-draft.ts +125 -0
- package/operator-go-browser.js +130 -0
- package/operator-go-browser.js.map +1 -0
- package/operator-go-browser.ts +182 -0
- package/operator-go-step.js +86 -0
- package/operator-go-step.js.map +1 -0
- package/operator-go-step.ts +92 -0
- package/operator-go-tool.js +49 -0
- package/operator-go-tool.js.map +1 -0
- package/operator-go-tool.ts +31 -0
- package/operator-go.js +68 -0
- package/operator-go.js.map +1 -0
- package/operator-go.ts +100 -0
- package/operator-graph.js +46 -0
- package/operator-graph.js.map +1 -0
- package/operator-graph.ts +60 -0
- package/operator-handoff.js +91 -0
- package/operator-handoff.js.map +1 -0
- package/operator-handoff.ts +104 -0
- package/operator-machine.js +136 -0
- package/operator-machine.js.map +1 -0
- package/operator-machine.ts +168 -0
- package/operator-matches-browser.js +155 -0
- package/operator-matches-browser.js.map +1 -0
- package/operator-matches-browser.ts +178 -0
- package/operator-matches-view.js +147 -0
- package/operator-matches-view.js.map +1 -0
- package/operator-matches-view.ts +224 -0
- package/operator-matches.js +65 -0
- package/operator-matches.js.map +1 -0
- package/operator-matches.ts +120 -0
- package/operator-memory.js +119 -0
- package/operator-memory.js.map +1 -0
- package/operator-memory.ts +122 -0
- package/operator-mic.ts +40 -0
- package/operator-model.js +144 -0
- package/operator-model.js.map +1 -0
- package/operator-model.ts +154 -0
- package/operator-notes.js +32 -0
- package/operator-notes.js.map +1 -0
- package/operator-notes.ts +40 -0
- package/operator-opening-browser.js +184 -0
- package/operator-opening-browser.js.map +1 -0
- package/operator-opening-browser.ts +195 -0
- package/operator-owner.js +391 -0
- package/operator-owner.js.map +1 -0
- package/operator-owner.ts +392 -0
- package/operator-page-context.js +121 -0
- package/operator-page-context.js.map +1 -0
- package/operator-page-context.ts +143 -0
- package/operator-page-image.js +38 -0
- package/operator-page-image.js.map +1 -0
- package/operator-page-image.ts +42 -0
- package/operator-panel-browser.js +601 -0
- package/operator-panel-browser.js.map +1 -0
- package/operator-panel-browser.ts +669 -0
- package/operator-panel-view.js +69 -0
- package/operator-panel-view.js.map +1 -0
- package/operator-panel-view.ts +100 -0
- package/operator-panel.js +131 -0
- package/operator-panel.js.map +1 -0
- package/operator-panel.ts +155 -0
- package/operator-push.tsx +112 -0
- package/operator-record.js +55 -0
- package/operator-record.js.map +1 -0
- package/operator-record.ts +92 -0
- package/operator-replies.js +240 -0
- package/operator-replies.js.map +1 -0
- package/operator-replies.ts +281 -0
- package/operator-reply-view.js +117 -0
- package/operator-reply-view.js.map +1 -0
- package/operator-reply-view.ts +185 -0
- package/operator-safety.js +30 -0
- package/operator-safety.js.map +1 -0
- package/operator-safety.ts +53 -0
- package/operator-settings-browser.js +257 -0
- package/operator-settings-browser.js.map +1 -0
- package/operator-settings-browser.ts +290 -0
- package/operator-settings-view.js +291 -0
- package/operator-settings-view.js.map +1 -0
- package/operator-settings-view.ts +588 -0
- package/operator-settings.js +79 -0
- package/operator-settings.js.map +1 -0
- package/operator-settings.ts +137 -0
- package/operator-source.js +43 -0
- package/operator-source.js.map +1 -0
- package/operator-source.ts +69 -0
- package/operator-talk-browser.js +94 -0
- package/operator-talk-browser.js.map +1 -0
- package/operator-talk-browser.ts +120 -0
- package/operator-talk.js +83 -0
- package/operator-talk.js.map +1 -0
- package/operator-talk.ts +127 -0
- package/operator-task-text.js +45 -0
- package/operator-task-text.js.map +1 -0
- package/operator-task-text.ts +49 -0
- package/operator-timing-browser.js +51 -0
- package/operator-timing-browser.js.map +1 -0
- package/operator-timing-browser.ts +68 -0
- package/operator-timing-view.js +48 -0
- package/operator-timing-view.js.map +1 -0
- package/operator-timing-view.ts +90 -0
- package/operator-timing.js +132 -0
- package/operator-timing.js.map +1 -0
- package/operator-timing.ts +170 -0
- package/operator-vocab.js +8 -0
- package/operator-vocab.js.map +1 -0
- package/operator-vocab.ts +7 -0
- package/operator-voice-audio.ts +84 -0
- package/operator-voice-browser.ts +237 -0
- package/operator-voice-feedback.js +108 -0
- package/operator-voice-feedback.js.map +1 -0
- package/operator-voice-feedback.ts +133 -0
- package/operator-voice-view.js +33 -0
- package/operator-voice-view.js.map +1 -0
- package/operator-voice-view.ts +43 -0
- package/operator-voice.css +38 -0
- package/operator-voice.js +35 -0
- package/operator-voice.js.map +1 -0
- package/operator-voice.ts +33 -0
- package/operator-wait.js +70 -0
- package/operator-wait.js.map +1 -0
- package/operator-wait.ts +79 -0
- package/operator-watches.js +126 -0
- package/operator-watches.js.map +1 -0
- package/operator-watches.ts +141 -0
- package/operator-words.js +94 -0
- package/operator-words.js.map +1 -0
- package/operator-words.ts +114 -0
- package/outreach-trial.js +103 -0
- package/outreach-trial.js.map +1 -0
- package/outreach-trial.ts +122 -0
- package/outreach-vocab.js +10 -0
- package/outreach-vocab.js.map +1 -0
- package/outreach-vocab.ts +7 -0
- package/outreach.js +162 -0
- package/outreach.js.map +1 -0
- package/outreach.ts +239 -0
- package/package.json +1131 -4
- package/packs.js +103 -0
- package/packs.js.map +1 -0
- package/packs.ts +119 -0
- package/page-copy.js +267 -0
- package/page-copy.js.map +1 -0
- package/page-copy.ts +362 -0
- package/page-graph.js +114 -0
- package/page-graph.js.map +1 -0
- package/page-graph.ts +151 -0
- package/page-links.js +78 -0
- package/page-links.js.map +1 -0
- package/page-links.ts +124 -0
- package/page-parts.js +236 -0
- package/page-parts.js.map +1 -0
- package/page-parts.ts +388 -0
- package/page-query.js +95 -0
- package/page-query.js.map +1 -0
- package/page-query.ts +120 -0
- package/page-script.js +183 -0
- package/page-script.js.map +1 -0
- package/page-script.ts +192 -0
- package/page-wire.js +93 -0
- package/page-wire.js.map +1 -0
- package/page-wire.ts +100 -0
- package/pages-vocab.js +9 -0
- package/pages-vocab.js.map +1 -0
- package/pages-vocab.ts +5 -0
- package/partials.js +21 -0
- package/partials.js.map +1 -0
- package/partials.ts +37 -0
- package/payment-browser.js +250 -0
- package/payment-browser.js.map +1 -0
- package/payment-browser.ts +298 -0
- package/payment-rows.js +117 -0
- package/payment-rows.js.map +1 -0
- package/payment-rows.ts +219 -0
- package/payment-view.js +397 -0
- package/payment-view.js.map +1 -0
- package/payment-view.ts +852 -0
- package/people-browser.js +186 -0
- package/people-browser.js.map +1 -0
- package/people-browser.ts +210 -0
- package/people-rows.js +192 -0
- package/people-rows.js.map +1 -0
- package/people-rows.ts +289 -0
- package/people-view.js +463 -0
- package/people-view.js.map +1 -0
- package/people-view.ts +804 -0
- package/person-lines.js +196 -0
- package/person-lines.js.map +1 -0
- package/person-lines.ts +256 -0
- package/place.js +30 -0
- package/place.js.map +1 -0
- package/place.ts +31 -0
- package/plan-details.js +39 -0
- package/plan-details.js.map +1 -0
- package/plan-details.ts +57 -0
- package/plan-trial-graph.js +63 -0
- package/plan-trial-graph.js.map +1 -0
- package/plan-trial-graph.ts +57 -0
- package/plans.js +223 -0
- package/plans.js.map +1 -0
- package/plans.ts +313 -0
- package/platform-credentials.js +136 -0
- package/platform-credentials.js.map +1 -0
- package/platform-credentials.ts +189 -0
- package/poster-backfill.js +72 -0
- package/poster-backfill.js.map +1 -0
- package/poster-backfill.ts +96 -0
- package/presence.js +57 -0
- package/presence.js.map +1 -0
- package/presence.ts +77 -0
- package/preview-audit.js +65 -0
- package/preview-audit.js.map +1 -0
- package/preview-audit.ts +126 -0
- package/preview-fit.js +62 -0
- package/preview-fit.js.map +1 -0
- package/preview-fit.ts +72 -0
- package/preview-html.js +96 -0
- package/preview-html.js.map +1 -0
- package/preview-html.ts +139 -0
- package/preview.js +317 -0
- package/preview.js.map +1 -0
- package/preview.ts +498 -0
- package/price.js +53 -0
- package/price.js.map +1 -0
- package/price.ts +85 -0
- package/profile-browser.js +117 -0
- package/profile-browser.js.map +1 -0
- package/profile-browser.ts +141 -0
- package/profile-view.js +96 -0
- package/profile-view.js.map +1 -0
- package/profile-view.ts +197 -0
- package/provider-credits.js +159 -0
- package/provider-credits.js.map +1 -0
- package/provider-credits.ts +174 -0
- package/public-site-choice.js +18 -0
- package/public-site-choice.js.map +1 -0
- package/public-site-choice.ts +21 -0
- package/public-site.js +151 -0
- package/public-site.js.map +1 -0
- package/public-site.ts +268 -0
- package/publishing-graph.js +136 -0
- package/publishing-graph.js.map +1 -0
- package/publishing-graph.ts +122 -0
- package/qr.js +32 -0
- package/qr.js.map +1 -0
- package/qr.ts +32 -0
- package/query-page.js +159 -0
- package/query-page.js.map +1 -0
- package/query-page.ts +249 -0
- package/query-refusal.js +174 -0
- package/query-refusal.js.map +1 -0
- package/query-refusal.ts +319 -0
- package/refusal-loop.js +71 -0
- package/refusal-loop.js.map +1 -0
- package/refusal-loop.ts +98 -0
- package/refusals-vocab.js +9 -0
- package/refusals-vocab.js.map +1 -0
- package/refusals-vocab.ts +5 -0
- package/refused-writes.js +119 -0
- package/refused-writes.js.map +1 -0
- package/refused-writes.ts +152 -0
- package/refused.js +67 -0
- package/refused.js.map +1 -0
- package/refused.ts +76 -0
- package/regional-route-storage.js +127 -0
- package/regional-route-storage.js.map +1 -0
- package/regional-route-storage.ts +94 -0
- package/regional-route.js +105 -0
- package/regional-route.js.map +1 -0
- package/regional-route.ts +158 -0
- package/regional-serving-copy.js +153 -0
- package/regional-serving-copy.js.map +1 -0
- package/regional-serving-copy.ts +200 -0
- package/release-asset.js +71 -0
- package/release-asset.js.map +1 -0
- package/release-asset.ts +121 -0
- package/release-browser.js +383 -0
- package/release-code.js +5 -0
- package/release-entry.js +3 -0
- package/release-file.js +169 -0
- package/release-file.js.map +1 -0
- package/release-file.ts +241 -0
- package/release-index.js +140 -0
- package/release-index.js.map +1 -0
- package/release-index.ts +161 -0
- package/release-page.js +227 -0
- package/release-reads.js +27 -0
- package/release-reads.js.map +1 -0
- package/release-reads.ts +56 -0
- package/release-sheets.js +76 -0
- package/release-state.js +181 -0
- package/release-update.js +22 -0
- package/release-update.js.map +1 -0
- package/release-update.ts +29 -0
- package/release.js +50 -0
- package/release.js.map +1 -0
- package/release.ts +72 -0
- package/released.js +263 -0
- package/released.js.map +1 -0
- package/released.ts +310 -0
- package/remake-graph.js +17 -0
- package/remake-graph.js.map +1 -0
- package/remake-graph.ts +15 -0
- package/rouse-graph.js +11 -0
- package/rouse-graph.js.map +1 -0
- package/rouse-graph.ts +8 -0
- package/route-memory.js +101 -0
- package/route-memory.js.map +1 -0
- package/route-memory.ts +132 -0
- package/routes.js +1143 -0
- package/routes.js.map +1 -0
- package/routes.ts +1502 -0
- package/sale-recovery.js +175 -0
- package/sale-recovery.js.map +1 -0
- package/sale-recovery.ts +156 -0
- package/sales.js +113 -0
- package/sales.js.map +1 -0
- package/sales.ts +150 -0
- package/schema.js +28 -0
- package/schema.js.map +1 -0
- package/schema.ts +13 -0
- package/serving-copy.js +161 -0
- package/serving-copy.js.map +1 -0
- package/serving-copy.ts +201 -0
- package/settings-drafts-browser.js +81 -0
- package/settings-drafts-browser.js.map +1 -0
- package/settings-drafts-browser.ts +95 -0
- package/settings-drafts.js +119 -0
- package/settings-drafts.js.map +1 -0
- package/settings-drafts.ts +136 -0
- package/shared-browser.js +61 -0
- package/shared-browser.js.map +1 -0
- package/shared-browser.ts +77 -0
- package/shared-view.js +29 -0
- package/shared-view.js.map +1 -0
- package/shared-view.ts +47 -0
- package/side-browser.js +164 -0
- package/side-browser.js.map +1 -0
- package/side-browser.ts +201 -0
- package/side-parts.js +258 -0
- package/side-parts.js.map +1 -0
- package/side-parts.ts +447 -0
- package/side-rows.js +64 -0
- package/side-rows.js.map +1 -0
- package/side-rows.ts +104 -0
- package/signed-in.js +37 -0
- package/signed-in.js.map +1 -0
- package/signed-in.ts +45 -0
- package/site-assets.js +8 -0
- package/site-assets.js.map +1 -0
- package/site-assets.ts +25 -0
- package/site-header.js +65 -0
- package/site-header.js.map +1 -0
- package/site-header.ts +71 -0
- package/site-nav.js +75 -0
- package/site-nav.js.map +1 -0
- package/site-nav.ts +82 -0
- package/site-validation.js +37 -0
- package/site-validation.js.map +1 -0
- package/site-validation.ts +47 -0
- package/space-apps-browser.js +107 -0
- package/space-apps-browser.js.map +1 -0
- package/space-apps-browser.ts +128 -0
- package/space-apps-view.js +222 -0
- package/space-apps-view.js.map +1 -0
- package/space-apps-view.ts +396 -0
- package/space-apps.js +88 -0
- package/space-apps.js.map +1 -0
- package/space-apps.ts +143 -0
- package/space-logo.js +82 -0
- package/space-logo.js.map +1 -0
- package/space-logo.ts +112 -0
- package/space-pages-browser.js +474 -0
- package/space-pages-browser.js.map +1 -0
- package/space-pages-browser.ts +463 -0
- package/space-pages-view.js +212 -0
- package/space-pages-view.js.map +1 -0
- package/space-pages-view.ts +460 -0
- package/space-pages.js +193 -0
- package/space-pages.js.map +1 -0
- package/space-pages.ts +282 -0
- package/space-switch.js +36 -0
- package/space-switch.js.map +1 -0
- package/space-switch.ts +64 -0
- package/splash.js +510 -0
- package/splash.js.map +1 -0
- package/splash.ts +525 -0
- package/standing.js +409 -0
- package/standing.js.map +1 -0
- package/standing.ts +746 -0
- package/still.js +63 -0
- package/still.js.map +1 -0
- package/still.ts +95 -0
- package/store-listing.js +107 -0
- package/store-listing.js.map +1 -0
- package/store-listing.ts +133 -0
- package/store-wake.js +65 -0
- package/store-wake.js.map +1 -0
- package/store-wake.ts +101 -0
- package/stream-posters.js +177 -0
- package/stream-posters.js.map +1 -0
- package/stream-posters.ts +297 -0
- package/support-contract-service.js +219 -0
- package/support-contract-service.js.map +1 -0
- package/support-contract-service.ts +307 -0
- package/support-contract-view.js +155 -0
- package/support-contract-view.js.map +1 -0
- package/support-contract-view.ts +265 -0
- package/support-contract.js +114 -0
- package/support-contract.js.map +1 -0
- package/support-contract.ts +157 -0
- package/sweep-vocab.js +10 -0
- package/sweep-vocab.js.map +1 -0
- package/sweep-vocab.ts +9 -0
- package/talk-views-browser.js +208 -0
- package/talk-views-browser.js.map +1 -0
- package/talk-views-browser.ts +232 -0
- package/talk-views.js +36 -0
- package/talk-views.js.map +1 -0
- package/talk-views.ts +64 -0
- package/task-rows.js +86 -0
- package/task-rows.js.map +1 -0
- package/task-rows.ts +96 -0
- package/tasks-view.js +111 -0
- package/tasks-view.js.map +1 -0
- package/tasks-view.ts +176 -0
- package/toast.ts +17 -0
- package/trash-graph.js +41 -0
- package/trash-graph.js.map +1 -0
- package/trash-graph.ts +27 -0
- package/trash-vocab.js +8 -0
- package/trash-vocab.js.map +1 -0
- package/trash-vocab.ts +4 -0
- package/trial.js +325 -0
- package/trial.js.map +1 -0
- package/trial.ts +451 -0
- package/update-rows.js +77 -0
- package/update-rows.js.map +1 -0
- package/update-rows.ts +171 -0
- package/update-waiting.js +131 -0
- package/update-waiting.js.map +1 -0
- package/update-waiting.ts +133 -0
- package/updates-browser.js +28 -0
- package/updates-browser.js.map +1 -0
- package/updates-browser.ts +33 -0
- package/updates-day-browser.js +77 -0
- package/updates-day-browser.js.map +1 -0
- package/updates-day-browser.ts +84 -0
- package/updates-day.js +60 -0
- package/updates-day.js.map +1 -0
- package/updates-day.ts +94 -0
- package/updates-list-browser.js +175 -0
- package/updates-list-browser.js.map +1 -0
- package/updates-list-browser.ts +198 -0
- package/updates-view.js +546 -0
- package/updates-view.js.map +1 -0
- package/updates-view.ts +814 -0
- package/upload-client-path.js +5 -0
- package/upload-client-path.js.map +1 -0
- package/upload-client-path.ts +4 -0
- package/uploads.js +290 -0
- package/uploads.js.map +1 -0
- package/uploads.ts +334 -0
- package/upstream.js +40 -0
- package/upstream.js.map +1 -0
- package/upstream.ts +57 -0
- package/version-view.js +57 -0
- package/version-view.js.map +1 -0
- package/version-view.ts +99 -0
- package/versions.js +231 -0
- package/versions.js.map +1 -0
- package/versions.ts +367 -0
- package/visit-counts.js +123 -0
- package/visit-counts.js.map +1 -0
- package/visit-counts.ts +162 -0
- package/visitor-location.js +33 -0
- package/visitor-location.js.map +1 -0
- package/visitor-location.ts +38 -0
- package/visitor.js +152 -0
- package/visitor.js.map +1 -0
- package/visitor.ts +228 -0
- package/visits-browser.js +71 -0
- package/visits-browser.js.map +1 -0
- package/visits-browser.ts +87 -0
- package/visits-view.js +88 -0
- package/visits-view.js.map +1 -0
- package/visits-view.ts +184 -0
- package/visits.js +428 -0
- package/visits.js.map +1 -0
- package/visits.ts +561 -0
- package/vocab/account.vocab.json +349 -0
- package/vocab/agents.vocab.json +64 -0
- package/vocab/app-canvas.vocab.json +137 -0
- package/vocab/app-friends.vocab.json +71 -0
- package/vocab/app-permissions.vocab.json +46 -0
- package/vocab/apps.vocab.json +553 -0
- package/vocab/attribution.vocab.json +32 -0
- package/vocab/builder-install.vocab.json +10 -0
- package/vocab/connections.vocab.json +128 -0
- package/vocab/dashboard.vocab.json +148 -0
- package/vocab/directory.vocab.json +2445 -0
- package/vocab/exception.vocab.json +18 -0
- package/vocab/fundraising.vocab.json +284 -0
- package/vocab/gmail-mailbox.vocab.json +73 -0
- package/vocab/kernel.vocab.json +420 -0
- package/vocab/mcp-retirement.vocab.json +66 -0
- package/vocab/meter.vocab.json +230 -0
- package/vocab/models-install.vocab.json +10 -0
- package/vocab/notices.vocab.json +88 -0
- package/vocab/operator-drafts.vocab.json +19 -0
- package/vocab/operator-matches.vocab.json +85 -0
- package/vocab/operator-settings.vocab.json +127 -0
- package/vocab/operator-talk.vocab.json +92 -0
- package/vocab/operator.vocab.json +1314 -0
- package/vocab/outreach.vocab.json +141 -0
- package/vocab/pages.vocab.json +38 -0
- package/vocab/payment.vocab.json +271 -0
- package/vocab/people.vocab.json +337 -0
- package/vocab/presence.vocab.json +19 -0
- package/vocab/preview.vocab.json +66 -0
- package/vocab/referenced.vocab.json +17 -0
- package/vocab/referral.vocab.json +272 -0
- package/vocab/refusals.vocab.json +16 -0
- package/vocab/registration.vocab.json +17 -0
- package/vocab/serving.vocab.json +103 -0
- package/vocab/side.vocab.json +97 -0
- package/vocab/space-apps.vocab.json +137 -0
- package/vocab/space-pages.vocab.json +416 -0
- package/vocab/sweep-install.vocab.json +10 -0
- package/vocab/sweep.vocab.json +125 -0
- package/vocab/trash.vocab.json +19 -0
- package/vocab/update.vocab.json +53 -0
- package/vocab/upload.vocab.json +69 -0
- package/vocab/use.vocab.json +93 -0
- package/vocab/visits.vocab.json +143 -0
- package/vocab/waiting.vocab.json +29 -0
- package/vocab.js +16 -0
- package/vocab.js.map +1 -0
- package/vocab.json +1703 -0
- package/vocab.ts +17 -0
- package/weigh-graph.js +12 -0
- package/weigh-graph.js.map +1 -0
- package/weigh-graph.ts +9 -0
- package/wire-news.js +30 -0
- package/wire-news.js.map +1 -0
- package/wire-news.ts +30 -0
- package/work-standing.js +64 -0
- package/work-standing.js.map +1 -0
- package/work-standing.ts +44 -0
- package/woven.js +435 -0
- package/woven.js.map +1 -0
- package/woven.ts +649 -0
- package/wrap-graph.js +17 -0
- package/wrap-graph.js.map +1 -0
- package/wrap-graph.ts +15 -0
- package/write-owner.js +11 -0
- package/write-owner.js.map +1 -0
- package/write-owner.ts +24 -0
package/letters.js
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a space's Operator writes a person by email. Every letter yaks.app
|
|
3
|
+
* sends a person that they might answer comes from the Operator of the space
|
|
4
|
+
* it concerns: under the Operator's name, from the space's own address
|
|
5
|
+
* (`<space>@yaks.app`, {@link mailFrom}), written in the first person, and
|
|
6
|
+
* ending with what a reply can ask for. A reply to that address reaches the
|
|
7
|
+
* Operator's one conversation with whoever wrote it.
|
|
8
|
+
*
|
|
9
|
+
* A few letters stay mechanical, because what they carry has to be read at a
|
|
10
|
+
* glance and their words are fixed: a sign-in code, a contact code, the link
|
|
11
|
+
* that confirms an act an assistant cannot take. They still come from the
|
|
12
|
+
* Operator, so a reply to one reaches it too.
|
|
13
|
+
*
|
|
14
|
+
* Each function here is pure: it answers a letter's subject and body, and
|
|
15
|
+
* the host decides how it is sent.
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* import { equal } from '@yaks/testing'
|
|
19
|
+
* import { envelope, signed } from '@yaks/platform/letters'
|
|
20
|
+
* let ada = { slug: 'ada', title: 'Ada', operator: 'Nova' }
|
|
21
|
+
* equal(envelope(ada), { from: 'ada@yaks.app', name: 'Nova' })
|
|
22
|
+
* equal(signed(ada), 'Nova\nAda’s Operator')
|
|
23
|
+
* ```
|
|
24
|
+
*/ import { possessive } from "@yaks/text";
|
|
25
|
+
import { mailFrom } from "./host.js";
|
|
26
|
+
/** Who a letter is from: the space's own address, under its Operator's
|
|
27
|
+
* name, which the reader's mail shows. */ export let envelope = (space, env = {})=>({
|
|
28
|
+
from: mailFrom(space.slug, null, env),
|
|
29
|
+
name: space.operator
|
|
30
|
+
});
|
|
31
|
+
/** How the Operator signs a letter: its name, and whose Operator it is. */ export let signed = (space)=>`${space.operator}\n${possessive(space.title || space.slug)} Operator`;
|
|
32
|
+
/** How the Operator signs a letter it writes to someone else for a person:
|
|
33
|
+
* its name, whose assistant it is, and that they are copied. */ export let signedFor = (space, name)=>`${space.operator}\n${possessive(name)} AI assistant on yaks.app. ${name} is copied on this letter.`;
|
|
34
|
+
/** The line that ends a letter whose reader may have a question. */ export let ASK = "Reply to this email with any question, and I'll answer.";
|
|
35
|
+
/// bullets(['a', 'b']) -> ' - a\n - b'
|
|
36
|
+
/** Lines as a letter lists them. */ export let bullets = (lines)=>lines.map((l)=>` - ${l}`).join('\n');
|
|
37
|
+
// Someone's own words, marked as theirs the way a letter quotes, so a reader
|
|
38
|
+
// can tell what a person wrote from what the Operator says.
|
|
39
|
+
let quoted = (said)=>said.split('\n').map((l)=>`> ${l}`.trimEnd()).join('\n');
|
|
40
|
+
/**
|
|
41
|
+
* An invitation, from the Operator of the space it opens: the inviter's note
|
|
42
|
+
* first and quoted, then who invited them to what, the one click that
|
|
43
|
+
* accepts, and an offer to answer.
|
|
44
|
+
*
|
|
45
|
+
* ```ts
|
|
46
|
+
* import { assertStringIncludes } from '@std/assert'
|
|
47
|
+
* import { invitation } from '@yaks/platform/letters'
|
|
48
|
+
* let body = invitation({
|
|
49
|
+
* space: { slug: 'ada', title: 'Ada', operator: 'Nova' },
|
|
50
|
+
* by: 'Ada', verb: 'use', what: 'Cookbook (ada.yaks.app/cookbook)',
|
|
51
|
+
* accept: 'https://yaks.app/invite?t=x', email: 'bea@example.com',
|
|
52
|
+
* })
|
|
53
|
+
* assertStringIncludes(body, "I'm Nova, the AI assistant for Ada’s space")
|
|
54
|
+
* assertStringIncludes(body, 'Ada invited you to use Cookbook')
|
|
55
|
+
* ```
|
|
56
|
+
*/ export let invitation = (o)=>(o.name ? `Hi ${o.name},\n\n` : '') + // Their words first, and marked as theirs, so a reader never takes the
|
|
57
|
+
// Operator to be saying them.
|
|
58
|
+
(o.note ? `${o.by ?? 'They'} wrote:\n\n${quoted(o.note)}\n\n` : '') + `I'm ${o.space.operator}, the AI assistant for ${possessive(o.space.title || o.space.slug)} space on yaks.app. ${o.by ?? 'Someone there'} invited you to ${o.verb} ` + `${o.what}. Accept with one click:\n\n${o.accept}\n\n` + `The link signs you in as ${o.email}. There ` + 'is nothing to install and no account to make first. Until you accept, ' + 'nothing of theirs is shared with you, and if you did not expect this you ' + 'can ignore it.\n\n' + "Reply to this email with any question about it, and I'll answer.\n\n" + signed(o.space);
|
|
59
|
+
/**
|
|
60
|
+
* The letter that confirms an act an assistant may only ask for: what was
|
|
61
|
+
* asked, that nothing has happened, the hour's link, what it stops or
|
|
62
|
+
* destroys, and that only the link does it. Mechanical where it must be:
|
|
63
|
+
* the link and the list are exact.
|
|
64
|
+
*
|
|
65
|
+
* ```ts
|
|
66
|
+
* import { assertStringIncludes } from '@std/assert'
|
|
67
|
+
* import { confirmation } from '@yaks/platform/letters'
|
|
68
|
+
* let l = confirmation({
|
|
69
|
+
* space: { slug: 'ada', operator: 'Nova' }, subject: 'Delete ada.yaks.app?',
|
|
70
|
+
* asked: 'Your assistant asked to delete ada.yaks.app.',
|
|
71
|
+
* link: 'https://yaks.app/x', what: 'It destroys:', lines: ['Cookbook'],
|
|
72
|
+
* })
|
|
73
|
+
* assertStringIncludes(l.body, "I haven't done anything yet.")
|
|
74
|
+
* assertStringIncludes(l.body, ' - Cookbook')
|
|
75
|
+
* ```
|
|
76
|
+
*/ export let confirmation = (o)=>({
|
|
77
|
+
subject: o.subject,
|
|
78
|
+
body: `${o.asked}\n\n` + `I haven't done anything yet.${o.until ? ` ${o.until}` : ''} Nothing ` + 'changes unless you open this link, and it only works for the next ' + `hour:\n\n${o.link}\n\n${o.what}\n\n${bullets(o.lines)}\n\n` + 'Only the link does this, never a reply. If you did not ask for it, ' + 'ignore this letter and nothing happens at all, or reply and tell me ' + 'what you would like instead.\n\n' + signed(o.space)
|
|
79
|
+
});
|
|
80
|
+
/**
|
|
81
|
+
* The code that proves a person holds an address they asked their Operator
|
|
82
|
+
* to reach them at, typed back in their conversation with it. Mechanical:
|
|
83
|
+
* the code is the subject and the first line.
|
|
84
|
+
*
|
|
85
|
+
* ```ts
|
|
86
|
+
* import { equal } from '@yaks/testing'
|
|
87
|
+
* import { contactCode } from '@yaks/platform/letters'
|
|
88
|
+
* let l = contactCode({ slug: 'ada', operator: 'Nova' }, '123456')
|
|
89
|
+
* equal(l.subject, '123456 is your yaks.app contact code')
|
|
90
|
+
* ```
|
|
91
|
+
*/ export let contactCode = (space, code)=>({
|
|
92
|
+
subject: `${code} is your yaks.app contact code`,
|
|
93
|
+
body: `Your contact code is ${code}.\n\n` + 'Type it in our conversation to confirm this email address. It expires ' + 'in ten minutes. If you did not ask for this, ignore it; no contact has ' + `changed.\n\n${signed(space)}`
|
|
94
|
+
});
|
|
95
|
+
/** The security notice for a connector whose shared MCP servers lost their
|
|
96
|
+
* owner seat. The space may have been deleted in the same write. */ export let mcpUnshared = (space, names, seat, deleted)=>({
|
|
97
|
+
subject: `Your MCP servers are no longer shared in ${space.title}`,
|
|
98
|
+
body: [
|
|
99
|
+
deleted ? `${space.title} (${space.host}) was deleted.` : `You no longer own ${space.title} (${space.host}).`,
|
|
100
|
+
'People in that space can no longer use the MCP servers you shared ' + `with everyone there.\n\n${bullets(names)}`,
|
|
101
|
+
...deleted ? [
|
|
102
|
+
...deleted.removed.length ? [
|
|
103
|
+
`We removed the saved sign-in or key for:\n${bullets(deleted.removed)}`
|
|
104
|
+
] : [],
|
|
105
|
+
...deleted.retained.length ? [
|
|
106
|
+
'We kept the sign-in or key still used elsewhere for:\n' + bullets(deleted.retained)
|
|
107
|
+
] : [],
|
|
108
|
+
...!deleted.removed.length && !deleted.retained.length ? [
|
|
109
|
+
'There was no saved sign-in or key for the servers listed above.'
|
|
110
|
+
] : []
|
|
111
|
+
] : [
|
|
112
|
+
'Your sign-in or key was kept.' + (seat ? ' You can still use your servers there yourself.' : ''),
|
|
113
|
+
`If you own ${space.title} again, your servers are shared there again.`
|
|
114
|
+
]
|
|
115
|
+
].join('\n\n')
|
|
116
|
+
});
|
|
117
|
+
/**
|
|
118
|
+
* An alert by email: what the Operator tells the person, an invitation to
|
|
119
|
+
* answer by replying, and where their Updates are; or what it `asks` them,
|
|
120
|
+
* and where in their Updates its choices answer it in one press.
|
|
121
|
+
*
|
|
122
|
+
* ```ts
|
|
123
|
+
* import { assertStringIncludes } from '@std/assert'
|
|
124
|
+
* import { alerted } from '@yaks/platform/letters'
|
|
125
|
+
* let ada = { slug: 'ada', operator: 'Nova' }
|
|
126
|
+
* let body = alerted(ada, 'Your report is ready.', 'https://yaks.app/ada/updates')
|
|
127
|
+
* assertStringIncludes(body, 'Reply to this email to answer me')
|
|
128
|
+
* assertStringIncludes(
|
|
129
|
+
* alerted(ada, 'Email bo@x.com?', 'https://yaks.app/ada/updates#u-1', true),
|
|
130
|
+
* 'Answer it in your Updates: https://yaks.app/ada/updates#u-1',
|
|
131
|
+
* )
|
|
132
|
+
* ```
|
|
133
|
+
*/ export let alerted = (space, words, updates, asks = false)=>`${words}\n\n` + (asks ? `Answer it in your Updates: ${updates}\n\n` : `Reply to this email to answer me, or open your Updates: ${updates}\n\n`) + signed(space);
|
|
134
|
+
//# sourceMappingURL=letters.js.map
|
package/letters.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"letters.js","sources":["./letters.ts"],"names":[],"mappings":"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"}
|
package/letters.ts
ADDED
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a space's Operator writes a person by email. Every letter yaks.app
|
|
3
|
+
* sends a person that they might answer comes from the Operator of the space
|
|
4
|
+
* it concerns: under the Operator's name, from the space's own address
|
|
5
|
+
* (`<space>@yaks.app`, {@link mailFrom}), written in the first person, and
|
|
6
|
+
* ending with what a reply can ask for. A reply to that address reaches the
|
|
7
|
+
* Operator's one conversation with whoever wrote it.
|
|
8
|
+
*
|
|
9
|
+
* A few letters stay mechanical, because what they carry has to be read at a
|
|
10
|
+
* glance and their words are fixed: a sign-in code, a contact code, the link
|
|
11
|
+
* that confirms an act an assistant cannot take. They still come from the
|
|
12
|
+
* Operator, so a reply to one reaches it too.
|
|
13
|
+
*
|
|
14
|
+
* Each function here is pure: it answers a letter's subject and body, and
|
|
15
|
+
* the host decides how it is sent.
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* import { equal } from '@yaks/testing'
|
|
19
|
+
* import { envelope, signed } from '@yaks/platform/letters'
|
|
20
|
+
* let ada = { slug: 'ada', title: 'Ada', operator: 'Nova' }
|
|
21
|
+
* equal(envelope(ada), { from: 'ada@yaks.app', name: 'Nova' })
|
|
22
|
+
* equal(signed(ada), 'Nova\nAda’s Operator')
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
import { possessive } from '@yaks/text'
|
|
26
|
+
import { type Host, mailFrom } from './host.js'
|
|
27
|
+
|
|
28
|
+
/** The space a letter's Operator works for: its slug, its title and what
|
|
29
|
+
* its Operator is called. */
|
|
30
|
+
export type Writer = { slug: string; title?: string; operator: string }
|
|
31
|
+
|
|
32
|
+
/** Who a letter is from: the space's own address, under its Operator's
|
|
33
|
+
* name, which the reader's mail shows. */
|
|
34
|
+
export let envelope = (space: Writer, env: Host = {}) => ({
|
|
35
|
+
from: mailFrom(space.slug, null, env),
|
|
36
|
+
name: space.operator,
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
/** How the Operator signs a letter: its name, and whose Operator it is. */
|
|
40
|
+
export let signed = (space: Writer) =>
|
|
41
|
+
`${space.operator}\n${possessive(space.title || space.slug)} Operator`
|
|
42
|
+
|
|
43
|
+
/** How the Operator signs a letter it writes to someone else for a person:
|
|
44
|
+
* its name, whose assistant it is, and that they are copied. */
|
|
45
|
+
export let signedFor = (space: Writer, name: string) =>
|
|
46
|
+
`${space.operator}\n${
|
|
47
|
+
possessive(name)
|
|
48
|
+
} AI assistant on yaks.app. ${name} is copied on this letter.`
|
|
49
|
+
|
|
50
|
+
/** The line that ends a letter whose reader may have a question. */
|
|
51
|
+
export let ASK = "Reply to this email with any question, and I'll answer."
|
|
52
|
+
|
|
53
|
+
/// bullets(['a', 'b']) -> ' - a\n - b'
|
|
54
|
+
/** Lines as a letter lists them. */
|
|
55
|
+
export let bullets = (lines: string[]) =>
|
|
56
|
+
lines.map((l) => ` - ${l}`).join('\n')
|
|
57
|
+
|
|
58
|
+
// Someone's own words, marked as theirs the way a letter quotes, so a reader
|
|
59
|
+
// can tell what a person wrote from what the Operator says.
|
|
60
|
+
let quoted = (said: string) =>
|
|
61
|
+
said.split('\n').map((l) => `> ${l}`.trimEnd()).join('\n')
|
|
62
|
+
|
|
63
|
+
/** What the invitation's reader is invited to. */
|
|
64
|
+
export type Invited = {
|
|
65
|
+
space: Writer
|
|
66
|
+
/** who invited them, by name, or null when nobody is known */
|
|
67
|
+
by: string | null
|
|
68
|
+
/** what to call them, where the inviter said */
|
|
69
|
+
name?: string
|
|
70
|
+
/** the inviter's note */
|
|
71
|
+
note?: string
|
|
72
|
+
/** 'see' for a viewer, 'use' for anyone who may write */
|
|
73
|
+
verb: 'see' | 'use'
|
|
74
|
+
/** what it opens: a title and the address it opens at */
|
|
75
|
+
what: string
|
|
76
|
+
/** the one click that accepts */
|
|
77
|
+
accept: string
|
|
78
|
+
/** the address the link signs them in as */
|
|
79
|
+
email: string
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* An invitation, from the Operator of the space it opens: the inviter's note
|
|
84
|
+
* first and quoted, then who invited them to what, the one click that
|
|
85
|
+
* accepts, and an offer to answer.
|
|
86
|
+
*
|
|
87
|
+
* ```ts
|
|
88
|
+
* import { assertStringIncludes } from '@std/assert'
|
|
89
|
+
* import { invitation } from '@yaks/platform/letters'
|
|
90
|
+
* let body = invitation({
|
|
91
|
+
* space: { slug: 'ada', title: 'Ada', operator: 'Nova' },
|
|
92
|
+
* by: 'Ada', verb: 'use', what: 'Cookbook (ada.yaks.app/cookbook)',
|
|
93
|
+
* accept: 'https://yaks.app/invite?t=x', email: 'bea@example.com',
|
|
94
|
+
* })
|
|
95
|
+
* assertStringIncludes(body, "I'm Nova, the AI assistant for Ada’s space")
|
|
96
|
+
* assertStringIncludes(body, 'Ada invited you to use Cookbook')
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
export let invitation = (o: Invited): string =>
|
|
100
|
+
(o.name ? `Hi ${o.name},\n\n` : '') +
|
|
101
|
+
// Their words first, and marked as theirs, so a reader never takes the
|
|
102
|
+
// Operator to be saying them.
|
|
103
|
+
(o.note ? `${o.by ?? 'They'} wrote:\n\n${quoted(o.note)}\n\n` : '') +
|
|
104
|
+
`I'm ${o.space.operator}, the AI assistant for ${
|
|
105
|
+
possessive(o.space.title || o.space.slug)
|
|
106
|
+
} space on yaks.app. ${o.by ?? 'Someone there'} invited you to ${o.verb} ` +
|
|
107
|
+
`${o.what}. Accept with one click:\n\n${o.accept}\n\n` +
|
|
108
|
+
`The link signs you in as ${o.email}. There ` +
|
|
109
|
+
'is nothing to install and no account to make first. Until you accept, ' +
|
|
110
|
+
'nothing of theirs is shared with you, and if you did not expect this you ' +
|
|
111
|
+
'can ignore it.\n\n' +
|
|
112
|
+
"Reply to this email with any question about it, and I'll answer.\n\n" +
|
|
113
|
+
signed(o.space)
|
|
114
|
+
|
|
115
|
+
/** An act an assistant asked for that only the person can confirm. */
|
|
116
|
+
export type Confirming = {
|
|
117
|
+
space: Writer
|
|
118
|
+
/** the letter's subject: the act, as a question */
|
|
119
|
+
subject: string
|
|
120
|
+
/** what the assistant asked, as a sentence */
|
|
121
|
+
asked: string
|
|
122
|
+
/** where things stand until they press, if anything is worth saying */
|
|
123
|
+
until?: string
|
|
124
|
+
/** the link that does it */
|
|
125
|
+
link: string
|
|
126
|
+
/** the sentence before the list */
|
|
127
|
+
what: string
|
|
128
|
+
/** what it stops or destroys */
|
|
129
|
+
lines: string[]
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* The letter that confirms an act an assistant may only ask for: what was
|
|
134
|
+
* asked, that nothing has happened, the hour's link, what it stops or
|
|
135
|
+
* destroys, and that only the link does it. Mechanical where it must be:
|
|
136
|
+
* the link and the list are exact.
|
|
137
|
+
*
|
|
138
|
+
* ```ts
|
|
139
|
+
* import { assertStringIncludes } from '@std/assert'
|
|
140
|
+
* import { confirmation } from '@yaks/platform/letters'
|
|
141
|
+
* let l = confirmation({
|
|
142
|
+
* space: { slug: 'ada', operator: 'Nova' }, subject: 'Delete ada.yaks.app?',
|
|
143
|
+
* asked: 'Your assistant asked to delete ada.yaks.app.',
|
|
144
|
+
* link: 'https://yaks.app/x', what: 'It destroys:', lines: ['Cookbook'],
|
|
145
|
+
* })
|
|
146
|
+
* assertStringIncludes(l.body, "I haven't done anything yet.")
|
|
147
|
+
* assertStringIncludes(l.body, ' - Cookbook')
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
export let confirmation = (o: Confirming) => ({
|
|
151
|
+
subject: o.subject,
|
|
152
|
+
body: `${o.asked}\n\n` +
|
|
153
|
+
`I haven't done anything yet.${o.until ? ` ${o.until}` : ''} Nothing ` +
|
|
154
|
+
'changes unless you open this link, and it only works for the next ' +
|
|
155
|
+
`hour:\n\n${o.link}\n\n${o.what}\n\n${bullets(o.lines)}\n\n` +
|
|
156
|
+
'Only the link does this, never a reply. If you did not ask for it, ' +
|
|
157
|
+
'ignore this letter and nothing happens at all, or reply and tell me ' +
|
|
158
|
+
'what you would like instead.\n\n' +
|
|
159
|
+
signed(o.space),
|
|
160
|
+
})
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The code that proves a person holds an address they asked their Operator
|
|
164
|
+
* to reach them at, typed back in their conversation with it. Mechanical:
|
|
165
|
+
* the code is the subject and the first line.
|
|
166
|
+
*
|
|
167
|
+
* ```ts
|
|
168
|
+
* import { equal } from '@yaks/testing'
|
|
169
|
+
* import { contactCode } from '@yaks/platform/letters'
|
|
170
|
+
* let l = contactCode({ slug: 'ada', operator: 'Nova' }, '123456')
|
|
171
|
+
* equal(l.subject, '123456 is your yaks.app contact code')
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
174
|
+
export let contactCode = (space: Writer, code: string) => ({
|
|
175
|
+
subject: `${code} is your yaks.app contact code`,
|
|
176
|
+
body: `Your contact code is ${code}.\n\n` +
|
|
177
|
+
'Type it in our conversation to confirm this email address. It expires ' +
|
|
178
|
+
'in ten minutes. If you did not ask for this, ignore it; no contact has ' +
|
|
179
|
+
`changed.\n\n${signed(space)}`,
|
|
180
|
+
})
|
|
181
|
+
|
|
182
|
+
/** The security notice for a connector whose shared MCP servers lost their
|
|
183
|
+
* owner seat. The space may have been deleted in the same write. */
|
|
184
|
+
export let mcpUnshared = (
|
|
185
|
+
space: { title: string; host: string },
|
|
186
|
+
names: string[],
|
|
187
|
+
seat: 'editor' | 'viewer' | null,
|
|
188
|
+
deleted: false | { removed: string[]; retained: string[] },
|
|
189
|
+
) => ({
|
|
190
|
+
subject: `Your MCP servers are no longer shared in ${space.title}`,
|
|
191
|
+
body: [
|
|
192
|
+
deleted
|
|
193
|
+
? `${space.title} (${space.host}) was deleted.`
|
|
194
|
+
: `You no longer own ${space.title} (${space.host}).`,
|
|
195
|
+
'People in that space can no longer use the MCP servers you shared ' +
|
|
196
|
+
`with everyone there.\n\n${bullets(names)}`,
|
|
197
|
+
...deleted
|
|
198
|
+
? [
|
|
199
|
+
...deleted.removed.length
|
|
200
|
+
? [
|
|
201
|
+
`We removed the saved sign-in or key for:\n${
|
|
202
|
+
bullets(deleted.removed)
|
|
203
|
+
}`,
|
|
204
|
+
]
|
|
205
|
+
: [],
|
|
206
|
+
...deleted.retained.length
|
|
207
|
+
? [
|
|
208
|
+
'We kept the sign-in or key still used elsewhere for:\n' +
|
|
209
|
+
bullets(deleted.retained),
|
|
210
|
+
]
|
|
211
|
+
: [],
|
|
212
|
+
...!deleted.removed.length && !deleted.retained.length
|
|
213
|
+
? ['There was no saved sign-in or key for the servers listed above.']
|
|
214
|
+
: [],
|
|
215
|
+
]
|
|
216
|
+
: [
|
|
217
|
+
'Your sign-in or key was kept.' +
|
|
218
|
+
(seat ? ' You can still use your servers there yourself.' : ''),
|
|
219
|
+
`If you own ${space.title} again, your servers are shared there again.`,
|
|
220
|
+
],
|
|
221
|
+
].join('\n\n'),
|
|
222
|
+
})
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* An alert by email: what the Operator tells the person, an invitation to
|
|
226
|
+
* answer by replying, and where their Updates are; or what it `asks` them,
|
|
227
|
+
* and where in their Updates its choices answer it in one press.
|
|
228
|
+
*
|
|
229
|
+
* ```ts
|
|
230
|
+
* import { assertStringIncludes } from '@std/assert'
|
|
231
|
+
* import { alerted } from '@yaks/platform/letters'
|
|
232
|
+
* let ada = { slug: 'ada', operator: 'Nova' }
|
|
233
|
+
* let body = alerted(ada, 'Your report is ready.', 'https://yaks.app/ada/updates')
|
|
234
|
+
* assertStringIncludes(body, 'Reply to this email to answer me')
|
|
235
|
+
* assertStringIncludes(
|
|
236
|
+
* alerted(ada, 'Email bo@x.com?', 'https://yaks.app/ada/updates#u-1', true),
|
|
237
|
+
* 'Answer it in your Updates: https://yaks.app/ada/updates#u-1',
|
|
238
|
+
* )
|
|
239
|
+
* ```
|
|
240
|
+
*/
|
|
241
|
+
export let alerted = (
|
|
242
|
+
space: Writer,
|
|
243
|
+
words: string,
|
|
244
|
+
updates: string,
|
|
245
|
+
asks = false,
|
|
246
|
+
) =>
|
|
247
|
+
`${words}\n\n` +
|
|
248
|
+
(asks
|
|
249
|
+
? `Answer it in your Updates: ${updates}\n\n`
|
|
250
|
+
: `Reply to this email to answer me, or open your Updates: ${updates}\n\n`) +
|
|
251
|
+
signed(space)
|
package/lexicon-graph.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// The words a write brought, told to the Lexicon once it has committed
|
|
2
|
+
// (graph.ts `#telling`), in a store that keeps one.
|
|
3
|
+
export let plugins = (_host, { store })=>store.tell ? [
|
|
4
|
+
{
|
|
5
|
+
name: 'yak/lexicon',
|
|
6
|
+
hooks: {
|
|
7
|
+
effect: store.tell
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
] : [];
|
|
11
|
+
//# sourceMappingURL=lexicon-graph.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lexicon-graph.js","sources":["./lexicon-graph.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,oDAAoD;AAIpD,OAAO,IAAI,UAAU,CAAC,OAAgB,EAAE,KAAK,EAAW,GACtD,MAAM,IAAI,GAAG;IAAC;MAAE,MAAM;MAAe,OAAO;QAAE,QAAQ,MAAM,IAAI;MAAC;IAAE;GAAE,GAAG,EAAE,CAAA"}
|
package/lexicon-graph.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// The words a write brought, told to the Lexicon once it has committed
|
|
2
|
+
// (graph.ts `#telling`), in a store that keeps one.
|
|
3
|
+
import type { Plugin } from 'jsr:@yaks/graph@0.2.36'
|
|
4
|
+
import type { Options } from './lent.ts'
|
|
5
|
+
|
|
6
|
+
export let plugins = (_host: unknown, { store }: Options): Plugin[] =>
|
|
7
|
+
store.tell ? [{ name: 'yak/lexicon', hooks: { effect: store.tell } }] : []
|
package/link-preview.js
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// A route describes its preview as data. The same tags serve the site's
|
|
2
|
+
// files, drawn pages, sign-in cards and hosted apps.
|
|
3
|
+
/* @ts-types="npm:@types/react@19.3.0" */ import { createElement as h } from "react";
|
|
4
|
+
import { esc } from "./escape.js";
|
|
5
|
+
import { url } from "./host.js";
|
|
6
|
+
import { managed, onZone, route, spaced } from "./routes.js";
|
|
7
|
+
import { PITCH } from "./names.js";
|
|
8
|
+
export let DEFAULT = {
|
|
9
|
+
title: 'yaks.app',
|
|
10
|
+
description: PITCH
|
|
11
|
+
};
|
|
12
|
+
export let fields = (env, of)=>{
|
|
13
|
+
let title = of.title;
|
|
14
|
+
let description = of.description || DEFAULT.description;
|
|
15
|
+
let image = of.image || url(env, '/og.png');
|
|
16
|
+
return {
|
|
17
|
+
description,
|
|
18
|
+
'og:type': 'website',
|
|
19
|
+
'og:site_name': 'yaks.app',
|
|
20
|
+
...of.at ? {
|
|
21
|
+
'og:url': of.at
|
|
22
|
+
} : {},
|
|
23
|
+
'og:title': title,
|
|
24
|
+
'og:description': description,
|
|
25
|
+
'og:image': image,
|
|
26
|
+
'twitter:card': 'summary_large_image',
|
|
27
|
+
'twitter:title': title,
|
|
28
|
+
'twitter:description': description,
|
|
29
|
+
'twitter:image': image
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export let meta = (name, content)=>/*#__PURE__*/ h('meta', {
|
|
33
|
+
[name.startsWith('og:') ? 'property' : 'name']: name,
|
|
34
|
+
content
|
|
35
|
+
});
|
|
36
|
+
export let tag = (name, content)=>`<meta ${name.startsWith('og:') ? 'property' : 'name'}="${esc(name)}" content="${esc(content)}">`;
|
|
37
|
+
export let tags = (env, of)=>Object.entries(fields(env, of)).map(([k, v])=>tag(k, v)).join('\n');
|
|
38
|
+
let kind = (title, description)=>({
|
|
39
|
+
title: title.endsWith('yaks.app') ? title : `${title} · yaks.app`,
|
|
40
|
+
description
|
|
41
|
+
});
|
|
42
|
+
// No names, ids, query strings or directory reads: knowing an address does
|
|
43
|
+
// not grant access to anything kept there.
|
|
44
|
+
let VIEWS = {
|
|
45
|
+
operator: kind('A conversation with an Operator', 'Talk with an Operator on yaks.app.'),
|
|
46
|
+
apps: kind('Apps', 'Apps in a space on yaks.app.'),
|
|
47
|
+
new: kind('Make an app', 'Make an app with an Operator on yaks.app.'),
|
|
48
|
+
updates: kind('Updates', 'Updates from an Operator on yaks.app.'),
|
|
49
|
+
people: kind('People', 'Manage who can use a space on yaks.app.'),
|
|
50
|
+
connections: kind('Connections', 'Connect services to a space on yaks.app.'),
|
|
51
|
+
visits: kind('Visits', 'See visits to apps on yaks.app.'),
|
|
52
|
+
selling: kind('Selling', 'Manage sales on yaks.app.'),
|
|
53
|
+
billing: kind('Billing', 'Manage a plan and spending on yaks.app.'),
|
|
54
|
+
settings: kind('Space settings', 'Manage a space on yaks.app.'),
|
|
55
|
+
trash: kind('Trash', 'Manage deleted apps on yaks.app.'),
|
|
56
|
+
profile: kind('Your profile', 'Manage your account on yaks.app.'),
|
|
57
|
+
invite: kind('An invitation', 'An invitation to join yaks.app.'),
|
|
58
|
+
agents: kind('Connect an assistant', 'Connect your assistant to yaks.app.'),
|
|
59
|
+
shared: kind('Shared with you', 'Apps shared with you on yaks.app.'),
|
|
60
|
+
space: kind('Make a space', 'Make a space on yaks.app.')
|
|
61
|
+
};
|
|
62
|
+
export let APP = {
|
|
63
|
+
title: 'An app on yaks.app',
|
|
64
|
+
description: 'Open an app on yaks.app.'
|
|
65
|
+
};
|
|
66
|
+
let ROUTES = [
|
|
67
|
+
[
|
|
68
|
+
/^\/connect(?:\/|$)|^\/oauth\//,
|
|
69
|
+
VIEWS.agents
|
|
70
|
+
],
|
|
71
|
+
[
|
|
72
|
+
/^\/invite(?:\/|$)/,
|
|
73
|
+
VIEWS.invite
|
|
74
|
+
],
|
|
75
|
+
[
|
|
76
|
+
/^\/install(?:\/|$)/,
|
|
77
|
+
kind('Make your own copy', 'Install an app in your own space on yaks.app.'),
|
|
78
|
+
'name'
|
|
79
|
+
],
|
|
80
|
+
[
|
|
81
|
+
/^\/admin(?:\/|$)/,
|
|
82
|
+
kind('Platform administration', 'Manage the yaks.app platform.')
|
|
83
|
+
],
|
|
84
|
+
[
|
|
85
|
+
/^\/tv(?:\/|$)/,
|
|
86
|
+
kind('A screen on yaks.app', 'Open or pair a screen on yaks.app.')
|
|
87
|
+
],
|
|
88
|
+
[
|
|
89
|
+
/^\/space\//,
|
|
90
|
+
VIEWS.settings
|
|
91
|
+
]
|
|
92
|
+
];
|
|
93
|
+
/** What a sign-in link points to, without learning anything about its owner. */ export let destination = (back, env = {})=>{
|
|
94
|
+
if (!back || !onZone(back, env)) return undefined;
|
|
95
|
+
let at = new URL(back, url(env, '/'));
|
|
96
|
+
let r = route(at.hostname, at.pathname, env);
|
|
97
|
+
if (r.space) return APP;
|
|
98
|
+
let page = (path)=>managed(path) ?? spaced(path);
|
|
99
|
+
let view = page(r.path);
|
|
100
|
+
if (view && 'moved' in view) view = page(view.moved);
|
|
101
|
+
if (view && !('moved' in view)) {
|
|
102
|
+
let name = 'account' in view ? view.account : 'updates' in view ? 'updates' : 'legacy' in view ? view.legacy : 'view' in view ? view.view : 'operator';
|
|
103
|
+
return VIEWS[name];
|
|
104
|
+
}
|
|
105
|
+
let found = ROUTES.find(([path])=>path.test(r.path));
|
|
106
|
+
return found && {
|
|
107
|
+
...found[1],
|
|
108
|
+
publication: found[2] ? at.searchParams.get(found[2]) ?? undefined : undefined
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
//# sourceMappingURL=link-preview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-preview.js","sources":["./link-preview.ts"],"names":[],"mappings":"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"}
|
package/link-preview.ts
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
// A route describes its preview as data. The same tags serve the site's
|
|
2
|
+
// files, drawn pages, sign-in cards and hosted apps.
|
|
3
|
+
/* @ts-types="npm:@types/react@19.3.0" */ import { createElement as h } from 'react'
|
|
4
|
+
import { esc } from './escape.js'
|
|
5
|
+
import { type Host, url } from './host.js'
|
|
6
|
+
import { managed, onZone, route, spaced } from './routes.js'
|
|
7
|
+
import { PITCH } from './names.js'
|
|
8
|
+
|
|
9
|
+
export type Preview = {
|
|
10
|
+
title: string
|
|
11
|
+
description?: string
|
|
12
|
+
image?: string
|
|
13
|
+
at?: string
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export let DEFAULT: Preview = {
|
|
17
|
+
title: 'yaks.app',
|
|
18
|
+
description: PITCH,
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export let fields = (env: Host, of: Preview) => {
|
|
22
|
+
let title = of.title
|
|
23
|
+
let description = of.description || DEFAULT.description!
|
|
24
|
+
let image = of.image || url(env, '/og.png')
|
|
25
|
+
return {
|
|
26
|
+
description,
|
|
27
|
+
'og:type': 'website',
|
|
28
|
+
'og:site_name': 'yaks.app',
|
|
29
|
+
...(of.at ? { 'og:url': of.at } : {}),
|
|
30
|
+
'og:title': title,
|
|
31
|
+
'og:description': description,
|
|
32
|
+
'og:image': image,
|
|
33
|
+
'twitter:card': 'summary_large_image',
|
|
34
|
+
'twitter:title': title,
|
|
35
|
+
'twitter:description': description,
|
|
36
|
+
'twitter:image': image,
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export let meta = (name: string, content: string) =>
|
|
41
|
+
h('meta', { [name.startsWith('og:') ? 'property' : 'name']: name, content })
|
|
42
|
+
|
|
43
|
+
export let tag = (name: string, content: string) =>
|
|
44
|
+
`<meta ${name.startsWith('og:') ? 'property' : 'name'}="${
|
|
45
|
+
esc(name)
|
|
46
|
+
}" content="${esc(content)}">`
|
|
47
|
+
|
|
48
|
+
export let tags = (env: Host, of: Preview) =>
|
|
49
|
+
Object.entries(fields(env, of)).map(([k, v]) => tag(k, v))
|
|
50
|
+
.join('\n')
|
|
51
|
+
|
|
52
|
+
let kind = (title: string, description: string): Preview => ({
|
|
53
|
+
title: title.endsWith('yaks.app') ? title : `${title} · yaks.app`,
|
|
54
|
+
description,
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
// No names, ids, query strings or directory reads: knowing an address does
|
|
58
|
+
// not grant access to anything kept there.
|
|
59
|
+
let VIEWS: Record<string, Preview> = {
|
|
60
|
+
operator: kind(
|
|
61
|
+
'A conversation with an Operator',
|
|
62
|
+
'Talk with an Operator on yaks.app.',
|
|
63
|
+
),
|
|
64
|
+
apps: kind('Apps', 'Apps in a space on yaks.app.'),
|
|
65
|
+
new: kind('Make an app', 'Make an app with an Operator on yaks.app.'),
|
|
66
|
+
updates: kind('Updates', 'Updates from an Operator on yaks.app.'),
|
|
67
|
+
people: kind('People', 'Manage who can use a space on yaks.app.'),
|
|
68
|
+
connections: kind('Connections', 'Connect services to a space on yaks.app.'),
|
|
69
|
+
visits: kind('Visits', 'See visits to apps on yaks.app.'),
|
|
70
|
+
selling: kind('Selling', 'Manage sales on yaks.app.'),
|
|
71
|
+
billing: kind('Billing', 'Manage a plan and spending on yaks.app.'),
|
|
72
|
+
settings: kind('Space settings', 'Manage a space on yaks.app.'),
|
|
73
|
+
trash: kind('Trash', 'Manage deleted apps on yaks.app.'),
|
|
74
|
+
profile: kind('Your profile', 'Manage your account on yaks.app.'),
|
|
75
|
+
invite: kind('An invitation', 'An invitation to join yaks.app.'),
|
|
76
|
+
agents: kind('Connect an assistant', 'Connect your assistant to yaks.app.'),
|
|
77
|
+
shared: kind('Shared with you', 'Apps shared with you on yaks.app.'),
|
|
78
|
+
space: kind('Make a space', 'Make a space on yaks.app.'),
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export let APP: Preview = {
|
|
82
|
+
title: 'An app on yaks.app',
|
|
83
|
+
description: 'Open an app on yaks.app.',
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
let ROUTES: [RegExp, Preview, string?][] = [
|
|
87
|
+
[/^\/connect(?:\/|$)|^\/oauth\//, VIEWS.agents],
|
|
88
|
+
[/^\/invite(?:\/|$)/, VIEWS.invite],
|
|
89
|
+
[
|
|
90
|
+
/^\/install(?:\/|$)/,
|
|
91
|
+
kind('Make your own copy', 'Install an app in your own space on yaks.app.'),
|
|
92
|
+
'name',
|
|
93
|
+
],
|
|
94
|
+
[
|
|
95
|
+
/^\/admin(?:\/|$)/,
|
|
96
|
+
kind('Platform administration', 'Manage the yaks.app platform.'),
|
|
97
|
+
],
|
|
98
|
+
[
|
|
99
|
+
/^\/tv(?:\/|$)/,
|
|
100
|
+
kind('A screen on yaks.app', 'Open or pair a screen on yaks.app.'),
|
|
101
|
+
],
|
|
102
|
+
[/^\/space\//, VIEWS.settings],
|
|
103
|
+
]
|
|
104
|
+
|
|
105
|
+
/** What a sign-in link points to, without learning anything about its owner. */
|
|
106
|
+
export let destination = (
|
|
107
|
+
back: string | null | undefined,
|
|
108
|
+
env: Host = {},
|
|
109
|
+
): (Preview & { publication?: string }) | undefined => {
|
|
110
|
+
if (!back || !onZone(back, env)) return undefined
|
|
111
|
+
let at = new URL(back, url(env, '/'))
|
|
112
|
+
let r = route(at.hostname, at.pathname, env)
|
|
113
|
+
if (r.space) return APP
|
|
114
|
+
let page = (path: string) => managed(path) ?? spaced(path)
|
|
115
|
+
let view = page(r.path)
|
|
116
|
+
if (view && 'moved' in view) view = page(view.moved)
|
|
117
|
+
if (view && !('moved' in view)) {
|
|
118
|
+
let name = 'account' in view
|
|
119
|
+
? view.account
|
|
120
|
+
: 'updates' in view
|
|
121
|
+
? 'updates'
|
|
122
|
+
: 'legacy' in view
|
|
123
|
+
? view.legacy
|
|
124
|
+
: 'view' in view
|
|
125
|
+
? view.view
|
|
126
|
+
: 'operator'
|
|
127
|
+
return VIEWS[name]
|
|
128
|
+
}
|
|
129
|
+
let found = ROUTES.find(([path]) => path.test(r.path))
|
|
130
|
+
return found && {
|
|
131
|
+
...found[1],
|
|
132
|
+
publication: found[2]
|
|
133
|
+
? at.searchParams.get(found[2]) ?? undefined
|
|
134
|
+
: undefined,
|
|
135
|
+
}
|
|
136
|
+
}
|