mirror of
https://github.com/lobehub/lobehub.git
synced 2026-09-20 04:56:13 +08:00
3d751686af
* ✨ feat(acceptance): restore in-app workspace and assemble the public page from atoms Keep the full owner workspace in the main SPA and compose the workbench share page from read-only capability atoms so owner actions stay out of the public bundle. * 📝 docs(compose-atoms): generalize the skill around grain and sink-state Make the kit apply to any heavy domain feature, and keep focus review filling the in-app frame. * ⚡ perf(workbench): slim the public page and stop shipping shiki in the bundle Keep the share surface to identity only, shim the browser lambda client to cookies, stub shiki on SSR, and load grammars from esm.sh on the client. * ✨ feat(acceptance): show goal and check inventory on workbench detail * 🐛 fix(acceptance): handle null acceptanceId in useAcceptanceBundle Signed-off-by: Innei <tukon479@gmail.com> * ✨ feat(workbench): put a go-to-app CTA on the public header * ✅ test(workbench): fail the build when the graph uses stub-missing APIs Keep workbench stubs as an explicit surface and scan the module graph on build:rr so a later call to a simplified-away method is a build failure. * 🐛 fix(acceptance): type verdict helpers with TFunction Database CI lint failed because useTranslation('verify') is not assignable to the hand-written (key: string) => string helper signatures. --------- Signed-off-by: Innei <tukon479@gmail.com>
21 lines
586 B
TypeScript
21 lines
586 B
TypeScript
import { createTRPCClient, httpLink } from '@trpc/client';
|
|
import superjson from 'superjson';
|
|
|
|
import type { LambdaRouter } from '@/server/routers/lambda';
|
|
|
|
import { reject } from './reject';
|
|
|
|
export const lambdaClient = createTRPCClient<LambdaRouter>({
|
|
links: [
|
|
httpLink({
|
|
fetch: (input, init) => fetch(input, { ...init, credentials: 'include' }),
|
|
transformer: superjson,
|
|
url: '/trpc/lambda',
|
|
}),
|
|
],
|
|
});
|
|
|
|
export const asyncClient = reject('asyncClient');
|
|
export const toolsClient = reject('toolsClient');
|
|
export const lambdaQuery = reject('lambdaQuery');
|