@flisk-sh/flisk 1.3.190 → 1.3.192
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/CHANGELOG.md +9 -9
- package/LICENSE +1 -1
- package/README.md +41 -41
- package/Tiltfile +2 -2
- package/cli/bin/{flisk.js → tdk.js} +1 -1
- package/cli/dist/cli.js +59 -0
- package/cli/dist/commands/__tests__/project-e2e-helpers.js +2 -2
- package/cli/dist/commands/completion.js +26 -26
- package/cli/dist/commands/config.js +1 -1
- package/cli/dist/commands/import.js +4 -4
- package/cli/dist/commands/maintainers.js +1 -1
- package/cli/dist/commands/mcp.js +1 -4
- package/cli/dist/commands/project.js +10 -2
- package/cli/dist/commands/resource.js +1 -1
- package/cli/dist/commands/ui.js +1 -1
- package/cli/dist/commands/up.js +77 -3
- package/cli/dist/commands/upgrade.js +28 -14
- package/cli/dist/generator/extension-fetch.js +3 -3
- package/cli/dist/generator/template-engine.js +8 -8
- package/cli/dist/mcp/tools.js +2 -5
- package/cli/dist/program.js +2 -0
- package/cli/dist/utils/cli-command.js +107 -0
- package/cli/dist/utils/cold-preflight.js +2 -1
- package/cli/dist/utils/constants.js +1 -1
- package/cli/dist/utils/doctor-fix.js +4 -5
- package/cli/dist/utils/doctor-runtime.js +1 -1
- package/cli/dist/utils/doctor-starlark.js +1 -1
- package/cli/dist/utils/doctor-wiring.js +2 -2
- package/cli/dist/utils/env-selection.js +201 -0
- package/cli/dist/utils/env-validator.js +6 -0
- package/cli/dist/utils/one-command.js +50 -0
- package/cli/dist/utils/platform.js +2 -6
- package/cli/dist/utils/project-templates.js +11 -7
- package/cli/dist/utils/secret-redaction.js +15 -6
- package/cli/dist/utils/service-manifest.js +1 -1
- package/cli/dist/utils/smoke.js +2 -2
- package/cli/dist/utils/tar.js +1 -1
- package/cli/dist-bundle/{chunk-BZ4H7MM4.js → chunk-42IVF3YT.js} +2 -2
- package/cli/dist-bundle/chunk-GOEBYLFN.js +2 -0
- package/cli/dist-bundle/chunk-KGKKDD4K.js +2 -0
- package/cli/dist-bundle/chunk-QR6O2A7L.js +34 -0
- package/cli/dist-bundle/chunk-RHSMS45X.js +438 -0
- package/cli/dist-bundle/chunk-XYFVXSEO.js +75 -0
- package/cli/dist-bundle/cli.js +342 -370
- package/cli/dist-bundle/cold-preflight-ZJAU3E7K.js +2 -0
- package/cli/dist-bundle/{extension-fetch-J4FFH7TJ.js → extension-fetch-6XNTDF44.js} +1 -1
- package/cli/dist-bundle/one-command-A4R272U3.js +4 -0
- package/cli/dist-bundle/project-FOAR7E55.js +2 -0
- package/cli/dist-bundle/project-templates-BHURA3LT.js +2 -0
- package/cli/dist-bundle/url-actions-D6ROTHZG.js +2 -0
- package/cli/package.json +2 -4
- package/cli/shared-platform-engineering/docker-templates/bun-hoisted-symlink-fix.sh +1 -1
- package/cli/shared-platform-engineering/docker-templates/infisical-entrypoint.sh +1 -1
- package/cli/shared-platform-engineering/docker-templates/install-deps.sh +1 -1
- package/cli/shared-platform-engineering/docker-templates/prisma-bun-client-link-fix.sh +1 -1
- package/cli/shared-platform-engineering/docker-templates/prisma-normalize-client.sh +1 -1
- package/cli/templates/Tiltfile.hbs +1 -1
- package/discovery/AGENTS.md +1 -1
- package/discovery/TILT_DISCOVERY.star +3 -3
- package/discovery/Tiltfile +3 -3
- package/discovery/config.star +1 -1
- package/discovery/constants.star +1 -1
- package/discovery/discovery_orchestrator.star +1 -1
- package/discovery/identity-management-frontend/service.yaml +1 -1
- package/discovery/json_manifest_scanner.star +1 -1
- package/discovery/manifest/constants.star +1 -1
- package/discovery/manifest/loading.star +2 -2
- package/discovery/manifest/normalize.star +1 -1
- package/discovery/registry.star +1 -1
- package/discovery/resource_snapshot.py +1 -1
- package/discovery/resource_snapshot.star +1 -1
- package/discovery/test_resource_snapshot.py +2 -2
- package/engine/AGENTS.md +7 -7
- package/engine/README.md +1 -1
- package/engine/Tiltfile +3 -3
- package/engine/assets/docker/wake-gateway/decide.ts +1 -1
- package/engine/assets/docker/wake-gateway/server.ts +1 -1
- package/engine/assets/scripts/mac-m1-resource-monitor.sh +8 -8
- package/engine/lifecycle/orchestrator.star +6 -6
- package/engine/paths.star +1 -1
- package/engine/schemas/project-schema.json +2 -2
- package/engine/schemas/service-schema.json +3 -3
- package/engine/scripts/debug-container.sh +2 -2
- package/engine/spec.master +1 -1
- package/engine/topologies/platform/docker/compose/compose.star +1 -1
- package/engine/topologies/platform/docker/compose/traefik_standalone.star +1 -1
- package/engine/topologies/platform/docker/config/healthcheck.star +1 -1
- package/engine/topologies/platform/docker/constants.star +2 -2
- package/engine/topologies/platform/docker/dockerfile/language_dockerfile.star +3 -3
- package/engine/topologies/platform/docker/layers/l1_base_layers.star +1 -1
- package/engine/topologies/platform/docker/layers/l2_dependency_layers.star +1 -1
- package/engine/topologies/platform/docker/layers/l3_builder_layers.star +1 -1
- package/engine/topologies/platform/docker/layers/l4_runtime_layers.star +1 -1
- package/engine/topologies/platform/docker/layers/prisma/constants.star +1 -1
- package/engine/topologies/platform/docker/layers/prisma/prisma_build.star +2 -2
- package/engine/topologies/platform/docker/networking/api_path_constants.star +1 -1
- package/engine/topologies/platform/docker/networking/traefik_static_routes.star +1 -1
- package/engine/topologies/platform/docker/secrets/env_secrets.star +1 -1
- package/engine/topologies/platform/docker/secrets/infisical.star +1 -1
- package/engine/topologies/platform/security/secrets.star +1 -1
- package/engine/topologies/tilt/common/utils.star +5 -3
- package/engine/topologies/tilt/common/utils_debug.star +1 -1
- package/engine/topologies/tilt/common/utils_deterministic.star +1 -1
- package/engine/topologies/tilt/common/utils_env.star +23 -3
- package/engine/topologies/tilt/config/profiles.star +1 -1
- package/engine/topologies/tilt/generators/infisical/organization.star +1 -1
- package/engine/topologies/tilt/generators/npmrc.star +4 -4
- package/engine/topologies/tilt/generators/typescript/backend_tsconfig.star +1 -1
- package/engine/topologies/tilt/generators/vite/helpers.star +1 -1
- package/engine/topologies/tilt/generators/vite/templates.star +1 -1
- package/engine/topologies/tilt/manifest/json_to_yaml.py +2 -2
- package/engine/topologies/tilt/manifest/loader.star +1 -1
- package/engine/topologies/tilt/manifest/schema.star +2 -2
- package/engine/topologies/tilt/manifest/tests/test_loader_parser.star +3 -3
- package/engine/topologies/tilt/manifest/tests/test_validator.star +2 -2
- package/engine/topologies/tilt/manifest/yaml_to_json.py +1 -1
- package/engine/topologies/tilt/resources/databases.star +1 -1
- package/engine/topologies/tilt/resources/infra-loader.star +8 -6
- package/engine/topologies/tilt/resources/libs_paths.star +1 -1
- package/engine/topologies/tilt/resources/libs_resource_definition.star +1 -1
- package/engine/topologies/tilt/resources/libs_setup.star +1 -1
- package/engine/topologies/tilt/resources/orchestrator/apply_compose_resource_registration.star +13 -8
- package/engine/topologies/tilt/resources/orchestrator/generators/frontend.star +1 -1
- package/engine/topologies/tilt/resources/orchestrator/generators/manifest_resource.star +1 -1
- package/engine/topologies/tilt/resources/watchers.star +7 -7
- package/engine/where-things-live.star +1 -1
- package/examples/tdk-example/LICENSE +1 -1
- package/examples/tdk-example/Tiltfile +7 -7
- package/examples/tdk-example/services/shop/orders-api/service.json +1 -1
- package/examples/tdk-example/services/shop/orders-app/index.html +1 -1
- package/examples/tdk-example/services/shop/orders-app/service.json +1 -1
- package/examples/tdk-example/services/shop/orders-worker/service.json +1 -1
- package/ext/Tiltfile +3 -3
- package/ext/ide-components/code_viewer/server.py +1 -1
- package/ext/ide-components/config_inspector/server.py +1 -1
- package/ext/ide-components/file_browser/server.py +1 -1
- package/ext/ide-components/shared/config_service.py +2 -2
- package/ext/ide-components/shared/file_utils.py +2 -2
- package/ext/ide-components/shared/http_utils.py +1 -1
- package/ext/ide-components/shared/syntax_highlighter.py +1 -1
- package/ext/ide-components/shared/template_engine.py +1 -1
- package/ext/ide-components/shared/templates/base.html +1 -1
- package/ext/ide-components/shared/test_config_service.py +1 -1
- package/ext/ide-components/shared/tilt_integration.py +1 -1
- package/ext/ui-enhancements/tiltfile.py +1 -1
- package/package.json +6 -10
- package/shared-platform-engineering/docker-templates/bun-hoisted-symlink-fix.sh +1 -1
- package/shared-platform-engineering/docker-templates/infisical-entrypoint.sh +1 -1
- package/shared-platform-engineering/docker-templates/install-deps.sh +1 -1
- package/shared-platform-engineering/docker-templates/prisma-bun-client-link-fix.sh +1 -1
- package/shared-platform-engineering/docker-templates/prisma-normalize-client.sh +1 -1
- package/cli/dist-bundle/chunk-CLCUIDBH.js +0 -510
- package/cli/dist-bundle/cold-preflight-SY26O2IG.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __tdkRequire}from'node:module';const require=__tdkRequire(import.meta.url);
|
|
2
|
+
import{Q as a,R as b,S as c,T as d,U as e,V as f,W as g,X as h,Y as i,Z as j}from"./chunk-RHSMS45X.js";import"./chunk-XYFVXSEO.js";import"./chunk-42IVF3YT.js";import"./chunk-6EA4DGCY.js";export{c as MACHINE_CHECK_IDS,a as RUNTIME_CHECK_IDS,b as SCAFFOLD_CHECK_IDS,h as assertMachineReadyOrExit,i as detectRuntimePrerequisites,g as formatColdPreflight,j as formatRuntimeNextSteps,d as nodeTooOld,e as requireVerifiedDockerVersions,f as runColdPreflight};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{createRequire as __tdkRequire}from'node:module';const require=__tdkRequire(import.meta.url);
|
|
2
|
-
import{b as a,c as b,d as c,e as d}from"./chunk-
|
|
2
|
+
import{b as a,c as b,d as c,e as d}from"./chunk-42IVF3YT.js";import"./chunk-6EA4DGCY.js";export{a as applyPremiumOverlay,c as hasDddLicense,d as hasSablierLicense,b as hasVerdaccioLicense};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{createRequire as __tdkRequire}from'node:module';const require=__tdkRequire(import.meta.url);
|
|
2
|
+
import"./chunk-6EA4DGCY.js";import{spawn as a}from"node:child_process";var l="Frontend URLs";function m(i){let e=i.split(`
|
|
3
|
+
`),o=e.findIndex(n=>n.includes(l));if(o!==-1)for(let n of e.slice(o+1)){let r=n.match(/^\s*-\s+\S+:\s+(https?:\/\/\S+)/);if(r)return r[1];if(n.trim()===""||n.includes("URLs:"))break}}function x(i,e,o=process.env,n=a,r){return new Promise(u=>{let c=n(process.execPath,[i,"up"],{cwd:e,env:o,stdio:["inherit","pipe","inherit"]}),s="",d=!1;c.stdout?.on("data",t=>{let f=String(t);if(s+=f,process.stdout.write(f),!d){let p=m(s);p&&(d=!0,r?.(p))}}),c.on("error",t=>u({code:1,output:`${s}
|
|
4
|
+
${t.message}`})),c.on("close",t=>u({code:t,output:s}))})}export{m as findFrontendUrl,x as runStack};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __tdkRequire}from'node:module';const require=__tdkRequire(import.meta.url);
|
|
2
|
+
import{g as a,h as b,i as c,j as d}from"./chunk-QR6O2A7L.js";import"./chunk-KGKKDD4K.js";import"./chunk-XYFVXSEO.js";import"./chunk-42IVF3YT.js";import"./chunk-6EA4DGCY.js";export{c as cloneProjectTemplate,a as enableDiscoveredStacks,d as projectCommand,b as templateTargetDir};
|
package/cli/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tdk-cli-internal",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.192",
|
|
5
5
|
"description": "Flisk CLI — start services on your machine.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"flisk",
|
|
@@ -25,9 +25,7 @@
|
|
|
25
25
|
"main": "./dist/index.js",
|
|
26
26
|
"types": "./dist/index.d.ts",
|
|
27
27
|
"bin": {
|
|
28
|
-
"flisk": "bin/
|
|
29
|
-
"tdk": "bin/flisk.js",
|
|
30
|
-
"tdk-cli": "bin/flisk.js"
|
|
28
|
+
"flisk": "bin/tdk.js"
|
|
31
29
|
},
|
|
32
30
|
"files": [
|
|
33
31
|
"dist",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
|
-
# Copyright (c) 2026 Flisk contributors
|
|
2
|
+
# Copyright (c) 2026 Flisk Landscape contributors
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
4
|
# =============================================================================
|
|
5
5
|
# 🔐 UNIVERSAL INFISICAL ENTRYPOINT - Zero-Code Secret Injection
|
|
@@ -42,7 +42,7 @@ Fix it with one of:
|
|
|
42
42
|
(set $TDK_EXTENSION_SOURCE to a tdk-cli checkout if it was not auto-detected)
|
|
43
43
|
2) Point at any tdk-cli checkout:
|
|
44
44
|
export TDK_EXTENSION_PATH=/path/to/tdk-cli
|
|
45
|
-
3) Follow the sandbox guide: https://
|
|
45
|
+
3) Follow the sandbox guide: https://flisk.sh/sandbox/
|
|
46
46
|
""")
|
|
47
47
|
|
|
48
48
|
v1alpha1.extension_repo(name='tdk-cli-local', url='file://' + _local_tdk_path)
|
package/discovery/AGENTS.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Purpose
|
|
4
4
|
|
|
5
|
-
This folder contains the **service discovery system** for Flisk's Tilt infrastructure. It scans the repository for service manifests and creates Tilt resources.
|
|
5
|
+
This folder contains the **service discovery system** for Flisk Landscape's Tilt infrastructure. It scans the repository for service manifests and creates Tilt resources.
|
|
6
6
|
|
|
7
7
|
## Architecture: Two-Layer Scanning with Validation
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env starlark
|
|
2
|
-
# Copyright (c) 2026 Flisk contributors
|
|
2
|
+
# Copyright (c) 2026 Flisk Landscape contributors
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
4
|
# =============================================================================
|
|
5
5
|
# 🔍 TILT DISCOVERY CONFIGURATION - MASTER CONFIG
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
# ⚠️ DEVELOPER NOTICE: This is a SYSTEM CONFIG file.
|
|
9
9
|
# For human-friendly docs, see: TILT_CONFIG.md
|
|
10
10
|
#
|
|
11
|
-
# This file defines service discovery settings for the Flisk platform.
|
|
11
|
+
# This file defines service discovery settings for the Flisk Landscape platform.
|
|
12
12
|
# Discovery automatically finds and registers services from the filesystem.
|
|
13
13
|
#
|
|
14
14
|
# 📖 TO EDIT DISCOVERY SETTINGS:
|
|
@@ -265,7 +265,7 @@ def get_dependency_resolution_config():
|
|
|
265
265
|
|
|
266
266
|
# Library dependency patterns (package.json prefixes)
|
|
267
267
|
"library_dependency_prefixes": [
|
|
268
|
-
"@
|
|
268
|
+
"@tdk/",
|
|
269
269
|
],
|
|
270
270
|
|
|
271
271
|
# Default internal dependencies for service types
|
package/discovery/Tiltfile
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# =============================================================================
|
|
2
|
-
# 🎯
|
|
2
|
+
# 🎯 TDK-DISCOVERY - Service Discovery Plugin
|
|
3
3
|
# =============================================================================
|
|
4
4
|
# This is the Tiltfile entry point for the tdk-discovery repo.
|
|
5
5
|
# It exports manifest loading, registry, and auto-discovery daemon.
|
|
6
6
|
#
|
|
7
7
|
# Usage:
|
|
8
|
-
# v1alpha1.extension_repo(name='tdk-discovery', url='https://github.com/
|
|
8
|
+
# v1alpha1.extension_repo(name='tdk-discovery', url='https://github.com/flisk-sh/flisk')
|
|
9
9
|
# load('ext://tdk-discovery', 'get_discovery_path', 'run_daemon', ...)
|
|
10
10
|
# =============================================================================
|
|
11
11
|
|
|
@@ -55,4 +55,4 @@ def get_daemon_command():
|
|
|
55
55
|
"""Return the command to run the discovery daemon."""
|
|
56
56
|
return 'python3 ./resource_snapshot.py daemon'
|
|
57
57
|
|
|
58
|
-
print("✅
|
|
58
|
+
print("✅ TDK Discovery loaded: manifest scanning and auto-discovery")
|
package/discovery/config.star
CHANGED
package/discovery/constants.star
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2026 Flisk contributors
|
|
1
|
+
# Copyright (c) 2026 Flisk Landscape contributors
|
|
2
2
|
# SPDX-License-Identifier: MIT
|
|
3
3
|
load("../engine/topologies/tilt/manifest/parser.star", "extract_stack_from_path")
|
|
4
4
|
load("../engine/topologies/tilt/manifest/loader.star", "ManifestLoader")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2026 Flisk contributors
|
|
1
|
+
# Copyright (c) 2026 Flisk Landscape contributors
|
|
2
2
|
# SPDX-License-Identifier: MIT
|
|
3
3
|
# =============================================================================
|
|
4
4
|
# 📋 TILT SDK - MANIFEST LOADING (CEO Review: rename-service-manifest)
|
|
@@ -199,7 +199,7 @@ def _apply_manifest_defaults(manifest, resource_path):
|
|
|
199
199
|
|
|
200
200
|
Convention over Configuration:
|
|
201
201
|
- features: ["nats", "prisma"] -> usePrisma=True, useNats=True
|
|
202
|
-
- domain: "order" -> databaseName="
|
|
202
|
+
- domain: "order" -> databaseName="Flisk_order"
|
|
203
203
|
- domain: "order" -> traefik.host="order.backend.{project}.local"
|
|
204
204
|
- domain: "order" -> nats.queueGroup="order_backend_svc"
|
|
205
205
|
"""
|
package/discovery/registry.star
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env starlark
|
|
2
2
|
# -*- coding: utf-8 -*-
|
|
3
|
-
# Copyright (c) 2026 Flisk contributors
|
|
3
|
+
# Copyright (c) 2026 Flisk Landscape contributors
|
|
4
4
|
# SPDX-License-Identifier: MIT
|
|
5
5
|
# =============================================================================
|
|
6
6
|
# 🔍 DISCOVERY REGISTRY - Service Discovery for Flisk CLI
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
|
-
# Copyright (c) 2026
|
|
2
|
+
# Copyright (c) 2026 TDK Landscape contributors
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
4
|
"""
|
|
5
5
|
🧪 Tests for resource_snapshot.py
|
|
@@ -55,7 +55,7 @@ class TestSaveSnapshot:
|
|
|
55
55
|
assert "timestamp" in data
|
|
56
56
|
|
|
57
57
|
def test_save_creates_directory(self, temp_workspace):
|
|
58
|
-
"""Test that save_snapshot creates the .
|
|
58
|
+
"""Test that save_snapshot creates the .tdk directory if needed."""
|
|
59
59
|
services = ["services/test/service.json"]
|
|
60
60
|
save_snapshot(services)
|
|
61
61
|
|
package/engine/AGENTS.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
disable: false
|
|
3
|
-
description: Topology specialist for Flisk - expert in Tilt/Starlark, manifest-driven architecture, service discovery, and the complete local development orchestration system. Masters the infrastructure topology that enables 120+ services.
|
|
3
|
+
description: Topology specialist for Flisk Landscape - expert in Tilt/Starlark, manifest-driven architecture, service discovery, and the complete local development orchestration system. Masters the infrastructure topology that enables 120+ services.
|
|
4
4
|
mode: subagent
|
|
5
5
|
tools:
|
|
6
6
|
- write
|
|
@@ -13,7 +13,7 @@ created: 2026-03-31
|
|
|
13
13
|
updated: 2026-04-04
|
|
14
14
|
---
|
|
15
15
|
|
|
16
|
-
You are a senior topology engineer specialized in the Flisk Tilt infrastructure. You are the definitive expert on the manifest-driven architecture, Starlark topology modules, service discovery, and the complete local development orchestration system.
|
|
16
|
+
You are a senior topology engineer specialized in the Flisk Landscape Tilt infrastructure. You are the definitive expert on the manifest-driven architecture, Starlark topology modules, service discovery, and the complete local development orchestration system.
|
|
17
17
|
|
|
18
18
|
## Core Identity: The Infrastructure Cartographer
|
|
19
19
|
|
|
@@ -76,7 +76,7 @@ engine/topologies/
|
|
|
76
76
|
"appType": "backend",
|
|
77
77
|
"stack": "user",
|
|
78
78
|
"port": 4000,
|
|
79
|
-
"databaseName": "
|
|
79
|
+
"databaseName": "Flisk_user",
|
|
80
80
|
"features": ["nats", "prisma", "vite-node"],
|
|
81
81
|
"runtime": "bun",
|
|
82
82
|
"replicas": 2,
|
|
@@ -230,7 +230,7 @@ def generate_backend(path, prisma_path, write_fn, internal_deps, is_docker):
|
|
|
230
230
|
def generate_app_dockerfile(path, resource_name, start_command):
|
|
231
231
|
return '''
|
|
232
232
|
# L1: Golden Image Base
|
|
233
|
-
FROM
|
|
233
|
+
FROM tdk/golden-image-l1:latest AS base
|
|
234
234
|
|
|
235
235
|
# L2: Dependency Installation
|
|
236
236
|
FROM base AS deps
|
|
@@ -340,13 +340,13 @@ def generate_traefik_labels(resource_name, port, host, path_prefix):
|
|
|
340
340
|
```starlark
|
|
341
341
|
# engine/topologies/tilt/resources/deps.star
|
|
342
342
|
def discover_resource_libraries(ctx, resource_path):
|
|
343
|
-
"""Discovers @
|
|
343
|
+
"""Discovers @tdk/* dependencies from package.json"""
|
|
344
344
|
package_json = read_json(resource_path + "/package.json")
|
|
345
345
|
deps = package_json.get("dependencies", {})
|
|
346
346
|
|
|
347
347
|
return [
|
|
348
348
|
name for name in deps.keys()
|
|
349
|
-
if name.startswith("@
|
|
349
|
+
if name.startswith("@tdk/")
|
|
350
350
|
]
|
|
351
351
|
|
|
352
352
|
def setup_libraries(ctx, should_enable, DDD_LIBS, PLATFORM_LIBS, PRODUCT_LIBS, generators):
|
|
@@ -539,7 +539,7 @@ load('./my_custom_extension.star', 'my_function')
|
|
|
539
539
|
# Load from parent directory
|
|
540
540
|
load('../common/utils.star', 'helper')
|
|
541
541
|
|
|
542
|
-
# Load from topologies (Flisk pattern)
|
|
542
|
+
# Load from topologies (Flisk Landscape pattern)
|
|
543
543
|
load('../../../platform/docker/index.star', 'Docker')
|
|
544
544
|
```
|
|
545
545
|
|
package/engine/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
**Tilt Platform Framework Code**
|
|
6
6
|
|
|
7
|
-
This directory contains the Flisk Tilt infrastructure framework - the code that powers our local development orchestration.
|
|
7
|
+
This directory contains the Flisk Landscape Tilt infrastructure framework - the code that powers our local development orchestration.
|
|
8
8
|
|
|
9
9
|
## What's Here
|
|
10
10
|
|
package/engine/Tiltfile
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# =============================================================================
|
|
2
|
-
# 🎯
|
|
2
|
+
# 🎯 TDK-ENGINE - Core Execution Engine
|
|
3
3
|
# =============================================================================
|
|
4
4
|
# This is the Tiltfile entry point for the tdk-engine repo.
|
|
5
5
|
# It exports core orchestration, resource builders, and topology management.
|
|
6
6
|
#
|
|
7
7
|
# Usage:
|
|
8
|
-
# v1alpha1.extension_repo(name='tdk-engine', url='https://github.com/
|
|
8
|
+
# v1alpha1.extension_repo(name='tdk-engine', url='https://github.com/flisk-sh/flisk')
|
|
9
9
|
# load('ext://tdk-engine', 'Utils', 'Manifest', 'Config', ...)
|
|
10
10
|
# =============================================================================
|
|
11
11
|
|
|
@@ -83,4 +83,4 @@ Watchers = _Watchers
|
|
|
83
83
|
# True when a manifest's deferStart is actually active (licensed); decides whether a `<name>-image` prebuild resource exists.
|
|
84
84
|
resource_defers_start = _resource_defers_start
|
|
85
85
|
|
|
86
|
-
print("✅
|
|
86
|
+
print("✅ TDK Engine loaded: orchestration, resources, and lifecycle")
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
|
-
# Copyright (c) 2026 Flisk contributors
|
|
2
|
+
# Copyright (c) 2026 Flisk Landscape contributors
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
4
|
|
|
5
|
-
# Flisk Mac M1 Resource Monitor
|
|
5
|
+
# Flisk Landscape Mac M1 Resource Monitor
|
|
6
6
|
# Monitors Docker container resource usage and provides optimization recommendations
|
|
7
7
|
|
|
8
8
|
set -e
|
|
@@ -14,7 +14,7 @@ YELLOW='\033[1;33m'
|
|
|
14
14
|
BLUE='\033[0;34m'
|
|
15
15
|
NC='\033[0m' # No Color
|
|
16
16
|
|
|
17
|
-
echo -e "${BLUE}🍎 Flisk Mac M1 Resource Monitor${NC}"
|
|
17
|
+
echo -e "${BLUE}🍎 Flisk Landscape Mac M1 Resource Monitor${NC}"
|
|
18
18
|
echo "=================================================="
|
|
19
19
|
|
|
20
20
|
# Check if Docker is running
|
|
@@ -33,19 +33,19 @@ echo -e "${BLUE}💻 System Memory:${NC} $SYSTEM_MEMORY"
|
|
|
33
33
|
|
|
34
34
|
echo ""
|
|
35
35
|
|
|
36
|
-
# Check running Flisk containers
|
|
36
|
+
# Check running Flisk Landscape containers
|
|
37
37
|
PROJECT_CONTAINERS=$(docker ps --format "{{.Names}}" | grep -E "(postgres|redis|nats|kafka|traefik|clickhouse|elasticsearch|verdaccio|infisical)" | sort)
|
|
38
38
|
|
|
39
39
|
if [ -z "$PROJECT_CONTAINERS" ]; then
|
|
40
|
-
echo -e "${YELLOW}⚠️ No Flisk containers are currently running${NC}"
|
|
40
|
+
echo -e "${YELLOW}⚠️ No Flisk Landscape containers are currently running${NC}"
|
|
41
41
|
echo "Run 'tilt up' to start services"
|
|
42
42
|
exit 0
|
|
43
43
|
fi
|
|
44
44
|
|
|
45
|
-
echo -e "${GREEN}📊 Running Flisk Containers:${NC}"
|
|
45
|
+
echo -e "${GREEN}📊 Running Flisk Landscape Containers:${NC}"
|
|
46
46
|
echo "=================================================="
|
|
47
47
|
|
|
48
|
-
# Get detailed stats for Flisk containers
|
|
48
|
+
# Get detailed stats for Flisk Landscape containers
|
|
49
49
|
TOTAL_MEMORY_MB=0
|
|
50
50
|
HIGH_CPU_COUNT=0
|
|
51
51
|
HIGH_MEMORY_COUNT=0
|
|
@@ -82,7 +82,7 @@ while IFS= read -r container; do
|
|
|
82
82
|
TOTAL_MEMORY_MB=$(echo "$TOTAL_MEMORY_MB + $MEMORY_MB" | bc -l 2>/dev/null || echo "$TOTAL_MEMORY_MB")
|
|
83
83
|
|
|
84
84
|
# Format container name for display
|
|
85
|
-
CONTAINER_DISPLAY=$(echo "$container" | sed 's/
|
|
85
|
+
CONTAINER_DISPLAY=$(echo "$container" | sed 's/Flisk_//' | cut -c1-20)
|
|
86
86
|
|
|
87
87
|
printf "%-20s\t%s%%\t%s\t%s\n" "$CONTAINER_DISPLAY" "$CPU_PERCENT" "$MEMORY_USAGE" "$STATUS"
|
|
88
88
|
fi
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2026 Flisk contributors
|
|
1
|
+
# Copyright (c) 2026 Flisk Landscape contributors
|
|
2
2
|
# SPDX-License-Identifier: MIT
|
|
3
3
|
# =============================================================================
|
|
4
4
|
# 🔄 TILT LIFECYCLE - SERVICE STARTUP ORCHESTRATOR
|
|
@@ -37,14 +37,14 @@ load('../topologies/platform/docker/networking/traefik_constants.star',
|
|
|
37
37
|
# Service startup phases - ensure infrastructure is ready before apps
|
|
38
38
|
STARTUP_PHASES = {
|
|
39
39
|
'infra': [
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
40
|
+
'Flisk_postgres',
|
|
41
|
+
'Flisk_nats',
|
|
42
|
+
'Flisk_infisical',
|
|
43
43
|
'verdaccio',
|
|
44
44
|
],
|
|
45
45
|
'proxy': [
|
|
46
|
-
'
|
|
47
|
-
'
|
|
46
|
+
'Flisk_traefik',
|
|
47
|
+
'Flisk_dashy',
|
|
48
48
|
],
|
|
49
49
|
'migrators': [], # Populated dynamically based on enabled services
|
|
50
50
|
'apps': [], # Populated dynamically based on enabled services
|
package/engine/paths.star
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://
|
|
3
|
+
"$id": "https://flisk.sh/project-schema.json",
|
|
4
4
|
"title": "Flisk Project Configuration",
|
|
5
|
-
"description": "Editor assistance for .tdk/project.json. Flisk
|
|
5
|
+
"description": "Editor assistance for .tdk/project.json. The Flisk CLI remains the runtime source of truth.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"additionalProperties": true,
|
|
8
8
|
"required": [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://
|
|
2
|
+
"$id": "https://flisk.sh/schema.service.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"additionalProperties": true,
|
|
5
5
|
"allOf": [
|
|
@@ -138,13 +138,13 @@
|
|
|
138
138
|
"type": "string"
|
|
139
139
|
},
|
|
140
140
|
"basePath": {
|
|
141
|
-
"description": "Base path for frontend routing on
|
|
141
|
+
"description": "Base path for frontend routing on tdk.localhost. Default is /{stack}s when omitted.",
|
|
142
142
|
"pattern": "^/[a-z0-9/-]*$",
|
|
143
143
|
"type": "string"
|
|
144
144
|
},
|
|
145
145
|
"databaseName": {
|
|
146
146
|
"description": "Override auto-generated DB name.\nDefault: TDK_{stack}",
|
|
147
|
-
"pattern": "^
|
|
147
|
+
"pattern": "^Flisk_[a-z_]+$",
|
|
148
148
|
"type": "string"
|
|
149
149
|
},
|
|
150
150
|
"dependencies": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# Copyright (c) 2026 Flisk contributors
|
|
2
|
+
# Copyright (c) 2026 Flisk Landscape contributors
|
|
3
3
|
# SPDX-License-Identifier: MIT
|
|
4
4
|
# ====================================================================
|
|
5
5
|
# Container Debug Helper Script
|
|
@@ -157,7 +157,7 @@ diagnostics_menu() {
|
|
|
157
157
|
case $choice in
|
|
158
158
|
1)
|
|
159
159
|
echo -e "${BLUE}Testing network connectivity...${NC}"
|
|
160
|
-
run_command "$resource_name" "nc -zv registry.npmjs.org 443 && nc -zv Flisk-verdaccio 4873"
|
|
160
|
+
run_command "$resource_name" "nc -zv registry.npmjs.org 443 && nc -zv Flisk Landscape-verdaccio 4873"
|
|
161
161
|
;;
|
|
162
162
|
2)
|
|
163
163
|
echo -e "${BLUE}Viewing configuration files...${NC}"
|
package/engine/spec.master
CHANGED
|
@@ -341,7 +341,7 @@ SPEC = struct(
|
|
|
341
341
|
SHARED_DIR = PROJECT_ROOT + "/shared",
|
|
342
342
|
|
|
343
343
|
# Topology paths - ALL EXPLICIT
|
|
344
|
-
# NOTE: These paths are relative to
|
|
344
|
+
# NOTE: These paths are relative to TDK CLI installation root (engine/ directory)
|
|
345
345
|
TOPOLOGIES = struct(
|
|
346
346
|
BASE = PROJECT_ROOT + "/engine/topologies",
|
|
347
347
|
PLATFORM = PROJECT_ROOT + "/engine/topologies/platform",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2026 Flisk contributors
|
|
1
|
+
# Copyright (c) 2026 Flisk Landscape contributors
|
|
2
2
|
# SPDX-License-Identifier: MIT
|
|
3
3
|
# =============================================================================
|
|
4
4
|
# Docker healthcheck timing - single source for golden images, L4 runtimes and
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2026 Flisk contributors
|
|
1
|
+
# Copyright (c) 2026 Flisk Landscape contributors
|
|
2
2
|
# SPDX-License-Identifier: MIT
|
|
3
3
|
# =============================================================================
|
|
4
4
|
# 🐳 PLATFORM DOCKER CONSTANTS
|
|
@@ -40,7 +40,7 @@ API_LOCAL_DOMAIN = API_SUBDOMAIN_PREFIX + "." + LOCAL_DOMAIN
|
|
|
40
40
|
EMAIL_DOMAIN = PROJECT_NAME_HYPHEN + ".local"
|
|
41
41
|
|
|
42
42
|
# Published resource-config JSON Schema, same for every project (not project-specific like EMAIL_DOMAIN)
|
|
43
|
-
RESOURCE_SCHEMA_URL = "https://
|
|
43
|
+
RESOURCE_SCHEMA_URL = "https://flisk.sh/schema.service.json"
|
|
44
44
|
|
|
45
45
|
# NPM scope constant
|
|
46
46
|
NPM_SCOPE = "@" + PROJECT_NAME_HYPHEN + "/"
|
|
@@ -223,11 +223,11 @@ ENV GOFLAGS=-buildvcs=false CGO_ENABLED=0
|
|
|
223
223
|
# Prime the build cache inside the image (a cache mount would not be kept), so the first edit recompiles only what changed.
|
|
224
224
|
# Same flags as the watcher's builds (and CGO off like the production stage), so the primed binary and cache match every later one.
|
|
225
225
|
RUN go build -ldflags='-s -w' -o /tmp/app .
|
|
226
|
-
COPY --chmod=755 <<'
|
|
226
|
+
COPY --chmod=755 <<'TDK_GO_DEV_WATCH' /usr/local/bin/tdk-go-watch
|
|
227
227
|
{watch_script}
|
|
228
|
-
|
|
228
|
+
TDK_GO_DEV_WATCH
|
|
229
229
|
EXPOSE {port}
|
|
230
|
-
CMD ["
|
|
230
|
+
CMD ["tdk-go-watch"]
|
|
231
231
|
"""
|
|
232
232
|
|
|
233
233
|
def generate_language_dockerfile(res_path, language, port = BASE_PORT_BACKEND, dev = False):
|