Commit Graph
259 Commits
Author SHA1 Message Date
BigBodyCobainandClaude Opus 5.5 e188fc12e2 Refresh branding: new logo icons, favicon, README images
- Favicon and Apple touch icon built from the new SB mark
- Desktop (Tauri) icons regenerated from the new mark on a dark tile
- README header and FLIR screenshot replaced with current-UI images
  kept in docs/images (the old GitLab upload paths were 404 on GitHub)
- Allow docs/images/ in .gitignore
- Browser tab title now reads ShadowBroker

Refs #707

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 10:46:34 -07:00
BigBodyCobain 68d462b70b Keep OSM basemap responsive and retain standard Docker builds 2026-11-13 19:26:18 -07:00
BigBodyCobain 591730cbde Merge remote-tracking branch 'origin/main' into codex/osm-693 2026-11-13 19:22:49 -07:00
Shadowbroker 012c4eeaf4 Merge pull request #666 from BeauBoorman/sb-fixes-261104
Fix batch: SB_PIN_LAYERS guard, silent-failure logging, agent-shell port, AIS stream reconcile
2026-11-13 19:03:42 -07:00
BigBodyCobain 6f55659a5b Resolve map, operator access, updater, and Gemini Live issues 2026-11-13 18:10:20 -07:00
esmaeelE bfa46e75bb fix(map): restore maplibre namespace import and worker URL
The merge-conflict resolution (3f1c882) reverted upstream d7a7595
"Patch runtime dependencies and migrate MapLibre worker integration",
switching to a default import that maplibre-gl does not provide.

- back to namespace import: maplibre-gl has no default export (TS1192)
- restore maplibregl.setWorkerUrl('/maplibre-gl-worker.mjs'), which
  next.config.ts copies from node_modules into public/ at build time
2026-11-10 10:50:57 +03:30
esmaeelE 3f1c882159 fix: resolve merge conflict in MaplibreViewer.tsx 2026-11-09 10:05:19 +03:30
esmaeelE 28381c19ba Merge remote-tracking branch 'upstream/main' into fix/osm-tile-proxy-pr649 2026-11-07 17:34:08 +03:30
esmaeelE 1030ee85e8 feat(osm): fix PR #649 review requests — add backend tile proxy, remove disabled OSM Source block, clean unused imports, revert cartoTileUrls concatenation 2026-11-07 17:12:55 +03:30
BigBodyCobainandClaude Opus 5.5 7f17676ef2 Fix CI: restore voice button dimming, patch audited dependencies
- VoiceMicButton: put opacity-50 back on the opt-in-required and
  lean-unavailable states; the restyle had dropped it, breaking the
  section 5.2 render-matrix test
- uv.lock: black 26.3.1 -> 26.10.1 and certifi 2026.2.25 -> 2026.10.23
  for newly published advisories
- CI audit step: install filelock>=4.2.1 alongside pip-audit; the
  flagged filelock 4.1.0 is pip-audit's own dependency, not the backend's

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 22:21:22 -07:00
BigBodyCobainandClaude Opus 5.5 c4d7d44f3c Merge origin/main into ui/website-look
Resolve dependency conflicts by keeping the newer version of each package,
except maplibre-gl, which stays on 6.x because this branch migrated the map
worker to MapLibre 6 (main still pins 4.7):

- frontend: framer-motion 14.9, hls.js 1.7.4, lucide-react 1.66,
  maplibre-gl 6.14, @types/node 26, vite 8.3.5, vitest 4.1.12
- backend: apscheduler 3.11.3, cachetools 7.2.8, cryptography 50.0.2,
  keep anyio >= 4.14.2
- package-lock.json and uv.lock regenerated from the resolved manifests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 21:49:47 -07:00
BigBodyCobainandClaude Opus 5.5 6dda319508 Restyle the dashboard to match the ShadowBroker website
Brings the app into the same visual family as shadowbroker.dev: deep-navy
glass panels, Chakra Petch / Inter / JetBrains Mono, cyan-blue accents and
the shared logo mark.

- Display menu (VIEW): EO / FLIR / NVG / CRT sensor modes that re-tint the
  UI and grade the map, plus basemap, map tone and HUD colour options
- Merge the Shodan, Recon, Supply Chain, Cyber Threats and AI Intel cards
  into one tabbed TOOLS card so Data Layers gets the column
- Map alert callouts: at most two, kept clear of the side rails, screen
  edges and offline banner, with notch or leader-line anchors
- Label declutter against HUD, callouts and cluster bubbles
- Scale for 1440p (1.125x HUD, 1.2x dialogs) and 4K, with dialog heights
  capped to fit the screen
