snow-flow 10.0.82 → 10.0.83

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "10.0.82",
3
+ "version": "10.0.83",
4
4
  "name": "snow-flow",
5
5
  "description": "Snow-Flow - ServiceNow Multi-Agent Development Framework powered by AI",
6
6
  "license": "Elastic-2.0",
@@ -765,6 +765,14 @@ function App() {
765
765
  })
766
766
  })
767
767
 
768
+ sdk.event.on(Installation.Event.Updating.type, (evt) => {
769
+ toast.show({
770
+ variant: "info",
771
+ message: `Updating to v${evt.properties.version} in the background...`,
772
+ duration: 10000,
773
+ })
774
+ })
775
+
768
776
  sdk.event.on(Installation.Event.Updated.type, (evt) => {
769
777
  toast.show({
770
778
  variant: "info",
@@ -22,6 +22,7 @@ export async function upgrade() {
22
22
  await Bus.publish(Installation.Event.UpdateAvailable, { version: latest })
23
23
  return
24
24
  }
25
+ await Bus.publish(Installation.Event.Updating, { version: latest })
25
26
  await Installation.upgrade(method, latest)
26
27
  .then(() => Bus.publish(Installation.Event.Updated, { version: latest }))
27
28
  .catch(() => Bus.publish(Installation.Event.UpdateAvailable, { version: latest }))
@@ -31,6 +31,12 @@ export namespace Installation {
31
31
  version: z.string(),
32
32
  }),
33
33
  ),
34
+ Updating: BusEvent.define(
35
+ "installation.updating",
36
+ z.object({
37
+ version: z.string(),
38
+ }),
39
+ ),
34
40
  }
35
41
 
36
42
  export const Info = z