devzone 7.7.3 → 7.8.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/.devcontainer/skills/devzone/SKILL.md +1 -1
- package/bin/SHA256SUMS +6 -6
- package/bin/devzone-darwin-amd64 +0 -0
- package/bin/devzone-darwin-arm64 +0 -0
- package/bin/devzone-linux-amd64 +0 -0
- package/bin/devzone-linux-arm64 +0 -0
- package/bin/devzone-windows-amd64.exe +0 -0
- package/bin/devzone-windows-arm64.exe +0 -0
- package/package.json +1 -1
- package/.devcontainer/agent-rights.sh +0 -89
|
@@ -51,7 +51,7 @@ The log is `workspace/.agents/<folder>.log`. `--auto` avoids waiting for a permi
|
|
|
51
51
|
|
|
52
52
|
With `ai` active, the repowarden guard is plugged in for Claude Code and opencode: the agent is stopped before modifying `main`/`develop`, committing without `repowarden cc` or bypassing the hooks. `repowarden cc -m "…"` to commit.
|
|
53
53
|
|
|
54
|
-
Protected rights files (never written by an agent, fixed list, no variable changes it): `.devcontainer/opencode/agent.json`, `.devcontainer/opencode.jsonc`, `.repowarden.conf`,
|
|
54
|
+
Protected rights files (never written by an agent, fixed list, no variable changes it): `.devcontainer/opencode/agent.json`, `.devcontainer/opencode.jsonc`, `.repowarden.conf`, `internal/domain/agent/rights.go`. An agent that touches them is refused and the change is reverted in the tree.
|
|
55
55
|
|
|
56
56
|
## Kubernetes only
|
|
57
57
|
|
package/bin/SHA256SUMS
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
753a84fb6fe4de70e0725dd76b28c753f6a9db8d43edbc642ec26a4d186fe1c1 devzone-linux-amd64
|
|
2
|
+
6c9020da5141b6683fc435a480a1b9bca2a7cfb2183e48ff93e08b04948aefaf devzone-linux-arm64
|
|
3
|
+
17585aeca54d1f2f6b4e4adfd94d0aabf7bd598a00798da41655916025b6cc4d devzone-darwin-amd64
|
|
4
|
+
24da512cdf4bd4448c13e06cacef6c0f9b7f576187de786b71f10257fedf06bf devzone-darwin-arm64
|
|
5
|
+
d777b634e2c3157461a0ea1b0fa88642880da93651619421781102382815ae74 devzone-windows-amd64.exe
|
|
6
|
+
f9b8bb3fbe9653e5b3f0acf0df25cd60692bde0cbc6577960fd5629cd71f95a1 devzone-windows-arm64.exe
|
package/bin/devzone-darwin-amd64
CHANGED
|
Binary file
|
package/bin/devzone-darwin-arm64
CHANGED
|
Binary file
|
package/bin/devzone-linux-amd64
CHANGED
|
Binary file
|
package/bin/devzone-linux-arm64
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# Protects the rights files of the agents during a devzone agent session (#361).
|
|
3
|
-
# Library sourced by agent.sh: no command is launched here.
|
|
4
|
-
|
|
5
|
-
# Rights files, paths relative to the root of the working folder. Fixed list: no
|
|
6
|
-
# environment variable changes it, and an agent cannot add to it.
|
|
7
|
-
# agent-rights.sh is in it, otherwise an agent could empty the list.
|
|
8
|
-
RIGHTS_FILES=(
|
|
9
|
-
.devcontainer/opencode/agent.json
|
|
10
|
-
.devcontainer/opencode.jsonc
|
|
11
|
-
.repowarden.conf
|
|
12
|
-
.devcontainer/agent-rights.sh
|
|
13
|
-
)
|
|
14
|
-
|
|
15
|
-
# Snapshot directory of a project's rights files, in the agent state.
|
|
16
|
-
rights_dir() {
|
|
17
|
-
echo "$AGENT_STATE/droits-$(basename "$1")"
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
# At launch: copies each rights file (or notes its absence) and the starting HEAD,
|
|
21
|
-
# then clears the alert of the previous session on this project.
|
|
22
|
-
rights_snapshot() {
|
|
23
|
-
local d f
|
|
24
|
-
d="$(rights_dir "$1")"
|
|
25
|
-
rm -rf "$d" "$d.alerte"
|
|
26
|
-
mkdir -p "$d/fichiers"
|
|
27
|
-
: >"$d/absents"
|
|
28
|
-
for f in "${RIGHTS_FILES[@]}"; do
|
|
29
|
-
if [ -f "$1/$f" ]; then
|
|
30
|
-
mkdir -p "$d/fichiers/$(dirname "$f")"
|
|
31
|
-
cp -p "$1/$f" "$d/fichiers/$f"
|
|
32
|
-
else
|
|
33
|
-
echo "$f" >>"$d/absents"
|
|
34
|
-
fi
|
|
35
|
-
done
|
|
36
|
-
git -C "$1" rev-parse HEAD >"$d/head" 2>/dev/null || : >"$d/head"
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
# Restores a rights file to its snapshot (removed when it did not exist).
|
|
40
|
-
rights_restore() {
|
|
41
|
-
local d f
|
|
42
|
-
d="$(rights_dir "$1")"
|
|
43
|
-
f="$2"
|
|
44
|
-
if grep -qxF "$f" "$d/absents"; then
|
|
45
|
-
rm -f "$1/$f"
|
|
46
|
-
else
|
|
47
|
-
mkdir -p "$(dirname "$1/$f")"
|
|
48
|
-
cp -p "$d/fichiers/$f" "$1/$f"
|
|
49
|
-
fi
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
# After each opencode session: restores the modified files in the tree, reports in
|
|
53
|
-
# the journal any commit that touches them (history is never rewritten), raises the alert.
|
|
54
|
-
rights_verify() {
|
|
55
|
-
local d f depart sha message
|
|
56
|
-
d="$(rights_dir "$1")"
|
|
57
|
-
[ -d "$d" ] || return 0
|
|
58
|
-
depart="$(cat "$d/head" 2>/dev/null || true)"
|
|
59
|
-
for f in "${RIGHTS_FILES[@]}"; do
|
|
60
|
-
message=""
|
|
61
|
-
if grep -qxF "$f" "$d/absents"; then
|
|
62
|
-
if [ -e "$1/$f" ]; then message="change reverted"; fi
|
|
63
|
-
elif ! cmp -s "$d/fichiers/$f" "$1/$f"; then
|
|
64
|
-
message="change reverted"
|
|
65
|
-
fi
|
|
66
|
-
sha=""
|
|
67
|
-
if [ -n "$depart" ]; then
|
|
68
|
-
if [ -n "$(git -C "$1" diff --name-only "$depart" HEAD -- "$f" 2>/dev/null)" ]; then
|
|
69
|
-
sha="$(git -C "$1" log -1 --format=%h "$depart..HEAD" -- "$f" 2>/dev/null || true)"
|
|
70
|
-
message="change reverted in the tree, committed in ${sha:-HEAD}: remove this commit before any push"
|
|
71
|
-
fi
|
|
72
|
-
fi
|
|
73
|
-
[ -n "$message" ] || continue
|
|
74
|
-
rights_restore "$1" "$f"
|
|
75
|
-
echo "=== ⚠ rights changed: $f : $message" >>"$AGENT_JOURNAL"
|
|
76
|
-
echo "$f" >>"$d.alerte"
|
|
77
|
-
done
|
|
78
|
-
return 0
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
# For devzone agent state: one line per project whose rights were changed.
|
|
82
|
-
rights_alerts() {
|
|
83
|
-
local f
|
|
84
|
-
for f in "$AGENT_STATE"/droits-*.alerte; do
|
|
85
|
-
[ -e "$f" ] || continue
|
|
86
|
-
f="${f##*/droits-}"
|
|
87
|
-
echo " ⚠ rights changed (${f%.alerte}): see the journal"
|
|
88
|
-
done
|
|
89
|
-
}
|