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 +8 -8
- package/dist/src/version.js +1 -1
- package/package.json +1 -1
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?.
|
|
451
|
-
await printData(contentResult
|
|
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?.
|
|
473
|
-
await printData(contentResult
|
|
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?.
|
|
550
|
-
await printData(contentResult
|
|
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?.
|
|
572
|
-
await printData(contentResult
|
|
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`);
|
package/dist/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Auto-generated — DO NOT EDIT
|
|
2
|
-
export const CLI_VERSION = "0.10.
|
|
2
|
+
export const CLI_VERSION = "0.10.3";
|