skilltotal 0.61.0 → 0.62.0

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
@@ -19,7 +19,7 @@ The scanner itself is the `skilltotal` Python package (Python 3.10+). This npm p
19
19
 
20
20
  1. `uvx` from [uv](https://docs.astral.sh/uv/), which runs the PyPI release matching this package's version in an isolated environment.
21
21
  2. `pipx run`, which runs the same release, also isolated.
22
- 3. An installed Python that already has `skilltotal` (`python -m skilltotal`). This uses whatever version is installed.
22
+ 3. An installed Python 3.11 or later that already has `skilltotal`, run as `python -P -m skilltotal`. This uses whatever version is installed. The `-P` flag, added in Python 3.11, keeps the current directory off the import path, so a `skilltotal/` or `json.py` in the folder you run it from (such as a repository you are scanning) cannot run in place of the engine.
23
23
 
24
24
  The package does not install anything itself, and it has no install scripts or dependencies. If none of the three is available, it exits with code 127 and prints how to install uv, pipx or the Python package.
25
25
 
package/lib/runner.js CHANGED
@@ -24,9 +24,13 @@ function candidates(version, platform = process.platform) {
24
24
  ...pythons.map(([cmd, pre]) => ({
25
25
  name: cmd,
26
26
  cmd,
27
- args: [...pre, "-m", PACKAGE],
27
+ // -P (Python 3.11+): `python -m` would otherwise import from the current directory first,
28
+ // so a `skilltotal/` or `json.py` in the repository being scanned would run in place of
29
+ // the engine.
30
+ args: [...pre, "-P", "-m", PACKAGE],
28
31
  // Only a Python that already has the engine counts: never pip-install on the user's behalf.
29
- probe: [...pre, "-c", `import ${PACKAGE}`],
32
+ // The probe keeps the directory off sys.path too; a Python without -P (3.10) is passed over.
33
+ probe: [...pre, "-P", "-c", `import ${PACKAGE}`],
30
34
  })),
31
35
  ];
32
36
  }
@@ -55,7 +59,7 @@ function helpText(version) {
55
59
  "The scanner is a Python package (Python 3.10+). Install one of these, then run the same command again:",
56
60
  " uv https://docs.astral.sh/uv/ (recommended: npx skilltotal then runs it in isolation)",
57
61
  " pipx https://pipx.pypa.io",
58
- ` pip python -m pip install skilltotal==${version}`,
62
+ ` pip python -m pip install skilltotal==${version} (Python 3.11+)`,
59
63
  "",
60
64
  ].join("\n");
61
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skilltotal",
3
- "version": "0.61.0",
3
+ "version": "0.62.0",
4
4
  "description": "Static security scanner for MCP servers, agent skills and npm/PyPI packages. Runs the skilltotal Python engine through uvx, pipx or an installed Python.",
5
5
  "keywords": [
6
6
  "mcp",