@xiaoso/dsh-tool-plus 0.1.6 → 0.1.7-beta.1
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.
- package/THIRD_PARTY_NOTICES.md +9 -3
- package/lib/{abort-Cwwm4Err.mjs → abort-Caqff3M6.mjs} +2 -2
- package/lib/alibaba-coding-plan-DTupMiAi.mjs +73 -0
- package/lib/alibaba-token-plan-CHGyWOfX.mjs +46 -0
- package/lib/alibaba-token-plan-Dj3OZhEE.mjs +82 -0
- package/lib/{amazon-bedrock-TVMpUTRG.mjs → amazon-bedrock-DbFSYXfJ.mjs} +117 -38
- package/lib/{anthropic-BL6LFDQS.mjs → anthropic-CTJ3IQVa.mjs} +675 -166
- package/lib/anthropic-CXfWlp-x.mjs +105 -0
- package/lib/{aws-credentials-B20dliS7.mjs → anthropic-wire-CKuhDwZ1.mjs} +74 -14
- package/lib/{api-key-login-CIDnXeYd.mjs → api-key-validation-CGCJFbFr.mjs} +27 -68
- package/lib/{azure-openai-responses-BkhsLmN3.mjs → azure-openai-responses-ChFbWaGj.mjs} +27 -16
- package/lib/{browser-render-CmgvSNte.mjs → browser-render-9o0Rknop.mjs} +4 -4
- package/lib/bun-shim.mjs +71 -2
- package/lib/{bundled-references-ChZSPDFw.mjs → bundled-references-DY3EJxZV.mjs} +6 -5
- package/lib/cline-pass-Bwg3esu9.mjs +44 -0
- package/lib/cloudflare-ai-gateway-BupNXyKK.mjs +35 -0
- package/lib/cloudflare-ai-gateway-EWo0VkP5.mjs +44 -0
- package/lib/collapse-DOR8sOGf.mjs +2304 -0
- package/lib/coreweave-C82HrLpb.mjs +31 -0
- package/lib/coreweave-Ct8cF-da.mjs +14 -0
- package/lib/{cursor-B6HcmplF.mjs → cursor-B95LzVWV.mjs} +11 -3
- package/lib/{cursor-CRpLpaZ3.mjs → cursor-DJV_dcgB.mjs} +887 -1784
- package/lib/{cursor-B8m6SqAH.mjs → cursor-LKGjucn2.mjs} +48 -38
- package/lib/cursor-proto-B8Wj8bv9.mjs +10513 -0
- package/lib/{deterministic-id-D-yIV_eI.mjs → deterministic-id-CUEIMSqR.mjs} +1 -1
- package/lib/devin-BMTdx_hx.mjs +316 -0
- package/lib/{devin-DUAfvBsW.mjs → devin-DSp0Rw_E.mjs} +172 -86
- package/lib/devin-ExGIghmx.mjs +69 -0
- package/lib/devin-proto-Br8fdyNl.mjs +2888 -0
- package/lib/{dom-CawWi8fa.mjs → dom-DG3sPESc.mjs} +8 -8
- package/lib/effort-BdtQMN-_.mjs +23 -0
- package/lib/{error-C-f_Wnw4.mjs → error-CORgGg5a.mjs} +275 -154
- package/lib/{event-stream-Dh2guZxS.mjs → event-stream-ulcDenZD.mjs} +20 -4
- package/lib/{gemini-headers-DKUShltF.mjs → gemini-headers-Co9cVvex.mjs} +2 -2
- package/lib/{github-copilot-suDymKrx.mjs → github-copilot-Dstq1D3s.mjs} +69 -29
- package/lib/github-copilot-headers-DOh1gt_w.mjs +312 -0
- package/lib/gitlab-duo-DSCMrU0m.mjs +11 -0
- package/lib/google-CtsKkOQK.mjs +38 -0
- package/lib/google-antigravity-z-5KsEci.mjs +252 -0
- package/lib/{google-auth-DYJLM792.mjs → google-auth-ieLBaneO.mjs} +4 -4
- package/lib/{google-gemini-cli-8BT513Ul.mjs → google-gemini-cli-C6NE5mWz.mjs} +28 -54
- package/lib/{google-gemini-cli-D6cSmfvB.mjs → google-gemini-cli-CAIPSl7e.mjs} +23 -29
- package/lib/google-oauth-shared-DhMllAkt.mjs +53 -0
- package/lib/{google-shared-CVbHK5vZ.mjs → google-shared-B0aNCYEH.mjs} +140 -44
- package/lib/{google-validation-Cgbn3tWJ.mjs → google-validation-BEkNs-Bx.mjs} +1 -1
- package/lib/{google-vertex-Bui-ypAe.mjs → google-vertex-Bbd1tYNc.mjs} +8 -8
- package/lib/hosts-00rjRzUD.mjs +203 -0
- package/lib/id-AL5obQzR.mjs +71 -0
- package/lib/{idle-iterator-CYAxUkSD.mjs → idle-iterator-DlUkEfzW.mjs} +3 -3
- package/lib/index.mjs +598 -5275
- package/lib/kilo-ChJL54wq.mjs +81 -0
- package/lib/kimi-C2c_Zq8A.mjs +67 -0
- package/lib/{launch-BmgEUycu.mjs → launch-DKDH71En.mjs} +1 -1
- package/lib/markit-CmRfm4E2.mjs +9885 -0
- package/lib/models-DnXMYGcJ.mjs +381604 -0
- package/lib/muse-code-Di1VZmB1.mjs +143 -0
- package/lib/{ollama-Df9ce-Cp.mjs → ollama-B8ic3sEp.mjs} +15 -30
- package/lib/{openai-codex-CAVI3Me-.mjs → openai-codex-DuJNC99x.mjs} +29 -99
- package/lib/{openai-codex-responses-BcnOotRB.mjs → openai-codex-responses-BL29nh9K.mjs} +204 -116
- package/lib/{openai-completions-Bq4WT47M.mjs → openai-completions-BK2f2dBv.mjs} +152 -82
- package/lib/openai-configuration-update-xMYUjaK_.mjs +150 -0
- package/lib/{openai-reasoning-fallback-DXsfiSXO.mjs → openai-reasoning-fallback-BdB3RCbj.mjs} +106 -12
- package/lib/{openai-responses-Mq_-PjvE.mjs → openai-responses-CGQPlIIy.mjs} +76 -82
- package/lib/{perplexity-XgLF73E7.mjs → perplexity-TBjz3VMB.mjs} +52 -9
- package/lib/{pkce-BlQikGPu.mjs → pkce-BYjmugmw.mjs} +1 -1
- package/lib/protobuf-aab1UGVn.mjs +717 -0
- package/lib/{provider-response-C6vcbQyO.mjs → provider-response-SqKSkkUc.mjs} +1 -1
- package/lib/{proxy-D9lm7ONA.mjs → proxy-5nWqRL1f.mjs} +45 -5
- package/lib/{readability-Cpm-ocau.mjs → readability-uGhqb4GC.mjs} +2 -2
- package/lib/reference-CtvM4zLU.mjs +114 -0
- package/lib/{request-debug-HJMoJncL.mjs → request-debug-NQN0BjHH.mjs} +1 -1
- package/lib/{sanitize-text-CfcXzw5X.mjs → sanitize-text-BCf5KmCf.mjs} +1 -1
- package/lib/{scrapers-Cg5w77td.mjs → scrapers-BpqEnqNM.mjs} +12 -12
- package/lib/{src-BcD0_rQR.mjs → src-BwW51vA5.mjs} +979 -388
- package/lib/{sse-debug-CYdjOC96.mjs → sse-debug-B-tkLCPW.mjs} +1 -1
- package/lib/{stream-Bjq8wjfr.mjs → stream-B_7qN-bA.mjs} +3802 -2623
- package/lib/stream-markup-healing-DKT1lnkW.mjs +267 -0
- package/lib/{strict-tool-validation-imVLUcbI.mjs → strict-tool-validation-CBTz1dAA.mjs} +2 -2
- package/lib/taxonomy-DSIM99rS.mjs +15392 -0
- package/lib/{stream-markup-healing-DZ6bVDxH.mjs → thinking-CiLa2LFB.mjs} +31 -186
- package/lib/{turndown-DN7ByzEI.mjs → turndown-DrX1M4WG.mjs} +4 -4
- package/lib/{type-guards-B9VVjRDK.mjs → type-guards-CttAANEx.mjs} +1 -1
- package/lib/types/client/BashPlusCard.d.ts +53 -0
- package/lib/types/client/ToolPlusSection.d.ts +36 -0
- package/lib/types/client/forms.d.ts +42 -0
- package/lib/types/client/index.d.ts +29 -0
- package/lib/types/client/locales.d.ts +19 -0
- package/lib/types/client/rm-safe-status-text.d.ts +15 -0
- package/lib/types/client/rows.d.ts +107 -0
- package/lib/types/client/web-connection-rpc.d.ts +22 -0
- package/lib/types/config/fields.d.ts +85 -0
- package/lib/types/config/omp-settings.d.ts +21 -0
- package/lib/types/config/settings.d.ts +212 -0
- package/lib/types/config/truncate.d.ts +27 -0
- package/lib/types/host/browser-probe-rpc.d.ts +29 -0
- package/lib/types/index.d.ts +6 -0
- package/lib/types/tools/ast-edit/adapter/index.d.ts +26 -0
- package/lib/types/tools/ast-edit/adapter/sdk.d.ts +49 -0
- package/lib/types/tools/ast-grep/adapter/index.d.ts +31 -0
- package/lib/types/tools/ast-grep/adapter/sdk.d.ts +44 -0
- package/lib/types/tools/bash/adapter/spill.d.ts +34 -0
- package/lib/types/tools/bash/background.d.ts +40 -0
- package/lib/types/tools/bash/bash-executor.d.ts +102 -0
- package/lib/types/tools/bash/bash-interceptor.d.ts +33 -0
- package/lib/types/tools/bash/cd-workdir.d.ts +35 -0
- package/lib/types/tools/bash/logger.d.ts +18 -0
- package/lib/types/tools/bash/non-interactive-env.d.ts +5 -0
- package/lib/types/tools/bash/render.d.ts +46 -0
- package/lib/types/tools/bash/rm-safe-status.d.ts +62 -0
- package/lib/types/tools/bash/rm-safe.d.ts +18 -0
- package/lib/types/tools/bash/sanitize-text.d.ts +34 -0
- package/lib/types/tools/bash/shell-snapshot.d.ts +31 -0
- package/lib/types/tools/bash/shell-tokenize.d.ts +60 -0
- package/lib/types/tools/bash/streaming-output.d.ts +32 -0
- package/lib/types/tools/bash/trash-cli-main.d.ts +1 -0
- package/lib/types/tools/bash/trash-cli.d.ts +77 -0
- package/lib/types/tools/bash/types.d.ts +107 -0
- package/lib/types/tools/bash/which.d.ts +20 -0
- package/lib/types/tools/bash/windows-shell.d.ts +31 -0
- package/lib/types/tools/bash/yield.d.ts +71 -0
- package/lib/types/tools/edit/adapter/index.d.ts +57 -0
- package/lib/types/tools/edit/adapter/tools/auto-generated-guard.d.ts +10 -0
- package/lib/types/tools/edit/adapter/tools/output-meta.d.ts +34 -0
- package/lib/types/tools/edit/adapter/tools/plan-mode-guard.d.ts +21 -0
- package/lib/types/tools/glob/adapter/index.d.ts +52 -0
- package/lib/types/tools/grep/adapter/index.d.ts +53 -0
- package/lib/types/tools/grep/adapter/match-path.d.ts +1 -0
- package/lib/types/tools/hashline/native/diff-preview.d.ts +37 -0
- package/lib/types/tools/hashline/native/index.d.ts +109 -0
- package/lib/types/tools/hashline/native/normalize.d.ts +29 -0
- package/lib/types/tools/hashline/native/policy.d.ts +98 -0
- package/lib/types/tools/hashline/native/writer.d.ts +42 -0
- package/lib/types/tools/omp/browser/launch.d.ts +28 -0
- package/lib/types/tools/omp/browser/readable.d.ts +17 -0
- package/lib/types/tools/omp/config/settings-schema.d.ts +12 -0
- package/lib/types/tools/omp/config/settings.d.ts +59 -0
- package/lib/types/tools/omp/edit/apply-patch/parser.d.ts +34 -0
- package/lib/types/tools/omp/edit/details.d.ts +54 -0
- package/lib/types/tools/omp/edit/diff.d.ts +60 -0
- package/lib/types/tools/omp/edit/dispatch.d.ts +43 -0
- package/lib/types/tools/omp/edit/file-snapshot-store.d.ts +81 -0
- package/lib/types/tools/omp/edit/hashline/execute.d.ts +40 -0
- package/lib/types/tools/omp/edit/hashline/params.d.ts +6 -0
- package/lib/types/tools/omp/edit/modes/apply-patch.d.ts +25 -0
- package/lib/types/tools/omp/edit/modes/patch.d.ts +109 -0
- package/lib/types/tools/omp/edit/modes/replace.d.ts +151 -0
- package/lib/types/tools/omp/edit/normalize.d.ts +31 -0
- package/lib/types/tools/omp/edit/notebook.d.ts +50 -0
- package/lib/types/tools/omp/edit/read-file.d.ts +2 -0
- package/lib/types/tools/omp/edit/snapshot-details.d.ts +33 -0
- package/lib/types/tools/omp/extensibility/skills.d.ts +22 -0
- package/lib/types/tools/omp/internal-urls/index.d.ts +100 -0
- package/lib/types/tools/omp/internal-urls/local-protocol.d.ts +12 -0
- package/lib/types/tools/omp/internal-urls/parse.d.ts +31 -0
- package/lib/types/tools/omp/internal-urls/types.d.ts +189 -0
- package/lib/types/tools/omp/internal-urls/xd-protocol.d.ts +19 -0
- package/lib/types/tools/omp/markit/converters/docx.d.ts +6 -0
- package/lib/types/tools/omp/markit/converters/epub.d.ts +15 -0
- package/lib/types/tools/omp/markit/converters/pdf/index.d.ts +7 -0
- package/lib/types/tools/omp/markit/converters/pptx.d.ts +57 -0
- package/lib/types/tools/omp/markit/converters/xlsx.d.ts +25 -0
- package/lib/types/tools/omp/markit/index.d.ts +2 -0
- package/lib/types/tools/omp/markit/registry.d.ts +16 -0
- package/lib/types/tools/omp/markit/types.d.ts +30 -0
- package/lib/types/tools/omp/sdk.d.ts +103 -0
- package/lib/types/tools/omp/session/agent-storage.d.ts +154 -0
- package/lib/types/tools/omp/session/streaming-output.d.ts +244 -0
- package/lib/types/tools/omp/task/spawn-policy.d.ts +22 -0
- package/lib/types/tools/omp/tools/approval.d.ts +62 -0
- package/lib/types/tools/omp/tools/ast-edit.d.ts +73 -0
- package/lib/types/tools/omp/tools/ast-grep.d.ts +61 -0
- package/lib/types/tools/omp/tools/auto-generated-guard.d.ts +20 -0
- package/lib/types/tools/omp/tools/conflict-detect.d.ts +237 -0
- package/lib/types/tools/omp/tools/fetch.d.ts +103 -0
- package/lib/types/tools/omp/tools/file-recorder.d.ts +13 -0
- package/lib/types/tools/omp/tools/fs-cache-invalidation.d.ts +15 -0
- package/lib/types/tools/omp/tools/glob.d.ts +86 -0
- package/lib/types/tools/omp/tools/grep.d.ts +102 -0
- package/lib/types/tools/omp/tools/grouped-file-output.d.ts +70 -0
- package/lib/types/tools/omp/tools/index.d.ts +23 -0
- package/lib/types/tools/omp/tools/list-limit.d.ts +12 -0
- package/lib/types/tools/omp/tools/match-line-format.d.ts +11 -0
- package/lib/types/tools/omp/tools/output-meta.d.ts +160 -0
- package/lib/types/tools/omp/tools/path-utils.d.ts +326 -0
- package/lib/types/tools/omp/tools/plan-mode-guard.d.ts +33 -0
- package/lib/types/tools/omp/tools/read-archive.d.ts +16 -0
- package/lib/types/tools/omp/tools/read-format.d.ts +104 -0
- package/lib/types/tools/omp/tools/read-path-resolution.d.ts +19 -0
- package/lib/types/tools/omp/tools/read-selector.d.ts +27 -0
- package/lib/types/tools/omp/tools/read-sqlite.d.ts +16 -0
- package/lib/types/tools/omp/tools/read-summary.d.ts +15 -0
- package/lib/types/tools/omp/tools/read.d.ts +70 -0
- package/lib/types/tools/omp/tools/render-utils.d.ts +28 -0
- package/lib/types/tools/omp/tools/report-tool-issue.d.ts +149 -0
- package/lib/types/tools/omp/tools/resolve.d.ts +127 -0
- package/lib/types/tools/omp/tools/sqlite-reader.d.ts +114 -0
- package/lib/types/tools/omp/tools/tool-errors.d.ts +33 -0
- package/lib/types/tools/omp/tools/tool-result.d.ts +33 -0
- package/lib/types/tools/omp/tools/tool-timeouts.d.ts +57 -0
- package/lib/types/tools/omp/tools/write.d.ts +53 -0
- package/lib/types/tools/omp/tools/writethrough.d.ts +24 -0
- package/lib/types/tools/omp/utils/block-context.d.ts +35 -0
- package/lib/types/tools/omp/utils/cpuprofile.d.ts +51 -0
- package/lib/types/tools/omp/utils/edit-mode.d.ts +13 -0
- package/lib/types/tools/omp/utils/file-display-mode.d.ts +27 -0
- package/lib/types/tools/omp/utils/image-loading.d.ts +51 -0
- package/lib/types/tools/omp/utils/image-resize.d.ts +42 -0
- package/lib/types/tools/omp/utils/lang-from-path.d.ts +9 -0
- package/lib/types/tools/omp/utils/markit-cache.d.ts +23 -0
- package/lib/types/tools/omp/utils/markit.d.ts +30 -0
- package/lib/types/tools/omp/utils/profile-tree.d.ts +47 -0
- package/lib/types/tools/omp/utils/sample-profile.d.ts +67 -0
- package/lib/types/tools/omp/utils/sixel.d.ts +21 -0
- package/lib/types/tools/omp/utils/tools-manager.d.ts +11 -0
- package/lib/types/tools/omp/utils/turndown.d.ts +15 -0
- package/lib/types/tools/omp/utils/zip.d.ts +129 -0
- package/lib/types/tools/omp/web/browser-render.d.ts +50 -0
- package/lib/types/tools/omp/web/parallel.d.ts +68 -0
- package/lib/types/tools/omp/web/scrapers/artifacthub.d.ts +6 -0
- package/lib/types/tools/omp/web/scrapers/arxiv.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/aur.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/biorxiv.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/bluesky.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/brew.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/cheatsh.d.ts +8 -0
- package/lib/types/tools/omp/web/scrapers/chocolatey.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/choosealicense.d.ts +2 -0
- package/lib/types/tools/omp/web/scrapers/cisa-kev.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/clojars.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/coingecko.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/crates-io.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/crossref.d.ts +2 -0
- package/lib/types/tools/omp/web/scrapers/devto.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/discogs.d.ts +8 -0
- package/lib/types/tools/omp/web/scrapers/discourse.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/dockerhub.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/docs-rs.d.ts +9 -0
- package/lib/types/tools/omp/web/scrapers/fdroid.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/firefox-addons.d.ts +2 -0
- package/lib/types/tools/omp/web/scrapers/flathub.d.ts +2 -0
- package/lib/types/tools/omp/web/scrapers/github-gist.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/github.d.ts +34 -0
- package/lib/types/tools/omp/web/scrapers/gitlab.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/go-pkg.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/hackage.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/hackernews.d.ts +2 -0
- package/lib/types/tools/omp/web/scrapers/hex.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/huggingface.d.ts +2 -0
- package/lib/types/tools/omp/web/scrapers/iacr.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/index.d.ts +84 -0
- package/lib/types/tools/omp/web/scrapers/jetbrains-marketplace.d.ts +2 -0
- package/lib/types/tools/omp/web/scrapers/lemmy.d.ts +2 -0
- package/lib/types/tools/omp/web/scrapers/lobsters.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/mastodon.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/maven.d.ts +6 -0
- package/lib/types/tools/omp/web/scrapers/mdn.d.ts +2 -0
- package/lib/types/tools/omp/web/scrapers/metacpan.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/musicbrainz.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/npm.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/nuget.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/nvd.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/ollama.d.ts +2 -0
- package/lib/types/tools/omp/web/scrapers/open-vsx.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/opencorporates.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/openlibrary.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/orcid.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/osv.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/packagist.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/pub-dev.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/pubmed.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/pypi.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/rawg.d.ts +2 -0
- package/lib/types/tools/omp/web/scrapers/readthedocs.d.ts +2 -0
- package/lib/types/tools/omp/web/scrapers/reddit.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/repology.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/rfc.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/rubygems.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/searchcode.d.ts +2 -0
- package/lib/types/tools/omp/web/scrapers/sec-edgar.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/semantic-scholar.d.ts +2 -0
- package/lib/types/tools/omp/web/scrapers/snapcraft.d.ts +2 -0
- package/lib/types/tools/omp/web/scrapers/sourcegraph.d.ts +2 -0
- package/lib/types/tools/omp/web/scrapers/spdx.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/spotify.d.ts +8 -0
- package/lib/types/tools/omp/web/scrapers/stackoverflow.d.ts +6 -0
- package/lib/types/tools/omp/web/scrapers/terraform.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/tldr.d.ts +7 -0
- package/lib/types/tools/omp/web/scrapers/twitter.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/types.d.ts +90 -0
- package/lib/types/tools/omp/web/scrapers/utils.d.ts +26 -0
- package/lib/types/tools/omp/web/scrapers/vimeo.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/vscode-marketplace.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/w3c.d.ts +2 -0
- package/lib/types/tools/omp/web/scrapers/wikidata.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/wikipedia.d.ts +5 -0
- package/lib/types/tools/omp/web/scrapers/youtube.d.ts +5 -0
- package/lib/types/tools/omp/web/search/providers/utils.d.ts +49 -0
- package/lib/types/tools/omp/web/search/types.d.ts +501 -0
- package/lib/types/tools/omp/web/search/utils.d.ts +4 -0
- package/lib/types/tools/omp/workspace-tree.d.ts +42 -0
- package/lib/types/tools/read/adapter/index.d.ts +49 -0
- package/lib/types/tools/read/adapter/internal-urls/artifact-protocol.d.ts +15 -0
- package/lib/types/tools/read/adapter/internal-urls/registry-helpers.d.ts +44 -0
- package/lib/types/tools/read/adapter/registry/agent-registry.d.ts +29 -0
- package/lib/types/tools/shared/auto-generated-guard.dsh.d.ts +16 -0
- package/lib/types/tools/shared/browser-detect.d.ts +54 -0
- package/lib/types/tools/shared/browser-rpc-channel.d.ts +40 -0
- package/lib/types/tools/shared/bun-ffi-shim.d.ts +13 -0
- package/lib/types/tools/shared/bun-named-shim.d.ts +42 -0
- package/lib/types/tools/shared/bun-shim.d.ts +138 -0
- package/lib/types/tools/shared/bun-sqlite-shim.d.ts +49 -0
- package/lib/types/tools/shared/fs-promises-shim.d.ts +15 -0
- package/lib/types/tools/shared/image-bridge.d.ts +98 -0
- package/lib/types/tools/shared/omp-prompt.d.ts +47 -0
- package/lib/types/tools/shared/sandbox-policy.d.ts +38 -0
- package/lib/types/tools/shared/session-state.d.ts +51 -0
- package/lib/types/tools/shared/tool-errors.d.ts +33 -0
- package/lib/types/tools/shared/win-path-fixes.d.ts +16 -0
- package/lib/types/tools/write/adapter/index.d.ts +31 -0
- package/lib/{types-DX_bvuus.mjs → types-PVueGi9S.mjs} +2 -2
- package/lib/{utils-C-dSORPa.mjs → utils-B7A3Eu4L.mjs} +2364 -2676
- package/lib/{utils-Cp2Mxf_U.mjs → utils-CUPhpw9A.mjs} +413 -134
- package/lib/{utils-CQHPEQ3W.mjs → utils-DeWqNWV8.mjs} +2 -2
- package/lib/{vision-guard-mBmtAHx0.mjs → vision-guard-_XwsL1DF.mjs} +14 -29
- package/lib/xai-oauth-CXhnz0gO.mjs +210 -0
- package/lib/{xiaomi-7mE345KX.mjs → xiaomi-psoUItal.mjs} +8 -37
- package/lib/{zai-CeNpMV3W.mjs → zai-ApJ8HBgT.mjs} +8 -71
- package/lib/{zip-BK7UHCwX.mjs → zip-Kd602XNe.mjs} +1 -1
- package/package.json +12 -12
- package/presets/package.json +1 -1
- package/presets/tool-plus-ptc/agent.cordis.yml +1 -1
- package/presets/tool-plus-standard/agent.cordis.yml +1 -1
- package/scripts/patch-pi-natives.mjs +108 -108
- package/lib/agent_pb-Rizyt9Zg.mjs +0 -805
- package/lib/anthropic-CDmj476p.mjs +0 -262
- package/lib/api_server_pb-CDZgLMta.mjs +0 -252
- package/lib/callback-server-CFJK-jvK.mjs +0 -398
- package/lib/codex-P1dGpX7G.mjs +0 -54
- package/lib/device-code-CuXTWYwY.mjs +0 -51
- package/lib/devin-BcQwht1W.mjs +0 -114
- package/lib/devin-BvMfGevz.mjs +0 -95
- package/lib/github-copilot-B3kQl0g0.mjs +0 -104
- package/lib/gitlab-duo-BriUTP8k.mjs +0 -155
- package/lib/gitlab-duo-workflow-wK5Ljzmc.mjs +0 -91
- package/lib/google-CE5tFDod.mjs +0 -30
- package/lib/google-antigravity-C1jgNljz.mjs +0 -198
- package/lib/google-oauth-shared-BLVTvokk.mjs +0 -147
- package/lib/grammar-D-NqNUxQ.mjs +0 -49
- package/lib/identity-HNO1Oe9B.mjs +0 -219
- package/lib/kimi-DgcUpPtK.mjs +0 -236
- package/lib/markit-DtGoRE6M.mjs +0 -1417
- package/lib/minimax-code-Y3h5li9N.mjs +0 -53
- package/lib/models-DRA2c_8U.mjs +0 -104660
- package/lib/opencode-BsVw9rCD.mjs +0 -38
- package/lib/to-binary-B1BEBIPC.mjs +0 -6002
- package/lib/wafer-BlhWLweO.mjs +0 -17
- package/lib/xai-oauth-5pORHUrg.mjs +0 -446
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/** A ZIP archive decoded to a `path → bytes` map of its file members. */
|
|
2
|
+
export type Unzipped = Record<string, Uint8Array>;
|
|
3
|
+
/** Read a single ZIP entry as UTF-8 text, or `undefined` when the entry is absent. */
|
|
4
|
+
export declare function unzipText(entries: Unzipped, entryPath: string): string | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* Decode an in-memory ZIP archive into a `path → bytes` map of its file members
|
|
7
|
+
* (directory entries and `..`-escaping names are dropped). Shares the
|
|
8
|
+
* central-directory record parser with the lazy, file-backed reader.
|
|
9
|
+
*/
|
|
10
|
+
export declare function unzip(bytes: Uint8Array): Unzipped;
|
|
11
|
+
export type ArchiveFormat = "zip" | "tar" | "tar.gz";
|
|
12
|
+
/**
|
|
13
|
+
* Where to read an archive from: an extension-inferred filesystem path, a
|
|
14
|
+
* format-tagged filesystem path, or in-memory bytes with an explicit format.
|
|
15
|
+
* ZIP paths are read lazily via ranged central-directory access.
|
|
16
|
+
*/
|
|
17
|
+
export type ArchiveSource = string | {
|
|
18
|
+
bytes: Uint8Array;
|
|
19
|
+
format: ArchiveFormat;
|
|
20
|
+
} | {
|
|
21
|
+
path: string;
|
|
22
|
+
format: ArchiveFormat;
|
|
23
|
+
};
|
|
24
|
+
/** Content for a member when packing or extracting an archive. */
|
|
25
|
+
export type ArchiveMemberContent = string | Uint8Array | Blob;
|
|
26
|
+
export interface ArchivePathCandidate {
|
|
27
|
+
archivePath: string;
|
|
28
|
+
subPath: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ArchiveNode {
|
|
31
|
+
path: string;
|
|
32
|
+
isDirectory: boolean;
|
|
33
|
+
size: number;
|
|
34
|
+
mtimeMs?: number;
|
|
35
|
+
}
|
|
36
|
+
export interface ArchiveDirectoryEntry extends ArchiveNode {
|
|
37
|
+
name: string;
|
|
38
|
+
}
|
|
39
|
+
export interface ExtractedArchiveFile extends ArchiveNode {
|
|
40
|
+
bytes: Uint8Array;
|
|
41
|
+
}
|
|
42
|
+
/** A byte window into an archive — file-backed (lazy) or in-memory. */
|
|
43
|
+
interface ByteSource {
|
|
44
|
+
readonly size: number;
|
|
45
|
+
read(start: number, end: number): Promise<Uint8Array>;
|
|
46
|
+
}
|
|
47
|
+
interface TarStorage {
|
|
48
|
+
type: "tar";
|
|
49
|
+
buffer: Uint8Array;
|
|
50
|
+
dataOffset: number;
|
|
51
|
+
sparse: boolean;
|
|
52
|
+
}
|
|
53
|
+
interface TarLinkStorage {
|
|
54
|
+
type: "tar-link";
|
|
55
|
+
targetPath: string;
|
|
56
|
+
}
|
|
57
|
+
interface ZipStorage {
|
|
58
|
+
type: "zip";
|
|
59
|
+
source: ByteSource;
|
|
60
|
+
compressedSize: number;
|
|
61
|
+
compression: number;
|
|
62
|
+
flags: number;
|
|
63
|
+
localHeaderOffset: number;
|
|
64
|
+
}
|
|
65
|
+
type EntryStorage = TarStorage | TarLinkStorage | ZipStorage;
|
|
66
|
+
interface ArchiveIndexEntry extends ArchiveNode {
|
|
67
|
+
storage?: EntryStorage;
|
|
68
|
+
}
|
|
69
|
+
/** Infer an archive format from a filesystem path's extension. */
|
|
70
|
+
export declare function archiveFormatFromPath(filePath: string): ArchiveFormat | undefined;
|
|
71
|
+
export declare function formatArchiveEntryLines(entries: readonly ArchiveDirectoryEntry[]): string[];
|
|
72
|
+
export declare function sniffArchiveFormat(bytes: Uint8Array): ArchiveFormat | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Split an `archive.ext:inner/path` reference into every plausible
|
|
75
|
+
* `{ archivePath, subPath }` pair, longest archive prefix first. A path may
|
|
76
|
+
* contain more than one archive extension, so each candidate is a guess at
|
|
77
|
+
* where the archive ends and the member portion begins.
|
|
78
|
+
*/
|
|
79
|
+
export declare function parseArchivePathCandidates(filePath: string): ArchivePathCandidate[];
|
|
80
|
+
/**
|
|
81
|
+
* An indexed, read-only view over a single archive. ZIP archives are indexed
|
|
82
|
+
* from the central directory and members are inflated on demand; tar archives
|
|
83
|
+
* are parsed from one in-memory buffer, members are sliced on demand, and
|
|
84
|
+
* directory symlink aliases are traversed lazily.
|
|
85
|
+
*/
|
|
86
|
+
export declare class ArchiveReader {
|
|
87
|
+
#private;
|
|
88
|
+
readonly format: ArchiveFormat;
|
|
89
|
+
constructor(format: ArchiveFormat, entries: ArchiveIndexEntry[]);
|
|
90
|
+
getNode(subPath?: string): ArchiveNode | undefined;
|
|
91
|
+
listDirectory(subPath?: string): ArchiveDirectoryEntry[];
|
|
92
|
+
readFile(subPath: string): Promise<ExtractedArchiveFile>;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Open an archive for reading. ZIP archives opened from a path are indexed
|
|
96
|
+
* lazily via ranged central-directory reads (members inflate on demand); tar
|
|
97
|
+
* archives and in-memory ZIPs are read from a single buffer.
|
|
98
|
+
*/
|
|
99
|
+
export declare function openArchive(source: ArchiveSource): Promise<ArchiveReader>;
|
|
100
|
+
/** Render the top-level entries of an in-memory archive as one line each. */
|
|
101
|
+
export declare function listArchiveRoot(bytes: Uint8Array, format: ArchiveFormat, opts?: {
|
|
102
|
+
limit?: number;
|
|
103
|
+
}): Promise<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Fully materialize every file member into a `path → content` map: ZIP members
|
|
106
|
+
* are inflated in memory, tar members are sliced from the decoded archive
|
|
107
|
+
* buffer. Use this when you need every entry (rewrite, extract); for browsing
|
|
108
|
+
* or single-member reads prefer `openArchive`, which is lazy for ZIP.
|
|
109
|
+
*/
|
|
110
|
+
export declare function readArchiveEntries(source: ArchiveSource): Promise<Map<string, ArchiveMemberContent>>;
|
|
111
|
+
/**
|
|
112
|
+
* Serialize `entries` into an archive of `format` and write it to `destPath`.
|
|
113
|
+
* ZIP is framed in memory, tar / tar.gz via `Bun.Archive` (gzip for tar.gz).
|
|
114
|
+
* String members are encoded as UTF-8.
|
|
115
|
+
*/
|
|
116
|
+
export declare function writeArchive(destPath: string, format: ArchiveFormat, entries: Iterable<readonly [string, ArchiveMemberContent]>): Promise<void>;
|
|
117
|
+
/**
|
|
118
|
+
* Extract every file member to `destDir`, creating parent directories as
|
|
119
|
+
* needed. Entries that would escape `destDir` (via `..` or an absolute path)
|
|
120
|
+
* are rejected. Returns the number of files written.
|
|
121
|
+
*/
|
|
122
|
+
export declare function extractArchive(source: ArchiveSource, destDir: string): Promise<number>;
|
|
123
|
+
/**
|
|
124
|
+
* Frame a `path → bytes` map into a ZIP archive in memory. Each member is raw
|
|
125
|
+
* DEFLATE unless that would not shrink it, in which case it is stored. ZIP64 is
|
|
126
|
+
* not emitted; archives beyond the 32-bit limits throw rather than corrupt.
|
|
127
|
+
*/
|
|
128
|
+
export declare function zip(entries: Unzipped): Uint8Array;
|
|
129
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browser JS rendering for the read URL pipeline — the last reader backend
|
|
3
|
+
* in `FETCH_PROVIDER_ORDER`. Where the other backends fetch the raw HTML and
|
|
4
|
+
* convert it server-side, this one launches a real headless Chromium
|
|
5
|
+
* (puppeteer-core), lets the page's JavaScript run, and extracts readable
|
|
6
|
+
* content from the rendered DOM — which is what SPA pages need.
|
|
7
|
+
*
|
|
8
|
+
* Design (per the 2026-08-29 plan):
|
|
9
|
+
* - Singleton browser: lazily launched on first use, reused across renders,
|
|
10
|
+
* closed after `BROWSER_IDLE_CLOSE_MS` of inactivity, best-effort killed on
|
|
11
|
+
* process exit; a memoized instance found closed (idle recycle / crash) is
|
|
12
|
+
* cleared and relaunched on the next render. A promise queue serializes
|
|
13
|
+
* renders (one page at a time).
|
|
14
|
+
* - Budget: goto ≤ min(overall timeout, 20s), `domcontentloaded` + 800ms JS
|
|
15
|
+
* settle, DOM capped at `BROWSER_RENDER_MAX_BYTES` before extraction.
|
|
16
|
+
* - Failure degenerates to `null` (the fetch chain then moves to the next
|
|
17
|
+
* backend or reports the raw HTML), never throws for "no browser".
|
|
18
|
+
*
|
|
19
|
+
* `resetBrowserForTests` is the test seam for the unit suite.
|
|
20
|
+
* @module @xiaoso/dsh-tool-plus/web/browser-render
|
|
21
|
+
*/
|
|
22
|
+
/** Cap on the rendered DOM handed to the readable extractor. */
|
|
23
|
+
export declare const BROWSER_RENDER_MAX_BYTES: number;
|
|
24
|
+
/** Idle time after which the singleton browser is closed (renders reuse it). */
|
|
25
|
+
export declare const BROWSER_IDLE_CLOSE_MS = 60000;
|
|
26
|
+
/** Extra settle time after `domcontentloaded` for JS-rendered content. */
|
|
27
|
+
export declare const RENDER_SETTLE_MS = 800;
|
|
28
|
+
/**
|
|
29
|
+
* Render a URL in a headless browser and return readable markdown, or null
|
|
30
|
+
* when no browser is available / rendering fails. Serialized through the
|
|
31
|
+
* singleton queue; honors `signal` cancellation between attempts.
|
|
32
|
+
*/
|
|
33
|
+
export declare function renderUrlWithBrowser(url: string, options?: {
|
|
34
|
+
timeoutMs?: number;
|
|
35
|
+
signal?: AbortSignal;
|
|
36
|
+
}): Promise<string | null>;
|
|
37
|
+
/**
|
|
38
|
+
* Test seam: replicate the production idle-close state — the singleton
|
|
39
|
+
* browser is closed but `browserPromise` is left pointing at the dead
|
|
40
|
+
* instance (which is exactly what {@link scheduleIdleClose} does). A render
|
|
41
|
+
* in this state must relaunch rather than fail.
|
|
42
|
+
*/
|
|
43
|
+
export declare function simulateIdleCloseForTests(): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Test seam: close the singleton browser (if any) and reset the queue so a
|
|
46
|
+
* later render starts from a clean state. Also clears the launch memo so a
|
|
47
|
+
* subsequent render re-resolves the executable (e.g. after the detection
|
|
48
|
+
* RPC ran).
|
|
49
|
+
*/
|
|
50
|
+
export declare function resetBrowserForTests(): Promise<void>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { type FetchImpl } from "@oh-my-pi/pi-ai";
|
|
2
|
+
import type { AgentStorage } from "../session/agent-storage";
|
|
3
|
+
export declare const PARALLEL_SEARCH_URL = "https://api.parallel.ai/v1beta/search";
|
|
4
|
+
export declare const PARALLEL_BETA_HEADER = "search-extract-2025-10-10";
|
|
5
|
+
export interface ParallelUsageItem {
|
|
6
|
+
name?: string;
|
|
7
|
+
count?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface ParallelSearchSource {
|
|
10
|
+
title: string;
|
|
11
|
+
url: string;
|
|
12
|
+
snippet?: string;
|
|
13
|
+
publishedDate?: string;
|
|
14
|
+
excerpts: string[];
|
|
15
|
+
}
|
|
16
|
+
export interface ParallelSearchResult {
|
|
17
|
+
requestId: string;
|
|
18
|
+
sources: ParallelSearchSource[];
|
|
19
|
+
warnings: string[];
|
|
20
|
+
usage: ParallelUsageItem[];
|
|
21
|
+
}
|
|
22
|
+
export interface ParallelExtractDocument {
|
|
23
|
+
url: string;
|
|
24
|
+
title?: string;
|
|
25
|
+
publishedDate?: string;
|
|
26
|
+
excerpts: string[];
|
|
27
|
+
fullContent?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ParallelExtractErrorEntry {
|
|
30
|
+
url: string;
|
|
31
|
+
errorType?: string;
|
|
32
|
+
httpStatusCode?: number;
|
|
33
|
+
content?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface ParallelExtractResult {
|
|
36
|
+
requestId: string;
|
|
37
|
+
results: ParallelExtractDocument[];
|
|
38
|
+
errors: ParallelExtractErrorEntry[];
|
|
39
|
+
warnings: string[];
|
|
40
|
+
usage: ParallelUsageItem[];
|
|
41
|
+
}
|
|
42
|
+
export interface ParallelSearchOptions {
|
|
43
|
+
mode?: "fast" | "research";
|
|
44
|
+
maxCharsPerResult?: number;
|
|
45
|
+
signal?: AbortSignal;
|
|
46
|
+
fetch?: FetchImpl;
|
|
47
|
+
}
|
|
48
|
+
export interface ParallelExtractOptions {
|
|
49
|
+
objective?: string;
|
|
50
|
+
searchQueries?: string[];
|
|
51
|
+
excerpts?: boolean;
|
|
52
|
+
fullContent?: boolean;
|
|
53
|
+
signal?: AbortSignal;
|
|
54
|
+
fetch?: FetchImpl;
|
|
55
|
+
}
|
|
56
|
+
export declare class ParallelApiError extends Error {
|
|
57
|
+
readonly statusCode?: number;
|
|
58
|
+
constructor(message: string, statusCode?: number);
|
|
59
|
+
}
|
|
60
|
+
export declare function parseParallelErrorResponse(statusCode: number, responseText: string): ParallelApiError;
|
|
61
|
+
export declare function parseParallelJsonResponse(response: Response, operation: "search" | "extract"): Promise<unknown>;
|
|
62
|
+
export declare function parseParallelSearchPayload(payload: unknown, options?: {
|
|
63
|
+
parseMetadata?: boolean;
|
|
64
|
+
}): ParallelSearchResult;
|
|
65
|
+
export declare function findParallelApiKey(storage: AgentStorage | null | undefined): string | null;
|
|
66
|
+
export declare function getParallelExtractContent(document: ParallelExtractDocument): string;
|
|
67
|
+
export declare function searchWithParallel(objective: string, queries: string[], options: ParallelSearchOptions, storage: AgentStorage | null | undefined): Promise<ParallelSearchResult>;
|
|
68
|
+
export declare function extractWithParallel(urls: string[], options: ParallelExtractOptions, storage: AgentStorage | null | undefined): Promise<ParallelExtractResult>;
|
|
@@ -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,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,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,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,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[];
|