pinokiod 8.0.35 → 8.0.36

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/kernel/shell.js CHANGED
@@ -1284,6 +1284,7 @@ class Shell {
1284
1284
  }
1285
1285
 
1286
1286
  this.env.UV_PYTHON_PREFERENCE="only-managed"
1287
+ this.env.UV_PYTHON_DOWNLOADS="automatic"
1287
1288
 
1288
1289
  // 2. venv
1289
1290
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "8.0.35",
3
+ "version": "8.0.36",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -146,6 +146,34 @@ test('Shell.init_env preserves multiline Pinokio argv env values only', async ()
146
146
  assert.equal(shell.env.OTHER_MULTILINE, 'line one line two')
147
147
  })
148
148
 
149
+ test('Shell.activate keeps managed Python downloads automatic on every platform', async () => {
150
+ const root = await fs.mkdtemp(path.join(os.tmpdir(), 'pinokio-shell-uv-python-'))
151
+ const kernel = createKernel(root)
152
+ kernel.bin = {
153
+ activationCommands: () => [],
154
+ path: (...parts) => path.join(root, 'bin', ...parts)
155
+ }
156
+
157
+ for (const [platform, shellName] of [
158
+ ['linux', 'bash'],
159
+ ['darwin', 'bash'],
160
+ ['win32', 'cmd.exe']
161
+ ]) {
162
+ const shell = createShell(kernel)
163
+ shell.platform = platform
164
+ shell.shell = shellName
165
+ shell.env = { UV_PYTHON_DOWNLOADS: 'manual' }
166
+
167
+ await shell.activate({
168
+ path: root,
169
+ message: ['true']
170
+ })
171
+
172
+ assert.equal(shell.env.UV_PYTHON_PREFERENCE, 'only-managed')
173
+ assert.equal(shell.env.UV_PYTHON_DOWNLOADS, 'automatic')
174
+ }
175
+ })
176
+
149
177
  test('Shell.init_env disables Hugging Face hub update checks by default without overriding apps', async () => {
150
178
  const root = await fs.mkdtemp(path.join(os.tmpdir(), 'pinokio-shell-hf-env-'))
151
179
  await fs.mkdir(path.join(root, 'api'), { recursive: true })