kongbrain 0.4.3 → 0.4.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/.github/workflows/ci.yml +25 -18
- package/.github/workflows/pr-check.yml +4 -4
- package/SKILL.md +1 -1
- package/package.json +1 -1
package/.github/workflows/ci.yml
CHANGED
|
@@ -10,33 +10,40 @@ jobs:
|
|
|
10
10
|
test:
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
|
|
13
|
-
services:
|
|
14
|
-
surrealdb:
|
|
15
|
-
image: surrealdb/surrealdb:latest
|
|
16
|
-
ports:
|
|
17
|
-
- 8000:8000
|
|
18
|
-
options: >-
|
|
19
|
-
--health-cmd "curl -sf http://localhost:8000/health || exit 1"
|
|
20
|
-
--health-interval 5s
|
|
21
|
-
--health-timeout 5s
|
|
22
|
-
--health-retries 10
|
|
23
|
-
env:
|
|
24
|
-
SURREAL_USER: root
|
|
25
|
-
SURREAL_PASS: root
|
|
26
|
-
|
|
27
13
|
steps:
|
|
28
|
-
- uses: actions/checkout@
|
|
14
|
+
- uses: actions/checkout@v5
|
|
29
15
|
|
|
30
|
-
- uses: actions/setup-node@
|
|
16
|
+
- uses: actions/setup-node@v5
|
|
31
17
|
with:
|
|
32
|
-
node-version:
|
|
18
|
+
node-version: 22
|
|
33
19
|
cache: npm
|
|
34
20
|
|
|
35
|
-
-
|
|
21
|
+
- name: Start SurrealDB
|
|
22
|
+
run: |
|
|
23
|
+
docker run -d --name surrealdb -p 8000:8000 \
|
|
24
|
+
surrealdb/surrealdb:latest start \
|
|
25
|
+
--user root --pass root --bind 0.0.0.0:8000 memory
|
|
26
|
+
# Wait for it to be ready (up to 60s)
|
|
27
|
+
for i in $(seq 1 60); do
|
|
28
|
+
if curl -sf http://localhost:8000/health > /dev/null 2>&1; then
|
|
29
|
+
echo "SurrealDB ready after ${i}s"
|
|
30
|
+
break
|
|
31
|
+
fi
|
|
32
|
+
sleep 1
|
|
33
|
+
done
|
|
34
|
+
# Verify it's actually responding
|
|
35
|
+
curl -sf http://localhost:8000/health || (echo "SurrealDB failed to start" && exit 1)
|
|
36
|
+
|
|
37
|
+
- run: npm install --ignore-scripts --legacy-peer-deps
|
|
36
38
|
|
|
37
39
|
- name: Run unit tests
|
|
38
40
|
run: npx vitest run --exclude test/integration.test.ts
|
|
39
41
|
|
|
42
|
+
- name: Verify SurrealDB is running
|
|
43
|
+
run: |
|
|
44
|
+
docker logs surrealdb 2>&1 | tail -20
|
|
45
|
+
curl -sf http://localhost:8000/health && echo "Health OK" || echo "Health FAILED"
|
|
46
|
+
|
|
40
47
|
- name: Run integration tests
|
|
41
48
|
run: npx vitest run test/integration.test.ts
|
|
42
49
|
env:
|
|
@@ -6,11 +6,11 @@ jobs:
|
|
|
6
6
|
lint:
|
|
7
7
|
runs-on: ubuntu-latest
|
|
8
8
|
steps:
|
|
9
|
-
- uses: actions/checkout@
|
|
10
|
-
- uses: actions/setup-node@
|
|
9
|
+
- uses: actions/checkout@v5
|
|
10
|
+
- uses: actions/setup-node@v5
|
|
11
11
|
with:
|
|
12
|
-
node-version:
|
|
12
|
+
node-version: 22
|
|
13
13
|
cache: npm
|
|
14
|
-
- run: npm
|
|
14
|
+
- run: npm install --ignore-scripts --legacy-peer-deps
|
|
15
15
|
- run: npx tsc --noEmit || true # Type check (peer deps may be missing)
|
|
16
16
|
- run: npx vitest run --exclude test/integration.test.ts
|
package/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kongbrain
|
|
3
3
|
description: Graph-backed persistent memory engine for OpenClaw. Replaces the default context window with SurrealDB + vector embeddings that learn across sessions.
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.4
|
|
5
5
|
homepage: https://github.com/42U/kongbrain
|
|
6
6
|
metadata:
|
|
7
7
|
openclaw:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kongbrain",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "Graph-backed persistent memory engine for OpenClaw. Replaces the default context window with SurrealDB + vector embeddings that learn across sessions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|