@askdkc/dsh-cli 0.11.7 → 0.12.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.
Files changed (838) hide show
  1. package/LICENSE +1 -0
  2. package/README.md +47 -283
  3. package/cordis.patch.yml +1 -0
  4. package/cordis.yml +1 -0
  5. package/lib/types/adapter/channel/ui-policy.d.ts +1 -1
  6. package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -1
  7. package/lib/types/adapter/channel/ui-policy.js +1 -0
  8. package/lib/types/adapter/ports/channel-ui.d.ts +2 -0
  9. package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
  10. package/lib/types/components/LogoV2.d.ts +2 -1
  11. package/lib/types/components/LogoV2.d.ts.map +1 -1
  12. package/lib/types/components/LogoV2.js +9 -15
  13. package/lib/types/components/ModelPicker.d.ts +9 -11
  14. package/lib/types/components/ModelPicker.d.ts.map +1 -1
  15. package/lib/types/components/ModelPicker.js +6 -9
  16. package/lib/types/components/Spinner/SpinnerAnimationRow.d.ts +6 -1
  17. package/lib/types/components/Spinner/SpinnerAnimationRow.d.ts.map +1 -1
  18. package/lib/types/components/Spinner/SpinnerAnimationRow.js +8 -9
  19. package/lib/types/components/WorkingSpinner.d.ts +3 -1
  20. package/lib/types/components/WorkingSpinner.d.ts.map +1 -1
  21. package/lib/types/components/WorkingSpinner.js +9 -4
  22. package/lib/types/components/bigfont.d.ts +2 -0
  23. package/lib/types/components/bigfont.d.ts.map +1 -1
  24. package/lib/types/components/bigfont.js +5 -1
  25. package/lib/types/components/splashLayout.d.ts +12 -0
  26. package/lib/types/components/splashLayout.d.ts.map +1 -0
  27. package/lib/types/components/splashLayout.js +18 -0
  28. package/lib/types/dsh-adapter/activity-store.d.ts +1 -1
  29. package/lib/types/dsh-adapter/activity-store.d.ts.map +1 -1
  30. package/lib/types/dsh-adapter/channel/projection.d.ts +1 -1
  31. package/lib/types/dsh-adapter/channel/projection.d.ts.map +1 -1
  32. package/lib/types/dsh-adapter/channel/projection.js +4 -0
  33. package/lib/types/dsh-adapter/channel/session-reset.d.ts +1 -1
  34. package/lib/types/dsh-adapter/channel/session-reset.d.ts.map +1 -1
  35. package/lib/types/dsh-adapter/channel/session-reset.js +2 -0
  36. package/lib/types/dsh-adapter/channel/state.d.ts +1 -1
  37. package/lib/types/dsh-adapter/channel/state.d.ts.map +1 -1
  38. package/lib/types/dsh-adapter/channel/state.js +2 -1
  39. package/lib/types/i18n.d.ts +32 -2
  40. package/lib/types/i18n.d.ts.map +1 -1
  41. package/lib/types/i18n.js +19 -1
  42. package/lib/types/modelGroups.d.ts +3 -1
  43. package/lib/types/modelGroups.d.ts.map +1 -1
  44. package/lib/types/modelGroups.js +4 -0
  45. package/lib/types/screens/Chat.d.ts.map +1 -1
  46. package/lib/types/screens/Chat.js +37 -37
  47. package/node_modules/@askdkc/dsh-auth/LICENSE +1 -0
  48. package/node_modules/@askdkc/dsh-auth/README.ja.md +17 -12
  49. package/node_modules/@askdkc/dsh-auth/README.md +18 -13
  50. package/node_modules/@askdkc/dsh-auth/package.json +7 -2
  51. package/node_modules/dsh-working-activity/LICENSE +28 -0
  52. package/node_modules/dsh-working-activity/README.md +16 -0
  53. package/node_modules/dsh-working-activity/cordis.patch.yml +19 -0
  54. package/node_modules/dsh-working-activity/lib/client.js +169 -0
  55. package/node_modules/dsh-working-activity/lib/client.js.map +1 -0
  56. package/node_modules/dsh-working-activity/lib/types/activity-event.d.ts +147 -0
  57. package/node_modules/dsh-working-activity/lib/types/activity-event.js +18 -0
  58. package/node_modules/dsh-working-activity/lib/types/client/WorkingLine.d.ts +8 -0
  59. package/node_modules/dsh-working-activity/lib/types/client/WorkingLine.d.ts.map +1 -0
  60. package/node_modules/dsh-working-activity/lib/types/client/WorkingLine.js +57 -0
  61. package/node_modules/dsh-working-activity/lib/types/client/activity.d.ts +37 -0
  62. package/node_modules/dsh-working-activity/lib/types/client/activity.d.ts.map +1 -0
  63. package/node_modules/dsh-working-activity/lib/types/client/activity.js +26 -0
  64. package/node_modules/dsh-working-activity/lib/types/client/elapsed.d.ts +41 -0
  65. package/node_modules/dsh-working-activity/lib/types/client/elapsed.d.ts.map +1 -0
  66. package/node_modules/dsh-working-activity/lib/types/client/elapsed.js +78 -0
  67. package/node_modules/dsh-working-activity/lib/types/client/index.d.ts +26 -0
  68. package/node_modules/dsh-working-activity/lib/types/client/index.d.ts.map +1 -0
  69. package/node_modules/dsh-working-activity/lib/types/client/index.js +19 -0
  70. package/node_modules/dsh-working-activity/lib/types/compat/assistant-stream.d.ts +59 -0
  71. package/node_modules/dsh-working-activity/lib/types/compat/assistant-stream.js +189 -0
  72. package/node_modules/dsh-working-activity/lib/types/compat/session-events.d.ts +38 -0
  73. package/node_modules/dsh-working-activity/lib/types/compat/session-events.js +193 -0
  74. package/node_modules/dsh-working-activity/lib/types/compat/tool-result.d.ts +72 -0
  75. package/node_modules/dsh-working-activity/lib/types/compat/tool-result.js +136 -0
  76. package/node_modules/dsh-working-activity/lib/types/config.d.ts +74 -0
  77. package/node_modules/dsh-working-activity/lib/types/config.js +142 -0
  78. package/node_modules/dsh-working-activity/lib/types/events.d.ts +41 -0
  79. package/node_modules/dsh-working-activity/lib/types/events.js +9 -0
  80. package/node_modules/dsh-working-activity/lib/types/frames.d.ts +36 -0
  81. package/node_modules/dsh-working-activity/lib/types/frames.js +126 -0
  82. package/node_modules/dsh-working-activity/lib/types/index.d.ts +71 -0
  83. package/node_modules/dsh-working-activity/lib/types/index.js +350 -0
  84. package/node_modules/dsh-working-activity/lib/types/invariant.d.ts +15 -0
  85. package/node_modules/dsh-working-activity/lib/types/invariant.js +72 -0
  86. package/node_modules/dsh-working-activity/lib/types/japanese.d.ts +28 -0
  87. package/node_modules/dsh-working-activity/lib/types/japanese.js +47 -0
  88. package/node_modules/dsh-working-activity/lib/types/lang.d.ts +140 -0
  89. package/node_modules/dsh-working-activity/lib/types/lang.js +209 -0
  90. package/node_modules/dsh-working-activity/lib/types/phrases.d.ts +246 -0
  91. package/node_modules/dsh-working-activity/lib/types/phrases.js +611 -0
  92. package/node_modules/dsh-working-activity/lib/types/projection.d.ts +168 -0
  93. package/node_modules/dsh-working-activity/lib/types/projection.js +162 -0
  94. package/node_modules/dsh-working-activity/lib/types/registration.d.ts +6 -0
  95. package/node_modules/dsh-working-activity/lib/types/registration.js +94 -0
  96. package/node_modules/dsh-working-activity/lib/types/status.d.ts +400 -0
  97. package/node_modules/dsh-working-activity/lib/types/status.js +1306 -0
  98. package/node_modules/dsh-working-activity/package.json +108 -0
  99. package/node_modules/dsh-working-activity/src/activity-event.ts +106 -0
  100. package/node_modules/dsh-working-activity/src/client/WorkingLine.module.css +74 -0
  101. package/node_modules/dsh-working-activity/src/client/WorkingLine.tsx +94 -0
  102. package/node_modules/dsh-working-activity/src/client/activity.ts +43 -0
  103. package/node_modules/dsh-working-activity/src/client/css-modules.d.ts +6 -0
  104. package/node_modules/dsh-working-activity/src/client/elapsed.ts +88 -0
  105. package/node_modules/dsh-working-activity/src/client/index.ts +45 -0
  106. package/node_modules/dsh-working-activity/src/compat/assistant-stream.ts +209 -0
  107. package/node_modules/dsh-working-activity/src/compat/session-events.ts +201 -0
  108. package/node_modules/dsh-working-activity/src/compat/tool-result.ts +132 -0
  109. package/node_modules/dsh-working-activity/src/config.ts +176 -0
  110. package/node_modules/dsh-working-activity/src/events.ts +45 -0
  111. package/node_modules/dsh-working-activity/src/frames.ts +138 -0
  112. package/node_modules/dsh-working-activity/src/index.ts +467 -0
  113. package/node_modules/dsh-working-activity/src/invariant.ts +98 -0
  114. package/node_modules/dsh-working-activity/src/japanese.ts +47 -0
  115. package/node_modules/dsh-working-activity/src/lang.ts +221 -0
  116. package/node_modules/dsh-working-activity/src/phrases.ts +715 -0
  117. package/node_modules/dsh-working-activity/src/projection.ts +259 -0
  118. package/node_modules/dsh-working-activity/src/registration.ts +99 -0
  119. package/node_modules/dsh-working-activity/src/status.ts +1474 -0
  120. package/package.json +13 -9
  121. package/vendor/dsh-working-activity/node_modules/zod/LICENSE +21 -0
  122. package/vendor/dsh-working-activity/node_modules/zod/README.md +191 -0
  123. package/vendor/dsh-working-activity/node_modules/zod/index.cjs +33 -0
  124. package/vendor/dsh-working-activity/node_modules/zod/index.d.cts +4 -0
  125. package/vendor/dsh-working-activity/node_modules/zod/index.d.ts +4 -0
  126. package/vendor/dsh-working-activity/node_modules/zod/index.js +4 -0
  127. package/vendor/dsh-working-activity/node_modules/zod/locales/index.cjs +17 -0
  128. package/vendor/dsh-working-activity/node_modules/zod/locales/index.d.cts +1 -0
  129. package/vendor/dsh-working-activity/node_modules/zod/locales/index.d.ts +1 -0
  130. package/vendor/dsh-working-activity/node_modules/zod/locales/index.js +1 -0
  131. package/vendor/dsh-working-activity/node_modules/zod/locales/package.json +7 -0
  132. package/vendor/dsh-working-activity/node_modules/zod/mini/index.cjs +32 -0
  133. package/vendor/dsh-working-activity/node_modules/zod/mini/index.d.cts +3 -0
  134. package/vendor/dsh-working-activity/node_modules/zod/mini/index.d.ts +3 -0
  135. package/vendor/dsh-working-activity/node_modules/zod/mini/index.js +3 -0
  136. package/vendor/dsh-working-activity/node_modules/zod/mini/package.json +7 -0
  137. package/vendor/dsh-working-activity/node_modules/zod/package.json +135 -0
  138. package/vendor/dsh-working-activity/node_modules/zod/src/index.ts +4 -0
  139. package/vendor/dsh-working-activity/node_modules/zod/src/locales/index.ts +1 -0
  140. package/vendor/dsh-working-activity/node_modules/zod/src/mini/index.ts +3 -0
  141. package/vendor/dsh-working-activity/node_modules/zod/src/v3/ZodError.ts +330 -0
  142. package/vendor/dsh-working-activity/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  143. package/vendor/dsh-working-activity/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  144. package/vendor/dsh-working-activity/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  145. package/vendor/dsh-working-activity/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  146. package/vendor/dsh-working-activity/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  147. package/vendor/dsh-working-activity/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  148. package/vendor/dsh-working-activity/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  149. package/vendor/dsh-working-activity/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  150. package/vendor/dsh-working-activity/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  151. package/vendor/dsh-working-activity/node_modules/zod/src/v3/errors.ts +13 -0
  152. package/vendor/dsh-working-activity/node_modules/zod/src/v3/external.ts +6 -0
  153. package/vendor/dsh-working-activity/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  154. package/vendor/dsh-working-activity/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  155. package/vendor/dsh-working-activity/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  156. package/vendor/dsh-working-activity/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  157. package/vendor/dsh-working-activity/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  158. package/vendor/dsh-working-activity/node_modules/zod/src/v3/helpers/util.ts +224 -0
  159. package/vendor/dsh-working-activity/node_modules/zod/src/v3/index.ts +4 -0
  160. package/vendor/dsh-working-activity/node_modules/zod/src/v3/locales/en.ts +124 -0
  161. package/vendor/dsh-working-activity/node_modules/zod/src/v3/standard-schema.ts +113 -0
  162. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  163. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  164. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  165. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  166. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  167. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  168. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  169. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  170. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  171. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  172. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  173. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  174. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  175. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  176. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  177. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  178. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  179. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  180. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  181. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  182. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  183. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  184. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  185. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  186. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  187. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  188. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  189. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  190. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  191. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  192. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  193. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  194. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  195. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  196. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  197. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  198. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  199. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  200. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  201. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  202. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  203. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  204. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  205. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  206. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  207. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  208. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  209. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  210. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  211. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  212. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  213. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  214. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  215. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  216. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  217. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  218. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  219. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  220. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  221. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  222. package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  223. package/vendor/dsh-working-activity/node_modules/zod/src/v3/types.ts +5138 -0
  224. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/checks.ts +32 -0
  225. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  226. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/compat.ts +70 -0
  227. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/errors.ts +82 -0
  228. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/external.ts +52 -0
  229. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/from-json-schema.ts +659 -0
  230. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/index.ts +5 -0
  231. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/iso.ts +90 -0
  232. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/parse.ts +82 -0
  233. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/schemas.ts +2672 -0
  234. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  235. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
  236. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  237. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/assignability.test.ts +216 -0
  238. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  239. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  240. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  241. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  242. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  243. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/catch.test.ts +326 -0
  244. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  245. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
  246. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/codec.test.ts +703 -0
  247. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  248. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  249. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  250. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
  251. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
  252. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/default.test.ts +409 -0
  253. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  254. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  255. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +197 -0
  256. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +694 -0
  257. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  258. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +807 -0
  259. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  260. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  261. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  262. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  263. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +895 -0
  264. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
  265. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  266. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/global-config.test.ts +39 -0
  267. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
  268. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
  269. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
  270. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
  271. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +46 -0
  272. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  273. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  274. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
  275. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  276. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  277. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
  278. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  279. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  280. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  281. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  282. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/number.test.ts +325 -0
  283. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/object.test.ts +717 -0
  284. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/optional.test.ts +333 -0
  285. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/partial.test.ts +450 -0
  286. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  287. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  288. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
  289. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +26 -0
  290. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  291. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  292. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  293. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  294. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  295. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/record.test.ts +717 -0
  296. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +631 -0
  297. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/refine.test.ts +633 -0
  298. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  299. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
  300. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
  301. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  302. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/string.test.ts +1224 -0
  303. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
  304. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
  305. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  306. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3125 -0
  307. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  308. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/tuple.test.ts +496 -0
  309. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/union.test.ts +273 -0
  310. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  311. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  312. package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  313. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/api.ts +1823 -0
  314. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/checks.ts +1293 -0
  315. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/config.ts +15 -0
  316. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/core.ts +153 -0
  317. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/doc.ts +44 -0
  318. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/errors.ts +455 -0
  319. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/index.ts +16 -0
  320. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
  321. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/json-schema-processors.ts +666 -0
  322. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/json-schema.ts +147 -0
  323. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/parse.ts +195 -0
  324. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/regexes.ts +190 -0
  325. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/registries.ts +105 -0
  326. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/schemas.ts +4730 -0
  327. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  328. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  329. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  330. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  331. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/el.test.ts +215 -0
  332. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  333. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
  334. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  335. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  336. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  337. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  338. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  339. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  340. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  341. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  342. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  343. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/to-json-schema.ts +622 -0
  344. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/util.ts +983 -0
  345. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/versions.ts +5 -0
  346. package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/zsf.ts +323 -0
  347. package/vendor/dsh-working-activity/node_modules/zod/src/v4/index.ts +4 -0
  348. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ar.ts +115 -0
  349. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/az.ts +111 -0
  350. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/be.ts +176 -0
  351. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/bg.ts +128 -0
  352. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ca.ts +116 -0
  353. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/cs.ts +118 -0
  354. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/da.ts +123 -0
  355. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/de.ts +116 -0
  356. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/el.ts +121 -0
  357. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/en.ts +123 -0
  358. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/eo.ts +118 -0
  359. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/es.ts +141 -0
  360. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/fa.ts +126 -0
  361. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/fi.ts +121 -0
  362. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
  363. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/fr.ts +132 -0
  364. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/he.ts +246 -0
  365. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/hr.ts +131 -0
  366. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/hu.ts +117 -0
  367. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/hy.ts +164 -0
  368. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/id.ts +115 -0
  369. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/index.ts +52 -0
  370. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/is.ts +119 -0
  371. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/it.ts +116 -0
  372. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ja.ts +114 -0
  373. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ka.ts +123 -0
  374. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/kh.ts +7 -0
  375. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/km.ts +119 -0
  376. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ko.ts +121 -0
  377. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/lt.ts +239 -0
  378. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/mk.ts +118 -0
  379. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ms.ts +115 -0
  380. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/nl.ts +121 -0
  381. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/no.ts +116 -0
  382. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ota.ts +117 -0
  383. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/pl.ts +118 -0
  384. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ps.ts +126 -0
  385. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/pt.ts +116 -0
  386. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ro.ts +129 -0
  387. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ru.ts +176 -0
  388. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/sl.ts +118 -0
  389. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/sv.ts +119 -0
  390. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ta.ts +118 -0
  391. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/th.ts +119 -0
  392. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/tr.ts +111 -0
  393. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ua.ts +7 -0
  394. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/uk.ts +117 -0
  395. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ur.ts +119 -0
  396. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/uz.ts +117 -0
  397. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/vi.ts +117 -0
  398. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/yo.ts +124 -0
  399. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
  400. package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
  401. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/checks.ts +32 -0
  402. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  403. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/external.ts +41 -0
  404. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/index.ts +3 -0
  405. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/iso.ts +66 -0
  406. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/parse.ts +14 -0
  407. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/schemas.ts +1947 -0
  408. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
  409. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  410. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  411. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  412. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/codec.test.ts +548 -0
  413. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  414. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  415. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
  416. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/index.test.ts +993 -0
  417. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  418. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
  419. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  420. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +325 -0
  421. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  422. package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/string.test.ts +352 -0
  423. package/vendor/dsh-working-activity/node_modules/zod/src/v4-mini/index.ts +3 -0
  424. package/vendor/dsh-working-activity/node_modules/zod/v3/ZodError.cjs +138 -0
  425. package/vendor/dsh-working-activity/node_modules/zod/v3/ZodError.d.cts +164 -0
  426. package/vendor/dsh-working-activity/node_modules/zod/v3/ZodError.d.ts +164 -0
  427. package/vendor/dsh-working-activity/node_modules/zod/v3/ZodError.js +133 -0
  428. package/vendor/dsh-working-activity/node_modules/zod/v3/errors.cjs +17 -0
  429. package/vendor/dsh-working-activity/node_modules/zod/v3/errors.d.cts +5 -0
  430. package/vendor/dsh-working-activity/node_modules/zod/v3/errors.d.ts +5 -0
  431. package/vendor/dsh-working-activity/node_modules/zod/v3/errors.js +9 -0
  432. package/vendor/dsh-working-activity/node_modules/zod/v3/external.cjs +22 -0
  433. package/vendor/dsh-working-activity/node_modules/zod/v3/external.d.cts +6 -0
  434. package/vendor/dsh-working-activity/node_modules/zod/v3/external.d.ts +6 -0
  435. package/vendor/dsh-working-activity/node_modules/zod/v3/external.js +6 -0
  436. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  437. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  438. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  439. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  440. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  441. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  442. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  443. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  444. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  445. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  446. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  447. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  448. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  449. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  450. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  451. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  452. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  453. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  454. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  455. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  456. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/util.cjs +137 -0
  457. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/util.d.cts +85 -0
  458. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/util.d.ts +85 -0
  459. package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/util.js +133 -0
  460. package/vendor/dsh-working-activity/node_modules/zod/v3/index.cjs +33 -0
  461. package/vendor/dsh-working-activity/node_modules/zod/v3/index.d.cts +4 -0
  462. package/vendor/dsh-working-activity/node_modules/zod/v3/index.d.ts +4 -0
  463. package/vendor/dsh-working-activity/node_modules/zod/v3/index.js +4 -0
  464. package/vendor/dsh-working-activity/node_modules/zod/v3/locales/en.cjs +112 -0
  465. package/vendor/dsh-working-activity/node_modules/zod/v3/locales/en.d.cts +3 -0
  466. package/vendor/dsh-working-activity/node_modules/zod/v3/locales/en.d.ts +3 -0
  467. package/vendor/dsh-working-activity/node_modules/zod/v3/locales/en.js +109 -0
  468. package/vendor/dsh-working-activity/node_modules/zod/v3/package.json +7 -0
  469. package/vendor/dsh-working-activity/node_modules/zod/v3/standard-schema.cjs +2 -0
  470. package/vendor/dsh-working-activity/node_modules/zod/v3/standard-schema.d.cts +102 -0
  471. package/vendor/dsh-working-activity/node_modules/zod/v3/standard-schema.d.ts +102 -0
  472. package/vendor/dsh-working-activity/node_modules/zod/v3/standard-schema.js +1 -0
  473. package/vendor/dsh-working-activity/node_modules/zod/v3/types.cjs +3777 -0
  474. package/vendor/dsh-working-activity/node_modules/zod/v3/types.d.cts +1034 -0
  475. package/vendor/dsh-working-activity/node_modules/zod/v3/types.d.ts +1034 -0
  476. package/vendor/dsh-working-activity/node_modules/zod/v3/types.js +3695 -0
  477. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/checks.cjs +33 -0
  478. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/checks.d.cts +1 -0
  479. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/checks.d.ts +1 -0
  480. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/checks.js +1 -0
  481. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/coerce.cjs +47 -0
  482. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  483. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  484. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/coerce.js +17 -0
  485. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/compat.cjs +61 -0
  486. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/compat.d.cts +50 -0
  487. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/compat.d.ts +50 -0
  488. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/compat.js +31 -0
  489. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/errors.cjs +74 -0
  490. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/errors.d.cts +30 -0
  491. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/errors.d.ts +30 -0
  492. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/errors.js +48 -0
  493. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/external.cjs +73 -0
  494. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/external.d.cts +16 -0
  495. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/external.d.ts +16 -0
  496. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/external.js +20 -0
  497. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/from-json-schema.cjs +625 -0
  498. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  499. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  500. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/from-json-schema.js +599 -0
  501. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/index.cjs +33 -0
  502. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/index.d.cts +4 -0
  503. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/index.d.ts +4 -0
  504. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/index.js +4 -0
  505. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/iso.cjs +60 -0
  506. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/iso.d.cts +22 -0
  507. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/iso.d.ts +22 -0
  508. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/iso.js +30 -0
  509. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/package.json +7 -0
  510. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/parse.cjs +41 -0
  511. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/parse.d.cts +31 -0
  512. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/parse.d.ts +31 -0
  513. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/parse.js +15 -0
  514. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/schemas.cjs +1511 -0
  515. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/schemas.d.cts +767 -0
  516. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/schemas.d.ts +767 -0
  517. package/vendor/dsh-working-activity/node_modules/zod/v4/classic/schemas.js +1395 -0
  518. package/vendor/dsh-working-activity/node_modules/zod/v4/core/api.cjs +1227 -0
  519. package/vendor/dsh-working-activity/node_modules/zod/v4/core/api.d.cts +325 -0
  520. package/vendor/dsh-working-activity/node_modules/zod/v4/core/api.d.ts +325 -0
  521. package/vendor/dsh-working-activity/node_modules/zod/v4/core/api.js +1087 -0
  522. package/vendor/dsh-working-activity/node_modules/zod/v4/core/checks.cjs +601 -0
  523. package/vendor/dsh-working-activity/node_modules/zod/v4/core/checks.d.cts +278 -0
  524. package/vendor/dsh-working-activity/node_modules/zod/v4/core/checks.d.ts +278 -0
  525. package/vendor/dsh-working-activity/node_modules/zod/v4/core/checks.js +575 -0
  526. package/vendor/dsh-working-activity/node_modules/zod/v4/core/core.cjs +85 -0
  527. package/vendor/dsh-working-activity/node_modules/zod/v4/core/core.d.cts +70 -0
  528. package/vendor/dsh-working-activity/node_modules/zod/v4/core/core.d.ts +70 -0
  529. package/vendor/dsh-working-activity/node_modules/zod/v4/core/core.js +78 -0
  530. package/vendor/dsh-working-activity/node_modules/zod/v4/core/doc.cjs +39 -0
  531. package/vendor/dsh-working-activity/node_modules/zod/v4/core/doc.d.cts +14 -0
  532. package/vendor/dsh-working-activity/node_modules/zod/v4/core/doc.d.ts +14 -0
  533. package/vendor/dsh-working-activity/node_modules/zod/v4/core/doc.js +35 -0
  534. package/vendor/dsh-working-activity/node_modules/zod/v4/core/errors.cjs +216 -0
  535. package/vendor/dsh-working-activity/node_modules/zod/v4/core/errors.d.cts +221 -0
  536. package/vendor/dsh-working-activity/node_modules/zod/v4/core/errors.d.ts +221 -0
  537. package/vendor/dsh-working-activity/node_modules/zod/v4/core/errors.js +185 -0
  538. package/vendor/dsh-working-activity/node_modules/zod/v4/core/index.cjs +47 -0
  539. package/vendor/dsh-working-activity/node_modules/zod/v4/core/index.d.cts +16 -0
  540. package/vendor/dsh-working-activity/node_modules/zod/v4/core/index.d.ts +16 -0
  541. package/vendor/dsh-working-activity/node_modules/zod/v4/core/index.js +16 -0
  542. package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
  543. package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  544. package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  545. package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema-generator.js +95 -0
  546. package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema-processors.cjs +644 -0
  547. package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
  548. package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
  549. package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema-processors.js +601 -0
  550. package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema.cjs +2 -0
  551. package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema.d.cts +88 -0
  552. package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema.d.ts +88 -0
  553. package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema.js +1 -0
  554. package/vendor/dsh-working-activity/node_modules/zod/v4/core/package.json +7 -0
  555. package/vendor/dsh-working-activity/node_modules/zod/v4/core/parse.cjs +131 -0
  556. package/vendor/dsh-working-activity/node_modules/zod/v4/core/parse.d.cts +49 -0
  557. package/vendor/dsh-working-activity/node_modules/zod/v4/core/parse.d.ts +49 -0
  558. package/vendor/dsh-working-activity/node_modules/zod/v4/core/parse.js +93 -0
  559. package/vendor/dsh-working-activity/node_modules/zod/v4/core/regexes.cjs +172 -0
  560. package/vendor/dsh-working-activity/node_modules/zod/v4/core/regexes.d.cts +85 -0
  561. package/vendor/dsh-working-activity/node_modules/zod/v4/core/regexes.d.ts +85 -0
  562. package/vendor/dsh-working-activity/node_modules/zod/v4/core/regexes.js +139 -0
  563. package/vendor/dsh-working-activity/node_modules/zod/v4/core/registries.cjs +56 -0
  564. package/vendor/dsh-working-activity/node_modules/zod/v4/core/registries.d.cts +35 -0
  565. package/vendor/dsh-working-activity/node_modules/zod/v4/core/registries.d.ts +35 -0
  566. package/vendor/dsh-working-activity/node_modules/zod/v4/core/registries.js +51 -0
  567. package/vendor/dsh-working-activity/node_modules/zod/v4/core/schemas.cjs +2270 -0
  568. package/vendor/dsh-working-activity/node_modules/zod/v4/core/schemas.d.cts +1184 -0
  569. package/vendor/dsh-working-activity/node_modules/zod/v4/core/schemas.d.ts +1184 -0
  570. package/vendor/dsh-working-activity/node_modules/zod/v4/core/schemas.js +2239 -0
  571. package/vendor/dsh-working-activity/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  572. package/vendor/dsh-working-activity/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  573. package/vendor/dsh-working-activity/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  574. package/vendor/dsh-working-activity/node_modules/zod/v4/core/standard-schema.js +1 -0
  575. package/vendor/dsh-working-activity/node_modules/zod/v4/core/to-json-schema.cjs +457 -0
  576. package/vendor/dsh-working-activity/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
  577. package/vendor/dsh-working-activity/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
  578. package/vendor/dsh-working-activity/node_modules/zod/v4/core/to-json-schema.js +448 -0
  579. package/vendor/dsh-working-activity/node_modules/zod/v4/core/util.cjs +734 -0
  580. package/vendor/dsh-working-activity/node_modules/zod/v4/core/util.d.cts +200 -0
  581. package/vendor/dsh-working-activity/node_modules/zod/v4/core/util.d.ts +200 -0
  582. package/vendor/dsh-working-activity/node_modules/zod/v4/core/util.js +674 -0
  583. package/vendor/dsh-working-activity/node_modules/zod/v4/core/versions.cjs +8 -0
  584. package/vendor/dsh-working-activity/node_modules/zod/v4/core/versions.d.cts +5 -0
  585. package/vendor/dsh-working-activity/node_modules/zod/v4/core/versions.d.ts +5 -0
  586. package/vendor/dsh-working-activity/node_modules/zod/v4/core/versions.js +5 -0
  587. package/vendor/dsh-working-activity/node_modules/zod/v4/index.cjs +22 -0
  588. package/vendor/dsh-working-activity/node_modules/zod/v4/index.d.cts +3 -0
  589. package/vendor/dsh-working-activity/node_modules/zod/v4/index.d.ts +3 -0
  590. package/vendor/dsh-working-activity/node_modules/zod/v4/index.js +3 -0
  591. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ar.cjs +133 -0
  592. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ar.d.cts +5 -0
  593. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ar.d.ts +4 -0
  594. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ar.js +106 -0
  595. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/az.cjs +132 -0
  596. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/az.d.cts +5 -0
  597. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/az.d.ts +4 -0
  598. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/az.js +105 -0
  599. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/be.cjs +183 -0
  600. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/be.d.cts +5 -0
  601. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/be.d.ts +4 -0
  602. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/be.js +156 -0
  603. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/bg.cjs +147 -0
  604. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/bg.d.cts +5 -0
  605. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/bg.d.ts +4 -0
  606. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/bg.js +120 -0
  607. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ca.cjs +134 -0
  608. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ca.d.cts +5 -0
  609. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ca.d.ts +4 -0
  610. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ca.js +107 -0
  611. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/cs.cjs +138 -0
  612. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/cs.d.cts +5 -0
  613. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/cs.d.ts +4 -0
  614. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/cs.js +111 -0
  615. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/da.cjs +142 -0
  616. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/da.d.cts +5 -0
  617. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/da.d.ts +4 -0
  618. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/da.js +115 -0
  619. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/de.cjs +135 -0
  620. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/de.d.cts +5 -0
  621. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/de.d.ts +4 -0
  622. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/de.js +108 -0
  623. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/el.cjs +136 -0
  624. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/el.d.cts +5 -0
  625. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/el.d.ts +4 -0
  626. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/el.js +109 -0
  627. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/en.cjs +140 -0
  628. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/en.d.cts +5 -0
  629. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/en.d.ts +4 -0
  630. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/en.js +113 -0
  631. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/eo.cjs +136 -0
  632. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/eo.d.cts +5 -0
  633. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/eo.d.ts +4 -0
  634. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/eo.js +109 -0
  635. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/es.cjs +159 -0
  636. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/es.d.cts +5 -0
  637. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/es.d.ts +4 -0
  638. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/es.js +132 -0
  639. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fa.cjs +141 -0
  640. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fa.d.cts +5 -0
  641. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fa.d.ts +4 -0
  642. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fa.js +114 -0
  643. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fi.cjs +139 -0
  644. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fi.d.cts +5 -0
  645. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fi.d.ts +4 -0
  646. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fi.js +112 -0
  647. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
  648. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  649. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  650. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fr-CA.js +107 -0
  651. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fr.cjs +152 -0
  652. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fr.d.cts +5 -0
  653. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fr.d.ts +4 -0
  654. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fr.js +125 -0
  655. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/he.cjs +241 -0
  656. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/he.d.cts +5 -0
  657. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/he.d.ts +4 -0
  658. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/he.js +214 -0
  659. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hr.cjs +149 -0
  660. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hr.d.cts +5 -0
  661. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hr.d.ts +4 -0
  662. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hr.js +122 -0
  663. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hu.cjs +135 -0
  664. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hu.d.cts +5 -0
  665. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hu.d.ts +4 -0
  666. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hu.js +108 -0
  667. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hy.cjs +174 -0
  668. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hy.d.cts +5 -0
  669. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hy.d.ts +4 -0
  670. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hy.js +147 -0
  671. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/id.cjs +133 -0
  672. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/id.d.cts +5 -0
  673. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/id.d.ts +4 -0
  674. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/id.js +106 -0
  675. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/index.cjs +111 -0
  676. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/index.d.cts +52 -0
  677. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/index.d.ts +52 -0
  678. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/index.js +52 -0
  679. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/is.cjs +136 -0
  680. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/is.d.cts +5 -0
  681. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/is.d.ts +4 -0
  682. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/is.js +109 -0
  683. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/it.cjs +135 -0
  684. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/it.d.cts +5 -0
  685. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/it.d.ts +4 -0
  686. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/it.js +108 -0
  687. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ja.cjs +134 -0
  688. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ja.d.cts +5 -0
  689. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ja.d.ts +4 -0
  690. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ja.js +107 -0
  691. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ka.cjs +139 -0
  692. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ka.d.cts +5 -0
  693. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ka.d.ts +4 -0
  694. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ka.js +112 -0
  695. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/kh.cjs +12 -0
  696. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/kh.d.cts +5 -0
  697. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/kh.d.ts +5 -0
  698. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/kh.js +5 -0
  699. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/km.cjs +137 -0
  700. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/km.d.cts +5 -0
  701. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/km.d.ts +4 -0
  702. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/km.js +110 -0
  703. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ko.cjs +138 -0
  704. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ko.d.cts +5 -0
  705. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ko.d.ts +4 -0
  706. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ko.js +111 -0
  707. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/lt.cjs +230 -0
  708. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/lt.d.cts +5 -0
  709. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/lt.d.ts +4 -0
  710. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/lt.js +203 -0
  711. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/mk.cjs +136 -0
  712. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/mk.d.cts +5 -0
  713. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/mk.d.ts +4 -0
  714. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/mk.js +109 -0
  715. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ms.cjs +134 -0
  716. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ms.d.cts +5 -0
  717. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ms.d.ts +4 -0
  718. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ms.js +107 -0
  719. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/nl.cjs +137 -0
  720. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/nl.d.cts +5 -0
  721. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/nl.d.ts +4 -0
  722. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/nl.js +110 -0
  723. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/no.cjs +135 -0
  724. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/no.d.cts +5 -0
  725. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/no.d.ts +4 -0
  726. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/no.js +108 -0
  727. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ota.cjs +136 -0
  728. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ota.d.cts +5 -0
  729. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ota.d.ts +4 -0
  730. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ota.js +109 -0
  731. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/package.json +7 -0
  732. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/pl.cjs +136 -0
  733. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/pl.d.cts +5 -0
  734. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/pl.d.ts +4 -0
  735. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/pl.js +109 -0
  736. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ps.cjs +141 -0
  737. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ps.d.cts +5 -0
  738. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ps.d.ts +4 -0
  739. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ps.js +114 -0
  740. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/pt.cjs +135 -0
  741. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/pt.d.cts +5 -0
  742. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/pt.d.ts +4 -0
  743. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/pt.js +108 -0
  744. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ro.cjs +146 -0
  745. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ro.d.cts +5 -0
  746. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ro.d.ts +4 -0
  747. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ro.js +119 -0
  748. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ru.cjs +183 -0
  749. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ru.d.cts +5 -0
  750. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ru.d.ts +4 -0
  751. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ru.js +156 -0
  752. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/sl.cjs +136 -0
  753. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/sl.d.cts +5 -0
  754. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/sl.d.ts +4 -0
  755. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/sl.js +109 -0
  756. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/sv.cjs +137 -0
  757. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/sv.d.cts +5 -0
  758. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/sv.d.ts +4 -0
  759. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/sv.js +110 -0
  760. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ta.cjs +137 -0
  761. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ta.d.cts +5 -0
  762. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ta.d.ts +4 -0
  763. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ta.js +110 -0
  764. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/th.cjs +137 -0
  765. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/th.d.cts +5 -0
  766. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/th.d.ts +4 -0
  767. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/th.js +110 -0
  768. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/tr.cjs +132 -0
  769. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/tr.d.cts +5 -0
  770. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/tr.d.ts +4 -0
  771. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/tr.js +105 -0
  772. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ua.cjs +12 -0
  773. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ua.d.cts +5 -0
  774. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ua.d.ts +5 -0
  775. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ua.js +5 -0
  776. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/uk.cjs +135 -0
  777. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/uk.d.cts +5 -0
  778. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/uk.d.ts +4 -0
  779. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/uk.js +108 -0
  780. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ur.cjs +137 -0
  781. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ur.d.cts +5 -0
  782. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ur.d.ts +4 -0
  783. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ur.js +110 -0
  784. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/uz.cjs +137 -0
  785. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/uz.d.cts +5 -0
  786. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/uz.d.ts +4 -0
  787. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/uz.js +110 -0
  788. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/vi.cjs +135 -0
  789. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/vi.d.cts +5 -0
  790. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/vi.d.ts +4 -0
  791. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/vi.js +108 -0
  792. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/yo.cjs +134 -0
  793. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/yo.d.cts +5 -0
  794. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/yo.d.ts +4 -0
  795. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/yo.js +107 -0
  796. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
  797. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  798. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  799. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/zh-CN.js +109 -0
  800. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
  801. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  802. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  803. package/vendor/dsh-working-activity/node_modules/zod/v4/locales/zh-TW.js +107 -0
  804. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/checks.cjs +34 -0
  805. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/checks.d.cts +1 -0
  806. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/checks.d.ts +1 -0
  807. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/checks.js +1 -0
  808. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/coerce.cjs +52 -0
  809. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  810. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  811. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/coerce.js +22 -0
  812. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/external.cjs +63 -0
  813. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/external.d.cts +13 -0
  814. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/external.d.ts +13 -0
  815. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/external.js +14 -0
  816. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/index.cjs +32 -0
  817. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/index.d.cts +3 -0
  818. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/index.d.ts +3 -0
  819. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/index.js +3 -0
  820. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/iso.cjs +64 -0
  821. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/iso.d.cts +22 -0
  822. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/iso.d.ts +22 -0
  823. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/iso.js +34 -0
  824. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/package.json +7 -0
  825. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/parse.cjs +16 -0
  826. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/parse.d.cts +1 -0
  827. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/parse.d.ts +1 -0
  828. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/parse.js +1 -0
  829. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/schemas.cjs +1083 -0
  830. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/schemas.d.cts +445 -0
  831. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/schemas.d.ts +445 -0
  832. package/vendor/dsh-working-activity/node_modules/zod/v4/mini/schemas.js +961 -0
  833. package/vendor/dsh-working-activity/node_modules/zod/v4/package.json +7 -0
  834. package/vendor/dsh-working-activity/node_modules/zod/v4-mini/index.cjs +32 -0
  835. package/vendor/dsh-working-activity/node_modules/zod/v4-mini/index.d.cts +3 -0
  836. package/vendor/dsh-working-activity/node_modules/zod/v4-mini/index.d.ts +3 -0
  837. package/vendor/dsh-working-activity/node_modules/zod/v4-mini/index.js +3 -0
  838. package/vendor/dsh-working-activity/node_modules/zod/v4-mini/package.json +7 -0
