rvlib-shipkit 2.26.0 → 2.28.0
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/CHANGELOG.md +36 -0
- package/package.json +1 -1
- package/src/agent-time/diet.ts +77 -0
- package/src/agent-time/family.ts +72 -0
- package/src/agent-time/hooks.ts +16 -7
- package/src/agent-time/limits.ts +44 -0
- package/src/agent-time/live.ts +12 -8
- package/src/agent-time/mask.ts +96 -18
- package/src/agent-time/refused.ts +45 -0
- package/src/agent-time/registry.ts +289 -0
- package/src/agent-time/render.ts +122 -21
- package/src/agent-time/report-cache.ts +57 -0
- package/src/agent-time/report.ts +314 -40
- package/src/agent-time/shape.ts +50 -3
- package/src/agent-time/store.ts +322 -101
- package/src/agent-time/timeline.ts +140 -21
- package/src/agent-time/turns.ts +18 -8
- package/src/annex/born.ts +2 -2
- package/src/annex/offload.ts +29 -17
- package/src/annex/tidy.ts +70 -10
- package/src/asks/ask-after.ts +44 -0
- package/src/asks/ask-bar-fold.ts +57 -0
- package/src/asks/ask-migrate.ts +280 -0
- package/src/asks/ask-steps-fold.ts +166 -0
- package/src/asks/ask-store.ts +586 -0
- package/src/assets/kit-config.ts +7 -3
- package/src/assets/kits/identity-kit.ts +361 -14
- package/src/assets/kits/poster-thumbnail.ts +282 -0
- package/src/check.ts +3 -1
- package/src/checks/SK003-claude-md-shape.check.ts +92 -25
- package/src/checks/SK004-gitignore-policy.check.ts +20 -9
- package/src/checks/SK013-one-way-in-policy.check.ts +18 -3
- package/src/checks/SK026-asks-autoclose.check.ts +9 -23
- package/src/checks/SK028-readme.check.ts +7 -66
- package/src/checks/SK030-cache-audit.check.ts +6 -1
- package/src/checks/SK031-trace-audit.check.ts +2 -0
- package/src/checks/SK033-global-contribution.check.ts +3 -1
- package/src/checks/SK035-public-clean.check.ts +2 -2
- package/src/checks/SK038-speaks-as.check.ts +3 -3
- package/src/checks/SK042-post-kinds.check.ts +26 -24
- package/src/checks/SK043-scratch-on-the-mac.check.ts +59 -4
- package/src/checks/SK047-login-in-description.check.ts +36 -0
- package/src/checks/SK048-one-local-file.check.ts +36 -0
- package/src/checks/SK049-thread-answers-hook.check.ts +81 -0
- package/src/checks/SK050-retired-commands.check.ts +127 -0
- package/src/cli/cmd_Asks.ts +244 -27
- package/src/cli/cmd_Backup.ts +153 -10
- package/src/cli/cmd_Calls.ts +1 -0
- package/src/cli/cmd_Capacity.ts +2 -2
- package/src/cli/cmd_Commands.ts +140 -34
- package/src/cli/cmd_Contracts.ts +1 -0
- package/src/cli/cmd_CrossRepoActivity.ts +5 -4
- package/src/cli/cmd_Db.ts +253 -0
- package/src/cli/cmd_History.ts +212 -0
- package/src/cli/cmd_Home.ts +31 -3
- package/src/cli/cmd_Hq.ts +516 -0
- package/src/cli/cmd_Keys.ts +1 -0
- package/src/cli/cmd_Lanes.ts +15 -4
- package/src/cli/cmd_Machines.ts +36 -0
- package/src/cli/cmd_Media.ts +38 -6
- package/src/cli/cmd_Messages.ts +152 -1
- package/src/cli/cmd_Needs.ts +1 -0
- package/src/cli/cmd_Reflect.ts +23 -2
- package/src/cli/cmd_Review.ts +1357 -223
- package/src/cli/cmd_Secret.ts +295 -24
- package/src/cli/cmd_Social.ts +113 -28
- package/src/cli/cmd_SocialDrafts.ts +235 -0
- package/src/cli/cmd_Sound.ts +22 -1
- package/src/cli/cmd_Space.ts +324 -0
- package/src/cli/cmd_Start.ts +3 -2
- package/src/cli/cmd_ThreadHolds.ts +34 -0
- package/src/cli/cmd_ThreadKinds.ts +146 -0
- package/src/cli/cmd_ThreadReflect.ts +83 -0
- package/src/cli/cmd_ThreadSyncNeeds.ts +62 -0
- package/src/cli/cmd_Time.ts +76 -5
- package/src/cli/cmd_Tmp.ts +28 -4
- package/src/cli/cmd_Trailer.ts +14 -10
- package/src/cli/cmd_Urls.ts +56 -0
- package/src/cli/cmd_Vault.ts +583 -0
- package/src/cli/cmd_When.ts +1 -0
- package/src/cli/family-help.ts +5 -3
- package/src/cli/family-pages.ts +1 -1
- package/src/cli/kit/builtins.ts +1 -0
- package/src/cli/kit/verb.ts +6 -2
- package/src/cli/registry.ts +44 -4
- package/src/cli.ts +5 -2
- package/src/collections/actions.ts +42 -41
- package/src/collections/collection-types.ts +30 -4
- package/src/collections/md-body.ts +5 -3
- package/src/collections/pings.ts +13 -6
- package/src/collections/providers.ts +147 -61
- package/src/collections/reflections.ts +9 -4
- package/src/collections/review.ts +4 -4
- package/src/contracts/contract-manifests.ts +6 -5
- package/src/contracts/contract-types.ts +6 -4
- package/src/contracts/contracts-engine.ts +11 -0
- package/src/contracts/manifests/chrome-web-store.contract.ts +31 -0
- package/src/core/budget.ts +12 -17
- package/src/core/capacity.ts +27 -18
- package/src/core/check-runner.ts +7 -4
- package/src/core/discover-checks.ts +18 -3
- package/src/core/git.ts +31 -0
- package/src/core/house-layout.ts +17 -0
- package/src/core/layout.ts +13 -5
- package/src/core/locked-write.ts +4 -1
- package/src/core/machine-busy.ts +127 -0
- package/src/core/machine-commit.ts +6 -1
- package/src/core/machine-db.ts +370 -20
- package/src/core/machine-layout.ts +137 -0
- package/src/core/machine-read.ts +81 -0
- package/src/core/migrate-layout.ts +9 -11
- package/src/core/one-way-in-policy.ts +64 -7
- package/src/core/polling-policy.ts +27 -0
- package/src/core/retention.ts +16 -2
- package/src/core/scope.ts +107 -14
- package/src/core/slots.ts +5 -4
- package/src/drill/clean.ts +25 -1
- package/src/drill/run.ts +1 -1
- package/src/drill/seal.ts +27 -4
- package/src/home/activity-shape.ts +2 -0
- package/src/home/activity.ts +59 -3
- package/src/home/app-sign.ts +15 -4
- package/src/home/daemon-jobs.ts +161 -7
- package/src/home/database-projects.ts +111 -0
- package/src/home/database-words.ts +203 -0
- package/src/home/databases.ts +460 -0
- package/src/home/global-units.ts +6 -0
- package/src/home/gui-app/ShipkitGui.swift +122 -1
- package/src/home/gui-app.ts +6 -3
- package/src/home/home-move.ts +514 -0
- package/src/home/home-paths.ts +18 -6
- package/src/home/home-routes.ts +76 -0
- package/src/home/inbox-shape.ts +234 -91
- package/src/home/inbox.ts +26 -71
- package/src/home/machine-fold.ts +815 -0
- package/src/home/machine-host.ts +38 -5
- package/src/home/machine-repair.ts +503 -0
- package/src/home/machine-stores.ts +66 -15
- package/src/home/machine-temp.ts +547 -86
- package/src/home/other-macs.ts +2 -2
- package/src/home/resume.ts +79 -0
- package/src/home/run-daemon.ts +25 -4
- package/src/home/run-pm.ts +18 -5
- package/src/home/serve-daemon.ts +18 -3
- package/src/home/serve-web.ts +179 -10
- package/src/home/space-job.ts +115 -0
- package/src/home/space-page.ts +257 -0
- package/src/home/space-route.ts +167 -0
- package/src/home/space-words.ts +103 -0
- package/src/home/time-page-shape.ts +202 -0
- package/src/home/time-page.ts +64 -0
- package/src/home/vault-page.ts +516 -0
- package/src/home/vault-words.ts +132 -0
- package/src/hooks/leak-guard.ts +40 -13
- package/src/hooks/one-way-in-guard.ts +41 -6
- package/src/hq/cards.ts +581 -0
- package/src/hq/door-route.ts +43 -0
- package/src/hq/door.ts +163 -0
- package/src/hq/files-send.ts +347 -0
- package/src/hq/forgotten-log.ts +35 -0
- package/src/hq/history-check.ts +255 -0
- package/src/hq/history-place.ts +146 -0
- package/src/hq/history-send.ts +487 -0
- package/src/hq/hq-db.ts +102 -0
- package/src/hq/hq-local.ts +502 -0
- package/src/hq/hq-routes.ts +204 -0
- package/src/hq/hq-store.ts +603 -0
- package/src/hq/kinds/ask.ts +147 -0
- package/src/hq/kinds/card-gone.ts +83 -0
- package/src/hq/kinds/card-msg.ts +66 -0
- package/src/hq/kinds/card.ts +99 -0
- package/src/hq/kinds/index.ts +21 -0
- package/src/hq/kinds/kind.ts +126 -0
- package/src/hq/kinds/media.ts +125 -0
- package/src/hq/kinds/prompt.ts +219 -0
- package/src/hq/kinds/reflection.ts +128 -0
- package/src/hq/kinds/report.ts +55 -0
- package/src/hq/kinds/time-day.ts +236 -0
- package/src/hq/ledger.ts +473 -0
- package/src/hq/machine-key.ts +44 -0
- package/src/hq/machine-notes.ts +131 -0
- package/src/hq/outbox.ts +374 -0
- package/src/hq/replica.ts +167 -0
- package/src/hq/repo-id.ts +4 -0
- package/src/hq/report-facts.ts +117 -0
- package/src/hq/report.ts +274 -0
- package/src/hq/switch.ts +151 -0
- package/src/hq/vault-grant.ts +92 -0
- package/src/hq/vault-route.ts +112 -0
- package/src/identities/collection.ts +2 -2
- package/src/identities/identities.ts +24 -11
- package/src/identities/machine-route.ts +8 -3
- package/src/identities/steps.ts +31 -0
- package/src/ledger/db.ts +81 -27
- package/src/ledger/gate-checks.ts +6 -2
- package/src/ledger/run-log.ts +11 -3
- package/src/ledger/store.ts +26 -4
- package/src/media-store/backup/daemon.ts +73 -25
- package/src/media-store/backup/kept.ts +241 -0
- package/src/media-store/backup/keys.ts +1 -1
- package/src/media-store/backup/manifest.ts +20 -2
- package/src/media-store/backup/prune.ts +365 -0
- package/src/media-store/backup/restore.ts +14 -4
- package/src/media-store/backup/retention.ts +122 -0
- package/src/media-store/backup/run.ts +25 -19
- package/src/media-store/backup/secret.ts +6 -4
- package/src/media-store/backup/snapshot.ts +4 -2
- package/src/media-store/backup/sources.ts +83 -31
- package/src/media-store/backup/thread-copy.ts +340 -0
- package/src/media-store/copy/config.ts +76 -0
- package/src/media-store/copy/copy.ts +194 -0
- package/src/media-store/copy/lifecycle.ts +43 -0
- package/src/media-store/copy/night.ts +90 -0
- package/src/media-store/copy/proof.ts +151 -0
- package/src/media-store/copy/snapshot.ts +152 -0
- package/src/media-store/copy/store.ts +62 -0
- package/src/media-store/copy/stream.ts +176 -0
- package/src/media-store/daemon.ts +66 -16
- package/src/media-store/db.ts +24 -13
- package/src/media-store/forget.ts +141 -3
- package/src/media-store/hand.ts +4 -3
- package/src/media-store/hq-find.ts +75 -0
- package/src/media-store/hq-send.ts +277 -0
- package/src/media-store/kind.ts +2 -0
- package/src/media-store/purge.ts +21 -17
- package/src/media-store/put.ts +24 -8
- package/src/media-store/remote.ts +16 -7
- package/src/media-store/space-listing.ts +256 -0
- package/src/media-store/space.ts +46 -26
- package/src/media-store/sync.ts +5 -5
- package/src/media-store/tidy.ts +98 -0
- package/src/media-store/upload.ts +3 -3
- package/src/media-store/webp.ts +66 -0
- package/src/messages/guard.ts +49 -0
- package/src/messages/model.ts +16 -7
- package/src/messages/objects.ts +201 -0
- package/src/messages/routes.ts +14 -4
- package/src/messages/score.ts +3 -3
- package/src/messages/write.ts +285 -0
- package/src/pages/frame-client.ts +191 -4
- package/src/plan/planner.ts +28 -17
- package/src/recordings/media-kind.ts +1 -0
- package/src/recordings/model.ts +1 -1
- package/src/recordings/recorder-app/Capture.swift +9 -7
- package/src/reflect/hq-corpus.ts +56 -0
- package/src/reflect/prompt-corpus.ts +3 -1
- package/src/reflect/transcript.ts +129 -37
- package/src/reflections/reflections-queue.ts +1 -1
- package/src/release/gate-checkout.ts +2 -1
- package/src/release/git-facts.ts +3 -2
- package/src/release/machine-words.ts +67 -0
- package/src/release/public-clean.ts +11 -5
- package/src/releases/from-card.ts +1 -1
- package/src/releases/routes.ts +10 -5
- package/src/releases/store.ts +10 -1
- package/src/repo-config.ts +71 -19
- package/src/review/anim.ts +3 -3
- package/src/review/answer-kinds.ts +131 -0
- package/src/review/auto.ts +2 -2
- package/src/review/band.ts +53 -0
- package/src/review/branch-hold.ts +84 -0
- package/src/review/card-db.ts +254 -0
- package/src/review/card-rows.ts +267 -0
- package/src/review/cells.ts +360 -57
- package/src/review/close.ts +92 -0
- package/src/review/draft-card.ts +33 -0
- package/src/review/draft-model.ts +78 -0
- package/src/review/events.ts +171 -0
- package/src/review/format.ts +152 -19
- package/src/review/glyphs.ts +63 -0
- package/src/review/gone.ts +98 -0
- package/src/review/holds-sync.ts +62 -0
- package/src/review/holds.ts +85 -0
- package/src/review/house-kind-defs.ts +41 -0
- package/src/review/inbox-hook.ts +23 -10
- package/src/review/inbox-read.ts +201 -0
- package/src/review/instructions.ts +199 -0
- package/src/review/kind-apply.ts +61 -0
- package/src/review/kind-catalog.ts +96 -0
- package/src/review/kinds.ts +278 -0
- package/src/review/lane-ask.ts +109 -0
- package/src/review/marks.ts +1 -1
- package/src/review/media-kind.ts +7 -5
- package/src/review/media-read.ts +9 -7
- package/src/review/media.ts +32 -5
- package/src/review/model.ts +582 -109
- package/src/review/move.ts +491 -0
- package/src/review/need-address.ts +15 -0
- package/src/review/need-threads.ts +93 -0
- package/src/review/notes.ts +12 -20
- package/src/review/object-card.ts +48 -0
- package/src/review/object-read.ts +31 -0
- package/src/review/owner-verdict.ts +36 -0
- package/src/review/parties.ts +182 -0
- package/src/review/previews.ts +18 -20
- package/src/review/project.ts +1 -1
- package/src/review/projections.ts +235 -0
- package/src/review/referring.ts +54 -0
- package/src/review/reflection-object.ts +195 -0
- package/src/review/rev.ts +8 -0
- package/src/review/role.ts +1 -1
- package/src/review/routes.ts +194 -38
- package/src/review/secret-route.ts +80 -0
- package/src/review/snooze.ts +38 -0
- package/src/review/stage-card.ts +12 -8
- package/src/review/stage-routes.ts +1 -1
- package/src/review/store.ts +851 -124
- package/src/review/supersede.ts +116 -0
- package/src/review/take-back.ts +52 -0
- package/src/review/thread-fold.ts +64 -0
- package/src/review/threads.ts +349 -14
- package/src/review/traces.ts +218 -0
- package/src/review/trailer-auto-mock.ts +63 -0
- package/src/review/trailer-card.ts +6 -6
- package/src/review/trailer-desk.ts +41 -7
- package/src/review/trailer-media.ts +1 -0
- package/src/review/trailer-model.ts +8 -0
- package/src/review/trailer-notes.ts +1 -1
- package/src/review/trailer-routes.ts +9 -1
- package/src/review/unit.ts +77 -11
- package/src/review/verdict-items.ts +73 -0
- package/src/review/verdict-write.ts +15 -0
- package/src/review/wait.ts +85 -0
- package/src/review/watchers.ts +23 -10
- package/src/rules/untrack-generated.ts +92 -8
- package/src/scaffold/files/claude-settings-local.json +2 -0
- package/src/secrets/archive-mark.ts +52 -0
- package/src/secrets/archive.ts +83 -0
- package/src/secrets/copy.ts +14 -14
- package/src/secrets/held.ts +16 -0
- package/src/secrets/keychain-write.ts +48 -0
- package/src/secrets/keychain.ts +116 -0
- package/src/secrets/lapse-mark.ts +33 -0
- package/src/secrets/lapse.ts +60 -0
- package/src/secrets/list.ts +21 -17
- package/src/secrets/manager.ts +55 -26
- package/src/secrets/read.ts +385 -0
- package/src/secrets/tail.ts +31 -0
- package/src/secrets/who-reads.ts +49 -0
- package/src/serve/door-forward.ts +268 -0
- package/src/serve/door-names.ts +47 -0
- package/src/serve/embed.ts +1 -1
- package/src/serve/hub-app/activity-view.tsx +56 -32
- package/src/serve/hub-app/activity.css +7 -1
- package/src/serve/hub-app/asks-page.tsx +49 -0
- package/src/serve/hub-app/asks-st.ts +25 -0
- package/src/serve/hub-app/auto-text.tsx +14 -6
- package/src/serve/hub-app/benign-errors.ts +15 -1
- package/src/serve/hub-app/card-head.tsx +49 -0
- package/src/serve/hub-app/check-view.tsx +3 -2
- package/src/serve/hub-app/clock-svc.ts +1 -2
- package/src/serve/hub-app/code-copy.ts +35 -0
- package/src/serve/hub-app/col-card.tsx +72 -30
- package/src/serve/hub-app/col-list-page.tsx +125 -0
- package/src/serve/hub-app/col-list-st.ts +103 -0
- package/src/serve/hub-app/col-tables-view.tsx +17 -45
- package/src/serve/hub-app/col-tables.ts +76 -8
- package/src/serve/hub-app/cols-svc.ts +18 -39
- package/src/serve/hub-app/commands/commands-page.tsx +2 -1
- package/src/serve/hub-app/controls.css +83 -0
- package/src/serve/hub-app/database-st.ts +260 -0
- package/src/serve/hub-app/database-view.tsx +289 -0
- package/src/serve/hub-app/database.css +32 -0
- package/src/serve/hub-app/entry-bar.css +14 -0
- package/src/serve/hub-app/entry-bar.tsx +33 -0
- package/src/serve/hub-app/entry-pick.ts +31 -0
- package/src/serve/hub-app/floating.tsx +1 -0
- package/src/serve/hub-app/frames-st.ts +17 -1
- package/src/serve/hub-app/git-view.tsx +3 -2
- package/src/serve/hub-app/hash-route.ts +11 -1
- package/src/serve/hub-app/header-bar.tsx +14 -18
- package/src/serve/hub-app/home-st.ts +142 -11
- package/src/serve/hub-app/home-strip.css +6 -25
- package/src/serve/hub-app/home-strip.tsx +60 -93
- package/src/serve/hub-app/home.html +10 -0
- package/src/serve/hub-app/house-wiki-view.tsx +20 -0
- package/src/serve/hub-app/hub-app.tsx +71 -166
- package/src/serve/hub-app/hub-types.ts +5 -1
- package/src/serve/hub-app/hub.css +146 -71
- package/src/serve/hub-app/icons.tsx +32 -5
- package/src/serve/hub-app/identities-st.ts +56 -6
- package/src/serve/hub-app/identities-view.tsx +104 -61
- package/src/serve/hub-app/identities.css +17 -15
- package/src/serve/hub-app/identity-address.ts +5 -0
- package/src/serve/hub-app/inbox-st.ts +227 -49
- package/src/serve/hub-app/inbox-view.tsx +204 -120
- package/src/serve/hub-app/inbox.css +47 -47
- package/src/serve/hub-app/index.html +10 -0
- package/src/serve/hub-app/instructions.css +30 -0
- package/src/serve/hub-app/kept-cols.tsx +7 -0
- package/src/serve/hub-app/keys.ts +32 -17
- package/src/serve/hub-app/later.tsx +26 -0
- package/src/serve/hub-app/list-filter.tsx +14 -0
- package/src/serve/hub-app/list-walk.ts +72 -3
- package/src/serve/hub-app/machine-st.ts +2 -2
- package/src/serve/hub-app/machines-st.ts +251 -0
- package/src/serve/hub-app/machines-view.tsx +217 -0
- package/src/serve/hub-app/machines.css +67 -0
- package/src/serve/hub-app/markdown.css +51 -0
- package/src/serve/hub-app/md-copy.tsx +57 -0
- package/src/serve/hub-app/md.ts +25 -9
- package/src/serve/hub-app/media-view.tsx +4 -2
- package/src/serve/hub-app/messages/messages-page.tsx +81 -8
- package/src/serve/hub-app/messages/messages-st.ts +99 -3
- package/src/serve/hub-app/messages.css +14 -1
- package/src/serve/hub-app/objects.css +51 -0
- package/src/serve/hub-app/page-keys.ts +175 -0
- package/src/serve/hub-app/pages-frames.tsx +21 -3
- package/src/serve/hub-app/palette-st.ts +58 -11
- package/src/serve/hub-app/palette-view.tsx +3 -1
- package/src/serve/hub-app/pane-boundary.tsx +72 -0
- package/src/serve/hub-app/pane-errors.ts +54 -0
- package/src/serve/hub-app/plan-view.tsx +3 -2
- package/src/serve/hub-app/planned-view.tsx +3 -3
- package/src/serve/hub-app/planned.css +0 -4
- package/src/serve/hub-app/processes-view.tsx +3 -2
- package/src/serve/hub-app/project-list.css +46 -8
- package/src/serve/hub-app/project-list.tsx +125 -59
- package/src/serve/hub-app/projects-svc.ts +83 -8
- package/src/serve/hub-app/reader-chips.tsx +13 -0
- package/src/serve/hub-app/readme-view.tsx +2 -3
- package/src/serve/hub-app/readme.css +22 -6
- package/src/serve/hub-app/reflections-page.tsx +95 -0
- package/src/serve/hub-app/reflections-st.ts +17 -0
- package/src/serve/hub-app/releases/releases-page.tsx +28 -4
- package/src/serve/hub-app/releases/releases-st.ts +1 -1
- package/src/serve/hub-app/releases.css +0 -1
- package/src/serve/hub-app/repo-sections.ts +9 -5
- package/src/serve/hub-app/repo-st.ts +35 -8
- package/src/serve/hub-app/review/code-colors.ts +30 -0
- package/src/serve/hub-app/review/diff-view.tsx +75 -0
- package/src/serve/hub-app/review/dock.tsx +104 -0
- package/src/serve/hub-app/review/draft-card.tsx +163 -0
- package/src/serve/hub-app/review/group-block.tsx +209 -0
- package/src/serve/hub-app/review/instructions-view.tsx +116 -0
- package/src/serve/hub-app/review/item-verdict.tsx +38 -0
- package/src/serve/hub-app/review/kind-states.tsx +193 -0
- package/src/serve/hub-app/review/kind-view.tsx +1 -37
- package/src/serve/hub-app/review/kit.tsx +75 -29
- package/src/serve/hub-app/review/lane-bar.tsx +64 -0
- package/src/serve/hub-app/review/note-place.ts +1 -1
- package/src/serve/hub-app/review/object-card.tsx +62 -0
- package/src/serve/hub-app/review/object-panel.tsx +179 -0
- package/src/serve/hub-app/review/question-views.tsx +385 -0
- package/src/serve/hub-app/review/review-board.tsx +2 -2
- package/src/serve/hub-app/review/review-cells.tsx +148 -87
- package/src/serve/hub-app/review/review-kit.ts +27 -1
- package/src/serve/hub-app/review/review-list.tsx +160 -65
- package/src/serve/hub-app/review/review-page.tsx +12 -12
- package/src/serve/hub-app/review/review-st.ts +174 -47
- package/src/serve/hub-app/review/review-thread.tsx +214 -53
- package/src/serve/hub-app/review/review-views.tsx +494 -159
- package/src/serve/hub-app/review/thread-close.tsx +124 -0
- package/src/serve/hub-app/review/thread-control-st.ts +115 -0
- package/src/serve/hub-app/review/thread-control.tsx +74 -0
- package/src/serve/hub-app/review/thread-st.ts +288 -41
- package/src/serve/hub-app/review/trailer-card.tsx +2 -2
- package/src/serve/hub-app/review/trailer-page.tsx +37 -16
- package/src/serve/hub-app/review/trailer-st.ts +41 -7
- package/src/serve/hub-app/review/trailer-timeline.tsx +2 -2
- package/src/serve/hub-app/review.css +462 -97
- package/src/serve/hub-app/section-head.tsx +51 -0
- package/src/serve/hub-app/side-lists.ts +72 -0
- package/src/serve/hub-app/sidebar.tsx +6 -3
- package/src/serve/hub-app/site/site-part.tsx +2 -8
- package/src/serve/hub-app/site/site-st.ts +4 -4
- package/src/serve/hub-app/social/calendar.tsx +5 -11
- package/src/serve/hub-app/social/comms-page.tsx +43 -15
- package/src/serve/hub-app/social/kit.tsx +32 -13
- package/src/serve/hub-app/social/next-release.tsx +3 -5
- package/src/serve/hub-app/social/post-card.tsx +142 -49
- package/src/serve/hub-app/social/post-page.tsx +80 -0
- package/src/serve/hub-app/social/problems.tsx +5 -9
- package/src/serve/hub-app/social/serial-writes.ts +13 -0
- package/src/serve/hub-app/social/social-model.ts +24 -5
- package/src/serve/hub-app/social/social-page.tsx +95 -36
- package/src/serve/hub-app/social/social-st.ts +162 -41
- package/src/serve/hub-app/social/stage-popup.tsx +1 -1
- package/src/serve/hub-app/social/stage-st.ts +1 -1
- package/src/serve/hub-app/social/step-layout.ts +1 -1
- package/src/serve/hub-app/social.css +10 -17
- package/src/serve/hub-app/space-st.ts +209 -0
- package/src/serve/hub-app/space-view.tsx +196 -0
- package/src/serve/hub-app/space.css +27 -0
- package/src/serve/hub-app/stores/stores-page.tsx +97 -25
- package/src/serve/hub-app/stores/stores-st.ts +44 -19
- package/src/serve/hub-app/stores.css +6 -1
- package/src/serve/hub-app/theme-st.ts +22 -9
- package/src/serve/hub-app/thread-row.tsx +101 -0
- package/src/serve/hub-app/time-ago.tsx +3 -2
- package/src/serve/hub-app/time-charts.tsx +291 -0
- package/src/serve/hub-app/time-pages.tsx +749 -0
- package/src/serve/hub-app/time-st.ts +162 -0
- package/src/serve/hub-app/time-view.tsx +77 -0
- package/src/serve/hub-app/time.css +135 -0
- package/src/serve/hub-app/tree-build.ts +52 -42
- package/src/serve/hub-app/tree-row.tsx +3 -11
- package/src/serve/hub-app/tree-svc.ts +18 -9
- package/src/serve/hub-app/urls-svc.ts +154 -0
- package/src/serve/hub-app/urls-view.tsx +117 -0
- package/src/serve/hub-app/urls.css +30 -0
- package/src/serve/hub-app/vault-st.ts +127 -0
- package/src/serve/hub-app/vault-view.tsx +154 -0
- package/src/serve/hub-app/vault.css +38 -0
- package/src/serve/hub-app/veille/veille-page.tsx +2 -11
- package/src/serve/hub-app/veille/veille-st.ts +12 -10
- package/src/serve/hub-app/veille.css +0 -1
- package/src/serve/hub-app/waiting-svc.ts +29 -0
- package/src/serve/hub-app/when-view.tsx +6 -3
- package/src/serve/hub-app/wiki-st.ts +30 -4
- package/src/serve/hub-app/wikis-view.tsx +6 -5
- package/src/serve/hub-runtime.ts +35 -8
- package/src/serve/project-gutter-route.ts +42 -19
- package/src/serve/project-gutter.ts +16 -50
- package/src/serve/same-origin.ts +13 -0
- package/src/serve/secret-gate.ts +21 -0
- package/src/serve/serve-hub.ts +38 -20
- package/src/serve/tailnet-caller.ts +117 -0
- package/src/shipkit-files.ts +16 -2
- package/src/shipkit.ts +3 -3
- package/src/shot/shooter.ts +616 -420
- package/src/shot/shot-ask.ts +246 -155
- package/src/site/desk.ts +4 -4
- package/src/smoke/run-smoke.ts +6 -6
- package/src/social/brands.ts +4 -0
- package/src/social/card-drafts.ts +11 -19
- package/src/social/cover.ts +202 -0
- package/src/social/desk-index.ts +34 -13
- package/src/social/discord-layout.ts +37 -13
- package/src/social/drafts.ts +7 -4
- package/src/social/import-drafts.ts +244 -0
- package/src/social/kind-pages.ts +3 -3
- package/src/social/kinds.ts +1 -1
- package/src/social/load.ts +111 -65
- package/src/social/media-kind.ts +68 -160
- package/src/social/media-of.ts +5 -4
- package/src/social/open.ts +3 -2
- package/src/social/post-object.ts +120 -0
- package/src/social/post-sources.ts +136 -0
- package/src/social/post-text.ts +103 -0
- package/src/social/posts.ts +378 -0
- package/src/social/presence.ts +7 -5
- package/src/social/publish/discord.ts +5 -2
- package/src/social/publish/index.ts +17 -5
- package/src/social/publish/secret.ts +4 -4
- package/src/social/release-stage.ts +79 -63
- package/src/social/routes.ts +89 -24
- package/src/social/stage.ts +43 -58
- package/src/social/stats.ts +12 -9
- package/src/social/strip.ts +4 -1
- package/src/social/text.ts +4 -3
- package/src/social/thumbnail.ts +347 -0
- package/src/social/tracker.ts +1 -1
- package/src/social/writes.ts +12 -29
- package/src/stores/collection.ts +15 -11
- package/src/stores/desk.ts +246 -47
- package/src/stores/model.ts +72 -6
- package/src/stores/routes.ts +37 -12
- package/src/stores/unit.ts +16 -10
- package/src/suite/judge-suites.ts +41 -11
- package/src/suite/select.ts +45 -3
- package/src/suite/suite-cli.ts +16 -10
- package/src/trailer/bed.ts +1 -1
- package/src/trailer/build.ts +134 -21
- package/src/trailer/ffmpeg.ts +7 -0
- package/src/trailer/fonts.ts +3 -2
- package/src/trailer/grammar.ts +201 -2
- package/src/trailer/graph.ts +42 -5
- package/src/trailer/look.ts +21 -0
- package/src/trailer/mock.ts +154 -0
- package/src/trailer/passage.ts +65 -26
- package/src/trailer/score/heard.ts +89 -0
- package/src/trailer/score/sound.ts +14 -8
- package/src/trailer/sound/eleven.ts +33 -3
- package/src/trailer/sound/run.ts +16 -6
- package/src/trailer/stitch.ts +26 -5
- package/src/trailer/titles.ts +82 -19
- package/src/trailer/versions.ts +1 -3
- package/src/trailer/vertical.ts +3 -1
- package/src/urls/frame.ts +195 -0
- package/src/urls/routes.ts +43 -0
- package/src/urls/rows.ts +171 -0
- package/src/urls/unit.ts +73 -0
- package/src/vault/house-keys.ts +42 -0
- package/src/vault/layout.ts +50 -0
- package/src/vault/policy.ts +165 -0
- package/src/vault/vault-audit.ts +276 -0
- package/src/vault/vault-client.ts +40 -0
- package/src/vault/vault-config.ts +159 -0
- package/src/vault/vault-destroy.ts +78 -0
- package/src/vault/vault-handover.ts +305 -0
- package/src/vault/vault-http.ts +360 -0
- package/src/vault/vault-import.ts +213 -0
- package/src/vault/vault-init.ts +328 -0
- package/src/vault/vault-minter.ts +271 -0
- package/src/vault/vault-restore.ts +333 -0
- package/src/vault/vault-serve.ts +342 -0
- package/src/vault/vault-snapshot.ts +281 -0
- package/src/veille/asks.ts +1 -1
- package/src/veille/desk.ts +2 -2
- package/src/veille/identity.ts +2 -2
- package/src/wiki/graph-pages.ts +13 -1
- package/src/wiki/scan-md.ts +1 -1
- package/src/asks/asks-queue.ts +0 -266
- package/src/social/migrate.ts +0 -123
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
// `/machines`: every machine that reports to the hq. On top, what to look at (the notes of `sk machines`, one line
|
|
2
|
+
// each, or one quiet line), then one block a machine with one row a daemon; a machine opens on its repos with their
|
|
3
|
+
// gates (a repo at another head than on another daemon marked), its commits of the last day, its processes.
|
|
4
|
+
//
|
|
5
|
+
// The constraint a reader breaks first: every word comes from the report, in the console's words (machines-st.ts),
|
|
6
|
+
// and colour is state only: green on, red silent, orange what a note is about.
|
|
7
|
+
import { observer } from 'mobx-react-lite'
|
|
8
|
+
import { gb } from '../../hq/machine-notes.ts'
|
|
9
|
+
import type { HomeSt } from './home-st.ts'
|
|
10
|
+
import { CardHead } from './card-head.tsx'
|
|
11
|
+
import { activityLines, countWords, driftKey, driftWords, gateWords, isMine, type Machine, type MachinesSt, type MNode, nodeFacts, nodeOrder, nodeRest, processLines, reposOf, stateOf, stateWords } from './machines-st.ts'
|
|
12
|
+
import { type Col, Hint, num, Spark, Table } from './time-charts.tsx'
|
|
13
|
+
|
|
14
|
+
const clock = (at: number): string => new Date(at).toTimeString().slice(0, 5)
|
|
15
|
+
const moment = (at: number): string => new Date(at).toLocaleString(undefined, { day: 'numeric', month: 'short', hour: '2-digit', minute: '2-digit' })
|
|
16
|
+
|
|
17
|
+
/** the free disk over the window: two points make a line, one is only the figure beside it */
|
|
18
|
+
const DiskLine = ({ n }: { n: MNode }) => {
|
|
19
|
+
const line = n.line
|
|
20
|
+
const first = line[0]
|
|
21
|
+
const last = line[line.length - 1]
|
|
22
|
+
if (first == null || last == null || line.length < 2) return null
|
|
23
|
+
const low = line.reduce((a, p) => (p.free < a.free ? p : a), first)
|
|
24
|
+
const tip = (
|
|
25
|
+
<>
|
|
26
|
+
<b>free disk, the last 30 days</b>
|
|
27
|
+
<div>{moment(first.at)}: {gb(first.free)}</div>
|
|
28
|
+
<div>the lowest, {moment(low.at)}: {gb(low.free)}</div>
|
|
29
|
+
<div>{moment(last.at)}: {gb(last.free)}</div>
|
|
30
|
+
</>
|
|
31
|
+
)
|
|
32
|
+
return <Spark points={line.map((p) => ({ at: p.at, v: p.free }))} label={`free disk from ${gb(first.free)} to ${gb(last.free)}`} tip={tip} />
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const NodeRow = observer(({ st, n }: { st: MachinesSt; n: MNode }) => {
|
|
36
|
+
const s = stateOf(n, st.now)
|
|
37
|
+
const w = stateWords(n, st.now)
|
|
38
|
+
const f = nodeFacts(n, st.newest, st.drift)
|
|
39
|
+
const drifted = f == null || f.drifted === 0 ? null : reposOf(n).filter((r) => st.drift.has(driftKey(n.id, r.name))).map((r) => r.name)
|
|
40
|
+
return (
|
|
41
|
+
<div className={`mcnode mc-${s}`}>
|
|
42
|
+
<span className="mcwho"><i className={`mcdot mcd-${s}`} />{n.osUser}</span>
|
|
43
|
+
<span className="mcstate"><b>{w.word}</b> {w.since}</span>
|
|
44
|
+
{f == null ? null : (
|
|
45
|
+
<>
|
|
46
|
+
<span className={f.version.warn ? 't-warn' : ''}>{f.version.text}</span>
|
|
47
|
+
<span className="mchouse">{f.house.text}{f.behind == null ? null : <span className={f.behind.warn ? 't-warn' : 'mcdim'}> {f.behind.text}</span>}</span>
|
|
48
|
+
<span className="mcdisk"><span className={f.disk.warn ? 't-warn' : ''}>{f.disk.text}</span><DiskLine n={n} /></span>
|
|
49
|
+
<span className="mcrepos">
|
|
50
|
+
{f.repos}{f.dirty}
|
|
51
|
+
{drifted == null ? null : <Hint className="t-warn" tip={`at another head than on another daemon: ${drifted.join(', ')}`}>, {f.drifted} at another head</Hint>}
|
|
52
|
+
</span>
|
|
53
|
+
</>
|
|
54
|
+
)}
|
|
55
|
+
</div>
|
|
56
|
+
)
|
|
57
|
+
})
|
|
58
|
+
|
|
59
|
+
/** under a daemon's row: its processes, its agents as counts, its switches on or set, a split one marked */
|
|
60
|
+
const NodeRest = observer(({ st, n }: { st: MachinesSt; n: MNode }) => {
|
|
61
|
+
const r = nodeRest(n, st.splits, st.now)
|
|
62
|
+
if (r == null || (r.processes == null && r.agents == null && r.switches.length === 0 && r.wanted.length === 0)) return null
|
|
63
|
+
return (
|
|
64
|
+
<div className="mcrest">
|
|
65
|
+
<div>
|
|
66
|
+
{r.processes == null ? null : <span className={r.processes.warn ? 't-warn' : ''}>{r.processes.text}</span>}
|
|
67
|
+
{r.agents == null ? null : <span>{r.agents}</span>}
|
|
68
|
+
{r.switches.length === 0 ? null : (
|
|
69
|
+
<span>
|
|
70
|
+
switches:{' '}
|
|
71
|
+
{r.switches.map((s, i) => (
|
|
72
|
+
<span key={s.text}>
|
|
73
|
+
{i > 0 ? ', ' : ''}
|
|
74
|
+
{s.split == null ? s.text : <Hint className="t-warn" tip={`another value elsewhere: ${s.split}`}>{s.text} ≠</Hint>}
|
|
75
|
+
</span>
|
|
76
|
+
))}
|
|
77
|
+
</span>
|
|
78
|
+
)}
|
|
79
|
+
{r.wanted.map((w) => <span key={w} className="t-warn">{w}</span>)}
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
)
|
|
83
|
+
})
|
|
84
|
+
|
|
85
|
+
const HEAD: Col[] = [
|
|
86
|
+
{ label: 'repo' },
|
|
87
|
+
{ label: 'branch' },
|
|
88
|
+
{ label: 'head' },
|
|
89
|
+
{ label: 'ahead', num: true, title: 'commits not on its upstream yet' },
|
|
90
|
+
{ label: 'behind', num: true, title: 'commits of its upstream it does not hold, as last fetched' },
|
|
91
|
+
{ label: 'dirty', num: true, title: 'paths changed and not committed' },
|
|
92
|
+
{ label: 'gate', title: 'its checks as its run record last saw them' },
|
|
93
|
+
]
|
|
94
|
+
|
|
95
|
+
const ACTIVITY_HEAD: Col[] = [{ label: 'when' }, { label: 'repo' }, { label: 'branch', title: 'empty: the branch its checkout is on' }, { label: 'commit' }, { label: 'title' }]
|
|
96
|
+
const PROCESS_HEAD: Col[] = [{ label: 'process' }, { label: 'repo', title: 'the house repo that declares it' }, { label: 'state' }, { label: 'url', title: 'the url it declares, on its own machine' }]
|
|
97
|
+
|
|
98
|
+
/** its newest commits on every branch over the last day: a lane's worktree branch shows what that lane commits */
|
|
99
|
+
const Activity = observer(({ st, n }: { st: MachinesSt; n: MNode }) => {
|
|
100
|
+
const lines = activityLines(n, st.now)
|
|
101
|
+
if (lines == null) return null
|
|
102
|
+
return (
|
|
103
|
+
<div className="mcsub">
|
|
104
|
+
<div className="mcsubhead">recent commits, the last day</div>
|
|
105
|
+
<Table head={ACTIVITY_HEAD} empty="no commit in the last day" rows={lines.map((a) => ({ key: a.key, cells: [a.age, a.repo, a.branch, <span className="mcsha">{a.sha}</span>, <span className="mctitle">{a.title}</span>] }))} />
|
|
106
|
+
</div>
|
|
107
|
+
)
|
|
108
|
+
})
|
|
109
|
+
|
|
110
|
+
/** a process opened through the door: on the hq's machine only, `*.localhost` names nothing on a phone */
|
|
111
|
+
const DoorLink = ({ href }: { href: string }) => (
|
|
112
|
+
<Hint tip="opens through the hq's home, on the machine that carries the hq">
|
|
113
|
+
<a className="mcdoor" href={href} target="_blank" rel="noopener">open ↗</a>
|
|
114
|
+
</Hint>
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
const Processes = observer(({ st, n, machine }: { st: MachinesSt; n: MNode; machine: string }) => {
|
|
118
|
+
const lines = processLines(n, st.now, { machine, ...(st.data?.door == null ? {} : { door: st.data.door }) })
|
|
119
|
+
if (lines.length === 0) return null
|
|
120
|
+
return (
|
|
121
|
+
<div className="mcsub">
|
|
122
|
+
<div className="mcsubhead">global processes</div>
|
|
123
|
+
<Table head={PROCESS_HEAD} empty="no global process" rows={lines.map((p) => ({ key: p.id, cells: [p.id, p.repo, <span className={p.up ? '' : p.state === 'crashed' ? 't-warn' : 'mcdim'}>{p.state}{p.since === '' ? '' : ` ${p.since}`}</span>, p.url == null ? <span className="mcdim">no url</span> : <span className="mcurl"><span className="mcsha">{p.url}</span>{p.door == null ? null : <DoorLink href={p.door} />}</span>] }))} />
|
|
124
|
+
</div>
|
|
125
|
+
)
|
|
126
|
+
})
|
|
127
|
+
|
|
128
|
+
const Repos = observer(({ st, n, many, machine }: { st: MachinesSt; n: MNode; many: boolean; machine: string }) => (
|
|
129
|
+
<div className="mcrepolist">
|
|
130
|
+
{many ? <div className="mcuser">{n.osUser}</div> : null}
|
|
131
|
+
<Table head={HEAD} empty="no house repo in its last report" rows={reposOf(n).map((r) => {
|
|
132
|
+
const d = st.drift.get(driftKey(n.id, r.name))
|
|
133
|
+
return {
|
|
134
|
+
key: r.name,
|
|
135
|
+
cells: [
|
|
136
|
+
r.name,
|
|
137
|
+
r.branch,
|
|
138
|
+
d == null ? <span className="mcsha">{r.head}</span> : <Hint className="mcsha t-warn" tip={driftWords(d)}>{r.head} ≠</Hint>,
|
|
139
|
+
num.n0(r.ahead),
|
|
140
|
+
num.n0(r.behind),
|
|
141
|
+
num.n0(r.dirty),
|
|
142
|
+
(() => {
|
|
143
|
+
const g = gateWords(r.gate, st.now)
|
|
144
|
+
return <Hint className={`mcgate mcg-${g.tone}`} tip={g.tip}>{g.text}</Hint>
|
|
145
|
+
})(),
|
|
146
|
+
],
|
|
147
|
+
}
|
|
148
|
+
})} />
|
|
149
|
+
<Activity st={st} n={n} />
|
|
150
|
+
<Processes st={st} n={n} machine={machine} />
|
|
151
|
+
</div>
|
|
152
|
+
))
|
|
153
|
+
|
|
154
|
+
const MachineBlock = observer(({ st, m }: { st: MachinesSt; m: Machine }) => {
|
|
155
|
+
const open = st.opened.has(m.id)
|
|
156
|
+
const nodes = nodeOrder(m.nodes, st.notes)
|
|
157
|
+
const held = nodes.filter((n) => n.ended == null && n.report != null)
|
|
158
|
+
const gone = nodes.every((n) => n.ended != null)
|
|
159
|
+
return (
|
|
160
|
+
<section className={`mcmachine${gone ? ' gone' : ''}`} aria-label={m.name}>
|
|
161
|
+
<CardHead title={m.name} open={open} onFold={held.length === 0 ? undefined : () => st.toggle(m.id)}
|
|
162
|
+
meta={isMine(m, st.data?.you ?? '') ? <span className="mcmine">this machine</span> : null} />
|
|
163
|
+
{nodes.map((n) => (
|
|
164
|
+
<div key={n.id}>
|
|
165
|
+
<NodeRow st={st} n={n} />
|
|
166
|
+
<NodeRest st={st} n={n} />
|
|
167
|
+
</div>
|
|
168
|
+
))}
|
|
169
|
+
{open ? held.map((n) => <Repos key={n.id} st={st} n={n} many={held.length > 1} machine={m.name} />) : null}
|
|
170
|
+
</section>
|
|
171
|
+
)
|
|
172
|
+
})
|
|
173
|
+
|
|
174
|
+
/** the open asks of every machine, once each: an ask two machines hold through git is one line */
|
|
175
|
+
const Asks = observer(({ st }: { st: MachinesSt }) => {
|
|
176
|
+
const asks = st.asks
|
|
177
|
+
if (st.data?.asks == null) return null
|
|
178
|
+
const short = (repo: string): string => repo.split('/').at(-1) ?? repo
|
|
179
|
+
return (
|
|
180
|
+
<section className="mcasks" aria-label="open asks, every machine">
|
|
181
|
+
<CardHead title="open asks, every machine" n={asks.length === 0 ? 'none' : asks.length} meta="in the console: sk asks --all" />
|
|
182
|
+
{asks.map((a) => (
|
|
183
|
+
<div key={`${a.repo} ${a.name}`} className="mcask">
|
|
184
|
+
<span className="mcdim">{short(a.repo)} {a.number ?? ''}</span>
|
|
185
|
+
<span>{a.title}</span>
|
|
186
|
+
<span className="mcdim">{a.kind}{a.blocks !== '-' ? ` · blocks ${a.blocks}` : ''}{a.pinged != null ? ' · pinged' : ''} · on {a.machines.join(', ')}</span>
|
|
187
|
+
</div>
|
|
188
|
+
))}
|
|
189
|
+
</section>
|
|
190
|
+
)
|
|
191
|
+
})
|
|
192
|
+
|
|
193
|
+
export const MachinesView = observer(({ app }: { app: HomeSt }) => {
|
|
194
|
+
const st = app.machines
|
|
195
|
+
const d = st.data
|
|
196
|
+
return (
|
|
197
|
+
<div className="hall machines">
|
|
198
|
+
<div className="actop">
|
|
199
|
+
<span className="acdim">{d == null ? (st.error !== '' ? '' : 'reading the hq…') : `${countWords(d.machines)} · read at ${clock(d.at)} · in the console: sk machines`}</span>
|
|
200
|
+
</div>
|
|
201
|
+
{st.error !== '' ? <div className="hnote mcerr">{st.error}</div> : null}
|
|
202
|
+
{d == null ? null : (
|
|
203
|
+
<div className="mcpage">
|
|
204
|
+
<section className={`mclook${st.notes.length === 0 ? ' calm' : ''}`} aria-label="what to look at">
|
|
205
|
+
{st.notes.length === 0 ? <p className="mcquiet">nothing to look at</p> : (
|
|
206
|
+
<ul className="mcnotes">
|
|
207
|
+
{st.notes.map((n) => <li key={`${n.node}\0${n.text}`}><i className="mcdot mcd-warn" />{n.text}</li>)}
|
|
208
|
+
</ul>
|
|
209
|
+
)}
|
|
210
|
+
</section>
|
|
211
|
+
{st.machines.map((m) => <MachineBlock key={m.id} st={st} m={m} />)}
|
|
212
|
+
<Asks st={st} />
|
|
213
|
+
</div>
|
|
214
|
+
)}
|
|
215
|
+
</div>
|
|
216
|
+
)
|
|
217
|
+
})
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* the machines page (machines-view.tsx): what to look at on top, then one block a machine and one row a daemon.
|
|
2
|
+
On a wide page a row's facts sit in columns that line up from machine to machine; on a phone they wrap under
|
|
3
|
+
the daemon's name. Colour is state only: green on, red silent, orange what a note is about. */
|
|
4
|
+
.machines{font-size:13px;container-type:inline-size}
|
|
5
|
+
.mcpage{max-width:1120px}
|
|
6
|
+
.mcerr{margin-bottom:var(--s3)}
|
|
7
|
+
.mcdim{color:var(--dim)}
|
|
8
|
+
|
|
9
|
+
/* what to look at: a band that holds the notes; with none, one quiet line */
|
|
10
|
+
.mclook{margin:0 0 var(--s4);padding:var(--s3) var(--s4);border:1px solid var(--line);border-left:3px solid var(--warn);border-radius:6px;background:var(--panel)}
|
|
11
|
+
.mclook.calm{padding:0;border:0;background:none}
|
|
12
|
+
.mcnotes{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:var(--s2)}
|
|
13
|
+
.mcnotes li{display:flex;align-items:baseline;gap:var(--s2);font-size:14px;line-height:1.4;color:var(--ink)}
|
|
14
|
+
.mcquiet{margin:0;color:var(--dim)}
|
|
15
|
+
|
|
16
|
+
/* a machine */
|
|
17
|
+
.mcmachine{margin-top:var(--s3);border:1px solid var(--line);border-radius:6px;background:var(--panel);overflow:hidden}
|
|
18
|
+
.mcmine{flex:none;padding:0 var(--s2);border:1px solid var(--line);border-radius:999px;color:var(--dim);font-size:11.5px;line-height:18px}
|
|
19
|
+
.mcmachine.gone{opacity:.6}
|
|
20
|
+
|
|
21
|
+
/* a daemon: one row, its facts in columns */
|
|
22
|
+
.mcnode{display:grid;grid-template-columns:90px 120px 100px 225px 205px minmax(0,1fr);align-items:center;column-gap:var(--s3);padding:var(--s1) var(--s3);border-top:1px solid var(--hi3);white-space:nowrap;font-variant-numeric:tabular-nums}
|
|
23
|
+
.mcnode > span{min-width:0;overflow:hidden;text-overflow:ellipsis}
|
|
24
|
+
.mcwho{display:flex;align-items:center;gap:var(--s2);font-weight:600}
|
|
25
|
+
.mcstate b{font-weight:600}
|
|
26
|
+
.mc-silent .mcstate,.mc-never .mcstate{color:var(--red)}
|
|
27
|
+
.mc-ended{color:var(--dim)}
|
|
28
|
+
.mc-ended .mcwho,.mc-ended .mcstate b{font-weight:400}
|
|
29
|
+
.mcdisk{display:flex;align-items:center;gap:var(--s2)}
|
|
30
|
+
.mcdisk .tvspark{width:56px}
|
|
31
|
+
.mcrepos{color:var(--dim)}
|
|
32
|
+
.mcasks{margin-top:var(--s4);border:1px solid var(--line);border-radius:6px;background:var(--panel)}
|
|
33
|
+
.mcask{display:grid;grid-template-columns:140px minmax(0,1fr) auto;column-gap:var(--s3);padding:var(--s1) var(--s3);border-top:1px solid var(--hi3)}
|
|
34
|
+
.mcask > span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
35
|
+
@media (max-width:720px){.mcask{display:flex;flex-wrap:wrap;gap:0 var(--s3)}.mcask > span{white-space:normal}}
|
|
36
|
+
.mcrest{display:grid;grid-template-columns:90px minmax(0,1fr);column-gap:var(--s3);padding:0 var(--s3) var(--s1);color:var(--dim);font-size:.92em}
|
|
37
|
+
.mcrest::before{content:''}
|
|
38
|
+
.mcrest > div{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s4);min-width:0}
|
|
39
|
+
@media (max-width:720px){.mcrest{display:block}}
|
|
40
|
+
.mcdot{display:inline-block;flex:none;width:8px;height:8px;border-radius:50%;background:var(--dim)}
|
|
41
|
+
.mcd-on{background:var(--ok)}
|
|
42
|
+
.mcd-silent,.mcd-never{background:var(--red)}
|
|
43
|
+
.mcd-warn{background:var(--warn);transform:translateY(-1px)}
|
|
44
|
+
|
|
45
|
+
/* a narrow page: each daemon's facts wrap under its name */
|
|
46
|
+
@container (max-width:900px){
|
|
47
|
+
.mcnode{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s3);padding:var(--s2) var(--s3)}
|
|
48
|
+
.mcwho{flex-basis:100%}
|
|
49
|
+
.mcnode > span{overflow:visible}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* a machine opened on its repos */
|
|
53
|
+
.mcrepolist{padding:var(--s2) var(--s3) var(--s3);border-top:1px solid var(--hi3)}
|
|
54
|
+
.mcuser{margin:0 0 var(--s1);font-weight:600}
|
|
55
|
+
.mcrepolist .tvtable{width:auto;min-width:min(100%,560px)}
|
|
56
|
+
.mcrepolist .tvtable td,.mcrepolist .tvtable th{padding-right:var(--s4)}
|
|
57
|
+
.mcsha{font:12px ui-monospace,SFMono-Regular,Menlo,monospace}
|
|
58
|
+
.mcsub{margin-top:var(--s3)}
|
|
59
|
+
.mcsubhead{margin:0 0 var(--s1);color:var(--dim);font-size:12px}
|
|
60
|
+
.mctitle{display:inline-block;max-width:52ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
|
|
61
|
+
.mcg-ok{color:var(--ok)}
|
|
62
|
+
.mcg-warn{color:var(--warn)}
|
|
63
|
+
.mcg-red{color:var(--red)}
|
|
64
|
+
.mcg-dim{color:var(--dim)}
|
|
65
|
+
.mcurl{display:inline-flex;gap:var(--s2);align-items:baseline}
|
|
66
|
+
.mcdoor{color:var(--accent);text-decoration:none;white-space:nowrap}
|
|
67
|
+
.mcdoor:hover{text-decoration:underline}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* every markdown the hub draws (md.ts), one look on every page: a container `.md`, inline markdown `.mdi`.
|
|
2
|
+
A title sits apart from what is above it and close to its own section, a table and a code block take air above
|
|
3
|
+
them, a table's rows are striped under a distinct header, inline code is amber (--code, AA on each theme), every
|
|
4
|
+
code block copies from its button (code-copy.ts). Sizes are in em, so the look follows the text around it */
|
|
5
|
+
.md{font-size:12px;line-height:1.5;color:var(--ink)}
|
|
6
|
+
/* markdown that takes the type of the text around it (a post, a store text, a release line) */
|
|
7
|
+
.md.mdflow{font-size:inherit;line-height:inherit}
|
|
8
|
+
.md>:first-child{margin-top:0}
|
|
9
|
+
.md>:last-child{margin-bottom:0}
|
|
10
|
+
|
|
11
|
+
.md h1,.md h2,.md h3,.md h4,.md h5,.md h6{color:var(--accent);letter-spacing:.02em;line-height:1.3}
|
|
12
|
+
.md h1{font-size:1.12em}
|
|
13
|
+
.md h2{font-size:1.05em}
|
|
14
|
+
.md h3,.md h4,.md h5,.md h6{font-size:1em}
|
|
15
|
+
.md h1,.md h2{margin:calc(var(--s4) + var(--s2)) 0 var(--s2)}
|
|
16
|
+
.md h3,.md h4,.md h5,.md h6{margin:var(--s4) 0 var(--s1)}
|
|
17
|
+
.md p{margin:var(--s1) 0}
|
|
18
|
+
.md ul,.md ol{margin:var(--s1) 0;padding-left:var(--s4)}
|
|
19
|
+
.md li{margin:var(--s0) 0}
|
|
20
|
+
.md blockquote{margin:var(--s2) 0;padding:var(--s0) var(--s2);border-left:2px solid var(--line);color:var(--dim)}
|
|
21
|
+
.md hr{border:0;border-top:1px solid var(--line);margin:var(--s3) 0}
|
|
22
|
+
.md a{color:var(--accent)}
|
|
23
|
+
|
|
24
|
+
/* a table: air above it, odd rows striped, its header row tinted */
|
|
25
|
+
.md table{border-collapse:collapse;margin:var(--s3) 0 var(--s2);font-size:.95em;max-width:100%}
|
|
26
|
+
.md th,.md td{border:1px solid var(--line);padding:var(--s0) var(--s2);text-align:left;vertical-align:top}
|
|
27
|
+
/* a table's header row, every table of the app: the markdown's and the shared Table's (time-charts.tsx) */
|
|
28
|
+
.md th,.tvtable th{color:var(--accent);font-weight:650;letter-spacing:.05em;text-transform:uppercase;background:var(--panel2)}
|
|
29
|
+
.tvtable th{font-size:10.5px}
|
|
30
|
+
.md th{font-size:.88em;background:color-mix(in srgb,var(--accent) 14%,var(--panel2));border-bottom-color:color-mix(in srgb,var(--accent) 40%,var(--line))}
|
|
31
|
+
.md tbody tr:nth-child(odd)>td{background:color-mix(in srgb,var(--ink) 7%,transparent)}
|
|
32
|
+
|
|
33
|
+
/* inline code: amber on a faint amber wash */
|
|
34
|
+
.md code,.mdi code{display:inline;max-height:none;margin:0;padding:0 var(--s1);border-radius:4px;
|
|
35
|
+
font:.9em/1.4 ui-monospace,Menlo,monospace;color:var(--code);background:var(--codebg);
|
|
36
|
+
border:1px solid color-mix(in srgb,var(--code) 28%,transparent);white-space:pre-wrap;overflow-wrap:anywhere}
|
|
37
|
+
|
|
38
|
+
/* a code block, in its box with its « copy » button: shown on hover and on focus, always on a touch screen */
|
|
39
|
+
.mdpre{position:relative;margin:var(--s3) 0 var(--s2)}
|
|
40
|
+
.md>.mdpre:first-child{margin-top:0}
|
|
41
|
+
.md pre{margin:0;padding:var(--s2);background:var(--bg);border:1px solid var(--line);border-radius:4px;
|
|
42
|
+
overflow-x:auto;font:.92em/1.5 ui-monospace,Menlo,monospace;white-space:pre;transition:border-color .1s}
|
|
43
|
+
.md pre code{padding:0;border:0;background:none;color:var(--ink);font:inherit;white-space:inherit}
|
|
44
|
+
.mdcopy{position:absolute;top:var(--s1);right:var(--s1);height:22px;padding:0 var(--s2);font:11.5px system-ui,sans-serif;
|
|
45
|
+
color:var(--ink);background:var(--panel2);border:1px solid var(--line);border-radius:4px;cursor:pointer;opacity:0;transition:opacity .12s}
|
|
46
|
+
.mdpre:hover .mdcopy,.mdpre:focus-within .mdcopy{opacity:1}
|
|
47
|
+
.mdcopy:hover{border-color:var(--accent)}
|
|
48
|
+
.mdcopy.copied{opacity:1;color:var(--ok);border-color:var(--ok)}
|
|
49
|
+
.mdcopy.refused{opacity:1;color:var(--red);border-color:var(--red)}
|
|
50
|
+
.mdpre.copied pre{border-color:var(--ok)}
|
|
51
|
+
@media (hover:none){.mdcopy{opacity:1}}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// markdown a human copies values out of (an ask): the readme's type scale, every inline code span a chip that a
|
|
2
|
+
// click copies whole (a code block copies from its own button, as everywhere: code-copy.ts). A copy says so in a toast
|
|
3
|
+
// at the foot of the page and tints what was copied, never with added text, so nothing moves. The html is md.ts
|
|
4
|
+
// renderMd's, so sanitized
|
|
5
|
+
import { memo, useCallback, useEffect, useState } from 'react'
|
|
6
|
+
import { createPortal } from 'react-dom'
|
|
7
|
+
import { renderMd } from './md.ts'
|
|
8
|
+
|
|
9
|
+
const FLASH_MS = 1600
|
|
10
|
+
const SHOWN_MAX = 60
|
|
11
|
+
|
|
12
|
+
/** the copy that just happened tints the element itself for a moment */
|
|
13
|
+
const flash = (el: Element): void => {
|
|
14
|
+
el.classList.add('copied')
|
|
15
|
+
setTimeout(() => el.classList.remove('copied'), FLASH_MS)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function CopyMd({ md, className = '' }: { md: string; className?: string }) {
|
|
19
|
+
const [said, setSaid] = useState<{ text: string; n: number } | null>(null)
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
if (said == null) return
|
|
22
|
+
const t = setTimeout(() => setSaid(null), FLASH_MS)
|
|
23
|
+
return () => clearTimeout(t)
|
|
24
|
+
}, [said])
|
|
25
|
+
const copy = useCallback((text: string, el: Element): void => {
|
|
26
|
+
void navigator.clipboard.writeText(text).then(
|
|
27
|
+
() => {
|
|
28
|
+
flash(el)
|
|
29
|
+
const lines = text.trim().split('\n')
|
|
30
|
+
const first = lines[0] ?? ''
|
|
31
|
+
setSaid({ text: `copied: ${first.length > SHOWN_MAX ? `${first.slice(0, SHOWN_MAX)}…` : first}${lines.length > 1 ? ` (+${lines.length - 1} lines)` : ''}`, n: Date.now() })
|
|
32
|
+
},
|
|
33
|
+
() => setSaid({ text: 'the browser refused the clipboard: select the text and copy it by hand', n: Date.now() }),
|
|
34
|
+
)
|
|
35
|
+
}, [])
|
|
36
|
+
return (
|
|
37
|
+
<>
|
|
38
|
+
<MdBox html={renderMd(md)} className={className} copy={copy} />
|
|
39
|
+
{said != null ? createPortal(<div key={said.n} className="rv-toast" role="status">{said.text}</div>, document.body) : null}
|
|
40
|
+
</>
|
|
41
|
+
)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** the markdown itself, drawn again only when its html changes: a render rewrites the html and would drop the tint
|
|
45
|
+
* of what was just copied */
|
|
46
|
+
const MdBox = memo(({ html, className, copy }: { html: string; className: string; copy: (text: string, el: Element) => void }) => (
|
|
47
|
+
<div
|
|
48
|
+
className={`md readme-body mdcopyable ${className}`}
|
|
49
|
+
dangerouslySetInnerHTML={{ __html: html }}
|
|
50
|
+
onClick={(e) => {
|
|
51
|
+
const code = (e.target as Element).closest('code')
|
|
52
|
+
// a selection being made is never overwritten by a click's copy
|
|
53
|
+
if (!code || code.closest('pre') || String(globalThis.getSelection?.() ?? '') !== '') return
|
|
54
|
+
copy(code.textContent ?? '', code)
|
|
55
|
+
}}
|
|
56
|
+
/>
|
|
57
|
+
))
|
package/src/serve/hub-app/md.ts
CHANGED
|
@@ -14,16 +14,23 @@ const CARD_TAGS = [
|
|
|
14
14
|
'code', 'pre', 'strong', 'em', 'b', 'i', 'a', 'br', 'blockquote', 'hr',
|
|
15
15
|
]
|
|
16
16
|
|
|
17
|
+
/** every code block in a box with its « copy » button (code-copy.ts answers its click): added after the sanitizer,
|
|
18
|
+
* which keeps no button, and outside the block, so the button stays put while the block scrolls sideways */
|
|
19
|
+
const withCopy = (html: string): string =>
|
|
20
|
+
html.replaceAll('<pre>', '<div class="mdpre"><pre>').replaceAll('</pre>', '</pre><button type="button" class="mdcopy" title="copy the whole block">copy</button></div>')
|
|
21
|
+
|
|
17
22
|
export const renderMd = (src: string): string =>
|
|
18
|
-
sanitizeHtml(marked.parse(src) as string, {
|
|
23
|
+
withCopy(sanitizeHtml(marked.parse(src) as string, {
|
|
19
24
|
allowedTags: CARD_TAGS,
|
|
20
25
|
allowedAttributes: { a: ['href', 'target', 'rel'] },
|
|
21
26
|
allowedSchemes: ['http', 'https'],
|
|
22
27
|
allowProtocolRelative: false,
|
|
28
|
+
// a placeholder an agent writes (`<address>`) shows as written, never vanishes as an unknown tag
|
|
29
|
+
disallowedTagsMode: 'escape',
|
|
23
30
|
transformTags: {
|
|
24
31
|
a: (tagName, attribs) => ({ tagName, attribs: { ...attribs, target: '_blank', rel: 'noreferrer' } }),
|
|
25
32
|
},
|
|
26
|
-
})
|
|
33
|
+
}))
|
|
27
34
|
|
|
28
35
|
/** ONE LINE of markdown, for text that already carries a line structure of
|
|
29
36
|
* its own. A wire line keeps its prefix and its place in the log, and the
|
|
@@ -35,6 +42,8 @@ export const renderMdInline = (src: string): string =>
|
|
|
35
42
|
allowedAttributes: { a: ['href', 'target', 'rel'] },
|
|
36
43
|
allowedSchemes: ['http', 'https'],
|
|
37
44
|
allowProtocolRelative: false,
|
|
45
|
+
// a placeholder an agent writes (`<address>`) shows as written, never vanishes as an unknown tag
|
|
46
|
+
disallowedTagsMode: 'escape',
|
|
38
47
|
transformTags: {
|
|
39
48
|
a: (tagName, attribs) => ({ tagName, attribs: { ...attribs, target: '_blank', rel: 'noreferrer' } }),
|
|
40
49
|
},
|
|
@@ -55,7 +64,7 @@ export const readmeImageSrc = (src: string, fileUrl: (rel: string) => string): s
|
|
|
55
64
|
* lean on. A relative image is rewritten to the repo's file route, an image
|
|
56
65
|
* with no loadable source is dropped */
|
|
57
66
|
export const renderReadme = (src: string, fileUrl: (rel: string) => string): string =>
|
|
58
|
-
sanitizeHtml(marked.parse(src) as string, {
|
|
67
|
+
withCopy(sanitizeHtml(marked.parse(src) as string, {
|
|
59
68
|
allowedTags: [...CARD_TAGS, 'h5', 'h6', 'img', 'details', 'summary', 'kbd', 'sup', 'sub', 'del'],
|
|
60
69
|
allowedAttributes: { a: ['href', 'target', 'rel'], img: ['src', 'alt', 'title', 'width', 'height'] },
|
|
61
70
|
allowedSchemes: ['http', 'https'],
|
|
@@ -69,7 +78,7 @@ export const renderReadme = (src: string, fileUrl: (rel: string) => string): str
|
|
|
69
78
|
},
|
|
70
79
|
},
|
|
71
80
|
exclusiveFilter: (frame) => frame.tag === 'img' && (frame.attribs.src ?? '') === '',
|
|
72
|
-
})
|
|
81
|
+
}))
|
|
73
82
|
|
|
74
83
|
/** a wiki page in the wikis page's preview: the card allowlist, and every ref
|
|
75
84
|
* the server resolved (`links`, token → node, graph-pages.ts) as an anchor
|
|
@@ -77,7 +86,7 @@ export const renderReadme = (src: string, fileUrl: (rel: string) => string): str
|
|
|
77
86
|
* the sheet tells them apart: `@` loads with the page (eager), `→`, a link or
|
|
78
87
|
* a path in a code span is read on demand (lazy, written `→ path` here
|
|
79
88
|
* whatever the page wrote) */
|
|
80
|
-
export const renderWikiPage = (src: string, links: Record<string, string
|
|
89
|
+
export const renderWikiPage = (src: string, links: Record<string, string>, image?: (rel: string) => string | null): string => {
|
|
81
90
|
const to = (t: string, eager = false): string | null => (links[t] == null ? null : `#wiki${eager ? '-eager' : ''}:${encodeURIComponent(links[t]!)}`)
|
|
82
91
|
// fences stay as written: a ref in a code block is an example, not a link
|
|
83
92
|
const linked = src.split(/(^```[\s\S]*?^```\s*$)/m).map((part, i) => i % 2 === 1 ? part : part
|
|
@@ -87,12 +96,19 @@ export const renderWikiPage = (src: string, links: Record<string, string>): stri
|
|
|
87
96
|
// a code span that is exactly a page's path: a lazy ref, its arrow added unless the page wrote one
|
|
88
97
|
.replace(/(→\s*)?(?<!\[)`([\w.][\w./-]*\.md)`/g, (m, arrow: string | undefined, t: string) => (to(t) == null ? m : `${arrow ?? '→ '}[\`${t}\`](${to(t)})`)),
|
|
89
98
|
).join('')
|
|
90
|
-
return sanitizeHtml(marked.parse(linked) as string, {
|
|
91
|
-
|
|
92
|
-
|
|
99
|
+
return withCopy(sanitizeHtml(marked.parse(linked) as string, {
|
|
100
|
+
// a picture only through `image`: a file of the wiki itself (a generated page's icons), never a remote url
|
|
101
|
+
allowedTags: [...CARD_TAGS, 'h5', 'h6', 'del', ...(image ? ['img'] : [])],
|
|
102
|
+
allowedAttributes: { a: ['href', 'target', 'rel', 'data-wiki', 'data-ref'], img: ['src', 'alt', 'title', 'width', 'height'] },
|
|
93
103
|
allowedSchemes: ['http', 'https'],
|
|
94
104
|
allowProtocolRelative: false,
|
|
105
|
+
exclusiveFilter: (frame) => frame.tag === 'img' && (frame.attribs.src ?? '') === '',
|
|
95
106
|
transformTags: {
|
|
107
|
+
img: (tagName, attribs): sanitizeHtml.Tag => {
|
|
108
|
+
const { src: raw, ...rest } = attribs
|
|
109
|
+
const src = image?.(raw ?? '') ?? null
|
|
110
|
+
return { tagName, attribs: src == null ? rest : { ...rest, src } }
|
|
111
|
+
},
|
|
96
112
|
a: (tagName, attribs): sanitizeHtml.Tag => {
|
|
97
113
|
const href = attribs.href ?? ''
|
|
98
114
|
const ref = /^#wiki(-eager)?:(.*)$/.exec(href)
|
|
@@ -100,5 +116,5 @@ export const renderWikiPage = (src: string, links: Record<string, string>): stri
|
|
|
100
116
|
return { tagName, attribs: { ...attribs, target: '_blank', rel: 'noreferrer' } }
|
|
101
117
|
},
|
|
102
118
|
},
|
|
103
|
-
})
|
|
119
|
+
}))
|
|
104
120
|
}
|
|
@@ -11,6 +11,7 @@ import { isAud, type MediaSvc } from './media-svc.ts'
|
|
|
11
11
|
import { GeometryLayer, Rectbar, measureBox, type Box } from './geometry-view.tsx'
|
|
12
12
|
import type { CatRow, CustomPanelRef } from './hub-types.ts'
|
|
13
13
|
import { Caret } from './icons.tsx'
|
|
14
|
+
import { ThreadControl } from './review/thread-control.tsx'
|
|
14
15
|
|
|
15
16
|
const TEX = 1024
|
|
16
17
|
const MIX_UNIT = 24
|
|
@@ -38,6 +39,7 @@ export const MediaTopbar = observer(({ app }: { app: RepoSt }) => {
|
|
|
38
39
|
</div>}
|
|
39
40
|
</div>
|
|
40
41
|
<div className="toolbar">
|
|
42
|
+
{m.curId != null ? <ThreadControl st={app} address={`media:${m.curId}`} name={m.curId} /> : null}
|
|
41
43
|
{!manual ? <button disabled={m.curId == null} onClick={() => void m.generate()}>Generate</button> : null}
|
|
42
44
|
{!manual ? (
|
|
43
45
|
<label className="xn" title="rolls per generate">×
|
|
@@ -162,7 +164,7 @@ export const ToolsBar = observer(({ app }: { app: RepoSt }) => {
|
|
|
162
164
|
) : null}
|
|
163
165
|
<span className="sp" />
|
|
164
166
|
<button className="ghost" onClick={() => m.toggleVariants()}>
|
|
165
|
-
{m.variantsOpen ? 'variants
|
|
167
|
+
<Caret side open={m.variantsOpen} /> {m.variantsOpen ? 'variants' : `variants (${d.rolls.length})`}
|
|
166
168
|
</button>
|
|
167
169
|
</div>
|
|
168
170
|
)
|
|
@@ -179,7 +181,7 @@ export const VariantsBar = observer(({ app }: { app: RepoSt }) => {
|
|
|
179
181
|
if (m.curId == null) return null
|
|
180
182
|
if (!m.variantsOpen) return (
|
|
181
183
|
<div className="vbar closed" title="open the variants bar" onClick={() => m.toggleVariants()}>
|
|
182
|
-
<span className="vcount">{rolls.length}</span
|
|
184
|
+
<span className="vcount">{rolls.length}</span><Caret side open={false} />
|
|
183
185
|
</div>
|
|
184
186
|
)
|
|
185
187
|
return (
|