planar 0.10.0__py3-none-any.whl → 0.11.0__py3-none-any.whl
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.
- planar/app.py +18 -6
- planar/routers/info.py +79 -36
- planar/scaffold_templates/pyproject.toml.j2 +1 -1
- planar/testing/fixtures.py +7 -4
- {planar-0.10.0.dist-info → planar-0.11.0.dist-info}/METADATA +9 -1
- {planar-0.10.0.dist-info → planar-0.11.0.dist-info}/RECORD +8 -60
- planar/ai/test_agent_serialization.py +0 -229
- planar/ai/test_agent_tool_step_display.py +0 -78
- planar/data/test_dataset.py +0 -358
- planar/files/storage/test_azure_blob.py +0 -435
- planar/files/storage/test_local_directory.py +0 -162
- planar/files/storage/test_s3.py +0 -299
- planar/files/test_files.py +0 -282
- planar/human/test_human.py +0 -385
- planar/logging/test_formatter.py +0 -327
- planar/modeling/mixins/test_auditable.py +0 -97
- planar/modeling/mixins/test_timestamp.py +0 -134
- planar/modeling/mixins/test_uuid_primary_key.py +0 -52
- planar/routers/test_agents_router.py +0 -174
- planar/routers/test_dataset_router.py +0 -429
- planar/routers/test_files_router.py +0 -49
- planar/routers/test_object_config_router.py +0 -367
- planar/routers/test_routes_security.py +0 -168
- planar/routers/test_rule_router.py +0 -470
- planar/routers/test_workflow_router.py +0 -564
- planar/rules/test_data/account_dormancy_management.json +0 -223
- planar/rules/test_data/airline_loyalty_points_calculator.json +0 -262
- planar/rules/test_data/applicant_risk_assessment.json +0 -435
- planar/rules/test_data/booking_fraud_detection.json +0 -407
- planar/rules/test_data/cellular_data_rollover_system.json +0 -258
- planar/rules/test_data/clinical_trial_eligibility_screener.json +0 -437
- planar/rules/test_data/customer_lifetime_value.json +0 -143
- planar/rules/test_data/import_duties_calculator.json +0 -289
- planar/rules/test_data/insurance_prior_authorization.json +0 -443
- planar/rules/test_data/online_check_in_eligibility_system.json +0 -254
- planar/rules/test_data/order_consolidation_system.json +0 -375
- planar/rules/test_data/portfolio_risk_monitor.json +0 -471
- planar/rules/test_data/supply_chain_risk.json +0 -253
- planar/rules/test_data/warehouse_cross_docking.json +0 -237
- planar/rules/test_rules.py +0 -1494
- planar/security/tests/test_auth_middleware.py +0 -162
- planar/security/tests/test_authorization_context.py +0 -78
- planar/security/tests/test_cedar_basics.py +0 -41
- planar/security/tests/test_cedar_policies.py +0 -158
- planar/security/tests/test_jwt_principal_context.py +0 -179
- planar/test_app.py +0 -142
- planar/test_cli.py +0 -394
- planar/test_config.py +0 -515
- planar/test_object_config.py +0 -527
- planar/test_object_registry.py +0 -14
- planar/test_sqlalchemy.py +0 -193
- planar/test_utils.py +0 -105
- planar/testing/test_memory_storage.py +0 -143
- planar/workflows/test_concurrency_detection.py +0 -120
- planar/workflows/test_lock_timeout.py +0 -140
- planar/workflows/test_serialization.py +0 -1203
- planar/workflows/test_suspend_deserialization.py +0 -231
- planar/workflows/test_workflow.py +0 -2005
- {planar-0.10.0.dist-info → planar-0.11.0.dist-info}/WHEEL +0 -0
- {planar-0.10.0.dist-info → planar-0.11.0.dist-info}/entry_points.txt +0 -0
@@ -1,375 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"nodes": [
|
3
|
-
{
|
4
|
-
"type": "inputNode",
|
5
|
-
"content": {
|
6
|
-
"schema": ""
|
7
|
-
},
|
8
|
-
"id": "ip1",
|
9
|
-
"name": "request",
|
10
|
-
"position": {
|
11
|
-
"x": 110,
|
12
|
-
"y": 114
|
13
|
-
}
|
14
|
-
},
|
15
|
-
{
|
16
|
-
"type": "decisionTableNode",
|
17
|
-
"content": {
|
18
|
-
"hitPolicy": "first",
|
19
|
-
"rules": [
|
20
|
-
{
|
21
|
-
"_id": "r1-1",
|
22
|
-
"i1-1": "< 50",
|
23
|
-
"i1-2": "< 48",
|
24
|
-
"i1-3": "> 3",
|
25
|
-
"o1-1": "'high'",
|
26
|
-
"o1-2": "'Orders are nearby, delivery window compatible, and carrier has capacity'"
|
27
|
-
},
|
28
|
-
{
|
29
|
-
"_id": "r1-2",
|
30
|
-
"i1-1": "< 50",
|
31
|
-
"i1-2": "< 72",
|
32
|
-
"i1-3": "> 2",
|
33
|
-
"o1-1": "'medium'",
|
34
|
-
"o1-2": "'Orders are nearby with slightly different delivery windows but carrier has capacity'"
|
35
|
-
},
|
36
|
-
{
|
37
|
-
"_id": "r1-3",
|
38
|
-
"i1-1": "< 100",
|
39
|
-
"i1-2": "< 48",
|
40
|
-
"i1-3": "> 2",
|
41
|
-
"o1-1": "'medium'",
|
42
|
-
"o1-2": "'Orders are reasonably close with compatible delivery windows and carrier has capacity'"
|
43
|
-
},
|
44
|
-
{
|
45
|
-
"_id": "r1-4",
|
46
|
-
"i1-1": "< 100",
|
47
|
-
"i1-2": "< 72",
|
48
|
-
"i1-3": "> 1",
|
49
|
-
"o1-1": "'low'",
|
50
|
-
"o1-2": "'Orders are reasonably close with slightly different delivery windows and minimal carrier capacity'"
|
51
|
-
},
|
52
|
-
{
|
53
|
-
"_id": "r1-5",
|
54
|
-
"i1-1": "",
|
55
|
-
"i1-2": "",
|
56
|
-
"i1-3": "",
|
57
|
-
"o1-1": "'none'",
|
58
|
-
"o1-2": "'Orders cannot be consolidated due to distance, delivery timing, or carrier capacity'"
|
59
|
-
}
|
60
|
-
],
|
61
|
-
"inputs": [
|
62
|
-
{
|
63
|
-
"id": "i1-1",
|
64
|
-
"name": "Distance (km)",
|
65
|
-
"field": "distanceKm"
|
66
|
-
},
|
67
|
-
{
|
68
|
-
"id": "i1-2",
|
69
|
-
"name": "Delivery Window Difference (hours)",
|
70
|
-
"field": "deliveryWindowDifferenceHours"
|
71
|
-
},
|
72
|
-
{
|
73
|
-
"id": "i1-3",
|
74
|
-
"name": "Available Carrier Capacity",
|
75
|
-
"field": "availableCarrierCapacity"
|
76
|
-
}
|
77
|
-
],
|
78
|
-
"outputs": [
|
79
|
-
{
|
80
|
-
"id": "o1-1",
|
81
|
-
"name": "Consolidation Priority",
|
82
|
-
"field": "consolidationPriority"
|
83
|
-
},
|
84
|
-
{
|
85
|
-
"id": "o1-2",
|
86
|
-
"name": "Explanation",
|
87
|
-
"field": "explanation"
|
88
|
-
}
|
89
|
-
],
|
90
|
-
"passThrough": true,
|
91
|
-
"inputField": null,
|
92
|
-
"outputPath": null,
|
93
|
-
"executionMode": "single"
|
94
|
-
},
|
95
|
-
"id": "dt1",
|
96
|
-
"name": "evaluateConsolidationFactors",
|
97
|
-
"position": {
|
98
|
-
"x": 430,
|
99
|
-
"y": 114
|
100
|
-
}
|
101
|
-
},
|
102
|
-
{
|
103
|
-
"type": "expressionNode",
|
104
|
-
"content": {
|
105
|
-
"expressions": [
|
106
|
-
{
|
107
|
-
"id": "e1-1",
|
108
|
-
"key": "canConsolidate",
|
109
|
-
"value": "consolidationPriority != 'none'"
|
110
|
-
},
|
111
|
-
{
|
112
|
-
"id": "e1-2",
|
113
|
-
"key": "consolidationWeight",
|
114
|
-
"value": "orderWeight1 + orderWeight2"
|
115
|
-
},
|
116
|
-
{
|
117
|
-
"id": "e1-3",
|
118
|
-
"key": "expectedFuelSavings",
|
119
|
-
"value": "distanceKm * 0.15"
|
120
|
-
},
|
121
|
-
{
|
122
|
-
"id": "e1-4",
|
123
|
-
"key": "costSavingEstimate",
|
124
|
-
"value": "distanceKm * 0.25 + 15"
|
125
|
-
}
|
126
|
-
],
|
127
|
-
"passThrough": true,
|
128
|
-
"inputField": null,
|
129
|
-
"outputPath": null,
|
130
|
-
"executionMode": "single"
|
131
|
-
},
|
132
|
-
"id": "ex1",
|
133
|
-
"name": "calculateConsolidationMetrics",
|
134
|
-
"position": {
|
135
|
-
"x": 750,
|
136
|
-
"y": 114
|
137
|
-
}
|
138
|
-
},
|
139
|
-
{
|
140
|
-
"type": "switchNode",
|
141
|
-
"content": {
|
142
|
-
"hitPolicy": "first",
|
143
|
-
"statements": [
|
144
|
-
{
|
145
|
-
"id": "s1-1",
|
146
|
-
"condition": "consolidationPriority == 'high'",
|
147
|
-
"isDefault": false
|
148
|
-
},
|
149
|
-
{
|
150
|
-
"id": "s1-2",
|
151
|
-
"condition": "consolidationPriority == 'medium'",
|
152
|
-
"isDefault": false
|
153
|
-
},
|
154
|
-
{
|
155
|
-
"id": "s1-3",
|
156
|
-
"condition": "consolidationPriority == 'low'",
|
157
|
-
"isDefault": false
|
158
|
-
},
|
159
|
-
{
|
160
|
-
"id": "s1-4",
|
161
|
-
"condition": "",
|
162
|
-
"isDefault": true
|
163
|
-
}
|
164
|
-
]
|
165
|
-
},
|
166
|
-
"id": "sw1",
|
167
|
-
"name": "routeByConsolidationPriority",
|
168
|
-
"position": {
|
169
|
-
"x": 1070,
|
170
|
-
"y": 114
|
171
|
-
}
|
172
|
-
},
|
173
|
-
{
|
174
|
-
"type": "expressionNode",
|
175
|
-
"content": {
|
176
|
-
"expressions": [
|
177
|
-
{
|
178
|
-
"id": "e2-1",
|
179
|
-
"key": "consolidationAction",
|
180
|
-
"value": "'immediate_consolidation'"
|
181
|
-
},
|
182
|
-
{
|
183
|
-
"id": "e2-2",
|
184
|
-
"key": "schedulingPriority",
|
185
|
-
"value": "'high'"
|
186
|
-
},
|
187
|
-
{
|
188
|
-
"id": "e2-3",
|
189
|
-
"key": "deliverySchedule",
|
190
|
-
"value": "{'type': 'consolidated', 'estimatedDeliveryTime': requestedDeliveryDate1, 'notificationRequired': false}"
|
191
|
-
},
|
192
|
-
{
|
193
|
-
"id": "e2-4",
|
194
|
-
"key": "costSavingsReport",
|
195
|
-
"value": "{'fuelSavings': expectedFuelSavings, 'laborSavings': costSavingEstimate, 'totalSavings': expectedFuelSavings + costSavingEstimate}"
|
196
|
-
}
|
197
|
-
],
|
198
|
-
"passThrough": true,
|
199
|
-
"inputField": null,
|
200
|
-
"outputPath": null,
|
201
|
-
"executionMode": "single"
|
202
|
-
},
|
203
|
-
"id": "ex2",
|
204
|
-
"name": "highPriorityProcessing",
|
205
|
-
"position": {
|
206
|
-
"x": 1390,
|
207
|
-
"y": -33
|
208
|
-
}
|
209
|
-
},
|
210
|
-
{
|
211
|
-
"type": "expressionNode",
|
212
|
-
"content": {
|
213
|
-
"expressions": [
|
214
|
-
{
|
215
|
-
"id": "e3-1",
|
216
|
-
"key": "consolidationAction",
|
217
|
-
"value": "'scheduled_consolidation'"
|
218
|
-
},
|
219
|
-
{
|
220
|
-
"id": "e3-2",
|
221
|
-
"key": "schedulingPriority",
|
222
|
-
"value": "'medium'"
|
223
|
-
},
|
224
|
-
{
|
225
|
-
"id": "e3-3",
|
226
|
-
"key": "deliverySchedule",
|
227
|
-
"value": "{'type': 'consolidated', 'estimatedDeliveryTime': requestedDeliveryDate1, 'customerConfirmationRequired': deliveryWindowDifferenceHours > 24}"
|
228
|
-
},
|
229
|
-
{
|
230
|
-
"id": "e3-4",
|
231
|
-
"key": "costSavingsReport",
|
232
|
-
"value": "{'fuelSavings': expectedFuelSavings * 0.9, 'laborSavings': costSavingEstimate * 0.8, 'totalSavings': (expectedFuelSavings * 0.9) + (costSavingEstimate * 0.8)}"
|
233
|
-
}
|
234
|
-
],
|
235
|
-
"passThrough": true,
|
236
|
-
"inputField": null,
|
237
|
-
"outputPath": null,
|
238
|
-
"executionMode": "single"
|
239
|
-
},
|
240
|
-
"id": "ex3",
|
241
|
-
"name": "mediumPriorityProcessing",
|
242
|
-
"position": {
|
243
|
-
"x": 1390,
|
244
|
-
"y": 65
|
245
|
-
}
|
246
|
-
},
|
247
|
-
{
|
248
|
-
"type": "expressionNode",
|
249
|
-
"content": {
|
250
|
-
"expressions": [
|
251
|
-
{
|
252
|
-
"id": "e4-1",
|
253
|
-
"key": "consolidationAction",
|
254
|
-
"value": "'optional_consolidation'"
|
255
|
-
},
|
256
|
-
{
|
257
|
-
"id": "e4-2",
|
258
|
-
"key": "schedulingPriority",
|
259
|
-
"value": "'low'"
|
260
|
-
},
|
261
|
-
{
|
262
|
-
"id": "e4-3",
|
263
|
-
"key": "deliverySchedule",
|
264
|
-
"value": "{'type': 'potential_consolidation', 'earliestDeliveryTime': requestedDeliveryDate1, 'latestDeliveryTime': requestedDeliveryDate2, 'customerConfirmationRequired': true}"
|
265
|
-
},
|
266
|
-
{
|
267
|
-
"id": "e4-4",
|
268
|
-
"key": "additionalReview",
|
269
|
-
"value": "'required'"
|
270
|
-
},
|
271
|
-
{
|
272
|
-
"id": "e4-5",
|
273
|
-
"key": "costSavingsReport",
|
274
|
-
"value": "{'fuelSavings': expectedFuelSavings * 0.7, 'laborSavings': costSavingEstimate * 0.6, 'totalSavings': (expectedFuelSavings * 0.7) + (costSavingEstimate * 0.6)}"
|
275
|
-
}
|
276
|
-
],
|
277
|
-
"passThrough": true,
|
278
|
-
"inputField": null,
|
279
|
-
"outputPath": null,
|
280
|
-
"executionMode": "single"
|
281
|
-
},
|
282
|
-
"id": "ex4",
|
283
|
-
"name": "lowPriorityProcessing",
|
284
|
-
"position": {
|
285
|
-
"x": 1390,
|
286
|
-
"y": 163
|
287
|
-
}
|
288
|
-
},
|
289
|
-
{
|
290
|
-
"type": "expressionNode",
|
291
|
-
"content": {
|
292
|
-
"expressions": [
|
293
|
-
{
|
294
|
-
"id": "e5-1",
|
295
|
-
"key": "consolidationAction",
|
296
|
-
"value": "'no_consolidation'"
|
297
|
-
},
|
298
|
-
{
|
299
|
-
"id": "e5-2",
|
300
|
-
"key": "schedulingPriority",
|
301
|
-
"value": "'standard'"
|
302
|
-
},
|
303
|
-
{
|
304
|
-
"id": "e5-3",
|
305
|
-
"key": "deliverySchedule",
|
306
|
-
"value": "{'type': 'separate', 'order1DeliveryTime': requestedDeliveryDate1, 'order2DeliveryTime': requestedDeliveryDate2}"
|
307
|
-
},
|
308
|
-
{
|
309
|
-
"id": "e5-4",
|
310
|
-
"key": "costSavingsReport",
|
311
|
-
"value": "{'fuelSavings': 0, 'laborSavings': 0, 'totalSavings': 0}"
|
312
|
-
}
|
313
|
-
],
|
314
|
-
"passThrough": true,
|
315
|
-
"inputField": null,
|
316
|
-
"outputPath": null,
|
317
|
-
"executionMode": "single"
|
318
|
-
},
|
319
|
-
"id": "ex5",
|
320
|
-
"name": "standardProcessing",
|
321
|
-
"position": {
|
322
|
-
"x": 1390,
|
323
|
-
"y": 261
|
324
|
-
}
|
325
|
-
}
|
326
|
-
],
|
327
|
-
"edges": [
|
328
|
-
{
|
329
|
-
"id": "ed1",
|
330
|
-
"sourceId": "ip1",
|
331
|
-
"targetId": "dt1",
|
332
|
-
"type": "edge"
|
333
|
-
},
|
334
|
-
{
|
335
|
-
"id": "ed2",
|
336
|
-
"sourceId": "dt1",
|
337
|
-
"targetId": "ex1",
|
338
|
-
"type": "edge"
|
339
|
-
},
|
340
|
-
{
|
341
|
-
"id": "ed3",
|
342
|
-
"sourceId": "ex1",
|
343
|
-
"targetId": "sw1",
|
344
|
-
"type": "edge"
|
345
|
-
},
|
346
|
-
{
|
347
|
-
"id": "ed4",
|
348
|
-
"sourceId": "sw1",
|
349
|
-
"targetId": "ex2",
|
350
|
-
"sourceHandle": "s1-1",
|
351
|
-
"type": "edge"
|
352
|
-
},
|
353
|
-
{
|
354
|
-
"id": "ed5",
|
355
|
-
"sourceId": "sw1",
|
356
|
-
"targetId": "ex3",
|
357
|
-
"sourceHandle": "s1-2",
|
358
|
-
"type": "edge"
|
359
|
-
},
|
360
|
-
{
|
361
|
-
"id": "ed6",
|
362
|
-
"sourceId": "sw1",
|
363
|
-
"targetId": "ex4",
|
364
|
-
"sourceHandle": "s1-3",
|
365
|
-
"type": "edge"
|
366
|
-
},
|
367
|
-
{
|
368
|
-
"id": "ed7",
|
369
|
-
"sourceId": "sw1",
|
370
|
-
"targetId": "ex5",
|
371
|
-
"sourceHandle": "s1-4",
|
372
|
-
"type": "edge"
|
373
|
-
}
|
374
|
-
]
|
375
|
-
}
|