Ship Assistent 0.8.1: split modules and shared+personal vector memory.
Personal RAG never leaks into the shared store; retrieve merges shared plus the persona chain, with personal overwrite on kind+key. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* Swarm Assistent — promise wrapper around SwarmUI's genericRequest.
|
||||
* Loaded before assistent.js.
|
||||
*/
|
||||
window.SA = window.SA || {};
|
||||
|
||||
SA.request = function (name, body) {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (typeof genericRequest !== 'function') {
|
||||
reject(new Error('genericRequest unavailable'));
|
||||
return;
|
||||
}
|
||||
genericRequest(
|
||||
name,
|
||||
body || {},
|
||||
(data) => {
|
||||
if (data && data.error) {
|
||||
reject(new Error(String(data.error)));
|
||||
} else {
|
||||
resolve(data);
|
||||
}
|
||||
},
|
||||
0,
|
||||
(err) => reject(err instanceof Error ? err : new Error(String(err || 'request failed'))),
|
||||
);
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user