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

kcode-pi

v0.2.30

Published

金蝶编码助手(kcode)— KCode runtime 扩展包,含 27 个 skill、38 条 kd-* 规则、5 个 kingdee-* 扩展、kd_cosmic_qa 领域工具、企业版项目模板

Readme

kcode-pi

金蝶编码助手 kcode:KCode runtime、技能、规则、金蝶领域工具与 MCP。

环境

  • Bun ≥ 1.3.14(推荐,与 monorepo 一致)
  • 或 Node ≥ 22 + 全局 bun(npm 包入口为 dist/kcode.js,仍由 Bun 执行)

本仓库开发:本地全局 kcode

KCodeV2 根目录bun install 后:

cd packages/kcode-pi
bun link
bun link --global kcode-pi

新开终端,在业务项目根目录

kcode --version
kcode

未 link 时也可直接:

bun E:\path\to\KCodeV2\packages\coding-agent\src\cli.ts --version

用户安装

一键(自动 Bun + 全局包): irm .../scripts/install-kcode.ps1 | iex(Windows)或 curl .../install-kcode.sh | sh(见 docs/KCODE_NPM_PUBLISH.md 完整 URL)。

npm install -g [email protected](需已装 Bun)。发布见 docs/KCODE_NPM_PUBLISH.md

常用子命令

CLI 入口:产品壳源码只在 packages/coding-agent/src/cli.ts / cli-commands.tspackages/kcode-pi 不再包含 cli/ 源入口;npm/bin 入口是 dist/kcode.js,由 scripts/generate-kcode-launcher.ts 生成并加载 @kingdee-kcode/coding-agent/cli。源码调试运行 bun packages/coding-agent/src/cli.ts <subcommand>;调试发布产物运行 bun packages/kcode-pi/dist/kcode.js <subcommand>

| 命令 | 说明 | |------|------| | kcode init --cosmic | 初始化 Cosmic Java 项目(生成 .trellis/ + .kcode/,写入产品画像到 .trellis/spec/project/index.md) | | kcode init --enterprise | 初始化企业版 C# / Python 项目(同上) | | kcode init-status | 检查当前目录是否已经初始化(不写文件) | | kcode auth-broker login <provider> | 完整 OAuth 登录(含 Anthropic / OpenAI Codex / GitHub Copilot 等白名单 provider 的 PKCE 流程) | | kcode auth-broker list | 列出全部支持的 OAuth provider | | kcode auth-broker logout [<provider>] | 注销已登录 provider | | kcode | 启动助手(已 init 则直接进入会话) | | kcode --version / kcode --help | 版本与帮助 |

故障排查入口

| 症状 | 排查命令 | |---|---| | "No OAuth login is waiting for a manual callback" | 裸 login / /login 应打开 provider 选择面板;只有在没有待完成登录时输入 /login <redirect URL> 才会出现该提示。若裸 login 触发它,先检查本机是否仍有旧 kd-core shim | | 找不到模型 | 用 kcode auth-broker list 确认 provider,再用 kcode auth-broker login <provider> 登录 | | 提示未初始化 | kcode init --cosmickcode init --enterprise(按产品线二选一) | | TUI 启动失败 | 先跑 kcode init-status,再检查 .kcode/settings.json.kcode/mcp.json 与模型登录状态 |

文档:仓库 docs/README.md(导航)、docs/USER_GUIDE.md;对外简明版 scripts/kcode-install-docs/USAGE.mdkcode-install