@objectstack/cli 1.0.1 → 1.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.
- package/CHANGELOG.md +54 -0
- package/dist/bin.js +5 -5
- package/package.json +8 -8
- package/src/commands/serve.ts +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
# @objectstack/cli
|
|
2
2
|
|
|
3
|
+
## 1.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5d13533: refactor: fix service registration compatibility and improve logging
|
|
8
|
+
- plugin-hono-server: register 'http.server' service alias to match core requirements
|
|
9
|
+
- plugin-hono-server: fix console log to show the actual bound port instead of configured port
|
|
10
|
+
- plugin-hono-server: reduce log verbosity (moved non-essential logs to debug level)
|
|
11
|
+
- objectql: automatically register 'metadata', 'data', 'and 'auth' services during initialization to satisfy kernel contracts
|
|
12
|
+
- cli: fix race condition in `serve` command by awaiting plugin registration calls (`kernel.use`)
|
|
13
|
+
- Updated dependencies [5d13533]
|
|
14
|
+
- @objectstack/plugin-hono-server@1.0.4
|
|
15
|
+
- @objectstack/objectql@1.0.4
|
|
16
|
+
- @objectstack/spec@1.0.4
|
|
17
|
+
- @objectstack/core@1.0.4
|
|
18
|
+
- @objectstack/runtime@1.0.4
|
|
19
|
+
- @objectstack/driver-memory@1.0.4
|
|
20
|
+
|
|
21
|
+
## 1.0.3
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [fb2eabd]
|
|
26
|
+
- Updated dependencies [22a48f0]
|
|
27
|
+
- @objectstack/core@1.0.3
|
|
28
|
+
- @objectstack/runtime@1.0.3
|
|
29
|
+
- @objectstack/plugin-hono-server@1.0.3
|
|
30
|
+
- @objectstack/objectql@1.0.3
|
|
31
|
+
- @objectstack/driver-memory@1.0.3
|
|
32
|
+
- @objectstack/spec@1.0.3
|
|
33
|
+
|
|
34
|
+
## 1.0.2
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- a0a6c85: Infrastructure and development tooling improvements
|
|
39
|
+
|
|
40
|
+
- Add changeset configuration for automated version management
|
|
41
|
+
- Add comprehensive GitHub Actions workflows (CI, CodeQL, linting, releases)
|
|
42
|
+
- Add development configuration files (.cursorrules, .github/prompts)
|
|
43
|
+
- Add documentation files (ARCHITECTURE.md, CONTRIBUTING.md, workflows docs)
|
|
44
|
+
- Update test script configuration in package.json
|
|
45
|
+
- Add @objectstack/cli to devDependencies for better development experience
|
|
46
|
+
|
|
47
|
+
- 109fc5b: Unified patch release to align all package versions.
|
|
48
|
+
- Updated dependencies [a0a6c85]
|
|
49
|
+
- Updated dependencies [109fc5b]
|
|
50
|
+
- @objectstack/spec@1.0.2
|
|
51
|
+
- @objectstack/core@1.0.2
|
|
52
|
+
- @objectstack/objectql@1.0.2
|
|
53
|
+
- @objectstack/runtime@1.0.2
|
|
54
|
+
- @objectstack/driver-memory@1.0.2
|
|
55
|
+
- @objectstack/plugin-hono-server@1.0.2
|
|
56
|
+
|
|
3
57
|
## 1.0.1
|
|
4
58
|
|
|
5
59
|
### Patch Changes
|
package/dist/bin.js
CHANGED
|
@@ -520,7 +520,7 @@ var serveCommand = new Command4("serve").description("Start ObjectStack server w
|
|
|
520
520
|
try {
|
|
521
521
|
console.log(chalk4.dim(` Auto-injecting ObjectQL Engine...`));
|
|
522
522
|
const { ObjectQLPlugin } = await import("@objectstack/objectql");
|
|
523
|
-
kernel.use(new ObjectQLPlugin());
|
|
523
|
+
await kernel.use(new ObjectQLPlugin());
|
|
524
524
|
console.log(chalk4.green(` \u2713 Registered ObjectQL Plugin (auto-detected)`));
|
|
525
525
|
} catch (e) {
|
|
526
526
|
console.warn(chalk4.yellow(` \u26A0 Could not auto-load ObjectQL: ${e.message}`));
|
|
@@ -532,7 +532,7 @@ var serveCommand = new Command4("serve").description("Start ObjectStack server w
|
|
|
532
532
|
console.log(chalk4.dim(` Auto-injecting Memory Driver (Dev Mode)...`));
|
|
533
533
|
const { DriverPlugin } = await import("@objectstack/runtime");
|
|
534
534
|
const { InMemoryDriver } = await import("@objectstack/driver-memory");
|
|
535
|
-
kernel.use(new DriverPlugin(new InMemoryDriver()));
|
|
535
|
+
await kernel.use(new DriverPlugin(new InMemoryDriver()));
|
|
536
536
|
console.log(chalk4.green(` \u2713 Registered Memory Driver (auto-detected)`));
|
|
537
537
|
} catch (e) {
|
|
538
538
|
console.log(chalk4.dim(` \u2139 No default driver loaded: ${e.message}`));
|
|
@@ -541,7 +541,7 @@ var serveCommand = new Command4("serve").description("Start ObjectStack server w
|
|
|
541
541
|
if (config.objects || config.manifest || config.apps) {
|
|
542
542
|
try {
|
|
543
543
|
const { AppPlugin } = await import("@objectstack/runtime");
|
|
544
|
-
kernel.use(new AppPlugin(config));
|
|
544
|
+
await kernel.use(new AppPlugin(config));
|
|
545
545
|
console.log(chalk4.green(` \u2713 Registered App Plugin (auto-detected)`));
|
|
546
546
|
} catch (e) {
|
|
547
547
|
console.warn(chalk4.yellow(` \u26A0 Could not auto-load AppPlugin: ${e.message}`));
|
|
@@ -561,7 +561,7 @@ var serveCommand = new Command4("serve").description("Start ObjectStack server w
|
|
|
561
561
|
throw new Error(`Failed to import plugin '${plugin}': ${importError.message}`);
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
kernel.use(pluginToLoad);
|
|
564
|
+
await kernel.use(pluginToLoad);
|
|
565
565
|
const pluginName = plugin.name || plugin.constructor?.name || "unnamed";
|
|
566
566
|
console.log(chalk4.green(` \u2713 Registered plugin: ${pluginName}`));
|
|
567
567
|
} catch (e) {
|
|
@@ -573,7 +573,7 @@ var serveCommand = new Command4("serve").description("Start ObjectStack server w
|
|
|
573
573
|
try {
|
|
574
574
|
const { HonoServerPlugin } = await import("@objectstack/plugin-hono-server");
|
|
575
575
|
const serverPlugin = new HonoServerPlugin({ port });
|
|
576
|
-
kernel.use(serverPlugin);
|
|
576
|
+
await kernel.use(serverPlugin);
|
|
577
577
|
console.log(chalk4.green(` \u2713 Registered HTTP server plugin (port: ${port})`));
|
|
578
578
|
} catch (e) {
|
|
579
579
|
console.warn(chalk4.yellow(` \u26A0 HTTP server plugin not available: ${e.message}`));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@objectstack/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Command Line Interface for ObjectStack Protocol",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"commander": "^11.1.0",
|
|
23
23
|
"tsx": "^4.7.1",
|
|
24
24
|
"zod": "^4.3.6",
|
|
25
|
-
"@objectstack/core": "1.0.
|
|
26
|
-
"@objectstack/driver-memory": "^1.0.
|
|
27
|
-
"@objectstack/objectql": "^1.0.
|
|
28
|
-
"@objectstack/plugin-hono-server": "1.0.
|
|
29
|
-
"@objectstack/runtime": "^1.0.
|
|
30
|
-
"@objectstack/spec": "1.0.
|
|
25
|
+
"@objectstack/core": "1.0.4",
|
|
26
|
+
"@objectstack/driver-memory": "^1.0.4",
|
|
27
|
+
"@objectstack/objectql": "^1.0.4",
|
|
28
|
+
"@objectstack/plugin-hono-server": "1.0.4",
|
|
29
|
+
"@objectstack/runtime": "^1.0.4",
|
|
30
|
+
"@objectstack/spec": "1.0.4"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@objectstack/core": "^1.0.
|
|
33
|
+
"@objectstack/core": "^1.0.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^25.1.0",
|
package/src/commands/serve.ts
CHANGED
|
@@ -112,7 +112,7 @@ export const serveCommand = new Command('serve')
|
|
|
112
112
|
try {
|
|
113
113
|
console.log(chalk.dim(` Auto-injecting ObjectQL Engine...`));
|
|
114
114
|
const { ObjectQLPlugin } = await import('@objectstack/objectql');
|
|
115
|
-
kernel.use(new ObjectQLPlugin());
|
|
115
|
+
await kernel.use(new ObjectQLPlugin());
|
|
116
116
|
console.log(chalk.green(` ✓ Registered ObjectQL Plugin (auto-detected)`));
|
|
117
117
|
} catch (e: any) {
|
|
118
118
|
console.warn(chalk.yellow(` ⚠ Could not auto-load ObjectQL: ${e.message}`));
|
|
@@ -126,7 +126,7 @@ export const serveCommand = new Command('serve')
|
|
|
126
126
|
console.log(chalk.dim(` Auto-injecting Memory Driver (Dev Mode)...`));
|
|
127
127
|
const { DriverPlugin } = await import('@objectstack/runtime');
|
|
128
128
|
const { InMemoryDriver } = await import('@objectstack/driver-memory');
|
|
129
|
-
kernel.use(new DriverPlugin(new InMemoryDriver()));
|
|
129
|
+
await kernel.use(new DriverPlugin(new InMemoryDriver()));
|
|
130
130
|
console.log(chalk.green(` ✓ Registered Memory Driver (auto-detected)`));
|
|
131
131
|
} catch (e: any) {
|
|
132
132
|
// Silent fail - maybe they don't want a driver or don't have the package
|
|
@@ -138,7 +138,7 @@ export const serveCommand = new Command('serve')
|
|
|
138
138
|
if (config.objects || config.manifest || config.apps) {
|
|
139
139
|
try {
|
|
140
140
|
const { AppPlugin } = await import('@objectstack/runtime');
|
|
141
|
-
kernel.use(new AppPlugin(config));
|
|
141
|
+
await kernel.use(new AppPlugin(config));
|
|
142
142
|
console.log(chalk.green(` ✓ Registered App Plugin (auto-detected)`));
|
|
143
143
|
} catch (e: any) {
|
|
144
144
|
console.warn(chalk.yellow(` ⚠ Could not auto-load AppPlugin: ${e.message}`));
|
|
@@ -166,7 +166,7 @@ export const serveCommand = new Command('serve')
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
kernel.use(pluginToLoad);
|
|
169
|
+
await kernel.use(pluginToLoad);
|
|
170
170
|
const pluginName = plugin.name || plugin.constructor?.name || 'unnamed';
|
|
171
171
|
console.log(chalk.green(` ✓ Registered plugin: ${pluginName}`));
|
|
172
172
|
} catch (e: any) {
|
|
@@ -180,7 +180,7 @@ export const serveCommand = new Command('serve')
|
|
|
180
180
|
try {
|
|
181
181
|
const { HonoServerPlugin } = await import('@objectstack/plugin-hono-server');
|
|
182
182
|
const serverPlugin = new HonoServerPlugin({ port });
|
|
183
|
-
kernel.use(serverPlugin);
|
|
183
|
+
await kernel.use(serverPlugin);
|
|
184
184
|
console.log(chalk.green(` ✓ Registered HTTP server plugin (port: ${port})`));
|
|
185
185
|
} catch (e: any) {
|
|
186
186
|
console.warn(chalk.yellow(` ⚠ HTTP server plugin not available: ${e.message}`));
|