@dereekb/dbx-cli 13.41.0 → 13.42.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/eslint/package.json +3 -3
- package/firebase-api-manifest/main.js +156 -18
- package/firebase-api-manifest/package.json +3 -3
- package/firestore-indexes/src/generate-firestore-indexes-cli.d.ts +12 -4
- package/firestore-indexes/src/model-firebase-index-analyze.d.ts +12 -2
- package/firestore-query-manifest/main.js +21 -11
- package/firestore-query-manifest/package.json +3 -3
- package/generate-firestore-indexes/main.js +118 -20
- package/generate-firestore-indexes/package.json +2 -2
- package/generate-mcp-manifest/main.js +5 -2
- package/generate-mcp-manifest/package.json +3 -3
- package/generate-route-manifest/main.js +1 -1
- package/generate-route-manifest/package.json +2 -2
- package/index.esm.js +889 -809
- package/lint-cache/package.json +2 -2
- package/manifest-extract/index.esm.js +148 -2
- package/manifest-extract/package.json +2 -2
- package/manifest-extract/src/lib/extract-models.d.ts +4 -2
- package/manifest-extract/src/lib/types.d.ts +65 -0
- package/model-test/index.esm.js +4 -54
- package/model-test/package.json +2 -2
- package/package.json +6 -6
- package/route/package.json +7 -7
- package/src/lib/manifest/types.d.ts +52 -2
- package/src/lib/mcp-scan/manifest/css-utilities-schema.d.ts +2 -2
- package/src/lib/mcp-scan/manifest/tokens-schema.d.ts +2 -2
- package/test/package.json +9 -9
- package/validate/index.js +12 -7
- package/validate/package.json +3 -3
package/validate/index.js
CHANGED
|
@@ -6334,6 +6334,11 @@ var RESERVED_MODEL_FOLDERS = [
|
|
|
6334
6334
|
name: "storagefile",
|
|
6335
6335
|
reason: "StorageFile is a canonical group from `@dereekb/firebase` with a richer layout than the base 5 files (group, upload, file, etc.); downstream projects extend rather than redeclare it.",
|
|
6336
6336
|
recommendedTool: "dbx_storagefile_m_validate_folder"
|
|
6337
|
+
},
|
|
6338
|
+
{
|
|
6339
|
+
name: "calendar",
|
|
6340
|
+
reason: "Calendar is a canonical group from `@dereekb/firebase` with a richer layout than the base 5 files (type, expand, ics, processing, etc.); downstream projects extend rather than redeclare it.",
|
|
6341
|
+
recommendedTool: "dbx_model_validate_folder"
|
|
6337
6342
|
}
|
|
6338
6343
|
];
|
|
6339
6344
|
|
|
@@ -7254,7 +7259,7 @@ function extractGroupModelNames(text) {
|
|
|
7254
7259
|
while ((match = MODEL_NAME_RE.exec(text)) !== null) {
|
|
7255
7260
|
seen.add(match[1]);
|
|
7256
7261
|
}
|
|
7257
|
-
return
|
|
7262
|
+
return Array.from(seen).sort((a, b) => a.localeCompare(b));
|
|
7258
7263
|
}
|
|
7259
7264
|
|
|
7260
7265
|
// packages/dbx-cli/src/lib/mcp-scan/scan/_jsdoc-tagged-export/extract-base.ts
|
|
@@ -8355,7 +8360,7 @@ function buildSummaries(entries, issues) {
|
|
|
8355
8360
|
const summary = byModel.get(issue.model);
|
|
8356
8361
|
if (summary) summary.errorCount += 1;
|
|
8357
8362
|
}
|
|
8358
|
-
return
|
|
8363
|
+
return Array.from(byModel.entries()).map(([model, s]) => ({ model, ...s })).sort((a, b) => a.model.localeCompare(b.model));
|
|
8359
8364
|
}
|
|
8360
8365
|
function compareEntries(a, b) {
|
|
8361
8366
|
return a.model.localeCompare(b.model) || a.verb.localeCompare(b.verb) || (a.specifier ?? "").localeCompare(b.specifier ?? "");
|
|
@@ -8431,7 +8436,7 @@ async function readComponentDereekbDeps(componentAbs) {
|
|
|
8431
8436
|
addScopedDependencyNames(json[field], out);
|
|
8432
8437
|
}
|
|
8433
8438
|
}
|
|
8434
|
-
return
|
|
8439
|
+
return Array.from(out);
|
|
8435
8440
|
}
|
|
8436
8441
|
function addScopedDependencyNames(field, out) {
|
|
8437
8442
|
if (isRecord(field)) {
|
|
@@ -9864,7 +9869,7 @@ function tryReadTemplateInfoRecord(decl, rel, index) {
|
|
|
9864
9869
|
symbolName: decl.getName(),
|
|
9865
9870
|
directInfoIdentifiers: direct,
|
|
9866
9871
|
spreadAggregateIdentifiers: spreads,
|
|
9867
|
-
resolvedInfoIdentifiers:
|
|
9872
|
+
resolvedInfoIdentifiers: Array.from(resolved),
|
|
9868
9873
|
unresolvedSpreadIdentifiers: unresolved,
|
|
9869
9874
|
sourceFile: rel
|
|
9870
9875
|
};
|
|
@@ -11644,7 +11649,7 @@ function flagUploadServiceWiring(extracted, violations) {
|
|
|
11644
11649
|
if (!anyWired) {
|
|
11645
11650
|
pushViolation9(violations, {
|
|
11646
11651
|
code: "STORAGEFILE_UPLOAD_SERVICE_NOT_WIRED",
|
|
11647
|
-
message: `No NestJS provider with \`provide: StorageFileInitializeFromUploadService, useFactory: ${factoryNames.size > 0 ?
|
|
11652
|
+
message: `No NestJS provider with \`provide: StorageFileInitializeFromUploadService, useFactory: ${factoryNames.size > 0 ? Array.from(factoryNames).join(" | ") : "<storage-file-upload-factory>"}\` found. Bind the factory function in a NestJS module.`,
|
|
11648
11653
|
side: "api",
|
|
11649
11654
|
file: void 0
|
|
11650
11655
|
});
|
|
@@ -13175,7 +13180,7 @@ function collectAllModels(fixtures, instances) {
|
|
|
13175
13180
|
const all = /* @__PURE__ */ new Set();
|
|
13176
13181
|
for (const k of fixtures.keys()) all.add(k);
|
|
13177
13182
|
for (const k of instances.keys()) all.add(k);
|
|
13178
|
-
const list =
|
|
13183
|
+
const list = Array.from(all);
|
|
13179
13184
|
list.sort((a, b) => {
|
|
13180
13185
|
const aLine = (fixtures.get(a) ?? instances.get(a))?.getStartLineNumber() ?? 0;
|
|
13181
13186
|
const bLine = (fixtures.get(b) ?? instances.get(b))?.getStartLineNumber() ?? 0;
|
|
@@ -13229,7 +13234,7 @@ function collectIdentityImports(sourceFile) {
|
|
|
13229
13234
|
}
|
|
13230
13235
|
}
|
|
13231
13236
|
}
|
|
13232
|
-
const list =
|
|
13237
|
+
const list = Array.from(out);
|
|
13233
13238
|
list.sort((a, b) => a.localeCompare(b));
|
|
13234
13239
|
return list;
|
|
13235
13240
|
}
|
package/validate/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-cli/validate",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.42.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
7
|
-
"@dereekb/dbx-cli": "13.
|
|
8
|
-
"@dereekb/util": "13.
|
|
7
|
+
"@dereekb/dbx-cli": "13.42.0",
|
|
8
|
+
"@dereekb/util": "13.42.0",
|
|
9
9
|
"ts-morph": "^21.0.0"
|
|
10
10
|
}
|
|
11
11
|
}
|