Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
39ad75c
chore(skills): vendor codebase-design deep-module vocabulary skill
waleedlatif1 Oct 1, 2026
9f718e4
chore(cleanup): remove dead client hooks, query exports, and orphaned…
waleedlatif1 Oct 1, 2026
23eff1b
refactor(queries): concentrate workflow search MCP list fetches into …
waleedlatif1 Oct 1, 2026
99a01a8
chore(cleanup): dedupe app copies of shared package helpers
waleedlatif1 Oct 1, 2026
b698002
chore(cleanup): trim log-views to toOverview and use interruptibleSle…
waleedlatif1 Oct 1, 2026
4af24d4
chore(cleanup): use @sim/utils/object helpers in internal clients and…
waleedlatif1 Oct 1, 2026
f39ba4a
chore(cleanup): remove dead logs types, organization utils, and works…
waleedlatif1 Oct 1, 2026
0859414
chore(cleanup): remove dead custom-tool use cases and unused folder, …
waleedlatif1 Oct 1, 2026
ad11f0c
chore(cleanup): remove unreachable application use cases and API helpers
waleedlatif1 Oct 1, 2026
4479c37
chore(cleanup): remove dead application use cases and utils, share wo…
waleedlatif1 Oct 1, 2026
552f6ca
chore(cleanup): remove unreferenced Copilot table commands, workflow …
waleedlatif1 Oct 1, 2026
9e779f4
chore(cleanup): share webhook provider config, notification URL, and …
waleedlatif1 Oct 1, 2026
745079b
chore(cleanup): remove dead billing, credential, MCP, and API key exp…
waleedlatif1 Oct 1, 2026
0010261
chore(cleanup): remove dead executor helpers and redundant LoopConfig…
waleedlatif1 Oct 1, 2026
5887e59
refactor(executor): export subflow node-id codec functions directly a…
waleedlatif1 Oct 1, 2026
472a0d0
refactor(providers): drop pass-through model wrappers and share the j…
waleedlatif1 Oct 1, 2026
185eab2
chore(cleanup): remove dead executor, tools, and block registry exports
waleedlatif1 Oct 1, 2026
9854071
chore(cleanup): remove unreachable workspace-file and table use cases
waleedlatif1 Oct 1, 2026
c484e43
chore(cleanup): reuse knowledge tag slot constants in the tags service
waleedlatif1 Oct 1, 2026
2a805e1
chore(cleanup): share escapeLikePattern from @sim/utils/string
waleedlatif1 Oct 1, 2026
6594698
chore(cleanup): reuse zip-guard EOCD parsing in the file sniffer
waleedlatif1 Oct 1, 2026
9993fc2
chore(cleanup): use isRecordLike for inline record guards
waleedlatif1 Oct 1, 2026
934f384
chore(cleanup): remove dead uploads, tokenization, table, knowledge, …
waleedlatif1 Oct 1, 2026
c3aceb6
chore(cleanup): use shared escapeLikePattern in list-query and logs f…
waleedlatif1 Oct 1, 2026
2889452
docs(skills): align codebase-design testing guidance with repo rules …
waleedlatif1 Oct 1, 2026
841c34d
chore(cleanup): cascade-remove use cases, helpers, and mocks orphaned…
waleedlatif1 Oct 1, 2026
81d5f82
chore(cleanup): consolidate shared helpers and restore TSDoc on moved…
waleedlatif1 Oct 1, 2026
8e326cf
test(cleanup): port storage-cleanup ownership tests and drop stale mo…
waleedlatif1 Oct 1, 2026
cd2bd67
test(scripts): follow model-access import move in application-graph f…
waleedlatif1 Oct 1, 2026
9abbf17
chore(skills): drop vendored codebase-design skill from the repo
waleedlatif1 Oct 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 1 addition & 27 deletions apps/docs/components/ui/block-info-card.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client'

import type * as React from 'react'
import { isLightTileColor } from '@sim/workflow-renderer/tile-icon-color'
import { blockTypeToIconMap } from '@/components/ui/icon-mapping'

