20 references to AspireSkillsBundleLayout
aspire (20)
Agents\AspireSkills\AspireSkillsBundleProvider.cs (10)
116
var manifestPath = Path.Combine(bundleDirectory.FullName,
AspireSkillsBundleLayout
.ManifestFileName);
209
if (installExcludedRelativePaths.Contains(
AspireSkillsBundleLayout
.SkillFileName, StringComparer.OrdinalIgnoreCase))
241
hasSkillFile |= string.Equals(validatedFile.RelativePath,
AspireSkillsBundleLayout
.SkillFileName, StringComparison.Ordinal);
276
var fullPath = Path.Combine(bundleDirectory.FullName,
AspireSkillsBundleLayout
.SkillsDirectoryName, skillName, relativePath);
316
if (string.Equals(relativePath,
AspireSkillsBundleLayout
.SkillFileName, StringComparison.Ordinal))
574
var rootManifestPath = Path.Combine(extractionDirectory,
AspireSkillsBundleLayout
.ManifestFileName);
581
var packageManifestPath = Path.Combine(packageDirectory,
AspireSkillsBundleLayout
.ManifestFileName);
589
.Where(directory => File.Exists(Path.Combine(directory,
AspireSkillsBundleLayout
.ManifestFileName)))
599
throw new InvalidOperationException($"Downloaded Aspire skills package contains multiple {
AspireSkillsBundleLayout
.ManifestFileName} files.");
602
throw new InvalidOperationException($"Downloaded Aspire skills package does not contain {
AspireSkillsBundleLayout
.ManifestFileName}.");
Agents\AspireSkills\AspireSkillsInstaller.cs (4)
1067
return Directory.Exists(Path.Combine(versionCacheDirectory,
AspireSkillsBundleLayout
.SkillsDirectoryName)) ||
1068
File.Exists(Path.Combine(versionCacheDirectory,
AspireSkillsBundleLayout
.ManifestFileName)) ||
1079
TryDeleteDirectory(Path.Combine(versionCacheDirectory,
AspireSkillsBundleLayout
.SkillsDirectoryName));
1080
TryDeleteFile(Path.Combine(versionCacheDirectory,
AspireSkillsBundleLayout
.ManifestFileName));
Agents\Hooks\AgentTelemetryCatalog.cs (4)
63
if (path.StartsWith(
AspireSkillsBundleLayout
.ReferencesDirectoryName + "/", StringComparison.Ordinal))
115
if (parts is not ([
AspireSkillsBundleLayout
.ManifestFileName] or [_,
AspireSkillsBundleLayout
.ManifestFileName]))
128
return manifest ?? throw new InvalidDataException($"The bundled skills archive is missing {
AspireSkillsBundleLayout
.ManifestFileName}.");
Agents\Hooks\AgentTelemetryHook.cs (2)
144
if (!segments[i].Equals(
AspireSkillsBundleLayout
.SkillsDirectoryName, StringComparison.OrdinalIgnoreCase))
152
if (segments[^1].Equals(
AspireSkillsBundleLayout
.SkillFileName, StringComparison.OrdinalIgnoreCase))