drscrewdriver/dsh-date-wrapper ↗★ 2

dsh-date-wrapper

Minimal date line for the DeepSeek Harness runtime-context snapshot: 'Current date: 2026-09-08 Asia/Shanghai Tuesday' (46 chars, ~12 tokens) - a cordis host plugin, no dsh source changes, no PR required 适合需要模型感知当前日期的用户,可配置时区,改动需重启。

패키지
dsh-date-wrapper
호환성
미검증
버전
0.1.1-beta.1
라이선스
MIT
최근 업데이트
2026. 9. 9.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:drscrewdriver/dsh-date-wrapper

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 timeZone throws at startup (no silent fallback to UTC).
  • The zone name in the text is the resolved IANA name (the process zone name when timeZone is omitted).
  • The runtime-context entry is named date-wrapper:date with order 116 (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 in validateConfig(). 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/js recommended as the baseline.
  • Tightened rules: eqeqeq, prefer-const, object-shorthand, no-unused-vars (_ prefix exempt).
  • Node globals crypto / console / process are declared explicitly, otherwise no-undef false-positives.