dsh-cool-session 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +27 -2
- package/README.zh.md +28 -0
- package/cordis.patch.yml +7 -0
- package/lib/client.js +2152 -0
- package/lib/index.js +690 -0
- package/lib/types/client/api.d.ts +30 -0
- package/lib/types/client/api.d.ts.map +1 -0
- package/lib/types/client/archive.d.ts +43 -0
- package/lib/types/client/archive.d.ts.map +1 -0
- package/lib/types/client/icons.d.ts +32 -0
- package/lib/types/client/icons.d.ts.map +1 -0
- package/lib/types/client/index.d.ts +28 -0
- package/lib/types/client/index.d.ts.map +1 -0
- package/lib/types/client/locales/de.d.ts +85 -0
- package/lib/types/client/locales/de.d.ts.map +1 -0
- package/lib/types/client/locales/en.d.ts +87 -0
- package/lib/types/client/locales/en.d.ts.map +1 -0
- package/lib/types/client/locales/es.d.ts +85 -0
- package/lib/types/client/locales/es.d.ts.map +1 -0
- package/lib/types/client/locales/fr.d.ts +87 -0
- package/lib/types/client/locales/fr.d.ts.map +1 -0
- package/lib/types/client/locales/ja.d.ts +87 -0
- package/lib/types/client/locales/ja.d.ts.map +1 -0
- package/lib/types/client/locales/pt.d.ts +86 -0
- package/lib/types/client/locales/pt.d.ts.map +1 -0
- package/lib/types/client/locales/ru.d.ts +89 -0
- package/lib/types/client/locales/ru.d.ts.map +1 -0
- package/lib/types/client/locales/zh.d.ts +87 -0
- package/lib/types/client/locales/zh.d.ts.map +1 -0
- package/lib/types/client/locales.d.ts +729 -0
- package/lib/types/client/locales.d.ts.map +1 -0
- package/lib/types/client/nav-icon.d.ts +30 -0
- package/lib/types/client/nav-icon.d.ts.map +1 -0
- package/lib/types/client/reason.d.ts +41 -0
- package/lib/types/client/reason.d.ts.map +1 -0
- package/lib/types/client/session-menu.d.ts +65 -0
- package/lib/types/client/session-menu.d.ts.map +1 -0
- package/lib/types/client/settings-section.d.ts +43 -0
- package/lib/types/client/settings-section.d.ts.map +1 -0
- package/lib/types/client/styles.d.ts +26 -0
- package/lib/types/client/styles.d.ts.map +1 -0
- package/lib/types/host/deletion.d.ts +26 -0
- package/lib/types/host/deletion.d.ts.map +1 -0
- package/lib/types/host/index.d.ts +20 -0
- package/lib/types/host/index.d.ts.map +1 -0
- package/lib/types/host/refusal.d.ts +25 -0
- package/lib/types/host/refusal.d.ts.map +1 -0
- package/lib/types/host/routes.d.ts +28 -0
- package/lib/types/host/routes.d.ts.map +1 -0
- package/lib/types/shared/contract.d.ts +61 -0
- package/lib/types/shared/contract.d.ts.map +1 -0
- package/package.json +69 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../src/client/locales.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AAEpC,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAA;AAEzC,+CAA+C;AAC/C,eAAO,MAAM,EAAE,gBAAgB,CAAA;AAE/B,6CAA6C;AAC7C,MAAM,MAAM,QAAQ,GAAG,IAA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EAAE,CAE7C"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The archive glyph on the Settings panel's Sessions entry.
|
|
3
|
+
*
|
|
4
|
+
* A section registration carries a label, not an icon: the shipped settings
|
|
5
|
+
* shell picks its navigation glyph from the section id (`navIcon(row.id)` in
|
|
6
|
+
* ui-settings-general), and every id it does not know — a plugin's id included —
|
|
7
|
+
* gets the generic gear. The entry therefore owns its glyph the only way a
|
|
8
|
+
* plugin can: after the cell renders, hide the shell's gear and put the parsed
|
|
9
|
+
* `assets/archive.svg` artwork in the seat beside the label. dsh-cool-theme
|
|
10
|
+
* patches its palette into the same seat for the same reason.
|
|
11
|
+
*
|
|
12
|
+
* Matching is by the rendered label rather than by class hash, because the
|
|
13
|
+
* shell's CSS module hashes rotate between releases. The observer only watches
|
|
14
|
+
* child-list changes: opening and closing Settings replaces the cell's children,
|
|
15
|
+
* while typing elsewhere in the page usually edits text nodes and must not
|
|
16
|
+
* trigger a scan.
|
|
17
|
+
*/
|
|
18
|
+
import { type Translate } from './locales.js';
|
|
19
|
+
/**
|
|
20
|
+
* Keep the Sessions entry's glyph patched for the plugin's lifetime.
|
|
21
|
+
*
|
|
22
|
+
* Runs once for a panel that is already open and again whenever the shell mounts
|
|
23
|
+
* or re-renders the navigation. The disposer removes the inserted spans and
|
|
24
|
+
* restores the gears, so an HMR update does not leave two glyphs in the seat.
|
|
25
|
+
*
|
|
26
|
+
* @param t - the plugin's translate seat, for the current locale's label.
|
|
27
|
+
* @returns the disposer that stops observation and restores the shell's DOM.
|
|
28
|
+
*/
|
|
29
|
+
export declare function installSessionNavIcon(t: Translate): () => void;
|
|
30
|
+
//# sourceMappingURL=nav-icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nav-icon.d.ts","sourceRoot":"","sources":["../../../src/client/nav-icon.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAiExD;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,SAAS,GAAG,MAAM,IAAI,CA8B9D"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One Host answer's refusal, as the sentence a page shows.
|
|
3
|
+
*
|
|
4
|
+
* A coded refusal is worded here from the page's dictionary, so the same answer
|
|
5
|
+
* reads in the active language; diagnostics another program wrote stay verbatim.
|
|
6
|
+
* Both the native menu's dialog and the management panel render their failures
|
|
7
|
+
* through this one module, which keeps the two surfaces agreeing about a
|
|
8
|
+
* partial deletion's detail line and about the work named in a still-running
|
|
9
|
+
* refusal.
|
|
10
|
+
*/
|
|
11
|
+
import type { DeletePayload, Failure } from '../shared/contract.js';
|
|
12
|
+
import type { MessageKey, Translate } from './locales.js';
|
|
13
|
+
/** The refusal fragment any Host answer may carry. */
|
|
14
|
+
type Refusal = Pick<DeletePayload, 'failure' | 'error'>;
|
|
15
|
+
/**
|
|
16
|
+
* Word the work a refusal names, in the active language.
|
|
17
|
+
*
|
|
18
|
+
* @param t - the page's translate seat.
|
|
19
|
+
* @param raw - the Host's comma-separated kind list, when it named any.
|
|
20
|
+
* @returns the phrase to put in the sentence's `{activity}` position.
|
|
21
|
+
*/
|
|
22
|
+
export declare function activityPhrase(t: Translate, raw: string | number | undefined): string;
|
|
23
|
+
/**
|
|
24
|
+
* Word one coded refusal as a sentence.
|
|
25
|
+
*
|
|
26
|
+
* @param t - the page's translate seat.
|
|
27
|
+
* @param failure - the refusal code and the values its sentence interpolates.
|
|
28
|
+
* @returns the sentence to show.
|
|
29
|
+
*/
|
|
30
|
+
export declare function failureText(t: Translate, failure: Failure): string;
|
|
31
|
+
/**
|
|
32
|
+
* Word one refused answer.
|
|
33
|
+
*
|
|
34
|
+
* @param t - the page's translate seat.
|
|
35
|
+
* @param payload - the Host answer.
|
|
36
|
+
* @param fallback - the entry to state when the answer carried no reason.
|
|
37
|
+
* @returns the reason to show.
|
|
38
|
+
*/
|
|
39
|
+
export declare function reasonOf(t: Translate, payload: Refusal, fallback: MessageKey): string;
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=reason.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reason.d.ts","sourceRoot":"","sources":["../../../src/client/reason.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAEzD,sDAAsD;AACtD,KAAK,OAAO,GAAG,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,OAAO,CAAC,CAAA;AAiBvD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAUrF;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,MAAM,CAUlE;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,GAAG,MAAM,CAYrF"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The native Session menu's delete row and its confirmation overlay.
|
|
3
|
+
*
|
|
4
|
+
* The row is contributed to `sidebar.workspaces.session.menu.item` by builds
|
|
5
|
+
* that have no `contextMenus` service; the client entry registers a plain-data
|
|
6
|
+
* action instead wherever that service exists, because the shipped Archive row
|
|
7
|
+
* is a footer action and only a footer action can follow it. Menus unmount as
|
|
8
|
+
* soon as they close, so either row only records a request; the frame-wide
|
|
9
|
+
* `shell.overlay` entry owns the dialog's state and the Host call. That split is
|
|
10
|
+
* also what lets the dialog survive the menu's portal disappearing on click.
|
|
11
|
+
*
|
|
12
|
+
* Deletion is permanent, so the confirmation is the only path: it asks before
|
|
13
|
+
* the Host stops running work and removes the artifacts, and disables itself
|
|
14
|
+
* while that happens.
|
|
15
|
+
*/
|
|
16
|
+
import { type ReactElement } from 'react';
|
|
17
|
+
import type { Translate } from './locales.js';
|
|
18
|
+
/**
|
|
19
|
+
* Open the delete confirmation for one Session.
|
|
20
|
+
*
|
|
21
|
+
* @param sessionId - the Session the menu row belongs to.
|
|
22
|
+
*/
|
|
23
|
+
export declare function requestDeleteSession(sessionId: string): void;
|
|
24
|
+
/** Dismiss the confirmation without deleting. */
|
|
25
|
+
export declare function clearDeleteRequest(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Stop drawing the legacy Slot row.
|
|
28
|
+
*
|
|
29
|
+
* The client entry installs that row when `apply` runs before `contextMenus` is
|
|
30
|
+
* mounted; the service then contributes Delete as a footer action so it can
|
|
31
|
+
* follow Archive. This flag keeps the two paths from drawing the row twice.
|
|
32
|
+
*/
|
|
33
|
+
export declare function retireLegacyDeleteRow(): void;
|
|
34
|
+
/** The menu row's owner share and the slot's menu-open hook. */
|
|
35
|
+
interface DeleteMenuItemProps {
|
|
36
|
+
readonly sessionId: string;
|
|
37
|
+
readonly useMenuOpenState: () => readonly [boolean, (open: boolean) => void];
|
|
38
|
+
readonly t: Translate;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The legacy delete row for builds without `contextMenus`, placed after Copy
|
|
42
|
+
* Session ID and separated from the shipped group. Selecting it closes the menu
|
|
43
|
+
* and raises the confirmation overlay.
|
|
44
|
+
*
|
|
45
|
+
* @param props - the row identity, menu hook, and locale seat.
|
|
46
|
+
* @returns the menu row, or null once the menu service owns it.
|
|
47
|
+
*/
|
|
48
|
+
export declare function SessionDeleteMenuItem({ sessionId, useMenuOpenState, t, }: DeleteMenuItemProps): ReactElement | null;
|
|
49
|
+
/** The dialog's injected callback, supplied by the client entry. */
|
|
50
|
+
interface DeleteDialogProps {
|
|
51
|
+
readonly t: Translate;
|
|
52
|
+
/** Called after a successful deletion so the shell can clear its main view. */
|
|
53
|
+
readonly onDeleted?: (sessionId: string) => void;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The frame-wide confirmation entry, drawn with DSH's own `Modal` primitive so
|
|
57
|
+
* its chrome, blurred mask, focus trap, and Escape handling match the rest of
|
|
58
|
+
* the product instead of being re-implemented here.
|
|
59
|
+
*
|
|
60
|
+
* @param props - the locale seat and the post-delete callback.
|
|
61
|
+
* @returns the dialog, or null while no delete is pending.
|
|
62
|
+
*/
|
|
63
|
+
export declare function SessionDeleteDialog({ t, onDeleted }: DeleteDialogProps): ReactElement | null;
|
|
64
|
+
export {};
|
|
65
|
+
//# sourceMappingURL=session-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-menu.d.ts","sourceRoot":"","sources":["../../../src/client/session-menu.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAA6C,KAAK,YAAY,EAAE,MAAM,OAAO,CAAA;AAIpF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAyB7C;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAG5D;AAED,iDAAiD;AACjD,wBAAgB,kBAAkB,IAAI,IAAI,CAIzC;AAKD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAED,gEAAgE;AAChE,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,gBAAgB,EAAE,MAAM,SAAS,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC,CAAA;IAC5E,QAAQ,CAAC,CAAC,EAAE,SAAS,CAAA;CACtB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,SAAS,EACT,gBAAgB,EAChB,CAAC,GACF,EAAE,mBAAmB,GAAG,YAAY,GAAG,IAAI,CAiB3C;AAED,oEAAoE;AACpE,UAAU,iBAAiB;IACzB,QAAQ,CAAC,CAAC,EAAE,SAAS,CAAA;IACrB,+EAA+E;IAC/E,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CACjD;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,iBAAiB,GAAG,YAAY,GAAG,IAAI,CAmE5F"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Sessions page of the Settings panel: list, search, filter, selection,
|
|
3
|
+
* archive, and deletion.
|
|
4
|
+
*
|
|
5
|
+
* The list itself is not fetched here. DSH already keeps the Host-authoritative
|
|
6
|
+
* Session catalog and Workspace archive set in the two client stores the shell
|
|
7
|
+
* exposes to every slot (`useSessions` / `useWorkspaces`), and every archive is
|
|
8
|
+
* a Workspace-controller call whose reply updates those stores. Reading them
|
|
9
|
+
* directly means this page shares the sidebar's rows and running states instead
|
|
10
|
+
* of maintaining a second, drifting catalog; deletion is the one operation the
|
|
11
|
+
* client face does not expose, so it still crosses this package's own Host
|
|
12
|
+
* route.
|
|
13
|
+
*
|
|
14
|
+
* Search is deliberately title-only: the row's title is the display title the
|
|
15
|
+
* shell computes (durable title, then project directory name, then id), so the
|
|
16
|
+
* text a reader can see in the row is exactly the text the box matches.
|
|
17
|
+
*/
|
|
18
|
+
import { type ReactElement } from 'react';
|
|
19
|
+
import type { ArchiveResult } from './archive.js';
|
|
20
|
+
import { type Translate } from './locales.js';
|
|
21
|
+
/** The selector-hook shape DSH hands every slot component. */
|
|
22
|
+
type SelectorHook = (selector: (state: any) => any) => any;
|
|
23
|
+
/** The section's injected share: the locale seat plus the Host-backed actions. */
|
|
24
|
+
export interface SessionsSectionProps {
|
|
25
|
+
readonly t: Translate;
|
|
26
|
+
readonly useSessions: SelectorHook;
|
|
27
|
+
readonly useWorkspaces: SelectorHook;
|
|
28
|
+
/** Archive or restore one Session through the Workspace controller. */
|
|
29
|
+
readonly setArchived?: (sessionId: string, archived: boolean, stopActivity: boolean) => Promise<ArchiveResult>;
|
|
30
|
+
/** Ask the Session catalog to refresh after a deletion. */
|
|
31
|
+
readonly refresh?: () => void;
|
|
32
|
+
/** Clear the shell's main view when its Session disappeared. */
|
|
33
|
+
readonly onDeleted?: (sessionId: string) => void;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Render the Sessions page.
|
|
37
|
+
*
|
|
38
|
+
* @param props - the locale seat, the two catalog hooks, and the injected actions.
|
|
39
|
+
* @returns the management surface and its confirmations.
|
|
40
|
+
*/
|
|
41
|
+
export declare function SessionsSection({ t, useSessions, useWorkspaces, setArchived, refresh, onDeleted, }: SessionsSectionProps): ReactElement;
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=settings-section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-section.d.ts","sourceRoot":"","sources":["../../../src/client/settings-section.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAwC,KAAK,YAAY,EAAE,MAAM,OAAO,CAAA;AAO/E,OAAO,KAAK,EAAmB,aAAa,EAAE,MAAM,cAAc,CAAA;AAClE,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAGxE,8DAA8D;AAC9D,KAAK,YAAY,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,KAAK,GAAG,CAAA;AAkC1D,kFAAkF;AAClF,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,WAAW,EAAE,YAAY,CAAA;IAClC,QAAQ,CAAC,aAAa,EAAE,YAAY,CAAA;IACpC,uEAAuE;IACvE,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,KAAK,OAAO,CAAC,aAAa,CAAC,CAAA;IAC9G,2DAA2D;IAC3D,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IAC7B,gEAAgE;IAChE,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CACjD;AA8LD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAC9B,CAAC,EACD,WAAW,EACX,aAAa,EACb,WAAW,EACX,OAAO,EACP,SAAS,GACV,EAAE,oBAAoB,GAAG,YAAY,CA4jBrC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Package-owned stylesheet for the plugin's three surfaces.
|
|
3
|
+
*
|
|
4
|
+
* The native Session menu row and both confirmations are drawn by DSH's own
|
|
5
|
+
* primitives, so this sheet only adds the danger tint on the legacy menu row and
|
|
6
|
+
* on the dialogs' confirm action, the inline refusal blocks, and the Settings
|
|
7
|
+
* page's own controls and table. (Where the menu service carries Delete, its
|
|
8
|
+
* `danger` flag supplies the red row instead.) The section follows the shipped
|
|
9
|
+
* sections' heading and row rhythm. Every color is a `--dsw-*` theme token, so
|
|
10
|
+
* every surface follows the active light or dark appearance — including
|
|
11
|
+
* third-party theme presets — instead of forcing a palette of its own.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Insert the stylesheet once for the plugin lifetime.
|
|
15
|
+
*
|
|
16
|
+
* The tag carries the platform's style-ownership record — `data-plugin` with this
|
|
17
|
+
* package's id, which is what every DSH bundle writes on the tags it injects. A
|
|
18
|
+
* tag carrying no attribute is claimed by whichever module materializes next and
|
|
19
|
+
* deleted with it, so naming the owner here keeps the sheet this plugin's own:
|
|
20
|
+
* only a reload of `dsh-cool-session` retires it, and this effect's disposer
|
|
21
|
+
* removes it then anyway.
|
|
22
|
+
*
|
|
23
|
+
* @returns disposer that removes exactly this element.
|
|
24
|
+
*/
|
|
25
|
+
export declare function insertStyles(): () => void;
|
|
26
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/client/styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAyGH;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,IAAI,MAAM,IAAI,CASzC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* On-disk Session deletion, including the subagent Sessions beneath one root.
|
|
3
|
+
*
|
|
4
|
+
* DSH exposes no deletion command of its own, so this Host module treats the
|
|
5
|
+
* Session artifact as the unit of removal. It first stops whatever the Session
|
|
6
|
+
* still runs, retires the live Session entry, and only then removes the
|
|
7
|
+
* header-verified directory. Paths never come from the request: every directory
|
|
8
|
+
* is derived from the persistence backend's own `locate()` answer and checked
|
|
9
|
+
* to be exactly one Session directory below the configured root.
|
|
10
|
+
*
|
|
11
|
+
* The operation is intentionally fail-closed. A descendant scan that cannot be
|
|
12
|
+
* completed, a directory that leaves the root, a symlink, an artifact whose
|
|
13
|
+
* header names another Session, or a Session that cannot be retired all abort
|
|
14
|
+
* the delete before the first `rm`. A failure after some descendants were
|
|
15
|
+
* already removed is reported as `delete-partial`, with the remaining ids.
|
|
16
|
+
*/
|
|
17
|
+
import type { DeletePayload } from '../shared/contract.js';
|
|
18
|
+
/**
|
|
19
|
+
* Delete one Session and every subagent Session beneath it.
|
|
20
|
+
*
|
|
21
|
+
* @param ctx - the Host plugin context.
|
|
22
|
+
* @param sessionId - the root Session to delete.
|
|
23
|
+
* @returns the deletion summary, or one coded refusal.
|
|
24
|
+
*/
|
|
25
|
+
export declare function deleteSession(ctx: any, sessionId: string): Promise<DeletePayload>;
|
|
26
|
+
//# sourceMappingURL=deletion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deletion.d.ts","sourceRoot":"","sources":["../../../src/host/deletion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAwB,MAAM,uBAAuB,CAAA;AA4ahF;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAsGvF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host entry for dsh-cool-session.
|
|
3
|
+
*
|
|
4
|
+
* The browser half owns the native Session-menu row and its confirmation; this
|
|
5
|
+
* half owns the one destructive artifact operation behind that confirmation.
|
|
6
|
+
* Every question the page asks crosses a same-origin HTTP route served by the
|
|
7
|
+
* `webServer` carrier, because an out-of-tree bundle cannot generate a
|
|
8
|
+
* `ctx.remote` namespace and its Client half never sees the Host Cordis context.
|
|
9
|
+
*
|
|
10
|
+
* The Session and Agent capabilities are read per request rather than declared
|
|
11
|
+
* as hard dependencies: a composition without them still loads the plugin and
|
|
12
|
+
* answers one clear refusal instead of failing the menu row.
|
|
13
|
+
*/
|
|
14
|
+
export declare const name = "dsh-cool-session";
|
|
15
|
+
/** The web carrier is a hard dependency: without it there is no route to serve. */
|
|
16
|
+
export declare const inject: string[];
|
|
17
|
+
/** The route table, exported so a probe or test can address the route by name. */
|
|
18
|
+
export { ROUTES } from './routes.js';
|
|
19
|
+
export declare function apply(ctx: any): void;
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/host/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,eAAO,MAAM,IAAI,qBAAqB,CAAA;AAEtC,mFAAmF;AACnF,eAAO,MAAM,MAAM,UAAgB,CAAA;AAEnC,kFAAkF;AAClF,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,wBAAgB,KAAK,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAIpC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How one Host answer refuses, in the two forms the payloads carry.
|
|
3
|
+
*
|
|
4
|
+
* A refusal this plugin can name travels as a code, because the page is what
|
|
5
|
+
* knows the language to word it in: `shared/contract.ts` defines the code and
|
|
6
|
+
* its params, and `client/locales.ts` owns the sentences. Anything else is text
|
|
7
|
+
* another program wrote — a DSH service message above all — which no dictionary
|
|
8
|
+
* can own, so it travels verbatim.
|
|
9
|
+
*/
|
|
10
|
+
import type { Failure, FailureCode } from '../shared/contract.js';
|
|
11
|
+
/** One refusal, as an `ok: false` payload carries it. */
|
|
12
|
+
export type Refusal = {
|
|
13
|
+
readonly failure: Failure;
|
|
14
|
+
} | {
|
|
15
|
+
readonly error: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* One coded refusal, shaped as a payload carries it.
|
|
19
|
+
*
|
|
20
|
+
* @param code - the refusal, whose sentence the page owns.
|
|
21
|
+
* @param params - the values that sentence interpolates, when it has any.
|
|
22
|
+
* @returns the payload fragment to spread into an `ok: false` answer.
|
|
23
|
+
*/
|
|
24
|
+
export declare function coded(code: FailureCode, params?: Readonly<Record<string, string | number>>): Refusal;
|
|
25
|
+
//# sourceMappingURL=refusal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refusal.d.ts","sourceRoot":"","sources":["../../../src/host/refusal.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEjE,yDAAyD;AACzD,MAAM,MAAM,OAAO,GACf;IAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GAC7B;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAE9B;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,GAAG,OAAO,CAEpG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Host half's HTTP surface.
|
|
3
|
+
*
|
|
4
|
+
* The browser half has no Cordis context and no remote namespace of its own, so
|
|
5
|
+
* the destructive command crosses same-origin routes registered on the
|
|
6
|
+
* `webServer` carrier: one Session per request from the native menu, and one
|
|
7
|
+
* selection per request from the management panel. The routes answer JSON and
|
|
8
|
+
* never reject: a transport, service, or filesystem failure becomes an
|
|
9
|
+
* `{ ok: false }` result the page reports in place.
|
|
10
|
+
*
|
|
11
|
+
* The Host stays authoritative about *what* is deleted. A request names a
|
|
12
|
+
* Session id but never a directory or an Agent: the artifact path is derived and
|
|
13
|
+
* verified by `deletion.ts`, never by the caller. That keeps the page a
|
|
14
|
+
* management surface over DSH's own state rather than a second source of truth.
|
|
15
|
+
*/
|
|
16
|
+
/** Route table, kept in one place so the two halves cannot drift. */
|
|
17
|
+
export declare const ROUTES: {
|
|
18
|
+
readonly delete: "/dsh-cool-session/api/delete";
|
|
19
|
+
readonly deleteMany: "/dsh-cool-session/api/delete-many";
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Serve the deletion routes for one plugin instance.
|
|
23
|
+
*
|
|
24
|
+
* @param ctx - the Host plugin context.
|
|
25
|
+
* @returns a disposer that unregisters exactly this route.
|
|
26
|
+
*/
|
|
27
|
+
export declare function registerRoutes(ctx: any): () => void;
|
|
28
|
+
//# sourceMappingURL=routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../src/host/routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,qEAAqE;AACrE,eAAO,MAAM,MAAM;;;CAGT,CAAA;AAqIV;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,IAAI,CAwCnD"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The wire contract both halves of dsh-cool-session agree on.
|
|
3
|
+
*
|
|
4
|
+
* The browser half never sees the Host Cordis context, so the one destructive
|
|
5
|
+
* command crosses a same-origin HTTP route as JSON shaped by the types below.
|
|
6
|
+
* Nothing here touches Node or the DOM, so the module is bundled into both
|
|
7
|
+
* halves unchanged.
|
|
8
|
+
*
|
|
9
|
+
* Every answer carries `ok`: an `ok: false` result is a normal answer the dialog
|
|
10
|
+
* reports in place, never a rejected promise. The one exception is a transport
|
|
11
|
+
* failure, which the fetch wrapper turns into the same shape.
|
|
12
|
+
*
|
|
13
|
+
* An `ok: false` answer says why in one of two ways. `failure` is a code plus the
|
|
14
|
+
* values its sentence interpolates: only the browser knows the language to name
|
|
15
|
+
* it in, so the page words it from its own dictionaries. `error` is raw diagnostic
|
|
16
|
+
* text from another program, which no dictionary can own.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Every refusal this plugin can name, as a code rather than a sentence.
|
|
20
|
+
*
|
|
21
|
+
* The page renders each one from its own dictionary, so the same refusal reads
|
|
22
|
+
* in whatever language the browser is set to. The sentences live in
|
|
23
|
+
* `client/locales.ts` keyed `error.<code>`.
|
|
24
|
+
*/
|
|
25
|
+
export type FailureCode = 'missing-session' | 'unknown-session' | 'subagent-delete' | 'delete-failed' | 'delete-unsupported' | 'delete-active' | 'session-live' | 'delete-partial' | 'session-running';
|
|
26
|
+
/** One coded refusal, with the values its sentence interpolates. */
|
|
27
|
+
export interface Failure {
|
|
28
|
+
/** The refusal, whose sentence is the page's `error.<code>` entry. */
|
|
29
|
+
readonly code: FailureCode;
|
|
30
|
+
/** Values for the sentence's `{name}` placeholders. */
|
|
31
|
+
readonly params?: Readonly<Record<string, string | number>>;
|
|
32
|
+
}
|
|
33
|
+
/** `POST /delete-many`: remove several Sessions in one request, in order. */
|
|
34
|
+
export interface DeleteManyPayload {
|
|
35
|
+
readonly ok: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Raw refusal when a batch request could not be carried out. Results from
|
|
38
|
+
* batches that finished before it are still present.
|
|
39
|
+
*/
|
|
40
|
+
readonly error?: string;
|
|
41
|
+
/** One answer per attempted Session, in request order. */
|
|
42
|
+
readonly results?: readonly DeletePayload[];
|
|
43
|
+
}
|
|
44
|
+
/** `POST /delete`: remove one Session and every subagent Session beneath it. */
|
|
45
|
+
export interface DeletePayload {
|
|
46
|
+
readonly ok: boolean;
|
|
47
|
+
readonly error?: string;
|
|
48
|
+
readonly failure?: Failure;
|
|
49
|
+
readonly sessionId?: string;
|
|
50
|
+
/** Every Session whose artifact was removed, descendants first. */
|
|
51
|
+
readonly deletedSessions?: readonly string[];
|
|
52
|
+
/** The subagent Sessions included in {@link deletedSessions}. */
|
|
53
|
+
readonly deletedSubagents?: readonly string[];
|
|
54
|
+
/** Sessions still present after a partial deletion. */
|
|
55
|
+
readonly remainingSessions?: readonly string[];
|
|
56
|
+
/** Whether at least one on-disk Session directory was removed. */
|
|
57
|
+
readonly filesRemoved?: boolean;
|
|
58
|
+
/** Cleanup that failed after the artifacts were already removed. */
|
|
59
|
+
readonly warnings?: readonly string[];
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../src/shared/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAEnB,iBAAiB,GAEjB,iBAAiB,GACjB,iBAAiB,GAEjB,eAAe,GACf,oBAAoB,GACpB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"0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "DeepSeek Harness session management plugin — a Sessions page in Settings for search, filters, archive, and batch delete, plus a delete row in the session menu.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "CoolTea",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/CoolTea001/dsh-cool-plugins.git",
|
|
11
|
+
"directory": "plugins/dsh-cool-session"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/CoolTea001/dsh-cool-plugins/tree/master/plugins/dsh-cool-session#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/CoolTea001/dsh-cool-plugins/issues"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"dsh",
|
|
19
|
+
"cordis",
|
|
20
|
+
"plugin",
|
|
21
|
+
"session",
|
|
22
|
+
"deepseek-harness"
|
|
23
|
+
],
|
|
24
|
+
"main": "lib/index.js",
|
|
25
|
+
"types": "lib/types/host/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./lib/types/host/index.d.ts",
|
|
29
|
+
"default": "./lib/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./client": {
|
|
32
|
+
"types": "./lib/types/client/index.d.ts",
|
|
33
|
+
"default": "./lib/client.js"
|
|
34
|
+
},
|
|
35
|
+
"./package.json": "./package.json"
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"lib",
|
|
39
|
+
"cordis.patch.yml",
|
|
40
|
+
"README.md",
|
|
41
|
+
"README.zh.md"
|
|
42
|
+
],
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public",
|
|
45
|
+
"registry": "https://registry.npmjs.org/"
|
|
46
|
+
},
|
|
47
|
+
"dsh": {
|
|
48
|
+
"bundle": {
|
|
49
|
+
"patch": "./cordis.patch.yml"
|
|
50
|
+
},
|
|
51
|
+
"client": {
|
|
52
|
+
"inject": [],
|
|
53
|
+
"platform": "web"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"engines": {
|
|
57
|
+
"node": "^22.19.0 || >=24.0.0"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@dsh-cool/tsdown-config": "0.0.0"
|
|
61
|
+
},
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"react": "^18.2.0"
|
|
64
|
+
},
|
|
65
|
+
"scripts": {
|
|
66
|
+
"build": "tsdown && tsc -p tsconfig.json --emitDeclarationOnly",
|
|
67
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
68
|
+
"check": "pnpm typecheck && pnpm build",
|
|
69
|
+
"dev": "tsdown --watch",
|
|
70
|
+
"dev:types": "tsc -p tsconfig.json --watch --emitDeclarationOnly"
|
|
71
|
+
}
|
|
6
72
|
}
|