mindsystem-cc 3.2.1 → 3.2.2
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/package.json
CHANGED
|
Binary file
|
|
@@ -85,8 +85,10 @@ def load_config(config_path: Path | None = None) -> LinearConfig:
|
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
def find_config_file() -> Path | None:
|
|
88
|
-
"""Find .linear.json by searching upward from
|
|
89
|
-
|
|
88
|
+
"""Find .linear.json by searching upward from original working directory."""
|
|
89
|
+
# Use MS_LINEAR_CWD if set (passed from wrapper script), otherwise fall back to cwd
|
|
90
|
+
start_dir = os.environ.get("MS_LINEAR_CWD")
|
|
91
|
+
current = Path(start_dir) if start_dir else Path.cwd()
|
|
90
92
|
|
|
91
93
|
while current != current.parent:
|
|
92
94
|
config_path = current / ".linear.json"
|
|
@@ -8,14 +8,15 @@ if [ -f "$HOME/.local/bin/env" ]; then
|
|
|
8
8
|
fi
|
|
9
9
|
|
|
10
10
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
11
|
+
ORIGINAL_CWD="$(pwd)"
|
|
11
12
|
cd "$SCRIPT_DIR/ms-linear"
|
|
12
13
|
|
|
13
14
|
if command -v uv &> /dev/null; then
|
|
14
15
|
# Prefer uv if available (faster)
|
|
15
16
|
uv sync --quiet 2>/dev/null
|
|
16
|
-
uv run python -m ms_linear "$@"
|
|
17
|
+
MS_LINEAR_CWD="$ORIGINAL_CWD" uv run python -m ms_linear "$@"
|
|
17
18
|
else
|
|
18
19
|
# Fall back to pip
|
|
19
20
|
pip install -q -e . 2>/dev/null
|
|
20
|
-
python3 -m ms_linear "$@"
|
|
21
|
+
MS_LINEAR_CWD="$ORIGINAL_CWD" python3 -m ms_linear "$@"
|
|
21
22
|
fi
|