dummy_interactive.yaml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. system_template: |-
  2. SETTING
  3. COMMANDS:
  4. {command_docs}
  5. instance_template: |-
  6. (Open file: {open_file})
  7. (Current directory: {working_dir})
  8. (Interactive session: {interactive_session})
  9. bash-$
  10. next_step_template: |-
  11. {observation}
  12. (Open file: {open_file})
  13. (Current directory: {working_dir})
  14. (Interactive session: {interactive_session})
  15. bash-$
  16. next_step_no_output_template: |-
  17. Your command ran successfully and did not produce any output.
  18. (Open file: {open_file})
  19. (Current directory: {working_dir})
  20. (Interactive session: {interactive_session})
  21. bash-$
  22. state_command:
  23. name: state
  24. code: |
  25. state() {
  26. local working_dir="$PWD";
  27. local open_file="n/a";
  28. local interactive_session="${INTERACTIVE_SESSION:-n/a}";
  29. if [ ! -z $CURRENT_FILE ]; then
  30. open_file=$(realpath $CURRENT_FILE);
  31. fi
  32. echo '{"open_file": "'$open_file'", "working_dir": "'$working_dir'", "interactive_session": "'$interactive_session'"}'
  33. };
  34. parse_function: ThoughtActionParser
  35. env_variables:
  36. WINDOW: 100
  37. OVERLAP: 2
  38. CURRENT_LINE: 0
  39. CURRENT_FILE: ''
  40. SEARCH_RESULTS: ()
  41. SEARCH_FILES: ()
  42. SEARCH_INDEX: 0
  43. command_files:
  44. - config/commands/defaults.sh
  45. - tests/test_commands/interactive_dummy_wrapper.sh
  46. - tests/test_commands/_interactive_dummy.py
  47. parse_command: ParseCommandDetailed
  48. history_processor: Last5Observations
  49. blocklist:
  50. - vim
  51. - vi
  52. - emacs
  53. - nano
  54. - nohup
  55. - gdb
  56. blocklist_error_template: |
  57. Interactive operation '{name}' is not supported by this environment.
  58. Please consider using one of the interactive commands available to you in this environment.