Repository navigation
chore: move old Node/TS shell src/ → legacy/src/ (task #83) — stop the amnesia - #1840
Merged
Merged
Conversation
…e amnesia
The old Node/TS "jtag" system (3,611 files, 30M) sat at the repo root as `src/`, and it
was the single biggest source of context confusion: every grep surfaced it, and it kept
getting half-worked-against as if it were live. It is NOT — the entire real pipeline is
Rust core + the new @continuum/* clients:
- `npm start` → tools/scripts/start-server.sh → cargo (core only), never src/.
- workspaces = sdk/typescript, packages/*, apps/{web,tui,desktop} — src/ not listed.
- check:clients (lint/typecheck/test) targets those workspaces, never src/.
So the move breaks nothing in the real build. What it does: puts the legacy shell behind a
`legacy/`-named boundary so its location IS the "don't touch, not live" signal — kept, not
deleted, still referenceable. Also repointed the two stranded .gitignore patterns
(src/widgets/**/*.styles.ts, src/manifests/) to legacy/src/.
Known follow-up (not this commit): a few old-system tools under tools/generator/ +
tools/scripts/seed/ still import ../../src/ — dead (not in the new pipeline), they dangle
harmlessly; move them to legacy/ too in a follow-up so nothing references the old path.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 6, 2026
…README native path (#1 fresh-dev blocker) (#1847) A fresh dev following the README's native install hit `npm error Missing script: "setup:rust"` on the very first build step — dead in the water. The script (tools/scripts/setup-rust.sh: rustup + cmake + vendored llama.cpp/whisper.cpp submodules, idempotent) EXISTED; it was just never mapped in package.json. - package.json: add "setup:rust": "bash tools/scripts/setup-rust.sh". - README: `cd continuum/src` → `cd continuum` (src moved to legacy/ #1840; npm runs from root); "Rust nightly" → the pinned 1.95 toolchain (rust-toolchain.toml), which is what actually builds. Verified: `npm run setup:rust` now resolves + runs idempotently on a set-up machine (rust ✓ cmake ✓ vendored submodules ✓) — no "Missing script", no breakage. First real brick of the reliability spine (#1 install). Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jul 6, 2026
…ix cd-src/jtag references (#1848) install.sh still `curl -fsSL https://unsloth.ai/install.sh | sh`'d Unsloth (excised from the core) and ended by telling the user to run two commands that fail: `cd src && npm start` (src moved to legacy/ #1840; npm runs from root) and `./jtag ping` (jtag is the old shell). A fresh installer's LAST words were broken. - [8/9] step: replace the Unsloth curl-install with the native reality — llama-server (serving, built from the vendored llama.cpp submodule) + mlx_lm (forge) come up WITH the core, nothing to install; the mlx trainer's venv is provisioned lazily on first forge/train. - Final message: `cd src && npm start` → `npm start`; `./jtag ping` → `cu ping`. - CUDA-sudo hint: `cd src && bash scripts/install.sh` → `bash tools/scripts/install.sh`. Verified: `bash -n install.sh` OK; zero remaining unsloth/cd-src/jtag references. Reliability spine #1 (install). Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jul 6, 2026
…ts (container-first, desktop-only) — config-validated (#1849) Container-first canonical path, config-validated on macOS (`docker compose config` green for base / +mac / +gpu; 0 old-Node services in the resolved config). Full image BUILD + `up` needs a Linux+NVIDIA box (no Docker GPU on Mac) — punch list in docs/CONTAINER-PATH-LINUX-VALIDATION.md. - Removed the old-Node UI serving chain: `node-server` (TS WS orchestrator) + `widget-server` (Vite host) services, the Mac override's `node-server` block, and the Tailscale-serve web proxies (443→widget-server, 9001→node-server) that fronted them. Desktop-only: the native Tauri desktop attaches to continuum-core's WS ingress directly; web stays a dev-only vite convenience, not a container service. Both built from ./src (now legacy/src #1840) and served the retired web UI. - Repointed the surviving stale `./src` build contexts the legacy move broke — `model-init` context and the core's `additional_contexts` (shared / shared-generated) → `legacy/src` (+ dockerfile relative path fix), with in-file NOTEs flagging the Linux build-verify (esp. shared-generated/entity_schemas.json is a GENERATED file absent from a clean checkout — the core image won't build until that's resolved). - tailscale-serve.json: keep only the livekit-grid signaling proxy (7880→7890). Honest scope: this is the config-validatable half. The build/run half (core image build, GPU passthrough, `compose up`, grid desktop→core-WS proxy, fresh-box install.sh) is estimated (~2 days Linux + a WSL pass) in the doc — item 1 (entity_schemas.json generation) is the blocking gap. Reliability spine #1 (install). Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jul 6, 2026
…/scripts, models via additional-context (item 2) (#1851) Caught by an actual `docker build` (not a guess): model-init's download scripts moved to tools/scripts with #1840, but the Dockerfile still COPYd them from the context root (which #1849 had pointed at legacy/src) — so `COPY scripts/download-models.sh` etc failed "not found". models.json is in legacy/src/shared; the scripts in tools/scripts; two homes, no single small context covers both (and there's no .dockerignore, so a repo- root context would ship the whole tree). - docker-compose.yml: model-init context → ./tools/scripts (scripts' home); models.json rides in as the `models` additional-context (./legacy/src/shared). - model-init.Dockerfile: COPY the scripts from the context root, `COPY --from=models models.json`, keep shared/ (download-avatar-models.sh sources shared/preflight.sh at runtime); DROP the dead generate-scene-models.ts + package.json COPYs (unused by the download CMD path). Build-proven on macOS (`docker build` — node:20-slim native arm64): all COPYs resolve, image exports clean. The model download is a runtime CMD, so the actual fetch is exercised by a real `up` (item 3). compose config green base/+gpu. Reliability spine #1 — both container BUILD-side items (core image #1850, model-init) now build-verified from this Mac; only GPU `up` / grid / fresh-OS install remain (genuinely Linux). Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jul 6, 2026
… — unblocks carl-install-smoke + handoff (#1852) carl-install-smoke (the `curl install.sh | bash` gate = Carl's REAL entry) has been RED for 8+ runs. Pulled the CI install.log artifact (`gh run download`) and root-caused it — NOT a guess: install.sh dies at exactly ✗ [jtag-bin] source binary missing at: /tmp/carl-smoke-XXXX/src/jtag `mod_jtag_bin_link` (tools/scripts/lib/install-common.sh) called `module_fail` → `exit 1` when `src/jtag` is absent. But `src/jtag` is the OLD Node CLI, moved to legacy/ (#1840) — not part of a headless-core install. So the installer aborted at ~49s on an optional, retired client. - install-common.sh: the missing/empty-source branch now `module_skip`s + `return 0` (the core plus the `continuum` / `cu` CLIs are the deliverable; the old `jtag` is optional). Unit-verified in isolation on macOS: `mod_jtag_bin_link /nonexistent → RETURN CODE: 0` (was `exit 1`), empty arg → 0 too. - docs/CARL-INSTALL-SMOKE-HANDOFF.md: full handoff for the WSL-equipped follow — the root cause, the fix, the repro command (`bash scripts/ci/carl-install-smoke.sh`), the exit-code map (1 fixed → next likely 2, the IPC-socket-up check; 4/5/6 advisory), the TWO-install.sh compression landmine (repo-root 1183-line curl entry vs tools/scripts 747-line npm entry — independent drift to reconcile), and the stale-comment cleanup. This gets install.sh past the fatal so `compose up` runs; a real Linux/WSL smoke run verifies it green from here (that's the handoff). Reliability spine #1 (install). Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jul 6, 2026
…ld:cli (FATAL, install-audit #1/#2) (#1857) A parallel install audit found the fresh-native-install killer: tools/scripts/install.sh (the `npm run install:continuum` path) called `npm run build:ts` + `npm run build:cli` — scripts that left with the retired Node shell (moved to legacy/src, #1840) and no longer exist in the root package.json. Under this script's `set -eo pipefail`, `npm run` exits non-zero ("Missing script") → pipefail propagates → `set -e` ABORTS the whole install. A fresh native install could never finish. - Replace both dead calls with a BEST-EFFORT `npm run build:clients` (the current TS deliverable — SDK + web, which DO exist in root package.json), wrapped in an `if` so a client-build failure can never abort a headless-core install (the Rust core is the deliverable) and the `if` condition shields the pipeline from `set -e`. - Harden the Rust build call: `bash scripts/setup-rust.sh` → `bash "$SCRIPT_DIR/setup-rust.sh"` (absolute via the script's own dir) so it no longer depends on the fragile PROJECT_DIR/cwd resolution (audit #3). Verified: `bash -n` OK; zero build:ts/build:cli call sites remain; build:clients exists in root package.json; the guard makes it non-fatal either way. Reliability spine #1 (install). Credit: parallel install-audit agent. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 4.8 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The old Node/TS "jtag" system (3,611 files, 30M) sat at the repo root as
src/, and itwas the single biggest source of context confusion: every grep surfaced it, and it kept
getting half-worked-against as if it were live. It is NOT — the entire real pipeline is
Rust core + the new @continuum/* clients:
npm start→ tools/scripts/start-server.sh → cargo (core only), never src/.So the move breaks nothing in the real build. What it does: puts the legacy shell behind a
legacy/-named boundary so its location IS the "don't touch, not live" signal — kept, notdeleted, still referenceable. Also repointed the two stranded .gitignore patterns
(src/widgets/**/*.styles.ts, src/manifests/) to legacy/src/.
Known follow-up (not this commit): a few old-system tools under tools/generator/ +
tools/scripts/seed/ still import ../../src/ — dead (not in the new pipeline), they dangle
harmlessly; move them to legacy/ too in a follow-up so nothing references the old path.
Co-Authored-By: Claude Opus 4.8 [email protected]
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo