@almadar/std 14.25.0 → 14.27.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 (431) hide show
  1. package/behaviors/registry/agent/atoms/std-agent-activity-log.orb +82 -82
  2. package/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +110 -110
  3. package/behaviors/registry/agent/atoms/std-agent-classifier.orb +112 -112
  4. package/behaviors/registry/agent/atoms/std-agent-completion.orb +90 -90
  5. package/behaviors/registry/agent/atoms/std-agent-context-window.orb +406 -406
  6. package/behaviors/registry/agent/atoms/std-agent-conversation.orb +94 -94
  7. package/behaviors/registry/agent/atoms/std-agent-memory.orb +83 -83
  8. package/behaviors/registry/agent/atoms/std-agent-provider.orb +122 -122
  9. package/behaviors/registry/agent/atoms/std-agent-search.orb +51 -51
  10. package/behaviors/registry/agent/atoms/std-agent-session.orb +122 -122
  11. package/behaviors/registry/agent/atoms/std-agent-step-progress.orb +214 -214
  12. package/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +329 -329
  13. package/behaviors/registry/agent/atoms/std-agent-tool-call.orb +67 -67
  14. package/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +202 -202
  15. package/behaviors/registry/agent/molecules/std-agent-learner.orb +185 -185
  16. package/behaviors/registry/agent/molecules/std-agent-planner.orb +122 -122
  17. package/behaviors/registry/agent/molecules/std-agent-rag.orb +114 -114
  18. package/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +209 -209
  19. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1039 -1039
  20. package/behaviors/registry/agent/organisms/std-agent-builder.orb +2977 -2977
  21. package/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2090 -2090
  22. package/behaviors/registry/agent/organisms/std-agent-reviewer.orb +935 -935
  23. package/behaviors/registry/agent/organisms/std-agent-tutor.orb +760 -760
  24. package/behaviors/registry/app/atoms/std-ap-bill.orb +62 -62
  25. package/behaviors/registry/app/atoms/std-applicant.orb +497 -43
  26. package/behaviors/registry/app/atoms/std-approval-request.orb +451 -625
  27. package/behaviors/registry/app/atoms/std-campaign-goal.orb +443 -238
  28. package/behaviors/registry/app/atoms/std-change-order.orb +563 -305
  29. package/behaviors/registry/app/atoms/std-chart-of-accounts.orb +435 -98
  30. package/behaviors/registry/app/atoms/std-checkin.orb +436 -272
  31. package/behaviors/registry/app/atoms/std-checkout-terminal.orb +458 -260
  32. package/behaviors/registry/app/atoms/std-class-roster.orb +508 -74
  33. package/behaviors/registry/app/atoms/std-class-session.orb +488 -101
  34. package/behaviors/registry/app/atoms/std-court-deadline.orb +525 -94
  35. package/behaviors/registry/app/atoms/std-customer-account.orb +576 -96
  36. package/behaviors/registry/app/atoms/std-donation-receipt.orb +497 -54
  37. package/behaviors/registry/app/atoms/std-donor.orb +440 -153
  38. package/behaviors/registry/app/atoms/std-drip-sequence.orb +453 -70
  39. package/behaviors/registry/app/atoms/std-driver.orb +477 -492
  40. package/behaviors/registry/app/atoms/std-dunning.orb +442 -515
  41. package/behaviors/registry/app/atoms/std-email-broadcast.orb +518 -65
  42. package/behaviors/registry/app/atoms/std-event.orb +467 -669
  43. package/behaviors/registry/app/atoms/std-health-score.orb +371 -436
  44. package/behaviors/registry/app/atoms/std-help-article.orb +374 -532
  45. package/behaviors/registry/app/atoms/std-help-category.orb +347 -369
  46. package/behaviors/registry/app/atoms/std-interview-slot.orb +491 -49
  47. package/behaviors/registry/app/atoms/std-invoice.orb +488 -303
  48. package/behaviors/registry/app/atoms/std-kitchen-display.orb +632 -140
  49. package/behaviors/registry/app/atoms/std-lease.orb +508 -184
  50. package/behaviors/registry/app/atoms/std-ledger-entry.orb +474 -150
  51. package/behaviors/registry/app/atoms/std-maintenance-request.orb +653 -203
  52. package/behaviors/registry/app/atoms/std-matter.orb +482 -336
  53. package/behaviors/registry/app/atoms/std-membership.orb +521 -113
  54. package/behaviors/registry/app/atoms/std-menu.orb +766 -174
  55. package/behaviors/registry/app/atoms/std-modifier-group.orb +518 -100
  56. package/behaviors/registry/app/atoms/std-nps-survey.orb +330 -338
  57. package/behaviors/registry/app/atoms/std-offer-letter.orb +493 -43
  58. package/behaviors/registry/app/atoms/std-payout-ledger.orb +376 -360
  59. package/behaviors/registry/app/atoms/std-question-bank.orb +364 -331
  60. package/behaviors/registry/app/atoms/std-receipt.orb +566 -57
  61. package/behaviors/registry/app/atoms/std-recurring-charge.orb +419 -842
  62. package/behaviors/registry/app/atoms/std-renewal-risk.orb +373 -436
  63. package/behaviors/registry/app/atoms/std-rent-charge.orb +659 -57
  64. package/behaviors/registry/app/atoms/std-reorder-rule.orb +497 -46
  65. package/behaviors/registry/app/atoms/std-response-collector.orb +456 -149
  66. package/behaviors/registry/app/atoms/std-rfi.orb +507 -466
  67. package/behaviors/registry/app/atoms/std-route-optimize.orb +448 -158
  68. package/behaviors/registry/app/atoms/std-segment.orb +367 -113
  69. package/behaviors/registry/app/atoms/std-stock-level.orb +486 -103
  70. package/behaviors/registry/app/atoms/std-submittal.orb +538 -510
  71. package/behaviors/registry/app/atoms/std-table-map.orb +88 -51
  72. package/behaviors/registry/app/atoms/std-technician-dispatch.orb +649 -67
  73. package/behaviors/registry/app/atoms/std-telematics-event.orb +324 -229
  74. package/behaviors/registry/app/atoms/std-template-editor.orb +527 -104
  75. package/behaviors/registry/app/atoms/std-tenant.orb +522 -63
  76. package/behaviors/registry/app/atoms/std-ticket-tier.orb +469 -457
  77. package/behaviors/registry/app/atoms/std-time-entry.orb +338 -301
  78. package/behaviors/registry/app/atoms/std-timesheet.orb +542 -298
  79. package/behaviors/registry/app/atoms/std-trial.orb +423 -337
  80. package/behaviors/registry/app/atoms/std-vehicle.orb +406 -571
  81. package/behaviors/registry/app/atoms/std-waitlist.orb +372 -283
  82. package/behaviors/registry/app/atoms/std-warehouse.orb +268 -214
  83. package/behaviors/registry/app/atoms/std-work-order.orb +629 -241
  84. package/behaviors/registry/app/molecules/std-applicant-form.orb +81 -75
  85. package/behaviors/registry/app/molecules/std-application.orb +168 -253
  86. package/behaviors/registry/app/molecules/std-broadcast-builder.orb +74 -200
  87. package/behaviors/registry/app/molecules/std-cart.orb +82 -76
  88. package/behaviors/registry/app/molecules/std-form-builder.orb +422 -161
  89. package/behaviors/registry/app/molecules/std-ledger-entry-form.orb +622 -154
  90. package/behaviors/registry/app/molecules/std-stock-adjustment.orb +512 -113
  91. package/behaviors/registry/app/molecules/std-vendor-onboarding.orb +390 -476
  92. package/behaviors/registry/app/organisms/std-accounting.orb +120 -120
  93. package/behaviors/registry/app/organisms/std-api-gateway.orb +214 -214
  94. package/behaviors/registry/app/organisms/std-ats-recruiting.orb +143 -143
  95. package/behaviors/registry/app/organisms/std-booking-system.orb +698 -698
  96. package/behaviors/registry/app/organisms/std-cicd-pipeline.orb +282 -282
  97. package/behaviors/registry/app/organisms/std-cms.orb +315 -315
  98. package/behaviors/registry/app/organisms/std-coding-academy.orb +226 -226
  99. package/behaviors/registry/app/organisms/std-construction-pm.orb +159 -159
  100. package/behaviors/registry/app/organisms/std-crm.orb +265 -265
  101. package/behaviors/registry/app/organisms/std-customer-success.orb +106 -106
  102. package/behaviors/registry/app/organisms/std-devops-dashboard.orb +384 -384
  103. package/behaviors/registry/app/organisms/std-document-mgmt.orb +101 -101
  104. package/behaviors/registry/app/organisms/std-ecommerce.orb +735 -735
  105. package/behaviors/registry/app/organisms/std-event-ticketing.orb +207 -207
  106. package/behaviors/registry/app/organisms/std-field-service.orb +181 -181
  107. package/behaviors/registry/app/organisms/std-finance-tracker.orb +227 -227
  108. package/behaviors/registry/app/organisms/std-fitness-studio.orb +145 -145
  109. package/behaviors/registry/app/organisms/std-fleet-mgmt.orb +149 -149
  110. package/behaviors/registry/app/organisms/std-forum.orb +150 -150
  111. package/behaviors/registry/app/organisms/std-healthcare.orb +531 -531
  112. package/behaviors/registry/app/organisms/std-helpdesk.orb +161 -161
  113. package/behaviors/registry/app/organisms/std-hr-portal.orb +455 -455
  114. package/behaviors/registry/app/organisms/std-inventory.orb +162 -162
  115. package/behaviors/registry/app/organisms/std-iot-dashboard.orb +353 -353
  116. package/behaviors/registry/app/organisms/std-legal-case.orb +164 -164
  117. package/behaviors/registry/app/organisms/std-listings.orb +147 -147
  118. package/behaviors/registry/app/organisms/std-lms.orb +409 -409
  119. package/behaviors/registry/app/organisms/std-marketing-campaign.orb +123 -123
  120. package/behaviors/registry/app/organisms/std-marketplace.orb +251 -251
  121. package/behaviors/registry/app/organisms/std-nonprofit-donations.orb +105 -105
  122. package/behaviors/registry/app/organisms/std-notes.orb +112 -112
  123. package/behaviors/registry/app/organisms/std-project-manager.orb +200 -200
  124. package/behaviors/registry/app/organisms/std-property-mgmt.orb +178 -178
  125. package/behaviors/registry/app/organisms/std-public-help-center.orb +133 -133
  126. package/behaviors/registry/app/organisms/std-realtime-chat.orb +245 -245
  127. package/behaviors/registry/app/organisms/std-restaurant-pos.orb +131 -131
  128. package/behaviors/registry/app/organisms/std-retail-pos.orb +129 -129
  129. package/behaviors/registry/app/organisms/std-social-feed.orb +159 -159
  130. package/behaviors/registry/app/organisms/std-subscription-billing.orb +187 -187
  131. package/behaviors/registry/app/organisms/std-survey.orb +129 -129
  132. package/behaviors/registry/app/organisms/std-time-tracking.orb +167 -167
  133. package/behaviors/registry/app/organisms/std-trading-dashboard.orb +263 -263
  134. package/behaviors/registry/app/organisms/std-wiki.orb +139 -139
  135. package/behaviors/registry/core/atoms/std-billable-hour.orb +505 -101
  136. package/behaviors/registry/core/atoms/std-branching-logic.orb +265 -594
  137. package/behaviors/registry/core/atoms/std-browse.orb +58 -58
  138. package/behaviors/registry/core/atoms/std-cache-aside.orb +97 -97
  139. package/behaviors/registry/core/atoms/std-calendar.orb +50 -50
  140. package/behaviors/registry/core/atoms/std-circuit-breaker.orb +184 -184
  141. package/behaviors/registry/core/atoms/std-confirmation.orb +25 -25
  142. package/behaviors/registry/core/atoms/std-display.orb +1 -1
  143. package/behaviors/registry/core/atoms/std-drawer.orb +14 -14
  144. package/behaviors/registry/core/atoms/std-esign-request.orb +29 -29
  145. package/behaviors/registry/core/atoms/std-file-store.orb +541 -159
  146. package/behaviors/registry/core/atoms/std-filter.orb +12 -12
  147. package/behaviors/registry/core/atoms/std-flag.orb +95 -95
  148. package/behaviors/registry/core/atoms/std-gallery.orb +119 -102
  149. package/behaviors/registry/core/atoms/std-geosearch.orb +26 -26
  150. package/behaviors/registry/core/atoms/std-graphs.orb +37 -37
  151. package/behaviors/registry/core/atoms/std-image-upload-multi.orb +93 -63
  152. package/behaviors/registry/core/atoms/std-mod-queue.orb +56 -56
  153. package/behaviors/registry/core/atoms/std-modal.orb +20 -20
  154. package/behaviors/registry/core/atoms/std-page-tree.orb +341 -459
  155. package/behaviors/registry/core/atoms/std-pagination.orb +17 -17
  156. package/behaviors/registry/core/atoms/std-push.orb +38 -38
  157. package/behaviors/registry/core/atoms/std-rate-limiter.orb +168 -168
  158. package/behaviors/registry/core/atoms/std-rating-review.orb +68 -68
  159. package/behaviors/registry/core/atoms/std-related.orb +34 -34
  160. package/behaviors/registry/core/atoms/std-rich-editor.orb +298 -433
  161. package/behaviors/registry/core/atoms/std-saved-search.orb +55 -55
  162. package/behaviors/registry/core/atoms/std-search.orb +9 -9
  163. package/behaviors/registry/core/atoms/std-selection.orb +77 -77
  164. package/behaviors/registry/core/atoms/std-signature-capture.orb +89 -89
  165. package/behaviors/registry/core/atoms/std-stats.orb +104 -104
  166. package/behaviors/registry/core/atoms/std-tabs.orb +27 -27
  167. package/behaviors/registry/core/atoms/std-tag-taxonomy.orb +69 -69
  168. package/behaviors/registry/core/atoms/std-thread.orb +56 -56
  169. package/behaviors/registry/core/atoms/std-version-history.orb +462 -438
  170. package/behaviors/registry/core/atoms/std-vote.orb +39 -39
  171. package/behaviors/registry/core/molecules/std-app-layout.orb +21 -21
  172. package/behaviors/registry/core/molecules/std-dashboard-grid-layout.orb +11 -11
  173. package/behaviors/registry/core/molecules/std-dashboard.orb +52 -52
  174. package/behaviors/registry/core/molecules/std-esign-flow.orb +86 -104
  175. package/behaviors/registry/core/molecules/std-filtered-list.orb +22 -22
  176. package/behaviors/registry/core/molecules/std-form-advanced.orb +133 -133
  177. package/behaviors/registry/core/molecules/std-list.orb +71 -71
  178. package/behaviors/registry/core/molecules/std-master-detail-layout.orb +13 -13
  179. package/behaviors/registry/core/molecules/std-stack-layout.orb +12 -12
  180. package/behaviors/registry/core/molecules/std-tabs-layout.orb +11 -11
  181. package/behaviors/registry/core/molecules/std-wizard-form.orb +227 -152
  182. package/behaviors/registry/core/organisms/std-generic-app.orb +544 -544
  183. package/behaviors/registry/game/atoms/std-collision.orb +0 -595
  184. package/behaviors/registry/game/atoms/std-combat.orb +0 -524
  185. package/behaviors/registry/game/atoms/std-dialogue-box.orb +27 -27
  186. package/behaviors/registry/game/atoms/std-game-canvas2d.orb +40 -40
  187. package/behaviors/registry/game/atoms/std-gameflow.orb +0 -456
  188. package/behaviors/registry/game/atoms/std-movement.orb +0 -1279
  189. package/behaviors/registry/game/atoms/std-overworld.orb +56 -56
  190. package/behaviors/registry/game/atoms/std-physics2d.orb +78 -78
  191. package/behaviors/registry/game/atoms/std-quest.orb +122 -122
  192. package/behaviors/registry/game/atoms/std-timer.orb +266 -266
  193. package/behaviors/registry/game/organisms/std-arcade-game.orb +0 -1446
  194. package/behaviors/registry/game/organisms/std-logic-training.orb +0 -1037
  195. package/behaviors/registry/game/organisms/std-platformer-app.orb +0 -2567
  196. package/behaviors/registry/game/organisms/std-puzzle-app.orb +0 -1197
  197. package/behaviors/registry/game/organisms/std-rpg-game.orb +0 -3509
  198. package/behaviors/registry/game/organisms/std-stem-lab.orb +0 -2003
  199. package/behaviors/registry/game/organisms/std-strategy-game.orb +0 -2686
  200. package/behaviors/registry/probes/molecules/std-source-scope-probe.orb +32 -32
  201. package/behaviors/registry/service/atoms/std-service-calendar-ical.orb +51 -51
  202. package/behaviors/registry/service/atoms/std-service-custom-bearer.orb +69 -69
  203. package/behaviors/registry/service/atoms/std-service-email.orb +55 -55
  204. package/behaviors/registry/service/atoms/std-service-github.orb +70 -70
  205. package/behaviors/registry/service/atoms/std-service-llm.orb +70 -70
  206. package/behaviors/registry/service/atoms/std-service-maps.orb +83 -83
  207. package/behaviors/registry/service/atoms/std-service-oauth.orb +51 -51
  208. package/behaviors/registry/service/atoms/std-service-print.orb +114 -114
  209. package/behaviors/registry/service/atoms/std-service-redis.orb +61 -61
  210. package/behaviors/registry/service/atoms/std-service-storage.orb +51 -51
  211. package/behaviors/registry/service/atoms/std-service-stripe.orb +111 -111
  212. package/behaviors/registry/service/atoms/std-service-twilio.orb +48 -48
  213. package/behaviors/registry/service/atoms/std-service-youtube.orb +45 -45
  214. package/behaviors/registry/service/organisms/std-service-marketplace.orb +911 -911
  215. package/behaviors/registry/service/organisms/std-service-research-assistant.orb +883 -883
  216. package/dist/behaviors/registry/agent/atoms/std-agent-activity-log.orb +82 -82
  217. package/dist/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +110 -110
  218. package/dist/behaviors/registry/agent/atoms/std-agent-classifier.orb +112 -112
  219. package/dist/behaviors/registry/agent/atoms/std-agent-completion.orb +90 -90
  220. package/dist/behaviors/registry/agent/atoms/std-agent-context-window.orb +406 -406
  221. package/dist/behaviors/registry/agent/atoms/std-agent-conversation.orb +94 -94
  222. package/dist/behaviors/registry/agent/atoms/std-agent-memory.orb +83 -83
  223. package/dist/behaviors/registry/agent/atoms/std-agent-provider.orb +122 -122
  224. package/dist/behaviors/registry/agent/atoms/std-agent-search.orb +51 -51
  225. package/dist/behaviors/registry/agent/atoms/std-agent-session.orb +122 -122
  226. package/dist/behaviors/registry/agent/atoms/std-agent-step-progress.orb +214 -214
  227. package/dist/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +329 -329
  228. package/dist/behaviors/registry/agent/atoms/std-agent-tool-call.orb +67 -67
  229. package/dist/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +202 -202
  230. package/dist/behaviors/registry/agent/molecules/std-agent-learner.orb +185 -185
  231. package/dist/behaviors/registry/agent/molecules/std-agent-planner.orb +122 -122
  232. package/dist/behaviors/registry/agent/molecules/std-agent-rag.orb +114 -114
  233. package/dist/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +209 -209
  234. package/dist/behaviors/registry/agent/organisms/std-agent-assistant.orb +1039 -1039
  235. package/dist/behaviors/registry/agent/organisms/std-agent-builder.orb +2977 -2977
  236. package/dist/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2090 -2090
  237. package/dist/behaviors/registry/agent/organisms/std-agent-reviewer.orb +935 -935
  238. package/dist/behaviors/registry/agent/organisms/std-agent-tutor.orb +760 -760
  239. package/dist/behaviors/registry/app/atoms/std-ap-bill.orb +62 -62
  240. package/dist/behaviors/registry/app/atoms/std-applicant.orb +497 -43
  241. package/dist/behaviors/registry/app/atoms/std-approval-request.orb +451 -625
  242. package/dist/behaviors/registry/app/atoms/std-campaign-goal.orb +443 -238
  243. package/dist/behaviors/registry/app/atoms/std-change-order.orb +563 -305
  244. package/dist/behaviors/registry/app/atoms/std-chart-of-accounts.orb +435 -98
  245. package/dist/behaviors/registry/app/atoms/std-checkin.orb +436 -272
  246. package/dist/behaviors/registry/app/atoms/std-checkout-terminal.orb +458 -260
  247. package/dist/behaviors/registry/app/atoms/std-class-roster.orb +508 -74
  248. package/dist/behaviors/registry/app/atoms/std-class-session.orb +488 -101
  249. package/dist/behaviors/registry/app/atoms/std-court-deadline.orb +525 -94
  250. package/dist/behaviors/registry/app/atoms/std-customer-account.orb +576 -96
  251. package/dist/behaviors/registry/app/atoms/std-donation-receipt.orb +497 -54
  252. package/dist/behaviors/registry/app/atoms/std-donor.orb +440 -153
  253. package/dist/behaviors/registry/app/atoms/std-drip-sequence.orb +453 -70
  254. package/dist/behaviors/registry/app/atoms/std-driver.orb +477 -492
  255. package/dist/behaviors/registry/app/atoms/std-dunning.orb +442 -515
  256. package/dist/behaviors/registry/app/atoms/std-email-broadcast.orb +518 -65
  257. package/dist/behaviors/registry/app/atoms/std-event.orb +467 -669
  258. package/dist/behaviors/registry/app/atoms/std-health-score.orb +371 -436
  259. package/dist/behaviors/registry/app/atoms/std-help-article.orb +374 -532
  260. package/dist/behaviors/registry/app/atoms/std-help-category.orb +347 -369
  261. package/dist/behaviors/registry/app/atoms/std-interview-slot.orb +491 -49
  262. package/dist/behaviors/registry/app/atoms/std-invoice.orb +488 -303
  263. package/dist/behaviors/registry/app/atoms/std-kitchen-display.orb +632 -140
  264. package/dist/behaviors/registry/app/atoms/std-lease.orb +508 -184
  265. package/dist/behaviors/registry/app/atoms/std-ledger-entry.orb +474 -150
  266. package/dist/behaviors/registry/app/atoms/std-maintenance-request.orb +653 -203
  267. package/dist/behaviors/registry/app/atoms/std-matter.orb +482 -336
  268. package/dist/behaviors/registry/app/atoms/std-membership.orb +521 -113
  269. package/dist/behaviors/registry/app/atoms/std-menu.orb +766 -174
  270. package/dist/behaviors/registry/app/atoms/std-modifier-group.orb +518 -100
  271. package/dist/behaviors/registry/app/atoms/std-nps-survey.orb +330 -338
  272. package/dist/behaviors/registry/app/atoms/std-offer-letter.orb +493 -43
  273. package/dist/behaviors/registry/app/atoms/std-payout-ledger.orb +376 -360
  274. package/dist/behaviors/registry/app/atoms/std-question-bank.orb +364 -331
  275. package/dist/behaviors/registry/app/atoms/std-receipt.orb +566 -57
  276. package/dist/behaviors/registry/app/atoms/std-recurring-charge.orb +419 -842
  277. package/dist/behaviors/registry/app/atoms/std-renewal-risk.orb +373 -436
  278. package/dist/behaviors/registry/app/atoms/std-rent-charge.orb +659 -57
  279. package/dist/behaviors/registry/app/atoms/std-reorder-rule.orb +497 -46
  280. package/dist/behaviors/registry/app/atoms/std-response-collector.orb +456 -149
  281. package/dist/behaviors/registry/app/atoms/std-rfi.orb +507 -466
  282. package/dist/behaviors/registry/app/atoms/std-route-optimize.orb +448 -158
  283. package/dist/behaviors/registry/app/atoms/std-segment.orb +367 -113
  284. package/dist/behaviors/registry/app/atoms/std-stock-level.orb +486 -103
  285. package/dist/behaviors/registry/app/atoms/std-submittal.orb +538 -510
  286. package/dist/behaviors/registry/app/atoms/std-table-map.orb +88 -51
  287. package/dist/behaviors/registry/app/atoms/std-technician-dispatch.orb +649 -67
  288. package/dist/behaviors/registry/app/atoms/std-telematics-event.orb +324 -229
  289. package/dist/behaviors/registry/app/atoms/std-template-editor.orb +527 -104
  290. package/dist/behaviors/registry/app/atoms/std-tenant.orb +522 -63
  291. package/dist/behaviors/registry/app/atoms/std-ticket-tier.orb +469 -457
  292. package/dist/behaviors/registry/app/atoms/std-time-entry.orb +338 -301
  293. package/dist/behaviors/registry/app/atoms/std-timesheet.orb +542 -298
  294. package/dist/behaviors/registry/app/atoms/std-trial.orb +423 -337
  295. package/dist/behaviors/registry/app/atoms/std-vehicle.orb +406 -571
  296. package/dist/behaviors/registry/app/atoms/std-waitlist.orb +372 -283
  297. package/dist/behaviors/registry/app/atoms/std-warehouse.orb +268 -214
  298. package/dist/behaviors/registry/app/atoms/std-work-order.orb +629 -241
  299. package/dist/behaviors/registry/app/molecules/std-applicant-form.orb +81 -75
  300. package/dist/behaviors/registry/app/molecules/std-application.orb +168 -253
  301. package/dist/behaviors/registry/app/molecules/std-broadcast-builder.orb +74 -200
  302. package/dist/behaviors/registry/app/molecules/std-cart.orb +82 -76
  303. package/dist/behaviors/registry/app/molecules/std-form-builder.orb +422 -161
  304. package/dist/behaviors/registry/app/molecules/std-ledger-entry-form.orb +622 -154
  305. package/dist/behaviors/registry/app/molecules/std-stock-adjustment.orb +512 -113
  306. package/dist/behaviors/registry/app/molecules/std-vendor-onboarding.orb +390 -476
  307. package/dist/behaviors/registry/app/organisms/std-accounting.orb +120 -120
  308. package/dist/behaviors/registry/app/organisms/std-api-gateway.orb +214 -214
  309. package/dist/behaviors/registry/app/organisms/std-ats-recruiting.orb +143 -143
  310. package/dist/behaviors/registry/app/organisms/std-booking-system.orb +698 -698
  311. package/dist/behaviors/registry/app/organisms/std-cicd-pipeline.orb +282 -282
  312. package/dist/behaviors/registry/app/organisms/std-cms.orb +315 -315
  313. package/dist/behaviors/registry/app/organisms/std-coding-academy.orb +226 -226
  314. package/dist/behaviors/registry/app/organisms/std-construction-pm.orb +159 -159
  315. package/dist/behaviors/registry/app/organisms/std-crm.orb +265 -265
  316. package/dist/behaviors/registry/app/organisms/std-customer-success.orb +106 -106
  317. package/dist/behaviors/registry/app/organisms/std-devops-dashboard.orb +384 -384
  318. package/dist/behaviors/registry/app/organisms/std-document-mgmt.orb +101 -101
  319. package/dist/behaviors/registry/app/organisms/std-ecommerce.orb +735 -735
  320. package/dist/behaviors/registry/app/organisms/std-event-ticketing.orb +207 -207
  321. package/dist/behaviors/registry/app/organisms/std-field-service.orb +181 -181
  322. package/dist/behaviors/registry/app/organisms/std-finance-tracker.orb +227 -227
  323. package/dist/behaviors/registry/app/organisms/std-fitness-studio.orb +145 -145
  324. package/dist/behaviors/registry/app/organisms/std-fleet-mgmt.orb +149 -149
  325. package/dist/behaviors/registry/app/organisms/std-forum.orb +150 -150
  326. package/dist/behaviors/registry/app/organisms/std-healthcare.orb +531 -531
  327. package/dist/behaviors/registry/app/organisms/std-helpdesk.orb +161 -161
  328. package/dist/behaviors/registry/app/organisms/std-hr-portal.orb +455 -455
  329. package/dist/behaviors/registry/app/organisms/std-inventory.orb +162 -162
  330. package/dist/behaviors/registry/app/organisms/std-iot-dashboard.orb +353 -353
  331. package/dist/behaviors/registry/app/organisms/std-legal-case.orb +164 -164
  332. package/dist/behaviors/registry/app/organisms/std-listings.orb +147 -147
  333. package/dist/behaviors/registry/app/organisms/std-lms.orb +409 -409
  334. package/dist/behaviors/registry/app/organisms/std-marketing-campaign.orb +123 -123
  335. package/dist/behaviors/registry/app/organisms/std-marketplace.orb +251 -251
  336. package/dist/behaviors/registry/app/organisms/std-nonprofit-donations.orb +105 -105
  337. package/dist/behaviors/registry/app/organisms/std-notes.orb +112 -112
  338. package/dist/behaviors/registry/app/organisms/std-project-manager.orb +200 -200
  339. package/dist/behaviors/registry/app/organisms/std-property-mgmt.orb +178 -178
  340. package/dist/behaviors/registry/app/organisms/std-public-help-center.orb +133 -133
  341. package/dist/behaviors/registry/app/organisms/std-realtime-chat.orb +245 -245
  342. package/dist/behaviors/registry/app/organisms/std-restaurant-pos.orb +131 -131
  343. package/dist/behaviors/registry/app/organisms/std-retail-pos.orb +129 -129
  344. package/dist/behaviors/registry/app/organisms/std-social-feed.orb +159 -159
  345. package/dist/behaviors/registry/app/organisms/std-subscription-billing.orb +187 -187
  346. package/dist/behaviors/registry/app/organisms/std-survey.orb +129 -129
  347. package/dist/behaviors/registry/app/organisms/std-time-tracking.orb +167 -167
  348. package/dist/behaviors/registry/app/organisms/std-trading-dashboard.orb +263 -263
  349. package/dist/behaviors/registry/app/organisms/std-wiki.orb +139 -139
  350. package/dist/behaviors/registry/core/atoms/std-billable-hour.orb +505 -101
  351. package/dist/behaviors/registry/core/atoms/std-branching-logic.orb +265 -594
  352. package/dist/behaviors/registry/core/atoms/std-browse.orb +58 -58
  353. package/dist/behaviors/registry/core/atoms/std-cache-aside.orb +97 -97
  354. package/dist/behaviors/registry/core/atoms/std-calendar.orb +50 -50
  355. package/dist/behaviors/registry/core/atoms/std-circuit-breaker.orb +184 -184
  356. package/dist/behaviors/registry/core/atoms/std-confirmation.orb +25 -25
  357. package/dist/behaviors/registry/core/atoms/std-display.orb +1 -1
  358. package/dist/behaviors/registry/core/atoms/std-drawer.orb +14 -14
  359. package/dist/behaviors/registry/core/atoms/std-esign-request.orb +29 -29
  360. package/dist/behaviors/registry/core/atoms/std-file-store.orb +541 -159
  361. package/dist/behaviors/registry/core/atoms/std-filter.orb +12 -12
  362. package/dist/behaviors/registry/core/atoms/std-flag.orb +95 -95
  363. package/dist/behaviors/registry/core/atoms/std-gallery.orb +119 -102
  364. package/dist/behaviors/registry/core/atoms/std-geosearch.orb +26 -26
  365. package/dist/behaviors/registry/core/atoms/std-graphs.orb +37 -37
  366. package/dist/behaviors/registry/core/atoms/std-image-upload-multi.orb +93 -63
  367. package/dist/behaviors/registry/core/atoms/std-mod-queue.orb +56 -56
  368. package/dist/behaviors/registry/core/atoms/std-modal.orb +20 -20
  369. package/dist/behaviors/registry/core/atoms/std-page-tree.orb +341 -459
  370. package/dist/behaviors/registry/core/atoms/std-pagination.orb +17 -17
  371. package/dist/behaviors/registry/core/atoms/std-push.orb +38 -38
  372. package/dist/behaviors/registry/core/atoms/std-rate-limiter.orb +168 -168
  373. package/dist/behaviors/registry/core/atoms/std-rating-review.orb +68 -68
  374. package/dist/behaviors/registry/core/atoms/std-related.orb +34 -34
  375. package/dist/behaviors/registry/core/atoms/std-rich-editor.orb +298 -433
  376. package/dist/behaviors/registry/core/atoms/std-saved-search.orb +55 -55
  377. package/dist/behaviors/registry/core/atoms/std-search.orb +9 -9
  378. package/dist/behaviors/registry/core/atoms/std-selection.orb +77 -77
  379. package/dist/behaviors/registry/core/atoms/std-signature-capture.orb +89 -89
  380. package/dist/behaviors/registry/core/atoms/std-stats.orb +104 -104
  381. package/dist/behaviors/registry/core/atoms/std-tabs.orb +27 -27
  382. package/dist/behaviors/registry/core/atoms/std-tag-taxonomy.orb +69 -69
  383. package/dist/behaviors/registry/core/atoms/std-thread.orb +56 -56
  384. package/dist/behaviors/registry/core/atoms/std-version-history.orb +462 -438
  385. package/dist/behaviors/registry/core/atoms/std-vote.orb +39 -39
  386. package/dist/behaviors/registry/core/molecules/std-app-layout.orb +21 -21
  387. package/dist/behaviors/registry/core/molecules/std-dashboard-grid-layout.orb +11 -11
  388. package/dist/behaviors/registry/core/molecules/std-dashboard.orb +52 -52
  389. package/dist/behaviors/registry/core/molecules/std-esign-flow.orb +86 -104
  390. package/dist/behaviors/registry/core/molecules/std-filtered-list.orb +22 -22
  391. package/dist/behaviors/registry/core/molecules/std-form-advanced.orb +133 -133
  392. package/dist/behaviors/registry/core/molecules/std-list.orb +71 -71
  393. package/dist/behaviors/registry/core/molecules/std-master-detail-layout.orb +13 -13
  394. package/dist/behaviors/registry/core/molecules/std-stack-layout.orb +12 -12
  395. package/dist/behaviors/registry/core/molecules/std-tabs-layout.orb +11 -11
  396. package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +227 -152
  397. package/dist/behaviors/registry/core/organisms/std-generic-app.orb +544 -544
  398. package/dist/behaviors/registry/game/atoms/std-collision.orb +0 -595
  399. package/dist/behaviors/registry/game/atoms/std-combat.orb +0 -524
  400. package/dist/behaviors/registry/game/atoms/std-dialogue-box.orb +27 -27
  401. package/dist/behaviors/registry/game/atoms/std-game-canvas2d.orb +40 -40
  402. package/dist/behaviors/registry/game/atoms/std-gameflow.orb +0 -456
  403. package/dist/behaviors/registry/game/atoms/std-movement.orb +0 -1279
  404. package/dist/behaviors/registry/game/atoms/std-overworld.orb +56 -56
  405. package/dist/behaviors/registry/game/atoms/std-physics2d.orb +78 -78
  406. package/dist/behaviors/registry/game/atoms/std-quest.orb +122 -122
  407. package/dist/behaviors/registry/game/atoms/std-timer.orb +266 -266
  408. package/dist/behaviors/registry/game/organisms/std-arcade-game.orb +0 -1446
  409. package/dist/behaviors/registry/game/organisms/std-logic-training.orb +0 -1037
  410. package/dist/behaviors/registry/game/organisms/std-platformer-app.orb +0 -2567
  411. package/dist/behaviors/registry/game/organisms/std-puzzle-app.orb +0 -1197
  412. package/dist/behaviors/registry/game/organisms/std-rpg-game.orb +0 -3509
  413. package/dist/behaviors/registry/game/organisms/std-stem-lab.orb +0 -2003
  414. package/dist/behaviors/registry/game/organisms/std-strategy-game.orb +0 -2686
  415. package/dist/behaviors/registry/probes/molecules/std-source-scope-probe.orb +32 -32
  416. package/dist/behaviors/registry/service/atoms/std-service-calendar-ical.orb +51 -51
  417. package/dist/behaviors/registry/service/atoms/std-service-custom-bearer.orb +69 -69
  418. package/dist/behaviors/registry/service/atoms/std-service-email.orb +55 -55
  419. package/dist/behaviors/registry/service/atoms/std-service-github.orb +70 -70
  420. package/dist/behaviors/registry/service/atoms/std-service-llm.orb +70 -70
  421. package/dist/behaviors/registry/service/atoms/std-service-maps.orb +83 -83
  422. package/dist/behaviors/registry/service/atoms/std-service-oauth.orb +51 -51
  423. package/dist/behaviors/registry/service/atoms/std-service-print.orb +114 -114
  424. package/dist/behaviors/registry/service/atoms/std-service-redis.orb +61 -61
  425. package/dist/behaviors/registry/service/atoms/std-service-storage.orb +51 -51
  426. package/dist/behaviors/registry/service/atoms/std-service-stripe.orb +111 -111
  427. package/dist/behaviors/registry/service/atoms/std-service-twilio.orb +48 -48
  428. package/dist/behaviors/registry/service/atoms/std-service-youtube.orb +45 -45
  429. package/dist/behaviors/registry/service/organisms/std-service-marketplace.orb +911 -911
  430. package/dist/behaviors/registry/service/organisms/std-service-research-assistant.orb +883 -883
  431. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "std-route-optimize",
