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-jira

v0.3.1

Published

Jira tools for DeepSeek Harness: search issues and users, inspect projects/types/priorities, manage tickets, comments, and transitions

Readme

dsh-tool-jira

English | 中文

为 DeepSeek Harness(dsh)提供 Jira Issue 管理能力的 Cordis 工具插件。Agent 可以通过自然语言执行 JQL 搜索、查找用户、查看项目/问题类型/优先级、创建和更新工单、添加评论,以及推进工作流状态。

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

安装

直接从 GitHub 安装:

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

或从本地目录安装:

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

需要 @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-jira'
  config:
    baseUrl: 'https://your-domain.atlassian.net'   # 必填
    email: '[email protected]'                       # Cloud API Token 认证必填
    apiToken: 'xxx'                                 # Atlassian API Token 或 PAT
    timeoutMs: 15000                                # 可选,默认 15000

完整示例见 examples/cordis.yml。

安全说明:第一版所有工具都需要凭据,因为 Jira 实例通常有访问控制,而且部分操作会修改工单。请使用最小权限的 API Token 或 PAT,不要把凭据写入版本库。

每次请求前都会校验目标地址。链路本地地址(169.254.0.0/16、fe80::/10,含其 IPv4-mapped 与 NAT64 形式)始终被拒绝——它们不可能是合法的 API 端点,且包含云元数据地址。内网自建端点默认保持可用。设置 enforcePublicEndpoint: true 可额外要求主机公网可达;该模式还会解析普通域名,并拒绝环回、私有、CGNAT、组播、保留以及全部 IANA 特殊用途地址段。

提供的工具

| 工具 | 说明 | 需要凭据 | |---|---|---| | jira_search_issues | 使用 JQL 搜索工单,最多 100 条 | 是 | | jira_search_my_issues | 搜索分配给当前认证用户的工单 | 是 | | jira_get_issue | 查看工单详情,ADF 描述会转为可读文本 | 是 | | jira_create_issue | 创建工单:摘要、类型、描述、标签、优先级、经办人 | 是 | | jira_update_issue | 更新摘要、描述、标签、优先级或经办人 | 是 | | jira_add_issue_comment | 给工单添加评论 | 是 | | jira_list_issue_comments | 查看工单评论,新的在前 | 是 | | jira_list_transitions | 查看工单可用的工作流流转 | 是 | | jira_transition_issue | 推进工单工作流状态 | 是 | | jira_list_projects | 列出当前用户可见的项目 | 是 | | jira_get_project | 查看项目详情:描述、负责人、类型、样式、归档状态 | 是 | | jira_list_issue_types | 列出当前用户可见的问题类型,包括子任务标志 | 是 | | jira_list_priorities | 列出优先级和状态颜色 | 是 | | jira_search_users | 按显示名、用户名或邮箱搜索用户,获取 Atlassian account id | 是 | | jira_get_user | 按 account id 查看用户:显示名、邮箱、激活状态、时区 | 是 |

行为约定

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

开发

npm install
npm run typecheck
npm test
npm run build

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

License

MIT