@songtonyli/dsh-cli 0.1.90 → 0.1.92

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 (621) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +26 -13
  4. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +6 -3
  5. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +51 -1
  6. package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -1
  7. package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js +4 -2
  8. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js +4 -2
  9. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js +18 -9
  10. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js +6 -3
  11. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -0
  12. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.js +51 -0
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/util/util-arn-parser/arn.js +2 -1
  14. package/node_modules/@aws-sdk/core/package.json +2 -2
  15. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  16. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  17. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  18. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  19. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  20. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  21. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  22. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  23. package/node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js +4 -2
  24. package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHandlingMiddleware.js +2 -1
  25. package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHeaderMiddleware.js +2 -1
  26. package/node_modules/@aws-sdk/middleware-eventstream/package.json +1 -1
  27. package/node_modules/@aws-sdk/middleware-websocket/package.json +2 -2
  28. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  29. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  30. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  31. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  32. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  33. package/node_modules/@aws-sdk/nested-clients/package.json +3 -3
  34. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +1 -1
  35. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  36. package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
  37. package/node_modules/@deepseek-ai/cordis/README.md +6 -2
  38. package/node_modules/@deepseek-ai/cordis/lib/index.js +955 -909
  39. package/node_modules/@deepseek-ai/cordis/src/context.ts +1 -1
  40. package/node_modules/@deepseek-ai/cordis/src/events.ts +81 -62
  41. package/node_modules/@deepseek-ai/cordis/src/fiber.ts +95 -58
  42. package/node_modules/@deepseek-ai/cordis/src/logger.ts +10 -5
  43. package/node_modules/@deepseek-ai/cordis/src/reflect.ts +37 -19
  44. package/node_modules/@deepseek-ai/cordis/src/utils.ts +28 -21
  45. package/node_modules/@deepseek-ai/cordis-plugin-include/lib/index.js +2 -2
  46. package/node_modules/@deepseek-ai/cordis-plugin-include/src/index.ts +2 -6
  47. package/node_modules/@deepseek-ai/cordis-plugin-loader/README.md +4 -0
  48. package/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js +40 -39
  49. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/entry.ts +13 -13
  50. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/group.ts +1 -3
  51. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/isolate.ts +10 -7
  52. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/index.ts +17 -20
  53. package/node_modules/@deepseek-ai/dsh/package.json +0 -1
  54. package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.host.js +1 -1
  55. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +5 -3
  56. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/host-plugin.md +13 -0
  57. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +2 -2
  58. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +1 -1
  59. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +2 -2
  60. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.browser.js +1 -1
  61. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.node.js +1 -1
  62. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/remote-events.js +1 -1
  63. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +7464 -2004
  64. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +77 -92
  65. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +47 -3
  66. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +1 -1
  67. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +8 -19
  68. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +3 -0
  69. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +1 -1
  70. package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +2 -2
  71. package/node_modules/@deepseek-ai/dsh-client-modules/README.md +3 -1
  72. package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +3 -1
  73. package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +1 -1
  74. package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +37 -15
  75. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +4 -4
  76. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +3 -1
  77. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +3 -1
  78. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +19 -6
  79. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +4 -2
  80. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +10 -10
  81. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +8 -2
  82. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +8 -2
  83. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +146 -30
  84. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +4 -2
  85. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +2 -2
  86. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +1 -1
  87. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +1 -1
  88. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +295 -274
  89. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.i18n.yaml +40 -0
  90. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.md +100 -0
  91. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.zh.md +100 -0
  92. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/client.js +1445 -0
  93. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/index.js +6 -0
  94. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/de.json +5 -0
  95. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/en.json +5 -0
  96. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/es.json +5 -0
  97. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/fr.json +5 -0
  98. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/ja.json +5 -0
  99. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/pt.json +5 -0
  100. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/ru.json +5 -0
  101. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/zh.json +5 -0
  102. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/package.json +61 -0
  103. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +4 -4
  104. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +4 -0
  105. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +4 -0
  106. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +119 -55
  107. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +4 -2
  108. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
  109. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +2 -0
  110. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +2 -0
  111. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +19 -7
  112. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +4 -2
  113. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.i18n.yaml +40 -0
  114. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.md +92 -0
  115. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.zh.md +92 -0
  116. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/lib/client.js +1875 -0
  117. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/lib/index.js +6 -0
  118. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/de.json +5 -0
  119. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/en.json +5 -0
  120. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/es.json +5 -0
  121. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/fr.json +5 -0
  122. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/ja.json +5 -0
  123. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/pt.json +5 -0
  124. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/ru.json +5 -0
  125. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/zh.json +5 -0
  126. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/package.json +65 -0
  127. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +6 -6
  128. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +9 -3
  129. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +9 -3
  130. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +91 -26
  131. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +2 -2
  132. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +8 -0
  133. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +8 -0
  134. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +431 -2
  135. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +13 -2
  136. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +8 -8
  137. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +6 -3
  138. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +6 -3
  139. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +111 -48
  140. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.i18n.yaml +2 -2
  141. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.md +1 -1
  142. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.zh.md +1 -1
  143. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/lib/client.js +2 -1
  144. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +2 -2
  145. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.md +2 -0
  146. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.zh.md +2 -0
  147. package/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/client.js +28 -5
  148. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +4 -2
  149. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +19 -19
  150. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +25 -39
  151. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +23 -37
  152. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +10359 -3743
  153. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +1 -0
  154. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +2 -2
  155. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +1 -1
  156. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +1 -1
  157. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +76 -58
  158. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +6 -6
  159. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +5 -1
  160. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +5 -1
  161. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +46 -18
  162. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +8 -8
  163. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +7 -5
  164. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +7 -5
  165. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +349 -251
  166. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +5 -2
  167. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +20 -14
  168. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +44 -11
  169. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +44 -11
  170. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +1571 -472
  171. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +5 -3
  172. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +12 -12
  173. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +15 -7
  174. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +15 -7
  175. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +435 -52
  176. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +4 -2
  177. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +8 -0
  178. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +2 -2
  179. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +1 -1
  180. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +1 -1
  181. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
  182. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +4 -4
  183. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +5 -1
  184. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +5 -1
  185. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +195 -59
  186. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +5 -2
  187. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +4 -4
  188. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +6 -2
  189. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +6 -2
  190. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +127 -27
  191. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +15 -15
  192. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +16 -8
  193. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +17 -8
  194. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +523 -480
  195. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +4 -2
  196. package/node_modules/@deepseek-ai/dsh-commands/README.i18n.yaml +4 -4
  197. package/node_modules/@deepseek-ai/dsh-commands/README.md +3 -0
  198. package/node_modules/@deepseek-ai/dsh-commands/README.zh.md +3 -0
  199. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +1 -1
  200. package/node_modules/@deepseek-ai/dsh-commands/lib/types/builtin.js +39 -0
  201. package/node_modules/@deepseek-ai/dsh-commands/package.json +5 -1
  202. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +4 -10
  203. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +2 -0
  204. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +2 -0
  205. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +233 -56
  206. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +2 -2
  207. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.i18n.yaml +2 -2
  208. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.md +2 -0
  209. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.zh.md +2 -0
  210. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +16 -19
  211. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +11 -22
  212. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +11 -22
  213. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +2 -0
  214. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/lib/client.js +1 -1
  215. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.i18n.yaml +12 -12
  216. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.md +18 -10
  217. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.zh.md +20 -12
  218. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/client.js +3338 -297
  219. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/index.js +159 -52
  220. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.host.js +298 -18
  221. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.remote-client.js +267 -13
  222. package/node_modules/@deepseek-ai/dsh-experimental-forge/README.i18n.yaml +2 -2
  223. package/node_modules/@deepseek-ai/dsh-experimental-forge/README.md +5 -1
  224. package/node_modules/@deepseek-ai/dsh-experimental-forge/README.zh.md +5 -1
  225. package/node_modules/@deepseek-ai/dsh-experimental-forge/lib/index.js +48 -6
  226. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.i18n.yaml +8 -8
  227. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.md +9 -5
  228. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.zh.md +9 -5
  229. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/lib/index.js +301 -31
  230. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/package.json +1 -0
  231. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/client.js +5 -58
  232. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/index.js +5 -2
  233. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/package.json +1 -1
  234. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/lib/client.js +77 -92
  235. package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/index.js +2 -2
  236. package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/types/deepseek.js +2 -2
  237. package/node_modules/@deepseek-ai/dsh-fs/README.i18n.yaml +12 -12
  238. package/node_modules/@deepseek-ai/dsh-fs/README.md +15 -7
  239. package/node_modules/@deepseek-ai/dsh-fs/README.zh.md +15 -7
  240. package/node_modules/@deepseek-ai/dsh-fs/lib/index.js +21 -2
  241. package/node_modules/@deepseek-ai/dsh-fs/package.json +3 -0
  242. package/node_modules/@deepseek-ai/dsh-fs-local/README.i18n.yaml +4 -4
  243. package/node_modules/@deepseek-ai/dsh-fs-local/README.md +4 -2
  244. package/node_modules/@deepseek-ai/dsh-fs-local/README.zh.md +4 -2
  245. package/node_modules/@deepseek-ai/dsh-fs-local/lib/index.js +156 -30
  246. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +2 -1
  247. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.i18n.yaml +6 -6
  248. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.md +4 -2
  249. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.zh.md +4 -2
  250. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/lib/index.js +12 -4
  251. package/node_modules/@deepseek-ai/dsh-fs-patch/LICENSE +235 -0
  252. package/node_modules/@deepseek-ai/dsh-fs-patch/README.i18n.yaml +40 -0
  253. package/node_modules/@deepseek-ai/dsh-fs-patch/README.md +112 -0
  254. package/node_modules/@deepseek-ai/dsh-fs-patch/README.zh.md +112 -0
  255. package/node_modules/@deepseek-ai/dsh-fs-patch/lib/index.js +275 -0
  256. package/node_modules/@deepseek-ai/dsh-fs-patch/package.json +35 -0
  257. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.i18n.yaml +6 -6
  258. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.md +4 -2
  259. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.zh.md +4 -2
  260. package/node_modules/@deepseek-ai/dsh-fs-sandbox/lib/index.js +24 -1
  261. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +1 -1
  262. package/node_modules/@deepseek-ai/dsh-hmr/lib/index.js +4 -3
  263. package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
  264. package/node_modules/@deepseek-ai/dsh-llm/README.md +2 -0
  265. package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +2 -0
  266. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +9 -1
  267. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +4 -3
  268. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +5 -2
  269. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +7 -0
  270. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +7 -0
  271. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +27 -11
  272. package/node_modules/@deepseek-ai/dsh-official-bundles/README.i18n.yaml +2 -2
  273. package/node_modules/@deepseek-ai/dsh-official-bundles/README.md +1 -1
  274. package/node_modules/@deepseek-ai/dsh-official-bundles/README.zh.md +1 -1
  275. package/node_modules/@deepseek-ai/dsh-official-bundles/lib/index.js +86 -52
  276. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +1 -1
  277. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +2 -2
  278. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +4 -4
  279. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +4 -4
  280. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +32 -12
  281. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +31 -31
  282. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +27 -27
  283. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/github-connection.js +13 -3
  284. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +14 -2
  285. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-spec.js +1 -1
  286. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +2 -0
  287. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/typert.host.js +1 -1
  288. package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +72 -39
  289. package/node_modules/@deepseek-ai/dsh-schedule/README.md +180 -56
  290. package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +185 -61
  291. package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +1270 -992
  292. package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.host.js +1842 -274
  293. package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.remote-client.js +1712 -194
  294. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/delivery-history.js +7 -20
  295. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/domain.js +199 -655
  296. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/index.js +452 -204
  297. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/runtime.js +389 -70
  298. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/storage.js +85 -16
  299. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/types.js +1 -1
  300. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/update.js +72 -144
  301. package/node_modules/@deepseek-ai/dsh-schedule/package.json +5 -2
  302. package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +12 -12
  303. package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +7 -4
  304. package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +7 -4
  305. package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +3 -0
  306. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.i18n.yaml +52 -4
  307. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.md +77 -1
  308. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.zh.md +77 -1
  309. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +306 -2
  310. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +15 -0
  311. package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.i18n.yaml +4 -4
  312. package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.md +10 -2
  313. package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.zh.md +10 -2
  314. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +2 -0
  315. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.i18n.yaml +9 -6
  316. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.md +20 -1
  317. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.zh.md +20 -1
  318. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +91 -57
  319. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +100 -66
  320. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +947 -917
  321. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +1 -1
  322. package/node_modules/@deepseek-ai/dsh-session-title-llm/README.i18n.yaml +2 -2
  323. package/node_modules/@deepseek-ai/dsh-session-title-llm/README.md +1 -1
  324. package/node_modules/@deepseek-ai/dsh-session-title-llm/README.zh.md +1 -1
  325. package/node_modules/@deepseek-ai/dsh-settings/lib/index.js +2 -2
  326. package/node_modules/@deepseek-ai/dsh-settings/lib/types/index.js +2 -2
  327. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +1 -1
  328. package/node_modules/@deepseek-ai/dsh-system-prompt/lib/index.js +2 -0
  329. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +260 -92
  330. package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +38 -20
  331. package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +63 -5
  332. package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +63 -5
  333. package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +784 -27
  334. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +4 -1
  335. package/node_modules/@deepseek-ai/dsh-tool-schedule/README.i18n.yaml +50 -32
  336. package/node_modules/@deepseek-ai/dsh-tool-schedule/README.md +47 -20
  337. package/node_modules/@deepseek-ai/dsh-tool-schedule/README.zh.md +47 -20
  338. package/node_modules/@deepseek-ai/dsh-tool-schedule/lib/index.js +477 -445
  339. package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +7 -2
  340. package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +1 -1
  341. package/node_modules/@deepseek-ai/dsh-util-time/README.i18n.yaml +10 -10
  342. package/node_modules/@deepseek-ai/dsh-util-time/README.md +11 -7
  343. package/node_modules/@deepseek-ai/dsh-util-time/README.zh.md +11 -7
  344. package/node_modules/@deepseek-ai/dsh-util-time/lib/index.js +1020 -3
  345. package/node_modules/@deepseek-ai/dsh-util-time/package.json +4 -2
  346. package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +2 -2
  347. package/node_modules/@deepseek-ai/dsh-util-values/README.md +1 -1
  348. package/node_modules/@deepseek-ai/dsh-util-values/README.zh.md +1 -1
  349. package/node_modules/@deepseek-ai/dsh-util-values/lib/index.js +77 -92
  350. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +5 -1
  351. package/node_modules/@deepseek-ai/dsh-web-app/package.json +3 -1
  352. package/node_modules/@deepseek-ai/dsh-web-app/presets/cordis.patch.yml +3 -0
  353. package/node_modules/@deepseek-ai/dsh-web-app/presets/ptc.patch.yml +3 -0
  354. package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +3 -0
  355. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BCbHmUSs.js +197 -0
  356. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BUDGJY4R.css +1 -0
  357. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
  358. package/node_modules/@deepseek-ai/dsh-workflow-ptc/lib/index.js +1 -1
  359. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.i18n.yaml +4 -4
  360. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.md +3 -1
  361. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.zh.md +4 -2
  362. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/index.js +5 -0
  363. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/index.js +5 -0
  364. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +4 -1
  365. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.cjs +16917 -0
  366. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.mjs +15193 -0
  367. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.cjs +325 -0
  368. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.mjs +295 -0
  369. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.cjs +4642 -0
  370. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.mjs +4155 -0
  371. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.cjs +2495 -0
  372. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.mjs +7 -0
  373. package/node_modules/@opentelemetry/semantic-conventions/dist/index.cjs +662 -0
  374. package/node_modules/@opentelemetry/semantic-conventions/dist/index.mjs +6 -0
  375. package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.cjs +20 -0
  376. package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.mjs +20 -0
  377. package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.cjs +1326 -0
  378. package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.mjs +1188 -0
  379. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.cjs +1947 -0
  380. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.mjs +1756 -0
  381. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.cjs +9 -0
  382. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.mjs +9 -0
  383. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.cjs +362 -0
  384. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.mjs +312 -0
  385. package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.cjs +2508 -0
  386. package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.mjs +2236 -0
  387. package/node_modules/@opentelemetry/semantic-conventions/package.json +22 -35
  388. package/node_modules/@smithy/core/dist-cjs/index.js +4 -2
  389. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +32 -16
  390. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +26 -13
  391. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +8 -4
  392. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +16 -8
  393. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +8 -4
  394. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
  395. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +10 -5
  396. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +18 -9
  397. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +18 -9
  398. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +42 -24
  399. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +20 -10
  400. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +24 -12
  401. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +13 -4
  402. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +7 -1
  403. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +13 -4
  404. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +6 -3
  405. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
  406. package/node_modules/@smithy/core/dist-es/normalizeProvider.js +2 -1
  407. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +8 -4
  408. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +6 -3
  409. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +12 -6
  410. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +4 -2
  411. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +2 -1
  412. package/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js +10 -5
  413. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js +2 -1
  414. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js +4 -2
  415. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +2 -1
  416. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +2 -1
  417. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +4 -2
  418. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +2 -1
  419. package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js +8 -4
  420. package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js +6 -3
  421. package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/numberSelector.js +2 -1
  422. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +8 -4
  423. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +2 -1
  424. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +6 -3
  425. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +2 -1
  426. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js +2 -1
  427. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js +2 -1
  428. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js +2 -1
  429. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js +4 -2
  430. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +8 -4
  431. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -2
  432. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +2 -1
  433. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +7 -5
  434. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +7 -5
  435. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +7 -5
  436. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +6 -3
  437. package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +3 -0
  438. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +4 -2
  439. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +2 -1
  440. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +6 -3
  441. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +6 -3
  442. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js +6 -3
  443. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
  444. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  445. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
  446. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +2 -1
  447. package/node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.browser.js +6 -3
  448. package/node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js +2 -1
  449. package/node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js +2 -1
  450. package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +2 -1
  451. package/node_modules/@smithy/core/package.json +1 -1
  452. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +19 -7
  453. package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +2 -1
  454. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +11 -6
  455. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +6 -0
  456. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  457. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +23 -11
  458. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -2
  459. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +4 -2
  460. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js +5 -1
  461. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +2 -1
  462. package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +2 -1
  463. package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +6 -3
  464. package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +2 -1
  465. package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +2 -1
  466. package/node_modules/@smithy/signature-v4/package.json +2 -2
  467. package/node_modules/@types/node/README.md +1 -1
  468. package/node_modules/@types/node/package.json +2 -2
  469. package/node_modules/encodeurl/README.md +14 -0
  470. package/node_modules/encodeurl/index.js +5 -10
  471. package/node_modules/encodeurl/package.json +7 -3
  472. package/node_modules/hast-util-to-html/lib/handle/comment.js +6 -1
  473. package/node_modules/hast-util-to-html/lib/handle/doctype.js +1 -1
  474. package/node_modules/hast-util-to-html/lib/handle/element.js +33 -9
  475. package/node_modules/hast-util-to-html/lib/handle/index.js +1 -1
  476. package/node_modules/hast-util-to-html/lib/handle/raw.js +1 -1
  477. package/node_modules/hast-util-to-html/lib/handle/root.js +1 -1
  478. package/node_modules/hast-util-to-html/lib/handle/text.js +1 -1
  479. package/node_modules/hast-util-to-html/lib/index.js +9 -4
  480. package/node_modules/hast-util-to-html/lib/omission/closing.js +7 -5
  481. package/node_modules/hast-util-to-html/lib/omission/omission.js +0 -1
  482. package/node_modules/hast-util-to-html/lib/omission/opening.js +4 -2
  483. package/node_modules/hast-util-to-html/lib/omission/util/siblings.js +3 -0
  484. package/node_modules/hast-util-to-html/package.json +5 -23
  485. package/node_modules/hast-util-to-html/readme.md +3 -2
  486. package/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
  487. package/node_modules/jose/package.json +1 -1
  488. package/node_modules/rrule/LICENCE +65 -0
  489. package/node_modules/rrule/README.md +837 -0
  490. package/node_modules/rrule/dist/es5/rrule.js +3803 -0
  491. package/node_modules/rrule/dist/es5/rrule.min.js +2 -0
  492. package/node_modules/rrule/dist/esm/cache.js +95 -0
  493. package/node_modules/rrule/dist/esm/callbackiterresult.js +24 -0
  494. package/node_modules/rrule/dist/esm/datetime.js +186 -0
  495. package/node_modules/rrule/dist/esm/dateutil.js +161 -0
  496. package/node_modules/rrule/dist/esm/datewithzone.js +36 -0
  497. package/node_modules/rrule/dist/esm/helpers.js +118 -0
  498. package/node_modules/rrule/dist/esm/index.js +22 -0
  499. package/node_modules/rrule/dist/esm/iter/index.js +138 -0
  500. package/node_modules/rrule/dist/esm/iter/poslist.js +42 -0
  501. package/node_modules/rrule/dist/esm/iterinfo/easter.js +21 -0
  502. package/node_modules/rrule/dist/esm/iterinfo/index.js +188 -0
  503. package/node_modules/rrule/dist/esm/iterinfo/monthinfo.js +51 -0
  504. package/node_modules/rrule/dist/esm/iterinfo/yearinfo.js +128 -0
  505. package/node_modules/rrule/dist/esm/iterresult.js +88 -0
  506. package/node_modules/rrule/dist/esm/iterset.js +63 -0
  507. package/node_modules/rrule/dist/esm/masks.js +30 -0
  508. package/node_modules/rrule/dist/esm/nlp/i18n.js +74 -0
  509. package/node_modules/rrule/dist/esm/nlp/index.js +122 -0
  510. package/node_modules/rrule/dist/esm/nlp/parsetext.js +391 -0
  511. package/node_modules/rrule/dist/esm/nlp/totext.js +395 -0
  512. package/node_modules/rrule/dist/esm/optionstostring.js +98 -0
  513. package/node_modules/rrule/dist/esm/parseoptions.js +201 -0
  514. package/node_modules/rrule/dist/esm/parsestring.js +128 -0
  515. package/node_modules/rrule/dist/esm/rrule.js +232 -0
  516. package/node_modules/rrule/dist/esm/rruleset.js +182 -0
  517. package/node_modules/rrule/dist/esm/rrulestr.js +188 -0
  518. package/node_modules/rrule/dist/esm/types.js +14 -0
  519. package/node_modules/rrule/dist/esm/weekday.js +45 -0
  520. package/node_modules/rrule/package.json +79 -0
  521. package/package.json +32 -31
  522. package/node_modules/@deepseek-ai/dsh-computer-use/README.i18n.yaml +0 -37
  523. package/node_modules/@deepseek-ai/dsh-computer-use/README.md +0 -90
  524. package/node_modules/@deepseek-ai/dsh-computer-use/README.zh.md +0 -90
  525. package/node_modules/@deepseek-ai/dsh-computer-use/lib/index.js +0 -35
  526. package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/brand.js +0 -10
  527. package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/index.js +0 -36
  528. package/node_modules/@deepseek-ai/dsh-computer-use/locale/de.json +0 -6
  529. package/node_modules/@deepseek-ai/dsh-computer-use/locale/en.json +0 -6
  530. package/node_modules/@deepseek-ai/dsh-computer-use/locale/es.json +0 -6
  531. package/node_modules/@deepseek-ai/dsh-computer-use/locale/fr.json +0 -6
  532. package/node_modules/@deepseek-ai/dsh-computer-use/locale/ja.json +0 -6
  533. package/node_modules/@deepseek-ai/dsh-computer-use/locale/pt.json +0 -6
  534. package/node_modules/@deepseek-ai/dsh-computer-use/locale/ru.json +0 -6
  535. package/node_modules/@deepseek-ai/dsh-computer-use/locale/zh.json +0 -6
  536. package/node_modules/@deepseek-ai/dsh-computer-use/package.json +0 -44
  537. package/node_modules/@deepseek-ai/dsh-cua/README.i18n.yaml +0 -49
  538. package/node_modules/@deepseek-ai/dsh-cua/README.md +0 -130
  539. package/node_modules/@deepseek-ai/dsh-cua/README.zh.md +0 -130
  540. package/node_modules/@deepseek-ai/dsh-cua/lib/api.js +0 -597
  541. package/node_modules/@deepseek-ai/dsh-cua/lib/bridge.js +0 -611
  542. package/node_modules/@deepseek-ai/dsh-cua/lib/client.js +0 -1758
  543. package/node_modules/@deepseek-ai/dsh-cua/lib/index.js +0 -1916
  544. package/node_modules/@deepseek-ai/dsh-cua/lib/native-client.js +0 -285
  545. package/node_modules/@deepseek-ai/dsh-cua/lib/protocol.js +0 -305
  546. package/node_modules/@deepseek-ai/dsh-cua/lib/remote-types.js +0 -1
  547. package/node_modules/@deepseek-ai/dsh-cua/lib/typert.host.js +0 -416
  548. package/node_modules/@deepseek-ai/dsh-cua/lib/typert.remote-client.js +0 -301
  549. package/node_modules/@deepseek-ai/dsh-cua/locale/de.json +0 -6
  550. package/node_modules/@deepseek-ai/dsh-cua/locale/en.json +0 -6
  551. package/node_modules/@deepseek-ai/dsh-cua/locale/es.json +0 -6
  552. package/node_modules/@deepseek-ai/dsh-cua/locale/fr.json +0 -6
  553. package/node_modules/@deepseek-ai/dsh-cua/locale/ja.json +0 -6
  554. package/node_modules/@deepseek-ai/dsh-cua/locale/pt.json +0 -6
  555. package/node_modules/@deepseek-ai/dsh-cua/locale/ru.json +0 -6
  556. package/node_modules/@deepseek-ai/dsh-cua/locale/zh.json +0 -6
  557. package/node_modules/@deepseek-ai/dsh-cua/package.json +0 -151
  558. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.i18n.yaml +0 -46
  559. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.md +0 -94
  560. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.zh.md +0 -94
  561. package/node_modules/@deepseek-ai/dsh-cua-bundle/cordis.patch.yml +0 -10
  562. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.md +0 -1
  563. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.zh.md +0 -1
  564. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.svg +0 -33
  565. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.zh.svg +0 -33
  566. package/node_modules/@deepseek-ai/dsh-cua-bundle/icon.svg +0 -35
  567. package/node_modules/@deepseek-ai/dsh-cua-bundle/lib/index.js +0 -1
  568. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/de.json +0 -7
  569. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/en.json +0 -7
  570. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/es.json +0 -7
  571. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/fr.json +0 -7
  572. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ja.json +0 -7
  573. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/pt.json +0 -7
  574. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ru.json +0 -7
  575. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/zh.json +0 -7
  576. package/node_modules/@deepseek-ai/dsh-cua-bundle/package.json +0 -58
  577. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index--TtJvO-i.js +0 -197
  578. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Jtzf36XE.css +0 -1
  579. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js +0 -14991
  580. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.js +0 -298
  581. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js +0 -4060
  582. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.js +0 -13
  583. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js +0 -16
  584. package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js +0 -23
  585. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js +0 -1250
  586. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js +0 -10
  587. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js +0 -1733
  588. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.js +0 -12
  589. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.js +0 -315
  590. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js +0 -2360
  591. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js +0 -10
  592. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js +0 -7
  593. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js +0 -14991
  594. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.js +0 -298
  595. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js +0 -4060
  596. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.js +0 -13
  597. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.js +0 -16
  598. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.js +0 -23
  599. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/SemanticResourceAttributes.js +0 -1250
  600. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.js +0 -10
  601. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js +0 -1733
  602. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.js +0 -12
  603. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.js +0 -315
  604. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/SemanticAttributes.js +0 -2360
  605. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.js +0 -10
  606. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js +0 -7
  607. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js +0 -15049
  608. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js +0 -301
  609. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js +0 -4072
  610. package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js +0 -29
  611. package/node_modules/@opentelemetry/semantic-conventions/build/src/index.js +0 -32
  612. package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.js +0 -27
  613. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/SemanticResourceAttributes.js +0 -1255
  614. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.js +0 -26
  615. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js +0 -1759
  616. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.js +0 -15
  617. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_metrics.js +0 -319
  618. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/SemanticAttributes.js +0 -2368
  619. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.js +0 -26
  620. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js +0 -10
  621. /package/node_modules/@smithy/core/dist-es/submodules/{protocols → serde}/writeKey.js +0 -0
