@koed-labs/server 1.0.0 → 1.3.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/package.json +1 -1
- package/vendor/{chunk-W2HNI6AA.js → chunk-26D2DYEJ.js} +12 -2
- package/vendor/{chunk-S6HD3MDU.js → chunk-2XVGC6KN.js} +2 -2
- package/vendor/chunk-2YCDKSKW.js +45 -0
- package/vendor/{chunk-T7OGE5E5.js → chunk-4QETHLFK.js} +3 -3
- package/vendor/{chunk-E6YVGIEW.js → chunk-5ZYY6GLX.js} +728 -34
- package/vendor/{chunk-BYN6KXNP.js → chunk-AAAVAB5Q.js} +5 -5
- package/vendor/{chunk-UCOHFZ77.js → chunk-B25G2HFV.js} +2 -2
- package/vendor/{chunk-F77ZTTNS.js → chunk-BRPU557N.js} +3 -3
- package/vendor/{chunk-QV3WPU7A.js → chunk-BTBSSNAR.js} +1 -1
- package/vendor/{chunk-ILQVLZ2I.js → chunk-BYN4THYX.js} +5 -5
- package/vendor/{chunk-64AST7WZ.js → chunk-BYZDN2WK.js} +5 -2
- package/vendor/{chunk-XKXSC6YS.js → chunk-CLI4TFKY.js} +21 -13
- package/vendor/{chunk-W6632NOX.js → chunk-CZKIP3UJ.js} +4 -3
- package/vendor/{chunk-DWWMBGHX.js → chunk-DNHKSXD5.js} +19 -18
- package/vendor/{chunk-AOZ3LMTF.js → chunk-F7BTC7UR.js} +3 -2
- package/vendor/{chunk-USHFSJT7.js → chunk-FZAIOBQQ.js} +11 -9
- package/vendor/{chunk-NGV45YWB.js → chunk-GBQXRSSZ.js} +4 -4
- package/vendor/{chunk-7FSHVVTZ.js → chunk-HFGCZ76G.js} +7 -1
- package/vendor/{chunk-4DHYSJJT.js → chunk-HN2X7VA2.js} +1 -1
- package/vendor/{chunk-54UL4U2E.js → chunk-IHVJNZXT.js} +101 -33
- package/vendor/{chunk-EEBIYWTE.js → chunk-JHHI5KG6.js} +19 -18
- package/vendor/{chunk-TIBYKMRW.js → chunk-JLYGPZYP.js} +38 -45
- package/vendor/{chunk-XCO3RV3Z.js → chunk-K2KUQRHT.js} +1 -1
- package/vendor/{chunk-Y6GE52OP.js → chunk-KB3MFZD7.js} +20 -19
- package/vendor/{chunk-L4RD3TAZ.js → chunk-LLJV6XQ6.js} +14 -8
- package/vendor/{chunk-KG3RANR4.js → chunk-LVUQ5N23.js} +1 -1
- package/vendor/{chunk-KRBZZ6GS.js → chunk-O5NAIZP3.js} +9 -9
- package/vendor/{chunk-SQZ2OSP6.js → chunk-OFNOMEVX.js} +2 -2
- package/vendor/{chunk-273NMYXE.js → chunk-PAPGIBPA.js} +8 -7
- package/vendor/{chunk-VLP72QWX.js → chunk-PMDFTON3.js} +116 -64
- package/vendor/{chunk-GY5GATZL.js → chunk-RBD4HLDB.js} +7 -2
- package/vendor/{chunk-F7AMEDDU.js → chunk-SANHAZJM.js} +4 -4
- package/vendor/{chunk-WBMO7YCO.js → chunk-SQNSVJ3W.js} +1 -1
- package/vendor/{chunk-VGL5AZN5.js → chunk-TCL6KGG7.js} +1 -1
- package/vendor/{chunk-7NOQSX4T.js → chunk-UKBULNBO.js} +5 -3
- package/vendor/{chunk-OZU6JFB4.js → chunk-XSNPYCS5.js} +6 -5
- package/vendor/{chunk-LHUMBHG7.js → chunk-XYC3MIS6.js} +1 -1
- package/vendor/{chunk-UIMUUIH7.js → chunk-YHXEFDZV.js} +14 -14
- package/vendor/{chunk-7HLNJ2BI.js → chunk-YLFOTZFU.js} +1 -1
- package/vendor/{chunk-ALJUSOF7.js → chunk-YY7NMZGD.js} +79 -1
- package/vendor/component-manifest-catalog.js +1 -1
- package/vendor/control-plane.js +7 -4
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.
|
|
12
|
+
npm install --global @koed-labs/server@1.3.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.
|
|
22
|
+
koed components install --component base --archive-url https://github.com/koed-labs/koed/releases/download/v1.3.0/koed-base-1.3.0-linux-x64.tar.gz --manifest-url https://github.com/koed-labs/koed/releases/download/v1.3.0/koed-base-1.3.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.
|
|
28
|
+
koed components install --component base --archive-url https://github.com/koed-labs/koed/releases/download/v1.3.0/koed-base-1.3.0-macos-arm64.tar.gz --manifest-url https://github.com/koed-labs/koed/releases/download/v1.3.0/koed-base-1.3.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
|
@@ -3,6 +3,8 @@ import { createRequire as createKoedRequire } from "node:module"; const require
|
|
|
3
3
|
// packages/koed-server/dist/env-file.js
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
import { resolve } from "node:path";
|
|
6
|
+
|
|
7
|
+
// packages/shared/dist/env-file.js
|
|
6
8
|
var parseEnvFile = (content, options = {}) => {
|
|
7
9
|
const values = {};
|
|
8
10
|
const fail = (lineNumber, reason) => {
|
|
@@ -54,12 +56,19 @@ var parseEnvFile = (content, options = {}) => {
|
|
|
54
56
|
}
|
|
55
57
|
return values;
|
|
56
58
|
};
|
|
59
|
+
|
|
60
|
+
// packages/koed-server/dist/env-file.js
|
|
61
|
+
var withAbsoluteEnvPath = (environment, cwd = process.cwd()) => {
|
|
62
|
+
const selectedPath = environment.KOED_ENV_PATH?.trim();
|
|
63
|
+
return selectedPath ? { ...environment, KOED_ENV_PATH: resolve(cwd, selectedPath) } : environment;
|
|
64
|
+
};
|
|
57
65
|
var loadRepoEnv = (repoRoot, environment = process.env) => {
|
|
58
|
-
const
|
|
66
|
+
const explicitPath = environment.KOED_ENV_PATH?.trim();
|
|
67
|
+
const envPath = explicitPath ? resolve(explicitPath) : resolve(repoRoot, ".env");
|
|
59
68
|
if (!existsSync(envPath)) {
|
|
60
69
|
return {};
|
|
61
70
|
}
|
|
62
|
-
return parseEnvFile(readFileSync(envPath, "utf8"));
|
|
71
|
+
return parseEnvFile(readFileSync(envPath, "utf8"), explicitPath ? { strict: true, source: envPath } : {});
|
|
63
72
|
};
|
|
64
73
|
var environmentWithRepoEnv = (repoRoot, environment = process.env) => ({
|
|
65
74
|
...loadRepoEnv(repoRoot, environment),
|
|
@@ -69,6 +78,7 @@ var resolveApiUrl = (environment, repoEnv) => ((environment.KOED_AUTO_PORTS ===
|
|
|
69
78
|
|
|
70
79
|
export {
|
|
71
80
|
parseEnvFile,
|
|
81
|
+
withAbsoluteEnvPath,
|
|
72
82
|
loadRepoEnv,
|
|
73
83
|
environmentWithRepoEnv,
|
|
74
84
|
resolveApiUrl
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
installPrivacyModel,
|
|
8
8
|
materializePrivacyModelCacheEntry,
|
|
9
9
|
resolvePrivacyModelPaths
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-HN2X7VA2.js";
|
|
11
|
+
import "./chunk-5ZYY6GLX.js";
|
|
12
12
|
import "./chunk-FSNLU46W.js";
|
|
13
13
|
import "./chunk-BTS4ZTF3.js";
|
|
14
14
|
export {
|
|
@@ -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
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as createKoedRequire } from "node:module"; const require = createKoedRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
ensureDeviceIdentity
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XYC3MIS6.js";
|
|
5
5
|
import {
|
|
6
6
|
require_proper_lockfile
|
|
7
7
|
} from "./chunk-7NXKPDF3.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
upstreamBackendAdvertisesCapability,
|
|
20
20
|
upstreamBackendSupportsTeamMemoryAnswerTasks,
|
|
21
21
|
upstreamDisconnectCleanupPending
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SQNSVJ3W.js";
|
|
23
23
|
import {
|
|
24
24
|
assertSecureHttpTransport,
|
|
25
25
|
deleteLocalEdgeClientCredential,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
storeLocalEdgeClientCredential,
|
|
31
31
|
storeUpstreamCredentialSecret,
|
|
32
32
|
upstreamCredentialReferenceFor
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-5ZYY6GLX.js";
|
|
34
34
|
import {
|
|
35
35
|
__toESM
|
|
36
36
|
} from "./chunk-BTS4ZTF3.js";
|