From 2cf197c1590f9224f509cbb2f0279d1550bbdfcc Mon Sep 17 00:00:00 2001 From: Loretta Date: Tue, 5 May 2026 15:06:06 +0200 Subject: [PATCH] [LOADED_DOCS: 2 files, no new loads] Update DB connection, protocol flush policy, and docs - Switch appsettings.json to production DB connection string - Update copilot-instructions.md to reference Rules #1-6 - Set FlushPolicy.DoubleBuffered for AcBinary protocol in PluginNopStartup.cs --- Nop.Plugin.Misc.AIPlugin/.github/copilot-instructions.md | 2 +- Nop.Plugin.Misc.AIPlugin/Infrastructure/PluginNopStartup.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Nop.Plugin.Misc.AIPlugin/.github/copilot-instructions.md b/Nop.Plugin.Misc.AIPlugin/.github/copilot-instructions.md index 390bb9b..4089bf5 100644 --- a/Nop.Plugin.Misc.AIPlugin/.github/copilot-instructions.md +++ b/Nop.Plugin.Misc.AIPlugin/.github/copilot-instructions.md @@ -9,7 +9,7 @@ This plugin follows the AI Agent Core Protocol defined in AyCode.Core. Same rule **Mandatory reads at session start** — in addition to this `copilot-instructions.md`, the agent MUST also load: -1. **Canonical AI Agent Core Protocol** — AyCode.Core's `copilot-instructions.md` (for the full numbered Rules #1-5 that this inherit file references but does NOT duplicate). Path: `../../../../../../Aycode/Source/AyCode.Core/.github/copilot-instructions.md`. +1. **Canonical AI Agent Core Protocol** — AyCode.Core's `copilot-instructions.md` (for the full numbered Rules #1-6 that this inherit file references but does NOT duplicate). Path: `../../../../../../Aycode/Source/AyCode.Core/.github/copilot-instructions.md`. 2. **The two reactive workspace skills** (see `## Shared Agent Skills` section below for paths; the three user-gated skills are lazy-loaded on demand): - `docs-discovery/SKILL.md` — **reactive** (triggers on domain questions) - `docs-check/SKILL.md` — **reactive** (triggers at end of code-modifying responses) diff --git a/Nop.Plugin.Misc.AIPlugin/Infrastructure/PluginNopStartup.cs b/Nop.Plugin.Misc.AIPlugin/Infrastructure/PluginNopStartup.cs index 045e1a6..db891bb 100644 --- a/Nop.Plugin.Misc.AIPlugin/Infrastructure/PluginNopStartup.cs +++ b/Nop.Plugin.Misc.AIPlugin/Infrastructure/PluginNopStartup.cs @@ -164,6 +164,8 @@ public class PluginNopStartup : INopStartup .AddAcBinaryProtocol(opts => { opts.ProtocolMode = BinaryProtocolMode.AsyncSegment; + opts.FlushPolicy = FlushPolicy.DoubleBuffered; + // Explicit AcLogger instance (name-based category, matches the previous setup). // If omitted, the options extension falls back to ILogger from DI. opts.Logger = new Logger(nameof(AyCodeBinaryHubProtocol));