@yoonion/mimi-seed-mcp 0.25.3 → 0.25.5
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/README.md +2 -1
- package/assets/agent-guide.md +37 -9
- package/dist/auth/cli.js +2 -2
- package/dist/auth/constants.js +4 -3
- package/dist/auth/errors.js +4 -1
- package/dist/auth/google-auth.d.ts +14 -0
- package/dist/auth/google-auth.js +19 -1
- package/dist/core/console-url.d.ts +17 -2
- package/dist/core/console-url.js +54 -16
- package/dist/core/credential-store.js +2 -0
- package/dist/crosspost/ledger.d.ts +52 -0
- package/dist/crosspost/ledger.js +269 -0
- package/dist/crosspost/tools.d.ts +136 -0
- package/dist/crosspost/tools.js +821 -0
- package/dist/drive/tools.d.ts +0 -1
- package/dist/drive/tools.js +19 -1
- package/dist/facebook/api.d.ts +3 -2
- package/dist/facebook/api.js +6 -2
- package/dist/i18n/manifest-en.js +3 -0
- package/dist/i18n/tools-en/android.d.ts +2 -2
- package/dist/i18n/tools-en/android.js +2 -2
- package/dist/i18n/tools-en/crosspost.d.ts +23 -0
- package/dist/i18n/tools-en/crosspost.js +22 -0
- package/dist/i18n/tools-en/index.js +2 -0
- package/dist/i18n/tools-en/jenkins.d.ts +4 -4
- package/dist/i18n/tools-en/jenkins.js +4 -4
- package/dist/instagram/api.d.ts +3 -2
- package/dist/instagram/api.js +6 -2
- package/dist/instagram/browser-login.js +2 -5
- package/dist/jenkins/credentials.d.ts +7 -3
- package/dist/jenkins/credentials.js +4 -0
- package/dist/jenkins/messages.d.ts +2 -0
- package/dist/jenkins/messages.js +15 -0
- package/dist/lib/human-approval.d.ts +1 -1
- package/dist/lib/human-approval.js +4 -3
- package/dist/lib/meta-auth.d.ts +9 -0
- package/dist/lib/meta-auth.js +12 -3
- package/dist/lib/tool-menu.js +2 -1
- package/dist/lib/tool-registrar.js +13 -5
- package/dist/registers/android.js +10 -7
- package/dist/registers/auth.js +11 -5
- package/dist/registers/crosspost.d.ts +2 -0
- package/dist/registers/crosspost.js +81 -0
- package/dist/registers/jenkins.js +20 -8
- package/dist/remote-sync.js +8 -4
- package/dist/server.js +2 -0
- package/dist/social/broker-base.d.ts +7 -0
- package/dist/social/broker-base.js +11 -0
- package/dist/social/meta-app-config.d.ts +19 -0
- package/dist/social/meta-app-config.js +83 -0
- package/dist/social/meta-direct-login.d.ts +45 -0
- package/dist/social/meta-direct-login.js +307 -0
- package/dist/social/setup-cli.js +228 -20
- package/dist/threads/api.d.ts +4 -3
- package/dist/threads/api.js +9 -7
- package/dist/threads/browser-login.js +2 -5
- package/dist/tiktok-business/posting.d.ts +11 -1
- package/dist/tiktok-business/posting.js +18 -1
- package/dist/video/youtube-publish.d.ts +41 -1
- package/dist/video/youtube-publish.js +16 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/tool-manifest.json +28 -8
package/dist/drive/tools.d.ts
CHANGED
|
@@ -71,7 +71,6 @@ export interface LocalFile {
|
|
|
71
71
|
size: number;
|
|
72
72
|
mimeType: string;
|
|
73
73
|
}
|
|
74
|
-
/** 업로드할 로컬 파일 점검 — 절대 경로, 일반 파일, 비어 있지 않음. */
|
|
75
74
|
export declare function inspectLocalFile(filePath: string, mimeType?: string): LocalFile;
|
|
76
75
|
/** 로컬 파일 MD5 — 업로드 결과의 md5Checksum 과 비교해 전송 무결성을 확인한다. */
|
|
77
76
|
export declare function md5OfFile(filePath: string): Promise<string>;
|
package/dist/drive/tools.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createHash } from 'node:crypto';
|
|
2
|
-
import { createReadStream, statSync } from 'node:fs';
|
|
2
|
+
import { createReadStream, realpathSync, statSync } from 'node:fs';
|
|
3
|
+
import os from 'node:os';
|
|
3
4
|
import path from 'node:path';
|
|
4
5
|
import { google } from '../lib/googleapis-lite.js';
|
|
5
6
|
import { mediaUploadOptions } from '../lib/google-timeouts.js';
|
|
@@ -33,6 +34,7 @@ const M = catalog({
|
|
|
33
34
|
notFile: (p) => `파일이 아니야: ${p}`,
|
|
34
35
|
unreadable: (p) => `파일을 읽을 수 없어: ${p}`,
|
|
35
36
|
emptyFile: (p) => `빈 파일은 올리지 않아: ${p}`,
|
|
37
|
+
credentialDir: (p) => `~/.mimi-seed 안의 파일은 올리지 않아 (자격증명 폴더): ${p}`,
|
|
36
38
|
conflict: (name, id) => `같은 폴더에 "${name}" 이 이미 있어 (fileId ${id}). ` +
|
|
37
39
|
'내용을 바꾸려면 drive_update_file_content, 하나 더 만들려면 onConflict="create_new".',
|
|
38
40
|
folderContent: '폴더에는 내용을 올릴 수 없어.',
|
|
@@ -65,6 +67,7 @@ const M = catalog({
|
|
|
65
67
|
notFile: (p) => `Not a file: ${p}`,
|
|
66
68
|
unreadable: (p) => `Cannot read the file: ${p}`,
|
|
67
69
|
emptyFile: (p) => `Empty files are not uploaded: ${p}`,
|
|
70
|
+
credentialDir: (p) => `Files inside ~/.mimi-seed are not uploaded (the credentials folder): ${p}`,
|
|
68
71
|
conflict: (name, id) => `"${name}" already exists in the same folder (fileId ${id}). ` +
|
|
69
72
|
'To replace its content use drive_update_file_content; to create another one use onConflict="create_new".',
|
|
70
73
|
folderContent: 'Cannot upload content to a folder.',
|
|
@@ -221,6 +224,17 @@ export function guessMimeType(filePath) {
|
|
|
221
224
|
return MIME_BY_EXT[path.extname(filePath).toLowerCase()] ?? 'application/octet-stream';
|
|
222
225
|
}
|
|
223
226
|
/** 업로드할 로컬 파일 점검 — 절대 경로, 일반 파일, 비어 있지 않음. */
|
|
227
|
+
function isInsideCredentialDir(filePath) {
|
|
228
|
+
let base;
|
|
229
|
+
try {
|
|
230
|
+
base = realpathSync(path.join(os.homedir(), '.mimi-seed'));
|
|
231
|
+
}
|
|
232
|
+
catch {
|
|
233
|
+
return false; // 폴더가 없으면 그 안의 파일도 없다
|
|
234
|
+
}
|
|
235
|
+
const rel = path.relative(base, realpathSync(filePath));
|
|
236
|
+
return rel === '' || (!rel.startsWith('..') && !path.isAbsolute(rel));
|
|
237
|
+
}
|
|
224
238
|
export function inspectLocalFile(filePath, mimeType) {
|
|
225
239
|
if (!path.isAbsolute(filePath))
|
|
226
240
|
throw new Error(M().notAbsolute);
|
|
@@ -238,6 +252,10 @@ export function inspectLocalFile(filePath, mimeType) {
|
|
|
238
252
|
}
|
|
239
253
|
if (size === 0)
|
|
240
254
|
throw new Error(M().emptyFile(filePath));
|
|
255
|
+
// filePath 는 프롬프트 인젝션이 고를 수 있는 값이다. 자격증명 폴더의 파일을 공유 폴더로 올리는 경로를 막는다
|
|
256
|
+
// (심볼릭 링크로 빠져나가지 못하게 realpath 로 비교). 그 밖의 파일은 승인 대화상자가 사용자에게 보여 준다.
|
|
257
|
+
if (isInsideCredentialDir(filePath))
|
|
258
|
+
throw new Error(M().credentialDir(filePath));
|
|
241
259
|
return { path: filePath, size, mimeType: mimeType ?? guessMimeType(filePath) };
|
|
242
260
|
}
|
|
243
261
|
/** 로컬 파일 MD5 — 업로드 결과의 md5Checksum 과 비교해 전송 무결성을 확인한다. */
|
package/dist/facebook/api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { FacebookConfig } from './config.js';
|
|
2
|
+
import { type PublishHooks } from '../lib/meta-auth.js';
|
|
2
3
|
export interface FacebookPage {
|
|
3
4
|
id: string;
|
|
4
5
|
name: string;
|
|
@@ -11,6 +12,6 @@ export interface PostResult {
|
|
|
11
12
|
permalink?: string;
|
|
12
13
|
}
|
|
13
14
|
export declare function getPage(cfg: FacebookConfig): Promise<FacebookPage>;
|
|
14
|
-
export declare function postPhoto(cfg: FacebookConfig, imageUrl: string, caption: string): Promise<PostResult>;
|
|
15
|
-
export declare function postMultiPhoto(cfg: FacebookConfig, imageUrls: string[], caption: string): Promise<PostResult>;
|
|
15
|
+
export declare function postPhoto(cfg: FacebookConfig, imageUrl: string, caption: string, hooks?: PublishHooks): Promise<PostResult>;
|
|
16
|
+
export declare function postMultiPhoto(cfg: FacebookConfig, imageUrls: string[], caption: string, hooks?: PublishHooks): Promise<PostResult>;
|
|
16
17
|
export declare function listAccessiblePages(userAccessToken: string): Promise<FacebookPage[]>;
|
package/dist/facebook/api.js
CHANGED
|
@@ -56,7 +56,9 @@ async function uploadUnpublishedPhoto(cfg, imageUrl) {
|
|
|
56
56
|
});
|
|
57
57
|
return result.id;
|
|
58
58
|
}
|
|
59
|
-
export async function postPhoto(cfg, imageUrl, caption) {
|
|
59
|
+
export async function postPhoto(cfg, imageUrl, caption, hooks = {}) {
|
|
60
|
+
// A published photo is one request: it is the publishing step.
|
|
61
|
+
hooks.onPublishStart?.();
|
|
60
62
|
const result = await fbPost(cfg.pageAccessToken, `/${encodePathSegment(cfg.pageId)}/photos`, {
|
|
61
63
|
url: imageUrl,
|
|
62
64
|
message: caption,
|
|
@@ -71,7 +73,7 @@ export async function postPhoto(cfg, imageUrl, caption) {
|
|
|
71
73
|
catch { /* best-effort */ }
|
|
72
74
|
return { id: postId, permalink };
|
|
73
75
|
}
|
|
74
|
-
export async function postMultiPhoto(cfg, imageUrls, caption) {
|
|
76
|
+
export async function postMultiPhoto(cfg, imageUrls, caption, hooks = {}) {
|
|
75
77
|
if (imageUrls.length < 2 || imageUrls.length > 10) {
|
|
76
78
|
throw new Error(M().imageCount);
|
|
77
79
|
}
|
|
@@ -83,6 +85,8 @@ export async function postMultiPhoto(cfg, imageUrls, caption) {
|
|
|
83
85
|
}
|
|
84
86
|
// Step 2: create feed post with all photos attached
|
|
85
87
|
const attachedMedia = photoIds.map(id => JSON.stringify({ media_fbid: id }));
|
|
88
|
+
// The unpublished uploads above are invisible; this feed post is what publishes.
|
|
89
|
+
hooks.onPublishStart?.();
|
|
86
90
|
const result = await fbPost(cfg.pageAccessToken, `/${encodePathSegment(cfg.pageId)}/feed`, {
|
|
87
91
|
message: caption,
|
|
88
92
|
attached_media: `[${attachedMedia.join(',')}]`,
|
package/dist/i18n/manifest-en.js
CHANGED
|
@@ -43,6 +43,9 @@ export const MANIFEST_TEXT_EN = {
|
|
|
43
43
|
'Threads 토큰 (mimi-seed auth threads)': 'Threads token (mimi-seed auth threads)',
|
|
44
44
|
'텍스트/이미지/영상 포스팅·토큰 갱신': 'Post text/images/videos; refresh the token',
|
|
45
45
|
'Organic API 계정 진단·게시 전 검증·공개 영상 게시·상태·중복 방지 감사 로그': 'Organic API account diagnostics, pre-publish validation, public video publishing, status, duplicate-prevention audit log',
|
|
46
|
+
'소셜 통합 게시': 'Cross-platform social publishing',
|
|
47
|
+
'플랫폼별 연결 (mimi-seed auth social)': 'Each platform connected (mimi-seed auth social)',
|
|
48
|
+
'여러 소셜 플랫폼에 한 번에 게시·중복 게시 방지': 'Publish one post to several social platforms; duplicate-post protection',
|
|
46
49
|
'영상 제작': 'Video production',
|
|
47
50
|
'기능별 API 키 + Google OAuth(YouTube 게시) + FFmpeg': 'Per-feature API keys + Google OAuth (YouTube publishing) + FFmpeg',
|
|
48
51
|
'story 스토리보드·영상 리서치/제작·YouTube 업로드와 공개 상태 관리': 'story storyboards, video research/production, YouTube upload and privacy management',
|
|
@@ -6,9 +6,9 @@ declare const _default: {
|
|
|
6
6
|
'\uC571 \uC774\uB984 \u2014 keystore dname CN\uC5D0 \uC0AC\uC6A9 (\uC608: MyApp)': string;
|
|
7
7
|
'\uC870\uC9C1\uBA85 \u2014 dname O (\uC0DD\uB7B5 \uC2DC app_name)': string;
|
|
8
8
|
'\uAD6D\uAC00 \uCF54\uB4DC (\uAE30\uBCF8: KR)': string;
|
|
9
|
-
'setup_playstore_connection\uC73C\uB85C \uC0DD\uC131\uD55C Play Store \uC11C\uBE44\uC2A4 \uACC4\uC815 JSON\uC744 Jenkins Secret File credential\uB85C \uC5C5\uB85C\uB4DC\uD569\uB2C8\uB2E4. ~/.mimi-seed/play-service-accounts/{package_name}.json \uC744 \uC77D\uC5B4 base64\uB85C \uBCC0\uD658 \uD6C4 \uB4F1\uB85D\uD569\uB2C8\uB2E4. iam_create_key \uB85C \uB9C9 \uBC1C\uAE09\uD55C \uD0A4\uB97C \uC62C\uB9AC\uB824\uBA74 service_account_json_path \uC5D0 \uADF8 \uACBD\uB85C(~/.mimi-seed/keys/ \uC548)\uB97C \uB118\uAE30\uC138\uC694. setup_playstore_connection \uC2E4\uD589 \uD6C4 \uBC18\uB4DC\uC2DC \uC774 \uB3C4\uAD6C\uB97C \uD638\uCD9C\uD558\uC138\uC694.
|
|
9
|
+
'setup_playstore_connection\uC73C\uB85C \uC0DD\uC131\uD55C Play Store \uC11C\uBE44\uC2A4 \uACC4\uC815 JSON\uC744 Jenkins Secret File credential\uB85C \uC5C5\uB85C\uB4DC\uD569\uB2C8\uB2E4. ~/.mimi-seed/play-service-accounts/{package_name}.json \uC744 \uC77D\uC5B4 base64\uB85C \uBCC0\uD658 \uD6C4 \uB4F1\uB85D\uD569\uB2C8\uB2E4. iam_create_key \uB85C \uB9C9 \uBC1C\uAE09\uD55C \uD0A4\uB97C \uC62C\uB9AC\uB824\uBA74 service_account_json_path \uC5D0 \uADF8 \uACBD\uB85C(~/.mimi-seed/keys/ \uC548)\uB97C \uB118\uAE30\uC138\uC694. setup_playstore_connection \uC2E4\uD589 \uD6C4 \uBC18\uB4DC\uC2DC \uC774 \uB3C4\uAD6C\uB97C \uD638\uCD9C\uD558\uC138\uC694. confirm \uC0DD\uB7B5/false \uBA74 \uC544\uBB34\uAC83\uB3C4 \uBCF4\uB0B4\uC9C0 \uC54A\uACE0 dry-run \uB9CC \uBC18\uD658\uD55C\uB2E4 \u2014 \uC0C8 id \uBA74 "\uC0DD\uC131 \uC608\uC815", \uAC19\uC740 id \uAC00 \uC788\uC73C\uBA74 "\uC774\uBBF8 \uC874\uC7AC"(\uAE30\uC874 SA JSON \uC744 \uAD50\uCCB4\uD558\uBA74 \uB418\uB3CC\uB9B4 \uC218 \uC5C6\uC74C). \uC0AC\uC6A9\uC790 \uC2B9\uC778 \uD6C4 \uAC19\uC740 \uC778\uC790\uC5D0 confirm: true \uB85C \uC7AC\uD638\uCD9C.': string;
|
|
10
10
|
'Jenkins Credential ID (\uC0DD\uB7B5 \uC2DC "<\uC571>-playstore-sa")': string;
|
|
11
11
|
'\uC120\uD0DD \u2014 iam_create_key \uAC00 \uC800\uC7A5\uD55C \uD0A4 \uD30C\uC77C \uC808\uB300\uACBD\uB85C (~/.mimi-seed/keys/ \uC548\uB9CC \uD5C8\uC6A9). \uC0DD\uB7B5\uD558\uBA74 \uD328\uD0A4\uC9C0\uBCC4 \uB4F1\uB85D SA \uC0AC\uC6A9': string;
|
|
12
|
-
'\
|
|
12
|
+
'true \uC77C \uB54C\uB9CC Jenkins \uB85C \uBCF4\uB0B8\uB2E4 (\uC0C8 id \uC0DD\uC131 \uB610\uB294 \uAE30\uC874 SA JSON \uAD50\uCCB4). \uC0DD\uB7B5/false \uBA74 dry-run': string;
|
|
13
13
|
};
|
|
14
14
|
export default _default;
|
|
@@ -6,8 +6,8 @@ export default {
|
|
|
6
6
|
'앱 이름 — keystore dname CN에 사용 (예: MyApp)': 'App name — used for the keystore dname CN (e.g. MyApp)',
|
|
7
7
|
'조직명 — dname O (생략 시 app_name)': 'Organization name — dname O (when omitted, app_name)',
|
|
8
8
|
'국가 코드 (기본: KR)': 'Country code (default: KR)',
|
|
9
|
-
'setup_playstore_connection으로 생성한 Play Store 서비스 계정 JSON을 Jenkins Secret File credential로 업로드합니다. ~/.mimi-seed/play-service-accounts/{package_name}.json 을 읽어 base64로 변환 후 등록합니다. iam_create_key 로 막 발급한 키를 올리려면 service_account_json_path 에 그 경로(~/.mimi-seed/keys/ 안)를 넘기세요. setup_playstore_connection 실행 후 반드시 이 도구를 호출하세요.
|
|
9
|
+
'setup_playstore_connection으로 생성한 Play Store 서비스 계정 JSON을 Jenkins Secret File credential로 업로드합니다. ~/.mimi-seed/play-service-accounts/{package_name}.json 을 읽어 base64로 변환 후 등록합니다. iam_create_key 로 막 발급한 키를 올리려면 service_account_json_path 에 그 경로(~/.mimi-seed/keys/ 안)를 넘기세요. setup_playstore_connection 실행 후 반드시 이 도구를 호출하세요. confirm 생략/false 면 아무것도 보내지 않고 dry-run 만 반환한다 — 새 id 면 "생성 예정", 같은 id 가 있으면 "이미 존재"(기존 SA JSON 을 교체하면 되돌릴 수 없음). 사용자 승인 후 같은 인자에 confirm: true 로 재호출.': 'Upload the Play Store service account JSON created by setup_playstore_connection to Jenkins as a Secret File credential. Reads ~/.mimi-seed/play-service-accounts/{package_name}.json, converts it to base64, and registers it. To upload a key just issued by iam_create_key, pass its path (inside ~/.mimi-seed/keys/) in service_account_json_path. You must call this tool after running setup_playstore_connection. With confirm omitted/false nothing is sent and only a dry-run is returned — "will create" for a new id, "already exists" for an existing one (replacing the existing SA JSON cannot be undone). Call again with the same arguments plus confirm: true after the user approves.',
|
|
10
10
|
'Jenkins Credential ID (생략 시 "<앱>-playstore-sa")': 'Jenkins Credential ID (when omitted, "<app>-playstore-sa")',
|
|
11
11
|
'선택 — iam_create_key 가 저장한 키 파일 절대경로 (~/.mimi-seed/keys/ 안만 허용). 생략하면 패키지별 등록 SA 사용': 'Optional — absolute path of a key file saved by iam_create_key (only inside ~/.mimi-seed/keys/ is allowed). When omitted, the per-package registered SA is used',
|
|
12
|
-
'
|
|
12
|
+
'true 일 때만 Jenkins 로 보낸다 (새 id 생성 또는 기존 SA JSON 교체). 생략/false 면 dry-run': 'Sends to Jenkins only when true (creates a new id or replaces the existing SA JSON). Omitted/false is a dry-run',
|
|
13
13
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** crosspost 도구 · 파라미터 설명의 영어 — 키는 한국어 원문 (lib/tool-text.ts). 원문을 고치면 키도 고친다. */
|
|
2
|
+
declare const _default: {
|
|
3
|
+
'\uD558\uB098\uC758 \uAC8C\uC2DC\uBB3C\uC744 \uC5EC\uB7EC \uC18C\uC15C \uD50C\uB7AB\uD3FC(facebook, instagram, threads, youtube, tiktok)\uC5D0 \uD55C \uBC88\uC5D0 \uAC8C\uC2DC\uD569\uB2C8\uB2E4. confirm \uC5C6\uC774 \uBD80\uB974\uBA74 dry-run \uACC4\uD68D\uB9CC \uB3CC\uB824\uC90D\uB2C8\uB2E4: \uD50C\uB7AB\uD3FC\uBCC4 \uB3D9\uC791\u00B7\uBCF8\uBB38\u00B7\uBBF8\uB514\uC5B4\uC640 \uAC8C\uC2DC\uB97C \uB9C9\uB294 \uBB38\uC81C. \uB124\uD2B8\uC6CC\uD06C \uD638\uCD9C\uC740 \uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uD55C \uB300\uC0C1\uC774\uB77C\uB3C4 \uBB38\uC81C\uAC00 \uC788\uC73C\uBA74 \uC5B4\uB514\uC5D0\uB3C4 \uAC8C\uC2DC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uC0AC\uC6A9\uC790\uC5D0\uAC8C \uACC4\uD68D\uC744 \uBCF4\uC5EC\uC8FC\uACE0 \uBA85\uC2DC \uC2B9\uC778\uC744 \uBC1B\uC740 \uB4A4 confirm: true \uB85C \uB2E4\uC2DC \uD638\uCD9C\uD558\uC138\uC694. \uBBF8\uB514\uC5B4 \uADDC\uCE59\uC740 \uD50C\uB7AB\uD3FC\uBCC4 \uB3C4\uAD6C\uC640 \uAC19\uC2B5\uB2C8\uB2E4: Facebook\u00B7Instagram \uC740 public HTTPS imageUrls(1~10\uC7A5)\uAC00 \uD544\uC694\uD558\uACE0, Threads \uB294 \uD14D\uC2A4\uD2B8\u00B7\uC774\uBBF8\uC9C0(1~20\uC7A5)\u00B7videoUrl \uC911 \uD558\uB098, YouTube \uB294 \uB85C\uCEEC videoFilePath \uC640 youtube.expectedChannelId, TikTok \uC740 tiktok_business_plan_video_post \uB85C \uB9CC\uB4E0 tiktok.planId \uB97C \uC501\uB2C8\uB2E4. \uACB0\uACFC\uB294 \uD50C\uB7AB\uD3FC\uBCC4\uB85C \uB3CC\uB824\uC90D\uB2C8\uB2E4. \uAC19\uC740 \uAC8C\uC2DC\uBB3C(\uD50C\uB7AB\uD3FC\u00B7\uACC4\uC815\u00B7\uB0B4\uC6A9\uC774 \uAC19\uC74C)\uC740 \uB450 \uBC88 \uAC8C\uC2DC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4: \uB2E4\uC2DC \uBD80\uB974\uBA74 \uC774\uBBF8 \uAC8C\uC2DC\uB41C \uACF3\uC740 \uAC74\uB108\uB6F0\uACE0, \uC2E4\uD328\uD55C \uACF3\uB9CC \uBCF4\uB0C5\uB2C8\uB2E4. \uAC19\uC740 \uB0B4\uC6A9\uC744 \uC77C\uBD80\uB7EC \uB2E4\uC2DC \uC62C\uB9AC\uB824\uBA74 repost: [{ platform, at }] \uC73C\uB85C \uACC4\uD68D\uC5D0 \uD45C\uC2DC\uB41C \uADF8 \uAC8C\uC2DC \uAE30\uB85D\uC758 at \uC744 \uC9C0\uC815\uD569\uB2C8\uB2E4. \uACB0\uACFC\uB97C \uC54C \uC218 \uC5C6\uB294 \uAC8C\uC2DC\uAC00 \uC788\uB294 \uACC4\uC815\uC740 \uB0B4\uC6A9\uC774 \uB2EC\uB77C\uB3C4 \uB9C9\uD788\uBA70, \uC0AC\uB78C\uC774 \uADF8 \uD50C\uB7AB\uD3FC\uC5D0\uC11C \uD655\uC778\uD55C \uB4A4 resendUnknown: [{ platform, at }] \uC73C\uB85C \uACC4\uD68D\uC5D0 \uD45C\uC2DC\uB41C at \uC744 \uC9C0\uC815\uD574\uC57C\uB9CC \uB2E4\uC2DC \uBCF4\uB0C5\uB2C8\uB2E4. \uD655\uC778\uD574 \uBCF4\uB2C8 \uC774\uBBF8 \uC62C\uB77C\uAC00 \uC788\uB2E4\uBA74 markPosted: [{ platform, at }] \uC73C\uB85C \uAC8C\uC2DC\uB428\uC73C\uB85C \uAE30\uB85D\uD569\uB2C8\uB2E4. \uC2B9\uC778\uC740 \uC9C0\uC815\uD55C \uAE30\uB85D \uD558\uB098\uC5D0\uB9CC \uC4F0\uC785\uB2C8\uB2E4.': string;
|
|
4
|
+
'\uC774 \uD50C\uB7AB\uD3FC\uC5D0 \uC4F8 \uC18C\uC15C \uD504\uB85C\uD544 ID (\uC0DD\uB7B5 \uC2DC \uD504\uB85C\uC81D\uD2B8 \uB9E4\uD551 \uB610\uB294 \uAE30\uBCF8 \uC124\uC815)': string;
|
|
5
|
+
'\uC774 \uD50C\uB7AB\uD3FC\uC5D0\uB9CC \uC4F8 \uBCF8\uBB38 (\uC0DD\uB7B5 \uC2DC \uACF5\uD1B5 text)': string;
|
|
6
|
+
'\uAC8C\uC2DC\uD560 \uD50C\uB7AB\uD3FC \uBAA9\uB85D (\uC774 \uC21C\uC11C\uB300\uB85C \uAC8C\uC2DC)': string;
|
|
7
|
+
'\uACF5\uD1B5 \uBCF8\uBB38. \uD50C\uB7AB\uD3FC\uBCC4 text \uB85C \uB36E\uC5B4\uC4F8 \uC218 \uC788\uC2B5\uB2C8\uB2E4 (Threads 500\uC790, Instagram 2,200\uC790).': string;
|
|
8
|
+
'\uC774\uBBF8\uC9C0 public HTTPS URL (Facebook\u00B7Instagram \uCD5C\uB300 10\uC7A5, Threads \uCD5C\uB300 20\uC7A5)': string;
|
|
9
|
+
'Threads \uC601\uC0C1 \uAC8C\uC2DC\uC6A9 public HTTPS URL': string;
|
|
10
|
+
'YouTube \uC5C5\uB85C\uB4DC\uC6A9 \uB85C\uCEEC \uC601\uC0C1 \uC808\uB300\uACBD\uB85C': string;
|
|
11
|
+
'Google \uB85C\uADF8\uC778 \uD504\uB85C\uD544 (mimi-seed auth social \uC740 "youtube" \uD504\uB85C\uD544\uC5D0 \uC5F0\uACB0\uD569\uB2C8\uB2E4)': string;
|
|
12
|
+
'\uC601\uC0C1 \uC81C\uBAA9 (\uC0DD\uB7B5 \uC2DC text \uC758 \uCCAB \uC904)': string;
|
|
13
|
+
'\uC601\uC0C1 \uC124\uBA85 (\uC0DD\uB7B5 \uC2DC text)': string;
|
|
14
|
+
'\uAE30\uBCF8 private. \uACC4\uD68D\uC5D0 \uD45C\uC2DC\uB418\uBA70 \uC2B9\uC778 \uB300\uC0C1\uC785\uB2C8\uB2E4.': string;
|
|
15
|
+
'tiktok_business_plan_video_post \uAC00 \uB9CC\uB4E0 \uACC4\uD68D ID (\uCEA1\uC158\u00B7\uC124\uC815\uC740 \uACC4\uD68D\uC758 \uAC12\uC744 \uC501\uB2C8\uB2E4)': string;
|
|
16
|
+
'\uC9C0\uC6D0 \uC911\uB2E8 \u2014 \uB118\uAE30\uBA74 \uAC70\uBD80\uD569\uB2C8\uB2E4. \uAC19\uC740 \uAC8C\uC2DC\uBB3C\uC740 \uC790\uB3D9\uC73C\uB85C \uD55C \uBC88\uB9CC \uAC8C\uC2DC\uB429\uB2C8\uB2E4.': string;
|
|
17
|
+
'\uC0AC\uC6A9\uC790\uC758 \uBA85\uC2DC \uC2B9\uC778 \uD6C4 true. false \uBA74 dry-run \uACC4\uD68D\uB9CC \uBC18\uD658\uD569\uB2C8\uB2E4.': string;
|
|
18
|
+
'\uC0AC\uC6A9\uC790\uAC00 \uADF8 \uD50C\uB7AB\uD3FC\uC5D0\uC11C \uAC8C\uC2DC\uB418\uC9C0 \uC54A\uC558\uC74C\uC744 \uD655\uC778\uD55C, \uACB0\uACFC\uB97C \uC54C \uC218 \uC5C6\uC5C8\uB358 \uAE30\uB85D. \uACC4\uD68D\uC5D0 \uD45C\uC2DC\uB41C \uD50C\uB7AB\uD3FC\uACFC at \uC744 \uADF8\uB300\uB85C \uB118\uAE41\uB2C8\uB2E4. \uADF8 \uAE30\uB85D\uB9CC \uB2E4\uC2DC \uBCF4\uB0B4\uBA70, \uC774\uD6C4 \uC0C8\uB85C \uC0DD\uAE34 \uACB0\uACFC \uBD88\uBA85\uC740 \uB2E4\uC2DC \uB9C9\uD799\uB2C8\uB2E4.': string;
|
|
19
|
+
'\uC0AC\uC6A9\uC790\uAC00 \uC77C\uBD80\uB7EC \uB2E4\uC2DC \uAC8C\uC2DC\uD558\uB824\uB294 \uC774\uBBF8 \uAC8C\uC2DC\uB41C \uAE30\uB85D. \uACC4\uD68D\uC5D0 \uD45C\uC2DC\uB41C \uD50C\uB7AB\uD3FC\uACFC at \uC744 \uADF8\uB300\uB85C \uB118\uAE41\uB2C8\uB2E4. \uD55C \uBC88 \uB2E4\uC2DC \uAC8C\uC2DC\uB418\uBA74 \uADF8 \uC2B9\uC778\uC740 \uB354 \uC774\uC0C1 \uB9DE\uC9C0 \uC54A\uC544 \uC7AC\uC2DC\uB3C4\uB85C \uBC18\uBCF5 \uAC8C\uC2DC\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.': string;
|
|
20
|
+
'\uACC4\uD68D\uC5D0 \uD45C\uC2DC\uB41C \uADF8 \uAE30\uB85D\uC758 at (\uC2B9\uC778 \uB300\uC0C1 \uAE30\uB85D\uC744 \uC815\uD655\uD788 \uC9C0\uBAA9)': string;
|
|
21
|
+
'\uACB0\uACFC\uB97C \uC54C \uC218 \uC5C6\uC5C8\uB358 \uAE30\uB85D \uC911, \uC0AC\uC6A9\uC790\uAC00 \uADF8 \uD50C\uB7AB\uD3FC\uC5D0\uC11C \uC2E4\uC81C\uB85C \uC62C\uB77C\uAC00 \uC788\uC74C\uC744 \uD655\uC778\uD55C \uAC83. \uACC4\uD68D\uC5D0 \uD45C\uC2DC\uB41C \uD50C\uB7AB\uD3FC\uACFC at \uC744 \uADF8\uB300\uB85C \uB118\uAE41\uB2C8\uB2E4. \uADF8 \uAE30\uB85D\uC744 \uAC8C\uC2DC\uB428\uC73C\uB85C \uB0A8\uAE30\uACE0 \uACC4\uC815 \uCC28\uB2E8\uC744 \uD489\uB2C8\uB2E4 (\uBCF4\uB0B4\uC9C0\uB294 \uC54A\uC74C).': string;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** crosspost 도구 · 파라미터 설명의 영어 — 키는 한국어 원문 (lib/tool-text.ts). 원문을 고치면 키도 고친다. */
|
|
2
|
+
export default {
|
|
3
|
+
'하나의 게시물을 여러 소셜 플랫폼(facebook, instagram, threads, youtube, tiktok)에 한 번에 게시합니다. confirm 없이 부르면 dry-run 계획만 돌려줍니다: 플랫폼별 동작·본문·미디어와 게시를 막는 문제. 네트워크 호출은 하지 않습니다. 한 대상이라도 문제가 있으면 어디에도 게시하지 않습니다. 사용자에게 계획을 보여주고 명시 승인을 받은 뒤 confirm: true 로 다시 호출하세요. 미디어 규칙은 플랫폼별 도구와 같습니다: Facebook·Instagram 은 public HTTPS imageUrls(1~10장)가 필요하고, Threads 는 텍스트·이미지(1~20장)·videoUrl 중 하나, YouTube 는 로컬 videoFilePath 와 youtube.expectedChannelId, TikTok 은 tiktok_business_plan_video_post 로 만든 tiktok.planId 를 씁니다. 결과는 플랫폼별로 돌려줍니다. 같은 게시물(플랫폼·계정·내용이 같음)은 두 번 게시하지 않습니다: 다시 부르면 이미 게시된 곳은 건너뛰고, 실패한 곳만 보냅니다. 같은 내용을 일부러 다시 올리려면 repost: [{ platform, at }] 으로 계획에 표시된 그 게시 기록의 at 을 지정합니다. 결과를 알 수 없는 게시가 있는 계정은 내용이 달라도 막히며, 사람이 그 플랫폼에서 확인한 뒤 resendUnknown: [{ platform, at }] 으로 계획에 표시된 at 을 지정해야만 다시 보냅니다. 확인해 보니 이미 올라가 있다면 markPosted: [{ platform, at }] 으로 게시됨으로 기록합니다. 승인은 지정한 기록 하나에만 쓰입니다.': 'Publishes one post to several social platforms (facebook, instagram, threads, youtube, tiktok) at once. Without confirm it returns only a dry-run plan: each platform\'s action, text, and media, plus any problem that would block it. It makes no network calls. If any target has a problem, nothing is posted anywhere. Show the user the plan, get their explicit approval, then call again with confirm: true. Media rules match the per-platform tools: Facebook and Instagram need public HTTPS imageUrls (1–10); Threads takes text, images (1–20), or a videoUrl; YouTube uses a local videoFilePath and youtube.expectedChannelId; TikTok uses a tiktok.planId made by tiktok_business_plan_video_post. Results come back per platform. The same post (same platform, account, and content) is never posted twice: calling again skips platforms that already posted and sends only the failed ones. To post the same content again on purpose, pass repost: [{ platform, at }] with the at the plan shows for that posted record. An account with a send whose outcome is unknown is blocked even for different content, and is sent to again only after a person checked it on that platform and resendUnknown: [{ platform, at }] names the at the plan shows. If the check shows it is already live, pass markPosted: [{ platform, at }] to record it as posted. An approval covers only the record it names.',
|
|
4
|
+
'이 플랫폼에 쓸 소셜 프로필 ID (생략 시 프로젝트 매핑 또는 기본 설정)': 'Social profile ID to use for this platform (when omitted, the project mapping or the default config)',
|
|
5
|
+
'이 플랫폼에만 쓸 본문 (생략 시 공통 text)': 'Text for this platform only (when omitted, the common text)',
|
|
6
|
+
'게시할 플랫폼 목록 (이 순서대로 게시)': 'Platforms to post to (posted in this order)',
|
|
7
|
+
'공통 본문. 플랫폼별 text 로 덮어쓸 수 있습니다 (Threads 500자, Instagram 2,200자).': 'Common text. Each platform\'s text can override it (Threads 500 characters, Instagram 2,200).',
|
|
8
|
+
'이미지 public HTTPS URL (Facebook·Instagram 최대 10장, Threads 최대 20장)': 'Public HTTPS image URLs (Facebook and Instagram up to 10, Threads up to 20)',
|
|
9
|
+
'Threads 영상 게시용 public HTTPS URL': 'Public HTTPS URL for a Threads video post',
|
|
10
|
+
'YouTube 업로드용 로컬 영상 절대경로': 'Absolute path of the local video to upload to YouTube',
|
|
11
|
+
'Google 로그인 프로필 (mimi-seed auth social 은 "youtube" 프로필에 연결합니다)': 'Google login profile (mimi-seed auth social connects the "youtube" profile)',
|
|
12
|
+
'영상 제목 (생략 시 text 의 첫 줄)': 'Video title (when omitted, the first line of text)',
|
|
13
|
+
'영상 설명 (생략 시 text)': 'Video description (when omitted, text)',
|
|
14
|
+
'기본 private. 계획에 표시되며 승인 대상입니다.': 'Default private. Shown in the plan and covered by the approval.',
|
|
15
|
+
'tiktok_business_plan_video_post 가 만든 계획 ID (캡션·설정은 계획의 값을 씁니다)': 'Plan ID made by tiktok_business_plan_video_post (the caption and settings come from the plan)',
|
|
16
|
+
'지원 중단 — 넘기면 거부합니다. 같은 게시물은 자동으로 한 번만 게시됩니다.': 'Removed — passing it is rejected. The same post is posted only once automatically.',
|
|
17
|
+
'사용자의 명시 승인 후 true. false 면 dry-run 계획만 반환합니다.': 'true after the user\'s explicit approval. When false, returns only the dry-run plan.',
|
|
18
|
+
'사용자가 그 플랫폼에서 게시되지 않았음을 확인한, 결과를 알 수 없었던 기록. 계획에 표시된 플랫폼과 at 을 그대로 넘깁니다. 그 기록만 다시 보내며, 이후 새로 생긴 결과 불명은 다시 막힙니다.': 'Unknown-outcome records the user checked are not posted on that platform. Pass the platform and at exactly as the plan showed them. Only that record is sent again; a newer unknown outcome is blocked again.',
|
|
19
|
+
'사용자가 일부러 다시 게시하려는 이미 게시된 기록. 계획에 표시된 플랫폼과 at 을 그대로 넘깁니다. 한 번 다시 게시되면 그 승인은 더 이상 맞지 않아 재시도로 반복 게시되지 않습니다.': 'Already-posted records the user wants to post again on purpose. Pass the platform and at exactly as the plan showed them. Once reposted, that approval no longer matches, so a retry cannot repost again.',
|
|
20
|
+
'계획에 표시된 그 기록의 at (승인 대상 기록을 정확히 지목)': 'The at the plan showed for that record (names exactly which record is approved)',
|
|
21
|
+
'결과를 알 수 없었던 기록 중, 사용자가 그 플랫폼에서 실제로 올라가 있음을 확인한 것. 계획에 표시된 플랫폼과 at 을 그대로 넘깁니다. 그 기록을 게시됨으로 남기고 계정 차단을 풉니다 (보내지는 않음).': 'Unknown-outcome records the user checked and found live on that platform. Pass the platform and at exactly as the plan showed them. The record is kept as posted and the account is unblocked (nothing is sent).',
|
|
22
|
+
};
|
|
@@ -18,6 +18,7 @@ import iam from './iam.js';
|
|
|
18
18
|
import instagram from './instagram.js';
|
|
19
19
|
import jenkins from './jenkins.js';
|
|
20
20
|
import playstore from './playstore.js';
|
|
21
|
+
import crosspost from './crosspost.js';
|
|
21
22
|
import threads from './threads.js';
|
|
22
23
|
import tiktok from './tiktok.js';
|
|
23
24
|
import video from './video.js';
|
|
@@ -49,6 +50,7 @@ export const TOOL_TEXT_EN_SOURCES = {
|
|
|
49
50
|
instagram,
|
|
50
51
|
jenkins,
|
|
51
52
|
playstore,
|
|
53
|
+
crosspost,
|
|
52
54
|
threads,
|
|
53
55
|
tiktok,
|
|
54
56
|
video,
|
|
@@ -5,19 +5,19 @@ declare const _default: {
|
|
|
5
5
|
'Jenkins \uAE30\uBCF8 URL (\uC608: https://jenkins.company.com)': string;
|
|
6
6
|
'Jenkins \uC0AC\uC6A9\uC790 ID': string;
|
|
7
7
|
'Jenkins\uC5D0 \uB4F1\uB85D\uB41C credential \uBAA9\uB85D\uC744 \uC870\uD68C\uD569\uB2C8\uB2E4 (id / displayName / type). \uC124\uC815\uC774 \uC5C6\uC73C\uBA74 jenkins_status\uB97C \uBA3C\uC800 \uD638\uCD9C\uD574 \uC5F0\uACB0 \uC815\uBCF4\uB97C \uD655\uC778\uD558\uC138\uC694.': string;
|
|
8
|
-
'Jenkins\uC5D0 Secret Text credential\uC744 \uC0DD\uC131\uD558\uAC70\uB098 \uC5C5\uB370\uC774\uD2B8\uD569\uB2C8\uB2E4. \uBE44\uBC00\uBC88\uD638, API \uD0A4, \uC571 \uC2DC\uD06C\uB9BF \uB4F1 \uBB38\uC790\uC5F4 \uAC12\uC5D0 \uC0AC\uC6A9\uD558\uC138\uC694.
|
|
8
|
+
'Jenkins\uC5D0 Secret Text credential\uC744 \uC0DD\uC131\uD558\uAC70\uB098 \uC5C5\uB370\uC774\uD2B8\uD569\uB2C8\uB2E4. \uBE44\uBC00\uBC88\uD638, API \uD0A4, \uC571 \uC2DC\uD06C\uB9BF \uB4F1 \uBB38\uC790\uC5F4 \uAC12\uC5D0 \uC0AC\uC6A9\uD558\uC138\uC694. confirm \uC0DD\uB7B5/false \uBA74 \uC544\uBB34\uAC83\uB3C4 \uBCF4\uB0B4\uC9C0 \uC54A\uACE0 dry-run \uB9CC \uBC18\uD658\uD55C\uB2E4 \u2014 \uC0C8 id \uBA74 "\uC0DD\uC131 \uC608\uC815", \uAC19\uC740 id \uAC00 \uC788\uC73C\uBA74 "\uC774\uBBF8 \uC874\uC7AC"(\uAD50\uCCB4\uD558\uBA74 \uB418\uB3CC\uB9B4 \uC218 \uC5C6\uC74C). \uC0AC\uC6A9\uC790 \uC2B9\uC778 \uD6C4 \uAC19\uC740 \uC778\uC790\uC5D0 confirm: true \uB85C \uC7AC\uD638\uCD9C. \uC124\uC815\uC774 \uC5C6\uC73C\uBA74 jenkins_status\uB97C \uBA3C\uC800 \uD638\uCD9C\uD558\uC138\uC694.': string;
|
|
9
9
|
'Credential ID (\uC608: my-app-android-key-password)': string;
|
|
10
10
|
'\uC800\uC7A5\uD560 \uBE44\uBC00\uAC12. secret_file \uACFC \uB458 \uC911 \uD558\uB098': string;
|
|
11
11
|
'\uAD8C\uC7A5 \u2014 android_generate_keystore \uAC00 \uB9CC\uB4E0 signing.json \uC808\uB300\uACBD\uB85C (~/.mimi-seed/keystores/ \uC548\uB9CC \uD5C8\uC6A9). \uBE44\uBC00\uAC12\uC774 \uB300\uD654\uC5D0 \uB0A8\uC9C0 \uC54A\uC74C': string;
|
|
12
12
|
'secret_file \uC5D0\uC11C \uAEBC\uB0BC \uD544\uB4DC (storePassword / keyPassword / keyAlias)': string;
|
|
13
13
|
'\uC124\uBA85 (\uC120\uD0DD)': string;
|
|
14
|
-
'\
|
|
15
|
-
'Jenkins\uC5D0 Android keystore \uD30C\uC77C\uC744 Secret File credential\uB85C \uC5C5\uB85C\uB4DC\uD569\uB2C8\uB2E4. keystore_base64\uC5D0 .jks/.p12 \uD30C\uC77C\uC744 base64\uB85C \uC778\uCF54\uB529\uD55C \uAC12\uC744 \uC804\uB2EC\uD558\uC138\uC694.
|
|
14
|
+
'true \uC77C \uB54C\uB9CC Jenkins \uB85C \uBCF4\uB0B8\uB2E4 (\uC0C8 id \uC0DD\uC131 \uB610\uB294 \uAE30\uC874 \uAC12 \uAD50\uCCB4). \uC0DD\uB7B5/false \uBA74 dry-run': string;
|
|
15
|
+
'Jenkins\uC5D0 Android keystore \uD30C\uC77C\uC744 Secret File credential\uB85C \uC5C5\uB85C\uB4DC\uD569\uB2C8\uB2E4. keystore_base64\uC5D0 .jks/.p12 \uD30C\uC77C\uC744 base64\uB85C \uC778\uCF54\uB529\uD55C \uAC12\uC744 \uC804\uB2EC\uD558\uC138\uC694. confirm \uC0DD\uB7B5/false \uBA74 \uC544\uBB34\uAC83\uB3C4 \uBCF4\uB0B4\uC9C0 \uC54A\uACE0 dry-run \uB9CC \uBC18\uD658\uD55C\uB2E4 \u2014 \uC0C8 id \uBA74 "\uC0DD\uC131 \uC608\uC815", \uAC19\uC740 id \uAC00 \uC788\uC73C\uBA74 "\uC774\uBBF8 \uC874\uC7AC"(\uAE30\uC874 keystore \uB97C \uAD50\uCCB4\uD558\uBA74 \uB418\uB3CC\uB9B4 \uC218 \uC5C6\uC74C). \uC0AC\uC6A9\uC790 \uC2B9\uC778 \uD6C4 \uAC19\uC740 \uC778\uC790\uC5D0 confirm: true \uB85C \uC7AC\uD638\uCD9C. \uC124\uC815\uC774 \uC5C6\uC73C\uBA74 jenkins_status\uB97C \uBA3C\uC800 \uD638\uCD9C\uD558\uC138\uC694.': string;
|
|
16
16
|
'Credential ID (\uC608: my-app-android-keystore)': string;
|
|
17
17
|
'keystore \uD30C\uC77C \uB0B4\uC6A9\uC744 base64\uB85C \uC778\uCF54\uB529\uD55C \uAC12. keystore_path \uC640 \uB458 \uC911 \uD558\uB098': string;
|
|
18
18
|
'\uAD8C\uC7A5 \u2014 android_generate_keystore \uAC00 \uB9CC\uB4E0 keystore \uC808\uB300\uACBD\uB85C (~/.mimi-seed/keystores/ \uC548\uB9CC \uD5C8\uC6A9)': string;
|
|
19
19
|
'\uD30C\uC77C\uBA85 (\uAE30\uBCF8: keystore.jks)': string;
|
|
20
|
-
'\
|
|
20
|
+
'true \uC77C \uB54C\uB9CC Jenkins \uB85C \uBCF4\uB0B8\uB2E4 (\uC0C8 id \uC0DD\uC131 \uB610\uB294 \uAE30\uC874 keystore \uAD50\uCCB4). \uC0DD\uB7B5/false \uBA74 dry-run': string;
|
|
21
21
|
'Jenkins credential\uC744 \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uBE44\uAC00\uC5ED \uC791\uC5C5\uC785\uB2C8\uB2E4. \uC124\uC815\uC774 \uC5C6\uC73C\uBA74 jenkins_status\uB97C \uBA3C\uC800 \uD638\uCD9C\uD558\uC138\uC694.': string;
|
|
22
22
|
'\uC0AD\uC81C\uD560 Credential ID': string;
|
|
23
23
|
'Jenkins \uC7A1 \uBAA9\uB85D\uC744 \uC870\uD68C\uD569\uB2C8\uB2E4 (\uC774\uB984 / URL / \uC0C1\uD0DC\uC0C9). folder\uB97C \uC8FC\uBA74 \uADF8 \uD3F4\uB354 \uC548\uB9CC \uC870\uD68C\uD569\uB2C8\uB2E4. \uC7AC\uADC0\uD558\uC9C0 \uC54A\uACE0 \uD55C \uB2E8\uACC4\uB9CC \uBD05\uB2C8\uB2E4. \uC124\uC815\uC774 \uC5C6\uC73C\uBA74 jenkins_status\uB97C \uBA3C\uC800 \uD638\uCD9C\uD558\uC138\uC694.': string;
|
|
@@ -5,19 +5,19 @@ export default {
|
|
|
5
5
|
'Jenkins 기본 URL (예: https://jenkins.company.com)': 'Jenkins base URL (e.g. https://jenkins.company.com)',
|
|
6
6
|
'Jenkins 사용자 ID': 'Jenkins user ID',
|
|
7
7
|
'Jenkins에 등록된 credential 목록을 조회합니다 (id / displayName / type). 설정이 없으면 jenkins_status를 먼저 호출해 연결 정보를 확인하세요.': 'Lists the credentials registered in Jenkins (id / displayName / type). If there is no config, call jenkins_status first to check the connection info.',
|
|
8
|
-
'Jenkins에 Secret Text credential을 생성하거나 업데이트합니다. 비밀번호, API 키, 앱 시크릿 등 문자열 값에 사용하세요.
|
|
8
|
+
'Jenkins에 Secret Text credential을 생성하거나 업데이트합니다. 비밀번호, API 키, 앱 시크릿 등 문자열 값에 사용하세요. confirm 생략/false 면 아무것도 보내지 않고 dry-run 만 반환한다 — 새 id 면 "생성 예정", 같은 id 가 있으면 "이미 존재"(교체하면 되돌릴 수 없음). 사용자 승인 후 같은 인자에 confirm: true 로 재호출. 설정이 없으면 jenkins_status를 먼저 호출하세요.': 'Creates or updates a Secret Text credential in Jenkins. Use it for string values such as passwords, API keys, and app secrets. With confirm omitted/false nothing is sent and only a dry-run is returned — "will create" for a new id, "already exists" for an existing one (replacing it cannot be undone). Call again with the same arguments plus confirm: true after the user approves. If there is no config, call jenkins_status first.',
|
|
9
9
|
'Credential ID (예: my-app-android-key-password)': 'Credential ID (e.g. my-app-android-key-password)',
|
|
10
10
|
'저장할 비밀값. secret_file 과 둘 중 하나': 'Secret value to store. Exactly one of this or secret_file',
|
|
11
11
|
'권장 — android_generate_keystore 가 만든 signing.json 절대경로 (~/.mimi-seed/keystores/ 안만 허용). 비밀값이 대화에 남지 않음': 'Recommended — absolute path to the signing.json created by android_generate_keystore (only paths inside ~/.mimi-seed/keystores/ are allowed). The secret value never appears in the conversation',
|
|
12
12
|
'secret_file 에서 꺼낼 필드 (storePassword / keyPassword / keyAlias)': 'Field to read from secret_file (storePassword / keyPassword / keyAlias)',
|
|
13
13
|
'설명 (선택)': 'Description (optional)',
|
|
14
|
-
'
|
|
15
|
-
'Jenkins에 Android keystore 파일을 Secret File credential로 업로드합니다. keystore_base64에 .jks/.p12 파일을 base64로 인코딩한 값을 전달하세요.
|
|
14
|
+
'true 일 때만 Jenkins 로 보낸다 (새 id 생성 또는 기존 값 교체). 생략/false 면 dry-run': 'Sends to Jenkins only when true (creates a new id or replaces the existing value). Omitted/false is a dry-run',
|
|
15
|
+
'Jenkins에 Android keystore 파일을 Secret File credential로 업로드합니다. keystore_base64에 .jks/.p12 파일을 base64로 인코딩한 값을 전달하세요. confirm 생략/false 면 아무것도 보내지 않고 dry-run 만 반환한다 — 새 id 면 "생성 예정", 같은 id 가 있으면 "이미 존재"(기존 keystore 를 교체하면 되돌릴 수 없음). 사용자 승인 후 같은 인자에 confirm: true 로 재호출. 설정이 없으면 jenkins_status를 먼저 호출하세요.': 'Uploads an Android keystore file to Jenkins as a Secret File credential. Pass the .jks/.p12 file base64-encoded in keystore_base64. With confirm omitted/false nothing is sent and only a dry-run is returned — "will create" for a new id, "already exists" for an existing one (replacing the existing keystore cannot be undone). Call again with the same arguments plus confirm: true after the user approves. If there is no config, call jenkins_status first.',
|
|
16
16
|
'Credential ID (예: my-app-android-keystore)': 'Credential ID (e.g. my-app-android-keystore)',
|
|
17
17
|
'keystore 파일 내용을 base64로 인코딩한 값. keystore_path 와 둘 중 하나': 'The keystore file contents, base64-encoded. Exactly one of this or keystore_path',
|
|
18
18
|
'권장 — android_generate_keystore 가 만든 keystore 절대경로 (~/.mimi-seed/keystores/ 안만 허용)': 'Recommended — absolute path to the keystore created by android_generate_keystore (only paths inside ~/.mimi-seed/keystores/ are allowed)',
|
|
19
19
|
'파일명 (기본: keystore.jks)': 'File name (default: keystore.jks)',
|
|
20
|
-
'
|
|
20
|
+
'true 일 때만 Jenkins 로 보낸다 (새 id 생성 또는 기존 keystore 교체). 생략/false 면 dry-run': 'Sends to Jenkins only when true (creates a new id or replaces the existing keystore). Omitted/false is a dry-run',
|
|
21
21
|
'Jenkins credential을 삭제합니다. 비가역 작업입니다. 설정이 없으면 jenkins_status를 먼저 호출하세요.': 'Deletes a Jenkins credential. This is irreversible. If there is no config, call jenkins_status first.',
|
|
22
22
|
'삭제할 Credential ID': 'Credential ID to delete',
|
|
23
23
|
'Jenkins 잡 목록을 조회합니다 (이름 / URL / 상태색). folder를 주면 그 폴더 안만 조회합니다. 재귀하지 않고 한 단계만 봅니다. 설정이 없으면 jenkins_status를 먼저 호출하세요.': 'Lists Jenkins jobs (name / URL / status color). When folder is given, lists only inside that folder. Does not recurse; looks one level deep only. If there is no config, call jenkins_status first.',
|
package/dist/instagram/api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { InstagramConfig } from './config.js';
|
|
2
|
+
import { type PublishHooks } from '../lib/meta-auth.js';
|
|
2
3
|
export declare function apiBaseFor(token: string): string;
|
|
3
4
|
export interface InstagramAccount {
|
|
4
5
|
id: string;
|
|
@@ -15,5 +16,5 @@ export interface PublishResult {
|
|
|
15
16
|
id: string;
|
|
16
17
|
permalink?: string;
|
|
17
18
|
}
|
|
18
|
-
export declare function postImage(cfg: InstagramConfig, imageUrl: string, caption: string): Promise<PublishResult>;
|
|
19
|
-
export declare function postCarousel(cfg: InstagramConfig, imageUrls: string[], caption: string): Promise<PublishResult>;
|
|
19
|
+
export declare function postImage(cfg: InstagramConfig, imageUrl: string, caption: string, hooks?: PublishHooks): Promise<PublishResult>;
|
|
20
|
+
export declare function postCarousel(cfg: InstagramConfig, imageUrls: string[], caption: string, hooks?: PublishHooks): Promise<PublishResult>;
|
package/dist/instagram/api.js
CHANGED
|
@@ -108,17 +108,19 @@ async function fetchPermalink(cfg, mediaId) {
|
|
|
108
108
|
return undefined;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
export async function postImage(cfg, imageUrl, caption) {
|
|
111
|
+
export async function postImage(cfg, imageUrl, caption, hooks = {}) {
|
|
112
112
|
// Step 1: image container 생성
|
|
113
113
|
const container = await igFetch(cfg.accessToken, `/${encodePathSegment(cfg.userId)}/media`, { image_url: imageUrl, caption, access_token: cfg.accessToken }, 'POST');
|
|
114
114
|
// Step 2: publish
|
|
115
|
+
// Containers are invisible until media_publish; this request is what publishes.
|
|
116
|
+
hooks.onPublishStart?.();
|
|
115
117
|
const published = await igFetch(cfg.accessToken, `/${encodePathSegment(cfg.userId)}/media_publish`, { creation_id: container.id, access_token: cfg.accessToken }, 'POST');
|
|
116
118
|
return {
|
|
117
119
|
id: published.id,
|
|
118
120
|
permalink: await fetchPermalink(cfg, published.id),
|
|
119
121
|
};
|
|
120
122
|
}
|
|
121
|
-
export async function postCarousel(cfg, imageUrls, caption) {
|
|
123
|
+
export async function postCarousel(cfg, imageUrls, caption, hooks = {}) {
|
|
122
124
|
if (imageUrls.length < 2 || imageUrls.length > 10) {
|
|
123
125
|
throw new Error(M().carouselCount(imageUrls.length));
|
|
124
126
|
}
|
|
@@ -139,6 +141,8 @@ export async function postCarousel(cfg, imageUrls, caption) {
|
|
|
139
141
|
}, 'POST');
|
|
140
142
|
await waitForContainer(cfg, carousel.id);
|
|
141
143
|
// Step 3: publish
|
|
144
|
+
// Containers are invisible until media_publish; this request is what publishes.
|
|
145
|
+
hooks.onPublishStart?.();
|
|
142
146
|
const published = await igFetch(cfg.accessToken, `/${encodePathSegment(cfg.userId)}/media_publish`, { creation_id: carousel.id, access_token: cfg.accessToken }, 'POST');
|
|
143
147
|
return {
|
|
144
148
|
id: published.id,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { socialBrokerBase } from '../social/broker-base.js';
|
|
2
2
|
import { createServer } from 'node:http';
|
|
3
3
|
import { randomBytes, createHash, timingSafeEqual } from 'node:crypto';
|
|
4
4
|
import { fetchWithTimeout } from '../lib/http.js';
|
|
@@ -17,13 +17,10 @@ export async function connectInstagramInBrowser(options = {}) {
|
|
|
17
17
|
// Freeze the selected profile before any asynchronous work / directory changes.
|
|
18
18
|
const target = resolveSocialConfigTarget('instagram', options);
|
|
19
19
|
const saveOptions = { ...options, profile: target.profile ?? undefined, startDir: options.startDir ?? process.cwd() };
|
|
20
|
-
const url =
|
|
20
|
+
const url = socialBrokerBase(options.webBase ?? process.env.MIMI_SEED_WEB_BASE);
|
|
21
21
|
if (!url)
|
|
22
22
|
throw new InstagramLoginError('configuration');
|
|
23
23
|
const base = new URL(url);
|
|
24
|
-
if (base.protocol !== 'https:' || base.username || base.password || base.search || base.hash || base.pathname !== '/') {
|
|
25
|
-
throw new InstagramLoginError('configuration');
|
|
26
|
-
}
|
|
27
24
|
const state = randomBytes(32).toString('hex');
|
|
28
25
|
const verifier = randomBytes(32).toString('base64url');
|
|
29
26
|
const codeChallenge = createHash('sha256').update(verifier).digest('base64url');
|
|
@@ -35,13 +35,17 @@ export declare function inspectCredential(cfg: JenkinsConfig, id: string): Promi
|
|
|
35
35
|
} | null>;
|
|
36
36
|
/**
|
|
37
37
|
* allowReplace=false 면 같은 id 가 이미 있을 때 **아무것도 쓰지 않고** 'exists' 를 돌려준다.
|
|
38
|
-
* 같은 종류의 기존 값(예: 서명 keystore)을 조용히 갈아끼우면 되돌릴 수
|
|
39
|
-
*
|
|
38
|
+
* 같은 종류의 기존 값(예: 서명 keystore)을 조용히 갈아끼우면 되돌릴 수 없으므로 교체에는 확인이 필요하다.
|
|
39
|
+
*
|
|
40
|
+
* dryRun=true 면 존재·종류만 확인하고 **아무것도 보내지 않는다** — 새 id 면 'new', 있으면 'exists'.
|
|
41
|
+
* MCP 도구는 confirm 전에 이 모드로 부른다: 새 id 도 비밀을 외부(Jenkins)로 내보내는 작업이라, 확인 없이
|
|
42
|
+
* 바로 올리던 시절엔 confirm 플래그가 없는 그 경로를 사람 승인 게이트가 잡지 못했다.
|
|
40
43
|
*/
|
|
41
44
|
export interface UpsertOptions {
|
|
42
45
|
allowReplace?: boolean;
|
|
46
|
+
dryRun?: boolean;
|
|
43
47
|
}
|
|
44
|
-
export type UpsertResult = 'created' | 'updated' | 'exists';
|
|
48
|
+
export type UpsertResult = 'created' | 'updated' | 'exists' | 'new';
|
|
45
49
|
export declare function listCredentials(cfg: JenkinsConfig): Promise<JenkinsCredentialSummary[]>;
|
|
46
50
|
export declare function upsertSecretText(cfg: JenkinsConfig, id: string, secret: string, description?: string, options?: UpsertOptions): Promise<UpsertResult>;
|
|
47
51
|
/**
|
|
@@ -183,6 +183,8 @@ export async function upsertSecretText(cfg, id, secret, description = '', option
|
|
|
183
183
|
if (existing)
|
|
184
184
|
assertSameKind(id, existing.info, existing.kind, KIND_STRING);
|
|
185
185
|
const exists = existing !== null;
|
|
186
|
+
if (options.dryRun)
|
|
187
|
+
return exists ? 'exists' : 'new';
|
|
186
188
|
if (exists && options.allowReplace === false)
|
|
187
189
|
return 'exists';
|
|
188
190
|
const payload = {
|
|
@@ -222,6 +224,8 @@ export async function upsertSecretFile(cfg, id, fileBase64, fileName, descriptio
|
|
|
222
224
|
if (existing)
|
|
223
225
|
assertSameKind(id, existing.info, existing.kind, KIND_FILE);
|
|
224
226
|
const exists = existing !== null;
|
|
227
|
+
if (options.dryRun)
|
|
228
|
+
return exists ? 'exists' : 'new';
|
|
225
229
|
if (exists && options.allowReplace === false)
|
|
226
230
|
return 'exists';
|
|
227
231
|
const payload = {
|
|
@@ -13,6 +13,8 @@ export declare function existingCredentialPreview(id: string, inspected: {
|
|
|
13
13
|
info: ExistingCredential;
|
|
14
14
|
kind: CredentialKind | null;
|
|
15
15
|
} | null, requested: CredentialKind, notes?: string[]): string;
|
|
16
|
+
/** 새 id dry-run — 무엇을 어디로 보낼지 (비밀값은 싣지 않는다). */
|
|
17
|
+
export declare function newCredentialPreview(id: string, jenkinsUrl: string, requested: CredentialKind, notes?: string[]): string;
|
|
16
18
|
/** 기본 id 접두사(패키지 마지막 세그먼트 slug)가 여러 앱에서 흔히 겹치는 이름인가. */
|
|
17
19
|
export declare function isGenericCredentialPrefix(prefix: string): boolean;
|
|
18
20
|
/** 기본 id 모양인데 접두사가 흔한 이름이면 경고 한 줄, 아니면 null. */
|
package/dist/jenkins/messages.js
CHANGED
|
@@ -4,6 +4,8 @@ import { catalog } from '#core/lang.js';
|
|
|
4
4
|
import { kindLabel } from './credentials.js';
|
|
5
5
|
const M = catalog({
|
|
6
6
|
exists: (id) => `🛑 dry-run — Jenkins credential \`${id}\` 가 이미 존재해 아직 바꾸지 않았다.`,
|
|
7
|
+
willCreate: (id, kind) => `🛑 dry-run — Jenkins credential \`${id}\` (${kind}) 는 아직 없다. 아무것도 보내지 않았다.`,
|
|
8
|
+
createNext: '비밀값을 Jenkins 로 보내는 작업이다. 대상 Jenkins·id 가 맞는지 사용자에게 확인받은 뒤 같은 인자에 confirm: true 를 추가해 다시 호출하세요.',
|
|
7
9
|
existingHeader: '기존 credential:',
|
|
8
10
|
kind: '종류: ',
|
|
9
11
|
name: '이름: ',
|
|
@@ -42,6 +44,8 @@ const M = catalog({
|
|
|
42
44
|
],
|
|
43
45
|
}, {
|
|
44
46
|
exists: (id) => `🛑 dry-run — Jenkins credential \`${id}\` already exists, so nothing has changed yet.`,
|
|
47
|
+
willCreate: (id, kind) => `🛑 dry-run — Jenkins credential \`${id}\` (${kind}) does not exist yet. Nothing was sent.`,
|
|
48
|
+
createNext: 'This sends a secret to Jenkins. Confirm the target Jenkins and id with the user, then call again with the same arguments plus confirm: true.',
|
|
45
49
|
existingHeader: 'Existing credential:',
|
|
46
50
|
kind: 'kind: ',
|
|
47
51
|
name: 'name: ',
|
|
@@ -115,6 +119,17 @@ export function existingCredentialPreview(id, inspected, requested, notes = [])
|
|
|
115
119
|
m.confirmNext,
|
|
116
120
|
].join('\n');
|
|
117
121
|
}
|
|
122
|
+
/** 새 id dry-run — 무엇을 어디로 보낼지 (비밀값은 싣지 않는다). */
|
|
123
|
+
export function newCredentialPreview(id, jenkinsUrl, requested, notes = []) {
|
|
124
|
+
const m = M();
|
|
125
|
+
return [
|
|
126
|
+
m.willCreate(id, kindLabel(requested)),
|
|
127
|
+
` Jenkins: ${jenkinsUrl}`,
|
|
128
|
+
...(notes.length ? ['', ...notes] : []),
|
|
129
|
+
'',
|
|
130
|
+
m.createNext,
|
|
131
|
+
].join('\n');
|
|
132
|
+
}
|
|
118
133
|
/**
|
|
119
134
|
* android_signing_setup / android_generate_keystore / jenkins_upload_playstore_sa 가 만드는 기본 id 는
|
|
120
135
|
* `<패키지 마지막 세그먼트>-<접미사>` 다. 기존 사용자의 id 가 바뀌므로 파생 규칙은 그대로 두고,
|
|
@@ -19,7 +19,7 @@ export declare const APPROVAL_ENV = "MIMI_SEED_APPROVAL";
|
|
|
19
19
|
/** 사용자가 답할 시간. SDK 기본 60초는 미리보기를 읽고 판단하기엔 짧다. */
|
|
20
20
|
export declare const APPROVAL_TIMEOUT_MS: number;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* 사용자가 거절·취소한 **같은 호출**(도구 + 인자)은 이 시간 동안 대화상자 없이 거부한다 (시간 초과·중단·오류는 거절이 아니라 제외). 인젝션된 에이전트가
|
|
23
23
|
* 같은 요청을 반복해 사용자가 지쳐 승인하게 만드는 것(approval fatigue)을 막는다. 인자를 바꾼 호출은 다시 묻는다.
|
|
24
24
|
*/
|
|
25
25
|
export declare const DECLINE_COOLDOWN_MS: number;
|
|
@@ -4,7 +4,7 @@ export const APPROVAL_ENV = 'MIMI_SEED_APPROVAL';
|
|
|
4
4
|
/** 사용자가 답할 시간. SDK 기본 60초는 미리보기를 읽고 판단하기엔 짧다. */
|
|
5
5
|
export const APPROVAL_TIMEOUT_MS = 10 * 60 * 1000;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* 사용자가 거절·취소한 **같은 호출**(도구 + 인자)은 이 시간 동안 대화상자 없이 거부한다 (시간 초과·중단·오류는 거절이 아니라 제외). 인젝션된 에이전트가
|
|
8
8
|
* 같은 요청을 반복해 사용자가 지쳐 승인하게 만드는 것(approval fatigue)을 막는다. 인자를 바꾼 호출은 다시 묻는다.
|
|
9
9
|
*/
|
|
10
10
|
export const DECLINE_COOLDOWN_MS = 5 * 60 * 1000;
|
|
@@ -132,8 +132,9 @@ export async function requestHumanApproval(server, call, options = {}) {
|
|
|
132
132
|
return refuse(m.declined(call.name));
|
|
133
133
|
}
|
|
134
134
|
catch (e) {
|
|
135
|
-
// 지원을 선언한 클라이언트에서의 실패(
|
|
136
|
-
|
|
135
|
+
// 지원을 선언한 클라이언트에서의 실패(타임아웃·중단·응답 오류)는 모드와 무관하게 거부한다 — 실패를 승인으로 치지 않는다.
|
|
136
|
+
// 다만 쿨다운은 걸지 않는다: 사용자가 거절한 게 아니다. 클라이언트의 tools/call 타임아웃(SDK 기본 60초)이나
|
|
137
|
+
// 사용자가 턴을 중단(Esc)한 경우를 거절로 기록하면, "응, 실행해" 라고 한 뒤의 같은 호출이 5분간 막혔다.
|
|
137
138
|
return refuse(m.failed(call.name, e instanceof Error ? e.message : String(e)));
|
|
138
139
|
}
|
|
139
140
|
finally {
|
package/dist/lib/meta-auth.d.ts
CHANGED
|
@@ -10,3 +10,12 @@ export declare function metaExpiryMessage(expiresAt: string | undefined, fix: st
|
|
|
10
10
|
export declare function redactMetaSecrets(message: string): string;
|
|
11
11
|
/** Translates a Meta OAuth expiry/revocation into a command the user can run to recover right away. */
|
|
12
12
|
export declare function metaApiError(platform: MetaPlatform, status: number, message: string, code?: number): Error;
|
|
13
|
+
/** HTTP status of an error made by metaApiError, if any. */
|
|
14
|
+
export declare function metaErrorStatus(error: unknown): number | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Lets a caller learn when the request that makes a post visible is about to be sent. Anything that fails before it
|
|
17
|
+
* published nothing; after it, only a definite rejection proves nothing was published.
|
|
18
|
+
*/
|
|
19
|
+
export interface PublishHooks {
|
|
20
|
+
onPublishStart?: () => void;
|
|
21
|
+
}
|
package/dist/lib/meta-auth.js
CHANGED
|
@@ -68,11 +68,20 @@ export function metaApiError(platform, status, message, code) {
|
|
|
68
68
|
status === 401 ||
|
|
69
69
|
/(?:session|access token|token).*(?:expired|invalid|revoked)|error validating access token/i.test(safeMessage);
|
|
70
70
|
if (needsReconnect) {
|
|
71
|
-
return new Error([
|
|
71
|
+
return withStatus(new Error([
|
|
72
72
|
M().revoked(LABEL[platform]),
|
|
73
73
|
M().recovery(FIX[platform]),
|
|
74
74
|
M().metaResponse(safeMessage),
|
|
75
|
-
].join('\n'));
|
|
75
|
+
].join('\n')), status);
|
|
76
76
|
}
|
|
77
|
-
return new Error(`${LABEL[platform]} API ${status}: ${safeMessage}`);
|
|
77
|
+
return withStatus(new Error(`${LABEL[platform]} API ${status}: ${safeMessage}`), status);
|
|
78
|
+
}
|
|
79
|
+
/** The HTTP status rides on the error, so callers can tell a rejection (4xx) from a server failure (5xx). */
|
|
80
|
+
function withStatus(error, status) {
|
|
81
|
+
return Object.assign(error, { status });
|
|
82
|
+
}
|
|
83
|
+
/** HTTP status of an error made by metaApiError, if any. */
|
|
84
|
+
export function metaErrorStatus(error) {
|
|
85
|
+
const status = error?.status;
|
|
86
|
+
return typeof status === 'number' ? status : undefined;
|
|
78
87
|
}
|
package/dist/lib/tool-menu.js
CHANGED
|
@@ -2,7 +2,7 @@ export const TOOL_MENU_URI = 'mimi-seed://tools/menu';
|
|
|
2
2
|
export const TOOL_SELECTION_URI = `${TOOL_MENU_URI}/{areas*}`;
|
|
3
3
|
const menuOrder = [
|
|
4
4
|
'ga4', 'bigquery', 'playstore', 'appstore', 'video', 'youtube', 'firebase', 'googleads',
|
|
5
|
-
'admob', 'drive', 'gsc', 'naver', 'instagram', 'threads', 'facebook', 'tiktok',
|
|
5
|
+
'admob', 'drive', 'gsc', 'naver', 'instagram', 'threads', 'facebook', 'tiktok', 'crosspost',
|
|
6
6
|
'ci', 'jenkins', 'checks', 'android', 'iam', 'billing', 'ai', 'auth',
|
|
7
7
|
];
|
|
8
8
|
const labels = {
|
|
@@ -12,6 +12,7 @@ const labels = {
|
|
|
12
12
|
video: { ko: 'YouTube · 영상 제작', en: 'YouTube · Video production' },
|
|
13
13
|
youtube: { ko: 'YouTube · 업로드·채널 운영', en: 'YouTube · Upload and channel management' },
|
|
14
14
|
naver: { ko: '네이버 서치어드바이저', en: 'Naver Search Advisor' },
|
|
15
|
+
crosspost: { ko: '소셜 통합 게시', en: 'Cross-post to several social platforms' },
|
|
15
16
|
checks: { ko: '출시 상태·제출 전 점검', en: 'Release status and submission checks' },
|
|
16
17
|
android: { ko: 'Android 서명', en: 'Android signing' },
|
|
17
18
|
ai: { ko: 'AI 초안 · 릴리스 노트 / 리뷰 답변', en: 'AI drafts · Release notes and review replies' },
|