@koed-labs/server 1.0.0 → 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.
Files changed (41) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
  3. package/vendor/chunk-2YCDKSKW.js +45 -0
  4. package/vendor/{chunk-F7AMEDDU.js → chunk-355BP3MF.js} +4 -4
  5. package/vendor/{chunk-WBMO7YCO.js → chunk-3VNLZCMB.js} +1 -1
  6. package/vendor/{chunk-EEBIYWTE.js → chunk-7YXEB2CR.js} +17 -16
  7. package/vendor/{chunk-LHUMBHG7.js → chunk-A2TMTAAS.js} +1 -1
  8. package/vendor/{chunk-VLP72QWX.js → chunk-AJPFOTVX.js} +1 -1
  9. package/vendor/{chunk-W6632NOX.js → chunk-BDJR6CKS.js} +4 -3
  10. package/vendor/{chunk-DWWMBGHX.js → chunk-BMHMNUNK.js} +17 -16
  11. package/vendor/{chunk-BYN6KXNP.js → chunk-CSDTMMRL.js} +4 -4
  12. package/vendor/{chunk-TIBYKMRW.js → chunk-CX73L6YS.js} +36 -43
  13. package/vendor/{chunk-273NMYXE.js → chunk-D4XZTNLU.js} +8 -7
  14. package/vendor/{chunk-64AST7WZ.js → chunk-DQ5SIGZZ.js} +3 -1
  15. package/vendor/{chunk-4DHYSJJT.js → chunk-G54Q5W6M.js} +1 -1
  16. package/vendor/{chunk-GY5GATZL.js → chunk-GEIN6UIL.js} +7 -2
  17. package/vendor/{chunk-VGL5AZN5.js → chunk-H7ETSD25.js} +1 -1
  18. package/vendor/{chunk-OZU6JFB4.js → chunk-HG47LAWW.js} +5 -4
  19. package/vendor/{chunk-Y6GE52OP.js → chunk-HXL36SED.js} +18 -17
  20. package/vendor/{chunk-UCOHFZ77.js → chunk-I5XO5FL4.js} +2 -2
  21. package/vendor/{chunk-XKXSC6YS.js → chunk-J7LW6JFY.js} +21 -13
  22. package/vendor/{chunk-KRBZZ6GS.js → chunk-JG7OELJM.js} +8 -8
  23. package/vendor/{chunk-KG3RANR4.js → chunk-KBECHDUE.js} +1 -1
  24. package/vendor/{chunk-AOZ3LMTF.js → chunk-KH4UBONI.js} +3 -2
  25. package/vendor/{chunk-7HLNJ2BI.js → chunk-MFPPURFE.js} +1 -1
  26. package/vendor/{chunk-F77ZTTNS.js → chunk-MHFYPBCL.js} +3 -3
  27. package/vendor/{chunk-54UL4U2E.js → chunk-TAQWNZVD.js} +77 -20
  28. package/vendor/{chunk-ILQVLZ2I.js → chunk-TMCW2P6G.js} +5 -5
  29. package/vendor/{chunk-QV3WPU7A.js → chunk-ULLAURFV.js} +1 -1
  30. package/vendor/{chunk-T7OGE5E5.js → chunk-ULUSFNAE.js} +3 -3
  31. package/vendor/{chunk-E6YVGIEW.js → chunk-VWB3VEOL.js} +468 -12
  32. package/vendor/{chunk-UIMUUIH7.js → chunk-XPSPPLX5.js} +13 -13
  33. package/vendor/{chunk-L4RD3TAZ.js → chunk-XSOQ2U5H.js} +2 -2
  34. package/vendor/{chunk-USHFSJT7.js → chunk-XTQYFCVY.js} +10 -8
  35. package/vendor/{chunk-NGV45YWB.js → chunk-XW7AXRDI.js} +3 -3
  36. package/vendor/{chunk-SQZ2OSP6.js → chunk-Y5OJXAUF.js} +2 -2
  37. package/vendor/{chunk-XCO3RV3Z.js → chunk-YDZEMIAH.js} +1 -1
  38. package/vendor/{chunk-S6HD3MDU.js → chunk-YOMK7KMB.js} +2 -2
  39. package/vendor/{chunk-ALJUSOF7.js → chunk-YY7NMZGD.js} +79 -1
  40. package/vendor/component-manifest-catalog.js +1 -1
  41. package/vendor/control-plane.js +5 -3
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@1.0.0
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/v1.0.0/koed-base-1.0.0-linux-x64.tar.gz --manifest-url https://github.com/koed-labs/koed/releases/download/v1.0.0/koed-base-1.0.0-linux-x64.tar.gz.manifest.json --json
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/v1.0.0/koed-base-1.0.0-macos-arm64.tar.gz --manifest-url https://github.com/koed-labs/koed/releases/download/v1.0.0/koed-base-1.0.0-macos-arm64.tar.gz.manifest.json --json
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koed-labs/server",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "Koed Self-Hosted control plane",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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-T7OGE5E5.js";
10
- import "./chunk-LHUMBHG7.js";
9
+ } from "./chunk-ULUSFNAE.js";
10
+ import "./chunk-A2TMTAAS.js";
11
11
  import "./chunk-7NXKPDF3.js";
