allagents 1.6.0 → 1.6.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.
- package/dist/index.js +22 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7477,7 +7477,7 @@ function generateWorkspaceRules(repositories, skills = []) {
|
|
|
7477
7477
|
</skill>`).join(`
|
|
7478
7478
|
`);
|
|
7479
7479
|
skillsBlock = `
|
|
7480
|
-
##
|
|
7480
|
+
## Repository Skills
|
|
7481
7481
|
When a task matches a skill description, fetch the full instructions from its location.
|
|
7482
7482
|
|
|
7483
7483
|
<available_skills>
|
|
@@ -28423,7 +28423,8 @@ async function discoverRepoSkills(repoPath, options2) {
|
|
|
28423
28423
|
results.push({
|
|
28424
28424
|
name: metadata.name,
|
|
28425
28425
|
description: metadata.description,
|
|
28426
|
-
relativePath: relPath
|
|
28426
|
+
relativePath: relPath,
|
|
28427
|
+
fileSize: content.length
|
|
28427
28428
|
});
|
|
28428
28429
|
} catch {}
|
|
28429
28430
|
}
|
|
@@ -28431,7 +28432,7 @@ async function discoverRepoSkills(repoPath, options2) {
|
|
|
28431
28432
|
return results;
|
|
28432
28433
|
}
|
|
28433
28434
|
async function discoverWorkspaceSkills(workspacePath, repositories, clientNames) {
|
|
28434
|
-
const
|
|
28435
|
+
const skillsByName = new Map;
|
|
28435
28436
|
for (const repo of repositories) {
|
|
28436
28437
|
if (repo.skills === false)
|
|
28437
28438
|
continue;
|
|
@@ -28440,15 +28441,28 @@ async function discoverWorkspaceSkills(workspacePath, repositories, clientNames)
|
|
|
28440
28441
|
const repoSkills = await discoverRepoSkills(repoAbsPath, discoverOpts);
|
|
28441
28442
|
for (const skill of repoSkills) {
|
|
28442
28443
|
const location = `${repo.path}/${skill.relativePath}`.replace(/\\/g, "/");
|
|
28443
|
-
|
|
28444
|
+
const candidate = {
|
|
28444
28445
|
repoPath: repo.path,
|
|
28445
28446
|
name: skill.name,
|
|
28446
28447
|
description: skill.description,
|
|
28447
|
-
location
|
|
28448
|
-
|
|
28448
|
+
location,
|
|
28449
|
+
fileSize: skill.fileSize
|
|
28450
|
+
};
|
|
28451
|
+
const existing = skillsByName.get(skill.name);
|
|
28452
|
+
if (!existing) {
|
|
28453
|
+
skillsByName.set(skill.name, candidate);
|
|
28454
|
+
continue;
|
|
28455
|
+
}
|
|
28456
|
+
const existingIsAgents = existing.location.includes(".agents/");
|
|
28457
|
+
const candidateIsAgents = candidate.location.includes(".agents/");
|
|
28458
|
+
if (candidateIsAgents && !existingIsAgents) {
|
|
28459
|
+
skillsByName.set(skill.name, candidate);
|
|
28460
|
+
} else if (!candidateIsAgents && existingIsAgents) {} else if (candidate.fileSize > existing.fileSize) {
|
|
28461
|
+
skillsByName.set(skill.name, candidate);
|
|
28462
|
+
}
|
|
28449
28463
|
}
|
|
28450
28464
|
}
|
|
28451
|
-
return
|
|
28465
|
+
return [...skillsByName.values()].map(({ fileSize: _, ...entry }) => entry);
|
|
28452
28466
|
}
|
|
28453
28467
|
var init_repo_skills = __esm(() => {
|
|
28454
28468
|
init_skill();
|
|
@@ -34478,7 +34492,7 @@ var package_default;
|
|
|
34478
34492
|
var init_package = __esm(() => {
|
|
34479
34493
|
package_default = {
|
|
34480
34494
|
name: "allagents",
|
|
34481
|
-
version: "1.6.
|
|
34495
|
+
version: "1.6.1",
|
|
34482
34496
|
description: "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
|
|
34483
34497
|
type: "module",
|
|
34484
34498
|
bin: {
|