@aspects-ai/workspace-cli 0.1.10 → 0.1.12

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 -6
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -482,7 +482,7 @@ async function fetchExampleFrame(toolName, targetPath) {
482
482
  const library = await getLibrary(toolName);
483
483
  const token = getToken();
484
484
  logger.info(`Fetching example frame from ${chalk5.cyan(library.repository.url)}`);
485
- const exampleFrameDirectory = library.repository.directory.replace("/src", "/example-frame");
485
+ const exampleFrameDirectory = library.repository.directory.replace("/src", "/example-frame-123");
486
486
  await fetchDirectory({
487
487
  repository: library.repository.url,
488
488
  directory: exampleFrameDirectory,
@@ -600,7 +600,7 @@ import chalk7 from "chalk";
600
600
  import { Command as Command7 } from "commander";
601
601
  import fs7 from "fs-extra";
602
602
  import path7 from "path";
603
- async function createRemotionEntry(framesDir, outputPath) {
603
+ async function createRemotionEntry(framesDir, outputPath, animateCorePath) {
604
604
  if (!await fs7.pathExists(framesDir)) {
605
605
  throw new Error(`Frames directory not found: ${framesDir}`);
606
606
  }
@@ -651,7 +651,7 @@ async function createRemotionEntry(framesDir, outputPath) {
651
651
  */
652
652
 
653
653
  import { registerRoot } from 'remotion';
654
- import { createRemotionRoot } from '@aspects-ai/noodle-animate-core/remotion';
654
+ import { createRemotionRoot } from '${animateCorePath}/remotion';
655
655
 
656
656
  // Frame imports
657
657
  ${imports.map((i) => i.statement).join("\n")}
@@ -676,13 +676,15 @@ registerRoot(Root);
676
676
  logger.log("");
677
677
  }
678
678
  function createCreateRemotionEntryCommand() {
679
- return new Command7("create-remotion-entry").description("Create a remotion-entry.tsx file for server-side rendering").option("-o, --output <path>", "Output path for remotion-entry.tsx", "remotion-entry.tsx").option("-f, --frames-dir <path>", "Path to frames directory", "frames").action(async (options) => {
679
+ return new Command7("create-remotion-entry").description("Create a remotion-entry.tsx file for server-side rendering").option("-o, --output <path>", "Output path for remotion-entry.tsx", "remotion-entry.tsx").option("-f, --frames-dir <path>", "Path to frames directory", "frames").option("-a, --animate-core-path <path>", "Path to animate-core (e.g., ./core/animate-core or @aspects-ai/noodle-animate-core)", "./core/animate-core").action(async (options) => {
680
680
  try {
681
681
  const workspaceRoot = await ensureWorkspaceRoot();
682
682
  const framesDir = path7.resolve(workspaceRoot, options.framesDir || "frames");
683
683
  const outputPath = path7.resolve(workspaceRoot, options.output || "remotion-entry.tsx");
684
+ const animateCorePath = options.animateCorePath || "./core/animate-core";
684
685
  logger.info(`Scanning frames in: ${chalk7.cyan(path7.relative(workspaceRoot, framesDir))}`);
685
- await createRemotionEntry(framesDir, outputPath);
686
+ logger.info(`Using animate-core from: ${chalk7.cyan(animateCorePath)}`);
687
+ await createRemotionEntry(framesDir, outputPath, animateCorePath);
686
688
  } catch (error) {
687
689
  logger.error(error.message);
688
690
  process.exit(1);
@@ -693,7 +695,7 @@ function createCreateRemotionEntryCommand() {
693
695
  // package.json
694
696
  var package_default = {
695
697
  name: "@aspects-ai/workspace-cli",
696
- version: "0.1.9",
698
+ version: "0.1.12",
697
699
  private: false,
698
700
  description: "Lightweight CLI for installing libraries into workspaces",
699
701
  type: "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aspects-ai/workspace-cli",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "private": false,
5
5
  "description": "Lightweight CLI for installing libraries into workspaces",
6
6
  "type": "module",
@@ -33,4 +33,4 @@
33
33
  "engines": {
34
34
  "node": ">=18.0.0"
35
35
  }
36
- }
36
+ }