From bfcccd2dcc6de07daea173e2253919e93c807354 Mon Sep 17 00:00:00 2001 From: Florian DAVID <150798857+fdaviddpt@users.noreply.github.com> Date: Sat, 8 Aug 2026 21:53:33 +0200 Subject: [PATCH 1/2] .supertool.json: declare batch, so the op that collapses N calls into one is discoverable Co-Authored-By: Max --- .supertool.json | 40 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/.supertool.json b/.supertool.json index 51fb17b..b0e29b2 100644 --- a/.supertool.json +++ b/.supertool.json @@ -6,28 +6,60 @@ "rtk": false, "allow_outside_cwd": false, "allow_vim_shell": false, - "presets": ["github", "git"], + "presets": [ + "github", + "git" + ], "validators": { "ruff": { "cmd": "{python} {supertool_dir}/validators/ruff/ruff.py {file}", "match": "*.py", - "hooks_into": ["edit", "replace", "replace_lines", "paste", "append", "vim"], + "hooks_into": [ + "edit", + "replace", + "replace_lines", + "paste", + "append", + "vim" + ], "rollback_on_fail": false, "timeout": 30 }, "jsonlint": { "cmd": "{python} {supertool_dir}/validators/jsonlint/jsonlint.py {file}", "match": "*.json", - "hooks_into": ["edit", "replace", "replace_lines", "paste", "append", "vim"], + "hooks_into": [ + "edit", + "replace", + "replace_lines", + "paste", + "append", + "vim" + ], "rollback_on_fail": true, "timeout": 10 }, "git-status": { "cmd": "{python} {supertool_dir}/validators/git-status/git-status.py {file}", "match": "*", - "hooks_into": ["edit", "replace", "replace_lines", "paste", "append", "vim"], + "hooks_into": [ + "edit", + "replace", + "replace_lines", + "paste", + "append", + "vim" + ], "rollback_on_fail": false, "timeout": 10 } + }, + "builtin-ops": { + "batch": { + "syntax": "batch:@file.json", + "description": "Run array of ops in one call. Mix read+edit+grep in one round-trip. Payload: array of {op,...} or {continue_on_error, ops}. A call carries one @- payload, so without this N edits are N calls.", + "example": "batch:@.max/ops.json", + "hint": true + } } } From 955e2ee8f8de86e4475b0a411ed754f5d4d0d2c1 Mon Sep 17 00:00:00 2001 From: Florian DAVID <150798857+fdaviddpt@users.noreply.github.com> Date: Sat, 8 Aug 2026 21:55:06 +0200 Subject: [PATCH 2/2] =?UTF-8?q?.supertool.json:=20keep=20the=20original=20?= =?UTF-8?q?formatting=20=E2=80=94=20the=20previous=20commit=20reflowed=20e?= =?UTF-8?q?very=20inline=20array?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Max --- .supertool.json | 34 +++++----------------------------- 1 file changed, 5 insertions(+), 29 deletions(-) diff --git a/.supertool.json b/.supertool.json index b0e29b2..accf589 100644 --- a/.supertool.json +++ b/.supertool.json @@ -6,50 +6,26 @@ "rtk": false, "allow_outside_cwd": false, "allow_vim_shell": false, - "presets": [ - "github", - "git" - ], + "presets": ["github", "git"], "validators": { "ruff": { "cmd": "{python} {supertool_dir}/validators/ruff/ruff.py {file}", "match": "*.py", - "hooks_into": [ - "edit", - "replace", - "replace_lines", - "paste", - "append", - "vim" - ], + "hooks_into": ["edit", "replace", "replace_lines", "paste", "append", "vim"], "rollback_on_fail": false, "timeout": 30 }, "jsonlint": { "cmd": "{python} {supertool_dir}/validators/jsonlint/jsonlint.py {file}", "match": "*.json", - "hooks_into": [ - "edit", - "replace", - "replace_lines", - "paste", - "append", - "vim" - ], + "hooks_into": ["edit", "replace", "replace_lines", "paste", "append", "vim"], "rollback_on_fail": true, "timeout": 10 }, "git-status": { "cmd": "{python} {supertool_dir}/validators/git-status/git-status.py {file}", "match": "*", - "hooks_into": [ - "edit", - "replace", - "replace_lines", - "paste", - "append", - "vim" - ], + "hooks_into": ["edit", "replace", "replace_lines", "paste", "append", "vim"], "rollback_on_fail": false, "timeout": 10 } @@ -57,7 +33,7 @@ "builtin-ops": { "batch": { "syntax": "batch:@file.json", - "description": "Run array of ops in one call. Mix read+edit+grep in one round-trip. Payload: array of {op,...} or {continue_on_error, ops}. A call carries one @- payload, so without this N edits are N calls.", + "description": "Run array of ops in one call. Mix read+edit+grep in one round-trip. Payload: array of {op,...} or {continue_on_error, ops}. A call carries one @- payload, so without this N edits cost N calls.", "example": "batch:@.max/ops.json", "hint": true }