@orchagent/cli 0.3.42 → 0.3.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/agents-md.js +2 -2
- package/dist/adapters/claude-code.js +3 -3
- package/dist/adapters/cursor.js +2 -2
- package/dist/commands/agents.js +1 -1
- package/dist/commands/call.js +14 -568
- package/dist/commands/env.js +1 -1
- package/dist/commands/info.js +2 -2
- package/dist/commands/init.js +28 -28
- package/dist/commands/install.js +4 -4
- package/dist/commands/pricing.js +1 -1
- package/dist/commands/publish.js +36 -36
- package/dist/commands/run.js +670 -278
- package/dist/commands/search.js +1 -1
- package/dist/commands/seller.js +5 -5
- package/dist/commands/skill.js +4 -4
- package/dist/commands/test.js +2 -2
- package/dist/index.js +1 -2
- package/dist/lib/api.js +5 -5
- package/dist/lib/bundle.js +2 -2
- package/dist/lib/errors.js +1 -1
- package/dist/lib/output.js +1 -1
- package/package.json +1 -1
package/dist/commands/search.js
CHANGED
|
@@ -93,7 +93,7 @@ Ownership Filters:
|
|
|
93
93
|
}
|
|
94
94
|
else {
|
|
95
95
|
process.stdout.write(query ? 'No results found matching your search.\n' : 'No public agents found.\n');
|
|
96
|
-
process.stdout.write('\
|
|
96
|
+
process.stdout.write('\nView all agents at: https://orchagent.io/explore\n');
|
|
97
97
|
}
|
|
98
98
|
return;
|
|
99
99
|
}
|
package/dist/commands/seller.js
CHANGED
|
@@ -15,11 +15,11 @@ const output_1 = require("../lib/output");
|
|
|
15
15
|
function registerSellerCommand(program) {
|
|
16
16
|
const seller = program
|
|
17
17
|
.command('seller')
|
|
18
|
-
.description('Manage
|
|
18
|
+
.description('Manage monetization account for your agents');
|
|
19
19
|
// orch seller onboard
|
|
20
20
|
seller
|
|
21
21
|
.command('onboard')
|
|
22
|
-
.description('Start Stripe
|
|
22
|
+
.description('Start Stripe monetization onboarding process')
|
|
23
23
|
.option('--country <code>', 'Country code (default: GB)', 'GB')
|
|
24
24
|
.action(async (options) => {
|
|
25
25
|
const resolved = await (0, config_1.getResolvedConfig)();
|
|
@@ -35,7 +35,7 @@ function registerSellerCommand(program) {
|
|
|
35
35
|
// orch seller status
|
|
36
36
|
seller
|
|
37
37
|
.command('status')
|
|
38
|
-
.description('Check
|
|
38
|
+
.description('Check monetization account status')
|
|
39
39
|
.option('--json', 'Output as JSON')
|
|
40
40
|
.action(async (options) => {
|
|
41
41
|
const resolved = await (0, config_1.getResolvedConfig)();
|
|
@@ -47,7 +47,7 @@ function registerSellerCommand(program) {
|
|
|
47
47
|
// Display status
|
|
48
48
|
if (!status.onboarded) {
|
|
49
49
|
process.stdout.write(chalk_1.default.yellow('\nNot onboarded\n\n'));
|
|
50
|
-
process.stdout.write('
|
|
50
|
+
process.stdout.write('Enable monetization: orch seller onboard\n');
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
process.stdout.write(chalk_1.default.green('\n✓ Onboarded\n\n'));
|
|
@@ -78,7 +78,7 @@ function registerSellerCommand(program) {
|
|
|
78
78
|
}
|
|
79
79
|
catch (err) {
|
|
80
80
|
if (err instanceof api_2.ApiError && (err.status === 404 || err.status === 403)) {
|
|
81
|
-
process.stdout.write(chalk_1.default.yellow('\nNo
|
|
81
|
+
process.stdout.write(chalk_1.default.yellow('\nNo monetization account found\n\n'));
|
|
82
82
|
process.stdout.write('Complete onboarding: orch seller onboard\n');
|
|
83
83
|
process.exit(errors_1.ExitCodes.NOT_FOUND);
|
|
84
84
|
}
|
package/dist/commands/skill.js
CHANGED
|
@@ -189,7 +189,7 @@ async function downloadSkillWithFallback(config, org, skill, version) {
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
throw new errors_1.CliError(`This skill is server-only and cannot be downloaded.\n\n` +
|
|
192
|
-
`Skills are loaded automatically during server execution via 'orch
|
|
192
|
+
`Skills are loaded automatically during server execution via 'orch run'.`);
|
|
193
193
|
}
|
|
194
194
|
// Free skill or public metadata available - proceed with normal download
|
|
195
195
|
if (skillMeta) {
|
|
@@ -203,11 +203,11 @@ async function downloadSkillWithFallback(config, org, skill, version) {
|
|
|
203
203
|
if (payload?.error?.code === 'PAID_AGENT_SERVER_ONLY') {
|
|
204
204
|
const price = payload.error.price_per_call_cents || 0;
|
|
205
205
|
throw new errors_1.CliError(`This skill costs $${(price / 100).toFixed(2)}/call and runs on server only.\n\n` +
|
|
206
|
-
`Use: orch
|
|
206
|
+
`Use: orch run ${org}/${skill}@${version} --data '{...}'`);
|
|
207
207
|
}
|
|
208
208
|
if (payload?.error?.code === 'DOWNLOAD_DISABLED') {
|
|
209
209
|
throw new errors_1.CliError(`This skill is server-only and cannot be downloaded.\n\n` +
|
|
210
|
-
`Skills are loaded automatically during server execution via 'orch
|
|
210
|
+
`Skills are loaded automatically during server execution via 'orch run'.`);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
throw err;
|
|
@@ -266,7 +266,7 @@ function registerSkillCommand(program) {
|
|
|
266
266
|
' orchagent search <query> --type skills Search skills by keyword\n' +
|
|
267
267
|
' orchagent search --popular --type skills Top skills by stars\n' +
|
|
268
268
|
' orchagent search --recent --type skills Most recently published\n\n' +
|
|
269
|
-
'
|
|
269
|
+
'View all skills at: https://orchagent.io/explore\n');
|
|
270
270
|
process.exit(0);
|
|
271
271
|
});
|
|
272
272
|
// orch skill create [name]
|
package/dist/commands/test.js
CHANGED
|
@@ -138,7 +138,7 @@ async function detectAgentType(agentDir) {
|
|
|
138
138
|
return 'prompt';
|
|
139
139
|
if (manifest.type === 'skill')
|
|
140
140
|
return 'skill';
|
|
141
|
-
if (manifest.type === '
|
|
141
|
+
if (manifest.type === 'tool') {
|
|
142
142
|
// Detect language
|
|
143
143
|
if (await fileExists(path_1.default.join(agentDir, 'requirements.txt')))
|
|
144
144
|
return 'code-python';
|
|
@@ -146,7 +146,7 @@ async function detectAgentType(agentDir) {
|
|
|
146
146
|
return 'code-python';
|
|
147
147
|
if (await fileExists(path_1.default.join(agentDir, 'package.json')))
|
|
148
148
|
return 'code-js';
|
|
149
|
-
// Default to Python for
|
|
149
|
+
// Default to Python for tool agents
|
|
150
150
|
return 'code-python';
|
|
151
151
|
}
|
|
152
152
|
}
|
package/dist/index.js
CHANGED
|
@@ -59,8 +59,7 @@ program
|
|
|
59
59
|
.option('--no-progress', 'Disable progress spinners (useful for CI/scripts)')
|
|
60
60
|
.addHelpText('after', `
|
|
61
61
|
Quick Reference:
|
|
62
|
-
run
|
|
63
|
-
call Execute an agent on orchagent servers (requires login)
|
|
62
|
+
run Run an agent (cloud by default, --local for local execution)
|
|
64
63
|
info Show agent details and input/output schemas
|
|
65
64
|
|
|
66
65
|
Installation:
|
package/dist/lib/api.js
CHANGED
|
@@ -299,12 +299,12 @@ async function searchMyAgents(config, query, options) {
|
|
|
299
299
|
if (options?.type) {
|
|
300
300
|
const typeFilter = options.type;
|
|
301
301
|
if (typeFilter === 'agents') {
|
|
302
|
-
agents = agents.filter(a => a.type === 'prompt' || a.type === '
|
|
302
|
+
agents = agents.filter(a => a.type === 'prompt' || a.type === 'tool');
|
|
303
303
|
}
|
|
304
304
|
else if (typeFilter === 'skills' || typeFilter === 'skill') {
|
|
305
305
|
agents = agents.filter(a => a.type === 'skill');
|
|
306
306
|
}
|
|
307
|
-
else if (typeFilter === '
|
|
307
|
+
else if (typeFilter === 'tool' || typeFilter === 'prompt') {
|
|
308
308
|
agents = agents.filter(a => a.type === typeFilter);
|
|
309
309
|
}
|
|
310
310
|
}
|
|
@@ -342,7 +342,7 @@ async function fetchLlmKeys(config) {
|
|
|
342
342
|
return result.keys;
|
|
343
343
|
}
|
|
344
344
|
/**
|
|
345
|
-
* Download a
|
|
345
|
+
* Download a tool bundle for local execution.
|
|
346
346
|
*/
|
|
347
347
|
async function downloadCodeBundle(config, org, agent, version) {
|
|
348
348
|
const response = await safeFetch(`${config.apiUrl.replace(/\/$/, '')}/public/agents/${org}/${agent}/${version}/bundle`);
|
|
@@ -353,7 +353,7 @@ async function downloadCodeBundle(config, org, agent, version) {
|
|
|
353
353
|
return Buffer.from(arrayBuffer);
|
|
354
354
|
}
|
|
355
355
|
/**
|
|
356
|
-
* Upload a code bundle for a hosted
|
|
356
|
+
* Upload a code bundle for a hosted tool agent.
|
|
357
357
|
*/
|
|
358
358
|
async function uploadCodeBundle(config, agentId, bundlePath, entrypoint) {
|
|
359
359
|
if (!config.apiKey) {
|
|
@@ -421,7 +421,7 @@ async function getAgentWithFallback(config, org, agentName, version) {
|
|
|
421
421
|
return myAgent;
|
|
422
422
|
}
|
|
423
423
|
/**
|
|
424
|
-
* Download a
|
|
424
|
+
* Download a tool bundle for a private agent using authenticated endpoint.
|
|
425
425
|
*/
|
|
426
426
|
async function downloadCodeBundleAuthenticated(config, agentId) {
|
|
427
427
|
if (!config.apiKey) {
|
package/dist/lib/bundle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Code bundling utilities for hosted
|
|
3
|
+
* Code bundling utilities for hosted tools.
|
|
4
4
|
*
|
|
5
5
|
* Creates zip bundles from project directories for upload to orchagent.
|
|
6
6
|
*/
|
|
@@ -119,7 +119,7 @@ async function createCodeBundle(sourceDir, outputPath, options = {}) {
|
|
|
119
119
|
if (!stat.isDirectory()) {
|
|
120
120
|
throw new Error(`Source path is not a directory: ${sourceDir}`);
|
|
121
121
|
}
|
|
122
|
-
// Verify entrypoint exists if specified (skip for
|
|
122
|
+
// Verify entrypoint exists if specified (skip for agent type that has no code)
|
|
123
123
|
if (!options.skipEntrypointCheck) {
|
|
124
124
|
const entrypoint = options.entrypoint || 'main.py';
|
|
125
125
|
const entrypointPath = path_1.default.join(sourceDir, entrypoint);
|
package/dist/lib/errors.js
CHANGED
|
@@ -135,5 +135,5 @@ function jsonInputError(flag) {
|
|
|
135
135
|
' - Any shell: Use a file: --data @input.json\n\n' +
|
|
136
136
|
'Alternatives:\n' +
|
|
137
137
|
` - Use a file: --${flag} @input.json\n` +
|
|
138
|
-
` - Use stdin: echo '{"key":"value"}' | orch
|
|
138
|
+
` - Use stdin: echo '{"key":"value"}' | orch run agent --${flag} @-`, exports.ExitCodes.INVALID_INPUT);
|
|
139
139
|
}
|
package/dist/lib/output.js
CHANGED
|
@@ -24,7 +24,7 @@ function printAgentsTable(agents, options) {
|
|
|
24
24
|
const table = new cli_table3_1.default({ head });
|
|
25
25
|
agents.forEach((agent) => {
|
|
26
26
|
const fullName = `${agent.org_slug}/${agent.name}`;
|
|
27
|
-
const type = agent.type || '
|
|
27
|
+
const type = agent.type || 'tool';
|
|
28
28
|
const providers = formatProviders(agent.supported_providers);
|
|
29
29
|
const stars = agent.stars_count ?? 0;
|
|
30
30
|
const price = (0, pricing_1.formatPrice)(agent);
|