drscrewdriver/dsh-date-wrapper ↗★ 2
dsh-date-wrapper
在运行时上下文中插入一行极简当前日期与时区 适合需要模型感知当前日期的用户,可配置时区,改动需重启。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:drscrewdriver/dsh-date-wrapper说明文档
阅读完整 README ↗Configuration
Shipped with cordis.patch.yml; restart after changing it:
- insert:
- id: date-wrapper
name: dsh-date-wrapper
config:
timeZone: Asia/Shanghai # IANA zone; omit to use the process zone
- An invalid
timeZonethrows at startup (no silent fallback to UTC). - The zone name in the text is the resolved IANA name (the process zone name when
timeZoneis omitted). - The runtime-context entry is named
date-wrapper:datewith order116(already taken: 110 sandbox, 115 approval, 120 subagent). - The plugin exports no schemastery
Config, so its config skips the host schema validation; everything is validated by hand invalidateConfig(). That is also why the Settings → Plugins page has no config form for it.
Lint configuration highlights
- ESLint 10 flat config (
eslint.config.mjs) with@eslint/jsrecommended as the baseline. - Tightened rules:
eqeqeq,prefer-const,object-shorthand,no-unused-vars(_prefix exempt). - Node globals
crypto/console/processare declared explicitly, otherwiseno-undeffalse-positives.