python-hwpx-automation 7.4.1__tar.gz → 7.5.0__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 (242) hide show
  1. {python_hwpx_automation-7.4.1/src/python_hwpx_automation.egg-info → python_hwpx_automation-7.5.0}/PKG-INFO +21 -6
  2. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/README.md +18 -3
  3. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/pyproject.toml +25 -12
  4. python_hwpx_automation-7.5.0/src/hwpx_automation/configuration.py +157 -0
  5. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/core/content.py +166 -3
  6. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/core/formatting.py +175 -136
  7. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/fastmcp_adapter.py +58 -5
  8. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/form_fill.py +22 -7
  9. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/handlers/content_edit.py +2 -28
  10. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/handlers/form_fill.py +28 -2
  11. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/handlers/read_export.py +29 -3
  12. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/handlers/specialized.py +1 -10
  13. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/handlers/workflow.py +62 -4
  14. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/identity.json +4 -4
  15. python_hwpx_automation-7.5.0/src/hwpx_automation/minimal_profile.py +287 -0
  16. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/mixed_form.py +7 -2
  17. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/_text_scope.py +35 -1
  18. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/blueprint/dump.py +11 -10
  19. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/blueprint/mapping.py +3 -2
  20. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/blueprint/native.py +39 -27
  21. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/commands.py +140 -66
  22. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/document.py +69 -23
  23. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/__init__.py +315 -31
  24. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/builder/core.py +60 -3
  25. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/_support.py +37 -6
  26. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/composer.py +53 -9
  27. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/harvest.py +6 -5
  28. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/marked.py +60 -15
  29. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/plan.py +3 -0
  30. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/validator.py +1 -1
  31. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/style_profile.py +6 -1
  32. python_hwpx_automation-7.5.0/src/hwpx_automation/office/authoring/template_analyzer.py +189 -0
  33. python_hwpx_automation-7.5.0/src/hwpx_automation/office/compact/__init__.py +321 -0
  34. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/form_fill/fill_residue.py +1 -1
  35. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/form_fill/guidance.py +1 -1
  36. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/form_fill/split_run.py +40 -3
  37. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/form_fill/template_formfit.py +208 -51
  38. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/house_style/composition.py +38 -1
  39. python_hwpx_automation-7.5.0/src/hwpx_automation/office/quality/page_guard.py +36 -0
  40. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/rendering/__init__.py +7 -3
  41. python_hwpx_automation-7.5.0/src/hwpx_automation/office/rendering/_hancom_alerts_mac.applescript +235 -0
  42. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/rendering/_refresh_hwpx_mac.applescript +12 -11
  43. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/rendering/_render_hwpx_mac.applescript +1 -229
  44. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/rendering/cli.py +10 -22
  45. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/rendering/mac_session.py +82 -16
  46. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/rendering/oracle.py +41 -13
  47. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/rendering/worker.py +3 -1
  48. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/ops_services/memo_style.py +1 -123
  49. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/ops_services/preview_export.py +8 -8
  50. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/ops_services/tables.py +8 -5
  51. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/public-modules.json +12 -7
  52. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/server.py +16 -4
  53. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/storage.py +100 -1
  54. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/tool_contract.py +91 -35
  55. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/upstream.py +0 -48
  56. python_hwpx_automation-7.5.0/src/hwpx_automation/utils/helpers.py +97 -0
  57. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/workflow/adapters.py +5 -2
  58. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/workflow/dispatcher.py +2 -2
  59. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/workflow/models.py +11 -0
  60. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/workflow/service.py +26 -3
  61. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0/src/python_hwpx_automation.egg-info}/PKG-INFO +21 -6
  62. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/python_hwpx_automation.egg-info/SOURCES.txt +3 -0
  63. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/python_hwpx_automation.egg-info/requires.txt +2 -2
  64. python_hwpx_automation-7.4.1/src/hwpx_automation/configuration.py +0 -60
  65. python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/template_analyzer.py +0 -662
  66. python_hwpx_automation-7.4.1/src/hwpx_automation/office/quality/page_guard.py +0 -277
  67. python_hwpx_automation-7.4.1/src/hwpx_automation/utils/helpers.py +0 -29
  68. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/LICENSE +0 -0
  69. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/MANIFEST.in +0 -0
  70. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/NOTICE +0 -0
  71. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/setup.cfg +0 -0
  72. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/__init__.py +0 -0
  73. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/__init__.pyi +0 -0
  74. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/__main__.py +0 -0
  75. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/agent_document.py +0 -0
  76. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/api.py +0 -0
  77. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/blind_eval.py +0 -0
  78. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/capabilities.py +0 -0
  79. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/compat.py +0 -0
  80. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/core/__init__.py +0 -0
  81. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/core/context.py +0 -0
  82. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/core/diff.py +0 -0
  83. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/core/document.py +0 -0
  84. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/core/handles.py +0 -0
  85. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/core/locations.py +0 -0
  86. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/core/locator.py +0 -0
  87. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/core/plan.py +0 -0
  88. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/core/resources.py +0 -0
  89. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/core/search.py +0 -0
  90. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/core/transactions.py +0 -0
  91. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/core/txn.py +0 -0
  92. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/document_state.py +0 -0
  93. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/errors.py +0 -0
  94. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/execution_lock.py +0 -0
  95. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/form_output_models.py +0 -0
  96. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/handlers/__init__.py +0 -0
  97. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/handlers/_shared.py +0 -0
  98. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/handlers/agent_document.py +0 -0
  99. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/handlers/authoring.py +0 -0
  100. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/handlers/layout_style.py +0 -0
  101. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/handlers/quality_render.py +0 -0
  102. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/handlers/tracked_changes.py +0 -0
  103. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/hwp_converter.py +0 -0
  104. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/hwp_support.py +0 -0
  105. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/hwpx_ops.py +0 -0
  106. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/identity.py +0 -0
  107. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/ingest_adapters.py +0 -0
  108. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/markdown_plan.py +0 -0
  109. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/mcp_cli.py +0 -0
  110. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/metadata/tools_meta.py +0 -0
  111. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/mutation_models.py +0 -0
  112. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/network_policy.py +0 -0
  113. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/__init__.py +0 -0
  114. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/__init__.py +0 -0
  115. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/_batch_publication.py +0 -0
  116. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/_batch_verification.py +0 -0
  117. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/blueprint/__init__.py +0 -0
  118. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/blueprint/bundle.py +0 -0
  119. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/blueprint/catalog.py +0 -0
  120. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/blueprint/model.py +0 -0
  121. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/blueprint/replay.py +0 -0
  122. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/catalog.py +0 -0
  123. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/cli.py +0 -0
  124. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/form_plan.py +0 -0
  125. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/model.py +0 -0
  126. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/path.py +0 -0
  127. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/query.py +0 -0
  128. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/agent/story.py +0 -0
  129. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/advanced_generators.py +0 -0
  130. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/builder/__init__.py +0 -0
  131. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/builder/report.py +0 -0
  132. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/__init__.py +0 -0
  133. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profile.py +0 -0
  134. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/application_form/fragments/body.xml +0 -0
  135. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/application_form/fragments/heading.xml +0 -0
  136. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/application_form/fragments/info_table.xml +0 -0
  137. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/application_form/fragments/title.xml +0 -0
  138. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/application_form/profile.json +0 -0
  139. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/application_form/template.hwpx +0 -0
  140. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/home_notice/fragments/body.xml +0 -0
  141. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/home_notice/fragments/heading.xml +0 -0
  142. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/home_notice/fragments/title.xml +0 -0
  143. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/home_notice/profile.json +0 -0
  144. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/home_notice/template.hwpx +0 -0
  145. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/official_notice/fragments/body.xml +0 -0
  146. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/official_notice/fragments/heading.xml +0 -0
  147. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/official_notice/fragments/info_table.xml +0 -0
  148. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/official_notice/fragments/title.xml +0 -0
  149. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/official_notice/profile.json +0 -0
  150. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/official_notice/template.hwpx +0 -0
  151. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/report/fragments/body.xml +0 -0
  152. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/report/fragments/heading.xml +0 -0
  153. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/report/fragments/info_table.xml +0 -0
  154. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/report/fragments/title.xml +0 -0
  155. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/report/profile.json +0 -0
  156. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/design/profiles/report/template.hwpx +0 -0
  157. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/presets/__init__.py +0 -0
  158. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/presets/proposal.py +0 -0
  159. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/authoring/report_parser.py +0 -0
  160. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/charting/__init__.py +0 -0
  161. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/compliance/__init__.py +0 -0
  162. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/compliance/official_lint.py +0 -0
  163. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/compliance/pii.py +0 -0
  164. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/document_ops/__init__.py +0 -0
  165. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/document_ops/comparison.py +0 -0
  166. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/document_ops/mail_merge.py +0 -0
  167. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/document_ops/redline.py +0 -0
  168. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/evalplan/__init__.py +0 -0
  169. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/evalplan/runtime.py +0 -0
  170. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/exam/__init__.py +0 -0
  171. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/exam/compose.py +0 -0
  172. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/exam/ir.py +0 -0
  173. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/exam/measure.py +0 -0
  174. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/exam/parser.py +0 -0
  175. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/exam/profile.py +0 -0
  176. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/form_fill/__init__.py +0 -0
  177. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/form_fill/classification.py +0 -0
  178. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/form_fill/fit/__init__.py +0 -0
  179. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/form_fill/fit/apply.py +0 -0
  180. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/form_fill/fit/engine.py +0 -0
  181. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/form_fill/fit/measure.py +0 -0
  182. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/form_fill/fit/policy.py +0 -0
  183. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/form_fill/fit/report.py +0 -0
  184. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/form_fill/fit/seal.py +0 -0
  185. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/form_fill/fit/wordbox.py +0 -0
  186. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/form_fill/quality.py +0 -0
  187. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/house_style/__init__.py +0 -0
  188. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/house_style/data/bank.json +0 -0
  189. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/house_style/data/genres.json +0 -0
  190. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/house_style/gianmun.py +0 -0
  191. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/house_style/org_chart.py +0 -0
  192. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/quality/__init__.py +0 -0
  193. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/rendering/__main__.py +0 -0
  194. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/rendering/_hancom_open_rate.ps1 +0 -0
  195. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/rendering/_render_hwpx.ps1 +0 -0
  196. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/rendering/block_splits.py +0 -0
  197. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/rendering/detectors.py +0 -0
  198. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/rendering/diff.py +0 -0
  199. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/rendering/fixture_corpus.py +0 -0
  200. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/rendering/page_qa.py +0 -0
  201. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/rendering/qa_contracts.py +0 -0
  202. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/rendering/qa_metrics.py +0 -0
  203. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/utilities/__init__.py +0 -0
  204. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/office/utilities/table_compute.py +0 -0
  205. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/ops_services/__init__.py +0 -0
  206. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/ops_services/_border_fill.py +0 -0
  207. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/ops_services/composition.py +0 -0
  208. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/ops_services/content_layout.py +0 -0
  209. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/ops_services/context.py +0 -0
  210. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/ops_services/form_fields.py +0 -0
  211. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/ops_services/media.py +0 -0
  212. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/ops_services/package_validation.py +0 -0
  213. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/ops_services/planning.py +0 -0
  214. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/ops_services/read_query.py +0 -0
  215. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/ops_services/save_policy.py +0 -0
  216. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/ops_services/transactions.py +0 -0
  217. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/preview_output_models.py +0 -0
  218. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/py.typed +0 -0
  219. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/quality.py +0 -0
  220. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/quality_generation.py +0 -0
  221. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/resources.py +0 -0
  222. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/runtime.py +0 -0
  223. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/runtime_services.py +0 -0
  224. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/tool_bindings.py +0 -0
  225. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/utils/__init__.py +0 -0
  226. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/utils/read_budget.py +0 -0
  227. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/visual_qa.py +0 -0
  228. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/workflow/__init__.py +0 -0
  229. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/workflow/evidence_lineage.py +0 -0
  230. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/workflow/policy.py +0 -0
  231. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/workflow/render_contracts.py +0 -0
  232. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/workflow/render_metrics.py +0 -0
  233. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/workflow/render_queue.py +0 -0
  234. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/workflow/render_security.py +0 -0
  235. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/workflow/render_transport.py +0 -0
  236. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/workflow/rendering.py +0 -0
  237. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/workflow/state_machine.py +0 -0
  238. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/workflow/store.py +0 -0
  239. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/hwpx_automation/workspace.py +0 -0
  240. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/python_hwpx_automation.egg-info/dependency_links.txt +0 -0
  241. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/src/python_hwpx_automation.egg-info/entry_points.txt +0 -0
  242. {python_hwpx_automation-7.4.1 → python_hwpx_automation-7.5.0}/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: 7.4.1
