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,23 @@
import type { WorkerRemoteRunCompletionClient } from '../ports/workerRemoteRunCompletionClient';
import type { PrimaryRunCompletionResult } from './primaryRunCompletionService';
import {
RemoteRunCompletionService,
type RemoteRunCompletionCommand,
} from './remoteRunCompletionService';
import type { AuthenticatedWorkerPrincipal } from './workerControlService';
/** The transport authenticates once; Worker request bodies cannot select a principal. */
export class BoundWorkerRemoteRunCompletionClient
implements WorkerRemoteRunCompletionClient
{
constructor(
private readonly service: RemoteRunCompletionService,
private readonly principal: AuthenticatedWorkerPrincipal,
) {}
complete(
command: RemoteRunCompletionCommand,
): Promise<PrimaryRunCompletionResult> {
return this.service.complete(this.principal, command);
}
}