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,154 @@
|
|
|
1
|
+
// `/vault`: the vault of this machine. A narrow bar of four entries on the left (a phone: one row of tabs on top), the
|
|
2
|
+
// entry picked alone on the right: passwords (every secret name with where it is held, who reads it and since when,
|
|
3
|
+
// filtered, the list's notes above it), about (where it lives, its keys and tokens), health (how it stands), backups
|
|
4
|
+
// (its copies). An entry holding a fact to look at shows a dot in that tone; a DANGER also stays on top whatever entry
|
|
5
|
+
// is open, with a link to the entry that holds it.
|
|
6
|
+
//
|
|
7
|
+
// The constraint a reader breaks first: every word comes from the answer, in the console's words (sk vault status),
|
|
8
|
+
// and the page only reads: no store, delete, seal or snapshot from here. Colour is state only
|
|
9
|
+
import { ReaderChips } from './reader-chips.tsx'
|
|
10
|
+
import { observer } from 'mobx-react-lite'
|
|
11
|
+
import type { MouseEvent, ReactNode } from 'react'
|
|
12
|
+
import { countWords, heldWords, writtenShort, writtenWords, type Fact, type SecretRow } from '../../home/vault-words.ts'
|
|
13
|
+
import { EntryBar, EntryCols } from './entry-bar.tsx'
|
|
14
|
+
import { hashFor } from './hash-route.ts'
|
|
15
|
+
import { plainClick, repoPage, type HomeSt } from './home-st.ts'
|
|
16
|
+
import { type Col, Hint, Table } from './time-charts.tsx'
|
|
17
|
+
import { entryMark, factsOf, VAULT_ENTRIES, type VaultEntry, type VaultSt } from './vault-st.ts'
|
|
18
|
+
|
|
19
|
+
const clock = (at: number): string => new Date(at).toTimeString().slice(0, 5)
|
|
20
|
+
|
|
21
|
+
const processHref = (repo: string, id: string): string => `${repoPage(repo)}#${hashFor({ t: 'processes', id })}`
|
|
22
|
+
/** an ask by its repo and number, its title on hover */
|
|
23
|
+
const askWords = (a: { repo: string; id: string }): string => `${a.repo} ask ${/^(\d+)-/.exec(a.id)?.[1] ?? a.id}`
|
|
24
|
+
const askHref = (repo: string, id: string): string => `${repoPage(repo)}#${hashFor({ t: 'item', col: 'asks', id: `ask:${id}` })}`
|
|
25
|
+
|
|
26
|
+
/** a link that moves the home in place on a plain click, the browser's own way otherwise */
|
|
27
|
+
const In = ({ href, go, children }: { href: string; go: () => void; children: string }) => (
|
|
28
|
+
<a className="vtlink" href={href} onClick={(e: MouseEvent) => { if (!plainClick(e)) return; e.preventDefault(); go() }}>{children}</a>
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
/** one fact, its dot in its tone, a DANGER said; the vault page and the Space page */
|
|
32
|
+
export const FactRow = observer(({ app, f, more }: { app: HomeSt; f: Fact; more?: ReactNode }) => (
|
|
33
|
+
<li className={`vtfact vt-${f.tone}`}>
|
|
34
|
+
<i className={`mcdot vtd-${f.tone}`} />
|
|
35
|
+
<span>
|
|
36
|
+
{f.tone === 'danger' ? <b>DANGER </b> : null}
|
|
37
|
+
{f.text}
|
|
38
|
+
{f.process == null ? null : <> · <In href={processHref(f.process.repo, f.process.id)} go={() => app.openProcess(f.process!.repo, f.process!.id)}>its process ↗</In></>}
|
|
39
|
+
{more}
|
|
40
|
+
</span>
|
|
41
|
+
</li>
|
|
42
|
+
))
|
|
43
|
+
|
|
44
|
+
/** what each entry of the bar holds, said under its name on the right */
|
|
45
|
+
const ABOUT: Record<VaultEntry, string> = {
|
|
46
|
+
passwords: 'every secret name: where it is held, who reads it, since when',
|
|
47
|
+
about: 'where it lives on this Mac, what keeps it up, its keys and tokens',
|
|
48
|
+
health: 'how it stands now',
|
|
49
|
+
backups: 'its sealed snapshots, their proofs, the prune',
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** each DANGER of the page, on top whatever entry is open, with a link to the entry that holds it */
|
|
53
|
+
const Dangers = observer(({ app, st }: { app: HomeSt; st: VaultSt }) => {
|
|
54
|
+
const all = st.dangers
|
|
55
|
+
if (all.length === 0) return null
|
|
56
|
+
return (
|
|
57
|
+
<ul className="vtfacts vtfirst" aria-label="what is in danger">
|
|
58
|
+
{all.map(({ f, entry }) => <FactRow key={f.text} app={app} f={f} more={st.entry === entry ? null : <> · <In href={`/vault#${entry}`} go={() => st.open(entry)}>{`open ${entry}`}</In></>} />)}
|
|
59
|
+
</ul>
|
|
60
|
+
)
|
|
61
|
+
})
|
|
62
|
+
|
|
63
|
+
/** about, health or backups: its facts, one line each; its DANGERs are the lines on top */
|
|
64
|
+
const Facts = observer(({ app, st, e }: { app: HomeSt; st: VaultSt; e: VaultEntry }) => (
|
|
65
|
+
<section className="vtsecrets" aria-label={e}>
|
|
66
|
+
<div className="vthead"><b>{e}</b><span className="mcdim">{ABOUT[e]}</span></div>
|
|
67
|
+
<ul className="vtfacts">{factsOf(st.data!, e).filter((f) => f.tone !== 'danger').map((f) => <FactRow key={f.text} app={app} f={f} />)}</ul>
|
|
68
|
+
</section>
|
|
69
|
+
))
|
|
70
|
+
|
|
71
|
+
const HEAD: Col[] = [
|
|
72
|
+
{ label: 'name' },
|
|
73
|
+
{ label: 'held', title: 'in the vault, only in this Mac\'s keychain (a read gets that copy, maybe stale), or missing' },
|
|
74
|
+
{ label: 'written', title: 'how long ago its current version was written, the vault\'s own record; the day on hover' },
|
|
75
|
+
{ label: 'who reads it', title: 'its registry row\'s scope: every repo, or the repos, identities and machines it names' },
|
|
76
|
+
{ label: 'ask', title: 'the open ask that waits for its value' },
|
|
77
|
+
{ label: 'for', title: 'what it is for, as its registry row says', more: true },
|
|
78
|
+
]
|
|
79
|
+
|
|
80
|
+
const NameCell = ({ r }: { r: SecretRow }) => (
|
|
81
|
+
<span className="vtname">
|
|
82
|
+
<span className="mcsha">{r.name}</span>
|
|
83
|
+
{r.registered ? null : <Hint className="vttag" tip="no row in the registry (wiki identities/_common/secrets-registry.md): every repo reads it, and the vault files it where it was put">no row</Hint>}
|
|
84
|
+
{r.note == null ? null : <Hint className="vttag t-warn" tip={r.note}>note</Hint>}
|
|
85
|
+
</span>
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
const Secrets = observer(({ app, st }: { app: HomeSt; st: VaultSt }) => {
|
|
89
|
+
const d = st.data!
|
|
90
|
+
const f = st.filter
|
|
91
|
+
const sc = st.scopes
|
|
92
|
+
const notes = d.notes.filter((n) => n.tone !== 'danger')
|
|
93
|
+
const rows = st.rows.map((r) => {
|
|
94
|
+
const h = heldWords(r, d.here, d.at)
|
|
95
|
+
return {
|
|
96
|
+
key: r.name,
|
|
97
|
+
cells: [
|
|
98
|
+
<NameCell r={r} />,
|
|
99
|
+
<span className={`vth vt-${h.tone}`}>{h.text}</span>,
|
|
100
|
+
<span title={writtenWords(r, d.at)}>{writtenShort(r, d.at)}</span>,
|
|
101
|
+
r.chips == null || r.chips.length === 0 ? r.who : <ReaderChips who={{ long: r.who, chips: r.chips }} lead="who reads it" />,
|
|
102
|
+
r.ask == null ? '' : <Hint tip={r.ask.title}><In href={askHref(r.ask.repo, r.ask.id)} go={() => app.openItem(r.ask!.repo, 'asks', `ask:${r.ask!.id}`)}>{askWords(r.ask)}</In></Hint>,
|
|
103
|
+
r.for,
|
|
104
|
+
],
|
|
105
|
+
}
|
|
106
|
+
})
|
|
107
|
+
return (
|
|
108
|
+
<section className="vtsecrets" aria-label="the secrets">
|
|
109
|
+
<div className="vthead"><b>the secrets</b><span className="mcdim">{countWords(d.secrets, d.here)}</span></div>
|
|
110
|
+
<div className="vtbar">
|
|
111
|
+
<input className="inquery" type="search" placeholder="filter: a name, a use, a reader…" aria-label="filter the names" value={f.text} onChange={(e) => st.set({ text: e.currentTarget.value })} />
|
|
112
|
+
<div className="seg" role="group" aria-label="which names">
|
|
113
|
+
<button type="button" aria-pressed={!f.missing} className={!f.missing ? 'on' : ''} onClick={() => st.set({ missing: false })}>every name</button>
|
|
114
|
+
<button type="button" aria-pressed={f.missing} className={f.missing ? 'on' : ''} onClick={() => st.set({ missing: true })}>missing</button>
|
|
115
|
+
</div>
|
|
116
|
+
<select className="tvpick" aria-label="one repo" value={f.repo} onChange={(e) => st.set({ repo: e.currentTarget.value })}>
|
|
117
|
+
<option value="">every repo</option>
|
|
118
|
+
{sc.repos.map((r) => <option key={r} value={r}>{r}</option>)}
|
|
119
|
+
</select>
|
|
120
|
+
<select className="tvpick" aria-label="one identity" value={f.identity} onChange={(e) => st.set({ identity: e.currentTarget.value })}>
|
|
121
|
+
<option value="">every identity</option>
|
|
122
|
+
{sc.identities.map((i) => <option key={i} value={i}>{i}</option>)}
|
|
123
|
+
</select>
|
|
124
|
+
{st.filtered ? <span className="mcdim">{rows.length} of {d.secrets.length}</span> : null}
|
|
125
|
+
</div>
|
|
126
|
+
{/* what makes the list say less than it would, said above it: the reason of a « not read », the record's age */}
|
|
127
|
+
{notes.length === 0 ? null : <ul className="vtfacts vtloud">{notes.map((n) => <FactRow key={n.text} app={app} f={n} />)}</ul>}
|
|
128
|
+
<div className="vttable"><Table head={HEAD} rows={rows} empty={st.filtered ? 'no name matches this filter' : 'no name is known on this machine'} /></div>
|
|
129
|
+
</section>
|
|
130
|
+
)
|
|
131
|
+
})
|
|
132
|
+
|
|
133
|
+
export const VaultView = observer(({ app }: { app: HomeSt }) => {
|
|
134
|
+
const st = app.vault
|
|
135
|
+
const d = st.data
|
|
136
|
+
const narrow = app.layout.narrow
|
|
137
|
+
return (
|
|
138
|
+
<div className="vaultpage">
|
|
139
|
+
<div className="actop vttop">
|
|
140
|
+
<button type="button" className="acpill" disabled={st.loading} onClick={() => void st.poll(true)}>
|
|
141
|
+
<Hint tip="read the vault again now · by itself it reads every 5 minutes, each call a line of its audit file" className={`acring${st.loading ? ' on' : ''}`}>↻</Hint>
|
|
142
|
+
</button>
|
|
143
|
+
<span className="acdim">{d == null ? (st.error !== '' ? '' : 'reading the vault…') : `${d.machine} · read at ${clock(d.at)} · a page to read, nothing is changed from here · in the console: sk vault status (--secrets for the names)`}</span>
|
|
144
|
+
</div>
|
|
145
|
+
{st.error !== '' ? <div className="hnote mcerr">{st.error}</div> : null}
|
|
146
|
+
{d == null ? null : (
|
|
147
|
+
<EntryCols narrow={narrow} bar={<EntryBar label="the vault's entries" entries={VAULT_ENTRIES} current={st.entry} open={(e) => st.open(e as VaultEntry)} mark={(e) => entryMark(factsOf(d, e as VaultEntry))} tabs={narrow} />}>
|
|
148
|
+
<Dangers app={app} st={st} />
|
|
149
|
+
{st.entry === 'passwords' ? <Secrets app={app} st={st} /> : <Facts app={app} st={st} e={st.entry} />}
|
|
150
|
+
</EntryCols>
|
|
151
|
+
)}
|
|
152
|
+
</div>
|
|
153
|
+
)
|
|
154
|
+
})
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* the vault page (vault-view.tsx): a bar of four entries (entry-bar.css), the entry picked alone beside it. One line facts with a dot for
|
|
2
|
+
their state; colour is state only: green held, orange to look at, red broken. */
|
|
3
|
+
.vaultpage{display:flex;flex-direction:column;flex:1;min-height:0;font-size:13px}
|
|
4
|
+
.vttop{padding:var(--s2) var(--s4);margin-bottom:0;border-bottom:1px solid var(--line)}
|
|
5
|
+
|
|
6
|
+
.vtfirst{margin:var(--s3) var(--s4) 0;padding:var(--s2) var(--s3);border:1px solid var(--red);border-radius:6px;background:color-mix(in srgb,var(--red) 8%,var(--panel))}
|
|
7
|
+
.vtfacts{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:var(--s1);font-size:12.5px}
|
|
8
|
+
.vtfact{display:flex;align-items:baseline;gap:var(--s2);line-height:1.4;overflow-wrap:anywhere}
|
|
9
|
+
.vtfact .mcdot{transform:translateY(-1px)}
|
|
10
|
+
.vtfact .vtd-ok{background:var(--ok)}
|
|
11
|
+
.vtfact .vtd-warn{background:var(--warn)}
|
|
12
|
+
.vtfact .vtd-danger{background:var(--red)}
|
|
13
|
+
.vtfact .vtd-dim{background:var(--line)}
|
|
14
|
+
.vt-dim{color:var(--dim)}
|
|
15
|
+
.vt-warn{color:var(--warn)}
|
|
16
|
+
.vt-danger{color:var(--red)}
|
|
17
|
+
.vt-danger b{font-weight:700}
|
|
18
|
+
.vtlink{color:var(--accent);text-decoration:none;white-space:nowrap}
|
|
19
|
+
.vtlink:hover{text-decoration:underline}
|
|
20
|
+
|
|
21
|
+
/* an entry: its name, what it holds, its lines; the names: their count, a bar of filters, then one row a name */
|
|
22
|
+
.vtsecrets{padding:var(--s3) var(--s4)}
|
|
23
|
+
.vthead{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 var(--s3);margin-bottom:var(--s2)}
|
|
24
|
+
.vthead b{font-size:15px;font-weight:650}
|
|
25
|
+
.vtbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2) var(--s3);margin-bottom:var(--s2)}
|
|
26
|
+
.vtloud{margin-bottom:var(--s2)}
|
|
27
|
+
.vttable{overflow-x:auto}
|
|
28
|
+
.vttable .tvtable td{vertical-align:baseline}.vttable .stchips{margin-left:0}
|
|
29
|
+
/* what a name is for takes the width that is left and cuts with an ellipsis, so the table never passes its area */
|
|
30
|
+
.vttable .tvtable td.tvmore{width:100%;max-width:0}
|
|
31
|
+
.vtname{display:inline-flex;align-items:baseline;gap:var(--s2);white-space:nowrap}
|
|
32
|
+
.vttag{padding:0 var(--s2);border:1px solid var(--line);border-radius:999px;color:var(--dim);font-size:11px;line-height:16px}
|
|
33
|
+
.vth{white-space:nowrap}
|
|
34
|
+
.vth.vt-ok{color:var(--ok)}
|
|
35
|
+
|
|
36
|
+
/* a phone: the bar is a row of tabs on top (entry-bar.css), the entry under it */
|
|
37
|
+
.entnarrow .vtfirst{margin:var(--s3) var(--s3) 0}
|
|
38
|
+
.entnarrow .vtsecrets{padding:var(--s3)}
|
|
@@ -10,7 +10,7 @@ import { COLUMNS, READER_QUIET_MS, replyUrl } from '../../../veille/platforms.ts
|
|
|
10
10
|
import type { RepoSt } from '../repo-st.ts'
|
|
11
11
|
import { PANEL, PhoneTop } from '../review/review-page.tsx'
|
|
12
12
|
import { type FeedRow, type Platform, shelfOf, SHELVES, type VeilleSt, WINDOWS } from './veille-st.ts'
|
|
13
|
-
import {
|
|
13
|
+
import { SectionHead } from '../section-head.tsx'
|
|
14
14
|
import { AutoText } from '../auto-text.tsx'
|
|
15
15
|
|
|
16
16
|
const short = (n: number | null): string => (n == null ? '–' : n >= 1e6 ? `${(n / 1e6).toFixed(1)}M` : n >= 1e4 ? `${Math.round(n / 1e3)}k` : n >= 1e3 ? `${(n / 1e3).toFixed(1)}k` : String(n))
|
|
@@ -273,16 +273,7 @@ const ColumnRows = observer(({ v, platform }: { v: VeilleSt; platform: Platform
|
|
|
273
273
|
if (rows.length === 0 && s.shelf !== 'now') return null
|
|
274
274
|
return (
|
|
275
275
|
<div key={s.shelf} className={`vl-shelf t-${SHELF_TONE[s.shelf]}`}>
|
|
276
|
-
{s.shelf === 'done' ? (
|
|
277
|
-
<button className="vl-shelfhead" onClick={() => v.toggleDone(platform)}>
|
|
278
|
-
<Caret open={!folded} />
|
|
279
|
-
{s.label} <span className="rv-dim">{rows.length}</span>
|
|
280
|
-
</button>
|
|
281
|
-
) : (
|
|
282
|
-
<div className="vl-shelfhead">
|
|
283
|
-
{s.label} <span className="rv-dim">{rows.length}</span>
|
|
284
|
-
</div>
|
|
285
|
-
)}
|
|
276
|
+
<SectionHead label={s.label} n={rows.length} tone="var(--tone)" {...(s.shelf === 'done' ? { open: !folded, onFold: () => v.toggleDone(platform) } : {})} />
|
|
286
277
|
{rows.length === 0 && <div className="rv-dim vl-none">rien pour l'instant</div>}
|
|
287
278
|
{!folded && rows.map((r) => <PostRow key={r.key} v={v} row={r} />)}
|
|
288
279
|
</div>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// read again when its stamp moves (the log, a mark, a draft, an ask), every 2 s while the page shows
|
|
4
4
|
import { makeAutoObservable, runInAction } from 'mobx'
|
|
5
5
|
import { COLUMNS, type FeedRow, type Platform, replyUrl, type VeilleFeed, type VeillePost } from '../../../veille/platforms.ts'
|
|
6
|
+
import { sideOf, stepSide, type SideList } from '../list-walk.ts'
|
|
6
7
|
import { reach } from '../reach.ts'
|
|
7
8
|
import type { RepoSt } from '../repo-st.ts'
|
|
8
9
|
import { copyText, postJson } from '../review/review-kit.ts'
|
|
@@ -297,14 +298,15 @@ export class VeilleSt {
|
|
|
297
298
|
this.sync()
|
|
298
299
|
}
|
|
299
300
|
|
|
301
|
+
/** the list its keys walk (list-walk.ts): the picked post's column, else the first with a post; ← → step columns */
|
|
302
|
+
get side(): SideList {
|
|
303
|
+
const col = (): VeilleFeed['columns'][number] | undefined => this.columns.find((c) => this.shown(c).some((r) => r.key === this.picked)) ?? this.columns.find((c) => this.shown(c).length > 0)
|
|
304
|
+
return sideOf({ ids: () => { const c = col(); return c == null ? [] : this.shown(c).map((r) => r.key) }, current: () => this.picked, open: (key) => this.pick(key) })
|
|
305
|
+
}
|
|
306
|
+
|
|
300
307
|
/** up and down in the picked post's column */
|
|
301
|
-
move(delta:
|
|
302
|
-
|
|
303
|
-
if (col == null) return
|
|
304
|
-
const rows = this.shown(col)
|
|
305
|
-
const i = rows.findIndex((r) => r.key === this.picked)
|
|
306
|
-
const next = rows[i < 0 ? 0 : Math.max(0, Math.min(rows.length - 1, i + delta))]
|
|
307
|
-
if (next) this.pick(next.key)
|
|
308
|
+
move(delta: -1 | 1): void {
|
|
309
|
+
stepSide(this.side, delta)
|
|
308
310
|
}
|
|
309
311
|
|
|
310
312
|
/** left and right: the best post of the next column that has one */
|
|
@@ -421,7 +423,7 @@ export class VeilleSt {
|
|
|
421
423
|
setTimeout(() => runInAction(() => (this.toast = this.toast === text ? null : this.toast)), 2500)
|
|
422
424
|
}
|
|
423
425
|
|
|
424
|
-
/** the page's keys: j k
|
|
426
|
+
/** the page's keys: j k (↑ ↓ are the hub's, side-lists.ts), h l or left and right, p r t; the lightbox's arrows and Escape */
|
|
425
427
|
key(e: Pick<KeyboardEvent, 'key'>): boolean {
|
|
426
428
|
if (this.lightbox != null) {
|
|
427
429
|
const n = this.post?.media.length ?? 0
|
|
@@ -430,8 +432,8 @@ export class VeilleSt {
|
|
|
430
432
|
else return false
|
|
431
433
|
return true
|
|
432
434
|
}
|
|
433
|
-
if (e.key === 'j'
|
|
434
|
-
else if (e.key === 'k'
|
|
435
|
+
if (e.key === 'j') this.move(1)
|
|
436
|
+
else if (e.key === 'k') this.move(-1)
|
|
435
437
|
else if (e.key === 'l' || e.key === 'ArrowRight') this.stepColumn(1)
|
|
436
438
|
else if (e.key === 'h' || e.key === 'ArrowLeft') this.stepColumn(-1)
|
|
437
439
|
else if (e.key === 'p') void this.propose()
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
.vl-dropped a{color:var(--ink);text-decoration:none}
|
|
35
35
|
.vl-cap{font-size:11px;font-weight:700;color:var(--tone)}
|
|
36
36
|
.vl-rows{flex:1;min-height:0;overflow-y:auto}
|
|
37
|
-
.vl-shelfhead{display:flex;gap:var(--s2);align-items:center;width:100%;padding:var(--s0) var(--s2);font-size:11px;font-weight:700;color:var(--tone);background:var(--panel2);border:0;border-radius:0;border-left:3px solid var(--tone);text-align:left}
|
|
38
37
|
.vl-none{font-size:11px;padding:var(--s1) var(--s2)}
|
|
39
38
|
.vl-row{display:flex;flex-direction:column;gap:var(--s0);width:100%;text-align:left;padding:var(--s1) var(--s2);border:0;border-radius:0;border-bottom:1px solid var(--line);font-size:12px;box-shadow:inset 3px 0 0 transparent}
|
|
40
39
|
.vl-row:hover{background:var(--hi3)}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// every thread that waits for the owner in every repo, for the picker: read when it opens, his two lists of the inbox
|
|
2
|
+
// whole (now and later), since a jump reaches an item the inbox page has folded away too. A node of the home
|
|
3
|
+
import { makeAutoObservable, runInAction } from 'mobx'
|
|
4
|
+
import type { InboxAnswer, InboxList, InboxRow } from '../../home/inbox-shape.ts'
|
|
5
|
+
|
|
6
|
+
const LISTS: InboxList[] = ['main', 'later']
|
|
7
|
+
|
|
8
|
+
export class HouseWaitingSvc {
|
|
9
|
+
rows: InboxRow[] = []
|
|
10
|
+
|
|
11
|
+
constructor() {
|
|
12
|
+
makeAutoObservable(this)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** a list that does not answer keeps its last rows out: the picker shows what it could read */
|
|
16
|
+
async load(): Promise<void> {
|
|
17
|
+
const pages = await Promise.all(
|
|
18
|
+
LISTS.map(async (l) => {
|
|
19
|
+
try {
|
|
20
|
+
const r = await fetch(`/api/inbox?list=${l}&limit=500`)
|
|
21
|
+
return r.ok ? ((await r.json()) as InboxAnswer).rows : []
|
|
22
|
+
} catch {
|
|
23
|
+
return []
|
|
24
|
+
}
|
|
25
|
+
}),
|
|
26
|
+
)
|
|
27
|
+
runInAction(() => (this.rows = pages.flat()))
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// value, what it means), then one row per check with its value on each axis,
|
|
3
3
|
// read from the facts every check row already carries (core/runs-matrix.ts),
|
|
4
4
|
// so the page reads nothing of its own and never disagrees with `shipkit when`.
|
|
5
|
+
import { CardHead } from './card-head.tsx'
|
|
5
6
|
import { observer } from 'mobx-react-lite'
|
|
6
7
|
import { useState } from 'react'
|
|
7
8
|
import { MATRIX_AXES, RUNS_LEGEND, inColumn, type MatrixAxis } from '../../core/runs-matrix.ts'
|
|
@@ -52,9 +53,11 @@ export const WhenPage = observer(({ app }: { app: RepoSt }) => {
|
|
|
52
53
|
<h3 className="ctitle">what runs when</h3>
|
|
53
54
|
</div>
|
|
54
55
|
<div className="usays">every check declares every context, with no default. Click a column to see only what that context runs. `shipkit when` prints the same</div>
|
|
55
|
-
<section className="csec"><
|
|
56
|
+
<section className="csec"><CardHead title="the legend" /><Legend /></section>
|
|
56
57
|
<section className="csec">
|
|
57
|
-
<
|
|
58
|
+
<CardHead title={only == null ? 'checks' : `checks run on ${only}`} n={only == null ? live.length : `${shown.length} of ${live.length}`}>
|
|
59
|
+
{only != null ? <a href="#" onClick={(e) => { e.preventDefault(); setOnly(null) }}>show all</a> : null}
|
|
60
|
+
</CardHead>
|
|
58
61
|
<table className="whtable">
|
|
59
62
|
<thead>
|
|
60
63
|
<tr>
|
|
@@ -80,7 +83,7 @@ export const WhenPage = observer(({ app }: { app: RepoSt }) => {
|
|
|
80
83
|
</section>
|
|
81
84
|
{off.length > 0 ? (
|
|
82
85
|
<section className="csec">
|
|
83
|
-
<
|
|
86
|
+
<CardHead title="off in this repo" n={off.length} meta="repo.config.ts `off`, or the check does not apply here" />
|
|
84
87
|
{off.map((r) => <div key={r.id} className="whoff"><span className="whid">{r.id}</span> <span className="dim">{r.cells.off}</span></div>)}
|
|
85
88
|
</section>
|
|
86
89
|
) : null}
|
|
@@ -64,8 +64,11 @@ export class WikiSt {
|
|
|
64
64
|
private timer: ReturnType<typeof setTimeout> | null = null
|
|
65
65
|
private asked = 0
|
|
66
66
|
|
|
67
|
+
/** the newest page asked: a slower read of an older one never lands over it */
|
|
68
|
+
private opening = 0
|
|
69
|
+
|
|
67
70
|
constructor(private readonly st: RepoSt) {
|
|
68
|
-
makeAutoObservable<this, 'st' | 'frame' | 'timer' | 'asked'>(this, { st: false, frame: false, timer: false, asked: false })
|
|
71
|
+
makeAutoObservable<this, 'st' | 'frame' | 'timer' | 'asked' | 'opening'>(this, { st: false, frame: false, timer: false, asked: false, opening: false })
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
/** the wiki shown changed: its search starts over, and its index opens */
|
|
@@ -77,7 +80,16 @@ export class WikiSt {
|
|
|
77
80
|
this.page = null
|
|
78
81
|
this.error = ''
|
|
79
82
|
this.listOpen = false
|
|
80
|
-
if (href != null) void this.open('')
|
|
83
|
+
if (href != null) void this.open(this.next ?? '')
|
|
84
|
+
this.next = null
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** the page an address asks for (`/wiki#<page>`): opened at once, or as the wiki binds */
|
|
88
|
+
next: string | null = null
|
|
89
|
+
|
|
90
|
+
want(id: string): void {
|
|
91
|
+
if (this.href == null) this.next = id
|
|
92
|
+
else void this.open(id)
|
|
81
93
|
}
|
|
82
94
|
|
|
83
95
|
/** the graph's iframe, to send it focus and theme */
|
|
@@ -131,18 +143,32 @@ export class WikiSt {
|
|
|
131
143
|
return true
|
|
132
144
|
}
|
|
133
145
|
|
|
146
|
+
/** a picture a page names relative to itself (a generated page's icons), served from the wiki's own folder by
|
|
147
|
+
* `/graph/<id>/image`; null for a url, an absolute path, or a path that leaves the wiki */
|
|
148
|
+
imageUrl(page: string, rel: string): string | null {
|
|
149
|
+
if (this.href == null || rel === '' || /^([a-z][a-z0-9+.-]*:|\/)/i.test(rel)) return null
|
|
150
|
+
const out: string[] = []
|
|
151
|
+
for (const p of [...page.split('/').slice(0, -1), ...rel.split('/')]) {
|
|
152
|
+
if (p === '..') {
|
|
153
|
+
if (out.pop() === undefined) return null
|
|
154
|
+
} else if (p !== '.' && p !== '') out.push(p)
|
|
155
|
+
}
|
|
156
|
+
return this.st.url(`${this.href}/image?path=${encodeURIComponent(out.join('/'))}`)
|
|
157
|
+
}
|
|
158
|
+
|
|
134
159
|
/** a page opens in the preview, and its ball is focused in the graph; '' = the wiki's index */
|
|
135
160
|
async open(id: string): Promise<void> {
|
|
136
161
|
const href = this.href
|
|
137
162
|
if (href == null) return
|
|
163
|
+
const n = ++this.opening
|
|
138
164
|
this.listOpen = false
|
|
139
165
|
if (id !== '') this.send({ type: 'wiki-graph:focus', id })
|
|
140
166
|
try {
|
|
141
167
|
const r = await fetch(this.st.url(`${href}/page?node=${encodeURIComponent(id)}`))
|
|
142
168
|
if (!r.ok) throw new Error(`${r.status} ${await r.text()}`)
|
|
143
169
|
const p = (await r.json()) as WikiPage
|
|
144
|
-
// the wiki changed while the page was read: it is not this one's
|
|
145
|
-
if (href !== this.href) return
|
|
170
|
+
// the wiki changed, or a later page was asked, while the page was read: it is not this one's
|
|
171
|
+
if (href !== this.href || n !== this.opening) return
|
|
146
172
|
runInAction(() => { this.page = p; this.error = '' })
|
|
147
173
|
if (id === '') this.send({ type: 'wiki-graph:focus', id: p.id })
|
|
148
174
|
} catch (e) {
|
|
@@ -44,14 +44,15 @@ export function openWikis(app: RepoSt): void {
|
|
|
44
44
|
|
|
45
45
|
const PANEL = { overflow: 'hidden' } as const
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
/** `label`: a tab's words where the page around names it otherwise (the house wiki's page, house-wiki-view.tsx) */
|
|
48
|
+
export const WikisView = observer(({ app, id, label }: { app: RepoSt; id: string; label?: (t: WikiTab) => string }) => {
|
|
48
49
|
const i = app.cols.find(WIKIS, id)
|
|
49
50
|
const w = app.wiki
|
|
50
51
|
const href = i?.href ?? null
|
|
51
52
|
useEffect(() => w.bind(href), [w, href])
|
|
52
53
|
const tabs = (
|
|
53
54
|
<span className="seg">
|
|
54
|
-
{wikiTabs(app).map((t) => <button key={t.id} className={t.on ? 'on' : ''} onClick={t.go}><span className={`tl ${t.state}`}>{t.label}</span></button>)}
|
|
55
|
+
{wikiTabs(app).map((t) => <button key={t.id} className={t.on ? 'on' : ''} onClick={t.go}><span className={`tl ${t.state}`}>{label ? label(t) : t.label}</span></button>)}
|
|
55
56
|
</span>
|
|
56
57
|
)
|
|
57
58
|
if (i == null) return <div className="graphview"><div className="gvhead">{tabs}</div><div className="ph">this wiki is not mounted here</div></div>
|
|
@@ -72,7 +73,7 @@ export const WikisView = observer(({ app, id }: { app: RepoSt; id: string }) =>
|
|
|
72
73
|
const WikiBody = observer(({ app, w, href, title }: { app: RepoSt; w: WikiSt; href: string; title: string }) => {
|
|
73
74
|
const el = useRef<HTMLDivElement | null>(null)
|
|
74
75
|
const frame = useRef<HTMLIFrameElement | null>(null)
|
|
75
|
-
const theme = app.home.theme.
|
|
76
|
+
const theme = app.home.theme.scheme
|
|
76
77
|
// the theme the graph first paints in rides its url; a later change is a message, never a reload
|
|
77
78
|
const first = useRef(theme)
|
|
78
79
|
useEffect(() => w.send({ type: 'wiki-graph:theme', theme }), [w, theme])
|
|
@@ -92,7 +93,7 @@ const WikiBody = observer(({ app, w, href, title }: { app: RepoSt; w: WikiSt; hr
|
|
|
92
93
|
<iframe ref={(f) => { frame.current = f; w.setFrame(f?.contentWindow ?? null) }} src={`${app.url(href)}${sep}theme=${first.current}`} title={title}
|
|
93
94
|
onLoad={() => {
|
|
94
95
|
w.setFrame(frame.current?.contentWindow ?? null)
|
|
95
|
-
w.send({ type: 'wiki-graph:theme', theme: app.home.theme.
|
|
96
|
+
w.send({ type: 'wiki-graph:theme', theme: app.home.theme.scheme })
|
|
96
97
|
if (w.page != null) w.send({ type: 'wiki-graph:focus', id: w.page.id })
|
|
97
98
|
}} />
|
|
98
99
|
</div>
|
|
@@ -180,7 +181,7 @@ const WikiPreview = observer(({ w }: { w: WikiSt }) => {
|
|
|
180
181
|
<button className="wpbtn" title={`copy ${p.file}`} onClick={() => void w.copyPath()}><Icon d={ICON.copy} /><span>{w.copied ? 'copied' : 'copy path'}</span></button>
|
|
181
182
|
<button className="ghost wpclose" aria-label="close the preview" title="close the preview" onClick={() => w.close()}>×</button>
|
|
182
183
|
</div>
|
|
183
|
-
<div className="wpbody md readme-body" onClick={click} dangerouslySetInnerHTML={{ __html: renderWikiPage(p.md, p.links) }} />
|
|
184
|
+
<div className="wpbody md readme-body" onClick={click} dangerouslySetInnerHTML={{ __html: renderWikiPage(p.md, p.links, (rel) => w.imageUrl(p.id, rel)) }} />
|
|
184
185
|
</div>
|
|
185
186
|
)
|
|
186
187
|
})
|
package/src/serve/hub-runtime.ts
CHANGED
|
@@ -60,8 +60,20 @@ import { HubProblems } from './hub-problems.ts'
|
|
|
60
60
|
import { hubHandler, type CheckTap, type HubDeps, type HubHandler } from './serve-hub.ts'
|
|
61
61
|
import type { projectGutter } from './project-gutter-route.ts'
|
|
62
62
|
import { defaultHubPort } from './hub-port.ts'
|
|
63
|
-
import { LAYOUT } from '../core/layout.ts'
|
|
64
63
|
import { storeDir, storeStamp } from '../review/store.ts'
|
|
64
|
+
import { syncNeedThreads } from '../review/need-threads.ts'
|
|
65
|
+
import { syncHolds } from '../review/holds-sync.ts'
|
|
66
|
+
import { isStoreRefused } from '../core/machine-db.ts'
|
|
67
|
+
|
|
68
|
+
/** the review store's stamp, or a word that it is refused now (a walk of the daemon's file): read again at the next ask */
|
|
69
|
+
function storeStampOr(dir: string): string {
|
|
70
|
+
try {
|
|
71
|
+
return storeStamp(dir)
|
|
72
|
+
} catch (e) {
|
|
73
|
+
if (isStoreRefused(e)) return 'refused'
|
|
74
|
+
throw e
|
|
75
|
+
}
|
|
76
|
+
}
|
|
65
77
|
import { machinePublicHost } from '../home/machine-host.ts'
|
|
66
78
|
export { defaultHubPort }
|
|
67
79
|
|
|
@@ -360,7 +372,7 @@ export async function resolveHubDeps(root: string, boot: RepoConfig, io: ServeIo
|
|
|
360
372
|
// the config, the run record and the review store (gitignored, its
|
|
361
373
|
// own watch counts its writes): what the warm rows and the runs page
|
|
362
374
|
// read besides the tracked files the watch sees
|
|
363
|
-
stamp: () => `${configStamp(root)}|${record === '' ? '' : recordStamp(record)}|${
|
|
375
|
+
stamp: () => `${configStamp(root)}|${record === '' ? '' : recordStamp(record)}|${storeStampOr(storeDir(root))}`,
|
|
364
376
|
runCli,
|
|
365
377
|
// the run happens IN THIS PROCESS, so every check result reaches the
|
|
366
378
|
// page as it finishes. A shelled run could only ever deliver one wall
|
|
@@ -408,13 +420,12 @@ export async function resolveHubDeps(root: string, boot: RepoConfig, io: ServeIo
|
|
|
408
420
|
// a job outlives this image, so only an in process run holds a reload back
|
|
409
421
|
busy: () => jobs == null && active > 0,
|
|
410
422
|
collections: allCollections,
|
|
411
|
-
asksDir: c.asks?.dir ?? LAYOUT.asks,
|
|
412
423
|
comfy: panel == null ? null : { ensure: () => panel.ensure(), restart: () => panel.restart(), box: () => comfyBox(root), stop: () => panel.stop() },
|
|
413
424
|
// RED-only pings while serving; notify command is repo config data.
|
|
414
425
|
// Delivery failure must be LOUD — a silently broken notify path means
|
|
415
426
|
// a silent one reads as no blockers at all
|
|
416
427
|
pingTick: (needs) =>
|
|
417
|
-
pingTick(root,
|
|
428
|
+
pingTick(root, needs, {
|
|
418
429
|
link: o?.link ?? (() => { const h = machinePublicHost(c); return h != null ? `http://${h}:${port}${o?.base ?? ''}/?f=needs` : undefined }),
|
|
419
430
|
run: (cmd) => {
|
|
420
431
|
const p = Bun.spawn(cmd, { stdout: 'ignore', stderr: 'pipe' })
|
|
@@ -513,12 +524,26 @@ export async function loadHub(root: string, io: ServeIo, o: LoadHubOpts): Promis
|
|
|
513
524
|
const handler = hubHandler(deps, { base: o.base, projects: o.projects })
|
|
514
525
|
// tick failures are LOUD (the hub's own lines), never swallowed
|
|
515
526
|
const ping = async (): Promise<void> => {
|
|
516
|
-
|
|
527
|
+
// the warm rows, never a compute of every collection of its own: the ping is not worth a held loop
|
|
528
|
+
let needs: Awaited<ReturnType<typeof handler.needs>>
|
|
517
529
|
try {
|
|
518
|
-
|
|
519
|
-
deps.pingTick(
|
|
530
|
+
needs = await handler.needs()
|
|
531
|
+
deps.pingTick?.(needs)
|
|
520
532
|
} catch (e) {
|
|
521
533
|
io.printErr(`WARN ping tick broke: ${(e as Error).message}`)
|
|
534
|
+
return
|
|
535
|
+
}
|
|
536
|
+
try {
|
|
537
|
+
// the same needs keep the checks' and reflections' threads (wiki tools/shipkit/threads-how-it-fits.md, The model)
|
|
538
|
+
await syncNeedThreads(root, name, needs)
|
|
539
|
+
} catch (e) {
|
|
540
|
+
io.printErr(`WARN the checks' and reflections' threads did not sync: ${(e as Error).message}`)
|
|
541
|
+
}
|
|
542
|
+
try {
|
|
543
|
+
// the objects that hold a thread open, each checked on local state (wiki tools/shipkit/threads-how-it-fits.md, The model)
|
|
544
|
+
await syncHolds(root)
|
|
545
|
+
} catch (e) {
|
|
546
|
+
io.printErr(`WARN the threads' holds did not sync: ${(e as Error).message}`)
|
|
522
547
|
}
|
|
523
548
|
}
|
|
524
549
|
const live: { stop: () => void }[] = []
|
|
@@ -540,7 +565,9 @@ export async function loadHub(root: string, io: ServeIo, o: LoadHubOpts): Promis
|
|
|
540
565
|
live.push({ stop: () => watcher.close() }, { stop: () => o.plan.remove(name) }, { stop: () => { if (settle != null) clearTimeout(settle) } })
|
|
541
566
|
// the answers a page waits on, computed now, one hub at a time
|
|
542
567
|
// across the process, so a first visit reads them from memory
|
|
543
|
-
|
|
568
|
+
// a warm that throws (a store refused while a walk of the daemon's file runs) is said, never the process's end:
|
|
569
|
+
// the page computes those answers when it asks
|
|
570
|
+
warming = warming.then(() => loopWatch.spanned(`hub warm: ${name}`, () => handler.warm())).catch((e: unknown) => io.printErr(`WARN the hub of ${name} did not warm: ${(e as Error).message}`))
|
|
544
571
|
if (o.ownTimers) {
|
|
545
572
|
// one tick now (the state file guarantees a restart never re-fires), then every minute
|
|
546
573
|
void ping()
|