@xiaoso/dsh-tool-plus 0.1.7-beta.0 → 0.1.7

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 (243) hide show
  1. package/lib/index.mjs +11 -9
  2. package/lib/{scrapers-D8oWspgW.mjs → scrapers-CtQrQ5kG.mjs} +1 -1
  3. package/lib/types/client/BashPlusCard.d.ts +53 -0
  4. package/lib/types/client/ToolPlusSection.d.ts +36 -0
  5. package/lib/types/client/forms.d.ts +42 -0
  6. package/lib/types/client/index.d.ts +29 -0
  7. package/lib/types/client/locales.d.ts +19 -0
  8. package/lib/types/client/rm-safe-status-text.d.ts +15 -0
  9. package/lib/types/client/rows.d.ts +107 -0
  10. package/lib/types/client/web-connection-rpc.d.ts +22 -0
  11. package/lib/types/config/fields.d.ts +85 -0
  12. package/lib/types/config/omp-settings.d.ts +21 -0
  13. package/lib/types/config/settings.d.ts +212 -0
  14. package/lib/types/config/truncate.d.ts +27 -0
  15. package/lib/types/host/browser-probe-rpc.d.ts +29 -0
  16. package/lib/types/index.d.ts +6 -0
  17. package/lib/types/tools/ast-edit/adapter/index.d.ts +26 -0
  18. package/lib/types/tools/ast-edit/adapter/sdk.d.ts +49 -0
  19. package/lib/types/tools/ast-grep/adapter/index.d.ts +31 -0
  20. package/lib/types/tools/ast-grep/adapter/sdk.d.ts +44 -0
  21. package/lib/types/tools/bash/adapter/spill.d.ts +34 -0
  22. package/lib/types/tools/bash/background.d.ts +40 -0
  23. package/lib/types/tools/bash/bash-executor.d.ts +102 -0
  24. package/lib/types/tools/bash/bash-interceptor.d.ts +33 -0
  25. package/lib/types/tools/bash/cd-workdir.d.ts +35 -0
  26. package/lib/types/tools/bash/logger.d.ts +18 -0
  27. package/lib/types/tools/bash/non-interactive-env.d.ts +5 -0
  28. package/lib/types/tools/bash/render.d.ts +46 -0
  29. package/lib/types/tools/bash/rm-safe-status.d.ts +62 -0
  30. package/lib/types/tools/bash/rm-safe.d.ts +18 -0
  31. package/lib/types/tools/bash/sanitize-text.d.ts +34 -0
  32. package/lib/types/tools/bash/shell-snapshot.d.ts +31 -0
  33. package/lib/types/tools/bash/shell-tokenize.d.ts +60 -0
  34. package/lib/types/tools/bash/streaming-output.d.ts +32 -0
  35. package/lib/types/tools/bash/trash-cli-main.d.ts +1 -0
  36. package/lib/types/tools/bash/trash-cli.d.ts +77 -0
  37. package/lib/types/tools/bash/types.d.ts +107 -0
  38. package/lib/types/tools/bash/which.d.ts +20 -0
  39. package/lib/types/tools/bash/windows-shell.d.ts +31 -0
  40. package/lib/types/tools/bash/yield.d.ts +71 -0
  41. package/lib/types/tools/edit/adapter/index.d.ts +57 -0
  42. package/lib/types/tools/edit/adapter/tools/auto-generated-guard.d.ts +10 -0
  43. package/lib/types/tools/edit/adapter/tools/output-meta.d.ts +34 -0
  44. package/lib/types/tools/edit/adapter/tools/plan-mode-guard.d.ts +21 -0
  45. package/lib/types/tools/glob/adapter/index.d.ts +52 -0
  46. package/lib/types/tools/grep/adapter/index.d.ts +53 -0
  47. package/lib/types/tools/grep/adapter/match-path.d.ts +1 -0
  48. package/lib/types/tools/hashline/native/diff-preview.d.ts +37 -0
  49. package/lib/types/tools/hashline/native/index.d.ts +109 -0
  50. package/lib/types/tools/hashline/native/normalize.d.ts +29 -0
  51. package/lib/types/tools/hashline/native/policy.d.ts +98 -0
  52. package/lib/types/tools/hashline/native/writer.d.ts +42 -0
  53. package/lib/types/tools/omp/browser/launch.d.ts +28 -0
  54. package/lib/types/tools/omp/browser/readable.d.ts +17 -0
  55. package/lib/types/tools/omp/config/settings-schema.d.ts +12 -0
  56. package/lib/types/tools/omp/config/settings.d.ts +59 -0
  57. package/lib/types/tools/omp/edit/apply-patch/parser.d.ts +34 -0
  58. package/lib/types/tools/omp/edit/details.d.ts +54 -0
  59. package/lib/types/tools/omp/edit/diff.d.ts +60 -0
  60. package/lib/types/tools/omp/edit/dispatch.d.ts +43 -0
  61. package/lib/types/tools/omp/edit/file-snapshot-store.d.ts +81 -0
  62. package/lib/types/tools/omp/edit/hashline/execute.d.ts +40 -0
  63. package/lib/types/tools/omp/edit/hashline/params.d.ts +6 -0
  64. package/lib/types/tools/omp/edit/modes/apply-patch.d.ts +25 -0
  65. package/lib/types/tools/omp/edit/modes/patch.d.ts +109 -0
  66. package/lib/types/tools/omp/edit/modes/replace.d.ts +151 -0
  67. package/lib/types/tools/omp/edit/normalize.d.ts +31 -0
  68. package/lib/types/tools/omp/edit/notebook.d.ts +50 -0
  69. package/lib/types/tools/omp/edit/read-file.d.ts +2 -0
  70. package/lib/types/tools/omp/edit/snapshot-details.d.ts +33 -0
  71. package/lib/types/tools/omp/extensibility/skills.d.ts +22 -0
  72. package/lib/types/tools/omp/internal-urls/index.d.ts +100 -0
  73. package/lib/types/tools/omp/internal-urls/local-protocol.d.ts +12 -0
  74. package/lib/types/tools/omp/internal-urls/parse.d.ts +31 -0
  75. package/lib/types/tools/omp/internal-urls/types.d.ts +189 -0
  76. package/lib/types/tools/omp/internal-urls/xd-protocol.d.ts +19 -0
  77. package/lib/types/tools/omp/markit/converters/docx.d.ts +6 -0
  78. package/lib/types/tools/omp/markit/converters/epub.d.ts +15 -0
  79. package/lib/types/tools/omp/markit/converters/pdf/index.d.ts +7 -0
  80. package/lib/types/tools/omp/markit/converters/pptx.d.ts +57 -0
  81. package/lib/types/tools/omp/markit/converters/xlsx.d.ts +25 -0
  82. package/lib/types/tools/omp/markit/index.d.ts +2 -0
  83. package/lib/types/tools/omp/markit/registry.d.ts +16 -0
  84. package/lib/types/tools/omp/markit/types.d.ts +30 -0
  85. package/lib/types/tools/omp/sdk.d.ts +103 -0
  86. package/lib/types/tools/omp/session/agent-storage.d.ts +154 -0
  87. package/lib/types/tools/omp/session/streaming-output.d.ts +244 -0
  88. package/lib/types/tools/omp/task/spawn-policy.d.ts +22 -0
  89. package/lib/types/tools/omp/tools/approval.d.ts +62 -0
  90. package/lib/types/tools/omp/tools/ast-edit.d.ts +73 -0
  91. package/lib/types/tools/omp/tools/ast-grep.d.ts +61 -0
  92. package/lib/types/tools/omp/tools/auto-generated-guard.d.ts +20 -0
  93. package/lib/types/tools/omp/tools/conflict-detect.d.ts +237 -0
  94. package/lib/types/tools/omp/tools/fetch.d.ts +103 -0
  95. package/lib/types/tools/omp/tools/file-recorder.d.ts +13 -0
  96. package/lib/types/tools/omp/tools/fs-cache-invalidation.d.ts +15 -0
  97. package/lib/types/tools/omp/tools/glob.d.ts +86 -0
  98. package/lib/types/tools/omp/tools/grep.d.ts +102 -0
  99. package/lib/types/tools/omp/tools/grouped-file-output.d.ts +70 -0
  100. package/lib/types/tools/omp/tools/index.d.ts +23 -0
  101. package/lib/types/tools/omp/tools/list-limit.d.ts +12 -0
  102. package/lib/types/tools/omp/tools/match-line-format.d.ts +11 -0
  103. package/lib/types/tools/omp/tools/output-meta.d.ts +160 -0
  104. package/lib/types/tools/omp/tools/path-utils.d.ts +326 -0
  105. package/lib/types/tools/omp/tools/plan-mode-guard.d.ts +33 -0
  106. package/lib/types/tools/omp/tools/read-archive.d.ts +16 -0
  107. package/lib/types/tools/omp/tools/read-format.d.ts +104 -0
  108. package/lib/types/tools/omp/tools/read-path-resolution.d.ts +19 -0
  109. package/lib/types/tools/omp/tools/read-selector.d.ts +27 -0
  110. package/lib/types/tools/omp/tools/read-sqlite.d.ts +16 -0
  111. package/lib/types/tools/omp/tools/read-summary.d.ts +15 -0
  112. package/lib/types/tools/omp/tools/read.d.ts +70 -0
  113. package/lib/types/tools/omp/tools/render-utils.d.ts +28 -0
  114. package/lib/types/tools/omp/tools/report-tool-issue.d.ts +149 -0
  115. package/lib/types/tools/omp/tools/resolve.d.ts +127 -0
  116. package/lib/types/tools/omp/tools/sqlite-reader.d.ts +114 -0
  117. package/lib/types/tools/omp/tools/tool-errors.d.ts +33 -0
  118. package/lib/types/tools/omp/tools/tool-result.d.ts +33 -0
  119. package/lib/types/tools/omp/tools/tool-timeouts.d.ts +57 -0
  120. package/lib/types/tools/omp/tools/write.d.ts +53 -0
  121. package/lib/types/tools/omp/tools/writethrough.d.ts +24 -0
  122. package/lib/types/tools/omp/utils/block-context.d.ts +35 -0
  123. package/lib/types/tools/omp/utils/cpuprofile.d.ts +51 -0
  124. package/lib/types/tools/omp/utils/edit-mode.d.ts +13 -0
  125. package/lib/types/tools/omp/utils/file-display-mode.d.ts +27 -0
  126. package/lib/types/tools/omp/utils/image-loading.d.ts +51 -0
  127. package/lib/types/tools/omp/utils/image-resize.d.ts +42 -0
  128. package/lib/types/tools/omp/utils/lang-from-path.d.ts +9 -0
  129. package/lib/types/tools/omp/utils/markit-cache.d.ts +23 -0
  130. package/lib/types/tools/omp/utils/markit.d.ts +30 -0
  131. package/lib/types/tools/omp/utils/profile-tree.d.ts +47 -0
  132. package/lib/types/tools/omp/utils/sample-profile.d.ts +67 -0
  133. package/lib/types/tools/omp/utils/sixel.d.ts +21 -0
  134. package/lib/types/tools/omp/utils/tools-manager.d.ts +11 -0
  135. package/lib/types/tools/omp/utils/turndown.d.ts +15 -0
  136. package/lib/types/tools/omp/utils/zip.d.ts +129 -0
  137. package/lib/types/tools/omp/web/browser-render.d.ts +50 -0
  138. package/lib/types/tools/omp/web/parallel.d.ts +68 -0
  139. package/lib/types/tools/omp/web/scrapers/artifacthub.d.ts +6 -0
  140. package/lib/types/tools/omp/web/scrapers/arxiv.d.ts +5 -0
  141. package/lib/types/tools/omp/web/scrapers/aur.d.ts +5 -0
  142. package/lib/types/tools/omp/web/scrapers/biorxiv.d.ts +5 -0
  143. package/lib/types/tools/omp/web/scrapers/bluesky.d.ts +5 -0
  144. package/lib/types/tools/omp/web/scrapers/brew.d.ts +5 -0
  145. package/lib/types/tools/omp/web/scrapers/cheatsh.d.ts +8 -0
  146. package/lib/types/tools/omp/web/scrapers/chocolatey.d.ts +5 -0
  147. package/lib/types/tools/omp/web/scrapers/choosealicense.d.ts +2 -0
  148. package/lib/types/tools/omp/web/scrapers/cisa-kev.d.ts +5 -0
  149. package/lib/types/tools/omp/web/scrapers/clojars.d.ts +5 -0
  150. package/lib/types/tools/omp/web/scrapers/coingecko.d.ts +5 -0
  151. package/lib/types/tools/omp/web/scrapers/crates-io.d.ts +5 -0
  152. package/lib/types/tools/omp/web/scrapers/crossref.d.ts +2 -0
  153. package/lib/types/tools/omp/web/scrapers/devto.d.ts +5 -0
  154. package/lib/types/tools/omp/web/scrapers/discogs.d.ts +8 -0
  155. package/lib/types/tools/omp/web/scrapers/discourse.d.ts +5 -0
  156. package/lib/types/tools/omp/web/scrapers/dockerhub.d.ts +5 -0
  157. package/lib/types/tools/omp/web/scrapers/docs-rs.d.ts +9 -0
  158. package/lib/types/tools/omp/web/scrapers/fdroid.d.ts +5 -0
  159. package/lib/types/tools/omp/web/scrapers/firefox-addons.d.ts +2 -0
  160. package/lib/types/tools/omp/web/scrapers/flathub.d.ts +2 -0
  161. package/lib/types/tools/omp/web/scrapers/github-gist.d.ts +5 -0
  162. package/lib/types/tools/omp/web/scrapers/github.d.ts +34 -0
  163. package/lib/types/tools/omp/web/scrapers/gitlab.d.ts +5 -0
  164. package/lib/types/tools/omp/web/scrapers/go-pkg.d.ts +5 -0
  165. package/lib/types/tools/omp/web/scrapers/hackage.d.ts +5 -0
  166. package/lib/types/tools/omp/web/scrapers/hackernews.d.ts +2 -0
  167. package/lib/types/tools/omp/web/scrapers/hex.d.ts +5 -0
  168. package/lib/types/tools/omp/web/scrapers/huggingface.d.ts +2 -0
  169. package/lib/types/tools/omp/web/scrapers/iacr.d.ts +5 -0
  170. package/lib/types/tools/omp/web/scrapers/index.d.ts +84 -0
  171. package/lib/types/tools/omp/web/scrapers/jetbrains-marketplace.d.ts +2 -0
  172. package/lib/types/tools/omp/web/scrapers/lemmy.d.ts +2 -0
  173. package/lib/types/tools/omp/web/scrapers/lobsters.d.ts +5 -0
  174. package/lib/types/tools/omp/web/scrapers/mastodon.d.ts +5 -0
  175. package/lib/types/tools/omp/web/scrapers/maven.d.ts +6 -0
  176. package/lib/types/tools/omp/web/scrapers/mdn.d.ts +2 -0
  177. package/lib/types/tools/omp/web/scrapers/metacpan.d.ts +5 -0
  178. package/lib/types/tools/omp/web/scrapers/musicbrainz.d.ts +5 -0
  179. package/lib/types/tools/omp/web/scrapers/npm.d.ts +5 -0
  180. package/lib/types/tools/omp/web/scrapers/nuget.d.ts +5 -0
  181. package/lib/types/tools/omp/web/scrapers/nvd.d.ts +5 -0
  182. package/lib/types/tools/omp/web/scrapers/ollama.d.ts +2 -0
  183. package/lib/types/tools/omp/web/scrapers/open-vsx.d.ts +5 -0
  184. package/lib/types/tools/omp/web/scrapers/opencorporates.d.ts +5 -0
  185. package/lib/types/tools/omp/web/scrapers/openlibrary.d.ts +5 -0
  186. package/lib/types/tools/omp/web/scrapers/orcid.d.ts +5 -0
  187. package/lib/types/tools/omp/web/scrapers/osv.d.ts +5 -0
  188. package/lib/types/tools/omp/web/scrapers/packagist.d.ts +5 -0
  189. package/lib/types/tools/omp/web/scrapers/pub-dev.d.ts +5 -0
  190. package/lib/types/tools/omp/web/scrapers/pubmed.d.ts +5 -0
  191. package/lib/types/tools/omp/web/scrapers/pypi.d.ts +5 -0
  192. package/lib/types/tools/omp/web/scrapers/rawg.d.ts +2 -0
  193. package/lib/types/tools/omp/web/scrapers/readthedocs.d.ts +2 -0
  194. package/lib/types/tools/omp/web/scrapers/reddit.d.ts +5 -0
  195. package/lib/types/tools/omp/web/scrapers/repology.d.ts +5 -0
  196. package/lib/types/tools/omp/web/scrapers/rfc.d.ts +5 -0
  197. package/lib/types/tools/omp/web/scrapers/rubygems.d.ts +5 -0
  198. package/lib/types/tools/omp/web/scrapers/searchcode.d.ts +2 -0
  199. package/lib/types/tools/omp/web/scrapers/sec-edgar.d.ts +5 -0
  200. package/lib/types/tools/omp/web/scrapers/semantic-scholar.d.ts +2 -0
  201. package/lib/types/tools/omp/web/scrapers/snapcraft.d.ts +2 -0
  202. package/lib/types/tools/omp/web/scrapers/sourcegraph.d.ts +2 -0
  203. package/lib/types/tools/omp/web/scrapers/spdx.d.ts +5 -0
  204. package/lib/types/tools/omp/web/scrapers/spotify.d.ts +8 -0
  205. package/lib/types/tools/omp/web/scrapers/stackoverflow.d.ts +6 -0
  206. package/lib/types/tools/omp/web/scrapers/terraform.d.ts +5 -0
  207. package/lib/types/tools/omp/web/scrapers/tldr.d.ts +7 -0
  208. package/lib/types/tools/omp/web/scrapers/twitter.d.ts +5 -0
  209. package/lib/types/tools/omp/web/scrapers/types.d.ts +90 -0
  210. package/lib/types/tools/omp/web/scrapers/utils.d.ts +26 -0
  211. package/lib/types/tools/omp/web/scrapers/vimeo.d.ts +5 -0
  212. package/lib/types/tools/omp/web/scrapers/vscode-marketplace.d.ts +5 -0
  213. package/lib/types/tools/omp/web/scrapers/w3c.d.ts +2 -0
  214. package/lib/types/tools/omp/web/scrapers/wikidata.d.ts +5 -0
  215. package/lib/types/tools/omp/web/scrapers/wikipedia.d.ts +5 -0
  216. package/lib/types/tools/omp/web/scrapers/youtube.d.ts +5 -0
  217. package/lib/types/tools/omp/web/search/providers/utils.d.ts +49 -0
  218. package/lib/types/tools/omp/web/search/types.d.ts +501 -0
  219. package/lib/types/tools/omp/web/search/utils.d.ts +4 -0
  220. package/lib/types/tools/omp/workspace-tree.d.ts +42 -0
  221. package/lib/types/tools/read/adapter/index.d.ts +49 -0
  222. package/lib/types/tools/read/adapter/internal-urls/artifact-protocol.d.ts +15 -0
  223. package/lib/types/tools/read/adapter/internal-urls/registry-helpers.d.ts +44 -0
  224. package/lib/types/tools/read/adapter/registry/agent-registry.d.ts +29 -0
  225. package/lib/types/tools/shared/auto-generated-guard.dsh.d.ts +16 -0
  226. package/lib/types/tools/shared/browser-detect.d.ts +54 -0
  227. package/lib/types/tools/shared/browser-rpc-channel.d.ts +40 -0
  228. package/lib/types/tools/shared/bun-ffi-shim.d.ts +13 -0
  229. package/lib/types/tools/shared/bun-named-shim.d.ts +42 -0
  230. package/lib/types/tools/shared/bun-shim.d.ts +138 -0
  231. package/lib/types/tools/shared/bun-sqlite-shim.d.ts +49 -0
  232. package/lib/types/tools/shared/fs-promises-shim.d.ts +15 -0
  233. package/lib/types/tools/shared/image-bridge.d.ts +98 -0
  234. package/lib/types/tools/shared/omp-prompt.d.ts +47 -0
  235. package/lib/types/tools/shared/sandbox-policy.d.ts +38 -0
  236. package/lib/types/tools/shared/session-state.d.ts +51 -0
  237. package/lib/types/tools/shared/tool-errors.d.ts +33 -0
  238. package/lib/types/tools/shared/win-path-fixes.d.ts +16 -0
  239. package/lib/types/tools/write/adapter/index.d.ts +31 -0
  240. package/lib/{utils-CCfhUQen.mjs → utils-ECAwvaPQ.mjs} +1 -1
  241. package/package.json +2 -2
  242. package/presets/package.json +1 -1
  243. package/scripts/patch-pi-natives.mjs +108 -108
