Repository navigation
Onboarding: SWG sample assembly + typhon new/ui/telemetry/docs CLI (#531, #532, #522) - #556
Conversation
Catalog (224 flags) generated from telemetry-flags.jsonc as the single source of truth; adds list/enable/disable/reset/effective/preset/edit subcommands and a Terminal.Gui tree editor (One Dark palette, cascade resolution, footgun warnings, ungated-gauge notes).
…cs command Workbench SPA: ~17 hand-rolled fetch() sites sent only X-Session-Token, never the bootstrap X-Workbench-Token, so every profiler/data panel 401'd under `typhon ui` (the Vite dev-proxy had masked it). Add shared applyWorkbenchAuthHeaders(); route customFetch and all raw fetches through it. Serve index.html no-cache so republished builds are picked up (hashed assets stay cached). typhon ui: add --open-db (open the sole *.typhon in the CWD) and --schema, auto-discovering the app's built assembly from ./bin so the database opens with its archetypes/entities resolved. A session opens a trace OR a database, never both — ValidateOpenTargets rejects the combination (and --schema without a db). typhon docs [path] (alias doc): open doc.typhondb.io/latest in the browser; --print emits the URL. manual-test-onboarding.md: add telemetry-driven "change what's profiled" step; reframe §4 around the two Workbench jobs. Tests: UiCommand + Docs (12+3), applyWorkbenchAuthHeaders + schema-fragment capture; full SPA suite 1583 green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017AtukcD3UDm3zh4qGbjmJo
|
📝 Doc-accuracy review (advisory · scoped · Layer 2) Reviewed:
(Feature-set catalog pages not edited in this PR were skimmed for gross contradictions; none found.) Findings1.
The query shown is: tx.Query<Harvester>().Where<Cargo>(c => c.Amount < c.Capacity).Count()
Suggested fix (
2. Both pages (in the docs-affected list) use Map maintenance: The following changed source areas have no mapped doc pages in Advisory & scoped to the pages the change touches — recall for cross-cutting or unmapped drift is covered by the weekly Layer 3 audit. |
…can, not index-backed [no-ut] `Amount < Capacity` compares two fields so it can't be a simple index lookup; point at `WhereField`/ch.4 for index-backed filtering. Resolves the doc-accuracy L2 finding on PR #556 (the parenthetical contradicted 04-querying.md's own canonical non-indexable example). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017AtukcD3UDm3zh4qGbjmJo
|
📝 Doc-accuracy review (advisory · scoped · Layer 2) Reviewed: Deep scrutiny (hand-written narrative):
Edited in this PR (verified consistency):
Skimmed for gross contradictions (feature-set catalog):
Findings:
Map maintenance: The following source areas were flagged as UNMAPPED (no doc pages mapped — consider adding to
Advisory & scoped to the pages the change touches — recall for cross-cutting or unmapped drift is covered by the weekly Layer 3 audit. |
…o-ut] [no-doc]
The WAL renders only as a proportionally-sized opaque block with no page-level detail until the WAL page grid (Module 08 / WAL Events) lands — and with a 64 MiB pre-allocated WAL vs a ~2 MiB data file it dominates the map while showing nothing. Gate `walRect` behind an opt-in `showWal` param (default off); the null ("no WAL") path already handles renderer, camera-fit, hit-test, nav, and minimap, so the map fits just the data square. The sizing math is retained and still unit-tested (showWal: true); re-enable by passing showWal when the region has real content.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017AtukcD3UDm3zh4qGbjmJo
Summary
Delivers the onboarding epic (#521): a canonical SWG sample assembly and a first-run CLI so a new user goes
typhon new→dotnet run→typhon uiwith zero code edits, plus the config-driven telemetry CLI (#522).What's included
Sample assembly (#531) —
samples/Typhon.Samples.Swg: a LightHarvesterdrone (Position/Footprint/Cargo/Drift/Extractor across Versioned, SingleVersion, Transient + spatial/index) and a Full fixture schema.Workbench.FixturesandMonitoringDemomigrated onto it; the ARPG sample andexamples/removed; the user guide + runnable example re-themed to SWG and emitting a.typhon-trace.CLI (#532) —
typhon new <name>scaffolds a runnable starter (SWG Light source + app template + a pinnedTyphonpackage ref + config-driven profiling).typhon uigains--open-latest(watch a profile) and--open-db+--schema(investigate a database, auto-discovering the app's built assembly from./bin); a session opens a trace or a database, never both.typhon telemetry trace <path>sets the trace output;typhon docs/doc [path]opens the documentation site.Telemetry CLI (#522) — source-generated flag catalog with
list/enable/disable/reset/effective/presetverbs plus a full-screen tri-state tree editor, authoringtyphon.telemetry.json.Workbench
typhon uiauth fix — ~17 hand-rolled SPAfetch()sites sent onlyX-Session-Token, never the bootstrapX-Workbench-Token(masked in dev by the Vite proxy), so every panel 401'd undertyphon ui. Routed through a sharedapplyWorkbenchAuthHeaders;index.htmlis now servedno-cacheso republished builds are picked up.Testing
Typhon.Shell.Tests22; Workbench/Engine lifecycle fixtures green (incl. the two rebase-auto-merged files).typhon new→dotnet runwrites a.typhon-tracewith zero edits;typhon ui --open-latestrenders the Profiler;typhon ui --open-dbopens the database with theHarvesterarchetype + components resolved.Closes #531, #532, #522. Part of #521.
🤖 Generated with Claude Code