@koed-labs/server 0.11.1 → 1.2.0
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 +3 -3
- package/bin/koed.js +1 -1
- package/package.json +2 -2
- package/vendor/chunk-2YCDKSKW.js +45 -0
- package/vendor/{chunk-TG26CZGQ.js → chunk-355BP3MF.js} +4 -4
- package/vendor/{chunk-RCR4XPE3.js → chunk-3VNLZCMB.js} +1 -1
- package/vendor/{chunk-NVTMIAAF.js → chunk-7YXEB2CR.js} +18 -17
- package/vendor/{chunk-SRKIBFOE.js → chunk-A2TMTAAS.js} +1 -1
- package/vendor/{chunk-PL3LWC5C.js → chunk-AJPFOTVX.js} +1 -1
- package/vendor/{chunk-O7DW2VAV.js → chunk-BDJR6CKS.js} +4 -3
- package/vendor/{chunk-Z5WCAUA6.js → chunk-BMHMNUNK.js} +18 -17
- package/vendor/{chunk-C5SNDPAP.js → chunk-CSDTMMRL.js} +4 -4
- package/vendor/{chunk-FYYRFX4U.js → chunk-CX73L6YS.js} +67 -38
- package/vendor/{chunk-VGIYSDNU.js → chunk-D4XZTNLU.js} +117 -33
- package/vendor/{chunk-W2OJZZ6X.js → chunk-DQ5SIGZZ.js} +4 -2
- package/vendor/{chunk-4OO6VAU3.js → chunk-G54Q5W6M.js} +1 -1
- package/vendor/{chunk-EA4QDDQA.js → chunk-GEIN6UIL.js} +7 -2
- package/vendor/{chunk-QRKHHWJJ.js → chunk-H7ETSD25.js} +51 -3
- package/vendor/{chunk-NOU7RHYZ.js → chunk-HG47LAWW.js} +5 -4
- package/vendor/{chunk-C4V72GXC.js → chunk-HXL36SED.js} +19 -18
- package/vendor/{chunk-FN3HUUO2.js → chunk-I5XO5FL4.js} +73 -13
- package/vendor/{chunk-TVYEB2GN.js → chunk-J7LW6JFY.js} +48 -10
- package/vendor/{chunk-OCILJ737.js → chunk-JG7OELJM.js} +9 -9
- package/vendor/{chunk-6KS67EQE.js → chunk-KBECHDUE.js} +1 -1
- package/vendor/{chunk-2XKSVKQA.js → chunk-KH4UBONI.js} +3 -2
- package/vendor/{chunk-ZIOKV2X6.js → chunk-MFPPURFE.js} +113 -33
- package/vendor/{chunk-GFASBPV2.js → chunk-MHFYPBCL.js} +3 -3
- package/vendor/{chunk-V67IQB7H.js → chunk-OG7G6DIR.js} +1 -1
- package/vendor/{chunk-WDFERJG3.js → chunk-TAQWNZVD.js} +109 -33
- package/vendor/{chunk-HC76426R.js → chunk-TMCW2P6G.js} +7 -5
- package/vendor/chunk-ULLAURFV.js +8 -0
- package/vendor/{chunk-WPIEF4LY.js → chunk-ULUSFNAE.js} +3 -3
- package/vendor/{chunk-ZOHNXUDY.js → chunk-VWB3VEOL.js} +493 -20
- package/vendor/{chunk-LRP66XEY.js → chunk-XPSPPLX5.js} +14 -14
- package/vendor/{chunk-SHLRINKO.js → chunk-XSOQ2U5H.js} +2 -2
- package/vendor/{chunk-EDPNYIX5.js → chunk-XTQYFCVY.js} +146 -89
- package/vendor/{chunk-CHMH4LH5.js → chunk-XW7AXRDI.js} +3 -3
- package/vendor/{chunk-SNKWETM5.js → chunk-Y5OJXAUF.js} +2 -2
- package/vendor/chunk-YDZEMIAH.js +11 -0
- package/vendor/{chunk-BUIM2M4R.js → chunk-YOMK7KMB.js} +2 -2
- package/vendor/{chunk-ALJUSOF7.js → chunk-YY7NMZGD.js} +79 -1
- package/vendor/{chunk-BGENSONI.js → chunk-ZKKWLLPU.js} +1 -1
- package/vendor/cli.js +1 -1
- package/vendor/component-manifest-catalog.js +1 -1
- package/vendor/control-plane.js +6 -4
- package/vendor/chunk-7EGSY3E4.js +0 -8
- package/vendor/chunk-ZUDSZGVO.js +0 -11
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Looking for the desktop client? Visit the [Koed GitHub repository](https://githu
|
|
|
9
9
|
For a local Personal setup, install Node.js 24 and Homebrew first. Then install the Koed command-line tool:
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
npm install --global @koed-labs/server@
|
|
12
|
+
npm install --global @koed-labs/server@1.2.0
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## 2. Set up your services
|
|
@@ -19,13 +19,13 @@ Install the Base component for your platform using the matching release URLs:
|
|
|
19
19
|
**linux-x64**
|
|
20
20
|
|
|
21
21
|
```sh
|
|
22
|
-
koed components install --component base --archive-url https://github.com/koed-labs/koed/releases/download/
|
|
22
|
+
koed components install --component base --archive-url https://github.com/koed-labs/koed/releases/download/v1.2.0/koed-base-1.2.0-linux-x64.tar.gz --manifest-url https://github.com/koed-labs/koed/releases/download/v1.2.0/koed-base-1.2.0-linux-x64.tar.gz.manifest.json --json
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
**macos-arm64**
|
|
26
26
|
|
|
27
27
|
```sh
|
|
28
|
-
koed components install --component base --archive-url https://github.com/koed-labs/koed/releases/download/
|
|
28
|
+
koed components install --component base --archive-url https://github.com/koed-labs/koed/releases/download/v1.2.0/koed-base-1.2.0-macos-arm64.tar.gz --manifest-url https://github.com/koed-labs/koed/releases/download/v1.2.0/koed-base-1.2.0-macos-arm64.tar.gz.manifest.json --json
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
Then install the runtime and embedding model:
|
package/bin/koed.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
if (Number(process.versions.node.split(".")[0])
|
|
2
|
+
if (Number(process.versions.node.split(".")[0]) < 24 || Number(process.versions.node.split(".")[0]) >= 27) { console.error(`@koed-labs/server requires Node.js >=24 <27; found ${process.versions.node}.`); process.exit(1); }
|
|
3
3
|
const { runKoedServerCli, shouldExitPackagedSupervisor } = await import("../vendor/control-plane.js");
|
|
4
4
|
const args = process.argv.slice(2);
|
|
5
5
|
const exitCode = await runKoedServerCli(args);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koed-labs/server",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Koed Self-Hosted control plane",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"koed": "bin/koed.js"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": ">=24 <
|
|
16
|
+
"node": ">=24 <27"
|
|
17
17
|
},
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createRequire as createKoedRequire } from "node:module"; const require = createKoedRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// packages/koed-server/dist/private-node-launcher.js
|
|
4
|
+
import { lstatSync, readFileSync, realpathSync } from "node:fs";
|
|
5
|
+
import { basename, dirname, join } from "node:path";
|
|
6
|
+
var wrapperMarker = "#!/bin/sh\n# Koed private Node:";
|
|
7
|
+
var maximumWrapperBytes = 4096;
|
|
8
|
+
var shellWord = (word) => {
|
|
9
|
+
if (/^[\w@%+=:,./-]+$/.test(word))
|
|
10
|
+
return word;
|
|
11
|
+
const quoted = /^'((?:[^']|'"'"')*)'$/.exec(word);
|
|
12
|
+
return quoted ? quoted[1].replaceAll(`'"'"'`, "'") : null;
|
|
13
|
+
};
|
|
14
|
+
var realPath = (path) => {
|
|
15
|
+
try {
|
|
16
|
+
return realpathSync.native(path);
|
|
17
|
+
} catch {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
var privateNodeLauncher = (execPath = process.execPath) => {
|
|
22
|
+
if (basename(execPath) !== "node.bin")
|
|
23
|
+
return execPath;
|
|
24
|
+
const wrapper = join(dirname(execPath), "node");
|
|
25
|
+
try {
|
|
26
|
+
const stat = lstatSync(wrapper);
|
|
27
|
+
if (!stat.isFile() || stat.size > maximumWrapperBytes)
|
|
28
|
+
return execPath;
|
|
29
|
+
const lines = readFileSync(wrapper, "utf8").split("\n");
|
|
30
|
+
if (!lines.slice(0, 2).join("\n").startsWith(wrapperMarker))
|
|
31
|
+
return execPath;
|
|
32
|
+
const exec = lines.map((line) => /^exec (.+) "\$@"$/.exec(line)).find((match) => match !== null);
|
|
33
|
+
const target = exec ? shellWord(exec[1]) : null;
|
|
34
|
+
const binary = realPath(execPath);
|
|
35
|
+
if (!target || !binary || realPath(target) !== binary)
|
|
36
|
+
return execPath;
|
|
37
|
+
return wrapper;
|
|
38
|
+
} catch {
|
|
39
|
+
return execPath;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
privateNodeLauncher
|
|
45
|
+
};
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
invalidateUpstreamEnrollmentReferences,
|
|
7
7
|
readUpstreamEnrollmentBinding,
|
|
8
8
|
startUpstreamEnrollment
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-ULUSFNAE.js";
|
|
10
|
+
import "./chunk-A2TMTAAS.js";
|
|
11
11
|
import "./chunk-7NXKPDF3.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-3VNLZCMB.js";
|
|
13
|
+
import "./chunk-VWB3VEOL.js";
|
|
14
14
|
import "./chunk-FSNLU46W.js";
|
|
15
15
|
import "./chunk-BTS4ZTF3.js";
|
|
16
16
|
export {
|
|
@@ -4,33 +4,34 @@ import {
|
|
|
4
4
|
createCliServiceContext,
|
|
5
5
|
deviceRequestCommand,
|
|
6
6
|
printJson
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-TAQWNZVD.js";
|
|
8
|
+
import "./chunk-XSOQ2U5H.js";
|
|
9
|
+
import "./chunk-XW7AXRDI.js";
|
|
10
|
+
import "./chunk-GEIN6UIL.js";
|
|
11
|
+
import "./chunk-2YCDKSKW.js";
|
|
11
12
|
import "./chunk-JYK6UL6D.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-ULUSFNAE.js";
|
|
14
|
+
import "./chunk-XTQYFCVY.js";
|
|
14
15
|
import "./chunk-QT24SAW6.js";
|
|
15
16
|
import "./chunk-TISYUUEJ.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-YY7NMZGD.js";
|
|
18
|
+
import "./chunk-A2TMTAAS.js";
|
|
18
19
|
import "./chunk-7FSHVVTZ.js";
|
|
19
20
|
import "./chunk-TSAYTRX3.js";
|
|
20
21
|
import "./chunk-YZLQZU5E.js";
|
|
21
22
|
import "./chunk-W2HNI6AA.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-OG7G6DIR.js";
|
|
24
|
+
import "./chunk-I5XO5FL4.js";
|
|
24
25
|
import "./chunk-T6UB5PNX.js";
|
|
25
26
|
import "./chunk-7NXKPDF3.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-YDZEMIAH.js";
|
|
28
|
+
import "./chunk-MFPPURFE.js";
|
|
29
|
+
import "./chunk-H7ETSD25.js";
|
|
30
|
+
import "./chunk-ULLAURFV.js";
|
|
30
31
|
import "./chunk-IY2HRXOZ.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-G54Q5W6M.js";
|
|
33
|
+
import "./chunk-3VNLZCMB.js";
|
|
34
|
+
import "./chunk-VWB3VEOL.js";
|
|
34
35
|
import "./chunk-FSNLU46W.js";
|
|
35
36
|
import "./chunk-BTS4ZTF3.js";
|
|
36
37
|
|
|
@@ -2,10 +2,11 @@ import { createRequire as createKoedRequire } from "node:module"; const require
|
|
|
2
2
|
import {
|
|
3
3
|
checkCudaHost,
|
|
4
4
|
validateStagedCuda
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-J7LW6JFY.js";
|
|
6
|
+
import "./chunk-2YCDKSKW.js";
|
|
6
7
|
import "./chunk-JYK6UL6D.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-H7ETSD25.js";
|
|
9
|
+
import "./chunk-ULLAURFV.js";
|
|
9
10
|
import "./chunk-FSNLU46W.js";
|
|
10
11
|
import "./chunk-BTS4ZTF3.js";
|
|
11
12
|
export {
|
|
@@ -6,33 +6,34 @@ import {
|
|
|
6
6
|
persistDoctorVerification,
|
|
7
7
|
printJson,
|
|
8
8
|
safeLifecycle
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-TAQWNZVD.js";
|
|
10
|
+
import "./chunk-XSOQ2U5H.js";
|
|
11
|
+
import "./chunk-XW7AXRDI.js";
|
|
12
|
+
import "./chunk-GEIN6UIL.js";
|
|
13
|
+
import "./chunk-2YCDKSKW.js";
|
|
13
14
|
import "./chunk-JYK6UL6D.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-ULUSFNAE.js";
|
|
16
|
+
import "./chunk-XTQYFCVY.js";
|
|
16
17
|
import "./chunk-QT24SAW6.js";
|
|
17
18
|
import "./chunk-TISYUUEJ.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-YY7NMZGD.js";
|
|
20
|
+
import "./chunk-A2TMTAAS.js";
|
|
20
21
|
import "./chunk-7FSHVVTZ.js";
|
|
21
22
|
import "./chunk-TSAYTRX3.js";
|
|
22
23
|
import "./chunk-YZLQZU5E.js";
|
|
23
24
|
import "./chunk-W2HNI6AA.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-OG7G6DIR.js";
|
|
26
|
+
import "./chunk-I5XO5FL4.js";
|
|
26
27
|
import "./chunk-T6UB5PNX.js";
|
|
27
28
|
import "./chunk-7NXKPDF3.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-YDZEMIAH.js";
|
|
30
|
+
import "./chunk-MFPPURFE.js";
|
|
31
|
+
import "./chunk-H7ETSD25.js";
|
|
32
|
+
import "./chunk-ULLAURFV.js";
|
|
32
33
|
import "./chunk-IY2HRXOZ.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-G54Q5W6M.js";
|
|
35
|
+
import "./chunk-3VNLZCMB.js";
|
|
36
|
+
import "./chunk-VWB3VEOL.js";
|
|
36
37
|
import "./chunk-FSNLU46W.js";
|
|
37
38
|
import "./chunk-BTS4ZTF3.js";
|
|
38
39
|
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
getUpstreamEnrollmentStatus,
|
|
9
9
|
readUpstreamEnrollmentBinding,
|
|
10
10
|
startUpstreamEnrollment
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ULUSFNAE.js";
|
|
12
12
|
import {
|
|
13
13
|
applyPersistedLocalPorts
|
|
14
14
|
} from "./chunk-TISYUUEJ.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-A2TMTAAS.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveKoedServerPaths
|
|
18
18
|
} from "./chunk-TSAYTRX3.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
updateUpstreamBackendRoutePolicy,
|
|
41
41
|
updateUpstreamDisconnectCleanup,
|
|
42
42
|
upstreamDisconnectCleanupPending
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-3VNLZCMB.js";
|
|
44
44
|
import {
|
|
45
45
|
COLLABORATION_CONTRACT_VERSION,
|
|
46
46
|
COLLABORATION_RECONNECT_BACKOFF_CAP_MS,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
readLocalEdgeClientCredentialAuthorization,
|
|
74
74
|
storeCollaborationPendingSend,
|
|
75
75
|
updateCollaborationPendingSendState
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-VWB3VEOL.js";
|
|
77
77
|
import {
|
|
78
78
|
external_exports
|
|
79
79
|
} from "./chunk-FSNLU46W.js";
|
|
@@ -4,7 +4,11 @@ import {
|
|
|
4
4
|
} from "./chunk-TSAYTRX3.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveKoedControlPlaneVersion
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OG7G6DIR.js";
|
|
8
|
+
import {
|
|
9
|
+
personalDeviceSyncFeatureEnvironmentName,
|
|
10
|
+
resolvePersonalDeviceSyncEnabled
|
|
11
|
+
} from "./chunk-VWB3VEOL.js";
|
|
8
12
|
|
|
9
13
|
// packages/koed-server/dist/cli.js
|
|
10
14
|
import { realpathSync } from "node:fs";
|
|
@@ -3543,16 +3547,16 @@ var recoveryCommands = [
|
|
|
3543
3547
|
options: ["kit", "passwordFd", "passwordStdin"]
|
|
3544
3548
|
}
|
|
3545
3549
|
];
|
|
3546
|
-
var registerPersonalSyncCommands = (program2, dependencies, complete, advanced) => {
|
|
3547
|
-
const pair = program2.command("pair").description("Connect this device through Koed Desktop").option("--device-label <name>", "Device display name").option("--detach", "Return after creating the request").option("--json", "Emit JSON progress records");
|
|
3550
|
+
var registerPersonalSyncCommands = (program2, dependencies, complete, advanced, hidden = false) => {
|
|
3551
|
+
const pair = program2.command("pair", { hidden }).description("Connect this device through Koed Desktop").option("--device-label <name>", "Device display name").option("--detach", "Return after creating the request").option("--json", "Emit JSON progress records");
|
|
3548
3552
|
const pairAction = async (operation, options) => {
|
|
3549
3553
|
const input = { ...pair.opts(), ...options };
|
|
3550
|
-
complete(await withCliService(() => import("./chunk-
|
|
3554
|
+
complete(await withCliService(() => import("./chunk-7YXEB2CR.js"), (service) => service.runPairCommand(operation, input, dependencies), dependencies, input.json));
|
|
3551
3555
|
};
|
|
3552
3556
|
pair.action(async (options) => pairAction(void 0, options));
|
|
3553
3557
|
for (const operation of ["status", "cancel"])
|
|
3554
3558
|
pair.command(operation).description(`${operation} the pending pairing request`).option("--json", "Emit JSON output").action(async (options) => pairAction(operation, options));
|
|
3555
|
-
const sync = program2.command("personal-sync").description("Inspect Personal Sync and recovery guidance").option("--advanced", "Show advanced compatibility and recovery commands");
|
|
3559
|
+
const sync = program2.command("personal-sync", { hidden }).description("Inspect Personal Sync and recovery guidance").option("--advanced", "Show advanced compatibility and recovery commands");
|
|
3556
3560
|
sync.action(() => sync.outputHelp());
|
|
3557
3561
|
sync.addHelpText("after", "\nConnect this device with koed pair. Create your first group and manage devices in Electron \u2192 Devices.\n\nExamples:\n koed personal-sync status --json\n koed personal-sync --help --advanced");
|
|
3558
3562
|
const execute = (command, path2, flags) => {
|
|
@@ -3569,7 +3573,7 @@ var registerPersonalSyncCommands = (program2, dependencies, complete, advanced)
|
|
|
3569
3573
|
const stdout = dependencies.stdout ?? process.stdout;
|
|
3570
3574
|
const stderr = dependencies.stderr ?? process.stderr;
|
|
3571
3575
|
try {
|
|
3572
|
-
const operation = dependencies.runPersonalSync ?? (await import("./chunk-
|
|
3576
|
+
const operation = dependencies.runPersonalSync ?? (await import("./chunk-HG47LAWW.js")).runPersonalSyncCommand;
|
|
3573
3577
|
const result = await operation(args, (dependencies.resolvePaths ?? resolveKoedServerPaths)(), process.env);
|
|
3574
3578
|
stdout.write(options.json ? `${JSON.stringify(result, null, 2)}
|
|
3575
3579
|
` : `${result.message}
|
|
@@ -3650,7 +3654,7 @@ var registerRemoteCommands = (program2, dependencies, complete) => {
|
|
|
3650
3654
|
}));
|
|
3651
3655
|
return;
|
|
3652
3656
|
}
|
|
3653
|
-
complete(await withCliService(() => import("./chunk-
|
|
3657
|
+
complete(await withCliService(() => import("./chunk-XPSPPLX5.js"), (service) => service.runRemoteMcpOperation(operation, input, {
|
|
3654
3658
|
environment: dependencies.remoteEnvironment,
|
|
3655
3659
|
stdout: dependencies.stdout ?? process.stdout,
|
|
3656
3660
|
stderr: dependencies.stderr ?? process.stderr
|
|
@@ -3686,12 +3690,12 @@ var registerInternalCommands = (program2, dependencies, complete) => {
|
|
|
3686
3690
|
complete(1);
|
|
3687
3691
|
return;
|
|
3688
3692
|
}
|
|
3689
|
-
complete(await withCliService(() => import("./chunk-
|
|
3693
|
+
complete(await withCliService(() => import("./chunk-KH4UBONI.js"), (service) => service.runSecretProviderCommand(operation, reference, dependencies), dependencies, false));
|
|
3690
3694
|
});
|
|
3691
3695
|
const desktop = program2.command("desktop", { hidden: true }).description("Internal Desktop commands");
|
|
3692
3696
|
desktop.action(() => desktop.outputHelp());
|
|
3693
3697
|
desktop.command("collaboration-broker").action(async () => {
|
|
3694
|
-
complete(await withCliService(() => import("./chunk-
|
|
3698
|
+
complete(await withCliService(() => import("./chunk-CSDTMMRL.js"), async (service) => {
|
|
3695
3699
|
try {
|
|
3696
3700
|
await service.runDesktopCollaborationBrokerProcess();
|
|
3697
3701
|
return 0;
|
|
@@ -3743,7 +3747,7 @@ var registerComponentCommands = (program2, dependencies, complete) => {
|
|
|
3743
3747
|
command.action(async (options) => {
|
|
3744
3748
|
let service;
|
|
3745
3749
|
try {
|
|
3746
|
-
service = await import("./chunk-
|
|
3750
|
+
service = await import("./chunk-JG7OELJM.js");
|
|
3747
3751
|
} catch {
|
|
3748
3752
|
complete(reportMissingCliService(dependencies, options.json));
|
|
3749
3753
|
return;
|
|
@@ -3774,7 +3778,7 @@ var registerIntegrationCommands = (program2, dependencies, complete) => {
|
|
|
3774
3778
|
if (operation === "check")
|
|
3775
3779
|
command.option("--capabilities-refreshed-since <value>", "Minimum capability refresh timestamp").option("--include-status", "Include complete service status in the result");
|
|
3776
3780
|
command.action(async (options) => {
|
|
3777
|
-
complete(await withCliService(() => import("./chunk-
|
|
3781
|
+
complete(await withCliService(() => import("./chunk-HXL36SED.js"), (service) => service.runIntegrationCommand(operation, { ...options, client }, dependencies), dependencies, options.json));
|
|
3778
3782
|
});
|
|
3779
3783
|
}
|
|
3780
3784
|
}
|
|
@@ -3791,7 +3795,7 @@ var registerLifecycleCommands = (program2, dependencies, complete) => {
|
|
|
3791
3795
|
};
|
|
3792
3796
|
const bind = (command, operation, identityAction) => {
|
|
3793
3797
|
command.option("--json", "Emit JSON output").action(async (options) => {
|
|
3794
|
-
complete(await withCliService(() => import("./chunk-
|
|
3798
|
+
complete(await withCliService(() => import("./chunk-BMHMNUNK.js"), (service) => service.runLifecycleCommand(operation, { ...options, identityAction }, dependencies), dependencies, options.json));
|
|
3795
3799
|
});
|
|
3796
3800
|
};
|
|
3797
3801
|
for (const operation of Object.keys(descriptions)) {
|
|
@@ -3871,10 +3875,10 @@ var registerUpstreamCommands = (program2, dependencies, complete) => {
|
|
|
3871
3875
|
const paths = (dependencies.resolvePaths ?? resolveKoedServerPaths)();
|
|
3872
3876
|
let result;
|
|
3873
3877
|
if (command === list) {
|
|
3874
|
-
const execute = dependencies.listUpstreams ?? (await import("./chunk-
|
|
3878
|
+
const execute = dependencies.listUpstreams ?? (await import("./chunk-Y5OJXAUF.js")).listUpstreamBackends;
|
|
3875
3879
|
result = execute(paths);
|
|
3876
3880
|
} else if (command === register) {
|
|
3877
|
-
const execute = dependencies.registerUpstream ?? (await import("./chunk-
|
|
3881
|
+
const execute = dependencies.registerUpstream ?? (await import("./chunk-Y5OJXAUF.js")).registerUpstreamBackend;
|
|
3878
3882
|
result = execute(paths, {
|
|
3879
3883
|
url: required(options.url, "--url"),
|
|
3880
3884
|
id: options.id,
|
|
@@ -3884,7 +3888,7 @@ var registerUpstreamCommands = (program2, dependencies, complete) => {
|
|
|
3884
3888
|
} else {
|
|
3885
3889
|
const id = required(options.id, "--id");
|
|
3886
3890
|
if (command === refresh) {
|
|
3887
|
-
const execute = dependencies.refreshUpstream ?? (await import("./chunk-
|
|
3891
|
+
const execute = dependencies.refreshUpstream ?? (await import("./chunk-Y5OJXAUF.js")).refreshUpstreamBackendCapabilities;
|
|
3888
3892
|
result = await execute(paths, id);
|
|
3889
3893
|
} else if (command === policy) {
|
|
3890
3894
|
const update = {};
|
|
@@ -3896,28 +3900,28 @@ var registerUpstreamCommands = (program2, dependencies, complete) => {
|
|
|
3896
3900
|
throw new Error(`--${flag} must be enabled or disabled.`);
|
|
3897
3901
|
update[key] = value;
|
|
3898
3902
|
}
|
|
3899
|
-
const execute = dependencies.updateUpstreamPolicy ?? (await import("./chunk-
|
|
3903
|
+
const execute = dependencies.updateUpstreamPolicy ?? (await import("./chunk-Y5OJXAUF.js")).updateUpstreamBackendRoutePolicy;
|
|
3900
3904
|
result = execute(paths, id, update);
|
|
3901
3905
|
} else if (command === activate) {
|
|
3902
|
-
const execute = dependencies.activateUpstream ?? (await import("./chunk-
|
|
3906
|
+
const execute = dependencies.activateUpstream ?? (await import("./chunk-Y5OJXAUF.js")).setActiveUpstreamBackend;
|
|
3903
3907
|
result = execute(paths, id);
|
|
3904
3908
|
} else if (command === remove) {
|
|
3905
|
-
const execute = dependencies.removeUpstream ?? (await import("./chunk-
|
|
3909
|
+
const execute = dependencies.removeUpstream ?? (await import("./chunk-Y5OJXAUF.js")).removeUpstreamBackend;
|
|
3906
3910
|
result = execute(paths, id);
|
|
3907
3911
|
} else if (command === disconnect) {
|
|
3908
|
-
const execute = dependencies.disconnectUpstream ?? (await import("./chunk-
|
|
3912
|
+
const execute = dependencies.disconnectUpstream ?? (await import("./chunk-355BP3MF.js")).disconnectUpstreamBackendEnrollment;
|
|
3909
3913
|
result = await execute(paths, id);
|
|
3910
3914
|
} else if (command === start) {
|
|
3911
|
-
const execute = dependencies.startUpstreamEnroll ?? (await import("./chunk-
|
|
3915
|
+
const execute = dependencies.startUpstreamEnroll ?? (await import("./chunk-355BP3MF.js")).startUpstreamEnrollment;
|
|
3912
3916
|
result = await execute(paths, id, {
|
|
3913
3917
|
memoryAnswers: Boolean(options.memoryAnswers || options.enableMemoryAnswers),
|
|
3914
3918
|
sourceOwnerPrincipalId: required(options.sourceOwnerPrincipalId, "--source-owner-principal-id")
|
|
3915
3919
|
});
|
|
3916
3920
|
} else if (command === status) {
|
|
3917
|
-
const execute = dependencies.getUpstreamEnrollStatus ?? (await import("./chunk-
|
|
3921
|
+
const execute = dependencies.getUpstreamEnrollStatus ?? (await import("./chunk-355BP3MF.js")).getUpstreamEnrollmentStatus;
|
|
3918
3922
|
result = await execute(paths, id);
|
|
3919
3923
|
} else {
|
|
3920
|
-
const execute = dependencies.cancelUpstreamEnroll ?? (await import("./chunk-
|
|
3924
|
+
const execute = dependencies.cancelUpstreamEnroll ?? (await import("./chunk-355BP3MF.js")).cancelUpstreamEnrollment;
|
|
3921
3925
|
result = await execute(paths, id);
|
|
3922
3926
|
}
|
|
3923
3927
|
}
|
|
@@ -3978,22 +3982,22 @@ var registerProjectCommands = (program2, dependencies, complete) => {
|
|
|
3978
3982
|
const paths = (dependencies.resolvePaths ?? resolveKoedServerPaths)();
|
|
3979
3983
|
let result;
|
|
3980
3984
|
if (command === discover) {
|
|
3981
|
-
const execute = dependencies.discoverProjectMetadata ?? (await import("./chunk-
|
|
3985
|
+
const execute = dependencies.discoverProjectMetadata ?? (await import("./chunk-AJPFOTVX.js")).discoverProjectMetadata;
|
|
3982
3986
|
result = await execute(paths, {
|
|
3983
3987
|
cwd: options.cwd ?? process.cwd(),
|
|
3984
3988
|
aiClientSource: options.codex ? "codex" : void 0
|
|
3985
3989
|
});
|
|
3986
3990
|
} else if (command === list) {
|
|
3987
|
-
const execute = dependencies.listProjectMetadata ?? (await import("./chunk-
|
|
3991
|
+
const execute = dependencies.listProjectMetadata ?? (await import("./chunk-AJPFOTVX.js")).listProjectMetadata;
|
|
3988
3992
|
result = execute(paths);
|
|
3989
3993
|
} else if (command === show) {
|
|
3990
|
-
const execute = dependencies.getProjectMetadataForCwd ?? (await import("./chunk-
|
|
3994
|
+
const execute = dependencies.getProjectMetadataForCwd ?? (await import("./chunk-AJPFOTVX.js")).getProjectMetadataForCwd;
|
|
3991
3995
|
result = execute(paths, options.cwd ?? process.cwd());
|
|
3992
3996
|
} else if (command === forget) {
|
|
3993
|
-
const execute = dependencies.forgetProjectMetadata ?? (await import("./chunk-
|
|
3997
|
+
const execute = dependencies.forgetProjectMetadata ?? (await import("./chunk-AJPFOTVX.js")).forgetProjectMetadata;
|
|
3994
3998
|
result = execute(paths, required2(options.localProjectId, "--local-project-id"));
|
|
3995
3999
|
} else if (command === anchor) {
|
|
3996
|
-
const { setProjectRepositoryAnchor } = await import("./chunk-
|
|
4000
|
+
const { setProjectRepositoryAnchor } = await import("./chunk-AJPFOTVX.js");
|
|
3997
4001
|
result = await setProjectRepositoryAnchor(paths, {
|
|
3998
4002
|
localProjectId: required2(options.localProjectId, "--local-project-id"),
|
|
3999
4003
|
expectedCheckoutId: required2(options.checkoutId, "--checkout-id"),
|
|
@@ -4057,7 +4061,7 @@ var registerPackageCommands = (program2, dependencies, complete) => {
|
|
|
4057
4061
|
let result;
|
|
4058
4062
|
switch (command.name()) {
|
|
4059
4063
|
case "status": {
|
|
4060
|
-
const execute = dependencies.collectPackageStatus ?? (await import("./chunk-
|
|
4064
|
+
const execute = dependencies.collectPackageStatus ?? (await import("./chunk-MHFYPBCL.js")).collectServerPackageStatus;
|
|
4061
4065
|
result = execute(paths);
|
|
4062
4066
|
break;
|
|
4063
4067
|
}
|
|
@@ -4084,20 +4088,20 @@ var registerPackageCommands = (program2, dependencies, complete) => {
|
|
|
4084
4088
|
input.trustPolicy = policy;
|
|
4085
4089
|
if (options.allowDowngrade)
|
|
4086
4090
|
input.allowDowngrade = true;
|
|
4087
|
-
const execute = dependencies.installPackage ?? (await import("./chunk-
|
|
4091
|
+
const execute = dependencies.installPackage ?? (await import("./chunk-MHFYPBCL.js")).installServerPackage;
|
|
4088
4092
|
result = await execute(paths, input);
|
|
4089
4093
|
break;
|
|
4090
4094
|
}
|
|
4091
4095
|
case "activate": {
|
|
4092
4096
|
const version = required3(options.version, "--version");
|
|
4093
|
-
const execute = dependencies.activatePackage ?? (await import("./chunk-
|
|
4097
|
+
const execute = dependencies.activatePackage ?? (await import("./chunk-MHFYPBCL.js")).activateServerPackage;
|
|
4094
4098
|
result = execute(paths, version, {
|
|
4095
4099
|
allowDowngrade: Boolean(options.allowDowngrade)
|
|
4096
4100
|
});
|
|
4097
4101
|
break;
|
|
4098
4102
|
}
|
|
4099
4103
|
default: {
|
|
4100
|
-
const execute = dependencies.cleanupPackages ?? (await import("./chunk-
|
|
4104
|
+
const execute = dependencies.cleanupPackages ?? (await import("./chunk-MHFYPBCL.js")).cleanupServerPackages;
|
|
4101
4105
|
result = execute(paths, Number.parseInt(options.keep ?? "1", 10));
|
|
4102
4106
|
}
|
|
4103
4107
|
}
|
|
@@ -4147,10 +4151,10 @@ var runModelCommand = async (operation, options, dependencies) => {
|
|
|
4147
4151
|
let result;
|
|
4148
4152
|
if (options.kind === "privacy") {
|
|
4149
4153
|
if (operation === "status") {
|
|
4150
|
-
const execute = dependencies.collectPrivacyModelStatus ?? (await import("./chunk-
|
|
4154
|
+
const execute = dependencies.collectPrivacyModelStatus ?? (await import("./chunk-YOMK7KMB.js")).collectPrivacyModelStatus;
|
|
4151
4155
|
result = await execute(paths);
|
|
4152
4156
|
} else {
|
|
4153
|
-
const execute = dependencies.installPrivacyModel ?? (await import("./chunk-
|
|
4157
|
+
const execute = dependencies.installPrivacyModel ?? (await import("./chunk-YOMK7KMB.js")).installPrivacyModel;
|
|
4154
4158
|
const files = /* @__PURE__ */ new Map();
|
|
4155
4159
|
result = options.progressJson ? await execute(paths, environment, void 0, {
|
|
4156
4160
|
progress: (event) => {
|
|
@@ -4235,15 +4239,17 @@ var runRuntimeCommand = async (operation, options, dependencies) => {
|
|
|
4235
4239
|
if (options.provider === "release") {
|
|
4236
4240
|
if (dependencies.desktopRuntimeCapability)
|
|
4237
4241
|
throw new Error("Use Koed Desktop to manage its runtime.");
|
|
4238
|
-
const release = await import("./chunk-
|
|
4242
|
+
const release = await import("./chunk-D4XZTNLU.js");
|
|
4239
4243
|
if (operation === "validate") {
|
|
4240
4244
|
if (!options.runtimeRoot?.trim())
|
|
4241
4245
|
throw new Error("Provide a trusted staged runtime directory.");
|
|
4242
4246
|
const root = options.runtimeRoot;
|
|
4243
4247
|
release.assertReleaseHost();
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
const {
|
|
4248
|
+
if (process.platform === "darwin")
|
|
4249
|
+
throw new Error("CUDA runtime validation is not supported on macOS.");
|
|
4250
|
+
const { withStoppedRuntime } = await import("./chunk-TMCW2P6G.js");
|
|
4251
|
+
const { resolveKoedRuntimeOwner } = await import("./chunk-ZKKWLLPU.js");
|
|
4252
|
+
const { validateStagedCuda } = await import("./chunk-BDJR6CKS.js");
|
|
4247
4253
|
result = await withRuntimeCancellation((signal) => withStoppedRuntime(paths, resolveKoedRuntimeOwner(), () => validateStagedCuda(paths, root, environment, {
|
|
4248
4254
|
signal,
|
|
4249
4255
|
requireModel: options.requireModel === true
|
|
@@ -4304,10 +4310,33 @@ var registerRuntimeCommands = (program2, dependencies, complete) => {
|
|
|
4304
4310
|
}
|
|
4305
4311
|
};
|
|
4306
4312
|
|
|
4313
|
+
// packages/koed-server/dist/personal-device-sync-feature.js
|
|
4314
|
+
var personalDeviceSyncCommandNames = [
|
|
4315
|
+
"pair",
|
|
4316
|
+
"personal-sync"
|
|
4317
|
+
];
|
|
4318
|
+
|
|
4307
4319
|
// packages/koed-server/dist/cli-command-tree.js
|
|
4308
4320
|
var runCommandTree = async (args, dependencies = {}) => {
|
|
4309
4321
|
const stdout = dependencies.stdout ?? process.stdout;
|
|
4310
4322
|
const stderr = dependencies.stderr ?? process.stderr;
|
|
4323
|
+
let personalDeviceSyncEnabled = false;
|
|
4324
|
+
let personalDeviceSyncDisabledMessage = `Personal Device Sync is disabled in this release. Set ${personalDeviceSyncFeatureEnvironmentName}=true to use it.`;
|
|
4325
|
+
try {
|
|
4326
|
+
personalDeviceSyncEnabled = resolvePersonalDeviceSyncEnabled();
|
|
4327
|
+
} catch (error) {
|
|
4328
|
+
personalDeviceSyncDisabledMessage = error instanceof Error ? error.message : String(error);
|
|
4329
|
+
}
|
|
4330
|
+
const requested = args[0] === "help" ? args[1] : args[0];
|
|
4331
|
+
if (!personalDeviceSyncEnabled && personalDeviceSyncCommandNames.includes(requested ?? "")) {
|
|
4332
|
+
if (args.includes("--json"))
|
|
4333
|
+
stdout.write(`${JSON.stringify({ ok: false, error: personalDeviceSyncDisabledMessage }, null, 2)}
|
|
4334
|
+
`);
|
|
4335
|
+
else
|
|
4336
|
+
stderr.write(`${personalDeviceSyncDisabledMessage}
|
|
4337
|
+
`);
|
|
4338
|
+
return 1;
|
|
4339
|
+
}
|
|
4311
4340
|
let exitCode = 0;
|
|
4312
4341
|
const program2 = new Command().name("koed").enablePositionalOptions().description("Manage Koed services and AI Client integrations").version(resolveKoedControlPlaneVersion(), "-V, --version", "Print the Koed version").exitOverride().showSuggestionAfterError(false).configureOutput({
|
|
4313
4342
|
writeOut: (text) => {
|
|
@@ -4351,7 +4380,7 @@ var runCommandTree = async (args, dependencies = {}) => {
|
|
|
4351
4380
|
});
|
|
4352
4381
|
registerPersonalSyncCommands(program2, dependencies, (code) => {
|
|
4353
4382
|
exitCode = code;
|
|
4354
|
-
}, args.includes("--advanced"));
|
|
4383
|
+
}, args.includes("--advanced"), !personalDeviceSyncEnabled);
|
|
4355
4384
|
program2.addHelpText("after", "\nEnvironment:\n KOED_HOME Local configuration, logs, and runtime state\n KOED_REPO_ROOT Checkout path for development builds\n\nRun koed <command> --help for command help.");
|
|
4356
4385
|
const configureCommand = (command) => {
|
|
4357
4386
|
if (command.commands.length)
|