AIsa-plugins/easy-dsh-plugin--plugins-easy-search0

@aisa-plugins/easy-search

适用于DeepSeek Harness的多源搜索与内容提取工具。

AI 分析

提供一键检索网页、X、YouTube和学术文献的工具,并支持提取网页Markdown。适合需要在对话中进行多源信息检索与网页内容抓取的科研或调查任务。

包名
@aisa-plugins/easy-search
版本
0.1.0
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:AIsa-plugins/easy-dsh-plugin#4105d741b85f4de0c15f0919cb0effd1af21caf6&path:plugins/easy-search

Easy Search

Easy Search is an independently installable DeepSeek Harness bundle in the Easy DSH Plugins collection. It provides a focused research layer over AIsa search APIs.

The collection root is not a package. Easy Search owns this directory and does not depend at runtime on the legacy AIsa marketplace plugin.

What it adds

  • easy_search searches the web, X, YouTube, and Scholar in one call.
  • easy_extract retrieves clean Markdown from one to three known public URLs.
  • Native DSH web cards render search citations and single-page extraction.
  • Per-source coverage makes partial failures visible without discarding results from healthy sources.
  • Settings and Credentials remain owned by DeepSeek Harness.

The plugin exposes only the two research tools above. It does not add a second chat UI, permission system, account store, or browser application.

Requirements

  • Node.js 22 or newer
  • DeepSeek Harness 0.1.0-rc.6 compatible packages
  • An AIsa API key

Install

From GitHub

Pin a reviewed commit for production:

dsh plugin --profile web add \
  "AIsa-plugins/easy-dsh-plugin#&path:/plugins/easy-search"
dsh --profile web --dump-config

The path parameter selects this package from the collection; the collection root itself is not a DSH bundle.

From a source checkout

From the collection root:

pnpm install --frozen-lockfile
pnpm --filter @aisa-plugins/easy-search check
dsh plugin --profile web add ./plugins/easy-search
dsh --profile web --dump-config

The package ships its compiled lib directory, so installation does not execute a build script. Use another profile name if your Harness deployment does not use web.

Configure

Open the Harness Settings surface and select Easy Search. The default credential reference is AISA_API_KEY. Store the API key through the native Credentials control for that reference, or provide it through a supported DSH credential source.

Configuration contains only the reference. The secret value is resolved once at the start of each Easy Search or Easy Extract operation and is never placed in a tool argument, result, presentation payload, or settings document.

SettingDefaultPurpose
API key referenceAISA_API_KEYDSH CredentialRef resolved per operation
Base URLhttps://api.aisa.oneAIsa HTTP origin
Request timeout30000 msPer-request cooperative timeout
Response limit5 MiBMaximum upstream response bytes
Default results5Results retained per selected source
Maximum results10User-selectable per-source ceiling
Snippet limit1200 charsMaximum normalized result preview
Extract limit100000 charsMaximum content retained per page

Settings changes are read at operation time and do not require the plugin to cache credentials or API configuration.

Search sources

SourceAIsa endpointNotes
webTavily SearchOptional answer plus citeable pages
xX Advanced SearchLatest or Top ordering
youtubeYouTube SearchVideos, channels, and playlists
scholarScholar Web SearchOptional publication-year range

Selected sources run concurrently. One failed source becomes an error entry in coverage while successful siblings remain available to the model.

Easy Extract accepts only credential-free HTTP or HTTPS URLs. Literal local, private, link-local, multicast, and IPv4-mapped private addresses are rejected before the upstream request.

Native presentation

The canonical tool value remains structured JSON for validation and replay. The model receives compact citeable text, while presentationMeta projects only the fields needed by the official DSH web cards. Provider payloads and secrets do not enter presentation metadata.

Development

From the collection root:

pnpm install
pnpm --filter @aisa-plugins/easy-search typecheck
pnpm --filter @aisa-plugins/easy-search test
pnpm --filter @aisa-plugins/easy-search build
pnpm --filter @aisa-plugins/easy-search check
pnpm --dir plugins/easy-search pack --dry-run

The test suite locks down current AIsa endpoint shapes, credential handling, response limits, partial-source failure, extraction URL boundaries, and DSH presentation behavior.

Repository layout

plugins/easy-search/
├── src/
│   ├── client.ts
│   ├── config.ts
│   ├── index.ts
│   ├── normalize.ts
│   ├── search.ts
│   ├── tools.ts
│   └── types.ts
├── tests/
├── docs/
│   └── architecture.md
├── cordis.patch.yml
└── package.json

See docs/architecture.md for the dependency boundaries and extension rules.

License

MIT