yeka-skills 0.2.1 → 0.2.2

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.js +17 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -2496,6 +2496,23 @@ var shareCommand = async (skillNameInput, options, context = {}) => {
2496
2496
  const notes = options.notesFile === void 0 ? void 0 : await readNotesFile(options.notesFile);
2497
2497
  const check = await checkSkillFolder(folder.folderPath, skillName, void 0, notes);
2498
2498
  if (options.check === true) {
2499
+ try {
2500
+ const taken = await withRegistrySession(async (token) => {
2501
+ const manifest = await (context.client ?? new RegistryClient()).getManifest(token);
2502
+ return manifest.skills.some((skill) => skill.name === skillName);
2503
+ }, context.session);
2504
+ if (taken) {
2505
+ output(
2506
+ context,
2507
+ `The catalogue already has a skill called ${skillName}. If it is yours, sharing it now updates it. If it is not, rename your folder and its SKILL.md \`name:\` first, or the team's checks will turn it away.`
2508
+ );
2509
+ }
2510
+ } catch {
2511
+ output(
2512
+ context,
2513
+ "Could not reach the catalogue to see whether that name is free, so this only checked the folder."
2514
+ );
2515
+ }
2499
2516
  if (check.warnings.length === 0) {
2500
2517
  output(context, "Nothing looked risky.");
2501
2518
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yeka-skills",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Install, update, and remove private Gemography agent skills",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",