3
+ Version: 7.5.0
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,13 +20,13 @@ 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<7,>=6.5.0
23
+ Requires-Dist: python-hwpx<7,>=6.10.0
24
24
  Requires-Dist: pydantic<3,>=2.11
25
25
  Requires-Dist: cryptography>=42.0
26
26
  Requires-Dist: anyio>=4.0
27
27
  Requires-Dist: tomli>=2.0; python_version < "3.11"
28
28
  Provides-Extra: mcp
29
- Requires-Dist: mcp==1.28.1; extra == "mcp"
29
+ Requires-Dist: mcp==1.30.0; extra == "mcp"
30
30
  Provides-Extra: hwp
31
31
  Requires-Dist: olefile>=0.47; extra == "hwp"
32
32
  Provides-Extra: http
@@ -72,9 +72,11 @@ Dynamic: license-file
72
72
  </p>
73
73
  </p>
74
74
 
75
+ > Source update: analyzer delegation and the dependent public-style refactors require `python-hwpx >= 6.10.0`; the 2026-11 audit fixes changed `get_table_map` and seven `mutates` flags (source contract `71622c28a07913d1`, delta in `docs/tool-contract-delta-source-audit-2026-11.json`). This source change does not publish or promote a release. The publication status and last observed coherent stack below remain historical release context.
76
+
75
77
  <!-- release-state: release-approved -->
76
78
  > [!NOTE]
77
- > 발행이 승인된 7.4.1 후보 (release-approved; 원격 발행 대기): `python-hwpx 6.6.0 → python-hwpx-automation 7.4.1 → hwpx-plugin 2.4.0` (`5e5c23651f92785a`).
79
+ > 발행이 승인된 7.5.0 후보 (release-approved; 원격 발행 대기): `python-hwpx 6.12.0 → python-hwpx-automation 7.5.0 → hwpx-plugin 2.4.0` (`71622c28a07913d1`). 이 좌표는 `src/hwpx_automation/identity.json`의 `releaseState.candidate`와 같아야 합니다(`tests/test_audit_identity_docs.py`).
78
80
  > 공개 트레인: `python-hwpx 6.6.0 → python-hwpx-automation 7.3.1 → hwpx-plugin 2.4.0`.
79
81
  > 공개 좌표는 core·automation PyPI와 plugin GitHub
80
82
  > Release·marketplace·실제 marketplace 설치 관찰 후에만 승격합니다.
@@ -155,6 +157,16 @@ Gemini CLI는 `~/.gemini/settings.json`, Cursor·Windsurf는 각 에디터의 MC
155
157
  기존 `hwpx-mcp-server` 배포·import·콘솔·설정 키도 그대로 동작합니다 —
156
158
  전체 목록과 유지 규칙: [호환 표면](docs/compatibility-6x.md)
157
159
 
160
+ ### 작은 로컬 모델용 프로필
161
+
162
+ Ollama·Open WebUI의 27B급 모델처럼 도구가 많으면 길을 잃는 환경에서는
163
+ `hwpx-automation-mcp --profile minimal`(또는 `HWPX_AUTOMATION_PROFILE=minimal`)로
164
+ 굵은 도구 여섯 개만 띄웁니다: `read_outline`(id 붙은 짧은 목록) →
165
+ `apply_text_changes`(`{id: 새 글}`, 서식 유지·칸 넘침 알림), `replace_text`,
166
+ `stage_text` → `create_from_markdown`, `validate_document`. 긴 본문은 도구 인수에
167
+ 한 번에 싣지 않고 `stage_text`로 1,000자 안팎씩 나눠 보낸 뒤 `draft_id`로 넘깁니다.
168
+ 결과에는 문서 본문을 싣지 않고, 수정본은 기본으로 `<이름>.edited.hwpx`에 저장합니다.
169
+
158
170
  ## 한컴으로 PDF 렌더하기
