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 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.