@orchagent/cli 0.3.92 → 0.3.94
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/publish.js
CHANGED
|
@@ -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`);
|
|
@@ -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`);
|
package/package.json
CHANGED