Spaces:
Paused
Paused
Upload plugins/_code_execution/default_config.yaml with huggingface_hub
Browse files
plugins/_code_execution/default_config.yaml
CHANGED
|
@@ -1,3 +1,39 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Shell interface: auto = auto-detect (SSH when non-dockerized, local when dockerized),
|
| 2 |
+
# true = always SSH, false = always local TTY
|
| 3 |
+
ssh_enabled: auto
|
| 4 |
+
|
| 5 |
+
# SSH credentials (used when ssh_enabled is true or auto-detected)
|
| 6 |
+
# ssh_addr: derived from rfc_url setting when empty
|
| 7 |
+
ssh_addr: ""
|
| 8 |
+
ssh_port: 55022
|
| 9 |
+
ssh_user: root
|
| 10 |
+
# ssh_pass: uses root_password from RFC exchange when empty
|
| 11 |
+
ssh_pass: ""
|
| 12 |
+
|
| 13 |
+
# Timeouts for python/nodejs/terminal runtimes (seconds)
|
| 14 |
+
code_exec_first_output_timeout: 30
|
| 15 |
+
code_exec_between_output_timeout: 15
|
| 16 |
+
code_exec_max_exec_timeout: 180
|
| 17 |
+
code_exec_dialog_timeout: 5
|
| 18 |
+
|
| 19 |
+
# Timeouts for "output" runtime (seconds)
|
| 20 |
+
output_first_output_timeout: 90
|
| 21 |
+
output_between_output_timeout: 45
|
| 22 |
+
output_max_exec_timeout: 300
|
| 23 |
+
output_dialog_timeout: 5
|
| 24 |
+
|
| 25 |
+
# Shell prompt detection patterns (one regex per line)
|
| 26 |
+
# When matched, output is returned immediately without waiting for timeout
|
| 27 |
+
prompt_patterns: |
|
| 28 |
+
(\(venv\)).+[$#] ?$
|
| 29 |
+
root@[^:]+:[^#]+# ?$
|
| 30 |
+
[a-zA-Z0-9_.-]+@[^:]+:[^$#]+[$#] ?$
|
| 31 |
+
\(?.*\)?\s*PS\s+[^>]+> ?$
|
| 32 |
+
|
| 33 |
+
# Dialog detection patterns (one regex per line, case-insensitive)
|
| 34 |
+
# When matched after dialog_timeout, control is returned to the agent
|
| 35 |
+
dialog_patterns: |
|
| 36 |
+
Y/N
|
| 37 |
+
yes/no
|
| 38 |
+
:\s*$
|
| 39 |
+
\?\s*$
|