Repository navigation
Expand file tree
/
Copy path_conf_schema.json
More file actions
165 lines (165 loc) · 5.91 KB
/
Copy path_conf_schema.json
File metadata and controls
165 lines (165 loc) · 5.91 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
{
"base_url": {
"description": "MCSManager 面板地址",
"type": "string",
"hint": "例如 http://localhost:23333,请勿带末尾斜杠",
"default": "http://localhost:23333"
},
"api_token": {
"description": "MCSManager API 令牌",
"type": "string",
"hint": "在面板用户管理中,「API 密钥」中生成或查看",
"default": ""
},
"tool_permissions": {
"description": "工具权限控制",
"type": "object",
"hint": "为每个工具单独设置权限:所有人 = 任何用户可用;仅管理员 = 仅 AstrBot 管理员可用;禁用 = 任何人都不能使用(包括管理员)。「管理员」指 AstrBot 全局配置中的管理员。",
"items": {
"mcsmanager_get_overview": {
"description": "获取面板全局概览",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
},
"mcsmanager_get_daemon_list": {
"description": "获取节点列表",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
},
"mcsmanager_node_bash": {
"description": "节点终端执行 bash",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
},
"mcsmanager_get_instances": {
"description": "获取实例列表",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
},
"mcsmanager_get_instance_detail": {
"description": "获取实例详情",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
},
"mcsmanager_start_instance": {
"description": "启动实例",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
},
"mcsmanager_stop_instance": {
"description": "停止实例",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
},
"mcsmanager_restart_instance": {
"description": "重启实例",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
},
"mcsmanager_kill_instance": {
"description": "强制终止实例",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
},
"mcsmanager_send_command": {
"description": "发送控制台命令",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
},
"mcsmanager_get_instance_log": {
"description": "获取实例日志",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
},
"mcsmanager_list_files": {
"description": "列出文件",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
},
"mcsmanager_read_file": {
"description": "读取文件",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
},
"mcsmanager_write_file": {
"description": "写入文件",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
},
"mcsmanager_delete_files": {
"description": "删除文件",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
},
"mcsmanager_create_folder": {
"description": "新建文件夹",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
},
"mcsmanager_compress_files": {
"description": "压缩文件",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
},
"mcsmanager_decompress_file": {
"description": "解压文件",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
},
"mcsmanager_copy_files": {
"description": "复制文件",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
},
"mcsmanager_move_files": {
"description": "移动或重命名文件",
"type": "string",
"options": ["所有人", "仅管理员", "禁用"],
"default": "仅管理员"
}
}
},
"blocked_instances": {
"description": "禁止操作的实例",
"type": "list",
"hint": "填写实例 UUID 或名称关键词(子串匹配,忽略大小写),每行一个。被列入的实例对 AI 完全隐藏,且拒绝一切针对它的操作(对管理员同样生效)。填写节点 ID 可封锁该节点的节点终端。",
"default": []
},
"bash_timeout": {
"description": "节点命令默认超时(秒)",
"type": "int",
"hint": "mcsmanager_node_bash 等待命令输出的上限,5~300 秒。命令仍在执行时会返回已完成的部分输出。",
"default": 30
},
"bash_max_output": {
"description": "节点命令输出上限(字符)",
"type": "int",
"hint": "超过该长度的输出会在中间截断,保留首尾两段,避免撑爆模型上下文。",
"default": 8000
},
"bash_blocked_commands": {
"description": "禁止执行的命令规则",
"type": "list",
"hint": "每行一条规则,按正则匹配(忽略大小写),正则非法时按子串匹配。例如 rm\\s+-rf\\s+/、reboot、shutdown。默认不限制。",
"default": []
}
}