dknowc-dsh 2.3.0 → 2.4.0

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 (270) hide show
  1. package/README.md +14 -50
  2. package/package.json +2 -2
  3. package/skills/dk-trace-report/SKILL.md +288 -0
  4. package/skills/dk-trace-report/config/examples/doc.json +56 -0
  5. package/skills/dk-trace-report/config/examples/legal.json +51 -0
  6. package/skills/dk-trace-report/config/examples/ppt.json +47 -0
  7. package/skills/dk-trace-report/config/examples/tax.json +46 -0
  8. package/skills/dk-trace-report/config/examples/trusted.json +122 -0
  9. package/skills/dk-trace-report/reference/sample_input.json +60 -0
  10. package/skills/dk-trace-report/resources/ECHARTS-NOTICE.txt +10 -0
  11. package/skills/dk-trace-report/resources/echarts.custom.min.js +48 -0
  12. package/skills/dk-trace-report/scripts/build_report_input.py +333 -0
  13. package/skills/{dknowc-trusted-search → dk-trace-report}/scripts/chart_embed.py +4 -1
  14. package/skills/{dknowc-trusted-search → dk-trace-report}/scripts/render_trace_html.py +1072 -537
  15. package/skills/dk-trace-report/scripts/run_paths.py +95 -0
  16. package/skills/dk-trace-report/scripts/trust_digest.py +77 -0
  17. package/skills/dknowc-legal-assistant/README.md +95 -0
  18. package/skills/dknowc-legal-assistant/SKILL.md +122 -0
  19. package/skills/dknowc-legal-assistant/attribution.json +5 -0
  20. package/skills/dknowc-legal-assistant/reference/answer-and-report.md +221 -0
  21. package/skills/dknowc-legal-assistant/reference/capability-layer.md +143 -0
  22. package/skills/dknowc-legal-assistant/reference/legal_claims.example.json +96 -0
  23. package/skills/dknowc-legal-assistant/reference/onboarding_scripts.md +198 -0
  24. package/skills/dknowc-legal-assistant/reference/policy_tags.json +2002 -0
  25. package/skills/dknowc-legal-assistant/reference/retrieval-statute.md +81 -0
  26. package/skills/dknowc-legal-assistant/reference/retrieval-v2.md +133 -0
  27. package/skills/dknowc-legal-assistant/reference/sample_search_result.md +33 -0
  28. package/skills/dknowc-legal-assistant/reference/sample_trace_report.html +940 -0
  29. package/skills/dknowc-legal-assistant/reference/tags.md +53 -0
  30. package/skills/dknowc-legal-assistant/reference/troubleshooting.md +50 -0
  31. package/skills/dknowc-legal-assistant/reference/verification-pass.md +59 -0
  32. package/skills/dknowc-legal-assistant/resources/echarts.custom.min.js +48 -0
  33. package/skills/dknowc-legal-assistant/scripts/api_key.py +68 -0
  34. package/skills/dknowc-legal-assistant/scripts/attribution.py +61 -0
  35. package/skills/dknowc-legal-assistant/scripts/calc_legal.py +375 -0
  36. package/skills/dknowc-legal-assistant/scripts/calc_period.py +155 -0
  37. package/skills/dknowc-legal-assistant/scripts/check_answer.py +664 -0
  38. package/skills/dknowc-legal-assistant/scripts/initialize.py +188 -0
  39. package/skills/dknowc-legal-assistant/scripts/legal_client.py +208 -0
  40. package/skills/dknowc-legal-assistant/scripts/legal_search.py +1059 -0
  41. package/skills/dknowc-legal-assistant/scripts/merge_search_results.py +630 -0
  42. package/skills/dknowc-legal-assistant/scripts/path_guard.py +92 -0
  43. package/skills/dknowc-legal-assistant/scripts/question_profile.py +215 -0
  44. package/skills/dknowc-legal-assistant/scripts/register_key.mjs +1152 -0
  45. package/skills/dknowc-legal-assistant/scripts/run_eval.py +109 -0
  46. package/skills/dknowc-legal-assistant/scripts/source_cards.py +321 -0
  47. package/skills/dknowc-legal-assistant/scripts/tag_catalog.py +162 -0
  48. package/skills/dknowc-legal-assistant/scripts/trace_report.config.json +66 -0
  49. package/skills/dknowc-legal-assistant/scripts/verify_claims.py +448 -0
  50. package/skills/dknowc-legal-assistant/scripts/websearch_convert.py +396 -0
  51. package/skills/dknowc-official-doc-writer/README.md +45 -25
  52. package/skills/dknowc-official-doc-writer/SKILL.md +28 -14
  53. package/skills/dknowc-official-doc-writer/config/trace_report.config.json +56 -0
  54. package/skills/dknowc-official-doc-writer/official-docs/input//345/274/225/347/224/250/345/257/271/347/205/247_/351/252/214/346/224/266_materials.json +628 -0
  55. package/skills/dknowc-official-doc-writer/official-docs/search-results/baseline_1555.json +345 -0
  56. package/skills/dknowc-official-doc-writer/official-docs/search-results/baseline_my.json +728 -0
  57. package/skills/dknowc-official-doc-writer/official-docs/search-results/baseline_wp.json +159 -0
  58. package/skills/dknowc-official-doc-writer/official-docs/search-results/baseline_wp2.json +1006 -0
  59. package/skills/dknowc-official-doc-writer/official-docs/search-results/test_tz.json +28 -0
  60. package/skills/dknowc-official-doc-writer/official-docs/search-results/tmp_q.json +1419 -0
  61. package/skills/dknowc-official-doc-writer/reference/anti_ai_patterns.md +13 -1
  62. package/skills/dknowc-official-doc-writer/reference/fact_discipline.md +4 -0
  63. package/skills/dknowc-official-doc-writer/reference/genre_writing_notes.md +4 -0
  64. package/skills/dknowc-official-doc-writer/reference/initialization.md +28 -20
  65. package/skills/dknowc-official-doc-writer/reference/material_usage_guidance.md +21 -0
  66. package/skills/dknowc-official-doc-writer/reference/materials_pipeline.md +64 -7
  67. package/skills/dknowc-official-doc-writer/reference/onboarding_scripts.md +43 -32
  68. package/skills/dknowc-official-doc-writer/reference/outline_rules.md +1 -1
  69. package/skills/dknowc-official-doc-writer/reference/output_guide.md +19 -20
  70. package/skills/dknowc-official-doc-writer/reference/research_notes.md +5 -3
  71. package/skills/dknowc-official-doc-writer/reference/review_checklist.md +6 -2
  72. package/skills/dknowc-official-doc-writer/reference/revision_workflow.md +2 -2
  73. package/skills/dknowc-official-doc-writer/reference/search_guide.md +45 -33
  74. package/skills/dknowc-official-doc-writer/reference/search_intro.md +4 -4
  75. package/skills/dknowc-official-doc-writer/reference/search_policy.md +63 -36
  76. package/skills/dknowc-official-doc-writer/reference/standards/00_index.md +63 -77
  77. package/skills/dknowc-official-doc-writer/reference/standards/01_report.md +3 -3
  78. package/skills/dknowc-official-doc-writer/reference/standards/02_qingshi.md +6 -3
  79. package/skills/dknowc-official-doc-writer/reference/standards/03_pifu.md +2 -2
  80. package/skills/dknowc-official-doc-writer/reference/standards/04_tongzhi.md +12 -3
  81. package/skills/dknowc-official-doc-writer/reference/standards/05_yijian.md +8 -2
  82. package/skills/dknowc-official-doc-writer/reference/standards/06_han.md +2 -2
  83. package/skills/dknowc-official-doc-writer/reference/standards/08_tongbao.md +2 -2
  84. package/skills/dknowc-official-doc-writer/reference/standards/09_tonggao.md +2 -2
  85. package/skills/dknowc-official-doc-writer/reference/standards/10_gonggao.md +2 -2
  86. package/skills/dknowc-official-doc-writer/reference/standards/11_fuhan_approve.md +2 -2
  87. package/skills/dknowc-official-doc-writer/reference/standards/12_fuhan_objection.md +2 -2
  88. package/skills/dknowc-official-doc-writer/reference/standards/13_reminder.md +3 -3
  89. package/skills/dknowc-official-doc-writer/reference/standards/14_generic.md +1 -1
  90. package/skills/dknowc-official-doc-writer/reference/standards/16_decision.md +2 -2
  91. package/skills/dknowc-official-doc-writer/reference/standards/18_order.md +1 -1
  92. package/skills/dknowc-official-doc-writer/reference/standards/19_gazette.md +1 -1
  93. package/skills/dknowc-official-doc-writer/reference/standards/20_motion.md +2 -2
  94. package/skills/dknowc-official-doc-writer/reference/standards/22_application.md +2 -2
  95. package/skills/dknowc-official-doc-writer/reference/standards/23_publicity.md +1 -1
  96. package/skills/dknowc-official-doc-writer/reference/standards/25_plan.md +2 -1
  97. package/skills/dknowc-official-doc-writer/reference/standards/26_summary.md +7 -1
  98. package/skills/dknowc-official-doc-writer/reference/standards/27_speech.md +4 -1
  99. package/skills/dknowc-official-doc-writer/reference/standards/99_expressions.md +1 -2
  100. package/skills/dknowc-official-doc-writer/reference/task_router.md +5 -5
  101. package/skills/dknowc-official-doc-writer/reference/working_principles.md +4 -4
  102. package/skills/dknowc-official-doc-writer/reference/writing_method.md +166 -0
  103. package/skills/dknowc-official-doc-writer/reference/writing_rules.md +11 -5
  104. package/skills/dknowc-official-doc-writer/scripts/api_key.py +30 -3
  105. package/skills/dknowc-official-doc-writer/scripts/attribution.py +1 -1
  106. package/skills/dknowc-official-doc-writer/scripts/build_trace_json.py +216 -22
  107. package/skills/dknowc-official-doc-writer/scripts/check_materials.py +375 -27
  108. package/skills/dknowc-official-doc-writer/scripts/deep_convert.py +9 -4
  109. package/skills/dknowc-official-doc-writer/scripts/deep_query.py +3 -2
  110. package/skills/dknowc-official-doc-writer/scripts/dkag_search.py +23 -9
  111. package/skills/dknowc-official-doc-writer/scripts/extract_reference.py +2 -1
  112. package/skills/dknowc-official-doc-writer/scripts/format_document.py +116 -41
  113. package/skills/dknowc-official-doc-writer/scripts/initialize.py +246 -12
  114. package/skills/dknowc-official-doc-writer/scripts/local_memory.py +2 -6
  115. package/skills/dknowc-official-doc-writer/scripts/mcp_direct.py +2 -3
  116. package/skills/dknowc-official-doc-writer/scripts/merge_search_results.py +113 -13
  117. package/skills/dknowc-official-doc-writer/scripts/outline_reference.py +3 -2
  118. package/skills/dknowc-official-doc-writer/scripts/prose_lint.py +7 -2
  119. package/skills/dknowc-official-doc-writer/scripts/register.mjs +782 -216
  120. package/skills/dknowc-official-doc-writer/scripts/review_document.py +2 -1
  121. package/skills/dknowc-official-doc-writer/scripts/source_note_html.py +120 -13
  122. package/skills/dknowc-official-doc-writer/scripts/template_generator.py +2 -1
  123. package/skills/dknowc-official-doc-writer/scripts/update_skill.py +339 -0
  124. package/skills/dknowc-official-doc-writer/scripts/websearch_convert.py +326 -0
  125. package/skills/dknowc-ppt-assistant/README.md +21 -9
  126. package/skills/dknowc-ppt-assistant/SKILL.md +29 -20
  127. package/skills/dknowc-ppt-assistant/THIRD_PARTY_NOTICES.md +3 -2
  128. package/skills/dknowc-ppt-assistant/config/trace_report.config.json +65 -0
  129. package/skills/dknowc-ppt-assistant/references/initialization.md +58 -7
  130. package/skills/dknowc-ppt-assistant/references/material_usage.md +51 -14
  131. package/skills/dknowc-ppt-assistant/references/onboarding_scripts.md +51 -18
  132. package/skills/dknowc-ppt-assistant/references/sample_trace_report.html +372 -920
  133. package/skills/dknowc-ppt-assistant/references/search_intro.md +2 -2
  134. package/skills/dknowc-ppt-assistant/references/svg-authoring.md +3 -3
  135. package/skills/dknowc-ppt-assistant/references/upstream-example/README.md +2 -0
  136. package/skills/dknowc-ppt-assistant/scripts/api_key.py +11 -27
  137. package/skills/dknowc-ppt-assistant/scripts/attribution.py +2 -2
  138. package/skills/dknowc-ppt-assistant/scripts/build_trace_input.py +188 -0
  139. package/skills/dknowc-ppt-assistant/scripts/compact_svg_coordinates.py +1 -1
  140. package/skills/dknowc-ppt-assistant/scripts/config.py +9 -9
  141. package/skills/dknowc-ppt-assistant/scripts/console_encoding.py +1 -2
  142. package/skills/dknowc-ppt-assistant/scripts/error_helper.py +3 -3
  143. package/skills/dknowc-ppt-assistant/scripts/hyperlink_contract.py +1 -1
  144. package/skills/dknowc-ppt-assistant/scripts/initialize.py +248 -15
  145. package/skills/dknowc-ppt-assistant/scripts/language_tags.py +1 -1
  146. package/skills/dknowc-ppt-assistant/scripts/mcp_convert.py +7 -14
  147. package/skills/dknowc-ppt-assistant/scripts/mcp_direct.py +3 -2
  148. package/skills/dknowc-ppt-assistant/scripts/merge_search_results.py +604 -0
  149. package/skills/dknowc-ppt-assistant/scripts/native_payloads.py +1 -1
  150. package/skills/dknowc-ppt-assistant/scripts/pptx_animations.py +1 -1
  151. package/skills/dknowc-ppt-assistant/scripts/pptx_shapes/__init__.py +1 -1
  152. package/skills/dknowc-ppt-assistant/scripts/pptx_shapes/errors.py +1 -1
  153. package/skills/dknowc-ppt-assistant/scripts/pptx_shapes/formula.py +1 -1
  154. package/skills/dknowc-ppt-assistant/scripts/pptx_shapes/loader.py +1 -1
  155. package/skills/dknowc-ppt-assistant/scripts/pptx_shapes/models.py +1 -1
  156. package/skills/dknowc-ppt-assistant/scripts/pptx_shapes/registry.py +2 -2
  157. package/skills/dknowc-ppt-assistant/scripts/pptx_shapes/semantic_hash.py +1 -1
  158. package/skills/dknowc-ppt-assistant/scripts/pptx_shapes/semantics.py +3 -3
  159. package/skills/dknowc-ppt-assistant/scripts/pptx_to_svg/animation_import.py +1 -1
  160. package/skills/dknowc-ppt-assistant/scripts/pptx_to_svg/formula_import.py +1 -1
  161. package/skills/dknowc-ppt-assistant/scripts/pptx_to_svg/hyperlinks.py +2 -2
  162. package/skills/dknowc-ppt-assistant/scripts/pptx_to_svg/preset_authoring.py +2 -2
  163. package/skills/dknowc-ppt-assistant/scripts/pptx_to_svg/preset_registry_to_svg.py +2 -2
  164. package/skills/dknowc-ppt-assistant/scripts/pptx_to_svg/preset_svg_markup.py +2 -2
  165. package/skills/dknowc-ppt-assistant/scripts/pptx_to_svg/slide_to_svg.py +1 -1
  166. package/skills/dknowc-ppt-assistant/scripts/pptx_to_svg/transition_import.py +1 -1
  167. package/skills/dknowc-ppt-assistant/scripts/pptx_transitions.py +2 -2
  168. package/skills/dknowc-ppt-assistant/scripts/preset_shape_svg.py +2 -2
  169. package/skills/dknowc-ppt-assistant/scripts/preview_slide_html.py +4 -11
  170. package/skills/dknowc-ppt-assistant/scripts/project_utils.py +2 -2
  171. package/skills/dknowc-ppt-assistant/scripts/register_key.mjs +890 -341
  172. package/skills/dknowc-ppt-assistant/scripts/resource_paths.py +1 -1
  173. package/skills/dknowc-ppt-assistant/scripts/shape_boolean_svg.py +2 -2
  174. package/skills/dknowc-ppt-assistant/scripts/slide_roster.py +1 -1
  175. package/skills/dknowc-ppt-assistant/scripts/svg_finalize/__init__.py +2 -9
  176. package/skills/dknowc-ppt-assistant/scripts/svg_finalize/align_embed_images.py +1 -1
  177. package/skills/dknowc-ppt-assistant/scripts/svg_finalize/crop_images.py +3 -3
  178. package/skills/dknowc-ppt-assistant/scripts/svg_quality/__init__.py +2 -2
  179. package/skills/dknowc-ppt-assistant/scripts/svg_quality/checker.py +9 -10
  180. package/skills/dknowc-ppt-assistant/scripts/svg_quality/cli.py +4 -4
  181. package/skills/dknowc-ppt-assistant/scripts/svg_quality/svg_contracts.py +2 -2
  182. package/skills/dknowc-ppt-assistant/scripts/svg_quality/xml_support.py +1 -1
  183. package/skills/dknowc-ppt-assistant/scripts/svg_quality_checker.py +1 -1
  184. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/drawingml/hyperlinks.py +2 -2
  185. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/drawingml/theme_colors.py +1 -1
  186. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/drawingml/theme_fonts.py +1 -1
  187. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/geometry_properties.py +1 -1
  188. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/native_objects/formula.py +2 -2
  189. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/native_objects/formula_ast.py +1 -1
  190. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/native_objects/formula_compiler.py +2 -2
  191. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/native_objects/formula_omml.py +2 -2
  192. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/native_objects/formula_parser.py +2 -2
  193. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/native_objects/formula_profile.py +1 -1
  194. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/native_objects/formula_run_properties.py +1 -1
  195. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/native_objects/inline_formula.py +2 -2
  196. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/pptx_package/builder.py +9 -11
  197. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/pptx_package/cli.py +7 -5
  198. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/pptx_package/template_structure.py +1 -1
  199. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/pptx_package/template_validation.py +1 -1
  200. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/semantic_markers.py +1 -1
  201. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/shape_boolean.py +2 -2
  202. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx/text_outline.py +2 -2
  203. package/skills/dknowc-ppt-assistant/scripts/svg_to_pptx.py +1 -1
  204. package/skills/dknowc-ppt-assistant/scripts/trusted_search.py +51 -17
  205. package/skills/dknowc-ppt-assistant/scripts/update_skill.py +314 -0
  206. package/skills/dknowc-ppt-assistant/scripts/update_spec.py +25 -1
  207. package/skills/dknowc-ppt-assistant/scripts/websearch_convert.py +326 -0
  208. package/skills/dknowc-ppt-assistant/workflows/generate-pptx.md +99 -34
  209. package/skills/dknowc-tax-assistant/README.md +54 -0
  210. package/skills/dknowc-tax-assistant/SKILL.md +99 -0
  211. package/skills/dknowc-tax-assistant/attribution.json +5 -0
  212. package/skills/dknowc-tax-assistant/reference/answer-and-report.md +100 -0
  213. package/skills/dknowc-tax-assistant/reference/capability-layer.md +205 -0
  214. package/skills/dknowc-tax-assistant/reference/onboarding_scripts.md +68 -0
  215. package/skills/dknowc-tax-assistant/reference/policy_tags.json +2002 -0
  216. package/skills/dknowc-tax-assistant/reference/retrieval-policy.md +43 -0
  217. package/skills/dknowc-tax-assistant/reference/retrieval-v2.md +58 -0
  218. package/skills/dknowc-tax-assistant/reference/tags.md +53 -0
  219. package/skills/dknowc-tax-assistant/reference/tax_claims.example.json +76 -0
  220. package/skills/dknowc-tax-assistant/reference/trace_report.config.json +46 -0
  221. package/skills/dknowc-tax-assistant/reference/troubleshooting.md +70 -0
  222. package/skills/dknowc-tax-assistant/reference/websearch-fallback.md +59 -0
  223. package/skills/dknowc-tax-assistant/resources/THIRD_PARTY_NOTICES.md +9 -0
  224. package/skills/dknowc-tax-assistant/resources/echarts.custom.min.js +48 -0
  225. package/skills/dknowc-tax-assistant/scripts/api_key.py +60 -0
  226. package/skills/dknowc-tax-assistant/scripts/attribution.py +61 -0
  227. package/skills/dknowc-tax-assistant/scripts/calc_period.py +156 -0
  228. package/skills/dknowc-tax-assistant/scripts/calc_tax.py +179 -0
  229. package/skills/dknowc-tax-assistant/scripts/check_answer.py +210 -0
  230. package/skills/dknowc-tax-assistant/scripts/initialize.py +208 -0
  231. package/skills/dknowc-tax-assistant/scripts/merge_search_results.py +631 -0
  232. package/skills/dknowc-tax-assistant/scripts/path_guard.py +23 -0
  233. package/skills/dknowc-tax-assistant/scripts/question_profile.py +444 -0
  234. package/skills/dknowc-tax-assistant/scripts/register_key.mjs +1173 -0
  235. package/skills/dknowc-tax-assistant/scripts/run_dir.py +149 -0
  236. package/skills/dknowc-tax-assistant/scripts/source_cards.py +372 -0
  237. package/skills/dknowc-tax-assistant/scripts/tag_catalog.py +164 -0
  238. package/skills/dknowc-tax-assistant/scripts/tax_client.py +218 -0
  239. package/skills/dknowc-tax-assistant/scripts/tax_search.py +403 -0
  240. package/skills/dknowc-tax-assistant/scripts/verify_claims.py +587 -0
  241. package/skills/dknowc-tax-assistant/scripts/websearch_convert.py +352 -0
  242. package/skills/dknowc-trusted-search/README.md +29 -23
  243. package/skills/dknowc-trusted-search/SKILL.md +257 -107
  244. package/skills/dknowc-trusted-search/config/trace_report.config.json +119 -0
  245. package/skills/dknowc-trusted-search/reference/onboarding_scripts.md +40 -15
  246. package/skills/dknowc-trusted-search/reference/sample_trace_report.html +286 -191
  247. package/skills/dknowc-trusted-search/resources/ECHARTS-NOTICE.txt +10 -0
  248. package/skills/dknowc-trusted-search/scripts/api_key.py +10 -26
  249. package/skills/dknowc-trusted-search/scripts/attribution.py +1 -1
  250. package/skills/dknowc-trusted-search/scripts/build_trace_input.py +173 -0
  251. package/skills/dknowc-trusted-search/scripts/deep_convert.py +79 -30
  252. package/skills/dknowc-trusted-search/scripts/deep_query.py +23 -34
  253. package/skills/dknowc-trusted-search/scripts/initialize.py +353 -12
  254. package/skills/dknowc-trusted-search/scripts/mcp_direct.py +3 -2
  255. package/skills/dknowc-trusted-search/scripts/merge_search_results.py +222 -35
  256. package/skills/dknowc-trusted-search/scripts/register_key.mjs +845 -291
  257. package/skills/dknowc-trusted-search/scripts/source_display.py +59 -0
  258. package/skills/dknowc-trusted-search/scripts/trusted_search.py +69 -36
  259. package/skills/dknowc-trusted-search/scripts/update_skill.py +300 -0
  260. package/skills/dknowc-trusted-search/scripts/websearch_convert.py +328 -0
  261. package/src/index.js +15 -0
  262. package/skills/dknowc-official-doc-writer/scripts/mcp_convert.py +0 -287
  263. package/skills/dknowc-official-doc-writer/scripts/render_trace_html.py +0 -2574
  264. package/skills/dknowc-ppt-assistant/references/upstream-docs/svg-pipeline.md +0 -842
  265. package/skills/dknowc-ppt-assistant/scripts/finalize_svg.py +0 -507
  266. package/skills/dknowc-ppt-assistant/scripts/render_trace_html.py +0 -2642
  267. package/skills/dknowc-ppt-assistant/scripts/svg_finalize/svg_rect_to_path.py +0 -346
  268. package/skills/dknowc-trusted-search/official-docs/output/.gitkeep +0 -0
  269. package/skills/dknowc-trusted-search/official-docs/search-results/.gitkeep +0 -0
  270. package/skills/dknowc-trusted-search/scripts/mcp_convert.py +0 -198
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env python3
2
2
  """
3
- PPT Master - PPTX Shape Models
3
+ 深知可信PPT - PPTX Shape Models
4
4
 
5
5
  Immutable value objects shared by the preset catalog loader and evaluator.
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env python3
2
2
  """