12
- import "./chunk-WBMO7YCO.js";
13
- import "./chunk-E6YVGIEW.js";
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 {
@@ -2,7 +2,7 @@ import { createRequire as createKoedRequire } from "node:module"; const require
2
2
  import {
3
3
  assertSecureHttpTransport,
4
4
  isTeamMemoryAnswerTaskCapability
5
- } from "./chunk-E6YVGIEW.js";
5
+ } from "./chunk-VWB3VEOL.js";
6
6
  import {
7
7
  __commonJS,
8
8
  __require,
@@ -4,33 +4,34 @@ import {
4
4
  createCliServiceContext,
5
5
  deviceRequestCommand,
6
6
  printJson
7
- } from "./chunk-54UL4U2E.js";
8
- import "./chunk-L4RD3TAZ.js";
9
- import "./chunk-NGV45YWB.js";
10
- import "./chunk-GY5GATZL.js";
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-T7OGE5E5.js";
13
- import "./chunk-USHFSJT7.js";
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-ALJUSOF7.js";
17
- import "./chunk-LHUMBHG7.js";
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
23
  import "./chunk-OG7G6DIR.js";
23
- import "./chunk-UCOHFZ77.js";
24
+ import "./chunk-I5XO5FL4.js";
24
25
  import "./chunk-T6UB5PNX.js";
25
26
  import "./chunk-7NXKPDF3.js";
26
- import "./chunk-XCO3RV3Z.js";
27
- import "./chunk-7HLNJ2BI.js";
28
- import "./chunk-VGL5AZN5.js";
29
- import "./chunk-QV3WPU7A.js";
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-4DHYSJJT.js";
32
- import "./chunk-WBMO7YCO.js";
33
- import "./chunk-E6YVGIEW.js";
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
 
@@ -9,7 +9,7 @@ import {
9
9
  hostProofReferenceFor,
10
10
  inspectDeviceIdentity,
11
11
  serializeHostProof
12
- } from "./chunk-E6YVGIEW.js";
12
+ } from "./chunk-VWB3VEOL.js";
13
13
  import {
14
14
  __toESM
15
15
  } from "./chunk-BTS4ZTF3.js";
@@ -26,7 +26,7 @@ import {
26
26
  repositoryChangeInputSchema,
27
27
  repositoryIdentityMatches,
28
28
  repositoryIdentitySchema
29
- } from "./chunk-E6YVGIEW.js";
29
+ } from "./chunk-VWB3VEOL.js";
30
30
  import {
31
31
  external_exports
32
32
  } from "./chunk-FSNLU46W.js";
@@ -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-XKXSC6YS.js";
5
+ } from "./chunk-J7LW6JFY.js";
6
+ import "./chunk-2YCDKSKW.js";
6
7
  import "./chunk-JYK6UL6D.js";
