quantology-modelmaker 0.2.0__tar.gz → 0.3.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.
- {quantology_modelmaker-0.2.0/quantology_modelmaker.egg-info → quantology_modelmaker-0.3.0}/PKG-INFO +89 -12
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/README.md +88 -11
- quantology_modelmaker-0.3.0/frontend/.oxlintrc.json +36 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/package-lock.json +15 -6
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/package.json +5 -2
- quantology_modelmaker-0.3.0/frontend/scripts/check-host.mjs +29 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/App.tsx +240 -102
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/BlockNode.tsx +56 -24
- quantology_modelmaker-0.3.0/frontend/src/BuildPanel.tsx +868 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/BuildReport.tsx +20 -22
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/CodeEditor.tsx +42 -3
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/DataModal.tsx +19 -17
- quantology_modelmaker-0.3.0/frontend/src/DataPicker.tsx +62 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/EnvVarField.tsx +2 -2
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/FileBrowser.tsx +9 -9
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/GhostNode.tsx +7 -7
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/GitPanel.tsx +19 -13
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/Inspector.tsx +145 -162
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/LaneBand.tsx +2 -2
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/LaneLabels.tsx +3 -3
- quantology_modelmaker-0.3.0/frontend/src/LibraryPanel.tsx +1232 -0
- quantology_modelmaker-0.3.0/frontend/src/NodeDisplay.tsx +169 -0
- quantology_modelmaker-0.3.0/frontend/src/Palette.tsx +320 -0
- quantology_modelmaker-0.3.0/frontend/src/ParamsForm.tsx +233 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/PortDataView.tsx +23 -17
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/PortInspector.tsx +5 -4
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/SettingsPanel.tsx +49 -15
- quantology_modelmaker-0.3.0/frontend/src/Toolbar.tsx +447 -0
- quantology_modelmaker-0.3.0/frontend/src/UpdateDialog.tsx +87 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/api.ts +92 -13
- quantology_modelmaker-0.3.0/frontend/src/features.ts +42 -0
- quantology_modelmaker-0.3.0/frontend/src/host.ts +185 -0
- quantology_modelmaker-0.3.0/frontend/src/index.css +269 -0
- quantology_modelmaker-0.3.0/frontend/src/main.tsx +15 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/roles.ts +3 -12
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/types.ts +299 -13
- quantology_modelmaker-0.3.0/frontend/vite.config.ts +49 -0
- quantology_modelmaker-0.3.0/modelmaker/__init__.py +5 -0
- quantology_modelmaker-0.3.0/modelmaker/__main__.py +3 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/agent/build.py +221 -21
- quantology_modelmaker-0.3.0/modelmaker/agent/catalogue.py +295 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/agent/controller.py +221 -12
- quantology_modelmaker-0.3.0/modelmaker/agent/hint_rules.py +528 -0
- quantology_modelmaker-0.3.0/modelmaker/agent/hints.py +152 -0
- quantology_modelmaker-0.3.0/modelmaker/agent/leakage.py +191 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/agent/loop.py +88 -12
- quantology_modelmaker-0.3.0/modelmaker/agent/prompts.py +534 -0
- quantology_modelmaker-0.3.0/modelmaker/agent/tools.py +1465 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/api.py +941 -365
- quantology_modelmaker-0.3.0/modelmaker/assistant_api.py +279 -0
- quantology_modelmaker-0.3.0/modelmaker/assistant_mcp.py +657 -0
- quantology_modelmaker-0.3.0/modelmaker/block_library.py +613 -0
- quantology_modelmaker-0.3.0/modelmaker/blocks/_template.py +77 -0
- quantology_modelmaker-0.3.0/modelmaker/blocks/base.py +235 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/blocks/binning.py +59 -66
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/blocks/data_quality.py +44 -81
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/blocks/feature_analysis.py +79 -72
- quantology_modelmaker-0.3.0/modelmaker/blocks/library.py +805 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/blocks/modelling.py +497 -333
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/blocks/stat_tests.py +189 -143
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/blocks/stochastic.py +297 -282
- quantology_modelmaker-0.3.0/modelmaker/cache.py +283 -0
- quantology_modelmaker-0.3.0/modelmaker/capabilities.py +145 -0
- quantology_modelmaker-0.3.0/modelmaker/cli.py +84 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/compiler.py +120 -53
- quantology_modelmaker-0.3.0/modelmaker/datasets.py +158 -0
- quantology_modelmaker-0.3.0/modelmaker/execution/__init__.py +48 -0
- quantology_modelmaker-0.3.0/modelmaker/execution/agent.py +374 -0
- quantology_modelmaker-0.3.0/modelmaker/execution/base.py +107 -0
- quantology_modelmaker-0.3.0/modelmaker/execution/env.py +165 -0
- quantology_modelmaker-0.3.0/modelmaker/execution/limits.py +340 -0
- quantology_modelmaker-0.3.0/modelmaker/execution/local.py +251 -0
- quantology_modelmaker-0.3.0/modelmaker/execution/protocol.py +156 -0
- quantology_modelmaker-0.3.0/modelmaker/execution/remote.py +562 -0
- quantology_modelmaker-0.3.0/modelmaker/execution/safe_pickle.py +121 -0
- quantology_modelmaker-0.3.0/modelmaker/execution/wire.py +505 -0
- quantology_modelmaker-0.3.0/modelmaker/features.py +123 -0
- quantology_modelmaker-0.3.0/modelmaker/forms.py +124 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/gitops.py +22 -2
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/graph.py +17 -34
- quantology_modelmaker-0.3.0/modelmaker/library_ai.py +166 -0
- quantology_modelmaker-0.3.0/modelmaker/library_api.py +557 -0
- quantology_modelmaker-0.3.0/modelmaker/library_store.py +579 -0
- quantology_modelmaker-0.3.0/modelmaker/library_updates.py +173 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/llm/__init__.py +2 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/llm/anthropic_provider.py +13 -27
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/llm/base.py +16 -9
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/llm/claude_cli_provider.py +21 -21
- quantology_modelmaker-0.3.0/modelmaker/llm/copilot_provider.py +67 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/llm/gemini_provider.py +2 -5
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/llm/lmstudio_provider.py +2 -5
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/llm/openai_provider.py +2 -5
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/llm/prompts.py +76 -62
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/llm/settings.py +11 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/llm/stub_provider.py +21 -2
- quantology_modelmaker-0.3.0/modelmaker/metadata_transforms.py +114 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/project.py +63 -35
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/run_worker.py +110 -53
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/runner.py +368 -163
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/runslot.py +4 -1
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/session.py +166 -44
- quantology_modelmaker-0.3.0/modelmaker/signature.py +254 -0
- quantology_modelmaker-0.3.0/modelmaker/sources.py +80 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/stochastic/distributions.py +2 -2
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/tui/app.py +1 -8
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/tui/canvas.py +2 -2
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/tui/client.py +19 -20
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/tui/inspector.py +40 -26
- quantology_modelmaker-0.3.0/modelmaker/tui/paramspecs.py +61 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/util.py +13 -4
- quantology_modelmaker-0.3.0/modelmaker/worker_pool.py +497 -0
- quantology_modelmaker-0.3.0/modelmaker/workspace.py +313 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/projects/demo_pd_model/model.json +54 -25
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/pyproject.toml +4 -1
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0/quantology_modelmaker.egg-info}/PKG-INFO +89 -12
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/quantology_modelmaker.egg-info/SOURCES.txt +58 -1
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/quantology_modelmaker.egg-info/entry_points.txt +3 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_agent_api.py +82 -10
- quantology_modelmaker-0.3.0/tests/test_agent_build.py +1327 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_agent_foundations.py +49 -8
- quantology_modelmaker-0.3.0/tests/test_agent_hints.py +362 -0
- quantology_modelmaker-0.3.0/tests/test_agent_leakage.py +188 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_agent_loops.py +60 -11
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_api.py +47 -41
- quantology_modelmaker-0.3.0/tests/test_assistant_mcp.py +150 -0
- quantology_modelmaker-0.3.0/tests/test_block_library.py +593 -0
- quantology_modelmaker-0.3.0/tests/test_cache.py +204 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_compiler.py +29 -25
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_data_quality.py +5 -4
- quantology_modelmaker-0.3.0/tests/test_datasets.py +427 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_demo_data.py +4 -3
- quantology_modelmaker-0.3.0/tests/test_display_blocks.py +247 -0
- quantology_modelmaker-0.3.0/tests/test_embedding.py +325 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_env_vars.py +14 -15
- quantology_modelmaker-0.3.0/tests/test_execution_agent.py +487 -0
- quantology_modelmaker-0.3.0/tests/test_execution_executor.py +202 -0
- quantology_modelmaker-0.3.0/tests/test_execution_limits.py +312 -0
- quantology_modelmaker-0.3.0/tests/test_execution_security.py +257 -0
- quantology_modelmaker-0.3.0/tests/test_execution_wire.py +298 -0
- quantology_modelmaker-0.3.0/tests/test_features.py +180 -0
- quantology_modelmaker-0.3.0/tests/test_forms.py +94 -0
- quantology_modelmaker-0.3.0/tests/test_hosting_hooks.py +295 -0
- quantology_modelmaker-0.3.0/tests/test_library.py +32 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_llm.py +64 -85
- quantology_modelmaker-0.3.0/tests/test_llm_connections.py +77 -0
- quantology_modelmaker-0.3.0/tests/test_no_exec_in_api.py +416 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_prep_blocks.py +22 -4
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_project.py +3 -3
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_risk_parameter_blocks.py +98 -8
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_runner.py +60 -27
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_session.py +8 -5
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_tui_client.py +41 -0
- quantology_modelmaker-0.3.0/tests/test_workspaces.py +347 -0
- quantology_modelmaker-0.2.0/frontend/.oxlintrc.json +0 -8
- quantology_modelmaker-0.2.0/frontend/src/BuildPanel.tsx +0 -589
- quantology_modelmaker-0.2.0/frontend/src/Palette.tsx +0 -185
- quantology_modelmaker-0.2.0/frontend/src/ParamsForm.tsx +0 -491
- quantology_modelmaker-0.2.0/frontend/src/Toolbar.tsx +0 -333
- quantology_modelmaker-0.2.0/frontend/src/index.css +0 -91
- quantology_modelmaker-0.2.0/frontend/src/main.tsx +0 -10
- quantology_modelmaker-0.2.0/frontend/vite.config.ts +0 -22
- quantology_modelmaker-0.2.0/modelmaker/__init__.py +0 -2
- quantology_modelmaker-0.2.0/modelmaker/agent/catalogue.py +0 -145
- quantology_modelmaker-0.2.0/modelmaker/agent/prompts.py +0 -211
- quantology_modelmaker-0.2.0/modelmaker/agent/tools.py +0 -837
- quantology_modelmaker-0.2.0/modelmaker/blocks/base.py +0 -95
- quantology_modelmaker-0.2.0/modelmaker/blocks/library.py +0 -715
- quantology_modelmaker-0.2.0/modelmaker/cache.py +0 -44
- quantology_modelmaker-0.2.0/modelmaker/metadata_transforms.py +0 -109
- quantology_modelmaker-0.2.0/modelmaker/tui/paramspecs.py +0 -235
- quantology_modelmaker-0.2.0/modelmaker/worker_pool.py +0 -200
- quantology_modelmaker-0.2.0/tests/test_agent_build.py +0 -611
- quantology_modelmaker-0.2.0/tests/test_library.py +0 -31
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/LICENSE +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/MANIFEST.in +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/NOTICE +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/.gitignore +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/.npmrc +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/README.md +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/index.html +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/public/brand-quantology/favicon.svg +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/public/brand-quantology/icon-mark-light.svg +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/public/icons.svg +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/DataWireEdge.tsx +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/assets/hero.png +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/assets/react.svg +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/src/assets/vite.svg +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/tsconfig.app.json +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/tsconfig.json +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/frontend/tsconfig.node.json +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/agent/__init__.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/agent/layout.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/agent/mcp_server.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/blocks/__init__.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/demo_data.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/llm/redact.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/packet.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/stochastic/__init__.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/stochastic/accumulate.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/stochastic/credit.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/stochastic/dependency.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/stochastic/proxy.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/stochastic/seed.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/stochastic/var_covar.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/tui/__init__.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/tui/charts.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/tui/preview.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/modelmaker/tui/screens.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/quantology_modelmaker.egg-info/dependency_links.txt +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/quantology_modelmaker.egg-info/requires.txt +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/quantology_modelmaker.egg-info/top_level.txt +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/run.bat +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/setup.cfg +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/setup.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_binning.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_demo_project.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_feature_analysis.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_gitops.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_graph.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_input_blocks.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_master_scale.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_modelling.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_packet.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_runner_streaming.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_stat_tests.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_stochastic_blocks.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_stochastic_core.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_stochastic_credit.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_stochastic_fan_out.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_stochastic_runner.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_tui_app.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_tui_charts.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.0}/tests/test_validation_blocks.py +0 -0
{quantology_modelmaker-0.2.0/quantology_modelmaker.egg-info → quantology_modelmaker-0.3.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: quantology-modelmaker
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Visual pipeline builder for financial model development
|
|
5
5
|
Author-email: Maurits Malkus <10948172+mmalkus@users.noreply.github.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -53,8 +53,9 @@ Dynamic: license-file
|
|
|
53
53
|
# Model-Maker
|
|
54
54
|
|
|
55
55
|
A visual pipeline builder for financial model development in Python, with
|
|
56
|
-
both a web GUI and a terminal UI,
|
|
57
|
-
|
|
56
|
+
both a web GUI and a terminal UI, a block library you can extend (by hand or
|
|
57
|
+
with AI), and an embedded, pluggable AI provider that can draft and fix
|
|
58
|
+
blocks for you. Blocks contain functional Python
|
|
58
59
|
code, are wired together via Polars DataFrames carrying metadata,
|
|
59
60
|
organized visually into phase-labelled swimlanes, and compile down to a
|
|
60
61
|
single, human-readable, self-contained Python script.
|
|
@@ -63,7 +64,7 @@ See [`modelmaker-v2-plan.md`](modelmaker-v2-plan.md) for the full design.
|
|
|
63
64
|
|
|
64
65
|
The project has two parts:
|
|
65
66
|
|
|
66
|
-
- **`modelmaker/`** — the Python backend: block
|
|
67
|
+
- **`modelmaker/`** — the Python backend: block files and the block library, graph/session
|
|
67
68
|
model, execution runner, single-file compiler, pluggable AI-assisted
|
|
68
69
|
block drafting, a FastAPI HTTP API, and a Textual-based terminal UI
|
|
69
70
|
(`modelmaker-tui`, see [Terminal UI](#terminal-ui)).
|
|
@@ -103,12 +104,49 @@ it. It creates a `.venv` next to itself if missing, installs/upgrades
|
|
|
103
104
|
`quantology-modelmaker` into it, and starts `modelmaker-api` at
|
|
104
105
|
`http://127.0.0.1:8001`. Safe to re-run any time to pick up updates.
|
|
105
106
|
|
|
107
|
+
## VS Code
|
|
108
|
+
|
|
109
|
+
The extension in [`vscode/`](vscode/README.md) opens a project's
|
|
110
|
+
`model.json` as the canvas in an editor tab. It starts the same
|
|
111
|
+
`modelmaker-api` from the selected Python interpreter, one backend per
|
|
112
|
+
open project, and offers to `pip install` the package if it's missing. It
|
|
113
|
+
can also offer your GitHub Copilot models as the `copilot` AI provider.
|
|
114
|
+
The pip package works on its own exactly as described here; the extension
|
|
115
|
+
is another way to run it. See
|
|
116
|
+
[`vscode-extension-plan.md`](vscode-extension-plan.md) for the design and
|
|
117
|
+
[`docs/releasing.md`](docs/releasing.md) for how a release ships both.
|
|
118
|
+
|
|
119
|
+
Develop it with:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
pip install -e .
|
|
123
|
+
(cd frontend && npm ci && npm run build:vscode) # the canvas, into vscode/media/webview
|
|
124
|
+
cd vscode && npm ci && npm run build
|
|
125
|
+
code --extensionDevelopmentPath="$PWD" path/to/workspace
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Claude Code and other MCP clients
|
|
129
|
+
|
|
130
|
+
`modelmaker-mcp` gives an MCP client the tools to build a model on an open
|
|
131
|
+
canvas: open or create a project, find the data, add lanes and blocks,
|
|
132
|
+
wire, run, check for leakage and compile. Each edit goes into the canvas's
|
|
133
|
+
undo history and shows up on the canvas within a couple of seconds.
|
|
134
|
+
Assistants see schemas and summary statistics, never your data's rows.
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
modelmaker-api # the canvas, in a browser
|
|
138
|
+
claude mcp add modelmaker -- modelmaker-mcp --url http://127.0.0.1:8001
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Inside VS Code, the extension's **Model-Maker: Set Up Claude Code** does
|
|
142
|
+
the setup, and the tools work on the canvas you used last.
|
|
143
|
+
|
|
106
144
|
## Projects
|
|
107
145
|
|
|
108
146
|
A project is a folder, not a file: **Save**/**Load** browse for a folder
|
|
109
147
|
rather than a filename, and a folder is a project once it holds a
|
|
110
|
-
`model.json` (everything else in it -- `files/`, a `.gitignore`,
|
|
111
|
-
|
|
148
|
+
`model.json` (everything else in it -- `files/`, a `.gitignore`, the code
|
|
149
|
+
of the library blocks it uses in `blocks/` -- is the project's own working area, versioned
|
|
112
150
|
alongside it). Saving for the first time scaffolds that folder (see
|
|
113
151
|
[The demo project](#the-demo-project) for an example) and git-inits it, so
|
|
114
152
|
it's ready to commit and push right away from the **Git** panel.
|
|
@@ -181,9 +219,14 @@ A few things worth knowing beyond the canvas itself.
|
|
|
181
219
|
it started, so you can keep editing (or undo, or toggle sample mode) while
|
|
182
220
|
a long sweep executes. The run finishes against its own version; anything
|
|
183
221
|
you changed in the meantime simply shows as stale afterwards, saying so.
|
|
184
|
-
- **
|
|
185
|
-
(
|
|
186
|
-
|
|
222
|
+
- **Block library** — **Library** in the palette opens your own blocks
|
|
223
|
+
(`~/.modelmaker/blocks/`, or `MODELMAKER_BLOCK_LIBRARY`): plain `.py`
|
|
224
|
+
files, one or more blocks each. Browse, edit (a real code editor with a
|
|
225
|
+
live validity check and **Try it**), import and export them, or
|
|
226
|
+
**✦ Create with AI** from a description. Placed blocks keep their own
|
|
227
|
+
copy and offer **Update** when the library moves on. See
|
|
228
|
+
[docs/block-authoring.md](docs/block-authoring.md); `modelmaker
|
|
229
|
+
check-blocks` validates a library and runs its self-checks (for CI).
|
|
187
230
|
|
|
188
231
|
## Terminal UI
|
|
189
232
|
|
|
@@ -235,6 +278,7 @@ AI-assisted block drafting ("Draft with AI", suggest-a-fix) is pluggable:
|
|
|
235
278
|
| OpenAI API / OpenAI-compatible endpoint | `openai` | An API key (Settings, or `OPENAI_API_KEY`) and a model id. Defaults to `https://api.openai.com/v1`, but the base URL is configurable — point it at Groq, Together, OpenRouter, Fireworks, Azure OpenAI's `/openai` surface, or a self-hosted vLLM/text-generation-webui server instead |
|
|
236
279
|
| Google Gemini API | `gemini` | An API key (Settings, or `GEMINI_API_KEY` / `GOOGLE_API_KEY`) and a model id, e.g. `gemini-2.5-pro` |
|
|
237
280
|
| LM Studio (local) | `lmstudio` | LM Studio running with its local server started (Developer tab → Start Server) and a model loaded |
|
|
281
|
+
| GitHub Copilot | `copilot` | Only inside VS Code, through the [extension](#vs-code)'s relay, with Copilot signed in |
|
|
238
282
|
| Stub (no network, deterministic) | `stub` | none — used by default in tests |
|
|
239
283
|
|
|
240
284
|
The `openai` and `gemini` providers talk plain HTTPS via the standard
|
|
@@ -314,7 +358,11 @@ Guardrails are enforced by the tools, not just the prompt:
|
|
|
314
358
|
the plan listed and you approved.
|
|
315
359
|
- **Excluded means excluded.** Columns tagged `excluded` are refused as
|
|
316
360
|
features.
|
|
317
|
-
- **
|
|
361
|
+
- **Your library is part of the toolbox.** The build can use your library
|
|
362
|
+
blocks, including ones earlier builds created, alongside the built-ins.
|
|
363
|
+
When nothing fits, it writes a new block to `drafts/` in your block
|
|
364
|
+
library, where you keep or discard it.
|
|
365
|
+
- **Limits.** Tool calls, new blocks, repeated failures and wall time
|
|
318
366
|
are all capped.
|
|
319
367
|
|
|
320
368
|
Builds run on `claude_cli` (your existing Claude login, via a small MCP
|
|
@@ -335,12 +383,40 @@ reports it) or set with `MODELMAKER_LLM_CONTEXT_TOKENS`. Expect a local
|
|
|
335
383
|
build to take a while; `MODELMAKER_LLM_TIMEOUT_SECONDS` (default 900 for
|
|
336
384
|
local models) caps a single request.
|
|
337
385
|
|
|
386
|
+
Two **Settings → AI builder** switches help small models:
|
|
387
|
+
- **Small context** starts each build stage in a fresh conversation,
|
|
388
|
+
carrying only the outline, what's built and the decisions so far.
|
|
389
|
+
- **Decision hints** adds a short, rule-based recommendation (`next`) to the
|
|
390
|
+
results the build has to judge, so the model reads a recommendation
|
|
391
|
+
rather than a statistics table. For example:
|
|
392
|
+
- **Data:** empty, constant or id-like columns; exclusion rules that drop
|
|
393
|
+
a lot or nothing; failed data-quality rules; samples with too few
|
|
394
|
+
events or a different event rate.
|
|
395
|
+
- **Features:** candidates, no-signal and likely-leakage features by IV;
|
|
396
|
+
correlated pairs and high VIFs; unstable features; an immature last
|
|
397
|
+
period.
|
|
398
|
+
- **Fits:** wrong-sign (WoE) or insignificant coefficients; a fit that
|
|
399
|
+
didn't converge; the stepwise selection to use; a large calibration
|
|
400
|
+
shift; non-monotonic or thin rating grades; a short long-run history.
|
|
401
|
+
- **Validation:** Gini, KS, Hosmer-Lemeshow, LGD/CCF accuracy and bucket
|
|
402
|
+
calibration, PSI, train/test drops and the grade back-test each get a
|
|
403
|
+
verdict.
|
|
404
|
+
- **Stochastic:** a poor distribution fit; an inaccurate proxy. Departing
|
|
405
|
+
from a hint is allowed, but the model must say why with a recorded
|
|
406
|
+
deviation. The thresholds are the usual credit-risk rules of thumb, in
|
|
407
|
+
[`modelmaker/agent/hints.py`](modelmaker/agent/hints.py).
|
|
408
|
+
|
|
338
409
|
## Project structure
|
|
339
410
|
|
|
340
411
|
```
|
|
341
412
|
modelmaker/
|
|
342
413
|
api.py FastAPI app and HTTP routes
|
|
343
|
-
blocks/
|
|
414
|
+
blocks/ Built-in block files (data, modelling, stat tests, ...) and the new-block template
|
|
415
|
+
block_library.py Parses and validates block files (BLOCKS literal + functions)
|
|
416
|
+
library_store.py The user's block library folder: list, save, import/export, AI drafts
|
|
417
|
+
library_ai.py Create with AI: drafts a library block through the validator
|
|
418
|
+
sources.py Change detection for input blocks, from their form fields
|
|
419
|
+
metadata_transforms.py Column roles for every block, from its declared "meta" rules
|
|
344
420
|
llm/ Pluggable LLM providers for AI-assisted drafting
|
|
345
421
|
agent/ AI model builder: tools, guards, build lifecycle, loops, MCP bridge
|
|
346
422
|
graph.py Graph/block/wire data model
|
|
@@ -351,7 +427,8 @@ modelmaker/
|
|
|
351
427
|
packet.py DataFramePacket: the typed value flowing over wires
|
|
352
428
|
project.py Load/save project files (JSON + block source files)
|
|
353
429
|
static/ Built frontend bundle (generated, gitignored)
|
|
354
|
-
frontend/ React + Vite UI
|
|
430
|
+
frontend/ React + Vite UI (npm run build -> modelmaker/static; npm run build:vscode -> vscode/media/webview)
|
|
431
|
+
vscode/ VS Code extension: custom editor, backend manager, Copilot relay
|
|
355
432
|
tests/ Pytest suite for the backend
|
|
356
433
|
sample_data/ Example CSVs (tests also write a generated credit_risk_data.csv here, gitignored)
|
|
357
434
|
```
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# Model-Maker
|
|
2
2
|
|
|
3
3
|
A visual pipeline builder for financial model development in Python, with
|
|
4
|
-
both a web GUI and a terminal UI,
|
|
5
|
-
|
|
4
|
+
both a web GUI and a terminal UI, a block library you can extend (by hand or
|
|
5
|
+
with AI), and an embedded, pluggable AI provider that can draft and fix
|
|
6
|
+
blocks for you. Blocks contain functional Python
|
|
6
7
|
code, are wired together via Polars DataFrames carrying metadata,
|
|
7
8
|
organized visually into phase-labelled swimlanes, and compile down to a
|
|
8
9
|
single, human-readable, self-contained Python script.
|
|
@@ -11,7 +12,7 @@ See [`modelmaker-v2-plan.md`](modelmaker-v2-plan.md) for the full design.
|
|
|
11
12
|
|
|
12
13
|
The project has two parts:
|
|
13
14
|
|
|
14
|
-
- **`modelmaker/`** — the Python backend: block
|
|
15
|
+
- **`modelmaker/`** — the Python backend: block files and the block library, graph/session
|
|
15
16
|
model, execution runner, single-file compiler, pluggable AI-assisted
|
|
16
17
|
block drafting, a FastAPI HTTP API, and a Textual-based terminal UI
|
|
17
18
|
(`modelmaker-tui`, see [Terminal UI](#terminal-ui)).
|
|
@@ -51,12 +52,49 @@ it. It creates a `.venv` next to itself if missing, installs/upgrades
|
|
|
51
52
|
`quantology-modelmaker` into it, and starts `modelmaker-api` at
|
|
52
53
|
`http://127.0.0.1:8001`. Safe to re-run any time to pick up updates.
|
|
53
54
|
|
|
55
|
+
## VS Code
|
|
56
|
+
|
|
57
|
+
The extension in [`vscode/`](vscode/README.md) opens a project's
|
|
58
|
+
`model.json` as the canvas in an editor tab. It starts the same
|
|
59
|
+
`modelmaker-api` from the selected Python interpreter, one backend per
|
|
60
|
+
open project, and offers to `pip install` the package if it's missing. It
|
|
61
|
+
can also offer your GitHub Copilot models as the `copilot` AI provider.
|
|
62
|
+
The pip package works on its own exactly as described here; the extension
|
|
63
|
+
is another way to run it. See
|
|
64
|
+
[`vscode-extension-plan.md`](vscode-extension-plan.md) for the design and
|
|
65
|
+
[`docs/releasing.md`](docs/releasing.md) for how a release ships both.
|
|
66
|
+
|
|
67
|
+
Develop it with:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
pip install -e .
|
|
71
|
+
(cd frontend && npm ci && npm run build:vscode) # the canvas, into vscode/media/webview
|
|
72
|
+
cd vscode && npm ci && npm run build
|
|
73
|
+
code --extensionDevelopmentPath="$PWD" path/to/workspace
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Claude Code and other MCP clients
|
|
77
|
+
|
|
78
|
+
`modelmaker-mcp` gives an MCP client the tools to build a model on an open
|
|
79
|
+
canvas: open or create a project, find the data, add lanes and blocks,
|
|
80
|
+
wire, run, check for leakage and compile. Each edit goes into the canvas's
|
|
81
|
+
undo history and shows up on the canvas within a couple of seconds.
|
|
82
|
+
Assistants see schemas and summary statistics, never your data's rows.
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
modelmaker-api # the canvas, in a browser
|
|
86
|
+
claude mcp add modelmaker -- modelmaker-mcp --url http://127.0.0.1:8001
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Inside VS Code, the extension's **Model-Maker: Set Up Claude Code** does
|
|
90
|
+
the setup, and the tools work on the canvas you used last.
|
|
91
|
+
|
|
54
92
|
## Projects
|
|
55
93
|
|
|
56
94
|
A project is a folder, not a file: **Save**/**Load** browse for a folder
|
|
57
95
|
rather than a filename, and a folder is a project once it holds a
|
|
58
|
-
`model.json` (everything else in it -- `files/`, a `.gitignore`,
|
|
59
|
-
|
|
96
|
+
`model.json` (everything else in it -- `files/`, a `.gitignore`, the code
|
|
97
|
+
of the library blocks it uses in `blocks/` -- is the project's own working area, versioned
|
|
60
98
|
alongside it). Saving for the first time scaffolds that folder (see
|
|
61
99
|
[The demo project](#the-demo-project) for an example) and git-inits it, so
|
|
62
100
|
it's ready to commit and push right away from the **Git** panel.
|
|
@@ -129,9 +167,14 @@ A few things worth knowing beyond the canvas itself.
|
|
|
129
167
|
it started, so you can keep editing (or undo, or toggle sample mode) while
|
|
130
168
|
a long sweep executes. The run finishes against its own version; anything
|
|
131
169
|
you changed in the meantime simply shows as stale afterwards, saying so.
|
|
132
|
-
- **
|
|
133
|
-
(
|
|
134
|
-
|
|
170
|
+
- **Block library** — **Library** in the palette opens your own blocks
|
|
171
|
+
(`~/.modelmaker/blocks/`, or `MODELMAKER_BLOCK_LIBRARY`): plain `.py`
|
|
172
|
+
files, one or more blocks each. Browse, edit (a real code editor with a
|
|
173
|
+
live validity check and **Try it**), import and export them, or
|
|
174
|
+
**✦ Create with AI** from a description. Placed blocks keep their own
|
|
175
|
+
copy and offer **Update** when the library moves on. See
|
|
176
|
+
[docs/block-authoring.md](docs/block-authoring.md); `modelmaker
|
|
177
|
+
check-blocks` validates a library and runs its self-checks (for CI).
|
|
135
178
|
|
|
136
179
|
## Terminal UI
|
|
137
180
|
|
|
@@ -183,6 +226,7 @@ AI-assisted block drafting ("Draft with AI", suggest-a-fix) is pluggable:
|
|
|
183
226
|
| OpenAI API / OpenAI-compatible endpoint | `openai` | An API key (Settings, or `OPENAI_API_KEY`) and a model id. Defaults to `https://api.openai.com/v1`, but the base URL is configurable — point it at Groq, Together, OpenRouter, Fireworks, Azure OpenAI's `/openai` surface, or a self-hosted vLLM/text-generation-webui server instead |
|
|
184
227
|
| Google Gemini API | `gemini` | An API key (Settings, or `GEMINI_API_KEY` / `GOOGLE_API_KEY`) and a model id, e.g. `gemini-2.5-pro` |
|
|
185
228
|
| LM Studio (local) | `lmstudio` | LM Studio running with its local server started (Developer tab → Start Server) and a model loaded |
|
|
229
|
+
| GitHub Copilot | `copilot` | Only inside VS Code, through the [extension](#vs-code)'s relay, with Copilot signed in |
|
|
186
230
|
| Stub (no network, deterministic) | `stub` | none — used by default in tests |
|
|
187
231
|
|
|
188
232
|
The `openai` and `gemini` providers talk plain HTTPS via the standard
|
|
@@ -262,7 +306,11 @@ Guardrails are enforced by the tools, not just the prompt:
|
|
|
262
306
|
the plan listed and you approved.
|
|
263
307
|
- **Excluded means excluded.** Columns tagged `excluded` are refused as
|
|
264
308
|
features.
|
|
265
|
-
- **
|
|
309
|
+
- **Your library is part of the toolbox.** The build can use your library
|
|
310
|
+
blocks, including ones earlier builds created, alongside the built-ins.
|
|
311
|
+
When nothing fits, it writes a new block to `drafts/` in your block
|
|
312
|
+
library, where you keep or discard it.
|
|
313
|
+
- **Limits.** Tool calls, new blocks, repeated failures and wall time
|
|
266
314
|
are all capped.
|
|
267
315
|
|
|
268
316
|
Builds run on `claude_cli` (your existing Claude login, via a small MCP
|
|
@@ -283,12 +331,40 @@ reports it) or set with `MODELMAKER_LLM_CONTEXT_TOKENS`. Expect a local
|
|
|
283
331
|
build to take a while; `MODELMAKER_LLM_TIMEOUT_SECONDS` (default 900 for
|
|
284
332
|
local models) caps a single request.
|
|
285
333
|
|
|
334
|
+
Two **Settings → AI builder** switches help small models:
|
|
335
|
+
- **Small context** starts each build stage in a fresh conversation,
|
|
336
|
+
carrying only the outline, what's built and the decisions so far.
|
|
337
|
+
- **Decision hints** adds a short, rule-based recommendation (`next`) to the
|
|
338
|
+
results the build has to judge, so the model reads a recommendation
|
|
339
|
+
rather than a statistics table. For example:
|
|
340
|
+
- **Data:** empty, constant or id-like columns; exclusion rules that drop
|
|
341
|
+
a lot or nothing; failed data-quality rules; samples with too few
|
|
342
|
+
events or a different event rate.
|
|
343
|
+
- **Features:** candidates, no-signal and likely-leakage features by IV;
|
|
344
|
+
correlated pairs and high VIFs; unstable features; an immature last
|
|
345
|
+
period.
|
|
346
|
+
- **Fits:** wrong-sign (WoE) or insignificant coefficients; a fit that
|
|
347
|
+
didn't converge; the stepwise selection to use; a large calibration
|
|
348
|
+
shift; non-monotonic or thin rating grades; a short long-run history.
|
|
349
|
+
- **Validation:** Gini, KS, Hosmer-Lemeshow, LGD/CCF accuracy and bucket
|
|
350
|
+
calibration, PSI, train/test drops and the grade back-test each get a
|
|
351
|
+
verdict.
|
|
352
|
+
- **Stochastic:** a poor distribution fit; an inaccurate proxy. Departing
|
|
353
|
+
from a hint is allowed, but the model must say why with a recorded
|
|
354
|
+
deviation. The thresholds are the usual credit-risk rules of thumb, in
|
|
355
|
+
[`modelmaker/agent/hints.py`](modelmaker/agent/hints.py).
|
|
356
|
+
|
|
286
357
|
## Project structure
|
|
287
358
|
|
|
288
359
|
```
|
|
289
360
|
modelmaker/
|
|
290
361
|
api.py FastAPI app and HTTP routes
|
|
291
|
-
blocks/
|
|
362
|
+
blocks/ Built-in block files (data, modelling, stat tests, ...) and the new-block template
|
|
363
|
+
block_library.py Parses and validates block files (BLOCKS literal + functions)
|
|
364
|
+
library_store.py The user's block library folder: list, save, import/export, AI drafts
|
|
365
|
+
library_ai.py Create with AI: drafts a library block through the validator
|
|
366
|
+
sources.py Change detection for input blocks, from their form fields
|
|
367
|
+
metadata_transforms.py Column roles for every block, from its declared "meta" rules
|
|
292
368
|
llm/ Pluggable LLM providers for AI-assisted drafting
|
|
293
369
|
agent/ AI model builder: tools, guards, build lifecycle, loops, MCP bridge
|
|
294
370
|
graph.py Graph/block/wire data model
|
|
@@ -299,7 +375,8 @@ modelmaker/
|
|
|
299
375
|
packet.py DataFramePacket: the typed value flowing over wires
|
|
300
376
|
project.py Load/save project files (JSON + block source files)
|
|
301
377
|
static/ Built frontend bundle (generated, gitignored)
|
|
302
|
-
frontend/ React + Vite UI
|
|
378
|
+
frontend/ React + Vite UI (npm run build -> modelmaker/static; npm run build:vscode -> vscode/media/webview)
|
|
379
|
+
vscode/ VS Code extension: custom editor, backend manager, Copilot relay
|
|
303
380
|
tests/ Pytest suite for the backend
|
|
304
381
|
sample_data/ Example CSVs (tests also write a generated credit_risk_data.csv here, gitignored)
|
|
305
382
|
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
+
"plugins": [
|
|
4
|
+
"react",
|
|
5
|
+
"typescript",
|
|
6
|
+
"oxc"
|
|
7
|
+
],
|
|
8
|
+
"rules": {
|
|
9
|
+
"react/rules-of-hooks": "error",
|
|
10
|
+
"react/only-export-components": [
|
|
11
|
+
"warn",
|
|
12
|
+
{
|
|
13
|
+
"allowConstantExport": true
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"no-restricted-globals": [
|
|
17
|
+
"error",
|
|
18
|
+
{
|
|
19
|
+
"name": "alert",
|
|
20
|
+
"message": "Use host.notify() -- VS Code webviews block alert()."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "confirm",
|
|
24
|
+
"message": "Use await host.confirm() -- VS Code webviews block confirm()."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "prompt",
|
|
28
|
+
"message": "Use await host.prompt() -- VS Code webviews block prompt()."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "localStorage",
|
|
32
|
+
"message": "Use host.getState()/setState()."
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -10,8 +10,10 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@codemirror/commands": "^6.11.0",
|
|
12
12
|
"@codemirror/lang-python": "^6.2.1",
|
|
13
|
+
"@codemirror/language": "^6.13.1",
|
|
13
14
|
"@codemirror/state": "^6.7.4",
|
|
14
15
|
"@codemirror/view": "^6.43.11",
|
|
16
|
+
"@lezer/highlight": "^1.2.5",
|
|
15
17
|
"@xyflow/react": "^12.11.6",
|
|
16
18
|
"codemirror": "^6.0.2",
|
|
17
19
|
"react": "^19.2.8",
|
|
@@ -65,12 +67,13 @@
|
|
|
65
67
|
}
|
|
66
68
|
},
|
|
67
69
|
"node_modules/@codemirror/language": {
|
|
68
|
-
"version": "6.
|
|
69
|
-
"resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.
|
|
70
|
-
"integrity": "sha512-
|
|
70
|
+
"version": "6.13.1",
|
|
71
|
+
"resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.13.1.tgz",
|
|
72
|
+
"integrity": "sha512-zfvU2r3TyylQLMj/te+5CnQ0rSqZi8B1oTCBbQkagcLW4Xc6imab6qN+pEJhsuNOLaJqiRyBXp9UhWA1DhVvDw==",
|
|
71
73
|
"license": "MIT",
|
|
72
74
|
"dependencies": {
|
|
73
75
|
"@codemirror/state": "^6.0.0",
|
|
76
|
+
"@codemirror/streamparser": "^6.0.0",
|
|
74
77
|
"@codemirror/view": "^6.23.0",
|
|
75
78
|
"@lezer/common": "^1.5.0",
|
|
76
79
|
"@lezer/highlight": "^1.0.0",
|
|
@@ -109,6 +112,12 @@
|
|
|
109
112
|
"@marijn/find-cluster-break": "^1.0.0"
|
|
110
113
|
}
|
|
111
114
|
},
|
|
115
|
+
"node_modules/@codemirror/streamparser": {
|
|
116
|
+
"version": "6.0.0",
|
|
117
|
+
"resolved": "https://registry.npmjs.org/@codemirror/streamparser/-/streamparser-6.0.0.tgz",
|
|
118
|
+
"integrity": "sha512-JTFPF6xrfjt0mnfGPgzcLiMwYmvIyNaoizp8BYzv8FE8KrT6GBGDZ190rtt+O7Wke3gG/MFHyiY9YGNeimof4w==",
|
|
119
|
+
"license": "MIT"
|
|
120
|
+
},
|
|
112
121
|
"node_modules/@codemirror/view": {
|
|
113
122
|
"version": "6.43.11",
|
|
114
123
|
"resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.43.11.tgz",
|
|
@@ -128,9 +137,9 @@
|
|
|
128
137
|
"license": "MIT"
|
|
129
138
|
},
|
|
130
139
|
"node_modules/@lezer/highlight": {
|
|
131
|
-
"version": "1.2.
|
|
132
|
-
"resolved": "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.2.
|
|
133
|
-
"integrity": "sha512-
|
|
140
|
+
"version": "1.2.5",
|
|
141
|
+
"resolved": "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.2.5.tgz",
|
|
142
|
+
"integrity": "sha512-O1GMVKgtf5YspFaRzpmqkVgMtIk2HG9uMAbH6wdAIdNh3TVzCsch/+cRi+6l2//UGDKe6NB9BW3cvuR5ezMQ0w==",
|
|
134
143
|
"license": "MIT",
|
|
135
144
|
"dependencies": {
|
|
136
145
|
"@lezer/common": "^1.3.0"
|
|
@@ -6,14 +6,17 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
8
8
|
"build": "tsc -b && vite build",
|
|
9
|
-
"lint": "oxlint",
|
|
10
|
-
"preview": "vite preview"
|
|
9
|
+
"lint": "oxlint && node scripts/check-host.mjs",
|
|
10
|
+
"preview": "vite preview",
|
|
11
|
+
"build:vscode": "tsc -b && vite build --mode vscode"
|
|
11
12
|
},
|
|
12
13
|
"dependencies": {
|
|
13
14
|
"@codemirror/commands": "^6.11.0",
|
|
14
15
|
"@codemirror/lang-python": "^6.2.1",
|
|
16
|
+
"@codemirror/language": "^6.13.1",
|
|
15
17
|
"@codemirror/state": "^6.7.4",
|
|
16
18
|
"@codemirror/view": "^6.43.11",
|
|
19
|
+
"@lezer/highlight": "^1.2.5",
|
|
17
20
|
"@xyflow/react": "^12.11.6",
|
|
18
21
|
"codemirror": "^6.0.2",
|
|
19
22
|
"react": "^19.2.8",
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Guards the host abstraction (src/host.ts): API URLs are built only in
|
|
2
|
+
// api.ts (with host.apiBase), and browser-only calls go through host.ts.
|
|
3
|
+
// oxlint's no-restricted-globals catches bare alert/confirm/prompt; this
|
|
4
|
+
// catches the window.-qualified forms and raw '/api' URLs it can't.
|
|
5
|
+
import { readdirSync, readFileSync } from 'node:fs'
|
|
6
|
+
import { join } from 'node:path'
|
|
7
|
+
|
|
8
|
+
const SRC = new URL('../src/', import.meta.url).pathname
|
|
9
|
+
const rules = [
|
|
10
|
+
{ re: /['"`]\/api[/'"`]/, allow: ['api.ts'], why: "build API URLs in api.ts (they need host.apiBase)" },
|
|
11
|
+
{ re: /window\.(alert|confirm|prompt)\(|\blocalStorage\b|\.download\s*=/, allow: ['host.ts'], why: 'use host.* (VS Code webviews block it)' },
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
const failures = []
|
|
15
|
+
for (const name of readdirSync(SRC)) {
|
|
16
|
+
if (!/\.(ts|tsx)$/.test(name)) continue
|
|
17
|
+
readFileSync(join(SRC, name), 'utf8')
|
|
18
|
+
.split('\n')
|
|
19
|
+
.forEach((line, i) => {
|
|
20
|
+
if (line.trim().startsWith('//')) return
|
|
21
|
+
for (const { re, allow, why } of rules) {
|
|
22
|
+
if (re.test(line) && !allow.includes(name)) failures.push(`src/${name}:${i + 1}: ${why}\n ${line.trim()}`)
|
|
23
|
+
}
|
|
24
|
+
})
|
|
25
|
+
}
|
|
26
|
+
if (failures.length) {
|
|
27
|
+
console.error(failures.join('\n'))
|
|
28
|
+
process.exit(1)
|
|
29
|
+
}
|