Files
swarm-assistent/src/main.js
T
Leonid PershinandCursor 1a03c3178f Ship Assistent 0.12.1: training tab, dataset pipeline, and heard RAG.
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>
2026-08-22 14:27:59 +03:00

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);