@tractorscorch/clank 1.7.1 → 1.7.3

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 CHANGED
@@ -6,6 +6,33 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
6
6
 
7
7
  ---
8
8
 
9
+ ## [1.7.3] — 2026-03-25
10
+
11
+ ### Added
12
+ - **Smart memory for local models** — local models no longer load the full MEMORY.md into the system prompt (wastes context tokens). Instead, memories are injected via TF-IDF relevance matching with a tighter 800-char budget, keeping only what's relevant to the current conversation
13
+ - **System file protection rule** — agents are now instructed not to modify, delete, or overwrite files outside the workspace or current working directory unless the user explicitly names the file. Prevents local models from touching system files, OS directories, or config dotfiles unprompted
14
+ - **Proactive auto-compaction** — context is now checked after every tool result (not just at the start of each loop iteration). If a large tool result pushes context past the threshold, tier-1 compaction fires immediately with zero latency. A pre-send safety check at 90% utilization catches anything that slips through
15
+ - **Context overflow recovery** — if a provider returns a context-length error, the engine now auto-compacts aggressively and retries once instead of crashing. If context is still critically full (>95%), warns the user to use `/compact` or `/new`
16
+
17
+ ### Fixed
18
+ - **TF-IDF memory relevance** — `buildMemoryBlock()` was called with an empty query string, making relevance scoring useless. Now passes session context for proper matching
19
+
20
+ ---
21
+
22
+ ## [1.7.2] — 2026-03-24
23
+
24
+ ### Added
25
+ - **Agent runner template (RUNNER.md)** — structured playbook for sub-agents with task decomposition, tool patterns, and report format. Automatically injected into system prompt for spawned tasks so the model doesn't have to figure out the approach from scratch
26
+ - **`/compact` command** — save model state, clear context, continue where you left off. Available in TUI and Telegram. Uses the LLM to summarize current task state, then clears the conversation and injects the summary as the starting point
27
+ - **CLI/TUI ASCII banner** — Clank logo displayed on startup in both direct chat and TUI mode
28
+
29
+ ### Fixed
30
+ - **Telegram typing indicator leak** — typing indicator now cleared in `finally` block instead of `try` block, so it always stops even if an error occurs during streaming or message editing. Previously, errors would leave the chat permanently showing "typing..."
31
+ - **Install instructions** — split `npm install` and `clank setup` into separate code blocks in README so copying the block doesn't auto-run setup before install finishes
32
+ - **CLI chat version** — was hardcoded as `v0.1.0`, now shows correct version
33
+
34
+ ---
35
+
9
36
  ## [1.7.1] — 2026-03-23
10
37
 
11
38
  ### Added
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  </p>
10
10
 
11
11
  <p align="center">
12
- <a href="https://github.com/ItsTrag1c/Clank/releases/latest"><img src="https://img.shields.io/badge/version-1.7.1-blue.svg" alt="Version" /></a>
12
+ <a href="https://github.com/ItsTrag1c/Clank/releases/latest"><img src="https://img.shields.io/badge/version-1.7.3-blue.svg" alt="Version" /></a>
13
13
  <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License" /></a>
14
14
  <a href="https://www.npmjs.com/package/@tractorscorch/clank"><img src="https://img.shields.io/npm/v/@tractorscorch/clank.svg" alt="npm" /></a>
15
15
  <a href="https://github.com/ItsTrag1c/Clank/stargazers"><img src="https://img.shields.io/github/stars/ItsTrag1c/Clank.svg" alt="Stars" /></a>
@@ -56,7 +56,17 @@ Clank is a personal AI gateway — **one daemon, many frontends**. It connects y
56
56
 
57
57
  ```bash
58
58
  npm install -g @tractorscorch/clank
59
+ ```
60
+
61
+ Then run the setup wizard (creates config, picks your model):
62
+
63
+ ```bash
59
64
  clank setup
65
+ ```
66
+
67
+ Start chatting:
68
+
69
+ ```bash
60
70
  clank
61
71
  ```
62
72
 
@@ -64,7 +74,14 @@ clank
64
74
 
65
75
  ```bash
66
76
  curl -fsSL https://raw.githubusercontent.com/ItsTrag1c/Clank/main/install.sh | bash
77
+ ```
78
+
79
+ Then run setup and start:
80
+
81
+ ```bash
67
82
  clank setup
83
+ ```
84
+ ```bash
68
85
  clank
69
86
  ```
70
87
 
@@ -75,7 +92,7 @@ That's it. Setup auto-detects your local models, configures the gateway, and get
75
92
  | Platform | Download |
76
93
  |----------|----------|
77
94
  | **npm** (all platforms) | `npm install -g @tractorscorch/clank` |
78
- | **macOS** (Apple Silicon) | [Clank_1.7.1_macos](https://github.com/ItsTrag1c/Clank/releases/latest/download/Clank_1.7.1_macos) |
95
+ | **macOS** (Apple Silicon) | [Clank_1.7.3_macos](https://github.com/ItsTrag1c/Clank/releases/latest/download/Clank_1.7.3_macos) |
79
96
 
80
97
  ## Security Notice
81
98