docuking-mcp 2.1.0 → 2.1.2
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/index.js +4 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -40,8 +40,8 @@ import crypto from 'crypto';
|
|
|
40
40
|
// 환경변수에서 API 엔드포인트 설정 (키는 로컬 config에서 읽음)
|
|
41
41
|
const API_ENDPOINT = process.env.DOCUKING_API_ENDPOINT || 'https://docuking.ai/api';
|
|
42
42
|
|
|
43
|
-
// 파일 크기 제한 (
|
|
44
|
-
const MAX_FILE_SIZE_MB =
|
|
43
|
+
// 파일 크기 제한 (150MB) - Base64 인코딩 시 약 200MB, 서버 제한 200MB와 일치
|
|
44
|
+
const MAX_FILE_SIZE_MB = 150;
|
|
45
45
|
const MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024;
|
|
46
46
|
|
|
47
47
|
/**
|
|
@@ -2027,7 +2027,8 @@ const FILE_TYPES = {
|
|
|
2027
2027
|
'.hwpx', '.hwp',
|
|
2028
2028
|
],
|
|
2029
2029
|
|
|
2030
|
-
// 제외 파일 (업로드 거부) -
|
|
2030
|
+
// 제외 파일 (업로드 거부) - 실행파일/시스템 이미지만
|
|
2031
|
+
// 영상/오디오는 150MB 이하면 허용 (유튜브 쇼츠 등)
|
|
2031
2032
|
EXCLUDED: [
|
|
2032
2033
|
// 압축/아카이브 (설치파일 포함 가능성 높음)
|
|
2033
2034
|
'.zip', '.tar', '.gz', '.tgz', '.7z', '.rar', '.tar.Z',
|
|
@@ -2037,10 +2038,6 @@ const FILE_TYPES = {
|
|
|
2037
2038
|
'.exe', '.msi', '.dll', '.so', '.dylib', '.com', '.app', '.pkg', '.deb', '.rpm',
|
|
2038
2039
|
// macOS 스크립트
|
|
2039
2040
|
'.scpt',
|
|
2040
|
-
// 동영상
|
|
2041
|
-
'.mp4', '.avi', '.mov', '.mkv', '.wmv', '.flv', '.webm', '.m4v',
|
|
2042
|
-
// 오디오
|
|
2043
|
-
'.mp3', '.wav', '.flac', '.aac', '.ogg', '.wma', '.m4a',
|
|
2044
2041
|
// 디스크 이미지
|
|
2045
2042
|
'.iso', '.dmg', '.img', '.vhd', '.vmdk',
|
|
2046
2043
|
],
|