@warlock.js/queue 5.28.0 → 5.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/cjs/index.cjs +15 -15
  3. package/cjs/index.cjs.map +1 -1
  4. package/esm/config.d.mts +1 -1
  5. package/esm/config.d.mts.map +1 -1
  6. package/esm/config.mjs +1 -1
  7. package/esm/config.mjs.map +1 -1
  8. package/esm/dashboard-boot.d.mts +1 -1
  9. package/esm/dashboard-boot.d.mts.map +1 -1
  10. package/esm/dashboard-boot.mjs +1 -1
  11. package/esm/dashboard-boot.mjs.map +1 -1
  12. package/esm/dashboard-guard-plugin.mjs +1 -1
  13. package/esm/dashboard-guard-plugin.mjs.map +1 -1
  14. package/esm/dashboard-middleware-adapter.mjs +1 -1
  15. package/esm/dashboard-middleware-adapter.mjs.map +1 -1
  16. package/esm/dashboard.d.mts +1 -1
  17. package/esm/dashboard.d.mts.map +1 -1
  18. package/esm/dashboard.mjs +1 -1
  19. package/esm/dashboard.mjs.map +1 -1
  20. package/esm/define-job.d.mts +1 -1
  21. package/esm/define-job.d.mts.map +1 -1
  22. package/esm/define-job.mjs +1 -1
  23. package/esm/define-job.mjs.map +1 -1
  24. package/esm/duration.d.mts +1 -1
  25. package/esm/duration.d.mts.map +1 -1
  26. package/esm/duration.mjs +1 -1
  27. package/esm/duration.mjs.map +1 -1
  28. package/esm/errors.d.mts +1 -1
  29. package/esm/errors.d.mts.map +1 -1
  30. package/esm/errors.mjs +1 -1
  31. package/esm/errors.mjs.map +1 -1
  32. package/esm/failed-jobs.d.mts +1 -1
  33. package/esm/failed-jobs.d.mts.map +1 -1
  34. package/esm/failed-jobs.mjs +1 -1
  35. package/esm/failed-jobs.mjs.map +1 -1
  36. package/esm/job-registry.mjs +1 -1
  37. package/esm/job-registry.mjs.map +1 -1
  38. package/esm/process-job.mjs +1 -1
  39. package/esm/process-job.mjs.map +1 -1
  40. package/esm/queue-connector.d.mts +1 -1
  41. package/esm/queue-connector.d.mts.map +1 -1
  42. package/esm/queue-connector.mjs +1 -1
  43. package/esm/queue-connector.mjs.map +1 -1
  44. package/esm/queue-context.d.mts +1 -1
  45. package/esm/queue-context.d.mts.map +1 -1
  46. package/esm/queue-context.mjs +1 -1
  47. package/esm/queue-context.mjs.map +1 -1
  48. package/esm/queue-dashboard-unguarded.error.d.mts +1 -1
  49. package/esm/queue-dashboard-unguarded.error.d.mts.map +1 -1
  50. package/esm/queue-dashboard-unguarded.error.mjs +1 -1
  51. package/esm/queue-dashboard-unguarded.error.mjs.map +1 -1
  52. package/esm/queue-manager.d.mts +1 -1
  53. package/esm/queue-manager.d.mts.map +1 -1
  54. package/esm/queue-manager.mjs +1 -1
  55. package/esm/queue-manager.mjs.map +1 -1
  56. package/esm/types.d.mts +1 -1
  57. package/esm/types.d.mts.map +1 -1
  58. package/llms-full.txt +9 -9
  59. package/llms.txt +4 -4
  60. package/package.json +5 -4
  61. package/skills/configure-queue/SKILL.md +2 -2
  62. package/skills/define-jobs/SKILL.md +1 -1
  63. package/skills/manage-failed-jobs/SKILL.md +1 -1
  64. package/skills/overview/SKILL.md +4 -4
  65. package/skills/queue-notifications/SKILL.md +1 -1
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: manage-failed-jobs
3
- description: 'Inspect and retry failed `@warlock.js/queue` jobs: `failedJobs({ queue, start, end })` returns `FailedJob[]` (`id`, `name`, `payload`, `attemptsMade`, `failedReason`, `stacktrace`, `failedAt`, `retry()`), `retryFailedJob(id, { queue })` (throws `FailedJobNotFoundError`), and the bull-board UI — `warlock add bull-board` (requires: ["queue"], so it installs queue first when missing) writes a `dashboard: { enabled, path, middleware }` block to `src/config/queue.ts`; a guard middleware is required in production or boot throws `QueueDashboardUnguardedError`. Manual `queueDashboard(server, { basePath, queues, middleware })` also available — needs `@bull-board/api` + `@bull-board/fastify`, loaded only on call, missing ones throw `QueueDashboardDependencyError`. Triggers: `failedJobs`, `retryFailedJob`, `queueDashboard`, `bull-board`, `dashboard.enabled`, `QueueDashboardUnguardedError`; "list failed jobs", "retry a failed job", "queue dashboard", "job admin UI". Skip: defining retries — `@warlock.js/queue/define-jobs/SKILL.md`.'
3
+ description: 'Inspect and retry failed `@warlock.js/queue` jobs: `failedJobs({ queue, start, end })` returns `FailedJob[]` (`id`, `name`, `payload`, `attemptsMade`, `failedReason`, `stacktrace`, `failedAt`, `retry()`), `retryFailedJob(id, { queue })` (throws `FailedJobNotFoundError`), and the bull-board UI — `warlock add bull-board` (requires: ["queue"], so it installs queue first when missing) writes a `dashboard: { enabled, path, middleware }` block to `src/config/queue.ts`; a guard middleware is required in production or boot throws `QueueDashboardUnguardedError`. Manual `queueDashboard(server, { basePath, queues, middleware })` also available — needs `@bull-board/api` + `@bull-board/fastify`, loaded only on call, missing ones throw `QueueDashboardDependencyError`. Triggers: `failedJobs`, `retryFailedJob`, `queueDashboard`, `bull-board`, `dashboard.enabled`, `QueueDashboardUnguardedError`; "list failed jobs", "retry a failed job", "queue dashboard", "job admin UI". Skip: defining retries — the `define-jobs` topic.'
4
4
  ---
