mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
refactor: rename gemini-code to gemini-cli (#822)
This commit is contained in:
@@ -60,15 +60,15 @@ fi
|
||||
|
||||
# prepare global installation files for prod builds
|
||||
# pack cli
|
||||
echo "packing @gemini-code/cli ..."
|
||||
rm -f packages/cli/dist/gemini-code-cli-*.tgz
|
||||
npm pack -w @gemini-code/cli --pack-destination ./packages/cli/dist &>/dev/null
|
||||
echo "packing @gemini-cli/cli ..."
|
||||
rm -f packages/cli/dist/gemini-cli-cli-*.tgz
|
||||
npm pack -w @gemini-cli/cli --pack-destination ./packages/cli/dist &>/dev/null
|
||||
# pack core
|
||||
echo "packing @gemini-code/core ..."
|
||||
rm -f packages/core/dist/gemini-code-core-*.tgz
|
||||
npm pack -w @gemini-code/core --pack-destination ./packages/core/dist &>/dev/null
|
||||
echo "packing @gemini-cli/core ..."
|
||||
rm -f packages/core/dist/gemini-cli-core-*.tgz
|
||||
npm pack -w @gemini-cli/core --pack-destination ./packages/core/dist &>/dev/null
|
||||
# give node user (used during installation, see Dockerfile) access to these files
|
||||
chmod 755 packages/*/dist/gemini-code-*.tgz
|
||||
chmod 755 packages/*/dist/gemini-cli-*.tgz
|
||||
|
||||
# redirect build output to /dev/null unless VERBOSE is set
|
||||
BUILD_STDOUT="/dev/null"
|
||||
|
||||
@@ -17,7 +17,7 @@ const filesToWatch = [
|
||||
path.join(cliPackageDir, 'tsconfig.json'),
|
||||
]; // Specific files within the CLI package
|
||||
const buildDir = path.join(cliPackageDir, 'dist'); // Build output directory within the CLI package
|
||||
const warningsFilePath = path.join(os.tmpdir(), 'gemini-code-cli-warnings.txt'); // Temp file for warnings
|
||||
const warningsFilePath = path.join(os.tmpdir(), 'gemini-cli-warnings.txt'); // Temp file for warnings
|
||||
// ---------------------
|
||||
|
||||
function getMtime(filePath) {
|
||||
|
||||
@@ -41,7 +41,7 @@ while getopts "i" opt; do
|
||||
done
|
||||
shift $((OPTIND - 1))
|
||||
|
||||
IMAGE=gemini-code-sandbox
|
||||
IMAGE=gemini-cli-sandbox
|
||||
CMD=$(scripts/sandbox_command.sh)
|
||||
|
||||
# list all containers running on sandbox image
|
||||
@@ -61,7 +61,7 @@ elif [[ "${1:-}" =~ ^[0-9]+$ ]]; then
|
||||
else
|
||||
# exit if no sandbox is running
|
||||
if [ ${#sandboxes[@]} -eq 0 ]; then
|
||||
echo "No sandboxes found. Are you running gemini-code with sandboxing enabled?"
|
||||
echo "No sandboxes found. Are you running gemini-cli with sandboxing enabled?"
|
||||
exit 1
|
||||
fi
|
||||
# exit if multiple sandboxes are running
|
||||
|
||||
Reference in New Issue
Block a user