devzone 0.52.0 → 0.54.0
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/devzone +28 -12
- package/.devcontainer/ia/host-check.message +12 -0
- package/.devcontainer/ia/host-check.sh +173 -0
- package/.devcontainer/ia/host-models.sh +98 -11
- package/README.md +3 -1
- package/package.json +1 -1
package/.devcontainer/devzone
CHANGED
|
@@ -54,6 +54,10 @@ fi
|
|
|
54
54
|
# shellcheck source=SCRIPTDIR/ia/host-models.sh
|
|
55
55
|
# shellcheck disable=SC1091
|
|
56
56
|
. "$ICI/ia/host-models.sh"
|
|
57
|
+
# Update check and report for the host (Ollama) models (#668).
|
|
58
|
+
# shellcheck source=SCRIPTDIR/ia/host-check.sh
|
|
59
|
+
# shellcheck disable=SC1091
|
|
60
|
+
. "$ICI/ia/host-check.sh"
|
|
57
61
|
|
|
58
62
|
# Assistants IA, versions figées : mettre à jour ici, puis devzone apply
|
|
59
63
|
# (ou Rebuild Container). Une ligne par paquet, séparées par une ligne qui ne
|
|
@@ -1532,18 +1536,30 @@ case "${1:-}" in
|
|
|
1532
1536
|
bash "$ICI/agent.sh" "${@:2}"
|
|
1533
1537
|
;;
|
|
1534
1538
|
ia)
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1539
|
+
case "${2:-}" in
|
|
1540
|
+
check)
|
|
1541
|
+
# Read-only: update state of each detected host model (#668).
|
|
1542
|
+
check
|
|
1543
|
+
;;
|
|
1544
|
+
rapport)
|
|
1545
|
+
# Read-only: sizes, update state, measurements, chosen model (#668).
|
|
1546
|
+
rapport
|
|
1547
|
+
;;
|
|
1548
|
+
*)
|
|
1549
|
+
# Read-only: lists the host (Ollama) models detected and the default model.
|
|
1550
|
+
liste="$(modeles)"
|
|
1551
|
+
def="$(premier)"
|
|
1552
|
+
if [ -z "$liste" ]; then
|
|
1553
|
+
echo "devzone : aucun modèle Ollama détecté sur ${URL} (répondez sur /api/tags)"
|
|
1554
|
+
else
|
|
1555
|
+
echo "devzone : modèles détectés sur l'hôte (Ollama) :"
|
|
1556
|
+
while IFS= read -r m; do
|
|
1557
|
+
[ -n "$m" ] && printf ' %s\n' "$m"
|
|
1558
|
+
done <<<"$liste"
|
|
1559
|
+
echo "modèle par défaut : ${def:-aucun}"
|
|
1560
|
+
fi
|
|
1561
|
+
;;
|
|
1562
|
+
esac
|
|
1547
1563
|
;;
|
|
1548
1564
|
ticket) bash "$ICI/ticket.sh" "${@:2}" ;;
|
|
1549
1565
|
build)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
MSG_TITRE="modèles détectés sur l'hôte (Ollama) :"
|
|
2
|
+
MSG_AUCUN="devzone : aucun modèle Ollama détecté sur {url} (répondez sur /api/tags)"
|
|
3
|
+
MSG_TAILLE="taille"
|
|
4
|
+
MSG_A_JOUR="à jour"
|
|
5
|
+
MSG_MAJ="mise à jour disponible"
|
|
6
|
+
MSG_NON="non vérifiable"
|
|
7
|
+
MSG_PULL="sur l'hôte : ollama pull {modele}"
|
|
8
|
+
MSG_MESURE="mesure : reussite {reussite}, tok_s {tok_s}"
|
|
9
|
+
MSG_RETENU="modèle retenu : {modele} ({raison})"
|
|
10
|
+
MSG_RAISON_VAR="variable DEVZONE_HOST_MODEL"
|
|
11
|
+
MSG_RAISON_MESURE="mesure"
|
|
12
|
+
MSG_RAISON_REGLE="règle"
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Update check and report for the host (Ollama) models (#668).
|
|
3
|
+
# host-check.sh check per detected model: up to date, update available,
|
|
4
|
+
# or not verifiable; never downloads anything
|
|
5
|
+
# host-check.sh rapport sizes, update state, measurements and the chosen
|
|
6
|
+
# default model with its reason
|
|
7
|
+
# The registry manifest digest is compared with the local /api/tags digest: one
|
|
8
|
+
# GET per model, no download, no "ollama pull" executed (the command is only
|
|
9
|
+
# printed for the host). The registry is DEVZONE_OLLAMA_REGISTRY, else
|
|
10
|
+
# https://registry.ollama.ai.
|
|
11
|
+
# bash 3.2 (macOS). Code and comments in English; the user messages are French
|
|
12
|
+
# and live in host-check.message (not listed in .english).
|
|
13
|
+
set -euo pipefail
|
|
14
|
+
|
|
15
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
16
|
+
# shellcheck source=SCRIPTDIR/host-models.sh
|
|
17
|
+
# shellcheck disable=SC1091
|
|
18
|
+
. "$SCRIPT_DIR/host-models.sh"
|
|
19
|
+
|
|
20
|
+
REG="${DEVZONE_OLLAMA_REGISTRY:-https://registry.ollama.ai}"
|
|
21
|
+
REG="${REG%/}"
|
|
22
|
+
MESSAGE_FILE="$SCRIPT_DIR/host-check.message"
|
|
23
|
+
|
|
24
|
+
# English fallbacks, overridden by the French message file.
|
|
25
|
+
MSG_TITRE="host (Ollama) models detected:"
|
|
26
|
+
MSG_AUCUN="devzone: no Ollama model detected on {url} (answer on /api/tags)"
|
|
27
|
+
MSG_TAILLE="size"
|
|
28
|
+
MSG_A_JOUR="up to date"
|
|
29
|
+
MSG_MAJ="update available"
|
|
30
|
+
MSG_NON="not verifiable"
|
|
31
|
+
MSG_PULL="on the host: ollama pull {modele}"
|
|
32
|
+
MSG_MESURE="measurement reussite {reussite}, tok_s {tok_s}"
|
|
33
|
+
MSG_RETENU="chosen model: {modele} ({raison})"
|
|
34
|
+
MSG_RAISON_VAR="DEVZONE_HOST_MODEL"
|
|
35
|
+
MSG_RAISON_MESURE="measurement"
|
|
36
|
+
MSG_RAISON_REGLE="rule"
|
|
37
|
+
|
|
38
|
+
if [ -r "$MESSAGE_FILE" ]; then
|
|
39
|
+
# shellcheck source=/dev/null
|
|
40
|
+
. "$MESSAGE_FILE"
|
|
41
|
+
fi
|
|
42
|
+
|
|
43
|
+
# Lowercase hex sha256 of a file (sha256sum on Linux, shasum on macOS).
|
|
44
|
+
sha256_fichier() {
|
|
45
|
+
if command -v sha256sum >/dev/null 2>&1; then
|
|
46
|
+
sha256sum "$1" | cut -d' ' -f1
|
|
47
|
+
else
|
|
48
|
+
shasum -a 256 "$1" | cut -d' ' -f1
|
|
49
|
+
fi
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
# Prints the update state of one model: MSG_A_JOUR, MSG_MAJ or MSG_NON.
|
|
53
|
+
# A name with a slash (hf.co/...), a 404, an unreachable registry or a missing
|
|
54
|
+
# digest is not verifiable.
|
|
55
|
+
etat_modele() {
|
|
56
|
+
local nom="$1" digest="$2" court tag somme tmp
|
|
57
|
+
case "$nom" in
|
|
58
|
+
*/*) printf '%s\n' "$MSG_NON"; return 0 ;;
|
|
59
|
+
esac
|
|
60
|
+
case "$nom" in
|
|
61
|
+
*:*) court="${nom%:*}"; tag="${nom##*:}" ;;
|
|
62
|
+
*) court="$nom"; tag="latest" ;;
|
|
63
|
+
esac
|
|
64
|
+
tmp="$(mktemp "${TMPDIR:-/tmp}/devzone-manifest.XXXXXX")"
|
|
65
|
+
if ! curl -fsS --max-time 5 \
|
|
66
|
+
-H 'Accept: application/vnd.docker.distribution.manifest.v2+json' \
|
|
67
|
+
-o "$tmp" "${REG}/v2/library/${court}/manifests/${tag}" 2>/dev/null; then
|
|
68
|
+
rm -f "$tmp"
|
|
69
|
+
printf '%s\n' "$MSG_NON"
|
|
70
|
+
return 0
|
|
71
|
+
fi
|
|
72
|
+
somme="$(sha256_fichier "$tmp")"
|
|
73
|
+
rm -f "$tmp"
|
|
74
|
+
if [ -z "$digest" ]; then
|
|
75
|
+
printf '%s\n' "$MSG_NON"
|
|
76
|
+
return 0
|
|
77
|
+
fi
|
|
78
|
+
if [ "$(printf '%s' "$somme" | tr '[:upper:]' '[:lower:]')" = \
|
|
79
|
+
"$(printf '%s' "${digest#sha256:}" | tr '[:upper:]' '[:lower:]')" ]; then
|
|
80
|
+
printf '%s\n' "$MSG_A_JOUR"
|
|
81
|
+
else
|
|
82
|
+
printf '%s\n' "$MSG_MAJ"
|
|
83
|
+
fi
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
# Prints "reussite tok_s" for a model, empty when it has no measurement.
|
|
87
|
+
mesure_pour() {
|
|
88
|
+
local nom="$1" data
|
|
89
|
+
[ -f "$MESURES" ] || return 0
|
|
90
|
+
data="$(cat "$MESURES" 2>/dev/null)" || return 0
|
|
91
|
+
[ -n "$data" ] || return 0
|
|
92
|
+
printf '%s' "$data" | jq -r --arg nom "$nom" '
|
|
93
|
+
.[$nom] | if . == null then empty else "\(.reussite // 0) \(.tok_s // 0)" end
|
|
94
|
+
' 2>/dev/null || return 0
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
# Why the model is chosen: variable, measurement or rule.
|
|
98
|
+
raison_choix() {
|
|
99
|
+
local liste="$1" m
|
|
100
|
+
if [ -n "${DEVZONE_HOST_MODEL:-}" ]; then
|
|
101
|
+
printf '%s\n' "$MSG_RAISON_VAR"
|
|
102
|
+
return 0
|
|
103
|
+
fi
|
|
104
|
+
m="$(mesure_choix "$liste")" || true
|
|
105
|
+
if [ -n "$m" ]; then
|
|
106
|
+
printf '%s\n' "$MSG_RAISON_MESURE"
|
|
107
|
+
else
|
|
108
|
+
printf '%s\n' "$MSG_RAISON_REGLE"
|
|
109
|
+
fi
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
# Update check of every detected model. Nothing is downloaded, nothing changes.
|
|
113
|
+
check() {
|
|
114
|
+
local data ligne nom taille digest etat
|
|
115
|
+
data="$(infos)" || true
|
|
116
|
+
if [ -z "$data" ]; then
|
|
117
|
+
printf '%s\n' "${MSG_AUCUN//\{url\}/$URL}"
|
|
118
|
+
return 0
|
|
119
|
+
fi
|
|
120
|
+
printf '%s\n' "$data" | while IFS=$'\t' read -r nom taille digest; do
|
|
121
|
+
[ -n "$nom" ] || continue
|
|
122
|
+
etat="$(etat_modele "$nom" "$digest")"
|
|
123
|
+
printf '%s : %s\n' "$nom" "$etat"
|
|
124
|
+
if [ "$etat" = "$MSG_MAJ" ]; then
|
|
125
|
+
printf '%s\n' "${MSG_PULL//\{modele\}/$nom}"
|
|
126
|
+
fi
|
|
127
|
+
done
|
|
128
|
+
return 0
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
# Report: sizes, update state, measurements and the chosen model with its
|
|
132
|
+
# reason. Proposes, changes nothing.
|
|
133
|
+
rapport() {
|
|
134
|
+
local data liste ligne nom taille digest etat mes r t def raison
|
|
135
|
+
data="$(infos)" || true
|
|
136
|
+
if [ -z "$data" ]; then
|
|
137
|
+
printf '%s\n' "${MSG_AUCUN//\{url\}/$URL}"
|
|
138
|
+
return 0
|
|
139
|
+
fi
|
|
140
|
+
liste="$(printf '%s\n' "$data" | cut -f1)"
|
|
141
|
+
printf '%s\n' "$MSG_TITRE"
|
|
142
|
+
printf '%s\n' "$data" | while IFS=$'\t' read -r nom taille digest; do
|
|
143
|
+
[ -n "$nom" ] || continue
|
|
144
|
+
etat="$(etat_modele "$nom" "$digest")"
|
|
145
|
+
printf ' %s : %s ; %s %s\n' "$nom" "$etat" "$MSG_TAILLE" "$taille"
|
|
146
|
+
mes="$(mesure_pour "$nom")"
|
|
147
|
+
if [ -n "$mes" ]; then
|
|
148
|
+
r="${mes%% *}"
|
|
149
|
+
t="${mes#* }"
|
|
150
|
+
ligne="${MSG_MESURE//\{reussite\}/$r}"
|
|
151
|
+
ligne="${ligne//\{tok_s\}/$t}"
|
|
152
|
+
printf ' %s\n' "$ligne"
|
|
153
|
+
fi
|
|
154
|
+
if [ "$etat" = "$MSG_MAJ" ]; then
|
|
155
|
+
printf '%s\n' "${MSG_PULL//\{modele\}/$nom}"
|
|
156
|
+
fi
|
|
157
|
+
done
|
|
158
|
+
def="$(choix "$liste")" || true
|
|
159
|
+
raison="$(raison_choix "$liste")" || true
|
|
160
|
+
ligne="${MSG_RETENU//\{modele\}/${def:-}}"
|
|
161
|
+
ligne="${ligne//\{raison\}/$raison}"
|
|
162
|
+
printf '%s\n' "$ligne"
|
|
163
|
+
return 0
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
# When run directly (not sourced): dispatch the subcommands.
|
|
167
|
+
if [ "${0##*/}" = "host-check.sh" ]; then
|
|
168
|
+
case "${1:-}" in
|
|
169
|
+
check) check ;;
|
|
170
|
+
rapport) rapport ;;
|
|
171
|
+
*) check ;;
|
|
172
|
+
esac
|
|
173
|
+
fi
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# Detection of the models served by Ollama on the host (#665).
|
|
2
|
+
# Detection of the models served by Ollama on the host (#665, #668).
|
|
3
3
|
# devzone hosts no model: models live on the host (Ollama) and are detected here.
|
|
4
4
|
# host-models.sh list the detected model names, one per line
|
|
5
|
-
# host-models.sh first the model to use
|
|
5
|
+
# host-models.sh first the model to use: DEVZONE_HOST_MODEL, else the best
|
|
6
|
+
# measured model, else a deterministic rule
|
|
6
7
|
# host-models.sh set merge the devzone-host provider into ~/.config/opencode/config.json
|
|
7
8
|
# host-models.sh unset remove the devzone-host provider from that file
|
|
9
|
+
# host-models.sh check update check of each model (delegates to host-check.sh)
|
|
10
|
+
# host-models.sh rapport report (delegates to host-check.sh)
|
|
8
11
|
# Default URL: http://host.docker.internal:11434, overridable with DEVZONE_OLLAMA_URL.
|
|
12
|
+
# Measurements: DEVZONE_IA_MESURES, else ~/.config/devzone/ia-mesures.json
|
|
13
|
+
# ({"<model>": {"reussite": 0..1, "tok_s": n, "date": "..."}}).
|
|
9
14
|
# Short timeout; exits 0 and writes nothing when Ollama does not answer.
|
|
10
15
|
# bash 3.2 (macOS). Code and comments in English.
|
|
11
16
|
set -euo pipefail
|
|
@@ -13,6 +18,7 @@ set -euo pipefail
|
|
|
13
18
|
URL="${DEVZONE_OLLAMA_URL:-http://host.docker.internal:11434}"
|
|
14
19
|
URL="${URL%/}"
|
|
15
20
|
FILE="$HOME/.config/opencode/config.json"
|
|
21
|
+
MESURES="${DEVZONE_IA_MESURES:-$HOME/.config/devzone/ia-mesures.json}"
|
|
16
22
|
|
|
17
23
|
# True when a model is an embedding model (Ollama details.type, or a name
|
|
18
24
|
# containing "embed", case-insensitive).
|
|
@@ -25,11 +31,16 @@ is_embedding() {
|
|
|
25
31
|
esac
|
|
26
32
|
}
|
|
27
33
|
|
|
34
|
+
# Raw /api/tags payload, empty when Ollama does not answer.
|
|
35
|
+
json_tags() {
|
|
36
|
+
curl -fsS --max-time 3 "${URL}/api/tags" 2>/dev/null || return 0
|
|
37
|
+
}
|
|
38
|
+
|
|
28
39
|
# Prints the detected model names, one per line. Exits 0 and prints nothing
|
|
29
40
|
# when Ollama does not answer or the payload is not usable.
|
|
30
41
|
modeles() {
|
|
31
42
|
local data
|
|
32
|
-
data="$(
|
|
43
|
+
data="$(json_tags)" || return 0
|
|
33
44
|
[ -n "$data" ] || return 0
|
|
34
45
|
# Ignore embedding models (Ollama details.type, or a name containing "embed").
|
|
35
46
|
printf '%s' "$data" | jq -r '.models[] | select((.details.type // "") != "embedding") | .name' 2>/dev/null |
|
|
@@ -39,18 +50,91 @@ modeles() {
|
|
|
39
50
|
return 0
|
|
40
51
|
}
|
|
41
52
|
|
|
42
|
-
#
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
53
|
+
# Prints the detected models as "name<TAB>size" (bytes), one per line.
|
|
54
|
+
tailles() {
|
|
55
|
+
local data line name
|
|
56
|
+
data="$(json_tags)" || return 0
|
|
57
|
+
[ -n "$data" ] || return 0
|
|
58
|
+
printf '%s' "$data" | jq -r '.models[] | select((.details.type // "") != "embedding") | "\(.name)\t\(.size // 0)"' 2>/dev/null |
|
|
59
|
+
while IFS= read -r line; do
|
|
60
|
+
name="${line%%$'\t'*}"
|
|
61
|
+
is_embedding "$name" || printf '%s\n' "$line"
|
|
62
|
+
done || true
|
|
63
|
+
return 0
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
# Prints the detected models as "name<TAB>size<TAB>digest", one per line.
|
|
67
|
+
infos() {
|
|
68
|
+
local data line name
|
|
69
|
+
data="$(json_tags)" || return 0
|
|
70
|
+
[ -n "$data" ] || return 0
|
|
71
|
+
printf '%s' "$data" | jq -r '.models[] | select((.details.type // "") != "embedding") | "\(.name)\t\(.size // 0)\t\(.digest // "")"' 2>/dev/null |
|
|
72
|
+
while IFS= read -r line; do
|
|
73
|
+
name="${line%%$'\t'*}"
|
|
74
|
+
is_embedding "$name" || printf '%s\n' "$line"
|
|
75
|
+
done || true
|
|
76
|
+
return 0
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
# Best measured model among the detected names ($1, one per line): highest
|
|
80
|
+
# reussite, then highest tok_s. Prints nothing when the file is absent, invalid
|
|
81
|
+
# or no detected model is measured.
|
|
82
|
+
mesure_choix() {
|
|
83
|
+
local liste="$1" data
|
|
84
|
+
[ -f "$MESURES" ] || return 0
|
|
85
|
+
data="$(cat "$MESURES" 2>/dev/null)" || return 0
|
|
86
|
+
[ -n "$data" ] || return 0
|
|
87
|
+
printf '%s' "$data" | jq -r --arg liste "$liste" '
|
|
88
|
+
($liste | split("\n") | map(select(length > 0))) as $d
|
|
89
|
+
| [to_entries[] | select(.key as $k | $d | index($k))]
|
|
90
|
+
| sort_by([-(.value.reussite // 0), -(.value.tok_s // 0)])
|
|
91
|
+
| .[0].key // empty
|
|
92
|
+
' 2>/dev/null || return 0
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
# Deterministic fallback: a name containing "coder" first, then the smallest
|
|
96
|
+
# size, then the name order.
|
|
97
|
+
regle_choix() {
|
|
98
|
+
tailles | LC_ALL=C awk -F'\t' '
|
|
99
|
+
{
|
|
100
|
+
low = tolower($1)
|
|
101
|
+
coder = (index(low, "coder") > 0) ? 0 : 1
|
|
102
|
+
size = ($2 + 0)
|
|
103
|
+
if (best == "" || coder < bc || (coder == bc && size < bs) || (coder == bc && size == bs && $1 < bn)) {
|
|
104
|
+
best = $1
|
|
105
|
+
bc = coder
|
|
106
|
+
bs = size
|
|
107
|
+
bn = $1
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
END { if (best != "") print best }
|
|
111
|
+
'
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
# The model to use among the detected names: DEVZONE_HOST_MODEL when set, else
|
|
115
|
+
# the best measured model, else the deterministic rule.
|
|
116
|
+
choix() {
|
|
117
|
+
local liste="$1" nom mesure
|
|
47
118
|
[ -n "$liste" ] || return 0
|
|
119
|
+
nom="${DEVZONE_HOST_MODEL:-}"
|
|
48
120
|
if [ -n "$nom" ]; then
|
|
49
121
|
printf '%s\n' "$nom"
|
|
50
|
-
|
|
51
|
-
printf '%s\n' "${liste%%$'\n'*}"
|
|
122
|
+
return 0
|
|
52
123
|
fi
|
|
53
|
-
|
|
124
|
+
mesure="$(mesure_choix "$liste")" || true
|
|
125
|
+
if [ -n "$mesure" ]; then
|
|
126
|
+
printf '%s\n' "$mesure"
|
|
127
|
+
return 0
|
|
128
|
+
fi
|
|
129
|
+
regle_choix
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
# The model to use. Empty when Ollama did not answer or no model was detected.
|
|
133
|
+
premier() {
|
|
134
|
+
local liste
|
|
135
|
+
liste="$(modeles)" || true
|
|
136
|
+
[ -n "$liste" ] || return 0
|
|
137
|
+
choix "$liste"
|
|
54
138
|
}
|
|
55
139
|
|
|
56
140
|
# jq program $1 applied to the file (or {}), written back atomically.
|
|
@@ -108,6 +192,9 @@ if [ "${0##*/}" = "host-models.sh" ]; then
|
|
|
108
192
|
first) premier ;;
|
|
109
193
|
set) set_provider ;;
|
|
110
194
|
unset) unset_provider ;;
|
|
195
|
+
check | rapport)
|
|
196
|
+
exec bash "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/host-check.sh" "$@"
|
|
197
|
+
;;
|
|
111
198
|
*) modeles ;;
|
|
112
199
|
esac
|
|
113
200
|
fi
|
package/README.md
CHANGED
|
@@ -244,7 +244,9 @@ Dans le conteneur, le récapitulatif `devzone` signale une version publiée plus
|
|
|
244
244
|
|
|
245
245
|
**Mode à la création** : `--kubernetes` (workspace dans le cluster, refusé sans cluster) ou `--docker` (poste Docker, sans contrôle du cluster). Sans option, le mode suit le cluster (voir [Kubernetes ou Docker à la création](#kubernetes-ou-docker-à-la-création)).
|
|
246
246
|
|
|
247
|
-
**Module `ia`** : active Claude Code et opencode (versions figées), avec le garde-fou repowarden qui les arrête avant de modifier `main` ou `develop` ou de commiter sans `repowarden cc` (voir [manage/docs/reference.md](manage/docs/reference.md#garde-fou-des-assistants-ia)). Pour l'activer : `devzone enable ia`. Ils sont désinstallés quand le module est désactivé, mais tes connexions restent dans leurs volumes.
|
|
247
|
+
**Module `ia`** : active Claude Code et opencode (versions figées), avec le garde-fou repowarden qui les arrête avant de modifier `main` ou `develop` ou de commiter sans `repowarden cc` (voir [manage/docs/reference.md](manage/docs/reference.md#garde-fou-des-assistants-ia)). Pour l'activer : `devzone enable ia`. Ils sont désinstallés quand le module est désactivé, mais tes connexions restent dans leurs volumes. Le module pose aussi un garde-fou qui arrête les commandes `docker` des agents : devzone est Kubernetes d'abord, seuls les pods sont des conteneurs (`kubectl`, ou un pod jetable, à la place).
|
|
248
|
+
|
|
249
|
+
**Modèles de ton ordinateur** : devzone n'héberge aucun modèle. Si Ollama tourne sur ta machine, `devzone enable ia` détecte ses modèles et les branche à opencode (rien n'est installé ni téléchargé). `devzone ai` les liste avec le modèle par défaut, `devzone ai check` dit si chacun est à jour sans rien télécharger, et `devzone ai rapport` détaille le modèle retenu et pourquoi (la variable `DEVZONE_HOST_MODEL`, une mesure, ou la règle « un modèle de code d'abord, puis le plus petit »). Détails dans [manage/docs/reference.md](manage/docs/reference.md#configuration-dopencode).
|
|
248
250
|
|
|
249
251
|
**Module `kubernetes`** : active à chaque démarrage la connexion au cluster de l'hôte et l'installation de metrics-server sur les clusters locaux (pour voir le CPU et la RAM dans k9s). Pour l'activer : `devzone enable kubernetes`. Sans ce module, kubectl, helm, k9s et kind restent installés.
|
|
250
252
|
|