Move kilocode_change check to package.json script following knip pattern

- Add check-kilocode-change script in packages/kilo-vscode/package.json
- Update CI to use the script instead of inlined grep
- Document the check in root AGENTS.md alongside knip
This commit is contained in:
kiloconnect[bot]
2026-03-16 09:55:26 +00:00
parent 8875fc700d
commit f5ac4ca526
3 changed files with 4 additions and 9 deletions
+2 -9
View File
@@ -44,12 +44,5 @@ jobs:
run: bun run knip
- name: Check for kilocode_change markers
run: |
if grep -r --include='*' -l 'kilocode_change' packages/kilo-vscode/ packages/kilo-ui/; then
echo ""
echo "ERROR: Found 'kilocode_change' markers in kilo-specific packages."
echo "These packages are entirely Kilo Code additions and do not need kilocode_change markers."
echo "Please remove them from the files listed above."
exit 1
fi
echo "No kilocode_change markers found. All clear."
working-directory: packages/kilo-vscode
run: bun run check-kilocode-change
+1
View File
@@ -15,6 +15,7 @@ Kilo CLI is an open source AI coding agent that generates code from natural lang
- **Single test**: `bun test test/tool/tool.test.ts` from `packages/opencode/`
- **SDK regen**: After changing server endpoints in `packages/opencode/src/server/`, run `./script/generate.ts` from root to regenerate `packages/sdk/js/`
- **Knip** (unused exports): `bun run knip` from `packages/kilo-vscode/`. CI runs this — all exported types/functions must be imported somewhere. Remove or unexport unused exports before pushing.
- **kilocode_change check**: `bun run check-kilocode-change` from `packages/kilo-vscode/`. CI runs this — `kilocode_change` is a marker for upstream merge conflicts and must not appear in `packages/kilo-vscode/` or `packages/kilo-ui/` (these are entirely Kilo Code additions). Remove the markers before pushing.
## Products
+1
View File
@@ -708,6 +708,7 @@
"format": "prettier --write .",
"format:check": "prettier --check .",
"knip": "knip",
"check-kilocode-change": "! grep -r -l 'kilocode_change' . ../kilo-ui/ --exclude='package.json' --exclude='*.md'",
"lint": "eslint src webview-ui",
"test": "vscode-test",
"test:unit": "bun test tests/unit/",