@objectstack/core 1.0.6 → 1.0.8

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
@@ -340,6 +340,11 @@ interface Plugin {
340
340
  * Plugin version
341
341
  */
342
342
  version?: string;
343
+ /**
344
+ * Plugin type (standard, ui, driver, server, app, theme, agent)
345
+ * @default 'standard'
346
+ */
347
+ type?: string;
343
348
  /**
344
349
  * List of other plugin names that this plugin depends on.
345
350
  * The kernel ensures these plugins are initialized before this one.
package/dist/index.d.ts CHANGED
@@ -340,6 +340,11 @@ interface Plugin {
340
340
  * Plugin version
341
341
  */
342
342
  version?: string;
343
+ /**
344
+ * Plugin type (standard, ui, driver, server, app, theme, agent)
345
+ * @default 'standard'
346
+ */
347
+ type?: string;
343
348
  /**
344
349
  * List of other plugin names that this plugin depends on.
345
350
  * The kernel ensures these plugins are initialized before this one.
package/dist/index.js CHANGED
@@ -822,10 +822,11 @@ var PluginLoader = class {
822
822
  }
823
823
  // Private helper methods
824
824
  toPluginMetadata(plugin) {
825
- return {
826
- ...plugin,
827
- version: plugin.version || "0.0.0"
828
- };
825
+ const metadata = plugin;
826
+ if (!metadata.version) {
827
+ metadata.version = "0.0.0";
828
+ }
829
+ return metadata;
829
830
  }
830
831
  validatePluginStructure(plugin) {
831
832
  if (!plugin.name) {
@@ -1964,6 +1965,7 @@ function createApiRegistryPlugin(config = {}) {
1964
1965
  } = config;
1965
1966
  return {
1966
1967
  name: "com.objectstack.core.api-registry",
1968
+ type: "standard",
1967
1969
  version: "1.0.0",
1968
1970
  init: async (ctx) => {
1969
1971
  const registry = new ApiRegistry(