@michengai/dsh-archive-manager 1.1.19 → 1.1.21
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/CHANGELOG.md +13 -0
- package/CHANGELOG.zh-CN.md +13 -0
- package/lib/client.js +5 -5
- package/lib/workspace.js +18 -3
- package/package.json +1 -2
package/lib/workspace.js
CHANGED
|
@@ -804,9 +804,24 @@ var ArchiveWorkspaceRegistry = class extends WorkspaceRegistry {
|
|
|
804
804
|
const sessions = this.ctx.get("sessions");
|
|
805
805
|
const live = sessions?.get(sessionId);
|
|
806
806
|
if (live !== void 0) {
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
807
|
+
if (live.header !== void 0) {
|
|
808
|
+
this.headers?.set(sessionId, live.header);
|
|
809
|
+
}
|
|
810
|
+
try {
|
|
811
|
+
await sessions.flush(live);
|
|
812
|
+
} catch (error) {
|
|
813
|
+
this.ctx.logger.warn(
|
|
814
|
+
`archive-manager: could not flush live session "${sessionId}" before deletion: ${String(error)}`
|
|
815
|
+
);
|
|
816
|
+
}
|
|
817
|
+
try {
|
|
818
|
+
const entry = sessions.liveEntryFor(live);
|
|
819
|
+
sessions.detachEntered(entry);
|
|
820
|
+
} catch (error) {
|
|
821
|
+
this.ctx.logger.warn(
|
|
822
|
+
`archive-manager: could not detach live session "${sessionId}" before deletion: ${String(error)}`
|
|
823
|
+
);
|
|
824
|
+
}
|
|
810
825
|
} else if (sessions !== void 0)
|
|
811
826
|
await this.publishColdSessionRemoval(sessionId, sessions);
|
|
812
827
|
const projCache = this.ctx.get("sessionProjectionCache");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@michengai/dsh-archive-manager",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.21",
|
|
4
4
|
"description": "归档、恢复、收藏和永久删除会话,并诊断损坏的会话日志。 · Archive, restore, favorite, and permanently delete sessions, and diagnose damaged session logs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@11.22.0",
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
"@deepseek-ai/cordis": ">=4.0.1 <5.0.0",
|
|
48
48
|
"@deepseek-ai/dsh-client-connection": ">=0.2.0-rc.1 <0.3.0-0",
|
|
49
49
|
"@deepseek-ai/dsh-client-locale": ">=0.2.0-rc.1 <0.3.0-0",
|
|
50
|
-
"@deepseek-ai/dsh-client-store": ">=0.2.0-rc.1 <0.3.0-0",
|
|
51
50
|
"@deepseek-ai/dsh-client-ui-conversation": ">=0.2.0-rc.1 <0.3.0-0",
|
|
52
51
|
"@deepseek-ai/dsh-client-ui-primitives": ">=0.2.0-rc.1 <0.3.0-0",
|
|
53
52
|
"@deepseek-ai/dsh-client-ui-sidebar": ">=0.2.0-rc.1 <0.3.0-0",
|