fix: close workspace ownership and API escapes
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user