@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/firsts.ts
ADDED
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
// The customer goal's number (V-25): outside people who build a first app,
|
|
2
|
+
// by week, counted from the platform directory's rows. The funnel's "First
|
|
3
|
+
// apps" (./funnel.ts) is another count: a space's first app, Jeff's own among
|
|
4
|
+
// them, with no person to trace.
|
|
5
|
+
//
|
|
6
|
+
// - An outside person has an address of their own: not an owner of the `yak`
|
|
7
|
+
// space (Jeff, the platform's admin), and not one on bot.yak.sh or
|
|
8
|
+
// `.invalid` (./bots.ts).
|
|
9
|
+
// - An app is theirs when they made it, an agent acting for them made it
|
|
10
|
+
// (`acts_for`), or a space's Operator made it at their asking. The
|
|
11
|
+
// Operator writes as the space, and the session it wrote in (`created.via`)
|
|
12
|
+
// is kept in the space's Operator store, whose `owner{person}` says who
|
|
13
|
+
// asked. Where nothing says who asked, the app is nobody's: crediting every
|
|
14
|
+
// owner of the space credits a co-owner for what somebody else asked for.
|
|
15
|
+
// An app installed from somebody else's is nobody's first.
|
|
16
|
+
// - A person counts once, in the week their first app was made: Monday to
|
|
17
|
+
// Sunday, UTC.
|
|
18
|
+
//
|
|
19
|
+
// A space deleted since takes its apps out of the directory, so a person who
|
|
20
|
+
// built and left is not counted.
|
|
21
|
+
//
|
|
22
|
+
// Beside each week's count is where its people came from: the directory's
|
|
23
|
+
// `arrived` on each person's row (workers/yak arrivals.ts), named by the most
|
|
24
|
+
// telling thing it holds (`cameFrom`).
|
|
25
|
+
import { BOT } from './bots.js'
|
|
26
|
+
|
|
27
|
+
type Row = { entity: { eid: string } } & Record<string, unknown>
|
|
28
|
+
|
|
29
|
+
/** The directory's rows the count reads: every person, with their address
|
|
30
|
+
* and where they came from (`arrived`), member, app and agent, and the eid of
|
|
31
|
+
* the `yak` space, whose owners are not outside people. Beside them, from the
|
|
32
|
+
* spaces' Operator stores, the sessions `asking` names, each with its
|
|
33
|
+
* `owner{person}`. */
|
|
34
|
+
export type Directory = {
|
|
35
|
+
meta: string
|
|
36
|
+
people: Row[]
|
|
37
|
+
members: Row[]
|
|
38
|
+
apps: Row[]
|
|
39
|
+
agents: Row[]
|
|
40
|
+
sessions: Row[]
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** One week, by its Monday (`YYYY-MM-DD`), how many outside people made
|
|
44
|
+
* their first app in it, and how many of them came from where, the most
|
|
45
|
+
* first. */
|
|
46
|
+
export type Week = { week: string; n: number; from: [string, number][] }
|
|
47
|
+
|
|
48
|
+
let comp = (r: Row, name: string) =>
|
|
49
|
+
r[name] as Record<string, unknown> | undefined
|
|
50
|
+
let idOf = (v: unknown): string | undefined =>
|
|
51
|
+
typeof v == 'string'
|
|
52
|
+
? v
|
|
53
|
+
: (v as { eid?: string } | undefined)?.eid ?? undefined
|
|
54
|
+
|
|
55
|
+
let outside = (address: string) =>
|
|
56
|
+
!address.endsWith(BOT) && !address.endsWith('.invalid')
|
|
57
|
+
|
|
58
|
+
// Who the directory says each space's owners are, which people are outside
|
|
59
|
+
// ones, and who each agent writes for.
|
|
60
|
+
let read = (d: Directory) => {
|
|
61
|
+
let owners = new Map<string, string[]>()
|
|
62
|
+
for (let m of d.members) {
|
|
63
|
+
let member = comp(m, 'member')
|
|
64
|
+
let space = idOf(member?.space), person = idOf(member?.person)
|
|
65
|
+
if (member?.role != 'owner' || !space || !person) continue
|
|
66
|
+
owners.set(space, [...owners.get(space) ?? [], person])
|
|
67
|
+
}
|
|
68
|
+
let inside = new Set(owners.get(d.meta))
|
|
69
|
+
let theirs = new Set(
|
|
70
|
+
d.people.flatMap((p) => {
|
|
71
|
+
let address = String(comp(p, 'email')?.address ?? '')
|
|
72
|
+
return address && outside(address) && !inside.has(p.entity.eid)
|
|
73
|
+
? [p.entity.eid]
|
|
74
|
+
: []
|
|
75
|
+
}),
|
|
76
|
+
)
|
|
77
|
+
let agents = new Map(
|
|
78
|
+
d.agents.flatMap((a) => {
|
|
79
|
+
let person = idOf(comp(a, 'acts_for')?.person)
|
|
80
|
+
return person ? [[a.entity.eid, person] as const] : []
|
|
81
|
+
}),
|
|
82
|
+
)
|
|
83
|
+
return { owners, theirs, agents }
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// An app's maker, when it was made, and the session it was made in.
|
|
87
|
+
let madeOf = (app: Row) => {
|
|
88
|
+
let made = comp(app, 'created')
|
|
89
|
+
let by = idOf(made?.by), at = made?.at
|
|
90
|
+
return comp(app, 'installed') || !by || typeof at != 'string'
|
|
91
|
+
? null
|
|
92
|
+
: { by, at, via: idOf(made?.via) }
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The Operator sessions the count needs to know the asker of, by space: each
|
|
97
|
+
* one that made an app in a space with an outside owner. The rest can credit
|
|
98
|
+
* no outside person whoever asked.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```ts
|
|
102
|
+
* import { assertEquals } from '@std/assert'
|
|
103
|
+
* let at = (eid: string, more = {}) => ({ entity: { eid }, ...more })
|
|
104
|
+
* let owner = (space: string, person: string) =>
|
|
105
|
+
* at(`${space}-${person}`, { member: { space, person, role: 'owner' } })
|
|
106
|
+
* let made = (eid: string, by: string, via: string) =>
|
|
107
|
+
* at(eid, { created: { by, at: '2026-11-21T00:00:00Z', via } })
|
|
108
|
+
* assertEquals(
|
|
109
|
+
* asking({
|
|
110
|
+
* meta: 'yak',
|
|
111
|
+
* people: [at('ann', { email: { address: 'ann@example.com' } })],
|
|
112
|
+
* members: [owner('s', 'ann'), owner('t', 'jeff')],
|
|
113
|
+
* apps: [made('a', 's', 'S-1'), made('b', 't', 'S-2'), made('c', 'ann', 'x')],
|
|
114
|
+
* agents: [],
|
|
115
|
+
* sessions: [],
|
|
116
|
+
* }),
|
|
117
|
+
* new Map([['s', ['S-1']]]),
|
|
118
|
+
* )
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
export let asking = (d: Directory): Map<string, string[]> => {
|
|
122
|
+
let { owners, theirs } = read(d)
|
|
123
|
+
let asks = new Map<string, string[]>()
|
|
124
|
+
for (let app of d.apps) {
|
|
125
|
+
let made = madeOf(app)
|
|
126
|
+
if (!made?.via || !owners.get(made.by)?.some((p) => theirs.has(p))) {
|
|
127
|
+
continue
|
|
128
|
+
}
|
|
129
|
+
asks.set(made.by, [...asks.get(made.by) ?? [], made.via])
|
|
130
|
+
}
|
|
131
|
+
return asks
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* When each outside person made their first app, by person.
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* ```ts
|
|
139
|
+
* import { assertEquals } from '@std/assert'
|
|
140
|
+
* let at = (eid: string, more = {}) => ({ entity: { eid }, ...more })
|
|
141
|
+
* let made = (eid: string, by: string, when: string, via?: string) =>
|
|
142
|
+
* at(eid, { app: { space: 's' }, created: { by, at: when, via } })
|
|
143
|
+
* let firsts = firstApps({
|
|
144
|
+
* meta: 'yak',
|
|
145
|
+
* people: [
|
|
146
|
+
* at('ann', { email: { address: 'ann@example.com' } }),
|
|
147
|
+
* at('cy', { email: { address: 'cy@example.com' } }),
|
|
148
|
+
* at('jeff', { email: { address: 'jeff@example.com' } }),
|
|
149
|
+
* at('bot', { email: { address: 'probe@bot.yak.sh' } }),
|
|
150
|
+
* ],
|
|
151
|
+
* members: [
|
|
152
|
+
* at('m', { member: { space: 'yak', person: 'jeff', role: 'owner' } }),
|
|
153
|
+
* at('n', { member: { space: 's', person: { eid: 'ann' }, role: 'owner' } }),
|
|
154
|
+
* at('o', { member: { space: 's', person: 'cy', role: 'owner' } }),
|
|
155
|
+
* at('p', { member: { space: 's', person: 'jeff', role: 'owner' } }),
|
|
156
|
+
* ],
|
|
157
|
+
* apps: [
|
|
158
|
+
* made('a2', 'agent', '2026-09-20T00:00:00Z'),
|
|
159
|
+
* // The space's Operator made these: at ann's asking, at jeff's, and
|
|
160
|
+
* // at nobody's the record keeps.
|
|
161
|
+
* made('a1', 's', '2026-09-18T00:00:00Z', 'S-1'),
|
|
162
|
+
* made('s2', 's', '2026-09-10T00:00:00Z', 'S-2'),
|
|
163
|
+
* made('s3', 's', '2026-09-11T00:00:00Z'),
|
|
164
|
+
* { ...made('a0', 'ann', '2026-09-01T00:00:00Z'), installed: { of: 'x' } },
|
|
165
|
+
* made('j', 'jeff', '2026-09-01T00:00:00Z'),
|
|
166
|
+
* made('b', 'bot', '2026-09-01T00:00:00Z'),
|
|
167
|
+
* ],
|
|
168
|
+
* agents: [at('agent', { acts_for: { person: 'ann' } })],
|
|
169
|
+
* sessions: [
|
|
170
|
+
* at('S-1', { owner: { person: 'ann' } }),
|
|
171
|
+
* at('S-2', { owner: { person: 'jeff' } }),
|
|
172
|
+
* ],
|
|
173
|
+
* })
|
|
174
|
+
* assertEquals(firsts, new Map([['ann', '2026-09-18T00:00:00Z']]))
|
|
175
|
+
* ```
|
|
176
|
+
*/
|
|
177
|
+
export let firstApps = (d: Directory): Map<string, string> => {
|
|
178
|
+
let { owners, theirs, agents } = read(d)
|
|
179
|
+
let asked = new Map(
|
|
180
|
+
d.sessions.flatMap((s) => {
|
|
181
|
+
let person = idOf(comp(s, 'owner')?.person)
|
|
182
|
+
return person ? [[s.entity.eid, person] as const] : []
|
|
183
|
+
}),
|
|
184
|
+
)
|
|
185
|
+
let first = new Map<string, string>()
|
|
186
|
+
for (let app of d.apps) {
|
|
187
|
+
let made = madeOf(app)
|
|
188
|
+
if (!made) continue
|
|
189
|
+
let { by, at, via } = made
|
|
190
|
+
let who = agents.get(by) ??
|
|
191
|
+
(owners.has(by) ? via && asked.get(via) : by)
|
|
192
|
+
if (!who || !theirs.has(who)) continue
|
|
193
|
+
let was = first.get(who)
|
|
194
|
+
if (!was || at < was) first.set(who, at)
|
|
195
|
+
}
|
|
196
|
+
return first
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Where each person came from, in a few words, by person: the campaign their
|
|
201
|
+
* link named, else the app whose badge they followed (by its slug), who
|
|
202
|
+
* invited them (by their address), the assistant whose connector they came
|
|
203
|
+
* by, the home page they opened, or only the way in (`login`, `box`,
|
|
204
|
+
* `email`, `text`). One who signed up before arrivals were kept is
|
|
205
|
+
* `unknown`.
|
|
206
|
+
*
|
|
207
|
+
* @example
|
|
208
|
+
* ```ts
|
|
209
|
+
* import { assertEquals } from '@std/assert'
|
|
210
|
+
* let from = cameFrom({
|
|
211
|
+
* meta: 'yak',
|
|
212
|
+
* people: [
|
|
213
|
+
* { entity: { eid: 'ann' }, email: { address: 'ann@example.com' } },
|
|
214
|
+
* { entity: { eid: 'bo' }, arrived: { door: 'login', app: { eid: 'r' } } },
|
|
215
|
+
* { entity: { eid: 'cy' }, arrived: { door: 'invitation', inviter: 'ann' } },
|
|
216
|
+
* { entity: { eid: 'di' }, arrived: { door: 'box', page: 'church', campaign: 'meta//pilot' } },
|
|
217
|
+
* ],
|
|
218
|
+
* members: [],
|
|
219
|
+
* apps: [{ entity: { eid: 'r' }, app: { slug: 'recipes' } }],
|
|
220
|
+
* agents: [],
|
|
221
|
+
* sessions: [],
|
|
222
|
+
* })
|
|
223
|
+
* assertEquals(['ann', 'bo', 'cy', 'di'].map(from), [
|
|
224
|
+
* 'unknown',
|
|
225
|
+
* 'badge of recipes',
|
|
226
|
+
* 'invited by ann@example.com',
|
|
227
|
+
* 'campaign meta//pilot',
|
|
228
|
+
* ])
|
|
229
|
+
* ```
|
|
230
|
+
*/
|
|
231
|
+
export let cameFrom = (d: Directory): (person: string) => string => {
|
|
232
|
+
let rows = new Map([...d.people, ...d.apps].map((r) => [r.entity.eid, r]))
|
|
233
|
+
// What `eid`'s row says in `name.prop`, else the eid itself.
|
|
234
|
+
let said = (eid: string, name: string, prop: string) => {
|
|
235
|
+
let r = rows.get(eid)
|
|
236
|
+
return String((r && comp(r, name)?.[prop]) ?? eid)
|
|
237
|
+
}
|
|
238
|
+
return (person) => {
|
|
239
|
+
let r = rows.get(person), a = r && comp(r, 'arrived')
|
|
240
|
+
if (!a) return 'unknown'
|
|
241
|
+
let app = idOf(a.app), inviter = idOf(a.inviter)
|
|
242
|
+
return a.campaign
|
|
243
|
+
? `campaign ${a.campaign}`
|
|
244
|
+
: app
|
|
245
|
+
? `badge of ${said(app, 'app', 'slug')}`
|
|
246
|
+
: inviter
|
|
247
|
+
? `invited by ${said(inviter, 'email', 'address')}`
|
|
248
|
+
: a.assistant
|
|
249
|
+
? `assistant ${a.assistant}`
|
|
250
|
+
: a.page
|
|
251
|
+
? `page ${a.page}`
|
|
252
|
+
: String(a.door)
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
let DAY = 86_400_000
|
|
257
|
+
|
|
258
|
+
/// monday('2026-11-19T12:00:00Z') -> '2026-11-16'
|
|
259
|
+
/// monday('2026-11-16T00:00:00Z') -> '2026-11-16'
|
|
260
|
+
/// monday('2026-11-15T23:59:59Z') -> '2026-11-09'
|
|
261
|
+
export let monday = (at: string) => {
|
|
262
|
+
let t = Date.parse(at)
|
|
263
|
+
let back = (new Date(t).getUTCDay() + 6) % 7
|
|
264
|
+
return new Date(t - back * DAY).toISOString().slice(0, 10)
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Each week from the one `from` falls in to the one `to` falls in, how many
|
|
269
|
+
* of `firsts` (when each person made their first app, by person) fell in it,
|
|
270
|
+
* none for a week with none, and where they came from (`came`).
|
|
271
|
+
*
|
|
272
|
+
* @example
|
|
273
|
+
* ```ts
|
|
274
|
+
* import { assertEquals } from '@std/assert'
|
|
275
|
+
* let firsts = new Map([
|
|
276
|
+
* ['ann', '2026-11-03T17:08:08Z'],
|
|
277
|
+
* ['bo', '2026-11-04T00:00:00Z'],
|
|
278
|
+
* ['old', '2026-09-01T00:00:00Z'],
|
|
279
|
+
* ])
|
|
280
|
+
* assertEquals(
|
|
281
|
+
* weekly(firsts, '2026-10-27', '2026-11-12', () => 'login'),
|
|
282
|
+
* [
|
|
283
|
+
* { week: '2026-10-26', n: 0, from: [] },
|
|
284
|
+
* { week: '2026-11-02', n: 2, from: [['login', 2]] },
|
|
285
|
+
* { week: '2026-11-09', n: 0, from: [] },
|
|
286
|
+
* ],
|
|
287
|
+
* )
|
|
288
|
+
* ```
|
|
289
|
+
*/
|
|
290
|
+
export let weekly = (
|
|
291
|
+
firsts: Map<string, string>,
|
|
292
|
+
from: string,
|
|
293
|
+
to: string,
|
|
294
|
+
came: (person: string) => string = () => 'unknown',
|
|
295
|
+
): Week[] => {
|
|
296
|
+
let counts = new Map<string, Map<string, number>>()
|
|
297
|
+
for (let [person, at] of firsts) {
|
|
298
|
+
let w = monday(at), source = came(person)
|
|
299
|
+
let week = counts.get(w) ?? counts.set(w, new Map()).get(w)!
|
|
300
|
+
week.set(source, (week.get(source) ?? 0) + 1)
|
|
301
|
+
}
|
|
302
|
+
let weeks: Week[] = []
|
|
303
|
+
let last = monday(to)
|
|
304
|
+
for (
|
|
305
|
+
let t = Date.parse(monday(from));
|
|
306
|
+
new Date(t).toISOString().slice(0, 10) <= last;
|
|
307
|
+
t += 7 * DAY
|
|
308
|
+
) {
|
|
309
|
+
let week = new Date(t).toISOString().slice(0, 10)
|
|
310
|
+
let from = [...counts.get(week) ?? []]
|
|
311
|
+
.sort((a, b) => b[1] - a[1] || a[0].localeCompare(b[0]))
|
|
312
|
+
weeks.push({ week, n: from.reduce((n, [, k]) => n + k, 0), from })
|
|
313
|
+
}
|
|
314
|
+
return weeks
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
let MONTHS = 'Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec'.split(' ')
|
|
318
|
+
|
|
319
|
+
/// weekSays('2026-09-14') -> 'Sep 14 to 20'
|
|
320
|
+
/// weekSays('2026-09-28') -> 'Sep 28 to Oct 4'
|
|
321
|
+
export let weekSays = (week: string) => {
|
|
322
|
+
let day = (t: number) => new Date(t)
|
|
323
|
+
let start = day(Date.parse(week)), end = day(start.getTime() + 6 * DAY)
|
|
324
|
+
let month = (d: Date) => MONTHS[d.getUTCMonth()]
|
|
325
|
+
return `${month(start)} ${start.getUTCDate()} to ${
|
|
326
|
+
month(end) == month(start) ? '' : `${month(end)} `
|
|
327
|
+
}${end.getUTCDate()}`
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* The weeks as a table a person reads: each week, its first apps, and where
|
|
332
|
+
* their people came from.
|
|
333
|
+
*
|
|
334
|
+
* @example
|
|
335
|
+
* ```ts
|
|
336
|
+
* import { assertEquals } from '@std/assert'
|
|
337
|
+
* assertEquals(
|
|
338
|
+
* firstsLines([
|
|
339
|
+
* { week: '2026-09-28', n: 0, from: [] },
|
|
340
|
+
* { week: '2026-10-05', n: 3, from: [['page church', 2], ['unknown', 1]] },
|
|
341
|
+
* ]),
|
|
342
|
+
* [
|
|
343
|
+
* "Outside people's first apps by week (Monday to Sunday, UTC):",
|
|
344
|
+
* ' Week First apps Came from',
|
|
345
|
+
* ' Sep 28 to Oct 4 0',
|
|
346
|
+
* ' Oct 5 to 11 3 page church 2, unknown 1',
|
|
347
|
+
* ],
|
|
348
|
+
* )
|
|
349
|
+
* ```
|
|
350
|
+
*/
|
|
351
|
+
export let firstsLines = (weeks: Week[]): string[] => {
|
|
352
|
+
let rows = [
|
|
353
|
+
['Week', 'First apps', 'Came from'],
|
|
354
|
+
...weeks.map((w) => [
|
|
355
|
+
weekSays(w.week),
|
|
356
|
+
String(w.n),
|
|
357
|
+
w.from.map(([source, n]) => `${source} ${n}`).join(', '),
|
|
358
|
+
]),
|
|
359
|
+
]
|
|
360
|
+
let wide = (i: number) => Math.max(...rows.map((r) => r[i].length))
|
|
361
|
+
let [week, n] = [wide(0), wide(1)]
|
|
362
|
+
return [
|
|
363
|
+
"Outside people's first apps by week (Monday to Sunday, UTC):",
|
|
364
|
+
...rows.map((r) =>
|
|
365
|
+
` ${r[0].padEnd(week)} ${r[1].padEnd(n)} ${r[2]}`.trimEnd()
|
|
366
|
+
),
|
|
367
|
+
]
|
|
368
|
+
}
|
package/friends-at.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/** The signed-in person's yaks.app friends, read from an app's query door
|
|
2
|
+
* (`.app_friends`, `.app_friend`, answered by ./app-friends.ts), and the one
|
|
3
|
+
* write that invites a friend into the app. yaks.app owns the list and the
|
|
4
|
+
* consent; an app keeps no copy. Every app's page has it as `friends` from
|
|
5
|
+
* `./api/client.js`, which reads and writes through its own doors
|
|
6
|
+
* (`friendsOver`); `friendsAt` asks an app's API over `fetch`. */ export let APP_FRIENDS = '.app_friends';
|
|
7
|
+
export let APP_FRIEND = '.app_friend';
|
|
8
|
+
let ORDER = [
|
|
9
|
+
'online',
|
|
10
|
+
'building',
|
|
11
|
+
'away',
|
|
12
|
+
'unknown'
|
|
13
|
+
];
|
|
14
|
+
/** Friends with whoever is around first, then by name. */ export let ranked = (friends)=>friends.toSorted((a, b)=>ORDER.indexOf(a.presence) - ORDER.indexOf(b.presence) || a.name.localeCompare(b.name));
|
|
15
|
+
/** The friends of whoever is signed in, read and invited through an app's
|
|
16
|
+
* `doors`; `allow` is the page that asks them to let the app see their friends. */ export let friendsOver = ({ query, apply }, allow)=>({
|
|
17
|
+
list: async ()=>{
|
|
18
|
+
let status = (await query(APP_FRIENDS))[0]?.app_friends;
|
|
19
|
+
if (!status?.signed_in) return {
|
|
20
|
+
kind: 'signed-out'
|
|
21
|
+
};
|
|
22
|
+
if (!status.allowed) return {
|
|
23
|
+
kind: 'ask',
|
|
24
|
+
allow
|
|
25
|
+
};
|
|
26
|
+
return {
|
|
27
|
+
kind: 'friends',
|
|
28
|
+
friends: ranked((await query(APP_FRIEND)).map((r)=>{
|
|
29
|
+
let f = r.app_friend;
|
|
30
|
+
return {
|
|
31
|
+
person: r.entity.eid,
|
|
32
|
+
...f
|
|
33
|
+
};
|
|
34
|
+
}))
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
invite: async (to, path, eid = crypto.randomUUID())=>{
|
|
38
|
+
let friend_invite = path == null ? {
|
|
39
|
+
to
|
|
40
|
+
} : {
|
|
41
|
+
to,
|
|
42
|
+
path
|
|
43
|
+
};
|
|
44
|
+
await apply([
|
|
45
|
+
{
|
|
46
|
+
entity: {
|
|
47
|
+
eid
|
|
48
|
+
},
|
|
49
|
+
friend_invite
|
|
50
|
+
}
|
|
51
|
+
]);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
/** The friends of whoever is signed in to the app at `api`, and inviting
|
|
55
|
+
* them to a path inside it. */ export let friendsAt = (api = new URL('./api/', document.baseURI), get = fetch)=>{
|
|
56
|
+
let base = new URL(api);
|
|
57
|
+
base.pathname = base.pathname.replace(/\/?$/, '/');
|
|
58
|
+
return friendsOver({
|
|
59
|
+
query: async (line)=>{
|
|
60
|
+
let url = new URL('query', base);
|
|
61
|
+
url.searchParams.set('q', line);
|
|
62
|
+
let answer = await get(new Request(url));
|
|
63
|
+
if (!answer.ok) throw new Error(`Friends: HTTP ${answer.status}`);
|
|
64
|
+
return await answer.json();
|
|
65
|
+
},
|
|
66
|
+
apply: async (bundles)=>{
|
|
67
|
+
let answer = await get(new Request(new URL('apply', base), {
|
|
68
|
+
method: 'POST',
|
|
69
|
+
headers: {
|
|
70
|
+
'content-type': 'application/json'
|
|
71
|
+
},
|
|
72
|
+
body: JSON.stringify(bundles)
|
|
73
|
+
}));
|
|
74
|
+
if (!answer.ok) throw new Error(`Invite: HTTP ${answer.status}`);
|
|
75
|
+
}
|
|
76
|
+
}, new URL('allow?at=friends', base).href);
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=friends-at.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"friends-at.js","sources":["./friends-at.ts"],"names":[],"mappings":"AAAA;;;;;gEAKgE,GAEhE,OAAO,IAAI,cAAc,eAAc;AACvC,OAAO,IAAI,aAAa,cAAa;AA4CrC,IAAI,QAAoB;EAAC;EAAU;EAAY;EAAQ;CAAU;AAEjE,wDAAwD,GACxD,OAAO,IAAI,SAAS,CAAC,UACnB,QAAQ,QAAQ,CAAC,CAAC,GAAG,IACnB,MAAM,OAAO,CAAC,EAAE,QAAQ,IAAI,MAAM,OAAO,CAAC,EAAE,QAAQ,KACpD,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,IAAI,GAC5B;AAEH;iFACiF,GACjF,OAAO,IAAI,cAAc,CACvB,EAAE,KAAK,EAAE,KAAK,EAAS,EACvB,QACc,CAAC;IACf,MAAM;MACJ,IAAI,SAAS,CAAC,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,EAAE;MAG5C,IAAI,CAAC,QAAQ,WAAW,OAAO;QAAE,MAAM;MAAa;MACpD,IAAI,CAAC,OAAO,OAAO,EAAE,OAAO;QAAE,MAAM;QAAO;MAAM;MACjD,OAAO;QACL,MAAM;QACN,SAAS,OAAO,CAAC,MAAM,MAAM,WAAW,EAAE,GAAG,CAAC,CAAC;UAC7C,IAAI,IAAI,EAAE,UAAU;UACpB,OAAO;YAAE,QAAQ,EAAE,MAAM,CAAC,GAAG;YAAE,GAAG,CAAC;UAAC;QACtC;MACF;IACF;IACA,QAAQ,OAAO,IAAI,MAAM,MAAM,OAAO,UAAU,EAAE;MAChD,IAAI,gBAA8B,QAAQ,OAAO;QAAE;MAAG,IAAI;QAAE;QAAI;MAAK;MACrE,MAAM,MAAM;QAAC;UAAE,QAAQ;YAAE;UAAI;UAAG;QAAc;OAAE;IAClD;EACF,CAAC,EAAC;AAEF;6BAC6B,GAC7B,OAAO,IAAI,YAAY,CACrB,MAAoB,IAAI,IAAI,UAAU,SAAS,OAAO,CAAC,EACvD,MAAW,KAAK;EAEhB,IAAI,OAAO,IAAI,IAAI;EACnB,KAAK,QAAQ,GAAG,KAAK,QAAQ,CAAC,OAAO,CAAC,QAAQ;EAC9C,OAAO,YAAY;IACjB,OAAO,OAAO;MACZ,IAAI,MAAM,IAAI,IAAI,SAAS;MAC3B,IAAI,YAAY,CAAC,GAAG,CAAC,KAAK;MAC1B,IAAI,SAAS,MAAM,IAAI,IAAI,QAAQ;MACnC,IAAI,CAAC,OAAO,EAAE,EAAE,MAAM,IAAI,MAAM,CAAC,cAAc,EAAE,OAAO,MAAM,EAAE;MAChE,OAAO,MAAM,OAAO,IAAI;IAC1B;IACA,OAAO,OAAO;MACZ,IAAI,SAAS,MAAM,IACjB,IAAI,QAAQ,IAAI,IAAI,SAAS,OAAO;QAClC,QAAQ;QACR,SAAS;UAAE,gBAAgB;QAAmB;QAC9C,MAAM,KAAK,SAAS,CAAC;MACvB;MAEF,IAAI,CAAC,OAAO,EAAE,EAAE,MAAM,IAAI,MAAM,CAAC,aAAa,EAAE,OAAO,MAAM,EAAE;IACjE;EACF,GAAG,IAAI,IAAI,oBAAoB,MAAM,IAAI;AAC3C,EAAC"}
|
package/friends-at.ts
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/** The signed-in person's yaks.app friends, read from an app's query door
|
|
2
|
+
* (`.app_friends`, `.app_friend`, answered by ./app-friends.ts), and the one
|
|
3
|
+
* write that invites a friend into the app. yaks.app owns the list and the
|
|
4
|
+
* consent; an app keeps no copy. Every app's page has it as `friends` from
|
|
5
|
+
* `./api/client.js`, which reads and writes through its own doors
|
|
6
|
+
* (`friendsOver`); `friendsAt` asks an app's API over `fetch`. */
|
|
7
|
+
|
|
8
|
+
export let APP_FRIENDS = '.app_friends'
|
|
9
|
+
export let APP_FRIEND = '.app_friend'
|
|
10
|
+
|
|
11
|
+
/** How a friend is doing on yaks.app; hidden presence is `unknown`. */
|
|
12
|
+
export type Presence = 'online' | 'building' | 'away' | 'unknown'
|
|
13
|
+
|
|
14
|
+
/** One confirmed friend: `person` is who an invitation goes to. */
|
|
15
|
+
export type Friend = {
|
|
16
|
+
person: string
|
|
17
|
+
name: string
|
|
18
|
+
avatar: string
|
|
19
|
+
presence: Presence
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** What `friend_invite` asks: a link to `path`, relative to the app's root,
|
|
23
|
+
* sent to the person `to`. */
|
|
24
|
+
export type FriendInvite = { to: string; path?: string }
|
|
25
|
+
|
|
26
|
+
/** Where the person stands: signed out, not yet allowing this app to see their
|
|
27
|
+
* friends (`allow` is the page that asks them), or their friends. */
|
|
28
|
+
export type Friends =
|
|
29
|
+
| { kind: 'signed-out' }
|
|
30
|
+
| { kind: 'ask'; allow: string }
|
|
31
|
+
| { kind: 'friends'; friends: Friend[] }
|
|
32
|
+
|
|
33
|
+
/** How the app's API is asked (default: the global `fetch`). */
|
|
34
|
+
export type Get = (request: Request) => Promise<Response>
|
|
35
|
+
|
|
36
|
+
/** A person's friends at one app: who they are, and inviting one in. */
|
|
37
|
+
export type FriendsAt = {
|
|
38
|
+
/** Read when the picker opens; the list is the person's, not the app's. */
|
|
39
|
+
list: () => Promise<Friends>
|
|
40
|
+
/** Invite a friend to `path`, relative to the app's root. It reaches them
|
|
41
|
+
* in their Friends conversation and Updates. A retry keeps its `eid`. */
|
|
42
|
+
invite: (to: string, path?: string, eid?: string) => Promise<void>
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
type Row = { entity: { eid: string } } & Record<string, unknown>
|
|
46
|
+
|
|
47
|
+
/** An app's query and apply doors, as `./api/client.js` offers them. */
|
|
48
|
+
export type Doors = {
|
|
49
|
+
query: (line: string) => Promise<Row[]>
|
|
50
|
+
apply: (bundles: Row[]) => Promise<unknown>
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
let ORDER: Presence[] = ['online', 'building', 'away', 'unknown']
|
|
54
|
+
|
|
55
|
+
/** Friends with whoever is around first, then by name. */
|
|
56
|
+
export let ranked = (friends: Friend[]): Friend[] =>
|
|
57
|
+
friends.toSorted((a, b) =>
|
|
58
|
+
ORDER.indexOf(a.presence) - ORDER.indexOf(b.presence) ||
|
|
59
|
+
a.name.localeCompare(b.name)
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
/** The friends of whoever is signed in, read and invited through an app's
|
|
63
|
+
* `doors`; `allow` is the page that asks them to let the app see their friends. */
|
|
64
|
+
export let friendsOver = (
|
|
65
|
+
{ query, apply }: Doors,
|
|
66
|
+
allow: string,
|
|
67
|
+
): FriendsAt => ({
|
|
68
|
+
list: async (): Promise<Friends> => {
|
|
69
|
+
let status = (await query(APP_FRIENDS))[0]?.app_friends as
|
|
70
|
+
| { signed_in?: boolean; allowed?: boolean }
|
|
71
|
+
| undefined
|
|
72
|
+
if (!status?.signed_in) return { kind: 'signed-out' }
|
|
73
|
+
if (!status.allowed) return { kind: 'ask', allow }
|
|
74
|
+
return {
|
|
75
|
+
kind: 'friends',
|
|
76
|
+
friends: ranked((await query(APP_FRIEND)).map((r) => {
|
|
77
|
+
let f = r.app_friend as Omit<Friend, 'person'>
|
|
78
|
+
return { person: r.entity.eid, ...f }
|
|
79
|
+
})),
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
invite: async (to, path, eid = crypto.randomUUID()): Promise<void> => {
|
|
83
|
+
let friend_invite: FriendInvite = path == null ? { to } : { to, path }
|
|
84
|
+
await apply([{ entity: { eid }, friend_invite }])
|
|
85
|
+
},
|
|
86
|
+
})
|
|
87
|
+
|
|
88
|
+
/** The friends of whoever is signed in to the app at `api`, and inviting
|
|
89
|
+
* them to a path inside it. */
|
|
90
|
+
export let friendsAt = (
|
|
91
|
+
api: string | URL = new URL('./api/', document.baseURI),
|
|
92
|
+
get: Get = fetch,
|
|
93
|
+
): FriendsAt => {
|
|
94
|
+
let base = new URL(api)
|
|
95
|
+
base.pathname = base.pathname.replace(/\/?$/, '/')
|
|
96
|
+
return friendsOver({
|
|
97
|
+
query: async (line) => {
|
|
98
|
+
let url = new URL('query', base)
|
|
99
|
+
url.searchParams.set('q', line)
|
|
100
|
+
let answer = await get(new Request(url))
|
|
101
|
+
if (!answer.ok) throw new Error(`Friends: HTTP ${answer.status}`)
|
|
102
|
+
return await answer.json()
|
|
103
|
+
},
|
|
104
|
+
apply: async (bundles) => {
|
|
105
|
+
let answer = await get(
|
|
106
|
+
new Request(new URL('apply', base), {
|
|
107
|
+
method: 'POST',
|
|
108
|
+
headers: { 'content-type': 'application/json' },
|
|
109
|
+
body: JSON.stringify(bundles),
|
|
110
|
+
}),
|
|
111
|
+
)
|
|
112
|
+
if (!answer.ok) throw new Error(`Invite: HTTP ${answer.status}`)
|
|
113
|
+
},
|
|
114
|
+
}, new URL('allow?at=friends', base).href)
|
|
115
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Friends page in the browser (D-475 step 3): drawn again from the tab's
|
|
3
|
+
* page graph as the person's account row moves, and "Show when I'm online"
|
|
4
|
+
* saved through it (./account-browser.ts). Friends themselves are the dock's
|
|
5
|
+
* (./friends-dock-browser.ts).
|
|
6
|
+
*
|
|
7
|
+
* The view is `[data-view="friends"]`, saying what it draws for in
|
|
8
|
+
* `data-friends-view` (`FriendsView`).
|
|
9
|
+
*
|
|
10
|
+
* @module
|
|
11
|
+
*/ import { fragment } from "@yaks/html/dom";
|
|
12
|
+
import { leaving, morph, PAGE } from "@yaks/ui/navigate";
|
|
13
|
+
import { ACCOUNT, accountOf, accountWords } from "./account-rows.js";
|
|
14
|
+
import { savesAccount } from "./account-browser.js";
|
|
15
|
+
import { friendsView } from "./friends-view.js";
|
|
16
|
+
import { pageGraph } from "./page-graph.js";
|
|
17
|
+
/** The Friends view. */ export let VIEW = '[data-view="friends"]';
|
|
18
|
+
// What a redraw leaves: the rows the page carried for its first paint.
|
|
19
|
+
let KEPT = {
|
|
20
|
+
leave: (n)=>n.localName == 'script'
|
|
21
|
+
};
|
|
22
|
+
/** Draw `root` again from the account rows `graph` holds for it. */ export let drawFriends = (root, view, rows)=>{
|
|
23
|
+
let account = accountOf(rows);
|
|
24
|
+
if (!account) return;
|
|
25
|
+
let next = root.cloneNode(false);
|
|
26
|
+
next.append(fragment(root.ownerDocument, friendsView(view, account)));
|
|
27
|
+
morph(root, next, KEPT);
|
|
28
|
+
};
|
|
29
|
+
/** Keep the Friends view `root` drawn from `graph`, and save its setting
|
|
30
|
+
* through it; the answer lets go. */ export let bindFriends = (root, graph)=>{
|
|
31
|
+
let view = JSON.parse(root.dataset.friendsView);
|
|
32
|
+
let account = graph.watch(ACCOUNT);
|
|
33
|
+
let draw = ()=>{
|
|
34
|
+
drawFriends(root, view, account.value);
|
|
35
|
+
savesAccount(root, graph, view.person, ()=>account.value);
|
|
36
|
+
};
|
|
37
|
+
let off = account.subscribe(draw);
|
|
38
|
+
draw();
|
|
39
|
+
return ()=>{
|
|
40
|
+
off();
|
|
41
|
+
account.close();
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
let start = (doc = document)=>{
|
|
45
|
+
let bound = new Set();
|
|
46
|
+
let each = ()=>{
|
|
47
|
+
for (let root of doc.querySelectorAll(VIEW)){
|
|
48
|
+
if (bound.has(root)) continue;
|
|
49
|
+
bound.add(root);
|
|
50
|
+
let { person } = JSON.parse(root.dataset.friendsView);
|
|
51
|
+
let stop = bindFriends(root, pageGraph([
|
|
52
|
+
accountWords
|
|
53
|
+
], person));
|
|
54
|
+
leaving(doc).addEventListener('abort', ()=>{
|
|
55
|
+
bound.delete(root);
|
|
56
|
+
stop();
|
|
57
|
+
}, {
|
|
58
|
+
once: true
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
each();
|
|
63
|
+
doc.addEventListener(PAGE, each);
|
|
64
|
+
};
|
|
65
|
+
if (typeof document != 'undefined') start();
|
|
66
|
+
//# sourceMappingURL=friends-browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"friends-browser.js","sources":["./friends-browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;CAUC,GACD,SAAS,QAAQ,8BAAmC;AAEpD,SAAS,OAAO,EAAE,KAAK,EAAE,IAAI,iCAAsC;AACnE,SAAS,OAAO,EAAE,SAAS,EAAE,YAAY,4BAA2B;AACpE,SAAS,YAAY,+BAA8B;AACnD,SAA2B,WAAW,4BAA2B;AACjE,SAAS,SAAS,0BAAyB;AAE3C,sBAAsB,GACtB,OAAO,IAAI,OAAO,wBAAuB;AAEzC,uEAAuE;AACvE,IAAI,OAAO;EAAE,OAAO,CAAC,IAAY,AAAC,EAAc,SAAS,IAAI;AAAS;AAEtE,kEAAkE,GAClE,OAAO,IAAI,cAAc,CACvB,MACA,MACA;EAEA,IAAI,UAAU,UAAU;EACxB,IAAI,CAAC,SAAS;EACd,IAAI,OAAO,KAAK,SAAS,CAAC;EAC1B,KAAK,MAAM,CAAC,SAAS,KAAK,aAAa,EAAE,YAAY,MAAM;EAC3D,MAAM,MAAM,MAAM;AACpB,EAAC;AAED;mCACmC,GACnC,OAAO,IAAI,cAAc,CACvB,MACA;EAEA,IAAI,OAAO,KAAK,KAAK,CAAC,KAAK,OAAO,CAAC,WAAW;EAC9C,IAAI,UAAU,MAAM,KAAK,CAAC;EAC1B,IAAI,OAAO;IACT,YAAY,MAAM,MAAM,QAAQ,KAAK;IACrC,aAAa,MAAM,OAAO,KAAK,MAAM,EAAE,IAAM,QAAQ,KAAK;EAC5D;EACA,IAAI,MAAM,QAAQ,SAAS,CAAC;EAC5B;EACA,OAAO;IACL;IACA,QAAQ,KAAK;EACf;AACF,EAAC;AAED,IAAI,QAAQ,CAAC,MAAgB,QAAQ;EACnC,IAAI,QAAQ,IAAI;EAChB,IAAI,OAAO;IACT,KAAK,IAAI,QAAQ,IAAI,gBAAgB,CAAc,MAAO;MACxD,IAAI,MAAM,GAAG,CAAC,OAAO;MACrB,MAAM,GAAG,CAAC;MACV,IAAI,EAAE,MAAM,EAAE,GAAG,KAAK,KAAK,CAAC,KAAK,OAAO,CAAC,WAAW;MACpD,IAAI,OAAO,YAAY,MAAM,UAAU;QAAC;OAAa,EAAE;MACvD,QAAQ,KAAK,gBAAgB,CAAC,SAAS;QACrC,MAAM,MAAM,CAAC;QACb;MACF,GAAG;QAAE,MAAM;MAAK;IAClB;EACF;EACA;EACA,IAAI,gBAAgB,CAAC,MAAM;AAC7B;AAEA,IAAI,OAAO,YAAY,aAAa"}
|