rvlib-shipkit 2.29.0 → 2.30.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 +20 -1
- package/package.json +2 -1
- package/src/advisors/app-graph.ts +1 -1
- package/src/advisors/expose.ts +5 -1
- package/src/advisors/r2.ts +7 -9
- package/src/advisors/routes.ts +29 -2
- package/src/advisors/scan.ts +11 -0
- package/src/agent-time/accounts-usage.ts +8 -0
- package/src/agent-time/claude-sessions.ts +32 -0
- package/src/agent-time/hooks.ts +1 -1
- package/src/agent-time/live.ts +5 -2
- package/src/agent-time/registry.ts +186 -89
- package/src/agent-time/store.ts +6 -4
- package/src/asks/ask-doc.ts +2 -2
- package/src/asks/ask-store.ts +22 -7
- package/src/check.ts +9 -1
- package/src/checks/SK001-package-json-shape.check.ts +1 -0
- package/src/checks/SK003-claude-md-shape.check.ts +1 -0
- package/src/checks/SK004-gitignore-policy.check.ts +12 -6
- package/src/checks/SK008-reviewer-agent.check.ts +4 -7
- package/src/checks/SK013-one-way-in-policy.check.ts +1 -0
- package/src/checks/SK017-vscode-hub-task.check.ts +1 -0
- package/src/checks/SK024-identity-colors.check.ts +1 -1
- package/src/checks/SK027-agent-wiki-links.check.ts +2 -1
- package/src/checks/SK033-global-contribution.check.ts +1 -0
- package/src/checks/SK034-commit-gates-armed.check.ts +1 -0
- package/src/checks/SK039-vscode-watch-generated.check.ts +1 -0
- package/src/checks/SK049-thread-answers-hook.check.ts +9 -5
- package/src/checks/SK050-retired-commands.check.ts +1 -0
- package/src/checks/SK051-no-formatter.check.ts +1 -0
- package/src/cli/channel-run.ts +17 -0
- package/src/cli/cmd_Advisors.ts +28 -7
- package/src/cli/cmd_Asks.ts +2 -2
- package/src/cli/cmd_Backup.ts +5 -1
- package/src/cli/cmd_CacheAudit.ts +1 -1
- package/src/cli/cmd_Channel.ts +43 -0
- package/src/cli/cmd_GlobalProcesses.ts +1 -0
- package/src/cli/cmd_Home.ts +12 -5
- package/src/cli/cmd_Hooks.ts +1 -1
- package/src/cli/cmd_Hq.ts +43 -0
- package/src/cli/cmd_Lanes.ts +15 -3
- package/src/cli/cmd_Media.ts +8 -3
- package/src/cli/cmd_Orchestrator.ts +253 -84
- package/src/cli/cmd_OrchestratorRole.ts +163 -0
- package/src/cli/cmd_Review.ts +142 -165
- package/src/cli/cmd_Secret.ts +44 -14
- package/src/cli/cmd_Shot.ts +2 -4
- package/src/cli/cmd_Sound.ts +1 -0
- package/src/cli/cmd_Urls.ts +3 -3
- package/src/cli/inbox-hook-run.ts +109 -0
- package/src/cli/registry.ts +6 -2
- package/src/cli/review-here.ts +136 -0
- package/src/cli.ts +45 -14
- package/src/collections/actions.ts +5 -4
- package/src/collections/checks.ts +5 -0
- package/src/collections/collection-types.ts +4 -3
- package/src/collections/pings.ts +4 -1
- package/src/collections/providers.ts +6 -4
- package/src/collections/tests.ts +7 -4
- package/src/core/app-icon-frame.ts +62 -0
- package/src/core/app-icon.ts +179 -17
- package/src/core/archived.ts +10 -7
- package/src/core/check-ctx.ts +38 -4
- package/src/core/check-pass.ts +7 -0
- package/src/core/foreign.ts +87 -0
- package/src/core/gui-color.ts +75 -0
- package/src/core/hub-theme.ts +1 -3
- package/src/core/layout.ts +3 -0
- package/src/core/machine-commit.ts +9 -1
- package/src/core/one-lib.ts +2 -1
- package/src/core/one-way-in-policy.ts +17 -12
- package/src/core/owner-word-policy.ts +123 -0
- package/src/core/panel-shades.ts +140 -0
- package/src/core/repo-gui-color.ts +16 -0
- package/src/core/role-policy.ts +17 -0
- package/src/core/scope.ts +6 -3
- package/src/core/tmux-policy.ts +264 -0
- package/src/core/unit-icon.ts +43 -0
- package/src/fleet/push-fleet.ts +2 -0
- package/src/fleet/scan-fleet.ts +3 -0
- package/src/gate/cache-audit.ts +7 -1
- package/src/gate/gate-checks.ts +14 -9
- package/src/gate/run-fix.ts +30 -5
- package/src/gate/run-fixers.ts +8 -3
- package/src/home/activity-shape.ts +2 -0
- package/src/home/activity.ts +2 -1
- package/src/home/daemon-guard.ts +20 -2
- package/src/home/daemon-jobs.ts +26 -18
- package/src/home/gui-app/ShipkitGui.swift +2012 -144
- package/src/home/gui-app/icon.svg +8 -0
- package/src/home/gui-app.ts +94 -30
- package/src/home/home-routes.ts +53 -9
- package/src/home/home-start.ts +27 -3
- package/src/home/inbox-shape.ts +7 -3
- package/src/home/log-follow.ts +117 -0
- package/src/home/machine-fold.ts +1 -1
- package/src/home/open-app.ts +9 -3
- package/src/home/page-build.ts +5 -1
- package/src/home/page-held.ts +1 -1
- package/src/home/pm-config.ts +0 -8
- package/src/home/pm.ts +62 -5
- package/src/home/process-apps.ts +70 -23
- package/src/home/process-rows.ts +16 -1
- package/src/home/push-sources.ts +18 -13
- package/src/home/resources.ts +16 -7
- package/src/home/run-daemon.ts +4 -1
- package/src/home/run-pm.ts +1 -1
- package/src/home/serve-daemon.ts +13 -4
- package/src/home/serve-web.ts +141 -17
- package/src/home/space-page.ts +3 -3
- package/src/home/space-route.ts +2 -2
- package/src/home/supervise.ts +2 -1
- package/src/home/vault-page.ts +2 -1
- package/src/home/web-places.ts +239 -0
- package/src/home/widgets.ts +16 -2
- package/src/hooks/commit-message.ts +11 -9
- package/src/hooks/one-way-in-guard.ts +145 -68
- package/src/hooks/run-hooks.ts +15 -5
- package/src/hooks/shared-file.ts +273 -83
- package/src/hooks/shell-writes.ts +620 -0
- package/src/hooks/write-log.ts +149 -0
- package/src/hq/door-route.ts +63 -7
- package/src/hq/door.ts +45 -12
- package/src/hq/history-send.ts +3 -1
- package/src/hq/hq-db.ts +10 -3
- package/src/hq/hq-local.ts +24 -5
- package/src/hq/hq-routes.ts +3 -1
- package/src/hq/hq-store.ts +9 -3
- package/src/hq/kinds/index.ts +2 -1
- package/src/hq/kinds/kind.ts +9 -4
- package/src/hq/kinds/presence-rule.ts +56 -0
- package/src/hq/kinds/presence.ts +210 -0
- package/src/hq/kinds/report.ts +8 -5
- package/src/hq/lead-order.ts +68 -0
- package/src/hq/outbox.ts +7 -0
- package/src/hq/replica.ts +5 -7
- package/src/hq/report-facts.ts +14 -7
- package/src/hq/report.ts +47 -2
- package/src/hq/switch.ts +1 -0
- package/src/hq/terminal-hop.ts +64 -0
- package/src/hq/thread-sync.ts +13 -6
- package/src/http/door-forward.ts +10 -12
- package/src/http/door-names.ts +9 -0
- package/src/http/hop-caller.ts +23 -0
- package/src/http/hop-names.ts +14 -0
- package/src/http/loopback-serve.ts +28 -6
- package/src/http/owner-word.ts +128 -0
- package/src/http/same-origin.ts +12 -0
- package/src/{serve → http}/secret-gate.ts +3 -3
- package/src/ledger/run-log.ts +25 -1
- package/src/media-store/backup/sources.ts +53 -6
- package/src/media-store/backup/thread-copy.ts +9 -5
- package/src/media-store/copy/config.ts +10 -9
- package/src/media-store/daemon.ts +5 -2
- package/src/media-store/put.ts +3 -0
- package/src/media-store/space.ts +14 -16
- package/src/media-store/upload.ts +4 -0
- package/src/messages/collection.ts +2 -2
- package/src/messages/model.ts +6 -1
- package/src/messages/routes.ts +3 -0
- package/src/orchestrator/brief.md +8 -6
- package/src/orchestrator/channel-declare.ts +58 -0
- package/src/orchestrator/channel.ts +226 -0
- package/src/orchestrator/guards.ts +12 -3
- package/src/orchestrator/host.ts +35 -0
- package/src/orchestrator/lead-shape.ts +86 -0
- package/src/orchestrator/now.ts +88 -0
- package/src/orchestrator/phone.ts +4 -1
- package/src/orchestrator/places-file.ts +38 -0
- package/src/orchestrator/places-look.ts +180 -0
- package/src/orchestrator/places-shape.ts +151 -0
- package/src/orchestrator/places.ts +50 -0
- package/src/orchestrator/presence-shape.ts +13 -2
- package/src/orchestrator/presence.ts +26 -15
- package/src/orchestrator/push.ts +5 -10
- package/src/orchestrator/role-shape.ts +270 -0
- package/src/orchestrator/role.ts +242 -0
- package/src/orchestrator/routes.ts +136 -31
- package/src/orchestrator/sessions-shape.ts +78 -0
- package/src/orchestrator/sessions.ts +86 -0
- package/src/orchestrator/share.ts +71 -0
- package/src/orchestrator/start-notice.ts +61 -0
- package/src/orchestrator/start.ts +137 -0
- package/src/orchestrator/started.ts +55 -0
- package/src/orchestrator/stuck.ts +196 -0
- package/src/orchestrator/unheard.ts +18 -7
- package/src/pages/frame-client.ts +44 -6
- package/src/problems/failure-words.ts +80 -0
- package/src/release/run-bump.ts +26 -5
- package/src/release/run-release.ts +34 -14
- package/src/repo-config.ts +37 -9
- package/src/review/aside-at.ts +19 -0
- package/src/review/band.ts +3 -3
- package/src/review/doc-save.ts +1 -1
- package/src/review/inbox-hook.ts +12 -4
- package/src/review/inbox-read.ts +20 -7
- package/src/review/instruction-guards.ts +137 -0
- package/src/review/instructions.ts +14 -2
- package/src/review/item-db.ts +52 -2
- package/src/review/mentions.ts +6 -4
- package/src/review/model.ts +3 -2
- package/src/review/parties.ts +88 -19
- package/src/review/push.ts +32 -15
- package/src/review/routes.ts +12 -4
- package/src/review/secret-route.ts +5 -5
- package/src/review/snooze.ts +1 -16
- package/src/review/store-parties.ts +4 -2
- package/src/review/take-back.ts +2 -1
- package/src/review/threads.ts +13 -2
- package/src/review/unit.ts +3 -2
- package/src/review/view-layout.ts +8 -1
- package/src/review/watchers.ts +25 -4
- package/src/secrets/key-pair.ts +14 -0
- package/src/secrets/lapse.ts +3 -3
- package/src/secrets/manager.ts +5 -1
- package/src/secrets/name-template.ts +83 -0
- package/src/secrets/name.ts +3 -0
- package/src/secrets/read.ts +10 -6
- package/src/secrets/secrets-view.ts +299 -0
- package/src/secrets/who-reads.ts +2 -1
- package/src/serve/frame-part.ts +49 -0
- package/src/serve/hub-app/accounts-line.tsx +33 -45
- package/src/serve/hub-app/activity-st.ts +6 -5
- package/src/serve/hub-app/activity-view.tsx +10 -9
- package/src/serve/hub-app/advice-box.tsx +6 -5
- package/src/serve/hub-app/advisor-app.tsx +2 -0
- package/src/serve/hub-app/advisor-face.tsx +3 -2
- package/src/serve/hub-app/advisor.html +1 -0
- package/src/serve/hub-app/advisors-view.tsx +52 -10
- package/src/serve/hub-app/advisors.css +4 -0
- package/src/serve/hub-app/app-bridge.ts +31 -5
- package/src/serve/hub-app/asked-page.ts +24 -0
- package/src/serve/hub-app/asks-page.tsx +10 -6
- package/src/serve/hub-app/auto-text.tsx +7 -5
- package/src/serve/hub-app/card-head.tsx +3 -2
- package/src/serve/hub-app/check-view.tsx +10 -9
- package/src/serve/hub-app/checks-svc.ts +96 -32
- package/src/serve/hub-app/clock-svc.ts +24 -8
- package/src/serve/hub-app/code-copy.ts +1 -1
- package/src/serve/hub-app/col-card.tsx +2 -1
- package/src/serve/hub-app/col-list-page.tsx +12 -6
- package/src/serve/hub-app/col-list-st.ts +12 -2
- package/src/serve/hub-app/col-tables-view.tsx +8 -44
- package/src/serve/hub-app/col-tables.ts +0 -14
- package/src/serve/hub-app/cols-svc.ts +6 -12
- package/src/serve/hub-app/columns.ts +94 -0
- package/src/serve/hub-app/comfy-view.tsx +8 -7
- package/src/serve/hub-app/commands/commands-page.tsx +4 -3
- package/src/serve/hub-app/commands/commands-st.ts +2 -2
- package/src/serve/hub-app/controls.css +69 -23
- package/src/serve/hub-app/cycle-button.tsx +2 -1
- package/src/serve/hub-app/database-st.ts +1 -1
- package/src/serve/hub-app/database-view.tsx +4 -2
- package/src/serve/hub-app/deaf.tsx +27 -0
- package/src/serve/hub-app/dock-st.ts +21 -16
- package/src/serve/hub-app/dock-view.tsx +19 -12
- package/src/serve/hub-app/empty-section.tsx +30 -0
- package/src/serve/hub-app/entry-bar.css +1 -1
- package/src/serve/hub-app/entry-bar.tsx +11 -6
- package/src/serve/hub-app/entry-list.css +32 -0
- package/src/serve/hub-app/entry-list.tsx +123 -0
- package/src/serve/hub-app/entry-pick.ts +1 -1
- package/src/serve/hub-app/entry-sections.ts +140 -0
- package/src/serve/hub-app/event-stream-reader.ts +56 -0
- package/src/serve/hub-app/floating.tsx +68 -14
- package/src/serve/hub-app/geometry-view.tsx +3 -2
- package/src/serve/hub-app/git-view.tsx +3 -2
- package/src/serve/hub-app/hash-route.ts +14 -2
- package/src/serve/hub-app/header-bar.tsx +53 -36
- package/src/serve/hub-app/home-st.ts +131 -14
- package/src/serve/hub-app/home-strip.css +24 -13
- package/src/serve/hub-app/home-strip.tsx +131 -66
- package/src/serve/hub-app/home.html +5 -0
- package/src/serve/hub-app/hub-app.tsx +94 -102
- package/src/serve/hub-app/hub.css +61 -94
- package/src/serve/hub-app/icons.tsx +16 -0
- package/src/serve/hub-app/identities-st.ts +19 -54
- package/src/serve/hub-app/identities-view.tsx +25 -24
- package/src/serve/hub-app/identity-address.ts +2 -2
- package/src/serve/hub-app/in-sight.ts +10 -0
- package/src/serve/hub-app/inbox-st.ts +20 -2
- package/src/serve/hub-app/inbox-view.tsx +16 -9
- package/src/serve/hub-app/inbox.css +1 -0
- package/src/serve/hub-app/index.html +5 -0
- package/src/serve/hub-app/insights-view.tsx +6 -5
- package/src/serve/hub-app/instructions.css +4 -1
- package/src/serve/hub-app/kept-cols.tsx +83 -20
- package/src/serve/hub-app/kept-width.tsx +76 -0
- package/src/serve/hub-app/keys.ts +116 -38
- package/src/serve/hub-app/layout-st.ts +109 -99
- package/src/serve/hub-app/lightbox-zoom.css +36 -0
- package/src/serve/hub-app/list-filter.tsx +15 -6
- package/src/serve/hub-app/list-head.tsx +29 -0
- package/src/serve/hub-app/list-row.ts +8 -0
- package/src/serve/hub-app/list-walk.ts +26 -105
- package/src/serve/hub-app/live-socket.ts +274 -0
- package/src/serve/hub-app/live-sources.ts +189 -0
- package/src/serve/hub-app/live-svc.ts +2 -2
- package/src/serve/hub-app/machine-st.ts +75 -14
- package/src/serve/hub-app/main-panel.css +211 -0
- package/src/serve/hub-app/main-panel.tsx +259 -0
- package/src/serve/hub-app/md.ts +4 -4
- package/src/serve/hub-app/media-svc.ts +5 -5
- package/src/serve/hub-app/media-view.tsx +13 -12
- package/src/serve/hub-app/messages/messages-page.tsx +8 -7
- package/src/serve/hub-app/messages/messages-st.ts +5 -2
- package/src/serve/hub-app/new-thread-st.ts +170 -0
- package/src/serve/hub-app/new-thread.tsx +133 -107
- package/src/serve/hub-app/orchestrator-line.tsx +115 -45
- package/src/serve/hub-app/orchestrator-places.tsx +86 -0
- package/src/serve/hub-app/orchestrator.css +57 -5
- package/src/serve/hub-app/page-keys.ts +107 -68
- package/src/serve/hub-app/page-reload.ts +46 -6
- package/src/serve/hub-app/pages-frames.tsx +40 -3
- package/src/serve/hub-app/pages-svc.ts +3 -1
- package/src/serve/hub-app/palette-st.ts +198 -43
- package/src/serve/hub-app/palette-view.tsx +32 -8
- package/src/serve/hub-app/panel-head-action.tsx +39 -0
- package/src/serve/hub-app/panel-head.tsx +70 -0
- package/src/serve/hub-app/panel-repo.ts +42 -0
- package/src/serve/hub-app/panel-source.ts +195 -0
- package/src/serve/hub-app/panel-tint.css +6 -0
- package/src/serve/hub-app/panel-tint.ts +23 -0
- package/src/serve/hub-app/panel-walk.ts +107 -0
- package/src/serve/hub-app/pill-row.tsx +2 -1
- package/src/serve/hub-app/place-path.ts +4 -0
- package/src/serve/hub-app/places-svc.ts +75 -0
- package/src/serve/hub-app/plan-view.tsx +3 -2
- package/src/serve/hub-app/polled.ts +11 -1
- package/src/serve/hub-app/presence-st.ts +66 -32
- package/src/serve/hub-app/processes-view.tsx +2 -2
- package/src/serve/hub-app/project-bar.tsx +116 -0
- package/src/serve/hub-app/project-list.css +20 -173
- package/src/serve/hub-app/project-list.tsx +30 -298
- package/src/serve/hub-app/projects-svc.ts +59 -32
- package/src/serve/hub-app/push-sign.tsx +2 -1
- package/src/serve/hub-app/push-svc.ts +86 -69
- package/src/serve/hub-app/quiet-st.ts +5 -3
- package/src/serve/hub-app/rail-groups.ts +144 -0
- package/src/serve/hub-app/reader-chips.tsx +2 -1
- package/src/serve/hub-app/recordings-st.ts +2 -1
- package/src/serve/hub-app/recordings-view.tsx +19 -47
- package/src/serve/hub-app/recordings.css +0 -2
- package/src/serve/hub-app/reflections-page.tsx +10 -6
- package/src/serve/hub-app/releases/releases-page.tsx +6 -5
- package/src/serve/hub-app/repo-sections.ts +127 -38
- package/src/serve/hub-app/repo-st.ts +57 -36
- package/src/serve/hub-app/review/advisor-bar.tsx +3 -2
- package/src/serve/hub-app/review/ask-proof.tsx +79 -0
- package/src/serve/hub-app/review/attach-view.tsx +11 -10
- package/src/serve/hub-app/review/box-view.ts +479 -0
- package/src/serve/hub-app/review/box-zoom.tsx +70 -0
- package/src/serve/hub-app/review/diff-view.tsx +3 -2
- package/src/serve/hub-app/review/doc-body.tsx +2 -1
- package/src/serve/hub-app/review/dock.tsx +3 -2
- package/src/serve/hub-app/review/draft-body.tsx +4 -3
- package/src/serve/hub-app/review/faces.tsx +0 -8
- package/src/serve/hub-app/review/group-block.tsx +8 -7
- package/src/serve/hub-app/review/heard-line.tsx +4 -3
- package/src/serve/hub-app/review/instructions-view.tsx +3 -2
- package/src/serve/hub-app/review/item-verdict.tsx +40 -40
- package/src/serve/hub-app/review/kind-states.tsx +5 -4
- package/src/serve/hub-app/review/kit.tsx +24 -4
- package/src/serve/hub-app/review/lane-bar.tsx +30 -28
- package/src/serve/hub-app/review/lightbox.tsx +6 -4
- package/src/serve/hub-app/review/live-bar.tsx +7 -6
- package/src/serve/hub-app/review/live-view.tsx +6 -5
- package/src/serve/hub-app/review/object-card.tsx +2 -1
- package/src/serve/hub-app/review/object-panel.tsx +11 -10
- package/src/serve/hub-app/review/pano-view.tsx +3 -2
- package/src/serve/hub-app/review/question-views.tsx +6 -5
- package/src/serve/hub-app/review/review-cells.tsx +21 -20
- package/src/serve/hub-app/review/review-host.ts +3 -0
- package/src/serve/hub-app/review/review-kit.ts +7 -5
- package/src/serve/hub-app/review/review-list.tsx +98 -52
- package/src/serve/hub-app/review/review-page.tsx +3 -3
- package/src/serve/hub-app/review/review-st.ts +70 -14
- package/src/serve/hub-app/review/review-thread.tsx +234 -138
- package/src/serve/hub-app/review/review-views.tsx +166 -191
- package/src/serve/hub-app/review/space3d.tsx +17 -9
- package/src/serve/hub-app/review/thread-close.tsx +24 -32
- package/src/serve/hub-app/review/thread-st.ts +39 -25
- package/src/serve/hub-app/review/trailer-body.tsx +5 -4
- package/src/serve/hub-app/review/trailer-page.tsx +18 -16
- package/src/serve/hub-app/review/trailer-st.ts +3 -2
- package/src/serve/hub-app/review/trailer-timeline.tsx +10 -9
- package/src/serve/hub-app/review/trailer-voices.tsx +29 -28
- package/src/serve/hub-app/review.css +159 -42
- package/src/serve/hub-app/row-acts.tsx +126 -0
- package/src/serve/hub-app/row-face.tsx +29 -0
- package/src/serve/hub-app/running-rows.tsx +142 -0
- package/src/serve/hub-app/running-st.ts +110 -0
- package/src/serve/hub-app/search-view.tsx +3 -2
- package/src/serve/hub-app/secrets-page.tsx +290 -0
- package/src/serve/hub-app/secrets-st.ts +181 -0
- package/src/serve/hub-app/secrets.css +65 -0
- package/src/serve/hub-app/section-head.tsx +3 -2
- package/src/serve/hub-app/session-chips.tsx +55 -0
- package/src/serve/hub-app/shell.ts +56 -0
- package/src/serve/hub-app/site/site-part.tsx +6 -5
- package/src/serve/hub-app/site/site-st.ts +0 -6
- package/src/serve/hub-app/site.css +0 -1
- package/src/serve/hub-app/social/calendar.tsx +7 -6
- package/src/serve/hub-app/social/comms-page.tsx +29 -26
- package/src/serve/hub-app/social/group-editor.tsx +2 -1
- package/src/serve/hub-app/social/kit.tsx +12 -11
- package/src/serve/hub-app/social/next-release.tsx +3 -2
- package/src/serve/hub-app/social/post-card.tsx +21 -20
- package/src/serve/hub-app/social/post-page.tsx +2 -1
- package/src/serve/hub-app/social/problems.tsx +3 -2
- package/src/serve/hub-app/social/social-page.tsx +29 -27
- package/src/serve/hub-app/social/social-st.ts +4 -2
- package/src/serve/hub-app/social/stage-popup.tsx +11 -10
- package/src/serve/hub-app/social.css +7 -5
- package/src/serve/hub-app/source-acts.ts +79 -0
- package/src/serve/hub-app/source-page.tsx +17 -0
- package/src/serve/hub-app/space-view.tsx +5 -4
- package/src/serve/hub-app/stores/stores-page.tsx +21 -19
- package/src/serve/hub-app/stores/stores-st.ts +1 -1
- package/src/serve/hub-app/stores.css +1 -1
- package/src/serve/hub-app/terminal-history-st.ts +112 -0
- package/src/serve/hub-app/terminal-keys.ts +79 -0
- package/src/serve/hub-app/terminal-lib.ts +110 -0
- package/src/serve/hub-app/terminal-links.ts +55 -0
- package/src/serve/hub-app/terminal-list-st.ts +304 -0
- package/src/serve/hub-app/terminal-log-st.ts +242 -0
- package/src/serve/hub-app/terminal-out.ts +135 -0
- package/src/serve/hub-app/terminal-pages.tsx +115 -0
- package/src/serve/hub-app/terminal-panel.tsx +60 -9
- package/src/serve/hub-app/terminal-sources.tsx +335 -0
- package/src/serve/hub-app/terminal-st.ts +447 -167
- package/src/serve/hub-app/terminal-stream.ts +233 -0
- package/src/serve/hub-app/terminal-tab.tsx +64 -0
- package/src/serve/hub-app/terminal-widths.ts +30 -0
- package/src/serve/hub-app/terminal.css +50 -4
- package/src/serve/hub-app/test-view.tsx +5 -3
- package/src/serve/hub-app/tests-view.tsx +16 -15
- package/src/serve/hub-app/theme-st.ts +5 -0
- package/src/serve/hub-app/thread-row.tsx +39 -31
- package/src/serve/hub-app/time-ago.tsx +3 -2
- package/src/serve/hub-app/time-view.tsx +2 -1
- package/src/serve/hub-app/time.css +1 -1
- package/src/serve/hub-app/timeline-chart.tsx +5 -4
- package/src/serve/hub-app/timeline-view.tsx +10 -9
- package/src/serve/hub-app/tips.ts +247 -0
- package/src/serve/hub-app/tree-build.ts +40 -8
- package/src/serve/hub-app/tree-svc.ts +167 -134
- package/src/serve/hub-app/unit-icons.ts +26 -0
- package/src/serve/hub-app/url-address.ts +154 -0
- package/src/serve/hub-app/url-faces.ts +88 -0
- package/src/serve/hub-app/url-forms.tsx +183 -0
- package/src/serve/hub-app/urls-svc.ts +167 -5
- package/src/serve/hub-app/urls-view.tsx +56 -20
- package/src/serve/hub-app/urls.css +26 -0
- package/src/serve/hub-app/vault-view.tsx +5 -4
- package/src/serve/hub-app/veille/veille-page.tsx +34 -33
- package/src/serve/hub-app/veille/veille-st.ts +6 -3
- package/src/serve/hub-app/view-layout.css +3 -3
- package/src/serve/hub-app/when-view.tsx +5 -4
- package/src/serve/hub-app/wikis-view.tsx +6 -5
- package/src/serve/hub-app/words.tsx +9 -2
- package/src/serve/hub-runtime.ts +3 -2
- package/src/serve/orchestrator-host.ts +58 -0
- package/src/serve/page-live.ts +147 -0
- package/src/serve/project-gutter-route.ts +63 -2
- package/src/serve/read-worker.ts +7 -2
- package/src/serve/runs-stamp.ts +33 -0
- package/src/serve/secrets-read.ts +156 -0
- package/src/serve/serve-hub.ts +71 -22
- package/src/serve/terminal-claudes.ts +185 -0
- package/src/serve/terminal-guard.ts +10 -5
- package/src/serve/terminal-host.ts +517 -0
- package/src/serve/terminal-record.ts +104 -0
- package/src/serve/terminal-route.ts +466 -103
- package/src/serve/terminal-shells.ts +3 -0
- package/src/serve/terminal-watch.ts +102 -0
- package/src/shipkit-files.ts +9 -4
- package/src/shot/client.ts +4 -9
- package/src/shot/shooter.ts +2 -4
- package/src/shot/shot-ask.ts +2 -7
- package/src/shot/shot-theme.ts +6 -17
- package/src/social/routes.ts +2 -2
- package/src/social/writes.ts +3 -0
- package/src/suite/test-units.ts +6 -2
- package/src/trailer/sound/eleven.ts +1 -0
- package/src/urls/added.ts +111 -0
- package/src/urls/icons.ts +294 -0
- package/src/urls/places.ts +139 -0
- package/src/urls/routes.ts +17 -7
- package/src/urls/rows.ts +48 -15
- package/src/urls/unit.ts +57 -3
- package/src/urls/write-routes.ts +207 -0
- package/src/vault/vault-destroy.ts +2 -1
- package/src/vault/vault-import.ts +4 -11
- package/src/vault/vault-restore.ts +3 -2
- package/src/veille/chrome.ts +18 -3
- package/src/veille/identity.ts +6 -0
- package/src/view3d/cam.ts +30 -46
- package/src/view3d/lib.ts +20 -2
- package/src/view3d/viewer.ts +62 -88
- package/src/wiki/agent-paths.ts +2 -1
- package/src/orchestrator/deliver.ts +0 -81
- package/src/orchestrator/drill.ts +0 -129
- package/src/orchestrator/keeper.ts +0 -332
- package/src/orchestrator/pm.ts +0 -20
- package/src/orchestrator/state.ts +0 -92
- package/src/orchestrator/switch.ts +0 -86
- package/src/orchestrator/tmux.ts +0 -82
- package/src/serve/hub-app/rail-fly.tsx +0 -95
- package/src/serve/hub-app/side-lists.ts +0 -72
- package/src/serve/hub-app/sidebar.tsx +0 -62
- package/src/serve/hub-app/tree-row.tsx +0 -125
|
@@ -5,23 +5,26 @@ import { observer, useLocalObservable } from 'mobx-react-lite'
|
|
|
5
5
|
import { AttachSt } from './attach-st.ts'
|
|
6
6
|
import { AttachButton, AttachThumbs, useFileBox } from './attach-view.tsx'
|
|
7
7
|
import { AutoText } from '../auto-text.tsx'
|
|
8
|
-
import { Fragment, useEffect, useRef, useState } from 'react'
|
|
8
|
+
import { Fragment, useEffect, useRef, useState, type ReactNode } from 'react'
|
|
9
9
|
import type { ThreadRow } from '../../../review/cells.ts'
|
|
10
10
|
import { MOVE_LABEL, STATUS_LABEL, subjectLabel, UPDATE_WORDS, type Move, type ShownStatus } from '../../../review/model.ts'
|
|
11
11
|
import { isOwnerWait, OWNER_WAITS, type OwnerWait } from '../../../review/wait.ts'
|
|
12
12
|
import { waitGlyph } from './object-panel.tsx'
|
|
13
|
-
import {
|
|
13
|
+
import { waitingWords, type Band } from '../../../review/band.ts'
|
|
14
14
|
import { cursorWords } from '../../../review/traces.ts'
|
|
15
|
-
import { actorName
|
|
15
|
+
import { actorName } from '../../../review/parties.ts'
|
|
16
|
+
import { DeafMark, deafThread, rowMarks } from '../deaf.tsx'
|
|
16
17
|
import { laneAskWords } from '../../../review/lane-ask.ts'
|
|
17
|
-
import { HolderChip, laneColor } from './kit.tsx'
|
|
18
|
+
import { HeadPop, HolderChip, laneColor } from './kit.tsx'
|
|
18
19
|
import { ReviewBoard } from './review-board.tsx'
|
|
19
20
|
import type { ReviewSt } from './review-st.ts'
|
|
21
|
+
import type { ListPlace } from '../layout-st.ts'
|
|
20
22
|
import { ListFilter } from '../list-filter.tsx'
|
|
21
|
-
import { Pop
|
|
23
|
+
import { Pop } from '../floating.tsx'
|
|
22
24
|
import { Icon, ICON } from '../icons.tsx'
|
|
23
25
|
import { SectionHead } from '../section-head.tsx'
|
|
24
26
|
import { ThreadRow as ThreadRowView, VerbGlyph } from '../thread-row.tsx'
|
|
27
|
+
import { tip } from '../tips.ts'
|
|
25
28
|
|
|
26
29
|
const ALL = ''
|
|
27
30
|
|
|
@@ -33,23 +36,28 @@ const Everywhere = observer(({ rv }: { rv: ReviewSt }) => {
|
|
|
33
36
|
return <button type="button" className="ghost rv-everywhere" onClick={() => home.inbox.find.go(q)}>« {q} » in every repo →</button>
|
|
34
37
|
})
|
|
35
38
|
|
|
36
|
-
|
|
37
|
-
|
|
39
|
+
/** `place`: the list at the page's left, or across its top, where its head is one row and its rows a table
|
|
40
|
+
* (controls.css .tr-table). `tools`: what the page adds to the top row (the button that flips the place) */
|
|
41
|
+
export const ReviewList = observer(({ rv, place = 'left', tools }: { rv: ReviewSt; place?: ListPlace; tools?: ReactNode }) => (
|
|
42
|
+
<div className={`rv-listcol${place === 'top' ? ' top tr-table' : ''}`} data-place={place}>
|
|
43
|
+
<div className="rv-listhead">
|
|
38
44
|
{rv.can('filter') ? <div className="rv-filters">
|
|
39
|
-
<ListFilter
|
|
45
|
+
<ListFilter value={rv.query} set={(v) => rv.setQuery(v)} keep={(el) => { rv.searchEl = el }} placeholder="search every version and message" label="search every version and message" />
|
|
40
46
|
<ListToggle on={rv.hideHandled} set={(v) => rv.setHideHandled(v)} icon={ICON.hideHandled} label="hide handled" says={rv.hideHandled ? 'hide handled: on, the threads you answered are hidden' : 'hide handled: off, every thread shows'} />
|
|
41
47
|
<ListToggle on={rv.byLane} set={(v) => rv.setByLane(v)} icon={ICON.byLane} label="by lane" says={rv.byLane ? 'by lane: on, the threads are grouped by the lane that sent them' : 'by lane: off, one list, newest first'} />
|
|
42
48
|
<Pop className={`rv-filterbtn${changed(rv) > 0 ? ' on' : ''}`} popClass="fpop rv-filterpop" placement="bottom-end" aria-label="the filters" title={`filters: ${rv.activeCount} active, ${rv.pendingCount} waiting`}
|
|
43
49
|
label={<><Icon d={ICON.filter} />{changed(rv) > 0 ? <b>{changed(rv)}</b> : null}</>}>
|
|
44
50
|
{() => <Filters rv={rv} />}
|
|
45
51
|
</Pop>
|
|
52
|
+
{tools}
|
|
46
53
|
</div> : rv.can('search') ? <div className="rv-filters">
|
|
47
|
-
<ListFilter
|
|
54
|
+
<ListFilter value={rv.query} set={(v) => rv.setQuery(v)} keep={(el) => { rv.searchEl = el }} placeholder="search these threads" label="search these threads" />
|
|
48
55
|
</div> : null}
|
|
49
56
|
<Everywhere rv={rv} />
|
|
50
57
|
{rv.can('filter') ? <MustDo rv={rv} /> : null}
|
|
51
58
|
{rv.can('start') && (rv.host.starts?.length ?? 0) > 0 ? <StartThread rv={rv} /> : null}
|
|
52
|
-
{rv.since && rv.since.moved > 0 ? <div className="rv-since"
|
|
59
|
+
{rv.since && rv.since.moved > 0 ? <div className="rv-since" {...tip(`${sinceWords(rv.since)}\nsince your last act here, ${new Date(rv.since.at).toLocaleString()}`)}><span className="sincelead">since you left: </span>{rv.since.moved}<span className="sincew"> moved</span>, <b>{rv.since.yours}<span className="sincew"> yours</span></b></div> : null}
|
|
60
|
+
</div>
|
|
53
61
|
{rv.board && rv.spec?.dispatcher && rv.can('board') ? <ReviewBoard rv={rv} /> : <Rows rv={rv} />}
|
|
54
62
|
</div>
|
|
55
63
|
))
|
|
@@ -123,27 +131,53 @@ const MUST_SAYS: Record<OwnerWait, string> = {
|
|
|
123
131
|
do: 'something only your hands do: a step, a purchase, a secret, a url',
|
|
124
132
|
}
|
|
125
133
|
|
|
134
|
+
/** what moved since he left, as the line over the list says it: the hover of whatever form of it the column keeps */
|
|
135
|
+
const sinceWords = (s: { moved: number; yours: number }): string => `since you left: ${s.moved} moved, ${s.yours} yours`
|
|
136
|
+
|
|
126
137
|
/** « what I must do », the inbox's filter: all, or the threads whose verb is judge, answer, do or read, each its glyph
|
|
127
138
|
* and its count under the other filters, its word only where the column is wide; a click toggles one verb. One row
|
|
128
|
-
* that never wraps (controls.css .verbs)
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
))
|
|
139
|
+
* that never wraps (controls.css .verbs). A narrow column keeps the glyphs, the word and the count on hover; the
|
|
140
|
+
* narrowest keeps one button whose popover lists them (review.css, the head in a narrow column), with what moved
|
|
141
|
+
* since he left on its hover, where its line is gone */
|
|
142
|
+
const MustDo = observer(({ rv }: { rv: ReviewSt }) => {
|
|
143
|
+
const n = (w: OwnerWait): number => rv.page?.byWait[w] ?? 0
|
|
144
|
+
const says = (w: OwnerWait): string => `${w}${n(w) > 0 ? ` (${n(w)})` : ''}: ${MUST_SAYS[w]}`
|
|
145
|
+
const picked = rv.waits ?? []
|
|
146
|
+
return (
|
|
147
|
+
<>
|
|
148
|
+
<div className="verbs seg" role="group" aria-label="what I must do">
|
|
149
|
+
<button className={rv.waits === null ? 'on' : ''} {...tip('every thread')} onClick={() => rv.setFilter({ waits: null })}>all</button>
|
|
150
|
+
{OWNER_WAITS.map((w) => (
|
|
151
|
+
<button key={w} className={picked.includes(w) ? 'on' : ''} aria-pressed={picked.includes(w)} aria-label={w} {...tip(says(w))} onClick={() => rv.toggleWait(w)}>
|
|
152
|
+
<VerbGlyph verb={w} says={says(w)} />
|
|
153
|
+
<span className="verbw">{w}</span>
|
|
154
|
+
{n(w) > 0 ? <b className="verbn">{n(w)}</b> : null}
|
|
155
|
+
</button>
|
|
156
|
+
))}
|
|
157
|
+
</div>
|
|
158
|
+
<HeadPop className={`rv-filterbtn verbs1${picked.length > 0 ? ' on' : ''}`} check="must-do" says="what I must do"
|
|
159
|
+
more={[picked.length > 0 ? `only ${picked.join(', ')}` : 'every thread shows', rv.since && rv.since.moved > 0 ? sinceWords(rv.since) : null].filter((l) => l !== null).join('\n')}
|
|
160
|
+
label={picked.length === 1 ? <span className="trverb"><Icon d={ICON[picked[0]!]} /></span> : picked.length > 1 ? <b>{picked.length}</b> : 'all'}>
|
|
161
|
+
{(close) => (
|
|
162
|
+
<>
|
|
163
|
+
<button type="button" className="rv-menuitem" data-check="must" data-wait="" aria-pressed={picked.length === 0} onClick={() => { close(); rv.setFilter({ waits: null }) }}>all</button>
|
|
164
|
+
{OWNER_WAITS.map((w) => (
|
|
165
|
+
<button key={w} type="button" className="rv-menuitem" data-check="must" data-wait={w} aria-pressed={picked.includes(w)} {...tip(MUST_SAYS[w])} onClick={() => { close(); rv.toggleWait(w) }}>
|
|
166
|
+
<span className="trverb"><Icon d={ICON[w]} /></span>
|
|
167
|
+
<span>{w}</span>
|
|
168
|
+
{n(w) > 0 ? <b className="rv-menuwhen">{n(w)}</b> : null}
|
|
169
|
+
</button>
|
|
170
|
+
))}
|
|
171
|
+
</>
|
|
172
|
+
)}
|
|
173
|
+
</HeadPop>
|
|
174
|
+
</>
|
|
175
|
+
)
|
|
176
|
+
})
|
|
141
177
|
|
|
142
178
|
/** a switch of the list in its top row: an icon that reads pressed while on, its words at once on hover */
|
|
143
179
|
const ListToggle = ({ on, set, icon, label, says }: { on: boolean; set: (v: boolean) => void; icon: string; label: string; says: string }) => (
|
|
144
|
-
<
|
|
145
|
-
<button type="button" role="switch" aria-checked={on} aria-label={label} className={`rv-filterbtn rv-listtoggle${on ? ' on' : ''}`} onClick={() => set(!on)}><Icon d={icon} /></button>
|
|
146
|
-
</Tip>
|
|
180
|
+
<button type="button" role="switch" aria-checked={on} aria-label={label} {...tip(says)} className={`rv-filterbtn rv-listtoggle${on ? ' on' : ''}`} onClick={() => set(!on)}><Icon d={icon} /></button>
|
|
147
181
|
)
|
|
148
182
|
|
|
149
183
|
/** how many filters behind the button differ from the list as it opens: a subject, a state, whose move, the board */
|
|
@@ -177,8 +211,23 @@ const Filters = observer(({ rv }: { rv: ReviewSt }) => (
|
|
|
177
211
|
</div>
|
|
178
212
|
))
|
|
179
213
|
|
|
214
|
+
/** a row of his turn that nobody hears: a word he writes there reaches no agent */
|
|
215
|
+
const deafRow = (rv: ReviewSt, r: ThreadRow): boolean => isOwnerWait(r.wait) && !r.aside && rv.can('lane') && rv.hearingOf(r.holder).light === 'nobody'
|
|
216
|
+
|
|
217
|
+
/** the heads that wear the deaf mark (deaf.tsx rowMarks): each row of his turn nobody hears, unless every such row is
|
|
218
|
+
* deaf and the head line over the list wears the mark, which says it once. The host says so (review-host.ts
|
|
219
|
+
* headSaysDeaf), and is asked only when every row is deaf: a reader with no deaf row needs nothing of it */
|
|
220
|
+
function deafMarks(rv: ReviewSt): Set<string> {
|
|
221
|
+
const his = rv.rows.filter((r) => isOwnerWait(r.wait) && !r.aside)
|
|
222
|
+
const deaf = his.map((r) => deafRow(rv, r))
|
|
223
|
+
if (!deaf.some(Boolean)) return new Set()
|
|
224
|
+
const marks = rowMarks(deaf, deaf.every(Boolean) && (rv.host.headSaysDeaf ?? false))
|
|
225
|
+
return new Set(his.filter((_, i) => marks[i]).map((r) => r.head))
|
|
226
|
+
}
|
|
227
|
+
|
|
180
228
|
const Rows = observer(({ rv }: { rv: ReviewSt }) => {
|
|
181
229
|
const open = rv.openRow
|
|
230
|
+
const deaf = deafMarks(rv)
|
|
182
231
|
useEffect(() => rv.host.owner?.home.advisors.watch(), [rv])
|
|
183
232
|
return (
|
|
184
233
|
<div className="rv-listscroll">
|
|
@@ -187,13 +236,13 @@ const Rows = observer(({ rv }: { rv: ReviewSt }) => {
|
|
|
187
236
|
? rv.laneGroups.map((g) => (
|
|
188
237
|
<div key={g.lane ?? ''}>
|
|
189
238
|
<LaneHeader rv={rv} lane={g.lane} rows={g.rows} />
|
|
190
|
-
{
|
|
239
|
+
{rv.shownOf(laneBand(g.lane), g.rows).map((r) => <Row key={r.head} rv={rv} r={r} on={r === open} deaf={deaf.has(r.head)} />)}
|
|
191
240
|
</div>
|
|
192
241
|
))
|
|
193
|
-
:
|
|
242
|
+
: rv.bandGroups.map((g) => (
|
|
194
243
|
<Fragment key={g.band}>
|
|
195
244
|
<BandHeader rv={rv} band={g.band} n={g.rows.length} />
|
|
196
|
-
{
|
|
245
|
+
{rv.shownOf(`turn:${g.band}`, g.rows).map((r) => <Row key={r.head} rv={rv} r={r} on={r === open} deaf={deaf.has(r.head)} />)}
|
|
197
246
|
</Fragment>
|
|
198
247
|
))}
|
|
199
248
|
{rv.page && rv.rows.length === 0 ? (
|
|
@@ -217,7 +266,7 @@ const Proposed = observer(({ rv }: { rv: ReviewSt }) => {
|
|
|
217
266
|
<div className="adv-proposed">
|
|
218
267
|
{ps.map((p) => (
|
|
219
268
|
<span key={p.id}>
|
|
220
|
-
<a href="/advisors"
|
|
269
|
+
<a href="/advisors" {...tip('accept or decline it on the advisors page: no agent sees it before')}>{p.name} proposes a thread</a>: {p.title}
|
|
221
270
|
</span>
|
|
222
271
|
))}
|
|
223
272
|
</div>
|
|
@@ -240,27 +289,14 @@ const More = observer(({ rv }: { rv: ReviewSt }) => {
|
|
|
240
289
|
/** a row's band with the parties the page polls (review/band.ts): an agent's move splits by whether a live agent works it */
|
|
241
290
|
const bandOfRow = (rv: ReviewSt, r: ThreadRow): Band => rv.bandOfRow(r)
|
|
242
291
|
|
|
243
|
-
/** the rows under one band each, the bands in their order, the rows in the list's own */
|
|
244
|
-
const bandGroups = (rv: ReviewSt): { band: Band; rows: ThreadRow[] }[] => {
|
|
245
|
-
const by = new Map<Band, ThreadRow[]>()
|
|
246
|
-
for (const r of rv.rows) {
|
|
247
|
-
const b = bandOfRow(rv, r)
|
|
248
|
-
;(by.get(b) ?? by.set(b, []).get(b))?.push(r)
|
|
249
|
-
}
|
|
250
|
-
return BANDS.flatMap((band) => (by.has(band) ? [{ band, rows: by.get(band)! }] : []))
|
|
251
|
-
}
|
|
252
|
-
|
|
253
292
|
const laneBand = (lane: string | null): string => `lane:${lane ?? ''}`
|
|
254
293
|
|
|
255
|
-
/** a band's rows as drawn: all, or folded only the open one, so the thread he is on never leaves the list */
|
|
256
|
-
const shown = (rows: readonly ThreadRow[], folded: boolean, open: ThreadRow | null): readonly ThreadRow[] => (folded ? rows.filter((r) => r === open) : rows)
|
|
257
|
-
|
|
258
294
|
/** who acts now on the threads under it: his turn first, then what a live agent works, what waits for one, what is
|
|
259
295
|
* done; a click folds it. The waiting band says, by its grey light, who takes one */
|
|
260
296
|
const BandHeader = observer(({ rv, band, n }: { rv: ReviewSt; band: Band; n: number }) => (
|
|
261
297
|
<SectionHead hook="rv-turnhead" label={rv.bandWord(band)} n={n} tone={band === 'yours' ? 'var(--accent)' : undefined}
|
|
262
298
|
open={!rv.folded(`turn:${band}`)} onFold={() => rv.toggleFold(`turn:${band}`)} title={rv.folded(`turn:${band}`) ? `unfold ${rv.bandWord(band)}` : `fold ${rv.bandWord(band)}`}>
|
|
263
|
-
{band === 'waiting' && rv.can('lane') ? <span className="rv-bandwho light-nobody" role="img" aria-label={waitingWords(rv.partiesRepo || rv.host.name)}
|
|
299
|
+
{band === 'waiting' && rv.can('lane') ? <span className="rv-bandwho light-nobody" role="img" aria-label={waitingWords(rv.partiesRepo || rv.host.name)} {...tip(waitingWords(rv.partiesRepo || rv.host.name))}><i className="rv-light" aria-hidden /></span> : null}
|
|
264
300
|
</SectionHead>
|
|
265
301
|
))
|
|
266
302
|
|
|
@@ -271,8 +307,17 @@ const LaneHeader = observer(({ rv, lane, rows }: { rv: ReviewSt; lane: string |
|
|
|
271
307
|
|
|
272
308
|
const BACK = (iso: string): string => new Date(iso).toLocaleString([], { weekday: 'short', day: 'numeric', month: 'short', hour: '2-digit', minute: '2-digit' })
|
|
273
309
|
|
|
310
|
+
/** when a thread set aside comes back, as short as the row allows: the hour today, the weekday within the week, else
|
|
311
|
+
* the date; BACK says it whole on hover */
|
|
312
|
+
const backShort = (iso: string, now: number): string => {
|
|
313
|
+
const d = new Date(iso)
|
|
314
|
+
if (d.toDateString() === new Date(now).toDateString()) return d.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })
|
|
315
|
+
if (d.getTime() - now < 6 * 86_400_000) return d.toLocaleDateString([], { weekday: 'short' })
|
|
316
|
+
return d.toLocaleDateString([], { day: 'numeric', month: 'short' })
|
|
317
|
+
}
|
|
318
|
+
|
|
274
319
|
/** a thread of the list as the one thread row: the dot of who acts now only where no turn band says it */
|
|
275
|
-
const Row = observer(({ rv, r, on }: { rv: ReviewSt; r: ThreadRow; on: boolean }) => {
|
|
320
|
+
const Row = observer(({ rv, r, on, deaf }: { rv: ReviewSt; r: ThreadRow; on: boolean; deaf: boolean }) => {
|
|
276
321
|
const ref = useRef<HTMLDivElement & HTMLAnchorElement>(null)
|
|
277
322
|
useEffect(() => {
|
|
278
323
|
if (on) ref.current?.scrollIntoView({ block: 'nearest' })
|
|
@@ -282,17 +327,17 @@ const Row = observer(({ rv, r, on }: { rv: ReviewSt; r: ThreadRow; on: boolean }
|
|
|
282
327
|
// he just settled it: its place held, drawn done (dim, its check) until he opens another thread
|
|
283
328
|
const settled = rv.staying?.head === r.head
|
|
284
329
|
const words = [
|
|
285
|
-
r.versions > 1 ? <span className="rv-rowv"
|
|
286
|
-
r.rule ? <span
|
|
287
|
-
r.aside ? <span className="rv-rowaside"
|
|
288
|
-
...cursors.map((c) => <span key={c.who} className="rv-rowcursor" data-cursor={c.working !== undefined ? 'working' : 'seen'} title={c.working ?? 'read your newest word'}>{cursorWords(c, actorName(c.who, c.session, rv.parties))}</span>),
|
|
330
|
+
r.versions > 1 ? <span className="rv-rowv" {...tip(`${r.versions} versions in this thread`)}>v{r.versions}</span> : null,
|
|
331
|
+
r.rule ? <span {...tip(`raised by the auto rule ${r.rule}`)}>auto</span> : null,
|
|
332
|
+
r.aside ? <span className="rv-rowaside" {...tip(`${deferred !== null ? `deferred to ${deferred}` : `back ${BACK(r.aside.until)}`}${r.aside.moved ? ', an agent wrote since' : ''}`)}>{deferred !== null ? `deferred to ${deferred}` : `back ${backShort(r.aside.until, rv.now)}`}{r.aside.moved ? ', moved' : ''}</span> : null,
|
|
289
333
|
r.laneAsk ? <span className="rv-rowlane">{laneAskWords(r.laneAsk, r.holder ? { ...r.holder, at: '' } : null, rv.parties, rv.partiesRepo || rv.host.name)}</span> : null,
|
|
290
|
-
r.update?.state === 'broken' && !isOwnerWait(r.wait) ? <span className="rv-rowstate"
|
|
291
|
-
|
|
334
|
+
r.update?.state === 'broken' && !isOwnerWait(r.wait) ? <span className="rv-rowstate" {...tip(`${UPDATE_WORDS.broken}: ${r.update.text}`)}>broken</span> : null,
|
|
335
|
+
deaf ? <DeafMark why={deafThread(r.holder ? rv.hearingOf(r.holder).chip : null)} /> : null,
|
|
292
336
|
].filter((w) => w !== null)
|
|
293
337
|
const hint = [
|
|
294
338
|
r.holder ? `held by ${r.holder.lane ?? rv.hearingOf(r.holder).chip}` : null,
|
|
295
|
-
|
|
339
|
+
// who read his word or is on it reads here only: the row's one meta line keeps what he acts on
|
|
340
|
+
...cursors.map((c) => `${cursorWords(c, actorName(c.who, c.session, rv.parties))}${c.working ? `: ${c.working}` : ''}`),
|
|
296
341
|
r.versions > 1 ? `v${r.versions}` : null,
|
|
297
342
|
r.rule ? 'auto' : null,
|
|
298
343
|
r.aside ? (deferred !== null ? `deferred to ${deferred}` : `back ${BACK(r.aside.until)}`) : null,
|
|
@@ -301,6 +346,7 @@ const Row = observer(({ rv, r, on }: { rv: ReviewSt; r: ThreadRow; on: boolean }
|
|
|
301
346
|
<ThreadRowView
|
|
302
347
|
ref={ref}
|
|
303
348
|
head={r.head}
|
|
349
|
+
row={r.head}
|
|
304
350
|
title={r.title}
|
|
305
351
|
on={on}
|
|
306
352
|
muted={settled || (!on && !r.active && !isOwnerWait(r.wait))}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { observer } from 'mobx-react-lite'
|
|
5
5
|
import { useEffect } from 'react'
|
|
6
6
|
import { Panel, Separator } from 'react-resizable-panels'
|
|
7
|
-
import { KeptCols, LIST_COL, PANEL } from '../kept-cols.tsx'
|
|
7
|
+
import { KeptCols, LIST_COL, ListPlaceButton, PANEL } from '../kept-cols.tsx'
|
|
8
8
|
import { PaneBoundary } from '../pane-boundary.tsx'
|
|
9
9
|
import { PhoneTop } from './phone-top.tsx'
|
|
10
10
|
import type { ReviewHost } from './review-host.ts'
|
|
@@ -35,9 +35,9 @@ export const ReviewPage = observer(({ app }: { app: ReviewHost }) => {
|
|
|
35
35
|
return (
|
|
36
36
|
<>
|
|
37
37
|
<Toast rv={rv} />
|
|
38
|
-
<KeptCols id="review" folds={{ left: 'review-list' }} layout={app.home.layout}>
|
|
38
|
+
<KeptCols id="review" folds={{ left: 'review-list' }} layout={app.home.layout} placed>
|
|
39
39
|
<Panel id="review-list" {...LIST_COL} className="rv-pane" style={PANEL}>
|
|
40
|
-
<PaneBoundary pane="thread list" at={app.name}><ReviewList rv={rv} /></PaneBoundary>
|
|
40
|
+
<PaneBoundary pane="thread list" at={app.name}><ReviewList rv={rv} place={app.home.layout.placeOf('review')} tools={<ListPlaceButton layout={app.home.layout} id="review" />} /></PaneBoundary>
|
|
41
41
|
</Panel>
|
|
42
42
|
<Separator className="rsep" />
|
|
43
43
|
<Panel id="review-thread" defaultSize="76%" minSize={360} className="rv-pane" style={PANEL}>
|
|
@@ -11,7 +11,7 @@ import { OWNER_WAITS, waitsOfParam, type OwnerWait } from '../../../review/wait.
|
|
|
11
11
|
import type { Role } from '../../../review/role.ts'
|
|
12
12
|
import type { RepoSt } from '../repo-st.ts'
|
|
13
13
|
import { ADVISOR_WHO, type ReviewHost } from './review-host.ts'
|
|
14
|
-
import { BAND_WORDS, bandOf, type Band } from '../../../review/band.ts'
|
|
14
|
+
import { BAND_WORDS, BANDS, bandOf, type Band } from '../../../review/band.ts'
|
|
15
15
|
import { answeredAs, copyText, etagLoader, StoreWait, kept, threadPageLoader, postJson, TILE_H, ZOOMS, boxScale, isBoxZoom, type BoxZoom, type EtagLoader, type Zoom } from './review-kit.ts'
|
|
16
16
|
import { ThreadSt, type Draft } from './thread-st.ts'
|
|
17
17
|
import { ThreadViews } from './thread-views.ts'
|
|
@@ -20,7 +20,7 @@ import { ThreadViews } from './thread-views.ts'
|
|
|
20
20
|
const WARM_ROWS = 12
|
|
21
21
|
import { threadSource, StageSt, type StageFill } from '../social/stage-st.ts'
|
|
22
22
|
import { isPostRating } from '../../../identities/rating.ts'
|
|
23
|
-
import { sideOf,
|
|
23
|
+
import { sideOf, type SideList } from '../list-walk.ts'
|
|
24
24
|
import { hearingOf, NO_PARTIES, treeOf, type Hearing, type Holder, type Parties, type TreeRow } from '../../../review/parties.ts'
|
|
25
25
|
import { reach } from '../reach.ts'
|
|
26
26
|
|
|
@@ -36,6 +36,16 @@ export type RepoSpec = Spec & { role: Role | null; sources: string[]; auto: { id
|
|
|
36
36
|
|
|
37
37
|
/** below this width the page is the phone's: one pane at a time, the verdicts in a bar under the thumb */
|
|
38
38
|
export const PHONE_PX = 768
|
|
39
|
+
/** a thread column under this width is slim: a narrow window with the list beside it. Its cells keep a small side
|
|
40
|
+
* column and tight paddings (review.css .rv-thread.slim) */
|
|
41
|
+
export const SLIM_PX = 520
|
|
42
|
+
/** a thread column under this width is terse: its head's buttons are their icons alone, so they hold on one row
|
|
43
|
+
* (review.css .rv-thread.terse); a slim column is terse too */
|
|
44
|
+
export const TERSE_PX = 700
|
|
45
|
+
/** the cells scrolled past this: the thread's head is slim (review.css .rv-top.compact); back under SHALLOW_PX it is
|
|
46
|
+
* whole again */
|
|
47
|
+
export const DEEP_PX = 120
|
|
48
|
+
export const SHALLOW_PX = 8
|
|
39
49
|
/** the thread column at least this wide shows the contents strip beside the cells, else behind a button */
|
|
40
50
|
export const RAIL_PX = 1020
|
|
41
51
|
export type PhonePane = 'list' | 'thread'
|
|
@@ -195,6 +205,8 @@ export class ReviewSt {
|
|
|
195
205
|
sheet = false
|
|
196
206
|
/** the thread column's width, measured */
|
|
197
207
|
width = 0
|
|
208
|
+
/** the thread's cells are scrolled past its head's whole form (headScrolled) */
|
|
209
|
+
deep = false
|
|
198
210
|
/** what the last copy put on the clipboard, in words, shown a moment */
|
|
199
211
|
toast: string | null = null
|
|
200
212
|
/** an item file's public url once published, `sending` while it goes up; keyed `<id>/<file>` */
|
|
@@ -512,7 +524,7 @@ export class ReviewSt {
|
|
|
512
524
|
}
|
|
513
525
|
|
|
514
526
|
/** the open thread he just settled (a verdict, close as done, set aside, not doing it): its row keeps its place and
|
|
515
|
-
* its band, drawn settled, until he opens another thread, so
|
|
527
|
+
* its band, drawn settled, until he opens another thread, so ⇧↑ ⇧↓ step to its real neighbours; the counts move at
|
|
516
528
|
* once */
|
|
517
529
|
stay: { head: string; at: number; band: Band; row: ThreadRow } | null = null
|
|
518
530
|
|
|
@@ -578,9 +590,35 @@ export class ReviewSt {
|
|
|
578
590
|
return this.selectedId ?? this.pinned ?? this.rows[0]?.head ?? null
|
|
579
591
|
}
|
|
580
592
|
|
|
581
|
-
/** the rows
|
|
593
|
+
/** the rows under one band each, the bands in their order, the rows in the list's own */
|
|
594
|
+
get bandGroups(): { band: Band; rows: ThreadRow[] }[] {
|
|
595
|
+
const by = new Map<Band, ThreadRow[]>()
|
|
596
|
+
for (const r of this.rows) {
|
|
597
|
+
const b = this.bandOfRow(r)
|
|
598
|
+
;(by.get(b) ?? by.set(b, []).get(b))?.push(r)
|
|
599
|
+
}
|
|
600
|
+
return BANDS.flatMap((band) => (by.has(band) ? [{ band, rows: by.get(band)! }] : []))
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/** the groups the list draws, top to bottom, each under the key its head folds: the lanes, else the bands */
|
|
604
|
+
get groups(): { fold: string; rows: ThreadRow[] }[] {
|
|
605
|
+
return this.byLane ? this.laneGroups.map((g) => ({ fold: `lane:${g.lane ?? ''}`, rows: g.rows })) : this.bandGroups.map((g) => ({ fold: `turn:${g.band}`, rows: g.rows }))
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
/** every row in the order the list draws its groups, a folded group's rows included: N walks them */
|
|
582
609
|
get drawn(): ThreadRow[] {
|
|
583
|
-
return this.
|
|
610
|
+
return this.groups.flatMap((g) => g.rows)
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
/** a group's rows as drawn: all, or folded only the open one, so the thread he is on never leaves the list */
|
|
614
|
+
shownOf(fold: string, rows: readonly ThreadRow[]): readonly ThreadRow[] {
|
|
615
|
+
const open = this.openRow
|
|
616
|
+
return this.folded(fold) ? rows.filter((r) => r === open) : rows
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/** the rows on screen, top to bottom: what the list draws and what ⇧↑ ⇧↓ step (side) */
|
|
620
|
+
get visible(): ThreadRow[] {
|
|
621
|
+
return this.groups.flatMap((g) => [...this.shownOf(g.fold, g.rows)])
|
|
584
622
|
}
|
|
585
623
|
|
|
586
624
|
/** the first thread that waits on him below `from` in the list as drawn, else the first above it; never `from` */
|
|
@@ -736,21 +774,16 @@ export class ReviewSt {
|
|
|
736
774
|
/** the list's search field, `/` focuses it */
|
|
737
775
|
searchEl: HTMLInputElement | null = null
|
|
738
776
|
|
|
739
|
-
/** the list as
|
|
777
|
+
/** the list as column 2 (columns.ts): the rows on screen, in the order drawn */
|
|
740
778
|
get side(): SideList {
|
|
741
779
|
return sideOf({
|
|
742
|
-
ids: () => this.
|
|
780
|
+
ids: () => this.visible.map((r) => r.head),
|
|
743
781
|
current: () => this.openRow?.head ?? null,
|
|
744
782
|
open: (head) => this.pick(head),
|
|
745
783
|
filter: () => this.searchEl,
|
|
746
784
|
})
|
|
747
785
|
}
|
|
748
786
|
|
|
749
|
-
/** a step down (1) or up (-1) the list, as ↑ ↓ take it */
|
|
750
|
-
move(delta: 1 | -1): void {
|
|
751
|
-
stepSide(this.side, delta)
|
|
752
|
-
}
|
|
753
|
-
|
|
754
787
|
/** N: the next thread that waits on him after the open one, in the list as drawn, wrapping */
|
|
755
788
|
nextPending(): void {
|
|
756
789
|
const next = this.waitingAfter(this.openRow?.head ?? null)
|
|
@@ -764,6 +797,29 @@ export class ReviewSt {
|
|
|
764
797
|
if (this.width !== px) this.width = px
|
|
765
798
|
}
|
|
766
799
|
|
|
800
|
+
/** the thread column is slim (SLIM_PX); not before it measured itself */
|
|
801
|
+
get slim(): boolean {
|
|
802
|
+
return this.width > 0 && this.width < SLIM_PX
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
/** the cells scrolled to `top`: past DEEP_PX the head takes its slim form, back at the top its whole one. The two
|
|
806
|
+
* bounds stand further apart than the head changes height, so its own change never flips it back */
|
|
807
|
+
headScrolled(top: number): void {
|
|
808
|
+
const deep = this.deep ? top >= SHALLOW_PX : top > DEEP_PX
|
|
809
|
+
if (deep !== this.deep) this.deep = deep
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
/** the head is slim: one line, its title and where the thread stands, the rest under the pointer. Never on a
|
|
813
|
+
* phone, where no pointer brings the rest back */
|
|
814
|
+
get compact(): boolean {
|
|
815
|
+
return this.deep && !this.phone.on
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
/** the thread column is terse (TERSE_PX) */
|
|
819
|
+
get terse(): boolean {
|
|
820
|
+
return this.width > 0 && this.width < TERSE_PX
|
|
821
|
+
}
|
|
822
|
+
|
|
767
823
|
/** the contents strip sits beside the cells */
|
|
768
824
|
get rail(): boolean {
|
|
769
825
|
return this.railOn && !this.phone.on && this.width >= RAIL_PX
|
|
@@ -932,8 +988,8 @@ export class ReviewSt {
|
|
|
932
988
|
}
|
|
933
989
|
|
|
934
990
|
/** the page's keys, as the atelier takes its own: true when it used the key. V or 1 approves, F or 2 ok with a fix,
|
|
935
|
-
* R or 3 rejects (each opens that face's
|
|
936
|
-
* compare mode of every pair (⇧D the one before);
|
|
991
|
+
* R or 3 rejects (each opens that face's popup, Enter sends) the newest open item that asks the owner's verdict (ThreadSt.judgeKey), N the next waiting thread, C copies the thread for an agent, M the rings, T the contents, D the next
|
|
992
|
+
* compare mode of every pair (⇧D the one before); ⇧↑ ⇧↓ the list are the hub's (columns.ts), so is W the thread wide (kept-cols.tsx); the thread takes
|
|
937
993
|
* the rest (ThreadSt.key). A digit is read from its physical key (`code`), so ⇧ and an AZERTY keyboard read the same */
|
|
938
994
|
key(e: Pick<KeyboardEvent, 'key' | 'shiftKey'> & { code?: string }): boolean {
|
|
939
995
|
// the stage popup takes its own keys
|