@dudousxd/nestjs-agent-core 0.40.0 → 0.42.0
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/README.md +7 -0
- package/dist/ag-ui/index.cjs +46 -10
- package/dist/ag-ui/index.cjs.map +1 -1
- package/dist/ag-ui/index.d.cts +9 -3
- package/dist/ag-ui/index.d.ts +9 -3
- package/dist/ag-ui/index.js +46 -10
- package/dist/ag-ui/index.js.map +1 -1
- package/dist/{catalog-CrzetM3_.d.cts → catalog-BKS3Yxo6.d.cts} +2 -0
- package/dist/{catalog-CrzetM3_.d.ts → catalog-BKS3Yxo6.d.ts} +2 -0
- package/dist/genui/builtins.cjs.map +1 -1
- package/dist/genui/builtins.d.cts +1 -1
- package/dist/genui/builtins.d.ts +1 -1
- package/dist/genui/builtins.js.map +1 -1
- package/dist/genui/index.cjs +660 -68
- package/dist/genui/index.cjs.map +1 -1
- package/dist/genui/index.d.cts +5 -5
- package/dist/genui/index.d.ts +5 -5
- package/dist/genui/index.js +654 -68
- package/dist/genui/index.js.map +1 -1
- package/dist/guardrails/index.cjs +3 -1
- package/dist/guardrails/index.cjs.map +1 -1
- package/dist/guardrails/index.d.cts +5 -4
- package/dist/guardrails/index.d.ts +5 -4
- package/dist/guardrails/index.js +3 -1
- package/dist/guardrails/index.js.map +1 -1
- package/dist/index.cjs +1164 -421
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +124 -13
- package/dist/index.d.ts +124 -13
- package/dist/index.js +1156 -421
- package/dist/index.js.map +1 -1
- package/dist/{processors-BR3nICcp.d.ts → processors-BKILjME5.d.ts} +1 -1
- package/dist/{processors-B7nfbU6E.d.cts → processors-DpHBqRuE.d.cts} +1 -1
- package/dist/{stream-events-M0jc7lSW.d.cts → stream-events-C-pj3bVY.d.cts} +92 -4
- package/dist/{stream-events-DAmes2Of.d.ts → stream-events-D92SgfRk.d.ts} +92 -4
- package/package.json +1 -1
package/dist/genui/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as Catalog, J as JsonSchema, G as GenuiValidation, b as GenuiIssue } from '../catalog-
|
|
2
|
-
export { A as AjvLike, c as COMPONENT_NAME, d as CatalogOptions, C as ComponentDefinition, e as JsonSchemaValidator, P as PropsSchema, f as ajvValidator, g as builtinJsonSchemaValidator, h as defineCatalog, i as defineComponent, j as formatIssues, k as isStandardSchema, t as toJsonSchema, l as toSnakeCase, m as toolNameFor, v as validateProps, n as validatePropsSync } from '../catalog-
|
|
1
|
+
import { a as Catalog, J as JsonSchema, G as GenuiValidation, b as GenuiIssue } from '../catalog-BKS3Yxo6.cjs';
|
|
2
|
+
export { A as AjvLike, c as COMPONENT_NAME, d as CatalogOptions, C as ComponentDefinition, e as JsonSchemaValidator, P as PropsSchema, f as ajvValidator, g as builtinJsonSchemaValidator, h as defineCatalog, i as defineComponent, j as formatIssues, k as isStandardSchema, t as toJsonSchema, l as toSnakeCase, m as toolNameFor, v as validateProps, n as validatePropsSync } from '../catalog-BKS3Yxo6.cjs';
|
|
3
3
|
import { StandardSchemaV1, StandardJSONSchemaV1 } from '@standard-schema/spec';
|
|
4
|
-
import { a as Actor, T as ToolSpec, b as ToolHandler, c as ToolPresentation } from '../stream-events-
|
|
5
|
-
export { P as PreparedUiEmission, U as UiCapabilities, n as negotiateCatalog, p as prepareUiEmission, v as validateUiCapabilities } from '../stream-events-
|
|
4
|
+
import { a as Actor, T as ToolSpec, b as ToolHandler, c as ToolPresentation } from '../stream-events-C-pj3bVY.cjs';
|
|
5
|
+
export { C as ChartProps, d as ComponentFactory, e as ComponentManifest, f as ComponentPresentation, g as ComponentRegistry, h as ComponentRenderer, P as PreparedUiEmission, i as TableCell, j as TableProps, U as UiCapabilities, k as chart, l as createComponent, m as createComponentRegistry, n as negotiateCatalog, p as prepareUiEmission, s as snapshotComponentPresentation, t as table, v as validatePresentationBatch, o as validateUiCapabilities } from '../stream-events-C-pj3bVY.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* One node of a composed UI: a catalog component, its props, and — for components declared with
|
|
@@ -38,7 +38,7 @@ interface TreeLimits {
|
|
|
38
38
|
* Lenient about one thing models get wrong: a `children` array sent as a JSON STRING (sometimes
|
|
39
39
|
* with a stray trailing `}`) is parsed back into the array the model plainly meant.
|
|
40
40
|
*/
|
|
41
|
-
declare function validateTree(catalog: Catalog, tree: unknown, limits?: TreeLimits): Promise<GenuiValidation<GenuiElement>>;
|
|
41
|
+
declare function validateTree(catalog: Catalog, tree: unknown, limits?: TreeLimits, phase?: 'input' | 'output'): Promise<GenuiValidation<GenuiElement>>;
|
|
42
42
|
/**
|
|
43
43
|
* The JSON Schema of a tree-mode tool's input: a recursive `{ type, props, children? }` node whose
|
|
44
44
|
* `type` is one of the catalog's model-facing component names. Per-component props are described
|
package/dist/genui/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as Catalog, J as JsonSchema, G as GenuiValidation, b as GenuiIssue } from '../catalog-
|
|
2
|
-
export { A as AjvLike, c as COMPONENT_NAME, d as CatalogOptions, C as ComponentDefinition, e as JsonSchemaValidator, P as PropsSchema, f as ajvValidator, g as builtinJsonSchemaValidator, h as defineCatalog, i as defineComponent, j as formatIssues, k as isStandardSchema, t as toJsonSchema, l as toSnakeCase, m as toolNameFor, v as validateProps, n as validatePropsSync } from '../catalog-
|
|
1
|
+
import { a as Catalog, J as JsonSchema, G as GenuiValidation, b as GenuiIssue } from '../catalog-BKS3Yxo6.js';
|
|
2
|
+
export { A as AjvLike, c as COMPONENT_NAME, d as CatalogOptions, C as ComponentDefinition, e as JsonSchemaValidator, P as PropsSchema, f as ajvValidator, g as builtinJsonSchemaValidator, h as defineCatalog, i as defineComponent, j as formatIssues, k as isStandardSchema, t as toJsonSchema, l as toSnakeCase, m as toolNameFor, v as validateProps, n as validatePropsSync } from '../catalog-BKS3Yxo6.js';
|
|
3
3
|
import { StandardSchemaV1, StandardJSONSchemaV1 } from '@standard-schema/spec';
|
|
4
|
-
import { a as Actor, T as ToolSpec, b as ToolHandler, c as ToolPresentation } from '../stream-events-
|
|
5
|
-
export { P as PreparedUiEmission, U as UiCapabilities, n as negotiateCatalog, p as prepareUiEmission, v as validateUiCapabilities } from '../stream-events-
|
|
4
|
+
import { a as Actor, T as ToolSpec, b as ToolHandler, c as ToolPresentation } from '../stream-events-D92SgfRk.js';
|
|
5
|
+
export { C as ChartProps, d as ComponentFactory, e as ComponentManifest, f as ComponentPresentation, g as ComponentRegistry, h as ComponentRenderer, P as PreparedUiEmission, i as TableCell, j as TableProps, U as UiCapabilities, k as chart, l as createComponent, m as createComponentRegistry, n as negotiateCatalog, p as prepareUiEmission, s as snapshotComponentPresentation, t as table, v as validatePresentationBatch, o as validateUiCapabilities } from '../stream-events-D92SgfRk.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* One node of a composed UI: a catalog component, its props, and — for components declared with
|
|
@@ -38,7 +38,7 @@ interface TreeLimits {
|
|
|
38
38
|
* Lenient about one thing models get wrong: a `children` array sent as a JSON STRING (sometimes
|
|
39
39
|
* with a stray trailing `}`) is parsed back into the array the model plainly meant.
|
|
40
40
|
*/
|
|
41
|
-
declare function validateTree(catalog: Catalog, tree: unknown, limits?: TreeLimits): Promise<GenuiValidation<GenuiElement>>;
|
|
41
|
+
declare function validateTree(catalog: Catalog, tree: unknown, limits?: TreeLimits, phase?: 'input' | 'output'): Promise<GenuiValidation<GenuiElement>>;
|
|
42
42
|
/**
|
|
43
43
|
* The JSON Schema of a tree-mode tool's input: a recursive `{ type, props, children? }` node whose
|
|
44
44
|
* `type` is one of the catalog's model-facing component names. Per-component props are described
|