159
171
 
160
172
  한컴(macOS 한컴오피스 한글 또는 Windows 한글 COM)이 있는 컴퓨터에서 문서 하나를
@@ -162,7 +174,7 @@ PDF와 쪽 PNG로 렌더합니다. 별도 환경에서 실행하므로 호출하
162
174
  고정 버전을 건드리지 않습니다.
163
175
 
164
176
  ```bash
165
- uvx --from "python-hwpx-automation[oracle]==7.4.1" \
177
+ uvx --from "python-hwpx-automation[oracle]==7.5.0" \
166
178
  hwpx render-pdf in.hwpx out.pdf --png out/page --json
167
179
  ```
168
180
 
@@ -201,7 +213,9 @@ handshake는 core/automation/plugin 버전+해시 skew를 fail-closed로 차단
201
213
 
202
214
  > **위치 계약** — `paragraph_index`는 본문 직속 문단의 0-based 인덱스입니다. 표 안 문단은 여기 섞지 않고
203
215
  > `{"kind":"table_cell_paragraph","table_index":0,"row":0,"col":1,"cell_paragraph_index":0}` 같은 `location`
204
- > 객체로 지정하며, `get_table_map`/`find_text`가 반환한 값을 그대로 넘길 수 있습니다.
216
+ > 객체로 지정하며, `find_text`가 반환한 값을 그대로 넘길 수 있습니다. `get_table_map`은 기본(`detail="compact"`)으로
217
+ > 실제 칸만 한 번씩 싣고(병합은 `row_span`/`col_span`) 위치는 응답의 `cell_paragraph_location` 틀에 `table_index`·`row`·`col`을
218
+ > 넣어 만듭니다. 칸마다 `location`이 든 이전 형태는 `detail="full"`로 받습니다.
205
219
 
206
220
  ## 환경 변수
207
221
 
@@ -211,6 +225,7 @@ handshake는 core/automation/plugin 버전+해시 skew를 fail-closed로 차단
211
225
  | `HWPX_AUTOMATION_MAX_CHARS` | 텍스트 반환 도구 기본 최대 길이 | `10000` |
212
226
  | `HWPX_AUTOMATION_AUTOBACKUP` | `1`이면 저장 전 `.bak` 백업 생성 | `1` |
213
227
  | `HWPX_AUTOMATION_ADVANCED` | `1`이면 고급 도구 활성화 | `0` |
228
+ | `HWPX_AUTOMATION_PROFILE` | `minimal`이면 작은 로컬 모델용 도구 6개만 제공(`--profile`과 같음) | `full` |
214
229
  | `HWPX_AUTOMATION_FETCH_TIMEOUT_SECONDS` | URL 기반 HWPX fetch timeout | `20.0` |
215
230
  | `HWPX_AUTOMATION_ALLOW_PRIVATE_NETWORK` | `1`이면 신뢰된 사설/루프백 HTTPS 대상 허용. 링크로컬·metadata·예약 주소는 계속 차단 | `0` |
216
231
  | `HWPX_AUTOMATION_QUALITY` | 전역 기본 저장 게이트 정책(`transparent`/`strict`). 도구별 `quality`가 우선 | `transparent` |
@@ -12,9 +12,11 @@
12
12
  </p>
13
13
  </p>
14
14
 
15
+ > Source update: analyzer delegation and the dependent public-style refactors require `python-hwpx >= 6.10.0`; the 2026-11 audit fixes changed `get_table_map` and seven `mutates` flags (source contract `71622c28a07913d1`, delta in `docs/tool-contract-delta-source-audit-2026-11.json`). This source change does not publish or promote a release. The publication status and last observed coherent stack below remain historical release context.
16
+
15
17
  <!-- release-state: release-approved -->
16
18
  > [!NOTE]
17
- > 발행이 승인된 7.4.1 후보 (release-approved; 원격 발행 대기): `python-hwpx 6.6.0 → python-hwpx-automation 7.4.1 → hwpx-plugin 2.4.0` (`5e5c23651f92785a`).
19
+ > 발행이 승인된 7.5.0 후보 (release-approved; 원격 발행 대기): `python-hwpx 6.12.0 → python-hwpx-automation 7.5.0 → hwpx-plugin 2.4.0` (`71622c28a07913d1`). 이 좌표는 `src/hwpx_automation/identity.json`의 `releaseState.candidate`와 같아야 합니다(`tests/test_audit_identity_docs.py`).
18
20
  > 공개 트레인: `python-hwpx 6.6.0 → python-hwpx-automation 7.3.1 → hwpx-plugin 2.4.0`.
19
21
  > 공개 좌표는 core·automation PyPI와 plugin GitHub
20
22
  > Release·marketplace·실제 marketplace 설치 관찰 후에만 승격합니다.
@@ -95,6 +97,16 @@ Gemini CLI는 `~/.gemini/settings.json`, Cursor·Windsurf는 각 에디터의 MC
95
97
  기존 `hwpx-mcp-server` 배포·import·콘솔·설정 키도 그대로 동작합니다 —
96
98
  전체 목록과 유지 규칙: [호환 표면](docs/compatibility-6x.md)
