@litfamily/litclaude 1.0.46 → 1.0.48

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +8 -8
  3. package/README_ko-KR.md +8 -8
  4. package/bin/litclaude-ai.js +10 -4
  5. package/docs/assets/readme/badge-version.svg +1 -1
  6. package/package.json +5 -2
  7. package/plugins/litclaude/.claude-plugin/plugin.json +1 -1
  8. package/plugins/litclaude/.lsp.json +5 -2
  9. package/plugins/litclaude/agents/korean-prose-editor.md +0 -1
  10. package/plugins/litclaude/agents/korean-style-analyzer.md +0 -1
  11. package/plugins/litclaude/agents/librarian-researcher.md +0 -1
  12. package/plugins/litclaude/agents/lit-executor.md +0 -1
  13. package/plugins/litclaude/agents/lit-planner.md +0 -1
  14. package/plugins/litclaude/agents/lit-verifier.md +0 -1
  15. package/plugins/litclaude/agents/meaning-preservation-auditor.md +0 -1
  16. package/plugins/litclaude/agents/native-flow-reviewer.md +0 -1
  17. package/plugins/litclaude/agents/polish-orchestrator.md +0 -1
  18. package/plugins/litclaude/agents/qa-runner.md +0 -1
  19. package/plugins/litclaude/agents/quality-reviewer.md +0 -1
  20. package/plugins/litclaude/bin/litclaude-lsp-doctor.js +2 -1
  21. package/plugins/litclaude/bin/litclaude-mcp.js +1 -1
  22. package/plugins/litclaude/hooks/lit-mod.mjs +2 -2
  23. package/plugins/litclaude/skills/lsp-setup/SKILL.md +8 -5
  24. package/plugins/litclaude/skills/lsp-setup/references/bash/README.md +2 -1
  25. package/plugins/litclaude/skills/lsp-setup/references/c-cpp/README.md +5 -4
  26. package/plugins/litclaude/skills/lsp-setup/references/csharp/README.md +3 -2
  27. package/plugins/litclaude/skills/lsp-setup/references/dart/README.md +2 -1
  28. package/plugins/litclaude/skills/lsp-setup/references/elixir/README.md +3 -3
  29. package/plugins/litclaude/skills/lsp-setup/references/go/README.md +1 -1
  30. package/plugins/litclaude/skills/lsp-setup/references/haskell/README.md +2 -1
  31. package/plugins/litclaude/skills/lsp-setup/references/java/README.md +1 -1
  32. package/plugins/litclaude/skills/lsp-setup/references/julia/README.md +2 -1
  33. package/plugins/litclaude/skills/lsp-setup/references/kotlin/README.md +1 -1
  34. package/plugins/litclaude/skills/lsp-setup/references/lua/README.md +1 -1
  35. package/plugins/litclaude/skills/lsp-setup/references/php/README.md +3 -2
  36. package/plugins/litclaude/skills/lsp-setup/references/python/README.md +9 -8
  37. package/plugins/litclaude/skills/lsp-setup/references/ruby/README.md +4 -3
  38. package/plugins/litclaude/skills/lsp-setup/references/rust/README.md +1 -1
  39. package/plugins/litclaude/skills/lsp-setup/references/swift/README.md +1 -1
  40. package/plugins/litclaude/skills/lsp-setup/references/terraform/README.md +2 -1
  41. package/plugins/litclaude/skills/lsp-setup/references/typescript/README.md +24 -21
  42. package/plugins/litclaude/skills/lsp-setup/references/yaml/README.md +2 -1
  43. package/plugins/litclaude/skills/lsp-setup/references/zig/README.md +1 -1
  44. package/plugins/litclaude/skills/lsp-setup/scripts/detect-lsp.ts +1 -1
  45. package/plugins/litclaude/skills/lsp-setup/scripts/lsp-server-table.ts +4 -3
  46. package/plugins/litclaude/skills/lsp-setup/scripts/verify-lsp.ts +3 -2
  47. package/scripts/prepublish-test-gate.mjs +22 -11
  48. package/tools/check-model-routing.mjs +15 -15
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.48 - 2026-11-09
4
+
5
+ - The LIT card above the prompt now draws its terminal Client region through Claude Code's global `h`, as
6
+ `h("Client", { module })`. The Claude plugin directory's validator only reads a Client element in that form,
7
+ so the old `elements.Client(...)` call blocked a directory submission. The card looks and behaves the same, and it
8
+ still falls back to its cell drawing when the Client fails to load.
9
+
10
+ ## 1.0.47 - 2026-11-09
11
+
12
+ - The TypeScript language server loads again. `.lsp.json` gave `command` as an argv array, which Claude Code
13
+ rejects (`LSP config validation failed`, `expected string`), so no LSP server came up from the plugin. It now
14
+ names the executable in `command` and passes `--stdio` in `args`, and also maps `.mts` and `.cts`. The
15
+ lsp-setup skill teaches the same shape in every language snippet, and a test parses each one. Thanks to a user
16
+ report.
17
+ - Plugin agents no longer declare `permissionMode`. Claude Code ignores that field for plugin agents and printed a
18
+ warning for each of the eleven files. The planner and the other read-only agents stay read-only through their
19
+ `tools` lists, which now carry the guard tests.
20
+ - Install hints for the TypeScript server now pin `typescript@6`. TypeScript 7 ships no `lib/tsserver.js`, which
21
+ `typescript-language-server` loads.
22
+
3
23
  ## 1.0.46 - 2026-11-01
4
24
 
5
25
  - A film stage can declare chroma-keyed overlay clips in `stage/clips/clips.json` (id, directory, frame count, fps).
package/README.md CHANGED
@@ -1,14 +1,14 @@
1
- <p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/docs/assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/docs/assets/cover-motion.webp" width="100%" alt="LitFamily motion cover: seven armored robots power on one by one, the LitClaude robot wakes with glowing eyes and a lit frame, then LITFAMILY and KEEP THE WORK LIT. light up." /></picture></p>
1
+ <p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/docs/assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/docs/assets/cover-motion.webp" width="100%" alt="LitFamily motion cover: seven armored robots power on one by one, the LitClaude robot wakes with glowing eyes and a lit frame, then LITFAMILY and KEEP THE WORK LIT. light up." /></picture></p>
2
2
 
3
3
  <h1 align="center">LitClaude</h1>
4
4
  <p align="center"><strong>Keep the work lit.</strong></p>
5
5
  <p align="center">A Claude Code plugin that helps every session plan the work, build it, check it, and leave a note the next session can pick up.</p>
6
6
  <p align="center">
