@sunshaobei/dsh-session-manager 0.0.0-stage → 0.4.3-fork.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.
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Session Trash Host plugin: patches SessionPersistence, SessionProjectionCache,
3
+ * and WorkspaceRegistry with delete, unarchive, permanent-delete, and listing
4
+ * capabilities. Registers new Typert RPC methods for the browser surface.
5
+ * @module @deepseek-ai/dsh-session-trash-host
6
+ */
7
+ import type { Context } from '@deepseek-ai/cordis';
8
+ import type { SessionId } from '@deepseek-ai/dsh-session';
9
+
10
+ declare module '@deepseek-ai/cordis' {
11
+ interface Context {
12
+ /** Patched services available after this plugin's init. */
13
+ sessionTrashHost?: SessionTrashHost;
14
+ }
15
+ }
16
+
17
+ /** One row projected from the archive set for a recycle-bin surface. */
18
+ export interface ArchivedSessionView {
19
+ sessionId: SessionId;
20
+ title: string;
21
+ cwd?: string;
22
+ workspacePath?: string;
23
+ workspaceTitle?: string;
24
+ }
25
+
26
+ export declare class SessionTrashHost {
27
+ static inject: string[];
28
+ constructor(ctx: Context);
29
+ protected [Service.init](): Promise<void>;
30
+ }
31
+
32
+ export default SessionTrashHost;
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "dsh-session-manager-host",
3
+ "description": "Session trash host plugin: extends session persistence, projection cache, and workspace registry with delete, unarchive, and permanent-delete capabilities for the DeepSeek Harness",
4
+ "version": "0.1.0",
5
+ "private": true,
6
+ "type": "module",
7
+ "main": "lib/index.js",
8
+ "types": "lib/types/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./lib/types/index.d.ts",
12
+ "default": "./lib/index.js"
13
+ },
14
+ "./package.json": "./package.json"
15
+ },
16
+ "license": "MIT",
17
+ "peerDependencies": {
18
+ "@deepseek-ai/cordis": "^4.0.1",
19
+ "@deepseek-ai/dsh-session": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.5-rc.1",
20
+ "@deepseek-ai/dsh-session-persistence": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.5-rc.1",
21
+ "@deepseek-ai/dsh-session-persistence-jsonl": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.5-rc.1",
22
+ "@deepseek-ai/dsh-session-projection-cache": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.5-rc.1",
23
+ "@deepseek-ai/dsh-workspace": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.5-rc.1",
24
+ "@deepseek-ai/dsh-storage-domain": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.5-rc.1"
25
+ }
26
+ }