MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / asStringArray

Function asStringArray

src/skills/loader.ts:180–185  ·  view source on GitHub ↗
(v: unknown)

Source from the content-addressed store, hash-verified

178}
179
180function asStringArray(v: unknown): string[] | undefined {
181 if (!v) return undefined;
182 if (Array.isArray(v)) return v.length ? v.map(String) : undefined;
183 if (typeof v === 'string' && v.trim()) return [v];
184 return undefined;
185}
186
187function stripQuotes(s: string): string {
188 if ((s.startsWith('"') && s.endsWith('"')) || (s.startsWith("'") && s.endsWith("'"))) {

Callers 1

parseSkillFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected