feat: add per-project native server and SSE command streaming
build / jvm (push) Waiting to run
build / native (macos-15, macos-arm64) (push) Waiting to run
build / native (ubuntu-24.04, linux-x86_64) (push) Waiting to run
build / native (windows-2025, windows-x86_64) (push) Waiting to run
Test / Tests and coverage
Intrepid/AI Engineering/pipeline/head This commit looks good

Keep Spring in a persistent project server with lightweight clients, managed start/stop, bounded SSE subscriptions, cursor recovery and durable mutation outcomes. Preserve SQLite authority and transaction limits, and document reproducible native measurements.

Validation: 269 tests, 11 pipeline scenarios, full native/SSE smoke, native package verification and 17 installer tests passed. Implements WRK-000E / DEC-0001 / DEC-0002.
This commit is contained in:
2026-11-22 23:08:47 +00:00
parent 20bb4f02bc
commit 9a555cb3c6
64 changed files with 5062 additions and 29 deletions
+6
View File
@@ -52,11 +52,15 @@ printf '%s\n' "$PWD" "$JAVA_HOME" "$GRAALVM_HOME" "$@" >> "$FIXTURE_LOG"
[[ "${FIXTURE_BUILD_EXIT:-0}" == 0 ]] || exit "$FIXTURE_BUILD_EXIT"
[[ "${FIXTURE_MISSING_BINARY:-0}" == 0 ]] || exit 0
mkdir -p build/native/package
mkdir -p build/generated/serverIdentity
printf '%064d\\n' 0 > build/generated/serverIdentity/aie-build.txt
cat > build/native/package/ai-engineering <<'EOF'
#!/bin/bash
case "${1:-}" in
--version) echo "ai-engineering 0.1.0" ;;
init) mkdir -p .ai-engineering; touch .ai-engineering/aie.db ;;
server) printf '{"state":"RUNNING","server":{"protocol":1,"build":"%064d"}}\\n' 0 ;;
work) [[ "${2:-}" != show ]] || echo '{"id":"WRK-0001"}' ;;
*) echo "fixture CLI" ;;
esac
exit "${FIXTURE_BINARY_EXIT:-0}"
@@ -69,6 +73,8 @@ EOF
chmod +x build/native/package/sqlite3
if [[ "${FIXTURE_MISSING_LIBRARY:-0}" == 0 ]]; then echo "fixture library" > build/native/package/libsqlitejdbc.so; fi
python3 scripts/native-package-manifest.py build/native/package
# This installer fixture models the earlier JSON-only server package, without real sockets.
python3 -c 'import json; from pathlib import Path; p=Path("build/native/package/aie-package.json"); m=json.loads(p.read_text()); m.pop("localServerEvents",None); p.write_text(json.dumps(m))'
if [[ "${FIXTURE_CORRUPT_PACKAGE:-0}" == 1 ]]; then echo "changed" >> build/native/package/libsqlitejdbc.so; fi
''')