@telorun/http-server 0.5.0 → 0.5.1

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 (2) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @telorun/http-server
2
2
 
3
+ ## 0.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - bfe4967: Add a `ports` declaration to `Telo.Application`. `ports` is a name-keyed map
8
+ (sibling of `variables` / `secrets`) where each entry binds a host env var to
9
+ an inbound port the app listens on: `{ env, protocol?, default? }`, implicitly
10
+ typed as an integer in the 1–65535 range. Values resolve at `kernel.load()` —
11
+ mirroring the variables env-resolution path, with the same
12
+ `ERR_MANIFEST_VALIDATION_FAILED` aggregation — and surface in a new
13
+ `ports.<name>` CEL scope, so a binding resource reads `${{ ports.http }}` from
14
+ a single declared source. A runner or the editor can read the exposed ports
15
+ (and the env var that configures each) before the app starts. Application-only;
16
+ `Telo.Library` does not declare ports.
17
+
18
+ Also adds `x-telo-type`, a general analyzer-only value-brand annotation. A
19
+ port's transport brands its value (`tcp → TcpPort`, `udp → UdpPort`) as a
20
+ nominal CEL type, and a resource field can declare which brand it accepts
21
+ (`http-server`'s `port` is branded `TcpPort`). Wiring a `UdpPort` into a
22
+ `TcpPort`-branded field is a static analyzer error. Brands are analyzer-only —
23
+ the value flows as a plain integer at runtime, so there is no runtime cost.
24
+
25
+ Adds an `UNUSED_DECLARATION` warning: a declared `variables` / `secrets` /
26
+ `ports` entry that no CEL expression references is flagged (a generic,
27
+ table-driven pass across the three namespaces). Application-only — a
28
+ `Telo.Library`'s `variables` / `secrets` are a controller-consumed public
29
+ contract and are not flagged.
30
+
3
31
  ## 0.5.0
4
32
 
5
33
  ### Major Changes
@@ -82,6 +110,7 @@
82
110
 
83
111
  - Updated dependencies [849f57a]
84
112
  - Updated dependencies [be79957]
113
+
85
114
  - @telorun/sdk@0.12.0
86
115
  - @telorun/http-dispatch@0.3.0
87
116
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telorun/http-server",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Telo HTTP Server module - HTTP server and API resource kinds for Telo manifests.",
5
5
  "keywords": [
6
6
  "telo",