mimi-seed 0.23.1 → 0.23.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.
@@ -949,7 +949,7 @@ function t() {
949
949
  }
950
950
 
951
951
  // package.json
952
- var version = "0.23.1";
952
+ var version = "0.23.3";
953
953
 
954
954
  // src/lib/windows-path.ts
955
955
  import path4 from "path";
@@ -1872,6 +1872,11 @@ async function verifyCiToken(cfg) {
1872
1872
  return { ok: false, reason: e instanceof Error ? e.message : String(e) };
1873
1873
  }
1874
1874
  }
1875
+ function isGitHubWorkflowRun(value) {
1876
+ if (typeof value !== "object" || value === null) return false;
1877
+ const run = value;
1878
+ return typeof run.id === "number" && Number.isSafeInteger(run.id) && run.id > 0 && typeof run.html_url === "string" && run.html_url.length > 0 && typeof run.created_at === "string" && Number.isFinite(Date.parse(run.created_at));
1879
+ }
1875
1880
  async function ghTriggerWorkflow(cfg, workflow, ref, inputs = {}) {
1876
1881
  const startTime = /* @__PURE__ */ new Date();
1877
1882
  const wfId = /^\d+$/.test(workflow) ? Number(workflow) : workflow;
@@ -1893,7 +1898,9 @@ async function ghTriggerWorkflow(cfg, workflow, ref, inputs = {}) {
1893
1898
  );
1894
1899
  if (!runsRes.ok) return null;
1895
1900
  const data = await runsRes.json();
1896
- const run = data.workflow_runs.find((r) => new Date(r.created_at) >= startTime) ?? data.workflow_runs[0];
1901
+ if (typeof data !== "object" || data === null || !("workflow_runs" in data) || !Array.isArray(data.workflow_runs)) return null;
1902
+ const runs = data.workflow_runs.filter(isGitHubWorkflowRun);
1903
+ const run = runs.find((entry) => new Date(entry.created_at) >= startTime) ?? runs[0];
1897
1904
  if (!run) return null;
1898
1905
  return { runId: run.id, url: run.html_url };
1899
1906
  }
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  version,
34
34
  writeConfig,
35
35
  writeSettings
36
- } from "./chunk-T43UC3KW.js";
36
+ } from "./chunk-IDBL4JZU.js";
37
37
 
38
38
  // src/index.ts
39
39
  import kleur11 from "kleur";
@@ -287,7 +287,7 @@ async function cmdAuth(args) {
287
287
  if (sub === "threads") return void exitWith(await runMcpBin("mimi-seed-social-auth", ["threads", ...rest]));
288
288
  if (sub === "tiktok") return void exitWith(await runMcpBin("mimi-seed-tiktok-business-auth", rest));
289
289
  if (sub === "ci") {
290
- const { cmdSetup: cmdSetup2 } = await import("./setup-A2E6HOV3.js");
290
+ const { cmdSetup: cmdSetup2 } = await import("./setup-VVC5VF2O.js");
291
291
  await cmdSetup2(["--only", "github,gitlab", "--reconnect", "github,gitlab"]);
292
292
  return;
293
293
  }
@@ -3,7 +3,7 @@ import {
3
3
  cmdSetup,
4
4
  parseSetupArgs,
5
5
  resolveMode
6
- } from "./chunk-T43UC3KW.js";
6
+ } from "./chunk-IDBL4JZU.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.23.1",
14
+ "version": "0.23.3",
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"