@telorun/http-server 0.5.0 → 0.6.0

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 +37 -0
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # @telorun/http-server
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ae0bf77]
8
+ - @telorun/sdk@0.13.0
9
+ - @telorun/http-dispatch@0.4.0
10
+
11
+ ## 0.5.1
12
+
13
+ ### Patch Changes
14
+
15
+ - bfe4967: Add a `ports` declaration to `Telo.Application`. `ports` is a name-keyed map
16
+ (sibling of `variables` / `secrets`) where each entry binds a host env var to
17
+ an inbound port the app listens on: `{ env, protocol?, default? }`, implicitly
18
+ typed as an integer in the 1–65535 range. Values resolve at `kernel.load()` —
19
+ mirroring the variables env-resolution path, with the same
20
+ `ERR_MANIFEST_VALIDATION_FAILED` aggregation — and surface in a new
21
+ `ports.<name>` CEL scope, so a binding resource reads `${{ ports.http }}` from
22
+ a single declared source. A runner or the editor can read the exposed ports
23
+ (and the env var that configures each) before the app starts. Application-only;
24
+ `Telo.Library` does not declare ports.
25
+
26
+ Also adds `x-telo-type`, a general analyzer-only value-brand annotation. A
27
+ port's transport brands its value (`tcp → TcpPort`, `udp → UdpPort`) as a
28
+ nominal CEL type, and a resource field can declare which brand it accepts
29
+ (`http-server`'s `port` is branded `TcpPort`). Wiring a `UdpPort` into a
30
+ `TcpPort`-branded field is a static analyzer error. Brands are analyzer-only —
31
+ the value flows as a plain integer at runtime, so there is no runtime cost.
32
+
33
+ Adds an `UNUSED_DECLARATION` warning: a declared `variables` / `secrets` /
34
+ `ports` entry that no CEL expression references is flagged (a generic,
35
+ table-driven pass across the three namespaces). Application-only — a
36
+ `Telo.Library`'s `variables` / `secrets` are a controller-consumed public
37
+ contract and are not flagged.
38
+
3
39
  ## 0.5.0
4
40
 
5
41
  ### Major Changes
@@ -82,6 +118,7 @@
82
118
 
83
119
  - Updated dependencies [849f57a]
84
120
  - Updated dependencies [be79957]
121
+
85
122
  - @telorun/sdk@0.12.0
86
123
  - @telorun/http-dispatch@0.3.0
87
124
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telorun/http-server",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Telo HTTP Server module - HTTP server and API resource kinds for Telo manifests.",
5
5
  "keywords": [
6
6
  "telo",
@@ -43,7 +43,7 @@
43
43
  "ajv": "^8.17.1",
44
44
  "ajv-formats": "^3.0.1",
45
45
  "fastify": "^5.7.2",
46
- "@telorun/http-dispatch": "0.3.0"
46
+ "@telorun/http-dispatch": "0.4.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/node": "^20.0.0",
@@ -51,7 +51,7 @@
51
51
  "vitest": "^2.1.8"
52
52
  },
53
53
  "peerDependencies": {
54
- "@telorun/sdk": "0.12.0"
54
+ "@telorun/sdk": "0.13.0"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "tsc -p tsconfig.lib.json",