@keystrokehq/scheduler 0.0.179 → 0.1.1
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.
- package/README.md +4 -4
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Queue implementations (`database-queue`, `pg-boss-queue`) and standalone `syncTr
|
|
|
18
18
|
## What belongs somewhere else
|
|
19
19
|
|
|
20
20
|
- Trigger source defs (`defineCronSource`, poll cadence) → `@keystrokehq/trigger`
|
|
21
|
-
- Running attachments, webhooks, poll HTTP → `@keystrokehq/
|
|
21
|
+
- Running attachments, webhooks, poll HTTP → `@keystrokehq/runtime`
|
|
22
22
|
- `trigger_schedules` / `jobs` schema and queries → `@keystrokehq/database`
|
|
23
23
|
- Workflow/agent run logic → `@keystrokehq/workflow` / `@keystrokehq/agent` (server wires handlers)
|
|
24
24
|
|
|
@@ -37,11 +37,11 @@ flowchart TB
|
|
|
37
37
|
|
|
38
38
|
**Allowed runtime deps:** `database`, `trigger`, `pg-boss`, `cron-schedule` (via trigger).
|
|
39
39
|
|
|
40
|
-
**Forbidden:** `
|
|
40
|
+
**Forbidden:** `runtime`, `workflow`, `agent`, `action`, `config`, `build`, `cli`, integrations, HTTP frameworks. Scheduler must stay callable from runtime without circular imports.
|
|
41
41
|
|
|
42
42
|
**Depends on:** `database`, `trigger`, `pg-boss`, `cron-schedule`.
|
|
43
43
|
|
|
44
|
-
**Used by:** `
|
|
44
|
+
**Used by:** `runtime` and `worker` (embedded worker + schedule ticker).
|
|
45
45
|
|
|
46
46
|
## Exports
|
|
47
47
|
|
|
@@ -80,7 +80,7 @@ Import from the package root (`@keystrokehq/scheduler`), not from `src/…`.
|
|
|
80
80
|
1. New queue backend or retry/concurrency behavior? → this package (keep types in `types.ts`).
|
|
81
81
|
2. New trigger schedule expression rules? → `@keystrokehq/trigger` (`nextTriggerRunAt`, `resolveCronSchedule`).
|
|
82
82
|
3. New table or claim query? → `@keystrokehq/database`.
|
|
83
|
-
4. Who runs the job (workflow step, agent prompt, attachment)? → `@keystrokehq/
|
|
83
|
+
4. Who runs the job (workflow step, agent prompt, attachment)? → `@keystrokehq/runtime` job handlers.
|
|
84
84
|
|
|
85
85
|
## Example
|
|
86
86
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/scheduler",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/
|
|
7
|
+
"url": "git+https://github.com/keystrokehq/keystroke.git",
|
|
8
8
|
"directory": "packages/scheduler"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
@@ -41,16 +41,16 @@
|
|
|
41
41
|
"tsdown": "^0.22.0",
|
|
42
42
|
"typescript": "^6.0.3",
|
|
43
43
|
"vitest": "^4.1.7",
|
|
44
|
-
"@keystrokehq/database": "0.0.
|
|
44
|
+
"@keystrokehq/database": "0.0.111",
|
|
45
45
|
"@keystrokehq/oxlint-config": "0.0.4",
|
|
46
|
-
"@keystrokehq/trigger": "0.0.
|
|
46
|
+
"@keystrokehq/trigger": "0.0.122",
|
|
47
47
|
"@keystrokehq/tsconfig": "0.0.3",
|
|
48
48
|
"@keystrokehq/tsdown-config": "0.0.3",
|
|
49
49
|
"@keystrokehq/vitest-config": "0.0.5"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@keystrokehq/
|
|
53
|
-
"@keystrokehq/
|
|
52
|
+
"@keystrokehq/trigger": "0.0.122",
|
|
53
|
+
"@keystrokehq/database": "0.0.111"
|
|
54
54
|
},
|
|
55
55
|
"peerDependenciesMeta": {
|
|
56
56
|
"@keystrokehq/database": {
|