@orchagent/cli 0.3.43 → 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/commands/call.js +14 -568
- package/dist/commands/info.js +1 -1
- package/dist/commands/init.js +9 -9
- package/dist/commands/install.js +4 -4
- package/dist/commands/pricing.js +1 -1
- package/dist/commands/run.js +663 -271
- package/dist/commands/search.js +1 -1
- package/dist/commands/seller.js +5 -5
- package/dist/commands/skill.js +4 -4
- package/dist/index.js +1 -2
- package/dist/lib/errors.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/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/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
|
}
|