Commit Graph
444 Commits
Author SHA1 Message Date
Sameh Khamis a5f820bb0d Merge pull request #444 from vortsghost2025/fix/issue-362-opensky-doctor
fix: report OpenSky anonymous mode in setup doctor
2026-09-20 16:47:59 -07:00
Sameh Khamis 9ad64112dc fix: report OpenSky Basic and auto modes accurately 2026-09-20 16:43:16 -07:00
Sameh Khamis a716b059b8 Merge origin/main into fix/issue-362-opensky-doctor 2026-09-20 16:43:01 -07:00
Sameh Khamis ebca84e87a Merge pull request #649 from theerayutbo/fix/ais-unavailable-sog-cog
fix: treat AIS "not available" speed and course as unknown
2026-09-20 16:38:40 -07:00
Sameh Khamis 5d684c22b3 Merge origin/main into fix/ais-unavailable-sog-cog
# Conflicts:
#	CHANGELOG.md
#	docs/CURRENT-STATE.md
2026-09-20 16:33:53 -07:00
Sameh Khamis 678763d3c0 Merge pull request #664 from Udaydsmls/fix/ui-dark-select-palette
fix: render native select option lists in the dark palette
2026-09-20 16:26:20 -07:00
Sameh Khamis 6eeb2fce11 Merge origin/main into fix/ui-dark-select-palette
# Conflicts:
#	CHANGELOG.md
2026-09-20 16:21:29 -07:00
Sameh Khamis d15cc383c3 Merge pull request #622 from cyberspace-cs/docs/add-contributing-nav-link
docs: add Contributing link to top navigation bar
2026-09-20 16:01:24 -07:00
Sameh Khamis 79a828bb90 Merge branch 'main' into docs/add-contributing-nav-link 2026-09-20 15:56:45 -07:00
Sameh Khamis 7ef9b885ee Merge pull request #669 from daikaginza/docs/adsbdb-attribution
docs(attribution): credit adsbdb and carry its route-data terms
2026-09-20 15:53:51 -07:00
Sameh Khamis 9f8f6284b5 docs(attribution): clarify adsbdb data-use wording 2026-09-20 15:49:22 -07:00
Sameh Khamis 581afbecea Merge origin/main into docs/adsbdb-attribution
# Conflicts:
#	CHANGELOG.md
2026-09-20 15:48:49 -07:00
Sameh Khamis fb7e1ef568 Merge pull request #677 from GGPOShadows/pr/tomtom-budget
fix(tomtom): size the daily tile budget to the real free allowance
2026-09-20 15:43:10 -07:00
Sameh Khamis 783f68a36a Merge branch 'main' into pr/tomtom-budget 2026-09-20 15:39:17 -07:00
Sameh Khamis 7fc8cd9fd0 Merge pull request #678 from GGPOShadows/pr/gitignore-env-variants
fix(security): ignore the whole dotenv ladder, not just .env
2026-09-20 15:33:53 -07:00
GGPOShadowsandClaude Opus 5 82f3516166 fix(security): ignore the whole dotenv ladder, not just .env
.gitignore listed only the bare filename `.env`, but the app reads four
credential files, not one. scripts/setup-doctor.mjs:92 walks
`['.env', '.env.local', `.env.${mode}`, `.env.${mode}.local`]`, and
server/standalone/vite.config.js:11 calls Vite's `loadEnv(mode, root, '')`,
which reads the same ladder.

gitignore matches literally, so three of those four files were
committable. A key placed in .env.local is fully live for the app --
the doctor reports it as configured and the provider proxies use it --
while `git add -A` stages it. Verified on a clean checkout of main:

    .env                    ignored
    .env.local              COMMITTABLE
    .env.production         COMMITTABLE
    .env.production.local   COMMITTABLE

This matters more than usual here because the in-app Provider Settings
panel trains people to keep real keys in the checkout rather than in a
shell profile, and because the repository has ~7.7k forks that inherit
the same gap.

Replaces the single `.env` entry with `.env` plus `.env.*`, and re-includes
`.env.example` with a negation so the tracked template is unaffected.

