@claudinite/cli 1.61008.1 → 1.61008.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.
- package/launch +17 -5
- package/manifest.json +5 -9
- package/manifest.sig.json +1 -1
- package/package.json +1 -1
package/launch
CHANGED
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
#
|
|
8
8
|
# It reads engine.version and engine.manifest from .claudinite/settings.yaml,
|
|
9
9
|
# .toml or .json, downloads that release's manifest.json and this platform's
|
|
10
|
-
# binary from the npm registry,
|
|
10
|
+
# binary from the npm registry, or from the GitHub releases of the
|
|
11
|
+
# repository engine.releases names (owner/name, tag v<version>, assets named
|
|
12
|
+
# as npm's tarballs), checks the manifest against the pin and the
|
|
11
13
|
# binary against the manifest, caches the binary read-only, links
|
|
12
14
|
# .claudinite/bin/cn to it and execs it. Nothing is trusted that the pin
|
|
13
15
|
# does not cover; the registry's identity is immaterial to integrity.
|
|
@@ -27,11 +29,13 @@
|
|
|
27
29
|
# Any other command run through that bin runs the member's own pin, the
|
|
28
30
|
# member being the directory --repo names or else the working directory.
|
|
29
31
|
#
|
|
30
|
-
# CLAUDINITE_REGISTRY overrides the registry
|
|
31
|
-
#
|
|
32
|
+
# CLAUDINITE_REGISTRY overrides the registry, CLAUDINITE_GITHUB the GitHub
|
|
33
|
+
# host releases are read from and CLAUDINITE_MAX_DOWNLOAD_BYTES the download
|
|
34
|
+
# size cap; all three exist for tests and the rehearsal.
|
|
32
35
|
set -u
|
|
33
36
|
|
|
34
37
|
registry=${CLAUDINITE_REGISTRY:-https://registry.npmjs.org}
|
|
38
|
+
github=${CLAUDINITE_GITHUB:-https://github.com}
|
|
35
39
|
max_bytes=${CLAUDINITE_MAX_DOWNLOAD_BYTES:-67108864}
|
|
36
40
|
|
|
37
41
|
if [ "${GITHUB_ACTIONS:-}" = true ]; then
|
|
@@ -187,6 +191,7 @@ else
|
|
|
187
191
|
manifest_pin=$(engine_value manifest)
|
|
188
192
|
package=$(engine_value package)
|
|
189
193
|
[ -n "$package" ] || package=@claudinite/cli
|
|
194
|
+
releases=$(engine_value releases)
|
|
190
195
|
|
|
191
196
|
matches "$version" '[0-9]+\.[0-9]+\.[0-9]+' \
|
|
192
197
|
|| refuse "engine.version in $settings must be a quoted version like \"1.60928.1\""
|
|
@@ -194,6 +199,8 @@ else
|
|
|
194
199
|
|| refuse "engine.manifest in $settings must be a quoted sha512-... integrity string"
|
|
195
200
|
matches "$package" '@claudinite/cli(-rc)?' \
|
|
196
201
|
|| refuse "engine.package in $settings must be \"@claudinite/cli\" or \"@claudinite/cli-rc\""
|
|
202
|
+
[ -z "$releases" ] || matches "$releases" '[A-Za-z0-9-]+/[A-Za-z0-9_-][A-Za-z0-9._-]*' \
|
|
203
|
+
|| refuse "engine.releases in $settings must be a quoted GitHub repository like \"owner/name\""
|
|
197
204
|
fi
|
|
198
205
|
|
|
199
206
|
case $(uname -s) in
|
|
@@ -324,8 +331,13 @@ if ! cached_ok; then
|
|
|
324
331
|
}
|
|
325
332
|
|
|
326
333
|
name=${package#@claudinite/}
|
|
327
|
-
|
|
328
|
-
|
|
334
|
+
if [ -n "${releases:-}" ]; then
|
|
335
|
+
manifest_url=$github/$releases/releases/download/v$version/$name-$version.tgz
|
|
336
|
+
binary_url=$github/$releases/releases/download/v$version/$name-$platform-$version.tgz
|
|
337
|
+
else
|
|
338
|
+
manifest_url=$registry/$package/-/$name-$version.tgz
|
|
339
|
+
binary_url=$registry/$package-$platform/-/$name-$platform-$version.tgz
|
|
340
|
+
fi
|
|
329
341
|
|
|
330
342
|
fetch "$manifest_url" "$tmp/manifest.tgz"
|
|
331
343
|
tar -xzf "$tmp/manifest.tgz" -C "$tmp" package/manifest.json 2>/dev/null \
|
package/manifest.json
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"v": 1,
|
|
3
|
-
"version": "1.61008.
|
|
4
|
-
"builtAt": "2026-10-
|
|
5
|
-
"commit": "
|
|
3
|
+
"version": "1.61008.3",
|
|
4
|
+
"builtAt": "2026-10-08T15:23:06Z",
|
|
5
|
+
"commit": "d90d5c5",
|
|
6
6
|
"goVersion": "go1.24.13",
|
|
7
|
-
"updaterDigest": "
|
|
7
|
+
"updaterDigest": "9da77ea4d0cd1d2431034632f73e9a917e5bbbf57f63d848c3d4d9dc92becef9",
|
|
8
8
|
"binaries": {
|
|
9
|
-
"linux-x64": {"file": "cn", "sha256": "
|
|
10
|
-
"linux-arm64": {"file": "cn", "sha256": "6d27e6de6f926e35b7d7074e35da75018e82abc70239175fedc0c6140fc0526e", "size": 10289336},
|
|
11
|
-
"darwin-x64": {"file": "cn", "sha256": "1508b26c7c0c79ed9325cc3e0228a357ac3fa3211af49ad08b83efd1f6f0f634", "size": 11349904},
|
|
12
|
-
"darwin-arm64": {"file": "cn", "sha256": "81ece6f3e28aa88af0228cd57de9c85618bd7ce70ea4a31fa227626207727748", "size": 10513778},
|
|
13
|
-
"windows-x64": {"file": "cn.exe", "sha256": "e4463be81111d198385909fb8f10ab7b5482a937f46bd9ec6cfa48063da973f4", "size": 11384320}
|
|
9
|
+
"linux-x64": {"file": "cn", "sha256": "4469323d5a1c7366674372b7157c25da7ea1b483e6944ea04f128315362b71d2", "size": 10920120}
|
|
14
10
|
},
|
|
15
11
|
"testedPacks": {}
|
|
16
12
|
}
|
package/manifest.sig.json
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
"payload": "eyJ2IjoxLCJrZXlJZCI6ImM3NzQwNWM2ZDA4NzExODYiLCJwdWJsaWNLZXkiOiI0UHlTQzRTbG5MakJ1cVY2Qll4eU9XWUtLOWkzV295NkZCQ1ZNckF6clRzIiwidXNlIjoibWFuaWZlc3QiLCJpc3N1ZXIiOiJlYTg1ZjM1NDIxZjM3NWZjIiwibm90QmVmb3JlIjoiMjAyNi0xMC0wM1QxNjozNjozN1oiLCJub3RBZnRlciI6IjIwMjctMTAtMDNUMTY6MzY6MzdaIn0",
|
|
4
4
|
"signature": "ex4GNEE3PIUj3Ue6X2TZnbB5E6G-DVrGNaYdvI13NuOauoJYilB_54TyAH490IS9-IZiu3BKVYpigm3uDTXSBw"
|
|
5
5
|
},
|
|
6
|
-
"signature": "
|
|
6
|
+
"signature": "ExfqPGnJ204faaM0vMomfB6FWaxcOExCXcg_LvVcvPCXuzbk23pioLMtsdVyg8LXQCluR5mpufSYm708nc2JCA"
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claudinite/cli",
|
|
3
|
-
"version": "1.61008.
|
|
3
|
+
"version": "1.61008.3",
|
|
4
4
|
"description": "Claudinite engine release manifest and launcher",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {"type": "git", "url": "git+https://github.com/missingbulb/ClaudiniteEngine.git"},
|