@botpress/runtime 1.13.11 → 1.13.12

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/library.js CHANGED
@@ -48,7 +48,7 @@ var init_define_BUILD = __esm({
48
48
  var define_PACKAGE_VERSIONS_default;
49
49
  var init_define_PACKAGE_VERSIONS = __esm({
50
50
  "<define:__PACKAGE_VERSIONS__>"() {
51
- define_PACKAGE_VERSIONS_default = { runtime: "1.13.11", adk: "1.13.11", sdk: "5.0.2", llmz: "0.0.37", zai: "2.5.6", cognitive: "0.3.3" };
51
+ define_PACKAGE_VERSIONS_default = { runtime: "1.13.12", adk: "1.13.12", sdk: "5.0.2", llmz: "0.0.37", zai: "2.5.6", cognitive: "0.3.3" };
52
52
  }
53
53
  });
54
54
 
@@ -101,7 +101,10 @@ var init_context = __esm({
101
101
  return storage.run(data, callback);
102
102
  },
103
103
  getAll: () => {
104
- const store = storage.getStore();
104
+ let store = storage.getStore();
105
+ if (!store && defaultContext.value) {
106
+ store = defaultContext.value;
107
+ }
105
108
  if (!store) throw new Error("No context found. Did you forget to call `context.run()`?");
106
109
  return store;
107
110
  },