@happyvertical/smrt-scanner 0.57.27 → 0.57.29

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/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { r as ManifestAdapter, t as OxcScanner } from "./chunks/scanner-DPJwlSPw.js";
2
+ import { r as ManifestAdapter, t as OxcScanner } from "./chunks/scanner-FB4nRHQB.js";
3
3
  import { readFileSync, writeFileSync } from "node:fs";
4
4
  import { dirname, resolve } from "node:path";
5
5
  import { fileURLToPath } from "node:url";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as isPrunedAgentSurfacePath, E as sourceMayDeclareAgentSurface, S as isAgentSurfaceSourcePath, T as scanSvelteAgentSurface, _ as normalizeGlobSeparators, a as extractSmrtImports, b as emptyAgentSurface, c as parseRecipeFile, d as extractRecipes, f as resolveRecipes, g as discoverSourceFiles, h as resolveEnumValues, i as defaultCollectionName, l as parseSource, m as InheritanceResolver, n as parseUiSelectorsFile, o as parseAgentSurfaceFile, p as sourceMayDeclareRecipe, r as ManifestAdapter, s as parseFile, t as OxcScanner, u as deriveHelpFieldRefs, v as relativeGlobToCwd, w as mergeAgentSurfaces, x as extractAgentSurface, y as checkAgentSurfaceToolNames } from "./chunks/scanner-DPJwlSPw.js";
1
+ import { C as isPrunedAgentSurfacePath, E as sourceMayDeclareAgentSurface, S as isAgentSurfaceSourcePath, T as scanSvelteAgentSurface, _ as normalizeGlobSeparators, a as extractSmrtImports, b as emptyAgentSurface, c as parseRecipeFile, d as extractRecipes, f as resolveRecipes, g as discoverSourceFiles, h as resolveEnumValues, i as defaultCollectionName, l as parseSource, m as InheritanceResolver, n as parseUiSelectorsFile, o as parseAgentSurfaceFile, p as sourceMayDeclareRecipe, r as ManifestAdapter, s as parseFile, t as OxcScanner, u as deriveHelpFieldRefs, v as relativeGlobToCwd, w as mergeAgentSurfaces, x as extractAgentSurface, y as checkAgentSurfaceToolNames } from "./chunks/scanner-FB4nRHQB.js";
2
2
  import "./types.js";
3
3
  import { existsSync, readFileSync } from "node:fs";
4
4
  import { basename, resolve } from "node:path";
@@ -207,6 +207,28 @@ export declare class InheritanceResolver {
207
207
  * covering every field in the STI hierarchy.
208
208
  */
209
209
  mergeFieldsForSTI(chain: string[]): RawFieldDefinition[];
210
+ /**
211
+ * Merge a descendant's redeclared STI field with the entry it replaces.
212
+ *
213
+ * Leaf-wins: the descendant's own declaration (its initializer, type
214
+ * annotation, decorators, optionality) always takes precedence — a
215
+ * redeclaration that carries its own options keeps them. But a bare
216
+ * `override fieldName = value` redeclaration (no type annotation, no
217
+ * decorators) carries no metadata source of its own, so everything the
218
+ * declaring ancestor attached — an enum type annotation, a
219
+ * `@field({ description })` decorator — would otherwise be dropped from
220
+ * the merged raw field and, with it, from the converted manifest. Fill
221
+ * that missing metadata in from the ancestor entry being replaced so a
222
+ * grandchild's bare override keeps the inherited field's `enum` and
223
+ * `description` (#4005).
224
+ *
225
+ * @param ancestor - The previously merged (nearest declaring ancestor)
226
+ * field entry being replaced.
227
+ * @param descendant - The descendant's own redeclaration, which wins.
228
+ * @returns The descendant's field with missing `typeAnnotation` and
229
+ * `decorators` filled from the ancestor.
230
+ */
231
+ private mergeSTIFieldOverride;
210
232
  /**
211
233
  * Return all known descendants of a class.
212
234
  *
@@ -1 +1 @@
1
- {"version":3,"file":"inheritance-resolver.d.ts","sourceRoot":"","sources":["../src/inheritance-resolver.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,MAAM,CAUrD,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,mBAAmB;IAC9B,6CAA6C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;;;;;;;;;;OAYG;IACH,OAAO,CAAC,QAAQ,EAAE,kBAAkB,GAAG,uBAAuB;IAiC9D;;;;;;;;;;;;;;;;;OAiBG;IACH,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE;IA6BpD;;;;;;;;;;;OAWG;IACH,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI;IA+BjE;;;;;;;;;;OAUG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,IAAI;IAU3C;;;;;;;;;;;;OAYG;IACH,sBAAsB,CACpB,QAAQ,EAAE,kBAAkB,EAC5B,KAAK,EAAE,MAAM,EAAE,GACd,KAAK,GAAG,KAAK;IAmBhB;;;;;;;;;;;;OAYG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,kBAAkB,EAAE;IAyBxD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,OAAO,CAAC,qBAAqB;IAe7B;;;;;;;;;;OAUG;IACH,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE;IAe3C;;;;;;OAMG;IACH,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAKtC;;;;;;;;;OASG;IACH,QAAQ,IAAI;QACV,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,mBAAmB,EAAE,MAAM,CAAC;KAC7B;CAyBF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-scanner",
3
- "version": "0.57.27",
3
+ "version": "0.57.29",
4
4
  "description": "High-performance TypeScript scanner using OXC for SMRT manifest generation",
5
5
  "author": "HappyVertical",
6
6
  "type": "module",
@@ -34,7 +34,7 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "@happyvertical/smrt-types": "0.57.27",
37
+ "@happyvertical/smrt-types": "0.57.29",
38
38
  "fast-glob": "3.3.3",
39
39
  "minimatch": "10.2.6",
40
40
  "oxc-parser": "^0.150.0",