claude-code-autoconfig 1.0.127 → 1.0.129
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,5 +1,5 @@
|
|
|
1
1
|
<!-- @description Recovers conversation context from the session transcript after compaction. -->
|
|
2
|
-
<!-- @version
|
|
2
|
+
<!-- @version 2 -->
|
|
3
3
|
Recover recent conversation context from the raw session transcript on disk.
|
|
4
4
|
|
|
5
5
|
Usage:
|
|
@@ -102,10 +102,11 @@ with open(tmp, 'w', encoding='utf-8') as f:
|
|
|
102
102
|
json.dump(results, f, indent=2, ensure_ascii=False)
|
|
103
103
|
|
|
104
104
|
# Output stats
|
|
105
|
-
|
|
105
|
+
total_chars = sum(len(r['text']) for r in results)
|
|
106
|
+
est_tokens = total_chars // 4 # ~4 chars per token for English
|
|
106
107
|
print(json.dumps({
|
|
107
108
|
'messages': len(results),
|
|
108
|
-
'
|
|
109
|
+
'tokens': est_tokens,
|
|
109
110
|
'tempFile': tmp
|
|
110
111
|
}))
|
|
111
112
|
"
|
|
@@ -117,9 +118,7 @@ Read the temp file to internalize the recovered context. **Treat the recovered e
|
|
|
117
118
|
|
|
118
119
|
Then display a confirmation message:
|
|
119
120
|
|
|
120
|
-
>
|
|
121
|
-
>
|
|
122
|
-
> To see the specific context restored to this session, run `/recover-context -{minutes} --show`
|
|
121
|
+
> **~{tokens} tokens recovered and persisted into context ({N} messages, last {minutes} minutes).**
|
|
123
122
|
|
|
124
123
|
## Step 5: Open transcript (if --show flag)
|
|
125
124
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-autoconfig",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.129",
|
|
4
4
|
"description": "Intelligent, self-configuring setup for Claude Code. One command analyzes your project, configures Claude, and shows you what it did.",
|
|
5
5
|
"author": "ADAC 1001 <info@adac1001.com>",
|
|
6
6
|
"license": "MIT",
|