claude-baton 2.1.0 → 2.1.1
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/README.md +4 -3
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,8 +27,9 @@ claude-baton setup
|
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
This:
|
|
30
|
-
- Registers the MCP server
|
|
30
|
+
- Registers the MCP server via `claude mcp add` (user scope, available across all projects)
|
|
31
31
|
- Registers the PreCompact hook for auto-checkpoint
|
|
32
|
+
- Registers allowed tools so slash commands run without approval prompts
|
|
32
33
|
- Initializes the SQLite database at `~/.claude-baton/store.db`
|
|
33
34
|
- Installs slash commands to `~/.claude/commands/`
|
|
34
35
|
|
|
@@ -97,8 +98,8 @@ All data lives in `~/.claude-baton/store.db`:
|
|
|
97
98
|
## Requirements
|
|
98
99
|
|
|
99
100
|
- Node.js >= 18
|
|
100
|
-
- Claude Code
|
|
101
|
-
- No API keys needed
|
|
101
|
+
- Claude Code CLI installed and authenticated (setup uses `claude mcp add`)
|
|
102
|
+
- No API keys needed — LLM calls use `claude -p`
|
|
102
103
|
|
|
103
104
|
## Development
|
|
104
105
|
|
package/dist/cli.js
CHANGED
|
@@ -91,7 +91,7 @@ export async function handleAutoCheckpoint() {
|
|
|
91
91
|
.replace("{{GIT_DIFF}}", gitDiffSinceCheckpoint || "No file changes since last checkpoint.")
|
|
92
92
|
.replace("{{TRANSCRIPT}}", transcript);
|
|
93
93
|
// Call LLM
|
|
94
|
-
const result = await callClaudeJson(prompt, "
|
|
94
|
+
const result = await callClaudeJson(prompt, "sonnet", 60000);
|
|
95
95
|
// Save checkpoint
|
|
96
96
|
const sessionId = new Date().toISOString();
|
|
97
97
|
const uncommittedFiles = status
|
package/dist/index.js
CHANGED
|
@@ -207,7 +207,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
207
207
|
const summaryPrompt = summaryTemplate
|
|
208
208
|
.replace("{{DATE}}", date)
|
|
209
209
|
.replace("{{ACTIVITY}}", activityParts.join("\n\n"));
|
|
210
|
-
const summaryResult = await callClaudeJson(summaryPrompt, "
|
|
210
|
+
const summaryResult = await callClaudeJson(summaryPrompt, "sonnet", 60000);
|
|
211
211
|
insertDailySummary(db, projectPath, date, summaryResult, dbPath);
|
|
212
212
|
return {
|
|
213
213
|
content: [
|