database-tycoon 0.2.0__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.
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/CHANGELOG.md +157 -4
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/PKG-INFO +1 -1
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/pyproject.toml +16 -2
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/__init__.py +1 -1
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/db.py +90 -17
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/doctor.py +57 -5
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/explore.py +16 -1
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/history.py +27 -3
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/init.py +68 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/register.py +25 -1
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/run_all.py +16 -1
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/semantics.py +8 -2
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/setup.py +16 -13
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/sources.py +359 -45
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/status.py +33 -4
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/transform.py +3 -2
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/config.py +82 -6
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/core/events.py +3 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/core/history.py +21 -28
- database_tycoon-0.2.2/src/tycoon/ingestion/runner.py +850 -0
- database_tycoon-0.2.2/src/tycoon/ingestion/source_installer.py +174 -0
- database_tycoon-0.2.2/src/tycoon/ingestion/source_manager.py +462 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/project.py +131 -33
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/scaffolding/rill_generator.py +28 -4
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/templates/csv-import/dbt_project/models/staging/schema.yml +4 -6
- database_tycoon-0.2.2/src/tycoon/templates/csv-import/dbt_project/models/staging/stg_widgets.sql +13 -0
- database_tycoon-0.2.2/src/tycoon/venv.py +270 -0
- database_tycoon-0.2.2/src/tycoon/yaml_merge.py +206 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/catalog/column_lineage.py +10 -1
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/generator.py +16 -36
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/layout.py +32 -31
- database_tycoon-0.2.2/src/tycoon_city/sim/town_network.py +229 -0
- database_tycoon-0.2.2/src/tycoon_city/sim/town_plan.py +323 -0
- database_tycoon-0.2.2/src/tycoon_city/sim/town_precincts.py +192 -0
- database_tycoon-0.2.2/src/tycoon_city/sim/town_streets.py +167 -0
- database_tycoon-0.2.0/.github/ISSUE_TEMPLATE/bug_report.yml +0 -66
- database_tycoon-0.2.0/.github/ISSUE_TEMPLATE/config.yml +0 -5
- database_tycoon-0.2.0/.github/ISSUE_TEMPLATE/feature_request.yml +0 -38
- database_tycoon-0.2.0/.github/PULL_REQUEST_TEMPLATE.md +0 -29
- database_tycoon-0.2.0/.github/workflows/ci.yml +0 -213
- database_tycoon-0.2.0/.github/workflows/e2e.yml +0 -25
- database_tycoon-0.2.0/.github/workflows/jira-sync.yml +0 -165
- database_tycoon-0.2.0/.github/workflows/nightly-e2e.yml +0 -104
- database_tycoon-0.2.0/.github/workflows/publish.yml +0 -101
- database_tycoon-0.2.0/.pre-commit-config.yaml +0 -57
- database_tycoon-0.2.0/CODE_OF_CONDUCT.md +0 -78
- database_tycoon-0.2.0/CONTRIBUTING.md +0 -138
- database_tycoon-0.2.0/SECURITY.md +0 -62
- database_tycoon-0.2.0/archive/README.md +0 -34
- database_tycoon-0.2.0/archive/pipeline-city-history.bundle +0 -0
- database_tycoon-0.2.0/contract/fixtures/demo.city.json +0 -869
- database_tycoon-0.2.0/contract/fixtures/demo.duckdb +0 -0
- database_tycoon-0.2.0/data/README.md +0 -51
- database_tycoon-0.2.0/dbt_project/README.md +0 -81
- database_tycoon-0.2.0/dbt_project/dbt_project.yml +0 -77
- database_tycoon-0.2.0/dbt_project/packages.yml +0 -8
- database_tycoon-0.2.0/dbt_project/profiles.yml +0 -12
- database_tycoon-0.2.0/docs/city/agent_tasks/index.md +0 -22
- database_tycoon-0.2.0/docs/city/agent_tasks/specification_citizen_request_framework.md +0 -141
- database_tycoon-0.2.0/docs/city/agent_tasks/task_contract_extension.md +0 -38
- database_tycoon-0.2.0/docs/city/agent_tasks/task_stats_ui.md +0 -37
- database_tycoon-0.2.0/docs/city/agent_tasks/task_streets_v4_planner.md +0 -62
- database_tycoon-0.2.0/docs/city/agent_tasks/task_streets_v4_renderer.md +0 -59
- database_tycoon-0.2.0/docs/city/agent_tasks/task_v5_reconciliation.md +0 -50
- database_tycoon-0.2.0/docs/city/agent_tasks/task_weather_module.md +0 -50
- database_tycoon-0.2.0/docs/city/city-json-v1.md +0 -569
- database_tycoon-0.2.0/docs/city/conventions.md +0 -32
- database_tycoon-0.2.0/docs/city/guide.md +0 -380
- database_tycoon-0.2.0/docs/city/handover.md +0 -503
- database_tycoon-0.2.0/docs/city/hud-design.md +0 -79
- database_tycoon-0.2.0/docs/city/index.md +0 -23
- database_tycoon-0.2.0/docs/city/local-ai-capacity.md +0 -144
- database_tycoon-0.2.0/docs/city/log.md +0 -1706
- database_tycoon-0.2.0/docs/city/release-notes-0.1.0.md +0 -261
- database_tycoon-0.2.0/docs/city/road-grammar.md +0 -169
- database_tycoon-0.2.0/docs/city/run-json-v1.md +0 -197
- database_tycoon-0.2.0/docs/city/semantic-roads.md +0 -154
- database_tycoon-0.2.0/docs/city/superpowers/index.md +0 -12
- database_tycoon-0.2.0/docs/city/superpowers/plans/2026-07-19-legibility-pass.md +0 -124
- database_tycoon-0.2.0/docs/city/superpowers/plans/2026-07-19-pipeline-city-bones.md +0 -3005
- database_tycoon-0.2.0/docs/city/superpowers/plans/2026-08-03-city-foundation.md +0 -1258
- database_tycoon-0.2.0/docs/city/superpowers/plans/2026-08-09-tycoon-city-addon.md +0 -1286
- database_tycoon-0.2.0/docs/city/superpowers/plans/index.md +0 -14
- database_tycoon-0.2.0/docs/city/superpowers/specs/2026-07-19-pipeline-city-bones-design.md +0 -228
- database_tycoon-0.2.0/docs/city/superpowers/specs/2026-08-03-city-foundation-design.md +0 -612
- database_tycoon-0.2.0/docs/city/superpowers/specs/2026-08-09-tycoon-city-addon-design.md +0 -227
- database_tycoon-0.2.0/docs/city/superpowers/specs/index.md +0 -13
- database_tycoon-0.2.0/docs/commands/city.md +0 -102
- database_tycoon-0.2.0/docs/commands/data/analyze.md +0 -90
- database_tycoon-0.2.0/docs/commands/data/history.md +0 -105
- database_tycoon-0.2.0/docs/commands/data/query.md +0 -126
- database_tycoon-0.2.0/docs/commands/data/run-all.md +0 -84
- database_tycoon-0.2.0/docs/commands/data/sources.md +0 -202
- database_tycoon-0.2.0/docs/commands/data/status.md +0 -83
- database_tycoon-0.2.0/docs/commands/data/sync.md +0 -210
- database_tycoon-0.2.0/docs/commands/data/transform.md +0 -97
- database_tycoon-0.2.0/docs/commands/docs.md +0 -88
- database_tycoon-0.2.0/docs/commands/doctor.md +0 -98
- database_tycoon-0.2.0/docs/commands/index.md +0 -67
- database_tycoon-0.2.0/docs/commands/init.md +0 -146
- database_tycoon-0.2.0/docs/commands/notify.md +0 -71
- database_tycoon-0.2.0/docs/commands/profiles.md +0 -107
- database_tycoon-0.2.0/docs/commands/register.md +0 -210
- database_tycoon-0.2.0/docs/commands/run.md +0 -80
- database_tycoon-0.2.0/docs/commands/schedule.md +0 -70
- database_tycoon-0.2.0/docs/commands/semantics.md +0 -148
- database_tycoon-0.2.0/docs/commands/setup.md +0 -69
- database_tycoon-0.2.0/docs/commands/start.md +0 -79
- database_tycoon-0.2.0/docs/getting-started/concepts.md +0 -104
- database_tycoon-0.2.0/docs/getting-started/first-project.md +0 -152
- database_tycoon-0.2.0/docs/getting-started/installation.md +0 -82
- database_tycoon-0.2.0/docs/index.md +0 -92
- database_tycoon-0.2.0/docs/ingestion-architecture.md +0 -124
- database_tycoon-0.2.0/docs/install_rill.sh +0 -18
- database_tycoon-0.2.0/docs/openmetadata.md +0 -59
- database_tycoon-0.2.0/docs/proposals/v0.1.10-scope.md +0 -84
- database_tycoon-0.2.0/docs/proposals/v0.1.6-and-v0.1.7-open-questions.md +0 -578
- database_tycoon-0.2.0/docs/proposals/v0.1.8-scope.md +0 -602
- database_tycoon-0.2.0/docs/proposals/v0.1.9-scope.md +0 -60
- database_tycoon-0.2.0/docs/publishing-to-pypi.md +0 -156
- database_tycoon-0.2.0/docs/recipes/csv-to-dashboard.md +0 -151
- database_tycoon-0.2.0/docs/recipes/existing-dbt-profile.md +0 -104
- database_tycoon-0.2.0/docs/recipes/existing-dbt-project.md +0 -196
- database_tycoon-0.2.0/docs/recipes/fivetran-metadata.md +0 -106
- database_tycoon-0.2.0/docs/recipes/layered-architecture.md +0 -173
- database_tycoon-0.2.0/docs/recipes/motherduck-cloud-sync.md +0 -153
- database_tycoon-0.2.0/docs/recipes/osi-export.md +0 -152
- database_tycoon-0.2.0/docs/reference/all-commands.md +0 -398
- database_tycoon-0.2.0/docs/reference/dependencies.md +0 -51
- database_tycoon-0.2.0/docs/reference/environment.md +0 -119
- database_tycoon-0.2.0/docs/reference/observability.md +0 -247
- database_tycoon-0.2.0/docs/reference/templates.md +0 -138
- database_tycoon-0.2.0/docs/reference/tycoon-yml.md +0 -255
- database_tycoon-0.2.0/docs/releases/v0.1.1.md +0 -135
- database_tycoon-0.2.0/docs/releases/v0.1.10.md +0 -66
- database_tycoon-0.2.0/docs/releases/v0.1.11.md +0 -68
- database_tycoon-0.2.0/docs/releases/v0.1.2.md +0 -389
- database_tycoon-0.2.0/docs/releases/v0.1.3.md +0 -495
- database_tycoon-0.2.0/docs/releases/v0.1.4.md +0 -320
- database_tycoon-0.2.0/docs/releases/v0.1.5.md +0 -286
- database_tycoon-0.2.0/docs/releases/v0.1.6.md +0 -343
- database_tycoon-0.2.0/docs/releases/v0.1.7.md +0 -130
- database_tycoon-0.2.0/docs/releases/v0.1.8.md +0 -47
- database_tycoon-0.2.0/docs/releases/v0.1.9.md +0 -93
- database_tycoon-0.2.0/docs/releases/v0.2.0.md +0 -66
- database_tycoon-0.2.0/mkdocs.yml +0 -146
- database_tycoon-0.2.0/rill/README.md +0 -29
- database_tycoon-0.2.0/rill/rill.yaml +0 -3
- database_tycoon-0.2.0/scripts/make_default_theme.py +0 -150
- database_tycoon-0.2.0/scripts/make_demo_tycoon.py +0 -344
- database_tycoon-0.2.0/scripts/readiness.py +0 -120
- database_tycoon-0.2.0/scripts/spike_cluster.py +0 -589
- database_tycoon-0.2.0/scripts/spike_road_defects.py +0 -175
- database_tycoon-0.2.0/scripts/sync_web_bundle.py +0 -63
- database_tycoon-0.2.0/scripts/update_contract_golden.py +0 -40
- database_tycoon-0.2.0/skills/dbt-dag-modeling/SKILL.md +0 -18
- database_tycoon-0.2.0/skills/playwright-e2e-testing/SKILL.md +0 -19
- database_tycoon-0.2.0/skills/threejs-3d-visualizer/SKILL.md +0 -22
- database_tycoon-0.2.0/spikes/README.md +0 -10
- database_tycoon-0.2.0/spikes/demo_tycoon_semantic.yml +0 -142
- database_tycoon-0.2.0/spikes/readiness.py +0 -486
- database_tycoon-0.2.0/spikes/spike_arterials.py +0 -342
- database_tycoon-0.2.0/spikes/spike_city_json.py +0 -300
- database_tycoon-0.2.0/spikes/spike_contact_sheet.py +0 -273
- database_tycoon-0.2.0/spikes/spike_fixtures.py +0 -313
- database_tycoon-0.2.0/spikes/spike_lattice.py +0 -346
- database_tycoon-0.2.0/spikes/spike_streetmetrics.py +0 -335
- database_tycoon-0.2.0/spikes/spike_streetpaint.py +0 -191
- database_tycoon-0.2.0/spikes/spike_v5plan.py +0 -222
- database_tycoon-0.2.0/spikes/spike_zoning.py +0 -403
- database_tycoon-0.2.0/src/tycoon/ingestion/runner.py +0 -414
- database_tycoon-0.2.0/src/tycoon/ingestion/source_installer.py +0 -76
- database_tycoon-0.2.0/src/tycoon/ingestion/source_manager.py +0 -306
- database_tycoon-0.2.0/src/tycoon/templates/csv-import/dbt_project/models/staging/stg_widgets.sql +0 -12
- database_tycoon-0.2.0/src/tycoon/venv.py +0 -187
- database_tycoon-0.2.0/src/tycoon_city/sim/town_plan.py +0 -288
- database_tycoon-0.2.0/src/tycoon_city/sim/town_streets.py +0 -360
- database_tycoon-0.2.0/tests/README.md +0 -194
- database_tycoon-0.2.0/tests/__init__.py +0 -0
- database_tycoon-0.2.0/tests/__snapshots__/test_snapshots.ambr +0 -72
- database_tycoon-0.2.0/tests/conftest.py +0 -39
- database_tycoon-0.2.0/tests/test_check.py +0 -305
- database_tycoon-0.2.0/tests/test_city_command.py +0 -206
- database_tycoon-0.2.0/tests/test_cli.py +0 -50
- database_tycoon-0.2.0/tests/test_cli_surface.py +0 -313
- database_tycoon-0.2.0/tests/test_config.py +0 -109
- database_tycoon-0.2.0/tests/test_constants.py +0 -25
- database_tycoon-0.2.0/tests/test_db_command.py +0 -139
- database_tycoon-0.2.0/tests/test_dbt_profiles.py +0 -282
- database_tycoon-0.2.0/tests/test_e2e_demo_arc.py +0 -130
- database_tycoon-0.2.0/tests/test_events.py +0 -39
- database_tycoon-0.2.0/tests/test_explore.py +0 -1169
- database_tycoon-0.2.0/tests/test_fivetran.py +0 -394
- database_tycoon-0.2.0/tests/test_history.py +0 -623
- database_tycoon-0.2.0/tests/test_ingestion.py +0 -422
- database_tycoon-0.2.0/tests/test_init.py +0 -360
- database_tycoon-0.2.0/tests/test_layers.py +0 -264
- database_tycoon-0.2.0/tests/test_metadata_contract.py +0 -112
- database_tycoon-0.2.0/tests/test_notify.py +0 -180
- database_tycoon-0.2.0/tests/test_observability_manifest.py +0 -255
- database_tycoon-0.2.0/tests/test_observability_scaffold.py +0 -30
- database_tycoon-0.2.0/tests/test_observability_trace.py +0 -229
- database_tycoon-0.2.0/tests/test_osi_generator.py +0 -375
- database_tycoon-0.2.0/tests/test_project.py +0 -309
- database_tycoon-0.2.0/tests/test_project_validation.py +0 -263
- database_tycoon-0.2.0/tests/test_quack.py +0 -255
- database_tycoon-0.2.0/tests/test_recipe_doctests.py +0 -162
- database_tycoon-0.2.0/tests/test_register.py +0 -942
- database_tycoon-0.2.0/tests/test_schedule.py +0 -418
- database_tycoon-0.2.0/tests/test_setup.py +0 -254
- database_tycoon-0.2.0/tests/test_snapshots.py +0 -157
- database_tycoon-0.2.0/tests/test_sources.py +0 -652
- database_tycoon-0.2.0/tests/test_sync.py +0 -339
- database_tycoon-0.2.0/tests/test_templates_e2e.py +0 -498
- database_tycoon-0.2.0/tests/test_templates_smoke.py +0 -86
- database_tycoon-0.2.0/tests/test_utils.py +0 -153
- database_tycoon-0.2.0/tests/test_wizard.py +0 -277
- database_tycoon-0.2.0/tests/tycoon_city/__init__.py +0 -0
- database_tycoon-0.2.0/tests/tycoon_city/catalog/__init__.py +0 -0
- database_tycoon-0.2.0/tests/tycoon_city/catalog/test_column_lineage.py +0 -171
- database_tycoon-0.2.0/tests/tycoon_city/catalog/test_dbt_manifest.py +0 -209
- database_tycoon-0.2.0/tests/tycoon_city/catalog/test_load_context.py +0 -189
- database_tycoon-0.2.0/tests/tycoon_city/catalog/test_loader.py +0 -105
- database_tycoon-0.2.0/tests/tycoon_city/catalog/test_loader_errors.py +0 -146
- database_tycoon-0.2.0/tests/tycoon_city/catalog/test_osi.py +0 -411
- database_tycoon-0.2.0/tests/tycoon_city/catalog/test_real_catalog_hardening.py +0 -432
- database_tycoon-0.2.0/tests/tycoon_city/catalog/test_run_history.py +0 -285
- database_tycoon-0.2.0/tests/tycoon_city/catalog/test_sql_lineage.py +0 -170
- database_tycoon-0.2.0/tests/tycoon_city/catalog/test_tycoon_project.py +0 -100
- database_tycoon-0.2.0/tests/tycoon_city/export/__init__.py +0 -0
- database_tycoon-0.2.0/tests/tycoon_city/export/test_achievements.py +0 -460
- database_tycoon-0.2.0/tests/tycoon_city/export/test_build.py +0 -83
- database_tycoon-0.2.0/tests/tycoon_city/export/test_city_json.py +0 -738
- database_tycoon-0.2.0/tests/tycoon_city/export/test_cli.py +0 -155
- database_tycoon-0.2.0/tests/tycoon_city/export/test_export_no_pygame.py +0 -105
- database_tycoon-0.2.0/tests/tycoon_city/export/test_measured.py +0 -493
- database_tycoon-0.2.0/tests/tycoon_city/export/test_run_json.py +0 -356
- database_tycoon-0.2.0/tests/tycoon_city/export/test_semantic_blocks.py +0 -219
- database_tycoon-0.2.0/tests/tycoon_city/fixtures/__init__.py +0 -0
- database_tycoon-0.2.0/tests/tycoon_city/fixtures/tycoon_factory.py +0 -46
- database_tycoon-0.2.0/tests/tycoon_city/sim/__init__.py +0 -0
- database_tycoon-0.2.0/tests/tycoon_city/sim/test_build_replay.py +0 -86
- database_tycoon-0.2.0/tests/tycoon_city/sim/test_channels.py +0 -124
- database_tycoon-0.2.0/tests/tycoon_city/sim/test_city.py +0 -60
- database_tycoon-0.2.0/tests/tycoon_city/sim/test_contracts.py +0 -55
- database_tycoon-0.2.0/tests/tycoon_city/sim/test_generator.py +0 -139
- database_tycoon-0.2.0/tests/tycoon_city/sim/test_generator_properties.py +0 -328
- database_tycoon-0.2.0/tests/tycoon_city/sim/test_layout_depth.py +0 -304
- database_tycoon-0.2.0/tests/tycoon_city/sim/test_layout_plan.py +0 -588
- database_tycoon-0.2.0/tests/tycoon_city/sim/test_logistics.py +0 -34
- database_tycoon-0.2.0/tests/tycoon_city/sim/test_no_pygame.py +0 -16
- database_tycoon-0.2.0/tests/tycoon_city/sim/test_refresh.py +0 -59
- database_tycoon-0.2.0/tests/tycoon_city/sim/test_road_junctions.py +0 -98
- database_tycoon-0.2.0/tests/tycoon_city/sim/test_signals.py +0 -186
- database_tycoon-0.2.0/tests/tycoon_city/sim/test_temporal_signals.py +0 -236
- database_tycoon-0.2.0/tests/tycoon_city/sim/test_town_streets.py +0 -78
- database_tycoon-0.2.0/tests/tycoon_city/sim/test_town_v5_plan.py +0 -532
- database_tycoon-0.2.0/tests/tycoon_city/test_console_scripts.py +0 -31
- database_tycoon-0.2.0/tests/tycoon_city/test_demo_project.py +0 -359
- database_tycoon-0.2.0/tests/tycoon_city/test_pricing.py +0 -145
- database_tycoon-0.2.0/tests/tycoon_city/test_readiness.py +0 -96
- database_tycoon-0.2.0/tests/tycoon_city/test_smoke.py +0 -4
- database_tycoon-0.2.0/tests/tycoon_city/test_web_bundle.py +0 -22
- database_tycoon-0.2.0/tests/tycoon_city/test_web_layering.py +0 -64
- database_tycoon-0.2.0/tests/tycoon_city/test_webserve.py +0 -382
- database_tycoon-0.2.0/uv.lock +0 -1867
- database_tycoon-0.2.0/web/.gitignore +0 -5
- database_tycoon-0.2.0/web/e2e/bridgeshot.mjs +0 -12
- database_tycoon-0.2.0/web/e2e/closeshot.mjs +0 -11
- database_tycoon-0.2.0/web/e2e/fixtures/rich.city.json +0 -1711
- database_tycoon-0.2.0/web/e2e/fixtures/run.fail.json +0 -128
- database_tycoon-0.2.0/web/e2e/fixtures/run.ok.json +0 -132
- database_tycoon-0.2.0/web/e2e/fixtures/runs.index.json +0 -34
- database_tycoon-0.2.0/web/e2e/fixtures/usage.city.json +0 -1806
- database_tycoon-0.2.0/web/e2e/framing.spec.ts +0 -138
- database_tycoon-0.2.0/web/e2e/freshness.spec.ts +0 -137
- database_tycoon-0.2.0/web/e2e/helpers.ts +0 -36
- database_tycoon-0.2.0/web/e2e/hooks.spec.ts +0 -58
- database_tycoon-0.2.0/web/e2e/hud.spec.ts +0 -112
- database_tycoon-0.2.0/web/e2e/hudshot.mjs +0 -12
- database_tycoon-0.2.0/web/e2e/interactions.spec.ts +0 -188
- database_tycoon-0.2.0/web/e2e/lens.spec.ts +0 -355
- database_tycoon-0.2.0/web/e2e/mechanics.spec.ts +0 -28
- database_tycoon-0.2.0/web/e2e/osi.spec.ts +0 -243
- database_tycoon-0.2.0/web/e2e/refresh.spec.ts +0 -77
- database_tycoon-0.2.0/web/e2e/replayshot.mjs +0 -71
- database_tycoon-0.2.0/web/e2e/rich.spec.ts +0 -260
- database_tycoon-0.2.0/web/e2e/run_replay.spec.ts +0 -410
- database_tycoon-0.2.0/web/e2e/shot.mjs +0 -14
- database_tycoon-0.2.0/web/e2e/skybridges.spec.ts +0 -49
- database_tycoon-0.2.0/web/e2e/streets.spec.ts +0 -95
- database_tycoon-0.2.0/web/e2e/streetshot.mjs +0 -25
- database_tycoon-0.2.0/web/e2e/tour.spec.ts +0 -316
- database_tycoon-0.2.0/web/e2e/usage.spec.ts +0 -262
- database_tycoon-0.2.0/web/index.html +0 -330
- database_tycoon-0.2.0/web/package-lock.json +0 -1317
- database_tycoon-0.2.0/web/package.json +0 -25
- database_tycoon-0.2.0/web/playwright.config.ts +0 -40
- database_tycoon-0.2.0/web/src/boot/hooks.ts +0 -242
- database_tycoon-0.2.0/web/src/boot/hud.ts +0 -386
- database_tycoon-0.2.0/web/src/boot/input.ts +0 -37
- database_tycoon-0.2.0/web/src/boot/loop.ts +0 -64
- database_tycoon-0.2.0/web/src/boot/mount.ts +0 -137
- database_tycoon-0.2.0/web/src/boot/run_wiring.ts +0 -143
- database_tycoon-0.2.0/web/src/boot/setup.ts +0 -103
- database_tycoon-0.2.0/web/src/cameras.ts +0 -164
- database_tycoon-0.2.0/web/src/contract.ts +0 -458
- database_tycoon-0.2.0/web/src/contract_runs.ts +0 -170
- database_tycoon-0.2.0/web/src/main.ts +0 -87
- database_tycoon-0.2.0/web/src/mechanics/guests.ts +0 -108
- database_tycoon-0.2.0/web/src/meta.ts +0 -113
- database_tycoon-0.2.0/web/src/palette.ts +0 -45
- database_tycoon-0.2.0/web/src/picking.ts +0 -62
- database_tycoon-0.2.0/web/src/scene/buildings.ts +0 -227
- database_tycoon-0.2.0/web/src/scene/civic.ts +0 -82
- database_tycoon-0.2.0/web/src/scene/dispose.ts +0 -28
- database_tycoon-0.2.0/web/src/scene/districts.ts +0 -50
- database_tycoon-0.2.0/web/src/scene/facade.ts +0 -117
- database_tycoon-0.2.0/web/src/scene/fire.ts +0 -133
- database_tycoon-0.2.0/web/src/scene/firetrucks.ts +0 -197
- database_tycoon-0.2.0/web/src/scene/flow_overlay.ts +0 -128
- database_tycoon-0.2.0/web/src/scene/guest_layer.ts +0 -48
- database_tycoon-0.2.0/web/src/scene/plant.ts +0 -42
- database_tycoon-0.2.0/web/src/scene/road_mask.ts +0 -71
- database_tycoon-0.2.0/web/src/scene/silhouettes.ts +0 -97
- database_tycoon-0.2.0/web/src/scene/skybridges.ts +0 -86
- database_tycoon-0.2.0/web/src/scene/streetscape.ts +0 -345
- database_tycoon-0.2.0/web/src/scene/terrain.ts +0 -41
- database_tycoon-0.2.0/web/src/scene/terrain_atlas.ts +0 -335
- database_tycoon-0.2.0/web/src/scene/terrain_flat.ts +0 -72
- database_tycoon-0.2.0/web/src/scene/usage_overlay.ts +0 -275
- database_tycoon-0.2.0/web/src/scene/vehicles.ts +0 -47
- database_tycoon-0.2.0/web/src/scene/wear.ts +0 -90
- database_tycoon-0.2.0/web/src/scene/weather.ts +0 -181
- database_tycoon-0.2.0/web/src/sim/paths.ts +0 -23
- database_tycoon-0.2.0/web/src/sim/replay.ts +0 -61
- database_tycoon-0.2.0/web/src/sim/rng.ts +0 -30
- database_tycoon-0.2.0/web/src/sim/roadnet.ts +0 -86
- database_tycoon-0.2.0/web/src/sim/run_replay.ts +0 -249
- database_tycoon-0.2.0/web/src/sim/traffic.ts +0 -102
- database_tycoon-0.2.0/web/src/ui/graph.ts +0 -128
- database_tycoon-0.2.0/web/src/ui/health.ts +0 -173
- database_tycoon-0.2.0/web/src/ui/inspector.ts +0 -369
- database_tycoon-0.2.0/web/src/ui/legend.ts +0 -101
- database_tycoon-0.2.0/web/src/ui/lens_picker.ts +0 -139
- database_tycoon-0.2.0/web/src/ui/lenses.ts +0 -189
- database_tycoon-0.2.0/web/src/ui/overlays.ts +0 -71
- database_tycoon-0.2.0/web/src/ui/problems.ts +0 -272
- database_tycoon-0.2.0/web/src/ui/requests.ts +0 -59
- database_tycoon-0.2.0/web/src/ui/run_panel.ts +0 -281
- database_tycoon-0.2.0/web/src/ui/search.ts +0 -136
- database_tycoon-0.2.0/web/src/ui/stats.ts +0 -88
- database_tycoon-0.2.0/web/src/ui/tour.ts +0 -171
- database_tycoon-0.2.0/web/src/ui/tour_stops.ts +0 -265
- database_tycoon-0.2.0/web/src/usage.ts +0 -127
- database_tycoon-0.2.0/web/tsconfig.json +0 -13
- database_tycoon-0.2.0/web/vite.config.ts +0 -9
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/.gitignore +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/LICENSE +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/README.md +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/THIRD-PARTY.md +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/__main__.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/cli.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/__init__.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/city.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/data.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/docs.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/fivetran.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/notify.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/observability.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/profiles.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/run.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/schedule.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/start.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/stop.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/commands/sync_cmd.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/constants.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/core/__init__.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/core/metadata.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/dbt_profiles.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/ingestion/__init__.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/ingestion/catalog.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/ingestion/ducklake_config.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/ingestion/fivetran_client.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/ingestion/fivetran_sync.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/ingestion/mta_bus_speeds_pipeline.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/ingestion/mta_pipeline.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/ingestion/nyc_dot_pipeline.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/ingestion/sources/__init__.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/layers.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/metadata_backends/__init__.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/metadata_backends/duckdb_file.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/notify.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/observability.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/quack.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/scaffolding/__init__.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/scaffolding/dbt_generator.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/scaffolding/observability_dbt.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/scaffolding/osi_generator.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/scaffolding/schemas/osi-v0.1.1.schema.json +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/scaffolding/templates.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/schedule.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/sync.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/templates/csv-import/README +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/templates/csv-import/data/input/widgets.csv +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/templates/csv-import/dbt_project/dbt_project.yml +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/templates/csv-import/dbt_project/models/marts/fct_widget_summary.sql +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/templates/csv-import/dbt_project/models/marts/schema.yml +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/templates/csv-import/dbt_project/profiles.yml +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/templates/csv-import/tycoon.yml +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/templates/github-analytics/template.yml +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/templates/github-analytics/tycoon.yml +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/templates/nyc-transit/README +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/templates/nyc-transit/tycoon.yml +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/templates/weather-station/template.yml +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/templates/weather-station/tycoon.yml +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/utils/__init__.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/utils/console.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/utils/duckdb_utils.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon/utils/process.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/__init__.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/catalog/__init__.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/catalog/dbt_manifest.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/catalog/errors.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/catalog/loader.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/catalog/models.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/catalog/osi.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/catalog/retention.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/catalog/run_history.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/catalog/sql_lineage.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/catalog/tycoon_project.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/demo/__init__.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/demo/cli.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/demo/factory.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/demo/project.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/demo/semantic.yml +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/export/__init__.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/export/achievements.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/export/blocks.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/export/build.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/export/city_json.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/export/cli.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/export/measured.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/export/run_json.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/pricing.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/__init__.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/build_replay.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/channels.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/city.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/contracts.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/logistics.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/road_junctions.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/schemas/request_schema.json +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/schemas/shipment_schema.json +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/signals.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/tiles.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_arterials.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_blocks.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_endings.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_frontage.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_hierarchy.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_rows.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_texture.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_v5_plan.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/sim/town_zoning.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/theme_data.py +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/themes/default/spritesheet.png +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/themes/default/theme.toml +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/web_dist/assets/index-CosJ8RPj.js +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/web_dist/index.html +0 -0
- {database_tycoon-0.2.0 → database_tycoon-0.2.2}/src/tycoon_city/webserve.py +0 -0
|
@@ -1,5 +1,162 @@
|
|
|
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
|
+
|
|
82
|
+
## [0.2.1] - 2026-09-16
|
|
83
|
+
|
|
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._
|
|
85
|
+
|
|
86
|
+
### Added
|
|
87
|
+
|
|
88
|
+
- **Multiple named resources per filesystem source** ([#224][], [#225][], PRs [#230][], [#231][]). A filesystem source can declare a `resources:` list, each entry with its own `table_name`, `path` and `file_glob`, and one `tycoon data sources run` loads them all in a single dlt pipeline run — each landing in its own table.
|
|
89
|
+
|
|
90
|
+
```yaml
|
|
91
|
+
sources:
|
|
92
|
+
arcade:
|
|
93
|
+
type: filesystem
|
|
94
|
+
schema: raw_arcade
|
|
95
|
+
resources:
|
|
96
|
+
- table_name: arcade_games
|
|
97
|
+
path: data/input
|
|
98
|
+
file_glob: games.csv
|
|
99
|
+
- table_name: arcade_players
|
|
100
|
+
path: data/input
|
|
101
|
+
file_glob: players.csv
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
The older flat `path`/`file_glob` shape keeps working unchanged.
|
|
105
|
+
- **`tycoon sources add` prompts for resources** ([#226][], PR [#232][]). Adding a filesystem source now loops through resource entries interactively instead of accepting a single path. A table name that isn't a valid identifier, or that duplicates one already entered, is rejected with the reason and re-prompted rather than written out and failing later at load time.
|
|
106
|
+
- **JSONL files are parsed into rows** ([#228][], PR [#235][]). A `*.jsonl` glob pipes through dlt's `read_jsonl()`, alongside the existing CSV and Parquet support. Plain `.json` is deliberately not included — a single JSON document isn't the newline-delimited shape `read_jsonl()` reads.
|
|
107
|
+
- **A glob that matches no local files says so** ([#223][], PR [#234][]). Previously a typo'd glob and a source with genuinely nothing to load were indistinguishable: both loaded zero rows silently. Remote buckets (`s3://`, `gs://`, `az://`) are skipped rather than guessed at.
|
|
108
|
+
- **PR size and title checks, warn-only** ([#211][], [#213][], PR [#214][]). Every pull request gets two advisory checks: at most 8 counted files, with a 500-line cap on newly added `src/**/*.py` files, and a `type(scope): description` title whose scope names the tracked work as `gh-<N>` (preferred) or `PTC-<N>` (accepted during the Jira migration). Files under `src/tycoon/templates/**` are not counted, and release-promotion PRs from a `vX.Y.Z` branch into `main` are exempt from both. The checks read their config and scripts from the base ref, so a PR cannot loosen its own limits. They become required once the conventions have settled.
|
|
109
|
+
- **A repository writing-style skill** ([#215][], PR [#216][]) documents the house style for documentation, GitHub issues, PR descriptions, release notes and review notes, in `skills/repository-writing-style`.
|
|
110
|
+
|
|
111
|
+
### Changed
|
|
112
|
+
|
|
113
|
+
- **`tycoon city` lays the city out by pipeline depth** (PR [#247][]). The planner that 0.2.0 shipped, depth columns with schema bands, is replaced by the lattice ring planner that previously sat behind a flag. Each schema is one neighbourhood on a street lattice; neighbourhoods sit in rings by pipeline depth, gold and mart schemas downtown and sources on the edge, with ties broken on fan-out, then member count, then name. Every lineage edge is routed door to door over the lattice, streets are drawn only where routes and doors need them, and every table sits inside its own schema's district. Median route length on the dogfood catalog fell from 229 tiles to 36. A city rendered from the same catalog will not match a 0.2.0 screenshot. The `city.json` contract is unchanged: same top-level keys, same `version: 1`, same `DagPlan` fields; only the geometry moves.
|
|
114
|
+
- **Breaking: a filesystem source must declare `path` or `bucket_url`** ([#223][], PR [#234][]). Both missing used to fall back to `"."`, silently scanning the working directory; it now fails with an error naming the source. If a project relied on that default, add the path explicitly:
|
|
115
|
+
|
|
116
|
+
```yaml
|
|
117
|
+
sources:
|
|
118
|
+
files:
|
|
119
|
+
type: filesystem
|
|
120
|
+
config:
|
|
121
|
+
path: data/input # previously implicit
|
|
122
|
+
file_glob: "*.csv"
|
|
123
|
+
```
|
|
124
|
+
- **An unrecognized `file_glob` warns instead of quietly loading metadata** ([#228][], PR [#235][]). A glob that is neither CSV, Parquet, nor JSONL still falls back to the raw filesystem resource, but now says that it is loading file listings — path, size, modification time — rather than parsed rows. Those globs also now load with `write_disposition="replace"`, matching every other filesystem resource.
|
|
125
|
+
- **`sources add` no longer offers to run `dlt init` for filesystem sources** ([#226][], PR [#232][]). The filesystem source ships with dlt, so the install prompt was asking to fetch something already present. The dead filesystem pipeline implementation it was wired to is gone too ([#227][], PR [#232][]).
|
|
126
|
+
|
|
127
|
+
### Removed
|
|
128
|
+
|
|
129
|
+
- **The `DATABASE_TYCOON_PLANNER` environment variable** (PR [#247][]). It opted a run into the ring planner while the old planner was the default. The ring planner is now the only one, so nothing reads the variable; setting it is harmless and does nothing.
|
|
130
|
+
|
|
131
|
+
### Fixed
|
|
132
|
+
|
|
133
|
+
- **Filesystem sources sharing a schema no longer collide into one table** ([#222][], PR [#229][]). dlt's `read_csv()`/`read_parquet()` transformers always name their resource generically, so two filesystem sources pointed at different files but sharing a schema used to land in the same table. `run_source()` now renames the resource after the tycoon source's own name. Projects with data already in the old generic table (`read_csv`/`read_parquet`) get a one-time warning naming both the stale table and the new one — new rows land in the new table only, so a dbt model still selecting the old name needs updating by hand.
|
|
134
|
+
- **`tycoon data analyze --rill` builds dashboards for an already-scaffolded source** ([#222][], PR [#229][]). The already-referenced check skipped the whole command, so running `analyze <source> --rill` on a source that already had dbt staging models generated no dashboards at all, and the only way past it (`--force`) would also overwrite the existing dbt files. It now skips only the dbt scaffolding step.
|
|
135
|
+
- **The `csv-import` template points at the renamed table** ([#222][], PR [#229][]). Its staging model selected `_read_csv`, which no longer exists after the rename above, so a freshly scaffolded project's first `dbt build` would fail.
|
|
136
|
+
|
|
137
|
+
[#211]: https://github.com/Database-Tycoon/tycoon-cli/issues/211
|
|
138
|
+
[#213]: https://github.com/Database-Tycoon/tycoon-cli/issues/213
|
|
139
|
+
[#215]: https://github.com/Database-Tycoon/tycoon-cli/issues/215
|
|
140
|
+
[#222]: https://github.com/Database-Tycoon/tycoon-cli/issues/222
|
|
141
|
+
[#223]: https://github.com/Database-Tycoon/tycoon-cli/issues/223
|
|
142
|
+
[#224]: https://github.com/Database-Tycoon/tycoon-cli/issues/224
|
|
143
|
+
[#225]: https://github.com/Database-Tycoon/tycoon-cli/issues/225
|
|
144
|
+
[#226]: https://github.com/Database-Tycoon/tycoon-cli/issues/226
|
|
145
|
+
[#227]: https://github.com/Database-Tycoon/tycoon-cli/issues/227
|
|
146
|
+
[#228]: https://github.com/Database-Tycoon/tycoon-cli/issues/228
|
|
147
|
+
[#229]: https://github.com/Database-Tycoon/tycoon-cli/pull/229
|
|
148
|
+
[#230]: https://github.com/Database-Tycoon/tycoon-cli/pull/230
|
|
149
|
+
[#231]: https://github.com/Database-Tycoon/tycoon-cli/pull/231
|
|
150
|
+
[#232]: https://github.com/Database-Tycoon/tycoon-cli/pull/232
|
|
151
|
+
[#234]: https://github.com/Database-Tycoon/tycoon-cli/pull/234
|
|
152
|
+
[#235]: https://github.com/Database-Tycoon/tycoon-cli/pull/235
|
|
153
|
+
[#214]: https://github.com/Database-Tycoon/tycoon-cli/pull/214
|
|
154
|
+
[#216]: https://github.com/Database-Tycoon/tycoon-cli/pull/216
|
|
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
|
|
159
|
+
|
|
3
160
|
## [0.2.0] - 2026-08-28
|
|
4
161
|
|
|
5
162
|
_Headline: **pipeline city**. The catalog becomes a place — `tycoon city` (PR [#205][]) serves your warehouse as an interactive 3D city, with schemas as districts, tables as buildings, and lineage as roads. The renderer ships inside the wheel, so there is nothing extra to install, and it costs nothing until you run the command._
|
|
@@ -161,10 +318,6 @@ _The layered-architecture release. Tycoon learns the sources → staging → int
|
|
|
161
318
|
|
|
162
319
|
- **`tycoon semantics scaffold` switches mart discovery from prefix matching to layer classification** ([#30][]). Previously globbed for `mart_*` / `fct_*` / `dim_*` / `obt_*`; now reads the dbt manifest and respects per-model overrides. Falls back to the old prefix matcher (with a clear warning) when no manifest is available, so behaviour is preserved for unmigrated projects.
|
|
163
320
|
|
|
164
|
-
### Fixed
|
|
165
|
-
|
|
166
|
-
- _TBD._
|
|
167
|
-
|
|
168
321
|
[#30]: https://github.com/Database-Tycoon/tycoon-cli/issues/30
|
|
169
322
|
[#39]: https://github.com/Database-Tycoon/tycoon-cli/issues/39
|
|
170
323
|
[#40]: https://github.com/Database-Tycoon/tycoon-cli/issues/40
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: database-tycoon
|
|
3
|
-
Version: 0.2.
|
|
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
|
-
|
|
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.
|
|
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
|
|
@@ -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
|
-
|
|
31
|
-
|
|
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 = {
|
|
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
|
-
|
|
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 = {
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
247
|
-
|
|
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
|
|
48
|
-
f"`tycoon setup
|
|
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
|
|
58
|
-
f"(
|
|
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
|
-
|
|
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
|
|
|
@@ -129,10 +129,25 @@ def analyze_cmd(
|
|
|
129
129
|
|
|
130
130
|
info(f"Found {len(schema_tables)} table(s) in schema '{schema_name}'")
|
|
131
131
|
|
|
132
|
+
already_referenced = False
|
|
133
|
+
if not force and cfg.dbt_project_dir.exists():
|
|
134
|
+
from tycoon.commands.sources import _source_already_referenced
|
|
135
|
+
|
|
136
|
+
already_referenced = _source_already_referenced(cfg.dbt_project_dir, source_name)
|
|
137
|
+
|
|
132
138
|
all_generated: list[str] = []
|
|
133
139
|
|
|
134
140
|
# 4. Generate dbt staging models
|
|
135
|
-
|
|
141
|
+
#
|
|
142
|
+
# The already-referenced check only skips this step, not the whole
|
|
143
|
+
# command: --rill (step 5) and --build must still run on a source that
|
|
144
|
+
# already has staging models, otherwise "analyze <source> --rill" on an
|
|
145
|
+
# already-scaffolded source silently generates no dashboards, and the
|
|
146
|
+
# only escape (--force) would also overwrite the existing dbt files.
|
|
147
|
+
if not no_dbt and already_referenced:
|
|
148
|
+
info(f"'{source_name}' is already referenced by an existing dbt model. Skipping dbt scaffolding.")
|
|
149
|
+
info("Pass --force to scaffold anyway.")
|
|
150
|
+
elif not no_dbt:
|
|
136
151
|
info("Generating dbt staging models...")
|
|
137
152
|
staging_dir = cfg.dbt_project_dir / "models" / "staging" / source_name
|
|
138
153
|
try:
|