@braingrid/cli 0.2.57 → 0.2.58
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/CHANGELOG.md +10 -0
- package/dist/cli.js +11 -3
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.2.58] - 2026-03-06
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **Frontmatter fields for build skill** — added frontmatter metadata to the `/build` skill for improved skill discovery and configuration
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- **Vercel protection bypass header missing from auth API calls** — added the `x-vercel-protection-bypass` header to authentication requests so the CLI can reach Vercel-protected dev/staging environments
|
|
19
|
+
|
|
10
20
|
## [0.2.57] - 2026-03-03
|
|
11
21
|
|
|
12
22
|
### Fixed
|
package/dist/cli.js
CHANGED
|
@@ -226,7 +226,7 @@ async function axiosWithRetry(config2, options) {
|
|
|
226
226
|
|
|
227
227
|
// src/build-config.ts
|
|
228
228
|
var BUILD_ENV = true ? "production" : process.env.NODE_ENV === "test" ? "development" : "production";
|
|
229
|
-
var CLI_VERSION = true ? "0.2.
|
|
229
|
+
var CLI_VERSION = true ? "0.2.58" : "0.0.0-test";
|
|
230
230
|
var PRODUCTION_CONFIG = {
|
|
231
231
|
apiUrl: "https://app.braingrid.ai",
|
|
232
232
|
workosAuthUrl: "https://auth.braingrid.ai",
|
|
@@ -1020,13 +1020,17 @@ var BraingridAuth = class {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
try {
|
|
1022
1022
|
this.logger.debug("[AUTH] Fetching profile using BRAINGRID_API_TOKEN");
|
|
1023
|
+
const appConfig = getConfig();
|
|
1023
1024
|
const response = await axiosWithRetry(
|
|
1024
1025
|
{
|
|
1025
1026
|
url: `${this.baseUrl}/api/v1/profile`,
|
|
1026
1027
|
method: "POST",
|
|
1027
1028
|
headers: {
|
|
1028
1029
|
"Content-Type": "application/json",
|
|
1029
|
-
Authorization: `Bearer ${BRAINGRID_API_TOKEN}
|
|
1030
|
+
Authorization: `Bearer ${BRAINGRID_API_TOKEN}`,
|
|
1031
|
+
...appConfig.vercelProtectionBypass && {
|
|
1032
|
+
"x-vercel-protection-bypass": appConfig.vercelProtectionBypass
|
|
1033
|
+
}
|
|
1030
1034
|
},
|
|
1031
1035
|
maxRedirects: 0,
|
|
1032
1036
|
validateStatus: (status) => status < 500
|
|
@@ -1485,13 +1489,17 @@ var BraingridAuth = class {
|
|
|
1485
1489
|
this.logger.debug(
|
|
1486
1490
|
`[AUTH] Making API call to ${this.baseUrl}/api/v1/auth/validate for session validation`
|
|
1487
1491
|
);
|
|
1492
|
+
const validationConfig = getConfig();
|
|
1488
1493
|
const response = await axiosWithRetry(
|
|
1489
1494
|
{
|
|
1490
1495
|
url: `${this.baseUrl}/api/v1/auth/validate`,
|
|
1491
1496
|
method: "POST",
|
|
1492
1497
|
headers: {
|
|
1493
1498
|
"Content-Type": "application/json",
|
|
1494
|
-
Authorization: `Bearer ${session.sealed_session}
|
|
1499
|
+
Authorization: `Bearer ${session.sealed_session}`,
|
|
1500
|
+
...validationConfig.vercelProtectionBypass && {
|
|
1501
|
+
"x-vercel-protection-bypass": validationConfig.vercelProtectionBypass
|
|
1502
|
+
}
|
|
1495
1503
|
},
|
|
1496
1504
|
maxRedirects: 0,
|
|
1497
1505
|
// Don't follow redirects
|