gen-models

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Command gen-models reads upstream pi's `packages/ai/src/models.generated.ts` and emits `ai/models_generated.go` with a parallel registry. The upstream file is line-regular (one auto-generator emits all 871 models) so we parse with a small state machine rather than pulling in a TypeScript dependency.

Run via `go generate ./ai/...` or directly:

go run ./cmd/gen-models \
  -src .upstream/current/packages/ai/src/models.generated.ts \
  -out ai/models_generated.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL