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,195 @@
|
|
|
1
|
+
// a section of the main panel that another module provides (main-panel.tsx draws it, panel-walk.ts walks it): the
|
|
2
|
+
// terminals, the Claude Code sessions, the processes, the urls: what runs or is live and opened often. A source is live state (MobX): its rows
|
|
3
|
+
// and counts are read in a render or a computed, so the panel follows them. The panel gives every source the same
|
|
4
|
+
// head (caret, name, count, its actions), the same fold kept per browser, the small icons while folded, ⌘↑ ⌘↓ over
|
|
5
|
+
// its rows and a new tab on ⌘ click, a middle click or the row's own button. One file lists the sources: PANEL_SOURCES
|
|
6
|
+
import type { ReactNode } from 'react'
|
|
7
|
+
import type { TabChips } from './app-bridge.ts'
|
|
8
|
+
import type { HomeSt } from './home-st.ts'
|
|
9
|
+
import { urlsSource } from './live-sources.ts'
|
|
10
|
+
import { claudeSource, processesSource, terminalsSource } from './terminal-sources.tsx'
|
|
11
|
+
|
|
12
|
+
/** the sections a source provides, in no order (rail-groups.ts PANEL_SECTIONS places them) */
|
|
13
|
+
export type SourceSection = 'terminals' | 'claude' | 'processes' | 'urls'
|
|
14
|
+
|
|
15
|
+
/** a row's state, its dot: running, ok, waits on him, failed, stopped */
|
|
16
|
+
export type RowState = 'run' | 'ok' | 'warn' | 'red' | 'off'
|
|
17
|
+
|
|
18
|
+
export type SourceRow = {
|
|
19
|
+
/** unique in its source; the panel's key of the row is `src:<section>:<id>` */
|
|
20
|
+
id: string
|
|
21
|
+
label: string
|
|
22
|
+
/** the path of its icon (icons.tsx ICON's form); none: the section's */
|
|
23
|
+
icon?: string
|
|
24
|
+
/** its icon in a colour of its own in place of the row's ink: `claude`, Claude Code's orange */
|
|
25
|
+
tone?: 'claude'
|
|
26
|
+
/** a picture in place of the icon: an image of the hub's own origin, drawn at 16 px (64 px or an svg stays
|
|
27
|
+
* sharp); one that does not load leaves the plate, else the icon */
|
|
28
|
+
image?: string
|
|
29
|
+
/** with no image, a letter on a plate in place of the icon */
|
|
30
|
+
plate?: SourcePlate
|
|
31
|
+
/** a small mark on the corner of the icon, the image or the plate (row-face.tsx draws the three) */
|
|
32
|
+
badge?: SourceBadge
|
|
33
|
+
state?: RowState
|
|
34
|
+
/** its state is its face: a square in the state's colour where the icon goes, and no icon of the section. Its
|
|
35
|
+
* own image, icon or plate, where it has one, shows small after the square */
|
|
36
|
+
square?: boolean
|
|
37
|
+
/** dim words at the row's right: a port, an age, a percent */
|
|
38
|
+
hint?: string
|
|
39
|
+
/** the words on hover */
|
|
40
|
+
title?: string
|
|
41
|
+
/** its page, a real address that loads that page alone with the main panel (the main tab shows it, a new tab
|
|
42
|
+
* opens it); null for a row that opens nowhere here (another place's url behind a closed door): no new tab */
|
|
43
|
+
href: string | null
|
|
44
|
+
/** its key, shown at the row's right (keys.ts owns the binding) */
|
|
45
|
+
key?: string
|
|
46
|
+
/** its page is the one shown */
|
|
47
|
+
lit: boolean
|
|
48
|
+
/** the id of its group among the source's `groups` */
|
|
49
|
+
group?: string
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** a group of a source's rows (the urls by env): a dim caption over its rows, drawn only while the rows fall in two
|
|
53
|
+
* groups or more. Folded, the section keeps one line a group: its caption, its rows' small icons, its count */
|
|
54
|
+
export type SourceGroup = { id: string; label: string; title: string }
|
|
55
|
+
|
|
56
|
+
/** a letter on one of the six kind hues, 1 to 6 (the project letter plates' look). The hue is not optional: a plate
|
|
57
|
+
* is never bare text, so no emoji is drawn where an icon goes */
|
|
58
|
+
export type SourcePlate = { text: string; hue: number }
|
|
59
|
+
|
|
60
|
+
/** `text`: a letter or two at the bottom right, what tells this row from the ones that look like it (a url among
|
|
61
|
+
* its site's, a session's account); `dot`: a dot at the top right (a prod url) */
|
|
62
|
+
export type SourceBadge = { text?: string; dot?: boolean }
|
|
63
|
+
|
|
64
|
+
/** a small button on the section's head, with its menu when it has several choices */
|
|
65
|
+
export type SourceAction = {
|
|
66
|
+
id: string
|
|
67
|
+
label: string
|
|
68
|
+
icon: string
|
|
69
|
+
title?: string
|
|
70
|
+
/** the click; absent for an action that is its menu or its form */
|
|
71
|
+
run?: () => void
|
|
72
|
+
/** its choices, drawn by the panel in a menu under the button in place of `run`; `close` shuts the menu. null:
|
|
73
|
+
* nothing to choose now, the click is `run` */
|
|
74
|
+
menu?: (close: () => void) => ReactNode
|
|
75
|
+
/** words he types first (a url to add): a box under the button, the focus in it, closed by Escape or its own
|
|
76
|
+
* buttons alone, never by a press outside */
|
|
77
|
+
form?: (close: () => void) => ReactNode
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface PanelSource {
|
|
81
|
+
readonly section: SourceSection
|
|
82
|
+
/** the head's name, in words */
|
|
83
|
+
readonly name: string
|
|
84
|
+
readonly rows: readonly SourceRow[]
|
|
85
|
+
/** its groups in order; the rows come group by group, so the keys step them as they are drawn */
|
|
86
|
+
readonly groups?: readonly SourceGroup[]
|
|
87
|
+
/** the head's count; the number of rows when absent */
|
|
88
|
+
readonly count?: number
|
|
89
|
+
readonly actions?: readonly SourceAction[]
|
|
90
|
+
/** its rows are not known yet: the page of a row not found waits, and says nothing wrong meanwhile */
|
|
91
|
+
readonly loading?: boolean
|
|
92
|
+
/** why its last act was refused, said under its head; '' for none */
|
|
93
|
+
readonly note?: string
|
|
94
|
+
/** the dim line under its head while it has no row: what it would list, and how the first one is made */
|
|
95
|
+
readonly empty?: string
|
|
96
|
+
/** a click in the main tab: shows the row's page (its href) */
|
|
97
|
+
open(row: SourceRow): void
|
|
98
|
+
/** the row's page in the main tab, at `page:src:<section>:<id>` (sourceHref): the source draws it; none, the urls,
|
|
99
|
+
* whose rows open a page of the repo's own */
|
|
100
|
+
page?(row: SourceRow): ReactNode
|
|
101
|
+
/** what a new tab opens for the row (a ⌘ click, a middle click, its own button, ⌘T in a project's app) when that is
|
|
102
|
+
* not its page in the hub: a url's row opens its site alone, a terminal's its terminal alone. null or absent: its
|
|
103
|
+
* page (its href) */
|
|
104
|
+
tab?(row: SourceRow): RowTab | null
|
|
105
|
+
/** the row's acts: a flyout in place of its tip, its words then its acts as entries (row-acts.tsx), opened on the
|
|
106
|
+
* tips' rest or by ⌘↵ on the panel's selection. Read in a render, so it follows the row's state. null or absent:
|
|
107
|
+
* the plain tip */
|
|
108
|
+
acts?(row: SourceRow): RowActs | null
|
|
109
|
+
/** its rows carry a « ⋯ » that opens their acts on a click: a device with no hover finds them too */
|
|
110
|
+
readonly more?: boolean
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/** what an act said once it answered, shown in its flyout; `bad`: it was refused */
|
|
114
|
+
export type ActSaid = { words: string; bad?: boolean }
|
|
115
|
+
|
|
116
|
+
/** an act on a row, an entry of its flyout: its icon and its word, never an icon alone */
|
|
117
|
+
export type RowAct = {
|
|
118
|
+
id: string
|
|
119
|
+
word: string
|
|
120
|
+
icon: string
|
|
121
|
+
/** its tip: what it does, or why it is greyed */
|
|
122
|
+
what: string
|
|
123
|
+
/** false: greyed, its tip says why */
|
|
124
|
+
on?: boolean
|
|
125
|
+
/** the choice in use among its group's: drawn ticked */
|
|
126
|
+
ticked?: boolean
|
|
127
|
+
/** it shows another page or opens a tab: the flyout closes first */
|
|
128
|
+
leaves?: boolean
|
|
129
|
+
} & (
|
|
130
|
+
| {
|
|
131
|
+
/** the act; what it did, said in the flyout once it answers, or nothing to say */
|
|
132
|
+
run: () => void | Promise<ActSaid | null>
|
|
133
|
+
form?: undefined
|
|
134
|
+
}
|
|
135
|
+
| {
|
|
136
|
+
run?: undefined
|
|
137
|
+
/** words he types first: its form floats in the flyout in place of the acts and holds it open (row-acts.tsx);
|
|
138
|
+
* `back` returns to the acts, `close` closes the flyout */
|
|
139
|
+
form: (o: { back: () => void; close: () => void }) => ReactNode
|
|
140
|
+
}
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
/** a row's acts in groups, each led by `ask` where its acts answer a question; `foot`, a dim last line and its tip */
|
|
144
|
+
export type RowActs = { groups: { ask?: string; acts: RowAct[] }[]; foot?: { text: string; what: string } }
|
|
145
|
+
|
|
146
|
+
/** a tab that is not the row's page in the hub: its address, and the tab's name in a project's app where its page
|
|
147
|
+
* does not say it (a site names itself, a page of the hub names its tab by its own title); `chips`: a url's logins,
|
|
148
|
+
* worn in that tab's title bar */
|
|
149
|
+
export type RowTab = { href: string; name?: string; chips?: TabChips }
|
|
150
|
+
|
|
151
|
+
/** a source from the root: called once per hub page, the source it returns lives as long as the page */
|
|
152
|
+
export type SourceMaker = (home: HomeSt) => PanelSource
|
|
153
|
+
|
|
154
|
+
/** every source, by its section: a module adds its line here */
|
|
155
|
+
export const PANEL_SOURCES: Partial<Record<SourceSection, SourceMaker>> = { urls: urlsSource, terminals: terminalsSource, claude: claudeSource, processes: processesSource }
|
|
156
|
+
|
|
157
|
+
const made = new WeakMap<HomeSt, Map<SourceSection, PanelSource>>()
|
|
158
|
+
|
|
159
|
+
/** the source of a section on this page, made once; null when no module provides it */
|
|
160
|
+
export function sourceOf(home: HomeSt, section: SourceSection): PanelSource | null {
|
|
161
|
+
const make = PANEL_SOURCES[section]
|
|
162
|
+
if (make == null) return null
|
|
163
|
+
let all = made.get(home)
|
|
164
|
+
if (all == null) made.set(home, (all = new Map()))
|
|
165
|
+
let s = all.get(section)
|
|
166
|
+
if (s == null) all.set(section, (s = make(home)))
|
|
167
|
+
return s
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/** what a new tab opens for the row the page shows, when a source answers for it; null: the page itself */
|
|
171
|
+
export function shownTab(home: HomeSt): RowTab | null {
|
|
172
|
+
for (const section of Object.keys(PANEL_SOURCES) as SourceSection[]) {
|
|
173
|
+
const src = sourceOf(home, section)
|
|
174
|
+
if (src?.tab == null) continue
|
|
175
|
+
const row = src.rows.find((r) => r.lit)
|
|
176
|
+
const tab = row == null ? null : src.tab(row)
|
|
177
|
+
if (tab != null) return tab
|
|
178
|
+
}
|
|
179
|
+
return null
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/** the groups a source draws, each with the positions of its rows; null while its rows fall in one group or none, so
|
|
183
|
+
* the rows draw bare. A row of no known group draws in none: never lost, a group last of all */
|
|
184
|
+
export function drawnGroups(src: Pick<PanelSource, 'rows' | 'groups'>): { group: SourceGroup; at: number[] }[] | null {
|
|
185
|
+
if (src.groups == null) return null
|
|
186
|
+
const known = new Set(src.groups.map((g) => g.id))
|
|
187
|
+
const rest: SourceGroup = { id: '', label: 'other', title: 'rows of no group' }
|
|
188
|
+
const out = [...src.groups, rest]
|
|
189
|
+
.map((group) => ({ group, at: src.rows.flatMap((r, i) => ((group === rest ? !known.has(r.group ?? '') : r.group === group.id) ? [i] : [])) }))
|
|
190
|
+
.filter((g) => g.at.length > 0)
|
|
191
|
+
return out.length > 1 ? out : null
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/** the panel's key of a source's row */
|
|
195
|
+
export const sourceKey = (section: SourceSection, row: Pick<SourceRow, 'id'>): string => `src:${section}:${row.id}`
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/* A PANEL IN THE PROJECT'S COLOUR (panel-tint.ts): `ptint` with panelTintOf's style. Inside it the theme's tokens
|
|
2
|
+
read the shades, so its section heads (.sh, --bg-band) sit a step darker by themselves, hover is --sel, and the
|
|
3
|
+
counts read on its ink. A panel marks its active row with --pt-cur */
|
|
4
|
+
.ptint{--bg-side:var(--pt-bg);--panel:var(--pt-bg);--rring:var(--pt-bg);--bg-band:var(--pt-head);--sel:var(--pt-hover);--panel2:var(--pt-hover);
|
|
5
|
+
--ink:var(--pt-ink);--dim:var(--pt-dim);--line:var(--pt-line);--accent:var(--pt-ink);background:var(--pt-bg);color:var(--ink)}
|
|
6
|
+
.ptint .rsecn:not(.nred){color:var(--pt-bg);background:var(--pt-ink)}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// a panel in a project's colour, for any panel of a project's app (the main panel, the terminal's list): it wears the
|
|
2
|
+
// class `ptint` (panel-tint.css) and the custom properties panelTintOf sets inline. The shades come from the repo's
|
|
3
|
+
// window colour (core/panel-shades.ts), calmer than the window chrome, each ink chosen by its contrast
|
|
4
|
+
import type { CSSProperties } from 'react'
|
|
5
|
+
import { textOn } from '../../core/gui-color.ts'
|
|
6
|
+
import type { Theme } from '../../core/hub-theme.ts'
|
|
7
|
+
import { panelShades, THEME_BG } from '../../core/panel-shades.ts'
|
|
8
|
+
|
|
9
|
+
/** the full window colour and its ink (WCAG, textOn): the window chrome and the dock's bar wear it, a panel wears
|
|
10
|
+
* panelTintOf */
|
|
11
|
+
export const tintOf = (color: string | null | undefined): CSSProperties | undefined =>
|
|
12
|
+
color == null || !/^#[0-9a-fA-F]{6}$/.test(color) ? undefined : ({ '--tint': color, '--tint-ink': textOn(color) } as CSSProperties)
|
|
13
|
+
|
|
14
|
+
/** the class a tinted panel wears with panelTintOf's style */
|
|
15
|
+
export const PANEL_TINT = 'ptint'
|
|
16
|
+
|
|
17
|
+
/** a panel's tint for the theme shown: --pt-bg, --pt-head (section heads), --pt-hover, --pt-cur (the active row),
|
|
18
|
+
* --pt-ink, --pt-dim, --pt-line; undefined for no colour or one not #rrggbb */
|
|
19
|
+
export const panelTintOf = (color: string | null | undefined, theme: Theme): CSSProperties | undefined => {
|
|
20
|
+
if (color == null || !/^#[0-9a-fA-F]{6}$/.test(color)) return undefined
|
|
21
|
+
const p = panelShades(color, THEME_BG[theme])
|
|
22
|
+
return { '--pt-bg': p.bg, '--pt-head': p.head, '--pt-hover': p.hover, '--pt-cur': p.cur, '--pt-ink': p.ink, '--pt-dim': p.dim, '--pt-line': p.line } as CSSProperties
|
|
23
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// the main panel's rows as the keys see them (main-panel.tsx draws the same, columns.ts steps them): the profile first,
|
|
2
|
+
// then every entry section by section (PANEL_SECTIONS), a source's rows and a folded section's small icons included,
|
|
3
|
+
// the greyed ones too. A row is lit while its page shows, and no page lights two. The picker is a dialog, never a row
|
|
4
|
+
// of the walk. The entries' own keys (keys.ts) open here too: an entry's ⌘ letter, the terminal, the first Claude
|
|
5
|
+
// session, the nth url or process, a section's fold
|
|
6
|
+
import type { HomeSt } from './home-st.ts'
|
|
7
|
+
import type { EntryKeyId } from './keys.ts'
|
|
8
|
+
import { panelProfile, panelRepo } from './panel-repo.ts'
|
|
9
|
+
import type { HouseEntry } from './projects-svc.ts'
|
|
10
|
+
import { sourceKey, sourceOf, type SourceSection } from './panel-source.ts'
|
|
11
|
+
import { PANEL_SECTIONS, railKey, type PanelSection } from './rail-groups.ts'
|
|
12
|
+
import { shellUrl } from './shell.ts'
|
|
13
|
+
|
|
14
|
+
export { panelRepo }
|
|
15
|
+
|
|
16
|
+
/** the key of the profile row among the panel's `data-key` */
|
|
17
|
+
export const PROFILE_KEY = 'profile'
|
|
18
|
+
|
|
19
|
+
/** a row of the panel: its key, the section it sits in (null: the profile, over the sections), whether its page shows, how it opens */
|
|
20
|
+
export type PanelStep = { key: string; section: PanelSection | null; lit: () => boolean; open: () => void; /** a source row's address: two rows of one address are one page */ href?: string | null }
|
|
21
|
+
|
|
22
|
+
const SOURCES: ReadonlySet<PanelSection> = new Set<PanelSection>(['terminals', 'claude', 'processes', 'urls'])
|
|
23
|
+
|
|
24
|
+
/** the global entries the panel draws: the profile row is the way into the identities while it shows, so the
|
|
25
|
+
* « identities » entry stays only on a panel with no profile, and no page ever lights two rows */
|
|
26
|
+
export function panelHouse(home: HomeSt): HouseEntry[] {
|
|
27
|
+
const all = home.projects.houseEntries
|
|
28
|
+
return panelProfile(home) == null ? all : all.filter((e) => e !== 'identities')
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** the panel's rows top to bottom: the profile, then section by section */
|
|
32
|
+
export function panelSteps(home: HomeSt): PanelStep[] {
|
|
33
|
+
const s = home.projects
|
|
34
|
+
const r = panelRepo(home)
|
|
35
|
+
const out: PanelStep[] = []
|
|
36
|
+
const me = panelProfile(home)
|
|
37
|
+
if (me != null) out.push({ key: PROFILE_KEY, section: null, lit: () => s.identityLit() === me.id, open: () => s.onIdentity?.(me.id) })
|
|
38
|
+
for (const sec of PANEL_SECTIONS) {
|
|
39
|
+
if (sec === 'global') {
|
|
40
|
+
for (const e of panelHouse(home)) if (e !== 'picker') out.push({ key: `house:${e}`, section: sec, lit: () => s.houseLit(e), open: () => s.openHouse(e) })
|
|
41
|
+
} else if (SOURCES.has(sec)) {
|
|
42
|
+
const src = sourceOf(home, sec as SourceSection)
|
|
43
|
+
for (const row of src?.rows ?? []) out.push({ key: sourceKey(src!.section, row), section: sec, href: row.href, lit: () => row.lit, open: () => src!.open(row) })
|
|
44
|
+
} else if (r != null) {
|
|
45
|
+
for (const row of r.tree.rows) if (r.tree.sectionOf(row) === sec) out.push({ key: row.key, section: sec, lit: () => r.tree.lit(row), open: () => r.tree.open(row) })
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return onePerPage(out)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** one row a page, a guard on what a source gives: a row whose address an earlier row already has would light with it,
|
|
52
|
+
* and ⌘↓ would come back to the first and never pass. Such a row is no row of the walk */
|
|
53
|
+
export function onePerPage(rows: PanelStep[]): PanelStep[] {
|
|
54
|
+
const seen = new Set<string>()
|
|
55
|
+
return rows.filter((r) => r.href == null || (!seen.has(r.href) && seen.add(r.href) != null))
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** a project entry's ⌘ letter (keys.ts ENTRY_KEY): its line opened, as a click */
|
|
59
|
+
export function openEntry(home: HomeSt, id: EntryKeyId): void {
|
|
60
|
+
const r = panelRepo(home)
|
|
61
|
+
const row = r?.tree.rows.find((x) => x.key === railKey(id))
|
|
62
|
+
if (r != null && row != null) r.tree.click(row)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** the row of a source section shown, else its first, opened; false when the section has none */
|
|
66
|
+
function openShownOrFirst(home: HomeSt, section: SourceSection): boolean {
|
|
67
|
+
const src = sourceOf(home, section)
|
|
68
|
+
const row = src?.rows.find((x) => x.lit) ?? src?.rows[0]
|
|
69
|
+
if (src == null || row == null) return false
|
|
70
|
+
src.open(row)
|
|
71
|
+
return true
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** ⌘E: the terminal shown or the first; with no terminal row, in a project's app the terminal tab, else the panel */
|
|
75
|
+
export function openTerminal(home: HomeSt): void {
|
|
76
|
+
if (openShownOrFirst(home, 'terminals')) return
|
|
77
|
+
const r = panelRepo(home)
|
|
78
|
+
if (home.shell?.kind === 'project' && r != null) globalThis.open?.(shellUrl(r.name, 'terminal'), '_blank', 'noreferrer')
|
|
79
|
+
else if (home.terminal.available) home.terminal.toggle()
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/** ⌘O: the first Claude Code session */
|
|
83
|
+
export function openClaude(home: HomeSt): void {
|
|
84
|
+
const src = sourceOf(home, 'claude')
|
|
85
|
+
const row = src?.rows[0]
|
|
86
|
+
if (src != null && row != null) src.open(row)
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** ⌥n the nth url, ⌥⇧n the nth process, in their section's order */
|
|
90
|
+
export function openNth(home: HomeSt, section: 'urls' | 'processes', n: number): void {
|
|
91
|
+
const src = sourceOf(home, section)
|
|
92
|
+
const row = src?.rows[n - 1]
|
|
93
|
+
if (src != null && row != null) src.open(row)
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** ⌘← and ⌘→: the section that holds the panel's selection folds, or unfolds. The selection stays on its row, drawn as
|
|
97
|
+
* its small icon while folded, and the page does not move. The profile sits in no section: nothing folds */
|
|
98
|
+
export function foldHere(home: HomeSt, fold: boolean): void {
|
|
99
|
+
const s = home.projects
|
|
100
|
+
const section = panelSteps(home).find((x) => x.lit())?.section
|
|
101
|
+
if (section != null && s.folds.has(section) !== fold) s.toggleFold(section)
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** ⌘⇧ and a section's letter: the section folds, or unfolds; the selection stays where it is */
|
|
105
|
+
export function toggleSection(home: HomeSt, section: PanelSection): void {
|
|
106
|
+
home.projects.toggleFold(section)
|
|
107
|
+
}
|
|
@@ -37,13 +37,14 @@ export const PillRow = observer(({ items, className }: { items: PillItem[]; clas
|
|
|
37
37
|
const gap = Number.parseFloat(getComputedStyle(b).columnGap) || 0
|
|
38
38
|
st.set(fitCount(kids.map((k) => k.getBoundingClientRect().width), b.clientWidth, plus.getBoundingClientRect().width, gap))
|
|
39
39
|
}
|
|
40
|
-
// after every render
|
|
40
|
+
// after every render, and when the copy changes width with no render of the row: an age inside a box draws itself
|
|
41
41
|
useLayoutEffect(measure)
|
|
42
42
|
useLayoutEffect(() => {
|
|
43
43
|
const b = box.current
|
|
44
44
|
if (b == null || typeof ResizeObserver === 'undefined') return
|
|
45
45
|
const ro = new ResizeObserver(() => measure())
|
|
46
46
|
ro.observe(b)
|
|
47
|
+
if (probe.current != null) ro.observe(probe.current)
|
|
47
48
|
return () => ro.disconnect()
|
|
48
49
|
}, [])
|
|
49
50
|
const n = Math.min(st.n, items.length)
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// where each page of the home answers. A leaf: a module the root state reads (the picker through a panel source)
|
|
2
|
+
// takes the paths here, never from home-st.ts, which would close a cycle of imports
|
|
3
|
+
/** the address of each page of the home that is no repo's */
|
|
4
|
+
export const PLACE_PATH = { wiki: '/wiki', overview: '/', running: '/running', inbox: '/inbox', machines: '/machines', database: '/database', vault: '/vault', space: '/space', advisors: '/advisors', planned: '/planned', activity: '/activity', insights: '/insights', time: '/time', recordings: '/recordings', identities: '/identities', archived: '/archived' } as const
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// a repo's urls and processes on its other places (wiki tools/shipkit/urls.md, Every place's urls), as the hub page
|
|
2
|
+
// holds them: read from the home (`/api/home/places.json`), a row a url or a process, worn with its place. The one
|
|
3
|
+
// constraint a reader breaks first: a click opens the address the home gave (`open`), never one built here
|
|
4
|
+
import { makeAutoObservable, runInAction } from 'mobx'
|
|
5
|
+
import type { PlaceProcess, PlacesAnswer, PlaceUrl, RepoPlace } from '../../urls/places.ts'
|
|
6
|
+
import { reach } from './reach.ts'
|
|
7
|
+
|
|
8
|
+
/** a place the hq has not heard for this long reads silent: its rows are what it said last */
|
|
9
|
+
export const SILENT_MS = 60_000
|
|
10
|
+
|
|
11
|
+
/** a row of another place: `key` unique among a section's rows, `@<node>:<id>` */
|
|
12
|
+
export type PlaceRow<T> = { key: string; place: RepoPlace; silent: boolean; item: T }
|
|
13
|
+
|
|
14
|
+
export const placeKey = (node: string, id: string): string => `@${node}:${id}`
|
|
15
|
+
export const isPlaceKey = (id: string): boolean => id.startsWith('@')
|
|
16
|
+
|
|
17
|
+
export class PlacesSvc {
|
|
18
|
+
places: RepoPlace[] = []
|
|
19
|
+
/** why the list is empty, said in a row's tip; null when it read */
|
|
20
|
+
why: string | null = null
|
|
21
|
+
/** the home's clock at the read, to age each place */
|
|
22
|
+
now = 0
|
|
23
|
+
|
|
24
|
+
constructor(private repo: string) {
|
|
25
|
+
makeAutoObservable<this, 'repo'>(this, { repo: false })
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
async load(): Promise<void> {
|
|
29
|
+
try {
|
|
30
|
+
const r = await reach(`/api/home/places.json?${new URLSearchParams({ repo: this.repo })}`)
|
|
31
|
+
if (!r.ok) throw new Error(`${r.status} ${await r.text()}`)
|
|
32
|
+
const j = (await r.json()) as PlacesAnswer
|
|
33
|
+
runInAction(() => {
|
|
34
|
+
this.places = j.places
|
|
35
|
+
this.why = j.why
|
|
36
|
+
this.now = j.now
|
|
37
|
+
})
|
|
38
|
+
} catch (e) {
|
|
39
|
+
runInAction(() => {
|
|
40
|
+
this.places = []
|
|
41
|
+
this.why = `the other places did not load: ${(e as Error).message}`
|
|
42
|
+
})
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
private rows<T extends { id: string }>(of: (p: RepoPlace) => readonly T[]): PlaceRow<T>[] {
|
|
47
|
+
return this.places.flatMap((p) => of(p).map((item) => ({ key: placeKey(p.node, item.id), place: p, silent: this.now - p.seen > SILENT_MS, item })))
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
get urls(): PlaceRow<PlaceUrl>[] {
|
|
51
|
+
return this.rows((p) => p.urls)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
get processes(): PlaceRow<PlaceProcess>[] {
|
|
55
|
+
return this.rows((p) => p.processes)
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
url(key: string): PlaceRow<PlaceUrl> | null {
|
|
59
|
+
return this.urls.find((r) => r.key === key) ?? null
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
process(key: string): PlaceRow<PlaceProcess> | null {
|
|
63
|
+
return this.processes.find((r) => r.key === key) ?? null
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** a place's words at a row's right: its name, and while the hq does not hear it, since when (`mill 5m`) */
|
|
68
|
+
export const placeHint = (r: PlaceRow<unknown>, now: number): string => {
|
|
69
|
+
if (!r.silent) return r.place.place
|
|
70
|
+
const m = Math.round((now - r.place.seen) / 60_000)
|
|
71
|
+
return `${r.place.place} ${m < 60 ? `${m}m` : m < 1440 ? `${Math.round(m / 60)}h` : `${Math.round(m / 1440)}d`}`
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** the letters a place wears on a row's corner: the start of its machine's name */
|
|
75
|
+
export const placeBadge = (p: RepoPlace): string => p.machine.replace(/[^a-z0-9]/g, '').slice(0, 2) || '?'
|
|
@@ -9,6 +9,7 @@ import type { PlanRow } from '../../plan/planner.ts'
|
|
|
9
9
|
import { LAST_TONE, markOf, reasonWords, whenWords } from './planned-st.ts'
|
|
10
10
|
import type { RepoSt } from './repo-st.ts'
|
|
11
11
|
import { ageWords } from '../../core/words.ts'
|
|
12
|
+
import { tip } from './tips.ts'
|
|
12
13
|
|
|
13
14
|
const soonest = (a: PlanRow, b: PlanRow): number => (a.dueAt ?? Infinity) - (b.dueAt ?? Infinity) || a.check.localeCompare(b.check)
|
|
14
15
|
|
|
@@ -19,8 +20,8 @@ const PlanLine = observer(({ app, r }: { app: RepoSt; r: PlanRow }) => {
|
|
|
19
20
|
return (
|
|
20
21
|
<tr className={`pln m-${m.mark}`}>
|
|
21
22
|
<td className="plnwhen">{whenWords(r, now)}</td>
|
|
22
|
-
<td><a href="#"
|
|
23
|
-
<td className="dim"
|
|
23
|
+
<td><a href="#" {...tip(r.title ?? r.check)} onClick={(e) => { e.preventDefault(); app.timeline.openCheck(r.check) }}>{r.check}</a>{r.title != null ? <span className="dim"> {r.title}</span> : null}</td>
|
|
24
|
+
<td className="dim" {...tip(`rule: ${r.rule}\ninactive: ${r.inactive}`)}>{r.error != null ? <span className="tl red">{r.error}</span> : reasonWords(r)}</td>
|
|
24
25
|
<td>{r.last == null ? <span className="dim">never ran</span> : <span className={`tl ${LAST_TONE[r.last.status]}`}>{r.last.status}, {ageWords(r.last.at, now)}</span>}</td>
|
|
25
26
|
<td className="plnrun"><button className="ghost" disabled={running} onClick={() => void app.home.planned.run(r)}>{running ? <><span className="spin" />running</> : 'run now'}</button></td>
|
|
26
27
|
</tr>
|
|
@@ -28,7 +28,8 @@ export type PolledOpts<T> = {
|
|
|
28
28
|
landed?: (v: T, prev: T | undefined) => void
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
/** the tab is hidden: nobody sees a read or a tick, so a timer does neither */
|
|
32
|
+
export const hidden = (): boolean => globalThis.document?.visibilityState === 'hidden'
|
|
32
33
|
|
|
33
34
|
/** a read of a hub route that answers json, its `error` the words of a refusal */
|
|
34
35
|
export async function readJson<T>(url: string, init?: RequestInit): Promise<T> {
|
|
@@ -38,6 +39,15 @@ export async function readJson<T>(url: string, init?: RequestInit): Promise<T> {
|
|
|
38
39
|
return body
|
|
39
40
|
}
|
|
40
41
|
|
|
42
|
+
/** a read of a hub route whose 404 says the repo has none of it: `none` hears, in an action, whether it said so */
|
|
43
|
+
export async function readJsonNone<T>(url: string, none: (is: boolean) => void): Promise<T> {
|
|
44
|
+
const r = await reach(url)
|
|
45
|
+
const body = (await r.json()) as T & { error?: string }
|
|
46
|
+
runInAction(() => none(r.status === 404))
|
|
47
|
+
if (!r.ok) throw new Error(body.error ?? `HTTP ${r.status}`)
|
|
48
|
+
return body
|
|
49
|
+
}
|
|
50
|
+
|
|
41
51
|
export class PolledResource<T> {
|
|
42
52
|
value: T | undefined = undefined
|
|
43
53
|
/** why the last read failed, '' once one succeeds */
|
|
@@ -1,35 +1,40 @@
|
|
|
1
1
|
// who is live now (orchestrator/presence.ts), read once for every line on the page: the project page's line, the
|
|
2
2
|
// house strip. One store under the home, polled every 3 s while a line shows and the push stream is down
|
|
3
3
|
import { makeAutoObservable, runInAction } from 'mobx'
|
|
4
|
-
import type {
|
|
4
|
+
import type { AccountUsage } from '../../agent-time/accounts-usage.ts'
|
|
5
|
+
import type { ProjectPlaces } from '../../orchestrator/lead-shape.ts'
|
|
6
|
+
import type { OrchView } from '../../orchestrator/now.ts'
|
|
7
|
+
import type { SessionChip } from '../../orchestrator/sessions-shape.ts'
|
|
8
|
+
import { type Hearing, type Present, projectHearing } from '../../orchestrator/presence-shape.ts'
|
|
5
9
|
import { PolledResource } from './polled.ts'
|
|
6
10
|
import type { PollGate } from './push-svc.ts'
|
|
7
11
|
import { reach } from './reach.ts'
|
|
8
12
|
|
|
9
|
-
export interface KeeperView {
|
|
10
|
-
repo: string
|
|
11
|
-
phase: string
|
|
12
|
-
since: string
|
|
13
|
-
why: string | null
|
|
14
|
-
tmux: string
|
|
15
|
-
house: boolean
|
|
16
|
-
lastDelivered: { address: string; at: string; ms: number } | null
|
|
17
|
-
working: { address: string; note: string; at: string } | null
|
|
18
|
-
}
|
|
19
|
-
|
|
20
13
|
export interface PresenceAnswer {
|
|
21
14
|
now: number
|
|
22
15
|
/** the house repos of this machine, for the new thread's picker */
|
|
23
16
|
repos: string[]
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
/** the house's own repo, null when the house lists none */
|
|
18
|
+
house: string | null
|
|
19
|
+
/** every Claude account of this Mac with its usage, as the ACCOUNTS section reads them */
|
|
20
|
+
accounts: AccountUsage[]
|
|
21
|
+
/** the account of his newest sk session start, '' for the shell's own, null before his first */
|
|
22
|
+
last: string | null
|
|
23
|
+
/** each project as it stands, read for this answer (orchestrator/now.ts) */
|
|
24
|
+
views: OrchView[]
|
|
26
25
|
presence: Record<string, Present[]>
|
|
26
|
+
/** each project another place holds too (orchestrator/lead-shape.ts): absent from a home of before places */
|
|
27
|
+
places?: Record<string, ProjectPlaces>
|
|
28
|
+
/** each project's live top level sessions that listen or work, every place (orchestrator/sessions-shape.ts): the
|
|
29
|
+
* head line's chips; absent from a home of before sessions */
|
|
30
|
+
sessions?: Record<string, SessionChip[]>
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
const POLL_MS = 3000
|
|
30
34
|
|
|
31
35
|
export class PresenceSt {
|
|
32
|
-
|
|
36
|
+
/** the session his click is making the default, until the hub answers */
|
|
37
|
+
picking: string | null = null
|
|
33
38
|
error: string | null = null
|
|
34
39
|
/** read while a line shows; the stream says when the orchestrators moved (`orchestrators`), the home's gate rests
|
|
35
40
|
* the timer while it is up */
|
|
@@ -76,35 +81,64 @@ export class PresenceSt {
|
|
|
76
81
|
return this.answer?.presence[repo] ?? []
|
|
77
82
|
}
|
|
78
83
|
|
|
79
|
-
|
|
80
|
-
|
|
84
|
+
/** a project as it stands: its orchestrator, and whether a watch of every thread runs in it */
|
|
85
|
+
view(repo: string): OrchView | null {
|
|
86
|
+
// a hub server not restarted since its routes changed sends no views: none known
|
|
87
|
+
return this.answer?.views?.find((v) => v.repo === repo) ?? null
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/** the chips of `repo`'s head line: its live sessions that listen or work, the default starred first */
|
|
91
|
+
sessions(repo: string): SessionChip[] {
|
|
92
|
+
return this.answer?.sessions?.[repo] ?? []
|
|
81
93
|
}
|
|
82
94
|
|
|
83
|
-
/**
|
|
84
|
-
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
return this.answer?.keepers.find((k) => k.house && live(k)) ?? null
|
|
95
|
+
/** who hears what `repo`'s threads get that no holder hears: a session of its own here, or the lead place hears */
|
|
96
|
+
hearing(repo: string): Hearing {
|
|
97
|
+
const p = this.places(repo)
|
|
98
|
+
if (p !== null && p.places.some((l) => !l.here && l.node === p.lead && l.state === 'hears')) return { state: 'own' }
|
|
99
|
+
return projectHearing(repo, this.answer?.views ?? [])
|
|
89
100
|
}
|
|
90
101
|
|
|
91
|
-
|
|
92
|
-
|
|
102
|
+
/** `repo` on several places, as the home read them; null on one place, or with the hq not reached */
|
|
103
|
+
places(repo: string): ProjectPlaces | null {
|
|
104
|
+
return this.answer?.places?.[repo] ?? null
|
|
93
105
|
}
|
|
94
106
|
|
|
95
|
-
/**
|
|
96
|
-
|
|
97
|
-
this.
|
|
107
|
+
/** the owner's placement of `repo`, the places it runs on (none: every place that has it). True when the hq took it */
|
|
108
|
+
setPlacement(repo: string, places: readonly string[]): Promise<boolean> {
|
|
109
|
+
return this.pick('/api/home/orchestrators/place', { repo, places })
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/** his click on a chip: that session becomes the default (orchestrator/routes.ts pickDefaultHere). True when it did;
|
|
113
|
+
* refused, `error` says why on the head line */
|
|
114
|
+
async setDefault(repo: string, session: string): Promise<boolean> {
|
|
115
|
+
this.picking = session
|
|
116
|
+
try {
|
|
117
|
+
return await this.pick('/api/home/orchestrators/default', { repo, session })
|
|
118
|
+
} finally {
|
|
119
|
+
runInAction(() => void (this.picking = null))
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/** one pick of the owner's, sent from the owner's click alone; the answer read again after */
|
|
124
|
+
private async pick(route: string, body: Record<string, unknown>): Promise<boolean> {
|
|
98
125
|
this.error = null
|
|
99
126
|
try {
|
|
100
|
-
const r = await reach(
|
|
101
|
-
const j = (await r.json()) as { ok?: boolean; error?: string
|
|
102
|
-
if (
|
|
127
|
+
const r = await reach(route, { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify(body) })
|
|
128
|
+
const j = (await r.json()) as { ok?: boolean; error?: string }
|
|
129
|
+
if (r.ok && j.ok === true) return true
|
|
130
|
+
runInAction(() => void (this.error = j.error ?? `HTTP ${r.status}`))
|
|
131
|
+
return false
|
|
103
132
|
} catch (e) {
|
|
104
133
|
runInAction(() => void (this.error = (e as Error).message))
|
|
134
|
+
return false
|
|
105
135
|
} finally {
|
|
106
|
-
runInAction(() => void (this.busy = null))
|
|
107
136
|
void this.load()
|
|
108
137
|
}
|
|
109
138
|
}
|
|
139
|
+
|
|
140
|
+
/** the head line of `repo` is drawn and wears the deaf mark: its list need not say it on every row */
|
|
141
|
+
saysDeaf(repo: string): boolean {
|
|
142
|
+
return this.reachable && this.answer !== null && this.hearing(repo).state === 'deaf'
|
|
143
|
+
}
|
|
110
144
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { CardHead } from './card-head.tsx'
|
|
6
6
|
import { observer } from 'mobx-react-lite'
|
|
7
7
|
import { useEffect, useRef } from 'react'
|
|
8
|
-
import { Log, ProcessMenu, ProcessTable } from './home-strip.tsx'
|
|
8
|
+
import { Log, ProcessMenu, ProcessTable, Tail } from './home-strip.tsx'
|
|
9
9
|
import type { RepoSt } from './repo-st.ts'
|
|
10
10
|
import type { ProcessRow } from '../../home/process-rows.ts'
|
|
11
11
|
|
|
@@ -21,7 +21,7 @@ const ProcessDetail = observer(({ app, r }: { app: RepoSt; r: ProcessRow }) => {
|
|
|
21
21
|
<section ref={el} className="csec pdetail" id={`process-${r.id}`}>
|
|
22
22
|
<CardHead title={r.label} />
|
|
23
23
|
<ProcessMenu m={m} r={r} close={noop} lastLog={r.tail.length === 0} />
|
|
24
|
-
{r.tail.length === 0 ? null : <><CardHead title="log" /><Log lines={r.tail} /></>}
|
|
24
|
+
<Tail m={m}>{r.tail.length === 0 ? null : <><CardHead title="log" /><Log lines={r.tail} /></>}</Tail>
|
|
25
25
|
</section>
|
|
26
26
|
)
|
|
27
27
|
})
|