@vention/vention-cli 0.38.9 → 0.38.10

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/main.esm.js +13 -2
  2. package/package.json +1 -1
package/main.esm.js CHANGED
@@ -4150,7 +4150,7 @@ $$y({ global: true, forced: globalThis$r.globalThis !== globalThis$r }, {
4150
4150
  globalThis: globalThis$r
4151
4151
  });
4152
4152
 
4153
- var version = "0.38.9";
4153
+ var version = "0.38.10";
4154
4154
  var packageJson$1 = {
4155
4155
  version: version};
4156
4156
 
@@ -12994,7 +12994,9 @@ function createInstallCommand() {
12994
12994
  value: name
12995
12995
  }))
12996
12996
  });
12997
- if (agent === "claude-code") installForClaudeCode(options.scope);else if (agent === "codex") installForCodex(options.scope);else unpackSkills(agent, options.scope);
12997
+ const install = pluginInstallFor(agent, options.scope);
12998
+ const installedVersion = install && installedVersions(findInstalledSkills()).get(install);
12999
+ if (install && installedVersion) reportExistingInstall(install, installedVersion);else if (agent === "claude-code") installForClaudeCode(options.scope);else if (agent === "codex") installForCodex(options.scope);else unpackSkills(agent, options.scope);
12998
13000
  } catch (error) {
12999
13001
  handleCommandError(error, "Failed to install the Vention skills");
13000
13002
  }
@@ -13048,6 +13050,15 @@ const UPDATERS = {
13048
13050
  update: () => unpackSkills(CURSOR_AND_COPILOT, "project")
13049
13051
  }
13050
13052
  };
13053
+ function pluginInstallFor(agent, scope) {
13054
+ if (agent === "claude-code" && scope === "user") return "claude-code";
13055
+ return agent === "codex" ? "codex" : undefined;
13056
+ }
13057
+ function reportExistingInstall(install, version) {
13058
+ const installed = `Vention skills ${version} are already installed for ${UPDATERS[install].name}`;
13059
+ const latest = latestVersion();
13060
+ if (latest === undefined) console.log(chalk.yellow(`${installed}. Couldn't reach npm to check for a newer version.`));else if (isBehind(version, latest)) console.log(chalk.yellow(`${installed}, and ${latest} is available. Run 'vention skills update'.`));else console.log(chalk.green(`${installed}, the latest version.`));
13061
+ }
13051
13062
  function createUpdateCommand() {
13052
13063
  return new Command("update").description("Update the Vention skills in every coding agent that has them").action(() => {
13053
13064
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vention/vention-cli",
3
- "version": "0.38.9",
3
+ "version": "0.38.10",
4
4
  "description": "CLI tool for Vention applications",
5
5
  "type": "module",
6
6
  "engines": {