mirror of
https://github.com/iflytek/skillhub.git
synced 2026-11-27 23:58:51 +00:00
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
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>
16 lines
816 B
JavaScript
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();
|
|
}
|