In the development or model inference toolchain of DeepSeek Harness (DSH), determining whether a value is a power of two is a common bitwise operation requirement. To make this logic easier to invoke within the DSH ecosystem, the dsh-is-power-of-two plugin provides the corresponding solution.
Plugin Overview¶
This is a DSH plugin maintained by uckkk. It is primarily used to determine whether a given number is a power of two in the DSH environment. The plugin is implemented in pure Node.js and does not involve any network requests.
Core Features¶
- Pure Node Implementation: The core logic is fully based on Node.js, with no external network dependencies.
- Bitwise Validation: It provides standard validation logic for checking whether a value is a power of two.
Installation and Activation¶
Install it using DSH’s command-line tool. Use the following command to add the plugin to the current environment:
dsh plugin add github:uckkk/dsh-is-power-of-two
After installation, the plugin is automatically injected into the DSH process. Before invoking it in code, ensure that its dependency requirements are satisfied:
@deepseek-ai/cordis(Peer Dependency): version^4.0.1@deepseek-ai/dsh-tools(Peer Dependency): version>=0.1.0-rc.6
Notes¶
- Permissions and Security: The plugin runs with the permissions of the current DSH process. Before installing any plugin, it is recommended to check its source code logic and license (MIT).
- Use Cases: Suitable for developers who need to perform bitwise value checks in model inference or tool orchestration.