@botbotgo/agent-harness 0.0.244 → 0.0.245

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.
@@ -1 +1 @@
1
- export declare const AGENT_HARNESS_VERSION = "0.0.243";
1
+ export declare const AGENT_HARNESS_VERSION = "0.0.244";
@@ -1 +1 @@
1
- export const AGENT_HARNESS_VERSION = "0.0.243";
1
+ export const AGENT_HARNESS_VERSION = "0.0.244";
@@ -616,7 +616,7 @@ async function loadModuleAgentsForRoot(root, mergedAgents) {
616
616
  async function loadConventionalObjectsForRoot(root, mergedObjects) {
617
617
  for (const directory of CONVENTIONAL_OBJECT_DIRECTORIES) {
618
618
  for (const objectRoot of conventionalDirectoryRoots(root, directory)) {
619
- for (const { item, sourcePath } of await readYamlItems(objectRoot, undefined, { recursive: true })) {
619
+ for (const { item, sourcePath } of await readYamlItemsIgnoringNodeModules(objectRoot)) {
620
620
  const workspaceObject = parseWorkspaceObject(item, sourcePath);
621
621
  if (!workspaceObject) {
622
622
  continue;
@@ -633,6 +633,32 @@ async function loadConventionalObjectsForRoot(root, mergedObjects) {
633
633
  }
634
634
  }
635
635
  }
636
+ async function readYamlItemsIgnoringNodeModules(root) {
637
+ if (!(await fileExists(root))) {
638
+ return [];
639
+ }
640
+ const records = [];
641
+ const pending = [root];
642
+ while (pending.length > 0) {
643
+ const current = pending.shift();
644
+ const entries = await readdir(current, { withFileTypes: true });
645
+ for (const entry of entries.sort((left, right) => left.name.localeCompare(right.name))) {
646
+ const entryPath = path.join(current, entry.name);
647
+ if (entry.isDirectory()) {
648
+ if (entry.name === "node_modules") {
649
+ continue;
650
+ }
651
+ pending.push(entryPath);
652
+ continue;
653
+ }
654
+ if (!entry.isFile() || (!entry.name.endsWith(".yaml") && !entry.name.endsWith(".yml"))) {
655
+ continue;
656
+ }
657
+ records.push(...(await readNamedYamlItems(current, [entry.name])));
658
+ }
659
+ }
660
+ return records;
661
+ }
636
662
  async function readModuleToolItems(root) {
637
663
  const modulesRoot = moduleCollectionRoot(root, "tools");
638
664
  if (!(await fileExists(modulesRoot))) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbotgo/agent-harness",
3
- "version": "0.0.244",
3
+ "version": "0.0.245",
4
4
  "description": "Workspace runtime for multi-agent applications",
5
5
  "license": "MIT",
6
6
  "type": "module",