singularity-forge/web/components/sf
Mikael Hugo 8c945550fa
Some checks are pending
sf self-deploy / build, test, and publish server image (push) Waiting to run
sf self-deploy / deploy test and probe (push) Blocked by required conditions
sf self-deploy / promote prod (push) Blocked by required conditions
feat: operational glue for upgrade-safety chain
Bundles the working-tree state into one coherent commit covering the
upgrade-safety glue that complements today's earlier landings
(orphan-recovery, sf-db single-connection, drain-timer-not-unref'd,
forceShutdown drain, shutdown-state.ts, instrumentation.ts,
shutdown-signal.js, gate-deadlock-classifier).

Modified:
  docker/Dockerfile.source-server — image build tweaks for the source-
    server variant used by the in-container upgrader.
  docker/docker-compose.vega.yaml — env passthroughs for host-side dirs
    (SF_SOURCE_HOST_ROOT, SF_WORKSPACE_HOST_DIR, SF_WORKSPACES_HOST_DIR,
    SF_HOME_HOST_DIR), docker socket mount, group_add for docker GID,
    and SF_RPC_SHUTDOWN_GRACE_MS=600000 matching the 10-min drain.
  scripts/run-vega-source-server.mjs — substantial rework supporting
    the in-container upgrade flow.
  scripts/upgrade-vega-source-server.mjs — buildEnv() + dockerBuildEnv()
    helpers, probeBind via SF_VEGA_PROBE_HOST, containerExists()
    pre-check before drainContainer, stop timeout now matches the
    10-min RPC grace via SF_VEGA_DRAIN_STOP_TIME (default 610s).
  src/web/project-discovery-service.ts — calls
    recoverProjectRuntimeQueues() on each of the 3 discovery paths
    (root monorepo, per-entry, nested SF projects). Closes the
    cloud-volume mtime-lag window codex flagged.
  web/app/api/ready/route.ts — calls recoverProjectRuntimeQueues() on
    every readiness probe, and now also reads shutdown-state so the
    probe returns 503 while draining.
  web/components/sf/projects-view.tsx — UI wiring for the upgrade
    trigger.
  web/pages/api/projects.ts — backend API addition for the project
    enumeration that feeds projects-view.
  docs/specs/sf-self-deploy.md — docs update for the new flow.
  package.json — script alias.

Added:
  scripts/build-web-host.mjs — new build helper for the standalone web
    host artifact consumed by the upgrade flow.
  src/resources/extensions/sf/tests/auto-shutdown-signal.test.mjs —
    unit test for the cooperative-shutdown signal module (registers /
    requests / snapshot).
  src/web/project-runtime-recovery.ts — thin wrapper around
    recoverOrphanedFeedbackDrains for per-project use from web routes.
  web/app/api/drain/route.ts — explicit drain endpoint for operator-
    triggered queue flush.
  web/app/api/server-upgrade/route.ts — auth-gated endpoint that
    spawns the in-container upgrader via docker socket; passes through
    host-dir env so the upgrader knows real bind-mount paths.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 22:57:26 +02:00
..
onboarding fix(web): resolve ESLint regressions from eslint-config-next upgrade 2026-05-10 12:18:58 +02:00
activity-view.tsx chore: commit current workspace state 2026-05-05 14:46:18 +02:00
app-shell.tsx feat: make sf server the operator entrypoint 2026-05-17 17:23:46 +02:00
chat-mode.tsx fix(lint): fix all pre-existing lint failures 2026-05-11 04:02:31 +02:00
code-editor.tsx chore: commit current workspace state 2026-05-05 14:46:18 +02:00
command-surface.tsx feat: make sf server the operator entrypoint 2026-05-17 17:23:46 +02:00
dashboard.tsx chore: commit current workspace state 2026-05-05 14:46:18 +02:00
diagnostics-panels.tsx chore: commit current workspace state 2026-05-05 14:46:18 +02:00
dual-terminal.tsx chore: commit current workspace state 2026-05-05 14:46:18 +02:00
error-boundary.tsx feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
file-content-viewer.tsx fix(lint): fix all pre-existing lint failures 2026-05-11 04:02:31 +02:00
files-view.tsx fix(web): resolve ESLint regressions from eslint-config-next upgrade 2026-05-10 12:18:58 +02:00
focused-panel.tsx chore: commit current workspace state 2026-05-05 14:46:18 +02:00
guided-dialog.tsx chore: commit current workspace state 2026-05-05 14:46:18 +02:00
knowledge-captures-panel.tsx chore: commit current workspace state 2026-05-05 14:46:18 +02:00
loading-skeletons.tsx style: format repository with biome 2026-05-05 14:31:16 +02:00
Login.tsx feat(sf): route server control through rpc 2026-05-17 20:07:36 +02:00
main-session-terminal.tsx chore: commit current workspace state 2026-05-05 14:46:18 +02:00
onboarding-gate.tsx chore: commit current workspace state 2026-05-05 14:46:18 +02:00
project-welcome.tsx fix: update test snapshots for queryInstruction and complete /sf prefix Phase 2 deprecation 2026-05-09 00:17:47 +02:00
projects-view.tsx feat: operational glue for upgrade-safety chain 2026-05-17 22:57:26 +02:00
remaining-command-panels.tsx fix: update test snapshots for queryInstruction and complete /sf prefix Phase 2 deprecation 2026-05-09 00:17:47 +02:00
roadmap.tsx chore: commit current workspace state 2026-05-05 14:46:18 +02:00
scope-badge.tsx style: format repository with biome 2026-05-05 14:31:16 +02:00
settings-panels.tsx fix: harden sf server control loop 2026-05-17 21:13:12 +02:00
shell-terminal.tsx chore: commit current workspace state 2026-05-05 14:46:18 +02:00
sidebar.tsx feat: make sf server the operator entrypoint 2026-05-17 17:23:46 +02:00
status-bar.tsx chore: commit current workspace state 2026-05-05 14:46:18 +02:00
swarms-view.tsx remove A2A; swarm enrollment + status projection + web swarms view; headless refactor 2026-05-17 16:04:06 +02:00
terminal.tsx chore: commit current workspace state 2026-05-05 14:46:18 +02:00
update-banner.tsx fix(web): resolve ESLint regressions from eslint-config-next upgrade 2026-05-10 12:18:58 +02:00
visualizer-view.tsx fix(web): resolve ESLint regressions from eslint-config-next upgrade 2026-05-10 12:18:58 +02:00