Files
wehub-resource-sync 4e0f4422d0
Check Markdown links / markdown-link-check (push) Waiting to run
Pytest / test (3.11) (push) Waiting to run
Pytest / test (3.12) (push) Waiting to run
build-docs / deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:25:42 +08:00

63 lines
1.6 KiB
YAML

system_template: |-
SETTING
COMMANDS:
{command_docs}
instance_template: |-
(Open file: {open_file})
(Current directory: {working_dir})
(Interactive session: {interactive_session})
bash-$
next_step_template: |-
{observation}
(Open file: {open_file})
(Current directory: {working_dir})
(Interactive session: {interactive_session})
bash-$
next_step_no_output_template: |-
Your command ran successfully and did not produce any output.
(Open file: {open_file})
(Current directory: {working_dir})
(Interactive session: {interactive_session})
bash-$
state_command:
name: state
code: |
state() {
local working_dir="$PWD";
local open_file="n/a";
local interactive_session="${INTERACTIVE_SESSION:-n/a}";
if [ ! -z $CURRENT_FILE ]; then
open_file=$(realpath $CURRENT_FILE);
fi
echo '{"open_file": "'$open_file'", "working_dir": "'$working_dir'", "interactive_session": "'$interactive_session'"}'
};
parse_function: ThoughtActionParser
env_variables:
WINDOW: 100
OVERLAP: 2
CURRENT_LINE: 0
CURRENT_FILE: ''
SEARCH_RESULTS: ()
SEARCH_FILES: ()
SEARCH_INDEX: 0
command_files:
- config/commands/defaults.sh
- tests/test_commands/interactive_dummy_wrapper.sh
- tests/test_commands/_interactive_dummy.py
parse_command: ParseCommandDetailed
history_processors:
- type: last_n_observations
n: 5
blocklist:
- vim
- vi
- emacs
- nano
- nohup
- gdb
blocklist_error_template: |
Interactive operation '{name}' is not supported by this environment.
Please consider using one of the interactive commands available to you in this environment.