@wayai/cli 0.3.55 → 0.3.56

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 CHANGED
@@ -8276,17 +8276,16 @@ function lowestInstalledVersion(installs) {
8276
8276
  if (versions.length === 0) return null;
8277
8277
  return versions.reduce((lowest, v) => isNewerVersion(lowest, v) ? v : lowest);
8278
8278
  }
8279
- var DEFAULT_SKILL_RAW_URL, SKILL_INSTALL_PATHS;
8279
+ var DEFAULT_SKILL_RAW_URL, HARNESS_SKILL_DIRS, SKILL_INSTALL_PATHS;
8280
8280
  var init_skill_version = __esm({
8281
8281
  "src/lib/skill-version.ts"() {
8282
8282
  "use strict";
8283
8283
  init_utils();
8284
8284
  DEFAULT_SKILL_RAW_URL = "https://raw.githubusercontent.com/wayai-pro/wayai-skill/main/skills/wayai/SKILL.md";
8285
- SKILL_INSTALL_PATHS = [
8286
- ".claude/skills/wayai/SKILL.md",
8287
- ".opencode/skills/wayai/SKILL.md",
8288
- ".agents/skills/wayai/SKILL.md"
8289
- ];
8285
+ HARNESS_SKILL_DIRS = [".claude", ".opencode", ".agents"];
8286
+ SKILL_INSTALL_PATHS = HARNESS_SKILL_DIRS.map(
8287
+ (dir) => `${dir}/skills/wayai/SKILL.md`
8288
+ );
8290
8289
  }
8291
8290
  });
8292
8291
 
@@ -17301,9 +17300,15 @@ async function runSkillInstall(positional) {
17301
17300
  throw err;
17302
17301
  }
17303
17302
  const root = findGitRoot() ?? process.cwd();
17304
- const targetDir = path21.join(root, ".claude", "skills", name);
17305
- const written = writeFileMap(targetDir, res.files);
17306
- console.log(`Installed skill "${name}" \u2192 ${path21.relative(root, targetDir)}/ (${written.length} file${written.length === 1 ? "" : "s"}).`);
17303
+ const present = HARNESS_SKILL_DIRS.filter((dir) => fs17.existsSync(path21.join(root, dir)));
17304
+ const targets = present.length > 0 ? present : HARNESS_SKILL_DIRS;
17305
+ const fileCount = Object.keys(res.files).length;
17306
+ const relDirs = targets.map((harness) => {
17307
+ const targetDir = path21.join(root, harness, "skills", name);
17308
+ writeFileMap(targetDir, res.files);
17309
+ return `${path21.relative(root, targetDir)}/`;
17310
+ });
17311
+ console.log(`Installed skill "${name}" (${fileCount} file${fileCount === 1 ? "" : "s"}) \u2192 ${relDirs.join(", ")}`);
17307
17312
  console.log("Reload your agent (e.g. restart Claude Code) to pick up the skill.");
17308
17313
  }
17309
17314
  function exitOnApiError(err) {
@@ -17720,7 +17725,7 @@ Usage:
17720
17725
  wayai admin template push <slug> Publish a template from tutorials/templates/<slug>/ into the store
17721
17726
  wayai admin template pull <slug> [--out DIR] [--json] Pull a published template from the store for inspection
17722
17727
 
17723
- wayai admin skill install [name] Install a private operator skill (default: wayai-admin) into .claude/skills/
17728
+ wayai admin skill install [name] Install a private operator skill (default: wayai-admin) into each present harness's skills/ dir
17724
17729
 
17725
17730
  Sources:
17726
17731
  do Live DO SQLite (existing conversation, hub config, etc.).
@@ -17780,6 +17785,7 @@ var init_admin = __esm({
17780
17785
  init_observability();
17781
17786
  init_report_edit_args();
17782
17787
  init_workspace();
17788
+ init_skill_version();
17783
17789
  init_layout();
17784
17790
  init_template_files();
17785
17791
  init_contracts();