python-hwpx-automation 6.2.1__tar.gz → 6.3.1__tar.gz

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 (225) hide show
  1. {python_hwpx_automation-6.2.1/src/python_hwpx_automation.egg-info → python_hwpx_automation-6.3.1}/PKG-INFO +6 -6
  2. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/README.md +4 -4
  3. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/pyproject.toml +2 -2
  4. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/handlers/content_edit.py +41 -0
  5. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/hwpx_ops.py +29 -0
  6. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/identity.json +9 -9
  7. python_hwpx_automation-6.3.1/src/hwpx_automation/office/charting/__init__.py +162 -0
  8. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/ops_services/content_layout.py +77 -2
  9. python_hwpx_automation-6.3.1/src/hwpx_automation/public-modules.json +207 -0
  10. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/server.py +1 -0
  11. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/tool_bindings.py +1 -0
  12. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/tool_contract.py +11 -11
  13. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1/src/python_hwpx_automation.egg-info}/PKG-INFO +6 -6
  14. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/python_hwpx_automation.egg-info/SOURCES.txt +1 -0
  15. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/python_hwpx_automation.egg-info/requires.txt +1 -1
  16. python_hwpx_automation-6.2.1/src/hwpx_automation/public-modules.json +0 -206
  17. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/LICENSE +0 -0
  18. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/MANIFEST.in +0 -0
  19. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/NOTICE +0 -0
  20. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/setup.cfg +0 -0
  21. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/__init__.py +0 -0
  22. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/__init__.pyi +0 -0
  23. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/__main__.py +0 -0
  24. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/agent_document.py +0 -0
  25. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/api.py +0 -0
  26. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/blind_eval.py +0 -0
  27. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/capabilities.py +0 -0
  28. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/compat.py +0 -0
  29. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/configuration.py +0 -0
  30. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/core/__init__.py +0 -0
  31. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/core/content.py +0 -0
  32. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/core/context.py +0 -0
  33. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/core/diff.py +0 -0
  34. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/core/document.py +0 -0
  35. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/core/formatting.py +0 -0
  36. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/core/handles.py +0 -0
  37. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/core/locations.py +0 -0
  38. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/core/locator.py +0 -0
  39. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/core/plan.py +0 -0
  40. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/core/resources.py +0 -0
  41. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/core/search.py +0 -0
  42. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/core/transactions.py +0 -0
  43. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/core/txn.py +0 -0
  44. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/document_state.py +0 -0
  45. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/errors.py +0 -0
  46. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/execution_lock.py +0 -0
  47. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/fastmcp_adapter.py +0 -0
  48. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/form_fill.py +0 -0
  49. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/form_output_models.py +0 -0
  50. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/handlers/__init__.py +0 -0
  51. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/handlers/_shared.py +0 -0
  52. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/handlers/agent_document.py +0 -0
  53. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/handlers/authoring.py +0 -0
  54. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/handlers/form_fill.py +0 -0
  55. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/handlers/layout_style.py +0 -0
  56. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/handlers/quality_render.py +0 -0
  57. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/handlers/read_export.py +0 -0
  58. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/handlers/specialized.py +0 -0
  59. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/handlers/tracked_changes.py +0 -0
  60. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/handlers/workflow.py +0 -0
  61. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/hwp_converter.py +0 -0
  62. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/hwp_support.py +0 -0
  63. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/identity.py +0 -0
  64. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/ingest_adapters.py +0 -0
  65. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/markdown_plan.py +0 -0
  66. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/mcp_cli.py +0 -0
  67. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/metadata/tools_meta.py +0 -0
  68. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/mixed_form.py +0 -0
  69. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/mutation_models.py +0 -0
  70. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/network_policy.py +0 -0
  71. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/__init__.py +0 -0
  72. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/agent/__init__.py +0 -0
  73. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/agent/_batch_verification.py +0 -0
  74. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/agent/blueprint/__init__.py +0 -0
  75. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/agent/blueprint/bundle.py +0 -0
  76. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/agent/blueprint/catalog.py +0 -0
  77. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/agent/blueprint/dump.py +0 -0
  78. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/agent/blueprint/mapping.py +0 -0
  79. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/agent/blueprint/model.py +0 -0
  80. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/agent/blueprint/native.py +0 -0
  81. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/agent/blueprint/replay.py +0 -0
  82. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/agent/catalog.py +0 -0
  83. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/agent/cli.py +0 -0
  84. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/agent/commands.py +0 -0
  85. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/agent/document.py +0 -0
  86. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/agent/form_plan.py +0 -0
  87. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/agent/model.py +0 -0
  88. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/agent/path.py +0 -0
  89. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/agent/query.py +0 -0
  90. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/agent/story.py +0 -0
  91. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/__init__.py +0 -0
  92. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/advanced_generators.py +0 -0
  93. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/builder/__init__.py +0 -0
  94. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/builder/core.py +0 -0
  95. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/builder/report.py +0 -0
  96. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/__init__.py +0 -0
  97. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/_support.py +0 -0
  98. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/composer.py +0 -0
  99. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/harvest.py +0 -0
  100. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/plan.py +0 -0
  101. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profile.py +0 -0
  102. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/application_form/fragments/body.xml +0 -0
  103. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/application_form/fragments/heading.xml +0 -0
  104. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/application_form/fragments/info_table.xml +0 -0
  105. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/application_form/fragments/title.xml +0 -0
  106. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/application_form/profile.json +0 -0
  107. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/application_form/template.hwpx +0 -0
  108. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/home_notice/fragments/body.xml +0 -0
  109. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/home_notice/fragments/heading.xml +0 -0
  110. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/home_notice/fragments/title.xml +0 -0
  111. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/home_notice/profile.json +0 -0
  112. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/home_notice/template.hwpx +0 -0
  113. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/official_notice/fragments/body.xml +0 -0
  114. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/official_notice/fragments/heading.xml +0 -0
  115. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/official_notice/fragments/info_table.xml +0 -0
  116. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/official_notice/fragments/title.xml +0 -0
  117. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/official_notice/profile.json +0 -0
  118. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/official_notice/template.hwpx +0 -0
  119. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/report/fragments/body.xml +0 -0
  120. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/report/fragments/heading.xml +0 -0
  121. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/report/fragments/info_table.xml +0 -0
  122. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/report/fragments/title.xml +0 -0
  123. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/report/profile.json +0 -0
  124. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/profiles/report/template.hwpx +0 -0
  125. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/design/validator.py +0 -0
  126. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/presets/__init__.py +0 -0
  127. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/presets/proposal.py +0 -0
  128. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/report_parser.py +0 -0
  129. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/style_profile.py +0 -0
  130. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/authoring/template_analyzer.py +0 -0
  131. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/compliance/__init__.py +0 -0
  132. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/compliance/official_lint.py +0 -0
  133. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/compliance/pii.py +0 -0
  134. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/document_ops/__init__.py +0 -0
  135. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/document_ops/comparison.py +0 -0
  136. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/document_ops/mail_merge.py +0 -0
  137. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/document_ops/redline.py +0 -0
  138. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/evalplan/__init__.py +0 -0
  139. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/evalplan/runtime.py +0 -0
  140. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/exam/__init__.py +0 -0
  141. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/exam/compose.py +0 -0
  142. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/exam/ir.py +0 -0
  143. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/exam/measure.py +0 -0
  144. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/exam/parser.py +0 -0
  145. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/exam/profile.py +0 -0
  146. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/form_fill/__init__.py +0 -0
  147. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/form_fill/classification.py +0 -0
  148. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/form_fill/fill_residue.py +0 -0
  149. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/form_fill/fit/__init__.py +0 -0
  150. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/form_fill/fit/apply.py +0 -0
  151. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/form_fill/fit/engine.py +0 -0
  152. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/form_fill/fit/measure.py +0 -0
  153. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/form_fill/fit/policy.py +0 -0
  154. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/form_fill/fit/report.py +0 -0
  155. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/form_fill/fit/seal.py +0 -0
  156. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/form_fill/fit/wordbox.py +0 -0
  157. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/form_fill/guidance.py +0 -0
  158. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/form_fill/quality.py +0 -0
  159. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/form_fill/split_run.py +0 -0
  160. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/form_fill/template_formfit.py +0 -0
  161. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/house_style/__init__.py +0 -0
  162. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/house_style/composition.py +0 -0
  163. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/house_style/data/bank.json +0 -0
  164. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/house_style/data/genres.json +0 -0
  165. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/quality/__init__.py +0 -0
  166. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/quality/page_guard.py +0 -0
  167. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/rendering/__init__.py +0 -0
  168. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/rendering/_hancom_open_rate.ps1 +0 -0
  169. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/rendering/_refresh_hwpx_mac.applescript +0 -0
  170. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/rendering/_render_hwpx.ps1 +0 -0
  171. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/rendering/_render_hwpx_mac.applescript +0 -0
  172. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/rendering/block_splits.py +0 -0
  173. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/rendering/detectors.py +0 -0
  174. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/rendering/diff.py +0 -0
  175. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/rendering/fixture_corpus.py +0 -0
  176. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/rendering/oracle.py +0 -0
  177. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/rendering/page_qa.py +0 -0
  178. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/rendering/qa_contracts.py +0 -0
  179. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/rendering/qa_metrics.py +0 -0
  180. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/rendering/worker.py +0 -0
  181. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/utilities/__init__.py +0 -0
  182. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/office/utilities/table_compute.py +0 -0
  183. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/ops_services/__init__.py +0 -0
  184. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/ops_services/_border_fill.py +0 -0
  185. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/ops_services/composition.py +0 -0
  186. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/ops_services/context.py +0 -0
  187. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/ops_services/form_fields.py +0 -0
  188. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/ops_services/media.py +0 -0
  189. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/ops_services/memo_style.py +0 -0
  190. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/ops_services/package_validation.py +0 -0
  191. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/ops_services/planning.py +0 -0
  192. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/ops_services/preview_export.py +0 -0
  193. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/ops_services/read_query.py +0 -0
  194. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/ops_services/save_policy.py +0 -0
  195. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/ops_services/tables.py +0 -0
  196. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/ops_services/transactions.py +0 -0
  197. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/preview_output_models.py +0 -0
  198. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/py.typed +0 -0
  199. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/quality.py +0 -0
  200. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/quality_generation.py +0 -0
  201. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/runtime.py +0 -0
  202. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/runtime_services.py +0 -0
  203. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/storage.py +0 -0
  204. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/upstream.py +0 -0
  205. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/utils/__init__.py +0 -0
  206. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/utils/helpers.py +0 -0
  207. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/visual_qa.py +0 -0
  208. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/workflow/__init__.py +0 -0
  209. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/workflow/adapters.py +0 -0
  210. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/workflow/dispatcher.py +0 -0
  211. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/workflow/models.py +0 -0
  212. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/workflow/policy.py +0 -0
  213. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/workflow/render_contracts.py +0 -0
  214. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/workflow/render_metrics.py +0 -0
  215. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/workflow/render_queue.py +0 -0
  216. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/workflow/render_security.py +0 -0
  217. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/workflow/render_transport.py +0 -0
  218. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/workflow/rendering.py +0 -0
  219. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/workflow/service.py +0 -0
  220. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/workflow/state_machine.py +0 -0
  221. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/workflow/store.py +0 -0
  222. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/hwpx_automation/workspace.py +0 -0
  223. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/python_hwpx_automation.egg-info/dependency_links.txt +0 -0
  224. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/python_hwpx_automation.egg-info/entry_points.txt +0 -0
  225. {python_hwpx_automation-6.2.1 → python_hwpx_automation-6.3.1}/src/python_hwpx_automation.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-hwpx-automation
