openclaw-smartmeter 0.2.0 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-smartmeter",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "AI cost optimization for OpenClaw - analyze usage and reduce costs by 48%",
5
5
  "main": "src/cli/index.js",
6
6
  "bin": {
@@ -228,7 +228,7 @@ export class ApiServer {
228
228
  - **Current Monthly Cost:** $${s.currentMonthlyCost.toFixed(2)}
229
229
  - **Optimized Monthly Cost:** $${s.optimizedMonthlyCost.toFixed(2)}
230
230
  - **Potential Savings:** $${s.potentialSavings.toFixed(2)}/month (${s.savingsPercentage.toFixed(1)}%)
231
- - **Confidence Level:** ${analysis.confidence.level}
231
+ - **Confidence Level:** ${s.confidence || 'unknown'}
232
232
 
233
233
  ## Model Breakdown
234
234
 
@@ -286,7 +286,7 @@ export async function cmdEvaluate(opts = {}) {
286
286
  📊 Current Analysis:
287
287
  Period: ${analysis.period.days} days (${analysis.period.start} to ${analysis.period.end})
288
288
  Tasks Analyzed: ${analysis.period.totalTasks}
289
- Confidence: ${analysis.confidence.level}
289
+ Confidence: ${s.confidence || 'unknown'}
290
290
 
291
291
  💰 Cost Analysis:
292
292
  Current Monthly Cost: $${s.currentMonthlyCost.toFixed(2)}
@@ -342,6 +342,8 @@ ${Object.entries(analysis.categories || {})
342
342
  .map(([name, c]) => ` • ${name}: ${c.count} tasks`)
343
343
  .join("\n")}
344
344
 
345
+ **Confidence Level:** ${analysis.summary.confidence || 'unknown'}
346
+
345
347
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
346
348
 
347
349
  ## 💰 Optimization Opportunities