@litfamily/litclaude 1.0.58 → 1.0.60
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 +51 -0
- package/README.md +40 -13
- package/README_ko-KR.md +35 -13
- package/bin/litclaude-ai.js +31 -3
- package/docs/assets/readme/badge-version.svg +1 -1
- package/package.json +1 -1
- package/plugins/litclaude/.claude-plugin/plugin.json +1 -1
- package/plugins/litclaude/bin/litclaude-ai +2 -0
- package/plugins/litclaude/bin/litclaude-hook.js +92 -661
- package/plugins/litclaude/bin/litclaude-mcp.js +1 -1
- package/plugins/litclaude/commands/lit-plan.md +4 -1
- package/plugins/litclaude/hooks/lit-mod.mjs +20 -8
- package/plugins/litclaude/lib/goal-files.mjs +104 -0
- package/plugins/litclaude/lib/goal-pipeline.mjs +1 -1
- package/plugins/litclaude/lib/interface-probe-gate.mjs +20 -11
- package/plugins/litclaude/lib/lit-plan-persistence.mjs +23 -13
- package/plugins/litclaude/lib/litgoal/state.mjs +36 -16
- package/plugins/litclaude/lib/mod/goal.mjs +35 -3
- package/plugins/litclaude/lib/receipt-gate.mjs +101 -0
- package/plugins/litclaude/lib/receipts.mjs +379 -0
- package/plugins/litclaude/lib/rewind/suggest.mjs +20 -9
- package/plugins/litclaude/lib/route-match.mjs +740 -0
- package/plugins/litclaude/lib/route-why-cli.mjs +33 -0
- package/plugins/litclaude/lib/session-state.mjs +180 -0
- package/plugins/litclaude/lib/workflow-stage.mjs +8 -1
- package/plugins/litclaude/scripts/goal-propose.mjs +34 -22
- package/plugins/litclaude/skills/lit-loop/SKILL.md +4 -1
- package/plugins/litclaude/skills/lit-plan/SKILL.md +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,56 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.60 - 2026-11-22
|
|
4
|
+
|
|
5
|
+
- The goal question now comes with an answer guide, so a first-time user knows what to type. Under
|
|
6
|
+
lit-plan's approval question and lit-loop's goal question, Claude shows a short table of each answer
|
|
7
|
+
(`yes`, `edit`, `no`) and what it does, ending `Type the word alone.` The descriptions follow the
|
|
8
|
+
user's language; the answer words stay the same. The question the prompt hook prints carries the same
|
|
9
|
+
guide as plain lines.
|
|
10
|
+
- A whole prompt of `lit handoff` now opens the handoff the same way `handoff` does.
|
|
11
|
+
`lit deep interview <idea>`, `lit deep-interview <idea>` and `lit interview <idea>` start the
|
|
12
|
+
clarifying interview. `litclaude-ai why` reports both routes as the prompt hook takes them.
|
|
13
|
+
- The English and Korean READMEs, on GitHub and on npm, open with a plain one-line pitch and a "Two ways
|
|
14
|
+
to use it" section: the easy way, with `lit` added to an ordinary request, and the full step-by-step
|
|
15
|
+
workflow from brainstorm to handoff.
|
|
16
|
+
|
|
17
|
+
## 1.0.59 - 2026-11-21
|
|
18
|
+
|
|
19
|
+
- A test command at the end of a leading `&&` chain keeps its own exit in the receipt when a pipe or
|
|
20
|
+
`;` follows the chain. Earlier parts of the chain stay as written. If one of them fails, the check
|
|
21
|
+
does not run and no receipt is written.
|
|
22
|
+
- A second `lit loop <objective>` in the same session asks the goal question again once the earlier
|
|
23
|
+
goal has closed. Before, any repeat of a discipline already active in the session skipped it. A bare
|
|
24
|
+
`lit`, `lit continue` or a start-work resume still carries on without asking.
|
|
25
|
+
- Each Claude session keeps its lit-plan gate, interface-probe gate, lit-adhd nudge and goal files in
|
|
26
|
+
its own `.litclaude/sessions/<id>/` folder, so two sessions in one project stop overwriting each
|
|
27
|
+
other. The old shared files are still read when a session has none of its own. Folders unused for
|
|
28
|
+
7 days move to `.litclaude/archive/sessions/` at session start; nothing is deleted.
|
|
29
|
+
- The litgoal lock recovers from a dead owner and from an empty lock folder left by a crash, so
|
|
30
|
+
`litclaude-ai litgoal status` no longer times out on a stale lock.
|
|
31
|
+
- `litclaude-ai sessions` lists this project's live sessions (seen in the last day and not ended),
|
|
32
|
+
when each was last seen and the work or goal it owns. It only reads.
|
|
33
|
+
- `litclaude-ai why "<prompt>"` shows which workflow a prompt would start, the rule that matched and
|
|
34
|
+
the runner-up. It uses the same matcher as the prompt hook, now in `lib/route-match.mjs`.
|
|
35
|
+
- LitClaude keeps a receipt each time a test command runs in a session (`npm test`, `node --test`,
|
|
36
|
+
`pytest` and the like): when it ran, the check name, pass or fail, and hashes of the output and the
|
|
37
|
+
working tree. It stores no prompt text, arguments or output. Edits to code files mark the time of the
|
|
38
|
+
last code change.
|
|
39
|
+
- When a lit-loop, litwork or start-work session tries to stop after changing code with no passing
|
|
40
|
+
test run since, LitClaude now warns once. `litclaude-ai config receiptGate enforce` turns the
|
|
41
|
+
warning into a block that names the check to run, once per prompt: the host then marks the next Stop
|
|
42
|
+
with `stop_hook_active` and LitClaude lets it through. `off` turns the gate off.
|
|
43
|
+
Documentation-only edits never trigger it.
|
|
44
|
+
- A code edit made from the shell now arms that gate. LitClaude fingerprints the working-tree contents
|
|
45
|
+
of tracked and untracked code files, skipping Markdown, text, and `docs/`. The fingerprint is taken
|
|
46
|
+
when lit-loop, litwork, or start-work starts, stored on each receipt, and compared again at stop.
|
|
47
|
+
Committing or staging does not change it. A passing receipt counts when its fingerprint matches the
|
|
48
|
+
tree at stop. If the fingerprint cannot be computed, the gate keeps the edit-time rule.
|
|
49
|
+
- A test command whose first segment is a recognised check, and which then pipes or continues with
|
|
50
|
+
`;`, keeps that check's own exit status in the receipt. `$?`, the pipe, and later commands behave
|
|
51
|
+
as before. A command that is not a check, a background run, a command that sets `pipefail`, and a
|
|
52
|
+
session outside lit-loop, litwork, or start-work is left unchanged.
|
|
53
|
+
|
|
3
54
|
## 1.0.58 - 2026-11-21
|
|
4
55
|
|
|
5
56
|
- A finished goal no longer blocks the next lit-loop question. Once the LitClaude mod has cleared a
|
package/README.md
CHANGED
|
@@ -1,20 +1,47 @@
|
|
|
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.60/docs/assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/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
|
-
<p align="center">
|
|
5
|
+
<p align="center">LitClaude is an add-on for Claude Code. It makes Claude check its own work before it says "done", and leaves a note so the next session starts where this one stopped.</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.60/docs/assets/readme/badge-version.svg" alt="1.0.60" />
|
|
8
|
+
<a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/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.60/README_ko-KR.md">한국어</a>
|
|
12
12
|
</p>
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
You ask Claude for a feature. It writes the code and says it is finished, and a day later you find the tests
|
|
15
|
+
never ran. You open a new session and explain the whole project again.
|
|
16
|
+
|
|
17
|
+
With LitClaude you add `lit` to the same request. Claude first writes down what "finished" means for this
|
|
18
|
+
task, adds a test that fails, makes it pass, and ends by telling you what it checked and what it could not.
|
|
19
|
+
When you stop, type `handoff`. Claude saves a note, and the next session reads it and carries on.
|
|
20
|
+
|
|
21
|
+
## Two ways to use it
|
|
22
|
+
|
|
23
|
+
**The easy way.** Write your request as usual and put `lit` at the start or at the end:
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
fix the date parsing bug in src/dates.js lit
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Claude sets the goal, writes a failing test, fixes the bug, checks the result and tells you what it checked.
|
|
30
|
+
Most tasks need nothing more.
|
|
31
|
+
|
|
32
|
+
**The full workflow.** For a bigger job, go one step at a time. Each step leaves a file the next step reads,
|
|
33
|
+
and you can skip any step you do not need.
|
|
34
|
+
|
|
35
|
+
| Step | Type | What happens |
|
|
36
|
+
| --- | --- | --- |
|
|
37
|
+
| 1. Explore | `/litclaude:lit-brainstorm <question>` | Many options, scored, cut to a short list |
|
|
38
|
+
| 2. Clarify | `/litclaude:deep-interview <idea>` | Claude asks questions until the goal is clear |
|
|
39
|
+
| 3. Plan | `lit-crucible <approach>` or `/litclaude:lit-plan <task>` | Crucible attacks the approach first, then plans; lit-plan writes the steps and waits for your yes |
|
|
40
|
+
| 4. Build | `yes` to the plan, or `/litclaude:lit-loop <task>` | Claude works through it with tests and checks |
|
|
41
|
+
| 5. Review | `/litclaude:review-work` | A review in five lanes, findings first |
|
|
42
|
+
| 6. Hand off | `handoff` | Decisions and the next step, saved to a file |
|
|
43
|
+
|
|
44
|
+
Install with one line (the next section has the details), then start Claude Code in your project.
|
|
18
45
|
|
|
19
46
|
## Install
|
|
20
47
|
|
|
@@ -83,7 +110,7 @@ the `/plugin` menu.
|
|
|
83
110
|
## More
|
|
84
111
|
|
|
85
112
|
- [Full guide and skills gallery on GitHub](https://github.com/wjgoarxiv/litclaude#readme)
|
|
86
|
-
- [Privacy and network behavior](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.
|
|
87
|
-
- [Migration and ownership conflicts](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.
|
|
88
|
-
- [Release history](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.
|
|
89
|
-
- [MIT license](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.
|
|
113
|
+
- [Privacy and network behavior](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/privacy.md)
|
|
114
|
+
- [Migration and ownership conflicts](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/migration.md)
|
|
115
|
+
- [Release history](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/CHANGELOG.md)
|
|
116
|
+
- [MIT license](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/LICENSE)
|
package/README_ko-KR.md
CHANGED
|
@@ -1,20 +1,42 @@
|
|
|
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.60/docs/assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/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
|
-
<p align="center">Claude Code
|
|
5
|
+
<p align="center">LitClaude는 Claude Code에 붙이는 추가 기능입니다. Claude가 "다 됐어요"라고 말하기 전에 자기 작업을 직접 확인하게 하고, 다음 세션이 이어서 시작할 수 있도록 기록을 남기게 합니다.</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.60/docs/assets/readme/badge-version.svg" alt="1.0.60" />
|
|
8
|
+
<a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/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.60/README.md">English</a>
|
|
12
12
|
</p>
|
|
13
13
|
|
|
14
|
-
Claude
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
Claude에게 기능을 하나 부탁하면 코드를 쓰고 끝났다고 말합니다. 그런데 다음 날 보니 테스트는 한 번도 돌지 않았습니다. 새 세션을 열면 프로젝트 설명을 처음부터 다시 해야 합니다.
|
|
15
|
+
|
|
16
|
+
LitClaude를 쓰면 같은 요청에 `lit`만 붙이면 됩니다. Claude는 먼저 이 작업에서 "끝났다"가 무슨 뜻인지 적고, 실패하는 테스트를 추가해 통과시킨 뒤, 무엇을 확인했고 무엇을 확인하지 못했는지 알려 줍니다. 작업을 멈출 때 `handoff`라고 치면 Claude가 기록을 남기고, 다음 세션이 그 기록을 읽고 이어서 합니다.
|
|
17
|
+
|
|
18
|
+
## 두 가지 사용법
|
|
19
|
+
|
|
20
|
+
**간단하게.** 평소처럼 요청을 쓰고, 앞이나 끝에 `lit`을 붙입니다.
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
src/dates.js의 날짜 파싱 버그 고쳐줘 lit
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Claude가 목표를 정하고, 실패하는 테스트를 쓰고, 버그를 고치고, 결과를 확인한 뒤 확인한 내용을 알려 줍니다. 대부분의 작업은 이것으로 충분합니다.
|
|
27
|
+
|
|
28
|
+
**본격적으로.** 큰 작업은 한 단계씩 나아갑니다. 각 단계가 남긴 파일을 다음 단계가 읽고, 필요 없는 단계는 건너뛰면 됩니다.
|
|
29
|
+
|
|
30
|
+
| 단계 | 입력 | 하는 일 |
|
|
31
|
+
| --- | --- | --- |
|
|
32
|
+
| 1. 넓게 보기 | `/litclaude:lit-brainstorm <질문>` | 선택지를 많이 낸 뒤 점수를 매겨 몇 개로 추립니다 |
|
|
33
|
+
| 2. 구체화 | `/litclaude:deep-interview <아이디어>` | 목표가 분명해질 때까지 Claude가 질문합니다 |
|
|
34
|
+
| 3. 계획 | `lit-crucible <접근법>` 또는 `/litclaude:lit-plan <작업>` | crucible은 접근법의 약점을 먼저 찌른 뒤 계획으로 넘기고, lit-plan은 단계를 쓰고 승인을 기다립니다 |
|
|
35
|
+
| 4. 실행 | 계획에 `yes`, 또는 `/litclaude:lit-loop <작업>` | 테스트와 확인을 거치며 작업합니다 |
|
|
36
|
+
| 5. 검토 | `/litclaude:review-work` | 다섯 갈래로 검토하고 발견한 문제부터 알려 줍니다 |
|
|
37
|
+
| 6. 넘겨주기 | `handoff` | 결정과 다음 할 일을 파일로 남깁니다 |
|
|
38
|
+
|
|
39
|
+
설치는 한 줄입니다(자세한 내용은 바로 아래 설치 절에 있습니다). 그다음 프로젝트에서 Claude Code를 실행하세요.
|
|
18
40
|
|
|
19
41
|
## 설치
|
|
20
42
|
|
|
@@ -81,7 +103,7 @@ npx @litfamily/litclaude@latest uninstall
|
|
|
81
103
|
## 더 보기
|
|
82
104
|
|
|
83
105
|
- [전체 안내와 스킬 갤러리 (GitHub)](https://github.com/wjgoarxiv/litclaude/blob/main/README_ko-KR.md)
|
|
84
|
-
- [개인정보와 네트워크 동작](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.
|
|
85
|
-
- [이전과 소유권 충돌](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.
|
|
86
|
-
- [변경 이력](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.
|
|
87
|
-
- [MIT 라이선스](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.
|
|
106
|
+
- [개인정보와 네트워크 동작](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/privacy.md)
|
|
107
|
+
- [이전과 소유권 충돌](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/migration.md)
|
|
108
|
+
- [변경 이력](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/CHANGELOG.md)
|
|
109
|
+
- [MIT 라이선스](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/LICENSE)
|
package/bin/litclaude-ai.js
CHANGED
|
@@ -33,6 +33,7 @@ import { readPublicSource } from "../plugins/litclaude/lib/public-source-reader/
|
|
|
33
33
|
import { shellFreeCommand } from "../plugins/litclaude/lib/npm-invocation.mjs";
|
|
34
34
|
import { MOD_CHOICES } from "../plugins/litclaude/lib/mod/settings.mjs";
|
|
35
35
|
import { MARK_MODES, readMarkMode, writeMarkMode } from "../plugins/litclaude/lib/mark.mjs";
|
|
36
|
+
import { RECEIPT_GATE_MODES, readReceiptGateMode, writeReceiptGateMode } from "../plugins/litclaude/lib/receipt-gate.mjs";
|
|
36
37
|
import {
|
|
37
38
|
AGENT_FILE_ID,
|
|
38
39
|
AGENT_FILE_MODES,
|
|
@@ -63,7 +64,9 @@ import { runLitgoalCli } from "../plugins/litclaude/lib/litgoal/cli.mjs";
|
|
|
63
64
|
import { runWorkflowCheckCli } from "../plugins/litclaude/lib/workflow-check.mjs";
|
|
64
65
|
import { runWorkflowStageCli } from "../plugins/litclaude/lib/workflow-stage.mjs";
|
|
65
66
|
import { runRewindCli } from "../plugins/litclaude/lib/rewind/collect.mjs";
|
|
67
|
+
import { runSessionsCli } from "../plugins/litclaude/lib/session-state.mjs";
|
|
66
68
|
import { runWikifyKnowledgeCli } from "../plugins/litclaude/lib/wikify-knowledge-cli.mjs";
|
|
69
|
+
import { runWhyCli } from "../plugins/litclaude/lib/route-why-cli.mjs";
|
|
67
70
|
import { automaticUpdateDoctorLines, automaticUpdateRoot, runAutomaticUpdate } from "../plugins/litclaude/lib/automatic-update.mjs";
|
|
68
71
|
import { autoHandoffDoctorLines } from "../plugins/litclaude/lib/auto-handoff.mjs";
|
|
69
72
|
import { DISCUSSIONS_URL, inviteMessage, recordInvite, shareLine } from "../plugins/litclaude/lib/invite.mjs";
|
|
@@ -88,7 +91,7 @@ const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
|
88
91
|
const packageJson = JSON.parse(readFileSync(join(root, "package.json"), "utf8"));
|
|
89
92
|
const version = packageJson.version;
|
|
90
93
|
|
|
91
|
-
const usage = `Usage: litclaude-ai [--dry-run] <install|doctor|config|invite|path|run|update|uninstall|extensions|agent-file|litgoal|wikify|workflow-check|workflow-stage|rewind|start-work|start-work-next|public-read> [...args]
|
|
94
|
+
const usage = `Usage: litclaude-ai [--dry-run] <install|doctor|config|invite|path|run|update|uninstall|extensions|agent-file|litgoal|wikify|workflow-check|workflow-stage|rewind|sessions|start-work|start-work-next|public-read|why> [...args]
|
|
92
95
|
litclaude-ai --version
|
|
93
96
|
|
|
94
97
|
Commands:
|
|
@@ -104,6 +107,8 @@ Commands:
|
|
|
104
107
|
block in the global CLAUDE.md; your own text there is never touched.
|
|
105
108
|
\`config attribution <keep|off>\` keeps or hides Claude Code's
|
|
106
109
|
Co-Authored-By and pull request line (keep is the default).
|
|
110
|
+
\`config receiptGate <off|shadow|enforce>\` sets what Stop does when
|
|
111
|
+
code changed after the last passing check (shadow warns, the default).
|
|
107
112
|
agent-file project [--dir <path>]
|
|
108
113
|
Write the LitFamily project block into the repo's AGENTS.md, and a
|
|
109
114
|
CLAUDE.md that imports it when the repo has none (what \`lit init\` runs).
|
|
@@ -125,7 +130,11 @@ Commands:
|
|
|
125
130
|
rewind [--brief [--lang ko|en] | --json] [--here] [--since 7d] [--max 12]
|
|
126
131
|
Draw the lit-adhd brief: what recent sessions in this project's
|
|
127
132
|
worktrees asked, did and wait on, with plan gauges and one next step.
|
|
133
|
+
sessions List this project's per-session state folders (session, last seen, owned
|
|
134
|
+
start-work, LitClaude goal). Read-only.
|
|
128
135
|
public-read Read a public http(s) source with FetchAttempt/FetchVerdict JSON.
|
|
136
|
+
why "<prompt>" Show which workflow a prompt routes to, the rule that chose it and
|
|
137
|
+
the runner-up. Shows at most 80 characters of the prompt.
|
|
129
138
|
update Reinstall this package version and refresh the Claude plugin registry.
|
|
130
139
|
uninstall Remove LitClaude-managed install state.
|
|
131
140
|
extensions <list|check|install|update|remove|prune-backups|prune-versions>
|
|
@@ -425,7 +434,7 @@ const familyBanner = ({ color = shouldColorInstall() } = {}) => [
|
|
|
425
434
|
].join("\n");
|
|
426
435
|
|
|
427
436
|
const printCommandBanner = (parsed) => {
|
|
428
|
-
if (["install", "update", "workflow-stage", "rewind"].includes(parsed.command)) return;
|
|
437
|
+
if (["install", "update", "workflow-stage", "rewind", "sessions", "why"].includes(parsed.command)) return;
|
|
429
438
|
if (parsed.rest.some((arg) => arg === "--json" || arg.startsWith("--json="))) return;
|
|
430
439
|
const color = shouldColorInstall();
|
|
431
440
|
process.stdout.write(`${renderLitClaudeWordmark({ color }).join("\n")}\n`);
|
|
@@ -923,6 +932,7 @@ const configModOptions = (rest, home = claudeHome()) => {
|
|
|
923
932
|
process.stdout.write(`${"mark".padEnd(7)} ${readMarkMode({ litHome: litHome() }).padEnd(7)} (${MARK_MODES.join(", ")})\n`);
|
|
924
933
|
process.stdout.write(`agentFile ${readAgentFileMode({ litHome: litHome() }).padEnd(5)} (${AGENT_FILE_MODES.join(", ")})\n`);
|
|
925
934
|
process.stdout.write(`attribution ${readAttributionMode({ litHome: litHome() }).padEnd(4)} (${ATTRIBUTION_MODES.join(", ")})\n`);
|
|
935
|
+
process.stdout.write(`receiptGate ${readReceiptGateMode({ litHome: litHome() }).padEnd(7)} (${RECEIPT_GATE_MODES.join(", ")})\n`);
|
|
926
936
|
process.stdout.write("Change one with: litclaude-ai config <option> <value>. New Claude Code sessions, terminal or desktop app, pick it up.\n");
|
|
927
937
|
return;
|
|
928
938
|
}
|
|
@@ -951,6 +961,18 @@ const configModOptions = (rest, home = claudeHome()) => {
|
|
|
951
961
|
process.stdout.write(`AGENT_FILE: ${value}\n${agentFileLine(writeAgentFile(value === "off" ? "uninstall" : "install"))}\n`);
|
|
952
962
|
return;
|
|
953
963
|
}
|
|
964
|
+
// `receiptGate` is read by the Stop hook from config.json: off, shadow (warn) or enforce (block).
|
|
965
|
+
if (key === "receiptGate") {
|
|
966
|
+
const value = String(raw ?? "").trim().toLowerCase();
|
|
967
|
+
if (!RECEIPT_GATE_MODES.includes(value) || rest.length > 2) fail(`receiptGate takes one of: ${RECEIPT_GATE_MODES.join(", ")}`, 64);
|
|
968
|
+
try {
|
|
969
|
+
writeReceiptGateMode(litHome(), value);
|
|
970
|
+
} catch (error) {
|
|
971
|
+
fail(error.message);
|
|
972
|
+
}
|
|
973
|
+
process.stdout.write(`RECEIPT_GATE: ${value}\n`);
|
|
974
|
+
return;
|
|
975
|
+
}
|
|
954
976
|
// `attribution` sets Claude Code's own setting and the block line together.
|
|
955
977
|
if (key === "attribution") {
|
|
956
978
|
const value = String(raw ?? "").trim().toLowerCase();
|
|
@@ -965,7 +987,7 @@ const configModOptions = (rest, home = claudeHome()) => {
|
|
|
965
987
|
process.stdout.write(`ATTRIBUTION: ${value}\n${block ? `${agentFileLine(block)}\n` : ""}`);
|
|
966
988
|
return;
|
|
967
989
|
}
|
|
968
|
-
if (!Object.hasOwn(MOD_CHOICES, key)) fail(`Unknown option: ${key}. Options: ${[...Object.keys(MOD_CHOICES), "mark", "agentFile", "attribution"].join(", ")}`, 64);
|
|
990
|
+
if (!Object.hasOwn(MOD_CHOICES, key)) fail(`Unknown option: ${key}. Options: ${[...Object.keys(MOD_CHOICES), "mark", "agentFile", "attribution", "receiptGate"].join(", ")}`, 64);
|
|
969
991
|
const value = String(raw ?? "").trim().toLowerCase();
|
|
970
992
|
if (!MOD_CHOICES[key].includes(value) || rest.length > 2) fail(`${key} takes one of: ${MOD_CHOICES[key].join(", ")}`, 64);
|
|
971
993
|
const settings = readClaudeSettings(home);
|
|
@@ -2048,6 +2070,9 @@ const main = async () => {
|
|
|
2048
2070
|
case "rewind":
|
|
2049
2071
|
exitAfterFlush(runRewindCli(parsed.rest, process.cwd()));
|
|
2050
2072
|
break;
|
|
2073
|
+
case "sessions":
|
|
2074
|
+
exitAfterFlush(runSessionsCli(parsed.rest, process.cwd()));
|
|
2075
|
+
break;
|
|
2051
2076
|
case "public-read":
|
|
2052
2077
|
exitAfterFlush(await runPublicRead(parsed));
|
|
2053
2078
|
break;
|
|
@@ -2063,6 +2088,9 @@ const main = async () => {
|
|
|
2063
2088
|
case "agent-file":
|
|
2064
2089
|
exitAfterFlush(runAgentFileCli(parsed.rest, { dryRun: parsed.dryRun }));
|
|
2065
2090
|
break;
|
|
2091
|
+
case "why":
|
|
2092
|
+
exitAfterFlush(runWhyCli(parsed.rest));
|
|
2093
|
+
break;
|
|
2066
2094
|
case "extensions":
|
|
2067
2095
|
exitAfterFlush(runExtensionsCli(parsed.dryRun ? [...parsed.rest, "--dry-run"] : parsed.rest, extensionsContext()));
|
|
2068
2096
|
break;
|
|
@@ -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.60"><title>release: 1.0.60</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.60</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.60",
|
|
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": {
|
|
@@ -16,8 +16,10 @@ const SUBCOMMANDS = {
|
|
|
16
16
|
},
|
|
17
17
|
"workflow-stage": async (load, rest) => (await load("../lib/workflow-stage.mjs")).runWorkflowStageCli(rest, process.cwd()),
|
|
18
18
|
rewind: async (load, rest) => (await load("../lib/rewind/collect.mjs")).runRewindCli(rest, process.cwd()),
|
|
19
|
+
sessions: async (load, rest) => (await load("../lib/session-state.mjs")).runSessionsCli(rest, process.cwd()),
|
|
19
20
|
wikify: async (load, rest) => (await load("../lib/wikify-knowledge-cli.mjs")).runWikifyKnowledgeCli(rest, undefined, process.cwd()),
|
|
20
21
|
"agent-file": async (load, rest) => (await load("../lib/agent-file/cli.mjs")).runAgentFileCli(rest, { cwd: process.cwd() }),
|
|
22
|
+
why: async (load, rest) => (await load("../lib/route-why-cli.mjs")).runWhyCli(rest),
|
|
21
23
|
};
|
|
22
24
|
|
|
23
25
|
const main = async () => {
|