@mengde1231/rudder 0.5.22 → 0.5.23
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/bin/rudder.js +0 -0
- 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/templates/cursor/hooks.json +0 -6
- package/dist/templates/rudder/config.yaml +1 -1
- package/dist/templates/rudder/scripts/common/config.py +6 -6
- 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 +23 -8
- package/package.json +27 -26
package/bin/rudder.js
CHANGED
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude.d.ts","sourceRoot":"","sources":["../../src/configurators/claude.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"claude.d.ts","sourceRoot":"","sources":["../../src/configurators/claude.ts"],"names":[],"mappings":"AA8DA;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAwBhE"}
|
|
@@ -19,9 +19,7 @@ function shouldExclude(filename) {
|
|
|
19
19
|
}
|
|
20
20
|
return false;
|
|
21
21
|
}
|
|
22
|
-
/**
|
|
23
|
-
* Recursively copy directory, excluding build artifacts and the commands/ dir
|
|
24
|
-
* (commands are now written from common templates).
|
|
22
|
+
/** from common templates).
|
|
25
23
|
*/
|
|
26
24
|
async function copyDirFiltered(src, dest, skipDirs = []) {
|
|
27
25
|
ensureDir(dest);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude.js","sourceRoot":"","sources":["../../src/configurators/claude.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO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|
{
|
|
25
19
|
"command": "{{PYTHON_CMD}} .cursor/hooks/inject-shell-session-context.py",
|
|
@@ -30,7 +30,7 @@ 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
34
|
|
|
35
35
|
#-------------------------------------------------------------------------------
|
|
36
36
|
# Task Lifecycle Hooks
|
|
@@ -166,7 +166,7 @@ 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
|
|
170
170
|
|
|
171
171
|
CONFIG_FILE = "config.yaml"
|
|
172
172
|
|
|
@@ -218,10 +218,10 @@ def get_session_auto_commit(repo_root: Path | None = None) -> bool:
|
|
|
218
218
|
Governs both ``add_session.py:_auto_commit_workspace`` and
|
|
219
219
|
``task_store.py:_auto_commit_archive``.
|
|
220
220
|
|
|
221
|
-
Default: ``
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
221
|
+
Default: ``False`` — files are written to disk; the user manages
|
|
222
|
+
``git add`` / ``git commit`` themselves.
|
|
223
|
+
Set ``session_auto_commit: true`` in ``.rudder/config.yaml`` to re-enable
|
|
224
|
+
auto-staging.
|
|
225
225
|
|
|
226
226
|
Accepts native YAML booleans (``true`` / ``false``) and the string
|
|
227
227
|
aliases ``true / false / yes / no / 1 / 0 / on / off`` (case-insensitive).
|
|
@@ -237,7 +237,7 @@ def get_session_auto_commit(repo_root: Path | None = None) -> bool:
|
|
|
237
237
|
if s in ("false", "no", "0", "off"):
|
|
238
238
|
return False
|
|
239
239
|
print(
|
|
240
|
-
f"[WARN] invalid session_auto_commit value: {raw!r}; using
|
|
240
|
+
f"[WARN] invalid session_auto_commit value: {raw!r}; using false (default)",
|
|
241
241
|
file=sys.stderr,
|
|
242
242
|
)
|
|
243
243
|
return DEFAULT_SESSION_AUTO_COMMIT
|
|
@@ -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,O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AAO,EAAE,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,+BAA+B,CAC7C,QAA4B;IAE5B,MAAM,OAAO,GAAG,IAAI,GAAG,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
|
|
|
@@ -795,11 +808,13 @@ When the user sends the first message, follow <task-status> and the workflow gui
|
|
|
795
808
|
If a task is READY, execute its Next required action without asking whether to continue.
|
|
796
809
|
</ready>""")
|
|
797
810
|
|
|
811
|
+
context_text = output.getvalue()
|
|
798
812
|
result = {
|
|
799
813
|
"hookSpecificOutput": {
|
|
800
814
|
"hookEventName": "SessionStart",
|
|
801
|
-
"additionalContext":
|
|
802
|
-
}
|
|
815
|
+
"additionalContext": context_text,
|
|
816
|
+
},
|
|
817
|
+
"additional_context": context_text,
|
|
803
818
|
}
|
|
804
819
|
|
|
805
820
|
# Output JSON - stdout is already configured for UTF-8
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mengde1231/rudder",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.23",
|
|
4
4
|
"description": "AI capabilities grow like ivy — Rudder provides the structure to guide them along a disciplined path",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -12,6 +12,31 @@
|
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "pnpm run clean && tsc && pnpm run copy-templates",
|
|
17
|
+
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
18
|
+
"copy-templates": "node scripts/copy-templates.js",
|
|
19
|
+
"dev": "tsc --watch",
|
|
20
|
+
"start": "node ./dist/cli/index.js",
|
|
21
|
+
"test": "vitest run",
|
|
22
|
+
"test:watch": "vitest",
|
|
23
|
+
"test:coverage": "vitest run --coverage",
|
|
24
|
+
"lint": "eslint src/ test/",
|
|
25
|
+
"lint:fix": "eslint src/ test/ --fix",
|
|
26
|
+
"format": "prettier --write src/",
|
|
27
|
+
"format:check": "prettier --check src/",
|
|
28
|
+
"typecheck": "tsc --noEmit",
|
|
29
|
+
"lint:py": "basedpyright",
|
|
30
|
+
"lint:all": "pnpm lint && pnpm lint:py",
|
|
31
|
+
"prepublishOnly": "pnpm run build && cp ../../README.md ../../LICENSE .",
|
|
32
|
+
"release": "node scripts/check-manifest-continuity.js && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version patch && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin main --tags",
|
|
33
|
+
"release:minor": "node scripts/check-manifest-continuity.js && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version minor && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin main --tags",
|
|
34
|
+
"release:major": "node scripts/check-manifest-continuity.js && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version major && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin main --tags",
|
|
35
|
+
"release:beta": "node scripts/check-manifest-continuity.js && node scripts/check-docs-changelog.js --type beta && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version prerelease --preid beta && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin HEAD --tags",
|
|
36
|
+
"release:rc": "node scripts/check-manifest-continuity.js && node scripts/check-docs-changelog.js --type rc && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version prerelease --preid rc && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin HEAD --tags",
|
|
37
|
+
"release:promote": "node scripts/check-manifest-continuity.js && node scripts/check-docs-changelog.js --type promote && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version \"$(node -p \"require('./package.json').version.replace(/-.*/, '')\")\" && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin main --tags",
|
|
38
|
+
"manifest": "node scripts/create-manifest.js"
|
|
39
|
+
},
|
|
15
40
|
"keywords": [
|
|
16
41
|
"ai",
|
|
17
42
|
"workflow",
|
|
@@ -59,29 +84,5 @@
|
|
|
59
84
|
"repository": {
|
|
60
85
|
"type": "git",
|
|
61
86
|
"url": "https://github.com/MengDe1231/Rudder.git"
|
|
62
|
-
},
|
|
63
|
-
"scripts": {
|
|
64
|
-
"build": "pnpm run clean && tsc && pnpm run copy-templates",
|
|
65
|
-
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
66
|
-
"copy-templates": "node scripts/copy-templates.js",
|
|
67
|
-
"dev": "tsc --watch",
|
|
68
|
-
"start": "node ./dist/cli/index.js",
|
|
69
|
-
"test": "vitest run",
|
|
70
|
-
"test:watch": "vitest",
|
|
71
|
-
"test:coverage": "vitest run --coverage",
|
|
72
|
-
"lint": "eslint src/ test/",
|
|
73
|
-
"lint:fix": "eslint src/ test/ --fix",
|
|
74
|
-
"format": "prettier --write src/",
|
|
75
|
-
"format:check": "prettier --check src/",
|
|
76
|
-
"typecheck": "tsc --noEmit",
|
|
77
|
-
"lint:py": "basedpyright",
|
|
78
|
-
"lint:all": "pnpm lint && pnpm lint:py",
|
|
79
|
-
"release": "node scripts/check-manifest-continuity.js && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version patch && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin main --tags",
|
|
80
|
-
"release:minor": "node scripts/check-manifest-continuity.js && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version minor && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin main --tags",
|
|
81
|
-
"release:major": "node scripts/check-manifest-continuity.js && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version major && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin main --tags",
|
|
82
|
-
"release:beta": "node scripts/check-manifest-continuity.js && node scripts/check-docs-changelog.js --type beta && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version prerelease --preid beta && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin HEAD --tags",
|
|
83
|
-
"release:rc": "node scripts/check-manifest-continuity.js && node scripts/check-docs-changelog.js --type rc && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version prerelease --preid rc && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin HEAD --tags",
|
|
84
|
-
"release:promote": "node scripts/check-manifest-continuity.js && node scripts/check-docs-changelog.js --type promote && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version \"$(node -p \"require('./package.json').version.replace(/-.*/, '')\")\" && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin main --tags",
|
|
85
|
-
"manifest": "node scripts/create-manifest.js"
|
|
86
87
|
}
|
|
87
|
-
}
|
|
88
|
+
}
|