xkat-cli 2.0.0 → 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 CHANGED
@@ -1,6 +1,6 @@
1
- # xKat Agent
1
+ # xkat Agent
2
2
 
3
- xKat Agent is an AI agent for your machine. It securely connects your browser
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
- xKat Agent includes the following safeguards:
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
@@ -1,7 +1,7 @@
1
1
  {
2
- "xkat-agent-macos-aarch64": "bd41cf162b3d55e94aa1341a5a20fc3bce546e83e41e8f05ee33186512cfa4d6",
3
- "xkat-agent-macos-x64": "3dd44da165fae9970ecc24f37b5aa5c9a862abc47c23566a4ffb45aac4fe8044",
4
- "xkat-agent-linux-x64": "ce52b6289598fc2309046273a658fbd2480965b34c755020a217352d81321c37",
5
- "xkat-agent-linux-aarch64": "d3a3717f5755a38aa59e5a8191ce74058db68886f5c3ec0e1a1e708e4d1f61b4",
6
- "xkat-agent-win-x64.exe": "d8f45048371755e2967f682752d176fd764b6707b703b880b371165019d7a31c"
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.0",
4
- "description": "xKat Agent - an AI agent that securely connects your browser to your machine",
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
- // The artifacts directory is created by actions/download-artifact at the repository root
6
- const artifactsDir = path.resolve(__dirname, '../../..', 'artifacts');
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
- // In upload-r2/download-artifact, each artifact is downloaded into its own folder:
23
- // artifacts/<artifact-name>/<artifact-name>
24
- const filePath = path.join(artifactsDir, target, target);
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);