@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
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { line } from "@yaks/query";
|
|
2
|
+
import { counted, watchOf } from "@yaks/wake";
|
|
3
|
+
import { derivedEid } from "@yaks/graph/identity";
|
|
4
|
+
import { summary } from "./dashboard.js";
|
|
5
|
+
import { WATCHED } from "./operator-watches.js";
|
|
6
|
+
/** The full record behind a source link in a standing brief or watch input. */ export let activitySource = (g)=>({
|
|
7
|
+
name: 'activity_read',
|
|
8
|
+
readOnly: true,
|
|
9
|
+
description: 'Read the source named by a standing brief or a watch firing link, including the full recorded report or changes.',
|
|
10
|
+
parameters: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
id: {
|
|
14
|
+
type: 'string'
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
required: [
|
|
18
|
+
'id'
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
run: async ({ id })=>{
|
|
22
|
+
let [source] = typeof id == 'string' ? await g.get([
|
|
23
|
+
id.replace(/^#/, '')
|
|
24
|
+
], [
|
|
25
|
+
'doc',
|
|
26
|
+
'content',
|
|
27
|
+
'entry',
|
|
28
|
+
'delivery',
|
|
29
|
+
'occurrence',
|
|
30
|
+
'operator_watch',
|
|
31
|
+
'goal',
|
|
32
|
+
'decision',
|
|
33
|
+
'session'
|
|
34
|
+
]) : [];
|
|
35
|
+
return source ? JSON.stringify(source) : 'No visible source has that id.';
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
let comp = (b, name)=>b[name] ?? {};
|
|
39
|
+
let text = (v)=>typeof v == 'string' && v ? v : undefined;
|
|
40
|
+
/**
|
|
41
|
+
* What an item says, in a line, and what it was about: with a report, the
|
|
42
|
+
* report's first sentence, and its `label` (a request's words, a watch's
|
|
43
|
+
* name) beside it; without one, the label, or `none` when it has none.
|
|
44
|
+
*
|
|
45
|
+
* ```ts
|
|
46
|
+
* import { told } from '@yaks/platform/operator-activity'
|
|
47
|
+
* import { assertEquals } from '@std/assert'
|
|
48
|
+
* assertEquals(told('Answer to your question', 'Request', 'The explainer is live. More.'),
|
|
49
|
+
* { title: 'The explainer is live.', about: 'Answer to your question' })
|
|
50
|
+
* assertEquals(told(undefined, 'A helper reported', 'Found it.'), { title: 'Found it.' })
|
|
51
|
+
* assertEquals(told('Fix the save', 'Request'), { title: 'Fix the save' })
|
|
52
|
+
* assertEquals(told(undefined, 'Scheduled work'), { title: 'Scheduled work' })
|
|
53
|
+
* ```
|
|
54
|
+
*/ export let told = (label, none, detail)=>{
|
|
55
|
+
// the whole first sentence: its row cuts it short where it runs past, and
|
|
56
|
+
// a cut inside a link would show the link's marks
|
|
57
|
+
let said = detail && summary(detail, Infinity);
|
|
58
|
+
return said ? {
|
|
59
|
+
title: said,
|
|
60
|
+
...label && label != said ? {
|
|
61
|
+
about: label
|
|
62
|
+
} : {}
|
|
63
|
+
} : {
|
|
64
|
+
title: label ?? none
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
let item = (b, extra)=>({
|
|
68
|
+
id: b.entity.eid,
|
|
69
|
+
...extra
|
|
70
|
+
});
|
|
71
|
+
let code = (v)=>v ? '`' + v + '`' : undefined;
|
|
72
|
+
// What a wake is, in words: why it was set, what it starts a helper for, or
|
|
73
|
+
// what the call it makes says (a reminder's text), else the tool it calls.
|
|
74
|
+
let named = (wake, tool, args)=>wake.note || wake.brief && summary(wake.brief, Infinity) || Object.values(args && typeof args == 'object' ? args : {}).map(text).find(Boolean) || tool && `Calls ${tool}` || undefined;
|
|
75
|
+
let watching = (row, tool)=>{
|
|
76
|
+
let wake = row.wake;
|
|
77
|
+
let watch = watchOf(row);
|
|
78
|
+
return item(row, {
|
|
79
|
+
title: named(wake, tool ?? watch?.tool ?? undefined, comp(row, 'call').args) ?? (watch ? 'Watching for changes' : 'Scheduled work'),
|
|
80
|
+
at: wake.at ?? undefined,
|
|
81
|
+
standing: 'waiting',
|
|
82
|
+
detail: [
|
|
83
|
+
wake.brief,
|
|
84
|
+
watch && (watch.record_only ? 'Records each change.' : 'Acts on each change.'),
|
|
85
|
+
code(watch?.query),
|
|
86
|
+
wake.every && `Every ${code(wake.every)}`
|
|
87
|
+
].filter(Boolean).join('\n\n') || undefined
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
let occurrence = (row, wake, outcome)=>{
|
|
91
|
+
let run = row.occurrence;
|
|
92
|
+
let detail = text(comp(row, 'doc').body) ?? (outcome && text(comp(outcome, 'content').body)) ?? run.error ?? undefined;
|
|
93
|
+
let label = (wake && named(wake)) ?? text(comp(row, 'doc').title);
|
|
94
|
+
let counts = detail && counted(detail);
|
|
95
|
+
return item(row, {
|
|
96
|
+
// what a watch saw is counted, and its rows are in its report
|
|
97
|
+
...counts ? {
|
|
98
|
+
title: label ? `${counts}: ${label}` : counts
|
|
99
|
+
} : told(label, row.operator_watch ? 'A watch saw a change' : 'Scheduled work', detail),
|
|
100
|
+
at: run.at,
|
|
101
|
+
// a watch's change is done once it is handed over; the Operator's turn
|
|
102
|
+
// on it is its own
|
|
103
|
+
standing: row.failed || run.error ? 'failed' : row.completed || row.operator_watch ? 'done' : 'running',
|
|
104
|
+
detail,
|
|
105
|
+
open: text(comp(row, 'operator_watch').input) ?? (row.session ? row.entity.eid : undefined)
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
// The newest reply a session gave the one who started it: what a helper or
|
|
109
|
+
// a chat did or found, in its own words.
|
|
110
|
+
let replied = async (g, session)=>{
|
|
111
|
+
let [last] = await g.read(line`.entry.session=${session}&.output&.content&!notice&!reasoning&.order=-entry.seq&.limit=1&.fields=content.body`);
|
|
112
|
+
return last && text(comp(last, 'content').body);
|
|
113
|
+
};
|
|
114
|
+
/** The Operator's work as the person who owns it reads it. Each item opens
|
|
115
|
+
* its outcome or keeps the text of its own receipt. */ export let operatorActivity = async (g, person)=>{
|
|
116
|
+
let [watches, runs, deliveries, requests, waits] = await Promise.all([
|
|
117
|
+
g.read(line`.wake.for=${person}&(.wake.at|.watch)&.order=wake.at&.limit=16&*`),
|
|
118
|
+
g.read(line`.occurrence&(.operator_watch.person=${person}|.operator_session.person=${person})&.order=-occurrence.at&.limit=12&*`),
|
|
119
|
+
g.read(line`.delivery&.entry.session.operator_session.person=${person}&.order=-created.at&.limit=12&.fields=delivery,created.at,content.body`),
|
|
120
|
+
g.read(line`.operator_request.person=${person}&.operator_request.channel=machine,subscription,wake,error,fixed,letter,texted,decision&.order=-created.at&.limit=12&.fields=operator_request,doc,created.at,failed`),
|
|
121
|
+
g.read(line`.entry.session.operator_session.person=${person}&.ask&.provisional&.order=-created.at&.limit=16&.fields=entry.session,provisional,interrupted.code,created.at`)
|
|
122
|
+
]);
|
|
123
|
+
let ids = requests.map((b)=>b.entity.eid);
|
|
124
|
+
let sessions = runs.filter((b)=>b.session).map((b)=>b.entity.eid);
|
|
125
|
+
let children = [
|
|
126
|
+
...new Set(deliveries.map((b)=>text(comp(b, 'delivery').child)).filter((x)=>x != undefined))
|
|
127
|
+
];
|
|
128
|
+
let woke = [
|
|
129
|
+
...new Set(runs.map((b)=>b.occurrence.wake))
|
|
130
|
+
].filter(Boolean);
|
|
131
|
+
let tools = [
|
|
132
|
+
...new Set(watches.map((b)=>text(comp(b, 'call').to)))
|
|
133
|
+
].filter((x)=>x != undefined);
|
|
134
|
+
let [answers, outputs, helpers, replies, wakes, called] = await Promise.all([
|
|
135
|
+
ids.length ? g.read(line`.operator_answer.request=${ids}&.fields=operator_answer,failed`) : [],
|
|
136
|
+
sessions.length ? g.get(sessions.map((id)=>derivedEid('operator-work-outcome|' + id)), [
|
|
137
|
+
'entry',
|
|
138
|
+
'content'
|
|
139
|
+
]) : [],
|
|
140
|
+
children.length ? g.get(children, [
|
|
141
|
+
'doc'
|
|
142
|
+
]) : [],
|
|
143
|
+
Promise.all(children.map((child)=>replied(g, child))),
|
|
144
|
+
woke.length ? g.get(woke, [
|
|
145
|
+
'wake'
|
|
146
|
+
]) : [],
|
|
147
|
+
tools.length ? g.get(tools, [
|
|
148
|
+
'tool'
|
|
149
|
+
]) : []
|
|
150
|
+
]);
|
|
151
|
+
let answered = new Map(answers.map((b)=>[
|
|
152
|
+
comp(b, 'operator_answer').request,
|
|
153
|
+
b
|
|
154
|
+
]));
|
|
155
|
+
let outcome = new Map(outputs.map((b)=>[
|
|
156
|
+
comp(b, 'entry').session,
|
|
157
|
+
b
|
|
158
|
+
]));
|
|
159
|
+
let helper = new Map(helpers.map((b)=>[
|
|
160
|
+
b.entity.eid,
|
|
161
|
+
text(comp(b, 'doc').title)
|
|
162
|
+
]));
|
|
163
|
+
let reply = new Map(children.map((child, i)=>[
|
|
164
|
+
child,
|
|
165
|
+
replies[i]
|
|
166
|
+
]));
|
|
167
|
+
let wakeOf = new Map(wakes.map((b)=>[
|
|
168
|
+
b.entity.eid,
|
|
169
|
+
b.wake
|
|
170
|
+
]));
|
|
171
|
+
let toolOf = new Map(called.map((b)=>[
|
|
172
|
+
b.entity.eid,
|
|
173
|
+
text(comp(b, 'tool').name)
|
|
174
|
+
]));
|
|
175
|
+
let activity = [
|
|
176
|
+
...runs.map((row)=>occurrence(row, wakeOf.get(row.occurrence.wake), outcome.get(row.entity.eid))),
|
|
177
|
+
// A helper's or a chat's notice is written to the Operator; what it
|
|
178
|
+
// did or found is its own last reply.
|
|
179
|
+
...deliveries.map((row)=>{
|
|
180
|
+
let failed = comp(row, 'delivery').outcome == 'failed';
|
|
181
|
+
let child = text(comp(row, 'delivery').child);
|
|
182
|
+
let detail = (child && reply.get(child)) ?? text(comp(row, 'content').body);
|
|
183
|
+
return item(row, {
|
|
184
|
+
...told(child && helper.get(child), failed ? 'A helper could not finish' : 'A helper finished', detail),
|
|
185
|
+
at: text(comp(row, 'created').at),
|
|
186
|
+
standing: failed ? 'failed' : 'done',
|
|
187
|
+
detail,
|
|
188
|
+
open: text(comp(row, 'delivery').child)
|
|
189
|
+
});
|
|
190
|
+
}),
|
|
191
|
+
...requests.map((row)=>{
|
|
192
|
+
let answer = answered.get(row.entity.eid);
|
|
193
|
+
let detail = answer && text(comp(answer, 'operator_answer').text);
|
|
194
|
+
let title = text(comp(row, 'doc').title);
|
|
195
|
+
return item(row, {
|
|
196
|
+
...told(title == WATCHED ? undefined : title, 'A request', detail),
|
|
197
|
+
at: text(comp(row, 'created').at),
|
|
198
|
+
standing: row.failed || answer?.failed ? 'failed' : answer ? 'done' : 'running',
|
|
199
|
+
detail,
|
|
200
|
+
open: text(comp(row, 'operator_request').session)
|
|
201
|
+
});
|
|
202
|
+
})
|
|
203
|
+
].sort((a, b)=>(b.at ?? '').localeCompare(a.at ?? '')).slice(0, 16);
|
|
204
|
+
return {
|
|
205
|
+
watching: [
|
|
206
|
+
...waits.map((row)=>{
|
|
207
|
+
let on = comp(row, 'provisional').resume_on;
|
|
208
|
+
return item(row, {
|
|
209
|
+
title: on == 'funds' ? 'Waiting for funds' : on == 'machine' ? 'Waiting for the machine' : 'Waiting for a provider',
|
|
210
|
+
at: text(comp(row, 'created').at),
|
|
211
|
+
standing: 'waiting',
|
|
212
|
+
open: text(comp(row, 'entry').session)
|
|
213
|
+
});
|
|
214
|
+
}),
|
|
215
|
+
...watches.map((row)=>watching(row, toolOf.get(text(comp(row, 'call').to) ?? '')))
|
|
216
|
+
],
|
|
217
|
+
activity
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
//# sourceMappingURL=operator-activity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operator-activity.js","sources":["./operator-activity.ts"],"names":[],"mappings":"AACA,SAAS,IAAI,2BAAgC;AAC7C,SAAS,OAAO,EAA8B,OAAO,0BAA+B;AACpF,SAAS,UAAU,oCAAyC;AAE5D,SAAS,OAAO,yBAAwB;AAExC,SAAS,OAAO,gCAA+B;AAE/C,6EAA6E,GAC7E,OAAO,IAAI,iBAAiB,CAAC,IAAgC,CAAC;IAC5D,MAAM;IACN,UAAU;IACV,aACE;IACF,YAAY;MACV,MAAM;MACN,YAAY;QAAE,IAAI;UAAE,MAAM;QAAS;MAAE;MACrC,UAAU;QAAC;OAAK;IAClB;IACA,KAAK,OAAO,EAAE,EAAE,EAAE;MAChB,IAAI,CAAC,OAAO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ACZ,IAAI,KAAK,KAAK,KAAK,eAAe,SAAS;QAC3C,OAAO,KAAK,KAAK;UACf,OAAO,MAAM,UACT,sBACA,MAAM,YACN,4BACA;UACJ,IAAI,KAAK,KAAK,KAAK,WAAW,EAAE;UAChC,UAAU;UACV,MAAM,KAAK,KAAK,KAAK,SAAS,OAAO;QACvC;MACF;SACG,QAAQ,GAAG,CAAC,CAAC,MACd,SAAS,KAAK,OAAO,GAAG,CAAC,KAAK,KAAK,KAAK,QAAQ,EAAE,KAAK;KAE1D;IACD;EACF;AACF,EAAC"}
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import type { Bundle, Comp, Graph } from 'jsr:@yaks/graph@0.2.36'
|
|
2
|
+
import { line } from '@yaks/query'
|
|
3
|
+
import { counted, type Occurrence, type Wake, watchOf } from '@yaks/wake'
|
|
4
|
+
import { derivedEid } from '@yaks/graph/identity'
|
|
5
|
+
import type { Tool } from 'jsr:@yaks/session@0.2.36'
|
|
6
|
+
import { summary } from './dashboard.js'
|
|
7
|
+
import type { Standing } from './work-standing.ts'
|
|
8
|
+
import { WATCHED } from './operator-watches.js'
|
|
9
|
+
|
|
10
|
+
/** The full record behind a source link in a standing brief or watch input. */
|
|
11
|
+
export let activitySource = (g: Pick<Graph, 'get'>): Tool => ({
|
|
12
|
+
name: 'activity_read',
|
|
13
|
+
readOnly: true,
|
|
14
|
+
description:
|
|
15
|
+
'Read the source named by a standing brief or a watch firing link, including the full recorded report or changes.',
|
|
16
|
+
parameters: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: { id: { type: 'string' } },
|
|
19
|
+
required: ['id'],
|
|
20
|
+
},
|
|
21
|
+
run: async ({ id }) => {
|
|
22
|
+
let [source] = typeof id == 'string'
|
|
23
|
+
? await g.get([id.replace(/^#/, '')], [
|
|
24
|
+
'doc',
|
|
25
|
+
'content',
|
|
26
|
+
'entry',
|
|
27
|
+
'delivery',
|
|
28
|
+
'occurrence',
|
|
29
|
+
'operator_watch',
|
|
30
|
+
'goal',
|
|
31
|
+
'decision',
|
|
32
|
+
'session',
|
|
33
|
+
])
|
|
34
|
+
: []
|
|
35
|
+
return source ? JSON.stringify(source) : 'No visible source has that id.'
|
|
36
|
+
},
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
/** A piece of the Operator's work as its list draws it: what it says in a
|
|
40
|
+
* line (its report's first sentence, or its name while it has none), what it
|
|
41
|
+
* was about when that is something else (the request, the watch), how it
|
|
42
|
+
* stands, when, its whole report, and the conversation it opens. */
|
|
43
|
+
export type ActivityItem = {
|
|
44
|
+
id: string
|
|
45
|
+
title: string
|
|
46
|
+
about?: string
|
|
47
|
+
at?: string
|
|
48
|
+
standing: Standing
|
|
49
|
+
detail?: string
|
|
50
|
+
open?: string
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type Activity = { watching: ActivityItem[]; activity: ActivityItem[] }
|
|
54
|
+
|
|
55
|
+
let comp = (b: Bundle, name: string) => (b[name] ?? {}) as Comp
|
|
56
|
+
let text = (v: unknown) => typeof v == 'string' && v ? v : undefined
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* What an item says, in a line, and what it was about: with a report, the
|
|
60
|
+
* report's first sentence, and its `label` (a request's words, a watch's
|
|
61
|
+
* name) beside it; without one, the label, or `none` when it has none.
|
|
62
|
+
*
|
|
63
|
+
* ```ts
|
|
64
|
+
* import { told } from '@yaks/platform/operator-activity'
|
|
65
|
+
* import { assertEquals } from '@std/assert'
|
|
66
|
+
* assertEquals(told('Answer to your question', 'Request', 'The explainer is live. More.'),
|
|
67
|
+
* { title: 'The explainer is live.', about: 'Answer to your question' })
|
|
68
|
+
* assertEquals(told(undefined, 'A helper reported', 'Found it.'), { title: 'Found it.' })
|
|
69
|
+
* assertEquals(told('Fix the save', 'Request'), { title: 'Fix the save' })
|
|
70
|
+
* assertEquals(told(undefined, 'Scheduled work'), { title: 'Scheduled work' })
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
export let told = (
|
|
74
|
+
label: string | undefined,
|
|
75
|
+
none: string,
|
|
76
|
+
detail?: string,
|
|
77
|
+
): { title: string; about?: string } => {
|
|
78
|
+
// the whole first sentence: its row cuts it short where it runs past, and
|
|
79
|
+
// a cut inside a link would show the link's marks
|
|
80
|
+
let said = detail && summary(detail, Infinity)
|
|
81
|
+
return said
|
|
82
|
+
? { title: said, ...label && label != said ? { about: label } : {} }
|
|
83
|
+
: { title: label ?? none }
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
let item = (
|
|
87
|
+
b: Bundle,
|
|
88
|
+
extra: Omit<ActivityItem, 'id'>,
|
|
89
|
+
): ActivityItem => ({ id: b.entity.eid, ...extra })
|
|
90
|
+
|
|
91
|
+
let code = (v?: string | null) => v ? '`' + v + '`' : undefined
|
|
92
|
+
|
|
93
|
+
// What a wake is, in words: why it was set, what it starts a helper for, or
|
|
94
|
+
// what the call it makes says (a reminder's text), else the tool it calls.
|
|
95
|
+
let named = (wake: Wake, tool?: string, args?: unknown) =>
|
|
96
|
+
wake.note || (wake.brief && summary(wake.brief, Infinity)) ||
|
|
97
|
+
Object.values(args && typeof args == 'object' ? args : {})
|
|
98
|
+
.map(text).find(Boolean) ||
|
|
99
|
+
(tool && `Calls ${tool}`) || undefined
|
|
100
|
+
|
|
101
|
+
let watching = (row: Bundle, tool?: string) => {
|
|
102
|
+
let wake = row.wake as Wake
|
|
103
|
+
let watch = watchOf(row)
|
|
104
|
+
return item(row, {
|
|
105
|
+
title:
|
|
106
|
+
named(wake, tool ?? watch?.tool ?? undefined, comp(row, 'call').args) ??
|
|
107
|
+
(watch ? 'Watching for changes' : 'Scheduled work'),
|
|
108
|
+
at: wake.at ?? undefined,
|
|
109
|
+
standing: 'waiting',
|
|
110
|
+
detail: [
|
|
111
|
+
wake.brief,
|
|
112
|
+
watch &&
|
|
113
|
+
(watch.record_only ? 'Records each change.' : 'Acts on each change.'),
|
|
114
|
+
code(watch?.query),
|
|
115
|
+
wake.every && `Every ${code(wake.every)}`,
|
|
116
|
+
].filter(Boolean).join('\n\n') || undefined,
|
|
117
|
+
})
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
let occurrence = (row: Bundle, wake?: Wake, outcome?: Bundle) => {
|
|
121
|
+
let run = row.occurrence as Occurrence
|
|
122
|
+
let detail = text(comp(row, 'doc').body) ??
|
|
123
|
+
(outcome && text(comp(outcome, 'content').body)) ?? run.error ??
|
|
124
|
+
undefined
|
|
125
|
+
let label = (wake && named(wake)) ?? text(comp(row, 'doc').title)
|
|
126
|
+
let counts = detail && counted(detail)
|
|
127
|
+
return item(row, {
|
|
128
|
+
// what a watch saw is counted, and its rows are in its report
|
|
129
|
+
...counts ? { title: label ? `${counts}: ${label}` : counts } : told(
|
|
130
|
+
label,
|
|
131
|
+
row.operator_watch ? 'A watch saw a change' : 'Scheduled work',
|
|
132
|
+
detail,
|
|
133
|
+
),
|
|
134
|
+
at: run.at,
|
|
135
|
+
// a watch's change is done once it is handed over; the Operator's turn
|
|
136
|
+
// on it is its own
|
|
137
|
+
standing: row.failed || run.error
|
|
138
|
+
? 'failed'
|
|
139
|
+
: row.completed || row.operator_watch
|
|
140
|
+
? 'done'
|
|
141
|
+
: 'running',
|
|
142
|
+
detail,
|
|
143
|
+
open: text(comp(row, 'operator_watch').input) ??
|
|
144
|
+
(row.session ? row.entity.eid : undefined),
|
|
145
|
+
})
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// The newest reply a session gave the one who started it: what a helper or
|
|
149
|
+
// a chat did or found, in its own words.
|
|
150
|
+
let replied = async (g: Pick<Graph, 'read'>, session: string) => {
|
|
151
|
+
let [last] = await g.read(
|
|
152
|
+
line`.entry.session=${session}&.output&.content&!notice&!reasoning&.order=-entry.seq&.limit=1&.fields=content.body`,
|
|
153
|
+
)
|
|
154
|
+
return last && text(comp(last, 'content').body)
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/** The Operator's work as the person who owns it reads it. Each item opens
|
|
158
|
+
* its outcome or keeps the text of its own receipt. */
|
|
159
|
+
export let operatorActivity = async (
|
|
160
|
+
g: Pick<Graph, 'read' | 'get'>,
|
|
161
|
+
person: string,
|
|
162
|
+
): Promise<Activity> => {
|
|
163
|
+
let [watches, runs, deliveries, requests, waits] = await Promise.all([
|
|
164
|
+
g.read(
|
|
165
|
+
line`.wake.for=${person}&(.wake.at|.watch)&.order=wake.at&.limit=16&*`,
|
|
166
|
+
),
|
|
167
|
+
g.read(
|
|
168
|
+
line`.occurrence&(.operator_watch.person=${person}|.operator_session.person=${person})&.order=-occurrence.at&.limit=12&*`,
|
|
169
|
+
),
|
|
170
|
+
g.read(
|
|
171
|
+
line`.delivery&.entry.session.operator_session.person=${person}&.order=-created.at&.limit=12&.fields=delivery,created.at,content.body`,
|
|
172
|
+
),
|
|
173
|
+
g.read(
|
|
174
|
+
line`.operator_request.person=${person}&.operator_request.channel=machine,subscription,wake,error,fixed,letter,texted,decision&.order=-created.at&.limit=12&.fields=operator_request,doc,created.at,failed`,
|
|
175
|
+
),
|
|
176
|
+
g.read(
|
|
177
|
+
line`.entry.session.operator_session.person=${person}&.ask&.provisional&.order=-created.at&.limit=16&.fields=entry.session,provisional,interrupted.code,created.at`,
|
|
178
|
+
),
|
|
179
|
+
])
|
|
180
|
+
let ids = requests.map((b) => b.entity.eid)
|
|
181
|
+
let sessions = runs.filter((b) => b.session).map((b) => b.entity.eid)
|
|
182
|
+
let children = [
|
|
183
|
+
...new Set(
|
|
184
|
+
deliveries.map((b) => text(comp(b, 'delivery').child)).filter((x) =>
|
|
185
|
+
x != undefined
|
|
186
|
+
),
|
|
187
|
+
),
|
|
188
|
+
]
|
|
189
|
+
let woke = [
|
|
190
|
+
...new Set(runs.map((b) => (b.occurrence as Occurrence).wake)),
|
|
191
|
+
].filter(Boolean)
|
|
192
|
+
let tools = [
|
|
193
|
+
...new Set(watches.map((b) => text(comp(b, 'call').to))),
|
|
194
|
+
].filter((x) => x != undefined)
|
|
195
|
+
let [answers, outputs, helpers, replies, wakes, called] = await Promise.all([
|
|
196
|
+
ids.length
|
|
197
|
+
? g.read(
|
|
198
|
+
line`.operator_answer.request=${ids}&.fields=operator_answer,failed`,
|
|
199
|
+
)
|
|
200
|
+
: [],
|
|
201
|
+
sessions.length
|
|
202
|
+
? g.get(sessions.map((id) => derivedEid('operator-work-outcome|' + id)), [
|
|
203
|
+
'entry',
|
|
204
|
+
'content',
|
|
205
|
+
])
|
|
206
|
+
: [],
|
|
207
|
+
children.length ? g.get(children, ['doc']) : [],
|
|
208
|
+
Promise.all(children.map((child) => replied(g, child))),
|
|
209
|
+
woke.length ? g.get(woke, ['wake']) : [],
|
|
210
|
+
tools.length ? g.get(tools, ['tool']) : [],
|
|
211
|
+
])
|
|
212
|
+
let answered = new Map(
|
|
213
|
+
answers.map((b) => [comp(b, 'operator_answer').request, b]),
|
|
214
|
+
)
|
|
215
|
+
let outcome = new Map(outputs.map((b) => [comp(b, 'entry').session, b]))
|
|
216
|
+
let helper = new Map(
|
|
217
|
+
helpers.map((b) => [b.entity.eid, text(comp(b, 'doc').title)]),
|
|
218
|
+
)
|
|
219
|
+
let reply = new Map(children.map((child, i) => [child, replies[i]]))
|
|
220
|
+
let wakeOf = new Map(wakes.map((b) => [b.entity.eid, b.wake as Wake]))
|
|
221
|
+
let toolOf = new Map(
|
|
222
|
+
called.map((b) => [b.entity.eid, text(comp(b, 'tool').name)]),
|
|
223
|
+
)
|
|
224
|
+
let activity = [
|
|
225
|
+
...runs.map((row) =>
|
|
226
|
+
occurrence(
|
|
227
|
+
row,
|
|
228
|
+
wakeOf.get((row.occurrence as Occurrence).wake),
|
|
229
|
+
outcome.get(row.entity.eid),
|
|
230
|
+
)
|
|
231
|
+
),
|
|
232
|
+
// A helper's or a chat's notice is written to the Operator; what it
|
|
233
|
+
// did or found is its own last reply.
|
|
234
|
+
...deliveries.map((row) => {
|
|
235
|
+
let failed = comp(row, 'delivery').outcome == 'failed'
|
|
236
|
+
let child = text(comp(row, 'delivery').child)
|
|
237
|
+
let detail = (child && reply.get(child)) ??
|
|
238
|
+
text(comp(row, 'content').body)
|
|
239
|
+
return item(row, {
|
|
240
|
+
...told(
|
|
241
|
+
child && helper.get(child),
|
|
242
|
+
failed ? 'A helper could not finish' : 'A helper finished',
|
|
243
|
+
detail,
|
|
244
|
+
),
|
|
245
|
+
at: text(comp(row, 'created').at),
|
|
246
|
+
standing: failed ? 'failed' : 'done',
|
|
247
|
+
detail,
|
|
248
|
+
open: text(comp(row, 'delivery').child),
|
|
249
|
+
})
|
|
250
|
+
}),
|
|
251
|
+
...requests.map((row) => {
|
|
252
|
+
let answer = answered.get(row.entity.eid)
|
|
253
|
+
let detail = answer && text(comp(answer, 'operator_answer').text)
|
|
254
|
+
let title = text(comp(row, 'doc').title)
|
|
255
|
+
return item(row, {
|
|
256
|
+
...told(
|
|
257
|
+
title == WATCHED ? undefined : title,
|
|
258
|
+
'A request',
|
|
259
|
+
detail,
|
|
260
|
+
),
|
|
261
|
+
at: text(comp(row, 'created').at),
|
|
262
|
+
standing: row.failed || answer?.failed
|
|
263
|
+
? 'failed'
|
|
264
|
+
: answer
|
|
265
|
+
? 'done'
|
|
266
|
+
: 'running',
|
|
267
|
+
detail,
|
|
268
|
+
open: text(comp(row, 'operator_request').session),
|
|
269
|
+
})
|
|
270
|
+
}),
|
|
271
|
+
].sort((a, b) => (b.at ?? '').localeCompare(a.at ?? '')).slice(0, 16)
|
|
272
|
+
return {
|
|
273
|
+
watching: [
|
|
274
|
+
...waits.map((row) => {
|
|
275
|
+
let on = comp(row, 'provisional').resume_on
|
|
276
|
+
return item(row, {
|
|
277
|
+
title: on == 'funds'
|
|
278
|
+
? 'Waiting for funds'
|
|
279
|
+
: on == 'machine'
|
|
280
|
+
? 'Waiting for the machine'
|
|
281
|
+
: 'Waiting for a provider',
|
|
282
|
+
at: text(comp(row, 'created').at),
|
|
283
|
+
standing: 'waiting',
|
|
284
|
+
open: text(comp(row, 'entry').session),
|
|
285
|
+
})
|
|
286
|
+
}),
|
|
287
|
+
...watches.map((row) =>
|
|
288
|
+
watching(row, toolOf.get(text(comp(row, 'call').to) ?? ''))
|
|
289
|
+
),
|
|
290
|
+
],
|
|
291
|
+
activity,
|
|
292
|
+
}
|
|
293
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { line } from "@yaks/query";
|
|
2
|
+
let words = (value)=>String(value ?? '').replace(/\s+/g, ' ').trim();
|
|
3
|
+
let section = (title, rows, fallback)=>{
|
|
4
|
+
let items = rows.map((row)=>{
|
|
5
|
+
let doc = row.doc;
|
|
6
|
+
let content = row.content;
|
|
7
|
+
let summary = words(doc?.title || doc?.body || content?.body || fallback);
|
|
8
|
+
let text = summary.length > 160 ? summary.slice(0, 159) + '…' : summary;
|
|
9
|
+
return `- ${text} [Source](#${row.entity.eid})`;
|
|
10
|
+
});
|
|
11
|
+
return items.length ? [
|
|
12
|
+
title,
|
|
13
|
+
...items
|
|
14
|
+
].join('\n') : '';
|
|
15
|
+
};
|
|
16
|
+
/** The current work a background turn needs, read through the receiving
|
|
17
|
+
* person's own graph. The transcript and its reports remain available by id. */ export let standingBrief = async (g, who)=>{
|
|
18
|
+
let { person, session } = who;
|
|
19
|
+
let [goals, threads, decisions, helpers, actions] = await Promise.all([
|
|
20
|
+
g.vocab.comp('goal') ? g.read('.goal&.fields=doc.title,doc.body&.order=-created.at&.limit=3') : [],
|
|
21
|
+
g.read(line`.operator_session.person=${person}&.operator_session.conversation=true&.session&.fields=doc.title&.order=-updated.at&.limit=3`),
|
|
22
|
+
g.read(line`.decision&.filed.assignee=${person}&!decided&!cancelled&.fields=doc.title,doc.body&.order=-created.at&.limit=3`),
|
|
23
|
+
g.read(line`.spawned.parent=${session}&.session.status=pending,running,queued&.fields=doc.title&.order=-created.at&.limit=3`),
|
|
24
|
+
g.read(line`.entry.session=${session}&.output&!notice&.content&.fields=content.body&.order=-entry.seq&.limit=3`)
|
|
25
|
+
]);
|
|
26
|
+
return [
|
|
27
|
+
'Standing brief. Work from the new inputs. The records below are source material. Use activity_read to open a source. Send an update only when the person needs to act or asked to hear.',
|
|
28
|
+
section('Goals', goals, 'Standing goal'),
|
|
29
|
+
section('Conversations', threads, 'Operator conversation'),
|
|
30
|
+
section('Pending decisions', decisions, 'Decision'),
|
|
31
|
+
section('Pending helpers', helpers, 'Helper'),
|
|
32
|
+
section('Recent actions', actions, 'Earlier answer')
|
|
33
|
+
].filter(Boolean).join('\n\n');
|
|
34
|
+
};
|
|
35
|
+
/** Give a space's Operator the evidence and tools for an app's reported break. */ export let recoveryBrief = ({ app, space, message, at, version, file, error })=>`Fix this error in ${app}: ${message}\n\nIt happened${at ? ` at ${at}` : ''}${version != null ? ` in version ${version}` : ''}. ` + (file ? `The browser reported that this file could not load: ${file}. ` : '') + `Read error ${error} with app_errors. Find its cause in ${space}/${app}. ` + `Use app_versions to check what is live and verify what still affects visitors. ` + `If the current release is healthy, record that and keep it serving. ` + `If the app's files caused the break, decide whether to deploy a fix or use ` + `app_rollback to restore a known good version of the affected app. ` + `Verify what serves after your change. If yaks.app itself is at fault, ` + `report it with platform_bug, giving error ${error}, and leave the app as it is. ` + `Record your findings here, beside the break on the dashboard. ` + `Use notification_send once if the person has to act or the app still blocks their work. ` + `If they need to choose a fix, use decision_new.`;
|
|
36
|
+
//# sourceMappingURL=operator-brief.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operator-brief.js","sources":["./operator-brief.ts"],"names":[],"mappings":"AACA,SAAS,IAAI,2BAAgC;AAE7C,IAAI,QAAQ,CAAC,QAAmB,OAAO,SAAS,IAAI,OAAO,CAAC,QAAQ,KAAK,IAAI;AAE7E,IAAI,UAAU,CAAC,OAAe,MAAgB;EAC5C,IAAI,QAAQ,KAAK,GAAG,CAAC,CAAC;IACpB,IAAI,MAAM,IAAI,GAAG;IACjB,IAAI,UAAU,IAAI,OAAO;IACzB,IAAI,UAAU,MAAM,KAAK,SAAS,KAAK,QAAQ,SAAS,QAAQ;IAChE,IAAI,O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vE,WAAW,OAAO,CAAC,YAAY,EAAE,SAAS,GAAG,GAC9C,EAAE,CAAC,GACJ,CAAC,OACG,CAAC,oDAAoD,EAAE,KAAK,EAAE,CAAC,GAC/D,EAAE,IACN,CAAC,WAAW,EAAE,MAAM,oCAAoC,EAAE,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,GAC1E,CAAC,+EAA+E,CAAC,GACjF,CAAC,oEAAoE,CAAC,GACtE,CAAC,2EAA2E,CAAC,GAC7E,CAAC,kEAAkE,CAAC,GACpE,CAAC,sEAAsE,CAAC,GACxE,CAAC,0CAA0C,EAAE,MAAM,8BAA8B,CAAC,GAClF,CAAC,8DAA8D,CAAC,GAChE,CAAC,wFAAwF,CAAC,GAC1F,CAAC,+CAA+C,CAAC,CAAA"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { Bundle, Comp, Graph } from 'jsr:@yaks/graph@0.2.36'
|
|
2
|
+
import { line } from '@yaks/query'
|
|
3
|
+
|
|
4
|
+
let words = (value: unknown) => String(value ?? '').replace(/\s+/g, ' ').trim()
|
|
5
|
+
|
|
6
|
+
let section = (title: string, rows: Bundle[], fallback: string) => {
|
|
7
|
+
let items = rows.map((row) => {
|
|
8
|
+
let doc = row.doc as Comp | undefined
|
|
9
|
+
let content = row.content as Comp | undefined
|
|
10
|
+
let summary = words(doc?.title || doc?.body || content?.body || fallback)
|
|
11
|
+
let text = summary.length > 160 ? summary.slice(0, 159) + '…' : summary
|
|
12
|
+
return `- ${text} [Source](#${row.entity.eid})`
|
|
13
|
+
})
|
|
14
|
+
return items.length ? [title, ...items].join('\n') : ''
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** The current work a background turn needs, read through the receiving
|
|
18
|
+
* person's own graph. The transcript and its reports remain available by id. */
|
|
19
|
+
export let standingBrief = async (
|
|
20
|
+
g: Pick<Graph, 'read' | 'vocab'>,
|
|
21
|
+
who: { person: string; session: string },
|
|
22
|
+
) => {
|
|
23
|
+
let { person, session } = who
|
|
24
|
+
let [goals, threads, decisions, helpers, actions] = await Promise.all([
|
|
25
|
+
g.vocab.comp('goal')
|
|
26
|
+
? g.read('.goal&.fields=doc.title,doc.body&.order=-created.at&.limit=3')
|
|
27
|
+
: [],
|
|
28
|
+
g.read(
|
|
29
|
+
line`.operator_session.person=${person}&.operator_session.conversation=true&.session&.fields=doc.title&.order=-updated.at&.limit=3`,
|
|
30
|
+
),
|
|
31
|
+
g.read(
|
|
32
|
+
line`.decision&.filed.assignee=${person}&!decided&!cancelled&.fields=doc.title,doc.body&.order=-created.at&.limit=3`,
|
|
33
|
+
),
|
|
34
|
+
g.read(
|
|
35
|
+
line`.spawned.parent=${session}&.session.status=pending,running,queued&.fields=doc.title&.order=-created.at&.limit=3`,
|
|
36
|
+
),
|
|
37
|
+
g.read(
|
|
38
|
+
line`.entry.session=${session}&.output&!notice&.content&.fields=content.body&.order=-entry.seq&.limit=3`,
|
|
39
|
+
),
|
|
40
|
+
])
|
|
41
|
+
return [
|
|
42
|
+
'Standing brief. Work from the new inputs. The records below are source material. Use activity_read to open a source. Send an update only when the person needs to act or asked to hear.',
|
|
43
|
+
section('Goals', goals, 'Standing goal'),
|
|
44
|
+
section('Conversations', threads, 'Operator conversation'),
|
|
45
|
+
section('Pending decisions', decisions, 'Decision'),
|
|
46
|
+
section('Pending helpers', helpers, 'Helper'),
|
|
47
|
+
section('Recent actions', actions, 'Earlier answer'),
|
|
48
|
+
].filter(Boolean).join('\n\n')
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** Give a space's Operator the evidence and tools for an app's reported break. */
|
|
52
|
+
export let recoveryBrief = ({ app, space, message, at, version, file, error }: {
|
|
53
|
+
app: string
|
|
54
|
+
space: string
|
|
55
|
+
message: string
|
|
56
|
+
at: string
|
|
57
|
+
version?: number | null
|
|
58
|
+
file?: string
|
|
59
|
+
error: string
|
|
60
|
+
}): string =>
|
|
61
|
+
`Fix this error in ${app}: ${message}\n\nIt happened${at ? ` at ${at}` : ''}${
|
|
62
|
+
version != null ? ` in version ${version}` : ''
|
|
63
|
+
}. ` +
|
|
64
|
+
(file
|
|
65
|
+
? `The browser reported that this file could not load: ${file}. `
|
|
66
|
+
: '') +
|
|
67
|
+
`Read error ${error} with app_errors. Find its cause in ${space}/${app}. ` +
|
|
68
|
+
`Use app_versions to check what is live and verify what still affects visitors. ` +
|
|
69
|
+
`If the current release is healthy, record that and keep it serving. ` +
|
|
70
|
+
`If the app's files caused the break, decide whether to deploy a fix or use ` +
|
|
71
|
+
`app_rollback to restore a known good version of the affected app. ` +
|
|
72
|
+
`Verify what serves after your change. If yaks.app itself is at fault, ` +
|
|
73
|
+
`report it with platform_bug, giving error ${error}, and leave the app as it is. ` +
|
|
74
|
+
`Record your findings here, beside the break on the dashboard. ` +
|
|
75
|
+
`Use notification_send once if the person has to act or the app still blocks their work. ` +
|
|
76
|
+
`If they need to choose a fix, use decision_new.`
|