@psnext/slingcli 2.4.20260525-3 → 2.4.20260526-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.
@@ -190,10 +190,10 @@ webidl.util.ConvertToInt = function (V, bitLength, signedness, flags) {
190
190
  } else {
191
191
  // 3. Otherwise:
192
192
 
193
- // 1. Let lowerBound be -2^bitLength − 1.
194
- lowerBound = Math.pow(-2, bitLength) - 1
193
+ // 1. Let lowerBound be -2^(bitLength − 1).
194
+ lowerBound = -Math.pow(2, bitLength - 1)
195
195
 
196
- // 2. Let upperBound be 2^bitLength − 1 − 1.
196
+ // 2. Let upperBound be 2^(bitLength − 1) − 1.
197
197
  upperBound = Math.pow(2, bitLength - 1) - 1
198
198
  }
199
199
 
@@ -272,9 +272,9 @@ webidl.util.ConvertToInt = function (V, bitLength, signedness, flags) {
272
272
  // 10. Set x to x modulo 2^bitLength.
273
273
  x = x % Math.pow(2, bitLength)
274
274
 
275
- // 11. If signedness is "signed" and x ≥ 2^bitLength − 1,
275
+ // 11. If signedness is "signed" and x ≥ 2^(bitLength − 1),
276
276
  // then return x − 2^bitLength.
277
- if (signedness === 'signed' && x >= Math.pow(2, bitLength) - 1) {
277
+ if (signedness === 'signed' && x >= Math.pow(2, bitLength - 1)) {
278
278
  return x - Math.pow(2, bitLength)
279
279
  }
280
280
 
@@ -284,12 +284,6 @@ class WebSocketStream {
284
284
  start: (controller) => {
285
285
  this.#readableStreamController = controller
286
286
  },
287
- pull (controller) {
288
- let chunk
289
- while (controller.desiredSize > 0 && (chunk = response.socket.read()) !== null) {
290
- controller.enqueue(chunk)
291
- }
292
- },
293
287
  cancel: (reason) => this.#cancel(reason)
294
288
  })
295
289
 
@@ -338,7 +332,7 @@ class WebSocketStream {
338
332
  try {
339
333
  chunk = utf8Decode(data)
340
334
  } catch {
341
- failWebsocketConnection(this.#handler, 'Received invalid UTF-8 in text frame.')
335
+ failWebsocketConnection(this.#handler, 1007, 'Received invalid UTF-8 in text frame.')
342
336
  return
343
337
  }
344
338
  } else if (type === opcodes.BINARY) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undici",
3
- "version": "7.25.0",
3
+ "version": "7.26.0",
4
4
  "description": "An HTTP/1.1 client, written from scratch for Node.js",
5
5
  "homepage": "https://undici.nodejs.org",
6
6
  "bugs": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@psnext/slingcli",
3
- "version": "2.4.20260525-3",
3
+ "version": "2.4.20260526-1",
4
4
  "description": "Connects Sling CLI to Publicis Sapient Slingshot enterprise LLM gateway. Bundles the pi coding-agent runtime.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -29,7 +29,7 @@
29
29
  "type": "git",
30
30
  "url": "git+https://pscode.lioncloud.net/psaiproducts/slingcli.git"
31
31
  },
32
- "slingVersion": "2.4.20260525-3",
32
+ "slingVersion": "2.4.20260526-1",
33
33
  "dependencies": {
34
34
  "@earendil-works/pi-tui": "file:../.sling-pack/earendil-works-pi-tui-0.75.4.tgz",
35
35
  "@earendil-works/pi-ai": "file:../.sling-pack/earendil-works-pi-ai-0.75.4.tgz",