@archora/core 2.0.0 → 2.1.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archora/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Framework-independent analyzer core for Archora. Builds the dependency model, detects cycles, computes metrics and recommendations from any FileSource. No Vue, Pinia or Tauri dependencies.",
|
|
6
6
|
"author": "Archora <archora@archora.dev>",
|
|
@@ -18,6 +18,9 @@ export type InitialArchoraDetection =
|
|
|
18
18
|
| 'workspace-packages'
|
|
19
19
|
| 'generated-openapi';
|
|
20
20
|
|
|
21
|
+
/** Canonical JSON Schema URL written into generated configs for editor support. */
|
|
22
|
+
export const ARCHORA_CONFIG_SCHEMA_URL = 'https://docs.archora.dev/archora.schema.json';
|
|
23
|
+
|
|
21
24
|
const DEFAULT_IGNORES = [
|
|
22
25
|
'dist/**',
|
|
23
26
|
'build/**',
|
|
@@ -56,6 +59,7 @@ export function buildInitialArchoraConfig(
|
|
|
56
59
|
const detected = detectProjectShape(fileSet, packageJson);
|
|
57
60
|
|
|
58
61
|
const config: ArchoraConfig = {
|
|
62
|
+
$schema: ARCHORA_CONFIG_SCHEMA_URL,
|
|
59
63
|
entryPoints: pickEntryPoints(files, fileSet, detected),
|
|
60
64
|
ignore: DEFAULT_IGNORES,
|
|
61
65
|
signals: {
|
|
@@ -3,6 +3,9 @@ import type { SignalConfidence, SignalSeverity, Suppression } from '../analyzer/
|
|
|
3
3
|
|
|
4
4
|
// .archora.json - per-project tuning, all fields optional
|
|
5
5
|
export interface ArchoraConfig {
|
|
6
|
+
// JSON Schema reference for editor autocomplete and field docs. Ignored by
|
|
7
|
+
// the analyzer; `archora init` writes it so editors can validate the file.
|
|
8
|
+
$schema?: string;
|
|
6
9
|
entryPoints?: string[];
|
|
7
10
|
// user-defined dynamic loaders: e.g. { name: 'load', resolveAs: './mfes/{0}/index' }
|
|
8
11
|
dynamicLoaders?: DynamicLoaderConfig[];
|
|
@@ -259,6 +262,7 @@ function normalizeConfig(
|
|
|
259
262
|
for (const key of Object.keys(r)) {
|
|
260
263
|
if (
|
|
261
264
|
![
|
|
265
|
+
'$schema',
|
|
262
266
|
'entryPoints',
|
|
263
267
|
'dynamicLoaders',
|
|
264
268
|
'ignore',
|