3
3
  "version": "1.0.0",
4
- "description": "std-route-optimize — multi-stop route ordering for technician dispatch. Owns a Route entity (origin coords + ordered stops + totals); OPTIMIZE invokes the route-optimize service to reorder stops, then persists the updated row and emits RouteUpdated for downstream listeners.",
4
+ "description": "std-route-optimize — multi-stop route ordering for technician dispatch. Lists routes in `browsing`; opens detail in `viewing_single` with Optimize / Reset actions.",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "RouteOptimizeOrbital",
@@ -55,40 +55,13 @@
55
55
  "linkedEntity": "Route",
56
56
  "emits": [
57
57
  {
58
- "event": "OPTIMIZE",
58
+ "event": "OPEN_ROUTE",
59
59
  "payloadSchema": [
60
60
  {
61
- "name": "routeId",
61
+ "name": "id",
62
62
  "type": "string",
63
63
  "required": true
64
- }
65
- ]
66
- },
67
- {
68
- "event": "RouteLoaded",
69
- "payloadSchema": [
70
- {
71
- "name": "data",
72
- "type": "[Route]"
73
- }
74
- ]
75
- },
76
- {
77
- "event": "RouteLoadFailed",
78
- "payloadSchema": [
79
- {
80
- "name": "error",
81
- "type": "string"
82
64
  },
83
- {
84
- "name": "code",
85
- "type": "string"
86
- }
87
- ]
88
- },
89
- {
90
- "event": "RouteOptimized",
91
- "payloadSchema": [
92
65
  {
93
66
  "name": "row.id",
94
67
  "type": "string",
@@ -125,52 +98,46 @@
125
98
  ]
126
99
  },
127
100
  {
128
- "event": "RouteOptimizeFailed",
101
+ "event": "CLOSE_VIEW"
102
+ },
103
+ {
104
+ "event": "OPTIMIZE",
129
105
  "payloadSchema": [
130
106
  {
131
- "name": "error",
132
- "type": "string"
133
- },
134
- {
135
- "name": "code",
136
- "type": "string"
107
+ "name": "id",
108
+ "type": "string",
109
+ "required": true
137
110
  }
138
111
  ]
139
112
  },
140
113
  {
141
- "event": "RouteUpdated",
114
+ "event": "RESET_ROUTE",
142
115
  "payloadSchema": [
143
116
  {
144
- "name": "row.id",
117
+ "name": "id",
145
118
  "type": "string",
146
119
  "required": true
147
- },
148
- {
149
- "name": "row.technicianId",
150
- "type": "string"
151
- },
152
- {
153
- "name": "row.originLat",
154
- "type": "number"
155
- },
156
- {
157
- "name": "row.originLng",
158
- "type": "number"
159
- },
160
- {
161
- "name": "row.stops",
162
- "type": "[string]"
163
- },
120
+ }
121
+ ]
122
+ },
123
+ {
124
+ "event": "RouteLoaded",
125
+ "payloadSchema": [
164
126
  {
165
- "name": "row.totalDistanceKm",
166
- "type": "number"
167
- },
127
+ "name": "data",
128
+ "type": "[Route]"
129
+ }
130
+ ]
131
+ },
132
+ {
133
+ "event": "RouteLoadFailed",
134
+ "payloadSchema": [
168
135
  {
169
- "name": "row.totalDurationMinutes",
170
- "type": "number"
136
+ "name": "error",
137
+ "type": "string"
171
138
  },
172
139
  {
173
- "name": "row.optimizedAt",
140
+ "name": "code",
174
141
  "type": "string"
175
142
  }
176
143
  ]
@@ -186,7 +153,7 @@
186
153
  "name": "browsing"
187
154
  },
