mcpick 0.0.25 → 0.0.26

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/{add-7mhUpbrt.js → add-DwUPxD5U.js} +4 -5
  3. package/dist/{add-json-BMM2L4hv.js → add-json-Dk3C8QSR.js} +4 -4
  4. package/dist/atomic-write-9pfXia-x.js +22 -0
  5. package/dist/{backup-C-YJmgps.js → backup-Ber7st-_.js} +4 -5
  6. package/dist/{cache-BOYZhUF6.js → cache-BVNAOxqk.js} +3 -3
  7. package/dist/{cli-sOeHH4CK.js → cli-Dfein2li.js} +22 -22
  8. package/dist/{clients-D5KAuQ5U.js → clients-C1mWlnsn.js} +3 -3
  9. package/dist/{clone-BRJA55js.js → clone-BE904ik7.js} +3 -6
  10. package/dist/{dev-B-WlQSqY.js → dev-BW_2JDPM.js} +5 -6
  11. package/dist/{disable-Br0aVG3u.js → disable-CVwuJLhT.js} +4 -4
  12. package/dist/{enable-DUolKCEH.js → enable-BEi8TUd1.js} +4 -4
  13. package/dist/{get-D-6Cl_CO.js → get-eDOm6sRK.js} +3 -3
  14. package/dist/{hooks-BKPmZViU.js → hooks-DzGBYYId.js} +4 -3
  15. package/dist/index.js +306 -265
  16. package/dist/{list-DMcaHDfM.js → list-CvpW_mNZ.js} +3 -5
  17. package/dist/{marketplace-DTW7Ys8k.js → marketplace-BKGJ3UGr.js} +4 -4
  18. package/dist/{mutation-ukRPw3qM.js → mutation-BBMIFB8H.js} +2 -2
  19. package/dist/{output-BS1TMOWt.js → output-DGPi2IWN.js} +2 -2
  20. package/dist/{plugin-cache-Dw1I2YuO.js → plugin-cache-Dj-lS1mA.js} +169 -21
  21. package/dist/{plugins-BzLD4og0.js → plugins-elIQYM38.js} +4 -4
  22. package/dist/{profile-CmIWUJH_.js → profile-NVbTnJKI.js} +4 -4
  23. package/dist/{reload-Di28s_rY.js → reload-BkVtWaf0.js} +2 -2
  24. package/dist/{remove-B32EuYRC.js → remove-BC2vomi_.js} +4 -4
  25. package/dist/{reset-project-choices-DX4TnZ2i.js → reset-project-choices-DhJsWQx2.js} +3 -3
  26. package/dist/{restore-ByS4xi0y.js → restore-CeYSOFt8.js} +3 -5
  27. package/dist/{rollback-DdDJrA8y.js → rollback-g-WX6b3o.js} +3 -3
  28. package/dist/safe-apply-B5flt8QC.js +185 -0
  29. package/dist/{skills-pvyQ17XU.js → skills-zuQ5kCL1.js} +2 -2
  30. package/package.json +6 -6
  31. package/pnpm-workspace.yaml +1 -0
  32. package/dist/config-Bzh374VP.js +0 -167
  33. package/dist/paths-BPISiJi4.js +0 -124
  34. package/dist/redact-wBMtzbno.js +0 -88
  35. package/dist/rolldown-runtime-CiIaOW0V.js +0 -13
  36. package/dist/validation-CfPAjPJ5.js +0 -63
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # mcpick
2
2
 
3
+ ## 0.0.26
4
+
5
+ ### Patch Changes
6
+
7
+ - a991d53: Fix OpenCode MCP config serialization to match schema for
8
+ local, remote, environment, and profile writes.
9
+
3
10
  ## 0.0.25
4
11
 
5
12
  ### Patch Changes
@@ -1,7 +1,6 @@
1
- import { n as validate_mcp_server } from "./validation-CfPAjPJ5.js";
2
- import { E as add_server_to_registry, L as resolve_client_location, M as add_client_server, P as get_client_adapter, p as add_mcp_via_cli } from "./index.js";
3
- import { n as print_mutation_details, t as claude_mutation_context } from "./mutation-ukRPw3qM.js";
4
- import { n as output, t as error } from "./output-BS1TMOWt.js";
1
+ import { $ as validate_mcp_server, D as add_server_to_registry, F as get_client_adapter, N as add_client_server, R as resolve_client_location, c as add_mcp_via_cli } from "./index.js";
2
+ import { n as print_mutation_details, t as claude_mutation_context } from "./mutation-BBMIFB8H.js";
3
+ import { n as output, t as error } from "./output-DGPi2IWN.js";
5
4
  import { defineCommand } from "citty";
