${feature.title}
${feature.description}
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c1c4912 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + test: + name: Cargo test + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Install stable Rust + uses: dtolnay/rust-toolchain@stable + + - name: Cache Cargo + uses: Swatinem/rust-cache@v2 + + - name: Run workspace tests + run: cargo test --workspace diff --git a/.gitignore b/.gitignore index f949afc..5204ca9 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,6 @@ task-*.log release-*.log .claude/* target/* + +# Static frontend deployment bundle +.deploy/ diff --git a/.issue-assets/copy.html b/.issue-assets/copy.html new file mode 100644 index 0000000..30f5e65 --- /dev/null +++ b/.issue-assets/copy.html @@ -0,0 +1,23 @@ + + +
${feature.description}
${layer.description}
${index < layers.length - 1 ? '' : ''}${release.description}
使用文档和 SDK 文档,帮助你从第一个 faux agent 开始,逐步接入工具、会话和插件。
+${section.code.content}${section.summary}
${paragraph}
`).join('')}${code}rpi 是一个 library-first 的 Rust SDK。用清晰的分层、可替换的模型 Provider 和真正可测试的工具循环,构建属于你的 coding agent。
+ + +Agent 不应该被锁在一个 CLI 里。rpi 把模型、循环、工具、会话和终端体验拆成可以独立替换的 Rust 层,让你从最小实验开始,逐步长成自己的产品。
从 Provider 到 CLI,单向依赖让核心库保持轻盈,也让你的扩展有明确的落点。
两个示例覆盖最重要的学习路径:先用 faux provider 跑通 Agent,再把真实文件系统和工具接进循环。
Rust cdylib 插件通过稳定 ABI 接入 Tool、Provider、Slash Command、事件和资源发现。宿主保留生命周期,插件只关注自己的能力。
了解插件系统核心能力优先稳定下来,再把更多 Provider、插件生态和 CLI 体验交给社区。
扩展、skills、providers 和 prompt templates 的静态目录。先从这里发现组合方式,再用 Cargo 或 Git 接入自己的 rpi 项目。
+cargo add rpi-tools这些条目先用静态 JSON 代替后端数据。以后可以直接接 crates.io、GitHub 或你自己的 registry。
${item.description}
${item.install}