chore: Enable more lint rules, disable some that trigger a lot. Will clean up later.

This commit is contained in:
cpojer
2026-01-31 16:03:28 +09:00
parent 481f696a87
commit 15792b153f
292 changed files with 643 additions and 699 deletions

View File

@@ -135,7 +135,7 @@ async function resolveSessionKeyFromSessionId(params: {
}): Promise<SessionReferenceResolution> {
try {
// Resolve via gateway so we respect store routing and visibility rules.
const result = (await callGateway({
const result = await callGateway({
method: "sessions.resolve",
params: {
sessionId: params.sessionId,
@@ -143,7 +143,7 @@ async function resolveSessionKeyFromSessionId(params: {
includeGlobal: !params.restrictToSpawned,
includeUnknown: !params.restrictToSpawned,
},
})) as { key?: unknown };
});
const key = typeof result?.key === "string" ? result.key.trim() : "";
if (!key) {
throw new Error(
@@ -188,13 +188,13 @@ async function resolveSessionKeyFromKey(params: {
}): Promise<SessionReferenceResolution | null> {
try {
// Try key-based resolution first so non-standard keys keep working.
const result = (await callGateway({
const result = await callGateway({
method: "sessions.resolve",
params: {
key: params.key,
spawnedBy: params.restrictToSpawned ? params.requesterInternalKey : undefined,
},
})) as { key?: unknown };
});
const key = typeof result?.key === "string" ? result.key.trim() : "";
if (!key) return null;
return {