chore: lint fixes

This commit is contained in:
waleed
2026-03-09 20:59:46 -07:00
parent 1cb8a28727
commit f26a375f3c
5 changed files with 7 additions and 12 deletions

View File

@@ -548,8 +548,7 @@ export const userTableServerTool: BaseServerTool<UserTableArgs, UserTableResult>
} else {
return {
success: false,
message:
'Provide either "updates" array or "columnName" + "values" map',
message: 'Provide either "updates" array or "columnName" + "values" map',
}
}

View File

@@ -137,9 +137,7 @@ export const UserTableArgsSchema = z.object({
rowId: z.string().optional(),
data: z.record(z.any()).optional(),
rows: z.array(z.record(z.any())).optional(),
updates: z
.array(z.object({ rowId: z.string(), data: z.record(z.any()) }))
.optional(),
updates: z.array(z.object({ rowId: z.string(), data: z.record(z.any()) })).optional(),
rowIds: z.array(z.string()).optional(),
values: z.record(z.any()).optional(),
filter: z.any().optional(),

View File

@@ -1,7 +1,7 @@
/**
* Environment utility functions for consistent environment detection across the application
*/
import { env, getEnv, isFalsy, isTruthy } from './env'
import { env, isFalsy, isTruthy } from './env'
/**
* Is the application running in production mode
@@ -22,8 +22,8 @@ export const isTest = env.NODE_ENV === 'test'
* Is this the hosted version of the application
*/
export const isHosted = true
// getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.sim.ai' ||
// getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.staging.sim.ai'
// getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.sim.ai' ||
// getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.staging.sim.ai'
/**
* Is billing enforcement enabled

View File

@@ -1173,9 +1173,7 @@ export async function batchUpdateRows(
}
})
logger.info(
`[${requestId}] Batch updated ${mergedUpdates.length} rows in table ${data.tableId}`
)
logger.info(`[${requestId}] Batch updated ${mergedUpdates.length} rows in table ${data.tableId}`)
return {
affectedCount: mergedUpdates.length,

View File

@@ -109,7 +109,7 @@ export const chatTool: ToolConfig<PerplexityChatParams, PerplexityChatResponse>
const inputTokens = usage.prompt_tokens
const outputTokens = usage.completion_tokens
let tokenCost =
const tokenCost =
(inputTokens * pricing.inputPerM) / 1_000_000 +
(outputTokens * pricing.outputPerM) / 1_000_000
const requestFee = pricing.requestPer1K / 1000