MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / mapSkillErrorInfo

Function mapSkillErrorInfo

packages/codex-native-api/src/codex_app_client.ts:2909–2919  ·  view source on GitHub ↗
(raw: CodexAppSkillErrorInfo)

Source from the content-addressed store, hash-verified

2907}
2908
2909function mapSkillErrorInfo(raw: CodexAppSkillErrorInfo): ProviderSkillError | null {
2910 const skillPath = normalizeNullableString(raw?.path);
2911 const message = normalizeNullableString(raw?.message);
2912 if (!skillPath || !message) {
2913 return null;
2914 }
2915 return {
2916 path: skillPath,
2917 message,
2918 };
2919}
2920
2921function mapPluginLoadError(raw: CodexAppMarketplaceLoadError): ProviderPluginLoadError | null {
2922 const marketplacePath = normalizeNullableString(raw?.marketplacePath);

Callers

nothing calls this directly

Calls 1

normalizeNullableStringFunction · 0.70

Tested by

no test coverage detected