devzone 0.50.0 → 0.50.2

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.
@@ -79,11 +79,38 @@ agent_pod_wait() {
79
79
 
80
80
  # --- Keep the log of the session ---
81
81
 
82
+ # Init containers run before the agent: their log goes first, so a refused
83
+ # session shows the guard message. A failing `kubectl logs -c` is not fatal.
82
84
  agent_pod_fetch_logs() {
83
85
  local pod_name="$1" journal_file="$2"
86
+ local init_name
87
+ while IFS= read -r init_name; do
88
+ [ -n "$init_name" ] || continue
89
+ echo "=== init container ${init_name} ===" >>"$journal_file"
90
+ kubectl logs "$pod_name" -c "$init_name" >>"$journal_file" 2>/dev/null || true
91
+ done <<EOF
92
+ $(kubectl get pod "$pod_name" -o jsonpath='{.spec.initContainers[*].name}' 2>/dev/null || true)
93
+ EOF
84
94
  kubectl logs "$pod_name" >>"$journal_file" 2>/dev/null || true
85
95
  }
86
96
 
97
+ # Names the init container that stopped the pod on stderr: the launcher already
98
+ # shows the end of the log, which contains the message of the guard. Only the
99
+ # init containers that actually failed (exit code different from 0) are named.
100
+ agent_pod_init_failure() {
101
+ local pod_name="$1"
102
+ local cause name code
103
+ cause="$(kubectl get pod "$pod_name" -o jsonpath='{range .status.initContainerStatuses[?(@.state.terminated.exitCode)]}{.name}{" "}{.state.terminated.exitCode}{"\n"}{end}' 2>/dev/null)" || true
104
+ [ -n "$cause" ] || return 0
105
+ while IFS=' ' read -r name code; do
106
+ [ -n "$name" ] || continue
107
+ [ "${code:-0}" != 0 ] || continue
108
+ echo "devzone agent --pod : init container ${name} failed (exit ${code})" >&2
109
+ done <<EOF
110
+ ${cause}
111
+ EOF
112
+ }
113
+
87
114
  # Last lines of the log on stderr: the cause of a failure is there.
88
115
  agent_pod_show_tail() {
89
116
  local journal_file="$1"
@@ -198,6 +225,9 @@ agent_pod_lancer() {
198
225
  phase="$(agent_pod_wait "$pod_name")" || rc=$?
199
226
  agent_pod_fetch_logs "$pod_name" "$journal_file"
200
227
  echo "=== end of agent session in pod (phase: ${phase:-Unknown})" >>"$journal_file"
228
+ if [ "$rc" -ne 0 ] || [ "$phase" = "Failed" ]; then
229
+ agent_pod_init_failure "$pod_name"
230
+ fi
201
231
  agent_pod_show_tail "$journal_file"
202
232
 
203
233
  if [ "$rc" -ne 0 ]; then
@@ -26,8 +26,8 @@ RACINE="${DEVZONE_RACINE:-$(dirname "$ICI")}"
26
26
  . "$ICI/agent-workspace.sh"
27
27
  # shellcheck source=agent-local.sh disable=SC1091
28
28
  . "$ICI/agent-local.sh"
29
- FREE_MODELS=(big-pickle deepseek-v4.1-flash-free glm-5.3-flash-free nemotron-3.5-super-vl-free
30
- nemotron-3.5-lightning-free mimo-v2.6-flash-free beam-free flint-40b-free nemotron-3-ultra-free)
29
+ FREE_MODELS=(big-pickle deepseek-v4.1-flash-free hy4-flash-free nemotron-3.5-super-vl-free
30
+ nemotron-3.5-lightning-free mimo-v2.6-flash-free beam-free flint-40b-free longcat-2.5-free)
31
31
  # Session pod ephemere (#222)
32
32
  # shellcheck source=agent-pod.sh disable=SC1091
33
33
  . "$ICI/agent-pod.sh"
@@ -52,7 +52,7 @@ fi
52
52
  # change pas : deux montées simultanées (workflow versions) se fusionnent sans
53
53
  # conflit, git n'en signalant qu'entre lignes voisines modifiées.
54
54
  # Claude Code
55
- IA_CLAUDE=@anthropic-ai/claude-code@2.1.326
55
+ IA_CLAUDE=@anthropic-ai/claude-code@2.1.327
56
56
  # opencode
57
57
  IA_OPENCODE=opencode-ai@1.19.6
58
58
  IA_PAQUETS=("$IA_CLAUDE" "$IA_OPENCODE")
@@ -122,7 +122,7 @@
122
122
  },
123
123
  "agent": {
124
124
  "build": { "model": "opencode/big-pickle" },
125
- "plan": { "model": "opencode/glm-5.3-flash-free" },
125
+ "plan": { "model": "opencode/hy4-flash-free" },
126
126
  "general": { "model": "opencode/deepseek-v4.1-flash-free" },
127
127
  "explore": { "model": "opencode/nemotron-3.5-lightning-free" },
128
128
  "title": { "model": "opencode/mimo-v2.6-flash-free" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devzone",
3
- "version": "0.50.0",
3
+ "version": "0.50.2",
4
4
  "description": "Ton poste de développement Linux, prêt en une commande, identique sur Mac, Windows et Linux.",
5
5
  "license": "GPL-3.0-only",
6
6
  "repository": {