MCPcopy Create free account
hub / github.com/error311/FileRise / setWorkspace

Function setWorkspace

public/js/aiChat.js:508–517  ·  view source on GitHub ↗
(nextWorkspace)

Source from the content-addressed store, hash-verified

506 });
507
508 const setWorkspace = (nextWorkspace) => {
509 const next = nextWorkspace && typeof nextWorkspace === 'object' ? nextWorkspace : {};
510 if (sourceEl && typeof next.sourceId !== 'undefined') {
511 sourceEl.value = normalizeSourceId(next.sourceId);
512 }
513 if (rootEl && typeof next.rootPath !== 'undefined') {
514 rootEl.value = normalizeFolderPath(next.rootPath);
515 }
516 updateScopeSummary();
517 };
518
519 let savedRecipes = [];
520 let lastRecipeDraft = null;

Callers 2

runRecipeFunction · 0.85
createChatUiFunction · 0.85

Calls 3

updateScopeSummaryFunction · 0.85
normalizeSourceIdFunction · 0.70
normalizeFolderPathFunction · 0.70

Tested by

no test coverage detected