@ponythewhite/base-context 1.0.9 → 1.0.10
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 +8 -0
- package/dist/base-context-runtime/pyproject.toml +1 -1
- package/dist/base-context-runtime/uv.lock +1 -1
- package/dist/build-info.json +1 -1
- package/dist/bundle/{bundled-modules-5JRM6P4T.js → bundled-modules-MX6YNAM2.js} +2 -2
- package/dist/bundle/{chunk-NEHLB7JV.js → chunk-CDXQNS5P.js} +100 -22
- package/dist/bundle/{chunk-VVI3UKGR.js → chunk-UHLGPYMI.js} +20 -40
- package/dist/bundle/{cli-main-YUDBEYE2.js → cli-main-D7W3WWCV.js} +2 -2
- package/dist/bundle/cli.js +1 -1
- package/dist/bundle/{main-ZLGGAAGU.js → main-5J3QBZ5Y.js} +2 -2
- package/dist/core/canonical-context.d.ts.map +1 -1
- package/dist/core/canonical-context.js +115 -30
- package/dist/core/canonical-context.js.map +1 -1
- package/dist/core/context-epoch.d.ts +14 -3
- package/dist/core/context-epoch.d.ts.map +1 -1
- package/dist/core/context-epoch.js +5 -1
- package/dist/core/context-epoch.js.map +1 -1
- package/dist/core/public-context.d.ts.map +1 -1
- package/dist/core/public-context.js +20 -8
- package/dist/core/public-context.js.map +1 -1
- package/dist/modes/daemon/daemon-mode.d.ts.map +1 -1
- package/dist/modes/daemon/daemon-mode.js +15 -30
- package/dist/modes/daemon/daemon-mode.js.map +1 -1
- package/dist/modes/daemon/daemon-socket.d.ts +5 -0
- package/dist/modes/daemon/daemon-socket.d.ts.map +1 -1
- package/dist/modes/daemon/daemon-socket.js +19 -0
- package/dist/modes/daemon/daemon-socket.js.map +1 -1
- package/dist/modes/daemon/daemon-supervisor.d.ts.map +1 -1
- package/dist/modes/daemon/daemon-supervisor.js +6 -7
- package/dist/modes/daemon/daemon-supervisor.js.map +1 -1
- package/dist/modes/daemon/daemon-worker-client.d.ts.map +1 -1
- package/dist/modes/daemon/daemon-worker-client.js +5 -5
- package/dist/modes/daemon/daemon-worker-client.js.map +1 -1
- package/package.json +4 -4
|
@@ -32,7 +32,7 @@ import { DaemonRlmCapacityCoordinator } from "./daemon-rlm-capacity-coordinator.
|
|
|
32
32
|
import { getDaemonRuntimeIdentity } from "./daemon-runtime-identity.js";
|
|
33
33
|
import { matchesSessionIdSuffix } from "./daemon-session-id.js";
|
|
34
34
|
import { classifySessionRosterStatus, isEvictableEmptySessionSummary, isSessionSummaryBusy, summaryForInactiveSession, } from "./daemon-session-list.js";
|
|
35
|
-
import { acquireDaemonSocketPathLease, cleanupDaemonSocketPath, defaultDaemonSocketDir, defaultDaemonSocketPath, getDaemonSocketIdentity, normalizeSocketPath, prepareDaemonSocketPath, restrictDaemonSocketPath, } from "./daemon-socket.js";
|
|
35
|
+
import { acquireDaemonSocketPathLease, cleanupDaemonSocketPath, closeDaemonServer, defaultDaemonSocketDir, defaultDaemonSocketPath, getDaemonSocketIdentity, normalizeSocketPath, prepareDaemonSocketPath, restrictDaemonSocketPath, } from "./daemon-socket.js";
|
|
36
36
|
import { acquireDaemonSupervisorOwnership, isDaemonShutdownAdmissionActive, waitForDaemonStartupFence, } from "./daemon-supervisor-ownership.js";
|
|
37
37
|
import { DaemonWorkerAuthenticationError, DaemonWorkerClient, DaemonWorkerCompatibilityError, DaemonWorkerProbeTimeoutError, } from "./daemon-worker-client.js";
|
|
38
38
|
import { DAEMON_WORKER_ACTIVE_SESSION_ID_ENV, DAEMON_WORKER_INSTANCE_ID_ENV, DAEMON_WORKER_PEER_TRANSPORT_CAPABILITY, DAEMON_WORKER_RECOVERY_JOURNAL_ENV, DAEMON_WORKER_ROLE_ENV, DAEMON_WORKER_ROSTER_CAPABILITY, DAEMON_WORKER_STARTUP_GATE_COMMIT, DAEMON_WORKER_STARTUP_GATE_FD_ENV, DAEMON_WORKER_SUPERVISOR_SOCKET_ENV, DAEMON_WORKER_TOKEN_ENV, durableDaemonCreateCommand, durableDaemonWorkerDescriptor, isDaemonRlmCapacitySnapshot, ROSTER_HEARTBEAT_INTERVAL_MS, SESSION_LEASE_OWNER_ID_ENV, SESSION_LEASES_ENABLED_ENV, } from "./daemon-worker-protocol.js";
|
|
@@ -1498,7 +1498,10 @@ export class DaemonSupervisor {
|
|
|
1498
1498
|
this.write(client, failure(command.id, command.type, "Daemon is preparing an update restart"));
|
|
1499
1499
|
return;
|
|
1500
1500
|
}
|
|
1501
|
-
|
|
1501
|
+
// Releasing an existing pause can unblock a mutation that eviction is draining.
|
|
1502
|
+
if (mutation &&
|
|
1503
|
+
command.type !== "release_session_input_pause" &&
|
|
1504
|
+
!UPDATE_RESTART_DRAIN_COMMANDS.has(command.type)) {
|
|
1502
1505
|
const idleEvictionFence = this.idleEvictionFence;
|
|
1503
1506
|
if (idleEvictionFence) {
|
|
1504
1507
|
await idleEvictionFence;
|
|
@@ -6358,11 +6361,7 @@ export class DaemonSupervisor {
|
|
|
6358
6361
|
}
|
|
6359
6362
|
}
|
|
6360
6363
|
await this.catalog.stop();
|
|
6361
|
-
|
|
6362
|
-
client.detachInput();
|
|
6363
|
-
client.socket.end();
|
|
6364
|
-
}
|
|
6365
|
-
await new Promise((resolveClose) => this.server?.close(() => resolveClose()) ?? resolveClose());
|
|
6364
|
+
await closeDaemonServer(this.server, this.clients);
|
|
6366
6365
|
await this.runCleanupStep("daemon socket", () => this.cleanupSocket());
|
|
6367
6366
|
await this.runCleanupStep("supervisor cache", () => {
|
|
6368
6367
|
rmSync(this.snapshotCacheRoot, { recursive: true, force: true });
|