@mobius-os/mobius 0.3.55 → 0.3.56

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobius-os/mobius",
3
- "version": "0.3.55",
3
+ "version": "0.3.56",
4
4
  "type": "module",
5
5
  "description": "Mobius terminal client. Reuses Mobius frontend TypeScript types and jsonl entry shapes.",
6
6
  "bin": {
@@ -13,8 +13,8 @@ set -euo pipefail
13
13
 
14
14
  TAG=20241002
15
15
  PYVER=3.12.7
16
- BUNDLE_VER=9
17
- AIMUX_VERSION=0.1.39
16
+ BUNDLE_VER=10
17
+ AIMUX_VERSION=0.1.40
18
18
  PYPI_INDEX=https://pypi.org/simple
19
19
  WORK="${WORK:-/home/tianyi/python-bundles}"
20
20
  DIST="${DIST:-$WORK/dist}"
package/src/aimux.ts CHANGED
@@ -32,7 +32,7 @@ export type AimuxLauncher =
32
32
  | { kind: 'exe'; path: string }
33
33
  | { kind: 'module'; python: string }
34
34
 
35
- const AIMUX_TARGET_VERSION = '0.1.39'
35
+ const AIMUX_TARGET_VERSION = '0.1.40'
36
36
  const AIMUX_PACKAGE = `aimux==${AIMUX_TARGET_VERSION}`
37
37
  const WIN = process.platform === 'win32'
38
38
  const venvDir = () => path.join(mobiusHome(), 'aimux-venv')
@@ -92,7 +92,7 @@ async function pythonForAimux(onProgress?: (p: InstallProgress) => void): Promis
92
92
  // 解压到 ~/.mobius/python-bundle/ 后用 `<python> -m aimux` 运行,彻底绕开宿主机
93
93
  // 系统 python(如被精简掉 ensurepip 的容器镜像)。aimux 全部依赖为纯 Python,
94
94
  // 故三平台可共用同一套打包产物,分别按 arch 发布到 CDN。
95
- const BUNDLE_VER = '9'
95
+ const BUNDLE_VER = '10'
96
96
  const BUNDLE_AIMUX_VERSION = AIMUX_TARGET_VERSION
97
97
  /** Version expected from the installed or bundled AIMUX runtime. */
98
98
  export const AIMUX_VERSION = BUNDLE_AIMUX_VERSION
@@ -174,11 +174,11 @@ async function testBundleArchAndUrl() {
174
174
  const arch = bundleArch()
175
175
  ok(arch === 'linux-x64' || arch === 'win-x64' || arch === 'mac-x64', `bundleArch returns a supported arch on this host (${arch})`)
176
176
  const before = bundleUrl('linux-x64')
177
- ok(before.includes('mobius-python-linux-x64-v9') && before.endsWith('.zip'), 'bundleUrl follows the fixed filename pattern')
177
+ ok(before.includes('mobius-python-linux-x64-v10') && before.endsWith('.zip'), 'bundleUrl follows the fixed filename pattern')
178
178
  const saved = process.env.MOBIUS_TUI_PYTHON_BUNDLE_URL
179
179
  process.env.MOBIUS_TUI_PYTHON_BUNDLE_URL = 'https://example.test/cdn/'
180
180
  try {
181
- ok(bundleUrl('win-x64') === 'https://example.test/cdn/mobius-python-win-x64-v9.zip', 'MOBIUS_TUI_PYTHON_BUNDLE_URL overrides the CDN base and trims trailing slash')
181
+ ok(bundleUrl('win-x64') === 'https://example.test/cdn/mobius-python-win-x64-v10.zip', 'MOBIUS_TUI_PYTHON_BUNDLE_URL overrides the CDN base and trims trailing slash')
182
182
  } finally { if (saved === undefined) delete process.env.MOBIUS_TUI_PYTHON_BUNDLE_URL; else process.env.MOBIUS_TUI_PYTHON_BUNDLE_URL = saved }
183
183
  }
184
184