@@ -0,0 +1,6 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Artifact Hub URLs via API
4
+ * Supports Helm charts, OLM operators, Falco rules, OPA policies, etc.
5
+ */
6
+ export declare const handleArtifactHub: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle arXiv URLs via arXiv API
4
+ */
5
+ export declare const handleArxiv: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle AUR (Arch User Repository) URLs via RPC API
4
+ */
5
+ export declare const handleAur: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle bioRxiv and medRxiv preprint URLs via their API
4
+ */
5
+ export declare const handleBiorxiv: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Bluesky post URLs
4
+ */
5
+ export declare const handleBluesky: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Homebrew formulae and cask URLs via API
4
+ */
5
+ export declare const handleBrew: SpecialHandler;
@@ -0,0 +1,8 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle cheat.sh / cht.sh URLs for command cheatsheets
4
+ *
5
+ * API: Plain text at https://cheat.sh/{topic}?T (T flag removes ANSI colors)
6
+ * Supports: commands, language/topic queries (e.g., python/list, go/slice)
7
+ */
8
+ export declare const handleCheatSh: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Chocolatey package URLs via NuGet v2 OData API
4
+ */
5
+ export declare const handleChocolatey: SpecialHandler;
@@ -0,0 +1,2 @@
1
+ import type { SpecialHandler } from "./types";
2
+ export declare const handleChooseALicense: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle CISA Known Exploited Vulnerabilities (KEV) URLs
4
+ */
5
+ export declare const handleCisaKev: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Clojars URLs via API
4
+ */
5
+ export declare const handleClojars: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle CoinGecko cryptocurrency URLs via API
4
+ */
5
+ export declare const handleCoinGecko: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle crates.io URLs via API
4
+ */
5
+ export declare const handleCratesIo: SpecialHandler;
@@ -0,0 +1,2 @@
1
+ import type { SpecialHandler } from "./types";
2
+ export declare const handleCrossref: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle dev.to URLs via API
4
+ */
5
+ export declare const handleDevTo: SpecialHandler;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Discogs URL handler for music releases and masters
3
+ *
4
+ * Uses the Discogs API to extract structured metadata about releases.
5
+ * API docs: https://www.discogs.com/developers
6
+ */
7
+ import type { SpecialHandler } from "./types";
8
+ export declare const handleDiscogs: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Discourse forum URLs via API
4
+ */
5
+ export declare const handleDiscourse: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Docker Hub URLs via API
4
+ */
5
+ export declare const handleDockerHub: SpecialHandler;
@@ -0,0 +1,9 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /** Hard ceiling for decompressed rustdoc JSON: a 50 MB compressed payload can
3
+ * expand far enough to block the event loop or OOM without a cap. Exceeding it
4
+ * throws (RangeError), which the fetch path converts to a `null` result. */
5
+ export declare const MAX_RUSTDOC_GUNZIP_BYTES: number;
6
+ /** Decompress a docs.rs rustdoc gzip payload with the output-size cap applied.
7
+ * `maxOutputLength` is overridable only for tests exercising the cap contract. */
8
+ export declare function gunzipRustdocJson(compressed: Buffer, maxOutputLength?: number): string;
9
+ export declare const handleDocsRs: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle F-Droid URLs via API
4
+ */
5
+ export declare const handleFdroid: SpecialHandler;
@@ -0,0 +1,2 @@
1
+ import type { SpecialHandler } from "./types";
2
+ export declare const handleFirefoxAddons: SpecialHandler;
@@ -0,0 +1,2 @@
1
+ import type { SpecialHandler } from "./types";
2
+ export declare const handleFlathub: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle GitHub Gist URLs via GitHub API
4
+ */
5
+ export declare const handleGitHubGist: SpecialHandler;
@@ -0,0 +1,34 @@
1
+ import type { SpecialHandler } from "./types";
2
+ interface GitHubUrl {
3
+ type: "blob" | "tree" | "repo" | "commit" | "issue" | "issues" | "pull" | "pulls" | "discussion" | "discussions" | "actions-run" | "actions-job" | "other";
4
+ owner: string;
5
+ repo: string;
6
+ ref?: string;
7
+ path?: string;
8
+ number?: number;
9
+ runId?: number;
10
+ jobId?: number;
11
+ }
12
+ /**
13
+ * Parse GitHub URL into components
14
+ */
15
+ export declare function parseGitHubUrl(url: string): GitHubUrl | null;
16
+ /**
17
+ * Fetch from GitHub API
18
+ */
19
+ export declare function fetchGitHubApi(endpoint: string, timeout: number, signal?: AbortSignal): Promise<{
20
+ data: unknown;
21
+ ok: boolean;
22
+ }>;
23
+ /**
24
+ * Strip the per-line ISO-8601 timestamp prefix GitHub prepends to every job log line.
25
+ * Cuts ~28 bytes/line of noise while preserving the message text. Also drops the leading
26
+ * UTF-8 BOM GitHub puts at the start of the log file (otherwise the first line's timestamp
27
+ * survives because `^` no longer sits before a digit).
28
+ */
29
+ export declare function stripActionsLogTimestamps(logs: string): string;
30
+ /**
31
+ * Handle GitHub URLs specially
32
+ */
33
+ export declare const handleGitHub: SpecialHandler;
34
+ export {};
@@ -0,0 +1,5 @@
1
+ import { type SpecialHandler } from "./types";
2
+ /**
3
+ * Handle GitLab URLs specially
4
+ */
5
+ export declare const handleGitLab: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle pkg.go.dev URLs via proxy API and page parsing
4
+ */
5
+ export declare const handleGoPkg: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Hackage (Haskell package registry) URLs via JSON API
4
+ */
5
+ export declare const handleHackage: SpecialHandler;
@@ -0,0 +1,2 @@
1
+ import type { SpecialHandler } from "./types";
2
+ export declare const handleHackerNews: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Hex.pm (Elixir package registry) URLs via API
4
+ */
5
+ export declare const handleHex: SpecialHandler;
@@ -0,0 +1,2 @@
1
+ import type { SpecialHandler } from "./types";
2
+ export declare const handleHuggingFace: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle IACR ePrint Archive URLs
4
+ */
5
+ export declare const handleIacr: SpecialHandler;
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Web Fetch Special Handlers Index
3
+ *
4
+ * Exports all special handlers for site-specific content extraction.
5
+ */
6
+ import { handleArtifactHub } from "./artifacthub";
7
+ import { handleArxiv } from "./arxiv";
8
+ import { handleAur } from "./aur";
9
+ import { handleBiorxiv } from "./biorxiv";
10
+ import { handleBluesky } from "./bluesky";
11
+ import { handleBrew } from "./brew";
12
+ import { handleCheatSh } from "./cheatsh";
13
+ import { handleChocolatey } from "./chocolatey";
14
+ import { handleChooseALicense } from "./choosealicense";
15
+ import { handleCisaKev } from "./cisa-kev";
16
+ import { handleClojars } from "./clojars";
17
+ import { handleCoinGecko } from "./coingecko";
18
+ import { handleCratesIo } from "./crates-io";
19
+ import { handleCrossref } from "./crossref";
20
+ import { handleDevTo } from "./devto";
21
+ import { handleDiscogs } from "./discogs";
22
+ import { handleDiscourse } from "./discourse";
23
+ import { handleDockerHub } from "./dockerhub";
24
+ import { handleDocsRs } from "./docs-rs";
25
+ import { handleFdroid } from "./fdroid";
26
+ import { handleFirefoxAddons } from "./firefox-addons";
27
+ import { handleFlathub } from "./flathub";
28
+ import { fetchGitHubApi, handleGitHub } from "./github";
29
+ import { handleGitHubGist } from "./github-gist";
30
+ import { handleGitLab } from "./gitlab";
31
+ import { handleGoPkg } from "./go-pkg";
32
+ import { handleHackage } from "./hackage";
33
+ import { handleHackerNews } from "./hackernews";
34
+ import { handleHex } from "./hex";
35
+ import { handleHuggingFace } from "./huggingface";
36
+ import { handleIacr } from "./iacr";
37
+ import { handleJetBrainsMarketplace } from "./jetbrains-marketplace";
38
+ import { handleLemmy } from "./lemmy";
39
+ import { handleLobsters } from "./lobsters";
40
+ import { handleMastodon } from "./mastodon";
41
+ import { handleMaven } from "./maven";
42
+ import { handleMDN } from "./mdn";
43
+ import { handleMetaCPAN } from "./metacpan";
44
+ import { handleMusicBrainz } from "./musicbrainz";
45
+ import { handleNpm } from "./npm";
46
+ import { handleNuGet } from "./nuget";
47
+ import { handleNvd } from "./nvd";
48
+ import { handleOllama } from "./ollama";
49
+ import { handleOpenVsx } from "./open-vsx";
50
+ import { handleOpenCorporates } from "./opencorporates";
51
+ import { handleOpenLibrary } from "./openlibrary";
52
+ import { handleOrcid } from "./orcid";
53
+ import { handleOsv } from "./osv";
54
+ import { handlePackagist } from "./packagist";
55
+ import { handlePubDev } from "./pub-dev";
56
+ import { handlePubMed } from "./pubmed";
57
+ import { handlePyPI } from "./pypi";
58
+ import { handleRawg } from "./rawg";
59
+ import { handleReadTheDocs } from "./readthedocs";
60
+ import { handleReddit } from "./reddit";
61
+ import { handleRepology } from "./repology";
62
+ import { handleRfc } from "./rfc";
63
+ import { handleRubyGems } from "./rubygems";
64
+ import { handleSearchcode } from "./searchcode";
65
+ import { handleSecEdgar } from "./sec-edgar";
66
+ import { handleSemanticScholar } from "./semantic-scholar";
67
+ import { handleSnapcraft } from "./snapcraft";
68
+ import { handleSourcegraph } from "./sourcegraph";
69
+ import { handleSpdx } from "./spdx";
70
+ import { handleSpotify } from "./spotify";
71
+ import { handleStackOverflow } from "./stackoverflow";
72
+ import { handleTerraform } from "./terraform";
73
+ import { handleTldr } from "./tldr";
74
+ import { handleTwitter } from "./twitter";
75
+ import type { SpecialHandler } from "./types";
76
+ import { handleVimeo } from "./vimeo";
77
+ import { handleVscodeMarketplace } from "./vscode-marketplace";
78
+ import { handleW3c } from "./w3c";
79
+ import { handleWikidata } from "./wikidata";
80
+ import { handleWikipedia } from "./wikipedia";
81
+ import { handleYouTube } from "./youtube";
82
+ export type { RenderResult, SpecialHandler } from "./types";
83
+ export { fetchGitHubApi, handleArtifactHub, handleArxiv, handleAur, handleBiorxiv, handleBluesky, handleBrew, handleCheatSh, handleChocolatey, handleChooseALicense, handleCisaKev, handleClojars, handleCoinGecko, handleCratesIo, handleCrossref, handleDevTo, handleDiscogs, handleDiscourse, handleDockerHub, handleDocsRs, handleFdroid, handleFirefoxAddons, handleFlathub, handleGitHub, handleGitHubGist, handleGitLab, handleGoPkg, handleHackage, handleHackerNews, handleHex, handleHuggingFace, handleIacr, handleJetBrainsMarketplace, handleLemmy, handleLobsters, handleMastodon, handleMaven, handleMDN, handleMetaCPAN, handleMusicBrainz, handleNpm, handleNuGet, handleNvd, handleOllama, handleOpenCorporates, handleOpenLibrary, handleOpenVsx, handleOrcid, handleOsv, handlePackagist, handlePubDev, handlePubMed, handlePyPI, handleRawg, handleReadTheDocs, handleReddit, handleRepology, handleRfc, handleRubyGems, handleSearchcode, handleSecEdgar, handleSemanticScholar, handleSnapcraft, handleSourcegraph, handleSpdx, handleSpotify, handleStackOverflow, handleTerraform, handleTldr, handleTwitter, handleVimeo, handleVscodeMarketplace, handleW3c, handleWikidata, handleWikipedia, handleYouTube, };
84
+ export declare const specialHandlers: SpecialHandler[];
@@ -0,0 +1,2 @@
1
+ import type { SpecialHandler } from "./types";
2
+ export declare const handleJetBrainsMarketplace: SpecialHandler;
@@ -0,0 +1,2 @@
1
+ import type { SpecialHandler } from "./types";
2
+ export declare const handleLemmy: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Lobste.rs URLs via JSON API
4
+ */
5
+ export declare const handleLobsters: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Mastodon/Fediverse URLs
4
+ */
5
+ export declare const handleMastodon: SpecialHandler;
@@ -0,0 +1,6 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Maven Central URLs via Solr API
4
+ * Supports: search.maven.org/artifact/... and mvnrepository.com/artifact/...
5
+ */
6
+ export declare const handleMaven: SpecialHandler;
@@ -0,0 +1,2 @@
1
+ import type { SpecialHandler } from "./types";
2
+ export declare const handleMDN: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle MetaCPAN URLs via fastapi.metacpan.org
4
+ */
5
+ export declare const handleMetaCPAN: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * MusicBrainz URL handler for artists, releases, and recordings
3
+ */
4
+ import type { SpecialHandler } from "./types";
5
+ export declare const handleMusicBrainz: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle npm URLs via registry API
4
+ */
5
+ export declare const handleNpm: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle NuGet URLs via API
4
+ */
5
+ export declare const handleNuGet: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle NVD (National Vulnerability Database) CVE URLs
4
+ */
5
+ export declare const handleNvd: SpecialHandler;
@@ -0,0 +1,2 @@
1
+ import type { SpecialHandler } from "./types";
2
+ export declare const handleOllama: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Open VSX URLs via their API
4
+ */
5
+ export declare const handleOpenVsx: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle OpenCorporates URLs via API
4
+ */
5
+ export declare const handleOpenCorporates: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Open Library URLs via their API
4
+ */
5
+ export declare const handleOpenLibrary: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * ORCID handler for web-fetch
3
+ */
4
+ import type { SpecialHandler } from "./types";
5
+ export declare const handleOrcid: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle OSV (Open Source Vulnerabilities) URLs
4
+ */
5
+ export declare const handleOsv: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Packagist URLs via JSON API
4
+ */
5
+ export declare const handlePackagist: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import { type SpecialHandler } from "./types";
2
+ /**
3
+ * Handle pub.dev URLs via API
4
+ */
5
+ export declare const handlePubDev: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import { type SpecialHandler } from "./types";
2
+ /**
3
+ * Handle PubMed URLs - fetch article metadata, abstract, MeSH terms
4
+ */
5
+ export declare const handlePubMed: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import { type SpecialHandler } from "./types";
2
+ /**
3
+ * Handle PyPI URLs via JSON API
4
+ */
5
+ export declare const handlePyPI: SpecialHandler;
@@ -0,0 +1,2 @@
1
+ import { type SpecialHandler } from "./types";
2
+ export declare const handleRawg: SpecialHandler;
@@ -0,0 +1,2 @@
1
+ import { type SpecialHandler } from "./types";
2
+ export declare const handleReadTheDocs: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import { type SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Reddit URLs via JSON API
4
+ */
5
+ export declare const handleReddit: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import { type SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Repology URLs via API
4
+ */
5
+ export declare const handleRepology: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import { type SpecialHandler } from "./types";
2
+ /**
3
+ * Handle RFC Editor URLs - fetches IETF RFCs
4
+ */
5
+ export declare const handleRfc: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import { type SpecialHandler } from "./types";
2
+ /**
3
+ * Handle RubyGems URLs via API
4
+ */
5
+ export declare const handleRubyGems: SpecialHandler;
@@ -0,0 +1,2 @@
1
+ import type { SpecialHandler } from "./types";
2
+ export declare const handleSearchcode: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle SEC EDGAR URLs via data.sec.gov API
4
+ */
5
+ export declare const handleSecEdgar: SpecialHandler;
@@ -0,0 +1,2 @@
1
+ import type { SpecialHandler } from "./types";
2
+ export declare const handleSemanticScholar: SpecialHandler;
@@ -0,0 +1,2 @@
1
+ import type { SpecialHandler } from "./types";
2
+ export declare const handleSnapcraft: SpecialHandler;
@@ -0,0 +1,2 @@
1
+ import type { SpecialHandler } from "./types";
2
+ export declare const handleSourcegraph: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle SPDX license URLs via SPDX JSON API
4
+ */
5
+ export declare const handleSpdx: SpecialHandler;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Spotify URL handler for podcasts, tracks, albums, and playlists
3
+ *
4
+ * Uses oEmbed API and Open Graph metadata to extract information
5
+ * from Spotify URLs without requiring authentication.
6
+ */
7
+ import type { SpecialHandler } from "./types";
8
+ export declare const handleSpotify: SpecialHandler;
@@ -0,0 +1,6 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Stack Exchange network URLs via API
4
+ * Supports stackoverflow.com, *.stackexchange.com, superuser.com, serverfault.com, askubuntu.com, etc.
5
+ */
6
+ export declare const handleStackOverflow: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Terraform Registry URLs via API
4
+ */
5
+ export declare const handleTerraform: SpecialHandler;
@@ -0,0 +1,7 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle tldr page URLs
4
+ * - https://tldr.sh/{command}
5
+ * - https://tldr.ostera.io/{command}
6
+ */
7
+ export declare const handleTldr: SpecialHandler;
@@ -0,0 +1,5 @@
1
+ import type { SpecialHandler } from "./types";
2
+ /**
3
+ * Handle Twitter/X URLs via Nitter
4
+ */
5
+ export declare const handleTwitter: SpecialHandler;