3
- Version: 6.2.1
3
+ Version: 6.3.1
4
4
  Summary: Task-oriented HWPX document automation for Python, with an optional MCP adapter.
5
5
  Author: Kohkyuhyun
6
6
  License-Expression: Apache-2.0
@@ -20,7 +20,7 @@ Requires-Python: >=3.10
20
20
  Description-Content-Type: text/markdown
21
21
  License-File: LICENSE
22
22
  License-File: NOTICE
23
- Requires-Dist: python-hwpx<6,>=5.2.0
23
+ Requires-Dist: python-hwpx<6,>=5.3.0
24
24
  Requires-Dist: pydantic<3,>=2.11
25
25
  Requires-Dist: cryptography>=42.0
26
26
  Requires-Dist: anyio>=4.0
@@ -74,10 +74,10 @@ Dynamic: license-file
74
74
 
75
75
  <!-- release-state: release-approved -->
76
76
  > [!NOTE]
77
- > 이 저장소의 main은 아직 공개되지 않은 6.2.1 후보 — release-approved 상태의 후보(수식 저작 `add_equation`,
78
- > 계약 `342cf672f29cd183`, 129 도구)입니다. 현재 공개 트레인은
79
- > `python-hwpx 5.1.1 → python-hwpx-automation 6.1.3 → hwpx-plugin 1.1.0`
80
- > (계약 `ac1a422376b5ac84`, 2026-07-31 released)입니다. 공개 트레인은
77
+ > 이 저장소의 main은 아직 공개되지 않은 6.3.1 후보 — release-approved 상태(네이티브 차트 생성
78
+ > `add_chart`, 계약 `236f8ea855c875fe`, 130 도구)입니다. 현재 공개 트레인은
79
+ > `python-hwpx 5.2.0 → python-hwpx-automation 6.2.1 → hwpx-plugin 1.2.0`
80
+ > (계약 `342cf672f29cd183`, 2026-07-31 released)입니다. 공개 트레인은
81
81
  > core·automation PyPI와 plugin GitHub