188
155
  {
189
- "name": "optimizing"
156
+ "name": "viewing_single"
190
157
  },
191
158
  {
192
159
  "name": "error"
@@ -222,20 +189,14 @@
222
189
  ]
223
190
  },
224
191
  {
225
- "key": "OPTIMIZE",
226
- "name": "Optimize",
192
+ "key": "OPEN_ROUTE",
193
+ "name": "Open Route",
227
194
  "payloadSchema": [
228
195
  {
229
- "name": "routeId",
196
+ "name": "id",
230
197
  "type": "string",
231
198
  "required": true
232
- }
233
- ]
234
- },
235
- {
236
- "key": "RouteUpdated",
237
- "name": "Route updated",
238
- "payloadSchema": [
199
+ },
239
200
  {
240
201
  "name": "row",
241
202
  "type": "Route"
@@ -243,28 +204,30 @@
243
204
  ]
244
205
  },
245
206
  {
246
- "key": "RouteOptimized",
247
- "name": "Route optimized",
207
+ "key": "OPTIMIZE",
208
+ "name": "Optimize",
248
209
  "payloadSchema": [
249
210
  {
250
- "name": "row",
251
- "type": "Route"
211
+ "name": "id",
212
+ "type": "string",
213
+ "required": true
252
214
  }
253
215
  ]
254
216
  },
