decharge-scout 4.3.0 ā 4.3.2
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/index.js +5 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -267,7 +267,7 @@ async function runQueryCycle(wallet, agentName, location, options) {
|
|
|
267
267
|
|
|
268
268
|
// Fetch weather data and generate smart pricing simulation
|
|
269
269
|
const weatherSpinner = ora('Fetching real-time weather forecast...').start();
|
|
270
|
-
let weatherData, energyData, countryCode;
|
|
270
|
+
let weatherData, energyData, countryCode, insights;
|
|
271
271
|
|
|
272
272
|
try {
|
|
273
273
|
// Get real weather forecast from Open-Meteo (FREE!)
|
|
@@ -281,7 +281,7 @@ async function runQueryCycle(wallet, agentName, location, options) {
|
|
|
281
281
|
pricingSpinner.succeed(chalk.green(`ā Generated ${energyData.length} hours of smart pricing data`));
|
|
282
282
|
|
|
283
283
|
// Show pricing insights
|
|
284
|
-
|
|
284
|
+
insights = getPricingInsights(energyData, countryCode);
|
|
285
285
|
console.log(chalk.blue(`\nš” Smart Simulation Insights:`));
|
|
286
286
|
console.log(chalk.gray(` Region: ${insights.region}`));
|
|
287
287
|
console.log(chalk.gray(` Price range: $${insights.minPrice}-$${insights.maxPrice}/kWh (${insights.priceRange}% variation)`));
|
|
@@ -493,8 +493,9 @@ async function runQueryCycle(wallet, agentName, location, options) {
|
|
|
493
493
|
reasons: cheapestHourData?.reasons || []
|
|
494
494
|
},
|
|
495
495
|
|
|
496
|
-
//
|
|
497
|
-
notes: specialNotes.trim() || null
|
|
496
|
+
// User contributions
|
|
497
|
+
notes: specialNotes.trim() || null,
|
|
498
|
+
alpha_contribution: pendingAlphaContribution || null
|
|
498
499
|
};
|
|
499
500
|
|
|
500
501
|
// Submit to oracle
|