Generate entity type interfaces from a demo file:
bun scripts/generate-entity-types.ts --demo path/to/demo.dem
bun scripts/generate-entity-types.ts --snapshot # reuse saved snapshotFetch proto definitions from SteamTracking/GameTracking-CS2 and generate TypeScript bindings:
bun scripts/generate-protos.tsThen rebuild the network-message registry from the regenerated enums. It reports any enum member it can't resolve to a protobuf class, so new messages surface instead of being silently skipped:
bun run generate:messages # writes src/parser/descriptors/generated/
bun run generate:messages:check # CI: fail if the committed file is staleThe user-command delta decoder has its own generated table, derived from the
messages Valve marks with option (codegen_delta_encoder):
bun run generate:delta-schema
bun run generate:delta-schema:checknpm run build runs both :check variants, so a stale generated file cannot be
published. bun run generate regenerates everything in order.