Skip to content

Commit 4d96b89

Browse files
wall-rljason-rl
authored andcommitted
cp
1 parent 6a34bc4 commit 4d96b89

3 files changed

Lines changed: 0 additions & 43 deletions

File tree

action.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,6 @@ inputs:
5151
description: 'PyPI index URL (optional, defaults to public PyPI)'
5252
required: false
5353

54-
# Agent runtime inputs
55-
binary:
56-
description: 'Agent binary path (e.g., "claude", "codex")'
57-
required: false
58-
59-
axon-attach-protocol:
60-
description: 'Axon attach protocol: acp, claude, or codex'
61-
required: false
62-
6354
# File/tar source inputs
6455
path:
6556
description: 'Path to file or tar archive (required if source-type=tar/file)'

src/agent-deployer.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -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,

src/validators.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@ export interface ActionInputs {
1414
npmRegistryUrl?: string;
1515
pipPackage?: string;
1616
pipIndexUrl?: string;
17-
binary?: string;
18-
axonAttachProtocol?: AxonAttachProtocol;
1917
setupCommands?: string[];
2018
isPublic: boolean;
2119
apiUrl: string;
2220
objectTtlDays?: number;
2321
}
2422

2523
export type SourceType = 'git' | 'tar' | 'file' | 'npm' | 'pip';
26-
export type AxonAttachProtocol = 'acp' | 'claude' | 'codex';
2724

2825
export function getInputs(): ActionInputs {
2926
// Get all inputs
@@ -44,9 +41,6 @@ export function getInputs(): ActionInputs {
4441
npmRegistryUrl: core.getInput('npm-registry-url') || undefined,
4542
pipPackage: core.getInput('pip-package') || undefined,
4643
pipIndexUrl: core.getInput('pip-index-url') || undefined,
47-
binary: core.getInput('binary') || undefined,
48-
axonAttachProtocol: (core.getInput('axon-attach-protocol') ||
49-
undefined) as ActionInputs['axonAttachProtocol'],
5044
setupCommands: setupCommandsRaw
5145
? setupCommandsRaw
5246
.split('\n')
@@ -119,15 +113,6 @@ export function validateInputs(inputs: ActionInputs): void {
119113
}
120114
}
121115

122-
// Validate axonAttachProtocol if provided
123-
if (inputs.axonAttachProtocol !== undefined) {
124-
const validProtocols: AxonAttachProtocol[] = ['acp', 'claude', 'codex'];
125-
if (!validProtocols.includes(inputs.axonAttachProtocol)) {
126-
throw new Error(
127-
`Invalid axon-attach-protocol: "${inputs.axonAttachProtocol}". Must be one of: ${validProtocols.join(', ')}`
128-
);
129-
}
130-
}
131116
}
132117

133118
function validatePath(inputPath: string, sourceType: SourceType): void {

0 commit comments

Comments
 (0)