@lumyne/tuda 0.0.0-stage → 0.1.12
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 +8 -2
- package/package.json +89 -4
- package/release-manifest.json +67 -0
- package/validate.mjs +28 -0
package/README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Tuda desktop distribution
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This package distributes verified Windows and macOS installer manifests and immutable payloads. Tuda selects its operating system and CPU architecture when checking and applying desktop updates. Plugin, CLI and Skill releases use the independent `@lumyne/tuda-cli` package. Installation of this metadata package does not install or launch the desktop.
|
|
4
|
+
|
|
5
|
+
### Registry migration
|
|
6
|
+
|
|
7
|
+
Prepare a desktop migration release that reads `@lumyne/tuda`. Publish and verify that version under `@lumyne/tuda` first. Publish the same desktop version through `@petercjl/tuda-desktop` with payload URLs under the old package so installed desktop versions can reach it. Subsequent desktop releases use `@lumyne/tuda`. Existing clients that have yet to migrate can still obtain the migration release through the old package.
|
|
8
|
+
|
|
9
|
+
The CLI and Skill ship separately as `@lumyne/tuda-cli`. Users of the previous CLI can ask their current Agent to install the new package and update the existing `using-tuda` Skill.
|
package/package.json
CHANGED
|
@@ -1,6 +1,91 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumyne/tuda",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.12",
|
|
4
|
+
"description": "Tuda Windows and macOS desktop release manifest and immutable installer payload distribution",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"release-manifest.json",
|
|
9
|
+
"README.md",
|
|
10
|
+
"validate.mjs"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"prepack": "node validate.mjs",
|
|
14
|
+
"check": "node validate.mjs"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/petercjl/iterlay.git",
|
|
19
|
+
"directory": "desktop-package"
|
|
20
|
+
},
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"tudaRelease": {
|
|
25
|
+
"schemaVersion": 1,
|
|
26
|
+
"applicationVersion": "0.1.12",
|
|
27
|
+
"installers": [
|
|
28
|
+
{
|
|
29
|
+
"version": "0.1.12",
|
|
30
|
+
"platform": "darwin",
|
|
31
|
+
"arch": "arm64",
|
|
32
|
+
"channel": "stable",
|
|
33
|
+
"downloadUrl": "https://registry.npmjs.org/@petercjl/tuda-desktop/-/tuda-desktop-0.0.0-payload.5a0d194b605722ae4f7eaacc38121cb71cdabde6f7659e51a5d4e4dc22e6314a.tgz",
|
|
34
|
+
"npmPayloads": [
|
|
35
|
+
{
|
|
36
|
+
"url": "https://registry.npmjs.org/@petercjl/tuda-desktop/-/tuda-desktop-0.0.0-payload.5a0d194b605722ae4f7eaacc38121cb71cdabde6f7659e51a5d4e4dc22e6314a.tgz",
|
|
37
|
+
"sha256": "5a0d194b605722ae4f7eaacc38121cb71cdabde6f7659e51a5d4e4dc22e6314a",
|
|
38
|
+
"fileSize": 50331648
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"url": "https://registry.npmjs.org/@petercjl/tuda-desktop/-/tuda-desktop-0.0.0-payload.3035c8caca5a0ddd17ac8c0b0f9fdf32b53fe6eb9585666e91537baa0bb589a6.tgz",
|
|
42
|
+
"sha256": "3035c8caca5a0ddd17ac8c0b0f9fdf32b53fe6eb9585666e91537baa0bb589a6",
|
|
43
|
+
"fileSize": 50331648
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"url": "https://registry.npmjs.org/@petercjl/tuda-desktop/-/tuda-desktop-0.0.0-payload.410cd2ba63663b189f54dbddd9c655045a49ddbaee6e6d0bfb1c35d0fd156a04.tgz",
|
|
47
|
+
"sha256": "410cd2ba63663b189f54dbddd9c655045a49ddbaee6e6d0bfb1c35d0fd156a04",
|
|
48
|
+
"fileSize": 41972917
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"sha256": "20619f839f594d32e487fb26bd86ce49819bdad541ad602d9f48287fe4e33b69",
|
|
52
|
+
"fileSize": 142636213,
|
|
53
|
+
"publishedAt": "2026-12-02T08:17:41.898Z",
|
|
54
|
+
"releaseNotes": "Tuda · 图塔 0.1.12"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"version": "0.1.12",
|
|
58
|
+
"platform": "win32",
|
|
59
|
+
"arch": "x64",
|
|
60
|
+
"channel": "stable",
|
|
61
|
+
"downloadUrl": "https://registry.npmjs.org/@petercjl/tuda-desktop/-/tuda-desktop-0.0.0-payload.9b2fe0818e94caf94cc6222b6317b06e31cdda1b522704706f6b46b5820f54c0.tgz",
|
|
62
|
+
"npmPayloads": [
|
|
63
|
+
{
|
|
64
|
+
"url": "https://registry.npmjs.org/@petercjl/tuda-desktop/-/tuda-desktop-0.0.0-payload.9b2fe0818e94caf94cc6222b6317b06e31cdda1b522704706f6b46b5820f54c0.tgz",
|
|
65
|
+
"sha256": "9b2fe0818e94caf94cc6222b6317b06e31cdda1b522704706f6b46b5820f54c0",
|
|
66
|
+
"fileSize": 25165824
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"url": "https://registry.npmjs.org/@petercjl/tuda-desktop/-/tuda-desktop-0.0.0-payload.5ee8a64deeb7b9c2b78cbb9231ad79bda7bbc52565aab72da948143c20a6daf3.tgz",
|
|
70
|
+
"sha256": "5ee8a64deeb7b9c2b78cbb9231ad79bda7bbc52565aab72da948143c20a6daf3",
|
|
71
|
+
"fileSize": 25165824
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"url": "https://registry.npmjs.org/@petercjl/tuda-desktop/-/tuda-desktop-0.0.0-payload.96382cfe94dbed0ce8572dd727c4d72842a4b3d71eae12dd0eb2605895e9ee79.tgz",
|
|
75
|
+
"sha256": "96382cfe94dbed0ce8572dd727c4d72842a4b3d71eae12dd0eb2605895e9ee79",
|
|
76
|
+
"fileSize": 50331648
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"url": "https://registry.npmjs.org/@petercjl/tuda-desktop/-/tuda-desktop-0.0.0-payload.b93f3afd5f9dbc15bce107d0c6b61a369cec1c283c701d2c63f58ac8a64a1331.tgz",
|
|
80
|
+
"sha256": "b93f3afd5f9dbc15bce107d0c6b61a369cec1c283c701d2c63f58ac8a64a1331",
|
|
81
|
+
"fileSize": 25424866
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"sha256": "bcffd77cf5f76481ce1904da7d3c5b52c0790bab29a3d4d3a661b7d6a482fb19",
|
|
85
|
+
"fileSize": 126088162,
|
|
86
|
+
"publishedAt": "2026-12-02T08:23:04.198Z",
|
|
87
|
+
"releaseNotes": "Tuda · 图塔 0.1.12"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"applicationVersion": "0.1.12",
|
|
4
|
+
"installers": [
|
|
5
|
+
{
|
|
6
|
+
"version": "0.1.12",
|
|
7
|
+
"platform": "darwin",
|
|
8
|
+
"arch": "arm64",
|
|
9
|
+
"channel": "stable",
|
|
10
|
+
"downloadUrl": "https://registry.npmjs.org/@petercjl/tuda-desktop/-/tuda-desktop-0.0.0-payload.5a0d194b605722ae4f7eaacc38121cb71cdabde6f7659e51a5d4e4dc22e6314a.tgz",
|
|
11
|
+
"npmPayloads": [
|
|
12
|
+
{
|
|
13
|
+
"url": "https://registry.npmjs.org/@petercjl/tuda-desktop/-/tuda-desktop-0.0.0-payload.5a0d194b605722ae4f7eaacc38121cb71cdabde6f7659e51a5d4e4dc22e6314a.tgz",
|
|
14
|
+
"sha256": "5a0d194b605722ae4f7eaacc38121cb71cdabde6f7659e51a5d4e4dc22e6314a",
|
|
15
|
+
"fileSize": 50331648
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"url": "https://registry.npmjs.org/@petercjl/tuda-desktop/-/tuda-desktop-0.0.0-payload.3035c8caca5a0ddd17ac8c0b0f9fdf32b53fe6eb9585666e91537baa0bb589a6.tgz",
|
|
19
|
+
"sha256": "3035c8caca5a0ddd17ac8c0b0f9fdf32b53fe6eb9585666e91537baa0bb589a6",
|
|
20
|
+
"fileSize": 50331648
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"url": "https://registry.npmjs.org/@petercjl/tuda-desktop/-/tuda-desktop-0.0.0-payload.410cd2ba63663b189f54dbddd9c655045a49ddbaee6e6d0bfb1c35d0fd156a04.tgz",
|
|
24
|
+
"sha256": "410cd2ba63663b189f54dbddd9c655045a49ddbaee6e6d0bfb1c35d0fd156a04",
|
|
25
|
+
"fileSize": 41972917
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"sha256": "20619f839f594d32e487fb26bd86ce49819bdad541ad602d9f48287fe4e33b69",
|
|
29
|
+
"fileSize": 142636213,
|
|
30
|
+
"publishedAt": "2026-12-02T08:17:41.898Z",
|
|
31
|
+
"releaseNotes": "Tuda · 图塔 0.1.12"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"version": "0.1.12",
|
|
35
|
+
"platform": "win32",
|
|
36
|
+
"arch": "x64",
|
|
37
|
+
"channel": "stable",
|
|
38
|
+
"downloadUrl": "https://registry.npmjs.org/@petercjl/tuda-desktop/-/tuda-desktop-0.0.0-payload.9b2fe0818e94caf94cc6222b6317b06e31cdda1b522704706f6b46b5820f54c0.tgz",
|
|
39
|
+
"npmPayloads": [
|
|
40
|
+
{
|
|
41
|
+
"url": "https://registry.npmjs.org/@petercjl/tuda-desktop/-/tuda-desktop-0.0.0-payload.9b2fe0818e94caf94cc6222b6317b06e31cdda1b522704706f6b46b5820f54c0.tgz",
|
|
42
|
+
"sha256": "9b2fe0818e94caf94cc6222b6317b06e31cdda1b522704706f6b46b5820f54c0",
|
|
43
|
+
"fileSize": 25165824
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"url": "https://registry.npmjs.org/@petercjl/tuda-desktop/-/tuda-desktop-0.0.0-payload.5ee8a64deeb7b9c2b78cbb9231ad79bda7bbc52565aab72da948143c20a6daf3.tgz",
|
|
47
|
+
"sha256": "5ee8a64deeb7b9c2b78cbb9231ad79bda7bbc52565aab72da948143c20a6daf3",
|
|
48
|
+
"fileSize": 25165824
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"url": "https://registry.npmjs.org/@petercjl/tuda-desktop/-/tuda-desktop-0.0.0-payload.96382cfe94dbed0ce8572dd727c4d72842a4b3d71eae12dd0eb2605895e9ee79.tgz",
|
|
52
|
+
"sha256": "96382cfe94dbed0ce8572dd727c4d72842a4b3d71eae12dd0eb2605895e9ee79",
|
|
53
|
+
"fileSize": 50331648
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"url": "https://registry.npmjs.org/@petercjl/tuda-desktop/-/tuda-desktop-0.0.0-payload.b93f3afd5f9dbc15bce107d0c6b61a369cec1c283c701d2c63f58ac8a64a1331.tgz",
|
|
57
|
+
"sha256": "b93f3afd5f9dbc15bce107d0c6b61a369cec1c283c701d2c63f58ac8a64a1331",
|
|
58
|
+
"fileSize": 25424866
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"sha256": "bcffd77cf5f76481ce1904da7d3c5b52c0790bab29a3d4d3a661b7d6a482fb19",
|
|
62
|
+
"fileSize": 126088162,
|
|
63
|
+
"publishedAt": "2026-12-02T08:23:04.198Z",
|
|
64
|
+
"releaseNotes": "Tuda · 图塔 0.1.12"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
package/validate.mjs
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { URL } from "node:url";
|
|
2
|
+
import console from "node:console";
|
|
3
|
+
import assert from "node:assert/strict";
|
|
4
|
+
import {readFile} from "node:fs/promises";
|
|
5
|
+
const read = async name => JSON.parse(await readFile(new URL(name, import.meta.url), "utf8"));
|
|
6
|
+
const p = await read("package.json"), m = await read("release-manifest.json");
|
|
7
|
+
const names = ["@lumyne/tuda", "@petercjl/tuda-desktop"];
|
|
8
|
+
assert(names.includes(p.name));
|
|
9
|
+
assert.equal(p.version, m.applicationVersion);
|
|
10
|
+
assert.deepEqual(p.tudaRelease, m, "Prepare the verified platform releases before packing");
|
|
11
|
+
assert(m.installers.length > 0);
|
|
12
|
+
const targets=new Set();
|
|
13
|
+
for (const item of m.installers) {
|
|
14
|
+
assert.equal(item.version, p.version);
|
|
15
|
+
assert(["win32","darwin"].includes(item.platform));
|
|
16
|
+
assert(["x64","arm64"].includes(item.arch));
|
|
17
|
+
const target=`${item.platform}/${item.arch}`;assert(!targets.has(target),"Duplicate platform artifact");targets.add(target);
|
|
18
|
+
assert.match(item.sha256, /^[a-f0-9]{64}$/);
|
|
19
|
+
assert(item.npmPayloads.length > 0);
|
|
20
|
+
assert.equal(item.fileSize, item.npmPayloads.reduce((n, part) => n + part.fileSize, 0));
|
|
21
|
+
for (const part of item.npmPayloads) {
|
|
22
|
+
assert.match(part.sha256, /^[a-f0-9]{64}$/);
|
|
23
|
+
assert(part.fileSize > 0 && part.fileSize <= 48 * 1024 * 1024);
|
|
24
|
+
const allowed = p.name === "@petercjl/tuda-desktop" ? [p.name] : names;
|
|
25
|
+
assert(allowed.some(name => part.url === `https://registry.npmjs.org/${name}/-/${name.split("/")[1]}-0.0.0-payload.${part.sha256}.tgz`));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
console.log(JSON.stringify({ok:true, package:p.name, version:p.version}));
|