@orchagent/cli 0.3.46 → 0.3.47
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 +6 -6
- package/dist/commands/delete.js +1 -1
- package/dist/commands/env.js +2 -2
- package/dist/commands/install.js +1 -1
- package/dist/commands/list.js +1 -1
- package/dist/commands/publish.js +1 -1
- package/dist/commands/run.js +1 -1
- package/dist/commands/skill.js +3 -3
- package/dist/commands/update.js +2 -2
- package/dist/lib/doctor/checks/auth.js +2 -2
- package/dist/lib/doctor/checks/config.js +1 -1
- package/package.json +1 -2
package/dist/commands/call.js
CHANGED
|
@@ -3,21 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.registerCallCommand = registerCallCommand;
|
|
4
4
|
/**
|
|
5
5
|
* Deprecated: The 'call' command has been merged into 'run'.
|
|
6
|
-
* Cloud execution is now the default behavior of '
|
|
6
|
+
* Cloud execution is now the default behavior of 'orchagent run'.
|
|
7
7
|
* This file provides a thin alias that prints a deprecation notice and exits.
|
|
8
8
|
*/
|
|
9
9
|
function registerCallCommand(program) {
|
|
10
10
|
program
|
|
11
11
|
.command('call')
|
|
12
|
-
.description('Deprecated: use "
|
|
12
|
+
.description('Deprecated: use "orchagent run" instead')
|
|
13
13
|
.allowUnknownOption()
|
|
14
14
|
.allowExcessArguments()
|
|
15
15
|
.action(() => {
|
|
16
16
|
process.stderr.write(`The 'call' command has been merged into 'run'.\n\n` +
|
|
17
|
-
`Cloud execution is now the default behavior of '
|
|
18
|
-
`
|
|
19
|
-
`
|
|
20
|
-
`Replace '
|
|
17
|
+
`Cloud execution is now the default behavior of 'orchagent run':\n` +
|
|
18
|
+
` orchagent run <agent> --data '{...}' # runs on server (cloud)\n` +
|
|
19
|
+
` orchagent run <agent> --local --data '...' # runs locally\n\n` +
|
|
20
|
+
`Replace 'orchagent call' with 'orchagent run' in your commands.\n`);
|
|
21
21
|
process.exit(1);
|
|
22
22
|
});
|
|
23
23
|
}
|
package/dist/commands/delete.js
CHANGED
|
@@ -40,7 +40,7 @@ Examples:
|
|
|
40
40
|
const ref = (0, agent_ref_1.parseAgentRef)(agent);
|
|
41
41
|
const config = await (0, config_1.getResolvedConfig)();
|
|
42
42
|
if (!config.apiKey) {
|
|
43
|
-
throw new errors_1.CliError('Not logged in. Run `
|
|
43
|
+
throw new errors_1.CliError('Not logged in. Run `orchagent login` first.');
|
|
44
44
|
}
|
|
45
45
|
process.stdout.write('Finding agent...\n');
|
|
46
46
|
// Find the agent by name, filtering by org if provided
|
package/dist/commands/env.js
CHANGED
|
@@ -85,7 +85,7 @@ async function listEnvs(config, options) {
|
|
|
85
85
|
const result = await (0, api_1.listEnvironments)(config, workspaceId);
|
|
86
86
|
if (result.environments.length === 0) {
|
|
87
87
|
console.log(chalk_1.default.gray('No environments found.'));
|
|
88
|
-
console.log(chalk_1.default.gray('Use `
|
|
88
|
+
console.log(chalk_1.default.gray('Use `orchagent env create` to create one, or include a Dockerfile in your agent bundle.'));
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
91
|
const table = new cli_table3_1.default({
|
|
@@ -167,7 +167,7 @@ async function createEnv(config, options) {
|
|
|
167
167
|
console.log(chalk_1.default.green('Environment created, build started.'));
|
|
168
168
|
console.log(`Environment ID: ${result.environment.id}`);
|
|
169
169
|
console.log();
|
|
170
|
-
console.log(chalk_1.default.gray(`Check build status:
|
|
170
|
+
console.log(chalk_1.default.gray(`Check build status: orchagent env status ${result.environment.id}`));
|
|
171
171
|
}
|
|
172
172
|
await (0, analytics_1.track)('env_create', {
|
|
173
173
|
environment_id: result.environment.id,
|
package/dist/commands/install.js
CHANGED
|
@@ -161,7 +161,7 @@ function registerInstallCommand(program) {
|
|
|
161
161
|
.option('--json', 'Output result as JSON (for automation/tooling)')
|
|
162
162
|
.addHelpText('after', `
|
|
163
163
|
Note: Paid agents cannot be installed locally - they run on server only.
|
|
164
|
-
Use '
|
|
164
|
+
Use 'orchagent run' to execute paid agents.
|
|
165
165
|
`)
|
|
166
166
|
.action(async (agentArg, options) => {
|
|
167
167
|
const jsonMode = options.json === true;
|
package/dist/commands/list.js
CHANGED
|
@@ -68,7 +68,7 @@ function registerListCommand(program) {
|
|
|
68
68
|
}
|
|
69
69
|
// Warn about orphaned entries if any exist
|
|
70
70
|
if (orphaned.length > 0) {
|
|
71
|
-
process.stdout.write(`\nWarning: ${orphaned.length} tracked installation(s) have missing files. Run '
|
|
71
|
+
process.stdout.write(`\nWarning: ${orphaned.length} tracked installation(s) have missing files. Run 'orchagent list --verify' to clean up.\n`);
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
}
|
package/dist/commands/publish.js
CHANGED
|
@@ -657,7 +657,7 @@ function registerPublishCommand(program) {
|
|
|
657
657
|
if (uploadResult.environment_source === 'dockerfile_new') {
|
|
658
658
|
process.stdout.write(` ${chalk_1.default.cyan('Custom environment detected (Dockerfile)')}\n`);
|
|
659
659
|
process.stdout.write(` ${chalk_1.default.yellow('Environment building...')} Agent will be ready when build completes.\n`);
|
|
660
|
-
process.stdout.write(` ${chalk_1.default.gray(`Check status:
|
|
660
|
+
process.stdout.write(` ${chalk_1.default.gray(`Check status: orchagent env status ${uploadResult.environment_id}`)}\n`);
|
|
661
661
|
}
|
|
662
662
|
else if (uploadResult.environment_source === 'dockerfile_reused') {
|
|
663
663
|
process.stdout.write(` ${chalk_1.default.green('Custom environment (reusing existing build)')}\n`);
|
package/dist/commands/run.js
CHANGED
|
@@ -107,7 +107,7 @@ function warnIfLocalPathReference(jsonBody) {
|
|
|
107
107
|
process.stderr.write(`Warning: Your payload contains a local path reference ('${pathKey}').\n` +
|
|
108
108
|
`Remote agents cannot access your local filesystem. The path will be interpreted\n` +
|
|
109
109
|
`by the server, not your local machine.\n\n` +
|
|
110
|
-
`Tip: Use '
|
|
110
|
+
`Tip: Use 'orchagent run <agent> --local' to execute locally with filesystem access.\n\n`);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
catch {
|
package/dist/commands/skill.js
CHANGED
|
@@ -193,7 +193,7 @@ async function downloadSkillWithFallback(config, org, skill, version) {
|
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
throw new errors_1.CliError(`This skill is server-only and cannot be downloaded.\n\n` +
|
|
196
|
-
`Skills are loaded automatically during server execution via '
|
|
196
|
+
`Skills are loaded automatically during server execution via 'orchagent run'.`);
|
|
197
197
|
}
|
|
198
198
|
// Free skill or public metadata available - proceed with normal download
|
|
199
199
|
if (skillMeta) {
|
|
@@ -207,11 +207,11 @@ async function downloadSkillWithFallback(config, org, skill, version) {
|
|
|
207
207
|
if (payload?.error?.code === 'PAID_AGENT_SERVER_ONLY') {
|
|
208
208
|
const price = payload.error.price_per_call_cents || 0;
|
|
209
209
|
throw new errors_1.CliError(`This skill costs $${(price / 100).toFixed(2)}/call and runs on server only.\n\n` +
|
|
210
|
-
`Use:
|
|
210
|
+
`Use: orchagent run ${org}/${skill}@${version} --data '{...}'`);
|
|
211
211
|
}
|
|
212
212
|
if (payload?.error?.code === 'DOWNLOAD_DISABLED') {
|
|
213
213
|
throw new errors_1.CliError(`This skill is server-only and cannot be downloaded.\n\n` +
|
|
214
|
-
`Skills are loaded automatically during server execution via '
|
|
214
|
+
`Skills are loaded automatically during server execution via 'orchagent run'.`);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
throw err;
|
package/dist/commands/update.js
CHANGED
|
@@ -42,7 +42,7 @@ function registerUpdateCommand(program) {
|
|
|
42
42
|
const resolved = await (0, config_1.getResolvedConfig)();
|
|
43
43
|
const installed = await (0, installed_1.getInstalled)();
|
|
44
44
|
if (installed.length === 0) {
|
|
45
|
-
process.stdout.write('No agents installed. Use "
|
|
45
|
+
process.stdout.write('No agents installed. Use "orchagent install <agent>" to install agents.\n');
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
48
|
// Filter to specific agent if provided
|
|
@@ -195,7 +195,7 @@ function registerUpdateCommand(program) {
|
|
|
195
195
|
if (skippedMissing > 0) {
|
|
196
196
|
process.stdout.write(`${skippedMissing} agent(s) have missing files.\n`);
|
|
197
197
|
}
|
|
198
|
-
process.stdout.write('Run "
|
|
198
|
+
process.stdout.write('Run "orchagent update" without --check to apply updates.\n');
|
|
199
199
|
}
|
|
200
200
|
else {
|
|
201
201
|
process.stdout.write(`Applied ${updatesApplied} update(s).\n`);
|
|
@@ -35,7 +35,7 @@ async function checkApiKeyPresent() {
|
|
|
35
35
|
name: 'api_key_present',
|
|
36
36
|
status: 'error',
|
|
37
37
|
message: 'No API key configured',
|
|
38
|
-
fix: 'Run `
|
|
38
|
+
fix: 'Run `orchagent login` or set ORCHAGENT_API_KEY environment variable',
|
|
39
39
|
details: { configured: false },
|
|
40
40
|
};
|
|
41
41
|
}
|
|
@@ -75,7 +75,7 @@ async function checkApiKeyValid() {
|
|
|
75
75
|
name: 'api_key_valid',
|
|
76
76
|
status: 'error',
|
|
77
77
|
message: 'API key is invalid or expired',
|
|
78
|
-
fix: 'Run `
|
|
78
|
+
fix: 'Run `orchagent login` to get a new key',
|
|
79
79
|
details: { error: err.message, status: err.status },
|
|
80
80
|
};
|
|
81
81
|
}
|
|
@@ -31,7 +31,7 @@ async function checkConfigExists() {
|
|
|
31
31
|
name: 'config_exists',
|
|
32
32
|
status: 'warning',
|
|
33
33
|
message: 'Config file not found',
|
|
34
|
-
fix: 'Run `
|
|
34
|
+
fix: 'Run `orchagent login` to create config',
|
|
35
35
|
details: { path: CONFIG_PATH, exists: false },
|
|
36
36
|
};
|
|
37
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orchagent/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.47",
|
|
4
4
|
"description": "Command-line interface for the orchagent AI agent marketplace",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "orchagent <hello@orchagent.io>",
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
"node": ">=18"
|
|
26
26
|
},
|
|
27
27
|
"bin": {
|
|
28
|
-
"orchagent": "dist/index.js",
|
|
29
28
|
"orch": "dist/index.js"
|
|
30
29
|
},
|
|
31
30
|
"files": [
|