@tdk-landscape/tdk-cli-core 1.3.147 → 1.3.148
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/cli/dist/commands/doctor.js +8 -4
- package/cli/dist/commands/status.js +15 -0
- package/cli/dist/components/BaseTooltip.js +2 -2
- package/cli/dist/utils/doctor-runtime.js +2 -2
- package/cli/dist/utils/host-port-config.js +43 -2
- package/cli/dist/utils/shared-infra.js +45 -0
- package/cli/dist-bundle/{chunk-LNZN426S.js → chunk-4RTR7KXM.js} +56 -55
- package/cli/dist-bundle/cli.js +255 -255
- package/cli/dist-bundle/{cold-preflight-D7CAIHND.js → cold-preflight-SJPUDOFL.js} +1 -1
- package/cli/package.json +1 -1
- package/discovery/AGENTS.md +3 -3
- package/engine/AGENTS.md +15 -15
- package/engine/README.md +1 -1
- package/engine/topologies/tilt/manifest/README.md +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{createRequire as __tdkRequire}from'node:module';const require=__tdkRequire(import.meta.url);
|
|
2
|
-
import{
|
|
2
|
+
import{tb as a,ub as b,vb as c,wb as d,xb as e}from"./chunk-4RTR7KXM.js";import"./chunk-42IVF3YT.js";import"./chunk-6EA4DGCY.js";export{e as assertMachineReadyOrExit,d as formatColdPreflight,a as nodeTooOld,b as requireVerifiedDockerVersions,c as runColdPreflight};
|
package/cli/package.json
CHANGED
package/discovery/AGENTS.md
CHANGED
|
@@ -147,8 +147,8 @@ If issues arise with Phase 2:
|
|
|
147
147
|
```bash
|
|
148
148
|
# Restore Phase 1 behavior
|
|
149
149
|
tilt down
|
|
150
|
-
git checkout
|
|
151
|
-
git checkout
|
|
150
|
+
git checkout discovery/constants.star
|
|
151
|
+
git checkout discovery/discovery_orchestrator.star
|
|
152
152
|
tilt up
|
|
153
153
|
```
|
|
154
154
|
|
|
@@ -323,7 +323,7 @@ initialize_discovery(_DISCOVERY_CACHE)
|
|
|
323
323
|
|
|
324
324
|
**Pass 2:** Export to autogenerated Tilt resources
|
|
325
325
|
1. `registry.star` reads from discovery cache
|
|
326
|
-
2. Generates `.
|
|
326
|
+
2. Generates `.tdk/.tdk-out/product_autogenerated_*/` files
|
|
327
327
|
3. Creates Tilt resources from generated files
|
|
328
328
|
|
|
329
329
|
## Important Notes
|
package/engine/AGENTS.md
CHANGED
|
@@ -34,7 +34,7 @@ You don't just manage services; you map, design, and optimize the topology that
|
|
|
34
34
|
|
|
35
35
|
**Topology Architecture:**
|
|
36
36
|
```
|
|
37
|
-
|
|
37
|
+
engine/topologies/
|
|
38
38
|
├── platform/ # Infrastructure topology
|
|
39
39
|
│ ├── docker/ # Dockerfile, compose, golden image
|
|
40
40
|
│ ├── net/ # Proxy, networking
|
|
@@ -105,7 +105,7 @@ You don't just manage services; you map, design, and optimize the topology that
|
|
|
105
105
|
|
|
106
106
|
**The Core Pattern (1 manifest → 1 resource → 10 generators):**
|
|
107
107
|
```starlark
|
|
108
|
-
#
|
|
108
|
+
# engine/topologies/tilt/resources/orchestrator/apply.star
|
|
109
109
|
load("./generators/manifest_resource.star", "ManifestResource")
|
|
110
110
|
|
|
111
111
|
for resource in resource_config.get('resources', []):
|
|
@@ -135,7 +135,7 @@ for resource in resource_config.get('resources', []):
|
|
|
135
135
|
|
|
136
136
|
**Registry Loading:**
|
|
137
137
|
```starlark
|
|
138
|
-
#
|
|
138
|
+
# discovery/registry.star
|
|
139
139
|
load("./discovery.star", "initialize_discovery")
|
|
140
140
|
|
|
141
141
|
_DISCOVERY_CACHE = {
|
|
@@ -159,7 +159,7 @@ def get_resource_by_name(name):
|
|
|
159
159
|
|
|
160
160
|
**Autogenerated Services List:**
|
|
161
161
|
```starlark
|
|
162
|
-
# .
|
|
162
|
+
# .tdk/.tdk-out/product_autogenerated_resource_manifests/services.autogenerated.star
|
|
163
163
|
APP_RESOURCES_AUTOGENERATED = [
|
|
164
164
|
{
|
|
165
165
|
'name': 'order-planner',
|
|
@@ -187,7 +187,7 @@ APP_RESOURCES_AUTOGENERATED = [
|
|
|
187
187
|
|
|
188
188
|
**Vite Config Generator:**
|
|
189
189
|
```starlark
|
|
190
|
-
#
|
|
190
|
+
# engine/topologies/tilt/generators/vite_config.star
|
|
191
191
|
def generate_for_manifest(manifest, backend_manifest, write_fn):
|
|
192
192
|
app_type = manifest.get('appType')
|
|
193
193
|
|
|
@@ -209,7 +209,7 @@ def generate_for_manifest(manifest, backend_manifest, write_fn):
|
|
|
209
209
|
|
|
210
210
|
**TSConfig Generator:**
|
|
211
211
|
```starlark
|
|
212
|
-
#
|
|
212
|
+
# engine/topologies/tilt/generators/tsconfig.star
|
|
213
213
|
def generate_backend(path, prisma_path, write_fn, internal_deps, is_docker):
|
|
214
214
|
config = {
|
|
215
215
|
"compilerOptions": {
|
|
@@ -226,7 +226,7 @@ def generate_backend(path, prisma_path, write_fn, internal_deps, is_docker):
|
|
|
226
226
|
|
|
227
227
|
**Dockerfile Generation:**
|
|
228
228
|
```starlark
|
|
229
|
-
#
|
|
229
|
+
# engine/topologies/platform/docker/dockerfile/dockerfile.star
|
|
230
230
|
def generate_app_dockerfile(path, resource_name, start_command):
|
|
231
231
|
return '''
|
|
232
232
|
# L1: Golden Image Base
|
|
@@ -263,7 +263,7 @@ golden-image-l1 (Base)
|
|
|
263
263
|
|
|
264
264
|
**Golden Image Module:**
|
|
265
265
|
```starlark
|
|
266
|
-
#
|
|
266
|
+
# engine/topologies/platform/docker/build/golden_image.star
|
|
267
267
|
GoldenImage = struct(
|
|
268
268
|
build_l1 = _build_l1_base,
|
|
269
269
|
build_l2 = _build_l2_deps,
|
|
@@ -283,7 +283,7 @@ GoldenImage = struct(
|
|
|
283
283
|
|
|
284
284
|
**Per-Service Database Provisioning:**
|
|
285
285
|
```starlark
|
|
286
|
-
#
|
|
286
|
+
# engine/topologies/platform/state/relational.star
|
|
287
287
|
load("./prisma/db_readiness.star", "wait_for_db")
|
|
288
288
|
load("./prisma/migrate_script.star", "generate_migrate_script")
|
|
289
289
|
|
|
@@ -308,7 +308,7 @@ def get_database_url(resource_name):
|
|
|
308
308
|
|
|
309
309
|
**Database Readiness Checks:**
|
|
310
310
|
```starlark
|
|
311
|
-
#
|
|
311
|
+
# engine/topologies/platform/docker/layers/prisma/db_readiness.star
|
|
312
312
|
def wait_for_db(db_url, timeout=30):
|
|
313
313
|
"""Waits for PostgreSQL to be ready"""
|
|
314
314
|
return '''
|
|
@@ -324,7 +324,7 @@ done
|
|
|
324
324
|
|
|
325
325
|
**Traefik Configuration:**
|
|
326
326
|
```starlark
|
|
327
|
-
#
|
|
327
|
+
# engine/topologies/platform/net/proxy.star
|
|
328
328
|
def generate_traefik_labels(resource_name, port, host, path_prefix):
|
|
329
329
|
return {
|
|
330
330
|
'traefik.enable': 'true',
|
|
@@ -338,7 +338,7 @@ def generate_traefik_labels(resource_name, port, host, path_prefix):
|
|
|
338
338
|
|
|
339
339
|
**Library Discovery & Setup:**
|
|
340
340
|
```starlark
|
|
341
|
-
#
|
|
341
|
+
# engine/topologies/tilt/resources/deps.star
|
|
342
342
|
def discover_resource_libraries(ctx, resource_path):
|
|
343
343
|
"""Discovers @tdk/* dependencies from package.json"""
|
|
344
344
|
package_json = read_json(resource_path + "/package.json")
|
|
@@ -385,7 +385,7 @@ def setup_libraries(ctx, should_enable, DDD_LIBS, PLATFORM_LIBS, PRODUCT_LIBS, g
|
|
|
385
385
|
```
|
|
386
386
|
❌ DON'T MODIFY:
|
|
387
387
|
- **/autogenerated/*.autogenerated.*
|
|
388
|
-
- .
|
|
388
|
+
- .tdk/.tdk-out/product_autogenerated_*/*
|
|
389
389
|
- **/services.autogenerated.star
|
|
390
390
|
- **/domains.autogenerated.star
|
|
391
391
|
```
|
|
@@ -395,7 +395,7 @@ def setup_libraries(ctx, should_enable, DDD_LIBS, PLATFORM_LIBS, PRODUCT_LIBS, g
|
|
|
395
395
|
✅ MODIFY THESE INSTEAD:
|
|
396
396
|
- service.json (or let synthesis auto-configure from directory)
|
|
397
397
|
- package.json (dependencies)
|
|
398
|
-
-
|
|
398
|
+
- discovery/registry.star
|
|
399
399
|
```
|
|
400
400
|
|
|
401
401
|
### Manifest-Driven Rule
|
|
@@ -639,7 +639,7 @@ load('ext://live_update', 'sync', 'run') # Remove this line!
|
|
|
639
639
|
4. Verify in Tilt UI
|
|
640
640
|
|
|
641
641
|
### Adding New Generator
|
|
642
|
-
1. Create generator in
|
|
642
|
+
1. Create generator in `engine/topologies/tilt/generators/`
|
|
643
643
|
2. Export in `index.star`
|
|
644
644
|
3. Call from `manifest_resource.star`
|
|
645
645
|
4. Test with single manifest
|
package/engine/README.md
CHANGED
|
@@ -24,7 +24,7 @@ This directory contains the TDK Landscape Tilt infrastructure framework - the co
|
|
|
24
24
|
|
|
25
25
|
When you see `.tilt-engine/` in paths, know that this is framework code (not generated output).
|
|
26
26
|
|
|
27
|
-
Generated/output files go in `.
|
|
27
|
+
Generated/output files go in `.tdk/.tdk-out/` (which is gitignored).
|
|
28
28
|
|
|
29
29
|
## Learn More
|
|
30
30
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# 📋 Manifest Module
|
|
2
2
|
|
|
3
3
|
**Status:** ✅ All Phases Complete! (Phase 1-5)
|
|
4
|
-
**Location:**
|
|
4
|
+
**Location:** `engine/topologies/tilt/manifest/`
|
|
5
5
|
**Purpose:** Clean, modular manifest parsing, loading, validation, and discovery integration system
|
|
6
6
|
|
|
7
7
|
---
|