@workerkit/core 0.3.17 → 0.3.18
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/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,12 @@ and the package adheres to [Semantic Versioning](https://semver.org/).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.3.18] - 2026-10-17
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- `schedule_create` and `schedule_update` accept `daysOfWeek` on `DailyAtTime` schedules: the local weekdays the schedule fires on, as full English day names. An update that omits it keeps the current days. An occurrence on a restricted day that is missed past its local firing date expires without a run, and schedule responses list the selected days by canonical name.
|
|
14
|
+
|
|
9
15
|
## [0.3.17] - 2026-10-17
|
|
10
16
|
|
|
11
17
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const backendContractProvenance: {
|
|
2
2
|
readonly sourceRepository: "workerkit-backend";
|
|
3
3
|
readonly contractVersion: "1.0.0";
|
|
4
|
-
readonly sourceRevision: "
|
|
5
|
-
readonly contentHash: "
|
|
4
|
+
readonly sourceRevision: "e50d14f21fc9d14186127fb5c0721ce16fecc9cb";
|
|
5
|
+
readonly contentHash: "3291157abc1d967ea9fd9ccd048e17b279b3156398ac79b0e3b57b100e6ab4a6";
|
|
6
6
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export const backendContractProvenance = {
|
|
3
3
|
"sourceRepository": "workerkit-backend",
|
|
4
4
|
"contractVersion": "1.0.0",
|
|
5
|
-
"sourceRevision": "
|
|
6
|
-
"contentHash": "
|
|
5
|
+
"sourceRevision": "e50d14f21fc9d14186127fb5c0721ce16fecc9cb",
|
|
6
|
+
"contentHash": "3291157abc1d967ea9fd9ccd048e17b279b3156398ac79b0e3b57b100e6ab4a6"
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=contract-provenance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-provenance.js","sourceRoot":"","sources":["../src/contract-provenance.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,kBAAkB,EAAE,mBAAmB;IACvC,iBAAiB,EAAE,OAAO;IAC1B,gBAAgB,EAAE,0CAA0C;IAC5D,aAAa,EAAE,kEAAkE;CACzE,CAAC","sourcesContent":["// Generated from the backend agent contract. Edit the backend source and re-import; do not edit here.\nexport const backendContractProvenance = {\n \"sourceRepository\": \"workerkit-backend\",\n \"contractVersion\": \"1.0.0\",\n \"sourceRevision\": \"
|
|
1
|
+
{"version":3,"file":"contract-provenance.js","sourceRoot":"","sources":["../src/contract-provenance.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,kBAAkB,EAAE,mBAAmB;IACvC,iBAAiB,EAAE,OAAO;IAC1B,gBAAgB,EAAE,0CAA0C;IAC5D,aAAa,EAAE,kEAAkE;CACzE,CAAC","sourcesContent":["// Generated from the backend agent contract. Edit the backend source and re-import; do not edit here.\nexport const backendContractProvenance = {\n \"sourceRepository\": \"workerkit-backend\",\n \"contractVersion\": \"1.0.0\",\n \"sourceRevision\": \"e50d14f21fc9d14186127fb5c0721ce16fecc9cb\",\n \"contentHash\": \"3291157abc1d967ea9fd9ccd048e17b279b3156398ac79b0e3b57b100e6ab4a6\"\n} as const;\n"]}
|
|
@@ -471,6 +471,7 @@ const SCHEDULE_OVERLAP_NOTE = " Schedules never overlap any in-flight run of the
|
|
|
471
471
|
// schedule writes, so an agent fixing a report's times does not reach for the
|
|
472
472
|
// schedule: that only moves when it fires.
|
|
473
473
|
const SCHEDULE_ZONE_NOTE = " Schedule timeZoneId controls firing only; worker_timezone_set controls the worker's local dates and reports.";
|
|
474
|
+
const SCHEDULE_DAYS_HINT = "DailyAtTime only: non-empty array of full English day names, e.g. ['Monday','Tuesday','Wednesday','Thursday','Friday']. Names are case-insensitive; duplicates collapse. Days follow the schedule's effective timezone. Restricted-day occurrences missed past their local firing date expire without a run; manual runs are unaffected.";
|
|
474
475
|
const createSchedule = defineTool({
|
|
475
476
|
name: "schedule_create",
|
|
476
477
|
title: "Create Schedule",
|
|
@@ -488,6 +489,7 @@ const createSchedule = defineTool({
|
|
|
488
489
|
intervalValue: z.number().int().min(1).optional().describe("EveryNMinutes: 1–1440. EveryNHours: 1–168. Required for those types, ignored otherwise."),
|
|
489
490
|
timeOfDayMinutes: z.number().int().min(0).max(1439).optional().describe("DailyAtTime only: wall-clock minutes past midnight in the effective time zone (e.g. 540 = 09:00). DST-correct."),
|
|
490
491
|
timeZoneId: z.string().optional().describe("IANA time zone (e.g. 'America/New_York') overriding the worker's zone. Omit to follow the worker."),
|
|
492
|
+
daysOfWeek: z.array(z.string()).min(1).nullable().optional().describe(SCHEDULE_DAYS_HINT + " Omit or send null for every day. Rejected on other schedule types."),
|
|
491
493
|
anchorUtc: z.string().optional().describe(`OneShot only: when to fire, must be in the future. ${UTC_HINT}`),
|
|
492
494
|
isEnabled: z.boolean().default(true).describe("Whether the schedule starts enabled."),
|
|
493
495
|
},
|
|
@@ -498,6 +500,7 @@ const createSchedule = defineTool({
|
|
|
498
500
|
intervalValue: params.intervalValue,
|
|
499
501
|
timeOfDayMinutes: params.timeOfDayMinutes,
|
|
500
502
|
timeZoneId: params.timeZoneId,
|
|
503
|
+
daysOfWeek: params.daysOfWeek,
|
|
501
504
|
anchorUtc: params.anchorUtc,
|
|
502
505
|
isEnabled: params.isEnabled,
|
|
503
506
|
}),
|
|
@@ -519,6 +522,7 @@ const updateSchedule = defineTool({
|
|
|
519
522
|
intervalValue: z.number().int().min(1).optional().describe("New interval (see type rules)."),
|
|
520
523
|
timeOfDayMinutes: z.number().int().min(0).max(1439).optional().describe("DailyAtTime: new wall-clock minutes past midnight."),
|
|
521
524
|
timeZoneId: z.string().optional().describe("IANA zone override; empty string '' clears it (follow the worker)."),
|
|
525
|
+
daysOfWeek: z.array(z.string()).min(1).nullable().optional().describe(SCHEDULE_DAYS_HINT + " Omit/null to keep current days; send all seven to restore every day. Rejected if the resulting type is not DailyAtTime; changing away from daily clears the restriction."),
|
|
522
526
|
anchorUtc: z.string().optional().describe(`OneShot: new fire time. ${UTC_HINT}`),
|
|
523
527
|
isEnabled: z.boolean().optional().describe("Enable or disable the schedule."),
|
|
524
528
|
},
|
|
@@ -529,6 +533,7 @@ const updateSchedule = defineTool({
|
|
|
529
533
|
intervalValue: params.intervalValue,
|
|
530
534
|
timeOfDayMinutes: params.timeOfDayMinutes,
|
|
531
535
|
timeZoneId: params.timeZoneId,
|
|
536
|
+
daysOfWeek: params.daysOfWeek,
|
|
532
537
|
anchorUtc: params.anchorUtc,
|
|
533
538
|
isEnabled: params.isEnabled,
|
|
534
539
|
}),
|