@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.
@@ -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 'orch run'.
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 "orch run" instead')
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 'orch run':\n` +
18
- ` orch run <agent> --data '{...}' # runs on server (cloud)\n` +
19
- ` orch run <agent> --local --data '...' # runs locally\n\n` +
20
- `Replace 'orch call' with 'orch run' in your commands.\n`);
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
  }
@@ -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 `orch login` first.');
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
@@ -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 `orch env create` to create one, or include a Dockerfile in your agent bundle.'));
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: orch env status ${result.environment.id}`));
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,
@@ -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 'orch run' to execute paid agents.
164
+ Use 'orchagent run' to execute paid agents.
165
165
  `)
166
166
  .action(async (agentArg, options) => {
167
167
  const jsonMode = options.json === true;
@@ -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 'orch list --verify' to clean up.\n`);
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
  }
@@ -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: orch env status ${uploadResult.environment_id}`)}\n`);
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`);
@@ -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 'orch run <agent> --local' to execute locally with filesystem access.\n\n`);
110
+ `Tip: Use 'orchagent run <agent> --local' to execute locally with filesystem access.\n\n`);
111
111
  }
112
112
  }
113
113
  catch {
@@ -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 'orch run'.`);
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: orch run ${org}/${skill}@${version} --data '{...}'`);
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 'orch run'.`);
214
+ `Skills are loaded automatically during server execution via 'orchagent run'.`);
215
215
  }
216
216
  }
217
217
  throw err;
@@ -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 "orch install <agent>" to install agents.\n');
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 "orch update" without --check to apply updates.\n');
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 `orch login` or set ORCHAGENT_API_KEY environment variable',
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 `orch login` to get a new key',
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 `orch login` to create config',
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.46",
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": [