makecc 0.1.0 → 0.2.1

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.
@@ -5,8 +5,8 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>vite-temp</title>
8
- <script type="module" crossorigin src="/assets/index-BkAJX_uj.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-CRHGYTA2.css">
8
+ <script type="module" crossorigin src="/assets/index-sLSbr7SJ.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-C3whdqo5.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="root"></div>
@@ -28,7 +28,7 @@ app.use(cors());
28
28
  app.use(express.json());
29
29
  // Serve static files in production
30
30
  if (isProduction) {
31
- const clientDistPath = join(__dirname, '..', 'client');
31
+ const clientDistPath = join(__dirname, '..', 'dist', 'client');
32
32
  if (existsSync(clientDistPath)) {
33
33
  app.use(express.static(clientDistPath));
34
34
  }
@@ -196,8 +196,8 @@ io.on('connection', (socket) => {
196
196
  });
197
197
  // SPA fallback - serve index.html for all non-API routes in production
198
198
  if (isProduction) {
199
- const clientDistPath = join(__dirname, '..', 'client');
200
- app.get('*', (req, res) => {
199
+ const clientDistPath = join(__dirname, '..', 'dist', 'client');
200
+ app.get('/{*path}', (req, res) => {
201
201
  res.sendFile(join(clientDistPath, 'index.html'));
202
202
  });
203
203
  }
@@ -4,7 +4,8 @@ import * as os from 'os';
4
4
  export class FileService {
5
5
  projectRoot;
6
6
  constructor(projectRoot) {
7
- this.projectRoot = projectRoot || process.cwd();
7
+ // MAKECC_PROJECT_PATH: npx makecc 실행 시 사용자 프로젝트 경로
8
+ this.projectRoot = projectRoot || process.env.MAKECC_PROJECT_PATH || process.cwd();
8
9
  }
9
10
  /**
10
11
  * Resolves a path, expanding ~ to home directory
@@ -1,7 +1,7 @@
1
1
  import Anthropic from '@anthropic-ai/sdk';
2
2
  import { GoogleGenerativeAI } from '@google/generative-ai';
3
3
  import ExcelJS from 'exceljs';
4
- import PptxGenJS from 'pptxgenjs';
4
+ import pptxgen from 'pptxgenjs';
5
5
  import { writeFile, mkdir } from 'fs/promises';
6
6
  import { join } from 'path';
7
7
  import { existsSync } from 'fs';
@@ -234,6 +234,7 @@ ${input}
234
234
  };
235
235
  }
236
236
  // 2단계: PptxGenJS로 실제 파일 생성
237
+ const PptxGenJS = pptxgen.default || pptxgen;
237
238
  const pptx = new PptxGenJS();
238
239
  pptx.author = pptData.author || 'Million Agent';
239
240
  pptx.title = pptData.title;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makecc",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "description": "Visual workflow builder for Claude Code agents and skills",
6
6
  "keywords": [
@@ -29,7 +29,8 @@
29
29
  "dev": "vite",
30
30
  "dev:server": "tsx watch server/index.ts",
31
31
  "dev:all": "concurrently \"npm run dev\" \"npm run dev:server\"",
32
- "build": "tsc -b && vite build --outDir dist/client",
32
+ "build": "tsc -b && vite build --outDir dist/client && npm run build:server",
33
+ "build:server": "tsc --project tsconfig.server.json",
33
34
  "start": "tsx server/index.ts",
34
35
  "start:server": "tsx server/index.ts",
35
36
  "lint": "eslint .",
@@ -70,7 +70,8 @@ export class FileService {
70
70
  private projectRoot: string;
71
71
 
72
72
  constructor(projectRoot?: string) {
73
- this.projectRoot = projectRoot || process.cwd();
73
+ // MAKECC_PROJECT_PATH: npx makecc 실행 시 사용자 프로젝트 경로
74
+ this.projectRoot = projectRoot || process.env.MAKECC_PROJECT_PATH || process.cwd();
74
75
  }
75
76
 
76
77
  /**
@@ -1,7 +1,7 @@
1
1
  import Anthropic from '@anthropic-ai/sdk';
2
2
  import { GoogleGenerativeAI } from '@google/generative-ai';
3
3
  import ExcelJS from 'exceljs';
4
- import PptxGenJS from 'pptxgenjs';
4
+ import pptxgen from 'pptxgenjs';
5
5
  import { writeFile, mkdir } from 'fs/promises';
6
6
  import { join } from 'path';
7
7
  import { existsSync } from 'fs';
@@ -286,6 +286,7 @@ ${input}
286
286
  }
287
287
 
288
288
  // 2단계: PptxGenJS로 실제 파일 생성
289
+ const PptxGenJS = (pptxgen as any).default || pptxgen;
289
290
  const pptx = new PptxGenJS();
290
291
  pptx.author = pptData.author || 'Million Agent';
291
292
  pptx.title = pptData.title;