Commit Graph
214 Commits
Author SHA1 Message Date
BigBodyCobainandClaude Opus 5.5 26cf0dfcf0 Add ~27,000 CCTV cameras from 43 new public road-camera feeds
Ports the open, keyless camera feeds found in the MIT-licensed OSIRIS
project (github.com/simplifaisoul/osiris), plus a few more sites found on
the same platforms. Every feed was checked live on 2026-11-15 and sampled
through the media proxy.

Batch 1: 13 IBI 511 sites (AK, AZ, ID, LA, NV, UT, PA, WI, MB, NB, NS, NL,
YT); Ontario and Alberta moved to the working list feed; Spain DGT
catalog; Netherlands RWS via rwsverkeersinfo.

Batch 2: Maryland CHART and DelDOT (HLS); Virginia and South Carolina
(Iteris); TxDOT all 25 districts (base64 JPEG decoded by the proxy);
Indiana, Iowa, Nebraska, Kansas (CARS 511); Finland, Hong Kong,
Queensland, New Zealand.

Batch 3: North Carolina (511 GET query form), Oregon TripCheck statewide,
Edmonton (HLS), Iceland, Taiwan THB, Lithuania, Bizkaia, France (DIR
Centre-Est, DIR Est, Lyon, Inforoute x5, APRR), Autostrade per l'Italia.

De-duplication: WSDOT no longer re-imports its ~66 Oregon TripCheck
cameras, and the Oregon feed skips the Washington and California
cameras that WSDOT and Caltrans already supply.

The media proxy (router and main.py copies) allows the new hosts, with
profiles for Referer-checked hosts, uncompressed MP4 clips and HLS.

