mimi-seed 0.29.1 → 0.30.0
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.
|
@@ -145,6 +145,7 @@ var ko = {
|
|
|
145
145
|
stillMissing: " \uC544\uC9C1 \uD544\uC218 \uD56D\uBAA9\uC774 \uB0A8\uC544 \uC788\uC5B4:",
|
|
146
146
|
requiredDone: " \u2705 \uD544\uC218 \uC5F0\uACB0 \uC644\uB8CC.",
|
|
147
147
|
nextSteps: " \uC810\uAC80: mimi-seed doctor \xB7 \uBC30\uD3EC: mimi-seed deploy",
|
|
148
|
+
socialServer: " \uAC8C\uC2DC \uB3C4\uAD6C\uB294 \uBCC4\uB3C4 MCP \uC11C\uBC84\uB2E4 \u2014 \uC5D0\uC774\uC804\uD2B8\uC5D0 \uD55C \uBC88 \uB4F1\uB85D: claude mcp add mimi-seed-social -s user -- npx -y @yoonion/mimi-seed-mcp@latest mimi-seed-social-mcp",
|
|
148
149
|
tryPrompt: ' \uCCAB \uD504\uB86C\uD504\uD2B8 \u2014 Claude Code / Codex \uC0C8 \uC138\uC158\uC5D0\uC11C: "\uB0B4 \uC571 \uCD9C\uC2DC \uC900\uBE44\uB410\uC5B4?"'
|
|
149
150
|
},
|
|
150
151
|
doctor: {
|
|
@@ -260,6 +261,7 @@ MIMI_SEED_LANG takes precedence when set.`,
|
|
|
260
261
|
stillMissing: " Still missing, and required:",
|
|
261
262
|
requiredDone: " \u2705 All required credentials connected.",
|
|
262
263
|
nextSteps: " Check: mimi-seed doctor \xB7 Ship: mimi-seed deploy",
|
|
264
|
+
socialServer: " The posting tools are a separate MCP server \u2014 register it once with your agent: claude mcp add mimi-seed-social -s user -- npx -y @yoonion/mimi-seed-mcp@latest mimi-seed-social-mcp",
|
|
263
265
|
tryPrompt: ' First prompt \u2014 in a new Claude Code / Codex session: "Is my app ready to ship?"'
|
|
264
266
|
},
|
|
265
267
|
doctor: {
|
|
@@ -807,6 +809,13 @@ var SOCIAL_PROFILE_MESSAGES = {
|
|
|
807
809
|
notAnObject: `${MANIFEST_FILENAME} socialProfiles must be an object`,
|
|
808
810
|
invalidId: (platform) => `${MANIFEST_FILENAME} socialProfiles.${platform} must be a safe 1-64 character profile id`
|
|
809
811
|
};
|
|
812
|
+
var SOCIAL_SERVER_CREDENTIALS = ["facebook", "instagram", "threads", "tiktok"];
|
|
813
|
+
function isSocialServerCredential(id) {
|
|
814
|
+
return SOCIAL_SERVER_CREDENTIALS.includes(id);
|
|
815
|
+
}
|
|
816
|
+
function hasSocialServerCredential(detected) {
|
|
817
|
+
return SOCIAL_SERVER_CREDENTIALS.some((id) => detected.get(id)?.present);
|
|
818
|
+
}
|
|
810
819
|
function credLabel(spec, lang = resolveLang()) {
|
|
811
820
|
return spec.label[lang];
|
|
812
821
|
}
|
|
@@ -1583,7 +1592,7 @@ import path7 from "path";
|
|
|
1583
1592
|
import { fileURLToPath } from "url";
|
|
1584
1593
|
|
|
1585
1594
|
// package.json
|
|
1586
|
-
var version = "0.
|
|
1595
|
+
var version = "0.30.0";
|
|
1587
1596
|
|
|
1588
1597
|
// src/lib/windows-path.ts
|
|
1589
1598
|
import path6 from "path";
|
|
@@ -3799,12 +3808,14 @@ async function cmdSetup(argv) {
|
|
|
3799
3808
|
log2(kleur2.cyan(t().setup.tryPrompt));
|
|
3800
3809
|
}
|
|
3801
3810
|
log2(kleur2.dim(" " + t().common.checkWith));
|
|
3811
|
+
if (opts.only?.some(isSocialServerCredential) && hasSocialServerCredential(detected)) log2(kleur2.dim(t().setup.socialServer));
|
|
3802
3812
|
if (opts.failOnMissing && missingRequired(detected, platforms).length > 0) process.exit(1);
|
|
3803
3813
|
return;
|
|
3804
3814
|
}
|
|
3805
3815
|
log2(kleur2.dim(t().setup.planCount(plan.length)));
|
|
3806
3816
|
log2();
|
|
3807
3817
|
let aborted = false;
|
|
3818
|
+
let touchedSocial = false;
|
|
3808
3819
|
for (const spec of plan) {
|
|
3809
3820
|
if (aborted) break;
|
|
3810
3821
|
const req = spec.requirement === "optional" ? kleur2.dim(`(${t().common.optional})`) : spec.requirement === "platform" ? kleur2.dim(t().setup.neededFor(spec.platform)) : kleur2.red(`(${t().common.required})`);
|
|
@@ -3830,6 +3841,7 @@ async function cmdSetup(argv) {
|
|
|
3830
3841
|
}
|
|
3831
3842
|
if (answer === "c") {
|
|
3832
3843
|
await connectOne(spec);
|
|
3844
|
+
if (isSocialServerCredential(spec.id)) touchedSocial = true;
|
|
3833
3845
|
log2();
|
|
3834
3846
|
break;
|
|
3835
3847
|
}
|
|
@@ -3850,6 +3862,7 @@ async function cmdSetup(argv) {
|
|
|
3850
3862
|
for (const spec of stillMissing) log2(kleur2.yellow(` \u2022 ${credLabel(spec)} \u2192 ${spec.fix}`));
|
|
3851
3863
|
}
|
|
3852
3864
|
log2(kleur2.dim(t().setup.nextSteps));
|
|
3865
|
+
if (touchedSocial && hasSocialServerCredential(detected)) log2(kleur2.dim(t().setup.socialServer));
|
|
3853
3866
|
log2();
|
|
3854
3867
|
if (opts.failOnMissing && stillMissing.length > 0) process.exit(1);
|
|
3855
3868
|
}
|
|
@@ -3884,6 +3897,7 @@ export {
|
|
|
3884
3897
|
linkProject,
|
|
3885
3898
|
lookupProjectManifest,
|
|
3886
3899
|
manifestServiceEntries,
|
|
3900
|
+
hasSocialServerCredential,
|
|
3887
3901
|
credLabel,
|
|
3888
3902
|
credNote,
|
|
3889
3903
|
CREDENTIALS,
|
package/dist/index.js
CHANGED
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
forgetFailedDataKeyLookup,
|
|
26
26
|
getEffectiveConfig,
|
|
27
27
|
hasAnyProjectSignal,
|
|
28
|
+
hasSocialServerCredential,
|
|
28
29
|
isCredentialStoreMode,
|
|
29
30
|
isLang,
|
|
30
31
|
isSatisfied,
|
|
@@ -48,7 +49,7 @@ import {
|
|
|
48
49
|
writeConfig,
|
|
49
50
|
writeCredentialFile,
|
|
50
51
|
writeSettings
|
|
51
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-SSY23X7P.js";
|
|
52
53
|
|
|
53
54
|
// src/index.ts
|
|
54
55
|
import kleur12 from "kleur";
|
|
@@ -341,6 +342,7 @@ var M4 = catalog(
|
|
|
341
342
|
nextDoctor: " 2) mimi-seed doctor \uC804\uCCB4 \uC810\uAC80 + \uB204\uB77D \uD56D\uBAA9\uBCC4 \uBCF5\uAD6C \uBA85\uB839",
|
|
342
343
|
localStep1: "Google \uB85C\uADF8\uC778 (Firebase / AdMob / Play / Ads) \u2014 \uCC98\uC74C\uC774\uBA74 \uB0B4 Google Cloud \uC758 \uB370\uC2A4\uD06C\uD1B1 OAuth \uD074\uB77C\uC774\uC5B8\uD2B8\uB97C MIMI_SEED_GOOGLE_CLIENT_ID / _SECRET \uB85C \uC9C0\uC815 (docs/credentials.md#google-oauth):",
|
|
343
344
|
localStep2: "\uB85C\uCEEC MCP \uC11C\uBC84 \uB4F1\uB85D:",
|
|
345
|
+
localSocialHint: " (Facebook \xB7 Instagram \xB7 Threads \xB7 TikTok \uAC8C\uC2DC\uB294 \uBCC4\uB3C4 \uC11C\uBC84: claude mcp add mimi-seed-social -s user -- npx -y @yoonion/mimi-seed-mcp@latest mimi-seed-social-mcp)",
|
|
344
346
|
localCodexHint: ' Codex: ~/.codex/config.toml \uC5D0 [mcp_servers.mimi-seed-local] command="npx", args=["-y","@yoonion/mimi-seed-mcp@latest"]'
|
|
345
347
|
},
|
|
346
348
|
{
|
|
@@ -369,6 +371,7 @@ var M4 = catalog(
|
|
|
369
371
|
nextDoctor: " 2) mimi-seed doctor verify everything + the exact fix for anything missing",
|
|
370
372
|
localStep1: "Sign in with Google (Firebase / AdMob / Play / Ads) \u2014 the first time, set MIMI_SEED_GOOGLE_CLIENT_ID / _SECRET to a Desktop OAuth client in your Google Cloud project (docs/credentials.md#google-oauth):",
|
|
371
373
|
localStep2: "Register the local MCP server:",
|
|
374
|
+
localSocialHint: " (Facebook \xB7 Instagram \xB7 Threads \xB7 TikTok posting is a separate server: claude mcp add mimi-seed-social -s user -- npx -y @yoonion/mimi-seed-mcp@latest mimi-seed-social-mcp)",
|
|
372
375
|
localCodexHint: ' Codex: add [mcp_servers.mimi-seed-local] command="npx", args=["-y","@yoonion/mimi-seed-mcp@latest"] to ~/.codex/config.toml'
|
|
373
376
|
}
|
|
374
377
|
);
|
|
@@ -492,6 +495,7 @@ async function cmdInit(args) {
|
|
|
492
495
|
log(M4().localStep2);
|
|
493
496
|
log(kleur2.cyan(" claude mcp add mimi-seed-local -- npx -y @yoonion/mimi-seed-mcp@latest"));
|
|
494
497
|
log(kleur2.dim(M4().localCodexHint));
|
|
498
|
+
log(kleur2.dim(M4().localSocialHint));
|
|
495
499
|
log("");
|
|
496
500
|
log(M4().localStep1);
|
|
497
501
|
log(kleur2.cyan(" mimi-seed auth login"));
|
|
@@ -5627,19 +5631,19 @@ async function cmdAuth(args) {
|
|
|
5627
5631
|
if (sub === "drive") return void exitWith(await runMcpBin("mimi-seed-drive-auth", rest));
|
|
5628
5632
|
if (sub === "jenkins") return void exitWith(await runMcpBin("mimi-seed-jenkins-auth", rest));
|
|
5629
5633
|
if (sub === "googleads") return void exitWith(await runMcpBin("mimi-seed-googleads-auth", rest));
|
|
5630
|
-
if (sub === "meta") return void exitWith(await
|
|
5631
|
-
if (sub === "facebook") return void exitWith(await
|
|
5632
|
-
if (sub === "instagram") return void exitWith(await
|
|
5633
|
-
if (sub === "threads") return void exitWith(await
|
|
5634
|
-
if (sub === "tiktok") return void exitWith(await
|
|
5634
|
+
if (sub === "meta") return void exitWith(await runSocialBin("mimi-seed-social-auth", ["all", ...rest]));
|
|
5635
|
+
if (sub === "facebook") return void exitWith(await runSocialBin("mimi-seed-social-auth", ["facebook", ...rest]));
|
|
5636
|
+
if (sub === "instagram") return void exitWith(await runSocialBin("mimi-seed-social-auth", ["instagram", ...rest]));
|
|
5637
|
+
if (sub === "threads") return void exitWith(await runSocialBin("mimi-seed-social-auth", ["threads", ...rest]));
|
|
5638
|
+
if (sub === "tiktok") return void exitWith(await runSocialBin("mimi-seed-tiktok-business-auth", rest));
|
|
5635
5639
|
if (sub === "social") {
|
|
5636
5640
|
log2(kleur7.dim(M8().socialChecklist));
|
|
5637
|
-
const { cmdSetup: cmdSetup2 } = await import("./setup-
|
|
5641
|
+
const { cmdSetup: cmdSetup2 } = await import("./setup-TLHKGEAN.js");
|
|
5638
5642
|
await cmdSetup2(["--only", SOCIAL_CREDENTIALS.join(","), ...rest]);
|
|
5639
5643
|
return;
|
|
5640
5644
|
}
|
|
5641
5645
|
if (sub === "ci") {
|
|
5642
|
-
const { cmdSetup: cmdSetup2 } = await import("./setup-
|
|
5646
|
+
const { cmdSetup: cmdSetup2 } = await import("./setup-TLHKGEAN.js");
|
|
5643
5647
|
await cmdSetup2(["--only", "github,gitlab", "--reconnect", "github,gitlab"]);
|
|
5644
5648
|
return;
|
|
5645
5649
|
}
|
|
@@ -5668,6 +5672,11 @@ async function cmdAuth(args) {
|
|
|
5668
5672
|
}
|
|
5669
5673
|
exitWith(await runMcpBin("mimi-seed-auth", mcpArgs));
|
|
5670
5674
|
}
|
|
5675
|
+
async function runSocialBin(bin, args) {
|
|
5676
|
+
const code = await runMcpBin(bin, args);
|
|
5677
|
+
if (code === 0 || hasSocialServerCredential(detectAll())) log2(kleur7.dim(t().setup.socialServer));
|
|
5678
|
+
return code;
|
|
5679
|
+
}
|
|
5671
5680
|
function exitWith(code) {
|
|
5672
5681
|
if (code !== 0) process.exit(code);
|
|
5673
5682
|
}
|
|
@@ -5821,6 +5830,7 @@ ${kleur9.dim("setup \uB9C8\uBC95\uC0AC\uAC00 \uCCAB \uC2E4\uD589 \uB54C \uBB3C\u
|
|
|
5821
5830
|
|
|
5822
5831
|
mimi-seed tools \uC11C\uBE44\uC2A4 \uBAA9\uB85D \uD45C\uC2DC \uBC0F \uB300\uD654\uD615 \uB2E4\uC911 \uC120\uD0DD
|
|
5823
5832
|
mimi-seed tools --select ga4,bigquery \uC120\uD0DD\uD55C \uC11C\uBE44\uC2A4\uC640 \uB3C4\uAD6C \uC774\uB984\uC744 JSON\uC73C\uB85C \uCD9C\uB825
|
|
5833
|
+
mimi-seed tools --server social [--select threads] \uC18C\uC15C \uC11C\uBC84(\uBCC4\uB3C4 MCP)\uC758 \uC11C\uBE44\uC2A4\uB85C \uAC19\uC740 \uC77C
|
|
5824
5834
|
`,
|
|
5825
5835
|
mcp: `${kleur9.bold("mimi-seed mcp")} \u2014 Claude/Codex MCP \uC5F0\uACB0
|
|
5826
5836
|
|
|
@@ -5975,6 +5985,7 @@ Options:
|
|
|
5975
5985
|
|
|
5976
5986
|
mimi-seed tools show the menu and choose multiple services interactively
|
|
5977
5987
|
mimi-seed tools --select ga4,bigquery print the selected services and tool names as JSON
|
|
5988
|
+
mimi-seed tools --server social [--select threads] the same for the social server (a separate MCP server)
|
|
5978
5989
|
`,
|
|
5979
5990
|
mcp: `${kleur9.bold("mimi-seed mcp")} \u2014 Claude/Codex MCP connection
|
|
5980
5991
|
|
package/package.json
CHANGED