liniting fix

Fixes linting issues
This commit is contained in:
Dustin Loring 2024-12-01 05:44:20 -05:00
parent eb7676577d
commit cb1fd38df6
5 changed files with 25540 additions and 7 deletions

View File

@ -84,11 +84,11 @@ export class ActionRunner {
} }
if (action.executed) { if (action.executed) {
return; return; // No return value here
} }
if (isStreaming && action.type !== 'file') { if (isStreaming && action.type !== 'file') {
return; return; // No return value here
} }
this.#updateAction(actionId, { ...action, ...data.action, executed: !isStreaming }); this.#updateAction(actionId, { ...action, ...data.action, executed: !isStreaming });
@ -100,7 +100,6 @@ export class ActionRunner {
.catch((error) => { .catch((error) => {
console.error('Action failed:', error); console.error('Action failed:', error);
}); });
return this.#currentExecutionPromise;
} }
async #executeAction(actionId: string, isStreaming: boolean = false) { async #executeAction(actionId: string, isStreaming: boolean = false) {

View File

@ -283,9 +283,11 @@ const getOllamaBaseUrl = () => {
}; };
async function getOllamaModels(): Promise<ModelInfo[]> { async function getOllamaModels(): Promise<ModelInfo[]> {
//if (typeof window === 'undefined') { /*
//return []; * if (typeof window === 'undefined') {
//} * return [];
* }
*/
try { try {
const baseUrl = getOllamaBaseUrl(); const baseUrl = getOllamaBaseUrl();

View File

@ -11,7 +11,7 @@ interface Logger {
setLevel: (level: DebugLevel) => void; setLevel: (level: DebugLevel) => void;
} }
let currentLevel: DebugLevel = import.meta.env.VITE_LOG_LEVEL ?? import.meta.env.DEV ? 'debug' : 'info'; let currentLevel: DebugLevel = (import.meta.env.VITE_LOG_LEVEL ?? import.meta.env.DEV) ? 'debug' : 'info';
const isWorker = 'HTMLRewriter' in globalThis; const isWorker = 'HTMLRewriter' in globalThis;
const supportsColor = !isWorker; const supportsColor = !isWorker;

25530
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -97,6 +97,8 @@
"@blitz/eslint-plugin": "0.1.0", "@blitz/eslint-plugin": "0.1.0",
"@cloudflare/workers-types": "^4.20240620.0", "@cloudflare/workers-types": "^4.20240620.0",
"@remix-run/dev": "^2.10.0", "@remix-run/dev": "^2.10.0",
"@rollup/plugin-inject": "^5.0.5",
"@jridgewell/sourcemap-codec": "^1.4.15",
"@types/diff": "^5.2.1", "@types/diff": "^5.2.1",
"@types/file-saver": "^2.0.7", "@types/file-saver": "^2.0.7",
"@types/js-cookie": "^3.0.6", "@types/js-cookie": "^3.0.6",