@agent-nexus/csreg 0.1.2 → 0.1.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/index.js +8 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ function setConfig(updates) {
31
31
  writeFileSync(CONFIG_PATH, JSON.stringify(merged, null, 2) + "\n", { encoding: "utf-8", mode: 384 });
32
32
  }
33
33
  function getApiUrl() {
34
- return process.env.CSREG_API_URL ?? getConfig().apiUrl ?? "https://csreg.nexus";
34
+ return process.env.CSREG_API_URL ?? getConfig().apiUrl ?? "https://www.csreg.nexus";
35
35
  }
36
36
  function getAuthToken() {
37
37
  return process.env.CSREG_TOKEN ?? getConfig().token;
@@ -298,7 +298,12 @@ var initCommand = new Command4("init").description("Initialize a new skill proje
298
298
  message: "User-invocable (show in /slash command menu)?",
299
299
  default: true
300
300
  });
301
- const targetDir = resolve(dir ?? name.trim());
301
+ const defaultDir = dir ?? join2(".claude", "skills", name.trim());
302
+ const chosenDir = await input2({
303
+ message: "Directory to create skill in:",
304
+ default: defaultDir
305
+ });
306
+ const targetDir = resolve(chosenDir.trim());
302
307
  if (existsSync2(targetDir)) {
303
308
  throw new CliError(`Directory already exists: ${targetDir}`, [
304
309
  "Choose a different name or directory."
@@ -346,7 +351,7 @@ For example: \`/my-skill some-argument\` makes \`$ARGUMENTS\` = "some-argument".
346
351
  console.log(" 3. Run `csreg push` to publish to the registry");
347
352
  console.log("");
348
353
  info("To use locally without publishing:");
349
- console.log(` cp -r ${targetDir} .claude/skills/${name.trim()}`);
354
+ console.log(` Ensure your skill is inside .claude/skills/ in your project root`);
350
355
  } catch (err) {
351
356
  handleError(err);
352
357
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-nexus/csreg",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "CLI for Claude Skills Registry",
5
5
  "license": "MIT",
6
6
  "type": "module",