zcode-app-cli 3.3.5-1

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 (169) hide show
  1. package/LICENSE +24 -0
  2. package/README.md +642 -0
  3. package/bin/zcode.js +848 -0
  4. package/config.example.json +110 -0
  5. package/package.json +81 -0
  6. package/vendor/.node-bundle-meta.json +6 -0
  7. package/vendor/extraction.json +11 -0
  8. package/vendor/node_modules/@zcode/tui/dist/index.js +161875 -0
  9. package/vendor/node_modules/@zcode/tui/package.json +14 -0
  10. package/vendor/packages/android-emulator-plugin/.mcp.json +19 -0
  11. package/vendor/packages/android-emulator-plugin/.zcode-plugin/plugin.json +63 -0
  12. package/vendor/packages/android-emulator-plugin/README.md +134 -0
  13. package/vendor/packages/android-emulator-plugin/commands/android-dev.md +11 -0
  14. package/vendor/packages/android-emulator-plugin/dist/lib/path.d.ts +4 -0
  15. package/vendor/packages/android-emulator-plugin/dist/lib/path.js +17 -0
  16. package/vendor/packages/android-emulator-plugin/dist/lib/result.d.ts +5 -0
  17. package/vendor/packages/android-emulator-plugin/dist/lib/result.js +22 -0
  18. package/vendor/packages/android-emulator-plugin/dist/lib/run.d.ts +18 -0
  19. package/vendor/packages/android-emulator-plugin/dist/lib/run.js +99 -0
  20. package/vendor/packages/android-emulator-plugin/dist/mcp/server.d.ts +3 -0
  21. package/vendor/packages/android-emulator-plugin/dist/mcp/server.js +47607 -0
  22. package/vendor/packages/android-emulator-plugin/dist/providers/app.d.ts +39 -0
  23. package/vendor/packages/android-emulator-plugin/dist/providers/app.js +50 -0
  24. package/vendor/packages/android-emulator-plugin/dist/providers/avd.d.ts +37 -0
  25. package/vendor/packages/android-emulator-plugin/dist/providers/avd.js +185 -0
  26. package/vendor/packages/android-emulator-plugin/dist/providers/build.d.ts +68 -0
  27. package/vendor/packages/android-emulator-plugin/dist/providers/build.js +131 -0
  28. package/vendor/packages/android-emulator-plugin/dist/providers/config.d.ts +7 -0
  29. package/vendor/packages/android-emulator-plugin/dist/providers/config.js +29 -0
  30. package/vendor/packages/android-emulator-plugin/dist/providers/device.d.ts +20 -0
  31. package/vendor/packages/android-emulator-plugin/dist/providers/device.js +91 -0
  32. package/vendor/packages/android-emulator-plugin/dist/providers/logs.d.ts +15 -0
  33. package/vendor/packages/android-emulator-plugin/dist/providers/logs.js +31 -0
  34. package/vendor/packages/android-emulator-plugin/dist/providers/preflight.d.ts +15 -0
  35. package/vendor/packages/android-emulator-plugin/dist/providers/preflight.js +123 -0
  36. package/vendor/packages/android-emulator-plugin/dist/providers/project-template.d.ts +13 -0
  37. package/vendor/packages/android-emulator-plugin/dist/providers/project-template.js +211 -0
  38. package/vendor/packages/android-emulator-plugin/dist/providers/project.d.ts +33 -0
  39. package/vendor/packages/android-emulator-plugin/dist/providers/project.js +195 -0
  40. package/vendor/packages/android-emulator-plugin/dist/providers/screenshot.d.ts +14 -0
  41. package/vendor/packages/android-emulator-plugin/dist/providers/screenshot.js +73 -0
  42. package/vendor/packages/android-emulator-plugin/dist/providers/sdk.d.ts +14 -0
  43. package/vendor/packages/android-emulator-plugin/dist/providers/sdk.js +185 -0
  44. package/vendor/packages/android-emulator-plugin/dist/providers/ui.d.ts +92 -0
  45. package/vendor/packages/android-emulator-plugin/dist/providers/ui.js +146 -0
  46. package/vendor/packages/android-emulator-plugin/hooks/hooks.json +3 -0
  47. package/vendor/packages/android-emulator-plugin/package.json +35 -0
  48. package/vendor/packages/android-emulator-plugin/skills/android-dev/INSTALL_ENVIRONMENT.md +357 -0
  49. package/vendor/packages/android-emulator-plugin/skills/android-dev/SKILL.md +73 -0
  50. package/vendor/packages/android-emulator-plugin/templates/compose-app/README.md +5 -0
  51. package/vendor/packages/document-skills-plugin/.zcode-plugin/plugin.json +8 -0
  52. package/vendor/packages/document-skills-plugin/package.json +8 -0
  53. package/vendor/packages/document-skills-plugin/skills/docx/LICENSE.txt +13 -0
  54. package/vendor/packages/document-skills-plugin/skills/docx/SKILL.md +201 -0
  55. package/vendor/packages/document-skills-plugin/skills/docx/references/chart-templates.md +386 -0
  56. package/vendor/packages/document-skills-plugin/skills/docx/references/common-rules.md +419 -0
  57. package/vendor/packages/document-skills-plugin/skills/docx/references/decorations.md +537 -0
  58. package/vendor/packages/document-skills-plugin/skills/docx/references/design-system.md +1797 -0
  59. package/vendor/packages/document-skills-plugin/skills/docx/references/docx-js-advanced.md +257 -0
  60. package/vendor/packages/document-skills-plugin/skills/docx/references/docx-js-core.md +332 -0
  61. package/vendor/packages/document-skills-plugin/skills/docx/references/faq.md +323 -0
  62. package/vendor/packages/document-skills-plugin/skills/docx/references/math-formulas.md +276 -0
  63. package/vendor/packages/document-skills-plugin/skills/docx/references/ooxml.md +222 -0
  64. package/vendor/packages/document-skills-plugin/skills/docx/references/toc.md +264 -0
  65. package/vendor/packages/document-skills-plugin/skills/docx/routes/comment.md +88 -0
  66. package/vendor/packages/document-skills-plugin/skills/docx/routes/create.md +207 -0
  67. package/vendor/packages/document-skills-plugin/skills/docx/routes/edit.md +115 -0
  68. package/vendor/packages/document-skills-plugin/skills/docx/routes/format.md +120 -0
  69. package/vendor/packages/document-skills-plugin/skills/docx/routes/read.md +114 -0
  70. package/vendor/packages/document-skills-plugin/skills/docx/scenes/academic.md +783 -0
  71. package/vendor/packages/document-skills-plugin/skills/docx/scenes/contract.md +463 -0
  72. package/vendor/packages/document-skills-plugin/skills/docx/scenes/copywriting.md +139 -0
  73. package/vendor/packages/document-skills-plugin/skills/docx/scenes/exam.md +698 -0
  74. package/vendor/packages/document-skills-plugin/skills/docx/scenes/official-doc.md +411 -0
  75. package/vendor/packages/document-skills-plugin/skills/docx/scenes/report.md +340 -0
  76. package/vendor/packages/document-skills-plugin/skills/docx/scenes/resume.md +534 -0
  77. package/vendor/packages/document-skills-plugin/skills/docx/scripts/__init__.py +1 -0
  78. package/vendor/packages/document-skills-plugin/skills/docx/scripts/add_toc_placeholders.py +749 -0
  79. package/vendor/packages/document-skills-plugin/skills/docx/scripts/document.py +1333 -0
  80. package/vendor/packages/document-skills-plugin/skills/docx/scripts/postcheck.py +807 -0
  81. package/vendor/packages/document-skills-plugin/skills/docx/scripts/templates/comments.xml +3 -0
  82. package/vendor/packages/document-skills-plugin/skills/docx/scripts/templates/commentsExtended.xml +3 -0
  83. package/vendor/packages/document-skills-plugin/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
  84. package/vendor/packages/document-skills-plugin/skills/docx/scripts/templates/commentsIds.xml +3 -0
  85. package/vendor/packages/document-skills-plugin/skills/docx/scripts/templates/people.xml +3 -0
  86. package/vendor/packages/document-skills-plugin/skills/docx/scripts/utilities.py +374 -0
  87. package/vendor/packages/document-skills-plugin/skills/docx/setup.sh +177 -0
  88. package/vendor/packages/document-skills-plugin/skills/pdf/LICENSE.txt +13 -0
  89. package/vendor/packages/document-skills-plugin/skills/pdf/SKILL.md +919 -0
  90. package/vendor/packages/document-skills-plugin/skills/pdf/briefs/academic.md +1058 -0
  91. package/vendor/packages/document-skills-plugin/skills/pdf/briefs/creative.md +770 -0
  92. package/vendor/packages/document-skills-plugin/skills/pdf/briefs/poster.md +702 -0
  93. package/vendor/packages/document-skills-plugin/skills/pdf/briefs/process-advanced.md +284 -0
  94. package/vendor/packages/document-skills-plugin/skills/pdf/briefs/process.md +319 -0
  95. package/vendor/packages/document-skills-plugin/skills/pdf/briefs/report.md +1659 -0
  96. package/vendor/packages/document-skills-plugin/skills/pdf/configs/components.md +153 -0
  97. package/vendor/packages/document-skills-plugin/skills/pdf/configs/fonts.md +93 -0
  98. package/vendor/packages/document-skills-plugin/skills/pdf/configs/visual_framework.md +263 -0
  99. package/vendor/packages/document-skills-plugin/skills/pdf/references/resume-academic.tex +130 -0
  100. package/vendor/packages/document-skills-plugin/skills/pdf/references/resume-altacv.tex +190 -0
  101. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/cover_validate.js +367 -0
  102. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/design_engine.py +2816 -0
  103. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/html2pdf-next.js +754 -0
  104. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/html2poster.js +256 -0
  105. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/pdf.py +2959 -0
  106. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/pdf_qa.py +901 -0
  107. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/poster_validate.py +1337 -0
  108. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/setup.sh +269 -0
  109. package/vendor/packages/document-skills-plugin/skills/pdf/scripts/toc_validate.py +2075 -0
  110. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/charts.md +320 -0
  111. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/cover-backgrounds.md +384 -0
  112. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/cover.md +1442 -0
  113. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/fill-engine.md +527 -0
  114. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/geometry.md +142 -0
  115. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/overflow.md +630 -0
  116. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/pagination.md +367 -0
  117. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/palette.md +217 -0
  118. package/vendor/packages/document-skills-plugin/skills/pdf/typesetting/typography.md +20 -0
  119. package/vendor/packages/ios-simulator-plugin/.mcp.json +15 -0
  120. package/vendor/packages/ios-simulator-plugin/.zcode-plugin/plugin.json +34 -0
  121. package/vendor/packages/ios-simulator-plugin/README.md +111 -0
  122. package/vendor/packages/ios-simulator-plugin/commands/ios-dev.md +11 -0
  123. package/vendor/packages/ios-simulator-plugin/dist/lib/path.d.ts +4 -0
  124. package/vendor/packages/ios-simulator-plugin/dist/lib/path.js +18 -0
  125. package/vendor/packages/ios-simulator-plugin/dist/lib/result.d.ts +5 -0
  126. package/vendor/packages/ios-simulator-plugin/dist/lib/result.js +20 -0
  127. package/vendor/packages/ios-simulator-plugin/dist/lib/run.d.ts +17 -0
  128. package/vendor/packages/ios-simulator-plugin/dist/lib/run.js +83 -0
  129. package/vendor/packages/ios-simulator-plugin/dist/mcp/server.d.ts +3 -0
  130. package/vendor/packages/ios-simulator-plugin/dist/mcp/server.js +46833 -0
  131. package/vendor/packages/ios-simulator-plugin/dist/providers/build.d.ts +112 -0
  132. package/vendor/packages/ios-simulator-plugin/dist/providers/build.js +99 -0
  133. package/vendor/packages/ios-simulator-plugin/dist/providers/logs.d.ts +21 -0
  134. package/vendor/packages/ios-simulator-plugin/dist/providers/logs.js +26 -0
  135. package/vendor/packages/ios-simulator-plugin/dist/providers/preflight.d.ts +12 -0
  136. package/vendor/packages/ios-simulator-plugin/dist/providers/preflight.js +62 -0
  137. package/vendor/packages/ios-simulator-plugin/dist/providers/project.d.ts +35 -0
  138. package/vendor/packages/ios-simulator-plugin/dist/providers/project.js +288 -0
  139. package/vendor/packages/ios-simulator-plugin/dist/providers/screenshot.d.ts +22 -0
  140. package/vendor/packages/ios-simulator-plugin/dist/providers/screenshot.js +30 -0
  141. package/vendor/packages/ios-simulator-plugin/dist/providers/sim.d.ts +60 -0
  142. package/vendor/packages/ios-simulator-plugin/dist/providers/sim.js +116 -0
  143. package/vendor/packages/ios-simulator-plugin/dist/providers/ui.d.ts +57 -0
  144. package/vendor/packages/ios-simulator-plugin/dist/providers/ui.js +67 -0
  145. package/vendor/packages/ios-simulator-plugin/hooks/hooks.json +3 -0
  146. package/vendor/packages/ios-simulator-plugin/package.json +35 -0
  147. package/vendor/packages/ios-simulator-plugin/skills/ios-dev/SKILL.md +45 -0
  148. package/vendor/packages/ios-simulator-plugin/templates/swiftui-app/README.md +5 -0
  149. package/vendor/packages/restore-legacy-sessions-plugin/.zcode-plugin/plugin.json +9 -0
  150. package/vendor/packages/restore-legacy-sessions-plugin/README.md +35 -0
  151. package/vendor/packages/restore-legacy-sessions-plugin/commands/restore-legacy-sessions.md +11 -0
  152. package/vendor/packages/restore-legacy-sessions-plugin/package.json +8 -0
  153. package/vendor/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions/SKILL.md +92 -0
  154. package/vendor/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions/scripts/restore-conversation.mjs +648 -0
  155. package/vendor/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions/scripts/scan-legacy-sessions.mjs +422 -0
  156. package/vendor/packages/skill-creator-plugin/.zcode-plugin/plugin.json +8 -0
  157. package/vendor/packages/skill-creator-plugin/package.json +8 -0
  158. package/vendor/packages/skill-creator-plugin/skills/skill-creator/SKILL.md +159 -0
  159. package/vendor/packages/zcode-guide-plugin/.zcode-plugin/plugin.json +8 -0
  160. package/vendor/packages/zcode-guide-plugin/README.md +22 -0
  161. package/vendor/packages/zcode-guide-plugin/package.json +8 -0
  162. package/vendor/packages/zcode-guide-plugin/skills/diagnosing-commands/SKILL.md +66 -0
  163. package/vendor/packages/zcode-guide-plugin/skills/diagnosing-hooks/SKILL.md +66 -0
  164. package/vendor/packages/zcode-guide-plugin/skills/diagnosing-mcp/SKILL.md +97 -0
  165. package/vendor/packages/zcode-guide-plugin/skills/diagnosing-plugins/SKILL.md +59 -0
  166. package/vendor/packages/zcode-guide-plugin/skills/diagnosing-skills/SKILL.md +61 -0
  167. package/vendor/packages/zcode-guide-plugin/skills/zcode-configuration-guide/SKILL.md +99 -0
  168. package/vendor/zcode.cjs +2926 -0
  169. package/zcode-runtime.lock.json +8 -0
