@agentknight/client 0.9.56 → 0.9.59
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/README.md +17 -4
- package/dist/chunks/{aad-relay-login-WQG3PP44.js → aad-relay-login-SAFMTR5U.js} +2 -2
- package/dist/chunks/{chunk-O7KHVYQG.js → chunk-7G6J645I.js} +1 -1
- package/dist/chunks/{chunk-CG5LD6VF.js → chunk-ANVWLKOO.js} +1 -1
- package/dist/chunks/{chunk-KW4VLCH7.js → chunk-UVAF42HQ.js} +1035 -693
- package/dist/chunks/{chunk-WZIU4HVH.js → chunk-WMAAFZJ3.js} +3 -9
- package/dist/chunks/{chunk-TB7CMFWU.js → chunk-ZNDJBPQD.js} +11 -7
- package/dist/chunks/{local-sessions-FSIFD3QQ.js → local-sessions-FLTWEBAI.js} +1 -1
- package/dist/chunks/{runtime-CTACRJCK.js → runtime-QUFPIXMR.js} +1 -1
- package/dist/chunks/{start-client-5DVM75NR.js → start-client-TO5VFFM5.js} +23 -12
- package/dist/chunks/{stop-client-PHRAMW5R.js → stop-client-OXQVYCBB.js} +1 -1
- package/dist/chunks/{upgrade-4IKPYFYS.js → upgrade-UFKH6YNE.js} +2 -2
- package/dist/cli.js +6 -6
- package/dist/upgrade-worker.js +383 -58
- package/package.json +4 -4
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
resolveUpgradeVersion,
|
|
10
10
|
runNpm,
|
|
11
11
|
updateJobState
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ANVWLKOO.js";
|
|
13
13
|
import "./chunk-CNWBK4LE.js";
|
|
14
14
|
import {
|
|
15
15
|
processExists,
|
|
16
16
|
readRuntimeDescriptor,
|
|
17
17
|
requestRuntime
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WMAAFZJ3.js";
|
|
19
19
|
import {
|
|
20
20
|
readOptionalJson,
|
|
21
21
|
writePrivateJson
|
package/dist/cli.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readAppVersion,
|
|
4
4
|
toErrorDetails
|
|
5
|
-
} from "./chunks/chunk-
|
|
5
|
+
} from "./chunks/chunk-7G6J645I.js";
|
|
6
6
|
|
|
7
7
|
// src/index.ts
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
@@ -192,7 +192,7 @@ async function main() {
|
|
|
192
192
|
for (const warning of resolved.warnings ?? []) process.stderr.write(`AgentKnight: ${warning}
|
|
193
193
|
`);
|
|
194
194
|
if (cliOptions.command === "peer-chat") {
|
|
195
|
-
const { processExists, readRuntimeDescriptor, requestPeerChat } = await import("./chunks/runtime-
|
|
195
|
+
const { processExists, readRuntimeDescriptor, requestPeerChat } = await import("./chunks/runtime-QUFPIXMR.js");
|
|
196
196
|
const descriptor = await readRuntimeDescriptor(resolved.dataDirectory);
|
|
197
197
|
if (descriptor === void 0 || !processExists(descriptor.pid)) {
|
|
198
198
|
throw new Error("No Agent is running for this home. Start the Agent before using peer-chat.");
|
|
@@ -214,14 +214,14 @@ async function main() {
|
|
|
214
214
|
return;
|
|
215
215
|
}
|
|
216
216
|
if (cliOptions.command === "stop") {
|
|
217
|
-
const { stopClient } = await import("./chunks/stop-client-
|
|
217
|
+
const { stopClient } = await import("./chunks/stop-client-OXQVYCBB.js");
|
|
218
218
|
await stopClient(resolved.dataDirectory, cliOptions.expectedPid);
|
|
219
219
|
process.stdout.write(cliOptions.json ? `${JSON.stringify({ state: "stopped" })}
|
|
220
220
|
` : "PC Agent stopped.\n");
|
|
221
221
|
return;
|
|
222
222
|
}
|
|
223
223
|
if (cliOptions.command === "status") {
|
|
224
|
-
const [{ processExists, readRuntimeDescriptor, requestRuntime }, { readLastUpgrade, readUpgradeState }] = await Promise.all([import("./chunks/runtime-
|
|
224
|
+
const [{ processExists, readRuntimeDescriptor, requestRuntime }, { readLastUpgrade, readUpgradeState }] = await Promise.all([import("./chunks/runtime-QUFPIXMR.js"), import("./chunks/upgrade-state-QXZT3TTS.js")]);
|
|
225
225
|
const descriptor = await readRuntimeDescriptor(resolved.dataDirectory);
|
|
226
226
|
const runtime = descriptor === void 0 || !processExists(descriptor.pid) ? void 0 : await requestRuntime(descriptor, "status");
|
|
227
227
|
const lastUpgrade = await readLastUpgrade(resolved.dataDirectory);
|
|
@@ -244,7 +244,7 @@ async function main() {
|
|
|
244
244
|
return;
|
|
245
245
|
}
|
|
246
246
|
if (cliOptions.command === "upgrade") {
|
|
247
|
-
const { upgrade } = await import("./chunks/upgrade-
|
|
247
|
+
const { upgrade } = await import("./chunks/upgrade-UFKH6YNE.js");
|
|
248
248
|
await upgrade({
|
|
249
249
|
dataDirectory: resolved.dataDirectory,
|
|
250
250
|
currentVersion: appVersion,
|
|
@@ -255,7 +255,7 @@ async function main() {
|
|
|
255
255
|
});
|
|
256
256
|
return;
|
|
257
257
|
}
|
|
258
|
-
const { startClient } = await import("./chunks/start-client-
|
|
258
|
+
const { startClient } = await import("./chunks/start-client-TO5VFFM5.js");
|
|
259
259
|
await startClient(appVersion, cliOptions, resolved, fileURLToPath(import.meta.url));
|
|
260
260
|
}
|
|
261
261
|
await main().catch((error) => {
|