@dexto/core 1.2.5 → 1.2.6
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/agent/schemas.cjs +23 -19
- package/dist/agent/schemas.d.ts +111 -107
- package/dist/agent/schemas.d.ts.map +1 -1
- package/dist/agent/schemas.js +7 -3
- package/dist/memory/index.cjs +2 -0
- package/dist/memory/index.d.ts +1 -1
- package/dist/memory/index.d.ts.map +1 -1
- package/dist/memory/index.js +3 -1
- package/dist/memory/schemas.cjs +10 -0
- package/dist/memory/schemas.d.ts +33 -4
- package/dist/memory/schemas.d.ts.map +1 -1
- package/dist/memory/schemas.js +9 -0
- package/dist/prompts/index.cjs +6 -8
- package/dist/prompts/index.d.ts +2 -4
- package/dist/prompts/index.d.ts.map +1 -1
- package/dist/prompts/index.js +4 -6
- package/dist/prompts/prompt-manager.cjs +2 -4
- package/dist/prompts/prompt-manager.d.ts.map +1 -1
- package/dist/prompts/prompt-manager.js +2 -4
- package/dist/prompts/providers/config-prompt-provider.cjs +331 -0
- package/dist/prompts/providers/config-prompt-provider.d.ts +34 -0
- package/dist/prompts/providers/config-prompt-provider.d.ts.map +1 -0
- package/dist/prompts/providers/config-prompt-provider.js +308 -0
- package/dist/prompts/schemas.cjs +42 -23
- package/dist/prompts/schemas.d.ts +121 -12
- package/dist/prompts/schemas.d.ts.map +1 -1
- package/dist/prompts/schemas.js +39 -22
- package/dist/prompts/types.d.ts +1 -1
- package/dist/prompts/types.d.ts.map +1 -1
- package/dist/systemPrompt/in-built-prompts.cjs +0 -5
- package/dist/systemPrompt/in-built-prompts.d.ts +1 -2
- package/dist/systemPrompt/in-built-prompts.d.ts.map +1 -1
- package/dist/systemPrompt/in-built-prompts.js +0 -4
- package/dist/systemPrompt/manager.cjs +24 -19
- package/dist/systemPrompt/manager.d.ts +2 -2
- package/dist/systemPrompt/manager.d.ts.map +1 -1
- package/dist/systemPrompt/manager.js +24 -19
- package/dist/systemPrompt/registry.cjs +1 -2
- package/dist/systemPrompt/registry.d.ts +1 -1
- package/dist/systemPrompt/registry.d.ts.map +1 -1
- package/dist/systemPrompt/registry.js +1 -2
- package/dist/systemPrompt/schemas.cjs +3 -17
- package/dist/systemPrompt/schemas.d.ts +13 -189
- package/dist/systemPrompt/schemas.d.ts.map +1 -1
- package/dist/systemPrompt/schemas.js +3 -17
- package/dist/utils/service-initializer.cjs +1 -0
- package/dist/utils/service-initializer.d.ts.map +1 -1
- package/dist/utils/service-initializer.js +1 -0
- package/package.json +1 -1
- package/dist/prompts/providers/file-prompt-provider.cjs +0 -401
- package/dist/prompts/providers/file-prompt-provider.d.ts +0 -49
- package/dist/prompts/providers/file-prompt-provider.d.ts.map +0 -1
- package/dist/prompts/providers/file-prompt-provider.js +0 -378
- package/dist/prompts/providers/starter-prompt-provider.cjs +0 -172
- package/dist/prompts/providers/starter-prompt-provider.d.ts +0 -47
- package/dist/prompts/providers/starter-prompt-provider.d.ts.map +0 -1
- package/dist/prompts/providers/starter-prompt-provider.js +0 -149
package/dist/agent/schemas.cjs
CHANGED
|
@@ -26,15 +26,16 @@ module.exports = __toCommonJS(schemas_exports);
|
|
|
26
26
|
var import_schemas = require("../llm/schemas.cjs");
|
|
27
27
|
var import_logger = require("../logger/index.cjs");
|
|
28
28
|
var import_schemas2 = require("../mcp/schemas.cjs");
|
|
29
|
-
var import_schemas3 = require("../
|
|
30
|
-
var import_schemas4 = require("../
|
|
31
|
-
var import_schemas5 = require("../
|
|
32
|
-
var import_schemas6 = require("../
|
|
29
|
+
var import_schemas3 = require("../memory/schemas.cjs");
|
|
30
|
+
var import_schemas4 = require("../session/schemas.cjs");
|
|
31
|
+
var import_schemas5 = require("../storage/schemas.cjs");
|
|
32
|
+
var import_schemas6 = require("../systemPrompt/schemas.cjs");
|
|
33
|
+
var import_schemas7 = require("../tools/schemas.cjs");
|
|
33
34
|
var import_zod = require("zod");
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
35
|
+
var import_schemas8 = require("../resources/schemas.cjs");
|
|
36
|
+
var import_schemas9 = require("../prompts/schemas.cjs");
|
|
37
|
+
var import_schemas10 = require("../plugins/schemas.cjs");
|
|
38
|
+
var import_schemas11 = require("../telemetry/schemas.cjs");
|
|
38
39
|
const ApiKeySecurityScheme = import_zod.z.object({
|
|
39
40
|
type: import_zod.z.literal("apiKey").describe("Security scheme type"),
|
|
40
41
|
name: import_zod.z.string().describe("Name of the header/query/cookie parameter"),
|
|
@@ -170,7 +171,7 @@ const AgentConfigSchema = import_zod.z.object({
|
|
|
170
171
|
// ========================================
|
|
171
172
|
// REQUIRED FIELDS (user must provide or schema validation fails)
|
|
172
173
|
// ========================================
|
|
173
|
-
systemPrompt:
|
|
174
|
+
systemPrompt: import_schemas6.SystemPromptConfigSchema.describe(
|
|
174
175
|
"System prompt: string shorthand or structured config"
|
|
175
176
|
),
|
|
176
177
|
llm: import_schemas.LLMConfigSchema.describe("Core LLM configuration for the agent"),
|
|
@@ -179,9 +180,12 @@ const AgentConfigSchema = import_zod.z.object({
|
|
|
179
180
|
// ========================================
|
|
180
181
|
agentCard: AgentCardSchema.describe("Configuration for the agent card").optional(),
|
|
181
182
|
greeting: import_zod.z.string().max(500).describe("Default greeting text to show when a chat starts (for UI consumption)").optional(),
|
|
182
|
-
telemetry:
|
|
183
|
+
telemetry: import_schemas11.OtelConfigurationSchema.describe(
|
|
183
184
|
"OpenTelemetry configuration for distributed tracing and observability"
|
|
184
185
|
).optional(),
|
|
186
|
+
memories: import_schemas3.MemoriesConfigSchema.describe(
|
|
187
|
+
"Memory configuration for system prompt inclusion (optional feature)"
|
|
188
|
+
).optional(),
|
|
185
189
|
// ========================================
|
|
186
190
|
// FIELDS WITH DEFAULTS (always present after parsing)
|
|
187
191
|
// ========================================
|
|
@@ -191,7 +195,7 @@ const AgentConfigSchema = import_zod.z.object({
|
|
|
191
195
|
mcpServers: import_schemas2.ServerConfigsSchema.describe(
|
|
192
196
|
"Configurations for MCP (Model Context Protocol) servers used by the agent"
|
|
193
197
|
).default({}),
|
|
194
|
-
internalTools:
|
|
198
|
+
internalTools: import_schemas7.InternalToolsSchema.describe(
|
|
195
199
|
"Internal tools configuration (read-file, write-file, bash-exec, etc.)"
|
|
196
200
|
).default([]),
|
|
197
201
|
logger: import_logger.LoggerConfigSchema.describe(
|
|
@@ -200,27 +204,27 @@ const AgentConfigSchema = import_zod.z.object({
|
|
|
200
204
|
level: "info",
|
|
201
205
|
transports: [{ type: "console", colorize: true }]
|
|
202
206
|
}),
|
|
203
|
-
storage:
|
|
207
|
+
storage: import_schemas5.StorageSchema.describe(
|
|
204
208
|
"Storage configuration for cache, database, and blob storage - defaults to in-memory, CLI enrichment provides filesystem paths"
|
|
205
209
|
).default({
|
|
206
210
|
cache: { type: "in-memory" },
|
|
207
211
|
database: { type: "in-memory" },
|
|
208
212
|
blob: { type: "in-memory" }
|
|
209
213
|
}),
|
|
210
|
-
sessions:
|
|
211
|
-
toolConfirmation:
|
|
214
|
+
sessions: import_schemas4.SessionConfigSchema.describe("Session management configuration").default({}),
|
|
215
|
+
toolConfirmation: import_schemas7.ToolConfirmationConfigSchema.describe(
|
|
212
216
|
"Tool confirmation and approval configuration"
|
|
213
217
|
).default({}),
|
|
214
|
-
elicitation:
|
|
218
|
+
elicitation: import_schemas7.ElicitationConfigSchema.default({}).describe(
|
|
215
219
|
"Elicitation configuration for user input requests (ask_user tool and MCP server elicitations). Independent from toolConfirmation mode."
|
|
216
220
|
),
|
|
217
|
-
internalResources:
|
|
221
|
+
internalResources: import_schemas8.InternalResourcesSchema.describe(
|
|
218
222
|
"Configuration for internal resources (filesystem, etc.)"
|
|
219
223
|
).default([]),
|
|
220
|
-
|
|
221
|
-
"Agent-
|
|
224
|
+
prompts: import_schemas9.PromptsSchema.describe(
|
|
225
|
+
"Agent prompts configuration - sample prompts which can be defined inline or referenced from file"
|
|
222
226
|
).default([]),
|
|
223
|
-
plugins:
|
|
227
|
+
plugins: import_schemas10.PluginsConfigSchema.describe(
|
|
224
228
|
"Plugin system configuration for built-in and custom plugins"
|
|
225
229
|
).default({})
|
|
226
230
|
}).strict().describe("Main configuration for an agent, including its LLM and server connections").brand();
|
package/dist/agent/schemas.d.ts
CHANGED
|
@@ -1131,18 +1131,18 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
1131
1131
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1132
1132
|
} & {
|
|
1133
1133
|
type: z.ZodLiteral<"dynamic">;
|
|
1134
|
-
source: z.ZodEnum<["dateTime", "
|
|
1134
|
+
source: z.ZodEnum<["dateTime", "resources"]>;
|
|
1135
1135
|
}, "strict", z.ZodTypeAny, {
|
|
1136
1136
|
type: "dynamic";
|
|
1137
1137
|
enabled: boolean;
|
|
1138
1138
|
id: string;
|
|
1139
|
+
source: "resources" | "dateTime";
|
|
1139
1140
|
priority: number;
|
|
1140
|
-
source: "resources" | "dateTime" | "memorySummary";
|
|
1141
1141
|
}, {
|
|
1142
1142
|
type: "dynamic";
|
|
1143
1143
|
id: string;
|
|
1144
|
+
source: "resources" | "dateTime";
|
|
1144
1145
|
priority: number;
|
|
1145
|
-
source: "resources" | "dateTime" | "memorySummary";
|
|
1146
1146
|
enabled?: boolean | undefined;
|
|
1147
1147
|
}>, z.ZodObject<{
|
|
1148
1148
|
id: z.ZodString;
|
|
@@ -1196,50 +1196,6 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
1196
1196
|
includeMetadata?: boolean | undefined;
|
|
1197
1197
|
} | undefined;
|
|
1198
1198
|
enabled?: boolean | undefined;
|
|
1199
|
-
}>, z.ZodObject<{
|
|
1200
|
-
id: z.ZodString;
|
|
1201
|
-
priority: z.ZodNumber;
|
|
1202
|
-
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1203
|
-
} & {
|
|
1204
|
-
type: z.ZodLiteral<"memory">;
|
|
1205
|
-
options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1206
|
-
includeTimestamps: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1207
|
-
includeTags: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1208
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
1209
|
-
pinnedOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1210
|
-
}, "strict", z.ZodTypeAny, {
|
|
1211
|
-
includeTimestamps: boolean;
|
|
1212
|
-
includeTags: boolean;
|
|
1213
|
-
pinnedOnly: boolean;
|
|
1214
|
-
limit?: number | undefined;
|
|
1215
|
-
}, {
|
|
1216
|
-
includeTimestamps?: boolean | undefined;
|
|
1217
|
-
includeTags?: boolean | undefined;
|
|
1218
|
-
limit?: number | undefined;
|
|
1219
|
-
pinnedOnly?: boolean | undefined;
|
|
1220
|
-
}>>>;
|
|
1221
|
-
}, "strict", z.ZodTypeAny, {
|
|
1222
|
-
type: "memory";
|
|
1223
|
-
options: {
|
|
1224
|
-
includeTimestamps: boolean;
|
|
1225
|
-
includeTags: boolean;
|
|
1226
|
-
pinnedOnly: boolean;
|
|
1227
|
-
limit?: number | undefined;
|
|
1228
|
-
};
|
|
1229
|
-
enabled: boolean;
|
|
1230
|
-
id: string;
|
|
1231
|
-
priority: number;
|
|
1232
|
-
}, {
|
|
1233
|
-
type: "memory";
|
|
1234
|
-
id: string;
|
|
1235
|
-
priority: number;
|
|
1236
|
-
options?: {
|
|
1237
|
-
includeTimestamps?: boolean | undefined;
|
|
1238
|
-
includeTags?: boolean | undefined;
|
|
1239
|
-
limit?: number | undefined;
|
|
1240
|
-
pinnedOnly?: boolean | undefined;
|
|
1241
|
-
} | undefined;
|
|
1242
|
-
enabled?: boolean | undefined;
|
|
1243
1199
|
}>]>, "many">>;
|
|
1244
1200
|
}, "strict", z.ZodTypeAny, {
|
|
1245
1201
|
contributors: ({
|
|
@@ -1252,8 +1208,8 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
1252
1208
|
type: "dynamic";
|
|
1253
1209
|
enabled: boolean;
|
|
1254
1210
|
id: string;
|
|
1211
|
+
source: "resources" | "dateTime";
|
|
1255
1212
|
priority: number;
|
|
1256
|
-
source: "resources" | "dateTime" | "memorySummary";
|
|
1257
1213
|
} | {
|
|
1258
1214
|
type: "file";
|
|
1259
1215
|
options: {
|
|
@@ -1267,17 +1223,6 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
1267
1223
|
id: string;
|
|
1268
1224
|
priority: number;
|
|
1269
1225
|
files: string[];
|
|
1270
|
-
} | {
|
|
1271
|
-
type: "memory";
|
|
1272
|
-
options: {
|
|
1273
|
-
includeTimestamps: boolean;
|
|
1274
|
-
includeTags: boolean;
|
|
1275
|
-
pinnedOnly: boolean;
|
|
1276
|
-
limit?: number | undefined;
|
|
1277
|
-
};
|
|
1278
|
-
enabled: boolean;
|
|
1279
|
-
id: string;
|
|
1280
|
-
priority: number;
|
|
1281
1226
|
})[];
|
|
1282
1227
|
}, {
|
|
1283
1228
|
contributors?: ({
|
|
@@ -1289,8 +1234,8 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
1289
1234
|
} | {
|
|
1290
1235
|
type: "dynamic";
|
|
1291
1236
|
id: string;
|
|
1237
|
+
source: "resources" | "dateTime";
|
|
1292
1238
|
priority: number;
|
|
1293
|
-
source: "resources" | "dateTime" | "memorySummary";
|
|
1294
1239
|
enabled?: boolean | undefined;
|
|
1295
1240
|
} | {
|
|
1296
1241
|
type: "file";
|
|
@@ -1305,17 +1250,6 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
1305
1250
|
includeMetadata?: boolean | undefined;
|
|
1306
1251
|
} | undefined;
|
|
1307
1252
|
enabled?: boolean | undefined;
|
|
1308
|
-
} | {
|
|
1309
|
-
type: "memory";
|
|
1310
|
-
id: string;
|
|
1311
|
-
priority: number;
|
|
1312
|
-
options?: {
|
|
1313
|
-
includeTimestamps?: boolean | undefined;
|
|
1314
|
-
includeTags?: boolean | undefined;
|
|
1315
|
-
limit?: number | undefined;
|
|
1316
|
-
pinnedOnly?: boolean | undefined;
|
|
1317
|
-
} | undefined;
|
|
1318
|
-
enabled?: boolean | undefined;
|
|
1319
1253
|
})[] | undefined;
|
|
1320
1254
|
}>]>, "ValidatedSystemPromptConfig">;
|
|
1321
1255
|
llm: z.ZodBranded<z.ZodEffects<z.ZodObject<{
|
|
@@ -2282,6 +2216,28 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
2282
2216
|
type: "console";
|
|
2283
2217
|
} | undefined;
|
|
2284
2218
|
}>>;
|
|
2219
|
+
memories: z.ZodOptional<z.ZodObject<{
|
|
2220
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2221
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
2222
|
+
includeTimestamps: z.ZodDefault<z.ZodBoolean>;
|
|
2223
|
+
includeTags: z.ZodDefault<z.ZodBoolean>;
|
|
2224
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2225
|
+
pinnedOnly: z.ZodDefault<z.ZodBoolean>;
|
|
2226
|
+
}, "strict", z.ZodTypeAny, {
|
|
2227
|
+
enabled: boolean;
|
|
2228
|
+
priority: number;
|
|
2229
|
+
includeTimestamps: boolean;
|
|
2230
|
+
includeTags: boolean;
|
|
2231
|
+
pinnedOnly: boolean;
|
|
2232
|
+
limit?: number | undefined;
|
|
2233
|
+
}, {
|
|
2234
|
+
enabled?: boolean | undefined;
|
|
2235
|
+
limit?: number | undefined;
|
|
2236
|
+
priority?: number | undefined;
|
|
2237
|
+
includeTimestamps?: boolean | undefined;
|
|
2238
|
+
includeTags?: boolean | undefined;
|
|
2239
|
+
pinnedOnly?: boolean | undefined;
|
|
2240
|
+
}>>;
|
|
2285
2241
|
agentId: z.ZodDefault<z.ZodString>;
|
|
2286
2242
|
mcpServers: z.ZodDefault<z.ZodBranded<z.ZodRecord<z.ZodString, z.ZodBranded<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2287
2243
|
type: z.ZodLiteral<"stdio">;
|
|
@@ -2993,56 +2949,98 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
2993
2949
|
type: "blob";
|
|
2994
2950
|
})[] | undefined;
|
|
2995
2951
|
} | undefined>>;
|
|
2996
|
-
|
|
2952
|
+
prompts: z.ZodDefault<z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2953
|
+
type: z.ZodLiteral<"inline">;
|
|
2997
2954
|
id: z.ZodString;
|
|
2998
2955
|
title: z.ZodOptional<z.ZodString>;
|
|
2999
2956
|
description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
3000
2957
|
prompt: z.ZodString;
|
|
3001
2958
|
category: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
3002
2959
|
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2960
|
+
showInStarters: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3003
2961
|
}, "strict", z.ZodTypeAny, {
|
|
3004
2962
|
prompt: string;
|
|
3005
2963
|
description: string;
|
|
2964
|
+
type: "inline";
|
|
3006
2965
|
id: string;
|
|
3007
2966
|
priority: number;
|
|
3008
2967
|
category: string;
|
|
2968
|
+
showInStarters: boolean;
|
|
3009
2969
|
title?: string | undefined;
|
|
3010
2970
|
}, {
|
|
3011
2971
|
prompt: string;
|
|
2972
|
+
type: "inline";
|
|
3012
2973
|
id: string;
|
|
3013
2974
|
description?: string | undefined;
|
|
3014
2975
|
title?: string | undefined;
|
|
3015
2976
|
priority?: number | undefined;
|
|
3016
2977
|
category?: string | undefined;
|
|
3017
|
-
|
|
2978
|
+
showInStarters?: boolean | undefined;
|
|
2979
|
+
}>, z.ZodObject<{
|
|
2980
|
+
type: z.ZodLiteral<"file">;
|
|
2981
|
+
file: z.ZodString;
|
|
2982
|
+
showInStarters: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2983
|
+
}, "strict", z.ZodTypeAny, {
|
|
2984
|
+
file: string;
|
|
2985
|
+
type: "file";
|
|
2986
|
+
showInStarters: boolean;
|
|
2987
|
+
}, {
|
|
2988
|
+
file: string;
|
|
2989
|
+
type: "file";
|
|
2990
|
+
showInStarters?: boolean | undefined;
|
|
2991
|
+
}>]>, "many">, ({
|
|
3018
2992
|
prompt: string;
|
|
3019
2993
|
description: string;
|
|
2994
|
+
type: "inline";
|
|
3020
2995
|
id: string;
|
|
3021
2996
|
priority: number;
|
|
3022
2997
|
category: string;
|
|
2998
|
+
showInStarters: boolean;
|
|
3023
2999
|
title?: string | undefined;
|
|
3024
|
-
}
|
|
3000
|
+
} | {
|
|
3001
|
+
file: string;
|
|
3002
|
+
type: "file";
|
|
3003
|
+
showInStarters: boolean;
|
|
3004
|
+
})[], ({
|
|
3025
3005
|
prompt: string;
|
|
3006
|
+
type: "inline";
|
|
3026
3007
|
id: string;
|
|
3027
3008
|
description?: string | undefined;
|
|
3028
3009
|
title?: string | undefined;
|
|
3029
3010
|
priority?: number | undefined;
|
|
3030
3011
|
category?: string | undefined;
|
|
3031
|
-
|
|
3012
|
+
showInStarters?: boolean | undefined;
|
|
3013
|
+
} | {
|
|
3014
|
+
file: string;
|
|
3015
|
+
type: "file";
|
|
3016
|
+
showInStarters?: boolean | undefined;
|
|
3017
|
+
})[]>, ({
|
|
3018
|
+
file: string;
|
|
3019
|
+
type: "file";
|
|
3020
|
+
showInStarters: boolean;
|
|
3021
|
+
} | {
|
|
3032
3022
|
title: string;
|
|
3033
3023
|
prompt: string;
|
|
3034
3024
|
description: string;
|
|
3025
|
+
type: "inline";
|
|
3035
3026
|
id: string;
|
|
3036
3027
|
priority: number;
|
|
3037
3028
|
category: string;
|
|
3038
|
-
|
|
3029
|
+
showInStarters: boolean;
|
|
3030
|
+
})[], ({
|
|
3039
3031
|
prompt: string;
|
|
3032
|
+
type: "inline";
|
|
3040
3033
|
id: string;
|
|
3041
3034
|
description?: string | undefined;
|
|
3042
3035
|
title?: string | undefined;
|
|
3043
3036
|
priority?: number | undefined;
|
|
3044
3037
|
category?: string | undefined;
|
|
3045
|
-
|
|
3038
|
+
showInStarters?: boolean | undefined;
|
|
3039
|
+
} | {
|
|
3040
|
+
file: string;
|
|
3041
|
+
type: "file";
|
|
3042
|
+
showInStarters?: boolean | undefined;
|
|
3043
|
+
})[]>>>;
|
|
3046
3044
|
plugins: z.ZodDefault<z.ZodDefault<z.ZodObject<{
|
|
3047
3045
|
contentPolicy: z.ZodOptional<z.ZodObject<{
|
|
3048
3046
|
priority: z.ZodNumber;
|
|
@@ -3224,15 +3222,21 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
3224
3222
|
timeout: number;
|
|
3225
3223
|
enabled: boolean;
|
|
3226
3224
|
};
|
|
3227
|
-
|
|
3228
|
-
|
|
3225
|
+
prompts: ({
|
|
3226
|
+
file: string;
|
|
3227
|
+
type: "file";
|
|
3228
|
+
showInStarters: boolean;
|
|
3229
|
+
} | {
|
|
3229
3230
|
title: string;
|
|
3230
3231
|
prompt: string;
|
|
3231
3232
|
description: string;
|
|
3233
|
+
type: "inline";
|
|
3232
3234
|
id: string;
|
|
3233
3235
|
priority: number;
|
|
3234
3236
|
category: string;
|
|
3235
|
-
|
|
3237
|
+
showInStarters: boolean;
|
|
3238
|
+
})[];
|
|
3239
|
+
agentId: string;
|
|
3236
3240
|
systemPrompt: ({
|
|
3237
3241
|
contributors: ({
|
|
3238
3242
|
type: "static";
|
|
@@ -3244,8 +3248,8 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
3244
3248
|
type: "dynamic";
|
|
3245
3249
|
enabled: boolean;
|
|
3246
3250
|
id: string;
|
|
3251
|
+
source: "resources" | "dateTime";
|
|
3247
3252
|
priority: number;
|
|
3248
|
-
source: "resources" | "dateTime" | "memorySummary";
|
|
3249
3253
|
} | {
|
|
3250
3254
|
type: "file";
|
|
3251
3255
|
options: {
|
|
@@ -3259,17 +3263,6 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
3259
3263
|
id: string;
|
|
3260
3264
|
priority: number;
|
|
3261
3265
|
files: string[];
|
|
3262
|
-
} | {
|
|
3263
|
-
type: "memory";
|
|
3264
|
-
options: {
|
|
3265
|
-
includeTimestamps: boolean;
|
|
3266
|
-
includeTags: boolean;
|
|
3267
|
-
pinnedOnly: boolean;
|
|
3268
|
-
limit?: number | undefined;
|
|
3269
|
-
};
|
|
3270
|
-
enabled: boolean;
|
|
3271
|
-
id: string;
|
|
3272
|
-
priority: number;
|
|
3273
3266
|
})[];
|
|
3274
3267
|
} | {
|
|
3275
3268
|
contributors: {
|
|
@@ -3523,6 +3516,14 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
3523
3516
|
}[] | undefined;
|
|
3524
3517
|
} | undefined;
|
|
3525
3518
|
greeting?: string | undefined;
|
|
3519
|
+
memories?: {
|
|
3520
|
+
enabled: boolean;
|
|
3521
|
+
priority: number;
|
|
3522
|
+
includeTimestamps: boolean;
|
|
3523
|
+
includeTags: boolean;
|
|
3524
|
+
pinnedOnly: boolean;
|
|
3525
|
+
limit?: number | undefined;
|
|
3526
|
+
} | undefined;
|
|
3526
3527
|
}, {
|
|
3527
3528
|
llm: {
|
|
3528
3529
|
apiKey: string;
|
|
@@ -3546,8 +3547,8 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
3546
3547
|
} | {
|
|
3547
3548
|
type: "dynamic";
|
|
3548
3549
|
id: string;
|
|
3550
|
+
source: "resources" | "dateTime";
|
|
3549
3551
|
priority: number;
|
|
3550
|
-
source: "resources" | "dateTime" | "memorySummary";
|
|
3551
3552
|
enabled?: boolean | undefined;
|
|
3552
3553
|
} | {
|
|
3553
3554
|
type: "file";
|
|
@@ -3562,17 +3563,6 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
3562
3563
|
includeMetadata?: boolean | undefined;
|
|
3563
3564
|
} | undefined;
|
|
3564
3565
|
enabled?: boolean | undefined;
|
|
3565
|
-
} | {
|
|
3566
|
-
type: "memory";
|
|
3567
|
-
id: string;
|
|
3568
|
-
priority: number;
|
|
3569
|
-
options?: {
|
|
3570
|
-
includeTimestamps?: boolean | undefined;
|
|
3571
|
-
includeTags?: boolean | undefined;
|
|
3572
|
-
limit?: number | undefined;
|
|
3573
|
-
pinnedOnly?: boolean | undefined;
|
|
3574
|
-
} | undefined;
|
|
3575
|
-
enabled?: boolean | undefined;
|
|
3576
3566
|
})[] | undefined;
|
|
3577
3567
|
};
|
|
3578
3568
|
storage?: {
|
|
@@ -3668,15 +3658,21 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
3668
3658
|
timeout?: number | undefined;
|
|
3669
3659
|
enabled?: boolean | undefined;
|
|
3670
3660
|
} | undefined;
|
|
3671
|
-
|
|
3672
|
-
starterPrompts?: {
|
|
3661
|
+
prompts?: ({
|
|
3673
3662
|
prompt: string;
|
|
3663
|
+
type: "inline";
|
|
3674
3664
|
id: string;
|
|
3675
3665
|
description?: string | undefined;
|
|
3676
3666
|
title?: string | undefined;
|
|
3677
3667
|
priority?: number | undefined;
|
|
3678
3668
|
category?: string | undefined;
|
|
3679
|
-
|
|
3669
|
+
showInStarters?: boolean | undefined;
|
|
3670
|
+
} | {
|
|
3671
|
+
file: string;
|
|
3672
|
+
type: "file";
|
|
3673
|
+
showInStarters?: boolean | undefined;
|
|
3674
|
+
})[] | undefined;
|
|
3675
|
+
agentId?: string | undefined;
|
|
3680
3676
|
agentCard?: {
|
|
3681
3677
|
description: string;
|
|
3682
3678
|
url: string;
|
|
@@ -3840,6 +3836,14 @@ export declare const AgentConfigSchema: z.ZodBranded<z.ZodObject<{
|
|
|
3840
3836
|
}[] | undefined;
|
|
3841
3837
|
} | undefined;
|
|
3842
3838
|
greeting?: string | undefined;
|
|
3839
|
+
memories?: {
|
|
3840
|
+
enabled?: boolean | undefined;
|
|
3841
|
+
limit?: number | undefined;
|
|
3842
|
+
priority?: number | undefined;
|
|
3843
|
+
includeTimestamps?: boolean | undefined;
|
|
3844
|
+
includeTags?: boolean | undefined;
|
|
3845
|
+
pinnedOnly?: boolean | undefined;
|
|
3846
|
+
} | undefined;
|
|
3843
3847
|
mcpServers?: Record<string, {
|
|
3844
3848
|
type: "stdio";
|
|
3845
3849
|
command: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/agent/schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/agent/schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAcH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuExB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAM/B,CAAC;AAkEH;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuFM,CAAC;AAGrC,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"}
|
package/dist/agent/schemas.js
CHANGED
|
@@ -2,6 +2,7 @@ import "../chunk-C6A6W6XS.js";
|
|
|
2
2
|
import { LLMConfigSchema } from "../llm/schemas.js";
|
|
3
3
|
import { LoggerConfigSchema } from "../logger/index.js";
|
|
4
4
|
import { ServerConfigsSchema as McpServersConfigSchema } from "../mcp/schemas.js";
|
|
5
|
+
import { MemoriesConfigSchema } from "../memory/schemas.js";
|
|
5
6
|
import { SessionConfigSchema } from "../session/schemas.js";
|
|
6
7
|
import { StorageSchema } from "../storage/schemas.js";
|
|
7
8
|
import { SystemPromptConfigSchema } from "../systemPrompt/schemas.js";
|
|
@@ -12,7 +13,7 @@ import {
|
|
|
12
13
|
} from "../tools/schemas.js";
|
|
13
14
|
import { z } from "zod";
|
|
14
15
|
import { InternalResourcesSchema } from "../resources/schemas.js";
|
|
15
|
-
import {
|
|
16
|
+
import { PromptsSchema } from "../prompts/schemas.js";
|
|
16
17
|
import { PluginsConfigSchema } from "../plugins/schemas.js";
|
|
17
18
|
import { OtelConfigurationSchema } from "../telemetry/schemas.js";
|
|
18
19
|
const ApiKeySecurityScheme = z.object({
|
|
@@ -162,6 +163,9 @@ const AgentConfigSchema = z.object({
|
|
|
162
163
|
telemetry: OtelConfigurationSchema.describe(
|
|
163
164
|
"OpenTelemetry configuration for distributed tracing and observability"
|
|
164
165
|
).optional(),
|
|
166
|
+
memories: MemoriesConfigSchema.describe(
|
|
167
|
+
"Memory configuration for system prompt inclusion (optional feature)"
|
|
168
|
+
).optional(),
|
|
165
169
|
// ========================================
|
|
166
170
|
// FIELDS WITH DEFAULTS (always present after parsing)
|
|
167
171
|
// ========================================
|
|
@@ -197,8 +201,8 @@ const AgentConfigSchema = z.object({
|
|
|
197
201
|
internalResources: InternalResourcesSchema.describe(
|
|
198
202
|
"Configuration for internal resources (filesystem, etc.)"
|
|
199
203
|
).default([]),
|
|
200
|
-
|
|
201
|
-
"Agent-
|
|
204
|
+
prompts: PromptsSchema.describe(
|
|
205
|
+
"Agent prompts configuration - sample prompts which can be defined inline or referenced from file"
|
|
202
206
|
).default([]),
|
|
203
207
|
plugins: PluginsConfigSchema.describe(
|
|
204
208
|
"Plugin system configuration for built-in and custom plugins"
|
package/dist/memory/index.cjs
CHANGED
|
@@ -20,6 +20,7 @@ var memory_exports = {};
|
|
|
20
20
|
__export(memory_exports, {
|
|
21
21
|
CreateMemoryInputSchema: () => import_schemas.CreateMemoryInputSchema,
|
|
22
22
|
ListMemoriesOptionsSchema: () => import_schemas.ListMemoriesOptionsSchema,
|
|
23
|
+
MemoriesConfigSchema: () => import_schemas.MemoriesConfigSchema,
|
|
23
24
|
MemoryError: () => import_errors.MemoryError,
|
|
24
25
|
MemoryErrorCode: () => import_error_codes.MemoryErrorCode,
|
|
25
26
|
MemoryManager: () => import_manager.MemoryManager,
|
|
@@ -35,6 +36,7 @@ var import_error_codes = require("./error-codes.js");
|
|
|
35
36
|
0 && (module.exports = {
|
|
36
37
|
CreateMemoryInputSchema,
|
|
37
38
|
ListMemoriesOptionsSchema,
|
|
39
|
+
MemoriesConfigSchema,
|
|
38
40
|
MemoryError,
|
|
39
41
|
MemoryErrorCode,
|
|
40
42
|
MemoryManager,
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { MemoryManager } from './manager.js';
|
|
2
2
|
export type { Memory, CreateMemoryInput, UpdateMemoryInput, ListMemoriesOptions, MemorySource, } from './types.js';
|
|
3
|
-
export { MemorySchema, CreateMemoryInputSchema, UpdateMemoryInputSchema, ListMemoriesOptionsSchema, type ValidatedMemory, type ValidatedCreateMemoryInput, type ValidatedUpdateMemoryInput, type ValidatedListMemoriesOptions, } from './schemas.js';
|
|
3
|
+
export { MemorySchema, CreateMemoryInputSchema, UpdateMemoryInputSchema, ListMemoriesOptionsSchema, MemoriesConfigSchema, type ValidatedMemory, type ValidatedCreateMemoryInput, type ValidatedUpdateMemoryInput, type ValidatedListMemoriesOptions, type MemoriesConfig, type ValidatedMemoriesConfig, } from './schemas.js';
|
|
4
4
|
export { MemoryError } from './errors.js';
|
|
5
5
|
export { MemoryErrorCode } from './error-codes.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/memory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,YAAY,EACR,MAAM,EACN,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,GACf,MAAM,YAAY,CAAC;AACpB,OAAO,EACH,YAAY,EACZ,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/memory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,YAAY,EACR,MAAM,EACN,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,GACf,MAAM,YAAY,CAAC;AACpB,OAAO,EACH,YAAY,EACZ,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,oBAAoB,EACpB,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,cAAc,EACnB,KAAK,uBAAuB,GAC/B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/memory/index.js
CHANGED
|
@@ -4,13 +4,15 @@ import {
|
|
|
4
4
|
MemorySchema,
|
|
5
5
|
CreateMemoryInputSchema,
|
|
6
6
|
UpdateMemoryInputSchema,
|
|
7
|
-
ListMemoriesOptionsSchema
|
|
7
|
+
ListMemoriesOptionsSchema,
|
|
8
|
+
MemoriesConfigSchema
|
|
8
9
|
} from "./schemas.js";
|
|
9
10
|
import { MemoryError } from "./errors.js";
|
|
10
11
|
import { MemoryErrorCode } from "./error-codes.js";
|
|
11
12
|
export {
|
|
12
13
|
CreateMemoryInputSchema,
|
|
13
14
|
ListMemoriesOptionsSchema,
|
|
15
|
+
MemoriesConfigSchema,
|
|
14
16
|
MemoryError,
|
|
15
17
|
MemoryErrorCode,
|
|
16
18
|
MemoryManager,
|
package/dist/memory/schemas.cjs
CHANGED
|
@@ -20,6 +20,7 @@ var schemas_exports = {};
|
|
|
20
20
|
__export(schemas_exports, {
|
|
21
21
|
CreateMemoryInputSchema: () => CreateMemoryInputSchema,
|
|
22
22
|
ListMemoriesOptionsSchema: () => ListMemoriesOptionsSchema,
|
|
23
|
+
MemoriesConfigSchema: () => MemoriesConfigSchema,
|
|
23
24
|
MemoryMetadataSchema: () => MemoryMetadataSchema,
|
|
24
25
|
MemorySchema: () => MemorySchema,
|
|
25
26
|
MemorySourceSchema: () => MemorySourceSchema,
|
|
@@ -71,10 +72,19 @@ const ListMemoriesOptionsSchema = import_zod.z.object({
|
|
|
71
72
|
limit: import_zod.z.number().int().positive().optional().describe("Limit number of results"),
|
|
72
73
|
offset: import_zod.z.number().int().nonnegative().optional().describe("Skip first N results")
|
|
73
74
|
}).strict().describe("Options for listing memories");
|
|
75
|
+
const MemoriesConfigSchema = import_zod.z.object({
|
|
76
|
+
enabled: import_zod.z.boolean().default(false).describe("Whether to include memories in system prompt (optional"),
|
|
77
|
+
priority: import_zod.z.number().int().nonnegative().default(40).describe("Priority in system prompt (lower = earlier)"),
|
|
78
|
+
includeTimestamps: import_zod.z.boolean().default(false).describe("Whether to include timestamps in memory display"),
|
|
79
|
+
includeTags: import_zod.z.boolean().default(true).describe("Whether to include tags in memory display"),
|
|
80
|
+
limit: import_zod.z.number().int().positive().optional().describe("Maximum number of memories to include"),
|
|
81
|
+
pinnedOnly: import_zod.z.boolean().default(false).describe("Only include pinned memories")
|
|
82
|
+
}).strict().describe("Memory configuration for system prompt inclusion");
|
|
74
83
|
// Annotate the CommonJS export names for ESM import in node:
|
|
75
84
|
0 && (module.exports = {
|
|
76
85
|
CreateMemoryInputSchema,
|
|
77
86
|
ListMemoriesOptionsSchema,
|
|
87
|
+
MemoriesConfigSchema,
|
|
78
88
|
MemoryMetadataSchema,
|
|
79
89
|
MemorySchema,
|
|
80
90
|
MemorySourceSchema,
|