Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Remove unused code for mock request data
Tomas Valentad5dd9802eedb
diff --git a/api-service/.openapi-generator/FILES b/api-service/.openapi-generator/FILESindex f22cbb2e4..0ecc6b19f 100644--- a/api-service/.openapi-generator/FILES+++ b/api-service/.openapi-generator/FILES@@ -4,14 +4,11 @@ playground_client/api/default_api.pyplayground_client/api_client.pyplayground_client/configuration.pyplayground_client/docs/CreateDeploymentRequest.md-playground_client/docs/CreateMockBodyDataRequest.mdplayground_client/docs/CreateSessionsRequest.mdplayground_client/docs/DefaultApi.mdplayground_client/docs/DeploymentResponse.mdplayground_client/docs/EntryInfo.md-playground_client/docs/File.mdplayground_client/docs/ListFilesystemDirResponse.md-playground_client/docs/MockDataResponse.mdplayground_client/docs/OpenPort.mdplayground_client/docs/OutStderrResponse.mdplayground_client/docs/OutStdoutResponse.md@@ -28,13 +25,10 @@ playground_client/docs/WriteProcessStdinRequest.mdplayground_client/exceptions.pyplayground_client/models/__init__.pyplayground_client/models/create_deployment_request.py-playground_client/models/create_mock_body_data_request.pyplayground_client/models/create_sessions_request.pyplayground_client/models/deployment_response.pyplayground_client/models/entry_info.py-playground_client/models/file.pyplayground_client/models/list_filesystem_dir_response.py-playground_client/models/mock_data_response.pyplayground_client/models/open_port.pyplayground_client/models/out_stderr_response.pyplayground_client/models/out_stdout_response.py@@ -51,14 +45,11 @@ playground_client/models/write_process_stdin_request.pyplayground_client/rest.pyplayground_client/test/__init__.pyplayground_client/test/test_create_deployment_request.py-playground_client/test/test_create_mock_body_data_request.pyplayground_client/test/test_create_sessions_request.pyplayground_client/test/test_default_api.pyplayground_client/test/test_deployment_response.pyplayground_client/test/test_entry_info.py-playground_client/test/test_file.pyplayground_client/test/test_list_filesystem_dir_response.py-playground_client/test/test_mock_data_response.pyplayground_client/test/test_open_port.pyplayground_client/test/test_out_stderr_response.pyplayground_client/test/test_out_stdout_response.pydiff --git a/api-service/app.py b/api-service/app.pyindex f0b02805d..e5c4d135a 100644--- a/api-service/app.py+++ b/api-service/app.py@@ -65,12 +65,9 @@ async def generate():# Create playground for the LLMplayground_tools, playground = create_playground_tools(get_envs=lambda: db.get_env_vars(project_id),- route=route,- method=method,- request_body_template=get_request_body_template(blocks),)- human_tools = list(create_human_tools(run_id=run_id, playground=playground))+ human_tools = create_human_tools(run_id=run_id, playground=playground)# Create a new instance of code generatorcg = Codegen.from_tools_and_database(diff --git a/api-service/codegen/tools/human/tools.py b/api-service/codegen/tools/human/tools.pyindex d46df93b9..f3bc9fcb4 100644--- a/api-service/codegen/tools/human/tools.py+++ b/api-service/codegen/tools/human/tools.py@@ -1,6 +1,5 @@from collections.abc import Generatorfrom typing import Any-from time import sleepfrom codegen.tools.async_tool import async_toolfrom playground_client.models.tools_log_output import ToolsLogOutput@@ -10,7 +9,6 @@ from session.playground.base import Playgrounddef create_human_tools(run_id: str,playground: Playground,- **kwargs,) -> Generator[Any, None, None]:# Ensure that the function is a generator even if no tools are yieldedyield from ()diff --git a/api-service/codegen/tools/playground/main.py b/api-service/codegen/tools/playground/main.pyindex a98905d7e..7a7e4db1a 100644--- a/api-service/codegen/tools/playground/main.py+++ b/api-service/codegen/tools/playground/main.py@@ -1,34 +1,21 @@-from typing import Any, List, Tuple+from typing import Generator, Tuple, Anyfrom langchain.tools import BaseToolfrom session.playground.nodejs import NodeJSPlayground-from codegen.tools.playground.mock.request import MockRequestFactoryfrom session.session import GetEnvs-from .tools.filesystem import create_filesystem_tools-from .tools.process import create_process_toolsfrom .tools.code import create_code_toolsdef create_playground_tools(- method: str,- route: str,- request_body_template: str | None,get_envs: GetEnvs,-) -> Tuple[List[BaseTool], NodeJSPlayground]:+) -> Tuple[Generator[BaseTool, None, None], NodeJSPlayground]:playground = NodeJSPlayground(get_envs)- mock = MockRequestFactory(- method=method,- route=route,- body_template=request_body_template,- playground=playground,- )-- subtools: List[Any] = [+ subtools: Generator[Any, None, None] = (toolfor tools in (- tool_factory(playground=playground, mock=mock)+ tool_factory(playground=playground)for tool_factory in [# create_filesystem_tools,# create_process_tools,@@ -36,5 +23,5 @@ def create_playground_tools(])for tool in tools- ]+ )return subtools, playgrounddiff --git a/api-service/codegen/tools/playground/mock/request.py b/api-service/codegen/tools/playground/mock/request.pydeleted file mode 100644index 3042c3822..000000000--- a/api-service/codegen/tools/playground/mock/request.py+++ /dev/null@@ -1,38 +0,0 @@-import json-from session.playground import Playground---class MockRequestFactory:- def __init__(- self,- method: str,- route: str,- body_template: str | None,- playground: Playground,- hostname: str = "http://localhost:3000",- ) -> None:- self.hostname = hostname- self.method = method.upper()- self.route = route- self.body_template = body_template- self.playground = playground-- def terminal_command(self) -> str:- body = self.generate_body_data()- route_separator = "/" if len(self.route) > 0 and not self.route == "/" else ""- return f"curl -X {self.method} {self.hostname}{route_separator}{self.route} --no-progress-meter -H 'Content-Type: application/json' -d {json.dumps(body)}"-- def generate_body_data(self):- if self.body_template is None:- return "{}"-- body_interface_name = "RequestBody"- request_body_template = f"""interface {body_interface_name} {{- {self.body_template}- }}- """-- body = json.loads(- self.playground.mock_body_data(request_body_template, body_interface_name)- )[body_interface_name]- return json.dumps(body)diff --git a/api-service/codegen/tools/playground/tools/code.py b/api-service/codegen/tools/playground/tools/code.pyindex 7b0fdbf92..12f84775d 100644--- a/api-service/codegen/tools/playground/tools/code.py+++ b/api-service/codegen/tools/playground/tools/code.py@@ -1,5 +1,4 @@from codegen.tools.async_tool import async_tool-from codegen.tools.playground.mock.request import MockRequestFactoryfrom session.playground import NodeJSPlaygroundfrom codegen.tools.playground.tools.process import encode_command_output@@ -8,7 +7,7 @@ def extract_code(code: str):return code.strip().strip("`").strip()-def create_code_tools(playground: NodeJSPlayground, mock: MockRequestFactory, **kwargs):+def create_code_tools(playground: NodeJSPlayground):last_javascript_code: str | None = None# Ensure that the function is a generator even if no tools are yielded@@ -97,7 +96,6 @@ def create_code_tools(playground: NodeJSPlayground, mock: MockRequestFactory, **server_output,) = await playground.run_javascript_server_code_with_request(code=last_javascript_code,- # request_cmd=mock_request_cmd,request_cmd=curl_command.strip(),port=port,)@@ -129,15 +127,12 @@ def create_code_tools(playground: NodeJSPlayground, mock: MockRequestFactory, **# if last_javascript_code is None:# return "Cannot curl, you need to run code first"- # # mock_request_cmd = mock.terminal_command()-# port = 3000# (# request_output,# server_output,# ) = await playground.run_javascript_server_code_with_request(# code=last_javascript_code,- # # request_cmd=mock_request_cmd,# request_cmd=curl_command.strip(),# port=port,# )diff --git a/api-service/codegen/tools/playground/tools/filesystem.py b/api-service/codegen/tools/playground/tools/filesystem.pyindex ce5a996f2..a2203e9c3 100644--- a/api-service/codegen/tools/playground/tools/filesystem.py+++ b/api-service/codegen/tools/playground/tools/filesystem.py@@ -14,7 +14,7 @@ def encode_directory_listing(entries: List[EntryInfo]) -> str:)-def create_filesystem_tools(playground: NodeJSPlayground, **kwargs):+def create_filesystem_tools(playground: NodeJSPlayground):# Ensure that the function is a generator even if no tools are yieldedyield from ()diff --git a/api-service/codegen/tools/playground/tools/process.py b/api-service/codegen/tools/playground/tools/process.pyindex 1dc28a021..b0dbd84d1 100644--- a/api-service/codegen/tools/playground/tools/process.py+++ b/api-service/codegen/tools/playground/tools/process.py@@ -27,7 +27,7 @@ def encode_command_output(response: ProcessResponse, only_errors: bool = False)return result-def create_process_tools(playground: NodeJSPlayground, **kwargs):+def create_process_tools(playground: NodeJSPlayground):# Ensure that the function is a generator even if no tools are yieldedyield from ()diff --git a/api-service/playground/package.json b/api-service/playground/package.jsonindex 7d97d518d..a6673d390 100644--- a/api-service/playground/package.json+++ b/api-service/playground/package.json@@ -8,7 +8,6 @@"@supabase/supabase-js": "^2.12.0","dotenv": "^16.0.3","express": "^4.18.2",- "intermock": "^0.2.5","morgan": "^1.10.0","node-cache": "^5.1.2","tsoa": "^5.1.1"diff --git a/api-service/playground/src/data/mockController.ts b/api-service/playground/src/data/mockController.tsdeleted file mode 100644index c0a535e36..000000000--- a/api-service/playground/src/data/mockController.ts+++ /dev/null@@ -1,36 +0,0 @@-import { mock } from 'intermock'-import {- Controller,- Post,- BodyProp,- Route,-} from 'tsoa'--interface File {- name: string- content: string-}--interface MockDataResponse {- bodyData: string-}--@Route('mock')-export class MockController extends Controller {- @Post('body')- public async createMockBodyData(- @BodyProp('files') files: File[],- @BodyProp('targetInterface') targetInterface: string,- ): Promise<MockDataResponse> {-- const data = mock({- files: files.map(f => [f.name, f.content]),- output: 'json',- interfaces: [targetInterface],- })-- return {- bodyData: data as string,- }- }-}diff --git a/api-service/playground/src/generated/routes.ts b/api-service/playground/src/generated/routes.tsindex 93fd44579..c6852592c 100644--- a/api-service/playground/src/generated/routes.ts+++ b/api-service/playground/src/generated/routes.ts@@ -3,8 +3,6 @@// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoaimport { Controller, ValidationService, FieldErrors, ValidateError, TsoaRoute, HttpStatusCodeLiteral, TsoaResponse, fetchMiddlewares } from '@tsoa/runtime';// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa-import { MockController } from './../data/mockController';-// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoaimport { ToolsController } from './../data/toolsController';// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoaimport { DeploymentsController } from './../deployments/deploymentsController';@@ -19,23 +17,6 @@ import type { RequestHandler, Router } from 'express';// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoaconst models: TsoaRoute.Models = {- "MockDataResponse": {- "dataType": "refObject",- "properties": {- "bodyData": {"dataType":"string","required":true},- },- "additionalProperties": false,- },- // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa- "File": {- "dataType": "refObject",- "properties": {- "name": {"dataType":"string","required":true},- "content": {"dataType":"string","required":true},- },- "additionalProperties": false,- },- // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa"ToolsLogOutput": {"dataType": "refObject","properties": {@@ -167,32 +148,6 @@ export function RegisterRoutes(app: Router) {// NOTE: If you do not see routes for all of your controllers in this file, then you might not have informed tsoa of where to look// Please look into the "controllerPathGlobs" config option described in the readme: https://github.com/lukeautry/tsoa// ###########################################################################################################- app.post('/mock/body',- ...(fetchMiddlewares<RequestHandler>(MockController)),- ...(fetchMiddlewares<RequestHandler>(MockController.prototype.createMockBodyData)),-- function MockController_createMockBodyData(request: any, response: any, next: any) {- const args = {- files: {"in":"body-prop","name":"files","required":true,"dataType":"array","array":{"dataType":"refObject","ref":"File"}},- targetInterface: {"in":"body-prop","name":"targetInterface","required":true,"dataType":"string"},- };-- // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa-- let validatedArgs: any[] = [];- try {- validatedArgs = getValidatedArgs(args, request, response);-- const controller = new MockController();--- const promise = controller.createMockBodyData.apply(controller, validatedArgs as any);- promiseHandler(controller, promise, response, undefined, next);- } catch (err) {- return next(err);- }- });- // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoaapp.get('/tools/logOutput',...(fetchMiddlewares<RequestHandler>(ToolsController)),...(fetchMiddlewares<RequestHandler>(ToolsController.prototype.waitForLogOutput)),diff --git a/api-service/playground/swagger.json b/api-service/playground/swagger.jsonindex ac1ef2e9a..0ff948bfa 100644--- a/api-service/playground/swagger.json+++ b/api-service/playground/swagger.json@@ -6,34 +6,6 @@"requestBodies": {},"responses": {},"schemas": {- "MockDataResponse": {- "properties": {- "bodyData": {- "type": "string"- }- },- "required": [- "bodyData"- ],- "type": "object",- "additionalProperties": false- },- "File": {- "properties": {- "name": {- "type": "string"- },- "content": {- "type": "string"- }- },- "required": [- "name",- "content"- ],- "type": "object",- "additionalProperties": false- },"ToolsLogOutput": {"properties": {"response": {@@ -268,50 +240,6 @@},"openapi": "3.0.0","paths": {- "/mock/body": {- "post": {- "operationId": "CreateMockBodyData",- "responses": {- "200": {- "description": "Ok",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/MockDataResponse"- }- }- }- }- },- "security": [],- "parameters": [],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "properties": {- "files": {- "items": {- "$ref": "#/components/schemas/File"- },- "type": "array"- },- "targetInterface": {- "type": "string"- }- },- "required": [- "files",- "targetInterface"- ],- "type": "object"- }- }- }- }- }- },"/tools/logOutput": {"get": {"operationId": "WaitForLogOutput",diff --git a/api-service/playground/yarn.lock b/api-service/playground/yarn.lockindex 484dd076b..4f933c731 100644--- a/api-service/playground/yarn.lock+++ b/api-service/playground/yarn.lock@@ -1019,13 +1019,6 @@ ansi-regex@^5.0.1:resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==-ansi-styles@^3.2.1:- version "3.2.1"- resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d"- integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==- dependencies:- color-convert "^1.9.0"-ansi-styles@^4.0.0, ansi-styles@^4.1.0:version "4.3.0"resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937"@@ -1048,21 +1041,6 @@ argparse@^1.0.7:dependencies:sprintf-js "~1.0.2"-argv-tools@^0.1.1:- version "0.1.2"- resolved "https://registry.yarnpkg.com/argv-tools/-/argv-tools-0.1.2.tgz#fc4918a70775b8cc5f8296fa0cfea137bd8a8229"- integrity sha512-wxqoymY0BEu9NblZVQiOTOAiJUjPhaa/kbNMjC2h6bnrmUSgnxKgWJo3lzXvi3bHJRwXyqK/dHzMlZVRT89Cxg==- dependencies:- array-back "^2.0.0"- find-replace "^2.0.1"--array-back@^2.0.0:- version "2.0.0"- resolved "https://registry.yarnpkg.com/array-back/-/array-back-2.0.0.tgz#6877471d51ecc9c9bfa6136fb6c7d5fe69748022"- integrity sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==- dependencies:- typical "^2.6.1"-version "1.1.1"resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"@@ -1166,15 +1144,6 @@ call-bind@^1.0.0, call-bind@^1.0.2:function-bind "^1.1.1"get-intrinsic "^1.0.2"-chalk@^2.4.1:- version "2.4.2"- resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"- integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==- dependencies:- ansi-styles "^3.2.1"- escape-string-regexp "^1.0.5"- supports-color "^5.3.0"-chalk@^4.1.0:version "4.1.2"resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01"@@ -1212,13 +1181,6 @@ [email protected]:resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f"integrity sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==-color-convert@^1.9.0:- version "1.9.3"- resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8"- integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==- dependencies:- color-name "1.1.3"-color-convert@^2.0.1:version "2.0.1"resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3"@@ -1226,37 +1188,11 @@ color-convert@^2.0.1:dependencies:color-name "~1.1.4"- version "1.1.3"- resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"- integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==-color-name@~1.1.4:version "1.1.4"resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==- version "5.0.2"- resolved "https://registry.yarnpkg.com/command-line-args/-/command-line-args-5.0.2.tgz#c4e56b016636af1323cf485aa25c3cb203dfbbe4"- integrity sha512-/qPcbL8zpqg53x4rAaqMFlRV4opN3pbla7I7k9x8kyOBMQoGT6WltjN6sXZuxOXw6DgdK7Ad+ijYS5gjcr7vlA==- dependencies:- argv-tools "^0.1.1"- array-back "^2.0.0"- find-replace "^2.0.1"- lodash.camelcase "^4.3.0"- typical "^2.6.1"-- version "5.0.5"- resolved "https://registry.yarnpkg.com/command-line-usage/-/command-line-usage-5.0.5.tgz#5f25933ffe6dedd983c635d38a21d7e623fda357"- integrity sha512-d8NrGylA5oCXSbGoKz05FkehDAzSmIm4K03S5VDh4d5lZAtTWfc3D1RuETtuQCn8129nYfJfDdF7P/lwcz1BlA==- dependencies:- array-back "^2.0.0"- chalk "^2.4.1"- table-layout "^0.4.3"- typical "^2.6.1"-version "0.0.1"resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"@@ -1333,11 +1269,6 @@ debug@^3.2.7:dependencies:ms "^2.1.1"-deep-extend@~0.6.0:- version "0.6.0"- resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac"- integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==-deepmerge@^4.2.2:version "4.3.0"resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.0.tgz#65491893ec47756d44719ae520e0e2609233b59b"@@ -1535,11 +1466,6 @@ escape-html@~1.0.3:resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==-escape-string-regexp@^1.0.5:- version "1.0.5"- resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"- integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==-etag@~1.8.1:version "1.8.1"resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887"@@ -1589,11 +1515,6 @@ ext@^1.1.2:dependencies:type "^2.7.2"- version "4.1.0"- resolved "https://registry.yarnpkg.com/faker/-/faker-4.1.0.tgz#1e45bbbecc6774b3c195fad2835109c6d748cc3f"- integrity sha512-ILKg69P6y/D8/wSmDXw35Ly0re8QzQ8pMfBCflsGiZG2ZjMUNLYNexA6lz5pkmJlepVdsiDFUxYAzPQ9/+iGLA==-version "4.1.2"resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.1.2.tgz#5a98c18238d28a57bbdfa9fe4cda01211fff8f4a"@@ -1621,14 +1542,6 @@ [email protected]:statuses "2.0.1"unpipe "~1.0.0"-find-replace@^2.0.1:- version "2.0.1"- resolved "https://registry.yarnpkg.com/find-replace/-/find-replace-2.0.1.tgz#6d9683a7ca20f8f9aabeabad07e4e2580f528550"- integrity sha512-LzDo3Fpa30FLIBsh6DCDnMN1KW2g4QKkqKmejlImgWY67dDFPX/x9Kh/op/GK522DchQXEvDi/wD48HKW49XOQ==- dependencies:- array-back "^2.0.0"- test-value "^3.0.0"-for-each@^0.3.3:version "0.3.3"resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e"@@ -1655,13 +1568,6 @@ fs-extra@^10.1.0:jsonfile "^6.0.1"universalify "^2.0.0"- version "3.0.1"- resolved "https://registry.yarnpkg.com/fs-readfile-promise/-/fs-readfile-promise-3.0.1.tgz#d0d307b7f6aedfc920c31fa6e5712efaa297c958"- integrity sha512-LsSxMeaJdYH27XrW7Dmq0Gx63mioULCRel63B5VeELYLavi1wF5s0XfsIdKDFdCL9hsfQ2qBvXJszQtQJ9h17A==- dependencies:- graceful-fs "^4.1.11"-fs.realpath@^1.0.0:version "1.0.0"resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"@@ -1758,7 +1664,7 @@ gopd@^1.0.1:dependencies:get-intrinsic "^1.1.3"-graceful-fs@^4.1.11, graceful-fs@^4.1.6, graceful-fs@^4.2.0:+graceful-fs@^4.1.6, graceful-fs@^4.2.0:version "4.2.10"resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c"integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==@@ -1857,18 +1763,6 @@ inherits@2, [email protected]:resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==-intermock@^0.2.5:- version "0.2.5"- resolved "https://registry.yarnpkg.com/intermock/-/intermock-0.2.5.tgz#9fbd2003d30f061e28f917fecf5e6fb21f539aae"- integrity sha512-vba3vpjgfi+7ZFoEeBp7dkCuICuDg4isXAU7JIEv4exar505v48ZuYe6KsS6E4TNbQaV3qd0Bb8DOAQY+M9CGg==- dependencies:- command-line-args "5.0.2"- command-line-usage "5.0.5"- faker "4.1.0"- fs-readfile-promise "3.0.1"- tslib "1.10.0"- typescript "^3.7.5"-internal-slot@^1.0.4:version "1.0.5"resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.5.tgz#f2a2ee21f668f8627a4667f309dc0f4fb6674986"@@ -2062,16 +1956,6 @@ jsonfile@^6.0.1:optionalDependencies:graceful-fs "^4.1.6"-lodash.camelcase@^4.3.0:- version "4.3.0"- resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6"- integrity sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==--lodash.padend@^4.6.1:- version "4.6.1"- resolved "https://registry.yarnpkg.com/lodash.padend/-/lodash.padend-4.6.1.tgz#53ccba047d06e158d311f45da625f4e49e6f166e"- integrity sha512-sOQs2aqGpbl27tmCS1QNZA09Uqp01ZzWfDUoD+xzTii0E7dSQfRKcRetFwa+uXaxaqL+TKm7CgD2JdKP7aZBSw==-lodash@^4.17.21:version "4.17.21"resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"@@ -2342,11 +2226,6 @@ readdirp@~3.6.0:dependencies:picomatch "^2.2.1"-reduce-flatten@^1.0.1:- version "1.0.1"- resolved "https://registry.yarnpkg.com/reduce-flatten/-/reduce-flatten-1.0.1.tgz#258c78efd153ddf93cb561237f61184f3696e327"- integrity sha512-j5WfFJfc9CoXv/WbwVLHq74i/hdTUpy+iNC534LxczMRP67vJeK3V9JOdnL0N1cIRbn9mYhE2yVjvvKXDxvNXQ==-reflect-metadata@^0.1.13:version "0.1.13"resolved "https://registry.yarnpkg.com/reflect-metadata/-/reflect-metadata-0.1.13.tgz#67ae3ca57c972a2aa1642b10fe363fe32d49dc08"@@ -2537,7 +2416,7 @@ strnum@^1.0.5:resolved "https://registry.yarnpkg.com/strnum/-/strnum-1.0.5.tgz#5c4e829fe15ad4ff0d20c3db5ac97b73c9b072db"integrity sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==-supports-color@^5.3.0, supports-color@^5.5.0:+supports-color@^5.5.0:version "5.5.0"resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==@@ -2558,25 +2437,6 @@ supports-color@^8.1.0:dependencies:has-flag "^4.0.0"-table-layout@^0.4.3:- version "0.4.5"- resolved "https://registry.yarnpkg.com/table-layout/-/table-layout-0.4.5.tgz#d906de6a25fa09c0c90d1d08ecd833ecedcb7378"- integrity sha512-zTvf0mcggrGeTe/2jJ6ECkJHAQPIYEwDoqsiqBjI24mvRmQbInK5jq33fyypaCBxX08hMkfmdOqj6haT33EqWw==- dependencies:- array-back "^2.0.0"- deep-extend "~0.6.0"- lodash.padend "^4.6.1"- typical "^2.6.1"- wordwrapjs "^3.0.0"--test-value@^3.0.0:- version "3.0.0"- resolved "https://registry.yarnpkg.com/test-value/-/test-value-3.0.0.tgz#9168c062fab11a86b8d444dd968bb4b73851ce92"- integrity sha512-sVACdAWcZkSU9x7AOmJo5TqE+GyNJknHaHsMrR6ZnhjVlVN9Yx6FjHrsKZ3BjIpPCT68zYesPWkakrNupwfOTQ==- dependencies:- array-back "^2.0.0"- typical "^2.6.1"-to-regex-range@^5.0.1:version "5.0.1"resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4"@@ -2606,11 +2466,6 @@ tree-kill@^1.2.2:resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc"integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==- version "1.10.0"- resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a"- integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==-tslib@^1.11.1:version "1.14.1"resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"@@ -2663,21 +2518,11 @@ typedarray-to-buffer@^3.1.5:dependencies:is-typedarray "^1.0.0"-typescript@^3.7.5:- version "3.9.10"- resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.10.tgz#70f3910ac7a51ed6bef79da7800690b19bf778b8"- integrity sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==-typescript@^4.9.5:version "4.9.5"resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==-typical@^2.6.1:- version "2.6.1"- resolved "https://registry.yarnpkg.com/typical/-/typical-2.6.1.tgz#5c080e5d661cbbe38259d2e70a3c7253e873881d"- integrity sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==-uglify-js@^3.1.4:version "3.17.4"resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.4.tgz#61678cf5fa3f5b7eb789bb345df29afb8257c22c"@@ -2793,14 +2638,6 @@ wordwrap@^1.0.0:resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==-wordwrapjs@^3.0.0:- version "3.0.0"- resolved "https://registry.yarnpkg.com/wordwrapjs/-/wordwrapjs-3.0.0.tgz#c94c372894cadc6feb1a66bff64e1d9af92c5d1e"- integrity sha512-mO8XtqyPvykVCsrwj5MlOVWvSnCdT+C+QVbm6blradR7JExAhbkZ7hZ9A+9NUtwzSqrlUo9a67ws0EiILrvRpw==- dependencies:- reduce-flatten "^1.0.1"- typical "^2.6.1"-wrap-ansi@^7.0.0:version "7.0.0"resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"diff --git a/api-service/playground_client/__init__.py b/api-service/playground_client/__init__.pyindex e514b7fcc..166fa83a6 100644--- a/api-service/playground_client/__init__.py+++ b/api-service/playground_client/__init__.py@@ -30,13 +30,10 @@ from playground_client.exceptions import ApiAttributeErrorfrom playground_client.exceptions import ApiException# import models into sdk packagefrom playground_client.models.create_deployment_request import CreateDeploymentRequest-from playground_client.models.create_mock_body_data_request import CreateMockBodyDataRequestfrom playground_client.models.create_sessions_request import CreateSessionsRequestfrom playground_client.models.deployment_response import DeploymentResponsefrom playground_client.models.entry_info import EntryInfo-from playground_client.models.file import Filefrom playground_client.models.list_filesystem_dir_response import ListFilesystemDirResponse-from playground_client.models.mock_data_response import MockDataResponsefrom playground_client.models.open_port import OpenPortfrom playground_client.models.out_stderr_response import OutStderrResponsefrom playground_client.models.out_stdout_response import OutStdoutResponsediff --git a/api-service/playground_client/api/default_api.py b/api-service/playground_client/api/default_api.pyindex 3bef233b6..b133da5cb 100644--- a/api-service/playground_client/api/default_api.py+++ b/api-service/playground_client/api/default_api.py@@ -22,11 +22,9 @@ from pydantic import Field, StrictBool, StrictStrfrom typing import Optionalfrom playground_client.models.create_deployment_request import CreateDeploymentRequest-from playground_client.models.create_mock_body_data_request import CreateMockBodyDataRequestfrom playground_client.models.create_sessions_request import CreateSessionsRequestfrom playground_client.models.deployment_response import DeploymentResponsefrom playground_client.models.list_filesystem_dir_response import ListFilesystemDirResponse-from playground_client.models.mock_data_response import MockDataResponsefrom playground_client.models.process_response import ProcessResponsefrom playground_client.models.read_filesystem_file_response import ReadFilesystemFileResponsefrom playground_client.models.session_response import SessionResponse@@ -216,154 +214,6 @@ class DefaultApi(object):collection_formats=_collection_formats,_request_auth=_params.get('_request_auth'))- @validate_arguments- def create_mock_body_data(self, create_mock_body_data_request : CreateMockBodyDataRequest, **kwargs) -> MockDataResponse: # noqa: E501- """create_mock_body_data # noqa: E501-- This method makes a synchronous HTTP request by default. To make an- asynchronous HTTP request, please pass async_req=True-- >>> thread = api.create_mock_body_data(create_mock_body_data_request, async_req=True)- >>> result = thread.get()-- :param create_mock_body_data_request: (required)- :type create_mock_body_data_request: CreateMockBodyDataRequest- :param async_req: Whether to execute the request asynchronously.- :type async_req: bool, optional- :param _preload_content: if False, the urllib3.HTTPResponse object will- be returned without reading/decoding response- data. Default is True.- :type _preload_content: bool, optional- :param _request_timeout: timeout setting for this request. If one- number provided, it will be total request- timeout. It can also be a pair (tuple) of- (connection, read) timeouts.- :return: Returns the result object.- If the method is called asynchronously,- returns the request thread.- :rtype: MockDataResponse- """- kwargs['_return_http_data_only'] = True- return self.create_mock_body_data_with_http_info(create_mock_body_data_request, **kwargs) # noqa: E501-- @validate_arguments- def create_mock_body_data_with_http_info(self, create_mock_body_data_request : CreateMockBodyDataRequest, **kwargs): # noqa: E501- """create_mock_body_data # noqa: E501-- This method makes a synchronous HTTP request by default. To make an- asynchronous HTTP request, please pass async_req=True-- >>> thread = api.create_mock_body_data_with_http_info(create_mock_body_data_request, async_req=True)- >>> result = thread.get()-- :param create_mock_body_data_request: (required)- :type create_mock_body_data_request: CreateMockBodyDataRequest- :param async_req: Whether to execute the request asynchronously.- :type async_req: bool, optional- :param _return_http_data_only: response data without head status code- and headers- :type _return_http_data_only: bool, optional- :param _preload_content: if False, the urllib3.HTTPResponse object will- be returned without reading/decoding response- data. Default is True.- :type _preload_content: bool, optional- :param _request_timeout: timeout setting for this request. If one- number provided, it will be total request- timeout. It can also be a pair (tuple) of- (connection, read) timeouts.- :param _request_auth: set to override the auth_settings for an a single- request; this effectively ignores the authentication- in the spec for a single request.- :type _request_auth: dict, optional- :type _content_type: string, optional: force content-type for the request- :return: Returns the result object.- If the method is called asynchronously,- returns the request thread.- :rtype: tuple(MockDataResponse, status_code(int), headers(HTTPHeaderDict))- """-- _params = locals()-- _all_params = [- 'create_mock_body_data_request'- ]- _all_params.extend(- [- 'async_req',- '_return_http_data_only',- '_preload_content',- '_request_timeout',- '_request_auth',- '_content_type',- '_headers'- ]- )-- # validate the arguments- for _key, _val in _params['kwargs'].items():- if _key not in _all_params:- raise ApiTypeError(- "Got an unexpected keyword argument '%s'"- " to method create_mock_body_data" % _key- )- _params[_key] = _val- del _params['kwargs']-- _collection_formats = {}-- # process the path parameters- _path_params = {}-- # process the query parameters- _query_params = []-- # process the header parameters- _header_params = dict(_params.get('_headers', {}))-- # process the form parameters- _form_params = []- _files = {}-- # process the body parameter- _body_params = None- if _params['create_mock_body_data_request']:- _body_params = _params['create_mock_body_data_request']-- # set the HTTP header `Accept`- _header_params['Accept'] = self.api_client.select_header_accept(- ['application/json']) # noqa: E501-- # set the HTTP header `Content-Type`- _content_types_list = _params.get('_content_type',- self.api_client.select_header_content_type(- ['application/json']))- if _content_types_list:- _header_params['Content-Type'] = _content_types_list-- # authentication setting- _auth_settings = [] # noqa: E501-- _response_types_map = {- '200': "MockDataResponse",- }-- return self.api_client.call_api(- '/mock/body', 'POST',- _path_params,- _query_params,- _header_params,- body=_body_params,- post_params=_form_params,- files=_files,- response_types_map=_response_types_map,- auth_settings=_auth_settings,- async_req=_params.get('async_req'),- _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501- _preload_content=_params.get('_preload_content', True),- _request_timeout=_params.get('_request_timeout'),- collection_formats=_collection_formats,- _request_auth=_params.get('_request_auth'))-@validate_argumentsdef create_sessions(self, create_sessions_request : CreateSessionsRequest, **kwargs) -> SessionResponse: # noqa: E501"""create_sessions # noqa: E501diff --git a/api-service/playground_client/docs/CreateMockBodyDataRequest.md b/api-service/playground_client/docs/CreateMockBodyDataRequest.mddeleted file mode 100644index b209a909f..000000000--- a/api-service/playground_client/docs/CreateMockBodyDataRequest.md+++ /dev/null@@ -1,29 +0,0 @@-# CreateMockBodyDataRequest---## Properties-Name | Type | Description | Notes------------- | ------------- | ------------- | --------------**files** | [**List[File]**](File.md) | |-**target_interface** | **str** | |--## Example--```python-from playground_client.models.create_mock_body_data_request import CreateMockBodyDataRequest--# TODO update the JSON string below-json = "{}"-# create an instance of CreateMockBodyDataRequest from a JSON string-create_mock_body_data_request_instance = CreateMockBodyDataRequest.from_json(json)-# print the JSON string representation of the object-print CreateMockBodyDataRequest.to_json()--# convert the object into a dict-create_mock_body_data_request_dict = create_mock_body_data_request_instance.to_dict()-# create an instance of CreateMockBodyDataRequest from a dict-create_mock_body_data_request_form_dict = create_mock_body_data_request.from_dict(create_mock_body_data_request_dict)-```-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)--diff --git a/api-service/playground_client/docs/DefaultApi.md b/api-service/playground_client/docs/DefaultApi.mdindex 868dbe8d0..4022d8adf 100644--- a/api-service/playground_client/docs/DefaultApi.md+++ b/api-service/playground_client/docs/DefaultApi.md@@ -5,7 +5,6 @@ All URIs are relative to *https://localhost:49160*Method | HTTP request | Description------------- | ------------- | -------------[**create_deployment**](DefaultApi.md#create_deployment) | **PUT** /deployments/{projectID} |-[**create_mock_body_data**](DefaultApi.md#create_mock_body_data) | **POST** /mock/body |[**create_sessions**](DefaultApi.md#create_sessions) | **POST** /sessions |[**delete_filesystem_entry**](DefaultApi.md#delete_filesystem_entry) | **DELETE** /sessions/{sessionID}/filesystem |[**delete_session**](DefaultApi.md#delete_session) | **DELETE** /sessions/{sessionID} |@@ -86,67 +85,6 @@ No authorization required[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)-# **create_mock_body_data**-> MockDataResponse create_mock_body_data(create_mock_body_data_request)----### Example--```python-from __future__ import print_function-import time-import os-import playground_client-from playground_client.rest import ApiException-from pprint import pprint-# Defining the host is optional and defaults to https://localhost:49160-# See configuration.py for a list of all supported configuration parameters.-configuration = playground_client.Configuration(- host = "https://localhost:49160"-)---# Enter a context with an instance of the API client-with playground_client.ApiClient(configuration) as api_client:- # Create an instance of the API class- api_instance = playground_client.DefaultApi(api_client)- create_mock_body_data_request = playground_client.CreateMockBodyDataRequest() # CreateMockBodyDataRequest |-- try:- api_response = api_instance.create_mock_body_data(create_mock_body_data_request)- print("The response of DefaultApi->create_mock_body_data:\n")- pprint(api_response)- except Exception as e:- print("Exception when calling DefaultApi->create_mock_body_data: %s\n" % e)-```--### Parameters--Name | Type | Description | Notes-------------- | ------------- | ------------- | -------------- **create_mock_body_data_request** | [**CreateMockBodyDataRequest**](CreateMockBodyDataRequest.md)| |--### Return type--[**MockDataResponse**](MockDataResponse.md)--### Authorization--No authorization required--### HTTP request headers-- - **Content-Type**: application/json- - **Accept**: application/json--### HTTP response details-| Status code | Description | Response headers |-|-------------|-------------|------------------|-**200** | Ok | - |--[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)-# **create_sessions**> SessionResponse create_sessions(create_sessions_request)diff --git a/api-service/playground_client/docs/File.md b/api-service/playground_client/docs/File.mddeleted file mode 100644index d303049b0..000000000--- a/api-service/playground_client/docs/File.md+++ /dev/null@@ -1,29 +0,0 @@-# File---## Properties-Name | Type | Description | Notes------------- | ------------- | ------------- | --------------**name** | **str** | |-**content** | **str** | |--## Example--```python-from playground_client.models.file import File--# TODO update the JSON string below-json = "{}"-# create an instance of File from a JSON string-file_instance = File.from_json(json)-# print the JSON string representation of the object-print File.to_json()--# convert the object into a dict-file_dict = file_instance.to_dict()-# create an instance of File from a dict-file_form_dict = file.from_dict(file_dict)-```-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)--diff --git a/api-service/playground_client/docs/MockDataResponse.md b/api-service/playground_client/docs/MockDataResponse.mddeleted file mode 100644index b88485d3a..000000000--- a/api-service/playground_client/docs/MockDataResponse.md+++ /dev/null@@ -1,28 +0,0 @@-# MockDataResponse---## Properties-Name | Type | Description | Notes------------- | ------------- | ------------- | --------------**body_data** | **str** | |--## Example--```python-from playground_client.models.mock_data_response import MockDataResponse--# TODO update the JSON string below-json = "{}"-# create an instance of MockDataResponse from a JSON string-mock_data_response_instance = MockDataResponse.from_json(json)-# print the JSON string representation of the object-print MockDataResponse.to_json()--# convert the object into a dict-mock_data_response_dict = mock_data_response_instance.to_dict()-# create an instance of MockDataResponse from a dict-mock_data_response_form_dict = mock_data_response.from_dict(mock_data_response_dict)-```-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)--diff --git a/api-service/playground_client/models/__init__.py b/api-service/playground_client/models/__init__.pyindex 630984c3c..98d072dd4 100644--- a/api-service/playground_client/models/__init__.py+++ b/api-service/playground_client/models/__init__.py@@ -15,13 +15,10 @@ from __future__ import absolute_import# import models into model packagefrom playground_client.models.create_deployment_request import CreateDeploymentRequest-from playground_client.models.create_mock_body_data_request import CreateMockBodyDataRequestfrom playground_client.models.create_sessions_request import CreateSessionsRequestfrom playground_client.models.deployment_response import DeploymentResponsefrom playground_client.models.entry_info import EntryInfo-from playground_client.models.file import Filefrom playground_client.models.list_filesystem_dir_response import ListFilesystemDirResponse-from playground_client.models.mock_data_response import MockDataResponsefrom playground_client.models.open_port import OpenPortfrom playground_client.models.out_stderr_response import OutStderrResponsefrom playground_client.models.out_stdout_response import OutStdoutResponsediff --git a/api-service/playground_client/models/create_mock_body_data_request.py b/api-service/playground_client/models/create_mock_body_data_request.pydeleted file mode 100644index 2f22442dc..000000000--- a/api-service/playground_client/models/create_mock_body_data_request.py+++ /dev/null@@ -1,85 +0,0 @@-# coding: utf-8--"""- playground-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501-- The version of the OpenAPI document: 1.0.0- Generated by: https://openapi-generator.tech-"""---from __future__ import annotations-from inspect import getfullargspec-import pprint-import re # noqa: F401-import json---from typing import List-from pydantic import BaseModel, Field, StrictStr-from playground_client.models.file import File--class CreateMockBodyDataRequest(BaseModel):- """NOTE: This class is auto generated by OpenAPI Generator.- Ref: https://openapi-generator.tech-- Do not edit the class manually.- """- files: List[File] = ...- target_interface: StrictStr = Field(..., alias="targetInterface")- __properties = ["files", "targetInterface"]-- class Config:- allow_population_by_field_name = True- validate_assignment = True-- def to_str(self) -> str:- """Returns the string representation of the model using alias"""- return pprint.pformat(self.dict(by_alias=True))-- def to_json(self) -> str:- """Returns the JSON representation of the model using alias"""- return json.dumps(self.to_dict())-- @classmethod- def from_json(cls, json_str: str) -> CreateMockBodyDataRequest:- """Create an instance of CreateMockBodyDataRequest from a JSON string"""- return cls.from_dict(json.loads(json_str))-- def to_dict(self):- """Returns the dictionary representation of the model using alias"""- _dict = self.dict(by_alias=True,- exclude={- },- exclude_none=True)- # override the default output from pydantic by calling `to_dict()` of each item in files (list)- _items = []- if self.files:- for _item in self.files:- if _item:- _items.append(_item.to_dict())- _dict['files'] = _items- return _dict-- @classmethod- def from_dict(cls, obj: dict) -> CreateMockBodyDataRequest:- """Create an instance of CreateMockBodyDataRequest from a dict"""- if obj is None:- return None-- if type(obj) is not dict:- return CreateMockBodyDataRequest.parse_obj(obj)-- # raise errors for additional fields in the input- for _key in obj.keys():- if _key not in cls.__properties:- raise ValueError("Error due to additional fields (not defined in CreateMockBodyDataRequest) in the input: " + obj)-- _obj = CreateMockBodyDataRequest.parse_obj({- "files": [File.from_dict(_item) for _item in obj.get("files")] if obj.get("files") is not None else None,- "target_interface": obj.get("targetInterface")- })- return _obj-diff --git a/api-service/playground_client/models/file.py b/api-service/playground_client/models/file.pydeleted file mode 100644index 612d1fbaa..000000000--- a/api-service/playground_client/models/file.py+++ /dev/null@@ -1,77 +0,0 @@-# coding: utf-8--"""- playground-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501-- The version of the OpenAPI document: 1.0.0- Generated by: https://openapi-generator.tech-"""---from __future__ import annotations-from inspect import getfullargspec-import pprint-import re # noqa: F401-import json----from pydantic import BaseModel, StrictStr--class File(BaseModel):- """NOTE: This class is auto generated by OpenAPI Generator.- Ref: https://openapi-generator.tech-- Do not edit the class manually.- """- name: StrictStr = ...- content: StrictStr = ...- __properties = ["name", "content"]-- class Config:- allow_population_by_field_name = True- validate_assignment = True-- def to_str(self) -> str:- """Returns the string representation of the model using alias"""- return pprint.pformat(self.dict(by_alias=True))-- def to_json(self) -> str:- """Returns the JSON representation of the model using alias"""- return json.dumps(self.to_dict())-- @classmethod- def from_json(cls, json_str: str) -> File:- """Create an instance of File from a JSON string"""- return cls.from_dict(json.loads(json_str))-- def to_dict(self):- """Returns the dictionary representation of the model using alias"""- _dict = self.dict(by_alias=True,- exclude={- },- exclude_none=True)- return _dict-- @classmethod- def from_dict(cls, obj: dict) -> File:- """Create an instance of File from a dict"""- if obj is None:- return None-- if type(obj) is not dict:- return File.parse_obj(obj)-- # raise errors for additional fields in the input- for _key in obj.keys():- if _key not in cls.__properties:- raise ValueError("Error due to additional fields (not defined in File) in the input: " + obj)-- _obj = File.parse_obj({- "name": obj.get("name"),- "content": obj.get("content")- })- return _obj-diff --git a/api-service/playground_client/models/mock_data_response.py b/api-service/playground_client/models/mock_data_response.pydeleted file mode 100644index 4c7254d6d..000000000--- a/api-service/playground_client/models/mock_data_response.py+++ /dev/null@@ -1,75 +0,0 @@-# coding: utf-8--"""- playground-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501-- The version of the OpenAPI document: 1.0.0- Generated by: https://openapi-generator.tech-"""---from __future__ import annotations-from inspect import getfullargspec-import pprint-import re # noqa: F401-import json----from pydantic import BaseModel, Field, StrictStr--class MockDataResponse(BaseModel):- """NOTE: This class is auto generated by OpenAPI Generator.- Ref: https://openapi-generator.tech-- Do not edit the class manually.- """- body_data: StrictStr = Field(..., alias="bodyData")- __properties = ["bodyData"]-- class Config:- allow_population_by_field_name = True- validate_assignment = True-- def to_str(self) -> str:- """Returns the string representation of the model using alias"""- return pprint.pformat(self.dict(by_alias=True))-- def to_json(self) -> str:- """Returns the JSON representation of the model using alias"""- return json.dumps(self.to_dict())-- @classmethod- def from_json(cls, json_str: str) -> MockDataResponse:- """Create an instance of MockDataResponse from a JSON string"""- return cls.from_dict(json.loads(json_str))-- def to_dict(self):- """Returns the dictionary representation of the model using alias"""- _dict = self.dict(by_alias=True,- exclude={- },- exclude_none=True)- return _dict-- @classmethod- def from_dict(cls, obj: dict) -> MockDataResponse:- """Create an instance of MockDataResponse from a dict"""- if obj is None:- return None-- if type(obj) is not dict:- return MockDataResponse.parse_obj(obj)-- # raise errors for additional fields in the input- for _key in obj.keys():- if _key not in cls.__properties:- raise ValueError("Error due to additional fields (not defined in MockDataResponse) in the input: " + obj)-- _obj = MockDataResponse.parse_obj({- "body_data": obj.get("bodyData")- })- return _obj-diff --git a/api-service/playground_client/test/test_create_mock_body_data_request.py b/api-service/playground_client/test/test_create_mock_body_data_request.pydeleted file mode 100644index d6dd1bab6..000000000--- a/api-service/playground_client/test/test_create_mock_body_data_request.py+++ /dev/null@@ -1,65 +0,0 @@-# coding: utf-8--"""- playground-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501-- The version of the OpenAPI document: 1.0.0- Generated by: https://openapi-generator.tech-"""---from __future__ import absolute_import--import unittest-import datetime--import playground_client-from playground_client.models.create_mock_body_data_request import CreateMockBodyDataRequest # noqa: E501-from playground_client.rest import ApiException--class TestCreateMockBodyDataRequest(unittest.TestCase):- """CreateMockBodyDataRequest unit test stubs"""-- def setUp(self):- pass-- def tearDown(self):- pass-- def make_instance(self, include_optional):- """Test CreateMockBodyDataRequest- include_option is a boolean, when False only required- params are included, when True both required and- optional params are included """- # uncomment below to create an instance of `CreateMockBodyDataRequest`- """- model = playground_client.models.create_mock_body_data_request.CreateMockBodyDataRequest() # noqa: E501- if include_optional :- return CreateMockBodyDataRequest(- files = [- playground_client.models.file.File(- name = '',- content = '', )- ],- target_interface = ''- )- else :- return CreateMockBodyDataRequest(- files = [- playground_client.models.file.File(- name = '',- content = '', )- ],- target_interface = '',- )- """-- def testCreateMockBodyDataRequest(self):- """Test CreateMockBodyDataRequest"""- # inst_req_only = self.make_instance(include_optional=False)- # inst_req_and_optional = self.make_instance(include_optional=True)--if __name__ == '__main__':- unittest.main()diff --git a/api-service/playground_client/test/test_default_api.py b/api-service/playground_client/test/test_default_api.pyindex 1cbe893bf..e4fd2b5ca 100644--- a/api-service/playground_client/test/test_default_api.py+++ b/api-service/playground_client/test/test_default_api.py@@ -34,12 +34,6 @@ class TestDefaultApi(unittest.TestCase):"""pass- def test_create_mock_body_data(self):- """Test case for create_mock_body_data-- """- pass-def test_create_sessions(self):"""Test case for create_sessionsdiff --git a/api-service/playground_client/test/test_file.py b/api-service/playground_client/test/test_file.pydeleted file mode 100644index 839e05346..000000000--- a/api-service/playground_client/test/test_file.py+++ /dev/null@@ -1,57 +0,0 @@-# coding: utf-8--"""- playground-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501-- The version of the OpenAPI document: 1.0.0- Generated by: https://openapi-generator.tech-"""---from __future__ import absolute_import--import unittest-import datetime--import playground_client-from playground_client.models.file import File # noqa: E501-from playground_client.rest import ApiException--class TestFile(unittest.TestCase):- """File unit test stubs"""-- def setUp(self):- pass-- def tearDown(self):- pass-- def make_instance(self, include_optional):- """Test File- include_option is a boolean, when False only required- params are included, when True both required and- optional params are included """- # uncomment below to create an instance of `File`- """- model = playground_client.models.file.File() # noqa: E501- if include_optional :- return File(- name = '',- content = ''- )- else :- return File(- name = '',- content = '',- )- """-- def testFile(self):- """Test File"""- # inst_req_only = self.make_instance(include_optional=False)- # inst_req_and_optional = self.make_instance(include_optional=True)--if __name__ == '__main__':- unittest.main()diff --git a/api-service/playground_client/test/test_mock_data_response.py b/api-service/playground_client/test/test_mock_data_response.pydeleted file mode 100644index 6236c4e4d..000000000--- a/api-service/playground_client/test/test_mock_data_response.py+++ /dev/null@@ -1,55 +0,0 @@-# coding: utf-8--"""- playground-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501-- The version of the OpenAPI document: 1.0.0- Generated by: https://openapi-generator.tech-"""---from __future__ import absolute_import--import unittest-import datetime--import playground_client-from playground_client.models.mock_data_response import MockDataResponse # noqa: E501-from playground_client.rest import ApiException--class TestMockDataResponse(unittest.TestCase):- """MockDataResponse unit test stubs"""-- def setUp(self):- pass-- def tearDown(self):- pass-- def make_instance(self, include_optional):- """Test MockDataResponse- include_option is a boolean, when False only required- params are included, when True both required and- optional params are included """- # uncomment below to create an instance of `MockDataResponse`- """- model = playground_client.models.mock_data_response.MockDataResponse() # noqa: E501- if include_optional :- return MockDataResponse(- body_data = ''- )- else :- return MockDataResponse(- body_data = '',- )- """-- def testMockDataResponse(self):- """Test MockDataResponse"""- # inst_req_only = self.make_instance(include_optional=False)- # inst_req_and_optional = self.make_instance(include_optional=True)--if __name__ == '__main__':- unittest.main()diff --git a/api-service/playground_client_README.md b/api-service/playground_client_README.mdindex ca8e14363..80d8f2a5e 100644--- a/api-service/playground_client_README.md+++ b/api-service/playground_client_README.md@@ -67,7 +67,6 @@ All URIs are relative to *https://localhost:49160*Class | Method | HTTP request | Description------------ | ------------- | ------------- | -------------*DefaultApi* | [**create_deployment**](playground_client/docs/DefaultApi.md#create_deployment) | **PUT** /deployments/{projectID} |-*DefaultApi* | [**create_mock_body_data**](playground_client/docs/DefaultApi.md#create_mock_body_data) | **POST** /mock/body |*DefaultApi* | [**create_sessions**](playground_client/docs/DefaultApi.md#create_sessions) | **POST** /sessions |*DefaultApi* | [**delete_filesystem_entry**](playground_client/docs/DefaultApi.md#delete_filesystem_entry) | **DELETE** /sessions/{sessionID}/filesystem |*DefaultApi* | [**delete_session**](playground_client/docs/DefaultApi.md#delete_session) | **DELETE** /sessions/{sessionID} |@@ -86,13 +85,10 @@ Class | Method | HTTP request | Description## Documentation For Models- [CreateDeploymentRequest](playground_client/docs/CreateDeploymentRequest.md)- - [CreateMockBodyDataRequest](playground_client/docs/CreateMockBodyDataRequest.md)- [CreateSessionsRequest](playground_client/docs/CreateSessionsRequest.md)- [DeploymentResponse](playground_client/docs/DeploymentResponse.md)- [EntryInfo](playground_client/docs/EntryInfo.md)- - [File](playground_client/docs/File.md)- [ListFilesystemDirResponse](playground_client/docs/ListFilesystemDirResponse.md)- - [MockDataResponse](playground_client/docs/MockDataResponse.md)- [OpenPort](playground_client/docs/OpenPort.md)- [OutStderrResponse](playground_client/docs/OutStderrResponse.md)- [OutStdoutResponse](playground_client/docs/OutStdoutResponse.md)diff --git a/api-service/session/playground/base.py b/api-service/session/playground/base.pyindex 443e2cf2e..f582eab90 100644--- a/api-service/session/playground/base.py+++ b/api-service/session/playground/base.py@@ -1,19 +1,19 @@import timeimport mathfrom typing import Any-from playground_client.models.list_filesystem_dir_response import ListFilesystemDirResponse-from playground_client.models.mock_data_response import MockDataResponse++from playground_client.models.list_filesystem_dir_response import (+ ListFilesystemDirResponse,+)from playground_client.models.process_response import ProcessResponse-from playground_client.models.read_filesystem_file_response import ReadFilesystemFileResponse+from playground_client.models.read_filesystem_file_response import (+ ReadFilesystemFileResponse,+)from playground_client.models.session_response import SessionResponse+import playground_clientfrom session.env import cmd_with_env_vars-from session.session import GetEnvs, Session-from playground_client.models.create_mock_body_data_request import (- CreateMockBodyDataRequest,-)-import playground_client-from playground_client.models.file import File+class Playground(Session):port_check_interval = 0.5 # 500ms@@ -23,13 +23,11 @@ class Playground(Session):run_command_timeout_frequency = 2 # in Hz- mock_data_filename = "index.ts"-def __init__(self, env_id: str, get_envs: GetEnvs):super().__init__(env_id, get_envs)async def get_open_ports(self):- thread: Any = self.api.get_session(self.id, async_req=True)+ thread: Any = self.api.get_session(self.id, async_req=True)response: SessionResponse = thread.get()return response.ports@@ -133,18 +131,6 @@ class Playground(Session):thread: Any = self.api.delete_filesystem_entry(self.id, path, async_req=True)thread.get()- async def mock_body_data(self, code: str, interface: str):- thread: Any = self.api.create_mock_body_data(- CreateMockBodyDataRequest(- targetInterface=interface,- files=[File(name=self.mock_data_filename, content=code)],- ),- async_req=True,- )-- response: MockDataResponse = thread.get()- return response.body_data-async def delete_dir(self, path: str):thread: Any = self.api.delete_filesystem_entry(self.id, path, async_req=True)thread.get()@@ -154,7 +140,7 @@ class Playground(Session):self.id,path,playground_client.WriteFilesystemFileRequest(content=content),- async_req=True+ async_req=True,)thread.get()