82
82
  > Release·marketplace·실제 marketplace 설치까지 확인한 뒤 승격했으며, 기존
83
83
  > 5.x 설치는 별도 발행된 `hwpx-mcp-server 5.1.1`이 보호합니다. 절차와 상태
@@ -14,10 +14,10 @@
14
14
 
15
15
  <!-- release-state: release-approved -->
16
16
  > [!NOTE]
17
- > 이 저장소의 main은 아직 공개되지 않은 6.2.1 후보 — release-approved 상태의 후보(수식 저작 `add_equation`,
18
- > 계약 `342cf672f29cd183`, 129 도구)입니다. 현재 공개 트레인은
19
- > `python-hwpx 5.1.1 → python-hwpx-automation 6.1.3 → hwpx-plugin 1.1.0`
20
- > (계약 `ac1a422376b5ac84`, 2026-07-31 released)입니다. 공개 트레인은
17
+ > 이 저장소의 main은 아직 공개되지 않은 6.3.1 후보 — release-approved 상태(네이티브 차트 생성
18
+ > `add_chart`, 계약 `236f8ea855c875fe`, 130 도구)입니다. 현재 공개 트레인은
19
+ > `python-hwpx 5.2.0 → python-hwpx-automation 6.2.1 → hwpx-plugin 1.2.0`
20
+ > (계약 `342cf672f29cd183`, 2026-07-31 released)입니다. 공개 트레인은
21
21
  > core·automation PyPI와 plugin GitHub
22
22
  > Release·marketplace·실제 marketplace 설치까지 확인한 뒤 승격했으며, 기존
23
23
  > 5.x 설치는 별도 발행된 `hwpx-mcp-server 5.1.1`이 보호합니다. 절차와 상태
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python-hwpx-automation"
7
- version = "6.2.1"
7
+ version = "6.3.1"
8
8
  description = "Task-oriented HWPX document automation for Python, with an optional MCP adapter."
9
9
  readme = "README.md"
10
10
  authors = [{ name = "Kohkyuhyun" }]
