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
|
@@ -8,7 +8,9 @@ import { AdvisorHost, advisorFetch, advisorMeta, advisorXhr } from './advisor-ho
|
|
|
8
8
|
import { PaneBoundary } from './pane-boundary.tsx'
|
|
9
9
|
import { AdvisorFace } from './advisor-face.tsx'
|
|
10
10
|
import { ReviewPage } from './review/review-page.tsx'
|
|
11
|
+
import { installTips } from './tips.ts'
|
|
11
12
|
|
|
13
|
+
installTips(document)
|
|
12
14
|
const host = new AdvisorHost(advisorMeta(document))
|
|
13
15
|
window.fetch = advisorFetch(host, window.fetch.bind(window))
|
|
14
16
|
advisorXhr(host, XMLHttpRequest.prototype, location.origin, location.href)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// an advisor's face (wiki tools/shipkit/advisors.md, A face for each advisor): their photo, else their initials on a
|
|
2
2
|
// colour disc from their name. One component for the hub's advisors page, a thread's bar, the advice, and their own page
|
|
3
3
|
import { laneColor } from './review/kit.tsx'
|
|
4
|
+
import { tip } from './tips.ts'
|
|
4
5
|
|
|
5
6
|
/** one or two letters of a name: the first and last words' first letters, uppercased */
|
|
6
7
|
export function initialsOf(name: string): string {
|
|
@@ -20,9 +21,9 @@ export const facePhoto = (folder: 'advisors' | 'drafts', id: string, sha: string
|
|
|
20
21
|
export const AdvisorFace = ({ name, src, px = 24 }: { name: string; src: string | null; px?: number }) => {
|
|
21
22
|
const size = { width: px, height: px, fontSize: Math.max(9, Math.round(px * 0.4)) }
|
|
22
23
|
return src !== null ? (
|
|
23
|
-
<img className="adv-face" src={src} alt=""
|
|
24
|
+
<img className="adv-face" src={src} alt="" {...tip(name)} width={px} height={px} style={size} draggable={false} />
|
|
24
25
|
) : (
|
|
25
|
-
<span className="adv-face adv-facei"
|
|
26
|
+
<span className="adv-face adv-facei" {...tip(name)} aria-hidden style={{ ...size, ['--face' as string]: faceColour(name) }}>
|
|
26
27
|
{initialsOf(name)}
|
|
27
28
|
</span>
|
|
28
29
|
)
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
<link rel="stylesheet" href="./dock.css" />
|
|
11
11
|
<link rel="stylesheet" href="./review.css" />
|
|
12
12
|
<link rel="stylesheet" href="./view-layout.css" />
|
|
13
|
+
<link rel="stylesheet" href="./lightbox-zoom.css" />
|
|
13
14
|
<link rel="stylesheet" href="./instructions.css" />
|
|
14
15
|
<link rel="stylesheet" href="./objects.css" />
|
|
15
16
|
<link rel="stylesheet" href="./advisors.css" />
|
|
@@ -12,6 +12,9 @@ import { hashFor } from './hash-route.ts'
|
|
|
12
12
|
import { repoPage, type HomeSt } from './home-st.ts'
|
|
13
13
|
import { AdviceBox, day, ProposalBox } from './advice-box.tsx'
|
|
14
14
|
import { AdvisorFace, facePhoto } from './advisor-face.tsx'
|
|
15
|
+
import { sensitivePart } from '../../advisors/scan.ts'
|
|
16
|
+
import { Pop } from './floating.tsx'
|
|
17
|
+
import { tip } from './tips.ts'
|
|
15
18
|
|
|
16
19
|
const HeldList = observer(({ adv, s }: { adv: AdvisorsSt; s: ShareRow }) =>
|
|
17
20
|
s.held.length === 0 ? null : (
|
|
@@ -22,8 +25,8 @@ const HeldList = observer(({ adv, s }: { adv: AdvisorsSt; s: ShareRow }) =>
|
|
|
22
25
|
<span className="adv-warn">held: {h.words}</span>
|
|
23
26
|
<span className="adv-heldtext">{h.preview}</span>
|
|
24
27
|
<span className="adv-row">
|
|
25
|
-
<button className="ghost"
|
|
26
|
-
<button className="ghost"
|
|
28
|
+
<button className="ghost" {...tip('each hit stays « [hidden] »')} onClick={() => void adv.include(s.id, h.key, 'redacted')}>include redacted</button>
|
|
29
|
+
<button className="ghost" {...tip('as it is, hits included')} onClick={() => void adv.include(s.id, h.key, 'as-is')}>include as is</button>
|
|
27
30
|
</span>
|
|
28
31
|
</div>
|
|
29
32
|
))}
|
|
@@ -46,7 +49,7 @@ export const PreviewDialog = observer(({ adv }: { adv: AdvisorsSt }) => {
|
|
|
46
49
|
<b>what {s.name} will see</b>
|
|
47
50
|
<span className="adv-dim">{s.title} · {s.repo}</span>
|
|
48
51
|
<span className="sp" />
|
|
49
|
-
<button className="ghost" aria-label="close" onClick={() => adv.closePreview()}>✕</button>
|
|
52
|
+
<button className="ghost" {...tip('close the preview')} aria-label="close" onClick={() => adv.closePreview()}>✕</button>
|
|
50
53
|
</div>
|
|
51
54
|
{adv.copied !== null ? <div className="adv-dim">their address is copied: {adv.copied}</div> : <div className="adv-dim">the door is not open yet: nothing leaves until it is (sk asks)</div>}
|
|
52
55
|
<HeldList adv={adv} s={s} />
|
|
@@ -85,6 +88,44 @@ const ShareLine = observer(({ adv, s }: { adv: AdvisorsSt; s: ShareRow }) => (
|
|
|
85
88
|
</div>
|
|
86
89
|
))
|
|
87
90
|
|
|
91
|
+
/** « confirm the N shares asked for <name> »: its popover lists every address it confirms, one that looks sensitive
|
|
92
|
+
* marked, and its own button sends the ids drawn here, so a share asked after the page drew waits for its own confirm */
|
|
93
|
+
export const ConfirmAll = observer(({ adv, name, advisor, shares }: { adv: AdvisorsSt; name: string; advisor: string; shares: ShareRow[] }) => (
|
|
94
|
+
<Pop label={`confirm the ${shares.length} shares asked for ${name}`} className="adv-confirmall" popClass="fpop adv-pop" data-check="advisors-confirm-all" {...tip(`what ${name} would read: the list first, then one click`)}>
|
|
95
|
+
{(close) => (
|
|
96
|
+
<div role="list" aria-label={`the shares asked for ${name}`}>
|
|
97
|
+
<div className="adv-subhead">{shares.length} shares asked for {name}: each scanned as its own confirm</div>
|
|
98
|
+
{shares.map((s) => {
|
|
99
|
+
const alarm = sensitivePart(s.address)
|
|
100
|
+
return (
|
|
101
|
+
<div key={s.id} role="listitem" className="adv-poprow">
|
|
102
|
+
<code>{s.address}</code>
|
|
103
|
+
<span className="adv-dim">{s.repo} · asked by {s.by}</span>
|
|
104
|
+
{alarm !== null ? <span className="adv-warn">looks sensitive: « {alarm} »</span> : null}
|
|
105
|
+
</div>
|
|
106
|
+
)
|
|
107
|
+
})}
|
|
108
|
+
<div className="adv-row">
|
|
109
|
+
<span className="sp" />
|
|
110
|
+
<button onClick={() => { close(); void adv.post('/share/confirm-all', { advisor, ids: shares.map((s) => s.id) }) }}>confirm these {shares.length}</button>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
)}
|
|
114
|
+
</Pop>
|
|
115
|
+
))
|
|
116
|
+
|
|
117
|
+
/** each advisor with two pending shares or more, and those shares: one « confirm the N shares » each */
|
|
118
|
+
export function pendingByAdvisor(shares: readonly ShareRow[]): { advisor: string; name: string; shares: ShareRow[] }[] {
|
|
119
|
+
const by = new Map<string, { advisor: string; name: string; shares: ShareRow[] }>()
|
|
120
|
+
for (const s of shares) {
|
|
121
|
+
if (s.state !== 'pending') continue
|
|
122
|
+
const g = by.get(s.advisor) ?? { advisor: s.advisor, name: s.name, shares: [] }
|
|
123
|
+
g.shares.push(s)
|
|
124
|
+
by.set(s.advisor, g)
|
|
125
|
+
}
|
|
126
|
+
return [...by.values()].filter((g) => g.shares.length > 1)
|
|
127
|
+
}
|
|
128
|
+
|
|
88
129
|
/** what stops the door's command, null when nothing the Mac can see does: the name, then the ask's setup token */
|
|
89
130
|
export function doorMissing(f: DoorFacts): string | null {
|
|
90
131
|
if (f.command === null) return 'the house config names no serve.advisorsHost'
|
|
@@ -115,12 +156,12 @@ export const DoorBar = observer(({ app, d }: { app: HomeSt; d: AdvisorsPage }) =
|
|
|
115
156
|
</div>
|
|
116
157
|
{missing !== null ? (
|
|
117
158
|
<div className="adv-row">
|
|
118
|
-
{ask !== null ? <a className="adv-doorbtn" href={ask}
|
|
159
|
+
{ask !== null ? <a className="adv-doorbtn" href={ask} {...tip('the ask holds the steps in order')}>{missing}: open the ask</a> : <span className="adv-warn">{missing}: the ask « open the advisors door »</span>}
|
|
119
160
|
</div>
|
|
120
161
|
) : (
|
|
121
162
|
<div className="adv-row">
|
|
122
163
|
{term?.available === true ? (
|
|
123
|
-
<button
|
|
164
|
+
<button {...tip("types the command into your terminal at the right; Enter is yours: it refuses an agent's shell, so it runs as your own act")} onClick={() => term.type(f.command!)}>{open ? 'update the door' : 'open the door'}</button>
|
|
124
165
|
) : (
|
|
125
166
|
<span className="adv-dim">from the Mac's own hub (the terminal panel is loopback only):</span>
|
|
126
167
|
)}
|
|
@@ -142,7 +183,7 @@ const PhotoPick = observer(({ adv, a }: { adv: AdvisorsSt; a: AdvisorsPage['advi
|
|
|
142
183
|
if (f !== undefined) void adv.setPhoto(a.id, f)
|
|
143
184
|
}
|
|
144
185
|
return (
|
|
145
|
-
<button type="button" className={`adv-photo${over ? ' over' : ''}`} aria-label={`${a.name}'s photo: drop a picture here or pick one`}
|
|
186
|
+
<button type="button" className={`adv-photo${over ? ' over' : ''}`} aria-label={`${a.name}'s photo: drop a picture here or pick one`} {...tip('drop a picture here, or click to pick one: png, jpeg, gif or webp, cut square')}
|
|
146
187
|
onClick={() => input.current?.click()}
|
|
147
188
|
onDragOver={(e) => { e.preventDefault(); setOver(true) }}
|
|
148
189
|
onDragLeave={() => setOver(false)}
|
|
@@ -160,7 +201,7 @@ const Drafts = observer(({ adv, d }: { adv: AdvisorsSt; d: AdvisorsPage }) =>
|
|
|
160
201
|
<div className="adv-sharehead adv-subhead">
|
|
161
202
|
<span>prepared profiles ({d.drafts!.length}): add the ones you want</span>
|
|
162
203
|
<span className="sp" />
|
|
163
|
-
{d.drafts!.length > 1 ? <button
|
|
204
|
+
{d.drafts!.length > 1 ? <button {...tip('each one an advisor, its photo theirs; enable them on a project after')} onClick={() => void adv.post('/drafts/add')}>add all</button> : null}
|
|
164
205
|
</div>
|
|
165
206
|
{d.drafts!.map((x) => (
|
|
166
207
|
<div key={x.id} className="adv-advisor adv-withface">
|
|
@@ -217,7 +258,7 @@ export const AdvisorsView = observer(({ app }: { app: HomeSt }) => {
|
|
|
217
258
|
<b>advisors</b>
|
|
218
259
|
<span className="adv-dim">people outside your tailnet who read the threads you defer to them, and advise; you confirm or override</span>
|
|
219
260
|
<span className="sp" />
|
|
220
|
-
<button className="ghost danger" disabled={live.length === 0}
|
|
261
|
+
<button className="ghost danger" disabled={live.length === 0} {...tip("every share ends at the advisor's next request")} onClick={() => void adv.post('/revoke', { all: true })}>revoke every share</button>
|
|
221
262
|
</div>
|
|
222
263
|
{adv.error !== '' ? <div className="adv-err">✗ {adv.error}</div> : null}
|
|
223
264
|
{d === null ? <div className="adv-dim adv-pad">reading…</div> : (
|
|
@@ -228,6 +269,7 @@ export const AdvisorsView = observer(({ app }: { app: HomeSt }) => {
|
|
|
228
269
|
<div className="adv-subhead">advice that waits for you ({d.advice.length})</div>
|
|
229
270
|
{d.advice.length === 0 ? <div className="adv-dim">none</div> : d.advice.map((a) => <AdviceBox key={a.id} adv={adv} a={a} />)}
|
|
230
271
|
<div className="adv-subhead">shares ({live.length})</div>
|
|
272
|
+
{pendingByAdvisor(live).map((g) => <div key={g.advisor} className="adv-row"><span className="sp" /><ConfirmAll adv={adv} name={g.name} advisor={g.advisor} shares={g.shares} /></div>)}
|
|
231
273
|
{live.length === 0 ? <div className="adv-dim">nothing is shared: « defer to… » on a thread of a project where an advisor is enabled</div> : live.map((s) => <ShareLine key={s.id} adv={adv} s={s} />)}
|
|
232
274
|
</section>
|
|
233
275
|
<section>
|
|
@@ -244,13 +286,13 @@ export const AdvisorsView = observer(({ app }: { app: HomeSt }) => {
|
|
|
244
286
|
</div>
|
|
245
287
|
<div className="adv-row">
|
|
246
288
|
{d.enabled.filter((e) => e.advisor === a.id).map((e) => (
|
|
247
|
-
<span key={e.repo} className="adv-chip">{e.repo} · {e.days} d{e.answers ? '' : ' · no answers'} <button className="ghost" aria-label={`disable on ${e.repo}`} onClick={() => void adv.post('/disable', { advisor: a.id, repo: e.repo })}>✕</button></span>
|
|
289
|
+
<span key={e.repo} className="adv-chip">{e.repo} · {e.days} d{e.answers ? '' : ' · no answers'} <button className="ghost" {...tip(`${a.name} no longer reads ${e.repo}`)} aria-label={`disable on ${e.repo}`} onClick={() => void adv.post('/disable', { advisor: a.id, repo: e.repo })}>✕</button></span>
|
|
248
290
|
))}
|
|
249
291
|
</div>
|
|
250
292
|
<Enable adv={adv} advisor={a.id} repos={d.repos.filter((r) => !d.enabled.some((e) => e.advisor === a.id && e.repo === r))} />
|
|
251
293
|
<div className="adv-row">
|
|
252
294
|
<span className="sp" />
|
|
253
|
-
{a.photo !== undefined && a.photo.seen !== true ? <><span className="adv-warn">the photo waits for your eyes</span><button
|
|
295
|
+
{a.photo !== undefined && a.photo.seen !== true ? <><span className="adv-warn">the photo waits for your eyes</span><button {...tip(`it shows on ${a.name}'s own page from now on`)} onClick={() => void adv.post(`/advisor/${a.id}/photo/send`)}>send it to {a.name}</button></> : null}
|
|
254
296
|
{a.photo !== undefined ? <button className="ghost" onClick={() => void adv.post(`/advisor/${a.id}/photo/remove`)}>remove the photo</button> : null}
|
|
255
297
|
<button className="ghost danger" onClick={() => void adv.post('/revoke', { advisor: a.id })}>revoke {a.name}</button>
|
|
256
298
|
<button className="ghost danger" onClick={() => void adv.post(`/advisor/${a.id}/remove`)}>remove</button>
|
|
@@ -25,6 +25,10 @@ button.danger{color:var(--red)}
|
|
|
25
25
|
.adv-held{margin:var(--s2) 0}
|
|
26
26
|
.adv-heldrow{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--s1) var(--s2);padding:var(--s1) 0;border-top:1px solid var(--line)}
|
|
27
27
|
.adv-heldtext{flex:1 1 240px;color:var(--dim);overflow-wrap:anywhere}
|
|
28
|
+
/* « confirm the N shares asked for <name> »: its popover lists each address before the one click */
|
|
29
|
+
button.adv-confirmall{color:var(--warn);border-color:var(--warn)}
|
|
30
|
+
.adv-pop{max-width:min(70ch,92vw);max-height:min(60vh,480px);overflow:auto;padding:var(--s2) var(--s3);font-size:12.5px}
|
|
31
|
+
.adv-poprow{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--s1) var(--s2);padding:var(--s1) 0;border-top:1px solid var(--line);overflow-wrap:anywhere}
|
|
28
32
|
.adv-images{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2);margin:var(--s2) 0}
|
|
29
33
|
/* a thread's bar: beside « set aside », its advice on its own line */
|
|
30
34
|
.adv-bar{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--s1) var(--s2)}
|
|
@@ -11,7 +11,14 @@ import type { Project } from './projects-svc.ts'
|
|
|
11
11
|
export type AppThread = { id: string; title: string; repo: string; url: string }
|
|
12
12
|
/** `seed`: every thread waiting at the page's first daemon answer; the app notifies those it never saw, unless it is
|
|
13
13
|
* the first seed of its life (the backlog at start) */
|
|
14
|
-
export type AppNote = { waiting: number; keys: string[] } | { seed: AppThread[] } | { card: AppThread }
|
|
14
|
+
export type AppNote = { waiting: number; keys: string[]; repos: Record<string, number> } | { seed: AppThread[] } | { card: AppThread } | TabNote
|
|
15
|
+
/** a tab of a project's app that is not the hub's shell on an entry (a url's site, a terminal alone). `tabName`: the
|
|
16
|
+
* title of the tab on `url`, said before that tab is asked; `entryTab`: what ⌘T opens for the entry the page shows,
|
|
17
|
+
* null when it is the page itself; `closeTab`: this page has nothing left to show, its tab leaves */
|
|
18
|
+
export type TabNote = ({ tabName: string; url: string } & Partial<TabChips>) | { entryTab: { url: string; name?: string } | null } | { closeTab: true }
|
|
19
|
+
/** the login chips a url's tab wears in its title bar: the url's id and each login's label, by position (the copy
|
|
20
|
+
* route takes both); never a value */
|
|
21
|
+
export type TabChips = { urlId: string; logins: string[] }
|
|
15
22
|
export type Post = (note: AppNote) => void
|
|
16
23
|
/** the absolute address of a thread's review page */
|
|
17
24
|
export type ThreadUrl = (repo: string, id: string) => string
|
|
@@ -25,6 +32,9 @@ export function appPost(w: unknown = globalThis): Post | null {
|
|
|
25
32
|
/** the house wide count the badge shows: the threads new to him (the rail's purple pills) summed */
|
|
26
33
|
export const waitingOf = (list: Project[]): number => list.reduce((n, p) => n + p.unread.length, 0)
|
|
27
34
|
|
|
35
|
+
/** each repo's own count, its rail pill: a project app's badge shows its repo's */
|
|
36
|
+
export const waitingByRepo = (list: Project[]): Record<string, number> => Object.fromEntries(list.map((p) => [p.name, p.unread.length]))
|
|
37
|
+
|
|
28
38
|
/** what one daemon answer posts: the count and the `repo/id` keys waiting when either moved (the app removes the
|
|
29
39
|
* banners of every other thread), the seed at the first answer, then each thread this page had not seen. The app owns
|
|
30
40
|
* the set of threads notified: this one only keeps a poll from posting them again */
|
|
@@ -38,11 +48,12 @@ export class AppBridge {
|
|
|
38
48
|
const threads = list.flatMap((p) => p.cards.map((c) => ({ key: `${p.name}/${c.id}`, card: { id: c.id, title: c.title, repo: p.name, url: this.threadUrl(p.name, c.id) } })))
|
|
39
49
|
const keys = threads.map((c) => c.key)
|
|
40
50
|
const waiting = waitingOf(list)
|
|
51
|
+
const repos = waitingByRepo(list)
|
|
41
52
|
// the badge moves with what is new to him, the banners with what waits on him: either one posts
|
|
42
|
-
const now = JSON.stringify([
|
|
53
|
+
const now = JSON.stringify([repos, keys])
|
|
43
54
|
if (now !== this.last) {
|
|
44
55
|
this.last = now
|
|
45
|
-
this.post({ waiting, keys })
|
|
56
|
+
this.post({ waiting, keys, repos })
|
|
46
57
|
}
|
|
47
58
|
const seen = this.seen
|
|
48
59
|
if (seen == null) {
|
|
@@ -58,8 +69,23 @@ export class AppBridge {
|
|
|
58
69
|
}
|
|
59
70
|
}
|
|
60
71
|
|
|
61
|
-
/**
|
|
62
|
-
|
|
72
|
+
/** tells the app what ⌘T opens for the entry the page shows, as it changes: a url's row is its site alone, at the
|
|
73
|
+
* address he is on, where every other entry is the page itself (null). A no-op outside the app. Returns the stop */
|
|
74
|
+
export function startEntryTab(tab: () => { href: string; name?: string } | null, post: Post | null = appPost()): () => void {
|
|
75
|
+
if (post == null) return () => {}
|
|
76
|
+
return reaction(() => {
|
|
77
|
+
const t = tab()
|
|
78
|
+
if (t == null) return null
|
|
79
|
+
// the app reads an address whole: a page of this hub is written from its root
|
|
80
|
+
const url = new URL(t.href, globalThis.location?.href ?? 'http://hub').href
|
|
81
|
+
return t.name == null ? { url } : { url, name: t.name }
|
|
82
|
+
}, (entryTab) => post({ entryTab }), { fireImmediately: true, equals: (a, b) => a?.url === b?.url && a?.name === b?.name })
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/** what the app calls on a notification's click: that thread in this window, in place, or the inbox; and on its
|
|
86
|
+
* File menu's « New Thread » (⌘N): the page's new thread popup, true when this page opened it (a terminal alone has
|
|
87
|
+
* none, and the app asks the hub's tab) */
|
|
88
|
+
export type AppHooks = { openThread(repo: string, id: string): void; openInbox(): void; newThread(): boolean }
|
|
63
89
|
|
|
64
90
|
/** feeds the app from the project list once it is the daemon's, and hands the app the page's hooks; a no-op
|
|
65
91
|
* outside the app. Returns the stop */
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// a page of one project asked from another project's window (wiki tools/shipkit/home-pages.md, The picker). A
|
|
2
|
+
// project's app shows its own repo only, so a jump to a page of another repo asks the home for that repo's own app
|
|
3
|
+
// with the page to show there (askPage, `POST /api/projects/open-app`): the app comes forward, built first when
|
|
4
|
+
// missing. Its window takes the page (takePage, `POST /api/projects/asked-page`) when the stream says `asked-page` for
|
|
5
|
+
// its repo, when it opens, and when it shows again (HomeSt.sourced), then goes there as on a hand typed address.
|
|
6
|
+
// the one constraint a reader breaks first: the home hands a page out once, so one window of the app goes there,
|
|
7
|
+
// never each of them
|
|
8
|
+
import { reach } from './reach.ts'
|
|
9
|
+
|
|
10
|
+
const post = (path: string, body: unknown): Promise<Response> => reach(path, { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify(body) })
|
|
11
|
+
|
|
12
|
+
/** that repo's own app, on `page` (an address of its hub: `/r/<repo>/`, its search, its hash); throws with the reason
|
|
13
|
+
* the home refused */
|
|
14
|
+
export async function askPage(repo: string, page: string): Promise<void> {
|
|
15
|
+
const r = await post('/api/projects/open-app', { name: repo, page })
|
|
16
|
+
if (!r.ok) throw new Error(await r.text())
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** the page asked of this repo's window and not taken yet, or null */
|
|
20
|
+
export async function takePage(repo: string): Promise<string | null> {
|
|
21
|
+
const r = await post('/api/projects/asked-page', { name: repo })
|
|
22
|
+
if (!r.ok) throw new Error(`${r.status} ${await r.text()}`)
|
|
23
|
+
return ((await r.json()) as { page: string | null }).page
|
|
24
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// a repo's asks page: its asks on the left, the one picked on the right, whole (col-list-page.tsx draws both). This
|
|
2
2
|
// file holds what is the asks' own: the row, the bands' names and the page's words
|
|
3
|
+
import { listRow } from './list-row.ts'
|
|
3
4
|
import { observer } from 'mobx-react-lite'
|
|
4
5
|
import { afterWords } from '../../asks/ask-after.ts'
|
|
5
6
|
import { BAND_WORDS } from '../../review/band.ts'
|
|
@@ -11,7 +12,8 @@ import type { Resource } from './hub-types.ts'
|
|
|
11
12
|
import { Icon, ICON } from './icons.tsx'
|
|
12
13
|
import type { RepoSt } from './repo-st.ts'
|
|
13
14
|
import { Age, stampWords } from './time-ago.tsx'
|
|
14
|
-
import { useInSight } from './
|
|
15
|
+
import { useInSight } from './in-sight.ts'
|
|
16
|
+
import { tip } from './tips.ts'
|
|
15
17
|
|
|
16
18
|
/** a row of the list, the app's list row: its title, at its end an open ask's steps done (`3/8`, the next step on
|
|
17
19
|
* hover), else its age in short (`70d`, the full stamp on hover); a later ask the day it waits for; a closed ask dimmed */
|
|
@@ -21,13 +23,13 @@ const AskRow = observer(({ app, r, on }: { app: RepoSt; r: Resource; on: boolean
|
|
|
21
23
|
const after = isLaterAsk(r) && r.ask?.after != null ? afterWords(r.ask.after) : null
|
|
22
24
|
const steps = after == null && !isClosedAsk(r) ? r.ask?.steps ?? null : null
|
|
23
25
|
return (
|
|
24
|
-
<button ref={el} type="button" className={`lrow${on ? ' on' : ''}${isClosedAsk(r) ? ' off' : ''}`} data-k={r.id}
|
|
25
|
-
|
|
26
|
+
<button ref={el} type="button" className={`lrow${on ? ' on' : ''}${isClosedAsk(r) ? ' off' : ''}`} data-k={r.id} {...listRow(r.id, on)}
|
|
27
|
+
{...tip([r.title, ...askFactWords(r), r.file ?? ''].filter((x) => x !== '').join('\n'))} onClick={() => app.asks.open(r.id)}>
|
|
26
28
|
<Icon d={ICON.asks} />
|
|
27
29
|
<span className="lgrow">{r.title}</span>
|
|
28
|
-
{after != null ? <span className="ldim lnum"
|
|
29
|
-
: steps != null ? <span className="ldim lnum"
|
|
30
|
-
: at == null ? null : <span className="ldim lnum"
|
|
30
|
+
{after != null ? <span className="ldim lnum" {...tip(after)}>{after.replace(/^after /, '')}</span>
|
|
31
|
+
: steps != null ? <span className="ldim lnum" {...tip(stepsWords(steps))}>{steps.done}/{steps.of}</span>
|
|
32
|
+
: at == null ? null : <span className="ldim lnum" {...tip(stampWords(at))}><Age clock={app.clock} at={at} short /></span>}
|
|
31
33
|
</button>
|
|
32
34
|
)
|
|
33
35
|
})
|
|
@@ -35,6 +37,8 @@ const AskRow = observer(({ app, r, on }: { app: RepoSt; r: Resource; on: boolean
|
|
|
35
37
|
const openWords = (n: number): string => (n === 0 ? 'asks · none open' : `asks · ${n} open`)
|
|
36
38
|
|
|
37
39
|
const WORDS: ColListWords<AskGroupKey> = {
|
|
40
|
+
title: 'asks',
|
|
41
|
+
tone: { open: 'warn' },
|
|
38
42
|
search: 'search the asks',
|
|
39
43
|
nav: 'the asks of this repo',
|
|
40
44
|
band: { open: 'open', later: BAND_WORDS.aside, done: 'done', declined: 'declined by you', cancelled: 'cancelled: no longer needed', merged: 'merged into another ask' },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// the hub's one text box that grows with its text: two lines at rest, it wraps, never an inner scrollbar until its
|
|
2
2
|
// cap (hub.css textarea.autotext, or a sheet's lower max-height), past which it scrolls. Every multi line field of the
|
|
3
|
-
// hub is this one. It takes emojis as GitHub does (emoji.ts): `:sm` lists them at the caret (on the line under it, or
|
|
3
|
+
// hub is this one. Empty, it is as tall as its placeholder, unless the box keeps its hint on one line (`hintLine`). It takes emojis as GitHub does (emoji.ts): `:sm` lists them at the caret (on the line under it, or
|
|
4
4
|
// on the line over it, over the box's row of files, when no room is left under it), ↑ ↓ move, Enter or Tab write the lit
|
|
5
5
|
// one, Escape closes the list; `:smile:` typed whole is its character
|
|
6
6
|
import { observer } from 'mobx-react-lite'
|
|
@@ -18,10 +18,12 @@ type Props = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'value' | 'onChan
|
|
|
18
18
|
el?: (t: HTMLTextAreaElement | null) => void
|
|
19
19
|
/** `:name` lists emojis: on unless the box holds code */
|
|
20
20
|
emoji?: boolean
|
|
21
|
+
/** the placeholder stays on one line, cut with an ellipsis: the empty box never grows for it (a box in a narrow column) */
|
|
22
|
+
hintLine?: boolean
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
/** a textarea at the height of its text: its value, a new width, a font that loads all size it again */
|
|
24
|
-
export function AutoText({ value, onText, rows = 2, el, className, emoji = true, onKeyDown, onSelect, onBlur, ...rest }: Props) {
|
|
26
|
+
export function AutoText({ value, onText, rows = 2, el, className, emoji = true, hintLine = false, onKeyDown, onSelect, onBlur, ...rest }: Props) {
|
|
25
27
|
const ref = useRef<HTMLTextAreaElement | null>(null)
|
|
26
28
|
const [em] = useState(() => (emoji ? new EmojiSt() : null))
|
|
27
29
|
// the caret a written emoji leaves, set in the commit that draws its text
|
|
@@ -59,14 +61,14 @@ export function AutoText({ value, onText, rows = 2, el, className, emoji = true,
|
|
|
59
61
|
t.style.height = 'auto'
|
|
60
62
|
const edge = t.offsetHeight - t.clientHeight
|
|
61
63
|
// an empty box is as tall as its placeholder: the hint reads whole, never cut by a scrollbar
|
|
62
|
-
const hint = t.value === '' && t.placeholder !== ''
|
|
64
|
+
const hint = !hintLine && t.value === '' && t.placeholder !== ''
|
|
63
65
|
if (hint) t.value = t.placeholder
|
|
64
66
|
const h = t.scrollHeight
|
|
65
67
|
if (hint) t.value = ''
|
|
66
68
|
t.style.height = `${h + edge}px`
|
|
67
69
|
// a sheet's max-height stops it: only then may it scroll
|
|
68
70
|
t.style.overflowY = t.scrollHeight > t.clientHeight + 1 ? 'auto' : 'hidden'
|
|
69
|
-
}, [])
|
|
71
|
+
}, [hintLine])
|
|
70
72
|
useLayoutEffect(size, [value, size])
|
|
71
73
|
useLayoutEffect(() => {
|
|
72
74
|
const t = ref.current
|
|
@@ -95,7 +97,7 @@ export function AutoText({ value, onText, rows = 2, el, className, emoji = true,
|
|
|
95
97
|
ref.current = t
|
|
96
98
|
el?.(t)
|
|
97
99
|
}}
|
|
98
|
-
className={className ? `
|
|
100
|
+
className={`autotext${hintLine ? ' hintline' : ''}${className ? ` ${className}` : ''}`}
|
|
99
101
|
rows={rows}
|
|
100
102
|
value={value}
|
|
101
103
|
onChange={(e) => {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
// list is the other control, section-head.tsx
|
|
6
6
|
import type { ReactNode } from 'react'
|
|
7
7
|
import { Caret } from './icons.tsx'
|
|
8
|
+
import { tip } from './tips.ts'
|
|
8
9
|
|
|
9
10
|
export type CardHeadProps = {
|
|
10
11
|
/** the card's name, bold, in the case it is written in */
|
|
@@ -36,11 +37,11 @@ export const CardHead = (p: CardHeadProps) => {
|
|
|
36
37
|
)
|
|
37
38
|
const cls = `ch${p.hook != null ? ` ${p.hook}` : ''}`
|
|
38
39
|
if (p.onFold == null)
|
|
39
|
-
return <div className={cls}
|
|
40
|
+
return <div className={cls} {...tip(p.tip)}>{name}{p.children}</div>
|
|
40
41
|
const open = p.open !== false
|
|
41
42
|
return (
|
|
42
43
|
<div className={cls}>
|
|
43
|
-
<button type="button" className="chf" aria-expanded={open}
|
|
44
|
+
<button type="button" className="chf" aria-expanded={open} {...tip(p.tip ?? `a click ${open ? 'folds' : 'shows'} it`)} onClick={p.onFold}>
|
|
44
45
|
{name}
|
|
45
46
|
</button>
|
|
46
47
|
{p.children}
|
|
@@ -16,6 +16,7 @@ import { renderMd, renderMdInline } from './md.ts'
|
|
|
16
16
|
import { nextRun } from './next-run.ts'
|
|
17
17
|
import { stampWords, TimeAgo, TimeAhead } from './time-ago.tsx'
|
|
18
18
|
import { checkName, commandOf, docPath, editorHref, lastRun, rememberedFact, repoPath, whatFacts, type ShortPath } from './check-words.ts'
|
|
19
|
+
import { tip } from './tips.ts'
|
|
19
20
|
|
|
20
21
|
/** which declaration is answering, so the switch never looks like it wrote
|
|
21
22
|
* something it did not. The CHIP is the short one, its help is the sentence */
|
|
@@ -64,8 +65,8 @@ export const Row = ({ k, help, wide, children }: { k: string; help?: string; wid
|
|
|
64
65
|
|
|
65
66
|
/** a path, short, never split mid token, the full one in its tooltip */
|
|
66
67
|
export const PathCode = ({ p, href }: { p: ShortPath; href?: string | null }) => {
|
|
67
|
-
const code = <code className="cpath"
|
|
68
|
-
return href == null ? code : <a href={href}
|
|
68
|
+
const code = <code className="cpath" {...tip(p.full)}>{p.short}</code>
|
|
69
|
+
return href == null ? code : <a href={href} {...tip(p.full)}>{code}</a>
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
/** the section title for what is not a fact: the output, the slow suites */
|
|
@@ -104,17 +105,17 @@ export const CommandLine = ({ app, u }: { app: RepoSt; u: CheckFacts }) => {
|
|
|
104
105
|
return (
|
|
105
106
|
<div className="ccmd">
|
|
106
107
|
<Row k="command" help="the exact argv the gate spawns from the repo root. Its exit code is truth: a non zero exit with no FAIL line still fails loud" wide>
|
|
107
|
-
<code className="cargv"
|
|
108
|
+
<code className="cargv" {...tip(u.cmd?.join(' '))}>
|
|
108
109
|
{c.tokens.map((t, n) => (
|
|
109
110
|
<span key={n}>
|
|
110
111
|
{n > 0 ? ' ' : null}
|
|
111
112
|
{t.short === u.file && editorHref(app.root, u.file) != null
|
|
112
|
-
? <a className="tok" href={editorHref(app.root, u.file)!}
|
|
113
|
-
: <span className="tok"
|
|
113
|
+
? <a className="tok" href={editorHref(app.root, u.file)!} {...tip(t.full)}>{t.short}</a>
|
|
114
|
+
: <span className="tok" {...tip(t.full)}>{t.short}</span>}
|
|
114
115
|
</span>
|
|
115
116
|
))}
|
|
116
117
|
</code>
|
|
117
|
-
<button className="ccopy"
|
|
118
|
+
<button className="ccopy" {...tip('copy the command')} onClick={() => copy(c.copy)}>copy</button>
|
|
118
119
|
{c.script == null
|
|
119
120
|
? null
|
|
120
121
|
: <div className="cscript">
|
|
@@ -148,7 +149,7 @@ const WhereItRuns = observer(({ app, u }: { app: RepoSt; u: CheckFacts }) => {
|
|
|
148
149
|
)
|
|
149
150
|
})}
|
|
150
151
|
<div className="crun cache">
|
|
151
|
-
<span className="ck"
|
|
152
|
+
<span className="ck" {...tip(`cache: how an answer is kept. ${r.cache}`)}>cache</span>
|
|
152
153
|
<span className="crv">{r.cache.split(/[\s:]/)[0]}</span>
|
|
153
154
|
<span className="crm">{cellMeaning('cache', r.cache)}</span>
|
|
154
155
|
</div>
|
|
@@ -208,7 +209,7 @@ const Bars = ({ runs, ceiling, budget }: { runs: RecentRun[]; ceiling: number; b
|
|
|
208
209
|
<i key={`${r.at}-${n}`}
|
|
209
210
|
className={`bar ${r.replayed ? 'rep' : r.status === 'fail' ? 'red' : r.status === 'warn' ? 'warn' : r.status === 'skip' ? 'rep' : durationTone(r.ms, ceiling, budget) ?? 'plain'}`}
|
|
210
211
|
style={{ height: `${r.replayed ? 8 : Math.max(10, Math.round((r.ms / top) * 100))}%` }}
|
|
211
|
-
|
|
212
|
+
{...tip(`${stampWords(r.at)}: ${r.replayed ? CACHED : `${VERDICT_WORD[r.status]} in ${fmtMs(r.ms)}`}`)} />
|
|
212
213
|
))}
|
|
213
214
|
</div>
|
|
214
215
|
)
|
|
@@ -297,7 +298,7 @@ const SlowSuites = observer(({ app }: { app: RepoSt }) => {
|
|
|
297
298
|
</div>
|
|
298
299
|
{declared.map((x) => (
|
|
299
300
|
<div key={x.file} className="wsuite">
|
|
300
|
-
<div className="wfile"><a href="#"
|
|
301
|
+
<div className="wfile"><a href="#" {...tip('its test file page')} onClick={(e) => { e.preventDefault(); app.timeline.openTest(x.file) }}><code className="cpath">{x.file}</code></a>
|
|
301
302
|
<button disabled={s.gateBusy} onClick={() => void s.removeSlow(x.file)}>back to the quick tier</button>
|
|
302
303
|
</div>
|
|
303
304
|
<div className="note">catches: {x.catches}</div>
|