@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.
- package/dist/index.cjs +6878 -0
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +6850 -0
- package/dist/internal.cjs +17244 -0
- package/dist/internal.d.cts +1275 -0
- package/dist/internal.d.ts +1275 -0
- package/dist/internal.js +17164 -0
- package/dist/layout-ZQ45Tlkb.d.cts +2111 -0
- package/dist/layout-efr1Ke_2.d.ts +2111 -0
- package/dist/layout.cjs +19 -0
- package/dist/layout.d.cts +2 -0
- package/dist/layout.d.ts +2 -0
- package/dist/layout.js +1 -0
- package/dist/record-results-BWnJIpkK.d.ts +222 -0
- package/dist/record-results-DPczGZWH.d.cts +222 -0
- package/dist/types-DIFPlxBZ.d.cts +1865 -0
- package/dist/types-DIFPlxBZ.d.ts +1865 -0
- package/fixtures/operation/bakery/operation.json +350 -0
- package/fixtures/operation/bakery/plan.json +872 -0
- package/fixtures/operation/bakery/readback.json +114 -0
- package/fixtures/operation/bakery/score.json +1520 -0
- package/fixtures/operation/bakery/timeline.json +2376 -0
- package/fixtures/operation/clinic/operation.json +223 -0
- package/fixtures/operation/clinic/plan.json +383 -0
- package/fixtures/operation/clinic/readback.json +83 -0
- package/fixtures/operation/clinic/score.json +1305 -0
- package/fixtures/operation/clinic/timeline.json +2283 -0
- package/fixtures/operation/field-service/operation.json +194 -0
- package/fixtures/operation/field-service/plan.json +172 -0
- package/fixtures/operation/field-service/readback.json +73 -0
- package/fixtures/operation/field-service/score.json +585 -0
- package/fixtures/operation/field-service/timeline.json +661 -0
- package/fixtures/operation/filling/operation.json +245 -0
- package/fixtures/operation/filling/plan.json +525 -0
- package/fixtures/operation/filling/readback.json +87 -0
- package/fixtures/operation/filling/score.json +756 -0
- package/fixtures/operation/filling/timeline.json +1322 -0
- package/fixtures/operation/shop/operation.json +320 -0
- package/fixtures/operation/shop/plan.json +664 -0
- package/fixtures/operation/shop/readback.json +130 -0
- package/fixtures/operation/shop/score.json +1106 -0
- package/fixtures/operation/shop/timeline.json +2734 -0
- package/fixtures/operation/warehouse-day/operation.json +517 -0
- package/fixtures/operation/warehouse-day/plan.json +477 -0
- package/fixtures/operation/warehouse-day/readback.json +207 -0
- package/fixtures/operation/warehouse-day/score.json +979 -0
- package/fixtures/operation/warehouse-day/timeline.json +1420 -0
- package/package.json +63 -4
- package/README.md +0 -3
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "keel.solver.operation/2",
|
|
3
|
+
"hash": "sha256:1d3405714873160158f5a3abf3e8d47bc75d4cacc51abafb2ee2e6eaa7ca6fc8",
|
|
4
|
+
"solver": "FieldService",
|
|
5
|
+
"words": {},
|
|
6
|
+
"nouns": [
|
|
7
|
+
{
|
|
8
|
+
"kind": "hours",
|
|
9
|
+
"at": {
|
|
10
|
+
"line": 35
|
|
11
|
+
},
|
|
12
|
+
"about": "hours",
|
|
13
|
+
"name": "hours",
|
|
14
|
+
"words": {
|
|
15
|
+
"one": "hours",
|
|
16
|
+
"many": "hours",
|
|
17
|
+
"at": "in"
|
|
18
|
+
},
|
|
19
|
+
"open": [
|
|
20
|
+
"08:00-16:00"
|
|
21
|
+
],
|
|
22
|
+
"openOn": [],
|
|
23
|
+
"startUp": null,
|
|
24
|
+
"dayStarts": null,
|
|
25
|
+
"allDay": [],
|
|
26
|
+
"startUpWith": null,
|
|
27
|
+
"ends": null
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"kind": "person",
|
|
31
|
+
"at": {
|
|
32
|
+
"line": 20
|
|
33
|
+
},
|
|
34
|
+
"about": "people.technician",
|
|
35
|
+
"name": "technician",
|
|
36
|
+
"words": {
|
|
37
|
+
"one": "technician",
|
|
38
|
+
"many": "technicians",
|
|
39
|
+
"at": "with"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"kind": "downtime",
|
|
44
|
+
"at": {
|
|
45
|
+
"line": 22
|
|
46
|
+
},
|
|
47
|
+
"about": "people.technician.downtime.travel",
|
|
48
|
+
"name": "trip",
|
|
49
|
+
"words": {
|
|
50
|
+
"one": "trip",
|
|
51
|
+
"many": "trips",
|
|
52
|
+
"at": "on"
|
|
53
|
+
},
|
|
54
|
+
"on": "people.technician",
|
|
55
|
+
"triggers": [
|
|
56
|
+
{
|
|
57
|
+
"when": "change",
|
|
58
|
+
"key": "postcode"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"table": null,
|
|
62
|
+
"people": []
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"kind": "process",
|
|
66
|
+
"at": {
|
|
67
|
+
"line": 24
|
|
68
|
+
},
|
|
69
|
+
"about": "processes.visit",
|
|
70
|
+
"name": "visit",
|
|
71
|
+
"words": {
|
|
72
|
+
"one": "visit",
|
|
73
|
+
"many": "visits",
|
|
74
|
+
"at": "on"
|
|
75
|
+
},
|
|
76
|
+
"ready": {
|
|
77
|
+
"key": "readyAt",
|
|
78
|
+
"called": "arrival window",
|
|
79
|
+
"says": null,
|
|
80
|
+
"notEarlier": null
|
|
81
|
+
},
|
|
82
|
+
"due": null,
|
|
83
|
+
"deadline": {
|
|
84
|
+
"key": "latestAt",
|
|
85
|
+
"called": "latest finish",
|
|
86
|
+
"says": null,
|
|
87
|
+
"notEarlier": null
|
|
88
|
+
},
|
|
89
|
+
"leaves": null,
|
|
90
|
+
"release": null,
|
|
91
|
+
"where": null,
|
|
92
|
+
"makes": [],
|
|
93
|
+
"yields": [],
|
|
94
|
+
"consumes": [],
|
|
95
|
+
"scheduleOnly": false,
|
|
96
|
+
"batched": false
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"kind": "step",
|
|
100
|
+
"at": {
|
|
101
|
+
"line": 27
|
|
102
|
+
},
|
|
103
|
+
"about": "processes.visit.steps.work",
|
|
104
|
+
"name": "work",
|
|
105
|
+
"words": {
|
|
106
|
+
"one": "work",
|
|
107
|
+
"many": "works",
|
|
108
|
+
"at": "with"
|
|
109
|
+
},
|
|
110
|
+
"uses": [
|
|
111
|
+
{
|
|
112
|
+
"on": "people.technician",
|
|
113
|
+
"until": null,
|
|
114
|
+
"perRun": false,
|
|
115
|
+
"only": {
|
|
116
|
+
"because": "Send only a technician with the visit's skill",
|
|
117
|
+
"per": "job"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"crew": [],
|
|
122
|
+
"after": [],
|
|
123
|
+
"waits": [],
|
|
124
|
+
"order": 1,
|
|
125
|
+
"tone": 0,
|
|
126
|
+
"collects": [],
|
|
127
|
+
"inPortions": false,
|
|
128
|
+
"perRun": false,
|
|
129
|
+
"startsDuring": null
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"kind": "priority",
|
|
133
|
+
"at": {
|
|
134
|
+
"line": 40
|
|
135
|
+
},
|
|
136
|
+
"about": "priorities.Do as many visits as possible",
|
|
137
|
+
"name": "Do as many visits as possible",
|
|
138
|
+
"words": {
|
|
139
|
+
"one": "Do as many visits as possible",
|
|
140
|
+
"many": "Do as many visits as possible",
|
|
141
|
+
"at": "on"
|
|
142
|
+
},
|
|
143
|
+
"tier": "first",
|
|
144
|
+
"tolerance": null,
|
|
145
|
+
"level": null
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"kind": "priority",
|
|
149
|
+
"at": {
|
|
150
|
+
"line": 41
|
|
151
|
+
},
|
|
152
|
+
"about": "priorities.Then spend less time travelling",
|
|
153
|
+
"name": "Then spend less time travelling",
|
|
154
|
+
"words": {
|
|
155
|
+
"one": "Then spend less time travelling",
|
|
156
|
+
"many": "Then spend less time travelling",
|
|
157
|
+
"at": "on"
|
|
158
|
+
},
|
|
159
|
+
"tier": "then",
|
|
160
|
+
"tolerance": null,
|
|
161
|
+
"level": null
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"lowers": {
|
|
165
|
+
"plan": null,
|
|
166
|
+
"schedule": {
|
|
167
|
+
"decisions": {
|
|
168
|
+
"visit.work": "processes.visit.steps.work"
|
|
169
|
+
},
|
|
170
|
+
"rules": {
|
|
171
|
+
"technician.travel": "people.technician.downtime.travel",
|
|
172
|
+
"visit.open": "hours",
|
|
173
|
+
"visit.close": "hours",
|
|
174
|
+
"visit.ready": "processes.visit.ready",
|
|
175
|
+
"visit.deadline": "processes.visit.deadline"
|
|
176
|
+
},
|
|
177
|
+
"goals": {
|
|
178
|
+
"Do as many visits as possible": "priorities.Do as many visits as possible",
|
|
179
|
+
"Then spend less time travelling": "priorities.Then spend less time travelling"
|
|
180
|
+
},
|
|
181
|
+
"kpis": {},
|
|
182
|
+
"usages": {},
|
|
183
|
+
"estimates": {},
|
|
184
|
+
"itemSets": {
|
|
185
|
+
"visit": "processes.visit"
|
|
186
|
+
},
|
|
187
|
+
"levels": {
|
|
188
|
+
"1": "priorities.Do as many visits as possible",
|
|
189
|
+
"2": "priorities.Then spend less time travelling"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"confirmed": null
|
|
194
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "keel.solver.plan/1",
|
|
3
|
+
"run": "run-field-service-1",
|
|
4
|
+
"build": "sha256:949bca8cd5666bb2fc08d79c0fc4559e20296acc72eb95f8dae5907231745aca",
|
|
5
|
+
"status": "optimal",
|
|
6
|
+
"reason": "proved",
|
|
7
|
+
"clock": {
|
|
8
|
+
"from": "2026-11-09T08:00:00.000Z",
|
|
9
|
+
"to": "2026-11-10T00:00:00.000Z",
|
|
10
|
+
"zone": "UTC",
|
|
11
|
+
"unitMs": 60000
|
|
12
|
+
},
|
|
13
|
+
"resources": [
|
|
14
|
+
{
|
|
15
|
+
"id": "t1",
|
|
16
|
+
"label": "Neri",
|
|
17
|
+
"kind": "person",
|
|
18
|
+
"group": "technicians"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "t2",
|
|
22
|
+
"label": "Vola",
|
|
23
|
+
"kind": "person",
|
|
24
|
+
"group": "technicians"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "t3",
|
|
28
|
+
"label": "Tavi",
|
|
29
|
+
"kind": "person",
|
|
30
|
+
"group": "technicians"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"items": {
|
|
34
|
+
"visit": [
|
|
35
|
+
{
|
|
36
|
+
"id": "v1",
|
|
37
|
+
"label": "Socket check"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "v2",
|
|
41
|
+
"label": "Relay check"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "v3",
|
|
45
|
+
"label": "Valve check"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "v4",
|
|
49
|
+
"label": "Seal repair"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"id": "v5",
|
|
53
|
+
"label": "Meter check"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "v6",
|
|
57
|
+
"label": "Reading check"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"values": {
|
|
62
|
+
"visit.work": {
|
|
63
|
+
"v1": {
|
|
64
|
+
"on": "t1",
|
|
65
|
+
"start": "2026-11-09T11:30:00.000Z",
|
|
66
|
+
"end": "2026-11-09T12:00:00.000Z"
|
|
67
|
+
},
|
|
68
|
+
"v2": {
|
|
69
|
+
"on": "t1",
|
|
70
|
+
"start": "2026-11-09T12:38:00.000Z",
|
|
71
|
+
"end": "2026-11-09T13:08:00.000Z"
|
|
72
|
+
},
|
|
73
|
+
"v3": {
|
|
74
|
+
"on": "t2",
|
|
75
|
+
"start": "2026-11-09T08:00:00.000Z",
|
|
76
|
+
"end": "2026-11-09T08:30:00.000Z"
|
|
77
|
+
},
|
|
78
|
+
"v4": {
|
|
79
|
+
"on": null,
|
|
80
|
+
"start": "2026-11-09T08:00:00.000Z",
|
|
81
|
+
"end": "2026-11-09T08:00:00.000Z"
|
|
82
|
+
},
|
|
83
|
+
"v5": {
|
|
84
|
+
"on": "t3",
|
|
85
|
+
"start": "2026-11-09T10:00:00.000Z",
|
|
86
|
+
"end": "2026-11-09T10:40:00.000Z"
|
|
87
|
+
},
|
|
88
|
+
"v6": {
|
|
89
|
+
"on": "t3",
|
|
90
|
+
"start": "2026-11-09T14:00:00.000Z",
|
|
91
|
+
"end": "2026-11-09T14:20:00.000Z"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"byResource": {
|
|
96
|
+
"t1": [
|
|
97
|
+
{
|
|
98
|
+
"decision": "visit.work",
|
|
99
|
+
"item": "v1",
|
|
100
|
+
"kind": "work",
|
|
101
|
+
"step": "work",
|
|
102
|
+
"start": "2026-11-09T11:30:00.000Z",
|
|
103
|
+
"end": "2026-11-09T12:00:00.000Z"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"decision": "visit.work",
|
|
107
|
+
"item": "v2",
|
|
108
|
+
"kind": "changeover",
|
|
109
|
+
"after": "v1",
|
|
110
|
+
"rule": "technician.travel",
|
|
111
|
+
"start": "2026-11-09T12:00:00.000Z",
|
|
112
|
+
"end": "2026-11-09T12:08:00.000Z"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"decision": "visit.work",
|
|
116
|
+
"item": "v2",
|
|
117
|
+
"kind": "work",
|
|
118
|
+
"step": "work",
|
|
119
|
+
"start": "2026-11-09T12:38:00.000Z",
|
|
120
|
+
"end": "2026-11-09T13:08:00.000Z"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"t2": [
|
|
124
|
+
{
|
|
125
|
+
"decision": "visit.work",
|
|
126
|
+
"item": "v3",
|
|
127
|
+
"kind": "work",
|
|
128
|
+
"step": "work",
|
|
129
|
+
"start": "2026-11-09T08:00:00.000Z",
|
|
130
|
+
"end": "2026-11-09T08:30:00.000Z"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"t3": [
|
|
134
|
+
{
|
|
135
|
+
"decision": "visit.work",
|
|
136
|
+
"item": "v5",
|
|
137
|
+
"kind": "work",
|
|
138
|
+
"step": "work",
|
|
139
|
+
"start": "2026-11-09T10:00:00.000Z",
|
|
140
|
+
"end": "2026-11-09T10:40:00.000Z"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"decision": "visit.work",
|
|
144
|
+
"item": "v6",
|
|
145
|
+
"kind": "changeover",
|
|
146
|
+
"after": "v5",
|
|
147
|
+
"rule": "technician.travel",
|
|
148
|
+
"start": "2026-11-09T10:40:00.000Z",
|
|
149
|
+
"end": "2026-11-09T10:46:00.000Z"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"decision": "visit.work",
|
|
153
|
+
"item": "v6",
|
|
154
|
+
"kind": "work",
|
|
155
|
+
"step": "work",
|
|
156
|
+
"start": "2026-11-09T14:00:00.000Z",
|
|
157
|
+
"end": "2026-11-09T14:20:00.000Z"
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
"kpis": {},
|
|
162
|
+
"assumptions": [],
|
|
163
|
+
"warnings": [],
|
|
164
|
+
"modes": {
|
|
165
|
+
"@optional:[\"visit\",\"v1\"]": "yes",
|
|
166
|
+
"@optional:[\"visit\",\"v2\"]": "yes",
|
|
167
|
+
"@optional:[\"visit\",\"v3\"]": "yes",
|
|
168
|
+
"@optional:[\"visit\",\"v4\"]": "no",
|
|
169
|
+
"@optional:[\"visit\",\"v5\"]": "yes",
|
|
170
|
+
"@optional:[\"visit\",\"v6\"]": "yes"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "keel.solver.readback/2",
|
|
3
|
+
"zone": "UTC",
|
|
4
|
+
"unread": [],
|
|
5
|
+
"sentences": [
|
|
6
|
+
{
|
|
7
|
+
"about": "hours",
|
|
8
|
+
"says": "Open 08:00 to 16:00.",
|
|
9
|
+
"plain": "Open 08:00 to 16:00."
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"about": "hours",
|
|
13
|
+
"says": "Closing can run late if the day can't fit.",
|
|
14
|
+
"plain": "If the work doesn't fit in the open hours, it runs past closing."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"about": "people.technician",
|
|
18
|
+
"says": "Technicians, one for each of the technicians.",
|
|
19
|
+
"plain": "Technicians, one for each of the technicians."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"about": "people.technician",
|
|
23
|
+
"says": "The technicians are unavailable for lunch.",
|
|
24
|
+
"plain": "The technicians are unavailable for lunch."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"about": "people.technician.downtime.travel",
|
|
28
|
+
"says": "The technicians travel between locations; the minutes come from travelMinutes.",
|
|
29
|
+
"plain": "The technicians need travel time between locations."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"about": "processes.visit",
|
|
33
|
+
"says": "Visit, one for each of the visits: work.",
|
|
34
|
+
"plain": "Visit, one for each of the visits: work."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"about": "processes.visit",
|
|
38
|
+
"says": "A visit may be left undone.",
|
|
39
|
+
"plain": "A visit may be left undone."
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"about": "processes.visit.steps.work",
|
|
43
|
+
"says": "Work with a technician, for the visit's minutes.",
|
|
44
|
+
"plain": "Work with a technician, for the visit's work time."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"about": "processes.visit.steps.work",
|
|
48
|
+
"says": "Send only a technician with the visit's skill.",
|
|
49
|
+
"plain": "Send only a technician with the visit's skill."
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"about": "processes.visit.ready",
|
|
53
|
+
"says": "Work not before its arrival window (readyAt).",
|
|
54
|
+
"plain": "Work not before its arrival window."
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"about": "processes.visit.deadline",
|
|
58
|
+
"says": "Work ends by its latest finish (latestAt), unless the day can't fit.",
|
|
59
|
+
"plain": "Work ends by its latest finish, or later only if the work doesn't fit."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"about": "priorities.Do as many visits as possible",
|
|
63
|
+
"says": "First, do as many visits as possible: the number of visits left undone.",
|
|
64
|
+
"plain": "First, do as many visits as possible: the number of visits left undone."
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"about": "priorities.Then spend less time travelling",
|
|
68
|
+
"says": "Then spend less time travelling: the travel minutes.",
|
|
69
|
+
"plain": "Then spend less time travelling: the time spent travelling."
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"refusals": []
|
|
73
|
+
}
|