@@ -29,7 +29,7 @@ dependencies = [
29
29
  # the bounded major here is what makes "no valid install has two declarers"
30
30
  # true rather than hopeful, and prevents the next core major from silently
31
31
  # breaking an already-published automation line.
32
- "python-hwpx>=5.2.0,<6", # HWPX object model, OXML/OPC, format-native primitives
32
+ "python-hwpx>=5.3.0,<6", # HWPX object model, OXML/OPC, format-native primitives
33
33
 
34
34
  "pydantic>=2.11,<3",
35
35
  "cryptography>=42.0",
@@ -680,6 +680,46 @@ def add_page_break(
680
680
  return _with_save_verification({"success": True}, verification)
681
681
 
682
682
 
683
+ def add_chart(
684
+ filename: str,
685
+ chart_type: str,
686
+ categories: list,
687
+ series: list,
688
+ title: str = None,
689
+ paragraph_index: int = None,
690
+ table_index: int = None,
691
+ row: int = None,
692
+ col: int = None,
693
+ treat_as_char: bool = False,
694
+ dry_run: bool = False,
695
+ expected_revision: str = None,
696
+ ) -> dict:
697
+ """네이티브 차트(<hp:chart>+ECMA-376 chartML part)를 삽입합니다. 렌더 검증된
698
+ MVP 3종(bar·line·pie)만 지원 — 밖이면 CHART_UNSUPPORTED로 typed 거부(무음
699
+ 근사 없음). series=[{"name": str, "values": [number,...]}], values 길이는
700
+ categories와 일치해야 합니다. 실한컴은 chartML만으로 차트를 그립니다(OLE
701
+ 폴백·사전렌더 이미지 불요). 배치: 기본=문서 끝 새 문단(float),
702
+ paragraph_index=기존 문단, tableIndex+row+col=표 셀, treat_as_char=인라인."""
703
+ path = resolve_path(filename)
704
+ guard = _revision_guard(path, expected_revision)
705
+ if guard is not None:
706
+ return guard
707
+ result = RUNTIME_SERVICES.ops.add_chart(
708
+ path,
709
+ chart_type=chart_type,
710
+ categories=categories,
711
+ series=series,
712
+ title=title,
713
+ paragraph_index=paragraph_index,
714
+ table_index=table_index,
715
+ row=row,
716
+ col=col,
717
+ treat_as_char=treat_as_char,
718
+ dry_run=dry_run,
719
+ )
720
+ return _with_document_state(result, path)
721
+
722
+
683
723
  def add_equation(
684
724
  filename: str,
685
725
  latex: str = None,
@@ -1097,6 +1137,7 @@ __all__ = [
1097
1137
  "delete_paragraph",
1098
1138
  "add_page_break",
1099
1139
  "add_equation",
1140
+ "add_chart",
1100
1141
  "apply_edits",
1101
1142
  "undo_last_edit",
1102
1143
  "replace_by_anchor",
@@ -517,6 +517,35 @@ class HwpxOps:
517
517
  path, text, section_index=section_index, run_style=run_style
518
518
  )
519
519
 
520
+ def add_chart(
521
+ self,
522
+ path: str,
523
+ *,
524
+ chart_type: str,
525
+ categories: list[str],
526
+ series: list[dict],
527
+ title: Optional[str] = None,
528
+ paragraph_index: Optional[int] = None,
529
+ table_index: Optional[int] = None,
530
+ row: Optional[int] = None,
531
+ col: Optional[int] = None,
532
+ treat_as_char: bool = False,
533
+ dry_run: bool = False,
534
+ ) -> Dict[str, Any]:
535
+ return self._services.content_layout.add_chart(
536
+ path,
537
+ chart_type=chart_type,
538
+ categories=categories,
539
+ series=series,
540
+ title=title,
541
+ paragraph_index=paragraph_index,
542
+ table_index=table_index,
543
+ row=row,
544
+ col=col,
545
+ treat_as_char=treat_as_char,
546
+ dry_run=dry_run,
547
+ )
548
+
520
549
  def add_equation(
521
550
  self,
522
551
  path: str,
@@ -5,20 +5,20 @@
5
5
  "releaseState": {
6
6
  "status": "release-approved",
7
7
  "candidate": {
8
- "pythonHwpx": "5.2.0",
8
+ "pythonHwpx": "5.3.0",
9
9
  "canonicalDistribution": "python-hwpx-automation",
10
- "canonicalAutomation": "6.2.1",
10
+ "canonicalAutomation": "6.3.1",
11
11
  "compatibilityDistribution": "hwpx-mcp-server",
12
- "compatibility": "6.2.1",
13
- "plugin": "1.2.0",
14
- "contractHash": "342cf672f29cd183"
12
+ "compatibility": "6.3.1",
13
+ "plugin": "1.3.0",
14
+ "contractHash": "236f8ea855c875fe"
15
15
  },
16
16
  "currentPublic": {
17
- "pythonHwpx": "5.1.1",
17
+ "pythonHwpx": "5.2.0",
18
18
  "primaryDistribution": "python-hwpx-automation",
19
- "primaryApplication": "6.1.3",
20
- "plugin": "1.1.0",
21
- "contractHash": "ac1a422376b5ac84"
19
+ "primaryApplication": "6.2.1",
20
+ "plugin": "1.2.0",
21
+ "contractHash": "342cf672f29cd183"
22
22
  },
23
23
  "promotionGate": "Three states are mandatory: unreleased-candidate while auditing; release-approved only after separate owner approval and while currentPublic still names the previously observed coherent stack; released only in a follow-up commit after remote truth is observed for core, canonical automation, the compatibility distribution, the plugin GitHub release, the marketplace entry, and a real marketplace install. The automation tag workflow publishes only release-approved, leaves currentPublic unchanged, and hands an attached receipt to plugin publication."
24
24
  },
@@ -0,0 +1,162 @@
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ """Deterministic data → ECMA-376 chartML generator (MVP: bar, line, pie).
3
+
4
+ The grammar mirrors the render-verified probes in
5
+ specs/055-chart-authoring/evidence/p0 (workspace): a ``c:chartSpace``
6
+ skeleton, per-series ``c:ser`` with string/number caches, and the
7
+ type-specific plot element (``c:barChart`` / ``c:lineChart`` + axis pair /
8
+ ``c:pieChart``). Anything outside the verified set is refused with a typed
9
+ error — no silent approximation. Real Hancom draws the output from the
10
+ chartML alone (no OLE fallback, no pre-rendered image).
11
+ """
12
+
13
+ from __future__ import annotations
14
+
15
+ from dataclasses import dataclass
16
+ from typing import Sequence
17
+ from xml.sax.saxutils import escape
18
+
19
+ CHART_TYPES = ("bar", "line", "pie")
20
+
21
+ _CAT_AX_ID = "111111111"
22
+ _VAL_AX_ID = "222222222"
23
+
24
+ _HEAD = (
25
+ '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'
26
+ '<c:chartSpace xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"'
27
+ ' xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"'
28
+ ' xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart">'
29
+ '<c:date1904 val="0"/><c:roundedCorners val="0"/><c:chart>'
30
+ )
31
+
32
+
33
+ class UnsupportedChartError(ValueError):
34
+ """Raised for chart types or shapes outside the render-verified MVP set."""
35
+
36
+
37
+ @dataclass(frozen=True)
38
+ class ChartSeries:
39
+ """One data series: a display name and one value per category."""
40
+
41
+ name: str
42
+ values: tuple[float, ...]
43
+
44
+
45
+ def _series(index: int, name: str, categories: Sequence[str],
46
+ values: Sequence[float], extra: str = "") -> str:
47
+ cats = "".join(
48
+ f'<c:pt idx="{i}"><c:v>{escape(str(c))}</c:v></c:pt>'
49
+ for i, c in enumerate(categories)
50
+ )
51
+ vals = "".join(
52
+ f'<c:pt idx="{i}"><c:v>{v:g}</c:v></c:pt>' for i, v in enumerate(values)
53
+ )
54
+ column = chr(ord("B") + index)
55
+ return (
56
+ f'<c:ser><c:idx val="{index}"/><c:order val="{index}"/>'
57
+ f"<c:tx><c:strRef><c:f>Sheet1!${column}$1</c:f>"
58
+ f'<c:strCache><c:ptCount val="1"/><c:pt idx="0"><c:v>{escape(name)}</c:v></c:pt>'
59
+ f"</c:strCache></c:strRef></c:tx>{extra}"
60
+ f"<c:cat><c:strRef><c:f>Sheet1!$A$2:$A${len(categories) + 1}</c:f>"
61
+ f'<c:strCache><c:ptCount val="{len(categories)}"/>{cats}</c:strCache></c:strRef></c:cat>'
62
+ f"<c:val><c:numRef><c:f>Sheet1!${column}$2:${column}${len(values) + 1}</c:f>"
63
+ f"<c:numCache><c:formatCode>General</c:formatCode>"
64
+ f'<c:ptCount val="{len(values)}"/>{vals}</c:numCache></c:numRef></c:val></c:ser>'
65
+ )
66
+
67
+
68
+ def _axes() -> str:
69
+ return (
70
+ f'<c:catAx><c:axId val="{_CAT_AX_ID}"/>'
71
+ '<c:scaling><c:orientation val="minMax"/></c:scaling><c:delete val="0"/>'
72
+ f'<c:axPos val="b"/><c:crossAx val="{_VAL_AX_ID}"/></c:catAx>'
73
+ f'<c:valAx><c:axId val="{_VAL_AX_ID}"/>'
74
+ '<c:scaling><c:orientation val="minMax"/></c:scaling><c:delete val="0"/>'
75
+ f'<c:axPos val="l"/><c:crossAx val="{_CAT_AX_ID}"/></c:valAx>'
76
+ )
77
+
78
+
79
+ def build_chart_ml(
80
+ chart_type: str,
81
+ categories: Sequence[str],
82
+ series: Sequence[ChartSeries],
83
+ *,
84
+ title: str | None = None,
85
+ ) -> str:
86
+ """Build chartML for one of the render-verified MVP chart types.
87
+
88
+ Raises:
89
+ UnsupportedChartError: unknown chart type, empty/mismatched data, or
90
+ a shape outside the verified set (e.g. multi-series pie).
91
+ """
92
+
93
+ if chart_type not in CHART_TYPES:
94
+ raise UnsupportedChartError(
95
+ f"unsupported chart type {chart_type!r}; render-verified types: "
96
+ + ", ".join(CHART_TYPES)
97
+ )
98
+ if not categories:
99
+ raise UnsupportedChartError("categories must be non-empty")
100
+ if not series:
101
+ raise UnsupportedChartError("series must be non-empty")
102
+ if chart_type == "pie" and len(series) != 1:
103
+ raise UnsupportedChartError("a pie chart takes exactly one series")
104
+ if len(series) > 25:
105
+ raise UnsupportedChartError("at most 25 series are supported")
106
+ for item in series:
107
+ if not item.name.strip():
108
+ raise UnsupportedChartError("every series needs a non-empty name")
109
+ if len(item.values) != len(categories):
110
+ raise UnsupportedChartError(
111
+ f"series {item.name!r} has {len(item.values)} values for "
112
+ f"{len(categories)} categories"
113
+ )
114
+
115
+ parts: list[str] = [_HEAD]
116
+ if title is not None and title.strip():
117
+ parts.append(
118
+ "<c:title><c:tx><c:rich><a:bodyPr/><a:p><a:r><a:t>"
119
+ + escape(title)
120
+ + "</a:t></a:r></a:p></c:rich></c:tx><c:overlay val=\"0\"/></c:title>"
121
+ '<c:autoTitleDeleted val="0"/>'
122
+ )
123
+ parts.append("<c:plotArea><c:layout/>")
124
+
125
+ if chart_type == "bar":
126
+ parts.append('<c:barChart><c:barDir val="col"/><c:grouping val="clustered"/><c:varyColors val="0"/>')
127
+ for index, item in enumerate(series):
128
+ parts.append(_series(index, item.name, categories, item.values))
129
+ parts.append(
130
+ f'<c:axId val="{_CAT_AX_ID}"/><c:axId val="{_VAL_AX_ID}"/></c:barChart>'
131
+ )
132
+ parts.append(_axes())
133
+ elif chart_type == "line":
134
+ parts.append('<c:lineChart><c:grouping val="standard"/><c:varyColors val="0"/>')
135
+ for index, item in enumerate(series):
136
+ parts.append(
137
+ _series(
138
+ index, item.name, categories, item.values,
139
+ '<c:marker><c:symbol val="circle"/><c:size val="5"/></c:marker>',
140
+ )
141
+ )
142
+ parts.append(
143
+ '<c:marker val="1"/>'
144
+ f'<c:axId val="{_CAT_AX_ID}"/><c:axId val="{_VAL_AX_ID}"/></c:lineChart>'
145
+ )
146
+ parts.append(_axes())
147
+ else: # pie
148
+ parts.append('<c:pieChart><c:varyColors val="1"/>')
149
+ parts.append(_series(0, series[0].name, categories, series[0].values))
150
+ parts.append('<c:firstSliceAng val="0"/></c:pieChart>')
151
+
152
+ parts.append("</c:plotArea>")
153
+ parts.append('<c:plotVisOnly val="1"/></c:chart></c:chartSpace>')
154
+ return "".join(parts)
155
+
156
+
157
+ __all__ = [
158
+ "CHART_TYPES",
159
+ "ChartSeries",
160
+ "UnsupportedChartError",
161
+ "build_chart_ml",
162
+ ]
@@ -127,17 +127,18 @@ class ContentLayoutService:
127
127
  table_index: Optional[int],
128
128
  row: Optional[int],
129
129
  col: Optional[int],
130
+ target_error_code: str = "EQUATION_TARGET_INVALID",
130
131
  ) -> Any:
131
132
  cell_parts = (table_index, row, col)
132
133
  use_cell = any(part is not None for part in cell_parts)
133
134
  if use_cell and not all(part is not None for part in cell_parts):
134
135
  raise self._context._new_error(
135
- "EQUATION_TARGET_INVALID",
136
+ target_error_code,
136
137
  "provide tableIndex, row, and col together for a cell target",
137
138
  )
138
139
  if use_cell and paragraph_index is not None:
139
140
  raise self._context._new_error(
140
- "EQUATION_TARGET_INVALID",
141
+ target_error_code,
141
142
  "paragraphIndex cannot be combined with a cell target",
142
143
  )
143
144
  if use_cell:
@@ -169,6 +170,80 @@ class ContentLayoutService:
169
170
  ) from exc
170
171
  return None
171
172
 
173
+ def add_chart(
174
+ self,
175
+ path: str,
176
+ *,
177
+ chart_type: str,
178
+ categories: list[str],
179
+ series: list[dict],
180
+ title: Optional[str] = None,
181
+ paragraph_index: Optional[int] = None,
182
+ table_index: Optional[int] = None,
183
+ row: Optional[int] = None,
184
+ col: Optional[int] = None,
185
+ treat_as_char: bool = False,
186
+ dry_run: bool = False,
187
+ ) -> Dict[str, Any]:
188
+ from ..office.charting import (
189
+ ChartSeries,
190
+ UnsupportedChartError,
191
+ build_chart_ml,
192
+ )
193
+
194
+ try:
195
+ parsed_series = [
196
+ ChartSeries(
197
+ name=str(item.get("name", "")),
198
+ values=tuple(float(v) for v in item.get("values", ())),
199
+ )
200
+ for item in series
201
+ ]
202
+ except (TypeError, ValueError) as exc:
203
+ raise self._context._new_error(
204
+ "CHART_INPUT_INVALID",
205
+ f"series values must be numbers: {exc}",
206
+ ) from exc
207
+ try:
208
+ chart_ml = build_chart_ml(
209
+ chart_type, categories, parsed_series, title=title
210
+ )
211
+ except UnsupportedChartError as exc:
212
+ raise self._context._new_error(
213
+ "CHART_UNSUPPORTED", str(exc)
214
+ ) from exc
215
+
216
+ document, resolved = self._context._open_document(path)
217
+ paragraph = self._resolve_equation_target(
218
+ document,
219
+ paragraph_index=paragraph_index,
220
+ table_index=table_index,
221
+ row=row,
222
+ col=col,
223
+ target_error_code="CHART_TARGET_INVALID",
224
+ )
225
+ try:
226
+ inline_object = document.add_chart(
227
+ chart_ml, paragraph=paragraph, treat_as_char=treat_as_char
228
+ )
229
+ except ValueError as exc:
230
+ raise self._context._new_error(
231
+ "CHART_INPUT_INVALID", str(exc)
232
+ ) from exc
233
+ result = {
234
+ "ok": True,
235
+ "filename": path,
236
+ "chart": {
237
+ "chartType": chart_type,
238
+ "chartIDRef": inline_object.element.get("chartIDRef"),
239
+ "seriesCount": len(parsed_series),
240
+ "categoryCount": len(categories),
241
+ },
242
+ }
243
+ return self._transactions._with_transaction_verification(
244
+ result, document, resolved, dry_run=dry_run
245
+ )
246
+
172
247
  def add_equation(
173
248
  self,
174
249
  path: str,
@@ -0,0 +1,207 @@
1
+ {
2
+ "schemaVersion": "python-hwpx-automation.public-modules/v1",
3
+ "scope": "All Python modules shipped by the canonical 6.x distribution. Base-public modules must import without the optional MCP SDK; the five adapter modules require the mcp extra by design.",
4
+ "moduleCount": 178,
5
+ "moduleSha256": "bde514982198eb1db9e125c7f3cc46f29e39d3a3db57f973d0d3c7524081c1e8",
6
+ "basePublicModuleCount": 173,
7
+ "basePublicModuleSha256": "4417935156927a59f424fb767eebea4dd6ec2f2ade0266ad137af37e79fa57a0",
8
+ "basePublicModules": [
9
+ "hwpx_automation",
10
+ "hwpx_automation.__main__",
11
+ "hwpx_automation.agent_document",
12
+ "hwpx_automation.api",
13
+ "hwpx_automation.blind_eval",
14
+ "hwpx_automation.capabilities",
15
+ "hwpx_automation.compat",
16
+ "hwpx_automation.configuration",
17
+ "hwpx_automation.core",
18
+ "hwpx_automation.core.content",
19
+ "hwpx_automation.core.context",
20
+ "hwpx_automation.core.diff",
21
+ "hwpx_automation.core.document",
22
+ "hwpx_automation.core.formatting",
23
+ "hwpx_automation.core.handles",
24
+ "hwpx_automation.core.locations",
25
+ "hwpx_automation.core.locator",
26
+ "hwpx_automation.core.plan",
27
+ "hwpx_automation.core.resources",
28
+ "hwpx_automation.core.search",
29
+ "hwpx_automation.core.transactions",
30
+ "hwpx_automation.core.txn",
31
+ "hwpx_automation.document_state",
32
+ "hwpx_automation.errors",
33
+ "hwpx_automation.execution_lock",
34
+ "hwpx_automation.form_fill",
35
+ "hwpx_automation.form_output_models",
36
+ "hwpx_automation.handlers",
37
+ "hwpx_automation.handlers._shared",
38
+ "hwpx_automation.handlers.agent_document",
39
+ "hwpx_automation.handlers.authoring",
40
+ "hwpx_automation.handlers.content_edit",
41
+ "hwpx_automation.handlers.form_fill",
42
+ "hwpx_automation.handlers.layout_style",
43
+ "hwpx_automation.handlers.read_export",
44
+ "hwpx_automation.handlers.specialized",
45
+ "hwpx_automation.handlers.tracked_changes",
46
+ "hwpx_automation.handlers.workflow",
47
+ "hwpx_automation.hwp_converter",
48
+ "hwpx_automation.hwp_support",
49
+ "hwpx_automation.hwpx_ops",
50
+ "hwpx_automation.identity",
51
+ "hwpx_automation.ingest_adapters",
52
+ "hwpx_automation.markdown_plan",
53
+ "hwpx_automation.mcp_cli",
54
+ "hwpx_automation.metadata.tools_meta",
55
+ "hwpx_automation.mixed_form",
56
+ "hwpx_automation.mutation_models",
57
+ "hwpx_automation.network_policy",
58
+ "hwpx_automation.office",
59
+ "hwpx_automation.office.agent",
60
+ "hwpx_automation.office.agent._batch_verification",
61
+ "hwpx_automation.office.agent.blueprint",
62
+ "hwpx_automation.office.agent.blueprint.bundle",
63
+ "hwpx_automation.office.agent.blueprint.catalog",
64
+ "hwpx_automation.office.agent.blueprint.dump",
65
+ "hwpx_automation.office.agent.blueprint.mapping",
66
+ "hwpx_automation.office.agent.blueprint.model",
67
+ "hwpx_automation.office.agent.blueprint.native",
68
+ "hwpx_automation.office.agent.blueprint.replay",
69
+ "hwpx_automation.office.agent.catalog",
70
+ "hwpx_automation.office.agent.cli",
71
+ "hwpx_automation.office.agent.commands",
72
+ "hwpx_automation.office.agent.document",
73
+ "hwpx_automation.office.agent.form_plan",
74
+ "hwpx_automation.office.agent.model",
75
+ "hwpx_automation.office.agent.path",
76
+ "hwpx_automation.office.agent.query",
77
+ "hwpx_automation.office.agent.story",
78
+ "hwpx_automation.office.authoring",
79
+ "hwpx_automation.office.authoring.advanced_generators",
80
+ "hwpx_automation.office.authoring.builder",
81
+ "hwpx_automation.office.authoring.builder.core",
82
+ "hwpx_automation.office.authoring.builder.report",
83
+ "hwpx_automation.office.authoring.design",
84
+ "hwpx_automation.office.authoring.design._support",
85
+ "hwpx_automation.office.authoring.design.composer",
86
+ "hwpx_automation.office.authoring.design.harvest",
87
+ "hwpx_automation.office.authoring.design.plan",
88
+ "hwpx_automation.office.authoring.design.profile",
89
+ "hwpx_automation.office.authoring.design.validator",
90
+ "hwpx_automation.office.authoring.presets",
91
+ "hwpx_automation.office.authoring.presets.proposal",
92
+ "hwpx_automation.office.authoring.report_parser",
93
+ "hwpx_automation.office.authoring.style_profile",
94
+ "hwpx_automation.office.authoring.template_analyzer",
95
+ "hwpx_automation.office.charting",
96
+ "hwpx_automation.office.compliance",
97
+ "hwpx_automation.office.compliance.official_lint",
98
+ "hwpx_automation.office.compliance.pii",
99
+ "hwpx_automation.office.document_ops",
100
+ "hwpx_automation.office.document_ops.comparison",
101
+ "hwpx_automation.office.document_ops.mail_merge",
102
+ "hwpx_automation.office.document_ops.redline",
103
+ "hwpx_automation.office.evalplan",
104
+ "hwpx_automation.office.evalplan.runtime",
105
+ "hwpx_automation.office.exam",
106
+ "hwpx_automation.office.exam.compose",
107
+ "hwpx_automation.office.exam.ir",
108
+ "hwpx_automation.office.exam.measure",
109
+ "hwpx_automation.office.exam.parser",
110
+ "hwpx_automation.office.exam.profile",
111
+ "hwpx_automation.office.form_fill",
112
+ "hwpx_automation.office.form_fill.classification",
113
+ "hwpx_automation.office.form_fill.fill_residue",
114
+ "hwpx_automation.office.form_fill.fit",
115
+ "hwpx_automation.office.form_fill.fit.apply",
116
+ "hwpx_automation.office.form_fill.fit.engine",
117
+ "hwpx_automation.office.form_fill.fit.measure",
118
+ "hwpx_automation.office.form_fill.fit.policy",
119
+ "hwpx_automation.office.form_fill.fit.report",
120
+ "hwpx_automation.office.form_fill.fit.seal",
121
+ "hwpx_automation.office.form_fill.fit.wordbox",
122
+ "hwpx_automation.office.form_fill.guidance",
123
+ "hwpx_automation.office.form_fill.quality",
124
+ "hwpx_automation.office.form_fill.split_run",
125
+ "hwpx_automation.office.form_fill.template_formfit",
126
+ "hwpx_automation.office.house_style",
127
+ "hwpx_automation.office.house_style.composition",
128
+ "hwpx_automation.office.quality",
129
+ "hwpx_automation.office.quality.page_guard",
130
+ "hwpx_automation.office.rendering",
131
+ "hwpx_automation.office.rendering.block_splits",
132
+ "hwpx_automation.office.rendering.detectors",
133
+ "hwpx_automation.office.rendering.diff",
134
+ "hwpx_automation.office.rendering.fixture_corpus",
135
+ "hwpx_automation.office.rendering.oracle",
136
+ "hwpx_automation.office.rendering.page_qa",
137
+ "hwpx_automation.office.rendering.qa_contracts",
138
+ "hwpx_automation.office.rendering.qa_metrics",
139
+ "hwpx_automation.office.rendering.worker",
140
+ "hwpx_automation.office.utilities",
141
+ "hwpx_automation.office.utilities.table_compute",
142
+ "hwpx_automation.ops_services",
143
+ "hwpx_automation.ops_services._border_fill",
144
+ "hwpx_automation.ops_services.composition",
145
+ "hwpx_automation.ops_services.content_layout",
146
+ "hwpx_automation.ops_services.context",
147
+ "hwpx_automation.ops_services.form_fields",
148
+ "hwpx_automation.ops_services.media",
149
+ "hwpx_automation.ops_services.memo_style",
150
+ "hwpx_automation.ops_services.package_validation",
151
+ "hwpx_automation.ops_services.planning",
152
+ "hwpx_automation.ops_services.preview_export",
153
+ "hwpx_automation.ops_services.read_query",
154
+ "hwpx_automation.ops_services.save_policy",
155
+ "hwpx_automation.ops_services.tables",
156
+ "hwpx_automation.ops_services.transactions",
157
+ "hwpx_automation.preview_output_models",
158
+ "hwpx_automation.quality",
159
+ "hwpx_automation.quality_generation",
160
+ "hwpx_automation.runtime_services",
161
+ "hwpx_automation.storage",
162
+ "hwpx_automation.tool_contract",
163
+ "hwpx_automation.upstream",
164
+ "hwpx_automation.utils",
165
+ "hwpx_automation.utils.helpers",
166
+ "hwpx_automation.visual_qa",
167
+ "hwpx_automation.workflow",
168
+ "hwpx_automation.workflow.adapters",
169
+ "hwpx_automation.workflow.dispatcher",
170
+ "hwpx_automation.workflow.models",
171
+ "hwpx_automation.workflow.policy",
172
+ "hwpx_automation.workflow.render_contracts",
173
+ "hwpx_automation.workflow.render_metrics",
174
+ "hwpx_automation.workflow.render_queue",
175
+ "hwpx_automation.workflow.render_security",
176
+ "hwpx_automation.workflow.render_transport",
177
+ "hwpx_automation.workflow.rendering",
178
+ "hwpx_automation.workflow.service",
179
+ "hwpx_automation.workflow.state_machine",
180
+ "hwpx_automation.workflow.store",
181
+ "hwpx_automation.workspace"
182
+ ],
183
+ "mcpAdapterModuleCount": 5,
184
+ "mcpAdapterModuleSha256": "89fa1f67eebb1b370021c6285be567f1926155188f5e2df35a6a4a49b1cffb61",
185
+ "mcpAdapterModules": [
186
+ {
187
+ "module": "hwpx_automation.fastmcp_adapter",
188
+ "reason": "Imports FastMCP protocol types and implements the adapter boundary."
189
+ },
190
+ {
191
+ "module": "hwpx_automation.handlers.quality_render",
192
+ "reason": "Returns MCP protocol content blocks from adapter-facing quality handlers."
193
+ },
194
+ {
195
+ "module": "hwpx_automation.runtime",
196
+ "reason": "Composes the FastMCP runtime and protocol types."
197
+ },
198
+ {
199
+ "module": "hwpx_automation.server",
200
+ "reason": "Starts the optional MCP transport."
201
+ },
202
+ {
203
+ "module": "hwpx_automation.tool_bindings",
204
+ "reason": "Binds pure ToolSpec data to FastMCP runtime handlers."
205
+ }
206
+ ]
207
+ }
@@ -82,6 +82,7 @@ describe_template = TOOL_BINDINGS["describe_template"]
82
82
  add_heading = TOOL_BINDINGS["add_heading"]
83
83
  add_paragraph = TOOL_BINDINGS["add_paragraph"]
84
84
  add_equation = TOOL_BINDINGS["add_equation"]
85
+ add_chart = TOOL_BINDINGS["add_chart"]
85
86
  insert_paragraph = TOOL_BINDINGS["insert_paragraph"]
86
87
  delete_paragraph = TOOL_BINDINGS["delete_paragraph"]
87
88
  add_page_break = TOOL_BINDINGS["add_page_break"]