@@ -11,17 +11,17 @@ const root = mkdtempSync(join(tmpdir(), "wp-codebox-agent-runtime-signal-smoke-"
1111try {
1212 const agentRecipe = buildAgentTaskRecipe ( {
1313 goal : "report agent runtime signal" ,
14- runtime_env : { EXISTING_RUNTIME_ENV : "preserved" , WP_CODEBOX_AGENT_RUNTIME : "caller-value" } ,
14+ runtime_env : { EXISTING_RUNTIME_ENV : "preserved" , WP_AGENT_RUNTIME : "caller-value" } ,
1515 } , normalizeTaskInput ( { goal : "report agent runtime signal" } ) , "latest" )
16- assert . equal ( agentRecipe . inputs ?. runtimeEnv ?. WP_CODEBOX_AGENT_RUNTIME , "1" )
16+ assert . equal ( agentRecipe . inputs ?. runtimeEnv ?. WP_AGENT_RUNTIME , "1" )
1717 assert . equal ( agentRecipe . inputs ?. runtimeEnv ?. EXISTING_RUNTIME_ENV , "preserved" )
18- assert . ok ( ! agentRecipe . inputs ?. secretEnv ?. includes ( "WP_CODEBOX_AGENT_RUNTIME " ) )
18+ assert . ok ( ! agentRecipe . inputs ?. secretEnv ?. includes ( "WP_AGENT_RUNTIME " ) )
1919
2020 agentRecipe . workflow . steps = [ {
2121 command : "wp-codebox.agent-sandbox-run" ,
2222 args : [
2323 "task=report agent runtime signal" ,
24- "code=echo getenv('WP_CODEBOX_AGENT_RUNTIME ') ?: 'unset';" ,
24+ "code=echo getenv('WP_AGENT_RUNTIME ') ?: 'unset';" ,
2525 ] ,
2626 } ]
2727 const agentRecipePath = join ( root , "agent-runtime-recipe.json" )
4040 workflow : {
4141 steps : [ {
4242 command : "wordpress.run-php" ,
43- args : [ "code=echo getenv('WP_CODEBOX_AGENT_RUNTIME ') ?: 'unset';" ] ,
43+ args : [ "code=echo getenv('WP_AGENT_RUNTIME ') ?: 'unset';" ] ,
4444 } ] ,
4545 } ,
4646 } , null , 2 ) )
0 commit comments