mimi-seed 0.29.0 → 0.29.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.
@@ -1583,7 +1583,7 @@ import path7 from "path";
1583
1583
  import { fileURLToPath } from "url";
1584
1584
 
1585
1585
  // package.json
1586
- var version = "0.29.0";
1586
+ var version = "0.29.1";
1587
1587
 
1588
1588
  // src/lib/windows-path.ts
1589
1589
  import path6 from "path";
@@ -3480,20 +3480,30 @@ import fs13 from "fs";
3480
3480
  import os9 from "os";
3481
3481
  import path16 from "path";
3482
3482
  import { createHmac, randomUUID as randomUUID5 } from "crypto";
3483
+ var PUBLIC_COLLECTOR = "https://mimi-seed.oddbout.com";
3484
+ function collectorBase() {
3485
+ const configured = process.env.MIMI_SEED_WEB_BASE;
3486
+ if (!configured || configured === PUBLIC_COLLECTOR || configured === `${PUBLIC_COLLECTOR}/`) {
3487
+ return PUBLIC_COLLECTOR;
3488
+ }
3489
+ return consoleBase(configured);
3490
+ }
3483
3491
  var M9 = catalog(
3484
3492
  {
3485
3493
  notice: "\uC120\uD0DD\uC801 \uC0AC\uC6A9\uB7C9 \uCE21\uC815\uC740 \uAEBC\uC838 \uC788\uC2B5\uB2C8\uB2E4. \uC548\uB0B4: mimi-seed telemetry --help\n",
3486
- enabled: "\uC0AC\uC6A9\uB7C9 \uCE21\uC815 \uCF1C\uC9D0. \uC784\uC758 \uC124\uCE58 ID\xB7\uD504\uB85C\uC81D\uD2B8 \uD574\uC2DC\xB7\uBC84\uC804\xB7OS\xB7\uACB0\uACFC \uCF54\uB4DC\xB7\uC2E4\uD589\uC2DC\uAC04\uC744 \uC804\uC1A1\uD569\uB2C8\uB2E4. \uB044\uAE30: mimi-seed telemetry off\n",
3494
+ enabled: (destination) => `\uC0AC\uC6A9\uB7C9 \uCE21\uC815 \uCF1C\uC9D0. ${destination}\uC5D0 \uAC00\uBA85 \uC124\uCE58 ID\xB7\uD504\uB85C\uC81D\uD2B8 \uD574\uC2DC\xB7\uC2E4\uD589 \uACB0\uACFC\uB97C \uC804\uC1A1\uD569\uB2C8\uB2E4. \uB044\uAE30: mimi-seed telemetry off
3495
+ `,
3487
3496
  disabled: "\uC0AC\uC6A9\uB7C9 \uCE21\uC815 \uAEBC\uC9D0. MIMI_SEED_TELEMETRY=0\uC73C\uB85C\uB3C4 \uB04C \uC218 \uC788\uC2B5\uB2C8\uB2E4.\n",
3488
3497
  invalid: "\uC0AC\uC6A9\uBC95: mimi-seed telemetry on|off|status\n",
3489
- noConsole: "\uC0AC\uC6A9\uB7C9 \uCE21\uC815\uC740 \uD300 \uCF58\uC194\uB85C\uB9CC \uBCF4\uB0C5\uB2C8\uB2E4 \u2014 \uCF1C\uB824\uBA74 \uBA3C\uC800 MIMI_SEED_WEB_BASE \uC5D0 \uD300 \uCF58\uC194 \uC8FC\uC18C\uB97C \uC9C0\uC815\uD558\uC138\uC694. \uC544\uBB34\uAC83\uB3C4 \uBC14\uAFB8\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.\n"
3498
+ invalidCollector: "MIMI_SEED_WEB_BASE\uC5D0 \uC720\uD6A8\uD55C HTTPS \uC218\uC9D1 \uC8FC\uC18C\uB97C \uC9C0\uC815\uD558\uAC70\uB098 \uD658\uACBD\uBCC0\uC218\uB97C \uD574\uC81C\uD558\uC138\uC694. \uC124\uC815\uC740 \uBCC0\uACBD\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.\n"
3490
3499
  },
3491
3500
  {
3492
3501
  notice: "Optional usage measurement is off. Learn more: mimi-seed telemetry --help\n",
3493
- enabled: "Usage measurement enabled: random installation ID, project hash, version, OS, result codes and duration. Disable: mimi-seed telemetry off\n",
3502
+ enabled: (destination) => `Usage measurement enabled. Pseudonymous installation IDs, project hashes and run results go to ${destination}. Disable: mimi-seed telemetry off
3503
+ `,
3494
3504
  disabled: "Usage measurement disabled. MIMI_SEED_TELEMETRY=0 also disables it.\n",
3495
3505
  invalid: "Usage: mimi-seed telemetry on|off|status\n",
3496
- noConsole: "Usage measurement is sent only to a team console \u2014 set MIMI_SEED_WEB_BASE to your team console first. Nothing was changed.\n"
3506
+ invalidCollector: "Set MIMI_SEED_WEB_BASE to a valid HTTPS collector address or unset it. Settings were unchanged.\n"
3497
3507
  }
3498
3508
  );
