database-tycoon 0.2.1__tar.gz → 0.2.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.
Files changed (479) hide show
  1. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/CHANGELOG.md +82 -0
  2. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/PKG-INFO +1 -1
  3. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/pyproject.toml +16 -2
  4. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/__init__.py +1 -1
  5. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/db.py +90 -17
  6. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/doctor.py +57 -5
  7. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/history.py +27 -3
  8. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/init.py +68 -0
  9. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/register.py +25 -1
  10. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/run_all.py +16 -1
  11. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/semantics.py +8 -2
  12. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/setup.py +16 -13
  13. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/sources.py +300 -38
  14. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/status.py +33 -4
  15. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/transform.py +3 -2
  16. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/config.py +82 -6
  17. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/core/events.py +3 -0
  18. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/core/history.py +21 -28
  19. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/ingestion/runner.py +328 -40
  20. database_tycoon-0.2.2/src/tycoon/ingestion/source_installer.py +174 -0
  21. database_tycoon-0.2.2/src/tycoon/ingestion/source_manager.py +462 -0
  22. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/project.py +44 -17
  23. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/scaffolding/rill_generator.py +28 -4
  24. database_tycoon-0.2.2/src/tycoon/venv.py +270 -0
  25. database_tycoon-0.2.2/src/tycoon/yaml_merge.py +206 -0
  26. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/catalog/column_lineage.py +10 -1
  27. database_tycoon-0.2.1/.github/ISSUE_TEMPLATE/bug_report.yml +0 -66
  28. database_tycoon-0.2.1/.github/ISSUE_TEMPLATE/config.yml +0 -5
  29. database_tycoon-0.2.1/.github/ISSUE_TEMPLATE/feature_request.yml +0 -38
  30. database_tycoon-0.2.1/.github/PULL_REQUEST_TEMPLATE.md +0 -29
  31. database_tycoon-0.2.1/.github/pr-size.yml +0 -28
  32. database_tycoon-0.2.1/.github/pr-title.yml +0 -43
  33. database_tycoon-0.2.1/.github/workflows/ci.yml +0 -213
  34. database_tycoon-0.2.1/.github/workflows/e2e.yml +0 -25
  35. database_tycoon-0.2.1/.github/workflows/jira-sync.yml +0 -165
  36. database_tycoon-0.2.1/.github/workflows/nightly-e2e.yml +0 -104
  37. database_tycoon-0.2.1/.github/workflows/pr-compliance.yml +0 -164
  38. database_tycoon-0.2.1/.github/workflows/publish.yml +0 -101
  39. database_tycoon-0.2.1/.pre-commit-config.yaml +0 -57
  40. database_tycoon-0.2.1/CODE_OF_CONDUCT.md +0 -78
  41. database_tycoon-0.2.1/CONTRIBUTING.md +0 -221
  42. database_tycoon-0.2.1/SECURITY.md +0 -62
  43. database_tycoon-0.2.1/archive/README.md +0 -34
  44. database_tycoon-0.2.1/archive/pipeline-city-history.bundle +0 -0
  45. database_tycoon-0.2.1/contract/fixtures/demo.city.json +0 -985
  46. database_tycoon-0.2.1/contract/fixtures/demo.duckdb +0 -0
  47. database_tycoon-0.2.1/data/README.md +0 -51
  48. database_tycoon-0.2.1/dbt_project/README.md +0 -81
  49. database_tycoon-0.2.1/dbt_project/dbt_project.yml +0 -77
  50. database_tycoon-0.2.1/dbt_project/packages.yml +0 -8
  51. database_tycoon-0.2.1/dbt_project/profiles.yml +0 -12
  52. database_tycoon-0.2.1/docs/city/agent_tasks/index.md +0 -22
  53. database_tycoon-0.2.1/docs/city/agent_tasks/specification_citizen_request_framework.md +0 -141
  54. database_tycoon-0.2.1/docs/city/agent_tasks/task_contract_extension.md +0 -38
  55. database_tycoon-0.2.1/docs/city/agent_tasks/task_stats_ui.md +0 -37
  56. database_tycoon-0.2.1/docs/city/agent_tasks/task_streets_v4_planner.md +0 -62
  57. database_tycoon-0.2.1/docs/city/agent_tasks/task_streets_v4_renderer.md +0 -59
  58. database_tycoon-0.2.1/docs/city/agent_tasks/task_v5_reconciliation.md +0 -50
  59. database_tycoon-0.2.1/docs/city/agent_tasks/task_weather_module.md +0 -50
  60. database_tycoon-0.2.1/docs/city/city-json-v1.md +0 -569
  61. database_tycoon-0.2.1/docs/city/conventions.md +0 -32
  62. database_tycoon-0.2.1/docs/city/guide.md +0 -379
  63. database_tycoon-0.2.1/docs/city/handover.md +0 -503
  64. database_tycoon-0.2.1/docs/city/hud-design.md +0 -79
  65. database_tycoon-0.2.1/docs/city/index.md +0 -23
  66. database_tycoon-0.2.1/docs/city/local-ai-capacity.md +0 -144
  67. database_tycoon-0.2.1/docs/city/log.md +0 -1717
  68. database_tycoon-0.2.1/docs/city/release-notes-0.1.0.md +0 -261
  69. database_tycoon-0.2.1/docs/city/road-grammar.md +0 -169
  70. database_tycoon-0.2.1/docs/city/run-json-v1.md +0 -197
  71. database_tycoon-0.2.1/docs/city/semantic-roads.md +0 -154
  72. database_tycoon-0.2.1/docs/city/superpowers/index.md +0 -12
  73. database_tycoon-0.2.1/docs/city/superpowers/plans/2026-07-19-legibility-pass.md +0 -124
  74. database_tycoon-0.2.1/docs/city/superpowers/plans/2026-07-19-pipeline-city-bones.md +0 -3005
  75. database_tycoon-0.2.1/docs/city/superpowers/plans/2026-08-03-city-foundation.md +0 -1258
  76. database_tycoon-0.2.1/docs/city/superpowers/plans/2026-08-09-tycoon-city-addon.md +0 -1286
  77. database_tycoon-0.2.1/docs/city/superpowers/plans/index.md +0 -14
  78. database_tycoon-0.2.1/docs/city/superpowers/specs/2026-07-19-pipeline-city-bones-design.md +0 -228
  79. database_tycoon-0.2.1/docs/city/superpowers/specs/2026-08-03-city-foundation-design.md +0 -612
  80. database_tycoon-0.2.1/docs/city/superpowers/specs/2026-08-09-tycoon-city-addon-design.md +0 -227
  81. database_tycoon-0.2.1/docs/city/superpowers/specs/index.md +0 -13
  82. database_tycoon-0.2.1/docs/commands/city.md +0 -102
  83. database_tycoon-0.2.1/docs/commands/data/analyze.md +0 -90
  84. database_tycoon-0.2.1/docs/commands/data/history.md +0 -105
  85. database_tycoon-0.2.1/docs/commands/data/query.md +0 -126
  86. database_tycoon-0.2.1/docs/commands/data/run-all.md +0 -84
  87. database_tycoon-0.2.1/docs/commands/data/sources.md +0 -202
  88. database_tycoon-0.2.1/docs/commands/data/status.md +0 -83
  89. database_tycoon-0.2.1/docs/commands/data/sync.md +0 -210
  90. database_tycoon-0.2.1/docs/commands/data/transform.md +0 -97
  91. database_tycoon-0.2.1/docs/commands/docs.md +0 -88
  92. database_tycoon-0.2.1/docs/commands/doctor.md +0 -98
  93. database_tycoon-0.2.1/docs/commands/index.md +0 -67
  94. database_tycoon-0.2.1/docs/commands/init.md +0 -146
  95. database_tycoon-0.2.1/docs/commands/notify.md +0 -71
  96. database_tycoon-0.2.1/docs/commands/profiles.md +0 -107
  97. database_tycoon-0.2.1/docs/commands/register.md +0 -210
  98. database_tycoon-0.2.1/docs/commands/run.md +0 -80
  99. database_tycoon-0.2.1/docs/commands/schedule.md +0 -70
  100. database_tycoon-0.2.1/docs/commands/semantics.md +0 -148
  101. database_tycoon-0.2.1/docs/commands/setup.md +0 -69
  102. database_tycoon-0.2.1/docs/commands/start.md +0 -79
  103. database_tycoon-0.2.1/docs/getting-started/concepts.md +0 -104
  104. database_tycoon-0.2.1/docs/getting-started/first-project.md +0 -152
  105. database_tycoon-0.2.1/docs/getting-started/installation.md +0 -82
  106. database_tycoon-0.2.1/docs/index.md +0 -92
  107. database_tycoon-0.2.1/docs/ingestion-architecture.md +0 -124
  108. database_tycoon-0.2.1/docs/install_rill.sh +0 -18
  109. database_tycoon-0.2.1/docs/openmetadata.md +0 -59
  110. database_tycoon-0.2.1/docs/proposals/v0.1.10-scope.md +0 -84
  111. database_tycoon-0.2.1/docs/proposals/v0.1.6-and-v0.1.7-open-questions.md +0 -578
  112. database_tycoon-0.2.1/docs/proposals/v0.1.8-scope.md +0 -602
  113. database_tycoon-0.2.1/docs/proposals/v0.1.9-scope.md +0 -60
  114. database_tycoon-0.2.1/docs/publishing-to-pypi.md +0 -156
  115. database_tycoon-0.2.1/docs/recipes/csv-to-dashboard.md +0 -151
  116. database_tycoon-0.2.1/docs/recipes/existing-dbt-profile.md +0 -104
  117. database_tycoon-0.2.1/docs/recipes/existing-dbt-project.md +0 -196
  118. database_tycoon-0.2.1/docs/recipes/fivetran-metadata.md +0 -106
  119. database_tycoon-0.2.1/docs/recipes/layered-architecture.md +0 -173
  120. database_tycoon-0.2.1/docs/recipes/motherduck-cloud-sync.md +0 -153
  121. database_tycoon-0.2.1/docs/recipes/osi-export.md +0 -152
  122. database_tycoon-0.2.1/docs/reference/all-commands.md +0 -398
  123. database_tycoon-0.2.1/docs/reference/dependencies.md +0 -51
  124. database_tycoon-0.2.1/docs/reference/environment.md +0 -119
  125. database_tycoon-0.2.1/docs/reference/observability.md +0 -247
  126. database_tycoon-0.2.1/docs/reference/templates.md +0 -138
  127. database_tycoon-0.2.1/docs/reference/tycoon-yml.md +0 -255
  128. database_tycoon-0.2.1/docs/releases/v0.1.1.md +0 -135
  129. database_tycoon-0.2.1/docs/releases/v0.1.10.md +0 -66
  130. database_tycoon-0.2.1/docs/releases/v0.1.11.md +0 -68
  131. database_tycoon-0.2.1/docs/releases/v0.1.2.md +0 -389
  132. database_tycoon-0.2.1/docs/releases/v0.1.3.md +0 -495
  133. database_tycoon-0.2.1/docs/releases/v0.1.4.md +0 -320
  134. database_tycoon-0.2.1/docs/releases/v0.1.5.md +0 -286
  135. database_tycoon-0.2.1/docs/releases/v0.1.6.md +0 -343
  136. database_tycoon-0.2.1/docs/releases/v0.1.7.md +0 -130
  137. database_tycoon-0.2.1/docs/releases/v0.1.8.md +0 -47
  138. database_tycoon-0.2.1/docs/releases/v0.1.9.md +0 -93
  139. database_tycoon-0.2.1/docs/releases/v0.2.0.md +0 -66
  140. database_tycoon-0.2.1/docs/releases/v0.2.1.md +0 -156
  141. database_tycoon-0.2.1/mkdocs.yml +0 -147
  142. database_tycoon-0.2.1/rill/README.md +0 -29
  143. database_tycoon-0.2.1/rill/rill.yaml +0 -3
  144. database_tycoon-0.2.1/scripts/make_default_theme.py +0 -150
  145. database_tycoon-0.2.1/scripts/make_demo_tycoon.py +0 -344
  146. database_tycoon-0.2.1/scripts/pr_size_check.py +0 -300
  147. database_tycoon-0.2.1/scripts/pr_title_check.py +0 -251
  148. database_tycoon-0.2.1/scripts/readiness.py +0 -120
  149. database_tycoon-0.2.1/scripts/spike_cluster.py +0 -589
  150. database_tycoon-0.2.1/scripts/spike_road_defects.py +0 -175
  151. database_tycoon-0.2.1/scripts/sync_web_bundle.py +0 -63
  152. database_tycoon-0.2.1/scripts/update_contract_golden.py +0 -40
  153. database_tycoon-0.2.1/skills/dbt-dag-modeling/SKILL.md +0 -18
  154. database_tycoon-0.2.1/skills/playwright-e2e-testing/SKILL.md +0 -19
  155. database_tycoon-0.2.1/skills/repository-writing-style/SKILL.md +0 -249
  156. database_tycoon-0.2.1/skills/repository-writing-style/references/documentation.md +0 -156
  157. database_tycoon-0.2.1/skills/repository-writing-style/references/github-issues.md +0 -178
  158. database_tycoon-0.2.1/skills/repository-writing-style/references/pull-request-descriptions.md +0 -138
  159. database_tycoon-0.2.1/skills/repository-writing-style/references/release-notes.md +0 -169
  160. database_tycoon-0.2.1/skills/repository-writing-style/references/review-notes.md +0 -143
  161. database_tycoon-0.2.1/skills/threejs-3d-visualizer/SKILL.md +0 -22
  162. database_tycoon-0.2.1/spikes/README.md +0 -10
  163. database_tycoon-0.2.1/spikes/demo_tycoon_semantic.yml +0 -142
  164. database_tycoon-0.2.1/spikes/readiness.py +0 -486
  165. database_tycoon-0.2.1/spikes/spike_arterials.py +0 -342
  166. database_tycoon-0.2.1/spikes/spike_city_json.py +0 -300
  167. database_tycoon-0.2.1/spikes/spike_contact_sheet.py +0 -273
  168. database_tycoon-0.2.1/spikes/spike_fixtures.py +0 -313
  169. database_tycoon-0.2.1/spikes/spike_lattice.py +0 -346
  170. database_tycoon-0.2.1/spikes/spike_streetmetrics.py +0 -335
  171. database_tycoon-0.2.1/spikes/spike_streetpaint.py +0 -191
  172. database_tycoon-0.2.1/spikes/spike_v5plan.py +0 -222
  173. database_tycoon-0.2.1/spikes/spike_zoning.py +0 -403
  174. database_tycoon-0.2.1/src/tycoon/ingestion/source_installer.py +0 -76
  175. database_tycoon-0.2.1/src/tycoon/ingestion/source_manager.py +0 -280
  176. database_tycoon-0.2.1/src/tycoon/venv.py +0 -187
  177. database_tycoon-0.2.1/tests/README.md +0 -194
  178. database_tycoon-0.2.1/tests/__init__.py +0 -0
  179. database_tycoon-0.2.1/tests/__snapshots__/test_snapshots.ambr +0 -72
  180. database_tycoon-0.2.1/tests/conftest.py +0 -39
  181. database_tycoon-0.2.1/tests/test_check.py +0 -305
  182. database_tycoon-0.2.1/tests/test_city_command.py +0 -206
  183. database_tycoon-0.2.1/tests/test_cli.py +0 -50
  184. database_tycoon-0.2.1/tests/test_cli_surface.py +0 -313
  185. database_tycoon-0.2.1/tests/test_config.py +0 -109
  186. database_tycoon-0.2.1/tests/test_constants.py +0 -25
  187. database_tycoon-0.2.1/tests/test_db_command.py +0 -139
  188. database_tycoon-0.2.1/tests/test_dbt_profiles.py +0 -282
  189. database_tycoon-0.2.1/tests/test_e2e_demo_arc.py +0 -130
  190. database_tycoon-0.2.1/tests/test_events.py +0 -39
  191. database_tycoon-0.2.1/tests/test_explore.py +0 -1236
  192. database_tycoon-0.2.1/tests/test_fivetran.py +0 -394
  193. database_tycoon-0.2.1/tests/test_history.py +0 -623
  194. database_tycoon-0.2.1/tests/test_ingestion.py +0 -790
  195. database_tycoon-0.2.1/tests/test_init.py +0 -360
  196. database_tycoon-0.2.1/tests/test_layers.py +0 -264
  197. database_tycoon-0.2.1/tests/test_metadata_contract.py +0 -112
  198. database_tycoon-0.2.1/tests/test_notify.py +0 -180
  199. database_tycoon-0.2.1/tests/test_observability_manifest.py +0 -255
  200. database_tycoon-0.2.1/tests/test_observability_scaffold.py +0 -30
  201. database_tycoon-0.2.1/tests/test_observability_trace.py +0 -229
  202. database_tycoon-0.2.1/tests/test_osi_generator.py +0 -375
  203. database_tycoon-0.2.1/tests/test_project.py +0 -309
  204. database_tycoon-0.2.1/tests/test_project_validation.py +0 -363
  205. database_tycoon-0.2.1/tests/test_quack.py +0 -255
  206. database_tycoon-0.2.1/tests/test_recipe_doctests.py +0 -162
  207. database_tycoon-0.2.1/tests/test_register.py +0 -942
  208. database_tycoon-0.2.1/tests/test_schedule.py +0 -418
  209. database_tycoon-0.2.1/tests/test_setup.py +0 -254
  210. database_tycoon-0.2.1/tests/test_snapshots.py +0 -157
  211. database_tycoon-0.2.1/tests/test_sources.py +0 -854
  212. database_tycoon-0.2.1/tests/test_sync.py +0 -339
  213. database_tycoon-0.2.1/tests/test_templates_e2e.py +0 -498
  214. database_tycoon-0.2.1/tests/test_templates_smoke.py +0 -86
  215. database_tycoon-0.2.1/tests/test_utils.py +0 -153
  216. database_tycoon-0.2.1/tests/test_wizard.py +0 -277
  217. database_tycoon-0.2.1/tests/tycoon_city/__init__.py +0 -0
  218. database_tycoon-0.2.1/tests/tycoon_city/catalog/__init__.py +0 -0
  219. database_tycoon-0.2.1/tests/tycoon_city/catalog/test_column_lineage.py +0 -171
  220. database_tycoon-0.2.1/tests/tycoon_city/catalog/test_dbt_manifest.py +0 -209
  221. database_tycoon-0.2.1/tests/tycoon_city/catalog/test_load_context.py +0 -189
  222. database_tycoon-0.2.1/tests/tycoon_city/catalog/test_loader.py +0 -105
  223. database_tycoon-0.2.1/tests/tycoon_city/catalog/test_loader_errors.py +0 -146
  224. database_tycoon-0.2.1/tests/tycoon_city/catalog/test_osi.py +0 -411
  225. database_tycoon-0.2.1/tests/tycoon_city/catalog/test_real_catalog_hardening.py +0 -432
  226. database_tycoon-0.2.1/tests/tycoon_city/catalog/test_run_history.py +0 -285
  227. database_tycoon-0.2.1/tests/tycoon_city/catalog/test_sql_lineage.py +0 -170
  228. database_tycoon-0.2.1/tests/tycoon_city/catalog/test_tycoon_project.py +0 -100
  229. database_tycoon-0.2.1/tests/tycoon_city/export/__init__.py +0 -0
  230. database_tycoon-0.2.1/tests/tycoon_city/export/test_achievements.py +0 -460
  231. database_tycoon-0.2.1/tests/tycoon_city/export/test_build.py +0 -83
  232. database_tycoon-0.2.1/tests/tycoon_city/export/test_city_json.py +0 -738
  233. database_tycoon-0.2.1/tests/tycoon_city/export/test_cli.py +0 -155
  234. database_tycoon-0.2.1/tests/tycoon_city/export/test_export_no_pygame.py +0 -105
  235. database_tycoon-0.2.1/tests/tycoon_city/export/test_measured.py +0 -493
  236. database_tycoon-0.2.1/tests/tycoon_city/export/test_run_json.py +0 -356
  237. database_tycoon-0.2.1/tests/tycoon_city/export/test_semantic_blocks.py +0 -219
  238. database_tycoon-0.2.1/tests/tycoon_city/fixtures/__init__.py +0 -0
  239. database_tycoon-0.2.1/tests/tycoon_city/fixtures/tycoon_factory.py +0 -46
  240. database_tycoon-0.2.1/tests/tycoon_city/sim/__init__.py +0 -0
  241. database_tycoon-0.2.1/tests/tycoon_city/sim/test_build_replay.py +0 -86
  242. database_tycoon-0.2.1/tests/tycoon_city/sim/test_channels.py +0 -124
  243. database_tycoon-0.2.1/tests/tycoon_city/sim/test_city.py +0 -60
  244. database_tycoon-0.2.1/tests/tycoon_city/sim/test_contracts.py +0 -55
  245. database_tycoon-0.2.1/tests/tycoon_city/sim/test_generator.py +0 -139
  246. database_tycoon-0.2.1/tests/tycoon_city/sim/test_generator_properties.py +0 -328
  247. database_tycoon-0.2.1/tests/tycoon_city/sim/test_layout_depth.py +0 -304
  248. database_tycoon-0.2.1/tests/tycoon_city/sim/test_layout_plan.py +0 -588
  249. database_tycoon-0.2.1/tests/tycoon_city/sim/test_logistics.py +0 -34
  250. database_tycoon-0.2.1/tests/tycoon_city/sim/test_no_pygame.py +0 -16
  251. database_tycoon-0.2.1/tests/tycoon_city/sim/test_refresh.py +0 -59
  252. database_tycoon-0.2.1/tests/tycoon_city/sim/test_road_junctions.py +0 -98
  253. database_tycoon-0.2.1/tests/tycoon_city/sim/test_signals.py +0 -186
  254. database_tycoon-0.2.1/tests/tycoon_city/sim/test_temporal_signals.py +0 -236
  255. database_tycoon-0.2.1/tests/tycoon_city/sim/test_town_streets.py +0 -78
  256. database_tycoon-0.2.1/tests/tycoon_city/sim/test_town_v5_plan.py +0 -532
  257. database_tycoon-0.2.1/tests/tycoon_city/test_console_scripts.py +0 -31
  258. database_tycoon-0.2.1/tests/tycoon_city/test_demo_project.py +0 -359
  259. database_tycoon-0.2.1/tests/tycoon_city/test_pricing.py +0 -145
  260. database_tycoon-0.2.1/tests/tycoon_city/test_readiness.py +0 -96
  261. database_tycoon-0.2.1/tests/tycoon_city/test_smoke.py +0 -4
  262. database_tycoon-0.2.1/tests/tycoon_city/test_web_bundle.py +0 -22
  263. database_tycoon-0.2.1/tests/tycoon_city/test_web_layering.py +0 -64
  264. database_tycoon-0.2.1/tests/tycoon_city/test_webserve.py +0 -382
  265. database_tycoon-0.2.1/uv.lock +0 -1867
  266. database_tycoon-0.2.1/web/.gitignore +0 -5
  267. database_tycoon-0.2.1/web/e2e/bridgeshot.mjs +0 -12
  268. database_tycoon-0.2.1/web/e2e/closeshot.mjs +0 -11
  269. database_tycoon-0.2.1/web/e2e/fixtures/rich.city.json +0 -1711
  270. database_tycoon-0.2.1/web/e2e/fixtures/run.fail.json +0 -128
  271. database_tycoon-0.2.1/web/e2e/fixtures/run.ok.json +0 -132
  272. database_tycoon-0.2.1/web/e2e/fixtures/runs.index.json +0 -34
  273. database_tycoon-0.2.1/web/e2e/fixtures/usage.city.json +0 -1806
  274. database_tycoon-0.2.1/web/e2e/framing.spec.ts +0 -138
  275. database_tycoon-0.2.1/web/e2e/freshness.spec.ts +0 -137
  276. database_tycoon-0.2.1/web/e2e/helpers.ts +0 -36
  277. database_tycoon-0.2.1/web/e2e/hooks.spec.ts +0 -58
  278. database_tycoon-0.2.1/web/e2e/hud.spec.ts +0 -112
  279. database_tycoon-0.2.1/web/e2e/hudshot.mjs +0 -12
  280. database_tycoon-0.2.1/web/e2e/interactions.spec.ts +0 -188
  281. database_tycoon-0.2.1/web/e2e/lens.spec.ts +0 -355
  282. database_tycoon-0.2.1/web/e2e/mechanics.spec.ts +0 -28
  283. database_tycoon-0.2.1/web/e2e/osi.spec.ts +0 -243
  284. database_tycoon-0.2.1/web/e2e/refresh.spec.ts +0 -77
  285. database_tycoon-0.2.1/web/e2e/replayshot.mjs +0 -71
  286. database_tycoon-0.2.1/web/e2e/rich.spec.ts +0 -260
  287. database_tycoon-0.2.1/web/e2e/run_replay.spec.ts +0 -410
  288. database_tycoon-0.2.1/web/e2e/shot.mjs +0 -14
  289. database_tycoon-0.2.1/web/e2e/skybridges.spec.ts +0 -49
  290. database_tycoon-0.2.1/web/e2e/streets.spec.ts +0 -95
  291. database_tycoon-0.2.1/web/e2e/streetshot.mjs +0 -25
  292. database_tycoon-0.2.1/web/e2e/tour.spec.ts +0 -316
  293. database_tycoon-0.2.1/web/e2e/usage.spec.ts +0 -262
  294. database_tycoon-0.2.1/web/index.html +0 -330
  295. database_tycoon-0.2.1/web/package-lock.json +0 -1317
  296. database_tycoon-0.2.1/web/package.json +0 -25
  297. database_tycoon-0.2.1/web/playwright.config.ts +0 -40
  298. database_tycoon-0.2.1/web/src/boot/hooks.ts +0 -242
  299. database_tycoon-0.2.1/web/src/boot/hud.ts +0 -386
  300. database_tycoon-0.2.1/web/src/boot/input.ts +0 -37
  301. database_tycoon-0.2.1/web/src/boot/loop.ts +0 -64
  302. database_tycoon-0.2.1/web/src/boot/mount.ts +0 -137
  303. database_tycoon-0.2.1/web/src/boot/run_wiring.ts +0 -143
  304. database_tycoon-0.2.1/web/src/boot/setup.ts +0 -103
  305. database_tycoon-0.2.1/web/src/cameras.ts +0 -164
  306. database_tycoon-0.2.1/web/src/contract.ts +0 -458
  307. database_tycoon-0.2.1/web/src/contract_runs.ts +0 -170
  308. database_tycoon-0.2.1/web/src/main.ts +0 -87
  309. database_tycoon-0.2.1/web/src/mechanics/guests.ts +0 -108
  310. database_tycoon-0.2.1/web/src/meta.ts +0 -113
  311. database_tycoon-0.2.1/web/src/palette.ts +0 -45
  312. database_tycoon-0.2.1/web/src/picking.ts +0 -62
  313. database_tycoon-0.2.1/web/src/scene/buildings.ts +0 -227
  314. database_tycoon-0.2.1/web/src/scene/civic.ts +0 -82
  315. database_tycoon-0.2.1/web/src/scene/dispose.ts +0 -28
  316. database_tycoon-0.2.1/web/src/scene/districts.ts +0 -50
  317. database_tycoon-0.2.1/web/src/scene/facade.ts +0 -117
  318. database_tycoon-0.2.1/web/src/scene/fire.ts +0 -133
  319. database_tycoon-0.2.1/web/src/scene/firetrucks.ts +0 -197
  320. database_tycoon-0.2.1/web/src/scene/flow_overlay.ts +0 -128
  321. database_tycoon-0.2.1/web/src/scene/guest_layer.ts +0 -48
  322. database_tycoon-0.2.1/web/src/scene/plant.ts +0 -42
  323. database_tycoon-0.2.1/web/src/scene/road_mask.ts +0 -71
  324. database_tycoon-0.2.1/web/src/scene/silhouettes.ts +0 -97
  325. database_tycoon-0.2.1/web/src/scene/skybridges.ts +0 -86
  326. database_tycoon-0.2.1/web/src/scene/streetscape.ts +0 -345
  327. database_tycoon-0.2.1/web/src/scene/terrain.ts +0 -41
  328. database_tycoon-0.2.1/web/src/scene/terrain_atlas.ts +0 -335
  329. database_tycoon-0.2.1/web/src/scene/terrain_flat.ts +0 -72
  330. database_tycoon-0.2.1/web/src/scene/usage_overlay.ts +0 -275
  331. database_tycoon-0.2.1/web/src/scene/vehicles.ts +0 -47
  332. database_tycoon-0.2.1/web/src/scene/wear.ts +0 -90
  333. database_tycoon-0.2.1/web/src/scene/weather.ts +0 -181
  334. database_tycoon-0.2.1/web/src/sim/paths.ts +0 -23
  335. database_tycoon-0.2.1/web/src/sim/replay.ts +0 -61
  336. database_tycoon-0.2.1/web/src/sim/rng.ts +0 -30
  337. database_tycoon-0.2.1/web/src/sim/roadnet.ts +0 -86
  338. database_tycoon-0.2.1/web/src/sim/run_replay.ts +0 -249
  339. database_tycoon-0.2.1/web/src/sim/traffic.ts +0 -102
  340. database_tycoon-0.2.1/web/src/ui/graph.ts +0 -128
  341. database_tycoon-0.2.1/web/src/ui/health.ts +0 -173
  342. database_tycoon-0.2.1/web/src/ui/inspector.ts +0 -369
  343. database_tycoon-0.2.1/web/src/ui/legend.ts +0 -101
  344. database_tycoon-0.2.1/web/src/ui/lens_picker.ts +0 -139
  345. database_tycoon-0.2.1/web/src/ui/lenses.ts +0 -189
  346. database_tycoon-0.2.1/web/src/ui/overlays.ts +0 -71
  347. database_tycoon-0.2.1/web/src/ui/problems.ts +0 -272
  348. database_tycoon-0.2.1/web/src/ui/requests.ts +0 -59
  349. database_tycoon-0.2.1/web/src/ui/run_panel.ts +0 -281
  350. database_tycoon-0.2.1/web/src/ui/search.ts +0 -136
  351. database_tycoon-0.2.1/web/src/ui/stats.ts +0 -88
  352. database_tycoon-0.2.1/web/src/ui/tour.ts +0 -171
  353. database_tycoon-0.2.1/web/src/ui/tour_stops.ts +0 -265
  354. database_tycoon-0.2.1/web/src/usage.ts +0 -127
  355. database_tycoon-0.2.1/web/tsconfig.json +0 -13
  356. database_tycoon-0.2.1/web/vite.config.ts +0 -9
  357. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/.gitignore +0 -0
  358. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/LICENSE +0 -0
  359. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/README.md +0 -0
  360. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/THIRD-PARTY.md +0 -0
  361. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/__main__.py +0 -0
  362. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/cli.py +0 -0
  363. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/__init__.py +0 -0
  364. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/city.py +0 -0
  365. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/data.py +0 -0
  366. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/docs.py +0 -0
  367. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/explore.py +0 -0
  368. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/fivetran.py +0 -0
  369. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/notify.py +0 -0
  370. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/observability.py +0 -0
  371. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/profiles.py +0 -0
  372. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/run.py +0 -0
  373. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/schedule.py +0 -0
  374. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/start.py +0 -0
  375. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/stop.py +0 -0
  376. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/commands/sync_cmd.py +0 -0
  377. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/constants.py +0 -0
  378. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/core/__init__.py +0 -0
  379. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/core/metadata.py +0 -0
  380. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/dbt_profiles.py +0 -0
  381. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/ingestion/__init__.py +0 -0
  382. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/ingestion/catalog.py +0 -0
  383. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/ingestion/ducklake_config.py +0 -0
  384. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/ingestion/fivetran_client.py +0 -0
  385. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/ingestion/fivetran_sync.py +0 -0
  386. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/ingestion/mta_bus_speeds_pipeline.py +0 -0
  387. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/ingestion/mta_pipeline.py +0 -0
  388. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/ingestion/nyc_dot_pipeline.py +0 -0
  389. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/ingestion/sources/__init__.py +0 -0
  390. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/layers.py +0 -0
  391. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/metadata_backends/__init__.py +0 -0
  392. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/metadata_backends/duckdb_file.py +0 -0
  393. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/notify.py +0 -0
  394. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/observability.py +0 -0
  395. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/quack.py +0 -0
  396. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/scaffolding/__init__.py +0 -0
  397. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/scaffolding/dbt_generator.py +0 -0
  398. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/scaffolding/observability_dbt.py +0 -0
  399. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/scaffolding/osi_generator.py +0 -0
  400. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/scaffolding/schemas/osi-v0.1.1.schema.json +0 -0
  401. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/scaffolding/templates.py +0 -0
  402. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/schedule.py +0 -0
  403. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/sync.py +0 -0
  404. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/templates/csv-import/README +0 -0
  405. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/templates/csv-import/data/input/widgets.csv +0 -0
  406. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/templates/csv-import/dbt_project/dbt_project.yml +0 -0
  407. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/templates/csv-import/dbt_project/models/marts/fct_widget_summary.sql +0 -0
  408. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/templates/csv-import/dbt_project/models/marts/schema.yml +0 -0
  409. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/templates/csv-import/dbt_project/models/staging/schema.yml +0 -0
  410. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/templates/csv-import/dbt_project/models/staging/stg_widgets.sql +0 -0
  411. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/templates/csv-import/dbt_project/profiles.yml +0 -0
  412. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/templates/csv-import/tycoon.yml +0 -0
  413. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/templates/github-analytics/template.yml +0 -0
  414. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/templates/github-analytics/tycoon.yml +0 -0
  415. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/templates/nyc-transit/README +0 -0
  416. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/templates/nyc-transit/tycoon.yml +0 -0
  417. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/templates/weather-station/template.yml +0 -0
  418. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/templates/weather-station/tycoon.yml +0 -0
  419. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/utils/__init__.py +0 -0
  420. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/utils/console.py +0 -0
  421. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/utils/duckdb_utils.py +0 -0
  422. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon/utils/process.py +0 -0
  423. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/__init__.py +0 -0
  424. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/catalog/__init__.py +0 -0
  425. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/catalog/dbt_manifest.py +0 -0
  426. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/catalog/errors.py +0 -0
  427. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/catalog/loader.py +0 -0
  428. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/catalog/models.py +0 -0
  429. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/catalog/osi.py +0 -0
  430. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/catalog/retention.py +0 -0
  431. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/catalog/run_history.py +0 -0
  432. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/catalog/sql_lineage.py +0 -0
  433. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/catalog/tycoon_project.py +0 -0
  434. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/demo/__init__.py +0 -0
  435. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/demo/cli.py +0 -0
  436. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/demo/factory.py +0 -0
  437. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/demo/project.py +0 -0
  438. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/demo/semantic.yml +0 -0
  439. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/export/__init__.py +0 -0
  440. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/export/achievements.py +0 -0
  441. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/export/blocks.py +0 -0
  442. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/export/build.py +0 -0
  443. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/export/city_json.py +0 -0
  444. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/export/cli.py +0 -0
  445. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/export/measured.py +0 -0
  446. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/export/run_json.py +0 -0
  447. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/pricing.py +0 -0
  448. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/__init__.py +0 -0
  449. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/build_replay.py +0 -0
  450. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/channels.py +0 -0
  451. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/city.py +0 -0
  452. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/contracts.py +0 -0
  453. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/generator.py +0 -0
  454. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/layout.py +0 -0
  455. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/logistics.py +0 -0
  456. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/road_junctions.py +0 -0
  457. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/schemas/request_schema.json +0 -0
  458. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/schemas/shipment_schema.json +0 -0
  459. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/signals.py +0 -0
  460. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/tiles.py +0 -0
  461. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_arterials.py +0 -0
  462. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_blocks.py +0 -0
  463. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_endings.py +0 -0
  464. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_frontage.py +0 -0
  465. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_hierarchy.py +0 -0
  466. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_network.py +0 -0
  467. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_plan.py +0 -0
  468. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_precincts.py +0 -0
  469. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_rows.py +0 -0
  470. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_streets.py +0 -0
  471. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_texture.py +0 -0
  472. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_v5_plan.py +0 -0
  473. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_zoning.py +0 -0
  474. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/theme_data.py +0 -0
  475. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/themes/default/spritesheet.png +0 -0
  476. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/themes/default/theme.toml +0 -0
  477. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/web_dist/assets/index-CosJ8RPj.js +0 -0
  478. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/web_dist/index.html +0 -0
  479. {database_tycoon-0.2.1 → database_tycoon-0.2.2}/src/tycoon_city/webserve.py +0 -0
