@toa.io/operations 1.0.0-alpha.284 → 1.0.0-alpha.286

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 (50) hide show
  1. package/package.json +4 -4
  2. package/readme.md +43 -0
  3. package/src/deployment/.deployment/.describe/compositions.js +7 -5
  4. package/src/deployment/.deployment/.describe/events.js +7 -7
  5. package/src/deployment/.deployment/.describe/fold.js +10 -3
  6. package/src/deployment/.deployment/.describe/fold.test.js +30 -14
  7. package/src/deployment/.deployment/.describe/mounts.js +4 -7
  8. package/src/deployment/.deployment/.describe/resources.js +7 -5
  9. package/src/deployment/.deployment/.describe/resources.test.js +13 -6
  10. package/src/deployment/.deployment/.describe/services.js +10 -9
  11. package/src/deployment/.deployment/.describe/services.test.js +22 -5
  12. package/src/deployment/.deployment/.describe/variables.js +2 -3
  13. package/src/deployment/.deployment/describe.js +11 -7
  14. package/src/deployment/.deployment/merge.js +11 -6
  15. package/src/deployment/.deployment/merge.test.js +41 -10
  16. package/src/deployment/composition.js +1 -1
  17. package/src/deployment/deployment.js +35 -16
  18. package/src/deployment/factory.js +39 -19
  19. package/src/deployment/images/composition.Dockerfile +1 -1
  20. package/src/deployment/images/composition.js +10 -9
  21. package/src/deployment/images/factory.js +17 -6
  22. package/src/deployment/images/format.js +9 -5
  23. package/src/deployment/images/image.fixtures.js +2 -2
  24. package/src/deployment/images/image.js +38 -21
  25. package/src/deployment/images/image.test.js +7 -2
  26. package/src/deployment/images/mono.Dockerfile +1 -1
  27. package/src/deployment/images/mono.js +10 -9
  28. package/src/deployment/images/publish.js +98 -0
  29. package/src/deployment/images/runtime-base.test.js +12 -6
  30. package/src/deployment/images/service.Dockerfile +1 -1
  31. package/src/deployment/images/service.js +4 -4
  32. package/src/deployment/operator.js +8 -8
  33. package/src/deployment/registry.js +89 -61
  34. package/src/deployment/registry.test.js +117 -43
  35. package/src/deployment/service.js +3 -1
  36. package/src/deployment/workspace.js +1 -1
  37. package/src/process.js +1 -1
  38. package/src/process.test.js +8 -4
  39. package/types/_deployment/composition.d.ts +0 -2
  40. package/types/_deployment/dependency.d.ts +10 -6
  41. package/types/_deployment/deployment.d.ts +0 -4
  42. package/types/_deployment/factory.d.ts +0 -2
  43. package/types/_deployment/images/factory.d.ts +4 -6
  44. package/types/_deployment/images/image.d.ts +2 -4
  45. package/types/_deployment/images/registry.d.ts +7 -10
  46. package/types/_deployment/operator.d.ts +5 -7
  47. package/types/_deployment/registry.d.ts +6 -8
  48. package/types/_deployment/service.d.ts +0 -2
  49. package/types/dependency.ts +3 -0
  50. package/CHANGELOG.md +0 -231
