dsh-better-ask-user 0.2.0 → 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/README.md +23 -4
- package/lib/client.js +336 -258
- package/package.json +12 -12
- package/src/ask-tool.js +7 -1
- package/src/client/AskHistoryRow.module.css +20 -10
- package/src/client/AskHistoryRow.tsx +18 -6
- package/src/client/PlanReviewPanel.module.css +254 -38
- package/src/client/PlanReviewPanel.tsx +9 -3
- package/src/client/QuestionComposer.module.css +504 -77
- package/src/client/QuestionComposer.tsx +51 -27
- package/src/client/QuestionReplyView.module.css +95 -31
- package/src/client/QuestionReplyView.tsx +25 -15
- package/src/client/QuestionWaitBar.module.css +39 -19
- package/src/client/QuestionWaitBar.tsx +0 -2
- package/src/client/contract/slots.ts +19 -4
- package/src/client/index.ts +5 -5
- package/src/client/locales.ts +4 -0
- package/src/client/settings-locales.ts +22 -20
- package/src/client/settings.module.css +108 -108
- package/src/client/settings.tsx +101 -125
- package/src/index.js +2 -14
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.
|