7
- <img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/docs/assets/readme/badge-version.svg" alt="1.0.46" />
8
- <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/docs/assets/readme/badge-license.svg" alt="MIT license" /></a>
7
+ <img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/docs/assets/readme/badge-version.svg" alt="1.0.48" />
8
+ <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/docs/assets/readme/badge-license.svg" alt="MIT license" /></a>
9
9
  </p>
10
10
  <p align="center">
11
- <a href="https://github.com/wjgoarxiv/litclaude#readme">Full guide and skills gallery on GitHub</a> · <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/README_ko-KR.md">한국어</a>
11
+ <a href="https://github.com/wjgoarxiv/litclaude#readme">Full guide and skills gallery on GitHub</a> · <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/README_ko-KR.md">한국어</a>
12
12
  </p>
13
13
 
14
14
  Add `lit` to a Claude Code prompt and Claude pins the goal, writes a failing test first,
@@ -77,7 +77,7 @@ the `/plugin` menu.
77
77
  ## More
78
78
 
79
79
  - [Full guide and skills gallery on GitHub](https://github.com/wjgoarxiv/litclaude#readme)
80
- - [Privacy and network behavior](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/docs/privacy.md)
81
- - [Migration and ownership conflicts](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/docs/migration.md)
82
- - [Release history](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/CHANGELOG.md)
83
- - [MIT license](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/LICENSE)
80
+ - [Privacy and network behavior](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/docs/privacy.md)
81
+ - [Migration and ownership conflicts](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/docs/migration.md)
82
+ - [Release history](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/CHANGELOG.md)
83
+ - [MIT license](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/LICENSE)
package/README_ko-KR.md CHANGED
@@ -1,14 +1,14 @@
1
- <p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/docs/assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/docs/assets/cover-motion.webp" width="100%" alt="LitFamily 모션 커버: 일곱 로봇 패널이 차례로 켜지고, LitClaude 로봇의 눈과 테두리가 빛난 뒤 LITFAMILY와 KEEP THE WORK LIT. 문구가 밝아지는 영상" /></picture></p>
1
+ <p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/docs/assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/docs/assets/cover-motion.webp" width="100%" alt="LitFamily 모션 커버: 일곱 로봇 패널이 차례로 켜지고, LitClaude 로봇의 눈과 테두리가 빛난 뒤 LITFAMILY와 KEEP THE WORK LIT. 문구가 밝아지는 영상" /></picture></p>
2
2
 
3
3
  <h1 align="center">LitClaude</h1>
4
4
  <p align="center"><strong>Keep the work lit.</strong></p>
5
5
  <p align="center">Claude Code에서 세션마다 계획하고, 만들고, 확인한 뒤 다음 세션이 이어받을 기록을 남기게 돕는 플러그인입니다.</p>
6
6
  <p align="center">
7
- <img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/docs/assets/readme/badge-version.svg" alt="1.0.46" />
8
- <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/docs/assets/readme/badge-license.svg" alt="MIT license" /></a>
7
+ <img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/docs/assets/readme/badge-version.svg" alt="1.0.48" />
8
+ <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/docs/assets/readme/badge-license.svg" alt="MIT license" /></a>
9
9
  </p>
10
10
  <p align="center">
11
- <a href="https://github.com/wjgoarxiv/litclaude/blob/main/README_ko-KR.md">전체 안내와 스킬 갤러리는 GitHub에서</a> · <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/README.md">English</a>
11
+ <a href="https://github.com/wjgoarxiv/litclaude/blob/main/README_ko-KR.md">전체 안내와 스킬 갤러리는 GitHub에서</a> · <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/README.md">English</a>
12
12
  </p>
13
13
 
14
14
  Claude Code 프롬프트에 `lit`을 붙이면 Claude가 목표를 고정하고, 실패하는 테스트를 먼저 쓰고,
@@ -75,7 +75,7 @@ npx @litfamily/litclaude@latest uninstall
75
75
  ## 더 보기
76
76
 
77
77
  - [전체 안내와 스킬 갤러리 (GitHub)](https://github.com/wjgoarxiv/litclaude/blob/main/README_ko-KR.md)
78
- - [개인정보와 네트워크 동작](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/docs/privacy.md)
79
- - [이전과 소유권 충돌](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/docs/migration.md)
80
- - [변경 이력](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/CHANGELOG.md)
81
- - [MIT 라이선스](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.46/LICENSE)
78
+ - [개인정보와 네트워크 동작](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/docs/privacy.md)
79
+ - [이전과 소유권 충돌](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/docs/migration.md)
80
+ - [변경 이력](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/CHANGELOG.md)
81
+ - [MIT 라이선스](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.48/LICENSE)
@@ -313,6 +313,11 @@ const parseInstallOptions = (rest, existingPermissionMode = "safe") => {
313
313
  return { permissionMode, permissionExplicit, assumeYes, iconFont, agentFile };
314
314
  };
315
315
 
316
+ // Claude Code ignores permissionMode in plugin agent frontmatter, so the planner stays
317
+ // read-only through its tools list. Settings written by earlier installs carry the old text.
318
+ const plannerSafeguard = "lit-planner stays read-only through its tools list (no Write, Edit, MultiEdit or Bash)";
319
+ const legacyPlannerSafeguard = "lit-planner remains permissionMode: plan";
320
+
316
321
  const permissionProfile = (mode) => {
317
322
  switch (mode) {
318
323
  case "balanced":
@@ -321,7 +326,7 @@ const permissionProfile = (mode) => {
321
326
  description: `global Claude settings permissions.allow/deny: adds bounded routine allow rules and dangerous-shell denies; ${permissionOwnershipDescription}`,
322
327
  routineAutomation: true,
323
328
  dangerousShellDenyPreserved: true,
324
- plannerSafeguard: "lit-planner remains permissionMode: plan",
329
+ plannerSafeguard,
325
330
  };
326
331
  case "yolo":
327
332
  return {
@@ -329,7 +334,7 @@ const permissionProfile = (mode) => {
329
334
  description: `global Claude settings permissions.allow/deny: adds broader edit/write and command allow rules plus dangerous-shell denies; ${permissionOwnershipDescription}`,
330
335
  routineAutomation: true,
331
336
  dangerousShellDenyPreserved: true,
332
- plannerSafeguard: "lit-planner remains permissionMode: plan",
337
+ plannerSafeguard,
333
338
  };
334
339
  case "safe":
335
340
  default:
@@ -338,7 +343,7 @@ const permissionProfile = (mode) => {
338
343
  description: `global Claude settings permissions.allow/deny: adds no rules; ${permissionOwnershipDescription}`,
339
344
  routineAutomation: false,
340
345
  dangerousShellDenyPreserved: true,
341
- plannerSafeguard: "lit-planner remains permissionMode: plan",
346
+ plannerSafeguard,
342
347
  };
343
348
  }
344
349
  };
@@ -1219,7 +1224,8 @@ const permissionIntegrityFailures = (settings) => {
1219
1224
  && typeof actualProfile === "object"
1220
1225
  && !Array.isArray(actualProfile)
1221
1226
  && Object.keys(actualProfile).length === Object.keys(expectedProfile).length
1222
- && Object.entries(expectedProfile).every(([key, value]) => actualProfile[key] === value);
1227
+ && Object.entries(expectedProfile).every(([key, value]) => actualProfile[key] === value
1228
+ || (key === "plannerSafeguard" && actualProfile[key] === legacyPlannerSafeguard));
1223
1229
  if (
1224
1230
  !profileMatches
1225
1231
  ) failures.push("permissionPreference does not match permissionMode");
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="146" height="20" role="img" aria-label="release: 1.0.46"><title>release: 1.0.46</title><g shape-rendering="crispEdges"><rect width="49" height="20" fill="#080d14"/><rect x="49" width="97" height="20" fill="#ff6337"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text x="255" y="140" textLength="390" transform="scale(.1)">release</text><text x="965" y="140" textLength="870" transform="scale(.1)" fill="#080D14">1.0.46</text></g></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="146" height="20" role="img" aria-label="release: 1.0.48"><title>release: 1.0.48</title><g shape-rendering="crispEdges"><rect width="49" height="20" fill="#080d14"/><rect x="49" width="97" height="20" fill="#ff6337"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text x="255" y="140" textLength="390" transform="scale(.1)">release</text><text x="965" y="140" textLength="870" transform="scale(.1)" fill="#080D14">1.0.48</text></g></svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litfamily/litclaude",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "Claude Code plugin: add lit to a prompt and Claude plans, tests, checks and reviews the work, then leaves a handoff for the next session.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -57,7 +57,10 @@
57
57
  "postpack": "node tools/readme-for-npm.mjs restore",
58
58
  "check:npm-readme": "node tools/readme-for-npm.mjs check",
59
59
  "postinstall": "node scripts/postinstall.mjs",
60
- "test": "node --test --test-concurrency=1 --import ./test/helpers/scrub-ambient-env.mjs --import ./test/helpers/motion-offline-prewarm.mjs test/*.test.mjs",
60
+ "test": "node tools/test-tier.mjs fast",
61
+ "test:heavy": "node tools/test-tier.mjs heavy",
62
+ "test:all": "node tools/test-tier.mjs all",
63
+ "test:shard": "node tools/test-shard.mjs",
61
64
  "validate:plugin": "node scripts/validate-plugin.mjs",
62
65
  "doctor": "node scripts/doctor.mjs",
63
66
  "qa:tmux": "bash scripts/qa-claude-plugin-smoke.sh",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "litclaude",
3
3
  "description": "Claude Code-native workflow plugin with a bounded-authority start-work lifecycle.",
4
- "version": "1.0.46",
4
+ "version": "1.0.48",
5
5
  "author": {
6
6
  "name": "LitClaude contributors"
7
7
  },
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "typescript": {
3
- "command": ["typescript-language-server", "--stdio"],
3
+ "command": "typescript-language-server",
4
+ "args": ["--stdio"],
4
5
  "extensionToLanguage": {
5
6
  ".ts": "typescript",
6
7
  ".tsx": "typescriptreact",
7
8
  ".js": "javascript",
8
9
  ".jsx": "javascriptreact",
9
10
  ".mjs": "javascript",
10
- ".cjs": "javascript"
11
+ ".cjs": "javascript",
12
+ ".mts": "typescript",
13
+ ".cts": "typescript"
11
14
  }
12
15
  }
13
16
  }
@@ -2,7 +2,6 @@
2
2
  name: korean-prose-editor
3
3
  description: Edits Korean prose for naturalness while preserving meaning.
4
4
  tools: Read, Grep, Glob
5
- permissionMode: default
6
5
  skills:
7
6
  - lit-humanizer
8
7
  - rules
@@ -2,7 +2,6 @@
2
2
  name: korean-style-analyzer
3
3
  description: Analyzes Korean prose for machine-written texture and revision targets.
4
4
  tools: Read, Grep, Glob
5
- permissionMode: plan
6
5
  skills:
7
6
  - lit-humanizer
8
7
  - rules
@@ -2,7 +2,6 @@
2
2
  name: librarian-researcher
3
3
  description: Researches official docs and pinned source references.
4
4
  tools: Read, Grep, Glob, WebFetch, WebSearch
5
- permissionMode: plan
6
5
  skills:
7
6
  - rules
8
7
  ---
@@ -2,7 +2,6 @@
2
2
  name: lit-executor
3
3
  description: Executes one checked plan task at a time with tests and evidence.
4
4
  tools: Read, Grep, Glob, Bash, Write, Edit, MultiEdit
5
- permissionMode: acceptEdits
6
5
  skills:
7
6
  - start-work
8
7
  - lit-code
@@ -2,7 +2,6 @@
2
2
  name: lit-planner
3
3
  description: Creates decision-complete Claude Code work plans without product-code edits.
4
4
  tools: Read, Grep, Glob, WebFetch, WebSearch
5
- permissionMode: plan
6
5
  skills:
7
6
  - lit-plan
8
7
  - rules
@@ -2,7 +2,6 @@
2
2
  name: lit-verifier
3
3
  description: Verifies implementation against objective, evidence, and guardrails.
4
4
  tools: Read, Grep, Glob
5
- permissionMode: default
6
5
  skills:
7
6
  - review-work
8
7
  - rules
@@ -2,7 +2,6 @@
2
2
  name: meaning-preservation-auditor
3
3
  description: Audits Korean revisions for meaning preservation and factual drift.
4
4
  tools: Read, Grep, Glob
5
- permissionMode: default
6
5
  skills:
7
6
  - lit-humanizer
8
7
  - review-work
@@ -2,7 +2,6 @@
2
2
  name: native-flow-reviewer
3
3
  description: Reviews Korean revisions for natural flow and native readability.
4
4
  tools: Read, Grep, Glob
5
- permissionMode: default
6
5
  skills:
7
6
  - lit-humanizer
8
7
  - review-work
@@ -2,7 +2,6 @@
2
2
  name: polish-orchestrator
3
3
  description: Coordinates strict Korean prose polish decisions and final summary.
4
4
  tools: Read, Grep, Glob
5
- permissionMode: default
6
5
  skills:
7
6
  - lit-humanizer
8
7
  - review-work
@@ -2,7 +2,6 @@
2
2
  name: qa-runner
3
3
  description: Runs real QA scenarios and captures artifacts plus cleanup receipts.
4
4
  tools: Read, Grep, Glob, Bash
5
- permissionMode: default
6
5
  skills:
7
6
  - start-work
8
7
  - review-work
@@ -2,7 +2,6 @@
2
2
  name: quality-reviewer
3
3
  description: Reviews changed files for defects, maintainability, and safety.
4
4
  tools: Read, Grep, Glob
5
- permissionMode: default
6
5
  skills:
7
6
  - review-work
8
7
  - lit-code
@@ -15,7 +15,8 @@ const result = run("typescript-language-server", ["--version"]);
15
15
 
16
16
  if (result.error) {
17
17
  console.log("typescript-language-server is not available.");
18
- console.log("Install with: npm install -g typescript-language-server typescript");
18
+ console.log("Install with: npm install -g typescript-language-server typescript@6");
19
+ console.log("Pin typescript@6: TypeScript 7 ships no lib/tsserver.js, which typescript-language-server loads.");
19
20
  process.exit(0);
20
21
  }
21
22
 
@@ -9,7 +9,7 @@ import {
9
9
  } from "../lib/wikify-knowledge.mjs";
10
10
 
11
11
  const protocolVersion = "2024-11-05";
12
- const serverVersion = "1.0.46";
12
+ const serverVersion = "1.0.48";
13
13
 
14
14
  const publicSourceReadTool = {
15
15
  name: "public_source_read",
@@ -540,8 +540,8 @@ export const register = (on, options) => {
540
540
  const { source, alt, animated } = composeSvgCard(model, { motion, accent: live.accent });
541
541
  drawn = elements.Svg({ source, alt, ...(animated ? { isInteractive: true } : {}) });
542
542
  }
543
- } else if (elements.Client && !live.clientFailed) {
544
- drawn = elements.Client({ key: "lit-band", module: "./lit-band-client.mjs", props: { model, columns, glyphs, motion, accent: live.accent, color } });
543
+ } else if (!live.clientFailed) {
544
+ drawn = h("Client", { key: "lit-band", module: "./lit-band-client.mjs", props: { model, columns, glyphs, motion, accent: live.accent, color } });
545
545
  } else if (model.visible) {
546
546
  drawn = renderBand(elements, composeBand(model, settledSample(model), { columns, glyphs, accent: live.accent, color }));
547
547
  }
@@ -162,14 +162,15 @@ command -v <server-executable> # e.g. typescript-language-server, gopls, rust-
162
162
  ### 3. Configure (LitClaude `.lsp.json`)
163
163
 
164
164
  LitClaude declares servers in `plugins/litclaude/.lsp.json`. The schema is keyed
165
- by **language name**; each entry holds a `command` array and an
166
- `extensionToLanguage` map that tells Claude Code which file extensions route to
167
- that server:
165
+ by **language name**; each entry holds a `command` string (the executable), an
166
+ `args` array and an `extensionToLanguage` map that tells Claude Code which file
167
+ extensions route to that server:
168
168
 
169
169
  ```json
170
170
  {
171
171
  "<language>": {
172
- "command": ["<bin>", "<arg>"],
172
+ "command": "<bin>",
173
+ "args": ["<arg>"],
173
174
  "extensionToLanguage": {
174
175
  ".ext": "<languageId>"
175
176
  }
@@ -179,7 +180,9 @@ that server:
179
180
 
180
181
  Rules:
181
182
 
182
- - One entry per server, keyed by language name. The `command` is the full argv.
183
+ - One entry per server, keyed by language name. `command` is the executable as a
184
+ single string and `args` holds its arguments; Claude Code rejects an argv array
185
+ in `command` and loads no server from the file.
183
186
  - `extensionToLanguage` maps each owned extension to the LSP `languageId`. Claude
184
187
  Code resolves the server for an edited file by matching its extension here.
185
188
  - The shipped default declares only `typescript`. Add a language by copying the
@@ -30,7 +30,8 @@ Add a `bash` entry to `plugins/litclaude/.lsp.json`:
30
30
  ```json
31
31
  {
32
32
  "bash": {
33
- "command": ["bash-language-server", "start"],
33
+ "command": "bash-language-server",
34
+ "args": ["start"],
34
35
  "extensionToLanguage": {
35
36
  ".sh": "shellscript",
36
37
  ".bash": "shellscript",
@@ -25,7 +25,8 @@ Add a `c-cpp` entry to `plugins/litclaude/.lsp.json`:
25
25
  ```json
26
26
  {
27
27
  "c-cpp": {
28
- "command": ["clangd", "--background-index", "--clang-tidy"],
28
+ "command": "clangd",
29
+ "args": ["--background-index", "--clang-tidy"],
29
30
  "extensionToLanguage": {
30
31
  ".c": "c",
31
32
  ".h": "c",
@@ -41,8 +42,8 @@ Add a `c-cpp` entry to `plugins/litclaude/.lsp.json`:
41
42
  ```
42
43
 
43
44
  Claude Code routes these extensions to `clangd` via the map. clangd reads
44
- build flags from a project `.clangd` file, not from `.lsp.json`; the `command`
45
- above already passes `--background-index --clang-tidy`.
45
+ build flags from a project `.clangd` file, not from `.lsp.json`; the `args`
46
+ above already pass `--background-index --clang-tidy`.
46
47
 
47
48
  ## Compile commands
48
49
 
@@ -56,7 +57,7 @@ Without it, clangd falls back to heuristic flags and reports spurious errors.
56
57
 
57
58
  ## Alternatives
58
59
 
59
- `ccls` exists as a third-party server — set the `command` to `["ccls"]` in the
60
+ `ccls` exists as a third-party server — set the `command` to `"ccls"` in the
60
61
  `c-cpp` entry if you prefer it.
61
62
 
62
63
  ## Troubleshooting
@@ -27,7 +27,7 @@ Add a `csharp` entry to `plugins/litclaude/.lsp.json`:
27
27
  ```json
28
28
  {
29
29
  "csharp": {
30
- "command": ["csharp-ls"],
30
+ "command": "csharp-ls",
31
31
  "extensionToLanguage": {
32
32
  ".cs": "csharp"
33
33
  }
@@ -45,7 +45,8 @@ Razor and Blazor files use a separate server. Add a second entry:
45
45
  ```json
46
46
  {
47
47
  "razor": {
48
- "command": ["roslyn-language-server", "--stdio"],
48
+ "command": "roslyn-language-server",
49
+ "args": ["--stdio"],
49
50
  "extensionToLanguage": {
50
51
  ".razor": "razor",
51
52
  ".cshtml": "razor"
@@ -25,7 +25,8 @@ Add a `dart` entry to `plugins/litclaude/.lsp.json`:
25
25
  ```json
26
26
  {
27
27
  "dart": {
28
- "command": ["dart", "language-server", "--lsp"],
28
+ "command": "dart",
29
+ "args": ["language-server", "--lsp"],
29
30
  "extensionToLanguage": {
30
31
  ".dart": "dart"
31
32
  }
@@ -26,7 +26,7 @@ Add an `elixir` entry to `plugins/litclaude/.lsp.json`:
26
26
  ```json
27
27
  {
28
28
  "elixir": {
29
- "command": ["elixir-ls"],
29
+ "command": "elixir-ls",
30
30
  "extensionToLanguage": {
31
31
  ".ex": "elixir",
32
32
  ".exs": "elixir"
@@ -40,8 +40,8 @@ configuration is normally required.
40
40
 
41
41
  ## Alternatives
42
42
 
43
- - **lexical**: set the `command` to `["lexical"]` — fast, modern alternative LSP.
44
- - **next-ls**: set the `command` to `["nextls", "--stdio"]` — from the elixir-tools project.
43
+ - **lexical**: set the `command` to `"lexical"` — fast, modern alternative LSP.
44
+ - **next-ls**: set the `command` to `"nextls"` and `args` to `["--stdio"]` — from the elixir-tools project.
45
45
 
46
46
  ## Troubleshooting
47
47
  - **PATH:** `elixir-ls` must be on PATH; reopen the shell after install.
@@ -30,7 +30,7 @@ Add a `go` entry to `plugins/litclaude/.lsp.json`:
30
30
  ```json
31
31
  {
32
32
  "go": {
33
- "command": ["gopls"],
33
+ "command": "gopls",
34
34
  "extensionToLanguage": {
35
35
  ".go": "go"
36
36
  }
@@ -32,7 +32,8 @@ Add a `haskell` entry to `plugins/litclaude/.lsp.json`:
32
32
  ```json
33
33
  {
34
34
  "haskell": {
35
- "command": ["haskell-language-server-wrapper", "--lsp"],
35
+ "command": "haskell-language-server-wrapper",
36
+ "args": ["--lsp"],
36
37
  "extensionToLanguage": {
37
38
  ".hs": "haskell",
38
39
  ".lhs": "haskell"
@@ -25,7 +25,7 @@ Add a `java` entry to `plugins/litclaude/.lsp.json`:
25
25
  ```json
26
26
  {
27
27
  "java": {
28
- "command": ["jdtls"],
28
+ "command": "jdtls",
29
29
  "extensionToLanguage": {
30
30
  ".java": "java"
31
31
  }
@@ -33,7 +33,8 @@ Add a `julia` entry to `plugins/litclaude/.lsp.json`:
33
33
  ```json
34
34
  {
35
35
  "julia": {
36
- "command": ["julia", "--startup-file=no", "--history-file=no", "-e", "using LanguageServer; runserver()"],
36
+ "command": "julia",
37
+ "args": ["--startup-file=no", "--history-file=no", "-e", "using LanguageServer; runserver()"],
37
38
  "extensionToLanguage": {
38
39
  ".jl": "julia"
39
40
  }
@@ -27,7 +27,7 @@ Add a `kotlin` entry to `plugins/litclaude/.lsp.json`:
27
27
  ```json
28
28
  {
29
29
  "kotlin": {
30
- "command": ["kotlin-lsp"],
30
+ "command": "kotlin-lsp",
31
31
  "extensionToLanguage": {
32
32
  ".kt": "kotlin",
33
33
  ".kts": "kotlin"
@@ -25,7 +25,7 @@ Add a `lua` entry to `plugins/litclaude/.lsp.json`:
25
25
  ```json
26
26
  {
27
27
  "lua": {
28
- "command": ["lua-language-server"],
28
+ "command": "lua-language-server",
29
29
  "extensionToLanguage": {
30
30
  ".lua": "lua"
31
31
  }
@@ -25,7 +25,8 @@ Add a `php` entry to `plugins/litclaude/.lsp.json`:
25
25
  ```json
26
26
  {
27
27
  "php": {
28
- "command": ["intelephense", "--stdio"],
28
+ "command": "intelephense",
29
+ "args": ["--stdio"],
29
30
  "extensionToLanguage": {
30
31
  ".php": "php"
31
32
  }
@@ -41,7 +42,7 @@ which is passed through the editor's LSP `initializationOptions` rather than
41
42
  ## Alternatives
42
43
 
43
44
  **phpactor** — pure-PHP, no Node dependency. Set the `command` to
44
- `["phpactor", "language-server"]`.
45
+ `"phpactor"` and `args` to `["language-server"]`.
45
46
 
46
47
  ## Troubleshooting
47
48
  - **PATH:** `intelephense` must be on PATH; reopen the shell after a global npm install. If missing, check `npm bin -g` is on PATH.
@@ -22,12 +22,13 @@ command -v basedpyright-langserver
22
22
  ## Configure
23
23
 
24
24
  Add a `python` entry to `plugins/litclaude/.lsp.json`. LitClaude keys each entry
25
- by language name with a `command` array and an `extensionToLanguage` map:
25
+ by language name with a `command` string, an `args` array and an `extensionToLanguage` map:
26
26
 
27
27
  ```json
28
28
  {
29
29
  "python": {
30
- "command": ["basedpyright-langserver", "--stdio"],
30
+ "command": "basedpyright-langserver",
31
+ "args": ["--stdio"],
31
32
  "extensionToLanguage": {
32
33
  ".py": "python",
33
34
  ".pyi": "python"
@@ -43,14 +44,14 @@ Type-check strictness lives in `pyrightconfig.json` or `[tool.basedpyright]` in
43
44
  ## Choosing a server
44
45
 
45
46
  Type checkers and the linter serve different roles. Run a type server, and
46
- optionally `ruff` ALONGSIDE it (not instead). Set the `command` accordingly:
47
+ optionally `ruff` ALONGSIDE it (not instead). Set `command` and `args` accordingly:
47
48
 
48
- | command | install | role |
49
+ | `command` + `args` | install | role |
49
50
  | ------------------------------------ | ---------------------- | --------------------------------------- |
50
- | `["basedpyright-langserver", "--stdio"]` | `pip install basedpyright` | strictest types, **default** |
51
- | `["pyright-langserver", "--stdio"]` | `pip install pyright` | upstream Microsoft type checker |
52
- | `["ty", "server"]` | `pip install ty` | Astral, very fast, pre-1.0/experimental |
53
- | `["ruff", "server"]` | `pip install ruff` | lint + format only, complements a type server |
51
+ | `"basedpyright-langserver"` + `["--stdio"]` | `pip install basedpyright` | strictest types, **default** |
52
+ | `"pyright-langserver"` + `["--stdio"]` | `pip install pyright` | upstream Microsoft type checker |
53
+ | `"ty"` + `["server"]` | `pip install ty` | Astral, very fast, pre-1.0/experimental |
54
+ | `"ruff"` + `["server"]` | `pip install ruff` | lint + format only, complements a type server |
54
55
 
55
56
  Recommended: keep `basedpyright` as the `python` entry. `ruff` does not
56
57
  type-check, so if you want lint diagnostics too run it as a separate tool rather
@@ -27,7 +27,8 @@ Add a `ruby` entry to `plugins/litclaude/.lsp.json`:
27
27
  ```json
28
28
  {
29
29
  "ruby": {
30
- "command": ["rubocop", "--lsp"],
30
+ "command": "rubocop",
31
+ "args": ["--lsp"],
31
32
  "extensionToLanguage": {
32
33
  ".rb": "ruby",
33
34
  ".rake": "ruby",
@@ -44,8 +45,8 @@ formatting, and code actions over LSP.
44
45
 
45
46
  ## Alternatives
46
47
 
47
- - **Shopify `ruby-lsp`** — the standalone `ruby-lsp` executable, richer navigation than RuboCop alone. Set the `command` to `["ruby-lsp"]`.
48
- - **`solargraph`** — older completion/type server; install with `gem install solargraph`, set the `command` to `["solargraph", "stdio"]`.
48
+ - **Shopify `ruby-lsp`** — the standalone `ruby-lsp` executable, richer navigation than RuboCop alone. Set the `command` to `"ruby-lsp"`.
49
+ - **`solargraph`** — older completion/type server; install with `gem install solargraph`, set the `command` to `"solargraph"` and `args` to `["stdio"]`.
49
50
 
50
51
  ## Troubleshooting
51
52
 
@@ -27,7 +27,7 @@ Add a `rust` entry to `plugins/litclaude/.lsp.json`:
27
27
  ```json
28
28
  {
29
29
  "rust": {
30
- "command": ["rust-analyzer"],
30
+ "command": "rust-analyzer",
31
31
  "extensionToLanguage": {
32
32
  ".rs": "rust"
33
33
  }
@@ -25,7 +25,7 @@ Add a `swift` entry to `plugins/litclaude/.lsp.json`:
25
25
  ```json
26
26
  {
27
27
  "swift": {
28
- "command": ["sourcekit-lsp"],
28
+ "command": "sourcekit-lsp",
29
29
  "extensionToLanguage": {
30
30
  ".swift": "swift",
31
31
  ".objc": "objective-c",
@@ -26,7 +26,8 @@ Add a `terraform` entry to `plugins/litclaude/.lsp.json`:
26
26
  ```json
27
27
  {
28
28
  "terraform": {
29
- "command": ["terraform-ls", "serve"],
29
+ "command": "terraform-ls",
30
+ "args": ["serve"],
30
31
  "extensionToLanguage": {
31
32
  ".tf": "terraform",
32
33
  ".tfvars": "terraform-vars"
@@ -2,17 +2,18 @@
2
2
 
3
3
  - **Recommended server:** `typescript-language-server --stdio`
4
4
  - **Extensions:** `.ts .tsx .js .jsx .mjs .cjs .mts .cts`
5
- - **Install hint:** `npm install -g typescript-language-server typescript`
5
+ - **Install hint:** `npm install -g typescript-language-server typescript@6`
6
6
 
7
7
  ## Install
8
8
 
9
- - **macOS:** `npm install -g typescript-language-server typescript`
10
- - **Linux:** `npm install -g typescript-language-server typescript`
11
- - **Windows:** `npm install -g typescript-language-server typescript` (PowerShell or cmd)
9
+ - **macOS:** `npm install -g typescript-language-server typescript@6`
10
+ - **Linux:** `npm install -g typescript-language-server typescript@6`
11
+ - **Windows:** `npm install -g typescript-language-server typescript@6` (PowerShell or cmd)
12
12
 
13
13
  `typescript-language-server` is only a thin wrapper — it needs the `typescript`
14
14
  package (`tsserver`) present too, either globally or in the project's
15
- `node_modules`. Always install both.
15
+ `node_modules`. Always install both. Pin `typescript@6`: TypeScript 7 ships no
16
+ `lib/tsserver.js`, which `typescript-language-server` loads.
16
17
 
17
18
  Confirm it resolves:
18
19
 
@@ -23,47 +24,49 @@ command -v typescript-language-server
23
24
  ## Configure
24
25
 
25
26
  LitClaude declares language servers in `plugins/litclaude/.lsp.json`. Each entry
26
- is keyed by language name and holds a `command` array plus an
27
+ is keyed by language name and holds a `command` string, an `args` array and an
27
28
  `extensionToLanguage` map. TypeScript/JavaScript already ships in the default
28
29
  config:
29
30
 
30
31
  ```json
31
32
  {
32
33
  "typescript": {
33
- "command": ["typescript-language-server", "--stdio"],
34
+ "command": "typescript-language-server",
35
+ "args": ["--stdio"],
34
36
  "extensionToLanguage": {
35
37
  ".ts": "typescript",
36
38
  ".tsx": "typescriptreact",
37
39
  ".js": "javascript",
38
40
  ".jsx": "javascriptreact",
39
41
  ".mjs": "javascript",
40
- ".cjs": "javascript"
42
+ ".cjs": "javascript",
43
+ ".mts": "typescript",
44
+ ".cts": "typescript"
41
45
  }
42
46
  }
43
47
  }
44
48
  ```
45
49
 
46
- Add `.mts`/`.cts` to `extensionToLanguage` if your project uses them. Claude Code
47
- resolves the server for an edited file by matching its extension against these
48
- maps.
50
+ Claude Code resolves the server for an edited file by matching its extension
51
+ against these maps.
49
52
 
50
53
  ## Alternatives
51
54
 
52
- Swap the `command` for your toolchain. Keep the same `.lsp.json` shape and adjust
55
+ Swap `command` and `args` for your toolchain. Keep the same `.lsp.json` shape and adjust
53
56
  `extensionToLanguage` to cover the extensions that server should own:
54
57
 
55
- | command | when to choose |
58
+ | `command` + `args` | when to choose |
56
59
  | ----------------------------------------- | --------------------------------------- |
57
- | `["deno", "lsp"]` | Deno projects (handles `.ts/.tsx/.js`) |
58
- | `["biome", "lsp-proxy", "--stdio"]` | Biome lint/format as the LSP |
59
- | `["vscode-eslint-language-server", "--stdio"]` | ESLint diagnostics |
60
- | `["oxlint", "--lsp"]` | fast Oxc-based linting |
61
- | `["vue-language-server", "--stdio"]` | `.vue` single-file components |
62
- | `["svelteserver", "--stdio"]` | `.svelte` files |
63
- | `["astro-ls", "--stdio"]` | `.astro` files |
60
+ | `"deno"` + `["lsp"]` | Deno projects (handles `.ts/.tsx/.js`) |
61
+ | `"biome"` + `["lsp-proxy", "--stdio"]` | Biome lint/format as the LSP |
62
+ | `"vscode-eslint-language-server"` + `["--stdio"]` | ESLint diagnostics |
63
+ | `"oxlint"` + `["--lsp"]` | fast Oxc-based linting |
64
+ | `"vue-language-server"` + `["--stdio"]` | `.vue` single-file components |
65
+ | `"svelteserver"` + `["--stdio"]` | `.svelte` files |
66
+ | `"astro-ls"` + `["--stdio"]` | `.astro` files |
64
67
 
65
68
  `eslint` install: `npm i -g vscode-langservers-extracted`. To run Deno instead
66
- of the default, replace the `typescript` entry's `command` with `["deno", "lsp"]`.
69
+ of the default, set the `typescript` entry's `command` to `"deno"` and `args` to `["lsp"]`.
67
70
 
68
71
  ## Troubleshooting
69
72
  - **PATH:** `typescript-language-server` must be on PATH; reopen shell after `npm i -g`. Check your global bin with `npm bin -g`.
@@ -23,7 +23,8 @@ Add a `yaml` entry to `plugins/litclaude/.lsp.json`:
23
23
  ```json
24
24
  {
25
25
  "yaml": {
26
- "command": ["yaml-language-server", "--stdio"],
26
+ "command": "yaml-language-server",
27
+ "args": ["--stdio"],
27
28
  "extensionToLanguage": {
28
29
  ".yaml": "yaml",
29
30
  ".yml": "yaml"
@@ -26,7 +26,7 @@ Add a `zig` entry to `plugins/litclaude/.lsp.json`:
26
26
  ```json
27
27
  {
28
28
  "zig": {
29
- "command": ["zls"],
29
+ "command": "zls",
30
30
  "extensionToLanguage": {
31
31
  ".zig": "zig",
32
32
  ".zon": "zig"
@@ -118,7 +118,7 @@ function isRecord(value: unknown): value is Record<string, unknown> {
118
118
  }
119
119
 
120
120
  // LitClaude .lsp.json is keyed by language name:
121
- // { "typescript": { "command": [...], "extensionToLanguage": {...} } }
121
+ // { "typescript": { "command": "<bin>", "args": [...], "extensionToLanguage": {...} } }
122
122
  function parseConfiguredLanguages(path: string): readonly string[] {
123
123
  let parsed: unknown
124
124
  try {
@@ -1,8 +1,9 @@
1
1
  // Standalone snapshot of the primary language server per supported language,
2
2
  // embedded so detect-lsp.ts runs without any external dependency in any project.
3
3
  // Each entry mirrors the per-language references/<language>/README.md and the
4
- // LitClaude .lsp.json shape, which is keyed by language name:
5
- // { "<language>": { "command": [...], "extensionToLanguage": { ".ext": "<lang>" } } }
4
+ // LitClaude .lsp.json, which is keyed by language name:
5
+ // { "<language>": { "command": "<bin>", "args": [...], "extensionToLanguage": { ".ext": "<lang>" } } }
6
+ // Here `command` is the full argv: its first item is .lsp.json `command`, the rest are `args`.
6
7
  // Edit this table when a reference README changes.
7
8
 
8
9
  export interface LanguageServer {
@@ -17,7 +18,7 @@ export const LANGUAGES: readonly LanguageServer[] = [
17
18
  language: "typescript",
18
19
  command: ["typescript-language-server", "--stdio"],
19
20
  extensions: [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", ".mts", ".cts"],
20
- installHint: "npm install -g typescript-language-server typescript",
21
+ installHint: "npm install -g typescript-language-server typescript@6",
21
22
  },
22
23
  {
23
24
  language: "python",
@@ -86,8 +86,9 @@ function resolveServer(ext: string, configPath: string): ResolvedServer | null {
86
86
  if (!isRecord(entry)) continue
87
87
  const map = entry["extensionToLanguage"]
88
88
  const command = entry["command"]
89
- if (isRecord(map) && Object.keys(map).includes(ext) && isStringArray(command)) {
90
- return { language, command }
89
+ const args = entry["args"] ?? []
90
+ if (isRecord(map) && Object.keys(map).includes(ext) && typeof command === "string" && isStringArray(args)) {
91
+ return { language, command: [command, ...args] }
91
92
  }
92
93
  }
93
94
  }
@@ -2,9 +2,10 @@ import { spawnSync } from "node:child_process";
2
2
  import { resolve } from "node:path";
3
3
  import { fileURLToPath } from "node:url";
4
4
 
5
- // publish.yml sets LITCLAUDE_PUBLISH_FROM_CI. There the suite has already run in ci.yml, so the gate
6
- // only proves that ci.yml passed on this exact, unmodified commit and refuses the publish otherwise.
7
- // Everywhere else (a local npm publish, ci.yml itself) the full suite runs as before.
5
+ // publish.yml sets LITCLAUDE_PUBLISH_FROM_CI. There the suites have already run in CI, so the gate
6
+ // only proves that ci.yml (fast tier) and ci-heavy.yml (render/installer tier) both passed on this
7
+ // exact, unmodified commit and refuses the publish otherwise. Everywhere else (a local npm publish,
8
+ // ci.yml itself) the full suite runs as before.
8
9
  export async function ciVerdict({ env, fetchImpl = fetch, git = runGit }) {
9
10
  const sha = env.GITHUB_SHA ?? "";
10
11
  const repository = env.GITHUB_REPOSITORY ?? "";
@@ -13,8 +14,16 @@ export async function ciVerdict({ env, fetchImpl = fetch, git = runGit }) {
13
14
  }
14
15
  if (git(["rev-parse", "HEAD"]) !== sha) return { ok: false, reason: `checkout is not ${sha}` };
15
16
  if (git(["status", "--porcelain"]) !== "") return { ok: false, reason: "checkout has local changes" };
16
- const url = `https://api.github.com/repos/${repository}/actions/workflows/ci.yml/runs`
17
- + `?head_sha=${sha}&status=success&event=push&per_page=1`;
17
+ const fast = await successfulRun({ env, fetchImpl, repository, sha, workflow: "ci.yml", events: ["push"] });
18
+ if (!fast.ok) return fast;
19
+ const heavy = await successfulRun({ env, fetchImpl, repository, sha, workflow: "ci-heavy.yml", events: ["push", "schedule", "workflow_dispatch"] });
20
+ if (!heavy.ok) return heavy;
21
+ return { ok: true, reason: `ci.yml run ${fast.run} and ci-heavy.yml run ${heavy.run} passed on ${sha}` };
22
+ }
23
+
24
+ async function successfulRun({ env, fetchImpl, repository, sha, workflow, events }) {
25
+ const url = `https://api.github.com/repos/${repository}/actions/workflows/${workflow}/runs`
26
+ + `?head_sha=${sha}&status=success&per_page=5`;
18
27
  const headers = { accept: "application/vnd.github+json" };
19
28
  if (env.GITHUB_TOKEN) headers.authorization = `Bearer ${env.GITHUB_TOKEN}`;
20
29
  let body;
@@ -25,11 +34,13 @@ export async function ciVerdict({ env, fetchImpl = fetch, git = runGit }) {
25
34
  } catch (error) {
26
35
  return { ok: false, reason: `GitHub API unreachable: ${error instanceof Error ? error.message : String(error)}` };
27
36
  }
28
- const run = Array.isArray(body?.workflow_runs) ? body.workflow_runs[0] : undefined;
29
- if (run?.head_sha !== sha || run?.conclusion !== "success") {
30
- return { ok: false, reason: `no successful ci.yml push run for ${sha}` };
37
+ const runs = Array.isArray(body?.workflow_runs) ? body.workflow_runs : [];
38
+ const run = runs.find((candidate) => candidate?.head_sha === sha && candidate?.conclusion === "success"
39
+ && events.includes(candidate?.event));
40
+ if (!run) {
41
+ return { ok: false, reason: `no successful ${workflow} run (${events.join("/")}) for ${sha}` };
31
42
  }
32
- return { ok: true, reason: `ci.yml run ${run.id} passed on ${sha}` };
43
+ return { ok: true, run: run.id };
33
44
  }
34
45
 
35
46
  function runGit(args) {
@@ -43,8 +54,8 @@ function runSuite() {
43
54
  );
44
55
  const npmExecPath = process.env.npm_execpath;
45
56
  const result = npmExecPath
46
- ? spawnSync(process.execPath, [npmExecPath, "test"], { env, stdio: "inherit" })
47
- : spawnSync(process.platform === "win32" ? "npm.cmd" : "npm", ["test"], {
57
+ ? spawnSync(process.execPath, [npmExecPath, "run", "test:all"], { env, stdio: "inherit" })
58
+ : spawnSync(process.platform === "win32" ? "npm.cmd" : "npm", ["run", "test:all"], {
48
59
  env,
49
60
  shell: process.platform === "win32",
50
61
  stdio: "inherit",
@@ -18,17 +18,17 @@ export const APPROVED_MODEL_ROUTES = Object.freeze({
18
18
  });
19
19
 
20
20
  export const EXPECTED_AGENT_PERMISSIONS = Object.freeze({
21
- 'lit-executor': Object.freeze({ tools: 'Read, Grep, Glob, Bash, Write, Edit, MultiEdit', permissionMode: 'acceptEdits' }),
22
- 'korean-prose-editor': Object.freeze({ tools: 'Read, Grep, Glob', permissionMode: 'default' }),
23
- 'korean-style-analyzer': Object.freeze({ tools: 'Read, Grep, Glob', permissionMode: 'plan' }),
24
- 'librarian-researcher': Object.freeze({ tools: 'Read, Grep, Glob, WebFetch, WebSearch', permissionMode: 'plan' }),
25
- 'meaning-preservation-auditor': Object.freeze({ tools: 'Read, Grep, Glob', permissionMode: 'default' }),
26
- 'native-flow-reviewer': Object.freeze({ tools: 'Read, Grep, Glob', permissionMode: 'default' }),
27
- 'lit-verifier': Object.freeze({ tools: 'Read, Grep, Glob', permissionMode: 'default' }),
28
- 'polish-orchestrator': Object.freeze({ tools: 'Read, Grep, Glob', permissionMode: 'default' }),
29
- 'lit-planner': Object.freeze({ tools: 'Read, Grep, Glob, WebFetch, WebSearch', permissionMode: 'plan' }),
30
- 'qa-runner': Object.freeze({ tools: 'Read, Grep, Glob, Bash', permissionMode: 'default' }),
31
- 'quality-reviewer': Object.freeze({ tools: 'Read, Grep, Glob', permissionMode: 'default' }),
21
+ 'lit-executor': Object.freeze({ tools: 'Read, Grep, Glob, Bash, Write, Edit, MultiEdit' }),
22
+ 'korean-prose-editor': Object.freeze({ tools: 'Read, Grep, Glob' }),
23
+ 'korean-style-analyzer': Object.freeze({ tools: 'Read, Grep, Glob' }),
24
+ 'librarian-researcher': Object.freeze({ tools: 'Read, Grep, Glob, WebFetch, WebSearch' }),
25
+ 'meaning-preservation-auditor': Object.freeze({ tools: 'Read, Grep, Glob' }),
26
+ 'native-flow-reviewer': Object.freeze({ tools: 'Read, Grep, Glob' }),
27
+ 'lit-verifier': Object.freeze({ tools: 'Read, Grep, Glob' }),
28
+ 'polish-orchestrator': Object.freeze({ tools: 'Read, Grep, Glob' }),
29
+ 'lit-planner': Object.freeze({ tools: 'Read, Grep, Glob, WebFetch, WebSearch' }),
30
+ 'qa-runner': Object.freeze({ tools: 'Read, Grep, Glob, Bash' }),
31
+ 'quality-reviewer': Object.freeze({ tools: 'Read, Grep, Glob' }),
32
32
  });
33
33
 
34
34
  const UNSUPPORTED_MESSAGE =
@@ -152,11 +152,11 @@ export function inspectClaudeNativeSurface(root = ROOT) {
152
152
  }
153
153
  const expected = EXPECTED_AGENT_PERMISSIONS[agentName];
154
154
  if (!expected) continue;
155
- const actual = { tools: fieldOf(frontmatter, 'tools'), permissionMode: fieldOf(frontmatter, 'permissionMode') };
155
+ const actual = { tools: fieldOf(frontmatter, 'tools') };
156
156
  permissions[agentName] = actual;
157
- if (actual.tools !== expected.tools || actual.permissionMode !== expected.permissionMode) {
158
- failures.push(`AGENT_PERMISSION_CHANGED:${agentName}`);
159
- }
157
+ if (actual.tools !== expected.tools) failures.push(`AGENT_PERMISSION_CHANGED:${agentName}`);
158
+ // Claude Code ignores permissionMode in plugin agents; the tools list is the boundary.
159
+ if (fieldOf(frontmatter, 'permissionMode') !== null) failures.push(`AGENT_PERMISSION_MODE_IGNORED:${agentName}`);
160
160
  }
161
161
 
162
162
  for (const agentName of Object.keys(EXPECTED_AGENT_PERMISSIONS)) {