Left out: Japan river cameras (site forbids automated access),
Massachusetts (placeholder images, expiring tokens), MN/CO/NY (bot
challenge), Sweden (private site's internal API), YouTube-only lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:58:24 -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
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
Beau Boorman d4ceba95ff scheduler: reconcile AIS stream to layer state every 2 min
A browser replaying a stale all-off layer preference (saved localStorage)
can stop the AIS stream mid-session and nothing restarts it, because the
enable-transition logic in the layers router only fires on an edge it
observes (seen 3x in one night). This job converges stream state to layer
state every 2 minutes. It returns early and stays silent when the stream
cannot run at all (no AIS_API_KEY, or the AIS proxy disabled) so an
unconfigured deployment never warn-loops. Prune behavior is untouched.
2026-11-04 22:49:34 -06:00
Beau Boorman c7a0881114 logging: surface silently-swallowed fetch failures (oracle resolution, wastewater, country risk)
Three except:continue sites swallowed real errors, producing plausible
zeros or hiding state damage: market end_date parsing, WastewaterSCAN
per-plant futures, USGS quake-risk enrichment. Adds a WARN log with the
exception before continuing, matching the pattern already used at the
CISA date-parsing and AIS cache-wipe sites.
2026-11-04 22:48:54 -06:00
Beau Boorman 13a98aeafc api_settings: allow SB_PIN_LAYERS to persist via operator env loader 2026-11-04 22:48:40 -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
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 123463caf3 Let gates release over Tor when RNS is off, and always pin privacy-core
Gate messages publish over Tor first, with RNS only as the fallback
carrier, but the release floor demanded private_strong (Tor and RNS).
RNS is not installed by default, so on an ordinary node every gate post
sat in "Queued for private delivery" forever. Gates now get the same
Tor-only floor DMs already use when RNS is not enabled; nodes that
enable RNS keep the two-transport floor.

The start scripts' privacy-core pin refresh skipped whenever
backend/.env was missing or private lanes were turned on from the UI
rather than .env, which is the common case. It now pins the locally
built library regardless, creating backend/.env if needed, matching
what the Docker entrypoint already does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeX9wuqeVAQNr22zQHWj2H
2026-10-22 03:08:47 +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
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 cfa0a326e8 Serialize voice picker feedback for text-only chat APIs 2026-10-13 23:03:23 -06:00
BigBodyCobain 1a574e56b5 Require explicit operator sessions and bound API request bodies 2026-10-13 22:43:28 -06:00
BigBodyCobain d52a346958 Merge latest GitHub main while preserving local voice-agent work 2026-10-13 20:44:07 -06:00
Shadowbroker 96930018d4 docs(basemap): describe CARTO as optional override 2026-10-06 15:49:50 -06:00
Piero Maddaleni 24c9b2962c Bring back referer. 2026-10-04 22:07:20 -05:00
Piero Maddaleni b17535621c Give Amtraker service a proper user agent. 2026-10-04 21:43:48 -05: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
BigBodyCobain 428a7897ac voice-agent fix: repair Gemini Live handshake for the BidiGenerateContent contract
The gemini_live realtime relay hung in "connecting" because every frame of
the upstream dial was stale:

- Dial path google.ai.generativelanguage.v1beta.GenerativeService.BidiSetup
  now returns HTTP 404 on upgrade; the live endpoint is
  ...GenerativeService.BidiGenerateContent (verified against
  wss://generativelanguage.googleapis.com with a real key).
- The model query parameter is rejected by that endpoint (close 1007,
  unknown query parameter) - it is no longer mirrored into the URL; the
  setup message stays the sole model carrier.
- Top-level setup.responseModalities and setup.speechConfig are rejected
  (1007 "Cannot find field"); both now live under generationConfig, per
  the Live API WebSocket reference. systemInstruction{parts} and
  input/outputAudioTranscription validated live at top level.
- Added tests/test_voice_gemini_live.py: live integration test (skipped
  without VOICE_GEMINI_API_KEY) that replays the exact relay handshake,
  asserts setupComplete, then requires modelTurn audio or a typed error
  after one PCM chunk.

Verified live: the fixed adapter's frames pass schema validation and reach
session creation; with the operator's current key Google closes 1011
"prepayment credits are depleted" (account-side billing state, not an
adapter defect). Also updated the container operator env pin
VOICE_GEMINI_MODEL from the retired gemini-2.0-flash-live-001 (server
answers 1008 "not supported for bidiGenerateContent") to the docs-current
gemini-3.1-flash-live-preview.
2026-08-26 06:52:55 -06:00
BigBodyCobain 42a13b651e voice-agent fix: gemini-only text chat via OpenAI-compat endpoint, key clear/replace, fresh Live model list
- chat_completion(): when the resolved provider is gemini_live and VOICE_CHAT_MODEL is empty, dial Google's OpenAI-compatible endpoint (https://generativelanguage.googleapis.com/v1beta/openai/chat/completions, Bearer <VOICE_GEMINI_API_KEY>) instead of failing chat_unconfigured — fixes the typed composer/hud-summary/turn legs for Gemini-only configs. New Settings field VOICE_GEMINI_CHAT_MODEL (default gemini-2.5-flash).
- POST /api/voice/provider accepts {clear:true}: removes the provider's persisted key + its model/URL rows from data/operator_api_keys.env via new _remove_env_values helper, syncs live env with env-var-wins honesty, returns the fresh status shape. Saving again overwrites (upsert verified).
- Curated Gemini Live list refreshed: gemini-3.1-flash-live-preview leads, gemini-2.0-flash-live-001 secondary, gemini-3.5-live-translate-preview added; VOICE_GEMINI_MODEL default updated.
- Deterministic fallback is honest: a realtime-armed console says 'Voice provider armed (<id>) — text chat unavailable right now' instead of 'No model configured'.
- VoiceSetupCard: Replace-key note + Clear button for already-configured providers; i18n keys added in en/fr/fa/zh-CN.
- Tests: compat-dial contract (URL/Bearer/model), clear rows re-read, upsert replace, curated list; frontend clear-button + prefill coverage.
2026-08-26 04:40:42 -06:00
BigBodyCobain c3915fe964 voice-agent ux: Anthropic text-only provider + custom endpoint preset
- Add anthropic_text provider: VOICE_ANTHROPIC_API_KEY registry row, VOICE_ANTHROPIC_BASE_URL setting, resolve_provider candidate ordered after realtime providers and before local_text, and a chat_completion branch that POSTs {base}/v1/messages (x-api-key + anthropic-version headers, system extraction, text-block reply assembly, input/output_tokens usage metering). Model reuses VOICE_CHAT_MODEL (Anthropic has no separate voice model) with the curated-list head as fallback.

Anthropic has NO realtime speech API: anthropic_text behaves like local_text on the media path — the WS relay refuses it (text_only_provider) and the mic keeps the TXT badge, never opening PTT.

- Custom endpoint: 'compat' already accepts arbitrary https base URLs (baseUrl+key+model); the new Custom endpoint preset is a UI alias posting {provider:'compat'}.

Tests: backend/tests/test_voice_anthropic.py (18) plus existing voice suites; frontend voice vitest suite 167 green; tsc clean in touched files. i18n keys added in en/zh-CN/fr/fa.
2026-08-26 03:55:23 -06:00
BigBodyCobain d172d97c54 voice-agent ux: connect-a-model reachable in every unconfigured state, NO AI badge, autofill hygiene
- VoiceHudPanel renders the setup card as the leading Connect-a-model section whenever providerResolved is null or local_text (enabled-but-unconfigured limbo); transcript+composer stay below it.
- VoiceSetupCard: OpenRouter and Local(Ollama) compat presets (baseUrl prefill/placeholder), Gemini model prefilled gemini-2.0-flash-live-001, debounced GET /api/voice/models dropdown plus always-usable free-text model input with verbatim failure detail; lands directly on the provider step when opt-in already succeeded.
- POST /api/voice/provider now persists the model row for compat too (VOICE_CHAT_MODEL) and VOICE_CHAT_MODEL joins the voice persisted-setting keys in api_settings.py.
- Mic button degraded corner badge: TXT only for text-mode-with-chat-model; NO AI + honest tooltip otherwise.
- Autofill hygiene: autoComplete/autocorrect/autocapitalize/spellCheck off on composer and all setup inputs; key field is type=password with show/hide toggle, name=voice-provider-key, autoComplete=new-password.
- i18n: new voice.badge.* and voice.setup.* keys in en/zh-CN/fr/fa.
2026-08-26 02:41:07 -06:00
BigBodyCobain 7bb73bd483 voice-agent ux: first-class enablement API (opt-in + provider setup endpoints)
POST /api/voice/opt-in and POST /api/voice/provider persist through the sanctioned operator-keys writer (_write_env_values on data/operator_api_keys.env), cache-clear get_settings, and report fresh effective state. Env-var-wins honesty preserved verbatim (managedByEnvironment + note when a real process env var governs a key). VOICE_GEMINI_API_KEY joins API_REGISTRY; behavioral opt-in/coordinate keys ride ALLOWED_ENV_KEYS via an explicit frozenset union (documented why not registry rows). Both endpoints sit inside the MESH_ONLY guard block; responses never echo key material.
2026-08-26 00:53:57 -06:00
BigBodyCobain 200eea2a53 voice-agent: final panel follow-ups — Gemini destination disclosure in OUTBOUND_DATA.md (incl. Google free-tier audio policy), VOICE_GEMINI_* rows in .env.example, drop dead self-assignment in resolve_provider 2026-08-25 23:25:23 -06:00
BigBodyCobain 68a73db375 U8-judge: restore non-Gemini realtime dial suffix + open PTT gate to gemini_live
- voice_broker._ws_url_for: re-append /realtime?model=<id> on the
  openai_realtime and compatible_ws branches (1fb3ecf dropped it,
  silently breaking provider #1 and compat dials); gemini BidiSetup
  URL unchanged.
- useVoiceAgent.isRealtimeProvider: add gemini_live so a resolved
  Gemini Live provider actually opens a VoiceAudioClient session on
  PTT (was dead end-to-end from the UI); helper now exported.
- voice_gemini.gemini_event_to_client: content translates first —
  usageMetadata no longer takes an exclusive branch, so Gemini's
  common turnComplete+usageMetadata message still yields response.done;
  the relay meters straight off the raw event instead. Stale 'model
  rides the setup message, not the URL' comments corrected.
- relay session.update patch forwarding guarded off Gemini sockets
  (OpenAI-style build_session_config JSON would be a protocol error).
- Tests: dial-URL regression pins for openai/compat/gemini branches;
  combined-event translation pin; realtimeProviderGate frontend test.
2026-08-25 23:07:11 -06:00
BigBodyCobain 1fb3ecfe70 voice-agent U8-gemini: Gemini Live provider #2 — voice_gemini framing adapter (server-authored BidiSetup with grounding-in-system-instruction, 24k->16k mic downsample, upstream event translation to OpenAI-style client frames incl. interrupted->barge-in signal, usage metering), resolve_provider gemini_live candidate, dial URL branch, pump translation branches, geminiKeySet status contract, disclosure extended to cover Google's free-tier audio policy; 19 new tests 2026-08-25 22:41:38 -06:00
BigBodyCobain bdc760d92b voice-agent U6: interrogation, verdicts & polish — §2.7 interrogation relay (correlate_entity/get_entity_profile behind POST /api/voice/interrogate with local target resolution, verbatim evidence pack, tier-gate inheritance, 2-exchange memory cap); §3.8 watchdog_alert context events (bounded per-relay tap + pump, broadcast_to_agents wire-format hook, no watchdog import in voice modules); §2.6 selectedEntity regen trigger via widened page→hook bindings (selection rides sb.grounding.v1 + fingerprint); manual BRIEF NOW affordance; cost/quota UX (daily spend chip, estimated/worst-case/incomplete disclosures on the cost chip, asterisk for any unverified billing); error/reconnect polish (verbatim FAULT reasons through the 6s grace window); text_only E2E + hook-level regen-gate tests; i18n voice keys in all four locales incl. composer.placeholder key fix 2026-08-25 02:52:13 -06:00
BigBodyCobain 8c3d404881 voice-agent U5: model picker + NARRATE — verbatim narration prompts via build_session_config hook, validate-gate-dispatch-feedback picker loop (POST /api/voice/turn), hud-summary endpoint with 30s dedupe, sb.grounding.v1 composer + freshness cadence table + ambient ARM gating + TTS ladder; carried advisories: forward original unlock args in orchestrator dispatch (1), destructive manifest entries advertise requires_confirm (2), NARRATE prompt injection into instructions hook (3) 2026-08-25 01:55:56 -06:00
BigBodyCobain 13b2eec0c3 voice-agent U2 hardening: judge required fixes — live-relay kill switch, chat-leg metering, unclaimed-grant reap, tier-2 tps plumbing, sessionId-bound tokens 2026-08-24 23:28:17 -06:00
BigBodyCobain e8f293ee19 voice-agent U2: session plumbing — realtime WS relay, one-time session tokens, REST surface + tool mounts, topology guards 2026-08-24 22:43:20 -06:00
BigBodyCobain 8fa8b13c6a voice-agent U3: tool registry & gates (ACT core) 2026-08-24 22:05:17 -06:00
BigBodyCobain fe540f8a63 voice-agent U1: cost & budget rails
voice_cost.py: faithful Python port of the GEV voiceCost.js spend guard — model/tier registry with hostile-input-safe resolution, worst-case unknown-model billing, residual-to-audio usage splitting, one-shot warn/cap latches, tier-2 fallback audio-seconds estimator, single normalization authority ('off' sentinel round-trips; corrupt values restore defaults, never disarm). voice_daily_budget.py: per-UTC-day atomic ledgers under SB_DATA_DIR/voice_cost with midnight rollover, corrupt-file quarantine (.corrupt-* preserve + verbatim parse-error WARNING + ledgerQuarantined disclosure), hourly-throttled lazy pruning (>30d, no scheduler job), and the session-start budget gate incl. suggestTier at <25% remaining. Suites pin GEV arithmetic figures and cover plan §7.A items 4-10.
2026-08-24 21:33:02 -06:00
BigBodyCobain 82ba0cb246 voice-agent U0: freshness stamps + store-hygiene guard, voice config schema, websockets pin, docs
- Three _mark_fresh stamps (tracked_flights x2, correlations) fixing the
  fast-tier delta-delivery defect; test_freshness_stamps.py written first
  (red) with AST adjacency guard, runtime probe, and delta-recovery tests.
- Settings: VOICE_AGENT_OUTBOUND_ENABLE/_ACKNOWLEDGE two-step opt-in +
  full VOICE_* schema + voice_outbound_effective(); two Voice API_REGISTRY
  rows; env_check ack-mismatch audits; documented VOICE blocks in both
  .env.example files.
- websockets==16.0 verified-at-install pin (R1) + local smoke test.
- OUTBOUND_DATA.md voice egress section incl. SpeechRecognition
  prohibition; threat-model prompt-injection/egress notes.
- useDataPolling.isPollingPaused() export for U5 regen gates.
2026-08-24 20:50:06 -06:00
BigBodyCobain cd6395f5ee fix: complete intelligence layer refreshes and UAP fallback 2026-08-23 20:14:07 -06:00
BigBodyCobain 2461756da4 fix: restore CCTV and Telegram map visibility 2026-08-23 19:28:40 -06:00
Shadowbroker a263230130 fix(sigint): decouple APRS lifecycle from Meshtastic 2026-08-23 06:52:14 -06:00
Shadowbroker 685dc0a947 fix(aprs): add bounded opt-in APRS-IS client 2026-08-23 06:51:46 -06:00
Shadowbroker b06adeab46 fix(xquik): make attempt timestamp sentinel explicit 2026-08-23 01:46:26 -06:00
Shadowbroker fd0f530478 refactor(xquik): keep attempt cadence state minimal 2026-08-23 01:45:18 -06:00
Shadowbroker 90da89f7c6 fix(xquik): throttle failed provider attempts 2026-08-23 01:44:54 -06:00
kriptoburak 6ca238acf7 feat(news): add opt-in Xquik search source 2026-08-23 02:59:00 +03:00
Shadowbroker 6990fc1961 fix(liveuamap): preserve safe marker and wrapper semantics 2026-08-18 16:08:32 -06:00
Shadowbroker d3a2b55fed fix(liveuamap): harden provider secrets and challenge handling 2026-08-18 16:05:26 -06:00
Shadowbroker ed97e9e4bc fix(liveuamap): make enrichment resilient and non-blocking 2026-08-18 15:52:46 -06:00
Shadowbroker 0ef9193a11 fix(security): fail closed on untrusted source updates 2026-08-17 01:07:22 -06:00
Shadowbroker 7afa085d44 fix(security): bound agent shell token store without deadlock 2026-08-17 01:05:12 -06:00