devzone 1.1.0 → 2.0.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.
Files changed (66) hide show
  1. package/.devcontainer/Dockerfile +4 -4
  2. package/.devcontainer/agent-local.sh +2 -2
  3. package/.devcontainer/{agent-modele.messages → agent-model.messages} +1 -1
  4. package/.devcontainer/{agent-modele.sh → agent-model.sh} +5 -5
  5. package/.devcontainer/{agent-droits.sh → agent-rights.sh} +2 -2
  6. package/.devcontainer/agent-session.sh +1 -1
  7. package/.devcontainer/{agent-etat-json.sh → agent-state-json.sh} +4 -4
  8. package/.devcontainer/agent.sh +7 -7
  9. package/.devcontainer/{ia/docker-garde.sh → ai/docker-guard.sh} +1 -1
  10. package/.devcontainer/{ia/plugins/devzone-garde-v2.js → ai/plugins/devzone-guard-v2.js} +4 -4
  11. package/.devcontainer/{ia/plugins/devzone-garde.js → ai/plugins/devzone-guard.js} +3 -3
  12. package/.devcontainer/argocd/argocd.sh +4 -4
  13. package/.devcontainer/argocd/{catalogue-argocd.sh → catalog-argocd.sh} +1 -1
  14. package/.devcontainer/argocd/services-hook.sh +5 -5
  15. package/.devcontainer/{catalogue → catalog}/app.sh +3 -3
  16. package/.devcontainer/{catalogue/catalogue-veilleur.sh → catalog/catalog-watcher.sh} +5 -5
  17. package/.devcontainer/{catalogue → catalog}/mysql/mysql.sh +6 -6
  18. package/.devcontainer/{catalogue.sh → catalog.sh} +10 -10
  19. package/.devcontainer/cluster.sh +7 -7
  20. package/.devcontainer/devcontainer.json +1 -1
  21. package/.devcontainer/devzone +41 -41
  22. package/.devcontainer/{docker-relais.sh → docker-relay.sh} +2 -2
  23. package/.devcontainer/gitlab/argocd.sh +2 -2
  24. package/.devcontainer/gitlab/gitlab.sh +3 -3
  25. package/.devcontainer/gitlab/installation.sh +2 -2
  26. package/.devcontainer/{kind-enveloppe.sh → kind-wrapper.sh} +5 -5
  27. package/.devcontainer/{kube-compte.sh → kube-account.sh} +3 -3
  28. package/.devcontainer/{kube-joignable.sh → kube-reachable.sh} +1 -1
  29. package/.devcontainer/{paquets.sh → packages.sh} +4 -4
  30. package/.devcontainer/ports-auto.sh +1 -1
  31. package/.devcontainer/ports.sh +3 -3
  32. package/.devcontainer/post-create.sh +2 -2
  33. package/.devcontainer/postgres/postgres.sh +2 -2
  34. package/.devcontainer/services-admin.sh +2 -2
  35. package/.devcontainer/skills/devzone/SKILL.md +1 -1
  36. package/.devcontainer/{demarrage.sh → startup.sh} +5 -5
  37. package/.devcontainer/{etat-json.sh → state-json.sh} +4 -4
  38. package/.devcontainer/{etat-verrou.sh → state-lock.sh} +1 -1
  39. package/.devcontainer/{etat.sh → state.sh} +2 -2
  40. package/.devcontainer/workspace-init.sh +1 -1
  41. package/Makefile +7 -7
  42. package/manage/devzone +3 -3
  43. package/manage/scripts/check-go-layout.sh +40 -0
  44. package/manage/scripts/check-names.sh +60 -0
  45. package/manage/scripts/devzone-create.sh +2 -2
  46. package/manage/scripts/devzone-manifest.sh +2 -2
  47. package/manage/scripts/docker-workstation.sh +2 -2
  48. package/manage/scripts/docker.sh +2 -2
  49. package/manage/scripts/{lancer.sh → launch.sh} +3 -3
  50. package/manage/scripts/{migrer-retour.sh → migrate-revert.sh} +1 -1
  51. package/manage/scripts/{migrer.sh → migrate.sh} +1 -1
  52. package/manage/workspace.sh +4 -4
  53. package/package.json +1 -1
  54. /package/.devcontainer/{agent-erreurs.sh → agent-errors.sh} +0 -0
  55. /package/.devcontainer/{ia/docker-garde.message → ai/docker-guard.message} +0 -0
  56. /package/.devcontainer/{ia → ai}/host-check.message +0 -0
  57. /package/.devcontainer/{ia → ai}/host-check.sh +0 -0
  58. /package/.devcontainer/{ia → ai}/host-models.sh +0 -0
  59. /package/.devcontainer/{catalogue → catalog}/mysql/app.conf +0 -0
  60. /package/.devcontainer/{catalogue/mysql/installer.sh → catalog/mysql/install.sh} +0 -0
  61. /package/.devcontainer/{catalogue → catalog}/mysql/volume.sh +0 -0
  62. /package/.devcontainer/{docker-sans-hote.sh → docker-without-host.sh} +0 -0
  63. /package/.devcontainer/{isolement.sh → isolation.sh} +0 -0
  64. /package/.devcontainer/{memoire.sh → memory.sh} +0 -0
  65. /package/.devcontainer/{etat-gitops.sh → state-gitops.sh} +0 -0
  66. /package/manage/scripts/{desinstaller.sh → uninstall.sh} +0 -0
