@braingrid/cli 0.2.64 → 0.2.65

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 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.65] - 2026-04-02
11
+
12
+ ### Added
13
+
14
+ - **API-provided URL field for requirement deep links** — deep links now use the URL field returned by the API instead of constructing URLs client-side
15
+
16
+ ### Fixed
17
+
18
+ - **Guard against undefined full_name in init repository config** — init no longer crashes when full_name is undefined during repository configuration
19
+
10
20
  ## [0.2.64] - 2026-03-23
11
21
 
12
22
  ### Added
package/dist/cli.js CHANGED
@@ -227,7 +227,7 @@ async function axiosWithRetry(config2, options) {
227
227
 
228
228
  // src/build-config.ts
229
229
  var BUILD_ENV = true ? "production" : process.env.NODE_ENV === "test" ? "development" : "production";
230
- var CLI_VERSION = true ? "0.2.64" : "0.0.0-test";
230
+ var CLI_VERSION = true ? "0.2.65" : "0.0.0-test";
231
231
  var PRODUCTION_CONFIG = {
232
232
  apiUrl: "https://app.braingrid.ai",
233
233
  workosAuthUrl: "https://auth.braingrid.ai",
@@ -5020,7 +5020,7 @@ async function handleInit(opts) {
5020
5020
  project_short_id: project2.short_id,
5021
5021
  project_name: project2.name,
5022
5022
  project_description: project2.description || null,
5023
- repository: project2.repository ? {
5023
+ repository: project2.repository?.full_name ? {
5024
5024
  id: project2.repository.id,
5025
5025
  owner: project2.repository.full_name.split("/")[0],
5026
5026
  // Parse owner from API full_name
@@ -5531,7 +5531,10 @@ function formatRequirementOutput(requirement2, options) {
5531
5531
  `;
5532
5532
  message += `${chalk13.bold("ID:")} ${requirement2.id}
5533
5533
  `;
5534
- if (options?.apiUrl) {
5534
+ if (requirement2.url) {
5535
+ message += `${chalk13.bold("URL:")} ${requirement2.url}
5536
+ `;
5537
+ } else if (options?.apiUrl) {
5535
5538
  const webUiUrl = getWebUiUrl(options.apiUrl);
5536
5539
  message += `${chalk13.bold("URL:")} ${webUiUrl}/requirements/overview?id=${requirement2.id}
5537
5540
  `;