@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/operator-docs.ts
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
// What an Operator writes outside a conversation, a call's notes and any
|
|
2
|
+
// summary, report or transcript it makes off the chat, is a doc of its own
|
|
3
|
+
// in the space's store: `doc{title, body}`, wearing `output{source}` for the
|
|
4
|
+
// request it answers, which names its source (a call's notes request names
|
|
5
|
+
// the line where the call began, `operator_request.about`). Notes recovered
|
|
6
|
+
// from an Update without a request can name that line directly. Search finds it
|
|
7
|
+
// like any doc, and the person's Update only points to it
|
|
8
|
+
// (`notification{about}`), so dismissing the Update loses nothing.
|
|
9
|
+
//
|
|
10
|
+
// Whose it is follows whom it was written for: one person's (a phone call's
|
|
11
|
+
// caller) is written in their conversation, which makes it theirs
|
|
12
|
+
// (./operator-owner.ts `MADE`); the space's (a voice room's) is written in
|
|
13
|
+
// none, and is everyone's in it.
|
|
14
|
+
//
|
|
15
|
+
// Notes kept before were only an Update's words: `madeBackfill` moves each
|
|
16
|
+
// into its doc in bounded alarm batches, and points the Update to it.
|
|
17
|
+
//
|
|
18
|
+
// A call shows in its conversation where it began, as a line naming how
|
|
19
|
+
// long it went on, which opens its notes (`callsOf`).
|
|
20
|
+
import type { Bundle, Comp, Graph } from 'jsr:@yaks/graph@0.2.36'
|
|
21
|
+
import type { Meta } from 'jsr:@yaks/sqlite@0.2.36'
|
|
22
|
+
import { derivedEid } from '@yaks/graph/identity'
|
|
23
|
+
import { line, sub } from '@yaks/query'
|
|
24
|
+
|
|
25
|
+
/** The doc an answer is kept as, by the answer's eid. */
|
|
26
|
+
export let madeOf = (answer: string): string =>
|
|
27
|
+
derivedEid('operator-made|' + answer)
|
|
28
|
+
|
|
29
|
+
/** The Update the answer to a request on a channel answered in Updates was
|
|
30
|
+
* told as, by the answer's eid (operator-updates.ts `notification`'s `id`). */
|
|
31
|
+
export let toldOf = (answer: string): string =>
|
|
32
|
+
derivedEid('operator-told|' + answer)
|
|
33
|
+
|
|
34
|
+
/** What the Update pointing to a doc says, below its subject. */
|
|
35
|
+
export let POINTED =
|
|
36
|
+
'I kept them in the space, where I can find them for you any time.'
|
|
37
|
+
|
|
38
|
+
/** What an Operator made off the chat, as a doc. */
|
|
39
|
+
export type Made = {
|
|
40
|
+
/** the answer its words are, which names it (`madeOf`) */
|
|
41
|
+
answer: string
|
|
42
|
+
/** the request it answers, which names its source */
|
|
43
|
+
request: string
|
|
44
|
+
title: string
|
|
45
|
+
body: string
|
|
46
|
+
/** whose it is: a person's conversation, or none for the space's */
|
|
47
|
+
via?: string
|
|
48
|
+
/** the space, which wrote it */
|
|
49
|
+
by: string
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** Whether `b` is a doc an Operator made off the chat: a doc that is a
|
|
53
|
+
* model's answer to a request. */
|
|
54
|
+
export let isMade = (b: Bundle): boolean => !!b.doc && !!b.output
|
|
55
|
+
|
|
56
|
+
/** A doc's row. */
|
|
57
|
+
export let madeDoc = (
|
|
58
|
+
{ answer, request, title, body, via, by }: Made,
|
|
59
|
+
): Bundle => ({
|
|
60
|
+
entity: { eid: madeOf(answer) },
|
|
61
|
+
doc: { title, body },
|
|
62
|
+
output: { source: request },
|
|
63
|
+
$actor: { by, ...via ? { via } : {} },
|
|
64
|
+
})
|
|
65
|
+
|
|
66
|
+
/** Where an Operator store says its notes kept as Updates are docs: the
|
|
67
|
+
* newest request moved, while the pass goes on, then `done`. */
|
|
68
|
+
export let MADE_DOCS = 'operator:made-docs'
|
|
69
|
+
|
|
70
|
+
/** How many requests one batch moves the notes of. */
|
|
71
|
+
export let BATCH = 50
|
|
72
|
+
|
|
73
|
+
let comp = (b: Bundle | undefined, name: string) =>
|
|
74
|
+
b?.[name] as Comp | undefined
|
|
75
|
+
|
|
76
|
+
/** One batch of the pass: the next notes requests, each answer's Update
|
|
77
|
+
* holding the notes moved into its doc and pointed to it. `root` is a
|
|
78
|
+
* person's conversation in the space, which a person's notes are written in.
|
|
79
|
+
* Answers whether another alarm has work. A store kept nowhere was made in
|
|
80
|
+
* memory with docs, and owes no pass. */
|
|
81
|
+
export let madeBackfill = async (store: {
|
|
82
|
+
g: Graph
|
|
83
|
+
marks?: Pick<Meta, 'get' | 'set'>
|
|
84
|
+
waiting?: () => number
|
|
85
|
+
}, root: (space: string, person: string) => Promise<string>): Promise<
|
|
86
|
+
boolean
|
|
87
|
+
> => {
|
|
88
|
+
let { g, marks } = store
|
|
89
|
+
let since = marks?.get(MADE_DOCS)
|
|
90
|
+
if (!marks || since == 'done') return false
|
|
91
|
+
if (store.waiting?.()) return true
|
|
92
|
+
let requests = await g.read(
|
|
93
|
+
line`.operator_request.channel=notes${
|
|
94
|
+
sub(since ? line`&.created.at>${since}` : line``)
|
|
95
|
+
}&.order=created.at&.limit=${BATCH}&.fields=entity.eid,operator_request.space,operator_request.person,created.at`,
|
|
96
|
+
)
|
|
97
|
+
let ids = requests.map((r) => r.entity.eid)
|
|
98
|
+
let answers = ids.length
|
|
99
|
+
? await g.read(
|
|
100
|
+
line`.operator_answer.request=${ids}&.fields=entity.eid,operator_answer.request`,
|
|
101
|
+
)
|
|
102
|
+
: []
|
|
103
|
+
let told = new Map(
|
|
104
|
+
(await g.get(answers.map((a) => toldOf(a.entity.eid))))
|
|
105
|
+
.flatMap((b) => b ? [[b.entity.eid, b]] : []),
|
|
106
|
+
)
|
|
107
|
+
let asked = new Map(requests.map((r) => [r.entity.eid, r]))
|
|
108
|
+
let moved = await Promise.all(answers.map(async (a) => {
|
|
109
|
+
let notice = told.get(toldOf(a.entity.eid))
|
|
110
|
+
let note = comp(notice, 'notification')
|
|
111
|
+
if (!note || note.about) return []
|
|
112
|
+
let request = String(comp(a, 'operator_answer')!.request)
|
|
113
|
+
let held = comp(asked.get(request), 'operator_request')!
|
|
114
|
+
let space = String(held.space)
|
|
115
|
+
let doc = comp(notice, 'doc')
|
|
116
|
+
let made = madeDoc({
|
|
117
|
+
answer: a.entity.eid,
|
|
118
|
+
request,
|
|
119
|
+
title: String(doc?.title ?? 'Notes of the call'),
|
|
120
|
+
body: String(doc?.body ?? ''),
|
|
121
|
+
by: space,
|
|
122
|
+
...note.to == space
|
|
123
|
+
? {}
|
|
124
|
+
: { via: await root(space, String(held.person)) },
|
|
125
|
+
})
|
|
126
|
+
return [made, {
|
|
127
|
+
entity: notice!.entity,
|
|
128
|
+
notification: { about: made.entity.eid },
|
|
129
|
+
doc: { body: POINTED },
|
|
130
|
+
}]
|
|
131
|
+
}))
|
|
132
|
+
let rows = moved.flat()
|
|
133
|
+
if (rows.length) await g.apply(rows, { trusted: true })
|
|
134
|
+
let last = requests.at(-1)
|
|
135
|
+
if (requests.length < BATCH) marks.set(MADE_DOCS, 'done')
|
|
136
|
+
else marks.set(MADE_DOCS, String(comp(last, 'created')!.at))
|
|
137
|
+
return requests.length == BATCH
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/** A call as its conversation draws it, where it began: the line it came on
|
|
141
|
+
* as a person names it, how long it went on, and the docs made of it. */
|
|
142
|
+
export type Called = {
|
|
143
|
+
/** "Discord", "Phone"; none for a call kept before lines named theirs */
|
|
144
|
+
via?: string
|
|
145
|
+
seconds: number
|
|
146
|
+
notes: { title: string; body: string }[]
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/** The calls that began among `entries`, by the entry each began at, read
|
|
150
|
+
* from the graph: every line kept of each call and the docs sourced from
|
|
151
|
+
* where it began or from notes requests about it. `title` names a line a
|
|
152
|
+
* call came on (`operator_call.via`). */
|
|
153
|
+
export let callsOf = async (
|
|
154
|
+
g: Pick<Graph, 'read'>,
|
|
155
|
+
entries: Bundle[],
|
|
156
|
+
title: (via: string) => string,
|
|
157
|
+
): Promise<Record<string, Called>> => {
|
|
158
|
+
let began = entries.filter((b) => comp(b, 'operator_call')?.began)
|
|
159
|
+
if (!began.length) return {}
|
|
160
|
+
let ids = began.map((b) => b.entity.eid)
|
|
161
|
+
let calls = began.map((b) => String(comp(b, 'operator_call')!.call))
|
|
162
|
+
let [lines, asked] = await Promise.all([
|
|
163
|
+
g.read(
|
|
164
|
+
line`.operator_call.call=${calls}&.fields=operator_call.call,created.at`,
|
|
165
|
+
),
|
|
166
|
+
g.read(
|
|
167
|
+
line`.operator_request.channel=notes&.operator_request.about=${ids}&.order=created.at&.fields=entity.eid,operator_request.about`,
|
|
168
|
+
),
|
|
169
|
+
])
|
|
170
|
+
let sources = [...ids, ...asked.map((r) => r.entity.eid)]
|
|
171
|
+
let docs = await g.read(
|
|
172
|
+
line`.output.source=${sources}&.doc&.fields=doc.title,doc.body,output.source`,
|
|
173
|
+
)
|
|
174
|
+
let at = (b: Bundle) => Date.parse(String(comp(b, 'created')?.at ?? ''))
|
|
175
|
+
return Object.fromEntries(began.map((b, i) => {
|
|
176
|
+
let times = lines.filter((l) => comp(l, 'operator_call')?.call == calls[i])
|
|
177
|
+
.map(at).filter(Number.isFinite)
|
|
178
|
+
let about = new Set([
|
|
179
|
+
ids[i],
|
|
180
|
+
...asked.filter((r) => comp(r, 'operator_request')?.about == ids[i])
|
|
181
|
+
.map((r) => r.entity.eid),
|
|
182
|
+
])
|
|
183
|
+
let via = comp(b, 'operator_call')?.via
|
|
184
|
+
return [ids[i], {
|
|
185
|
+
...via ? { via: title(String(via)) } : {},
|
|
186
|
+
seconds: times.length
|
|
187
|
+
? Math.round((Math.max(...times) - Math.min(...times)) / 1000)
|
|
188
|
+
: 0,
|
|
189
|
+
notes: docs.filter((d) => about.has(String(comp(d, 'output')?.source)))
|
|
190
|
+
.map((d) => ({
|
|
191
|
+
title: String(comp(d, 'doc')?.title ?? ''),
|
|
192
|
+
body: String(comp(d, 'doc')?.body ?? ''),
|
|
193
|
+
})),
|
|
194
|
+
}]
|
|
195
|
+
}))
|
|
196
|
+
}
|
package/operator-door.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Whether the Builder can repeat this call if the connection is cut.
|
|
2
|
+
* Opening a conversation reads it and can mark its notices read. Chat intake
|
|
3
|
+
* with a request ID keeps the message and its draft spend under that same ID
|
|
4
|
+
* across sends. */ export let replayableOperatorCall = (path, args)=>{
|
|
5
|
+
if (path == 'conversation' || path == 'tasks') return true;
|
|
6
|
+
let call = args;
|
|
7
|
+
let id = call?.options?.id;
|
|
8
|
+
return path == 'receive' && call?.request?.channel == 'chat' && typeof id == 'string' && id.length > 0;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=operator-door.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operator-door.js","sources":["./operator-door.ts"],"names":[],"mappings":"AAAA;;;iBAGiB,GACjB,OAAO,IAAI,yBAAyB,CAAC,MAAc;EACjD,IAAI,QAAQ,kBAAkB,QAAQ,SAAS,OAAO;EACtD,IAAI,OAAO;EAIX,IAAI,KAAK,MAAM,SAAS;EACxB,OAAO,QAAQ,aAAa,MAAM,SAAS,WAAW,UACpD,OAAO,MAAM,YAAY,GAAG,MAAM,GAAG;AACzC,EAAC"}
|
package/operator-door.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Whether the Builder can repeat this call if the connection is cut.
|
|
2
|
+
* Opening a conversation reads it and can mark its notices read. Chat intake
|
|
3
|
+
* with a request ID keeps the message and its draft spend under that same ID
|
|
4
|
+
* across sends. */
|
|
5
|
+
export let replayableOperatorCall = (path: string, args: unknown): boolean => {
|
|
6
|
+
if (path == 'conversation' || path == 'tasks') return true
|
|
7
|
+
let call = args as {
|
|
8
|
+
request?: { channel?: unknown }
|
|
9
|
+
options?: { id?: unknown }
|
|
10
|
+
} | null
|
|
11
|
+
let id = call?.options?.id
|
|
12
|
+
return path == 'receive' && call?.request?.channel == 'chat' &&
|
|
13
|
+
typeof id == 'string' && id.length > 0
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A person's drafts in a space's Operator store, kept in the tab's page
|
|
3
|
+
* graph (./operator-drafts.ts): the store a draft desk asks of
|
|
4
|
+
* (@yaks/draft/browser `browserDrafts`), the line it watches, and whether
|
|
5
|
+
* the page graph's socket is open, which says whether a draft has reached
|
|
6
|
+
* the store or is kept on this device.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/ import { draftDoc } from "@yaks/draft/vocab";
|
|
10
|
+
import { pageGraph } from "./page-graph.js";
|
|
11
|
+
import { draftStore, operatorDrafts, operatorDraftWords } from "./operator-drafts.js";
|
|
12
|
+
/** `person`'s drafts in the Operator store of the space `space`. */ export let pageDrafts = (space, person, open = pageGraph)=>{
|
|
13
|
+
let graph = open([
|
|
14
|
+
draftDoc,
|
|
15
|
+
operatorDraftWords
|
|
16
|
+
], person);
|
|
17
|
+
return {
|
|
18
|
+
store: draftStore(graph, space, person),
|
|
19
|
+
line: ()=>operatorDrafts(space),
|
|
20
|
+
/** be told whether the page graph's socket is open now, and each time
|
|
21
|
+
* it opens (true) or closes */ connected: (fn)=>{
|
|
22
|
+
let off = graph.wire?.onConnection(fn) ?? (()=>{});
|
|
23
|
+
fn(graph.wire?.connected() ?? false);
|
|
24
|
+
return off;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=operator-drafts-browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operator-drafts-browser.js","sources":["./operator-drafts-browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;CAQC,GACD,SAAS,QAAQ,iCAAsC;AACvD,SAAS,SAAS,0BAAyB;AAC3C,SACE,UAAU,EACV,cAAc,EACd,kBAAkB,+BACS;AAE7B,kEAAkE,GAClE,OAAO,IAAI,aAAa,CAAC,OAAe,QAAgB,OAAO,SAAS;EACtE,IAAI,QAAQ,KAAK;IAAC;IAAU;GAAmB,EAAE;EACjD,OAAO;IACL,OAAO,WAAW,OAAO,OAAO;IAChC,MAAM,IAAM,eAAe;IAC3B;iCAC6B,GAC7B,WAAW,CAAC;MACV,IAAI,MAAM,MAAM,IAAI,EAAE,aAAa,OAAO,CAAC,KAAO,CAAC;MACnD,GAAG,MAAM,IAAI,EAAE,eAAe;MAC9B,OAAO;IACT;EACF;AACF,EAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A person's drafts in a space's Operator store, kept in the tab's page
|
|
3
|
+
* graph (./operator-drafts.ts): the store a draft desk asks of
|
|
4
|
+
* (@yaks/draft/browser `browserDrafts`), the line it watches, and whether
|
|
5
|
+
* the page graph's socket is open, which says whether a draft has reached
|
|
6
|
+
* the store or is kept on this device.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import { draftDoc } from '@yaks/draft/vocab'
|
|
11
|
+
import { pageGraph } from './page-graph.js'
|
|
12
|
+
import {
|
|
13
|
+
draftStore,
|
|
14
|
+
operatorDrafts,
|
|
15
|
+
operatorDraftWords,
|
|
16
|
+
} from './operator-drafts.js'
|
|
17
|
+
|
|
18
|
+
/** `person`'s drafts in the Operator store of the space `space`. */
|
|
19
|
+
export let pageDrafts = (space: string, person: string, open = pageGraph) => {
|
|
20
|
+
let graph = open([draftDoc, operatorDraftWords], person)
|
|
21
|
+
return {
|
|
22
|
+
store: draftStore(graph, space, person),
|
|
23
|
+
line: () => operatorDrafts(space),
|
|
24
|
+
/** be told whether the page graph's socket is open now, and each time
|
|
25
|
+
* it opens (true) or closes */
|
|
26
|
+
connected: (fn: (open: boolean) => void): () => void => {
|
|
27
|
+
let off = graph.wire?.onConnection(fn) ?? (() => {})
|
|
28
|
+
fn(graph.wire?.connected() ?? false)
|
|
29
|
+
return off
|
|
30
|
+
},
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A person's drafts in a space's Operator store, held in the tab's page
|
|
3
|
+
* graph (D-475 step 4): the line `operatorDrafts(space)`, which the store
|
|
4
|
+
* answers as a live read of the person (operator-api.ts) with each of their
|
|
5
|
+
* drafts (@yaks/draft) marked `operatorDraft{space}`, so the page graph keeps
|
|
6
|
+
* one space's drafts apart from another's. A write of drafts carries the
|
|
7
|
+
* same mark, and the page graph's door sends it to that space's store
|
|
8
|
+
* (reach-door.ts).
|
|
9
|
+
*
|
|
10
|
+
* @module
|
|
11
|
+
*/ import operatorDraftsJson from './vocab/operator-drafts.vocab.json' with {
|
|
12
|
+
type: 'json'
|
|
13
|
+
};
|
|
14
|
+
let LINE = /^\.operatorDraft\.space=([^&]+)&\*$/;
|
|
15
|
+
/** The person's drafts in the Operator store of the space `eid`, whole: a
|
|
16
|
+
* draft desk reads their `draft`. */ export let operatorDrafts = (eid)=>`.operatorDraft.space=${eid}&*`;
|
|
17
|
+
/** The space an `operatorDrafts` line asks about, or undefined for another
|
|
18
|
+
* line. */ export let draftsSpace = (line)=>LINE.exec(line)?.[1];
|
|
19
|
+
export let operatorDraftWords = operatorDraftsJson;
|
|
20
|
+
/** The drafts `rows` of the space `space`, as its line answers them and a
|
|
21
|
+
* write of them is sent. */ export let draftRows = (space, rows)=>rows.map((r)=>({
|
|
22
|
+
...r,
|
|
23
|
+
operatorDraft: {
|
|
24
|
+
space
|
|
25
|
+
}
|
|
26
|
+
}));
|
|
27
|
+
/** The space whose Operator store every one of `bundles` is written to, and
|
|
28
|
+
* the bundles as the store takes them; undefined unless they all name the
|
|
29
|
+
* same one. */ export let operatorWrite = (bundles)=>{
|
|
30
|
+
let spaces = new Set(bundles.map((b)=>b.operatorDraft?.space));
|
|
31
|
+
let [space] = spaces;
|
|
32
|
+
if (spaces.size != 1 || typeof space != 'string') return undefined;
|
|
33
|
+
return {
|
|
34
|
+
space,
|
|
35
|
+
bundles: bundles.map(({ operatorDraft: _, ...b })=>b)
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
/** The Operator store of the space `space`, as a draft desk asks of a store
|
|
39
|
+
* (@yaks/draft `Store`), through the page graph `graph`, for `person`. The
|
|
40
|
+
* desk shows typing immediately. Send the entire write to the store for
|
|
41
|
+
* merging, including the `typed` event that a local commit would consume. */ export let draftStore = (graph, space, person)=>({
|
|
42
|
+
me: ()=>Promise.resolve({
|
|
43
|
+
person
|
|
44
|
+
}),
|
|
45
|
+
apply: async (bundles)=>({
|
|
46
|
+
bundles: await graph.mutate(draftRows(space, bundles), {
|
|
47
|
+
optimistic: false
|
|
48
|
+
})
|
|
49
|
+
}),
|
|
50
|
+
subscribe: (query, hear)=>{
|
|
51
|
+
let watch = graph.watch(query);
|
|
52
|
+
let off = watch.subscribe(hear);
|
|
53
|
+
if (watch.ready) hear(watch.value);
|
|
54
|
+
return ()=>{
|
|
55
|
+
off();
|
|
56
|
+
watch.close();
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
//# sourceMappingURL=operator-drafts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operator-drafts.js","sources":["./operator-drafts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;CAUC,GAKD,OAAO,wBAAwB,0CAA0C;EACvE,MAAM;AACR,EAAC;AAED,IAAI,OAAO;AAEX;mCACmC,GACnC,OAAO,IAAI,iBAAiB,CAAC,MAC3B,CAAC,qBAAqB,EAAE,IAAI,EAAE,CAAC,CAAA;AAEjC;SACS,GACT,OAAO,IAAI,cAAc,CAAC,OACxB,KAAK,IAAI,CAAC,OAAO,CAAC,EAAE,CAAA;AAEtB,OAAO,IAAI,qBAA+B,mBAA8B;AAExE;0BAC0B,GAC1B,OAAO,IAAI,YAAY,CAAC,OAAe,OACrC,KAAK,GAAG,CAAC,CAAC,IAAM,CAAC;MAAE,GAAG,CAAC;MAAE,eAAe;QAAE;MAAM;IAAE,CAAC,GAAE;AAEvD;;aAEa,GACb,OAAO,IAAI,gBAAgB,CACzB;EAEA,IAAI,SAAS,IAAI,IACf,QAAQ,GAAG,CAAC,CAAC,IAAO,EAAE,aAAa,EAA0B;EAE/D,IAAI,CAAC,MAAM,GAAG;EACd,IAAI,OAAO,IAAI,IAAI,KAAK,OAAO,SAAS,UAAU,OAAO;EACzD,OAAO;IACL;IACA,SAAS,QAAQ,GAAG,CAAC,CAAC,EAAE,eAAe,CAAC,EAAE,GAAG,GAAG,GAAK;EACvD;AACF,EAAC;AAED;;;2EAG2E,GAC3E,OAAO,IAAI,aAAa,CACtB,OACA,OACA,SACU,CAAC;IACX,IAAI,IAAM,QAAQ,OAAO,CAAC;QAAE;MAAO;IACnC,OAAO,OAAO,UAAY,CAAC;QACzB,SAAS,MAAM,MAAM,MAAM,CAAC,UAAU,OAAO,UAAU;UACrD,YAAY;QACd;MACF,CAAC;IACD,WAAW,CAAC,OAAO;MACjB,IAAI,QAAQ,MAAM,KAAK,CAAC;MACxB,IAAI,MAAM,MAAM,SAAS,CAAC;MAC1B,IAAI,MAAM,KAAK,EAAE,KAAK,MAAM,KAAK;MACjC,OAAO;QACL;QACA,MAAM,KAAK;MACb;IACF;EACF,CAAC,EAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A person's drafts in a space's Operator store, held in the tab's page
|
|
3
|
+
* graph (D-475 step 4): the line `operatorDrafts(space)`, which the store
|
|
4
|
+
* answers as a live read of the person (operator-api.ts) with each of their
|
|
5
|
+
* drafts (@yaks/draft) marked `operatorDraft{space}`, so the page graph keeps
|
|
6
|
+
* one space's drafts apart from another's. A write of drafts carries the
|
|
7
|
+
* same mark, and the page graph's door sends it to that space's store
|
|
8
|
+
* (reach-door.ts).
|
|
9
|
+
*
|
|
10
|
+
* @module
|
|
11
|
+
*/
|
|
12
|
+
import type { Bundle } from 'jsr:@yaks/graph@0.2.36'
|
|
13
|
+
import type { VocabDoc } from 'jsr:@yaks/vocab@0.2.36'
|
|
14
|
+
import type { Client } from 'jsr:@yaks/client@0.2.36'
|
|
15
|
+
import type { Store } from 'jsr:@yaks/draft@0.2.36/browser'
|
|
16
|
+
import operatorDraftsJson from './vocab/operator-drafts.vocab.json' with {
|
|
17
|
+
type: 'json',
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
let LINE = /^\.operatorDraft\.space=([^&]+)&\*$/
|
|
21
|
+
|
|
22
|
+
/** The person's drafts in the Operator store of the space `eid`, whole: a
|
|
23
|
+
* draft desk reads their `draft`. */
|
|
24
|
+
export let operatorDrafts = (eid: string): string =>
|
|
25
|
+
`.operatorDraft.space=${eid}&*`
|
|
26
|
+
|
|
27
|
+
/** The space an `operatorDrafts` line asks about, or undefined for another
|
|
28
|
+
* line. */
|
|
29
|
+
export let draftsSpace = (line: string): string | undefined =>
|
|
30
|
+
LINE.exec(line)?.[1]
|
|
31
|
+
|
|
32
|
+
export let operatorDraftWords: VocabDoc = operatorDraftsJson as VocabDoc
|
|
33
|
+
|
|
34
|
+
/** The drafts `rows` of the space `space`, as its line answers them and a
|
|
35
|
+
* write of them is sent. */
|
|
36
|
+
export let draftRows = (space: string, rows: Bundle[]): Bundle[] =>
|
|
37
|
+
rows.map((r) => ({ ...r, operatorDraft: { space } }))
|
|
38
|
+
|
|
39
|
+
/** The space whose Operator store every one of `bundles` is written to, and
|
|
40
|
+
* the bundles as the store takes them; undefined unless they all name the
|
|
41
|
+
* same one. */
|
|
42
|
+
export let operatorWrite = (
|
|
43
|
+
bundles: Bundle[],
|
|
44
|
+
): { space: string; bundles: Bundle[] } | undefined => {
|
|
45
|
+
let spaces = new Set(
|
|
46
|
+
bundles.map((b) => (b.operatorDraft as { space?: unknown })?.space),
|
|
47
|
+
)
|
|
48
|
+
let [space] = spaces
|
|
49
|
+
if (spaces.size != 1 || typeof space != 'string') return undefined
|
|
50
|
+
return {
|
|
51
|
+
space,
|
|
52
|
+
bundles: bundles.map(({ operatorDraft: _, ...b }) => b as Bundle),
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** The Operator store of the space `space`, as a draft desk asks of a store
|
|
57
|
+
* (@yaks/draft `Store`), through the page graph `graph`, for `person`. The
|
|
58
|
+
* desk shows typing immediately. Send the entire write to the store for
|
|
59
|
+
* merging, including the `typed` event that a local commit would consume. */
|
|
60
|
+
export let draftStore = (
|
|
61
|
+
graph: Pick<Client, 'mutate' | 'watch'>,
|
|
62
|
+
space: string,
|
|
63
|
+
person: string,
|
|
64
|
+
): Store => ({
|
|
65
|
+
me: () => Promise.resolve({ person }),
|
|
66
|
+
apply: async (bundles) => ({
|
|
67
|
+
bundles: await graph.mutate(draftRows(space, bundles), {
|
|
68
|
+
optimistic: false,
|
|
69
|
+
}),
|
|
70
|
+
}),
|
|
71
|
+
subscribe: (query, hear) => {
|
|
72
|
+
let watch = graph.watch(query)
|
|
73
|
+
let off = watch.subscribe(hear)
|
|
74
|
+
if (watch.ready) hear(watch.value)
|
|
75
|
+
return () => {
|
|
76
|
+
off()
|
|
77
|
+
watch.close()
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
})
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/** Keep edits made in the server-drawn box until the draft desk takes them. */ // Keep this source literal. It runs in the page and has no access to any
|
|
2
|
+
// helpers introduced by the Worker's bundler.
|
|
3
|
+
let ARM = `(root, browser) => {
|
|
4
|
+
let field = root.querySelector('textarea[name=say]')
|
|
5
|
+
if (!field) return
|
|
6
|
+
let key = Symbol.for('yaks.operator.early')
|
|
7
|
+
let button = root.querySelector('button[type=submit]')
|
|
8
|
+
if (button) button.disabled = true
|
|
9
|
+
if (!field[key]) {
|
|
10
|
+
let prefix = 'yak:operator-early:' + root.dataset.earlyDraft + ':'
|
|
11
|
+
let entry, text = '', composing = false
|
|
12
|
+
let edited = () => {
|
|
13
|
+
text = field.value
|
|
14
|
+
try {
|
|
15
|
+
entry ??= prefix + browser.crypto.randomUUID()
|
|
16
|
+
if (text) browser.localStorage.setItem(entry, text)
|
|
17
|
+
else browser.localStorage.removeItem(entry)
|
|
18
|
+
} catch (error) {
|
|
19
|
+
browser.reportError?.(error)
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
let start = () => {
|
|
23
|
+
composing = true
|
|
24
|
+
}
|
|
25
|
+
let end = () => {
|
|
26
|
+
composing = false
|
|
27
|
+
edited()
|
|
28
|
+
}
|
|
29
|
+
field.addEventListener('input', edited)
|
|
30
|
+
field.addEventListener('compositionstart', start)
|
|
31
|
+
field.addEventListener('compositionend', end)
|
|
32
|
+
// The native form still works without scripts. With scripts, sending
|
|
33
|
+
// waits for the draft desk so the message and its draft spend together.
|
|
34
|
+
field[key] = {
|
|
35
|
+
composing: () => composing,
|
|
36
|
+
take: (restore) => {
|
|
37
|
+
let saved = []
|
|
38
|
+
try {
|
|
39
|
+
let disk = browser.localStorage
|
|
40
|
+
for (let i = 0; i < disk.length; i++) {
|
|
41
|
+
let name = disk.key(i)
|
|
42
|
+
if (!name?.startsWith(prefix)) continue
|
|
43
|
+
let value = disk.getItem(name)
|
|
44
|
+
if (value) saved.push([name, value])
|
|
45
|
+
}
|
|
46
|
+
} catch (error) {
|
|
47
|
+
browser.reportError?.(error)
|
|
48
|
+
}
|
|
49
|
+
let taken = saved.filter(([name, value]) =>
|
|
50
|
+
name != entry && restore(value)
|
|
51
|
+
)
|
|
52
|
+
if (text && restore(text) && entry) taken.push([entry, text])
|
|
53
|
+
try {
|
|
54
|
+
for (let [name, value] of taken) {
|
|
55
|
+
if (browser.localStorage.getItem(name) == value) {
|
|
56
|
+
browser.localStorage.removeItem(name)
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
} catch (error) {
|
|
60
|
+
browser.reportError?.(error)
|
|
61
|
+
}
|
|
62
|
+
field.removeEventListener('input', edited)
|
|
63
|
+
field.removeEventListener('compositionstart', start)
|
|
64
|
+
field.removeEventListener('compositionend', end)
|
|
65
|
+
delete field[key]
|
|
66
|
+
let send = root.querySelector('button[type=submit]')
|
|
67
|
+
if (send) send.disabled = false
|
|
68
|
+
},
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (root.closest('[hidden], [inert]')) return
|
|
73
|
+
browser.requestAnimationFrame(() =>
|
|
74
|
+
browser.setTimeout(() => {
|
|
75
|
+
if (!field.isConnected || !field.getClientRects().length) return
|
|
76
|
+
let { performance } = browser
|
|
77
|
+
if (!performance.getEntriesByName('yak-usable').length) {
|
|
78
|
+
performance.mark('yak-usable')
|
|
79
|
+
browser[Symbol.for('yaks.open')]?.ready(true)
|
|
80
|
+
}
|
|
81
|
+
}, 0)
|
|
82
|
+
)
|
|
83
|
+
}`;
|
|
84
|
+
/** The script stands immediately after its box. */ export let earlyDraftScript = ()=>`(${ARM})(document.currentScript.previousElementSibling,window)`;
|
|
85
|
+
/** The service worker supplies the same handoff to its scriptless pictures. */ export let keptDraftScript = ()=>`document.addEventListener('DOMContentLoaded', () => {
|
|
86
|
+
for (let root of document.querySelectorAll('[data-early-draft]')) {
|
|
87
|
+
(${ARM})(root, window)
|
|
88
|
+
}
|
|
89
|
+
}, { once: true })`;
|
|
90
|
+
/** Take the edits before hydration can set the textarea's value. */ export let takeEarlyDraft = (root, restore, signal)=>{
|
|
91
|
+
let field = root.querySelector('textarea[name=say]');
|
|
92
|
+
let early = field?.[Symbol.for('yaks.operator.early')];
|
|
93
|
+
if (!early || !field) return;
|
|
94
|
+
if (!early.composing()) return early.take(restore);
|
|
95
|
+
return new Promise((done)=>{
|
|
96
|
+
let stop = new AbortController();
|
|
97
|
+
let finish = ()=>{
|
|
98
|
+
stop.abort();
|
|
99
|
+
if (!signal.aborted) early.take(restore);
|
|
100
|
+
done();
|
|
101
|
+
};
|
|
102
|
+
field.addEventListener('compositionend', finish, {
|
|
103
|
+
signal: stop.signal
|
|
104
|
+
});
|
|
105
|
+
signal.addEventListener('abort', finish, {
|
|
106
|
+
signal: stop.signal
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
//# sourceMappingURL=operator-early-draft.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operator-early-draft.js","sources":["./operator-early-draft.ts"],"names":[],"mappings":"AAAA,6EAA6E,GAQ7E,yEAAyE;AACzE,8CAA8C;AAC9C,IAAI,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFV,CAAC;AAEF,iDAAiD,GACjD,OAAO,IAAI,mBAAmB,IAC5B,CAAC,CAAC,EAAE,IAAI,uDAAuD,CAAC,CAAA;AAElE,6EAA6E,GAC7E,OAAO,IAAI,kBAAkB,IAC3B,CAAC;;OAEI,EAAE,IAAI;;oBAEO,CAAC,CAAA;AAErB,kEAAkE,GAClE,OAAO,IAAI,iBAAiB,CAC1B,MACA,SACA;EAEA,IAAI,QAAQ,KAAK,aAAa,CAAQ;EACtC,IAAI,QAAQ,OAAO,CAAC,OAAO,GAAG,CAAC,uBAAuB;EACtD,IAAI,CAAC,SAAS,CAAC,OAAO;EACtB,IAAI,CAAC,MAAM,SAAS,IAAI,OAAO,MAAM,IAAI,CAAC;EAC1C,OAAO,IAAI,QAAc,CAAC;IACxB,IAAI,OAAO,IAAI;IACf,IAAI,SAAS;MACX,KAAK,KAAK;MACV,IAAI,CAAC,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;MAChC;IACF;IACA,MAAM,gBAAgB,CAAC,kBAAkB,QAAQ;MAAE,QAAQ,KAAK,MAAM;IAAC;IACvE,OAAO,gBAAgB,CAAC,SAAS,QAAQ;MAAE,QAAQ,KAAK,MAAM;IAAC;EACjE;AACF,EAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/** Keep edits made in the server-drawn box until the draft desk takes them. */
|
|
2
|
+
type Early = {
|
|
3
|
+
composing: () => boolean
|
|
4
|
+
take: (restore: (text: string) => boolean) => void
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
type Field = HTMLTextAreaElement & { [key: symbol]: Early | undefined }
|
|
8
|
+
|
|
9
|
+
// Keep this source literal. It runs in the page and has no access to any
|
|
10
|
+
// helpers introduced by the Worker's bundler.
|
|
11
|
+
let ARM = `(root, browser) => {
|
|
12
|
+
let field = root.querySelector('textarea[name=say]')
|
|
13
|
+
if (!field) return
|
|
14
|
+
let key = Symbol.for('yaks.operator.early')
|
|
15
|
+
let button = root.querySelector('button[type=submit]')
|
|
16
|
+
if (button) button.disabled = true
|
|
17
|
+
if (!field[key]) {
|
|
18
|
+
let prefix = 'yak:operator-early:' + root.dataset.earlyDraft + ':'
|
|
19
|
+
let entry, text = '', composing = false
|
|
20
|
+
let edited = () => {
|
|
21
|
+
text = field.value
|
|
22
|
+
try {
|
|
23
|
+
entry ??= prefix + browser.crypto.randomUUID()
|
|
24
|
+
if (text) browser.localStorage.setItem(entry, text)
|
|
25
|
+
else browser.localStorage.removeItem(entry)
|
|
26
|
+
} catch (error) {
|
|
27
|
+
browser.reportError?.(error)
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
let start = () => {
|
|
31
|
+
composing = true
|
|
32
|
+
}
|
|
33
|
+
let end = () => {
|
|
34
|
+
composing = false
|
|
35
|
+
edited()
|
|
36
|
+
}
|
|
37
|
+
field.addEventListener('input', edited)
|
|
38
|
+
field.addEventListener('compositionstart', start)
|
|
39
|
+
field.addEventListener('compositionend', end)
|
|
40
|
+
// The native form still works without scripts. With scripts, sending
|
|
41
|
+
// waits for the draft desk so the message and its draft spend together.
|
|
42
|
+
field[key] = {
|
|
43
|
+
composing: () => composing,
|
|
44
|
+
take: (restore) => {
|
|
45
|
+
let saved = []
|
|
46
|
+
try {
|
|
47
|
+
let disk = browser.localStorage
|
|
48
|
+
for (let i = 0; i < disk.length; i++) {
|
|
49
|
+
let name = disk.key(i)
|
|
50
|
+
if (!name?.startsWith(prefix)) continue
|
|
51
|
+
let value = disk.getItem(name)
|
|
52
|
+
if (value) saved.push([name, value])
|
|
53
|
+
}
|
|
54
|
+
} catch (error) {
|
|
55
|
+
browser.reportError?.(error)
|
|
56
|
+
}
|
|
57
|
+
let taken = saved.filter(([name, value]) =>
|
|
58
|
+
name != entry && restore(value)
|
|
59
|
+
)
|
|
60
|
+
if (text && restore(text) && entry) taken.push([entry, text])
|
|
61
|
+
try {
|
|
62
|
+
for (let [name, value] of taken) {
|
|
63
|
+
if (browser.localStorage.getItem(name) == value) {
|
|
64
|
+
browser.localStorage.removeItem(name)
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
} catch (error) {
|
|
68
|
+
browser.reportError?.(error)
|
|
69
|
+
}
|
|
70
|
+
field.removeEventListener('input', edited)
|
|
71
|
+
field.removeEventListener('compositionstart', start)
|
|
72
|
+
field.removeEventListener('compositionend', end)
|
|
73
|
+
delete field[key]
|
|
74
|
+
let send = root.querySelector('button[type=submit]')
|
|
75
|
+
if (send) send.disabled = false
|
|
76
|
+
},
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (root.closest('[hidden], [inert]')) return
|
|
81
|
+
browser.requestAnimationFrame(() =>
|
|
82
|
+
browser.setTimeout(() => {
|
|
83
|
+
if (!field.isConnected || !field.getClientRects().length) return
|
|
84
|
+
let { performance } = browser
|
|
85
|
+
if (!performance.getEntriesByName('yak-usable').length) {
|
|
86
|
+
performance.mark('yak-usable')
|
|
87
|
+
browser[Symbol.for('yaks.open')]?.ready(true)
|
|
88
|
+
}
|
|
89
|
+
}, 0)
|
|
90
|
+
)
|
|
91
|
+
}`
|
|
92
|
+
|
|
93
|
+
/** The script stands immediately after its box. */
|
|
94
|
+
export let earlyDraftScript = (): string =>
|
|
95
|
+
`(${ARM})(document.currentScript.previousElementSibling,window)`
|
|
96
|
+
|
|
97
|
+
/** The service worker supplies the same handoff to its scriptless pictures. */
|
|
98
|
+
export let keptDraftScript = (): string =>
|
|
99
|
+
`document.addEventListener('DOMContentLoaded', () => {
|
|
100
|
+
for (let root of document.querySelectorAll('[data-early-draft]')) {
|
|
101
|
+
(${ARM})(root, window)
|
|
102
|
+
}
|
|
103
|
+
}, { once: true })`
|
|
104
|
+
|
|
105
|
+
/** Take the edits before hydration can set the textarea's value. */
|
|
106
|
+
export let takeEarlyDraft = (
|
|
107
|
+
root: Element,
|
|
108
|
+
restore: (text: string) => boolean,
|
|
109
|
+
signal: AbortSignal,
|
|
110
|
+
): Promise<void> | void => {
|
|
111
|
+
let field = root.querySelector<Field>('textarea[name=say]')
|
|
112
|
+
let early = field?.[Symbol.for('yaks.operator.early')]
|
|
113
|
+
if (!early || !field) return
|
|
114
|
+
if (!early.composing()) return early.take(restore)
|
|
115
|
+
return new Promise<void>((done) => {
|
|
116
|
+
let stop = new AbortController()
|
|
117
|
+
let finish = () => {
|
|
118
|
+
stop.abort()
|
|
119
|
+
if (!signal.aborted) early.take(restore)
|
|
120
|
+
done()
|
|
121
|
+
}
|
|
122
|
+
field.addEventListener('compositionend', finish, { signal: stop.signal })
|
|
123
|
+
signal.addEventListener('abort', finish, { signal: stop.signal })
|
|
124
|
+
})
|
|
125
|
+
}
|