@bastani/atomic 0.8.26-alpha.1 → 0.8.26-alpha.10

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 (303) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/README.md +5 -5
  3. package/dist/builtin/intercom/CHANGELOG.md +54 -0
  4. package/dist/builtin/intercom/package.json +2 -2
  5. package/dist/builtin/mcp/CHANGELOG.md +54 -0
  6. package/dist/builtin/mcp/package.json +3 -3
  7. package/dist/builtin/subagents/CHANGELOG.md +55 -0
  8. package/dist/builtin/subagents/agents/codebase-online-researcher.md +9 -9
  9. package/dist/builtin/subagents/agents/debugger.md +6 -6
  10. package/dist/builtin/subagents/package.json +4 -4
  11. package/dist/builtin/subagents/prompts/parallel-handoff-plan.md +1 -1
  12. package/dist/builtin/subagents/skills/browser/EXAMPLES.md +151 -0
  13. package/dist/builtin/subagents/skills/browser/LICENSE.txt +21 -0
  14. package/dist/builtin/subagents/skills/browser/REFERENCE.md +451 -0
  15. package/dist/builtin/subagents/skills/browser/SKILL.md +170 -0
  16. package/dist/builtin/subagents/skills/subagent/SKILL.md +4 -4
  17. package/dist/builtin/subagents/src/runs/background/subagent-runner.ts +55 -12
  18. package/dist/builtin/subagents/src/runs/foreground/execution.ts +71 -12
  19. package/dist/builtin/subagents/src/runs/shared/acceptance.ts +2 -1
  20. package/dist/builtin/subagents/src/runs/shared/final-drain.ts +34 -0
  21. package/dist/builtin/subagents/src/runs/shared/model-fallback.ts +416 -7
  22. package/dist/builtin/subagents/src/runs/shared/worktree.ts +2 -2
  23. package/dist/builtin/web-access/CHANGELOG.md +54 -0
  24. package/dist/builtin/web-access/package.json +2 -2
  25. package/dist/builtin/workflows/CHANGELOG.md +66 -0
  26. package/dist/builtin/workflows/README.md +10 -8
  27. package/dist/builtin/workflows/builtin/deep-research-codebase.ts +11 -8
  28. package/dist/builtin/workflows/builtin/goal.ts +137 -109
  29. package/dist/builtin/workflows/builtin/index.d.ts +2 -0
  30. package/dist/builtin/workflows/builtin/open-claude-design.ts +228 -151
  31. package/dist/builtin/workflows/builtin/ralph.d.ts +2 -0
  32. package/dist/builtin/workflows/builtin/ralph.ts +452 -279
  33. package/dist/builtin/workflows/package.json +2 -2
  34. package/dist/builtin/workflows/skills/create-spec/SKILL.md +14 -0
  35. package/dist/builtin/workflows/skills/research-codebase/SKILL.md +29 -10
  36. package/dist/builtin/workflows/src/extension/index.ts +10 -2
  37. package/dist/builtin/workflows/src/extension/runtime.ts +35 -3
  38. package/dist/builtin/workflows/src/extension/wiring.ts +13 -1
  39. package/dist/builtin/workflows/src/runs/background/status.ts +52 -6
  40. package/dist/builtin/workflows/src/runs/foreground/executor.ts +453 -21
  41. package/dist/builtin/workflows/src/runs/foreground/stage-runner.ts +77 -11
  42. package/dist/builtin/workflows/src/runs/shared/model-fallback.ts +402 -8
  43. package/dist/builtin/workflows/src/runs/shared/worktree.ts +2 -2
  44. package/dist/builtin/workflows/src/shared/authoring-contract.d.ts +2 -2
  45. package/dist/builtin/workflows/src/shared/persistence-restore.ts +182 -6
  46. package/dist/builtin/workflows/src/shared/persistence-session-entries.ts +76 -6
  47. package/dist/builtin/workflows/src/shared/stage-prompt.ts +33 -2
  48. package/dist/builtin/workflows/src/shared/store-types.ts +31 -0
  49. package/dist/builtin/workflows/src/shared/store.ts +160 -18
  50. package/dist/builtin/workflows/src/shared/types.ts +3 -3
  51. package/dist/builtin/workflows/src/shared/workflow-failures.ts +758 -132
  52. package/dist/builtin/workflows/src/tui/stage-chat-view.ts +39 -3
  53. package/dist/builtin/workflows/src/tui/store-widget-installer.ts +74 -74
  54. package/dist/core/agent-session.d.ts +33 -6
  55. package/dist/core/agent-session.d.ts.map +1 -1
  56. package/dist/core/agent-session.js +157 -182
  57. package/dist/core/agent-session.js.map +1 -1
  58. package/dist/core/atomic-guide-command.d.ts.map +1 -1
  59. package/dist/core/atomic-guide-command.js +11 -9
  60. package/dist/core/atomic-guide-command.js.map +1 -1
  61. package/dist/core/compaction/branch-summarization.d.ts +1 -1
  62. package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
  63. package/dist/core/compaction/branch-summarization.js +6 -3
  64. package/dist/core/compaction/branch-summarization.js.map +1 -1
  65. package/dist/core/compaction/compaction.d.ts.map +1 -1
  66. package/dist/core/compaction/compaction.js +23 -10
  67. package/dist/core/compaction/compaction.js.map +1 -1
  68. package/dist/core/compaction/context-compaction.d.ts +175 -0
  69. package/dist/core/compaction/context-compaction.d.ts.map +1 -0
  70. package/dist/core/compaction/context-compaction.js +1636 -0
  71. package/dist/core/compaction/context-compaction.js.map +1 -0
  72. package/dist/core/compaction/index.d.ts +1 -0
  73. package/dist/core/compaction/index.d.ts.map +1 -1
  74. package/dist/core/compaction/index.js +1 -0
  75. package/dist/core/compaction/index.js.map +1 -1
  76. package/dist/core/extensions/types.d.ts +3 -2
  77. package/dist/core/extensions/types.d.ts.map +1 -1
  78. package/dist/core/extensions/types.js.map +1 -1
  79. package/dist/core/footer-data-provider.d.ts.map +1 -1
  80. package/dist/core/footer-data-provider.js +3 -0
  81. package/dist/core/footer-data-provider.js.map +1 -1
  82. package/dist/core/index.d.ts +1 -1
  83. package/dist/core/index.d.ts.map +1 -1
  84. package/dist/core/index.js.map +1 -1
  85. package/dist/core/package-manager.d.ts.map +1 -1
  86. package/dist/core/package-manager.js +14 -7
  87. package/dist/core/package-manager.js.map +1 -1
  88. package/dist/core/session-manager.d.ts +41 -1
  89. package/dist/core/session-manager.d.ts.map +1 -1
  90. package/dist/core/session-manager.js +146 -7
  91. package/dist/core/session-manager.js.map +1 -1
  92. package/dist/core/slash-commands.d.ts.map +1 -1
  93. package/dist/core/slash-commands.js +1 -1
  94. package/dist/core/slash-commands.js.map +1 -1
  95. package/dist/core/tools/ask-user-question/tool/format-answer.d.ts +5 -5
  96. package/dist/core/tools/ask-user-question/tool/format-answer.d.ts.map +1 -1
  97. package/dist/core/tools/ask-user-question/tool/format-answer.js +5 -5
  98. package/dist/core/tools/ask-user-question/tool/format-answer.js.map +1 -1
  99. package/dist/core/tools/ask-user-question/tool/response-envelope.d.ts +16 -3
  100. package/dist/core/tools/ask-user-question/tool/response-envelope.d.ts.map +1 -1
  101. package/dist/core/tools/ask-user-question/tool/response-envelope.js +21 -3
  102. package/dist/core/tools/ask-user-question/tool/response-envelope.js.map +1 -1
  103. package/dist/index.d.ts +4 -3
  104. package/dist/index.d.ts.map +1 -1
  105. package/dist/index.js +3 -2
  106. package/dist/index.js.map +1 -1
  107. package/dist/modes/index.d.ts +1 -1
  108. package/dist/modes/index.d.ts.map +1 -1
  109. package/dist/modes/index.js.map +1 -1
  110. package/dist/modes/interactive/components/chat-session-host.d.ts.map +1 -1
  111. package/dist/modes/interactive/components/chat-session-host.js +17 -0
  112. package/dist/modes/interactive/components/chat-session-host.js.map +1 -1
  113. package/dist/modes/interactive/components/context-compaction-summary-message.d.ts +17 -0
  114. package/dist/modes/interactive/components/context-compaction-summary-message.d.ts.map +1 -0
  115. package/dist/modes/interactive/components/context-compaction-summary-message.js +83 -0
  116. package/dist/modes/interactive/components/context-compaction-summary-message.js.map +1 -0
  117. package/dist/modes/interactive/components/footer.d.ts.map +1 -1
  118. package/dist/modes/interactive/components/footer.js +4 -1
  119. package/dist/modes/interactive/components/footer.js.map +1 -1
  120. package/dist/modes/interactive/components/index.d.ts +1 -0
  121. package/dist/modes/interactive/components/index.d.ts.map +1 -1
  122. package/dist/modes/interactive/components/index.js +1 -0
  123. package/dist/modes/interactive/components/index.js.map +1 -1
  124. package/dist/modes/interactive/interactive-mode.d.ts +1 -0
  125. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  126. package/dist/modes/interactive/interactive-mode.js +75 -10
  127. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  128. package/dist/modes/rpc/rpc-client.d.ts +13 -8
  129. package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
  130. package/dist/modes/rpc/rpc-client.js +8 -1
  131. package/dist/modes/rpc/rpc-client.js.map +1 -1
  132. package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
  133. package/dist/modes/rpc/rpc-mode.js +4 -0
  134. package/dist/modes/rpc/rpc-mode.js.map +1 -1
  135. package/dist/modes/rpc/rpc-types.d.ts +14 -3
  136. package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
  137. package/dist/modes/rpc/rpc-types.js.map +1 -1
  138. package/dist/utils/git-env.d.ts +10 -0
  139. package/dist/utils/git-env.d.ts.map +1 -0
  140. package/dist/utils/git-env.js +33 -0
  141. package/dist/utils/git-env.js.map +1 -0
  142. package/docs/compaction.md +185 -50
  143. package/docs/custom-provider.md +11 -9
  144. package/docs/extensions.md +46 -42
  145. package/docs/index.md +13 -6
  146. package/docs/json.md +15 -12
  147. package/docs/packages.md +2 -0
  148. package/docs/providers.md +4 -1
  149. package/docs/quickstart.md +18 -11
  150. package/docs/rpc.md +38 -23
  151. package/docs/sdk.md +17 -8
  152. package/docs/session-format.md +26 -13
  153. package/docs/sessions.md +3 -3
  154. package/docs/settings.md +2 -2
  155. package/docs/skills.md +1 -15
  156. package/docs/termux.md +9 -10
  157. package/docs/themes.md +2 -2
  158. package/docs/tmux.md +3 -3
  159. package/docs/tui.md +19 -32
  160. package/docs/usage.md +2 -2
  161. package/docs/workflows.md +60 -16
  162. package/package.json +6 -12
  163. package/dist/builtin/subagents/skills/browser-use/SKILL.md +0 -234
  164. package/dist/builtin/subagents/skills/browser-use/references/cdp-python.md +0 -76
  165. package/dist/builtin/subagents/skills/browser-use/references/multi-session.md +0 -92
  166. package/node_modules/@earendil-works/pi-tui/README.md +0 -779
  167. package/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts +0 -54
  168. package/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts.map +0 -1
  169. package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js +0 -632
  170. package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js.map +0 -1
  171. package/node_modules/@earendil-works/pi-tui/dist/components/box.d.ts +0 -22
  172. package/node_modules/@earendil-works/pi-tui/dist/components/box.d.ts.map +0 -1
  173. package/node_modules/@earendil-works/pi-tui/dist/components/box.js +0 -104
  174. package/node_modules/@earendil-works/pi-tui/dist/components/box.js.map +0 -1
  175. package/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.d.ts +0 -22
  176. package/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.d.ts.map +0 -1
  177. package/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.js +0 -35
  178. package/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.js.map +0 -1
  179. package/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts +0 -249
  180. package/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts.map +0 -1
  181. package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +0 -1857
  182. package/node_modules/@earendil-works/pi-tui/dist/components/editor.js.map +0 -1
  183. package/node_modules/@earendil-works/pi-tui/dist/components/image.d.ts +0 -28
  184. package/node_modules/@earendil-works/pi-tui/dist/components/image.d.ts.map +0 -1
  185. package/node_modules/@earendil-works/pi-tui/dist/components/image.js +0 -89
  186. package/node_modules/@earendil-works/pi-tui/dist/components/image.js.map +0 -1
  187. package/node_modules/@earendil-works/pi-tui/dist/components/input.d.ts +0 -37
  188. package/node_modules/@earendil-works/pi-tui/dist/components/input.d.ts.map +0 -1
  189. package/node_modules/@earendil-works/pi-tui/dist/components/input.js +0 -378
  190. package/node_modules/@earendil-works/pi-tui/dist/components/input.js.map +0 -1
  191. package/node_modules/@earendil-works/pi-tui/dist/components/loader.d.ts +0 -31
  192. package/node_modules/@earendil-works/pi-tui/dist/components/loader.d.ts.map +0 -1
  193. package/node_modules/@earendil-works/pi-tui/dist/components/loader.js +0 -69
  194. package/node_modules/@earendil-works/pi-tui/dist/components/loader.js.map +0 -1
  195. package/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts +0 -96
  196. package/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts.map +0 -1
  197. package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +0 -644
  198. package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js.map +0 -1
  199. package/node_modules/@earendil-works/pi-tui/dist/components/select-list.d.ts +0 -50
  200. package/node_modules/@earendil-works/pi-tui/dist/components/select-list.d.ts.map +0 -1
  201. package/node_modules/@earendil-works/pi-tui/dist/components/select-list.js +0 -159
  202. package/node_modules/@earendil-works/pi-tui/dist/components/select-list.js.map +0 -1
  203. package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts +0 -50
  204. package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts.map +0 -1
  205. package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js +0 -185
  206. package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js.map +0 -1
  207. package/node_modules/@earendil-works/pi-tui/dist/components/spacer.d.ts +0 -12
  208. package/node_modules/@earendil-works/pi-tui/dist/components/spacer.d.ts.map +0 -1
  209. package/node_modules/@earendil-works/pi-tui/dist/components/spacer.js +0 -23
  210. package/node_modules/@earendil-works/pi-tui/dist/components/spacer.js.map +0 -1
  211. package/node_modules/@earendil-works/pi-tui/dist/components/text.d.ts +0 -19
  212. package/node_modules/@earendil-works/pi-tui/dist/components/text.d.ts.map +0 -1
  213. package/node_modules/@earendil-works/pi-tui/dist/components/text.js +0 -89
  214. package/node_modules/@earendil-works/pi-tui/dist/components/text.js.map +0 -1
  215. package/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.d.ts +0 -13
  216. package/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.d.ts.map +0 -1
  217. package/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.js +0 -51
  218. package/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.js.map +0 -1
  219. package/node_modules/@earendil-works/pi-tui/dist/editor-component.d.ts +0 -39
  220. package/node_modules/@earendil-works/pi-tui/dist/editor-component.d.ts.map +0 -1
  221. package/node_modules/@earendil-works/pi-tui/dist/editor-component.js +0 -2
  222. package/node_modules/@earendil-works/pi-tui/dist/editor-component.js.map +0 -1
  223. package/node_modules/@earendil-works/pi-tui/dist/fuzzy.d.ts +0 -16
  224. package/node_modules/@earendil-works/pi-tui/dist/fuzzy.d.ts.map +0 -1
  225. package/node_modules/@earendil-works/pi-tui/dist/fuzzy.js +0 -110
  226. package/node_modules/@earendil-works/pi-tui/dist/fuzzy.js.map +0 -1
  227. package/node_modules/@earendil-works/pi-tui/dist/index.d.ts +0 -23
  228. package/node_modules/@earendil-works/pi-tui/dist/index.d.ts.map +0 -1
  229. package/node_modules/@earendil-works/pi-tui/dist/index.js +0 -32
  230. package/node_modules/@earendil-works/pi-tui/dist/index.js.map +0 -1
  231. package/node_modules/@earendil-works/pi-tui/dist/keybindings.d.ts +0 -193
  232. package/node_modules/@earendil-works/pi-tui/dist/keybindings.d.ts.map +0 -1
  233. package/node_modules/@earendil-works/pi-tui/dist/keybindings.js +0 -174
  234. package/node_modules/@earendil-works/pi-tui/dist/keybindings.js.map +0 -1
  235. package/node_modules/@earendil-works/pi-tui/dist/keys.d.ts +0 -184
  236. package/node_modules/@earendil-works/pi-tui/dist/keys.d.ts.map +0 -1
  237. package/node_modules/@earendil-works/pi-tui/dist/keys.js +0 -1173
  238. package/node_modules/@earendil-works/pi-tui/dist/keys.js.map +0 -1
  239. package/node_modules/@earendil-works/pi-tui/dist/kill-ring.d.ts +0 -28
  240. package/node_modules/@earendil-works/pi-tui/dist/kill-ring.d.ts.map +0 -1
  241. package/node_modules/@earendil-works/pi-tui/dist/kill-ring.js +0 -44
  242. package/node_modules/@earendil-works/pi-tui/dist/kill-ring.js.map +0 -1
  243. package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.d.ts +0 -3
  244. package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.d.ts.map +0 -1
  245. package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js +0 -53
  246. package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js.map +0 -1
  247. package/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.d.ts +0 -50
  248. package/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.d.ts.map +0 -1
  249. package/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.js +0 -361
  250. package/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.js.map +0 -1
  251. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts +0 -90
  252. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts.map +0 -1
  253. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +0 -366
  254. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js.map +0 -1
  255. package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts +0 -113
  256. package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts.map +0 -1
  257. package/node_modules/@earendil-works/pi-tui/dist/terminal.js +0 -472
  258. package/node_modules/@earendil-works/pi-tui/dist/terminal.js.map +0 -1
  259. package/node_modules/@earendil-works/pi-tui/dist/tui.d.ts +0 -227
  260. package/node_modules/@earendil-works/pi-tui/dist/tui.d.ts.map +0 -1
  261. package/node_modules/@earendil-works/pi-tui/dist/tui.js +0 -1106
  262. package/node_modules/@earendil-works/pi-tui/dist/tui.js.map +0 -1
  263. package/node_modules/@earendil-works/pi-tui/dist/undo-stack.d.ts +0 -17
  264. package/node_modules/@earendil-works/pi-tui/dist/undo-stack.d.ts.map +0 -1
  265. package/node_modules/@earendil-works/pi-tui/dist/undo-stack.js +0 -25
  266. package/node_modules/@earendil-works/pi-tui/dist/undo-stack.js.map +0 -1
  267. package/node_modules/@earendil-works/pi-tui/dist/utils.d.ts +0 -84
  268. package/node_modules/@earendil-works/pi-tui/dist/utils.d.ts.map +0 -1
  269. package/node_modules/@earendil-works/pi-tui/dist/utils.js +0 -1029
  270. package/node_modules/@earendil-works/pi-tui/dist/utils.js.map +0 -1
  271. package/node_modules/@earendil-works/pi-tui/dist/word-navigation.d.ts +0 -25
  272. package/node_modules/@earendil-works/pi-tui/dist/word-navigation.d.ts.map +0 -1
  273. package/node_modules/@earendil-works/pi-tui/dist/word-navigation.js +0 -96
  274. package/node_modules/@earendil-works/pi-tui/dist/word-navigation.js.map +0 -1
  275. package/node_modules/@earendil-works/pi-tui/native/darwin/prebuilds/darwin-arm64/darwin-modifiers.node +0 -0
  276. package/node_modules/@earendil-works/pi-tui/native/darwin/prebuilds/darwin-x64/darwin-modifiers.node +0 -0
  277. package/node_modules/@earendil-works/pi-tui/native/win32/prebuilds/win32-arm64/win32-console-mode.node +0 -0
  278. package/node_modules/@earendil-works/pi-tui/native/win32/prebuilds/win32-x64/win32-console-mode.node +0 -0
  279. package/node_modules/@earendil-works/pi-tui/package.json +0 -47
  280. package/node_modules/get-east-asian-width/index.d.ts +0 -60
  281. package/node_modules/get-east-asian-width/index.js +0 -30
  282. package/node_modules/get-east-asian-width/license +0 -9
  283. package/node_modules/get-east-asian-width/lookup-data.js +0 -21
  284. package/node_modules/get-east-asian-width/lookup.js +0 -138
  285. package/node_modules/get-east-asian-width/package.json +0 -71
  286. package/node_modules/get-east-asian-width/readme.md +0 -65
  287. package/node_modules/get-east-asian-width/utilities.js +0 -24
  288. package/node_modules/marked/LICENSE.md +0 -44
  289. package/node_modules/marked/README.md +0 -106
  290. package/node_modules/marked/bin/main.js +0 -282
  291. package/node_modules/marked/bin/marked.js +0 -15
  292. package/node_modules/marked/lib/marked.cjs +0 -2211
  293. package/node_modules/marked/lib/marked.cjs.map +0 -7
  294. package/node_modules/marked/lib/marked.d.cts +0 -728
  295. package/node_modules/marked/lib/marked.d.ts +0 -728
  296. package/node_modules/marked/lib/marked.esm.js +0 -2189
  297. package/node_modules/marked/lib/marked.esm.js.map +0 -7
  298. package/node_modules/marked/lib/marked.umd.js +0 -2213
  299. package/node_modules/marked/lib/marked.umd.js.map +0 -7
  300. package/node_modules/marked/man/marked.1 +0 -111
  301. package/node_modules/marked/man/marked.1.md +0 -92
  302. package/node_modules/marked/marked.min.js +0 -69
  303. package/node_modules/marked/package.json +0 -111
