ccjk 9.6.1 → 9.8.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 (56) hide show
  1. package/dist/chunks/boost.mjs +246 -7
  2. package/dist/chunks/ccjk-mcp.mjs +1 -1
  3. package/dist/chunks/ccr.mjs +25 -28
  4. package/dist/chunks/check-updates.mjs +4 -3
  5. package/dist/chunks/claude-code-config-manager.mjs +1 -1
  6. package/dist/chunks/claude-code-incremental-manager.mjs +1 -1
  7. package/dist/chunks/claude-config.mjs +1 -1
  8. package/dist/chunks/codex-config-switch.mjs +3 -4
  9. package/dist/chunks/codex-provider-manager.mjs +1 -2
  10. package/dist/chunks/codex.mjs +204 -3
  11. package/dist/chunks/config-switch.mjs +2 -3
  12. package/dist/chunks/config.mjs +1 -1
  13. package/dist/chunks/doctor.mjs +1 -1
  14. package/dist/chunks/features.mjs +24 -15
  15. package/dist/chunks/hook-installer.mjs +44 -0
  16. package/dist/chunks/index3.mjs +32 -32
  17. package/dist/chunks/init.mjs +129 -87
  18. package/dist/chunks/installer2.mjs +1 -1
  19. package/dist/chunks/interview.mjs +1 -1
  20. package/dist/chunks/mcp.mjs +1058 -17
  21. package/dist/chunks/menu.mjs +140 -56
  22. package/dist/chunks/package.mjs +2 -210
  23. package/dist/chunks/platform.mjs +1 -1
  24. package/dist/chunks/quick-setup.mjs +35 -18
  25. package/dist/chunks/simple-config.mjs +1 -1
  26. package/dist/{shared/ccjk.q1koQxEE.mjs → chunks/smart-defaults.mjs} +77 -79
  27. package/dist/chunks/status.mjs +208 -101
  28. package/dist/chunks/thinking.mjs +1 -1
  29. package/dist/chunks/uninstall.mjs +6 -4
  30. package/dist/chunks/update.mjs +4 -7
  31. package/dist/chunks/version-checker.mjs +1 -1
  32. package/dist/cli.mjs +4 -80
  33. package/dist/index.d.mts +17 -1482
  34. package/dist/index.d.ts +17 -1482
  35. package/dist/index.mjs +12 -4191
  36. package/dist/shared/{ccjk.CSkyCZIM.mjs → ccjk.Bndhan7G.mjs} +4 -242
  37. package/dist/shared/ccjk.CeE8RLG2.mjs +62 -0
  38. package/dist/shared/ccjk.DKojSRzw.mjs +266 -0
  39. package/dist/shared/{ccjk.CItD1fpl.mjs → ccjk.DvIrK0wz.mjs} +1 -1
  40. package/dist/shared/ccjk.LsPZ2PYo.mjs +1048 -0
  41. package/package.json +1 -1
  42. package/dist/chunks/api-adapter.mjs +0 -180
  43. package/dist/chunks/cli.mjs +0 -2227
  44. package/dist/chunks/context-menu.mjs +0 -913
  45. package/dist/chunks/hooks-sync.mjs +0 -1627
  46. package/dist/chunks/mcp-market.mjs +0 -1077
  47. package/dist/chunks/mcp-server.mjs +0 -776
  48. package/dist/chunks/project-detector.mjs +0 -131
  49. package/dist/chunks/provider-registry.mjs +0 -92
  50. package/dist/chunks/setup-wizard.mjs +0 -362
  51. package/dist/chunks/tools.mjs +0 -143
  52. package/dist/chunks/workflows2.mjs +0 -232
  53. package/dist/shared/ccjk.C0pb50xH.mjs +0 -347
  54. package/dist/shared/ccjk.ChMkBmdL.mjs +0 -490
  55. package/dist/shared/ccjk.CtSfXUSh.mjs +0 -209
  56. package/dist/shared/ccjk.xfAjmbJp.mjs +0 -75
package/dist/cli.mjs CHANGED
@@ -12,7 +12,7 @@ const COMMANDS = [
12
12
  { flags: "--code-type, -T <type>", description: "Code tool type" }
13
13
  ],