3
- PPT Master - Preset Shape Registry
3
+ 深知可信PPT - Preset Shape Registry
4
4
 
5
5
  Expose the complete preset catalog and evaluate shape geometry instances.
6
6
 
@@ -83,7 +83,7 @@ class PresetShapeRegistry:
83
83
 
84
84
  @classmethod
85
85
  def bundled(cls) -> PresetShapeRegistry:
86
- """Load the hash-locked catalog shipped with PPT Master."""
86
+ """Load the hash-locked catalog shipped with 深知可信PPT."""
87
87
 
88
88
  names = load_shape_type_values()
89
89
  definitions = load_preset_shape_definitions(expected_names=names)
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env python3
2
2
  """
3
- PPT Master - Native Shape Semantic Fingerprints
3
+ 深知可信PPT - Native Shape Semantic Fingerprints
4
4
 
5
5
  Build stable hashes for visible SVG text, generated preset previews, and
6
6
  native chart/table fallback subtrees.
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env python3
2
2
  """
3
- PPT Master - DrawingML Preset Shape Semantics
3
+ 深知可信PPT - DrawingML Preset Shape Semantics
4
4
 
5
5
  Load and validate the bundled Office-category and authoring-use catalog for
6
6
  DrawingML preset shapes.
@@ -13,7 +13,7 @@ Examples:
13
13
  arrow = catalog.describe("rightArrow")
