mirror of
https://github.com/hansjone/dsh-ops-cron.git
synced 2026-10-09 04:40:48 +08:00
Add sidebar run permission preset for scheduled jobs.
Default inherits Host new-session access mode; humans can raise to workspace-write or full access. Agents never see or set the field. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
ad6e90f197
commit
8cf624ce7f
8 changed files with 140 additions and 4 deletions
|
|
@ -219,7 +219,7 @@ function jobLine(job) {
|
|||
/** Strip human-only fields so agents cannot see or game panel-only controls. */
|
||||
function forAgentView(job) {
|
||||
if (!job || typeof job !== 'object') return job
|
||||
const { agentAccess: _hidden, ...rest } = job
|
||||
const { agentAccess: _a, permissionPreset: _p, ...rest } = job
|
||||
return rest
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue