mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-12-06 04:14:15 +00:00
The target gate was API-only: POST /api/tasks and PATCH /api/tasks/{id}
accepted target_gate, but the panel never sent, read or displayed it. A
task-level block rule added to a task whose gate was off therefore never
reached a network target, because intercept.CheckTargets returns before
any rule is matched while the gate is disabled.
- create-task sheet: a "Network target gate" selector (auto / on / off).
Auto sends nothing, so the backend default stays in force: on for scoped
tasks (linked company or task-level rules), off otherwise.
- task overview rule card: a switch that shows the stored state, warns
explicitly while block rules exist with the gate off, and PATCHes
/api/tasks/{id} so the next tool call sees the new value.
- lib/api: createTask(targetGate), updateTask({targetGate}) and
setTaskTargetGate(); lib/types: Task.target_gate.
- mock handler mirrors the backend default on create and PATCH.
- i18n: zh-CN, tr, pt-BR and vi entries for the new strings.