juno-code 1.0.10 → 1.0.12
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/dist/bin/cli.js +100 -11
- package/dist/bin/cli.js.map +1 -1
- package/dist/bin/cli.mjs +100 -11
- package/dist/bin/cli.mjs.map +1 -1
- package/dist/index.js +27 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -10
- package/dist/index.mjs.map +1 -1
- package/dist/templates/scripts/cleanup_feedback.sh +3 -0
- package/dist/templates/scripts/install_requirements.sh +38 -4
- package/dist/templates/scripts/kanban.sh +19 -0
- package/package.json +1 -1
|
@@ -7,9 +7,12 @@
|
|
|
7
7
|
# This script:
|
|
8
8
|
# 1. Checks if 'uv' (ultrafast Python package manager) is installed
|
|
9
9
|
# 2. Falls back to 'pip' if 'uv' is not available
|
|
10
|
-
# 3.
|
|
11
|
-
#
|
|
12
|
-
#
|
|
10
|
+
# 3. Detects virtual environment and installs accordingly:
|
|
11
|
+
# - If inside venv: installs into venv
|
|
12
|
+
# - If outside venv: uses --system flag for system-wide installation
|
|
13
|
+
# 4. Installs required packages: juno-kanban, roundtable-ai
|
|
14
|
+
# 5. Reports if requirements are already satisfied
|
|
15
|
+
# 6. Shows error if neither 'uv' nor 'pip' is available
|
|
13
16
|
#
|
|
14
17
|
# Usage: ./install_requirements.sh
|
|
15
18
|
#
|
|
@@ -75,15 +78,46 @@ check_all_requirements_satisfied() {
|
|
|
75
78
|
fi
|
|
76
79
|
}
|
|
77
80
|
|
|
81
|
+
# Function to check if we're inside a virtual environment
|
|
82
|
+
is_in_virtualenv() {
|
|
83
|
+
# Check for VIRTUAL_ENV environment variable (most common indicator)
|
|
84
|
+
if [ -n "${VIRTUAL_ENV:-}" ]; then
|
|
85
|
+
return 0 # Inside venv
|
|
86
|
+
fi
|
|
87
|
+
|
|
88
|
+
# Check for CONDA_DEFAULT_ENV (conda environments)
|
|
89
|
+
if [ -n "${CONDA_DEFAULT_ENV:-}" ]; then
|
|
90
|
+
return 0 # Inside conda env
|
|
91
|
+
fi
|
|
92
|
+
|
|
93
|
+
# Check if sys.prefix != sys.base_prefix (Python way to detect venv)
|
|
94
|
+
if command -v python3 &> /dev/null; then
|
|
95
|
+
if python3 -c "import sys; exit(0 if sys.prefix != sys.base_prefix else 1)" 2>/dev/null; then
|
|
96
|
+
return 0 # Inside venv
|
|
97
|
+
fi
|
|
98
|
+
fi
|
|
99
|
+
|
|
100
|
+
return 1 # Not inside venv
|
|
101
|
+
}
|
|
102
|
+
|
|
78
103
|
# Function to install packages using uv
|
|
79
104
|
install_with_uv() {
|
|
80
105
|
log_info "Installing packages using 'uv' (ultrafast Python package manager)..."
|
|
81
106
|
|
|
107
|
+
# Determine if we need --system flag
|
|
108
|
+
local uv_flags="--quiet"
|
|
109
|
+
if ! is_in_virtualenv; then
|
|
110
|
+
log_info "Not in a virtual environment - using --system flag for system-wide installation"
|
|
111
|
+
uv_flags="--quiet --system"
|
|
112
|
+
else
|
|
113
|
+
log_info "Detected virtual environment - installing into venv"
|
|
114
|
+
fi
|
|
115
|
+
|
|
82
116
|
local failed_packages=()
|
|
83
117
|
|
|
84
118
|
for package in "${REQUIRED_PACKAGES[@]}"; do
|
|
85
119
|
log_info "Installing: $package"
|
|
86
|
-
if uv pip install "$package"
|
|
120
|
+
if uv pip install "$package" $uv_flags; then
|
|
87
121
|
log_success "Successfully installed: $package"
|
|
88
122
|
else
|
|
89
123
|
log_error "Failed to install: $package"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
#
|
|
3
|
+
# Kanban Wrapper Script
|
|
4
|
+
#
|
|
5
|
+
# This script ensures juno-kanban always executes from the project root directory,
|
|
6
|
+
# maintaining a single consistent database location regardless of where this script is called from.
|
|
7
|
+
#
|
|
8
|
+
# Usage: ./.juno_task/scripts/kanban.sh [juno-kanban arguments]
|
|
9
|
+
# Example: ./.juno_task/scripts/kanban.sh list --limit 5
|
|
10
|
+
#
|
|
11
|
+
|
|
12
|
+
# Get the directory where this script is located
|
|
13
|
+
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
14
|
+
|
|
15
|
+
# Navigate to project root (parent of scripts directory)
|
|
16
|
+
PROJECT_ROOT="$( cd "$SCRIPT_DIR/../.." && pwd )"
|
|
17
|
+
|
|
18
|
+
# Change to project root and execute juno-kanban with all passed arguments
|
|
19
|
+
cd "$PROJECT_ROOT" && juno-kanban "$@"
|
package/package.json
CHANGED