diff --git a/.agents/prompts/sdk-diagnose-agent-folder-copy.md b/.agents/prompts/sdk-diagnose-agent-folder-copy.md index 85ad444..e234df9 100644 --- a/.agents/prompts/sdk-diagnose-agent-folder-copy.md +++ b/.agents/prompts/sdk-diagnose-agent-folder-copy.md @@ -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=`. + `-p:AgentPackDestinationFolder=`, 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 + (`/.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 -p:AgentPackDestinationFolder=`). -- 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). diff --git a/.editorconfig b/.editorconfig index 959b462..e6735ee 100644 --- a/.editorconfig +++ b/.editorconfig @@ -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 diff --git a/Directory.Packages.props b/Directory.Packages.props index 1dfce98..22ab8ef 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -7,7 +7,7 @@ 5.9.0 1.68.17 1.0.0-prerelease.54 - 2.0.0-prerelease.28 + 2.0.0 diff --git a/global.json b/global.json index 0961f09..7f367b1 100644 --- a/global.json +++ b/global.json @@ -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" diff --git a/package.json b/package.json index 5f410b9..0617de8 100644 --- a/package.json +++ b/package.json @@ -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",