# dsh-dida **Repository Path**: perrylink/dsh-dida ## Basic Information - **Project Name**: dsh-dida - **Description**: TickTick / Dida365 task bridge for DeepSeek Harness - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-11-02 - **Last Updated**: 2026-11-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # dsh-dida > **已从 [`@perrylink/dsh-ticktick`](https://www.npmjs.com/package/@perrylink/dsh-ticktick) 更名。** 旧 scoped 包已弃用;请安装 **`dsh-dida`**。 > Release stamp: `0.2.0` (2026-10-04). > **包名说明。** 本项目的 npm 发布名是 **`dsh-dida`**;旧 scoped 包 `@perrylink/dsh-ticktick` 已弃用。 [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE) [![Node](https://img.shields.io/badge/node-%5E22.19%20%7C%7C%20%3E%3D24-brightgreen.svg)](#) [![DSH plugin](https://img.shields.io/badge/dsh--plugin-✅-green)](https://github.com/topics/dsh-plugin) [![dsh-doctor](https://raw.githubusercontent.com/PerryLink/dsh-plugin-doctor/main/badges/PerryLink__dsh-dida.svg)](https://github.com/PerryLink/dsh-plugin-doctor#verified-徽章) [![DSH Market](https://raw.githubusercontent.com/2BingLing/dsh-market/master/assets/readme/badge-listed-zh.svg)](https://dsh.market/) [![Gitee](https://img.shields.io/badge/Gitee-mirror-c71d23?logo=gitee)](https://gitee.com/perrylink/dsh-dida) [![CI](https://img.shields.io/github/actions/workflow/status/PerryLink/dsh-dida/ci.yml?branch=main&label=CI)](https://github.com/PerryLink/dsh-dida/actions) [![Version](https://img.shields.io/github/v/tag/PerryLink/dsh-dida?label=version)](https://github.com/PerryLink/dsh-dida/releases) [![npm version](https://img.shields.io/npm/v/dsh-dida)](https://www.npmjs.com/package/dsh-dida) [![npm downloads](https://img.shields.io/npm/dm/dsh-dida)](https://www.npmjs.com/package/dsh-dida) [![dshfind](https://dshfind.com/api/badge/PerryLink/dsh-dida?metric=downloads&lang=zh)](https://dshfind.com/zh/plugins/PerryLink/dsh-dida?ref=badge) [English](README.md) | **中文** | [Español](README-es.md) | [Português](README-pt.md) | [हिन्दी](README-hi.md) ```sh dsh plugin --profile add dsh-dida ``` 面向 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 的滴答清单(TickTick / Dida365)任务桥:会话头部任务面板(清单筛选、快速添加、完成、删除、截止日期、拖拽排序)、11 个精选 agent 工具、插件页上的配置页,以及类型化的 Remote 服务——全部走官方滴答 MCP 端点。 ## 安装 ```sh dsh plugin --profile web add github:PerryLink/dsh-dida ``` ```sh # npm(发布产物含 lib/,无需构建许可) dsh plugin --profile web add dsh-dida # git 源码(钉住 commit;pnpm 首次会请你放行 prepare 构建) dsh plugin --profile web add "github:PerryLink/dsh-dida#" # 本地开发 dsh plugin --profile web add link:/path/to/dsh-dida ``` 重启 `dsh web`(bundle 插件重启生效)。`ticktick` 按钮出现在会话头部;其配置页从插件页 TickTick 行的 **Configure** 控件打开。 ## What is dsh-dida? 面向 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 的滴答清单(TickTick / Dida365)任务桥:会话头部任务面板(清单筛选、快速添加、完成、删除、截止日期、拖拽排序)、11 个精选 agent 工具、插件页上的配置页,以及类型化的 Remote 服务——全部走官方滴答 MCP 端点。 ![dsh-dida 工作流图:安装 → 打开面板 → 操作。](docs/assets/dsh-dida-flow.svg) *工作流概览:安装 → 打开面板 → 操作。下面的示例使用实际命令面。* *同一次运行,动图版。* ## 兼容性 | 方面 | 状态 | |---|---| | Harness | DeepSeek Harness **dsh-v0.2.1-alpha.1**(GitHub tag)。npm 依赖线钉在 `@deepseek-ai/dsh` **0.2.1-alpha.1**(peers `>=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0`)。已对照 dsh-v0.2.1-alpha.1 checkout 核验(完整门禁链 + profile 安装冒烟)。 | | Node | `^22.19.0 \|\| >=24.0.0` | ## 功能 - **会话头部面板**:会话头部的 `ticktick` 按钮打开弹窗——按清单筛选(全部 + 各清单)、未完成/已完成视图切换、全文搜索、带可选日期的快速添加、勾选完成、确认删除、设置/清除截止日期(过期/今天/明天高亮 chip)、单清单未完成视图内拖拽排序。常驻连接状态圆点;未配置令牌时面板内直接一步粘贴保存。 - **11 个 agent 工具**:`ticktick_status`、`ticktick_lists`、`ticktick_tasks`、`ticktick_add`、`ticktick_complete`、`ticktick_delete`、`ticktick_due`、`ticktick_reorder`、`ticktick_completed`、`ticktick_search`、`ticktick_batch_add`;Code Mode 免费获得 `await tools.ticktick_*(args)`。 - **配置页**:插件页 → TickTick 行 → **Configure**:API 口令(secret)、令牌文件、端点预设(国内/国际版未实测/自定义)、受保护任务 id(四项均即时生效,无需重启)、一键**测试连接**与**清除凭据**。 - **令牌热重读**:Bearer 令牌每次请求重读(卡片 secret 优先于令牌文件,默认 `$DSH_HOME/.ticktick-token`);401 会重置客户端,轮换令牌无需重启。 - **实测绕行**:滴答 MCP 对真实项目内任务调用 `update_task` 会服务端崩溃("Expecting value: line 1 column 1")——桥自动走「移到收件箱 → 更新 → 移回」绕行;服务端校验失败的清单(历史 `repeatFrom: ''` 数据)跳过并以警告透传,绝不静默丢弃。 - **受保护任务**:变更操作在任何网络调用前拒绝受保护 id 列表中的任务。 - **多端同步**:所有写入落在滴答云端账号,手机/电脑/网页版都能看到;每次读取都是当前状态。 ### 示例 以下为插件真实入口;安装后调用一个即可。 #### 详细示例 **命令** ~~~sh ticktick_lists ~~~ **输入** ~~~json {} ~~~ **输出** ~~~text Inbox (inbox) Work (hex1) ~~~ *来源 `plugins/dsh-dida/src/tools.ts:107-109 (renderer); fixture/assertion at plugins/dsh-dida/tests/service.spec.ts:40-46,103-108`* #### 失败分支 **输入** ~~~text {"id":"t-guarded","projectId":"hex1"} (protectedTaskIds: ["t-guarded"]) ~~~ **输出** ~~~text Error: task t-guarded is protected ~~~ *来源 `plugins/dsh-dida/src/service.ts:344-349; plugins/dsh-dida/tests/service.spec.ts:158-163`* #### 简短示例 - `ticktick_tasks` - `ticktick_add` ## 配置 1. 在滴答网页版获取 API 口令(`dp_` 开头):头像 → 设置 → 账户与安全 → API 口令。 2. 三种令牌来源任选其一(优先级从高到低):TickTick 配置页的 secret 字段(插件页 → TickTick 行 → Configure)、`DIDA365_TOKEN` 环境变量、令牌文件(默认 `$DSH_HOME/.ticktick-token`,一行)。写文件即生效,无需任何配置变更。 3. 用卡片上的**测试连接**按钮验证令牌,**清除凭据**按钮一键抹除。 | 配置键 | 默认 | 含义 | |---|---|---| | `tokenFile` | `''` | 存放令牌的文本文件路径;留空 = `$DSH_HOME/.ticktick-token` | | `mcpUrl` | `https://mcp.dida365.com` | 滴答 MCP 端点(国际版端点未实测——见下文) | | `toolCallTimeoutMs` | `30000` | 单次 tools/call 截止时间(毫秒) | | `protectedTaskIds` | `[]` | 所有变更操作拒绝的任务 id | | `tools.*` | 各自 `''` | 原始 MCP 工具名钉住(projects/tasks/create/complete/remove/update/move);`''` = 按模式发现 | ## Agent 工具 | 工具 | 用途 | |---|---| | `ticktick_status` | 连接状态:令牌已配置、客户端已连接、端点、最近错误 | | `ticktick_lists` | 全部清单(含虚拟收件箱) | | `ticktick_tasks` | 未完成任务:单个清单或全部聚合,附带逐清单警告 | | `ticktick_add` | 创建任务(清单、可选 ISO 截止日期) | | `ticktick_complete` | 完成任务(任务 id + 清单 id) | | `ticktick_delete` | 删除任务(任务 id + 清单 id) | | `ticktick_due` | 设置/清除截止日期(省略日期 = 清除) | | `ticktick_reorder` | 赋新整数 sortOrder(清单按 sortOrder 降序排列) | | `ticktick_completed` | 时间窗内已完成任务(默认近 30 天),可选单清单 | | `ticktick_search` | 任务全文搜索(官方 search 工具) | | `ticktick_batch_add` | 一次调用批量创建任务 | ## 架构 ``` 浏览器面板 ── ctx.remote.ticktick.* ──▶ TicktickService(Typert Remote) 配置页 ─────── ctx.configForms ──────▶ profile 条目 "ticktick"(Volatile Config) agent 工具 ── ctx.tools(ticktick_*)──▶ 同一服务 │ ▼ 迷你 streamable-HTTP MCP 客户端 (session id、协议版本、Retry-After) │ ▼ https://mcp.dida365.com(官方滴答 MCP) ``` ## 已知限制 - 国际版 TickTick 端点**未实测**:`mcpUrl` 默认国内端点,国际版 MCP URL 尚未探测。 - 已完成视图、搜索与批量添加走官方 MCP 的 `list_completed_tasks_by_date`、`search`、`batch_add_tasks` 工具;其线上契约来自已发布目录(dida365-sdk 存根),**对真实端点的复验待做**——先用真实令牌跑 `probes/probe-queries.mjs`,再宣称已核验。 - 实测到的 `update_task` 崩溃与清单校验失败是服务端行为;发布前用 `probes/` 对真实端点复验(导出 `DIDA365_TOKEN` 后运行)。 - 面板使用的 `/api` 面是 harness 标准 Typert 网关;令牌仅存本地(设置文档或令牌文件)且只发给滴答自己的服务器。不要把 `dsh web` 实例暴露到公网。 ## 对真实端点验证 ```sh # PowerShell $env:DIDA365_TOKEN='dp_...' node probes/probe-bootstrap.mjs # 握手 + 工具目录 node probes/probe-crud.mjs # 创建/完成/删除往返 node probes/probe-due.mjs # 截止日期(带 PROJECT_ID 可测绕行) node probes/probe-reorder.mjs # sortOrder 语义 node probes/probe-queries.mjs # P2 查询工具契约探测 ``` ## 卸载 ```sh dsh plugin --profile web remove dsh-dida ``` 重启 `dsh web`。工具、面板、配置页、系统提示等全部运行态注册随插件卸载一并撤销。唯一静态残留是用户设置文档里的令牌——卸载前用 TickTick 配置页的**清除凭据**按钮抹掉(或删除令牌文件 / `DIDA365_TOKEN` 变量)即可彻底断开。想保留安装但暂时停用,改禁用该行: ```yaml - id: ticktick disabled: true ``` ### 从 DSH Desktop 市场安装 所有 PerryLink 插件均可在 DSH Desktop 内置市场中浏览:**市场 → 来源 → 添加来源 → 粘贴** `https://perrylink-dsh-catalog.perrylink.workers.dev/catalog-source.json` **→ 选中**。安装仍需通过市场的 npm 身份校验与你的确认。 ## PerryLink DSH Plugin Family 本项目是 [PerryLink](https://github.com/PerryLink) 维护的 DeepSeek Harness 插件家族成员。完整名单默认折叠,避免每个 README 的首屏被长表淹没;点击展开可查看每一行及其状态。
展开全部插件 | 插件 | 状态 | |---|---| | **[dsh-aqua-input-check](https://github.com/PerryLink/dsh-aqua-input-check)** | | | **[dsh-archive-check](https://github.com/PerryLink/dsh-archive-check)** | | | **[dsh-auto-review](https://github.com/PerryLink/dsh-auto-review)** | | | **[dsh-autotier](https://github.com/PerryLink/dsh-autotier)** | | | **[dsh-bid-ca-precheck](https://github.com/PerryLink/dsh-bid-ca-precheck)** | | | **[dsh-bid-qual-check](https://github.com/PerryLink/dsh-bid-qual-check)** | | | **[dsh-cert-mcp](https://github.com/PerryLink/dsh-cert-mcp)** | | | **[dsh-checkpoint-rewind](https://github.com/PerryLink/dsh-checkpoint-rewind)** | | | **[dsh-click](https://github.com/PerryLink/dsh-click)** | | | **[dsh-composer-history](https://github.com/PerryLink/dsh-composer-history)** | | | **[dsh-contract-stance](https://github.com/PerryLink/dsh-contract-stance)** | | | **[dsh-customs-doc-check](https://github.com/PerryLink/dsh-customs-doc-check)** | | | **[dsh-data-quality](https://github.com/PerryLink/dsh-data-quality)** | | | **[dsh-demurrage-ledger](https://github.com/PerryLink/dsh-demurrage-ledger)** | | | **[dsh-doublecheck](https://github.com/PerryLink/dsh-doublecheck)** | | | **[dsh-drill-script-check](https://github.com/PerryLink/dsh-drill-script-check)** | | | **[dsh-eia-guide-check](https://github.com/PerryLink/dsh-eia-guide-check)** | | | **[dsh-emergency-plan](https://github.com/PerryLink/dsh-emergency-plan)** | | | **[dsh-essay-rubric-check](https://github.com/PerryLink/dsh-essay-rubric-check)** | | | **[dsh-evidence-check](https://github.com/PerryLink/dsh-evidence-check)** | | | **[dsh-export-ctl-check](https://github.com/PerryLink/dsh-export-ctl-check)** | | | **[dsh-fast](https://github.com/PerryLink/dsh-fast)** | | | **[dsh-fmea-table-check](https://github.com/PerryLink/dsh-fmea-table-check)** | | | **[dsh-forecast-penalty](https://github.com/PerryLink/dsh-forecast-penalty)** | | | **[dsh-fund-research](https://github.com/PerryLink/dsh-fund-research)** | | | **[dsh-github](https://github.com/PerryLink/dsh-github)** | | | **[dsh-gongwen-flow-check](https://github.com/PerryLink/dsh-gongwen-flow-check)** | | | **[dsh-gongwen-word-check](https://github.com/PerryLink/dsh-gongwen-word-check)** | | | **[dsh-guard-plan-qc](https://github.com/PerryLink/dsh-guard-plan-qc)** | | | **[dsh-hazchem-check](https://github.com/PerryLink/dsh-hazchem-check)** | | | **[dsh-hazplan-check](https://github.com/PerryLink/dsh-hazplan-check)** | | | **[dsh-hidden-risk-map](https://github.com/PerryLink/dsh-hidden-risk-map)** | | | **[dsh-hs-classify](https://github.com/PerryLink/dsh-hs-classify)** | | | **[dsh-icd-rule-check](https://github.com/PerryLink/dsh-icd-rule-check)** | | | **[dsh-industry-research](https://github.com/PerryLink/dsh-industry-research)** | | | **[dsh-lawcite-adapter](https://github.com/PerryLink/dsh-lawcite-adapter)** | | | **[dsh-laya](https://github.com/PerryLink/dsh-laya)** | | | **[dsh-lc-doc-check](https://github.com/PerryLink/dsh-lc-doc-check)** | | | **[dsh-learning-gap-check](https://github.com/PerryLink/dsh-learning-gap-check)** | | | **[dsh-library](https://github.com/PerryLink/dsh-library)** | | | **[dsh-local-ai](https://github.com/PerryLink/dsh-local-ai)** | | | **[dsh-lsp-actions](https://github.com/PerryLink/dsh-lsp-actions)** | | | **[dsh-mask](https://github.com/PerryLink/dsh-mask)** | | | **[dsh-mcp-panel](https://github.com/PerryLink/dsh-mcp-panel)** | | | **[dsh-medrec-qc](https://github.com/PerryLink/dsh-medrec-qc)** | | | **[dsh-memento](https://github.com/PerryLink/dsh-memento)** | | | **[dsh-nsfc-form-check](https://github.com/PerryLink/dsh-nsfc-form-check)** | | | **[dsh-nurse-record-check](https://github.com/PerryLink/dsh-nurse-record-check)** | | | **[dsh-observe](https://github.com/PerryLink/dsh-observe)** | | | **[dsh-origin-rvc-check](https://github.com/PerryLink/dsh-origin-rvc-check)** | | | **[dsh-ota-review-check](https://github.com/PerryLink/dsh-ota-review-check)** | | | **[dsh-output-styles](https://github.com/PerryLink/dsh-output-styles)** | | | **[dsh-paper-doc-adapter](https://github.com/PerryLink/dsh-paper-doc-adapter)** | | | **[dsh-permission-rules](https://github.com/PerryLink/dsh-permission-rules)** | | | **[dsh-permit-report-check](https://github.com/PerryLink/dsh-permit-report-check)** | | | **[dsh-pipeline-check](https://github.com/PerryLink/dsh-pipeline-check)** | | | **[dsh-pleading-draft](https://github.com/PerryLink/dsh-pleading-draft)** | | | **[dsh-plugin-doctor](https://github.com/PerryLink/dsh-plugin-doctor)** | | | **[dsh-plugin-guide](https://github.com/PerryLink/dsh-plugin-guide)** | | | **[dsh-plugin-kit](https://github.com/PerryLink/dsh-plugin-kit)** | | | **[dsh-plugin-upgrade](https://github.com/PerryLink/dsh-plugin-upgrade)** | | | **[dsh-policy-brief-draft](https://github.com/PerryLink/dsh-policy-brief-draft)** | | | **[dsh-power-loss-split](https://github.com/PerryLink/dsh-power-loss-split)** | | | **[dsh-power-ticket-check](https://github.com/PerryLink/dsh-power-ticket-check)** | | | **[dsh-ppap-check](https://github.com/PerryLink/dsh-ppap-check)** | | | **[dsh-protest-deadline](https://github.com/PerryLink/dsh-protest-deadline)** | | | **[dsh-railway-window](https://github.com/PerryLink/dsh-railway-window)** | | | **[dsh-repair-order-qc](https://github.com/PerryLink/dsh-repair-order-qc)** | | | **[dsh-research-report](https://github.com/PerryLink/dsh-research-report)** | | | **[dsh-review-reply-check](https://github.com/PerryLink/dsh-review-reply-check)** | | | **[dsh-rulefile-check](https://github.com/PerryLink/dsh-rulefile-check)** | | | **[dsh-safety-brief-check](https://github.com/PerryLink/dsh-safety-brief-check)** | | | **[dsh-score](https://github.com/PerryLink/dsh-score)** | | | **[dsh-session-sync](https://github.com/PerryLink/dsh-session-sync)** | | | **[dsh-site-log-check](https://github.com/PerryLink/dsh-site-log-check)** | | | **[dsh-skill-pack-security](https://github.com/PerryLink/dsh-skill-pack-security)** | | | **[dsh-soe-decision-check](https://github.com/PerryLink/dsh-soe-decision-check)** | | | **[dsh-soilwater-check](https://github.com/PerryLink/dsh-soilwater-check)** | | | **[dsh-sop-sync-check](https://github.com/PerryLink/dsh-sop-sync-check)** | | | **[dsh-spc-gbt-adapter](https://github.com/PerryLink/dsh-spc-gbt-adapter)** | | | **[dsh-talk](https://github.com/PerryLink/dsh-talk)** | | | **[dsh-tender-extract](https://github.com/PerryLink/dsh-tender-extract)** | | | **[dsh-tender-matrix](https://github.com/PerryLink/dsh-tender-matrix)** | | | **[dsh-test-drive](https://github.com/PerryLink/dsh-test-drive)** | | | **[dsh-dida](https://github.com/PerryLink/dsh-dida)** | | | **[dsh-translate](https://github.com/PerryLink/dsh-translate)** | | | **[dsh-warranty-calc](https://github.com/PerryLink/dsh-warranty-calc)** | | | **[dsh-budget](https://github.com/PerryLink/dsh-budget)** | 🧊 已冻结 — 见仓库 README | | **[dsh-claude-move](https://github.com/PerryLink/dsh-claude-move)** | 🧊 已冻结 — 见仓库 README | | **[dsh-defend](https://github.com/PerryLink/dsh-defend)** | 🧊 已冻结 — 见仓库 README | | **[dsh-draw](https://github.com/PerryLink/dsh-draw)** | 🧊 已冻结 — 见仓库 README | | **[dsh-reach](https://github.com/PerryLink/dsh-reach)** | 🧊 已冻结 — 见仓库 README | | **[dsh-background-agents](https://github.com/PerryLink/dsh-background-agents)** | 🚫 已退役 — 见仓库 README | | **[dsh-session-pin](https://github.com/PerryLink/dsh-session-pin)** | 🚫 已退役 — 见仓库 README | | **[dsh-team-rooms](https://github.com/PerryLink/dsh-team-rooms)** | 🚫 已退役 — 见仓库 README |
## License [Apache-2.0](LICENSE)