skillhub/plugins/dsh/scripts/core-registry-client.mjs
dongmucat 3bad5d54e5 refactor(dsh): keep registry authentication inside the plugin
Signed-off-by: dongmucat <1127093059@qq.com>
2026-11-23 09:36:22 +08:00

9 lines
469 B
JavaScript

import { SkillHubClient as RegistryClient } from '../../../cli/src/clients/skillhub-client.ts';
import { registryCredentials, registryFetch } from './core-registry-transport.ts';
export * from '../../../cli/src/clients/skillhub-client.ts';
export class SkillHubClient extends RegistryClient {
constructor(registry, token, fetchImpl = fetch) {
super(registry, token, registryFetch(registry, token ?? registryCredentials.getStore()?.(registry), fetchImpl));
}
}