3499
3509
  var location = () => path16.join(os9.homedir(), ".mimi-seed", "telemetry.json");
@@ -3509,9 +3519,11 @@ function writeConsent(value) {
3509
3519
  writeCredentialJson(location(), value);
3510
3520
  }
3511
3521
  function telemetryEnabled() {
3512
- const webBase = consoleBase(process.env.MIMI_SEED_WEB_BASE);
3522
+ const webBase = collectorBase();
3513
3523
  if (!webBase) return false;
3514
- if (process.env.MIMI_SEED_TELEMETRY !== void 0) return process.env.MIMI_SEED_TELEMETRY === "1";
3524
+ const override = process.env.MIMI_SEED_TELEMETRY;
3525
+ if (override !== void 0 && override !== "1") return false;
3526
+ if (override === "1" && webBase !== PUBLIC_COLLECTOR) return true;
3515
3527
  return readConsent(webBase).enabled === true;
3516
3528
  }
3517
3529
  function telemetryNotice() {
@@ -3525,9 +3537,9 @@ function cmdTelemetry(argv) {
3525
3537
  process.exitCode = 2;
3526
3538
  return;
3527
3539
  }
3528
- const webBase = consoleBase(process.env.MIMI_SEED_WEB_BASE);
3540
+ const webBase = collectorBase();
3529
3541
  if (action === "on" && !webBase) {
3530
- process.stderr.write(M9().noConsole);
3542
+ process.stderr.write(M9().invalidCollector);
3531
3543
  process.exitCode = 1;
3532
3544
  return;
3533
3545
  }
@@ -3536,7 +3548,7 @@ function cmdTelemetry(argv) {
3536
3548
  writeConsent({ webBase, enabled: true, installationId: consent.installationId ?? randomUUID5(), salt: consent.salt ?? randomUUID5() });
3537
3549
  }
3538
3550
  if (action === "off") writeConsent({ enabled: false });
3539
- process.stdout.write(telemetryEnabled() ? M9().enabled : M9().disabled);
3551
+ process.stdout.write(webBase && telemetryEnabled() ? M9().enabled(webBase) : M9().disabled);
3540
3552
  }
