@flisk-sh/flisk 0.0.0-stage → 1.3.189

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (440) hide show
  1. package/CHANGELOG.md +492 -0
  2. package/LICENSE +21 -0
  3. package/README.md +479 -2
  4. package/Tiltfile +151 -0
  5. package/cli/bin/flisk.js +42 -0
  6. package/cli/dist/agent-runtimes/custom.js +335 -0
  7. package/cli/dist/agent-runtimes/registry.js +34 -0
  8. package/cli/dist/backend-frameworks/elysia.js +38 -0
  9. package/cli/dist/backend-frameworks/express.js +49 -0
  10. package/cli/dist/backend-frameworks/fastify.js +43 -0
  11. package/cli/dist/backend-frameworks/h3.js +37 -0
  12. package/cli/dist/backend-frameworks/koa.js +47 -0
  13. package/cli/dist/backend-frameworks/mcp.js +86 -0
  14. package/cli/dist/backend-frameworks/nestjs.js +55 -0
  15. package/cli/dist/backend-frameworks/registry.js +134 -0
  16. package/cli/dist/backend-frameworks/types.js +1 -0
  17. package/cli/dist/backend-languages/bun.js +76 -0
  18. package/cli/dist/backend-languages/go.js +125 -0
  19. package/cli/dist/backend-languages/node.js +122 -0
  20. package/cli/dist/backend-languages/python.js +94 -0
  21. package/cli/dist/backend-languages/registry.js +37 -0
  22. package/cli/dist/backend-languages/rust.js +82 -0
  23. package/cli/dist/backend-languages/types.js +1 -0
  24. package/cli/dist/cli.js +29 -0
  25. package/cli/dist/commands/__tests__/project-e2e-helpers.js +49 -0
  26. package/cli/dist/commands/__tests__/ui-loading-screen.test.js +16 -0
  27. package/cli/dist/commands/agent.js +182 -0
  28. package/cli/dist/commands/completion-candidates.js +116 -0
  29. package/cli/dist/commands/completion.js +843 -0
  30. package/cli/dist/commands/config.js +362 -0
  31. package/cli/dist/commands/doctor.js +1504 -0
  32. package/cli/dist/commands/down.js +114 -0
  33. package/cli/dist/commands/eject.js +108 -0
  34. package/cli/dist/commands/help.js +152 -0
  35. package/cli/dist/commands/import.js +164 -0
  36. package/cli/dist/commands/logs.js +119 -0
  37. package/cli/dist/commands/maintainers.js +102 -0
  38. package/cli/dist/commands/mcp.js +28 -0
  39. package/cli/dist/commands/networks.js +306 -0
  40. package/cli/dist/commands/project.js +447 -0
  41. package/cli/dist/commands/projects.js +103 -0
  42. package/cli/dist/commands/registry.js +53 -0
  43. package/cli/dist/commands/resource.js +992 -0
  44. package/cli/dist/commands/resources.js +127 -0
  45. package/cli/dist/commands/restart.js +89 -0
  46. package/cli/dist/commands/runtime.js +75 -0
  47. package/cli/dist/commands/stack.js +171 -0
  48. package/cli/dist/commands/stacks.js +71 -0
  49. package/cli/dist/commands/status.js +211 -0
  50. package/cli/dist/commands/ui.js +725 -0
  51. package/cli/dist/commands/up.js +609 -0
  52. package/cli/dist/commands/upgrade.js +840 -0
  53. package/cli/dist/commands/version.js +10 -0
  54. package/cli/dist/components/Accessible.js +11 -0
  55. package/cli/dist/components/BaseTooltip.js +30 -0
  56. package/cli/dist/components/DetailPanel.js +33 -0
  57. package/cli/dist/components/FileTree.js +51 -0
  58. package/cli/dist/components/ResourceSelectInput.js +42 -0
  59. package/cli/dist/components/ResourceTable.js +35 -0
  60. package/cli/dist/components/ServiceIssues.js +13 -0
  61. package/cli/dist/components/TUIHeader.js +27 -0
  62. package/cli/dist/components/TabBar.js +27 -0
  63. package/cli/dist/components/Tooltip.js +13 -0
  64. package/cli/dist/components/index.js +11 -0
  65. package/cli/dist/components/ui-theme.js +120 -0
  66. package/cli/dist/config/platform-standards.js +182 -0
  67. package/cli/dist/frontend-frameworks/lit.js +64 -0
  68. package/cli/dist/frontend-frameworks/preact.js +62 -0
  69. package/cli/dist/frontend-frameworks/qwik.js +61 -0
  70. package/cli/dist/frontend-frameworks/react.js +69 -0
  71. package/cli/dist/frontend-frameworks/registry.js +83 -0
  72. package/cli/dist/frontend-frameworks/solid.js +62 -0
  73. package/cli/dist/frontend-frameworks/svelte.js +67 -0
  74. package/cli/dist/frontend-frameworks/tanstack-router.js +101 -0
  75. package/cli/dist/frontend-frameworks/types.js +1 -0
  76. package/cli/dist/frontend-frameworks/vanilla.js +59 -0
  77. package/cli/dist/frontend-frameworks/vue.js +72 -0
  78. package/cli/dist/generator/__tests__/golden-helpers.js +43 -0
  79. package/cli/dist/generator/extension-fetch.js +291 -0
  80. package/cli/dist/generator/resource-templates.js +133 -0
  81. package/cli/dist/generator/template-engine.js +801 -0
  82. package/cli/dist/index.js +10 -0
  83. package/cli/dist/mcp/server.js +101 -0
  84. package/cli/dist/mcp/tools.js +351 -0
  85. package/cli/dist/program.js +37 -0
  86. package/cli/dist/types/index.js +38 -0
  87. package/cli/dist/utils/agent-host.js +36 -0
  88. package/cli/dist/utils/atomic-write.js +36 -0
  89. package/cli/dist/utils/bun-floor.js +9 -0
  90. package/cli/dist/utils/bun-requirement.js +10 -0
  91. package/cli/dist/utils/cache.js +63 -0
  92. package/cli/dist/utils/cold-preflight.js +257 -0
  93. package/cli/dist/utils/command-helpers.js +57 -0
  94. package/cli/dist/utils/constants.js +160 -0
  95. package/cli/dist/utils/discovery-context.js +71 -0
  96. package/cli/dist/utils/discovery-paths.js +93 -0
  97. package/cli/dist/utils/docker.js +34 -0
  98. package/cli/dist/utils/doctor-crashloop.js +161 -0
  99. package/cli/dist/utils/doctor-fix.js +391 -0
  100. package/cli/dist/utils/doctor-host.js +66 -0
  101. package/cli/dist/utils/doctor-report.js +78 -0
  102. package/cli/dist/utils/doctor-runtime.js +880 -0
  103. package/cli/dist/utils/doctor-starlark.js +132 -0
  104. package/cli/dist/utils/doctor-wiring.js +698 -0
  105. package/cli/dist/utils/down-cleanup.js +125 -0
  106. package/cli/dist/utils/env-validator.js +266 -0
  107. package/cli/dist/utils/errors.js +175 -0
  108. package/cli/dist/utils/exec-async.js +31 -0
  109. package/cli/dist/utils/file-helpers.js +104 -0
  110. package/cli/dist/utils/formatting.js +165 -0
  111. package/cli/dist/utils/generated-paths.js +51 -0
  112. package/cli/dist/utils/help-command.js +11 -0
  113. package/cli/dist/utils/host-port-config.js +140 -0
  114. package/cli/dist/utils/host-port-plan.js +100 -0
  115. package/cli/dist/utils/json-output.js +29 -0
  116. package/cli/dist/utils/machine-output.js +33 -0
  117. package/cli/dist/utils/paths.js +43 -0
  118. package/cli/dist/utils/platform.js +58 -0
  119. package/cli/dist/utils/port-assignment.js +75 -0
  120. package/cli/dist/utils/port-conflict-fix.js +25 -0
  121. package/cli/dist/utils/port-fallback-notice.js +17 -0
  122. package/cli/dist/utils/port-listener-probe.js +20 -0
  123. package/cli/dist/utils/project-config-defaults.js +17 -0
  124. package/cli/dist/utils/project-features.js +91 -0
  125. package/cli/dist/utils/project-templates.js +32 -0
  126. package/cli/dist/utils/prompt.js +97 -0
  127. package/cli/dist/utils/resource-features.js +184 -0
  128. package/cli/dist/utils/resource-kind.js +9 -0
  129. package/cli/dist/utils/schema-version-gate.js +45 -0
  130. package/cli/dist/utils/search-status.js +12 -0
  131. package/cli/dist/utils/secret-redaction.js +73 -0
  132. package/cli/dist/utils/service-config-checks.js +189 -0
  133. package/cli/dist/utils/service-manifest.js +254 -0
  134. package/cli/dist/utils/service-runtime-state.js +66 -0
  135. package/cli/dist/utils/service-urls.js +112 -0
  136. package/cli/dist/utils/services.js +360 -0
  137. package/cli/dist/utils/shared-infra.js +45 -0
  138. package/cli/dist/utils/shared-platform-postgres.js +232 -0
  139. package/cli/dist/utils/single-flight.js +21 -0
  140. package/cli/dist/utils/smoke.js +401 -0
  141. package/cli/dist/utils/spinner.js +40 -0
  142. package/cli/dist/utils/stack-features.js +15 -0
  143. package/cli/dist/utils/stack-status.js +14 -0
  144. package/cli/dist/utils/startup-report.js +78 -0
  145. package/cli/dist/utils/status-message.js +21 -0
  146. package/cli/dist/utils/status-ports.js +33 -0
  147. package/cli/dist/utils/suggestions.js +63 -0
  148. package/cli/dist/utils/tar.js +46 -0
  149. package/cli/dist/utils/tdk-version.js +51 -0
  150. package/cli/dist/utils/terminal-layout.js +19 -0
  151. package/cli/dist/utils/tilt-events.js +194 -0
  152. package/cli/dist/utils/tilt-logs.js +61 -0
  153. package/cli/dist/utils/tilt-port-owner.js +63 -0
  154. package/cli/dist/utils/tilt-process.js +54 -0
  155. package/cli/dist/utils/tilt-resource-state.js +32 -0
  156. package/cli/dist/utils/tilt-startup.js +49 -0
  157. package/cli/dist/utils/tilt-unreachable-message.js +9 -0
  158. package/cli/dist/utils/tilt.js +104 -0
  159. package/cli/dist/utils/ui-keymap.js +129 -0
  160. package/cli/dist/utils/ui-service-state.js +34 -0
  161. package/cli/dist/utils/up-only.js +28 -0
  162. package/cli/dist/utils/up-readiness.js +118 -0
  163. package/cli/dist/utils/url-actions.js +103 -0
  164. package/cli/dist/utils/validation.js +62 -0
  165. package/cli/dist/utils/which.js +56 -0
  166. package/cli/dist/utils/windows-doctor.js +176 -0
  167. package/cli/dist-bundle/chunk-6EA4DGCY.js +2 -0
  168. package/cli/dist-bundle/chunk-BZ4H7MM4.js +3 -0
  169. package/cli/dist-bundle/chunk-QWYXYAX6.js +510 -0
  170. package/cli/dist-bundle/cli.js +2017 -0
  171. package/cli/dist-bundle/cold-preflight-MM46GFQA.js +2 -0
  172. package/cli/dist-bundle/devtools-ZUHXW33W.js +5 -0
  173. package/cli/dist-bundle/extension-fetch-J4FFH7TJ.js +2 -0
  174. package/cli/package.json +83 -0
  175. package/cli/shared-platform-engineering/docker-templates/bun-hoisted-symlink-fix.sh +25 -0
  176. package/cli/shared-platform-engineering/docker-templates/infisical-entrypoint.sh +466 -0
  177. package/cli/shared-platform-engineering/docker-templates/install-deps.sh +154 -0
  178. package/cli/shared-platform-engineering/docker-templates/prisma-bun-client-link-fix.sh +14 -0
  179. package/cli/shared-platform-engineering/docker-templates/prisma-normalize-client.sh +58 -0
  180. package/cli/templates/.tiltignore.hbs +72 -0
  181. package/cli/templates/TILT_RESOURCE_DEFAULTS.star.hbs +220 -0
  182. package/cli/templates/TILT_TECH_STACK.star.hbs +149 -0
  183. package/cli/templates/Tiltfile.hbs +381 -0
  184. package/cli/templates/spec.master.hbs +192 -0
  185. package/discovery/AGENTS.md +362 -0
  186. package/discovery/TILT_DISCOVERY.star +429 -0
  187. package/discovery/Tiltfile +58 -0
  188. package/discovery/config.star +265 -0
  189. package/discovery/constants.star +167 -0
  190. package/discovery/deterministic.star +213 -0
  191. package/discovery/discovery_daemon.star +193 -0
  192. package/discovery/discovery_orchestrator.star +492 -0
  193. package/discovery/filtering.star +7 -0
  194. package/discovery/identity-management-backend/service.yaml +26 -0
  195. package/discovery/identity-management-frontend/service.yaml +29 -0
  196. package/discovery/identity-sdk/service.yaml +9 -0
  197. package/discovery/incremental_discovery.star +215 -0
  198. package/discovery/indexing.star +9 -0
  199. package/discovery/json_manifest_scanner.star +57 -0
  200. package/discovery/libraries.star +48 -0
  201. package/discovery/loading.star +25 -0
  202. package/discovery/manifest/constants.star +106 -0
  203. package/discovery/manifest/loading.star +418 -0
  204. package/discovery/manifest/normalize.star +289 -0
  205. package/discovery/manifest/validation.star +110 -0
  206. package/discovery/normalization.star +13 -0
  207. package/discovery/registry.star +562 -0
  208. package/discovery/resource_snapshot.py +384 -0
  209. package/discovery/resource_snapshot.star +145 -0
  210. package/discovery/schemas.star +3 -0
  211. package/discovery/services/platform/cdc/debezium/nats-connector/service.yaml +9 -0
  212. package/discovery/services/platform/cdc/nats-http-bridge/service.yaml +9 -0
  213. package/discovery/services/platform/orchestrator/orchestrator-glue-backend/service.yaml +26 -0
  214. package/discovery/services/platform/synthetic-monitor/service.yaml +9 -0
  215. package/discovery/test_resource_snapshot.py +253 -0
  216. package/discovery/validation.star +80 -0
  217. package/discovery/versioning.star +3 -0
  218. package/engine/AGENTS.md +706 -0
  219. package/engine/README.md +31 -0
  220. package/engine/REFACTORING_MANIFEST_SYSTEM.md +974 -0
  221. package/engine/Tiltfile +86 -0
  222. package/engine/assets/docker/golden-layers.Dockerfile +204 -0
  223. package/engine/assets/docker/wake-gateway/Dockerfile +28 -0
  224. package/engine/assets/docker/wake-gateway/decide.test.ts +177 -0
  225. package/engine/assets/docker/wake-gateway/decide.ts +135 -0
  226. package/engine/assets/docker/wake-gateway/server.ts +363 -0
  227. package/engine/assets/scripts/cleanup-completed-migrator-images.sh +39 -0
  228. package/engine/assets/scripts/cleanup-tilt-images.sh +122 -0
  229. package/engine/assets/scripts/mac-m1-resource-monitor.sh +123 -0
  230. package/engine/config.star +5 -0
  231. package/engine/entrypoint.star +101 -0
  232. package/engine/lifecycle/orchestrator.star +263 -0
  233. package/engine/paths.star +719 -0
  234. package/engine/schemas/project-schema.json +147 -0
  235. package/engine/schemas/service-schema.json +537 -0
  236. package/engine/scripts/README.md +89 -0
  237. package/engine/scripts/build-and-publish-lib.sh +207 -0
  238. package/engine/scripts/check-lib-publish.sh +87 -0
  239. package/engine/scripts/debug-container.sh +265 -0
  240. package/engine/scripts/generate-manifest.sh +200 -0
  241. package/engine/spec.master +702 -0
  242. package/engine/spec.master.example +341 -0
  243. package/engine/topologies/README.md +33 -0
  244. package/engine/topologies/platform/docker/AGENTS.md +59 -0
  245. package/engine/topologies/platform/docker/auth/auth.star +207 -0
  246. package/engine/topologies/platform/docker/build/frontend_build_plan.star +65 -0
  247. package/engine/topologies/platform/docker/build/golden_image.star +37 -0
  248. package/engine/topologies/platform/docker/build/golden_image_build.star +144 -0
  249. package/engine/topologies/platform/docker/build/golden_image_constants.star +100 -0
  250. package/engine/topologies/platform/docker/build/golden_image_dockerfile.star +263 -0
  251. package/engine/topologies/platform/docker/compose/compose.star +637 -0
  252. package/engine/topologies/platform/docker/compose/compose_helpers.star +54 -0
  253. package/engine/topologies/platform/docker/compose/traefik_standalone.star +171 -0
  254. package/engine/topologies/platform/docker/config/bunignore.star +144 -0
  255. package/engine/topologies/platform/docker/config/dockerignore.star +152 -0
  256. package/engine/topologies/platform/docker/config/healthcheck.star +58 -0
  257. package/engine/topologies/platform/docker/constants.star +211 -0
  258. package/engine/topologies/platform/docker/dockerfile/dockerfile.star +56 -0
  259. package/engine/topologies/platform/docker/dockerfile/language_dockerfile.star +264 -0
  260. package/engine/topologies/platform/docker/generators/golden_docker_generator_v2.star +76 -0
  261. package/engine/topologies/platform/docker/index.star +40 -0
  262. package/engine/topologies/platform/docker/layers/bun_helpers.star +25 -0
  263. package/engine/topologies/platform/docker/layers/infisical/index.star +42 -0
  264. package/engine/topologies/platform/docker/layers/infisical/infisical_docker.star +264 -0
  265. package/engine/topologies/platform/docker/layers/l1_base_layers.star +89 -0
  266. package/engine/topologies/platform/docker/layers/l2_dependency_layers.star +147 -0
  267. package/engine/topologies/platform/docker/layers/l3_builder_layers.star +229 -0
  268. package/engine/topologies/platform/docker/layers/l4_runtime_layers.star +282 -0
  269. package/engine/topologies/platform/docker/layers/prisma/constants.star +138 -0
  270. package/engine/topologies/platform/docker/layers/prisma/db_readiness.star +98 -0
  271. package/engine/topologies/platform/docker/layers/prisma/filesystem_setup.star +131 -0
  272. package/engine/topologies/platform/docker/layers/prisma/migrate_script.star +100 -0
  273. package/engine/topologies/platform/docker/layers/prisma/prisma_build.star +128 -0
  274. package/engine/topologies/platform/docker/layers/prisma/prisma_runtime.star +205 -0
  275. package/engine/topologies/platform/docker/layers/prisma/secret_resolution.star +121 -0
  276. package/engine/topologies/platform/docker/networking/api_path_constants.star +206 -0
  277. package/engine/topologies/platform/docker/networking/sablier_container_cycle.star +31 -0
  278. package/engine/topologies/platform/docker/networking/traefik.star +266 -0
  279. package/engine/topologies/platform/docker/networking/traefik_constants.star +148 -0
  280. package/engine/topologies/platform/docker/networking/traefik_helpers.star +162 -0
  281. package/engine/topologies/platform/docker/networking/traefik_static_routes.star +165 -0
  282. package/engine/topologies/platform/docker/secrets/env_secrets.star +74 -0
  283. package/engine/topologies/platform/docker/secrets/infisical.star +109 -0
  284. package/engine/topologies/platform/net/AGENTS.md +64 -0
  285. package/engine/topologies/platform/net/proxy.star +6 -0
  286. package/engine/topologies/platform/registries/local.star +6 -0
  287. package/engine/topologies/platform/registries/verdaccio_loader.star +20 -0
  288. package/engine/topologies/platform/security/AGENTS.md +49 -0
  289. package/engine/topologies/platform/security/secrets.star +241 -0
  290. package/engine/topologies/platform/state/AGENTS.md +64 -0
  291. package/engine/topologies/platform/state/relational.star +6 -0
  292. package/engine/topologies/tilt/common/AGENTS.md +59 -0
  293. package/engine/topologies/tilt/common/utils.star +409 -0
  294. package/engine/topologies/tilt/common/utils_debug.star +71 -0
  295. package/engine/topologies/tilt/common/utils_deterministic.star +170 -0
  296. package/engine/topologies/tilt/common/utils_docker_networks.star +54 -0
  297. package/engine/topologies/tilt/common/utils_env.star +92 -0
  298. package/engine/topologies/tilt/common/utils_output.star +99 -0
  299. package/engine/topologies/tilt/config/AGENTS.md +68 -0
  300. package/engine/topologies/tilt/config/defaults.star +5 -0
  301. package/engine/topologies/tilt/config/feature_flags.star +12 -0
  302. package/engine/topologies/tilt/config/global.star +57 -0
  303. package/engine/topologies/tilt/config/profiles.star +398 -0
  304. package/engine/topologies/tilt/generators/agents_md.star +64 -0
  305. package/engine/topologies/tilt/generators/api_gateway.star +147 -0
  306. package/engine/topologies/tilt/generators/index.star +126 -0
  307. package/engine/topologies/tilt/generators/infisical/README.md +424 -0
  308. package/engine/topologies/tilt/generators/infisical/examples.star +314 -0
  309. package/engine/topologies/tilt/generators/infisical/index.star +59 -0
  310. package/engine/topologies/tilt/generators/infisical/machine_identity.star +422 -0
  311. package/engine/topologies/tilt/generators/infisical/organization.star +536 -0
  312. package/engine/topologies/tilt/generators/infisical/path_manager.star +478 -0
  313. package/engine/topologies/tilt/generators/infisical/secrets_generator.star +422 -0
  314. package/engine/topologies/tilt/generators/nginx_conf.star +145 -0
  315. package/engine/topologies/tilt/generators/npmrc.star +132 -0
  316. package/engine/topologies/tilt/generators/tsconfig.star +25 -0
  317. package/engine/topologies/tilt/generators/typescript/backend_library_tsconfig.star +73 -0
  318. package/engine/topologies/tilt/generators/typescript/backend_tsconfig.star +137 -0
  319. package/engine/topologies/tilt/generators/typescript/common.star +9 -0
  320. package/engine/topologies/tilt/generators/typescript/frontend_library_tsconfig.star +78 -0
  321. package/engine/topologies/tilt/generators/typescript/frontend_tsconfig.star +140 -0
  322. package/engine/topologies/tilt/generators/typescript/include.star +25 -0
  323. package/engine/topologies/tilt/generators/typescript/playwright_config.star +42 -0
  324. package/engine/topologies/tilt/generators/typescript/prisma_config.star +51 -0
  325. package/engine/topologies/tilt/generators/validators.star +868 -0
  326. package/engine/topologies/tilt/generators/vite/backend.star +80 -0
  327. package/engine/topologies/tilt/generators/vite/frameworks/lit.star +92 -0
  328. package/engine/topologies/tilt/generators/vite/frameworks/preact.star +94 -0
  329. package/engine/topologies/tilt/generators/vite/frameworks/qwik.star +94 -0
  330. package/engine/topologies/tilt/generators/vite/frameworks/react.star +128 -0
  331. package/engine/topologies/tilt/generators/vite/frameworks/solid.star +94 -0
  332. package/engine/topologies/tilt/generators/vite/frameworks/svelte.star +94 -0
  333. package/engine/topologies/tilt/generators/vite/frameworks/vanilla.star +92 -0
  334. package/engine/topologies/tilt/generators/vite/frameworks/vue.star +94 -0
  335. package/engine/topologies/tilt/generators/vite/frontend.star +153 -0
  336. package/engine/topologies/tilt/generators/vite/generators.star +45 -0
  337. package/engine/topologies/tilt/generators/vite/helpers.star +256 -0
  338. package/engine/topologies/tilt/generators/vite/library.star +67 -0
  339. package/engine/topologies/tilt/generators/vite/sdk.star +75 -0
  340. package/engine/topologies/tilt/generators/vite/templates.star +460 -0
  341. package/engine/topologies/tilt/generators/vite_config.star +24 -0
  342. package/engine/topologies/tilt/manifest/AGENTS.md +61 -0
  343. package/engine/topologies/tilt/manifest/README.md +679 -0
  344. package/engine/topologies/tilt/manifest/__init__.star +220 -0
  345. package/engine/topologies/tilt/manifest/constants.star +262 -0
  346. package/engine/topologies/tilt/manifest/errors.star +268 -0
  347. package/engine/topologies/tilt/manifest/integration.star +348 -0
  348. package/engine/topologies/tilt/manifest/json_to_yaml.py +61 -0
  349. package/engine/topologies/tilt/manifest/loader.star +239 -0
  350. package/engine/topologies/tilt/manifest/mapper.star +229 -0
  351. package/engine/topologies/tilt/manifest/parser.star +490 -0
  352. package/engine/topologies/tilt/manifest/schema.star +502 -0
  353. package/engine/topologies/tilt/manifest/tests/test_integration.star +278 -0
  354. package/engine/topologies/tilt/manifest/tests/test_loader_parser.star +475 -0
  355. package/engine/topologies/tilt/manifest/tests/test_manifest.star +319 -0
  356. package/engine/topologies/tilt/manifest/tests/test_validator.star +472 -0
  357. package/engine/topologies/tilt/manifest/validator.star +744 -0
  358. package/engine/topologies/tilt/manifest/yaml_to_json.py +20 -0
  359. package/engine/topologies/tilt/resources/AGENTS.md +71 -0
  360. package/engine/topologies/tilt/resources/build_concurrency.star +56 -0
  361. package/engine/topologies/tilt/resources/conditions.star +5 -0
  362. package/engine/topologies/tilt/resources/databases.star +246 -0
  363. package/engine/topologies/tilt/resources/declaration.star +5 -0
  364. package/engine/topologies/tilt/resources/deps.star +5 -0
  365. package/engine/topologies/tilt/resources/infra-loader.star +504 -0
  366. package/engine/topologies/tilt/resources/libs.star +32 -0
  367. package/engine/topologies/tilt/resources/libs_discovery.star +104 -0
  368. package/engine/topologies/tilt/resources/libs_paths.star +81 -0
  369. package/engine/topologies/tilt/resources/libs_resource_definition.star +153 -0
  370. package/engine/topologies/tilt/resources/libs_setup.star +166 -0
  371. package/engine/topologies/tilt/resources/libs_tsconfig.star +39 -0
  372. package/engine/topologies/tilt/resources/orchestrator/apply.star +79 -0
  373. package/engine/topologies/tilt/resources/orchestrator/apply_compose_resource_registration.star +864 -0
  374. package/engine/topologies/tilt/resources/orchestrator/apply_manifest_orchestration.star +90 -0
  375. package/engine/topologies/tilt/resources/orchestrator/apply_migrator_orchestration.star +150 -0
  376. package/engine/topologies/tilt/resources/orchestrator/apply_resource_validation.star +38 -0
  377. package/engine/topologies/tilt/resources/orchestrator/apply_runtime_flags.star +46 -0
  378. package/engine/topologies/tilt/resources/orchestrator/builders/typescript.star +193 -0
  379. package/engine/topologies/tilt/resources/orchestrator/generators/dependencies/AGENTS.md +75 -0
  380. package/engine/topologies/tilt/resources/orchestrator/generators/dependencies/index.star +23 -0
  381. package/engine/topologies/tilt/resources/orchestrator/generators/dependencies/resolver.star +136 -0
  382. package/engine/topologies/tilt/resources/orchestrator/generators/env.star +219 -0
  383. package/engine/topologies/tilt/resources/orchestrator/generators/frontend.star +172 -0
  384. package/engine/topologies/tilt/resources/orchestrator/generators/manifest_resource.star +577 -0
  385. package/engine/topologies/tilt/resources/orchestrator/helpers.star +35 -0
  386. package/engine/topologies/tilt/resources/orchestrator.star +56 -0
  387. package/engine/topologies/tilt/resources/ordering.star +5 -0
  388. package/engine/topologies/tilt/resources/shared-platform-postgres.star +30 -0
  389. package/engine/topologies/tilt/resources/triggers.star +5 -0
  390. package/engine/topologies/tilt/resources/watchers.star +304 -0
  391. package/engine/where-things-live.star +719 -0
  392. package/examples/tdk-example/LICENSE +21 -0
  393. package/examples/tdk-example/README.md +23 -0
  394. package/examples/tdk-example/TILT_SERVICE_DEFAULTS.star +42 -0
  395. package/examples/tdk-example/TILT_TECH_STACK.star +67 -0
  396. package/examples/tdk-example/Tiltfile +25 -0
  397. package/examples/tdk-example/services/platform/messaging/docker-compose.yml +26 -0
  398. package/examples/tdk-example/services/shop/orders-api/package.json +20 -0
  399. package/examples/tdk-example/services/shop/orders-api/service.json +14 -0
  400. package/examples/tdk-example/services/shop/orders-api/src/index.ts +81 -0
  401. package/examples/tdk-example/services/shop/orders-app/index.html +12 -0
  402. package/examples/tdk-example/services/shop/orders-app/package.json +23 -0
  403. package/examples/tdk-example/services/shop/orders-app/public/.gitkeep +0 -0
  404. package/examples/tdk-example/services/shop/orders-app/service.json +9 -0
  405. package/examples/tdk-example/services/shop/orders-app/src/main.tsx +9 -0
  406. package/examples/tdk-example/services/shop/orders-app/src/orders.tsx +67 -0
  407. package/examples/tdk-example/services/shop/orders-app/src/style.css +15 -0
  408. package/examples/tdk-example/services/shop/orders-worker/package.json +18 -0
  409. package/examples/tdk-example/services/shop/orders-worker/service.json +13 -0
  410. package/examples/tdk-example/services/shop/orders-worker/src/index.ts +33 -0
  411. package/ext/Tiltfile +66 -0
  412. package/ext/ide-components/README.md +221 -0
  413. package/ext/ide-components/code_viewer/server.py +208 -0
  414. package/ext/ide-components/config_inspector/server.py +1052 -0
  415. package/ext/ide-components/file_browser/server.py +287 -0
  416. package/ext/ide-components/shared/config_service.py +471 -0
  417. package/ext/ide-components/shared/file_utils.py +300 -0
  418. package/ext/ide-components/shared/http_utils.py +234 -0
  419. package/ext/ide-components/shared/static/styles.css +1334 -0
  420. package/ext/ide-components/shared/syntax_highlighter.py +142 -0
  421. package/ext/ide-components/shared/template_engine.py +125 -0
  422. package/ext/ide-components/shared/templates/base.html +121 -0
  423. package/ext/ide-components/shared/test_config_service.py +328 -0
  424. package/ext/ide-components/shared/tilt_integration.py +160 -0
  425. package/ext/ui-enhancements/cron-status-server.sh +51 -0
  426. package/ext/ui-enhancements/cron-status-tracker.sh +148 -0
  427. package/ext/ui-enhancements/extension.yaml +36 -0
  428. package/ext/ui-enhancements/tiltfile.py +101 -0
  429. package/ext/ui-enhancements/ui/cron-jobs-tab.css +396 -0
  430. package/ext/ui-enhancements/ui/help-panel.css +279 -0
  431. package/ext/ui-enhancements/ui/icons.css +125 -0
  432. package/ext/ui-enhancements/ui/tooltips.css +114 -0
  433. package/package.json +94 -4
  434. package/shared-platform-engineering/docker-templates/bun-hoisted-symlink-fix.sh +25 -0
  435. package/shared-platform-engineering/docker-templates/infisical-entrypoint.sh +466 -0
  436. package/shared-platform-engineering/docker-templates/install-deps.sh +154 -0
  437. package/shared-platform-engineering/docker-templates/prisma-bun-client-link-fix.sh +14 -0
  438. package/shared-platform-engineering/docker-templates/prisma-normalize-client.sh +58 -0
  439. package/specs/specs/TILT_SERVICE_DEFAULTS.star +207 -0
  440. package/specs/specs/TILT_TECH_STACK.star +161 -0
