@skyvexsoftware/stratos-sdk 0.1.8 → 0.1.9

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.
@@ -12,8 +12,8 @@ import type { PluginBackgroundModule } from "../types/module";
12
12
  * async onStart(ctx) {
13
13
  * ctx.logger.info("MyPlugin", "Starting up...");
14
14
  * },
15
- * async onStop() {
16
- * // cleanup
15
+ * async onStop(ctx) {
16
+ * ctx.logger.info("MyPlugin", "Shutting down...");
17
17
  * },
18
18
  * });
19
19
  * ```
@@ -11,8 +11,8 @@
11
11
  * async onStart(ctx) {
12
12
  * ctx.logger.info("MyPlugin", "Starting up...");
13
13
  * },
14
- * async onStop() {
15
- * // cleanup
14
+ * async onStop(ctx) {
15
+ * ctx.logger.info("MyPlugin", "Shutting down...");
16
16
  * },
17
17
  * });
18
18
  * ```
@@ -24,9 +24,6 @@ export function createPlugin(module) {
24
24
  if (typeof module.onStop !== "function") {
25
25
  throw new Error("Plugin module must export an onStop function");
26
26
  }
27
- if (module.onResume !== undefined && typeof module.onResume !== "function") {
28
- throw new Error("Plugin module onResume must be a function if provided");
29
- }
30
27
  return module;
31
28
  }
32
29
  //# sourceMappingURL=createPlugin.js.map
@@ -13,9 +13,7 @@ export type PluginBackgroundModule = {
13
13
  /** Called during shell startup after auth is initialized */
14
14
  onStart(ctx: PluginContext): Promise<void>;
15
15
  /** Called during shell shutdown for graceful teardown */
16
- onStop(): Promise<void>;
17
- /** Optional: called when a plugin is reloaded after an update */
18
- onResume?(ctx: PluginContext): Promise<void>;
16
+ onStop(ctx: PluginContext): Promise<void>;
19
17
  };
20
18
  /**
21
19
  * A plugin UI route component — either a regular React component
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyvexsoftware/stratos-sdk",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Plugin SDK for Stratos — types, hooks, and UI components",
5
5
  "author": {
6
6
  "name": "Skyvex Software",