@psnext/slingcli 2.5.20260727-1 → 2.5.20260728-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.
Files changed (52) hide show
  1. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  2. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +2 -2
  3. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  4. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  5. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  6. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  7. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  8. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +3 -3
  9. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  10. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  11. package/node_modules/@aws-sdk/middleware-websocket/package.json +2 -2
  12. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  13. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  14. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  15. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  16. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  17. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +2 -2
  18. package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
  19. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +15 -13
  20. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +3 -0
  21. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +2 -203
  22. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +113 -0
  23. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +95 -0
  24. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/SinglePassCborShapeDeserializer.js +609 -0
  25. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/SinglePassCborShapeSerializer.js +611 -0
  26. package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +3 -1
  27. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +3 -0
  28. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +3 -25
  29. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  30. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
  31. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
  32. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/SinglePassCborShapeDeserializer.d.ts +19 -0
  33. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/SinglePassCborShapeSerializer.d.ts +22 -0
  34. package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +3 -1
  35. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +12 -0
  36. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +3 -25
  37. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  38. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
  39. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
  40. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/SinglePassCborShapeDeserializer.d.ts +19 -0
  41. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/SinglePassCborShapeSerializer.d.ts +22 -0
  42. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +3 -1
  43. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +12 -0
  44. package/node_modules/@smithy/core/package.json +2 -1
  45. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  46. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  47. package/node_modules/@smithy/signature-v4/package.json +2 -2
  48. package/node_modules/@types/node/README.md +1 -1
  49. package/node_modules/@types/node/crypto.d.ts +1 -1
  50. package/node_modules/@types/node/package.json +2 -2
  51. package/package.json +2 -2
  52. package/slingshot/index.js +9 -9
@@ -0,0 +1,19 @@
1
+ import { SerdeContext } from "@smithy/core/protocols";
2
+ import type { Schema, ShapeDeserializer } from "@smithy/types";
3
+ /**
4
+ * Single-pass CBOR deserializer that reads bytes and applies Smithy schema
5
+ * transformations in one traversal using module-level state.
6
+ *
7
+ * @internal
8
+ */
9
+ export declare class SinglePassCborShapeDeserializer extends SerdeContext implements ShapeDeserializer<Uint8Array> {
10
+ constructor();
11
+ read(schema: Schema, bytes: Uint8Array): any;
12
+ /**
13
+ * Deserialize a pre-decoded JS object per schema.
14
+ * Used by protocol error handling which passes pre-decoded objects.
15
+ *
16
+ * @internal
17
+ */
18
+ readValue(_schema: Schema, value: any): any;
19
+ }
@@ -0,0 +1,22 @@
1
+ import { SerdeContext } from "@smithy/core/protocols";
2
+ import type { Schema, ShapeSerializer } from "@smithy/types";
3
+ /**
4
+ * Single-pass CBOR serializer that walks the Smithy schema and writes CBOR bytes
5
+ * directly to a module-level buffer in one traversal. Eliminates the intermediate
6
+ * JS object tree that the multi-pass CborShapeSerializer builds.
7
+ *
8
+ * @internal
9
+ */
10
+ export declare class SinglePassCborShapeSerializer extends SerdeContext implements ShapeSerializer<Uint8Array> {
11
+ constructor();
12
+ write(schema: Schema, value: unknown): void;
13
+ flush(): Uint8Array;
14
+ }
15
+ /**
16
+ * Advance the encoding epoch. Call between serialization batches
17
+ * to allow stale cache entries to be evicted.
18
+ *
19
+ * @internal
20
+ */
21
+ export declare function advanceSinglePassEncodingEpoch(): void;
22
+ export declare function activateCborStructIterator(): void;
@@ -2,4 +2,6 @@ export { cbor } from "./cbor";
2
2
  export { tag, tagSymbol } from "./cbor-types";
3
3
  export { buildHttpRpcRequest, checkCborResponse, dateToTag, loadSmithyRpcV2CborErrorCode, parseCborBody, parseCborErrorBody, } from "./parseCborBody";
4
4
  export { SmithyRpcV2CborProtocol } from "./SmithyRpcV2CborProtocol";
