-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.schema.json
More file actions
170 lines (170 loc) · 4.94 KB
/
settings.schema.json
File metadata and controls
170 lines (170 loc) · 4.94 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/aianyai/hai/settings.schema.json",
"title": "hai CLI Configuration",
"description": "Configuration schema for hai CLI tool",
"type": "object",
"definitions": {
"options": {
"type": "object",
"description": "Runtime options (can be set globally or per-profile)",
"properties": {
"stream": {
"type": "boolean",
"description": "Enable streaming output in TTY mode",
"default": true
},
"think": {
"type": "boolean",
"description": "Enable thinking mode",
"default": false
},
"mode": {
"type": "string",
"enum": ["auto", "chat"],
"description": "Default mode: auto (agent with tool use) or chat (pure text)",
"default": "auto"
},
"maxSteps": {
"type": "integer",
"description": "Maximum command execution steps in agent mode",
"default": 25,
"minimum": 1
},
"timeout": {
"type": "integer",
"description": "Command execution timeout in seconds",
"default": 120,
"minimum": 1
},
"pipe": {
"type": "object",
"description": "Settings for pipe (non-TTY) mode",
"properties": {
"stream": {
"type": "boolean",
"description": "Enable streaming in pipe mode",
"default": false
},
"color": {
"type": "boolean",
"description": "Enable color output in pipe mode",
"default": false
}
}
}
}
}
},
"properties": {
"profiles": {
"type": "array",
"description": "List of AI provider profiles",
"items": {
"type": "object",
"required": ["name", "provider", "model"],
"properties": {
"name": {
"type": "string",
"description": "Profile name for --profile option"
},
"default": {
"type": "boolean",
"description": "Set as default profile",
"default": false
},
"provider": {
"type": "string",
"enum": ["openai", "openai-compatible", "anthropic", "gemini"],
"description": "AI provider type"
},
"model": {
"type": "string",
"description": "Model name/ID to use"
},
"apiKey": {
"type": "string",
"description": "API key (supports $ENV_VAR syntax)"
},
"baseURL": {
"type": "string",
"description": "API base URL (supports $ENV_VAR syntax)"
},
"headers": {
"type": "object",
"description": "Custom headers to include in API requests",
"additionalProperties": {
"type": "string"
}
},
"options": {
"$ref": "#/definitions/options",
"description": "Profile-specific options (overrides global options)"
},
"providerOptions": {
"type": "object",
"description": "Provider-specific options passed to AI SDK (e.g., thinking, effort, reasoningEffort)"
}
}
},
"default": [
{
"name": "claude",
"provider": "anthropic",
"model": "claude-opus-4-5",
"apiKey": "$ANTHROPIC_API_KEY",
"baseURL": "https://api.anthropic.com/v1",
"default": true
},
{
"name": "gpt",
"provider": "openai",
"model": "gpt-5.2-pro",
"apiKey": "$OPENAI_API_KEY",
"baseURL": "https://api.openai.com/v1"
},
{
"name": "gemini",
"provider": "gemini",
"model": "gemini-3-pro-preview",
"apiKey": "$GOOGLE_API_KEY",
"baseURL": "https://generativelanguage.googleapis.com/v1beta"
},
{
"name": "deepseek",
"provider": "openai-compatible",
"model": "deepseek-reasoner",
"apiKey": "$DEEPSEEK_API_KEY",
"baseURL": "https://api.deepseek.com/v1"
}
]
},
"prompts": {
"type": "object",
"description": "Predefined prompt templates with {{input}} placeholder",
"additionalProperties": {
"type": "string"
},
"default": {
"translate": "Translate to English: {{input}}",
"explain": "Explain in simple terms: {{input}}"
}
},
"options": {
"$ref": "#/definitions/options",
"description": "Global runtime options",
"default": {
"stream": true,
"think": false,
"mode": "auto",
"maxSteps": 25,
"timeout": 120,
"pipe": {
"stream": false,
"color": false
}
}
}
},
"required": ["profiles"]
}