@kosha-ai/cli 0.0.2 → 0.0.3

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 +1 @@
1
- {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../../src/lib/commands/start.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,YAAY;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,wBAAsB,KAAK,CAAC,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8BrE"}
1
+ {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../../src/lib/commands/start.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,YAAY;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,wBAAsB,KAAK,CAAC,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmCrE"}
@@ -23,7 +23,12 @@ export async function start(options = {}) {
23
23
  const adminEntry = resolveAdminServerEntry(cwd);
24
24
  const admin = spawnNodeScript(adminEntry, [], {
25
25
  cwd: dirname(adminEntry),
26
- env: { ...process.env, PORT: String(resolved.admin.port) },
26
+ env: {
27
+ ...process.env,
28
+ PORT: String(resolved.admin.port),
29
+ HOSTNAME: '0.0.0.0',
30
+ KOSHA_API_URL: process.env.KOSHA_API_URL ?? resolved.server.publicUrl,
31
+ },
27
32
  });
28
33
  // Ctrl+C in a terminal already reaches this child (same process group);
29
34
  // this covers being sent a lone SIGTERM/SIGINT, e.g. under a process manager.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosha-ai/cli",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Kosha CLI: migrate, start, and manage a Kosha app",
5
5
  "keywords": [
6
6
  "kosha",
@@ -42,7 +42,7 @@
42
42
  "jiti": "^2.7.0",
43
43
  "prisma": "^7.10.0",
44
44
  "tslib": "^2.3.0",
45
- "@kosha-ai/server": "0.0.2"
45
+ "@kosha-ai/server": "0.0.3"
46
46
  },
47
47
  "kosha": {
48
48
  "kind": "cli"