mimi-seed 0.25.2 → 0.25.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # mimi-seed
2
2
 
3
- Find mobile release risks before connecting store accounts.
3
+ [Mimi Seed](https://mimi-seed.oddbout.com/en/) helps you find mobile release risks before connecting store accounts.
4
4
 
5
5
  ```bash
6
6
  npx -y mimi-seed@latest check --local
@@ -12,7 +12,7 @@ Store Connect SDK minimum, and legacy Firebase Cloud Messaging API usage, with s
12
12
  Unresolved evidence remains a warning. A local pass does not guarantee store approval.
13
13
 
14
14
  The checker is bundled; it does not install the full MCP server. Optional usage measurement is off by
15
- default. See `mimi-seed telemetry --help` and the [privacy notice](https://mimi-seed.pryzm.gg/privacy/sdk-usage).
15
+ default. See `mimi-seed telemetry --help` and the [measurement guide](https://github.com/jeonghwanko/mimi-seed-sdk/blob/main/docs/growth/measurement.md).
16
16
 
17
17
  `@anthropic-ai/sdk` is an optional dependency, loaded only for AI release notes and review replies. A default
18
18
  `npm install` still includes it (about 33 MB). `check` and `--version` work without it:
@@ -26,14 +26,14 @@ project and set `ANTHROPIC_API_KEY`.
26
26
 
27
27
  ## Next steps
28
28
 
29
- - Connect store checks: `npx mimi-seed init`, then `npx mimi-seed setup`.
29
+ - Connect accounts for the local MCP tools: `npx mimi-seed setup`.
30
30
  - Repeat in CI: `npx mimi-seed check --local --fail-on-blocker`.
31
31
  - Switch output language: `mimi-seed lang en`.
32
32
  - Full options: `mimi-seed <command> --help`.
33
33
 
34
34
  [Claude Code / Codex installation](https://github.com/jeonghwanko/mimi-seed-sdk#30-second-setup)
35
35
  · [CI workflow and badge](https://github.com/jeonghwanko/mimi-seed-sdk/blob/main/docs/user-guide/release-doctor-ci.md)
36
- · [Validation examples](https://mimi-seed.pryzm.gg/guides/validation-examples)
36
+ · [Validation examples](https://github.com/jeonghwanko/mimi-seed-sdk/blob/main/docs/user-guide/release-doctor-validation.md)
37
37
 
38
38
  ## Commands
39
39
 
@@ -5,6 +5,22 @@ import kleur2 from "kleur";
5
5
  import * as readline2 from "readline";
6
6
  import os10 from "os";
7
7
 
8
+ // ../core/src/console-url.ts
9
+ function consoleUrl(value) {
10
+ if (!value) return null;
11
+ try {
12
+ const url = new URL(value);
13
+ const host = url.hostname.replace(/\.$/, "");
14
+ if (host === "mimi-seed.pryzm.gg" || host === "mimi-seed.oddbout.com") return null;
15
+ const local = ["localhost", "127.0.0.1", "[::1]"].includes(host);
16
+ if (url.protocol !== "https:" && !(local && url.protocol === "http:")) return null;
17
+ if (url.username || url.password || url.search || url.hash) return null;
18
+ return url.href.replace(/\/+$/, "");
19
+ } catch {
20
+ return null;
21
+ }
22
+ }
23
+
8
24
  // src/credentials.ts
9
25
  import fs5 from "fs";
10
26
  import os3 from "os";
@@ -119,9 +135,9 @@ var ko = {
119
135
  secEnv: "\uB85C\uCEEC \uD658\uACBD",
120
136
  secApps: "\uC571 \uAC10\uC9C0",
121
137
  noToken: "Mimi Seed \uD1A0\uD070 \uC5C6\uC74C",
122
- noTokenFix: "`mimi-seed init` \uC2E4\uD589 \uD544\uC694",
138
+ noTokenFix: "\uC6D0\uACA9 \uAE30\uB2A5\uC740 MIMI_SEED_WEB_BASE\uB97C \uD300 \uCF58\uC194 \uC8FC\uC18C\uB85C \uC124\uC815\uD558\uACE0 `mimi-seed init`\uC73C\uB85C \uC5F0\uACB0\uD558\uC138\uC694.",
123
139
  noTokenLocal: "Mimi Seed \uD074\uB77C\uC6B0\uB4DC \uACC4\uC815 \uBBF8\uC5F0\uACB0",
124
- noTokenLocalDetail: "\uC6F9 \uCF58\uC194\xB7\uC6D0\uACA9 MCP(init \xB7 status \xB7 deploy)\uB97C \uC4F8 \uB54C\uB9CC \uD544\uC694 \u2014 \uB85C\uCEEC MCP \uB3C4\uAD6C\uB294 \uC4F0\uC9C0 \uC54A\uC74C",
140
+ noTokenLocalDetail: "\uC6F9 \uCF58\uC194\xB7\uC6D0\uACA9 MCP(status \xB7 deploy)\uB97C \uC4F8 \uB54C\uB9CC \uD544\uC694 \u2014 \uB85C\uCEEC MCP \uB3C4\uAD6C\uB294 \uC4F0\uC9C0 \uC54A\uC74C",
125
141
  tokenSaved: "\uD1A0\uD070 \uC800\uC7A5\uB428",
126
142
  endpoint: "\uC5D4\uB4DC\uD3EC\uC778\uD2B8",
127
143
  ciMode: "CI \uBAA8\uB4DC",
@@ -234,9 +250,9 @@ MIMI_SEED_LANG takes precedence when set.`,
234
250
  secEnv: "Environment",
235
251
  secApps: "App detection",
236
252
  noToken: "No Mimi Seed token",
237
- noTokenFix: "run `mimi-seed init`",
253
+ noTokenFix: "For remote commands, set MIMI_SEED_WEB_BASE to your team console and run `mimi-seed init`.",
238
254
  noTokenLocal: "Mimi Seed cloud account not connected",
239
- noTokenLocalDetail: "only needed for the web console / remote MCP (init \xB7 status \xB7 deploy) \u2014 local MCP tools do not use it",
255
+ noTokenLocalDetail: "only needed for the web console / remote MCP (status \xB7 deploy) \u2014 local MCP tools do not use it",
240
256
  tokenSaved: "Token stored",
241
257
  endpoint: "Endpoint",
242
258
  ciMode: "CI mode",
@@ -864,26 +880,28 @@ var CREDENTIALS = [
864
880
  ko: "Mimi Seed \uACC4\uC815 (\uD074\uB77C\uC6B0\uB4DC)",
865
881
  en: "Mimi Seed account (cloud)"
866
882
  },
867
- requirement: "required",
883
+ requirement: "optional",
868
884
  group: "core",
869
885
  file: "~/.mimi-seed/config.json",
870
886
  fix: "mimi-seed init",
871
887
  setup: { kind: "command", run: "mimi-seed init" },
872
888
  obtain: {
873
889
  ko: [
874
- "https://mimi-seed.pryzm.gg \uC5D0\uC11C \uAC00\uC785/\uB85C\uADF8\uC778\uD558\uBA74 \uB05D \u2014 \uBE0C\uB77C\uC6B0\uC800\uAC00 \uC54C\uC544\uC11C \uD1A0\uD070\uC744 \uB118\uACA8\uC900\uB2E4.",
890
+ "\uD300 \uCF58\uC194 \uC8FC\uC18C\uB97C MIMI_SEED_WEB_BASE\uC5D0 \uC9C0\uC815\uD55C \uB4A4 mimi-seed init\uC744 \uC2E4\uD589\uD558\uC138\uC694.",
875
891
  "CI \uC5D0\uC11C\uB294 MIMI_SEED_TOKEN \uD658\uACBD\uBCC0\uC218\uB85C \uB300\uCCB4\uD560 \uC218 \uC788\uB2E4."
876
892
  ],
877
893
  en: [
878
- "Sign up / sign in at https://mimi-seed.pryzm.gg \u2014 the browser hands the token back for you.",
894
+ "Set MIMI_SEED_WEB_BASE to your team console, then run mimi-seed init.",
879
895
  "In CI, set the MIMI_SEED_TOKEN environment variable instead."
880
896
  ]
881
897
  },
882
898
  docsAnchor: "cloud-pat",
883
899
  detect: (home) => {
884
- if (process.env.MIMI_SEED_TOKEN) return { present: true, detail: "MIMI_SEED_TOKEN (env)" };
900
+ if (process.env.MIMI_SEED_TOKEN) {
901
+ return consoleUrl(process.env.MIMI_SEED_WEB_BASE) ? { present: true, detail: "MIMI_SEED_TOKEN (env)" } : { present: false };
902
+ }
885
903
  const cfg = readJson(home, "config.json");
886
- return cfg?.prefix ? { present: true, detail: `${cfg.prefix}\u2026` } : { present: false };
904
+ return cfg?.prefix && consoleUrl(cfg.webBase) && consoleUrl(cfg.endpoint) ? { present: true, detail: `${cfg.prefix}\u2026` } : { present: false };
887
905
  }
888
906
  },
