Skip to content

[Feature] 添加交互式shell工具 #8084

@elecvoid243

Description

@elecvoid243

Description / 描述

问题astrbot_execute_shell目前不支持运行交互式程序,会导致stdin悬空等待,进而引发超时。例如一个“按任意键继续”的console程序,或是一个REPL环境
建议:为astrbot添加一套交互式的shell工具,可以包含以下工具
工具描述
astrbot_inta_shell_start 启动交互式程序
astrbot_inta_shell_send 向交互式程序发送输入
astrbot_inta_shell_read 读取交互式程序的输出
astrbot_inta_shell_stop 终止交互式程序
astrbot_inta_shell_list 列出运行中的交互式程序
尽管功能可以用插件实现,但建议astrbot原生支持该能力

Use Case / 使用场景

能够启动交互式程序、等待确认的程序或默认从 stdin 读取配置的工具

Willing to Submit PR? / 是否愿意提交PR?

  • Yes, I am willing to submit a PR. / 是的,我愿意提交 PR。

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreThe bug / feature is about astrbot's core, backendenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions