@opencangjie/skills 0.0.28 → 0.0.30
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 +1 -1
- package/scripts/runtime.js +2 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencangjie/skills",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
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",
|
package/scripts/runtime.js
CHANGED
|
@@ -17,15 +17,13 @@ const RUNTIME_VERSION = packageJson.runtime && packageJson.runtime.version ? pac
|
|
|
17
17
|
const DOWNLOAD_MIRRORS = [
|
|
18
18
|
{
|
|
19
19
|
name: 'atomgit',
|
|
20
|
-
url: `https://
|
|
21
|
-
downloadPath: `/attach_files`,
|
|
20
|
+
url: `https://atomgit.com/${ATOMGIT_REPO}/releases/download`,
|
|
22
21
|
priority: 1,
|
|
23
22
|
region: 'china'
|
|
24
23
|
},
|
|
25
24
|
{
|
|
26
25
|
name: 'github',
|
|
27
26
|
url: `https://github.com/${GITHUB_REPO}/releases/download`,
|
|
28
|
-
downloadPath: '',
|
|
29
27
|
priority: 2,
|
|
30
28
|
region: 'global'
|
|
31
29
|
}
|
|
@@ -123,13 +121,7 @@ async function downloadRuntime(version = RUNTIME_VERSION) {
|
|
|
123
121
|
const archivePath = path.join(runtimeDir, 'runtime.tar.gz');
|
|
124
122
|
|
|
125
123
|
for (const mirror of DOWNLOAD_MIRRORS) {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
if (mirror.name === 'atomgit') {
|
|
129
|
-
downloadUrl = `${mirror.url}/v${version}/attach_files/${fileName}/download`;
|
|
130
|
-
} else {
|
|
131
|
-
downloadUrl = `${mirror.url}/v${version}/${fileName}`;
|
|
132
|
-
}
|
|
124
|
+
const downloadUrl = `${mirror.url}/v${version}/${fileName}`;
|
|
133
125
|
|
|
134
126
|
console.log(`Trying mirror: ${mirror.name} (${mirror.region})`);
|
|
135
127
|
console.log(`URL: ${downloadUrl}`);
|