MCPcopy
hub / github.com/codeaashu/claude-code / extractUrlScheme

Function extractUrlScheme

src/tools/SkillTool/SkillTool.ts:949–955  ·  view source on GitHub ↗

* Extract URL scheme for telemetry. Defaults to 'gs' for unrecognized schemes * since the AKI backend is the only production path and the loader throws on * unknown schemes before we reach telemetry anyway.

(url: string)

Source from the content-addressed store, hash-verified

947 * unknown schemes before we reach telemetry anyway.
948 */
949function extractUrlScheme(url: string): 'gs' | 'http' | 'https' | 's3' {
950 if (url.startsWith('gs://')) return 'gs'
951 if (url.startsWith('https://')) return 'https'
952 if (url.startsWith('http://')) return 'http'
953 if (url.startsWith('s3://')) return 's3'
954 return 'gs'
955}
956
957/**
958 * Load a remote canonical skill and inject its SKILL.md content into the

Callers 1

executeRemoteSkillFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected