figops 0.17.4__py3-none-any.whl

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 (94) hide show
  1. figops-0.17.4.dist-info/METADATA +229 -0
  2. figops-0.17.4.dist-info/RECORD +94 -0
  3. figops-0.17.4.dist-info/WHEEL +5 -0
  4. figops-0.17.4.dist-info/entry_points.txt +5 -0
  5. figops-0.17.4.dist-info/licenses/LICENSE +202 -0
  6. figops-0.17.4.dist-info/licenses/NOTICE +7 -0
  7. figops-0.17.4.dist-info/top_level.txt +7 -0
  8. figops_mcp_server.py +9 -0
  9. graphhub_mcp_server.py +61 -0
  10. hub_core/__init__.py +86 -0
  11. hub_core/adapters/__init__.py +19 -0
  12. hub_core/adapters/athena.py +123 -0
  13. hub_core/adapters/conventions.py +86 -0
  14. hub_core/adapters/prefetch.py +90 -0
  15. hub_core/adapters/selection.py +99 -0
  16. hub_core/athena_bridge.py +378 -0
  17. hub_core/batch_reformat.py +140 -0
  18. hub_core/cache_manager.py +166 -0
  19. hub_core/canonical_docs.py +62 -0
  20. hub_core/config_parser.py +2025 -0
  21. hub_core/config_placeholders.py +67 -0
  22. hub_core/data_contract.py +2600 -0
  23. hub_core/data_regression.py +313 -0
  24. hub_core/docker_runner.py +100 -0
  25. hub_core/doctor.py +241 -0
  26. hub_core/domain_analysis.py +251 -0
  27. hub_core/error_dumper.py +171 -0
  28. hub_core/execution_log.py +316 -0
  29. hub_core/figure_preflight.py +273 -0
  30. hub_core/geometry_diagnostics.py +1691 -0
  31. hub_core/health_check.py +91 -0
  32. hub_core/ispd_physics.py +133 -0
  33. hub_core/logging.py +45 -0
  34. hub_core/mcp/__init__.py +14 -0
  35. hub_core/mcp/config.py +119 -0
  36. hub_core/mcp/errors.py +103 -0
  37. hub_core/mcp/prompts.py +151 -0
  38. hub_core/mcp/render_errors.py +18 -0
  39. hub_core/mcp/render_geometry.py +264 -0
  40. hub_core/mcp/render_orchestration.py +881 -0
  41. hub_core/mcp/resources.py +192 -0
  42. hub_core/mcp/schemas.py +764 -0
  43. hub_core/mcp/security.py +235 -0
  44. hub_core/mcp/server.py +306 -0
  45. hub_core/mcp/tools/__init__.py +1 -0
  46. hub_core/mcp/tools/batch_tools.py +443 -0
  47. hub_core/mcp/tools/project_tools.py +161 -0
  48. hub_core/mcp/tools/read_tools.py +566 -0
  49. hub_core/mcp/tools/render_csv.py +517 -0
  50. hub_core/mcp/tools/render_project.py +420 -0
  51. hub_core/mcp/tools/render_support.py +687 -0
  52. hub_core/mcp/tools/render_tools.py +17 -0
  53. hub_core/mcp/tools/render_validation.py +126 -0
  54. hub_core/mcp/transport.py +389 -0
  55. hub_core/naming_lint.py +41 -0
  56. hub_core/process_runner.py +1131 -0
  57. hub_core/project_discovery.py +358 -0
  58. hub_core/project_normalization.py +573 -0
  59. hub_core/provenance.py +511 -0
  60. hub_core/raw_integrity.py +286 -0
  61. hub_core/rendering/__init__.py +15 -0
  62. hub_core/rendering/registry.py +253 -0
  63. hub_core/research_ops_enforcement.py +64 -0
  64. hub_core/runtime_paths.py +170 -0
  65. hub_core/scaffold.py +375 -0
  66. hub_core/style_init.py +66 -0
  67. hub_core/templates/__init__.py +1 -0
  68. hub_core/templates/project_config_template.yaml +187 -0
  69. hub_core/ui_utils.py +65 -0
  70. hub_core/utils.py +235 -0
  71. hub_core/uv_runtime.py +92 -0
  72. hub_core/visual_regression.py +902 -0
  73. hub_uv.py +21 -0
  74. orchestrator.py +793 -0
  75. plotting/__init__.py +8 -0
  76. plotting/axis_break.py +72 -0
  77. plotting/bridge_renderer.py +1757 -0
  78. plotting/common_plots.py +348 -0
  79. plotting/elements.py +430 -0
  80. plotting/examples/zenith_demo.py +54 -0
  81. plotting/figure_assembler.py +436 -0
  82. plotting/ispd_visualizer.py +87 -0
  83. plotting/smart_layout.py +169 -0
  84. plotting/trend_insight.py +115 -0
  85. plotting/utils.py +323 -0
  86. themes/__init__.py +1 -0
  87. themes/journal_theme.R +111 -0
  88. themes/journal_theme.py +1396 -0
  89. themes/palettes.py +116 -0
  90. themes/palettes.yaml +78 -0
  91. themes/physics_colormap.py +38 -0
  92. themes/schematic_theme.py +105 -0
  93. themes/style_packs.py +76 -0
  94. themes/style_profiles.py +579 -0