@@ -108,10 +108,10 @@ RUN set -eu; \
108
108
  rm -rf "$tmp"
109
109
 
110
110
  # kind passe par une enveloppe (#291) : avec le Docker de l'hôte, un cluster
111
- # créé à la main doit être rendu joignable depuis le conteneur (kube-joignable.sh)
112
- COPY kube-joignable.sh /usr/local/lib/devzone/kube-joignable.sh
113
- COPY kind-enveloppe.sh /usr/local/bin/kind
114
- RUN chmod 0644 /usr/local/lib/devzone/kube-joignable.sh && chmod 0755 /usr/local/bin/kind
111
+ # créé à la main doit être rendu joignable depuis le conteneur (kube-reachable.sh)
112
+ COPY kube-reachable.sh /usr/local/lib/devzone/kube-reachable.sh
113
+ COPY kind-wrapper.sh /usr/local/bin/kind
114
+ RUN chmod 0644 /usr/local/lib/devzone/kube-reachable.sh && chmod 0755 /usr/local/bin/kind
115
115
 
116
116
  COPY --from=uv /uv /uvx /usr/local/bin/
117
117
 
@@ -9,9 +9,9 @@ LOCAL_HOTE_REEL=""
9
9
  # Internal (slash-free) name of the host model chosen for this attempt.
10
10
  LOCAL_HOTE_INTERNE=""
11
11
 
12
- # shellcheck source=SCRIPTDIR/ia/host-models.sh
12
+ # shellcheck source=SCRIPTDIR/ai/host-models.sh
13
13
  # shellcheck disable=SC1091
14
- . "$ICI/ia/host-models.sh"
14
+ . "$ICI/ai/host-models.sh"
15
15
 
16
16
  # Sanitizes a model name into an internal name: every character outside
17
17
  # [A-Za-z0-9._-] becomes '_'. Used for ecart-<name> files, the journal and
@@ -1,5 +1,5 @@
1
1
  # Messages of devzone agent --modele (#420), in French like the journal they go to.
2
- # Sourced by agent-modele.sh. Kept out of .english on purpose: the accents are
2
+ # Sourced by agent-model.sh. Kept out of .english on purpose: the accents are
3
3
  # the point. Each %s is replaced by a model name or a cause (printf formats).
4
4
  MSG_AUCUN_MODELE='aucun modèle gratuit disponible'
5
5
  MSG_CHOISI='=== modèle choisi : %s (demandé)'
@@ -4,8 +4,8 @@
4
4
  # Library sourced by agent.sh: no command is launched here.
5
5
 
6
6
  # Journal and refusal texts (French), printf formats.
7
- # shellcheck source=SCRIPTDIR/agent-modele.messages disable=SC1091
8
- . "$ICI/agent-modele.messages"
7
+ # shellcheck source=SCRIPTDIR/agent-model.messages disable=SC1091
8
+ . "$ICI/agent-model.messages"
9
9
 
10
10
  # Option --modele as typed (comma-separated list), empty when absent.
