Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5028875
feat(transport): replace shared chat transport with mothership-stream…
Sg312 Mar 25, 2026
448ea02
improvement(contracts): regenerate contracts from go
Sg312 Mar 25, 2026
7c5547f
feat(tools): add tool catalog codegen from go tool contracts
Sg312 Mar 25, 2026
d5131ae
feat(tools): add tool-executor dispatch framework for sim side tool r…
Sg312 Mar 26, 2026
1157dfc
feat(orchestrator): rewrite tool dispatch with catalog-driven executo…
Sg312 Mar 26, 2026
997896d
feat(orchestrator): checkpoint resume flow
Sg312 Mar 26, 2026
f9c185b
refactor(copilot): consolidate orchestrator into request/ layer
Sg312 Mar 27, 2026
97d41e9
refactor(mothership): reorganize lib/copilot into structured subdirec…
Sg312 Mar 27, 2026
c4876ba
refactor(mothership): canonical transcript layer, dead code cleanup, …
Sg312 Mar 27, 2026
410dd9a
refactor(mothership): rebase onto latest staging
Sg312 Mar 27, 2026
741d856
refactor(mothership): rename request continue to lifecycle
Sg312 Mar 27, 2026
407d254
feat(trace): add initial version of request traces
Sg312 Mar 28, 2026
4b3b6ae
improvement(stream): batch stream from redis
Sg312 Mar 28, 2026
946751e
fix(resume): fix the resume checkpoint
Sg312 Apr 1, 2026
ba3bdd0
fix(resume): fix resume client tool
Sg312 Apr 1, 2026
e3f8663
fix(subagents): subagent resume should join on existing subagent text…
Sg312 Apr 1, 2026
e22fccd
improvement(reconnect): harden reconnect logic
Sg312 Apr 1, 2026
86207ee
fix(superagent): fix superagent integration tools
Sg312 Apr 2, 2026
83cf090
improvement(stream): improve stream perf
Sg312 Apr 3, 2026
54266b9
Rebase with origin dev
Sg312 Apr 3, 2026
d7bfe16
fix(tests): fix failing test
Sg312 Apr 3, 2026
8f61262
fix(build): fix type errors
Sg312 Apr 3, 2026
63e9dff
fix(build): fix build errors
Sg312 Apr 3, 2026
2548912
fix(build): fix type errors
Sg312 Apr 3, 2026
7cd4545
feat(mothership): add cli execution
Sg312 Apr 4, 2026
fb12805
fix(mothership): fix function execute tests
Sg312 Apr 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix(mothership): fix function execute tests
  • Loading branch information
Sg312 committed Apr 4, 2026
commit fb1280565decd48ce1fcbd7166e50d58d8c9c959
22 changes: 22 additions & 0 deletions apps/sim/app/api/function/execute/route.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,27 @@ vi.mock('@/lib/auth/hybrid', () => ({

vi.mock('@/lib/execution/e2b', () => ({
executeInE2B: mockExecuteInE2B,
executeShellInE2B: vi.fn(),
}))

vi.mock('@/lib/copilot/request/tools/files', () => ({
FORMAT_TO_CONTENT_TYPE: {
json: 'application/json',
csv: 'text/csv',
txt: 'text/plain',
md: 'text/markdown',
html: 'text/html',
},
normalizeOutputWorkspaceFileName: vi.fn((p: string) => p.replace(/^files\//, '')),
resolveOutputFormat: vi.fn(() => 'json'),
}))

vi.mock('@/lib/uploads/contexts/workspace/workspace-file-manager', () => ({
uploadWorkspaceFile: vi.fn(),
}))

vi.mock('@/lib/workflows/utils', () => ({
getWorkflowById: vi.fn(),
}))

vi.mock('@/lib/core/config/feature-flags', () => ({
Expand All @@ -32,6 +53,7 @@ vi.mock('@/lib/core/config/feature-flags', () => ({
isProd: false,
isDev: false,
isTest: true,
isEmailVerificationEnabled: false,
}))

import { validateProxyUrl } from '@/lib/core/security/input-validation'
Expand Down
Loading