Install child-friendly replies by default through signed Marketplace delivery

This commit is contained in:
2026-09-28 23:00:54 +08:00
parent efff238a75
commit e70b6eab91
8 changed files with 276 additions and 18 deletions

View File

@@ -375,6 +375,7 @@ describe('Marketplace public Library projection', () => {
it('rebuilds fresh-process installation state from the Package Store current selection', async () => {
const marketplace = {
getCurrentAccountBinding: () => null,
readCatalog: vi.fn(), readDetail: vi.fn(), readLibrary: vi.fn().mockResolvedValue(snapshot),
acquire: vi.fn(), remove: vi.fn(),
};
@@ -400,6 +401,7 @@ describe('Marketplace public Library projection', () => {
it('projects an installed but client-incompatible package without discarding its cached release', async () => {
const marketplace = {
getCurrentAccountBinding: () => null,
readCatalog: vi.fn(), readDetail: vi.fn(), readLibrary: vi.fn().mockResolvedValue(snapshot),
acquire: vi.fn(), remove: vi.fn(),
};
@@ -425,6 +427,7 @@ describe('Marketplace public Library projection', () => {
it.each(['acquire', 'remove'] as const)('returns an authoritative joined snapshot after %s', async (action) => {
const marketplace = {
getCurrentAccountBinding: () => null,
readCatalog: vi.fn(), readDetail: vi.fn(), readLibrary: vi.fn(),
acquire: vi.fn().mockResolvedValue(snapshot), remove: vi.fn().mockResolvedValue(snapshot),
};