@faapi/faapi 6.0.0 → 6.2.0

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/index.js CHANGED
@@ -3006,13 +3006,13 @@ import path14 from "path";
3006
3006
  import fs11 from "fs";
3007
3007
  function extractAgentNameFromPath(filePath) {
3008
3008
  const normalized = filePath.replace(/\\/g, "/");
3009
- const match = normalized.match(/(?:^|\/)agents\/([^/]+)\/handler\.ts$/);
3009
+ const match = normalized.match(/(?:^|\/)agents\/(.+)\/handler\.ts$/);
3010
3010
  if (!match) {
3011
3011
  throw new Error(
3012
3012
  `Not an agent path: "${filePath}". Expected pattern: src/agents/<name>/handler.ts`
3013
3013
  );
3014
3014
  }
3015
- return match[1];
3015
+ return match[1].replace(/\//g, ".");
3016
3016
  }
3017
3017
  function detectAgentExports(source) {
3018
3018
  return {
@@ -3056,7 +3056,7 @@ var DEFAULT_AGENT_PATTERNS, RUN_EXPORT_RE;
3056
3056
  var init_scanAgents = __esm({
3057
3057
  "src/agents/scanAgents.ts"() {
3058
3058
  "use strict";
3059
- DEFAULT_AGENT_PATTERNS = ["src/agents/*/handler.ts"];
3059
+ DEFAULT_AGENT_PATTERNS = ["src/agents/**/handler.ts"];
3060
3060
  RUN_EXPORT_RE = /export\s+(?:async\s+)?(?:function\s+|const\s+)run\b/;
3061
3061
  }
3062
3062
  });