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.
- package/README.md +6 -9
- package/README.zh-CN.md +6 -9
- package/SKILL.md +95 -116
- package/agents/claude/knowme-careerforge.md +9 -8
- package/agents/codex/knowme-careerforge.yaml +15 -6
- package/agents/cursor/knowme-careerforge.mdc +7 -6
- package/agents/opencode/skill.yaml +1 -1
- package/agents/windsurf/knowme-careerforge.rules +11 -8
- package/dist/cli/src/commands/init.d.ts +1 -1
- package/dist/cli/src/commands/init.js +37 -10
- package/dist/cli/src/index.js +65 -22
- package/dist/scripts/render-pdf.d.ts +0 -9
- package/dist/scripts/render-pdf.js +5 -68
- package/dist/scripts/rendering/render-pdf.d.ts +11 -0
- package/dist/scripts/rendering/render-pdf.js +109 -0
- package/dist/scripts/validate-ats.d.ts +0 -21
- package/dist/scripts/validate-ats.js +5 -132
- package/dist/scripts/validate-layout.d.ts +0 -22
- package/dist/scripts/validate-layout.js +5 -124
- package/dist/scripts/validation/validate-ats.d.ts +23 -0
- package/dist/scripts/validation/validate-ats.js +173 -0
- package/dist/scripts/validation/validate-layout.d.ts +24 -0
- package/dist/scripts/validation/validate-layout.js +164 -0
- package/package.json +15 -12
- package/scripts/Agent.md +138 -0
- package/scripts/{build-gallery.py → build/build-gallery.py} +128 -99
- package/scripts/{build-knowledge.py → build/build-knowledge.py} +9 -1
- package/scripts/{release.py → build/release.py} +20 -16
- package/scripts/{run-all-tests.py → build/run-all-tests.py} +9 -1
- package/scripts/build/sync-version.py +107 -0
- package/scripts/{analyze-jd.py → evidence/analyze-jd.py} +34 -45
- package/scripts/evidence/extract-evidence.py +348 -0
- package/scripts/pipeline/forge.py +142 -0
- package/scripts/rendering/render-pdf.py +162 -0
- package/scripts/{render-pdf.ts → rendering/render-pdf.ts} +3 -3
- package/scripts/template/instantiate-resume.py +178 -0
- package/scripts/{search-template.py → template/search-template.py} +44 -42
- package/scripts/{validate-ats.ts → validation/validate-ats.ts} +39 -35
- package/scripts/{validate-layout.ts → validation/validate-layout.ts} +43 -42
- package/scripts/{validate-resume.py → validation/validate-resume.py} +31 -22
- package/skill.json +1 -1
- package/src/knowledge/index.json +1 -1
- package/src/knowledge/resume-schema.json +112 -0
- package/src/workflows/forge-resume.md +2 -2
- package/src/workflows/review.md +3 -3
- package/scripts/instantiate-resume.py +0 -83
- package/scripts/sync-version.py +0 -57
package/scripts/sync-version.py
DELETED
|
@@ -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()
|