makecc 0.2.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.
package/bin/cli.js
CHANGED
|
@@ -64,9 +64,9 @@ async function main() {
|
|
|
64
64
|
|
|
65
65
|
// Start the server using tsx
|
|
66
66
|
const serverPath = join(rootDir, 'server', 'index.ts');
|
|
67
|
-
const tsxPath = join(rootDir, 'node_modules', '.bin', 'tsx');
|
|
68
67
|
|
|
69
|
-
|
|
68
|
+
// tsx 실행 파일 찾기 - npx 환경에서도 작동하도록
|
|
69
|
+
const serverProcess = spawn('npx', ['tsx', serverPath], {
|
|
70
70
|
cwd: rootDir,
|
|
71
71
|
env: {
|
|
72
72
|
...process.env,
|
package/dist/server/index.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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.2.
|
|
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 .",
|