You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# ! / u s r / b i n / e n v t s x
/**
* Priority1 可视全链回放 — CLI 入口(实现见 workers/rpa/priority1/visual-chain.ts)
*
* 用法:
* npm run visual:priority1-full-chain
*/
export {
runPriority1HumanAssistChain ,
runPriority1FtlPathRecording ,
runPriority1P08AccessorialRecording ,
runPriority1VisualChain ,
type RunPriority1VisualChainOptions ,
type Priority1VisualChainResult ,
} from "@/workers/rpa/priority1/visual-chain" ;
import { runPriority1VisualChain } from "@/workers/rpa/priority1/visual-chain" ;
async function main ( ) : Promise < void > {
const result = await runPriority1VisualChain ( ) ;
process . exit ( result . ok && result . allObservedOk ? 0 : 1 ) ;
}
const isDirectCli =
process . argv [ 1 ] ? . replace ( /\\/g , "/" ) . includes ( "visual-priority1-full-chain" ) ? ?
false ;
if ( isDirectCli ) {
main ( ) . catch ( ( e ) = > {
console . error ( e ) ;
process . exit ( 1 ) ;
} ) ;
}