@@ -0,0 +1,10 @@
1
+ // Copyright (c) 2026 Flisk Landscape contributors
2
+ // SPDX-License-Identifier: MIT
3
+ import { Command } from "commander";
4
+ import { getPackageVersion } from "../utils/paths.js";
5
+ export const versionCommand = new Command("version")
6
+ .description("Display version number")
7
+ .alias("v")
8
+ .action(() => {
9
+ console.log(getPackageVersion());
10
+ });
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { BaseTooltip } from "./BaseTooltip.js";
3
+ import { useTUITheme } from "./ui-theme.js";
4
+ /**
5
+ * Info tooltip variant with predefined accessibility styling.
6
+ * Uses an ℹ prefix ([i] in ASCII mode) and adds margin for better visibility.
7
+ */
8
+ export const AccessibleTooltip = ({ content, shortcut, visible }) => {
9
+ const theme = useTUITheme();
10
+ return (_jsx(BaseTooltip, { content: content, shortcut: shortcut, visible: visible, prefix: theme.ascii ? "[i] " : "ℹ ", marginTop: 1 }));
11
+ };
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // Copyright (c) 2026 Flisk Landscape contributors
3
+ // SPDX-License-Identifier: MIT
4
+ import { Box, Text } from "ink";
5
+ import { useTUITheme } from "./ui-theme.js";
6
+ export const BaseTooltip = ({ content, shortcut, visible, maxWidth = 40, wrapText = false, prefix = "", marginTop = 0, }) => {
7
+ const theme = useTUITheme();
8
+ if (!visible)
9
+ return null;
10
+ const lines = wrapText ? wrapContent(content, maxWidth) : [content];
11
+ return (_jsxs(Box, { flexDirection: "column", borderStyle: theme.ascii ? undefined : "single", borderColor: theme.warning, paddingX: 1, paddingY: 1, backgroundColor: theme.ascii ? undefined : "black", marginTop: marginTop, children: [lines.map((line, i) => (_jsxs(Text, { color: theme.warning, bold: theme.highContrast, children: [prefix, line] }, i))), shortcut && (_jsxs(Box, { marginTop: 1, children: [_jsx(Text, { color: theme.muted, children: "Press " }), _jsx(Text, { color: theme.accent, bold: true, children: shortcut.startsWith("[") ? shortcut : `[${shortcut}]` }), _jsx(Text, { color: theme.muted, children: " to use" })] }))] }));
12
+ };
13
+ export function wrapContent(content, maxWidth) {
14
+ const words = content.split(" ");
15
+ const lines = [];
16
+ let currentLine = "";
17
+ for (const word of words) {
18
+ if (currentLine && (currentLine + word).length > maxWidth - 2) {
19
+ lines.push(currentLine.trim());
20
+ currentLine = `${word} `;
21
+ }
22
+ else {
23
+ currentLine += `${word} `;
24
+ }
25
+ }
26
+ if (currentLine) {
27
+ lines.push(currentLine.trim());
28
+ }
29
+ return lines;
30
+ }
@@ -0,0 +1,33 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // Copyright (c) 2026 Flisk Landscape contributors
3
+ // SPDX-License-Identifier: MIT
4
+ import { Box, Text } from "ink";
5
+ import { formatDate, getStatusColor, getStatusIcon } from "../utils/formatting.js";
6
+ import { getTUIStatusColor, getTUIStatusIcon, useTUITheme } from "./ui-theme.js";
7
+ export const DetailPanel = ({ stack, service, stackMetadata, visible, }) => {
8
+ const theme = useTUITheme();
9
+ if (!visible) {
10
+ return _jsx(Box, { width: 0 });
11
+ }
12
+ if (service) {
13
+ const title = theme.ascii
14
+ ? `--- ${service.name.toUpperCase()} ---`
15
+ : `\u250C\u2500 ${service.name.toUpperCase()} \u2500\u2510`;
16
+ return (_jsxs(Box, { width: 40, flexDirection: "column", borderStyle: theme.ascii ? undefined : "single", borderColor: theme.border, paddingX: 1, paddingY: 1, children: [_jsx(Box, { marginBottom: 1, justifyContent: "center", children: _jsx(Text, { color: theme.accent, bold: true, children: title }) }), _jsxs(Box, { flexDirection: "column", marginY: 1, children: [_jsxs(Box, { children: [_jsx(Text, { color: theme.muted, children: "Name: " }), _jsx(Text, { color: theme.foreground, children: service.name })] }), _jsxs(Box, { children: [_jsx(Text, { color: theme.muted, children: "Stack: " }), _jsx(Text, { color: theme.foreground, children: service.stack || "unknown" })] }), _jsxs(Box, { children: [_jsx(Text, { color: theme.muted, children: "Type: " }), _jsx(Text, { color: theme.warning, bold: theme.highContrast, children: (service.stack || "") === "platform" ? "PLATFORM" : "PRODUCT" })] })] }), _jsx(Box, { marginTop: 2, children: _jsxs(Text, { color: theme.muted, dimColor: theme.dimMuted, children: ["Press ", _jsx(Text, { color: theme.accent, children: "[Esc]" }), " to close"] }) })] }));
17
+ }
18
+ if (stack && stackMetadata) {
19
+ const statusColor = getTUIStatusColor(theme, getStatusColor(stackMetadata.overallStatus));
20
+ const statusIcon = getTUIStatusIcon(theme, getStatusIcon(stackMetadata.overallStatus), getStatusColor(stackMetadata.overallStatus));
21
+ const title = theme.ascii
22
+ ? `--- ${stack.name.toUpperCase()} ---`
23
+ : `\u250C\u2500 ${stack.name.toUpperCase()} \u2500\u2510`;
24
+ return (_jsxs(Box, { width: 40, flexDirection: "column", borderStyle: theme.ascii ? undefined : "single", borderColor: theme.border, paddingX: 1, paddingY: 1, children: [_jsx(Box, { marginBottom: 1, justifyContent: "center", children: _jsx(Text, { color: theme.accent, bold: true, children: title }) }), _jsx(Box, { borderStyle: theme.ascii ? undefined : "single", borderColor: statusColor, paddingX: 1, paddingY: 1, marginY: 1, justifyContent: "center", children: _jsxs(Text, { color: statusColor, bold: true, children: [statusIcon, " ", stackMetadata.overallStatus.toUpperCase()] }) }), _jsxs(Box, { flexDirection: "column", marginY: 1, children: [_jsxs(Box, { children: [_jsx(Text, { color: theme.muted, children: "Created: " }), _jsx(Text, { color: theme.foreground, children: formatDate(stackMetadata.createdAt) })] }), _jsxs(Box, { children: [_jsx(Text, { color: theme.muted, children: "Resources: " }), _jsx(Text, { color: theme.accent, bold: theme.highContrast, children: stackMetadata.resourceCount })] })] }), _jsx(Box, { marginTop: 1, marginBottom: 1, children: _jsx(Text, { color: theme.muted, underline: true, children: "Resources" }) }), _jsx(Box, { flexDirection: "column", children: stack.resources.map((svc, index) => (_jsxs(Box, { children: [_jsx(Text, { color: theme.muted, children: theme.ascii
25
+ ? index === stack.resources.length - 1
26
+ ? "L- "
27
+ : "|- "
28
+ : index === stack.resources.length - 1
29
+ ? "\u2514\u2500 "
30
+ : "\u251C\u2500 " }), _jsx(Text, { color: theme.foreground, children: svc.name })] }, svc.name))) }), _jsx(Box, { marginTop: 2, children: _jsxs(Text, { color: theme.muted, dimColor: theme.dimMuted, children: ["Press ", _jsx(Text, { color: theme.accent, children: "[Esc]" }), " to close"] }) })] }));
31
+ }
32
+ return (_jsxs(Box, { width: 40, borderStyle: theme.ascii ? undefined : "single", borderColor: theme.border, paddingX: 2, paddingY: 2, flexDirection: "column", children: [_jsx(Box, { marginBottom: 1, justifyContent: "center", children: _jsx(Text, { color: theme.muted, dimColor: theme.dimMuted, children: "Select a stack or service" }) }), _jsx(Box, { justifyContent: "center", children: _jsx(Text, { color: theme.muted, dimColor: theme.dimMuted, children: "to view details" }) })] }));
33
+ };
@@ -0,0 +1,51 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // Copyright (c) 2026 Flisk Landscape contributors
3
+ // SPDX-License-Identifier: MIT
4
+ import { Box, Text } from "ink";
5
+ import { useState } from "react";
6
+ import { formatBytes } from "../utils/formatting.js";
7
+ import { useTUITheme } from "./ui-theme.js";
8
+ const FILE_ICONS = {
9
+ docker: "\uD83D\uDC33",
10
+ tilt: "\u2699\uFE0F",
11
+ config: "\uD83D\uDD27",
12
+ prisma: "\uD83D\uDDC4\uFE0F",
13
+ generated: "\uD83D\uDCC4",
14
+ unknown: "\uD83D\uDCC3",
15
+ };
16
+ const ASCII_FILE_ICONS = {
17
+ docker: "[D]",
18
+ tilt: "[T]",
19
+ config: "[C]",
20
+ prisma: "[P]",
21
+ generated: "[G]",
22
+ unknown: "[?]",
23
+ };
24
+ // biome-ignore lint/correctness/noUnusedFunctionParameters: reserved callback prop kept in the component API
25
+ export const FileTree = ({ nodes, onSelect, selectedPath }) => {
26
+ const theme = useTUITheme();
27
+ const [expandedNodes, setExpandedNodes] = useState(new Set());
28
+ const _toggleNode = (path) => {
29
+ const newExpanded = new Set(expandedNodes);
30
+ if (newExpanded.has(path)) {
31
+ newExpanded.delete(path);
32
+ }
33
+ else {
34
+ newExpanded.add(path);
35
+ }
36
+ setExpandedNodes(newExpanded);
37
+ };
38
+ const renderNode = (node, depth = 0) => {
39
+ const isExpanded = expandedNodes.has(node.path);
40
+ const isSelected = selectedPath === node.path;
41
+ const indent = " ".repeat(depth);
42
+ if (node.type === "directory") {
43
+ return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { children: _jsxs(Text, { color: isSelected ? theme.selectionForeground : theme.foreground, bold: isSelected, backgroundColor: isSelected ? theme.selectionBackground : undefined, children: [indent, theme.ascii ? (isExpanded ? "[-]" : "[+]") : isExpanded ? "\u25BC" : "\u25B6", " ", node.name] }) }), isExpanded && node.children?.map((child) => renderNode(child, depth + 1))] }, node.path));
44
+ }
45
+ const fileType = node.fileType ?? "unknown";
46
+ const icon = theme.ascii ? ASCII_FILE_ICONS[fileType] : FILE_ICONS[fileType];
47
+ const color = theme.fileColors[fileType];
48
+ return (_jsxs(Box, { children: [_jsxs(Text, { color: isSelected ? theme.selectionForeground : color, bold: isSelected, backgroundColor: isSelected ? theme.selectionBackground : undefined, children: [indent, " ", icon, " ", node.name] }), node.size && (_jsxs(Text, { color: theme.muted, dimColor: theme.dimMuted, children: [" ", "(", formatBytes(node.size), ")"] }))] }, node.path));
49
+ };
50
+ return (_jsx(Box, { flexDirection: "column", paddingX: 1, children: nodes.map((node) => renderNode(node, 0)) }));
51
+ };
@@ -0,0 +1,42 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // Copyright (c) 2026 Flisk Landscape contributors
3
+ // SPDX-License-Identifier: MIT
4
+ import { Box, measureElement, Text, useInput } from "ink";
5
+ import { useEffect, useLayoutEffect, useRef, useState } from "react";
6
+ import { useTUITheme } from "./ui-theme.js";
7
+ // Keys match what ink-select-input handled: up/down or k/j (wrapping), 1-9 to pick, Enter to select.
8
+ export const ResourceSelectInput = ({ items, onSelect, highlightedIndex, width, onLayout, isActive = true, maxVisibleItems = items.length, }) => {
9
+ const theme = useTUITheme();
10
+ const listRef = useRef(null);
11
+ const [selected, setSelected] = useState(() => Math.max(0, Math.min(highlightedIndex, items.length - 1)));
12
+ const visibleCount = Math.max(1, maxVisibleItems);
13
+ const firstVisible = Math.min(Math.max(0, selected - visibleCount + 1), Math.max(0, items.length - visibleCount));
14
+ useLayoutEffect(() => {
15
+ if (listRef.current)
16
+ onLayout?.(measureElement(listRef.current).y, firstVisible);
17
+ });
18
+ useEffect(() => {
19
+ setSelected(Math.max(0, Math.min(highlightedIndex, items.length - 1)));
20
+ }, [highlightedIndex, items]);
21
+ useInput((input, key) => {
22
+ if (items.length === 0)
23
+ return;
24
+ const plainKey = !key.ctrl && !key.meta;
25
+ if ((plainKey && input === "k") || key.upArrow)
26
+ setSelected((i) => (i === 0 ? items.length - 1 : i - 1));
27
+ if ((plainKey && input === "j") || key.downArrow)
28
+ setSelected((i) => (i === items.length - 1 ? 0 : i + 1));
29
+ if (/^[1-9]$/.test(input)) {
30
+ const item = items[Number(input) - 1];
31
+ if (item)
32
+ onSelect(item);
33
+ }
34
+ const current = items[selected];
35
+ if (key.return && current)
36
+ onSelect(current);
37
+ }, { isActive });
38
+ return (_jsx(Box, { ref: listRef, flexDirection: "column", width: width, children: items.slice(firstVisible, firstVisible + visibleCount).map((item, index) => {
39
+ const isSelected = firstVisible + index === selected;
40
+ return (_jsx(Box, { width: width, children: _jsxs(Text, { wrap: "truncate-end", children: [_jsx(Text, { color: isSelected ? theme.selectedForeground : theme.muted, backgroundColor: isSelected ? theme.selectedBackground : undefined, children: isSelected ? `${theme.selectionMarker} ` : " " }), _jsx(Text, { color: isSelected ? theme.selectedForeground : theme.foreground, bold: isSelected || theme.highContrast, backgroundColor: isSelected ? theme.selectedBackground : undefined, children: item.label })] }) }, item.value));
41
+ }) }));
42
+ };
@@ -0,0 +1,35 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // Copyright (c) 2026 Flisk Landscape contributors
3
+ // SPDX-License-Identifier: MIT
4
+ import { Box, Text } from "ink";
5
+ import { formatShortDate, getStatusColor, getStatusIcon, truncate } from "../utils/formatting.js";
6
+ import { getTUIStatusColor, getTUIStatusIcon, useTUITheme } from "./ui-theme.js";
7
+ export const ResourceTable = ({ resources, maxWidth = 100 }) => {
8
+ const theme = useTUITheme();
9
+ if (resources.length === 0) {
10
+ return (_jsx(Box, { paddingY: 1, children: _jsx(Text, { color: theme.muted, children: "No resources found" }) }));
11
+ }
12
+ const narrowMode = maxWidth < 80;
13
+ const tableContentWidth = Math.max(1, Math.floor(maxWidth) - 4);
14
+ const extraWidth = tableContentWidth - (narrowMode ? 19 : 26);
15
+ const nameWidth = 4 + Math.floor(extraWidth * (narrowMode ? 0.37 : 0.29));
16
+ const stackWidth = 5 + Math.floor(extraWidth * (narrowMode ? 0.22 : 0.2));
17
+ const typeWidth = 4 + Math.floor(extraWidth * (narrowMode ? 0.2 : 0.13));
18
+ const statusWidth = narrowMode
19
+ ? tableContentWidth - nameWidth - stackWidth - typeWidth
20
+ : 6 + Math.floor(extraWidth * 0.17);
21
+ const createdWidth = narrowMode
22
+ ? 0
23
+ : tableContentWidth - nameWidth - stackWidth - typeWidth - statusWidth;
24
+ const borderProps = theme.ascii
25
+ ? {}
26
+ : { borderStyle: "single", borderColor: theme.border };
27
+ return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", ...borderProps, paddingX: 1, children: [_jsx(Box, { width: nameWidth, children: _jsx(Text, { bold: true, color: theme.foreground, children: "Name" }) }), _jsx(Box, { width: stackWidth, children: _jsx(Text, { bold: true, color: theme.foreground, children: "Stack" }) }), _jsx(Box, { width: typeWidth, children: _jsx(Text, { bold: true, color: theme.foreground, children: "Type" }) }), _jsx(Box, { width: statusWidth, children: _jsx(Text, { bold: true, color: theme.foreground, children: "Status" }) }), !narrowMode && (_jsx(Box, { width: createdWidth, children: _jsx(Text, { bold: true, color: theme.foreground, children: "Created" }) }))] }), resources.map((resource) => {
28
+ const sourceStatusColor = getStatusColor(resource.status);
29
+ const statusColor = getTUIStatusColor(theme, sourceStatusColor);
30
+ const statusIcon = getTUIStatusIcon(theme, getStatusIcon(resource.status), sourceStatusColor);
31
+ const statusLabel = `${statusIcon} ${resource.status}`;
32
+ const stackName = resource.stack && resource.stack !== "unknown" ? resource.stack : "-";
33
+ return (_jsxs(Box, { flexDirection: "row", paddingX: 1, children: [_jsx(Box, { width: nameWidth, children: _jsx(Text, { color: theme.foreground, children: truncate(resource.name, Math.max(3, nameWidth - 1)) }) }), _jsx(Box, { width: stackWidth, children: _jsx(Text, { color: theme.muted, children: truncate(stackName, Math.max(3, stackWidth - 1)) }) }), _jsx(Box, { width: typeWidth, children: _jsx(Text, { color: theme.accent, bold: theme.highContrast, children: truncate(resource.type, Math.max(3, typeWidth - 1)) }) }), _jsx(Box, { width: statusWidth, children: _jsx(Text, { color: statusColor, bold: theme.highContrast, children: truncate(statusLabel, Math.max(3, statusWidth - 1)) }) }), !narrowMode && (_jsx(Box, { width: createdWidth, children: _jsx(Text, { color: theme.muted, children: truncate(formatShortDate(resource.createdAt), Math.max(3, createdWidth - 1)) }) }))] }, resource.name));
34
+ })] }));
35
+ };
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // Copyright (c) 2026 Flisk Landscape contributors
3
+ // SPDX-License-Identifier: MIT
4
+ import { Box, Text } from "ink";
5
+ import { useTUITheme } from "./ui-theme.js";
6
+ /** One line per service that is not ready and has a reason, so a failed dependency is named on screen. */
7
+ export function ServiceIssues({ resources }) {
8
+ const theme = useTUITheme();
9
+ const issues = resources.filter((r) => r.status !== "ready" && r.statusReason);
10
+ if (issues.length === 0)
11
+ return null;
12
+ return (_jsx(Box, { flexDirection: "column", marginTop: 1, children: issues.map((resource) => (_jsxs(Text, { color: theme.muted, children: [resource.name, ": ", resource.statusReason] }, resource.name))) }));
13
+ }
@@ -0,0 +1,27 @@
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // Copyright (c) 2026 Flisk Landscape contributors
3
+ // SPDX-License-Identifier: MIT
4
+ import { Box, Text } from "ink";
5
+ import { useTUITheme } from "./ui-theme.js";
6
+ const TRUNCATE = "truncate-end";
7
+ export const TUIHeader = ({ projectRoot, resourceCount, terminalWidth, version, }) => {
8
+ const theme = useTUITheme();
9
+ const compact = terminalWidth < 80;
10
+ const title = compact
11
+ ? `Flisk v${version}`
12
+ : `${theme.bannerStart} Flisk NEON EDITION v${version} ${theme.bannerEnd}`;
13
+ const resourceLabel = `${resourceCount} resource${resourceCount === 1 ? "" : "s"} discovered`;
14
+ const paddingX = terminalWidth >= 28 ? 1 : 0;
15
+ const contentWidth = Math.max(1, terminalWidth - paddingX * 2);
16
+ if (compact) {
17
+ const splitHeading = title.length + " | ".length + resourceLabel.length > contentWidth;
18
+ return (_jsxs(Box, { flexDirection: "column", paddingX: paddingX, width: terminalWidth, children: [splitHeading ? (_jsxs(_Fragment, { children: [_jsx(Box, { width: contentWidth, children: _jsx(Text, { color: theme.accent, bold: true, wrap: TRUNCATE, children: title }) }), _jsx(Box, { width: contentWidth, children: _jsx(Text, { color: theme.success, wrap: TRUNCATE, children: resourceLabel }) })] })) : (_jsx(Box, { width: contentWidth, children: _jsxs(Text, { wrap: TRUNCATE, children: [_jsx(Text, { color: theme.accent, bold: true, children: title }), _jsx(Text, { color: theme.muted, children: " | " }), _jsx(Text, { color: theme.success, children: resourceLabel })] }) })), _jsx(Box, { width: contentWidth, children: _jsx(Text, { color: theme.foreground, wrap: TRUNCATE, children: projectRoot }) })] }));
19
+ }
20
+ const separatorsWidth = " | ".length * 2;
21
+ const headingWidth = title.length + resourceLabel.length + separatorsWidth;
22
+ if (headingWidth >= contentWidth) {
23
+ return (_jsxs(Box, { flexDirection: "column", paddingX: paddingX, width: terminalWidth, children: [_jsx(Box, { width: contentWidth, children: _jsx(Text, { color: theme.accent, bold: true, wrap: TRUNCATE, children: title }) }), _jsx(Box, { width: contentWidth, children: _jsx(Text, { color: theme.success, wrap: TRUNCATE, children: resourceLabel }) }), _jsx(Box, { width: contentWidth, children: _jsx(Text, { color: theme.foreground, wrap: TRUNCATE, children: projectRoot }) })] }));
24
+ }
25
+ const rootWidth = contentWidth - headingWidth;
26
+ return (_jsxs(Box, { flexDirection: "row", paddingX: paddingX, width: terminalWidth, children: [_jsx(Text, { color: theme.accent, bold: true, children: title }), _jsx(Text, { color: theme.muted, children: " | " }), _jsx(Box, { flexShrink: 0, width: rootWidth, children: _jsx(Text, { color: theme.foreground, wrap: TRUNCATE, children: projectRoot }) }), _jsx(Text, { color: theme.muted, children: " | " }), _jsx(Text, { color: theme.success, children: resourceLabel })] }));
27
+ };
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // Copyright (c) 2026 Flisk Landscape contributors
3
+ // SPDX-License-Identifier: MIT
4
+ import { Box, Text } from "ink";
5
+ import { getTabBarDensity, getTerminalRuleWidth } from "../utils/terminal-layout.js";
6
+ import { TABS } from "../utils/ui-keymap.js";
7
+ import { useTUITheme } from "./ui-theme.js";
8
+ export { TABS };
9
+ export const TabBar = ({ activeTab, compact = false, terminalWidth }) => {
10
+ const theme = useTUITheme();
11
+ const responsive = terminalWidth !== undefined;
12
+ const density = terminalWidth === undefined ? "wide" : getTabBarDensity(terminalWidth);
13
+ const compactLayout = responsive && density === "compact";
14
+ const wide = !responsive || density === "wide";
15
+ const ruleWidth = responsive ? getTerminalRuleWidth(terminalWidth) : compact ? 60 : 80;
16
+ const divider = (theme.ascii ? "-" : "\u2500").repeat(ruleWidth);
17
+ const selectedBorderProps = theme.ascii
18
+ ? {}
19
+ : { borderStyle: "single", borderColor: theme.accent };
20
+ return (_jsxs(Box, { flexDirection: "column", paddingX: 1, children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { color: theme.muted, dimColor: theme.dimMuted, children: divider }) }), _jsx(Box, { flexDirection: "row", justifyContent: "space-between", paddingX: 1, children: TABS.map((tab) => {
21
+ const isActive = activeTab === tab.id;
22
+ const label = compactLayout || (!responsive && compact && !isActive)
23
+ ? tab.label.slice(0, 4)
24
+ : tab.label;
25
+ return (_jsx(Box, { children: compactLayout ? (_jsxs(Text, { color: isActive ? theme.selectedForeground : theme.muted, bold: isActive || theme.highContrast, backgroundColor: isActive ? theme.selectedBackground : undefined, children: [isActive ? `${theme.selectionMarker} ` : "", "[", tab.shortcut, "] ", label] })) : isActive ? (_jsx(Box, { ...selectedBorderProps, paddingX: wide ? 1 : 0, backgroundColor: theme.selectedBackground, children: _jsxs(Text, { children: [wide && _jsx(Text, { color: theme.selectedForeground, children: theme.bannerStart }), _jsxs(Text, { color: theme.selectedForeground, bold: true, children: [" ", "[", tab.shortcut, "] ", label, " "] }), wide && _jsx(Text, { color: theme.selectedForeground, children: theme.bannerEnd })] }) })) : (_jsx(Box, { paddingX: wide ? 1 : 0, children: _jsxs(Text, { color: theme.muted, dimColor: theme.dimMuted, bold: theme.highContrast, children: ["[", tab.shortcut, "] ", label] }) })) }, tab.id));
26
+ }) }), _jsx(Box, { marginTop: 1, children: _jsx(Text, { color: theme.muted, dimColor: theme.dimMuted, children: divider }) })] }));
27
+ };
@@ -0,0 +1,13 @@
1
+ // Copyright (c) 2026 Flisk Landscape contributors
2
+ // SPDX-License-Identifier: MIT
3
+ export const TOOLTIPS = {
4
+ overviewTab: "View all stacks and their resources",
5
+ resourcesTab: "Detailed resource list with metadata",
6
+ eventsTab: "Service lifecycle events timeline",
7
+ filesTab: "Browse autogenerated configuration files",
8
+ configTab: "View and edit service configurations",
9
+ search: "Filter services by name, stack, or type",
10
+ refresh: "Reload data from Tilt API",
11
+ help: "Show keyboard shortcuts and help",
12
+ quit: "Exit the TUI",
13
+ };
@@ -0,0 +1,11 @@
1
+ // Copyright (c) 2026 Flisk Landscape contributors
2
+ // SPDX-License-Identifier: MIT
3
+ export { AccessibleTooltip } from "./Accessible.js";
4
+ export { DetailPanel } from "./DetailPanel.js";
5
+ export { FileTree } from "./FileTree.js";
6
+ export { ResourceSelectInput } from "./ResourceSelectInput.js";
7
+ export { ResourceTable } from "./ResourceTable.js";
8
+ export { ServiceIssues } from "./ServiceIssues.js";
9
+ export { TabBar } from "./TabBar.js";
10
+ export { TOOLTIPS } from "./Tooltip.js";
11
+ export { TUIHeader } from "./TUIHeader.js";
@@ -0,0 +1,120 @@
1
+ // Copyright (c) 2026 Flisk Landscape contributors
2
+ // SPDX-License-Identifier: MIT
3
+ import { createContext, useContext } from "react";
4
+ const FILE_TYPES = ["docker", "tilt", "config", "prisma", "generated", "unknown"];
5
+ const DEFAULT_FILE_COLORS = {
6
+ docker: "blue",
7
+ tilt: "cyan",
8
+ config: "yellow",
9
+ prisma: "magenta",
10
+ generated: "gray",
11
+ unknown: "white",
12
+ };
13
+ const HIGH_CONTRAST_FILE_COLORS = {
14
+ docker: "blueBright",
15
+ tilt: "cyanBright",
16
+ config: "yellowBright",
17
+ prisma: "magentaBright",
18
+ generated: "whiteBright",
19
+ unknown: "whiteBright",
20
+ };
21
+ /** Build the TUI palette from the requested theme and terminal environment. */
22
+ export function createTUITheme(highContrast, environment = process.env) {
23
+ const ascii = environment.NO_COLOR !== undefined ||
24
+ environment.TERM?.toLowerCase().startsWith("dumb") === true;
25
+ const palette = highContrast
26
+ ? {
27
+ accent: "cyanBright",
28
+ border: "whiteBright",
29
+ muted: "white",
30
+ foreground: "whiteBright",
31
+ success: "greenBright",
32
+ warning: "yellowBright",
33
+ error: "redBright",
34
+ info: "blueBright",
35
+ secondary: "magentaBright",
36
+ selectedBackground: "cyanBright",
37
+ selectedForeground: "black",
38
+ selectionBackground: "blueBright",
39
+ selectionForeground: "whiteBright",
40
+ dimMuted: false,
41
+ fileColors: HIGH_CONTRAST_FILE_COLORS,
42
+ }
43
+ : {
44
+ accent: "cyan",
45
+ border: "gray",
46
+ muted: "gray",
47
+ foreground: "white",
48
+ success: "green",
49
+ warning: "yellow",
50
+ error: "red",
51
+ info: "blue",
52
+ secondary: "magenta",
53
+ selectedBackground: "black",
54
+ selectedForeground: "cyan",
55
+ selectionBackground: "blue",
56
+ selectionForeground: "cyan",
57
+ dimMuted: true,
58
+ fileColors: DEFAULT_FILE_COLORS,
59
+ };
60
+ const colorless = ascii
61
+ ? {
62
+ accent: undefined,
63
+ border: undefined,
64
+ muted: undefined,
65
+ foreground: undefined,
66
+ success: undefined,
67
+ warning: undefined,
68
+ error: undefined,
69
+ info: undefined,
70
+ secondary: undefined,
71
+ selectedBackground: undefined,
72
+ selectedForeground: undefined,
73
+ selectionBackground: undefined,
74
+ selectionForeground: undefined,
75
+ dimMuted: false,
76
+ fileColors: Object.fromEntries(FILE_TYPES.map((type) => [type, undefined])),
77
+ }
78
+ : {};
79
+ return {
80
+ ...palette,
81
+ ...colorless,
82
+ highContrast: highContrast && !ascii,
83
+ ascii,
84
+ bannerStart: ascii ? ">>>" : "\u2593\u2592\u2591",
85
+ bannerEnd: ascii ? "<<<" : "\u2591\u2592\u2593",
86
+ selectionMarker: ascii ? ">>>" : "\u2593\u2592\u2591",
87
+ separator: ascii ? " | " : " \u2502 ",
88
+ };
89
+ }
90
+ const STATUS_COLOR_THEMES = {
91
+ green: "success",
92
+ yellow: "warning",
93
+ red: "error",
94
+ };
95
+ /** Map a formatter status color to the active theme palette. */
96
+ export function getTUIStatusColor(theme, color) {
97
+ const themeKey = STATUS_COLOR_THEMES[color ?? ""];
98
+ return themeKey ? theme[themeKey] : theme.muted;
99
+ }
100
+ /** Return a status marker suited to the active terminal character set. */
101
+ export function getTUIStatusIcon(theme, icon, color) {
102
+ if (!theme.ascii)
103
+ return icon;
104
+ if (color === "green")
105
+ return "[+]";
106
+ if (color === "yellow")
107
+ return "[~]";
108
+ if (color === "red")
109
+ return "[x]";
110
+ return "[?]";
111
+ }
112
+ /** Return a tab section heading suited to the active terminal character set. */
113
+ export function sectionTitle(theme, title) {
114
+ return theme.ascii ? `[ ${title} ]` : `┌─ ${title} ─`;
115
+ }
116
+ export const TUIThemeContext = createContext(createTUITheme(false));
117
+ /** Read the theme provided to the current TUI subtree. */
118
+ export function useTUITheme() {
119
+ return useContext(TUIThemeContext);
120
+ }
@@ -0,0 +1,182 @@
1
+ // Copyright (c) 2026 Flisk Landscape contributors
2
+ // SPDX-License-Identifier: MIT
3
+ import { PORT_RANGES, STANDARD_PORTS } from "../utils/constants.js";
4
+ const PLATFORM_VERSION = "1.0.0";
5
+ const TECH_STACK = {
6
+ runtime: "bun",
7
+ bundler: "vite",
8
+ language: "typescript",
9
+ framework: "hono",
10
+ database: "postgresql",
11
+ orm: "prisma",
12
+ messaging: "nats",
13
+ linting: "biome",
14
+ testing: "vitest",
15
+ };
16
+ const PORTS = {
17
+ frontend: {
18
+ base: PORT_RANGES.frontend.base,
19
+ range: PORT_RANGES.frontend.range,
20
+ start: PORT_RANGES.frontend.min,
21
+ end: PORT_RANGES.frontend.max,
22
+ },
23
+ backend: {
24
+ base: PORT_RANGES.backend.base,
25
+ range: PORT_RANGES.backend.range,
26
+ start: PORT_RANGES.backend.min,
27
+ end: PORT_RANGES.backend.max,
28
+ },
29
+ health: {
30
+ base: PORT_RANGES.health.base,
31
+ range: PORT_RANGES.health.range,
32
+ start: PORT_RANGES.health.min,
33
+ end: PORT_RANGES.health.max,
34
+ },
35
+ worker: {
36
+ base: PORT_RANGES.worker.base,
37
+ range: PORT_RANGES.worker.range,
38
+ start: PORT_RANGES.worker.min,
39
+ end: PORT_RANGES.worker.max,
40
+ },
41
+ migrator: {
42
+ base: PORT_RANGES.migrator.base,
43
+ range: PORT_RANGES.migrator.range,
44
+ start: PORT_RANGES.migrator.min,
45
+ end: PORT_RANGES.migrator.max,
46
+ },
47
+ tiltUi: STANDARD_PORTS.tiltUi,
48
+ traefik: STANDARD_PORTS.traefik,
49
+ };
50
+ const HEALTH_CHECKS = {
51
+ path: "/health",
52
+ live: "/health/live",
53
+ ready: "/health/ready",
54
+ timeout: 30,
55
+ interval: 5,
56
+ };
57
+ const NAMING = {
58
+ frontend: "-frontend",
59
+ backend: "-backend",
60
+ worker: "-worker",
61
+ migrator: "-migrator",
62
+ library: "-lib",
63
+ sdk: "-sdk",
64
+ validSeparators: ["-", "_"],
65
+ maxLength: 63,
66
+ minLength: 3,
67
+ };
68
+ const TRAEFIK = {
69
+ entrypoint: "web",
70
+ network: "traefik-public",
71
+ defaultHost: "localhost",
72
+ appHost: "app.localhost",
73
+ apiHost: "api.localhost",
74
+ appSubdomainPrefix: "app",
75
+ apiSubdomainPrefix: "api",
76
+ defaultPort: 8080,
77
+ tlsEnabled: false,
78
+ entrypoints: ["web"],
79
+ middlewares: [],
80
+ tls: { enabled: false },
81
+ healthcheckPath: "/health",
82
+ healthcheckInterval: "10s",
83
+ healthcheckTimeout: "5s",
84
+ frontendPriorityBase: 100,
85
+ };
86
+ const FILEWATCH_IGNORES = [
87
+ "node_modules",
88
+ "dist",
89
+ "build",
90
+ ".git",
91
+ ".prisma",
92
+ ".turbo",
93
+ "coverage",
94
+ "tmp",
95
+ "temp",
96
+ "__tests__",
97
+ "test",
98
+ "tests",
99
+ ];
100
+ const RESOURCE_TYPES = {
101
+ frontend: {
102
+ suffix: "-frontend",
103
+ portRange: "3000-3999",
104
+ },
105
+ backend: {
106
+ suffix: "-backend",
107
+ portRange: "4000-4999",
108
+ },
109
+ library: {
110
+ suffix: "-library",
111
+ portRange: null,
112
+ },
113
+ sdk: {
114
+ suffix: "-sdk",
115
+ portRange: "3000-9999",
116
+ },
117
+ migrator: {
118
+ suffix: "-migrator",
119
+ portRange: "7000-7999",
120
+ },
121
+ worker: {
122
+ suffix: "-worker",
123
+ portRange: "6000-6999",
124
+ },
125
+ };
126
+ const FEATURES = {
127
+ prisma: "Database ORM with migrations",
128
+ nats: "Event streaming via NATS",
129
+ redis: "Caching layer",
130
+ infisical: "Secrets management",
131
+ vitest: "Testing framework",
132
+ traefik: "HTTP routing",
133
+ websocket: "Real-time connections",
134
+ graphql: "GraphQL support",
135
+ grpc: "gRPC support",
136
+ viteNode: "Vite Node runtime",
137
+ maintenance: "Maintenance mode",
138
+ };
139
+ const PATHS = {
140
+ services: "services/product",
141
+ sharedPlatform: "shared-platform-engineering",
142
+ sharedProduct: "shared-product-engineering",
143
+ sharedDdd: "shared-ddd-layers",
144
+ };
145
+ const DISCOVERY = {
146
+ scanIntervalSeconds: 5,
147
+ maxManifestsPerRoot: 50,
148
+ servicePatterns: ["services/product/*", "services/platform/*"],
149
+ };
150
+ const DOCKER = {
151
+ dockerfile: "Dockerfile",
152
+ context: ".",
153
+ // Auto-detect native arch (arm64 on Apple Silicon, amd64 elsewhere)
154
+ // platform: "linux/amd64",
155
+ };
156
+ const RUNTIME = {
157
+ backend: {
158
+ command: "bun",
159
+ args: ["run", "dev"],
160
+ env: { NODE_ENV: "development" },
161
+ },
162
+ frontend: {
163
+ command: "bun",
164
+ args: ["run", "dev"],
165
+ env: { NODE_ENV: "development" },
166
+ },
167
+ };
168
+ export const PLATFORM_STANDARDS = {
169
+ version: PLATFORM_VERSION,
170
+ tech: TECH_STACK,
171
+ ports: PORTS,
172
+ health: HEALTH_CHECKS,
173
+ naming: NAMING,
174
+ traefik: TRAEFIK,
175
+ filewatchIgnores: FILEWATCH_IGNORES,
176
+ serviceTypes: RESOURCE_TYPES,
177
+ features: FEATURES,
178
+ paths: PATHS,
179
+ discovery: DISCOVERY,
180
+ docker: DOCKER,
181
+ runtime: RUNTIME,
182
+ };