Commit Graph

37 Commits (00dcd931cb7c35e8d8a209eb4fd7828b661011de)

Author SHA1 Message Date
Jose E Velez 0c8fa63b93
feat: lightweight bootstrap context mode for heartbeat/cron runs (openclaw#26064) thanks @jose-velez
Verified:
- pnpm build
- pnpm check (fails on pre-existing unrelated repo issues in extensions/diffs and src/agents/tools/nodes-tool.test.ts)
- pnpm vitest run src/agents/bootstrap-files.test.ts src/infra/heartbeat-runner.model-override.test.ts src/cli/cron-cli.test.ts
- pnpm test:macmini (fails on pre-existing extensions/diffs import errors; touched suites pass)

Co-authored-by: jose-velez <10926182+jose-velez@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
9 months ago
Peter Steinberger ffe1937b92 fix(cli): set cron run exit code from run outcome (land #31121 by @Sid-Qin)
Landed-from: #31121
Contributor: @Sid-Qin
Co-authored-by: Sid <sidqin0410@gmail.com>
9 months ago
0xbrak 4637b90c07
feat(cron): configurable failure alerts for repeated job errors (openclaw#24789) thanks @0xbrak
Verified:
- pnpm install --frozen-lockfile
- pnpm check
- pnpm test -- --run src/cron/service.failure-alert.test.ts src/cli/cron-cli.test.ts src/gateway/protocol/cron-validators.test.ts

Co-authored-by: 0xbrak <181251288+0xbrak@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
9 months ago
Marvin 5e2ef0e883
feat(cron): add --account flag for multi-account delivery routing (#26284)
* feat(cron): add --account flag for multi-account delivery routing

Add support for explicit delivery account routing in cron jobs across CLI, normalization, delivery planning, and isolated delivery target resolution.

Highlights:
- Add --account <id> to cron add and cron edit
- Add optional delivery.accountId to cron types and delivery plan
- Normalize and trim delivery.accountId in cron create/update normalization
- Prefer explicit accountId over session lastAccountId and bindings fallback
- Thread accountId through isolated cron run delivery resolution
- Preserve cron edit --best-effort-deliver/--no-best-effort-deliver behavior by keeping implicit announce mode
- Expand tests for account passthrough/merge/precedence and CLI account flows

* cron: resolve rebase duplicate accountId fields

---------

Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
9 months ago
Peter Steinberger 391d32d461 test(cli): use lightweight clear for cron gateway mock 9 months ago
Peter Steinberger 8af676edb3 test: tighten web and cron cli timeout budgets 9 months ago
Peter Steinberger 30e36c30d4 fix(ci): tighten test typing for browser and cron cli 9 months ago
Peter Steinberger a1cb700a05 test: dedupe and optimize test suites 9 months ago
Peter Steinberger 64546d33ee test(cli): dedupe cron edit existing-job lookup mocks 9 months ago
Peter Steinberger bdb13d6c4c refactor(cron-cli): share enable-disable command wiring 9 months ago
Peter Steinberger 33f30367e1 fix(cli): include model and thinking fields in cron edit patch type 9 months ago
Peter Steinberger c7bfa818ea test(cli): dedupe cron add/edit assertion harness 9 months ago
Peter Steinberger 6dcc052bb4 fix: stabilize model catalog and pi discovery auth storage compatibility 9 months ago
Peter Steinberger c26cf6aa83 feat(cron): add default stagger controls for scheduled jobs 9 months ago
cpojer 048e29ea35
chore: Fix types in tests 45/N. 9 months ago
cpojer f2f17bafbc
chore: Fix types in tests 30/N. 9 months ago
Peter Steinberger f717a13039 refactor(agent): dedupe harness and command workflows 9 months ago
Peter Steinberger 2086cdfb9b perf(test): reduce hot-suite import and setup overhead 9 months ago
Tyler Yust 3f82daefd8 feat(cron): enhance delivery modes and job configuration
- Updated isolated cron jobs to support new delivery modes: `announce` and `none`, improving output management.
- Refactored job configuration to remove legacy fields and streamline delivery settings.
- Enhanced the `CronJobEditor` UI to reflect changes in delivery options, including a new segmented control for delivery mode selection.
- Updated documentation to clarify the new delivery configurations and their implications for job execution.
- Improved tests to validate the new delivery behavior and ensure backward compatibility with legacy settings.

This update provides users with greater flexibility in managing how isolated jobs deliver their outputs, enhancing overall usability and clarity in job configurations.
10 months ago
Tyler Yust ab9f06f4ff feat(cron): enhance one-shot job behavior and CLI options
- Default one-shot jobs to delete after success, improving job management.
- Introduced `--keep-after-run` CLI option to allow users to retain one-shot jobs post-execution.
- Updated documentation to clarify default behaviors and new options for one-shot jobs.
- Adjusted cron job creation logic to ensure consistent handling of delete options.
- Enhanced tests to validate new behaviors and ensure reliability.

This update streamlines the handling of one-shot jobs, providing users with more control over job persistence and execution outcomes.
10 months ago
Tyler Yust 0bb0dfc9bc feat(cron): default isolated jobs to announce delivery and enhance scheduling options
- Updated isolated cron jobs to default to `announce` delivery mode, improving user experience.
- Enhanced scheduling options to accept ISO 8601 timestamps for `schedule.at`, while still supporting epoch milliseconds.
- Refined documentation to clarify delivery modes and scheduling formats.
- Adjusted related CLI commands and UI components to reflect these changes, ensuring consistency across the platform.
- Improved handling of legacy delivery fields for backward compatibility.

This update streamlines the configuration of isolated jobs, making it easier for users to manage job outputs and schedules.
10 months ago
Tyler Yust 511c656cbc feat(cron): introduce delivery modes for isolated jobs
- Added support for new delivery modes in cron jobs: `announce`, `deliver`, and `none`.
- Updated documentation to reflect changes in delivery options and usage examples.
- Enhanced the cron job schema to include delivery configuration.
- Refactored related CLI commands and UI components to accommodate the new delivery settings.
- Improved handling of legacy delivery fields for backward compatibility.

This update allows users to choose how output from isolated jobs is delivered, enhancing flexibility in job management.
10 months ago
cpojer 5ceff756e1
chore: Enable "curly" rule to avoid single-statement if confusion/errors. 10 months ago
Peter Steinberger 93737ee152 test: align agent id normalization 10 months ago
Peter Steinberger 386d21b6d1 fix: sync tests with config normalization 10 months ago
Peter Steinberger 298901208d fix: align agent id normalization 10 months ago
Peter Steinberger 1b973caf7a fix: preserve cron edit delivery payloads (#1322) (thanks @KrauseFx) 10 months ago
ClawdFx ea775025c0 Run oxfmt formatting 10 months ago
ClawdFx 0b2830470c Fix: Preserve delivery settings when updating message via cron edit
- Add failing tests for delivery field preservation
- Fix register.cron-edit to conditionally build payload object
- Only include delivery fields (deliver, channel, to, bestEffortDeliver) when explicitly provided
- Previously undefined values were included, wiping out existing delivery settings
- Now --message alone preserves existing delivery config
- Tests verify both preservation and explicit override scenarios
10 months ago
Peter Steinberger 96be166bd6 fix: refactor cron edit payload patches
Co-authored-by: Felix Krause <869950+KrauseFx@users.noreply.github.com>
10 months ago
Peter Steinberger d3b15c6afa ci: stabilize vitest runs 10 months ago
Peter Steinberger f449115ec5 test: extend vitest timeouts 10 months ago
Peter Steinberger c379191f80 chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
10 months ago
Peter Steinberger 115591c5b6 feat: add cron agent binding 11 months ago
Peter Steinberger 58a12a757e fix(sandbox): avoid sandboxing main DM sessions 11 months ago
Peter Steinberger 2ebad5af1c test: cover cron cli model overrides 11 months ago
Peter Steinberger a8a4993ffd fix: trim cron model overrides and doc guidance (#711) (thanks @mjrussell) 11 months ago