@proagentstore/cli 0.1.29 → 0.1.30
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/index.js +11 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -972,13 +972,17 @@ function createRunnerCommand() {
|
|
|
972
972
|
const capabilities = await requestRunner("GET", "/capabilities", { url: localUrl, token: runnerToken, instanceId: primary });
|
|
973
973
|
const caps = Array.isArray(capabilities.capabilities) ? capabilities.capabilities.filter((item) => typeof item === "string") : [];
|
|
974
974
|
for (const id of instanceIds) {
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
975
|
+
try {
|
|
976
|
+
await requestPags("POST", `/v1/instances/${apiPathSegment(id)}/runtime`, opts, {
|
|
977
|
+
endpointUrl: url,
|
|
978
|
+
token: runnerToken,
|
|
979
|
+
placement: "local",
|
|
980
|
+
capabilities: caps,
|
|
981
|
+
runnerVersion: clean(opts.runnerVersion) || ""
|
|
982
|
+
});
|
|
983
|
+
} catch (error) {
|
|
984
|
+
writeError(`register ${id.slice(0, 8)}\u2026 failed (${error instanceof Error ? error.message : String(error)}); will retry`);
|
|
985
|
+
}
|
|
982
986
|
}
|
|
983
987
|
};
|
|
984
988
|
const first = await openTunnel();
|