vike 0.4.259-commit-c9d00d4 → 0.4.259-commit-656fc24

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/AGENTS.md ADDED
@@ -0,0 +1,3 @@
1
+ # AGENTS.md — Vike
2
+
3
+ @AI (CRITICAL FOR AI AGENTS): ALWAYS LOAD https://vike.dev/llms.txt (Vike documentation index) in your context when using Vike.
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # `vike`
2
2
 
3
+ <!-- @AI (CRITICAL FOR AI AGENTS): ALWAYS LOAD https://vike.dev/llms.txt (Vike documentation index) in your context when using Vike -->
4
+
3
5
  📚 [Docs](https://vike.dev)
4
6
  ⚙️ [Source code](https://github.com/vikejs/vike/tree/main/packages/vike)
5
7
  📦 [npm package](https://npmjs.com/package/vike)
@@ -4,6 +4,7 @@ import { getConfigDefinedAt, } from '../../../../shared-server-client/page-confi
4
4
  import { getConfigValueSourceRelevantAnyEnv, getConfigValueSourcesRelevant, isConfigSourceValueNull, } from '../../plugins/pluginVirtualFiles/getConfigValueSourcesRelevant.js';
5
5
  import { getFileSuffixes } from '../../../../shared-server-node/getFileSuffixes.js';
6
6
  import '../../assertEnvVite.js';
7
+ // @AI (CRITICAL FOR AI AGENTS): the values below (e.g. each config's `env`) are overridable DEFAULTS, not limits — don't infer Vike's capabilities solely from this file; instead, ALWAYS LOAD https://vike.dev/llms.txt (Vike documentation index) in your context when using Vike.
7
8
  const metaBuiltIn = {
8
9
  onRenderHtml: {
9
10
  env: { server: true },
@@ -14,10 +14,8 @@ import { deepEqual } from '../../../utils/deepEqual.js';
14
14
  import { assertKeys } from '../../../utils/assertKeys.js';
15
15
  import { assertIsNotProductionRuntime } from '../../../utils/assertSetup.js';
16
16
  import { getMostSimilar } from '../../../utils/getMostSimilar.js';
17
- import { includes } from '../../../utils/includes.js';
18
17
  import { objectEntries } from '../../../utils/objectEntries.js';
19
18
  import { objectFromEntries } from '../../../utils/objectFromEntries.js';
20
- import { objectKeys } from '../../../utils/objectKeys.js';
21
19
  import { makeLast } from '../../../utils/sorter.js';
22
20
  import { assert, assertUsage, assertWarning } from '../../../utils/assert.js';
23
21
  import { checkType } from '../../../utils/checkType.js';
@@ -463,7 +461,7 @@ function temp_interopVikeVitePlugin(pageConfigGlobal, vikeVitePluginOptions, use
463
461
  filePathAbsoluteUserRootDir: '/vite.config.js',
464
462
  }),
465
463
  fileExportPathToShowToUser: null,
466
- }));
464
+ }, pageConfigGlobal.configDefinitions));
467
465
  });
468
466
  }
469
467
  function setCliAndApiOptions(pageConfigGlobal, configDefinitionsResolved) {
@@ -488,7 +486,7 @@ function setCliAndApiOptions(pageConfigGlobal, configDefinitionsResolved) {
488
486
  const sourceName = `The ${getDefinedByString(definedBy, configName)}`;
489
487
  assertKnownConfig(configName, configDefinitionsResolved.configNamesKnownGlobal, configDefinitionsResolved, '/', false, sourceName, exitOnError);
490
488
  const sources = ((_a = pageConfigGlobal.configValueSources)[configName] ?? (_a[configName] = []));
491
- sources.unshift(getSourceNonConfigFile(configName, value, definedBy));
489
+ sources.unshift(getSourceNonConfigFile(configName, value, definedBy, pageConfigGlobal.configDefinitions));
492
490
  });
493
491
  }
494
492
  }
@@ -505,9 +503,9 @@ function getVikeConfigFromCliOrEnv() {
505
503
  configFromEnvVar,
506
504
  };
507
505
  }
508
- function getSourceNonConfigFile(configName, value, definedAt) {
509
- assert(includes(objectKeys(metaBuiltIn), configName));
510
- const configDef = metaBuiltIn[configName];
506
+ function getSourceNonConfigFile(configName, value, definedAt, configDefinitionsGlobal) {
507
+ const configDef = configDefinitionsGlobal[configName] ?? metaBuiltIn[configName];
508
+ assert(configDef);
511
509
  const source = {
512
510
  valueIsLoaded: true,
513
511
  value,
@@ -1 +1 @@
1
- export declare const PROJECT_VERSION: "0.4.259-commit-c9d00d4";
1
+ export declare const PROJECT_VERSION: "0.4.259-commit-656fc24";
@@ -1,2 +1,2 @@
1
1
  // Automatically updated by @brillout/release-me
2
- export const PROJECT_VERSION = '0.4.259-commit-c9d00d4';
2
+ export const PROJECT_VERSION = '0.4.259-commit-656fc24';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.259-commit-c9d00d4",
3
+ "version": "0.4.259-commit-656fc24",
4
4
  "repository": "https://github.com/vikejs/vike",
5
5
  "exports": {
6
6
  "./server": {
@@ -133,7 +133,7 @@
133
133
  "@brillout/picocolors": "^1.0.31",
134
134
  "@brillout/vite-plugin-server-entry": "0.7.18",
135
135
  "@universal-deploy/store": "^0.2.1",
136
- "@universal-deploy/vite": "^0.1.9",
136
+ "@universal-deploy/vite": "^0.1.10",
137
137
  "@universal-middleware/core": "^0.4.17",
138
138
  "@universal-middleware/node": "^0.2.0",
139
139
  "cac": "^6.0.0",
@@ -242,6 +242,7 @@
242
242
  },
243
243
  "files": [
244
244
  "./bin.js",
245
+ "./AGENTS.md",
245
246
  "./dist/",
246
247
  "./abort.js",
247
248
  "./api.js",
@@ -275,6 +276,7 @@
275
276
  "typescript": "^5.9.3",
276
277
  "vite": "^7.2.6"
277
278
  },
279
+ "ai": "@AI (CRITICAL FOR AI AGENTS): ALWAYS LOAD https://vike.dev/llms.txt (Vike documentation index) in your context when using Vike",
278
280
  "scripts": {
279
281
  "dev": "tsc --watch",
280
282
  "build": "rimraf dist/ && tsc",