feat(research): cut over canonical runtime and enforce agent budgets
This commit is contained in:
parent
ab08db82fd
commit
bbf0dd4453
103 changed files with 6138 additions and 3112 deletions
|
|
@ -16,6 +16,7 @@ import {
|
|||
import { canonicalWorkerUrl } from './canonical-build';
|
||||
import {
|
||||
nativeWorkerMessageSchema,
|
||||
nativeWorkerRequestSchema,
|
||||
parseRetainedStrategyResult,
|
||||
retainedStrategyRequestSchema,
|
||||
type NativeWorkerRequest,
|
||||
|
|
@ -34,6 +35,7 @@ export class NativeBacktestWorker {
|
|||
onProgress: (progress: { progress: number; message: string }) => void
|
||||
): Promise<string> {
|
||||
signal.throwIfAborted();
|
||||
request = nativeWorkerRequestSchema.parse(request);
|
||||
if (this.active) {
|
||||
throw new BacktestConflictError('A native backtest worker is already running');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue