@dexto/agent-config 1.7.2 → 1.8.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/README.md CHANGED
@@ -8,7 +8,8 @@ use `@dexto/agent-config` to:
8
8
  - validate agent config (`AgentConfigSchema`)
9
9
  - load an image module (`loadImage()`)
10
10
  - merge image defaults into raw config (`applyImageDefaults()`)
11
- - resolve factories from the image into concrete instances (`resolveServicesFromConfig()`)
11
+ - resolve image factories into concrete stores, workspace handles, skills, tools, hooks, and logger
12
+ instances (`resolveServicesFromConfig()`)
12
13
  - convert the result into `DextoAgentOptions` (`toDextoAgentOptions()`)
13
14
 
14
15
  ## Quick example (apps)
@@ -69,6 +70,16 @@ const options = toDextoAgentOptions({ config, services, image, hostContext });
69
70
 
70
71
  ## Images (no registries)
71
72
 
72
- Images are typed modules (`DextoImage`) that export plain `Record<string, Factory>` maps.
73
- Resolver logic does property access by config `type` (e.g., `image.tools[entry.type]`) — there are no
74
- global registries or side effects.
73
+ Images are typed modules (`DextoImage`) that export plain factory surfaces.
74
+ Tool/hook/compaction resolution still uses property access by config `type`
75
+ (e.g., `image.tools[entry.type]`). Storage is resolved by the image as one
76
+ `createStores(config.storage, ...)` call so images can compose or directly implement
77
+ `DextoStores` without exposing lower-level backend construction details. There are no global
78
+ registries or side effects.
79
+
80
+ Images may also provide:
81
+
82
+ - `workspace.create(...)`: returns a `WorkspaceHandleProvider`. Local images usually return local
83
+ filesystem handles; hosted images can return handles backed by their own workspace runtime.
84
+ - `skills.create(...)`: returns `SkillSource` instances consumed by `SkillManager`. Skills stay out
85
+ of prompt config; prompts remain prompt-only.
@@ -1,4 +1,4 @@
1
- import type { BlobStore, Cache, DextoAgentConfigInput, Database, Hook, Logger, CompactionStrategy as CompactionStrategy, Tool } from '@dexto/core';
1
+ import type { DextoAgentConfigInput, DextoStores, Hook, Logger, CompactionStrategy as CompactionStrategy, Tool, WorkspaceHandleProvider, SkillSource } from '@dexto/core';
2
2
  import type { z } from 'zod';
3
3
  import type { AgentConfig, ValidatedAgentConfig } from '../schemas/agent-config.js';
4
4
  /**
@@ -30,6 +30,7 @@ export interface DextoHostContext<TRuntime extends object = object, TCapabilitie
30
30
  mode?: 'local' | 'server' | 'hosted';
31
31
  sessionId?: string;
32
32
  workspaceId?: string;
33
+ workspaceRoot?: string;
33
34
  runId?: string;
34
35
  attemptId?: string;
35
36
  clients?: TClients;
@@ -66,24 +67,9 @@ export interface ToolFactory<TConfig = unknown, THostContext extends DextoHostCo
66
67
  create(config: TConfig, context?: ImageResolutionContext<THostContext>): Tool[];
67
68
  metadata?: ToolFactoryMetadata;
68
69
  }
69
- /**
70
- * Storage factories are keyed by `type` in the agent config (`storage.blob.type`, etc.).
71
- *
72
- * Factories may return a Promise to support lazy optional dependencies (e.g., sqlite/pg/redis).
73
- */
74
- export interface BlobStoreFactory<TConfig = unknown, THostContext extends DextoHostContext = DextoHostContext> {
75
- configSchema: z.ZodType<TConfig, unknown>;
76
- create(config: TConfig, logger: Logger, context?: ImageResolutionContext<THostContext>): BlobStore | Promise<BlobStore>;
77
- metadata?: Record<string, unknown> | undefined;
78
- }
79
- export interface DatabaseFactory<TConfig = unknown, THostContext extends DextoHostContext = DextoHostContext> {
80
- configSchema: z.ZodType<TConfig, unknown>;
81
- create(config: TConfig, logger: Logger, context?: ImageResolutionContext<THostContext>): Database | Promise<Database>;
82
- metadata?: Record<string, unknown> | undefined;
83
- }
84
- export interface CacheFactory<TConfig = unknown, THostContext extends DextoHostContext = DextoHostContext> {
70
+ export interface StorageFactory<TConfig = unknown, THostContext extends DextoHostContext = DextoHostContext> {
85
71
  configSchema: z.ZodType<TConfig, unknown>;
86
- create(config: TConfig, logger: Logger, context?: ImageResolutionContext<THostContext>): Cache | Promise<Cache>;
72
+ createStores(config: TConfig, logger: Logger, context?: ImageResolutionContext<THostContext>): DextoStores | Promise<DextoStores>;
87
73
  metadata?: Record<string, unknown> | undefined;
88
74
  }
89
75
  /**
@@ -112,6 +98,14 @@ export interface LoggerFactory<TConfig = unknown, THostContext extends DextoHost
112
98
  create(config: TConfig, context?: ImageResolutionContext<THostContext>): Logger;
113
99
  metadata?: Record<string, unknown> | undefined;
114
100
  }
101
+ export interface WorkspaceHandleProviderFactory<THostContext extends DextoHostContext = DextoHostContext> {
102
+ create(context?: ImageResolutionContext<THostContext>): WorkspaceHandleProvider;
103
+ metadata?: Record<string, unknown> | undefined;
104
+ }
105
+ export interface SkillSourceFactory<THostContext extends DextoHostContext = DextoHostContext> {
106
+ create(context?: ImageResolutionContext<THostContext>): SkillSource[] | Promise<SkillSource[]>;
107
+ metadata?: Record<string, unknown> | undefined;
108
+ }
115
109
  /**
116
110
  * An image is a typed module that bundles defaults and a set of factories that a host (CLI/server/app)
117
111
  * may use to resolve config → concrete instances.
@@ -141,17 +135,12 @@ export interface DextoImage<THostContext extends DextoHostContext = DextoHostCon
141
135
  * Example: `{ "filesystem-tools": fileSystemToolsFactory }`.
142
136
  */
143
137
  tools: Record<string, ToolFactory<unknown, THostContext>>;
144
- /**
145
- * Storage factories keyed by config `type`.
146
- */
147
- storage: {
148
- blob: Record<string, BlobStoreFactory<unknown, THostContext>>;
149
- database: Record<string, DatabaseFactory<unknown, THostContext>>;
150
- cache: Record<string, CacheFactory<unknown, THostContext>>;
151
- };
138
+ storage: StorageFactory<unknown, THostContext>;
152
139
  hooks: Record<string, HookFactory<unknown, THostContext>>;
153
140
  compaction: Record<string, CompactionFactory<unknown, THostContext>>;
154
141
  logger: LoggerFactory<unknown, THostContext>;
142
+ workspace?: WorkspaceHandleProviderFactory<THostContext> | undefined;
143
+ skills?: SkillSourceFactory<THostContext> | undefined;
155
144
  resolveRuntimeConfig?(options: ResolveImageRuntimeConfigOptions<THostContext>): DextoImageRuntimeConfigOverrides | undefined;
156
145
  }
157
146
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/image/types.ts"],"names":[],"mappings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,MAAM,EAAE,aAAa,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAC7C,SAAS,CAAC,EAAE,8BAA8B,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;IACrE,MAAM,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;IACtD,oBAAoB,CAAC,CACjB,OAAO,EAAE,gCAAgC,CAAC,YAAY,CAAC,GACxD,gCAAgC,GAAG,SAAS,CAAC;CACnD"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type { BlobStoreFactory, CacheFactory, CompactionFactory, DatabaseFactory, DextoImage, DextoHostContext, DextoImageRuntimeConfigOverrides, ImageDefaults, ImageResolutionContext, LoggerFactory, ResolveImageRuntimeConfigOptions, HookFactory, ToolFactory, } from './image/types.js';
1
+ export type { CompactionFactory, DextoImage, DextoHostContext, DextoImageRuntimeConfigOverrides, ImageDefaults, ImageResolutionContext, LoggerFactory, ResolveImageRuntimeConfigOptions, StorageFactory, HookFactory, ToolFactory, } from './image/types.js';
2
2
  export { AgentConfigSchema, createAgentConfigSchema, ToolFactoryEntrySchema, } from './schemas/agent-config.js';
3
3
  export type { AgentConfig, ValidatedAgentConfig, ToolFactoryEntry, } from './schemas/agent-config.js';
4
4
  export type { HooksConfig, ValidatedHooksConfig, HookFactoryEntry } from './schemas/hooks.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,gCAAgC,EAChC,aAAa,EACb,sBAAsB,EACtB,aAAa,EACb,gCAAgC,EAChC,WAAW,EACX,WAAW,GACd,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACH,iBAAiB,EACjB,uBAAuB,EACvB,sBAAsB,GACzB,MAAM,2BAA2B,CAAC;AAEnC,YAAY,EACR,WAAW,EAC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AAEnC,YAAY,EAAE,WAAW,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE9F,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE/E,OAAO,EACH,sBAAsB,EACtB,yBAAyB,EACzB,sCAAsC,EACtC,0BAA0B,GAC7B,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EACR,gBAAgB,EAChB,yBAAyB,EACzB,gCAAgC,EAChC,oBAAoB,GACvB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACvE,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAE3E,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC"}
