JSPM

  • Created
  • Published
  • Downloads 798
  • Score
    100M100P100Q108408F
  • License MIT

YuanFlow API CLI and skill installer for supported AI coding agents.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (yuanflow-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    yuanflow-cli

    YuanFlow 的 npm 包,包含两个命令入口:

    • yuanflow-cli:社媒 API 转 CLI,覆盖完整 registry、快捷命令、schema、dry-run 和 agent-json 输出。
    • yuanflow-skill:把 YuanFlow-skill 注入到本机支持的 AI Agent skills 目录。

    安装

    需要 Node.js 20 或更高版本。

    npm install -g yuanflow-cli

    安装后可用:

    yuanflow-cli --help
    yuanflow-skill list-agents

    API CLI

    yuanflow-cli config set-token <你的令牌>
    yuanflow-cli config set-base-url https://open.yuanchuangai.com
    yuanflow-cli douyin video-detail "https://v.douyin.com/xxx/" --format agent-json
    yuanflow-cli shortcuts douyin
    yuanflow-cli commands list
    yuanflow-cli schema douyin.video-detail
    yuanflow-cli list douyin

    环境变量:

    YUANCHUANG_API_TOKEN=<你的令牌>

    token 优先级:--token > YUANCHUANG_API_TOKEN > 本地 config.token。独立 CLI 用户可以使用环境变量或 config set-token;在 YuanFlow 主程序内使用时,token 由主程序认证系统注入,不需要手动配置。

    Skill 安装器

    yuanflow-skill list-agents
    yuanflow-skill list-skills
    yuanflow-skill install
    yuanflow-skill install --agent codex,cursor
    yuanflow-skill install --project
    yuanflow-skill install --dry-run
    yuanflow-skill uninstall --agent codex

    安装器会自动发现 YuanFlow-skill 根目录和一级子目录中的 SKILL.md,并以 yuanflow-skill bundle 形式注入到目标 Agent。

    开发检查

    npm test
    npm run pack:check
    npm run release:check