agents-relay 1.0.86 → 1.0.87

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,6 +1,8 @@
1
1
  import { access, readFile, readdir, realpath, stat } from 'node:fs/promises';
2
2
  import { homedir } from 'node:os';
3
3
  import { basename, dirname, isAbsolute, join, relative, resolve, sep } from 'node:path';
4
+ import { fileURLToPath } from 'node:url';
5
+ const BUNDLED_AGENTS_ROOT = join(dirname(fileURLToPath(import.meta.url)), '..', 'skills', 'agents-relay', 'agents');
4
6
  async function exists(path) {
5
7
  try {
6
8
  await access(path);
@@ -194,6 +196,8 @@ export async function resolveExecutionContext(projectPath, role, options = {}) {
194
196
  }
195
197
  const skills = selectByName([...skillMap.values()].sort((a, b) => a.name.localeCompare(b.name)), options.explicitSkills, 'skill');
196
198
  const agentMap = new Map();
199
+ for (const agent of await agentFiles(dirname(BUNDLED_AGENTS_ROOT), 'builtin', []))
200
+ agentMap.set(agent.name, agent);
197
201
  for (const layer of uniqueLayers) {
198
202
  for (const agent of await agentFiles(layer.root, layer.source, skillsByLayer.get(layer.root) ?? []))
199
203
  agentMap.set(agent.name, agent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-relay",
3
- "version": "1.0.86",
3
+ "version": "1.0.87",
4
4
  "description": "Durable async agent jobs coordinated through GitHub pull requests",
5
5
  "type": "module",
6
6
  "bin": {