@@ -0,0 +1,467 @@
1
+ /**
2
+ * working-activity — a live "working line" for DeepSeek Harness agents.
3
+ *
4
+ * Folds the durable session stream (turn/step/tool/stream events) plus
5
+ * `agent/status` into a playful real-time status line, then publishes it two
6
+ * ways, both optional:
7
+ *
8
+ * - TUI: registers the `${activity}` prompt slot on `ctx.tuiPrompt` when the
9
+ * TUI is composed; add `${activity}` to `theme.leftPrompt` to see it.
10
+ * - Session log: appends log-only `activity/status` events (never surface
11
+ * events) for Web and other UI consumers; replay ignores them.
12
+ *
13
+ * The state machine itself lives in `./status.ts` (pure, clock-injected); this
14
+ * module only wires events, the render tick, and the two sinks.
15
+ * @module @deepseek-ai/dsh-working-activity
16
+ */
17
+
18
+ import { appendFile } from 'node:fs/promises'
19
+ import { homedir } from 'node:os'
20
+ import { join } from 'node:path'
21
+ import type { Context } from '@deepseek-ai/cordis'
22
+ import z from '@deepseek-ai/schemastery'
23
+ import type { Session } from '@deepseek-ai/dsh-session'
24
+ // Type-only: resolves the agent/status cordis event declaration.
25
+ import type { Agent } from '@deepseek-ai/dsh-agent'
26
+ // Type-only: resolves ctx.systemPrompt for the narration section injection.
27
+ import type {} from '@deepseek-ai/dsh-system-prompt'
28
+ import { ActivityTracker } from './status.js'
29
+ import type { TrackerConfig } from './status.js'
30
+ import { feedStreamFrame } from './compat/assistant-stream.js'
31
+ import { createActivityProjection, ACTIVITY_PROJECTION_KEY } from './projection.js'
32
+ import { registerActivityEventType } from './registration.js'
33
+ import { langNow, setLangOverride, t } from './lang.js'
34
+ import { DEFAULT_PRESET } from './frames.js'
35
+ import { featureOn, type FeatureFlag } from './config.js'
36
+ import type { ActivityState } from './status.js'
37
+ import type { ActivityStatusEvent } from './events.js'
38
+ // Re-export the event type + SessionEventMap merge: the package root must carry
39
+ // the declare-module side effect for consumers resolving the built d.ts.
40
+ export type * from './events.js'
41
+
42
+ export const name = 'working-activity'
43
+
44
+ /** Configurable knobs; every key has a sane default. */
45
+ export type Config = {
46
+ /** Playful copy pool; false renders plain functional labels. */
47
+ phrases?: boolean
48
+ /** Append `activity/status` session events for UI consumers. Default OFF:
49
+ * dsh-session's append() cannot mark events ignorable, and the resume
50
+ * read path refuses logs containing unknown non-ignorable types — every
51
+ * appended snapshot makes the whole session unresumable. Re-enable only
52
+ * for a log-replaying consumer on a harness that supports ignorable
53
+ * appends. The live status line (prompt slot / session events) is
54
+ * unaffected by this flag. */
55
+ publish?: boolean
56
+ /** Status render tick interval in ms. */
57
+ tickMs?: number
58
+ /** Minimum interval in ms between published events while the line is stable. */
59
+ publishIntervalMs?: number
60
+ /** Maximum displayed detail length (paths/commands/patterns). */
61
+ detailLimit?: number
62
+ /** Exact tool-name → action-copy pools (case-insensitive match). */
63
+ customActions?: Record<string, string[]>
64
+ /** Inject the `⏵` self-narration contract into the system prompt and surface it. */
65
+ narrate?: boolean
66
+ /** UI language: `auto` follows `DSH_TUI_LANG` → `~/.dsh-tui/lang.json` →
67
+ * OS locale → zh; `zh`/`en` pin the copy directly. */
68
+ lang?: 'auto' | 'zh' | 'en' | 'ja' | 'input'
69
+ /** Default frame preset name (informational for UI consumers; the TUI
70
+ * resolves the persisted `frames` choice itself). */
71
+ frames?: string
72
+ /** lively: full flourish (default) / minimal: functional labels only. */
73
+ mode?: 'lively' | 'minimal'
74
+ /** Per-feature switches; explicit values override `mode` defaults. */
75
+ features?: Record<string, boolean>
76
+ /** Extra thinking phrases appended to the base pool. */
77
+ customPhrases?: string[]
78
+ /** Show an estimated tokens/s prefix while streaming. */
79
+ showTokPerSec?: boolean
80
+ /** Work reminder after this many turn-hours (0 = off). */
81
+ workRemindAt?: number
82
+ /**
83
+ * Append a JSON trace of every distinct rendered line (phase, copy-pool
84
+ * inputs, slot) to the debug log — the only way to answer "why did it say
85
+ * THAT" after the fact, since the line is derived, not stored. Default OFF.
86
+ */
87
+ debugLog?: boolean
88
+ }
89
+
90
+ // Explicit annotation: the inferred z.dict output references cosmokit's
91
+ // Dict through a pnpm-virtual path, which is not portable in declaration
92
+ // emit (TS2883) when the dependency graph shifts. The global `Schemastery`
93
+ // interface comes from schemastery's own d.ts (declare global).
94
+ export const Config: Schemastery<Config> = z.object({
95
+ phrases: z.boolean().default(true),
96
+ publish: z.boolean().default(false),
97
+ tickMs: z.number().step(50).min(100).max(5000).default(500),
98
+ publishIntervalMs: z.number().step(500).min(500).max(30_000).default(2000),
99
+ detailLimit: z.number().step(1).min(8).max(120).default(40),
100
+ customActions: z.dict(z.array(z.string())).default({}),
101
+ narrate: z.boolean().default(true),
102
+ lang: z.union(['auto', 'zh', 'en', 'ja', 'input']).default('auto'),
103
+ frames: z.string().default(DEFAULT_PRESET),
104
+ mode: z.union(['lively', 'minimal']).default('lively'),
105
+ features: z.dict(z.boolean()).default({}),
106
+ customPhrases: z.array(z.string()).default([]),
107
+ showTokPerSec: z.boolean().default(false),
108
+ workRemindAt: z.number().min(0).max(24).default(0),
109
+ debugLog: z.boolean().default(false),
110
+ })
111
+
112
+ /** Structural view of the TUI prompt service; the real type lives in dsh-tui. */
113
+ interface TuiPromptLike {
114
+ register(name: string, initialValue?: string): {
115
+ set(value: string | undefined): void
116
+ dispose(): void
117
+ }
118
+ }
119
+
120
+ /** Resolved plugin configuration after schema defaults. */
121
+ interface ResolvedConfig {
122
+ phrases: boolean
123
+ publish: boolean
124
+ tickMs: number
125
+ publishIntervalMs: number
126
+ detailLimit: number
127
+ customActions: Record<string, string[]>
128
+ narrate: boolean
129
+ lang: 'auto' | 'zh' | 'en' | 'ja' | 'input'
130
+ frames: string
131
+ mode: 'lively' | 'minimal'
132
+ features: Record<string, boolean>
133
+ customPhrases: string[]
134
+ showTokPerSec: boolean
135
+ workRemindAt: number
136
+ debugLog: boolean
137
+ }
138
+
139
+ /**
140
+ * Wire the working-activity plugin.
141
+ * @param ctx - Cordis context (agent loop + session services composed).
142
+ * @param config - Validated plugin config (schema defaults applied).
143
+ */
144
+ export function apply(ctx: Context, config: Config = {}): void {
145
+ // Register the event type BEFORE anything can publish or validate: the
146
+ // strict read paths (resume seed validation, persistence load) refuse
147
+ // logs with unknown non-ignorable types. Registration is unconditional —
148
+ // it also protects READING logs written by an earlier publish:true era
149
+ // in processes where publishing itself is off. See registration.ts.
150
+ registerActivityEventType()
151
+ const resolved: ResolvedConfig = {
152
+ // `mode: minimal` renders functional labels only (pi extension parity).
153
+ phrases: config.phrases ?? config.mode !== 'minimal',
154
+ publish: config.publish ?? false,
155
+ tickMs: config.tickMs ?? 500,
156
+ publishIntervalMs: config.publishIntervalMs ?? 2000,
157
+ detailLimit: config.detailLimit ?? 40,
158
+ narrate: config.narrate ?? true,
159
+ lang: config.lang ?? 'auto',
160
+ customActions: config.customActions ?? {},
161
+ frames: config.frames ?? DEFAULT_PRESET,
162
+ mode: config.mode ?? 'lively',
163
+ features: config.features ?? {},
164
+ customPhrases: config.customPhrases ?? [],
165
+ showTokPerSec: config.showTokPerSec ?? false,
166
+ workRemindAt: config.workRemindAt ?? 0,
167
+ debugLog: config.debugLog ?? false,
168
+ }
169
+ // Trace target for {@link traceLine}: `~/.dsh-tui` mirrors where the UI keeps
170
+ // this plugin's config file; the env var redirects it (tests, bug reports).
171
+ const debugLogPath = resolved.debugLog
172
+ ? process.env.DSH_WORKING_ACTIVITY_DEBUG_LOG
173
+ ?? join(homedir(), '.dsh-tui', 'working-activity-debug.log')
174
+ : undefined
175
+ // A pinned plugin-level language beats the env/file chain; releasing it on
176
+ // dispose restores `auto` for any other composition in the process.
177
+ setLangOverride(resolved.lang === 'input' ? 'auto' : resolved.lang)
178
+ ctx.effect(() => () => setLangOverride('auto'), 'working-activity lang override')
179
+ /**
180
+ * One session's live activity state.
181
+ *
182
+ * Every session owns its tracker, its pending wake-up and its publish
183
+ * throttle. A single shared "active session" made the line of a session that
184
+ * stopped emitting events freeze entirely (only the last session to emit was
185
+ * ever redrawn), and made two concurrent sessions — a background session and
186
+ * the one on screen, say — consume each other's throttle state.
187
+ */
188
+ interface SessionRuntime {
189
+ readonly session: Session
190
+ readonly tracker: ActivityTracker
191
+ timer?: NodeJS.Timeout
192
+ lastPublishedLine?: string
193
+ lastPublishedPhase?: string
194
+ lastPublishAt: number
195
+ /** Last line written to the debug trace (dedupe; see {@link traceLine}). */
196
+ lastLoggedLine?: string
197
+ }
198
+
199
+ const runtimes = new Map<Session, SessionRuntime>()
200
+ /**
201
+ * The session whose line currently owns the single TUI prompt slot. The slot
202
+ * is one global seat with no notion of a foreground session, so the
203
+ * most-recently-active session keeps it; the per-session event log above is
204
+ * unaffected by this choice.
205
+ */
206
+ let slotSession: Session | undefined
207
+
208
+ // Optional TUI seam: no TUI composed -> no slot, no error. The register()
209
+ // call is itself effect-owned, so fiber disposal unregisters the slot.
210
+ const prompt = ctx.get('tuiPrompt', false) as TuiPromptLike | undefined
211
+ const promptHandle = prompt?.register('activity', undefined)
212
+
213
+ // The `⏵` self-narration contract rides the stable system-prompt sections:
214
+ // injected when the systemPrompt service is composed (agent assemblies
215
+ // always mount it), removed with this fiber. The text is resolved at every
216
+ // assembly in the live language, so a `/lang` switch applies to the next
217
+ // turn without rebuilding the agent.
218
+ if (resolved.narrate) {
219
+ ctx.inject(['systemPrompt'], (promptCtx) => {
220
+ promptCtx.systemPrompt.section({
221
+ name: 'working-activity:narrate',
222
+ order: 60,
223
+ text: () => t('narrate-instruction'),
224
+ })
225
+ })
226
+ }
227
+
228
+ /** Tracker knobs shared by the live runtimes and the Web projection. */
229
+ // Feature flags resolve ONCE here (an explicit `features` entry beats the
230
+ // mode default) so every consumer applies the same gates. `features.phrases`
231
+ // folds into the master switch — the schema's `phrases` default must not
232
+ // mask a user's explicit `features: { phrases: false }`.
233
+ const fileLike = { features: resolved.features, mode: resolved.mode }
234
+ const on = (name: FeatureFlag): boolean => featureOn(fileLike, name)
235
+ const trackerConfig: TrackerConfig = {
236
+ inputLanguage: resolved.lang === 'input',
237
+ phrases: resolved.phrases && on('phrases'),
238
+ detailLimit: resolved.detailLimit,
239
+ showIdle: false,
240
+ features: {
241
+ rareEggs: on('rareEggs'),
242
+ weekend: on('weekend'),
243
+ holidays: on('holidays'),
244
+ nightPhrases: on('nightPhrases'),
245
+ combo: on('combo'),
246
+ failPhrases: on('failPhrases'),
247
+ modelQuips: on('modelQuips'),
248
+ continuePhrases: on('continuePhrases'),
249
+ },
250
+ customPhrases: resolved.customPhrases,
251
+ showTokPerSec: resolved.showTokPerSec,
252
+ workRemindAt: resolved.workRemindAt,
253
+ }
254
+
255
+ // Web transport: a client-visible session projection. Registered only when the
256
+ // host provides the registry (the TUI-only composition does not), and only
257
+ // after it is mounted, hence `inject`. One definition serves both host
258
+ // contract shapes — see src/projection.ts for why that is a dual-spelling
259
+ // object rather than a version probe.
260
+ //
261
+ // The live narration overlay is keyed by the projection's own state object:
262
+ // `stateOf` is the only way back from a session to the state a read will see,
263
+ // and it exists on the current line but not on the rc.6-era registry — there
264
+ // the overlay stays empty and settled-message narration carries the line.
265
+ const liveNarration = new WeakMap<object, { narration: string; lastChunkAt: number }>()
266
+ /** The registry, once injected: `stateOf` is how the overlay finds its state. */
267
+ let projectionService: { stateOf?: (session: Session, key: string) => unknown } | undefined
268
+
269
+ /** Publish the tracker's current narration for the projected value to overlay. */
270
+ const noteLiveNarration = (session: Session, tracker: ActivityTracker): void => {
271
+ const state = projectionService?.stateOf?.(session, ACTIVITY_PROJECTION_KEY)
272
+ if (state === null || typeof state !== 'object') return
273
+ const narration = tracker.liveNarration()
274
+ if (narration === undefined) return
275
+ liveNarration.set(state, narration)
276
+ }
277
+
278
+ ctx.inject(['sessionProjections'] as never, ((projectionCtx: Context) => {
279
+ const registry = (projectionCtx as unknown as {
280
+ sessionProjections?: {
281
+ register(definition: unknown): () => void
282
+ /** Present on the current line; the rc.6-era registry has no state read. */
283
+ stateOf?: (session: Session, key: string) => unknown
284
+ }
285
+ }).sessionProjections
286
+ if (registry === undefined) return
287
+ projectionService = registry
288
+ registry.register(createActivityProjection({
289
+ trackerConfig,
290
+ customActions: resolved.customActions,
291
+ lang: langNow,
292
+ live: state => (state !== null && typeof state === 'object' ? liveNarration.get(state) : undefined),
293
+ }))
294
+ }) as never)
295
+
296
+ const runtimeFor = (session: Session): SessionRuntime => {
297
+ let runtime = runtimes.get(session)
298
+ if (runtime === undefined) {
299
+ runtime = {
300
+ session,
301
+ tracker: new ActivityTracker(trackerConfig, Date.now, resolved.customActions),
302
+ lastPublishAt: 0,
303
+ }
304
+ runtimes.set(session, runtime)
305
+ }
306
+ return runtime
307
+ }
308
+
309
+ /** Stop one runtime's pending wake-up. */
310
+ const stopTimer = (runtime: SessionRuntime): void => {
311
+ if (runtime.timer === undefined) return
312
+ clearTimeout(runtime.timer)
313
+ runtime.timer = undefined
314
+ }
315
+
316
+ /**
317
+ * Arm the next redraw, if this line has one coming.
318
+ *
319
+ * The tracker knows when its own line can next change (`nextWakeAt`), so an
320
+ * idle or settled line arms nothing at all — the idle CPU of a permanent
321
+ * 500 ms interval is what issue #14 reported. Live phases are additionally
322
+ * capped at the configured tick so a wrong estimate can only make the line
323
+ * fresher, never staler.
324
+ */
325
+ const armTimer = (runtime: SessionRuntime): void => {
326
+ stopTimer(runtime)
327
+ const nowMs = Date.now()
328
+ const wakeAt = runtime.tracker.nextWakeAt(nowMs)
329
+ if (wakeAt === undefined) return
330
+ const phase = runtime.tracker.render(nowMs).phase
331
+ const live = phase !== 'idle' && phase !== 'done'
332
+ const delayMs = Math.max(0, live ? Math.min(wakeAt - nowMs, resolved.tickMs) : wakeAt - nowMs)
333
+ runtime.timer = setTimeout(() => {
334
+ runtime.timer = undefined
335
+ publish(runtime, runtime.tracker.render())
336
+ armTimer(runtime)
337
+ }, delayMs)
338
+ // A status line must never be the reason a process stays alive.
339
+ runtime.timer.unref()
340
+ }
341
+
342
+ /**
343
+ * Feed one runtime and republish. Callers snapshot the tracker state at event
344
+ * time and hand it here, so a burst of fast events (e.g. a synchronous tool
345
+ * call+result) cannot lose an intermediate phase; the append itself runs
346
+ * inside a microtask because the session's appending guard is still set while
347
+ * session/event callbacks run.
348
+ */
349
+ const feed = (runtime: SessionRuntime, state: ActivityState): void => {
350
+ slotSession = runtime.session
351
+ publish(runtime, state)
352
+ // A pending wake-up will refresh the line soon enough; re-arming on every
353
+ // streamed token would churn timers at the token rate.
354
+ if (runtime.timer === undefined) armTimer(runtime)
355
+ }
356
+
357
+ /**
358
+ * Append one JSON line per distinct rendered line to the debug log (opt-in:
359
+ * {@link Config.debugLog}). The trace carries the derivation inputs — phase,
360
+ * copy pool, slot — because the line itself is derived, so this file is the
361
+ * only place "why did it say THAT" can be answered from.
362
+ */
363
+ const traceLine = (logPath: string, runtime: SessionRuntime, state: ActivityState): void => {
364
+ if (state.line === runtime.lastLoggedLine) return
365
+ runtime.lastLoggedLine = state.line
366
+ const at = Date.now()
367
+ const entry = {
368
+ at,
369
+ session: String((runtime.session as unknown as { id: unknown }).id ?? ''),
370
+ line: state.line,
371
+ ...runtime.tracker.describe(at),
372
+ }
373
+ void appendFile(logPath, `${JSON.stringify(entry)}\n`, 'utf8').catch(() => {
374
+ // A debug log that cannot be written (permissions, disk full) must
375
+ // never break the line itself.
376
+ })
377
+ }
378
+
379
+ /** Publish one rendered snapshot: TUI slot update + throttled session event. */
380
+ const publish = (runtime: SessionRuntime, state: ActivityState): void => {
381
+ queueMicrotask(() => {
382
+ const line = state.phase === 'idle' ? undefined : state.line
383
+ if (runtime.session === slotSession) promptHandle?.set(line)
384
+ if (debugLogPath !== undefined) traceLine(debugLogPath, runtime, state)
385
+ if (!resolved.publish) return
386
+ const nowMs = Date.now()
387
+ const lineChanged = state.line !== runtime.lastPublishedLine
388
+ const phaseChanged = state.phase !== runtime.lastPublishedPhase
389
+ // Live phases republish on a throttle so elapsed times stay current;
390
+ // settled phases (idle/done) publish only when the line itself changes.
391
+ const liveThrottle = state.phase !== 'idle' && state.phase !== 'done'
392
+ && nowMs - runtime.lastPublishAt >= resolved.publishIntervalMs
393
+ if (!lineChanged && !phaseChanged && !liveThrottle) return
394
+ // Optional fields must be omitted (not undefined): session append rejects
395
+ // data JSON would discard, and `activity/status` is a lossless-JSON event.
396
+ const payload: ActivityStatusEvent = {
397
+ phase: state.phase,
398
+ line: state.line,
399
+ toolCount: state.toolCount,
400
+ turnElapsedMs: state.turnElapsedMs,
401
+ phaseStartedAt: state.phaseStartedAt,
402
+ ...(state.label === undefined ? {} : { label: state.label }),
403
+ ...(state.detail === undefined ? {} : { detail: state.detail }),
404
+ ...(state.phrase === undefined ? {} : { phrase: state.phrase }),
405
+ }
406
+ try {
407
+ runtime.session.append('activity/status', payload)
408
+ runtime.lastPublishedLine = state.line
409
+ runtime.lastPublishedPhase = state.phase
410
+ runtime.lastPublishAt = nowMs
411
+ } catch {
412
+ // Session closed or the append guard still held: drop this snapshot;
413
+ // the next wake retries the same line.
414
+ }
415
+ })
416
+ }
417
+
418
+ ctx.on('session/event', (session, event) => {
419
+ const runtime = runtimeFor(session)
420
+ runtime.tracker.onSessionEvent(event)
421
+ // Re-key the live narration onto the fold's new state object: `apply`
422
+ // returns a fresh cell per fold, so without this the overlay would stay on
423
+ // the previous cell and a read right after a durable event (a tool
424
+ // starting, say) would lose the freshest `⏵` line until the next frame.
425
+ noteLiveNarration(session, runtime.tracker)
426
+ feed(runtime, runtime.tracker.render())
427
+ })
428
+
429
+ // Live model output. On the current host line the durable `assistant/chunk`
430
+ // event this plugin used to fold is gone — streamed deltas arrive as
431
+ // transient `agent/assistant-stream` frames instead — so the realtime half of
432
+ // the line (first-token promotion, `⏵` narration, tok/s) rides on these
433
+ // frames. Subscribed through a cast because the declared dev baseline
434
+ // (`@deepseek-ai/dsh-agent@0.1.0-rc.6`) predates the event; on that corridor
435
+ // the subscription simply never fires and the durable path above still runs.
436
+ // The cursor that orders frames lives with the emitting agent, so a replaced
437
+ // agent (whose revision restarts at 1) is never mistaken for a stale one.
438
+ ctx.on('agent/assistant-stream' as never, (({ agent, frame }: { agent: Agent; frame: unknown }) => {
439
+ const runtime = runtimeFor(agent.session)
440
+ feedStreamFrame(runtime.tracker, agent, frame)
441
+ // Hand the freshest narration to the projected value as well: a projection
442
+ // folds committed events only, so without this overlay the line a client
443
+ // reads would never carry the model's own `⏵` words (see src/projection.ts).
444
+ noteLiveNarration(agent.session, runtime.tracker)
445
+ feed(runtime, runtime.tracker.render())
446
+ }) as never)
447
+
448
+ ctx.on('session/disposed', (session) => {
449
+ const runtime = runtimes.get(session)
450
+ if (runtime !== undefined) stopTimer(runtime)
451
+ runtimes.delete(session)
452
+ if (slotSession === session) slotSession = undefined
453
+ })
454
+
455
+ ctx.on('agent/status', ({ agent, status }) => {
456
+ const runtime = runtimeFor(agent.session)
457
+ runtime.tracker.onAgentStatus(status)
458
+ feed(runtime, runtime.tracker.render())
459
+ })
460
+
461
+ // No interval: each session's next redraw is armed from its own tracker
462
+ // (`nextWakeAt`), so idle and settled lines hold no timer at all. The effect
463
+ // disposer stops every pending wake-up when this fiber unloads.
464
+ ctx.effect(() => () => {
465
+ for (const runtime of runtimes.values()) stopTimer(runtime)
466
+ }, 'working-activity session timers')
467
+ }
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Package-owned `activity/status` snapshot invariants.
3
+ * @module dsh-working-activity/invariant
4
+ */
5
+
6
+ import type { Context } from '@deepseek-ai/cordis'
7
+ import type { Session, SessionEvent } from '@deepseek-ai/dsh-session'
8
+ import type { InvariantFailure, InvariantInstaller } from '@deepseek-ai/dsh-invariants'
9
+
10
+ /** Cordis companion plugin name. */
11
+ export const name = 'working-activity-invariant'
12
+ /** Service required before the companion can reserve package ownership. */
13
+ export const inject = ['invariants']
14
+
15
+ const PACKAGE_NAME = 'dsh-working-activity'
16
+ const PHASES = new Set(['idle', 'waiting', 'thinking', 'tool', 'done'])
17
+
18
+ /** Validate one published activity snapshot before it reaches the durable log. */
19
+ function validateStatus(data: unknown, fail: InvariantFailure): void {
20
+ const record = data as Record<string, unknown> | null
21
+ if (record === null || typeof record !== 'object' || Array.isArray(record)) {
22
+ fail('activity/status data must be an object')
23
+ return
24
+ }
25
+ if (typeof record.phase !== 'string' || !PHASES.has(record.phase)) {
26
+ fail(`activity/status carries unknown phase ${JSON.stringify(record.phase)}`)
27
+ }
28
+ if (typeof record.line !== 'string' || record.line.length === 0) {
29
+ fail('activity/status line must be a non-empty string')
30
+ }
31
+ for (const key of ['toolCount', 'turnElapsedMs', 'phaseStartedAt']) {
32
+ const value = record[key]
33
+ if (typeof value !== 'number' || !Number.isFinite(value) || value < 0) {
34
+ fail(`activity/status ${key} must be a non-negative finite number`)
35
+ }
36
+ }
37
+ for (const key of ['label', 'detail', 'phrase']) {
38
+ if (record[key] !== undefined && typeof record[key] !== 'string') {
39
+ fail(`activity/status ${key} must be a string when present`)
40
+ }
41
+ }
42
+ }
43
+
44
+ /* jscpd:ignore-start -- package companions share replay and dispatch plumbing */
45
+ /** Validate the package-owned event shape and ignore unrelated events. */
46
+ function validateEvent(event: SessionEvent, fail: InvariantFailure): void {
47
+ if (event.type === 'activity/status') validateStatus(event.data, fail)
48
+ }
49
+
50
+ /**
51
+ * A loaded session as the bootstrap scan must read it. The supported host lines
52
+ * spell the full-log read differently and neither spelling is guaranteed, so
53
+ * both stay optional and the scan probes rather than pinning a version:
54
+ * `snapshotEvents()` is what every first-party companion seeds from
55
+ * (`@deepseek-ai/dsh-session/lib/invariant.js` seeds each `ctx.sessions.list()`
56
+ * entry through it), while the `0.1.0-rc.6` line this package still compiles
57
+ * against exposes only the `events` accessor. On the `0.1.7-rc.2` line that
58
+ * accessor is gone, which is how the previous unconditional `session.events`
59
+ * read threw `TypeError` on the first non-empty session.
60
+ */
61
+ interface LoadedSession {
62
+ /** Full immutable log snapshot (`0.1.7-rc.2` line and later). */
63
+ snapshotEvents?: () => readonly SessionEvent[]
64
+ /** Full immutable log accessor (`0.1.0-rc.6` line). */
65
+ readonly events?: readonly SessionEvent[]
66
+ }
67
+
68
+ /**
69
+ * The events of one already-loaded session across those two read shapes. A host
70
+ * exposing neither yields an empty log instead of aborting the companion: the
71
+ * bootstrap scan is best-effort, while the live `internal/dispatch` half must
72
+ * keep validating appended snapshots.
73
+ */
74
+ function loadedEvents(session: LoadedSession): readonly SessionEvent[] {
75
+ if (typeof session.snapshotEvents === 'function') return session.snapshotEvents()
76
+ return session.events ?? []
77
+ }
78
+
79
+ /** Install validation for loaded and newly appended activity snapshots. */
80
+ const install: InvariantInstaller = Object.assign((ctx: Context, fail: InvariantFailure) => {
81
+ for (const session of ctx.sessions.list()) {
82
+ for (const event of loadedEvents(session)) validateEvent(event, fail)
83
+ }
84
+ ctx.on('internal/dispatch', (_mode, eventName, args) => {
85
+ if (eventName !== 'session/event') return
86
+ const event = (args as [Session, SessionEvent])[1]
87
+ validateEvent(event, fail)
88
+ }, { global: true })
89
+ }, { inject: ['sessions'] })
90
+ /* jscpd:ignore-end */
91
+
92
+ /**
93
+ * Register the working-activity invariant companion.
94
+ * @param ctx - Cordis context carrying the invariant service.
95
+ * @returns the installed registration's disposer after setup succeeds.
96
+ */
97
+ export const apply = (ctx: Context): Promise<() => void> =>
98
+ Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install))
@@ -0,0 +1,47 @@
1
+ /** Japanese progress copy. Tool names and user-supplied details stay verbatim. */
2
+ export const THINKING: readonly string[] = ['考えています', '確認しています', '手順を整理しています']
3
+ export const THINKING_TIERS: readonly { atMs: number; pool: readonly string[] }[] = [
4
+ { atMs: 300_000, pool: ['時間をかけて確認しています'] },
5
+ { atMs: 60_000, pool: ['引き続き調べています'] },
6
+ { atMs: 30_000, pool: ['もう少し確認しています'] },
7
+ ]
8
+ export const WAITING: readonly string[] = ['モデルの応答を待っています']
9
+ export const NIGHT: readonly string[] = ['作業を続けています']
10
+ export const RARE: readonly string[] = ['確認を進めています']
11
+ export const WEEKEND: readonly string[] = ['作業を進めています']
12
+ export const RETRY: readonly string[] = ['再試行を待っています']
13
+ export const APPROVAL: readonly string[] = ['承認を待っています']
14
+ export const COMPACTION_START: readonly string[] = ['会話を整理しています']
15
+ export const CONTINUE: readonly string[] = ['作業を再開します']
16
+ export const COMPACT: readonly string[] = ['会話を整理しました']
17
+ export const OVERFLOW: readonly string[] = ['会話の整理を試みています']
18
+ export const COMPACT_RETRY: readonly string[] = ['会話を整理し直しています']
19
+ export const TOOL_OPENING: readonly string[] = ['ツールを使って確認します']
20
+ export const FAIL: readonly string[] = ['ツールの実行に失敗しました']
21
+ export const DONE: readonly string[] = ['完了しました']
22
+ export const NEW_YEAR: readonly string[] = ['作業を進めています']
23
+ export const HOLIDAYS: Readonly<Record<string, readonly string[]>> = {}
24
+ export const MODEL_QUIPS: Readonly<Record<string, readonly string[]>> = {
25
+ claude: ['Claude に切り替えました'],
26
+ gpt: ['GPT に切り替えました'],
27
+ grok: ['Grok に切り替えました'],
28
+ gemini: ['Gemini に切り替えました'],
29
+ deepseek: ['DeepSeek に切り替えました'],
30
+ haiku: ['Haiku に切り替えました'],
31
+ sonnet: ['Sonnet に切り替えました'],
32
+ opus: ['Opus に切り替えました'],
33
+ flash: ['Flash に切り替えました'],
34
+ pro: ['Pro に切り替えました'],
35
+ mini: ['Mini に切り替えました'],
36
+ }
37
+ export const ACTION_MAP: readonly { test: RegExp; actions: readonly string[] }[] = [
38
+ { test: /^(read|read_file|cat)$/i, actions: ['読み取り'] },
39
+ { test: /^(write|write_file|create_file)$/i, actions: ['書き込み'] },
40
+ { test: /^(edit|edit_file|str_replace|apply_patch|search_replace)$/i, actions: ['編集'] },
41
+ { test: /^(bash|shell|run|exec|powershell|cmd)$/i, actions: ['コマンド実行'] },
42
+ { test: /^(grep|rg|search|search_in_files|ffgrep)$/i, actions: ['検索'] },
43
+ { test: /^(find|glob|fffind)$/i, actions: ['ファイル検索'] },
44
+ { test: /^(subagent|agent|task)$/i, actions: ['サブエージェント実行'] },
45
+ { test: /^(web_search|browse|fetch)$/i, actions: ['Web 検索'] },
46
+ ]
47
+ export const FALLBACK_ACTIONS: readonly string[] = ['ツール実行']