255
217
  {
256
- "key": "RouteOptimizeFailed",
257
- "name": "Route optimize failed",
218
+ "key": "RESET_ROUTE",
219
+ "name": "Reset Route",
258
220
  "payloadSchema": [
259
221
  {
260
- "name": "error",
261
- "type": "string"
262
- },
263
- {
264
- "name": "code",
265
- "type": "string"
222
+ "name": "id",
223
+ "type": "string",
224
+ "required": true
266
225
  }
267
226
  ]
227
+ },
228
+ {
229
+ "key": "CLOSE_VIEW",
230
+ "name": "Close View"
268
231
  }
269
232
  ],
270
233
  "transitions": [
@@ -278,8 +241,8 @@
278
241
  "Route",
279
242
  {
280
243
  "emit": {
281
- "failure": "RouteLoadFailed",
282
- "success": "RouteLoaded"
244
+ "success": "RouteLoaded",
245
+ "failure": "RouteLoadFailed"
283
246
  }
284
247
  }
285
248
  ],
@@ -287,22 +250,22 @@
287
250
  "render-ui",
288
251
  "main",
289
252
  {
290
- "type": "stack",
291
253
  "align": "center",
292
- "direction": "vertical",
293
254
  "className": "py-12",
255
+ "gap": "md",
256
+ "direction": "vertical",
257
+ "type": "stack",
294
258
  "children": [
295
259
  {
296
260
  "type": "spinner"
297
261
  },
298
262
  {
299
- "content": "Loading routes…",
300
263
  "color": "muted",
301
264
  "type": "typography",
265
+ "content": "Loading routes…",
302
266
  "variant": "caption"
303
267
  }
304
- ],
305
- "gap": "md"
268
+ ]
306
269
  }
