mirror of
https://github.com/langgenius/dify.git
synced 2026-09-08 19:15:59 +08:00
| .. | ||
| browser.ts | ||
| client.spec.ts | ||
| contract-loader.ts | ||
| hydration.spec.tsx | ||
| index.ts | ||
| openapi-url.ts | ||
| query-policies.ts | ||
| README.md | ||
| server.spec.ts | ||
| server.ts | ||
Console service
Use consoleClient and consoleQuery from @/service/console
in Server and Client Components. Calls use the appropriate HTTP
transport for the Python Console API.
- Browser transport preserves the existing request layer's authentication and error handling.
- Server transport requires an absolute API address; see server configuration. Instrumentation and the root layout register this transport. Only the transport is shared globally; request identity is resolved per request.
- Shared query/mutation defaults live in query-policies.ts. In oRPC v1, caller options override defaults, including callbacks.
- Routes/layouts own prefetching and hydration. Use the existing QueryClient factory.