@xrn1997/dsh-session-delete 0.13.0 → 0.14.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/LICENSE +201 -201
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/cordis.patch.yml +7 -7
- package/docs/DETAIL.md +1 -1
- package/docs/DETAIL.zh.md +1 -1
- package/lib/client.js +7430 -7370
- package/lib/types/client/{batch-bar.d.ts → batch/batch-bar.d.ts} +2 -2
- package/lib/types/client/{batch-menu-item.d.ts → batch/batch-menu-item.d.ts} +1 -1
- package/lib/types/client/{batch-pick.d.ts → batch/batch-pick.d.ts} +1 -1
- package/lib/types/client/{batch-select.d.ts → batch/batch-select.d.ts} +2 -2
- package/lib/types/client/{delete-menu-item.d.ts → batch/delete-menu-item.d.ts} +1 -1
- package/lib/types/client/batch/index.d.ts +10 -0
- package/lib/types/client/{copy.d.ts → core/copy.d.ts} +2 -2
- package/lib/types/client/{receipt.d.ts → core/receipt.d.ts} +1 -1
- package/lib/types/client/{remote.d.ts → core/remote.d.ts} +1 -1
- package/lib/types/client/detail/block-render.d.ts +22 -0
- package/lib/types/client/{detail-blocks.d.ts → detail/detail-blocks.d.ts} +1 -1
- package/lib/types/client/detail/detail-style.d.ts +62 -0
- package/lib/types/client/detail/detail-text.d.ts +18 -0
- package/lib/types/client/detail/index.d.ts +17 -0
- package/lib/types/client/{markdown.d.ts → detail/markdown.d.ts} +2 -2
- package/lib/types/client/{prompt-rail.d.ts → detail/prompt-rail.d.ts} +2 -2
- package/lib/types/client/{session-detail.d.ts → detail/session-detail.d.ts} +3 -12
- package/lib/types/client/{subagent-section.d.ts → detail/subagent-section.d.ts} +2 -2
- package/lib/types/client/{use-archive-detail-reader.d.ts → detail/use-archive-detail-reader.d.ts} +2 -2
- package/lib/types/client/{use-detail-pager.d.ts → detail/use-detail-pager.d.ts} +1 -1
- package/lib/types/client/{use-detail-rail.d.ts → detail/use-detail-rail.d.ts} +1 -1
- package/lib/types/client/{use-detail-reader.d.ts → detail/use-detail-reader.d.ts} +3 -3
- package/lib/types/client/{use-prompt-rail.d.ts → detail/use-prompt-rail.d.ts} +1 -1
- package/lib/types/client/{use-trash-detail-reader.d.ts → detail/use-trash-detail-reader.d.ts} +2 -2
- package/lib/types/client/{context-menu-actions.d.ts → host/context-menu-actions.d.ts} +2 -2
- package/lib/types/client/host/guard.d.ts +16 -0
- package/lib/types/client/{host-archive-watch.d.ts → host/host-archive-watch.d.ts} +1 -1
- package/lib/types/client/host/index.d.ts +11 -0
- package/lib/types/client/{archive-detail.d.ts → panel/archive-detail.d.ts} +3 -5
- package/lib/types/client/{archive-pane.d.ts → panel/archive-pane.d.ts} +10 -10
- package/lib/types/client/{detail-pane.d.ts → panel/detail-pane.d.ts} +3 -3
- package/lib/types/client/panel/index.d.ts +9 -0
- package/lib/types/client/{panel-tab.d.ts → panel/panel-tab.d.ts} +3 -3
- package/lib/types/client/{session-list.d.ts → panel/session-list.d.ts} +4 -4
- package/lib/types/client/{trash-confirm.d.ts → panel/trash-confirm.d.ts} +2 -12
- package/lib/types/client/{trash-detail.d.ts → panel/trash-detail.d.ts} +4 -6
- package/lib/types/client/{trash-drop.d.ts → panel/trash-drop.d.ts} +1 -1
- package/lib/types/client/{trash-entry.d.ts → panel/trash-entry.d.ts} +2 -2
- package/lib/types/client/{trash-panel.d.ts → panel/trash-panel.d.ts} +1 -1
- package/lib/types/client/{trash-tab.d.ts → panel/trash-tab.d.ts} +7 -7
- package/lib/types/client/{use-archive-panel-controller.d.ts → panel/use-archive-panel-controller.d.ts} +5 -5
- package/lib/types/client/{use-archive-query.d.ts → panel/use-archive-query.d.ts} +2 -2
- package/lib/types/client/{use-list-selection.d.ts → panel/use-list-selection.d.ts} +1 -1
- package/lib/types/client/{use-panel-child-view.d.ts → panel/use-panel-child-view.d.ts} +1 -1
- package/lib/types/client/{use-panel-tab.d.ts → panel/use-panel-tab.d.ts} +8 -11
- package/lib/types/client/{use-trash-panel-controller.d.ts → panel/use-trash-panel-controller.d.ts} +4 -4
- package/lib/types/client/{use-trash-query.d.ts → panel/use-trash-query.d.ts} +4 -4
- package/lib/types/client/{view-switches.d.ts → panel/view-switches.d.ts} +1 -1
- package/lib/types/client/scene.d.ts +8 -8
- package/lib/types/client/search/index.d.ts +12 -0
- package/lib/types/client/{search-box.d.ts → search/search-box.d.ts} +1 -1
- package/lib/types/client/{search-preview.d.ts → search/search-preview.d.ts} +2 -2
- package/lib/types/client/{search-results.d.ts → search/search-results.d.ts} +2 -2
- package/lib/types/client/{use-search-view.d.ts → search/use-search-view.d.ts} +2 -2
- package/lib/types/client/{use-search.d.ts → search/use-search.d.ts} +2 -2
- package/lib/types/client/{config-settings.d.ts → settings/config-settings.d.ts} +2 -2
- package/lib/types/client/settings/index.d.ts +8 -0
- package/lib/types/client/{maintenance-parts.d.ts → settings/maintenance-parts.d.ts} +1 -1
- package/lib/types/client/{maintenance-settings.d.ts → settings/maintenance-settings.d.ts} +1 -1
- package/lib/types/client/settings/orphan-confirm.d.ts +12 -0
- package/lib/types/client/{orphan-maintenance.d.ts → settings/orphan-maintenance.d.ts} +3 -3
- package/lib/types/client/{settings-cards.d.ts → settings/settings-cards.d.ts} +2 -2
- package/lib/types/client/{use-maintenance-section.d.ts → settings/use-maintenance-section.d.ts} +1 -1
- package/lib/types/client/{use-maintenance.d.ts → settings/use-maintenance.d.ts} +4 -4
- package/lib/types/client/{batch-selection-store.d.ts → state/batch-selection-store.d.ts} +11 -4
- package/lib/types/client/state/delete-action.d.ts +16 -0
- package/lib/types/client/{main-view.d.ts → state/main-view.d.ts} +1 -1
- package/lib/types/client/{trash-snapshot.d.ts → state/trash-snapshot.d.ts} +1 -1
- package/lib/types/client/ui/Button.d.ts +2 -1
- package/lib/types/client/ui/ErrorBoundary.d.ts +4 -8
- package/lib/types/client/ui/Tooltip.d.ts +3 -2
- package/lib/types/client/ui/inert.d.ts +15 -0
- package/lib/types/client/{attachment-view.d.ts → widgets/attachment-view.d.ts} +2 -2
- package/lib/types/client/{trash-view.d.ts → widgets/trash-view.d.ts} +3 -1
- package/lib/types/client/write/delete-action-host.d.ts +4 -0
- package/lib/types/client/write/index.d.ts +13 -0
- package/lib/types/client/{undo-toast.d.ts → write/undo-toast.d.ts} +2 -2
- package/lib/types/client/{use-write-progress.d.ts → write/use-write-progress.d.ts} +2 -2
- package/lib/types/client/{write-progress.d.ts → write/write-progress.d.ts} +1 -1
- package/lib/types/client/{write-seats.d.ts → write/write-seats.d.ts} +7 -15
- package/lib/types/shared/wire.d.ts +2 -2
- package/package.json +7 -7
- package/lib/types/client/delete-action.d.ts +0 -23
- package/lib/types/client/ui/Tag.d.ts +0 -16
- /package/lib/types/client/{api-base.d.ts → core/api-base.d.ts} +0 -0
- /package/lib/types/client/{context.d.ts → core/context.d.ts} +0 -0
- /package/lib/types/client/{detail-ledger.d.ts → core/detail-ledger.d.ts} +0 -0
- /package/lib/types/client/{plugin.d.ts → core/plugin.d.ts} +0 -0
- /package/lib/types/client/{use-gated-refresh.d.ts → core/use-gated-refresh.d.ts} +0 -0
- /package/lib/types/client/{use-prefetch.d.ts → core/use-prefetch.d.ts} +0 -0
- /package/lib/types/client/{store.d.ts → core/value-store.d.ts} +0 -0
- /package/lib/types/client/{use-detail-frame.d.ts → detail/use-detail-frame.d.ts} +0 -0
- /package/lib/types/client/{session-live.d.ts → host/session-live.d.ts} +0 -0
- /package/lib/types/client/{drop-machine.d.ts → panel/drop-machine.d.ts} +0 -0
- /package/lib/types/client/{trash-nav.d.ts → panel/trash-nav.d.ts} +0 -0
- /package/lib/types/client/{use-column-resize.d.ts → panel/use-column-resize.d.ts} +0 -0
- /package/lib/types/client/{use-panel-list-read.d.ts → panel/use-panel-list-read.d.ts} +0 -0
- /package/lib/types/client/{use-panel-selection.d.ts → panel/use-panel-selection.d.ts} +0 -0
- /package/lib/types/client/{use-panel-width.d.ts → panel/use-panel-width.d.ts} +0 -0
- /package/lib/types/client/{search-text.d.ts → search/search-text.d.ts} +0 -0
- /package/lib/types/client/{settings-view.d.ts → settings/settings-view.d.ts} +0 -0
- /package/lib/types/client/{archive-store.d.ts → state/archive-store.d.ts} +0 -0
- /package/lib/types/client/{host-rows.d.ts → state/host-rows.d.ts} +0 -0
- /package/lib/types/client/{pending-open.d.ts → state/pending-open.d.ts} +0 -0
- /package/lib/types/client/{trash-store.d.ts → state/trash-store.d.ts} +0 -0
- /package/lib/types/client/{undo-notices.d.ts → state/undo-notices.d.ts} +0 -0
- /package/lib/types/client/{confirm-dialog.d.ts → widgets/confirm-dialog.d.ts} +0 -0
- /package/lib/types/client/{notice.d.ts → widgets/notice.d.ts} +0 -0
- /package/lib/types/client/{busy-gate.d.ts → write/busy-gate.d.ts} +0 -0
|
@@ -282,7 +282,7 @@ export interface TrashDetailPromptWire {
|
|
|
282
282
|
}
|
|
283
283
|
/** 会话详情公共基座(回收站与归档两档共用):块按页给,计数按整条日志。 */
|
|
284
284
|
export interface SessionDetailWire {
|
|
285
|
-
/** 日志 header 里的原串(**无损**,比从 `projectKey` 反推那一路强;组头怎么念项目名见 `src/client/trash-view.ts` 的 `projectLabel`,那是另一回事)。 */
|
|
285
|
+
/** 日志 header 里的原串(**无损**,比从 `projectKey` 反推那一路强;组头怎么念项目名见 `src/client/widgets/trash-view.ts` 的 `projectLabel`,那是另一回事)。 */
|
|
286
286
|
cwd: string;
|
|
287
287
|
createdAt: number;
|
|
288
288
|
lastActivity: number;
|
|
@@ -635,6 +635,6 @@ export declare function isApplyOutcomeOf<A extends ApplyAction>(value: unknown,
|
|
|
635
635
|
/** 写入进度(`WriteProgressWire`)的判形:遥测快照不走 `/apply` 值那套 schema DSL,
|
|
636
636
|
* 与 `list`/`ping` 同法手写——只校判别键与渲染必读的那几格。 */
|
|
637
637
|
export declare function isWriteProgressWire(value: unknown): value is WriteProgressWire;
|
|
638
|
-
/** 段名表逐段的 JSON 值判形(`src/client/remote.ts` 的成功支只在这里问一次)。 */
|
|
638
|
+
/** 段名表逐段的 JSON 值判形(`src/client/core/remote.ts` 的成功支只在这里问一次)。 */
|
|
639
639
|
export declare const WIRE_VALUE_GUARDS: Record<JsonRouteName, WireValueGuard>;
|
|
640
640
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xrn1997/dsh-session-delete",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "在 DeepSeek Harness 里清理会话:可恢复的移入回收站,无恢复路径的彻底删除需二次确认",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@11.25.0",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"gates": "pnpm typecheck && pnpm lint && pnpm test && pnpm build && pnpm run pack:dry"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"react": "^18.3.1",
|
|
54
|
-
"react-dom": "18.3.1"
|
|
53
|
+
"react": "^18.3.1 || ^19.3.1",
|
|
54
|
+
"react-dom": "^18.3.1 || ^19.3.1"
|
|
55
55
|
},
|
|
56
56
|
"peerDependenciesMeta": {
|
|
57
57
|
"react": {
|
|
@@ -68,15 +68,15 @@
|
|
|
68
68
|
"@testing-library/jest-dom": "^6.10.0",
|
|
69
69
|
"@testing-library/react": "^16.3.3",
|
|
70
70
|
"@types/node": "24.19.0",
|
|
71
|
-
"@types/react": "
|
|
72
|
-
"@types/react-dom": "
|
|
71
|
+
"@types/react": "~19.3.3",
|
|
72
|
+
"@types/react-dom": "~19.3.0",
|
|
73
73
|
"@types/semver": "^7.8.0",
|
|
74
74
|
"eslint": "^10.14.0",
|
|
75
75
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
76
76
|
"globals": "^17.13.0",
|
|
77
77
|
"jsdom": "^26.1.0",
|
|
78
|
-
"react": "^
|
|
79
|
-
"react-dom": "
|
|
78
|
+
"react": "^19.3.1",
|
|
79
|
+
"react-dom": "^19.3.1",
|
|
80
80
|
"react-markdown": "^10.1.0",
|
|
81
81
|
"remark-gfm": "^4.0.1",
|
|
82
82
|
"semver": "^7.8.5",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { OneShotDeps } from './remote.js';
|
|
2
|
-
import { type TrashMoveTarget } from './write-seats.js';
|
|
3
|
-
export interface DeleteActionRequest extends TrashMoveTarget {
|
|
4
|
-
readonly seq: number;
|
|
5
|
-
}
|
|
6
|
-
export interface DeleteActionScene {
|
|
7
|
-
request(input: TrashMoveTarget): void;
|
|
8
|
-
clear(expected: DeleteActionRequest): void;
|
|
9
|
-
use(): DeleteActionRequest | null;
|
|
10
|
-
reset(): void;
|
|
11
|
-
}
|
|
12
|
-
export declare function createDeleteActionScene(): DeleteActionScene;
|
|
13
|
-
export declare function requestDelete(input: TrashMoveTarget): void;
|
|
14
|
-
export declare function useDeleteActionRequest(): DeleteActionRequest | null;
|
|
15
|
-
/**
|
|
16
|
-
* 菜单「移入回收站」的常驻动作宿主(挂 `shell.overlay`,不画界面):
|
|
17
|
-
* - 按 `handledRef` 认同一个请求对象引用,挡住 React StrictMode 对同一请求的二次 effect;
|
|
18
|
-
* - 按 `inFlightRef` 维护跨 tick 的单会话单飞,同一会话在飞时再点菜单不发第二趟写;
|
|
19
|
-
* - 错误兜底 + finally 清请求,防止 unhandled rejection 或请求悬挂。
|
|
20
|
-
*/
|
|
21
|
-
export declare function DeleteActionHost({ deps }: {
|
|
22
|
-
deps: OneShotDeps;
|
|
23
|
-
}): null;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `Tag`(**照抄** `@deepseek-ai/dsh-client-ui-primitives@0.2.0-rc.2` 的 Tag,出处与三条改写规则见
|
|
3
|
-
* `ui.css` 头注):只读的状态胶囊。
|
|
4
|
-
*
|
|
5
|
-
* 官方那套有八个 tone(outline/solid/neutral/quiet/success/info/warning/danger),本插件只用
|
|
6
|
-
* **danger 一档**(确认框里的失败原文)⇒ 这里只有这一个 tone,`tone` 收成单值联合而不是"先铺开、
|
|
7
|
-
* 以后可能用得上"。要加第二档时,把对应那条 CSS 与这个联合一起加。
|
|
8
|
-
*/
|
|
9
|
-
import type { ReactElement, ReactNode } from 'react';
|
|
10
|
-
import './styles.js';
|
|
11
|
-
export interface TagProps {
|
|
12
|
-
/** 唯一的色板:破坏性/失败面(error 色的 10% 透明底 + error 字)。 */
|
|
13
|
-
tone: 'danger';
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
}
|
|
16
|
-
export declare function Tag({ tone, children }: TagProps): ReactElement;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|