Commit 5eed9f8
committed
Wire slicks into sandbox via uv and bump default model to MiniMax-M3
Sandbox slicks wiring (matches the slicks v0.3.0 TimescaleDB backend on
the timescaledb-migration branch that was merged to main):
- server/installer/sandbox/Dockerfile.sandbox: install uv, then use it
for both requirements-docker.txt and the editable slicks install from
/slicks_src (a docker compose additional_context pointing at the
sibling slicks checkout). uv keeps the image layer smaller than pip
and the install deterministic. Added a build-time smoke test that
imports slicks to catch future regressions early.
- server/installer/docker-compose.yml:
* sandbox service: pass slicks source as a build-time additional_context
and bind-mount the same path at runtime so live source edits are
picked up on the next container recreate without an image rebuild
(controlled by SLICKS_HOST_PATH env var, default points at
/home/ubuntu/projects/slicks).
* sandbox service: export POSTGRES_DSN, TIMESCALE_TABLE,
TIMESCALE_SEASON, and POSTGRES_TABLE so slicks auto-connects on
import. The published PyPI slicks (0.2.3) is the InfluxDB backend
and would not be importable as TimescaleDB-aware code; install from
local source instead.
- server/installer/sandbox/requirements-docker.txt: drop the
'slicks>=0.2.0' PyPI pin. Slicks is now installed editable from the
local source above; the pin was pulling the InfluxDB-only release.
- server/installer/sandbox/requirements.txt: add psycopg2-binary
(slicks depends on it; listing explicitly so the layer order is
stable across slicks extras changes).
Code-generator Dockerfile fix:
- server/installer/sandbox/Dockerfile: the previous version only COPY'd
prompt-guide.txt.example, so the active (gitignored) prompt-guide.txt
was silently being ignored at every build. Switched to COPY
prompt-guide.txt* ./ (with the existing fallback to copy the example
when the active file is missing). This restores the team's
customization workflow where the active prompt-guide lives in the
build context and gets shipped to the container.
Model bump:
- server/installer/.env.example: ANTHROPIC_MODEL default MiniMax-M2.7
-> MiniMax-M3.
- server/installer/sandbox/code_generator.py: same bump in the
os.getenv default so a missing env var falls back to M3.
Tested end-to-end: code-generator /api/generate-code returns
result.status=success with a PNG, slicks.fetch_telemetry() returns
407k rows from a real TimescaleDB window, and the slackbot -> code-gen
-> sandbox chain still works.1 parent a6c623c commit 5eed9f8
7 files changed
Lines changed: 54 additions & 15 deletions
File tree
- server/installer
- sandbox
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
264 | 270 | | |
265 | 271 | | |
266 | 272 | | |
267 | 273 | | |
268 | 274 | | |
269 | 275 | | |
270 | 276 | | |
271 | | - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
272 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
273 | 289 | | |
274 | 290 | | |
275 | 291 | | |
| |||
314 | 330 | | |
315 | 331 | | |
316 | 332 | | |
317 | | - | |
| 333 | + | |
318 | 334 | | |
319 | 335 | | |
320 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
32 | 37 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
36 | 51 | | |
37 | 52 | | |
38 | 53 | | |
| |||
42 | 57 | | |
43 | 58 | | |
44 | 59 | | |
45 | | - | |
| 60 | + | |
| 61 | + | |
46 | 62 | | |
47 | 63 | | |
48 | | - | |
| 64 | + | |
49 | 65 | | |
50 | 66 | | |
51 | 67 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
0 commit comments