@dudousxd/nestjs-agent-dashboard 0.12.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ export * from './use-open-console.js';
2
+ export * from './open-console-button.js';
3
+ export * from '../client/console-session.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AASA,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AAEzC,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,14 @@
1
+ // The React tier of `@dudousxd/nestjs-agent-dashboard`, published at the `./react` subpath so a
2
+ // host that only mounts the NestJS module never pulls React in. Three levels, pick one:
3
+ //
4
+ // openAgentConsole(...) — no React at all (`./client`), you own everything
5
+ // useOpenAgentConsole(...) — state for a launcher UI, you own the markup
6
+ // <OpenAgentConsoleButton /> — drop-in, unstyled, forwards every button prop
7
+ //
8
+ // `openAgentConsoleMutationOptions` wires the same call into TanStack Query without this package
9
+ // depending on TanStack.
10
+ export * from './use-open-console.js';
11
+ export * from './open-console-button.js';
12
+ // Re-exported so a React consumer needs one import path, not two.
13
+ export * from '../client/console-session.js';
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,wFAAwF;AACxF,EAAE;AACF,oFAAoF;AACpF,+EAA+E;AAC/E,iFAAiF;AACjF,EAAE;AACF,iGAAiG;AACjG,yBAAyB;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,kEAAkE;AAClE,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { ButtonHTMLAttributes, ReactNode } from 'react';
2
+ import type { OpenConsoleOptions } from '../client/console-session.js';
3
+ export interface OpenAgentConsoleButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'children'>, OpenConsoleOptions {
4
+ /** Button label. Defaults to "Open AI gateway". */
5
+ children?: ReactNode;
6
+ /** Shown while the session is being minted. Defaults to "Opening…". */
7
+ pendingLabel?: ReactNode;
8
+ /**
9
+ * Render the refusal yourself. Omit and the button renders a plain `<p role="alert">` under
10
+ * itself; pass `null` to render nothing and read the error from {@link useOpenAgentConsole}.
11
+ */
12
+ renderError?: ((error: Error) => ReactNode) | null;
13
+ }
14
+ /**
15
+ * Drop-in launcher: the top tier, for a host that just wants a working button.
16
+ *
17
+ * Deliberately unstyled — it emits a bare `<button>` and forwards `className`/`style`/every other
18
+ * button prop, so it inherits whatever design system the host already has instead of importing CSS
19
+ * that would fight it. When it doesn't fit, drop to {@link useOpenAgentConsole} (same behaviour,
20
+ * your markup) or to `openAgentConsole` (no React at all).
21
+ *
22
+ * The error is rendered by default rather than swallowed: a refused mint is the case a launcher most
23
+ * needs to surface, and a button that silently does nothing reads as broken rather than forbidden.
24
+ */
25
+ export declare function OpenAgentConsoleButton({ children, pendingLabel, renderError, basePath, headers, fetch: fetchImpl, signal, navigate, disabled, ...buttonProps }: OpenAgentConsoleButtonProps): import("react/jsx-runtime").JSX.Element;
26
+ //# sourceMappingURL=open-console-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-console-button.d.ts","sourceRoot":"","sources":["../../src/react/open-console-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAGvE,MAAM,WAAW,2BACf,SAAQ,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC,EAC3E,kBAAkB;IACpB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,uEAAuE;IACvE,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,SAAS,CAAC,GAAG,IAAI,CAAC;CACpD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EAAE,SAAS,EAChB,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,GAAG,WAAW,EACf,EAAE,2BAA2B,2CA4B7B"}
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useOpenAgentConsole } from './use-open-console.js';
3
+ /**
4
+ * Drop-in launcher: the top tier, for a host that just wants a working button.
5
+ *
6
+ * Deliberately unstyled — it emits a bare `<button>` and forwards `className`/`style`/every other
7
+ * button prop, so it inherits whatever design system the host already has instead of importing CSS
8
+ * that would fight it. When it doesn't fit, drop to {@link useOpenAgentConsole} (same behaviour,
9
+ * your markup) or to `openAgentConsole` (no React at all).
10
+ *
11
+ * The error is rendered by default rather than swallowed: a refused mint is the case a launcher most
12
+ * needs to surface, and a button that silently does nothing reads as broken rather than forbidden.
13
+ */
14
+ export function OpenAgentConsoleButton({ children, pendingLabel, renderError, basePath, headers, fetch: fetchImpl, signal, navigate, disabled, ...buttonProps }) {
15
+ const { open, isPending, error } = useOpenAgentConsole({
16
+ // Spread-if-defined rather than passing the keys through: the package compiles with
17
+ // `exactOptionalPropertyTypes`, under which an explicit `basePath: undefined` is not assignable
18
+ // to `basePath?: string`.
19
+ ...(basePath !== undefined ? { basePath } : {}),
20
+ ...(headers !== undefined ? { headers } : {}),
21
+ ...(fetchImpl !== undefined ? { fetch: fetchImpl } : {}),
22
+ ...(signal !== undefined ? { signal } : {}),
23
+ ...(navigate !== undefined ? { navigate } : {}),
24
+ });
25
+ return (_jsxs(_Fragment, { children: [_jsx("button", { type: "button", ...buttonProps, onClick: open, disabled: disabled || isPending, "aria-busy": isPending || undefined, children: isPending ? (pendingLabel ?? 'Opening…') : (children ?? 'Open AI gateway') }), error &&
26
+ renderError !== null &&
27
+ (renderError?.(error) ?? _jsx("p", { role: "alert", children: error.message }))] }));
28
+ }
29
+ //# sourceMappingURL=open-console-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-console-button.js","sourceRoot":"","sources":["../../src/react/open-console-button.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAgB5D;;;;;;;;;;GAUG;AACH,MAAM,UAAU,sBAAsB,CAAC,EACrC,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EAAE,SAAS,EAChB,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,GAAG,WAAW,EACc;IAC5B,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,mBAAmB,CAAC;QACrD,oFAAoF;QACpF,gGAAgG;QAChG,0BAA0B;QAC1B,GAAG,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/C,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7C,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACxD,GAAG,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3C,GAAG,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAChD,CAAC,CAAC;IAEH,OAAO,CACL,8BACE,iBACE,IAAI,EAAC,QAAQ,KACT,WAAW,EACf,OAAO,EAAE,IAAI,EACb,QAAQ,EAAE,QAAQ,IAAI,SAAS,eACpB,SAAS,IAAI,SAAS,YAEhC,SAAS,CAAC,CAAC,CAAC,CAAC,YAAY,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,IAAI,iBAAiB,CAAC,GACpE,EACR,KAAK;gBACJ,WAAW,KAAK,IAAI;gBACpB,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,IAAI,YAAG,IAAI,EAAC,OAAO,YAAE,KAAK,CAAC,OAAO,GAAK,CAAC,IAC9D,CACJ,CAAC;AACJ,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { ConsoleSessionError, type OpenConsoleOptions } from '../client/console-session.js';
2
+ /**
3
+ * React layer over `openAgentConsole` — the middle tier between the bare function
4
+ * (`../client/console-session.ts`) and the drop-in `<OpenAgentConsoleButton>`.
5
+ *
6
+ * You get the state a launcher UI actually needs (in-flight, error) and keep full control of the
7
+ * markup. Nothing here is AI-gateway-specific beyond the endpoint: it is a mint-then-navigate call
8
+ * with the two states that call can be in.
9
+ */
10
+ export interface UseOpenConsoleResult {
11
+ /** Start the mint-then-navigate. Never rejects — read `error` instead. */
12
+ open: () => void;
13
+ /** True from the click until the navigation starts, or until it fails. */
14
+ isPending: boolean;
15
+ /** The last refusal, or `null`. Cleared when `open()` is called again. */
16
+ error: ConsoleSessionError | null;
17
+ /** Drop a stale error without retrying — e.g. when a dialog closes. */
18
+ reset: () => void;
19
+ }
20
+ export declare function useOpenAgentConsole(options?: OpenConsoleOptions): UseOpenConsoleResult;
21
+ /**
22
+ * TanStack Query integration WITHOUT a TanStack dependency: the returned object is the shape
23
+ * `useMutation` takes, so a host that already uses Query wires the launcher into its own cache,
24
+ * devtools and error handling with no extra adapter — and a host that doesn't never pays for it.
25
+ *
26
+ * ```ts
27
+ * const { mutate, isPending } = useMutation(openAgentConsoleMutationOptions({ headers }));
28
+ * ```
29
+ */
30
+ export declare function openAgentConsoleMutationOptions(options?: OpenConsoleOptions): {
31
+ mutationKey: readonly unknown[];
32
+ mutationFn: () => Promise<void>;
33
+ };
34
+ //# sourceMappingURL=use-open-console.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-open-console.d.ts","sourceRoot":"","sources":["../../src/react/use-open-console.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,KAAK,kBAAkB,EAGxB,MAAM,8BAA8B,CAAC;AAEtC;;;;;;;GAOG;AACH,MAAM,WAAW,oBAAoB;IACnC,0EAA0E;IAC1E,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,0EAA0E;IAC1E,SAAS,EAAE,OAAO,CAAC;IACnB,0EAA0E;IAC1E,KAAK,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAClC,uEAAuE;IACvE,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,kBAAuB,GAAG,oBAAoB,CA2D1F;AAED;;;;;;;;GAQG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,GAAE,kBAAuB,GAAG;IACjF,WAAW,EAAE,SAAS,OAAO,EAAE,CAAC;IAChC,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACjC,CAKA"}
@@ -0,0 +1,70 @@
1
+ import { useCallback, useEffect, useRef, useState } from 'react';
2
+ import { ConsoleSessionError, agentConsoleSessionUrl, openAgentConsole, } from '../client/console-session.js';
3
+ export function useOpenAgentConsole(options = {}) {
4
+ const [isPending, setIsPending] = useState(false);
5
+ const [error, setError] = useState(null);
6
+ // Kept in a ref so a caller passing an inline object literal (the common case) doesn't change the
7
+ // identity of `open` on every render, which would defeat memoizing anything downstream.
8
+ const optionsRef = useRef(options);
9
+ optionsRef.current = options;
10
+ const open = useCallback(() => {
11
+ setIsPending(true);
12
+ setError(null);
13
+ void openAgentConsole(optionsRef.current)
14
+ .then(() => {
15
+ // Deliberately NOT clearing `isPending` on success: the navigation is already underway and
16
+ // this component is about to be torn down. Flipping the button back to idle first produces
17
+ // a visible flicker of "ready to click again" on a page that is leaving.
18
+ //
19
+ // "About to be torn down" is true only until the user presses Back — see the `pageshow`
20
+ // effect below, which is the other half of this decision.
21
+ })
22
+ .catch((cause) => {
23
+ setError(cause instanceof ConsoleSessionError
24
+ ? cause
25
+ : // Anything else got thrown before the client could classify it, so the endpoint is
26
+ // the only context worth carrying — `ConsoleSessionError` takes the url, not a kind.
27
+ new ConsoleSessionError(String(cause), agentConsoleSessionUrl(optionsRef.current.basePath)));
28
+ setIsPending(false);
29
+ });
30
+ }, []);
31
+ // The success path above leaves `isPending` stuck on purpose, which is only correct while the
32
+ // page really is dying. It often isn't: `openAgentConsole` navigates with `location.assign`, and
33
+ // a browser back/forward-cache hit FREEZES this page instead of destroying it — pressing Back
34
+ // restores this component with the React state it fell asleep with, so the launcher wakes up
35
+ // showing a spinner on a button that is disabled forever. Only a bfcache restore fires `pageshow`
36
+ // with `persisted: true`, which makes it the one signal that distinguishes "you came back" from
37
+ // "you loaded"; keying off anything looser (a plain `pageshow`, `visibilitychange`, `focus`)
38
+ // would also fire while a mint is genuinely in flight and reintroduce the flicker the comment
39
+ // above exists to prevent. So: clear it here, and ONLY here.
40
+ useEffect(() => {
41
+ // Guarded rather than assumed: this hook ships in a published package and hosts render it
42
+ // through SSR, where `window` does not exist. (`window` is never touched at module scope.)
43
+ if (typeof window === 'undefined')
44
+ return;
45
+ const onPageShow = (event) => {
46
+ if (event.persisted)
47
+ setIsPending(false);
48
+ };
49
+ window.addEventListener('pageshow', onPageShow);
50
+ return () => window.removeEventListener('pageshow', onPageShow);
51
+ }, []);
52
+ const reset = useCallback(() => setError(null), []);
53
+ return { open, isPending, error, reset };
54
+ }
55
+ /**
56
+ * TanStack Query integration WITHOUT a TanStack dependency: the returned object is the shape
57
+ * `useMutation` takes, so a host that already uses Query wires the launcher into its own cache,
58
+ * devtools and error handling with no extra adapter — and a host that doesn't never pays for it.
59
+ *
60
+ * ```ts
61
+ * const { mutate, isPending } = useMutation(openAgentConsoleMutationOptions({ headers }));
62
+ * ```
63
+ */
64
+ export function openAgentConsoleMutationOptions(options = {}) {
65
+ return {
66
+ mutationKey: ['agent', 'console', 'open', options.basePath ?? null],
67
+ mutationFn: () => openAgentConsole(options),
68
+ };
69
+ }
70
+ //# sourceMappingURL=use-open-console.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-open-console.js","sourceRoot":"","sources":["../../src/react/use-open-console.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EACL,mBAAmB,EAEnB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,8BAA8B,CAAC;AAqBtC,MAAM,UAAU,mBAAmB,CAAC,UAA8B,EAAE;IAClE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAA6B,IAAI,CAAC,CAAC;IAErE,kGAAkG;IAClG,wFAAwF;IACxF,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IACnC,UAAU,CAAC,OAAO,GAAG,OAAO,CAAC;IAE7B,MAAM,IAAI,GAAG,WAAW,CAAC,GAAG,EAAE;QAC5B,YAAY,CAAC,IAAI,CAAC,CAAC;QACnB,QAAQ,CAAC,IAAI,CAAC,CAAC;QACf,KAAK,gBAAgB,CAAC,UAAU,CAAC,OAAO,CAAC;aACtC,IAAI,CAAC,GAAG,EAAE;YACT,2FAA2F;YAC3F,2FAA2F;YAC3F,yEAAyE;YACzE,EAAE;YACF,wFAAwF;YACxF,0DAA0D;QAC5D,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;YACxB,QAAQ,CACN,KAAK,YAAY,mBAAmB;gBAClC,CAAC,CAAC,KAAK;gBACP,CAAC,CAAC,mFAAmF;oBACnF,qFAAqF;oBACrF,IAAI,mBAAmB,CACrB,MAAM,CAAC,KAAK,CAAC,EACb,sBAAsB,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,CACpD,CACN,CAAC;YACF,YAAY,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;IACP,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,8FAA8F;IAC9F,iGAAiG;IACjG,8FAA8F;IAC9F,6FAA6F;IAC7F,kGAAkG;IAClG,gGAAgG;IAChG,6FAA6F;IAC7F,8FAA8F;IAC9F,6DAA6D;IAC7D,SAAS,CAAC,GAAG,EAAE;QACb,0FAA0F;QAC1F,2FAA2F;QAC3F,IAAI,OAAO,MAAM,KAAK,WAAW;YAAE,OAAO;QAC1C,MAAM,UAAU,GAAG,CAAC,KAA0B,EAAE,EAAE;YAChD,IAAI,KAAK,CAAC,SAAS;gBAAE,YAAY,CAAC,KAAK,CAAC,CAAC;QAC3C,CAAC,CAAC;QACF,MAAM,CAAC,gBAAgB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QAChD,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IAClE,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAEpD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AAC3C,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,+BAA+B,CAAC,UAA8B,EAAE;IAI9E,OAAO;QACL,WAAW,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAU;QAC5E,UAAU,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,OAAO,CAAC;KAC5C,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dudousxd/nestjs-agent-dashboard",
3
- "version": "0.12.0",
3
+ "version": "0.13.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/DavideCarvalho/nestjs-agent.git",
@@ -28,6 +28,11 @@
28
28
  "types": "./dist/client/agent-client.d.ts",
