Align lint fixes with main and resolve merge conflicts

- Convert biome-ignore to oxlint-disable-next-line across client app
- Fix no-base-to-string with type narrowing instead of suppressions
- Fix no-floating-promises with fireAndForget() in proxy app
- Fix restrict-template-expressions with String() wrapping
- Resolve leftover merge conflict markers in manager.rs
- Remove duplicate cmd_plugin_init_errors from lib.rs
- Add graphql as explicit dependency in yaak-client

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Gregory Schier
2026-03-13 13:02:29 -07:00
parent 7314aedc71
commit ee69db0f12
54 changed files with 272 additions and 264 deletions

View File

@@ -95,8 +95,8 @@ export const gitMutations = (dir: string, callbacks: GitCallbacks) => {
const handleError = (err: unknown) => {
showToast({
id: `${err}`,
message: `${err}`,
id: String(err),
message: String(err),
color: "danger",
timeout: 5000,
});

View File

@@ -86,6 +86,7 @@ export function getModel<M extends AnyModel["model"], T extends ExtractModel<Any
export function getAnyModel(id: string): AnyModel | null {
let data = mustStore().get(modelStoreDataAtom);
for (const t of Object.keys(data)) {
// oxlint-disable-next-line no-explicit-any -- dynamic key access
let v = (data as any)[t]?.[id];
if (v?.model === t) return v;
}

View File

@@ -187,11 +187,7 @@ impl PluginManager {
let init_errors = plugin_manager.initialize_all_plugins(plugins, plugin_context).await;
if !init_errors.is_empty() {
for (dir, err) in &init_errors {
<<<<<<< HEAD
error!("Failed to initialize plugin {dir}: {err}");
=======
warn!("Plugin failed to initialize: {dir}: {err}");
>>>>>>> main
}
*plugin_manager.init_errors.lock().await = init_errors;
}
@@ -199,13 +195,8 @@ impl PluginManager {
Ok(plugin_manager)
}
<<<<<<< HEAD
/// Take and clear any plugin initialization errors.
/// Returns the errors only once — subsequent calls return an empty list.
=======
/// Take any initialization errors, clearing them from the manager.
/// Returns a list of `(plugin_directory, error_message)` pairs.
>>>>>>> main
pub async fn take_init_errors(&self) -> Vec<(String, String)> {
std::mem::take(&mut *self.init_errors.lock().await)
}

View File

@@ -39,7 +39,7 @@ export function watchWorkspaceFiles(
channel,
});
unlistenPromise.then(({ unlistenEvent }) => {
void unlistenPromise.then(({ unlistenEvent }) => {
addWatchKey(unlistenEvent);
});
@@ -53,7 +53,7 @@ export function watchWorkspaceFiles(
}
function unlistenToWatcher(unlistenEvent: string) {
emit(unlistenEvent).then(() => {
void emit(unlistenEvent).then(() => {
removeWatchKey(unlistenEvent);
});
}