Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions internal/driver/hermes/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type job struct {
ID string `json:"id"`
Name string `json:"name"`
Prompt string `json:"prompt"`
Workdir string `json:"workdir"`
Skills []string `json:"skills"`
Skill *string `json:"skill"`
Model *string `json:"model"`
Expand Down Expand Up @@ -90,6 +91,7 @@ func GenerateJobsJSON(rc *driver.ResolvedClaw) ([]byte, error) {
ID: id,
Name: name,
Prompt: message,
Workdir: hermesWorkspaceDir,
Skills: []string{},
Schedule: schedule{Kind: "cron", Expr: expr, Display: expr},
ScheduleDisplay: expr,
Expand Down
3 changes: 3 additions & 0 deletions internal/driver/hermes/jobs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ func TestGenerateJobsJSONUsesWrapperAndLocalDelivery(t *testing.T) {
if got := job["deliver"]; got != "local" {
t.Fatalf("expected local deliver target, got %#v", got)
}
if got := job["workdir"]; got != hermesWorkspaceDir {
t.Fatalf("expected scheduled job workdir %q, got %#v", hermesWorkspaceDir, got)
}
if _, ok := job["next_run_at"].(string); !ok {
t.Fatalf("expected next_run_at string, got %#v", job["next_run_at"])
}
Expand Down
Loading