97
99
 
100
+ ### 작은 로컬 모델용 프로필
101
+
102
+ Ollama·Open WebUI의 27B급 모델처럼 도구가 많으면 길을 잃는 환경에서는
103
+ `hwpx-automation-mcp --profile minimal`(또는 `HWPX_AUTOMATION_PROFILE=minimal`)로
104
+ 굵은 도구 여섯 개만 띄웁니다: `read_outline`(id 붙은 짧은 목록) →
105
+ `apply_text_changes`(`{id: 새 글}`, 서식 유지·칸 넘침 알림), `replace_text`,
106
+ `stage_text` → `create_from_markdown`, `validate_document`. 긴 본문은 도구 인수에
107
+ 한 번에 싣지 않고 `stage_text`로 1,000자 안팎씩 나눠 보낸 뒤 `draft_id`로 넘깁니다.
108
+ 결과에는 문서 본문을 싣지 않고, 수정본은 기본으로 `<이름>.edited.hwpx`에 저장합니다.
109
+
98
110
  ## 한컴으로 PDF 렌더하기
99
111
 
100
112
  한컴(macOS 한컴오피스 한글 또는 Windows 한글 COM)이 있는 컴퓨터에서 문서 하나를
@@ -102,7 +114,7 @@ PDF와 쪽 PNG로 렌더합니다. 별도 환경에서 실행하므로 호출하
102
114
  고정 버전을 건드리지 않습니다.
103
115
 
104
116
  ```bash
105
- uvx --from "python-hwpx-automation[oracle]==7.4.1" \
117
+ uvx --from "python-hwpx-automation[oracle]==7.5.0" \
106
118
  hwpx render-pdf in.hwpx out.pdf --png out/page --json
107
119
  ```
108
120
 
@@ -141,7 +153,9 @@ handshake는 core/automation/plugin 버전+해시 skew를 fail-closed로 차단
141
153
 
142
154
  > **위치 계약** — `paragraph_index`는 본문 직속 문단의 0-based 인덱스입니다. 표 안 문단은 여기 섞지 않고
143
155
  > `{"kind":"table_cell_paragraph","table_index":0,"row":0,"col":1,"cell_paragraph_index":0}` 같은 `location`
144
- > 객체로 지정하며, `get_table_map`/`find_text`가 반환한 값을 그대로 넘길 수 있습니다.
156
+ > 객체로 지정하며, `find_text`가 반환한 값을 그대로 넘길 수 있습니다. `get_table_map`은 기본(`detail="compact"`)으로
157
+ > 실제 칸만 한 번씩 싣고(병합은 `row_span`/`col_span`) 위치는 응답의 `cell_paragraph_location` 틀에 `table_index`·`row`·`col`을
158
+ > 넣어 만듭니다. 칸마다 `location`이 든 이전 형태는 `detail="full"`로 받습니다.
145
159
 
146
160
  ## 환경 변수
147
161
 
@@ -151,6 +165,7 @@ handshake는 core/automation/plugin 버전+해시 skew를 fail-closed로 차단
151
165
  | `HWPX_AUTOMATION_MAX_CHARS` | 텍스트 반환 도구 기본 최대 길이 | `10000` |
152
166
  | `HWPX_AUTOMATION_AUTOBACKUP` | `1`이면 저장 전 `.bak` 백업 생성 | `1` |
153
167
  | `HWPX_AUTOMATION_ADVANCED` | `1`이면 고급 도구 활성화 | `0` |
168
+ | `HWPX_AUTOMATION_PROFILE` | `minimal`이면 작은 로컬 모델용 도구 6개만 제공(`--profile`과 같음) | `full` |
154
169
  | `HWPX_AUTOMATION_FETCH_TIMEOUT_SECONDS` | URL 기반 HWPX fetch timeout | `20.0` |
155
170
  | `HWPX_AUTOMATION_ALLOW_PRIVATE_NETWORK` | `1`이면 신뢰된 사설/루프백 HTTPS 대상 허용. 링크로컬·metadata·예약 주소는 계속 차단 | `0` |
156
171
  | `HWPX_AUTOMATION_QUALITY` | 전역 기본 저장 게이트 정책(`transparent`/`strict`). 도구별 `quality`가 우선 | `transparent` |
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python-hwpx-automation"
7
- version = "7.4.1"
7
+ version = "7.5.0"
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" }]
@@ -24,20 +24,18 @@ classifiers = [
24
24
  "Typing :: Typed",
25
25
  ]
26
26
  dependencies = [
27
- # 6.0 is the floor, not a preference: this package declares the `hwpx` console
28
- # name that core used to own, and core only stops declaring it at 5.0. Pinning
29
- # the bounded major here is what makes "no valid install has two declarers"
30
- # true rather than hopeful, and prevents the next core major from silently
31
- # breaking an already-published automation line. WP-F (engine surface 6.0):
32
- # this line adapted to the new namespace surface (design §9 WP-F) — the dev0
33
- # pre-release qualifier tracks core's own not-yet-tagged 6.0 identity.
34
- "python-hwpx>=6.5.0,<7", # HWPX object model, OXML/OPC, format-native primitives
27
+ # 6.10.0 is the floor, not a preference: the delegated template analyzer and
28
+ # the public style APIs this package calls first shipped there. The lower
29
+ # bound has been at or above 6.0 since this package took over the `hwpx`
30
+ # console name (core stopped declaring it at 5.0), which is what makes "no
31
+ # valid install has two declarers" true rather than hopeful. The bounded
32
+ # major (<7) keeps the next core major from silently breaking an
33
+ # already-published automation line.
34
+ "python-hwpx>=6.10.0,<7", # HWPX object model, OXML/OPC, format-native primitives
35
35
 
36
36
  "pydantic>=2.11,<3",
37
37
  "cryptography>=42.0",
38
38
  "anyio>=4.0",
39
- # Annotated CallToolResult validation landed in 1.28; the audited private
40
- # FastMCP seam is intentionally pinned to this minor line and compatibility-tested.
41
39
  "tomli>=2.0; python_version < '3.11'",
42
40
  ]