@@ -0,0 +1,534 @@
1
+ # Scene: Resume / CV
2
+
3
+ ## Goal
4
+
5
+ Generate a complete, authentic, well-structured, position-targeted resume with stable Word formatting. Must simultaneously meet:
6
+ - Authentic and credible content, clear position targeting
7
+ - ATS-friendly, stable Word layout
8
+ - Clean structure, professional visual design, easy to scan
9
+
10
+ **Execution priority** (when conflicting): Position relevance > Information readability > ATS compatibility > Visual decoration
11
+
12
+ **Forbidden:** Producing advice-only / fragments / half-finished drafts; outputting chat-style explanations.
13
+
14
+ → Font profile: **B (Visual)** — see `references/common-rules.md`
15
+ → Placeholder convention & universal prohibitions — see `references/common-rules.md`
16
+
17
+ ---
18
+
19
+ ## Scope
20
+
21
+ Default: generate a position-oriented general resume. Switch to English resume, academic CV, international format, or design portfolio style only when explicitly requested by the user.
22
+
23
+ ---
24
+
25
+ ## Resume Type Routing
26
+
27
+ Auto-select module order based on user background and target:
28
+
29
+ ### General Resume (default)
30
+ Name & Contact → Target Position → Profile Summary (optional) → Core Skills → Work Experience → Projects → Education → Certifications / Awards
31
+
32
+ ### New Graduate Resume
33
+ Name & Contact → Target Position → Education → Internship Experience → Projects → Campus Activities / Competitions / Awards → Skills & Certifications
34
+
35
+ ### Technical Role Resume
36
+ Name & Contact → Target Direction → Profile Summary (optional) → Tech Stack / Core Skills → Work Experience → Projects → Education → Open Source / Papers / Patents / Competitions
37
+
38
+ ### Academic CV
39
+ Name & Contact → Research Direction / Target → Education → Research Experience → Papers / Patents / Projects / Grants → Teaching / Academic Service → Awards / Skills / Languages
40
+
41
+ ---
42
+
43
+ ## Input Processing Rules
44
+
45
+ 1. If user provides a target position or JD → **must reorganize and rewrite content around position requirements**
46
+ 2. If user provides a raw draft → prioritize restructuring, phrasing refinement, and priority reordering; do not rewrite into an unfamiliar career
47
+ 3. **Never fabricate** companies, positions, degrees, projects, certifications, awards, papers, patents, data results, or achievements
48
+ 4. If critical data is missing → use conservative expressions or placeholder `【Please fill in: ______】`; never fabricate precise numbers
49
+ 5. A single resume should generally serve only one primary career direction
50
+
51
+ ---
52
+
53
+ ## Content Quality Constraints
54
+
55
+ ### Core Principles
56
+ 1. Resume must revolve around the target position — do not spread all experiences equally
57
+ 2. Most relevant experiences, projects, and skills must be **placed first and detailed**
58
+ 3. Terminology, company names, position titles, date formats, and skill names must be consistent
59
+ 4. Must demonstrate: **personal positioning → capability tags → relevant experience → provable results**
60
+ 5. No piling of vague self-praise; no inspirational writing or chronological dumps
61
+
62
+ ### Experience Writing Standards
63
+
64
+ Each experience bullet should demonstrate: **Action + Object/Context + Method + Result/Impact**
65
+
66
+ **Recommended verbs:** Led, built, drove, optimized, refactored, designed, delivered, coordinated, improved, reduced, achieved
67
+
68
+ **Rules:**
69
+ - "Responsible for" / "participated in" are not absolutely forbidden, but must include scope and results
70
+ - Each bullet is concise — one core contribution per bullet
71
+ - Quantify when possible, but do not force-bold all numbers
72
+ - Recent experience gets detail; low-relevance/low-value experience gets compressed or removed
73
+ - Reverse chronological order — most recent and relevant first
74
+ - Expand the most recent 2 experiences; compress earlier ones
75
+
76
+ ### Profile Summary / Self-Assessment
77
+ 1. Not mandatory
78
+ 2. If included, frame as "Profile Summary" — **3–4 lines max**
79
+ 3. Focus on: years of experience, career direction, core capabilities, representative achievements, position fit
80
+ 4. **Forbidden** as main content: "hardworking", "strong sense of responsibility", "team player", "quick learner", "outgoing personality"
81
+
82
+ ### Truthfulness & Risk Control
83
+ 1. Never fabricate experiences, achievements, education, awards, or certifications
84
+ 2. Never upgrade "participated in" to "led" unless user information supports it
85
+ 3. Never attribute team results entirely to the individual
86
+ 4. Never fabricate revenue, conversion rates, headcount, budgets, or technical metrics
87
+ 5. If no data available, use restrained expressions: "improved delivery efficiency", "shortened processing cycle", "supported core business launch"
88
+
89
+ ---
90
+
91
+ ## Length Control
92
+
93
+ | Candidate Type | Target Pages |
94
+ |---------------|-------------|
95
+ | New graduate / <3 years experience | **1 page** |
96
+ | 3–10 years experience | 1–2 pages |
97
+ | Senior manager / researcher / academic CV | May exceed 2 pages, but must maintain information density |
98
+
99
+ **Compression rules:**
100
+ - Experiences >5 years old with low relevance should be compressed
101
+ - Experiences >10 years old and irrelevant may be omitted
102
+ - Never pad low-value experiences just to "look comprehensive"
103
+
104
+ ---
105
+
106
+ ## ATS & Structure Constraints
107
+
108
+ 1. Core information must be plain text — never rely on images, icons, text boxes, or headers/footers for key content
109
+ 2. No embedded charts, objects, SmartArt, or WordArt
110
+ 3. Experience descriptions use consistent bullet symbols — no complex auto-numbering
111
+ 4. Bullets within the same position should be compact — no excess blank lines
112
+
113
+ **Table layout vs. ATS balance:** The 3 visual templates (A/B/C) use Table-based layouts for Word visual quality. In strict ATS scenarios (user explicitly says "ATS priority"), prefer Template B (single-column) with reduced table dependency. Default: visual quality first.
114
+
115
+ ---
116
+
117
+ ## Module Naming
118
+
119
+ Use only standard, universal, recruiter-familiar names:
120
+ - Personal Info, Target Position, Profile Summary, Core Skills, Work Experience, Projects, Education, Certifications, Awards, Languages
121
+
122
+ **Forbidden fancy names:** "My Growth Journey", "Self-Appreciation", "Shining Moments", "Life Motto"
123
+
124
+ ---
125
+
126
+ ## Template Disease Prevention
127
+
128
+ 1. Do not include irrelevant identity tags (political affiliation, hometown, etc.) unless user explicitly requests
129
+ 2. Do not place low-priority modules (hobbies, languages, personality traits) before work experience
130
+ 3. Do not combine cover letter and resume in one document (unless user explicitly requests)
131
+ 4. Do not let template feel overpower actual personal information
132
+ 5. Do not let "self-assessment" occupy the golden area of the page (should come after core skills/experience)
133
+
134
+ ---
135
+
136
+ ## Template Selection
137
+
138
+ Three templates are provided, auto-selected based on user needs:
139
+
140
+ | Template | Layout | Best For | Color Style |
141
+ |----------|--------|----------|-------------|
142
+ | A | Left sidebar + right body | General purpose, tech roles | Dark grey sidebar + blue bar headings |
143
+ | B | Dark header banner + single column | Content-heavy / senior candidates | Dark blue header + underline headings |
144
+ | C | Left sidebar + vertical-line headings | International / bilingual / foreign companies | Blue sidebar + left-border headings |
145
+
146
+ **Selection logic:**
147
+ - Default: Template A
148
+ - Lots of content (expected > 1 page) → Template B (no sidebar, better space utilization)
149
+ - User explicitly requests bilingual / English → Template C
150
+
151
+ ### Industry Color Suggestions
152
+
153
+ | Career Direction | Sidebar BG | Accent Color | Recommended Template |
154
+ |-----------------|-----------|-------------|---------------------|
155
+ | Tech / Internet | `#1A1F36` (deep blue-purple) | `#667eea` (amethyst) | A or C |
156
+ | Finance / Consulting | `#0F2027` (deep sea blue) | `#D4AF37` (gold) | A or B |
157
+ | Design / Creative | `#2D1B30` (deep purple) | `#f5576c` (coral pink) | A or C |
158
+ | Education / Training | `#1A3A3A` (dark green) | `#3CB4A0` (mint green) | A |
159
+ | Medical / Health | `#0E2030` (dark cyan) | `#3888A8` (medical blue) | B |
160
+ | General / Default | `#303030` (warm dark neutral) | `#B89870` (warm accent) | A |
161
+
162
+ When industry is unspecified, use default warm neutral palette. This aligns with the Visual Profile warm-neutral guidance in `design-system.md`.
163
+
164
+ ## Key Rules
165
+
166
+ - **NO cover page / NO TOC**
167
+ - **Target: 1 page** (2 pages max for senior roles)
168
+ - **Compact spacing**: `line: 276` (1.15x)
169
+ - All templates use **bilingual section headings** (e.g., "Work Experience 工作经历")
170
+
171
+ ---
172
+
173
+ ## Template A: Left Sidebar + Color Bar Headings
174
+
175
+ ### Color Palette
176
+ ```js
177
+ const S = {
178
+ bg: "3B4F5C", // sidebar background (dark grey-blue)
179
+ text: "D8E2E8", // sidebar text
180
+ label: "8BA0AD", // sidebar secondary text
181
+ accent: "2F97B8", // accent color (blue-cyan)
182
+ title: "1A2D38", // body heading
183
+ body: "2C3E4A", // body content
184
+ sec: "6B8592", // secondary info (dates etc.)
185
+ };
186
+ ```
187
+
188
+ ### Layout Structure
189
+ ```
190
+ ┌──────────┬──────────────────────┐
191
+ │ [Photo] │ ██ Profile ██ │ ← Blue bar heading
192
+ │ │ Summary text... │
193
+ │ Name │ │
194
+ │ Title │ ██ Work Experience ██│
195
+ │ │ Company Role Date │
196
+ │ ──────── │ ▸ Achievement... │
197
+ │ Basic │ ▸ Achievement... │
198
+ │ Info │ │
199
+ │ │ ██ Projects ██ │
200
+ │ ──────── │ ... │
201
+ │ Contact │ │
202
+ │ │ ██ Education ██ │
203
+ │ ──────── │ ... │
204
+ │ Skills │ │
205
+ │ Java ●●●●○│ │
206
+ │ Go ●●●○○│ │
207
+ │ │ │
208
+ │ ──────── │ │
209
+ │ Certs │ │
210
+ └──────────┴──────────────────────┘
211
+ 30% 70%
212
+ ```
213
+
214
+ ### Implementation Notes
215
+
216
+ **Page setup:**
217
+ ```js
218
+ page: { margin: { top: 0, bottom: 0, left: 0, right: 0 } }
219
+ // Use Table to simulate columns: columnWidths: [3400, 8506]
220
+ // ⚠️ Row height must use "exact" with safety margin to prevent overflow blank pages
221
+ // Row height: height: { value: 16038, rule: "exact" }
222
+ // 16038 = 16838(A4 height) - 1200(safety margin for cross-engine compatibility)
223
+ ```
224
+
225
+ **Sidebar element order:**
226
+ 1. Photo placeholder (rectangle + border, width 2400 DXA, height 1800)
227
+ 2. Name (32pt bold white SimHei) + Title (18pt accent)
228
+ 3. Basic info (DOB / degree / school)
229
+ 4. Contact info (phone / email / address)
230
+ 5. Skill ratings (name + ●○ dot rating, 5 levels each)
231
+ 6. Certificates list
232
+
233
+ **Right-side section headings (color bar style):**
234
+ ```js
235
+ // Full-width bar background + white Chinese text + lighter English text
236
+ new Table({ columnWidths:[7600], rows:[new TableRow({ children:[
237
+ new TableCell({
238
+ shading: { fill: S.accent, type: ShadingType.CLEAR },
239
+ margins: { top:40, bottom:40, left:200, right:100 },
240
+ children: [new Paragraph({ children: [
241
+ new TextRun({ text: "Work Experience ", size:22, bold:true, color:"FFFFFF", font:"SimHei" }),
242
+ new TextRun({ text: "Experience", size:18, color:"C8E8F0", font:"Times New Roman", italics:true }),
243
+ ] })],
244
+ })
245
+ ] })] });
246
+ ```
247
+
248
+ **Experience entry format:**
249
+ ```js
250
+ // Line 1: Company(bold) + Title(accent) + Date(right-aligned)
251
+ new Paragraph({
252
+ tabStops: [{ type: TabStopType.RIGHT, position: 7200 }],
253
+ children: [
254
+ new TextRun({ text: "Company Name", size:22, bold:true, color:S.title }),
255
+ new TextRun({ text: " Role Title", size:20, color:S.accent }),
256
+ new TextRun({ text: "\t2023.06 — Present", size:17, color:S.sec }),
257
+ ]
258
+ });
259
+ // Line 2+: ▸ bullet points
260
+ ```
261
+
262
+ ---
263
+
264
+ ## Template B: Dark Header Banner + Single Column
265
+
266
+ ### Color Palette
267
+ ```js
268
+ const C = {
269
+ dark: "1A3352", // header background (dark blue)
270
+ accent: "2980B9", // accent color
271
+ title: "1A2636", // heading
272
+ body: "2C3E50", // body text
273
+ sec: "6B8599", // secondary info
274
+ light: "E8EFF5", // light background
275
+ };
276
+ ```
277
+
278
+ ### Layout Structure
279
+ ```
280
+ ┌────────────────────────────────┐
281
+ │ ██████████████████████████████ │ ← Dark blue background banner
282
+ │ █ Name Title █ │ Contains name / title /
283
+ │ █ Phone | Email | Location █ │ contact / basic info
284
+ │ █ DOB | Degree | School █ │
285
+ │ ██████████████████████████████ │
286
+ │ │
287
+ │ Profile │ ← Underline heading
288
+ │ ───────────────────────────── │
289
+ │ Summary text... │
290
+ │ │
291
+ │ Work Experience │
292
+ │ ───────────────────────────── │
293
+ │ Company | Role Date │
294
+ │ • Achievement... │
295
+ │ ... │
296
+ │ │
297
+ │ Skills │
298
+ │ ───────────────────────────── │
299
+ │ Programming ●●●●○ Java/Go/...│ ← Rating + details
300
+ └────────────────────────────────┘
301
+ ```
302
+
303
+ ### Implementation Notes
304
+
305
+ **Header banner:**
306
+ ```js
307
+ // Table single row single column, dark background, height 2400 DXA
308
+ new Table({ columnWidths:[11906], rows:[new TableRow({
309
+ height: { value:2400, rule:"exact" },
310
+ children:[new TableCell({
311
+ shading: { fill: C.dark },
312
+ margins: { top:300, bottom:200, left:800, right:800 },
313
+ verticalAlign: VerticalAlign.TOP, // Never use CENTER in exact-height rows (WPS incompatible)
314
+ children: [
315
+ // Line 1: Name(48pt white) + Title
316
+ // Line 2: Phone | Email | Location
317
+ // Line 3: DOB | Degree | School
318
+ ]
319
+ })]
320
+ })] });
321
+ ```
322
+
323
+ **Section headings (underline style):**
324
+ ```js
325
+ new Paragraph({
326
+ borders: { bottom: { style: BorderStyle.SINGLE, size: 2, color: C.accent } },
327
+ children: [
328
+ new TextRun({ text: "Work Experience", size:24, bold:true, color:C.accent, font:"SimHei" }),
329
+ new TextRun({ text: " Experience", size:18, color:C.sec, italics:true }),
330
+ ]
331
+ });
332
+ ```
333
+
334
+ **Skills display (rating + details):**
335
+ ```js
336
+ // Name(bold) + ●○ rating + specific tools list
337
+ new Paragraph({ children: [
338
+ new TextRun({ text: "Programming ", size:19, bold:true, color:C.title }),
339
+ new TextRun({ text: "●●●●○ ", size:13, color:C.accent }),
340
+ new TextRun({ text: "Java / Go / Python / TypeScript", size:18, color:C.sec }),
341
+ ] });
342
+ ```
343
+
344
+ ---
345
+
346
+ ## Template C: Blue Sidebar + Vertical-Line Headings
347
+
348
+ ### Color Palette
349
+ ```js
350
+ const C = {
351
+ side: "4A7C8F", // sidebar background (teal-blue)
352
+ text: "FFFFFF", // sidebar text
353
+ label: "A0C4D0", // sidebar secondary text
354
+ accent: "357A8F", // accent color
355
+ dot: "2F8FAD", // skill dot fill color
356
+ dotDim: "B8D4DE", // skill dot empty color
357
+ title: "1A3040", // body heading
358
+ body: "2C4050", // body content
359
+ sec: "6B8A98", // secondary info
360
+ };
361
+ ```
362
+
363
+ ### Sidebar-Specific Elements
364
+
365
+ **Circular photo placeholder:**
366
+ ```js
367
+ new Paragraph({ alignment: AlignmentType.CENTER,
368
+ children: [new TextRun({ text: "◯", size:80, color:C.label })]
369
+ });
370
+ ```
371
+
372
+ **Language proficiency matrix:**
373
+ ```js
374
+ "English ● ● ● ● ○"
375
+ "Japanese ● ● ○ ○ ○"
376
+ ```
377
+
378
+ **Right-side section headings (left-border style):**
379
+ ```js
380
+ new Paragraph({
381
+ borders: { left: { style: BorderStyle.SINGLE, size:8, color:C.accent, space:8 } },
382
+ indent: { left: 120 },
383
+ children: [
384
+ new TextRun({ text: "Work Experience", size:24, bold:true, color:C.title, font:"SimHei" }),
385
+ new TextRun({ text: " Experience", size:18, color:C.sec, italics:true }),
386
+ ]
387
+ });
388
+ ```
389
+
390
+ **Experience entry format (differs from A):**
391
+ ```js
392
+ // Line 1: Company name (bold)
393
+ // Line 2: Role (accent color) + Date
394
+ // Line 3+: ▸ bullet points
395
+ ```
396
+
397
+ ---
398
+
399
+ ## Universal Rules
400
+
401
+ ### Font Specifications
402
+ | Element | Font | Size | Style |
403
+ |---------|------|------|-------|
404
+ | Name (sidebar) | SimHei | 32pt (size:64) | Bold, white |
405
+ | Name (header) | SimHei | 24pt (size:48) | Bold, white |
406
+ | Section heading | SimHei | 11pt (size:22) | Bold |
407
+ | Company / School | Microsoft YaHei | 11pt (size:22) | Bold |
408
+ | Role title | Microsoft YaHei | 10pt (size:20) | accent color |
409
+ | Date range | Microsoft YaHei | 8.5pt (size:17) | sec color |
410
+ | Bullet description | Microsoft YaHei | 9.5pt (size:19) | body color |
411
+ | Skill dots | Default | 6.5pt (size:13) | accent / dimColor |
412
+
413
+ ### Bullet Symbols
414
+ - Template A / C: `▸` (small triangle)
415
+ - Template B: `•` (round dot)
416
+
417
+ ### Skill Rating Rules
418
+ - 1–5 levels using filled ● and empty ○ dots
419
+ - One skill per line, name on the left, dots on the right
420
+ - Filled dot color: accent; empty dot color: dimColor
421
+
422
+ ### JD Matching Logic
423
+ When user provides a job description:
424
+ 1. Extract key requirements (skills, experience, education)
425
+ 2. Prioritize matching experience items to the top
426
+ 3. Naturally incorporate JD keywords into descriptions
427
+ 4. Highlight relevant skills
428
+
429
+ ### Multi-Page Handling
430
+
431
+ - 1 page content: Sidebar templates (A/C) or single-column template (B)
432
+ - Over 1 page: Prefer Template B; if using A/C, switch page 2 to full-width layout with a name bar at the top (Name | Title)
433
+
434
+ ⚠️ **Multi-page resumes must use multi-section structure:**
435
+
436
+ Page 1 and Page 2 must be **different sections** for independent margin and layout control:
437
+
438
+ ```js
439
+ sections: [
440
+ {
441
+ // Page 1 section — margin 0 (sidebar layout needs full-page)
442
+ properties: { page: { margin: { top: 0, bottom: 0, left: 0, right: 0 } } },
443
+ children: [page1Table],
444
+ },
445
+ {
446
+ // Page 2 section — normal margins with header bar
447
+ properties: { page: { margin: { top: 800, bottom: 600, left: 800, right: 800 } } },
448
+ children: [pageHeader(name, title), ...page2Content],
449
+ },
450
+ ]
451
+ ```
452
+
453
+ ⚠️ **Template B multi-page handling:**
454
+
455
+ Template B header banner uses Table simulation:
456
+ 1. Banner `columnWidths` must equal **page content area width** (pageWidth - marginLeft - marginRight), not full page width
457
+ 2. If banner needs full page width → set page 1 section margin to 0, banner columnWidths to 11906
458
+ 3. Page 2+ must be independent sections, margin.top ≥ 800
459
+
460
+ ⚠️ **Page 2+ top spacing rules (mandatory):**
461
+
462
+ 1. **Page margin.top must be ≥ 800 twips** (~1.4 cm), never 0
463
+ 2. **Page 2+ needs a header info bar:** concise `Name | Title` bar, height ~400–600 twips, separated from body with light background or bottom line
464
+ 3. **200–300 twips spacing between header bar and body content**
465
+ 4. **Forbidden: content touching the very top of page 2**
466
+
467
+ ```js
468
+ // Concise header bar for page 2+
469
+ function pageHeader(name, title) {
470
+ return new Table({
471
+ width: { size: 100, type: WidthType.PERCENTAGE },
472
+ borders: { top: NB, left: NB, right: NB, insideHorizontal: NB, insideVertical: NB,
473
+ bottom: { style: BorderStyle.SINGLE, size: 1, color: "D0D0D0" } },
474
+ rows: [new TableRow({
475
+ cantSplit: true,
476
+ height: { value: 500, rule: "atLeast" },
477
+ children: [new TableCell({
478
+ margins: { top: 60, bottom: 60, left: 200, right: 200 },
479
+ borders: { top: NB, left: NB, right: NB, bottom: NB },
480
+ children: [new Paragraph({
481
+ children: [
482
+ new TextRun({ text: name, size: 20, bold: true, color: S.title || C.title }),
483
+ new TextRun({ text: ` | ${title}`, size: 18, color: S.sec || C.sec }),
484
+ ]
485
+ })],
486
+ })],
487
+ })],
488
+ });
489
+ }
490
+ ```
491
+
492
+ ---
493
+
494
+ ## Scene-Specific Quality Checks
495
+
496
+ In addition to universal checks (see `references/common-rules.md`):
497
+
498
+ ### Format
499
+ - [ ] Fits within 1 page (senior ≤ 2 pages)
500
+ - [ ] **Single-page fill rate ≥ 85%** (bottom whitespace ≤ 15%, ~2500 twips)
501
+ - [ ] Section headings are bilingual
502
+ - [ ] Skill rating dots correct (●○)
503
+ - [ ] Experience in reverse chronological order
504
+ - [ ] No cover page, no TOC
505
+ - [ ] Line spacing 1.15x (line: 276)
506
+ - [ ] No extra blank pages
507
+ - [ ] **Table row height uses `rule: "exact"` with value ≤ 16038** (prevent overflow blank pages)
508
+ - [ ] **Multi-page: page 2+ has header info bar + proper top spacing**
509
+
510
+ ### Content
511
+ - [ ] Clearly organized around target position
512
+ - [ ] No vague self-assessments ("hardworking", "responsible", "team player")
513
+ - [ ] No fabricated data or exaggerated results
514
+ - [ ] Most relevant experience placed first and detailed
515
+ - [ ] Each bullet demonstrates action + object + method + result
516
+ - [ ] No long narrative blocks / excessive long sentences / information density imbalance
517
+ - [ ] Module names are standardized
518
+ - [ ] Contact info is plain text, clearly positioned
519
+ - [ ] Header area forms visual center
520
+ - [ ] Work experience and projects are the visual main body
521
+ - [ ] Page count matches candidate seniority
522
+
523
+ ### Single-Page Fill Rules
524
+
525
+ Single-page resumes must fully utilize page space — **large bottom whitespace is forbidden:**
526
+
527
+ 1. If content is insufficient → **proactively expand:**
528
+ - Add project details, skill keywords, achievement data
529
+ - Add supplementary modules: profile summary, interests, awards
530
+ 2. Use section spacing (`spacing.before/after`) to **distribute content evenly**
531
+ 3. Sidebar templates (A/C): sidebar height should approach full page
532
+ - If sidebar content is sparse, increase element spacing
533
+ - Or add supplementary modules: "Languages", "Interests"
534
+ 4. Assessment: after generation, check last content element position; if >2500 twips from page bottom, adjust
@@ -0,0 +1 @@
1
+ # Make scripts directory a package for relative imports in tests