29
29
  "import": "./dist/client/agent-client.js",
30
30
  "default": "./dist/client/agent-client.js"
31
+ },
32
+ "./react": {
33
+ "types": "./dist/react/index.d.ts",
34
+ "import": "./dist/react/index.js",
35
+ "default": "./dist/react/index.js"
31
36
  }
32
37
  },
33
38
  "files": [
@@ -37,9 +42,19 @@
37
42
  "@dudousxd/nestjs-agent-core": ">=0.1.0 <1.0.0",
38
43
  "@nestjs/common": "^10.0.0 || ^11.0.0",
39
44
  "@nestjs/core": "^10.0.0 || ^11.0.0",
45
+ "react": ">=18.0.0",
46
+ "react-dom": ">=18.0.0",
40
47
  "reflect-metadata": "^0.2.0",
41
48
  "rxjs": "^7.0.0"
42
49
  },
50
+ "peerDependenciesMeta": {
51
+ "react": {
52
+ "optional": true
53
+ },
54
+ "react-dom": {
55
+ "optional": true
56
+ }
57
+ },
43
58
  "dependencies": {
44
59
  "@dudousxd/nestjs-diagnostics": "0.7.0"
45
60
  },
@@ -50,11 +65,14 @@
50
65
  "@nestjs/testing": "11.1.6",
