@botiverse/raft-daemon 0.57.7 → 0.58.1

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.js ADDED
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ DAEMON_CLI_USAGE,
4
+ DaemonCore,
5
+ parseDaemonCliArgs
6
+ } from "./chunk-G324C7NF.js";
7
+
8
+ // src/index.ts
9
+ var parsedArgs = parseDaemonCliArgs(process.argv.slice(2));
10
+ if (!parsedArgs) {
11
+ console.error(DAEMON_CLI_USAGE);
12
+ process.exit(1);
13
+ }
14
+ var daemon = new DaemonCore({ ...parsedArgs, localTrace: true });
15
+ try {
16
+ daemon.start();
17
+ } catch (err) {
18
+ console.error(err instanceof Error ? err.message : err);
19
+ process.exit(1);
20
+ }
21
+ var shutdown = async () => {
22
+ await daemon.stop();
23
+ process.exit(0);
24
+ };
25
+ process.on("SIGTERM", () => {
26
+ void shutdown();
27
+ });
28
+ process.on("SIGINT", () => {
29
+ void shutdown();
30
+ });
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ await import("./index.js");
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ await import("./index.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botiverse/raft-daemon",
3
- "version": "0.57.7",
3
+ "version": "0.58.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "raft-daemon": "dist/raft-daemon.js",
@@ -8,9 +8,12 @@
8
8
  },
9
9
  "exports": {
10
10
  "./core": {
11
- "types": "../daemon/src/core.ts",
11
+ "types": "./src/core.ts",
12
12
  "import": "./dist/core.js"
13
- }
13
+ },
14
+ "./dist/raft-daemon.js": "./dist/raft-daemon.js",
15
+ "./dist/slock-daemon.js": "./dist/slock-daemon.js",
16
+ "./package.json": "./package.json"
14
17
  },
15
18
  "files": [
16
19
  "dist"
@@ -18,14 +21,26 @@
18
21
  "repository": {
19
22
  "type": "git",
20
23
  "url": "git+https://github.com/botiverse/slock.git",
21
- "directory": "packages/raft-daemon"
24
+ "directory": "packages/daemon"
22
25
  },
23
26
  "publishConfig": {
24
27
  "access": "public"
25
28
  },
26
29
  "scripts": {
27
- "build": "pnpm --filter @slock-ai/daemon build && node scripts/sync-daemon-dist.mjs",
28
- "lint:publish-package": "node scripts/check-publish-package.mjs"
30
+ "dev": "pnpm --filter @botiverse/raft build && tsx watch src/index.ts",
31
+ "start": "tsx src/index.ts",
32
+ "build": "pnpm --filter @botiverse/raft build && tsup && node -e \"require('fs').cpSync('../cli/dist','dist/cli',{recursive:true})\" && node scripts/write-dist-bins.mjs",
33
+ "test": "node --import tsx --test --test-force-exit 'src/**/*.test.ts'",
34
+ "prepack": "pnpm run build",
35
+ "prepublishOnly": "pnpm run build",
36
+ "typecheck": "tsc --noEmit",
37
+ "lint:publish-package": "node scripts/check-publish-package.mjs",
38
+ "generate:slock-cli-guide": "tsx scripts/generate-slock-cli-guide.ts",
39
+ "check:slock-cli-guide-fresh": "pnpm generate:slock-cli-guide && git diff --exit-code ../../manual/agent-knowledge/raft-cli-overview.md",
40
+ "release:patch": "npm version patch --no-git-tag-version && cd ../.. && pnpm install --lockfile-only && git add packages/daemon/package.json pnpm-lock.yaml && git commit -m \"chore: bump @botiverse/raft-daemon to v$(node -p \"require('./packages/daemon/package.json').version\")\" && git tag daemon-v$(node -p \"require('./packages/daemon/package.json').version\") && git push && git push --tags",
41
+ "release:minor": "npm version minor --no-git-tag-version && cd ../.. && pnpm install --lockfile-only && git add packages/daemon/package.json pnpm-lock.yaml && git commit -m \"chore: bump @botiverse/raft-daemon to v$(node -p \"require('./packages/daemon/package.json').version\")\" && git tag daemon-v$(node -p \"require('./packages/daemon/package.json').version\") && git push && git push --tags",
42
+ "release:major": "npm version major --no-git-tag-version && cd ../.. && pnpm install --lockfile-only && git add packages/daemon/package.json pnpm-lock.yaml && git commit -m \"chore: bump @botiverse/raft-daemon to v$(node -p \"require('./packages/daemon/package.json').version\")\" && git tag daemon-v$(node -p \"require('./packages/daemon/package.json').version\") && git push && git push --tags",
43
+ "release:alpha": "npm version prerelease --preid=alpha --no-git-tag-version && cd ../.. && pnpm install --lockfile-only && git add packages/daemon/package.json pnpm-lock.yaml && git commit -m \"chore: bump @botiverse/raft-daemon to v$(node -p \"require('./packages/daemon/package.json').version\")\" && git tag daemon-v$(node -p \"require('./packages/daemon/package.json').version\") && git push && git push --tags"
29
44
  },
30
45
  "dependencies": {
31
46
  "@earendil-works/pi-ai": "0.79.1",
@@ -37,5 +52,13 @@
37
52
  "undici": "^7.24.7",
38
53
  "ws": "^8.20.0",
39
54
  "zod": "^4.3.6"
55
+ },
56
+ "devDependencies": {
57
+ "@botiverse/raft": "workspace:*",
58
+ "@slock-ai/shared": "workspace:*",
59
+ "@types/node": "^25.5.0",
60
+ "@types/ws": "^8.18.1",
61
+ "tsup": "^8.5.1",
62
+ "typescript": "^5.9.3"
40
63
  }
41
64
  }