ai-fly 0.3.1-alpha.1 → 0.3.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.
- package/dist/ai-fly.js +2 -2
- package/dist/{import-CbECabPN.mjs → import-rpBFh_pa.mjs} +1 -1
- package/dist/{run-DRtQOR4z.mjs → run-3pdPsD8e.mjs} +1 -1
- package/dist/{runtime-BYfJMs47.mjs → runtime-DNs9GtGp.mjs} +6 -1
- package/dist/{status-CZOHUEZT.mjs → status-Bttb9aPj.mjs} +1 -1
- package/package.json +1 -1
package/dist/ai-fly.js
CHANGED
|
@@ -61,7 +61,7 @@ async function dispatch(command, rest) {
|
|
|
61
61
|
const lazy = (load) => {
|
|
62
62
|
return (argv, ctx) => load().then((m) => m.run([...argv], ctx));
|
|
63
63
|
};
|
|
64
|
-
return match(command).with("serve", () => lazy(() => import("./serve-DSBlodTF.mjs"))(rest)).with("daemon", () => lazy(() => import("./daemon-ZWUSWAgM.mjs"))(rest)).with("presets", () => lazy(() => import("./presets-C73CAMZ6.mjs"))(rest)).with("secret", () => lazy(() => import("./secret-COdVHzjH.mjs"))(rest)).with("settings", async () => (await import("./settings-DU0YqNDt.mjs")).runAsSettings(rest, {})).with("relay", async () => (await import("./settings-DU0YqNDt.mjs")).runAsRelay(rest, {})).with("test", () => lazy(() => import("./test-mlaZC1y5.mjs"))(rest)).with("service", () => lazy(() => import("./service-B5uORhl3.mjs"))(rest)).with("group", () => lazy(() => import("./group-B96IKEDF.mjs"))(rest)).with("share", () => lazy(() => import("./share-Cug0944N.mjs"))(rest)).with("revoke", () => lazy(() => import("./revoke-CkpvK33Q.mjs"))(rest)).with("join", () => lazy(() => import("./join-CaFx5yoF.mjs"))(rest)).with("import", () => lazy(() => import("./import-
|
|
64
|
+
return match(command).with("serve", () => lazy(() => import("./serve-DSBlodTF.mjs"))(rest)).with("daemon", () => lazy(() => import("./daemon-ZWUSWAgM.mjs"))(rest)).with("presets", () => lazy(() => import("./presets-C73CAMZ6.mjs"))(rest)).with("secret", () => lazy(() => import("./secret-COdVHzjH.mjs"))(rest)).with("settings", async () => (await import("./settings-DU0YqNDt.mjs")).runAsSettings(rest, {})).with("relay", async () => (await import("./settings-DU0YqNDt.mjs")).runAsRelay(rest, {})).with("test", () => lazy(() => import("./test-mlaZC1y5.mjs"))(rest)).with("service", () => lazy(() => import("./service-B5uORhl3.mjs"))(rest)).with("group", () => lazy(() => import("./group-B96IKEDF.mjs"))(rest)).with("share", () => lazy(() => import("./share-Cug0944N.mjs"))(rest)).with("revoke", () => lazy(() => import("./revoke-CkpvK33Q.mjs"))(rest)).with("join", () => lazy(() => import("./join-CaFx5yoF.mjs"))(rest)).with("import", () => lazy(() => import("./import-rpBFh_pa.mjs"))(rest)).with("run", () => lazy(() => import("./run-3pdPsD8e.mjs"))(rest)).with("ports", () => lazy(() => import("./ports-BRXd5UXh.mjs"))(rest)).with("forget", () => lazy(() => import("./forget-BXL2x4Wv.mjs"))(rest)).with("key", () => {
|
|
65
65
|
if (rest[0] === "add") return lazy(() => import("./key-KcUU3yhJ.mjs"))(rest);
|
|
66
66
|
return lazy(() => import("./key-BiEp995L.mjs"))(rest);
|
|
67
67
|
}).with("status", async () => {
|
|
@@ -71,7 +71,7 @@ async function dispatch(command, rest) {
|
|
|
71
71
|
const argv = scope === "provider" || scope === "consumer" ? tail : rest;
|
|
72
72
|
let code = 0;
|
|
73
73
|
if (wantProvider) code = Math.max(code, await lazy(() => import("./status-SkNsxGnk.mjs"))(argv));
|
|
74
|
-
if (wantConsumer) code = Math.max(code, await lazy(() => import("./status-
|
|
74
|
+
if (wantConsumer) code = Math.max(code, await lazy(() => import("./status-Bttb9aPj.mjs"))(argv));
|
|
75
75
|
if (!wantProvider && !wantConsumer) process.stdout.write("nothing to report: no provider storage and no imported consumers\n");
|
|
76
76
|
return code;
|
|
77
77
|
}).otherwise(() => {
|
|
@@ -3,7 +3,7 @@ import { n as parseArgv } from "./args-CSxXW9eD.mjs";
|
|
|
3
3
|
import { n as consumersRoot, s as listKeyrings } from "./store-CQShpYar.mjs";
|
|
4
4
|
import { a as ringsForRun, i as printListeners, n as ctxHomedir, o as waitForSignals, r as ctxOut, t as createSdkFabricFactory } from "./common-CgxCXeTt.mjs";
|
|
5
5
|
import { a as importLink, i as formatLinkPreview, n as decodeShareLink, r as formatKeyringSummary } from "./join-u1DqTU3U.mjs";
|
|
6
|
-
import { n as createFabricProviderTransport, t as startEngine } from "./runtime-
|
|
6
|
+
import { n as createFabricProviderTransport, t as startEngine } from "./runtime-DNs9GtGp.mjs";
|
|
7
7
|
import { homedir } from "node:os";
|
|
8
8
|
//#region src/cli/commands/consumer/import.ts
|
|
9
9
|
async function run(argv, ctx = {}) {
|
|
@@ -2,7 +2,7 @@ import { n as UsageError, r as reportCliError, t as CliError } from "./errors-BG
|
|
|
2
2
|
import { n as parseArgv } from "./args-CSxXW9eD.mjs";
|
|
3
3
|
import { n as consumersRoot, s as listKeyrings } from "./store-CQShpYar.mjs";
|
|
4
4
|
import { a as ringsForRun, i as printListeners, n as ctxHomedir, o as waitForSignals, r as ctxOut, t as createSdkFabricFactory } from "./common-CgxCXeTt.mjs";
|
|
5
|
-
import { n as createFabricProviderTransport, t as startEngine } from "./runtime-
|
|
5
|
+
import { n as createFabricProviderTransport, t as startEngine } from "./runtime-DNs9GtGp.mjs";
|
|
6
6
|
import { a as killHard, c as terminateGracefully, i as isAlive, l as writeLastStart, n as daemonDir, o as readLastStart, r as ensureDaemonDir, s as readPid, t as clearPid, u as writePid } from "./daemon-state-CYkiW3SA.mjs";
|
|
7
7
|
import { openSync, readFileSync } from "node:fs";
|
|
8
8
|
import { resolve } from "node:path";
|
|
@@ -371,7 +371,12 @@ var ProviderConnection = class {
|
|
|
371
371
|
seen.add(s.serviceId);
|
|
372
372
|
services.push(s);
|
|
373
373
|
}
|
|
374
|
-
|
|
374
|
+
const persisted = loadKeyring(this.root, this.ring.endpointId);
|
|
375
|
+
const base = persisted === void 0 ? this.ring : {
|
|
376
|
+
...this.ring,
|
|
377
|
+
actualPorts: persisted.actualPorts
|
|
378
|
+
};
|
|
379
|
+
let ring = applyCatalog(base, {
|
|
375
380
|
alias: header.alias,
|
|
376
381
|
relayUrls: header.relayUrls,
|
|
377
382
|
services
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as parseArgv } from "./args-CSxXW9eD.mjs";
|
|
2
2
|
import { n as consumersRoot, s as listKeyrings } from "./store-CQShpYar.mjs";
|
|
3
3
|
import { a as ringsForRun, n as ctxHomedir, r as ctxOut, t as createSdkFabricFactory } from "./common-CgxCXeTt.mjs";
|
|
4
|
-
import { n as createFabricProviderTransport, t as startEngine } from "./runtime-
|
|
4
|
+
import { n as createFabricProviderTransport, t as startEngine } from "./runtime-DNs9GtGp.mjs";
|
|
5
5
|
import { homedir } from "node:os";
|
|
6
6
|
//#region src/cli/commands/consumer/status.ts
|
|
7
7
|
/** 状态显示名(spec 六态)。 */
|