* 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)
| 947 | * unknown schemes before we reach telemetry anyway. |
| 948 | */ |
| 949 | function 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 |
no outgoing calls
no test coverage detected