agent-stage 0.2.11 → 0.2.13

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.
@@ -209,23 +209,7 @@ async function configurePackageJson(targetDir) {
209
209
  await writeFile(packageJsonPath, JSON.stringify(packageJson, null, 2));
210
210
  }
211
211
  async function installDependencies(targetDir) {
212
- // Check if we're in the monorepo by looking for packages/bridge from the CLI location
213
- // From packages/cli/src/commands/dev/init.ts -> packages/cli/src/ -> packages/cli/ -> packages/
214
- const currentFilePath = fileURLToPath(import.meta.url);
215
- const localBridgePath = resolve(join(dirname(currentFilePath), '..', '..', '..', '..', 'bridge'));
216
- const isDev = existsSync(localBridgePath);
217
- if (isDev) {
218
- // In development mode (monorepo), use pnpm
219
- try {
220
- await execa('pnpm', ['install'], { cwd: targetDir, stdio: 'pipe' });
221
- }
222
- catch {
223
- // Fallback to npm if pnpm is not available
224
- await execa('npm', ['install'], { cwd: targetDir, stdio: 'pipe' });
225
- }
226
- }
227
- else {
228
- // In production, use npm
229
- await execa('npm', ['install'], { cwd: targetDir, stdio: 'pipe' });
230
- }
212
+ // Use npm with --legacy-peer-deps to resolve peer dependency conflicts
213
+ // This is needed because @json-render packages have strict peer deps
214
+ await execa('npm', ['install', '--legacy-peer-deps'], { cwd: targetDir, stdio: 'pipe' });
231
215
  }
package/dist/index.js CHANGED
@@ -11,6 +11,7 @@ import { devCommand } from './commands/dev/index.js';
11
11
  import { pageCommand } from './commands/page/index.js';
12
12
  import { runCommand } from './commands/run/index.js';
13
13
  import { guideCommand } from './commands/guide.js';
14
+ import { cleanupCommand } from './commands/cleanup.js';
14
15
  const program = new Command();
15
16
  program
16
17
  .name('agentstage')
@@ -21,6 +22,7 @@ program.addCommand(devCommand);
21
22
  program.addCommand(pageCommand);
22
23
  program.addCommand(runCommand);
23
24
  program.addCommand(guideCommand);
25
+ program.addCommand(cleanupCommand);
24
26
  // Error handling
25
27
  program.exitOverride();
26
28
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-stage",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "files": [
5
5
  "dist",
6
6
  "template"
@@ -33,8 +33,8 @@
33
33
  "@types/react-dom": "^19.0.0",
34
34
  "@vitejs/plugin-react": "^4.2.1",
35
35
  "autoprefixer": "^10.4.17",
36
- "postcss": "^8.4.33",
37
- "tailwindcss": "^3.4.1",
36
+ "postcss": "^8.5.0",
37
+ "tailwindcss": "^4.0.0",
38
38
  "typescript": "^5.2.2",
39
39
  "vite": "^5.4.21"
40
40
  }