Introduction¶
In the development of DeepSeek Harness (DSH), converting timestamps or seconds into a readable format is a common requirement. This usually requires writing additional conversion logic or relying on unstable network services. The dsh-duration plugin aims to solve this pain point by providing a local duration formatting capability.
Plugin Introduction¶
The plugin is maintained by istone and its core functionality is duration formatting. It is a pure Node implementation and does not involve any network requests or external service dependencies.
Installation and Configuration¶
- Install the plugin:
dsh plugin add dsh-duration
- Configure the profile. After installation, add
"dsh-duration"to thedsh.profile.bundlesarray in the profile’spackage.jsonfile.
Usage¶
After installation and enabling, in a DSH session, call the tool registered by the plugin.
Notes¶
The plugin runs with the permissions of the current DSH process. Since it is third-party code, please review its source code yourself before installing.
License¶
MIT
Conclusion¶
dsh-duration provides a lightweight and offline duration processing capability, suitable for scenarios where time data needs to be processed quickly and locally.