@netlify/dev 4.11.3 → 4.12.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.
package/dist/main.cjs CHANGED
@@ -554,12 +554,14 @@ var NetlifyDev = class {
554
554
  if (this.#features.aiGateway && config?.siteInfo?.capabilities?.ai_gateway_disabled) {
555
555
  this.#features.aiGateway = false;
556
556
  }
557
- if (this.#features.aiGateway && this.#features.environmentVariables && config?.api && siteID && config?.siteInfo?.url) {
557
+ if (this.#features.aiGateway && this.#features.environmentVariables && config?.api) {
558
558
  await (0, import_bootstrap.setupAIGateway)({
559
559
  api: config.api,
560
560
  env: config.env || {},
561
561
  siteID,
562
- siteURL: config.siteInfo.url
562
+ siteURL: config.siteInfo?.url,
563
+ accountID: config.siteInfo?.account_id,
564
+ siteHasDeploy: !!config.siteInfo?.published_deploy
563
565
  });
564
566
  if (config.env.AI_GATEWAY) {
565
567
  runtime.env.set("AI_GATEWAY", config.env.AI_GATEWAY.value);
package/dist/main.js CHANGED
@@ -526,12 +526,14 @@ var NetlifyDev = class {
526
526
  if (this.#features.aiGateway && config?.siteInfo?.capabilities?.ai_gateway_disabled) {
527
527
  this.#features.aiGateway = false;
528
528
  }
529
- if (this.#features.aiGateway && this.#features.environmentVariables && config?.api && siteID && config?.siteInfo?.url) {
529
+ if (this.#features.aiGateway && this.#features.environmentVariables && config?.api) {
530
530
  await setupAIGateway({
531
531
  api: config.api,
532
532
  env: config.env || {},
533
533
  siteID,
534
- siteURL: config.siteInfo.url
534
+ siteURL: config.siteInfo?.url,
535
+ accountID: config.siteInfo?.account_id,
536
+ siteHasDeploy: !!config.siteInfo?.published_deploy
535
537
  });
536
538
  if (config.env.AI_GATEWAY) {
537
539
  runtime.env.set("AI_GATEWAY", config.env.AI_GATEWAY.value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/dev",
3
- "version": "4.11.3",
3
+ "version": "4.12.1",
4
4
  "description": "Emulation of the Netlify environment for local development",
5
5
  "type": "module",
6
6
  "engines": {
@@ -50,14 +50,14 @@
50
50
  },
51
51
  "author": "Netlify Inc.",
52
52
  "devDependencies": {
53
- "@netlify/api": "^14.0.14",
54
- "@netlify/db-dev": "0.3.0",
53
+ "@netlify/api": "^14.0.17",
54
+ "@netlify/db-dev": "0.4.0",
55
55
  "@netlify/types": "2.3.0",
56
56
  "tsup": "^8.0.0",
57
57
  "vitest": "^3.0.0"
58
58
  },
59
59
  "dependencies": {
60
- "@netlify/ai": "^0.3.8",
60
+ "@netlify/ai": "^0.4.0",
61
61
  "@netlify/blobs": "10.7.0",
62
62
  "@netlify/config": "^24.4.0",
63
63
  "@netlify/dev-utils": "4.3.3",