ccman 3.1.2 → 3.2.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.
Files changed (2) hide show
  1. package/dist/index.js +53 -43
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ var init_package = __esm({
15
15
  "../core/package.json"() {
16
16
  package_default = {
17
17
  name: "@ccman/core",
18
- version: "3.1.2",
18
+ version: "3.2.0",
19
19
  type: "module",
20
20
  description: "Core business logic for ccman",
21
21
  main: "./dist/index.js",
@@ -51,6 +51,7 @@ var init_package = __esm({
51
51
  url: "https://github.com/2ue/ccman/issues"
52
52
  },
53
53
  dependencies: {
54
+ "@ccman/types": "workspace:*",
54
55
  "@iarna/toml": "^2.2.5",
55
56
  "proper-lockfile": "^4.1.2",
56
57
  webdav: "^5.8.0"
@@ -65,10 +66,10 @@ var init_package = __esm({
65
66
  }
66
67
  });
67
68
 
68
- // ../core/dist/constants.js
69
+ // ../types/dist/index.js
69
70
  var TOOL_TYPES, MAIN_TOOL_TYPES, TOOL_CONFIG;
70
- var init_constants = __esm({
71
- "../core/dist/constants.js"() {
71
+ var init_dist = __esm({
72
+ "../types/dist/index.js"() {
72
73
  "use strict";
73
74
  TOOL_TYPES = {
74
75
  CODEX: "codex",
@@ -118,6 +119,15 @@ var init_constants = __esm({
118
119
  }
119
120
  });
120
121
 
122
+ // ../core/dist/constants.js
123
+ var init_constants = __esm({
124
+ "../core/dist/constants.js"() {
125
+ "use strict";
126
+ init_dist();
127
+ init_dist();
128
+ }
129
+ });
130
+
121
131
  // ../core/dist/paths.js
122
132
  import * as os from "os";
123
133
  import * as path from "path";
@@ -2126,7 +2136,7 @@ var init_claude_clean = __esm({
2126
2136
 
2127
2137
  // ../core/dist/index.js
2128
2138
  var VERSION;
2129
- var init_dist = __esm({
2139
+ var init_dist2 = __esm({
2130
2140
  "../core/dist/index.js"() {
2131
2141
  "use strict";
2132
2142
  init_package();
@@ -2179,7 +2189,7 @@ function getSyncConfigPath() {
2179
2189
  var init_sync_config = __esm({
2180
2190
  "src/utils/sync-config.ts"() {
2181
2191
  "use strict";
2182
- init_dist();
2192
+ init_dist2();
2183
2193
  }
2184
2194
  });
2185
2195
 
@@ -2387,7 +2397,7 @@ var init_config2 = __esm({
2387
2397
  "src/commands/sync/config.ts"() {
2388
2398
  "use strict";
2389
2399
  init_sync_config();
2390
- init_dist();
2400
+ init_dist2();
2391
2401
  }
2392
2402
  });
2393
2403
 
@@ -2468,7 +2478,7 @@ function testCommand(program2) {
2468
2478
  var init_test = __esm({
2469
2479
  "src/commands/sync/test.ts"() {
2470
2480
  "use strict";
2471
- init_dist();
2481
+ init_dist2();
2472
2482
  init_helpers();
2473
2483
  }
2474
2484
  });
@@ -2546,7 +2556,7 @@ function uploadCommand(program2) {
2546
2556
  var init_upload = __esm({
2547
2557
  "src/commands/sync/upload.ts"() {
2548
2558
  "use strict";
2549
- init_dist();
2559
+ init_dist2();
2550
2560
  init_helpers();
2551
2561
  }
2552
2562
  });
@@ -2620,7 +2630,7 @@ function downloadCommand(program2) {
2620
2630
  var init_download = __esm({
2621
2631
  "src/commands/sync/download.ts"() {
2622
2632
  "use strict";
2623
- init_dist();
2633
+ init_dist2();
2624
2634
  init_helpers();
2625
2635
  }
2626
2636
  });
@@ -2686,7 +2696,7 @@ function mergeCommand(program2) {
2686
2696
  var init_merge2 = __esm({
2687
2697
  "src/commands/sync/merge.ts"() {
2688
2698
  "use strict";
2689
- init_dist();
2699
+ init_dist2();
2690
2700
  init_helpers();
2691
2701
  }
2692
2702
  });
@@ -2742,7 +2752,7 @@ function statusCommand(program2) {
2742
2752
  var init_status = __esm({
2743
2753
  "src/commands/sync/status.ts"() {
2744
2754
  "use strict";
2745
- init_dist();
2755
+ init_dist2();
2746
2756
  init_sync_config();
2747
2757
  }
2748
2758
  });
@@ -2862,7 +2872,7 @@ import { Command as Command3 } from "commander";
2862
2872
  import chalk40 from "chalk";
2863
2873
 
2864
2874
  // src/utils/logo.ts
2865
- init_dist();
2875
+ init_dist2();
2866
2876
  import chalk from "chalk";
2867
2877
  function printLogo() {
2868
2878
  console.log(
@@ -2883,12 +2893,12 @@ function printLogo() {
2883
2893
  }
2884
2894
 
2885
2895
  // src/commands/codex/add.ts
2886
- init_dist();
2896
+ init_dist2();
2887
2897
  import chalk12 from "chalk";
2888
2898
  import inquirer8 from "inquirer";
2889
2899
 
2890
2900
  // src/interactive.ts
2891
- init_dist();
2901
+ init_dist2();
2892
2902
  import inquirer7 from "inquirer";
2893
2903
  import chalk11 from "chalk";
2894
2904
 
@@ -3524,7 +3534,7 @@ function addCommand(program2) {
3524
3534
  }
3525
3535
 
3526
3536
  // src/commands/codex/list.ts
3527
- init_dist();
3537
+ init_dist2();
3528
3538
  import chalk13 from "chalk";
3529
3539
  function listCommand(program2) {
3530
3540
  program2.command("list").alias("ls").description("\u5217\u51FA\u6240\u6709 Codex \u670D\u52A1\u5546").action(async () => {
@@ -3550,7 +3560,7 @@ function listCommand(program2) {
3550
3560
  }
3551
3561
 
3552
3562
  // src/commands/codex/use.ts
3553
- init_dist();
3563
+ init_dist2();
3554
3564
  import chalk14 from "chalk";
3555
3565
  import inquirer9 from "inquirer";
3556
3566
  function useCommand(program2) {
@@ -3613,7 +3623,7 @@ function useCommand(program2) {
3613
3623
  }
3614
3624
 
3615
3625
  // src/commands/codex/current.ts
3616
- init_dist();
3626
+ init_dist2();
3617
3627
  import chalk15 from "chalk";
3618
3628
  function currentCommand(program2) {
3619
3629
  program2.command("current").description("\u663E\u793A\u5F53\u524D\u4F7F\u7528\u7684 Codex \u670D\u52A1\u5546").action(async () => {
@@ -3644,7 +3654,7 @@ function currentCommand(program2) {
3644
3654
  }
3645
3655
 
3646
3656
  // src/commands/codex/remove.ts
3647
- init_dist();
3657
+ init_dist2();
3648
3658
  import chalk16 from "chalk";
3649
3659
  import inquirer10 from "inquirer";
3650
3660
  function removeCommand(program2) {
@@ -3714,7 +3724,7 @@ function removeCommand(program2) {
3714
3724
  }
3715
3725
 
3716
3726
  // src/commands/codex/edit.ts
3717
- init_dist();
3727
+ init_dist2();
3718
3728
  import chalk17 from "chalk";
3719
3729
  import inquirer11 from "inquirer";
3720
3730
  function editCommand(program2) {
@@ -3802,7 +3812,7 @@ function editCommand(program2) {
3802
3812
  }
3803
3813
 
3804
3814
  // src/commands/codex/clone.ts
3805
- init_dist();
3815
+ init_dist2();
3806
3816
  import chalk18 from "chalk";
3807
3817
  import inquirer12 from "inquirer";
3808
3818
  function cloneCommand(program2) {
@@ -3880,7 +3890,7 @@ function createCodexCommands(program2) {
3880
3890
  }
3881
3891
 
3882
3892
  // src/commands/claude/add.ts
3883
- init_dist();
3893
+ init_dist2();
3884
3894
  import chalk19 from "chalk";
3885
3895
  import inquirer13 from "inquirer";
3886
3896
  function addCommand2(program2) {
@@ -4002,7 +4012,7 @@ function addCommand2(program2) {
4002
4012
  }
4003
4013
 
4004
4014
  // src/commands/claude/list.ts
4005
- init_dist();
4015
+ init_dist2();
4006
4016
  import chalk20 from "chalk";
4007
4017
  function listCommand2(program2) {
4008
4018
  program2.command("list").alias("ls").description("\u5217\u51FA\u6240\u6709 Claude Code \u670D\u52A1\u5546").action(async () => {
@@ -4028,7 +4038,7 @@ function listCommand2(program2) {
4028
4038
  }
4029
4039
 
4030
4040
  // src/commands/claude/use.ts
4031
- init_dist();
4041
+ init_dist2();
4032
4042
  import chalk21 from "chalk";
4033
4043
  import inquirer14 from "inquirer";
4034
4044
  function useCommand2(program2) {
@@ -4090,7 +4100,7 @@ function useCommand2(program2) {
4090
4100
  }
4091
4101
 
4092
4102
  // src/commands/claude/current.ts
4093
- init_dist();
4103
+ init_dist2();
4094
4104
  import chalk22 from "chalk";
4095
4105
  function currentCommand2(program2) {
4096
4106
  program2.command("current").description("\u663E\u793A\u5F53\u524D\u4F7F\u7528\u7684 Claude Code \u670D\u52A1\u5546").action(async () => {
@@ -4121,7 +4131,7 @@ function currentCommand2(program2) {
4121
4131
  }
4122
4132
 
4123
4133
  // src/commands/claude/remove.ts
4124
- init_dist();
4134
+ init_dist2();
4125
4135
  import chalk23 from "chalk";
4126
4136
  import inquirer15 from "inquirer";
4127
4137
  function removeCommand2(program2) {
@@ -4191,7 +4201,7 @@ function removeCommand2(program2) {
4191
4201
  }
4192
4202
 
4193
4203
  // src/commands/claude/edit.ts
4194
- init_dist();
4204
+ init_dist2();
4195
4205
  import chalk24 from "chalk";
4196
4206
  import inquirer16 from "inquirer";
4197
4207
  function editCommand2(program2) {
@@ -4279,7 +4289,7 @@ function editCommand2(program2) {
4279
4289
  }
4280
4290
 
4281
4291
  // src/commands/claude/clone.ts
4282
- init_dist();
4292
+ init_dist2();
4283
4293
  import chalk25 from "chalk";
4284
4294
  import inquirer17 from "inquirer";
4285
4295
  function cloneCommand2(program2) {
@@ -4346,7 +4356,7 @@ function cloneCommand2(program2) {
4346
4356
  }
4347
4357
 
4348
4358
  // src/commands/clean.ts
4349
- init_dist();
4359
+ init_dist2();
4350
4360
  import chalk26 from "chalk";
4351
4361
  import inquirer18 from "inquirer";
4352
4362
  function formatBytes2(bytes) {
@@ -4563,7 +4573,7 @@ function createClaudeCommands(program2) {
4563
4573
  }
4564
4574
 
4565
4575
  // src/commands/mcp/add.ts
4566
- init_dist();
4576
+ init_dist2();
4567
4577
  import chalk27 from "chalk";
4568
4578
  import inquirer19 from "inquirer";
4569
4579
  function addCommand3(program2) {
@@ -4724,7 +4734,7 @@ function addCommand3(program2) {
4724
4734
  }
4725
4735
 
4726
4736
  // src/commands/mcp/list.ts
4727
- init_dist();
4737
+ init_dist2();
4728
4738
  import chalk28 from "chalk";
4729
4739
  function listCommand3(program2) {
4730
4740
  program2.command("list").alias("ls").description("\u5217\u51FA\u6240\u6709 MCP \u670D\u52A1\u5668").action(async () => {
@@ -4770,7 +4780,7 @@ function listCommand3(program2) {
4770
4780
  }
4771
4781
 
4772
4782
  // src/commands/mcp/remove.ts
4773
- init_dist();
4783
+ init_dist2();
4774
4784
  import chalk29 from "chalk";
4775
4785
  import inquirer20 from "inquirer";
4776
4786
  function removeCommand3(program2) {
@@ -4845,7 +4855,7 @@ function removeCommand3(program2) {
4845
4855
  }
4846
4856
 
4847
4857
  // src/commands/mcp/edit.ts
4848
- init_dist();
4858
+ init_dist2();
4849
4859
  import chalk30 from "chalk";
4850
4860
  import inquirer21 from "inquirer";
4851
4861
  function editCommand3(program2) {
@@ -4964,7 +4974,7 @@ function createMCPCommands(program2) {
4964
4974
  }
4965
4975
 
4966
4976
  // src/commands/gemini/add.ts
4967
- init_dist();
4977
+ init_dist2();
4968
4978
  import chalk31 from "chalk";
4969
4979
  import inquirer22 from "inquirer";
4970
4980
  function addCommand4(program2) {
@@ -5083,7 +5093,7 @@ function addCommand4(program2) {
5083
5093
  }
5084
5094
 
5085
5095
  // src/commands/gemini/list.ts
5086
- init_dist();
5096
+ init_dist2();
5087
5097
  import chalk32 from "chalk";
5088
5098
  function listCommand4(program2) {
5089
5099
  program2.command("list").alias("ls").description("\u5217\u51FA\u6240\u6709 Gemini CLI \u670D\u52A1\u5546").action(async () => {
@@ -5109,7 +5119,7 @@ function listCommand4(program2) {
5109
5119
  }
5110
5120
 
5111
5121
  // src/commands/gemini/use.ts
5112
- init_dist();
5122
+ init_dist2();
5113
5123
  import chalk33 from "chalk";
5114
5124
  import inquirer23 from "inquirer";
5115
5125
  function useCommand3(program2) {
@@ -5172,7 +5182,7 @@ function useCommand3(program2) {
5172
5182
  }
5173
5183
 
5174
5184
  // src/commands/gemini/current.ts
5175
- init_dist();
5185
+ init_dist2();
5176
5186
  import chalk34 from "chalk";
5177
5187
  function currentCommand3(program2) {
5178
5188
  program2.command("current").description("\u663E\u793A\u5F53\u524D Gemini CLI \u670D\u52A1\u5546").action(async () => {
@@ -5198,7 +5208,7 @@ function currentCommand3(program2) {
5198
5208
  }
5199
5209
 
5200
5210
  // src/commands/gemini/remove.ts
5201
- init_dist();
5211
+ init_dist2();
5202
5212
  import chalk35 from "chalk";
5203
5213
  import inquirer24 from "inquirer";
5204
5214
  function removeCommand4(program2) {
@@ -5263,7 +5273,7 @@ function removeCommand4(program2) {
5263
5273
  }
5264
5274
 
5265
5275
  // src/commands/gemini/edit.ts
5266
- init_dist();
5276
+ init_dist2();
5267
5277
  import chalk36 from "chalk";
5268
5278
  import inquirer25 from "inquirer";
5269
5279
  function editCommand4(program2) {
@@ -5324,7 +5334,7 @@ function editCommand4(program2) {
5324
5334
  }
5325
5335
 
5326
5336
  // src/commands/gemini/clone.ts
5327
- init_dist();
5337
+ init_dist2();
5328
5338
  import chalk37 from "chalk";
5329
5339
  import inquirer26 from "inquirer";
5330
5340
  function cloneCommand3(program2) {
@@ -5403,7 +5413,7 @@ function createGeminiCommands(program2) {
5403
5413
  init_sync();
5404
5414
 
5405
5415
  // src/commands/export.ts
5406
- init_dist();
5416
+ init_dist2();
5407
5417
  import chalk38 from "chalk";
5408
5418
  import path10 from "path";
5409
5419
  function exportCommand(program2) {
@@ -5445,7 +5455,7 @@ function exportCommand(program2) {
5445
5455
  }
5446
5456
 
5447
5457
  // src/commands/import.ts
5448
- init_dist();
5458
+ init_dist2();
5449
5459
  import chalk39 from "chalk";
5450
5460
  import inquirer27 from "inquirer";
5451
5461
  import path11 from "path";
@@ -5527,7 +5537,7 @@ function importCommand(program2) {
5527
5537
  }
5528
5538
 
5529
5539
  // src/index.ts
5530
- init_dist();
5540
+ init_dist2();
5531
5541
  if (process.env.NODE_ENV === "development") {
5532
5542
  console.log(chalk40.gray("\n[\u5F00\u53D1\u6A21\u5F0F] \u914D\u7F6E\u76EE\u5F55:"));
5533
5543
  console.log(chalk40.gray(` ccman: ${getCcmanDir()}`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccman",
3
- "version": "3.1.2",
3
+ "version": "3.2.0",
4
4
  "type": "module",
5
5
  "description": "Manage Codex and Claude Code API service provider configurations",
6
6
  "main": "./dist/index.js",