@wix/himalaya-cli 0.1899.0 → 0.1900.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 (124) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/app-info/src/index.d.ts +1 -1
  2. package/dist/browser-plane/assets.json +5 -5
  3. package/dist/browser-plane/preview-deferred/{3c8ce407707a87e172345007371329f9c47e65e182a1e2ff617b7f75e6bb95ab.bin → e8580dd7946999b652493628a07600d2e5a0c7864cc0a8a807b8a20903f0698d.bin} +1 -1
  4. package/dist/browser-plane/sw.js +9 -9
  5. package/dist/cli.mjs +75756 -74141
  6. package/dist/preview-assets.generated.bin +0 -0
  7. package/guides/ads.md +91 -0
  8. package/guides/himi-json-output.md +37 -2
  9. package/guides/index.json +6 -0
  10. package/package.json +2 -2
  11. package/templates/beauty-salon-owner/config.ts +32 -1
  12. package/templates/beauty-salon-owner/dev/index.ts +565 -1
  13. package/templates/beauty-salon-owner/himalaya.content.json +3 -0
  14. package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
  15. package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
  16. package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
  17. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
  18. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
  19. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
  20. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
  21. package/templates/beauty-salon-owner/tier5-src/wix-owner-booking/index.ts +9 -3
  22. package/templates/community-club-owner/config.ts +32 -1
  23. package/templates/community-club-owner/dev/index.ts +538 -1
  24. package/templates/community-club-owner/himalaya.content.json +3 -0
  25. package/templates/community-club-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
  26. package/templates/community-club-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
  27. package/templates/community-club-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
  28. package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
  29. package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
  30. package/templates/community-club-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
  31. package/templates/community-club-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
  32. package/templates/events-meetups-owner/config.ts +32 -1
  33. package/templates/events-meetups-owner/dev/index.ts +511 -1
  34. package/templates/events-meetups-owner/himalaya.content.json +3 -0
  35. package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
  36. package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
  37. package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
  38. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
  39. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
  40. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
  41. package/templates/gym-fitness-owner/config.ts +32 -1
  42. package/templates/gym-fitness-owner/dev/index.ts +565 -1
  43. package/templates/gym-fitness-owner/himalaya.content.json +3 -0
  44. package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
  45. package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
  46. package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
  47. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
  48. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
  49. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
  50. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
  51. package/templates/gym-fitness-owner/tier5-src/wix-owner-booking/index.ts +9 -3
  52. package/templates/nonprofit-cause-owner/config.ts +32 -1
  53. package/templates/nonprofit-cause-owner/dev/index.ts +538 -1
  54. package/templates/nonprofit-cause-owner/himalaya.content.json +3 -0
  55. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
  56. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
  57. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
  58. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
  59. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
  60. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
  61. package/templates/nonprofit-cause-owner/tier5-src/wix-owner-booking/index.ts +9 -3
  62. package/templates/owner-lite/config.ts +32 -1
  63. package/templates/owner-lite/dev/index.ts +565 -1
  64. package/templates/owner-lite/himalaya.content.json +3 -0
  65. package/templates/owner-lite/tier5-src/_shared/owner-maestro-availability.ts +14 -0
  66. package/templates/owner-lite/tier5-src/_shared/owner-maestro-chat.ts +179 -0
  67. package/templates/owner-lite/tier5-src/_shared/owner-maestro-tab.ts +42 -0
  68. package/templates/owner-lite/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
  69. package/templates/owner-lite/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
  70. package/templates/owner-lite/tier5-src/himi-owner-lite-order/index.ts +5 -0
  71. package/templates/owner-lite/tier5-src/himi-owner-lite-record/index.ts +9 -3
  72. package/templates/owner-lite/tier5-src/wix-owner-booking/index.ts +9 -3
  73. package/templates/podcast-creator-owner/config.ts +32 -1
  74. package/templates/podcast-creator-owner/dev/index.ts +538 -1
  75. package/templates/podcast-creator-owner/himalaya.content.json +3 -0
  76. package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
  77. package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
  78. package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
  79. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
  80. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
  81. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
  82. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
  83. package/templates/portfolio-creative-owner/config.ts +32 -1
  84. package/templates/portfolio-creative-owner/dev/index.ts +565 -1
  85. package/templates/portfolio-creative-owner/himalaya.content.json +3 -0
  86. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
  87. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
  88. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
  89. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
  90. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
  91. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
  92. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
  93. package/templates/portfolio-creative-owner/tier5-src/wix-owner-booking/index.ts +9 -3
  94. package/templates/restaurant-owner/config.ts +32 -1
  95. package/templates/restaurant-owner/dev/index.ts +565 -1
  96. package/templates/restaurant-owner/himalaya.content.json +3 -0
  97. package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
  98. package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
  99. package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
  100. package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
  101. package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
  102. package/templates/restaurant-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
  103. package/templates/restaurant-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
  104. package/templates/restaurant-owner/tier5-src/wix-owner-booking/index.ts +9 -3
  105. package/templates/retail-store-owner/config.ts +32 -1
  106. package/templates/retail-store-owner/dev/index.ts +538 -1
  107. package/templates/retail-store-owner/himalaya.content.json +3 -0
  108. package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
  109. package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
  110. package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
  111. package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
  112. package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
  113. package/templates/retail-store-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
  114. package/templates/retail-store-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
  115. package/templates/yoga-studio-owner/config.ts +32 -1
  116. package/templates/yoga-studio-owner/dev/index.ts +538 -1
  117. package/templates/yoga-studio-owner/himalaya.content.json +3 -0
  118. package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
  119. package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
  120. package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
  121. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
  122. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
  123. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
  124. package/templates/yoga-studio-owner/tier5-src/wix-owner-booking/index.ts +9 -3
