@claudinite/cli 1.61008.2 → 1.61008.4

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 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, checks the manifest against the pin and the
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 and CLAUDINITE_MAX_DOWNLOAD_BYTES
31
- # the download size cap; both exist for tests and the rehearsal.
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
- manifest_url=$registry/$package/-/$name-$version.tgz
328
- binary_url=$registry/$package-$platform/-/$name-$platform-$version.tgz
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,13 @@
1
1
  {
2
2
  "v": 1,
3
- "version": "1.61008.2",
4
- "builtAt": "2026-10-08T15:12:25Z",
5
- "commit": "d151bb7",
3
+ "version": "1.61008.4",
4
+ "builtAt": "2026-10-08T16:30:15Z",
5
+ "commit": "bfb7cce",
6
6
  "goVersion": "go1.24.13",
7
- "updaterDigest": "91c37044eda32ccfdb4c436314de9e0de3d7df3cc77a4ac36073958f91859c8c",
7
+ "updaterDigest": "969a19cb37284acf2139965118a0996e8c8470642ca3981e74105e9e06dab1b0",
8
8
  "binaries": {
9
- "linux-x64": {"file": "cn", "sha256": "ff40c3eb645a85072b851c9f548b16208f6148fc106db1843631c28b5b9256b1", "size": 10911928},
10
- "linux-arm64": {"file": "cn", "sha256": "f8df34007ac9d35de2964d1e9ebedd8a6ba73603def4af4111f8aa5fb400d062", "size": 10092728},
11
- "darwin-x64": {"file": "cn", "sha256": "0429f4fee7223aaef61a334da0f701847e51c09c609210dececff7cf52a40b81", "size": 11134608},
12
- "darwin-arm64": {"file": "cn", "sha256": "6386a73eca311ccac347a186ff98d69ad6736f1571896894359e1fdf2c5a3799", "size": 10346338},
13
- "windows-x64": {"file": "cn.exe", "sha256": "263ef47fc6a89f6d44fe6000f1cedbb5138e9e5623a5ea92e624666b634f6704", "size": 11173376}
9
+ "linux-x64": {"file": "cn", "sha256": "0814b512fd460c41b2e8e1b7fbb42371eefd95e424565e71ebd7c8a3b8f815a2", "size": 10928312}
14
10
  },
11
+ "launcher": "82defc0fd3c22332d24bbc9ba207723bf6c88962bb5213afc79660fefa09c9bb",
15
12
  "testedPacks": {}
16
13
  }
package/manifest.sig.json CHANGED
@@ -3,5 +3,5 @@
3
3
  "payload": "eyJ2IjoxLCJrZXlJZCI6ImM3NzQwNWM2ZDA4NzExODYiLCJwdWJsaWNLZXkiOiI0UHlTQzRTbG5MakJ1cVY2Qll4eU9XWUtLOWkzV295NkZCQ1ZNckF6clRzIiwidXNlIjoibWFuaWZlc3QiLCJpc3N1ZXIiOiJlYTg1ZjM1NDIxZjM3NWZjIiwibm90QmVmb3JlIjoiMjAyNi0xMC0wM1QxNjozNjozN1oiLCJub3RBZnRlciI6IjIwMjctMTAtMDNUMTY6MzY6MzdaIn0",
4
4
  "signature": "ex4GNEE3PIUj3Ue6X2TZnbB5E6G-DVrGNaYdvI13NuOauoJYilB_54TyAH490IS9-IZiu3BKVYpigm3uDTXSBw"
5
5
  },
6
- "signature": "Lsia0CNTM4aMhZN7g_mFLqSgwgtulMmpceMAK4VaWycIqPtWopEcb_nA-A-hfBSh8d7Z63xw1AtEAAHcOZ2lCw"
6
+ "signature": "02t2k9mhXQAEc11esKSXmKL0iGb2Tg7xcCS4KLcC0W0RPy5vIxuZKdmmITADUCAZewILbtt1wnChoNly1Xc5Aw"
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudinite/cli",
3
- "version": "1.61008.2",
3
+ "version": "1.61008.4",
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"},