@simonyea/holysheep-cli 2.1.17 → 2.1.19

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simonyea/holysheep-cli",
3
- "version": "2.1.17",
4
- "description": "Claude Code/Cursor/Cline API relay for China ¥1=$1, WeChat/Alipay payment, no credit card, no VPN. One command setup for all AI coding tools.",
3
+ "version": "2.1.19",
4
+ "description": "Claude Code/Cursor/Cline API relay for China \u2014 \u00a51=$1, WeChat/Alipay payment, no credit card, no VPN. One command setup for all AI coding tools.",
5
5
  "scripts": {
6
6
  "test": "node tests/droid.test.js && node tests/workspace-store.test.js && node tests/runtime-stale-upgrade.test.js && node tests/hermes.test.js && node tests/preflight.test.js",
7
7
  "prepublishOnly": "node scripts/check-tarball-size.js"
@@ -60,10 +60,10 @@ const VENDOR_DIR = path.join(__dirname, 'vendor', 'aionui')
60
60
  // new CLI release, the next `hs web` invocation on user machines will detect
61
61
  // the version drift and upgrade the cache in place.
62
62
  const DEFAULT_RUNTIME_URL =
63
- 'https://mail.holysheep.ai/app/cli/aionui-runtime-v1.9.18-holysheep-hs13.tar.gz'
63
+ 'https://mail.holysheep.ai/app/cli/aionui-runtime-v1.9.18-holysheep-hs15.tar.gz'
64
64
  const DEFAULT_RUNTIME_SHA256 =
65
- 'fdfc8113e4a6f728c01c1c19977f50352ea26a14274ac44726944339d5c3ba54'
66
- const DEFAULT_RUNTIME_VERSION = '1.9.18-holysheep-hs13'
65
+ 'ba1c2e18b624171238185d1a95ac9bd9ff0f761acb74d8eea97812cbd15555ee'
66
+ const DEFAULT_RUNTIME_VERSION = '1.9.18-holysheep-hs15'
67
67
 
68
68
  function isValidRuntimeDir(dir) {
69
69
  if (!dir) return false
@@ -603,6 +603,12 @@ async function startWrapper({ port, runtimeDir, runtimeVersion, runtimeSource, b
603
603
  // output via the rejected `startWrapper` promise (previously silent).
604
604
  // 2. In HS_WEB_DEBUG=1 mode we stream live logs prefixed with [aionui].
605
605
  const debug = process.env.HS_WEB_DEBUG === '1'
606
+ // [HolySheep fork v2.1.19] Pin CLI root so AionUi's prepareClaude() can
607
+ // require('claude-process-proxy.js') regardless of npm global install layout.
608
+ // `__dirname` here is .../holysheep-cli/src/webui, so up two levels is the
609
+ // CLI package root containing package.json + src/.
610
+ const cliRoot = path.resolve(__dirname, '..', '..')
611
+ const wrapperVersion = require('../../package.json').version
606
612
  const aionui = spawn(bunPath, ['dist-server/server.mjs'], {
607
613
  cwd: runtimeDir,
608
614
  env: {
@@ -611,6 +617,13 @@ async function startWrapper({ port, runtimeDir, runtimeVersion, runtimeSource, b
611
617
  HOST: '127.0.0.1',
612
618
  ALLOW_REMOTE: '',
613
619
  NODE_ENV: 'production',
620
+ HOLYSHEEP_CLI_ROOT: cliRoot,
621
+ HOLYSHEEP_CLI_VERSION: wrapperVersion,
622
+ // Also forward the active HolySheep API key so the fork can surface it in
623
+ // Dashboard without going through /api/holysheep/status round-trip.
624
+ ...(process.env.HOLYSHEEP_API_KEY ? {} : (() => {
625
+ try { const k = require('../utils/config').getApiKey(); return k ? { HOLYSHEEP_API_KEY: k } : {} } catch { return {} }
626
+ })()),
614
627
  },
615
628
  stdio: ['ignore', 'pipe', 'pipe'],
616
629
  })