dsh-dot-life 0.10.0 → 0.10.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/qq/qq.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-dot-life",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "dot — a character who lives on her own phone, for DeepSeek Harness (dsh): an Android phone the plugin installs and runs, her own QQ, memory and a diary from real events, a life between conversations (幕间, after HDS-Interlude), an optional microVM computer with approval gates. One plugin, six components.",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0-only",
package/src/qq/qq.js CHANGED
@@ -456,7 +456,10 @@ export function apply(ctx, config = {}, deps = {}) {
456
456
  `if [ ! -x /opt/QQ/qq ]; then q="QQ_${SL_QQ_PIN.version}_\${qarch}_01.deb"; { curl -fSL --connect-timeout 15 --max-time 900 -o "/tmp/$q" "${SL_QQ_PIN.base}/$q" || curl -fSL --connect-timeout 15 --max-time 900 -o "/tmp/$q" "${(cfg.githubProxy || '')}${SL_QQ_PIN.mirror}/$q"; } || ${fail(3, 'cannot download Linux QQ')}; echo "$qsum /tmp/$q" | sha256sum -c - >/dev/null || ${fail(3, 'Linux QQ package checksum mismatch — not installing it')}; apt-get install -y -qq "/tmp/$q" >/dev/null || apt-get -f install -y -qq >/dev/null; rm -f "/tmp/$q"; fi`,
457
457
  `[ -x /opt/QQ/qq ] || ${fail(3, 'Linux QQ did not install to /opt/QQ/qq')}`,
458
458
  `tag=${JSON.stringify(cfg.snowlumaVersion)}`,
459
- '[ -n "$tag" ] || tag=$(curl -fsSL --connect-timeout 15 --max-time 30 https://api.github.com/repos/SnowLuma/SnowLuma/releases/latest | sed -n \'s/.*"tag_name": *"\\([^"]*\\)".*/\\1/p\' | head -1)',
459
+ // The latest tag: the release page's redirect first (not rate-limited like the API, which
460
+ // answers 403 to busy shared IPs), then the API directly and through the mirrors.
461
+ '[ -n "$tag" ] || tag=$(curl -fsSIL -o /dev/null -w \'%{url_effective}\' --connect-timeout 15 --max-time 30 https://github.com/SnowLuma/SnowLuma/releases/latest | sed -n \'s#.*/releases/tag/##p\')',
462
+ `for pre in ${prefixes.map((p) => JSON.stringify(p)).join(' ')}; do [ -n "$tag" ] && break; tag=$(curl -fsSL --connect-timeout 15 --max-time 30 "\${pre}https://api.github.com/repos/SnowLuma/SnowLuma/releases/latest" | sed -n 's/.*"tag_name": *"\\([^"]*\\)".*/\\1/p' | head -1); done`,
460
463
  `case "$tag" in ''|*[!A-Za-z0-9._-]*) ${fail(2, 'cannot resolve the latest SnowLuma release (set snowlumaVersion to pin one)')};; esac`,
461
464
  'asset="https://github.com/SnowLuma/SnowLuma/releases/download/$tag/SnowLuma-$tag-linux-$arch-lite.tar.gz"; echo "SnowLuma $tag ($arch)"',
462
465
  `{ ${fetch}; } || ${fail(2, 'cannot download SnowLuma from GitHub (direct or mirrors)')}`,