Add frontend oRPC integration for the existing backend download URL endpoint to enable file downloads from the asset tree.
# Conflicts: # api/models/model.py # web/contract/router.ts
- Add TypeScript types for app asset management (types/app-asset.ts) - Add oRPC contract definitions with nested router pattern (contract/console/app-asset.ts) - Add React Query hooks for all asset operations (service/use-app-asset.ts) - Integrate app asset contracts into console router Endpoints covered: tree, createFolder, createFile, getFileContent, updateFileContent, deleteNode, renameNode, moveNode, reorderNode, publish
Move sandbox provider related contracts from contract/console.ts to contract/console/sandbox-provider.ts for better organization
Replace manual fetch calls in use-sandbox-provider.ts with typed ORPC contracts and client. Adds type definitions to types/sandbox-provider.ts and registers contracts in the console router for consistent API handling.
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>