gangtise-openapi-cli 0.10.2 → 0.10.3

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/src/cli.js CHANGED
@@ -447,8 +447,8 @@ ai.command("earnings-review").requiredOption("--security-code <code>").requiredO
447
447
  attempts++;
448
448
  try {
449
449
  const contentResult = await client.call("ai.earnings-review.get-content", { dataId });
450
- if (contentResult?.data?.content) {
451
- await printData(contentResult.data, parseFormat(options.format), options.output);
450
+ if (contentResult?.content) {
451
+ await printData(contentResult, parseFormat(options.format), options.output);
452
452
  return;
453
453
  }
454
454
  }
@@ -469,8 +469,8 @@ ai.command("earnings-review-check").requiredOption("--data-id <id>", "dataId fro
469
469
  const client = await createClient();
470
470
  try {
471
471
  const contentResult = await client.call("ai.earnings-review.get-content", { dataId: options.dataId });
472
- if (contentResult?.data?.content) {
473
- await printData(contentResult.data, parseFormat(options.format), options.output);
472
+ if (contentResult?.content) {
473
+ await printData(contentResult, parseFormat(options.format), options.output);
474
474
  return;
475
475
  }
476
476
  process.stdout.write(`${JSON.stringify({ dataId: options.dataId, status: "pending", hint: "Content not ready yet, retry in ~2 minutes" })}\n`);
@@ -546,8 +546,8 @@ ai.command("viewpoint-debate").requiredOption("--viewpoint <text>", "Viewpoint t
546
546
  attempts++;
547
547
  try {
548
548
  const contentResult = await client.call("ai.viewpoint-debate.get-content", { dataId });
549
- if (contentResult?.data?.content) {
550
- await printData(contentResult.data, parseFormat(options.format), options.output);
549
+ if (contentResult?.content) {
550
+ await printData(contentResult, parseFormat(options.format), options.output);
551
551
  return;
552
552
  }
553
553
  }
@@ -568,8 +568,8 @@ ai.command("viewpoint-debate-check").requiredOption("--data-id <id>", "dataId fr
568
568
  const client = await createClient();
569
569
  try {
570
570
  const contentResult = await client.call("ai.viewpoint-debate.get-content", { dataId: options.dataId });
571
- if (contentResult?.data?.content) {
572
- await printData(contentResult.data, parseFormat(options.format), options.output);
571
+ if (contentResult?.content) {
572
+ await printData(contentResult, parseFormat(options.format), options.output);
573
573
  return;
574
574
  }
575
575
  process.stdout.write(`${JSON.stringify({ dataId: options.dataId, status: "pending", hint: "Content not ready yet, retry in ~2 minutes" })}\n`);
@@ -1,2 +1,2 @@
1
1
  // Auto-generated — DO NOT EDIT
2
- export const CLI_VERSION = "0.10.2";
2
+ export const CLI_VERSION = "0.10.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gangtise-openapi-cli",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
4
4
  "description": "CLI for Gangtise OpenAPI",
5
5
  "license": "MIT",
6
6
  "repository": {