feat(ql3): establish 3.0 incubation baseline

This commit is contained in:
whyour
2026-08-12 00:25:26 +08:00
parent 4bf92dcfeb
commit c699c32461
2817 changed files with 779642 additions and 653 deletions
@@ -0,0 +1,37 @@
import type {
AcknowledgeRemoteRunRunningCommand,
AcknowledgeRemoteRunStartingCommand,
FailRemoteRunStartCommand,
RemoteRunActivationResult,
} from './remoteRunActivationService';
import { RemoteRunActivationService } from './remoteRunActivationService';
import type { AuthenticatedWorkerPrincipal } from './workerControlService';
import type { WorkerRemoteRunActivationClient } from '../ports/workerRemoteRunActivationClient';
/** The transport authenticates once; Worker request bodies cannot select a principal. */
export class BoundWorkerRemoteRunActivationClient
implements WorkerRemoteRunActivationClient
{
constructor(
private readonly service: RemoteRunActivationService,
private readonly principal: AuthenticatedWorkerPrincipal,
) {}
acknowledgeStarting(
command: AcknowledgeRemoteRunStartingCommand,
): Promise<RemoteRunActivationResult> {
return this.service.acknowledgeStarting(this.principal, command);
}
acknowledgeRunning(
command: AcknowledgeRemoteRunRunningCommand,
): Promise<RemoteRunActivationResult> {
return this.service.acknowledgeRunning(this.principal, command);
}
failStart(
command: FailRemoteRunStartCommand,
): Promise<RemoteRunActivationResult> {
return this.service.failStart(this.principal, command);
}
}