mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-09 00:49:41 +02:00
fix: use Claude Opus pricing for cost estimation
- Input: $15/M tokens (was $3/M for Sonnet) - Output: $75/M tokens (was $15/M for Sonnet) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -21,7 +21,7 @@ When user says "COM": 1) Increment version in BOTH `package.json` AND `CLAUDE.md
|
|||||||
|
|
||||||
Claudeman is a Claude Code session manager with a web interface and autonomous Ralph Loop. It spawns Claude CLI processes via PTY, streams output in real-time via SSE, and supports scheduled/timed runs.
|
Claudeman is a Claude Code session manager with a web interface and autonomous Ralph Loop. It spawns Claude CLI processes via PTY, streams output in real-time via SSE, and supports scheduled/timed runs.
|
||||||
|
|
||||||
**Version**: 0.1362 (must match `package.json`)
|
**Version**: 0.1363 (must match `package.json`)
|
||||||
|
|
||||||
**Tech Stack**: TypeScript (ES2022/NodeNext, strict mode), Node.js, Fastify, Server-Sent Events, node-pty
|
**Tech Stack**: TypeScript (ES2022/NodeNext, strict mode), Node.js, Fastify, Server-Sent Events, node-pty
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "claudeman",
|
"name": "claudeman",
|
||||||
"version": "0.1362",
|
"version": "0.1363",
|
||||||
"description": "The missing control plane for Claude Code - run 20 autonomous agents with real-time monitoring and session persistence",
|
"description": "The missing control plane for Claude Code - run 20 autonomous agents with real-time monitoring and session persistence",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|||||||
@@ -429,11 +429,11 @@ class ClaudemanApp {
|
|||||||
return String(count);
|
return String(count);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Estimate cost from tokens using Claude Sonnet pricing
|
// Estimate cost from tokens using Claude Opus pricing
|
||||||
// Input: $3/M tokens, Output: $15/M tokens
|
// Input: $15/M tokens, Output: $75/M tokens
|
||||||
estimateCost(inputTokens, outputTokens) {
|
estimateCost(inputTokens, outputTokens) {
|
||||||
const inputCost = (inputTokens / 1000000) * 3;
|
const inputCost = (inputTokens / 1000000) * 15;
|
||||||
const outputCost = (outputTokens / 1000000) * 15;
|
const outputCost = (outputTokens / 1000000) * 75;
|
||||||
return inputCost + outputCost;
|
return inputCost + outputCost;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2599,8 +2599,8 @@ class ClaudemanApp {
|
|||||||
if (tokenEl) {
|
if (tokenEl) {
|
||||||
tokenEl.textContent = total > 0 ? `${display} tokens · $${estimatedCost.toFixed(2)}` : '0 tokens';
|
tokenEl.textContent = total > 0 ? `${display} tokens · $${estimatedCost.toFixed(2)}` : '0 tokens';
|
||||||
tokenEl.title = this.globalStats
|
tokenEl.title = this.globalStats
|
||||||
? `Lifetime: ${this.globalStats.totalSessionsCreated} sessions created\nEstimated cost based on Claude Sonnet pricing`
|
? `Lifetime: ${this.globalStats.totalSessionsCreated} sessions created\nEstimated cost based on Claude Opus pricing`
|
||||||
: 'Token usage across active sessions\nEstimated cost based on Claude Sonnet pricing';
|
: 'Token usage across active sessions\nEstimated cost based on Claude Opus pricing';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user