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
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
// the urls of the panel's project as a section of the main panel (panel-source.ts): each url a row under its env's
|
|
2
|
+
// caption (dev, prod, ext), its face its site's own picture (url-faces.ts). A plain click opens the url as it says (wiki tools/shipkit/urls.md,
|
|
3
|
+
// The page): a tab here, the identity's Chrome, or the hub's preview framing it. Its head's « + » adds a url, each
|
|
4
|
+
// row's « ⋯ » (and a rest on it) floats its acts. Read from the repo's own state: the rows follow it. The urls of the
|
|
5
|
+
// project's other places follow its own, each worn with its place
|
|
6
|
+
import { createElement } from 'react'
|
|
7
|
+
import { ICON } from './icons.tsx'
|
|
8
|
+
import type { HomeSt } from './home-st.ts'
|
|
9
|
+
import type { PanelSource, RowAct, RowActs, SourceGroup, SourceRow } from './panel-source.ts'
|
|
10
|
+
import { openTab, panelProfile, panelRepo, repoHref } from './panel-repo.ts'
|
|
11
|
+
import { UNIT_ICON } from './unit-icons.ts'
|
|
12
|
+
import { LoginForm, RemoveForm, UrlForm } from './url-forms.tsx'
|
|
13
|
+
import { letterOf, plateHue, urlFaces, type UrlFace } from './url-faces.ts'
|
|
14
|
+
import { frameRefusal, opensOf, seatOf, type Seat } from './urls-svc.ts'
|
|
15
|
+
import { isPlaceKey, placeBadge, placeHint, type PlaceRow } from './places-svc.ts'
|
|
16
|
+
import type { UrlRow } from '../../urls/rows.ts'
|
|
17
|
+
import type { PlaceUrl } from '../../urls/places.ts'
|
|
18
|
+
import { ADDED_FILE, URL_ENV_WORDS, URL_ENVS, type UrlEnv, type UrlOpens } from '../../urls/unit.ts'
|
|
19
|
+
|
|
20
|
+
/** the faces of a list, worked out once per list the hub answered */
|
|
21
|
+
const faces = new WeakMap<readonly UrlRow[], Map<string, UrlFace>>()
|
|
22
|
+
|
|
23
|
+
/** the url groups of the section, one an env: a caption each while the urls are of two envs or more */
|
|
24
|
+
const URL_GROUPS: SourceGroup[] = URL_ENVS.map((e) => ({ id: e, label: e, title: URL_ENV_WORDS[e] }))
|
|
25
|
+
|
|
26
|
+
/** a url's dim words: a dev url's port (its host when it has none); another's env, or none where its group's caption
|
|
27
|
+
* says the env, so its name keeps the room */
|
|
28
|
+
const hintOf = (url: string, env: UrlEnv, grouped: boolean): string => {
|
|
29
|
+
if (env !== 'dev') return grouped ? '' : env
|
|
30
|
+
try {
|
|
31
|
+
const u = new URL(url)
|
|
32
|
+
return u.port === '' ? u.hostname : `:${u.port}`
|
|
33
|
+
} catch {
|
|
34
|
+
return ''
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const seat = (home: HomeSt): Seat => seatOf(home.shell, globalThis.location ?? { hostname: 'localhost' })
|
|
39
|
+
|
|
40
|
+
/** a url of the panel's project in the main tab, framed on the urls page; one that never loads in a frame here opens
|
|
41
|
+
* as a tab of its own */
|
|
42
|
+
export function openUrl(home: HomeSt, id: string): void {
|
|
43
|
+
const r = panelRepo(home)
|
|
44
|
+
const u = r?.urls.list.find((x) => x.id === id)
|
|
45
|
+
if (r == null || u == null) return
|
|
46
|
+
if (globalThis.location != null && frameRefusal(u.url, globalThis.location) != null) {
|
|
47
|
+
const t = r.urls.tab(u)
|
|
48
|
+
return openTab(t.href, t.name, t.chips)
|
|
49
|
+
}
|
|
50
|
+
r.tree.bringing(() => r.showUrls(u.id))
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** a plain click on a url: what it opens (urls-svc.ts opensOf), a tab of the site alone, the identity's Chrome, or
|
|
54
|
+
* the preview. Chrome's refusal is said under the section's head */
|
|
55
|
+
export function clickUrl(home: HomeSt, id: string): void {
|
|
56
|
+
const r = panelRepo(home)
|
|
57
|
+
const u = r?.urls.list.find((x) => x.id === id)
|
|
58
|
+
if (r == null || u == null) return
|
|
59
|
+
const how = opensOf(u, seat(home))
|
|
60
|
+
if (how === 'frame') return openUrl(home, id)
|
|
61
|
+
r.urls.say({ words: '' })
|
|
62
|
+
if (how === 'tab') {
|
|
63
|
+
const t = r.urls.tab(u)
|
|
64
|
+
return openTab(t.href, t.name, t.chips)
|
|
65
|
+
}
|
|
66
|
+
void r.urls.chrome(u).then((s) => r.urls.say(s))
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** a url's acts: open it in a tab here, in the identity's Chrome, or preview it in the hub; what a plain click opens,
|
|
70
|
+
* the one in use ticked; a login into the vault; edit and remove for a url added here. A url a unit declares says
|
|
71
|
+
* where at the foot, read only */
|
|
72
|
+
export function urlActs(home: HomeSt, id: string): RowActs | null {
|
|
73
|
+
const r = panelRepo(home)
|
|
74
|
+
const u = r?.urls.list.find((x) => x.id === id)
|
|
75
|
+
if (r == null || u == null) return null
|
|
76
|
+
const where = seat(home)
|
|
77
|
+
const who = panelProfile(home)?.name ?? null
|
|
78
|
+
const chrome = who == null ? 'Chrome' : `${who}'s Chrome`
|
|
79
|
+
const away = where === 'remote' ? 'Chrome opens on the Mac that serves the hub, not on this device' : null
|
|
80
|
+
const tab = r.urls.tab(u)
|
|
81
|
+
const open: RowAct[] = [
|
|
82
|
+
{ id: 'tab', word: 'in a tab here', icon: ICON.newtab, what: `${tab.href}, the site alone in a tab${where === 'project' ? ' of this app' : ''}`, leaves: true, run: () => openTab(tab.href, tab.name, tab.chips) },
|
|
83
|
+
{ id: 'chrome', word: `in ${chrome}`, icon: ICON.browser, on: away == null, what: away ?? `a popup of ${who ?? 'the identity'}'s Chrome profile: its sign-ins and saved passwords, shared by every repo that speaks as it`, run: () => r.urls.chrome(u) },
|
|
84
|
+
{ id: 'frame', word: 'preview here', icon: ICON.urls, what: 'framed in the hub, its logins as chips above it', leaves: true, run: () => openUrl(home, u.id) },
|
|
85
|
+
]
|
|
86
|
+
const now = opensOf(u, where)
|
|
87
|
+
const choice = (x: UrlOpens, word: string, icon: string, what: string): RowAct =>
|
|
88
|
+
({ id: `opens:${x}`, word, icon, ticked: now === x, what, on: x !== 'chrome' || away == null, run: () => (now === x ? undefined : r.urls.choose(u.id, x)) })
|
|
89
|
+
const opens = [
|
|
90
|
+
choice('tab', 'a tab here', ICON.newtab, 'a plain click opens the site in a tab'),
|
|
91
|
+
choice('chrome', chrome, ICON.browser, away ?? `a plain click opens it in ${chrome}`),
|
|
92
|
+
choice('frame', 'preview here', ICON.urls, 'a plain click frames it in the hub'),
|
|
93
|
+
]
|
|
94
|
+
const added = u.file === ADDED_FILE
|
|
95
|
+
const login: RowAct = { id: 'login', word: 'add a login', icon: ICON.secrets, what: 'a name, an account and a password, into the vault: this page never keeps the password', form: ({ back, close }) => createElement(LoginForm, { app: r, u, back, close }) }
|
|
96
|
+
const own: RowAct[] = !added ? [] : [
|
|
97
|
+
{ id: 'edit', word: 'edit', icon: ICON.editor, what: `its url, its name, ${URL_ENVS.join(', ')}`, form: ({ close }) => createElement(UrlForm, { app: r, u, close }) },
|
|
98
|
+
{ id: 'remove', word: 'remove', icon: ICON.close, what: 'it leaves the list, its logins with it (asks first)', form: ({ back, close }) => createElement(RemoveForm, { app: r, u, back, close }) },
|
|
99
|
+
]
|
|
100
|
+
return {
|
|
101
|
+
groups: [{ acts: open }, { ask: 'opens on a click', acts: opens }, { acts: [login, ...own] }],
|
|
102
|
+
foot: added ? { text: `added here, kept in ${ADDED_FILE}`, what: 'the hub edits and removes it' } : { text: `declared in ${u.file}`, what: 'its url and name change in that file; a login can still be added here' },
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** a url of another place: a tab of its door address, or of the url itself off a loopback; one that opens nowhere
|
|
107
|
+
* here says why under the section's head */
|
|
108
|
+
function openPlaceUrl(home: HomeSt, key: string): void {
|
|
109
|
+
const r = panelRepo(home)
|
|
110
|
+
const p = r?.urls.places.url(key)
|
|
111
|
+
if (r == null || p == null) return
|
|
112
|
+
if (p.item.open == null) return r.urls.say({ words: `${p.item.label} on ${p.place.place}: ${p.item.why ?? 'it opens nowhere here'}`, bad: true })
|
|
113
|
+
r.urls.say({ words: '' })
|
|
114
|
+
openTab(p.item.open, `${p.item.label} · ${p.place.place}`)
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** a url of another place, as a row: its place on the corner and at its right (wiki tools/shipkit/urls.md, Every
|
|
118
|
+
* place's urls), after this machine's own rows */
|
|
119
|
+
export function placeUrlRow(p: PlaceRow<PlaceUrl>, now: number): SourceRow {
|
|
120
|
+
const u = p.item
|
|
121
|
+
const how = u.open == null ? `: ${u.why ?? 'it opens nowhere here'}` : u.open === u.url ? '' : ', through the door of the hq'
|
|
122
|
+
return {
|
|
123
|
+
id: p.key, label: u.label, plate: { text: letterOf(u.label), hue: plateHue(new URL(u.url).origin) }, badge: { text: placeBadge(p.place), ...(u.env === 'prod' ? { dot: true } : {}) },
|
|
124
|
+
hint: placeHint(p, now), title: `${u.label} on ${p.place.place}${p.silent ? ' (the hq does not hear it now: what it said last)' : ''}, ${u.env}: ${u.url}${how}`, href: u.open, lit: false, group: envOf(u.env),
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/** a place's env as one of this page's groups: a place on an older shipkit may say one this page does not know */
|
|
129
|
+
const envOf = (env: string): UrlEnv => ((URL_ENVS as readonly string[]).includes(env) ? (env as UrlEnv) : 'dev')
|
|
130
|
+
|
|
131
|
+
/** a url of another place's acts: a tab here, the one way it opens; where it is declared at the foot */
|
|
132
|
+
function placeUrlActs(home: HomeSt, key: string): RowActs | null {
|
|
133
|
+
const p = panelRepo(home)?.urls.places.url(key)
|
|
134
|
+
if (p == null) return null
|
|
135
|
+
const u = p.item
|
|
136
|
+
return {
|
|
137
|
+
groups: [{ acts: [{ id: 'tab', word: 'in a tab here', icon: ICON.newtab, on: u.open != null, what: u.open == null ? (u.why ?? 'it opens nowhere here') : `${u.open}${u.open === u.url ? '' : `, ${u.url} on ${p.place.place} through the door of the hq`}`, leaves: true, run: () => openPlaceUrl(home, key) }] }],
|
|
138
|
+
foot: { text: `declared on ${p.place.place}`, what: 'its url, its name and its logins change on that machine; no login crosses to here' },
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export const urlsSource = (home: HomeSt): PanelSource => ({
|
|
143
|
+
section: 'urls',
|
|
144
|
+
name: 'urls',
|
|
145
|
+
more: true,
|
|
146
|
+
get rows(): SourceRow[] {
|
|
147
|
+
const r = panelRepo(home)
|
|
148
|
+
if (r == null) return []
|
|
149
|
+
const list = r.urls.list
|
|
150
|
+
let face = faces.get(list)
|
|
151
|
+
if (face == null) faces.set(list, (face = urlFaces(list, (p) => r.url(p))))
|
|
152
|
+
const faceOf = face
|
|
153
|
+
const places = r.urls.places
|
|
154
|
+
// another place's url joins its env's group, its place on its corner and at its right
|
|
155
|
+
const grouped = new Set([...list.map((u) => u.env), ...places.urls.map((p) => envOf(p.item.env))]).size > 1
|
|
156
|
+
const own = list.map((u): SourceRow => {
|
|
157
|
+
const { unit, ...wears } = faceOf.get(u.id) ?? {}
|
|
158
|
+
return {
|
|
159
|
+
id: u.id, label: u.label, icon: unit == null ? ICON.urls : UNIT_ICON[unit], ...wears, hint: hintOf(u.url, u.env, grouped), title: u.env === 'dev' ? u.url : `${u.env}: ${u.url}`,
|
|
160
|
+
href: repoHref(home, r, { t: 'urls', id: u.id }), lit: r.isShown && r.sel?.t === 'urls' && r.sel.id === u.id, group: u.env,
|
|
161
|
+
}
|
|
162
|
+
})
|
|
163
|
+
// in the order drawn, an env's rows together, this machine's first: the nth key steps the rows as drawn
|
|
164
|
+
const rank = (row: SourceRow): number => URL_ENVS.indexOf(envOf(row.group ?? 'dev'))
|
|
165
|
+
return [...own, ...places.urls.map((p) => placeUrlRow(p, places.now))].map((row, i) => ({ row, i })).sort((a, b) => rank(a.row) - rank(b.row) || a.i - b.i).map((x) => x.row)
|
|
166
|
+
},
|
|
167
|
+
groups: URL_GROUPS,
|
|
168
|
+
get actions() {
|
|
169
|
+
const r = panelRepo(home)
|
|
170
|
+
return r == null ? [] : [{ id: 'add-url', label: 'add a url', icon: ICON.plus, title: 'add a url', form: (close: () => void) => createElement(UrlForm, { app: r, close }) }]
|
|
171
|
+
},
|
|
172
|
+
get note() {
|
|
173
|
+
return panelRepo(home)?.urls.note ?? ''
|
|
174
|
+
},
|
|
175
|
+
get empty() {
|
|
176
|
+
return 'no url yet: + adds one'
|
|
177
|
+
},
|
|
178
|
+
open: (row) => (isPlaceKey(row.id) ? openPlaceUrl(home, row.id) : clickUrl(home, row.id)),
|
|
179
|
+
tab(row) {
|
|
180
|
+
const r = panelRepo(home)
|
|
181
|
+
if (isPlaceKey(row.id)) {
|
|
182
|
+
const p = r?.urls.places.url(row.id)
|
|
183
|
+
return p?.item.open == null ? null : { href: p.item.open, name: `${p.item.label} · ${p.place.place}` }
|
|
184
|
+
}
|
|
185
|
+
const u = r?.urls.list.find((x) => x.id === row.id)
|
|
186
|
+
return r == null || u == null ? null : r.urls.tab(u)
|
|
187
|
+
},
|
|
188
|
+
acts: (row) => (isPlaceKey(row.id) ? placeUrlActs(home, row.id) : urlActs(home, row.id)),
|
|
189
|
+
})
|
|
@@ -61,8 +61,8 @@ export class LiveSvc {
|
|
|
61
61
|
private timer: ReturnType<typeof setInterval> | null = null
|
|
62
62
|
private inFlight = false
|
|
63
63
|
private started = false
|
|
64
|
-
/** the stream says a run moved (`runs`)
|
|
65
|
-
private readonly gate = new PollGate(() => this.st.home.push
|
|
64
|
+
/** the stream says a run moved (`runs`), a run whose process was killed included (serve/runs-stamp.ts) */
|
|
65
|
+
private readonly gate = new PollGate(() => this.st.home.push)
|
|
66
66
|
|
|
67
67
|
constructor(private st: RepoSt) {
|
|
68
68
|
this.chart = new ChartView(null, () => liveSource(this.view, this.now, this.st.timeline.data?.invocations ?? []))
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// (home-st.ts): the root reads it for the list's dots, and says loudly when the
|
|
6
6
|
// daemon behind the page does not answer. A hub serving on its own has none
|
|
7
7
|
// of this (HomeSt.machine is null).
|
|
8
|
-
import { computedStruct, makeAutoObservable, observableRef, runInAction } from 'mobx'
|
|
8
|
+
import { computedStruct, makeAutoObservable, observableRef, reaction, runInAction } from 'mobx'
|
|
9
9
|
import type { HomeAnswer, WidgetsAnswer } from '../../home/home-routes.ts'
|
|
10
10
|
import type { WidgetView } from '../../home/widgets.ts'
|
|
11
11
|
import type { WorkerView } from '../../home/hubs.ts'
|
|
@@ -19,6 +19,9 @@ import { LastAnswer, ownTrouble, reach, Unreachable } from './reach.ts'
|
|
|
19
19
|
import { PollGate } from './push-svc.ts'
|
|
20
20
|
|
|
21
21
|
export const MACHINE_POLL_MS = 1_500
|
|
22
|
+
/** while the stream is up, the pace of the reads of a machine that is not settled: a read failed, or pm starts or
|
|
23
|
+
* stops a process (the `pm` source says a move every 10 s at most) */
|
|
24
|
+
export const UNSETTLED_MS = 3_000
|
|
22
25
|
/** past the web's own wait on the daemon (serve-web.ts MACHINE_ANSWER_MS), so
|
|
23
26
|
* a hung daemon reads in its words, and a hung web still reads as down */
|
|
24
27
|
export const MACHINE_TIMEOUT_MS = 8_000
|
|
@@ -68,7 +71,14 @@ class Lasting {
|
|
|
68
71
|
}
|
|
69
72
|
}
|
|
70
73
|
|
|
71
|
-
export type MachineOpts = {
|
|
74
|
+
export type MachineOpts = {
|
|
75
|
+
reload?: () => void
|
|
76
|
+
timeoutMs?: number
|
|
77
|
+
quietMs?: number
|
|
78
|
+
/** the timer's tick and the pace of a machine not settled, for a test */
|
|
79
|
+
pollMs?: number
|
|
80
|
+
unsettledMs?: number
|
|
81
|
+
}
|
|
72
82
|
|
|
73
83
|
export class MachineSt {
|
|
74
84
|
data: HomeAnswer | null = null
|
|
@@ -106,6 +116,13 @@ export class MachineSt {
|
|
|
106
116
|
private widgetsPolling = false
|
|
107
117
|
/** `error` holds a poll's error, which the next good poll clears */
|
|
108
118
|
private pollError = false
|
|
119
|
+
/** the last read of the daemon, or of pm, failed or was a copy the web kept: asked again until one answers */
|
|
120
|
+
private failing = false
|
|
121
|
+
private pmFailing = false
|
|
122
|
+
/** how many views show a log's tail now (watchTails) */
|
|
123
|
+
private tails = 0
|
|
124
|
+
private pageWatch: (() => void) | null = null
|
|
125
|
+
private aheadWatch: (() => void) | null = null
|
|
109
126
|
private downFor: Lasting
|
|
110
127
|
private pmDownFor: Lasting
|
|
111
128
|
private readonly dataSeen = new LastAnswer()
|
|
@@ -123,7 +140,7 @@ export class MachineSt {
|
|
|
123
140
|
this.pm = k.pm
|
|
124
141
|
this.widgets = k.widgets
|
|
125
142
|
}
|
|
126
|
-
makeAutoObservable<this, 'st' | 'timer' | 'copiedTimer' | 'wasDown' | 'polling' | 'widgetsPolling' | 'pollError' | 'o' | 'kept' | 'keep' | 'downFor' | 'pmDownFor' | 'restartingFor' | 'dataSeen' | 'pmSeen'>(this, { dataSeen: false, pmSeen: false, st: false, clock: false, timer: false, copiedTimer: false, wasDown: false, polling: false, widgetsPolling: false, pollError: false, o: false, kept: false, keep: false, downFor: false, pmDownFor: false, restartingFor: false, data: observableRef, pm: observableRef, widgets: observableRef, resourceStatus: computedStruct })
|
|
143
|
+
makeAutoObservable<this, 'st' | 'timer' | 'copiedTimer' | 'wasDown' | 'polling' | 'widgetsPolling' | 'pollError' | 'o' | 'kept' | 'keep' | 'downFor' | 'pmDownFor' | 'restartingFor' | 'dataSeen' | 'pmSeen' | 'failing' | 'pmFailing' | 'tails' | 'pageWatch' | 'aheadWatch' | 'gate'>(this, { failing: false, pmFailing: false, tails: false, pageWatch: false, aheadWatch: false, gate: false, watchTails: false, dataSeen: false, pmSeen: false, st: false, clock: false, timer: false, copiedTimer: false, wasDown: false, polling: false, widgetsPolling: false, pollError: false, o: false, kept: false, keep: false, downFor: false, pmDownFor: false, restartingFor: false, data: observableRef, pm: observableRef, widgets: observableRef, resourceStatus: computedStruct })
|
|
127
144
|
}
|
|
128
145
|
|
|
129
146
|
/** the repo the page shows (the house repo under the wiki page), null on the overview and the plan */
|
|
@@ -177,13 +194,25 @@ export class MachineSt {
|
|
|
177
194
|
// a repo page asks its hub to load when it is down
|
|
178
195
|
if (this.repo != null && this.data != null) void this.hub(this.repo, 'ensure')
|
|
179
196
|
})
|
|
180
|
-
// the stream says
|
|
181
|
-
//
|
|
182
|
-
this.timer = setInterval(() => void (this.gate.due() && this.load()), MACHINE_POLL_MS)
|
|
197
|
+
// the stream says each thing the page shows of the machine when it moves (`machine`, `pm`, `widgets`, `logs`),
|
|
198
|
+
// so the timer reads only while the stream is down, or while the machine is not settled
|
|
199
|
+
this.timer = setInterval(() => void (this.gate.due() && this.load()), this.o.pollMs ?? MACHINE_POLL_MS)
|
|
200
|
+
// the widgets are read for the overview alone: it reads them as it opens
|
|
201
|
+
this.pageWatch = reaction(() => this.st.page === 'overview', (on) => { if (on) void this.load() })
|
|
202
|
+
// the read ahead of the other repos (HomeSt.prefetch) starts once the machine answered and the list is known,
|
|
203
|
+
// and goes on once the shown repo read its own first screen: no later read of the machine is there to start it
|
|
204
|
+
this.aheadWatch = reaction(() => this.fresh && this.st.projects.list.length > 0 && this.st.shown?.cols.loaded !== false, (go) => { if (go) void this.st.prefetch() })
|
|
183
205
|
this.clock.start()
|
|
184
206
|
}
|
|
185
207
|
|
|
186
|
-
|
|
208
|
+
/** a read failed, or pm is between two states of a process: what the next seconds change, with no notice to wait on */
|
|
209
|
+
private get unsettled(): boolean {
|
|
210
|
+
if (this.failing || this.pmFailing) return true
|
|
211
|
+
const moving = (s: string): boolean => s === 'starting' || s === 'stopping'
|
|
212
|
+
return this.pm != null && (this.pm.children.some((c) => moving(c.status)) || this.pm.resources.some((r) => moving(r.status)))
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
private readonly gate = new PollGate(() => this.st.push, Date.now, () => (this.unsettled ? (this.o.unsettledMs ?? UNSETTLED_MS) : null))
|
|
187
216
|
|
|
188
217
|
/** the stream said the machine moved: read it now */
|
|
189
218
|
moved(): void {
|
|
@@ -197,8 +226,33 @@ export class MachineSt {
|
|
|
197
226
|
if (this.timer != null) void this.loadPm()
|
|
198
227
|
}
|
|
199
228
|
|
|
229
|
+
/** the stream said a widget rendered something new: the overview reads them, alone */
|
|
230
|
+
movedWidgets(): void {
|
|
231
|
+
if (this.timer != null) this.readWidgets()
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/** the stream said a log moved: pm, which holds the tails, reads again while a view shows one */
|
|
235
|
+
movedLogs(): void {
|
|
236
|
+
if (this.timer != null && this.tails > 0) void this.loadPm()
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/** a view shows a log's tail from now until the call of what this returns: read now, then on each `logs` notice */
|
|
240
|
+
watchTails(): () => void {
|
|
241
|
+
this.tails++
|
|
242
|
+
if (this.timer != null) void this.loadPm()
|
|
243
|
+
let on = true
|
|
244
|
+
return () => {
|
|
245
|
+
if (on) this.tails--
|
|
246
|
+
on = false
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
200
250
|
stop(): void {
|
|
201
251
|
if (this.timer != null) clearInterval(this.timer)
|
|
252
|
+
this.pageWatch?.()
|
|
253
|
+
this.pageWatch = null
|
|
254
|
+
this.aheadWatch?.()
|
|
255
|
+
this.aheadWatch = null
|
|
202
256
|
this.clock.stop()
|
|
203
257
|
}
|
|
204
258
|
|
|
@@ -212,7 +266,9 @@ export class MachineSt {
|
|
|
212
266
|
if (j !== null) this.pm = j
|
|
213
267
|
this.pmDown = this.pmDownFor.show('')
|
|
214
268
|
})
|
|
269
|
+
this.pmFailing = false
|
|
215
270
|
} catch (e) {
|
|
271
|
+
this.pmFailing = true
|
|
216
272
|
// the last answer stays, its rows unknown (processGroups): the table keeps its lines
|
|
217
273
|
const shown = this.pmDownFor.show((e as Error).message)
|
|
218
274
|
runInAction(() => { this.pmDown = shown })
|
|
@@ -232,18 +288,21 @@ export class MachineSt {
|
|
|
232
288
|
}
|
|
233
289
|
}
|
|
234
290
|
|
|
291
|
+
/** never held on: a widget that answers late only shows late. Asked only
|
|
292
|
+
* while the overview shows: the daemon renders a widget for a reader,
|
|
293
|
+
* and a render can cost another machine an ssh session */
|
|
294
|
+
private readWidgets(): void {
|
|
295
|
+
if (this.widgetsPolling || this.st.page !== 'overview' || globalThis.document?.visibilityState === 'hidden') return
|
|
296
|
+
this.widgetsPolling = true
|
|
297
|
+
void this.loadWidgets().finally(() => { this.widgetsPolling = false })
|
|
298
|
+
}
|
|
299
|
+
|
|
235
300
|
async load(): Promise<void> {
|
|
236
301
|
// a stalled poll is not stacked on
|
|
237
302
|
if (this.polling) return
|
|
238
303
|
this.polling = true
|
|
239
304
|
const pm = this.loadPm()
|
|
240
|
-
|
|
241
|
-
// while the overview shows: the daemon renders a widget for a reader,
|
|
242
|
-
// and a render can cost another machine an ssh session
|
|
243
|
-
if (!this.widgetsPolling && this.st.page === 'overview' && globalThis.document?.visibilityState !== 'hidden') {
|
|
244
|
-
this.widgetsPolling = true
|
|
245
|
-
void this.loadWidgets().finally(() => { this.widgetsPolling = false })
|
|
246
|
-
}
|
|
305
|
+
this.readWidgets()
|
|
247
306
|
try {
|
|
248
307
|
const r = await reach('/api/home.json', { signal: AbortSignal.timeout(this.o.timeoutMs ?? MACHINE_TIMEOUT_MS) })
|
|
249
308
|
if (!r.ok) throw new Error(`/api/home.json answered ${r.status}: ${await r.text()}`)
|
|
@@ -255,6 +314,7 @@ export class MachineSt {
|
|
|
255
314
|
this.restarting = restarting
|
|
256
315
|
if (stale) this.down = down
|
|
257
316
|
})
|
|
317
|
+
this.failing = stale
|
|
258
318
|
if (stale) return
|
|
259
319
|
const back = this.wasDown
|
|
260
320
|
const cleared = this.pollError
|
|
@@ -275,6 +335,7 @@ export class MachineSt {
|
|
|
275
335
|
// left every surface on what it last read, and their next poll reads again
|
|
276
336
|
if (back) this.reload()
|
|
277
337
|
} catch (e) {
|
|
338
|
+
this.failing = true
|
|
278
339
|
const msg = (e as Error).message
|
|
279
340
|
if (e instanceof Unreachable) {
|
|
280
341
|
const who = e.who === 'web' ? 'web' : 'daemon'
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/* the window's frame: the project bar on top (the main app's alone), then the main panel, the entry's list and the page,
|
|
2
|
+
the dock under them (hub-app.tsx) */
|
|
3
|
+
#root:has(> .pbar){display:flex;flex-direction:column}
|
|
4
|
+
:root{--pbar-h:44px}
|
|
5
|
+
.pbar{flex:none}
|
|
6
|
+
/* the group sets its own height inline (100%): in the column it shrinks to what the bar leaves */
|
|
7
|
+
.pbar ~ .appv{flex:1 1 0;min-height:0}
|
|
8
|
+
.approw{display:flex;min-width:0}
|
|
9
|
+
.approw > .app{flex:1;min-width:0}
|
|
10
|
+
|
|
11
|
+
/* THE MAIN PANEL (main-panel.tsx): a labelled list at its kept width (layout-st MAIN, kept-width.tsx), its head on top, then its
|
|
12
|
+
sections, each under one head that folds (.sh), a folded one its entries as small icons (.mpicons); the accounts at
|
|
13
|
+
its foot */
|
|
14
|
+
.mpanel{flex:none;display:flex;flex-direction:column;width:100%;height:100%;background:var(--bg-side);border-right:1px solid var(--line);--rring:var(--bg-side)}
|
|
15
|
+
.mpscroll{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;padding-bottom:var(--s2)}
|
|
16
|
+
.mpscroll::-webkit-scrollbar{display:none}
|
|
17
|
+
.mpgroup{display:flex;flex-direction:column;padding:0 0 var(--s1)}
|
|
18
|
+
.mpgroup > .sh{margin-top:0}
|
|
19
|
+
.mpicons{display:flex;flex-wrap:wrap;gap:var(--s0);padding:var(--s1) var(--s2) 0}
|
|
20
|
+
.mpicell{display:block}
|
|
21
|
+
.mpicon{position:relative;display:grid;place-items:center;width:28px;height:26px;padding:0;background:none;border:0;border-radius:6px;color:var(--dim);text-decoration:none;cursor:pointer}
|
|
22
|
+
.mpicon .hico{width:15px;height:15px}
|
|
23
|
+
.mpicon:hover,.mpicon:focus-visible{background:var(--sel);outline:none;color:var(--ink)}
|
|
24
|
+
.mpicon.cur{background:color-mix(in srgb,var(--accent) 18%,transparent);box-shadow:inset 0 -2px 0 var(--accent);color:var(--ink)}
|
|
25
|
+
.mpicon.empty{opacity:.6}
|
|
26
|
+
.mpicon .rsecn,.mpicon .pjpill{position:absolute;top:0;right:0;min-width:12px;height:12px;padding:0 var(--s0);font-size:8px;line-height:12px}
|
|
27
|
+
.mpicon[data-key="sec:review"]{color:var(--review)}
|
|
28
|
+
.pjuse.compact{display:flex;flex-wrap:wrap;gap:var(--s1);border-bottom:0}
|
|
29
|
+
.pjuse.compact .pjacc{display:inline-flex}
|
|
30
|
+
.mpgroup .pjuse{border-bottom:0}
|
|
31
|
+
.mpline{position:relative;flex:none;display:flex;align-items:center;gap:var(--s2);width:100%;height:26px;padding:0 var(--s2) 0 var(--s3);background:none;border:0;border-radius:0;
|
|
32
|
+
color:var(--ink);font:inherit;font-size:13px;text-align:left;text-decoration:none;cursor:pointer}
|
|
33
|
+
.mpline .hico{flex:none;width:15px;height:15px;color:var(--dim)}
|
|
34
|
+
.mpline:hover,.mpline:focus-visible{background:var(--sel);outline:none}
|
|
35
|
+
.mpline.cur{background:color-mix(in srgb,var(--accent) 18%,transparent);box-shadow:inset 3px 0 0 var(--accent)}
|
|
36
|
+
.mpline.cur .hico{color:var(--ink)}
|
|
37
|
+
.mpline.empty .mpname,.mpline.empty .hico{color:var(--dim);opacity:.7}
|
|
38
|
+
/* the name wins the room: the dim words at its right give theirs up first */
|
|
39
|
+
.mpname{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
40
|
+
/* a line and its new tab button, shown on hover over its keys (main-panel.tsx clicks: ⌘ click, a middle click) */
|
|
41
|
+
.mprow{position:relative;display:flex}
|
|
42
|
+
.mpnew{position:absolute;right:var(--s1);top:50%;transform:translateY(-50%);display:none;place-items:center;width:20px;height:20px;border-radius:4px;color:var(--dim);background:var(--sel)}
|
|
43
|
+
.mpnew .hico{width:13px;height:13px}
|
|
44
|
+
.mpnew:hover{color:var(--ink)}
|
|
45
|
+
.mprow:hover .mpnew,.mpnew:focus-visible{display:grid}
|
|
46
|
+
/* a row's « ⋯ » (a source with `more`, the urls): its acts on a click; the new tab button steps left of it. Shown on
|
|
47
|
+
hover like the new tab, always on a device with no hover */
|
|
48
|
+
.mpmore{position:absolute;right:var(--s1);top:50%;transform:translateY(-50%);display:none;place-items:center;width:20px;height:20px;padding:0;border:0;border-radius:4px;color:var(--dim);background:var(--sel);font:700 13px/1 system-ui,sans-serif}
|
|
49
|
+
.mpmore:hover{color:var(--ink)}
|
|
50
|
+
.mpnew.bymore{right:calc(var(--s1) + 22px)}
|
|
51
|
+
.mprow:hover .mpmore,.mpmore:focus-visible{display:grid}
|
|
52
|
+
@media (hover:none){.mpmore{display:grid}}
|
|
53
|
+
.mprow:hover .mpcmd,.mprow:hover .mphint{visibility:hidden}
|
|
54
|
+
/* a source row's dim words (a port, prod, an age) and its state dot */
|
|
55
|
+
.mphint{flex:0 1000 auto;min-width:0;max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--dim);font-size:11px;font-variant-numeric:tabular-nums}
|
|
56
|
+
.mpdot{flex:none;width:6px;height:6px;margin-right:calc(-1 * var(--s1));border-radius:3px;background:var(--dim)}
|
|
57
|
+
.mpdot.run{background:var(--accent)}
|
|
58
|
+
.mpdot.ok{background:var(--ok)}
|
|
59
|
+
.mpdot.warn{background:var(--warn)}
|
|
60
|
+
.mpdot.red{background:var(--red)}
|
|
61
|
+
.mpdot.off{background:none;box-shadow:inset 0 0 0 1px var(--dim)}
|
|
62
|
+
/* a row whose state is its face (a process): a square where the icon goes, green up, grey down, warn and red as they
|
|
63
|
+
are; one that starts beats three times, then rests */
|
|
64
|
+
.mpsq{flex:none;width:12px;height:12px;margin:0 2px;border-radius:3px;background:var(--dim);opacity:.55}
|
|
65
|
+
.mpsq.ok{background:var(--ok);opacity:1}
|
|
66
|
+
.mpsq.warn{background:var(--warn);opacity:1}
|
|
67
|
+
.mpsq.red{background:var(--red);opacity:1}
|
|
68
|
+
.mpsq.run{background:var(--accent);opacity:1;animation:pulse 1s ease-in-out 3}
|
|
69
|
+
@media (prefers-reduced-motion:reduce){.mpsq.run{animation:none}}
|
|
70
|
+
/* a source's groups (main-panel.tsx SourceRows, the urls by env): a dim caption, lowercase, over its rows; folded, one
|
|
71
|
+
line a group, its caption, its small icons on that one line (what does not fit is clipped, its count says how
|
|
72
|
+
many), its count at the end */
|
|
73
|
+
.mpsub{display:flex;align-items:baseline;gap:var(--s1);padding:var(--s1) var(--s2) 0 var(--s3);color:var(--dim);font-size:10.5px;line-height:14px;cursor:default}
|
|
74
|
+
.mpsubn{color:var(--dim);font-size:10px;opacity:.75;font-variant-numeric:tabular-nums}
|
|
75
|
+
.mpicons > .mpsubline{flex:0 0 100%}
|
|
76
|
+
.mpsubline{display:flex;align-items:center;gap:var(--s1);min-width:0}
|
|
77
|
+
.mpsubline > .mpsub{flex:none;width:30px;padding:0}
|
|
78
|
+
.mpsubicons{flex:1;min-width:0;display:flex;gap:var(--s0);overflow:hidden}
|
|
79
|
+
.mpsubicons > .mpicell{flex:none}
|
|
80
|
+
.mpsubline > .mpsubn{flex:none}
|
|
81
|
+
/* a section head's own button (a source's action) */
|
|
82
|
+
.mpact{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:4px;color:var(--dim);cursor:pointer}
|
|
83
|
+
.mpact:hover{color:var(--ink);background:var(--sel)}
|
|
84
|
+
.mpact .hico{width:12px;height:12px}
|
|
85
|
+
/* a head action's choices, under its button; why a section's last act was refused, under its head */
|
|
86
|
+
.mpmenu{z-index:60}
|
|
87
|
+
.mpnote{padding:var(--s1) var(--s2);color:var(--warn);font-size:11px;line-height:1.35}
|
|
88
|
+
.mpempty{padding:var(--s1) var(--s2) var(--s1) var(--s3);color:var(--dim);font-size:11px;line-height:1.35}
|
|
89
|
+
.mpline .pjkey{display:none}
|
|
90
|
+
:root[data-alt] .mpline .pjkey{display:inline-block}
|
|
91
|
+
/* a key hint of the panel, a row's and a section head's alike: bare words, no chip, no border, never bold, one step
|
|
92
|
+
under the dim token (in a tinted panel --pt-dim) by ONE mix toward the panel's own background, in every theme: a
|
|
93
|
+
hint is a reminder, not content, so a column of them stays quiet beside the names */
|
|
94
|
+
.mpcmd{flex:none;font:inherit;font-size:10px;font-weight:400;letter-spacing:0;color:color-mix(in srgb,var(--dim) 62%,var(--bg-side));background:none;border:0;border-radius:0;padding:0}
|
|
95
|
+
:root[data-alt] .mpline .mpcmd{display:none}
|
|
96
|
+
.mpno{width:15px}
|
|
97
|
+
/* a source row's face (row-face.tsx), open and folded alike: its image on a white tile (--recink, white on every theme), read in the light scheme so a dark mark shows on any theme, else
|
|
98
|
+
its letter on a hue (project-list.css .pgi), else its svg icon, in a tone of its own where it has one (a Claude
|
|
99
|
+
session's spark in orange); never an emoji, so every face is one box with no baseline. A corner badge tells rows of
|
|
100
|
+
one face apart (the letters at the bottom right, a prod url's dot at the top right) */
|
|
101
|
+
.mpface{position:relative;flex:none;display:grid;place-items:center;width:16px;height:16px}
|
|
102
|
+
.mpface img,.mpface .pgi{width:16px;height:16px;border-radius:4px}
|
|
103
|
+
.mpface img{object-fit:contain;background:var(--recink);color-scheme:light}
|
|
104
|
+
.mpface.claude,.mpface.claude .hico{color:var(--orange)}
|
|
105
|
+
.mpfbadge{position:absolute;right:-6px;bottom:-4px;min-width:9px;height:9px;padding:0 var(--s0);border-radius:4.5px;box-sizing:border-box;font:700 7.5px/9px ui-sans-serif,system-ui,sans-serif;
|
|
106
|
+
letter-spacing:-.2px;text-align:center;color:var(--bg-side);background:var(--ink);box-shadow:0 0 0 1px var(--bg-side)}
|
|
107
|
+
.mpfdot{position:absolute;right:-2px;top:-2px;width:5px;height:5px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 1.5px var(--bg-side)}
|
|
108
|
+
/* a folded row with a state is ONE mark (row-face.tsx): its face centred in a 26 px ring, 2 px, in the state's colour,
|
|
109
|
+
green up, warn and red as they are; a row with no face of its own, a dot in the same ring, so the wrap is a grid of
|
|
110
|
+
equal marks. One that starts beats three times, then rests. A stopped one dims WHOLE, its ring grey and its face at
|
|
111
|
+
45 %, so up and down differ by more than a hue; red is a failure's alone */
|
|
112
|
+
.mpring{--ring:var(--dim);position:relative;flex:none;display:grid;place-items:center;width:26px;height:26px}
|
|
113
|
+
.mpring::before{content:'';position:absolute;inset:0;border:2px solid var(--ring);border-radius:50%}
|
|
114
|
+
.mpring.ok{--ring:var(--ok)}
|
|
115
|
+
.mpring.warn{--ring:var(--warn)}
|
|
116
|
+
.mpring.red{--ring:var(--red)}
|
|
117
|
+
.mpring.run{--ring:var(--accent)}
|
|
118
|
+
.mpring.off::before{opacity:.5}
|
|
119
|
+
.mpring.off > *{opacity:.45}
|
|
120
|
+
.mpring.run::before{animation:pulse 1s ease-in-out 3}
|
|
121
|
+
@media (prefers-reduced-motion:reduce){.mpring.run::before{animation:none}}
|
|
122
|
+
.mpringdot{width:10px;height:10px;border-radius:50%;background:var(--ring)}
|
|
123
|
+
/* in a ring a session's account number is read at a glance: bigger, on the ring's corner, the panel's colour around
|
|
124
|
+
it, so the ring never cuts a digit */
|
|
125
|
+
.mpring .mpfbadge{right:-8px;bottom:-8px;min-width:13px;height:13px;border-radius:6.5px;font-size:10.5px;line-height:13px;letter-spacing:0;box-shadow:0 0 0 1.5px var(--bg-side)}
|
|
126
|
+
/* a wrap that holds a ring gives every one of its cells the ring's room */
|
|
127
|
+
.mpicons:has(.mpring) .mpicon{width:30px;height:30px}
|
|
128
|
+
/* the threads: their own hue, so the eye finds them */
|
|
129
|
+
.mpline[data-key="sec:review"],.mpline[data-key="sec:review"] .hico{color:var(--review)}
|
|
130
|
+
.pbtip.red{color:var(--red)}
|
|
131
|
+
/* the panel's head (panel-head.tsx), fixed over the sections: the project's band in its window colour (--tint and
|
|
132
|
+
--tint-ink from tintOf, the panel's own shades with none), its mark, its name, one dim line; under it the identity,
|
|
133
|
+
a quieter line. No motion */
|
|
134
|
+
.mphead{flex:none;display:flex;flex-direction:column;border-bottom:1px solid var(--line)}
|
|
135
|
+
.mpband{display:flex;align-items:center;gap:var(--s2);min-width:0;overflow:hidden;padding:var(--s2);background:var(--tint,var(--panel2));color:var(--tint-ink,var(--ink))}
|
|
136
|
+
.mpbmark{flex:none;display:grid;place-items:center;width:30px;height:30px}
|
|
137
|
+
.mpbmark img,.mpbmark .pgi{width:30px;height:30px;border-radius:7px}
|
|
138
|
+
.mpbmark .pgi{font-size:15px;font-weight:700;color:var(--recink);background:var(--c);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--recink) 18%,transparent)}
|
|
139
|
+
.mpbmark .hico{width:20px;height:20px}
|
|
140
|
+
.mpbtext{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
|
|
141
|
+
.mpbname,.mpbsub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
142
|
+
.mpbname{font-size:15px;font-weight:700}
|
|
143
|
+
.mpbsub{font-size:11px;opacity:.72}
|
|
144
|
+
.mpprofile{font-size:12px;color:var(--dim)}
|
|
145
|
+
.mpprofile .pjav{width:16px;height:16px;border-radius:8px}
|
|
146
|
+
.mpprofile .pjavi{font-size:9px}
|
|
147
|
+
.mpfoot{flex:none;display:flex;flex-direction:column;border-top:1px solid var(--line)}
|
|
148
|
+
.ftip .pjkey{display:inline-block;margin-left:var(--s2)}
|
|
149
|
+
/* a row's acts (row-acts.tsx), in place of its tip: the tip's words at the head, then its acts in groups, each an icon
|
|
150
|
+
and its word; it floats, so nothing under it moves */
|
|
151
|
+
.rowacts{width:280px;max-width:min(280px,90vw);padding:var(--s1) var(--s2) var(--s2);font:11.5px/1.4 system-ui,sans-serif}
|
|
152
|
+
.rahead{display:flex;align-items:baseline;gap:var(--s2)}
|
|
153
|
+
.rahead .pjkey{flex:none;margin-left:auto}
|
|
154
|
+
.ragroup{display:flex;flex-wrap:wrap;gap:var(--s1);margin-top:var(--s2)}
|
|
155
|
+
.ragroup + .ragroup{padding-top:var(--s2);border-top:1px solid var(--line)}
|
|
156
|
+
.raask{flex:1 0 100%;color:var(--dim)}
|
|
157
|
+
.raact{display:inline-flex;align-items:center;gap:var(--s1);height:24px;padding:0 var(--s2);border:1px solid var(--line);border-radius:4px;background:var(--panel);color:var(--ink);font-size:12px;cursor:pointer}
|
|
158
|
+
.raact .hico{width:13px;height:13px;flex:none}
|
|
159
|
+
.raact:hover:not([aria-disabled]),.raact:focus-visible{border-color:var(--accent);outline:none}
|
|
160
|
+
.raact[aria-disabled]{opacity:.45;cursor:default}
|
|
161
|
+
.raact.ticked{border-color:var(--accent);color:var(--accent)}
|
|
162
|
+
.raact[data-act="stop"]:hover:not([aria-disabled]){border-color:var(--red);color:var(--red)}
|
|
163
|
+
.rasaid{margin-top:var(--s2);color:var(--dim)}
|
|
164
|
+
.rasaid.bad{color:var(--red)}
|
|
165
|
+
.rafoot{display:block;margin-top:var(--s2);color:var(--dim);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
166
|
+
|
|
167
|
+
/* a project's app: the main panel wears the shared panel tint (panel-tint.css, ptint); the dock's bar the full colour
|
|
168
|
+
(tintOf), every shade of it derived from it and its ink */
|
|
169
|
+
.mpanel.ptint .mpline.cur,.mpanel.ptint .mpicon.cur{background:var(--pt-cur)}
|
|
170
|
+
.mpanel.ptint .mpline.empty .mpname,.mpanel.ptint .mpline.empty .hico,.mpanel.ptint .mpicon.empty{opacity:1}
|
|
171
|
+
.mpanel.ptint .mpline[data-key="sec:review"],.mpanel.ptint .mpline[data-key="sec:review"] .hico,.mpanel.ptint .mpicon[data-key="sec:review"]{color:var(--ink)}
|
|
172
|
+
.pdock.tinted .dhead{
|
|
173
|
+
--bg-side:var(--tint);--bg-dock:var(--tint);--panel:var(--tint);--rring:var(--tint);
|
|
174
|
+
--panel2:color-mix(in srgb,var(--tint) 86%,var(--tint-ink));--sel:color-mix(in srgb,var(--tint) 76%,var(--tint-ink));
|
|
175
|
+
--ink:var(--tint-ink);--dim:color-mix(in srgb,var(--tint-ink) 72%,var(--tint));--line:color-mix(in srgb,var(--tint-ink) 22%,var(--tint));
|
|
176
|
+
--accent:var(--tint-ink);background:var(--tint);color:var(--ink)}
|
|
177
|
+
|
|
178
|
+
/* THE PROJECT BAR (project-bar.tsx): one row, the house then every repo by identity. It
|
|
179
|
+
scrolls sideways with no bar; a count sits inside its tile, so it never covers the next one */
|
|
180
|
+
.pbar{display:flex;align-items:center;gap:var(--s2);height:var(--pbar-h);padding:0 var(--s2);background:var(--bg-side);border-bottom:1px solid var(--line)}
|
|
181
|
+
.pbscroll{flex:1;min-width:0;display:flex;align-items:center;gap:var(--s1);height:100%;overflow-x:auto;scrollbar-width:none}
|
|
182
|
+
.pbscroll::-webkit-scrollbar{display:none}
|
|
183
|
+
.pbgroup{display:flex;align-items:center;gap:2px;padding-left:var(--s1);border-left:1px solid var(--line)}
|
|
184
|
+
.pbcell{flex:none;display:block}
|
|
185
|
+
.pbtile{position:relative;display:grid;place-items:center;width:40px;height:38px;padding:0;background:none;border:0;border-radius:8px;cursor:pointer;color:var(--dim)}
|
|
186
|
+
.pbtile img,.pbtile .pgi{width:28px;height:28px;border-radius:7px}
|
|
187
|
+
.pbtile .pgi{font-size:13px}
|
|
188
|
+
.pbtile .hico{width:22px;height:22px}
|
|
189
|
+
.pbtile:hover{background:color-mix(in srgb,var(--ink) 7%,transparent)}
|
|
190
|
+
.pbtile.cur{background:color-mix(in srgb,var(--accent) 14%,transparent);box-shadow:inset 0 -2px 0 var(--accent)}
|
|
191
|
+
.pbtile.dim:not(.cur):not(:hover) :is(img,.pgi){opacity:.55}
|
|
192
|
+
.pbtile .pjpill{position:absolute;top:1px;right:1px;box-shadow:0 0 0 2px var(--bg-side)}
|
|
193
|
+
.pbtile .pgs{left:6px;right:6px;top:auto;bottom:1px;width:auto;height:2px}
|
|
194
|
+
.pbtile .pgd,.pbtile .pgw{position:absolute;left:3px;top:3px}
|
|
195
|
+
.pbtile.dragging{opacity:.4}
|
|
196
|
+
.pbtip{max-width:280px;margin-top:2px;color:var(--dim);font-size:11px;white-space:normal}
|
|
197
|
+
.pbtile.dropb::before,.pbtile.dropa::after{content:'';position:absolute;top:4px;bottom:4px;width:2px;border-radius:1px;background:var(--accent);pointer-events:none}
|
|
198
|
+
.pbtile.dropb::before{left:-2px}
|
|
199
|
+
.pbtile.dropa::after{right:-2px}
|
|
200
|
+
|
|
201
|
+
/* a repo's head line, one row at any width: who works there (orchestrator.css .pl-line), then the repo's tools and
|
|
202
|
+
the severity filter's button at the right */
|
|
203
|
+
.repohead{flex:none;display:flex;align-items:center;gap:var(--s2);min-width:0;border-bottom:1px solid var(--line)}
|
|
204
|
+
.repohead > .pl-line{flex:1;min-width:0;border-bottom:0}
|
|
205
|
+
.rhtools{flex:none;display:flex;align-items:center;gap:var(--s2);margin-left:auto;padding:var(--s1) var(--s2)}
|
|
206
|
+
|
|
207
|
+
/* a phone: the bar and a narrower main panel, no list (tree-svc.ts list), the page */
|
|
208
|
+
@media (max-width:767px){
|
|
209
|
+
.mpanel{width:132px}
|
|
210
|
+
.mpline{padding-left:var(--s2)}
|
|
211
|
+
}
|