aegiscode 4.0.20 → 4.1.25
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/bin/cli.js +514 -481
- package/package.json +2 -2
- package/scripts/release-local.sh +68 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aegiscode",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.25",
|
|
4
4
|
"description": "AEGIS CLI — AI-powered coding assistant",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"node": ">=18.0.0"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
+
"@huggingface/transformers": "^3.6.0",
|
|
59
60
|
"@modelcontextprotocol/sdk": "^1.25.3",
|
|
60
|
-
"@xenova/transformers": "^2.17.2",
|
|
61
61
|
"chalk": "^5.4.1",
|
|
62
62
|
"dotenv": "^17.4.2",
|
|
63
63
|
"fuse.js": "^7.4.1",
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Local release — mirrors what the GitHub "Build & Release" workflow does on a tag push
|
|
3
|
+
#
|
|
4
|
+
# Usage:
|
|
5
|
+
# ./scripts/release-local.sh # read version from package.json
|
|
6
|
+
# ./scripts/release-local.sh 4.21 # explicit version
|
|
7
|
+
#
|
|
8
|
+
# Steps:
|
|
9
|
+
# 1. Bump version in package.json (if --version given)
|
|
10
|
+
# 2. Create annotated git tag v<version>
|
|
11
|
+
# 3. Build (npm run build:publish)
|
|
12
|
+
# 4. Publish to npm (npm publish)
|
|
13
|
+
# 5. Push tag to origin (so GitHub Actions finishes the release)
|
|
14
|
+
#
|
|
15
|
+
# Requires: npm login (NPM_TOKEN in ~/.npmrc), git push access
|
|
16
|
+
set -euo pipefail
|
|
17
|
+
cd "$(dirname "$0")/.."
|
|
18
|
+
|
|
19
|
+
VERSION="${1:-}"
|
|
20
|
+
if [ -z "$VERSION" ]; then
|
|
21
|
+
VERSION=$(node -p "require('./package.json').version")
|
|
22
|
+
echo "→ Using current version from package.json: $VERSION"
|
|
23
|
+
else
|
|
24
|
+
# Strip leading v if provided
|
|
25
|
+
VERSION="${VERSION#v}"
|
|
26
|
+
node -e "const p=require('./package.json'); p.version='$VERSION'; require('fs').writeFileSync('package.json', JSON.stringify(p, null, 2)+'\n')"
|
|
27
|
+
echo "→ Bumped package.json version to $VERSION"
|
|
28
|
+
git add package.json
|
|
29
|
+
git commit -m "chore: bump version to v${VERSION}" || echo " (nothing to commit)"
|
|
30
|
+
fi
|
|
31
|
+
|
|
32
|
+
TAG="v${VERSION}"
|
|
33
|
+
|
|
34
|
+
# ── Check prerequisites ────────────────────────────────────────────────────
|
|
35
|
+
if ! git diff --cached --quiet 2>/dev/null; then
|
|
36
|
+
echo "⚠ You have staged but uncommitted changes. Commit or stash them first."
|
|
37
|
+
exit 1
|
|
38
|
+
fi
|
|
39
|
+
|
|
40
|
+
echo ""
|
|
41
|
+
echo "═══ aegiscodex- release v${VERSION} ═══"
|
|
42
|
+
|
|
43
|
+
# ── Tag ────────────────────────────────────────────────────────────────────
|
|
44
|
+
if git rev-parse "$TAG" >/dev/null 2>&1; then
|
|
45
|
+
echo "→ Tag $TAG already exists locally."
|
|
46
|
+
else
|
|
47
|
+
git tag -a "$TAG" -m "Release ${TAG}"
|
|
48
|
+
echo "→ Created tag $TAG"
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
# ── Build ──────────────────────────────────────────────────────────────────
|
|
52
|
+
echo "→ Building..."
|
|
53
|
+
npm run build:publish
|
|
54
|
+
|
|
55
|
+
# ── Publish to npm ─────────────────────────────────────────────────────────
|
|
56
|
+
echo "→ Publishing to npm..."
|
|
57
|
+
npm publish --access public
|
|
58
|
+
|
|
59
|
+
# ── Push tag ───────────────────────────────────────────────────────────────
|
|
60
|
+
echo "→ Pushing tag $TAG to origin..."
|
|
61
|
+
git push origin "$TAG"
|
|
62
|
+
|
|
63
|
+
echo ""
|
|
64
|
+
echo "═══ Done — release v${VERSION} published to npm ═══"
|
|
65
|
+
echo " Tag: $TAG (pushed to origin)"
|
|
66
|
+
echo " npm: https://www.npmjs.com/package/aegiscode/v/${VERSION}"
|
|
67
|
+
echo ""
|
|
68
|
+
echo "GitHub Actions will now pick up the tag and create the GitHub Release."
|