Skip to content

Commit a9c65d0

Browse files
authored
chore: publish as scoped @open-gitagent/gitagent (#45)
Switch the npm package name from the unscoped `gitagent` (which the CI NPM_TOKEN can't create) to the existing scoped `@open-gitagent/gitagent`, which the token can publish. 1.5.0 > 0.2.0 so it becomes the new latest. - package.json + package-lock.json: name -> @open-gitagent/gitagent (bin stays `gitagent`, version stays 1.5.0) - install.sh: scope npm ls/view/install + global-dir refs (the `gitagent` command and display strings are unchanged) - README + Documentation: install command -> npm install -g @open-gitagent/gitagent npm ci + npm run build verified locally.
1 parent 219bd36 commit a9c65d0

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎Documentation.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ curl -fsSL https://raw.githubusercontent.com/open-gitagent/gitagent/main/install
6060

6161
**Manual install:**
6262
```bash
63-
npm install -g gitagent
63+
npm install -g @open-gitagent/gitagent
6464
mkdir ~/assistant && cd ~/assistant && git init
6565
gitagent --voice --dir .
6666
```

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ This will:
6161
### Or install manually:
6262

6363
```bash
64-
npm install -g gitagent
64+
npm install -g @open-gitagent/gitagent
6565
```
6666

6767
## Quick Start
@@ -756,7 +756,7 @@ Your agent lives in a git repository with structured files:
756756
### Installation & Setup
757757

758758
**What are the requirements?**
759-
Node.js 18+ (or 20+ recommended), npm, and git. Install globally with `npm install -g gitagent`.
759+
Node.js 18+ (or 20+ recommended), npm, and git. Install globally with `npm install -g @open-gitagent/gitagent`.
760760

761761
**How do I set up API keys?**
762762
Run the installer for guided setup:

‎install.sh‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,16 @@ if [ "$(uname)" != "Darwin" ] && ! npm root -g 2>/dev/null | grep -q "$HOME"; th
107107
fi
108108

109109
if command -v gitagent &>/dev/null; then
110-
INSTALLED_VER="$(npm ls -g gitagent --depth=0 --json 2>/dev/null | node -pe "JSON.parse(require('fs').readFileSync('/dev/stdin','utf8')).dependencies?.gitagent?.version || ''" 2>/dev/null || echo "")"
111-
LATEST_VER="$(npm view gitagent version 2>/dev/null || echo "")"
110+
INSTALLED_VER="$(npm ls -g @open-gitagent/gitagent --depth=0 --json 2>/dev/null | node -pe "JSON.parse(require('fs').readFileSync('/dev/stdin','utf8')).dependencies?.['@open-gitagent/gitagent']?.version || ''" 2>/dev/null || echo "")"
111+
LATEST_VER="$(npm view @open-gitagent/gitagent version 2>/dev/null || echo "")"
112112

113113
if [ -n "$INSTALLED_VER" ] && [ -n "$LATEST_VER" ] && [ "$INSTALLED_VER" != "$LATEST_VER" ]; then
114114
echo -e " ${YELLOW}⬆${NC} gitagent ${DIM}v${INSTALLED_VER}${NC} installed — ${GREEN}v${LATEST_VER}${NC} available"
115115
read -rp " Update to v${LATEST_VER}? [Y/n]: " UPDATE_CHOICE
116116
UPDATE_CHOICE="${UPDATE_CHOICE:-Y}"
117117
if [[ "$UPDATE_CHOICE" =~ ^[Yy] ]]; then
118118
echo -e " ${BOLD}Updating gitagent...${NC}"
119-
$NPM_CMD install -g gitagent@latest 2>&1 | tail -2
119+
$NPM_CMD install -g @open-gitagent/gitagent@latest 2>&1 | tail -2
120120
echo -e " ${GREEN}✓${NC} gitagent updated to v${LATEST_VER}"
121121
else
122122
echo -e " ${DIM} keeping v${INSTALLED_VER}${NC}"
@@ -128,10 +128,10 @@ else
128128
echo -e " ${BOLD}Installing gitagent...${NC}"
129129
# Remove corrupted partial installs that cause ENOTDIR
130130
NPM_GLOBAL_DIR="$(npm root -g 2>/dev/null || echo "")"
131-
if [ -n "$NPM_GLOBAL_DIR" ] && [ -d "${NPM_GLOBAL_DIR}/gitagent" ] && [ ! -f "${NPM_GLOBAL_DIR}/gitagent/package.json" ]; then
132-
$NPM_CMD rm -rf "${NPM_GLOBAL_DIR}/gitagent" 2>/dev/null
131+
if [ -n "$NPM_GLOBAL_DIR" ] && [ -d "${NPM_GLOBAL_DIR}/@open-gitagent/gitagent" ] && [ ! -f "${NPM_GLOBAL_DIR}/@open-gitagent/gitagent/package.json" ]; then
132+
$NPM_CMD rm -rf "${NPM_GLOBAL_DIR}/@open-gitagent/gitagent" 2>/dev/null
133133
fi
134-
$NPM_CMD install -g gitagent@latest 2>&1 | tail -2
134+
$NPM_CMD install -g @open-gitagent/gitagent@latest 2>&1 | tail -2
135135
echo -e " ${GREEN}✓${NC} gitagent installed"
136136
fi
137137
echo ""

‎package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "gitagent",
2+
"name": "@open-gitagent/gitagent",
33
"version": "1.5.0",
44
"description": "A universal git-native multimodal always learning AI Agent (TinyHuman)",
55
"author": "shreyaskapale",

0 commit comments

Comments
 (0)