Component generation
Generate components with the CLI:
npx --no-install udiot generate component ProfileCard --with-tests --yes
npx --no-install udiot wizard component
npx --no-install udiot create "a profile card with an avatar and a follow button"
generate and wizard use templates; create asks a configured model what
to build and lets it write method bodies (see
intent-driven generation). The output imports the
public package API and compiles; review and test it before use.
The former root export AIComponentGenerator is removed: it did not call a
model, returned placeholder code and fixed "confidence" scores, and its output
used decorators that are not exported.
The internal TypeAwareGenerator is not a public root export. For provider
calls from application code, see agents.
From the canonical UDIOT public documentation.Try it in the playground ↗