307
270
  ]
308
271
  ]
@@ -318,50 +281,70 @@
318
281
  {
319
282
  "direction": "vertical",
320
283
  "type": "stack",
284
+ "gap": "md",
321
285
  "children": [
322
286
  {
323
287
  "type": "stack",
288
+ "gap": "sm",
289
+ "direction": "horizontal",
290
+ "align": "center",
324
291
  "children": [
325
292
  {
326
- "type": "icon",
327
- "name": "map"
293
+ "name": "map",
294
+ "type": "icon"
328
295
  },
329
296
  {
330
- "content": "@config.title",
331
297
  "variant": "h3",
332
- "type": "typography"
298
+ "type": "typography",
299
+ "content": "@config.title"
300
+ }
301
+ ]
302
+ },
303
+ {
304
+ "cols": 4.0,
305
+ "children": [
306
+ {
307
+ "icon": "map",
308
+ "label": "Total routes",
309
+ "value": "@payload.data.length",
310
+ "type": "stat-display"
311
+ },
312
+ {
313
+ "value": "14",
314
+ "type": "stat-display",
315
+ "icon": "check-circle",
316
+ "label": "Optimized today"
317
+ },
318
+ {
319
+ "label": "Total distance",
320
+ "icon": "navigation",
321
+ "type": "stat-display",
322
+ "value": "1,284 km"
323
+ },
324
+ {
325
+ "value": "92 min",
326
+ "icon": "clock",
327
+ "label": "Avg duration",
328
+ "type": "stat-display"
333
329
  }
334
330
  ],
335
- "gap": "sm",
336
- "direction": "horizontal"
331
+ "type": "simple-grid"
337
332
  },
338
333
  {
339
334
  "type": "divider"
340
335
  },
341
336
  {
342
- "itemActions": [
343
- {
344
- "event": "OPTIMIZE",
345
- "variant": "primary",
346
- "icon": "route",
347
- "label": "Optimize"
348
- }
349
- ],
337
+ "entity": "@payload.data",
350
338
  "fields": [
351
339
  {
340
+ "label": "Technician",
352
341
  "name": "technicianId",
353
- "variant": "caption",
354
- "label": "Technician"
355
- },
356
- {
357
- "name": "stops",
358
- "label": "Stops",
359
342
  "variant": "caption"
360
343
  },
361
344
  {
345
+ "name": "totalDistanceKm",
362
346
  "label": "Distance (km)",
363
- "variant": "caption",
364
- "name": "totalDistanceKm"
347
+ "variant": "caption"
365
348
  },
366
349
  {
367
350
  "variant": "caption",
@@ -370,17 +353,28 @@
370
353
  },
371
354
  {
372
355
  "variant": "caption",
373
- "label": "Optimized",
374
- "name": "optimizedAt"
356
+ "name": "optimizedAt",
357
+ "label": "Optimized"
375
358
  }
376
359
  ],
360
+ "gap": "sm",
377
361
  "type": "data-grid",
378
362
  "cols": 1.0,
379
- "entity": "@payload.data",
380
- "gap": "sm"
363
+ "itemActions": [
364
+ {
365
+ "variant": "primary",
366
+ "label": "Open",
367
+ "event": "OPEN_ROUTE",
368
+ "icon": "arrow-right"
369
+ },
370
+ {
371
+ "label": "Optimize",
372
+ "event": "OPTIMIZE",
373
+ "variant": "danger"
374
+ }
375
+ ]
381
376
  }
382
- ],
383
- "gap": "md"
377
+ ]
384
378
  }
