Skip to content

Commit de76181

Browse files
NjoyimPeguyNjoyimPeguyclaude
authored
Update crucible-code schema for 0.45.0 (#6446)
Co-authored-by: NjoyimPeguy <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
1 parent 738daaf commit de76181

7 files changed

Lines changed: 58 additions & 4 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"output": {
3+
"screen": "inline"
4+
}
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"output": {
3+
"scrollRail": "on"
4+
}
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"output": {
3+
"transcriptColours": "loud"
4+
}
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"env": {
3+
"CRUCIBLE_CODE_MOUSE_SCROLL_SPEED": "2"
4+
}
5+
}

‎src/schemas/json/crucible-code-schema.json‎

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,19 @@
9292
"type": "string"
9393
},
9494
"CRUCIBLE_CODE_MOUSE_SCROLL_SPEED": {
95+
"anyOf": [
96+
{
97+
"maximum": 30,
98+
"minimum": 3,
99+
"type": "integer"
100+
},
101+
{
102+
"pattern": "^([3-9]|[12][0-9]|30)$",
103+
"type": "string"
104+
}
105+
],
95106
"default": "6",
96-
"description": "How many rows or list entries one notch of the wheel moves, wherever the wheel scrolls",
97-
"pattern": "^\\+?0*(?:1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30)$",
98-
"type": "string"
107+
"description": "How many rows or list entries one notch of the wheel moves, wherever the wheel scrolls"
99108
}
100109
},
101110
"propertyNames": {
@@ -350,6 +359,17 @@
350359
"enum": ["unicode", "ascii"],
351360
"type": "string"
352361
},
362+
"screen": {
363+
"default": "fullscreen",
364+
"description": "Where crucible draws, read at start: fullscreen takes a screen of its own with its own scrollback, rail and selection; native draws in the terminal's own buffer and leaves scrolling, selection and copy to the terminal",
365+
"enum": ["fullscreen", "native"],
366+
"type": "string"
367+
},
368+
"scrollRail": {
369+
"default": true,
370+
"description": "Whether the transcript has a one-column rail on its right edge showing where the screen is and where each prompt was; a click or a drag on it scrolls there",
371+
"type": "boolean"
372+
},
353373
"syntaxTheme": {
354374
"default": "Monokai Extended",
355375
"description": "Which theme fenced code is drawn in — a name from /theme, such as Monokai Extended, GitHub, Dracula or Nord",
@@ -374,6 +394,12 @@
374394
"description": "How much of a tool call and its result one line shows",
375395
"enum": ["compact", "full"],
376396
"type": "string"
397+
},
398+
"transcriptColours": {
399+
"default": "calm",
400+
"description": "How many of the theme's colours the transcript spends: calm on code, paths and links, balanced on versions and a call's path or address too, rich on headings, lists, quotes and figures as well",
401+
"enum": ["calm", "balanced", "rich"],
402+
"type": "string"
377403
}
378404
},
379405
"type": "object"

‎src/test/crucible-code-schema/config.json‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,12 @@
5050
"output": {
5151
"color": "auto",
5252
"glyphs": "unicode",
53+
"screen": "native",
54+
"scrollRail": false,
5355
"syntaxTheme": "GitHub",
5456
"theme": "dark",
55-
"toolDetail": "compact"
57+
"toolDetail": "compact",
58+
"transcriptColours": "balanced"
5659
},
5760
"permissions": {
5861
"allow": ["read(src/**)", "bash(cargo test)"],
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"env": {
3+
"CRUCIBLE_CODE_MOUSE_SCROLL_SPEED": 6
4+
}
5+
}

0 commit comments

Comments
 (0)