helixlife-service-cli
v0.1.9
Published
helixlife 网站后台命令行工具
Readme
helixlife 网站后台 CLI
单一 npm 包 helixlife-service-cli,源码在 cli/ 目录。
Skill 与 CLI 已分离:
cli/skills/(含SKILL.md与references/)不随本 npm 包发布,后续将迁至独立 skill 仓库。Agent 自然语言交互请安装 Skill。
安装
npm install -g helixlife-service-cli
helixlife auth login # 获取授权链接 + 打开浏览器完成授权
helixlife auth status # 确认授权是否成功Token 写入本地文件 ~/.config/helixlife/user-access-token.txt(由 helixlife auth login / helixlife login 浏览器授权流程获取)。
环境地址
默认使用生产基址(config.ts)。可通过本地配置覆盖 api / agent_api(完整 URL,原样使用):
helixlife config # 查看当前生效地址
helixlife config set api https://api.example.com
helixlife config set agent_api https://agent.example.com本地配置文件:~/.config/helixlife/config.json。newidea 基址固定,不可覆盖。
配置路径
本地保存:
- 配置:
~/.config/helixlife/config.json - Token:
~/.config/helixlife/user-access-token.txt
本地开发
npm install
npm run build
npm link
helixlife --version发布
在仓库根目录执行:
npm publishprepublishOnly 会自动执行 npm run build。发布内容仅含 cli/bin 与 cli/dist,不含 cli/skills/。
Skill(独立仓库)
Agent 侧使用需安装 Skill 包(SKILL.md + references/),与 CLI 分开维护:
helixlife-service-cli/ # skill 仓库(规划中,当前暂存于本仓库 cli/skills/)
├── SKILL.md # 唯一 Skill 入口
└── references/ # 各业务模块命令参考
├── workbench/
│ ├── jova.md
│ ├── sci.md
│ └── nsfc.md
└── application.md安装到 Agent 后,references 位于 <Skill 安装目录>/references/,例如 Cursor:~/.cursor/skills/helixlife-service-cli/references/。
目录结构(CLI 仓库)
helixlife-service-cli/
├── package.json # npm 包定义(仅 CLI)
└── cli/
├── bin/helixlife.js
├── dist/ # 编译产物(随 npm 发布)
├── src/
└── skills/ # 本地开发用,不随 npm 发布
├── SKILL.md
└── references/命令命名空间
| 模块 | 命令示例 | 状态 |
| -------- | -------------------------- | ------ |
| 综述 | helixlife workbench jova | 已实现 |
| SCI 论著 | helixlife workbench sci | 已实现 |
| 基金 | helixlife workbench nsfc | Step1 |
| AI 应用 | helixlife application | 已实现 |
