@moku-labs/core 0.1.3 → 0.1.4

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/index.d.cts CHANGED
@@ -575,6 +575,8 @@ declare function createCorePlugin<const N extends string, C extends Record<strin
575
575
  //#region src/plugin.d.ts
576
576
  /**
577
577
  * Structural plugin shape used for generic constraints without variance issues.
578
+ * `events` is optional so core-plugin instances (no events phantom) match too —
579
+ * the runtime already resolves them through the same `require` lookup map.
578
580
  *
579
581
  * @example
580
582
  * ```ts
@@ -588,7 +590,7 @@ type PluginLike = {
588
590
  readonly config: unknown;
589
591
  readonly state: unknown;
590
592
  readonly api: unknown;
591
- readonly events: Record<string, unknown>;
593
+ readonly events?: Record<string, unknown>;
592
594
  };
593
595
  };
594
596
  /**
package/dist/index.d.mts CHANGED
@@ -575,6 +575,8 @@ declare function createCorePlugin<const N extends string, C extends Record<strin
575
575
  //#region src/plugin.d.ts
576
576
  /**
577
577
  * Structural plugin shape used for generic constraints without variance issues.
578
+ * `events` is optional so core-plugin instances (no events phantom) match too —
579
+ * the runtime already resolves them through the same `require` lookup map.
578
580
  *
579
581
  * @example
580
582
  * ```ts
@@ -588,7 +590,7 @@ type PluginLike = {
588
590
  readonly config: unknown;
589
591
  readonly state: unknown;
590
592
  readonly api: unknown;
591
- readonly events: Record<string, unknown>;
593
+ readonly events?: Record<string, unknown>;
592
594
  };
593
595
  };
594
596
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moku-labs/core",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "author": "Alex Kucherenko",
5
5
  "repository": {
6
6
  "type": "git",