@dexto/agent-config 1.10.1 → 1.10.3

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.
@@ -8,7 +8,7 @@ export interface ToDextoAgentOptionsInput<THostContext extends DextoHostContext
8
8
  image?: DextoImage<THostContext> | undefined;
9
9
  hostContext?: THostContext | undefined;
10
10
  overrides?: InitializeServicesOptions | undefined;
11
- runtimeOverrides?: Pick<DextoAgentOptions, 'usageScopeId'> | undefined;
11
+ runtimeOverrides?: Partial<Pick<DextoAgentOptions, 'usageScopeId' | 'llmRegistry'>> | undefined;
12
12
  }
13
13
  export declare function toDextoAgentOptions<THostContext extends DextoHostContext = DextoHostContext>(options: ToDextoAgentOptionsInput<THostContext>): DextoAgentOptions;
14
14
  //# sourceMappingURL=to-dexto-agent-options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"to-dexto-agent-options.d.ts","sourceRoot":"","sources":["../../src/resolver/to-dexto-agent-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAChF,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,MAAM,WAAW,wBAAwB,CACrC,YAAY,SAAS,gBAAgB,GAAG,gBAAgB;IAExD,MAAM,EAAE,oBAAoB,CAAC;IAC7B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,KAAK,CAAC,EAAE,UAAU,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;IAC7C,WAAW,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IACvC,SAAS,CAAC,EAAE,yBAAyB,GAAG,SAAS,CAAC;IAClD,gBAAgB,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,cAAc,CAAC,GAAG,SAAS,CAAC;CAC1E;AAED,wBAAgB,mBAAmB,CAAC,YAAY,SAAS,gBAAgB,GAAG,gBAAgB,EACxF,OAAO,EAAE,wBAAwB,CAAC,YAAY,CAAC,GAChD,iBAAiB,CA2CnB"}
