@wix/himalaya-cli 0.940.0 → 0.941.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/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/genie-chat/src/index.d.ts +32 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-genie-chat.mjs +22 -1
- package/dist/cli.mjs +0 -2
- package/guides/sdk-reference.json +19 -1
- package/guides/tier-5-add-a-screen.md +113 -0
- package/package.json +2 -2
- package/templates/beauty-salon-owner/dev/index.ts +57 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/aria-chat.ts +367 -16
- package/templates/beauty-salon-owner/tier5-src/_shared/aria-widgets.ts +45 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-aria/index.ts +15 -1
- package/templates/community-club-owner/dev/index.ts +57 -0
- package/templates/community-club-owner/tier5-src/_shared/aria-chat.ts +367 -16
- package/templates/community-club-owner/tier5-src/_shared/aria-widgets.ts +45 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-aria/index.ts +15 -1
- package/templates/events-meetups-owner/dev/index.ts +57 -0
- package/templates/events-meetups-owner/tier5-src/_shared/aria-chat.ts +367 -16
- package/templates/events-meetups-owner/tier5-src/_shared/aria-widgets.ts +45 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-aria/index.ts +15 -1
- package/templates/gym-fitness-owner/dev/index.ts +57 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/aria-chat.ts +367 -16
- package/templates/gym-fitness-owner/tier5-src/_shared/aria-widgets.ts +45 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-aria/index.ts +15 -1
- package/templates/nonprofit-cause-owner/dev/index.ts +57 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-chat.ts +367 -16
- package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-widgets.ts +45 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-aria/index.ts +15 -1
- package/templates/owner-lite/dev/index.ts +57 -0
- package/templates/owner-lite/tier5-src/_shared/aria-chat.ts +367 -16
- package/templates/owner-lite/tier5-src/_shared/aria-widgets.ts +45 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-aria/index.ts +15 -1
- package/templates/podcast-creator-owner/dev/index.ts +57 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/aria-chat.ts +367 -16
- package/templates/podcast-creator-owner/tier5-src/_shared/aria-widgets.ts +45 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-aria/index.ts +15 -1
- package/templates/portfolio-creative-owner/dev/index.ts +57 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/aria-chat.ts +367 -16
- package/templates/portfolio-creative-owner/tier5-src/_shared/aria-widgets.ts +45 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-aria/index.ts +15 -1
- package/templates/restaurant-owner/dev/index.ts +57 -0
- package/templates/restaurant-owner/tier5-src/_shared/aria-chat.ts +367 -16
- package/templates/restaurant-owner/tier5-src/_shared/aria-widgets.ts +45 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-aria/index.ts +15 -1
- package/templates/retail-store-owner/dev/index.ts +57 -0
- package/templates/retail-store-owner/tier5-src/_shared/aria-chat.ts +367 -16
- package/templates/retail-store-owner/tier5-src/_shared/aria-widgets.ts +45 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-aria/index.ts +15 -1
- package/templates/yoga-studio-owner/dev/index.ts +57 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/aria-chat.ts +367 -16
- package/templates/yoga-studio-owner/tier5-src/_shared/aria-widgets.ts +45 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-aria/index.ts +15 -1
|
@@ -141,6 +141,7 @@ const core = createAriaChat({
|
|
|
141
141
|
you: () => copyParam("ownerAria.you", "You"),
|
|
142
142
|
typing: () => copyParam("ownerAria.typing", "Aria is typing…"),
|
|
143
143
|
slow: () => copyParam("ownerAria.slow", "Aria is taking a while…"),
|
|
144
|
+
stopped: () => copyParam("ownerAria.stopped", "Stopped."),
|
|
144
145
|
// Shown when the HOST carries no Wix app binding, so no Wix call can leave
|
|
145
146
|
// the browser (the web preview). Through copyParam like every other string
|
|
146
147
|
// here — a default baked into the shared core cannot be localized by this
|
|
@@ -173,8 +174,17 @@ const svc = defineService<AriaChatState, {
|
|
|
173
174
|
submitPrompt: (s: AriaChatState, arg?: AriaActionArg) => Promise<AriaChatState>;
|
|
174
175
|
newChat: (s: AriaChatState) => Promise<AriaChatState>;
|
|
175
176
|
typing: (s: AriaChatState, arg?: AriaActionArg) => AriaChatState;
|
|
176
|
-
|
|
177
|
+
// `undefined` is part of the contract, not sloppiness: a tick whose read was
|
|
178
|
+
// in flight across a turn boundary returns nothing, so the runtime merges
|
|
179
|
+
// nothing, rather than reinstating a pre-Stop snapshot over the stop. Other
|
|
180
|
+
// shipped workers declare the same shape (himi-chat, himi-branded-lite-order).
|
|
181
|
+
tick: (s: AriaChatState) => Promise<AriaChatState | undefined>;
|
|
177
182
|
openLink: (s: AriaChatState, arg?: AriaActionArg) => Promise<AriaChatState>;
|
|
183
|
+
// `undefined` for the same reason `tick` has it, and it is the same race:
|
|
184
|
+
// a Stop whose abort was in flight across a turn boundary (a fresh send, a
|
|
185
|
+
// new chat) holds a pre-boundary snapshot, and committing it would end the
|
|
186
|
+
// turn the owner has since started.
|
|
187
|
+
stop: (s: AriaChatState) => Promise<AriaChatState | undefined>;
|
|
178
188
|
}>(SERVICE, {
|
|
179
189
|
state: core.initialState,
|
|
180
190
|
actions: {
|
|
@@ -190,6 +200,10 @@ const svc = defineService<AriaChatState, {
|
|
|
190
200
|
// a `poll-action-missing` error in `himi test --content`.
|
|
191
201
|
tick: core.tick,
|
|
192
202
|
openLink: core.openLink,
|
|
203
|
+
// The descriptor's Stop control, which is collapsed unless `stopHidden` is
|
|
204
|
+
// false — so this is only ever dispatched while a reply is outstanding and
|
|
205
|
+
// the worker is holding the handle that can abort it.
|
|
206
|
+
stop: core.stop,
|
|
193
207
|
},
|
|
194
208
|
});
|
|
195
209
|
|
|
@@ -55035,6 +55035,63 @@ const SCREENS = runtimeSetting({
|
|
|
55035
55035
|
}
|
|
55036
55036
|
}
|
|
55037
55037
|
},
|
|
55038
|
+
{
|
|
55039
|
+
"id": "himi_owner_lite_aria.stop",
|
|
55040
|
+
"body": {
|
|
55041
|
+
"package": "himalaya",
|
|
55042
|
+
"type": "HStack",
|
|
55043
|
+
"props": {
|
|
55044
|
+
"spacing": 6,
|
|
55045
|
+
"children": [
|
|
55046
|
+
{
|
|
55047
|
+
"id": "",
|
|
55048
|
+
"body": {
|
|
55049
|
+
"package": "himalaya",
|
|
55050
|
+
"type": "Spacer",
|
|
55051
|
+
"props": {}
|
|
55052
|
+
}
|
|
55053
|
+
},
|
|
55054
|
+
{
|
|
55055
|
+
"id": "",
|
|
55056
|
+
"body": {
|
|
55057
|
+
"package": "himalaya",
|
|
55058
|
+
"type": "Icon",
|
|
55059
|
+
"props": {
|
|
55060
|
+
"name": "close",
|
|
55061
|
+
"size": 14,
|
|
55062
|
+
"tint": "accentPrimary"
|
|
55063
|
+
}
|
|
55064
|
+
}
|
|
55065
|
+
},
|
|
55066
|
+
{
|
|
55067
|
+
"id": "",
|
|
55068
|
+
"body": {
|
|
55069
|
+
"package": "himalaya",
|
|
55070
|
+
"type": "Text",
|
|
55071
|
+
"props": {
|
|
55072
|
+
"text": "Stop",
|
|
55073
|
+
"style": "footnote",
|
|
55074
|
+
"color": "accentPrimary",
|
|
55075
|
+
"maxLines": 1
|
|
55076
|
+
}
|
|
55077
|
+
}
|
|
55078
|
+
}
|
|
55079
|
+
]
|
|
55080
|
+
}
|
|
55081
|
+
},
|
|
55082
|
+
"modifiers": {
|
|
55083
|
+
"padding": {
|
|
55084
|
+
"leading": 0,
|
|
55085
|
+
"trailing": 0,
|
|
55086
|
+
"top": 4,
|
|
55087
|
+
"bottom": 0
|
|
55088
|
+
},
|
|
55089
|
+
"onTap": {
|
|
55090
|
+
"actionId": "tier5.himiOwnerLiteAria.stop"
|
|
55091
|
+
},
|
|
55092
|
+
"hiddenPath": "$service:himiOwnerLiteAria.stopHidden"
|
|
55093
|
+
}
|
|
55094
|
+
},
|
|
55038
55095
|
{
|
|
55039
55096
|
"id": "",
|
|
55040
55097
|
"body": {
|