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.
|
|
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
|
-
|
|
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-
|
|
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-
|
|
290
|
+
const { cmdSetup: cmdSetup2 } = await import("./setup-VVC5VF2O.js");
|
|
291
291
|
await cmdSetup2(["--only", "github,gitlab", "--reconnect", "github,gitlab"]);
|
|
292
292
|
return;
|
|
293
293
|
}
|
package/package.json
CHANGED