@litfamily/litclaude 1.0.46 → 1.0.47
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/CHANGELOG.md +13 -0
- package/README.md +8 -8
- package/README_ko-KR.md +8 -8
- package/bin/litclaude-ai.js +10 -4
- package/docs/assets/readme/badge-version.svg +1 -1
- package/package.json +5 -2
- package/plugins/litclaude/.claude-plugin/plugin.json +1 -1
- package/plugins/litclaude/.lsp.json +5 -2
- package/plugins/litclaude/agents/korean-prose-editor.md +0 -1
- package/plugins/litclaude/agents/korean-style-analyzer.md +0 -1
- package/plugins/litclaude/agents/librarian-researcher.md +0 -1
- package/plugins/litclaude/agents/lit-executor.md +0 -1
- package/plugins/litclaude/agents/lit-planner.md +0 -1
- package/plugins/litclaude/agents/lit-verifier.md +0 -1
- package/plugins/litclaude/agents/meaning-preservation-auditor.md +0 -1
- package/plugins/litclaude/agents/native-flow-reviewer.md +0 -1
- package/plugins/litclaude/agents/polish-orchestrator.md +0 -1
- package/plugins/litclaude/agents/qa-runner.md +0 -1
- package/plugins/litclaude/agents/quality-reviewer.md +0 -1
- package/plugins/litclaude/bin/litclaude-lsp-doctor.js +2 -1
- package/plugins/litclaude/bin/litclaude-mcp.js +1 -1
- package/plugins/litclaude/skills/lsp-setup/SKILL.md +8 -5
- package/plugins/litclaude/skills/lsp-setup/references/bash/README.md +2 -1
- package/plugins/litclaude/skills/lsp-setup/references/c-cpp/README.md +5 -4
- package/plugins/litclaude/skills/lsp-setup/references/csharp/README.md +3 -2
- package/plugins/litclaude/skills/lsp-setup/references/dart/README.md +2 -1
- package/plugins/litclaude/skills/lsp-setup/references/elixir/README.md +3 -3
- package/plugins/litclaude/skills/lsp-setup/references/go/README.md +1 -1
- package/plugins/litclaude/skills/lsp-setup/references/haskell/README.md +2 -1
- package/plugins/litclaude/skills/lsp-setup/references/java/README.md +1 -1
- package/plugins/litclaude/skills/lsp-setup/references/julia/README.md +2 -1
- package/plugins/litclaude/skills/lsp-setup/references/kotlin/README.md +1 -1
- package/plugins/litclaude/skills/lsp-setup/references/lua/README.md +1 -1
- package/plugins/litclaude/skills/lsp-setup/references/php/README.md +3 -2
- package/plugins/litclaude/skills/lsp-setup/references/python/README.md +9 -8
- package/plugins/litclaude/skills/lsp-setup/references/ruby/README.md +4 -3
- package/plugins/litclaude/skills/lsp-setup/references/rust/README.md +1 -1
- package/plugins/litclaude/skills/lsp-setup/references/swift/README.md +1 -1
- package/plugins/litclaude/skills/lsp-setup/references/terraform/README.md +2 -1
- package/plugins/litclaude/skills/lsp-setup/references/typescript/README.md +24 -21
- package/plugins/litclaude/skills/lsp-setup/references/yaml/README.md +2 -1
- package/plugins/litclaude/skills/lsp-setup/references/zig/README.md +1 -1
- package/plugins/litclaude/skills/lsp-setup/scripts/detect-lsp.ts +1 -1
- package/plugins/litclaude/skills/lsp-setup/scripts/lsp-server-table.ts +4 -3
- package/plugins/litclaude/skills/lsp-setup/scripts/verify-lsp.ts +3 -2
- package/scripts/prepublish-test-gate.mjs +22 -11
- package/tools/check-model-routing.mjs +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.47 - 2026-11-09
|
|
4
|
+
|
|
5
|
+
- The TypeScript language server loads again. `.lsp.json` gave `command` as an argv array, which Claude Code
|
|
6
|
+
rejects (`LSP config validation failed`, `expected string`), so no LSP server came up from the plugin. It now
|
|
7
|
+
names the executable in `command` and passes `--stdio` in `args`, and also maps `.mts` and `.cts`. The
|
|
8
|
+
lsp-setup skill teaches the same shape in every language snippet, and a test parses each one. Thanks to a user
|
|
9
|
+
report.
|
|
10
|
+
- Plugin agents no longer declare `permissionMode`. Claude Code ignores that field for plugin agents and printed a
|
|
11
|
+
warning for each of the eleven files. The planner and the other read-only agents stay read-only through their
|
|
12
|
+
`tools` lists, which now carry the guard tests.
|
|
13
|
+
- Install hints for the TypeScript server now pin `typescript@6`. TypeScript 7 ships no `lib/tsserver.js`, which
|
|
14
|
+
`typescript-language-server` loads.
|
|
15
|
+
|
|
3
16
|
## 1.0.46 - 2026-11-01
|
|
4
17
|
|
|
5
18
|
- 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.
|
|
1
|
+
<p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.47/docs/assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.47/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.
|
|
8
|
-
<a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.
|
|
7
|
+
<img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.47/docs/assets/readme/badge-version.svg" alt="1.0.47" />
|
|
8
|
+
<a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.47/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.47/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.
|
|
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.47/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.
|
|
81
|
-
- [Migration and ownership conflicts](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.
|
|
82
|
-
- [Release history](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.
|
|
83
|
-
- [MIT license](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.
|
|
80
|
+
- [Privacy and network behavior](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.47/docs/privacy.md)
|
|
81
|
+
- [Migration and ownership conflicts](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.47/docs/migration.md)
|
|
82
|
+
- [Release history](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.47/CHANGELOG.md)
|
|
83
|
+
- [MIT license](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.47/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.
|
|
1
|
+
<p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.47/docs/assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.47/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.
|
|
8
|
-
<a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.
|
|
7
|
+
<img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.47/docs/assets/readme/badge-version.svg" alt="1.0.47" />
|
|
8
|
+
<a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.47/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.47/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.
|
|
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.47/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.
|
|
79
|
-
- [이전과 소유권 충돌](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.
|
|
80
|
-
- [변경 이력](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.
|
|
81
|
-
- [MIT 라이선스](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.
|
|
78
|
+
- [개인정보와 네트워크 동작](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.47/docs/privacy.md)
|
|
79
|
+
- [이전과 소유권 충돌](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.47/docs/migration.md)
|
|
80
|
+
- [변경 이력](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.47/CHANGELOG.md)
|
|
81
|
+
- [MIT 라이선스](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.47/LICENSE)
|
package/bin/litclaude-ai.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="146" height="20" role="img" aria-label="release: 1.0.47"><title>release: 1.0.47</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.47</text></g></svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@litfamily/litclaude",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.47",
|
|
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
|
|
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,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"typescript": {
|
|
3
|
-
"command":
|
|
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
|
}
|
|
@@ -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
|
|
|
@@ -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`
|
|
166
|
-
`extensionToLanguage` map that tells Claude Code which file
|
|
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":
|
|
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.
|
|
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":
|
|
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":
|
|
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 `
|
|
45
|
-
above already
|
|
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 `
|
|
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":
|
|
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":
|
|
48
|
+
"command": "roslyn-language-server",
|
|
49
|
+
"args": ["--stdio"],
|
|
49
50
|
"extensionToLanguage": {
|
|
50
51
|
".razor": "razor",
|
|
51
52
|
".cshtml": "razor"
|
|
@@ -26,7 +26,7 @@ Add an `elixir` entry to `plugins/litclaude/.lsp.json`:
|
|
|
26
26
|
```json
|
|
27
27
|
{
|
|
28
28
|
"elixir": {
|
|
29
|
-
"command":
|
|
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 `
|
|
44
|
-
- **next-ls**: set the `command` to `
|
|
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.
|
|
@@ -32,7 +32,8 @@ Add a `haskell` entry to `plugins/litclaude/.lsp.json`:
|
|
|
32
32
|
```json
|
|
33
33
|
{
|
|
34
34
|
"haskell": {
|
|
35
|
-
"command":
|
|
35
|
+
"command": "haskell-language-server-wrapper",
|
|
36
|
+
"args": ["--lsp"],
|
|
36
37
|
"extensionToLanguage": {
|
|
37
38
|
".hs": "haskell",
|
|
38
39
|
".lhs": "haskell"
|
|
@@ -33,7 +33,8 @@ Add a `julia` entry to `plugins/litclaude/.lsp.json`:
|
|
|
33
33
|
```json
|
|
34
34
|
{
|
|
35
35
|
"julia": {
|
|
36
|
-
"command":
|
|
36
|
+
"command": "julia",
|
|
37
|
+
"args": ["--startup-file=no", "--history-file=no", "-e", "using LanguageServer; runserver()"],
|
|
37
38
|
"extensionToLanguage": {
|
|
38
39
|
".jl": "julia"
|
|
39
40
|
}
|
|
@@ -25,7 +25,8 @@ Add a `php` entry to `plugins/litclaude/.lsp.json`:
|
|
|
25
25
|
```json
|
|
26
26
|
{
|
|
27
27
|
"php": {
|
|
28
|
-
"command":
|
|
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
|
-
`
|
|
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":
|
|
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
|
|
47
|
+
optionally `ruff` ALONGSIDE it (not instead). Set `command` and `args` accordingly:
|
|
47
48
|
|
|
48
|
-
| command
|
|
49
|
+
| `command` + `args` | install | role |
|
|
49
50
|
| ------------------------------------ | ---------------------- | --------------------------------------- |
|
|
50
|
-
| `
|
|
51
|
-
| `
|
|
52
|
-
| `
|
|
53
|
-
| `
|
|
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":
|
|
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 `
|
|
48
|
-
- **`solargraph`** — older completion/type server; install with `gem install solargraph`, set the `command` to `
|
|
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
|
|
|
@@ -26,7 +26,8 @@ Add a `terraform` entry to `plugins/litclaude/.lsp.json`:
|
|
|
26
26
|
```json
|
|
27
27
|
{
|
|
28
28
|
"terraform": {
|
|
29
|
-
"command":
|
|
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
|
|
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":
|
|
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
|
-
|
|
47
|
-
|
|
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
|
|
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
|
|
58
|
+
| `command` + `args` | when to choose |
|
|
56
59
|
| ----------------------------------------- | --------------------------------------- |
|
|
57
|
-
| `
|
|
58
|
-
| `
|
|
59
|
-
| `
|
|
60
|
-
| `
|
|
61
|
-
| `
|
|
62
|
-
| `
|
|
63
|
-
| `
|
|
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,
|
|
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":
|
|
26
|
+
"command": "yaml-language-server",
|
|
27
|
+
"args": ["--stdio"],
|
|
27
28
|
"extensionToLanguage": {
|
|
28
29
|
".yaml": "yaml",
|
|
29
30
|
".yml": "yaml"
|
|
@@ -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
|
|
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
|
-
|
|
90
|
-
|
|
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
|
|
6
|
-
// only proves that ci.yml
|
|
7
|
-
//
|
|
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
|
|
17
|
-
|
|
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
|
|
29
|
-
|
|
30
|
-
|
|
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,
|
|
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'
|
|
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'
|
|
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')
|
|
155
|
+
const actual = { tools: fieldOf(frontmatter, 'tools') };
|
|
156
156
|
permissions[agentName] = actual;
|
|
157
|
-
if (actual.tools !== expected.tools
|
|
158
|
-
|
|
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)) {
|