@orchagent/cli 0.3.93 → 0.3.95

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.
@@ -1375,6 +1375,20 @@ function registerPublishCommand(program) {
1375
1375
  process.stdout.write(`Callable: ${callable ? 'enabled' : 'disabled'}\n`);
1376
1376
  process.stdout.write(`Providers: ${supportedProviders.join(', ')}\n`);
1377
1377
  process.stdout.write(`Visibility: private\n`);
1378
+ // Show orchestration mode for dependency orchestrators
1379
+ const orchMode = result.orchestration_mode;
1380
+ if (orchMode) {
1381
+ const modeColor = orchMode === 'strict' ? chalk_1.default.yellow : chalk_1.default.green;
1382
+ process.stdout.write(`Orchestration: ${modeColor(orchMode)}\n`);
1383
+ }
1384
+ // Show publish warnings from gateway
1385
+ const publishWarnings = result.warnings;
1386
+ if (publishWarnings?.length) {
1387
+ process.stdout.write(`\n`);
1388
+ for (const warning of publishWarnings) {
1389
+ process.stderr.write(chalk_1.default.yellow(`⚠ ${warning}\n`));
1390
+ }
1391
+ }
1378
1392
  // Show required secrets with setup instructions (F-18)
1379
1393
  if (manifest.required_secrets?.length) {
1380
1394
  process.stdout.write(`\nRequired secrets:\n`);
@@ -37,6 +37,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.localCommandForEntrypoint = localCommandForEntrypoint;
40
+ exports.canonicalAgentType = canonicalAgentType;
40
41
  exports.inferFileField = inferFileField;
41
42
  exports.validateInputSchema = validateInputSchema;
42
43
  exports.tryParseJsonObject = tryParseJsonObject;
@@ -97,7 +98,21 @@ function parseAgentRef(value) {
97
98
  }
98
99
  function canonicalAgentType(typeValue) {
99
100
  const normalized = (typeValue || 'agent').toLowerCase();
100
- return normalized === 'skill' ? 'skill' : 'agent';
101
+ // Handle legacy type names: agentic agent, code → tool
102
+ if (normalized === 'agentic')
103
+ return 'agent';
104
+ if (normalized === 'code')
105
+ return 'tool';
106
+ // Return the canonical type, defaulting to 'agent' for unrecognized types
107
+ if (normalized === 'prompt')
108
+ return 'prompt';
109
+ if (normalized === 'tool')
110
+ return 'tool';
111
+ if (normalized === 'agent')
112
+ return 'agent';
113
+ if (normalized === 'skill')
114
+ return 'skill';
115
+ return 'agent';
101
116
  }
102
117
  function resolveExecutionEngine(agentData) {
103
118
  if (agentData.execution_engine === 'direct_llm' || agentData.execution_engine === 'managed_loop' || agentData.execution_engine === 'code_runtime') {
@@ -255,6 +255,7 @@ function registerScheduleCommand(program) {
255
255
  .option('--disable', 'Disable the schedule')
256
256
  .option('--auto-update', 'Enable auto-update on publish')
257
257
  .option('--pin-version', 'Pin to current version (disable auto-update)')
258
+ .option('--agent-version <version>', 'Pin to specific agent version (e.g., v2)')
258
259
  .option('--alert-webhook <url>', 'Webhook URL to POST on failure (HTTPS required)')
259
260
  .option('--alert-on-failure-count <n>', 'Number of consecutive failures before alerting', parseInt)
260
261
  .option('--clear-alert-webhook', 'Remove the alert webhook URL')
@@ -270,6 +271,9 @@ function registerScheduleCommand(program) {
270
271
  if (options.autoUpdate && options.pinVersion) {
271
272
  throw new errors_1.CliError('Cannot use both --auto-update and --pin-version');
272
273
  }
274
+ if (options.agentVersion && options.autoUpdate) {
275
+ throw new errors_1.CliError('Cannot use both --agent-version and --auto-update (pinning a version disables auto-update)');
276
+ }
273
277
  if (options.alertWebhook && options.clearAlertWebhook) {
274
278
  throw new errors_1.CliError('Cannot use both --alert-webhook and --clear-alert-webhook');
275
279
  }
@@ -289,6 +293,8 @@ function registerScheduleCommand(program) {
289
293
  updates.auto_update = true;
290
294
  if (options.pinVersion)
291
295
  updates.auto_update = false;
296
+ if (options.agentVersion)
297
+ updates.agent_version = options.agentVersion;
292
298
  if (options.alertWebhook)
293
299
  updates.alert_webhook_url = options.alertWebhook;
294
300
  if (options.alertOnFailureCount)
@@ -313,6 +319,7 @@ function registerScheduleCommand(program) {
313
319
  const s = result.schedule;
314
320
  process.stdout.write(chalk_1.default.green('\u2713') + ` Schedule updated\n\n`);
315
321
  process.stdout.write(` ID: ${s.id}\n`);
322
+ process.stdout.write(` Agent: ${s.agent_name}@${s.agent_version}${s.auto_update === false ? chalk_1.default.yellow(' [pinned]') : ''}\n`);
316
323
  process.stdout.write(` Enabled: ${s.enabled ? chalk_1.default.green('yes') : chalk_1.default.red('no')}\n`);
317
324
  if (s.cron_expression) {
318
325
  process.stdout.write(` Cron: ${s.cron_expression}\n`);
@@ -172,6 +172,10 @@ function printHumanOutput(results, summary, verbose) {
172
172
  summaryParts.push(chalk_1.default.red(`${summary.errors} error${summary.errors > 1 ? 's' : ''}`));
173
173
  }
174
174
  process.stdout.write(`Summary: ${summaryParts.join(', ')}\n`);
175
+ // Hint about verbose flag if not already verbose
176
+ if (!verbose) {
177
+ process.stdout.write(chalk_1.default.dim('\nTip: Run with --verbose for detailed information about each check.\n'));
178
+ }
175
179
  }
176
180
  /**
177
181
  * Format results as JSON output.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orchagent/cli",
3
- "version": "0.3.93",
3
+ "version": "0.3.95",
4
4
  "description": "Command-line interface for orchagent — deploy and run AI agents for your team",
5
5
  "license": "MIT",
6
6
  "author": "orchagent <hello@orchagent.io>",