@deimoscloud/coreai 0.1.8 → 0.1.9

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
@@ -549,6 +549,7 @@ function filterAgentsByTeam(agents2, config) {
549
549
  function compileAgents(config, options = {}) {
550
550
  const projectRoot = options.projectRoot ?? process.cwd();
551
551
  const outputDir = options.outputDir ?? join3(projectRoot, ".claude", "agents");
552
+ const coreAgentsDir = options.coreAgentsDir ?? getCoreAgentsDir();
552
553
  const customAgentsDir = options.customAgentsDir ?? join3(projectRoot, "coreai", "agents");
553
554
  const result = {
554
555
  compiled: [],
@@ -556,6 +557,7 @@ function compileAgents(config, options = {}) {
556
557
  };
557
558
  const allAgents = loadAllAgents({
558
559
  ...options,
560
+ coreAgentsDir,
559
561
  customAgentsDir
560
562
  });
561
563
  const agents2 = filterAgentsByTeam(allAgents, config);
@@ -585,6 +587,9 @@ function compileAgents(config, options = {}) {
585
587
  }
586
588
  return result;
587
589
  }
590
+ function getCoreAgentsDir() {
591
+ return join3(dirname2(dirname2(dirname2(import.meta.url.replace("file://", "")))), "agents");
592
+ }
588
593
 
589
594
  // src/adapters/mcp/types.ts
590
595
  var McpError = class extends Error {