14
14
 
15
15
  Dependencies:
16
- None (only uses standard library and local PPT Master modules)
16
+ None (only uses standard library and local 深知可信PPT modules)
17
17
  """
18
18
 
19
19
  from __future__ import annotations
@@ -183,7 +183,7 @@ class PresetShapeSemantics:
183
183
 
184
184
  @classmethod
185
185
  def bundled(cls) -> PresetShapeSemantics:
186
- """Load the semantic catalog shipped with PPT Master."""
186
+ """Load the semantic catalog shipped with 深知可信PPT."""
187
187
 
188
188
  try:
189
189
  payload = json.loads(BUNDLED_SEMANTICS_PATH.read_text(encoding="utf-8"))
@@ -1,4 +1,4 @@
1
- """Import the finite PPT Master-owned object-animation contract.
1
+ """Import the finite 深知可信PPT-owned object-animation contract.
2
2
 
3
3
  The importer deliberately projects only canonical effect identity, pane order,
4
4
  Start trigger, duration, relative delay, and one top-level SVG group target.
@@ -1,4 +1,4 @@
1
- """Import PPT Master-owned Office Math into canonical SVG formula markers.
1
+ """Import 深知可信PPT-owned Office Math into canonical SVG formula markers.
2
2
 
3
3
  The reverse contract is deliberately narrow: accept only the closed OMML
4
4
  vocabulary already validated by the native formula compiler, serialize that
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env python3
2
2
  """