interface BlockInfoCardProps {
Expand All @@ -9,33 +10,6 @@ interface BlockInfoCardProps {
icon?: React.ComponentType<{ className?: string }>
}

/**
* Brightness above which a tile background is "clearly light" and a white
* foreground icon would wash out. Mirrors apps/sim's LIGHT_TILE_THRESHOLD
* (blocks/icon-color.ts) so monochrome `currentColor` icons (e.g. Daytona,
* Notion) stay legible on white/pale tiles instead of white-on-white.
*/
const LIGHT_TILE_THRESHOLD = 0.75

function isLightTileColor(color: string): boolean {
const hex = color.trim().replace('#', '').toLowerCase()
let r: number
let g: number
let b: number
if (/^[0-9a-f]{3}$/.test(hex)) {
r = Number.parseInt(hex[0] + hex[0], 16)
g = Number.parseInt(hex[1] + hex[1], 16)
b = Number.parseInt(hex[2] + hex[2], 16)
} else if (/^[0-9a-f]{6}$/.test(hex)) {
r = Number.parseInt(hex.slice(0, 2), 16)
g = Number.parseInt(hex.slice(2, 4), 16)
b = Number.parseInt(hex.slice(4, 6), 16)
} else {
return false
}
return (0.299 * r + 0.587 * g + 0.114 * b) / 255 > LIGHT_TILE_THRESHOLD
}

export function BlockInfoCard({
type,
color,
Expand Down
10 changes: 0 additions & 10 deletions apps/realtime/src/auth.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
import { createVerifyAuth } from '@sim/auth/verify'
import { env } from '@/env'

export const ANONYMOUS_USER_ID = '00000000-0000-0000-0000-000000000000'

export const ANONYMOUS_USER = {
id: ANONYMOUS_USER_ID,
name: 'Anonymous',
email: 'anonymous@localhost',
emailVerified: true,
image: null,
} as const

export const auth = createVerifyAuth({
secret: env.BETTER_AUTH_SECRET,
baseURL: env.BETTER_AUTH_URL,
Expand Down
3 changes: 2 additions & 1 deletion apps/realtime/src/middleware/auth.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { ANONYMOUS_USER, ANONYMOUS_USER_ID } from '@sim/auth/principal'
import { createLogger } from '@sim/logger'
import { toError } from '@sim/utils/errors'
import type { Socket } from 'socket.io'
import { ANONYMOUS_USER, ANONYMOUS_USER_ID, auth } from '@/auth'
import { auth } from '@/auth'
import { isAuthDisabled } from '@/env'

const logger = createLogger('SocketAuth')
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/app/api/auth/oauth2/callback/instagram/route.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { db } from '@sim/db'
import { account } from '@sim/db/schema'
import { EnvCapabilityConfigurationError } from '@sim/deployment-config/env-capabilities'
import { createLogger } from '@sim/logger'
import { generateId } from '@sim/utils/id'
import { and, eq } from 'drizzle-orm'
import { type NextRequest, NextResponse } from 'next/server'
import { instagramCallbackContract } from '@/lib/api/contracts/oauth-connections'
import { parseRequest } from '@/lib/api/server'
import { getSession } from '@/lib/auth'
import { EnvCapabilityConfigurationError } from '@/lib/core/config/env-capabilities'
import { requireConfiguredOAuthClient } from '@/lib/core/config/env-capabilities.server'
import {
DEFAULT_MAX_ERROR_BODY_BYTES,
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/app/api/auth/oauth2/callback/shopify/route.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { EnvCapabilityConfigurationError } from '@sim/deployment-config/env-capabilities'
import { createLogger } from '@sim/logger'
import { safeCompare } from '@sim/security/compare'
import { hmacSha256Hex } from '@sim/security/hmac'
Expand All @@ -7,7 +8,6 @@ import {
shopifyShopDomainSchema,
} from '@/lib/api/contracts/oauth-connections'
import { getSession } from '@/lib/auth'
import { EnvCapabilityConfigurationError } from '@/lib/core/config/env-capabilities'
import { requireConfiguredOAuthClient } from '@/lib/core/config/env-capabilities.server'
import { getBaseUrl } from '@/lib/core/utils/urls'
import { isSameOrigin } from '@/lib/core/utils/validation'
Expand Down
24 changes: 0 additions & 24 deletions apps/sim/app/api/chat/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,30 +26,6 @@ export async function setChatAuthCookie(
})
}

/**
* Check if user has permission to create a chat for a specific workflow
*/
export async function checkWorkflowAccessForChatCreation(
workflowId: string,
userId: string
): Promise<{ hasAccess: boolean; workflow?: any }> {
const authorization = await authorizeWorkflowByWorkspacePermission({
workflowId,
userId,
action: 'admin',
})

if (!authorization.workflow) {
return { hasAccess: false }
}

if (authorization.allowed) {
return { hasAccess: true, workflow: authorization.workflow }
}

return { hasAccess: false }
}

/**
* Check if user has access to view/edit/delete a specific chat
*/
Expand Down
1 change: 0 additions & 1 deletion apps/sim/app/api/files/delete/route.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ describe('File Delete API Route', () => {
filesAuthorizationMockFns.mockVerifyFileAccess.mockResolvedValue(true)
storageServiceMockFns.mockDeleteFile.mockResolvedValue(undefined)
storageServiceMockFns.mockHasCloudStorage.mockReturnValue(true)
uploadsMockFns.mockGetStorageProvider.mockReturnValue('s3')
uploadsMockFns.mockIsUsingCloudStorage.mockReturnValue(true)
})

Expand Down
2 changes: 1 addition & 1 deletion apps/sim/app/api/files/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class InvalidRequestError extends Error {
}
}

export const contentTypeMap: Record<string, string> = {
const contentTypeMap: Record<string, string> = {
txt: 'text/plain',
csv: 'text/csv',
json: 'application/json',
Expand Down
191 changes: 0 additions & 191 deletions apps/sim/app/api/public-api-route-handler.test.ts

This file was deleted.

Loading
Loading