diff --git a/AGENTS.md b/AGENTS.md deleted file mode 100644 index f3ab93f..0000000 --- a/AGENTS.md +++ /dev/null @@ -1,20 +0,0 @@ -# AGENTS.md - -## Project - -opencode-plugin-loop — `/loop` command plugin for OpenCode (fixed / adaptive / maintenance scheduling). - -- Source: `src/` (TypeScript, SolidJS TUI views) -- Tests: `tests/` (node:test, runs against the `dist/` build output) -- Build + test: `npm test` (builds to `dist/` via Babel/tsc, then runs the full suite) - -## Development workflow (required) - -1. **Branch first**: cut a feature branch (e.g. `feat/xxx`) from the default branch; never commit directly to the default branch. -2. **Verify locally**: `npm test` must pass; for TUI / command-behavior changes, also verify end-to-end in OpenCode. -3. **PR and merge**: open a PR with `gh pr create` and merge into the default branch after verification. -4. **Publish to npm**: - - Bump `package.json` semver after merging (feat → minor, fix → patch). - - The npm access token lives in `/Users/wangshuai/Downloads/npm_access_token.txt`; use the most recently issued token in that file. - - Use the token only via environment variables or throwaway publish-time config (e.g. `//registry.npmjs.org/:_authToken`); **never write it into the repo or commit it**; local `.npmrc` must stay out of git. - - Publish with `npm publish`, then confirm via `npm view opencode-plugin-loop version`. diff --git a/CLAUDE.md b/CLAUDE.md deleted file mode 100644 index 9830c91..0000000 --- a/CLAUDE.md +++ /dev/null @@ -1,20 +0,0 @@ -# CLAUDE.md - -## 项目 - -opencode-plugin-loop — OpenCode 的 `/loop` 命令插件,支持 fixed / adaptive / maintenance 三种调度模式。 - -- 源码:`src/`(TypeScript,SolidJS TUI 视图) -- 测试:`tests/`(node:test,运行于 `dist/` 构建产物之上) -- 构建 + 测试:`npm test`(先 Babel/tsc 构建到 `dist/`,再跑全部测试) - -## 开发流程(必须遵守) - -1. **新分支开发**:所有改动从默认分支切 feature 分支(如 `feat/xxx`),不直接在默认分支上提交。 -2. **本地验证**:`npm test` 全部通过;涉及 TUI/命令行为的改动需在 OpenCode 中手动端到端验证。 -3. **提交 PR 并合并**:验证通过后 `gh pr create`,合并到默认分支。 -4. **发布 npm**: - - 合并后按语义化版本 bump `package.json` 版本号(feat → minor,fix → patch)。 - - npm access token 存放在 `/Users/wangshuai/Downloads/npm_access_token.txt`,使用该文件中最新下发的 token 发布。 - - token 只通过环境变量或发布时临时配置使用(如 `//registry.npmjs.org/:_authToken`),**绝不写入仓库、绝不提交**;本地 `.npmrc` 不得进入 git。 - - 发布:`npm publish`,发布后 `npm view opencode-plugin-loop version` 确认。