Files
my-pi/pi-compaction/UPSTREAM.md
T
云服务部-叶林立 ff1e7400da feat(compaction): support SubAPI native remote compaction
- support sub-api/openai-responses through the public Responses endpoint
- preserve explicit Authorization and support header-only authentication
- retain Codex JWT requirements and native compaction failure fallback
- restore SubAPI checkpoints and preserve portable model-switching summaries
- add provider, authentication and checkpoint lifecycle regression tests
- document compatibility requirements and the Sub2API protocol reference
2026-09-07 16:25:48 +08:00

32 lines
2.0 KiB
Markdown

# Upstream sources
This package is maintained directly in `my-pi` and combines two separately licensed sources with a new local Context Authority.
## pi-condense reference
- Official repository: https://github.com/jjuraszek/pi-condense
- Snapshot: `59c95110aacd8131db71e21296765dd80b72fae8`
- Tag/version: `v2.9.1`
- Used as a behavioral and summarizer-reliability reference. The new segment/index/runtime implementation is local and intentionally does not retain legacy formats.
- License: `LICENSES/pi-condense-MIT.txt`
## Pi Codex compaction source
- Official repository: https://github.com/ogulcancelik/pi-extensions
- Package path: `packages/pi-codex-compaction/`
- Snapshot: `c4d6ca8fb484ba51684296ba8b4715f8c7b3ac91`
- Version at snapshot: `0.1.4`
- Imported source: remote compaction protocol, Response API conversion, retention helpers, retry parsing, and request sanitization in `src/native-compaction.ts`.
- Local changes: unified checkpoint kind/version, removed raw-branch effective-input construction and legacy checkpoint parsing, exported the shared message projection, made retained-user budget configurable, and renamed the client user agent.
- License: `LICENSES/pi-codex-compaction-MIT.txt`
No npm tarball, npm cache, `node_modules`, build output, or nested Git metadata is used as an import source.
## Sub2API protocol reference
- Official repository: https://github.com/Wei-Shaw/sub2api
- Reference commit: `ab99d56e9626e6cd731592dae8553c9758a0efa2`
- Protocol evidence: `backend/internal/service/openai_compact_body_signal.go` identifies native remote compaction v2 as Responses plus `stream: true` and `compaction_trigger`, and handles the Codex beta feature.
- The local `src/native-provider.ts` adapter is independently implemented against that protocol. No Sub2API source was imported; the existing Codex serializer, stream parser and checkpoint format are reused.
- This reference describes upstream capability, not a guarantee about any particular deployment, model or account. The separate Responses compact endpoint is not used by this adapter.