feat(core): add pi event adapter for 0.41 ingest - #1
Closed
ZeR020 wants to merge 2 commits into
Closed
Conversation
ZeR020
force-pushed
the
stack/2-pi-hooks-adapter
branch
from
August 17, 2026 12:46
d419300 to
ad96919
Compare
This was referenced Aug 17, 2026
ZeR020
force-pushed
the
stack/1-shared-spool-memory
branch
from
August 23, 2026 15:28
cfc0654 to
d21ae92
Compare
ZeR020
force-pushed
the
stack/2-pi-hooks-adapter
branch
from
August 23, 2026 15:33
ad96919 to
280dc41
Compare
ZeR020
force-pushed
the
stack/1-shared-spool-memory
branch
2 times, most recently
from
August 25, 2026 17:54
f8c95d1 to
55531d7
Compare
Map pi extension events to AdapterEvent envelopes with source "pi" and deterministic ids so later stacked routes can call ingestRawEvents without a parallel writer.
ZeR020
force-pushed
the
stack/2-pi-hooks-adapter
branch
from
August 29, 2026 07:40
280dc41 to
4e8d194
Compare
Owner
Author
|
Superseded by kunickiaj#1546 — layer 1 (kunickiaj#1473) merged upstream, so this layer was rebased onto upstream main and retargeted there. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second stacked PR for the pi integration (kunickiaj#1430). Depends on kunickiaj#1473 (
stack/1-shared-spool-memory).This PR is opened on the fork because GitHub cannot use
kunickiaj:stack/1-shared-spool-memoryas a base (that branch lives on ZeR020 only). Diff vs layer 1 is the pi adapter only.Why
Pi events need a core adapter that produces the same envelope shape
ingestRawEventsalready accepts, withsource: "pi"explicit and deterministic ids so HTTP/CLI retries do not duplicate rows.What
packages/core/src/pi-hooks.ts: map session/prompt/tool events; compaction is flush-onlysession_stream_id/session_idaliases required by 0.41 ingestingestRawEventspersists sourcepiand creates zero opencode rowsTest plan
vitest run packages/core/src/pi-hooks.test.ts— 40/40 passedStacked on: kunickiaj#1473
Next: viewer
/api/pi-hooksalias + memory-tool routesRelated: kunickiaj#1430, kunickiaj#1429, kunickiaj#1473