Client always merges Exact turbo|raw steps/cfg/sigma before Generate so sparse LLM omissions and leftover SD 20/7 cannot stick; Ollama park/warm skip no-op /api/ps round-trips when the chat model is already unloaded or resident. Co-authored-by: Cursor <cursoragent@cursor.com>
31 lines
964 B
JavaScript
31 lines
964 B
JavaScript
import { attachApi } from './api.js';
|
|
import { attachPatch, setPatchKeys } from './patch.js';
|
|
import { attachPersist } from './persist.js';
|
|
import { attachSession } from './session.js';
|
|
import { attachContext } from './context.js';
|
|
import { attachActivity } from './activity.js';
|
|
import { attachKreaProfile } from './kreaProfile.js';
|
|
|
|
window.SA = window.SA || {};
|
|
attachApi(window.SA);
|
|
attachPatch(window.SA);
|
|
attachPersist(window.SA);
|
|
attachSession(window.SA);
|
|
attachContext(window.SA);
|
|
attachActivity(window.SA);
|
|
attachKreaProfile(window.SA);
|
|
|
|
/** Called from app after AssistentGetConfig — single source: Config/_base/patch-keys.json */
|
|
window.SA.applyConfigPatchKeys = function (config) {
|
|
const keys = config?.patch_keys;
|
|
if (Array.isArray(keys) && keys.length) {
|
|
setPatchKeys(keys);
|
|
window.SA.PATCH_KEYS = keys;
|
|
}
|
|
};
|
|
|
|
import './app.js';
|
|
import { attachTraining } from './training.js';
|
|
|
|
attachTraining(window.SA);
|