7
- import "./chunk-VGL5AZN5.js";
8
- import "./chunk-QV3WPU7A.js";
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-54UL4U2E.js";
10
- import "./chunk-L4RD3TAZ.js";
11
- import "./chunk-NGV45YWB.js";
12
- import "./chunk-GY5GATZL.js";
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-T7OGE5E5.js";
15
- import "./chunk-USHFSJT7.js";
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-ALJUSOF7.js";
19
- import "./chunk-LHUMBHG7.js";
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
25
  import "./chunk-OG7G6DIR.js";
25
- import "./chunk-UCOHFZ77.js";
26
+ import "./chunk-I5XO5FL4.js";
26
27
  import "./chunk-T6UB5PNX.js";
27
28
  import "./chunk-7NXKPDF3.js";
28
- import "./chunk-XCO3RV3Z.js";
29
- import "./chunk-7HLNJ2BI.js";
30
- import "./chunk-VGL5AZN5.js";
31
- import "./chunk-QV3WPU7A.js";
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-4DHYSJJT.js";
34
- import "./chunk-WBMO7YCO.js";
35
- import "./chunk-E6YVGIEW.js";
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-T7OGE5E5.js";
11
+ } from "./chunk-ULUSFNAE.js";
12
12
  import {
13
13
  applyPersistedLocalPorts
14
14
  } from "./chunk-TISYUUEJ.js";
15
- import "./chunk-LHUMBHG7.js";
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-WBMO7YCO.js";
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-E6YVGIEW.js";
76
+ } from "./chunk-VWB3VEOL.js";
77
77
  import {
78
78
  external_exports
79
79
  } from "./chunk-FSNLU46W.js";