3541
3553
  function frameworkAt(root) {
3542
3554
  if (fs13.existsSync(path16.join(root, "ProjectSettings", "ProjectSettings.asset"))) return "unity";
@@ -3550,7 +3562,7 @@ function frameworkAt(root) {
3550
3562
  return "native-or-unknown";
3551
3563
  }
3552
3564
  function usageRun(command, projectPath) {
3553
- const baseUrl = consoleBase(process.env.MIMI_SEED_WEB_BASE);
3565
+ const baseUrl = collectorBase();
3554
3566
  if (!baseUrl || !telemetryEnabled()) return async () => {
3555
3567
  };
3556
3568
  try {
@@ -3579,7 +3591,7 @@ function usageRun(command, projectPath) {
3579
3591
  };
3580
3592
  const started = Date.now();
3581
3593
  return async (outcome, report) => {
3582
- if (!telemetryEnabled() || consoleBase(process.env.MIMI_SEED_WEB_BASE) !== baseUrl) return;
3594
+ if (!telemetryEnabled() || collectorBase() !== baseUrl) return;
3583
3595
  const payload = {
3584
3596
  ...base2,
3585
3597
  outcome,
package/dist/index.js CHANGED
@@ -48,7 +48,7 @@ import {
48
48
  writeConfig,
49
49
  writeCredentialFile,
50
50
  writeSettings
51
- } from "./chunk-7VYJ4F5B.js";
51
+ } from "./chunk-XKKMOHQJ.js";
52
52
 
53
53
  // src/index.ts
54
54
  import kleur12 from "kleur";
@@ -5634,12 +5634,12 @@ async function cmdAuth(args) {
5634
5634
  if (sub === "tiktok") return void exitWith(await runMcpBin("mimi-seed-tiktok-business-auth", rest));
5635
5635
  if (sub === "social") {
5636
5636
  log2(kleur7.dim(M8().socialChecklist));
5637
- const { cmdSetup: cmdSetup2 } = await import("./setup-2MKY7YLG.js");
5637
+ const { cmdSetup: cmdSetup2 } = await import("./setup-ZOXNGREI.js");
5638
5638
  await cmdSetup2(["--only", SOCIAL_CREDENTIALS.join(","), ...rest]);
5639
5639
  return;
5640
5640
  }
5641
5641
  if (sub === "ci") {
5642
- const { cmdSetup: cmdSetup2 } = await import("./setup-2MKY7YLG.js");
5642
+ const { cmdSetup: cmdSetup2 } = await import("./setup-ZOXNGREI.js");
5643
5643
  await cmdSetup2(["--only", "github,gitlab", "--reconnect", "github,gitlab"]);
5644
5644
  return;
5645
5645
  }
@@ -5713,7 +5713,7 @@ var M9 = catalog(
5713
5713
  {
5714
5714
  // 명령별 상세 사용법 (SSOT). `mimi-seed <command> --help` 와 overview 가 공유.
5715
5715
  usage: {
5716
- telemetry: "mimi-seed telemetry on|off|status \u2014 \uC120\uD0DD\uC801 \uC0AC\uC6A9\uB7C9 \uCE21\uC815. \uAE30\uBCF8 \uAEBC\uC9D0. \uC784\uC758 \uC124\uCE58 ID, \uD504\uB85C\uC81D\uD2B8 \uD574\uC2DC, \uBC84\uC804, OS, \uACB0\uACFC \uCF54\uB4DC\uC640 \uC2E4\uD589\uC2DC\uAC04\uC744 \uC804\uC1A1\uD569\uB2C8\uB2E4. \uAC1C\uC778\uC815\uBCF4 \uC548\uB0B4: https://github.com/jeonghwanko/mimi-seed-sdk/blob/main/docs/growth/measurement.md . MIMI_SEED_TELEMETRY=0\uC740 \uD56D\uC0C1 \uC804\uC1A1\uC744 \uB055\uB2C8\uB2E4.",
5716
+ telemetry: "mimi-seed telemetry on|off|status \u2014 \uC120\uD0DD\uC801 \uC0AC\uC6A9\uB7C9 \uCE21\uC815. \uAE30\uBCF8 \uAEBC\uC9D0. \uB3D9\uC758\uD558\uBA74 mimi-seed.oddbout.com \uB610\uB294 \uC9C0\uC815\uD55C \uD300 \uCF58\uC194\uB85C \uC2E4\uD589 \uC774\uBCA4\uD2B8\uB97C \uBCF4\uB0C5\uB2C8\uB2E4. \uAC1C\uC778\uC815\uBCF4 \uC548\uB0B4: https://mimi-seed.oddbout.com/privacy/sdk-usage/ . MIMI_SEED_TELEMETRY=0\uC740 \uD56D\uC0C1 \uC804\uC1A1\uC744 \uB055\uB2C8\uB2E4.",
5717
5717
  init: `${kleur9.bold("mimi-seed init")} \u2014 \uD604\uC7AC \uD504\uB85C\uC81D\uD2B8\uB97C Mimi Seed\uC5D0 \uC5F0\uACB0
5718
5718
 
5719
5719
  \uC571 \uC790\uB3D9 \uAC10\uC9C0(Expo/Gradle/Info.plist/pbxproj) (MIMI_SEED_WEB_BASE\uB97C \uC9C0\uC815\uD55C \uACBD\uC6B0\uC5D0\uB9CC \uC6D0\uACA9 \uC5F0\uACB0)
@@ -5867,7 +5867,7 @@ ${kleur9.bold("\uD658\uACBD\uBCC0\uC218:")}
5867
5867
  },
5868
5868
  {
5869
5869
  usage: {
5870
- telemetry: "mimi-seed telemetry on|off|status \u2014 optional usage measurement, off by default. Sends a random installation ID, project hash, version, OS, result codes and duration. Privacy: https://github.com/jeonghwanko/mimi-seed-sdk/blob/main/docs/growth/measurement.md . MIMI_SEED_TELEMETRY=0 always disables transmission.",
5870
+ telemetry: "mimi-seed telemetry on|off|status \u2014 optional usage measurement, off by default. Opt in to send usage events to mimi-seed.oddbout.com or your configured team console. Privacy: https://mimi-seed.oddbout.com/privacy/sdk-usage/ . MIMI_SEED_TELEMETRY=0 always disables transmission.",
5871
5871
  init: `${kleur9.bold("mimi-seed init")} \u2014 connect the current project to Mimi Seed
5872
5872
 
5873
5873
  Auto-detects apps (Expo/Gradle/Info.plist/pbxproj) (remote registration only with MIMI_SEED_WEB_BASE)
@@ -3,7 +3,7 @@ import {
3
3
  cmdSetup,
4
4
  parseSetupArgs,
5
5
  resolveMode
6
- } from "./chunk-7VYJ4F5B.js";
6
+ } from "./chunk-XKKMOHQJ.js";
7
7
  export {
8
8
  cmdSetup,
9
9
  parseSetupArgs,
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "mcp",
12
12
  "cli"
13
13
  ],
14
- "version": "0.29.0",
14
+ "version": "0.29.1",
15
15
  "description": "Release Doctor: check Expo, React Native and Unity release risks before connecting app stores.",
16
16
  "bin": {
17
17
  "mimi-seed": "dist/index.js"