@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 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 + pricing
57
+ aisa models show gpt-4.1 # model details
58
58
  ```
59
59
 
60
60
  ### API Discovery & Execution
@@ -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
- status = pollRes.data.output?.task_status || pollRes.data.status || "UNKNOWN";
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 = res.data.output?.video_url || res.data.resultUrl;
57
+ const videoUrl = lastPollData?.output?.video_url || lastPollData?.resultUrl;
56
58
  if (videoUrl) {
57
59
  console.log(` URL: ${chalk.cyan(videoUrl)}`);
58
60
  }
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "0.1.6";
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
@@ -1,4 +1,4 @@
1
- export const VERSION = "0.1.6";
1
+ export const VERSION = "0.1.7";
2
2
  export const BASE_URL = "https://api.aisa.one";
3
3
  export const CLI_BASE_URL = `${BASE_URL}/v1`;
4
4
  export const APIS_BASE_URL = `${BASE_URL}/apis/v1`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aisa-one/cli",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "CLI for the AISA unified AI infrastructure platform - access 70+ LLMs, web search, finance, Twitter, and video generation APIs",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",