Spaces:
Sleeping
Sleeping
File size: 853 Bytes
cc11e77 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | /**
* adaptiveSolverTypes.ts — S552: tipi puri estratti da adaptiveSolver.ts
*
* Contiene solo TypeScript types/interfaces senza dipendenze runtime.
* Permette import type-only senza pull-in di adaptiveSolver.ts
* (vfsAsync, agentMemory, Strategy engine, CORS proxy logic, ecc.).
*
* Consumato da adaptiveSolver.ts (re-esporta per backward compat) e
* da agentLoop.ts / apiErrorRecovery.ts che tipano i risultati del solver.
*/
export type BlockadeKind =
| "cors"
| "not_found"
| "rate_limit"
| "permission"
| "timeout"
| "quota"
| "syntax"
| "network"
| "unknown"
| "dependency"
| "import_error";
export interface Blockade {
kind: BlockadeKind;
message: string;
hint: string;
}
export interface SolveResult {
success: boolean;
output: string;
strategy: string;
description: string;
}
|