knowme-careerforge-skill 0.0.1 → 0.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.
Files changed (47) hide show
  1. package/README.md +6 -9
  2. package/README.zh-CN.md +6 -9
  3. package/SKILL.md +95 -116
  4. package/agents/claude/knowme-careerforge.md +9 -8
  5. package/agents/codex/knowme-careerforge.yaml +15 -6
  6. package/agents/cursor/knowme-careerforge.mdc +7 -6
  7. package/agents/opencode/skill.yaml +1 -1
  8. package/agents/windsurf/knowme-careerforge.rules +11 -8
  9. package/dist/cli/src/commands/init.d.ts +1 -1
  10. package/dist/cli/src/commands/init.js +37 -10
  11. package/dist/cli/src/index.js +65 -22
  12. package/dist/scripts/render-pdf.d.ts +0 -9
  13. package/dist/scripts/render-pdf.js +5 -68
  14. package/dist/scripts/rendering/render-pdf.d.ts +11 -0
  15. package/dist/scripts/rendering/render-pdf.js +109 -0
  16. package/dist/scripts/validate-ats.d.ts +0 -21
  17. package/dist/scripts/validate-ats.js +5 -132
  18. package/dist/scripts/validate-layout.d.ts +0 -22
  19. package/dist/scripts/validate-layout.js +5 -124
  20. package/dist/scripts/validation/validate-ats.d.ts +23 -0
  21. package/dist/scripts/validation/validate-ats.js +173 -0
  22. package/dist/scripts/validation/validate-layout.d.ts +24 -0
  23. package/dist/scripts/validation/validate-layout.js +164 -0
  24. package/package.json +15 -12
  25. package/scripts/Agent.md +138 -0
  26. package/scripts/{build-gallery.py → build/build-gallery.py} +128 -99
  27. package/scripts/{build-knowledge.py → build/build-knowledge.py} +9 -1
  28. package/scripts/{release.py → build/release.py} +20 -16
  29. package/scripts/{run-all-tests.py → build/run-all-tests.py} +9 -1
  30. package/scripts/build/sync-version.py +107 -0
  31. package/scripts/{analyze-jd.py → evidence/analyze-jd.py} +34 -45
  32. package/scripts/evidence/extract-evidence.py +348 -0
  33. package/scripts/pipeline/forge.py +142 -0
  34. package/scripts/rendering/render-pdf.py +162 -0
  35. package/scripts/{render-pdf.ts → rendering/render-pdf.ts} +3 -3
  36. package/scripts/template/instantiate-resume.py +178 -0
  37. package/scripts/{search-template.py → template/search-template.py} +44 -42
  38. package/scripts/{validate-ats.ts → validation/validate-ats.ts} +39 -35
  39. package/scripts/{validate-layout.ts → validation/validate-layout.ts} +43 -42
  40. package/scripts/{validate-resume.py → validation/validate-resume.py} +31 -22
  41. package/skill.json +1 -1
  42. package/src/knowledge/index.json +1 -1
  43. package/src/knowledge/resume-schema.json +112 -0
  44. package/src/workflows/forge-resume.md +2 -2
  45. package/src/workflows/review.md +3 -3
  46. package/scripts/instantiate-resume.py +0 -83
  47. package/scripts/sync-version.py +0 -57
@@ -1,57 +0,0 @@
1
- #!/usr/bin/env python3
2
- """
3
- KnowMe CareerForge — Version Synchronization Engine
4
- 将项目根版本号统一同步至 package.json, pyproject.toml, skill.json 与 cli/package.json。
5
- """
6
-
7
- import sys, os, json, re, argparse
8
- from pathlib import Path
9
-
10
- def sync_version(new_version: str):
11
- base_dir = Path(__file__).resolve().parent.parent
12
- print("==============================================================")
13
- print(f" KnowMe CareerForge — Synchronizing Version to v{new_version}")
14
- print("==============================================================")
15
-
16
- # 1. Update package.json
17
- pkg_json_path = base_dir / "package.json"
18
- if pkg_json_path.exists():
19
- data = json.loads(pkg_json_path.read_text(encoding="utf-8"))
20
- data["version"] = new_version
21
- pkg_json_path.write_text(json.dumps(data, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
22
- print(f"[✓] Synced package.json -> {new_version}")
23
-
24
- # 2. Update cli/package.json
25
- cli_pkg_path = base_dir / "cli" / "package.json"
26
- if cli_pkg_path.exists():
27
- data = json.loads(cli_pkg_path.read_text(encoding="utf-8"))
28
- data["version"] = new_version
29
- cli_pkg_path.write_text(json.dumps(data, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
30
- print(f"[✓] Synced cli/package.json -> {new_version}")
31
-
32
- # 3. Update skill.json
33
- skill_json_path = base_dir / "skill.json"
34
- if skill_json_path.exists():
35
- data = json.loads(skill_json_path.read_text(encoding="utf-8"))
36
- data["version"] = new_version
37
- skill_json_path.write_text(json.dumps(data, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
38
- print(f"[✓] Synced skill.json -> {new_version}")
39
-
40
- # 4. Update pyproject.toml
41
- pyproj_path = base_dir / "pyproject.toml"
42
- if pyproj_path.exists():
43
- text = pyproj_path.read_text(encoding="utf-8")
44
- new_text = re.sub(r'version\s*=\s*"[^"]+"', f'version = "{new_version}"', text)
45
- pyproj_path.write_text(new_text, encoding="utf-8")
46
- print(f"[✓] Synced pyproject.toml -> {new_version}")
47
-
48
- print("\n[✓] All package versions successfully synchronized!")
49
-
50
- def main():
51
- parser = argparse.ArgumentParser(description="Synchronize project version")
52
- parser.add_argument("version", nargs="?", default="1.0.0", help="New semantic version (e.g. 1.0.1)")
53
- args = parser.parse_args()
54
- sync_version(args.version)
55
-
56
- if __name__ == "__main__":
57
- main()