unique_toolkit 1.45.3__py3-none-any.whl → 1.45.5__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.
@@ -156,6 +156,7 @@ class DisplayCodeInterpreterFilesPostProcessor(
156
156
  continue
157
157
 
158
158
  is_image = (guess_type(filename)[0] or "").startswith("image/")
159
+ is_html = (guess_type(filename)[0] or "") == "text/html"
159
160
 
160
161
  # Images
161
162
  if is_image:
@@ -168,6 +169,15 @@ class DisplayCodeInterpreterFilesPostProcessor(
168
169
  )
169
170
  changed |= replaced
170
171
 
172
+ # HTML
173
+ elif is_html:
174
+ loop_response.message.text, replaced = _replace_container_html_citation(
175
+ text=loop_response.message.text,
176
+ filename=filename,
177
+ content_id=content_id,
178
+ )
179
+ changed |= replaced
180
+
171
181
  # Files
172
182
  else:
173
183
  loop_response.message.text, replaced = _replace_container_file_citation(
@@ -302,6 +312,30 @@ def _replace_container_image_citation(
302
312
  ), True
303
313
 
304
314
 
315
+ def _replace_container_html_citation(
316
+ text: str, filename: str, content_id: str
317
+ ) -> tuple[str, bool]:
318
+ html_markdown = rf"!?\[.*?\]\(sandbox:/mnt/data/{re.escape(filename)}\)"
319
+
320
+ if not re.search(html_markdown, text):
321
+ logger.info("No HTML markdown found for %s", filename)
322
+ return text, False
323
+
324
+ logger.info("Displaying HTML %s", filename)
325
+ html_rendering_block = f"""```HtmlRendering
326
+ 100%
327
+ 500px
328
+
329
+ unique://content/{content_id}
330
+
331
+ ```"""
332
+ return re.sub(
333
+ html_markdown,
334
+ html_rendering_block,
335
+ text,
336
+ ), True
337
+
338
+
305
339
  def _replace_container_file_citation(
306
340
  text: str, filename: str, ref_number: int
307
341
  ) -> tuple[str, bool]:
@@ -140,6 +140,7 @@ class MagicTableUpdateCellPayload(
140
140
  class ArtifactType(StrEnum):
141
141
  QUESTIONS = "QUESTIONS"
142
142
  FULL_REPORT = "FULL_REPORT"
143
+ AGENTIC_REPORT = "AGENTIC_REPORT"
143
144
 
144
145
 
145
146
  class ArtifactData(BaseModel):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 1.45.3
3
+ Version: 1.45.5
4
4
  Summary:
5
5
  License: Proprietary
6
6
  Author: Cedric Klinkert
@@ -125,6 +125,12 @@ All notable changes to this project will be documented in this file.
125
125
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
126
126
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
127
127
 
128
+ ## [1.45.5] - 2026-01-29
129
+ - Add HTML rendering support for code interpreter generated files
130
+
131
+ ## [1.45.4] - 2026-01-26
132
+ - Add ArtifactType `AGENTIC_REPORT`
133
+
128
134
  ## [1.45.3] - 2026-01-26
129
135
  - Include message log update in subagents and MCP tools
130
136
 
@@ -111,7 +111,7 @@ unique_toolkit/agentic/postprocessor/postprocessor_manager.py,sha256=CoKzVFeLIr1
111
111
  unique_toolkit/agentic/reference_manager/reference_manager.py,sha256=x51CT0D8HHu2LzgXdHGy0leOYpjnsxVbPZ2nc28G9mA,4005
112
112
  unique_toolkit/agentic/responses_api/__init__.py,sha256=9WTO-ef7fGE9Y1QtZJFm8Q_jkwK8Srtl-HWvpAD2Wxs,668
113
113
  unique_toolkit/agentic/responses_api/postprocessors/code_display.py,sha256=h6ZqPR0kPQnxM0ynshYQTa1BrcN8XGbUz9p03m8rOj0,2339
114
- unique_toolkit/agentic/responses_api/postprocessors/generated_files.py,sha256=JWJGxxCfIrBGyf45ic50MwFN4AqOhYSuNFrPXrIhPWI,11727
114
+ unique_toolkit/agentic/responses_api/postprocessors/generated_files.py,sha256=janOVTJtGDXWvWsUjB1pnRfLUVXPSkjjbXHxUS0IjjE,12685
115
115
  unique_toolkit/agentic/responses_api/stream_handler.py,sha256=Y1IM0uiPBdlab5UuOTCsHTaVX-fd9MxfS3xkwhdFie4,647
116
116
  unique_toolkit/agentic/short_term_memory_manager/persistent_short_term_memory_manager.py,sha256=g8I64dKkpwWIXfwpxD1-rLte00hh_PoQ9-fXUAcNQCo,5817
117
117
  unique_toolkit/agentic/thinking_manager/thinking_manager.py,sha256=41QWFsdRrbWlQHBfYCFv726UDom4WbcvaRfjCmoUOQI,4183
@@ -167,7 +167,7 @@ unique_toolkit/agentic/tools/utils/source_handling/schema.py,sha256=iHBKuks6tUy8
167
167
  unique_toolkit/agentic/tools/utils/source_handling/source_formatting.py,sha256=uZ0QXqrPWgId3ZA67dvjHQ6xrW491LK1xxx_sVJmFHg,9160
168
168
  unique_toolkit/agentic/tools/utils/source_handling/tests/test_source_formatting.py,sha256=EA8iVvb3L91OFk2XMbGcFuhe2etqm3Sx9QCYDGiOSOM,6995
169
169
  unique_toolkit/agentic_table/__init__.py,sha256=smJFstF5qH35RmZfzJUigdsVgUVNOza9KxMbraWrm9E,1411
170
- unique_toolkit/agentic_table/schemas.py,sha256=MaG6-LhW5uooAhsyUVOKl8VfCvJ02Drt7dwywJUXKgE,9256
170
+ unique_toolkit/agentic_table/schemas.py,sha256=paIo7xMtnwBDyzjZwnDTyZonWiznD1uvRY-5gKWtwYU,9294
171
171
  unique_toolkit/agentic_table/service.py,sha256=Bgi0B_AT7Mswbud3VI-pNcnc_85xFu4S1dbLttYF7yY,16290
172
172
  unique_toolkit/app/__init__.py,sha256=OaylhLwxeRlsHlcFGSlR5R7oREFsjv9wRdxuVZBYM_8,1371
173
173
  unique_toolkit/app/dev_util.py,sha256=J20peCvrSQKfMGdYPYwCirs3Yq2v_e33GzNBzNKbWN4,5531
@@ -244,7 +244,7 @@ unique_toolkit/short_term_memory/service.py,sha256=5PeVBu1ZCAfyDb2HLVvlmqSbyzBBu
244
244
  unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
245
245
  unique_toolkit/smart_rules/compile.py,sha256=Ozhh70qCn2yOzRWr9d8WmJeTo7AQurwd3tStgBMPFLA,1246
246
246
  unique_toolkit/test_utilities/events.py,sha256=_mwV2bs5iLjxS1ynDCjaIq-gjjKhXYCK-iy3dRfvO3g,6410
247
- unique_toolkit-1.45.3.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
248
- unique_toolkit-1.45.3.dist-info/METADATA,sha256=bhwNMCUjEMrMGswtgAYKlAG2Yz1DKZgTxC7oPFMk43M,48984
249
- unique_toolkit-1.45.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
250
- unique_toolkit-1.45.3.dist-info/RECORD,,
247
+ unique_toolkit-1.45.5.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
248
+ unique_toolkit-1.45.5.dist-info/METADATA,sha256=qOQh95f58XhyiINOIVryMeJiaLEIXX_it-uWUgalJt8,49138
249
+ unique_toolkit-1.45.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
250
+ unique_toolkit-1.45.5.dist-info/RECORD,,