henergyqueai 0.9.1 → 0.9.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.
@@ -36,7 +36,7 @@ import { expandReferences } from "../src/references.js";
36
36
  import { stopAll } from "../src/background.js";
37
37
  import { loadHooks } from "../src/hooks.js";
38
38
 
39
- const VERSION = "0.9.1";
39
+ const VERSION = "0.9.2";
40
40
  // Le papillon, une ligne vide, le trait, l'aide et une ligne vide.
41
41
  const HEADER_HEIGHT = LOGO_HEIGHT + 4;
42
42
  const BODY_ROW = HEADER_HEIGHT + 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "henergyqueai",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "L’assistant HenergyqueAI dans votre terminal : il lit votre projet, propose des modifications et lance des commandes, avec votre accord.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/butterfly.js CHANGED
@@ -22,94 +22,69 @@ const bg = (hex) => {
22
22
  return `48;2;${(v >> 16) & 255};${(v >> 8) & 255};${v & 255}`;
23
23
  };
24
24
 
25
- // Le papillon choisi par le sondage (n° 2, « Face · détaillé ») : contours
26
- // sombres, taches claires et ocelles. Un battement complet, les ailes se
27
- // resserrent vers le corps puis se rouvrent.
25
+ // Le papillon choisi par le sondage (n° 5, « Profil · deux ailes ») : posé,
26
+ // vu de côté, l'aile du fond dépasse derrière la première. Ses ailes
27
+ // respirent doucement. Le même que dans VS Code, à la taille du terminal.
28
28
  export const FRAMES = [
29
29
  [
30
- "..o...............o..",
31
- "...o.............o...",
32
- "....o...........o....",
33
- ".oooo.o.......o.oooo.",
34
- "oaaabo.o..o..o.obaaao",
35
- "oaawabboo.f.oobbawaao",
36
- "oaaabbbcoofoocbbbaaao",
37
- "obbbbcccdoeodcccbbbbo",
38
- ".obbcccddoeoddcccbbo.",
39
- "..oocdddooeoodddcoo..",
40
- "...obcco..f..occbo...",
41
- "..obcwdco.f.ocdwcbo..",
42
- "..obccddo.e.oddccbo..",
43
- "...occdo..e..odcco...",
44
- "....ooo.......ooo....",
30
+ "......ooooeo..c",
31
+ ".....ofwacoo.c.",
32
+ "....owaabcooo..",
33
+ "...ofabbbcooo..",
34
+ "...owbbccdooo..",
35
+ "..ofboccddoooo.",
36
+ "..owbboddoeewo.",
37
+ "...ofwfwoeeeeo.",
38
+ "..oeefeefeeoo..",
39
+ "...ooooooooo.o.",
45
40
  ],
46
41
  [
47
- "....o...........o....",
48
- ".....o.........o.....",
49
- "......o.......o......",
50
- "....oooo.....oooo....",
51
- "...oaab.o.o.o.baao...",
52
- "...oawabo.f.obawao...",
53
- "...oaabbcofocbbaao...",
54
- "...obbbccoeoccbbbo...",
55
- "....bbccdoeodccbb....",
56
- "....oocddoeoddcoo....",
57
- ".....obco.f.ocbo.....",
58
- "....obcdc.f.cdcbo....",
59
- "....obcdd.e.ddcbo....",
60
- ".....ocdo.e.odco.....",
61
- "......oo.....oo......",
42
+ "........ooo...c",
43
+ "......ooooeo.c.",
44
+ "....oofwacooo..",
45
+ "...ofabbbcooo..",
46
+ "...owbbccdooo..",
47
+ "..ofboccddoooo.",
48
+ "..owbboddoeewo.",
49
+ "...ofwfwoeeeeo.",
50
+ "..oeefeefeeoo..",
51
+ "...ooooooooo.o.",
62
52
  ],
63
53
  [
64
- ".....................",
65
- ".......o.....o.......",
66
- ".....................",
67
- ".......o.....o.......",
68
- "......oao.o.oao......",
69
- "......owbofobwo......",
70
- "......oabofobao......",
71
- "......obcdedcbo......",
72
- ".......bcdedcb.......",
73
- ".......odoeodo.......",
74
- ".......oc.f.co.......",
75
- ".......bwofowb.......",
76
- ".......bcoeocb.......",
77
- ".......oc.e.co.......",
78
- "........o...o........",
54
+ "........ooo...c",
55
+ "......ooooeo.c.",
56
+ ".....ofwacooo..",
57
+ "....owaabcooo..",
58
+ "...ofabbbcooo..",
59
+ "..ofboccddoooo.",
60
+ "..owbboddoeewo.",
61
+ "...ofwfwoeeeeo.",
62
+ "..oeefeefeeoo..",
63
+ "...ooooooooo.o.",
79
64
  ],
80
65
  [
81
- "....o...........o....",
82
- ".....o.........o.....",
83
- "......o.......o......",
84
- "....oooo.....oooo....",
85
- "...oaab.o.o.o.baao...",
86
- "...oawabo.f.obawao...",
87
- "...oaabbcofocbbaao...",
88
- "...obbbccoeoccbbbo...",
89
- "....bbccdoeodccbb....",
90
- "....oocddoeoddcoo....",
91
- ".....obco.f.ocbo.....",
92
- "....obcdc.f.cdcbo....",
93
- "....obcdd.e.ddcbo....",
94
- ".....ocdo.e.odco.....",
95
- "......oo.....oo......",
66
+ "........ooo...c",
67
+ "......ooooeo.c.",
68
+ "....oofwacooo..",
69
+ "...ofabbbcooo..",
70
+ "...owbbccdooo..",
71
+ "..ofboccddoooo.",
72
+ "..owbboddoeewo.",
73
+ "...ofwfwoeeeeo.",
74
+ "..oeefeefeeoo..",
75
+ "...ooooooooo.o.",
96
76
  ],
97
77
  [
98
- "..o...............o..",
99
- "...o.............o...",
100
- "....o...........o....",
101
- ".oooo.o.......o.oooo.",
102
- "oaaabo.o..o..o.obaaao",
103
- "oaawabboo.f.oobbawaao",
104
- "oaaabbbcoofoocbbbaaao",
105
- "obbbbcccdoeodcccbbbbo",
106
- ".obbcccddoeoddcccbbo.",
107
- "..oocdddooeoodddcoo..",
108
- "...obcco..f..occbo...",
109
- "..obcwdco.f.ocdwcbo..",
110
- "..obccddo.e.oddccbo..",
111
- "...occdo..e..odcco...",
112
- "....ooo.......ooo....",
78
+ "......ooooeo..c",
79
+ ".....ofwacoo.c.",
80
+ "....owaabcooo..",
81
+ "...ofabbbcooo..",
82
+ "...owbbccdooo..",
83
+ "..ofboccddoooo.",
84
+ "..owbboddoeewo.",
85
+ "...ofwfwoeeeeo.",
86
+ "..oeefeefeeoo..",
87
+ "...ooooooooo.o.",
113
88
  ],
114
89
  ];
115
90
 
@@ -247,8 +222,8 @@ const CREATURES = {
247
222
  oryne: { frames: ORYNE, ink: ORYNE_INK },
248
223
  };
249
224
 
250
- export const WIDTH = 21;
251
- export const HEIGHT = 8;
225
+ export const WIDTH = 15;
226
+ export const HEIGHT = 5;
252
227
  const fit = (grid) => {
253
228
  if (grid.length >= HEIGHT * 2 - 1) return grid;
254
229
  const side = ".".repeat(Math.floor((WIDTH - grid[0].length) / 2));