@geravant/sinain 1.9.0 → 1.10.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/.env.example +17 -14
- package/HEARTBEAT.md +1 -1
- package/README.md +4 -7
- package/index.ts +1 -3
- package/package.json +1 -1
- package/sense_client/ocr.py +6 -3
- package/sinain-agent/CLAUDE.md +50 -1
- package/sinain-agent/run.sh +18 -8
- package/sinain-core/src/agent/analyzer.ts +31 -56
- package/sinain-core/src/agent/loop.ts +11 -10
- package/sinain-core/src/config.ts +17 -14
- package/sinain-core/src/index.ts +297 -26
- package/sinain-core/src/learning/local-curation.ts +373 -0
- package/sinain-core/src/overlay/commands.ts +9 -0
- package/sinain-core/src/overlay/ws-handler.ts +3 -0
- package/sinain-core/src/server.ts +197 -0
- package/sinain-core/src/types.ts +13 -10
- package/sinain-knowledge/curation/engine.ts +0 -17
- package/sinain-knowledge/protocol/heartbeat.md +1 -1
- package/sinain-mcp-server/index.ts +38 -24
- package/sinain-memory/__pycache__/common.cpython-312.pyc +0 -0
- package/sinain-memory/__pycache__/knowledge_integrator.cpython-312.pyc +0 -0
- package/sinain-memory/__pycache__/session_distiller.cpython-312.pyc +0 -0
- package/sinain-memory/__pycache__/triplestore.cpython-312.pyc +0 -0
- package/sinain-memory/eval/retrieval_benchmark.jsonl +12 -0
- package/sinain-memory/eval/retrieval_evaluator.py +186 -0
- package/sinain-memory/graph_query.py +34 -1
- package/sinain-memory/knowledge_integrator.py +54 -0
- package/sinain-memory/triplestore.py +76 -5
- package/sinain-agent/.env.example +0 -23
- package/sinain-memory/git_backup.sh +0 -19
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# Phase 1: Git backup — commit and push any uncommitted changes in the workspace.
|
|
3
|
-
# Runs from the workspace root. Exits 0 on success or nothing to commit, 1 on push failure.
|
|
4
|
-
|
|
5
|
-
set -euo pipefail
|
|
6
|
-
|
|
7
|
-
changes=$(git status --porcelain 2>/dev/null || true)
|
|
8
|
-
|
|
9
|
-
if [ -z "$changes" ]; then
|
|
10
|
-
echo "nothing to commit"
|
|
11
|
-
exit 0
|
|
12
|
-
fi
|
|
13
|
-
|
|
14
|
-
git add -A
|
|
15
|
-
git commit -m "auto: heartbeat $(date -u +%Y-%m-%dT%H:%M:%SZ)"
|
|
16
|
-
git push origin main
|
|
17
|
-
|
|
18
|
-
# Output the commit hash
|
|
19
|
-
git rev-parse --short HEAD
|