@tikomni/skills 1.0.1 → 1.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tikomni/skills",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "TikOmni skill installer CLI for structured social media crawling in Codex, Claude Code, and OpenClaw",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/mark-ly-wang/TikOmni-Skills#readme",
@@ -42,6 +42,7 @@
42
42
  - Fact fields for the Markdown card go into frontmatter. Do not emit a separate `## Facts` section.
43
43
  - The work-library directory writes only the Markdown card and no extra `.json` sidecar in the same directory.
44
44
  - `primary_text` is the text that is best suited for reading and indexing in the current task.
45
+ - `asr_raw` and `subtitle_raw` are internal preserved text fields. Keep them in the normalized card data, but do not render them as standalone sections in the Markdown body.
45
46
  - `play_count` may be `null`. Leave it empty when missing, and keep `0` only when the platform explicitly returns `0`.
46
47
  - Preferred order for video works:
47
48
  - `subtitle_raw`
@@ -359,18 +359,10 @@ def _markdown_lines(card: Dict[str, Any]) -> List[str]:
359
359
  lines = _frontmatter_lines(card)
360
360
  primary_text = _safe_text(card.get("primary_text"))
361
361
  caption_raw = _safe_text(card.get("caption_raw"))
362
- subtitle_raw = _safe_text(card.get("subtitle_raw"))
363
- asr_raw = _safe_text(card.get("asr_raw"))
364
362
 
365
363
  lines.extend(["", "## 主文本", primary_text or ""])
366
364
  if caption_raw and caption_raw != primary_text:
367
365
  lines.extend(["", "## 原始文案", caption_raw])
368
- if asr_raw and subtitle_raw and asr_raw == subtitle_raw and asr_raw != primary_text:
369
- lines.extend(["", "## 原始转写", asr_raw])
370
- elif subtitle_raw and subtitle_raw != primary_text:
371
- lines.extend(["", "## 原始字幕", subtitle_raw])
372
- if asr_raw and asr_raw not in {primary_text, subtitle_raw}:
373
- lines.extend(["", "## 原始转写", asr_raw])
374
366
  if card.get("missing_fields"):
375
367
  lines.extend(["", "## 缺失字段"])
376
368
  for entry in card["missing_fields"]: