quantology-modelmaker 0.3.5__tar.gz → 0.3.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. {quantology_modelmaker-0.3.5/quantology_modelmaker.egg-info → quantology_modelmaker-0.3.6}/PKG-INFO +1 -1
  2. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/App.tsx +95 -35
  3. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/agent/catalogue.py +1 -0
  4. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/agent/prompts.py +25 -5
  5. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/agent/tools.py +3 -2
  6. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/assistant_api.py +1 -1
  7. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/assistant_mcp.py +5 -2
  8. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/blocks/_template.py +2 -0
  9. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/blocks/library.py +354 -0
  10. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/capabilities.py +2 -1
  11. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/llm/prompts.py +8 -1
  12. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/pyproject.toml +1 -1
  13. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6/quantology_modelmaker.egg-info}/PKG-INFO +1 -1
  14. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_datasets.py +1 -1
  15. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_large_data.py +154 -0
  16. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/LICENSE +0 -0
  17. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/MANIFEST.in +0 -0
  18. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/NOTICE +0 -0
  19. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/README.md +0 -0
  20. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/.gitignore +0 -0
  21. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/.npmrc +0 -0
  22. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/.oxlintrc.json +0 -0
  23. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/README.md +0 -0
  24. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/index.html +0 -0
  25. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/package-lock.json +0 -0
  26. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/package.json +0 -0
  27. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/public/brand-quantology/favicon.svg +0 -0
  28. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/public/brand-quantology/icon-mark-light.svg +0 -0
  29. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/public/icons.svg +0 -0
  30. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/scripts/check-host.mjs +0 -0
  31. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/BlockNode.tsx +0 -0
  32. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/BuildPanel.tsx +0 -0
  33. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/BuildReport.tsx +0 -0
  34. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/CodeEditor.tsx +0 -0
  35. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/DataModal.tsx +0 -0
  36. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/DataPicker.tsx +0 -0
  37. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/DataWireEdge.tsx +0 -0
  38. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/EnvVarField.tsx +0 -0
  39. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/FileBrowser.tsx +0 -0
  40. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/GhostNode.tsx +0 -0
  41. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/GitPanel.tsx +0 -0
  42. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/Inspector.tsx +0 -0
  43. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/LaneBand.tsx +0 -0
  44. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/LaneLabels.tsx +0 -0
  45. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/LibraryPage.tsx +0 -0
  46. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/LibraryPanel.tsx +0 -0
  47. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/NodeDisplay.tsx +0 -0
  48. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/Palette.tsx +0 -0
  49. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/ParamsForm.tsx +0 -0
  50. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/PortDataView.tsx +0 -0
  51. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/PortInspector.tsx +0 -0
  52. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/SettingsPanel.tsx +0 -0
  53. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/Toolbar.tsx +0 -0
  54. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/UpdateDialog.tsx +0 -0
  55. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/api.ts +0 -0
  56. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/assets/hero.png +0 -0
  57. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/assets/react.svg +0 -0
  58. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/assets/vite.svg +0 -0
  59. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/features.ts +0 -0
  60. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/host.ts +0 -0
  61. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/index.css +0 -0
  62. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/main.tsx +0 -0
  63. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/roles.ts +0 -0
  64. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/src/types.ts +0 -0
  65. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/tsconfig.app.json +0 -0
  66. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/tsconfig.json +0 -0
  67. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/tsconfig.node.json +0 -0
  68. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/frontend/vite.config.ts +0 -0
  69. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/__init__.py +0 -0
  70. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/__main__.py +0 -0
  71. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/agent/__init__.py +0 -0
  72. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/agent/build.py +0 -0
  73. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/agent/controller.py +0 -0
  74. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/agent/hint_rules.py +0 -0
  75. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/agent/hints.py +0 -0
  76. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/agent/layout.py +0 -0
  77. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/agent/leakage.py +0 -0
  78. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/agent/loop.py +0 -0
  79. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/agent/mcp_server.py +0 -0
  80. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/api.py +0 -0
  81. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/block_library.py +0 -0
  82. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/blocks/__init__.py +0 -0
  83. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/blocks/base.py +0 -0
  84. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/blocks/binning.py +0 -0
  85. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/blocks/data_quality.py +0 -0
  86. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/blocks/feature_analysis.py +0 -0
  87. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/blocks/modelling.py +0 -0
  88. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/blocks/stat_tests.py +0 -0
  89. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/blocks/stochastic.py +0 -0
  90. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/cache.py +0 -0
  91. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/cli.py +0 -0
  92. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/compiler.py +0 -0
  93. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/datasets.py +0 -0
  94. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/demo_data.py +0 -0
  95. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/execution/__init__.py +0 -0
  96. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/execution/agent.py +0 -0
  97. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/execution/base.py +0 -0
  98. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/execution/env.py +0 -0
  99. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/execution/limits.py +0 -0
  100. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/execution/local.py +0 -0
  101. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/execution/protocol.py +0 -0
  102. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/execution/remote.py +0 -0
  103. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/execution/safe_pickle.py +0 -0
  104. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/execution/wire.py +0 -0
  105. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/features.py +0 -0
  106. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/forms.py +0 -0
  107. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/gitops.py +0 -0
  108. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/graph.py +0 -0
  109. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/library_ai.py +0 -0
  110. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/library_api.py +0 -0
  111. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/library_store.py +0 -0
  112. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/library_updates.py +0 -0
  113. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/llm/__init__.py +0 -0
  114. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/llm/anthropic_provider.py +0 -0
  115. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/llm/base.py +0 -0
  116. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/llm/claude_cli_provider.py +0 -0
  117. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/llm/copilot_provider.py +0 -0
  118. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/llm/gemini_provider.py +0 -0
  119. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/llm/lmstudio_provider.py +0 -0
  120. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/llm/openai_provider.py +0 -0
  121. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/llm/redact.py +0 -0
  122. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/llm/settings.py +0 -0
  123. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/llm/stub_provider.py +0 -0
  124. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/metadata_transforms.py +0 -0
  125. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/packet.py +0 -0
  126. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/project.py +0 -0
  127. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/run_worker.py +0 -0
  128. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/runner.py +0 -0
  129. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/runslot.py +0 -0
  130. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/session.py +0 -0
  131. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/signature.py +0 -0
  132. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/sources.py +0 -0
  133. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/stochastic/__init__.py +0 -0
  134. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/stochastic/accumulate.py +0 -0
  135. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/stochastic/credit.py +0 -0
  136. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/stochastic/dependency.py +0 -0
  137. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/stochastic/distributions.py +0 -0
  138. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/stochastic/proxy.py +0 -0
  139. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/stochastic/seed.py +0 -0
  140. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/stochastic/var_covar.py +0 -0
  141. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/tui/__init__.py +0 -0
  142. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/tui/app.py +0 -0
  143. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/tui/canvas.py +0 -0
  144. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/tui/charts.py +0 -0
  145. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/tui/client.py +0 -0
  146. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/tui/inspector.py +0 -0
  147. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/tui/paramspecs.py +0 -0
  148. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/tui/preview.py +0 -0
  149. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/tui/screens.py +0 -0
  150. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/util.py +0 -0
  151. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/worker_pool.py +0 -0
  152. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/modelmaker/workspace.py +0 -0
  153. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/projects/demo_pd_model/model.json +0 -0
  154. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/quantology_modelmaker.egg-info/SOURCES.txt +0 -0
  155. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/quantology_modelmaker.egg-info/dependency_links.txt +0 -0
  156. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/quantology_modelmaker.egg-info/entry_points.txt +0 -0
  157. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/quantology_modelmaker.egg-info/requires.txt +0 -0
  158. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/quantology_modelmaker.egg-info/top_level.txt +0 -0
  159. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/run.bat +0 -0
  160. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/setup.cfg +0 -0
  161. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/setup.py +0 -0
  162. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_agent_api.py +0 -0
  163. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_agent_build.py +0 -0
  164. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_agent_foundations.py +0 -0
  165. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_agent_hints.py +0 -0
  166. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_agent_leakage.py +0 -0
  167. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_agent_loops.py +0 -0
  168. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_api.py +0 -0
  169. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_assistant_mcp.py +0 -0
  170. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_binning.py +0 -0
  171. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_block_library.py +0 -0
  172. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_cache.py +0 -0
  173. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_compiler.py +0 -0
  174. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_data_quality.py +0 -0
  175. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_demo_data.py +0 -0
  176. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_demo_project.py +0 -0
  177. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_display_blocks.py +0 -0
  178. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_embedding.py +0 -0
  179. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_env_vars.py +0 -0
  180. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_execution_agent.py +0 -0
  181. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_execution_executor.py +0 -0
  182. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_execution_limits.py +0 -0
  183. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_execution_security.py +0 -0
  184. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_execution_wire.py +0 -0
  185. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_feature_analysis.py +0 -0
  186. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_features.py +0 -0
  187. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_forms.py +0 -0
  188. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_gitops.py +0 -0
  189. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_graph.py +0 -0
  190. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_hosting_hooks.py +0 -0
  191. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_input_blocks.py +0 -0
  192. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_library.py +0 -0
  193. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_llm.py +0 -0
  194. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_llm_connections.py +0 -0
  195. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_master_scale.py +0 -0
  196. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_modelling.py +0 -0
  197. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_no_exec_in_api.py +0 -0
  198. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_packet.py +0 -0
  199. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_prep_blocks.py +0 -0
  200. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_project.py +0 -0
  201. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_risk_parameter_blocks.py +0 -0
  202. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_runner.py +0 -0
  203. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_runner_streaming.py +0 -0
  204. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_session.py +0 -0
  205. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_stat_tests.py +0 -0
  206. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_stochastic_blocks.py +0 -0
  207. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_stochastic_core.py +0 -0
  208. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_stochastic_credit.py +0 -0
  209. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_stochastic_fan_out.py +0 -0
  210. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_stochastic_runner.py +0 -0
  211. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_tui_app.py +0 -0
  212. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_tui_charts.py +0 -0
  213. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_tui_client.py +0 -0
  214. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_validation_blocks.py +0 -0
  215. {quantology_modelmaker-0.3.5 → quantology_modelmaker-0.3.6}/tests/test_workspaces.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: quantology-modelmaker
3
- Version: 0.3.5
3
+ Version: 0.3.6
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
@@ -6,6 +6,7 @@ import {
6
6
  ReactFlowProvider,
7
7
  applyNodeChanges,
8
8
  useReactFlow,
9
+ useStoreApi,
9
10
  type Connection,
10
11
  type NodeChange,
11
12
  } from '@xyflow/react'
@@ -30,6 +31,9 @@ import { host } from './host'
30
31
  import { has } from './features'
31
32
 
32
33
  const STAMP_POLL_MS = 1500
34
+ // How long the view stops following new and running blocks after the user
35
+ // pans or zooms it themselves.
36
+ const FOLLOW_PAUSE_MS = 5000
33
37
 
34
38
  const nodeTypes = { modelBlock: BlockNode, laneBand: LaneBand, ghostBlock: GhostNode, ghostLane: GhostLane }
35
39
  const edgeTypes = { dataWire: DataWireEdge }
@@ -128,7 +132,7 @@ function AppInner() {
128
132
  const [build, setBuild] = useState<BuildOut | null>(null)
129
133
  // The AI build whose full report is open (see BuildReport.ReportModal).
130
134
  const [reportBuildId, setReportBuildId] = useState<string | null>(null)
131
- const { fitView, screenToFlowPosition } = useReactFlow()
135
+ const { fitView, getNodesBounds, getZoom, screenToFlowPosition, setCenter } = useReactFlow()
132
136
  const didInitialFit = useRef(false)
133
137
 
134
138
  const reloadLlmSettings = useCallback(() => {
@@ -153,34 +157,86 @@ function AppInner() {
153
157
  setSelectedPort({ blockId, port, portType })
154
158
  }, [])
155
159
 
156
- const reload = useCallback(() => {
157
- api.graph().then((g) => {
158
- setGraph(g)
159
- const nextBlockNodes = toBlockNodes(g, collapsedLanes, onViewPort, setReportBuildId)
160
- // Carry over React Flow's measured size and selection: the run poll
161
- // reloads every 200ms, and fresh nodes without `measured` are hidden
162
- // until re-measured, which blinks the whole canvas.
163
- setBlockNodes((prev) => {
164
- const prevById = new Map(prev.map((n) => [n.id, n]))
165
- return nextBlockNodes.map((n) => {
166
- const old = prevById.get(n.id)
167
- return old ? { ...n, measured: old.measured, selected: old.selected } : n
168
- })
169
- })
170
- // fit the view to the actual blocks (not the oversized lane bands) once,
171
- // on first load -- re-fitting on every later reload would yank the
172
- // viewport out from under someone mid-edit.
173
- if (!didInitialFit.current && nextBlockNodes.length > 0) {
174
- didInitialFit.current = true
175
- requestAnimationFrame(() => fitView({ nodes: nextBlockNodes.map((n) => ({ id: n.id })), padding: 0.2 }))
160
+ // Following changes made elsewhere (an assistant adding blocks, a run):
161
+ // the ids on the canvas and the blocks running at the last load, and when
162
+ // the user last moved the view themselves -- following never fights a
163
+ // pan or zoom they just made.
164
+ const knownIds = useRef<Set<string> | null>(null)
165
+ const runningIds = useRef<Set<string>>(new Set())
166
+ const userMovedAt = useRef(0)
167
+ const flowStore = useStoreApi()
168
+
169
+ // Shows `ids` (zooming in no further than now when `keepZoom`, else to
170
+ // fit). When they can't all fit even fully zoomed out, zooms out as far
171
+ // as the canvas allows and scrolls to `focus` instead.
172
+ const followView = useCallback(
173
+ (ids: string[], focus: string, keepZoom: boolean) => {
174
+ const { width, height, minZoom } = flowStore.getState()
175
+ const padding = 0.25
176
+ const bounds = getNodesBounds(ids)
177
+ if (!width || !height || !bounds.width || !bounds.height) return
178
+ const fitZoom = Math.min(width / (bounds.width * (1 + 2 * padding)), height / (bounds.height * (1 + 2 * padding)))
179
+ if (fitZoom >= minZoom) {
180
+ fitView({ nodes: ids.map((id) => ({ id })), padding, maxZoom: keepZoom ? getZoom() : undefined, duration: 400 })
181
+ return
176
182
  }
177
- // A run started in the background (see api.py's _start_background_run)
178
- // can fail on a precondition (e.g. "Run" clicked on a block whose
179
- // upstream isn't green) before any block state changes -- surfaced
180
- // here once, the server clears it as soon as this read happens.
181
- if (g.run_error) host.notify(g.run_error)
182
- })
183
- }, [collapsedLanes, fitView, onViewPort])
183
+ const f = getNodesBounds([focus])
184
+ setCenter(f.x + f.width / 2, f.y + f.height / 2, { zoom: minZoom, duration: 400 })
185
+ },
186
+ [flowStore, fitView, getNodesBounds, getZoom, setCenter],
187
+ )
188
+
189
+ const load = useCallback(
190
+ (follow: boolean) =>
191
+ api.graph().then((g) => {
192
+ setGraph(g)
193
+ const nextBlockNodes = toBlockNodes(g, collapsedLanes, onViewPort, setReportBuildId)
194
+ const ids = new Set(Object.keys(g.blocks))
195
+ const added = knownIds.current ? [...ids].filter((id) => !knownIds.current!.has(id)) : []
196
+ knownIds.current = ids
197
+ const running = new Set(Object.entries(g.blocks).filter(([, b]) => b.status === 'running').map(([id]) => id))
198
+ const prevRunning = runningIds.current
199
+ const startedRunning = [...running].some((id) => !prevRunning.has(id))
200
+ runningIds.current = running
201
+ const userBusy = Date.now() - userMovedAt.current < FOLLOW_PAUSE_MS
202
+ if (follow && didInitialFit.current && !userBusy && (added.length > 0 || startedRunning)) {
203
+ // New blocks: zoom out to the whole graph, focused on the newest.
204
+ // A run: bring the running blocks into view, panning, and zooming
205
+ // out only if they don't fit -- focused on the one that just started.
206
+ const focus = added.length > 0 ? added[added.length - 1] : [...running].find((id) => !prevRunning.has(id))!
207
+ // After the new nodes are measured, or the bounds miss them.
208
+ setTimeout(() => followView(added.length > 0 ? [...ids] : [...running], focus, added.length === 0), 80)
209
+ }
210
+ // Carry over React Flow's measured size and selection: the run poll
211
+ // reloads every 200ms, and fresh nodes without `measured` are hidden
212
+ // until re-measured, which blinks the whole canvas.
213
+ setBlockNodes((prev) => {
214
+ const prevById = new Map(prev.map((n) => [n.id, n]))
215
+ return nextBlockNodes.map((n) => {
216
+ const old = prevById.get(n.id)
217
+ return old ? { ...n, measured: old.measured, selected: old.selected } : n
218
+ })
219
+ })
220
+ // fit the view to the actual blocks (not the oversized lane bands) once,
221
+ // on first load -- re-fitting on every later reload would yank the
222
+ // viewport out from under someone mid-edit.
223
+ if (!didInitialFit.current && nextBlockNodes.length > 0) {
224
+ didInitialFit.current = true
225
+ requestAnimationFrame(() => fitView({ nodes: nextBlockNodes.map((n) => ({ id: n.id })), padding: 0.2 }))
226
+ }
227
+ // A run started in the background (see api.py's _start_background_run)
228
+ // can fail on a precondition (e.g. "Run" clicked on a block whose
229
+ // upstream isn't green) before any block state changes -- surfaced
230
+ // here once, the server clears it as soon as this read happens.
231
+ if (g.run_error) host.notify(g.run_error)
232
+ }),
233
+ [collapsedLanes, fitView, followView, onViewPort],
234
+ )
235
+ // After the canvas's own edits: the view stays where the user put it.
236
+ const reload = useCallback(() => load(false), [load])
237
+ // After changes from elsewhere (an assistant, a run, another tab): the
238
+ // view follows new and running blocks.
239
+ const reloadFollow = useCallback(() => load(true), [load])
184
240
 
185
241
  useEffect(() => {
186
242
  reload()
@@ -241,9 +297,9 @@ function AppInner() {
241
297
  .catch((e) => host.notify((e as Error).message))
242
298
  else if (name === 'reload' && path) api.load(path).then(reload).catch((e) => host.notify((e as Error).message))
243
299
  // The backend's graph changed underneath (a Copilot Chat tool edit).
244
- else if (name === 'refresh') reload()
300
+ else if (name === 'refresh') reloadFollow()
245
301
  }),
246
- [reload],
302
+ [reload, reloadFollow],
247
303
  )
248
304
  useEffect(() => {
249
305
  if (host.kind !== 'vscode') return
@@ -320,9 +376,9 @@ function AppInner() {
320
376
  // grey -> running -> green/red transition during a Run all/Force run
321
377
  // all sweep is actually visible rather than the canvas jumping straight
322
378
  // from all-grey to done between two 700ms-apart polls.
323
- const id = setInterval(reload, 200)
379
+ const id = setInterval(reloadFollow, 200)
324
380
  return () => clearInterval(id)
325
- }, [anyRunning, reload])
381
+ }, [anyRunning, reloadFollow])
326
382
 
327
383
  // Edits made elsewhere -- an assistant such as Claude Code over MCP,
328
384
  // another tab -- show up within a couple of seconds: poll a cheap stamp
@@ -337,7 +393,7 @@ function AppInner() {
337
393
  .graphStamp()
338
394
  .then(({ stamp }) => {
339
395
  if (stopped) return
340
- if (stampRef.current !== null && stamp !== stampRef.current) reload()
396
+ if (stampRef.current !== null && stamp !== stampRef.current) reloadFollow()
341
397
  stampRef.current = stamp
342
398
  })
343
399
  .catch(() => {})
@@ -346,7 +402,7 @@ function AppInner() {
346
402
  stopped = true
347
403
  clearInterval(id)
348
404
  }
349
- }, [anyRunning, reload])
405
+ }, [anyRunning, reloadFollow])
350
406
 
