npx claudepluginhub ibraschwan/ucp-plugin# UCP Types Command Generate and explore TypeScript types from UCP schemas. ## What This Command Does 1. For `generate`: Creates TypeScript type definitions 2. For `list`: Shows available types in `types/` directory 3. For `show`: Displays specific type definition ## Actions ### Generate Types Generate TypeScript definitions from all schemas: Output location: Determined by script configuration ### List Types List all available reusable types: Display as formatted table: | Type | Description | |------|-------------| | money.json | Currency and amount | | address.json | Postal a...
/typesCheck the type-system side of a TypeScript problem before applying fixes
Generate and explore TypeScript types from UCP schemas.
generate: Creates TypeScript type definitionslist: Shows available types in types/ directoryshow: Displays specific type definitionGenerate TypeScript definitions from all schemas:
cd /Users/ibraschwan/bisirepo/ucp && node scripts/generate_ts_schema_types.js
Output location: Determined by script configuration
List all available reusable types:
ls /Users/ibraschwan/bisirepo/ucp/source/schemas/shopping/types/
Display as formatted table:
| Type | Description |
|---|---|
| money.json | Currency and amount |
| address.json | Postal address |
| ... | ... |
Display a specific type definition. Read the requested type file:
cat /Users/ibraschwan/bisirepo/ucp/source/schemas/shopping/types/{name}.json
Format and explain:
Core Types:
money.json - Currency amountsaddress.json - Postal addressespagination.json - List paginationProduct Types:
product-variant.json - Product variantsproduct-option.json - Product optionsinventory.json - Stock levelsOrder Types:
line-item.json - Order line itemsdiscount.json - Discounts appliedshipping-rate.json - Shipping costsCustomer Types:
customer.json - Customer datapayment-method.json - Payment methodsGenerated types can be imported:
import { Money, Address, LineItem } from './generated/types';