@toa.io/operations 1.0.0-alpha.333 → 1.0.0-alpha.336

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 CHANGED
@@ -3,6 +3,29 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-alpha.336](https://github.com/toa-io/toa/compare/v1.0.0-alpha.335...v1.0.0-alpha.336) (2026-10-26)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **cli:** mono runs the services the context alone turns on ([8eba6e3](https://github.com/toa-io/toa/commit/8eba6e31befe467408a3f1d18f29dadb666c3f7a))
11
+
12
+
13
+ # [1.0.0-alpha.335](https://github.com/toa-io/toa/compare/v1.0.0-alpha.334...v1.0.0-alpha.335) (2026-10-26)
14
+
15
+ **Note:** Version bump only for package @toa.io/operations
16
+
17
+
18
+
19
+
20
+
21
+ # [1.0.0-alpha.334](https://github.com/toa-io/toa/compare/v1.0.0-alpha.333...v1.0.0-alpha.334) (2026-10-26)
22
+
23
+ **Note:** Version bump only for package @toa.io/operations
24
+
25
+
26
+
27
+
28
+
6
29
  # [1.0.0-alpha.333](https://github.com/toa-io/toa/compare/v1.0.0-alpha.332...v1.0.0-alpha.333) (2026-10-26)
7
30
 
8
31
  **Note:** Version bump only for package @toa.io/operations
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/operations",
3
- "version": "1.0.0-alpha.333",
3
+ "version": "1.0.0-alpha.336",
4
4
  "type": "module",
5
5
  "description": "Toa Deployment",
6
6
  "homepage": "https://toa.io",
@@ -30,9 +30,9 @@
30
30
  "dependencies": {
31
31
  "@toa.io/generic": "1.0.0-alpha.332",
32
32
  "@toa.io/kubernetes": "1.0.0-alpha.301",
33
- "@toa.io/norm": "1.0.0-alpha.333",
33
+ "@toa.io/norm": "1.0.0-alpha.336",
34
34
  "oxc-parser": "0.155.0",
35
35
  "paseto": "4.0.1"
36
36
  },
37
- "gitHead": "ddb74b2f99026fae540a8a8e0a49c26cbd22886a"
37
+ "gitHead": "ba35d24fcf468ae43c6c6844e407fbeba4f01b44"
38
38
  }
@@ -146,6 +146,14 @@ function unit(context, dependency) {
146
146
 
147
147
  fold(mono, dependency.services ?? [], dependency)
148
148
 
149
+ // the extensions whose services mono runs, as `TOA_SERVICES` for the process: what no component
150
+ // declares, such as a service the context's annotation alone turns on, is not found otherwise
151
+ const extensions = new Set(
152
+ (dependency.services ?? []).map((service) => service.extension)
153
+ )
154
+
155
+ if (extensions.size > 0) mono.services = [...extensions]
156
+
149
157
  // mono is the one workload that fronts every service it runs under a single name,
150
158
  // so it inherits how they are reached as well as what they run
151
159
  for (const service of dependency.services ?? []) {
@@ -54,8 +54,12 @@ spec:
54
54
  {{- end }}
55
55
  {{- end }}
56
56
  {{- end }}
57
- {{- if .variables }}
57
+ {{- if or .variables .services }}
58
58
  env:
59
+ {{- if .services }}
60
+ - name: TOA_SERVICES
61
+ value: {{ join " " .services | quote }}
62
+ {{- end }}
59
63
  {{- range .variables }}
60
64
  {{- include "env.var" . | indent 12 }}
61
65
  {{- end }}
@@ -148,8 +148,14 @@ export class Factory {
148
148
  const services = declared?.map((service) =>
149
149
  workload === undefined
150
150
  ? this.#service(reference, service) // its own deployment, its own image
151
- : // named the way `Service` would name it, since it skips that wrapper
152
- { ...service, name: `${service.group}-${service.name}`, workload }
151
+ : // named the way `Service` would name it, since it skips that wrapper; and by the
152
+ // extension it is of, which the workload names to its process to be run
153
+ {
154
+ ...service,
155
+ name: `${service.group}-${service.name}`,
156
+ workload,
157
+ extension: reference
158
+ }
153
159
  )
154
160
 
155
161
  return { ...dependency, services }