@yuhan1124/draw-prompt 0.4.2 → 0.4.3

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.
package/SKILL.md CHANGED
@@ -8,7 +8,7 @@ description: >-
8
8
  画图的指令"、"优化我的出图 prompt"、"按我的风格生成 prompt",或在用 GPT Image 2 /
9
9
  gpt-image-2 出图前需要一段精准提示词时,使用本 skill。
10
10
  metadata:
11
- version: 0.4.2
11
+ version: 0.4.3
12
12
  openclaw:
13
13
  anyBins: ["uv", "python3"]
14
14
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuhan1124/draw-prompt",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Convert natural-language image requests into high-quality gpt-image-2 prompts and Codex handoff blocks.",
5
5
  "type": "commonjs",
6
6
  "bin": {
@@ -135,7 +135,7 @@ def ensure_home() -> None:
135
135
 
136
136
 
137
137
  SCHEMA_VERSION = 1
138
- COMPILER_VERSION = "0.4.2"
138
+ COMPILER_VERSION = "0.4.3"
139
139
 
140
140
 
141
141
  PACKAGED_SKILL_FILES = [
@@ -2488,8 +2488,9 @@ def extract_required_texts(request: str, explicit_texts: list[str]) -> list[str]
2488
2488
  for match in re.finditer(pat, request):
2489
2489
  add_candidate(match.start(1), match.group(1))
2490
2490
  labeled_single_patterns = [
2491
- r"(?:主标题|标题|副标题|主题|时间|地点)\s*(?:写上|写|显示|为|是|叫|[::])\s*([^,,。;;\n]{2,40})",
2492
- r"(?:时间|地点)\s+([^,,。;;\n]{2,40})",
2491
+ r"(?:主标题|标题|副标题|主题|时间|地点)\s*(?:写上|写|显示|为|是|叫|[::])\s*([^,,、。;;\n]{2,40})",
2492
+ r"(?:主标题|标题|副标题|主题|时间|地点)\s+([^,,、。;;\n]{2,40})",
2493
+ r"(?:时间|地点)\s+([^,,、。;;\n]{2,40})",
2493
2494
  r"(?:核心卡片|主要按钮|主按钮|按钮)\s*(?:写上|写|显示|为|是|叫|[::])\s*([^,,。;;\n]{2,30})",
2494
2495
  r"(?:需要)?包含\s*([A-Za-z][A-Za-z0-9_-]{2,30})\s*字样",
2495
2496
  r"(?:名为|叫做|名称是|名字叫)\s*([A-Za-z][A-Za-z0-9_-]{2,30})\b",