@kvali/cli 0.7.0 → 0.7.2

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kvali",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "Live progress for Claude Code: plan progress, the current step and the time left, what the agent is doing right now, tokens and your plan limits, in a pane beside the chat.",
5
5
  "author": { "name": "Giorgi Khiladze" },
6
6
  "homepage": "https://github.com/webGrandpa/kvali",
@@ -20,7 +20,7 @@ With phone notifications set up (`kvali phone`, `kvali phone telegram`, `kvali p
20
20
 
21
21
  ## With the Kvali editor extension
22
22
 
23
- The plugin also writes a small heartbeat file per session to `~/.kvali/live/claude-code/<session>.mod.json`. The [Kvali extension](../../README.md) reads it, so its sidebar shows the same exact state for every Claude Code session on your machine, and it can tell "thinking for 6 minutes" from "Claude Code was closed or froze". The heartbeat never leaves your computer.
23
+ The plugin also writes a small heartbeat file per session to `~/.kvali/live/claude-code/<session>.mod.json`: what the session is doing (the running action's short label and detail), the current step, and your plan usage. The [Kvali extension](../../README.md) reads it, so its sidebar shows the same exact state for every Claude Code session on your machine, and it can tell "thinking for 6 minutes" from "Claude Code was closed or froze". The heartbeat never leaves your computer.
24
24
 
25
25
  ## Install
26
26
 
@@ -41,6 +41,6 @@ claude plugin test packages/claude-plugin
41
41
 
42
42
  ## Privacy
43
43
 
44
- The plugin keeps its state on your computer and has no telemetry. It sends something only when you set up phone notifications: short status lines to the ntfy server, Telegram bot or Discord channel you chose, never code or prompts. [Privacy](https://github.com/webGrandpa/kvali/blob/main/PRIVACY.md) · [Security policy](https://github.com/webGrandpa/kvali/blob/main/SECURITY.md) · MIT License
44
+ The plugin keeps its state on your computer and has no telemetry. It sends something only when you set up phone notifications: short status lines to the ntfy server, Telegram bot or Discord channel you chose, never code, prompts or command lines. [Privacy](https://github.com/webGrandpa/kvali/blob/main/PRIVACY.md) · [Security policy](https://github.com/webGrandpa/kvali/blob/main/SECURITY.md) · MIT License
45
45
 
46
46
  Kvali is an independent open-source project, not affiliated with or endorsed by Anthropic. Claude and Claude Code are trademarks of Anthropic, used only to say what this plugin works with.
@@ -698,7 +698,8 @@ export const baseName = (p: string): string => p.replace(/[\\/]+$/, '').split(/[
698
698
  /** Sent beside a prompt while the session has no unfinished plan: the same words as Kvali's hook. */
699
699
  export const PLAN_CONTEXT =
700
700
  'Progress tracking (Kvali): if this request takes more than two steps, start by creating a task list with TaskCreate ' +
701
- 'or TodoWrite, whichever you have (if neither is in your tool list, load one with ToolSearch first), keep exactly ' +
701
+ 'or TodoWrite, whichever you have (if neither is in your tool list, look for them once with ToolSearch, and go on ' +
702
+ 'without a list if they are not there), keep exactly ' +
702
703
  'one task in_progress, and mark each task completed as soon as it is done. ' +
703
704
  'The user follows your progress from that list, so keep it current.'
704
705
 
@@ -708,7 +709,8 @@ export const PLAN_ASK_AFTER = 6
708
709
  /** What a long turn with no plan reads after one of its tool results (once a turn). */
709
710
  export const PLAN_REMINDER =
710
711
  'Progress tracking (Kvali): this work has no task list yet. If more than two steps remain, create one now for the ' +
711
- 'steps left with TaskCreate or TodoWrite, whichever you have (load it with ToolSearch if it is not in your tool list), ' +
712
+ 'steps left with TaskCreate or TodoWrite, whichever you have (if neither is in your tool list, look for them once ' +
713
+ 'with ToolSearch, and go on without a list if they are not there), ' +
712
714
  'keep one task in_progress, and mark each completed as you finish it. The user follows your progress from that list.'
713
715
 
714
716
  /** `autoPlan` in Kvali's config file; on unless set to false. */
@@ -303,7 +303,8 @@ async function doRefresh($: Engine, force: boolean): Promise<void> {
303
303
  if (loop && rt.pushedLoopFor !== loop.since) {
304
304
  rt.pushedLoopFor = loop.since
305
305
  const u = await read($, usage)
306
- quiet(push($, 'loop', { loop: { what: loop.detail ?? loop.label, count: loop.count, sameError: loop.sameError, forMs: now - loop.since, tokens: totalTokens(u) - loop.tokensAtStart || undefined } }))
306
+ // Claude's description of the command ("Run the tests"), never the command line itself.
307
+ quiet(push($, 'loop', { loop: { what: loop.label, count: loop.count, sameError: loop.sameError, forMs: now - loop.since, tokens: totalTokens(u) - loop.tokensAtStart || undefined } }))
307
308
  }
308
309
  if (rt.pendingPause && !rt.turnActive && now - rt.pendingPause.at >= ASK_PUSH_AFTER_MS) {
309
310
  const { workedMs, sequence } = rt.pendingPause