@oal-sarl/code 6.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.
- package/LICENSE.md +23 -0
- package/README.md +286 -0
- package/dist/index.js +14744 -0
- package/package.json +69 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Copyright (c) 2026 OAL SARL. All rights reserved.
|
|
2
|
+
|
|
3
|
+
This software and associated documentation files (the "Software") are proprietary
|
|
4
|
+
and confidential to OAL SARL.
|
|
5
|
+
|
|
6
|
+
No license is granted to use, copy, modify, merge, publish, distribute,
|
|
7
|
+
sublicense, sell, rent, lease, reverse engineer, decompile, disassemble, or
|
|
8
|
+
create derivative works from the Software, in whole or in part, except under a
|
|
9
|
+
separate written agreement signed by OAL SARL.
|
|
10
|
+
|
|
11
|
+
You may not remove, alter, or obscure any copyright, trademark, confidentiality,
|
|
12
|
+
or proprietary notices included with the Software.
|
|
13
|
+
|
|
14
|
+
The Software is provided "AS IS", without warranties of any kind, express or
|
|
15
|
+
implied, including but not limited to merchantability, fitness for a particular
|
|
16
|
+
purpose, title, non-infringement, or uninterrupted operation.
|
|
17
|
+
|
|
18
|
+
In no event shall OAL SARL be liable for any claim, damages, or other liability,
|
|
19
|
+
whether in an action of contract, tort, or otherwise, arising from, out of, or
|
|
20
|
+
in connection with the Software or the use or other dealings in the Software.
|
|
21
|
+
|
|
22
|
+
For licensing, commercial use, redistribution, OEM, or partnership inquiries:
|
|
23
|
+
legal@oalsarl.example
|
package/README.md
ADDED
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
# Code v6 Augmented
|
|
2
|
+
|
|
3
|
+
Produit CLI de coding `OAL SARL`, propulse par Pollinations AI (`kimi`, `mistral`, `gemini-fast`).
|
|
4
|
+
|
|
5
|
+
## Proprietary Product Notice
|
|
6
|
+
|
|
7
|
+
`Code` est un produit proprietaire de `OAL SARL`.
|
|
8
|
+
|
|
9
|
+
- Licence du produit: voir [LICENSE.md](./LICENSE.md)
|
|
10
|
+
- Notice produit: voir [NOTICE.md](./NOTICE.md)
|
|
11
|
+
- Marques et branding: voir [TRADEMARKS.md](./TRADEMARKS.md)
|
|
12
|
+
|
|
13
|
+
## Prerequis
|
|
14
|
+
|
|
15
|
+
- Node.js `>= 20`
|
|
16
|
+
- Bun `>= 1.0`
|
|
17
|
+
- Git
|
|
18
|
+
- Shell local disponible
|
|
19
|
+
- Windows: PowerShell 5+ ou PowerShell 7+
|
|
20
|
+
- macOS / Linux: `bash` ou `sh`
|
|
21
|
+
- Git Bash sur Windows reste supporte, mais n'est plus obligatoire
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm install
|
|
27
|
+
npm run typecheck
|
|
28
|
+
npm test
|
|
29
|
+
npm run build
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Installation globale:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm pack
|
|
36
|
+
npm install -g ./oal-sarl-code-6.0.0.tgz
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Si `oal-code` n'est pas reconnu sous PowerShell:
|
|
40
|
+
|
|
41
|
+
```powershell
|
|
42
|
+
$env:Path += ";$env:APPDATA\npm"
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Configuration API
|
|
46
|
+
|
|
47
|
+
Obtiens une cle sur <https://enter.pollinations.ai> puis:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
oal-code config --key pk_xxx
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Options:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
oal-code config --model mistral
|
|
57
|
+
oal-code config --language fr
|
|
58
|
+
oal-code config --no-memory
|
|
59
|
+
oal-code config --no-web-search
|
|
60
|
+
oal-code config --no-undo
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Usage
|
|
64
|
+
|
|
65
|
+
Mode interactif:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
oal-code chat
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Publication npm publique:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
npm login
|
|
75
|
+
npm publish --access public
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Package npm cible:
|
|
79
|
+
|
|
80
|
+
```text
|
|
81
|
+
@oal-sarl/code
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Repository npm/publication cible:
|
|
85
|
+
|
|
86
|
+
```text
|
|
87
|
+
https://github.com/oal-sarl/code
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Statut de diffusion:
|
|
91
|
+
|
|
92
|
+
- package public npm
|
|
93
|
+
- code source interne non expose via `src/`
|
|
94
|
+
- artefact distribue via bundle `dist/`
|
|
95
|
+
|
|
96
|
+
Mode one-shot (CI/script):
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
oal-code run "Analyse ce projet et propose un plan."
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Slash Commands v6
|
|
103
|
+
|
|
104
|
+
- `/plan <task>`
|
|
105
|
+
- `/fix <error>`
|
|
106
|
+
- `/test <file>`
|
|
107
|
+
- `/review`
|
|
108
|
+
- `/refactor <file>`
|
|
109
|
+
- `/model <kimi|mistral|gemini-fast>`
|
|
110
|
+
- `/git <action>`
|
|
111
|
+
- `/file <path>` (PDF/image/csv/json/txt)
|
|
112
|
+
- `/img <path>` (alias)
|
|
113
|
+
- `/screenshot [url]`
|
|
114
|
+
- `/preview [url]`
|
|
115
|
+
- `/history`
|
|
116
|
+
- `/share`
|
|
117
|
+
- `/skill [name]`
|
|
118
|
+
- `/render <remotion|manim>`
|
|
119
|
+
- `/agents t1 | t2 | t3`
|
|
120
|
+
- `/session <new|list|switch|close>`
|
|
121
|
+
- `/sandbox <safe|docker|none>`
|
|
122
|
+
- `/undo`
|
|
123
|
+
- `/memory`
|
|
124
|
+
- `/env`
|
|
125
|
+
- `/clear`
|
|
126
|
+
- `/clear --memory`
|
|
127
|
+
- `/help`
|
|
128
|
+
|
|
129
|
+
## Capacites v6
|
|
130
|
+
|
|
131
|
+
- Multi-session interactive (creation/switch/close, sessions paralleles).
|
|
132
|
+
- Historique JSONL par projet/session (`~/.code/history/...`).
|
|
133
|
+
- Vision fichiers (`/file`, `/img`) avec PDF/CSV/image.
|
|
134
|
+
- Screenshot Playwright (`/screenshot`) + analyse visuelle.
|
|
135
|
+
- Preview server local (`/preview`) avec auto-reload.
|
|
136
|
+
- Skills built-in + user skills (`src/skills`, `~/.code/skills`).
|
|
137
|
+
- Sandbox shell (`safe`, `docker`, `none`) avec fallback robuste.
|
|
138
|
+
- Transactions atomiques avec rollback et preview.
|
|
139
|
+
- Edition AST TypeScript avec fallback propre.
|
|
140
|
+
- Judge hybride et verification outillee avant reponse finale.
|
|
141
|
+
- Tool verification policy + parser dual `<n>/<name>`.
|
|
142
|
+
- Compaction contexte abortable + fallback local anti-blocage.
|
|
143
|
+
|
|
144
|
+
## Tool Verification Policy
|
|
145
|
+
|
|
146
|
+
Code impose une regle de verification:
|
|
147
|
+
|
|
148
|
+
- Toute affirmation factuelle sur le codebase (fichiers, symboles, architecture, etat git) doit etre basee sur au moins un appel outil (`read_file`, `search_code`, `list_dir`, `git_*`, `bash`).
|
|
149
|
+
- Si aucune preuve outil n'est collectee, Code force un appel d'outil avant la reponse finale.
|
|
150
|
+
|
|
151
|
+
## Debug et Monitoring
|
|
152
|
+
|
|
153
|
+
Activer les logs:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
CODE_DEBUG=1 oal-code chat
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Logs exposes:
|
|
160
|
+
|
|
161
|
+
- tool calls parses,
|
|
162
|
+
- execution parallele,
|
|
163
|
+
- ledger de preuves outils,
|
|
164
|
+
- raisons de compaction fallback,
|
|
165
|
+
- healing attempts.
|
|
166
|
+
- metrics de fiabilite (`iterations`, `toolCalls`, `toolErrors`, retries, interruptions) en mode debug.
|
|
167
|
+
|
|
168
|
+
## Benchmarks publics
|
|
169
|
+
|
|
170
|
+
Benchmark fiabilite v1:
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
npm run bench
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
Sorties:
|
|
177
|
+
- `bench/results/latest.json`
|
|
178
|
+
- `bench/results/latest.md`
|
|
179
|
+
|
|
180
|
+
Variables utiles:
|
|
181
|
+
- `CODE_BENCH_TIMEOUT_MS` (defaut: `180000`)
|
|
182
|
+
- `CODE_BENCH_RETRIES` (defaut: `1`)
|
|
183
|
+
- `CODE_BENCH_SCENARIO_LIMIT` (defaut: `0`, tous les scenarios)
|
|
184
|
+
|
|
185
|
+
## SWE-lite (pass@1)
|
|
186
|
+
|
|
187
|
+
Mesure proxy de type SWE (non officielle SWE-bench), avec verifications attendues scenario par scenario:
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
npm run swe:lite
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
Sorties:
|
|
194
|
+
- `bench/results/swe-lite-latest.json`
|
|
195
|
+
- `bench/results/swe-lite-latest.md`
|
|
196
|
+
|
|
197
|
+
Variables utiles:
|
|
198
|
+
- `CODE_SWE_LITE_TIMEOUT_MS` (defaut: `120000`)
|
|
199
|
+
- `CODE_SWE_LITE_MODEL` (defaut: `mistral`)
|
|
200
|
+
|
|
201
|
+
## Troubleshooting
|
|
202
|
+
|
|
203
|
+
### Windows UTF-8 / glyphes
|
|
204
|
+
|
|
205
|
+
- Code supporte fallback ASCII via `src/ui/glyphs.ts`.
|
|
206
|
+
- Si besoin, force ASCII:
|
|
207
|
+
|
|
208
|
+
```powershell
|
|
209
|
+
$env:CODE_GLYPHS = "ascii"
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### Shell introuvable
|
|
213
|
+
|
|
214
|
+
Code choisit automatiquement un shell selon l'OS:
|
|
215
|
+
|
|
216
|
+
- Windows: Git Bash si present, sinon `pwsh`, puis `powershell`, puis `cmd`
|
|
217
|
+
- macOS / Linux: `bash`, puis `sh`
|
|
218
|
+
|
|
219
|
+
Tu peux forcer un shell avec:
|
|
220
|
+
|
|
221
|
+
```powershell
|
|
222
|
+
$env:CODE_SHELL_PATH = "C:\Program Files\PowerShell\7\pwsh.exe"
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
Compatibilite historique Git Bash:
|
|
226
|
+
|
|
227
|
+
```powershell
|
|
228
|
+
$env:CODE_BASH_PATH = "C:\Program Files\Git\bin\bash.exe"
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
### Erreurs API Pollinations
|
|
232
|
+
|
|
233
|
+
- `401`: cle invalide.
|
|
234
|
+
- `402`: solde insuffisant.
|
|
235
|
+
- `429`: rate-limit (retry/backoff auto).
|
|
236
|
+
- `503`: indisponibilite temporaire (retry auto).
|
|
237
|
+
|
|
238
|
+
### TTY / session interactive
|
|
239
|
+
|
|
240
|
+
- `oal-code chat` requiert un terminal TTY.
|
|
241
|
+
- En CI, utilise `oal-code run "..."`
|
|
242
|
+
|
|
243
|
+
## Release v6
|
|
244
|
+
|
|
245
|
+
Verification release locale:
|
|
246
|
+
|
|
247
|
+
```bash
|
|
248
|
+
npm test
|
|
249
|
+
npm run build
|
|
250
|
+
npm pack
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
Verification du tarball:
|
|
254
|
+
|
|
255
|
+
```bash
|
|
256
|
+
npm install -g ./oal-sarl-code-6.0.0.tgz
|
|
257
|
+
oal-code --version
|
|
258
|
+
oal-code run "Lis package.json et donne-moi le nom du projet."
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
## Distribution multi-plateforme
|
|
262
|
+
|
|
263
|
+
Code est aujourd'hui distribue comme CLI Node.js cross-platform, pas comme binaire natif autonome.
|
|
264
|
+
|
|
265
|
+
Plateformes cibles:
|
|
266
|
+
|
|
267
|
+
- Windows 10/11 avec PowerShell ou Git Bash
|
|
268
|
+
- macOS avec `bash` ou `sh`
|
|
269
|
+
- Linux avec `bash` ou `sh`
|
|
270
|
+
|
|
271
|
+
Points de verification avant publication:
|
|
272
|
+
|
|
273
|
+
- `npm test`
|
|
274
|
+
- `npm run build`
|
|
275
|
+
- `npm pack`
|
|
276
|
+
- test local Windows
|
|
277
|
+
- test local macOS
|
|
278
|
+
- test local Linux
|
|
279
|
+
|
|
280
|
+
Commande de smoke test recommandee sur chaque OS:
|
|
281
|
+
|
|
282
|
+
```bash
|
|
283
|
+
oal-code --version
|
|
284
|
+
oal-code run "Lis package.json et donne-moi le nom du projet."
|
|
285
|
+
oal-code chat --setup
|
|
286
|
+
```
|