quantology-modelmaker 0.2.0__tar.gz → 0.3.2__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.2}/PKG-INFO +94 -12
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/README.md +93 -11
- quantology_modelmaker-0.3.2/frontend/.oxlintrc.json +36 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/package-lock.json +15 -6
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/package.json +5 -2
- quantology_modelmaker-0.3.2/frontend/scripts/check-host.mjs +29 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/App.tsx +240 -102
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/BlockNode.tsx +56 -24
- quantology_modelmaker-0.3.2/frontend/src/BuildPanel.tsx +868 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/BuildReport.tsx +20 -22
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/CodeEditor.tsx +42 -3
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/DataModal.tsx +19 -17
- quantology_modelmaker-0.3.2/frontend/src/DataPicker.tsx +62 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/EnvVarField.tsx +2 -2
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/FileBrowser.tsx +9 -9
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/GhostNode.tsx +7 -7
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/GitPanel.tsx +19 -13
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/Inspector.tsx +145 -162
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/LaneBand.tsx +2 -2
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/LaneLabels.tsx +3 -3
- quantology_modelmaker-0.3.2/frontend/src/LibraryPanel.tsx +1232 -0
- quantology_modelmaker-0.3.2/frontend/src/NodeDisplay.tsx +169 -0
- quantology_modelmaker-0.3.2/frontend/src/Palette.tsx +320 -0
- quantology_modelmaker-0.3.2/frontend/src/ParamsForm.tsx +233 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/PortDataView.tsx +23 -17
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/PortInspector.tsx +5 -4
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/SettingsPanel.tsx +49 -15
- quantology_modelmaker-0.3.2/frontend/src/Toolbar.tsx +447 -0
- quantology_modelmaker-0.3.2/frontend/src/UpdateDialog.tsx +87 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/api.ts +92 -13
- quantology_modelmaker-0.3.2/frontend/src/features.ts +42 -0
- quantology_modelmaker-0.3.2/frontend/src/host.ts +185 -0
- quantology_modelmaker-0.3.2/frontend/src/index.css +269 -0
- quantology_modelmaker-0.3.2/frontend/src/main.tsx +15 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/roles.ts +3 -12
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/types.ts +299 -13
- quantology_modelmaker-0.3.2/frontend/vite.config.ts +49 -0
- quantology_modelmaker-0.3.2/modelmaker/__init__.py +5 -0
- quantology_modelmaker-0.3.2/modelmaker/__main__.py +3 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/agent/build.py +221 -21
- quantology_modelmaker-0.3.2/modelmaker/agent/catalogue.py +295 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/agent/controller.py +221 -12
- quantology_modelmaker-0.3.2/modelmaker/agent/hint_rules.py +528 -0
- quantology_modelmaker-0.3.2/modelmaker/agent/hints.py +152 -0
- quantology_modelmaker-0.3.2/modelmaker/agent/leakage.py +191 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/agent/loop.py +88 -12
- quantology_modelmaker-0.3.2/modelmaker/agent/prompts.py +534 -0
- quantology_modelmaker-0.3.2/modelmaker/agent/tools.py +1465 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/api.py +941 -365
- quantology_modelmaker-0.3.2/modelmaker/assistant_api.py +279 -0
- quantology_modelmaker-0.3.2/modelmaker/assistant_mcp.py +644 -0
- quantology_modelmaker-0.3.2/modelmaker/block_library.py +613 -0
- quantology_modelmaker-0.3.2/modelmaker/blocks/_template.py +77 -0
- quantology_modelmaker-0.3.2/modelmaker/blocks/base.py +235 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/blocks/binning.py +59 -66
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/blocks/data_quality.py +44 -81
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/blocks/feature_analysis.py +79 -72
- quantology_modelmaker-0.3.2/modelmaker/blocks/library.py +805 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/blocks/modelling.py +497 -333
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/blocks/stat_tests.py +189 -143
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/blocks/stochastic.py +297 -282
- quantology_modelmaker-0.3.2/modelmaker/cache.py +283 -0
- quantology_modelmaker-0.3.2/modelmaker/capabilities.py +145 -0
- quantology_modelmaker-0.3.2/modelmaker/cli.py +84 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/compiler.py +120 -53
- quantology_modelmaker-0.3.2/modelmaker/datasets.py +158 -0
- quantology_modelmaker-0.3.2/modelmaker/execution/__init__.py +48 -0
- quantology_modelmaker-0.3.2/modelmaker/execution/agent.py +374 -0
- quantology_modelmaker-0.3.2/modelmaker/execution/base.py +107 -0
- quantology_modelmaker-0.3.2/modelmaker/execution/env.py +165 -0
- quantology_modelmaker-0.3.2/modelmaker/execution/limits.py +340 -0
- quantology_modelmaker-0.3.2/modelmaker/execution/local.py +251 -0
- quantology_modelmaker-0.3.2/modelmaker/execution/protocol.py +156 -0
- quantology_modelmaker-0.3.2/modelmaker/execution/remote.py +562 -0
- quantology_modelmaker-0.3.2/modelmaker/execution/safe_pickle.py +121 -0
- quantology_modelmaker-0.3.2/modelmaker/execution/wire.py +505 -0
- quantology_modelmaker-0.3.2/modelmaker/features.py +123 -0
- quantology_modelmaker-0.3.2/modelmaker/forms.py +124 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/gitops.py +22 -2
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/graph.py +17 -34
- quantology_modelmaker-0.3.2/modelmaker/library_ai.py +166 -0
- quantology_modelmaker-0.3.2/modelmaker/library_api.py +557 -0
- quantology_modelmaker-0.3.2/modelmaker/library_store.py +579 -0
- quantology_modelmaker-0.3.2/modelmaker/library_updates.py +173 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/llm/__init__.py +2 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/llm/anthropic_provider.py +13 -27
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/llm/base.py +16 -9
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/llm/claude_cli_provider.py +21 -21
- quantology_modelmaker-0.3.2/modelmaker/llm/copilot_provider.py +67 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/llm/gemini_provider.py +2 -5
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/llm/lmstudio_provider.py +2 -5
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/llm/openai_provider.py +2 -5
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/llm/prompts.py +76 -62
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/llm/settings.py +11 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/llm/stub_provider.py +21 -2
- quantology_modelmaker-0.3.2/modelmaker/metadata_transforms.py +114 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/project.py +63 -35
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/run_worker.py +110 -53
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/runner.py +385 -181
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/runslot.py +4 -1
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/session.py +166 -44
- quantology_modelmaker-0.3.2/modelmaker/signature.py +254 -0
- quantology_modelmaker-0.3.2/modelmaker/sources.py +80 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/stochastic/distributions.py +2 -2
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/tui/app.py +1 -8
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/tui/canvas.py +2 -2
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/tui/client.py +19 -20
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/tui/inspector.py +40 -26
- quantology_modelmaker-0.3.2/modelmaker/tui/paramspecs.py +61 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/util.py +13 -4
- quantology_modelmaker-0.3.2/modelmaker/worker_pool.py +497 -0
- quantology_modelmaker-0.3.2/modelmaker/workspace.py +313 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/projects/demo_pd_model/model.json +54 -25
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/pyproject.toml +4 -1
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2/quantology_modelmaker.egg-info}/PKG-INFO +94 -12
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/quantology_modelmaker.egg-info/SOURCES.txt +58 -1
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/quantology_modelmaker.egg-info/entry_points.txt +3 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_agent_api.py +82 -10
- quantology_modelmaker-0.3.2/tests/test_agent_build.py +1327 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_agent_foundations.py +49 -8
- quantology_modelmaker-0.3.2/tests/test_agent_hints.py +362 -0
- quantology_modelmaker-0.3.2/tests/test_agent_leakage.py +188 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_agent_loops.py +60 -11
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_api.py +47 -41
- quantology_modelmaker-0.3.2/tests/test_assistant_mcp.py +150 -0
- quantology_modelmaker-0.3.2/tests/test_block_library.py +593 -0
- quantology_modelmaker-0.3.2/tests/test_cache.py +204 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_compiler.py +29 -25
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_data_quality.py +5 -4
- quantology_modelmaker-0.3.2/tests/test_datasets.py +427 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_demo_data.py +4 -3
- quantology_modelmaker-0.3.2/tests/test_display_blocks.py +247 -0
- quantology_modelmaker-0.3.2/tests/test_embedding.py +325 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_env_vars.py +14 -15
- quantology_modelmaker-0.3.2/tests/test_execution_agent.py +487 -0
- quantology_modelmaker-0.3.2/tests/test_execution_executor.py +202 -0
- quantology_modelmaker-0.3.2/tests/test_execution_limits.py +312 -0
- quantology_modelmaker-0.3.2/tests/test_execution_security.py +257 -0
- quantology_modelmaker-0.3.2/tests/test_execution_wire.py +298 -0
- quantology_modelmaker-0.3.2/tests/test_features.py +180 -0
- quantology_modelmaker-0.3.2/tests/test_forms.py +94 -0
- quantology_modelmaker-0.3.2/tests/test_hosting_hooks.py +295 -0
- quantology_modelmaker-0.3.2/tests/test_library.py +32 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_llm.py +64 -85
- quantology_modelmaker-0.3.2/tests/test_llm_connections.py +77 -0
- quantology_modelmaker-0.3.2/tests/test_no_exec_in_api.py +416 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_prep_blocks.py +22 -4
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_project.py +3 -3
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_risk_parameter_blocks.py +98 -8
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_runner.py +86 -30
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_session.py +8 -5
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_tui_client.py +41 -0
- quantology_modelmaker-0.3.2/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.2}/LICENSE +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/MANIFEST.in +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/NOTICE +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/.gitignore +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/.npmrc +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/README.md +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/index.html +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/public/brand-quantology/favicon.svg +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/public/brand-quantology/icon-mark-light.svg +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/public/icons.svg +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/DataWireEdge.tsx +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/assets/hero.png +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/assets/react.svg +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/src/assets/vite.svg +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/tsconfig.app.json +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/tsconfig.json +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/frontend/tsconfig.node.json +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/agent/__init__.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/agent/layout.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/agent/mcp_server.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/blocks/__init__.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/demo_data.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/llm/redact.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/packet.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/stochastic/__init__.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/stochastic/accumulate.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/stochastic/credit.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/stochastic/dependency.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/stochastic/proxy.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/stochastic/seed.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/stochastic/var_covar.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/tui/__init__.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/tui/charts.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/tui/preview.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/modelmaker/tui/screens.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/quantology_modelmaker.egg-info/dependency_links.txt +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/quantology_modelmaker.egg-info/requires.txt +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/quantology_modelmaker.egg-info/top_level.txt +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/run.bat +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/setup.cfg +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/setup.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_binning.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_demo_project.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_feature_analysis.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_gitops.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_graph.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_input_blocks.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_master_scale.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_modelling.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_packet.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_runner_streaming.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_stat_tests.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_stochastic_blocks.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_stochastic_core.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_stochastic_credit.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_stochastic_fan_out.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_stochastic_runner.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_tui_app.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_tui_charts.py +0 -0
- {quantology_modelmaker-0.2.0 → quantology_modelmaker-0.3.2}/tests/test_validation_blocks.py +0 -0
{quantology_modelmaker-0.2.0/quantology_modelmaker.egg-info → quantology_modelmaker-0.3.2}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: quantology-modelmaker
|
|
3
|
-
Version: 0.2
|
|
3
|
+
Version: 0.3.2
|
|
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,54 @@ 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, one backend per open project.
|
|
111
|
+
Model-Maker ships inside the extension, which runs it in a Python
|
|
112
|
+
environment of its own: all it needs is Python 3.11+ and access to PyPI or
|
|
113
|
+
a company mirror for the open-source requirements. It can also offer your
|
|
114
|
+
GitHub Copilot models as the `copilot` AI provider.
|
|
115
|
+
The pip package works on its own exactly as described here; the extension
|
|
116
|
+
is another way to run it. See
|
|
117
|
+
[`vscode-extension-plan.md`](vscode-extension-plan.md) for the design and
|
|
118
|
+
[`docs/releasing.md`](docs/releasing.md) for how a release ships both.
|
|
119
|
+
|
|
120
|
+
Develop it with:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
pip install -e .
|
|
124
|
+
(cd frontend && npm ci && npm run build:vscode) # the canvas, into vscode/media/webview
|
|
125
|
+
cd vscode && npm ci && npm run build
|
|
126
|
+
code --extensionDevelopmentPath="$PWD" path/to/workspace
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
A development build has no bundled Model-Maker and runs the installed
|
|
130
|
+
package (`pip install -e .` above). To try the bundled one, run
|
|
131
|
+
`pip install build && python scripts/bundle-python.py` in `vscode/`.
|
|
132
|
+
|
|
133
|
+
## Claude Code and other MCP clients
|
|
134
|
+
|
|
135
|
+
`modelmaker-mcp` gives an MCP client the tools to build a model on an open
|
|
136
|
+
canvas: open or create a project, find the data, add lanes and blocks,
|
|
137
|
+
wire, run, check for leakage and compile. Each edit goes into the canvas's
|
|
138
|
+
undo history and shows up on the canvas within a couple of seconds.
|
|
139
|
+
Assistants see schemas and summary statistics, never your data's rows.
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
modelmaker-api # the canvas, in a browser
|
|
143
|
+
claude mcp add modelmaker -- modelmaker-mcp --url http://127.0.0.1:8001
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Inside VS Code, the extension's **Model-Maker: Set Up Claude Code** does
|
|
147
|
+
the setup, and the tools work on the canvas you used last.
|
|
148
|
+
|
|
106
149
|
## Projects
|
|
107
150
|
|
|
108
151
|
A project is a folder, not a file: **Save**/**Load** browse for a folder
|
|
109
152
|
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
|
-
|
|
153
|
+
`model.json` (everything else in it -- `files/`, a `.gitignore`, the code
|
|
154
|
+
of the library blocks it uses in `blocks/` -- is the project's own working area, versioned
|
|
112
155
|
alongside it). Saving for the first time scaffolds that folder (see
|
|
113
156
|
[The demo project](#the-demo-project) for an example) and git-inits it, so
|
|
114
157
|
it's ready to commit and push right away from the **Git** panel.
|
|
@@ -181,9 +224,14 @@ A few things worth knowing beyond the canvas itself.
|
|
|
181
224
|
it started, so you can keep editing (or undo, or toggle sample mode) while
|
|
182
225
|
a long sweep executes. The run finishes against its own version; anything
|
|
183
226
|
you changed in the meantime simply shows as stale afterwards, saying so.
|
|
184
|
-
- **
|
|
185
|
-
(
|
|
186
|
-
|
|
227
|
+
- **Block library** — **Library** in the palette opens your own blocks
|
|
228
|
+
(`~/.modelmaker/blocks/`, or `MODELMAKER_BLOCK_LIBRARY`): plain `.py`
|
|
229
|
+
files, one or more blocks each. Browse, edit (a real code editor with a
|
|
230
|
+
live validity check and **Try it**), import and export them, or
|
|
231
|
+
**✦ Create with AI** from a description. Placed blocks keep their own
|
|
232
|
+
copy and offer **Update** when the library moves on. See
|
|
233
|
+
[docs/block-authoring.md](docs/block-authoring.md); `modelmaker
|
|
234
|
+
check-blocks` validates a library and runs its self-checks (for CI).
|
|
187
235
|
|
|
188
236
|
## Terminal UI
|
|
189
237
|
|
|
@@ -235,6 +283,7 @@ AI-assisted block drafting ("Draft with AI", suggest-a-fix) is pluggable:
|
|
|
235
283
|
| 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
284
|
| 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
285
|
| LM Studio (local) | `lmstudio` | LM Studio running with its local server started (Developer tab → Start Server) and a model loaded |
|
|
286
|
+
| GitHub Copilot | `copilot` | Only inside VS Code, through the [extension](#vs-code)'s relay, with Copilot signed in |
|
|
238
287
|
| Stub (no network, deterministic) | `stub` | none — used by default in tests |
|
|
239
288
|
|
|
240
289
|
The `openai` and `gemini` providers talk plain HTTPS via the standard
|
|
@@ -314,7 +363,11 @@ Guardrails are enforced by the tools, not just the prompt:
|
|
|
314
363
|
the plan listed and you approved.
|
|
315
364
|
- **Excluded means excluded.** Columns tagged `excluded` are refused as
|
|
316
365
|
features.
|
|
317
|
-
- **
|
|
366
|
+
- **Your library is part of the toolbox.** The build can use your library
|
|
367
|
+
blocks, including ones earlier builds created, alongside the built-ins.
|
|
368
|
+
When nothing fits, it writes a new block to `drafts/` in your block
|
|
369
|
+
library, where you keep or discard it.
|
|
370
|
+
- **Limits.** Tool calls, new blocks, repeated failures and wall time
|
|
318
371
|
are all capped.
|
|
319
372
|
|
|
320
373
|
Builds run on `claude_cli` (your existing Claude login, via a small MCP
|
|
@@ -335,12 +388,40 @@ reports it) or set with `MODELMAKER_LLM_CONTEXT_TOKENS`. Expect a local
|
|
|
335
388
|
build to take a while; `MODELMAKER_LLM_TIMEOUT_SECONDS` (default 900 for
|
|
336
389
|
local models) caps a single request.
|
|
337
390
|
|
|
391
|
+
Two **Settings → AI builder** switches help small models:
|
|
392
|
+
- **Small context** starts each build stage in a fresh conversation,
|
|
393
|
+
carrying only the outline, what's built and the decisions so far.
|
|
394
|
+
- **Decision hints** adds a short, rule-based recommendation (`next`) to the
|
|
395
|
+
results the build has to judge, so the model reads a recommendation
|
|
396
|
+
rather than a statistics table. For example:
|
|
397
|
+
- **Data:** empty, constant or id-like columns; exclusion rules that drop
|
|
398
|
+
a lot or nothing; failed data-quality rules; samples with too few
|
|
399
|
+
events or a different event rate.
|
|
400
|
+
- **Features:** candidates, no-signal and likely-leakage features by IV;
|
|
401
|
+
correlated pairs and high VIFs; unstable features; an immature last
|
|
402
|
+
period.
|
|
403
|
+
- **Fits:** wrong-sign (WoE) or insignificant coefficients; a fit that
|
|
404
|
+
didn't converge; the stepwise selection to use; a large calibration
|
|
405
|
+
shift; non-monotonic or thin rating grades; a short long-run history.
|
|
406
|
+
- **Validation:** Gini, KS, Hosmer-Lemeshow, LGD/CCF accuracy and bucket
|
|
407
|
+
calibration, PSI, train/test drops and the grade back-test each get a
|
|
408
|
+
verdict.
|
|
409
|
+
- **Stochastic:** a poor distribution fit; an inaccurate proxy. Departing
|
|
410
|
+
from a hint is allowed, but the model must say why with a recorded
|
|
411
|
+
deviation. The thresholds are the usual credit-risk rules of thumb, in
|
|
412
|
+
[`modelmaker/agent/hints.py`](modelmaker/agent/hints.py).
|
|
413
|
+
|
|
338
414
|
## Project structure
|
|
339
415
|
|
|
340
416
|
```
|
|
341
417
|
modelmaker/
|
|
342
418
|
api.py FastAPI app and HTTP routes
|
|
343
|
-
blocks/
|
|
419
|
+
blocks/ Built-in block files (data, modelling, stat tests, ...) and the new-block template
|
|
420
|
+
block_library.py Parses and validates block files (BLOCKS literal + functions)
|
|
421
|
+
library_store.py The user's block library folder: list, save, import/export, AI drafts
|
|
422
|
+
library_ai.py Create with AI: drafts a library block through the validator
|
|
423
|
+
sources.py Change detection for input blocks, from their form fields
|
|
424
|
+
metadata_transforms.py Column roles for every block, from its declared "meta" rules
|
|
344
425
|
llm/ Pluggable LLM providers for AI-assisted drafting
|
|
345
426
|
agent/ AI model builder: tools, guards, build lifecycle, loops, MCP bridge
|
|
346
427
|
graph.py Graph/block/wire data model
|
|
@@ -351,7 +432,8 @@ modelmaker/
|
|
|
351
432
|
packet.py DataFramePacket: the typed value flowing over wires
|
|
352
433
|
project.py Load/save project files (JSON + block source files)
|
|
353
434
|
static/ Built frontend bundle (generated, gitignored)
|
|
354
|
-
frontend/ React + Vite UI
|
|
435
|
+
frontend/ React + Vite UI (npm run build -> modelmaker/static; npm run build:vscode -> vscode/media/webview)
|
|
436
|
+
vscode/ VS Code extension: custom editor, backend manager, Copilot relay
|
|
355
437
|
tests/ Pytest suite for the backend
|
|
356
438
|
sample_data/ Example CSVs (tests also write a generated credit_risk_data.csv here, gitignored)
|
|
357
439
|
```
|
|
@@ -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,54 @@ 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, one backend per open project.
|
|
59
|
+
Model-Maker ships inside the extension, which runs it in a Python
|
|
60
|
+
environment of its own: all it needs is Python 3.11+ and access to PyPI or
|
|
61
|
+
a company mirror for the open-source requirements. It can also offer your
|
|
62
|
+
GitHub Copilot models as the `copilot` AI provider.
|
|
63
|
+
The pip package works on its own exactly as described here; the extension
|
|
64
|
+
is another way to run it. See
|
|
65
|
+
[`vscode-extension-plan.md`](vscode-extension-plan.md) for the design and
|
|
66
|
+
[`docs/releasing.md`](docs/releasing.md) for how a release ships both.
|
|
67
|
+
|
|
68
|
+
Develop it with:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
pip install -e .
|
|
72
|
+
(cd frontend && npm ci && npm run build:vscode) # the canvas, into vscode/media/webview
|
|
73
|
+
cd vscode && npm ci && npm run build
|
|
74
|
+
code --extensionDevelopmentPath="$PWD" path/to/workspace
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
A development build has no bundled Model-Maker and runs the installed
|
|
78
|
+
package (`pip install -e .` above). To try the bundled one, run
|
|
79
|
+
`pip install build && python scripts/bundle-python.py` in `vscode/`.
|
|
80
|
+
|
|
81
|
+
## Claude Code and other MCP clients
|
|
82
|
+
|
|
83
|
+
`modelmaker-mcp` gives an MCP client the tools to build a model on an open
|
|
84
|
+
canvas: open or create a project, find the data, add lanes and blocks,
|
|
85
|
+
wire, run, check for leakage and compile. Each edit goes into the canvas's
|
|
86
|
+
undo history and shows up on the canvas within a couple of seconds.
|
|
87
|
+
Assistants see schemas and summary statistics, never your data's rows.
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
modelmaker-api # the canvas, in a browser
|
|
91
|
+
claude mcp add modelmaker -- modelmaker-mcp --url http://127.0.0.1:8001
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Inside VS Code, the extension's **Model-Maker: Set Up Claude Code** does
|
|
95
|
+
the setup, and the tools work on the canvas you used last.
|
|
96
|
+
|
|
54
97
|
## Projects
|
|
55
98
|
|
|
56
99
|
A project is a folder, not a file: **Save**/**Load** browse for a folder
|
|
57
100
|
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
|
-
|
|
101
|
+
`model.json` (everything else in it -- `files/`, a `.gitignore`, the code
|
|
102
|
+
of the library blocks it uses in `blocks/` -- is the project's own working area, versioned
|
|
60
103
|
alongside it). Saving for the first time scaffolds that folder (see
|
|
61
104
|
[The demo project](#the-demo-project) for an example) and git-inits it, so
|
|
62
105
|
it's ready to commit and push right away from the **Git** panel.
|
|
@@ -129,9 +172,14 @@ A few things worth knowing beyond the canvas itself.
|
|
|
129
172
|
it started, so you can keep editing (or undo, or toggle sample mode) while
|
|
130
173
|
a long sweep executes. The run finishes against its own version; anything
|
|
131
174
|
you changed in the meantime simply shows as stale afterwards, saying so.
|
|
132
|
-
- **
|
|
133
|
-
(
|
|
134
|
-
|
|
175
|
+
- **Block library** — **Library** in the palette opens your own blocks
|
|
176
|
+
(`~/.modelmaker/blocks/`, or `MODELMAKER_BLOCK_LIBRARY`): plain `.py`
|
|
177
|
+
files, one or more blocks each. Browse, edit (a real code editor with a
|
|
178
|
+
live validity check and **Try it**), import and export them, or
|
|
179
|
+
**✦ Create with AI** from a description. Placed blocks keep their own
|
|
180
|
+
copy and offer **Update** when the library moves on. See
|
|
181
|
+
[docs/block-authoring.md](docs/block-authoring.md); `modelmaker
|
|
182
|
+
check-blocks` validates a library and runs its self-checks (for CI).
|
|
135
183
|
|
|
136
184
|
## Terminal UI
|
|
137
185
|
|
|
@@ -183,6 +231,7 @@ AI-assisted block drafting ("Draft with AI", suggest-a-fix) is pluggable:
|
|
|
183
231
|
| 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
232
|
| 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
233
|
| LM Studio (local) | `lmstudio` | LM Studio running with its local server started (Developer tab → Start Server) and a model loaded |
|
|
234
|
+
| GitHub Copilot | `copilot` | Only inside VS Code, through the [extension](#vs-code)'s relay, with Copilot signed in |
|
|
186
235
|
| Stub (no network, deterministic) | `stub` | none — used by default in tests |
|
|
187
236
|
|
|
188
237
|
The `openai` and `gemini` providers talk plain HTTPS via the standard
|
|
@@ -262,7 +311,11 @@ Guardrails are enforced by the tools, not just the prompt:
|
|
|
262
311
|
the plan listed and you approved.
|
|
263
312
|
- **Excluded means excluded.** Columns tagged `excluded` are refused as
|
|
264
313
|
features.
|
|
265
|
-
- **
|
|
314
|
+
- **Your library is part of the toolbox.** The build can use your library
|
|
315
|
+
blocks, including ones earlier builds created, alongside the built-ins.
|
|
316
|
+
When nothing fits, it writes a new block to `drafts/` in your block
|
|
317
|
+
library, where you keep or discard it.
|
|
318
|
+
- **Limits.** Tool calls, new blocks, repeated failures and wall time
|
|
266
319
|
are all capped.
|
|
267
320
|
|
|
268
321
|
Builds run on `claude_cli` (your existing Claude login, via a small MCP
|
|
@@ -283,12 +336,40 @@ reports it) or set with `MODELMAKER_LLM_CONTEXT_TOKENS`. Expect a local
|
|
|
283
336
|
build to take a while; `MODELMAKER_LLM_TIMEOUT_SECONDS` (default 900 for
|
|
284
337
|
local models) caps a single request.
|
|
285
338
|
|
|
339
|
+
Two **Settings → AI builder** switches help small models:
|
|
340
|
+
- **Small context** starts each build stage in a fresh conversation,
|
|
341
|
+
carrying only the outline, what's built and the decisions so far.
|
|
342
|
+
- **Decision hints** adds a short, rule-based recommendation (`next`) to the
|
|
343
|
+
results the build has to judge, so the model reads a recommendation
|
|
344
|
+
rather than a statistics table. For example:
|
|
345
|
+
- **Data:** empty, constant or id-like columns; exclusion rules that drop
|
|
346
|
+
a lot or nothing; failed data-quality rules; samples with too few
|
|
347
|
+
events or a different event rate.
|
|
348
|
+
- **Features:** candidates, no-signal and likely-leakage features by IV;
|
|
349
|
+
correlated pairs and high VIFs; unstable features; an immature last
|
|
350
|
+
period.
|
|
351
|
+
- **Fits:** wrong-sign (WoE) or insignificant coefficients; a fit that
|
|
352
|
+
didn't converge; the stepwise selection to use; a large calibration
|
|
353
|
+
shift; non-monotonic or thin rating grades; a short long-run history.
|
|
354
|
+
- **Validation:** Gini, KS, Hosmer-Lemeshow, LGD/CCF accuracy and bucket
|
|
355
|
+
calibration, PSI, train/test drops and the grade back-test each get a
|
|
356
|
+
verdict.
|
|
357
|
+
- **Stochastic:** a poor distribution fit; an inaccurate proxy. Departing
|
|
358
|
+
from a hint is allowed, but the model must say why with a recorded
|
|
359
|
+
deviation. The thresholds are the usual credit-risk rules of thumb, in
|
|
360
|
+
[`modelmaker/agent/hints.py`](modelmaker/agent/hints.py).
|
|
361
|
+
|
|
286
362
|
## Project structure
|
|
287
363
|
|
|
288
364
|
```
|
|
289
365
|
modelmaker/
|
|
290
366
|
api.py FastAPI app and HTTP routes
|
|
291
|
-
blocks/
|
|
367
|
+
blocks/ Built-in block files (data, modelling, stat tests, ...) and the new-block template
|
|
368
|
+
block_library.py Parses and validates block files (BLOCKS literal + functions)
|
|
369
|
+
library_store.py The user's block library folder: list, save, import/export, AI drafts
|
|
370
|
+
library_ai.py Create with AI: drafts a library block through the validator
|
|
371
|
+
sources.py Change detection for input blocks, from their form fields
|
|
372
|
+
metadata_transforms.py Column roles for every block, from its declared "meta" rules
|
|
292
373
|
llm/ Pluggable LLM providers for AI-assisted drafting
|
|
293
374
|
agent/ AI model builder: tools, guards, build lifecycle, loops, MCP bridge
|
|
294
375
|
graph.py Graph/block/wire data model
|
|
@@ -299,7 +380,8 @@ modelmaker/
|
|
|
299
380
|
packet.py DataFramePacket: the typed value flowing over wires
|
|
300
381
|
project.py Load/save project files (JSON + block source files)
|
|
301
382
|
static/ Built frontend bundle (generated, gitignored)
|
|
302
|
-
frontend/ React + Vite UI
|
|
383
|
+
frontend/ React + Vite UI (npm run build -> modelmaker/static; npm run build:vscode -> vscode/media/webview)
|
|
384
|
+
vscode/ VS Code extension: custom editor, backend manager, Copilot relay
|
|
303
385
|
tests/ Pytest suite for the backend
|
|
304
386
|
sample_data/ Example CSVs (tests also write a generated credit_risk_data.csv here, gitignored)
|
|
305
387
|
```
|
|
@@ -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
|
+
}
|