setta 0.0.3.dev8__py3-none-any.whl → 0.0.3.dev9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
setta/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.0.3.dev8"
1
+ __version__ = "0.0.3.dev9"
@@ -40,15 +40,14 @@ async def route_update_interactive_code(
40
40
  lsp_writers=Depends(get_lsp_writers),
41
41
  ):
42
42
  idx = 0
43
- dependencies = set()
44
43
  content = []
45
44
  for p in x.projects:
46
- result = await update_interactive_code(p, tasks, lsp_writers, idx)
47
- dependencies.update(result["dependencies"])
48
- content.extend(result["content"])
45
+ initialContent = await update_interactive_code(p, tasks, lsp_writers, idx)
46
+ content.extend(initialContent)
49
47
  idx += 1
50
- dependencies = list(dependencies)
51
- return {"dependencies": dependencies, "content": content}
48
+
49
+ inMemorySubprocessInfo = tasks.getInMemorySubprocessInfo()
50
+ return {"inMemorySubprocessInfo": inMemorySubprocessInfo, "content": content}
52
51
 
53
52
 
54
53
  async def update_interactive_code(p, tasks, lsp_writers, idx):
@@ -93,12 +92,12 @@ async def update_interactive_code(p, tasks, lsp_writers, idx):
93
92
  }
94
93
  )
95
94
 
96
- dependencies, content = await tasks.add_custom_fns(
95
+ initialContent = await tasks.add_custom_fns(
97
96
  code_graph,
98
97
  to_cache=exporter_obj_in_memory,
99
98
  )
100
99
 
101
- return {"dependencies": dependencies, "content": content}
100
+ return initialContent
102
101
 
103
102
 
104
103
  @router.post(C.ROUTE_FORMAT_CODE)
@@ -103,6 +103,7 @@
103
103
  "WS_IN_MEMORY_FN_RETURN": "inMemoryFnReturn",
104
104
  "WS_TERMINAL_RESIZE": "terminalResize",
105
105
  "WS_LSP_STATUS": "lspStatus",
106
+ "WS_IN_MEMORY_FN_AVG_RUN_TIME": "inMemoryFnAvgRunTime",
106
107
  "SETTA_GENERATED_PYTHON": "SETTA_GENERATED_PYTHON",
107
108
  "SETTA_GENERATED_PYTHON_IMPORTS": "SETTA_GENERATED_PYTHON_IMPORTS",
108
109
  "TEMPLATE_VAR_IMPORT_PATH_SUFFIX": "import_path",