351
407
  useEffect(() => {
352
408
  if (graph) setBlockNodes(toBlockNodes(graph, collapsedLanes, onViewPort, setReportBuildId))
@@ -798,6 +854,10 @@ function AppInner() {
798
854
  nodeTypes={nodeTypes}
799
855
  edgeTypes={edgeTypes}
800
856
  onNodesChange={onNodesChange}
857
+ onMoveStart={(event) => {
858
+ // Only the user's own pans and zooms (fitView's carry no event).
859
+ if (event) userMovedAt.current = Date.now()
860
+ }}
801
861
  onNodeDragStop={onNodeDragStop}
802
862
  onConnect={onConnect}
803
863
  onEdgeClick={onEdgeClick}
@@ -877,7 +937,7 @@ function AppInner() {
877
937
  graph={graph}
878
938
  selectedIds={selectedIds}
879
939
  llmSettings={llmSettings}
880
- onChanged={reload}
940
+ onChanged={reloadFollow}
881
941
  onBuild={setBuild}
882
942
  onClose={() => setBuildOpen(false)}
883
943
  onOpenReport={setReportBuildId}
@@ -24,6 +24,7 @@ __all__ = ["INJECTED_PARAMS"] # re-exported: the runner-injected params, never
24
24
  AGENT_DISALLOWED: dict[str, str] = {
25
25
  "read_csv": "input blocks are prepared by the user, not the AI build",
26
26
  "read_parquet": "input blocks are prepared by the user, not the AI build",
27
+ "stage_csv_parquet": "input blocks are prepared by the user, not the AI build",
27
28
  "read_json": "input blocks are prepared by the user, not the AI build",
28
29
  "read_excel": "input blocks are prepared by the user, not the AI build",
29
30
  "read_sql": "input blocks are prepared by the user, not the AI build",
@@ -182,11 +182,27 @@ display_kpi for a headline number (a total RWA, a Gini, an average PD; set \
182
182
  produces the result, as the last steps of that stage.
183
183
 
184
184
  The build is running on {sample_note}. On the last stage, instead of \
185
- complete_stage, call finish with a Markdown report (what you built across \
186
- all stages, deviations, headline results, concerns -- e.g. weak features, \
187
- instability, anything you'd check next) and key_outputs pointing at the \
188
- headline metric blocks. The app then runs the whole graph on the full data \
189
- and refreshes those metrics. End your turn after finish."""
185
+ complete_stage, call finish with the model document as `report` and \
186
+ key_outputs pointing at the headline metric blocks. The app then runs the \
187
+ whole graph on the full data and refreshes those metrics. End your turn \
188
+ after finish.
189
+
190
+ The model document is Markdown that a reviewer or validator can follow \
191
+ without the canvas, laid out along the build:
192
+ - **Purpose and data**: the goal, the data the model is built on (the \
193
+ anchors, the population, the target and how it's defined), the sample \
194
+ design.
195
+ - **One section per stage, in build order** (its lane name as the heading): \
196
+ what the stage does, each step in turn and the choice made there with the \
197
+ reason -- the feature kept or dropped, the bins, the split, the model \
198
+ family and settings -- backed by the numbers that drove it (the `why`s you \
199
+ gave in plan_stage and your stage summaries are the raw material), and the \
200
+ stage's results.
201
+ - **Deviations** from the approved outline, and why.
202
+ - **Results**: the headline metrics per sample.
203
+ - **Limitations and next checks**: weak features, instability, anything a \
204
+ validator should look at.
205
+ Only numbers you have seen in tool results, as everywhere."""
190
206
 
191
207
 
192
208
  CUSTOM_ON = """- Prefer existing blocks -- the built-ins and the user's library blocks \
@@ -221,6 +237,10 @@ branch.
221
237
  it would still be too big, say so and ask_user: the options are a sample of \
222
238
  ids (whole histories, weighted back if stratified), or aggregating to cells \
223
239
  of banded drivers with event and exposure counts.
240
+ - If the data comes in through Read CSV (a text file re-parsed on every \
241
+ run, the slowest way to read it), say in your report that the user should \
242
+ replace it with Stage CSV as Parquet, which converts the file (zipped or \
243
+ not) to Parquet once and reads only the columns used from then on.
224
244
  - In your report, say which block holds the largest table on the full data."""
225
245
 
226
246
 
@@ -1421,8 +1421,9 @@ def ask_user(b: AgentBuild, question: str, options: list[str] | None = None) ->
1421
1421
 
1422
1422
  @tool(
1423
1423
  "finish",
1424
- "Finish the build, once the last stage is built and checked. `report` is Markdown for the user: what "
1425
- "you built, deviations, key results and concerns. `key_outputs` lists the blocks/ports holding the "
1424
+ "Finish the build, once the last stage is built and checked. `report` is the model document, in Markdown: "
1425
+ "purpose and data, then one section per stage in build order explaining each step and the choices made "
1426
+ "(with the numbers behind them), deviations, results, limitations and next checks. `key_outputs` lists the blocks/ports holding the "
1426
1427
  "headline metrics, so they can be refreshed after the final full-data run. If the user agreed (through "
1427
1428
  "ask_user) to drop the remaining stages, say why in `dropped_stages_reason`. After calling it, end your turn.",
1428
1429
  {
@@ -105,7 +105,7 @@ IO_TAGS = {
105
105
  "data_sources": ("Read the data in: files, the workspace's datasets and sources, the demo data. Start here.", "input"),
106
106
  "exports": ("Write results out to a file or the workspace's exports.", "output"),
107
107
  }
108
- IO_BLOCKS = {"input": ("read_csv", "read_parquet", "read_json", "read_excel", "read_sql", "read_dataset", "read_source", "demo_credit_data"),
108
+ IO_BLOCKS = {"input": ("read_csv", "stage_csv_parquet", "read_parquet", "read_json", "read_excel", "read_sql", "read_dataset", "read_source", "demo_credit_data"),
109
109
  "output": ("write_csv", "write_parquet", "export")}
110
110
 
111
111
 
@@ -349,7 +349,10 @@ def _launch_uri(uri: str, scheme: str = "vscode") -> bool:
349
349
  "grey/green/orange/red/running, params, input and output ports as name:type, the error of a red block, why an "
350
350
  "orange block is stale) and every wire. Call this first, and again after edits. Building a model from scratch: "
351
351
  "add lanes for its phases, a data source block (tag data_sources), tag the target column, then add, wire and run "
352
- "blocks one phase at a time, checking with check as you go.",
352
+ "blocks one phase at a time, checking with check as you go. Once the model is built, offer to write a model "
353
+ "document (Markdown in the project folder): purpose and data, then one section per lane in build order "
354
+ "explaining each step and the choices made, with the numbers that drove them, then results, limitations and "
355
+ "next checks.",
353
356
  )
354
357
  def get_graph(r: Resolver, a: dict[str, Any]) -> Any:
355
358
  return _graph(r.target())
@@ -357,7 +360,7 @@ def get_graph(r: Resolver, a: dict[str, Any]) -> Any:
357
360
 
358
361
  @tool(
359
362
  "list_files",
360
- "Lists a folder on the machine the backend runs on, to find data files for a read_csv/read_parquet/read_excel/"
363
+ "Lists a folder on the machine the backend runs on, to find data files for a read_csv/stage_csv_parquet/read_parquet/read_excel/"
361
364
  "read_json block's path param (use the path exactly as returned). Without a path: the project's folder. Also "
362
365
  "lists the workspace's datasets and sources when it offers them (for read_dataset/read_source blocks).",
363
366
  {
@@ -35,6 +35,8 @@ BLOCKS = {
35
35
  # per feature/bin/grade/..., never per record).
36
36
  # Large sources: an input block returns pl.scan_csv/scan_parquet
37
37
  # (lazy output), select only the needed columns and reduce early;
38
+ # a big CSV (zipped or not) is staged to Parquet once -- the
39
+ # built-in stage_csv_parquet does it -- not re-parsed every run;
38
40
  # collect inside a block only after reducing, with
39
41
  # .collect(engine="streaming"). See "Large data" in
40
42
  # docs/block-authoring.md.