@botpress/cognitive 0.5.2 → 0.5.3
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/.turbo/turbo-build.log +10 -10
- package/dist/index.d.ts +44 -0
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/cognitive@0.5.
|
|
3
|
-
> pnpm build:
|
|
2
|
+
> @botpress/cognitive@0.5.3 build /home/runner/work/botpress/botpress/packages/cognitive
|
|
3
|
+
> pnpm build:neutral && pnpm build:type && size-limit
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @botpress/cognitive@0.5.
|
|
6
|
+
> @botpress/cognitive@0.5.3 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
|
|
7
|
+
> ts-node -T ./build.ts --neutral
|
|
8
|
+
|
|
9
|
+
Done
|
|
10
|
+
|
|
11
|
+
> @botpress/cognitive@0.5.3 build:type /home/runner/work/botpress/botpress/packages/cognitive
|
|
7
12
|
> tsup --tsconfig tsconfig.build.json ./src/index.ts --dts-resolve --dts-only --clean
|
|
8
13
|
|
|
9
14
|
CLI Building entry: ./src/index.ts
|
|
10
15
|
CLI Using tsconfig: tsconfig.build.json
|
|
11
16
|
CLI tsup v8.0.2
|
|
12
17
|
DTS Build start
|
|
13
|
-
DTS ⚡️ Build success in
|
|
14
|
-
DTS dist/index.d.ts
|
|
15
|
-
|
|
16
|
-
> @botpress/cognitive@0.5.2 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
|
|
17
|
-
> ts-node -T ./build.ts --neutral
|
|
18
|
-
|
|
19
|
-
Done
|
|
18
|
+
DTS ⚡️ Build success in 5988ms
|
|
19
|
+
DTS dist/index.d.ts 676.25 KB
|
|
20
20
|
|
|
21
21
|
[1mdist/index.cjs[22m
|
|
22
22
|
Size limit: [32m[1m50 kB[22m[39m
|
package/dist/index.d.ts
CHANGED
|
@@ -3330,6 +3330,14 @@ interface SetStateExpiryResponse {
|
|
|
3330
3330
|
payload: {
|
|
3331
3331
|
[k: string]: any;
|
|
3332
3332
|
};
|
|
3333
|
+
/**
|
|
3334
|
+
* Expiry of the state in milliseconds. The state will expire if it is idle for the configured value. Absent if no expiry is set.
|
|
3335
|
+
*/
|
|
3336
|
+
expiry?: number;
|
|
3337
|
+
/**
|
|
3338
|
+
* Expiration date of the ${ref.state} in ISO 8601 format. Absent if no expiry is set.
|
|
3339
|
+
*/
|
|
3340
|
+
expiresAt?: string;
|
|
3333
3341
|
};
|
|
3334
3342
|
}
|
|
3335
3343
|
|
|
@@ -3388,6 +3396,14 @@ interface GetStateResponse {
|
|
|
3388
3396
|
payload: {
|
|
3389
3397
|
[k: string]: any;
|
|
3390
3398
|
};
|
|
3399
|
+
/**
|
|
3400
|
+
* Expiry of the state in milliseconds. The state will expire if it is idle for the configured value. Absent if no expiry is set.
|
|
3401
|
+
*/
|
|
3402
|
+
expiry?: number;
|
|
3403
|
+
/**
|
|
3404
|
+
* Expiration date of the ${ref.state} in ISO 8601 format. Absent if no expiry is set.
|
|
3405
|
+
*/
|
|
3406
|
+
expiresAt?: string;
|
|
3391
3407
|
};
|
|
3392
3408
|
meta: {
|
|
3393
3409
|
cached: boolean;
|
|
@@ -3459,6 +3475,14 @@ interface SetStateResponse {
|
|
|
3459
3475
|
payload: {
|
|
3460
3476
|
[k: string]: any;
|
|
3461
3477
|
};
|
|
3478
|
+
/**
|
|
3479
|
+
* Expiry of the state in milliseconds. The state will expire if it is idle for the configured value. Absent if no expiry is set.
|
|
3480
|
+
*/
|
|
3481
|
+
expiry?: number;
|
|
3482
|
+
/**
|
|
3483
|
+
* Expiration date of the ${ref.state} in ISO 8601 format. Absent if no expiry is set.
|
|
3484
|
+
*/
|
|
3485
|
+
expiresAt?: string;
|
|
3462
3486
|
};
|
|
3463
3487
|
}
|
|
3464
3488
|
|
|
@@ -3527,6 +3551,14 @@ interface GetOrSetStateResponse {
|
|
|
3527
3551
|
payload: {
|
|
3528
3552
|
[k: string]: any;
|
|
3529
3553
|
};
|
|
3554
|
+
/**
|
|
3555
|
+
* Expiry of the state in milliseconds. The state will expire if it is idle for the configured value. Absent if no expiry is set.
|
|
3556
|
+
*/
|
|
3557
|
+
expiry?: number;
|
|
3558
|
+
/**
|
|
3559
|
+
* Expiration date of the ${ref.state} in ISO 8601 format. Absent if no expiry is set.
|
|
3560
|
+
*/
|
|
3561
|
+
expiresAt?: string;
|
|
3530
3562
|
};
|
|
3531
3563
|
meta: {
|
|
3532
3564
|
cached: boolean;
|
|
@@ -3549,6 +3581,10 @@ interface PatchStateRequestBody {
|
|
|
3549
3581
|
payload: {
|
|
3550
3582
|
[k: string]: any;
|
|
3551
3583
|
};
|
|
3584
|
+
/**
|
|
3585
|
+
* Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn't expire.
|
|
3586
|
+
*/
|
|
3587
|
+
expiry?: number | null;
|
|
3552
3588
|
}
|
|
3553
3589
|
type PatchStateInput = PatchStateRequestBody & PatchStateRequestHeaders & PatchStateRequestQuery & PatchStateRequestParams;
|
|
3554
3590
|
interface PatchStateResponse {
|
|
@@ -3594,6 +3630,14 @@ interface PatchStateResponse {
|
|
|
3594
3630
|
payload: {
|
|
3595
3631
|
[k: string]: any;
|
|
3596
3632
|
};
|
|
3633
|
+
/**
|
|
3634
|
+
* Expiry of the state in milliseconds. The state will expire if it is idle for the configured value. Absent if no expiry is set.
|
|
3635
|
+
*/
|
|
3636
|
+
expiry?: number;
|
|
3637
|
+
/**
|
|
3638
|
+
* Expiration date of the ${ref.state} in ISO 8601 format. Absent if no expiry is set.
|
|
3639
|
+
*/
|
|
3640
|
+
expiresAt?: string;
|
|
3597
3641
|
};
|
|
3598
3642
|
}
|
|
3599
3643
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/cognitive",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Wrapper around the Botpress Client to call LLMs",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"check:type": "tsc --noEmit",
|
|
14
14
|
"build:type": "tsup --tsconfig tsconfig.build.json ./src/index.ts --dts-resolve --dts-only --clean",
|
|
15
15
|
"build:neutral": "ts-node -T ./build.ts --neutral",
|
|
16
|
-
"build": "pnpm build:
|
|
16
|
+
"build": "pnpm build:neutral && pnpm build:type && size-limit",
|
|
17
17
|
"test:e2e": "vitest run --dir ./e2e",
|
|
18
18
|
"test": "vitest --run",
|
|
19
19
|
"refresh:models": "ts-node -T ./refresh-models.ts && pnpm prettier src/cognitive-v2/models.ts --write"
|