11
11
  MODELE_LISTE=""
@@ -16,7 +16,7 @@ ORDRE=()
16
16
 
17
17
  # Refuses a name missing from the free models: nothing is launched (code 2).
18
18
  refuse_modele() {
19
- # shellcheck disable=SC2059 # the format comes from agent-modele.messages
19
+ # shellcheck disable=SC2059 # the format comes from agent-model.messages
20
20
  printf "$MSG_INCONNU\n" "$1" >&2
21
21
  printf ' %s\n' "${FREE_MODELS[@]}" >&2
22
22
  exit 2
@@ -54,7 +54,7 @@ modele_demande_p() {
54
54
  # Journal line when requested model $1 starts; other models get no line.
55
55
  modele_demande_choisi() {
56
56
  if modele_demande_p "$1"; then
57
- # shellcheck disable=SC2059 # the format comes from agent-modele.messages
57
+ # shellcheck disable=SC2059 # the format comes from agent-model.messages
58
58
  printf "$MSG_CHOISI\n" "$1" >>"$2"
59
59
  fi
60
60
  }
@@ -63,7 +63,7 @@ modele_demande_choisi() {
63
63
  # journal $3. Other models keep their own lines.
64
64
  modele_demande_ecart() {
65
65
  if modele_demande_p "$1"; then
66
- # shellcheck disable=SC2059 # the format comes from agent-modele.messages
66
+ # shellcheck disable=SC2059 # the format comes from agent-model.messages
67
67
  printf "$MSG_ECARTE\n" "$1" "$2" >>"$3"
68
68
  fi
69
69
  }
@@ -4,12 +4,12 @@
4
4
 
5
5
  # Fichiers de droits, chemins relatifs à la racine du dossier de travail. Liste
6
6
  # fixe : aucune variable d'environnement ne la change, un agent peut en poser.
7
- # agent-droits.sh y figure, sinon un agent pourrait vider la liste.
7
+ # agent-rights.sh y figure, sinon un agent pourrait vider la liste.
8
8
  DROITS_AGENT=(
9
9
  .devcontainer/opencode/agent.json
10
10
  .devcontainer/opencode.jsonc
11
11
  .repowarden.conf
12
- .devcontainer/agent-droits.sh
12
+ .devcontainer/agent-rights.sh
13
13
  )
14
14
 
15
15
  # Dossier de la photo des droits d'un projet, dans l'état de l'agent.
@@ -138,7 +138,7 @@ rights_edit_deny() {
138
138
  # out of the merge, then added back at the end (the key order of a jq object is the
139
139
  # insertion order), so the caller can add permissions but never remove a devzone deny.
140
140
  # ~/bash32 is always protected: the container's bash 3.2 was already replaced by a
141
- # link (#210). The name configurer is kept: agent-droits-gh.bats calls it.
141
+ # link (#210). The name configurer is kept: agent-rights-gh.bats calls it.
142
142
  configurer() {
143
143
  local def config
144
144
  def="$ICI/opencode/agent.json"
@@ -16,12 +16,12 @@ done
16
16
  ICI="$(cd -P "$(dirname "$SOURCE")" && pwd)"
17
17
  RACINE="${DEVZONE_RACINE:-$(dirname "$ICI")}"
18
18
 
19
- # shellcheck source=agent-erreurs.sh
19
+ # shellcheck source=agent-errors.sh
20
20
  # shellcheck disable=SC1091
21
- . "$ICI/agent-erreurs.sh"
22
- # shellcheck source=agent-droits.sh
21
+ . "$ICI/agent-errors.sh"
22
+ # shellcheck source=agent-rights.sh
23
23
  # shellcheck disable=SC1091
24
- . "$ICI/agent-droits.sh"
24
+ . "$ICI/agent-rights.sh"
25
25
  # shellcheck source=agent-session.sh
26
26
  # shellcheck disable=SC1091
27
27
  . "$ICI/agent-session.sh"
@@ -16,18 +16,18 @@ while [ -L "$SOURCE" ]; do
16
16
  done
17
17
  ICI="$(cd -P "$(dirname "$SOURCE")" && pwd)"
18
18
  RACINE="${DEVZONE_RACINE:-$(dirname "$ICI")}"
19
- # shellcheck source=agent-erreurs.sh disable=SC1091
20
- . "$ICI/agent-erreurs.sh"
21
- # shellcheck source=agent-droits.sh disable=SC1091
22
- . "$ICI/agent-droits.sh"
19
+ # shellcheck source=agent-errors.sh disable=SC1091
20
+ . "$ICI/agent-errors.sh"
21
+ # shellcheck source=agent-rights.sh disable=SC1091
22
+ . "$ICI/agent-rights.sh"
23
23
  # shellcheck source=SCRIPTDIR/agent-session.sh disable=SC1091
24
24
  . "$ICI/agent-session.sh"
25
25
  # shellcheck source=agent-workspace.sh disable=SC1091
26
26
  . "$ICI/agent-workspace.sh"
27
27
  # shellcheck source=agent-local.sh disable=SC1091
28
28
  . "$ICI/agent-local.sh"
29
- # shellcheck source=SCRIPTDIR/agent-modele.sh disable=SC1091
30
- . "$ICI/agent-modele.sh"
29
+ # shellcheck source=SCRIPTDIR/agent-model.sh disable=SC1091
30
+ . "$ICI/agent-model.sh"
31
31
  FREE_MODELS=(big-pickle deepseek-v4.1-flash-free hy4-flash-free nemotron-3.5-super-vl-free
32
32
  nemotron-3.5-lightning-free mimo-v2.6-flash-free beam-free flint-40b-free longcat-2.5-free)
33
33
  # Session pod ephemere (#222)
@@ -207,7 +207,7 @@ agent_launch() {
207
207
  }
208
208
  case "${1:-}" in
209
209
  status) agent_pod_status ;;
210
- etat) if [ "${2:-}" = "--json" ]; then exec bash "$ICI/agent-etat-json.sh"; else agent_state; fi ;;
210
+ etat) if [ "${2:-}" = "--json" ]; then exec bash "$ICI/agent-state-json.sh"; else agent_state; fi ;;
211
211
  liberer)
212
212
  [ -n "${2:-}" ] || { agent_aide >&2; exit 2; }
213
213
  exclusion_clear "$2"
@@ -9,7 +9,7 @@
9
9
  set -u
10
10
 
11
11
  SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
12
- MESSAGE_FILE="$SCRIPT_DIR/docker-garde.message"
12
+ MESSAGE_FILE="$SCRIPT_DIR/docker-guard.message"
13
13
  FALLBACK="devzone is Kubernetes-first: only pods are containers. Use kubectl, or a throwaway pod or namespace. Host action: set DEVZONE_ALLOW_DOCKER to 1."
14
14
  MESSAGE="$FALLBACK"
15
15
  if [ -r "$MESSAGE_FILE" ]; then
@@ -1,11 +1,11 @@
1
1
  // Guard for opencode 2.x: blocks Docker commands in devzone (Kubernetes-first).
2
- // Each shell tool call is checked by docker-garde.sh. Exit code 2: error shown
2
+ // Each shell tool call is checked by docker-guard.sh. Exit code 2: error shown
3
3
  // to the agent with stderr message. Script absent or failing: nothing blocked.
4
4
  // The installed copy (devzone enable ia) replaces the placeholder below with
5
5
  // the script path; DEVZONE_DOCKER_GARDE overrides it. The script is resolved
6
- // from the plugin location itself (.devcontainer/ia/plugins -> ../docker-garde.sh).
6
+ // from the plugin location itself (.devcontainer/ai/plugins -> ../docker-guard.sh).
7
7
  // opencode 1.x also loads default exports with an id; without ctx.tool.hook the
8
- // 1.x guard in devzone-garde.js remains active.
8
+ // 1.x guard in devzone-guard.js remains active.
9
9
  import { spawnSync } from "node:child_process"
10
10
  import { existsSync } from "node:fs"
11
11
  import { fileURLToPath } from "node:url"
@@ -17,7 +17,7 @@ function guardScript() {
17
17
  if (INSTALLED && INSTALLED.indexOf("__DEVZONE_DOCKER_GARDE__") !== 0 && existsSync(INSTALLED)) {
18
18
  return INSTALLED
19
19
  }
20
- const script = join(dirname(fileURLToPath(import.meta.url)), "..", "docker-garde.sh")
20
+ const script = join(dirname(fileURLToPath(import.meta.url)), "..", "docker-guard.sh")
21
21
  if (existsSync(script)) {
22
22
  return script
23
23
  }
@@ -1,9 +1,9 @@
1
1
  // Guard for opencode 1.x: blocks Docker commands in devzone (Kubernetes-first).
2
- // Each shell tool call is checked by docker-garde.sh. Exit code 2: error shown
2
+ // Each shell tool call is checked by docker-guard.sh. Exit code 2: error shown
3
3
  // to the agent with stderr message. Script absent or failing: nothing blocked.
4
4
  // The installed copy (devzone enable ia) replaces the placeholder below with
5
5
  // the script path; DEVZONE_DOCKER_GARDE overrides it. The script is resolved
6
- // from the plugin location itself (.devcontainer/ia/plugins -> ../docker-garde.sh).
6
+ // from the plugin location itself (.devcontainer/ai/plugins -> ../docker-guard.sh).
7
7
  import { spawnSync } from "node:child_process"
8
8
  import { existsSync } from "node:fs"
9
9
  import { fileURLToPath } from "node:url"
@@ -15,7 +15,7 @@ function guardScript() {
15
15
  if (INSTALLED && INSTALLED.indexOf("__DEVZONE_DOCKER_GARDE__") !== 0 && existsSync(INSTALLED)) {
16
16
  return INSTALLED
17
17
  }
18
- const script = join(dirname(fileURLToPath(import.meta.url)), "..", "docker-garde.sh")
18
+ const script = join(dirname(fileURLToPath(import.meta.url)), "..", "docker-guard.sh")
19
19
  if (existsSync(script)) {
20
20
  return script
21
21
  }
@@ -18,14 +18,14 @@ ETAT="${DEVZONE_ETAT:-$RACINE/.devzone.modules}"
18
18
  # shellcheck disable=SC1091
19
19
  . "$ICI/../password.sh"
20
20
  # Isolation réseau : namespace_isoler, posée avec le namespace devzone-argocd
21
- # shellcheck source=SCRIPTDIR/../isolement.sh
21
+ # shellcheck source=SCRIPTDIR/../isolation.sh
22
22
  # shellcheck disable=SC1091
23
- . "$ICI/../isolement.sh"
23
+ . "$ICI/../isolation.sh"
24
24
  # Shared memory check of the services cluster (#608): quantity_ki and
25
25
  # memory_cluster_ki.
26
- # shellcheck source=SCRIPTDIR/../memoire.sh
26
+ # shellcheck source=SCRIPTDIR/../memory.sh
27
27
  # shellcheck disable=SC1091
28
- . "$ICI/../memoire.sh"
28
+ . "$ICI/../memory.sh"
29
29
 
30
30
  NS=devzone-argocd
31
31
  SECRETS="$RACINE/workspace/.argocd"
@@ -3,7 +3,7 @@
3
3
  # mysql and the catalogue install their application as the Application
4
4
  # devzone-<app> (services.sh) when the module argocd is active, instead of
5
5
  # the manifest applied by hand. The namespace (compte_namespace of
6
- # cluster.sh, isolement.sh) and the secret <app>-admin (mirror
6
+ # cluster.sh, isolation.sh) and the secret <app>-admin (mirror
7
7
  # workspace/.<app>/) stay created apart, out of Git; Argo CD holds the chart
8
8
  # charts/devzone-<app> of the devzone repository at the revision.
9
9
  # catalogue_argocd_active <app> on, installed, chart and revision
@@ -19,17 +19,17 @@ ICI="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
19
19
  # (workspace/ secrets, .argocd.conf), the same folder unless DEVZONE_RACINE says so
20
20
  RACINE="$(dirname "$(dirname "$ICI")")"
21
21
  STATE_RACINE="${DEVZONE_RACINE:-$RACINE}"
22
- # shellcheck disable=SC2034 # read by catalogue-argocd.sh
22
+ # shellcheck disable=SC2034 # read by catalog-argocd.sh
23
23
  ETAT="${DEVZONE_ETAT:-$STATE_RACINE/.devzone.modules}"
24
- APP_CONF="$RACINE/.devcontainer/catalogue/mysql/app.conf"
24
+ APP_CONF="$RACINE/.devcontainer/catalog/mysql/app.conf"
25
25
  HOOK_SERVICES="postgres mysql"
26
26
 
27
27
  # shellcheck source=SCRIPTDIR/../cluster.sh
28
28
  # shellcheck disable=SC1091
29
29
  . "$ICI/../cluster.sh"
30
- # shellcheck source=SCRIPTDIR/catalogue-argocd.sh
30
+ # shellcheck source=SCRIPTDIR/catalog-argocd.sh
31
31
  # shellcheck disable=SC1091
32
- . "$ICI/catalogue-argocd.sh"
32
+ . "$ICI/catalog-argocd.sh"
33
33
 
34
34
  # Loads the Argo CD pieces (conf, gitops, services with the context devzone)
35
35
  # and the list of services reconciled here
@@ -45,7 +45,7 @@ hook_load() {
45
45
  hook_script() {
46
46
  case "$1" in
47
47
  postgres) printf '%s' "$ICI/../postgres/postgres.sh" ;;
48
- mysql) printf '%s' "$ICI/../catalogue/mysql/mysql.sh" ;;
48
+ mysql) printf '%s' "$ICI/../catalog/mysql/mysql.sh" ;;
49
49
  esac
50
50
  }
51
51
 
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env bash
2
- # Opérations d'installation du catalogue (#414) : sourcé par catalogue.sh.
2
+ # Opérations d'installation du catalogue (#414) : sourcé par catalog.sh.
3
3
  # Le module argocd actif : l'application installée est une Application Argo CD
4
4
  # devzone-<app> (chart charts/devzone-<app> du dépôt devzone, #538) au lieu du
5
5
  # manifeste de la voie helm direct.
6
6
 
7
7
  ATTENTE="${DEVZONE_CATALOGUE_ATTENTE:-300}"
8
8
 
9
- # shellcheck source=SCRIPTDIR/argocd/catalogue-argocd.sh
9
+ # shellcheck source=SCRIPTDIR/argocd/catalog-argocd.sh
10
10
  # shellcheck disable=SC1091
11
- . "$ICI/argocd/catalogue-argocd.sh"
11
+ . "$ICI/argocd/catalog-argocd.sh"
12
12
  # shellcheck source=SCRIPTDIR/chart-direct.sh
13
13
  # shellcheck disable=SC1091
14
14
  . "$ICI/chart-direct.sh"
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env bash
2
2
  # Détection à chaud du catalogue (#414) : quand .devzone.modules change,
3
- # catalogue.sh appliquer est lancé. Une seule instance (verrou, comme #394).
4
- # catalogue-veilleur.sh demarrer | arreter | tour
3
+ # catalog.sh appliquer est lancé. Une seule instance (verrou, comme #394).
4
+ # catalog-watcher.sh demarrer | arreter | tour
5
5
  set -euo pipefail
6
6
 
7
7
  ICI="$(cd "$(dirname "$0")" && pwd)"
8
8
  RACINE="${DEVZONE_RACINE:-$(cd "$ICI/../.." && pwd)}"
9
9
  ETAT="${DEVZONE_ETAT:-$RACINE/.devzone.modules}"
10
- # shellcheck source=SCRIPTDIR/etat.sh
10
+ # shellcheck source=SCRIPTDIR/state.sh
11
11
  # shellcheck disable=SC1091
12
- . "$(dirname "$ICI")/etat.sh"
12
+ . "$(dirname "$ICI")/state.sh"
13
13
  BASE="${DEVZONE_CATALOGUE_VEILLEUR_DIR:-$RACINE/.devzone.catalogue-veilleur}"
14
14
  VERROU="$BASE/verrou"
15
15
  DERNIER="$BASE/dernier"
@@ -63,7 +63,7 @@ tour() {
63
63
  if [ "$maintenant" != "$ancien" ]; then
64
64
  echo "$maintenant" >"$DERNIER"
65
65
  echo "devzone : catalogue-veilleur : .devzone.modules modifié, application" >&2
66
- bash "$ICI/../catalogue.sh" apply
66
+ bash "$ICI/../catalog.sh" apply
67
67
  fi
68
68
  }
69
69
 
@@ -10,19 +10,19 @@ ETAT="${DEVZONE_ETAT:-$RACINE/.devzone.modules}"
10
10
  # shellcheck source=SCRIPTDIR/../../password.sh
11
11
  # shellcheck disable=SC1091
12
12
  . "$ICI/../../password.sh"
13
- # shellcheck source=SCRIPTDIR/../../isolement.sh
13
+ # shellcheck source=SCRIPTDIR/../../isolation.sh
14
14
  # shellcheck disable=SC1091
15
- . "$ICI/../../isolement.sh"
15
+ . "$ICI/../../isolation.sh"
16
16
  # shellcheck source=SCRIPTDIR/volume.sh
17
17
  # shellcheck disable=SC1091
18
18
  . "$ICI/volume.sh"
19
- # shellcheck source=SCRIPTDIR/installer.sh
19
+ # shellcheck source=SCRIPTDIR/install.sh
20
20
  # shellcheck disable=SC1091
21
- . "$ICI/installer.sh"
21
+ . "$ICI/install.sh"
22
22
  # Le module argocd actif : MySQL installé par une Application (#538)
23
- # shellcheck source=SCRIPTDIR/../../argocd/catalogue-argocd.sh
23
+ # shellcheck source=SCRIPTDIR/../../argocd/catalog-argocd.sh
24
24
  # shellcheck disable=SC1091
25
- . "$ICI/../../argocd/catalogue-argocd.sh"
25
+ . "$ICI/../../argocd/catalog-argocd.sh"
26
26
  NS=devzone-mysql
27
27
  SECRETS="$RACINE/workspace/.mysql"
28
28
  MYSQL_PORT="${MYSQL_PORT:-3306}"
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env bash
2
2
  # Catalogue d'applications (#414) : une application préconfigurée par dossier
3
- # .devcontainer/catalogue/<app>/ (app.conf ; le chart charts/devzone-<app>, #559), installée dans le
3
+ # .devcontainer/catalog/<app>/ (app.conf ; le chart charts/devzone-<app>, #559), installée dans le
4
4
  # cluster des services de devzone sous son namespace de app.conf ; l'état
5
5
  # voulu est la ligne <app>=on|off de .devzone.modules.
6
- # catalogue.sh sync | apply | list | resume | json | remove <app>
6
+ # catalog.sh sync | apply | list | resume | json | remove <app>
7
7
  set -euo pipefail
8
8
 
9
9
  ICI="$(cd "$(dirname "$0")" && pwd)"
@@ -12,23 +12,23 @@ ETAT="${DEVZONE_ETAT:-$RACINE/.devzone.modules}"
12
12
  # shellcheck source=SCRIPTDIR/cluster.sh
13
13
  # shellcheck disable=SC1091
14
14
  . "$ICI/cluster.sh"
15
- # shellcheck source=SCRIPTDIR/etat.sh
15
+ # shellcheck source=SCRIPTDIR/state.sh
16
16
  # shellcheck disable=SC1091
17
- . "$ICI/etat.sh"
17
+ . "$ICI/state.sh"
18
18
  # shellcheck source=SCRIPTDIR/password.sh
19
19
  # shellcheck disable=SC1091
20
20
  . "$ICI/password.sh"
21
- # shellcheck source=SCRIPTDIR/isolement.sh
21
+ # shellcheck source=SCRIPTDIR/isolation.sh
22
22
  # shellcheck disable=SC1091
23
- . "$ICI/isolement.sh"
24
- # shellcheck source=SCRIPTDIR/catalogue/app.sh
23
+ . "$ICI/isolation.sh"
24
+ # shellcheck source=SCRIPTDIR/catalog/app.sh
25
25
  # shellcheck disable=SC1091
26
- . "$ICI/catalogue/app.sh"
26
+ . "$ICI/catalog/app.sh"
27
27
 
28
28
  refuse() { echo "devzone : catalogue : $*" >&2; exit 2; }
29
29
 
30
30
  # Dossier du catalogue (surchargeable par les tests)
31
- dossier_catalogue() { echo "${DEVZONE_CATALOGUE:-$ICI/catalogue}"; }
31
+ dossier_catalogue() { echo "${DEVZONE_CATALOGUE:-$ICI/catalog}"; }
32
32
 
33
33
  # Applications du catalogue : dossiers pourvus d'un app.conf, triés
34
34
  catalogue_apps() {
@@ -155,7 +155,7 @@ app_relais_arrete() {
155
155
  # In the pod, no relay: the access goes through the workspace ports
156
156
  return 1
157
157
  fi
158
- script="$ICI/catalogue/$app/$app.sh"
158
+ script="$ICI/catalog/$app/$app.sh"
159
159
  if [ -f "$script" ]; then
160
160
  etat="$(bash "$script" status 2>/dev/null || true)"
161
161
  case "$etat" in *"relais arrêté"*) return 0 ;; esac
@@ -18,7 +18,7 @@
18
18
  # kube_joignable_depuis_conteneur FICHIER réécrit 127.0.0.1/localhost
19
19
  # relais_lancer NOM CTX NS CIBLE PORTS… port-forward gardé en vie
20
20
  # relais_actif NOM / relais_arreter NOM
21
- # compte_* (kube-compte.sh #430) compte limité et contexte administrateur
21
+ # compte_* (kube-account.sh #430) compte limité et contexte administrateur
22
22
 
23
23
  # Clusters kind et de l'hôte, comme remoteEnv de devcontainer.json : un
24
24
  # docker exec ou un script lancé hors du terminal du conteneur ne l'a pas,
@@ -31,9 +31,9 @@ export KUBECONFIG
31
31
 
32
32
  # Écriture sûre de l'état (#417) : verrou, temporaire dans le dossier de
33
33
  # l'état, copie de secours .prec — partagée par devzone, ports et ports-auto
34
- # shellcheck source=SCRIPTDIR/etat.sh
34
+ # shellcheck source=SCRIPTDIR/state.sh
35
35
  # shellcheck disable=SC1091
36
- . "$(dirname "${BASH_SOURCE[0]}")/etat.sh"
36
+ . "$(dirname "${BASH_SOURCE[0]}")/state.sh"
37
37
 
38
38
  # Nom d'instance : vide ou « devzone » = instance par défaut (pas de suffixe)
39
39
  : "${DEVZONE_INSTANCE:=}"
@@ -50,14 +50,14 @@ CLUSTER_ETIQUETTE=app.kubernetes.io/managed-by=devzone
50
50
 
51
51
  # Réécriture 127.0.0.1 → host.docker.internal (#291) : partagée avec
52
52
  # l'enveloppe kind, qui l'applique aussi aux clusters créés à la main
53
- # shellcheck source=SCRIPTDIR/kube-joignable.sh
54
- . "$(dirname "${BASH_SOURCE[0]}")/kube-joignable.sh"
53
+ # shellcheck source=SCRIPTDIR/kube-reachable.sh
54
+ . "$(dirname "${BASH_SOURCE[0]}")/kube-reachable.sh"
55
55
 
56
56
  # Compte Kubernetes limité (#430) : compte_poser, compte_autoriser,
57
57
  # compte_retirer, compte_jeton, compte_admin (contexte administrateur) ;
58
58
  # les installeurs l'utilisent, cluster_liberer aussi
59
- # shellcheck source=SCRIPTDIR/kube-compte.sh
60
- . "$(dirname "${BASH_SOURCE[0]}")/kube-compte.sh"
59
+ # shellcheck source=SCRIPTDIR/kube-account.sh
60
+ . "$(dirname "${BASH_SOURCE[0]}")/kube-account.sh"
61
61
 
62
62
  cluster_lu() {
63
63
  grep -E '^cluster=' "$ETAT" 2>/dev/null | tail -1 | cut -d= -f2- || true
@@ -61,7 +61,7 @@
61
61
 
62
62
  "postCreateCommand": "bash .devcontainer/post-create.sh",
63
63
  // Identité git, clusters, puis récapitulatif de ce qui reste à faire
64
- "postStartCommand": "bash .devcontainer/demarrage.sh",
64
+ "postStartCommand": "bash .devcontainer/startup.sh",
65
65
  // Clusters kind du conteneur (config) + cluster de l'hôte (hote.config,
66
66
  // refait à chaque démarrage par kube-config.sh)
67
67
  "remoteEnv": {