5
5
 
6
6
  # Failed jobs
@@ -20,7 +20,7 @@ Durable background jobs. Jobs are stored in **Redis** (required), retried on fai
20
20
 
21
21
  ## Skills index
22
22
 
23
- - [`configure-queue`](@warlock.js/queue/configure-queue/SKILL.md) — `src/config/queue.ts`, `queueConnector()`, workers on/off, shutdown.
24
- - [`define-jobs`](@warlock.js/queue/define-jobs/SKILL.md) — `defineJob`, `dispatch` options, retries, progress, `find`.
25
- - [`manage-failed-jobs`](@warlock.js/queue/manage-failed-jobs/SKILL.md) — `failedJobs`, `retryFailedJob`, the bull-board dashboard.
26
- - [`queue-notifications`](@warlock.js/queue/queue-notifications/SKILL.md) — `bullmqQueue()` for notifications `.queue()`.
23
+ - `configure-queue` — `src/config/queue.ts`, `queueConnector()`, workers on/off, shutdown.
24
+ - `define-jobs` — `defineJob`, `dispatch` options, retries, progress, `find`.
25
+ - `manage-failed-jobs` — `failedJobs`, `retryFailedJob`, the bull-board dashboard.
26
+ - `queue-notifications` — `bullmqQueue()` for notifications `.queue()`.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: queue-notifications
3
- description: 'Send `@warlock.js/notifications` `.queue()` deliveries through BullMQ with `bullmqQueue({ queue?, attempts?, backoff? })` from `@warlock.js/notifications` — put it in the `queue` slot of `src/config/notifications.ts`; the queue workers deliver. Honours `SendOptions.delay` (number = seconds, or "10m"), retries a failing `channel.send`, and fails at once for a channel missing from the worker config. Triggers: `bullmqQueue`, `NotificationConfig.queue`, `QueuePackageNotInstalledError`; "queue notifications with BullMQ", "retry notification delivery", "delayed notification". Skip: the herald backend — `@warlock.js/notifications/queue-notifications/SKILL.md`.'
3
+ description: 'Send `@warlock.js/notifications` `.queue()` deliveries through BullMQ with `bullmqQueue({ queue?, attempts?, backoff? })` from `@warlock.js/notifications` — put it in the `queue` slot of `src/config/notifications.ts`; the queue workers deliver. Honours `SendOptions.delay` (number = seconds, or "10m"), retries a failing `channel.send`, and fails at once for a channel missing from the worker config. Triggers: `bullmqQueue`, `NotificationConfig.queue`, `QueuePackageNotInstalledError`; "queue notifications with BullMQ", "retry notification delivery", "delayed notification". Skip: the herald backend — the `queue-notifications` topic of the `warlock-js-notifications` skill.'
4
4
  ---
5
5
 
6
6
  # Queue notifications with BullMQ