@@ -13093,6 +13093,32 @@ const SCREENS = runtimeSetting({
13093
13093
  "hiddenPath": "$service:himiOwnerRecord.hideContent"
13094
13094
  }
13095
13095
  },
13096
+ {
13097
+ "id": "himi_owner_lite_record_contacts.ask_maestro",
13098
+ "body": {
13099
+ "package": "himalaya",
13100
+ "type": "Button",
13101
+ "props": {
13102
+ "title": "Ask Maestro",
13103
+ "style": "secondary",
13104
+ "fullWidth": true,
13105
+ "leadingIcon": "ai",
13106
+ "action": {
13107
+ "actionId": "himi.open",
13108
+ "params": {
13109
+ "screenId": "himi_owner_lite_maestro",
13110
+ "kind": "contact",
13111
+ "id": "$service:himiOwnerRecord.id",
13112
+ "title": "Maestro",
13113
+ "subtitle": "Your business assistant, by Symphony."
13114
+ }
13115
+ }
13116
+ }
13117
+ },
13118
+ "modifiers": {
13119
+ "hiddenPath": "$service:himiOwnerRecord.askMaestroHidden"
13120
+ }
13121
+ },
13096
13122
  {
13097
13123
  "id": "",
13098
13124
  "body": {
@@ -63953,6 +63979,139 @@ const SCREENS = runtimeSetting({
63953
63979
  "modifiers": {
63954
63980
  "hiddenPath": "$item.thinkingHidden"
63955
63981
  }
63982
+ },
63983
+ {
63984
+ "id": "himi_owner_lite_maestro.card_$item.id",
63985
+ "body": {
63986
+ "package": "himalaya",
63987
+ "type": "VStack",
63988
+ "props": {
63989
+ "spacing": 8,
63990
+ "alignment": "leading",
63991
+ "children": [
63992
+ {
63993
+ "id": "",
63994
+ "body": {
63995
+ "package": "himalaya",
63996
+ "type": "Text",
63997
+ "props": {
63998
+ "text": "$item.cardTitle",
63999
+ "style": "bodyEmphasis",
64000
+ "maxLines": 4,
64001
+ "textDirection": "auto"
64002
+ }
64003
+ }
64004
+ },
64005
+ {
64006
+ "id": "",
64007
+ "body": {
64008
+ "package": "himalaya",
64009
+ "type": "Text",
64010
+ "props": {
64011
+ "text": "$item.cardText",
64012
+ "style": "footnote",
64013
+ "color": "textSecondary",
64014
+ "maxLines": 8,
64015
+ "collapseWhenEmpty": true,
64016
+ "textDirection": "auto"
64017
+ }
64018
+ }
64019
+ },
64020
+ {
64021
+ "id": "",
64022
+ "body": {
64023
+ "package": "himalaya",
64024
+ "type": "Text",
64025
+ "props": {
64026
+ "text": "$item.cardStatus",
64027
+ "style": "footnote",
64028
+ "color": "textSecondary",
64029
+ "maxLines": 3,
64030
+ "collapseWhenEmpty": true
64031
+ }
64032
+ }
64033
+ },
64034
+ {
64035
+ "id": "",
64036
+ "body": {
64037
+ "package": "himalaya",
64038
+ "type": "HStack",
64039
+ "props": {
64040
+ "spacing": 8,
64041
+ "children": [
64042
+ {
64043
+ "id": "himi_owner_lite_maestro.cardPrimary_$item.id",
64044
+ "body": {
64045
+ "package": "himalaya",
64046
+ "type": "Button",
64047
+ "props": {
64048
+ "title": "$item.primaryLabel",
64049
+ "style": "primary",
64050
+ "size": "sm",
64051
+ "fullWidth": false,
64052
+ "action": {
64053
+ "actionId": "tier5.himiOwnerLiteMaestro.cardPrimary",
64054
+ "params": {
64055
+ "id": "$item.id"
64056
+ }
64057
+ }
64058
+ }
64059
+ },
64060
+ "modifiers": {
64061
+ "hiddenPath": "$item.primaryHidden"
64062
+ }
64063
+ },
64064
+ {
64065
+ "id": "himi_owner_lite_maestro.cardSecondary_$item.id",
64066
+ "body": {
64067
+ "package": "himalaya",
64068
+ "type": "Button",
64069
+ "props": {
64070
+ "title": "$item.secondaryLabel",
64071
+ "style": "secondary",
64072
+ "size": "sm",
64073
+ "fullWidth": false,
64074
+ "action": {
64075
+ "actionId": "tier5.himiOwnerLiteMaestro.cardSecondary",
64076
+ "params": {
64077
+ "id": "$item.id"
64078
+ }
64079
+ }
64080
+ }
64081
+ },
64082
+ "modifiers": {
64083
+ "hiddenPath": "$item.secondaryHidden"
64084
+ }
64085
+ },
64086
+ {
64087
+ "id": "",
64088
+ "body": {
64089
+ "package": "himalaya",
64090
+ "type": "Spacer",
64091
+ "props": {}
64092
+ }
64093
+ }
64094
+ ]
64095
+ }
64096
+ }
64097
+ }
64098
+ ]
64099
+ }
64100
+ },
64101
+ "modifiers": {
64102
+ "padding": {
64103
+ "leading": 14,
64104
+ "trailing": 14,
64105
+ "top": 14,
64106
+ "bottom": 14
64107
+ },
64108
+ "background": {
64109
+ "token": "surfaceSecondary"
64110
+ },
64111
+ "cornerRadius": 16,
64112
+ "fillMaxWidth": true,
64113
+ "hiddenPath": "$item.cardHidden"
64114
+ }
63956
64115
  }
63957
64116
  ]
63958
64117
  }
@@ -64023,7 +64182,8 @@ const SCREENS = runtimeSetting({
64023
64182
  "declaredCapabilities": [
64024
64183
  "wix_api",
64025
64184
  "stream",
64026
- "app_info"
64185
+ "app_info",
64186
+ "open_url"
64027
64187
  ],
64028
64188
  "minBinaryVersion": "0.1.0",
64029
64189
  "bundleVersion": "0.0.1"
@@ -64036,6 +64196,20 @@ const SCREENS = runtimeSetting({
64036
64196
  "props": {
64037
64197
  "spacing": 8,
64038
64198
  "children": [
64199
+ {
64200
+ "id": "himi_owner_lite_maestro.context",
64201
+ "body": {
64202
+ "package": "himalaya",
64203
+ "type": "Text",
64204
+ "props": {
64205
+ "text": "$service:himiOwnerLiteMaestro.contextLabel",
64206
+ "style": "footnote",
64207
+ "color": "textSecondary",
64208
+ "maxLines": 1,
64209
+ "collapseWhenEmpty": true
64210
+ }
64211
+ }
64212
+ },
64039
64213
  {
64040
64214
  "id": "",
64041
64215
  "body": {
@@ -64044,6 +64218,27 @@ const SCREENS = runtimeSetting({
64044
64218
  "props": {}
64045
64219
  }
64046
64220
  },
64221
+ {
64222
+ "id": "himi_owner_lite_maestro.history",
64223
+ "body": {
64224
+ "package": "himalaya",
64225
+ "type": "Button",
64226
+ "props": {
64227
+ "title": "History",
64228
+ "style": "link",
64229
+ "size": "sm",
64230
+ "fullWidth": false,
64231
+ "action": {
64232
+ "actionId": "himi.open",
64233
+ "params": {
64234
+ "screenId": "himi_owner_lite_maestro_history",
64235
+ "title": "Conversations",
64236
+ "subtitle": "Pick up where you left off."
64237
+ }
64238
+ }
64239
+ }
64240
+ }
64241
+ },
64047
64242
  {
64048
64243
  "id": "himi_owner_lite_maestro.newChat",
64049
64244
  "body": {
@@ -64246,6 +64441,321 @@ const SCREENS = runtimeSetting({
64246
64441
  "replaces": "himi_owner_lite_maestro.header"
64247
64442
  }
64248
64443
  },
64444
+ "himi_owner_lite_maestro_history": {
64445
+ "screenId": "himi_owner_lite_maestro_history",
64446
+ "renderer": "sdui_intent",
64447
+ "title": "",
64448
+ "schemaVersion": 1,
64449
+ "cacheControl": {
64450
+ "maxAge": 0,
64451
+ "staleWhileRevalidate": 0
64452
+ },
64453
+ "telemetryScreenName": "himi_owner_lite_maestro_history",
64454
+ "payload": {
64455
+ "id": "himi_owner_lite_maestro_history.root",
64456
+ "body": {
64457
+ "package": "himalaya",
64458
+ "type": "VStack",
64459
+ "props": {
64460
+ "spacing": 16,
64461
+ "alignment": "leading",
64462
+ "children": [
64463
+ {
64464
+ "id": "himi_owner_lite_maestro_history.header",
64465
+ "body": {
64466
+ "package": "himalaya",
64467
+ "type": "VStack",
64468
+ "props": {
64469
+ "spacing": 4,
64470
+ "alignment": "leading",
64471
+ "children": [
64472
+ {
64473
+ "id": "himi_owner_lite_maestro_history.header.title",
64474
+ "body": {
64475
+ "package": "himalaya",
64476
+ "type": "Text",
64477
+ "props": {
64478
+ "text": "Conversations",
64479
+ "style": "title1"
64480
+ }
64481
+ },
64482
+ "modifiers": {
64483
+ "headingLevel": 1
64484
+ }
64485
+ },
64486
+ {
64487
+ "id": "",
64488
+ "body": {
64489
+ "package": "himalaya",
64490
+ "type": "Text",
64491
+ "props": {
64492
+ "text": "Pick up where you left off.",
64493
+ "style": "footnote",
64494
+ "color": "textSecondary",
64495
+ "collapseWhenEmpty": true
64496
+ }
64497
+ }
64498
+ }
64499
+ ]
64500
+ }
64501
+ }
64502
+ },
64503
+ {
64504
+ "id": "",
64505
+ "body": {
64506
+ "package": "himalaya",
64507
+ "type": "Text",
64508
+ "props": {
64509
+ "text": "$service:himiOwnerLiteMaestroHistory.emptyText",
64510
+ "style": "body",
64511
+ "color": "textSecondary",
64512
+ "maxLines": 2,
64513
+ "collapseWhenEmpty": true
64514
+ }
64515
+ },
64516
+ "modifiers": {
64517
+ "padding": {
64518
+ "leading": 0,
64519
+ "trailing": 0,
64520
+ "top": 16,
64521
+ "bottom": 8
64522
+ }
64523
+ }
64524
+ },
64525
+ {
64526
+ "id": "himi_owner_lite_maestro_history.bound",
64527
+ "body": {
64528
+ "package": "himalaya",
64529
+ "type": "LazyList",
64530
+ "props": {
64531
+ "itemsPath": "$service:himiOwnerLiteMaestroHistory.items",
64532
+ "spacing": 0,
64533
+ "items": [
64534
+ {
64535
+ "id": "himi_owner_lite_maestro_history.row_$item.id",
64536
+ "body": {
64537
+ "package": "himalaya",
64538
+ "type": "VStack",
64539
+ "props": {
64540
+ "spacing": 0,
64541
+ "children": [
64542
+ {
64543
+ "id": "",
64544
+ "body": {
64545
+ "package": "himalaya",
64546
+ "type": "Text",
64547
+ "props": {
64548
+ "text": "$item.section",
64549
+ "style": "footnote",
64550
+ "color": "textSecondary",
64551
+ "maxLines": 1,
64552
+ "collapseWhenEmpty": true
64553
+ }
64554
+ },
64555
+ "modifiers": {
64556
+ "padding": {
64557
+ "leading": 0,
64558
+ "trailing": 0,
64559
+ "top": 14,
64560
+ "bottom": 4
64561
+ }
64562
+ }
64563
+ },
64564
+ {
64565
+ "id": "himi_owner_lite_maestro_history.card_$item.id",
64566
+ "body": {
64567
+ "package": "himalaya",
64568
+ "type": "HStack",
64569
+ "props": {
64570
+ "spacing": 12,
64571
+ "children": [
64572
+ {
64573
+ "id": "",
64574
+ "body": {
64575
+ "package": "himalaya",
64576
+ "type": "Icon",
64577
+ "props": {
64578
+ "name": "edit",
64579
+ "size": 20,
64580
+ "tint": "accentPrimary"
64581
+ }
64582
+ },
64583
+ "modifiers": {
64584
+ "accessibilityRole": "decorative"
64585
+ }
64586
+ },
64587
+ {
64588
+ "id": "",
64589
+ "body": {
64590
+ "package": "himalaya",
64591
+ "type": "VStack",
64592
+ "props": {
64593
+ "spacing": 2,
64594
+ "children": [
64595
+ {
64596
+ "id": "",
64597
+ "body": {
64598
+ "package": "himalaya",
64599
+ "type": "Text",
64600
+ "props": {
64601
+ "text": "$item.title",
64602
+ "style": "bodyEmphasis",
64603
+ "maxLines": 2
64604
+ }
64605
+ }
64606
+ },
64607
+ {
64608
+ "id": "",
64609
+ "body": {
64610
+ "package": "himalaya",
64611
+ "type": "Text",
64612
+ "props": {
64613
+ "text": "$item.subtitle",
64614
+ "style": "footnote",
64615
+ "color": "textSecondary",
64616
+ "maxLines": 1,
64617
+ "collapseWhenEmpty": true
64618
+ }
64619
+ }
64620
+ }
64621
+ ]
64622
+ }
64623
+ }
64624
+ },
64625
+ {
64626
+ "id": "",
64627
+ "body": {
64628
+ "package": "himalaya",
64629
+ "type": "Spacer",
64630
+ "props": {}
64631
+ }
64632
+ },
64633
+ {
64634
+ "id": "",
64635
+ "body": {
64636
+ "package": "himalaya",
64637
+ "type": "Icon",
64638
+ "props": {
64639
+ "name": "chevron_right",
64640
+ "size": 18,
64641
+ "tint": "textSecondary"
64642
+ }
64643
+ },
64644
+ "modifiers": {
64645
+ "accessibilityRole": "decorative"
64646
+ }
64647
+ }
64648
+ ]
64649
+ }
64650
+ },
64651
+ "modifiers": {
64652
+ "padding": {
64653
+ "leading": 0,
64654
+ "trailing": 0,
64655
+ "top": 12,
64656
+ "bottom": 12
64657
+ },
64658
+ "onTap": {
64659
+ "actionId": "himi.open",
64660
+ "params": {
64661
+ "screenId": "himi_owner_lite_maestro",
64662
+ "conversationId": "$item.id",
64663
+ "n": "$item.stamp",
64664
+ "title": "Maestro",
64665
+ "subtitle": "Your business assistant, by Symphony."
64666
+ }
64667
+ }
64668
+ }
64669
+ }
64670
+ ]
64671
+ }
64672
+ }
64673
+ }
64674
+ ]
64675
+ }
64676
+ },
64677
+ "modifiers": {
64678
+ "hiddenPath": "$service:himiOwnerLiteMaestroHistory.itemsHidden"
64679
+ }
64680
+ },
64681
+ {
64682
+ "id": "",
64683
+ "body": {
64684
+ "package": "himalaya",
64685
+ "type": "VStack",
64686
+ "props": {
64687
+ "spacing": 10,
64688
+ "alignment": "leading",
64689
+ "children": [
64690
+ {
64691
+ "id": "himi_owner_lite_maestro_history.error",
64692
+ "body": {
64693
+ "package": "himalaya",
64694
+ "type": "Text",
64695
+ "props": {
64696
+ "text": "$service:himiOwnerLiteMaestroHistory.error",
64697
+ "style": "body",
64698
+ "color": "textSecondary",
64699
+ "maxLines": 3
64700
+ }
64701
+ }
64702
+ },
64703
+ {
64704
+ "id": "himi_owner_lite_maestro_history.retry",
64705
+ "body": {
64706
+ "package": "himalaya",
64707
+ "type": "Button",
64708
+ "props": {
64709
+ "title": "Try again",
64710
+ "style": "secondary",
64711
+ "fullWidth": false,
64712
+ "action": {
64713
+ "actionId": "tier5.himiOwnerLiteMaestroHistory.load"
64714
+ }
64715
+ }
64716
+ }
64717
+ }
64718
+ ]
64719
+ }
64720
+ },
64721
+ "modifiers": {
64722
+ "hiddenPath": "$service:himiOwnerLiteMaestroHistory.errorHidden"
64723
+ }
64724
+ }
64725
+ ]
64726
+ }
64727
+ },
64728
+ "modifiers": {
64729
+ "background": {
64730
+ "token": "surfacePrimary"
64731
+ },
64732
+ "padding": {
64733
+ "leading": 16,
64734
+ "trailing": 16,
64735
+ "top": 18,
64736
+ "bottom": 24
64737
+ },
64738
+ "onAppear": {
64739
+ "actionId": "tier5.himiOwnerLiteMaestroHistory.load"
64740
+ }
64741
+ }
64742
+ },
64743
+ "logicBundle": {
64744
+ "url": "http://localhost:8190/v1/bundles/himi-owner-lite-maestro-history",
64745
+ "integrity": "",
64746
+ "contentType": "application/javascript+ts-bundle",
64747
+ "declaredCapabilities": [
64748
+ "wix_api"
64749
+ ],
64750
+ "minBinaryVersion": "0.1.0",
64751
+ "bundleVersion": "0.0.1"
64752
+ },
64753
+ "hostTitle": {
64754
+ "title": "Conversations",
64755
+ "subtitle": "Pick up where you left off.",
64756
+ "replaces": "himi_owner_lite_maestro_history.header"
64757
+ }
64758
+ },
64249
64759
  "himi_owner_lite_sites": {
64250
64760
  "screenId": "himi_owner_lite_sites",
64251
64761
  "renderer": "sdui_intent",
@@ -49,6 +49,9 @@
49
49
  "himi_owner_lite_maestro": {
50
50
  "displayName": "Maestro"
51
51
  },
52
+ "himi_owner_lite_maestro_history": {
53
+ "displayName": "Maestro History"
54
+ },
52
55
  "himi_owner_lite_manage": {
53
56
  "displayName": "Programme"
54
57
  },
@@ -34,6 +34,20 @@ export async function isSpaceWebsite(api: MaestroWixApi, account: string, site:
34
34
  return (res?.workspaces ?? []).some((w) => w?.website?.metaSiteId === site);
35
35
  }
36
36
 
37
+ /** Why a host cannot run a Maestro turn, or "" when it can.
38
+ *
39
+ * `old_host`: built before it could read a stream of JSON lines, so a turn delivers nothing.
40
+ * `deployed_web`: the web app as deployed. A turn there is relayed by the server that hosts the
41
+ * app, and that server refuses the stream route on Wix's public hosts, so a turn cannot be
42
+ * opened. The web app on a dev host has no such gate. */
43
+ export type HostCannotRunMaestro = "" | "old_host" | "deployed_web";
44
+
45
+ export function hostCannotRunMaestro(info: { platform?: string; environment?: string; ndjsonStreamAvailable?: boolean }): HostCannotRunMaestro {
46
+ if (info.ndjsonStreamAvailable !== true) return "old_host";
47
+ if (info.platform === "web" && info.environment !== "dev") return "deployed_web";
48
+ return "";
49
+ }
50
+
37
51
  export type MaestroAvailability =
38
52
  | { available: true; account: string }
39
53
  | { available: false; why: "no_site" | "no_account" | "not_connected" };