Skip to content

Commit be2ac7f

Browse files
committed
chore(workspace-source): drop unused imports and use template literals flagged by biome
1 parent eeb971f commit be2ac7f

4 files changed

Lines changed: 2 additions & 6 deletions

File tree

‎apps/sim/lib/workspace-source/application/kinds/skills/adapter.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import {
2323
applyNamed,
2424
authorizeNamed,
2525
type NamedKind,
26-
type NamedPlan,
2726
planNamed,
2827
planNamedUndeclared,
2928
readRecord,

‎apps/sim/lib/workspace-source/application/kinds/tools/adapter.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { resourceAddress } from '@sim/workspace-code'
1919
import {
2020
isStoredToolCode,
2121
type ToolCode,
22-
type ToolDecl,
2322
toolCodec,
2423
toolDeclarationPath,
2524
toolLiteralSecret,
@@ -41,7 +40,6 @@ import {
4140
applyNamed,
4241
authorizeNamed,
4342
type NamedKind,
44-
type NamedPlan,
4543
planNamed,
4644
planNamedUndeclared,
4745
readRecord,

‎packages/workflow-code/src/compile/hostile.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,14 @@ describe('hostile sources produce diagnostics only', () => {
179179
expect(result.workflow).not.toBeNull()
180180
expect(codes(result)).not.toContain('W_LITERAL_SECRET')
181181
const segment = 'A'.repeat(12)
182-
const jwt = ['eyJ' + segment, 'eyJ' + segment, segment].join('.')
182+
const jwt = [`eyJ${segment}`, `eyJ${segment}`, segment].join('.')
183183
const detected = run(wrap(`const a = api('A', { url: 'https://x', body: 'token ${jwt}' })`))
184184
expect(codes(detected)).toContain('W_LITERAL_SECRET')
185185
})
186186

187187
it('never frames a literal secret, alone or as the warning past the cap', () => {
188188
const segment = 'A'.repeat(12)
189-
const jwt = ['eyJ' + segment, 'eyJ' + segment, segment].join('.')
189+
const jwt = [`eyJ${segment}`, `eyJ${segment}`, segment].join('.')
190190
const detected = run(wrap(`const a = api('A', { url: 'https://x', body: 'token ${jwt}' })`))
191191
const finding = detected.diagnostics.find((d) => d.code === 'W_LITERAL_SECRET')
192192
expect(finding?.span.line).toBe(5)

‎packages/workspace-code/src/kinds/files.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import { hasSuspiciousCharacter, type Json } from '@sim/workflow-code'
1010
import { utf8Bytes } from '@sim/workflow-code/limits'
1111
import type { ResourceFingerprint } from '../base'
12-
import { SUSPICIOUS_CHARACTER_HINT } from '../declaration/fields'
1312
import {
1413
diagnostic,
1514
type WorkspaceDiagnostic,

0 commit comments

Comments
 (0)