@opencangjie/skills 0.0.18 → 0.0.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencangjie/skills",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "description": "JavaScript/TypeScript SDK for AgentSkills Runtime - Install, manage, and execute AI agent skills with built-in runtime support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -81,7 +81,7 @@
81
81
  "node": ">=18.0.0"
82
82
  },
83
83
  "runtime": {
84
- "version": "0.0.3",
84
+ "version": "0.0.4",
85
85
  "downloadUrl": "https://atomgit.com/UCToo/agentskills-runtime/releases",
86
86
  "platforms": {
87
87
  "win32-x64": "agentskills-runtime-win-x64.tar.gz",
@@ -9,8 +9,10 @@ const os = require('os');
9
9
  const GITHUB_REPO = 'UCTooCom/agentskills-runtime';
10
10
  const ATOMGIT_REPO = 'uctoo/agentskills-runtime';
11
11
 
12
- const packageJson = require('../package.json');
13
- const RUNTIME_VERSION = packageJson.runtime?.version || '0.0.2';
12
+ const packageJsonPath = path.join(__dirname, '..', 'package.json');
13
+ const packageJsonContent = fs.readFileSync(packageJsonPath, 'utf8');
14
+ const packageJson = JSON.parse(packageJsonContent);
15
+ const RUNTIME_VERSION = packageJson.runtime && packageJson.runtime.version ? packageJson.runtime.version : '0.0.3';
14
16
 
15
17
  const DOWNLOAD_MIRRORS = [
16
18
  {