889
907
  {
@@ -899,13 +917,13 @@ var CREDENTIALS = [
899
917
  setup: { kind: "mcp-bin", bin: "mimi-seed-auth" },
900
918
  obtain: {
901
919
  ko: [
902
- "\uBBF8\uB9AC \uBC1C\uAE09\uBC1B\uC744 \uAC8C **\uC5C6\uB2E4**. \uBE0C\uB77C\uC6B0\uC800 \uB85C\uADF8\uC778 \uD55C \uBC88\uC774\uBA74 \uB05D.",
920
+ "\uCC98\uC74C\uC774\uBA74 Google \uB370\uC2A4\uD06C\uD1B1 \uC571 OAuth \uD074\uB77C\uC774\uC5B8\uD2B8\uC758 MIMI_SEED_GOOGLE_CLIENT_ID\uC640 MIMI_SEED_GOOGLE_CLIENT_SECRET\uB97C \uC124\uC815\uD55C\uB2E4.",
903
921
  "\uC774 \uD1A0\uD070 \uD558\uB098\uAC00 Firebase \xB7 AdMob \xB7 Play \xB7 Google Ads \xB7 Search Console \xB7 GA4 \xB7 IAM \xB7 BigQuery \uB97C \uBAA8\uB450 \uC5F0\uB2E4.",
904
922
  "\u26A0\uFE0F \uB85C\uADF8\uC778 \uD654\uBA74\uC5D0\uC11C \uAC70\uBD80(access_denied) \uB2F9\uD558\uBA74 \uC571\uC774 \uC544\uC9C1 '\uD14C\uC2A4\uD305' \uBAA8\uB4DC\uB77C \uADF8\uB807\uB2E4 \u2014",
905
923
  " \uC6B4\uC601\uC790\uC5D0\uAC8C \uB124 Google \uACC4\uC815\uC744 Test users \uC5D0 \uCD94\uAC00\uD574\uB2EC\uB77C\uACE0 \uC694\uCCAD\uD574\uC57C \uD55C\uB2E4."
906
924
  ],
907
925
  en: [
908
- "**Nothing** to fetch beforehand. One browser sign-in is all it takes.",
926
+ "For first sign-in, set MIMI_SEED_GOOGLE_CLIENT_ID and MIMI_SEED_GOOGLE_CLIENT_SECRET from a Google Desktop app OAuth client.",
909
927
  "This single token unlocks Firebase \xB7 AdMob \xB7 Play \xB7 Google Ads \xB7 Search Console \xB7 GA4 \xB7 IAM \xB7 BigQuery.",
910
928
  "\u26A0\uFE0F If the login screen blocks you (access_denied), the app is still in 'testing' mode \u2014",
911
929
  " ask whoever operates it to add your Google account under Test users. Retrying alone never works."
@@ -1258,14 +1276,14 @@ var CREDENTIALS = [
1258
1276
  obtain: {
1259
1277
  ko: [
1260
1278
  "Instagram \uACFC **\uBCC4\uAC1C \uACC4\uC815\xB7\uBCC4\uAC1C \uD1A0\uD070**\uC774\uB2E4 (Threads Graph API).",
1261
- "\uAE30\uBCF8 \uD750\uB984: `mimi-seed auth threads`\uB97C \uC2E4\uD589\uD558\uBA74 HTTPS \uBE0C\uB85C\uCEE4\uAC00 \uC5EC\uB294 \uBE0C\uB77C\uC6B0\uC800\uC5D0\uC11C Threads \uB85C\uADF8\uC778\xB7\uAD8C\uD55C \uC2B9\uC778\uC744 \uC644\uB8CC\uD55C\uB2E4.",
1279
+ "`mimi-seed auth threads`\uC5D0\uC11C \uD1A0\uD070\uC744 \uC785\uB825\uD55C\uB2E4. \uD300 \uBE0C\uB85C\uCEE4 \uC8FC\uC18C\uB97C MIMI_SEED_WEB_BASE\uC5D0 \uC124\uC815\uD558\uBA74 \uBE0C\uB77C\uC6B0\uC800\uB85C \uB85C\uADF8\uC778\uD55C\uB2E4.",
1262
1280
  "\uBE0C\uB85C\uCEE4 \uC6B4\uC601\uC790\uB294 Threads App ID/secret\uACFC \uC571\uC5D0 \uB4F1\uB85D\uD55C HTTPS callback URL\uC744 \uC124\uC815\xB7\uBC30\uD3EC\uD574\uC57C \uD55C\uB2E4 (SDK\uAC00 \uBE0C\uB85C\uCEE4\uB97C \uBC30\uD3EC\uD558\uC9C0\uB294 \uC54A\uB294\uB2E4).",
1263
1281
  "\uD1A0\uD070\uC744 \uC9C1\uC811 \uBD99\uC5EC \uB123\uB294 `--manual-token`\uC740 \uACE0\uAE09/\uD5E4\uB4DC\uB9AC\uC2A4 \uD750\uB984\uC774\uB2E4. \uC800\uC7A5 \uC804\uC5D0 Threads \uACC4\uC815\uC744 \uAC80\uC99D\uD55C\uB2E4.",
1264
1282
  "`--profile <id>`\uB85C \uC774\uB984 \uC788\uB294 \uACC4\uC815\uC744 \uC800\uC7A5\uD560 \uC218 \uC788\uC73C\uBA70, OAuth \uC751\uB2F5\uC758 \uC2E4\uC81C \uB9CC\uB8CC \uC2DC\uAC01\uC744 \uB85C\uCEEC \uD504\uB85C\uD544\uC5D0 \uAE30\uB85D\uD55C\uB2E4."
1265
1283
  ],
1266
1284
  en: [
1267
1285
  "A **separate account and token** from Instagram (Threads Graph API).",
1268
- "Default: run `mimi-seed auth threads` and finish Threads login and consent in the browser opened by the HTTPS broker.",
1286
+ "Run `mimi-seed auth threads` to enter a token locally. Set MIMI_SEED_WEB_BASE to a team broker to use browser login.",
1269
1287
  "The broker operator must deploy it with the Threads App ID/secret and the HTTPS callback URL registered in the app (the SDK does not deploy the broker).",
1270
1288
  "Pasting a token with `--manual-token` is the advanced/headless path; the Threads account is verified before saving.",
1271
1289
  "Use `--profile <id>` for a named account; the actual expiry returned by OAuth is saved in the local profile."
@@ -1380,6 +1398,7 @@ function isSatisfied(spec, detected) {
1380
1398
  }
1381
1399
  function missingRequired(detected, platforms) {
1382
1400
  return CREDENTIALS.filter((spec) => {
1401
+ if (spec.id === "mimiseed") return !!consoleUrl(process.env.MIMI_SEED_WEB_BASE) && !isSatisfied(spec, detected);
1383
1402
  if (spec.requirement === "optional") return false;
1384
1403
  if (spec.requirement === "platform" && !platforms.includes(spec.platform)) return false;
1385
1404
  return !isSatisfied(spec, detected);
@@ -1393,6 +1412,7 @@ function planSetup(detected, opts = {}) {
1393
1412
  const platforms = opts.platforms ?? [];
1394
1413
  return CREDENTIALS.filter((spec) => {
1395
1414
  if (only && !only.has(spec.id)) return false;
1415
+ if (spec.id === "mimiseed" && !only && !reconnect.has(spec.id) && !consoleUrl(process.env.MIMI_SEED_WEB_BASE)) return false;
1396
1416
  if (reconnect.has(spec.id)) return true;
1397
1417
  const found = detected.get(spec.id);
1398
1418
  if (found?.freshness === "expired" || found?.freshness === "expiring") return true;
@@ -1413,7 +1433,7 @@ import path7 from "path";
1413
1433
  import { fileURLToPath } from "url";
1414
1434
 
1415
1435
  // package.json
1416
- var version = "0.25.2";
1436
+ var version = "0.25.3";
1417
1437
 
1418
1438
  // src/lib/windows-path.ts
1419
1439
  import path6 from "path";
@@ -2073,7 +2093,8 @@ var CONFIG_LOCATION = CONFIG_PATH;
2073
2093
  async function getEffectiveConfig() {
2074
2094
  const envToken = process.env.MIMI_SEED_TOKEN;
2075
2095
  if (envToken) {
2076
- const webBase = process.env.MIMI_SEED_WEB_BASE ?? "https://mimi-seed.pryzm.gg";
2096
+ const webBase = consoleUrl(process.env.MIMI_SEED_WEB_BASE);
2097
+ if (!webBase) return null;
2077
2098
  return {
2078
2099
  token: envToken,
2079
2100
  prefix: envToken.slice(0, 8),
@@ -2082,7 +2103,8 @@ async function getEffectiveConfig() {
2082
2103
  createdAt: (/* @__PURE__ */ new Date()).toISOString()
2083
2104
  };
2084
2105
  }
2085
- return readConfig();
2106
+ const saved = await readConfig();
2107
+ return saved?.token && consoleUrl(saved.webBase) && consoleUrl(saved.endpoint) ? saved : null;
2086
2108
  }
2087
2109
 
2088
2110
  // src/deploy-stream.ts
@@ -2696,7 +2718,7 @@ var M8 = catalog(
2696
2718
  buildEnded: (result) => `\uBE4C\uB4DC \uC885\uB8CC: ${result}`,
2697
2719
  alreadyBuiltHint: (versionCode, platform) => ` \uBE4C\uB4DC\uAC00 \uC774\uBBF8 \uC644\uB8CC\uB410\uB2E4\uBA74: mimi-seed deploy --skip-build --version-code ${versionCode} --platform ${platform}`,
2698
2720
  // cmdDeploy
2699
- noAccount: "\uC5F0\uACB0\uB41C \uACC4\uC815 \uC5C6\uC74C. `mimi-seed init` \uC2E4\uD589.",
2721
+ noAccount: "\uC6D0\uACA9 \uAE30\uB2A5\uC740 MIMI_SEED_WEB_BASE\uB97C \uD300 \uCF58\uC194 \uC8FC\uC18C\uB85C \uC124\uC815\uD558\uACE0 `mimi-seed init`\uC73C\uB85C \uC5F0\uACB0\uD558\uC138\uC694.",
2700
2722
  title: (platform) => `mimi-seed deploy \u2014 ${platform}`,
2701
2723
  dryRunNotice: " [dry-run \uBAA8\uB4DC] \uC2E4\uC81C \uBC30\uD3EC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4",
2702
2724
  ciLine: (kind) => ` CI: ${kind}`,
@@ -2780,7 +2802,7 @@ var M8 = catalog(
2780
2802
  buildEnded: (result) => `Build ended: ${result}`,
2781
2803
  alreadyBuiltHint: (versionCode, platform) => ` If the build already finished: mimi-seed deploy --skip-build --version-code ${versionCode} --platform ${platform}`,
2782
2804
  // cmdDeploy
2783
- noAccount: "No account connected. Run `mimi-seed init`.",
2805
+ noAccount: "For remote commands, set MIMI_SEED_WEB_BASE to your team console and run `mimi-seed init`.",
2784
2806
  title: (platform) => `mimi-seed deploy \u2014 ${platform}`,
2785
2807
  dryRunNotice: " [dry-run] nothing will actually be deployed",
2786
2808
  ciLine: (kind) => ` CI: ${kind}`,
@@ -3305,7 +3327,6 @@ import fs13 from "fs";
3305
3327
  import os9 from "os";
3306
3328
  import path16 from "path";
3307
3329
  import { createHmac, randomUUID as randomUUID5 } from "crypto";
3308
- var ENDPOINT = "https://mimi-seed.pryzm.gg/api/sdk-usage";
3309
3330
  var M9 = catalog(
3310
3331
  {
3311
3332
  notice: "\uC120\uD0DD\uC801 \uC0AC\uC6A9\uB7C9 \uCE21\uC815\uC740 \uAEBC\uC838 \uC788\uC2B5\uB2C8\uB2E4. \uC548\uB0B4: mimi-seed telemetry --help\n",
@@ -3321,9 +3342,10 @@ var M9 = catalog(
3321
3342
  }
3322
3343
  );
3323
3344
  var location = () => path16.join(os9.homedir(), ".mimi-seed", "telemetry.json");
3324
- function readConsent() {
3345
+ function readConsent(webBase) {
3325
3346
  try {
3326
- return JSON.parse(fs13.readFileSync(location(), "utf8"));
3347
+ const saved = JSON.parse(fs13.readFileSync(location(), "utf8"));
3348
+ return saved.webBase === webBase ? saved : { enabled: false };
3327
3349
  } catch {
3328
3350
  return { enabled: false };
3329
3351
  }
@@ -3332,8 +3354,10 @@ function writeConsent(value) {
3332
3354
  writeCredentialJson(location(), value);
3333
3355
  }
3334
3356
  function telemetryEnabled() {
3357
+ const webBase = consoleUrl(process.env.MIMI_SEED_WEB_BASE);
3358
+ if (!webBase) return false;
3335
3359
  if (process.env.MIMI_SEED_TELEMETRY !== void 0) return process.env.MIMI_SEED_TELEMETRY === "1";
3336
- return readConsent().enabled === true;
3360
+ return readConsent(webBase).enabled === true;
3337
3361
  }
3338
3362
  function telemetryNotice() {
3339
3363
  return telemetryEnabled() ? "" : M9().notice;
@@ -3345,9 +3369,10 @@ function cmdTelemetry(argv) {
3345
3369
  process.exitCode = 2;
3346
3370
  return;
3347
3371
  }
3348
- if (action === "on") {
3349
- const consent = readConsent();
3350
- writeConsent({ enabled: true, installationId: consent.installationId ?? randomUUID5(), salt: consent.salt ?? randomUUID5() });
3372
+ const webBase = consoleUrl(process.env.MIMI_SEED_WEB_BASE);
3373
+ if (action === "on" && webBase) {
3374
+ const consent = readConsent(webBase);
3375
+ writeConsent({ webBase, enabled: true, installationId: consent.installationId ?? randomUUID5(), salt: consent.salt ?? randomUUID5() });
3351
3376
  }
3352
3377
  if (action === "off") writeConsent({ enabled: false });
3353
3378
  process.stdout.write(telemetryEnabled() ? M9().enabled : M9().disabled);
@@ -3364,13 +3389,14 @@ function frameworkAt(root) {
3364
3389
  return "native-or-unknown";
3365
3390
  }
3366
3391
  function usageRun(command, projectPath) {
3367
- if (!telemetryEnabled()) return async () => {
3392
+ const baseUrl = consoleUrl(process.env.MIMI_SEED_WEB_BASE);
3393
+ if (!baseUrl || !telemetryEnabled()) return async () => {
3368
3394
  };
3369
3395
  try {
3370
- const consent = readConsent();
3396
+ const consent = readConsent(baseUrl);
3371
3397
  const installationId = consent.installationId ?? randomUUID5();
3372
3398
  const salt = consent.salt ?? randomUUID5();
3373
- if (!consent.installationId || !consent.salt) writeConsent({ enabled: consent.enabled, installationId, salt });
3399
+ if (!consent.installationId || !consent.salt) writeConsent({ webBase: baseUrl, enabled: consent.enabled, installationId, salt });
3374
3400
  let normalized = path16.resolve(projectPath);
3375
3401
  try {
3376
3402
  normalized = fs13.realpathSync(normalized);
@@ -3390,7 +3416,7 @@ function usageRun(command, projectPath) {
3390
3416
  };
3391
3417
  const started = Date.now();
3392
3418
  return async (outcome, report) => {
3393
- if (!telemetryEnabled()) return;
3419
+ if (!telemetryEnabled() || consoleUrl(process.env.MIMI_SEED_WEB_BASE) !== baseUrl) return;
3394
3420
  const payload = {
3395
3421
  ...base2,
3396
3422
  outcome,
@@ -3399,7 +3425,7 @@ function usageRun(command, projectPath) {
3399
3425
  codes: [...new Set(report?.findings.map((f) => f.code).filter((c) => /^[a-zA-Z0-9_]{1,80}$/.test(c)) ?? [])].slice(0, 60)
3400
3426
  };
3401
3427
  try {
3402
- await fetchWithTimeout(ENDPOINT, {
3428
+ await fetchWithTimeout(`${baseUrl}/api/sdk-usage`, {
3403
3429
  method: "POST",
3404
3430
  headers: { "content-type": "application/json" },
3405
3431
  body: JSON.stringify(payload),
@@ -3654,6 +3680,7 @@ async function cmdSetup(argv) {
3654
3680
  }
3655
3681
 
3656
3682
  export {
3683
+ consoleUrl,
3657
3684
  isLang,
3658
3685
  resolveLang,
3659
3686
  catalog,
@@ -3676,6 +3703,8 @@ export {
3676
3703
  fetchWithTimeout,
3677
3704
  detectHints,
3678
3705
  hasAnyProjectSignal,
3706
+ findProjectLink,
3707
+ linkProject,
3679
3708
  lookupProjectManifest,
3680
3709
  manifestServiceEntries,
3681
3710
  credLabel,
@@ -3686,18 +3715,16 @@ export {
3686
3715
  credentialFileProblemMessage,
3687
3716
  credentialProblemText,
3688
3717
  isSatisfied,
3689
- version,
3690
3718
  absoluteWindowsPathDirs,
3691
- MCP_PKG,
3692
- runMcpBin,
3693
3719
  migrateLegacyJenkins,
3694
- findProjectLink,
3695
- linkProject,
3696
- cmdDeploy,
3697
- writeSettings,
3720
+ version,
3698
3721
  telemetryNotice,
3699
3722
  cmdTelemetry,
3700
3723
  usageRun,
3724
+ MCP_PKG,
3725
+ runMcpBin,
3726
+ cmdDeploy,
3727
+ writeSettings,
3701
3728
  parseSetupArgs,
3702
3729
  resolveMode,
3703
3730
  cmdSetup