maoda-commander-tt 0.0.30 → 0.0.31

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/main.js CHANGED
@@ -4932,6 +4932,10 @@ async function runVideoTaskToCompletion(options) {
4932
4932
  // src/commands/ai/ai-video-wait-command.ts
4933
4933
  import { Option as Option9 } from "commander";
4934
4934
  var AiVideoWaitCommand = class extends AiBaseCommand {
4935
+ constructor(_runVideoTask = runVideoTaskToCompletion) {
4936
+ super();
4937
+ this._runVideoTask = _runVideoTask;
4938
+ }
4935
4939
  _meta() {
4936
4940
  return {
4937
4941
  name: "wait",
@@ -4956,10 +4960,11 @@ var AiVideoWaitCommand = class extends AiBaseCommand {
4956
4960
  );
4957
4961
  }
4958
4962
  async _execute(ctx) {
4959
- const result = await runVideoTaskToCompletion({
4960
- taskId: ctx.options.taskId,
4961
- timeoutSeconds: ctx.options.timeoutSeconds,
4962
- outputPath: ctx.options.output
4963
+ const options = ctx.command.optsWithGlobals();
4964
+ const result = await this._runVideoTask({
4965
+ taskId: options.taskId,
4966
+ timeoutSeconds: options.timeoutSeconds,
4967
+ outputPath: options.output
4963
4968
  });
4964
4969
  if (!result.ok) {
4965
4970
  this._outputJsonError(result.code, result.msg);