@epoch-agent/core 0.23.0 → 0.25.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 +9 -0
- package/dist/index.js +3 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -14343,6 +14343,15 @@ declare class SessionManager implements SessionManager$1 {
|
|
|
14343
14343
|
private generateId;
|
|
14344
14344
|
create(input?: CreateSessionInput): Session;
|
|
14345
14345
|
get(id: string): Session | undefined;
|
|
14346
|
+
/**
|
|
14347
|
+
* 只要元信息时走这里,**不读消息**。
|
|
14348
|
+
*
|
|
14349
|
+
* `get()` 会把整段消息 `SELECT *` 出来再组装:553 条消息的会话一次约 8ms。
|
|
14350
|
+
* 2026-10-09 实测 server 每个流式帧都经 `readTitle` 调一次它,一轮回复
|
|
14351
|
+
* 几百帧,桌面端主线程被连续占满好几秒。meta 只来自 sessions 那一行,
|
|
14352
|
+
* 和 `get().meta` 是同一份。
|
|
14353
|
+
*/
|
|
14354
|
+
getMeta(id: string): SessionMeta | undefined;
|
|
14346
14355
|
/** 判据全文在 {@link SessionDB.hasSession} 上 */
|
|
14347
14356
|
has(id: string): boolean;
|
|
14348
14357
|
/**
|
package/dist/index.js
CHANGED
|
@@ -17732,6 +17732,9 @@ var SessionManager = class {
|
|
|
17732
17732
|
const messages = this.db.getMessages(id);
|
|
17733
17733
|
return this.buildSession(id, messages);
|
|
17734
17734
|
}
|
|
17735
|
+
getMeta(id) {
|
|
17736
|
+
return this.db.getSessionMeta(id) ?? void 0;
|
|
17737
|
+
}
|
|
17735
17738
|
has(id) {
|
|
17736
17739
|
return this.db.hasSession(id);
|
|
17737
17740
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epoch-agent/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.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/
|
|
31
|
-
"@epoch-agent/
|
|
30
|
+
"@epoch-agent/infra": "0.25.0",
|
|
31
|
+
"@epoch-agent/protocol": "0.25.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@ai-sdk/alibaba": "^2.0.59",
|