6
5
  //#region src/cli/commands/add.ts
7
6
  var add_default = defineCommand({
@@ -168,4 +167,4 @@ function parse_key_value_pairs(input) {
168
167
  //#endregion
169
168
  export { add_default as default };
170
169
 
171
- //# sourceMappingURL=add-7mhUpbrt.js.map
170
+ //# sourceMappingURL=add-DwUPxD5U.js.map
@@ -1,6 +1,6 @@
1
- import { L as resolve_client_location, N as add_client_server_config, P as get_client_adapter, y as mcp_add_json_via_cli } from "./index.js";
2
- import { n as print_mutation_details, t as claude_mutation_context } from "./mutation-ukRPw3qM.js";
3
- import { n as output, t as error } from "./output-BS1TMOWt.js";
1
+ import { F as get_client_adapter, P as add_client_server_config, R as resolve_client_location, m as mcp_add_json_via_cli } from "./index.js";
2
+ import { n as print_mutation_details, t as claude_mutation_context } from "./mutation-BBMIFB8H.js";
3
+ import { n as output, t as error } from "./output-DGPi2IWN.js";
4
4
  import { defineCommand } from "citty";
5
5
  //#region src/cli/commands/add-json.ts
6
6
  var add_json_default = defineCommand({
@@ -96,4 +96,4 @@ async function add_json_to_client(client, name, config, scope, location_path, js
96
96
  //#endregion
97
97
  export { add_json_default as default };
98
98
 
99
- //# sourceMappingURL=add-json-BMM2L4hv.js.map
99
+ //# sourceMappingURL=add-json-Dk3C8QSR.js.map
@@ -0,0 +1,22 @@
1
+ import { r as safe_json_write } from "./safe-apply-B5flt8QC.js";
2
+ import { readFile } from "node:fs/promises";
3
+ //#region src/utils/atomic-write.ts
4
+ /**
5
+ * Atomically write a JSON file with fresh-read merging.
6
+ *
7
+ * 1. Re-reads the file right before writing to pick up concurrent changes
8
+ * 2. Applies the merge function to the freshest data
9
+ * 3. Writes to a temp file, then renames (atomic on same filesystem)
10
+ */
11
+ async function atomic_json_write(file_path, merge) {
12
+ let existing = {};
13
+ try {
14
+ const content = await readFile(file_path, "utf-8");
15
+ existing = JSON.parse(content);
16
+ } catch {}
17
+ await safe_json_write(file_path, merge(existing), 2);
18
+ }
19
+ //#endregion
20
+ export { atomic_json_write as t };
21
+
22
+ //# sourceMappingURL=atomic-write-9pfXia-x.js.map
@@ -1,7 +1,6 @@
1
- import { m as get_plugin_backup_filename, n as get_backup_filename, r as get_backups_dir, t as ensure_directory_exists } from "./paths-BPISiJi4.js";
2
- import { o as read_claude_config } from "./config-Bzh374VP.js";
3
- import { U as read_claude_settings } from "./index.js";
4
- import { n as output } from "./output-BS1TMOWt.js";
1
+ import { _ as get_plugin_backup_filename, a as get_backup_filename, i as ensure_directory_exists, o as get_backups_dir } from "./safe-apply-B5flt8QC.js";
2
+ import { W as read_claude_settings, X as read_claude_config } from "./index.js";
3
+ import { n as output } from "./output-DGPi2IWN.js";
5
4
  import { readdir, unlink, writeFile } from "node:fs/promises";
6
5
  import { join } from "node:path";
7
6
  import { defineCommand } from "citty";
@@ -61,4 +60,4 @@ var backup_default = defineCommand({
61
60
  //#endregion
62
61
  export { backup_default as default };
63
62
 
64
- //# sourceMappingURL=backup-C-YJmgps.js.map
63
+ //# sourceMappingURL=backup-Ber7st-_.js.map
@@ -1,5 +1,5 @@
1
- import { a as list_linked_plugins, c as read_installed_plugins, d as refresh_all_marketplaces, f as scan_all_cache_keys, i as link_local_plugin, n as clear_plugin_caches, p as unlink_local_plugin, r as get_cached_plugins_info, t as clean_orphaned_versions } from "./plugin-cache-Dw1I2YuO.js";
2
- import { n as output, t as error } from "./output-BS1TMOWt.js";
1
+ import { a as list_linked_plugins, d as scan_all_cache_keys, f as unlink_local_plugin, i as link_local_plugin, n as clear_plugin_caches, r as get_cached_plugins_info, s as read_installed_plugins, t as clean_orphaned_versions, u as refresh_all_marketplaces } from "./plugin-cache-Dj-lS1mA.js";
2
+ import { n as output, t as error } from "./output-DGPi2IWN.js";
3
3
  import { defineCommand } from "citty";
4
4
  var cache_default = defineCommand({
5
5
  meta: {
@@ -224,4 +224,4 @@ var cache_default = defineCommand({
224
224
  //#endregion
225
225
  export { cache_default as default };
226
226
 
227
- //# sourceMappingURL=cache-BOYZhUF6.js.map
227
+ //# sourceMappingURL=cache-BVNAOxqk.js.map
@@ -6,27 +6,27 @@ const main = defineCommand({
6
6
  description: "Vendor-neutral MCP configuration manager with first-class Claude Code support"
7
7
  },
8
8
  subCommands: {
9
- list: () => import("./list-DMcaHDfM.js").then((m) => m.default),
10
- enable: () => import("./enable-DUolKCEH.js").then((m) => m.default),
11
- disable: () => import("./disable-Br0aVG3u.js").then((m) => m.default),
12
- clients: () => import("./clients-D5KAuQ5U.js").then((m) => m.default),
13
- remove: () => import("./remove-B32EuYRC.js").then((m) => m.default),
14
- add: () => import("./add-7mhUpbrt.js").then((m) => m.default),
15
- "add-json": () => import("./add-json-BMM2L4hv.js").then((m) => m.default),
16
- clone: () => import("./clone-BRJA55js.js").then((m) => m.default),
17
- get: () => import("./get-D-6Cl_CO.js").then((m) => m.default),
18
- "reset-project-choices": () => import("./reset-project-choices-DX4TnZ2i.js").then((m) => m.default),
19
- backup: () => import("./backup-C-YJmgps.js").then((m) => m.default),
20
- restore: () => import("./restore-ByS4xi0y.js").then((m) => m.default),
21
- profile: () => import("./profile-CmIWUJH_.js").then((m) => m.default),
22
- skills: () => import("./skills-pvyQ17XU.js").then((m) => m.default),
23
- plugins: () => import("./plugins-BzLD4og0.js").then((m) => m.default),
24
- hooks: () => import("./hooks-BKPmZViU.js").then((m) => m.default),
25
- cache: () => import("./cache-BOYZhUF6.js").then((m) => m.default),
26
- dev: () => import("./dev-B-WlQSqY.js").then((m) => m.default),
27
- marketplace: () => import("./marketplace-DTW7Ys8k.js").then((m) => m.default),
28
- reload: () => import("./reload-Di28s_rY.js").then((m) => m.default),
29
- rollback: () => import("./rollback-DdDJrA8y.js").then((m) => m.default)
9
+ list: () => import("./list-CvpW_mNZ.js").then((m) => m.default),
10
+ enable: () => import("./enable-BEi8TUd1.js").then((m) => m.default),
11
+ disable: () => import("./disable-CVwuJLhT.js").then((m) => m.default),
12
+ clients: () => import("./clients-C1mWlnsn.js").then((m) => m.default),
13
+ remove: () => import("./remove-BC2vomi_.js").then((m) => m.default),
14
+ add: () => import("./add-DwUPxD5U.js").then((m) => m.default),
15
+ "add-json": () => import("./add-json-Dk3C8QSR.js").then((m) => m.default),
16
+ clone: () => import("./clone-BE904ik7.js").then((m) => m.default),
17
+ get: () => import("./get-eDOm6sRK.js").then((m) => m.default),
18
+ "reset-project-choices": () => import("./reset-project-choices-DhJsWQx2.js").then((m) => m.default),
19
+ backup: () => import("./backup-Ber7st-_.js").then((m) => m.default),
20
+ restore: () => import("./restore-CeYSOFt8.js").then((m) => m.default),
21
+ profile: () => import("./profile-NVbTnJKI.js").then((m) => m.default),
22
+ skills: () => import("./skills-zuQ5kCL1.js").then((m) => m.default),
23
+ plugins: () => import("./plugins-elIQYM38.js").then((m) => m.default),
24
+ hooks: () => import("./hooks-DzGBYYId.js").then((m) => m.default),
25
+ cache: () => import("./cache-BVNAOxqk.js").then((m) => m.default),
26
+ dev: () => import("./dev-BW_2JDPM.js").then((m) => m.default),
27
+ marketplace: () => import("./marketplace-BKGJ3UGr.js").then((m) => m.default),
28
+ reload: () => import("./reload-BkVtWaf0.js").then((m) => m.default),
29
+ rollback: () => import("./rollback-g-WX6b3o.js").then((m) => m.default)
30
30
  }
31
31
  });
32
32
  /**
@@ -109,4 +109,4 @@ const run = () => runMain(main, { showUsage: show_usage_with_examples });
109
109
  //#endregion
110
110
  export { run };
111
111
 
112
- //# sourceMappingURL=cli-sOeHH4CK.js.map
112
+ //# sourceMappingURL=cli-Dfein2li.js.map
@@ -1,5 +1,5 @@
1
- import { F as list_client_locations } from "./index.js";
2
- import { n as output } from "./output-BS1TMOWt.js";
1
+ import { I as list_client_locations } from "./index.js";
2
+ import { n as output } from "./output-DGPi2IWN.js";
3
3
  import { defineCommand } from "citty";
4
4
  //#region src/cli/commands/clients.ts
5
5
  var clients_default = defineCommand({
@@ -27,4 +27,4 @@ var clients_default = defineCommand({
27
27
  //#endregion
28
28
  export { clients_default as default };
29
29
 
30
- //# sourceMappingURL=clients-D5KAuQ5U.js.map
30
+ //# sourceMappingURL=clients-C1mWlnsn.js.map
@@ -1,8 +1,5 @@
1
- import { n as validate_mcp_server } from "./validation-CfPAjPJ5.js";
2
- import { n as detect_server_scope, r as find_server_in_scope } from "./config-Bzh374VP.js";
3
- import { n as redact_server } from "./redact-wBMtzbno.js";
4
- import { E as add_server_to_registry, p as add_mcp_via_cli } from "./index.js";
5
- import { n as output, t as error } from "./output-BS1TMOWt.js";
1
+ import { $ as validate_mcp_server, D as add_server_to_registry, J as find_server_in_scope, S as redact_server, c as add_mcp_via_cli, q as detect_server_scope } from "./index.js";
2
+ import { n as output, t as error } from "./output-DGPi2IWN.js";
6
3
  import { defineCommand } from "citty";
7
4
  //#region src/cli/commands/clone.ts
8
5
  var clone_default = defineCommand({
@@ -84,4 +81,4 @@ var clone_default = defineCommand({
84
81
  //#endregion
85
82
  export { clone_default as default };
86
83
 
87
- //# sourceMappingURL=clone-BRJA55js.js.map
84
+ //# sourceMappingURL=clone-BE904ik7.js.map
@@ -1,8 +1,7 @@
1
- import { i as get_claude_config_path, o as get_current_project_path, s as get_dev_overrides_path, v as get_project_mcp_json_path } from "./paths-BPISiJi4.js";
2
- import { n as detect_server_scope, r as find_server_in_scope } from "./config-Bzh374VP.js";
3
- import { r as redact_server_base } from "./redact-wBMtzbno.js";
4
- import { K as atomic_json_write } from "./index.js";
5
- import { n as output, t as error } from "./output-BS1TMOWt.js";
1
+ import { l as get_current_project_path, s as get_claude_config_path, u as get_dev_overrides_path, x as get_project_mcp_json_path } from "./safe-apply-B5flt8QC.js";
2
+ import { t as atomic_json_write } from "./atomic-write-9pfXia-x.js";
3
+ import { C as redact_server_base, J as find_server_in_scope, q as detect_server_scope } from "./index.js";
4
+ import { n as output, t as error } from "./output-DGPi2IWN.js";
6
5
  import { readFile } from "node:fs/promises";
7
6
  import { defineCommand } from "citty";
8
7
  //#region src/core/dev-override.ts
@@ -262,4 +261,4 @@ var dev_default = defineCommand({
262
261
  //#endregion
263
262
  export { dev_default as default };
264
263
 
265
- //# sourceMappingURL=dev-B-WlQSqY.js.map
264
+ //# sourceMappingURL=dev-BW_2JDPM.js.map
@@ -1,6 +1,6 @@
1
- import { D as get_all_available_servers, L as resolve_client_location, P as get_client_adapter, R as set_client_server_enabled, S as remove_mcp_via_cli } from "./index.js";
2
- import { n as print_mutation_details, t as claude_mutation_context } from "./mutation-ukRPw3qM.js";
3
- import { n as output, t as error } from "./output-BS1TMOWt.js";
1
+ import { F as get_client_adapter, O as get_all_available_servers, R as resolve_client_location, _ as remove_mcp_via_cli, z as set_client_server_enabled } from "./index.js";
2
+ import { n as print_mutation_details, t as claude_mutation_context } from "./mutation-BBMIFB8H.js";
3
+ import { n as output, t as error } from "./output-DGPi2IWN.js";
4
4
  import { defineCommand } from "citty";
5
5
  //#region src/cli/commands/disable.ts
6
6
  var disable_default = defineCommand({
@@ -84,4 +84,4 @@ async function disable_client_server(client, server, scope, location_path, json)
84
84
  //#endregion
85
85
  export { disable_default as default };
86
86
 
87
- //# sourceMappingURL=disable-Br0aVG3u.js.map
87
+ //# sourceMappingURL=disable-CVwuJLhT.js.map
@@ -1,6 +1,6 @@
1
- import { D as get_all_available_servers, L as resolve_client_location, P as get_client_adapter, R as set_client_server_enabled, p as add_mcp_via_cli } from "./index.js";
2
- import { n as print_mutation_details, t as claude_mutation_context } from "./mutation-ukRPw3qM.js";
3
- import { n as output, t as error } from "./output-BS1TMOWt.js";
1
+ import { F as get_client_adapter, O as get_all_available_servers, R as resolve_client_location, c as add_mcp_via_cli, z as set_client_server_enabled } from "./index.js";
2
+ import { n as print_mutation_details, t as claude_mutation_context } from "./mutation-BBMIFB8H.js";
3
+ import { n as output, t as error } from "./output-DGPi2IWN.js";
4
4
  import { defineCommand } from "citty";
5
5
  //#region src/cli/commands/enable.ts
6
6
  var enable_default = defineCommand({
@@ -85,4 +85,4 @@ async function enable_client_server(client, server, scope, location_path, json)
85
85
  //#endregion
86
86
  export { enable_default as default };
87
87
 
88
- //# sourceMappingURL=enable-DUolKCEH.js.map
88
+ //# sourceMappingURL=enable-BEi8TUd1.js.map
@@ -1,5 +1,5 @@
1
- import { b as mcp_get_via_cli } from "./index.js";
2
- import { n as output, t as error } from "./output-BS1TMOWt.js";
1
+ import { h as mcp_get_via_cli } from "./index.js";
2
+ import { n as output, t as error } from "./output-DGPi2IWN.js";
3
3
  import { defineCommand } from "citty";
4
4
  //#region src/cli/commands/get.ts
5
5
  var get_default = defineCommand({
@@ -38,4 +38,4 @@ var get_default = defineCommand({
38
38
  //#endregion
39
39
  export { get_default as default };
40
40
 
41
- //# sourceMappingURL=get-D-6Cl_CO.js.map
41
+ //# sourceMappingURL=get-eDOm6sRK.js.map
@@ -1,5 +1,6 @@
1
- import { V as get_all_hooks, W as remove_hook, c as check_restored_hooks, d as read_disabled_hooks, f as redisable_restored_hooks, l as disable_plugin_hook, u as enable_plugin_hook, z as add_hook } from "./index.js";
2
- import { n as output, t as error } from "./output-BS1TMOWt.js";
1
+ import { _ as redisable_restored_hooks, g as read_disabled_hooks, h as enable_plugin_hook, m as disable_plugin_hook, p as check_restored_hooks } from "./plugin-cache-Dj-lS1mA.js";
2
+ import { B as add_hook, G as remove_hook, H as get_all_hooks } from "./index.js";
3
+ import { n as output, t as error } from "./output-DGPi2IWN.js";
3
4
  import { defineCommand } from "citty";
4
5
  var hooks_default = defineCommand({
5
6
  meta: {
@@ -276,4 +277,4 @@ var hooks_default = defineCommand({
276
277
  //#endregion
277
278
  export { hooks_default as default };
278
279
 
279
- //# sourceMappingURL=hooks-BKPmZViU.js.map
280
+ //# sourceMappingURL=hooks-DzGBYYId.js.map