@enerlence/suntropy-cli 0.11.6 → 0.11.8
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/dist/bin/suntropy.js +12 -3
- package/dist/bin/suntropy.js.map +1 -1
- package/package.json +1 -1
package/dist/bin/suntropy.js
CHANGED
|
@@ -3329,7 +3329,7 @@ async function generateFromProfile(global, tariff, market, year, mode, data) {
|
|
|
3329
3329
|
if (!profile || !Array.isArray(profile) || profile.length === 0) {
|
|
3330
3330
|
throw new Error("Failed to fetch REE profiles");
|
|
3331
3331
|
}
|
|
3332
|
-
const { applyProfileToConsumption, ConsumptionIntroductionModes } = await import("energy-types/lib/energy/calculations/applyProfileToConsumption");
|
|
3332
|
+
const { applyProfileToConsumption, ConsumptionIntroductionModes } = await import("energy-types/lib/energy/calculations/applyProfileToConsumption.js");
|
|
3333
3333
|
if (mode === "CONSUMPTION_BY_PERIOD") {
|
|
3334
3334
|
const tariffIdMap = { "2.0TD": 13, "3.0TD": 14, "6.1TD": 15 };
|
|
3335
3335
|
const tariffId = tariffIdMap[tariff] || 14;
|
|
@@ -4531,7 +4531,16 @@ Examples:
|
|
|
4531
4531
|
name: opts.title,
|
|
4532
4532
|
description: opts.message,
|
|
4533
4533
|
...opts.study ? { externalId: opts.study } : {},
|
|
4534
|
-
...opts.link ? { link: opts.link } : {}
|
|
4534
|
+
...opts.link ? { link: opts.link } : {},
|
|
4535
|
+
// The notifications backend only persists notificationContent when a
|
|
4536
|
+
// `data` payload is present (the OneToOne isn't cascaded), so without
|
|
4537
|
+
// this the notification renders blank in the bell. Always send a
|
|
4538
|
+
// small data object; harmless once the backend also persists content
|
|
4539
|
+
// without it. Not read by the front for these types.
|
|
4540
|
+
data: {
|
|
4541
|
+
source: opts.asAlexandria ? "alexandria" : "cli",
|
|
4542
|
+
...opts.study ? { studyId: opts.study } : {}
|
|
4543
|
+
}
|
|
4535
4544
|
}
|
|
4536
4545
|
};
|
|
4537
4546
|
const res = await client.post("/notifications", notification);
|
|
@@ -4720,7 +4729,7 @@ function registerCommandProfileCommand(program2) {
|
|
|
4720
4729
|
}
|
|
4721
4730
|
|
|
4722
4731
|
// src/index.ts
|
|
4723
|
-
var CLI_VERSION = true ? "0.11.
|
|
4732
|
+
var CLI_VERSION = true ? "0.11.8" : "0.0.0-dev";
|
|
4724
4733
|
function createProgram() {
|
|
4725
4734
|
const program2 = new Command4();
|
|
4726
4735
|
program2.name("suntropy").description("Agent-first CLI for Suntropy solar platform. Optimized for programmatic data manipulation and progressive exploration.").version(CLI_VERSION).option("--format <format>", "Output format: json (default), human, csv", "json").option("--fields <fields>", "Comma-separated fields to include in output").option("--server <url>", "Override API server URL").option("--token <jwt>", "Override authentication token").option("--profile <name>", "Use a specific config profile").option("--verbose", "Show HTTP request/response details on stderr").option("--quiet", "Suppress non-data output").option("--save <file>", "Save output to file (also writes to stdout)");
|