ai-builder 0.1.4 → 0.1.5

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 +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -160,8 +160,8 @@ function getInstallPath(type, artifactName) {
160
160
  }
161
161
  }
162
162
  function installArtifact(artifact, options = {}) {
163
- const [, artifactName] = artifact.installPath.includes("/") ? artifact.installPath.split("/").filter(Boolean) : [null, artifact.installPath.replace(".claude/", "").replace(".md", "").split("/").pop()];
164
- const installPath = getInstallPath(artifact.type, artifactName || artifact.name);
163
+ const artifactName = artifact.slug.split("/")[1];
164
+ const installPath = getInstallPath(artifact.type, artifactName);
165
165
  const files = [];
166
166
  if (!options.force && isInstalled(artifact.type, artifact.author, artifactName || artifact.name)) {
167
167
  return { installed: false, files: [] };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-builder",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "CLI for installing Claude Code artifacts from aibuilder.sh",
5
5
  "type": "module",
6
6
  "bin": {