@@ -0,0 +1,837 @@
1
+ # rrule.js
2
+
3
+ **Library for working with recurrence rules for calendar dates.**
4
+
5
+ [![NPM version][npm-image]][npm-url]
6
+ [![Build Status][ci-image]][ci-url]
7
+ [![js-standard-style][js-standard-image]][js-standard-url]
8
+ [![Downloads][downloads-image]][downloads-url]
9
+ [![Gitter][gitter-image]][gitter-url]
10
+ [![codecov.io](http://codecov.io/github/jkbrzt/rrule/coverage.svg?branch=master)](http://codecov.io/github/jkbrzt/rrule?branch=master)
11
+
12
+ rrule.js supports recurrence rules as defined in the [iCalendar
13
+ RFC](https://tools.ietf.org/html/rfc5545), with a few important
14
+ [differences](#differences-from-icalendar-rfc). It is a partial port of the
15
+ `rrule` module from the excellent
16
+ [python-dateutil](http://labix.org/python-dateutil/) library. On top of
17
+ that, it supports parsing and serialization of recurrence rules from and
18
+ to natural language.
19
+
20
+ ---
21
+
22
+ ### Quick Start
23
+
24
+ - [Demo app](http://jkbrzt.github.io/rrule/)
25
+ - # For contributors and maintainers: the code for the demo app is only on `gh-pages` branch
26
+
27
+ #### Client Side
28
+
29
+ ```bash
30
+ $ yarn add rrule
31
+ ```
32
+
33
+ #### Server Side
34
+
35
+ Includes optional TypeScript types
36
+
37
+ ```bash
38
+ $ yarn add rrule
39
+ # or
40
+ $ npm install rrule
41
+ ```
42
+
43
+ #### Usage
44
+
45
+ **RRule:**
46
+
47
+ ```es6
48
+ import { datetime, RRule, RRuleSet, rrulestr } from 'rrule'
49
+
50
+ // Create a rule:
51
+ const rule = new RRule({
52
+ freq: RRule.WEEKLY,
53
+ interval: 5,
54
+ byweekday: [RRule.MO, RRule.FR],
55
+ dtstart: datetime(2012, 2, 1, 10, 30),
56
+ until: datetime(2012, 12, 31)
57
+ })
58
+
59
+ // Get all occurrence dates (Date instances):
60
+ rule.all()
61
+ [ '2012-02-03T10:30:00.000Z',
62
+ '2012-03-05T10:30:00.000Z',
63
+ '2012-03-09T10:30:00.000Z',
64
+ '2012-04-09T10:30:00.000Z',
65
+ '2012-04-13T10:30:00.000Z',
66
+ '2012-05-14T10:30:00.000Z',
67
+ '2012-05-18T10:30:00.000Z',
68
+
69
+ /* … */]
70
+
71
+ // Get a slice:
72
+ rule.between(datetime(2012, 8, 1), datetime(2012, 9, 1))
73
+ ['2012-08-27T10:30:00.000Z',
74
+ '2012-08-31T10:30:00.000Z']
75
+
76
+ // Get an iCalendar RRULE string representation:
77
+ // The output can be used with RRule.fromString().
78
+ rule.toString()
79
+ "DTSTART:20120201T093000Z\nRRULE:FREQ=WEEKLY;INTERVAL=5;UNTIL=20130130T230000Z;BYDAY=MO,FR"
80
+
81
+ // Get a human-friendly text representation:
82
+ // The output can be used with RRule.fromText().
83
+ rule.toText()
84
+ "every 5 weeks on Monday, Friday until January 31, 2013"
85
+ ```
86
+
87
+ **RRuleSet:**
88
+
89
+ ```js
90
+ const rruleSet = new RRuleSet()
91
+
92
+ // Add a rrule to rruleSet
93
+ rruleSet.rrule(
94
+ new RRule({
95
+ freq: RRule.MONTHLY,
96
+ count: 5,
97
+ dtstart: datetime(2012, 2, 1, 10, 30),
98
+ })
99
+ )
100
+
101
+ // Add a date to rruleSet
102
+ rruleSet.rdate(datetime(2012, 7, 1, 10, 30))
103
+
104
+ // Add another date to rruleSet
105
+ rruleSet.rdate(datetime(2012, 7, 2, 10, 30))
106
+
107
+ // Add a exclusion rrule to rruleSet
108
+ rruleSet.exrule(
109
+ new RRule({
110
+ freq: RRule.MONTHLY,
111
+ count: 2,
112
+ dtstart: datetime(2012, 3, 1, 10, 30),
113
+ })
114
+ )
115
+
116
+ // Add a exclusion date to rruleSet
117
+ rruleSet.exdate(datetime(2012, 5, 1, 10, 30))
118
+
119
+ // Get all occurrence dates (Date instances):
120
+ rruleSet.all()[
121
+ ('2012-02-01T10:30:00.000Z',
122
+ '2012-05-01T10:30:00.000Z',
123
+ '2012-07-01T10:30:00.000Z',
124
+ '2012-07-02T10:30:00.000Z')
125
+ ]
126
+
127
+ // Get a slice:
128
+ rruleSet.between(datetime(2012, 2, 1), datetime(2012, 6, 2))[
129
+ ('2012-05-01T10:30:00.000Z', '2012-07-01T10:30:00.000Z')
130
+ ]
131
+
132
+ // To string
133
+ rruleSet.valueOf()[
134
+ ('DTSTART:20120201T023000Z',
135
+ 'RRULE:FREQ=MONTHLY;COUNT=5',
136
+ 'RDATE:20120701T023000Z,20120702T023000Z',
137
+ 'EXRULE:FREQ=MONTHLY;COUNT=2',
138
+ 'EXDATE:20120601T023000Z')
139
+ ]
140
+
141
+ // To string
142
+ rruleSet.toString()
143
+ ;('["DTSTART:20120201T023000Z","RRULE:FREQ=MONTHLY;COUNT=5","RDATE:20120701T023000Z,20120702T023000Z","EXRULE:FREQ=MONTHLY;COUNT=2","EXDATE:20120601T023000Z"]')
144
+ ```
145
+
146
+ **rrulestr:**
147
+
148
+ ```js
149
+ // Parse a RRule string, return a RRule object
150
+ rrulestr('DTSTART:20120201T023000Z\nRRULE:FREQ=MONTHLY;COUNT=5')
151
+
152
+ // Parse a RRule string, return a RRuleSet object
153
+ rrulestr('DTSTART:20120201T023000Z\nRRULE:FREQ=MONTHLY;COUNT=5', {
154
+ forceset: true,
155
+ })
156
+
157
+ // Parse a RRuleSet string, return a RRuleSet object
158
+ rrulestr(
159
+ 'DTSTART:20120201T023000Z\nRRULE:FREQ=MONTHLY;COUNT=5\nRDATE:20120701T023000Z,20120702T023000Z\nEXRULE:FREQ=MONTHLY;COUNT=2\nEXDATE:20120601T023000Z'
160
+ )
161
+ ```
162
+
163
+ ### Important: Use UTC dates
164
+
165
+ Dates in JavaScript are tricky. `RRule` tries to support as much flexibility as possible without adding any large required 3rd party dependencies, but that means we also have some special rules.
166
+
167
+ By default, `RRule` deals in ["floating" times or UTC timezones](https://tools.ietf.org/html/rfc5545#section-3.2.19). If you want results in a specific timezone, `RRule` also provides [timezone support](#timezone-support). Either way, JavaScript's built-in "timezone" offset tends to just get in the way, so this library simply doesn't use it at all. All times are returned with zero offset, as though it didn't exist in JavaScript.
168
+
169
+ **THE BOTTOM LINE: Returned "UTC" dates are always meant to be interpreted as dates in your local timezone. This may mean you have to do additional conversion to get the "correct" local time with offset applied.**
170
+
171
+ For this reason, it is highly recommended to use timestamps in UTC eg. `new Date(Date.UTC(...))`. Returned dates will likewise be in UTC (except on Chrome, which always returns dates with a timezone offset). It's recommended to use the provided `datetime()` helper, which
172
+ creates dates in the correct format using a 1-based month.
173
+
174
+ For example:
175
+
176
+ ```ts
177
+ // local machine zone is America/Los_Angeles
178
+ const rule = RRule.fromString(
179
+ "DTSTART;TZID=America/Denver:20181101T190000;\n"
180
+ + "RRULE:FREQ=WEEKLY;BYDAY=MO,WE,TH;INTERVAL=1;COUNT=3"
181
+ )
182
+ rule.all()
183
+
184
+ [ 2018-11-01T18:00:00.000Z,
185
+ 2018-11-05T18:00:00.000Z,
186
+ 2018-11-07T18:00:00.000Z ]
187
+ // Even though the given offset is `Z` (UTC), these are local times, not UTC times.
188
+ // Each of these this is the correct local Pacific time of each recurrence in
189
+ // America/Los_Angeles when it is 19:00 in America/Denver, including the DST shift.
190
+
191
+ // You can get the local components by using the getUTC* methods eg:
192
+ date.getUTCDate() // --> 1
193
+ date.getUTCHours() // --> 18
194
+ ```
195
+
196
+ If you want to get the same times in true UTC, you may do so (e.g., using [Luxon](https://moment.github.io/luxon/#/)):
197
+
198
+ ```ts
199
+ rule.all().map(date =>
200
+ DateTime.fromJSDate(date)
201
+ .toUTC()
202
+ .setZone('local', { keepLocalTime: true })
203
+ .toJSDate()
204
+ )
205
+
206
+ [ 2018-11-02T01:00:00.000Z,
207
+ 2018-11-06T02:00:00.000Z,
208
+ 2018-11-08T02:00:00.000Z ]
209
+ // These times are in true UTC; you can see the hours shift
210
+ ```
211
+
212
+ For more examples see
213
+ [python-dateutil](http://labix.org/python-dateutil/) documentation.
214
+
215
+ ---
216
+
217
+ ### Timezone Support
218
+
219
+ Rrule also supports use of the `TZID` parameter in the
220
+ [RFC](https://tools.ietf.org/html/rfc5545#section-3.2.19) using the
221
+ [Intl API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl).
222
+ Support matrix for the Intl API applies. If you need to support additional environments,
223
+ please consider using a [polyfill](https://formatjs.io/docs/polyfills/).
224
+
225
+ Example with `TZID`:
226
+
227
+ ```js
228
+ new RRule({
229
+ dtstart: datetime(2018, 2, 1, 10, 30),
230
+ count: 1,
231
+ tzid: 'Asia/Tokyo',
232
+ }).all()[
233
+ // assuming the system timezone is set to America/Los_Angeles, you get:
234
+ '2018-01-31T17:30:00.000Z'
235
+ ]
236
+ // which is the time in Los Angeles when it's 2018-02-01T10:30:00 in Tokyo.
237
+ ```
238
+
239
+ Whether or not you use the `TZID` param, make sure to only use JS `Date` objects that are
240
+ represented in UTC to avoid unexpected timezone offsets being applied, for example:
241
+
242
+ ```js
243
+ // WRONG: Will produce dates with TZ offsets added
244
+ new RRule({
245
+ freq: RRule.MONTHLY,
246
+ dtstart: new Date(2018, 1, 1, 10, 30),
247
+ until: new Date(2018, 2, 31),
248
+ }).all()[('2018-02-01T18:30:00.000Z', '2018-03-01T18:30:00.000Z')]
249
+
250
+ // RIGHT: Will produce dates with recurrences at the correct time
251
+ new RRule({
252
+ freq: RRule.MONTHLY,
253
+ dtstart: datetime(2018, 2, 1, 10, 30),
254
+ until: datetime(2018, 3, 31),
255
+ }).all()[('2018-02-01T10:30:00.000Z', '2018-03-01T10:30:00.000Z')]
256
+ ```
257
+
258
+ ### API
259
+
260
+ #### `RRule` Constructor
261
+
262
+ ```javascript
263
+ new RRule(options[, noCache=false])
264
+ ```
265
+
266
+ The `options` argument mostly corresponds to the properties defined for `RRULE` in the
267
+ iCalendar RFC. Only `freq` is required.
268
+
269
+ <table>
270
+ <!-- why, markdown... -->
271
+ <thead>
272
+ <tr>
273
+ <th>Option</th>
274
+ <th>Description</th>
275
+ </tr>
276
+ </thead>
277
+ <tbody>
278
+ <tr>
279
+ <td><code>freq</code></td>
280
+ <td>
281
+ <p>(required) One of the following constants:</p>
282
+ <ul>
283
+ <li><code>RRule.YEARLY</code></li>
284
+ <li><code>RRule.MONTHLY</code></li>
285
+ <li><code>RRule.WEEKLY</code></li>
286
+ <li><code>RRule.DAILY</code></li>
287
+ <li><code>RRule.HOURLY</code></li>
288
+ <li><code>RRule.MINUTELY</code></li>
289
+ <li><code>RRule.SECONDLY</code></li>
290
+ </ul>
291
+ </td>
292
+ </tr>
293
+ <tr>
294
+ <td><code>dtstart</code></td>
295
+ <td>The recurrence start. Besides being the base for the
296
+ recurrence, missing parameters in the final recurrence
297
+ instances will also be extracted from this date. If not
298
+ given, <code>new Date</code> will be used instead.
299
+ **IMPORTANT:** See the discussion under <a href="#timezone-support">timezone support</a>
300
+ </td>
301
+ </tr>
302
+ <tr>
303
+ <td><code>interval</code></td>
304
+ <td>The interval between each freq iteration. For example,
305
+ when using <code>RRule.YEARLY</code>, an interval of <code>2</code> means
306
+ once every
307
+ two years, but with <code>RRule.HOURLY</code>, it means once every two
308
+ hours.
309
+ The default interval is <code>1</code>.
310
+ </td>
311
+ </tr>
312
+ <tr>
313
+ <td><code>wkst</code></td>
314
+ <td>The week start day. Must be one of the <code>RRule.MO</code>,
315
+ <code>RRule.TU</code>, <code>RRule.WE</code> constants, or an integer,
316
+ specifying
317
+ the first day of the week. This will affect recurrences based
318
+ on weekly periods. The default week start is <code>RRule.MO</code>.
319
+ </td>
320
+ </tr>
321
+ <tr>
322
+ <td><code>count</code></td>
323
+ <td>How many occurrences will be generated.</td>
324
+ </tr>
325
+ <tr>
326
+ <td><code>until</code></td>
327
+ <td>If given, this must be a <code>Date</code> instance, that will specify
328
+ the limit of the recurrence. If a recurrence instance happens
329
+ to be the same as the <code>Date</code> instance given in the
330
+ <code>until</code>
331
+ argument, this will be the last occurrence.
332
+ </td>
333
+ </tr>
334
+ <tr>
335
+ <td><code>tzid</code></td>
336
+ <td>If given, this must be a IANA string recognized by the Intl API. See
337
+ discussion under <a href="#timezone-support">Timezone support</a>.
338
+ </td>
339
+ </tr>
340
+ <tr>
341
+ <td><code>bysetpos</code></td>
342
+ <td>If given, it must be either an integer, or an array of
343
+ integers, positive or negative. Each given integer will specify
344
+ an occurrence number, corresponding to the nth occurrence of
345
+ the rule inside the frequency period. For example, a
346
+ <code>bysetpos</code> of <code>-1</code> if combined with a <code>RRule.MONTHLY</code>
347
+ frequency, and a byweekday of (<code>RRule.MO</code>, <code>RRule.TU</code>,
348
+ <code>RRule.WE</code>, <code>RRule.TH</code>, <code>RRule.FR</code>), will result in
349
+ the last
350
+ work day of every month.
351
+ </td>
352
+ </tr>
353
+ <tr>
354
+ <td><code>bymonth</code></td>
355
+ <td>If given, it must be either an integer, or an array of
356
+ integers, meaning the months to apply the recurrence to.
357
+ </td>
358
+ </tr>
359
+ <tr>
360
+ <td><code>bymonthday</code></td>
361
+ <td>If given, it must be either an integer, or an array of
362
+ integers, meaning the month days to apply the recurrence to.
363
+ </td>
364
+ </tr>
365
+ <tr>
366
+ <td><code>byyearday</code></td>
367
+ <td>If given, it must be either an integer, or an array of
368
+ integers, meaning the year days to apply the recurrence to.
369
+ </td>
370
+ </tr>
371
+ <tr>
372
+ <td><code>byweekno</code></td>
373
+ <td>If given, it must be either an integer, or an array of
374
+ integers, meaning the week numbers to apply the recurrence to.
375
+ Week numbers have the meaning described in ISO8601, that is,
376
+ the first week of the year is that containing at least four
377
+ days of the new year.
378
+ </td>
379
+ </tr>
380
+ <tr>
381
+ <td><code>byweekday</code></td>
382
+ <td>If given, it must be either an integer (<code>0 == RRule.MO</code>), an
383
+ array of integers, one of the weekday constants
384
+ (<code>RRule.MO</code>,
385
+ <code>RRule.TU</code>, etc), or an array of these constants. When
386
+ given,
387
+ these variables will define the weekdays where the recurrence
388
+ will be applied. It's also possible to use an argument n for
389
+ the weekday instances, which will mean the nth occurrence of
390
+ this weekday in the period. For example, with
391
+ <code>RRule.MONTHLY</code>,
392
+ or with <code>RRule.YEARLY</code> and <code>BYMONTH</code>, using
393
+ <code>RRule.FR.nth(+1)</code> or <code>RRule.FR.nth(-1)</code> in <code>byweekday</code>
394
+ will specify the first or last friday of the month where the
395
+ recurrence happens.
396
+ Notice
397
+ that the RFC documentation, this is specified as <code>BYDAY</code>,
398
+ but was renamed to avoid the ambiguity of that argument.
399
+ </td>
400
+ </tr>
401
+ <tr>
402
+ <td><code>byhour</code></td>
403
+ <td>If given, it must be either an integer, or an array of
404
+ integers, meaning the hours to apply the recurrence to.
405
+ </td>
406
+ </tr>
407
+ <tr>
408
+ <td><code>byminute</code></td>
409
+ <td>If given, it must be either an integer, or an array of
410
+ integers, meaning the minutes to apply the recurrence to.
411
+ </td>
412
+ </tr>
413
+ <tr>
414
+ <td><code>bysecond</code></td>
415
+ <td>If given, it must be either an integer, or an array of
416
+ integers, meaning the seconds to apply the recurrence to.
417
+ </td>
418
+ </tr>
419
+ <tr>
420
+ <td><code>byeaster</code></td>
421
+ <td>This is an extension to the RFC specification which the Python
422
+ implementation provides.
423
+ <strong>Not implemented in the JavaScript version.</strong>
424
+ </td>
425
+ </tr>
426
+ </tbody>
427
+ </table>
428
+
429
+ `noCache`: Set to `true` to disable caching of results. If you will use the
430
+ same rrule instance multiple times, enabling caching will improve the
431
+ performance considerably. Enabled by default.
432
+
433
+ See also [python-dateutil](http://labix.org/python-dateutil/)
434
+ documentation.
435
+
436
+ ---
437
+
438
+ #### Instance properties
439
+
440
+ <dl>
441
+ <dt><code>rule.options</code></dt>
442
+ <dd>Processed options applied to the rule. Includes default options
443
+ (such us <code>wkstart</code>). Currently,
444
+ <code>rule.options.byweekday</code> isn't equal
445
+ to <code>rule.origOptions.byweekday</code> (which is an inconsistency).
446
+ </dd>
447
+ <dt><code>rule.origOptions</code></dt>
448
+ <dd>The original <code>options</code> argument passed to
449
+ the constructor.</dd>
450
+ </dl>
451
+
452
+ ---
453
+
454
+ #### Occurrence Retrieval Methods
455
+
456
+ ##### `RRule.prototype.all([iterator])`
457
+
458
+ Returns all dates matching the rule. It is a replacement for the
459
+ iterator protocol this class implements in the Python version.
460
+
461
+ As rules without `until` or `count` represent infinite date series, you
462
+ can optionally pass `iterator`, which is a function that is called for
463
+ each date matched by the rule. It gets two parameters `date` (the `Date`
464
+ instance being added), and `i` (zero-indexed position of `date` in the
465
+ result). Dates are being added to the result as long as the iterator
466
+ returns `true`. If a `false`-y value is returned, `date` isn't added to
467
+ the result and the iteration is interrupted (possibly prematurely).
468
+
469
+ ```javascript
470
+ rule.all()[
471
+ ('2012-02-01T10:30:00.000Z',
472
+ '2012-05-01T10:30:00.000Z',
473
+ '2012-07-01T10:30:00.000Z',
474
+ '2012-07-02T10:30:00.000Z')
475
+ ]
476
+
477
+ rule.all(function (date, i) {
478
+ return i < 2
479
+ })[('2012-02-01T10:30:00.000Z', '2012-05-01T10:30:00.000Z')]
480
+ ```
481
+
482
+ ##### `RRule.prototype.between(after, before, inc=false [, iterator])`
483
+
484
+ Returns all the occurrences of the rrule between `after` and `before`.
485
+ The `inc` keyword defines what happens if `after` and/or `before` are
486
+ themselves occurrences. With `inc == true`, they will be included in the
487
+ list, if they are found in the recurrence set.
488
+
489
+ Optional `iterator` has the same function as it has with
490
+ `RRule.prototype.all()`.
491
+
492
+ ```javascript
493
+ rule.between(datetime(2012, 8, 1), datetime(2012, 9, 1))[
494
+ ('2012-08-27T10:30:00.000Z', '2012-08-31T10:30:00.000Z')
495
+ ]
496
+ ```
497
+
498
+ ##### `RRule.prototype.before(dt, inc=false)`
499
+
500
+ Returns the last recurrence before the given `Date` instance. The `inc`
501
+ argument defines what happens if `dt` is an occurrence. With
502
+ `inc == true`, if `dt` itself is an occurrence, it will be returned.
503
+
504
+ ##### `RRule.prototype.after(dt, inc=false)`
505
+
506
+ Returns the first recurrence
507
+ after the given `Date` instance. The `inc` argument defines what happens
508
+ if `dt` is an occurrence. With `inc == true`, if `dt` itself is an
509
+ occurrence, it will be returned.
510
+
511
+ See also [python-dateutil](http://labix.org/python-dateutil/)
512
+ documentation.
513
+
514
+ ---
515
+
516
+ #### iCalendar RFC String Methods
517
+
518
+ ##### `RRule.prototype.toString()`
519
+
520
+ Returns a string representation of the rule as per the iCalendar RFC.
521
+ Only properties explicitly specified in `options` are included:
522
+
523
+ ```javascript
524
+ rule.toString()
525
+ ;('DTSTART:20120201T093000Z\nRRULE:FREQ=WEEKLY;INTERVAL=5;UNTIL=20130130T230000Z;BYDAY=MO,FR')
526
+
527
+ rule.toString() == RRule.optionsToString(rule.origOptions)
528
+ true
529
+ ```
530
+
531
+ ##### `RRule.optionsToString(options)`
532
+
533
+ Converts `options` to iCalendar RFC `RRULE` string:
534
+
535
+ ```javascript
536
+ // Get full a string representation of all options,
537
+ // including the default and inferred ones.
538
+ RRule.optionsToString(rule.options)
539
+ ;('DTSTART:20120201T093000Z\nRRULE:FREQ=WEEKLY;INTERVAL=5;WKST=0;UNTIL=20130130T230000Z;BYDAY=MO,FR;BYHOUR=10;BYMINUTE=30;BYSECOND=0')
540
+
541
+ // Cherry-pick only some options from an rrule:
542
+ RRule.optionsToString({
543
+ freq: rule.options.freq,
544
+ dtstart: rule.options.dtstart,
545
+ })
546
+ ;('DTSTART:20120201T093000Z\nRRULE:FREQ=WEEKLY;')
547
+ ```
548
+
549
+ ##### `RRule.fromString(rfcString)`
550
+
551
+ Constructs an `RRule` instance from a complete `rfcString`:
552
+
553
+ ```javascript
554
+ var rule = RRule.fromString('DTSTART:20120201T093000Z\nRRULE:FREQ=WEEKLY;')
555
+
556
+ // This is equivalent
557
+ var rule = new RRule(
558
+ RRule.parseString('DTSTART:20120201T093000Z\nRRULE:FREQ=WEEKLY')
559
+ )
560
+ ```
561
+
562
+ ##### `RRule.parseString(rfcString)`
563
+
564
+ Only parse RFC string and return `options`.
565
+
566
+ ```javascript
567
+ var options = RRule.parseString('FREQ=DAILY;INTERVAL=6')
568
+ options.dtstart = datetime(2000, 2, 1)
569
+ var rule = new RRule(options)
570
+ ```
571
+
572
+ ---
573
+
574
+ #### Natural Language Text Methods
575
+
576
+ These methods provide an incomplete support for text→`RRule` and
577
+ `RRule`→text conversion. You should test them with your input to see
578
+ whether the result is acceptable.
579
+
580
+ ##### `RRule.prototype.toText([gettext, [language]])`
581
+
582
+ Returns a textual representation of `rule`. The `gettext` callback, if
583
+ provided, will be called for each text token and its return value used
584
+ instead. The optional `language` argument is a language definition to be
585
+ used (defaults to `rrule/nlp.js:ENGLISH`).
586
+
587
+ ```javascript
588
+ var rule = new RRule({
589
+ freq: RRule.WEEKLY,
590
+ count: 23,
591
+ })
592
+ rule.toText()
593
+ ;('every week for 23 times')
594
+ ```
595
+
596
+ ##### `RRule.prototype.isFullyConvertibleToText()`
597
+
598
+ Provides a hint on whether all the options the rule has are convertible
599
+ to text.
600
+
601
+ ##### `RRule.fromText(text[, language])`
602
+
603
+ Constructs an `RRule` instance from `text`.
604
+
605
+ ```javascript
606
+ rule = RRule.fromText('every day for 3 times')
607
+ ```
608
+
609
+ ##### `RRule.parseText(text[, language])`
610
+
611
+ Parse `text` into `options`:
612
+
613
+ ```javascript
614
+ options = RRule.parseText('every day for 3 times')
615
+ // {freq: 3, count: "3"}
616
+ options.dtstart = datetime(2000, 2, 1)
617
+ var rule = new RRule(options)
618
+ ```
619
+
620
+ ---
621
+
622
+ #### `RRuleSet` Constructor
623
+
624
+ ```javascript
625
+ new RRuleSet([(noCache = false)])
626
+ ```
627
+
628
+ The `RRuleSet` instance allows more complex recurrence setups, mixing multiple
629
+ rules, dates, exclusion rules, and exclusion dates.
630
+
631
+ Default `noCache` argument is `false`, caching of results will be enabled,
632
+ improving performance of multiple queries considerably.
633
+
634
+ ##### `RRuleSet.prototype.rrule(rrule)`
635
+
636
+ Include the given `rrule` instance in the recurrence set generation.
637
+
638
+ ##### `RRuleSet.prototype.rdate(dt)`
639
+
640
+ Include the given datetime instance `dt` in the recurrence set generation.
641
+
642
+ ##### `RRuleSet.prototype.exrule(rrule)`
643
+
644
+ Include the given `rrule` instance in the recurrence set exclusion list. Dates
645
+ which are part of the given recurrence rules will not be generated, even if
646
+ some inclusive rrule or rdate matches them. **NOTE:** `EXRULE` has been (deprecated
647
+ in RFC 5545)[https://icalendar.org/iCalendar-RFC-5545/a-3-deprecated-features.html]
648
+ and does not support a `DTSTART` property.
649
+
650
+ ##### `RRuleSet.prototype.exdate(dt)`
651
+
652
+ Include the given datetime instance `dt` in the recurrence set exclusion list. Dates
653
+ included that way will not be generated, even if some inclusive `rrule` or
654
+ `rdate` matches them.
655
+
656
+ ##### `RRuleSet.prototype.tzid(tz?)`
657
+
658
+ Sets or overrides the timezone identifier. Useful if there are no rrules in this
659
+ `RRuleSet` and thus no `DTSTART`.
660
+
661
+ ##### `RRuleSet.prototype.all([iterator])`
662
+
663
+ Same as `RRule.prototype.all`.
664
+
665
+ ##### `RRuleSet.prototype.between(after, before, inc=false [, iterator])`
666
+
667
+ Same as `RRule.prototype.between`.
668
+
669
+ ##### `RRuleSet.prototype.before(dt, inc=false)`
670
+
671
+ Same as `RRule.prototype.before`.
672
+
673
+ ##### `RRuleSet.prototype.after(dt, inc=false)`
674
+
675
+ Same as `RRule.prototype.after`.
676
+
677
+ ##### `RRuleSet.prototype.rrules()`
678
+
679
+ Get list of included rrules in this recurrence set.
680
+
681
+ ##### `RRuleSet.prototype.exrules()`
682
+
683
+ Get list of excluded rrules in this recurrence set.
684
+
685
+ ##### `RRuleSet.prototype.rdates()`
686
+
687
+ Get list of included datetimes in this recurrence set.
688
+
689
+ ##### `RRuleSet.prototype.exdates()`
690
+
691
+ Get list of excluded datetimes in this recurrence set.
692
+
693
+ ---
694
+
695
+ #### `rrulestr` Function
696
+
697
+ ```js
698
+ rrulestr(rruleStr[, options])
699
+ ```
700
+
701
+ The `rrulestr` function is a parser for RFC-like syntaxes. The string passed
702
+ as parameter may be a multiple line string, a single line string, or just the
703
+ `RRULE` property value.
704
+
705
+ Additionally, it accepts the following keyword arguments:
706
+
707
+ <dl>
708
+
709
+ <dt><code>cache</code></dt>
710
+ <dd>
711
+ If <code>true</code>, the <code>rruleset</code> or <code>rrule</code> created instance
712
+ will cache its results.
713
+ Default is not to cache.
714
+ </dd>
715
+
716
+ <dt><code>dtstart</code></dt>
717
+ <dd>
718
+ If given, it must be a datetime instance that will be used when no
719
+ <code>DTSTART</code> property is found in the parsed string.
720
+ If it is not given, and the property is not found,
721
+ <code>datetime.now()</code> will be used instead.
722
+ </dd>
723
+
724
+ <dt><code>unfold</code></dt>
725
+ <dd>
726
+ If set to <code>true</code>, lines will be unfolded following the RFC specification.
727
+ It defaults to <code>false</code>, meaning that spaces before every line will be stripped.
728
+ </dd>
729
+
730
+ <dt><code>forceset</code></dt>
731
+ <dd>
732
+ If set to <code>true</code>, an <code>rruleset</code> instance will be returned,
733
+ even if only a single rule is found.
734
+ The default is to return an <code>rrule</code> if possible, and
735
+ an <code>rruleset</code> if necessary.
736
+ </dd>
737
+
738
+ <dt><code>compatible</code></dt>
739
+ <dd>
740
+ If set to <code>true</code>, the parser will operate in RFC-compatible mode.
741
+ Right now it means that unfold will be turned on, and if a <code>DTSTART</code> is found,
742
+ it will be considered the first recurrence instance, as documented in the RFC.
743
+ </dd>
744
+
745
+ <dt><code>tzid</code></dt>
746
+ <dd>
747
+ If given, it must be a string that will be used when no <code>TZID</code>
748
+ property is found in the parsed string.
749
+ If it is not given, and the property is not found, <code>'UTC'</code> will
750
+ be used by default.
751
+ </dd>
752
+
753
+ </dl>
754
+
755
+ ---
756
+
757
+ ### Differences From iCalendar RFC
758
+
759
+ - `RRule` has no `byday` keyword. The equivalent keyword has been replaced by
760
+ the `byweekday` keyword, to remove the ambiguity present in the original
761
+ keyword.
762
+ - Unlike documented in the RFC, the starting datetime, `dtstart`, is
763
+ not the first recurrence instance, unless it does fit in the specified rules.
764
+ This is in part due to this project being a port of
765
+ [python-dateutil](https://labix.org/python-dateutil#head-a65103993a21b717f6702063f3717e6e75b4ba66),
766
+ which has the same non-compliant functionality. Note that you can get the
767
+ original behavior by using a `RRuleSet` and adding the `dtstart` as an `rdate`.
768
+
769
+ ```javascript
770
+ var rruleSet = new RRuleSet()
771
+ var start = datetime(2012, 2, 1, 10, 30)
772
+
773
+ // Add a rrule to rruleSet
774
+ rruleSet.rrule(
775
+ new RRule({
776
+ freq: RRule.MONTHLY,
777
+ count: 5,
778
+ dtstart: start,
779
+ })
780
+ )
781
+
782
+ // Add a date to rruleSet
783
+ rruleSet.rdate(start)
784
+ ```
785
+
786
+ - Unlike documented in the RFC, every keyword is valid on every frequency. (The
787
+ RFC documents that `byweekno` is only valid on yearly frequencies, for example.)
788
+
789
+ ### Development
790
+
791
+ rrule.js is implemented in Typescript. It uses [JavaScript Standard Style](https://github.com/feross/standard) coding style.
792
+
793
+ To run the code, checkout this repository and run:
794
+
795
+ ```
796
+ $ yarn
797
+ ```
798
+
799
+ To run the tests, run:
800
+
801
+ ```
802
+ $ yarn test
803
+ ```
804
+
805
+ To build files for distribution, run:
806
+
807
+ ```
808
+ $ yarn build
809
+ ```
810
+
811
+ #### Authors
812
+
813
+ - [Jakub Roztocil](http://roztocil.co)
814
+ ([@jkbrzt](http://twitter.com/jkbrzt))
815
+ - Lars Schöning ([@lyschoening](http://twitter.com/lyschoening))
816
+ - David Golightly ([@davigoli](http://twitter.com/davigoli))
817
+
818
+ Python `dateutil` is written by [Gustavo
819
+ Niemeyer](http://niemeyer.net).
820
+
821
+ See [LICENCE](https://github.com/jkbrzt/rrule/blob/master/LICENCE) for
822
+ more details.
823
+
824
+ [npm-url]: https://npmjs.org/package/rrule
825
+ [npm-image]: http://img.shields.io/npm/v/rrule.svg
826
+ [ci-url]: https://github.com/jkbrzt/rrule/actions
827
+ [ci-image]: https://github.com/jkbrzt/rrule/workflows/Node%20CI/badge.svg
828
+ [downloads-url]: https://npmjs.org/package/rrule
829
+ [downloads-image]: http://img.shields.io/npm/dm/rrule.svg?style=flat-square
830
+ [js-standard-url]: https://github.com/feross/standard
831
+ [js-standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat
832
+ [gitter-url]: https://gitter.im/rrule-js/Lobby
833
+ [gitter-image]: https://img.shields.io/gitter/room/nwjs/nw.js.svg
834
+
835
+ #### Related projects
836
+
837
+ - https://rrules.com — RESTful API to get back occurrences of RRULEs that conform to RFC 5545.