parallel-agents 0.2.0 → 0.4.1

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/README.md CHANGED
@@ -29,3 +29,6 @@ This package is a thin Node.js wrapper that:
29
29
  3. Forwards all CLI arguments to the Python CLI
30
30
 
31
31
  For full documentation, see the [Python package on PyPI](https://pypi.org/project/parallel-agents/).
32
+
33
+ Project repository: <https://github.com/ErenAri/parallel-agents>
34
+ Issue tracker: <https://github.com/ErenAri/parallel-agents/issues>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "parallel-agents",
3
- "version": "0.2.0",
4
- "description": "Parallel multi-agent pipeline for code analysis and transformation, powered by Claude",
3
+ "version": "0.4.1",
4
+ "description": "Parallel multi-agent pipeline for code analysis and transformation.",
5
5
  "keywords": [
6
6
  "ai",
7
7
  "agents",
@@ -14,19 +14,28 @@
14
14
  "code-review"
15
15
  ],
16
16
  "license": "MIT",
17
- "author": "parallel-agents contributors",
17
+ "author": "Parallel Agents Team",
18
18
  "repository": {
19
19
  "type": "git",
20
- "url": "https://github.com/ErenAri/pa"
20
+ "url": "git+https://github.com/ErenAri/parallel-agents.git",
21
+ "directory": "npm-wrapper"
22
+ },
23
+ "homepage": "https://github.com/ErenAri/parallel-agents/tree/main/npm-wrapper#readme",
24
+ "bugs": {
25
+ "url": "https://github.com/ErenAri/parallel-agents/issues"
21
26
  },
22
27
  "bin": {
23
- "parallel-agents": "./bin/cli.js"
28
+ "parallel-agents": "bin/cli.js"
24
29
  },
25
30
  "scripts": {
26
31
  "postinstall": "node ./scripts/postinstall.js"
27
32
  },
33
+ "publishConfig": {
34
+ "access": "public",
35
+ "provenance": true
36
+ },
28
37
  "engines": {
29
- "node": ">=16.0.0"
38
+ "node": ">=18.0.0"
30
39
  },
31
40
  "files": [
32
41
  "bin/",
@@ -7,15 +7,29 @@
7
7
  const { execSync } = require("child_process");
8
8
 
9
9
  const PYPI_PACKAGE = "parallel-agents";
10
+ const MIN_PY_MAJOR = 3;
11
+ const MIN_PY_MINOR = 11;
12
+
13
+ function parseVersion(output) {
14
+ const match = output.match(/Python\s+(\d+)\.(\d+)/i);
15
+ if (!match) return null;
16
+ return { major: Number(match[1]), minor: Number(match[2]) };
17
+ }
18
+
19
+ function isSupportedVersion(version) {
20
+ if (!version) return false;
21
+ if (version.major > MIN_PY_MAJOR) return true;
22
+ return version.major === MIN_PY_MAJOR && version.minor >= MIN_PY_MINOR;
23
+ }
10
24
 
11
25
  function findPython() {
12
26
  for (const cmd of ["python3", "python"]) {
13
27
  try {
14
- const version = execSync(`${cmd} --version 2>&1`, {
28
+ const output = execSync(`${cmd} --version 2>&1`, {
15
29
  encoding: "utf-8",
16
30
  }).trim();
17
- const parts = version.split(" ")[1].split(".");
18
- if (parseInt(parts[0]) === 3 && parseInt(parts[1]) >= 11) {
31
+ const version = parseVersion(output);
32
+ if (isSupportedVersion(version)) {
19
33
  return cmd;
20
34
  }
21
35
  } catch {
@@ -28,25 +42,26 @@ function findPython() {
28
42
  const python = findPython();
29
43
  if (!python) {
30
44
  console.warn(
31
- `\n⚠️ Python 3.11+ not found. parallel-agents requires Python.\n` +
32
- ` Install from https://python.org then run:\n` +
33
- ` ${python || "python3"} -m pip install ${PYPI_PACKAGE}\n`
45
+ `\nWarning: Python ${MIN_PY_MAJOR}.${MIN_PY_MINOR}+ not found. parallel-agents requires Python.\n` +
46
+ "Install from https://python.org then run:\n" +
47
+ ` python3 -m pip install ${PYPI_PACKAGE}\n`
34
48
  );
35
- process.exit(0); // don't fail npm install
49
+ process.exit(0); // do not fail npm install
36
50
  }
37
51
 
38
52
  try {
39
53
  execSync(`${python} -m pip show ${PYPI_PACKAGE}`, { stdio: "pipe" });
40
- console.log(`✓ ${PYPI_PACKAGE} Python package already installed`);
54
+ console.log(`OK ${PYPI_PACKAGE} Python package already installed`);
41
55
  } catch {
42
56
  console.log(`Installing ${PYPI_PACKAGE} Python package...`);
43
57
  try {
44
58
  execSync(`${python} -m pip install ${PYPI_PACKAGE}`, { stdio: "inherit" });
45
- console.log(`✓ ${PYPI_PACKAGE} installed successfully`);
59
+ console.log(`OK ${PYPI_PACKAGE} installed successfully`);
46
60
  } catch {
47
61
  console.warn(
48
- `\n⚠️ Failed to auto-install ${PYPI_PACKAGE}. Run manually:\n` +
49
- ` ${python} -m pip install ${PYPI_PACKAGE}\n`
62
+ `\nWarning: Failed to auto-install ${PYPI_PACKAGE}. Run manually:\n` +
63
+ ` ${python} -m pip install ${PYPI_PACKAGE}\n`
50
64
  );
51
65
  }
52
66
  }
67
+