@aisa-one/cli 0.1.6 → 0.1.7
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/README.md +1 -1
- package/dist/commands/video.js +4 -2
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ echo "summarize this" | aisa chat # pipe support
|
|
|
54
54
|
|
|
55
55
|
aisa models # list all models
|
|
56
56
|
aisa models --provider anthropic # filter by provider
|
|
57
|
-
aisa models show gpt-4.1 # model details
|
|
57
|
+
aisa models show gpt-4.1 # model details
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
### API Discovery & Execution
|
package/dist/commands/video.js
CHANGED
|
@@ -36,6 +36,7 @@ export async function videoCreateAction(prompt, options) {
|
|
|
36
36
|
// Poll for completion
|
|
37
37
|
const pollSpinner = ora("Generating video...").start();
|
|
38
38
|
let status = "PENDING";
|
|
39
|
+
let lastPollData;
|
|
39
40
|
while (status === "PENDING" || status === "RUNNING") {
|
|
40
41
|
await new Promise((r) => setTimeout(r, 5000));
|
|
41
42
|
const pollRes = await apiRequest(key, "services/aigc/tasks", {
|
|
@@ -47,12 +48,13 @@ export async function videoCreateAction(prompt, options) {
|
|
|
47
48
|
error(pollRes.error || "Unknown error");
|
|
48
49
|
return;
|
|
49
50
|
}
|
|
50
|
-
|
|
51
|
+
lastPollData = pollRes.data;
|
|
52
|
+
status = lastPollData.output?.task_status || lastPollData.status || "UNKNOWN";
|
|
51
53
|
pollSpinner.text = `Generating video... (${status})`;
|
|
52
54
|
}
|
|
53
55
|
if (status === "SUCCEEDED" || status === "completed") {
|
|
54
56
|
pollSpinner.succeed("Video generated!");
|
|
55
|
-
const videoUrl =
|
|
57
|
+
const videoUrl = lastPollData?.output?.video_url || lastPollData?.resultUrl;
|
|
56
58
|
if (videoUrl) {
|
|
57
59
|
console.log(` URL: ${chalk.cyan(videoUrl)}`);
|
|
58
60
|
}
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.7";
|
|
2
2
|
export declare const BASE_URL = "https://api.aisa.one";
|
|
3
3
|
export declare const CLI_BASE_URL = "https://api.aisa.one/v1";
|
|
4
4
|
export declare const APIS_BASE_URL = "https://api.aisa.one/apis/v1";
|
package/dist/constants.js
CHANGED
package/package.json
CHANGED