Repository navigation
refactor(packs): consume acp-kernel 0.0.66 pack API - #402
Closed
ranxianglei wants to merge 1 commit into
Closed
ranxianglei wants to merge 1 commit into
ranxianglei wants to merge 1 commit into
Conversation
…acks Fixes #401 - src/packs/* deleted (229 lines): types/sanitize/lean/builtin/dir all live in the kernel now (acp-kernel #259/#260, v0.0.66) - src/prompt-pack.ts rewritten on kernel exports; external surface (packResolver/resolveActivePack/mergeSurface/readToolSurfaceWithPacks) unchanged - pi-specific surface (PiPromptSections tri-state, tool extras, delegatePrompt) read from surface.adapters.pi and sanitized adapter-side; kernel treats it as opaque data - lean assertions moved to kernel leanPack.adapters.pi (aligned recall rules from #399/#400) - acp-kernel pinned 0.0.65 -> 0.0.66 (exact) - 792 tests: 789 pass / 0 fail / 3 skipped (pre-existing); typecheck+build green
Contributor
📦 Built Extension ArtifactBranch: Option A — Install from npm PR tag (recommended)pi install npm:billion-context-pi@pr-402Each push to this PR publishes a new version under the Option B — Download artifact
tar xzf billion-context-pi-pr402.tgz
pi install ./packageThis comment is automatically updated on each push. |
Owner
Author
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.
Fixes #401
What
Migrates the adapter onto the kernel's pack layer so the mechanism has one source of truth (matching billion-context #729/#730, which already consumes the kernel API).
src/packs/{types,sanitize,lean,builtin,dir}.tsdeleted — replaced by acp-kernel 0.0.66 exports (Pack/PackSource/PackResolver,sanitizePackSurface, builtin registry withdefault+lean,createDirPackSource,defaultPackSources)src/prompt-pack.tsrewritten on kernel exports; consumers unchanged (mergeSurface/readToolSurfaceWithPacks/resolveActivePack;src/index.tscall sites passPackinstead ofpack.surface)surface.adapters.pi— opaque to the kernel, sanitized adapter-side (piAdapterSurface).pi/acp/packs> user~/.pi/acp/packs> builtin; filename-is-identity semantics from the kernelleanPack.adapters.pi, including the aligned recall rules (Post-compress search bounce: lean pack promotes search_context to routine recall #399/fix(packs): lean recall rules aligned with pre-lean semantics #400)acp-kernelexact pin bumped 0.0.65 → 0.0.66Verification
npm run typecheckclean ·npm test789 pass / 0 fail / 3 skipped (skips pre-existing) ·npm run buildgreenconfig.test.tsdelegate tests are env-sensitive inside pi sessions (PI_ACP_DELEGATE_DEPTH) — pass with a clean env, unrelated to this change