test(skills): use bundle staging contract

This commit is contained in:
Jinwoo-H
2026-08-12 02:05:58 -04:00
parent c1b37a14e7
commit b9875b31ea
+4 -3
View File
@@ -156,13 +156,14 @@ async function publish(
throw new Error('staging skill source was not discovered')
}
const preview = await page.evaluate(
({ skillId, cwd, packageId }) =>
({ skillId, bundleName, cwd, packageId }) =>
window.api.skills.prepareShare({
skillId,
skillIds: [skillId],
bundleName,
target: { cwd },
...(packageId ? { packageId } : {})
}),
{ skillId: skill.id, cwd, packageId }
{ skillId: skill.id, bundleName: SKILL_NAME, cwd, packageId }
)
onPrepared?.(preview)
const operation = await page.evaluate(