mcpick 0.0.24 → 0.0.25

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 (33) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +8 -2
  3. package/dist/{add-Qzd8i-5k.js → add-7mhUpbrt.js} +22 -35
  4. package/dist/{add-json-DGmsjB0O.js → add-json-BMM2L4hv.js} +18 -34
  5. package/dist/{backup-C7fvikFw.js → backup-C-YJmgps.js} +4 -4
  6. package/dist/{cache-D3jjh5dD.js → cache-BOYZhUF6.js} +4 -3
  7. package/dist/{cli-CZOlaqoZ.js → cli-sOeHH4CK.js} +22 -22
  8. package/dist/{clients-Bh93TGP4.js → clients-D5KAuQ5U.js} +3 -3
  9. package/dist/{clone-MI8jJhTz.js → clone-BRJA55js.js} +5 -5
  10. package/dist/{config-DE58Fik_.js → config-Bzh374VP.js} +4 -13
  11. package/dist/{dev-51esdZG9.js → dev-B-WlQSqY.js} +4 -4
  12. package/dist/{disable-csYAn2Vk.js → disable-Br0aVG3u.js} +18 -37
  13. package/dist/{enable-B5GbmhL-.js → enable-DUolKCEH.js} +18 -37
  14. package/dist/{get-DacRZmwv.js → get-D-6Cl_CO.js} +3 -3
  15. package/dist/{hooks-C_x49qap.js → hooks-BKPmZViU.js} +3 -3
  16. package/dist/index.js +571 -505
  17. package/dist/{list-BeBtsiae.js → list-DMcaHDfM.js} +4 -4
  18. package/dist/{marketplace-BDC2YtvT.js → marketplace-DTW7Ys8k.js} +4 -4
  19. package/dist/mutation-ukRPw3qM.js +19 -0
  20. package/dist/{output-HtT5HCof.js → output-BS1TMOWt.js} +1 -1
  21. package/dist/{plugin-cache-DmLbh89d.js → plugin-cache-Dw1I2YuO.js} +10 -3
  22. package/dist/{plugins-Bkw-SKkZ.js → plugins-BzLD4og0.js} +4 -4
  23. package/dist/profile-CmIWUJH_.js +163 -0
  24. package/dist/{reload-Bl1mYK1I.js → reload-Di28s_rY.js} +2 -2
  25. package/dist/{remove-BSHgva79.js → remove-B32EuYRC.js} +18 -33
  26. package/dist/{reset-project-choices-BNLus9J9.js → reset-project-choices-DX4TnZ2i.js} +3 -3
  27. package/dist/{restore-YisgARhc.js → restore-ByS4xi0y.js} +5 -5
  28. package/dist/{rollback-GR1RkpXW.js → rollback-DdDJrA8y.js} +3 -3
  29. package/dist/{skills-rDTDqqZA.js → skills-pvyQ17XU.js} +3 -3
  30. package/dist/{validation-xMlbgGCF.js → validation-CfPAjPJ5.js} +21 -2
  31. package/package.json +1 -1
  32. package/dist/dry-run-XQ32fxPT.js +0 -20
  33. package/dist/profile-DwJTVXiz.js +0 -161