- Dossier footer pinned outside its scroller; related-coverage list no
  longer repeats the lead story
- Escape closes the changelog, onboarding and startup-cache dialogs
- COMMS starts collapsed below 1200px tall; compact POTUS fleet card
- Many smaller polish fixes across news, legend, settings and status bar

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 20:58:38 -07:00
Beau Boorman 9c3deb900e agent-shell: keep side-by-side dev port offset for 3000-3999, dial 8000 otherwise
The WS URL builder offset any non-3000 frontend port (8302-3000+8000=13302),
which nothing listens on when 8302 is a plain published mapping. Keep the
offset only for the genuine dev side-by-side range 3000-3999, dial the
default backend port 8000 otherwise. NEXT_PUBLIC_BACKEND_PORT still wins.
2026-11-04 22:49:19 -06:00
f30e2a1393 Fix empty cyber-threats layer and false AIS outage notices
Both found by @BeauBoorman running Shadowbroker live (#666).

Cyber threats: CISA KEV dateAdded values are date-only ("2026-11-03"), so
fromisoformat() returns naive datetimes and subtracting them from an aware
"now" raised TypeError. The bare except skipped every entry, so the layer
always showed zero recent CVEs from a healthy catalog. Parse them as UTC.

AIS: with every ship layer off the stream is stopped on purpose, but the
banner still blamed AISStream (and suggested an AISHub signup) and
/api/health reported "degraded" when AIS_API_KEY was set. ais_proxy_status()
now reports ship_layers_active; the banner and the health escalation skip
that case. Older backends without the field keep the old behavior.

Tests for both run in the CI backend smoke set; new banner tests cover the
frontend.

Co-Authored-By: Beau Boorman <216379357+BeauBoorman@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 20:34:35 -07:00
BigBodyCobainandClaude Opus 5.5 ec50c87c56 Replace removed lucide Github icon for lucide-react 1.x
lucide-react 1.0 dropped brand icons, so the Github import resolved to
undefined and TopRightControls crashed on render. Swap in a small local
GithubIcon (Octicons mark-github, MIT) with the same size/className props.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 16:02:49 -07:00
BigBodyCobain b715eecbd9 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	.github/workflows/ci.yml
#	backend/pyproject.toml
#	frontend/package-lock.json
#	frontend/package.json
2026-11-04 13:26:59 -07:00
esmaeelE 048fe7ad5c feat(osm): add OSM basemap style to map style cycle 2026-11-02 11:53:06 +03:30
BigBodyCobain 039f618301 Bundle JetBrains Mono locally to fix Turbopack font builds 2026-10-30 11:17:08 -06:00
BigBodyCobain 50be1c2402 Restore public camera and satellite access and fix map worker and portrait loading 2026-10-27 19:08:55 -06:00
BigBodyCobain 9e17d80abf Merge latest origin/main while preserving AI missions and operator security 2026-10-27 18:00:40 -06:00
Claude 00fd0f9d60 Stop LAN-shared dashboards from handing out operator access
With the dashboard bound to the network (make up-lan), the frontend proxy
added the server ADMIN_KEY to every same-origin request and the backend
trusted the frontend container as the local operator, so any device on
the LAN that opened the dashboard had full control: DMs, contacts, gate
keys and settings. The proxy cannot tell the local browser apart from
other devices, because Next.js forwards client-supplied X-Forwarded-For
verbatim (verified against next start: a remote client sending
X-Forwarded-For: 127.0.0.1 reaches the backend as 127.0.0.1).

SHADOWBROKER_LAN_MODE=1, set by make up-lan, now makes the proxy inject
the admin key only for signed-in admin sessions and stops the backend
trusting the frontend container. Loopback tools on the host keep working.
For a backend behind nginx/Caddy on the same host, the new opt-in
SHADOWBROKER_UNTRUSTED_LOOPBACK=1 makes loopback callers present the key
too. Default installs are unchanged.

Also compare the admin key in constant time at sign-in, and make the
403 message say how to sign in from another device.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeX9wuqeVAQNr22zQHWj2H
2026-10-22 04:57:47 +00:00
Claude 5c937a10f8 Tell users that leaving InfoNet disconnects it
Leaving InfoNet tears down Tor and the Wormhole by design, so nothing
private runs in the background. That was silent: switching chat tabs or
collapsing the panel cut the connection and the next visit waited for Tor
again. Every close path (LEAVE, tab switch, collapsing the chat panel,
closing or pressing Escape on the full terminal) now asks first while a
session is connected, explains that new messages won't arrive and that
reconnecting can take up to a minute, and offers "Don't show this again".
The teardown itself is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeX9wuqeVAQNr22zQHWj2H
2026-10-22 04:13:37 +00:00
Claude 29fb02ae0e Make the InfoNet UI less hostile without changing its security
- Turn raw backend codes (wormhole_required_for_*, control_plane_request_failed:403,
  gate_mls_compose_failed, ...) into sentences that say what to do next, via one
  shared helper used by gate rooms, key sharing, the Wormhole panel and mail.
- Fix contradictory privacy copy: the gates card said everything was end-to-end
  encrypted while the advisory beside it said nothing was encrypted. Both now
  describe what the code does: encrypted content, visible metadata, unaudited.
- Show a running timer while Tor connects instead of a static
  "obfuscated lane starting", and say up front that the first start can take
  up to a minute.
- Replace the TOFU jargon on first contact with what to do and why.
- New installs no longer get the changelog stacked on top of setup.
- Keep the expanded chat panel above the map status bar, which was covering
  the terminal input.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeX9wuqeVAQNr22zQHWj2H
2026-10-22 04:03:44 +00:00
Claude cbf3029138 Share gate keys across nodes over the encrypted DM lane
Gate history is readable on another node only through the gate envelope,
which is keyed from a per-gate secret that every node generated on its
own. Nothing ever moved that secret between members, so two operators in
the same gate could not read each other.

Members can now send the current gate key to a DM contact inside an
end-to-end encrypted DM. The key rides as a control frame that is
stripped on decrypt, so it never reaches the browser or the mailbox. The
recipient's operator accepts or declines it; the previous local key is
archived so existing history stays readable.

Rotation sends the new key to every contact the key was granted to,
minus excluded peers. Recipients apply a rotation automatically only
when it comes from the member they got the key from, and forward it to
their own grantees. Ban/kick rotations now redistribute too, instead of
silently splitting the gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeX9wuqeVAQNr22zQHWj2H
2026-10-22 03:06:11 +00:00
ShadowbrokerandClaude Opus 5.5 1c603c8ce1 fix(map): cap dead-reckoning so stale data can't fling aircraft across the map
After the browser tab sat hidden overnight, every airborne aircraft was drawn
smeared thousands of miles along its last heading (e.g. over open ocean) for
about a minute after waking, until fresh data arrived.

Polling pauses while the tab is hidden, but the interpolation clock keeps
counting from the last data refresh. Since 5ae1e5b the dead-reckoning cap
(interpolatePosition's maxDt, documented as "Cap interpolation time to prevent
runaway drift when data is stale") was overridden with
UNBOUNDED_INTERP_SECONDS = Infinity, so 8 hours stale moved a 500 kt flight
~3,300 nm.

Restore a cap via a shared MAX_INTERP_SECONDS = 180 used by flights, ships and
satellites (useInterpolation) and the worker-side interpolation
(applyDynamicLayerInterp). Live data refreshes every ~15s, so normal animation
is unaffected; stale markers now advance at most ~25 nm, then snap to fresh data.

Also widens a source-slice window in maplibreDecomposition.test.ts that had
zero slack (onClose ended exactly at char 500 with LF; failed on CRLF checkouts).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 12:28:40 -06:00
ShadowbrokerandClaude Opus 5.5 92a5be333c fix(onboarding): escape apostrophe in agent setup hint (react/no-unescaped-entities)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 06:34:23 -06:00
ShadowbrokerandClaude Opus 5.5 1be2f5f110 fix(agent-connect): accurate agent setup guidance; rename OpenClaw to "AI Agent" in the UI
The Connect modal's agent snippet steered agents into failures we hit while
wiring up a Hermes agent:

- It told agents to use search_telemetry as the default entry point, but the
  backend rejects search_telemetry/get_telemetry/get_slow_telemetry/get_report
  without confirm_expensive=true (EXPENSIVE_COMMANDS). Guidance now follows the
  backend's routing manifest: route_query first, then find_entity /
  get_entity_profile and other targeted reads; expensive commands are named as
  gated, last-resort calls.
- It never said how to install the secret. Operators pasted it into agent chats,
  where it stays in plain-text history and is still not an environment variable.
  New SETUP block: set env vars in the agent's config, use a Python with httpx,
  verify with verify_hmac.py; Docker note for host agents in Local mode. The
  modal also shows an explicit "don't paste into chat" warning.
- It always said "You are a remote OpenClaw agent", even in Local mode.
- New ANALYST DIRECTIVE for unattended investigations: read-only, evidence-tied,
  stated confidence, and "probably noise" when live data doesn't back an alert.
- Step 2 explains when Full Access is actually needed (Read Only stays default).

Renames the user-facing "OpenClaw" name to "AI Agent" across the UI and the
en/fr/zh-CN/fa translations. Env vars (OPENCLAW_*), API paths, the
openclaw-skills folder and backend identifiers are unchanged so existing agent
configs keep working; changelog history is left as written.

Tests: agentConnectGuidance.test.ts checks the snippet against the backend's
EXPENSIVE_COMMANDS, the setup/verify/leak guidance, mode-aware wording, and
that no user-facing OpenClaw text remains.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 06:30:37 -06:00
Shadowbroker 654ae0ee93 Merge pull request #617 from BigBodyCobain/fix/region-dossier-sentinel-wait
fix(dossier): show recent Sentinel-2 scenes on right-click instead of the Esri placeholder
2026-10-18 06:23:41 -06:00
Shadowbroker c7052f7525 Merge pull request #616 from BigBodyCobain/fix/entity-id-lookups
fix(map): match clicked ships by MMSI regardless of id type
2026-10-18 06:06:55 -06:00
ShadowbrokerandClaude Opus 5.5 b9bcd60add fix(dossier): show recent Sentinel-2 scenes on right-click instead of the Esri placeholder
Right-click opened the Sentinel-2 panel pre-filled with Esri World Imagery
("DATE UNAVAILABLE / fallback imagery") and only swapped in the live
Planetary Computer scenes after both the Sentinel search and the unrelated
region-dossier lookup settled. On a busy dashboard that took long enough
that the placeholder read as the result, so the 3-scene recent imagery
looked like it had regressed to generic fallback pictures.

- Show an explicit "SEARCHING SENTINEL-2 ARCHIVE" state while searching.
- Fetch imagery and the region dossier independently; render scenes the
  moment they arrive.
- Use the Esri fallback only when the live search actually fails, and say so.
- Ignore stale responses when the user right-clicks again mid-search.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 05:36:59 -06:00
ShadowbrokerandClaude Opus 5.5 456dce80ac fix(map): match clicked ships by MMSI regardless of id type
Clicking an AIS vessel showed neither the map popup nor the side panel.
Since f95b0ec the dynamic worker builds ship feature ids with
shipFeatureId(), which stringifies the MMSI, but the backend sends MMSIs as
numbers. The lookups compared them with ===, so 234881054 === "234881054"
matched nothing and the UI silently rendered nothing. Carriers still worked
because their id is their (string) name.

Adds sameEntityId() and uses it for the ship lookups (popup, side panel,
findSelectedEntity) and the other numeric-id lookups that compare against a
clicked feature id (satellites, UAVs, trains, UAP sightings, wastewater,
weather alerts).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 04:47:42 -06:00
ShadowbrokerandClaude Opus 5.5 160b3c5a25 fix(map): pin text-font on label layers so CCTV and correlation overlays render
Seven overlay label layers had a text-field but no text-font, so MapLibre
fell back to "Open Sans Regular,Arial Unicode MS Regular". The keyless
OpenFreeMap glyph endpoint returns 404 for that fontstack, which errors
every tile of the layer's source. For CCTV that meant the whole source
(clusters and dots) rendered nothing even though 23k cameras were loaded.

Affected layers: cctv-cluster-count, gps-jamming-label, corr-rf-label,
corr-mil-label, corr-infra-label, corr-contra-label, corr-analysis-label.
All now use Noto Sans Bold, matching the other overlay labels.

Adds a regression test that fails if any MaplibreViewer layout renders
text without pinning a text-font.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 04:31:50 -06:00
BigBodyCobain f16ded5225 Add persistent mission workspace with specialist roles and confirmed actions 2026-10-14 12:11:40 -06:00
BigBodyCobain 7598af7c13 Open news articles through console and agent tools with grounded UI context 2026-10-14 11:04:41 -06:00
BigBodyCobain 1d29516c1a Connect hosted and local AI models with brokered spoken commands 2026-10-14 01:31:51 -06:00
BigBodyCobain 1a574e56b5 Require explicit operator sessions and bound API request bodies 2026-10-13 22:43:28 -06:00
BigBodyCobain c97dd6b164 Bind voice gateway credentials to the saved provider destination 2026-10-13 22:43:12 -06:00
BigBodyCobain d7a7595d09 Patch runtime dependencies and migrate MapLibre worker integration 2026-10-13 22:39:57 -06:00
BigBodyCobain d52a346958 Merge latest GitHub main while preserving local voice-agent work 2026-10-13 20:44:07 -06:00
Shadowbroker f282f8e2bb fix(basemap): correct style builder formatting 2026-10-06 15:52:18 -06:00
Shadowbroker 951c776ec0 fix(basemap): correct viewer import formatting 2026-10-06 15:52:16 -06:00
Shadowbroker b6d3c20690 fix(basemap): type provider style union 2026-10-06 15:50:21 -06:00
Shadowbroker 233e420409 test(basemap): cover keyless default and CARTO override 2026-10-06 15:49:06 -06:00
Shadowbroker a9cd03f115 fix(basemap): preserve overlays with keyless vector styles 2026-10-06 15:48:36 -06:00
Shadowbroker 4128a0ac7d fix(basemap): default to keyless OpenFreeMap 2026-10-06 15:48:00 -06:00
Shadowbroker 1a1b6e1dc3 Merge pull request #558 from C3B2W23/fix/carto-api-key
fix(basemap): add runtime CARTO_API_KEY for CARTO tiles
2026-09-15 01:51:43 -06:00
C3B2W23andClaude Fable 5.1 667f51cb7a fix(basemap): serve CARTO key from backend, bound the map gate, add source attribution
Review follow-up:

- Drop the Next.js route. CARTO_API_KEY is now a regular backend registry
  key (env, .env, or the API Keys panel) served by public
  GET /api/basemap-config. Every frontend mode already proxies /api/* to
  the backend (Next.js proxy in web mode, companion server in packaged
  desktop), so this covers web and desktop with one mechanism and leaves
  the static export untouched. Also removes the invalid non-handler
  export from the route module by removing the module.
- useBasemapConfig: fail open to the unkeyed style after 3 s, abort the
  request at 15 s, apply a late key when it arrives, cache successes per
  page and retry failures on the next mount.
- Declare OSM/CARTO attribution on the raster source (same markup as the
  viewer's existing AttributionControl so MapLibre de-duplicates it).
- Tests: backend endpoint (unset / set+trimmed / persisted operator key /
  registry), hook behaviour (success, non-OK, network error, soft timeout
  then late key, hard abort, shared request and retry), attribution and
  gating source checks.
- CARTO_API_KEY moves to the backend service in docker-compose.yml; docs
  updated accordingly.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 15:16:47 -07:00
C3B2W23andClaude Fable 5.1 f95b0eccc5 fix(map): keep tracked aircraft and yacht labels in step with data filters
Tracked-flight and tracked-yacht HTML labels are rendered from the raw
store arrays, while their icons come from the worker GeoJSON that already
has the operator's data filters applied. Filtering Tracked Aircraft to a
category therefore removed the icons but left every other aircraft's name
on the map.

Derive the label subjects from the ids in the filtered feature collection
so a label is only drawn where an icon is. The id rule lives in one shared
helper used by both the worker builders and the label selector; rows with
no identifier keep the worker's positional fallback and draw no label.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 14:57:09 -07:00
C3B2W23andClaude Fable 5.1 71550b4adf fix(basemap): trim header comments to match repo style
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 14:54:02 -07:00
C3B2W23andClaude Fable 5.1 8f169f1ecc Add runtime CARTO_API_KEY for basemap tiles
CARTO now requires an API key for its basemap tiles; without one every
tile in the DEFAULT dark/light map carries an "API KEY REQUIRED"
watermark. The tile URLs were hardcoded in mapStyles.ts with no way to
supply a key, and because the frontend ships as a prebuilt image a
NEXT_PUBLIC_ variable would be baked in empty for every Docker user.

- New frontend-local route GET /api/basemap-config reads CARTO_API_KEY
  from the frontend container's environment at request time (same
  pattern as BACKEND_URL), so no image rebuild is needed.
- useBasemapConfig() fetches it once per page load; MaplibreViewer
  builds the MapLibre style from it via buildBasemapStyle(theme, key)
  and defers the map's first style load until the config has settled,
  avoiding a burst of unkeyed tile requests followed by a style swap.
- Tile URLs move to CARTO's documented rastertiles/ path with ?key=
  appended when configured. Unkeyed URLs serve byte-identical tiles to
  the old path, so deployments without a key behave exactly as before.
- CARTO_API_KEY wired through docker-compose.yml and documented in
  .env.example, README (data source table + frontend env table) and
  docs/OUTBOUND_DATA.md.
- Tests cover the route (unset / set / trimmed) and the style builder.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 14:54:01 -07:00