@dudousxd/nestjs-agent 1.31.1 → 1.32.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.
- package/dist/a2ui/index.cjs +3 -2
- package/dist/a2ui/index.cjs.map +1 -1
- package/dist/a2ui/index.js +3 -2
- package/dist/a2ui/index.js.map +1 -1
- package/dist/durable/index.cjs +3 -2
- package/dist/durable/index.cjs.map +1 -1
- package/dist/durable/index.js +3 -2
- package/dist/durable/index.js.map +1 -1
- package/dist/genui/index.cjs +3 -2
- package/dist/genui/index.cjs.map +1 -1
- package/dist/genui/index.d.cts +15 -7
- package/dist/genui/index.d.ts +15 -7
- package/dist/genui/index.js +3 -2
- package/dist/genui/index.js.map +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/vite/index.cjs.map +1 -1
- package/dist/vite/index.d.cts +11 -8
- package/dist/vite/index.d.ts +11 -8
- package/dist/vite/index.js.map +1 -1
- package/package.json +2 -2
package/dist/vite/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/vite/index.ts"],"sourcesContent":["/**\n * `@dudousxd/nestjs-agent/vite` — `genuiSandboxKit()`, the Vite plugin that puts the app's design\n * system (its
|
|
1
|
+
{"version":3,"sources":["../../src/vite/index.ts"],"sourcesContent":["/**\n * `@dudousxd/nestjs-agent/vite` — `genuiSandboxKit()`, the Vite plugin that puts the app's design\n * system (its styles, its components, its providers) inside the sandbox, whatever the stack:\n *\n * ```ts\n * // vite.config.ts (the SPA that talks to the agent)\n * import { genuiSandboxKit } from '@dudousxd/nestjs-agent/vite'\n * export default defineConfig({\n * plugins: [react(), genuiSandboxKit({ styles: 'src/index.css', components: 'src/components/ui' })],\n * })\n * ```\n *\n * Then `AgentGenuiModule.forRoot({ sandbox: { kit: true } })` finds what it built: the descriptor\n * the dev server writes (`.genui/sandbox-kit.json`) in dev, the Vite manifest in production (see\n * `AgentGenuiOptions.sandboxKit`).\n */\nimport {\n type GenuiSandboxKitApi,\n type GenuiSandboxKitOptions,\n type GenuiSandboxKitPlugin,\n SANDBOX_KIT_DEV_PREFIX,\n SANDBOX_KIT_MANIFEST_KEYS,\n SANDBOX_KIT_UPDATE_EVENT,\n createGenuiSandboxKitPlugin,\n} from '@dudousxd/nestjs-agent-core/genui/kit';\n\n/**\n * Where the dev descriptor is written, relative to the Vite root — and where the server reads it,\n * relative to its working directory (run both from the project root, or point\n * `sandboxKit.descriptor` at it). Add `.genui/` to `.gitignore`.\n */\nexport const NEST_SANDBOX_KIT_DESCRIPTOR = '.genui/sandbox-kit.json';\n\n/**\n * The sandbox kit plugin: `styles` (the app's style entries — default, the stylesheets among its\n * Vite entrypoints or `index.html`), `components` (modules or globs exporting React components —\n * default, the first `components/ui` folder), `wrapper` (a module whose default export wraps the\n * model's App). See {@link GenuiSandboxKitOptions}.\n */\nexport function genuiSandboxKit(options: GenuiSandboxKitOptions = {}): GenuiSandboxKitPlugin {\n return createGenuiSandboxKitPlugin(options, {\n descriptor: NEST_SANDBOX_KIT_DESCRIPTOR,\n rendererImport: /@dudousxd\\/nestjs-agent-react/,\n });\n}\n\nexport {\n type GenuiSandboxKitApi,\n type GenuiSandboxKitOptions,\n type GenuiSandboxKitPlugin,\n SANDBOX_KIT_DEV_PREFIX,\n SANDBOX_KIT_MANIFEST_KEYS,\n SANDBOX_KIT_UPDATE_EVENT,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;AAgBA,iBAQO;AAOA,IAAMA,8BAA8B;AAQpC,SAASC,gBAAgBC,UAAkC,CAAC,GAAC;AAClE,aAAOC,wCAA4BD,SAAS;IAC1CE,YAAYJ;IACZK,gBAAgB;EAClB,CAAA;AACF;AALgBJ;","names":["NEST_SANDBOX_KIT_DESCRIPTOR","genuiSandboxKit","options","createGenuiSandboxKitPlugin","descriptor","rendererImport"]}
|
package/dist/vite/index.d.cts
CHANGED
|
@@ -3,17 +3,19 @@ export { GenuiSandboxKitApi, GenuiSandboxKitOptions, GenuiSandboxKitPlugin, SAND
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* `@dudousxd/nestjs-agent/vite` — `genuiSandboxKit()`, the Vite plugin that puts the app's design
|
|
6
|
-
* system (its
|
|
6
|
+
* system (its styles, its components, its providers) inside the sandbox, whatever the stack:
|
|
7
7
|
*
|
|
8
8
|
* ```ts
|
|
9
9
|
* // vite.config.ts (the SPA that talks to the agent)
|
|
10
10
|
* import { genuiSandboxKit } from '@dudousxd/nestjs-agent/vite'
|
|
11
|
-
* export default defineConfig({
|
|
11
|
+
* export default defineConfig({
|
|
12
|
+
* plugins: [react(), genuiSandboxKit({ styles: 'src/index.css', components: 'src/components/ui' })],
|
|
13
|
+
* })
|
|
12
14
|
* ```
|
|
13
15
|
*
|
|
14
|
-
* Then `AgentGenuiModule.forRoot({ sandbox: { kit: true
|
|
15
|
-
* the
|
|
16
|
-
*
|
|
16
|
+
* Then `AgentGenuiModule.forRoot({ sandbox: { kit: true } })` finds what it built: the descriptor
|
|
17
|
+
* the dev server writes (`.genui/sandbox-kit.json`) in dev, the Vite manifest in production (see
|
|
18
|
+
* `AgentGenuiOptions.sandboxKit`).
|
|
17
19
|
*/
|
|
18
20
|
|
|
19
21
|
/**
|
|
@@ -23,9 +25,10 @@ export { GenuiSandboxKitApi, GenuiSandboxKitOptions, GenuiSandboxKitPlugin, SAND
|
|
|
23
25
|
*/
|
|
24
26
|
declare const NEST_SANDBOX_KIT_DESCRIPTOR = ".genui/sandbox-kit.json";
|
|
25
27
|
/**
|
|
26
|
-
* The sandbox kit plugin
|
|
27
|
-
*
|
|
28
|
-
*
|
|
28
|
+
* The sandbox kit plugin: `styles` (the app's style entries — default, the stylesheets among its
|
|
29
|
+
* Vite entrypoints or `index.html`), `components` (modules or globs exporting React components —
|
|
30
|
+
* default, the first `components/ui` folder), `wrapper` (a module whose default export wraps the
|
|
31
|
+
* model's App). See {@link GenuiSandboxKitOptions}.
|
|
29
32
|
*/
|
|
30
33
|
declare function genuiSandboxKit(options?: GenuiSandboxKitOptions): GenuiSandboxKitPlugin;
|
|
31
34
|
|
package/dist/vite/index.d.ts
CHANGED
|
@@ -3,17 +3,19 @@ export { GenuiSandboxKitApi, GenuiSandboxKitOptions, GenuiSandboxKitPlugin, SAND
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* `@dudousxd/nestjs-agent/vite` — `genuiSandboxKit()`, the Vite plugin that puts the app's design
|
|
6
|
-
* system (its
|
|
6
|
+
* system (its styles, its components, its providers) inside the sandbox, whatever the stack:
|
|
7
7
|
*
|
|
8
8
|
* ```ts
|
|
9
9
|
* // vite.config.ts (the SPA that talks to the agent)
|
|
10
10
|
* import { genuiSandboxKit } from '@dudousxd/nestjs-agent/vite'
|
|
11
|
-
* export default defineConfig({
|
|
11
|
+
* export default defineConfig({
|
|
12
|
+
* plugins: [react(), genuiSandboxKit({ styles: 'src/index.css', components: 'src/components/ui' })],
|
|
13
|
+
* })
|
|
12
14
|
* ```
|
|
13
15
|
*
|
|
14
|
-
* Then `AgentGenuiModule.forRoot({ sandbox: { kit: true
|
|
15
|
-
* the
|
|
16
|
-
*
|
|
16
|
+
* Then `AgentGenuiModule.forRoot({ sandbox: { kit: true } })` finds what it built: the descriptor
|
|
17
|
+
* the dev server writes (`.genui/sandbox-kit.json`) in dev, the Vite manifest in production (see
|
|
18
|
+
* `AgentGenuiOptions.sandboxKit`).
|
|
17
19
|
*/
|
|
18
20
|
|
|
19
21
|
/**
|
|
@@ -23,9 +25,10 @@ export { GenuiSandboxKitApi, GenuiSandboxKitOptions, GenuiSandboxKitPlugin, SAND
|
|
|
23
25
|
*/
|
|
24
26
|
declare const NEST_SANDBOX_KIT_DESCRIPTOR = ".genui/sandbox-kit.json";
|
|
25
27
|
/**
|
|
26
|
-
* The sandbox kit plugin
|
|
27
|
-
*
|
|
28
|
-
*
|
|
28
|
+
* The sandbox kit plugin: `styles` (the app's style entries — default, the stylesheets among its
|
|
29
|
+
* Vite entrypoints or `index.html`), `components` (modules or globs exporting React components —
|
|
30
|
+
* default, the first `components/ui` folder), `wrapper` (a module whose default export wraps the
|
|
31
|
+
* model's App). See {@link GenuiSandboxKitOptions}.
|
|
29
32
|
*/
|
|
30
33
|
declare function genuiSandboxKit(options?: GenuiSandboxKitOptions): GenuiSandboxKitPlugin;
|
|
31
34
|
|
package/dist/vite/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/vite/index.ts"],"sourcesContent":["/**\n * `@dudousxd/nestjs-agent/vite` — `genuiSandboxKit()`, the Vite plugin that puts the app's design\n * system (its
|
|
1
|
+
{"version":3,"sources":["../../src/vite/index.ts"],"sourcesContent":["/**\n * `@dudousxd/nestjs-agent/vite` — `genuiSandboxKit()`, the Vite plugin that puts the app's design\n * system (its styles, its components, its providers) inside the sandbox, whatever the stack:\n *\n * ```ts\n * // vite.config.ts (the SPA that talks to the agent)\n * import { genuiSandboxKit } from '@dudousxd/nestjs-agent/vite'\n * export default defineConfig({\n * plugins: [react(), genuiSandboxKit({ styles: 'src/index.css', components: 'src/components/ui' })],\n * })\n * ```\n *\n * Then `AgentGenuiModule.forRoot({ sandbox: { kit: true } })` finds what it built: the descriptor\n * the dev server writes (`.genui/sandbox-kit.json`) in dev, the Vite manifest in production (see\n * `AgentGenuiOptions.sandboxKit`).\n */\nimport {\n type GenuiSandboxKitApi,\n type GenuiSandboxKitOptions,\n type GenuiSandboxKitPlugin,\n SANDBOX_KIT_DEV_PREFIX,\n SANDBOX_KIT_MANIFEST_KEYS,\n SANDBOX_KIT_UPDATE_EVENT,\n createGenuiSandboxKitPlugin,\n} from '@dudousxd/nestjs-agent-core/genui/kit';\n\n/**\n * Where the dev descriptor is written, relative to the Vite root — and where the server reads it,\n * relative to its working directory (run both from the project root, or point\n * `sandboxKit.descriptor` at it). Add `.genui/` to `.gitignore`.\n */\nexport const NEST_SANDBOX_KIT_DESCRIPTOR = '.genui/sandbox-kit.json';\n\n/**\n * The sandbox kit plugin: `styles` (the app's style entries — default, the stylesheets among its\n * Vite entrypoints or `index.html`), `components` (modules or globs exporting React components —\n * default, the first `components/ui` folder), `wrapper` (a module whose default export wraps the\n * model's App). See {@link GenuiSandboxKitOptions}.\n */\nexport function genuiSandboxKit(options: GenuiSandboxKitOptions = {}): GenuiSandboxKitPlugin {\n return createGenuiSandboxKitPlugin(options, {\n descriptor: NEST_SANDBOX_KIT_DESCRIPTOR,\n rendererImport: /@dudousxd\\/nestjs-agent-react/,\n });\n}\n\nexport {\n type GenuiSandboxKitApi,\n type GenuiSandboxKitOptions,\n type GenuiSandboxKitPlugin,\n SANDBOX_KIT_DEV_PREFIX,\n SANDBOX_KIT_MANIFEST_KEYS,\n SANDBOX_KIT_UPDATE_EVENT,\n};\n"],"mappings":";;;;AAgBA,SAIEA,wBACAC,2BACAC,0BACAC,mCACK;AAOA,IAAMC,8BAA8B;AAQpC,SAASC,gBAAgBC,UAAkC,CAAC,GAAC;AAClE,SAAOC,4BAA4BD,SAAS;IAC1CE,YAAYJ;IACZK,gBAAgB;EAClB,CAAA;AACF;AALgBJ;","names":["SANDBOX_KIT_DEV_PREFIX","SANDBOX_KIT_MANIFEST_KEYS","SANDBOX_KIT_UPDATE_EVENT","createGenuiSandboxKitPlugin","NEST_SANDBOX_KIT_DESCRIPTOR","genuiSandboxKit","options","createGenuiSandboxKitPlugin","descriptor","rendererImport"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dudousxd/nestjs-agent",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.32.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/DavideCarvalho/nestjs-agent.git",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"dependencies": {
|
|
111
111
|
"@standard-schema/spec": "1.1.0",
|
|
112
112
|
"zod": "3.25.76",
|
|
113
|
-
"@dudousxd/nestjs-agent-core": "0.
|
|
113
|
+
"@dudousxd/nestjs-agent-core": "0.54.0"
|
|
114
114
|
},
|
|
115
115
|
"peerDependencies": {
|
|
116
116
|
"@dudousxd/nestjs-durable": ">=0.34.0",
|