3
- PPT Master - PPTX Hyperlink Resolver
3
+ 深知可信PPT - PPTX Hyperlink Resolver
4
4
 
5
5
  Resolve native DrawingML click actions into the canonical SVG ``href`` form
6
6
  used by the authoring and round-trip pipelines.
@@ -12,7 +12,7 @@ Examples:
12
12
  result = resolve_click_hyperlink(rels, "rId3", "", slide_index_by_part=roster)
13
13
 
14
14
  Dependencies:
15
- PPT Master hyperlink contract.
15
+ 深知可信PPT hyperlink contract.
16
16
  """
17
17
 
18
18
  from __future__ import annotations
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env python3
2
2
  """
3
- PPT Master - Authored Preset Shape Contract
3
+ 深知可信PPT - Authored Preset Shape Contract
4
4
 
5
5
  Build and validate compact canonical SVG groups for newly authored PowerPoint
6
6
  preset shapes while retaining expanded authored input compatibility.
@@ -17,7 +17,7 @@ Examples:
17
17
  )
18
18
 
19
19
  Dependencies:
20
- None (only uses standard library and local PPT Master modules)
20
+ None (only uses standard library and local 深知可信PPT modules)
21
21
  """
22
22
 
23
23
  from __future__ import annotations
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env python3
2
2
  """
