adelie-ai 0.2.9 → 0.2.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.
@@ -13,4 +13,4 @@ def _get_version() -> str:
13
13
  pass
14
14
  return "0.0.0"
15
15
 
16
- __version__ = "0.2.9"
16
+ __version__ = "0.2.10"
package/bin/adelie.js CHANGED
@@ -67,15 +67,15 @@ function ensureVenv() {
67
67
 
68
68
  ensureVenv();
69
69
 
70
- const child = spawn(PYTHON_BIN, [CLI_PY, ...process.argv.slice(2)], {
71
- cwd: process.cwd(),
70
+ // Run adelie as a module so Python adds PKG_ROOT to sys.path automatically.
71
+ // ADELIE_CWD preserves the user's actual working directory for workspace detection.
72
+ const child = spawn(PYTHON_BIN, ["-m", "adelie.cli", ...process.argv.slice(2)], {
73
+ cwd: PKG_ROOT,
72
74
  stdio: "inherit",
73
75
  env: {
74
76
  ...process.env,
75
77
  ADELIE_PKG_ROOT: PKG_ROOT,
76
78
  ADELIE_CWD: process.cwd(),
77
- // Ensure 'adelie' package is importable regardless of install method
78
- PYTHONPATH: PKG_ROOT + (process.env.PYTHONPATH ? path.delimiter + process.env.PYTHONPATH : ""),
79
79
  },
80
80
  });
81
81
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adelie-ai",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "Adelie — Self-Communicating Autonomous AI Loop CLI",
5
5
  "bin": {
6
6
  "adelie": "bin/adelie.js"