5
- export { CborCodec, CborShapeDeserializer, CborShapeSerializer } from "./CborCodec";
5
+ export { CborCodec } from "./CborCodec";
6
+ export { CborShapeSerializer } from "./codec-v1/CborShapeSerializer";
7
+ export { CborShapeDeserializer } from "./codec-v1/CborShapeDeserializer";
@@ -136,6 +136,18 @@ export declare class NormalizedSchema implements INormalizedSchema {
136
136
  * This avoids the overhead of calling Object.entries(ns.getMemberSchemas()).
137
137
  */
138
138
  structIterator(): Generator<[string, NormalizedSchema], undefined, undefined>;
139
+ /**
140
+ * CBOR-optimized struct iteration. Returns a cache of parallel arrays
141
+ * (memberNames, memberSchemas, encodedKeys) for direct indexed iteration.
142
+ * Implementation is patched by the cbor submodule on load.
143
+ *
144
+ * @internal
145
+ */
146
+ structIteratorCbor(): {
147
+ memberNames: string[];
148
+ memberSchemas: NormalizedSchema[];
149
+ encodedKeys: Uint8Array[];
150
+ };
139
151
  }
140
152
  /**
141
153
  * @internal
@@ -1,5 +1,7 @@
1
1
  import { SerdeContext } from "@smithy/core/protocols";
2
- import { Codec, Schema, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
2
+ import { Codec } from "@smithy/types";
3
+ import { CborShapeSerializer } from "./codec-v1/CborShapeSerializer";
4
+ import { CborShapeDeserializer } from "./codec-v1/CborShapeDeserializer";
3
5
  /**
4
6
  * @public
5
7
  */
@@ -7,27 +9,3 @@ export declare class CborCodec extends SerdeContext implements Codec<Uint8Array,
7
9
  createSerializer(): CborShapeSerializer;
8
10
  createDeserializer(): CborShapeDeserializer;
9
11
  }
