@@ -16,20 +16,6 @@ interface AgentResponse {
1616 name : string ;
1717}
1818
19- /**
20- * Build optional top-level fields (binary, axon_attach_config) from inputs.
21- */
22- function buildOptionalFields ( inputs : ActionInputs ) : Record < string , unknown > {
23- const fields : Record < string , unknown > = { } ;
24- if ( inputs . binary ) {
25- fields . binary = inputs . binary ;
26- }
27- if ( inputs . axonAttachProtocol ) {
28- fields . axon_attach_config = { protocol : inputs . axonAttachProtocol } ;
29- }
30- return fields ;
31- }
32-
3319/**
3420 * Deploy an agent to Runloop based on the source type.
3521 */
@@ -106,7 +92,6 @@ async function deployGitAgent(
10692 name : agentName ,
10793 version : inputs . agentVersion ,
10894 is_public : inputs . isPublic ,
109- ...buildOptionalFields ( inputs ) ,
11095 source : {
11196 type : 'git' ,
11297 git : {
@@ -150,7 +135,6 @@ async function deployTarAgent(
150135 name : agentName ,
151136 version : inputs . agentVersion ,
152137 is_public : inputs . isPublic ,
153- ...buildOptionalFields ( inputs ) ,
154138 source : {
155139 type : 'object' ,
156140 object : {
@@ -194,7 +178,6 @@ async function deployFileAgent(
194178 name : agentName ,
195179 version : inputs . agentVersion ,
196180 is_public : inputs . isPublic ,
197- ...buildOptionalFields ( inputs ) ,
198181 source : {
199182 type : 'object' ,
200183 object : {
@@ -241,7 +224,6 @@ async function deployNpmAgent(
241224 name : agentName ,
242225 version : inputs . agentVersion ,
243226 is_public : inputs . isPublic ,
244- ...buildOptionalFields ( inputs ) ,
245227 source : {
246228 type : 'npm' ,
247229 npm : npmSource ,
@@ -284,7 +266,6 @@ async function deployPipAgent(
284266 name : agentName ,
285267 version : inputs . agentVersion ,
286268 is_public : inputs . isPublic ,
287- ...buildOptionalFields ( inputs ) ,
288269 source : {
289270 type : 'pip' ,
290271 pip : pipSource ,
0 commit comments