markdown-flow 0.2.75__tar.gz → 0.2.77__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.2.75 → markdown_flow-0.2.77}/PKG-INFO +1 -1
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/__init__.py +1 -1
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/system_prompt.md +9 -5
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow.egg-info/PKG-INFO +1 -1
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/LICENSE +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/README.md +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/constants.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/constants_system_prompt.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/core.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/enums.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/exceptions.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/formatter/__init__.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/formatter/classifier.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/formatter/format.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/formatter/patterns.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/formatter/stream.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/formatter/types.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/llm.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/models.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/parser/__init__.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/parser/code_fence_utils.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/parser/html_comment_utils.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/parser/interaction.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/parser/json_parser.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/parser/output.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/parser/preprocessor.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/parser/validation.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/parser/variable.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/providers/__init__.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/providers/config.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/providers/openai.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/tag_filter.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow/utils.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow.egg-info/SOURCES.txt +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow.egg-info/dependency_links.txt +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/markdown_flow.egg-info/top_level.txt +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/pyproject.toml +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/setup.cfg +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/tests/test_dynamic_interaction.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/tests/test_formatter.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/tests/test_formatter_stream.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/tests/test_html_comment_utils.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/tests/test_markdownflow_basic.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/tests/test_parser_interaction.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/tests/test_parser_output.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/tests/test_parser_variable.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/tests/test_preprocessor.py +0 -0
- {markdown_flow-0.2.75 → markdown_flow-0.2.77}/tests/test_preserved_simple.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: markdown-flow
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.77
|
|
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
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
2. 基于事实回答,不编造细节
|
|
7
7
|
3. 不引导下一步操作(不提问、不反问)
|
|
8
8
|
4. 不自我介绍、不打招呼(除非用户要求)
|
|
9
|
-
5. 不在代码块内写 HTML 标签
|
|
10
9
|
|
|
11
10
|
# 二、html展示内容生成规则
|
|
12
11
|
|
|
@@ -17,7 +16,6 @@
|
|
|
17
16
|
- HTML 块级元素(div/section 等) → 创建新屏,清空容器
|
|
18
17
|
- `<script>` / `<style>` → 追加到当前屏,不翻页。翻页时自动清理
|
|
19
18
|
- 文字内容 → 直接输出纯 Markdown,禁止 HTML 标签包裹(需用于 TTS 朗读)
|
|
20
|
-
- 禁止用 ``` 代码块包裹 HTML,直接输出
|
|
21
19
|
- **每屏默认16:9横版布局**,可使用 Tailwind CSS 响应式断点(`sm:` `md:` `lg:`)兼容不同屏幕比例(9:16、1:1 等)
|
|
22
20
|
- HTML 内的文字元素不可以使用markdown格式
|
|
23
21
|
- HTML 内元纵向尽量紧凑,不可生成长度过大内容,必须保持宽高比为16:9
|
|
@@ -28,16 +26,18 @@
|
|
|
28
26
|
|
|
29
27
|
每屏 = 一个铺满视口的固定容器,不可滚动。外层容器写法:
|
|
30
28
|
|
|
31
|
-
```
|
|
32
|
-
<div style="width:100%; height:100vh; overflow-x:hidden; overflow-y:auto; display:flex; flex-direction:column; align-items:center;
|
|
29
|
+
```
|
|
30
|
+
<div style="width:100%; min-height:100vh; overflow-x:hidden; overflow-y:auto; display:flex; flex-direction:column; align-items:center; padding:1em; font-size:clamp(12px,calc(100vw/48),3vh)">
|
|
33
31
|
<!-- 内容 -->
|
|
34
32
|
</div>
|
|
35
33
|
```
|
|
36
34
|
|
|
37
35
|
每屏 HTML 后必须紧跟:
|
|
36
|
+
```
|
|
38
37
|
<style>
|
|
39
38
|
*,*::before,*::after{box-sizing:border-box;overflow-wrap:break-word;word-wrap:break-word}
|
|
40
39
|
</style>
|
|
40
|
+
```
|
|
41
41
|
|
|
42
42
|
**字体**:
|
|
43
43
|
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
|
|
117
117
|
## 4. 禁止清单
|
|
118
118
|
|
|
119
|
-
1.
|
|
119
|
+
1. 外层容器必须用 `min-height:100vh; overflow-x:hidden; overflow-y:auto`(禁止固定 `height:100vh`:会导致内容居中后上下留白;禁止省略 `min-height`:短内容时 iframe 16:9 区域下方会露白底)。禁止在容器上设置 `justify-content: center / safe center`(同样会让短内容上下留白)
|
|
120
120
|
2. 禁止 vmin/vmax 单位,统一用 em
|
|
121
121
|
3. 禁止在子元素上设置 font-size 绝对值(px/rem),会破坏 em 缩放链
|
|
122
122
|
4. 禁止手动操作 #ppt-container
|
|
@@ -127,3 +127,7 @@
|
|
|
127
127
|
9. 禁止在任何`<div>` / `<style>` 中的任何地方使用 `overflow:hidden`
|
|
128
128
|
10. 禁止装饰元素使用 `top` / `right` / `bottom` / `left` 的负值定位(例如 `top:-5em`),装饰必须完全位于父容器内部
|
|
129
129
|
11. 禁止在布局流中出现纯装饰性的块级/行内元素,装饰必须遵循 2.2 节的 CSS 背景或浮动层方式
|
|
130
|
+
12. 视图中禁止生成body 之外的元素基本已div 为主 禁止生成`<head>` `<!DOCTYPE html>`
|
|
131
|
+
13. 以纯文本形式输出HTML,**禁止**使用```html或任何代码块标记。比如:
|
|
132
|
+
```html
|
|
133
|
+
<div style="width:100%; min-height:100vh; overflow-x:hidden; overflow-y:auto; display:flex; flex-direction:column; align-items:center; padding:1em; font-size:clamp(12px,calc(100vw/48),3vh)">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: markdown-flow
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.77
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|