3
- PPT Master - Preset Geometry SVG Adapter
3
+ 深知可信PPT - Preset Geometry SVG Adapter
4
4
 
5
5
  Render evaluated DrawingML preset geometry as absolute SVG path layers.
6
6
 
@@ -11,7 +11,7 @@ Examples:
11
11
  geometry = render_preset_geometry("rightArrow", xfrm)
12
12
 
13
13
  Dependencies:
14
- None (only uses standard library and local PPT Master modules)
14
+ None (only uses standard library and local 深知可信PPT modules)
15
15
  """
16
16
 
17
17
  from __future__ import annotations
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env python3
2
2
  """
3
- PPT Master - Preset Shape SVG Markup
3
+ 深知可信PPT - Preset Shape SVG Markup
4
4
 
5
5
  Serialize evaluated DrawingML preset layers for lossless transport or compact
6
6
  project authoring.
@@ -12,7 +12,7 @@ Examples:
12
12
  markup = serialize_preset_layers(layers, semantic_attrs, style_attrs)
13
13
 
14
14
  Dependencies:
15
- None (only uses standard library and local PPT Master modules)
15
+ None (only uses standard library and local 深知可信PPT modules)
16
16
  """
17
17
 
18
18
  from __future__ import annotations
@@ -228,7 +228,7 @@ def assemble_slide(
228
228
  source ``showMasterSp`` flags. This view is used for round-trip
229
229
  fidelity with svg_to_pptx.
230
230
  - "layered": skip inherited shapes entirely. The slide SVG contains
231
- only its own shapes. Callers (e.g. /create-template's PPTX import)
231
+ only its own shapes. Callers (e.g. the PPTX import path)
232
232
  render master/layout once each as separate SVGs and record the
233
233
  inheritance graph in inheritance.json.
234
234
  """