51
66
  "@swc/core": "1.15.41",
52
67
  "@tanstack/react-query": "5.62.7",
68
+ "@testing-library/dom": "10.4.0",
69
+ "@testing-library/react": "16.3.0",
53
70
  "@types/react": "19.2.5",
54
71
  "@types/react-dom": "19.2.3",
55
72
  "@types/supertest": "6.0.2",
56
73
  "@vitejs/plugin-react": "4.3.4",
57
74
  "autoprefixer": "10.4.20",
75
+ "jsdom": "26.1.0",
58
76
  "postcss": "8.5.16",
59
77
  "react": "19.2.5",
60
78
  "react-dom": "19.2.5",
@@ -69,7 +87,7 @@
69
87
  "@dudousxd/nestjs-agent-core": "0.10.0"
70
88
  },
71
89
  "scripts": {
72
- "build": "vite build && tsup && tsc -p tsconfig.client.json",
73
- "typecheck": "tsc -p tsconfig.server.json --noEmit && tsc -p tsconfig.server.spec.json --noEmit && tsc -p tsconfig.app.json --noEmit"
90
+ "build": "vite build && tsup && tsc -p tsconfig.client.json && tsc -p tsconfig.react.json",
91
+ "typecheck": "tsc -p tsconfig.server.json --noEmit && tsc -p tsconfig.server.spec.json --noEmit && tsc -p tsconfig.app.json --noEmit && tsc -p tsconfig.react.spec.json --noEmit"
74
92
  }
75
93
  }