opencode-code-archaeology 2.5.0 → 2.6.1
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/CHANGELOG.md +2 -8
- package/VERSION +1 -1
- package/hooks/hermes/runner.sh +0 -13
- package/hooks/hermes/setup.sh +0 -13
- package/hooks/opencode/init.sh +0 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
## [2.6.1](https://github.com/Maleick/Code-Archaeology/compare/v2.6.0...v2.6.1) (2026-05-11)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Features
|
|
10
|
-
|
|
11
|
-
* auto-sync plugin code before expedition/init ([a576e5c](https://github.com/Maleick/Code-Archaeology/commit/a576e5c950714d966d4f22f397b3f5efca63aa22))
|
|
12
|
-
* auto-sync plugin code before setup ([ea31c8e](https://github.com/Maleick/Code-Archaeology/commit/ea31c8e37b46e8e0470ef09a90141ab4260a8db8))
|
|
6
|
+
* remove hook auto-sync pulls ([#34](https://github.com/Maleick/Code-Archaeology/issues/34)) ([026db32](https://github.com/Maleick/Code-Archaeology/commit/026db324cd9d646eb701fa212e652700142b98db))
|
|
13
7
|
|
|
14
8
|
## Unreleased
|
|
15
9
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.6.1
|
package/hooks/hermes/runner.sh
CHANGED
|
@@ -5,19 +5,6 @@ set -euo pipefail
|
|
|
5
5
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
6
6
|
REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
7
7
|
|
|
8
|
-
# ── Auto-sync: pull latest plugin code before expedition ──
|
|
9
|
-
if [[ -z "${CODE_ARCHAEOLOGY_NO_SYNC:-}" ]]; then
|
|
10
|
-
cd "$REPO_ROOT" || exit 1
|
|
11
|
-
# Only sync if we have a valid git remote (skip temp/policy-test repos)
|
|
12
|
-
if git rev-parse --verify HEAD >/dev/null 2>&1 && git remote get-url origin >/dev/null 2>&1; then
|
|
13
|
-
sync_gap=$(git log --oneline HEAD..origin/main 2>/dev/null | wc -l | tr -d ' ')
|
|
14
|
-
if [[ "$sync_gap" =~ ^[0-9]+$ && "$sync_gap" -gt 0 ]]; then
|
|
15
|
-
echo "[code-archaeology-sync] $sync_gap commit(s) behind origin/main — pulling..."
|
|
16
|
-
git pull origin main >/dev/null 2>&1 || echo "[code-archaeology-sync] WARN: git pull failed, continuing with local code"
|
|
17
|
-
fi
|
|
18
|
-
fi
|
|
19
|
-
fi
|
|
20
|
-
|
|
21
8
|
ARCHAEOLOGY_DIR="$REPO_ROOT/.archaeology"
|
|
22
9
|
SESSION_FILE="$ARCHAEOLOGY_DIR/session.json"
|
|
23
10
|
|
package/hooks/hermes/setup.sh
CHANGED
|
@@ -5,19 +5,6 @@ set -euo pipefail
|
|
|
5
5
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
6
6
|
REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
7
7
|
|
|
8
|
-
# ── Auto-sync: pull latest plugin code before setup ──
|
|
9
|
-
if [[ -z "${CODE_ARCHAEOLOGY_NO_SYNC:-}" ]]; then
|
|
10
|
-
cd "$REPO_ROOT" || exit 1
|
|
11
|
-
# Only sync if we have a valid git remote (skip temp/policy-test repos)
|
|
12
|
-
if git rev-parse --verify HEAD >/dev/null 2>&1 && git remote get-url origin >/dev/null 2>&1; then
|
|
13
|
-
sync_gap=$(git log --oneline HEAD..origin/main 2>/dev/null | wc -l | tr -d ' ')
|
|
14
|
-
if [[ "$sync_gap" =~ ^[0-9]+$ && "$sync_gap" -gt 0 ]]; then
|
|
15
|
-
echo "[code-archaeology-sync] $sync_gap commit(s) behind origin/main — pulling..."
|
|
16
|
-
git pull origin main >/dev/null 2>&1 || echo "[code-archaeology-sync] WARN: git pull failed, continuing with local code"
|
|
17
|
-
fi
|
|
18
|
-
fi
|
|
19
|
-
fi
|
|
20
|
-
|
|
21
8
|
ARCHAEOLOGY_DIR="$REPO_ROOT/.archaeology"
|
|
22
9
|
|
|
23
10
|
mkdir -p "$ARCHAEOLOGY_DIR"
|
package/hooks/opencode/init.sh
CHANGED
|
@@ -19,18 +19,6 @@ REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null) || {
|
|
|
19
19
|
}
|
|
20
20
|
cd "$REPO_ROOT"
|
|
21
21
|
|
|
22
|
-
# ── Auto-sync: pull latest plugin code before init ──
|
|
23
|
-
if [[ -z "${CODE_ARCHAEOLOGY_NO_SYNC:-}" ]]; then
|
|
24
|
-
# Only sync if we have a valid git remote (skip temp/policy-test repos)
|
|
25
|
-
if git rev-parse --verify HEAD >/dev/null 2>&1 && git remote get-url origin >/dev/null 2>&1; then
|
|
26
|
-
sync_gap=$(git log --oneline HEAD..origin/main 2>/dev/null | wc -l | tr -d ' ')
|
|
27
|
-
if [[ "$sync_gap" =~ ^[0-9]+$ && "$sync_gap" -gt 0 ]]; then
|
|
28
|
-
echo "[code-archaeology-sync] $sync_gap commit(s) behind origin/main — pulling..."
|
|
29
|
-
git pull origin main >/dev/null 2>&1 || echo "[code-archaeology-sync] WARN: git pull failed, continuing with local code"
|
|
30
|
-
fi
|
|
31
|
-
fi
|
|
32
|
-
fi
|
|
33
|
-
|
|
34
22
|
echo "Code Archaeology v${PLUGIN_VERSION} initializing..."
|
|
35
23
|
|
|
36
24
|
if ! command -v jq >/dev/null 2>&1; then
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-code-archaeology",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "Excavate, catalog, and restore a codebase by removing accumulated sediment—dead code, legacy fallbacks, circular dependencies, weak types, and defensive programming slop.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|