mimi-seed 0.25.6 → 0.26.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.
|
@@ -6,7 +6,7 @@ import * as readline2 from "readline";
|
|
|
6
6
|
import os10 from "os";
|
|
7
7
|
|
|
8
8
|
// ../core/src/console-url.ts
|
|
9
|
-
var RETIRED_HOSTS = /* @__PURE__ */ new Set(["mimi-seed.
|
|
9
|
+
var RETIRED_HOSTS = /* @__PURE__ */ new Set(["mimi-seed.oddbout.com"]);
|
|
10
10
|
var LOOPBACK_HOSTS = /* @__PURE__ */ new Set(["localhost", "127.0.0.1", "[::1]"]);
|
|
11
11
|
function inspect(value) {
|
|
12
12
|
let url;
|
|
@@ -729,6 +729,22 @@ function readJsonFile(file) {
|
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
731
|
|
|
732
|
+
// ../core/src/onestore-credentials.ts
|
|
733
|
+
var ONESTORE_CLIENT_ID_PATTERN = /^(?!\.{1,2}$)[A-Za-z0-9._-]{1,128}$/;
|
|
734
|
+
function parseOnestoreCredentials(value, expectedId) {
|
|
735
|
+
if (!value || typeof value !== "object") return null;
|
|
736
|
+
const { clientId, clientSecret, environment, marketCode, packageName, legacyHost } = value;
|
|
737
|
+
if (typeof clientId !== "string" || !ONESTORE_CLIENT_ID_PATTERN.test(clientId) || typeof clientSecret !== "string" || !clientSecret.trim() || expectedId !== void 0 && clientId !== expectedId || environment !== "sandbox" && environment !== "commercial" || marketCode !== "MKT_ONE" && marketCode !== "MKT_GLB" || legacyHost !== void 0 && typeof legacyHost !== "boolean") return null;
|
|
738
|
+
return {
|
|
739
|
+
clientId,
|
|
740
|
+
clientSecret,
|
|
741
|
+
environment,
|
|
742
|
+
marketCode,
|
|
743
|
+
packageName: typeof packageName === "string" ? packageName.trim() || void 0 : void 0,
|
|
744
|
+
legacyHost: environment === "commercial" && legacyHost === true
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
|
|
732
748
|
// ../core/src/project-manifest.ts
|
|
733
749
|
import fs4 from "fs";
|
|
734
750
|
import path4 from "path";
|
|
@@ -910,6 +926,34 @@ function playSaDetect(home) {
|
|
|
910
926
|
}
|
|
911
927
|
return invalid ? { present: false, invalid } : { present: false };
|
|
912
928
|
}
|
|
929
|
+
function onestoreDetect(home) {
|
|
930
|
+
const detectFile = (file, expectedId) => {
|
|
931
|
+
const read = readJsonFile(file);
|
|
932
|
+
if (read.state === "missing") return { present: false };
|
|
933
|
+
if (read.state !== "ok") return { present: false, invalid: unusable(file, read) };
|
|
934
|
+
const cfg = parseOnestoreCredentials(read.value, expectedId);
|
|
935
|
+
if (!cfg) return { present: false, invalid: { file, reason: "Invalid ONE store credential fields" } };
|
|
936
|
+
const identity = { clientId: cfg.clientId };
|
|
937
|
+
if (cfg.packageName) identity.packageName = cfg.packageName;
|
|
938
|
+
return { present: true, detail: Object.values(identity).join(" / "), identity };
|
|
939
|
+
};
|
|
940
|
+
const defaultFile = detectFile(path5.join(credDir(home), "onestore.json"));
|
|
941
|
+
if (defaultFile.present || defaultFile.invalid) return defaultFile;
|
|
942
|
+
const dir = path5.join(credDir(home), "onestore-apps");
|
|
943
|
+
let names;
|
|
944
|
+
try {
|
|
945
|
+
names = fs5.readdirSync(dir).filter((f) => f.endsWith(".json")).sort();
|
|
946
|
+
} catch {
|
|
947
|
+
return { present: false };
|
|
948
|
+
}
|
|
949
|
+
let invalid;
|
|
950
|
+
for (const name of names) {
|
|
951
|
+
const found = detectFile(path5.join(dir, name), name.slice(0, -5));
|
|
952
|
+
if (found.present) return found;
|
|
953
|
+
invalid ??= found.invalid;
|
|
954
|
+
}
|
|
955
|
+
return invalid ? { present: false, invalid } : { present: false };
|
|
956
|
+
}
|
|
913
957
|
function ciDetect(home, want) {
|
|
914
958
|
const ci = readJson(home, "ci.json");
|
|
915
959
|
if (!ci || ci.provider !== want) return { present: false };
|
|
@@ -1056,6 +1100,38 @@ var CREDENTIALS = [
|
|
|
1056
1100
|
},
|
|
1057
1101
|
detect: (home) => playSaDetect(home)
|
|
1058
1102
|
},
|
|
1103
|
+
{
|
|
1104
|
+
id: "onestore",
|
|
1105
|
+
label: {
|
|
1106
|
+
ko: "\uC6D0\uC2A4\uD1A0\uC5B4 IAP",
|
|
1107
|
+
en: "ONE store IAP"
|
|
1108
|
+
},
|
|
1109
|
+
requirement: "optional",
|
|
1110
|
+
group: "core",
|
|
1111
|
+
file: "~/.mimi-seed/onestore.json",
|
|
1112
|
+
fix: "mimi-seed auth onestore",
|
|
1113
|
+
setup: { kind: "mcp-bin", bin: "mimi-seed-onestore-auth" },
|
|
1114
|
+
obtain: {
|
|
1115
|
+
ko: [
|
|
1116
|
+
"ONEconsole \u2192 \uB77C\uC774\uC120\uC2A4 \uAD00\uB9AC\uC5D0\uC11C OAuth client_id(PID)\uC640 client_secret\uC744 \uBC1C\uAE09\uBC1B\uB294\uB2E4.",
|
|
1117
|
+
"2025-03-20 \uC774\uC804\uC5D0 \uB4F1\uB85D\uD55C \uC571\uC740 client_id \uAC00 \uD328\uD0A4\uC9C0\uBA85\uC77C \uC218 \uC788\uB2E4. \uC774\uD6C4 \uC571\uC740 PID \uB2E4.",
|
|
1118
|
+
"`mimi-seed auth onestore` \uB85C \uC800\uC7A5\uD55C\uB2E4. \uC561\uC138\uC2A4 \uD1A0\uD070\uC740 \uB514\uC2A4\uD06C\uC5D0 \uC4F0\uC9C0 \uC54A\uB294\uB2E4.",
|
|
1119
|
+
"\uC778\uC571 \uC11C\uBC84 API\uB9CC \uC9C0\uC6D0\uD55C\uB2E4. \uBC14\uC774\uB108\uB9AC \uC5C5\uB85C\uB4DC\xB7\uB9AC\uC2A4\uD305\xB7\uB9AC\uBDF0\xB7\uC0C1\uD488 \uCE74\uD0C8\uB85C\uADF8\xB7\uC815\uC0B0 API\uB294 \uC5C6\uB2E4."
|
|
1120
|
+
],
|
|
1121
|
+
en: [
|
|
1122
|
+
"Issue an OAuth client_id (PID) and client_secret from ONEconsole \u2192 License Management.",
|
|
1123
|
+
"Apps registered before 2025-03-20 may still use the package name as client_id; newer apps use a PID.",
|
|
1124
|
+
"Save them with `mimi-seed auth onestore`. Access tokens are never written to disk.",
|
|
1125
|
+
"Only the IAP Server API is available. There is no official API for binary upload, listings, reviews, catalog CRUD, or settlements."
|
|
1126
|
+
]
|
|
1127
|
+
},
|
|
1128
|
+
docsAnchor: "onestore-iap",
|
|
1129
|
+
note: {
|
|
1130
|
+
ko: "\uC120\uD0DD \u2014 \uC6D0\uC2A4\uD1A0\uC5B4 \uC778\uC571 \uAD6C\uB9E4 \uC870\uD68C\xB7\uD655\uC778\xB7\uD574\uC9C0",
|
|
1131
|
+
en: "optional \u2014 ONE store in-app purchase lookup, acknowledge, and cancel"
|
|
1132
|
+
},
|
|
1133
|
+
detect: (home) => onestoreDetect(home)
|
|
1134
|
+
},
|
|
1059
1135
|
{
|
|
1060
1136
|
id: "bigquery",
|
|
1061
1137
|
label: {
|
|
@@ -1507,7 +1583,7 @@ import path7 from "path";
|
|
|
1507
1583
|
import { fileURLToPath } from "url";
|
|
1508
1584
|
|
|
1509
1585
|
// package.json
|
|
1510
|
-
var version = "0.
|
|
1586
|
+
var version = "0.26.0";
|
|
1511
1587
|
|
|
1512
1588
|
// src/lib/windows-path.ts
|
|
1513
1589
|
import path6 from "path";
|
|
@@ -1700,10 +1776,11 @@ var IN_SCOPE_FILES = /* @__PURE__ */ new Set([
|
|
|
1700
1776
|
"jenkins.json",
|
|
1701
1777
|
"ci.json",
|
|
1702
1778
|
"config.json",
|
|
1779
|
+
"onestore.json",
|
|
1703
1780
|
// 사용자 본인의 Meta 앱 시크릿 — 만료되지 않고, 그 앱을 쓰는 모든 계정의 토큰을 만들 수 있다.
|
|
1704
1781
|
"meta-apps.json"
|
|
1705
1782
|
]);
|
|
1706
|
-
var IN_SCOPE_DIRS = /* @__PURE__ */ new Set(["google-profiles", "play-service-accounts", "social-profiles"]);
|
|
1783
|
+
var IN_SCOPE_DIRS = /* @__PURE__ */ new Set(["google-profiles", "play-service-accounts", "social-profiles", "onestore-apps"]);
|
|
1707
1784
|
function isEncryptableCredential(aad) {
|
|
1708
1785
|
if (!aad) return false;
|
|
1709
1786
|
const parts = aad.split("/");
|
package/dist/index.js
CHANGED
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
writeConfig,
|
|
48
48
|
writeCredentialFile,
|
|
49
49
|
writeSettings
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-HSXJFRDO.js";
|
|
51
51
|
|
|
52
52
|
// src/index.ts
|
|
53
53
|
import kleur12 from "kleur";
|
|
@@ -451,6 +451,7 @@ async function cmdInit(args) {
|
|
|
451
451
|
"- Google/Firebase/AdMob/Play OAuth: `npx -y @yoonion/mimi-seed-mcp mimi-seed-auth`",
|
|
452
452
|
"- App Store Connect: `npx -y @yoonion/mimi-seed-mcp mimi-seed-appstore-auth`",
|
|
453
453
|
"- Play service account: `npx -y @yoonion/mimi-seed-mcp mimi-seed-playstore-auth`",
|
|
454
|
+
"- ONE store IAP: `npx -y @yoonion/mimi-seed-mcp mimi-seed-onestore-auth`",
|
|
454
455
|
"",
|
|
455
456
|
"## \uC571 \uC815\uBCF4",
|
|
456
457
|
...appLines.length > 0 ? appLines : [" (mimi-seed status \uB85C \uD655\uC778)"],
|
|
@@ -650,6 +651,9 @@ function manifestDetail(id, svc) {
|
|
|
650
651
|
if (svc.dataset) parts.push(svc.dataset);
|
|
651
652
|
} else if (id === "playstore" && svc.packageName) {
|
|
652
653
|
parts.push(svc.packageName);
|
|
654
|
+
} else if (id === "onestore") {
|
|
655
|
+
if (svc.clientId) parts.push(svc.clientId);
|
|
656
|
+
if (svc.packageName) parts.push(svc.packageName);
|
|
653
657
|
} else if (id === "appstore" && svc.keyId) {
|
|
654
658
|
parts.push(`keyId ${svc.keyId}`);
|
|
655
659
|
} else if (id === "jenkins" && svc.url) {
|
|
@@ -5374,6 +5378,7 @@ ${kleur7.bold("Google OAuth (Firebase / AdMob / Play):")}
|
|
|
5374
5378
|
${kleur7.bold("\uD50C\uB7AB\uD3FC\uBCC4 \uC790\uACA9\uC99D\uBA85:")}
|
|
5375
5379
|
${kleur7.cyan("mimi-seed auth appstore")} App Store Connect API \uD0A4 (appstore.json)
|
|
5376
5380
|
${kleur7.cyan("mimi-seed auth playstore")} Play \uC11C\uBE44\uC2A4 \uACC4\uC815 JSON \uB4F1\uB85D
|
|
5381
|
+
${kleur7.cyan("mimi-seed auth onestore")} \uC6D0\uC2A4\uD1A0\uC5B4 IAP OAuth (onestore.json)
|
|
5377
5382
|
${kleur7.cyan("mimi-seed auth bigquery")} BigQuery \uC11C\uBE44\uC2A4 \uACC4\uC815 (Crashlytics export \uB4F1)
|
|
5378
5383
|
${kleur7.cyan("mimi-seed auth drive")} Google Drive \uC11C\uBE44\uC2A4 \uACC4\uC815 (\uACF5\uC720 \uD3F4\uB354\xB7\uACF5\uC720 \uB4DC\uB77C\uC774\uBE0C \uC5C5\uB85C\uB4DC)
|
|
5379
5384
|
|
|
@@ -5417,6 +5422,7 @@ ${kleur7.bold("Google OAuth (Firebase / AdMob / Play):")}
|
|
|
5417
5422
|
${kleur7.bold("Per-platform credentials:")}
|
|
5418
5423
|
${kleur7.cyan("mimi-seed auth appstore")} App Store Connect API key (appstore.json)
|
|
5419
5424
|
${kleur7.cyan("mimi-seed auth playstore")} register a Play service-account JSON
|
|
5425
|
+
${kleur7.cyan("mimi-seed auth onestore")} ONE store IAP OAuth (onestore.json)
|
|
5420
5426
|
${kleur7.cyan("mimi-seed auth bigquery")} BigQuery service account (Crashlytics export, etc.)
|
|
5421
5427
|
${kleur7.cyan("mimi-seed auth drive")} Google Drive service account (uploads to shared folders / drives)
|
|
5422
5428
|
|
|
@@ -5477,6 +5483,7 @@ async function cmdAuth(args) {
|
|
|
5477
5483
|
}
|
|
5478
5484
|
if (sub === "appstore") return void exitWith(await runMcpBin("mimi-seed-appstore-auth", rest));
|
|
5479
5485
|
if (sub === "playstore") return void exitWith(await runMcpBin("mimi-seed-playstore-auth", rest));
|
|
5486
|
+
if (sub === "onestore") return void exitWith(await runMcpBin("mimi-seed-onestore-auth", rest));
|
|
5480
5487
|
if (sub === "bigquery") return void exitWith(await runMcpBin("mimi-seed-bigquery-auth", rest));
|
|
5481
5488
|
if (sub === "drive") return void exitWith(await runMcpBin("mimi-seed-drive-auth", rest));
|
|
5482
5489
|
if (sub === "jenkins") return void exitWith(await runMcpBin("mimi-seed-jenkins-auth", rest));
|
|
@@ -5488,12 +5495,12 @@ async function cmdAuth(args) {
|
|
|
5488
5495
|
if (sub === "tiktok") return void exitWith(await runMcpBin("mimi-seed-tiktok-business-auth", rest));
|
|
5489
5496
|
if (sub === "social") {
|
|
5490
5497
|
log2(kleur7.dim(M8().socialChecklist));
|
|
5491
|
-
const { cmdSetup: cmdSetup2 } = await import("./setup-
|
|
5498
|
+
const { cmdSetup: cmdSetup2 } = await import("./setup-TLGN7ZE3.js");
|
|
5492
5499
|
await cmdSetup2(["--only", SOCIAL_CREDENTIALS.join(","), ...rest]);
|
|
5493
5500
|
return;
|
|
5494
5501
|
}
|
|
5495
5502
|
if (sub === "ci") {
|
|
5496
|
-
const { cmdSetup: cmdSetup2 } = await import("./setup-
|
|
5503
|
+
const { cmdSetup: cmdSetup2 } = await import("./setup-TLGN7ZE3.js");
|
|
5497
5504
|
await cmdSetup2(["--only", "github,gitlab", "--reconnect", "github,gitlab"]);
|
|
5498
5505
|
return;
|
|
5499
5506
|
}
|
package/package.json
CHANGED