@dereekb/dbx-components-mcp 13.10.8 → 13.11.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/README.md +5 -1
- package/dbx-components-mcp.js +6298 -2117
- package/generated/dereekb-date.utils.mcp.generated.json +864 -0
- package/generated/dereekb-model.utils.mcp.generated.json +8 -0
- package/generated/dereekb-rxjs.utils.mcp.generated.json +8 -0
- package/generated/dereekb-util.utils.mcp.generated.json +6909 -0
- package/generated/rule-catalog.generated.json +184 -0
- package/package.json +10 -10
|
@@ -1,4 +1,188 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"code": "DBX_ASSET_AGGREGATOR_MISSING_MEMBER",
|
|
4
|
+
"source": "dbx_asset_validate_app",
|
|
5
|
+
"severity": "error",
|
|
6
|
+
"title": "The aggregator array references an identifier that is not a declared",
|
|
7
|
+
"whatItFlags": "The aggregator array references an identifier that is not a declared\n`AssetPathRef` constant in the file (and is not a trust-listed external).",
|
|
8
|
+
"whenItApplies": "Every aggregator member that does not match a local export.",
|
|
9
|
+
"whenItDoesNotApply": "Identifiers imported from a trust-listed `@dereekb/*` module.",
|
|
10
|
+
"canonicalFix": "Either declare the missing `export const <NAME> = ...` or remove the entry from the aggregator."
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"code": "DBX_ASSET_APP_DIR_NOT_FOUND",
|
|
14
|
+
"source": "dbx_asset_validate_app",
|
|
15
|
+
"severity": "error",
|
|
16
|
+
"title": "The Angular app root does not exist or is not a directory",
|
|
17
|
+
"whatItFlags": "The Angular app root does not exist or is not a directory.",
|
|
18
|
+
"whenItApplies": "When `apiDir` does not resolve to an existing directory.",
|
|
19
|
+
"whenItDoesNotApply": "Backends that don't host an Angular front-end — the asset validator targets the Angular wiring.",
|
|
20
|
+
"canonicalFix": "Pass an `apiDir` that points at the Angular app (e.g. `apps/demo`), not the API app.",
|
|
21
|
+
"seeAlso": [
|
|
22
|
+
{
|
|
23
|
+
"kind": "tool",
|
|
24
|
+
"target": "dbx_asset_validate_folder"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"code": "DBX_ASSET_BARREL_MISSING",
|
|
30
|
+
"source": "dbx_asset_validate_app",
|
|
31
|
+
"severity": "warning",
|
|
32
|
+
"title": "The component's barrel `src/lib/index.ts` does not re-export `./assets`",
|
|
33
|
+
"whatItFlags": "The component's barrel `src/lib/index.ts` does not re-export `./assets`.",
|
|
34
|
+
"whenItApplies": "Components whose `src/lib/assets.ts` exists but is not re-exported through the package barrel.",
|
|
35
|
+
"whenItDoesNotApply": "Components that intentionally hide their asset refs from downstream consumers.",
|
|
36
|
+
"canonicalFix": "Add `export * from './assets';` to `<componentDir>/src/lib/index.ts`."
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"code": "DBX_ASSET_BUILDER_UNKNOWN",
|
|
40
|
+
"source": "dbx_asset_validate_app",
|
|
41
|
+
"severity": "error",
|
|
42
|
+
"title": "An exported asset constant uses a builder callee that is not one of the",
|
|
43
|
+
"whatItFlags": "An exported asset constant uses a builder callee that is not one of the\nfour known `@dereekb/rxjs` builders.",
|
|
44
|
+
"whenItApplies": "Every `export const X = <callee>(...)` whose callee is not `localAsset` / `remoteAsset` / `assetFolder` / `remoteAssetBaseUrl` and not a trusted external.",
|
|
45
|
+
"whenItDoesNotApply": "Builders re-exported from a trust-listed `@dereekb/*` module — those go through the trust list.",
|
|
46
|
+
"canonicalFix": "Use one of `localAsset`, `remoteAsset`, `assetFolder('foo').asset('bar')`, or `remoteAssetBaseUrl('https://...').asset('x')` from `@dereekb/rxjs`."
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"code": "DBX_ASSET_COMPONENT_DIR_NOT_FOUND",
|
|
50
|
+
"source": "dbx_asset_validate_app",
|
|
51
|
+
"severity": "error",
|
|
52
|
+
"title": "The component package root does not exist or is not a directory",
|
|
53
|
+
"whatItFlags": "The component package root does not exist or is not a directory.",
|
|
54
|
+
"whenItApplies": "When `componentDir` does not resolve to an existing directory.",
|
|
55
|
+
"whenItDoesNotApply": "Components that intentionally don't ship asset refs — pass `--skip asset` to `dbx_app_validate` instead.",
|
|
56
|
+
"canonicalFix": "Pass a `componentDir` that points at a real `-firebase` component package (e.g. `components/demo-firebase`).",
|
|
57
|
+
"seeAlso": [
|
|
58
|
+
{
|
|
59
|
+
"kind": "tool",
|
|
60
|
+
"target": "dbx_asset_validate_folder"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"code": "DBX_ASSET_DUPLICATE_PATH",
|
|
66
|
+
"source": "dbx_asset_validate_app",
|
|
67
|
+
"severity": "warning",
|
|
68
|
+
"title": "Two exported `AssetPathRef` constants resolve to the same path or URL",
|
|
69
|
+
"whatItFlags": "Two exported `AssetPathRef` constants resolve to the same path or URL.",
|
|
70
|
+
"whenItApplies": "When more than one constant produces the same `path` (local) or `url` (remote).",
|
|
71
|
+
"whenItDoesNotApply": "Constants intentionally aliased — but this defeats discriminating refs by symbol, so almost always a copy-paste.",
|
|
72
|
+
"canonicalFix": "Choose distinct paths/URLs or fold the duplicates into a single export."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"code": "DBX_ASSET_FILE_MISSING",
|
|
76
|
+
"source": "dbx_asset_validate_app",
|
|
77
|
+
"severity": "error",
|
|
78
|
+
"title": "The component does not contain a `src/lib/assets.ts` file",
|
|
79
|
+
"whatItFlags": "The component does not contain a `src/lib/assets.ts` file.",
|
|
80
|
+
"whenItApplies": "Every `-firebase` component package that should expose an `AssetPathRef` catalog.",
|
|
81
|
+
"whenItDoesNotApply": "Components that intentionally don't ship local asset refs.",
|
|
82
|
+
"canonicalFix": "Add `<componentDir>/src/lib/assets.ts` exporting `AssetPathRef` constants and an `AssetPathRef[]` aggregator."
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"code": "DBX_ASSET_LOCAL_FILE_MISSING",
|
|
86
|
+
"source": "dbx_asset_validate_app",
|
|
87
|
+
"severity": "error",
|
|
88
|
+
"title": "A local asset constant resolves to a path that does not exist under",
|
|
89
|
+
"whatItFlags": "A local asset constant resolves to a path that does not exist under\n`<appDir>/src/assets/`.",
|
|
90
|
+
"whenItApplies": "Every `localAsset(path)` / `assetFolder('folder').asset('file')` reference whose joined path has no matching file under the Angular app's `src/assets/` directory.",
|
|
91
|
+
"whenItDoesNotApply": "Custom `localBaseUrl` configurations passed to `provideDbxAssetLoader` — only the default `/assets/` base is checked.",
|
|
92
|
+
"canonicalFix": "Place the file at `<appDir>/src/assets/<path>` so Angular CLI copies it to the build output."
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"code": "DBX_ASSET_NO_AGGREGATOR",
|
|
96
|
+
"source": "dbx_asset_validate_app",
|
|
97
|
+
"severity": "warning",
|
|
98
|
+
"title": "`assets.ts` declares no exported `AssetPathRef[]` aggregator constant",
|
|
99
|
+
"whatItFlags": "`assets.ts` declares no exported `AssetPathRef[]` aggregator constant.",
|
|
100
|
+
"whenItApplies": "Components whose `assets.ts` file exists and parses but has no `: AssetPathRef[]`-annotated export.",
|
|
101
|
+
"whenItDoesNotApply": "Components that only need a single ref and intentionally omit the aggregator (rare — most apps want a discoverable list).",
|
|
102
|
+
"canonicalFix": "Add `export const <PROJECT>_ASSETS: AssetPathRef[] = [...];` listing every exported ref."
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"code": "DBX_ASSET_PROVIDER_IMPORT_MISSING",
|
|
106
|
+
"source": "dbx_asset_validate_app",
|
|
107
|
+
"severity": "warning",
|
|
108
|
+
"title": "`provideDbxAssetLoader` is invoked but not imported from `@dereekb/dbx-core`",
|
|
109
|
+
"whatItFlags": "`provideDbxAssetLoader` is invoked but not imported from `@dereekb/dbx-core`.",
|
|
110
|
+
"whenItApplies": "When the call site exists but the import statement does not name `provideDbxAssetLoader` from `@dereekb/dbx-core`.",
|
|
111
|
+
"whenItDoesNotApply": "Re-exports from a workspace-local barrel that proxies `@dereekb/dbx-core` — but those defeat tree-shaking and are discouraged.",
|
|
112
|
+
"canonicalFix": "Import `provideDbxAssetLoader` directly from `@dereekb/dbx-core`."
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"code": "DBX_ASSET_PROVIDER_MISSING",
|
|
116
|
+
"source": "dbx_asset_validate_app",
|
|
117
|
+
"severity": "error",
|
|
118
|
+
"title": "The Angular app config does not call `provideDbxAssetLoader(`",
|
|
119
|
+
"whatItFlags": "The Angular app config does not call `provideDbxAssetLoader(`.",
|
|
120
|
+
"whenItApplies": "Every Angular app whose `src/root.app.config.ts` should register the asset loader provider.",
|
|
121
|
+
"whenItDoesNotApply": "Apps that wire the loader from a non-standard config file — extend the scanner if so.",
|
|
122
|
+
"canonicalFix": "Add `provideDbxAssetLoader()` (from `@dereekb/dbx-core`) to the providers array in `<appDir>/src/root.app.config.ts`."
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"code": "DBX_ASSET_REMOTE_INVALID_URL",
|
|
126
|
+
"source": "dbx_asset_validate_app",
|
|
127
|
+
"severity": "error",
|
|
128
|
+
"title": "A `remoteAsset(...)` or `remoteAssetBaseUrl(...)` argument is not an",
|
|
129
|
+
"whatItFlags": "A `remoteAsset(...)` or `remoteAssetBaseUrl(...)` argument is not an\nabsolute http/https URL.",
|
|
130
|
+
"whenItApplies": "Every remote-builder argument that is a string literal but lacks an `http://` or `https://` prefix.",
|
|
131
|
+
"whenItDoesNotApply": "Arguments built from variables, template strings, or environment values — those cannot be statically validated.",
|
|
132
|
+
"canonicalFix": "Use a literal absolute URL (e.g. `'https://cdn.example.com/data.json'`)."
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"code": "DBX_ASSET_FOLDER_BARREL_MISSING",
|
|
136
|
+
"source": "dbx_asset_validate_folder",
|
|
137
|
+
"severity": "warning",
|
|
138
|
+
"title": "The component's barrel `src/lib/index.ts` does not re-export `./assets`",
|
|
139
|
+
"whatItFlags": "The component's barrel `src/lib/index.ts` does not re-export `./assets`.",
|
|
140
|
+
"whenItApplies": "Components whose `src/lib/assets.ts` exists but isn't re-exported through the package barrel.",
|
|
141
|
+
"whenItDoesNotApply": "Components that intentionally hide their asset refs from downstream consumers.",
|
|
142
|
+
"canonicalFix": "Add `export * from './assets';` to `<componentDir>/src/lib/index.ts`."
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"code": "DBX_ASSET_FOLDER_COMPONENT_DIR_NOT_FOUND",
|
|
146
|
+
"source": "dbx_asset_validate_folder",
|
|
147
|
+
"severity": "error",
|
|
148
|
+
"title": "The component package root does not exist or is not a directory",
|
|
149
|
+
"whatItFlags": "The component package root does not exist or is not a directory.",
|
|
150
|
+
"whenItApplies": "When `componentDir` does not resolve to an existing directory.",
|
|
151
|
+
"whenItDoesNotApply": "Validating an app that doesn't ship its own component package.",
|
|
152
|
+
"canonicalFix": "Pass a `componentDir` that points at a real `-firebase` component package.",
|
|
153
|
+
"seeAlso": [
|
|
154
|
+
{
|
|
155
|
+
"kind": "tool",
|
|
156
|
+
"target": "dbx_asset_validate_app"
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"code": "DBX_ASSET_FOLDER_FILE_MISSING",
|
|
162
|
+
"source": "dbx_asset_validate_folder",
|
|
163
|
+
"severity": "error",
|
|
164
|
+
"title": "The component does not contain a `src/lib/assets.ts` file",
|
|
165
|
+
"whatItFlags": "The component does not contain a `src/lib/assets.ts` file.",
|
|
166
|
+
"whenItApplies": "Every `-firebase` component package that should expose an `AssetPathRef` catalog.",
|
|
167
|
+
"whenItDoesNotApply": "Components that intentionally don't ship asset refs.",
|
|
168
|
+
"canonicalFix": "Add `<componentDir>/src/lib/assets.ts` exporting `AssetPathRef` constants."
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"code": "DBX_ASSET_FOLDER_NO_EXPORTS",
|
|
172
|
+
"source": "dbx_asset_validate_folder",
|
|
173
|
+
"severity": "warning",
|
|
174
|
+
"title": "`assets.ts` exports neither an `AssetPathRef` constant nor an",
|
|
175
|
+
"whatItFlags": "`assets.ts` exports neither an `AssetPathRef` constant nor an\n`AssetPathRef[]` aggregator.",
|
|
176
|
+
"whenItApplies": "Components whose `assets.ts` parses but exports no asset refs.",
|
|
177
|
+
"whenItDoesNotApply": "Empty placeholders awaiting first-use scaffolding.",
|
|
178
|
+
"canonicalFix": "Use `dbx_asset_scaffold` to add a first ref and aggregator.",
|
|
179
|
+
"seeAlso": [
|
|
180
|
+
{
|
|
181
|
+
"kind": "tool",
|
|
182
|
+
"target": "dbx_asset_scaffold"
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
},
|
|
2
186
|
{
|
|
3
187
|
"code": "archetype-inconsistent",
|
|
4
188
|
"source": "dbx_model_fixture_validate_app",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-components-mcp",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.11.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"dbx-components-mcp": "dbx-components-mcp.js"
|
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
"@angular/core": "21.2.11",
|
|
16
16
|
"@angular/forms": "21.2.11",
|
|
17
17
|
"@angular/material": "^21.2.9",
|
|
18
|
-
"@dereekb/dbx-core": "13.
|
|
19
|
-
"@dereekb/dbx-firebase": "13.
|
|
20
|
-
"@dereekb/dbx-form": "13.
|
|
21
|
-
"@dereekb/dbx-web": "13.
|
|
22
|
-
"@dereekb/firebase": "13.
|
|
23
|
-
"@dereekb/firebase-server": "13.
|
|
24
|
-
"@dereekb/rxjs": "13.
|
|
25
|
-
"@dereekb/util": "13.
|
|
18
|
+
"@dereekb/dbx-core": "13.11.0",
|
|
19
|
+
"@dereekb/dbx-firebase": "13.11.0",
|
|
20
|
+
"@dereekb/dbx-form": "13.11.0",
|
|
21
|
+
"@dereekb/dbx-web": "13.11.0",
|
|
22
|
+
"@dereekb/firebase": "13.11.0",
|
|
23
|
+
"@dereekb/firebase-server": "13.11.0",
|
|
24
|
+
"@dereekb/rxjs": "13.11.0",
|
|
25
|
+
"@dereekb/util": "13.11.0",
|
|
26
26
|
"@uirouter/angular": "21.0.0",
|
|
27
27
|
"rxjs": "^7.8.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@dereekb/model": "13.
|
|
30
|
+
"@dereekb/model": "13.11.0"
|
|
31
31
|
}
|
|
32
32
|
}
|