DeepSeek Harness (DSH) uses a plugin-based architecture, allowing developers to extend functionality as needed. When performing model inference or writing scripts, handling date logic (such as determining leap years) is a common requirement. The dsh-leap-year plugin provides a lightweight solution for this.
Plugin Overview¶
This is a DSH plugin used to determine whether a given year is a leap year. It is maintained by user uckkk and focuses on solving basic date validation problems.
Core Features¶
- Leap Year Detection: Provides logic support for determining whether a year is a leap year.
- No Network Dependency: The plugin does not rely on external network connections and is suitable for offline environments or scenarios with strict network restrictions.
- Pure Node Implementation: Built for the Node.js environment, with no dependency on browsers or other runtimes.
Installation and Enablement¶
Run the following command in the DSH terminal to install the plugin:
dsh plugin add github:uckkk/dsh-leap-year
Typical Usage¶
After installation, you can use the tool registered by the plugin by invoking it in a DSH session.
Dependencies and Notes¶
The plugin is implemented in Node.js. The dependencies declared in its package.json are as follows:
{
"peerDependencies": {
"@deepseek-ai/cordis": "^4.0.1",
"@deepseek-ai/dsh-tools": ">=0.1.0-rc.6"
}
}
Because it is a pure Node implementation, it can run without network connectivity. Before installing, it is recommended to review the source code and license (MIT).
Summary¶
With a minimal, pure Node implementation, this plugin meets specific date-logic detection needs within the DSH ecosystem.