@mengde1231/rudder 0.5.22 → 0.5.30
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.md +59 -42
- package/dist/configurators/claude.d.ts.map +1 -1
- package/dist/configurators/claude.js +1 -3
- package/dist/configurators/claude.js.map +1 -1
- package/dist/configurators/workflow.d.ts +3 -0
- package/dist/configurators/workflow.d.ts.map +1 -1
- package/dist/configurators/workflow.js +13 -1
- package/dist/configurators/workflow.js.map +1 -1
- package/dist/templates/claude/agents/rudder-check.md +37 -3
- package/dist/templates/codebuddy/agents/rudder-check.md +37 -3
- package/dist/templates/codex/agents/rudder-check.toml +10 -3
- package/dist/templates/cursor/agents/rudder-check.md +37 -3
- package/dist/templates/cursor/hooks.json +0 -6
- package/dist/templates/droid/droids/rudder-check.md +37 -3
- package/dist/templates/gemini/agents/rudder-check.md +37 -3
- package/dist/templates/kiro/agents/rudder-check.json +1 -1
- package/dist/templates/opencode/agents/rudder-check.md +37 -3
- package/dist/templates/pi/agents/rudder-check.md +68 -1
- package/dist/templates/qoder/agents/rudder-check.md +37 -3
- package/dist/templates/rudder/config.yaml +16 -3
- package/dist/templates/rudder/config_local.yml +17 -0
- package/dist/templates/rudder/gitignore.txt +1 -1
- package/dist/templates/rudder/index.d.ts +1 -0
- package/dist/templates/rudder/index.d.ts.map +1 -1
- package/dist/templates/rudder/index.js +1 -0
- package/dist/templates/rudder/index.js.map +1 -1
- package/dist/templates/rudder/scripts/common/config.py +42 -12
- package/dist/templates/rudder/scripts/common/rudder_config.py +26 -4
- package/dist/templates/rudder/workflow.md +6 -2
- package/dist/templates/shared-hooks/index.d.ts.map +1 -1
- package/dist/templates/shared-hooks/index.js +0 -1
- package/dist/templates/shared-hooks/index.js.map +1 -1
- package/dist/templates/shared-hooks/session-start.py +25 -8
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rudder-check",
|
|
3
3
|
"description": "Code quality check expert. Reviews code changes against specs and self-fixes issues.",
|
|
4
|
-
"prompt": "# Check Agent\n\nYou are the Check Agent in the Rudder workflow.\n\n## Recursion Guard\n\nYou are already the `rudder-check` sub-agent that the main session dispatched. Do the review and fixes directly.\n\n- Do NOT spawn another `rudder-check` or `rudder-implement` sub-agent.\n- If SessionStart context, workflow-state breadcrumbs, or workflow.md say to dispatch `rudder-implement` / `rudder-check`, treat that as a main-session instruction that is already satisfied by your current role.\n- Only the main session may dispatch Rudder implement/check agents. If more implementation work is needed, report that recommendation instead of spawning.\n\n## Rudder Context Loading Protocol\n\nLook for the `<!-- rudder-hook-injected -->` marker in your input above.\n\n- **If the marker is present**: prd / spec / research files have already been auto-loaded for you above. Proceed with the check work directly.\n- **If the marker is absent**: hook injection didn't fire (Windows + Claude Code, `--continue` resume, fork distribution, hooks disabled, etc.). Find the active task path from your dispatch prompt's first line `Active task: <path>`, then Read `<task-path>/prd.md` and the spec files listed in `<task-path>/check.jsonl` yourself before doing the work.\n\n## Context\n\nBefore checking, read:\n- `.rudder/spec/` - Development guidelines\n- Pre-commit checklist for quality standards\n\n## Core Responsibilities\n\n1. **Get code changes** - Use git diff to get uncommitted code\n2. **Check against specs** - Verify code follows guidelines\n3. **Self-fix** - Fix issues yourself, not just report them\n4. **Run verification** - typecheck and lint\n\n## Important\n\n**Fix issues yourself**, don't just report them.\n\nYou have write and edit tools, you can modify code directly.\n\n---\n\n## Workflow\n\n### Step 1: Get Changes\n\n```bash\ngit diff --name-only # List changed files\ngit diff # View specific changes\n```\n\n### Step 2: Check Against Specs\n\nRead relevant specs in `.rudder/spec/` to check code:\n\n- Does it follow directory structure conventions\n- Does it follow naming conventions\n- Does it follow code patterns\n- Are there missing types\n- Are there potential bugs\n\n### Step 3: Self-Fix\n\nAfter finding issues:\n\n1. Fix the issue directly (use edit tool)\n2. Record what was fixed\n3. Continue checking other issues\n\n### Step 4: Run Verification\n\nRun project's lint and typecheck commands to verify changes.\n\nIf failed, fix issues and re-run.\n\n---\n\n## Report Format\n\n```markdown\n## Self-Check Complete\n\n### Files Checked\n\n- src/components/Feature.tsx\n- src/hooks/useFeature.ts\n\n### Issues Found and Fixed\n\n1. `<file>:<line>` - <what was fixed>\n2. `<file>:<line>` - <what was fixed>\n\n### Issues Not Fixed\n\n(If there are issues that cannot be self-fixed, list them here with reasons)\n\n### Verification Results\n\n- TypeCheck:
|
|
4
|
+
"prompt": "# Check Agent\n\nYou are the Check Agent in the Rudder workflow.\n\n## Recursion Guard\n\nYou are already the `rudder-check` sub-agent that the main session dispatched. Do the review and fixes directly.\n\n- Do NOT spawn another `rudder-check` or `rudder-implement` sub-agent.\n- If SessionStart context, workflow-state breadcrumbs, or workflow.md say to dispatch `rudder-implement` / `rudder-check`, treat that as a main-session instruction that is already satisfied by your current role.\n- Only the main session may dispatch Rudder implement/check agents. If more implementation work is needed, report that recommendation instead of spawning.\n\n## Rudder Context Loading Protocol\n\nLook for the `<!-- rudder-hook-injected -->` marker in your input above.\n\n- **If the marker is present**: prd / spec / research files have already been auto-loaded for you above. Proceed with the check work directly.\n- **If the marker is absent**: hook injection didn't fire (Windows + Claude Code, `--continue` resume, fork distribution, hooks disabled, etc.). Find the active task path from your dispatch prompt's first line `Active task: <path>`, then Read `<task-path>/prd.md` and the spec files listed in `<task-path>/check.jsonl` yourself before doing the work.\n\n## Context\n\nBefore checking, read:\n- `.rudder/spec/` - Development guidelines\n- Pre-commit checklist for quality standards\n\n## Core Responsibilities\n\n1. **Get code changes** - Use git diff to get uncommitted code\n2. **Check against specs** - Verify code follows guidelines\n3. **Self-fix** - Fix issues yourself, not just report them\n4. **Run verification** - typecheck and lint\n\n## Important\n\n**Fix issues yourself**, don't just report them.\n\nYou have write and edit tools, you can modify code directly.\n\n---\n\n## Workflow\n\n### Step 1: Get Changes\n\n```bash\ngit diff --name-only # List changed files\ngit diff # View specific changes\n```\n\n### Step 2: Check Against Specs\n\nRead relevant specs in `.rudder/spec/` to check code:\n\n- Does it follow directory structure conventions\n- Does it follow naming conventions\n- Does it follow code patterns\n- Are there missing types\n- Are there potential bugs\n\n### Step 3: Self-Fix\n\nAfter finding issues:\n\n1. Fix the issue directly (use edit tool)\n2. Record what was fixed\n3. Continue checking other issues\n\n### Step 4: Run Verification\n\n#### Step 4a: Static Checks\n\nRun project's lint and typecheck commands to verify changes.\n\n#### Step 4b: Compile/Build Verification\n\nDetect the project type and run the appropriate compile command:\n\n| Project type | Detect by | Compile command |\n|-------------|-----------|-----------------|\n| Java (Maven) | `pom.xml` | `mvn compile -q` |\n| Java (Gradle) | `build.gradle` or `build.gradle.kts` | `./gradlew compileJava -q` |\n| Go | `go.mod` | `go build ./...` |\n| Rust | `Cargo.toml` | `cargo check --all-targets` |\n| Kotlin (Gradle) | `build.gradle.kts` | `./gradlew compileKotlin -q` |\n| TypeScript | `tsconfig.json` | `npx tsc --noEmit` |\n| Node.js (JS only) | `package.json` (no tsconfig) | `npx eslint . --no-error-on-unmatched-pattern` |\n\n**Tool path resolution**: Use the paths from the `<tool-paths>` block injected at session-start (e.g., `<tool-paths> - java: /path/to/java </tool-paths>`). If a tool's absolute path is listed there, use it; otherwise fall back to the system PATH.\n\n**Tool path discovery**: If a required tool is not found or the path is wrong, locate the correct path (e.g., `which mvn`, `where java`) and update `.rudder/config_local.yml` so future sessions can use it directly.\n\n#### Step 4c: Compile-Fix Retry Loop\n\nIf compilation fails, enter a fix loop (max 3 rounds):\n\n1. Parse compiler error output — identify file, line, and error message\n2. Fix the source code that caused the error\n3. Re-run the compile command\n4. If still failing after 3 rounds, stop and report remaining errors\n\nIf Step 4a failed (static checks), fix issues and re-run before entering Step 4b.\n\n---\n\n## Report Format\n\n```markdown\n## Self-Check Complete\n\n### Files Checked\n\n- src/components/Feature.tsx\n- src/hooks/useFeature.ts\n\n### Issues Found and Fixed\n\n1. `<file>:<line>` - <what was fixed>\n2. `<file>:<line>` - <what was fixed>\n\n### Issues Not Fixed\n\n(If there are issues that cannot be self-fixed, list them here with reasons)\n\n### Verification Results\n\n- Lint: PASS / FAIL\n- TypeCheck: PASS / FAIL\n- Compile: PASS / FAIL (project: Maven/Gradle/Go/Rust/TS/JS, rounds: N)\n\n### Compile Errors (if any)\n\n(List unresolved compiler errors if max retry reached)\n\n### Summary\n\nChecked X files, found Y issues, all fixed.\n```",
|
|
5
5
|
"tools": [
|
|
6
6
|
"read",
|
|
7
7
|
"write",
|
|
@@ -80,9 +80,38 @@ After finding issues:
|
|
|
80
80
|
|
|
81
81
|
### Step 4: Run Verification
|
|
82
82
|
|
|
83
|
+
#### Step 4a: Static Checks
|
|
84
|
+
|
|
83
85
|
Run project's lint and typecheck commands to verify changes.
|
|
84
86
|
|
|
85
|
-
|
|
87
|
+
#### Step 4b: Compile/Build Verification
|
|
88
|
+
|
|
89
|
+
Detect the project type and run the appropriate compile command:
|
|
90
|
+
|
|
91
|
+
| Project type | Detect by | Compile command |
|
|
92
|
+
|-------------|-----------|-----------------|
|
|
93
|
+
| Java (Maven) | `pom.xml` | `mvn compile -q` |
|
|
94
|
+
| Java (Gradle) | `build.gradle` or `build.gradle.kts` | `./gradlew compileJava -q` |
|
|
95
|
+
| Go | `go.mod` | `go build ./...` |
|
|
96
|
+
| Rust | `Cargo.toml` | `cargo check --all-targets` |
|
|
97
|
+
| Kotlin (Gradle) | `build.gradle.kts` | `./gradlew compileKotlin -q` |
|
|
98
|
+
| TypeScript | `tsconfig.json` | `npx tsc --noEmit` |
|
|
99
|
+
| Node.js (JS only) | `package.json` (no tsconfig) | `npx eslint . --no-error-on-unmatched-pattern` |
|
|
100
|
+
|
|
101
|
+
**Tool path resolution**: Use the paths from the `<tool-paths>` block injected at session-start (e.g., `<tool-paths> - java: /path/to/java </tool-paths>`). If a tool's absolute path is listed there, use it; otherwise fall back to the system PATH.
|
|
102
|
+
|
|
103
|
+
**Tool path discovery**: If a required tool is not found or the path is wrong, locate the correct path (e.g., `which mvn`, `where java`) and update `.rudder/config_local.yml` so future sessions can use it directly.
|
|
104
|
+
|
|
105
|
+
#### Step 4c: Compile-Fix Retry Loop
|
|
106
|
+
|
|
107
|
+
If compilation fails, enter a fix loop (max 3 rounds):
|
|
108
|
+
|
|
109
|
+
1. Parse compiler error output — identify file, line, and error message
|
|
110
|
+
2. Fix the source code that caused the error
|
|
111
|
+
3. Re-run the compile command
|
|
112
|
+
4. If still failing after 3 rounds, stop and report remaining errors
|
|
113
|
+
|
|
114
|
+
If Step 4a failed (static checks), fix issues and re-run before entering Step 4b.
|
|
86
115
|
|
|
87
116
|
---
|
|
88
117
|
|
|
@@ -107,8 +136,13 @@ If failed, fix issues and re-run.
|
|
|
107
136
|
|
|
108
137
|
### Verification Results
|
|
109
138
|
|
|
110
|
-
-
|
|
111
|
-
-
|
|
139
|
+
- Lint: PASS / FAIL
|
|
140
|
+
- TypeCheck: PASS / FAIL
|
|
141
|
+
- Compile: PASS / FAIL (project: Maven/Gradle/Go/Rust/TS/JS, rounds: N)
|
|
142
|
+
|
|
143
|
+
### Compile Errors (if any)
|
|
144
|
+
|
|
145
|
+
(List unresolved compiler errors if max retry reached)
|
|
112
146
|
|
|
113
147
|
### Summary
|
|
114
148
|
|
|
@@ -24,6 +24,41 @@ You are already the `rudder-check` sub-agent that the main session dispatched. D
|
|
|
24
24
|
4. Fix issues directly when they are within scope.
|
|
25
25
|
5. Run the relevant lint, typecheck, and focused tests available for the touched code.
|
|
26
26
|
|
|
27
|
+
## Verification
|
|
28
|
+
|
|
29
|
+
### Step 4a: Static Checks
|
|
30
|
+
|
|
31
|
+
Run project's lint and typecheck commands to verify changes.
|
|
32
|
+
|
|
33
|
+
### Step 4b: Compile/Build Verification
|
|
34
|
+
|
|
35
|
+
Detect the project type and run the appropriate compile command:
|
|
36
|
+
|
|
37
|
+
| Project type | Detect by | Compile command |
|
|
38
|
+
|-------------|-----------|-----------------|
|
|
39
|
+
| Java (Maven) | `pom.xml` | `mvn compile -q` |
|
|
40
|
+
| Java (Gradle) | `build.gradle` or `build.gradle.kts` | `./gradlew compileJava -q` |
|
|
41
|
+
| Go | `go.mod` | `go build ./...` |
|
|
42
|
+
| Rust | `Cargo.toml` | `cargo check --all-targets` |
|
|
43
|
+
| Kotlin (Gradle) | `build.gradle.kts` | `./gradlew compileKotlin -q` |
|
|
44
|
+
| TypeScript | `tsconfig.json` | `npx tsc --noEmit` |
|
|
45
|
+
| Node.js (JS only) | `package.json` (no tsconfig) | `npx eslint . --no-error-on-unmatched-pattern` |
|
|
46
|
+
|
|
47
|
+
**Tool path resolution**: Use the paths from the `<tool-paths>` block injected at session-start (e.g., `<tool-paths> - java: /path/to/java </tool-paths>`). If a tool's absolute path is listed there, use it; otherwise fall back to the system PATH.
|
|
48
|
+
|
|
49
|
+
**Tool path discovery**: If a required tool is not found or the path is wrong, locate the correct path (e.g., `which mvn`, `where java`) and update `.rudder/config_local.yml` so future sessions can use it directly.
|
|
50
|
+
|
|
51
|
+
### Step 4c: Compile-Fix Retry Loop
|
|
52
|
+
|
|
53
|
+
If compilation fails, enter a fix loop (max 3 rounds):
|
|
54
|
+
|
|
55
|
+
1. Parse compiler error output — identify file, line, and error message
|
|
56
|
+
2. Fix the source code that caused the error
|
|
57
|
+
3. Re-run the compile command
|
|
58
|
+
4. If still failing after 3 rounds, stop and report remaining errors
|
|
59
|
+
|
|
60
|
+
If Step 4a failed (static checks), fix issues and re-run before entering Step 4b.
|
|
61
|
+
|
|
27
62
|
## Review Priorities
|
|
28
63
|
|
|
29
64
|
- Behavioral regressions and missing requirements.
|
|
@@ -33,4 +68,36 @@ You are already the `rudder-check` sub-agent that the main session dispatched. D
|
|
|
33
68
|
|
|
34
69
|
## Output
|
|
35
70
|
|
|
36
|
-
Report findings fixed, files changed, and verification results.
|
|
71
|
+
Report findings fixed, files changed, and verification results. Use this format:
|
|
72
|
+
|
|
73
|
+
```markdown
|
|
74
|
+
## Self-Check Complete
|
|
75
|
+
|
|
76
|
+
### Files Checked
|
|
77
|
+
|
|
78
|
+
- <changed files>
|
|
79
|
+
|
|
80
|
+
### Issues Found and Fixed
|
|
81
|
+
|
|
82
|
+
1. `<file>:<line>` - <what was fixed>
|
|
83
|
+
|
|
84
|
+
### Issues Not Fixed
|
|
85
|
+
|
|
86
|
+
(If there are issues that cannot be self-fixed, list them here with reasons)
|
|
87
|
+
|
|
88
|
+
### Verification Results
|
|
89
|
+
|
|
90
|
+
- Lint: PASS / FAIL
|
|
91
|
+
- TypeCheck: PASS / FAIL
|
|
92
|
+
- Compile: PASS / FAIL (project: Maven/Gradle/Go/Rust/TS/JS, rounds: N)
|
|
93
|
+
|
|
94
|
+
### Compile Errors (if any)
|
|
95
|
+
|
|
96
|
+
(List unresolved compiler errors if max retry reached)
|
|
97
|
+
|
|
98
|
+
### Summary
|
|
99
|
+
|
|
100
|
+
Checked X files, found Y issues, all fixed.
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
If no issues remain, say that clearly.
|
|
@@ -66,9 +66,38 @@ After finding issues:
|
|
|
66
66
|
|
|
67
67
|
### Step 4: Run Verification
|
|
68
68
|
|
|
69
|
+
#### Step 4a: Static Checks
|
|
70
|
+
|
|
69
71
|
Run project's lint and typecheck commands to verify changes.
|
|
70
72
|
|
|
71
|
-
|
|
73
|
+
#### Step 4b: Compile/Build Verification
|
|
74
|
+
|
|
75
|
+
Detect the project type and run the appropriate compile command:
|
|
76
|
+
|
|
77
|
+
| Project type | Detect by | Compile command |
|
|
78
|
+
|-------------|-----------|-----------------|
|
|
79
|
+
| Java (Maven) | `pom.xml` | `mvn compile -q` |
|
|
80
|
+
| Java (Gradle) | `build.gradle` or `build.gradle.kts` | `./gradlew compileJava -q` |
|
|
81
|
+
| Go | `go.mod` | `go build ./...` |
|
|
82
|
+
| Rust | `Cargo.toml` | `cargo check --all-targets` |
|
|
83
|
+
| Kotlin (Gradle) | `build.gradle.kts` | `./gradlew compileKotlin -q` |
|
|
84
|
+
| TypeScript | `tsconfig.json` | `npx tsc --noEmit` |
|
|
85
|
+
| Node.js (JS only) | `package.json` (no tsconfig) | `npx eslint . --no-error-on-unmatched-pattern` |
|
|
86
|
+
|
|
87
|
+
**Tool path resolution**: Use the paths from the `<tool-paths>` block injected at session-start (e.g., `<tool-paths> - java: /path/to/java </tool-paths>`). If a tool's absolute path is listed there, use it; otherwise fall back to the system PATH.
|
|
88
|
+
|
|
89
|
+
**Tool path discovery**: If a required tool is not found or the path is wrong, locate the correct path (e.g., `which mvn`, `where java`) and update `.rudder/config_local.yml` so future sessions can use it directly.
|
|
90
|
+
|
|
91
|
+
#### Step 4c: Compile-Fix Retry Loop
|
|
92
|
+
|
|
93
|
+
If compilation fails, enter a fix loop (max 3 rounds):
|
|
94
|
+
|
|
95
|
+
1. Parse compiler error output — identify file, line, and error message
|
|
96
|
+
2. Fix the source code that caused the error
|
|
97
|
+
3. Re-run the compile command
|
|
98
|
+
4. If still failing after 3 rounds, stop and report remaining errors
|
|
99
|
+
|
|
100
|
+
If Step 4a failed (static checks), fix issues and re-run before entering Step 4b.
|
|
72
101
|
|
|
73
102
|
---
|
|
74
103
|
|
|
@@ -93,8 +122,13 @@ If failed, fix issues and re-run.
|
|
|
93
122
|
|
|
94
123
|
### Verification Results
|
|
95
124
|
|
|
96
|
-
-
|
|
97
|
-
-
|
|
125
|
+
- Lint: PASS / FAIL
|
|
126
|
+
- TypeCheck: PASS / FAIL
|
|
127
|
+
- Compile: PASS / FAIL (project: Maven/Gradle/Go/Rust/TS/JS, rounds: N)
|
|
128
|
+
|
|
129
|
+
### Compile Errors (if any)
|
|
130
|
+
|
|
131
|
+
(List unresolved compiler errors if max retry reached)
|
|
98
132
|
|
|
99
133
|
### Summary
|
|
100
134
|
|
|
@@ -30,7 +30,20 @@ max_journal_lines: 2000
|
|
|
30
30
|
#
|
|
31
31
|
# Accepts: true / false / yes / no / 1 / 0 / on / off (case-insensitive).
|
|
32
32
|
#
|
|
33
|
-
# session_auto_commit:
|
|
33
|
+
# session_auto_commit: false
|
|
34
|
+
|
|
35
|
+
#-------------------------------------------------------------------------------
|
|
36
|
+
# Code Auto-Commit (Phase 3.4)
|
|
37
|
+
#-------------------------------------------------------------------------------
|
|
38
|
+
|
|
39
|
+
# Whether the AI should auto-commit code after implementation without asking.
|
|
40
|
+
# - false (default): AI runs ``git diff --stat``, states the commit message,
|
|
41
|
+
# then asks for user confirmation (Y/n) before running ``git commit``.
|
|
42
|
+
# - true: AI commits directly without prompting.
|
|
43
|
+
#
|
|
44
|
+
# Accepts: true / false / yes / no / 1 / 0 / on / off (case-insensitive).
|
|
45
|
+
#
|
|
46
|
+
# code_auto_commit: false
|
|
34
47
|
|
|
35
48
|
#-------------------------------------------------------------------------------
|
|
36
49
|
# Task Lifecycle Hooks
|
|
@@ -93,7 +106,7 @@ max_journal_lines: 2000
|
|
|
93
106
|
# Tool Path Configuration
|
|
94
107
|
#-------------------------------------------------------------------------------
|
|
95
108
|
# Declare tools your project requires. Rudder will:
|
|
96
|
-
# 1. Check
|
|
109
|
+
# 1. Check config_local.yml for machine-specific absolute paths
|
|
97
110
|
# 2. Auto-detect from version files (.sdkmanrc, .nvmrc, .tool-versions, etc.)
|
|
98
111
|
# 3. Fall back to searching PATH
|
|
99
112
|
#
|
|
@@ -110,7 +123,7 @@ max_journal_lines: 2000
|
|
|
110
123
|
# mvn:
|
|
111
124
|
# version: "3.9"
|
|
112
125
|
#
|
|
113
|
-
# Personal overrides (.rudder/
|
|
126
|
+
# Personal overrides (.rudder/config_local.yml — gitignored):
|
|
114
127
|
# tools:
|
|
115
128
|
# java:
|
|
116
129
|
# path: "/usr/local/sdkman/candidates/java/21.0.2-open/bin/java"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Local tool path overrides (machine-specific, not shared with team).
|
|
2
|
+
# This file is gitignored — see .rudder/.gitignore.
|
|
3
|
+
#
|
|
4
|
+
# When the AI detects a missing tool or wrong version during session-start,
|
|
5
|
+
# it will uncomment and fill in the correct absolute path for your machine.
|
|
6
|
+
#
|
|
7
|
+
# tools:
|
|
8
|
+
# java:
|
|
9
|
+
# path: "/path/to/your/java/bin/java"
|
|
10
|
+
# mvn:
|
|
11
|
+
# path: "/path/to/your/maven/bin/mvn"
|
|
12
|
+
# node:
|
|
13
|
+
# path: "/path/to/your/node/bin/node"
|
|
14
|
+
# go:
|
|
15
|
+
# path: "/path/to/your/go/bin/go"
|
|
16
|
+
# python:
|
|
17
|
+
# path: "/path/to/your/python/bin/python"
|
|
@@ -44,6 +44,7 @@ export declare const getContextScript: string;
|
|
|
44
44
|
export declare const addSessionScript: string;
|
|
45
45
|
export declare const workflowMdTemplate: string;
|
|
46
46
|
export declare const configYamlTemplate: string;
|
|
47
|
+
export declare const configLocalYmlTemplate: string;
|
|
47
48
|
export declare const gitignoreTemplate: string;
|
|
48
49
|
/**
|
|
49
50
|
* Get all script templates as a map of relative path to content
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/rudder/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAcH,eAAO,MAAM,WAAW,QAAsC,CAAC;AAG/D,eAAO,MAAM,UAAU,QAA6C,CAAC;AACrE,eAAO,MAAM,WAAW,QAA0C,CAAC;AACnE,eAAO,MAAM,eAAe,QAA8C,CAAC;AAC3E,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E,eAAO,MAAM,eAAe,QAA+C,CAAC;AAC5E,eAAO,MAAM,eAAe,QAA+C,CAAC;AAC5E,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E,eAAO,MAAM,YAAY,QAA2C,CAAC;AACrE,eAAO,MAAM,QAAQ,QAAuC,CAAC;AAC7D,eAAO,MAAM,SAAS,QAAwC,CAAC;AAC/D,eAAO,MAAM,SAAS,QAAwC,CAAC;AAC/D,eAAO,MAAM,WAAW,QAA0C,CAAC;AACnE,eAAO,MAAM,WAAW,QAA0C,CAAC;AACnE,eAAO,MAAM,iBAAiB,QAAiD,CAAC;AAChF,eAAO,MA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,QAAwC,CAAC;AAC/D,eAAO,MAAM,WAAW,QAA0C,CAAC;AACnE,eAAO,MAAM,WAAW,QAA0C,CAAC;AACnE,eAAO,MAAM,iBAAiB,QAAiD,CAAC;AAChF,eAAO,MAAM,eAAe,QAA+C,CAAC;AAC5E,eAAO,MAAM,oBAAoB,QAEhC,CAAC;AACF,eAAO,MAAM,qBAAqB,QAEjC,CAAC;AACF,eAAO,MAAM,mBAAmB,QAE/B,CAAC;AACF,eAAO,MAAM,kBAAkB,QAE9B,CAAC;AACF,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAG9E,eAAO,MAAM,kBAAkB,QAA2C,CAAC;AAC3E,eAAO,MAAM,mBAAmB,QAA4C,CAAC;AAC7E,eAAO,MAAM,UAAU,QAAkC,CAAC;AAC1D,eAAO,MAAM,gBAAgB,QAAyC,CAAC;AACvE,eAAO,MAAM,gBAAgB,QAAyC,CAAC;AAGvE,eAAO,MAAM,kBAAkB,QAA8B,CAAC;AAC9D,eAAO,MAAM,kBAAkB,QAA8B,CAAC;AAC9D,eAAO,MAAM,sBAAsB,QAAmC,CAAC;AACvE,eAAO,MAAM,iBAAiB,QAAgC,CAAC;AAE/D;;GAEG;AACH,wBAAgB,aAAa,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAqCnD"}
|
|
@@ -56,6 +56,7 @@ export const addSessionScript = readTemplate("scripts/add_session.py");
|
|
|
56
56
|
// Configuration files
|
|
57
57
|
export const workflowMdTemplate = readTemplate("workflow.md");
|
|
58
58
|
export const configYamlTemplate = readTemplate("config.yaml");
|
|
59
|
+
export const configLocalYmlTemplate = readTemplate("config_local.yml");
|
|
59
60
|
export const gitignoreTemplate = readTemplate("gitignore.txt");
|
|
60
61
|
/**
|
|
61
62
|
* Get all script templates as a map of relative path to content
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/rudder/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;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AC,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAAC;IAC3D,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,gBAAgB,CAAC,CAAC;IAEvD,OAAO;IACP,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;IACpD,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;IACtD,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IACnC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;IAChD,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;IAEhD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -166,7 +166,8 @@ def _next_content_line(lines: list[str], start: int) -> tuple[int, str]:
|
|
|
166
166
|
# Defaults
|
|
167
167
|
DEFAULT_SESSION_COMMIT_MESSAGE = "chore: record journal"
|
|
168
168
|
DEFAULT_MAX_JOURNAL_LINES = 2000
|
|
169
|
-
DEFAULT_SESSION_AUTO_COMMIT =
|
|
169
|
+
DEFAULT_SESSION_AUTO_COMMIT = False # journal / task archive auto-commit
|
|
170
|
+
DEFAULT_CODE_AUTO_COMMIT = False # Phase 3.4 code commit
|
|
170
171
|
|
|
171
172
|
CONFIG_FILE = "config.yaml"
|
|
172
173
|
|
|
@@ -218,10 +219,10 @@ def get_session_auto_commit(repo_root: Path | None = None) -> bool:
|
|
|
218
219
|
Governs both ``add_session.py:_auto_commit_workspace`` and
|
|
219
220
|
``task_store.py:_auto_commit_archive``.
|
|
220
221
|
|
|
221
|
-
Default: ``
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
Default: ``False`` — files are written to disk; the user manages
|
|
223
|
+
``git add`` / ``git commit`` themselves.
|
|
224
|
+
Set ``session_auto_commit: true`` in ``.rudder/config.yaml`` to re-enable
|
|
225
|
+
auto-staging.
|
|
225
226
|
|
|
226
227
|
Accepts native YAML booleans (``true`` / ``false``) and the string
|
|
227
228
|
aliases ``true / false / yes / no / 1 / 0 / on / off`` (case-insensitive).
|
|
@@ -237,12 +238,35 @@ def get_session_auto_commit(repo_root: Path | None = None) -> bool:
|
|
|
237
238
|
if s in ("false", "no", "0", "off"):
|
|
238
239
|
return False
|
|
239
240
|
print(
|
|
240
|
-
f"[WARN] invalid session_auto_commit value: {raw!r}; using
|
|
241
|
+
f"[WARN] invalid session_auto_commit value: {raw!r}; using false (default)",
|
|
241
242
|
file=sys.stderr,
|
|
242
243
|
)
|
|
243
244
|
return DEFAULT_SESSION_AUTO_COMMIT
|
|
244
245
|
|
|
245
246
|
|
|
247
|
+
def get_code_auto_commit(repo_root: Path | None = None) -> bool:
|
|
248
|
+
"""Whether Phase 3.4 should auto-commit code without user confirmation.
|
|
249
|
+
|
|
250
|
+
Default: ``False`` — AI shows ``git diff --stat``, states commit message,
|
|
251
|
+
and asks for user confirmation (Y/n) before committing.
|
|
252
|
+
Set ``code_auto_commit: true`` to skip the confirmation step.
|
|
253
|
+
|
|
254
|
+
Accepts native YAML booleans and the string aliases
|
|
255
|
+
``true / false / yes / no / 1 / 0 / on / off`` (case-insensitive).
|
|
256
|
+
Invalid values fall back to ``False``.
|
|
257
|
+
"""
|
|
258
|
+
config = _load_config(repo_root)
|
|
259
|
+
raw = config.get("code_auto_commit", DEFAULT_CODE_AUTO_COMMIT)
|
|
260
|
+
if isinstance(raw, bool):
|
|
261
|
+
return raw
|
|
262
|
+
s = str(raw).strip().lower()
|
|
263
|
+
if s in ("true", "yes", "1", "on"):
|
|
264
|
+
return True
|
|
265
|
+
if s in ("false", "no", "0", "off"):
|
|
266
|
+
return False
|
|
267
|
+
return DEFAULT_CODE_AUTO_COMMIT
|
|
268
|
+
|
|
269
|
+
|
|
246
270
|
def get_hooks(event: str, repo_root: Path | None = None) -> list[str]:
|
|
247
271
|
"""Get hook commands for a lifecycle event.
|
|
248
272
|
|
|
@@ -449,11 +473,11 @@ def get_spec_scope(repo_root: Path | None = None) -> list[str] | str | None:
|
|
|
449
473
|
# Tool Path Configuration
|
|
450
474
|
# =============================================================================
|
|
451
475
|
|
|
452
|
-
LOCAL_CONFIG_FILE = "
|
|
476
|
+
LOCAL_CONFIG_FILE = "config_local.yml"
|
|
453
477
|
|
|
454
478
|
|
|
455
479
|
def _load_local_config(repo_root: Path | None = None) -> dict:
|
|
456
|
-
"""Load .rudder/
|
|
480
|
+
"""Load .rudder/config_local.yml (personal overrides). Returns {} on missing."""
|
|
457
481
|
root = repo_root or get_repo_root()
|
|
458
482
|
local_config_file = root / DIR_WORKFLOW / LOCAL_CONFIG_FILE
|
|
459
483
|
try:
|
|
@@ -464,9 +488,10 @@ def _load_local_config(repo_root: Path | None = None) -> dict:
|
|
|
464
488
|
|
|
465
489
|
|
|
466
490
|
def resolve_tools(repo_root: Path | None = None) -> dict[str, dict]:
|
|
467
|
-
"""Merge tools from config.yaml with local path overrides from
|
|
491
|
+
"""Merge tools from config.yaml with local path overrides from config_local.yml.
|
|
468
492
|
|
|
469
|
-
|
|
493
|
+
config_local.yml wins on path; config.yaml declares what tools are needed.
|
|
494
|
+
Tools only in config_local.yml (discovered by AI during sessions) are also included.
|
|
470
495
|
Returns dict like:
|
|
471
496
|
{
|
|
472
497
|
"java": {"path": "/usr/.../java", "version": "21"},
|
|
@@ -479,9 +504,9 @@ def resolve_tools(repo_root: Path | None = None) -> dict[str, dict]:
|
|
|
479
504
|
config = _load_config(root)
|
|
480
505
|
tools = config.get("tools")
|
|
481
506
|
if not isinstance(tools, dict):
|
|
482
|
-
|
|
507
|
+
tools = {}
|
|
483
508
|
|
|
484
|
-
# Read personal overrides from
|
|
509
|
+
# Read personal overrides from config_local.yml
|
|
485
510
|
local = _load_local_config(root)
|
|
486
511
|
local_tools = local.get("tools")
|
|
487
512
|
local_overrides: dict[str, dict] = {}
|
|
@@ -499,4 +524,9 @@ def resolve_tools(repo_root: Path | None = None) -> dict[str, dict]:
|
|
|
499
524
|
merged[k] = v
|
|
500
525
|
result[name] = merged
|
|
501
526
|
|
|
527
|
+
# Include tools only in config_local.yml (AI-discovered)
|
|
528
|
+
for name, cfg in local_overrides.items():
|
|
529
|
+
if name not in result:
|
|
530
|
+
result[name] = cfg
|
|
531
|
+
|
|
502
532
|
return result
|
|
@@ -135,11 +135,11 @@ def read_rudder_config(repo_root: Optional[Path] = None) -> dict:
|
|
|
135
135
|
# Tool Path Configuration (mirrors config.py for hook usage)
|
|
136
136
|
# =============================================================================
|
|
137
137
|
|
|
138
|
-
LOCAL_CONFIG_FILE = "
|
|
138
|
+
LOCAL_CONFIG_FILE = "config_local.yml"
|
|
139
139
|
|
|
140
140
|
|
|
141
141
|
def _load_local_config(repo_root: Optional[Path] = None) -> dict:
|
|
142
|
-
"""Load .rudder/
|
|
142
|
+
"""Load .rudder/config_local.yml (personal overrides). Returns {} on missing."""
|
|
143
143
|
root = repo_root or Path.cwd()
|
|
144
144
|
local_config_file = root / ".rudder" / LOCAL_CONFIG_FILE
|
|
145
145
|
try:
|
|
@@ -152,13 +152,14 @@ def _load_local_config(repo_root: Optional[Path] = None) -> dict:
|
|
|
152
152
|
def resolve_tools(repo_root: Optional[Path] = None) -> dict[str, dict]:
|
|
153
153
|
"""Merge tools from config.yaml with local path overrides.
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
config_local.yml wins on path; config.yaml declares what tools are needed.
|
|
156
|
+
Tools only in config_local.yml (discovered by AI during sessions) are also included.
|
|
156
157
|
"""
|
|
157
158
|
root = repo_root or Path.cwd()
|
|
158
159
|
config = read_rudder_config(root)
|
|
159
160
|
tools = config.get("tools")
|
|
160
161
|
if not isinstance(tools, dict):
|
|
161
|
-
|
|
162
|
+
tools = {}
|
|
162
163
|
|
|
163
164
|
local = _load_local_config(root)
|
|
164
165
|
local_tools = local.get("tools")
|
|
@@ -176,4 +177,25 @@ def resolve_tools(repo_root: Optional[Path] = None) -> dict[str, dict]:
|
|
|
176
177
|
merged[k] = v
|
|
177
178
|
result[name] = merged
|
|
178
179
|
|
|
180
|
+
# Include tools only in config_local.yml (AI-discovered)
|
|
181
|
+
for name, cfg in overrides.items():
|
|
182
|
+
if name not in result:
|
|
183
|
+
result[name] = cfg
|
|
184
|
+
|
|
179
185
|
return result
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
def get_code_auto_commit(repo_root: Optional[Path] = None) -> bool:
|
|
189
|
+
"""Whether Phase 3.4 should auto-commit code without user confirmation.
|
|
190
|
+
|
|
191
|
+
Default: False — AI shows changes, states commit message, and asks
|
|
192
|
+
for user confirmation (Y/n) before committing.
|
|
193
|
+
Set ``code_auto_commit: true`` to skip the confirmation step.
|
|
194
|
+
"""
|
|
195
|
+
root = repo_root or Path.cwd()
|
|
196
|
+
config = read_rudder_config(root)
|
|
197
|
+
raw = config.get("code_auto_commit", False)
|
|
198
|
+
if isinstance(raw, bool):
|
|
199
|
+
return raw
|
|
200
|
+
s = str(raw).strip().lower()
|
|
201
|
+
return s in ("true", "yes", "1", "on")
|
|
@@ -199,7 +199,7 @@ Then run `task.py start <task-dir>` to flip status to in_progress.
|
|
|
199
199
|
|
|
200
200
|
[workflow-state:in_progress]
|
|
201
201
|
**Flow**: rudder-implement → rudder-check → rudder-update-spec → commit (Phase 3.4) → `/rudder:finish-work`.
|
|
202
|
-
**Main-session default (no override)**: dispatch the `rudder-implement` / `rudder-check` sub-agents — the main agent does NOT edit code by default. Phase 3.4 commit (required, once): after rudder-update-spec, or whenever implementation is verifiably complete, the main agent **drives the commit** — state the commit
|
|
202
|
+
**Main-session default (no override)**: dispatch the `rudder-implement` / `rudder-check` sub-agents — the main agent does NOT edit code by default. Phase 3.4 commit (required, once): after rudder-update-spec, or whenever implementation is verifiably complete, the main agent **drives the commit** — run `git diff --stat` to show changes, state the proposed commit message, then check `code_auto_commit` in `.rudder/config.yaml`: if **false** (default), **ask the user for confirmation (Y/n)** before running `git commit`; if **true**, commit directly without prompting. Only after commit, suggest `/rudder:finish-work`. `/finish-work` refuses to run on a dirty working tree (paths outside `.rudder/workspace/` and `.rudder/tasks/`).
|
|
203
203
|
**Sub-agent self-exemption**: if you are already running as `rudder-implement`, implement directly from the loaded task context and do NOT spawn another `rudder-implement`; if you are already running as `rudder-check`, review/fix directly and do NOT spawn another `rudder-check`. The default dispatch rule applies to the main session only.
|
|
204
204
|
**Sub-agent dispatch protocol (all platforms, all sub-agents)**: When you spawn `rudder-implement` / `rudder-check` / `rudder-research`, your dispatch prompt **MUST** start with one line: `Active task: <task path from \`task.py current\`>`. No exceptions. On class-2 platforms (codex / copilot / gemini / qoder) the sub-agent depends on this line because there is no hook to inject task context. On class-1 platforms (claude / cursor / opencode / kiro / codebuddy / droid) the line is normally redundant — the hook injects context directly — but it serves as a critical fallback when the hook fails (Windows + Claude Code PreToolUse silent skip, `--continue` resume, fork distribution, hooks disabled, etc.). For `rudder-research`, the line tells the sub-agent which `{task_dir}/research/` to write into.
|
|
205
205
|
**Inline override** (per-turn only, escape hatch for sub-agent dispatch): the user's CURRENT message MUST explicitly contain one of: "do it inline" / "no sub-agent" / "你直接改" / "别派 sub-agent" / "main session 写就行" / "不用 sub-agent". **Without seeing one of these phrases you must NOT inline on your own**; do not invent an override the user never said.
|
|
@@ -213,7 +213,7 @@ Then run `task.py start <task-dir>` to flip status to in_progress.
|
|
|
213
213
|
[workflow-state:in_progress-inline]
|
|
214
214
|
**Flow** (inline mode): main session loads `rudder-before-dev` → main session edits code → main session loads `rudder-check` → run lint / type-check / tests → fix → `rudder-update-spec` → commit (Phase 3.4) → `/rudder:finish-work`.
|
|
215
215
|
**Main-session default (inline dispatch_mode)**: the main agent edits code directly. Do NOT dispatch `rudder-implement` / `rudder-check` sub-agents. Load the `rudder-before-dev` skill before writing code; load the `rudder-check` skill before reporting completion.
|
|
216
|
-
Phase 3.4 commit (required, once): after `rudder-update-spec`, or whenever implementation is verifiably complete, the main agent **drives the commit** — state the commit
|
|
216
|
+
Phase 3.4 commit (required, once): after `rudder-update-spec`, or whenever implementation is verifiably complete, the main agent **drives the commit** — run `git diff --stat` to show changes, state the proposed commit message, then check `code_auto_commit` in `.rudder/config.yaml`: if **false** (default), **ask the user for confirmation (Y/n)** before running `git commit`; if **true**, commit directly without prompting. Only after commit, suggest `/rudder:finish-work`. `/finish-work` refuses to run on a dirty working tree (paths outside `.rudder/workspace/` and `.rudder/tasks/`).
|
|
217
217
|
[/workflow-state:in_progress-inline]
|
|
218
218
|
|
|
219
219
|
### Phase 3: Finish
|
|
@@ -537,6 +537,8 @@ The check agent's job:
|
|
|
537
537
|
- Review code changes against specs
|
|
538
538
|
- Auto-fix issues it finds
|
|
539
539
|
- Run lint and typecheck to verify
|
|
540
|
+
- Run compile/build verification (Maven: `mvn compile`, Go: `go build ./...`, etc.)
|
|
541
|
+
- If compilation fails, fix errors and retry (max 3 rounds) before reporting
|
|
540
542
|
|
|
541
543
|
[/Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi]
|
|
542
544
|
|
|
@@ -545,6 +547,7 @@ The check agent's job:
|
|
|
545
547
|
Load the `rudder-check` skill and verify the code per its guidance:
|
|
546
548
|
- Spec compliance
|
|
547
549
|
- lint / type-check / tests
|
|
550
|
+
- Compile/build verification (detect project type, run `mvn compile` / `go build` / `cargo check`, fix errors up to 3 rounds)
|
|
548
551
|
- Cross-layer consistency (when changes span layers)
|
|
549
552
|
|
|
550
553
|
If issues are found → fix → re-check, until green.
|
|
@@ -568,6 +571,7 @@ Goal: ensure code quality, capture lessons, record the work.
|
|
|
568
571
|
Load the `rudder-check` skill and do a final verification:
|
|
569
572
|
- Spec compliance
|
|
570
573
|
- lint / type-check / tests
|
|
574
|
+
- Compile/build verification (detect project type, run compile command, fix errors up to 3 rounds)
|
|
571
575
|
- Cross-layer consistency (when changes span layers)
|
|
572
576
|
|
|
573
577
|
If issues are found → fix → re-check, until green.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/shared-hooks/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAaH,MAAM,WAAW,UAAU;IACzB,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,gEAAgE;IAChE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,cAAc,GACtB,kBAAkB,GAClB,iCAAiC,GACjC,0BAA0B,GAC1B,4BAA4B,CAAC;AAEjC,MAAM,MAAM,kBAAkB,GAC1B,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,OAAO,GACP,SAAS,GACT,WAAW,GACX,OAAO,GACP,MAAM,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAC3C,kBAAkB,EAClB,SAAS,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/shared-hooks/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAaH,MAAM,WAAW,UAAU;IACzB,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,gEAAgE;IAChE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,cAAc,GACtB,kBAAkB,GAClB,iCAAiC,GACjC,0BAA0B,GAC1B,4BAA4B,CAAC;AAEjC,MAAM,MAAM,kBAAkB,GAC1B,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,OAAO,GACP,SAAS,GACT,WAAW,GACX,OAAO,GACP,MAAM,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAC3C,kBAAkB,EAClB,SAAS,cAAc,EAAE,CA2B1B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,UAAU,EAAE,CAWnD;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC7C,QAAQ,EAAE,kBAAkB,GAC3B,UAAU,EAAE,CAGd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/shared-hooks/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,SAAS,YAAY,CAAC,YAAoB;IACxC,OAAO,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC;AA0BD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAGjC;IACF,MAAM,EAAE;QACN,kBAAkB;QAClB,0BAA0B;QAC1B,4BAA4B;KAC7B;IACD,MAAM,EAAE;QACN,kBAAkB;QAClB,iCAAiC;QACjC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/shared-hooks/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,SAAS,Y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AG,CAAS,wBAAwB,CAAC,QAAQ,CAAC,CAAC,CAAC;IACpE,OAAO,oBAAoB,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AACnE,CAAC"}
|
|
@@ -73,14 +73,27 @@ Rudder SessionStart 已注入:workflow、当前任务状态、开发者身份
|
|
|
73
73
|
Then continue directly with the user's request. This notice is one-shot: do not repeat it after the first assistant reply in the same session.
|
|
74
74
|
</first-reply-notice>"""
|
|
75
75
|
|
|
76
|
-
#
|
|
77
|
-
#
|
|
76
|
+
# Force UTF-8 on stdin/stdout/stderr on Windows. Default codepage there is
|
|
77
|
+
# cp936 / cp1252 / etc. — non-ASCII content (Chinese task names, prd snippets)
|
|
78
|
+
# both in stdin (hook payload from host CLI) and stdout (our emitted blocks)
|
|
79
|
+
# raises UnicodeDecodeError / UnicodeEncodeError. Equivalent to `python -X utf8`
|
|
80
|
+
# but applied per-stream so we don't depend on host CLI's command wiring.
|
|
78
81
|
if sys.platform.startswith("win"):
|
|
79
82
|
import io as _io
|
|
80
|
-
|
|
81
|
-
sys
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
for _stream_name in ("stdin", "stdout", "stderr"):
|
|
84
|
+
_stream = getattr(sys, _stream_name, None)
|
|
85
|
+
if _stream is None:
|
|
86
|
+
continue
|
|
87
|
+
if hasattr(_stream, "reconfigure"):
|
|
88
|
+
try:
|
|
89
|
+
_stream.reconfigure(encoding="utf-8", errors="replace") # type: ignore[union-attr]
|
|
90
|
+
except Exception:
|
|
91
|
+
pass
|
|
92
|
+
elif hasattr(_stream, "detach"):
|
|
93
|
+
try:
|
|
94
|
+
setattr(sys, _stream_name, _io.TextIOWrapper(_stream.detach(), encoding="utf-8", errors="replace"))
|
|
95
|
+
except Exception:
|
|
96
|
+
pass
|
|
84
97
|
|
|
85
98
|
|
|
86
99
|
|
|
@@ -491,6 +504,8 @@ def _build_tool_paths_block(rudder_dir: Path) -> str:
|
|
|
491
504
|
if version:
|
|
492
505
|
parts.append(f"(required version: {version})")
|
|
493
506
|
lines.append(f"- {name}: {' '.join(parts)}")
|
|
507
|
+
lines.append("")
|
|
508
|
+
lines.append("If a tool is missing or the path is wrong, locate the correct path and update `.rudder/config_local.yml`.")
|
|
494
509
|
lines.append("</tool-paths>")
|
|
495
510
|
return "\n".join(lines)
|
|
496
511
|
|
|
@@ -795,11 +810,13 @@ When the user sends the first message, follow <task-status> and the workflow gui
|
|
|
795
810
|
If a task is READY, execute its Next required action without asking whether to continue.
|
|
796
811
|
</ready>""")
|
|
797
812
|
|
|
813
|
+
context_text = output.getvalue()
|
|
798
814
|
result = {
|
|
799
815
|
"hookSpecificOutput": {
|
|
800
816
|
"hookEventName": "SessionStart",
|
|
801
|
-
"additionalContext":
|
|
802
|
-
}
|
|
817
|
+
"additionalContext": context_text,
|
|
818
|
+
},
|
|
819
|
+
"additional_context": context_text,
|
|
803
820
|
}
|
|
804
821
|
|
|
805
822
|
# Output JSON - stdout is already configured for UTF-8
|
package/package.json
CHANGED