Repository navigation
Expand file tree
/
Copy pathopencode-arise.schema.json
More file actions
548 lines (548 loc) · 18.9 KB
/
Copy pathopencode-arise.schema.json
File metadata and controls
548 lines (548 loc) · 18.9 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"title": "Arise Config",
"description": "Arise 主配置結構 / Arise main configuration schema",
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string",
"title": "Schema",
"description": "JSON Schema URI / JSON Schema URI"
},
"disabled_shadows": {
"type": "array",
"title": "Disabled Shadows",
"description": "要停用的 Shadow Agents 列表 / List of Shadow Agents to disable",
"items": {
"type": "string",
"title": "Shadow Agent Name",
"description": "Shadow Agent 名稱 / Shadow Agent name",
"enum": [
"monarch",
"beru",
"igris",
"bellion",
"tusk",
"tank",
"shadow-sovereign",
"esil-radiru"
]
}
},
"disabled_tools": {
"type": "array",
"title": "Disabled Tools",
"description": "要停用的工具列表 / List of tools to disable",
"items": {
"type": "string",
"enum": [
"arise_summon",
"arise_background",
"arise_background_output",
"arise_background_status",
"arise_background_cancel",
"arise_list_models",
"arise_continue",
"arise_debug",
"arise_git_summary",
"arise_collaborate"
]
}
},
"disabled_hooks": {
"type": "array",
"title": "Disabled Hooks",
"description": "要停用的 Hook 列表 / List of hooks to disable",
"items": {
"type": "string",
"title": "Hook Name",
"description": "生命週期 Hook 名稱 / Lifecycle hook name",
"enum": [
"arise-banner",
"output-shaper",
"compaction-preserver",
"todo-enforcer"
]
}
},
"show_banner": {
"type": "boolean",
"title": "Show Banner",
"description": "是否顯示歡迎橫幅 / Show welcome banner",
"default": true
},
"banner_every_session": {
"type": "boolean",
"title": "Banner Every Session",
"description": "每個工作階段都顯示橫幅 / Show banner every session",
"default": false
},
"agents": {
"type": "object",
"title": "Agents",
"description": "各代理的覆寫設定 / Per-agent override settings",
"additionalProperties": {
"type": "object",
"title": "Agent Override",
"description": "代理覆寫設定 / Agent override settings",
"additionalProperties": false,
"properties": {
"model": {
"type": "string",
"title": "Model",
"description": "要使用的模型名稱 / Model name to use"
},
"disabled": {
"type": "boolean",
"title": "Disabled",
"description": "是否停用此代理 / Whether to disable this agent"
},
"system_prompt_addon": {
"type": "string",
"title": "System Prompt Addon",
"description": "系統提示補充內容 / System prompt supplement content"
},
"poll_interval": {
"type": "number",
"title": "Poll Interval",
"description": "輪詢間隔(毫秒)/ Polling interval in milliseconds",
"default": 2000
},
"retry_delay_increment": {
"type": "number",
"title": "Retry Delay Increment",
"description": "重試延遲遞增量(毫秒)/ Retry delay increment in milliseconds",
"default": 5000
},
"retry_delay_max": {
"type": "number",
"title": "Retry Delay Max",
"description": "重試延遲最大值(毫秒)/ Maximum retry delay in milliseconds",
"default": 60000
},
"auto_resume": {
"type": "object",
"additionalProperties": false,
"required": [
"enabled",
"max_retries",
"retry_delay",
"backoff_strategy",
"backoff_multiplier",
"backoff_max_delay",
"on_error",
"target",
"prompts",
"safety_prompt"
],
"properties": {
"enabled": {
"type": "boolean",
"title": "Enabled",
"description": "是否啟用自動繼續任務 / Enable auto resume"
},
"max_retries": {
"type": "number",
"title": "Max Retries",
"description": "最大重試次數 / Maximum retry count"
},
"retry_delay": {
"type": "number",
"title": "Retry Delay",
"description": "重試延遲(毫秒)/ Retry delay in milliseconds"
},
"backoff_strategy": {
"type": "string",
"title": "Backoff Strategy",
"description": "Backoff 策略:fixed=固定延遲、exponential=指數倍增 / Backoff strategy: fixed=fixed delay, exponential=exponential increase",
"enum": [
"fixed",
"exponential"
]
},
"backoff_multiplier": {
"type": "number",
"title": "Backoff Multiplier",
"description": "Backoff 倍增因子(僅 exponential 策略)/ Backoff multiplier (only for exponential strategy)"
},
"backoff_max_delay": {
"type": "number",
"title": "Backoff Max Delay",
"description": "Backoff 最大延遲(毫秒)/ Maximum backoff delay in milliseconds"
},
"on_error": {
"type": "string",
"title": "On Error",
"description": "錯誤時的行為:ignore=忽略、retry=重試、notify=通知 / Behavior on error: ignore=ignore, retry=retry, notify=notify",
"enum": [
"ignore",
"retry",
"notify"
]
},
"target": {
"type": "string",
"title": "Target",
"description": "目標任務類型:background=背景任務、all=所有任務 / Target task type: background=background tasks, all=all tasks",
"enum": [
"background",
"all"
]
},
"prompts": {
"type": "object",
"title": "Prompts",
"description": "自訂提示訊息 / Custom prompts",
"additionalProperties": false,
"properties": {
"retry": {
"type": "string",
"title": "Retry Prompt",
"description": "首次重試時的提示 / Prompt for first retry"
},
"final": {
"type": "string",
"title": "Final Prompt",
"description": "最終重試時的提示 / Prompt for final retry"
},
"custom": {
"type": "array",
"title": "Custom Prompts",
"description": "自定義提示陣列,按順序使用 / Custom prompt array, used in order",
"items": {
"type": "string"
}
}
}
},
"safety_prompt": {
"type": "string",
"title": "Safety Prompt",
"description": "自動繼續任務前发送的安全检查提示 / Safety check prompt before auto resume"
}
}
}
}
},
"required": [
"monarch",
"beru",
"igris",
"bellion",
"tusk",
"tank",
"shadow-sovereign",
"esil-radiru"
],
"propertyNames": {
"type": "string",
"title": "Shadow Agent Name",
"description": "Shadow Agent 名稱 / Shadow Agent name",
"enum": [
"monarch",
"beru",
"igris",
"bellion",
"tusk",
"tank",
"shadow-sovereign",
"esil-radiru"
]
}
},
"output_shaping": {
"type": "object",
"title": "Output Shaping",
"description": "輸出截斷設定 / Output truncation settings",
"additionalProperties": false,
"required": [
"max_chars",
"preserve_errors"
],
"properties": {
"max_chars": {
"type": "number",
"title": "Max Chars",
"description": "最大輸出字元數 / Maximum output characters",
"default": 12000
},
"preserve_errors": {
"type": "boolean",
"title": "Preserve Errors",
"description": "是否保留錯誤輸出 / Preserve error output",
"default": true
}
}
},
"compaction": {
"type": "object",
"title": "Compaction",
"description": "對話壓縮設定 / Conversation compaction settings",
"additionalProperties": false,
"required": [
"threshold_percent",
"preserve_todos"
],
"properties": {
"threshold_percent": {
"type": "number",
"title": "Threshold Percent",
"description": "觸發壓縮的閾值百分比(50-95)/ Compaction threshold percent (50-95)",
"default": 80,
"minimum": 50,
"maximum": 95
},
"preserve_todos": {
"type": "boolean",
"title": "Preserve TODOs",
"description": "保留 TODO 項目 / Preserve TODO items",
"default": true
}
}
},
"background": {
"type": "object",
"title": "Background",
"description": "背景任務設定 / Background task settings",
"additionalProperties": false,
"required": [
"poll_interval",
"retry_delay_increment",
"retry_delay_max"
],
"properties": {
"poll_interval": {
"type": "number",
"title": "Poll Interval",
"description": "輪詢間隔(毫秒)/ Polling interval in milliseconds",
"default": 2000
},
"retry_delay_increment": {
"type": "number",
"title": "Retry Delay Increment",
"description": "重試延遲遞增量(毫秒)/ Retry delay increment in milliseconds",
"default": 5000
},
"retry_delay_max": {
"type": "number",
"title": "Retry Delay Max",
"description": "重試延遲最大值(毫秒)/ Maximum retry delay in milliseconds",
"default": 60000
},
"auto_resume": {
"type": "object",
"title": "Auto Resume",
"description": "自動繼續任務設定 / Auto resume settings",
"additionalProperties": false,
"required": [
"enabled",
"on_error",
"target"
],
"properties": {
"enabled": {
"type": "boolean",
"title": "Enabled",
"description": "是否啟用自動繼續任務 / Enable auto resume",
"default": false
},
"max_retries": {
"type": "number",
"title": "Max Retries",
"description": "最大重試次數 / Maximum retry count",
"default": 3
},
"retry_delay": {
"type": "number",
"title": "Retry Delay",
"description": "重試延遲(毫秒)/ Retry delay in milliseconds",
"default": 5000
},
"backoff_strategy": {
"type": "string",
"title": "Backoff Strategy",
"description": "Backoff 策略:fixed=固定延遲、exponential=指數倍增 / Backoff strategy: fixed=fixed delay, exponential=exponential increase",
"default": "fixed",
"enum": [
"fixed",
"exponential"
]
},
"backoff_multiplier": {
"type": "number",
"title": "Backoff Multiplier",
"description": "Backoff 倍增因子(僅 exponential 策略)/ Backoff multiplier (only for exponential strategy)",
"default": 2
},
"backoff_max_delay": {
"type": "number",
"title": "Backoff Max Delay",
"description": "Backoff 最大延遲(毫秒)/ Maximum backoff delay in milliseconds",
"default": 300000
},
"on_error": {
"type": "string",
"title": "On Error",
"description": "錯誤時的行為:ignore=忽略、retry=重試、notify=通知 / Behavior on error: ignore=ignore, retry=retry, notify=notify",
"default": "ignore",
"enum": [
"ignore",
"retry",
"notify"
]
},
"target": {
"type": "string",
"title": "Target",
"description": "目標任務類型:background=背景任務、all=所有任務 / Target task type: background=background tasks, all=all tasks",
"default": "background",
"enum": [
"background",
"all"
]
},
"prompts": {
"type": "object",
"title": "Prompts",
"description": "自訂提示訊息 / Custom prompts",
"additionalProperties": false,
"properties": {
"retry": {
"type": "string",
"title": "Retry Prompt",
"description": "首次重試時的提示 / Prompt for first retry"
},
"final": {
"type": "string",
"title": "Final Prompt",
"description": "最終重試時的提示 / Prompt for final retry"
},
"custom": {
"type": "array",
"title": "Custom Prompts",
"description": "自定義提示陣列,按順序使用 / Custom prompt array, used in order",
"items": {
"type": "string"
}
}
}
},
"safety_prompt": {
"type": "string",
"title": "Safety Prompt",
"description": "自動繼續任務前发送的安全检查提示 / Safety check prompt before auto resume",
"default": "This is an automatic retry. Follow these steps:\n\n1. If the next step is clear and actionable, proceed.\n2. If potential risks exist (e.g., destructive changes, data loss, security concerns, or modifying files outside the project), stop, explain the risks, and request confirmation.\n3. If requirements are ambiguous or information is insufficient, stop, state the uncertainty, and request clarification.\n4. Unless the user explicitly requests to revert changes or delete files, always ask for permission first and only proceed after obtaining user consent.\n\n**If the task is complete, review and summarize the results, then end.**"
}
}
}
}
},
"collaborate": {
"type": "object",
"title": "Collaborate",
"description": "協作任務設定 / Collaboration task settings",
"additionalProperties": false,
"properties": {
"allowed_modes": {
"type": "array",
"title": "Allowed Modes",
"description": "允許的模式列表,若設定則只允許這些模式 / Allowed modes, if set only these modes are allowed",
"items": {
"type": "string",
"enum": [
"planning",
"parallel",
"chain"
]
}
},
"denied_modes": {
"type": "array",
"title": "Denied Modes",
"description": "禁止的模式列表,優先於 allowed_modes / Denied modes, takes precedence over allowed_modes",
"items": {
"type": "string",
"enum": [
"planning",
"parallel",
"chain"
]
}
},
"total_rounds": {
"type": "integer",
"title": "Total Rounds",
"description": "預設總回合數(預設 8)/ Default total rounds (default 8)",
"minimum": 1,
"maximum": 9007199254740991
},
"total_rounds_max": {
"type": "integer",
"title": "Total Rounds Max",
"description": "總回合數最大上限(預設 15)/ Total rounds maximum limit (default 15)",
"minimum": 1,
"maximum": 9007199254740991
},
"per_agent_rounds": {
"type": "integer",
"title": "Per Agent Rounds",
"description": "預設每個 agent 回合數 / Default per-agent rounds",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"max_concurrent": {
"type": "integer",
"title": "Max Concurrent",
"description": "預設最大並行數(最大 5)/ Default max concurrent (max 5)",
"minimum": 1,
"maximum": 9007199254740991
},
"round_timeout_ms": {
"type": "integer",
"title": "Round Timeout",
"description": "預設回合超時(毫秒)/ Default round timeout (ms)",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"round_timeout_ms_max": {
"type": "integer",
"title": "Round Timeout Max",
"description": "回合超時最大上限(毫秒)/ Round timeout maximum limit (ms)",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
}
},
"debug": {
"type": "object",
"title": "Debug",
"description": "除錯設定 / Debug settings",
"additionalProperties": false,
"required": [
"enabled",
"level"
],
"properties": {
"enabled": {
"type": "boolean",
"title": "Enabled",
"description": "是否啟用除錯模式 / Enable debug mode",
"default": false
},
"level": {
"type": "string",
"title": "Level",
"description": "日誌級別:error、warn、info、debug / Log level: error, warn, info, debug",
"default": "warn",
"enum": [
"error",
"warn",
"info",
"debug"
]
}
}
}
}
}