@jclvsh/dropspace 2.34.0 → 2.35.0

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/README.md CHANGED
@@ -400,7 +400,7 @@ Autopilot is available on pro and premium plans. `configure_autopilot` takes `me
400
400
  | Tool | Description |
401
401
  | ------------------------------- | ---------------------------------------------------------------------------------------------------- |
402
402
  | `get_profile` | Get your profile (stdio only) |
403
- | `update_profile` | Update your `full_name` and/or `avatar_url` (stdio only) |
403
+ | `update_profile` | Update your display name, `full_name` (stdio only) |
404
404
  | `create_billing_portal_session` | A URL to manage your subscription; pre-authenticated for subscribers, so don't share it (stdio only) |
405
405
 
406
406
  CLI: `dropspace profile get|update`, `dropspace billing portal`.
@@ -15,19 +15,11 @@ export function registerAccountCommands(program, client) {
15
15
  });
16
16
  profile
17
17
  .command("update")
18
- .description("update your name and/or avatar")
19
- .option("-n, --name <name>", "display name (1-120 characters)")
20
- .option("--avatar <url>", "public URL of the avatar image")
18
+ .description("update your display name")
19
+ .requiredOption("-n, --name <name>", "display name (1-120 characters)")
21
20
  .action(async (opts) => {
22
21
  try {
23
- const body = {};
24
- if (opts.name)
25
- body.full_name = opts.name;
26
- if (opts.avatar)
27
- body.avatar_url = opts.avatar;
28
- if (Object.keys(body).length === 0)
29
- throw new Error("provide --name or --avatar");
30
- const result = await client.patch("/profile", body);
22
+ const result = await client.patch("/profile", { full_name: opts.name });
31
23
  formatOutput(result, getFormat(program.opts()));
32
24
  }
33
25
  catch (error) {
@@ -13,17 +13,11 @@ export function registerAccountTools(server, client) {
13
13
  return fail(error);
14
14
  }
15
15
  });
16
- server.tool("update_profile", "update the authenticated user's full_name and/or avatar_url (pass at least one). requires the write scope.", {
17
- full_name: z.string().min(1).max(120).optional().describe("display name (1-120 characters)"),
18
- avatar_url: z.string().url().optional().describe("public URL of the avatar image"),
19
- }, async ({ full_name, avatar_url }) => {
16
+ server.tool("update_profile", "update the authenticated user's display name (full_name). requires the write scope.", {
17
+ full_name: z.string().min(1).max(120).describe("display name (1-120 characters)"),
18
+ }, async ({ full_name }) => {
20
19
  try {
21
- const body = {};
22
- if (full_name !== undefined)
23
- body.full_name = full_name;
24
- if (avatar_url !== undefined)
25
- body.avatar_url = avatar_url;
26
- return text(await client.patch("/profile", body));
20
+ return text(await client.patch("/profile", { full_name }));
27
21
  }
28
22
  catch (error) {
29
23
  return fail(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jclvsh/dropspace",
3
- "version": "2.34.0",
3
+ "version": "2.35.0",
4
4
  "description": "MCP server and CLI for the Dropspace API",
5
5
  "repository": {
6
6
  "type": "git",