camstack 1.2.17 → 1.2.18
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/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runDiscover
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DNOHVKC5.js";
|
|
5
5
|
import "./chunk-LMMQX4CK.js";
|
|
6
6
|
|
|
7
7
|
// src/cli.ts
|
|
@@ -38,7 +38,7 @@ async function runServe(args) {
|
|
|
38
38
|
...typeof values.data === "string" ? { data: values.data } : {}
|
|
39
39
|
};
|
|
40
40
|
Object.assign(process.env, buildServeEnv(opts));
|
|
41
|
-
await import("./launcher-
|
|
41
|
+
await import("./launcher-KGB5UIEY.js");
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
// src/commands/agent.ts
|
|
@@ -83,7 +83,7 @@ async function runAgent(args) {
|
|
|
83
83
|
...typeof values.port === "string" ? { port: values.port } : {}
|
|
84
84
|
};
|
|
85
85
|
Object.assign(process.env, buildAgentEnv(opts));
|
|
86
|
-
await import("./launcher-
|
|
86
|
+
await import("./launcher-KGB5UIEY.js");
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
// src/commands/setup.ts
|
|
@@ -891,7 +891,7 @@ function toStatusView(value) {
|
|
|
891
891
|
};
|
|
892
892
|
}
|
|
893
893
|
async function fetchServerStatus(serverUrl, token) {
|
|
894
|
-
const url =
|
|
894
|
+
const url = serverPackageStatusUrl(serverUrl);
|
|
895
895
|
const res = await hubRequest(url, {
|
|
896
896
|
headers: { Authorization: `Bearer ${token}` },
|
|
897
897
|
timeoutMs: 1e4
|
|
@@ -900,6 +900,9 @@ async function fetchServerStatus(serverUrl, token) {
|
|
|
900
900
|
const body = await res.json().catch(() => null);
|
|
901
901
|
return toStatusView(unwrapTrpcJson(body));
|
|
902
902
|
}
|
|
903
|
+
function serverPackageStatusUrl(serverUrl) {
|
|
904
|
+
return `${serverUrl}/trpc/serverManagement.getServerPackageStatus?input=${encodeURIComponent('{"json":{}}')}`;
|
|
905
|
+
}
|
|
903
906
|
async function pollUntilPromoted(args) {
|
|
904
907
|
const deadline = Date.now() + POLL_BUDGET_MS;
|
|
905
908
|
let lastState = "";
|
|
@@ -1127,7 +1130,7 @@ function isUnknown(_value) {
|
|
|
1127
1130
|
return true;
|
|
1128
1131
|
}
|
|
1129
1132
|
async function resolveServerInteractive(presetNamespace) {
|
|
1130
|
-
const { discoverNodes, resolveHubFromDiscovered, filterHubNodes, DEFAULT_HUB_HTTPS_PORT } = await import("./discover-
|
|
1133
|
+
const { discoverNodes, resolveHubFromDiscovered, filterHubNodes, DEFAULT_HUB_HTTPS_PORT } = await import("./discover-X6QNQEDL.js");
|
|
1131
1134
|
if (presetNamespace) {
|
|
1132
1135
|
const spinner4 = clack.spinner();
|
|
1133
1136
|
spinner4.start(`Discovering hub on LAN (namespace "${presetNamespace}")`);
|