@tdk-landscape/tdk-cli-core 1.3.142 → 1.3.144

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.
@@ -1,2 +1,2 @@
1
1
  import{createRequire as __tdkRequire}from'node:module';const require=__tdkRequire(import.meta.url);
2
- import{sb as a,tb as b,ub as c,vb as d,wb as e}from"./chunk-6WQCJGMP.js";import"./chunk-42IVF3YT.js";import"./chunk-6EA4DGCY.js";export{e as assertMachineReadyOrExit,d as formatColdPreflight,a as nodeTooOld,b as requireVerifiedDockerVersions,c as runColdPreflight};
2
+ import{sb as a,tb as b,ub as c,vb as d,wb as e}from"./chunk-2PTDOT3Y.js";import"./chunk-42IVF3YT.js";import"./chunk-6EA4DGCY.js";export{e as assertMachineReadyOrExit,d as formatColdPreflight,a as nodeTooOld,b as requireVerifiedDockerVersions,c as runColdPreflight};
package/cli/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "tdk-cli-internal",
3
3
  "private": true,
4
- "version": "1.3.142",
5
- "description": "TDK CLI — start services on your laptop.",
4
+ "version": "1.3.144",
5
+ "description": "TDK CLI — start services on your machine.",
6
6
  "keywords": [
7
7
  "tdk",
8
8
  "tilt",
@@ -24,4 +24,5 @@ WORKDIR /app
24
24
  COPY decide.ts server.ts ./
25
25
 
26
26
  EXPOSE 9999
27
+ HEALTHCHECK --interval=10s --timeout=3s --start-period=10s --retries=3 CMD curl --fail --silent http://127.0.0.1:${PORT:-9999}/health || exit 1
27
28
  CMD ["bun", "run", "server.ts"]
@@ -349,6 +349,9 @@ Bun.serve({
349
349
  // was raised. 255s is Bun's own max for this setting.
350
350
  idleTimeout: 255,
351
351
  fetch(req) {
352
+ if (req.method === "GET" && new URL(req.url).pathname === "/health") {
353
+ return new Response("ok");
354
+ }
352
355
  return handleWake(req).catch((err) => {
353
356
  console.error("wake gateway error:", err);
354
357
  return new Response(`wake gateway error: ${String(err)}`, { status: 500 });
@@ -51,22 +51,19 @@ def generate_npmrc(resource_path, registry_url, is_docker, write_fn, verdaccio_e
51
51
  write_fn: File writer function
52
52
  verdaccio_enabled: If False, scoped packages fall back to public npm (default True)
53
53
  """
54
- registry_host = registry_url.replace("http://", "").replace("https://", "").rstrip("/")
55
-
56
54
  target_dir = resource_path + "/" + OUTPUT.AUTOGENERATED_FOLDER
57
55
  generated_filename = PACKAGE_CONFIG_FILENAMES['npmrc_docker_autogenerated'] if is_docker else PACKAGE_CONFIG_FILENAMES['npmrc']
58
56
  header = Utils.get_template_header("npmrc", target_dir + "/" + generated_filename)
59
57
 
60
58
  if verdaccio_enabled:
59
+ # Verdaccio's default policy permits anonymous reads and requires
60
+ # authentication only for publishing. Keep user credentials in the
61
+ # user's npm config; generated project files must not contain defaults.
61
62
  content = """{header}
62
63
  registry=https://registry.npmjs.org/
63
64
  @{npm_scope}:registry={registry_url}/
64
65
  @tdk-landscape:registry={registry_url}/
65
- @identity:registry={registry_url}/
66
- //{registry_host}/:username=admin
67
- //{registry_host}/:_password=YWRtaW4=
68
- //{registry_host}/:email=admin@example.com
69
- //{registry_host}/:always-auth=true""".format(header=header, registry_url=registry_url, registry_host=registry_host, npm_scope=_NPM_SCOPE)
66
+ @identity:registry={registry_url}/""".format(header=header, registry_url=registry_url, npm_scope=_NPM_SCOPE)
70
67
  else:
71
68
  # Verdaccio not enabled (no license key) — all scopes use public npm
72
69
  content = """{header}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tdk-landscape/tdk-cli-core",
3
- "version": "1.3.142",
4
- "description": "TDK CLI — start services on your laptop.",
3
+ "version": "1.3.144",
4
+ "description": "TDK CLI — start services on your machine.",
5
5
  "homepage": "https://tdk-landscape.github.io/tdk-website",
6
6
  "repository": {
7
7
  "type": "git",