@@ -88,9 +88,16 @@ function assertDextoImage(value, imageName) {
88
88
  if (!(0, import_utils.isPlainObject)(storage)) {
89
89
  throw new Error(`Invalid image '${imageName}': missing required 'storage' object`);
90
90
  }
91
- assertFactoryMap(storage.blob, { imageName, field: "storage.blob" });
92
- assertFactoryMap(storage.database, { imageName, field: "storage.database" });
93
- assertFactoryMap(storage.cache, { imageName, field: "storage.cache" });
91
+ if (!(0, import_utils.isSchemaLike)(storage.configSchema)) {
92
+ throw new Error(
93
+ `Invalid image '${imageName}': expected 'storage.configSchema' to be a Zod schema`
94
+ );
95
+ }
96
+ if (typeof storage.createStores !== "function") {
97
+ throw new Error(
98
+ `Invalid image '${imageName}': expected 'storage.createStores' to be a function`
99
+ );
100
+ }
94
101
  assertFactoryMap(value.hooks, { imageName, field: "hooks" });
95
102
  assertFactoryMap(value.compaction, { imageName, field: "compaction" });
96
103
  const logger = value.logger;
@@ -1 +1 @@
1
- {"version":3,"file":"load-image.d.ts","sourceRoot":"","sources":["../../src/resolver/load-image.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGpD,MAAM,MAAM,aAAa,GAAG,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAIpE;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,aAAa,GAAG,SAAS,GAAG,IAAI,CAE1E;AA8GD,wBAAsB,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAgBtE"}
1
+ {"version":3,"file":"load-image.d.ts","sourceRoot":"","sources":["../../src/resolver/load-image.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGpD,MAAM,MAAM,aAAa,GAAG,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAIpE;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,aAAa,GAAG,SAAS,GAAG,IAAI,CAE1E;AAqHD,wBAAsB,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAgBtE"}
@@ -64,9 +64,16 @@ function assertDextoImage(value, imageName) {
64
64
  if (!isPlainObject(storage)) {
65
65
  throw new Error(`Invalid image '${imageName}': missing required 'storage' object`);
66
66
  }
67
- assertFactoryMap(storage.blob, { imageName, field: "storage.blob" });
68
- assertFactoryMap(storage.database, { imageName, field: "storage.database" });
69
- assertFactoryMap(storage.cache, { imageName, field: "storage.cache" });
67
+ if (!isSchemaLike(storage.configSchema)) {
68
+ throw new Error(
69
+ `Invalid image '${imageName}': expected 'storage.configSchema' to be a Zod schema`
70
+ );
71
+ }
72
+ if (typeof storage.createStores !== "function") {
73
+ throw new Error(
74
+ `Invalid image '${imageName}': expected 'storage.createStores' to be a function`
75
+ );
76
+ }
70
77
  assertFactoryMap(value.hooks, { imageName, field: "hooks" });
71
78
  assertFactoryMap(value.compaction, { imageName, field: "compaction" });
72
79
  const logger = value.logger;
@@ -55,32 +55,10 @@ async function resolveServicesFromConfig(config, image, hostContext) {
55
55
  };
56
56
  const loggerConfig = image.logger.configSchema.parse(loggerFactoryInput);
57
57
  const logger = image.logger.create(loggerConfig, resolutionContext);
58
- const blobFactory = resolveByType({
59
- kind: "blob storage",
60
- type: config.storage.blob.type,
61
- factories: image.storage.blob,
62
- imageName
63
- });
64
- const databaseFactory = resolveByType({
65
- kind: "database",
66
- type: config.storage.database.type,
67
- factories: image.storage.database,
68
- imageName
69
- });
70
- const cacheFactory = resolveByType({
71
- kind: "cache",
72
- type: config.storage.cache.type,
73
- factories: image.storage.cache,
74
- imageName
75
- });
76
- const blobConfig = blobFactory.configSchema.parse(config.storage.blob);
77
- const databaseConfig = databaseFactory.configSchema.parse(config.storage.database);
78
- const cacheConfig = cacheFactory.configSchema.parse(config.storage.cache);
79
- const storage = {
80
- blob: await blobFactory.create(blobConfig, logger, resolutionContext),
81
- database: await databaseFactory.create(databaseConfig, logger, resolutionContext),
82
- cache: await cacheFactory.create(cacheConfig, logger, resolutionContext)
83
- };
58
+ const storageConfig = image.storage.configSchema.parse(config.storage);
59
+ const stores = await image.storage.createStores(storageConfig, logger, resolutionContext);
60
+ const workspaceHandleProvider = image.workspace?.create(resolutionContext);
61
+ const skillSources = await image.skills?.create(resolutionContext) ?? [];
84
62
  const toolEntries = config.tools ?? image.defaults?.tools ?? [];
85
63
  const tools = resolveToolsFromEntries({
86
64
  entries: toolEntries,
@@ -131,7 +109,16 @@ async function resolveServicesFromConfig(config, image, hostContext) {
131
109
  const parsedConfig = factory.configSchema.parse(compactionConfig);
132
110
  compaction = await factory.create(parsedConfig, resolutionContext);
133
111
  }
134
- return { logger, storage, tools, toolkitLoader, hooks, compaction };
112
+ return {
113
+ logger,
114
+ stores,
115
+ tools,
116
+ skillSources,
117
+ toolkitLoader,
118
+ ...workspaceHandleProvider !== void 0 && { workspaceHandleProvider },
119
+ hooks,
120
+ compaction
121
+ };
135
122
  }
136
123
  function resolveToolsFromEntries(options) {
137
124
  const { entries, image, logger, resolutionContext } = options;
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-services-from-config.d.ts","sourceRoot":"","sources":["../../src/resolver/resolve-services-from-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,MAAM,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACzF,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC9F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAmCnD,wBAAsB,yBAAyB,CAC3C,YAAY,SAAS,gBAAgB,GAAG,gBAAgB,EAExD,MAAM,EAAE,oBAAoB,EAC5B,KAAK,EAAE,UAAU,CAAC,YAAY,CAAC,EAC/B,WAAW,CAAC,EAAE,YAAY,GAC3B,OAAO,CAAC,gBAAgB,CAAC,CAyG3B;AAED,wBAAgB,uBAAuB,CACnC,YAAY,SAAS,gBAAgB,GAAG,gBAAgB,EAC1D,OAAO,EAAE;IACP,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,KAAK,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,sBAAsB,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;CACxE,GAAG,IAAI,EAAE,CAoCT"}
1
+ {"version":3,"file":"resolve-services-from-config.d.ts","sourceRoot":"","sources":["../../src/resolver/resolve-services-from-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,MAAM,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACzF,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC9F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAmCnD,wBAAsB,yBAAyB,CAC3C,YAAY,SAAS,gBAAgB,GAAG,gBAAgB,EAExD,MAAM,EAAE,oBAAoB,EAC5B,KAAK,EAAE,UAAU,CAAC,YAAY,CAAC,EAC/B,WAAW,CAAC,EAAE,YAAY,GAC3B,OAAO,CAAC,gBAAgB,CAAC,CA0F3B;AAED,wBAAgB,uBAAuB,CACnC,YAAY,SAAS,gBAAgB,GAAG,gBAAgB,EAC1D,OAAO,EAAE;IACP,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,KAAK,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,sBAAsB,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;CACxE,GAAG,IAAI,EAAE,CAoCT"}
@@ -31,32 +31,10 @@ async function resolveServicesFromConfig(config, image, hostContext) {
31
31
  };
32
32
  const loggerConfig = image.logger.configSchema.parse(loggerFactoryInput);
33
33
  const logger = image.logger.create(loggerConfig, resolutionContext);
34
- const blobFactory = resolveByType({
35
- kind: "blob storage",
36
- type: config.storage.blob.type,
37
- factories: image.storage.blob,
38
- imageName
39
- });
40
- const databaseFactory = resolveByType({
41
- kind: "database",
42
- type: config.storage.database.type,
43
- factories: image.storage.database,
44
- imageName
45
- });
46
- const cacheFactory = resolveByType({
47
- kind: "cache",
48
- type: config.storage.cache.type,
49
- factories: image.storage.cache,
50
- imageName
51
- });
52
- const blobConfig = blobFactory.configSchema.parse(config.storage.blob);
53
- const databaseConfig = databaseFactory.configSchema.parse(config.storage.database);
54
- const cacheConfig = cacheFactory.configSchema.parse(config.storage.cache);
55
- const storage = {
56
- blob: await blobFactory.create(blobConfig, logger, resolutionContext),
57
- database: await databaseFactory.create(databaseConfig, logger, resolutionContext),
58
- cache: await cacheFactory.create(cacheConfig, logger, resolutionContext)
59
- };
34
+ const storageConfig = image.storage.configSchema.parse(config.storage);
35
+ const stores = await image.storage.createStores(storageConfig, logger, resolutionContext);
36
+ const workspaceHandleProvider = image.workspace?.create(resolutionContext);
37
+ const skillSources = await image.skills?.create(resolutionContext) ?? [];
60
38
  const toolEntries = config.tools ?? image.defaults?.tools ?? [];
61
39
  const tools = resolveToolsFromEntries({
62
40
  entries: toolEntries,
@@ -107,7 +85,16 @@ async function resolveServicesFromConfig(config, image, hostContext) {
107
85
  const parsedConfig = factory.configSchema.parse(compactionConfig);
108
86
  compaction = await factory.create(parsedConfig, resolutionContext);
109
87
  }
110
- return { logger, storage, tools, toolkitLoader, hooks, compaction };
88
+ return {
89
+ logger,
90
+ stores,
91
+ tools,
92
+ skillSources,
93
+ toolkitLoader,
94
+ ...workspaceHandleProvider !== void 0 && { workspaceHandleProvider },
95
+ hooks,
96
+ compaction
97
+ };
111
98
  }
112
99
  function resolveToolsFromEntries(options) {
113
100
  const { entries, image, logger, resolutionContext } = options;
@@ -23,6 +23,10 @@ __export(to_dexto_agent_options_exports, {
23
23
  module.exports = __toCommonJS(to_dexto_agent_options_exports);
24
24
  function toDextoAgentOptions(options) {
25
25
  const { config, services, image, hostContext, overrides, runtimeOverrides } = options;
26
+ const resolvedOverrides = services.workspaceHandleProvider !== void 0 ? {
27
+ ...overrides ?? {},
28
+ workspaceHandleProvider: overrides?.workspaceHandleProvider ?? services.workspaceHandleProvider
29
+ } : overrides;
26
30
  const imageRuntimeConfig = image?.resolveRuntimeConfig?.({
27
31
  config,
28
32
  context: {
@@ -46,13 +50,14 @@ function toDextoAgentOptions(options) {
46
50
  prompts: config.prompts,
47
51
  ...imageRuntimeConfig ?? {},
48
52
  logger: services.logger,
49
- storage: services.storage,
53
+ stores: services.stores,
50
54
  tools: services.tools,
55
+ skillSources: services.skillSources,
51
56
  toolkitLoader: services.toolkitLoader,
52
57
  hooks: services.hooks,
53
58
  compaction: services.compaction,
54
59
  ...runtimeOverrides ? runtimeOverrides : {},
55
- ...overrides ? { overrides } : {}
60
+ ...resolvedOverrides ? { overrides: resolvedOverrides } : {}
56
61
  };
57
62
  }
58
63
  // Annotate the CommonJS export names for ESM import in node:
@@ -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,CAkCnB"}
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,5 +1,9 @@
1
1
  function toDextoAgentOptions(options) {
2
2
  const { config, services, image, hostContext, overrides, runtimeOverrides } = options;
3
+ const resolvedOverrides = services.workspaceHandleProvider !== void 0 ? {
4
+ ...overrides ?? {},
5
+ workspaceHandleProvider: overrides?.workspaceHandleProvider ?? services.workspaceHandleProvider
6
+ } : overrides;
3
7
  const imageRuntimeConfig = image?.resolveRuntimeConfig?.({
4
8
  config,
5
9
  context: {
@@ -23,13 +27,14 @@ function toDextoAgentOptions(options) {
23
27
  prompts: config.prompts,
24
28
  ...imageRuntimeConfig ?? {},
25
29
  logger: services.logger,
26
- storage: services.storage,
30
+ stores: services.stores,
27
31
  tools: services.tools,
32
+ skillSources: services.skillSources,
28
33
  toolkitLoader: services.toolkitLoader,
29
34
  hooks: services.hooks,
30
35
  compaction: services.compaction,
31
36
  ...runtimeOverrides ? runtimeOverrides : {},
32
- ...overrides ? { overrides } : {}
37
+ ...resolvedOverrides ? { overrides: resolvedOverrides } : {}
33
38
  };
34
39
  }
35
40
  export {
@@ -1,19 +1,16 @@
1
- import type { BlobStore } from '@dexto/core';
2
- import type { Cache } from '@dexto/core';
3
- import type { Database } from '@dexto/core';
4
1
  import type { Hook } from '@dexto/core';
5
2
  import type { CompactionStrategy } from '@dexto/core';
6
3
  import type { Logger } from '@dexto/core';
7
- import type { Tool, ToolkitLoader } from '@dexto/core';
4
+ import type { DextoStores } from '@dexto/core/storage';
5
+ import type { SkillSource, Tool, ToolkitLoader } from '@dexto/core';
6
+ import type { WorkspaceHandleProvider } from '@dexto/core/workspace';
8
7
  export interface ResolvedServices {
9
8
  logger: Logger;
10
- storage: {
11
- blob: BlobStore;
12
- database: Database;
13
- cache: Cache;
14
- };
9
+ stores: DextoStores;
15
10
  tools: Tool[];
11
+ skillSources: SkillSource[];
16
12
  toolkitLoader?: ToolkitLoader;
13
+ workspaceHandleProvider?: WorkspaceHandleProvider;
17
14
  hooks: Hook[];
18
15
  compaction: CompactionStrategy | null;
19
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/resolver/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAE,k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AI,CAAC;CACzC"}
@@ -23,7 +23,7 @@ __export(agent_config_exports, {
23
23
  createAgentConfigSchema: () => createAgentConfigSchema
24
24
  });
25
25
  module.exports = __toCommonJS(agent_config_exports);
26
- var import_core = require("@dexto/core");
26
+ var import_config = require("@dexto/core/config");
27
27
  var import_schemas = require("@dexto/storage/schemas");
28
28
  var import_zod = require("zod");
29
29
  var import_hooks = require("./hooks.js");
@@ -39,19 +39,19 @@ function createAgentConfigSchema() {
39
39
  // ========================================
40
40
  // REQUIRED FIELDS (user must provide or schema validation fails)
41
41
  // ========================================
42
- systemPrompt: import_core.SystemPromptConfigSchema.describe(
42
+ systemPrompt: import_config.SystemPromptConfigSchema.describe(
43
43
  "System prompt: string shorthand or structured config"
44
44
  ),
45
- llm: import_core.LLMConfigSchema.describe("Core LLM configuration for the agent"),
45
+ llm: import_config.LLMConfigSchema.describe("Core LLM configuration for the agent"),
46
46
  // ========================================
47
47
  // OPTIONAL FEATURES (undefined if not provided)
48
48
  // ========================================
49
- agentCard: import_core.AgentCardSchema.describe("Configuration for the agent card").optional(),
49
+ agentCard: import_config.AgentCardSchema.describe("Configuration for the agent card").optional(),
50
50
  greeting: import_zod.z.string().max(500).describe("Default greeting text to show when a chat starts (for UI consumption)").optional(),
51
- telemetry: import_core.OtelConfigurationSchema.describe(
51
+ telemetry: import_config.OtelConfigurationSchema.describe(
52
52
  "OpenTelemetry configuration for distributed tracing and observability"
53
53
  ).optional(),
54
- memories: import_core.MemoriesConfigSchema.describe(
54
+ memories: import_config.MemoriesConfigSchema.describe(
55
55
  "Memory configuration for system prompt inclusion (optional feature)"
56
56
  ).optional(),
57
57
  agentFile: import_zod.z.object({
@@ -68,13 +68,13 @@ function createAgentConfigSchema() {
68
68
  agentId: import_zod.z.string().describe(
69
69
  "Unique identifier for this agent instance - CLI enrichment derives from agentCard.name or filename"
70
70
  ).default("coding-agent"),
71
- mcpServers: import_core.ServersConfigSchema.describe(
71
+ mcpServers: import_config.ServersConfigSchema.describe(
72
72
  "Configurations for MCP (Model Context Protocol) servers used by the agent"
73
73
  ).prefault({}),
74
74
  tools: import_zod.z.array(ToolFactoryEntrySchema).optional().describe(
75
75
  "Unified tool factory configuration. Omit to use image defaults; provide to fully override."
76
76
  ),
77
- logger: import_core.LoggerConfigSchema.describe(
77
+ logger: import_config.LoggerConfigSchema.describe(
78
78
  "Logger configuration with multi-transport support (file, console, remote) - CLI enrichment adds per-agent file transport"
79
79
  ).default({
80
80
  level: "error",
@@ -87,17 +87,17 @@ function createAgentConfigSchema() {
87
87
  database: { type: "in-memory" },
88
88
  blob: { type: "in-memory" }
89
89
  }),
90
- sessions: import_core.SessionConfigSchema.describe("Session management configuration").prefault({}),
91
- permissions: import_core.PermissionsConfigSchema.describe(
90
+ sessions: import_config.SessionConfigSchema.describe("Session management configuration").prefault({}),
91
+ permissions: import_config.PermissionsConfigSchema.describe(
92
92
  "Tool permissions and approval configuration"
93
93
  ).prefault({}),
94
- elicitation: import_core.ElicitationConfigSchema.prefault({}).describe(
94
+ elicitation: import_config.ElicitationConfigSchema.prefault({}).describe(
95
95
  "Elicitation configuration for user input requests (ask_user tool and MCP server elicitations). Independent from permissions mode."
96
96
  ),
97
- resources: import_core.ResourcesConfigSchema.describe(
97
+ resources: import_config.ResourcesConfigSchema.describe(
98
98
  "Agent-managed resource configuration"
99
99
  ).default([]),
100
- prompts: import_core.PromptsSchema.describe(
100
+ prompts: import_config.PromptsSchema.describe(
101
101
  "Agent prompts configuration - sample prompts which can be defined inline or referenced from file"
102
102
  ).default([]),
103
103
  hooks: import_hooks.HooksConfigSchema.describe(
@@ -140,8 +140,8 @@ export declare function createAgentConfigSchema(): z.core.$ZodBranded<z.ZodObjec
140
140
  type: z.ZodLiteral<"apiKey">;
141
141
  name: z.ZodString;
142
142
  in: z.ZodEnum<{
143
- query: "query";
144
143
  header: "header";
144
+ query: "query";
145
145
  cookie: "cookie";
146
146
  }>;
147
147
  description: z.ZodOptional<z.ZodString>;
@@ -330,7 +330,6 @@ export declare function createAgentConfigSchema(): z.core.$ZodBranded<z.ZodObjec
330
330
  mode: z.ZodDefault<z.ZodEnum<{
331
331
  manual: "manual";
332
332
  "auto-approve": "auto-approve";
333
- "auto-deny": "auto-deny";
334
333
  }>>;
335
334
  timeout: z.ZodOptional<z.ZodNumber>;
336
335
  allowedToolsStorage: z.ZodDefault<z.ZodEnum<{
@@ -339,7 +338,6 @@ export declare function createAgentConfigSchema(): z.core.$ZodBranded<z.ZodObjec
339
338
  }>>;
340
339
  toolPolicies: z.ZodDefault<z.ZodObject<{
341
340
  alwaysAllow: z.ZodDefault<z.ZodArray<z.ZodString>>;
342
- alwaysDeny: z.ZodDefault<z.ZodArray<z.ZodString>>;
343
341
  }, z.core.$strict>>;
344
342
  }, z.core.$strict>>;
345
343
  elicitation: z.ZodPrefault<z.ZodObject<{
@@ -365,39 +363,18 @@ export declare function createAgentConfigSchema(): z.core.$ZodBranded<z.ZodObjec
365
363
  category: z.ZodDefault<z.ZodOptional<z.ZodString>>;
366
364
  priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
367
365
  showInStarters: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
368
- 'disable-model-invocation': z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
369
366
  'user-invocable': z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
370
- 'allowed-tools': z.ZodOptional<z.ZodArray<z.ZodString>>;
371
- model: z.ZodOptional<z.ZodString>;
372
- context: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
373
- inline: "inline";
374
- fork: "fork";
375
- }>>>;
376
- agent: z.ZodOptional<z.ZodString>;
377
367
  }, z.core.$strict>, z.ZodObject<{
378
368
  type: z.ZodLiteral<"file">;
379
369
  file: z.ZodString;
380
370
  showInStarters: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
381
- 'disable-model-invocation': z.ZodOptional<z.ZodBoolean>;
382
371
  'user-invocable': z.ZodOptional<z.ZodBoolean>;
383
- 'allowed-tools': z.ZodOptional<z.ZodArray<z.ZodString>>;
384
- model: z.ZodOptional<z.ZodString>;
385
- context: z.ZodOptional<z.ZodEnum<{
386
- inline: "inline";
387
- fork: "fork";
388
- }>>;
389
- agent: z.ZodOptional<z.ZodString>;
390
372
  namespace: z.ZodOptional<z.ZodString>;
391
373
  }, z.core.$strict>], "type">>, z.ZodTransform<({
392
374
  type: "file";
393
375
  file: string;
394
376
  showInStarters: boolean;
395
- 'disable-model-invocation'?: boolean | undefined;
396
377
  'user-invocable'?: boolean | undefined;
397
- 'allowed-tools'?: string[] | undefined;
398
- model?: string | undefined;
399
- context?: "inline" | "fork" | undefined;
400
- agent?: string | undefined;
401
378
  namespace?: string | undefined;
402
379
  } | {
403
380
  title: string;
@@ -408,12 +385,7 @@ export declare function createAgentConfigSchema(): z.core.$ZodBranded<z.ZodObjec
408
385
  category: string;
409
386
  priority: number;
410
387
  showInStarters: boolean;
411
- 'disable-model-invocation': boolean;
412
388
  'user-invocable': boolean;
413
- context: "inline" | "fork";
414
- 'allowed-tools'?: string[] | undefined;
415
- model?: string | undefined;
416
- agent?: string | undefined;
417
389
  })[], ({
418
390
  type: "inline";
419
391
  id: string;
@@ -422,23 +394,13 @@ export declare function createAgentConfigSchema(): z.core.$ZodBranded<z.ZodObjec
422
394
  category: string;
423
395
  priority: number;
424
396
  showInStarters: boolean;
425
- 'disable-model-invocation': boolean;
426
397
  'user-invocable': boolean;
427
- context: "inline" | "fork";
428
398
  title?: string | undefined;
429
- 'allowed-tools'?: string[] | undefined;
430
- model?: string | undefined;
431
- agent?: string | undefined;
432
399
  } | {
433
400
  type: "file";
434
401
  file: string;
435
402
  showInStarters: boolean;
436
- 'disable-model-invocation'?: boolean | undefined;
437
403
  'user-invocable'?: boolean | undefined;
438
- 'allowed-tools'?: string[] | undefined;
439
- model?: string | undefined;
440
- context?: "inline" | "fork" | undefined;
441
- agent?: string | undefined;
442
404
  namespace?: string | undefined;
443
405
  })[]>>>>;
444
406
  hooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -577,8 +539,8 @@ export declare const AgentConfigSchema: z.core.$ZodBranded<z.ZodObject<{
577
539
  type: z.ZodLiteral<"apiKey">;
578
540
  name: z.ZodString;
579
541
  in: z.ZodEnum<{
580
- query: "query";
581
542
  header: "header";
543
+ query: "query";
582
544
  cookie: "cookie";
583
545
  }>;
584
546
  description: z.ZodOptional<z.ZodString>;
@@ -767,7 +729,6 @@ export declare const AgentConfigSchema: z.core.$ZodBranded<z.ZodObject<{
767
729
  mode: z.ZodDefault<z.ZodEnum<{
768
730
  manual: "manual";
769
731
  "auto-approve": "auto-approve";
770
- "auto-deny": "auto-deny";
771
732
  }>>;
772
733
  timeout: z.ZodOptional<z.ZodNumber>;
773
734
  allowedToolsStorage: z.ZodDefault<z.ZodEnum<{
@@ -776,7 +737,6 @@ export declare const AgentConfigSchema: z.core.$ZodBranded<z.ZodObject<{
776
737
  }>>;
777
738
  toolPolicies: z.ZodDefault<z.ZodObject<{
778
739
  alwaysAllow: z.ZodDefault<z.ZodArray<z.ZodString>>;
779
- alwaysDeny: z.ZodDefault<z.ZodArray<z.ZodString>>;
780
740
  }, z.core.$strict>>;
781
741
  }, z.core.$strict>>;
782
742
  elicitation: z.ZodPrefault<z.ZodObject<{
@@ -802,39 +762,18 @@ export declare const AgentConfigSchema: z.core.$ZodBranded<z.ZodObject<{
802
762
  category: z.ZodDefault<z.ZodOptional<z.ZodString>>;
803
763
  priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
804
764
  showInStarters: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
805
- 'disable-model-invocation': z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
806
765
  'user-invocable': z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
807
- 'allowed-tools': z.ZodOptional<z.ZodArray<z.ZodString>>;
808
- model: z.ZodOptional<z.ZodString>;
809
- context: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
810
- inline: "inline";
811
- fork: "fork";
812
- }>>>;
813
- agent: z.ZodOptional<z.ZodString>;
814
766
  }, z.core.$strict>, z.ZodObject<{
815
767
  type: z.ZodLiteral<"file">;
816
768
  file: z.ZodString;
817
769
  showInStarters: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
818
- 'disable-model-invocation': z.ZodOptional<z.ZodBoolean>;
819
770
  'user-invocable': z.ZodOptional<z.ZodBoolean>;
820
- 'allowed-tools': z.ZodOptional<z.ZodArray<z.ZodString>>;
821
- model: z.ZodOptional<z.ZodString>;
822
- context: z.ZodOptional<z.ZodEnum<{
823
- inline: "inline";
824
- fork: "fork";
825
- }>>;
826
- agent: z.ZodOptional<z.ZodString>;
827
771
  namespace: z.ZodOptional<z.ZodString>;
828
772
  }, z.core.$strict>], "type">>, z.ZodTransform<({
829
773
  type: "file";
830
774
  file: string;
831
775
  showInStarters: boolean;
832
- 'disable-model-invocation'?: boolean | undefined;
833
776
  'user-invocable'?: boolean | undefined;
834
- 'allowed-tools'?: string[] | undefined;
835
- model?: string | undefined;
836
- context?: "inline" | "fork" | undefined;
837
- agent?: string | undefined;
838
777
  namespace?: string | undefined;
839
778
  } | {
840
779
  title: string;
@@ -845,12 +784,7 @@ export declare const AgentConfigSchema: z.core.$ZodBranded<z.ZodObject<{
845
784
  category: string;
846
785
  priority: number;
847
786
  showInStarters: boolean;
848
- 'disable-model-invocation': boolean;
849
787
  'user-invocable': boolean;
850
- context: "inline" | "fork";
851
- 'allowed-tools'?: string[] | undefined;
852
- model?: string | undefined;
853
- agent?: string | undefined;
854
788
  })[], ({
855
789
  type: "inline";
856
790
  id: string;
@@ -859,23 +793,13 @@ export declare const AgentConfigSchema: z.core.$ZodBranded<z.ZodObject<{
859
793
  category: string;
860
794
  priority: number;
861
795
  showInStarters: boolean;
862
- 'disable-model-invocation': boolean;
863
796
  'user-invocable': boolean;
864
- context: "inline" | "fork";
865
797
  title?: string | undefined;
866
- 'allowed-tools'?: string[] | undefined;
867
- model?: string | undefined;
868
- agent?: string | undefined;
869
798
  } | {
870
799
  type: "file";
871
800
  file: string;
872
801
  showInStarters: boolean;
873
- 'disable-model-invocation'?: boolean | undefined;
874
802
  'user-invocable'?: boolean | undefined;
875
- 'allowed-tools'?: string[] | undefined;
876
- model?: string | undefined;
877
- context?: "inline" | "fork" | undefined;
878
- agent?: string | undefined;
879
803
  namespace?: string | undefined;
880
804
  })[]>>>>;
881
805
  hooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAoHtC;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"}
@@ -11,7 +11,7 @@ import {
11
11
  SystemPromptConfigSchema,
12
12
  PermissionsConfigSchema,
13
13
  ResourcesConfigSchema
14
- } from "@dexto/core";
14
+ } from "@dexto/core/config";
15
15
  import { StorageSchema } from "@dexto/storage/schemas";
16
16
  import { z } from "zod";
17
17
  import { HooksConfigSchema } from "./hooks.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexto/agent-config",
3
- "version": "1.7.2",
3
+ "version": "1.8.1",
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.7.2",
20
- "@dexto/storage": "1.7.2"
19
+ "@dexto/core": "1.8.1",
20
+ "@dexto/storage": "1.8.1"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^22.13.5",