@orchagent/cli 0.2.16 → 0.2.17
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 +11 -8
- package/package.json +1 -1
package/dist/commands/publish.js
CHANGED
|
@@ -65,11 +65,14 @@ function registerPublishCommand(program) {
|
|
|
65
65
|
.command('publish')
|
|
66
66
|
.description('Publish agent or skill from local files')
|
|
67
67
|
.option('--url <url>', 'Agent URL (for code-based agents)')
|
|
68
|
-
.option('--public', 'Make agent public
|
|
69
|
-
.option('--private', 'Make agent private')
|
|
68
|
+
.option('--public', 'Make agent public')
|
|
69
|
+
.option('--private', 'Make agent private (deprecated: now the default)')
|
|
70
70
|
.option('--profile <name>', 'Use API key from named profile')
|
|
71
71
|
.option('--dry-run', 'Show what would be published without making changes')
|
|
72
72
|
.action(async (options) => {
|
|
73
|
+
if (options.private) {
|
|
74
|
+
process.stderr.write('Warning: --private is deprecated (private is now the default). You can safely remove it.\n');
|
|
75
|
+
}
|
|
73
76
|
const config = await (0, config_1.getResolvedConfig)({}, options.profile);
|
|
74
77
|
const cwd = process.cwd();
|
|
75
78
|
// Check for SKILL.md first (skills take precedence)
|
|
@@ -94,7 +97,7 @@ function registerPublishCommand(program) {
|
|
|
94
97
|
process.stderr.write(` Name: ${skillData.frontmatter.name}\n`);
|
|
95
98
|
process.stderr.write(` Type: skill\n`);
|
|
96
99
|
process.stderr.write(` Version: ${versionInfo}\n`);
|
|
97
|
-
process.stderr.write(` Visibility: ${options.
|
|
100
|
+
process.stderr.write(` Visibility: ${options.public ? 'public' : 'private'}\n`);
|
|
98
101
|
process.stderr.write(` Providers: any\n`);
|
|
99
102
|
process.stderr.write(`\nWould publish: ${preview.org_slug}/${skillData.frontmatter.name}@${preview.next_version}\n`);
|
|
100
103
|
process.stderr.write(`API endpoint: POST ${config.apiUrl}/${preview.org_slug}/${skillData.frontmatter.name}/${preview.next_version}/run\n\n`);
|
|
@@ -106,13 +109,13 @@ function registerPublishCommand(program) {
|
|
|
106
109
|
type: 'skill',
|
|
107
110
|
description: skillData.frontmatter.description,
|
|
108
111
|
prompt: skillData.body,
|
|
109
|
-
is_public: options.
|
|
112
|
+
is_public: options.public ? true : false,
|
|
110
113
|
supported_providers: ['any'],
|
|
111
114
|
});
|
|
112
115
|
const skillVersion = skillResult.agent?.version || 'v1';
|
|
113
116
|
await (0, analytics_1.track)('cli_publish', { agent_type: 'skill' });
|
|
114
117
|
process.stdout.write(`\nPublished skill: ${org.slug}/${skillData.frontmatter.name}@${skillVersion}\n`);
|
|
115
|
-
process.stdout.write(`Public: ${options.
|
|
118
|
+
process.stdout.write(`Public: ${options.public ? 'yes' : 'no'}\n`);
|
|
116
119
|
return;
|
|
117
120
|
}
|
|
118
121
|
// Read manifest
|
|
@@ -237,7 +240,7 @@ function registerPublishCommand(program) {
|
|
|
237
240
|
process.stderr.write(` Name: ${manifest.name}\n`);
|
|
238
241
|
process.stderr.write(` Type: ${manifest.type}${shouldUploadBundle ? ' (hosted)' : ''}\n`);
|
|
239
242
|
process.stderr.write(` Version: ${versionInfo}\n`);
|
|
240
|
-
process.stderr.write(` Visibility: ${options.
|
|
243
|
+
process.stderr.write(` Visibility: ${options.public ? 'public' : 'private'}\n`);
|
|
241
244
|
process.stderr.write(` Providers: ${supportedProviders.join(', ')}\n`);
|
|
242
245
|
process.stderr.write(`\nWould publish: ${preview.org_slug}/${manifest.name}@${preview.next_version}\n`);
|
|
243
246
|
if (shouldUploadBundle) {
|
|
@@ -262,7 +265,7 @@ function registerPublishCommand(program) {
|
|
|
262
265
|
input_schema: inputSchema,
|
|
263
266
|
output_schema: outputSchema,
|
|
264
267
|
tags: manifest.tags,
|
|
265
|
-
is_public: options.
|
|
268
|
+
is_public: options.public ? true : false,
|
|
266
269
|
supported_providers: supportedProviders,
|
|
267
270
|
default_models: manifest.default_models,
|
|
268
271
|
// Local run fields for code agents
|
|
@@ -307,7 +310,7 @@ function registerPublishCommand(program) {
|
|
|
307
310
|
process.stdout.write(`\nPublished agent: ${org.slug}/${manifest.name}@${assignedVersion}\n`);
|
|
308
311
|
process.stdout.write(`Type: ${manifest.type}${shouldUploadBundle ? ' (hosted)' : ''}\n`);
|
|
309
312
|
process.stdout.write(`Providers: ${supportedProviders.join(', ')}\n`);
|
|
310
|
-
process.stdout.write(`Public: ${options.
|
|
313
|
+
process.stdout.write(`Public: ${options.public ? 'yes' : 'no'}\n`);
|
|
311
314
|
if (result.service_key) {
|
|
312
315
|
process.stdout.write(`\nService key (save this - shown only once):\n`);
|
|
313
316
|
process.stdout.write(` ${result.service_key}\n`);
|