385
379
  ]
386
380
  ]
@@ -394,34 +388,210 @@
394
388
  "render-ui",
395
389
  "main",
396
390
  {
397
- "variant": "error",
398
391
  "message": "@payload.error",
399
- "type": "alert"
392
+ "type": "alert",
393
+ "variant": "error"
400
394
  }
401
395
  ]
402
396
  ]
403
397
  },
404
398
  {
405
399
  "from": "browsing",
406
- "to": "optimizing",
407
- "event": "OPTIMIZE",
400
+ "to": "viewing_single",
401
+ "event": "OPEN_ROUTE",
408
402
  "effects": [
409
403
  [
410
404
  "set",
411
405
  "@entity.id",
412
- "@payload.routeId"
406
+ "@payload.row.id"
407
+ ],
408
+ [
409
+ "set",
410
+ "@entity.technicianId",
411
+ "@payload.row.technicianId"
412
+ ],
413
+ [
414
+ "set",
415
+ "@entity.originLat",
416
+ "@payload.row.originLat"
417
+ ],
418
+ [
419
+ "set",
420
+ "@entity.originLng",
421
+ "@payload.row.originLng"
422
+ ],
423
+ [
424
+ "set",
425
+ "@entity.totalDistanceKm",
426
+ "@payload.row.totalDistanceKm"
427
+ ],
428
+ [
429
+ "set",
430
+ "@entity.totalDurationMinutes",
431
+ "@payload.row.totalDurationMinutes"
432
+ ],
433
+ [
434
+ "set",
435
+ "@entity.optimizedAt",
436
+ "@payload.row.optimizedAt"
413
437
  ],
414
438
  [
415
- "call-service",
416
- "route-optimize",
417
- "optimize",
439
+ "render-ui",
440
+ "main",
418
441
  {
419
- "routeId": "@entity.id"
420
- },
442
+ "children": [
443
+ {
444
+ "align": "center",
445
+ "direction": "horizontal",
446
+ "type": "stack",
447
+ "children": [
448
+ {
449
+ "action": "CLOSE_VIEW",
450
+ "label": "Back",
451
+ "variant": "ghost",
452
+ "type": "button"
453
+ },
454
+ {
455
+ "type": "icon",
456
+ "name": "map"
457
+ },
458
+ {
459
+ "type": "typography",
460
+ "content": "@entity.technicianId",
461
+ "variant": "h3"
462
+ },
463
+ {
464
+ "type": "badge",
465
+ "label": "Optimized",
466
+ "variant": "success"
467
+ }
468
+ ],
469
+ "gap": "sm"
470
+ },
471
+ {
472
+ "type": "divider"
473
+ },
474
+ {
475
+ "type": "stack",
476
+ "children": [
477
+ {
478
+ "type": "stack",
479
+ "children": [
480
+ {
481
+ "color": "muted",
482
+ "type": "typography",
483
+ "content": "Origin lat",
484
+ "variant": "caption"
485
+ },
486
+ {
487
+ "type": "typography",
488
+ "content": "@entity.originLat",
489
+ "variant": "body"
490
+ }
491
+ ],
492
+ "direction": "horizontal",
493
+ "gap": "md"
494
+ },
495
+ {
496
+ "direction": "horizontal",
497
+ "children": [
498
+ {
499
+ "variant": "caption",
500
+ "type": "typography",
501
+ "content": "Origin lng",
502
+ "color": "muted"
503
+ },
504
+ {
505
+ "content": "@entity.originLng",
506
+ "type": "typography",
507
+ "variant": "body"
508
+ }
509
+ ],
510
+ "type": "stack",
511
+ "gap": "md"
512
+ }
513
+ ],
514
+ "gap": "sm",
515
+ "direction": "vertical"
516
+ },
517
+ {
518
+ "type": "divider"
519
+ },
520
+ {
521
+ "type": "simple-grid",
522
+ "children": [
523
+ {
524
+ "label": "Distance (km)",
525
+ "value": "@entity.totalDistanceKm",
526
+ "icon": "navigation",
527
+ "type": "stat-display"
528
+ },
529
+ {
530
+ "icon": "clock",
531
+ "type": "stat-display",
532
+ "label": "Duration (min)",
533
+ "value": "@entity.totalDurationMinutes"
534
+ },
535
+ {
536
+ "type": "stat-display",
537
+ "icon": "calendar",
538
+ "label": "Last optimized",
539
+ "value": "@entity.optimizedAt"
540
+ }
541
+ ],
542
+ "cols": 3.0
543
+ },
544
+ {
545
+ "direction": "horizontal",
546
+ "align": "center",
547
+ "type": "stack",
548
+ "gap": "sm",
549
+ "children": [
550
+ {
551
+ "action": "OPTIMIZE",
552
+ "type": "button",
553
+ "label": "Optimize",
554
+ "variant": "primary",
555
+ "actionPayload": {
556
+ "id": "@entity.id"
557
+ }
558
+ },
559
+ {
560
+ "variant": "danger",
561
+ "type": "button",
562
+ "action": "RESET_ROUTE",
563
+ "label": "Reset",
564
+ "actionPayload": {
565
+ "id": "@entity.id"
566
+ }
567
+ }
568
+ ]
569
+ }
570
+ ],
571
+ "gap": "md",
572
+ "direction": "vertical",
573
+ "type": "stack"
574
+ }
575
+ ]
576
+ ]
577
+ },
578
+ {
579
+ "from": "browsing",
580
+ "to": "loading",
581
+ "event": "OPTIMIZE",
582
+ "effects": [
583
+ [
584
+ "set",
585
+ "@entity.id",
586
+ "@payload.id"
587
+ ],
588
+ [
589
+ "fetch",
590
+ "Route",
421
591
  {
422
592
  "emit": {
423
- "success": "RouteOptimized",
424
- "failure": "RouteOptimizeFailed"
593
+ "failure": "RouteLoadFailed",
594
+ "success": "RouteLoaded"
425
595
  }
426
596
  }
427
597
  ],
@@ -429,73 +599,193 @@
429
599
  "render-ui",
430
600
  "main",
431
601
  {
602
+ "children": [
603
+ {
604
+ "type": "spinner"
605
+ },
606
+ {
607
+ "content": "Optimizing route…",
608
+ "type": "typography",
609
+ "variant": "caption",
610
+ "color": "muted"
611
+ }
612
+ ],
613
+ "type": "stack",
614
+ "gap": "md",
615
+ "direction": "vertical",
432
616
  "align": "center",
617
+ "className": "py-12"
618
+ }
619
+ ]
620
+ ]
621
+ },
622
+ {
623
+ "from": "browsing",
624
+ "to": "loading",
625
+ "event": "RESET_ROUTE",
626
+ "effects": [
627
+ [
628
+ "set",
629
+ "@entity.id",
630
+ "@payload.id"
631
+ ],
632
+ [
633
+ "fetch",
634
+ "Route",
635
+ {
636
+ "emit": {
637
+ "success": "RouteLoaded",
638
+ "failure": "RouteLoadFailed"
639
+ }
640
+ }
641
+ ],
642
+ [
643
+ "render-ui",
644
+ "main",
645
+ {
433
646
  "className": "py-12",
647
+ "align": "center",
434
648
  "children": [
435
649
  {
436
650
  "type": "spinner"
437
651
  },
438
652
  {
653
+ "content": "Resetting route…",
439
654
  "type": "typography",
440
655
  "variant": "caption",
441
- "content": "Optimizing route…",
442
656
  "color": "muted"
443
657
  }
444
658
  ],
445
659
  "gap": "md",
446
- "type": "stack",
447
- "direction": "vertical"
660
+ "direction": "vertical",
661
+ "type": "stack"
448
662
  }
449
663
  ]
450
664
  ]
451
665
  },
