@happyvertical/smrt-scanner 0.55.9 → 0.55.11
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/dist/chunks/{scanner-BbpPS8Aq.js → scanner-CGcPcpyN.js} +10 -20
- package/dist/chunks/{scanner-BbpPS8Aq.js.map → scanner-CGcPcpyN.js.map} +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/manifest-adapter.d.ts +12 -11
- package/dist/manifest-adapter.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -3663,6 +3663,13 @@ function resolveRelatedArgument(raw) {
|
|
|
3663
3663
|
function createQualifiedName(packageName, className) {
|
|
3664
3664
|
return `${packageName}:${className}`;
|
|
3665
3665
|
}
|
|
3666
|
+
function defaultCollectionName(className) {
|
|
3667
|
+
const lower = className.toLowerCase();
|
|
3668
|
+
if (/[^aeiou]y$/.test(lower)) return `${lower.slice(0, -1)}ies`;
|
|
3669
|
+
if (lower.endsWith("s") || lower.endsWith("x") || lower.endsWith("z")) return `${lower}es`;
|
|
3670
|
+
if (lower.endsWith("ch") || lower.endsWith("sh")) return `${lower}es`;
|
|
3671
|
+
return `${lower}s`;
|
|
3672
|
+
}
|
|
3666
3673
|
var ManifestAdapter = class ManifestAdapter {
|
|
3667
3674
|
typeAliases = {};
|
|
3668
3675
|
_aliasDepth;
|
|
@@ -3793,7 +3800,7 @@ var ManifestAdapter = class ManifestAdapter {
|
|
|
3793
3800
|
const converted = this.convertMethod(method);
|
|
3794
3801
|
if (converted) methods[method.name] = converted;
|
|
3795
3802
|
}
|
|
3796
|
-
const collection = typeof classDef.decoratorConfig?.collection === "string" ? classDef.decoratorConfig.collection :
|
|
3803
|
+
const collection = typeof classDef.decoratorConfig?.collection === "string" ? classDef.decoratorConfig.collection : defaultCollectionName(classDef.className);
|
|
3797
3804
|
const packageName = options.packageName || classDef.packageName;
|
|
3798
3805
|
const qualifiedName = packageName ? createQualifiedName(packageName, classDef.className) : void 0;
|
|
3799
3806
|
return {
|
|
@@ -4377,23 +4384,6 @@ var ManifestAdapter = class ManifestAdapter {
|
|
|
4377
4384
|
...method.decoratorConfig ? { decoratorConfig: method.decoratorConfig } : {}
|
|
4378
4385
|
};
|
|
4379
4386
|
}
|
|
4380
|
-
/**
|
|
4381
|
-
* Simple pluralization for collection names.
|
|
4382
|
-
*
|
|
4383
|
-
* This produces the manifest's `collection` label only; the authoritative DDL
|
|
4384
|
-
* table name is derived independently by core (`classnameToTablename` →
|
|
4385
|
-
* the `pluralize` library), so this needs to stay self-consistent rather than
|
|
4386
|
-
* cover every irregular plural. Note the `y → ies` rule fires only after a
|
|
4387
|
-
* consonant, so vowel+y words pluralise correctly (`Day` → `days`, not
|
|
4388
|
-
* `daies`).
|
|
4389
|
-
*/
|
|
4390
|
-
pluralize(name) {
|
|
4391
|
-
const lower = name.toLowerCase();
|
|
4392
|
-
if (/[^aeiou]y$/.test(lower)) return `${lower.slice(0, -1)}ies`;
|
|
4393
|
-
if (lower.endsWith("s") || lower.endsWith("x") || lower.endsWith("z")) return `${lower}es`;
|
|
4394
|
-
if (lower.endsWith("ch") || lower.endsWith("sh")) return `${lower}es`;
|
|
4395
|
-
return `${lower}s`;
|
|
4396
|
-
}
|
|
4397
4387
|
};
|
|
4398
4388
|
//#endregion
|
|
4399
4389
|
//#region src/ui-selectors.ts
|
|
@@ -4909,6 +4899,6 @@ var OxcScanner = class {
|
|
|
4909
4899
|
}
|
|
4910
4900
|
};
|
|
4911
4901
|
//#endregion
|
|
4912
|
-
export {
|
|
4902
|
+
export { isPrunedAgentSurfacePath as C, sourceMayDeclareAgentSurface as E, isAgentSurfaceSourcePath as S, scanSvelteAgentSurface as T, normalizeGlobSeparators as _, extractSmrtImports as a, emptyAgentSurface as b, parseRecipeFile as c, extractRecipes as d, resolveRecipes as f, discoverSourceFiles as g, resolveEnumValues as h, defaultCollectionName as i, parseSource as l, InheritanceResolver as m, parseUiSelectorsFile as n, parseAgentSurfaceFile as o, sourceMayDeclareRecipe as p, ManifestAdapter as r, parseFile as s, OxcScanner as t, deriveHelpFieldRefs as u, relativeGlobToCwd as v, mergeAgentSurfaces as w, extractAgentSurface as x, checkAgentSurfaceToolNames as y };
|
|
4913
4903
|
|
|
4914
|
-
//# sourceMappingURL=scanner-
|
|
4904
|
+
//# sourceMappingURL=scanner-CGcPcpyN.js.map
|