10
- /**
11
- * @public
12
- */
13
- export declare class CborShapeSerializer extends SerdeContext implements ShapeSerializer {
14
- private value;
15
- write(schema: Schema, value: unknown): void;
16
- /**
17
- * Recursive serializer transform that copies and prepares the user input object
18
- * for CBOR serialization.
19
- */
20
- serialize(schema: Schema, source: unknown): any;
21
- flush(): Uint8Array;
22
- }
23
- /**
24
- * @public
25
- */
26
- export declare class CborShapeDeserializer extends SerdeContext implements ShapeDeserializer {
27
- read(schema: Schema, bytes: Uint8Array): any;
28
- /**
29
- * Public because it's called by the protocol implementation to deserialize errors.
30
- * @internal
31
- */
32
- readValue(_schema: Schema, value: any): any;
33
- }
@@ -13,8 +13,8 @@ export declare class SmithyRpcV2CborProtocol extends RpcProtocol {
13
13
  */
14
14
  protected compositeErrorRegistry: TypeRegistry;
15
15
  private codec;
16
- protected serializer: import("./CborCodec").CborShapeSerializer;
17
- protected deserializer: import("./CborCodec").CborShapeDeserializer;
16
+ protected serializer: import(".").CborShapeSerializer;
17
+ protected deserializer: import(".").CborShapeDeserializer;
18
18
  constructor({ defaultNamespace, errorTypeRegistries, }: {
19
19
  defaultNamespace: string;
20
20
  errorTypeRegistries?: TypeRegistry[];
@@ -0,0 +1,13 @@
1
+ import { SerdeContext } from "@smithy/core/protocols";
2
+ import { Schema, ShapeDeserializer } from "@smithy/types";
3
+ /**
4
+ * @public
5
+ */
6
+ export declare class CborShapeDeserializer extends SerdeContext implements ShapeDeserializer {
7
+ read(schema: Schema, bytes: Uint8Array): any;
8
+ /**
9
+ * Public because it's called by the protocol implementation to deserialize errors.
10
+ * @internal
11
+ */
12
+ readValue(_schema: Schema, value: any): any;
13
+ }
@@ -0,0 +1,15 @@
1
+ import { SerdeContext } from "@smithy/core/protocols";
2
+ import { Schema, ShapeSerializer } from "@smithy/types";
3
+ /**
4
+ * @public
5
+ */
6
+ export declare class CborShapeSerializer extends SerdeContext implements ShapeSerializer {
7
+ private value;
8
+ write(schema: Schema, value: unknown): void;
9
+ /**
10
+ * Recursive serializer transform that copies and prepares the user input object
11
+ * for CBOR serialization.
12
+ */
13
+ serialize(schema: Schema, source: unknown): any;
14
+ flush(): Uint8Array;
15
+ }
@@ -0,0 +1,19 @@
1
+ import { SerdeContext } from "@smithy/core/protocols";
2
+ import { Schema, ShapeDeserializer } from "@smithy/types";
3
+ /**
4
+ * Single-pass CBOR deserializer that reads bytes and applies Smithy schema
5
+ * transformations in one traversal using module-level state.
6
+ *
7
+ * @internal
8
+ */
9
+ export declare class SinglePassCborShapeDeserializer extends SerdeContext implements ShapeDeserializer<Uint8Array> {
10
+ constructor();
11
+ read(schema: Schema, bytes: Uint8Array): any;
12
+ /**
13
+ * Deserialize a pre-decoded JS object per schema.
14
+ * Used by protocol error handling which passes pre-decoded objects.
15
+ *
16
+ * @internal
17
+ */
18
+ readValue(_schema: Schema, value: any): any;
19
+ }
@@ -0,0 +1,22 @@
1
+ import { SerdeContext } from "@smithy/core/protocols";
2
+ import { Schema, ShapeSerializer } from "@smithy/types";
3
+ /**
4
+ * Single-pass CBOR serializer that walks the Smithy schema and writes CBOR bytes
5
+ * directly to a module-level buffer in one traversal. Eliminates the intermediate
6
+ * JS object tree that the multi-pass CborShapeSerializer builds.
7
+ *
8
+ * @internal
9
+ */
10
+ export declare class SinglePassCborShapeSerializer extends SerdeContext implements ShapeSerializer<Uint8Array> {
11
+ constructor();
12
+ write(schema: Schema, value: unknown): void;
13
+ flush(): Uint8Array;
14
+ }
15
+ /**
16
+ * Advance the encoding epoch. Call between serialization batches
17
+ * to allow stale cache entries to be evicted.
18
+ *
19
+ * @internal
20
+ */
21
+ export declare function advanceSinglePassEncodingEpoch(): void;
22
+ export declare function activateCborStructIterator(): void;
@@ -2,4 +2,6 @@ export { cbor } from "./cbor";
2
2
  export { tag, tagSymbol } from "./cbor-types";
3
3
  export { buildHttpRpcRequest, checkCborResponse, dateToTag, loadSmithyRpcV2CborErrorCode, parseCborBody, parseCborErrorBody, } from "./parseCborBody";
4
4
  export { SmithyRpcV2CborProtocol } from "./SmithyRpcV2CborProtocol";
5
- export { CborCodec, CborShapeDeserializer, CborShapeSerializer } from "./CborCodec";
5
+ export { CborCodec } from "./CborCodec";
6
+ export { CborShapeSerializer } from "./codec-v1/CborShapeSerializer";
7
+ export { CborShapeDeserializer } from "./codec-v1/CborShapeDeserializer";
@@ -139,6 +139,18 @@ export declare class NormalizedSchema implements INormalizedSchema {
139
139
  string,
140
140
  NormalizedSchema
141
141
  ], undefined, undefined>;
142
+ /**
143
+ * CBOR-optimized struct iteration. Returns a cache of parallel arrays
144
+ * (memberNames, memberSchemas, encodedKeys) for direct indexed iteration.
145
+ * Implementation is patched by the cbor submodule on load.
146
+ *
147
+ * @internal
148
+ */
149
+ structIteratorCbor(): {
150
+ memberNames: string[];
151
+ memberSchemas: NormalizedSchema[];
152
+ encodedKeys: Uint8Array[];
153
+ };
142
154
  }
143
155
  /**
144
156
  * @internal
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.30.0",
3
+ "version": "3.31.0",
4
4
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/core",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -220,6 +220,7 @@
220
220
  "scripts": {
221
221
  "benchmark:cbor": "node ./scripts/cbor-perf.mjs",
222
222
  "benchmark:checksum": "node ./scripts/checksum-perf.mjs",
223
+ "benchmark:schema:cbor": "node ./scripts/cbor-shape-perf.mjs",
223
224
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
224
225
  "build:es:cjs": "node ../../scripts/compilation/es_cjs.js",
225
226
  "build:types": "premove dist-types && yarn g:tsc -p tsconfig.types.json",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "4.4.14",
3
+ "version": "4.4.15",
4
4
  "description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
5
5
  "keywords": [
6
6
  "aws",
@@ -45,7 +45,7 @@
45
45
  "test:watch": "yarn g:vitest watch"
46
46
  },
47
47
  "dependencies": {
48
- "@smithy/core": "^3.30.0",
48
+ "@smithy/core": "^3.31.0",
49
49
  "@smithy/types": "^4.16.1",
50
50
  "tslib": "^2.6.2"
51
51
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "5.6.11",
3
+ "version": "5.6.12",
4
4
  "description": "Provides a way to make requests",
5
5
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/fetch-http-handler",
6
6
  "license": "Apache-2.0",
@@ -44,7 +44,7 @@
44
44
  "test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.mts"
45
45
  },
46
46
  "dependencies": {
47
- "@smithy/core": "^3.30.0",
47
+ "@smithy/core": "^3.31.0",
48
48
  "@smithy/types": "^4.16.1",
49
49
  "tslib": "^2.6.2"
50
50
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/signature-v4",
3
- "version": "5.6.10",
3
+ "version": "5.6.11",
4
4
  "description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
5
5
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/signature-v4",
6
6
  "license": "Apache-2.0",
@@ -42,7 +42,7 @@
42
42
  "test:watch": "yarn g:vitest watch"
43
43
  },
44
44
  "dependencies": {
45
- "@smithy/core": "^3.30.0",
45
+ "@smithy/core": "^3.31.0",
46
46
  "@smithy/types": "^4.16.1",
47
47
  "tslib": "^2.6.2"
48
48
  },
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 08 Jul 2026 06:47:45 GMT
11
+ * Last updated: Mon, 27 Jul 2026 17:32:10 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -1185,7 +1185,7 @@ declare module "node:crypto" {
1185
1185
  * and it will be impossible to extract the private key from the returned object.
1186
1186
  * @since v11.6.0
1187
1187
  */
1188
- function createPublicKey(key: PublicKeyInput | RawPublicKeyInput | JsonWebKeyInput | BinaryLike): KeyObject;
1188
+ function createPublicKey(key: PublicKeyInput | RawPublicKeyInput | JsonWebKeyInput | KeyLike): KeyObject;
1189
1189
  /**
1190
1190
  * Creates and returns a new key object containing a secret key for symmetric
1191
1191
  * encryption or `Hmac`.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "26.1.1",
3
+ "version": "26.1.2",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -150,6 +150,6 @@
150
150
  "undici-types": "~8.3.0"
151
151
  },
152
152
  "peerDependencies": {},
153
- "typesPublisherContentHash": "a59119b073061829bc67a5bf6bc2b8ecb0a5a6196058e3c73172a00440f4e16d",
153
+ "typesPublisherContentHash": "359a01a58cecf5a30fb7b7a7b10c4f5c332339421ef5cbc9932fc492f472a5b4",
154
154
  "typeScriptVersion": "5.6"
155
155
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@psnext/slingcli",
3
- "version": "2.5.20260727-1",
3
+ "version": "2.5.20260728-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.5.20260727-1",
32
+ "slingVersion": "2.5.20260728-1",
33
33
  "dependencies": {
34
34
  "@earendil-works/pi-tui": "file:../.sling-pack/earendil-works-pi-tui-0.82.1.tgz",
35
35
  "@earendil-works/pi-ai": "file:../.sling-pack/earendil-works-pi-ai-0.82.1.tgz",