@happyvertical/smrt-scanner 0.54.0 → 0.54.4

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/AGENTS.md CHANGED
@@ -16,7 +16,9 @@ executes the source.
16
16
  (`toManifest()`); owns field-type inference (the `0` vs `0.0` integer/decimal
17
17
  heuristic, decorator interpretation, union/alias resolution).
18
18
  - `parseFile` / `parseSource` — parse a single file or a source string to a
19
- `FileScanResult` (classes, errors, type aliases, SMRT imports).
19
+ `FileScanResult` (classes, errors, type aliases, SMRT imports). Each class
20
+ carries the parser's `bodyStart` offset; core's library build inserts its
21
+ package stamp there and never rescans source text (#3490).
20
22
  - `extractSmrtImports` — pull SMRT-related imports from a parsed file.
21
23
  - `lintNumericPrecision(classes, sourceText?)` — flags persisted `number` fields
22
24
  whose declared precision contradicts their name (#2361), returning a `kind`
@@ -765,6 +765,7 @@ var FRAMEWORK_BASE_CLASSES = /* @__PURE__ */ new Set([
765
765
  "SmrtClass",
766
766
  "SmrtCollection",
767
767
  "SmrtJunction",
768
+ "SmrtJunctionBase",
768
769
  "SmrtHierarchical",
769
770
  "SmrtPolymorphicAssociation",
770
771
  "SmrtReport",
@@ -1584,7 +1585,8 @@ function extractClassDeclaration(node, filePath, sourceText, importAliases, ctx)
1584
1585
  fields,
1585
1586
  methods,
1586
1587
  startLine: node.loc?.start.line || 1,
1587
- endLine: node.loc?.end.line || 1
1588
+ endLine: node.loc?.end.line || 1,
1589
+ ...typeof node.body?.start === "number" ? { bodyStart: node.body.start } : {}
1588
1590
  };
1589
1591
  }
1590
1592
  function isSmrtDecorator(decorator, importAliases) {
@@ -3141,4 +3143,4 @@ var OxcScanner = class {
3141
3143
  //#endregion
3142
3144
  export { scanSvelteAgentSurface as _, parseFile as a, discoverSourceFiles as c, checkAgentSurfaceToolNames as d, emptyAgentSurface as f, mergeAgentSurfaces as g, isPrunedAgentSurfacePath as h, parseAgentSurfaceFile as i, normalizeGlobSeparators as l, isAgentSurfaceSourcePath as m, ManifestAdapter as n, parseSource as o, extractAgentSurface as p, extractSmrtImports as r, InheritanceResolver as s, OxcScanner as t, relativeGlobToCwd as u, sourceMayDeclareAgentSurface as v };
3143
3145
 
3144
- //# sourceMappingURL=scanner-CvF1x1ek.js.map
3146
+ //# sourceMappingURL=scanner-ItT4WTxN.js.map