DSH uses a plugin-based architecture. When agents or tools need to execute specific mathematical logic, extending functionality through plugins is a common practice. dsh-lcm focuses on providing the ability to calculate the least common multiple (LCM).
Plugin Overview¶
This plugin is a calculation tool implemented in pure Node.js, maintained by uckkk, and licensed under the MIT open source license.
Core Features¶
- Calculates the least common multiple.
- Pure Node.js implementation with no network dependencies.
Installation and Activation¶
The installation command is as follows:
dsh plugin add github:uckkk/dsh-lcm
Before running the installation, ensure that the current environment satisfies the following dependencies:
@deepseek-ai/cordis>= ^4.0.1@deepseek-ai/dsh-tools>= 0.1.0-rc.6
Usage¶
After installation, you can call the tool registered by this plugin in a DSH session.
Applicable Scenarios and Notes¶
This plugin is suitable for automated tasks that involve mathematical common divisors or common multiples. The plugin runs with the permissions of the current DSH process, so it is recommended to inspect the source code before installing to ensure security.
Summary¶
dsh-lcm provides lightweight LCM calculation capabilities, making it suitable for scenarios with requirements for performance and offline environments.