@nylorun/runtime 0.51.0-beta → 0.51.1-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 +6 -0
- package/dist/management-openapi.json +1 -1
- package/dist/openapi.json +1 -1
- package/dist/tenant/runtime.js +14 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.51.1-beta
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8451138: Pods on Agent Substrate (preview): a drain is recorded as soon as the moved pod's engine connects again. After suspend before drain, the restored engine redials with its host token (no join), and nothing asked the Runtime to reconcile the pod, so `agent.suspended` with reason `drain` waited for the next turn or idle timer (E13 on kind: not within two minutes). A pod engine's connection now asks for its sandbox's reconcile.
|
|
8
|
+
|
|
3
9
|
## 0.51.0-beta
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/openapi.json
CHANGED
package/dist/tenant/runtime.js
CHANGED
|
@@ -392,7 +392,20 @@ export class TenantRuntime {
|
|
|
392
392
|
return this.ctx.onSweep(hook);
|
|
393
393
|
}
|
|
394
394
|
attachHarness(channel, peer) {
|
|
395
|
-
|
|
395
|
+
const detach = this.ctx.harness.attach(channel, peer);
|
|
396
|
+
// A pod's engine that (re)connects asks for its sandbox's reconcile: after a drain (Agent
|
|
397
|
+
// Substrate's eviction contract) the restored engine redials with its host token and no join,
|
|
398
|
+
// and this is what lets the Runtime see the move (`drainedAt`, `agent.suspended` reason
|
|
399
|
+
// `drain`) at once rather than at the next turn or idle timer.
|
|
400
|
+
const sandboxId = peer.host?.sandboxId;
|
|
401
|
+
if (sandboxId !== undefined)
|
|
402
|
+
void this.ctx.store
|
|
403
|
+
.tx((t) => t.signalSandbox(sandboxId, { kind: "reconcile" }))
|
|
404
|
+
.catch((error) => this.ctx.config.logger.warn("sandbox reconcile after connect failed", {
|
|
405
|
+
sandboxId,
|
|
406
|
+
error: error instanceof Error ? error.message : String(error),
|
|
407
|
+
}));
|
|
408
|
+
return detach;
|
|
396
409
|
}
|
|
397
410
|
harnessStatus() {
|
|
398
411
|
return harnessStatusOf(this.ctx);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const RUNTIME_VERSION = "0.51.
|
|
1
|
+
export declare const RUNTIME_VERSION = "0.51.1-beta";
|
package/dist/version.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Kept in step with package.json by runtime/server/scripts/check-package.mjs, which runs in npm run check.
|
|
2
2
|
// release:prepare also rewrites this when it bumps @nylorun/runtime.
|
|
3
|
-
export const RUNTIME_VERSION = "0.51.
|
|
3
|
+
export const RUNTIME_VERSION = "0.51.1-beta";
|
package/package.json
CHANGED