mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
Fix lint
This commit is contained in:
@@ -350,8 +350,7 @@ export async function GET(request: NextRequest) {
|
||||
params.details === 'full' ? jobExecutionLogs.executionData : sql<null>`NULL`,
|
||||
cost: jobExecutionLogs.cost,
|
||||
createdAt: jobExecutionLogs.createdAt,
|
||||
jobTitle:
|
||||
sql<string | null>`${jobExecutionLogs.executionData}->'trigger'->>'source'`,
|
||||
jobTitle: sql<string | null>`${jobExecutionLogs.executionData}->'trigger'->>'source'`,
|
||||
})
|
||||
.from(jobExecutionLogs)
|
||||
.where(jobWhere)
|
||||
|
||||
@@ -33,6 +33,7 @@ import {
|
||||
getProviderIdFromServiceId,
|
||||
type OAuthProvider,
|
||||
} from '@/lib/oauth'
|
||||
import { getMissingRequiredScopes } from '@/lib/oauth/utils'
|
||||
import { EditConnectorModal } from '@/app/workspace/[workspaceId]/knowledge/[id]/components/edit-connector-modal/edit-connector-modal'
|
||||
import { OAuthRequiredModal } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/credential-selector/components/oauth-required-modal'
|
||||
import { CONNECTOR_REGISTRY } from '@/connectors/registry'
|
||||
@@ -44,7 +45,6 @@ import {
|
||||
useUpdateConnector,
|
||||
} from '@/hooks/queries/kb/connectors'
|
||||
import { useOAuthCredentials } from '@/hooks/queries/oauth/oauth-credentials'
|
||||
import { getMissingRequiredScopes } from '@/lib/oauth/utils'
|
||||
|
||||
const logger = createLogger('ConnectorsSection')
|
||||
|
||||
|
||||
@@ -633,13 +633,19 @@ function buildJobPrompt(jobRecord: {
|
||||
parts.push(`- [${entry.timestamp}] ${entry.summary}`)
|
||||
}
|
||||
parts.push('')
|
||||
parts.push('Use this history to avoid duplicate work. After completing meaningful work this run, call update_job_history to record what you did.')
|
||||
parts.push(
|
||||
'Use this history to avoid duplicate work. After completing meaningful work this run, call update_job_history to record what you did.'
|
||||
)
|
||||
} else if (jobRecord.runCount > 0) {
|
||||
parts.push('')
|
||||
parts.push('No previous run history recorded. After completing meaningful work, call update_job_history to record what you did for future runs.')
|
||||
parts.push(
|
||||
'No previous run history recorded. After completing meaningful work, call update_job_history to record what you did for future runs.'
|
||||
)
|
||||
} else {
|
||||
parts.push('')
|
||||
parts.push('This is the first run. After completing meaningful work, call update_job_history to record what you did so future runs have context.')
|
||||
parts.push(
|
||||
'This is the first run. After completing meaningful work, call update_job_history to record what you did so future runs have context.'
|
||||
)
|
||||
}
|
||||
|
||||
if (jobRecord.lifecycle === 'until_complete') {
|
||||
|
||||
@@ -23,14 +23,29 @@ const logger = createLogger('ServerToolRouter')
|
||||
|
||||
const WRITE_ACTIONS: Record<string, string[]> = {
|
||||
knowledge_base: [
|
||||
'create', 'add_file', 'update', 'delete',
|
||||
'create_tag', 'update_tag', 'delete_tag',
|
||||
'add_connector', 'update_connector', 'delete_connector', 'sync_connector',
|
||||
'create',
|
||||
'add_file',
|
||||
'update',
|
||||
'delete',
|
||||
'create_tag',
|
||||
'update_tag',
|
||||
'delete_tag',
|
||||
'add_connector',
|
||||
'update_connector',
|
||||
'delete_connector',
|
||||
'sync_connector',
|
||||
],
|
||||
user_table: [
|
||||
'create', 'create_from_file', 'import_file', 'delete',
|
||||
'insert_row', 'batch_insert_rows', 'update_row', 'delete_row',
|
||||
'update_rows_by_filter', 'delete_rows_by_filter',
|
||||
'create',
|
||||
'create_from_file',
|
||||
'import_file',
|
||||
'delete',
|
||||
'insert_row',
|
||||
'batch_insert_rows',
|
||||
'update_row',
|
||||
'delete_row',
|
||||
'update_rows_by_filter',
|
||||
'delete_rows_by_filter',
|
||||
],
|
||||
manage_custom_tool: ['add', 'edit', 'delete'],
|
||||
manage_mcp_tool: ['add', 'edit', 'delete'],
|
||||
|
||||
Reference in New Issue
Block a user