maoda-commander-tt 0.0.29 → 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
@@ -3415,7 +3415,8 @@ var XYQ_SESSION_COOKIE_NAME = "sessionid_pippitcn_web";
3415
3415
  var XYQ_TASK_ID_PREFIX = "xyq:";
3416
3416
  var XYQ_VIDEO_MODELS = [
3417
3417
  "seedance2.0_vision",
3418
- "seedance2.0_fast_vision"
3418
+ "seedance2.0_fast_vision",
3419
+ "Seedance_2.5"
3419
3420
  ];
3420
3421
 
3421
3422
  // src/modules/xyq/xyq-session.ts
@@ -4647,6 +4648,13 @@ function uploadReference(session, filePath, assetType) {
4647
4648
  }
4648
4649
  function resolveModel(modelId) {
4649
4650
  const requested = modelId?.trim();
4651
+ if (requested === "seedance2.5") {
4652
+ return {
4653
+ applied: "seedance2.5",
4654
+ internal: "Seedance_2.5",
4655
+ adjustments: []
4656
+ };
4657
+ }
4650
4658
  if (requested === "seedance2.0_fast") {
4651
4659
  return {
4652
4660
  applied: "seedance2.0_fast",
@@ -4924,6 +4932,10 @@ async function runVideoTaskToCompletion(options) {
4924
4932
  // src/commands/ai/ai-video-wait-command.ts
4925
4933
  import { Option as Option9 } from "commander";
4926
4934
  var AiVideoWaitCommand = class extends AiBaseCommand {
4935
+ constructor(_runVideoTask = runVideoTaskToCompletion) {
4936
+ super();
4937
+ this._runVideoTask = _runVideoTask;
4938
+ }
4927
4939
  _meta() {
4928
4940
  return {
4929
4941
  name: "wait",
@@ -4948,10 +4960,11 @@ var AiVideoWaitCommand = class extends AiBaseCommand {
4948
4960
  );
4949
4961
  }
4950
4962
  async _execute(ctx) {
4951
- const result = await runVideoTaskToCompletion({
4952
- taskId: ctx.options.taskId,
4953
- timeoutSeconds: ctx.options.timeoutSeconds,
4954
- 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
4955
4968
  });
4956
4969
  if (!result.ok) {
4957
4970
  this._outputJsonError(result.code, result.msg);
@@ -5021,7 +5034,7 @@ var AiVideoCommand = class extends BaseSubcommandHost {
5021
5034
  cmd.addOption(
5022
5035
  new Option10(
5023
5036
  "--model-id <model-id>",
5024
- "\u6A21\u578B ID\uFF0C\u652F\u6301 seedance2.0\u3001seedance2.0_fast"
5037
+ "\u6A21\u578B ID\uFF0C\u652F\u6301 seedance2.0\u3001seedance2.0_fast\u3001seedance2.5"
5025
5038
  )
5026
5039
  );
5027
5040
  cmd.addOption(