@suwujs/king-ai 0.2.3 → 0.2.5

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.
@@ -15,5 +15,5 @@ export declare const HEARTBEAT_PATH: string;
15
15
  export declare const HOST_EVENTS_PATH: string;
16
16
  export declare const HOST_RUNS_PATH: string;
17
17
  export declare const SERVICE_LABEL = "dev.king-ai";
18
- export declare const CURRENT_VERSION: string;
18
+ export declare const CURRENT_VERSION = "0.2.5";
19
19
  export declare const DEFAULT_SERVER: string;
package/dist/src/paths.js CHANGED
@@ -1,4 +1,3 @@
1
- import { readFileSync } from "node:fs";
2
1
  import { homedir } from "node:os";
3
2
  import { join } from "node:path";
4
3
  export const APP_NAME = "king-ai";
@@ -23,22 +22,5 @@ export const HEARTBEAT_PATH = join(CONFIG_DIR, "heartbeat.json");
23
22
  export const HOST_EVENTS_PATH = join(CONFIG_DIR, "host-events.ndjson");
24
23
  export const HOST_RUNS_PATH = join(CONFIG_DIR, "host-runs.ndjson");
25
24
  export const SERVICE_LABEL = "dev.king-ai";
26
- export const CURRENT_VERSION = readPackageVersion();
25
+ export const CURRENT_VERSION = "0.2.5";
27
26
  export const DEFAULT_SERVER = process.env.KING_AI_SERVER_URL || "https://api.king-ai.ai";
28
- function readPackageVersion() {
29
- const candidates = [
30
- new URL("../../package.json", import.meta.url),
31
- new URL("../package.json", import.meta.url)
32
- ];
33
- for (const candidate of candidates) {
34
- try {
35
- const pkg = JSON.parse(readFileSync(candidate, "utf8"));
36
- if (typeof pkg.version === "string" && pkg.version)
37
- return pkg.version;
38
- }
39
- catch {
40
- // Source and built files live at different depths; try the next candidate.
41
- }
42
- }
43
- return "0.0.0";
44
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suwujs/king-ai",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "King AI, a local BYOA agent daemon that bridges remote runtime events to Claude or Codex CLI.",
5
5
  "type": "module",
6
6
  "bin": {