@tdk-landscape/tdk-cli-core 1.3.117 → 1.3.119
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.
- package/README.md +5 -0
- package/cli/dist/commands/config.js +43 -5
- package/cli/dist/commands/doctor.js +4 -1
- package/cli/dist/commands/resource.js +103 -3
- package/cli/dist/commands/ui.js +108 -44
- package/cli/dist/components/BaseTooltip.js +3 -2
- package/cli/dist/components/DetailPanel.js +19 -5
- package/cli/dist/components/FileTree.js +20 -17
- package/cli/dist/components/ResourceSelectInput.js +16 -11
- package/cli/dist/components/ResourceTable.js +12 -5
- package/cli/dist/components/TUIHeader.js +25 -0
- package/cli/dist/components/TabBar.js +12 -7
- package/cli/dist/components/index.js +1 -0
- package/cli/dist/components/ui-theme.js +114 -0
- package/cli/dist/generator/template-engine.js +2 -1
- package/cli/dist/utils/doctor-wiring.js +192 -0
- package/cli/dist/utils/project-config-defaults.js +15 -0
- package/cli/dist/utils/shared-platform-postgres.js +211 -0
- package/cli/package.json +1 -1
- package/cli/templates/Tiltfile.hbs +5 -1
- package/engine/topologies/tilt/common/utils.star +2 -0
- package/engine/topologies/tilt/generators/validators.star +6 -1
- package/engine/topologies/tilt/manifest/integration.star +11 -4
- package/engine/topologies/tilt/manifest/validator.star +4 -0
- package/engine/topologies/tilt/resources/infra-loader.star +68 -13
- package/engine/topologies/tilt/resources/orchestrator/apply_compose_resource_registration.star +135 -8
- package/engine/topologies/tilt/resources/shared-platform-postgres.star +28 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# =============================================================================
|
|
2
|
+
# 🐘 SHARED PLATFORM POSTGRES dependsOn ALIASES
|
|
3
|
+
# =============================================================================
|
|
4
|
+
# `postgres` and `database-management` mean the one shared platform Postgres
|
|
5
|
+
# Tilt resource. They are not app services and must not be reported as missing
|
|
6
|
+
# by manifest validators. The engine resolver maps both to `postgres`.
|
|
7
|
+
# Spec: openspec/changes/dependson-starts-platform-postgres
|
|
8
|
+
# =============================================================================
|
|
9
|
+
|
|
10
|
+
SHARED_POSTGRES_DEPENDENCY_NAMES = ["postgres", "database-management"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def is_shared_platform_postgres_dependency(name):
|
|
14
|
+
"""True when a dependsOn name is one of the shared platform Postgres aliases."""
|
|
15
|
+
return name in SHARED_POSTGRES_DEPENDENCY_NAMES
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def manifest_needs_shared_platform_postgres(manifest):
|
|
19
|
+
"""True when a manifest's dependsOn lists postgres or database-management."""
|
|
20
|
+
if type(manifest) != 'dict':
|
|
21
|
+
return False
|
|
22
|
+
deps = manifest.get('dependsOn')
|
|
23
|
+
if not deps or type(deps) != 'list':
|
|
24
|
+
return False
|
|
25
|
+
for dep in deps:
|
|
26
|
+
if is_shared_platform_postgres_dependency(dep):
|
|
27
|
+
return True
|
|
28
|
+
return False
|