@@ -1,4 +1,4 @@
1
- """Import PPT Master-owned slide transitions into animations.json rows.
1
+ """Import 深知可信PPT-owned slide transitions into animations.json rows.
2
2
 
3
3
  The reverse contract accepts only source XML that passes the existing
4
4
  generated-transition read-back validator. Unknown third-party carriers remain
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env python3
2
2
  """
3
- PPT Master - PPTX Transition Core
3
+ 深知可信PPT - PPTX Transition Core
4
4
 
5
5
  Provide one strict PowerPoint-native transition registry, a compatibility input
6
6
  map, and shared OOXML read/write helpers for generated slides, template-filled
@@ -9,7 +9,7 @@ See references/animations.md for the public workflow and
9
9
  scripts/docs/pptx-transitions.md for the OOXML contract.
10
10
 
11
11
  Usage:
12
- Import from PPT Master PPTX builders and direct-package workflows.
12
+ Import from 深知可信PPT PPTX builders and direct-package workflows.
13
13
 
14
14
  Examples:
15
15
  from pptx_transitions import AdvanceUpdate, EnterUpdate, apply_slide_motion
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env python3
2
2
  """
3
- PPT Master - Preset Shape SVG Fragment Tool
3
+ 深知可信PPT - Preset Shape SVG Fragment Tool
4
4
 
