@xrn1997/dsh-session-delete 0.11.0 → 0.13.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.
Files changed (85) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +20 -19
  3. package/THIRD_PARTY_NOTICES.md +2 -2
  4. package/cordis.patch.yml +7 -7
  5. package/docs/DETAIL.md +1 -1
  6. package/docs/DETAIL.zh.md +1 -1
  7. package/docs/screenshots/screenshot-01.png +0 -0
  8. package/docs/screenshots/screenshot-02.png +0 -0
  9. package/lib/client.js +4295 -2160
  10. package/lib/index.js +1273 -243
  11. package/lib/types/api/archive-rows.d.ts +1 -1
  12. package/lib/types/api/project-ranks.d.ts +3 -0
  13. package/lib/types/api/route-table.d.ts +2 -1
  14. package/lib/types/api/search.d.ts +7 -0
  15. package/lib/types/api/trash-rows.d.ts +1 -1
  16. package/lib/types/client/archive-detail.d.ts +7 -2
  17. package/lib/types/client/archive-pane.d.ts +26 -7
  18. package/lib/types/client/archive-store.d.ts +2 -0
  19. package/lib/types/client/attachment-view.d.ts +1 -1
  20. package/lib/types/client/batch-bar.d.ts +1 -1
  21. package/lib/types/client/batch-select.d.ts +2 -2
  22. package/lib/types/client/batch-selection-store.d.ts +7 -8
  23. package/lib/types/client/confirm-dialog.d.ts +6 -2
  24. package/lib/types/client/context.d.ts +11 -3
  25. package/lib/types/client/copy.d.ts +58 -23
  26. package/lib/types/client/delete-action.d.ts +23 -0
  27. package/lib/types/client/delete-menu-item.d.ts +3 -3
  28. package/lib/types/client/drop-machine.d.ts +1 -1
  29. package/lib/types/client/markdown.d.ts +1 -1
  30. package/lib/types/client/panel-tab.d.ts +25 -3
  31. package/lib/types/client/receipt.d.ts +1 -1
  32. package/lib/types/client/remote.d.ts +23 -2
  33. package/lib/types/client/scene.d.ts +5 -7
  34. package/lib/types/client/search-box.d.ts +24 -0
  35. package/lib/types/client/search-preview.d.ts +46 -0
  36. package/lib/types/client/search-results.d.ts +62 -0
  37. package/lib/types/client/search-text.d.ts +13 -0
  38. package/lib/types/client/session-detail.d.ts +17 -1
  39. package/lib/types/client/subagent-section.d.ts +2 -2
  40. package/lib/types/client/trash-detail.d.ts +7 -2
  41. package/lib/types/client/trash-drop.d.ts +3 -3
  42. package/lib/types/client/trash-entry.d.ts +1 -1
  43. package/lib/types/client/trash-store.d.ts +2 -0
  44. package/lib/types/client/trash-tab.d.ts +21 -1
  45. package/lib/types/client/trash-view.d.ts +7 -6
  46. package/lib/types/client/ui/Modal.d.ts +5 -4
  47. package/lib/types/client/ui/Toast.d.ts +13 -3
  48. package/lib/types/client/ui/anchor-fit.d.ts +42 -0
  49. package/lib/types/client/ui/icons.d.ts +13 -2
  50. package/lib/types/client/undo-notices.d.ts +26 -28
  51. package/lib/types/client/undo-toast.d.ts +0 -6
  52. package/lib/types/client/use-archive-panel-controller.d.ts +5 -6
  53. package/lib/types/client/use-detail-rail.d.ts +2 -0
  54. package/lib/types/client/use-gated-refresh.d.ts +7 -1
  55. package/lib/types/client/use-panel-tab.d.ts +1 -1
  56. package/lib/types/client/use-search-view.d.ts +59 -0
  57. package/lib/types/client/use-search.d.ts +62 -0
  58. package/lib/types/client/use-trash-panel-controller.d.ts +6 -0
  59. package/lib/types/client/view-switches.d.ts +29 -0
  60. package/lib/types/client/write-seats.d.ts +21 -13
  61. package/lib/types/log/session-log.d.ts +4 -1
  62. package/lib/types/ports/agent-handles.d.ts +3 -2
  63. package/lib/types/ports/home.d.ts +1 -1
  64. package/lib/types/ports/host-port.d.ts +7 -2
  65. package/lib/types/shared/wire.d.ts +142 -3
  66. package/lib/types/trash/attachments.d.ts +5 -1
  67. package/lib/types/trash/content-text.d.ts +10 -0
  68. package/lib/types/trash/groups.d.ts +18 -6
  69. package/lib/types/trash/search-corpus.d.ts +40 -0
  70. package/lib/types/trash/search-text.d.ts +43 -0
  71. package/lib/types/trash/shrinking-view.d.ts +6 -4
  72. package/lib/types/verbs/batch.d.ts +10 -7
  73. package/lib/types/verbs/delete-session.d.ts +1 -1
  74. package/lib/types/verbs/member-journal.d.ts +1 -1
  75. package/lib/types/verbs/move-directory.d.ts +10 -0
  76. package/lib/types/verbs/orphan-subagents.d.ts +2 -2
  77. package/lib/types/verbs/permanent-removal.d.ts +23 -7
  78. package/lib/types/verbs/restore-session.d.ts +3 -3
  79. package/lib/types/verbs/search.d.ts +53 -0
  80. package/lib/types/verbs/trash-scope.d.ts +5 -1
  81. package/locale/en.json +1 -1
  82. package/locale/zh.json +1 -1
  83. package/package.json +2 -2
  84. package/lib/types/client/batch-confirm.d.ts +0 -36
  85. package/lib/types/client/delete-confirm.d.ts +0 -52
