@litfamily/litclaude 1.0.51 → 1.0.52
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 +40 -0
- package/README.md +8 -8
- package/README_ko-KR.md +8 -8
- package/docs/assets/readme/badge-version.svg +1 -1
- package/docs/hooks.md +55 -2
- package/docs/privacy.md +1 -1
- package/package.json +1 -1
- package/plugins/litclaude/.claude-plugin/plugin.json +7 -1
- package/plugins/litclaude/bin/litclaude-hook.js +139 -5
- package/plugins/litclaude/bin/litclaude-mcp.js +1 -1
- package/plugins/litclaude/commands/start-work.md +25 -7
- package/plugins/litclaude/hooks/hooks.json +34 -0
- package/plugins/litclaude/lib/auto-handoff.mjs +115 -2
- package/plugins/litclaude/lib/check-back.mjs +155 -0
- package/plugins/litclaude/lib/park-ping.mjs +57 -0
- package/plugins/litclaude/lib/precompact-snapshot.mjs +89 -0
- package/plugins/litclaude/lib/rewind/suggest.mjs +9 -2
- package/plugins/litclaude/lib/shown-ledger.mjs +100 -0
- package/plugins/litclaude/lib/start-work-cli.mjs +9 -0
- package/plugins/litclaude/lib/start-work-lifecycle.mjs +360 -98
- package/plugins/litclaude/skills/lit-loop/SKILL.md +15 -0
- package/plugins/litclaude/skills/litgoal/SKILL.md +17 -0
- package/scripts/validate-plugin.mjs +1 -1
|
@@ -317,6 +317,21 @@ commit/push or publish action in this session. On resume, reread the ledger and
|
|
|
317
317
|
latest git status before continuing. Never revert dirty worktree changes you did
|
|
318
318
|
not make; either work around them or ask when they block the task.
|
|
319
319
|
|
|
320
|
+
### Offer a check-back (opt-in)
|
|
321
|
+
|
|
322
|
+
A loop that ends blocked on something that will change by itself (a CI run, a review, a parked
|
|
323
|
+
start-work step the user has not settled) may offer one follow-up timer, once: "I can check back in
|
|
324
|
+
N minutes and only report. Want that?" The user's yes is the only trigger; without it, schedule
|
|
325
|
+
nothing.
|
|
326
|
+
|
|
327
|
+
- On a yes: one `CronCreate` call, `recurring: false`, prompt exactly `lit check-back`, N minutes out.
|
|
328
|
+
No other prompt text, no second timer, no timer from a turn the timer itself started.
|
|
329
|
+
- Tell the user the limit in the same message: the timer belongs to this Claude Code session and dies
|
|
330
|
+
with it (an unexpired one comes back on `--resume` or `--continue`).
|
|
331
|
+
- LitClaude answers `lit check-back` in its prompt hook. When nothing changed since the last report,
|
|
332
|
+
no turn runs at all. When something did, the turn is report-only: relay the report, then stop. Writes,
|
|
333
|
+
Bash, agents, schedule changes and network tools are denied there until the user's next message.
|
|
334
|
+
|
|
320
335
|
## Porting Note
|
|
321
336
|
|
|
322
337
|
LitClaude original Litwork text is intentionally demanding. LitClaude keeps
|
|
@@ -422,4 +422,21 @@ Stop and surface the state when:
|
|
|
422
422
|
|
|
423
423
|
Leftover runtime state means `blocked`, not `pass`.
|
|
424
424
|
|
|
425
|
+
## Check back later (opt-in)
|
|
426
|
+
|
|
427
|
+
When the goal stops on something outside this session (a criterion that waits on the user, a
|
|
428
|
+
`needs_user_decision` checkpoint, a long external job), you may offer one follow-up, once: "Want me to
|
|
429
|
+
check back in N minutes? It only reports." Ask; do not schedule anything before the user says yes.
|
|
430
|
+
|
|
431
|
+
- On a yes, call `CronCreate` once, one-shot (`recurring: false`), with the prompt exactly
|
|
432
|
+
`lit check-back` and a time N minutes from now. Never pick another prompt, never repeat it, never
|
|
433
|
+
call it from a turn the timer started. A no, or silence, means no timer.
|
|
434
|
+
- Say the limit plainly when you offer it: the timer lives only in this Claude Code session. It is gone
|
|
435
|
+
when the session exits; `--resume` or `--continue` brings back one that has not expired.
|
|
436
|
+
- When `lit check-back` arrives, LitClaude's prompt hook builds the report itself from the litgoal
|
|
437
|
+
state, start-work progress and parked steps, and the last recorded run end. If those say the same
|
|
438
|
+
as the last report, the prompt ends there and you get no turn. Otherwise you get one report-only
|
|
439
|
+
turn: relay the report in a few lines and stop. The guard denies writes, Bash, agents, schedule
|
|
440
|
+
changes and network tools in that turn until the user types again.
|
|
441
|
+
|
|
425
442
|
<!-- LitClaude © 2026 wjgoarxiv · MIT · github.com/wjgoarxiv/litclaude · fp:182f034d168c -->
|
|
@@ -55,7 +55,7 @@ async function main() {
|
|
|
55
55
|
await exists(join(pluginRoot, "lib", "start-work-cli.mjs"));
|
|
56
56
|
|
|
57
57
|
const hooks = await readJson(join(pluginRoot, "hooks", "hooks.json"));
|
|
58
|
-
for (const event of ["SessionStart", "UserPromptSubmit", "PreToolUse", "PostToolUse", "Stop", "SubagentStart", "SubagentStop", "SessionEnd"]) {
|
|
58
|
+
for (const event of ["SessionStart", "UserPromptSubmit", "PreToolUse", "PostToolUse", "PreCompact", "Notification", "Stop", "SubagentStart", "SubagentStop", "SessionEnd"]) {
|
|
59
59
|
assert.ok(hooks.hooks[event], `missing hook event ${event}`);
|
|
60
60
|
}
|
|
61
61
|
|