5
5
  Browse and inspect DrawingML presets, or print compact canonical native-preset
6
6
  SVG groups to stdout for manual insertion into a hand-authored page or
@@ -20,7 +20,7 @@ Examples:
20
20
  python3 scripts/preset_shape_svg.py render-batch --input shapes.json
21
21
 
22
22
  Dependencies:
23
- None (only uses standard library and local PPT Master modules)
23
+ None (only uses standard library and local 深知可信PPT modules)
24
24
  """
25
25
 
26
26
  from __future__ import annotations
@@ -9,7 +9,7 @@ svg_output/ 下全部(或指定)页面以 data URI 内嵌到单个 HTML—
9
9
  用法:
10
10
  python3 scripts/preview_slide_html.py <项目名> [--output <文件名>] [--title <标题>]
11
11
  项目须位于 projects/<项目名>/svg_output/;输出默认 official-docs/output/<项目名>_pages_preview.html,
12
- 生成后直接向用户展示脚本打印的路径(dsh 产物天然在会话工作区)。
12
+ 生成后直接向用户展示该绝对路径(dsh 会话工作区即文件视图,无需交付复制)。
13
13
  """
14
14
 
15
15
  from __future__ import annotations
@@ -22,15 +22,8 @@ import sys
22
22
  from pathlib import Path
