npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@libai168/dsh-tool-linear

v0.3.0

Published

Linear tools for DeepSeek Harness: search issues, inspect projects/cycles/teams/labels/users, create and update tickets, and comment

Readme

dsh-tool-linear

English | 中文

为 DeepSeek Harness(dsh)提供 Linear Issue 管理能力的 Cordis 工具插件。Agent 可以通过自然语言搜索和筛选工单、查看工单详情、创建和更新工单、添加和查看评论,并读取团队、项目、Cycle、标签、用户和工作流状态信息。

插件遵循官方「一切皆插件」架构,通过 ctx.tools.register(defineTool(...)) 注册模型可见工具,并符合 adding-a-tool 契约。

安装

直接从 GitHub 安装:

npm install github:LJH-snow/dsh-tool-linear

或从本地目录安装:

git clone https://github.com/LJH-snow/dsh-tool-linear
cd dsh-tool-linear
npm install && npm run build
npm install /path/to/dsh-tool-linear

需要 @deepseek-ai/cordis(^4.0.1)与 @deepseek-ai/dsh-tools(^0.1.0-rc.6)作为 peer 依赖,由宿主 dsh 运行时提供。

配置

在 dsh 的组合配置(cordis.yml)中加载插件:

- name: 'github:LJH-snow/dsh-tool-linear'
  config:
    apiKey: 'lin_api_xxx'              # 必填:Linear 个人 API Key
    baseUrl: 'https://api.linear.app/graphql'  # 可选
    timeoutMs: 15000                    # 可选,默认 15000

完整示例见 examples/cordis.yml。

安全说明:第一版所有工具都需要 API Key,因为 Linear 工作区有访问控制,而且部分工具会修改工单。请在 Linear Settings > Security & access 创建个人 API Key,授予最小必要权限,不要把凭据写入版本库。

提供的工具

| 工具 | 说明 | 需要凭据 | |---|---|---| | linear_search_issues | 按标题、编号、描述或评论内容搜索工单 | 是 | | linear_list_issues | 按团队、项目、Cycle 或工作流状态列出工单 | 是 | | linear_get_issue | 按 UUID 或 ABC-123 编号查看工单详情 | 是 | | linear_create_issue | 创建工单:标题、描述、优先级、项目、Cycle、经办人、标签、状态、截止日期 | 是 | | linear_update_issue | 更新标题、描述、优先级、项目、Cycle、经办人、标签、状态或截止日期 | 是 | | linear_add_issue_comment | 给工单添加评论 | 是 | | linear_list_issue_comments | 查看工单评论 | 是 | | linear_list_cycles | 查看团队的 Cycle 列表 | 是 | | linear_get_cycle | 查看 Cycle 详情 | 是 | | linear_list_projects | 查看项目列表,可按团队筛选 | 是 | | linear_get_project | 查看项目详情、日期、进度、健康状态和团队 | 是 | | linear_list_teams | 列出 API Key 可见的团队 | 是 | | linear_get_team | 查看团队详情 | 是 | | linear_list_workflow_states | 查看团队工作流状态,适合选择工单状态 | 是 | | linear_list_labels | 查看标签列表,可按团队筛选 | 是 | | linear_get_label | 查看标签详情 | 是 | | linear_list_users | 查看用户列表,可按姓名、显示名或邮箱筛选 | 是 | | linear_get_user | 查看用户详情 | 是 |

行为约定

  • 未配置凭据时返回明确业务值:读工具返回 { authenticated: false, ... },写工具返回 { created: false, reason } 或 { ok: false, reason }。
  • 工单、Cycle、项目、团队、标签或用户不存在映射为 { found: false }。
  • 写操作的 GraphQL 校验和用户错误映射为 { created: false, reason } 或 { ok: false, reason }。
  • 凭据无效(401)、访问禁止(403)、限流(429)、服务器错误(5xx)等基础设施错误直接抛出 LinearError。
  • 每个请求都透传 exec.signal,并使用可配置超时(默认 15 秒)。

开发

npm install
npm run typecheck
npm test
npm run build

架构与测试计划见 DEVELOPMENT.md。

License

MIT