@tetsuo-ai/agenc 0.4.2 → 0.4.3
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.
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifestVersion": 1,
|
|
3
|
-
"runtimeVersion": "0.4.
|
|
3
|
+
"runtimeVersion": "0.4.3",
|
|
4
4
|
"releaseRepository": "tetsuo-ai/agenc-releases",
|
|
5
|
-
"releaseTag": "agenc-v0.4.
|
|
5
|
+
"releaseTag": "agenc-v0.4.3",
|
|
6
6
|
"artifacts": [
|
|
7
7
|
{
|
|
8
8
|
"platform": "darwin",
|
|
9
9
|
"arch": "arm64",
|
|
10
|
-
"runtimeVersion": "0.4.
|
|
11
|
-
"url": "https://github.com/tetsuo-ai/agenc-releases/releases/download/agenc-v0.4.
|
|
12
|
-
"sha256": "
|
|
13
|
-
"bytes":
|
|
10
|
+
"runtimeVersion": "0.4.3",
|
|
11
|
+
"url": "https://github.com/tetsuo-ai/agenc-releases/releases/download/agenc-v0.4.3/agenc-runtime-0.4.3-darwin-arm64.tar.gz",
|
|
12
|
+
"sha256": "5c417a512c4f2d955409c8e4dce76f9e04eaf484ea09918cf8bd0ce2aa07af4c",
|
|
13
|
+
"bytes": 82070258,
|
|
14
14
|
"bins": {
|
|
15
15
|
"agenc": "node_modules/@tetsuo-ai/runtime/bin/agenc"
|
|
16
16
|
}
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
{
|
|
19
19
|
"platform": "darwin",
|
|
20
20
|
"arch": "x64",
|
|
21
|
-
"runtimeVersion": "0.4.
|
|
22
|
-
"url": "https://github.com/tetsuo-ai/agenc-releases/releases/download/agenc-v0.4.
|
|
23
|
-
"sha256": "
|
|
24
|
-
"bytes":
|
|
21
|
+
"runtimeVersion": "0.4.3",
|
|
22
|
+
"url": "https://github.com/tetsuo-ai/agenc-releases/releases/download/agenc-v0.4.3/agenc-runtime-0.4.3-darwin-x64.tar.gz",
|
|
23
|
+
"sha256": "ff9d6d7c78b7bc7d2b3027aa73b2ae6b305ab246bc37932067c58afe4cd08b2a",
|
|
24
|
+
"bytes": 82874692,
|
|
25
25
|
"bins": {
|
|
26
26
|
"agenc": "node_modules/@tetsuo-ai/runtime/bin/agenc"
|
|
27
27
|
}
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
{
|
|
30
30
|
"platform": "linux",
|
|
31
31
|
"arch": "arm64",
|
|
32
|
-
"runtimeVersion": "0.4.
|
|
33
|
-
"url": "https://github.com/tetsuo-ai/agenc-releases/releases/download/agenc-v0.4.
|
|
34
|
-
"sha256": "
|
|
35
|
-
"bytes":
|
|
32
|
+
"runtimeVersion": "0.4.3",
|
|
33
|
+
"url": "https://github.com/tetsuo-ai/agenc-releases/releases/download/agenc-v0.4.3/agenc-runtime-0.4.3-linux-arm64.tar.gz",
|
|
34
|
+
"sha256": "c689b1be8ada0a296d874a5d6ab5515a213e6be1e8cc619d6795d9610cfcce10",
|
|
35
|
+
"bytes": 82461422,
|
|
36
36
|
"bins": {
|
|
37
37
|
"agenc": "node_modules/@tetsuo-ai/runtime/bin/agenc"
|
|
38
38
|
}
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
{
|
|
41
41
|
"platform": "linux",
|
|
42
42
|
"arch": "x64",
|
|
43
|
-
"runtimeVersion": "0.4.
|
|
44
|
-
"url": "https://github.com/tetsuo-ai/agenc-releases/releases/download/agenc-v0.4.
|
|
45
|
-
"sha256": "
|
|
46
|
-
"bytes":
|
|
43
|
+
"runtimeVersion": "0.4.3",
|
|
44
|
+
"url": "https://github.com/tetsuo-ai/agenc-releases/releases/download/agenc-v0.4.3/agenc-runtime-0.4.3-linux-x64.tar.gz",
|
|
45
|
+
"sha256": "e82d259e2b564595e88767969ff4c204858ea2c0bb7e997a5fda09db8d98760c",
|
|
46
|
+
"bytes": 82469307,
|
|
47
47
|
"bins": {
|
|
48
48
|
"agenc": "node_modules/@tetsuo-ai/runtime/bin/agenc"
|
|
49
49
|
}
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
{
|
|
52
52
|
"platform": "win",
|
|
53
53
|
"arch": "x64",
|
|
54
|
-
"runtimeVersion": "0.4.
|
|
55
|
-
"url": "https://github.com/tetsuo-ai/agenc-releases/releases/download/agenc-v0.4.
|
|
56
|
-
"sha256": "
|
|
57
|
-
"bytes":
|
|
54
|
+
"runtimeVersion": "0.4.3",
|
|
55
|
+
"url": "https://github.com/tetsuo-ai/agenc-releases/releases/download/agenc-v0.4.3/agenc-runtime-0.4.3-win-x64.tar.gz",
|
|
56
|
+
"sha256": "3e98c6889b09f498ba77f1c0ed66af29242074ae26d3a8e7248f87710451825c",
|
|
57
|
+
"bytes": 81824277,
|
|
58
58
|
"bins": {
|
|
59
59
|
"agenc": "node_modules/@tetsuo-ai/runtime/bin/agenc"
|
|
60
60
|
}
|
package/lib/runtime-manager.mjs
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { spawnSync } from "node:child_process";
|
|
13
13
|
import { createHash } from "node:crypto";
|
|
14
14
|
import {
|
|
15
|
+
chmodSync,
|
|
15
16
|
createReadStream,
|
|
16
17
|
createWriteStream,
|
|
17
18
|
existsSync,
|
|
@@ -115,7 +116,8 @@ async function download(url, dest, fetchImpl = globalThis.fetch) {
|
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
function extractTarGz(archive, destDir) {
|
|
118
|
-
mkdirSync(destDir, { recursive: true });
|
|
119
|
+
mkdirSync(destDir, { recursive: true, mode: 0o700 });
|
|
120
|
+
try { chmodSync(destDir, 0o700); } catch { /* ignore */ }
|
|
119
121
|
const res = spawnSync("tar", ["-xzf", archive, "-C", destDir], {
|
|
120
122
|
stdio: ["ignore", "ignore", "inherit"],
|
|
121
123
|
});
|
|
@@ -135,6 +137,13 @@ export async function ensureRuntime({
|
|
|
135
137
|
log = (m) => process.stderr.write(m + "\n"),
|
|
136
138
|
} = {}) {
|
|
137
139
|
const home = resolveAgenCHome(env, userHome);
|
|
140
|
+
// Owner-only home (todo-120); install.sh already chmods 700.
|
|
141
|
+
mkdirSync(home, { recursive: true, mode: 0o700 });
|
|
142
|
+
try {
|
|
143
|
+
chmodSync(home, 0o700);
|
|
144
|
+
} catch {
|
|
145
|
+
/* ignore */
|
|
146
|
+
}
|
|
138
147
|
const version = manifest.runtimeVersion;
|
|
139
148
|
const artifact = selectArtifact(manifest, slug);
|
|
140
149
|
const installDir = runtimeInstallDir(home, version);
|