@dereekb/dbx-components-mcp 13.10.4 → 13.10.5

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.
@@ -289,25 +289,15 @@
289
289
  "whenItDoesNotApply": "When the rename was intentional (rare — usually a copy-paste).",
290
290
  "canonicalFix": "Update the getter body to return the matching identity constant."
291
291
  },
292
- {
293
- "code": "MODEL_FIELD_JSDOC_NO_FULL_NAME",
294
- "source": "dbx_model_validate",
295
- "severity": "warning",
296
- "title": "A persisted field's JSDoc doesn't open with `<fullName> -- <description>`",
297
- "whatItFlags": "A persisted field's JSDoc doesn't open with `<fullName> -- <description>`.",
298
- "whenItApplies": "Every field with JSDoc — the first line should match the `<fullName> -- <description>` pattern so the long-name extractor and decoder agree on field semantics.",
299
- "whenItDoesNotApply": "When the project deliberately uses a non-standard JSDoc convention (rare).",
300
- "canonicalFix": "Reformat the JSDoc opener to `<longName> -- <one-line description>`."
301
- },
302
292
  {
303
293
  "code": "MODEL_FIELD_MISSING_JSDOC",
304
294
  "source": "dbx_model_validate",
305
295
  "severity": "warning",
306
- "title": "A persisted field has no JSDoc",
307
- "whatItFlags": "A persisted field has no JSDoc.",
308
- "whenItApplies": "Every persisted field — short field names need JSDoc to document what they mean.",
296
+ "title": "A persisted field has no JSDoc description",
297
+ "whatItFlags": "A persisted field has no JSDoc description.",
298
+ "whenItApplies": "Every persisted field — short field names need a JSDoc description so a reader knows what the field is actually for. The long-name itself is carried by the `@dbxModelVariable` tag, so the JSDoc body just needs a one-line description.",
309
299
  "whenItDoesNotApply": "Fields whose name is unambiguously self-describing (rare with 1-4 char abbreviations).",
310
- "canonicalFix": "Add `/** <fullName> -- <description> *\\/` above the field declaration."
300
+ "canonicalFix": "Add `/** <one-line description> *\\/` above the field declaration (and append `@dbxModelVariable <longName>` for the canonical long name)."
311
301
  },
312
302
  {
313
303
  "code": "MODEL_FIELD_MISSING_VARIABLE_TAG",
@@ -315,19 +305,19 @@
315
305
  "severity": "warning",
316
306
  "title": "A persisted field is missing its `@dbxModelVariable <name>` JSDoc tag",
317
307
  "whatItFlags": "A persisted field is missing its `@dbxModelVariable <name>` JSDoc tag.",
318
- "whenItApplies": "Every field on a `@dbxModel` interface — the tag carries the human-readable long name the catalog and decoder use when surfacing the field to operators.",
308
+ "whenItApplies": "Every field on a `@dbxModel` interface — the tag carries the human-readable long name the catalog and decoder use when surfacing the field to operators. The long name is the variable name the field would have unabbreviated, written in camelCase (e.g. `uid` → `userUid`, `n` → `name`, `crAt` → `createdAt`).",
319
309
  "whenItDoesNotApply": "Fields on embedded sub-object interfaces (no `@dbxModel` parent) and fields the project deliberately leaves untagged (rare).",
320
- "canonicalFix": "Append `@dbxModelVariable <longName>` to the field's JSDoc block."
310
+ "canonicalFix": "Append `@dbxModelVariable <longName>` to the field's JSDoc block, where `<longName>` is the field's unabbreviated camelCase variable name."
321
311
  },
322
312
  {
323
313
  "code": "MODEL_FIELD_NAME_TOO_LONG",
324
314
  "source": "dbx_model_validate",
325
315
  "severity": "warning",
326
- "title": "A persisted field's name exceeds the workspace's 4-character convention",
327
- "whatItFlags": "A persisted field's name exceeds the workspace's 4-character convention.",
328
- "whenItApplies": "Every persisted field on a model interface (or sub-object interface).",
329
- "whenItDoesNotApply": "Fields that compose well-known multi-character abbreviations the project intentionally allows.",
330
- "canonicalFix": "Rename the field to a 1–4 character abbreviation (e.g. `name` → `n`, `userId` → `uid`)."
316
+ "title": "A persisted field's name exceeds the workspace's 5-character convention",
317
+ "whatItFlags": "A persisted field's name exceeds the workspace's 5-character convention.",
318
+ "whenItApplies": "Every persisted field on a model interface (or sub-object interface). The default limit is 5; override via `dbx-mcp.config.json` `modelValidate.maxFieldNameLength`.",
319
+ "whenItDoesNotApply": "Fields whose name is listed in `dbx-mcp.config.json` `modelValidate.ignoredFieldNames`, or fields that compose well-known multi-character abbreviations the project intentionally allows.",
320
+ "canonicalFix": "Rename the field to a 1–5 character abbreviation (e.g. `name` → `n`, `userId` → `uid`). To exempt specific names workspace-wide, add them to `modelValidate.ignoredFieldNames` in `dbx-mcp.config.json`."
331
321
  },
332
322
  {
333
323
  "code": "MODEL_GROUP_INTERFACE_MISSING_TAG",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-components-mcp",
3
- "version": "13.10.4",
3
+ "version": "13.10.5",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "dbx-components-mcp": "dbx-components-mcp.js"