@jamiexiongr/panda-hub 0.1.27 → 0.1.29
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.
|
@@ -8971,7 +8971,7 @@ const killByPort = async (port) => {
|
|
|
8971
8971
|
for (const pid of pids) {
|
|
8972
8972
|
if (process.platform === 'win32') {
|
|
8973
8973
|
await new Promise((resolve) => {
|
|
8974
|
-
const child = spawn('taskkill', ['/pid', String(pid), '/
|
|
8974
|
+
const child = spawn('taskkill', ['/pid', String(pid), '/f'], {
|
|
8975
8975
|
stdio: 'ignore',
|
|
8976
8976
|
windowsHide: true,
|
|
8977
8977
|
})
|
|
@@ -9983,26 +9983,7 @@ var createDevManager = ({
|
|
|
9983
9983
|
await job.succeed("\u6B63\u5F0F\u7248 Hub \u4E0E Agent \u670D\u52A1\u5DF2\u79FB\u9664\u3002");
|
|
9984
9984
|
});
|
|
9985
9985
|
};
|
|
9986
|
-
const launchDetachedHelper = (helperSourcePath, helperPayloadPath) => {
|
|
9987
|
-
if (process.platform === "win32") {
|
|
9988
|
-
const escapePowerShellLiteral = (value) => value.replaceAll("'", "''");
|
|
9989
|
-
const command = [
|
|
9990
|
-
`$nodePath = '${escapePowerShellLiteral(process.execPath)}'`,
|
|
9991
|
-
`$argumentList = @('${escapePowerShellLiteral(helperSourcePath)}', '${escapePowerShellLiteral(helperPayloadPath)}')`,
|
|
9992
|
-
"Start-Process -FilePath $nodePath -ArgumentList $argumentList -WindowStyle Hidden"
|
|
9993
|
-
].join("; ");
|
|
9994
|
-
const launcher = spawn3(
|
|
9995
|
-
"powershell.exe",
|
|
9996
|
-
["-NoProfile", "-Command", command],
|
|
9997
|
-
{
|
|
9998
|
-
detached: true,
|
|
9999
|
-
stdio: "ignore",
|
|
10000
|
-
windowsHide: true
|
|
10001
|
-
}
|
|
10002
|
-
);
|
|
10003
|
-
launcher.unref();
|
|
10004
|
-
return "powershell-start-process";
|
|
10005
|
-
}
|
|
9986
|
+
const launchDetachedHelper = async (helperSourcePath, helperPayloadPath) => await new Promise((resolve, reject) => {
|
|
10006
9987
|
const helper = spawn3(
|
|
10007
9988
|
process.execPath,
|
|
10008
9989
|
[helperSourcePath, helperPayloadPath],
|
|
@@ -10012,9 +9993,15 @@ var createDevManager = ({
|
|
|
10012
9993
|
windowsHide: true
|
|
10013
9994
|
}
|
|
10014
9995
|
);
|
|
10015
|
-
helper.
|
|
10016
|
-
|
|
10017
|
-
|
|
9996
|
+
helper.once("error", reject);
|
|
9997
|
+
helper.once("spawn", () => {
|
|
9998
|
+
helper.unref();
|
|
9999
|
+
resolve({
|
|
10000
|
+
mode: "direct-spawn",
|
|
10001
|
+
pid: helper.pid ?? null
|
|
10002
|
+
});
|
|
10003
|
+
});
|
|
10004
|
+
});
|
|
10018
10005
|
const spawnReleaseRecoveryHelper = async (input) => {
|
|
10019
10006
|
const { config } = await readStoredConfig(codexHome);
|
|
10020
10007
|
const releaseHubServiceStatus = queryWindowsServiceStatus(config.release_hub_service_name);
|
|
@@ -10075,12 +10062,13 @@ var createDevManager = ({
|
|
|
10075
10062
|
}
|
|
10076
10063
|
]
|
|
10077
10064
|
});
|
|
10078
|
-
const
|
|
10065
|
+
const helperLaunch = await launchDetachedHelper(helperSourcePath, helperPayloadPath);
|
|
10079
10066
|
logger.info({
|
|
10080
10067
|
jobId: job.id,
|
|
10081
10068
|
helperSourcePath,
|
|
10082
10069
|
helperPayloadPath,
|
|
10083
|
-
helperLaunchMode
|
|
10070
|
+
helperLaunchMode: helperLaunch.mode,
|
|
10071
|
+
helperPid: helperLaunch.pid
|
|
10084
10072
|
}, "Spawned detached release install helper.");
|
|
10085
10073
|
return job;
|
|
10086
10074
|
};
|
|
@@ -11965,7 +11953,7 @@ ${attachmentNames.map((name) => `- ${name}`).join("\n")}` : null
|
|
|
11965
11953
|
return nextOverlayEntries;
|
|
11966
11954
|
};
|
|
11967
11955
|
const readTimelineFromRollout = async (sessionId) => {
|
|
11968
|
-
const { readCodexTimeline } = await import("./src-
|
|
11956
|
+
const { readCodexTimeline } = await import("./src-QDSFJEPG.mjs");
|
|
11969
11957
|
return readCodexTimeline(sessionId, {
|
|
11970
11958
|
codexHome,
|
|
11971
11959
|
sessionFiles: discoveredSessionFiles
|
|
@@ -13471,7 +13459,7 @@ ${attachmentNames.map((name) => `- ${name}`).join("\n")}` : null
|
|
|
13471
13459
|
lastSnapshotRefreshAt = Date.now();
|
|
13472
13460
|
return snapshot;
|
|
13473
13461
|
}
|
|
13474
|
-
const { discoverLocalCodexData } = await import("./src-
|
|
13462
|
+
const { discoverLocalCodexData } = await import("./src-QDSFJEPG.mjs");
|
|
13475
13463
|
const discovery = await discoverLocalCodexData({
|
|
13476
13464
|
agentId: localAgentId,
|
|
13477
13465
|
agentName: localAgentName,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
resolveTailscalePublicationMode,
|
|
6
6
|
resolveTailscaleServePort,
|
|
7
7
|
startPandaSessionService
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HVRU7VLO.mjs";
|
|
9
9
|
|
|
10
10
|
// release/panda-hub/src/index.ts
|
|
11
11
|
import fs from "fs";
|
|
@@ -15,7 +15,7 @@ import { fileURLToPath as fileURLToPath2 } from "url";
|
|
|
15
15
|
// release/panda-hub/package.json
|
|
16
16
|
var package_default = {
|
|
17
17
|
name: "@jamiexiongr/panda-hub",
|
|
18
|
-
version: "0.1.
|
|
18
|
+
version: "0.1.29",
|
|
19
19
|
type: "module",
|
|
20
20
|
private: false,
|
|
21
21
|
description: "Panda hub runtime",
|
package/dist/cli.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
manageJamiexiongrHubService,
|
|
3
3
|
startJamiexiongrHub
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TYN77KEH.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveTailscalePublicationMode
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HVRU7VLO.mjs";
|
|
8
8
|
import "./chunk-AEQMWH7D.mjs";
|
|
9
9
|
|
|
10
10
|
// release/panda-hub/src/cli.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
manageJamiexiongrHubService,
|
|
3
3
|
startJamiexiongrHub
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TYN77KEH.mjs";
|
|
5
|
+
import "./chunk-HVRU7VLO.mjs";
|
|
6
6
|
import "./chunk-AEQMWH7D.mjs";
|
|
7
7
|
export {
|
|
8
8
|
manageJamiexiongrHubService,
|