@nylorun/core 0.32.0-beta → 0.33.0-beta
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 +12 -0
- package/dist/contracts.d.ts +9 -0
- package/dist/contracts.js +15 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @nylorun/core
|
|
2
2
|
|
|
3
|
+
## 0.33.0-beta
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 63a6217: An image can carry the Runtime's engine (ADR-99). A pod of an image the Tenant lists in
|
|
8
|
+
`engine.images` (`PUT /v1/tenant/sandbox`) runs the engine under `/opt/nylorun` with nothing copied
|
|
9
|
+
in: the sandboxes service's new `entrypoint: "builtin"`, without the `nylo-copy` init container and
|
|
10
|
+
the `/nylo` volume. Such an engine reports its Runtime version at join (header
|
|
11
|
+
`nylorun-image-engine`), the Agent's record keeps it beside its pinned image digest, and a pod runs
|
|
12
|
+
it only while it is the Runtime's own version; otherwise the engine is copied in as for any image.
|
|
13
|
+
New column `agents.engine_image` (migration 0042).
|
|
14
|
+
|
|
3
15
|
## 0.32.0-beta
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/contracts.d.ts
CHANGED
|
@@ -919,6 +919,9 @@ export declare const TenantEnvironmentsConfigSchema: z.ZodObject<{
|
|
|
919
919
|
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
920
920
|
stopGrace: z.ZodOptional<z.ZodString>;
|
|
921
921
|
}, z.core.$strict>>;
|
|
922
|
+
engine: z.ZodOptional<z.ZodObject<{
|
|
923
|
+
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
924
|
+
}, z.core.$strict>>;
|
|
922
925
|
placement: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
923
926
|
hosts: z.ZodArray<z.ZodEnum<{
|
|
924
927
|
"harness-container": "harness-container";
|
|
@@ -945,6 +948,9 @@ export declare const PutTenantEnvironmentsRequestSchema: z.ZodObject<{
|
|
|
945
948
|
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
946
949
|
stopGrace: z.ZodOptional<z.ZodString>;
|
|
947
950
|
}, z.core.$strict>>;
|
|
951
|
+
engine: z.ZodOptional<z.ZodObject<{
|
|
952
|
+
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
953
|
+
}, z.core.$strict>>;
|
|
948
954
|
placement: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
949
955
|
hosts: z.ZodArray<z.ZodEnum<{
|
|
950
956
|
"harness-container": "harness-container";
|
|
@@ -6106,6 +6112,9 @@ export declare const SeedTenantConfigRequestSchema: z.ZodObject<{
|
|
|
6106
6112
|
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
6107
6113
|
stopGrace: z.ZodOptional<z.ZodString>;
|
|
6108
6114
|
}, z.core.$strict>>;
|
|
6115
|
+
engine: z.ZodOptional<z.ZodObject<{
|
|
6116
|
+
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6117
|
+
}, z.core.$strict>>;
|
|
6109
6118
|
placement: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6110
6119
|
hosts: z.ZodArray<z.ZodEnum<{
|
|
6111
6120
|
"harness-container": "harness-container";
|
package/dist/contracts.js
CHANGED
|
@@ -1257,6 +1257,21 @@ export const TenantEnvironmentsConfigSchema = z
|
|
|
1257
1257
|
})
|
|
1258
1258
|
.strict()
|
|
1259
1259
|
.optional(),
|
|
1260
|
+
/**
|
|
1261
|
+
* Pods: images that carry this Runtime's engine under `/opt/nylorun` (ADR-99), by repository
|
|
1262
|
+
* (`ghcr.io/nylorun/bot-worker`). A pod of a listed image runs that engine with nothing copied
|
|
1263
|
+
* in, while the engine is the Runtime's own version; otherwise the engine is copied in, as for
|
|
1264
|
+
* any other image.
|
|
1265
|
+
*/
|
|
1266
|
+
engine: z
|
|
1267
|
+
.object({
|
|
1268
|
+
images: z
|
|
1269
|
+
.array(z.string().min(1).max(256).regex(/^[a-z0-9]([a-z0-9._:/-]*[a-z0-9])?$/, "an image repository, without a tag or digest"))
|
|
1270
|
+
.max(32)
|
|
1271
|
+
.optional(),
|
|
1272
|
+
})
|
|
1273
|
+
.strict()
|
|
1274
|
+
.optional(),
|
|
1260
1275
|
/**
|
|
1261
1276
|
* Where each harness may run, by harness id (`nylorun`, or `*` for the rest):
|
|
1262
1277
|
* `harness-container` (the Runtime's harness) and `sandbox` (the engine in a pod).
|