Commit
·
cb1fd38
1
Parent(s):
eb76765
liniting fix
Browse filesFixes linting issues
- app/lib/runtime/action-runner.ts +2 -3
- app/utils/constants.ts +5 -3
- app/utils/logger.ts +1 -1
- package-lock.json +0 -0
- package.json +2 -0
app/lib/runtime/action-runner.ts
CHANGED
|
@@ -84,11 +84,11 @@ export class ActionRunner {
|
|
| 84 |
}
|
| 85 |
|
| 86 |
if (action.executed) {
|
| 87 |
-
return;
|
| 88 |
}
|
| 89 |
|
| 90 |
if (isStreaming && action.type !== 'file') {
|
| 91 |
-
return;
|
| 92 |
}
|
| 93 |
|
| 94 |
this.#updateAction(actionId, { ...action, ...data.action, executed: !isStreaming });
|
|
@@ -100,7 +100,6 @@ export class ActionRunner {
|
|
| 100 |
.catch((error) => {
|
| 101 |
console.error('Action failed:', error);
|
| 102 |
});
|
| 103 |
-
return this.#currentExecutionPromise;
|
| 104 |
}
|
| 105 |
|
| 106 |
async #executeAction(actionId: string, isStreaming: boolean = false) {
|
|
|
|
| 84 |
}
|
| 85 |
|
| 86 |
if (action.executed) {
|
| 87 |
+
return; // No return value here
|
| 88 |
}
|
| 89 |
|
| 90 |
if (isStreaming && action.type !== 'file') {
|
| 91 |
+
return; // No return value here
|
| 92 |
}
|
| 93 |
|
| 94 |
this.#updateAction(actionId, { ...action, ...data.action, executed: !isStreaming });
|
|
|
|
| 100 |
.catch((error) => {
|
| 101 |
console.error('Action failed:', error);
|
| 102 |
});
|
|
|
|
| 103 |
}
|
| 104 |
|
| 105 |
async #executeAction(actionId: string, isStreaming: boolean = false) {
|
app/utils/constants.ts
CHANGED
|
@@ -283,9 +283,11 @@ const getOllamaBaseUrl = () => {
|
|
| 283 |
};
|
| 284 |
|
| 285 |
async function getOllamaModels(): Promise<ModelInfo[]> {
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
|
|
|
|
|
|
| 289 |
|
| 290 |
try {
|
| 291 |
const baseUrl = getOllamaBaseUrl();
|
|
|
|
| 283 |
};
|
| 284 |
|
| 285 |
async function getOllamaModels(): Promise<ModelInfo[]> {
|
| 286 |
+
/*
|
| 287 |
+
* if (typeof window === 'undefined') {
|
| 288 |
+
* return [];
|
| 289 |
+
* }
|
| 290 |
+
*/
|
| 291 |
|
| 292 |
try {
|
| 293 |
const baseUrl = getOllamaBaseUrl();
|
app/utils/logger.ts
CHANGED
|
@@ -11,7 +11,7 @@ interface Logger {
|
|
| 11 |
setLevel: (level: DebugLevel) => void;
|
| 12 |
}
|
| 13 |
|
| 14 |
-
let currentLevel: DebugLevel = import.meta.env.VITE_LOG_LEVEL ?? import.meta.env.DEV ? 'debug' : 'info';
|
| 15 |
|
| 16 |
const isWorker = 'HTMLRewriter' in globalThis;
|
| 17 |
const supportsColor = !isWorker;
|
|
|
|
| 11 |
setLevel: (level: DebugLevel) => void;
|
| 12 |
}
|
| 13 |
|
| 14 |
+
let currentLevel: DebugLevel = (import.meta.env.VITE_LOG_LEVEL ?? import.meta.env.DEV) ? 'debug' : 'info';
|
| 15 |
|
| 16 |
const isWorker = 'HTMLRewriter' in globalThis;
|
| 17 |
const supportsColor = !isWorker;
|
package-lock.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
package.json
CHANGED
|
@@ -97,6 +97,8 @@
|
|
| 97 |
"@blitz/eslint-plugin": "0.1.0",
|
| 98 |
"@cloudflare/workers-types": "^4.20240620.0",
|
| 99 |
"@remix-run/dev": "^2.10.0",
|
|
|
|
|
|
|
| 100 |
"@types/diff": "^5.2.1",
|
| 101 |
"@types/file-saver": "^2.0.7",
|
| 102 |
"@types/js-cookie": "^3.0.6",
|
|
|
|
| 97 |
"@blitz/eslint-plugin": "0.1.0",
|
| 98 |
"@cloudflare/workers-types": "^4.20240620.0",
|
| 99 |
"@remix-run/dev": "^2.10.0",
|
| 100 |
+
"@rollup/plugin-inject": "^5.0.5",
|
| 101 |
+
"@jridgewell/sourcemap-codec": "^1.4.15",
|
| 102 |
"@types/diff": "^5.2.1",
|
| 103 |
"@types/file-saver": "^2.0.7",
|
| 104 |
"@types/js-cookie": "^3.0.6",
|