feat: add metadata-based script timeouts with validation and request timeout handling

This commit is contained in:
2026-02-24 22:48:57 +08:00
parent 97b337e143
commit cdc91d7ffd
6 changed files with 166 additions and 10 deletions

View File

@@ -454,6 +454,7 @@ fun openEditor(oldStty: String, file: File): Pair<Boolean, String> {
fun initialScriptTemplate(name: String): String =
"""
// @desc: $name
// @timeout: 10s
// @param: sample | default=value | desc=example parameter
val args: Array<String> = emptyArray()