package/LICENSE CHANGED
@@ -1,201 +1,201 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright 2026 xrn1997
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 xrn1997
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
6
6
  [![Tested with DSH 0.2.0-rc.2 … 0.2.2-rc.5](https://img.shields.io/badge/DSH-0.2.0--rc.2%20%E2%80%A6%200.2.2--rc.5-brightgreen)](#兼容性)
7
7
 
8
- > **DeepSeek Harness(DSH)会话回收站插件** —— DSH 原生只有「归档」没有「删除」。本插件补上可恢复的删除:删除即移入本地回收站,随时还原;彻底删除是另一件显式动作。
8
+ > **DeepSeek Harness(DSH)会话回收站插件** —— DSH 原生只有「归档」没有删除。本插件补上「移入回收站」:会话移进本地回收站、随时还原;彻底删除是另一件显式动作。
9
9
 
10
10
  ![回收站面板:顶部是「回收站 | 归档」平级分段;左列是按项目分组的无边框会话行(行右是恢复 / 彻底删除图标按钮),右栏是会话信息表、计量行、收起成摘要条的子会话段与四档「工作步骤」正文,右缘是提问轨,页脚是整页唯一的实心红按钮「清空回收站…」](docs/screenshots/screenshot-01.png)
11
11
 
@@ -15,11 +15,12 @@
15
15
 
16
16
  ## 核心特性
17
17
 
18
- - **删除 = 移入回收站**:会话行「⋯」→「删除」并确认后移入回收站,同时出现一条 6 秒的「撤销」;也可直接把会话行拖到侧栏「回收站」入口松手即删(不弹确认框,同样由撤销横幅兜底);删掉正打开着的会话时对话随删除关闭,点撤销会重新打开。
19
- - **按整组删**:父会话与它的子代理后代一起移入;任一会话在跑就整组拒绝、零副作用(「在新对话中分支」出来的 fork 是独立会话)。
20
- - **批量操作**:宿主会话列表「⋯ → 多选」一次确认批量移入(多选模式内支持 `Shift`+点击范围勾选,拖其中一条到侧栏回收站可一拖删整集),成功的 6 秒内可整批撤销;回收站面板里另有「多选」(同样支持 `Shift`+点击范围勾选),可批量恢复或批量彻底删除。失败不连坐,留在原位可重试。
21
- - **看得见的写入进度**:删除、恢复、彻底删除与清空在飞时,确认框显示服务端真实处理到的条目数、当前步骤与已用时间;排在另一趟写入后面时只显示排队中,不冒用别的进度。
22
- - **回收站面板**:左侧清单右侧详情、按项目分组、分栏可拖;「归档」档与回收站平级,已归档会话可只读预览、一步解除归档或删除。
18
+ - **移入回收站(可恢复)**:会话行「⋯」→「移入回收站」即执行,不弹确认框,同时出现一条 6 秒的「撤销」;也可直接把会话行拖到侧栏「回收站」入口松手即移入回收站;误操作靠撤销横幅与可恢复的回收站兜底。把正打开着的会话移入回收站时对话随之关闭,点撤销会重新打开。
19
+ - **按整组移入回收站**:父会话与它的子代理后代一起移入;任一会话在跑就整组拒绝、零副作用(「在新对话中分支」出来的 fork 是独立会话)。
20
+ - **批量操作**:宿主会话列表「⋯ → 多选」勾选后点「移入回收站」即批量执行(支持 `Shift`+点击范围勾选,拖其中一条到侧栏回收站可一拖把整集移入回收站),成功的 6 秒内可整批撤销;回收站面板里另有「多选」(同样支持 `Shift`+点击范围勾选),可批量恢复或批量彻底删除。失败不连坐,勾选收缩到失败项,可再点一次重试。
21
+ - **看得见的写入进度**:批量恢复与彻底删除、清空回收站在飞时,确认框显示服务端真实处理到的条目数、当前步骤与已用时间;单条恢复是即执行、没有确认框,撤销横幅里的恢复动作把同一条进度行放上横幅;排在另一趟写入后面时只显示排队中,不冒用别的进度。
22
+ - **回收站面板**:左侧清单右侧详情、按项目分组、分栏可拖;「归档」档与回收站平级,已归档会话可只读预览、一步解除归档或移入回收站。
23
+ - **按标题与正文检索**:两档共用一个检索框,按会话标题与对话正文(只含用户与助手文字)找回会话;标题命中一次给全,正文命中随扫描续页追加,选中即预览命中前后文并可直接恢复 / 解除归档 / 彻底删除。不建索引、每次现扫日志,读不出或过大的会话单列「未参与检索」——不是「没有」。
23
24
  - **看得见正文再决定**:详情完整还原对话(提问、助手文字与思考、工具调用与结果、注入上下文、系统消息与压缩标记),长会话可「加载更早」分页;正文有「简洁 / 标准 / 详细 / 完全展开」四档,默认「标准」把连续过程块收成一行「工作步骤」,点开仍逐条折叠;右缘提问轨一点跳到那句;子会话收起成摘要条、点开进孩子详情;图片可放大、文件可下载。
24
25
  - **显式彻底删除**:单条与「清空回收站…」都带二次确认;单条报这一次释放多少,批量报条数,清空只报不可恢复;**永不自动过期**。
25
26
  - **手动维护**:设置页「维护」卡检查并清理「孤儿会话」「孤儿附件」「投影缓存」,看过结果再决定,不自动扫描。
@@ -48,15 +49,15 @@ dsh plugin --profile <profile> add @xrn1997/dsh-session-delete
48
49
 
49
50
  ## 使用指南
50
51
 
51
- **删一条**:会话行「⋯」→「删除」确认后,这条会话所在的组(含子会话)移入回收站;点顶部提示条里的「撤销」恢复。也可以直接把会话行拖到侧栏「回收站」入口松手即删(无确认框,误拖同样点「撤销」恢复)。正在运行的会话菜单项置灰(0.2.2 起显示「删除(运行中)」,≤0.2.1 用 tooltip 说明先停止);拖放运行中的会话会抖动拒收;**列表里看不见的子会话在跑也算**——服务端整组拒绝并回原文。
52
+ **单条移入回收站**:会话行「⋯」→「移入回收站」即执行,这条会话所在的组(含子会话)移入回收站;点顶部提示条里的「撤销」恢复。也可以直接把会话行拖到侧栏「回收站」入口松手即移入回收站。正在运行的会话菜单项置灰(0.2.2 起显示「移入回收站(运行中)」,≤0.2.1 用 tooltip 说明先停止);拖放运行中的会话会抖动拒收;**列表里看不见的子会话在跑也算**——服务端整组拒绝并回原文。
52
53
 
53
- ![会话行的「⋯」菜单:宿主原有动作之后,本插件加了「多选」与红色的「删除」两行](docs/screenshots/screenshot-02.png)
54
+ ![会话行的「⋯」菜单:宿主原有动作之后,本插件加了「多选」与红色的「移入回收站」两行](docs/screenshots/screenshot-02.png)
54
55
 
55
- **删一批**:「⋯」→「多选」进入批量模式,勾选(支持 `Shift`+点击连续范围勾选)后点浮条里的「移入回收站」一次完成,或直接拖动勾选集内的任一行到侧栏「回收站」入口整批删除。
56
+ **批量移入回收站**:「⋯」→「多选」进入批量模式,勾选(支持 `Shift`+点击连续范围勾选)后点浮条里的「移入回收站」即完成,或直接拖动勾选集内的任一行到侧栏「回收站」入口整批移入回收站。
56
57
 
57
- ![批量删除模式:两行已勾选,浮条显示「已选 2 条」与展开的已选清单,动作是「移入回收站 2 条」与「退出多选」](docs/screenshots/screenshot-03.png)
58
+ ![多选批量模式:两行已勾选,浮条显示「已选 2 条」与展开的已选清单,动作是「移入回收站 2 条」与「退出多选」](docs/screenshots/screenshot-03.png)
58
59
 
59
- **浏览与恢复**:侧栏「回收站」入口进两栏面板(窄屏下钻),顶部切换「回收站 | 归档」两档。左列按项目分组,右侧预览正文;「恢复」送回原项目(原工作区不在了归入「未分组」),「彻底删除」或「清空回收站…」永久释放空间,两者共用二次确认。归档档里可一步解除归档;删除归档会话后撤销,回到的是「归档」。
60
+ **浏览与恢复**:侧栏「回收站」入口进两栏面板(窄屏下钻),顶部切换「回收站 | 归档」两档。工具行的检索框按标题与正文找会话(`⌘K` / `Ctrl+K` 聚焦,`Esc` 清空;检索态下点「多选」会先清检索);左列按项目分组,右侧预览正文;「恢复」送回原项目(原工作区不在了归入「未分组」),「彻底删除」或「清空回收站…」永久释放空间,两者共用二次确认。归档档里可一步解除归档;归档档里的会话移入回收站后撤销,回到的是「归档」。
60
61
 
61
62
  ## 数据存储与安全
62
63
 
@@ -93,23 +94,23 @@ dsh plugin --profile <profile> add @xrn1997/dsh-session-delete
93
94
 
94
95
  ## 常见问题
95
96
 
96
- **装完侧栏没有「回收站」,会话菜单里也没有「删除」?**
97
+ **装完侧栏没有「回收站」,会话菜单里也没有「移入回收站」?**
97
98
  先重启宿主。若仍没有,说明这台宿主没通过数据通道探测——插件会隐藏全部入口,这是有意的「不可用」表达,不影响宿主稳定性。
98
99
 
99
- **删除后侧栏那一行没有立刻消失?**
100
+ **移入回收站后侧栏那一行没有立刻消失?**
100
101
  插件只在确认宿主列表已真正移除后才移除行;短暂残留刷新页面即可。
101
102
 
102
- **正在运行的会话为什么删不掉?**
103
- 本行菜单项置灰;看不见的子会话在跑时由服务端整组拒绝并回原文。插件不替你终止任务,先停止再删。
103
+ **正在运行的会话为什么不能移入回收站?**
104
+ 本行菜单项置灰;看不见的子会话在跑时由服务端整组拒绝并回原文。插件不替你终止任务,先停止再移入回收站。
104
105
 
105
- **批量删除 / 恢复只成功了一部分?**
106
- 逐条交回结果、失败不连坐;失败的留在原位并显示原文,按钮变成「重试这 N 条」,重试只处理失败名单。
106
+ **批量移入回收站 / 恢复只成功了一部分?**
107
+ 逐条交回结果、失败不连坐;失败的留在原位并显示原文。宿主列表批量失败时勾选自动收缩到失败项,再点一次「移入回收站」只处理失败名单;回收站面板的逐条失败落在对应行上。
107
108
 
108
109
  **把工作区删了,回收站里的会话还能恢复吗?**
109
110
  能。恢复照常回盘,只跳过账本挂接,归入「未分组」。
110
111
 
111
- **点文件下载失败,页面没有提示?**
112
- 下载走浏览器原生行为:宿主回错误响应时浏览器可能把错误页存成文件,页面内拿不到原因。换一条能下载的会话 / 文件,或直接从会话目录取原件。
112
+ **点文件下载失败,哪里看原因?**
113
+ 文件保存会先校验服务端响应:失败原文直接显示在附件那一行,不会把错误页存成文件。若仍下载不下来,换一条能下载的会话 / 文件,或直接从会话目录取原件。
113
114
 
114
115
  **把会话目录手工搬回 `sessions/` 了,为什么列表里没有?**
115
116
  手工搬回不是恢复,下一次读清单会把那一行对账掉;请在面板里点「恢复」。
@@ -16,8 +16,8 @@
16
16
  | `@deepseek-ai/dsh-client-ui-primitives` | `IconTrashOutlineRegular` 的图标形状 | `icon.svg` | 颜色分浅/深两档写死(`#0f1115` / `#f9fafb`,取自宿主 `--dsw-alias-label-primary`),由 SVG 内部的 `prefers-color-scheme` 切换(图片形式的 SVG 不继承 `currentColor`);不带 `aria-hidden`(可及名由承载它的宿主卡片提供) |
17
17
  | `@deepseek-ai/dsh-client-ui-primitives` | 图标集的明文产物(恢复箭头除外) | `src/client/ui/icons.tsx` | 只保留本插件用到的图标;官方字形几何、`viewBox`、`strokeWidth` 不动;只暴露 `size`;唯一自绘的 `IconRestoreOutlineRegular` 不声称派生自官方图标集(其 ↩ 字形为本插件自绘,见文件头注) |
18
18
  | `@deepseek-ai/dsh-client-ui-primitives` | `Button` / `Tag` / `Modal` / `Tooltip` / `Toast` / `MenuItemButton` / `Checkbox` 的明文实现,以及 `top-layer.ts` / `format.ts` | `src/client/ui/Button.tsx`、`src/client/ui/Tag.tsx`、`src/client/ui/Modal.tsx`、`src/client/ui/Tooltip.tsx`、`src/client/ui/Toast.tsx`、`src/client/ui/MenuItemButton.tsx`、`src/client/ui/Checkbox.tsx`、`src/client/ui/top-layer.ts`、`src/client/ui/format.ts` | 只收本插件用到的变体与行为;组件 API 收窄;文件头注点名与官方的差异 |
19
- | `@deepseek-ai/dsh-client-ui-primitives` | `Button` / `Tag` / `Modal` / `Tooltip` / `Toast` / `Menu` / `Checkbox` / `DisclosureRow` 的 CSS Module 明文 | `src/client/ui/ui.css` | 类名加 `sd-` 前缀;`@keyframes` 改名;配色与几何走 `--sd-*` 别名层(解析到宿主 `--dsw-*` token);只收用到的变体;文件头点名的七处本插件自造差异 |
20
- | `@deepseek-ai/dsh-client-ui-primitives` | `markdown/MarkdownText.module.css`(`.markdown` 一支)、`markdown/CodeBlock.module.css`(`pre`) | `src/client/ui/markdown.css` | 选择器适配 react-markdown 产出的 DOM;文件头点名的三处有意差异 |
19
+ | `@deepseek-ai/dsh-client-ui-primitives` | `Button` / `Tag` / `Modal` / `Tooltip` / `Toast` / `Menu` / `Checkbox` / `DisclosureRow` 的 CSS Module 明文 | `src/client/ui/ui.css` | 类名加 `sd-` 前缀;`@keyframes` 改名;配色与几何走 `--sd-*` 别名层(解析到宿主 `--dsw-*` token);只收用到的变体;文件头点名的本插件自造差异 |
20
+ | `@deepseek-ai/dsh-client-ui-primitives` | `markdown/MarkdownText.module.css`(`.markdown` 一支)、`markdown/CodeBlock.module.css`(`pre`) | `src/client/ui/markdown.css` | 选择器适配 react-markdown 产出的 DOM;文件头点名的有意差异 |
21
21
  | `@deepseek-ai/dsh-client-ui-conversation` | `ConversationRoot.module.css` 的 `.widthHandle` 族 | `src/client/ui/ui.css` | 同上(类名前缀 / token 别名层) |
22
22
  | `@deepseek-ai/dsh-client-ui-workspace` | `Rows.module.css` 的 `.iconButton` 族 | `src/client/ui/ui.css` | 同上(类名前缀 / token 别名层) |
23
23
 
package/cordis.patch.yml CHANGED
@@ -1,7 +1,7 @@
1
- - insert:
2
- - id: xrn1997-session-delete
3
- name: '@xrn1997/dsh-session-delete'
4
- config:
5
- orphanPreviewLimit: 200
6
- maxAttachmentBytes: 20971520
7
- maxJsonRefBytes: 10485760
1
+ - insert:
2
+ - id: xrn1997-session-delete
3
+ name: '@xrn1997/dsh-session-delete'
4
+ config:
5
+ orphanPreviewLimit: 200
6
+ maxAttachmentBytes: 20971520
7
+ maxJsonRefBytes: 10485760
package/docs/DETAIL.md CHANGED
@@ -1 +1 @@
1
- ![Trash panel illustration: session rows grouped by project in the left column (restore and delete-forever buttons at each row's right), session info, the "Work steps" bar and a conversation preview in the right column, and the page's only solid red "Empty trash…" button in the footer](preview.svg)
1
+ ![Trash panel illustration: session rows grouped by project in the left column (restore and delete-forever buttons at each row's right), session info, the "Work steps" bar and a conversation preview in the right column, and the page's only solid red "Empty trash…" button in the footer](preview.svg)
package/docs/DETAIL.zh.md CHANGED
@@ -1 +1 @@
1
- ![回收站面板示意:左列是按项目分组的会话行(行右是恢复与彻底删除按钮),右栏是会话信息与「工作步骤」折叠条和对话预览,页脚是整页唯一的实心红按钮「清空回收站…」](preview.zh.svg)
1
+ ![回收站面板示意:左列是按项目分组的会话行(行右是恢复与彻底删除按钮),右栏是会话信息与「工作步骤」折叠条和对话预览,页脚是整页唯一的实心红按钮「清空回收站…」](preview.zh.svg)
Binary file
Binary file