Function bodies 868 total
autoExpandAIPanel function · typescript · L81-L85 (5 LOC)app/src/lib/stores/aiOutput.ts
function autoExpandAIPanel() {
if (!manualOverride) {
uiStore.setCollapsed('aiOutput', false);
}
}autoExpandAIPanel function · typescript · L81-L85 (5 LOC)app/src/lib/stores/aiOutput.ts
function autoExpandAIPanel() {
if (!manualOverride) {
uiStore.setCollapsed('aiOutput', false);
}
}resetAIPanelOverride function · typescript · L88-L90 (3 LOC)app/src/lib/stores/aiOutput.ts
export function resetAIPanelOverride() {
manualOverride = false;
}resetAIPanelOverride function · typescript · L88-L90 (3 LOC)app/src/lib/stores/aiOutput.ts
export function resetAIPanelOverride() {
manualOverride = false;
}resetAIPanelOverride function · typescript · L88-L90 (3 LOC)app/src/lib/stores/aiOutput.ts
export function resetAIPanelOverride() {
manualOverride = false;
}resetAIPanelOverride function · typescript · L88-L90 (3 LOC)app/src/lib/stores/aiOutput.ts
export function resetAIPanelOverride() {
manualOverride = false;
}setAIPanelManualOverride function · typescript · L93-L95 (3 LOC)app/src/lib/stores/aiOutput.ts
export function setAIPanelManualOverride() {
manualOverride = true;
}About: code-quality intelligence by Repobility · https://repobility.com
setAIPanelManualOverride function · typescript · L93-L95 (3 LOC)app/src/lib/stores/aiOutput.ts
export function setAIPanelManualOverride() {
manualOverride = true;
}setAIPanelManualOverride function · typescript · L93-L95 (3 LOC)app/src/lib/stores/aiOutput.ts
export function setAIPanelManualOverride() {
manualOverride = true;
}setAIPanelManualOverride function · typescript · L93-L95 (3 LOC)app/src/lib/stores/aiOutput.ts
export function setAIPanelManualOverride() {
manualOverride = true;
}isManuallyOverridden function · typescript · L98-L100 (3 LOC)app/src/lib/stores/aiOutput.ts
export function isManuallyOverridden(): boolean {
return manualOverride;
}isManuallyOverridden function · typescript · L98-L100 (3 LOC)app/src/lib/stores/aiOutput.ts
export function isManuallyOverridden(): boolean {
return manualOverride;
}isManuallyOverridden function · typescript · L98-L100 (3 LOC)app/src/lib/stores/aiOutput.ts
export function isManuallyOverridden(): boolean {
return manualOverride;
}isManuallyOverridden function · typescript · L98-L100 (3 LOC)app/src/lib/stores/aiOutput.ts
export function isManuallyOverridden(): boolean {
return manualOverride;
}createAIOutputStore function · typescript · L102-L176 (75 LOC)app/src/lib/stores/aiOutput.ts
function createAIOutputStore() {
const { subscribe, set, update } = writable<AIOutputState>(defaultState);
return {
subscribe,
// Set processing state
setProcessing: (isProcessing: boolean) => {
if (isProcessing) {
// Processing triggered: force-expand regardless of manual override
manualOverride = false;
autoExpandAIPanel();
}
// Clear streamLines when starting OR ending processing
update((s) => ({ ...s, isProcessing, error: null, streamLines: isProcessing ? [] : [] }));
},
// Set result from processing
setResult: (result: AIResult) => {
autoExpandAIPanel();
update((s) => ({ ...s, result, isProcessing: false, error: null }));
},
// Set error state
setError: (error: string) =>
update((s) => ({ ...s, error, isProcessing: false })),
// Clear all state
clear: () => set(defaultState),
// Append a streaming output line
appendLine: (line: string) =>
update((s)Repobility · code-quality intelligence · https://repobility.com
createAIOutputStore function · typescript · L102-L176 (75 LOC)app/src/lib/stores/aiOutput.ts
function createAIOutputStore() {
const { subscribe, set, update } = writable<AIOutputState>(defaultState);
return {
subscribe,
// Set processing state
setProcessing: (isProcessing: boolean) => {
if (isProcessing) {
// Processing triggered: force-expand regardless of manual override
manualOverride = false;
autoExpandAIPanel();
}
// Clear streamLines when starting OR ending processing
update((s) => ({ ...s, isProcessing, error: null, streamLines: isProcessing ? [] : [] }));
},
// Set result from processing
setResult: (result: AIResult) => {
autoExpandAIPanel();
update((s) => ({ ...s, result, isProcessing: false, error: null }));
},
// Set error state
setError: (error: string) =>
update((s) => ({ ...s, error, isProcessing: false })),
// Clear all state
clear: () => set(defaultState),
// Append a streaming output line
appendLine: (line: string) =>
update((s)createAIOutputStore function · typescript · L102-L176 (75 LOC)app/src/lib/stores/aiOutput.ts
function createAIOutputStore() {
const { subscribe, set, update } = writable<AIOutputState>(defaultState);
return {
subscribe,
// Set processing state
setProcessing: (isProcessing: boolean) => {
if (isProcessing) {
// Processing triggered: force-expand regardless of manual override
manualOverride = false;
autoExpandAIPanel();
}
// Clear streamLines when starting OR ending processing
update((s) => ({ ...s, isProcessing, error: null, streamLines: isProcessing ? [] : [] }));
},
// Set result from processing
setResult: (result: AIResult) => {
autoExpandAIPanel();
update((s) => ({ ...s, result, isProcessing: false, error: null }));
},
// Set error state
setError: (error: string) =>
update((s) => ({ ...s, error, isProcessing: false })),
// Clear all state
clear: () => set(defaultState),
// Append a streaming output line
appendLine: (line: string) =>
update((s)createAIOutputStore function · typescript · L102-L176 (75 LOC)app/src/lib/stores/aiOutput.ts
function createAIOutputStore() {
const { subscribe, set, update } = writable<AIOutputState>(defaultState);
return {
subscribe,
// Set processing state
setProcessing: (isProcessing: boolean) => {
if (isProcessing) {
// Processing triggered: force-expand regardless of manual override
manualOverride = false;
autoExpandAIPanel();
}
// Clear streamLines when starting OR ending processing
update((s) => ({ ...s, isProcessing, error: null, streamLines: isProcessing ? [] : [] }));
},
// Set result from processing
setResult: (result: AIResult) => {
autoExpandAIPanel();
update((s) => ({ ...s, result, isProcessing: false, error: null }));
},
// Set error state
setError: (error: string) =>
update((s) => ({ ...s, error, isProcessing: false })),
// Clear all state
clear: () => set(defaultState),
// Append a streaming output line
appendLine: (line: string) =>
update((s)checkClaudeAvailability function · typescript · L199-L208 (10 LOC)app/src/lib/stores/aiOutput.ts
export async function checkClaudeAvailability(): Promise<void> {
if (!isTauri()) return;
try {
const invoke = await getInvoke();
const available = await invoke<boolean>('get_mcp_status');
isMcpConnected.set(available);
} catch {
isMcpConnected.set(false);
}
}checkClaudeAvailability function · typescript · L199-L208 (10 LOC)app/src/lib/stores/aiOutput.ts
export async function checkClaudeAvailability(): Promise<void> {
if (!isTauri()) return;
try {
const invoke = await getInvoke();
const available = await invoke<boolean>('get_mcp_status');
isMcpConnected.set(available);
} catch {
isMcpConnected.set(false);
}
}checkClaudeAvailability function · typescript · L199-L208 (10 LOC)app/src/lib/stores/aiOutput.ts
export async function checkClaudeAvailability(): Promise<void> {
if (!isTauri()) return;
try {
const invoke = await getInvoke();
const available = await invoke<boolean>('get_mcp_status');
isMcpConnected.set(available);
} catch {
isMcpConnected.set(false);
}
}checkClaudeAvailability function · typescript · L199-L208 (10 LOC)app/src/lib/stores/aiOutput.ts
export async function checkClaudeAvailability(): Promise<void> {
if (!isTauri()) return;
try {
const invoke = await getInvoke();
const available = await invoke<boolean>('get_mcp_status');
isMcpConnected.set(available);
} catch {
isMcpConnected.set(false);
}
}syncAppState function · typescript · L7-L22 (16 LOC)app/src/lib/stores/appState.ts
export async function syncAppState(options: {
filePath?: string | null;
fileContent?: string | null;
workspacePath?: string | null;
}): Promise<void> {
try {
const invoke = await getInvoke();
await invoke('update_app_state', {
filePath: options.filePath ?? null,
fileContent: options.fileContent ?? null,
workspacePath: options.workspacePath ?? null,
});
} catch (e) {
console.error('Failed to sync app state:', e);
}
}Repobility · MCP-ready · https://repobility.com
syncAppState function · typescript · L7-L22 (16 LOC)app/src/lib/stores/appState.ts
export async function syncAppState(options: {
filePath?: string | null;
fileContent?: string | null;
workspacePath?: string | null;
}): Promise<void> {
try {
const invoke = await getInvoke();
await invoke('update_app_state', {
filePath: options.filePath ?? null,
fileContent: options.fileContent ?? null,
workspacePath: options.workspacePath ?? null,
});
} catch (e) {
console.error('Failed to sync app state:', e);
}
}syncAppState function · typescript · L7-L22 (16 LOC)app/src/lib/stores/appState.ts
export async function syncAppState(options: {
filePath?: string | null;
fileContent?: string | null;
workspacePath?: string | null;
}): Promise<void> {
try {
const invoke = await getInvoke();
await invoke('update_app_state', {
filePath: options.filePath ?? null,
fileContent: options.fileContent ?? null,
workspacePath: options.workspacePath ?? null,
});
} catch (e) {
console.error('Failed to sync app state:', e);
}
}syncAppState function · typescript · L7-L22 (16 LOC)app/src/lib/stores/appState.ts
export async function syncAppState(options: {
filePath?: string | null;
fileContent?: string | null;
workspacePath?: string | null;
}): Promise<void> {
try {
const invoke = await getInvoke();
await invoke('update_app_state', {
filePath: options.filePath ?? null,
fileContent: options.fileContent ?? null,
workspacePath: options.workspacePath ?? null,
});
} catch (e) {
console.error('Failed to sync app state:', e);
}
}createArchiveStore function · typescript · L22-L60 (39 LOC)app/src/lib/stores/archive.ts
function createArchiveStore() {
const { subscribe, update } = writable<ArchiveState>({
notes: [],
loading: false,
filterTag: null,
filterText: '',
});
return {
subscribe,
async load(workspacePath: string) {
update((s) => ({ ...s, loading: true }));
try {
const invoke = await getInvoke();
const notes = await invoke<ProcessedNoteInfo[]>('list_processed_notes', {
workspacePath,
});
update((s) => ({ ...s, notes, loading: false }));
} catch (e) {
console.error('Failed to load archive:', e);
update((s) => ({ ...s, loading: false }));
}
},
setFilterTag(tag: string | null) {
update((s) => ({ ...s, filterTag: tag }));
},
setFilterText(text: string) {
update((s) => ({ ...s, filterText: text }));
},
reset() {
update(() => ({
notes: [],
loading: false,
filterTag: null,
filterText: '',
}));
},
};
}createArchiveStore function · typescript · L22-L60 (39 LOC)app/src/lib/stores/archive.ts
function createArchiveStore() {
const { subscribe, update } = writable<ArchiveState>({
notes: [],
loading: false,
filterTag: null,
filterText: '',
});
return {
subscribe,
async load(workspacePath: string) {
update((s) => ({ ...s, loading: true }));
try {
const invoke = await getInvoke();
const notes = await invoke<ProcessedNoteInfo[]>('list_processed_notes', {
workspacePath,
});
update((s) => ({ ...s, notes, loading: false }));
} catch (e) {
console.error('Failed to load archive:', e);
update((s) => ({ ...s, loading: false }));
}
},
setFilterTag(tag: string | null) {
update((s) => ({ ...s, filterTag: tag }));
},
setFilterText(text: string) {
update((s) => ({ ...s, filterText: text }));
},
reset() {
update(() => ({
notes: [],
loading: false,
filterTag: null,
filterText: '',
}));
},
};
}createArchiveStore function · typescript · L22-L60 (39 LOC)app/src/lib/stores/archive.ts
function createArchiveStore() {
const { subscribe, update } = writable<ArchiveState>({
notes: [],
loading: false,
filterTag: null,
filterText: '',
});
return {
subscribe,
async load(workspacePath: string) {
update((s) => ({ ...s, loading: true }));
try {
const invoke = await getInvoke();
const notes = await invoke<ProcessedNoteInfo[]>('list_processed_notes', {
workspacePath,
});
update((s) => ({ ...s, notes, loading: false }));
} catch (e) {
console.error('Failed to load archive:', e);
update((s) => ({ ...s, loading: false }));
}
},
setFilterTag(tag: string | null) {
update((s) => ({ ...s, filterTag: tag }));
},
setFilterText(text: string) {
update((s) => ({ ...s, filterText: text }));
},
reset() {
update(() => ({
notes: [],
loading: false,
filterTag: null,
filterText: '',
}));
},
};
}createArchiveStore function · typescript · L22-L60 (39 LOC)app/src/lib/stores/archive.ts
function createArchiveStore() {
const { subscribe, update } = writable<ArchiveState>({
notes: [],
loading: false,
filterTag: null,
filterText: '',
});
return {
subscribe,
async load(workspacePath: string) {
update((s) => ({ ...s, loading: true }));
try {
const invoke = await getInvoke();
const notes = await invoke<ProcessedNoteInfo[]>('list_processed_notes', {
workspacePath,
});
update((s) => ({ ...s, notes, loading: false }));
} catch (e) {
console.error('Failed to load archive:', e);
update((s) => ({ ...s, loading: false }));
}
},
setFilterTag(tag: string | null) {
update((s) => ({ ...s, filterTag: tag }));
},
setFilterText(text: string) {
update((s) => ({ ...s, filterText: text }));
},
reset() {
update(() => ({
notes: [],
loading: false,
filterTag: null,
filterText: '',
}));
},
};
}createAutoSaveStore function · typescript · L24-L138 (115 LOC)app/src/lib/stores/autosave.ts
function createAutoSaveStore() {
const { subscribe, set, update } = writable<AutoSaveState>(defaultState);
let debounceTimer: ReturnType<typeof setTimeout> | null = null;
const triggerSave = async () => {
const note = get(currentNote);
const workspace = get(currentWorkspace);
console.log('[AutoSave] triggerSave called', { notePath: note?.path, isNew: note?.isNew, workspace: workspace?.path });
if (!note || !workspace) {
console.log('[AutoSave] Skipping save - no note or no workspace');
return;
}
update((s) => ({ ...s, status: 'saving', error: null }));
try {
const invoke = await getInvoke();
let savePath = note.path;
// For new notes, generate a unique path via backend (handles conflicts)
if (!savePath || note.isNew) {
savePath = await invoke<string>('generate_note_path', {
workspacePath: workspace.path,
content: note.content,
});
console.log('[AutoSave] New note - geRepobility · severity-and-effort ranking · https://repobility.com
createAutoSaveStore function · typescript · L24-L138 (115 LOC)app/src/lib/stores/autosave.ts
function createAutoSaveStore() {
const { subscribe, set, update } = writable<AutoSaveState>(defaultState);
let debounceTimer: ReturnType<typeof setTimeout> | null = null;
const triggerSave = async () => {
const note = get(currentNote);
const workspace = get(currentWorkspace);
console.log('[AutoSave] triggerSave called', { notePath: note?.path, isNew: note?.isNew, workspace: workspace?.path });
if (!note || !workspace) {
console.log('[AutoSave] Skipping save - no note or no workspace');
return;
}
update((s) => ({ ...s, status: 'saving', error: null }));
try {
const invoke = await getInvoke();
let savePath = note.path;
// For new notes, generate a unique path via backend (handles conflicts)
if (!savePath || note.isNew) {
savePath = await invoke<string>('generate_note_path', {
workspacePath: workspace.path,
content: note.content,
});
console.log('[AutoSave] New note - gecreateAutoSaveStore function · typescript · L24-L138 (115 LOC)app/src/lib/stores/autosave.ts
function createAutoSaveStore() {
const { subscribe, set, update } = writable<AutoSaveState>(defaultState);
let debounceTimer: ReturnType<typeof setTimeout> | null = null;
const triggerSave = async () => {
const note = get(currentNote);
const workspace = get(currentWorkspace);
console.log('[AutoSave] triggerSave called', { notePath: note?.path, isNew: note?.isNew, workspace: workspace?.path });
if (!note || !workspace) {
console.log('[AutoSave] Skipping save - no note or no workspace');
return;
}
update((s) => ({ ...s, status: 'saving', error: null }));
try {
const invoke = await getInvoke();
let savePath = note.path;
// For new notes, generate a unique path via backend (handles conflicts)
if (!savePath || note.isNew) {
savePath = await invoke<string>('generate_note_path', {
workspacePath: workspace.path,
content: note.content,
});
console.log('[AutoSave] New note - gecreateAutoSaveStore function · typescript · L24-L138 (115 LOC)app/src/lib/stores/autosave.ts
function createAutoSaveStore() {
const { subscribe, set, update } = writable<AutoSaveState>(defaultState);
let debounceTimer: ReturnType<typeof setTimeout> | null = null;
const triggerSave = async () => {
const note = get(currentNote);
const workspace = get(currentWorkspace);
console.log('[AutoSave] triggerSave called', { notePath: note?.path, isNew: note?.isNew, workspace: workspace?.path });
if (!note || !workspace) {
console.log('[AutoSave] Skipping save - no note or no workspace');
return;
}
update((s) => ({ ...s, status: 'saving', error: null }));
try {
const invoke = await getInvoke();
let savePath = note.path;
// For new notes, generate a unique path via backend (handles conflicts)
if (!savePath || note.isNew) {
savePath = await invoke<string>('generate_note_path', {
workspacePath: workspace.path,
content: note.content,
});
console.log('[AutoSave] New note - gecheckClaudeInstalled function · typescript · L6-L17 (12 LOC)app/src/lib/stores/claudeStatus.ts
export async function checkClaudeInstalled(): Promise<boolean> {
if (!isTauri()) return false;
try {
const invoke = await getInvoke();
const installed = await invoke<boolean>('check_claude_installed');
claudeInstalled.set(installed);
return installed;
} catch {
claudeInstalled.set(false);
return false;
}
}checkClaudeInstalled function · typescript · L6-L17 (12 LOC)app/src/lib/stores/claudeStatus.ts
export async function checkClaudeInstalled(): Promise<boolean> {
if (!isTauri()) return false;
try {
const invoke = await getInvoke();
const installed = await invoke<boolean>('check_claude_installed');
claudeInstalled.set(installed);
return installed;
} catch {
claudeInstalled.set(false);
return false;
}
}checkClaudeInstalled function · typescript · L6-L17 (12 LOC)app/src/lib/stores/claudeStatus.ts
export async function checkClaudeInstalled(): Promise<boolean> {
if (!isTauri()) return false;
try {
const invoke = await getInvoke();
const installed = await invoke<boolean>('check_claude_installed');
claudeInstalled.set(installed);
return installed;
} catch {
claudeInstalled.set(false);
return false;
}
}checkClaudeInstalled function · typescript · L6-L17 (12 LOC)app/src/lib/stores/claudeStatus.ts
export async function checkClaudeInstalled(): Promise<boolean> {
if (!isTauri()) return false;
try {
const invoke = await getInvoke();
const installed = await invoke<boolean>('check_claude_installed');
claudeInstalled.set(installed);
return installed;
} catch {
claudeInstalled.set(false);
return false;
}
}createCommandsStore function · typescript · L17-L39 (23 LOC)app/src/lib/stores/commands.ts
function createCommandsStore() {
const { subscribe, set, update } = writable<CommandsState>({
commands: [],
loading: false,
});
return {
subscribe,
async load(workspacePath: string) {
update((s) => ({ ...s, loading: true }));
try {
const commands = await invoke<CommandInfo[]>('list_commands', { workspacePath });
set({ commands, loading: false });
} catch (e) {
console.error('Failed to load commands:', e);
set({ commands: [], loading: false });
}
},
reset() {
set({ commands: [], loading: false });
},
};
}About: code-quality intelligence by Repobility · https://repobility.com
createCommandsStore function · typescript · L17-L39 (23 LOC)app/src/lib/stores/commands.ts
function createCommandsStore() {
const { subscribe, set, update } = writable<CommandsState>({
commands: [],
loading: false,
});
return {
subscribe,
async load(workspacePath: string) {
update((s) => ({ ...s, loading: true }));
try {
const commands = await invoke<CommandInfo[]>('list_commands', { workspacePath });
set({ commands, loading: false });
} catch (e) {
console.error('Failed to load commands:', e);
set({ commands: [], loading: false });
}
},
reset() {
set({ commands: [], loading: false });
},
};
}createCommandsStore function · typescript · L17-L39 (23 LOC)app/src/lib/stores/commands.ts
function createCommandsStore() {
const { subscribe, set, update } = writable<CommandsState>({
commands: [],
loading: false,
});
return {
subscribe,
async load(workspacePath: string) {
update((s) => ({ ...s, loading: true }));
try {
const commands = await invoke<CommandInfo[]>('list_commands', { workspacePath });
set({ commands, loading: false });
} catch (e) {
console.error('Failed to load commands:', e);
set({ commands: [], loading: false });
}
},
reset() {
set({ commands: [], loading: false });
},
};
}createCommandsStore function · typescript · L17-L39 (23 LOC)app/src/lib/stores/commands.ts
function createCommandsStore() {
const { subscribe, set, update } = writable<CommandsState>({
commands: [],
loading: false,
});
return {
subscribe,
async load(workspacePath: string) {
update((s) => ({ ...s, loading: true }));
try {
const commands = await invoke<CommandInfo[]>('list_commands', { workspacePath });
set({ commands, loading: false });
} catch (e) {
console.error('Failed to load commands:', e);
set({ commands: [], loading: false });
}
},
reset() {
set({ commands: [], loading: false });
},
};
}openCommandRunner function · typescript · L52-L54 (3 LOC)app/src/lib/stores/commands.ts
export function openCommandRunner(command?: CommandInfo) {
commandRunnerRequest.set(command ?? null);
}openCommandRunner function · typescript · L52-L54 (3 LOC)app/src/lib/stores/commands.ts
export function openCommandRunner(command?: CommandInfo) {
commandRunnerRequest.set(command ?? null);
}openCommandRunner function · typescript · L52-L54 (3 LOC)app/src/lib/stores/commands.ts
export function openCommandRunner(command?: CommandInfo) {
commandRunnerRequest.set(command ?? null);
}openCommandRunner function · typescript · L52-L54 (3 LOC)app/src/lib/stores/commands.ts
export function openCommandRunner(command?: CommandInfo) {
commandRunnerRequest.set(command ?? null);
}closeCommandRunner function · typescript · L59-L61 (3 LOC)app/src/lib/stores/commands.ts
export function closeCommandRunner() {
commandRunnerRequest.set(undefined);
}Repobility · code-quality intelligence · https://repobility.com
closeCommandRunner function · typescript · L59-L61 (3 LOC)app/src/lib/stores/commands.ts
export function closeCommandRunner() {
commandRunnerRequest.set(undefined);
}closeCommandRunner function · typescript · L59-L61 (3 LOC)app/src/lib/stores/commands.ts
export function closeCommandRunner() {
commandRunnerRequest.set(undefined);
}closeCommandRunner function · typescript · L59-L61 (3 LOC)app/src/lib/stores/commands.ts
export function closeCommandRunner() {
commandRunnerRequest.set(undefined);
}