452
666
  {
453
- "from": "browsing",
454
- "to": "browsing",
455
- "event": "RouteUpdated",
667
+ "from": "viewing_single",
668
+ "to": "loading",
669
+ "event": "CLOSE_VIEW",
456
670
  "effects": [
671
+ [
672
+ "fetch",
673
+ "Route",
674
+ {
675
+ "emit": {
676
+ "failure": "RouteLoadFailed",
677
+ "success": "RouteLoaded"
678
+ }
679
+ }
680
+ ],
457
681
  [
458
682
  "render-ui",
459
683
  "main",
460
684
  {
461
- "type": "alert",
462
- "variant": "success",
463
- "message": "Route updated"
685
+ "children": [
686
+ {
687
+ "type": "spinner"
688
+ },
689
+ {
690
+ "content": "Loading routes…",
691
+ "variant": "caption",
692
+ "color": "muted",
693
+ "type": "typography"
694
+ }
695
+ ],
696
+ "direction": "vertical",
697
+ "gap": "md",
698
+ "align": "center",
699
+ "type": "stack",
700
+ "className": "py-12"
464
701
  }
465
702
  ]
466
703
  ]
467
704
  },
468
705
  {
469
- "from": "optimizing",
470
- "to": "browsing",
471
- "event": "RouteOptimized",
706
+ "from": "viewing_single",
707
+ "to": "loading",
708
+ "event": "OPTIMIZE",
472
709
  "effects": [
473
710
  [
474
- "persist",
475
- "update",
711
+ "set",
712
+ "@entity.id",
713
+ "@payload.id"
714
+ ],
715
+ [
716
+ "fetch",
476
717
  "Route",
477
- "@payload.row",
478
718
  {
479
719
  "emit": {
480
- "success": "RouteUpdated",
481
- "failure": "RouteOptimizeFailed"
720
+ "success": "RouteLoaded",
721
+ "failure": "RouteLoadFailed"
482
722
  }
483
723
  }
724
+ ],
725
+ [
726
+ "render-ui",
727
+ "main",
728
+ {
729
+ "children": [
730
+ {
731
+ "type": "spinner"
732
+ },
733
+ {
734
+ "color": "muted",
735
+ "type": "typography",
736
+ "content": "Optimizing route…",
737
+ "variant": "caption"
738
+ }
739
+ ],
740
+ "direction": "vertical",
741
+ "gap": "md",
742
+ "align": "center",
743
+ "type": "stack",
744
+ "className": "py-12"
745
+ }
484
746
  ]
485
747
  ]
486
748
  },
