markdown-flow 0.3.3__tar.gz → 0.3.4__tar.gz
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.
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/PKG-INFO +1 -1
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/__init__.py +1 -1
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/escaping.py +7 -1
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow.egg-info/PKG-INFO +1 -1
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/LICENSE +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/README.md +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/constants.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/constants_system_prompt.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/core.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/enums.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/exceptions.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/formatter/__init__.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/formatter/classifier.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/formatter/format.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/formatter/patterns.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/formatter/sanitize.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/formatter/stream.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/formatter/types.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/higher_priority_prompt.md +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/llm.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/models.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/parser/__init__.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/parser/code_fence_utils.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/parser/html_comment_utils.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/parser/interaction.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/parser/json_parser.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/parser/output.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/parser/preprocessor.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/parser/validation.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/parser/variable.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/providers/__init__.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/providers/config.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/providers/openai.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/system_prompt.md +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow/tag_filter.py +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow.egg-info/SOURCES.txt +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow.egg-info/dependency_links.txt +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/markdown_flow.egg-info/top_level.txt +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/pyproject.toml +0 -0
- {markdown_flow-0.3.3 → markdown_flow-0.3.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: markdown-flow
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: An agent library designed to parse and process MarkdownFlow documents
|
|
5
5
|
Project-URL: Homepage, https://github.com/ai-shifu/markdown-flow-agent-py
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/ai-shifu/markdown-flow-agent-py/issues
|
|
@@ -48,7 +48,13 @@ def escape_interaction_text(text: str) -> str:
|
|
|
48
48
|
char = text[index]
|
|
49
49
|
if char == ".":
|
|
50
50
|
run = len(text) - index - len(text[index:].lstrip("."))
|
|
51
|
-
|
|
51
|
+
# A run of three or more is the `...` delimiter. A shorter one still needs escaping
|
|
52
|
+
# when a literal backslash precedes it, because the parser would read that backslash
|
|
53
|
+
# and the dot as an escape pair and drop the backslash -- `a\\.b` would come back as
|
|
54
|
+
# `a.b`, the round trip would fail, and the question would be refused. Escaping the
|
|
55
|
+
# dot puts a second backslash in front of it, which the parser reads as one literal
|
|
56
|
+
# backslash followed by an escaped dot: exactly the text that went in.
|
|
57
|
+
if run >= 3 or (index > 0 and text[index - 1] == "\\"):
|
|
52
58
|
out.append("\\." * run)
|
|
53
59
|
else:
|
|
54
60
|
out.append("." * run)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: markdown-flow
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: An agent library designed to parse and process MarkdownFlow documents
|
|
5
5
|
Project-URL: Homepage, https://github.com/ai-shifu/markdown-flow-agent-py
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/ai-shifu/markdown-flow-agent-py/issues
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|