@@ -0,0 +1,229 @@
1
+ Metadata-Version: 2.4
2
+ Name: figops
3
+ Version: 0.17.4
4
+ Summary: Reproducible plotting and analysis pipeline for research projects
5
+ Author: Choemun Yeong
6
+ Maintainer: Moonweave Research
7
+ License-Expression: Apache-2.0
8
+ Project-URL: Homepage, https://github.com/Moonweave-Research/figops
9
+ Project-URL: Repository, https://github.com/Moonweave-Research/figops
10
+ Project-URL: Issues, https://github.com/Moonweave-Research/figops/issues
11
+ Requires-Python: >=3.12
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ License-File: NOTICE
15
+ Requires-Dist: matplotlib<4,>=3.7
16
+ Requires-Dist: numpy<3,>=1.24
17
+ Requires-Dist: pandas<3,>=2.0
18
+ Requires-Dist: pyyaml<7,>=6.0
19
+ Requires-Dist: scipy<2,>=1.10
20
+ Requires-Dist: statsmodels<1,>=0.14
21
+ Requires-Dist: openpyxl<4,>=3.1
22
+ Requires-Dist: rich<15,>=13.0
23
+ Requires-Dist: markdown>=3.10.2
24
+ Requires-Dist: pymdown-extensions>=10.21.3
25
+ Requires-Dist: python-pptx>=1.0.2
26
+ Requires-Dist: svgutils>=0.3.4
27
+ Requires-Dist: lxml>=6.1.0
28
+ Requires-Dist: adjusttext<2,>=1.3
29
+ Provides-Extra: io
30
+ Requires-Dist: pyarrow>=14.0; extra == "io"
31
+ Requires-Dist: tables>=3.9; extra == "io"
32
+ Dynamic: license-file
33
+
34
+ # FigOps
35
+
36
+ FigOps helps research teams turn raw analysis outputs into reproducible,
37
+ publication-ready figures. It is meant to be boring in the best way: one config,
38
+ one command, traceable inputs, repeatable outputs.
39
+
40
+ The short version:
41
+
42
+ ```bash
43
+ figops --help
44
+ figops-mcp --smoke
45
+ ```
46
+
47
+ If those two commands work, the package is installed and the MCP surface is alive.
48
+
49
+ ## Current status
50
+
51
+ - **Installable package:** yes. The wheel is built and smoke-tested like an external user would run it.
52
+ - **Current distribution name:** `figops`.
53
+ - **Current commands:** `figops` and `figops-mcp` (legacy aliases `graphhub` / `graphhub-mcp` remain for compatibility).
54
+ - **GitHub Release assets:** yes, for users who already have repository access.
55
+ - **Public PyPI:** not uploaded yet. The package policy is now Apache-2.0, and the next gate is TestPyPI/PyPI account publishing.
56
+
57
+ This means the built package is ready for public package-distribution checks, while the full repository can remain private until repo-only docs/tests/internal style packs are separated. Check [LICENSE](./LICENSE) and [NOTICE](./NOTICE) before redistributing.
58
+
59
+ ## Install from the current GitHub release
60
+
61
+ For internal users with repository access:
62
+
63
+ ```bash
64
+ gh release download v0.17.4 --repo Moonweave-Research/figops --pattern "*.whl" --dir dist-release
65
+ python -m pip install dist-release/figops-0.17.4-py3-none-any.whl
66
+ figops-mcp --smoke
67
+ ```
68
+
69
+ For local development from a clone:
70
+
71
+ ```bash
72
+ python hub_uv.py run python orchestrator.py --list-projects
73
+ python hub_uv.py run python -m pytest tests/test_runtime_paths.py -q
74
+ ```
75
+
76
+ `hub_uv.py` keeps the Python runtime outside the repo so the working tree does
77
+ not get polluted with local virtualenv state.
78
+
79
+ ## What it does
80
+
81
+ FigOps coordinates the work around a research figure:
82
+
83
+ 1. read a project's `project_config.yaml`,
84
+ 2. validate declared data contracts,
85
+ 3. run analysis scripts when needed,
86
+ 4. render figures and diagrams,
87
+ 5. apply journal/presentation styling,
88
+ 6. write provenance so the run can be audited later.
89
+
90
+ It is designed around a simple rule: **data is the API**. A figure should be
91
+ traceable back to declared inputs, scripts, config, environment, and output files.
92
+
93
+ ## Daily commands
94
+
95
+ ```bash
96
+ # Choose a configured project interactively
97
+ figops
98
+
99
+ # List configured projects
100
+ figops --list-projects
101
+
102
+ # Run the full pipeline for one project
103
+ figops --project "ProjectName" --step all
104
+
105
+ # Re-render figures only
106
+ figops --project "ProjectName" --step plot
107
+
108
+ # Re-render diagrams only
109
+ figops --project "ProjectName" --step diagrams
110
+
111
+ # Force a clean rerun
112
+ figops --project "ProjectName" --step all --force
113
+ ```
114
+
115
+ From a source checkout, the equivalent command is `python orchestrator.py ...` or
116
+ `python hub_uv.py run python orchestrator.py ...`.
117
+
118
+ ## Starting a new project
119
+
120
+ ```bash
121
+ figops --init --project "new_project_folder"
122
+ ```
123
+
124
+ That creates a scaffold with a `project_config.yaml`, script folders, and output
125
+ folders. The config is the contract between your data, analysis, and figures.
126
+
127
+ A minimal project shape looks like this:
128
+
129
+ ```yaml
130
+ project:
131
+ name: "Example Study"
132
+
133
+ visual_style:
134
+ target_format: nature
135
+ font_scale: 1.0
136
+ profile: baseline
137
+
138
+ pipeline:
139
+ analysis:
140
+ - script: "hub_scripts/analyze.R"
141
+ lang: R
142
+ cache: true
143
+
144
+ figures:
145
+ - id: Fig1
146
+ script: "hub_scripts/plot.py"
147
+ output: "results/figures/Fig1.png"
148
+ cache: true
149
+ ```
150
+
151
+ ## MCP smoke check
152
+
153
+ The package exposes a Model Context Protocol server entry point:
154
+
155
+ ```bash
156
+ figops-mcp --smoke
157
+ ```
158
+
159
+ A healthy smoke response looks like:
160
+
161
+ ```json
162
+ {"status": "ok", "health_status": "ok", "tool_surface": "figops_mcp"}
163
+ ```
164
+
165
+ Use this before wiring the package into an agent or external MCP client.
166
+
167
+ ## Quality gates
168
+
169
+ The repository currently verifies release candidates with these checks:
170
+
171
+ ```bash
172
+ uv build
173
+ python scripts/package_metadata_smoke.py
174
+ python scripts/public_package_surface.py
175
+ python scripts/consumer_install_smoke.py
176
+ uv run --with twine python -m twine check dist/*
177
+ python hub_uv.py run python -m pytest -q
178
+ python hub_uv.py run ruff check .
179
+ ```
180
+
181
+ After the GitHub Release is created and the wheel/sdist are uploaded, maintainers
182
+ also run:
183
+
184
+ ```bash
185
+ python scripts/github_release_asset_smoke.py
186
+ ```
187
+
188
+ `python scripts/check_public_release.py` may still block for repo-only private docs/tests.
189
+ For PyPI, the manual Trusted Publishing workflow runs the guarded uploader before publishing, so distribution policy, LICENSE/NOTICE, and the built wheel/sdist package surface are checked first.
190
+
191
+ ## When something goes wrong
192
+
193
+ - `project_config.yaml not found`
194
+ Run `figops --init --project "<project>"` or move into a configured project.
195
+
196
+ - `Project directory not found`
197
+ Run `figops --list-projects` and copy the exact configured name.
198
+
199
+ - Strict lockfile errors
200
+ `--strict-lock` is for reproducibility checks. For a quick local render, rerun
201
+ without strict mode; for release or audit work, add/fix the lockfiles.
202
+
203
+ - Google Drive files feel stuck
204
+ Let Drive finish syncing, then rerun. The hub also has a prefetch layer for
205
+ declared inputs, but it cannot repair a broken Drive login/session.
206
+
207
+ ## Repo map
208
+
209
+ - `orchestrator.py` — CLI entry point.
210
+ - `hub_core/` — config parsing, validation, cache, provenance, process execution, MCP logic.
211
+ - `plotting/` — reusable plotting helpers.
212
+ - `themes/` — journal and presentation style presets.
213
+ - `scripts/` — release, packaging, and distribution checks.
214
+ - `tests/` — regression and contract tests.
215
+ - `docs/packaging/pypi-readiness.md` — current packaging and public-release boundary.
216
+
217
+ ## What is next
218
+
219
+ The next public-distribution step is TestPyPI, then PyPI, through the manual Trusted Publishing workflow:
220
+
221
+ 1. keep `figops` as the public PyPI name unless a final product review changes it,
222
+ 2. rebuild wheel/sdist from a clean tree,
223
+ 3. confirm package artifacts exclude private docs/tests/research markers,
224
+ 4. make `scripts/guarded_pypi_upload.py --repository testpypi` pass in dry-run mode,
225
+ 5. run `publish.yml` for TestPyPI, install-check from TestPyPI, then run `publish.yml` for PyPI.
226
+
227
+ The working checklist is in
228
+ [`docs/packaging/public-release-clearance.md`](./docs/packaging/public-release-clearance.md), with exact publishing setup in
229
+ [`docs/packaging/trusted-publishing.md`](./docs/packaging/trusted-publishing.md).
@@ -0,0 +1,94 @@
1
+ figops_mcp_server.py,sha256=Bw5bEQOKyZBDf4FvMrt7yWufpiObi0uccg4uCEBVJ9E,197
2
+ graphhub_mcp_server.py,sha256=yzYoObCxMU3wRn3gTamAkYN5Lm4zejx-ttzmo6Y_V4g,2603
3
+ hub_uv.py,sha256=e2aKhLBRb3bv4LPfc1wu88pNq7H2-7SE89kL3hq-egQ,604
4
+ orchestrator.py,sha256=Krtq1qtxxqSF2ZQe_A2qoSDljmTkZ_J6AIcQPjrwhvc,33063
5
+ figops-0.17.4.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
+ figops-0.17.4.dist-info/licenses/NOTICE,sha256=WnyqZwtg-zvNJn1ALLrOcErar9il758z3IHY3x19RGo,195
7
+ hub_core/__init__.py,sha256=vUE8RDipcJVzMC2gjRSgdfQ2Vt4zomUQf9EnOR5CWBU,2559
8
+ hub_core/athena_bridge.py,sha256=pOBt53ECWQcfsPvz1MJzT4yySl0sYQMX_PVoQ_3L0-A,15773
9
+ hub_core/batch_reformat.py,sha256=SkJcusm9lbcJ1MSu1Z9m61M-YUA0tINZHGecb8ah_Us,4300
10
+ hub_core/cache_manager.py,sha256=bbOzj93ydQ_VRmzfECWTcZg7G-Xwqw95Byxz979zGkU,5922
11
+ hub_core/canonical_docs.py,sha256=CF2hCW3DMV29u2fqP76aLsVAEnVs6qC51BQevcRU0x0,2002
12
+ hub_core/config_parser.py,sha256=Q8UKZSn1tarQXLh4QxcmnZAONdV8brdux-WTGjNuoyA,92149
13
+ hub_core/config_placeholders.py,sha256=7L2AEucbWiiQsicIuNA3fPCdHNF4gmFeZS0Ay-UbGOg,2316
14
+ hub_core/data_contract.py,sha256=L_tOvldBKjREwjp-l83S-MPQQyXMOaUzyRYAlsjDgcs,93374
15
+ hub_core/data_regression.py,sha256=pMnsh5drNlTApT0dpIl1FWKaMWNQxLytYewqZxgTYTo,10271
16
+ hub_core/docker_runner.py,sha256=i6DjC7XYV4Hrzk0-VmuH-E4yfHhI1xtCxR-XBtPB2xc,2561
17
+ hub_core/doctor.py,sha256=zlr5maup-PGQ17iAOcbnn0QgaArI8TkJNRyxPMR4dL4,8886
18
+ hub_core/domain_analysis.py,sha256=IIKnUf7Lwncqx5jbx2bRtIXaWAl2HoPjz4BXssccfiI,11094
19
+ hub_core/error_dumper.py,sha256=iCNjPQjZSW-se2twJ5zzIsR1RmPiua3vC58BlaoY-FE,5826
20
+ hub_core/execution_log.py,sha256=0naFxAYCHbQG8s2faH-2VKZfILeTfIKhsbFti7IadsA,10853
21
+ hub_core/figure_preflight.py,sha256=8iH5nLPsEBXm0xCfBpZtpzPf3z0aqHxZnrouATAx1_E,9216
22
+ hub_core/geometry_diagnostics.py,sha256=vlrcQLD1vGmsfqJ3I_Elo1DO4RK4k3xR8USXv-J5Pvs,65126
23
+ hub_core/health_check.py,sha256=wNi4727XSKvatfg4DAE0l3u7bXUITVir08ncxmMTXvg,3255
24
+ hub_core/ispd_physics.py,sha256=_3wGfEGE-4KQz6NJIvBC_rFpA0avsM_YsDtJgSnAb7U,4562
25
+ hub_core/logging.py,sha256=8bMa-t7Xhg6wIShVLsLcWuGiaSp-VaEo638HBOQP3K4,1385
26
+ hub_core/naming_lint.py,sha256=WGhF8MPJty8fU2lBOS71v5pPQBQGr30sqkafeGmaROM,1232
27
+ hub_core/process_runner.py,sha256=wKBXfths3lQ19nwCGDt2lK6cK4gYMqKzQID-5NKPsv4,43569
28
+ hub_core/project_discovery.py,sha256=bg8O4gDdnTLN0-cOtqvUWqRiKlTgRH_ZinK3_6trd2c,12749
29
+ hub_core/project_normalization.py,sha256=Z_MiFX6o93fanFUvNc7MfUfJ_NOzbSDUpOiHqysyDlk,22411
30
+ hub_core/provenance.py,sha256=ma5i8V12v4lNilSZrfolcEHxsGDQonfdeLNC3Zg409o,17919
31
+ hub_core/raw_integrity.py,sha256=nLuGK8cSAlSnikF2FLTJpXGKrEyJuqWwqyAAz0I6MVg,10074
32
+ hub_core/research_ops_enforcement.py,sha256=8qEr3gSMEsS4NhkeL0xo2OluwQDaiVQNt7snhZR4u9s,2272
33
+ hub_core/runtime_paths.py,sha256=3KUwTonwd6vEvqIxGNFu4xsts8TOXSVMwi1r6A4lShY,5582
34
+ hub_core/scaffold.py,sha256=GmNCRrDq4vn_PB-Gxf_7dc5TMjqeRGMKLmItC0csAWg,12730
35
+ hub_core/style_init.py,sha256=t8as3FAYqs3-w1bOlEHw41mzt6vLyzDnGcr3_LpjsVQ,2061
36
+ hub_core/ui_utils.py,sha256=wgOeUmoVWiyMHRTLAQKOs79ptAl6jiCWAc4i614Ta5I,2142
37
+ hub_core/utils.py,sha256=K4HbrqWm7TAKSiAhBBzs_cHotTru4IreO4Ldzn7X8JQ,7648
38
+ hub_core/uv_runtime.py,sha256=YNsq9fOVkgiLqjOlQ_ubRzl_OmH0pzrKsWqvtnL7TxY,3473
39
+ hub_core/visual_regression.py,sha256=j1nXQiT7vQ1pYkUbhoa6LADF8_ES3aT0QxuyWtBfb4M,31181
40
+ hub_core/adapters/__init__.py,sha256=8NXFBcYa-3n-SfabWRHshItpy0QbypIMex4hKTcrOx0,577
41
+ hub_core/adapters/athena.py,sha256=yhC0PbKpsM6EFE0aBcwi6ZVTJ_ctLWmZ3lARUcaa4Ss,4515
42
+ hub_core/adapters/conventions.py,sha256=EvtS1qutEf62TOXtAb8MqWr5jZalJ-Jr3oLiurj2FWg,2530
43
+ hub_core/adapters/prefetch.py,sha256=lrOMnxrIswTViWOuQyawfS1_0vkHotJ7xhoWDd4RAAY,2768
44
+ hub_core/adapters/selection.py,sha256=TGZrKqRFPQDe_ckVPNyG1tSGV7mfkUFdzbIzWnjweYg,2865
45
+ hub_core/mcp/__init__.py,sha256=BRcwLo2uudY9W-GQK3Olc9O1YxUIBquFd4gqZpgJNHM,331
46
+ hub_core/mcp/config.py,sha256=LbYbAHPmJDssVeySPdNMAYiWomDyysAoC4k0CgDH4p8,4619
47
+ hub_core/mcp/errors.py,sha256=tuDhCQg_-hiURchOXPShGtp99E46i5G-a2t8n-seCe0,3149
48
+ hub_core/mcp/prompts.py,sha256=_mcDJj_PAKJrMtgSCMdel7DEgyZb4tPkFH2o0GcFe8s,7304
49
+ hub_core/mcp/render_errors.py,sha256=YxZ3MwlUPjyIabGOT4LjVbRaW5rErguitSMdTqsXI1s,710
50
+ hub_core/mcp/render_geometry.py,sha256=IhD7ypQ2viHqwbM_yGB1NRWsAo69vVGXtkaCkkQk8Xk,9854
51
+ hub_core/mcp/render_orchestration.py,sha256=wsr3SulSidDYXovwOxAzHAPqI8QWb0Iu89L8bh5jzIw,35725
52
+ hub_core/mcp/resources.py,sha256=a3G8eDglP1PQdNfR1weJdKwJaP3ch72PVm0iLNJmGEA,9775
53
+ hub_core/mcp/schemas.py,sha256=bvIwzpZZA00LqipV2K-GtjkY7AbjIC7vk-aXdHTSpXo,33581
54
+ hub_core/mcp/security.py,sha256=kX0mobrj8Vq3qzuSbJKIT5hGgF_O5t4Yi3WAFh2L8Qo,10873
55
+ hub_core/mcp/server.py,sha256=u0lEbSAvtqGFM6E4tooVQpR3fBIGS3_htsNr9FiNW1M,11876
56
+ hub_core/mcp/transport.py,sha256=g_hQmq2rvujpcqcYn6UCET1h4EWJUj3Dtz_xjDFCsOA,16991
57
+ hub_core/mcp/tools/__init__.py,sha256=IxPAeZxfP90pIjoD8xbR9AauD6OWXoImf3uzEuA93_Y,31
58
+ hub_core/mcp/tools/batch_tools.py,sha256=qDouTuynPj8ntMBRt1osHYUV8Dkl00oafOqvxXsGCEA,19492
59
+ hub_core/mcp/tools/project_tools.py,sha256=zuIqZ7Z2mVreTYPtw94A_guYP-mC8qNmycLVig205P0,7410
60
+ hub_core/mcp/tools/read_tools.py,sha256=g3grclGr4XQHbAUpaVgi3z3JKwmXqZ1gUcCcXjGcMtA,24844
61
+ hub_core/mcp/tools/render_csv.py,sha256=gqWct9GkTNoXYDeD0E4ldnun9xBGdrytW-QwGdIaAtY,25597
62
+ hub_core/mcp/tools/render_project.py,sha256=8gd5Zhoh7N9-6-iN7He8t4JK2h_QBew84hCcSiH-wIg,20615
63
+ hub_core/mcp/tools/render_support.py,sha256=gHrH1go2RsBpwZtdWAJowE1Zv_WxIwDVf-cFAA956yQ,30984
64
+ hub_core/mcp/tools/render_tools.py,sha256=J6JkNPS7IXhaci07r7bE7ygnnDv0F1abTes0RWFw6Bw,675
65
+ hub_core/mcp/tools/render_validation.py,sha256=4vkKGWBhQCziFLM0qrOuwEgdXSm1LZ0z-xdFY5K1SRY,5281
66
+ hub_core/rendering/__init__.py,sha256=D_7SlNyBSnDLNOPO_51UJpDtAChtBkhLz5Qi6EVhw1s,225
67
+ hub_core/rendering/registry.py,sha256=Y11W64hZQA1TaywzMl7vLW6zzFjdATxio5ixr_UO_HQ,7511
68
+ hub_core/templates/__init__.py,sha256=wOzQ43oPTMOvO8PxPDvFcFoXrySukkRAG28S3O3_uSM,42
69
+ hub_core/templates/project_config_template.yaml,sha256=svlTeLNrkM4z92J9ve9cwV9uqER5kmAi03NRgtF_V2o,7415
70
+ plotting/__init__.py,sha256=wDHHVTE44eZoDX_n51ucHZc5JXHaLdlwkI0ACwmvdAI,486
71
+ plotting/axis_break.py,sha256=aXtdC14bMG3nrqhZ7Nyg6I3wynmeGmrvddE4uog7mUA,2491
72
+ plotting/bridge_renderer.py,sha256=SV-U5jcdyx4NcHrlhcbdLsT1wcKCVXCTzw1uToL0V0A,64344
73
+ plotting/common_plots.py,sha256=FQWQuazYtM92b4IM7ItTyJmmUr_gHHyK7NAYy3ZgYYA,12702
74
+ plotting/elements.py,sha256=XZUOhOcEmIPnWAPaYr-b3ZnLi0bF_BgnwJE20rI2TDg,11966
75
+ plotting/figure_assembler.py,sha256=xkUmwKO8w89EqzvEDiHxAKbB8iiOROs0tK2_ikh5qJo,15373
76
+ plotting/ispd_visualizer.py,sha256=spZZTNV_-hlFbQ6-Z3QBZc5Kw9YTgw0V1q0IX5TlwKk,3559
77
+ plotting/smart_layout.py,sha256=vyVTYvhcMBHGmridoCi-SZ3G0uNqRWasXRxoABHw4OY,5484
78
+ plotting/trend_insight.py,sha256=SRLuODTl4WUWEQBDJD3f8pTTLiEnHSylTv_-4ld8ZQ4,3655
79
+ plotting/utils.py,sha256=oWMOmQU4MyK2Lx1ThmyD2PbuhQHqFPo55pnioJA8p4E,10848
80
+ plotting/examples/zenith_demo.py,sha256=5bl4rJ70rnKXM_TyHnANS6_okl_VxXSr6ye9GbQG9Qg,1631
81
+ themes/__init__.py,sha256=stfHscYTMJJULIjSbF5VQy5AfTwTZVTtkX7tu8UpGY0,86
82
+ themes/journal_theme.R,sha256=Zef4hvQ7a6GA-a1npTEt5juDikzWhXeHjx_3KjpHs78,4907
83
+ themes/journal_theme.py,sha256=eDOsdJ5kOtMNghTb-zExjrQ2zw1gtHlQM1l3TbAA5Zo,56140
84
+ themes/palettes.py,sha256=7fOrNyzBgoOK9ox3Cnn2VnLbLDwn6wqypHWKfVmUopQ,4550
85
+ themes/palettes.yaml,sha256=iH6EmsLs0x4POgKm0QGTn21qC1Hh2BmqaaVKUrEM1x4,4766
86
+ themes/physics_colormap.py,sha256=alGabwUBPMgtAiiHlEjobZ_0hvxcLYCvzuiETe67V9s,1162
87
+ themes/schematic_theme.py,sha256=JMuOX4yT8SjJESE0bEt_Jc1LtM5LSPTGkBIDIY41oRo,4081
88
+ themes/style_packs.py,sha256=Jll6rILMq3qkRv6dRErvaht6rfWkmeVJg8F2IYTsN0E,2714
89
+ themes/style_profiles.py,sha256=TqPhBKD6ikcW6s_kBjvukAdJUGGLmqk6SOIW-i9Euh0,29273
90
+ figops-0.17.4.dist-info/METADATA,sha256=Cp9wTPUipr6MvoUgMkIIpU0iRQAcMxVR_041DI-LWrU,7383
91
+ figops-0.17.4.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
92
+ figops-0.17.4.dist-info/entry_points.txt,sha256=Sp4_ku1r3gurZVLrRSvdy2aRvADQO2oKXVFFh5GwjuA,150
93
+ figops-0.17.4.dist-info/top_level.txt,sha256=rubjv1dUcET7v19fcCU8Yt0JPnAGuM-69IfmjuLC-XU,83
94
+ figops-0.17.4.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,5 @@
1
+ [console_scripts]
2
+ figops = orchestrator:main
3
+ figops-mcp = figops_mcp_server:main
4
+ graphhub = orchestrator:main
5
+ graphhub-mcp = graphhub_mcp_server:main
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,7 @@
1
+ FigOps
2
+ Copyright 2026 Choemun Yeong
3
+
4
+ Licensed under the Apache License, Version 2.0.
5
+
6
+ This product includes software developed for reproducible research figure
7
+ operations and plotting workflows.
@@ -0,0 +1,7 @@
1
+ figops_mcp_server
2
+ graphhub_mcp_server
3
+ hub_core
4
+ hub_uv
5
+ orchestrator
6
+ plotting
7
+ themes
figops_mcp_server.py ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env python3
2
+ """FigOps MCP stdio server entry point."""
3
+
4
+ from __future__ import annotations
5
+
6
+ from graphhub_mcp_server import main
7
+
8
+ if __name__ == "__main__":
9
+ raise SystemExit(main())
graphhub_mcp_server.py ADDED
@@ -0,0 +1,61 @@
1
+ #!/usr/bin/env python3
2
+ from __future__ import annotations
3
+
4
+ import argparse
5
+ import json
6
+
7
+ from hub_core.doctor import format_doctor_report, run_doctor
8
+ from hub_core.logging import configure_logging
9
+ from hub_core.mcp import FigOpsMCPServer, McpServerConfig, run_stdio_server
10
+
11
+
12
+ def _run_smoke(config: McpServerConfig) -> int:
13
+ server = FigOpsMCPServer(config=config)
14
+ health = server.call_tool("figops.health", {})["structuredContent"]
15
+ styles = server.call_tool("figops.list_styles", {})["structuredContent"]
16
+ payload = {
17
+ "status": "ok" if health.get("status") in {"ok", "warning"} and styles.get("status") == "ok" else "error",
18
+ "health_status": health.get("status"),
19
+ "style_format_count": styles.get("style_format_count") or len(styles.get("target_formats", [])),
20
+ "tool_surface": "figops_mcp",
21
+ }
22
+ print(json.dumps(payload, ensure_ascii=False, sort_keys=True))
23
+ return 0 if payload["status"] == "ok" else 1
24
+
25
+
26
+ def main() -> int:
27
+ parser = argparse.ArgumentParser(description="FigOps MCP stdio server")
28
+ parser.add_argument("--smoke", action="store_true", help="Run a read-only MCP health/style smoke check")
29
+ subparsers = parser.add_subparsers(dest="command")
30
+ doctor_parser = subparsers.add_parser("doctor", help="Run a FigOps environment readiness check")
31
+ doctor_parser.add_argument("--json", action="store_true", help="Emit structured doctor output for agents")
32
+ parser.add_argument("--hub-path", help="Explicit FigOps repository path")
33
+ parser.add_argument("--research-root", help="Explicit research/project discovery root")
34
+ parser.add_argument("--runtime-root", help="Explicit MCP runtime root")
35
+ parser.add_argument(
36
+ "--enable-write-tools",
37
+ action="store_true",
38
+ help="Enable MCP tools that write files or execute render jobs",
39
+ )
40
+ args = parser.parse_args()
41
+ configure_logging()
42
+ config = McpServerConfig.from_env().overlay(
43
+ hub_path=args.hub_path,
44
+ research_root=args.research_root,
45
+ runtime_root=args.runtime_root,
46
+ write_tools_enabled=True if args.enable_write_tools else None,
47
+ )
48
+ if args.smoke:
49
+ return _run_smoke(config)
50
+ if args.command == "doctor":
51
+ report = run_doctor(config)
52
+ if args.json:
53
+ print(json.dumps(report, ensure_ascii=False, sort_keys=True))
54
+ else:
55
+ print(format_doctor_report(report))
56
+ return 0 if report["ready"] else 1
57
+ return run_stdio_server(FigOpsMCPServer(config=config, require_initialize=True))
58
+
59
+
60
+ if __name__ == "__main__":
61
+ raise SystemExit(main())