487
749
  {
488
- "from": "optimizing",
489
- "to": "browsing",
490
- "event": "RouteOptimizeFailed",
750
+ "from": "viewing_single",
751
+ "to": "loading",
752
+ "event": "RESET_ROUTE",
491
753
  "effects": [
754
+ [
755
+ "set",
756
+ "@entity.id",
757
+ "@payload.id"
758
+ ],
759
+ [
760
+ "fetch",
761
+ "Route",
762
+ {
763
+ "emit": {
764
+ "failure": "RouteLoadFailed",
765
+ "success": "RouteLoaded"
766
+ }
767
+ }
768
+ ],
492
769
  [
493
770
  "render-ui",
494
771
  "main",
495
772
  {
496
- "type": "alert",
497
- "variant": "error",
498
- "message": "@payload.error"
773
+ "align": "center",
774
+ "type": "stack",
775
+ "className": "py-12",
776
+ "gap": "md",
777
+ "children": [
778
+ {
779
+ "type": "spinner"
780
+ },
781
+ {
782
+ "variant": "caption",
783
+ "color": "muted",
784
+ "content": "Resetting route…",
785
+ "type": "typography"
786
+ }
787
+ ],
788
+ "direction": "vertical"
499
789
  }
500
790
  ]
501
791
  ]
@@ -510,8 +800,8 @@
510
800
  "Route",
511
801
  {
512
802
  "emit": {
513
- "failure": "RouteLoadFailed",
514
- "success": "RouteLoaded"
803
+ "success": "RouteLoaded",
804
+ "failure": "RouteLoadFailed"
515
805
  }
516
806
  }
517
807
  ],
@@ -549,4 +839,4 @@
549
839
  ]
550
840
  }
551
841
  ]
552
- }
842
+ }