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
+19 -1
View File
@@ -8,7 +8,25 @@ and Git availability are optional. Preserve project instructions outside AIE's b
## Starting or continuing work
Use `ai-engineering` (or its installed alias `aie`). No server or model API is needed.
Use `ai-engineering` (or its installed alias `aie`). A lightweight client starts and
reuses a local Spring server for each project; no separately installed service or
model API is required. `aie start` waits for readiness and `aie stop` drains active
operations. Idle servers stop after 30 minutes by default; use
`aie start --idle-timeout-seconds N` to configure that instance. A normal command
can start the server again. `aie server status` inspects the process; `aie status`
continues to inspect engineering Works. Help, version and initialization are local.
Pending operations use an authenticated SSE event stream, with bounded cursor
reconnection instead of periodic status polling. Immediate results remain JSON.
Input and cancellation use explicit POST requests; losing an event stream does
not cancel or resubmit its job. Request progress goes to stderr; stdout retains
the requested format and exit codes. Pending operations expose a request ID.
`aie server request ID` recovers its
result and `aie server cancel ID` requests cooperative cancellation. An UNKNOWN
outcome after interruption requires inspection of effects before another mutation;
never infer rollback or replay the command automatically. Operational descriptors,
locks and results live privately under `.ai-engineering/.local/server/` and are not
a second authority for Work memory. Preserve them while outcomes need recovery.
1. Run `aie status --format json` and `aie next-actions --format json`.
2. Locate the requested Work, or create one with `aie work create "Title"` after