mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 19:04:02 +00:00
docs: describe focused local service ownership
This commit is contained in:
1 parent
5223b6df5b
commit
3f642f5079
5 files changed
+54
-12
No files matched your search
+22
-5
@@ -79,11 +79,10 @@ use build-only dependency exceptions.
|
||||
|
||||
`server/standalone/vite.config.js` loads the root environment and passes selected
|
||||
browser keys, host/port and the ordered local provider plugins to this helper.
|
||||
`server/providers/local.js` still owns provider process state, routes and
|
||||
credential-store paths. Provider Settings writes to the same root `.env` or
|
||||
Pinokio store as before. `vite.config.js` preserves the default configuration and
|
||||
existing named provider exports for tools/tests. The provider module remains
|
||||
large; later extractions should split complete provider families and their tests.
|
||||
`server/providers/local.js` composes provider factories and re-exports existing
|
||||
helpers for compatibility. Provider Settings lives in `server/standalone/key-setup.js`
|
||||
and writes to the same root `.env` or Pinokio store as before. `vite.config.js`
|
||||
preserves the default configuration and named provider exports for tools/tests.
|
||||
|
||||
## Aircraft and vessel providers
|
||||
|
||||
@@ -152,3 +151,21 @@ checks each entry independently.
|
||||
Browser terrain sampling, traffic matching/drawing, fire overlays and bike-share
|
||||
layer lifecycle remain in their current modules. This extraction changes no
|
||||
source defaults, credentials, quotas, data interpretation or visual behavior.
|
||||
|
||||
## Local search, regional context, voice and setup
|
||||
|
||||
Node-only exports `server/providers/overpass`, `server/providers/military-installations`,
|
||||
`server/providers/regional` and `server/providers/openai` own request handling
|
||||
without importing the standalone configuration or browser rendering. Overpass
|
||||
separates query admission, geometry simplification, cache and transport; military
|
||||
search shares the bounded transport. Regional place/news/weather acquisition is
|
||||
separate from briefing and weather-effect response caches. Voice handlers share
|
||||
existing rate limits and request reading; schemas and instructions are separate.
|
||||
|
||||
`server/standalone/key-setup` is explicitly standalone Node functionality.
|
||||
Its factory and the local voice factory accept `sourceRoot` for application-owned
|
||||
configuration/log files; defaults resolve the repository root. Local voice also
|
||||
accepts an optional `annotationGuidance` paragraph. Neither factory starts
|
||||
acquisition on import. Setup retains its pre-environment-load provenance capture
|
||||
and development-only registration. Package checks enumerate every owned module
|
||||
and reject browser imports of these Node entries.
|
||||
+24
-3
@@ -1,5 +1,26 @@
|
||||
# God's Eye View Current State
|
||||
|
||||
## Remaining local service modules
|
||||
|
||||
Overpass query validation, geometry simplification, disk caching and upstream
|
||||
transport now have separate modules; military-installation search reuses that
|
||||
transport. Regional briefing combines separate place, news and weather sources,
|
||||
while weather effects uses only the weather source. Existing process-scoped
|
||||
caches, rate limits, stale fallbacks and route ordering are preserved.
|
||||
|
||||
Local voice has separate HUD-summary, debug-log and Realtime-token handlers,
|
||||
with tool definitions and instructions in dedicated files. The factory accepts
|
||||
an optional `annotationGuidance` paragraph; its default instructions and all 28
|
||||
tool definitions remain unchanged. `sourceRoot` resolves debug logs against the
|
||||
application directory. Standalone key setup accepts the same directory option
|
||||
for its environment store and preserves boot provenance, loopback/origin guards,
|
||||
atomic credential writes and development-only registration.
|
||||
|
||||
Node-only package entries expose Overpass, military installations, regional
|
||||
services, local voice and standalone key setup. Importing them starts no network
|
||||
acquisition. Browser layer lifecycle, rendering and voice execution stay in their
|
||||
existing modules.
|
||||
|
||||
## Local build preview
|
||||
|
||||
After `npm run build`, `npm run preview` serves the built app with the same data
|
||||
@@ -55,10 +76,10 @@ access. Callers retain validation, transport and response policy.
|
||||
|
||||
`vite.config.js` delegates to `server/standalone/vite.config.js`, which loads
|
||||
this checkout's environment and constructs the local providers in their existing
|
||||
order. `server/providers/local.js` holds the existing middleware and process
|
||||
state; its named exports remain available through the root compatibility entry.
|
||||
order. `server/providers/local.js` is the composition and compatibility entry;
|
||||
provider families own their middleware and process state in focused modules.
|
||||
Provider URLs, key selection, cache behavior, setup restrictions and routes are
|
||||
unchanged. Individual provider families remain to be split into smaller modules.
|
||||
unchanged.
|
||||
|
||||
`gods-eye-view/build/vite` is a Node-only export for explicit browser build
|
||||
settings: Cesium assets, caller-supplied plugins, browser key defines, server
|
||||
|
||||
Reference in new issue
Block a user