python-hwpx-automation 7.4.1__tar.gz → 8.0.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.
- {python_hwpx_automation-7.4.1/src/python_hwpx_automation.egg-info → python_hwpx_automation-8.0.0}/PKG-INFO +40 -12
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/README.md +21 -5
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/pyproject.toml +86 -25
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/agent_document.py +8 -4
- python_hwpx_automation-8.0.0/src/hwpx_automation/configuration.py +157 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/core/content.py +205 -262
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/core/document.py +2 -1
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/core/formatting.py +51 -182
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/core/locations.py +3 -4
- python_hwpx_automation-8.0.0/src/hwpx_automation/core/search.py +194 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/errors.py +29 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/fastmcp_adapter.py +58 -5
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/form_fill.py +51 -28
- python_hwpx_automation-8.0.0/src/hwpx_automation/format_rules.py +541 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/forms/__init__.py +75 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/forms/choices.py +500 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/forms/labels.py +674 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/handlers/authoring.py +37 -10
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/handlers/content_edit.py +15 -47
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/handlers/form_fill.py +28 -2
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/handlers/layout_style.py +22 -18
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/handlers/quality_render.py +3 -7
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/handlers/read_export.py +34 -10
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/handlers/specialized.py +1 -10
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/handlers/workflow.py +62 -4
- python_hwpx_automation-8.0.0/src/hwpx_automation/hwp_converter.py +131 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/hwp_support.py +64 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/hwpx_ops.py +39 -53
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/identity.json +5 -5
- python_hwpx_automation-8.0.0/src/hwpx_automation/ingest/__init__.py +58 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/ingest/_types.py +170 -0
- python_hwpx_automation-7.4.1/src/hwpx_automation/ingest_adapters.py → python_hwpx_automation-8.0.0/src/hwpx_automation/ingest/adapters.py +47 -11
- python_hwpx_automation-8.0.0/src/hwpx_automation/ingest/base.py +161 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/ingest/hwpx_converter.py +461 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/ingest_adapters.py +28 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/integrations/__init__.py +11 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/integrations/langchain.py +76 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/integrations/llama_index.py +83 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/mail_merge.py +552 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/markdown/__init__.py +153 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/markdown/_export.py +1226 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/markdown/_import.py +2272 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/markdown/_plain_export.py +844 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/markdown_plan.py +338 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/minimal_profile.py +288 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/mixed_form.py +51 -18
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/__init__.py +2 -2
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/_batch_publication.py +9 -3
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/_batch_verification.py +2 -2
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/_text_scope.py +40 -2
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/blueprint/catalog.py +6 -4
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/blueprint/dump.py +85 -70
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/blueprint/mapping.py +15 -15
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/blueprint/model.py +11 -4
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/blueprint/native.py +156 -189
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/blueprint/replay.py +102 -4
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/catalog.py +39 -26
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/commands.py +864 -498
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/document.py +265 -37
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/form_plan.py +4 -4
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/model.py +233 -28
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/path.py +64 -20
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/story.py +2 -2
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/__init__.py +643 -128
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/advanced_generators.py +3 -3
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/builder/core.py +112 -31
- python_hwpx_automation-8.0.0/src/hwpx_automation/office/authoring/design/_support.py +88 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/office/authoring/design/composer.py +486 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/design/harvest.py +97 -84
- python_hwpx_automation-8.0.0/src/hwpx_automation/office/authoring/design/marked.py +162 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/design/plan.py +6 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/office/authoring/design/profile.py +221 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/office/authoring/design/profiles/application_form/fragments.hwpx +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/design/profiles/application_form/profile.json +18 -5
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/design/profiles/application_form/template.hwpx +0 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/office/authoring/design/profiles/home_notice/fragments.hwpx +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/design/profiles/home_notice/profile.json +14 -4
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/design/profiles/home_notice/template.hwpx +0 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/office/authoring/design/profiles/official_notice/fragments.hwpx +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/design/profiles/official_notice/profile.json +19 -6
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/design/profiles/official_notice/template.hwpx +0 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/office/authoring/design/profiles/report/fragments.hwpx +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/design/profiles/report/profile.json +18 -5
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/design/profiles/report/template.hwpx +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/design/validator.py +10 -19
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/presets/proposal.py +47 -32
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/report_parser.py +1 -1
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/style_profile.py +6 -1
- python_hwpx_automation-8.0.0/src/hwpx_automation/office/authoring/template_analyzer.py +189 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/office/compact/__init__.py +324 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/compliance/__init__.py +6 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/compliance/official_lint.py +2 -2
- python_hwpx_automation-8.0.0/src/hwpx_automation/office/compliance/reference_consistency.py +204 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/document_ops/mail_merge.py +8 -9
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/exam/compose.py +23 -16
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/exam/parser.py +1 -2
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/form_fill/fill_residue.py +1 -1
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/form_fill/guidance.py +10 -9
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/form_fill/split_run.py +46 -9
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/form_fill/template_formfit.py +211 -76
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/house_style/composition.py +38 -1
- python_hwpx_automation-8.0.0/src/hwpx_automation/office/house_style/org_chart.py +462 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/office/quality/page_guard.py +36 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/rendering/__init__.py +56 -18
- python_hwpx_automation-8.0.0/src/hwpx_automation/office/rendering/_hancom_alerts_mac.applescript +235 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/rendering/_refresh_hwpx_mac.applescript +12 -11
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/rendering/_render_hwpx_mac.applescript +1 -229
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/rendering/cli.py +10 -22
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/rendering/mac_session.py +82 -16
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/rendering/oracle.py +41 -13
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/rendering/worker.py +3 -1
- python_hwpx_automation-8.0.0/src/hwpx_automation/office/utilities/__init__.py +38 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/office/utilities/report_utils.py +137 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/office/utilities/table_cleanup.py +65 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/utilities/table_compute.py +39 -2
- python_hwpx_automation-8.0.0/src/hwpx_automation/ops_services/_border_fill.py +51 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/ops_services/content_layout.py +22 -27
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/ops_services/form_fields.py +1 -1
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/ops_services/media.py +11 -50
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/ops_services/memo_style.py +30 -192
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/ops_services/preview_export.py +13 -49
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/ops_services/save_policy.py +8 -6
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/ops_services/tables.py +33 -86
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/ops_services/transactions.py +2 -1
- python_hwpx_automation-8.0.0/src/hwpx_automation/preview/__init__.py +59 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/preview/document_viewer.py +184 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/preview/equation_render.py +89 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/preview/layout_preview.py +757 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/preview/mathml.py +178 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/public-modules.json +50 -7
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/quality.py +5 -4
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/quality_generation.py +22 -13
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/runtime.py +49 -0
- python_hwpx_automation-8.0.0/src/hwpx_automation/save_dates.py +129 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/server.py +16 -4
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/storage.py +100 -1
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/tool_contract.py +91 -35
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/upstream.py +211 -304
- python_hwpx_automation-8.0.0/src/hwpx_automation/utils/helpers.py +97 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/workflow/adapters.py +5 -2
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/workflow/dispatcher.py +2 -2
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/workflow/models.py +11 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/workflow/service.py +26 -3
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/workflow/store.py +36 -6
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0/src/python_hwpx_automation.egg-info}/PKG-INFO +40 -12
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/python_hwpx_automation.egg-info/SOURCES.txt +33 -15
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/python_hwpx_automation.egg-info/entry_points.txt +1 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/python_hwpx_automation.egg-info/requires.txt +23 -6
- python_hwpx_automation-7.4.1/src/hwpx_automation/configuration.py +0 -60
- python_hwpx_automation-7.4.1/src/hwpx_automation/core/search.py +0 -299
- python_hwpx_automation-7.4.1/src/hwpx_automation/hwp_converter.py +0 -227
- python_hwpx_automation-7.4.1/src/hwpx_automation/hwp_support.py +0 -94
- python_hwpx_automation-7.4.1/src/hwpx_automation/markdown_plan.py +0 -216
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/design/_support.py +0 -144
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/design/composer.py +0 -333
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/design/marked.py +0 -273
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/design/profile.py +0 -88
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/design/profiles/application_form/fragments/body.xml +0 -1
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/design/profiles/application_form/fragments/heading.xml +0 -1
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/design/profiles/application_form/fragments/info_table.xml +0 -1
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/design/profiles/application_form/fragments/title.xml +0 -1
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/design/profiles/home_notice/fragments/body.xml +0 -1
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/design/profiles/home_notice/fragments/heading.xml +0 -1
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/design/profiles/home_notice/fragments/title.xml +0 -1
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/design/profiles/official_notice/fragments/body.xml +0 -1
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/design/profiles/official_notice/fragments/heading.xml +0 -1
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/design/profiles/official_notice/fragments/info_table.xml +0 -1
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/design/profiles/official_notice/fragments/title.xml +0 -1
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/design/profiles/report/fragments/body.xml +0 -1
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/design/profiles/report/fragments/heading.xml +0 -1
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/design/profiles/report/fragments/info_table.xml +0 -1
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/design/profiles/report/fragments/title.xml +0 -1
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/authoring/template_analyzer.py +0 -662
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/house_style/org_chart.py +0 -273
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/quality/page_guard.py +0 -277
- python_hwpx_automation-7.4.1/src/hwpx_automation/office/utilities/__init__.py +0 -12
- python_hwpx_automation-7.4.1/src/hwpx_automation/ops_services/_border_fill.py +0 -283
- python_hwpx_automation-7.4.1/src/hwpx_automation/utils/helpers.py +0 -29
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/LICENSE +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/MANIFEST.in +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/NOTICE +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/setup.cfg +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/__init__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/__init__.pyi +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/__main__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/api.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/blind_eval.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/capabilities.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/compat.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/core/__init__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/core/context.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/core/diff.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/core/handles.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/core/locator.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/core/plan.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/core/resources.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/core/transactions.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/core/txn.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/document_state.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/execution_lock.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/form_output_models.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/handlers/__init__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/handlers/_shared.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/handlers/agent_document.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/handlers/tracked_changes.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/identity.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/mcp_cli.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/metadata/tools_meta.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/mutation_models.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/network_policy.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/__init__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/blueprint/__init__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/blueprint/bundle.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/cli.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/agent/query.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/builder/__init__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/builder/report.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/design/__init__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/authoring/presets/__init__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/charting/__init__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/compliance/pii.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/document_ops/__init__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/document_ops/comparison.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/document_ops/redline.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/evalplan/__init__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/evalplan/runtime.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/exam/__init__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/exam/ir.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/exam/measure.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/exam/profile.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/form_fill/__init__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/form_fill/classification.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/form_fill/fit/__init__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/form_fill/fit/apply.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/form_fill/fit/engine.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/form_fill/fit/measure.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/form_fill/fit/policy.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/form_fill/fit/report.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/form_fill/fit/seal.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/form_fill/fit/wordbox.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/form_fill/quality.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/house_style/__init__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/house_style/data/bank.json +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/house_style/data/genres.json +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/house_style/gianmun.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/quality/__init__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/rendering/__main__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/rendering/_hancom_open_rate.ps1 +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/rendering/_render_hwpx.ps1 +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/rendering/block_splits.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/rendering/detectors.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/rendering/diff.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/rendering/fixture_corpus.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/rendering/page_qa.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/rendering/qa_contracts.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/office/rendering/qa_metrics.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/ops_services/__init__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/ops_services/composition.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/ops_services/context.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/ops_services/package_validation.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/ops_services/planning.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/ops_services/read_query.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/preview_output_models.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/py.typed +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/resources.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/runtime_services.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/tool_bindings.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/utils/__init__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/utils/read_budget.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/visual_qa.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/workflow/__init__.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/workflow/evidence_lineage.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/workflow/policy.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/workflow/render_contracts.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/workflow/render_metrics.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/workflow/render_queue.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/workflow/render_security.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/workflow/render_transport.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/workflow/rendering.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/workflow/state_machine.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/workspace.py +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/python_hwpx_automation.egg-info/dependency_links.txt +0 -0
- {python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.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:
|
|
3
|
+
Version: 8.0.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,19 +20,27 @@ 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
|
|
23
|
+
Requires-Dist: python-hwpx<8,>=7.0
|
|
24
24
|
Requires-Dist: pydantic<3,>=2.11
|
|
25
|
-
Requires-Dist: cryptography>=42.0
|
|
26
|
-
Requires-Dist: anyio>=4.0
|
|
27
25
|
Requires-Dist: tomli>=2.0; python_version < "3.11"
|
|
28
26
|
Provides-Extra: mcp
|
|
29
|
-
Requires-Dist: mcp==1.
|
|
27
|
+
Requires-Dist: mcp==1.30.0; extra == "mcp"
|
|
28
|
+
Requires-Dist: cryptography>=42.0; extra == "mcp"
|
|
29
|
+
Provides-Extra: workflow
|
|
30
|
+
Requires-Dist: cryptography>=42.0; extra == "workflow"
|
|
30
31
|
Provides-Extra: hwp
|
|
31
|
-
Requires-Dist: olefile>=0.47; extra == "hwp"
|
|
32
32
|
Provides-Extra: http
|
|
33
33
|
Requires-Dist: uvicorn>=0.30; extra == "http"
|
|
34
34
|
Provides-Extra: ingest
|
|
35
35
|
Requires-Dist: markitdown[docx,pdf,xlsx]<0.2,>=0.1.6; extra == "ingest"
|
|
36
|
+
Provides-Extra: preview
|
|
37
|
+
Requires-Dist: latex2mathml>=3.77; extra == "preview"
|
|
38
|
+
Provides-Extra: xlsx
|
|
39
|
+
Requires-Dist: openpyxl>=3.1; extra == "xlsx"
|
|
40
|
+
Provides-Extra: langchain
|
|
41
|
+
Requires-Dist: langchain-core>=0.3; extra == "langchain"
|
|
42
|
+
Provides-Extra: llamaindex
|
|
43
|
+
Requires-Dist: llama-index-core>=0.12; extra == "llamaindex"
|
|
36
44
|
Provides-Extra: oracle
|
|
37
45
|
Requires-Dist: pymupdf>=1.24; extra == "oracle"
|
|
38
46
|
Requires-Dist: pillow>=10.0; extra == "oracle"
|
|
@@ -48,11 +56,15 @@ Requires-Dist: packaging>=23.0; extra == "test"
|
|
|
48
56
|
Requires-Dist: pytest-cov>=5.0; extra == "test"
|
|
49
57
|
Requires-Dist: jsonschema>=4.22; extra == "test"
|
|
50
58
|
Requires-Dist: pyyaml>=6.0; extra == "test"
|
|
51
|
-
Requires-Dist:
|
|
59
|
+
Requires-Dist: cryptography>=42.0; extra == "test"
|
|
60
|
+
Requires-Dist: anyio>=4.0; extra == "test"
|
|
52
61
|
Requires-Dist: uvicorn>=0.30; extra == "test"
|
|
53
62
|
Requires-Dist: numpy>=1.26; extra == "test"
|
|
54
63
|
Requires-Dist: pillow>=10.0; extra == "test"
|
|
55
64
|
Requires-Dist: ruff>=0.12; extra == "test"
|
|
65
|
+
Requires-Dist: latex2mathml>=3.77; extra == "test"
|
|
66
|
+
Requires-Dist: openpyxl>=3.1; extra == "test"
|
|
67
|
+
Requires-Dist: langchain-core>=0.3; extra == "test"
|
|
56
68
|
Provides-Extra: typecheck
|
|
57
69
|
Requires-Dist: mypy<3,>=1.10; extra == "typecheck"
|
|
58
70
|
Requires-Dist: pyright<2,>=1.1.390; extra == "typecheck"
|
|
@@ -72,9 +84,11 @@ Dynamic: license-file
|
|
|
72
84
|
</p>
|
|
73
85
|
</p>
|
|
74
86
|
|
|
87
|
+
> Source update: this source requires `python-hwpx >= 7.0` (source contract `c895883d5f4350ae`, delta in `docs/tool-contract-delta-8.0.0.json`). This source change does not publish or promote a release. The publication status and last observed coherent stack below remain historical release context.
|
|
88
|
+
|
|
75
89
|
<!-- release-state: release-approved -->
|
|
76
90
|
> [!NOTE]
|
|
77
|
-
> 발행이 승인된
|
|
91
|
+
> 발행이 승인된 8.0.0 후보 (release-approved; 원격 발행 대기): `python-hwpx 7.0.0 → python-hwpx-automation 8.0.0 → hwpx-plugin 8.0.0` (`c895883d5f4350ae`). 이 좌표는 `src/hwpx_automation/identity.json`의 `releaseState.candidate`와 같아야 합니다(`tests/test_audit_identity_docs.py`).
|
|
78
92
|
> 공개 트레인: `python-hwpx 6.6.0 → python-hwpx-automation 7.3.1 → hwpx-plugin 2.4.0`.
|
|
79
93
|
> 공개 좌표는 core·automation PyPI와 plugin GitHub
|
|
80
94
|
> Release·marketplace·실제 marketplace 설치 관찰 후에만 승격합니다.
|
|
@@ -108,7 +122,7 @@ document = create_document_from_plan(
|
|
|
108
122
|
"blocks": [{"type": "paragraph", "text": "결정 사항"}],
|
|
109
123
|
}
|
|
110
124
|
)
|
|
111
|
-
document.
|
|
125
|
+
document.save("meeting-result.hwpx")
|
|
112
126
|
```
|
|
113
127
|
|
|
114
128
|
`python -m hwpx_automation --help`와 `hwpx help`는 같은 task CLI를 실행합니다.
|
|
@@ -150,11 +164,22 @@ Gemini CLI는 `~/.gemini/settings.json`, Cursor·Windsurf는 각 에디터의 MC
|
|
|
150
164
|
|
|
151
165
|
> 비-HWPX 문서(PDF/DOCX/XLSX/HTML/TXT)를 `document_to_markdown`으로 읽으려면
|
|
152
166
|
> `pip install "python-hwpx-automation[ingest]"`로 MarkItDown adapter를 함께
|
|
153
|
-
> 설치합니다. 요구 사항: `Python >= 3.10` · `python-hwpx >=
|
|
167
|
+
> 설치합니다. 요구 사항: `Python >= 3.10` · `python-hwpx >= 7.0`.
|
|
154
168
|
|
|
155
169
|
기존 `hwpx-mcp-server` 배포·import·콘솔·설정 키도 그대로 동작합니다 —
|
|
156
170
|
전체 목록과 유지 규칙: [호환 표면](docs/compatibility-6x.md)
|
|
157
171
|
|
|
172
|
+
### 작은 로컬 모델용 프로필
|
|
173
|
+
|
|
174
|
+
Ollama·Open WebUI의 27B급 모델처럼 도구가 많으면 길을 잃는 환경에서는
|
|
175
|
+
`hwpx-automation-mcp --profile minimal`(또는 `HWPX_AUTOMATION_PROFILE=minimal`)로
|
|
176
|
+
굵은 도구 여섯 개만 띄웁니다: `read_outline`(id 붙은 짧은 목록) →
|
|
177
|
+
`apply_text_changes`(`{id: 새 글}`, 서식 유지·칸 넘침 알림), `replace_text`,
|
|
178
|
+
`stage_text` → `create_from_markdown`, `validate_document`. 긴 본문은 도구 인수에
|
|
179
|
+
한 번에 싣지 않고 `stage_text`로 1,000자 안팎씩 나눠 보낸 뒤 `draft_id`로 넘깁니다.
|
|
180
|
+
`create_from_markdown`의 `byline`(200자까지)은 제목 아래 오른쪽에 쓰는 부서·날짜 줄입니다.
|
|
181
|
+
결과에는 문서 본문을 싣지 않고, 수정본은 기본으로 `<이름>.edited.hwpx`에 저장합니다.
|
|
182
|
+
|
|
158
183
|
## 한컴으로 PDF 렌더하기
|
|
159
184
|
|
|
160
185
|
한컴(macOS 한컴오피스 한글 또는 Windows 한글 COM)이 있는 컴퓨터에서 문서 하나를
|
|
@@ -162,7 +187,7 @@ PDF와 쪽 PNG로 렌더합니다. 별도 환경에서 실행하므로 호출하
|
|
|
162
187
|
고정 버전을 건드리지 않습니다.
|
|
163
188
|
|
|
164
189
|
```bash
|
|
165
|
-
uvx --from "python-hwpx-automation[oracle]==
|
|
190
|
+
uvx --from "python-hwpx-automation[oracle]==8.0.0" \
|
|
166
191
|
hwpx render-pdf in.hwpx out.pdf --png out/page --json
|
|
167
192
|
```
|
|
168
193
|
|
|
@@ -201,7 +226,9 @@ handshake는 core/automation/plugin 버전+해시 skew를 fail-closed로 차단
|
|
|
201
226
|
|
|
202
227
|
> **위치 계약** — `paragraph_index`는 본문 직속 문단의 0-based 인덱스입니다. 표 안 문단은 여기 섞지 않고
|
|
203
228
|
> `{"kind":"table_cell_paragraph","table_index":0,"row":0,"col":1,"cell_paragraph_index":0}` 같은 `location`
|
|
204
|
-
> 객체로 지정하며, `
|
|
229
|
+
> 객체로 지정하며, `find_text`가 반환한 값을 그대로 넘길 수 있습니다. `get_table_map`은 기본(`detail="compact"`)으로
|
|
230
|
+
> 실제 칸만 한 번씩 싣고(병합은 `row_span`/`col_span`) 위치는 응답의 `cell_paragraph_location` 틀에 `table_index`·`row`·`col`을
|
|
231
|
+
> 넣어 만듭니다. 칸마다 `location`이 든 이전 형태는 `detail="full"`로 받습니다.
|
|
205
232
|
|
|
206
233
|
## 환경 변수
|
|
207
234
|
|
|
@@ -211,6 +238,7 @@ handshake는 core/automation/plugin 버전+해시 skew를 fail-closed로 차단
|
|
|
211
238
|
| `HWPX_AUTOMATION_MAX_CHARS` | 텍스트 반환 도구 기본 최대 길이 | `10000` |
|
|
212
239
|
| `HWPX_AUTOMATION_AUTOBACKUP` | `1`이면 저장 전 `.bak` 백업 생성 | `1` |
|
|
213
240
|
| `HWPX_AUTOMATION_ADVANCED` | `1`이면 고급 도구 활성화 | `0` |
|
|
241
|
+
| `HWPX_AUTOMATION_PROFILE` | `minimal`이면 작은 로컬 모델용 도구 6개만 제공(`--profile`과 같음) | `full` |
|
|
214
242
|
| `HWPX_AUTOMATION_FETCH_TIMEOUT_SECONDS` | URL 기반 HWPX fetch timeout | `20.0` |
|
|
215
243
|
| `HWPX_AUTOMATION_ALLOW_PRIVATE_NETWORK` | `1`이면 신뢰된 사설/루프백 HTTPS 대상 허용. 링크로컬·metadata·예약 주소는 계속 차단 | `0` |
|
|
216
244
|
| `HWPX_AUTOMATION_QUALITY` | 전역 기본 저장 게이트 정책(`transparent`/`strict`). 도구별 `quality`가 우선 | `transparent` |
|
|
@@ -12,9 +12,11 @@
|
|
|
12
12
|
</p>
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
|
+
> Source update: this source requires `python-hwpx >= 7.0` (source contract `c895883d5f4350ae`, delta in `docs/tool-contract-delta-8.0.0.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
|
-
> 발행이 승인된
|
|
19
|
+
> 발행이 승인된 8.0.0 후보 (release-approved; 원격 발행 대기): `python-hwpx 7.0.0 → python-hwpx-automation 8.0.0 → hwpx-plugin 8.0.0` (`c895883d5f4350ae`). 이 좌표는 `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 설치 관찰 후에만 승격합니다.
|
|
@@ -48,7 +50,7 @@ document = create_document_from_plan(
|
|
|
48
50
|
"blocks": [{"type": "paragraph", "text": "결정 사항"}],
|
|
49
51
|
}
|
|
50
52
|
)
|
|
51
|
-
document.
|
|
53
|
+
document.save("meeting-result.hwpx")
|
|
52
54
|
```
|
|
53
55
|
|
|
54
56
|
`python -m hwpx_automation --help`와 `hwpx help`는 같은 task CLI를 실행합니다.
|
|
@@ -90,11 +92,22 @@ Gemini CLI는 `~/.gemini/settings.json`, Cursor·Windsurf는 각 에디터의 MC
|
|
|
90
92
|
|
|
91
93
|
> 비-HWPX 문서(PDF/DOCX/XLSX/HTML/TXT)를 `document_to_markdown`으로 읽으려면
|
|
92
94
|
> `pip install "python-hwpx-automation[ingest]"`로 MarkItDown adapter를 함께
|
|
93
|
-
> 설치합니다. 요구 사항: `Python >= 3.10` · `python-hwpx >=
|
|
95
|
+
> 설치합니다. 요구 사항: `Python >= 3.10` · `python-hwpx >= 7.0`.
|
|
94
96
|
|
|
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
|
+
`create_from_markdown`의 `byline`(200자까지)은 제목 아래 오른쪽에 쓰는 부서·날짜 줄입니다.
|
|
109
|
+
결과에는 문서 본문을 싣지 않고, 수정본은 기본으로 `<이름>.edited.hwpx`에 저장합니다.
|
|
110
|
+
|
|
98
111
|
## 한컴으로 PDF 렌더하기
|
|
99
112
|
|
|
100
113
|
한컴(macOS 한컴오피스 한글 또는 Windows 한글 COM)이 있는 컴퓨터에서 문서 하나를
|
|
@@ -102,7 +115,7 @@ PDF와 쪽 PNG로 렌더합니다. 별도 환경에서 실행하므로 호출하
|
|
|
102
115
|
고정 버전을 건드리지 않습니다.
|
|
103
116
|
|
|
104
117
|
```bash
|
|
105
|
-
uvx --from "python-hwpx-automation[oracle]==
|
|
118
|
+
uvx --from "python-hwpx-automation[oracle]==8.0.0" \
|
|
106
119
|
hwpx render-pdf in.hwpx out.pdf --png out/page --json
|
|
107
120
|
```
|
|
108
121
|
|
|
@@ -141,7 +154,9 @@ handshake는 core/automation/plugin 버전+해시 skew를 fail-closed로 차단
|
|
|
141
154
|
|
|
142
155
|
> **위치 계약** — `paragraph_index`는 본문 직속 문단의 0-based 인덱스입니다. 표 안 문단은 여기 섞지 않고
|
|
143
156
|
> `{"kind":"table_cell_paragraph","table_index":0,"row":0,"col":1,"cell_paragraph_index":0}` 같은 `location`
|
|
144
|
-
> 객체로 지정하며, `
|
|
157
|
+
> 객체로 지정하며, `find_text`가 반환한 값을 그대로 넘길 수 있습니다. `get_table_map`은 기본(`detail="compact"`)으로
|
|
158
|
+
> 실제 칸만 한 번씩 싣고(병합은 `row_span`/`col_span`) 위치는 응답의 `cell_paragraph_location` 틀에 `table_index`·`row`·`col`을
|
|
159
|
+
> 넣어 만듭니다. 칸마다 `location`이 든 이전 형태는 `detail="full"`로 받습니다.
|
|
145
160
|
|
|
146
161
|
## 환경 변수
|
|
147
162
|
|
|
@@ -151,6 +166,7 @@ handshake는 core/automation/plugin 버전+해시 skew를 fail-closed로 차단
|
|
|
151
166
|
| `HWPX_AUTOMATION_MAX_CHARS` | 텍스트 반환 도구 기본 최대 길이 | `10000` |
|
|
152
167
|
| `HWPX_AUTOMATION_AUTOBACKUP` | `1`이면 저장 전 `.bak` 백업 생성 | `1` |
|
|
153
168
|
| `HWPX_AUTOMATION_ADVANCED` | `1`이면 고급 도구 활성화 | `0` |
|
|
169
|
+
| `HWPX_AUTOMATION_PROFILE` | `minimal`이면 작은 로컬 모델용 도구 6개만 제공(`--profile`과 같음) | `full` |
|
|
154
170
|
| `HWPX_AUTOMATION_FETCH_TIMEOUT_SECONDS` | URL 기반 HWPX fetch timeout | `20.0` |
|
|
155
171
|
| `HWPX_AUTOMATION_ALLOW_PRIVATE_NETWORK` | `1`이면 신뢰된 사설/루프백 HTTPS 대상 허용. 링크로컬·metadata·예약 주소는 계속 차단 | `0` |
|
|
156
172
|
| `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
|
+
version = "8.0.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,21 @@ classifiers = [
|
|
|
24
24
|
"Typing :: Typed",
|
|
25
25
|
]
|
|
26
26
|
dependencies = [
|
|
27
|
-
#
|
|
28
|
-
#
|
|
29
|
-
#
|
|
30
|
-
#
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
|
|
27
|
+
# 7.0 is the floor, not a preference: python-hwpx 7.0 keeps the engine only
|
|
28
|
+
# and the conversion and guessing features (Markdown, ingest, forms, mail
|
|
29
|
+
# merge, preview, format rules) live in this package from 8.0, so a 6.x core
|
|
30
|
+
# would ship them twice and declare `hwpx-check-format` twice. The lower
|
|
31
|
+
# bound has been at or above 6.0 since this package took over the `hwpx`
|
|
32
|
+
# console name (core stopped declaring it at 5.0), which is what makes "no
|
|
33
|
+
# valid install has two declarers" true rather than hopeful. The bounded
|
|
34
|
+
# major (<8) keeps the next core major from silently breaking an
|
|
35
|
+
# already-published automation line.
|
|
36
|
+
"python-hwpx>=7.0,<8", # HWPX object model, OXML/OPC, format-native primitives
|
|
35
37
|
|
|
36
38
|
"pydantic>=2.11,<3",
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
#
|
|
40
|
-
# FastMCP seam is intentionally pinned to this minor line and compatibility-tested.
|
|
39
|
+
# cryptography (workflow store only) is the [workflow] extra and anyio is
|
|
40
|
+
# imported nowhere in this package; the MCP SDK brings both when [mcp] is
|
|
41
|
+
# installed. A plain install stays lxml + core + pydantic.
|
|
41
42
|
"tomli>=2.0; python_version < '3.11'",
|
|
42
43
|
]
|
|
43
44
|
|
|
@@ -45,15 +46,38 @@ dependencies = [
|
|
|
45
46
|
# MCP는 이 제품의 어댑터 하나지 본체가 아니다. office/·workflow/·
|
|
46
47
|
# ops_services/·core/ 122개 파일 중 mcp를 import하는 것은 0개다. 파이썬으로
|
|
47
48
|
# 문서 자동화만 하는 사용자가 MCP SDK를 강제로 깔 이유가 없다.
|
|
48
|
-
|
|
49
|
+
# Annotated CallToolResult validation landed in 1.28. The audited private FastMCP
|
|
50
|
+
# seam is pinned to one exact patch (1.30.0, the first 1.x with the
|
|
51
|
+
# GHSA-84m7-p3x7-pcfv fix) and re-audited per docs/mcp-sdk-reaudit.md before
|
|
52
|
+
# the pin moves.
|
|
53
|
+
mcp = ["mcp==1.30.0", "cryptography>=42.0"]
|
|
49
54
|
|
|
50
|
-
#
|
|
51
|
-
|
|
55
|
+
# The durable workflow store (hwpx_automation.workflow.WorkflowStore) encrypts
|
|
56
|
+
# work orders and results with AES-GCM. Only that store needs cryptography, so
|
|
57
|
+
# it is optional; the MCP workflow tools get it through [mcp] above.
|
|
58
|
+
workflow = ["cryptography>=42.0"]
|
|
59
|
+
|
|
60
|
+
# Legacy .hwp (HWP 5.0) reading is python-hwpx's own since 6.6 (the floor is
|
|
61
|
+
# above that), so this extra installs nothing. It stays declared so existing
|
|
62
|
+
# `pip install "python-hwpx-automation[hwp]"` commands keep working silently.
|
|
63
|
+
hwp = []
|
|
52
64
|
# HTTP/streamable transport. The default stdio transport needs no extra.
|
|
53
65
|
http = ["uvicorn>=0.30"]
|
|
54
66
|
# Advertised non-HWPX ingest formats only. Avoid cloud/audio/mail extras and their
|
|
55
67
|
# unrelated dependency trees; HTML and text formats are supported by the base.
|
|
56
68
|
ingest = ["markitdown[pdf,docx,xlsx]>=0.1.6,<0.2"]
|
|
69
|
+
# The next four came with the features python-hwpx 7.0 moved here (8.0); each is
|
|
70
|
+
# imported lazily by the one module that needs it, and absent it that module
|
|
71
|
+
# says which extra to install.
|
|
72
|
+
# Equation MathML in the preview (hwpx_automation.preview); without it the
|
|
73
|
+
# preview fails closed to a LaTeX code block instead of dropping equations.
|
|
74
|
+
preview = ["latex2mathml>=3.77"]
|
|
75
|
+
# Excel (.xlsx/.xlsm) rosters for hwpx_automation.mail_merge.
|
|
76
|
+
xlsx = ["openpyxl>=3.1"]
|
|
77
|
+
# LangChain loader (hwpx_automation.integrations.langchain).
|
|
78
|
+
langchain = ["langchain-core>=0.3"]
|
|
79
|
+
# LlamaIndex reader (hwpx_automation.integrations.llama_index).
|
|
80
|
+
llamaindex = ["llama-index-core>=0.12"]
|
|
57
81
|
# 직인 날인/검증의 한컴 렌더 오라클 경로(렌더→fitz word/image bbox). macOS+Hancom 필요;
|
|
58
82
|
# 없으면 place_seal/check_seal_compliance가 renderChecked=false로 정직하게 degrade한다.
|
|
59
83
|
# The imaging stack is declared here now. Core stopped reading PDFs and images
|
|
@@ -70,11 +94,19 @@ test = [
|
|
|
70
94
|
"jsonschema>=4.22",
|
|
71
95
|
# Parse the checked-in GitHub workflow and freeze cross-platform shell semantics.
|
|
72
96
|
"pyyaml>=6.0",
|
|
73
|
-
|
|
97
|
+
# Tests drive the workflow store and call anyio.run directly; neither is a
|
|
98
|
+
# base dependency any more.
|
|
99
|
+
"cryptography>=42.0",
|
|
100
|
+
"anyio>=4.0",
|
|
74
101
|
"uvicorn>=0.30",
|
|
75
102
|
"numpy>=1.26",
|
|
76
103
|
"pillow>=10.0",
|
|
77
104
|
"ruff>=0.12",
|
|
105
|
+
# The moved preview, mail-merge and LangChain tests run in CI instead of
|
|
106
|
+
# skipping (the [preview], [xlsx] and [langchain] extras above).
|
|
107
|
+
"latex2mathml>=3.77",
|
|
108
|
+
"openpyxl>=3.1",
|
|
109
|
+
"langchain-core>=0.3",
|
|
78
110
|
]
|
|
79
111
|
typecheck = [
|
|
80
112
|
"mypy>=1.10,<3",
|
|
@@ -92,6 +124,9 @@ Issues = "https://github.com/airmang/python-hwpx-automation/issues"
|
|
|
92
124
|
# Canonical optional-adapter command. The bounded 6.x compatibility distribution
|
|
93
125
|
# owns the old console so each executable has exactly one distribution owner.
|
|
94
126
|
"hwpx-automation-mcp" = "hwpx_automation.mcp_cli:main"
|
|
127
|
+
# Moved from python-hwpx 7.0 with hwpx_automation.format_rules; core stops
|
|
128
|
+
# declaring it in the same major this package's core floor reaches.
|
|
129
|
+
"hwpx-check-format" = "hwpx_automation.format_rules:main"
|
|
95
130
|
|
|
96
131
|
[tool.setuptools]
|
|
97
132
|
package-dir = {"" = "src"}
|
|
@@ -114,6 +149,7 @@ include = ["hwpx_automation*"]
|
|
|
114
149
|
"hwpx_automation.office.house_style" = ["data/*.json"]
|
|
115
150
|
"hwpx_automation.office.authoring.design" = ["profiles/*/*", "profiles/*/fragments/*"]
|
|
116
151
|
"hwpx_automation.office.rendering" = [
|
|
152
|
+
"_hancom_alerts_mac.applescript",
|
|
117
153
|
"_hancom_open_rate.ps1",
|
|
118
154
|
"_refresh_hwpx_mac.applescript",
|
|
119
155
|
"_render_hwpx.ps1",
|
|
@@ -132,14 +168,6 @@ addopts = "-q"
|
|
|
132
168
|
# source precisely rather than silencing DeprecationWarning wholesale.
|
|
133
169
|
filterwarnings = [
|
|
134
170
|
"error::DeprecationWarning",
|
|
135
|
-
# hwpx-core's own internal modules still call its pre-6.0 facade
|
|
136
|
-
# internally (core's own migration debt, not automation's -- out of this
|
|
137
|
-
# package's control/scope).
|
|
138
|
-
"ignore::DeprecationWarning:hwpx\\._document\\._legacy",
|
|
139
|
-
"ignore::DeprecationWarning:hwpx\\.form_fit\\.measure",
|
|
140
|
-
"ignore::DeprecationWarning:hwpx\\.ingest\\.hwpx_converter",
|
|
141
|
-
"ignore::DeprecationWarning:hwpx\\.tools\\.mail_merge",
|
|
142
|
-
"ignore::DeprecationWarning:hwpx\\.tools\\.redline",
|
|
143
171
|
# test_fuzz_harness_wired dynamically imports whichever co-located
|
|
144
172
|
# python-hwpx* sibling checkout happens to carry scripts/fuzz (by design
|
|
145
173
|
# it does not pin to PYTHON_HWPX_REPO -- see that test's own docstring);
|
|
@@ -149,8 +177,23 @@ filterwarnings = [
|
|
|
149
177
|
# lack __module__ on some builtin types under newer CPython -- a
|
|
150
178
|
# third-party artifact, never an hwpx-sourced warning.
|
|
151
179
|
"ignore:builtin type \\w+ has no __module__ attribute:DeprecationWarning",
|
|
180
|
+
# langchain-core (a [test] dependency since the LangChain loader moved here in
|
|
181
|
+
# 8.0) installs langsmith, whose pytest plugin calls asyncio.iscoroutinefunction
|
|
182
|
+
# at import. Python 3.14 deprecates that call, so the plugin failed to load and
|
|
183
|
+
# pytest stopped before collecting anything. Third-party, never an hwpx call.
|
|
184
|
+
"ignore:'asyncio.iscoroutinefunction' is deprecated:DeprecationWarning:langsmith",
|
|
152
185
|
]
|
|
153
186
|
|
|
187
|
+
[tool.coverage.run]
|
|
188
|
+
source = ["hwpx_automation"]
|
|
189
|
+
|
|
190
|
+
[tool.coverage.report]
|
|
191
|
+
# Line-coverage floor enforced by the Tests workflow (`pytest --cov`). The
|
|
192
|
+
# 2026-11 audit measured 79.73% (Windows, Python 3.12); the floor sits a little
|
|
193
|
+
# below so platform-only branches do not flap it. Raise it as coverage grows;
|
|
194
|
+
# never lower it to make a change pass.
|
|
195
|
+
fail_under = 77
|
|
196
|
+
|
|
154
197
|
[tool.mypy]
|
|
155
198
|
python_version = "3.10"
|
|
156
199
|
# Type-check the product surface against the declared 3.10 language level,
|
|
@@ -172,6 +215,15 @@ files = [
|
|
|
172
215
|
"src/hwpx_automation/office",
|
|
173
216
|
"src/hwpx_automation/tool_contract.py",
|
|
174
217
|
"src/hwpx_automation/workflow/service.py",
|
|
218
|
+
# 8.0: the light layer python-hwpx 7.0 moved here.
|
|
219
|
+
"src/hwpx_automation/markdown",
|
|
220
|
+
"src/hwpx_automation/ingest",
|
|
221
|
+
"src/hwpx_automation/ingest_adapters.py",
|
|
222
|
+
"src/hwpx_automation/integrations",
|
|
223
|
+
"src/hwpx_automation/forms",
|
|
224
|
+
"src/hwpx_automation/mail_merge.py",
|
|
225
|
+
"src/hwpx_automation/preview",
|
|
226
|
+
"src/hwpx_automation/format_rules.py",
|
|
175
227
|
]
|
|
176
228
|
follow_imports = "skip"
|
|
177
229
|
ignore_missing_imports = true
|
|
@@ -206,6 +258,15 @@ include = [
|
|
|
206
258
|
"src/hwpx_automation/office",
|
|
207
259
|
"src/hwpx_automation/tool_contract.py",
|
|
208
260
|
"src/hwpx_automation/workflow/service.py",
|
|
261
|
+
# 8.0: the light layer python-hwpx 7.0 moved here.
|
|
262
|
+
"src/hwpx_automation/markdown",
|
|
263
|
+
"src/hwpx_automation/ingest",
|
|
264
|
+
"src/hwpx_automation/ingest_adapters.py",
|
|
265
|
+
"src/hwpx_automation/integrations",
|
|
266
|
+
"src/hwpx_automation/forms",
|
|
267
|
+
"src/hwpx_automation/mail_merge.py",
|
|
268
|
+
"src/hwpx_automation/preview",
|
|
269
|
+
"src/hwpx_automation/format_rules.py",
|
|
209
270
|
]
|
|
210
271
|
reportMissingTypeStubs = false
|
|
211
272
|
|
{python_hwpx_automation-7.4.1 → python_hwpx_automation-8.0.0}/src/hwpx_automation/agent_document.py
RENAMED
|
@@ -24,10 +24,11 @@ from hwpx_automation.office.agent import (
|
|
|
24
24
|
HwpxAgentDocument,
|
|
25
25
|
agent_catalog,
|
|
26
26
|
agent_json_schemas,
|
|
27
|
-
apply_document_commands as apply_core_document_commands,
|
|
27
|
+
apply_document_commands as apply_core_document_commands, # noqa: F401 - kept for callers of this module
|
|
28
28
|
catalog_hash,
|
|
29
29
|
human_help,
|
|
30
30
|
)
|
|
31
|
+
from hwpx_automation.office.agent.commands import _apply_document_commands
|
|
31
32
|
from hwpx_automation.office.agent.blueprint import (
|
|
32
33
|
BLUEPRINT_REPLAY_RESULT_SCHEMA,
|
|
33
34
|
BlueprintReplayResult,
|
|
@@ -117,14 +118,14 @@ def _agent_error(exc: BaseException, *, target: str) -> AgentError:
|
|
|
117
118
|
message = f"{type(exc).__name__}: {exc}"
|
|
118
119
|
resolved_target = target
|
|
119
120
|
recoverability = "retryable" if code == "stale_revision" else "terminal"
|
|
120
|
-
if code in {"not_found", "ambiguous_target", "volatile_target", "unsupported_content"}:
|
|
121
|
+
if code in {"not_found", "ambiguous_target", "volatile_target", "unsupported_content", "contract_changed"}:
|
|
121
122
|
recoverability = "needs-review"
|
|
122
123
|
return AgentError(
|
|
123
124
|
code=code,
|
|
124
125
|
message=message[:4096],
|
|
125
126
|
target=resolved_target,
|
|
126
127
|
recoverability=recoverability,
|
|
127
|
-
suggestion=_suggestion(code),
|
|
128
|
+
suggestion=getattr(exc, "suggestion", None) or _suggestion(code),
|
|
128
129
|
)
|
|
129
130
|
|
|
130
131
|
|
|
@@ -262,9 +263,12 @@ def apply_document_command_batch(
|
|
|
262
263
|
verification_requirements or _DEFAULT_REQUIREMENTS
|
|
263
264
|
),
|
|
264
265
|
}
|
|
265
|
-
|
|
266
|
+
# The MCP caller sends commands, not the batch: a command without its own schemaVersion names no
|
|
267
|
+
# version, and is refused where agent-command v1 and v2 would put it in different places.
|
|
268
|
+
return _apply_document_commands(
|
|
266
269
|
batch,
|
|
267
270
|
idempotency_store=idempotency_store,
|
|
271
|
+
versionless_commands=True,
|
|
268
272
|
).to_dict()
|
|
269
273
|
|
|
270
274
|
|
|
@@ -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
|
+
]
|