@orchagent/cli 0.3.96 → 0.3.98
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
|
@@ -506,8 +506,8 @@ async function batchPublish(rootDir, options) {
|
|
|
506
506
|
forwardArgs.push('--skills-locked');
|
|
507
507
|
if (options.docker)
|
|
508
508
|
forwardArgs.push('--docker');
|
|
509
|
-
if (options.localDownload)
|
|
510
|
-
forwardArgs.push('--local-download');
|
|
509
|
+
if (options.localDownload === false)
|
|
510
|
+
forwardArgs.push('--no-local-download');
|
|
511
511
|
if (options.requiredSecrets === false)
|
|
512
512
|
forwardArgs.push('--no-required-secrets');
|
|
513
513
|
const results = [];
|
|
@@ -583,7 +583,7 @@ function registerPublishCommand(program) {
|
|
|
583
583
|
.option('--skills <skills>', 'Default skills (comma-separated, e.g., org/skill@v1,org/other@v1)')
|
|
584
584
|
.option('--skills-locked', 'Lock default skills (callers cannot override via headers)')
|
|
585
585
|
.option('--docker', 'Include Dockerfile for custom environment (builds E2B template)')
|
|
586
|
-
.option('--local-download', '
|
|
586
|
+
.option('--no-local-download', 'Prevent users from downloading and running locally (default: allowed)')
|
|
587
587
|
.option('--no-required-secrets', '(deprecated) No longer needed — required_secrets defaults to []')
|
|
588
588
|
.option('--all', 'Publish all agents in subdirectories (dependency order)')
|
|
589
589
|
.action(async (options) => {
|
|
@@ -688,7 +688,7 @@ function registerPublishCommand(program) {
|
|
|
688
688
|
skills_locked: options.skillsLocked || undefined,
|
|
689
689
|
// SC-05: Include all skill files for UI preview
|
|
690
690
|
skill_files: hasMultipleFiles ? skillFiles : undefined,
|
|
691
|
-
allow_local_download: options.localDownload
|
|
691
|
+
allow_local_download: options.localDownload !== false,
|
|
692
692
|
}, workspaceId);
|
|
693
693
|
const skillVersion = skillResult.agent?.version || 'v1';
|
|
694
694
|
const skillAgentId = skillResult.agent?.id;
|
|
@@ -1124,7 +1124,7 @@ function registerPublishCommand(program) {
|
|
|
1124
1124
|
required_secrets: manifest.required_secrets,
|
|
1125
1125
|
default_skills: skillsFromFlag || manifest.default_skills,
|
|
1126
1126
|
skills_locked: manifest.skills_locked || options.skillsLocked || undefined,
|
|
1127
|
-
allow_local_download: options.localDownload
|
|
1127
|
+
allow_local_download: options.localDownload !== false,
|
|
1128
1128
|
environment: manifest.environment,
|
|
1129
1129
|
}, workspaceId);
|
|
1130
1130
|
if (validation.warnings?.length) {
|
|
@@ -1225,7 +1225,7 @@ function registerPublishCommand(program) {
|
|
|
1225
1225
|
required_secrets: manifest.required_secrets,
|
|
1226
1226
|
default_skills: skillsFromFlag || manifest.default_skills,
|
|
1227
1227
|
skills_locked: manifest.skills_locked || options.skillsLocked || undefined,
|
|
1228
|
-
allow_local_download: options.localDownload
|
|
1228
|
+
allow_local_download: options.localDownload !== false,
|
|
1229
1229
|
// Environment pinning
|
|
1230
1230
|
environment: manifest.environment,
|
|
1231
1231
|
}, workspaceId);
|
|
@@ -165,7 +165,7 @@ async function inviteMember(config, email, options) {
|
|
|
165
165
|
}
|
|
166
166
|
async function leaveWorkspace(config, workspaceSlug) {
|
|
167
167
|
const workspaceId = await resolveWorkspaceId(config, workspaceSlug);
|
|
168
|
-
// Get current user's email and members list to find our
|
|
168
|
+
// Get current user's email and members list to find our user_id
|
|
169
169
|
const [userResponse, membersResponse] = await Promise.all([
|
|
170
170
|
(0, api_1.request)(config, 'GET', '/users/me'),
|
|
171
171
|
(0, api_1.request)(config, 'GET', `/workspaces/${workspaceId}/members`),
|
|
@@ -175,7 +175,7 @@ async function leaveWorkspace(config, workspaceSlug) {
|
|
|
175
175
|
if (!currentMember) {
|
|
176
176
|
throw new errors_1.CliError('Could not find your membership in this workspace.');
|
|
177
177
|
}
|
|
178
|
-
await (0, api_1.request)(config, 'DELETE', `/workspaces/${workspaceId}/members/${currentMember.
|
|
178
|
+
await (0, api_1.request)(config, 'DELETE', `/workspaces/${workspaceId}/members/${currentMember.user_id}`);
|
|
179
179
|
await (0, analytics_1.track)('cli_workspace_leave');
|
|
180
180
|
// Clear workspace from config if it was the current one
|
|
181
181
|
const configFile = await (0, config_1.loadConfig)();
|
package/package.json
CHANGED