@epoch-agent/core 0.3.2 → 0.4.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/dist/index.d.ts +7 -0
- package/dist/index.js +10 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -9817,6 +9817,13 @@ declare const EpochConfigSchema: z.ZodObject<{
|
|
|
9817
9817
|
label: z.ZodString;
|
|
9818
9818
|
icon: z.ZodOptional<z.ZodString>;
|
|
9819
9819
|
}, z.core.$strip>>>;
|
|
9820
|
+
blankCards: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9821
|
+
id: z.ZodString;
|
|
9822
|
+
title: z.ZodString;
|
|
9823
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
9824
|
+
prompt: z.ZodString;
|
|
9825
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
9826
|
+
}, z.core.$strip>>>;
|
|
9820
9827
|
}, z.core.$strip>;
|
|
9821
9828
|
/**
|
|
9822
9829
|
* 全默认配置 —— 从 schema 派生,不是第二份字面量。
|
package/dist/index.js
CHANGED
|
@@ -9613,6 +9613,13 @@ var SidebarMenuItemSchema = z.object({
|
|
|
9613
9613
|
label: z.string().min(1),
|
|
9614
9614
|
icon: z.string().min(1).optional()
|
|
9615
9615
|
});
|
|
9616
|
+
var BlankCardSchema = z.object({
|
|
9617
|
+
id: z.string().min(1),
|
|
9618
|
+
title: z.string().min(1),
|
|
9619
|
+
subtitle: z.string().min(1).optional(),
|
|
9620
|
+
prompt: z.string().min(1),
|
|
9621
|
+
icon: z.string().min(1).optional()
|
|
9622
|
+
});
|
|
9616
9623
|
var ArtifactsSchema = z.object({
|
|
9617
9624
|
maxAgeDays: z.int().positive().max(3650).default(ARTIFACT_RETENTION_DEFAULTS.maxAgeDays),
|
|
9618
9625
|
maxTotalBytes: z.int().positive().default(ARTIFACT_RETENTION_DEFAULTS.maxTotalBytes)
|
|
@@ -9663,6 +9670,9 @@ var EpochConfigSchema = z.object({
|
|
|
9663
9670
|
brand: z.string().min(1).optional(),
|
|
9664
9671
|
sidebarMenu: z.array(SidebarMenuItemSchema).min(1).refine((items) => new Set(items.map((item) => item.id)).size === items.length, {
|
|
9665
9672
|
message: "sidebarMenu: id must be unique"
|
|
9673
|
+
}).optional(),
|
|
9674
|
+
blankCards: z.array(BlankCardSchema).min(1).refine((items) => new Set(items.map((item) => item.id)).size === items.length, {
|
|
9675
|
+
message: "blankCards: id must be unique"
|
|
9666
9676
|
}).optional()
|
|
9667
9677
|
});
|
|
9668
9678
|
function defaultConfig() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epoch-agent/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "epoch-agent 核心引擎:ReAct 循环、Provider 路由、工具调度、记忆管理",
|
|
6
6
|
"repository": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"gpt-tokenizer": "^3.4.0",
|
|
28
28
|
"js-yaml": "^5.2.3",
|
|
29
29
|
"zod": "^4.4.3",
|
|
30
|
-
"@epoch-agent/infra": "0.
|
|
31
|
-
"@epoch-agent/protocol": "0.
|
|
30
|
+
"@epoch-agent/infra": "0.4.0",
|
|
31
|
+
"@epoch-agent/protocol": "0.4.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@ai-sdk/amazon-bedrock": "^5.0.40",
|