Merged latest main (2.48.23) into fix/hardcoded-engine-urls. Resolved the
single conflict in package.json by taking main's changes and bumping the
version to 2.48.24 per the patch-level commit rule.
* docs(rules): add seeder authoring contract to data-engine-architecture rule
Adds section 8 documenting how to write a seeder: the auto-discovery model,
the three module shapes (interval+fetch, cron+fn, init), the { redis }-only
ctx, and publishing via @worldwideview/seeder-sdk. Includes good/bad examples
contrasting the ctx.setLiveSnapshot trap (which caused a silent CI failure)
against the two correct shapes. This rule auto-loads on local-seeders/** edits.
* docs(rules): add close-context-gaps AI meta-directive to AGENTS.md
When missing/wrong/undocumented context causes an error, a long struggle, or
slow understanding, agents must fix the doc/context (or add a guardrail) at its
source, or ask the user to; in autonomous mode, log the gap to revisit. Codifies
the lesson from the seeder ctx.setLiveSnapshot incident for all contributors.
Rename the env var to make its scope unambiguous: it is a local dev
override only and must never be set in production. Split the old single
var into two with clearly documented purposes:
- NEXT_PUBLIC_WWV_LOCAL_ENGINE_URL (local dev, .env.local, browser+server)
Used by resolveEngineUrl.ts and engineManifest.ts to redirect WS
connections to a locally-running engine during plugin development.
Each worktree should use a different port to avoid collisions.
- WWV_DATA_ENGINE_URL (production, docker-compose/Coolify, server-side only)
Used by service.ts for MCP REST calls to the engine. NOT read by
the browser. Set in docker-compose, not in .env.local.
service.ts shim reads WWV_DATA_ENGINE_URL first so existing production
docker-compose deployments are not broken by this rename.
Also fixes stale dataengine.worldwideview.dev subdomain references in
hostGlobals.ts (cloud fallback URLs now correctly point to dataenginev2).
Companion to wwv-data-engine fix/ci-stub-interval-fetch. The source-of-truth
stub (docker/ci/stub-seeder) used cron+fn and called ctx.setLiveSnapshot,
which the seeder ctx ({ redis }) does not expose — the snapshot never landed.
Switch to interval+fetch (return the array; scheduler auto-wraps + stores it).
Also remove the plugin-CI compose's ./stub-seeder volume mount and the stale
'Known foundation gap (deferred)' comment: the stub is now baked into the :ci
image at /app/seeders/stub, so the compose needs no host path and a consumer
repo can run it with only this YAML.
* feat: CI smoke-test foundation (probe + docker compose + rule updates)
Phase 1 of multi-repo CI initiative for catching plugin/seeder integration
failures (ADR-0002 id drift, missing mapWebsocketPayload, namespace
collisions, BOM in package.json) that current CI misses.
- packages/wwv-ci-probe: shared CLI with `seeder`, `ws`, `id-contract`
subcommands. README documents why no `plugin` subcommand (Playwright belongs
in wwv-plugins, not coupled to this probe). `files` + `prepublishOnly`
configured for clean npm publish.
- docker/ci/: reusable docker-compose stacks for plugin-CI and seeder-CI,
plus mock-upstream HTTP fixture server and CI-only stub-seeder. Compose
comments document scope boundary (consumer workflow owns user/plugin-row
injection via Playwright globalSetup pattern) and the deferred stub-seeder
bake-in for wwv-data-engine.
- .github/workflows/docker-publish.yml: adds `:ci` tag alias for downstream
consumers (one-line edit).
- .agents/rules/*: rename worldwideview-plugins → wwv-plugins (4 files) to
reflect repo rename + clarify it lives at local-plugins/ as its own git
working tree.
Bump 2.15.16 → 2.16.0 (Minor — new ci-probe package + new docker/ci
infrastructure are net-new features for the CI ecosystem).
Foundation has NOT been booted end-to-end yet — ghcr.io/silvertakana/
worldwideview:ci doesn't exist until this lands on main and the workflow
publishes. Next session: validate via real compose-up, then mirror the :ci
tag in wwv-data-engine repo and wire consumer workflows in wwv-plugins.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
* refactor(ci-probe): extract shared payload-shape validator with contract tests
* fix(ci): add /__health route to mock-upstream and gate engine on service_healthy
* chore: bump version to 2.48.18 for CI foundation landing
* chore: bump to 2.48.19 and reconcile lockfile after merging main (validateManifest fix)
---------
Co-authored-by: Claude Sonnet 4.6 <[email protected]>
Add an explicit rule section clarifying that plugins own their streamUrl,
WWV never overrides it globally, and the NEXT_PUBLIC_WWV_DATA_ENGINE_URL var
is for server-side REST calls only -- not plugin streaming.
hostGlobals.ts and resolveEngineUrl.ts comment both referenced the old
dataengine.worldwideview.dev subdomain; updated to dataenginev2.worldwideview.dev.
Replaces two separate env vars (NEXT_PUBLIC_WWV_LOCAL_ENGINE_PORT and
WWV_DATA_ENGINE_URL) with one: NEXT_PUBLIC_WWV_DATA_ENGINE_URL (full
HTTP base URL, default http://localhost:5000). Available both client-side
and server-side so it only needs to be defined once.
- engineManifest.ts: getLocalEngineBase() reads the new var directly
- resolveEngineUrl.ts: getLocalWsUrl() converts http->ws from the new var
- service.ts: getEngineUrl() reads the new var (fixes 5001->5000 default)
- Tests updated to set the full URL instead of a port number
- .env.example documents the new var with local and Docker examples
Update rule files to reflect current file locations and removed skills.
Closes#185.
- cloud-auth-architecture.md: frontmatter paths pointed to src/core/auth.ts,
storage.ts, tenant.ts which were never created; update to actual
src/lib/auth* paths and mark storage/tenant adapters as planned.
- deployment-and-testing.md: four stale skill links (osm-static-plugin-creation,
npm-plugin-publishing, git-version-control, security-check) removed from
.agents/skills/; replace each with the current equivalent reference.
- plugin-architecture.md: src/data/verifiedPlugins.ts replaced by database
admin API; remove two stale skill links (osm-static-plugin-creation,
data-engine-seeder-creation) and note current alternatives.
Deduplicates the WWV_DATA_ENGINE_URL fallback: discoveryHelpers.ts now
calls getEngineUrl() from data-query/service instead of inlining the
same logic. Comments and test mocks that referenced literal localhost:5001
or localhost:5000 now reference NEXT_PUBLIC_WWV_LOCAL_ENGINE_PORT or use
a generic test host. Closes#182.
- ts-ignore/ts-nocheck detector now only flags real suppression directives
(token immediately after the // or /* comment opener), not prose mentions
- outdated-dep detector now parses pnpm's Unicode box-drawing table, skipping
header/separator rows; surfaces real outdated deps instead of one garbage row
Guard the resize pointermove handler with an isDraggingRef flag instead of
hasPointerCapture(), which behaves inconsistently across webkit versions in
CI for repeated drag sequences. setPointerCapture still delivers move/up
events when the pointer leaves the handle bounds.
Salvaged from the retired feat/phase-2-auth-gate branch (orig d91cc429); the
setPointerCapture work it built on is already on main.
- User.sessionVersion + jwt-callback revalidation rejects deleted-user,
cross-database, and stale-version tokens (fixes cross-worktree stay-logged-in)
- POST /api/auth/revoke ("sign out everywhere") bumps sessionVersion
- proxy: deny-by-default /api with public allowlist + CORS preflight passthrough;
anchored static-asset allowlist closes the path.includes(".") bypass
- harden session cookie options (httpOnly/sameSite/secure) and cut maxAge to 7 days
- unify https/secure-context detection in isHttpsDeployment() so the cookie
writer (auth) and edge reader (proxy) never disagree on the __Secure- prefix
- augment next-auth User/Session/JWT types
Verified: 1009/1009 tests, build exit 0, live HTTP reproduction of all gates.
A 'pnpm install --lockfile-only' re-resolved local-plugins/wwv-plugin-nz-traffic-cameras
back to the vulnerable [email protected] (GHSA-5xrq-8626-4rwp), undoing #219's pin and
failing the Dependency Audit. Pin it durably via a pnpm override so any future
regen stays clean (closes the recurrence behind #97).
Verified: [email protected] gone from lockfile, frozen-lockfile exit 0,
pnpm audit --audit-level high exit 0 (7 moderate, 0 high/critical).
The merge of main resolved package.json with --ours, dropping the two
workspace deps main's #220 added. The lockfile kept them, so CI's
'pnpm install --frozen-lockfile' failed (ERR_PNPM_OUTDATED_LOCKFILE).
Re-add them to package.json so specifiers match the lockfile.
The main merge resolved package.json with --ours, dropping the two
workspace deps that main's #220 (per-plugin bundling) added. Restore them
and regenerate the lockfile so 'pnpm install --frozen-lockfile' (CI) passes.
Verified: frozen-lockfile install exits 0.
* fix(e2e): guard marketplace webServer and exclude per-app tests from main Playwright config
Root cause: playwright.config.ts unconditionally started the marketplace dev server at
../worldwideview-marketplace. In CI only worldwideview is checked out, so spawn() received
a non-existent cwd which Node.js surfaces as "spawn /bin/sh ENOENT", crashing the entire
test run before any browser launched.
Two targeted fixes:
1. Wrap the marketplace webServer entry in fs.existsSync(MARKETPLACE_DIR) so CI skips it
gracefully. Use playwright.marketplace.config.ts to run cross-app marketplace tests locally.
2. Add testIgnore for web-auth.spec.ts and marketplace-from-instance.spec.ts — both target
sibling repos (worldwideview-web / worldwideview-marketplace) and have their own dedicated
configs (playwright.web.config.ts / playwright.marketplace.config.ts). The main config
should only exercise the worldwideview app itself.
* feat(09-02): add playwright.cross-app.config.ts and .env.test for cross-origin specs
- Add playwright.cross-app.config.ts with dual webServer array (wwv.local:3001 + marketplace.wwv.local:3002)
- testMatch targets both upcoming cross-app spec files; baseURL set to marketplace.wwv.local:3002
- Create worldwideview/.env.test with PLAYWRIGHT_TEST_EMAIL + PLAYWRIGHT_TEST_PASSWORD (gitignored)
- Add explicit .env.test entry to .gitignore (was not covered by existing .env/.env.local patterns)
- Bump version 2.20.2 -> 2.21.0 (feat: minor)
* feat(09-02): add cross-app Playwright specs for redirect handshake and sign-out (REQ-16)
- Add marketplace-redirect-handshake.spec.ts: 2 tests verifying next= param construction and login-then-redirect-back flow
- Add marketplace-sign-out.spec.ts: 1 test verifying avatar dropdown sign-out clears session and returns to marketplace home
- Update playwright.cross-app.config.ts to load .env.test credentials via fs (no dotenv package required)
- All specs target https://marketplace.wwv.local:3002 (never localhost:3002) for correct .wwv.local cookie domain
- 3 tests total listed by playwright --list
* feat: add planning-sync hook script for .planning branch isolation
* fix: guard planning-sync against missing .planning, wrong repo, and silent checkout failures
- Exit early if .planning/.git doesn't exist (avoids false-success on machines without the private repo)
- Exit early if CWD is not a worldwideview repo or worktree (prevents syncing from wwv-data-engine etc.)
- Wrap both checkout calls in exit-code checks so failures emit WARNING messages instead of false success
* feat: add post-checkout hook for .planning auto-sync
* fix: add existence guard to post-checkout hook before calling planning-sync
* docs: add .planning branch convention to worktree-bootstrap skill
* feat(11-01): add LegalFooter component and .legal-footer CSS class
- Create src/components/layout/LegalFooter.tsx as a Server Component
- Export named function LegalFooter with two external anchors
- Both anchors use target="_blank" rel="noopener noreferrer" (T-11-01)
- Links target locked URLs: privacy-policy and cloud-terms-of-service
- Append .legal-footer + a + a:hover rules to globals.css
- position:fixed bottom:0 z-index:10 per UI-SPEC
- Bump version 2.23.2 -> 2.23.3
* feat(11-01): remove Vercel Analytics, mount LegalFooter in root layout
- Remove @vercel/analytics/next import from layout.tsx (D-02)
- Remove {process.env.VERCEL && <Analytics />} JSX (D-02, T-11-02)
- Add import { LegalFooter } from @/components/layout/LegalFooter
- Render <LegalFooter /> as last child of <body> (D-04)
- Remove @vercel/analytics from dependencies in package.json
- Regenerate pnpm-lock.yaml after dependency removal
- AdSense block (lines 27-37) untouched per D-03
- Bump version 2.23.3 -> 2.23.4
* fix(worktree): fix link_planning hook path conversion for Windows
Worktrunk substitutes {{ worktree_path }} as a Unix-style path
(/c/dev/...) which cmd.exe cannot resolve. It also strips $ sigils
from variable names before executing hook commands, making inline
PowerShell variables unusable.
Extract junction logic to .agents/scripts/link-planning.ps1 and
unlink-planning.ps1. The hooks now call powershell -File with
the path as an argument, avoiding both issues entirely.
* docs: add ADR-004 and phase-2 implementation plans
Adds the Supabase session cookies httponly ADR alongside the six
implementation plan documents produced during the auth gate phase.
* feat(auth): implement Phase 2 cloud auth gate (ADR-003 closeout)
- Cloud edition login page redirects to NEXT_PUBLIC_AUTH_HOST_URL;
local/demo editions keep the NextAuth credentials form
- Delete signup pages and Supabase PKCE callback route from worldwideview
(auth host owns them per ADR-003)
- Add Supabase SSR helpers (cookieOptions, server, client) with
httpOnly:true cookies per ADR-004
- Dual-dispatch install-redirect and grant-token: Supabase on cloud,
NextAuth on local/demo; redirect param unified to ?next=
- Add streaming mode to safeFetch for MJPEG camera proxy streams
- Extract LoginForm into its own component
- Update Playwright config to conditionally start marketplace dev server
* fix(types): cast undici ReadableStream body to BodyInit to satisfy DOM types
node:stream/web ReadableStream is structurally incompatible with the DOM
ReadableStream expected by the Response constructor -- the pipeThrough
signature differs on the T | undefined generic bound. Cast to BodyInit
(which is the correct type for the streaming pass-through) to resolve
the TS2345 error in ssrf.ts line 112.
* fix(e2e): exclude cross-app marketplace specs from default Playwright run
marketplace-redirect-handshake.spec.ts and marketplace-sign-out.spec.ts
require a running marketplace.wwv.local:3002 instance (cross-app
environment). They were being picked up by playwright.config.ts in CI
where that host does not exist, causing ERR_NAME_NOT_RESOLVED failures.
Added both files to testIgnore alongside the existing exclusions; they
should be run via playwright.cross-app.config.ts only.
* fix: add pointer event support to bottom panel resize for webkit
Playwright's webkit engine dispatches pointermove/pointerup reliably
during synthetic drags but mousemove sometimes does not fire. Add
pointermove and pointerup listeners alongside the existing mouse
listeners, and add onPointerDown to the drag handle, so the resize
test passes across all three browser engines.
* fix(marketplace): derive redirect/entry allowlists from env vars
Hardcoded ALLOWED_REDIRECT_HOSTS and entry-URL allowlists rejected custom
deployment hostnames (e.g. marketplace.wwv.local) causing 400 errors on
grant-token, install-redirect, and validateManifest.
All three validators now read NEXT_PUBLIC_MARKETPLACE_URL,
NEXT_PUBLIC_WWV_MARKETPLACE_URL, and MARKETPLACE_URL at module load and add
each hostname to their respective allowlists. Unparsable env values are
skipped silently. No hostnames are hardcoded; validators are inert when the
env vars are absent (production config unchanged).
* fix: parameterize engine host port binding via WWV_ENGINE_HOST_PORT
* fix: read engine port from NEXT_PUBLIC_WWV_LOCAL_ENGINE_PORT in engineManifest
* fix: read engine port from NEXT_PUBLIC_WWV_LOCAL_ENGINE_PORT in resolveEngineUrl
* feat: add dev-all.mjs orchestrator with auto engine port detection
Replaces the concurrently one-liner dev:all script with a Node.js
orchestrator that finds a free port starting at 5000, then injects
WWV_ENGINE_HOST_PORT, NEXT_PUBLIC_WWV_LOCAL_ENGINE_PORT, and
COMPOSE_PROJECT_NAME before starting the app and backends concurrently.
* feat: wire dev:all to auto-port orchestrator
* fix: skip WS auth in local engine container and silence concurrently deprecation
* fix: set NODE_ENV=development in engine container to allow WWV_SKIP_WS_AUTH
* chore: regenerate pnpm-lock.yaml for wwv-lib workspace deps
Merge from main introduced @worldwideview/wwv-lib-aviation and
@worldwideview/wwv-lib-incidents in package.json but pnpm-lock.yaml
(inherited from main) had no entries for them. pnpm install
--no-frozen-lockfile regenerated the lockfile to include both
workspace packages, unblocking the frozen-lockfile CI enforcement.
The quickstart was cloud-only: it told self-hosters MCP is a 'cloud-edition
feature', pointed them at worldmonitor.app, and used the cloud endpoint -
actively wrong for the local edition that actually ships MCP today.
- lead with the local self-host flow: pnpm install/setup/dev(:all) -> sign in
at localhost:3000 -> generate key -> paste localhost:3000/api/mcp -> open tab
- document pnpm dev vs pnpm dev:all (Redis + engine needed for command tools,
geocoding, and live data); clarify which tools need which
- add update_favorite + fly_to to the tier tables; localhost-ize troubleshooting
- preserve cloud guidance under 'Cloud edition (coming soon)' for the future
hosted launch (not deleted)
The migration history only contained 20260509061229_init (6 tables), but
schema.prisma declares UserApiKey (user_api_keys) and MarketplaceCredential
(marketplace_credentials). Those tables existed only via the dev-only
'prisma db push' hook, so a fresh production 'prisma migrate deploy' built a
DB missing user_api_keys -> all MCP API-key auth threw 'relation does not
exist' (DOA in production).
- add 20260510000000_add_marketplace_credentials_and_api_keys (slots between
init and add_favorite_notes); columns/constraints/indexes/FK mirror schema
- track the previously-untracked 20260531214034_add_favorite_notes migration
Verified: 'migrate deploy' on a fresh DB yields all 8 tables, zero drift
(prisma migrate diff: No difference detected). Dev DB baselined via
'migrate resolve --applied'; prisma validate + generate + tsc clean.
Phase 35 of v1.5 MCP Public-Launch Hardening (DEPLOY-01..04):
- DEPLOY-01: production and cloud compose now provision a co-located Redis
(password-protected via REDIS_PASSWORD, internal-only) and wire REDIS_URL,
so sessions, command queue, geocode cache, and rate limiters work in prod.
- DEPLOY-02: set WWV_DATA_ENGINE_URL to the engine REST base (not the
NEXT_PUBLIC_.../stream WS URL) so MCP data tools reach /manifest.
- DEPLOY-03: a single global 1 req/s Nominatim throttle (peek/commit sliding
window with a queued-waiter cap and an in-process fallback) protects the
shared geocoder; the 24h cache is checked before the throttle.
- DEPLOY-04: deploy/INFRA-CHECKLIST.md documents the operator actions
(managed Redis rediss://, WWV_DATA_ENGINE_URL, distinct API_KEY_HMAC_SECRET,
AUTH_SECRET, WWV_TRUSTED_IP_HEADER for multi-proxy, health semantics).
Security hardening from review: require AUTH_SECRET (no weak committed
fallback), password the co-located Redis, bind cloud Postgres to loopback,
de-duplicate the geocode result normaliser. Patch.
Phase 34 of v1.5 MCP Public-Launch Hardening (OBS-01):
- /api/health now probes Redis (ping), the database (SELECT 1), the data
engine (manifest reachable), and HMAC config in parallel with 2s timeouts,
returning {status, checks, edition, timestamp}.
- HTTP 503 when the DB is down or the HMAC secret is misconfigured
(cloud/demo); HTTP 200 'degraded' when Redis or the engine is down so a
serving-but-degraded container is not killed.
- Extract isSigningKeyValid() (src/lib/signingKeyConfig.ts) as the single
source of truth for the SEC-01 rule, reused by getSigningKey and the health
config probe (closes the Phase 32 deferred 'surface misconfig at deploy').
- Add ping() to the RedisClient interface; reuse getEngineUrl() so the probe
and data layer resolve the same engine URL.
Patch: turns the always-healthy stub into real dependency observability.
Phase 33 of v1.5 MCP Public-Launch Hardening (TOOL-01..05):
- TOOL-01: data-query tools never report no_session_active; they return
the true reason (no_data_matches / engine_unreachable / no_active_plugins).
Verified live: an empty region query with no browser session now returns
no_data_matches.
- TOOL-02: toggle_layer / set_filter validate the id against the live plugin
set and warn instead of returning success for an unrecognized id;
focus_entity resolves entityId+pluginId to coordinates server-side and
returns an honest error when it cannot.
- TOOL-03: get_entities_in_region returns count + truncated + totalMatched and
tightens radiusKmToBbox (cos(lat), clamped to a full-globe span).
- TOOL-04: investigate_area and get_plugin_data cap output (200) with a
truncated flag so a single response cannot blow client context.
- TOOL-05: MCP_SERVER_INSTRUCTIONS match the real response shapes;
list_available_plugins distinguishes engine_unreachable from
no_active_plugins and surfaces local sources distinctly.
Patch: corrects misleading tool behavior, no API removal.
Phase 32 of v1.5 MCP Public-Launch Hardening (SEC-01..04):
- SEC-01: require a dedicated API_KEY_HMAC_SECRET in cloud/demo editions;
getSigningKey fails closed if it is unset or equal to AUTH_SECRET.
Local dev keeps the AUTH_SECRET fallback.
- SEC-02: Redis-backed per-key sliding-window rate limit (120/60s) applied
after auth, returns JSON-RPC -32000 / HTTP 429, fails open on Redis outage
behind the existing per-IP pre-auth gate.
- SEC-03: derive client IP from the trusted-proxy (rightmost X-Forwarded-For)
hop with an optional WWV_TRUSTED_IP_HEADER override, defeating spoofing.
- SEC-04: length + charset bounds on entityId/pluginId/layerId/name/notes
(shared identifierSchemas) and in isValidGlobeCommand; favorites capped at
500 per user.
Consolidates id schemas, extracts MCP response helpers, accurate Retry-After,
unique sliding-window members. Minor semver bump: adds new guardrails.
Phase 31 of v1.5 MCP Public-Launch Hardening (TRANS-01..04):
- Wrap the MCP route handler in a top-level try/catch returning a
well-formed JSON-RPC -32603 (id:null, 500) instead of bare HTTP 500s
when auth/Redis/transport throws.
- authenticateApiKey now returns null (clean 401) on a DB outage instead
of rejecting; logs only the error class name (no connection strings).
- Add explicit maxDuration=30 on the MCP route, above the 10s relay blpop.
- Stop advertising tools.listChanged (stateless server cannot push);
document the re-call tools/list contract in server instructions.
Sanitize the catch-all log so a Redis/Prisma error message cannot leak
credentials to server logs. Patch: behavior-hardening, no API change.
* fix: decode Overpass response as UTF-8 to preserve Cyrillic names
Collect raw Buffer chunks from the OSM search proxy stream and decode the
full body as UTF-8 once, instead of concatenating Buffers into a string
per-chunk. The previous `data += chunk` pattern decoded each chunk
independently, corrupting any multi-byte UTF-8 character (Cyrillic place
names in Kazakhstan, Russia, Mongolia, etc.) that straddled a chunk
boundary on large Overpass responses.
https://claude.ai/code/session_01J9986diBmJ6oCu6dD5A8m9
* chore: add self-locating pnpm setup script for web sessions
Add scripts/web-setup.sh for Claude Code on the web (and fresh CI clones).
It resolves the repo root from its own location, activates the pinned pnpm
via corepack, runs pnpm install, and generates the Prisma client — fixing
the 'npm error path /home/user/package.json' setup failure caused by running
npm from the wrong directory in this pnpm monorepo. Point the environment's
setup script at: bash scripts/web-setup.sh
https://claude.ai/code/session_01J9986diBmJ6oCu6dD5A8m9
---------
Co-authored-by: Claude <[email protected]>
* docs(22-01): execution summary for market-tracker provider abstraction
* docs(22-02): execution summary for provider factory and test updates
Plan 22-02 complete: providers/index.ts created, src/index.ts refactored,
tests updated. All 17 tests pass. Redis key and seeder contract preserved.
* feat(cables): bundle TeleGeography GeoJSON statically, delete proxy route
- Add public/data/undersea-cables.geojson (728KB, 712 features, CC BY 4.0)
- Delete src/app/api/undersea-cables/route.ts (24h proxy to submarinecablemap.com)
- Static file served by Next.js at /data/undersea-cables.geojson with zero config
* docs(24-01): execution summary for undersea cables static asset swap
- SUMMARY.md: 4/4 tasks, build passes, deviations documented
- STATE.md: milestone 100% complete, all phases done
- ROADMAP.md: Phase 24 marked complete with 1/1 plans
* fix(plugins): bundle wwv-lib-aviation and wwv-lib-incidents per-plugin
Removes both base-class libs from the host pantry (EXTERNAL_GLOBALS and
hostGlobals.ts). The 5 consumer plugins now declare them under dependencies
so Vite inlines them at build time, eliminating ManifestLoadError bare-import
failures permanently.
Also: publicDir:false stops 1.4GB dist pollution, CONFIG_HASH invalidation
ensures rebuilt bundles after externals change, ManifestLoadError now emits
actionable bundling guidance, build logging shows per-plugin progress and
final built/cached/failed stats.
The toggle_layer MCP command only flipped the Zustand UI switch via the
command bridge and never started the plugin data lifecycle, so an
agent-enabled layer showed as toggled but rendered no data.
Extract the shared setLayerActive() helper (src/core/plugins/layerActivation.ts)
that drives pluginManager.enablePlugin/disablePlugin plus store state, and
route both the UI click (LayerPanel) and the agent command bridge
(useGlobeCommandBridge) through it so agent toggles trigger the identical
data fetch/stream path. Verified live: an MCP toggle_layer(camera) loads
2,376 camera entities with no browser interaction.
Patch: behavior fix, no API change.