xkat-cli 2.0.1 → 2.0.2
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/checksums.json +5 -5
- package/package.json +2 -2
- package/scripts/generate-checksums.js +21 -5
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# xkat Agent
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
xkat Agent is an AI agent for your machine. It securely connects your browser
|
|
4
4
|
to your local environment, turning the power of your computer into capabilities
|
|
5
5
|
the web experience can use.
|
|
6
6
|
|
|
@@ -70,7 +70,7 @@ xkat up
|
|
|
70
70
|
|
|
71
71
|
## Security guidelines
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
xkat Agent includes the following safeguards:
|
|
74
74
|
|
|
75
75
|
1. **Localhost only**: Port 10022 is reachable only from localhost.
|
|
76
76
|
2. **Origin verification**: Only connection requests from the official service
|
package/bin/checksums.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"xkat-agent-macos-aarch64": "
|
|
3
|
-
"xkat-agent-macos-x64": "
|
|
4
|
-
"xkat-agent-linux-x64": "
|
|
5
|
-
"xkat-agent-linux-aarch64": "
|
|
6
|
-
"xkat-agent-win-x64.exe": "
|
|
2
|
+
"xkat-agent-macos-aarch64": "96fa05e9d8ea259d82b3bd2ddb7319b50e1afb8728c7d765896dd449840f35f2",
|
|
3
|
+
"xkat-agent-macos-x64": "60aacd8e8889e444408dd8a72e47b800cffdbc7a4b2a23e29b5bb577e9e25a6b",
|
|
4
|
+
"xkat-agent-linux-x64": "89b9285f1f8bc4cbc4c4678a53a4b86ff144bd489face7ec1e7439848dfe5733",
|
|
5
|
+
"xkat-agent-linux-aarch64": "dd735c36643d1a775b12a82d2d1e230647cc1d898a0251ef27fb9a1c4737a2ba",
|
|
6
|
+
"xkat-agent-win-x64.exe": "2cb5efcf0a60c4477e43acdf17cf18b13d4a2184cd7b23adafc2438a09e18570"
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xkat-cli",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.0.2",
|
|
4
|
+
"description": "xkat Agent - an AI agent that securely connects your browser to your machine",
|
|
5
5
|
"main": "bin/xkat-cli.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"xkat": "bin/xkat-cli.js"
|
|
@@ -2,8 +2,23 @@ const fs = require('fs');
|
|
|
2
2
|
const path = require('path');
|
|
3
3
|
const crypto = require('crypto');
|
|
4
4
|
|
|
5
|
-
//
|
|
6
|
-
const
|
|
5
|
+
// Find artifacts directory across repository root, workspace, or current dir
|
|
6
|
+
const candidateDirs = [
|
|
7
|
+
process.env.ARTIFACTS_DIR,
|
|
8
|
+
process.env.GITHUB_WORKSPACE ? path.join(process.env.GITHUB_WORKSPACE, 'artifacts') : null,
|
|
9
|
+
path.resolve(process.cwd(), 'artifacts'),
|
|
10
|
+
path.resolve(__dirname, '..', 'artifacts'),
|
|
11
|
+
path.resolve(__dirname, '../../..', 'artifacts'),
|
|
12
|
+
].filter(Boolean);
|
|
13
|
+
|
|
14
|
+
let artifactsDir = candidateDirs[0];
|
|
15
|
+
for (const dir of candidateDirs) {
|
|
16
|
+
if (fs.existsSync(dir)) {
|
|
17
|
+
artifactsDir = dir;
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
7
22
|
const destFile = path.resolve(__dirname, '..', 'bin', 'checksums.json');
|
|
8
23
|
|
|
9
24
|
const targets = [
|
|
@@ -19,9 +34,10 @@ const checksums = {};
|
|
|
19
34
|
console.log(`🔍 Scanning for artifacts in: ${artifactsDir}`);
|
|
20
35
|
|
|
21
36
|
for (const target of targets) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
37
|
+
let filePath = path.join(artifactsDir, target, target);
|
|
38
|
+
if (!fs.existsSync(filePath)) {
|
|
39
|
+
filePath = path.join(artifactsDir, target);
|
|
40
|
+
}
|
|
25
41
|
if (!fs.existsSync(filePath)) {
|
|
26
42
|
console.error(`❌ Missing artifact for target ${target} at ${filePath}`);
|
|
27
43
|
process.exit(1);
|