43
41
 
@@ -45,7 +43,11 @@ dependencies = [
45
43
  # MCP는 이 제품의 어댑터 하나지 본체가 아니다. office/·workflow/·
46
44
  # ops_services/·core/ 122개 파일 중 mcp를 import하는 것은 0개다. 파이썬으로
47
45
  # 문서 자동화만 하는 사용자가 MCP SDK를 강제로 깔 이유가 없다.
48
- mcp = ["mcp==1.28.1"]
46
+ # Annotated CallToolResult validation landed in 1.28. The audited private FastMCP
47
+ # seam is pinned to one exact patch (1.30.0, the first 1.x with the
48
+ # GHSA-84m7-p3x7-pcfv fix) and re-audited per docs/mcp-sdk-reaudit.md before
49
+ # the pin moves.
50
+ mcp = ["mcp==1.30.0"]
49
51
 
50
52
  # Legacy .hwp (HWP5/OLE2) reading. Lazy-imported; clear error if missing.
51
53
  hwp = ["olefile>=0.47"]
@@ -114,6 +116,7 @@ include = ["hwpx_automation*"]
114
116
  "hwpx_automation.office.house_style" = ["data/*.json"]
115
117
  "hwpx_automation.office.authoring.design" = ["profiles/*/*", "profiles/*/fragments/*"]
116
118
  "hwpx_automation.office.rendering" = [
119
+ "_hancom_alerts_mac.applescript",
117
120
  "_hancom_open_rate.ps1",
118
121
  "_refresh_hwpx_mac.applescript",
119
122
  "_render_hwpx.ps1",
@@ -151,6 +154,16 @@ filterwarnings = [
151
154
  "ignore:builtin type \\w+ has no __module__ attribute:DeprecationWarning",
152
155
  ]
153
156
 
157
+ [tool.coverage.run]
158
+ source = ["hwpx_automation"]
159
+
160
+ [tool.coverage.report]
161
+ # Line-coverage floor enforced by the Tests workflow (`pytest --cov`). The
162
+ # 2026-11 audit measured 79.73% (Windows, Python 3.12); the floor sits a little
163
+ # below so platform-only branches do not flap it. Raise it as coverage grows;
164
+ # never lower it to make a change pass.
165
+ fail_under = 77
166
+
154
167
  [tool.mypy]
155
168
  python_version = "3.10"
156
169
  # Type-check the product surface against the declared 3.10 language level,
@@ -0,0 +1,157 @@
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ """Canonical automation configuration with bounded 6.x MCP fallbacks."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import os
7
+ import sys
8
+ from pathlib import Path
9
+
10
+ CANONICAL_ENV_PREFIX = "HWPX_AUTOMATION_"
11
+ LEGACY_ENV_PREFIX = "HWPX_MCP_"
12
+
13
+
14
+ def canonical_env_name(suffix: str) -> str:
15
+ return f"{CANONICAL_ENV_PREFIX}{suffix}"
16
+
17
+
18
+ def legacy_env_name(suffix: str) -> str:
19
+ return f"{LEGACY_ENV_PREFIX}{suffix}"
20
+
21
+
22
+ def env_value(suffix: str, default: str | None = None) -> str | None:
23
+ """Read canonical configuration first, then the supported 6.x legacy key."""
24
+
25
+ canonical = os.environ.get(canonical_env_name(suffix))
26
+ if canonical is not None:
27
+ return canonical
28
+ legacy = os.environ.get(legacy_env_name(suffix))
29
+ if legacy is not None:
30
+ return legacy
31
+ return default
32
+
33
+
34
+ def env_int(suffix: str, default: int) -> int:
35
+ raw = env_value(suffix)
36
+ if raw is None:
37
+ return default
38
+ try:
39
+ return int(raw)
40
+ except ValueError:
41
+ return default
42
+
43
+
44
+ def env_float(suffix: str, default: float) -> float:
45
+ raw = env_value(suffix)
46
+ if raw is None:
47
+ return default
48
+ try:
49
+ return float(raw)
50
+ except ValueError:
51
+ return default
52
+
53
+
54
+ def find_executable(name: str, *, search_path: str | None = None) -> str | None:
55
+ """Locate a program on ``PATH`` without consulting the working directory.
56
+
57
+ ``shutil.which`` on Windows looks in the current directory first, and the
58
+ current directory is commonly the document workspace. This lookup only
59
+ accepts absolute ``PATH`` entries that are not the working directory, and
60
+ only bare program names.
61
+ """
62
+
63
+ if not name or os.path.basename(name) != name or name in {".", ".."}:
64
+ return None
65
+ raw = os.environ.get("PATH", "") if search_path is None else search_path
66
+ try:
67
+ cwd = Path.cwd().resolve()
68
+ except OSError:
69
+ cwd = None
70
+ if sys.platform == "win32":
71
+ pathext = [
72
+ ext
73
+ for ext in os.environ.get("PATHEXT", ".COM;.EXE;.BAT;.CMD").split(os.pathsep)
74
+ if ext
75
+ ]
76
+ if any(name.lower().endswith(ext.lower()) for ext in pathext):
77
+ names = [name]
78
+ else:
79
+ names = [name + ext for ext in pathext]
80
+ else:
81
+ names = [name]
82
+ for entry in raw.split(os.pathsep):
83
+ entry = entry.strip().strip('"')
84
+ if not entry:
85
+ continue
86
+ directory = Path(entry)
87
+ if not directory.is_absolute():
88
+ continue
89
+ try:
90
+ if cwd is not None and directory.resolve() == cwd:
91
+ continue
92
+ except OSError:
93
+ continue
94
+ for candidate_name in names:
95
+ candidate = directory / candidate_name
96
+ try:
97
+ if candidate.is_file() and os.access(candidate, os.X_OK):
98
+ return str(candidate)
99
+ except OSError:
100
+ continue
101
+ return None
102
+
103
+
104
+ def absolute_executable(value: str | None) -> str | None:
105
+ """Return *value* only when it names an existing file by absolute path."""
106
+
107
+ if not value:
108
+ return None
109
+ candidate = Path(value)
110
+ if not candidate.is_absolute():
111
+ return None
112
+ try:
113
+ return str(candidate) if candidate.is_file() else None
114
+ except OSError:
115
+ return None
116
+
117
+
118
+ def windows_powershell(preferred: str | None = None) -> str:
119
+ """Program to launch for Windows PowerShell; on Windows always absolute.
120
+
121
+ A bare name handed to process creation on Windows can be satisfied from
122
+ the working directory, so a missing or bare *preferred* value is replaced
123
+ by the system location.
124
+ """
125
+
126
+ if preferred and os.path.basename(preferred) != preferred:
127
+ return preferred
128
+ if sys.platform != "win32":
129
+ return (
130
+ find_executable(preferred or "powershell")
131
+ or find_executable("pwsh")
132
+ or preferred
133
+ or "powershell"
134
+ )
135
+ relative = Path("System32") / "WindowsPowerShell" / "v1.0" / "powershell.exe"
136
+ for variable in ("SystemRoot", "WINDIR"):
137
+ root = os.environ.get(variable)
138
+ if root and Path(root).is_absolute() and (Path(root) / relative).is_file():
139
+ return str(Path(root) / relative)
140
+ found = find_executable(preferred or "powershell") or find_executable("pwsh")
141
+ if found:
142
+ return found
143
+ return str(Path("C:/Windows") / relative)
144
+
145
+
146
+ __all__ = [
147
+ "CANONICAL_ENV_PREFIX",
148
+ "LEGACY_ENV_PREFIX",
149
+ "absolute_executable",
150
+ "canonical_env_name",
151
+ "env_float",
152
+ "env_int",
153
+ "env_value",
154
+ "find_executable",
155
+ "legacy_env_name",
156
+ "windows_powershell",
157
+ ]
@@ -324,11 +324,174 @@ def get_table_data(doc: HwpxDocument, table_index: int) -> dict:
324
324
  return {"rows": rows, "cols": cols, "data": data}
325
325
 
326
326
 
327
- def get_table_map_in_doc(doc: HwpxDocument) -> dict:
328
- """문서의 표 메타데이터를 LLM 친화적인 JSON 형태로 반환한다."""
327
+ TABLE_MAP_DETAILS = ("compact", "full")
328
+ #: Defaults of the compact table map (audit EFF-16).
329
+ TABLE_MAP_PREVIEW_CHARS = 80
330
+ TABLE_MAP_MAX_CHARS = 60_000
331
+
332
+
333
+ def get_table_map_in_doc(
334
+ doc: HwpxDocument,
335
+ *,
336
+ detail: str = "full",
337
+ table_index: int | None = None,
338
+ text_preview_chars: int = TABLE_MAP_PREVIEW_CHARS,
339
+ max_chars: int = TABLE_MAP_MAX_CHARS,
340
+ ) -> dict:
341
+ """문서의 표 메타데이터를 LLM 친화적인 JSON 형태로 반환한다.
342
+
343
+ ``detail="full"`` (this function's default, used by in-process callers) is
344
+ python-hwpx's map unchanged: one entry per logical grid slot, a merged cell
345
+ repeated for every slot it covers.
346
+
347
+ ``detail="compact"`` lists each real cell once, at its anchor, with the
348
+ merge as numbers (``row_span``/``col_span``), a text preview of at most
349
+ *text_preview_chars* characters and no per-cell location objects; the whole
350
+ response is kept within about *max_chars* characters of JSON. A form with a
351
+ finely divided grid went from 3.1 MB to tens of kilobytes this way.
352
+ *table_index* restricts either form to one table.
353
+ """
354
+
355
+ if detail not in TABLE_MAP_DETAILS:
356
+ raise ValueError(f"detail must be one of {TABLE_MAP_DETAILS}, got {detail!r}")
329
357
  result = doc.tables.map()
330
358
  tables = list(result.get("tables", []))
331
- return {"tables": tables, "count": len(tables)}
359
+ total = len(tables)
360
+ if table_index is not None:
361
+ if table_index < 0 or table_index >= total:
362
+ raise ValueError(f"유효하지 않은 table_index: {table_index}")
363
+ tables = [tables[table_index]]
364
+ if detail == "full":
365
+ return {"tables": tables, "count": len(tables)}
366
+ return _compact_table_map(
367
+ doc,
368
+ tables,
369
+ total=total,
370
+ text_preview_chars=max(0, int(text_preview_chars)),
371
+ max_chars=max(1_000, int(max_chars)),
372
+ )
373
+
374
+
375
+ def _preview(text: str, limit: int) -> tuple[str, bool]:
376
+ if len(text) <= limit:
377
+ return text, False
378
+ return text[:limit], True
379
+
380
+
381
+ def _compact_cells(table: Any, limit: int) -> list[dict[str, Any]]:
382
+ """One entry per physical cell, at its anchor slot, in row-major order."""
383
+
384
+ cells: list[dict[str, Any]] = []
385
+ for position in table.iter_grid():
386
+ if not position.is_anchor:
387
+ continue
388
+ paragraphs = list(getattr(position.cell, "paragraphs", []) or [])
389
+ text = (
390
+ "\n".join(paragraph.text or "" for paragraph in paragraphs)
391
+ if paragraphs
392
+ else (position.cell.text or "")
393
+ )
394
+ preview, cut = _preview(text, limit)
395
+ entry: dict[str, Any] = {"row": position.row, "col": position.column, "text": preview}
396
+ if position.row_span != 1:
397
+ entry["row_span"] = position.row_span
398
+ if position.col_span != 1:
399
+ entry["col_span"] = position.col_span
400
+ if cut:
401
+ entry["text_length"] = len(text)
402
+ if len(paragraphs) > 1:
403
+ entry["paragraph_count"] = len(paragraphs)
404
+ cells.append(entry)
405
+ return cells
406
+
407
+
408
+ def _compact_table_map(
409
+ doc: HwpxDocument,
410
+ entries: list[dict[str, Any]],
411
+ *,
412
+ total: int,
413
+ text_preview_chars: int,
414
+ max_chars: int,
415
+ ) -> dict[str, Any]:
416
+ import json
417
+
418
+ # Same order as the map: body paragraphs, each table before the tables nested in it.
419
+ native_tables = list(_iter_tables(doc))
420
+ compact: list[dict[str, Any]] = []
421
+ used = 0
422
+ omitted_tables: list[int] = []
423
+ for entry in entries:
424
+ index = int(entry["table_index"])
425
+ table = native_tables[index] if index < len(native_tables) else None
426
+ if table is None or (table.row_count, table.column_count) != (entry["rows"], entry["cols"]):
427
+ # The map and the table list disagree; never guess which cell is which.
428
+ raise RuntimeError(
429
+ f"table {index}: the table map and the document's table list do not line up; "
430
+ 'call get_table_map(detail="full")'
431
+ )
432
+ head: dict[str, Any] = {
433
+ "table_index": index,
434
+ "paragraph_index": entry["paragraph_index"],
435
+ "rows": entry["rows"],
436
+ "cols": entry["cols"],
437
+ "is_empty": entry.get("is_empty", False),
438
+ }
439
+ for key in ("caption_text", "preceding_paragraph_text", "header_text"):
440
+ value, _cut = _preview(str(entry.get(key) or ""), text_preview_chars)
441
+ if value:
442
+ head[key] = value
443
+ cells = _compact_cells(table, text_preview_chars)
444
+ head["cell_count"] = len(cells)
445
+ head["merged_cell_count"] = sum(
446
+ 1 for cell in cells if "row_span" in cell or "col_span" in cell
447
+ )
448
+ head_size = len(json.dumps(head, ensure_ascii=False))
449
+ budget = max_chars - used - head_size
450
+ kept: list[dict[str, Any]] = []
451
+ for cell in cells:
452
+ size = len(json.dumps(cell, ensure_ascii=False)) + 2
453
+ if size > budget:
454
+ break
455
+ kept.append(cell)
456
+ budget -= size
457
+ head["cells"] = kept
458
+ if len(kept) < len(cells):
459
+ head["cells_omitted"] = len(cells) - len(kept)
460
+ omitted_tables.append(index)
461
+ used = max_chars - budget
462
+ compact.append(head)
463
+
464
+ payload: dict[str, Any] = {
465
+ "detail": "compact",
466
+ "tables": compact,
467
+ "count": len(compact),
468
+ "table_count": total,
469
+ "text_preview_chars": text_preview_chars,
470
+ # Compact cells carry no location objects; a location is these fields
471
+ # filled in from the cell (cell_paragraph_index counts from 0, below
472
+ # the cell's paragraph_count, which is 1 unless stated).
473
+ "cell_location": {
474
+ "kind": "table_cell",
475
+ "table_index": "<table_index>",
476
+ "row": "<row>",
477
+ "col": "<col>",
478
+ },
479
+ "cell_paragraph_location": {
480
+ "kind": "table_cell_paragraph",
481
+ "table_index": "<table_index>",
482
+ "row": "<row>",
483
+ "col": "<col>",
484
+ "cell_paragraph_index": 0,
485
+ },
486
+ }
487
+ if omitted_tables:
488
+ payload["truncated"] = True
489
+ payload["tables_with_omitted_cells"] = omitted_tables
490
+ payload["next_action"] = (
491
+ "cells were omitted to stay within max_chars: call get_table_map(table_index=N) "
492
+ "for one table, raise max_chars, or read text with get_table_text(table_index=N)"
493
+ )
494
+ return payload
332
495
 
333
496
 
334
497
  def find_cell_by_label_in_doc(doc: HwpxDocument, label_text: str, direction: str = "right") -> dict: