Run the API change workflow. All steps must pass before the change is considered complete.
Steps
- •
Generate JSON schemas from Rust types Run:
cargo run -p tools --bin generate_from_typesThis generatestools/schemas/scene.schema.jsonandtools/schemas/api_types.schema.json. - •
Generate TypeScript types from schemas Run in
./ts:pnpm run generate-typesThis generatests/smelter/src/api.generated.ts. - •
Build the TypeScript SDK to verify compatibility Run in
./ts:pnpm build:all - •
Show a summary of all generated/changed files so the user can review what was affected.
- •
Try to update SDK: Update TypeScript SDK code if the generated types require manual adaptation. In most cases you will need to:
- •add/modify type in
ts/smelterpackage e.g.ts/smelter/src/types/input.ts - •add/modify mapping in
ts/smelter-corepackage e.g.ts/smelter-core/src/api/input.ts. In most cases it will be just switching snake case to camel case, but consider if there are more idiomatic alternatives. Inform user if it's not obvious how the changes should be adapted.
- •add/modify type in