feat: py sandbox for workflow

* chore: update Dockerfile and sandbox.py
* feat: py sandbox for workflow
* feat: py sandbox for workflow

See merge request: !885
This commit is contained in:
徐兆楠
2025-07-25 07:17:25 +00:00
parent e8686379b2
commit 3749abdea0
20 changed files with 521 additions and 79 deletions

View File

@@ -1,5 +1,10 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: code.go
//
// Generated by this command:
//
// mockgen -destination ../../../internal/mock/domain/workflow/crossdomain/code/code_mock.go --package code -source code.go
//
// Package code is a generated GoMock package.
package code
@@ -8,9 +13,8 @@ import (
context "context"
reflect "reflect"
coderunner "github.com/coze-dev/coze-studio/backend/infra/contract/coderunner"
gomock "go.uber.org/mock/gomock"
code "github.com/coze-dev/coze-studio/backend/domain/workflow/crossdomain/code"
)
// MockRunner is a mock of Runner interface.
@@ -37,16 +41,16 @@ func (m *MockRunner) EXPECT() *MockRunnerMockRecorder {
}
// Run mocks base method.
func (m *MockRunner) Run(ctx context.Context, request *code.RunRequest) (*code.RunResponse, error) {
func (m *MockRunner) Run(ctx context.Context, request *coderunner.RunRequest) (*coderunner.RunResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Run", ctx, request)
ret0, _ := ret[0].(*code.RunResponse)
ret0, _ := ret[0].(*coderunner.RunResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Run indicates an expected call of Run.
func (mr *MockRunnerMockRecorder) Run(ctx, request interface{}) *gomock.Call {
func (mr *MockRunnerMockRecorder) Run(ctx, request any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockRunner)(nil).Run), ctx, request)
}