package/CHANGELOG.md DELETED
@@ -1,231 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [1.0.0-alpha.284](https://github.com/toa-io/toa/compare/v1.0.0-alpha.283...v1.0.0-alpha.284) (2026-09-05)
7
-
8
- **Note:** Version bump only for package @toa.io/operations
9
-
10
-
11
-
12
-
13
-
14
- # [1.0.0-alpha.283](https://github.com/toa-io/toa/compare/v1.0.0-alpha.282...v1.0.0-alpha.283) (2026-09-04)
15
-
16
- ### Bug Fixes
17
-
18
- * **lint:** lint the operations package ([aab0db5](https://github.com/toa-io/toa/commit/aab0db5ebcec05f5f49db716b86ea71f4377cfe3))
19
-
20
- ### Features
21
-
22
- * **operations:** run extension services inside a composition ([154aced](https://github.com/toa-io/toa/commit/154aced047228a250ac3bab353e09432fcc5a34d))
23
-
24
-
25
- # [1.0.0-alpha.282](https://github.com/toa-io/toa/compare/v1.0.0-alpha.281...v1.0.0-alpha.282) (2026-09-03)
26
-
27
- **Note:** Version bump only for package @toa.io/operations
28
-
29
-
30
-
31
-
32
-
33
- # [1.0.0-alpha.280](https://github.com/toa-io/toa/compare/v1.0.0-alpha.279...v1.0.0-alpha.280) (2026-09-03)
34
-
35
- ### Bug Fixes
36
-
37
- * **operations:** call execa, not the module it lives in ([9fe87d5](https://github.com/toa-io/toa/commit/9fe87d54cc02f7ec18e325c85882ff174acbe8ab))
38
-
39
-
40
- # [1.0.0-alpha.278](https://github.com/toa-io/toa/compare/v1.0.0-alpha.277...v1.0.0-alpha.278) (2026-09-03)
41
-
42
- **Note:** Version bump only for package @toa.io/operations
43
-
44
-
45
-
46
-
47
-
48
- # [1.0.0-alpha.277](https://github.com/toa-io/toa/compare/v1.0.0-alpha.276...v1.0.0-alpha.277) (2026-09-03)
49
-
50
- ### Bug Fixes
51
-
52
- * read a manifest the way js-yaml read one before ([fcea1b2](https://github.com/toa-io/toa/commit/fcea1b21996d6efa6c3198acbfc9f70f1ce0c35c))
53
- * settle what the module loader made asynchronous ([d4ab9df](https://github.com/toa-io/toa/commit/d4ab9dfb09e382da311dba08f52214e7645f4a6c))
54
- * what the loader resolves, and what it will not ([1b8a02f](https://github.com/toa-io/toa/commit/1b8a02ff0a5e0f18ee62e3f71bc81116f86f9af1))
55
-
56
-
57
- # [1.0.0-alpha.276](https://github.com/toa-io/toa/compare/v1.0.0-alpha.275...v1.0.0-alpha.276) (2026-09-03)
58
-
59
-
60
- ### Bug Fixes
61
-
62
- * **operations:** let a deployment state that it has no probe ([477b483](https://github.com/toa-io/toa/commit/477b483560cf2464d486a78e432f8e9b47f011dd))
63
-
64
-
65
-
66
-
67
-
68
- # [1.0.0-alpha.274](https://github.com/toa-io/toa/compare/v1.0.0-alpha.273...v1.0.0-alpha.274) (2026-09-02)
69
-
70
- **Note:** Version bump only for package @toa.io/operations
71
-
72
-
73
-
74
-
75
-
76
- # [1.0.0-alpha.273](https://github.com/toa-io/toa/compare/v1.0.0-alpha.272...v1.0.0-alpha.273) (2026-09-02)
77
-
78
- **Note:** Version bump only for package @toa.io/operations
79
-
80
-
81
-
82
-
83
-
84
- # [1.0.0-alpha.272](https://github.com/toa-io/toa/compare/v1.0.0-alpha.271...v1.0.0-alpha.272) (2026-09-01)
85
-
86
-
87
- * feat(atomicity)!: take a quorum of independent servers ([862562f](https://github.com/toa-io/toa/commit/862562f24d77ec00127dbbd88d43802b208c643b))
88
- * refactor(atomicity)!: take one Redis, not a cluster ([b0a4770](https://github.com/toa-io/toa/commit/b0a4770dff5dfe8fee4b9ae637a4dd297454fcd4))
89
- * refactor(core)!: pump the outbox in one cycle ([bf590fe](https://github.com/toa-io/toa/commit/bf590fe8ed59c701b5fd1a91ba4874685b79242f))
90
- * refactor(atomicity)!: rename the connector and free it of the outbox ([21f1a41](https://github.com/toa-io/toa/commit/21f1a41aceafcfd35c7620014062fe46b54afa95))
91
- * feat(core)!: commit events with the state that produced them ([1eb68cc](https://github.com/toa-io/toa/commit/1eb68cc435dbfa03faa16009fceb866693d22e1a)), closes [#20](https://github.com/toa-io/toa/issues/20)
92
-
93
-
94
- ### Features
95
-
96
- * **atomicity:** make the interval a setting, and stop repeating n-and-i ([5c3a6d1](https://github.com/toa-io/toa/commit/5c3a6d1533751a21b7eb7d9c737f1a270bf5a5ae))
97
-
98
-
99
- ### BREAKING CHANGES
100
-
101
- * `atomicity.redis` accepts a list again, of independent servers rather
102
- than cluster nodes, and refuses an even number of them.
103
-
104
- Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
105
- * `atomicity.redis` is a string. A list is refused at export.
106
-
107
- Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
108
- * `Storage.outbox.pending` takes a fourth argument, the id to
109
- continue from.
110
-
111
- Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
112
- * `@toa.io/partitions.redis` is now `@toa.io/atomicity`, and its
113
- `lanes(total)` is `slots(total)`. Redis is declared as `atomicity` in the context
114
- rather than `outbox.redis`, and read from `TOA_ATOMICITY_REDIS`.
115
- `TOA_OUTBOX_PARTITION_INTERVAL` is `TOA_ATOMICITY_INTERVAL`.
116
-
117
- Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
118
- * `event.changeset` is removed; use `origin` and `state`. `State`
119
- takes an `Outbox` in place of an `Emission`. `difference` is dropped from
120
- `@toa.io/generic` along with its last caller.
121
-
122
- Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
123
-
124
-
125
-
126
-
127
-
128
- # [1.0.0-alpha.270](https://github.com/toa-io/toa/compare/v1.0.0-alpha.269...v1.0.0-alpha.270) (2026-08-31)
129
-
130
-
131
- ### Bug Fixes
132
-
133
- * **operations:** let a composition set its own base image ([61ba331](https://github.com/toa-io/toa/commit/61ba3319dc91915a3197d348111af411bbd5bff1))
134
-
135
-
136
-
137
-
138
-
139
- # [1.0.0-alpha.266](https://github.com/toa-io/toa/compare/v1.0.0-alpha.265...v1.0.0-alpha.266) (2026-08-29)
140
-
141
- **Note:** Version bump only for package @toa.io/operations
142
-
143
-
144
-
145
-
146
-
147
- # [1.0.0-alpha.265](https://github.com/toa-io/toa/compare/v1.0.0-alpha.264...v1.0.0-alpha.265) (2026-08-29)
148
-
149
- **Note:** Version bump only for package @toa.io/operations
150
-
151
-
152
-
153
-
154
-
155
- # [1.0.0-alpha.264](https://github.com/toa-io/toa/compare/v1.0.0-alpha.263...v1.0.0-alpha.264) (2026-08-29)
156
-
157
- **Note:** Version bump only for package @toa.io/operations
158
-
159
-
160
-
161
-
162
-
163
- # [1.0.0-alpha.263](https://github.com/toa-io/toa/compare/v1.0.0-alpha.262...v1.0.0-alpha.263) (2026-08-29)
164
-
165
- **Note:** Version bump only for package @toa.io/operations
166
-
167
-
168
-
169
-
170
-
171
- # [1.0.0-alpha.262](https://github.com/toa-io/toa/compare/v1.0.0-alpha.261...v1.0.0-alpha.262) (2026-08-28)
172
-
173
-
174
- ### Bug Fixes
175
-
176
- * **cli:** boot toa mono from components and env, not context ([1518f72](https://github.com/toa-io/toa/commit/1518f729d7611ae88e0538f286231d283a7098ef))
177
-
178
-
179
- * feat(operations)!: require service ports to be unique ([b22cf87](https://github.com/toa-io/toa/commit/b22cf8770d24c555b5f355a5f117a9043a57799b))
180
-
181
-
182
- ### Features
183
-
184
- * **operations:** let a service claim a path prefix on the host ([02677d1](https://github.com/toa-io/toa/commit/02677d17fcd4222b07c3be458d93bcc496a016a8))
185
-
186
-
187
- ### BREAKING CHANGES
188
-
189
- * an application whose own extension runs a service on a port
190
- already taken by another — 8000 by the exposition gateway, 8001 by the telemetry
191
- readiness probe — must move it.
192
-
193
- Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
194
-
195
-
196
-
197
-
198
-
199
- # [1.0.0-alpha.261](https://github.com/toa-io/toa/compare/v1.0.0-alpha.260...v1.0.0-alpha.261) (2026-08-26)
200
-
201
-
202
- ### Bug Fixes
203
-
204
- * **operations:** include extension pointer variables in --mono ([f8be23d](https://github.com/toa-io/toa/commit/f8be23d2aaf7bbe1b0580101c8bf4d32c3cab99f))
205
-
206
-
207
-
208
-
209
-
210
- # [1.0.0-alpha.259](https://github.com/toa-io/toa/compare/v1.0.0-alpha.258...v1.0.0-alpha.259) (2026-08-24)
211
-
212
- **Note:** Version bump only for package @toa.io/operations
213
-
214
-
215
-
216
-
217
-
218
- # [1.0.0-alpha.257](https://github.com/toa-io/toa/compare/v1.0.0-alpha.256...v1.0.0-alpha.257) (2026-08-24)
219
-
220
- **Note:** Version bump only for package @toa.io/operations
221
-
222
-
223
-
224
-
225
-
226
- # [1.0.0-alpha.256](https://github.com/toa-io/toa/compare/v1.0.0-alpha.255...v1.0.0-alpha.256) (2026-08-23)
227
-
228
-
229
- ### Features
230
-
231
- * deploy a single mono image with toa deploy --mono ([a7f14f9](https://github.com/toa-io/toa/commit/a7f14f9877a280e9c74d16c195028b35d74fb15a))