fix: close workspace ownership and API escapes

This commit is contained in:
2026-08-11 15:39:27 +02:00
parent 1b24337a98
commit ca37156a56
12 changed files with 202 additions and 77 deletions
+2 -4
View File
@@ -22,9 +22,7 @@ import {
addressedRunId,
canonicalBootstrapRequestDigest,
type RegistryAddressedSnapshotV1,
type RegistryBootstrapAddressedRequestV1,
type RegistryEnsureBootstrapAddressedResultV1,
type RegistryPublishAddressedRequestV1,
type RegistryAddressedRequestV1,
type RegistryAddressedPublicationResultV1,
} from "./registry-publication.js";
@@ -128,7 +126,7 @@ export class WorkspaceRegistry {
}
/** Automatic addressed recovery. The repository lock is acquired before active-state inspection. */
async ensureBootstrapAddressed(request?: RegistryBootstrapAddressedRequestV1 | any): Promise<any> {
async ensureBootstrapAddressed(request?: any): Promise<any> {
await this.repository.ensureLayout();
return await this.lock.run(async () => {
const active = await this.tryActiveState();
@@ -151,7 +149,7 @@ export class WorkspaceRegistry {
});
}
async publishAddressed(request: RegistryPublishAddressedRequestV1 | any): Promise<any> {
async publishAddressed(request: any): Promise<any> {
await this.repository.ensureLayout();
return await this.lock.run(async () => {
const before = await this.tryActiveState();