@botpress/cli 6.8.13 → 7.0.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/.turbo/turbo-build.log +10 -10
- package/dist/api/retry.js +1 -1
- package/dist/api/retry.js.map +2 -2
- package/package.json +4 -4
- package/templates/empty-bot/package.json +2 -2
- package/templates/empty-integration/package.json +2 -2
- package/templates/empty-plugin/package.json +1 -1
- package/templates/hello-world/package.json +2 -2
- package/templates/webhook-message/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/cli@
|
|
2
|
+
> @botpress/cli@7.0.0 build /home/runner/work/botpress/botpress/packages/cli
|
|
3
3
|
> pnpm run build:types && pnpm run bundle && pnpm run template:gen
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @botpress/cli@
|
|
6
|
+
> @botpress/cli@7.0.0 build:types /home/runner/work/botpress/botpress/packages/cli
|
|
7
7
|
> tsc -p ./tsconfig.build.json
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
> @botpress/cli@
|
|
10
|
+
> @botpress/cli@7.0.0 bundle /home/runner/work/botpress/botpress/packages/cli
|
|
11
11
|
> ts-node -T build.ts
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
> @botpress/cli@
|
|
14
|
+
> @botpress/cli@7.0.0 template:gen /home/runner/work/botpress/botpress/packages/cli
|
|
15
15
|
> pnpm -r --stream -F @bp-templates/* exec bp gen
|
|
16
16
|
|
|
17
|
-
🤖 Botpress CLI
|
|
17
|
+
🤖 Botpress CLI v7.0.0
|
|
18
18
|
● Checking if cli is up to date
|
|
19
|
-
🤖 Botpress CLI
|
|
19
|
+
🤖 Botpress CLI v7.0.0
|
|
20
20
|
● Checking if cli is up to date
|
|
21
|
-
🤖 Botpress CLI
|
|
21
|
+
🤖 Botpress CLI v7.0.0
|
|
22
22
|
● Checking if cli is up to date
|
|
23
|
-
🤖 Botpress CLI
|
|
23
|
+
🤖 Botpress CLI v7.0.0
|
|
24
24
|
● Checking if cli is up to date
|
|
25
25
|
● Checking if sdk is up to date
|
|
26
26
|
● Checking if sdk is up to date
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
○ Generating typings for plugin empty-plugin...
|
|
33
33
|
✓ Typings available at .botpress
|
|
34
34
|
|
|
35
|
-
○ Generating typings for integration hello-world...
|
|
36
35
|
○ Generating typings for integration empty-integration...
|
|
37
36
|
✓ Typings available at .botpress
|
|
38
37
|
|
|
38
|
+
○ Generating typings for integration hello-world...
|
|
39
39
|
✓ Typings available at .botpress
|
|
40
40
|
|
|
41
|
-
🤖 Botpress CLI
|
|
41
|
+
🤖 Botpress CLI v7.0.0
|
|
42
42
|
● Checking if cli is up to date
|
|
43
43
|
● Checking if sdk is up to date
|
|
44
44
|
○ Generating typings for integration webhook-message...
|
package/dist/api/retry.js
CHANGED
|
@@ -57,7 +57,7 @@ function getRetryAfterMs(error) {
|
|
|
57
57
|
}
|
|
58
58
|
const config = {
|
|
59
59
|
retries: 3,
|
|
60
|
-
retryCondition: (err) => client.
|
|
60
|
+
retryCondition: (err) => client.http.isNetworkOrIdempotentRequestError(err) || HTTP_STATUS_TO_RETRY_ON.includes(err.response?.status ?? 0),
|
|
61
61
|
retryDelay: (retryCount, error) => {
|
|
62
62
|
if (error?.response?.status === 429) {
|
|
63
63
|
const retryAfterMs = getRetryAfterMs(error);
|
package/dist/api/retry.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/api/retry.ts"],
|
|
4
|
-
"sourcesContent": ["import * as client from '@botpress/client'\n\n// TODO: we probably shouldnt retry on 500 errors, but this is a temporary fix for the botpress repo CI\nconst HTTP_STATUS_TO_RETRY_ON = [429, 500, 502, 503, 504]\n\nfunction getRetryAfterMs(error: Parameters<NonNullable<client.RetryConfig['retryDelay']>>[1]): number | undefined {\n const headers = error?.response?.headers\n if (!headers) return undefined\n\n const headerNames = ['retry-after', 'ratelimit-reset', 'x-ratelimit-reset']\n for (const name of headerNames) {\n const raw = headers[name]\n if (!raw) continue\n const value = String(raw)\n\n // HTTP-date format (e.g. \"Mon, 28 Apr 2026 12:00:00 GMT\")\n if (value.includes(' ')) {\n const futureDate = new Date(value)\n if (!isNaN(futureDate.getTime())) {\n return Math.max(0, futureDate.getTime() - Date.now())\n }\n continue\n }\n\n // Seconds format (e.g. \"120\")\n const seconds = parseInt(value, 10)\n if (!isNaN(seconds) && seconds >= 0) {\n return seconds * 1000\n }\n }\n return undefined\n}\n\nexport const config: client.RetryConfig = {\n retries: 3,\n retryCondition: (err) =>\n client.
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAAwB;AAGxB,MAAM,0BAA0B,CAAC,KAAK,KAAK,KAAK,KAAK,GAAG;AAExD,SAAS,gBAAgB,OAAyF;AAChH,QAAM,UAAU,OAAO,UAAU;AACjC,MAAI,CAAC,QAAS,QAAO;AAErB,QAAM,cAAc,CAAC,eAAe,mBAAmB,mBAAmB;AAC1E,aAAW,QAAQ,aAAa;AAC9B,UAAM,MAAM,QAAQ,IAAI;AACxB,QAAI,CAAC,IAAK;AACV,UAAM,QAAQ,OAAO,GAAG;AAGxB,QAAI,MAAM,SAAS,GAAG,GAAG;AACvB,YAAM,aAAa,IAAI,KAAK,KAAK;AACjC,UAAI,CAAC,MAAM,WAAW,QAAQ,CAAC,GAAG;AAChC,eAAO,KAAK,IAAI,GAAG,WAAW,QAAQ,IAAI,KAAK,IAAI,CAAC;AAAA,MACtD;AACA;AAAA,IACF;AAGA,UAAM,UAAU,SAAS,OAAO,EAAE;AAClC,QAAI,CAAC,MAAM,OAAO,KAAK,WAAW,GAAG;AACnC,aAAO,UAAU;AAAA,IACnB;AAAA,EACF;AACA,SAAO;AACT;AAEO,MAAM,SAA6B;AAAA,EACxC,SAAS;AAAA,EACT,gBAAgB,CAAC,QACf,OAAO,
|
|
4
|
+
"sourcesContent": ["import * as client from '@botpress/client'\n\n// TODO: we probably shouldnt retry on 500 errors, but this is a temporary fix for the botpress repo CI\nconst HTTP_STATUS_TO_RETRY_ON = [429, 500, 502, 503, 504]\n\nfunction getRetryAfterMs(error: Parameters<NonNullable<client.RetryConfig['retryDelay']>>[1]): number | undefined {\n const headers = error?.response?.headers\n if (!headers) return undefined\n\n const headerNames = ['retry-after', 'ratelimit-reset', 'x-ratelimit-reset']\n for (const name of headerNames) {\n const raw = headers[name]\n if (!raw) continue\n const value = String(raw)\n\n // HTTP-date format (e.g. \"Mon, 28 Apr 2026 12:00:00 GMT\")\n if (value.includes(' ')) {\n const futureDate = new Date(value)\n if (!isNaN(futureDate.getTime())) {\n return Math.max(0, futureDate.getTime() - Date.now())\n }\n continue\n }\n\n // Seconds format (e.g. \"120\")\n const seconds = parseInt(value, 10)\n if (!isNaN(seconds) && seconds >= 0) {\n return seconds * 1000\n }\n }\n return undefined\n}\n\nexport const config: client.RetryConfig = {\n retries: 3,\n retryCondition: (err) =>\n client.http.isNetworkOrIdempotentRequestError(err) || HTTP_STATUS_TO_RETRY_ON.includes(err.response?.status ?? 0),\n retryDelay: (retryCount, error) => {\n if (error?.response?.status === 429) {\n const retryAfterMs = getRetryAfterMs(error)\n if (retryAfterMs !== undefined) {\n return retryAfterMs\n }\n }\n return Math.max(retryCount, 1) * 1000\n },\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAAwB;AAGxB,MAAM,0BAA0B,CAAC,KAAK,KAAK,KAAK,KAAK,GAAG;AAExD,SAAS,gBAAgB,OAAyF;AAChH,QAAM,UAAU,OAAO,UAAU;AACjC,MAAI,CAAC,QAAS,QAAO;AAErB,QAAM,cAAc,CAAC,eAAe,mBAAmB,mBAAmB;AAC1E,aAAW,QAAQ,aAAa;AAC9B,UAAM,MAAM,QAAQ,IAAI;AACxB,QAAI,CAAC,IAAK;AACV,UAAM,QAAQ,OAAO,GAAG;AAGxB,QAAI,MAAM,SAAS,GAAG,GAAG;AACvB,YAAM,aAAa,IAAI,KAAK,KAAK;AACjC,UAAI,CAAC,MAAM,WAAW,QAAQ,CAAC,GAAG;AAChC,eAAO,KAAK,IAAI,GAAG,WAAW,QAAQ,IAAI,KAAK,IAAI,CAAC;AAAA,MACtD;AACA;AAAA,IACF;AAGA,UAAM,UAAU,SAAS,OAAO,EAAE;AAClC,QAAI,CAAC,MAAM,OAAO,KAAK,WAAW,GAAG;AACnC,aAAO,UAAU;AAAA,IACnB;AAAA,EACF;AACA,SAAO;AACT;AAEO,MAAM,SAA6B;AAAA,EACxC,SAAS;AAAA,EACT,gBAAgB,CAAC,QACf,OAAO,KAAK,kCAAkC,GAAG,KAAK,wBAAwB,SAAS,IAAI,UAAU,UAAU,CAAC;AAAA,EAClH,YAAY,CAAC,YAAY,UAAU;AACjC,QAAI,OAAO,UAAU,WAAW,KAAK;AACnC,YAAM,eAAe,gBAAgB,KAAK;AAC1C,UAAI,iBAAiB,QAAW;AAC9B,eAAO;AAAA,MACT;AAAA,IACF;AACA,WAAO,KAAK,IAAI,YAAY,CAAC,IAAI;AAAA,EACnC;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Botpress CLI",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "pnpm run build:types && pnpm run bundle && pnpm run template:gen",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"types": "dist/index.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@apidevtools/json-schema-ref-parser": "^11.7.0",
|
|
29
|
-
"@botpress/chat": "1.
|
|
30
|
-
"@botpress/client": "1.
|
|
31
|
-
"@botpress/sdk": "
|
|
29
|
+
"@botpress/chat": "1.1.0",
|
|
30
|
+
"@botpress/client": "2.1.0",
|
|
31
|
+
"@botpress/sdk": "7.0.0",
|
|
32
32
|
"@bpinternal/const": "^0.1.0",
|
|
33
33
|
"@bpinternal/tunnel": "^0.1.1",
|
|
34
34
|
"@bpinternal/verel": "^0.2.0",
|