@voidagency/skills 1.0.3 → 1.0.4

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +11 -2
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -1770,7 +1770,7 @@ function createEmptyLocalLock() {
1770
1770
  }
1771
1771
  //#endregion
1772
1772
  //#region package.json
1773
- var version$1 = "1.0.3";
1773
+ var version$1 = "1.0.4";
1774
1774
  //#endregion
1775
1775
  //#region src/add.ts
1776
1776
  const isCancelled$1 = (value) => typeof value === "symbol";
@@ -2945,7 +2945,8 @@ async function runAddAgent(agentSource, options = {}) {
2945
2945
  }
2946
2946
  const addOptions = {
2947
2947
  ...options,
2948
- global: installAgentGlobally
2948
+ global: installAgentGlobally,
2949
+ yes: true
2949
2950
  };
2950
2951
  if (skillsList.length > 0) M.info(`Installing ${skillsList.length} skill(s) from agent manifest...`);
2951
2952
  const hasExplicitProvider = (s) => /^(bitbucket:|github:|gitlab:|https?:\/\/)/i.test(String(s).trim());
@@ -2972,6 +2973,14 @@ async function runAddAgent(agentSource, options = {}) {
2972
2973
  const entries = await readdir(agentDirInRepo, { withFileTypes: true });
2973
2974
  for (const ent of entries) await cp(join(agentDirInRepo, ent.name), join(destDir, ent.name), { recursive: ent.isDirectory() });
2974
2975
  M.success(`Agent definition saved to ${destDir}`);
2976
+ if (!installAgentGlobally) {
2977
+ const agentsMdInDef = join(destDir, "AGENTS.md");
2978
+ const rootAgentsMd = join(process.cwd(), "AGENTS.md");
2979
+ if (existsSync(agentsMdInDef) && !existsSync(rootAgentsMd)) {
2980
+ await cp(agentsMdInDef, rootAgentsMd);
2981
+ M.success(`AGENTS.md copied to project root (for Cursor/IDE)`);
2982
+ } else if (existsSync(agentsMdInDef) && existsSync(rootAgentsMd)) M.message(import_picocolors.default.dim(`AGENTS.md already at root; agent context also in ${destDir}`));
2983
+ }
2975
2984
  } finally {
2976
2985
  if (tempDir) await cleanupTempDir(tempDir).catch(() => {});
2977
2986
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidagency/skills",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Void Agency skills and agents CLI — install from GitHub or Bitbucket",
5
5
  "type": "module",
6
6
  "bin": {