@teamkeel/solver 0.0.0-stage → 0.508.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 (50) hide show
  1. package/dist/index.cjs +6878 -0
  2. package/dist/index.d.cts +9 -0
  3. package/dist/index.d.ts +9 -0
  4. package/dist/index.js +6850 -0
  5. package/dist/internal.cjs +17244 -0
  6. package/dist/internal.d.cts +1275 -0
  7. package/dist/internal.d.ts +1275 -0
  8. package/dist/internal.js +17164 -0
  9. package/dist/layout-ZQ45Tlkb.d.cts +2111 -0
  10. package/dist/layout-efr1Ke_2.d.ts +2111 -0
  11. package/dist/layout.cjs +19 -0
  12. package/dist/layout.d.cts +2 -0
  13. package/dist/layout.d.ts +2 -0
  14. package/dist/layout.js +1 -0
  15. package/dist/record-results-BWnJIpkK.d.ts +222 -0
  16. package/dist/record-results-DPczGZWH.d.cts +222 -0
  17. package/dist/types-DIFPlxBZ.d.cts +1865 -0
  18. package/dist/types-DIFPlxBZ.d.ts +1865 -0
  19. package/fixtures/operation/bakery/operation.json +350 -0
  20. package/fixtures/operation/bakery/plan.json +872 -0
  21. package/fixtures/operation/bakery/readback.json +114 -0
  22. package/fixtures/operation/bakery/score.json +1520 -0
  23. package/fixtures/operation/bakery/timeline.json +2376 -0
  24. package/fixtures/operation/clinic/operation.json +223 -0
  25. package/fixtures/operation/clinic/plan.json +383 -0
  26. package/fixtures/operation/clinic/readback.json +83 -0
  27. package/fixtures/operation/clinic/score.json +1305 -0
  28. package/fixtures/operation/clinic/timeline.json +2283 -0
  29. package/fixtures/operation/field-service/operation.json +194 -0
  30. package/fixtures/operation/field-service/plan.json +172 -0
  31. package/fixtures/operation/field-service/readback.json +73 -0
  32. package/fixtures/operation/field-service/score.json +585 -0
  33. package/fixtures/operation/field-service/timeline.json +661 -0
  34. package/fixtures/operation/filling/operation.json +245 -0
  35. package/fixtures/operation/filling/plan.json +525 -0
  36. package/fixtures/operation/filling/readback.json +87 -0
  37. package/fixtures/operation/filling/score.json +756 -0
  38. package/fixtures/operation/filling/timeline.json +1322 -0
  39. package/fixtures/operation/shop/operation.json +320 -0
  40. package/fixtures/operation/shop/plan.json +664 -0
  41. package/fixtures/operation/shop/readback.json +130 -0
  42. package/fixtures/operation/shop/score.json +1106 -0
  43. package/fixtures/operation/shop/timeline.json +2734 -0
  44. package/fixtures/operation/warehouse-day/operation.json +517 -0
  45. package/fixtures/operation/warehouse-day/plan.json +477 -0
  46. package/fixtures/operation/warehouse-day/readback.json +207 -0
  47. package/fixtures/operation/warehouse-day/score.json +979 -0
  48. package/fixtures/operation/warehouse-day/timeline.json +1420 -0
  49. package/package.json +63 -4
  50. package/README.md +0 -3
