mirror of
https://github.com/iflytek/skillhub.git
synced 2026-12-01 00:27:21 +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>
14 lines
791 B
TypeScript
14 lines
791 B
TypeScript
import { join } from 'node:path'
|
|
import { openNativeRuntime } from '../../src/integrations/native-runtime'
|
|
import { CliError } from '../../src/shared/errors'
|
|
|
|
const [root, operationId, ownerId] = process.argv.slice(2)
|
|
if (!root || !operationId || !ownerId) throw new Error('Missing native recovery fixture arguments')
|
|
const runtime = await openNativeRuntime({ stateDirectory: join(root, 'operations'), inventoryHome: join(root, 'home') })
|
|
try {
|
|
const result = await runtime.recover(operationId, ownerId, [join(root, 'skills/writer')], async () => {})
|
|
process.stdout.write(JSON.stringify({ outcome: result.outcome }))
|
|
} catch (error) {
|
|
if (!(error instanceof CliError) || error.details.reason !== 'TARGET_BUSY') throw error
|
|
process.stdout.write(JSON.stringify({ outcome: 'busy' }))
|
|
}
|