@songtonyli/dsh-cli 0.1.14 → 0.1.16

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 (250) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@bufbuild/protobuf/README.md +41 -0
  4. package/node_modules/@bufbuild/protobuf/dist/commonjs/clone.js +66 -0
  5. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/boot.js +18 -0
  6. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/enum.js +31 -0
  7. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/extension.js +28 -0
  8. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/file.js +18 -0
  9. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/index.js +39 -0
  10. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/message.js +24 -0
  11. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/service.js +27 -0
  12. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/symbols.js +43 -0
  13. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/types.js +15 -0
  14. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/boot.js +105 -0
  15. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/embed.js +244 -0
  16. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/enum.js +58 -0
  17. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/extension.js +28 -0
  18. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/file.js +35 -0
  19. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/index.js +39 -0
  20. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/message.js +24 -0
  21. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/restore-json-names.js +29 -0
  22. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/scalar.js +67 -0
  23. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/service.js +27 -0
  24. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/symbols.js +74 -0
  25. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/types.js +15 -0
  26. package/node_modules/@bufbuild/protobuf/dist/commonjs/create.js +296 -0
  27. package/node_modules/@bufbuild/protobuf/dist/commonjs/descriptors.js +53 -0
  28. package/node_modules/@bufbuild/protobuf/dist/commonjs/equals.js +209 -0
  29. package/node_modules/@bufbuild/protobuf/dist/commonjs/extensions.js +168 -0
  30. package/node_modules/@bufbuild/protobuf/dist/commonjs/fields.js +45 -0
  31. package/node_modules/@bufbuild/protobuf/dist/commonjs/from-binary.js +415 -0
  32. package/node_modules/@bufbuild/protobuf/dist/commonjs/from-json.js +1037 -0
  33. package/node_modules/@bufbuild/protobuf/dist/commonjs/index.js +55 -0
  34. package/node_modules/@bufbuild/protobuf/dist/commonjs/is-message.js +33 -0
  35. package/node_modules/@bufbuild/protobuf/dist/commonjs/json-value.js +15 -0
  36. package/node_modules/@bufbuild/protobuf/dist/commonjs/merge.js +70 -0
  37. package/node_modules/@bufbuild/protobuf/dist/commonjs/package.json +4 -0
  38. package/node_modules/@bufbuild/protobuf/dist/commonjs/proto-int64.js +131 -0
  39. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/error.js +36 -0
  40. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/guard.js +78 -0
  41. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/index.js +41 -0
  42. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/message.js +157 -0
  43. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/names.js +115 -0
  44. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/nested-types.js +110 -0
  45. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/path.js +376 -0
  46. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-check.js +292 -0
  47. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-types.js +16 -0
  48. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect.js +469 -0
  49. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/scalar.js +129 -0
  50. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/unsafe.js +149 -0
  51. package/node_modules/@bufbuild/protobuf/dist/commonjs/registry.js +954 -0
  52. package/node_modules/@bufbuild/protobuf/dist/commonjs/to-binary.js +437 -0
  53. package/node_modules/@bufbuild/protobuf/dist/commonjs/to-json.js +625 -0
  54. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/from-text.js +684 -0
  55. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/index.js +21 -0
  56. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/is-group-like.js +47 -0
  57. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/reader.js +481 -0
  58. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/to-text.js +358 -0
  59. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/writer.js +220 -0
  60. package/node_modules/@bufbuild/protobuf/dist/commonjs/types.js +15 -0
  61. package/node_modules/@bufbuild/protobuf/dist/commonjs/unknown-enum.js +26 -0
  62. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/base64-encoding.js +188 -0
  63. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/binary-encoding.js +726 -0
  64. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/index.js +37 -0
  65. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/size-delimited.js +191 -0
  66. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-encoding.js +106 -0
  67. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-format.js +199 -0
  68. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/varint.js +334 -0
  69. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/any.js +75 -0
  70. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/duration.js +39 -0
  71. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/any_pb.js +27 -0
  72. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/api_pb.js +39 -0
  73. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/compiler/plugin_pb.js +68 -0
  74. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/cpp_features_pb.js +60 -0
  75. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/descriptor_pb.js +892 -0
  76. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/duration_pb.js +27 -0
  77. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/empty_pb.js +27 -0
  78. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/field_mask_pb.js +27 -0
  79. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/go_features_pb.js +126 -0
  80. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/java_features_pb.js +106 -0
  81. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/source_context_pb.js +27 -0
  82. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/struct_pb.js +59 -0
  83. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/timestamp_pb.js +27 -0
  84. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/type_pb.js +242 -0
  85. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/wrappers_pb.js +67 -0
  86. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/index.js +48 -0
  87. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/json.js +44 -0
  88. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/timestamp.js +57 -0
  89. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/wrappers.js +66 -0
  90. package/node_modules/@bufbuild/protobuf/dist/esm/clone.js +63 -0
  91. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/boot.js +14 -0
  92. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/enum.js +26 -0
  93. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/extension.js +25 -0
  94. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/file.js +14 -0
  95. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/index.js +23 -0
  96. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/message.js +21 -0
  97. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/service.js +24 -0
  98. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/symbols.js +40 -0
  99. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/types.js +14 -0
  100. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js +101 -0
  101. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.js +239 -0
  102. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.js +53 -0
  103. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.js +25 -0
  104. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +32 -0
  105. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.js +23 -0
  106. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js +21 -0
  107. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js +26 -0
  108. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.js +63 -0
  109. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.js +24 -0
  110. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.js +71 -0
  111. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.js +14 -0
  112. package/node_modules/@bufbuild/protobuf/dist/esm/create.js +293 -0
  113. package/node_modules/@bufbuild/protobuf/dist/esm/descriptors.js +50 -0
  114. package/node_modules/@bufbuild/protobuf/dist/esm/equals.js +206 -0
  115. package/node_modules/@bufbuild/protobuf/dist/esm/extensions.js +159 -0
  116. package/node_modules/@bufbuild/protobuf/dist/esm/fields.js +41 -0
  117. package/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +409 -0
  118. package/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +1029 -0
  119. package/node_modules/@bufbuild/protobuf/dist/esm/index.js +29 -0
  120. package/node_modules/@bufbuild/protobuf/dist/esm/is-message.js +30 -0
  121. package/node_modules/@bufbuild/protobuf/dist/esm/json-value.js +14 -0
  122. package/node_modules/@bufbuild/protobuf/dist/esm/merge.js +67 -0
  123. package/node_modules/@bufbuild/protobuf/dist/esm/package.json +4 -0
  124. package/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js +128 -0
  125. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +31 -0
  126. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +71 -0
  127. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/index.js +21 -0
  128. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/message.js +152 -0
  129. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +109 -0
  130. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +105 -0
  131. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/path.js +369 -0
  132. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js +284 -0
  133. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-types.js +14 -0
  134. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +464 -0
  135. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +124 -0
  136. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js +140 -0
  137. package/node_modules/@bufbuild/protobuf/dist/esm/registry.js +948 -0
  138. package/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js +433 -0
  139. package/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +620 -0
  140. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/from-text.js +680 -0
  141. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/index.js +15 -0
  142. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/is-group-like.js +44 -0
  143. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/reader.js +477 -0
  144. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/to-text.js +355 -0
  145. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/writer.js +214 -0
  146. package/node_modules/@bufbuild/protobuf/dist/esm/types.js +14 -0
  147. package/node_modules/@bufbuild/protobuf/dist/esm/unknown-enum.js +23 -0
  148. package/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +184 -0
  149. package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +721 -0
  150. package/node_modules/@bufbuild/protobuf/dist/esm/wire/index.js +18 -0
  151. package/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.js +186 -0
  152. package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +101 -0
  153. package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js +195 -0
  154. package/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js +325 -0
  155. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.js +69 -0
  156. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/duration.js +35 -0
  157. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.js +24 -0
  158. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.js +36 -0
  159. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +65 -0
  160. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js +57 -0
  161. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +888 -0
  162. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js +24 -0
  163. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js +24 -0
  164. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +24 -0
  165. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +123 -0
  166. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.js +103 -0
  167. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +24 -0
  168. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js +56 -0
  169. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +24 -0
  170. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.js +239 -0
  171. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +64 -0
  172. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js +32 -0
  173. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/json.js +41 -0
  174. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js +50 -0
  175. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +61 -0
  176. package/node_modules/@bufbuild/protobuf/package.json +136 -0
  177. package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +2 -2
  178. package/node_modules/@deepseek-ai/dsh-base/README.md +1 -1
  179. package/node_modules/@deepseek-ai/dsh-base/README.zh.md +1 -1
  180. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +9 -3
  181. package/node_modules/@deepseek-ai/dsh-base/package.json +1 -0
  182. package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +7 -7
  183. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +61 -61
  184. package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +11 -11
  185. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +55 -55
  186. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +182 -182
  187. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +16 -16
  188. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +151 -151
  189. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +74 -74
  190. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +76 -76
  191. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +39 -39
  192. package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +16 -16
  193. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +23 -23
  194. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +15 -15
  195. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +8 -8
  196. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +13 -13
  197. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +27 -27
  198. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +6 -6
  199. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +18 -18
  200. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +22 -22
  201. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +115 -115
  202. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +14 -14
  203. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +40 -40
  204. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +2 -2
  205. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +4 -2
  206. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +4 -2
  207. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +97 -87
  208. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +35 -35
  209. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +61 -61
  210. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/README.i18n.yaml +2 -2
  211. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/README.md +6 -5
  212. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/README.zh.md +6 -5
  213. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/lib/client.js +36 -35
  214. package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/lib/client.js +10 -10
  215. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +41 -41
  216. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +17 -17
  217. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +68 -68
  218. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +12 -12
  219. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +21 -21
  220. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +24 -24
  221. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.js +18 -18
  222. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.terminal.js +11 -11
  223. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +19 -19
  224. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +38 -38
  225. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +25 -25
  226. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +70 -70
  227. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +198 -198
  228. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +50 -50
  229. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +24 -24
  230. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +81 -81
  231. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +25 -25
  232. package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
  233. package/node_modules/@deepseek-ai/dsh-llm/README.md +2 -1
  234. package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +2 -1
  235. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.i18n.yaml +6 -0
  236. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.md +136 -0
  237. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.zh.md +136 -0
  238. package/node_modules/@deepseek-ai/dsh-llm-cursor/lib/index.js +2511 -0
  239. package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +62 -0
  240. package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +3 -3
  241. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +2 -2
  242. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +14 -12
  243. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +14 -12
  244. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +508 -74
  245. package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +2 -2
  246. package/node_modules/@deepseek-ai/dsh-web-app/README.md +1 -1
  247. package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +1 -1
  248. package/package.json +5 -1
  249. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/queue-mirror.js +0 -61
  250. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-UEJ3Ntqn.js +0 -1511
