@tasksai/install 0.1.42 → 0.1.43

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/package.json +1 -1
  2. package/src/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tasksai/install",
3
- "version": "0.1.42",
3
+ "version": "0.1.43",
4
4
  "description": "Shared TasksAI MCP installer CLI",
5
5
  "type": "module",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -1026,7 +1026,7 @@ function verifySource({ options, source, manifest, vertical }) {
1026
1026
  const command = installer?.command;
1027
1027
  const args = installer?.args || [];
1028
1028
  const isLegacyNpx = command === "npx" && Array.isArray(args) && args[0] === "@tasksai/install";
1029
- const isNpmExec = command === "npm" && Array.isArray(args) && args.includes("--package=@tasksai/install") && (args.includes("tasksai-install") || args.includes("--call"));
1029
+ const isNpmExec = command === "npm" && Array.isArray(args) && args.some((arg) => /^--package=@tasksai\/install(?:@\d+\.\d+\.\d+)?$/.test(arg)) && (args.includes("tasksai-install") || args.includes("--call"));
1030
1030
  if (!isLegacyNpx && !isNpmExec) {
1031
1031
  throw new Error("Manifest installer command is not an approved @tasksai/install command.");
1032
1032
  }