skillhub/plugins/dsh/test/integration/receipt-disclosure.mjs
XiaoSeS 3560679793
Some checks failed
Deploy Docs / build (push) Has been cancelled
Security / Dependency Review (push) Has been cancelled
Security / CodeQL (java-kotlin) (push) Has been cancelled
Security / CodeQL (javascript-typescript) (push) Has been cancelled
Security / CodeQL (python) (push) Has been cancelled
Deploy Docs / Deploy (push) Has been cancelled
feat(dsh): add native SkillHub plugin for DeepSeek Harness (#956)
Add the native SkillHub plugin for DeepSeek Harness with a scoped skill center, conversation search/install tools, exact-version installation and protected lifecycle management. Prepare the independently versioned 0.1.0 npm candidate with an empty default Registry and documented compatibility limits.

Keep formal specifications and executable regression tests; remove archived development screenshots and runtime reports from the final tree. Review fixes cover independent scopes, installed references, pre-staging recovery and idempotent discovery.

Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
2026-10-16 19:22:26 +08:00

16 lines
816 B
JavaScript

/** Reveal a successful historical receipt through its real disclosure controls. */
export async function revealReceipt(locator) {
await locator.waitFor({ state: 'attached' });
const ancestors = await locator.locator('xpath=ancestor::details').all();
for (const ancestor of ancestors) {
if (await ancestor.getAttribute('open') === null) await ancestor.locator(':scope > summary').click();
}
await locator.waitFor({ state: 'visible' });
}
/** Open the compact install receipt without changing its operation or query state. */
export async function expandInstallRecord(container) {
const record = container.locator('details.astron-sh-install-record');
await record.waitFor({ state: 'attached' });
if (await record.getAttribute('open') === null) await record.locator(':scope > summary').click();
}