Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions .agents/prompts/sdk-diagnose-agent-folder-copy.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,27 @@ destination in a consuming repository.
3. Check `EnableAgentFolderInPackage` is not set to `false` anywhere in the build (project file,
`Directory.Build.props`, or command-line `-p:` overrides).
4. Confirm the destination folder: default is `.agents` at the repo root, overridable per-build with
`-p:AgentPackDestinationFolder=<folder>`.
`-p:AgentPackDestinationFolder=<folder>`, and the source defaults to the package-level `.agents`
folder (override with `PurviewAgentFolderSourcePath`).
5. Verify repo-root discovery succeeded: explicit `RepoRoot`, then a nearby `AGENTS.md`, then source-control
root metadata.
6. Re-run the build and confirm the destination folder now contains the copied files (including the
6. If the destination looks stale or incomplete, inspect the change-detection manifest
(`<repo root>/.purview/agent-sync.cache`). It lists the files the SDK believes it already mirrored; a
matching entry with a present destination file means the sync was skipped as up to date. Delete the
manifest (or the affected destination file) to force a fresh copy.
7. Retry notices are demoted to low-importance messages, so a healthy build shows no `MSB3026` warnings.
A copy that still fails after every retry is reported as an error naming the source, destination and
OS error - search the build log for `The Purview SDK could not copy`. Temporarily set
`PurviewAgentFolderCopyRetries` / `PurviewAgentFolderCopyRetryDelayMilliseconds` to retry longer, and
`PurviewSuppressCopyRetryWarnings=false` to see every retry attempt.
8. Re-run the build and confirm the destination folder now contains the copied files (including the
generated `.gitignore` for skill/prompt/agent subfolders).

## Suggested output

- A short root-cause explanation (missing import, disabled flag, wrong destination override, or repo-root
discovery miss).
- A short root-cause explanation (missing import, disabled flag, wrong destination override, repo-root
discovery miss, or a destination held open by another process).
- The exact command used to reproduce/verify the fix (for example
`dotnet build <project> -p:AgentPackDestinationFolder=<folder>`).
- Confirmation that the expected files exist at the resolved destination path.
- Confirmation that the expected files exist at the resolved destination path, plus whether the
manifest skipped the sync (in which case the content was already up to date).
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2638,7 +2638,7 @@ trim_trailing_whitespace = false

# If it's a settings, model, dto, etc file, ignore the 'properties' cannot have arrays
# and other annoying rules - the following section is duplicated
[**/*{ValueObjects,Settings,Options,Model,Models,DTO,Entity,Response,Request}.{cs,vb},]
[**/*{ValueObjects,Settings,Options,Model,Models,DTO,Entity,Response,Request}{.Nav,}.{cs,vb}]
dotnet_diagnostic.CA1002.severity = none
dotnet_diagnostic.CA1024.severity = none
dotnet_diagnostic.CA1056.severity = none
Expand Down
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<RoslynVersion>5.9.0</RoslynVersion>
<TUnitVersion>1.68.17</TUnitVersion>
<PurviewSGFVersion>1.0.0-prerelease.54</PurviewSGFVersion>
<PurviewZodSharpVersion>2.0.0-prerelease.28</PurviewZodSharpVersion>
<PurviewZodSharpVersion>2.0.0</PurviewZodSharpVersion>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Purview.SourceGeneratorFramework" Version="$(PurviewSGFVersion)" />
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"allowPrerelease": false
},
"msbuild-sdks": {
"Purview.BuildSdk": "1.0.0-prerelease.60"
"Purview.BuildSdk": "1.0.0"
},
"test": {
"runner": "Microsoft.Testing.Platform"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "purview-value-objects",
"version": "1.0.0-prerelease.9",
"version": "1.0.0-prerelease.10",
"license": "MIT",
"author": {
"name": "Kieron Lanning",
Expand Down
Loading