In the DSH ecosystem, deduplicating, sorting, or analyzing text lines is a common data processing requirement. Manually writing such scripts is not only time-consuming but also prone to introducing errors. The dsh-text-lines plugin provides a lightweight solution, processing text data locally without relying on external services.
Plugin Introduction¶
This is a DSH plugin implemented in pure Node.js and maintained by developer uckkk. It does not depend on network connections or external APIs, and all logic runs locally. The plugin aims to provide agents with basic text line processing capabilities.
Core Features¶
The plugin provides the following three basic processing capabilities:
- Text Line Deduplication: Remove duplicate lines from text.
- Text Line Sorting: Sort text lines.
- Text Line Statistics: Count the number of text lines.
Installation and Dependencies¶
Before installing, make sure the following dependency requirements are met:
@deepseek-ai/cordis: ^4.0.1@deepseek-ai/dsh-tools: >=0.1.0-rc.6
Use the official command to install the plugin:
dsh plugin add dsh-text-lines
After installation, the plugin will be automatically registered with the DSH session.
Usage Instructions¶
After successful installation, no additional configuration is required. Simply call the tool registered by this plugin within the session. The specific way to invoke the tool is defined by the DSH toolset, and the plugin itself does not provide additional command-line parameter descriptions.
Notes¶
- Security Notice: Because the plugin executes code with the permissions of the current DSH process, please review the source code before installation to confirm its safety.
- Purely Local Execution: The plugin is implemented in pure Node.js, makes no network requests, and has no external service dependencies.
References¶
This plugin is hosted on GitHub, and related materials can be found in the community directory.