@michengai/dsh-archive-manager 1.5.0 → 1.5.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/CHANGELOG.md +7 -0
- package/CHANGELOG.zh-CN.md +7 -0
- package/README.de.md +2 -2
- package/README.en.md +2 -2
- package/README.es.md +2 -2
- package/README.fr.md +2 -2
- package/README.ja.md +2 -2
- package/README.md +2 -2
- package/README.pt.md +2 -2
- package/README.ru.md +2 -2
- package/README.zh-CN.md +2 -2
- package/lib/client.js +6 -6
- package/lib/session-lifecycle.js +3 -0
- package/lib/session-move.js +3 -0
- package/package.json +27 -27
package/lib/session-lifecycle.js
CHANGED
|
@@ -107,6 +107,9 @@ async function withReleasedSession(ctx, sessionId, operation, options) {
|
|
|
107
107
|
if (header?.origin === "subagent" || (Number(header?.delegationDepth) || 0) > 0) {
|
|
108
108
|
throw new Error("\u5B50\u4EE3\u7406\uFF08subagent\uFF09\u4F1A\u8BDD\u4E0D\u652F\u6301\u8DE8\u5DE5\u4F5C\u533A\u79FB\u52A8\u3002");
|
|
109
109
|
}
|
|
110
|
+
if (header?.origin === "side") {
|
|
111
|
+
throw new Error("\u65C1\u8DEF\uFF08side\uFF09\u4F1A\u8BDD\u4E0D\u652F\u6301\u8DE8\u5DE5\u4F5C\u533A\u79FB\u52A8\u3002");
|
|
112
|
+
}
|
|
110
113
|
runtime.moving.add(sessionId);
|
|
111
114
|
let failure = void 0;
|
|
112
115
|
let result;
|
package/lib/session-move.js
CHANGED
|
@@ -134,6 +134,9 @@ async function moveSessionToWorkspace(ctx, sessionId, targetWorkspaceId) {
|
|
|
134
134
|
if (header.origin === "subagent") {
|
|
135
135
|
throw new Error("\u5B50\u4EE3\u7406\uFF08subagent\uFF09\u4F1A\u8BDD\u4E0D\u652F\u6301\u8DE8\u5DE5\u4F5C\u533A\u79FB\u52A8\u3002");
|
|
136
136
|
}
|
|
137
|
+
if (header.origin === "side") {
|
|
138
|
+
throw new Error("\u65C1\u8DEF\uFF08side\uFF09\u4F1A\u8BDD\u4E0D\u652F\u6301\u8DE8\u5DE5\u4F5C\u533A\u79FB\u52A8\u3002");
|
|
139
|
+
}
|
|
137
140
|
const currentNormalizedCwd = normalizePath(header.cwd);
|
|
138
141
|
const targetNormalizedCwd = normalizePath(targetPath);
|
|
139
142
|
const targetNorm = normalizePath(targetWorkspace.path);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@michengai/dsh-archive-manager",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
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",
|
|
@@ -74,32 +74,32 @@
|
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@deepseek-ai/cordis": "4.2.0-alpha.
|
|
78
|
-
"@deepseek-ai/dsh-api-gateway": "0.2.3-alpha.
|
|
79
|
-
"@deepseek-ai/dsh-client-connection": "0.2.3-alpha.
|
|
80
|
-
"@deepseek-ai/dsh-client-locale": "0.2.3-alpha.
|
|
81
|
-
"@deepseek-ai/dsh-client-store": "0.2.3-alpha.
|
|
82
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.2.3-alpha.
|
|
83
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.3-alpha.
|
|
84
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.3-alpha.
|
|
85
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.3-alpha.
|
|
86
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.3-alpha.
|
|
87
|
-
"@deepseek-ai/dsh-client-ui-workspace": "0.2.3-alpha.
|
|
88
|
-
"@deepseek-ai/dsh-error": "0.2.3-alpha.
|
|
89
|
-
"@deepseek-ai/dsh-host-webserver": "0.2.3-alpha.
|
|
90
|
-
"@deepseek-ai/dsh-scope": "0.2.3-alpha.
|
|
91
|
-
"@deepseek-ai/dsh-session": "0.2.3-alpha.
|
|
92
|
-
"@deepseek-ai/dsh-session-format-catalog": "0.2.3-alpha.
|
|
93
|
-
"@deepseek-ai/dsh-session-persistence": "0.2.3-alpha.
|
|
94
|
-
"@deepseek-ai/dsh-session-projection": "0.2.3-alpha.
|
|
95
|
-
"@deepseek-ai/dsh-session-projection-cache": "0.2.3-alpha.
|
|
96
|
-
"@deepseek-ai/dsh-spill": "0.2.3-alpha.
|
|
97
|
-
"@deepseek-ai/dsh-spill-local": "0.2.3-alpha.
|
|
98
|
-
"@deepseek-ai/dsh-storage": "0.2.3-alpha.
|
|
99
|
-
"@deepseek-ai/dsh-storage-domain": "0.2.3-alpha.
|
|
100
|
-
"@deepseek-ai/dsh-typert-protocol": "0.2.3-alpha.
|
|
101
|
-
"@deepseek-ai/dsh-typert-registry": "0.2.3-alpha.
|
|
102
|
-
"@deepseek-ai/dsh-workspace": "0.2.3-alpha.
|
|
77
|
+
"@deepseek-ai/cordis": "4.2.0-alpha.2",
|
|
78
|
+
"@deepseek-ai/dsh-api-gateway": "0.2.3-alpha.3",
|
|
79
|
+
"@deepseek-ai/dsh-client-connection": "0.2.3-alpha.3",
|
|
80
|
+
"@deepseek-ai/dsh-client-locale": "0.2.3-alpha.3",
|
|
81
|
+
"@deepseek-ai/dsh-client-store": "0.2.3-alpha.3",
|
|
82
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.3-alpha.3",
|
|
83
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.3-alpha.3",
|
|
84
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.3-alpha.3",
|
|
85
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.3-alpha.3",
|
|
86
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.3-alpha.3",
|
|
87
|
+
"@deepseek-ai/dsh-client-ui-workspace": "0.2.3-alpha.3",
|
|
88
|
+
"@deepseek-ai/dsh-error": "0.2.3-alpha.3",
|
|
89
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.3-alpha.3",
|
|
90
|
+
"@deepseek-ai/dsh-scope": "0.2.3-alpha.3",
|
|
91
|
+
"@deepseek-ai/dsh-session": "0.2.3-alpha.3",
|
|
92
|
+
"@deepseek-ai/dsh-session-format-catalog": "0.2.3-alpha.3",
|
|
93
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.3-alpha.3",
|
|
94
|
+
"@deepseek-ai/dsh-session-projection": "0.2.3-alpha.3",
|
|
95
|
+
"@deepseek-ai/dsh-session-projection-cache": "0.2.3-alpha.3",
|
|
96
|
+
"@deepseek-ai/dsh-spill": "0.2.3-alpha.3",
|
|
97
|
+
"@deepseek-ai/dsh-spill-local": "0.2.3-alpha.3",
|
|
98
|
+
"@deepseek-ai/dsh-storage": "0.2.3-alpha.3",
|
|
99
|
+
"@deepseek-ai/dsh-storage-domain": "0.2.3-alpha.3",
|
|
100
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.3-alpha.3",
|
|
101
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.3-alpha.3",
|
|
102
|
+
"@deepseek-ai/dsh-workspace": "0.2.3-alpha.3",
|
|
103
103
|
"@types/node": "^22.20.4",
|
|
104
104
|
"@types/react": "^18.3.31",
|
|
105
105
|
"@types/react-dom": "^18.0.0",
|