@@ -0,0 +1,661 @@
1
+ {
2
+ "schema": "keel.solver.timeline/2",
3
+ "ladder": [
4
+ {
5
+ "level": 0,
6
+ "about": null,
7
+ "name": null,
8
+ "points": 0,
9
+ "parts": [
10
+ {
11
+ "measure": "limit",
12
+ "name": "Closes at 16:00, unless the day can't fit.",
13
+ "value": 0,
14
+ "unit": "minutes",
15
+ "weight": 1,
16
+ "points": 0,
17
+ "label": "Visits after closing"
18
+ },
19
+ {
20
+ "measure": "limit",
21
+ "name": "Work ends by its latest finish (latestAt), unless the day can't fit.",
22
+ "value": 0,
23
+ "unit": "minutes",
24
+ "weight": 1,
25
+ "points": 0,
26
+ "label": "Visits after latest finish"
27
+ }
28
+ ]
29
+ },
30
+ {
31
+ "level": 1,
32
+ "about": "priorities.Do as many visits as possible",
33
+ "name": "Do as many visits as possible",
34
+ "points": 1,
35
+ "parts": [
36
+ {
37
+ "measure": "goal",
38
+ "name": "First, do as many visits as possible: the number of visits left undone.",
39
+ "value": 1,
40
+ "unit": null,
41
+ "weight": 1,
42
+ "points": 1,
43
+ "label": "Visits left undone"
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "level": 2,
49
+ "about": "priorities.Then spend less time travelling",
50
+ "name": "Then spend less time travelling",
51
+ "points": 14,
52
+ "parts": [
53
+ {
54
+ "measure": "goal",
55
+ "name": "Then spend less time travelling: the travel minutes.",
56
+ "value": 14,
57
+ "unit": "minutes",
58
+ "weight": 1,
59
+ "points": 14,
60
+ "label": "Travel time"
61
+ }
62
+ ]
63
+ }
64
+ ],
65
+ "run": "run-field-service-1",
66
+ "status": "planned",
67
+ "broken": [],
68
+ "operation": "sha256:1d3405714873160158f5a3abf3e8d47bc75d4cacc51abafb2ee2e6eaa7ca6fc8",
69
+ "showing": null,
70
+ "zone": "UTC",
71
+ "from": "2026-11-09T08:00:00.000Z",
72
+ "to": "2026-11-10T00:00:00.000Z",
73
+ "periods": [
74
+ {
75
+ "id": "2026-11-09",
76
+ "label": "Mon 9 Nov",
77
+ "from": "2026-11-09T08:00:00.000Z",
78
+ "to": "2026-11-10T00:00:00.000Z",
79
+ "open": true,
80
+ "plan": null,
81
+ "fits": [],
82
+ "day": {
83
+ "run": "run-field-service-1",
84
+ "mode": null,
85
+ "status": "optimal",
86
+ "why": "new",
87
+ "reusedFrom": null,
88
+ "says": "Solved this round.",
89
+ "modes": [],
90
+ "figures": []
91
+ },
92
+ "tight": [],
93
+ "cuts": []
94
+ }
95
+ ],
96
+ "rows": [
97
+ {
98
+ "id": "t1",
99
+ "noun": "people.technician",
100
+ "label": "Neri",
101
+ "area": null,
102
+ "facts": []
103
+ },
104
+ {
105
+ "id": "t2",
106
+ "noun": "people.technician",
107
+ "label": "Vola",
108
+ "area": null,
109
+ "facts": []
110
+ },
111
+ {
112
+ "id": "t3",
113
+ "noun": "people.technician",
114
+ "label": "Tavi",
115
+ "area": null,
116
+ "facts": []
117
+ }
118
+ ],
119
+ "crews": [],
120
+ "bands": [
121
+ {
122
+ "kind": "unavailable",
123
+ "about": "people.technician",
124
+ "row": "t1",
125
+ "from": "2026-11-09T12:00:00.000Z",
126
+ "to": "2026-11-09T12:30:00.000Z",
127
+ "says": "lunch"
128
+ },
129
+ {
130
+ "kind": "unavailable",
131
+ "about": "people.technician",
132
+ "row": "t3",
133
+ "from": "2026-11-09T12:10:00.000Z",
134
+ "to": "2026-11-09T12:40:00.000Z",
135
+ "says": "lunch"
136
+ },
137
+ {
138
+ "kind": "unavailable",
139
+ "about": "people.technician",
140
+ "row": "t2",
141
+ "from": "2026-11-09T12:30:00.000Z",
142
+ "to": "2026-11-09T13:00:00.000Z",
143
+ "says": "lunch"
144
+ },
145
+ {
146
+ "kind": "closed",
147
+ "about": "hours",
148
+ "from": "2026-11-09T16:00:00.000Z",
149
+ "to": "2026-11-10T00:00:00.000Z"
150
+ }
151
+ ],
152
+ "bars": [
153
+ {
154
+ "row": "t1",
155
+ "period": "2026-11-09",
156
+ "item": "v1",
157
+ "kind": "work",
158
+ "about": "processes.visit.steps.work",
159
+ "start": "2026-11-09T11:30:00.000Z",
160
+ "end": "2026-11-09T12:00:00.000Z"
161
+ },
162
+ {
163
+ "row": "t1",
164
+ "period": "2026-11-09",
165
+ "item": null,
166
+ "kind": "downtime",
167
+ "about": "people.technician.downtime.travel",
168
+ "start": "2026-11-09T12:30:00.000Z",
169
+ "end": "2026-11-09T12:38:00.000Z",
170
+ "reason": "PX1 → QX2"
171
+ },
172
+ {
173
+ "row": "t1",
174
+ "period": "2026-11-09",
175
+ "item": "v2",
176
+ "kind": "work",
177
+ "about": "processes.visit.steps.work",
178
+ "start": "2026-11-09T12:38:00.000Z",
179
+ "end": "2026-11-09T13:08:00.000Z"
180
+ },
181
+ {
182
+ "row": "t2",
183
+ "period": "2026-11-09",
184
+ "item": "v3",
185
+ "kind": "work",
186
+ "about": "processes.visit.steps.work",
187
+ "start": "2026-11-09T08:00:00.000Z",
188
+ "end": "2026-11-09T08:30:00.000Z"
189
+ },
190
+ {
191
+ "row": "t3",
192
+ "period": "2026-11-09",
193
+ "item": "v5",
194
+ "kind": "work",
195
+ "about": "processes.visit.steps.work",
196
+ "start": "2026-11-09T10:00:00.000Z",
197
+ "end": "2026-11-09T10:40:00.000Z"
198
+ },
199
+ {
200
+ "row": "t3",
201
+ "period": "2026-11-09",
202
+ "item": null,
203
+ "kind": "downtime",
204
+ "about": "people.technician.downtime.travel",
205
+ "start": "2026-11-09T13:54:00.000Z",
206
+ "end": "2026-11-09T14:00:00.000Z",
207
+ "reason": "RX3 → SX4"
208
+ },
209
+ {
210
+ "row": "t3",
211
+ "period": "2026-11-09",
212
+ "item": "v6",
213
+ "kind": "work",
214
+ "about": "processes.visit.steps.work",
215
+ "start": "2026-11-09T14:00:00.000Z",
216
+ "end": "2026-11-09T14:20:00.000Z"
217
+ }
218
+ ],
219
+ "marks": [
220
+ {
221
+ "kind": "ready",
222
+ "about": "processes.visit.ready",
223
+ "at": "2026-11-09T11:30:00.000Z",
224
+ "item": "v1"
225
+ },
226
+ {
227
+ "kind": "deadline",
228
+ "about": "processes.visit.deadline",
229
+ "at": "2026-11-09T12:00:00.000Z",
230
+ "item": "v1",
231
+ "spare": 0
232
+ },
233
+ {
234
+ "kind": "ready",
235
+ "about": "processes.visit.ready",
236
+ "at": "2026-11-09T12:30:00.000Z",
237
+ "item": "v2"
238
+ },
239
+ {
240
+ "kind": "deadline",
241
+ "about": "processes.visit.deadline",
242
+ "at": "2026-11-09T13:15:00.000Z",
243
+ "item": "v2",
244
+ "spare": 7
245
+ },
246
+ {
247
+ "kind": "ready",
248
+ "about": "processes.visit.ready",
249
+ "at": "2026-11-09T08:00:00.000Z",
250
+ "item": "v3"
251
+ },
252
+ {
253
+ "kind": "deadline",
254
+ "about": "processes.visit.deadline",
255
+ "at": "2026-11-09T09:00:00.000Z",
256
+ "item": "v3",
257
+ "spare": 30
258
+ },
259
+ {
260
+ "kind": "ready",
261
+ "about": "processes.visit.ready",
262
+ "at": "2026-11-09T10:00:00.000Z",
263
+ "item": "v5"
264
+ },
265
+ {
266
+ "kind": "deadline",
267
+ "about": "processes.visit.deadline",
268
+ "at": "2026-11-09T11:00:00.000Z",
269
+ "item": "v5",
270
+ "spare": 20
271
+ },
272
+ {
273
+ "kind": "ready",
274
+ "about": "processes.visit.ready",
275
+ "at": "2026-11-09T14:00:00.000Z",
276
+ "item": "v6"
277
+ },
278
+ {
279
+ "kind": "deadline",
280
+ "about": "processes.visit.deadline",
281
+ "at": "2026-11-09T15:00:00.000Z",
282
+ "item": "v6",
283
+ "spare": 40
284
+ }
285
+ ],
286
+ "items": [
287
+ {
288
+ "id": "v1",
289
+ "process": "processes.visit",
290
+ "label": "Socket check",
291
+ "period": "2026-11-09",
292
+ "facts": [
293
+ {
294
+ "about": "processes.visit.ready",
295
+ "label": "arrival window",
296
+ "text": "11:30"
297
+ },
298
+ {
299
+ "about": "processes.visit.deadline",
300
+ "label": "latest finish",
301
+ "text": "12:00"
302
+ },
303
+ {
304
+ "about": "processes.visit.steps.work",
305
+ "label": "fits",
306
+ "text": "1 of 3 technicians"
307
+ }
308
+ ],
309
+ "late": null,
310
+ "fulfils": [],
311
+ "steps": [
312
+ {
313
+ "about": "processes.visit.steps.work",
314
+ "on": "t1",
315
+ "start": "2026-11-09T11:30:00.000Z",
316
+ "end": "2026-11-09T12:00:00.000Z",
317
+ "causes": [
318
+ {
319
+ "kind": "ready",
320
+ "about": "processes.visit.ready",
321
+ "says": "Arrival window: 11:30, so it can't start before then.",
322
+ "short": "Arrival window 11:30",
323
+ "at": "2026-11-09T11:30:00.000Z",
324
+ "assumed": false,
325
+ "refs": {
326
+ "item": "v1"
327
+ },
328
+ "levers": [
329
+ {
330
+ "kind": "row",
331
+ "about": "processes.visit.ready",
332
+ "says": "Its arrival window"
333
+ }
334
+ ]
335
+ }
336
+ ],
337
+ "eligible": [
338
+ {
339
+ "on": "people.technician",
340
+ "rows": [
341
+ "t1"
342
+ ]
343
+ }
344
+ ]
345
+ }
346
+ ],
347
+ "broken": [],
348
+ "early": null
349
+ },
350
+ {
351
+ "id": "v2",
352
+ "process": "processes.visit",
353
+ "label": "Relay check",
354
+ "period": "2026-11-09",
355
+ "facts": [
356
+ {
357
+ "about": "processes.visit.ready",
358
+ "label": "arrival window",
359
+ "text": "12:30"
360
+ },
361
+ {
362
+ "about": "processes.visit.deadline",
363
+ "label": "latest finish",
364
+ "text": "13:15"
365
+ },
366
+ {
367
+ "about": "processes.visit.steps.work",
368
+ "label": "fits",
369
+ "text": "1 of 3 technicians"
370
+ }
371
+ ],
372
+ "late": null,
373
+ "fulfils": [],
374
+ "steps": [
375
+ {
376
+ "about": "processes.visit.steps.work",
377
+ "on": "t1",
378
+ "start": "2026-11-09T12:38:00.000Z",
379
+ "end": "2026-11-09T13:08:00.000Z",
380
+ "causes": [
381
+ {
382
+ "kind": "unavailable",
383
+ "about": "people.technician",
384
+ "says": "Relay check waits for Neri, away until 12:30 (lunch).",
385
+ "short": "Neri away until 12:30",
386
+ "at": "2026-11-09T12:38:00.000Z",
387
+ "assumed": false,
388
+ "refs": {
389
+ "row": "t1"
390
+ },
391
+ "levers": [
392
+ {
393
+ "kind": "row",
394
+ "about": "people.technician",
395
+ "says": "Neri's unavailable times"
396
+ }
397
+ ]
398
+ }
399
+ ],
400
+ "eligible": [
401
+ {
402
+ "on": "people.technician",
403
+ "rows": [
404
+ "t1"
405
+ ]
406
+ }
407
+ ]
408
+ }
409
+ ],
410
+ "broken": [],
411
+ "early": null
412
+ },
413
+ {
414
+ "id": "v3",
415
+ "process": "processes.visit",
416
+ "label": "Valve check",
417
+ "period": "2026-11-09",
418
+ "facts": [
419
+ {
420
+ "about": "processes.visit.ready",
421
+ "label": "arrival window",
422
+ "text": "08:00"
423
+ },
424
+ {
425
+ "about": "processes.visit.deadline",
426
+ "label": "latest finish",
427
+ "text": "09:00"
428
+ },
429
+ {
430
+ "about": "processes.visit.steps.work",
431
+ "label": "fits",
432
+ "text": "1 of 3 technicians"
433
+ }
434
+ ],
435
+ "late": null,
436
+ "fulfils": [],
437
+ "steps": [
438
+ {
439
+ "about": "processes.visit.steps.work",
440
+ "on": "t2",
441
+ "start": "2026-11-09T08:00:00.000Z",
442
+ "end": "2026-11-09T08:30:00.000Z",
443
+ "causes": [
444
+ {
445
+ "kind": "ready",
446
+ "about": "processes.visit.ready",
447
+ "says": "Arrival window: 08:00, so it can't start before then.",
448
+ "short": "Arrival window 08:00",
449
+ "at": "2026-11-09T08:00:00.000Z",
450
+ "assumed": false,
451
+ "refs": {
452
+ "item": "v3"
453
+ },
454
+ "levers": [
455
+ {
456
+ "kind": "row",
457
+ "about": "processes.visit.ready",
458
+ "says": "Its arrival window"
459
+ }
460
+ ]
461
+ },
462
+ {
463
+ "kind": "hours",
464
+ "about": "hours",
465
+ "says": "The site opens at 08:00.",
466
+ "short": "Opens 08:00",
467
+ "at": "2026-11-09T08:00:00.000Z",
468
+ "assumed": false,
469
+ "refs": {},
470
+ "levers": [
471
+ {
472
+ "kind": "hours",
473
+ "about": "hours",
474
+ "says": "Open earlier"
475
+ }
476
+ ]
477
+ }
478
+ ],
479
+ "eligible": [
480
+ {
481
+ "on": "people.technician",
482
+ "rows": [
483
+ "t2"
484
+ ]
485
+ }
486
+ ]
487
+ }
488
+ ],
489
+ "broken": [],
490
+ "early": null
491
+ },
492
+ {
493
+ "id": "v5",
494
+ "process": "processes.visit",
495
+ "label": "Meter check",
496
+ "period": "2026-11-09",
497
+ "facts": [
498
+ {
499
+ "about": "processes.visit.ready",
500
+ "label": "arrival window",
501
+ "text": "10:00"
502
+ },
503
+ {
504
+ "about": "processes.visit.deadline",
505
+ "label": "latest finish",
506
+ "text": "11:00"
507
+ },
508
+ {
509
+ "about": "processes.visit.steps.work",
510
+ "label": "fits",
511
+ "text": "1 of 3 technicians"
512
+ }
513
+ ],
514
+ "late": null,
515
+ "fulfils": [],
516
+ "steps": [
517
+ {
518
+ "about": "processes.visit.steps.work",
519
+ "on": "t3",
520
+ "start": "2026-11-09T10:00:00.000Z",
521
+ "end": "2026-11-09T10:40:00.000Z",
522
+ "causes": [
523
+ {
524
+ "kind": "ready",
525
+ "about": "processes.visit.ready",
526
+ "says": "Arrival window: 10:00, so it can't start before then.",
527
+ "short": "Arrival window 10:00",
528
+ "at": "2026-11-09T10:00:00.000Z",
529
+ "assumed": false,
530
+ "refs": {
531
+ "item": "v5"
532
+ },
533
+ "levers": [
534
+ {
535
+ "kind": "row",
536
+ "about": "processes.visit.ready",
537
+ "says": "Its arrival window"
538
+ }
539
+ ]
540
+ }
541
+ ],
542
+ "eligible": [
543
+ {
544
+ "on": "people.technician",
545
+ "rows": [
546
+ "t3"
547
+ ]
548
+ }
549
+ ]
550
+ }
551
+ ],
552
+ "broken": [],
553
+ "early": null
554
+ },
555
+ {
556
+ "id": "v6",
557
+ "process": "processes.visit",
558
+ "label": "Reading check",
559
+ "period": "2026-11-09",
560
+ "facts": [
561
+ {
562
+ "about": "processes.visit.ready",
563
+ "label": "arrival window",
564
+ "text": "14:00"
565
+ },
566
+ {
567
+ "about": "processes.visit.deadline",
568
+ "label": "latest finish",
569
+ "text": "15:00"
570
+ },
571
+ {
572
+ "about": "processes.visit.steps.work",
573
+ "label": "fits",
574
+ "text": "1 of 3 technicians"
575
+ }
576
+ ],
577
+ "late": null,
578
+ "fulfils": [],
579
+ "steps": [
580
+ {
581
+ "about": "processes.visit.steps.work",
582
+ "on": "t3",
583
+ "start": "2026-11-09T14:00:00.000Z",
584
+ "end": "2026-11-09T14:20:00.000Z",
585
+ "causes": [
586
+ {
587
+ "kind": "ready",
588
+ "about": "processes.visit.ready",
589
+ "says": "Arrival window: 14:00, so it can't start before then.",
590
+ "short": "Arrival window 14:00",
591
+ "at": "2026-11-09T14:00:00.000Z",
592
+ "assumed": false,
593
+ "refs": {
594
+ "item": "v6"
595
+ },
596
+ "levers": [
597
+ {
598
+ "kind": "row",
599
+ "about": "processes.visit.ready",
600
+ "says": "Its arrival window"
601
+ }
602
+ ]
603
+ }
604
+ ],
605
+ "eligible": [
606
+ {
607
+ "on": "people.technician",
608
+ "rows": [
609
+ "t3"
610
+ ]
611
+ }
612
+ ]
613
+ }
614
+ ],
615
+ "broken": [],
616
+ "early": null
617
+ }
618
+ ],
619
+ "setsFinish": [
620
+ {
621
+ "period": "2026-11-09",
622
+ "row": "t3",
623
+ "says": "Tavi sets the day's finish: busy from 10:00 to 14:20, with 1 trip.",
624
+ "chain": [
625
+ {
626
+ "kind": "ready",
627
+ "about": "processes.visit.ready",
628
+ "says": "Arrival window: 14:00, so Reading check can't start before then.",
629
+ "short": "Arrival window 14:00",
630
+ "at": "2026-11-09T14:00:00.000Z",
631
+ "assumed": false,
632
+ "refs": {
633
+ "item": "v6"
634
+ },
635
+ "levers": [
636
+ {
637
+ "kind": "row",
638
+ "about": "processes.visit.ready",
639
+ "says": "Its arrival window"
640
+ }
641
+ ]
642
+ }
643
+ ]
644
+ }
645
+ ],
646
+ "undone": [
647
+ {
648
+ "item": "v4",
649
+ "process": "processes.visit",
650
+ "label": "Seal repair",
651
+ "by": {
652
+ "about": "priorities.Do as many visits as possible",
653
+ "says": "Do as many visits as possible"
654
+ },
655
+ "says": "Seal repair was left undone: it did not fit in the day."
656
+ }
657
+ ],
658
+ "plan": null,
659
+ "rounds": null,
660
+ "stock": []
661
+ }