@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.
@@ -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 components, its theme, Tailwind) inside the sandbox:\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({ plugins: [react(), genuiSandboxKit({ include: 'src/components/ui/*.tsx' })] })\n * ```\n *\n * Then `AgentGenuiModule.forRoot({ sandbox: { kit: true, tailwind: true } })` finds the bundle and\n * the docs: the descriptor the dev server writes (`.genui/sandbox-kit.json`) in dev, the Vite\n * manifest in production (see `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. `entry` (a module exporting the kit) or `include` (a glob of component\n * files); neither → the first `components/ui` folder (`src/components/ui`…). See\n * {@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;;;;;;;;;AAcA,iBAQO;AAOA,IAAMA,8BAA8B;AAOpC,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"]}
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"]}
@@ -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 components, its theme, Tailwind) inside the sandbox:
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({ plugins: [react(), genuiSandboxKit({ include: 'src/components/ui/*.tsx' })] })
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, tailwind: true } })` finds the bundle and
15
- * the docs: the descriptor the dev server writes (`.genui/sandbox-kit.json`) in dev, the Vite
16
- * manifest in production (see `AgentGenuiOptions.sandboxKit`).
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. `entry` (a module exporting the kit) or `include` (a glob of component
27
- * files); neither → the first `components/ui` folder (`src/components/ui`…). See
28
- * {@link GenuiSandboxKitOptions}.
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
 
@@ -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 components, its theme, Tailwind) inside the sandbox:
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({ plugins: [react(), genuiSandboxKit({ include: 'src/components/ui/*.tsx' })] })
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, tailwind: true } })` finds the bundle and
15
- * the docs: the descriptor the dev server writes (`.genui/sandbox-kit.json`) in dev, the Vite
16
- * manifest in production (see `AgentGenuiOptions.sandboxKit`).
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. `entry` (a module exporting the kit) or `include` (a glob of component
27
- * files); neither → the first `components/ui` folder (`src/components/ui`…). See
28
- * {@link GenuiSandboxKitOptions}.
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
 
@@ -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 components, its theme, Tailwind) inside the sandbox:\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({ plugins: [react(), genuiSandboxKit({ include: 'src/components/ui/*.tsx' })] })\n * ```\n *\n * Then `AgentGenuiModule.forRoot({ sandbox: { kit: true, tailwind: true } })` finds the bundle and\n * the docs: the descriptor the dev server writes (`.genui/sandbox-kit.json`) in dev, the Vite\n * manifest in production (see `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. `entry` (a module exporting the kit) or `include` (a glob of component\n * files); neither → the first `components/ui` folder (`src/components/ui`…). See\n * {@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":";;;;AAcA,SAIEA,wBACAC,2BACAC,0BACAC,mCACK;AAOA,IAAMC,8BAA8B;AAOpC,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"]}
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.31.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.52.1"
113
+ "@dudousxd/nestjs-agent-core": "0.54.0"
114
114
  },
115
115
  "peerDependencies": {
116
116
  "@dudousxd/nestjs-durable": ">=0.34.0",