Ship Assistent 0.11.9: esbuild bundle and patch-keys manifest.
Replace split Assets JS with a built bundle and aligned C#/config so SwarmUI loads one script and patch apply stays consistent; drop legacy terse persona and memory seed. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+19
-1
@@ -747,7 +747,25 @@ public sealed partial class AssistentMemory : IDisposable
|
||||
EnsureOpen();
|
||||
Dictionary<long, int> ftsRanks = FtsRowRanks(ftsMatch, Math.Max(40, options.TopK * 4));
|
||||
using SqliteCommand cmd = _conn.CreateCommand();
|
||||
cmd.CommandText = "SELECT id, kind, key, text, source, embedding, persona FROM memories";
|
||||
List<string> personaKeys = rank.Keys.ToList();
|
||||
StringBuilder sql = new("SELECT id, kind, key, text, source, embedding, persona FROM memories WHERE persona IN (");
|
||||
for (int i = 0; i < personaKeys.Count; i++)
|
||||
{
|
||||
if (i > 0)
|
||||
{
|
||||
sql.Append(',');
|
||||
}
|
||||
string pName = "$p" + i;
|
||||
sql.Append(pName);
|
||||
cmd.Parameters.AddWithValue(pName, personaKeys[i]);
|
||||
}
|
||||
sql.Append(')');
|
||||
if (kindFilter is not null)
|
||||
{
|
||||
sql.Append(" AND kind = $kind");
|
||||
cmd.Parameters.AddWithValue("$kind", kindFilter);
|
||||
}
|
||||
cmd.CommandText = sql.ToString();
|
||||
using SqliteDataReader reader = cmd.ExecuteReader();
|
||||
while (reader.Read())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user