dsh-better-ask-user 0.1.7 → 0.3.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 +202 -674
- package/NOTICE +23 -1
- package/README.md +23 -4
- package/lib/client.js +772 -360
- package/package.json +14 -13
- package/src/ask-tool.js +7 -1
- package/src/client/AskHistoryRow.module.css +21 -45
- package/src/client/AskHistoryRow.tsx +25 -19
- package/src/client/PlanReviewPanel.module.css +198 -68
- package/src/client/PlanReviewPanel.tsx +69 -13
- package/src/client/QuestionComposer.module.css +289 -357
- package/src/client/QuestionComposer.tsx +92 -85
- package/src/client/QuestionReplyView.module.css +79 -171
- package/src/client/QuestionReplyView.tsx +36 -17
- package/src/client/QuestionWaitBar.module.css +50 -0
- package/src/client/QuestionWaitBar.tsx +39 -0
- package/src/client/contract/slots.ts +19 -4
- package/src/client/index.ts +6 -6
- package/src/client/locales.ts +10 -2
- package/src/client/settings-locales.ts +44 -28
- package/src/client/settings.module.css +119 -0
- package/src/client/settings.tsx +120 -84
- package/src/index.js +2 -14
package/NOTICE
CHANGED
|
@@ -1 +1,23 @@
|
|
|
1
|
-
Portions of the client card are derived from @deepseek-ai/dsh-client-ui-user-questions 0.2.1-rc.2
|
|
1
|
+
Portions of the client card are derived from @deepseek-ai/dsh-client-ui-user-questions 0.2.1-rc.2. Those portions retain the following upstream license:
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2026 DeepSeek
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# dsh-better-ask-user
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
For DeepSeek Harness 0.2.2-rc.1 only (Node >=24.9.0). It keeps the official
|
|
4
4
|
question/answer protocol and replaces the Web card with one that supports:
|
|
5
5
|
|
|
6
6
|
- a configurable wait in seconds, including -1 for no timeout;
|
|
@@ -27,6 +27,10 @@ owned by the client card's claim; input resets its countdown to the configured
|
|
|
27
27
|
wait. When the countdown expires, native returns the official pending result;
|
|
28
28
|
default answers with the host-provided default batch and marks it autoSelected.
|
|
29
29
|
|
|
30
|
+
The schema includes the official `timeout` continuation marker so next can
|
|
31
|
+
replay pending questions and accept late replies. It is not a per-call timing
|
|
32
|
+
override: omit it; the row setting above owns the foreground duration.
|
|
33
|
+
|
|
30
34
|
## Default selection
|
|
31
35
|
|
|
32
36
|
Single-select picks the first option. Multi-select picks every option whose
|
|
@@ -48,6 +52,21 @@ npm test
|
|
|
48
52
|
npm run build
|
|
49
53
|
~~~
|
|
50
54
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
Unit tests use boundary fakes for userQuestions/goals; source-compiled client
|
|
56
|
+
tests exercise the real card and waterfall. The optional installed-host suite
|
|
57
|
+
uses actual DSH tool resolution, prompt assembly, execution, Gateway event
|
|
58
|
+
frames, and plan review. Run it against the exact host installation:
|
|
59
|
+
|
|
60
|
+
~~~sh
|
|
61
|
+
DSH_PACKAGE_ROOT=/path/to/node_modules/@deepseek-ai/dsh npm test
|
|
62
|
+
~~~
|
|
63
|
+
|
|
64
|
+
The Gateway test uses the real in-process wire carrier with JSON serialization,
|
|
65
|
+
not a browser or WebSocket end-to-end test. Plan review and permission intents
|
|
66
|
+
never use the ordinary question countdown or automatic defaults; they remain
|
|
67
|
+
open until an explicit decision or cancellation. The PTC service owns the
|
|
68
|
+
exit_plan_mode elapsed-time exemption.
|
|
69
|
+
|
|
70
|
+
The client half builds into the DSH client closure format. The release lockfile
|
|
71
|
+
resolves the exact dsh-better-ptc 0.2.0 dependency from the official npm registry;
|
|
72
|
+
local tarballs were used only before the dependency was published.
|