@moku-labs/core 0.1.2 → 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.cjs CHANGED
@@ -561,7 +561,7 @@ function initCorePlugins(corePlugins, corePluginConfigs, frameworkPluginConfigs,
561
561
  * @returns The frozen app object.
562
562
  * @example
563
563
  * ```ts
564
- * const app = await kernel({ id: "my-app", configDefaults: {}, ... });
564
+ * const app = kernel({ id: "my-app", configDefaults: {}, ... });
565
565
  * ```
566
566
  */
567
567
  function kernel(parameters) {
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/dist/index.mjs CHANGED
@@ -560,7 +560,7 @@ function initCorePlugins(corePlugins, corePluginConfigs, frameworkPluginConfigs,
560
560
  * @returns The frozen app object.
561
561
  * @example
562
562
  * ```ts
563
- * const app = await kernel({ id: "my-app", configDefaults: {}, ... });
563
+ * const app = kernel({ id: "my-app", configDefaults: {}, ... });
564
564
  * ```
565
565
  */
566
566
  function kernel(parameters) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moku-labs/core",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "author": "Alex Kucherenko",
5
5
  "repository": {
6
6
  "type": "git",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "description": "Micro-kernel plugin framework for LLMs (TypeScript)",
48
48
  "engines": {
49
- "node": ">=22.0.0",
49
+ "node": ">=24.0.0",
50
50
  "bun": ">=1.3.8"
51
51
  },
52
52
  "files": [