Introduction¶
When developing workflows in DeepSeek Harness (DSH), business logic is often encapsulated as tools. Reorder point calculation is a common requirement in supply chain management and involves mathematical operations with multiple parameters. This article introduces a plugin called dsh-stock-level, which provides the ability to calculate reorder points.
Plugin Overview¶
dsh-stock-level is a DSH workflow plugin maintained by uckkk. Its core functionality is to provide precise reorder point calculations. The plugin is implemented in pure Node.js, requires no network dependencies, and is suitable for direct integration into workflows to handle inventory-related business logic.
Core Features¶
The plugin registers a tool named stock_level. This tool accepts parameters, performs precise calculations, and returns detailed results. This means you can call the tool directly within a workflow to obtain the calculated reorder point value.
Installation and Dependencies¶
Before installation, ensure that the DSH environment is installed. The installation command is as follows:
dsh plugin add github:uckkk/dsh-stock-level
The plugin depends on the following core environment:
* @deepseek-ai/cordis: ^4.0.1
* @deepseek-ai/dsh-tools: >=0.1.0-rc.6
After installation, the tool registered by the plugin can be called directly in a session.
Use Cases and Considerations¶
This is suitable for developers who need to automatically calculate inventory reorder points in agents or workflows. Because it is implemented in pure Node.js and makes no network requests, it is highly efficient and stable. Before use, please review the source code and comply with the MIT license agreement.
References¶
To view the source code or browse the directory, you can access its GitHub repository or community directory.