@happyvertical/smrt-scanner 0.48.0 → 0.49.1

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.
@@ -504,7 +504,7 @@ function extractAgentSurface(options) {
504
504
  continue;
505
505
  }
506
506
  const argument = unwrapTypeWrappers(args[0]);
507
- if (!argument || argument.type !== "ObjectExpression") {
507
+ if (argument?.type !== "ObjectExpression") {
508
508
  report("non-literal-argument", helper, `\`${helper}()\` must be called with an object literal, not a ${argument?.type ?? "unknown expression"}. ${ESCAPE_HATCH}`, (argument ?? node).start);
509
509
  continue;
510
510
  }
@@ -3138,4 +3138,4 @@ var OxcScanner = class {
3138
3138
  //#endregion
3139
3139
  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 };
3140
3140
 
3141
- //# sourceMappingURL=scanner-CxUeI0FI.js.map
3141
+ //# sourceMappingURL=scanner-DKLhd-mh.js.map