1
+ {"version":3,"file":"to-dexto-agent-options.d.ts","sourceRoot":"","sources":["../../src/resolver/to-dexto-agent-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAChF,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,MAAM,WAAW,wBAAwB,CACrC,YAAY,SAAS,gBAAgB,GAAG,gBAAgB;IAExD,MAAM,EAAE,oBAAoB,CAAC;IAC7B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,KAAK,CAAC,EAAE,UAAU,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;IAC7C,WAAW,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IACvC,SAAS,CAAC,EAAE,yBAAyB,GAAG,SAAS,CAAC;IAClD,gBAAgB,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,cAAc,GAAG,aAAa,CAAC,CAAC,GAAG,SAAS,CAAC;CACnG;AAED,wBAAgB,mBAAmB,CAAC,YAAY,SAAS,gBAAgB,GAAG,gBAAgB,EACxF,OAAO,EAAE,wBAAwB,CAAC,YAAY,CAAC,GAChD,iBAAiB,CA2CnB"}
@@ -24,6 +24,7 @@ __export(agent_config_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(agent_config_exports);
26
26
  var import_config = require("@dexto/core/config");
27
+ var import_core = require("@dexto/core");
27
28
  var import_schemas = require("@dexto/storage/schemas");
28
29
  var import_zod = require("zod");
29
30
  var import_hooks = require("./hooks.js");
@@ -34,7 +35,7 @@ const ToolFactoryEntrySchema = import_zod.z.object({
34
35
  }).passthrough().describe(
35
36
  "Tool factory configuration. Additional fields are type-specific and validated by the resolver."
36
37
  );
37
- function createAgentConfigSchema() {
38
+ function createAgentConfigSchema(registry) {
38
39
  return import_zod.z.object({
39
40
  // ========================================
40
41
  // REQUIRED FIELDS (user must provide or schema validation fails)
@@ -42,7 +43,7 @@ function createAgentConfigSchema() {
42
43
  systemPrompt: import_config.SystemPromptConfigSchema.describe(
43
44
  "System prompt: string shorthand or structured config"
44
45
  ),
45
- llm: import_config.LLMConfigSchema.describe("Core LLM configuration for the agent"),
46
+ llm: (0, import_core.createLLMConfigSchema)(registry).describe("Core LLM configuration for the agent"),
46
47
  // ========================================
47
48
  // OPTIONAL FEATURES (undefined if not provided)
48
49
  // ========================================
@@ -1,4 +1,6 @@
1
+ import { createLLMConfigSchema } from '@dexto/core';
1
2
  import { z } from 'zod';
3
+ type AgentConfigModelRegistry = Parameters<typeof createLLMConfigSchema>[0];
2
4
  /**
3
5
  * Unified tool factory entry configuration.
4
6
  *
@@ -18,7 +20,7 @@ export type ToolFactoryEntry = z.output<typeof ToolFactoryEntrySchema>;
18
20
  /**
19
21
  * Creates the agent config schema.
20
22
  */
21
- export declare function createAgentConfigSchema(): z.core.$ZodBranded<z.ZodObject<{
23
+ export declare function createAgentConfigSchema(registry?: AgentConfigModelRegistry): z.core.$ZodBranded<z.ZodObject<{
22
24
  systemPrompt: z.core.$ZodBranded<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
23
25
  contributors: {
24
26
  id: string;
@@ -815,4 +817,5 @@ export declare const AgentConfigSchema: z.core.$ZodBranded<z.ZodObject<{
815
817
  }, z.core.$strict>, "ValidatedAgentConfig", "out">;
816
818
  export type AgentConfig = z.input<typeof AgentConfigSchema>;
817
819
  export type ValidatedAgentConfig = z.output<typeof AgentConfigSchema>;
820
+ export {};
818
821
  //# sourceMappingURL=agent-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-config.d.ts","sourceRoot":"","sources":["../../src/schemas/agent-config.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB;;;iBAQ9B,CAAC;AAEN,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAMvE;;GAEG;AACH,wBAAgB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAoHtC;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAoH1E;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAA4B,CAAC;AAG3D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  AgentCardSchema,
3
3
  ElicitationConfigSchema,
4
- LLMConfigSchema,
5
4
  LoggerConfigSchema,
6
5
  MemoriesConfigSchema,
7
6
  ServersConfigSchema as McpServersConfigSchema,
@@ -12,6 +11,7 @@ import {
12
11
  PermissionsConfigSchema,
13
12
  ResourcesConfigSchema
14
13
  } from "@dexto/core/config";
14
+ import { createLLMConfigSchema } from "@dexto/core";
15
15
  import { StorageSchema } from "@dexto/storage/schemas";
16
16
  import { z } from "zod";
17
17
  import { HooksConfigSchema } from "./hooks.js";
@@ -22,7 +22,7 @@ const ToolFactoryEntrySchema = z.object({
22
22
  }).passthrough().describe(
23
23
  "Tool factory configuration. Additional fields are type-specific and validated by the resolver."
24
24
  );
25
- function createAgentConfigSchema() {
25
+ function createAgentConfigSchema(registry) {
26
26
  return z.object({
27
27
  // ========================================
28
28
  // REQUIRED FIELDS (user must provide or schema validation fails)
@@ -30,7 +30,7 @@ function createAgentConfigSchema() {
30
30
  systemPrompt: SystemPromptConfigSchema.describe(
31
31
  "System prompt: string shorthand or structured config"
32
32
  ),
33
- llm: LLMConfigSchema.describe("Core LLM configuration for the agent"),
33
+ llm: createLLMConfigSchema(registry).describe("Core LLM configuration for the agent"),
34
34
  // ========================================
35
35
  // OPTIONAL FEATURES (undefined if not provided)
36
36
  // ========================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexto/agent-config",
3
- "version": "1.10.1",
3
+ "version": "1.10.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "zod": "^4.3.6",
19
- "@dexto/core": "1.10.1",
20
- "@dexto/storage": "1.10.1"
19
+ "@dexto/storage": "1.10.3",
20
+ "@dexto/core": "1.10.3"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^22.13.5",