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/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 (MIT), Copyright DeepSeek.
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
- Independent DeepSeek Harness ask_user_question plugin. It keeps the official
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
- The host tests use fake userQuestions/goals services. The client half is a
52
- fork of the official 0.2.1 question composer, built into the DSH client
53
- closure format.
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.