@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.
- package/README.md +20 -11
- package/bin/sling.js +2 -0
- package/node_modules/@babel/runtime/package.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +5 -5
- package/node_modules/undici/lib/api/api-request.js +1 -1
- package/node_modules/undici/lib/cache/sqlite-cache-store.js +3 -3
- package/node_modules/undici/lib/core/connect.js +16 -0
- package/node_modules/undici/lib/core/request.js +17 -2
- package/node_modules/undici/lib/core/socks5-client.js +10 -5
- package/node_modules/undici/lib/core/socks5-utils.js +17 -22
- package/node_modules/undici/lib/dispatcher/client-h1.js +64 -20
- package/node_modules/undici/lib/dispatcher/client.js +6 -2
- package/node_modules/undici/lib/dispatcher/h2c-client.js +1 -1
- package/node_modules/undici/lib/mock/mock-call-history.js +15 -15
- package/node_modules/undici/lib/util/cache.js +8 -7
- package/node_modules/undici/lib/web/fetch/formdata-parser.js +17 -6
- package/node_modules/undici/lib/web/fetch/index.js +5 -2
- package/node_modules/undici/lib/web/webidl/index.js +5 -5
- package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +1 -7
- package/node_modules/undici/package.json +1 -1
- package/package.json +2 -2
- package/slingshot/index.js +210 -210
|
@@ -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(
|
|
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
|
|
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) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@psnext/slingcli",
|
|
3
|
-
"version": "2.4.
|
|
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.
|
|
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",
|