DeepSeek Harness (DSH) core design philosophy is “Everything is a plugin”. When building agents or operations scripts, you may sometimes need to calculate SLA (Service Level Agreement) availability locally. This article introduces a lightweight plugin: dsh-sla-calc.
What Is This¶
This is a DSH plugin for calculating SLA availability, maintained by developer uckkk. It is implemented in pure Node.js, has no network dependencies, and is suitable for offline or environments sensitive to network requests.
Installation and Enablement¶
Install the plugin using the following command:
dsh plugin add github:uckkk/dsh-sla-calc
Core Functionality¶
The tool registered by the plugin is named sla_calc. When calling this tool, pass in the parameters required for the calculation, and it will return detailed availability calculation results.
Usage¶
After installation, you can use it by directly calling the sla_calc tool in a DSH session.
Prerequisites and License¶
Before using it, make sure the following dependencies are available in your environment:
{
"peerDependencies": {
"@deepseek-ai/cordis": "^4.0.1",
"@deepseek-ai/dsh-tools": ">=0.1.0-rc.6"
}
}
This plugin is licensed under the MIT License.
Summary¶
This plugin provides local SLA calculation capabilities and is suitable for scenarios that require precise, offline availability metrics. Complete documentation and source code can be found on the catalog page or on GitHub.