@c-d-cc/reap 0.15.0 → 0.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +9 -6
- package/README.ko.md +9 -6
- package/README.md +9 -6
- package/README.zh-CN.md +9 -6
- package/dist/cli.js +1037 -323
- package/dist/templates/commands/reap.evolve.recovery.md +5 -0
- package/dist/templates/commands/reap.refreshKnowledge.md +1 -1
- package/dist/templates/commands/reap.update-genome.md +5 -0
- package/dist/templates/help/en.txt +1 -1
- package/dist/templates/help/ko.txt +1 -1
- package/dist/templates/hooks/genome-loader.cjs +54 -11
- package/dist/templates/hooks/onLifeCompleted.integrity-check.sh +14 -0
- package/dist/templates/hooks/reap-guide.md +8 -2
- package/dist/templates/hooks/session-start.cjs +13 -7
- package/package.json +1 -1
package/README.ja.md
CHANGED
|
@@ -84,8 +84,9 @@ reap init my-project
|
|
|
84
84
|
cd my-project
|
|
85
85
|
reap init
|
|
86
86
|
|
|
87
|
-
# 2. Claude Code
|
|
87
|
+
# 2. Claude Codeでナレッジを同期してからGeneration全体を実行
|
|
88
88
|
claude
|
|
89
|
+
> /reap.sync
|
|
89
90
|
> /reap.evolve "ユーザー認証の実装"
|
|
90
91
|
```
|
|
91
92
|
|
|
@@ -221,9 +222,9 @@ Machine A:
|
|
|
221
222
|
| `reap init <name>` | プロジェクト初期化。`.reap/`構造を作成 |
|
|
222
223
|
| `reap status` | 現在のGeneration状態を確認 |
|
|
223
224
|
| `reap update` | コマンド/テンプレート/hookを最新バージョンに同期 |
|
|
224
|
-
| `reap fix` | `.reap
|
|
225
|
+
| `reap fix` | `.reap/`構造の診断と修復(`--check`で読み取り専用モード) |
|
|
225
226
|
| `reap clean` | 対話式オプションでREAPプロジェクトをリセット |
|
|
226
|
-
| `reap destroy` | プロジェクトからすべてのREAP
|
|
227
|
+
| `reap destroy` | プロジェクトからすべてのREAPファイルを削除("yes destroy"の入力で確認) |
|
|
227
228
|
| `reap help` | CLIコマンド + スラッシュコマンド + ワークフロー概要を出力(バージョン + 最新状況表示) |
|
|
228
229
|
| `reap run <cmd>` | スラッシュコマンドのスクリプトを直接実行(1行`.md`ラッパーが内部的に使用) |
|
|
229
230
|
|
|
@@ -241,7 +242,7 @@ REAPはスラッシュコマンドとセッションフックを通じてAIエ
|
|
|
241
242
|
|
|
242
243
|
### Script Orchestratorアーキテクチャ
|
|
243
244
|
|
|
244
|
-
v0.11.0より、
|
|
245
|
+
v0.11.0より、31個のスラッシュコマンドが**1行`.md`ラッパー + TypeScriptスクリプト**構造に移行しました。各`.md`ファイルは`reap run <cmd>`を呼び出し、TSスクリプト(`src/cli/commands/run/`)がすべての決定論的ロジックを処理して、AIエージェントにstructured JSONで指示します。一貫性とテスト容易性が大幅に向上しました。
|
|
245
246
|
|
|
246
247
|
### 署名ベースロック(Signature-Based Locking) [↗](https://reap.cc/docs/advanced)
|
|
247
248
|
|
|
@@ -315,7 +316,9 @@ autoIssueReport: true # デフォルト: true(gh CLIがある場合)
|
|
|
315
316
|
| `/reap.report` | REAPプロジェクトにバグ/フィードバックを報告(プライバシー保護) |
|
|
316
317
|
| `/reap.help` | 24+トピックのcontextual AIヘルプ |
|
|
317
318
|
| `/reap.update` | REAPパッケージのアップグレード + コマンド/テンプレート/hook同期 |
|
|
319
|
+
| `/reap.update-genome` | Generationなしで保留中のgenome-change backlogを適用 |
|
|
318
320
|
| **`/reap.evolve`** | **1つのGeneration全体を最初から最後まで実行(推奨)** |
|
|
321
|
+
| **`/reap.evolve.recovery`** | **失敗/中断したGenerationからの復旧** |
|
|
319
322
|
| **`/reap.pull <branch>`** | **Fetch + マージGeneration全体を実行(分散版 `/reap.evolve`)** |
|
|
320
323
|
| **`/reap.merge <branch>`** | **ローカルブランチのマージGeneration全体を実行(fetchなし)** |
|
|
321
324
|
| `/reap.push` | REAP状態を検証して現在のブランチをpush |
|
|
@@ -326,7 +329,7 @@ autoIssueReport: true # デフォルト: true(gh CLIがある場合)
|
|
|
326
329
|
| `/reap.merge.sync` | Genome-ソース間の整合性を検証(AI比較、ユーザー確認) |
|
|
327
330
|
| `/reap.merge.validation` | 機械的テストを実行(bun test、tsc、build) |
|
|
328
331
|
| **`/reap.merge.evolve`** | **マージライフサイクル全体を自動実行** |
|
|
329
|
-
| `/reap.refreshKnowledge` |
|
|
332
|
+
| `/reap.refreshKnowledge` | REAPコンテキストの再ロード(Genome、Environment、状態)。context compaction後やサブエージェントで使用 |
|
|
330
333
|
|
|
331
334
|
### SessionStart Hook [↗](https://reap.cc/docs/hooks)
|
|
332
335
|
|
|
@@ -360,7 +363,7 @@ strict:
|
|
|
360
363
|
|------|------|
|
|
361
364
|
| アクティブGenerationなし / 実装ステージ外 | コード変更は完全にブロック |
|
|
362
365
|
| Implementationステージ | `02-planning.md`の範囲内でのみ変更許可 |
|
|
363
|
-
| エスケープハッチ | ユーザーが「override」「bypass strict
|
|
366
|
+
| エスケープハッチ | ユーザーが「override」「bypass strict」等を明示的に要求した場合、その特定のアクションに限り許可。完了後strictモード再適用 |
|
|
364
367
|
|
|
365
368
|
**`strict.merge`** — Gitコマンド制御:有効にすると`git pull`/`push`/`merge`の直接使用が制限されます。エージェントが`/reap.pull`、`/reap.push`、`/reap.merge`の使用を案内します。
|
|
366
369
|
|
package/README.ko.md
CHANGED
|
@@ -84,8 +84,9 @@ reap init my-project
|
|
|
84
84
|
cd my-project
|
|
85
85
|
reap init
|
|
86
86
|
|
|
87
|
-
# 2. Claude Code에서 한 Generation 전체 실행
|
|
87
|
+
# 2. Claude Code에서 지식 동기화 후 한 Generation 전체 실행
|
|
88
88
|
claude
|
|
89
|
+
> /reap.sync
|
|
89
90
|
> /reap.evolve "사용자 인증 구현"
|
|
90
91
|
```
|
|
91
92
|
|
|
@@ -221,9 +222,9 @@ Machine A:
|
|
|
221
222
|
| `reap init <name>` | 프로젝트 초기화. `.reap/` 구조 생성 |
|
|
222
223
|
| `reap status` | 현재 Generation 상태 확인 |
|
|
223
224
|
| `reap update` | 커맨드/템플릿/훅을 최신 버전으로 동기화 |
|
|
224
|
-
| `reap fix` | `.reap/` 구조 진단 및 복구 |
|
|
225
|
+
| `reap fix` | `.reap/` 구조 진단 및 복구 (`--check`로 읽기 전용 모드) |
|
|
225
226
|
| `reap clean` | 대화형 옵션으로 REAP 프로젝트 초기화 |
|
|
226
|
-
| `reap destroy` | 프로젝트에서 모든 REAP 파일 제거 (확인
|
|
227
|
+
| `reap destroy` | 프로젝트에서 모든 REAP 파일 제거 ("yes destroy" 입력으로 확인) |
|
|
227
228
|
| `reap help` | CLI 명령어 + 슬래시 커맨드 + 워크플로우 요약 출력 (버전 + 최신 여부 표시) |
|
|
228
229
|
| `reap run <cmd>` | 슬래시 커맨드의 스크립트를 직접 실행 (1줄 `.md` wrapper가 내부적으로 사용) |
|
|
229
230
|
|
|
@@ -241,7 +242,7 @@ REAP은 슬래시 커맨드와 세션 훅을 통해 AI 에이전트와 통합됩
|
|
|
241
242
|
|
|
242
243
|
### Script Orchestrator 아키텍처
|
|
243
244
|
|
|
244
|
-
v0.11.0부터
|
|
245
|
+
v0.11.0부터 31개 슬래시 커맨드가 **1줄 `.md` wrapper + TypeScript 스크립트** 구조로 전환되었습니다. 각 `.md` 파일은 `reap run <cmd>`를 호출하고, TS 스크립트(`src/cli/commands/run/`)가 모든 결정적 로직을 처리하여 AI에게 structured JSON으로 지시합니다. 일관성과 테스트 용이성이 크게 향상되었습니다.
|
|
245
246
|
|
|
246
247
|
### 서명 기반 잠금 (Signature-Based Locking) [↗](https://reap.cc/docs/advanced)
|
|
247
248
|
|
|
@@ -315,7 +316,9 @@ Slash command가 `.claude/commands/`에 설치되어 전체 워크플로우를
|
|
|
315
316
|
| `/reap.report` | REAP 프로젝트에 버그/피드백 보고 (개인정보 보호) |
|
|
316
317
|
| `/reap.help` | 24+ 주제의 contextual AI 도움말 |
|
|
317
318
|
| `/reap.update` | REAP 패키지 업그레이드 + 커맨드/템플릿/훅 동기화 |
|
|
319
|
+
| `/reap.update-genome` | Generation 없이 대기 중인 genome-change backlog 적용 |
|
|
318
320
|
| **`/reap.evolve`** | **한 Generation 전체를 처음부터 끝까지 실행 (권장)** |
|
|
321
|
+
| **`/reap.evolve.recovery`** | **실패/중단된 Generation에서 복구** |
|
|
319
322
|
| **`/reap.pull <branch>`** | **Fetch + 전체 머지 Generation 실행 (분산 `/reap.evolve`)** |
|
|
320
323
|
| **`/reap.merge <branch>`** | **로컬 브랜치 전체 머지 Generation 실행 (fetch 없음)** |
|
|
321
324
|
| `/reap.push` | REAP 상태 검증 후 현재 브랜치 push |
|
|
@@ -326,7 +329,7 @@ Slash command가 `.claude/commands/`에 설치되어 전체 워크플로우를
|
|
|
326
329
|
| `/reap.merge.sync` | Genome-소스 간 일관성 검증 (AI 비교, 사용자 확인) |
|
|
327
330
|
| `/reap.merge.validation` | 기계적 테스트 실행 (bun test, tsc, build) |
|
|
328
331
|
| **`/reap.merge.evolve`** | **전체 머지 라이프사이클 자동 실행** |
|
|
329
|
-
| `/reap.refreshKnowledge` |
|
|
332
|
+
| `/reap.refreshKnowledge` | REAP 컨텍스트 재로드 (Genome, Environment, 상태). context compaction 후 또는 서브에이전트에서 사용 |
|
|
330
333
|
|
|
331
334
|
### SessionStart Hook [↗](https://reap.cc/docs/hooks)
|
|
332
335
|
|
|
@@ -360,7 +363,7 @@ strict:
|
|
|
360
363
|
|------|------|
|
|
361
364
|
| 활성 Generation 없음 / 구현 단계 외 | 코드 수정 완전 차단 |
|
|
362
365
|
| Implementation 단계 | `02-planning.md` 범위 내에서만 수정 허용 |
|
|
363
|
-
| Escape hatch | 사용자가 "override", "bypass strict" 등 명시적 요청 시
|
|
366
|
+
| Escape hatch | 사용자가 "override", "bypass strict" 등 명시적 요청 시 해당 작업에 한해 허용, 완료 후 strict 모드 재적용 |
|
|
364
367
|
|
|
365
368
|
**`strict.merge`** — Git 명령 제어: 활성화 시 `git pull`/`push`/`merge` 직접 사용이 제한됩니다. 에이전트가 `/reap.pull`, `/reap.push`, `/reap.merge` 사용을 안내합니다.
|
|
366
369
|
|
package/README.md
CHANGED
|
@@ -84,8 +84,9 @@ reap init my-project
|
|
|
84
84
|
cd my-project
|
|
85
85
|
reap init
|
|
86
86
|
|
|
87
|
-
# 2. Open Claude Code
|
|
87
|
+
# 2. Open Claude Code, sync knowledge, then run a full generation
|
|
88
88
|
claude
|
|
89
|
+
> /reap.sync
|
|
89
90
|
> /reap.evolve "Implement user authentication"
|
|
90
91
|
```
|
|
91
92
|
|
|
@@ -220,9 +221,9 @@ All distributed operations run through your AI agent:
|
|
|
220
221
|
| `reap init <name>` | Initialize project. Creates the `.reap/` structure |
|
|
221
222
|
| `reap status` | Check the current generation's status |
|
|
222
223
|
| `reap update` | Sync commands/templates/hooks to the latest version |
|
|
223
|
-
| `reap fix` | Diagnose and repair the `.reap/` structure |
|
|
224
|
+
| `reap fix` | Diagnose and repair the `.reap/` structure (`--check` for read-only mode) |
|
|
224
225
|
| `reap clean` | Reset REAP project with interactive options |
|
|
225
|
-
| `reap destroy` | Remove all REAP files from project (requires
|
|
226
|
+
| `reap destroy` | Remove all REAP files from project (requires typing "yes destroy" to confirm) |
|
|
226
227
|
| `reap help` | Print CLI commands, slash commands, and workflow summary |
|
|
227
228
|
| `reap run <cmd>` | Execute a slash command's script directly (used internally by 1-line `.md` wrappers) |
|
|
228
229
|
|
|
@@ -240,7 +241,7 @@ REAP integrates with AI agents through slash commands and session hooks. Current
|
|
|
240
241
|
|
|
241
242
|
### Script Orchestrator Architecture
|
|
242
243
|
|
|
243
|
-
Since v0.11.0, all
|
|
244
|
+
Since v0.11.0, all 31 slash commands follow a **1-line `.md` wrapper + TypeScript script** pattern. Each `.md` file simply calls `reap run <cmd>`, and the TS script (`src/cli/commands/run/`) handles all deterministic logic — returning structured JSON instructions for the AI agent. This ensures consistency and testability.
|
|
244
245
|
|
|
245
246
|
### Signature-Based Locking [↗](https://reap.cc/docs/advanced)
|
|
246
247
|
|
|
@@ -314,7 +315,9 @@ Slash commands are installed in `.claude/commands/` and drive the entire workflo
|
|
|
314
315
|
| `/reap.report` | Report a bug or feedback to the REAP project (privacy-safe) |
|
|
315
316
|
| `/reap.help` | Contextual AI help with 24+ topics |
|
|
316
317
|
| `/reap.update` | Upgrade REAP package + sync commands/templates/hooks |
|
|
318
|
+
| `/reap.update-genome` | Apply pending genome-change backlog without a generation |
|
|
317
319
|
| **`/reap.evolve`** | **Run an entire generation from start to finish (recommended)** |
|
|
320
|
+
| **`/reap.evolve.recovery`** | **Recover from a failed/interrupted generation** |
|
|
318
321
|
| **`/reap.pull <branch>`** | **Fetch + run full merge generation (distributed `/reap.evolve`)** |
|
|
319
322
|
| **`/reap.merge <branch>`** | **Run full merge generation for a local branch (no fetch)** |
|
|
320
323
|
| `/reap.push` | Validate REAP state and push current branch |
|
|
@@ -325,7 +328,7 @@ Slash commands are installed in `.claude/commands/` and drive the entire workflo
|
|
|
325
328
|
| `/reap.merge.sync` | Verify genome–source consistency (AI compares, user confirms) |
|
|
326
329
|
| `/reap.merge.validation` | Run mechanical testing (bun test, tsc, build) |
|
|
327
330
|
| **`/reap.merge.evolve`** | **Run the full merge lifecycle automatically** |
|
|
328
|
-
| `/reap.refreshKnowledge` |
|
|
331
|
+
| `/reap.refreshKnowledge` | Reload REAP context (Genome, Environment, state). Useful after context compaction or in subagents |
|
|
329
332
|
|
|
330
333
|
### SessionStart Hook [↗](https://reap.cc/docs/hooks)
|
|
331
334
|
|
|
@@ -361,7 +364,7 @@ strict:
|
|
|
361
364
|
|---------|----------|
|
|
362
365
|
| No active generation / non-implementation stage | Code modifications are fully blocked |
|
|
363
366
|
| Implementation stage | Only modifications within the scope of `02-planning.md` are allowed |
|
|
364
|
-
| Escape hatch | User explicitly requests "override" or "bypass strict" to
|
|
367
|
+
| Escape hatch | User explicitly requests "override" or "bypass strict" — bypass applies to that specific action only, then strict mode re-engages |
|
|
365
368
|
|
|
366
369
|
**`strict.merge`** — Git command control: when enabled, direct `git pull`/`push`/`merge` are restricted. The agent guides users to use `/reap.pull`, `/reap.push`, `/reap.merge` instead.
|
|
367
370
|
|
package/README.zh-CN.md
CHANGED
|
@@ -84,8 +84,9 @@ reap init my-project
|
|
|
84
84
|
cd my-project
|
|
85
85
|
reap init
|
|
86
86
|
|
|
87
|
-
# 2. 在Claude Code
|
|
87
|
+
# 2. 在Claude Code中同步知识后运行一个完整的Generation
|
|
88
88
|
claude
|
|
89
|
+
> /reap.sync
|
|
89
90
|
> /reap.evolve "实现用户认证"
|
|
90
91
|
```
|
|
91
92
|
|
|
@@ -221,9 +222,9 @@ Machine A:
|
|
|
221
222
|
| `reap init <name>` | 初始化项目。创建`.reap/`结构 |
|
|
222
223
|
| `reap status` | 查看当前Generation状态 |
|
|
223
224
|
| `reap update` | 将命令/模板/hook同步到最新版本 |
|
|
224
|
-
| `reap fix` | 诊断和修复`.reap
|
|
225
|
+
| `reap fix` | 诊断和修复`.reap/`结构(`--check`为只读模式) |
|
|
225
226
|
| `reap clean` | 通过交互式选项重置REAP项目 |
|
|
226
|
-
| `reap destroy` | 从项目中删除所有REAP
|
|
227
|
+
| `reap destroy` | 从项目中删除所有REAP文件(需输入"yes destroy"确认) |
|
|
227
228
|
| `reap help` | 输出CLI命令 + 斜杠命令 + 工作流摘要(显示版本 + 最新状态) |
|
|
228
229
|
| `reap run <cmd>` | 直接执行斜杠命令的脚本(由1行`.md` wrapper内部调用) |
|
|
229
230
|
|
|
@@ -241,7 +242,7 @@ REAP通过斜杠命令和会话钩子与AI代理集成。当前支持的代理
|
|
|
241
242
|
|
|
242
243
|
### Script Orchestrator架构
|
|
243
244
|
|
|
244
|
-
从v0.11.0开始,
|
|
245
|
+
从v0.11.0开始,31个斜杠命令全部采用**1行`.md` wrapper + TypeScript脚本**模式。每个`.md`文件仅调用`reap run <cmd>`,TS脚本(`src/cli/commands/run/`)处理所有确定性逻辑,以structured JSON形式指示AI代理。大幅提升了一致性和可测试性。
|
|
245
246
|
|
|
246
247
|
### 签名锁定(Signature-Based Locking) [↗](https://reap.cc/docs/advanced)
|
|
247
248
|
|
|
@@ -315,7 +316,9 @@ autoIssueReport: true # 默认值: true(检测到gh CLI时)
|
|
|
315
316
|
| `/reap.report` | 向REAP项目报告bug/反馈(隐私保护) |
|
|
316
317
|
| `/reap.help` | 24+主题的上下文AI帮助 |
|
|
317
318
|
| `/reap.update` | 升级REAP包 + 同步命令/模板/hook |
|
|
319
|
+
| `/reap.update-genome` | 无需Generation即可应用待处理的genome-change backlog |
|
|
318
320
|
| **`/reap.evolve`** | **从头到尾运行一个完整的Generation(推荐)** |
|
|
321
|
+
| **`/reap.evolve.recovery`** | **从失败/中断的Generation中恢复** |
|
|
319
322
|
| **`/reap.pull <branch>`** | **Fetch + 运行完整合并Generation(分布式 `/reap.evolve`)** |
|
|
320
323
|
| **`/reap.merge <branch>`** | **本地分支完整合并Generation(无需fetch)** |
|
|
321
324
|
| `/reap.push` | 验证REAP状态并push当前分支 |
|
|
@@ -326,7 +329,7 @@ autoIssueReport: true # 默认值: true(检测到gh CLI时)
|
|
|
326
329
|
| `/reap.merge.sync` | 验证Genome与源代码的一致性(AI比较,用户确认) |
|
|
327
330
|
| `/reap.merge.validation` | 运行机械化测试(bun test、tsc、build) |
|
|
328
331
|
| **`/reap.merge.evolve`** | **自动运行完整的合并生命周期** |
|
|
329
|
-
| `/reap.refreshKnowledge` |
|
|
332
|
+
| `/reap.refreshKnowledge` | 重新加载REAP上下文(Genome、Environment、状态)。context compaction后或在子代理中使用 |
|
|
330
333
|
|
|
331
334
|
### SessionStart Hook [↗](https://reap.cc/docs/hooks)
|
|
332
335
|
|
|
@@ -360,7 +363,7 @@ strict:
|
|
|
360
363
|
|------|------|
|
|
361
364
|
| 无活跃Generation / 非实现阶段 | 代码修改完全阻止 |
|
|
362
365
|
| Implementation阶段 | 仅允许`02-planning.md`范围内的修改 |
|
|
363
|
-
| 逃生舱 | 用户明确请求"override"或"bypass strict"
|
|
366
|
+
| 逃生舱 | 用户明确请求"override"或"bypass strict"时,仅对该特定操作允许,完成后strict模式重新生效 |
|
|
364
367
|
|
|
365
368
|
**`strict.merge`** — Git命令控制:启用后,直接使用`git pull`/`push`/`merge`将被限制。代理会引导用户使用`/reap.pull`、`/reap.push`、`/reap.merge`。
|
|
366
369
|
|