23
23
 
24
24
  SKILL_ROOT = Path(__file__).resolve().parent.parent
25
- # dsh:项目目录为工作区级 dknowc-projects/(跨会话延续、访达可直达);预览页落会话隔离产物区
26
- import os as _os
27
- _ws = _os.environ.get("DKNWOC_WS_ROOT")
28
- if not _ws:
29
- _sid = _os.environ.get("DSH_SESSION_ID", "")
30
- _ws = str(Path(_os.getcwd()) / "dknowc-output" / (_sid[:8] if _sid else "_default"))
31
- WS_ROOT = Path(_ws).resolve()
32
- PROJECTS_DIR = Path(_os.getcwd()).resolve() / "dknowc-projects"
33
- OUTPUT_DIR = WS_ROOT / "official-docs" / "output"
25
+ PROJECTS_DIR = SKILL_ROOT / "projects"
26
+ OUTPUT_DIR = SKILL_ROOT / "official-docs" / "output"
34
27
 
35
28
 
36
29
  def esc(value: str) -> str:
@@ -92,7 +85,7 @@ def main() -> int:
92
85
  out.parent.mkdir(parents=True, exist_ok=True)
93
86
  out.write_text(_page_html(title, len(svgs), "\n".join(sections)), encoding="utf-8")
94
87
  print(f"已生成预览页({len(svgs)} 页):{out}")
95
- print("提示:直接向用户展示上面的预览页路径即可。")
88
+ print("提示:dsh 下产物已在会话工作区,直接向用户展示上述绝对路径即可。")
96
89
  return 0
97
90
 
98
91
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env python3
2
2
  """
3
- PPT Master - Project Utilities Module
3
+ 深知可信PPT - Project Utilities Module
4
4
 
5
5
  Provides common functions for project information parsing and validation,
6
6
  reusable by other tools.
@@ -601,7 +601,7 @@ def get_project_stats(project_path: str) -> Dict:
601
601
 
602
602
  def build_parser() -> argparse.ArgumentParser:
603
603
  """Build the command-line parser for the diagnostic entry point."""
604
- parser = argparse.ArgumentParser(description="Inspect and validate a PPT Master project.")
604
+ parser = argparse.ArgumentParser(description="Inspect and validate a 深知可信PPT project.")
605
605
  parser.add_argument("project_path", help="Project directory")
606
606
  return parser
607
607