wire-codegen

command
v0.1.151 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: GPL-2.0, GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Command wire-codegen generates the TypeScript wire surface and the Go path constants from the single wire contract in internal/wirespec, using the wiregen library (AST-based; github.com/cplieger/wiregen/v2).

Outputs:

  • internal/server/static-src/wire/{types,decoders,client}.gen.ts — interfaces, validating decoders, and the typed decoder-bound client (consumed directly by the client modules; api-types.ts re-exports the common surface).
  • internal/apipaths/paths.gen.go — Path* constants shared by the CLI.

The endpoint table's auth groups are checked against routes.go by internal/server's wirespec consistency test; routes.go stays authoritative for permissions.

Run: go run ./cmd/wire-codegen (from the subflux repo root)

Jump to

Keyboard shortcuts

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