@enerlence/suntropy-cli 0.8.1 → 0.8.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.
@@ -3165,7 +3165,22 @@ Example: suntropy studies set data --file study.json --data '{"referenceId":"REF
3165
3165
  });
3166
3166
  const res = await client.post(`/solar-study/addSolarStudyComment/${studyId}`, comment);
3167
3167
  const saved = assertFound(res.data, "Solar study", studyId);
3168
- output(saved, global);
3168
+ output(
3169
+ {
3170
+ success: true,
3171
+ message: `Comentario a\xF1adido al estudio ${studyId}`,
3172
+ studyId,
3173
+ commentsCount: Array.isArray(saved.comments) ? saved.comments.length : void 0,
3174
+ comment: {
3175
+ type: comment.type,
3176
+ creationUserUID: comment.creationUserUID,
3177
+ creationTimestamp: comment.creationTimestamp,
3178
+ aiGenerated: comment.aiGenerated ?? false,
3179
+ content: comment.content
3180
+ }
3181
+ },
3182
+ global
3183
+ );
3169
3184
  } catch (err) {
3170
3185
  outputError(handleApiError(err));
3171
3186
  }
@@ -4333,7 +4348,7 @@ function registerGeocodeCommands(program2) {
4333
4348
  }
4334
4349
 
4335
4350
  // src/index.ts
4336
- var CLI_VERSION = true ? "0.8.1" : "0.0.0-dev";
4351
+ var CLI_VERSION = true ? "0.8.2" : "0.0.0-dev";
4337
4352
  function createProgram() {
4338
4353
  const program2 = new Command3();
4339
4354
  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)");