@orchagent/cli 0.3.96 → 0.3.97

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.
@@ -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 clerk_user_id
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.clerk_user_id}`);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orchagent/cli",
3
- "version": "0.3.96",
3
+ "version": "0.3.97",
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>",