@@ -1,5 +1,84 @@
1
1
  All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
2
2
 
3
+ ## [0.2.2] - 2026-10-09
4
+
5
+ _Headline: **project-local environments**. Every tycoon project now gets its own uv-managed `.venv`, and a catalog source's code and dependencies live inside the project, so deleting `.venv` and running `uv sync` rebuilds the same environment. `--no-prompt` installs what it registers instead of skipping it, and `tycoon data sources migrate` moves an existing project over. Also here: a filesystem load that finds nothing no longer empties a table that already held rows, and a zero-row run is flagged instead of reading as a healthy sync._
6
+
7
+ ### Added
8
+
9
+ - **Every project gets its own uv-managed environment** ([#261][], [#262][], PRs [#270][], [#266][], [#271][]). `tycoon init` now seeds a `pyproject.toml` and builds a project-local `.venv` automatically right after scaffolding, via `uv sync`, instead of requiring a separate manual `tycoon setup` call. Adding a source used to succeed while leaving its actual dependencies uninstalled, the first `tycoon data sources run` would fail on a missing import with nothing having warned beforehand; an isolated, reproducible environment per project is what closes that gap. `tycoon setup`/`tycoon doctor --fix` build the same way. `tycoon init --no-venv` opts out entirely.
10
+ - **Downloaded source code and a source's dependencies are now project-local and durably tracked** ([#263][], [#264][], PRs [#267][], [#268][]). A catalog source's code used to live in a single `~/.tycoon/sources/` shared across every tycoon project on the machine; once a project has its own `.venv`, it downloads into `<project>/.tycoon/sources/` instead. Its dependencies install via `uv add` into the project's own `pyproject.toml`, not an ephemeral `pip install`, so deleting `.venv` and running `uv sync` reproduces the exact same environment, source dependencies included. A project without its own `.venv` yet keeps the old shared-location behavior unchanged. A source installed into the shared location before the project picked up its `.venv` doesn't move on its own; `tycoon data sources migrate <type>` copies it across, and `tycoon data sources run` now points at that command instead of reporting "not installed" when it finds the source sitting in the old shared directory. The dependency install itself now checks for the project's `pyproject.toml` rather than just a `.venv` before choosing `uv add` over `uv pip install` (a hand-made `.venv` with no `pyproject.toml` made `uv add` fail outright), and a failed install prints uv's own error instead of a generic message, so a version conflict, a missing `pyproject.toml`, and a timeout no longer look identical.
11
+ - **A project on the old environment model gets a warning, not silence** ([#265][], PR [#269][]). `tycoon doctor` reports plainly whether a project has its own `.venv` and whether tycoon is actually running from it, not just whether a `.venv` directory exists, and the same warning fires right before a pipeline run or a source install falls back to the old shared/ambient behavior, pointing at `tycoon setup`. Nothing forces a migration.
12
+ - **`--no-prompt` installs a source's dependencies instead of silently skipping them** ([#272][], PR [#273][]). `tycoon data sources add <type> --no-prompt` used to register the source in `tycoon.yml` without ever downloading or installing anything, since the whole install step was skipped along with the confirmation prompt, the same CI flag that's supposed to make this unattended. It now installs automatically, matching every other `--no-prompt` default in this command. A failed install now fails the command and removes the source from `tycoon.yml` (or restores whatever `--force` was about to overwrite), instead of exiting 0 with a source registered but not actually installed. With no project `.venv`/`pyproject.toml` of its own, a source's dependencies and dlt extras are no longer auto-installed into the shared/ambient environment unattended; that case skips and points at `tycoon setup` instead.
13
+ - **`--fail-on-empty` for orchestrated runs** ([#240][], PR [#300][]). `tycoon data sources run`, `tycoon data sources run-all` and `tycoon data run-all` accept an opt-in `--fail-on-empty`. With it, a local filesystem glob that matches no files stops the source before anything loads, and a run where a `replace` resource loads zero rows fails after it, even if other resources in the run loaded some. An append, merge, or incremental run with no new records still passes. Either way the command exits 1 with an error naming the problem, and the ledger records `run_failed` instead of `run_completed`. Without the flag, behaviour is unchanged: an empty match exits 0 with "nothing to load".
14
+ - **A root `CLAUDE.md` for coding agents** ([#245][], PR [#280][]). It points agents at `CONTRIBUTING.md`, the PR template, the writing-style skill and the city conventions, and holds no rules of its own.
15
+
16
+ ### Changed
17
+
18
+ - **A run that loads zero rows no longer reads as a healthy sync** ([#240][], PR [#299][]). The `run_completed` ledger event now carries `zero_rows` and a `warnings` list. `zero_rows` is set when a run can have emptied a table: a resource loaded with `replace` got zero rows, even if another resource in the same run loaded some (a warning names each such table), or a glob matched no files. An append, merge, or incremental run that finds no new records is a normal sync and is not flagged. A filesystem run that skipped every resource because nothing matched now records a `run_completed` with `zero_rows: true` and a warning naming each unmatched glob, where it previously left a lone `run_started`. `tycoon data status` no longer counts a zero-row run as the Last Sync, so freshness stays at the last run that loaded something, and it flags a source whose latest run loaded nothing. `tycoon data history` shows such a run with a yellow `!` and "0 rows, nothing loaded" instead of a green tick, and `history show` prints its warnings. Events written before this change read back with `zero_rows: false`.
19
+ - **The build is pinned and the sdist trimmed** ([#257][], [#258][], PR [#280][]). hatchling is pinned in `[build-system] requires`, since an unpinned upgrade moved the wheel's `Metadata-Version` from 2.4 to 2.5 between 0.1.11 and 0.2.0 and the publisher rejected it. The sdist holds `src/` plus the package metadata only, 523 KB instead of 2.9 MB, and a wheel built from it matches one built from the tree.
20
+
21
+ ### Fixed
22
+
23
+ - **A filesystem source whose `path` is a single file loads that file** ([#238][], PR [#292][]). `tycoon data sources add filesystem` stores whatever you answer at the path prompt, so answering `data/sales.csv` produced a source that ran to a green "load complete" with zero rows, and with `replace` it emptied a table that had already loaded. A `path` naming an existing local file, as a plain path or a `file://` URL, is now read as its directory plus that file name, in both the flat `config` shape and each `resources:` entry, and a resource pointing at a file no longer needs a `file_glob`. Setting a `file_glob` alongside a file `path` fails with an error saying `path` must be a directory when `file_glob` is set, since that glob could never match anything. Remote URLs are unchanged.
24
+ - **A glob that matches no local files no longer empties the table** ([#240][], PR [#293][]). Filesystem sources load with `replace`, so a rerun whose glob matched nothing (a typo, or a directory that emptied out) still ran and truncated the table that already held rows, while reporting "load complete". A local resource (a plain path or a `file://` URL) whose glob matches no files is now left out of the run, with a warning that its existing table was left as it was. Other resources in the same source still load. When nothing in the source matched, the pipeline doesn't run at all and `tycoon data sources run` exits 0 with "nothing to load" instead of "load complete". Remote buckets behave as before.
25
+ - **`--max-records` now caps `filesystem`, `rest_api`, and `sql_database` sources** ([#239][], PR [#294][]). `tycoon data sources run --max-records N` and both `run-all` commands printed the record cap for these source types and then loaded every row. Each resource now lands at most N rows: `sql_database` pushes the cap into the query as a `LIMIT`, `rest_api` stops requesting pages once it has N rows, and `filesystem` still reads its matched files in full but loads only the first N rows. A negative `--max-records` is now a usage error.
26
+ - **`tycoon data query`, `data schema` and `data clean` work with a MotherDuck warehouse or raw database** ([#70][], PR [#296][]). With `database.warehouse: md:<name>` or `database.raw: md:<name>_raw` in tycoon.yml, tycoon joined the connection string onto the project root and looked for a local file of that name, so `data query` failed with "Database not found" and `data clean --all` could delete a local file called `md:<name>_raw`. The config now has `warehouse_target` and `raw_target`, which pass an `md:` string through to DuckDB unchanged, and `local_db` is `None` for a MotherDuck warehouse instead of a made-up path. `data query` (including `--raw`) and `data schema` connect to MotherDuck directly. A MotherDuck query isn't opened with `read_only=True`, since DuckDB only supports that flag for local files, so what it can change depends on your token's permissions. `data clean` skips a MotherDuck warehouse or raw database with a message and still removes the local files, and `tycoon semantics scaffold` says MotherDuck isn't supported yet rather than reporting a missing file. Commands that still need a local raw file, such as `data sources run` and `data analyze`, now stop with a clear error for an `md:` raw database instead of writing a local file named after it. Printed MotherDuck targets and DuckDB errors drop the `?` query string, so a `motherduck_token` in tycoon.yml never reaches the terminal.
27
+ - **Saving `tycoon.yml` keeps your comments and formatting** ([#177][], PR [#294][]). Commands that save `tycoon.yml`, such as `tycoon data sources add` and `tycoon data sources remove`, no longer erase your comments and blank lines. The file is now updated in place with ruamel.yaml, so only the values tycoon changes are rewritten, a comment above the next section stays where it was when a source is added or removed, the file's indentation is kept and long lines are not wrapped, and a `${ENV}` reference stays a reference instead of being written back as its expanded value.
28
+ - **Rill source YAMLs no longer hard-code an absolute path** ([#275][], PR [#276][]). `tycoon` wrote its generated Rill `local_file` sources with the full path to the exported Parquet (`path: /Users/you/project/data/parquet/_tycoon/dbt_nodes.parquet`). Those files are committed to the project repo, so the absolute path broke on every other clone and in CI, and rewrote itself into the diff each time observability regenerated. The emitted path is now relative to the Rill project directory (`path: ../data/parquet/_tycoon/dbt_nodes.parquet`), which is what Rill resolves `local_file` paths against anyway. Affects both the observability sources and the per-table sources from `data analyze --rill`. A project carrying absolute paths picks up the portable form on its next regeneration.
29
+ - **`tycoon city`'s cold build no longer re-parses the whole schema per column** ([#274][], PR [#276][]). `derive_column_lineage` passed a plain `dict` as sqlglot's `schema=`, and `ensure_schema()` builds a fresh `MappingSchema` (normalizing, and so `parse_one`-ing, every identifier in the mapping) every time it is handed a dict. The entire warehouse schema was therefore re-parsed once per traced column. Building the `MappingSchema` once and reusing it cuts a cold `city.json` on an 87-object catalog from **43.6s to 10.3s** against sqlglot 27.29.0, and from 9.9s to 6.5s against 30.15.0. Column edges are byte-identical before and after (1,023 edges, same digest): this removes redundant work, it does not change lineage.
30
+ - **A quoted `motherduck_token` value is masked in printed errors** ([#345][], PR [#352][]). tycoon masks `motherduck_token=` values in DuckDB error text before printing it, but a quoted value such as `motherduck_token='...'`, `motherduck_token="..."` or `SET motherduck_token = '...'` passed through with the token intact. The value is now masked inside its quotes, with the key and the quotes kept, for any key case and with spaces around `=`. Other keys are not touched.
31
+ - **A second catalog source's requirements are now recorded and installed** ([#364][], PR [#368][]). `dlt init` writes the sources dir's shared `requirements.txt` only when the dir has no dependency system yet, so the first source added wrote the file and every later source's `dlt init` left it alone: tycoon then re-installed the first source's requirements and the new source's own were never installed, failing its first run on a missing import. `install_source` now parks the shared file while `dlt init` runs, so dlt writes the new source's requirements fresh, then merges the parked lines back in; the shared file becomes the union of every source added so far, and the install that follows covers the new source. A run killed mid-install leaves a `requirements.txt.tycoon-parked` file that the next install recovers.
32
+ - **Interactive `sources add` says where a dlt extra is going before installing it** ([#366][], PR [#367][]). With a hand-made `.venv` and no `pyproject.toml`, the interactive path passed a `.venv`-only check, so the "shared/ambient environment" warning never showed and a plain "Install it now?" installed into whatever environment was active. The gate now requires `pyproject.toml` and `.venv` together, the same pair as the requirements path (#268) and the `--no-prompt` skip (#272), and the confirm itself names the destination: "into this project's .venv" or "into the shared/ambient environment". `--no-prompt` behaviour is unchanged.
33
+ - **Source install hints name a command that exists** ([#359][], fixed in PR [#273][]). When a catalog source's download failed or was skipped, `tycoon data sources add` told you to run `tycoon data sources catalog install <type>`, which isn't a command, so following the advice failed with a usage error. The hints now point at `tycoon data sources add <type> --force --no-prompt`, and a test runs each printed hint through `--help` so a stale command name fails CI.
34
+ - **A failed source download says why** ([#365][], fixed in PR [#273][]). When `dlt init` failed or timed out during `tycoon data sources add`, tycoon printed only "Failed to download '<type>'.", so an offline run and a mistyped source name looked identical. It now prints dlt's own last error line, such as a connection failure, and a timeout names the limit it hit.
35
+ - **`tycoon data sources migrate` carries a source's dependencies and leaves your files alone** ([#358][], PR [#361][]). `migrate` copied only the source's package directory, so its `requirements.txt` never reached the project and nothing installed those packages into the project's `.venv`, and a migrated source that needed them failed on import. It now carries `requirements.txt` (adding any lines missing from the project's copy) and installs it the same way `sources add` does. If that install fails, `migrate` exits 1 with uv's error and removes the package it just copied, so a rerun starts over. It also carries the sources dir's `.gitignore` and `.dlt/config.toml` when the project has none, never overwriting existing ones and never copying `.dlt/secrets.toml`. A destination directory that exists without a `_run.py` used to be deleted before the copy; `migrate` now refuses, names the directory, and leaves it untouched.
36
+ - **`tycoon register` keeps your comments in `tycoon.yml` too** ([#297][], PR [#369][]). `register dbt`, `register warehouse` and `register rill` rewrote the file with a plain YAML dump, dropping every comment and blank line. They now update it in place the same way as `sources add` and `sources remove`.
37
+
38
+ [#70]: https://github.com/Database-Tycoon/tycoon-cli/issues/70
39
+ [#177]: https://github.com/Database-Tycoon/tycoon-cli/issues/177
40
+ [#238]: https://github.com/Database-Tycoon/tycoon-cli/issues/238
41
+ [#239]: https://github.com/Database-Tycoon/tycoon-cli/issues/239
42
+ [#240]: https://github.com/Database-Tycoon/tycoon-cli/issues/240
43
+ [#245]: https://github.com/Database-Tycoon/tycoon-cli/issues/245
44
+ [#257]: https://github.com/Database-Tycoon/tycoon-cli/issues/257
45
+ [#258]: https://github.com/Database-Tycoon/tycoon-cli/issues/258
46
+ [#261]: https://github.com/Database-Tycoon/tycoon-cli/issues/261
47
+ [#262]: https://github.com/Database-Tycoon/tycoon-cli/issues/262
48
+ [#263]: https://github.com/Database-Tycoon/tycoon-cli/issues/263
49
+ [#264]: https://github.com/Database-Tycoon/tycoon-cli/issues/264
50
+ [#265]: https://github.com/Database-Tycoon/tycoon-cli/issues/265
51
+ [#272]: https://github.com/Database-Tycoon/tycoon-cli/issues/272
52
+ [#274]: https://github.com/Database-Tycoon/tycoon-cli/issues/274
53
+ [#275]: https://github.com/Database-Tycoon/tycoon-cli/issues/275
54
+ [#297]: https://github.com/Database-Tycoon/tycoon-cli/issues/297
55
+ [#345]: https://github.com/Database-Tycoon/tycoon-cli/issues/345
56
+ [#358]: https://github.com/Database-Tycoon/tycoon-cli/issues/358
57
+ [#359]: https://github.com/Database-Tycoon/tycoon-cli/issues/359
58
+ [#364]: https://github.com/Database-Tycoon/tycoon-cli/issues/364
59
+ [#365]: https://github.com/Database-Tycoon/tycoon-cli/issues/365
60
+ [#366]: https://github.com/Database-Tycoon/tycoon-cli/issues/366
61
+ [#266]: https://github.com/Database-Tycoon/tycoon-cli/pull/266
62
+ [#267]: https://github.com/Database-Tycoon/tycoon-cli/pull/267
63
+ [#268]: https://github.com/Database-Tycoon/tycoon-cli/pull/268
64
+ [#269]: https://github.com/Database-Tycoon/tycoon-cli/pull/269
65
+ [#270]: https://github.com/Database-Tycoon/tycoon-cli/pull/270
66
+ [#271]: https://github.com/Database-Tycoon/tycoon-cli/pull/271
67
+ [#273]: https://github.com/Database-Tycoon/tycoon-cli/pull/273
68
+ [#276]: https://github.com/Database-Tycoon/tycoon-cli/pull/276
69
+ [#280]: https://github.com/Database-Tycoon/tycoon-cli/pull/280
70
+ [#292]: https://github.com/Database-Tycoon/tycoon-cli/pull/292
71
+ [#293]: https://github.com/Database-Tycoon/tycoon-cli/pull/293
72
+ [#294]: https://github.com/Database-Tycoon/tycoon-cli/pull/294
73
+ [#296]: https://github.com/Database-Tycoon/tycoon-cli/pull/296
74
+ [#299]: https://github.com/Database-Tycoon/tycoon-cli/pull/299
75
+ [#300]: https://github.com/Database-Tycoon/tycoon-cli/pull/300
76
+ [#352]: https://github.com/Database-Tycoon/tycoon-cli/pull/352
77
+ [#361]: https://github.com/Database-Tycoon/tycoon-cli/pull/361
78
+ [#367]: https://github.com/Database-Tycoon/tycoon-cli/pull/367
79
+ [#368]: https://github.com/Database-Tycoon/tycoon-cli/pull/368
80
+ [#369]: https://github.com/Database-Tycoon/tycoon-cli/pull/369
81
+
3
82
  ## [0.2.1] - 2026-09-16
4
83
 
5
84
  _Headline: **multi-resource filesystem sources + validated config**. A filesystem source can now declare several named resources and load them all in a single run, `sources add` walks you through them interactively, and JSONL joins CSV and Parquet. Config that used to be quietly defaulted is validated instead — the one change here that can break an existing project. Also here: `tycoon city` lays the city out by pipeline depth, so the city looks different from 0.2.0 while the `city.json` contract stays the same._
@@ -74,6 +153,9 @@ _Headline: **multi-resource filesystem sources + validated config**. A filesyste
74
153
  [#214]: https://github.com/Database-Tycoon/tycoon-cli/pull/214
75
154
  [#216]: https://github.com/Database-Tycoon/tycoon-cli/pull/216
76
155
  [#247]: https://github.com/Database-Tycoon/tycoon-cli/pull/247
156
+ [#275]: https://github.com/Database-Tycoon/tycoon-cli/issues/275
157
+ [#276]: https://github.com/Database-Tycoon/tycoon-cli/pull/276
158
+ [#274]: https://github.com/Database-Tycoon/tycoon-cli/issues/274
77
159
 
78
160
  ## [0.2.0] - 2026-08-28
79
161
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: database-tycoon
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Tycoon CLI — local-first analytics CLI that adapts to your existing data stack
5
5
  Project-URL: Homepage, https://github.com/Database-Tycoon/tycoon-cli
6
6
  Project-URL: Repository, https://github.com/Database-Tycoon/tycoon-cli
@@ -1,10 +1,14 @@
1
1
  [build-system]
2
- requires = ["hatchling"]
2
+ # Pinned: the backend writes the wheel's Metadata-Version, and an unpinned
3
+ # hatchling floated from 2.4 (v0.1.11) to 2.5 (v0.2.0) with no change on our
4
+ # side, which the publisher then rejected (gh-257). Bump deliberately, and
5
+ # re-check `unzip -p dist/*.whl '*/METADATA' | head -2` against the publisher.
6
+ requires = ["hatchling==1.32.4"]
3
7
  build-backend = "hatchling.build"
4
8
 
5
9
  [project]
6
10
  name = "database-tycoon"
7
- version = "0.2.1"
11
+ version = "0.2.2"
8
12
  description = "Tycoon CLI — local-first analytics CLI that adapts to your existing data stack"
9
13
  readme = "README.md"
10
14
  license = {text = "MIT"}
@@ -75,6 +79,16 @@ tycoon = "tycoon.cli:app"
75
79
  tycoon-city = "tycoon_city.webserve:main"
76
80
  tycoon-city-export = "tycoon_city.export.cli:main"
77
81
 
82
+ [tool.hatch.build.targets.sdist]
83
+ # The sdist carries what the wheel build needs and the metadata a consumer
84
+ # expects, nothing else. hatchling's default is every tracked file the root
85
+ # .gitignore does not exclude, which is why a working-tree build with
86
+ # web/node_modules or site/ present shipped a 24 MB sdist locally, and why
87
+ # the published one carried web/, docs/, tests/, spikes/ and the dbt demo
88
+ # (gh-258). Wheel-relevant data (web_dist, themes, demo/semantic.yml) lives
89
+ # under src/ and is included.
90
+ only-include = ["src", "pyproject.toml", "README.md", "LICENSE", "CHANGELOG.md", "THIRD-PARTY.md"]
91
+
78
92
  [tool.hatch.build.targets.wheel]
79
93
  # Non-Python files inside tycoon_city ship too, and three things depend on it:
80
94
  # the built web bundle (`web_dist/`), the themes (`themes/*` — spritesheet plus
@@ -1,3 +1,3 @@
1
1
  """Database Tycoon — local-first analytics CLI for exploring any dataset."""
2
2
 
3
- __version__ = "0.2.1"
3
+ __version__ = "0.2.2"
@@ -9,9 +9,9 @@ import duckdb
9
9
  import typer
10
10
  from rich.table import Table
11
11
 
12
- from tycoon.config import config
12
+ from tycoon.config import config, display_target, redact_secrets
13
13
  from tycoon.utils.console import console, error, header, info, status_table, success, warn
14
- from tycoon.utils.duckdb_utils import db_file_size_mb, get_row_count, get_tables
14
+ from tycoon.utils.duckdb_utils import db_file_size_mb, get_row_count, get_tables, quote_identifier
15
15
 
16
16
 
17
17
  def _resolve_source_db(source_name: str) -> Path | None:
@@ -27,15 +27,19 @@ def _resolve_source_db(source_name: str) -> Path | None:
27
27
  normalized = source_name.replace("-", "_")
28
28
  source_schema = f"raw_{normalized}"
29
29
 
30
- if config.raw_db.exists() and _has_schema(config.raw_db, source_schema):
31
- return config.raw_db
30
+ # A MotherDuck raw database is not a file, so only local candidates apply.
31
+ raw_db = None if config.raw_is_motherduck else config.raw_db
32
+ if raw_db is not None and raw_db.exists() and _has_schema(raw_db, source_schema):
33
+ return raw_db
32
34
 
33
35
  per_source = config.data_dir / f"raw_{normalized}.duckdb"
34
36
  if per_source.exists():
35
37
  return per_source
36
38
 
37
39
  if config.data_dir.exists():
38
- skip = {config.raw_db.resolve(), per_source.resolve()}
40
+ skip = {per_source.resolve()}
41
+ if raw_db is not None:
42
+ skip.add(raw_db.resolve())
39
43
  for candidate in sorted(config.data_dir.glob("*.duckdb")):
40
44
  if candidate.resolve() in skip:
41
45
  continue
@@ -70,8 +74,16 @@ def schema() -> None:
70
74
  header("Database Schema")
71
75
 
72
76
  rows: list[tuple[str, str, str]] = []
73
-
74
- for db_path, label in [(config.raw_db, "Raw"), (config.local_db, "Warehouse")]:
77
+ raw_db = None if config.raw_is_motherduck else config.raw_db
78
+ local_db = config.local_db
79
+
80
+ for db_path, label, target in [
81
+ (raw_db, "Raw", config.raw_target),
82
+ (local_db, "Warehouse", config.warehouse_target),
83
+ ]:
84
+ if db_path is None:
85
+ rows.extend(_motherduck_schema_rows(target, label))
86
+ continue
75
87
  size = db_file_size_mb(db_path)
76
88
  if size is not None:
77
89
  rows.append((f"{label} database", "OK", f"{size:.1f} MB"))
@@ -91,7 +103,7 @@ def schema() -> None:
91
103
 
92
104
  # Also scan for any other .duckdb files in the data directory
93
105
  data_dir = config.data_dir
94
- seen = {config.raw_db.resolve(), config.local_db.resolve()}
106
+ seen = {p.resolve() for p in (raw_db, local_db) if p is not None}
95
107
  if data_dir.exists():
96
108
  for db_file in sorted(data_dir.glob("*.duckdb")):
97
109
  if db_file.resolve() in seen:
@@ -115,6 +127,33 @@ def schema() -> None:
115
127
  console.print(status_table(rows, title="Database Schema"))
116
128
 
117
129
 
130
+ def _motherduck_schema_rows(target: str, label: str) -> list[tuple[str, str, str]]:
131
+ """Schema rows for a MotherDuck database, read over one connection."""
132
+ try:
133
+ con = duckdb.connect(target)
134
+ try:
135
+ # An md: connection attaches every database on the account, so
136
+ # scope the listing to the one the target names.
137
+ tables = con.execute(
138
+ "SELECT table_schema, table_name FROM information_schema.tables "
139
+ "WHERE table_catalog = current_database() "
140
+ "AND table_schema NOT IN ('information_schema', 'pg_catalog') "
141
+ "ORDER BY table_schema, table_name"
142
+ ).fetchall()
143
+ rows = [
144
+ (f"{label} database", "OK", f"MotherDuck {display_target(target)}"),
145
+ (" Tables", "", f"{len(tables)}"),
146
+ ]
147
+ for s, table in tables:
148
+ count = con.execute(f"SELECT count(*) FROM {quote_identifier(s)}.{quote_identifier(table)}").fetchone()
149
+ rows.append((f" {s}.{table}", "", f"{count[0]:,} rows" if count else "empty"))
150
+ finally:
151
+ con.close()
152
+ except duckdb.Error as exc:
153
+ return [(f"{label} database", "WARN", f"MotherDuck {display_target(target)}: {redact_secrets(str(exc))}")]
154
+ return rows
155
+
156
+
118
157
  # ---------------------------------------------------------------------------
119
158
  # query
120
159
  # ---------------------------------------------------------------------------
@@ -135,8 +174,13 @@ def query(
135
174
  typer.Option("--db", help="Path to a DuckDB file to query directly."),
136
175
  ] = None,
137
176
  ) -> None:
138
- """Run a read-only SQL query against the warehouse, raw, or a source database."""
177
+ """Run a SQL query against the warehouse, raw, or a source database.
178
+
179
+ Local DuckDB files open read-only. A MotherDuck database runs with the
180
+ permissions of your MotherDuck token.
181
+ """
139
182
  is_warehouse = False
183
+ db_path: Path | None
140
184
  if db:
141
185
  db_path = db
142
186
  label = db_path.name
@@ -149,12 +193,16 @@ def query(
149
193
  db_path = resolved
150
194
  label = f"raw ({source})"
151
195
  elif raw:
152
- db_path = config.raw_db
196
+ db_path = None if config.raw_is_motherduck else config.raw_db
153
197
  label = "raw"
154
198
  else:
155
199
  db_path = config.local_db
156
200
  label = "warehouse"
157
201
  is_warehouse = True
202
+ if db_path is not None:
203
+ target = str(db_path)
204
+ else:
205
+ target = config.raw_target if raw else config.warehouse_target
158
206
 
159
207
  # When a Quack server is holding the warehouse (e.g. `tycoon start` is
160
208
  # running), the file is exclusively locked — opening it in-process would
@@ -162,24 +210,34 @@ def query(
162
210
  # warehouse is served; --raw / --source / --db stay file-based.
163
211
  from tycoon import quack
164
212
 
165
- quack_token = quack.load_token(config.root) if is_warehouse else None
213
+ quack_token = quack.load_token(config.root) if is_warehouse and db_path is not None else None
166
214
  via_quack = bool(quack_token) and quack.is_server_running()
167
215
 
168
- if not via_quack and not db_path.exists():
216
+ if db_path is not None and not via_quack and not db_path.exists():
169
217
  error(f"Database not found at {db_path}")
170
218
  raise typer.Exit(1)
171
219
 
172
220
  if via_quack:
173
221
  label = f"{label} (Quack)"
222
+ elif db_path is None:
223
+ label = f"{label} (MotherDuck)"
174
224
 
175
225
  try:
176
- con = quack.connect(quack_token) if via_quack else duckdb.connect(str(db_path), read_only=True)
226
+ if via_quack:
227
+ con = quack.connect(quack_token)
228
+ elif db_path is None:
229
+ # read_only=True is a local-file flag: an md: URL opens an
230
+ # in-memory local database, which DuckDB refuses to start
231
+ # read-only. Write protection comes from the token's scope.
232
+ con = duckdb.connect(target)
233
+ else:
234
+ con = duckdb.connect(target, read_only=True)
177
235
  result = con.execute(sql)
178
236
  columns = [desc[0] for desc in result.description]
179
237
  rows = result.fetchall()
180
238
  con.close()
181
239
  except duckdb.Error as exc:
182
- error(f"Query failed: {exc}")
240
+ error(f"Query failed: {redact_secrets(str(exc))}")
183
241
  raise typer.Exit(1) from exc
184
242
 
185
243
  # Build Rich table
@@ -241,15 +299,30 @@ def clean(
241
299
 
242
300
  targets: list[tuple[Path, str]] = []
243
301
 
244
- if raw or all_:
302
+ raw_remote = (raw or all_) and config.raw_is_motherduck
303
+ if (raw or all_) and not raw_remote:
245
304
  targets.append((config.raw_db, "raw database"))
246
- if local or all_:
247
- targets.append((config.local_db, "local database"))
305
+ local_db = config.local_db
306
+ if (local or all_) and local_db is not None:
307
+ targets.append((local_db, "local database"))
248
308
  if metadata:
249
309
  targets.append((metadata_db_path(config.root), "observability metadata DB"))
250
310
 
251
311
  # Show what will be deleted
252
312
  header("Database Cleanup")
313
+ if raw_remote:
314
+ warn(
315
+ f"Raw database is MotherDuck ({display_target(config.raw_target)}): skipped, "
316
+ "tycoon never deletes a remote database."
317
+ )
318
+ if (local or all_) and local_db is None:
319
+ warn(
320
+ f"Warehouse is MotherDuck ({display_target(config.warehouse_target)}): skipped, "
321
+ "tycoon never deletes a remote warehouse."
322
+ )
323
+ if not targets:
324
+ success("Nothing to remove")
325
+ raise typer.Exit(0)
253
326
  for path, label in targets:
254
327
  wal_path = path.with_suffix(".duckdb.wal")
255
328
  exists = path.exists()
@@ -44,8 +44,8 @@ def _check_python_version(version_info: tuple[int, int] | None = None) -> bool:
44
44
  error(
45
45
  f"Python {label} is too old. tycoon needs "
46
46
  f">={_fmt_ver(_MIN_PYTHON)},<{_fmt_ver(_MAX_PYTHON_EXCLUSIVE)}. "
47
- f"Recreate the environment on a supported interpreter, e.g. "
48
- f"`tycoon setup` (or `uv venv --python {_fmt_ver(_MIN_PYTHON)}`)."
47
+ f"Recreate the environment on a supported interpreter: "
48
+ f"`tycoon setup --python {_fmt_ver(_MIN_PYTHON)}`."
49
49
  )
50
50
  return False
51
51
 
@@ -54,8 +54,8 @@ def _check_python_version(version_info: tuple[int, int] | None = None) -> bool:
54
54
  f"Python {label} is too new for tycoon's dbt stack "
55
55
  f"(dbt-core / dbt-duckdb have no {label} wheels yet). "
56
56
  f"Supported range is >={_fmt_ver(_MIN_PYTHON)},<{_fmt_ver(_MAX_PYTHON_EXCLUSIVE)}. "
57
- f"Recreate the environment on 3.13 — run `tycoon setup` "
58
- f"(or `uv venv --python 3.13`; uv will fetch it if needed)."
57
+ f"Recreate the environment on 3.13: `tycoon setup --python 3.13` "
58
+ f"(uv fetches it if needed)."
59
59
  )
60
60
  return False
61
61
 
@@ -63,6 +63,49 @@ def _check_python_version(version_info: tuple[int, int] | None = None) -> bool:
63
63
  return True
64
64
 
65
65
 
66
+ def _check_project_venv() -> None:
67
+ """Report plainly whether this project has its own `.venv` (gh-262+) and
68
+ whether tycoon is actually running from it.
69
+
70
+ #265's detection is meant to be "the running tycoon is executing from
71
+ this project's `.venv`", not just that a `.venv` directory happens to
72
+ exist beside `tycoon.yml`. A failed/partial `uv venv`, or `tycoon
73
+ setup` run against a project that already had its own `pyproject.toml`
74
+ (gh-262 review), can leave an empty or foreign `.venv` there. An
75
+ exists-only check reports OK in both cases while tycoon keeps running
76
+ from the ambient interpreter, and the next catalog-source run then
77
+ fails with "not installed" (gh-263) with no warning ever having fired.
78
+ Purely informational either way: doesn't affect doctor's overall
79
+ pass/fail.
80
+ """
81
+ from tycoon.venv import venv_path
82
+
83
+ target = venv_path(config.root)
84
+ if not target.exists():
85
+ warn(
86
+ "Project environment: this project doesn't have its own .venv yet, "
87
+ "it's on tycoon's older shared/ambient environment model. "
88
+ "Run `tycoon setup` to build one."
89
+ )
90
+ return
91
+
92
+ running_prefix = Path(sys.prefix).resolve()
93
+ if running_prefix == target.resolve():
94
+ success(f"Project environment: using its own .venv at {target}.")
95
+ elif (target / "bin" / "tycoon").exists():
96
+ warn(
97
+ f"Project environment: {target} exists, but tycoon is running from "
98
+ f"{running_prefix} instead. Activate it with `source {target}/bin/activate`, "
99
+ f"or run it directly with `{target}/bin/tycoon`."
100
+ )
101
+ else:
102
+ warn(
103
+ f"Project environment: {target} exists, but tycoon is running from "
104
+ f"{running_prefix} instead, and {target} has no tycoon installed in it "
105
+ "(empty or broken). Run `tycoon setup --force` to rebuild it."
106
+ )
107
+
108
+
66
109
  def _fix_python_env() -> None:
67
110
  """Build a project-local ``.venv`` on a supported interpreter (``--fix``).
68
111
 
@@ -73,6 +116,10 @@ def _fix_python_env() -> None:
73
116
  from tycoon.constants import DEFAULT_SETUP_PYTHON
74
117
  from tycoon.venv import create_venv, find_uv
75
118
 
119
+ if not config.has_project_file:
120
+ warn("Can't auto-fix: no tycoon.yml found here. Run `tycoon init` first.")
121
+ return
122
+
76
123
  if find_uv() is None:
77
124
  warn(
78
125
  "Can't auto-fix: uv isn't installed. Install it with "
@@ -81,7 +128,8 @@ def _fix_python_env() -> None:
81
128
  return
82
129
 
83
130
  info(f"--fix: building a project-local .venv on Python {DEFAULT_SETUP_PYTHON} via uv...")
84
- result = create_venv(config.root, DEFAULT_SETUP_PYTHON)
131
+ with console.status("Building the project's own environment via uv..."):
132
+ result = create_venv(config.root, DEFAULT_SETUP_PYTHON)
85
133
  if result.ok:
86
134
  success(result.message)
87
135
  info("Activate it with `source .venv/bin/activate`, then re-run `tycoon doctor`.")
@@ -445,6 +493,10 @@ def doctor_cmd(
445
493
  console.print(Panel("Checking Python interpreter...", expand=False))
446
494
  python_ok = _check_python_version()
447
495
 
496
+ if config.has_project_file:
497
+ console.print(Panel("Checking project environment...", expand=False))
498
+ _check_project_venv()
499
+
448
500
  console.print(Panel("Checking scheduled runs...", expand=False))
449
501
  _check_schedules()
450
502
 
@@ -77,6 +77,16 @@ def _short(id_value: str, n: int = 8) -> str:
77
77
  # ---------------------------------------------------------------------------
78
78
 
79
79
 
80
+ def _status_mark(s: RunSummary) -> str:
81
+ if s.status != "success":
82
+ return "[red]✗[/red]"
83
+ # A run that loaded nothing succeeded technically, but a green tick would
84
+ # hide a broken source (gh-240).
85
+ if s.zero_rows:
86
+ return "[yellow]![/yellow]"
87
+ return "[green]✓[/green]"
88
+
89
+
80
90
  def _render_history_table(runs: list[RunSummary]) -> Table:
81
91
  table = Table(show_lines=False)
82
92
  table.add_column("When", style="dim", no_wrap=True)
@@ -88,7 +98,7 @@ def _render_history_table(runs: list[RunSummary]) -> Table:
88
98
  for s in runs:
89
99
  is_dbt = s.runtime_id == "dbt"
90
100
  tool_style = "[bold magenta]dbt[/bold magenta]" if is_dbt else "[bold cyan]dlt[/bold cyan]"
91
- status_str = "[green]✓[/green]" if s.status == "success" else "[red]✗[/red]"
101
+ status_str = _status_mark(s)
92
102
 
93
103
  if is_dbt:
94
104
  cmd = s.command or "run"
@@ -98,7 +108,12 @@ def _render_history_table(runs: list[RunSummary]) -> Table:
98
108
  detail += f" · {s.rows_total} models"
99
109
  else:
100
110
  ref = f"{s.source_id}/{_short(s.run_id)}"
101
- detail = f"{s.rows_total:,} rows"
111
+ if not s.zero_rows:
112
+ detail = f"{s.rows_total:,} rows"
113
+ elif s.rows_total:
114
+ detail = f"[yellow]{s.rows_total:,} rows, a table got 0[/yellow]"
115
+ else:
116
+ detail = "[yellow]0 rows, nothing loaded[/yellow]"
102
117
 
103
118
  table.add_row(_fmt_ts(s.started_at), tool_style, ref, status_str, detail)
104
119
 
@@ -233,7 +248,14 @@ def _show_run(id_prefix: str) -> None:
233
248
  else:
234
249
  header(f"dlt load: {escape(s.run_id)}")
235
250
 
236
- status_str = "[green]success[/green]" if s.status == "success" else "[red]failed[/red]"
251
+ if s.status != "success":
252
+ status_str = "[red]failed[/red]"
253
+ elif s.zero_rows and s.rows_total:
254
+ status_str = "[yellow]success, but a table got zero rows[/yellow]"
255
+ elif s.zero_rows:
256
+ status_str = "[yellow]success, zero rows loaded[/yellow]"
257
+ else:
258
+ status_str = "[green]success[/green]"
237
259
  console.print(f" [bold]Source:[/bold] {escape(s.source_id)}")
238
260
  console.print(f" [bold]Status:[/bold] {status_str}")
239
261
  console.print(f" [bold]Started:[/bold] {_fmt_ts(s.started_at)}")
@@ -241,6 +263,8 @@ def _show_run(id_prefix: str) -> None:
241
263
 
242
264
  if detail.error:
243
265
  console.print(f" [bold]Error:[/bold] [red]{escape(detail.error)}[/red]")
266
+ for message in detail.warnings:
267
+ console.print(f" [bold]Warning:[/bold] [yellow]{escape(message)}[/yellow]")
244
268
 
245
269
  if detail.rows_by_table:
246
270
  rows_table = Table(title="Tables", show_lines=False)
@@ -2,6 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ import os
5
6
  from dataclasses import dataclass, field
6
7
  from pathlib import Path
7
8
  from typing import Annotated
@@ -22,6 +23,7 @@ from tycoon.scaffolding.templates import (
22
23
  scaffold_from_template,
23
24
  )
24
25
  from tycoon.utils.console import console, error, header, info, next_steps, success, warn
26
+ from tycoon.venv import UV_INSTALL_HINT, create_venv, find_uv
25
27
 
26
28
 
27
29
  def _prompt_choice(prompt: str, options: list[str]) -> int:
@@ -450,6 +452,44 @@ def _mode_next_steps(
450
452
  )
451
453
 
452
454
 
455
+ _EXISTING_ENV_MARKERS = ("pyproject.toml", ".python-version", ".venv")
456
+
457
+
458
+ def _build_project_venv(target: Path) -> None:
459
+ """Build the project's own ``.venv`` right after scaffolding (gh-262).
460
+
461
+ Skipped when the directory already has its own ``pyproject.toml``,
462
+ ``.python-version``, or ``.venv``: ``create_venv`` would otherwise treat
463
+ it as the project to manage, rewriting ``.python-version`` to tycoon's
464
+ default and syncing into whatever's already there, or refusing on an
465
+ existing ``.venv`` with a ``--force`` hint ``init`` doesn't expose.
466
+ ``tycoon setup`` is the explicit, opt-in way to do that instead.
467
+
468
+ `find_uv()` was already checked before any scaffolding started, so uv
469
+ itself being missing isn't a case handled here. A failure at this point
470
+ (network, disk, an environmental subprocess failure) doesn't roll back
471
+ the scaffold that already succeeded, it's reported and left for the
472
+ user to retry via `tycoon setup`, the same command this delegates to.
473
+ """
474
+ console.print()
475
+ existing = [marker for marker in _EXISTING_ENV_MARKERS if (target / marker).exists()]
476
+ if existing:
477
+ warn(
478
+ f"This directory already has its own {', '.join(existing)}, leaving it alone. "
479
+ "Run `tycoon setup` if you want tycoon to manage this project's environment."
480
+ )
481
+ return
482
+
483
+ info("Building the project's own environment via uv...")
484
+ with console.status("Building the project's own environment via uv..."):
485
+ result = create_venv(target)
486
+ if result.ok:
487
+ success(result.message)
488
+ else:
489
+ warn(f"Project scaffolded, but building its environment failed: {result.message}")
490
+ warn("Retry any time with: tycoon setup")
491
+
492
+
453
493
  def _parse_param_pairs(raw: list[str]) -> dict[str, str]:
454
494
  """Parse repeated --param name=value options into a dict.
455
495
 
@@ -512,6 +552,13 @@ def init_cmd(
512
552
  help="Migrate tycoon.yml to the current schema version and exit.",
513
553
  ),
514
554
  ] = False,
555
+ no_venv: Annotated[
556
+ bool,
557
+ typer.Option(
558
+ "--no-venv",
559
+ help="Scaffold the project without building its own .venv. Run `tycoon setup` later to add one.",
560
+ ),
561
+ ] = False,
515
562
  ) -> None:
516
563
  """Initialize a new tycoon project in the current directory."""
517
564
  if upgrade:
@@ -548,6 +595,23 @@ def init_cmd(
548
595
  error("Use a different directory or remove the existing tycoon.yml first.")
549
596
  raise typer.Exit(1)
550
597
 
598
+ # Test-only escape hatch: subprocess e2e tests exercise the real
599
+ # installed binary against real recipe commands, and shouldn't pay for
600
+ # a real `uv sync` + PyPI install on every run. Never documented to end
601
+ # users; --no-venv is the real flag. Checked for the literal "1" rather
602
+ # than any truthy string, so e.g. `TYCOON_INIT_NO_VENV=0` doesn't
603
+ # unexpectedly skip the build too.
604
+ no_venv = no_venv or os.environ.get("TYCOON_INIT_NO_VENV") == "1"
605
+
606
+ if not no_venv:
607
+ if find_uv() is None:
608
+ error(
609
+ "uv is not installed. tycoon builds every project its own environment via uv.\n"
610
+ f" Install it with: {UV_INSTALL_HINT}\n"
611
+ " then re-run `tycoon init`, or pass --no-venv to scaffold without one."
612
+ )
613
+ raise typer.Exit(1)
614
+
551
615
  header(f"Initializing tycoon project: {project_name}")
552
616
 
553
617
  if template:
@@ -563,6 +627,8 @@ def init_cmd(
563
627
  raise typer.Exit(1)
564
628
  console.print()
565
629
  success(f"Project '{project_name}' initialized from template '{template}'!")
630
+ if not no_venv:
631
+ _build_project_venv(target)
566
632
  next_steps(
567
633
  ("tycoon data sources catalog", "browse available data sources"),
568
634
  ("tycoon data sources add", "add your first data source"),
@@ -580,4 +646,6 @@ def init_cmd(
580
646
  )
581
647
  console.print()
582
648
  success(f"Project '{project_name}' initialized successfully!")
649
+ if not no_venv:
650
+ _build_project_venv(target)
583
651
  _mode_next_steps(result.stack, result.dbt_path)