@@ -5,6 +5,10 @@ import {
5
5
  import {
6
6
  resolveKoedControlPlaneVersion
7
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";
@@ -3547,7 +3551,7 @@ var registerPersonalSyncCommands = (program2, dependencies, complete, advanced,
3547
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-EEBIYWTE.js"), (service) => service.runPairCommand(operation, input, dependencies), dependencies, input.json));
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"])
@@ -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-OZU6JFB4.js")).runPersonalSyncCommand;
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-UIMUUIH7.js"), (service) => service.runRemoteMcpOperation(operation, input, {
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-AOZ3LMTF.js"), (service) => service.runSecretProviderCommand(operation, reference, dependencies), dependencies, false));
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-BYN6KXNP.js"), async (service) => {
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-KRBZZ6GS.js");
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-Y6GE52OP.js"), (service) => service.runIntegrationCommand(operation, { ...options, client }, dependencies), dependencies, options.json));
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-DWWMBGHX.js"), (service) => service.runLifecycleCommand(operation, { ...options, identityAction }, dependencies), dependencies, options.json));
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-SQZ2OSP6.js")).listUpstreamBackends;
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-SQZ2OSP6.js")).registerUpstreamBackend;
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-SQZ2OSP6.js")).refreshUpstreamBackendCapabilities;
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-SQZ2OSP6.js")).updateUpstreamBackendRoutePolicy;
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-SQZ2OSP6.js")).setActiveUpstreamBackend;
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-SQZ2OSP6.js")).removeUpstreamBackend;
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-F7AMEDDU.js")).disconnectUpstreamBackendEnrollment;
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-F7AMEDDU.js")).startUpstreamEnrollment;
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-F7AMEDDU.js")).getUpstreamEnrollmentStatus;
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-F7AMEDDU.js")).cancelUpstreamEnrollment;
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-VLP72QWX.js")).discoverProjectMetadata;
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-VLP72QWX.js")).listProjectMetadata;
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-VLP72QWX.js")).getProjectMetadataForCwd;
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-VLP72QWX.js")).forgetProjectMetadata;
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-VLP72QWX.js");
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-F77ZTTNS.js")).collectServerPackageStatus;
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-F77ZTTNS.js")).installServerPackage;
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-F77ZTTNS.js")).activateServerPackage;
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-F77ZTTNS.js")).cleanupServerPackages;
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-S6HD3MDU.js")).collectPrivacyModelStatus;
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-S6HD3MDU.js")).installPrivacyModel;
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,7 +4239,7 @@ 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-273NMYXE.js");
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.");
@@ -4243,9 +4247,9 @@ var runRuntimeCommand = async (operation, options, dependencies) => {
4243
4247
  release.assertReleaseHost();
4244
4248
  if (process.platform === "darwin")
4245
4249
  throw new Error("CUDA runtime validation is not supported on macOS.");
4246
- const { withStoppedRuntime } = await import("./chunk-ILQVLZ2I.js");
4250
+ const { withStoppedRuntime } = await import("./chunk-TMCW2P6G.js");
4247
4251
  const { resolveKoedRuntimeOwner } = await import("./chunk-ZKKWLLPU.js");
4248
- const { validateStagedCuda } = await import("./chunk-W6632NOX.js");
4252
+ const { validateStagedCuda } = await import("./chunk-BDJR6CKS.js");
4249
4253
  result = await withRuntimeCancellation((signal) => withStoppedRuntime(paths, resolveKoedRuntimeOwner(), () => validateStagedCuda(paths, root, environment, {
4250
4254
  signal,
4251
4255
  requireModel: options.requireModel === true
@@ -4307,21 +4311,10 @@ var registerRuntimeCommands = (program2, dependencies, complete) => {
4307
4311
  };
4308
4312
 
4309
4313
  // packages/koed-server/dist/personal-device-sync-feature.js
4310
- var personalDeviceSyncFeatureEnvironmentName = "KOED_PERSONAL_DEVICE_SYNC_ENABLED";
4311
4314
  var personalDeviceSyncCommandNames = [
4312
4315
  "pair",
4313
4316
  "personal-sync"
4314
4317
  ];
4315
- var resolvePersonalDeviceSyncEnabled = (environment = process.env) => {
4316
- const configured = environment[personalDeviceSyncFeatureEnvironmentName];
4317
- if (configured === void 0 || configured === "")
4318
- return false;
4319
- if (configured === "true")
4320
- return true;
4321
- if (configured === "false")
4322
- return false;
4323
- throw new Error(`${personalDeviceSyncFeatureEnvironmentName} must be exactly "true" or "false"`);
4324
- };
4325
4318
 
4326
4319
  // packages/koed-server/dist/cli-command-tree.js
4327
4320
  var runCommandTree = async (args, dependencies = {}) => {
@@ -3,11 +3,12 @@ import {
3
3
  checkCudaHost,
4
4
  nativeCommand,
5
5
  validateStagedCuda
6
- } from "./chunk-XKXSC6YS.js";
6
+ } from "./chunk-J7LW6JFY.js";
7
+ import "./chunk-2YCDKSKW.js";
7
8
  import "./chunk-JYK6UL6D.js";
8
9
  import {
9
10
  resolveKoedServerConfig
10
- } from "./chunk-ALJUSOF7.js";
11
+ } from "./chunk-YY7NMZGD.js";
11
12
  import {
12
13
  resolveKoedRuntimeOwner
13
14
  } from "./chunk-OG7G6DIR.js";
@@ -17,10 +18,10 @@ import {
17
18
  renameAtomically,
18
19
  resolveDesktopRuntimeOwner,
19
20
  withStoppedRuntime
20
- } from "./chunk-UCOHFZ77.js";
21
+ } from "./chunk-I5XO5FL4.js";
21
22
  import "./chunk-T6UB5PNX.js";
22
23
  import "./chunk-7NXKPDF3.js";
23
- import "./chunk-XCO3RV3Z.js";
24
+ import "./chunk-YDZEMIAH.js";
24
25
  import {
25
26
  canonicalArtifactJson,
26
27
  extractNativeArchive,
@@ -30,7 +31,7 @@ import {
30
31
  readNativeMetadata,
31
32
  syncNativeDirectory,
32
33
  verifyNativePayload
33
- } from "./chunk-7HLNJ2BI.js";
34
+ } from "./chunk-MFPPURFE.js";
34
35
  import {
35
36
  compareNativeVersions,
36
37
  compatibleCuda,
@@ -38,8 +39,8 @@ import {
38
39
  nativeKind,
39
40
  selectNativeRuntimeCatalog,
40
41
  validateNativeRuntimeCatalog
41
- } from "./chunk-VGL5AZN5.js";
42
- import "./chunk-QV3WPU7A.js";
42
+ } from "./chunk-H7ETSD25.js";
43
+ import "./chunk-ULLAURFV.js";
43
44
  import "./chunk-IY2HRXOZ.js";
44
45
  import "./chunk-FSNLU46W.js";
45
46
  import "./chunk-BTS4ZTF3.js";
@@ -4,13 +4,15 @@ import {
4
4
  isKoedServerCliEntrypoint,
5
5
  runKoedServerCli,
6
6
  shouldExitPackagedSupervisor
7
- } from "./chunk-TIBYKMRW.js";
7
+ } from "./chunk-CX73L6YS.js";
8
8
  import {
9
9
  startKoedServerDaemon
10
10
  } from "./chunk-7FSHVVTZ.js";
11
11
  import "./chunk-TSAYTRX3.js";
12
12
  import "./chunk-YZLQZU5E.js";
13
13
  import "./chunk-OG7G6DIR.js";
14
+ import "./chunk-VWB3VEOL.js";
15
+ import "./chunk-FSNLU46W.js";
14
16
  import "./chunk-BTS4ZTF3.js";
15
17
  export {
16
18
  isKoedServerCliEntrypoint,
@@ -3,7 +3,7 @@ import {
3
3
  PINNED_PRIVACY_MODEL_FILES,
4
4
  PINNED_PRIVACY_MODEL_ID,
5
5
  PINNED_PRIVACY_MODEL_REVISION
6
- } from "./chunk-E6YVGIEW.js";
6
+ } from "./chunk-VWB3VEOL.js";
7
7
 
8
8
  // packages/koed-server/dist/privacy-model-runtime.js
9
9
  import { createHash, randomUUID } from "node:crypto";
@@ -1,10 +1,13 @@
1
1
  import { createRequire as createKoedRequire } from "node:module"; const require = createKoedRequire(import.meta.url);
2
+ import {
3
+ privateNodeLauncher
4
+ } from "./chunk-2YCDKSKW.js";
2
5
  import {
3
6
  resolveKoedHome
4
7
  } from "./chunk-TSAYTRX3.js";
5
8
  import {
6
9
  createPdsApplicationSecretStore
7
- } from "./chunk-E6YVGIEW.js";
10
+ } from "./chunk-VWB3VEOL.js";
8
11
 
9
12
  // packages/koed-server/dist/application-secret-provider.js
10
13
  import { existsSync } from "node:fs";
@@ -24,7 +27,9 @@ var bundledPdsSecretProviderEnvironment = (environment) => {
24
27
  return {
25
28
  ...environment,
26
29
  PDS_SECRET_PROVIDER: "headless",
27
- PDS_SECRET_PROVIDER_COMMAND: process.execPath,
30
+ // Providers run with a restricted environment, so use the private Node
31
+ // launcher that supplies its own library path.
32
+ PDS_SECRET_PROVIDER_COMMAND: privateNodeLauncher(),
28
33
  PDS_SECRET_PROVIDER_COMMAND_ARGS_JSON: JSON.stringify([
29
34
  bundledCliPath(),
30
35
  "secret-provider"
@@ -1,7 +1,7 @@
1
1
  import { createRequire as createKoedRequire } from "node:module"; const require = createKoedRequire(import.meta.url);
2
2
  import {
3
3
  productionNativeRuntimeCatalog
4
- } from "./chunk-QV3WPU7A.js";
4
+ } from "./chunk-ULLAURFV.js";
5
5
  import {
6
6
  external_exports
7
7
  } from "./chunk-FSNLU46W.js";