Files
deepseek-harness/packages/util/plugin-detail/src/index.ts
T
turtle1999 9c8522bb64 feat(plugin-detail): show Markdown plugin details on bundle and market entry pages
Plugins bundle pages and Discover entry pages show the plugin's long
description first, as Markdown with images, in a height-limited region
without its own heading. The document is the file locale meta.detail
names, otherwise the package README, otherwise (market entries only)
the declared repository's README.

The new dsh-plugin-detail library selects documents and reads local
package directories and npm file CDNs without state. plugin-manager
reads installed and offered bundles through readBundleDetail; plugin-market
reads market entries through readEntryDetail, single-file APIs, and a
size-limited partial clone cache serialized across processes. Raw HTML is
omitted, relative links stay text, and relative images load from Host
routes with a sandbox CSP.
2026-10-19 19:13:22 +08:00

14 lines
802 B
TypeScript

/**
* Plugin detail documents without state: language chains, the `meta.detail` or README selection of a package, image
* destinations beside a document, and read-only file sources for local packages and published npm versions.
* @module @deepseek-ai/dsh-plugin-detail
*/
export {
DetailFailure, encodePath, fetchBody, joinPath, localFiles, NPM_FILE_SOURCES, npmFileSourceOrder, npmFiles, README_NAMES,
readmeByName, readmeName, type DetailFiles, type FetchedBody, type FoundFile, type ReadFile, type RemoteFileOptions,
} from './files.ts'
export { detailImage, languageChain, markdownOf, readPackageDocument, type PackageDocument } from './document.ts'
export { detailImageResponse, type DetailImage } from './response.ts'
export type { DetailFailureReason, NpmFileSource } from './types.ts'