@nylorun/admin 0.19.16-beta → 0.20.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 +18 -0
- package/README.md +18 -1
- package/dist/management.d.ts +9 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.20.0-beta
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- fe118db: The Tenant's sandbox settings round-trip, and `engine.images` comes back (#588).
|
|
8
|
+
|
|
9
|
+
- **Breaking (`@nylorun/runtime`, `@nylorun/core`, `@nylorun/admin`): `config` is the settings as stored.** `GET` and `PUT /v1/tenant/sandbox` (`admin.settings.sandbox`) answer `config` as the Tenant set it, with no defaults, in exactly the shape `PUT` takes (`limits.resources.memory: "8GiB"`), so `put(get().config)` changes nothing and saves no default as a setting. The settings in force, every default filled in and sizes in MiB (`memoryMiB`), are `effective`, which is what `config` was. Before, `PUT` refused what `GET` answered (`unrecognized_keys "memoryMiB"`). Read the settings in force from `effective` (`view.effective.limits.resources.memoryMiB`), and build a `PUT` body from `view.config`. `TenantSandboxViewSchema` has `config: TenantEnvironmentsConfigSchema` and `effective: EffectiveSandboxConfigSchema`.
|
|
10
|
+
- **`engine.images` is answered.** A `PUT` with `engine.images` was stored and used, but left out of its answer and of the next `GET`. Both now carry it, in `config` as set and in `effective` (`[]` when unset).
|
|
11
|
+
- `@nylorun/studio`: Edit compute settings puts the stored settings with only the fields it changed, so it no longer erases `engine.images` set through the API, keeps `placement`, and saves no default as a setting; clearing idle, stop grace or most Agents puts back the default. The Compute tab lists the engine images.
|
|
12
|
+
- `nylorun`: `nylorun tenant settings sandbox put` takes what `get` printed and puts back its `config`. `nylorun doctor sandbox` reads the limits in force from `effective`, or from `config` on an older Runtime.
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Pin core to the tested release.
|
|
17
|
+
- Updated dependencies [fe118db]
|
|
18
|
+
- Updated dependencies [fe118db]
|
|
19
|
+
- @nylorun/core@0.41.0-beta
|
|
20
|
+
|
|
3
21
|
## 0.19.16-beta
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -121,7 +121,24 @@ if (preview.authRequired) console.log("needs a sign-in:", preview.authRequired.r
|
|
|
121
121
|
`admin.settings.sandbox` reads and replaces the Tenant's settings for its
|
|
122
122
|
Agents' environments (Tenant setting `environments.config`): `limits`
|
|
123
123
|
(`network`, `resources`, `defaultResources`, `idle`, `environments`, the most
|
|
124
|
-
Agents), the pods' `lifecycle.stopGrace`
|
|
124
|
+
Agents), the pods' `lifecycle.stopGrace`, `engine.images` (the image
|
|
125
|
+
repositories that carry the engine) and `placement`. `get()` and `put()` answer
|
|
126
|
+
the backend report with the settings twice: `config` is what the Tenant set, in
|
|
127
|
+
exactly the shape `put()` takes and with no defaults, and `effective` is the
|
|
128
|
+
configuration in force, every default filled in and sizes in MiB
|
|
129
|
+
(`memoryMiB`). `put()` replaces every setting, so change one by putting
|
|
130
|
+
`config` back with that change:
|
|
131
|
+
|
|
132
|
+
<!-- doc-test: typescript -->
|
|
133
|
+
```ts
|
|
134
|
+
import { createAdmin } from "@nylorun/admin";
|
|
135
|
+
|
|
136
|
+
const admin = createAdmin();
|
|
137
|
+
const { config } = await admin.settings.sandbox.get();
|
|
138
|
+
const saved = await admin.settings.sandbox.put({ ...config, limits: { ...config.limits, idle: "30m" } });
|
|
139
|
+
console.log(saved.effective.limits.idle, saved.effective.limits.resources.memoryMiB);
|
|
140
|
+
```
|
|
141
|
+
|
|
125
142
|
`admin.tenant.reset({ scope })` takes `sessions`, `agents` (the Agents, their
|
|
126
143
|
vaults and disks, and their sessions) or `all`.
|
|
127
144
|
|
package/dist/management.d.ts
CHANGED
|
@@ -96,8 +96,16 @@ export interface ManagementSigningKeys {
|
|
|
96
96
|
}
|
|
97
97
|
export interface ManagementSettings {
|
|
98
98
|
readonly sandbox: {
|
|
99
|
+
/**
|
|
100
|
+
* The sandbox backend, the Tenant's settings as stored (`config`, exactly what `put` takes)
|
|
101
|
+
* and the configuration in force (`effective`, with every default and sizes in MiB).
|
|
102
|
+
*/
|
|
99
103
|
get(): Promise<TenantSandboxView>;
|
|
100
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* Replaces the Tenant's settings for Agents' environments: limits, the pods' stop grace,
|
|
106
|
+
* `engine.images` and placement. A setting left out takes its default, so change one by
|
|
107
|
+
* putting `get()`'s `config` back with that change.
|
|
108
|
+
*/
|
|
101
109
|
put(request: Body<PutTenantEnvironmentsRequest>): Promise<TenantSandboxView>;
|
|
102
110
|
};
|
|
103
111
|
readonly artifacts: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nylorun/admin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0-beta",
|
|
4
4
|
"description": "Nylorun Management API client: the Tenant's models, vaults, signing keys, settings and application keys",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"clean": "node -e \"import('node:fs').then(({rmSync})=>rmSync('dist',{recursive:true,force:true}))\""
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@nylorun/core": "0.
|
|
31
|
+
"@nylorun/core": "0.41.0-beta"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"zod": "^4.6.7"
|