@aspects-ai/workspace-cli 0.1.19 → 0.1.21

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command as Command9 } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@aspects-ai/workspace-cli",
9
- version: "0.1.18",
9
+ version: "0.1.20",
10
10
  private: false,
11
11
  description: "Lightweight CLI for installing libraries into workspaces",
12
12
  type: "module",
@@ -626,11 +626,14 @@ import { execa as execa2 } from "execa";
626
626
  import { createRequire } from "module";
627
627
  import path7 from "path";
628
628
  function createRemotionCommand() {
629
- const command = new Command5("remotion").description("Run remotion CLI commands using the bundled remotion installation").allowUnknownOption().allowExcessArguments().action(async () => {
629
+ const command = new Command5("remotion").description("Run remotion CLI commands using the bundled remotion installation").allowUnknownOption().allowExcessArguments().action(async (...actionArgs) => {
630
+ const cmd = actionArgs[actionArgs.length - 1];
631
+ const args = cmd.parent?.args.slice(1) || process.argv.slice(process.argv.indexOf("remotion") + 1);
632
+ console.error("DEBUG actionArgs length:", actionArgs.length);
633
+ console.error("DEBUG cmd.args:", cmd.args);
634
+ console.error("DEBUG cmd.parent?.args:", cmd.parent?.args);
630
635
  console.error("DEBUG process.argv:", process.argv);
631
- const remotionIndex = process.argv.findIndex((arg) => arg === "remotion");
632
- const args = remotionIndex !== -1 ? process.argv.slice(remotionIndex + 1) : [];
633
- console.error("DEBUG remotionIndex:", remotionIndex, "args:", args);
636
+ console.error("DEBUG final args:", args);
634
637
  const require2 = createRequire(import.meta.url);
635
638
  const remotionCliPath = require2.resolve("@remotion/cli/package.json");
636
639
  const remotionCliDir = path7.dirname(remotionCliPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aspects-ai/workspace-cli",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "private": false,
5
5
  "description": "Lightweight CLI for installing libraries into workspaces",
6
6
  "type": "module",