14
14
  loader: async () => {
15
- const { showMainMenu } = await import('./chunks/menu.mjs');
15
+ const { showMainMenu } = await import('./chunks/menu.mjs').then(function (n) { return n.m; });
16
16
  return async (options) => {
17
17
  await showMainMenu({ codeType: options.codeType });
18
18
  };
@@ -36,7 +36,7 @@ const COMMANDS = [
36
36
  { flags: "--yes, -y", description: "Skip confirmation prompts (auto-confirm)" }
37
37
  ],
38
38
  loader: async () => {
39
- const { init } = await import('./chunks/init.mjs');
39
+ const { init } = await import('./chunks/init.mjs').then(function (n) { return n.c; });
40
40
  return async (options) => {
41
41
  await init(options);
42
42
  };
@@ -113,44 +113,6 @@ const COMMANDS = [
113
113
  }
114
114
  },
115
115
  // ==================== Extended Commands ====================
116
- {
117
- name: "serve",
118
- description: "Start CCJK as MCP server",
119
- tier: "extended",
120
- options: [
121
- { flags: "--mcp", description: "Enable MCP server mode" },
122
- { flags: "--stdio", description: "Use stdio transport (default)" },
123
- { flags: "--http", description: "Use HTTP transport" },
124
- { flags: "--port <port>", description: "HTTP server port (default: 3000)" },
125
- { flags: "--host <host>", description: "HTTP server host (default: localhost)" },
126
- { flags: "--debug", description: "Enable debug logging" }
127
- ],
128
- loader: async () => {
129
- return async (options) => {
130
- if (!options.mcp) {
131
- console.error("Error: --mcp flag is required for serve command");
132
- console.log("Usage: ccjk serve --mcp [--stdio|--http] [--port 3000]");
133
- process__default.exit(1);
134
- }
135
- const { startMCPServer } = await import('./chunks/mcp-server.mjs');
136
- const transport = options.http ? "http" : "stdio";
137
- const port = options.port ? Number.parseInt(options.port, 10) : 3e3;
138
- const host = options.host || "localhost";
139
- const debug = options.debug || false;
140
- console.error(`Starting CCJK MCP Server (${transport} mode)...`);
141
- await startMCPServer({
142
- transport,
143
- port,
144
- host,
145
- debug
146
- });
147
- if (transport === "http") {
148
- console.error(`MCP Server running on http://${host}:${port}`);
149
- console.error("Press Ctrl+C to stop");
150
- }
151
- };
152
- }
153
- },
154
116
  {
155
117
  name: "mcp <action> [...args]",
156
118
  description: "MCP Server management",
@@ -343,44 +305,6 @@ const COMMANDS = [
343
305
  };
344
306
  }
345
307
  },
346
- {
347
- name: "daemon <action>",
348
- description: "Remote control daemon management",
349
- tier: "extended",
350
- options: [
351
- { flags: "--debug, -d", description: "Enable debug logging" }
352
- ],
353
- loader: async () => {
354
- return async (_options, action) => {
355
- const actionStr = action;
356
- if (actionStr === "setup") {
357
- const { setupDaemon } = await import('./chunks/cli.mjs');
358
- await setupDaemon();
359
- } else if (actionStr === "start") {
360
- const { startDaemon } = await import('./chunks/cli.mjs');
361
- await startDaemon();
362
- } else if (actionStr === "stop") {
363
- const { stopDaemon } = await import('./chunks/cli.mjs');
364
- await stopDaemon();
365
- } else if (actionStr === "status") {
366
- const { showStatus } = await import('./chunks/cli.mjs');
367
- await showStatus();
368
- } else if (actionStr === "logs") {
369
- const { showLogs } = await import('./chunks/cli.mjs');
370
- await showLogs();
371
- } else {
372
- console.error(`Unknown daemon action: ${actionStr}`);
373
- console.log("Available actions: setup, start, stop, status, logs");
374
- console.log("\nUsage:");
375
- console.log(" ccjk daemon setup - Configure email settings");
376
- console.log(" ccjk daemon start - Start the daemon");
377
- console.log(" ccjk daemon stop - Stop the daemon");
378
- console.log(" ccjk daemon status - Show daemon status");
379
- console.log(" ccjk daemon logs - Show daemon logs");
380
- }
381
- };
382
- }
383
- },
384
308
  {
385
309
  name: "providers [action] [...args]",
386
310
  description: "Manage API providers",
@@ -1334,9 +1258,9 @@ ${ansis.yellow("By Status:")}`);
1334
1258
  { flags: "--compact", description: "Compact output" }
1335
1259
  ],
1336
1260
  loader: async () => {
1337
- const { status } = await import('./chunks/status.mjs');
1261
+ const { statusCommand } = await import('./chunks/status.mjs');
1338
1262
  return async (options) => {
1339
- await status({
1263
+ await statusCommand({
1340
1264
  json: options.json,
1341
1265
  compact: options.compact
1342
1266
  });