@@ -1962,16 +1962,18 @@ function editorTheme(palette) {
1962
1962
  //#region lib/types/blocks.js
1963
1963
  /**
1964
1964
  * Transcript components: one pi-tui component per rendered fact (a user
1965
- * prompt, an assistant reply, a tool card, a notice). Each owns its display
1966
- * state and re-renders from it at any width.
1965
+ * prompt, an assistant reply, a tool card, a system prompt or injected
1966
+ * context, a notice). Each owns its display state and re-renders from it at
1967
+ * any width.
1967
1968
  *
1968
- * The prompt, the reply, and the tool card are also the navigable blocks the
1969
- * keyboard walks (`./navigation.ts`): each reports its sections as plain source
1970
- * rows and draws a two-column gutter beside them while it holds the focus -
1971
- * accented on the focused section's own lines and dim on the rest of the
1972
- * block. The gutter narrows the width the block's content wraps at and is
1973
- * prepended after any fade recoloring, so the fade keeps matching the block's
1974
- * own text and the gutter's styling never enters that match.
1969
+ * The prompt, the reply, the tool card, and the compact context row are also
1970
+ * the navigable blocks the keyboard walks (`./navigation.ts`): each reports
1971
+ * its sections as plain source rows and draws a two-column gutter beside them
1972
+ * while it holds the focus - accented on the focused section's own lines and
1973
+ * dim on the rest of the block. The gutter narrows the width the block's
1974
+ * content wraps at and is prepended after any fade recoloring, so the fade
1975
+ * keeps matching the block's own text and the gutter's styling never enters
1976
+ * that match.
1975
1977
  * @module @deepseek-ai/dsh-tui-app/blocks
1976
1978
  */
1977
1979
  /** Columns the focus gutter takes from the width a block's content wraps at. */
@@ -2020,7 +2022,7 @@ var UserBlock = class {
2020
2022
  }
2021
2023
  /**
2022
2024
  * Draw this prompt with the focus gutter, or without it.
2023
- * @param part - the focused section, or undefined to clear the mark.
2025
+ * @param part - the index of the focused section, or undefined to clear the mark.
2024
2026
  */
2025
2027
  setHighlight(part) {
2026
2028
  this.highlight = part;
@@ -2034,6 +2036,8 @@ var UserBlock = class {
2034
2036
  return marked ? withGutter(palette, lines, () => true) : lines;
2035
2037
  }
2036
2038
  };
2039
+ /** What a compact context row uses in place of the user prompt's `›`. */
2040
+ const CONTEXT_GLYPH = "⬡";
2037
2041
  /** A dim one-line notice about the session (a stopped turn, a command result, a model switch). */
2038
2042
  var NoticeBlock = class {
2039
2043
  text;
@@ -2049,6 +2053,72 @@ var NoticeBlock = class {
2049
2053
  }
2050
2054
  };
2051
2055
  /**
2056
+ * A system prompt or injected context, drawn in full under a dim title.
2057
+ * Snapshot contributions keep their names above their own rows so every
2058
+ * piece of context is visible in the transcript; the inspector Left/Right
2059
+ * walk still addresses one contribution at a time.
2060
+ */
2061
+ var ContextBlock = class {
2062
+ theme;
2063
+ title;
2064
+ sectionParts;
2065
+ turn;
2066
+ navigable = true;
2067
+ blockKind = "context";
2068
+ /** The section drawn as focused; absent while the keyboard is elsewhere. */
2069
+ highlight;
2070
+ /**
2071
+ * @param theme - the palette the glyph and title are styled with.
2072
+ * @param title - form and producer, a notice summary, or `system prompt`.
2073
+ * @param sectionParts - the model-facing rows, one part per snapshot contribution.
2074
+ * @param turn - the turn the message was appended in.
2075
+ */
2076
+ constructor(theme, title, sectionParts, turn) {
2077
+ this.theme = theme;
2078
+ this.title = title;
2079
+ this.sectionParts = sectionParts;
2080
+ this.turn = turn;
2081
+ }
2082
+ /**
2083
+ * The injection as navigable sections.
2084
+ * @returns the parts the constructor was given.
2085
+ */
2086
+ parts() {
2087
+ return this.sectionParts;
2088
+ }
2089
+ /**
2090
+ * Draw this row with the focus gutter, or without it.
2091
+ * @param part - the index of the focused section, or undefined to clear the mark.
2092
+ */
2093
+ setHighlight(part) {
2094
+ this.highlight = part;
2095
+ }
2096
+ invalidate() {}
2097
+ render(width) {
2098
+ const palette = this.theme.palette;
2099
+ const inner = this.highlight !== void 0 ? Math.max(1, width - GUTTER_WIDTH) : width;
2100
+ const textWidth = Math.max(1, inner - 2);
2101
+ const indent = (line) => ` ${line}`;
2102
+ const lines = ["", ...wrapTextWithAnsi(this.title, textWidth).map((line, index) => `${palette.dim(index === 0 ? CONTEXT_GLYPH : " ")} ${palette.dim(line)}`)];
2103
+ const ranges = [];
2104
+ for (const part of this.sectionParts) {
2105
+ const from = lines.length;
2106
+ if (part.label !== void 0) lines.push(...wrapTextWithAnsi(part.label, textWidth).map((line) => indent(palette.bold(line))));
2107
+ if (!(part.rows.length === 1 && part.rows[0] === "")) for (const row of part.rows) lines.push(...wrapTextWithAnsi(row, textWidth).map((line) => indent(palette.dim(line))));
2108
+ ranges.push({
2109
+ from,
2110
+ to: lines.length
2111
+ });
2112
+ }
2113
+ if (this.highlight === void 0) return lines;
2114
+ const section = ranges[this.highlight] ?? {
2115
+ from: 0,
2116
+ to: lines.length
2117
+ };
2118
+ return withGutter(palette, lines, (line) => line >= section.from && line < section.to);
2119
+ }
2120
+ };
2121
+ /**
2052
2122
  * An assistant reply: streamed reasoning above streamed Markdown text. The
2053
2123
  * durable `assistant/message` replaces both with the committed content.
2054
2124
  *
@@ -2091,7 +2161,8 @@ var AssistantBlock = class {
2091
2161
  * reasoning as it was streamed or committed, and the reply as Markdown
2092
2162
  * source rather than the rendering the transcript draws.
2093
2163
  * @returns the reasoning part while the message has reasoning, then the
2094
- * reply, which is present from the start and empty until text arrives.
2164
+ * reply once visible text has arrived. An empty reply is kept only while the
2165
+ * message has no reasoning, so a tool-call step does not add a blank section.
2095
2166
  */
2096
2167
  parts() {
2097
2168
  const parts = [];
@@ -2099,7 +2170,7 @@ var AssistantBlock = class {
2099
2170
  kind: "reasoning",
2100
2171
  rows: this.reasoning.split("\n")
2101
2172
  });
2102
- parts.push({
2173
+ if (this.text !== "" || parts.length === 0) parts.push({
2103
2174
  kind: "reply",
2104
2175
  rows: this.text.split("\n")
2105
2176
  });
@@ -2107,7 +2178,7 @@ var AssistantBlock = class {
2107
2178
  }
2108
2179
  /**
2109
2180
  * Draw this message with the focus gutter, or without it.
2110
- * @param part - the focused section, or undefined to clear the mark.
2181
+ * @param part - the index of the focused section, or undefined to clear the mark.
2111
2182
  */
2112
2183
  setHighlight(part) {
2113
2184
  this.highlight = part;
@@ -2175,8 +2246,7 @@ var AssistantBlock = class {
2175
2246
  this.reasoningText.invalidate();
2176
2247
  }
2177
2248
  render(width) {
2178
- const marked = this.highlight !== void 0;
2179
- const inner = marked ? Math.max(1, width - GUTTER_WIDTH) : width;
2249
+ const inner = this.highlight !== void 0 ? Math.max(1, width - GUTTER_WIDTH) : width;
2180
2250
  const lines = [""];
2181
2251
  const reasoning = {
2182
2252
  from: 0,
@@ -2198,8 +2268,8 @@ var AssistantBlock = class {
2198
2268
  reply.to = lines.length;
2199
2269
  }
2200
2270
  if (this.interrupted) lines.push(this.theme.palette.dim("[interrupted]"));
2201
- if (!marked) return lines;
2202
- const section = this.highlight === "reasoning" ? reasoning : reply;
2271
+ if (this.highlight === void 0) return lines;
2272
+ const section = this.parts()[this.highlight]?.kind === "reasoning" ? reasoning : reply;
2203
2273
  return withGutter(this.theme.palette, lines, (index) => index >= section.from && index < section.to);
2204
2274
  }
2205
2275
  /**
@@ -2292,7 +2362,7 @@ var ToolBlock = class {
2292
2362
  }
2293
2363
  /**
2294
2364
  * Draw this card with the focus gutter, or without it.
2295
- * @param part - the focused section, or undefined to clear the mark.
2365
+ * @param part - the index of the focused section, or undefined to clear the mark.
2296
2366
  */
2297
2367
  setHighlight(part) {
2298
2368
  this.highlight = part;
@@ -2343,8 +2413,7 @@ var ToolBlock = class {
2343
2413
  invalidate() {}
2344
2414
  render(width) {
2345
2415
  const palette = this.theme.palette;
2346
- const marked = this.highlight !== void 0;
2347
- const outer = marked ? Math.max(1, width - GUTTER_WIDTH) : width;
2416
+ const outer = this.highlight !== void 0 ? Math.max(1, width - GUTTER_WIDTH) : width;
2348
2417
  const header = `${this.status === "running" ? palette.warning("●") : this.status === "done" ? palette.success("●") : palette.error("●")} ${palette.bold(this.name)}${this.call.title === "" ? "" : ` ${palette.dim(this.call.title)}`}`;
2349
2418
  const body = [...this.call.lines, ...this.resultLines];
2350
2419
  const shown = previewLines(body, this.theme.toolPreviewLines, this.expanded);
@@ -2360,10 +2429,10 @@ var ToolBlock = class {
2360
2429
  ...call,
2361
2430
  ...result
2362
2431
  ];
2363
- if (!marked) return lines;
2432
+ if (this.highlight === void 0) return lines;
2364
2433
  const cut = !this.expanded && body.length > this.theme.toolPreviewLines;
2365
2434
  const sections = lines.length - (cut ? rows(shown.slice(-1)).length : 0);
2366
- const section = this.highlight === "result" ? {
2435
+ const section = this.parts()[this.highlight]?.kind === "result" ? {
2367
2436
  from: 1 + callLines.length,
2368
2437
  to: lines.length
2369
2438
  } : {
@@ -2471,6 +2540,202 @@ function editorCompletion(sources) {
2471
2540
  };
2472
2541
  }
2473
2542
  //#endregion
2543
+ //#region lib/types/context.js
2544
+ /**
2545
+ * Project logged system prompts and injected user-role messages into the
2546
+ * compact titles and navigable sections the terminal transcript walks.
2547
+ *
2548
+ * Compaction replacements, tool results, and the user's own prompts are not
2549
+ * context: those have their own blocks. An empty system-prompt rendering logs
2550
+ * that no prompt is in force and is omitted here.
2551
+ * @module @deepseek-ai/dsh-tui-app/context
2552
+ */
2553
+ /** Producer-declared forms this surface presents structurally. */
2554
+ const KNOWN_FORMS = [
2555
+ "instructions",
2556
+ "catalog",
2557
+ "snapshot",
2558
+ "notice",
2559
+ "relay",
2560
+ "recall"
2561
+ ];
2562
+ /**
2563
+ * Project one nonempty system prompt into a transcript section.
2564
+ * @param text - the rendered prompt; `''` means no prompt is in force.
2565
+ * @param update - whether a nonempty prompt already appeared in this transcript.
2566
+ * @returns the section, or undefined when `text` is empty.
2567
+ */
2568
+ function systemPromptView(text, update) {
2569
+ if (text === "") return void 0;
2570
+ return {
2571
+ title: update ? "system prompt update" : "system prompt",
2572
+ parts: [{
2573
+ kind: "system",
2574
+ rows: text.split("\n")
2575
+ }]
2576
+ };
2577
+ }
2578
+ /**
2579
+ * Project one injected `user/message` into a transcript section.
2580
+ * @param source - the message's durable source.
2581
+ * @param content - the model-facing blocks.
2582
+ * @returns the section, or undefined when this message is not injected context.
2583
+ */
2584
+ function injectedContextView(source, content) {
2585
+ const record = recordOf(source);
2586
+ const kind = stringField(record, "kind");
2587
+ if (record === void 0 || kind === void 0) return void 0;
2588
+ if (kind === "user" || kind === "tool" || kind === "model") return void 0;
2589
+ if (kind === "plugin" && stringField(record, "plugin") === "compact") return void 0;
2590
+ const form = knownForm(stringField(record, "form"));
2591
+ return {
2592
+ title: titled(form, producerOf(record, kind), stringField(record, "summary")),
2593
+ parts: form === "snapshot" ? snapshotParts(record, content) : [{
2594
+ kind: partKind(form),
2595
+ rows: rowsOf(content)
2596
+ }]
2597
+ };
2598
+ }
2599
+ /**
2600
+ * Narrow a value to a string-keyed record.
2601
+ * @param value - a durable source or a snapshot entry.
2602
+ * @returns the record, or undefined when the value is not one.
2603
+ */
2604
+ function recordOf(value) {
2605
+ if (value === null || typeof value !== "object" || Array.isArray(value)) return void 0;
2606
+ return value;
2607
+ }
2608
+ /**
2609
+ * Read a nonempty string field.
2610
+ * @param record - the record to read, or undefined.
2611
+ * @param key - the field name.
2612
+ * @returns the field, or undefined when it is missing or empty.
2613
+ */
2614
+ function stringField(record, key) {
2615
+ const value = record?.[key];
2616
+ return typeof value === "string" && value !== "" ? value : void 0;
2617
+ }
2618
+ /**
2619
+ * Collect nonempty named strings from an array field, first-seen order.
2620
+ * @param record - the source record.
2621
+ * @param member - the array field.
2622
+ * @param key - the entry field that names the item.
2623
+ * @returns the labels.
2624
+ */
2625
+ function labelsIn(record, member, key) {
2626
+ const list = record?.[member];
2627
+ if (!Array.isArray(list)) return [];
2628
+ const labels = [];
2629
+ for (const entry of list) {
2630
+ const label = stringField(recordOf(entry), key);
2631
+ if (label !== void 0 && !labels.includes(label)) labels.push(label);
2632
+ }
2633
+ return labels;
2634
+ }
2635
+ /**
2636
+ * Name the producer a durable source identifies.
2637
+ * @param record - the source record.
2638
+ * @param kind - the source kind, already read.
2639
+ * @returns a label the heading can show.
2640
+ */
2641
+ function producerOf(record, kind) {
2642
+ switch (kind) {
2643
+ case "plugin": return stringField(record, "plugin") ?? kind;
2644
+ case "skill-invocation": return stringField(record, "name") ?? kind;
2645
+ case "session-reference": {
2646
+ const labels = labelsIn(record, "references", "label");
2647
+ return labels.length > 0 ? labels.join(", ") : kind;
2648
+ }
2649
+ case "agent-instructions": {
2650
+ const paths = labelsIn(record, "changes", "path");
2651
+ return paths.length > 0 ? paths.join(", ") : kind;
2652
+ }
2653
+ default: return kind;
2654
+ }
2655
+ }
2656
+ /**
2657
+ * Narrow a logged form to one this surface presents structurally.
2658
+ * @param form - the source's `form` field.
2659
+ * @returns the form, or undefined for an absent or unknown value.
2660
+ */
2661
+ function knownForm(form) {
2662
+ return form !== void 0 && KNOWN_FORMS.includes(form) ? form : void 0;
2663
+ }
2664
+ /**
2665
+ * The section kind that matches a known form, or `context` for an opaque body.
2666
+ * @param form - the known form, or undefined.
2667
+ * @returns the kind.
2668
+ */
2669
+ function partKind(form) {
2670
+ return form ?? "context";
2671
+ }
2672
+ /**
2673
+ * Compose the compact title from form, producer, and an optional notice summary.
2674
+ * @param form - the known form, or undefined.
2675
+ * @param producer - the producer label.
2676
+ * @param summary - a notice's one-line account, when present.
2677
+ * @returns the title.
2678
+ */
2679
+ function titled(form, producer, summary) {
2680
+ if (form === "notice") return summary === void 0 ? `notice · ${producer}` : `notice · ${summary}`;
2681
+ return form === void 0 ? producer : `${form} · ${producer}`;
2682
+ }
2683
+ /**
2684
+ * The assembled snapshot as one part, used when named contributions are
2685
+ * absent or unreadable so the model-facing text is never dropped.
2686
+ * @param content - the assembled blocks.
2687
+ * @returns one snapshot part.
2688
+ */
2689
+ function assembledSnapshot(content) {
2690
+ return [{
2691
+ kind: "snapshot",
2692
+ rows: rowsOf(content)
2693
+ }];
2694
+ }
2695
+ /**
2696
+ * Split a snapshot into one part per named contribution.
2697
+ *
2698
+ * The list is all-or-nothing: one unreadable entry means the assembled
2699
+ * text is the part, matching how a partial list would hide the only
2700
+ * complete account of what the model read.
2701
+ * @param record - the source record, which may carry `sections`.
2702
+ * @param content - the assembled model-facing blocks, used when sections are absent or unreadable.
2703
+ * @returns the parts.
2704
+ */
2705
+ function snapshotParts(record, content) {
2706
+ const list = record.sections;
2707
+ if (!Array.isArray(list) || list.length === 0) return assembledSnapshot(content);
2708
+ const parts = [];
2709
+ for (const entry of list) {
2710
+ const item = recordOf(entry);
2711
+ if (item === void 0) return assembledSnapshot(content);
2712
+ const name = stringField(item, "name");
2713
+ if (name === void 0 || typeof item.text !== "string") return assembledSnapshot(content);
2714
+ parts.push({
2715
+ kind: "snapshot",
2716
+ label: name,
2717
+ rows: rowsOfText(item.text)
2718
+ });
2719
+ }
2720
+ return parts;
2721
+ }
2722
+ /**
2723
+ * The model-facing blocks as source rows.
2724
+ * @param content - the content blocks.
2725
+ * @returns the rows; one blank row when there is no text, so the keyboard still has a section.
2726
+ */
2727
+ function rowsOf(content) {
2728
+ return rowsOfText(contentText(content));
2729
+ }
2730
+ /**
2731
+ * Split text into source rows.
2732
+ * @param text - the model-facing text.
2733
+ * @returns the rows; one blank row when `text` is empty.
2734
+ */
2735
+ function rowsOfText(text) {
2736
+ return text === "" ? [""] : text.split("\n");
2737
+ }
2738
+ //#endregion
2474
2739
  //#region lib/types/editor.js
2475
2740
  /**
2476
2741
  * The prompt editor's caret. pi-tui draws the caret cell itself in reverse
@@ -2649,24 +2914,29 @@ async function exportSessionZip(ctx, sessionId, directory, signal) {
2649
2914
  /**
2650
2915
  * The docked inspector above the editor: while the keyboard walks the
2651
2916
  * transcript it shows the focused section in full - what it is, which part of
2652
- * its block is held, and the start of that part's own rows.
2917
+ * its block is held, and that part's own rows. Context sections draw every
2918
+ * row; other sections fold at `focusPreviewLines` with Enter opening the rest.
2653
2919
  *
2654
2920
  * It is the focus indicator that is always on screen. A block is also marked
2655
2921
  * in place, but only while the renderer can still repaint its first line
2656
2922
  * (`./navigation.ts`), so the heading says when the marked block itself has
2657
2923
  * scrolled out of reach. Rows arrive as the block's source text with no fade
2658
2924
  * and no palette styling of their own, so a section that is still streaming
2659
- * grows here as it arrives.
2925
+ * grows here as it arrives. A block with several parts draws them as a numbered
2926
+ * wrapping strip `← 1 reasoning · 2 reply →` so Left/Right walk is visible
2927
+ * and every part label stays on screen.
2660
2928
  * @module @deepseek-ai/dsh-tui-app/inspector
2661
2929
  */
2662
2930
  /** What separates two labels of the parts strip. */
2663
2931
  const SEPARATOR$3 = " · ";
2664
- /** Brackets the parts strip, so the strip reads as one row of choices. */
2665
- const STRIP_ENDS = ["‹ ", " ›"];
2666
2932
  /** What the heading appends while the focused block lies outside the repaint window. */
2667
2933
  const OFF_SCREEN = " · off screen";
2668
2934
  /** The keys the inspector answers, drawn dim under its rows. */
2669
- const HINT = "↑ ↓ blocks · ← → parts · Enter page · Esc back";
2935
+ const HINT = "↑ ↓ sections · ← → parts · Enter page · Esc back";
2936
+ /** Opens the numbered parts strip, so Left/Right read as a walk along this row. */
2937
+ const STRIP_START = "← ";
2938
+ /** Closes the numbered parts strip. */
2939
+ const STRIP_END = " →";
2670
2940
  /** What ends a line the width cut short; one column, so the mark itself fits. */
2671
2941
  const ELLIPSIS$1 = "…";
2672
2942
  /**
@@ -2674,18 +2944,22 @@ const ELLIPSIS$1 = "…";
2674
2944
  * @param view - the section to show.
2675
2945
  * @param render - the palette, the row budget, and the width.
2676
2946
  * @returns the inspector's lines, none wider than `width`: a blank separator,
2677
- * the heading, the parts strip when the block has more than one part, the
2678
- * folded rows, and the hints.
2947
+ * the heading, the numbered parts strip when the block has more than one part
2948
+ * (wrapped so every part stays on screen), the rows, and the hints.
2679
2949
  */
2680
2950
  function renderInspector(view, render) {
2681
2951
  const { palette } = render;
2682
2952
  const width = Math.max(1, render.width);
2683
- const lines = ["", heading(view, palette, width)];
2684
- if (view.parts.length > 1) lines.push(partsStrip(view.parts, palette));
2953
+ const chrome = ["", heading(view, palette, width)];
2954
+ if (view.parts.length > 1) chrome.push(...partsStrip(view.parts, palette, width));
2685
2955
  const wrapped = view.rows.flatMap((row) => wrapTextWithAnsi(row, width));
2686
- lines.push(...foldRows(wrapped, render.previewLines, (hidden) => palette.dim(`… ${String(hidden)} more row${hidden === 1 ? "" : "s"} · Enter opens the page`)));
2687
- lines.push(palette.dim(HINT));
2688
- return lines.map((line) => truncateToWidth(line, width, ELLIPSIS$1));
2956
+ const body = view.complete === true ? wrapped : foldRows(wrapped, render.previewLines, (hidden) => palette.dim(`… ${String(hidden)} more row${hidden === 1 ? "" : "s"} · Enter opens the page`));
2957
+ const cut = (line) => truncateToWidth(line, width, ELLIPSIS$1);
2958
+ return [
2959
+ ...chrome.map(cut),
2960
+ ...view.complete === true ? body : body.map(cut),
2961
+ cut(palette.dim(HINT))
2962
+ ];
2689
2963
  }
2690
2964
  /**
2691
2965
  * The heading line. A tool title can run past any terminal, so the subject is
@@ -2703,14 +2977,66 @@ function heading(view, palette, width) {
2703
2977
  return `${truncateToWidth(subject, Math.max(1, width - visibleWidth(suffix)), ELLIPSIS$1)}${suffix}`;
2704
2978
  }
2705
2979
  /**
2706
- * Draw the parts of the focused block as one row of choices.
2980
+ * Draw the parts of the focused block as numbered choices that wrap rather
2981
+ * than disappearing past the width. `Left` / `Right` move along this list:
2982
+ * each label is `N name`, the held one is accented, and the arrows mark that
2983
+ * the walk stays inside this block.
2707
2984
  * @param parts - the labels in reading order, the held one marked.
2708
2985
  * @param palette - the palette the labels are styled with.
2709
- * @returns the strip line.
2986
+ * @param width - the width each line must fit; at least 1.
2987
+ * @returns the strip lines, every part present.
2710
2988
  */
2711
- function partsStrip(parts, palette) {
2712
- const labels = parts.map((part) => part.focused ? palette.accent(part.label) : palette.dim(part.label)).join(palette.dim(SEPARATOR$3));
2713
- return `${palette.dim(STRIP_ENDS[0])}${labels}${palette.dim(STRIP_ENDS[1])}`;
2989
+ function partsStrip(parts, palette, width) {
2990
+ const tokens = parts.map((part, index) => {
2991
+ const text = `${String(index + 1)} ${part.label}`;
2992
+ return part.focused ? palette.accent(text) : palette.dim(text);
2993
+ });
2994
+ const sep = palette.dim(SEPARATOR$3);
2995
+ const indent = palette.dim(" ");
2996
+ const end = palette.dim(STRIP_END);
2997
+ const indentWidth = visibleWidth(" ");
2998
+ const endWidth = visibleWidth(STRIP_END);
2999
+ const lines = [];
3000
+ let current = palette.dim(STRIP_START);
3001
+ let used = visibleWidth(STRIP_START);
3002
+ const startLine = () => {
3003
+ lines.push(current);
3004
+ current = indent;
3005
+ used = indentWidth;
3006
+ };
3007
+ for (let index = 0; index < tokens.length; index += 1) {
3008
+ const token = tokens[index];
3009
+ /* v8 ignore next -- the loop bound is tokens.length */
3010
+ if (token === void 0) continue;
3011
+ const extra = index === tokens.length - 1 ? endWidth : 0;
3012
+ let leading = index === 0 || current === indent ? "" : sep;
3013
+ let leadingWidth = leading === "" ? 0 : visibleWidth(SEPARATOR$3);
3014
+ const tokenWidth = visibleWidth(token);
3015
+ if (used + leadingWidth + tokenWidth + extra > width && used > indentWidth) {
3016
+ startLine();
3017
+ leading = "";
3018
+ leadingWidth = 0;
3019
+ }
3020
+ const room = Math.max(1, width - used - extra);
3021
+ if (tokenWidth > room) {
3022
+ const wrapped = wrapTextWithAnsi(token, room);
3023
+ const first = wrapped[0];
3024
+ /* v8 ignore next -- wrapTextWithAnsi returns a line for nonempty text */
3025
+ if (first === void 0) continue;
3026
+ current += leading + first;
3027
+ used += leadingWidth + visibleWidth(first);
3028
+ for (const more of wrapped.slice(1)) {
3029
+ startLine();
3030
+ current += more;
3031
+ used += visibleWidth(more);
3032
+ }
3033
+ } else {
3034
+ current += leading + token;
3035
+ used += leadingWidth + tokenWidth;
3036
+ }
3037
+ }
3038
+ lines.push(`${current}${end}`);
3039
+ return lines;
2714
3040
  }
2715
3041
  /**
2716
3042
  * The inspector as a mounted component.
@@ -2751,8 +3077,11 @@ var InspectorPane = class {
2751
3077
  * The transcript as a list of navigable sections.
2752
3078
  *
2753
3079
  * A conversation is drawn as one component per fact, and the keyboard walks it
2754
- * in two directions: between blocks and, inside a block, between its parts -
2755
- * the reasoning and the reply of a message, the call and the result of a tool.
3080
+ * in two directions: `Up` / `Down` through every section in reading order —
3081
+ * a system prompt, injected context, the reasoning and the reply of a message,
3082
+ * the call and the result of a tool — and `Left` / `Right` between the parts
3083
+ * of the held block without leaving it. Snapshot contributions are separate
3084
+ * parts of one injected block, so the arrows walk each named piece of context.
2756
3085
  * This module turns the transcript container's children into that list and
2757
3086
  * moves one cursor over it. Everything here is plain data: no pi-tui, no
2758
3087
  * palette, no clock. The rows a part carries are the block's own source text,
@@ -2812,19 +3141,65 @@ function enterNewest(blocks) {
2812
3141
  };
2813
3142
  }
2814
3143
  /**
2815
- * Move to another block, landing on its last part.
3144
+ * Every section of the transcript in drawing order, oldest block first and
3145
+ * each block's parts in reading order. Blocks that currently expose no parts
3146
+ * are omitted, so a walk never lands on an empty index.
3147
+ * @param blocks - the navigable blocks.
3148
+ * @returns one cursor per section.
3149
+ */
3150
+ function flattenSections(blocks) {
3151
+ const sections = [];
3152
+ for (let block = 0; block < blocks.length; block += 1) {
3153
+ const count = partCount(blocks, block);
3154
+ for (let part = 0; part < count; part += 1) sections.push({
3155
+ block,
3156
+ part
3157
+ });
3158
+ }
3159
+ return sections;
3160
+ }
3161
+ /**
3162
+ * Whether two cursors name the same section.
3163
+ * @param left - one cursor.
3164
+ * @param right - the other.
3165
+ * @returns true when both name the same block and part.
3166
+ */
3167
+ function sameSection(left, right) {
3168
+ return left.block === right.block && left.part === right.part;
3169
+ }
3170
+ /**
3171
+ * Index into a non-empty flattened section list.
3172
+ * @param sections - the flattened sections; length at least 1.
3173
+ * @param index - an in-range index.
3174
+ * @param fallback - used when that index has no section.
3175
+ * @returns that section.
3176
+ */
3177
+ function sectionAt(sections, index, fallback) {
3178
+ /* v8 ignore next -- callers pass an in-range index into a non-empty list */
3179
+ return sections[index] ?? fallback;
3180
+ }
3181
+ /**
3182
+ * Move to another section in reading order: the previous or next part of the
3183
+ * held block, or the last or first part of the neighbouring block that has
3184
+ * one. A block whose `parts()` is empty is skipped.
2816
3185
  * @param cursor - where the focus sits.
2817
- * @param step - 1 for the next block, -1 for the previous one.
3186
+ * @param step - 1 for the next section, -1 for the previous one.
2818
3187
  * @param blocks - the navigable blocks.
2819
- * @returns the new cursor; the cursor itself at either end of the list.
3188
+ * @returns the new cursor; the cursor itself at either end of the transcript.
2820
3189
  */
2821
- function moveBlock(cursor, step, blocks) {
2822
- const block = clampIndex(cursor.block + step, blocks.length);
2823
- if (block === cursor.block) return cursor;
2824
- return {
2825
- block,
2826
- part: Math.max(0, partCount(blocks, block) - 1)
2827
- };
3190
+ function moveSection(cursor, step, blocks) {
3191
+ const sections = flattenSections(blocks);
3192
+ if (sections.length === 0) return cursor;
3193
+ const settled = clampCursor(cursor, blocks);
3194
+ if (settled === void 0) {
3195
+ const index = step >= 0 ? sections.findIndex((section) => section.block > cursor.block) : sections.findLastIndex((section) => section.block < cursor.block);
3196
+ if (index < 0) return sectionAt(sections, step >= 0 ? sections.length - 1 : 0, cursor);
3197
+ return sectionAt(sections, index, cursor);
3198
+ }
3199
+ const index = sections.findIndex((section) => sameSection(section, settled));
3200
+ /* v8 ignore next -- a settled cursor is always in flattenSections */
3201
+ if (index < 0) return settled;
3202
+ return sectionAt(sections, clampIndex(index + step, sections.length), settled);
2828
3203
  }
2829
3204
  /**
2830
3205
  * Move between the parts of the held block.
@@ -2887,6 +3262,7 @@ function subjectOf(block, part) {
2887
3262
  case "user":
2888
3263
  case "assistant": return [partLabel(part.kind)];
2889
3264
  case "tool": return [block.title === "" ? block.name : `${block.name} ${block.title}`, block.parts().some((candidate) => candidate.kind === "result") ? partLabel(part.kind) : "running"];
3265
+ case "context": return part.label === void 0 || part.label === block.title ? [block.title] : [block.title, part.label];
2890
3266
  /* v8 ignore next -- closed-union exhaustiveness guard */
2891
3267
  default: return assertNever(block, "tui transcript block kind");
2892
3268
  }
@@ -2919,7 +3295,7 @@ function partLabels(cursor, blocks) {
2919
3295
  const block = blocks[cursor.block];
2920
3296
  if (block === void 0) return [];
2921
3297
  return block.parts().map((part, index) => ({
2922
- label: partLabel(part.kind),
3298
+ label: part.label ?? partLabel(part.kind),
2923
3299
  focused: index === cursor.part
2924
3300
  }));
2925
3301
  }
@@ -3205,6 +3581,19 @@ function todoLines(facts) {
3205
3581
  return [`todos: ${String(done)} done · ${String(active)} active · ${String(pending)} pending`, ...items.map((item) => ` ${TODO_GLYPH[item.status]} ${item.content}`)];
3206
3582
  }
3207
3583
  /**
3584
+ * One-line todo expansion for the status bar: the counts by status, and the
3585
+ * item being worked on, or the next pending item when none is in progress.
3586
+ * @param facts - the facts one status read produced.
3587
+ * @returns the expansion; empty when no todo list is known.
3588
+ */
3589
+ function todoSummary(facts) {
3590
+ if (facts.todos === void 0) return "";
3591
+ const { items, done, active, pending } = facts.todos;
3592
+ const counts = `todos: ${String(done)} done · ${String(active)} active · ${String(pending)} pending`;
3593
+ const current = items.find((item) => item.status === "in_progress") ?? items.find((item) => item.status === "pending");
3594
+ return current === void 0 ? counts : `${counts} · ${current.content}`;
3595
+ }
3596
+ /**
3208
3597
  * The goal section: phase, admitted rounds, objective, and the blocking
3209
3598
  * condition while the goal is blocked.
3210
3599
  * @param facts - the facts one status read produced.
@@ -3307,9 +3696,10 @@ function plural(count, noun) {
3307
3696
  * The status bar under the editor: plain session facts become an ordered list
3308
3697
  * of segments, each with a stable id, the short label the bar draws, and what
3309
3698
  * `Enter` on it does — the rows the app prints, or the app's own navigable
3310
- * page; a second function renders those segments as one unfocused line of key
3311
- * facts, or as two focused lines whose first is a sliding window that always
3312
- * includes the selected segment. Everything here is pure — no Context, no
3699
+ * page with the one-line summary the focused bar expands; a second function
3700
+ * renders those segments as one unfocused line of key facts, or as two focused
3701
+ * lines whose first is a sliding window that always includes the selected
3702
+ * segment. Everything here is pure — no Context, no
3313
3703
  * services, no terminal, and no clock: elapsed values arrive already formatted,
3314
3704
  * and the terminal width arrives as an input so every line fits it.
3315
3705
  * @module @deepseek-ai/dsh-tui-app/footer
@@ -3339,19 +3729,18 @@ const KEY_SEGMENT_IDS = new Set([
3339
3729
  "effort",
3340
3730
  "turn",
3341
3731
  "context",
3732
+ "todo",
3342
3733
  "workspace"
3343
3734
  ]);
3344
3735
  /** The command that prints every projection section at once. */
3345
3736
  const STATUS_COMMAND_ROW = "/status prints all of these sections";
3346
3737
  /**
3347
3738
  * What opening each projection-fact segment does: a section builder produces
3348
- * the rows the app prints, and `OPENED_PAGE` names a fact the app has its own
3349
- * navigable page for. The printed `/status` report still carries a todo
3350
- * section; the bar hands the todo list to the app instead.
3739
+ * the rows the app prints. The `todo` segment is a page instead: the bar
3740
+ * expands its counts on line 2 and the app opens the same list `/todos` opens.
3351
3741
  */
3352
3742
  const STATUS_SECTIONS = {
3353
3743
  context: contextLines,
3354
- todo: { kind: "page" },
3355
3744
  goal: goalLines,
3356
3745
  plan: planLines
3357
3746
  };
@@ -3367,6 +3756,17 @@ function printed(rows) {
3367
3756
  };
3368
3757
  }
3369
3758
  /**
3759
+ * A segment the app opens as a page, with the one-line summary the bar expands.
3760
+ * @param summary - the expansion the focused bar draws.
3761
+ * @returns the detail.
3762
+ */
3763
+ function openedPage(summary) {
3764
+ return {
3765
+ kind: "page",
3766
+ summary
3767
+ };
3768
+ }
3769
+ /**
3370
3770
  * The workspace label: a home-directory prefix becomes `~`, and a path still
3371
3771
  * wider than the bar allows keeps only its last two segments.
3372
3772
  * @param cwd - the workspace root.
@@ -3453,11 +3853,19 @@ function buildFooterSegments(inputs) {
3453
3853
  ])
3454
3854
  });
3455
3855
  for (const part of footerStatus(facts)) {
3856
+ if (part.id === "todo") {
3857
+ segments.push({
3858
+ id: "todo",
3859
+ label: part.label,
3860
+ detail: openedPage(todoSummary(facts))
3861
+ });
3862
+ continue;
3863
+ }
3456
3864
  const section = STATUS_SECTIONS[part.id];
3457
3865
  segments.push({
3458
3866
  id: part.id,
3459
3867
  label: part.label,
3460
- detail: typeof section === "function" ? printed([...section(facts), STATUS_COMMAND_ROW]) : section
3868
+ detail: printed([...section(facts), STATUS_COMMAND_ROW])
3461
3869
  });
3462
3870
  }
3463
3871
  segments.push({
@@ -3539,13 +3947,13 @@ function unfocusedLine(segments, palette, width) {
3539
3947
  return fitLine(palette.dim(key.join(SEPARATOR$1)), width);
3540
3948
  }
3541
3949
  /**
3542
- * The first detail row of a printed segment, or the label of a page segment.
3950
+ * The first detail row of a printed segment, or the summary of a page segment.
3543
3951
  * @param segment - the selected segment; absent when the bar has none.
3544
3952
  * @returns the expansion body.
3545
3953
  */
3546
3954
  function expansionBody(segment) {
3547
3955
  if (segment === void 0) return "";
3548
- if (segment.detail.kind === "page") return segment.label;
3956
+ if (segment.detail.kind === "page") return segment.detail.summary;
3549
3957
  return segment.detail.rows[0];
3550
3958
  }
3551
3959
  /**
@@ -4578,6 +4986,8 @@ var TuiApp = class {
4578
4986
  todoTurns = /* @__PURE__ */ new Map();
4579
4987
  /** The turn the last logged `turn/start` opened; 0 before the first one. */
4580
4988
  turn = 0;
4989
+ /** Whether a nonempty system prompt has already been drawn in this transcript. */
4990
+ sawSystemPrompt = false;
4581
4991
  /** When the running turn started, from its `turn/start` envelope; absent between turns. */
4582
4992
  turnStartedAt;
4583
4993
  pending = [];
@@ -4792,6 +5202,7 @@ var TuiApp = class {
4792
5202
  this.submittedIds.clear();
4793
5203
  this.todoTurns.clear();
4794
5204
  this.turn = 0;
5205
+ this.sawSystemPrompt = false;
4795
5206
  this.turnStartedAt = void 0;
4796
5207
  this.streaming = void 0;
4797
5208
  this.endFade();
@@ -5378,7 +5789,8 @@ var TuiApp = class {
5378
5789
  /**
5379
5790
  * Answer the keys every non-editor region answers the same way: `Escape`
5380
5791
  * hands the keyboard back to the editor, `Shift+Up` names the conversation,
5381
- * and `Shift+Down` the status bar.
5792
+ * and `Shift+Down` the status bar. The transcript reads those two shift
5793
+ * arrows as a walk instead, so this helper is for the bar and the panel.
5382
5794
  * @param data - the raw key bytes.
5383
5795
  * @returns the consume marker when the key named a region, `undefined` when the focused region owns the key.
5384
5796
  */
@@ -5426,12 +5838,17 @@ var TuiApp = class {
5426
5838
  * Answer one key while the transcript holds focus. Every key is consumed
5427
5839
  * here, so nothing typed while reading the conversation reaches the editor;
5428
5840
  * `Ctrl+C` and `Ctrl+D` never reach this far and keep their global meaning.
5841
+ * `Up` / `Down` and `Shift+Up` / `Shift+Down` walk every section in reading
5842
+ * order; `Shift+Up` from the editor still enters on the newest section, and
5843
+ * `Shift+Down` from the editor still names the regions under it.
5429
5844
  * @param data - the raw key bytes.
5430
5845
  * @returns the consume marker the input listener returns.
5431
5846
  */
5432
5847
  onTranscriptKey(data) {
5433
- const region = this.onRegionKey(data);
5434
- if (region !== void 0) return region;
5848
+ if (matchesKey(data, "escape")) {
5849
+ this.focusEditor();
5850
+ return { consume: true };
5851
+ }
5435
5852
  const section = this.focusedSection();
5436
5853
  /* v8 ignore next 5 -- only a session change empties the transcript, and it hands the keyboard back first */
5437
5854
  if (section === void 0) {
@@ -5439,13 +5856,14 @@ var TuiApp = class {
5439
5856
  return { consume: true };
5440
5857
  }
5441
5858
  const { cursor, blocks } = section;
5442
- if (matchesKey(data, "up")) {
5443
- this.moveCursor(moveBlock(cursor, -1, blocks));
5859
+ if (matchesKey(data, "up") || matchesKey(data, "shift+up")) {
5860
+ this.moveCursor(moveSection(cursor, -1, blocks));
5444
5861
  return { consume: true };
5445
5862
  }
5446
- if (matchesKey(data, "down")) {
5447
- if (cursor.block === blocks.length - 1) this.focusBelowEditor();
5448
- else this.moveCursor(moveBlock(cursor, 1, blocks));
5863
+ if (matchesKey(data, "down") || matchesKey(data, "shift+down")) {
5864
+ const next = moveSection(cursor, 1, blocks);
5865
+ if (next.block === cursor.block && next.part === cursor.part) this.focusBelowEditor();
5866
+ else this.moveCursor(next);
5449
5867
  return { consume: true };
5450
5868
  }
5451
5869
  if (matchesKey(data, "left")) {
@@ -5625,7 +6043,8 @@ var TuiApp = class {
5625
6043
  heading: sectionHeading(cursor, blocks),
5626
6044
  parts: partLabels(cursor, blocks),
5627
6045
  rows: section.part.rows,
5628
- highlighted: this.highlighted !== void 0
6046
+ highlighted: this.highlighted !== void 0,
6047
+ complete: section.block.blockKind === "context"
5629
6048
  };
5630
6049
  }
5631
6050
  /** Hand the keyboard back to the editor; a no-op while the editor already has it. */
@@ -5810,7 +6229,7 @@ var TuiApp = class {
5810
6229
  "Esc stops the running turn · Ctrl+O expands or collapses tool output",
5811
6230
  "Shift+Tab cycles the current model's reasoning effort for the next request",
5812
6231
  "Shift+Up focuses the transcript, Shift+Down the subagent panel or the status bar",
5813
- "Then ↑ ↓ move between blocks, panel rows, and the bar; ← → move between a block's parts or the bar's segments (Shift+← → also move the bar)",
6232
+ "Then ↑ ↓ walk every section, panel row, and bar segment; ← → move between a block's parts or the bar's segments (Shift+← → also move the bar)",
5814
6233
  "Enter opens the focused section or segment, Esc returns to the input",
5815
6234
  "Ctrl+C clears the input (twice quits) · Ctrl+D on an empty input quits"
5816
6235
  ];
@@ -6405,7 +6824,7 @@ var TuiApp = class {
6405
6824
  const section = this.focusedSection();
6406
6825
  const wanted = section !== void 0 && this.focus === "transcript" ? {
6407
6826
  block: section.block,
6408
- part: section.part.kind
6827
+ part: section.cursor.part
6409
6828
  } : void 0;
6410
6829
  const fades = this.fadesMoving();
6411
6830
  if (!fades && wanted === void 0 && this.highlighted === void 0) return false;
@@ -6495,6 +6914,9 @@ var TuiApp = class {
6495
6914
  case "user/message":
6496
6915
  this.onUserMessage(event.data);
6497
6916
  break;
6917
+ case "system/message":
6918
+ this.onSystemMessage(event.data);
6919
+ break;
6498
6920
  case "assistant/message": {
6499
6921
  const { message, usage, interrupted } = event.data;
6500
6922
  const text = message.content.filter((block) => block.type === "text").map((block) => block.text).join("");
@@ -6598,7 +7020,19 @@ var TuiApp = class {
6598
7020
  this.chat.addChild(new UserBlock(this.theme, [contentText(message.content), ...attachments].filter((part) => part !== "").join("\n"), this.turn));
6599
7021
  return;
6600
7022
  }
6601
- if (source.kind === "plugin" && source.form === "notice") this.chat.addChild(new NoticeBlock(this.theme, source.summary));
7023
+ const view = injectedContextView(source, message.content);
7024
+ if (view === void 0) return;
7025
+ this.chat.addChild(new ContextBlock(this.theme, view.title, view.parts, this.turn));
7026
+ }
7027
+ /**
7028
+ * Draw one nonempty system prompt as a navigable context block.
7029
+ * @param data - the durable `system/message` payload.
7030
+ */
7031
+ onSystemMessage(data) {
7032
+ const view = systemPromptView(contentText(data.message.content), this.sawSystemPrompt);
7033
+ if (view === void 0) return;
7034
+ this.sawSystemPrompt = true;
7035
+ this.chat.addChild(new ContextBlock(this.theme, view.title, view.parts, data.turn));
6602
7036
  }
6603
7037
  presentCall(name, args) {
6604
7038
  const definition = this.deps.ctx.get("tools")?.get(name, this.agent);