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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@gitee-code/plugin-ai

v0.0.34

Published

gitee前端插件

Readme

code AI独立插件

本地开发

  1. 放开manifest.yml文件中对env的注释
  2. 主线代码中声明变量AI_ENABLED为true
window.CODE_K8S_ENVS = {
  "AI_ENABLED": true,
  "HELP_ENABLED": true,
  "LEARN_GIT_BRANCHING_ENABLED": true,
  "WEBIDE_ENABLED": true,
  "PLUGIN_MODE": "APP_CENTER"
}
  1. 运行

发布npm

npm login --registry https://registry.npmjs.org
npm run publish-npm

部署

支持以npm包发布,或者只上传ai插件两种方式

  1. npm包形式, 客户插件分支的package.json文件中添加
"dependencies": {
  "@gitee-code/plugin-ai": "0.0.26",
}
  1. 只上传ai插件,运行build-package打包插件,上传应用中心

部署后配置

应用中心配置环境变量

{
  "api_key": {
    "pr_ai_form": true,
    "pr_ai_form_title": "app-BTEiqYIrVe4tjC81geJ2zD6Z",
    "pr_ai_form_body": "app-zs3Nkw60NhMpQfsJyotHD328",
    "pr_ai_review": "app-AkxQD3B8L1EThHuxkC1DeFgC",
    "pr_ai_review_single": "app-AkxQD3B8L1EThHuxkC1DeFgC",
    "pr_ai_file": "app-Oj0J2OlA5JJsaWm6tKrjArxe",
    "pr_ai_suggestion": "app-eKx06uD4GGw5S9zyQ3aBErs2",
    "code_ai_file": true,
    "code_ai_file_translate": "app-ITBqb1ngEA0235v0myAI9SSS",
    "code_ai_file_review": "app-PH9xD6nQLkiUxyR3f5cDjpJ2",
    "code_ai_file_refactoring": "app-WefFkLpRbm8794qpU99DHRPo",
    "code_ai_completion": "app-y47t3S4UEG5HUipzv31FJdYT"
  }
}
  • pr_ai_form: 控制 新建、编辑PR页面ai生成标题描述功能是否开启
  • pr_ai_form_title:ai生成PR标题的ai应用的apiKey
  • pr_ai_form_body:ai生成PR描述的ai应用的apiKey
  • pr_ai_review:pr详情合并PR按钮左侧 ai评审按钮 的ai应用的apiKey,不设置的话会关闭ai评审按钮功能
  • pr_ai_review_single:pr详情单个文件的ai评审开关,设置值为该应用的apiKey
  • pr_ai_file: pr详情 刷新PR按钮右侧prai评审按钮的功能开关 ,设置值为该应用的apiKey
  • pr_ai_suggestion: ai修复建议,设置值为该应用的apiKey
  • code_ai_file: 代码-文件详情,代码翻译、代码检查、代码重构功能的开关,布尔值
  • code_ai_file_translate: 代码翻译功能,不设置的话不显示该功能,设置值为该应用的apiKey
  • code_ai_file_review: 代码检查功能,不设置的话不显示该功能,设置值为该应用的apiKey
  • code_ai_file_refactoring: 代码重构功能,不设置的话不显示该功能,设置值为该应用的apiKey
  • code_ai_completion: ai续写功能,不设置的话不显示该功能,设置值为该应用的apiKey