gm-cc 2.0.325 → 2.0.327

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.
@@ -4,7 +4,7 @@
4
4
  "name": "AnEntrypoint"
5
5
  },
6
6
  "description": "State machine agent with hooks, skills, and automated git enforcement",
7
- "version": "2.0.325",
7
+ "version": "2.0.327",
8
8
  "metadata": {
9
9
  "description": "State machine agent with hooks, skills, and automated git enforcement"
10
10
  },
package/hooks/hooks.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "hooks": [
20
20
  {
21
21
  "type": "command",
22
- "command": "${CLAUDE_PLUGIN_ROOT}/bin/plugkit bootstrap",
22
+ "command": "sh ${CLAUDE_PLUGIN_ROOT}/scripts/bootstrap.sh",
23
23
  "timeout": 60000
24
24
  },
25
25
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-cc",
3
- "version": "2.0.325",
3
+ "version": "2.0.327",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.325",
3
+ "version": "2.0.327",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": {
6
6
  "name": "AnEntrypoint",
@@ -0,0 +1,14 @@
1
+ @echo off
2
+ setlocal
3
+ set "PLUGKIT=%CLAUDE_PLUGIN_ROOT%\bin\plugkit.exe"
4
+ set "BINDIR=%CLAUDE_PLUGIN_ROOT%\bin"
5
+ set "VERFILE=%BINDIR%\.plugkit-version"
6
+ if not exist "%BINDIR%" mkdir "%BINDIR%"
7
+ if not exist "%PLUGKIT%" (
8
+ powershell -NoProfile -ExecutionPolicy Bypass -Command "$g=ConvertFrom-Json(Get-Content '%CLAUDE_PLUGIN_ROOT%\gm.json' -Raw);$v=$g.plugkitVersion;[Net.ServicePointManager]::SecurityProtocol='Tls12';$r=[Net.HttpWebRequest]::Create(\"https://github.com/AnEntrypoint/rs-plugkit/releases/download/v$v/plugkit-win32-x64.exe\");$r.Timeout=1000;$r.AllowAutoRedirect=$true;try{$rs=$r.GetResponse();$s=$rs.GetResponseStream();$f=[IO.File]::Create('%PLUGKIT%');$s.CopyTo($f);$f.Dispose();$rs.Dispose();Set-Content -NoNewline '%VERFILE%' $v}catch{}" 2>nul
9
+ )
10
+ if exist "%PLUGKIT%" (
11
+ powershell -NoProfile -ExecutionPolicy Bypass -Command "try{$p=Split-Path '%CLAUDE_PLUGIN_ROOT%';Get-ChildItem $p -Directory|Where-Object{$_.FullName -ne '%CLAUDE_PLUGIN_ROOT%'}|ForEach-Object{Remove-Item $_.FullName -Recurse -Force -ErrorAction SilentlyContinue}}catch{}" 2>nul
12
+ "%PLUGKIT%" bootstrap
13
+ )
14
+ endlocal
@@ -0,0 +1,28 @@
1
+ #!/bin/sh
2
+ set -e
3
+ PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT}}"
4
+ [ -z "$PLUGIN_ROOT" ] && exit 0
5
+ BINDIR="$PLUGIN_ROOT/bin"
6
+ VERFILE="$BINDIR/.plugkit-version"
7
+ IS_WIN=0
8
+ case "$(uname -s 2>/dev/null)" in MINGW*|CYGWIN*|MSYS*) IS_WIN=1;; esac
9
+ [ -f /proc/version ] && grep -qi microsoft /proc/version 2>/dev/null && IS_WIN=1
10
+ if [ $IS_WIN -eq 1 ]; then EXT=".exe"; OS="win32"; else EXT=""; OS="$(uname -s | tr '[:upper:]' '[:lower:]')"; fi
11
+ case "$(uname -m 2>/dev/null)" in arm64|aarch64) ARCH="arm64";; *) ARCH="x64";; esac
12
+ ASSET="plugkit-${OS}-${ARCH}${EXT}"
13
+ PLUGKIT="$BINDIR/plugkit${EXT}"
14
+ mkdir -p "$BINDIR"
15
+ if [ ! -f "$PLUGKIT" ]; then
16
+ VER="$(node -e "process.stdout.write(JSON.parse(require('fs').readFileSync('$PLUGIN_ROOT/gm.json','utf8')).plugkitVersion)" 2>/dev/null || python3 -c "import json,sys;d=json.load(open('$PLUGIN_ROOT/gm.json'));sys.stdout.write(d['plugkitVersion'])" 2>/dev/null || python -c "import json,sys;d=json.load(open('$PLUGIN_ROOT/gm.json'));sys.stdout.write(d['plugkitVersion'])" 2>/dev/null || sed -n 's/.*"plugkitVersion"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' "$PLUGIN_ROOT/gm.json" | head -1)"
17
+ [ -z "$VER" ] && exit 0
18
+ URL="https://github.com/AnEntrypoint/rs-plugkit/releases/download/v${VER}/${ASSET}"
19
+ curl -fsSL --location --max-time 30 "$URL" -o "$PLUGKIT" 2>/dev/null || exit 0
20
+ chmod +x "$PLUGKIT" 2>/dev/null || true
21
+ printf '%s' "$VER" > "$VERFILE"
22
+ fi
23
+ PARENT="$(dirname "$PLUGIN_ROOT")"
24
+ for d in "$PARENT"/*/; do
25
+ [ "$d" = "$PLUGIN_ROOT/" ] && continue
26
+ rm -rf "$d" 2>/dev/null || true
27
+ done
28
+ "$PLUGKIT" bootstrap