@objectstack/cli 2.0.2 → 2.0.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.
@@ -1,24 +1,24 @@
1
1
 
2
- > @objectstack/cli@2.0.2 build /home/runner/work/spec/spec/packages/cli
2
+ > @objectstack/cli@2.0.4 build /home/runner/work/spec/spec/packages/cli
3
3
  > tsup
4
4
 
5
- CLI Building entry: src/index.ts
5
+ CLI Building entry: src/bin.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.5.1
8
8
  CLI Using tsup config: /home/runner/work/spec/spec/packages/cli/tsup.config.ts
9
- CLI Building entry: src/bin.ts
9
+ CLI Building entry: src/index.ts
10
10
  CLI Using tsconfig: tsconfig.json
11
11
  CLI tsup v8.5.1
12
12
  CLI Using tsup config: /home/runner/work/spec/spec/packages/cli/tsup.config.ts
13
13
  CLI Target: es2022
14
- ESM Build start
15
14
  CLI Target: es2022
15
+ ESM Build start
16
16
  CLI Cleaning output folder
17
17
  ESM Build start
18
- ESM dist/index.js 58.65 KB
19
- ESM ⚡️ Build success in 169ms
20
- ESM dist/bin.js 61.27 KB
21
- ESM ⚡️ Build success in 152ms
18
+ ESM dist/index.js 58.94 KB
19
+ ESM ⚡️ Build success in 126ms
20
+ ESM dist/bin.js 61.55 KB
21
+ ESM ⚡️ Build success in 148ms
22
22
  DTS Build start
23
- DTS ⚡️ Build success in 7598ms
23
+ DTS ⚡️ Build success in 7679ms
24
24
  DTS dist/index.d.ts 2.93 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @objectstack/cli
2
2
 
3
+ ## 2.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Patch release for maintenance and stability improvements
8
+ - Updated dependencies
9
+ - @objectstack/spec@2.0.4
10
+ - @objectstack/core@2.0.4
11
+ - @objectstack/objectql@2.0.4
12
+ - @objectstack/runtime@2.0.4
13
+ - @objectstack/rest@2.0.4
14
+ - @objectstack/driver-memory@2.0.4
15
+ - @objectstack/plugin-hono-server@2.0.4
16
+
17
+ ## 2.0.3
18
+
19
+ ### Patch Changes
20
+
21
+ - Patch release for maintenance and stability improvements
22
+ - Updated dependencies
23
+ - @objectstack/spec@2.0.3
24
+ - @objectstack/core@2.0.3
25
+ - @objectstack/objectql@2.0.3
26
+ - @objectstack/runtime@2.0.3
27
+ - @objectstack/rest@2.0.3
28
+ - @objectstack/driver-memory@2.0.3
29
+ - @objectstack/plugin-hono-server@2.0.3
30
+
3
31
  ## 2.0.2
4
32
 
5
33
  ### Patch Changes
package/dist/bin.js CHANGED
@@ -986,6 +986,13 @@ var serveCommand = new Command5("serve").description("Start ObjectStack server w
986
986
  throw new Error(`Failed to import plugin '${plugin}': ${importError.message}`);
987
987
  }
988
988
  }
989
+ if (pluginToLoad && typeof pluginToLoad === "object" && !pluginToLoad.init) {
990
+ try {
991
+ const { AppPlugin } = await import("@objectstack/runtime");
992
+ pluginToLoad = new AppPlugin(pluginToLoad);
993
+ } catch (e) {
994
+ }
995
+ }
989
996
  await kernel.use(pluginToLoad);
990
997
  const pluginName = plugin.name || plugin.constructor?.name || "unnamed";
991
998
  trackPlugin(pluginName);
package/dist/index.js CHANGED
@@ -1538,6 +1538,13 @@ var serveCommand = new Command8("serve").description("Start ObjectStack server w
1538
1538
  throw new Error(`Failed to import plugin '${plugin}': ${importError.message}`);
1539
1539
  }
1540
1540
  }
1541
+ if (pluginToLoad && typeof pluginToLoad === "object" && !pluginToLoad.init) {
1542
+ try {
1543
+ const { AppPlugin } = await import("@objectstack/runtime");
1544
+ pluginToLoad = new AppPlugin(pluginToLoad);
1545
+ } catch (e) {
1546
+ }
1547
+ }
1541
1548
  await kernel.use(pluginToLoad);
1542
1549
  const pluginName = plugin.name || plugin.constructor?.name || "unnamed";
1543
1550
  trackPlugin(pluginName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectstack/cli",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "Command Line Interface for ObjectStack Protocol",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -22,16 +22,16 @@
22
22
  "commander": "^14.0.3",
23
23
  "tsx": "^4.7.1",
24
24
  "zod": "^4.3.6",
25
- "@objectstack/core": "2.0.2",
26
- "@objectstack/driver-memory": "^2.0.2",
27
- "@objectstack/objectql": "^2.0.2",
28
- "@objectstack/plugin-hono-server": "2.0.2",
29
- "@objectstack/rest": "2.0.2",
30
- "@objectstack/runtime": "^2.0.2",
31
- "@objectstack/spec": "2.0.2"
25
+ "@objectstack/core": "2.0.4",
26
+ "@objectstack/driver-memory": "^2.0.4",
27
+ "@objectstack/objectql": "^2.0.4",
28
+ "@objectstack/plugin-hono-server": "2.0.4",
29
+ "@objectstack/rest": "2.0.4",
30
+ "@objectstack/runtime": "^2.0.4",
31
+ "@objectstack/spec": "2.0.4"
32
32
  },
33
33
  "peerDependencies": {
34
- "@objectstack/core": "2.0.2"
34
+ "@objectstack/core": "2.0.4"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "^25.2.2",
@@ -207,6 +207,17 @@ export const serveCommand = new Command('serve')
207
207
  }
208
208
  }
209
209
 
210
+ // Wrap raw config objects (no init/start) into AppPlugin
211
+ // This handles plugins defined as plain { name, objects, ... } bundles
212
+ if (pluginToLoad && typeof pluginToLoad === 'object' && !pluginToLoad.init) {
213
+ try {
214
+ const { AppPlugin } = await import('@objectstack/runtime');
215
+ pluginToLoad = new AppPlugin(pluginToLoad);
216
+ } catch (e: any) {
217
+ // Fall through to kernel.use which will report the error
218
+ }
219
+ }
220
+
210
221
  await kernel.use(pluginToLoad);
211
222
  const pluginName = plugin.name || plugin.constructor?.name || 'unnamed';
212
223
  trackPlugin(pluginName);