4 Commits
Author SHA1 Message Date
Juan Denis 6296887bad Remove internal plan citations from app code
Comments, docstrings and a few strings cited plan numbers ("plan 29
#9", "plan 86 §B2") from a git-ignored folder, so they pointed at
nothing; one reached users in a bottleneck hint. Code and frontend
strings are unchanged apart from those citations (checked by AST and
token comparison). A vhost still carrying the old asset comment reads
as undrifted, and a guard test keeps new citations out.
2026-10-10 15:50:45 -04:00
Juan Denis 899dac99b5 refactor(agents): centralize remote command dispatch 2026-08-18 03:05:32 -04:00
Juan DenisandClaude Opus 4.8 befd67e266 fix(recovery): restore lost cron-completion service methods (plan 34)
Surviving cron tests failed on methods dropped from surviving service files.

- cron_service: restore get_job, set_tracking, _crontab_command (serverkit-cron
  -run shim wrapper), clear_application, jobs_for_application (read-time last-run
  join), preview_schedule, application_id on add/update_job, run-now history
- remote_cron_service: restore update_job + CRON_UPDATE capability gate
  (recovered constant-for-constant from readable bytecode)
- conftest: restore the lost scoping_rbac fixture (owner/admin/member/viewer/
  foreign personas) used by the cron + authz RBAC suites

test_cron_runs 18, test_remote_cron_update 3, test_cron_rbac 10 — green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-08 02:05:39 -04:00
Juan Denis dca5c3af67 Add remote cron management (agent, API, UI)
Introduce remote cron management across agent, backend and frontend.

- Agent: add a cron.Manager to agent, register handlers (cron:status,list,add,remove,toggle) and implement thin JSON handlers. Add agent/pkg/protocol message constants.
- Cron package: new platform-agnostic interface with Linux implementation (crontab-driven) and non-Linux stub. Includes content-based stable IDs, validation, list/add/remove/toggle and human-friendly schedule descriptions.
- Backend: expose /servers/<id>/cron/* endpoints and add RemoteCronService to proxy requests to agents via agent_registry, mapping agent responses to HTTP codes.
- Frontend: enhance Tabs component with overflow "More" popover; add API calls for remote cron ops; wire a Cron tab in ServerDetail (guarded by server.capabilities.cron) with UI for listing, adding, toggling and removing jobs; add Cron UI in Git page by switching to the new Tabs component.

Notes: cron functionality is Linux-only; non-Linux agents return an explicit unsupported status. Validation prevents unsafe shell operators and requires absolute command paths.
2026-05-01 01:54:17 -04:00