Restructure UI with app-level tabs and chat history drawer; add dataset curation, HF import, Modelfile/QLoRA hooks, and link approved samples to the agent immediately via heard vector memory without waiting for fine-tuning. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
653 B
JavaScript
23 lines
653 B
JavaScript
import { attachApi } from './api.js';
|
|
import { attachPatch, setPatchKeys } from './patch.js';
|
|
import { attachPersist } from './persist.js';
|
|
|
|
window.SA = window.SA || {};
|
|
attachApi(window.SA);
|
|
attachPatch(window.SA);
|
|
attachPersist(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);
|