codeplain 0.2.16__py3-none-any.whl → 0.2.17__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.
_version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.2.16"
1
+ __version__ = "0.2.17"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codeplain
3
- Version: 0.2.16
3
+ Version: 0.2.17
4
4
  Summary: Transform plain language specifications into working code
5
5
  License-File: LICENSE
6
6
  Classifier: Environment :: Console
@@ -1,4 +1,4 @@
1
- _version.py,sha256=nS1Qf8CA6pxMzqGCeAMZHTKK2igCSNakZ3o7kDK0JIQ,23
1
+ _version.py,sha256=Qi17SZ8BBtfJyUgJ1-dmlKGJmEwoMRO4CvqGYPFRAhw,23
2
2
  codeplain_REST_api.py,sha256=KIY0buZ2oStlHN2YyoCWxen8JLFaqWUFuE7zQoJU5e8,19558
3
3
  concept_utils.py,sha256=vwSY4-FmxyqaDBxhntYzqG8t9pXvAWwiULP0DYQI32o,7905
4
4
  diff_utils.py,sha256=AjiQlqo5pRos_8hVXZo5yBurl5BzSrTMGrQv4dCtRCg,1198
@@ -33,7 +33,7 @@ render_machine/conformance_tests.py,sha256=SHDGMDw--fO4mglEEG5sGecc-uFbG-XNZl017
33
33
  render_machine/implementation_code_helpers.py,sha256=LdHNLoKgVtrDaGH2APX8C9vjNjLBUhu2V7OAaJvm4rM,2009
34
34
  render_machine/render_context.py,sha256=sJY4hDc5OXLZuqgNNuD9oryJynYEctDQIUdoAOh04Vk,21752
35
35
  render_machine/render_types.py,sha256=-Mt5i-XYjtBnKHXj9j9aUST5TbVnzpOwngeBwOl24TE,7430
36
- render_machine/render_utils.py,sha256=7YWaKoI0ceDuThkhzb5FjtB7UvLUV7bYVU94yHnbdOQ,8391
36
+ render_machine/render_utils.py,sha256=rXAxrxZyVIUMqopyP_CvLtFHLsdzx6_W3qB7CkGHh7I,8710
37
37
  render_machine/state_machine_config.py,sha256=sd-P9kdvBYlj0R6aT1RZLFquIwAcbEBNL3aZG-Wo4hw,27988
38
38
  render_machine/states.py,sha256=niFXqayyA_rezCrlzo0hYeHAruErcPzQVF-BeIBGnL8,1968
39
39
  render_machine/triggers.py,sha256=GarwIYPY6ZZzVdRF7yXLB54tofr08NpFZfp5DH6AOuI,1331
@@ -76,8 +76,8 @@ tui/spinner.py,sha256=Ro6Gd9Przf-whuHqPRY6HwI0T57yJjyNPbhDbigZKZE,2471
76
76
  tui/state_handlers.py,sha256=NCAu-Pv2Bc8HG5GHaV47kwZHtbCOh_mBYQAW7DbN0jg,15927
77
77
  tui/styles.css,sha256=XrGdtAjyscJL3Rey2gT0rbuRnMnXgePGiAqySKlcezs,6133
78
78
  tui/widget_helpers.py,sha256=hQKlURgdSC8RT6QgKPzRhSRAIO1bMoLuM3lz_sCc3FU,5819
79
- codeplain-0.2.16.dist-info/METADATA,sha256=V4gPfjNM5HWSavw_xQw3NbPnZBsRQmdlL2sEjdQxPZw,4210
80
- codeplain-0.2.16.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
81
- codeplain-0.2.16.dist-info/entry_points.txt,sha256=oDZkBqu9WhtZApb_K6ia8-fn9aojwmAsgnKELceX5T4,46
82
- codeplain-0.2.16.dist-info/licenses/LICENSE,sha256=pCeKgQ1mXE5OmNUuKOfOZh1T1vqkeCUxghE7N8qgnzc,11345
83
- codeplain-0.2.16.dist-info/RECORD,,
79
+ codeplain-0.2.17.dist-info/METADATA,sha256=Syxh6V13GdVPm_-2yTXcRvAKJ4Eqxrsj1_dRQ0CNzn8,4210
80
+ codeplain-0.2.17.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
81
+ codeplain-0.2.17.dist-info/entry_points.txt,sha256=oDZkBqu9WhtZApb_K6ia8-fn9aojwmAsgnKELceX5T4,46
82
+ codeplain-0.2.17.dist-info/licenses/LICENSE,sha256=pCeKgQ1mXE5OmNUuKOfOZh1T1vqkeCUxghE7N8qgnzc,11345
83
+ codeplain-0.2.17.dist-info/RECORD,,
@@ -201,8 +201,14 @@ def execute_script( # noqa: C901
201
201
  f"The {script_type} script timed out after {script_timeout} seconds. {script_type} script output stored in: {temp_file_path}"
202
202
  )
203
203
 
204
+ partial_output = ""
205
+ if e.stdout:
206
+ decoded = e.stdout.decode("utf-8") if isinstance(e.stdout, bytes) else e.stdout
207
+ sanitized = _sanitize_script_output(decoded)
208
+ if sanitized:
209
+ partial_output = f"\nPartial test script output:\n{sanitized}"
204
210
  return (
205
211
  TIMEOUT_ERROR_EXIT_CODE,
206
- f"{script_type} script did not finish in {script_timeout} seconds.",
212
+ f"{script_type} script did not finish in {script_timeout} seconds.{partial_output}",
207
213
  temp_file_path,
208
214
  )