rvlib-shipkit 2.30.0 → 2.31.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 +15 -0
- package/README.md +15 -0
- package/package.json +1 -1
- package/src/advisors/acts.ts +174 -83
- package/src/advisors/advice.ts +201 -24
- package/src/advisors/advisor-view.ts +60 -12
- package/src/advisors/app-graph.ts +7 -1
- package/src/advisors/cf-api.ts +44 -0
- package/src/advisors/copy-truth.ts +49 -0
- package/src/advisors/dir-bucket.ts +69 -0
- package/src/advisors/door-child.ts +112 -0
- package/src/advisors/door-probe.ts +88 -0
- package/src/advisors/door-serve.ts +52 -0
- package/src/advisors/door.ts +82 -23
- package/src/advisors/edge/api.ts +14 -7
- package/src/advisors/edge/bucket.ts +10 -1
- package/src/advisors/edge/handler.ts +85 -44
- package/src/advisors/edge/here.ts +63 -0
- package/src/advisors/edge/pages.ts +87 -0
- package/src/advisors/edge/shell.ts +5 -3
- package/src/advisors/edge/sign-in.ts +144 -0
- package/src/advisors/edge/status.ts +28 -6
- package/src/advisors/edge/types.ts +25 -17
- package/src/advisors/expose.ts +225 -119
- package/src/advisors/here.ts +66 -0
- package/src/advisors/invite-send.ts +176 -0
- package/src/advisors/invite.ts +49 -0
- package/src/advisors/job.ts +89 -11
- package/src/advisors/login.ts +66 -0
- package/src/advisors/owner-name.ts +37 -0
- package/src/advisors/owner-store.ts +267 -62
- package/src/advisors/photos.ts +10 -50
- package/src/advisors/project.ts +92 -48
- package/src/advisors/rights.ts +152 -0
- package/src/advisors/routes.ts +321 -89
- package/src/advisors/scan.ts +28 -2
- package/src/advisors/setup-run.ts +132 -0
- package/src/advisors/share-trace.ts +78 -0
- package/src/advisors/sync.ts +197 -82
- package/src/advisors/tunnel.ts +118 -0
- package/src/advisors/users-router.ts +186 -0
- package/src/agent-time/accounts-usage-disk.ts +45 -3
- package/src/agent-time/claude-sessions.ts +63 -3
- package/src/agent-time/registry.ts +130 -46
- package/src/agent-time/store.ts +195 -32
- package/src/annex/born.ts +2 -9
- package/src/asks/ask-carry.ts +14 -7
- package/src/asks/ask-edit.ts +49 -0
- package/src/asks/ask-since.ts +74 -0
- package/src/asks/ask-store.ts +70 -29
- package/src/asks/ask-words-fold.ts +2 -2
- package/src/checks/SK001-package-json-shape.check.ts +12 -3
- package/src/checks/SK003-claude-md-shape.check.ts +78 -20
- package/src/checks/SK004-gitignore-policy.check.ts +7 -4
- package/src/checks/SK008-reviewer-agent.check.ts +1 -1
- package/src/checks/SK012-config-barrel-import.check.ts +1 -1
- package/src/checks/SK032-ignored-inputs.check.ts +9 -5
- package/src/checks/SK036-draft-media-size.check.ts +4 -3
- package/src/checks/SK038-speaks-as.check.ts +6 -5
- package/src/checks/SK039-vscode-watch-generated.check.ts +5 -25
- package/src/checks/SK044-behind-upstream.check.ts +2 -1
- package/src/checks/SK052-url-old-words.check.ts +56 -0
- package/src/checks/SK053-tools.check.ts +46 -0
- package/src/checks/SK054-agent-allow-list.check.ts +142 -0
- package/src/cli/clip.ts +44 -0
- package/src/cli/cmd_Advisors.ts +310 -142
- package/src/cli/cmd_Annex.ts +1 -1
- package/src/cli/cmd_Asks.ts +124 -22
- package/src/cli/cmd_Assets.ts +1 -1
- package/src/cli/cmd_Backup.ts +26 -67
- package/src/cli/cmd_BackupTargets.ts +106 -0
- package/src/cli/cmd_Bump.ts +1 -1
- package/src/cli/cmd_CacheAudit.ts +1 -1
- package/src/cli/cmd_Calls.ts +1 -1
- package/src/cli/cmd_Capacity.ts +1 -1
- package/src/cli/cmd_Check.ts +2 -2
- package/src/cli/cmd_Checks.ts +2 -1
- package/src/cli/cmd_Ci.ts +1 -1
- package/src/cli/cmd_Commands.ts +1 -1
- package/src/cli/cmd_ConfigKeys.ts +1 -1
- package/src/cli/cmd_Contracts.ts +1 -1
- package/src/cli/cmd_CrossRepoActivity.ts +1 -6
- package/src/cli/cmd_Db.ts +47 -3
- package/src/cli/cmd_Drill.ts +1 -1
- package/src/cli/cmd_Drive.ts +259 -0
- package/src/cli/cmd_Fleet.ts +1 -1
- package/src/cli/cmd_FleetContext.ts +45 -0
- package/src/cli/cmd_FleetPush.ts +1 -1
- package/src/cli/cmd_FleetUpdate.ts +104 -0
- package/src/cli/cmd_GlobalContext.ts +1 -1
- package/src/cli/cmd_GlobalProcesses.ts +6 -4
- package/src/cli/cmd_History.ts +8 -27
- package/src/cli/cmd_Home.ts +4 -4
- package/src/cli/cmd_Hooks.ts +3 -12
- package/src/cli/cmd_Hq.ts +54 -80
- package/src/cli/cmd_Init.ts +1 -1
- package/src/cli/cmd_Insights.ts +1 -1
- package/src/cli/cmd_Keys.ts +1 -1
- package/src/cli/cmd_Lanes.ts +5 -4
- package/src/cli/cmd_Machines.ts +1 -1
- package/src/cli/cmd_Media.ts +6 -19
- package/src/cli/cmd_Messages.ts +1 -1
- package/src/cli/cmd_Mv.ts +1 -1
- package/src/cli/cmd_Needs.ts +1 -1
- package/src/cli/cmd_Orchestrator.ts +7 -16
- package/src/cli/cmd_OrchestratorRole.ts +10 -21
- package/src/cli/cmd_Overview.ts +1 -1
- package/src/cli/cmd_Pb.ts +1 -1
- package/src/cli/cmd_Planned.ts +1 -1
- package/src/cli/cmd_Rec.ts +1 -1
- package/src/cli/cmd_Reflect.ts +3 -3
- package/src/cli/cmd_Release.ts +1 -1
- package/src/cli/cmd_Releases.ts +1 -1
- package/src/cli/cmd_Review.ts +318 -204
- package/src/cli/cmd_Secret.ts +84 -2
- package/src/cli/cmd_Serve.ts +1 -1
- package/src/cli/cmd_Setup.ts +30 -0
- package/src/cli/cmd_Shot.ts +1 -1
- package/src/cli/cmd_Sign.ts +1 -1
- package/src/cli/cmd_Smoke.ts +1 -1
- package/src/cli/cmd_Social.ts +6 -3
- package/src/cli/cmd_SocialDrafts.ts +20 -6
- package/src/cli/cmd_Sound.ts +1 -1
- package/src/cli/cmd_Space.ts +4 -4
- package/src/cli/cmd_Start.ts +1 -1
- package/src/cli/cmd_Status.ts +1 -1
- package/src/cli/cmd_ThreadHolds.ts +1 -1
- package/src/cli/cmd_ThreadKinds.ts +1 -1
- package/src/cli/cmd_ThreadReflect.ts +3 -3
- package/src/cli/cmd_ThreadSyncNeeds.ts +1 -1
- package/src/cli/cmd_Time.ts +1 -1
- package/src/cli/cmd_Tmp.ts +1 -1
- package/src/cli/cmd_TraceAudit.ts +1 -1
- package/src/cli/cmd_Trailer.ts +1 -1
- package/src/cli/cmd_Tui.ts +1 -1
- package/src/cli/cmd_Urls.ts +61 -9
- package/src/cli/cmd_Vault.ts +1 -1
- package/src/cli/cmd_Veille.ts +1 -1
- package/src/cli/cmd_When.ts +1 -1
- package/src/cli/cmd_Wiki.ts +5 -2
- package/src/cli/cmd_Worktrees.ts +1 -1
- package/src/cli/family-pages.ts +1 -0
- package/src/cli/inbox-hook-run.ts +46 -20
- package/src/cli/line.ts +131 -0
- package/src/cli/registry-cli.ts +100 -0
- package/src/cli/registry-heads.ts +448 -0
- package/src/cli/registry.ts +385 -254
- package/src/cli/review-here.ts +4 -4
- package/src/cli.ts +45 -33
- package/src/collections/collection-types.ts +3 -0
- package/src/collections/providers.ts +6 -3
- package/src/collections/review.ts +3 -4
- package/src/context/context-line.ts +29 -0
- package/src/context/context-view.ts +34 -0
- package/src/context/project-context.ts +144 -0
- package/src/core/agent-allow-policy.ts +99 -0
- package/src/core/agent-spawn.ts +2 -0
- package/src/core/capacity.ts +3 -2
- package/src/core/daemon-port.ts +10 -0
- package/src/core/es2022.ts +19 -0
- package/src/core/footprint.ts +35 -0
- package/src/core/git-bin.ts +18 -0
- package/src/core/git-root.ts +40 -4
- package/src/core/git.ts +22 -0
- package/src/core/hard-reset.ts +7 -1
- package/src/core/house-config-text.ts +47 -0
- package/src/core/house-layout.ts +4 -0
- package/src/core/identities-path.ts +67 -0
- package/src/core/identities-root.ts +26 -0
- package/src/core/instance.ts +1 -1
- package/src/core/jobs.ts +1 -4
- package/src/core/layout.ts +3 -0
- package/src/core/loop-watch.ts +28 -5
- package/src/core/machine-db.ts +1 -8
- package/src/core/machine-name.ts +31 -0
- package/src/core/memory-watch.ts +56 -8
- package/src/core/on-loop.ts +10 -7
- package/src/core/pid-alive.ts +11 -0
- package/src/core/proc-path.ts +42 -0
- package/src/core/retention.ts +2 -2
- package/src/core/role-policy.ts +6 -7
- package/src/core/run-dirs.ts +2 -5
- package/src/core/runs.ts +5 -3
- package/src/core/scope.ts +44 -0
- package/src/core/scratch-objects.ts +1 -1
- package/src/core/slot-env.ts +4 -0
- package/src/core/slots.ts +2 -2
- package/src/core/spawn-timeout.ts +9 -3
- package/src/core/tools.ts +20 -0
- package/src/core/tree-watch.ts +304 -0
- package/src/core/window-policy.ts +132 -0
- package/src/drives/context.ts +29 -0
- package/src/drives/drives-view.ts +121 -0
- package/src/drives/file.ts +89 -0
- package/src/drives/local-folder.ts +107 -0
- package/src/drives/login.ts +181 -0
- package/src/drives/named.ts +33 -0
- package/src/drives/rclone.ts +100 -0
- package/src/drives/reach.ts +73 -0
- package/src/drives/routes.ts +89 -0
- package/src/drives/shares.ts +292 -0
- package/src/fleet/context-fleet.ts +83 -0
- package/src/fleet/follow.ts +172 -0
- package/src/gate/builtin-checks-dir.ts +32 -0
- package/src/gate/discover-checks.ts +9 -32
- package/src/gate/pre-commit-discovery.ts +214 -24
- package/src/gate/run-fixers.ts +8 -0
- package/src/home/advisors-tunnel-start.ts +9 -0
- package/src/home/autostart.ts +61 -17
- package/src/home/backup-status.ts +366 -0
- package/src/home/backup-verdict.ts +19 -0
- package/src/home/daemon-jobs.ts +188 -45
- package/src/home/database-words.ts +19 -2
- package/src/home/databases.ts +72 -25
- package/src/home/drives-deps.ts +54 -0
- package/src/home/follow-run.ts +146 -0
- package/src/home/global-context.ts +26 -22
- package/src/home/global-units.ts +3 -1
- package/src/home/gui-app/ShipkitGui.swift +1595 -17
- package/src/home/gui-app.ts +12 -16
- package/src/home/handoff.ts +5 -3
- package/src/home/handover.ts +2 -10
- package/src/home/home-paths.ts +16 -7
- package/src/home/home-routes.ts +99 -29
- package/src/home/inbox-shape.ts +3 -3
- package/src/home/machine-fold.ts +2 -10
- package/src/home/machine-host.ts +3 -17
- package/src/home/machine-stores.ts +8 -7
- package/src/home/owner-switch-route.ts +33 -0
- package/src/home/page-build.ts +20 -4
- package/src/home/page-files.ts +79 -0
- package/src/home/pm-switch.ts +10 -0
- package/src/home/pm.ts +13 -1
- package/src/home/process-apps.ts +15 -3
- package/src/home/push-sources.ts +17 -5
- package/src/home/resume.ts +8 -6
- package/src/home/run-daemon.ts +69 -6
- package/src/home/run-pm.ts +3 -3
- package/src/home/secrets-context.ts +119 -0
- package/src/home/serve-web.ts +12 -7
- package/src/home/shipkit-mark.ts +26 -0
- package/src/home/space-page.ts +1 -1
- package/src/home/space-route.ts +3 -10
- package/src/home/supervise.ts +2 -9
- package/src/home/vault-page.ts +39 -18
- package/src/home/vault-reveal.ts +2 -1
- package/src/home/web-places.ts +5 -3
- package/src/hooks/commit-run.ts +420 -0
- package/src/hooks/git-hook.ts +49 -0
- package/src/hooks/held-calls.ts +104 -0
- package/src/hooks/hook-config.ts +104 -0
- package/src/hooks/hook-gates.ts +15 -9
- package/src/hooks/leak-guard.ts +15 -14
- package/src/hooks/one-way-in-guard.ts +12 -3
- package/src/hooks/pre-commit-checks.ts +64 -0
- package/src/hooks/root-identity.ts +15 -18
- package/src/hooks/run-hooks.ts +123 -296
- package/src/hooks/shared-file.ts +18 -15
- package/src/hooks/shell-writes.ts +6 -100
- package/src/hooks/staged.ts +245 -18
- package/src/hooks/write-log.ts +122 -28
- package/src/house/project-gutter.ts +32 -8
- package/src/hq/backup-targets.ts +74 -0
- package/src/hq/daemon-db.ts +177 -0
- package/src/hq/door-route.ts +5 -5
- package/src/hq/door.ts +30 -16
- package/src/hq/files-send.ts +23 -17
- package/src/hq/follow-fact.ts +66 -0
- package/src/hq/forgotten-log.ts +3 -1
- package/src/hq/history-check.ts +9 -0
- package/src/hq/history-send.ts +6 -22
- package/src/hq/holds-shape.ts +42 -0
- package/src/hq/hq-db.ts +16 -26
- package/src/hq/hq-holds.ts +181 -0
- package/src/hq/hq-local.ts +66 -47
- package/src/hq/hq-role.ts +150 -0
- package/src/hq/hq-routes.ts +15 -3
- package/src/hq/hq-store.ts +43 -10
- package/src/hq/item-direct.ts +57 -0
- package/src/hq/item-shapes.ts +54 -0
- package/src/hq/kinds/index.ts +2 -1
- package/src/hq/kinds/item-gone.ts +20 -12
- package/src/hq/kinds/item-msg.ts +21 -6
- package/src/hq/kinds/item.ts +22 -13
- package/src/hq/kinds/items-read.ts +4 -0
- package/src/hq/kinds/kind.ts +9 -0
- package/src/hq/kinds/presence.ts +21 -3
- package/src/hq/kinds/prompt.ts +1 -0
- package/src/hq/kinds/reflection.ts +1 -0
- package/src/hq/kinds/report.ts +8 -3
- package/src/hq/kinds/thread-event.ts +105 -0
- package/src/hq/lead-order.ts +5 -5
- package/src/hq/machine-key.ts +10 -3
- package/src/hq/machine-notes.ts +3 -2
- package/src/hq/outbox.ts +2 -153
- package/src/hq/owner-switch.ts +61 -0
- package/src/hq/replica.ts +165 -18
- package/src/hq/report-facts.ts +26 -3
- package/src/hq/report.ts +30 -6
- package/src/hq/shapes-words.ts +31 -0
- package/src/hq/switch.ts +29 -60
- package/src/hq/terminal-hop.ts +1 -1
- package/src/hq/thread-events.ts +91 -0
- package/src/hq/thread-sync.ts +29 -48
- package/src/http/door-forward.ts +3 -3
- package/src/http/hop-names.ts +3 -3
- package/src/http/owner-word.ts +7 -2
- package/src/identities/collection.ts +2 -3
- package/src/identities/identities.ts +43 -6
- package/src/init-repo.ts +12 -0
- package/src/ledger/db.ts +19 -6
- package/src/ledger/git-scan.ts +23 -9
- package/src/ledger/live-runs.ts +1 -12
- package/src/ledger/record-kept.ts +40 -12
- package/src/ledger/run-log.ts +2 -1
- package/src/media-store/backup/daemon.ts +37 -22
- package/src/media-store/backup/facts.ts +63 -0
- package/src/media-store/backup/prune.ts +2 -5
- package/src/media-store/backup/restore.ts +15 -4
- package/src/media-store/backup/retention.ts +2 -2
- package/src/media-store/backup/sources.ts +23 -105
- package/src/media-store/backup/ssh-space.ts +202 -0
- package/src/media-store/backup/ssh-target.ts +74 -0
- package/src/media-store/backup/target-send.ts +162 -0
- package/src/media-store/backup/watch.ts +26 -19
- package/src/media-store/copy/config.ts +5 -4
- package/src/media-store/copy/copy.ts +11 -6
- package/src/media-store/copy/proof.ts +17 -10
- package/src/media-store/copy/snapshot.ts +29 -22
- package/src/media-store/copy/store.ts +2 -10
- package/src/media-store/copy/stream.ts +7 -2
- package/src/media-store/daemon.ts +8 -5
- package/src/media-store/db.ts +6 -1
- package/src/media-store/forget-one.ts +14 -3
- package/src/media-store/hq-find.ts +1 -3
- package/src/media-store/hq-send.ts +4 -5
- package/src/orchestrator/brief.md +1 -1
- package/src/orchestrator/guards.ts +0 -3
- package/src/orchestrator/lead-shape.ts +5 -4
- package/src/orchestrator/now.ts +1 -1
- package/src/orchestrator/places-look.ts +45 -17
- package/src/orchestrator/places-shape.ts +17 -2
- package/src/orchestrator/places.ts +1 -1
- package/src/orchestrator/presence.ts +15 -5
- package/src/orchestrator/role-shape.ts +12 -21
- package/src/orchestrator/role.ts +7 -58
- package/src/orchestrator/routes.ts +26 -17
- package/src/orchestrator/sessions-shape.ts +48 -3
- package/src/orchestrator/sessions.ts +5 -8
- package/src/orchestrator/start.ts +3 -10
- package/src/orchestrator/started.ts +1 -1
- package/src/orchestrator/talk-key.ts +21 -0
- package/src/orchestrator/unheard.ts +1 -1
- package/src/recordings/recorder-app/Editor.swift +6 -0
- package/src/recordings/recorder-app/main.swift +3 -0
- package/src/reflections/reflection-close.ts +2 -1
- package/src/reflections/reflections-queue.ts +9 -6
- package/src/release/public-clean.ts +40 -15
- package/src/repo-config.ts +18 -6
- package/src/review/answer-kinds.ts +15 -3
- package/src/review/band.ts +53 -16
- package/src/review/cell-copy.ts +27 -0
- package/src/review/cells.ts +246 -35
- package/src/review/events.ts +24 -4
- package/src/review/expect.ts +128 -0
- package/src/review/file-tags.ts +9 -0
- package/src/review/folders.ts +216 -0
- package/src/review/format.ts +113 -25
- package/src/review/gone.ts +10 -86
- package/src/review/hook-ask.ts +58 -0
- package/src/review/inbox-hook.ts +6 -3
- package/src/review/inbox-read.ts +81 -13
- package/src/review/instruction-guards.ts +56 -1
- package/src/review/instructions.ts +25 -1
- package/src/review/item-db.ts +112 -28
- package/src/review/item-hq.ts +119 -0
- package/src/review/item-rows.ts +96 -52
- package/src/review/kind-catalog.ts +2 -0
- package/src/review/kinds.ts +7 -4
- package/src/review/live-post.ts +20 -6
- package/src/review/live-view.ts +18 -1
- package/src/review/media-away.ts +35 -0
- package/src/review/mentions.ts +3 -6
- package/src/review/model.ts +124 -12
- package/src/review/notes.ts +4 -4
- package/src/review/object-read.ts +26 -7
- package/src/review/parties.ts +16 -0
- package/src/review/phone-push.ts +11 -10
- package/src/review/previews-job.ts +49 -0
- package/src/review/previews.ts +50 -28
- package/src/review/push.ts +24 -40
- package/src/review/referring.ts +2 -2
- package/src/review/reflection-object.ts +24 -11
- package/src/review/refs.ts +143 -0
- package/src/review/reply-guards.ts +71 -0
- package/src/review/routes.ts +87 -31
- package/src/review/search-index.ts +6 -10
- package/src/review/search-job.ts +4 -6
- package/src/review/search-ocr.ts +1 -1
- package/src/review/secret-route.ts +13 -9
- package/src/review/store-index.ts +1 -1
- package/src/review/store.ts +171 -556
- package/src/review/supersede.ts +3 -3
- package/src/review/take-back.ts +1 -2
- package/src/review/thread-code.ts +101 -0
- package/src/review/thread-md.ts +127 -0
- package/src/review/thread-query.ts +67 -0
- package/src/review/threads.ts +91 -16
- package/src/review/traces.ts +17 -5
- package/src/review/verdict-items.ts +4 -4
- package/src/review/view-layout.ts +3 -0
- package/src/review/wait.ts +2 -2
- package/src/review/wakes.ts +7 -3
- package/src/review/watchers.ts +1 -10
- package/src/review/working-guards.ts +39 -0
- package/src/scaffold/jsonc-spans.ts +42 -0
- package/src/scaffold/starter-house.ts +85 -0
- package/src/secrets/about-words.ts +33 -0
- package/src/secrets/archive.ts +2 -2
- package/src/secrets/audit-run.ts +53 -0
- package/src/secrets/audit.ts +407 -0
- package/src/secrets/changed-mark.ts +15 -0
- package/src/secrets/clip.ts +29 -0
- package/src/secrets/held.ts +4 -4
- package/src/secrets/lapse.ts +1 -1
- package/src/secrets/list.ts +9 -4
- package/src/secrets/read.ts +5 -1
- package/src/secrets/ref-state.ts +18 -0
- package/src/secrets/registry-rows.ts +18 -0
- package/src/secrets/secret-ref.ts +42 -0
- package/src/secrets/token-siblings.ts +60 -0
- package/src/secrets/who-reads.ts +25 -20
- package/src/serve/frame-part.ts +2 -1
- package/src/serve/hook-thread.ts +37 -0
- package/src/serve/hook-work.ts +92 -0
- package/src/serve/hook-worker.ts +57 -0
- package/src/serve/hub-app/activity-view.tsx +6 -6
- package/src/serve/hub-app/admin-view.tsx +7 -6
- package/src/serve/hub-app/advisor-app.tsx +77 -14
- package/src/serve/hub-app/advisor-face.tsx +21 -7
- package/src/serve/hub-app/advisor-host.ts +102 -10
- package/src/serve/hub-app/advisors-model.ts +234 -0
- package/src/serve/hub-app/advisors-rights.tsx +66 -0
- package/src/serve/hub-app/advisors-st.ts +430 -34
- package/src/serve/hub-app/advisors-view.tsx +330 -233
- package/src/serve/hub-app/advisors.css +134 -21
- package/src/serve/hub-app/app-bridge.ts +95 -5
- package/src/serve/hub-app/ask-steps.tsx +6 -3
- package/src/serve/hub-app/auto-text.tsx +44 -4
- package/src/serve/hub-app/backups-st.ts +55 -0
- package/src/serve/hub-app/backups-view.tsx +115 -0
- package/src/serve/hub-app/backups.css +33 -0
- package/src/serve/hub-app/card-head.tsx +1 -1
- package/src/serve/hub-app/check-view.tsx +7 -7
- package/src/serve/hub-app/col-card.tsx +4 -4
- package/src/serve/hub-app/col-list-page.tsx +2 -1
- package/src/serve/hub-app/col-tables.ts +5 -4
- package/src/serve/hub-app/comfy-view.tsx +1 -1
- package/src/serve/hub-app/commands/commands-page.tsx +2 -2
- package/src/serve/hub-app/controls.css +23 -2
- package/src/serve/hub-app/cycle-button.tsx +2 -2
- package/src/serve/hub-app/database-st.ts +40 -11
- package/src/serve/hub-app/database-view.tsx +67 -2
- package/src/serve/hub-app/database.css +3 -0
- package/src/serve/hub-app/dock-view.tsx +1 -1
- package/src/serve/hub-app/drives-page.tsx +309 -0
- package/src/serve/hub-app/drives-st.ts +486 -0
- package/src/serve/hub-app/drives.css +122 -0
- package/src/serve/hub-app/editor/doc-editor.tsx +4 -3
- package/src/serve/hub-app/empty-section.tsx +1 -1
- package/src/serve/hub-app/entry-list.tsx +1 -1
- package/src/serve/hub-app/floating.tsx +0 -1
- package/src/serve/hub-app/frame-refusal.ts +13 -0
- package/src/serve/hub-app/geometry-view.tsx +3 -3
- package/src/serve/hub-app/hash-route.ts +12 -5
- package/src/serve/hub-app/header-bar.tsx +2 -1
- package/src/serve/hub-app/home-pages.ts +40 -0
- package/src/serve/hub-app/home-st.ts +8 -1
- package/src/serve/hub-app/home-strip.tsx +22 -20
- package/src/serve/hub-app/home.html +2 -1
- package/src/serve/hub-app/hub-app.tsx +16 -3
- package/src/serve/hub-app/hub.css +72 -5
- package/src/serve/hub-app/icons.tsx +8 -0
- package/src/serve/hub-app/identities-view.tsx +5 -4
- package/src/serve/hub-app/inbox-view.tsx +10 -10
- package/src/serve/hub-app/index.html +2 -1
- package/src/serve/hub-app/insights-view.tsx +8 -8
- package/src/serve/hub-app/keys.ts +31 -11
- package/src/serve/hub-app/layout-st.ts +4 -1
- package/src/serve/hub-app/lightbox-zoom.css +29 -19
- package/src/serve/hub-app/list-filter.tsx +46 -5
- package/src/serve/hub-app/live-socket.ts +12 -6
- package/src/serve/hub-app/live-sources.ts +137 -66
- package/src/serve/hub-app/machine-groups.ts +87 -0
- package/src/serve/hub-app/machines-st.ts +100 -3
- package/src/serve/hub-app/machines-view.tsx +50 -3
- package/src/serve/hub-app/machines.css +22 -0
- package/src/serve/hub-app/main-panel.css +16 -10
- package/src/serve/hub-app/main-panel.tsx +6 -8
- package/src/serve/hub-app/markdown.css +12 -2
- package/src/serve/hub-app/md.ts +60 -18
- package/src/serve/hub-app/media-view.tsx +21 -12
- package/src/serve/hub-app/messages/messages-page.tsx +15 -6
- package/src/serve/hub-app/new-thread.tsx +6 -3
- package/src/serve/hub-app/orchestrator-line.tsx +1 -1
- package/src/serve/hub-app/orchestrator-places.tsx +28 -2
- package/src/serve/hub-app/orchestrator.css +5 -0
- package/src/serve/hub-app/page-keys.ts +4 -1
- package/src/serve/hub-app/pages-frames.tsx +2 -1
- package/src/serve/hub-app/palette-st.ts +285 -60
- package/src/serve/hub-app/palette-view.tsx +96 -18
- package/src/serve/hub-app/pane-boundary.tsx +3 -2
- package/src/serve/hub-app/panel-head.tsx +1 -1
- package/src/serve/hub-app/panel-source.ts +16 -5
- package/src/serve/hub-app/panel-tint.ts +3 -18
- package/src/serve/hub-app/panel-walk.ts +1 -1
- package/src/serve/hub-app/pic.tsx +37 -0
- package/src/serve/hub-app/pick-kinds.ts +101 -0
- package/src/serve/hub-app/places-svc.ts +44 -10
- package/src/serve/hub-app/plan-view.tsx +2 -2
- package/src/serve/hub-app/planned-view.tsx +6 -5
- package/src/serve/hub-app/polled.ts +17 -6
- package/src/serve/hub-app/presence-st.ts +9 -1
- package/src/serve/hub-app/processes-view.tsx +16 -10
- package/src/serve/hub-app/project-bar.tsx +85 -29
- package/src/serve/hub-app/project-list.tsx +7 -19
- package/src/serve/hub-app/projects-svc.ts +50 -20
- package/src/serve/hub-app/rail-groups.ts +1 -0
- package/src/serve/hub-app/recordings-view.tsx +26 -26
- package/src/serve/hub-app/ref-list-slot.ts +10 -0
- package/src/serve/hub-app/ref-pill.ts +58 -0
- package/src/serve/hub-app/reflections-page.tsx +3 -3
- package/src/serve/hub-app/releases/releases-page.tsx +6 -6
- package/src/serve/hub-app/repo-mark.tsx +29 -0
- package/src/serve/hub-app/repo-sections.ts +16 -9
- package/src/serve/hub-app/repo-st.ts +67 -14
- package/src/serve/hub-app/review/advisor-add.tsx +155 -0
- package/src/serve/hub-app/review/advisor-bar.tsx +92 -22
- package/src/serve/hub-app/review/advisor-invite.tsx +66 -0
- package/src/serve/hub-app/review/ask-proof.tsx +4 -3
- package/src/serve/hub-app/review/attach-view.tsx +7 -6
- package/src/serve/hub-app/review/box-view.ts +35 -18
- package/src/serve/hub-app/review/box-zoom.tsx +1 -1
- package/src/serve/hub-app/review/copy-button.tsx +29 -0
- package/src/serve/hub-app/review/diff-mode.ts +41 -0
- package/src/serve/hub-app/review/diff-view.tsx +92 -19
- package/src/serve/hub-app/review/doc-body.tsx +2 -2
- package/src/serve/hub-app/review/dock.tsx +51 -23
- package/src/serve/hub-app/review/draft-body.tsx +2 -2
- package/src/serve/hub-app/review/group-block.tsx +8 -8
- package/src/serve/hub-app/review/instructions-view.tsx +3 -9
- package/src/serve/hub-app/review/item-verdict.tsx +1 -0
- package/src/serve/hub-app/review/kind-view.tsx +13 -19
- package/src/serve/hub-app/review/kit.tsx +16 -8
- package/src/serve/hub-app/review/lane-bar.tsx +1 -1
- package/src/serve/hub-app/review/lightbox.tsx +1 -1
- package/src/serve/hub-app/review/line-window.ts +51 -8
- package/src/serve/hub-app/review/live-bar.tsx +5 -2
- package/src/serve/hub-app/review/live-view.tsx +11 -11
- package/src/serve/hub-app/review/mention-st.ts +9 -38
- package/src/serve/hub-app/review/object-panel.tsx +39 -14
- package/src/serve/hub-app/review/outbox-st.ts +200 -0
- package/src/serve/hub-app/review/pano-view.tsx +2 -2
- package/src/serve/hub-app/review/phone-top.tsx +2 -1
- package/src/serve/hub-app/review/question-views.tsx +172 -40
- package/src/serve/hub-app/review/review-cells.tsx +200 -43
- package/src/serve/hub-app/review/review-host.ts +10 -1
- package/src/serve/hub-app/review/review-kit.ts +21 -5
- package/src/serve/hub-app/review/review-list.tsx +44 -83
- package/src/serve/hub-app/review/review-page.tsx +6 -5
- package/src/serve/hub-app/review/review-st.ts +87 -33
- package/src/serve/hub-app/review/review-thread.tsx +276 -156
- package/src/serve/hub-app/review/review-views.tsx +101 -63
- package/src/serve/hub-app/review/secret-facts.ts +2 -1
- package/src/serve/hub-app/review/share-lines.tsx +40 -0
- package/src/serve/hub-app/review/start-st.ts +137 -0
- package/src/serve/hub-app/review/start-thread.tsx +104 -0
- package/src/serve/hub-app/review/superseded-runs.ts +20 -2
- package/src/serve/hub-app/review/thread-close.tsx +1 -1
- package/src/serve/hub-app/review/thread-control.tsx +5 -4
- package/src/serve/hub-app/review/thread-st.ts +254 -40
- package/src/serve/hub-app/review/thread-views.ts +3 -2
- package/src/serve/hub-app/review/trailer-body.tsx +6 -6
- package/src/serve/hub-app/review/trailer-page.tsx +33 -33
- package/src/serve/hub-app/review/trailer-voices.tsx +10 -10
- package/src/serve/hub-app/review/zoom-still.tsx +60 -0
- package/src/serve/hub-app/review.css +179 -56
- package/src/serve/hub-app/row-acts.tsx +2 -0
- package/src/serve/hub-app/row-face.tsx +0 -1
- package/src/serve/hub-app/run-page.tsx +236 -0
- package/src/serve/hub-app/running-rows.tsx +2 -2
- package/src/serve/hub-app/search-view.tsx +1 -1
- package/src/serve/hub-app/secret-cli.tsx +32 -0
- package/src/serve/hub-app/secret-readable.tsx +59 -0
- package/src/serve/hub-app/secret-refs.ts +173 -0
- package/src/serve/hub-app/secrets-page.tsx +2 -2
- package/src/serve/hub-app/section-head.tsx +3 -1
- package/src/serve/hub-app/seen-rows.ts +72 -0
- package/src/serve/hub-app/shared-faces.tsx +32 -0
- package/src/serve/hub-app/side-frame-view.tsx +115 -0
- package/src/serve/hub-app/side-frame.ts +120 -0
- package/src/serve/hub-app/site/site-part.tsx +7 -7
- package/src/serve/hub-app/social/calendar.tsx +1 -1
- package/src/serve/hub-app/social/comms-page.tsx +3 -3
- package/src/serve/hub-app/social/copy-forms.ts +31 -0
- package/src/serve/hub-app/social/kit.tsx +42 -23
- package/src/serve/hub-app/social/post-card.tsx +5 -5
- package/src/serve/hub-app/social/post-page.tsx +2 -2
- package/src/serve/hub-app/social/social-page.tsx +31 -12
- package/src/serve/hub-app/social/social-st.ts +8 -2
- package/src/serve/hub-app/social/stage-popup.tsx +6 -6
- package/src/serve/hub-app/social.css +7 -1
- package/src/serve/hub-app/source-page.tsx +2 -0
- package/src/serve/hub-app/space-view.tsx +3 -3
- package/src/serve/hub-app/stores/stores-page.tsx +18 -17
- package/src/serve/hub-app/terminal-gone.tsx +41 -0
- package/src/serve/hub-app/terminal-history-st.ts +3 -0
- package/src/serve/hub-app/terminal-list-st.ts +27 -3
- package/src/serve/hub-app/terminal-pages.tsx +50 -10
- package/src/serve/hub-app/terminal-panel.tsx +3 -3
- package/src/serve/hub-app/terminal-picture.ts +78 -0
- package/src/serve/hub-app/terminal-sources.tsx +318 -48
- package/src/serve/hub-app/terminal-st.ts +57 -2
- package/src/serve/hub-app/terminal-tab.tsx +2 -1
- package/src/serve/hub-app/terminal.css +5 -0
- package/src/serve/hub-app/test-view.tsx +2 -2
- package/src/serve/hub-app/tests-view.tsx +3 -3
- package/src/serve/hub-app/thread-row.tsx +12 -2
- package/src/serve/hub-app/time-charts.tsx +3 -2
- package/src/serve/hub-app/time-pages.tsx +3 -2
- package/src/serve/hub-app/time-view.tsx +6 -5
- package/src/serve/hub-app/timeline-chart.tsx +1 -1
- package/src/serve/hub-app/timeline-view.tsx +12 -4
- package/src/serve/hub-app/tree-build.ts +3 -3
- package/src/serve/hub-app/url-faces.ts +3 -4
- package/src/serve/hub-app/url-forms.tsx +112 -20
- package/src/serve/hub-app/url-needs.ts +31 -0
- package/src/serve/hub-app/urls-svc.ts +163 -25
- package/src/serve/hub-app/urls-view.tsx +74 -74
- package/src/serve/hub-app/urls.css +62 -5
- package/src/serve/hub-app/vault-view.tsx +13 -13
- package/src/serve/hub-app/veille/veille-page.tsx +12 -11
- package/src/serve/hub-app/view-layout.css +2 -0
- package/src/serve/hub-app/when-view.tsx +2 -2
- package/src/serve/hub-app/wikis-view.tsx +1 -1
- package/src/serve/hub-app/word-refs.ts +12 -0
- package/src/serve/hub-app/words.tsx +25 -8
- package/src/serve/picture-types.ts +10 -0
- package/src/serve/project-gutter-route.ts +18 -13
- package/src/serve/read-thread.ts +31 -12
- package/src/serve/read-worker.ts +7 -0
- package/src/serve/secret-ref-routes.ts +71 -0
- package/src/serve/serve-hub.ts +26 -1
- package/src/serve/terminal-claudes.ts +44 -7
- package/src/serve/terminal-guard.ts +5 -1
- package/src/serve/terminal-host.ts +5 -1
- package/src/serve/terminal-paste.ts +49 -0
- package/src/serve/terminal-record.ts +8 -2
- package/src/serve/terminal-route.ts +19 -6
- package/src/serve/tracked-watch.ts +13 -11
- package/src/setup-house.ts +333 -0
- package/src/shipkit-files.ts +14 -3
- package/src/shot/film-box.ts +1 -9
- package/src/social/discord-layout.ts +1 -1
- package/src/social/kind-pages.ts +11 -5
- package/src/social/media-limit.ts +18 -8
- package/src/social/media-of.ts +5 -5
- package/src/social/publish/discord.ts +1 -1
- package/src/social/routes.ts +6 -3
- package/src/start-repo.ts +5 -0
- package/src/suite/judge-suites.ts +9 -51
- package/src/suite/red-alone.ts +69 -0
- package/src/suite/suite-cli.ts +27 -26
- package/src/trailer/titles.ts +2 -2
- package/src/urls/added.ts +34 -15
- package/src/urls/fill.ts +127 -0
- package/src/urls/frame.ts +39 -0
- package/src/urls/places.ts +19 -13
- package/src/urls/routes.ts +30 -10
- package/src/urls/rows.ts +98 -23
- package/src/urls/totp.ts +121 -0
- package/src/urls/unit.ts +95 -36
- package/src/urls/write-routes.ts +141 -25
- package/src/vault/vault-import.ts +2 -9
- package/src/vault/vault-init.ts +2 -1
- package/src/vault/vault-restore.ts +1 -9
- package/src/veille/chrome.ts +8 -18
- package/src/veille/identity.ts +6 -5
- package/src/wiki/graph-page.ts +27 -37
- package/src/wiki/graph-positions.ts +13 -3
- package/src/wiki/graph-sim.ts +77 -0
- package/src/wiki/run-wiki.ts +12 -1
- package/src/advisors/edge/certs.ts +0 -20
- package/src/advisors/edge/jwt.ts +0 -76
- package/src/advisors/edge/worker.ts +0 -52
- package/src/advisors/r2.ts +0 -46
- package/src/cli/channel-run.ts +0 -17
- package/src/cli/cmd_Channel.ts +0 -43
- package/src/media-store/backup/thread-copy.ts +0 -343
- package/src/orchestrator/channel-declare.ts +0 -58
- package/src/orchestrator/channel.ts +0 -226
- package/src/review/move.ts +0 -492
- package/src/serve/hub-app/panel-tint.css +0 -6
|
@@ -16,6 +16,8 @@ import { plainClick } from '../home-st.ts'
|
|
|
16
16
|
import type { RepoSt } from '../repo-st.ts'
|
|
17
17
|
import { PhoneTop } from '../review/phone-top.tsx'
|
|
18
18
|
import { brandVar, CopyIcon, CopyRow, ErrorLine, Go, KeptFold, Lightbox, Logo, Md, MdInline, Toast } from './kit.tsx'
|
|
19
|
+
import { CopyButton } from '../review/copy-button.tsx'
|
|
20
|
+
import { copyAll, copyForm } from './copy-forms.ts'
|
|
19
21
|
import { PostCard } from './post-card.tsx'
|
|
20
22
|
import { Problems } from './problems.tsx'
|
|
21
23
|
import { stepRefs } from '../../../identities/steps.ts'
|
|
@@ -24,6 +26,8 @@ import { AUTOMATION, fileName, LEGAL, linksText, ME, type DeskAccount, type Desk
|
|
|
24
26
|
import type { SocialSt } from './social-st.ts'
|
|
25
27
|
import { stepLayout, textKind, type RefKind } from './step-layout.ts'
|
|
26
28
|
import { tip } from '../tips.ts'
|
|
29
|
+
import { ReadableLine } from '../secret-readable.tsx'
|
|
30
|
+
import { ViaCli } from '../secret-cli.tsx'
|
|
27
31
|
|
|
28
32
|
export const SocialPage = observer(({ app }: { app: RepoSt }) => {
|
|
29
33
|
const so = app.social
|
|
@@ -42,7 +46,7 @@ export const SocialPage = observer(({ app }: { app: RepoSt }) => {
|
|
|
42
46
|
) : (
|
|
43
47
|
<>
|
|
44
48
|
<div className="rv-phonetop">
|
|
45
|
-
<button className="ghost" onClick={() => so.showPhoneList()}>
|
|
49
|
+
<button className="ghost" onClick={() => so.showPhoneList()} {...tip('back to the list of accounts')}>
|
|
46
50
|
◂ accounts
|
|
47
51
|
</button>
|
|
48
52
|
<b className="so-ellip">{so.currentAccount?.name ?? (so.onLegal ? 'company and legal' : so.socialIdentity?.name)}</b>
|
|
@@ -167,7 +171,10 @@ const LegalCard = observer(({ so, i, on }: { so: SocialSt; i: DeskIdentity; on:
|
|
|
167
171
|
</span>
|
|
168
172
|
<span className="so-atext">
|
|
169
173
|
<b className="so-ellip">Company and legal</b>
|
|
170
|
-
<span className="rv-dim rv-small so-ellip">
|
|
174
|
+
<span className="rv-dim rv-small so-ellip">
|
|
175
|
+
{i.legal != null && i.legal.owner !== i.id ? `${i.legal.ownerName}'s · ` : ''}
|
|
176
|
+
{i.legal?.rows.length ?? 0} facts for the forms · payouts, taxes
|
|
177
|
+
</span>
|
|
171
178
|
</span>
|
|
172
179
|
<span className={`so-badge ${live ? 't-ok solid' : 't-dim'}`}>{live ? 'online' : 'to create'}</span>
|
|
173
180
|
</button>
|
|
@@ -211,7 +218,7 @@ const AccountCard = observer(({ so, a, on }: { so: SocialSt; a: DeskAccount; on:
|
|
|
211
218
|
const PlaceRow = observer(({ so, a, id, name, when, on }: { so: SocialSt; a: DeskAccount; id: string; name: string; when: string; on: boolean }) => {
|
|
212
219
|
const c = so.counts(a, id)
|
|
213
220
|
return (
|
|
214
|
-
<button className={`so-placerow${on && so.place === id ? ' on' : ''}`} onClick={() => so.pickSocial(a.identity, a.id, id)}>
|
|
221
|
+
<button className={`so-placerow${on && so.place === id ? ' on' : ''}`} onClick={() => so.pickSocial(a.identity, a.id, id)} {...tip(`show ${name} of ${a.name}: its posts and its messages`, null, 'right')}>
|
|
215
222
|
<span className={`so-pdot${so.placeDone(a, id) ? ' done' : ''}`} />
|
|
216
223
|
<b className="so-ellip so-pname">{name}</b>
|
|
217
224
|
<span className="rv-dim so-ellip so-grow">{when}</span>
|
|
@@ -304,7 +311,7 @@ export const IdentityPage = observer(({ so, i }: { so: SocialSt; i: DeskIdentity
|
|
|
304
311
|
<span className={`so-badge ${a.live ? 't-ok solid' : 't-dim'}`}>{a.live ? 'online' : 'to create'}</span>
|
|
305
312
|
{a.live ? <CopyIcon so={so} text={a.live} k={`${i.id}/link/${a.id}`} title="copy the link" /> : null}
|
|
306
313
|
{a.live || a.profile ? (
|
|
307
|
-
<a className="so-icon" href={a.live || a.profile} target="_blank" rel="noreferrer" {...tip(
|
|
314
|
+
<a className="so-icon" href={a.live || a.profile} target="_blank" rel="noreferrer" {...tip(a.live ? `open the profile of ${a.name} in a new tab` : `open ${a.profile} in a new tab: the profile it will have, not online yet`)}>
|
|
308
315
|
↗
|
|
309
316
|
</a>
|
|
310
317
|
) : null}
|
|
@@ -381,7 +388,7 @@ const PictureActions = observer(({ so, i, f }: { so: SocialSt; i: DeskIdentity;
|
|
|
381
388
|
{so.copiedKey === key ? '✓' : '⧉'}
|
|
382
389
|
</button>
|
|
383
390
|
) : null}
|
|
384
|
-
<a className="so-icon" href={url} download={fileName(f.file)} {...tip(
|
|
391
|
+
<a className="so-icon" href={url} download={fileName(f.file)} {...tip(`save ${fileName(f.file)} into your downloads`)}>
|
|
385
392
|
⬇
|
|
386
393
|
</a>
|
|
387
394
|
{!so.phone ? (
|
|
@@ -514,12 +521,22 @@ export const LegalPage = observer(({ so, i }: { so: SocialSt; i: DeskIdentity })
|
|
|
514
521
|
return (
|
|
515
522
|
<div className="so-colin">
|
|
516
523
|
<ErrorLine so={so} />
|
|
517
|
-
<
|
|
518
|
-
|
|
524
|
+
<div className="so-pagehead">
|
|
525
|
+
<h2 className="so-h so-big so-grow">Company and legal</h2>
|
|
526
|
+
<CopyButton text={copyAll(l.rows)} label="copy all" says="every row below as « field: value » lines, the 🔒 ones included: for an email to an accountant" />
|
|
527
|
+
</div>
|
|
528
|
+
{l.owner === i.id ? null : (
|
|
529
|
+
<div className="rv-small">
|
|
530
|
+
the company of <b>{l.ownerName}</b>: {i.name} sells under it as a brand; forms take its legal name
|
|
531
|
+
</div>
|
|
532
|
+
)}
|
|
533
|
+
{l.brands.length > 0 && l.owner === i.id ? <div className="rv-small">brands: {l.brands.join(', ')}, each sells under this company; forms take its legal name</div> : null}
|
|
534
|
+
<div className="rv-dim rv-small">{l.owner}/legal.md, and the 🔒 rows of legal.local.md (out of git, never published)</div>
|
|
519
535
|
<KeptFold so={so} card="legal/rows" title="For the forms" right={<span className="rv-dim rv-small">{l.rows.length}</span>} flush>
|
|
520
|
-
{l.rows.map((r) =>
|
|
521
|
-
|
|
522
|
-
|
|
536
|
+
{l.rows.map((r) => {
|
|
537
|
+
const f = copyForm(r.field, r.value)
|
|
538
|
+
return <CopyRow key={`${r.private}/${r.field}`} so={so} k={`${i.id}/legal/${r.field}`} field={`${r.private ? '🔒 ' : ''}${r.field}`} value={f.shown} copy={f.form} />
|
|
539
|
+
})}
|
|
523
540
|
</KeptFold>
|
|
524
541
|
{l.open ? (
|
|
525
542
|
<KeptFold so={so} card="legal/open" title="Open questions (an accountant answers them)" summary={l.open} tone="warn">
|
|
@@ -703,8 +720,10 @@ const SecretField = observer(({ so, a, name }: { so: SocialSt; a: DeskAccount; n
|
|
|
703
720
|
if (e.key === 'Enter') send()
|
|
704
721
|
}}
|
|
705
722
|
/>
|
|
706
|
-
<button onClick={send}>store</button>
|
|
723
|
+
<button onClick={send} {...tip(`keep the value as the secret ${name} of this account; the field empties once it is stored`, 'Enter')}>store</button>
|
|
724
|
+
<ViaCli name={name} />
|
|
707
725
|
{err != null ? <span className="so-error">✗ {err}</span> : null}
|
|
726
|
+
<ReadableLine r={so.secretReaders[name]} faces={so.st.home.projects} />
|
|
708
727
|
</span>
|
|
709
728
|
)
|
|
710
729
|
})
|
|
@@ -719,7 +738,7 @@ const Checklist = observer(({ so, a }: { so: SocialSt; a: DeskAccount }) => {
|
|
|
719
738
|
<div className="so-progress" style={{ '--p': `${(100 * done) / a.steps.length}%` } as CSSProperties} />
|
|
720
739
|
{a.steps.map((step, i) => (
|
|
721
740
|
<div key={i} className={`so-step${so.stepDone(a, i) ? ' done' : ''}`}>
|
|
722
|
-
<input type="checkbox" checked={so.stepDone(a, i)} onChange={() => so.toggleStep(a, i)} aria-label={`step ${i + 1}`} />
|
|
741
|
+
<input type="checkbox" checked={so.stepDone(a, i)} onChange={() => so.toggleStep(a, i)} aria-label={`step ${i + 1}`} {...tip(so.stepDone(a, i) ? `mark step ${i + 1} as not done` : `mark step ${i + 1} as done`)} />
|
|
723
742
|
<b className="rv-dim so-stepn">{i + 1}</b>
|
|
724
743
|
<div className="so-steptext">
|
|
725
744
|
<StepText so={so} a={a} index={i} text={step.text} />
|
|
@@ -16,6 +16,7 @@ import { copyText, postJson } from '../review/review-kit.ts'
|
|
|
16
16
|
import { serialWrites } from './serial-writes.ts'
|
|
17
17
|
import { threadHost } from '../review/thread-control.tsx'
|
|
18
18
|
import type { PostObject } from '../../../social/post-object.ts'
|
|
19
|
+
import type { Readable } from '../../../secrets/who-reads.ts'
|
|
19
20
|
import {
|
|
20
21
|
caption,
|
|
21
22
|
commsQuery,
|
|
@@ -96,6 +97,8 @@ export class SocialSt {
|
|
|
96
97
|
stats: Record<string, Record<string, string>> = {}
|
|
97
98
|
/** each secret a setup step takes: stored, missing or unknown; never a value */
|
|
98
99
|
secrets: Record<string, string> = {}
|
|
100
|
+
/** who may read each of them, as the hub's server says it (secrets/who-reads.ts) */
|
|
101
|
+
secretReaders: Record<string, Readable> = {}
|
|
99
102
|
/** what he typed in a step's secret field, sent once and dropped */
|
|
100
103
|
secretDrafts = new Map<string, string>()
|
|
101
104
|
secretErrs = new Map<string, string>()
|
|
@@ -385,8 +388,11 @@ export class SocialSt {
|
|
|
385
388
|
try {
|
|
386
389
|
const r = await reach(this.st.url('/api/social/secrets.json'))
|
|
387
390
|
if (!r.ok) return
|
|
388
|
-
const body = (await r.json()) as Record<string, string>
|
|
389
|
-
runInAction(() =>
|
|
391
|
+
const body = (await r.json()) as { held: Record<string, string>; readable: Record<string, Readable> }
|
|
392
|
+
runInAction(() => {
|
|
393
|
+
this.secrets = body.held
|
|
394
|
+
this.secretReaders = body.readable
|
|
395
|
+
})
|
|
390
396
|
} catch {
|
|
391
397
|
// the field still takes a value: its state shows as unknown
|
|
392
398
|
}
|
|
@@ -96,7 +96,7 @@ const GoesTo = observer(({ st }: { st: StageSt }) => {
|
|
|
96
96
|
{' '}
|
|
97
97
|
{a.max !== null ? `${post.length}/${a.max}` : post.length} {over || post.refused ? '✗' : '✓'}
|
|
98
98
|
{a.places.length > 0 ? (
|
|
99
|
-
<select value={st.place?.account === a.id ? st.place.place : post.place} onChange={(e) => st.setPlace(a.id, e.target.value, post.place)}>
|
|
99
|
+
<select value={st.place?.account === a.id ? st.place.place : post.place} onChange={(e) => st.setPlace(a.id, e.target.value, post.place)} {...tip(`the channel of ${a.name} the post goes to`)}>
|
|
100
100
|
{channels.map((c) => (
|
|
101
101
|
<option key={c.id} value={c.id}>
|
|
102
102
|
#{c.id}
|
|
@@ -146,7 +146,7 @@ export const StagePopup = observer(({ st, url, close }: { st: StageSt; url: (p:
|
|
|
146
146
|
<b>Stage a post</b>
|
|
147
147
|
<span className="rv-dim">{d?.identity ? `speaks as ${d.identity.name}${d.identity.adult ? ' (18+)' : ''}` : 'reading the thread…'}</span>
|
|
148
148
|
<span className="sp" />
|
|
149
|
-
<button className="ghost" onClick={close} {...tip('close', 'Escape')}>
|
|
149
|
+
<button className="ghost" onClick={close} {...tip('close without staging: nothing is written', 'Escape')}>
|
|
150
150
|
esc
|
|
151
151
|
</button>
|
|
152
152
|
</div>
|
|
@@ -156,7 +156,7 @@ export const StagePopup = observer(({ st, url, close }: { st: StageSt; url: (p:
|
|
|
156
156
|
<Media st={st} url={url} />
|
|
157
157
|
<div className="sg-strip">
|
|
158
158
|
{d?.media.map((m) => (
|
|
159
|
-
<button key={m.key} className={`rv-chip${m.key === st.pick ? ' on' : ''}`} onClick={() => st.setPick(m.key)} {...tip(m.key)}>
|
|
159
|
+
<button key={m.key} className={`rv-chip${m.key === st.pick ? ' on' : ''}`} onClick={() => st.setPick(m.key)} {...tip(`take this one as the draft's media\n${m.key}`)}>
|
|
160
160
|
{m.kind === 'clip' ? '▶ ' : ''}
|
|
161
161
|
{m.label}
|
|
162
162
|
</button>
|
|
@@ -213,7 +213,7 @@ export const StagePopup = observer(({ st, url, close }: { st: StageSt; url: (p:
|
|
|
213
213
|
<div className="sg-chips">
|
|
214
214
|
<span className="sg-from">tags</span>
|
|
215
215
|
{d.tags.map((t) => (
|
|
216
|
-
<button key={t} className={`rv-chip${st.tags.includes(t) ? ' on' : ''}`} onClick={() => st.toggleTag(t)}>
|
|
216
|
+
<button key={t} className={`rv-chip${st.tags.includes(t) ? ' on' : ''}`} onClick={() => st.toggleTag(t)} {...tip(st.tags.includes(t) ? `take the tag ${t} off the draft` : `put the tag ${t} on the draft`)}>
|
|
217
217
|
{t}
|
|
218
218
|
</button>
|
|
219
219
|
))}
|
|
@@ -226,7 +226,7 @@ export const StagePopup = observer(({ st, url, close }: { st: StageSt; url: (p:
|
|
|
226
226
|
{d && d.slots.length > 0 ? (
|
|
227
227
|
<label className="sg-field">
|
|
228
228
|
<span>when</span>
|
|
229
|
-
<select value={st.slot} onChange={(e) => st.setSlot(e.target.value)}>
|
|
229
|
+
<select value={st.slot} onChange={(e) => st.setSlot(e.target.value)} {...tip("the plan's slot the draft takes, or none: it waits in the queue")}>
|
|
230
230
|
<option value="">the queue, no slot</option>
|
|
231
231
|
{d.slots.map((s) => (
|
|
232
232
|
<option key={s.value} value={s.value}>
|
|
@@ -256,7 +256,7 @@ export const StagePopup = observer(({ st, url, close }: { st: StageSt; url: (p:
|
|
|
256
256
|
{d && d.drafts.length > 0 ? <span className="rv-dim">already staged from this version: {d.drafts.map((x) => `📝 ${x.title}`).join(' · ')}</span> : null}
|
|
257
257
|
<span className="sp" />
|
|
258
258
|
<span className="rv-dim">{st.waits}</span>
|
|
259
|
-
<button className="primary" disabled={!st.ready} onClick={() => void st.stage()}>
|
|
259
|
+
<button className="primary" disabled={!st.ready} onClick={() => void st.stage()} {...tip(st.ready ? 'write the draft into Communications; nothing is posted' : st.waits || 'the draft is not ready yet', 'Enter')}>
|
|
260
260
|
{st.busy ? 'Staging…' : 'Stage ⏎'}
|
|
261
261
|
</button>
|
|
262
262
|
</div>
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
.so-good{color:var(--ok)}
|
|
14
14
|
.so-secret{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s1);margin-top:var(--s1)}
|
|
15
15
|
.so-secret input{flex:1;min-width:220px}
|
|
16
|
+
.so-secret .sk-readable{flex-basis:100%}
|
|
16
17
|
.t-ok{--tone:var(--ok)}.t-warn{--tone:var(--warn)}.t-red{--tone:var(--red)}.t-dim{--tone:var(--dim)}.t-blue{--tone:var(--blue)}
|
|
17
18
|
.so-error{color:var(--errink);background:var(--errbg);border:1px solid var(--errline);border-radius:4px;padding:var(--s0) var(--s2);font-size:11px;line-height:1.35;white-space:pre-wrap;overflow-wrap:anywhere;cursor:pointer}
|
|
18
19
|
|
|
@@ -63,9 +64,14 @@ a.so-icon:visited{color:var(--dim)}
|
|
|
63
64
|
.so-card.so-row{border-top:1px solid var(--line);padding:var(--s2) var(--s3);flex-direction:row}
|
|
64
65
|
.so-row.so-col{flex-direction:column;gap:var(--s0)}
|
|
65
66
|
.so-row > .so-badge,.so-row > .so-logo{align-self:center}
|
|
66
|
-
.so-rowfield{flex:none;width:88px;font-size:11.5px;font-weight:700;color:var(--dim);padding-top:var(--s0)}
|
|
67
|
+
.so-rowfield{flex:none;width:88px;font-size:11.5px;font-weight:700;color:var(--dim);padding-top:var(--s0);overflow-wrap:anywhere}
|
|
67
68
|
.so-rowname{flex:none;width:96px;align-self:center}
|
|
68
69
|
.so-rowvalue{flex:1;min-width:0;overflow-wrap:anywhere}
|
|
70
|
+
/* a value a click copies: tinted a moment once copied */
|
|
71
|
+
.so-copyvalue{cursor:copy;border-radius:3px;padding:0 var(--s0);margin:0 calc(-1 * var(--s0))}
|
|
72
|
+
.so-copyvalue:hover{background:color-mix(in srgb,var(--accent) 8%,transparent)}
|
|
73
|
+
.so-copyvalue.said{background:color-mix(in srgb,var(--ok) 18%,transparent)}
|
|
74
|
+
.so-iconword{width:auto;padding:0 var(--s1);font-size:11px;white-space:nowrap}
|
|
69
75
|
.so-uppics{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--s1)}
|
|
70
76
|
/* a picture row the account does not show as it is now */
|
|
71
77
|
.so-stale{display:flex;flex-direction:column;gap:2px;padding:var(--s1) var(--s2);border-radius:4px;border-left:4px solid var(--tone);background:color-mix(in srgb,var(--tone) 16%,var(--panel));font-size:12px;color:var(--ink)}
|
|
@@ -13,5 +13,7 @@ export const SourcePage = observer(({ app, section, id }: { app: RepoSt; section
|
|
|
13
13
|
if (page != null) return <>{page}</>
|
|
14
14
|
// its rows are on their way (a tab opened on this address): nothing is said gone before they are known
|
|
15
15
|
if (src?.loading === true) return <div className="stagewrap" />
|
|
16
|
+
const gone = row == null ? (src?.missing?.(id) ?? null) : null
|
|
17
|
+
if (gone != null) return <>{gone}</>
|
|
16
18
|
return <div className="stagewrap"><div className="ph">{src == null ? `no ${section} in this hub` : `no ${section} named ${id} now`}</div></div>
|
|
17
19
|
})
|
|
@@ -15,7 +15,7 @@ import { EntryBar, EntryCols } from './entry-bar.tsx'
|
|
|
15
15
|
import type { HomeSt } from './home-st.ts'
|
|
16
16
|
import { Caret } from './icons.tsx'
|
|
17
17
|
import { SPACE_ENTRIES, type SpaceEntry, type SpaceSt } from './space-st.ts'
|
|
18
|
-
import { type Cell, type Col,
|
|
18
|
+
import { type Cell, type Col, type Row, Table } from './time-charts.tsx'
|
|
19
19
|
import { FactRow } from './vault-view.tsx'
|
|
20
20
|
import { entryMark } from './vault-st.ts'
|
|
21
21
|
import { ageWords, bytesWords } from '../../core/words.ts'
|
|
@@ -181,8 +181,8 @@ export const SpaceView = observer(({ app }: { app: HomeSt }) => {
|
|
|
181
181
|
return (
|
|
182
182
|
<div className="vaultpage spacepage">
|
|
183
183
|
<div className="actop vttop">
|
|
184
|
-
<button type="button" className="acpill" disabled={st.asking || busy || v?.noKey != null} onClick={() => void st.ask()}>
|
|
185
|
-
<
|
|
184
|
+
<button type="button" className="acpill" disabled={st.asking || busy || v?.noKey != null} onClick={() => void st.ask()} {...tip(`list the Space again now: ${cost}; by itself it lists once a day`)}>
|
|
185
|
+
<span className={`acring${busy || st.asking ? ' on' : ''}`}>↻</span>
|
|
186
186
|
</button>
|
|
187
187
|
<span className="acdim">{d == null ? (st.error !== '' ? '' : 'reading what the listing kept…') : v == null ? `${d.machine} · the house config names no Space` : narrow ? `${v.title} · ${shortListed(v, d.at)}` : `${d.machine} · ${v.title}, ${v.role} · ${shortListed(v, d.at)} · a page to read, nothing is changed from here · in the console: sk space`}</span>
|
|
188
188
|
</div>
|
|
@@ -16,6 +16,7 @@ import { AutoText } from '../auto-text.tsx'
|
|
|
16
16
|
import { ThreadControl } from '../review/thread-control.tsx'
|
|
17
17
|
import { bytesWords } from '../../../core/words.ts'
|
|
18
18
|
import { tip } from '../tips.ts'
|
|
19
|
+
import { ZoomStill } from '../review/zoom-still.tsx'
|
|
19
20
|
|
|
20
21
|
export const StoresPage = observer(({ app }: { app: RepoSt }) => {
|
|
21
22
|
const so = app.stores
|
|
@@ -72,7 +73,7 @@ const StoreList = observer(({ so }: { so: StoresSt }) => {
|
|
|
72
73
|
<span className="rv-dim rv-small">seller</span> {d.seller ? <b>{d.seller.name}</b> : <span className="rv-dim">no speaksAs in repo.config.ts</span>}
|
|
73
74
|
</div>
|
|
74
75
|
{d.unitError ? <div className="rv-err">{d.unitError}</div> : null}
|
|
75
|
-
{so.error ? <div className="rv-err sto-close" onClick={() => so.clearError()} {...tip('
|
|
76
|
+
{so.error ? <div className="rv-err sto-close" onClick={() => so.clearError()} {...tip('dismiss this error')}>{so.error} ✕</div> : null}
|
|
76
77
|
{d.stores.length === 0 ? <div className="rv-empty">no store page: write {STORE_IDS.map(mainFile).join(' or ')}</div> : null}
|
|
77
78
|
{d.stores.map((s) => <StoreCard key={s.id} so={so} s={s} on={s.id === so.current?.id} />)}
|
|
78
79
|
</div>
|
|
@@ -176,21 +177,21 @@ const FieldCard = observer(({ so, f }: { so: StoresSt; f: FieldView }) => {
|
|
|
176
177
|
<>
|
|
177
178
|
<AutoText className="sto-edit" autoFocus rows={4} value={so.editing?.text ?? ''} onText={(t) => so.type(t)} onKeyDown={keys} />
|
|
178
179
|
<div className="sto-acts">
|
|
179
|
-
<button disabled={so.busy || (so.editing?.text.trim() ?? '') === ''} onClick={() => void so.saveEdit(f)}>Save</button>
|
|
180
|
-
<button className="ghost" onClick={() => so.cancelEdit()}>Cancel</button>
|
|
180
|
+
<button disabled={so.busy || (so.editing?.text.trim() ?? '') === ''} onClick={() => void so.saveEdit(f)} {...tip(`write this section into ${f.file.split('/').pop()}`, '⌘ Enter')}>Save</button>
|
|
181
|
+
<button className="ghost" onClick={() => so.cancelEdit()} {...tip('drop your edit: the file keeps what it had', 'Escape')}>Cancel</button>
|
|
181
182
|
<span className="rv-dim rv-small">⌘ Enter · Escape · the whole section, in markdown</span>
|
|
182
183
|
</div>
|
|
183
184
|
</>
|
|
184
185
|
) : !f.paste ? (
|
|
185
186
|
<div className="sto-acts">
|
|
186
|
-
<button className="ghost" onClick={() => so.edit(f)}>Edit</button>
|
|
187
|
+
<button className="ghost" onClick={() => so.edit(f)} {...tip('edit this section in markdown, here in the page')}>Edit</button>
|
|
187
188
|
</div>
|
|
188
189
|
) : (
|
|
189
190
|
<div className="sto-copyframe">
|
|
190
191
|
<div className="sto-value rv-pre">{f.value}</div>
|
|
191
192
|
<div className="sto-acts">
|
|
192
|
-
<button onClick={() => void so.copy(f.steamMarkup ? toSteamMarkup(f.value) : f.value, f.heading)}>Copy</button>
|
|
193
|
-
<button className="ghost" onClick={() => so.edit(f)}>Edit</button>
|
|
193
|
+
<button onClick={() => void so.copy(f.steamMarkup ? toSteamMarkup(f.value) : f.value, f.heading)} {...tip(f.steamMarkup ? "copy the text in Steam's markup, ready to paste on the store" : 'copy the text, ready to paste on the store')}>Copy</button>
|
|
194
|
+
<button className="ghost" onClick={() => so.edit(f)} {...tip('edit this section in markdown, here in the page')}>Edit</button>
|
|
194
195
|
</div>
|
|
195
196
|
</div>
|
|
196
197
|
)}
|
|
@@ -208,7 +209,7 @@ const PastedBox = observer(({ so, asset, mark, terse = false }: { so: StoresSt;
|
|
|
208
209
|
const on = so.isPasted(asset, mark)
|
|
209
210
|
const stale = !on && mark?.stale === true && !terse
|
|
210
211
|
return (
|
|
211
|
-
<label className={`sto-pasted${on ? ' on' : ''}${stale ? ' t-warn' : ''}`} {...tip(on ? `pasted on ${day(mark?.at ?? new Date().toISOString())};
|
|
212
|
+
<label className={`sto-pasted${on ? ' on' : ''}${stale ? ' t-warn' : ''}`} {...tip(on ? `pasted on ${day(mark?.at ?? new Date().toISOString())}; untick it when the store no longer has it` : 'tick it once pasted on the store: it unticks itself when this changes')} onClick={(e) => e.stopPropagation()}>
|
|
212
213
|
<input type="checkbox" checked={on} onChange={(e) => void so.setPasted(asset, e.target.checked)} />
|
|
213
214
|
{stale && mark ? `changed since you pasted on ${day(mark.at)}` : 'pasted'}
|
|
214
215
|
</label>
|
|
@@ -221,7 +222,7 @@ const StaleLine = observer(({ so, asset, mark }: { so: StoresSt; asset: string;
|
|
|
221
222
|
)
|
|
222
223
|
|
|
223
224
|
const NoteToggle = observer(({ so, asset, count }: { so: StoresSt; asset: string; count: number }) => (
|
|
224
|
-
<button className={`sto-note${so.noteOpen[asset] ? ' on' : ''}`} onClick={(e) => { e.stopPropagation(); so.toggleNote(asset) }} {...tip('
|
|
225
|
+
<button className={`sto-note${so.noteOpen[asset] ? ' on' : ''}`} onClick={(e) => { e.stopPropagation(); so.toggleNote(asset) }} {...tip(so.noteOpen[asset] ? 'fold the note box' : 'open a note box under it: a note goes into its thread, and an agent owes it an answer')}>
|
|
225
226
|
note{count > 0 ? ` · ${count}` : ''}
|
|
226
227
|
</button>
|
|
227
228
|
))
|
|
@@ -248,7 +249,7 @@ const NoteBox = observer(({ so, asset, said }: { so: StoresSt; asset: string; sa
|
|
|
248
249
|
}}
|
|
249
250
|
/>
|
|
250
251
|
<div className="sto-acts">
|
|
251
|
-
<button disabled={so.busy || text.trim() === ''} onClick={() => void so.sendNote(asset)}>Send</button>
|
|
252
|
+
<button disabled={so.busy || text.trim() === ''} onClick={() => void so.sendNote(asset)} {...tip('send the note into the thread of this field; an agent owes it an answer', '⌘ Enter')}>Send</button>
|
|
252
253
|
<span className="rv-dim rv-small">⌘ Enter</span>
|
|
253
254
|
</div>
|
|
254
255
|
</div>
|
|
@@ -273,7 +274,7 @@ const MakeAgain = observer(({ so, r }: { so: StoresSt; r: RenderView | undefined
|
|
|
273
274
|
if (!r) return null
|
|
274
275
|
const run = so.render
|
|
275
276
|
return (
|
|
276
|
-
<button disabled={run?.running === true} onClick={() => void so.regenerate(r)} {...tip(r.
|
|
277
|
+
<button disabled={run?.running === true} onClick={() => void so.regenerate(r)} {...tip(`make the ${r.what} again from their source, after you confirm; the log shows under it`)}>
|
|
277
278
|
{run?.family === r.family && run.running ? 'making…' : 'make again'}
|
|
278
279
|
</button>
|
|
279
280
|
)
|
|
@@ -304,8 +305,8 @@ const FamilyCard = observer(({ so, fam }: { so: StoresSt; fam: FamilyView }) =>
|
|
|
304
305
|
<b className="sto-grow">{fam.title} <span className="rv-dim rv-small">{fam.pictures.length}</span></b>
|
|
305
306
|
{capsules ? (
|
|
306
307
|
<span className="seg">
|
|
307
|
-
<button className={so.fit ? '' : 'on'} onClick={() => so.setFit(false)}>real size</button>
|
|
308
|
-
<button className={so.fit ? 'on' : ''} onClick={() => so.setFit(true)}>fit</button>
|
|
308
|
+
<button className={so.fit ? '' : 'on'} onClick={() => so.setFit(false)} {...tip('show each capsule at its real pixel size')}>real size</button>
|
|
309
|
+
<button className={so.fit ? 'on' : ''} onClick={() => so.setFit(true)} {...tip('shrink each capsule to fit the column')}>fit</button>
|
|
309
310
|
</span>
|
|
310
311
|
) : null}
|
|
311
312
|
<MakeAgain so={so} r={fam.render} />
|
|
@@ -356,7 +357,7 @@ const PictureTile = observer(({ so, pic, real, onOpen }: { so: StoresSt; pic: Pi
|
|
|
356
357
|
{pic.url !== null ? <span className="rv-small rv-dim">{bytesWords(pic.bytes)}</span> : null}
|
|
357
358
|
{pic.slot ? <span className="rv-small rv-dim">· {pic.slot}</span> : null}
|
|
358
359
|
<span className="sto-grow" />
|
|
359
|
-
{pic.url !== null && pic.media === 'image' && !pic.name.endsWith('.ico') ? <button className="ghost" onClick={() => void so.copyImage(pic)}>copy image</button> : null}
|
|
360
|
+
{pic.url !== null && pic.media === 'image' && !pic.name.endsWith('.ico') ? <button className="ghost" onClick={() => void so.copyImage(pic)} {...tip(`copy ${pic.name} to the clipboard as a png, ready to paste on the store`)}>copy image</button> : null}
|
|
360
361
|
{pic.url !== null ? <PastedBox so={so} asset={pic.path} mark={pic.pasted} /> : null}
|
|
361
362
|
{so.current ? <ThreadControl st={so.st} address={`store:${so.current.id}/${pic.path}`} name={pic.name} /> : null}
|
|
362
363
|
{pic.url !== null && !so.phone ? <button className="ghost" onClick={() => void so.reveal(pic)} {...tip(`show ${pic.path} in the Finder`)}>📂</button> : null}
|
|
@@ -376,12 +377,12 @@ const Lightbox = observer(({ so }: { so: StoresSt }) => {
|
|
|
376
377
|
return (
|
|
377
378
|
<div className="sto-lightbox" role="dialog" aria-modal="true" aria-label="the picture, whole" onClick={() => so.closeLightbox()}>
|
|
378
379
|
<div className="sto-lbbar" onClick={(e) => e.stopPropagation()}>
|
|
379
|
-
<button className="ghost" onClick={() => so.stepLightbox(-1)} {...tip('the
|
|
380
|
+
<button className="ghost" onClick={() => so.stepLightbox(-1)} {...tip('show the picture before it in its family', '←')}>←</button>
|
|
380
381
|
<span>{pic.name}{pic.w ? ` · ${pic.w}x${pic.h}` : ''}</span>
|
|
381
|
-
<button className="ghost" onClick={() => so.stepLightbox(1)} {...tip('the next', '→')}>→</button>
|
|
382
|
-
<button className="ghost" onClick={() => so.closeLightbox()} {...tip('close', 'Escape')}>✕</button>
|
|
382
|
+
<button className="ghost" onClick={() => so.stepLightbox(1)} {...tip('show the next picture of its family', '→')}>→</button>
|
|
383
|
+
<button className="ghost" onClick={() => so.closeLightbox()} {...tip('close the large view', 'Escape')}>✕</button>
|
|
383
384
|
</div>
|
|
384
|
-
{pic.media === 'clip' ? <video src={so.fileUrl(pic)} controls autoPlay className="sto-lbmedia" onClick={(e) => e.stopPropagation()} /> : <
|
|
385
|
+
{pic.media === 'clip' ? <video src={so.fileUrl(pic)} controls autoPlay className="sto-lbmedia" onClick={(e) => e.stopPropagation()} /> : <ZoomStill src={so.fileUrl(pic)} alt={pic.name} className="sto-lbmedia" />}
|
|
385
386
|
</div>
|
|
386
387
|
)
|
|
387
388
|
})
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// the page at the address of a CLAUDE or TERMINALS row that left the list (terminal-sources.tsx missing): its name and
|
|
2
|
+
// what the hub last saw of it (seen-rows.ts), when and where, and the rows that live now, each a link. Never an
|
|
3
|
+
// opaque id alone
|
|
4
|
+
import { observer } from 'mobx-react-lite'
|
|
5
|
+
import { ageWords } from '../../core/words.ts'
|
|
6
|
+
import type { SourceGroup, SourceRow } from './panel-source.ts'
|
|
7
|
+
import type { SeenRow } from './seen-rows.ts'
|
|
8
|
+
import { since } from './terminal-pages.tsx'
|
|
9
|
+
|
|
10
|
+
/** the handle `sk gp` prints after a label: the session's short id from the row's words, else its terminal */
|
|
11
|
+
const refOf = (seen: SeenRow): string | null => {
|
|
12
|
+
const s = /session ([0-9a-f]{8})/.exec(seen.title)?.[1]
|
|
13
|
+
return s != null ? `session ${s}` : seen.window != null ? `terminal ${seen.window}` : null
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const GoneRowPage = observer(({ section, seen, words, live, groups, empty }: { section: 'claude' | 'terminals'; seen: SeenRow | null; words: string; live: readonly SourceRow[]; groups: readonly SourceGroup[]; empty: string }) => {
|
|
17
|
+
const now = Date.now()
|
|
18
|
+
const ref = seen == null ? null : refOf(seen)
|
|
19
|
+
const where = (r: SourceRow): string => groups.find((g) => g.id === r.group)?.label ?? ''
|
|
20
|
+
return (
|
|
21
|
+
<div className="stagewrap termaway" data-page-gone={section}>
|
|
22
|
+
<h2>{seen?.label ?? (section === 'claude' ? 'Claude Code' : 'Terminal')}{ref == null ? null : <small> ({ref})</small>} <small>not running now</small></h2>
|
|
23
|
+
{seen == null
|
|
24
|
+
? <p>This page was {words}. It is not listed now: it ended, or its machine is not reached.</p>
|
|
25
|
+
: <>
|
|
26
|
+
{seen.title === '' ? null : <p className="dim">{seen.title.replace(/\.?$/, '.')}</p>}
|
|
27
|
+
<p>Last seen {since(seen.at)} ({ageWords(seen.at, now)}) on <b>{seen.where}</b>: it ended there, or {seen.where} is not reached now.</p>
|
|
28
|
+
</>}
|
|
29
|
+
{live.length === 0
|
|
30
|
+
? <p>{empty}</p>
|
|
31
|
+
: <>
|
|
32
|
+
<p>{section === 'claude' ? 'Sessions' : 'Terminals'} of this project now:</p>
|
|
33
|
+
<ul data-gone-live="">
|
|
34
|
+
{live.map((r) => (
|
|
35
|
+
<li key={r.id}>{r.href == null ? r.label : <a href={r.href}>{r.label}</a>} <span className="dim">{[where(r), r.hint].filter((x) => x != null && x !== '').join(' · ')}</span></li>
|
|
36
|
+
))}
|
|
37
|
+
</ul>
|
|
38
|
+
</>}
|
|
39
|
+
</div>
|
|
40
|
+
)
|
|
41
|
+
})
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
// live terminal, and in the next picture
|
|
7
7
|
import { makeAutoObservable, runInAction } from 'mobx'
|
|
8
8
|
import type { Terminal } from '@xterm/xterm'
|
|
9
|
+
import { projectStepKey } from './keys.ts'
|
|
9
10
|
import { reach } from './reach.ts'
|
|
10
11
|
import { loadXterm, TERM_FONT, textLinks, themeOf } from './terminal-lib.ts'
|
|
11
12
|
|
|
@@ -68,6 +69,8 @@ export class TermHistorySt {
|
|
|
68
69
|
return false
|
|
69
70
|
})
|
|
70
71
|
term.attachCustomKeyEventHandler((e) => {
|
|
72
|
+
// the project bar's step keys are the page's (keys.ts PROJECT_STEP_KEYS), never this scroll's
|
|
73
|
+
if (e.metaKey && projectStepKey(e) != null) return false
|
|
71
74
|
if (e.type !== 'keydown' || e.metaKey || ['Shift', 'Control', 'Alt', 'Meta'].includes(e.key)) return true
|
|
72
75
|
if (e.shiftKey && (e.key === 'PageUp' || e.key === 'PageDown')) return (term.scrollPages(e.key === 'PageUp' ? -1 : 1), false)
|
|
73
76
|
this.close(o.back)
|
|
@@ -19,6 +19,11 @@ const ACCOUNT_KEY = 'hub:terminal-account'
|
|
|
19
19
|
/** a terminal at its prompt: a shell runs in it and nothing else, so it closes with no question */
|
|
20
20
|
export const atPrompt = (w: Pick<TermWindow, 'dead' | 'command'>): boolean => !w.dead && SHELLS.test(w.command)
|
|
21
21
|
|
|
22
|
+
/** a terminal of another place that runs Claude Code, by what its list says of it alone: the program it runs, or the
|
|
23
|
+
* name the hub gives the terminal a Claude starts in. A place's list says no Claude session; its sessions come with
|
|
24
|
+
* its report to the hq (terminal-sources.tsx isPlaceClaude), and this covers the moment before that report */
|
|
25
|
+
export const runsClaude = (w: Pick<TermWindow, 'dead' | 'command' | 'name'>): boolean => !w.dead && !atPrompt(w) && (w.command === 'claude' || w.name === 'claude')
|
|
26
|
+
|
|
22
27
|
function loadAccount(): string {
|
|
23
28
|
try {
|
|
24
29
|
return globalThis.localStorage?.getItem(ACCOUNT_KEY) ?? ''
|
|
@@ -45,6 +50,8 @@ export class TermListSt {
|
|
|
45
50
|
/** the Claude account a new Claude terminal last started with, '' for the shell's own: the menu says it first */
|
|
46
51
|
account = loadAccount()
|
|
47
52
|
|
|
53
|
+
/** the project and place the lists above belong to (`<repo>\0<place>`), null before the first */
|
|
54
|
+
private listedOf: string | null = null
|
|
48
55
|
/** the id of the part that feeds it: what an act names. null while none does */
|
|
49
56
|
private id: string | null = null
|
|
50
57
|
/** ends its part of the page's socket */
|
|
@@ -56,7 +63,7 @@ export class TermListSt {
|
|
|
56
63
|
* own. `placeOf`: the node of another place whose terminals these are (the hq's web hops there: home/web-places.ts),
|
|
57
64
|
* null for this Mac's own */
|
|
58
65
|
constructor(private home: HomeSt, private repoOf: () => string | null, private shared: MachineLists | null = null, private placeOf: () => string | null = () => null) {
|
|
59
|
-
makeAutoObservable<this, 'home' | 'repoOf' | 'shared' | 'placeOf' | 'id' | 'part' | 'users' | 'stop'>(this, { home: false, repoOf: false, shared: false, placeOf: false, id: false, part: false, users: false, stop: false })
|
|
66
|
+
makeAutoObservable<this, 'home' | 'repoOf' | 'shared' | 'placeOf' | 'listedOf' | 'id' | 'part' | 'users' | 'stop'>(this, { home: false, repoOf: false, shared: false, placeOf: false, listedOf: false, id: false, part: false, users: false, stop: false })
|
|
60
67
|
}
|
|
61
68
|
|
|
62
69
|
/** the node of the place whose terminals these are, null for this Mac's */
|
|
@@ -131,6 +138,7 @@ export class TermListSt {
|
|
|
131
138
|
/** the list is asked of the repo's hub, on the page's socket: it is asked again after the socket was down */
|
|
132
139
|
private connect(): void {
|
|
133
140
|
this.close()
|
|
141
|
+
this.listFor(`${this.repo ?? ''}\0${this.place ?? ''}`)
|
|
134
142
|
const repo = this.repo
|
|
135
143
|
if (repo == null || this.users === 0) return
|
|
136
144
|
// refused (another machine, the tailnet): no list, said nowhere: the terminal's own page says why
|
|
@@ -138,9 +146,24 @@ export class TermListSt {
|
|
|
138
146
|
this.part = termStream(this.home).open({ base: this.home.repo(repo).base, route: 'watch', ...(place == null ? {} : { body: () => ({ place }) }), line: (l) => this.take(l), down: () => this.lost(), refused: () => this.lost() })
|
|
139
147
|
}
|
|
140
148
|
|
|
149
|
+
/** the lists are asked for `key` (`<repo>\0<place>`): another project's lists go at once, so its sessions are never
|
|
150
|
+
* read as this one's, and the sections say loading until the new lists come; the same key keeps them */
|
|
151
|
+
listFor(key: string): void {
|
|
152
|
+
if (key === this.listedOf) return
|
|
153
|
+
this.listedOf = key
|
|
154
|
+
this.claudes = []
|
|
155
|
+
this.windows = []
|
|
156
|
+
this.listed = false
|
|
157
|
+
}
|
|
158
|
+
|
|
141
159
|
/** one line of the list's part, its own or the machine's */
|
|
142
160
|
take(l: TermLine): void {
|
|
143
|
-
if (l.t === 'hello')
|
|
161
|
+
if (l.t === 'hello') runInAction(() => {
|
|
162
|
+
this.id = l.id
|
|
163
|
+
// a new part starts from no session, as the hub's watch does (terminal-watch.ts): it says none until one is
|
|
164
|
+
// found, so the last project's, or the last part's, would stay
|
|
165
|
+
this.claudes = []
|
|
166
|
+
})
|
|
144
167
|
else if (l.t === 'w') runInAction(() => {
|
|
145
168
|
this.listed = true
|
|
146
169
|
this.windows = l.windows
|
|
@@ -160,7 +183,8 @@ export class TermListSt {
|
|
|
160
183
|
async act(a: WindowAct, via: string | null = null): Promise<Acted> {
|
|
161
184
|
const repo = this.repo
|
|
162
185
|
const id = via ?? this.id
|
|
163
|
-
|
|
186
|
+
// another place whose list never said hello: its web did not open its terminals to this hop
|
|
187
|
+
let why = id == null && this.place != null ? "its terminals do not open to this Mac: « terminals to the hq's Mac » on that machine's own hub (machines page), and the hq's proxy on here" : 'the hub does not answer'
|
|
164
188
|
let window: string | null = null
|
|
165
189
|
if (repo != null && id != null) {
|
|
166
190
|
try {
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
import { reaction } from 'mobx'
|
|
6
6
|
import { observer } from 'mobx-react-lite'
|
|
7
7
|
import { useEffect, useRef } from 'react'
|
|
8
|
+
import { ageWords } from '../../core/words.ts'
|
|
8
9
|
import type { ProcessRow } from '../../home/process-rows.ts'
|
|
10
|
+
import type { PlaceClaude } from '../../orchestrator/sessions-shape.ts'
|
|
9
11
|
import type { TermClaude } from '../terminal-claudes.ts'
|
|
10
12
|
import type { TermWindow } from '../terminal-host.ts'
|
|
11
13
|
import type { HomeSt } from './home-st.ts'
|
|
@@ -19,7 +21,7 @@ export const since = (at: number): string => {
|
|
|
19
21
|
return d.toDateString() === new Date().toDateString() ? d.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', hour12: false }) : d.toLocaleDateString([], { month: 'short', day: 'numeric' })
|
|
20
22
|
}
|
|
21
23
|
/** Claude Code's own word for a session, as a row says it */
|
|
22
|
-
export const stateWord = (c: TermClaude): string => (c.state === 'busy' ? 'running' : c.state === '' ? 'idle' : c.state)
|
|
24
|
+
export const stateWord = (c: Pick<TermClaude, 'state'>): string => (c.state === 'busy' ? 'running' : c.state === '' ? 'idle' : c.state)
|
|
23
25
|
/** a session of terminals that is not this project's, in plain words: another project's terminals by the project's
|
|
24
26
|
* name, one made by hand by its own name */
|
|
25
27
|
export const sessionWords = (session: string): string => (/^sk-/.test(session) ? `${session.slice(3)}'s terminals` : `« ${session} »`)
|
|
@@ -71,9 +73,9 @@ export const ProcessPage = observer(({ home, p }: { home: HomeSt; p: ProcessRow
|
|
|
71
73
|
<span className={`termruns${up ? '' : ' ended'}`}>{p.status}{p.pid == null ? '' : `, pid ${p.pid}`}</span>
|
|
72
74
|
<span className="termnote" {...tip(log.note !== '' ? log.note : (p.note ?? undefined))}>{log.note !== '' ? log.note : (p.note ?? '')}</span>
|
|
73
75
|
{p.url == null ? null : <a className="ghost termlink" href={p.url} target="_blank" rel="noreferrer">{p.host ?? p.url}</a>}
|
|
74
|
-
{up ? null : <button type="button" className="ghost" data-act="start" onClick={() => act('start')}>start</button>}
|
|
75
|
-
{up && p.canRestart ? <button type="button" className="ghost" data-act="restart" onClick={() => act('restart')}>restart</button> : null}
|
|
76
|
-
{up && p.canStop ? <button type="button" className="ghost" data-act="stop" onClick={() => act('stop')}>stop</button> : null}
|
|
76
|
+
{up ? null : <button type="button" className="ghost" data-act="start" {...tip(`starts ${p.label} on this Mac and waits until it answers`)} onClick={() => act('start')}>start</button>}
|
|
77
|
+
{up && p.canRestart ? <button type="button" className="ghost" data-act="restart" {...tip(`stops ${p.label} and starts it again, for every repo that uses it`)} onClick={() => act('restart')}>restart</button> : null}
|
|
78
|
+
{up && p.canStop ? <button type="button" className="ghost" data-act="stop" {...tip(`stops ${p.label} for every repo that uses it, until it starts again`)} onClick={() => act('stop')}>stop</button> : null}
|
|
77
79
|
</div>
|
|
78
80
|
<div className="termbody"><div className="termhost termlog" ref={ref} /></div>
|
|
79
81
|
</div>
|
|
@@ -82,17 +84,18 @@ export const ProcessPage = observer(({ home, p }: { home: HomeSt; p: ProcessRow
|
|
|
82
84
|
})
|
|
83
85
|
|
|
84
86
|
/** a terminal a restart of the Mac (or of what keeps the terminals) ended: what it was, and his two acts. Nothing
|
|
85
|
-
* starts by itself, and what ran in it is never run again: a new shell opens in its folder, empty
|
|
86
|
-
|
|
87
|
+
* starts by itself, and what ran in it is never run again: a new shell opens in its folder, empty. `place`: the
|
|
88
|
+
* machine it ran on when it is not this one; `was`: the Claude Code session it held, by its label */
|
|
89
|
+
export const KeptPage = ({ w, reopen, close, place = null, was = null }: { w: TermWindow; reopen: () => void; close: () => void; place?: string | null; was?: string | null }) => (
|
|
87
90
|
<div className="stagewrap termaway" data-page-kept={w.id}>
|
|
88
|
-
<h2>{w.name} <small>ended by a restart</small></h2>
|
|
91
|
+
<h2>{was ?? w.name}{w.was == null ? null : <small> (terminal {w.was})</small>} <small>ended by a restart</small></h2>
|
|
89
92
|
<p>
|
|
90
|
-
This terminal ended when the Mac, or what keeps the terminals running, restarted{w.dir === '' ? '' : <>. It was in <b>{w.dir}</b></>}.
|
|
93
|
+
{was == null ? 'This terminal' : 'This Claude Code session and its terminal'} ended when {place == null ? 'the Mac, or what keeps the terminals running,' : <><b>{place}</b>, or what keeps its terminals running,</>} restarted{w.endedAt == null ? '' : ` (found ended ${since(w.endedAt)}, ${ageWords(w.endedAt, Date.now())})`}{w.dir === '' ? '' : <>. It was in <b>{w.dir}</b></>}.
|
|
91
94
|
{w.command === '' ? null : <span className="dim"> ran: <code>{w.command}</code></span>}
|
|
92
95
|
</p>
|
|
93
96
|
<p>
|
|
94
|
-
<button type="button" className="ghost" data-act="reopen" autoFocus onClick={reopen}>open a new shell there</button>{' '}
|
|
95
|
-
<button type="button" className="ghost" data-act="forget" onClick={close}>close</button>
|
|
97
|
+
<button type="button" className="ghost" data-act="reopen" autoFocus {...tip('opens an empty shell in the same folder\nwhat ran in the old one is not run again')} onClick={reopen}>open a new shell there</button>{' '}
|
|
98
|
+
<button type="button" className="ghost" data-act="forget" {...tip('closes this ended terminal and takes it off the list')} onClick={close}>close</button>
|
|
96
99
|
</p>
|
|
97
100
|
</div>
|
|
98
101
|
)
|
|
@@ -113,3 +116,40 @@ export const ClaudeAwayPage = ({ c }: { c: TermClaude }) => (
|
|
|
113
116
|
</p>
|
|
114
117
|
</div>
|
|
115
118
|
)
|
|
119
|
+
|
|
120
|
+
/** Claude Code's word for another place's session, from its report: its own word, else busy or idle */
|
|
121
|
+
export const placeStateWord = (c: PlaceClaude): string => stateWord({ state: c.state ?? (c.busy ? 'busy' : 'idle') })
|
|
122
|
+
|
|
123
|
+
/** the few words a row of another place's session has room for: the app it runs in outside tmux, else its state */
|
|
124
|
+
export const placeWhereWords = (c: PlaceClaude): string => (c.where?.in === 'outside' ? (c.where.app !== '' ? c.where.app : 'outside tmux') : placeStateWord(c))
|
|
125
|
+
|
|
126
|
+
/** a Claude Code session of another place whose screen no page of this hub shows: what its place's report says of
|
|
127
|
+
* it, and where to open it. `door`: this hub reaches that place's terminals through the hq's door */
|
|
128
|
+
export const PlaceClaudeAwayPage = observer(({ home, c, door }: { home: HomeSt; c: PlaceClaude; door: boolean }) => (
|
|
129
|
+
<div className="stagewrap termaway" data-page-place-claude={c.session.slice(0, 8)} data-page-place={c.node}>
|
|
130
|
+
<h2>{c.label || c.name} <small>{placeStateWord(c)}</small></h2>
|
|
131
|
+
<p>
|
|
132
|
+
A Claude Code session of this project on <b>{c.place}</b>{c.account == null || c.account === '' ? '' : <>, as <b>{c.account}</b></>}{c.started == null ? '' : `, since ${since(Date.parse(c.started))}`}: session {c.session.slice(0, 8)}{c.isDefault ? `, the default on ${c.place}` : ''}. Said by {c.place}'s last report to the hq.
|
|
133
|
+
</p>
|
|
134
|
+
<p>
|
|
135
|
+
{c.where == null
|
|
136
|
+
? <>{c.place} says no terminal for it: its shipkit is older than this hub's.</>
|
|
137
|
+
: c.where.in === 'outside'
|
|
138
|
+
? <>It runs {c.where.app !== '' ? <>in <b>{c.where.app}</b></> : 'in a terminal'} on {c.place}, outside tmux: no hub can show its screen. Open it on {c.place}.</>
|
|
139
|
+
: door
|
|
140
|
+
? <>It runs in <b>{sessionWords(c.where.session)}</b>, terminal <b>{c.where.name || c.where.window}</b>, on {c.place}: not one of this project's terminals there, so no page here shows its screen.</>
|
|
141
|
+
: <>It runs in terminal <b>{c.where.name || c.where.window}</b> on {c.place}. Its screen opens in {c.place}'s own hub, or on the hq's Mac once {c.place} lets it in: <PlaceSwitchLink home={home} c={c} />.</>}
|
|
142
|
+
</p>
|
|
143
|
+
</div>
|
|
144
|
+
))
|
|
145
|
+
|
|
146
|
+
/** where he turns on a place's « terminals to the hq's Mac »: its own hub's machines page, linked over the tailnet
|
|
147
|
+
* when its report names its tailnet name (the switch there answers that machine's own browser only) */
|
|
148
|
+
const PlaceSwitchLink = observer(({ home, c }: { home: HomeSt; c: PlaceClaude }) => {
|
|
149
|
+
useEffect(() => {
|
|
150
|
+
if (home.machines.data == null) void home.machines.poll()
|
|
151
|
+
}, [home])
|
|
152
|
+
const hub = home.machines.hubOfNode(c.node, globalThis.location?.port ?? '')
|
|
153
|
+
const words = <>open {c.place}'s hub, machines page, and turn on « terminals to the hq's Mac »</>
|
|
154
|
+
return hub == null ? <>on {c.place}, {words}</> : <>on {c.place}, <a href={hub} target="_blank" rel="noopener" data-place-hub={c.node}>{words} ↗</a></>
|
|
155
|
+
})
|