@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/meter.ts
ADDED
|
@@ -0,0 +1,697 @@
|
|
|
1
|
+
// A space's month: what it spent, what its plan (./plans.ts) and its owner
|
|
2
|
+
// let it spend, and the patches a spend makes. All of it is arithmetic on a
|
|
3
|
+
// space as the directory reads it (`Metered`); workers/yak counts the spends
|
|
4
|
+
// and writes them, and ./standing.ts says where a space stands.
|
|
5
|
+
import { type ByDay, kept, summed } from '@yaks/ui/chart'
|
|
6
|
+
import {
|
|
7
|
+
allowance,
|
|
8
|
+
budgeted,
|
|
9
|
+
DOLLARS,
|
|
10
|
+
type Limited,
|
|
11
|
+
monthlyBudget,
|
|
12
|
+
paid,
|
|
13
|
+
type Spend,
|
|
14
|
+
STARTER,
|
|
15
|
+
type Tier,
|
|
16
|
+
tierOf,
|
|
17
|
+
WARN,
|
|
18
|
+
} from './plans.js'
|
|
19
|
+
import { freeUntil, type Trial } from './trial.js'
|
|
20
|
+
|
|
21
|
+
// What a space or an app spent this calendar month (platform.rs `Meter`,
|
|
22
|
+
// usage.ts writes it): on an app its own store's, on a space every app of it
|
|
23
|
+
// summed plus the letters it sent and received. Null where nothing has been
|
|
24
|
+
// metered yet.
|
|
25
|
+
export type Meter = {
|
|
26
|
+
month: string
|
|
27
|
+
// GraphQL invocation requests include hibernated WebSocket messages.
|
|
28
|
+
requests: number
|
|
29
|
+
// All inbound messages, and the subset included in `requests`. Older rows
|
|
30
|
+
// without them remain conservative until the next hourly reading.
|
|
31
|
+
ws_messages?: number
|
|
32
|
+
ws_hibernated?: number
|
|
33
|
+
rows_read: number
|
|
34
|
+
rows_written: number
|
|
35
|
+
bytes: number
|
|
36
|
+
// An app's page views over the last 30 days, no month's figure.
|
|
37
|
+
visits?: number
|
|
38
|
+
// Stored R2 bytes, independent of the calendar month; absent before rollout.
|
|
39
|
+
files?: number
|
|
40
|
+
emails: number
|
|
41
|
+
// Dollars spent on models this month: the Operator's and the apps' calls,
|
|
42
|
+
// each weighed by its model's price (models.ts).
|
|
43
|
+
models: number
|
|
44
|
+
// Dollars an app's voices received this month (rtc.ts): Cloudflare
|
|
45
|
+
// Realtime's egress, weighed at each renewal of a session's lease. It spends
|
|
46
|
+
// the same space budget as `models` (`budget`).
|
|
47
|
+
realtime: number
|
|
48
|
+
// Dollars an app's texts cost this month (app-texts.ts), the same budget.
|
|
49
|
+
texts?: number
|
|
50
|
+
// The seconds the workbench spent awake (sandbox.ts, T-34264).
|
|
51
|
+
// Its own property beside `models` because a model call and a
|
|
52
|
+
// container-second are billed separately, and one number made of both is a
|
|
53
|
+
// number nobody can add up.
|
|
54
|
+
seconds: number
|
|
55
|
+
// Every dollar models, voice and texts have spent here, all months
|
|
56
|
+
// together: what the starter is drawn against (`starterOf`).
|
|
57
|
+
drawn?: number
|
|
58
|
+
// The dollars of models, voice and texts this month that were spent for
|
|
59
|
+
// the space's apps' visitors, already counted in each source's own.
|
|
60
|
+
visitors?: number
|
|
61
|
+
// The dollars of models, voice and texts this month that the platform's
|
|
62
|
+
// owner refunded (budget.ts): off what the month spent and off `drawn`,
|
|
63
|
+
// while each source's own still says what it cost.
|
|
64
|
+
refunded?: number
|
|
65
|
+
// The dollars of models, voice and texts this month past the space's
|
|
66
|
+
// budget, drawn from its credit (`credited`).
|
|
67
|
+
credit?: number
|
|
68
|
+
at: string
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** A space's AI credit (D-134567, `creditOf`): the cap its owner
|
|
72
|
+
* set on a month past its budget, and every dollar of it bought and spent,
|
|
73
|
+
* so what was not spent carries to the next month. */
|
|
74
|
+
export type Credit = { cap: number; bought: number; spent: number }
|
|
75
|
+
|
|
76
|
+
/** A space as its plan and its meter read it: what its month is spent
|
|
77
|
+
* against. The directory's whole space (workers/yak directory.ts `Space`)
|
|
78
|
+
* is one of these and more. */
|
|
79
|
+
export type Metered = {
|
|
80
|
+
slug: string
|
|
81
|
+
store?: string | null
|
|
82
|
+
// What this space pays (D-32751), a comp or a trial read as the plan it
|
|
83
|
+
// gives (`tierOf`). Null for a space on no plan.
|
|
84
|
+
tier: Tier | null
|
|
85
|
+
// Its trial of the Plus plan (./trial.ts), where it was given one: a
|
|
86
|
+
// person's first space. Null on every other.
|
|
87
|
+
trial?: Trial | null
|
|
88
|
+
// Whether that trial is all that gives it the Plus plan now: while it
|
|
89
|
+
// does, the trial's AI use is the starter alone (`budgetOf`).
|
|
90
|
+
trialing?: boolean
|
|
91
|
+
// Its AI credit, where its owner ever set a cap or bought any; null on
|
|
92
|
+
// every other space, which spends nothing past its budget.
|
|
93
|
+
credit?: Credit | null
|
|
94
|
+
// The space's monthly dollar budget for models and voice where the
|
|
95
|
+
// platform's owner set one (workers/yak budget.ts), in place of its plan's
|
|
96
|
+
// (`BUDGET`). Null on every space nobody has given one, which is almost all.
|
|
97
|
+
budget: number | null
|
|
98
|
+
// The platform's monthly Free plan allowance, where the owner set one.
|
|
99
|
+
freeMonthly?: number | null
|
|
100
|
+
// Whether that budget is a newcomer's one build (newcomer.ts `oneBuild`):
|
|
101
|
+
// what lifts it is keeping the app, so its refusals ask for their email
|
|
102
|
+
// rather than offering a plan (./standing.ts `UNKEPT`).
|
|
103
|
+
newcomer?: boolean
|
|
104
|
+
// The dollars this space holds once, before its monthly budget, where it
|
|
105
|
+
// holds other than `STARTER`: none for a person's later spaces
|
|
106
|
+
// (directory.ts `mint`). Absent on almost every space.
|
|
107
|
+
starter?: number | null
|
|
108
|
+
// The percent of that budget its apps' visitors may spend together, where
|
|
109
|
+
// its owner set one (`visiting`); none is `VISITORS`.
|
|
110
|
+
visitors?: number | null
|
|
111
|
+
// The model calls one visitor may ask its apps for in a day, where its
|
|
112
|
+
// owner set a number (`visitorCalls`); none is `VISITOR_CALLS`.
|
|
113
|
+
visitorCalls?: number | null
|
|
114
|
+
meter: Meter | null
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** The components of a space's directory row that say how it is
|
|
118
|
+
* {@link Metered}, each optional, since a row is whichever of them it wears. */
|
|
119
|
+
export type MeteredRow = {
|
|
120
|
+
space?: { slug: string; store?: string | null }
|
|
121
|
+
plan?: {
|
|
122
|
+
tier?: Tier | null
|
|
123
|
+
customer?: string | null
|
|
124
|
+
per?: 'month' | 'year' | null
|
|
125
|
+
subscription?: string | null
|
|
126
|
+
status?: string | null
|
|
127
|
+
until?: string | null
|
|
128
|
+
ending?: string | null
|
|
129
|
+
at?: string | null
|
|
130
|
+
}
|
|
131
|
+
comped?: { until: string }
|
|
132
|
+
plan_trial?: Partial<Trial>
|
|
133
|
+
comp?: {
|
|
134
|
+
tier: 'plus' | 'pro'
|
|
135
|
+
reason: string
|
|
136
|
+
by: string | { eid: string }
|
|
137
|
+
}
|
|
138
|
+
credit?: {
|
|
139
|
+
cap?: number | null
|
|
140
|
+
bought?: number | null
|
|
141
|
+
spent?: number | null
|
|
142
|
+
}
|
|
143
|
+
budget?: { dollars?: number | null; newcomer?: boolean | null }
|
|
144
|
+
starter?: { dollars?: number | null }
|
|
145
|
+
visitor_share?: { percent?: number | null; calls?: number | null }
|
|
146
|
+
meter?: Partial<Meter>
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// The meter as a whole number, however little of the row is written: a property
|
|
150
|
+
// nobody has filled reads zero, so nothing downstream tests for null twice.
|
|
151
|
+
export let meterOf = (r: MeteredRow): Meter | null =>
|
|
152
|
+
r.meter
|
|
153
|
+
? {
|
|
154
|
+
month: r.meter.month ?? '',
|
|
155
|
+
requests: r.meter.requests ?? 0,
|
|
156
|
+
ws_messages: r.meter.ws_messages ?? 0,
|
|
157
|
+
ws_hibernated: r.meter.ws_hibernated ?? 0,
|
|
158
|
+
rows_read: r.meter.rows_read ?? 0,
|
|
159
|
+
rows_written: r.meter.rows_written ?? 0,
|
|
160
|
+
bytes: r.meter.bytes ?? 0,
|
|
161
|
+
...r.meter.visits == null ? {} : { visits: r.meter.visits },
|
|
162
|
+
files: r.meter.files ?? 0,
|
|
163
|
+
emails: r.meter.emails ?? 0,
|
|
164
|
+
models: r.meter.models ?? 0,
|
|
165
|
+
realtime: r.meter.realtime ?? 0,
|
|
166
|
+
texts: r.meter.texts ?? 0,
|
|
167
|
+
seconds: r.meter.seconds ?? 0,
|
|
168
|
+
drawn: r.meter.drawn ?? 0,
|
|
169
|
+
visitors: r.meter.visitors ?? 0,
|
|
170
|
+
refunded: r.meter.refunded ?? 0,
|
|
171
|
+
credit: r.meter.credit ?? 0,
|
|
172
|
+
at: r.meter.at ?? '',
|
|
173
|
+
}
|
|
174
|
+
: null
|
|
175
|
+
|
|
176
|
+
/** A trial as its row holds it, or none for a row without one whole. */
|
|
177
|
+
export let trialRow = (r: Pick<MeteredRow, 'plan_trial'>): Trial | null =>
|
|
178
|
+
r.plan_trial?.at && r.plan_trial.through ? r.plan_trial as Trial : null
|
|
179
|
+
|
|
180
|
+
/** A space's row as its meter reads it. A trial gives the Plus plan as
|
|
181
|
+
* a comped month does, and while nothing else gives it, the space is
|
|
182
|
+
* `trialing`. */
|
|
183
|
+
export let meteredOf = (r: MeteredRow, now: number = Date.now()): Metered => {
|
|
184
|
+
let space = r.space!
|
|
185
|
+
let tier = r.plan?.tier ?? null
|
|
186
|
+
let trial = trialRow(r)
|
|
187
|
+
let comped = r.comped?.until ?? null
|
|
188
|
+
let without = tierOf(space, tier, comped, now, r.comp)
|
|
189
|
+
let until = freeUntil(trial, now)
|
|
190
|
+
let given = until && (!comped || Date.parse(until) > Date.parse(comped))
|
|
191
|
+
? until
|
|
192
|
+
: comped
|
|
193
|
+
return {
|
|
194
|
+
...metered(r),
|
|
195
|
+
slug: space.slug,
|
|
196
|
+
...(space.store ? { store: space.store } : {}),
|
|
197
|
+
tier: tierOf(space, tier, given, now, r.comp),
|
|
198
|
+
trial,
|
|
199
|
+
trialing: !paid(without) && !!until,
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
let metered = (r: MeteredRow) => ({
|
|
204
|
+
credit: r.credit
|
|
205
|
+
? {
|
|
206
|
+
cap: r.credit.cap ?? 0,
|
|
207
|
+
bought: r.credit.bought ?? 0,
|
|
208
|
+
spent: r.credit.spent ?? 0,
|
|
209
|
+
}
|
|
210
|
+
: null,
|
|
211
|
+
budget: r.budget?.dollars ?? null,
|
|
212
|
+
newcomer: !!r.budget?.newcomer,
|
|
213
|
+
starter: r.starter?.dollars ?? null,
|
|
214
|
+
visitors: r.visitor_share?.percent ?? null,
|
|
215
|
+
visitorCalls: r.visitor_share?.calls ?? null,
|
|
216
|
+
meter: meterOf(r),
|
|
217
|
+
})
|
|
218
|
+
|
|
219
|
+
// What one store did, as the analytics answer them (usage.ts `read`). Bytes
|
|
220
|
+
// come from the store itself, and the month and the letters from the row being
|
|
221
|
+
// written (`Meter` is the whole component).
|
|
222
|
+
export type Counts = {
|
|
223
|
+
requests: number
|
|
224
|
+
ws_messages: number
|
|
225
|
+
ws_hibernated: number
|
|
226
|
+
rows_read: number
|
|
227
|
+
rows_written: number
|
|
228
|
+
/** an app's page views over the last 30 days, when they could be read */
|
|
229
|
+
visits?: number
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
// The month's counters for an entity that may have none, or whose row is a
|
|
233
|
+
// month behind: a new month is a fresh reading, never a running total.
|
|
234
|
+
export let thisMonth = (meter: Meter | null, month: string): Meter | null =>
|
|
235
|
+
meter && meter.month == month ? meter : null
|
|
236
|
+
|
|
237
|
+
export let monthOf = (at: Date): string => at.toISOString().slice(0, 7)
|
|
238
|
+
|
|
239
|
+
export let none = (): Counts => ({
|
|
240
|
+
requests: 0,
|
|
241
|
+
ws_messages: 0,
|
|
242
|
+
ws_hibernated: 0,
|
|
243
|
+
rows_read: 0,
|
|
244
|
+
rows_written: 0,
|
|
245
|
+
})
|
|
246
|
+
|
|
247
|
+
// `requests` is the raw invocation reading, kept in its original shape.
|
|
248
|
+
// Hibernated messages are included in it; active-socket messages are not.
|
|
249
|
+
// An unknown invocation type counts once. Cloudflare bills incoming messages
|
|
250
|
+
// at 20:1, so this is a conservative estimate until analytics catches up.
|
|
251
|
+
export let requestUnits = (
|
|
252
|
+
m: Pick<Meter, 'requests' | 'ws_messages' | 'ws_hibernated'>,
|
|
253
|
+
): number => {
|
|
254
|
+
let hibernated = m.ws_hibernated ?? 0
|
|
255
|
+
return Math.ceil(
|
|
256
|
+
m.requests - hibernated + (m.ws_messages ?? 0) / 20,
|
|
257
|
+
)
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/** What a month counts a spend by: each one the plan allows a number of
|
|
261
|
+
* (`Limited`), and the dollars that spend its budget. */
|
|
262
|
+
let SPENDS: Spend[] = [
|
|
263
|
+
'emails',
|
|
264
|
+
'models',
|
|
265
|
+
'realtime',
|
|
266
|
+
'texts',
|
|
267
|
+
'seconds',
|
|
268
|
+
]
|
|
269
|
+
// What a spend adds to: each source, the visitors' share of the dollars,
|
|
270
|
+
// which is already counted in its source, and the dollars refunded.
|
|
271
|
+
let COUNTERS = [...SPENDS, 'visitors', 'refunded']
|
|
272
|
+
|
|
273
|
+
/** The dollars a space may spend and has spent, or a visitors' share of
|
|
274
|
+
* them. */
|
|
275
|
+
export type Budget = { spent: number; limit: number }
|
|
276
|
+
|
|
277
|
+
/** What a reading has spent: model, voice and text dollars together, less
|
|
278
|
+
* what the platform's owner refunded this month (workers/yak budget.ts). */
|
|
279
|
+
export let used = (m: Meter, what: Spend): number =>
|
|
280
|
+
budgeted(what)
|
|
281
|
+
? m.models + m.realtime + (m.texts ?? 0) - (m.refunded ?? 0)
|
|
282
|
+
: m[what]
|
|
283
|
+
|
|
284
|
+
/** A space on the free tier: not on a paid plan, and not comped
|
|
285
|
+
* (`tierOf` reads a comp as the Plus plan). */
|
|
286
|
+
export let free = (space: Pick<Metered, 'tier'>): boolean => !paid(space.tier)
|
|
287
|
+
|
|
288
|
+
/** Whether a space draws from the platform's Free plan allowance. */
|
|
289
|
+
export let usesFreeBudget = (space: Metered): boolean =>
|
|
290
|
+
free(space) && space.budget == null
|
|
291
|
+
|
|
292
|
+
/** Whether a space is at an allowance this month; `more` is what the caller
|
|
293
|
+
* holds that is not counted yet — the dollars and seconds of a build still
|
|
294
|
+
* going. */
|
|
295
|
+
export let over = (
|
|
296
|
+
space: Metered,
|
|
297
|
+
what: Limited,
|
|
298
|
+
more: number = 0,
|
|
299
|
+
now: Date = new Date(),
|
|
300
|
+
): boolean =>
|
|
301
|
+
used(spent(space, now), what) + more >= allowance(what, space.tier)
|
|
302
|
+
|
|
303
|
+
/** What is left of a space's starter as this month began: what it holds,
|
|
304
|
+
* less every dollar it drew before this month (`drawn` counts them all). */
|
|
305
|
+
export let starterOf = (space: Metered, now: Date = new Date()): number =>
|
|
306
|
+
Math.max(0, (space.starter ?? STARTER) - drawnBefore(space, now))
|
|
307
|
+
|
|
308
|
+
// Every dollar a space drew before this month.
|
|
309
|
+
let drawnBefore = (space: Metered, now: Date) =>
|
|
310
|
+
Math.max(0, (space.meter?.drawn ?? 0) - used(spent(space, now), 'models'))
|
|
311
|
+
|
|
312
|
+
/** The starter that leaves `dollars` more of it than {@link starterOf} does
|
|
313
|
+
* now: a grant on top of what is left, never swallowed by what was drawn
|
|
314
|
+
* before it (workers/yak billing.ts `granted`).
|
|
315
|
+
*
|
|
316
|
+
* ```ts
|
|
317
|
+
* import { meterOf, starterOf, topUp } from '@yaks/platform/meter'
|
|
318
|
+
* import { equal } from '@yaks/testing'
|
|
319
|
+
*
|
|
320
|
+
* let now = new Date('2026-11-19T00:00:00Z')
|
|
321
|
+
* let space = (starter: number | null, drawn: number) => ({
|
|
322
|
+
* slug: 'a',
|
|
323
|
+
* tier: null,
|
|
324
|
+
* budget: null,
|
|
325
|
+
* starter,
|
|
326
|
+
* meter: meterOf({ meter: { month: '2026-11', drawn } }),
|
|
327
|
+
* })
|
|
328
|
+
* equal(topUp(space(null, 5), 100, now), 120)
|
|
329
|
+
* equal(topUp(space(0, 150), 100, now), 250)
|
|
330
|
+
* equal(starterOf({ ...space(0, 150), starter: 250 }, now), 100)
|
|
331
|
+
* ```
|
|
332
|
+
*/
|
|
333
|
+
export let topUp = (
|
|
334
|
+
space: Metered,
|
|
335
|
+
dollars: number,
|
|
336
|
+
now: Date = new Date(),
|
|
337
|
+
): number =>
|
|
338
|
+
Math.max(space.starter ?? STARTER, drawnBefore(space, now)) + dollars
|
|
339
|
+
|
|
340
|
+
/** The dollars a space's models and voice may spend this month before its
|
|
341
|
+
* credit: the month the platform's owner set on it (budget.ts), else its
|
|
342
|
+
* plan's, none while a trial gives it its plan (the trial's AI use is the
|
|
343
|
+
* starter, D-476), and what is left of its starter. */
|
|
344
|
+
export let budgetOf = (space: Metered, now: Date = new Date()): number =>
|
|
345
|
+
(space.budget ??
|
|
346
|
+
(space.trialing
|
|
347
|
+
? 0
|
|
348
|
+
: monthlyBudget(space.tier, monthOf(now), space.freeMonthly))) +
|
|
349
|
+
starterOf(space, now)
|
|
350
|
+
|
|
351
|
+
/** The dollars a space's models and voice may spend this month: its budget,
|
|
352
|
+
* and past it what its credit allows. */
|
|
353
|
+
export let limitOf = (space: Metered, now: Date = new Date()): number =>
|
|
354
|
+
budgetOf(space, now) + creditOf(space, now)
|
|
355
|
+
|
|
356
|
+
// ---- credit (D-134567) ------------------------------------------------------
|
|
357
|
+
//
|
|
358
|
+
// Past its monthly budget, a space on the Pro plan spends credit its
|
|
359
|
+
// owner bought in blocks, before it is spent, up to a monthly cap they set:
|
|
360
|
+
// $0 until they choose one, so a space with no credit spends what it always
|
|
361
|
+
// has. The cap bounds both what the space spends past its budget in a month
|
|
362
|
+
// and what credit it may hold for one month, so nothing is ever bought past
|
|
363
|
+
// it. What a month leaves unspent carries to the next, inside that month's
|
|
364
|
+
// cap. `credit.spent` counts every dollar drawn, and the month's meter what
|
|
365
|
+
// this month drew (`meter.credit`), so what the space held as the month
|
|
366
|
+
// began is a subtraction, and the draw is kept in the directory's own
|
|
367
|
+
// transaction with the spend that made it (./meter-graph.ts `spend`).
|
|
368
|
+
//
|
|
369
|
+
// Only the Pro plan buys it (D-134567 answers T-131904 for that
|
|
370
|
+
// plan); credit already bought is spent on whatever plan the space is on.
|
|
371
|
+
// There is no top-up that buys a block when the budget runs out: that is a
|
|
372
|
+
// charge with nobody at the page, and Managed Payments, which sells every
|
|
373
|
+
// plan here, authorizes no charge of its own outside its subscriptions.
|
|
374
|
+
|
|
375
|
+
/** Dollars of credit one checkout buys. */
|
|
376
|
+
export let BLOCK: number = 10
|
|
377
|
+
|
|
378
|
+
/** The plans that may buy credit. */
|
|
379
|
+
export let CREDITED: Tier[] = ['pro']
|
|
380
|
+
|
|
381
|
+
/** What this month has drawn from the space's credit. */
|
|
382
|
+
export let drawnOf = (space: Metered, now: Date = new Date()): number =>
|
|
383
|
+
spent(space, now).credit ?? 0
|
|
384
|
+
|
|
385
|
+
/** The credit a space holds for this month: what it held as the month
|
|
386
|
+
* began and has bought since, drawn or not. */
|
|
387
|
+
export let heldOf = (space: Metered, now: Date = new Date()): number =>
|
|
388
|
+
space.credit
|
|
389
|
+
? space.credit.bought - (space.credit.spent - drawnOf(space, now))
|
|
390
|
+
: 0
|
|
391
|
+
|
|
392
|
+
/** The dollars past its budget a space may spend this month: the credit it
|
|
393
|
+
* holds for it, up to its cap. */
|
|
394
|
+
export let creditOf = (space: Metered, now: Date = new Date()): number =>
|
|
395
|
+
Math.max(0, Math.min(space.credit?.cap ?? 0, heldOf(space, now)))
|
|
396
|
+
|
|
397
|
+
/** What is left of that this month. */
|
|
398
|
+
export let creditLeft = (space: Metered, now: Date = new Date()): number =>
|
|
399
|
+
Math.max(0, creditOf(space, now) - drawnOf(space, now))
|
|
400
|
+
|
|
401
|
+
/** Whether a space may buy a block now: its plan buys credit, and one more
|
|
402
|
+
* leaves what it holds for the month within its cap. */
|
|
403
|
+
export let buyable = (space: Metered, now: Date = new Date()): boolean =>
|
|
404
|
+
CREDITED.includes(space.tier ?? 'free') &&
|
|
405
|
+
heldOf(space, now) + BLOCK <= (space.credit?.cap ?? 0) + 1e-9
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* The patch a spend makes to a space's credit and month: the draw, the
|
|
409
|
+
* month's spending past the budget, up to what its credit allows, and a
|
|
410
|
+
* block bought added to it. Null where the space has no credit and buys
|
|
411
|
+
* none, which is every space that never chose a cap. `meter` is the month's
|
|
412
|
+
* reading once the spend is added.
|
|
413
|
+
*
|
|
414
|
+
* ```ts
|
|
415
|
+
* import { credited } from '@yaks/platform/meter'
|
|
416
|
+
* import { equal } from '@yaks/testing'
|
|
417
|
+
*
|
|
418
|
+
* let now = new Date('2026-11-07T12:00:00Z')
|
|
419
|
+
* let base = { tier: 'pro', budget: 60, starter: 0, meter: null }
|
|
420
|
+
* let space = { ...base, credit: { cap: 20, bought: 10, spent: 0 } } as never
|
|
421
|
+
* equal(credited(space, { month: '2026-11', models: 65 }, 0, now), {
|
|
422
|
+
* credit: { cap: 20, bought: 10, spent: 5 },
|
|
423
|
+
* drawn: 5,
|
|
424
|
+
* })
|
|
425
|
+
* // never past what it bought
|
|
426
|
+
* equal(credited(space, { month: '2026-11', models: 90 }, 0, now)?.drawn, 10)
|
|
427
|
+
* equal(credited({ ...base, credit: null } as never, { month: '2026-11', models: 90 }, 0, now), null)
|
|
428
|
+
* ```
|
|
429
|
+
*/
|
|
430
|
+
export let credited = (
|
|
431
|
+
space: Metered,
|
|
432
|
+
meter: Partial<Meter>,
|
|
433
|
+
bought: number,
|
|
434
|
+
now: Date = new Date(),
|
|
435
|
+
): { credit: Credit; drawn: number } | null => {
|
|
436
|
+
let was = space.credit
|
|
437
|
+
if (!was && !bought) return null
|
|
438
|
+
let credit = {
|
|
439
|
+
cap: was?.cap ?? 0,
|
|
440
|
+
bought: (was?.bought ?? 0) + bought,
|
|
441
|
+
spent: was?.spent ?? 0,
|
|
442
|
+
}
|
|
443
|
+
let before = drawnOf(space, now)
|
|
444
|
+
let room = Math.max(
|
|
445
|
+
0,
|
|
446
|
+
Math.min(credit.cap, credit.bought - (credit.spent - before)),
|
|
447
|
+
)
|
|
448
|
+
let past = used({ ...spent(space, now), ...meter } as Meter, 'models') -
|
|
449
|
+
budgetOf(space, now)
|
|
450
|
+
let drawn = Math.max(0, Math.min(past, room))
|
|
451
|
+
credit.spent += drawn - before
|
|
452
|
+
return { credit, drawn }
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
/** Where a space stands against its cap this month: four fifths of it
|
|
456
|
+
* drawn, or no more to draw, the cap or its credit reached; null otherwise
|
|
457
|
+
* and for a space with no cap. */
|
|
458
|
+
export let capped = (space: Metered, now: Date = new Date()): Capped | null => {
|
|
459
|
+
let cap = space.credit?.cap ?? 0
|
|
460
|
+
if (!cap) return null
|
|
461
|
+
let drawn = drawnOf(space, now)
|
|
462
|
+
let room = creditOf(space, now)
|
|
463
|
+
if (room && drawn >= room - 1e-9) return 'at'
|
|
464
|
+
return drawn >= cap * WARN ? 'near' : null
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export type Capped = 'near' | 'at'
|
|
468
|
+
|
|
469
|
+
/** The space's models and voice this month, against its budget. */
|
|
470
|
+
export let budget = (space: Metered, now: Date = new Date()): Budget => ({
|
|
471
|
+
spent: used(spent(space, now), 'models'),
|
|
472
|
+
limit: limitOf(space, now),
|
|
473
|
+
})
|
|
474
|
+
|
|
475
|
+
// ---- the visitors (T-144737) ------------------------------------------------
|
|
476
|
+
//
|
|
477
|
+
// Anyone who may write an app whose manifest opens its models or voices to
|
|
478
|
+
// them (`"models": "open"`, `"rtc": "open"`) spends the space's one budget,
|
|
479
|
+
// and its owner says how much of it visitors as a whole may spend a month
|
|
480
|
+
// (`space_set visitors`): a share of that budget, never a second one. What
|
|
481
|
+
// they spend is counted on the month's meter (`visitors`) beside the source
|
|
482
|
+
// counters, so a stranger can spend the share and never the owner's month.
|
|
483
|
+
// One visitor may ask for a number of model calls a day as well
|
|
484
|
+
// (`space_set visitor_calls`), counted in the directory as each is held
|
|
485
|
+
// (model-spend.ts `reserved`), so no one of them spends the whole share.
|
|
486
|
+
|
|
487
|
+
/** The model calls one visitor may ask a space's apps for in a day (UTC)
|
|
488
|
+
* where its owner has set none. */
|
|
489
|
+
export let VISITOR_CALLS: number = 50
|
|
490
|
+
|
|
491
|
+
/** The model calls one visitor may ask a space's apps for today. */
|
|
492
|
+
export let visitorCalls = (space: Metered): number =>
|
|
493
|
+
space.visitorCalls ?? VISITOR_CALLS
|
|
494
|
+
|
|
495
|
+
/** The percent of a space's month budget its visitors may spend where its
|
|
496
|
+
* owner has set none. */
|
|
497
|
+
export let VISITORS: number = 25
|
|
498
|
+
|
|
499
|
+
/** What a space's visitors spent this month, against the share of its
|
|
500
|
+
* budget its owner lets them. */
|
|
501
|
+
export let visiting = (space: Metered, now: Date = new Date()): Budget => ({
|
|
502
|
+
spent: spent(space, now).visitors ?? 0,
|
|
503
|
+
limit: limitOf(space, now) * (space.visitors ?? VISITORS) / 100,
|
|
504
|
+
})
|
|
505
|
+
|
|
506
|
+
/** The dollars a call may hold now: what is left of the space's month, and,
|
|
507
|
+
* for a visitor's, no more than is left of their share. */
|
|
508
|
+
export let left = (
|
|
509
|
+
space: Metered,
|
|
510
|
+
now: Date = new Date(),
|
|
511
|
+
visitor: boolean = false,
|
|
512
|
+
): number => {
|
|
513
|
+
let room = (b: Budget) => Math.max(0, b.limit - b.spent)
|
|
514
|
+
let all = room(budget(space, now))
|
|
515
|
+
return visitor ? Math.min(all, room(visiting(space, now))) : all
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
// A month with nothing spent yet. What the space holds (`bytes`, `files`) is
|
|
519
|
+
// not a month's figure, so a new month neither starts it over nor writes it.
|
|
520
|
+
let empty = (month: string): Omit<Meter, 'bytes'> => ({
|
|
521
|
+
month,
|
|
522
|
+
...none(),
|
|
523
|
+
emails: 0,
|
|
524
|
+
models: 0,
|
|
525
|
+
realtime: 0,
|
|
526
|
+
texts: 0,
|
|
527
|
+
seconds: 0,
|
|
528
|
+
visitors: 0,
|
|
529
|
+
refunded: 0,
|
|
530
|
+
at: '',
|
|
531
|
+
})
|
|
532
|
+
|
|
533
|
+
// This month's reading, whatever the row holds — a month behind is nothing
|
|
534
|
+
// spent, and no row at all is the same. What the space holds carries through
|
|
535
|
+
// the month (held.ts).
|
|
536
|
+
export let spent = (space: Metered, now: Date = new Date()): Meter =>
|
|
537
|
+
thisMonth(space.meter, monthOf(now)) ??
|
|
538
|
+
{
|
|
539
|
+
...empty(monthOf(now)),
|
|
540
|
+
bytes: space.meter?.bytes ?? 0,
|
|
541
|
+
files: space.meter?.files ?? 0,
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* A meter with a spend added, as the patch that writes it: onto what it holds
|
|
546
|
+
* when it holds the spend's month, and onto a fresh month when it holds
|
|
547
|
+
* another. `drawn` counts dollars across all months, so a new month carries
|
|
548
|
+
* it. A refund counts on the month beside what each
|
|
549
|
+
* source cost, and comes off `drawn`, so the month and the starter read as if
|
|
550
|
+
* the dollars refunded had never been spent.
|
|
551
|
+
*
|
|
552
|
+
* ```ts
|
|
553
|
+
* import { added } from '@yaks/platform/meter'
|
|
554
|
+
*
|
|
555
|
+
* let sep = { month: '2026-09', models: 0.5 }
|
|
556
|
+
* added(sep, { month: '2026-09', models: 0.25 })
|
|
557
|
+
* // { month: '2026-09', models: 0.75 }
|
|
558
|
+
* added(sep, { month: '2026-10', emails: 1 }).models // 0
|
|
559
|
+
* added({ ...sep, drawn: 4 }, { month: '2026-10', models: 0.5 }).drawn // 4.5
|
|
560
|
+
* added({ ...sep, drawn: 4 }, { month: '2026-09', refunded: 0.5 })
|
|
561
|
+
* // { month: '2026-09', refunded: 0.5, drawn: 3.5 }
|
|
562
|
+
* ```
|
|
563
|
+
*/
|
|
564
|
+
export let added = (
|
|
565
|
+
meter: Record<string, unknown> | undefined,
|
|
566
|
+
spend: Record<string, unknown>,
|
|
567
|
+
): Record<string, unknown> => {
|
|
568
|
+
let n = (v: unknown) => Number(v ?? 0)
|
|
569
|
+
let month = String(spend.month)
|
|
570
|
+
let held = meter?.month == month ? meter : undefined
|
|
571
|
+
let out: Record<string, unknown> = held ? { month } : empty(month)
|
|
572
|
+
for (let k of COUNTERS) if (n(spend[k])) out[k] = n(held?.[k]) + n(spend[k])
|
|
573
|
+
let cost = DOLLARS.reduce((sum, k) => sum + n(spend[k]), 0) -
|
|
574
|
+
n(spend.refunded)
|
|
575
|
+
if (cost) out.drawn = n(meter?.drawn) + cost
|
|
576
|
+
return out
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
/** What a dollar is spent on, as the admin's spending page tells them
|
|
580
|
+
* apart: each model provider by the name its plug serves under (config.ts),
|
|
581
|
+
* a voice (an app's or an Operator's call, and speech), texts and numbers,
|
|
582
|
+
* and the browser that renders a preview. A spend that names none is said
|
|
583
|
+
* by what it buys (`sourceOf`). */
|
|
584
|
+
export let SOURCES: Record<string, string> = {
|
|
585
|
+
anthropic: 'Anthropic',
|
|
586
|
+
openai: 'OpenAI',
|
|
587
|
+
'workers-ai': 'Workers AI',
|
|
588
|
+
openrouter: 'OpenRouter',
|
|
589
|
+
voice: 'Voice',
|
|
590
|
+
texts: 'Texts',
|
|
591
|
+
browser: 'Browser',
|
|
592
|
+
scripts: 'Scripts',
|
|
593
|
+
onnx: 'ONNX inference',
|
|
594
|
+
models: 'Other models',
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/** What Browser Rendering charges for a browser kept open `ms`. */
|
|
598
|
+
export let browserDollars = (ms: number): number => ms / 1000 * 0.09 / 3600
|
|
599
|
+
|
|
600
|
+
/** Marginal price of a fresh Dynamic Worker, one invocation, and its CPU. */
|
|
601
|
+
export let scriptDollars = (cpuMs: number): number =>
|
|
602
|
+
(2_000_000 + 300 + Math.round(cpuMs * 20)) / 1_000_000_000
|
|
603
|
+
|
|
604
|
+
/** The source a spend is kept under: the one it names, else what it buys. */
|
|
605
|
+
export let sourceOf = (spend: Record<string, unknown>): string =>
|
|
606
|
+
typeof spend.source == 'string' && spend.source
|
|
607
|
+
? spend.source
|
|
608
|
+
: Number(spend.realtime ?? 0)
|
|
609
|
+
? 'voice'
|
|
610
|
+
: Number(spend.texts ?? 0)
|
|
611
|
+
? 'texts'
|
|
612
|
+
: 'models'
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* The patch a spend makes to a space's `trend`: what it cost on its day, in
|
|
616
|
+
* all and under its source (`sourceOf`), under `paid` too when the space
|
|
617
|
+
* pays for a plan, so a day's dollars say who covered them: the space's own
|
|
618
|
+
* plan, or the platform, and under `people` by the person whose work it paid
|
|
619
|
+
* for, where it names one. A letter or a spend of nothing costs nothing and
|
|
620
|
+
* leaves the days as they are. A spend made `at` an earlier moment (a hold
|
|
621
|
+
* settled after its day) lands on that day.
|
|
622
|
+
*
|
|
623
|
+
* ```ts
|
|
624
|
+
* import { trended } from '@yaks/platform/meter'
|
|
625
|
+
* import { equal } from '@yaks/testing'
|
|
626
|
+
*
|
|
627
|
+
* let now = Date.parse('2026-10-31T12:00:00Z')
|
|
628
|
+
* equal(
|
|
629
|
+
* trended({ spend: { '2026-10-31': 1 } }, {
|
|
630
|
+
* models: 0.5,
|
|
631
|
+
* source: 'anthropic',
|
|
632
|
+
* }, now),
|
|
633
|
+
* {
|
|
634
|
+
* spend: { '2026-10-31': 1.5 },
|
|
635
|
+
* sources: { anthropic: { '2026-10-31': 0.5 } },
|
|
636
|
+
* },
|
|
637
|
+
* )
|
|
638
|
+
* equal(trended({}, { texts: 0.25 }, now, true), {
|
|
639
|
+
* spend: { '2026-10-31': 0.25 },
|
|
640
|
+
* sources: { texts: { '2026-10-31': 0.25 } },
|
|
641
|
+
* paid: { '2026-10-31': 0.25 },
|
|
642
|
+
* })
|
|
643
|
+
* equal(trended({}, { emails: 1 }, now), {})
|
|
644
|
+
* let held = Date.parse('2026-10-30T23:00:00Z')
|
|
645
|
+
* equal(trended({ spend: { '2026-10-30': 9 } }, { models: -8 }, now, false, held), {
|
|
646
|
+
* spend: { '2026-10-30': 1 },
|
|
647
|
+
* sources: { models: { '2026-10-30': -8 } },
|
|
648
|
+
* })
|
|
649
|
+
* ```
|
|
650
|
+
*/
|
|
651
|
+
export let trended = (
|
|
652
|
+
trend: Record<string, unknown> | undefined,
|
|
653
|
+
spend: Record<string, unknown>,
|
|
654
|
+
now: number,
|
|
655
|
+
paying: boolean = false,
|
|
656
|
+
at: number = now,
|
|
657
|
+
): Record<string, unknown> => {
|
|
658
|
+
let cost = spendDollars(spend)
|
|
659
|
+
if (!cost) return {}
|
|
660
|
+
let source = sourceOf(spend)
|
|
661
|
+
let sources = (trend?.sources ?? {}) as Record<string, ByDay>
|
|
662
|
+
let on = (days: ByDay | undefined) => kept(days, cost, now, undefined, at)
|
|
663
|
+
return {
|
|
664
|
+
spend: on(trend?.spend as ByDay),
|
|
665
|
+
sources: { ...sources, [source]: on(sources[source]) },
|
|
666
|
+
...paying ? { paid: on(trend?.paid as ByDay) } : {},
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
export let spendDollars = (spend: Record<string, unknown>) =>
|
|
671
|
+
DOLLARS.reduce((sum, k) => sum + Number(spend[k] ?? 0), 0)
|
|
672
|
+
|
|
673
|
+
export type WorkSpend = {
|
|
674
|
+
space: string
|
|
675
|
+
person: string
|
|
676
|
+
days: ByDay
|
|
677
|
+
last: string
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
/** Work by person in any space, with the remaining platform spend under nobody. */
|
|
681
|
+
export let byPerson = (
|
|
682
|
+
work: Pick<WorkSpend, 'person' | 'days'>[],
|
|
683
|
+
totals: (ByDay | undefined)[] = [],
|
|
684
|
+
): { people: Record<string, ByDay>; nobody: ByDay } => {
|
|
685
|
+
let people: Record<string, ByDay> = {}
|
|
686
|
+
for (let { person, days } of work) {
|
|
687
|
+
people[person] = summed([people[person], days])
|
|
688
|
+
}
|
|
689
|
+
let nobody = Object.fromEntries(
|
|
690
|
+
Object.entries(summed([...totals, ...Object.values(people).map(negated)]))
|
|
691
|
+
.filter(([, n]) => n > 0),
|
|
692
|
+
)
|
|
693
|
+
return { people, nobody }
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
let negated = (days: ByDay): ByDay =>
|
|
697
|
+
Object.fromEntries(Object.entries(days ?? {}).map(([d, n]) => [d, -n]))
|