@@ -1,161 +0,0 @@
1
- import { a as get_claude_settings_path, g as get_profile_path, i as get_claude_config_path } from "./paths-BPISiJi4.js";
2
- import { s as read_claude_config } from "./config-DE58Fik_.js";
3
- import { K as build_json_change_preview, Z as read_claude_settings, i as save_current_claude_profile, n as list_profiles, r as load_profile, t as apply_profile_to_claude } from "./index.js";
4
- import { n as output, t as error } from "./output-HtT5HCof.js";
5
- import { t as print_dry_run } from "./dry-run-XQ32fxPT.js";
6
- import { defineCommand } from "citty";
7
- var profile_default = defineCommand({
8
- meta: {
9
- name: "profile",
10
- description: "Manage profiles (MCP servers + plugins)"
11
- },
12
- subCommands: {
13
- list: defineCommand({
14
- meta: {
15
- name: "list",
16
- description: "List all saved profiles"
17
- },
18
- args: { json: {
19
- type: "boolean",
20
- description: "Output as JSON",
21
- default: false
22
- } },
23
- async run({ args }) {
24
- const profiles = await list_profiles();
25
- if (args.json) output(profiles, true);
26
- else {
27
- if (profiles.length === 0) {
28
- console.log("No profiles found.");
29
- return;
30
- }
31
- for (const p of profiles) {
32
- const parts = [`${p.serverCount} servers`];
33
- if (p.pluginCount > 0) parts.push(`${p.pluginCount} plugins`);
34
- console.log(`${p.name} (${parts.join(", ")})`);
35
- }
36
- }
37
- }
38
- }),
39
- load: defineCommand({
40
- meta: {
41
- name: "load",
42
- description: "Load and apply a saved profile"
43
- },
44
- args: {
45
- name: {
46
- type: "positional",
47
- description: "Profile name",
48
- required: true
49
- },
50
- dryRun: {
51
- type: "boolean",
52
- description: "Preview changes without writing",
53
- default: false
54
- },
55
- json: {
56
- type: "boolean",
57
- description: "Output as JSON",
58
- default: false
59
- }
60
- },
61
- async run({ args }) {
62
- try {
63
- if (args.dryRun) {
64
- const profile = await load_profile(args.name);
65
- const previews = [build_json_change_preview({
66
- operation: "profile-load",
67
- client: "claude-code",
68
- scope: "user",
69
- location: get_claude_config_path(),
70
- before: await read_claude_config(),
71
- after: profile.config
72
- })];
73
- if (profile.enabledPlugins) previews.push(build_json_change_preview({
74
- operation: "profile-load-plugins",
75
- client: "claude-code",
76
- scope: "user",
77
- location: get_claude_settings_path(),
78
- before: await read_claude_settings(),
79
- after: { enabledPlugins: profile.enabledPlugins }
80
- }));
81
- if (args.json) output(previews, true);
82
- else for (const preview of previews) print_dry_run(preview, false);
83
- return;
84
- }
85
- const result = await apply_profile_to_claude(args.name);
86
- if (args.json) output({
87
- profile: result.profile,
88
- servers: result.serverCount,
89
- plugins: result.pluginCount
90
- }, true);
91
- else {
92
- const parts = [`${result.serverCount} servers`];
93
- if (result.pluginCount > 0) parts.push(`${result.pluginCount} plugins`);
94
- console.log(`Profile '${result.profile}' applied (${parts.join(", ")})`);
95
- }
96
- } catch (err) {
97
- error(err instanceof Error ? err.message : "Failed to load profile");
98
- }
99
- }
100
- }),
101
- save: defineCommand({
102
- meta: {
103
- name: "save",
104
- description: "Save current config as a profile"
105
- },
106
- args: {
107
- name: {
108
- type: "positional",
109
- description: "Profile name",
110
- required: true
111
- },
112
- dryRun: {
113
- type: "boolean",
114
- description: "Preview changes without writing",
115
- default: false
116
- },
117
- json: {
118
- type: "boolean",
119
- description: "Output as JSON",
120
- default: false
121
- }
122
- },
123
- async run({ args }) {
124
- try {
125
- if (args.dryRun) {
126
- const config = await read_claude_config();
127
- const settings = await read_claude_settings();
128
- const profile_data = { mcpServers: config.mcpServers || {} };
129
- if (settings.enabledPlugins) profile_data.enabledPlugins = settings.enabledPlugins;
130
- print_dry_run(build_json_change_preview({
131
- operation: "profile-save",
132
- client: "claude-code",
133
- scope: "user",
134
- location: get_profile_path(args.name),
135
- before: {},
136
- after: profile_data
137
- }), args.json);
138
- return;
139
- }
140
- const result = await save_current_claude_profile(args.name);
141
- if (args.json) output({
142
- profile: result.profile,
143
- servers: result.serverCount,
144
- plugins: result.pluginCount
145
- }, true);
146
- else {
147
- const parts = [`${result.serverCount} servers`];
148
- if (result.pluginCount > 0) parts.push(`${result.pluginCount} plugins`);
149
- console.log(`Profile '${result.profile}' saved (${parts.join(", ")})`);
150
- }
151
- } catch (err) {
152
- error(err instanceof Error ? err.message : "Failed to save profile");
153
- }
154
- }
155
- })
156
- }
157
- });
158
- //#endregion
159
- export { profile_default as default };
160
-
161
- //# sourceMappingURL=profile-DwJTVXiz.js.map