brsh 3.4.0 → 3.5.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "brsh",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "A unix like shell written in javascript",
5
5
  "main": "./dist/shell.min.js",
6
6
  "module": "./dist/shell.es.js",
package/test/wbt.test.js CHANGED
@@ -1176,7 +1176,8 @@ describe('WBT Wllama v3 WASM & WebGPU package (`wllama`, `llama`, `llama-cli`)',
1176
1176
  expect(noStreamRes.output.join('\n')).toContain('Reply(WebGPU,turns=1): No stream');
1177
1177
  expect(noStreamTokens.length).toBe(0);
1178
1178
 
1179
- // Test status indication (loading model, running inference)
1179
+ // Test status indication (loading model weights, running inference)
1180
+ wllamaInstances.clear();
1180
1181
  const statusUpdates = [];
1181
1182
  const onStatus = (chunk) => statusUpdates.push(chunk);
1182
1183
  shell.stderr.on('data', onStatus);
@@ -1188,8 +1189,9 @@ describe('WBT Wllama v3 WASM & WebGPU package (`wllama`, `llama`, `llama-cli`)',
1188
1189
 
1189
1190
  shell.stderr.removeListener('data', onStatus);
1190
1191
  const combinedStatus = statusUpdates.join('');
1191
- expect(combinedStatus).toMatch(/Loading model|Loaded model/);
1192
+ expect(combinedStatus).toContain('Loading model (tinyllama.gguf) weights');
1192
1193
  expect(combinedStatus).toContain('Running inference');
1194
+ expect(combinedStatus).toMatch(/\[.*\]/);
1193
1195
  });
1194
1196
 
1195
1197
  it('supports Hugging Face model loading (--hf / hf:), embeddings (wllama embed), info, and bench', async () => {