Deliberately scoped to the dotenv ladder alone. Other credential-bearing
artifacts (a repo-local OPENSKY_CREDENTIALS_FILE, *.pem/*.key) are a
separate question and are left for a follow-up rather than widened here.

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-09-19 22:55:56 -07:00
GGPOShadowsandClaude Opus 5 5e99adc978 fix(tomtom): size the daily tile budget to the real free allowance
TOMTOM_DAILY_TILE_BUDGET defaulted to 40,000 per day against a free
tier that is granted per MONTH, not per day. TomTom currently allows
200,000 Traffic Flow & Incidents tile requests per month
(https://docs.tomtom.com/pricing/), so the default exhausted a user's
entire monthly allowance in five days and left the traffic layer dead
for the rest of the billing period.

The docs contradicted themselves on this. traffic.js described the
free tier as "~50k/day", while .env.example cited the correct 200K
per month two lines below quoting the same 40,000 default. 50k/day
would be 1.5M/month, 7.5x the actual allowance.

Sets the default to 6,000/day. A 31-day month lands at 186,000,
inside the allowance with headroom. Corrects the stale figures in
traffic.js, .env.example and DATA_SOURCES.md.

This remains an application-side safety ceiling, not a billing cap,
and the surrounding text still says so. TomTom's free tier requires
no card, so overrunning it cuts the layer off rather than generating
a charge — but a layer that dies three weeks into every month is
still worth avoiding by default.

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-09-19 22:44:19 -07:00
daikaginza ae35a2c939 docs(attribution): credit adsbdb and carry its route-data terms
adsbdb supplies the aircraft type, model name and registration behind every
enriched flight, and the airline and origin/destination pair behind the
tracked contact's FROM -> TO strip. It appeared in neither attribution
surface: DATA_SOURCES.md and src/data/dataCredits.js each held zero
occurrences of it, against the rule both files state for themselves and
CONTRIBUTING's fourth pull-request item. adsb.lol is a different operator and
its ODbL credit does not reach this data.

The reporter of #256 left the patch off deliberately, saying the terms were
what should not be guessed. They are published, so this takes them from the
source rather than inventing them: adsbdb credits PlaneBase for the aircraft
data and Guillaume Michel for the ICAO-to-N-number conversion, and states that
the flight route data "is the work of David Taylor, Edinburgh and Jim Mason,
Glasgow, and may not be copied, published, or incorporated into other
databases without the explicit permission of David J Taylor, Edinburgh". No
licence or rate limit is published for the service itself.

That restriction is the reason the note records what the proxy does with what
it fetches: responses are cached per key for 24 hours in .gev-cache/adsbdb.json,
which is gitignored, so the data stays on the operator's machine and is never
bundled with this repo or redistributed.

A test pins the credit. The attribution is a requirement rather than a
preference, so it should fail loudly if a later edit drops the names or the
restriction, instead of surviving on luck.
2026-09-19 20:12:36 +07:00
Uday S 59b2637fb7 fix: render native select option lists in the dark palette 2026-09-19 00:06:19 -04:00
Theerayut BoonkirdandClaude Opus 5 75869d0c10 chore: adopt the new AIS test into the explicit formatting scope
scripts/format.mjs skips *.test.mjs during runtime discovery, so a test
added under a discovered root is never seen by format:check until it is
listed in scripts/format-scope.json — which is what CODE-BOUNDARIES.md
means by adding tests to the explicit list as they are adopted. The file
went in unformatted and the check stayed green, hiding it.

Listed and formatted; format:check now covers 917 files instead of 916.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-09-18 00:43:02 +01:00
Theerayut BoonkirdandClaude Opus 5 b0f5072347 docs: record the AIS unavailable-code handling
CONTRIBUTING asks for docs/CURRENT-STATE.md and CHANGELOG.md in the same PR
as a runtime behaviour change.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-09-18 00:41:06 +01:00
Theerayut BoonkirdandClaude Opus 5 88f6e8bcf8 fix: treat AIS "not available" speed and course as unknown
ITU-R M.1371 encodes speed over ground in 0.1-knot units and course over
ground in 0.1-degree units, reserving the top code of each field for "not
available": SOG 1023 reaches us as 102.3 knots and COG 3600 as 360 degrees.
Both are finite, so numberValue passed them through as ordinary readings and
every consumer — vessel cards, the HUD, voice analyst queries — treated a
missing measurement as a real one.

Observed on a live AISStream feed of 3,062 vessels: exactly 3 records at
102.3 knots with no reading anywhere between 40 and 102.3, and 404 records
at exactly 360 degrees. One Dutch rescue boat moored at its station carried
both sentinels at once, so an analyst summary reported a maximum speed of
102.3 knots — faster than any vessel afloat.

Filter both at the store, where AISStream messages are decoded, so the
sentinels never enter the cache. Heading already had this treatment through
normalizedHeading with its own separate sentinel of 511.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-09-18 00:41:06 +01:00
Sameh Khamis 0d41b6be54 Merge pull request #626 from bilawalsidhu/fix/vessel-partial-feed-status
fix: distinguish partial vessel snapshots from stale data
2026-09-16 11:57:56 -07:00
Sameh Khamis a25ee64209 fix: distinguish partial vessel snapshots from stale data 2026-09-16 11:52:26 -07:00
cyberspace-cs 0dcb02c6da docs: add Contributing link to top navigation bar
Make the contribution guide discoverable from the README's main
navigation alongside Quick Start, Under the Hood, and Keys & Costs.
2026-09-17 00:06:33 +08:00
Sameh Khamis 531ef52ca4 Merge pull request #600 from manjunath22466/fix/pinokio-nepal-media-fallback
fix: prevent Nepal media from opening external browsers in Pinokio
2026-09-16 08:41:06 -07:00
manjunath22466 621d186de1 fix: scope Nepal media playback to explicit scene actions 2026-09-16 12:14:15 +05:30
manjunath22466 cf0b9927de Merge public main into Nepal media follow-up 2026-09-16 10:40:29 +05:30
Sameh Khamis a65d9d85f1 Merge pull request #616 from bilawalsidhu/feat/director-sharing
Add Director authoring, import previews and scene bundles
2026-09-15 20:19:57 -07:00
Sameh Khamis 078fc290ec Add Director authoring, import previews and scene bundles 2026-09-15 20:15:32 -07:00
Sameh Khamis 62f66c4b86 Merge pull request #614 from bilawalsidhu/feat/director-interactions
feat: add declarative Director feature actions
2026-09-15 19:20:40 -07:00
Sameh Khamis 80027756ef feat: add declarative Director feature actions 2026-09-15 19:16:49 -07:00
Sameh Khamis a30c42322c Merge pull request #613 from bilawalsidhu/feat/director-data-packs
Director: add bounded scene data packs and geographic placement
2026-09-15 18:05:57 -07:00
Sameh Khamis f558a240d1 Release failed asset responses and refuse cancelled requests 2026-09-15 18:01:39 -07:00
Sameh Khamis 92526e9a92 feat(director): add bounded scene data packs and placement 2026-09-15 17:59:53 -07:00
Sameh Khamis 4436d7f18e Merge pull request #612 from bilawalsidhu/feat/director-camera-directions
Add Director camera anchors and authored moves
2026-09-15 17:01:53 -07:00
Sameh Khamis 13c0b8d1bc feat(director): add authored camera directions and anchors 2026-09-15 16:53:26 -07:00
Sameh Khamis 0ea10468ea Merge pull request #611 from bilawalsidhu/feat/director-documents
Validate scene documents and preserve saved edits
2026-09-15 16:24:11 -07:00
Sameh Khamis 18300e7e00 feat(director): validate scene documents and preserve saved edits 2026-09-15 16:20:36 -07:00
Sameh Khamis c894d7b920 Merge pull request #610 from bilawalsidhu/refactor/director-timing
Separate Director timing, clocks and scene-pack presentation
2026-09-15 15:46:57 -07:00
Sameh Khamis 8a3c4868b0 refactor(director): separate timing clocks and scene pack presentation 2026-09-15 15:41:42 -07:00
Sameh Khamis 5728dec24d Merge pull request #604 from bilawalsidhu/refactor/realtime-owners
refactor(voice): separate Realtime session ownership
2026-09-15 12:33:30 -07:00
Sameh Khamis e82e0a149f test: resolve the terrain fixture through its dependency 2026-09-15 12:29:18 -07:00
Sameh Khamis a6f9c3d82a Merge remote-tracking branch 'origin/main' into refactor/realtime-owners
# Conflicts:
#	CHANGELOG.md
2026-09-15 12:21:32 -07:00
Bilawal Sidhu 50d3672a00 fix(transit): keep parked vehicles pointed along their course while the camera orbits (#603)
## Changes

Follow-up to #596 from the owner's look: a parked transit vehicle turned with the camera. Moving vehicles project their world course into screen space on every camera change, but a vehicle that had never moved on screen could have no display course and was skipped by that pass, leaving its billboard at a screen-anchored angle; rotation invalidation also relied on camera events that a pose change without a revision could miss. Now every visible vehicle with any usable course (derived, held, or the feed's reported bearing) is re-projected at the existing 5 Hz cadence on camera pose changes. Moving playback and the 120°/s course limiter are unchanged.

## How it was verified

- `npm run format:check` (861 files), `npm run check:boundaries` (109 groups), `npm test` (4,068 passing), `npm run build` clean; tracking regression 109/109 in a real browser on Google 3D tiles.
- Node tests: a stationary vehicle with a held course, and one with only a reported bearing, under a camera at heading 0° then 90° yield screen rotations 90° apart.
- Browser harness (`scripts/qa-transit.mjs`, keyed on Google 3D tiles): a parked scripted vehicle orbited by 90° rotates 90.000° on screen; a moving vehicle's rotation still matches its rendered travel; both checks fail on main and pass here. Full keyed run: 201 pass; the nine failures are the per-frame allocation gate already recorded as a follow-up and threshold-edge readability lines on the Boston matrix, both unchanged from #596.
2026-09-15 14:15:27 -05:00
Sameh Khamis e7970c50b7 fix(voice): discard continuations from closed conversations 2026-09-15 12:13:35 -07:00
Sameh Khamis aa6804802c Merge remote-tracking branch 'origin/main' into refactor/realtime-owners 2026-09-15 12:05:07 -07:00
Sameh Khamis cc9a080f2d refactor(voice): separate Realtime state and resource owners 2026-09-15 12:05:01 -07:00
Bilawal Sidhu 0bb61f53c6 fix(transit): keep the real silhouettes under sensor presets, make the selected trail visible, put Transit in Movement (#596)
## Changes

Follow-up to #587 after the owner's first look at the merged transit layer on Google 3D tiles.

- **Sensor presets keep the real silhouettes.** Under NVG, thermal (white-hot, black-hot, Ironbow) and noir, vehicles are the same silhouettes as in normal view, filled opaque white with a 2 px dark halo, at the CRT display sizes (26 px fleet, 39 px selected). The solid rounded "signature" bodies are gone.
- **The selected vehicle's trail is visible.** The retained history is now draped onto 3D tiles and terrain (`GroundPolylinePrimitive`, `ClassificationType.BOTH`, the way the traffic heat-lines are drawn), 3 px core over a 5 px dark backing, per-segment age colour, a short draped head clipped to the sprite. Two defects kept it off screen before: Cesium's per-instance attribute getters return copies, so the renderer's show/colour edits were discarded, and a marker did not recover after the camera jumped to it, which hid the trail with it. Trail geometry is now prepared on selection independent of floor resolution and marker visibility; sparse long intervals (rail) keep a bounded marker corridor instead of dropping the interval; classification survives map-source changes.
- **Transit sits in the Movement panel group** between Street Traffic and Bike Share (the panel orders by `PANEL_GROUPS`, not by catalog order; the catalog is moved too).

## How it was verified

- `npm run format:check` (854 files), `npm run check:boundaries`, `npm test` (4,062 passing), `npm run build` clean; tracking regression 109/109 in a real browser on Google 3D tiles.
- Browser harness (`scripts/qa-transit.mjs`), keyed on Google 3D tiles and keyless: keyed 194 pass, with the trail pixel check passing at 300, 600 and 900 m; the remaining keyed failures are the per-frame allocation gate already recorded as a follow-up from #587 (CPU and frame time within budget), four readability lines at threshold edges, and the card-anchor check now counting frames where the selected marker is legitimately off screen; keyless 193 pass with the remaining misses being threshold edges on the thin tram silhouette (centre 0.83–0.88 against 0.85) and one bus ring 0.28 against 0.25 on a pure-white roof.
- New harness checks: `Google 3D selected trail visible at 6 of 8 projected samples` (repeated off/on framebuffer captures at 300/600/900 m, samples outside the sprite footprint, a background-change negative control; fails on main, passes here), a camera-arrival check (select a moving vehicle, `setView` onto it, marker shown and trail body drawn within 2 s), `PANEL_ORDER` pinned, raster tests comparing every sensor raster's mask and aspect ratio to the normal silhouette.
- Direct look on a keyed build: a live CapMetro bus at 30 m/s selected through the layer API draws its draped trail along the highway lane (harness capture `keyed-600m-trail-visible.jpg`).
- Adversarial review by Codex Astra before the last two fix passes (stack-switch classification, marker corridor under the vertex cap, pixel-gate loophole), all three fixed with regressions.

Docs: `docs/CURRENT-STATE.md` and `CHANGELOG.md` updated in this PR. No data-source changes.
2026-09-15 13:26:41 -05:00
manjunath22466 94f83c59de fix: prevent Nepal media from opening external browsers in Pinokio 2026-09-15 23:54:07 +05:30