@@ -1,71 +0,0 @@
1
- {
2
- "name": "get-east-asian-width",
3
- "version": "1.6.0",
4
- "description": "Determine the East Asian Width of a Unicode character",
5
- "license": "MIT",
6
- "repository": "sindresorhus/get-east-asian-width",
7
- "funding": "https://github.com/sponsors/sindresorhus",
8
- "author": {
9
- "name": "Sindre Sorhus",
10
- "email": "sindresorhus@gmail.com",
11
- "url": "https://sindresorhus.com"
12
- },
13
- "type": "module",
14
- "exports": {
15
- "types": "./index.d.ts",
16
- "default": "./index.js"
17
- },
18
- "sideEffects": false,
19
- "engines": {
20
- "node": ">=18"
21
- },
22
- "scripts": {
23
- "test": "xo && ava && tsc index.d.ts",
24
- "build": "node scripts/build.js",
25
- "prepublish": "npm run build"
26
- },
27
- "files": [
28
- "index.js",
29
- "index.d.ts",
30
- "lookup.js",
31
- "lookup-data.js",
32
- "utilities.js"
33
- ],
34
- "keywords": [
35
- "unicode",
36
- "east-asian-width",
37
- "eastasianwidth",
38
- "character",
39
- "string",
40
- "width",
41
- "text",
42
- "layout",
43
- "alignment",
44
- "fullwidth",
45
- "halfwidth",
46
- "ambiguous",
47
- "narrow",
48
- "wide",
49
- "neutral",
50
- "typography",
51
- "japanese",
52
- "chinese",
53
- "korean",
54
- "codepoint",
55
- "text-processing",
56
- "i18n",
57
- "l10n"
58
- ],
59
- "devDependencies": {
60
- "ava": "^5.3.1",
61
- "outdent": "^0.8.0",
62
- "simplify-ranges": "^0.1.0",
63
- "typescript": "^5.2.2",
64
- "xo": "^0.56.0"
65
- },
66
- "xo": {
67
- "ignores": [
68
- "lookup-data.js"
69
- ]
70
- }
71
- }
@@ -1,65 +0,0 @@
1
- # get-east-asian-width
2
-
3
- > Determine the [East Asian Width](https://unicode.org/reports/tr11/) of a Unicode character
4
-
5
- > East Asian Width categorizes Unicode characters based on their occupied space in East Asian typography, which helps in text layout and alignment, particularly in languages like Japanese, Chinese, and Korean.
6
-
7
- Unlike other similar packages, this package uses the latest Unicode data (which changes each year).
8
-
9
- ## Install
10
-
11
- ```sh
12
- npm install get-east-asian-width
13
- ```
14
-
15
- ## Usage
16
-
17
- ```js
18
- import {eastAsianWidth, eastAsianWidthType} from 'get-east-asian-width';
19
-
20
- const codePoint = '字'.codePointAt(0);
21
-
22
- console.log(eastAsianWidth(codePoint));
23
- //=> 2
24
-
25
- console.log(eastAsianWidthType(codePoint));
26
- //=> 'wide'
27
- ```
28
-
29
- ## `eastAsianWidth(codePoint: number, options?: object): 1 | 2`
30
-
31
- Returns the width as a number for the given code point.
32
-
33
- ### options
34
-
35
- Type: `object`
36
-
37
- #### ambiguousAsWide
38
-
39
- Type: `boolean`\
40
- Default: `false`
41
-
42
- Whether to treat an `'ambiguous'` character as wide.
43
-
44
- ```js
45
- import {eastAsianWidth} from 'get-east-asian-width';
46
-
47
- const codePoint = '⛣'.codePointAt(0);
48
-
49
- console.log(eastAsianWidth(codePoint));
50
- //=> 1
51
-
52
- console.log(eastAsianWidth(codePoint, {ambiguousAsWide: true}));
53
- //=> 2
54
- ```
55
-
56
- > Ambiguous characters behave like wide or narrow characters depending on the context (language tag, script identification, associated font, source of data, or explicit markup; all can provide the context). **If the context cannot be established reliably, they should be treated as narrow characters by default.**
57
- > - http://www.unicode.org/reports/tr11/
58
-
59
- ## `eastAsianWidthType(codePoint: number): 'fullwidth' | 'halfwidth' | 'wide' | 'narrow' | 'neutral' | 'ambiguous'`
60
-
61
- Returns the type of “East Asian Width” for the given code point.
62
-
63
- ## Related
64
-
65
- - [string-width](https://github.com/sindresorhus/string-width) - Get the visual width of a string
@@ -1,24 +0,0 @@
1
- /**
2
- Binary search on a sorted flat array of [start, end] pairs.
3
-
4
- @param {number[]} ranges - Flat array of inclusive [start, end] range pairs, e.g. [0, 5, 10, 20].
5
- @param {number} codePoint - The value to search for.
6
- @returns {boolean} Whether the value falls within any of the ranges.
7
- */
8
- export const isInRange = (ranges, codePoint) => {
9
- let low = 0;
10
- let high = Math.floor(ranges.length / 2) - 1;
11
- while (low <= high) {
12
- const mid = Math.floor((low + high) / 2);
13
- const i = mid * 2;
14
- if (codePoint < ranges[i]) {
15
- high = mid - 1;
16
- } else if (codePoint > ranges[i + 1]) {
17
- low = mid + 1;
18
- } else {
19
- return true;
20
- }
21
- }
22
-
23
- return false;
24
- };
@@ -1,44 +0,0 @@
1
- # License information
2
-
3
- ## Contribution License Agreement
4
-
5
- If you contribute code to this project, you are implicitly allowing your code
6
- to be distributed under the MIT license. You are also implicitly verifying that
7
- all code is your original work. `</legalese>`
8
-
9
- ## Marked
10
-
11
- Copyright (c) 2018+, MarkedJS (https://github.com/markedjs/)
12
- Copyright (c) 2011-2018, Christopher Jeffrey (https://github.com/chjj/)
13
-
14
- Permission is hereby granted, free of charge, to any person obtaining a copy
15
- of this software and associated documentation files (the "Software"), to deal
16
- in the Software without restriction, including without limitation the rights
17
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
- copies of the Software, and to permit persons to whom the Software is
19
- furnished to do so, subject to the following conditions:
20
-
21
- The above copyright notice and this permission notice shall be included in
22
- all copies or substantial portions of the Software.
23
-
24
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
30
- THE SOFTWARE.
31
-
32
- ## Markdown
33
-
34
- Copyright © 2004, John Gruber
35
- http://daringfireball.net/
36
- All rights reserved.
37
-
38
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
39
-
40
- * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
41
- * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
42
- * Neither the name “Markdown” nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
43
-
44
- This software is provided by the copyright holders and contributors “as is” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.
@@ -1,106 +0,0 @@
1
- <a href="https://marked.js.org">
2
- <img width="60px" height="60px" src="https://marked.js.org/img/logo-black.svg" align="right" />
3
- </a>
4
-
5
- # Marked
6
-
7
- [![npm](https://badgen.net/npm/v/marked)](https://www.npmjs.com/package/marked)
8
- [![install size](https://badgen.net/packagephobia/install/marked)](https://packagephobia.now.sh/result?p=marked)
9
- [![downloads](https://badgen.net/npm/dt/marked)](https://www.npmjs.com/package/marked)
10
- [![github actions](https://github.com/markedjs/marked/workflows/Tests/badge.svg)](https://github.com/markedjs/marked/actions)
11
- [![snyk](https://snyk.io/test/npm/marked/badge.svg)](https://snyk.io/test/npm/marked)
12
-
13
- - ⚡ built for speed
14
- - ⬇️ low-level compiler for parsing markdown without caching or blocking for long periods of time
15
- - ⚖️ light-weight while implementing all markdown features from the supported flavors & specifications
16
- - 🌐 works in a browser, on a server, or from a command line interface (CLI)
17
-
18
- ## Demo
19
-
20
- Checkout the [demo page](https://marked.js.org/demo/) to see marked in action ⛹️
21
-
22
- ## Docs
23
-
24
- Our [documentation pages](https://marked.js.org) are also rendered using marked 💯
25
-
26
- Also read about:
27
-
28
- * [Options](https://marked.js.org/using_advanced)
29
- * [Extensibility](https://marked.js.org/using_pro)
30
-
31
- ## Compatibility
32
-
33
- **Node.js:** Only [current and LTS](https://nodejs.org/en/about/releases/) Node.js versions are supported. End of life Node.js versions may become incompatible with Marked at any point in time.
34
-
35
- **Browser:** Not IE11 :)
36
-
37
- ## Installation
38
-
39
- **CLI:**
40
-
41
- ```sh
42
- npm install -g marked
43
- ```
44
-
45
- **In-browser:**
46
-
47
- ```sh
48
- npm install marked
49
- ```
50
-
51
- ## Usage
52
-
53
- ### Warning: 🚨 Marked does not [sanitize](https://marked.js.org/using_advanced#options) the output HTML. Please use a sanitize library, like [DOMPurify](https://github.com/cure53/DOMPurify) (recommended), [sanitize-html](https://github.com/apostrophecms/sanitize-html) or [insane](https://github.com/bevacqua/insane) on the *output* HTML! 🚨
54
-
55
- ```
56
- DOMPurify.sanitize(marked.parse(`<img src="x" onerror="alert('not happening')">`));
57
- ```
58
-
59
- **CLI**
60
-
61
- ``` bash
62
- # Example with stdin input
63
- $ marked -o hello.html
64
- hello world
65
- ^D
66
- $ cat hello.html
67
- <p>hello world</p>
68
- ```
69
-
70
- ```bash
71
- # Print all options
72
- $ marked --help
73
- ```
74
-
75
- **Browser**
76
-
77
- ```html
78
- <!doctype html>
79
- <html>
80
- <head>
81
- <meta charset="utf-8"/>
82
- <title>Marked in the browser</title>
83
- </head>
84
- <body>
85
- <div id="content"></div>
86
- <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
87
- <script>
88
- document.getElementById('content').innerHTML =
89
- marked.parse('# Marked in the browser\n\nRendered by **marked**.');
90
- </script>
91
- </body>
92
- </html>
93
- ```
94
- or import esm module
95
-
96
- ```html
97
- <script type="module">
98
- import { marked } from "https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js";
99
- document.getElementById('content').innerHTML =
100
- marked.parse('# Marked in the browser\n\nRendered by **marked**.');
101
- </script>
102
- ```
103
-
104
- ## License
105
-
106
- Copyright (c) 2011-2022, Christopher Jeffrey. (MIT License)
@@ -1,282 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * Marked CLI
5
- * Copyright (c) 2011-2013, Christopher Jeffrey (MIT License)
6
- */
7
-
8
- import { promises } from 'node:fs';
9
- import { dirname, resolve } from 'node:path';
10
- import { homedir } from 'node:os';
11
- import { createRequire } from 'node:module';
12
- import { marked } from '../lib/marked.esm.js';
13
-
14
- const { access, readFile, writeFile } = promises;
15
- const require = createRequire(import.meta.url);
16
-
17
- /**
18
- * @param {Process} nodeProcess inject process so it can be mocked in tests.
19
- */
20
- export async function main(nodeProcess) {
21
- /**
22
- * Man Page
23
- */
24
- async function help() {
25
- const { spawn } = await import('child_process');
26
- const { fileURLToPath } = await import('url');
27
-
28
- const options = {
29
- cwd: nodeProcess.cwd(),
30
- env: nodeProcess.env,
31
- stdio: 'inherit',
32
- };
33
-
34
- const __dirname = dirname(fileURLToPath(import.meta.url));
35
- const helpText = await readFile(resolve(__dirname, '../man/marked.1.md'), 'utf8');
36
-
37
- await new Promise(res => {
38
- const manProcess = spawn('man', [resolve(__dirname, '../man/marked.1')], options);
39
- nodeProcess.on('SIGINT', () => {
40
- manProcess.kill('SIGINT');
41
- });
42
-
43
- manProcess.on('error', () => {
44
- console.log(helpText);
45
- })
46
- .on('close', res);
47
- });
48
- }
49
-
50
- async function version() {
51
- const pkg = require('../package.json');
52
- console.log(pkg.version);
53
- }
54
-
55
- /**
56
- * Main
57
- */
58
- async function start(argv) {
59
- const files = [];
60
- const options = {};
61
- let input;
62
- let output;
63
- let string;
64
- let arg;
65
- let tokens;
66
- let config;
67
- let opt;
68
- let noclobber;
69
-
70
- function getArg() {
71
- let arg = argv.shift();
72
-
73
- if (arg.indexOf('--') === 0) {
74
- // e.g. --opt
75
- arg = arg.split('=');
76
- if (arg.length > 1) {
77
- // e.g. --opt=val
78
- argv.unshift(arg.slice(1).join('='));
79
- }
80
- arg = arg[0];
81
- } else if (arg[0] === '-') {
82
- if (arg.length > 2) {
83
- // e.g. -abc
84
- argv = arg.substring(1).split('').map(function(ch) {
85
- return '-' + ch;
86
- }).concat(argv);
87
- arg = argv.shift();
88
- } else {
89
- // e.g. -a
90
- }
91
- } else {
92
- // e.g. foo
93
- }
94
-
95
- return arg;
96
- }
97
-
98
- while (argv.length) {
99
- arg = getArg();
100
- switch (arg) {
101
- case '-o':
102
- case '--output':
103
- output = argv.shift();
104
- break;
105
- case '-i':
106
- case '--input':
107
- input = argv.shift();
108
- break;
109
- case '-s':
110
- case '--string':
111
- string = argv.shift();
112
- break;
113
- case '-t':
114
- case '--tokens':
115
- tokens = true;
116
- break;
117
- case '-c':
118
- case '--config':
119
- config = argv.shift();
120
- break;
121
- case '-n':
122
- case '--no-clobber':
123
- noclobber = true;
124
- break;
125
- case '-h':
126
- case '--help':
127
- return await help();
128
- case '-v':
129
- case '--version':
130
- return await version();
131
- default:
132
- if (arg.indexOf('--') === 0) {
133
- opt = camelize(arg.replace(/^--(no-)?/, ''));
134
- if (!(opt in marked.defaults)) {
135
- continue;
136
- }
137
- if (arg.indexOf('--no-') === 0) {
138
- options[opt] = typeof marked.defaults[opt] !== 'boolean'
139
- ? null
140
- : false;
141
- } else {
142
- options[opt] = typeof marked.defaults[opt] !== 'boolean'
143
- ? argv.shift()
144
- : true;
145
- }
146
- } else {
147
- files.push(arg);
148
- }
149
- break;
150
- }
151
- }
152
-
153
- async function getData() {
154
- if (!input) {
155
- if (files.length <= 2) {
156
- if (string) {
157
- return string;
158
- }
159
- return await getStdin();
160
- }
161
- input = files.pop();
162
- }
163
- return await readFile(input, 'utf8');
164
- }
165
-
166
- function resolveFile(file) {
167
- return resolve(file.replace(/^~/, homedir));
168
- }
169
-
170
- function fileExists(file) {
171
- return access(resolveFile(file)).then(() => true, () => false);
172
- }
173
-
174
- async function runConfig(file) {
175
- const configFile = resolveFile(file);
176
- let markedConfig;
177
- try {
178
- // try require for json
179
- markedConfig = require(configFile);
180
- } catch (err) {
181
- if (err.code !== 'ERR_REQUIRE_ESM') {
182
- throw err;
183
- }
184
- // must import esm
185
- markedConfig = await import('file:///' + configFile);
186
- }
187
-
188
- if (markedConfig.default) {
189
- markedConfig = markedConfig.default;
190
- }
191
-
192
- if (typeof markedConfig === 'function') {
193
- markedConfig(marked);
194
- } else {
195
- marked.use(markedConfig);
196
- }
197
- }
198
-
199
- const data = await getData();
200
-
201
- if (config) {
202
- if (!await fileExists(config)) {
203
- throw Error(`Cannot load config file '${config}'`);
204
- }
205
-
206
- await runConfig(config);
207
- } else {
208
- const defaultConfig = [
209
- '~/.marked.json',
210
- '~/.marked.js',
211
- '~/.marked/index.js',
212
- ];
213
-
214
- for (const configFile of defaultConfig) {
215
- if (await fileExists(configFile)) {
216
- await runConfig(configFile);
217
- break;
218
- }
219
- }
220
- }
221
-
222
- const html = tokens
223
- ? JSON.stringify(marked.lexer(data, options), null, 2)
224
- : await marked.parse(data, options);
225
-
226
- if (output) {
227
- if (noclobber && await fileExists(output)) {
228
- throw Error('marked: output file \'' + output + '\' already exists, disable the \'-n\' / \'--no-clobber\' flag to overwrite\n');
229
- }
230
- return await writeFile(output, html);
231
- }
232
-
233
- nodeProcess.stdout.write(html + '\n');
234
- }
235
-
236
- /**
237
- * Helpers
238
- */
239
- function getStdin() {
240
- return new Promise((resolve, reject) => {
241
- const stdin = nodeProcess.stdin;
242
- let buff = '';
243
-
244
- stdin.setEncoding('utf8');
245
-
246
- stdin.on('data', function(data) {
247
- buff += data;
248
- });
249
-
250
- stdin.on('error', function(err) {
251
- reject(err);
252
- });
253
-
254
- stdin.on('end', function() {
255
- resolve(buff);
256
- });
257
-
258
- stdin.resume();
259
- });
260
- }
261
-
262
- /**
263
- * @param {string} text
264
- */
265
- function camelize(text) {
266
- return text.replace(/(\w)-(\w)/g, function(_, a, b) {
267
- return a + b.toUpperCase();
268
- });
269
- }
270
-
271
- try {
272
- await start(nodeProcess.argv.slice());
273
- nodeProcess.exit(0);
274
- } catch (err) {
275
- if (err.code === 'ENOENT') {
276
- nodeProcess.stderr.write('marked: ' + err.path + ': No such file or directory');
277
- } else {
278
- nodeProcess.stderr.write(err.message);
279
- }
280
- return nodeProcess.exit(1);
281
- }
282
- }
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * Marked CLI
5
- * Copyright (c) 2011-2013, Christopher Jeffrey (MIT License)
6
- */
7
-
8
- import { main } from './main.js';
9
-
10
- /**
11
- * Expose / Entry Point
12
- */
13
-
14
- process.title = 'marked';
15
- main(process);