pixivflow 2.19.5 → 2.20.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.
- package/dist/commands/SchedulerCommand.js +36 -0
- package/dist/commands/SchedulerRunOnceCommand.d.ts +2 -3
- package/dist/commands/SchedulerRunOnceCommand.js +2 -3
- package/dist/commands/scheduler-runtime.js +17 -1
- package/dist/config/types.d.ts +7 -0
- package/dist/config/validation.js +10 -0
- package/dist/delivery/DeliveryService.d.ts +21 -1
- package/dist/delivery/DeliveryService.js +2 -2
- package/dist/delivery/HttpMultipartDelivery.js +29 -8
- package/dist/delivery/OutboxWorker.d.ts +2 -0
- package/dist/delivery/OutboxWorker.js +3 -0
- package/dist/delivery/types.d.ts +18 -0
- package/dist/download/handlers/IllustrationTargetHandler.d.ts +0 -1
- package/dist/download/handlers/IllustrationTargetHandler.js +2 -13
- package/dist/download/handlers/NovelTargetHandler.js +2 -0
- package/dist/download/handlers/deliveryContext.d.ts +16 -0
- package/dist/download/handlers/deliveryContext.js +32 -0
- package/dist/notification/NotificationPolicy.d.ts +12 -0
- package/dist/notification/NotificationPolicy.js +86 -0
- package/dist/package.json +1 -1
- package/dist/scheduler/MultiScheduleManager.js +2 -0
- package/dist/scheduler/ScheduleTriggerServer.d.ts +58 -1
- package/dist/scheduler/ScheduleTriggerServer.js +207 -40
- package/dist/scheduler/SlotCoordinator.d.ts +80 -2
- package/dist/scheduler/SlotCoordinator.js +145 -3
- package/dist/storage/DatabaseMigration.js +11 -0
- package/dist/storage/repositories/SlotRepository.d.ts +8 -0
- package/dist/storage/repositories/SlotRepository.js +6 -2
- package/dist/version.js +1 -1
- package/dist/webui/package.json +1 -1
- package/package.json +1 -1
|
@@ -25,6 +25,10 @@ export interface SlotRecord {
|
|
|
25
25
|
leaseOwner: string | null;
|
|
26
26
|
leaseUntil: number | null;
|
|
27
27
|
heartbeatAt: number | null;
|
|
28
|
+
/** Request UUID of a remote manual replacement; null for scheduled slots. */
|
|
29
|
+
manualRequestId: string | null;
|
|
30
|
+
/** Opaque caller correlation (review chain / review id); null unless manual. */
|
|
31
|
+
correlationId: string | null;
|
|
28
32
|
}
|
|
29
33
|
export interface SlotItemRecord {
|
|
30
34
|
id: number;
|
|
@@ -65,6 +69,10 @@ export declare class SlotRepository extends BaseRepository {
|
|
|
65
69
|
triggerSource?: string;
|
|
66
70
|
slotDate?: string;
|
|
67
71
|
slotName?: string;
|
|
72
|
+
/** Remote manual replacement request UUID (opens a `manual-` slot). */
|
|
73
|
+
manualRequestId?: string | null;
|
|
74
|
+
/** Opaque caller correlation recorded with a manual slot. */
|
|
75
|
+
correlationId?: string | null;
|
|
68
76
|
}): {
|
|
69
77
|
slot: SlotRecord;
|
|
70
78
|
created: boolean;
|
|
@@ -21,10 +21,10 @@ class SlotRepository extends BaseRepository_1.BaseRepository {
|
|
|
21
21
|
getOrCreateSlot(id, data) {
|
|
22
22
|
const insert = this.db.prepare(`INSERT INTO schedule_slots
|
|
23
23
|
(id, schedule_id, occurrence_at, occurrence_date, occurrence_label, timezone, target_ids,
|
|
24
|
-
status, trigger_source, slot_date, slot_name)
|
|
24
|
+
status, trigger_source, slot_date, slot_name, manual_request_id, correlation_id)
|
|
25
25
|
VALUES
|
|
26
26
|
(@id, @scheduleId, @occurrenceAt, @occurrenceDate, @occurrenceLabel, @timezone, @targetIds,
|
|
27
|
-
'pending', @triggerSource, @slotDate, @slotName)
|
|
27
|
+
'pending', @triggerSource, @slotDate, @slotName, @manualRequestId, @correlationId)
|
|
28
28
|
ON CONFLICT(id) DO NOTHING`);
|
|
29
29
|
const info = insert.run({
|
|
30
30
|
id,
|
|
@@ -37,6 +37,8 @@ class SlotRepository extends BaseRepository_1.BaseRepository {
|
|
|
37
37
|
triggerSource: data.triggerSource ?? null,
|
|
38
38
|
slotDate: data.slotDate ?? data.occurrenceDate ?? '',
|
|
39
39
|
slotName: data.slotName ?? '',
|
|
40
|
+
manualRequestId: data.manualRequestId ?? null,
|
|
41
|
+
correlationId: data.correlationId ?? null,
|
|
40
42
|
});
|
|
41
43
|
const created = info.changes > 0;
|
|
42
44
|
return { slot: this.getSlot(id), created };
|
|
@@ -359,6 +361,8 @@ class SlotRepository extends BaseRepository_1.BaseRepository {
|
|
|
359
361
|
leaseOwner: row.lease_owner ?? null,
|
|
360
362
|
leaseUntil: row.lease_until ?? null,
|
|
361
363
|
heartbeatAt: row.heartbeat_at ?? null,
|
|
364
|
+
manualRequestId: row.manual_request_id ?? null,
|
|
365
|
+
correlationId: row.correlation_id ?? null,
|
|
362
366
|
};
|
|
363
367
|
}
|
|
364
368
|
toItem(row) {
|
package/dist/version.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BUILD = void 0;
|
|
4
4
|
// GENERATED by scripts/write-version.js — do not edit manually.
|
|
5
|
-
exports.BUILD = { version: '2.
|
|
5
|
+
exports.BUILD = { version: '2.20.0', commit: '2229fb7b45a6' };
|
|
6
6
|
//# sourceMappingURL=version.js.map
|
package/dist/webui/package.json
CHANGED
package/package.json
CHANGED