ccjk 9.5.6 → 9.7.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/dist/chunks/agent.mjs +1 -1
- package/dist/chunks/api-providers.mjs +1 -1
- package/dist/chunks/api.mjs +3 -3
- package/dist/chunks/auto-bootstrap.mjs +1 -1
- package/dist/chunks/auto-updater.mjs +1 -1
- package/dist/chunks/boost.mjs +160 -0
- package/dist/chunks/ccjk-agents.mjs +1 -1
- package/dist/chunks/ccjk-all.mjs +1 -1
- package/dist/chunks/ccjk-config.mjs +1 -1
- package/dist/chunks/ccjk-hooks.mjs +1 -1
- package/dist/chunks/ccjk-mcp.mjs +2 -2
- package/dist/chunks/ccjk-setup.mjs +1 -1
- package/dist/chunks/ccjk-skills.mjs +1 -1
- package/dist/chunks/ccr.mjs +25 -30
- package/dist/chunks/ccu.mjs +1 -1
- package/dist/chunks/check-updates.mjs +3 -4
- package/dist/chunks/claude-code-config-manager.mjs +7 -7
- package/dist/chunks/claude-code-incremental-manager.mjs +2 -2
- package/dist/chunks/claude-config.mjs +4 -4
- package/dist/chunks/claude-wrapper.mjs +2 -2
- package/dist/chunks/codex-config-switch.mjs +4 -5
- package/dist/chunks/codex-provider-manager.mjs +2 -3
- package/dist/chunks/codex-uninstaller.mjs +2 -2
- package/dist/chunks/codex.mjs +207 -6
- package/dist/chunks/commands.mjs +391 -88
- package/dist/chunks/commands2.mjs +88 -391
- package/dist/chunks/completion.mjs +1 -1
- package/dist/chunks/config-consolidator.mjs +2 -2
- package/dist/chunks/config-switch.mjs +3 -4
- package/dist/chunks/config.mjs +78 -7
- package/dist/chunks/config2.mjs +400 -410
- package/dist/chunks/config3.mjs +410 -400
- package/dist/chunks/constants.mjs +1 -1
- package/dist/chunks/doctor.mjs +4 -4
- package/dist/chunks/features.mjs +24 -17
- package/dist/chunks/index.mjs +178 -7
- package/dist/chunks/index2.mjs +1162 -169
- package/dist/chunks/index3.mjs +910 -1076
- package/dist/chunks/index4.mjs +137 -947
- package/dist/chunks/index5.mjs +635 -167
- package/dist/chunks/init.mjs +141 -99
- package/dist/chunks/installer.mjs +147 -649
- package/dist/chunks/installer2.mjs +649 -147
- package/dist/chunks/interview.mjs +2 -2
- package/dist/chunks/marketplace.mjs +1 -1
- package/dist/chunks/mcp.mjs +1058 -17
- package/dist/chunks/menu.mjs +147 -56
- package/dist/chunks/monitor.mjs +2 -2
- package/dist/chunks/notification.mjs +1 -1
- package/dist/chunks/onboarding.mjs +2 -2
- package/dist/chunks/package.mjs +2 -210
- package/dist/chunks/permission-manager.mjs +2 -2
- package/dist/chunks/permissions.mjs +1 -1
- package/dist/chunks/platform.mjs +1 -1
- package/dist/chunks/plugin.mjs +1 -1
- package/dist/chunks/prompts.mjs +1 -1
- package/dist/chunks/providers.mjs +1 -1
- package/dist/chunks/quick-setup.mjs +16 -20
- package/dist/chunks/silent-updater.mjs +1 -1
- package/dist/chunks/simple-config.mjs +2 -2
- package/dist/chunks/skill.mjs +1 -1
- package/dist/chunks/skills-sync.mjs +1 -1
- package/dist/chunks/skills.mjs +1 -1
- package/dist/chunks/startup.mjs +1 -1
- package/dist/chunks/stats.mjs +1 -1
- package/dist/chunks/status.mjs +159 -0
- package/dist/chunks/team.mjs +1 -1
- package/dist/chunks/thinking.mjs +2 -2
- package/dist/chunks/uninstall.mjs +6 -6
- package/dist/chunks/update.mjs +6 -9
- package/dist/chunks/upgrade-manager.mjs +2 -2
- package/dist/chunks/version-checker.mjs +3 -3
- package/dist/chunks/vim.mjs +1 -1
- package/dist/chunks/workflows.mjs +616 -215
- package/dist/cli.mjs +70 -121
- package/dist/index.d.mts +17 -1482
- package/dist/index.d.ts +17 -1482
- package/dist/index.mjs +950 -4740
- package/dist/shared/{ccjk.zCqdxT2Y.mjs → ccjk.Br91zBIG.mjs} +2 -2
- package/dist/shared/ccjk.CSkyCZIM.mjs +638 -0
- package/dist/shared/{ccjk.BKoi8-Hy.mjs → ccjk.DE91nClQ.mjs} +1 -1
- package/dist/shared/{ccjk.f40us0yY.mjs → ccjk.DvIrK0wz.mjs} +2 -2
- package/dist/shared/ccjk.LsPZ2PYo.mjs +1048 -0
- package/dist/shared/{ccjk.DRweXU5F.mjs → ccjk.q1koQxEE.mjs} +2 -2
- package/package.json +1 -1
- package/templates/claude-code/common/settings.json +15 -111
- package/dist/chunks/api-adapter.mjs +0 -180
- package/dist/chunks/cli.mjs +0 -2227
- package/dist/chunks/context-menu.mjs +0 -913
- package/dist/chunks/hooks-sync.mjs +0 -1627
- package/dist/chunks/index6.mjs +0 -663
- package/dist/chunks/mcp-market.mjs +0 -1077
- package/dist/chunks/mcp-server.mjs +0 -776
- package/dist/chunks/project-detector.mjs +0 -131
- package/dist/chunks/provider-registry.mjs +0 -92
- package/dist/chunks/setup-wizard.mjs +0 -362
- package/dist/chunks/tools.mjs +0 -143
- package/dist/chunks/workflows2.mjs +0 -633
- package/dist/shared/ccjk.BM_HZogn.mjs +0 -347
- package/dist/shared/ccjk.BaEp4UHQ.mjs +0 -75
- package/dist/shared/ccjk.CS0ybJCf.mjs +0 -490
- package/dist/shared/ccjk.CZgIwikC.mjs +0 -209
- package/dist/shared/ccjk.tO8zeFh1.mjs +0 -397
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",
|
|
@@ -214,25 +176,25 @@ const COMMANDS = [
|
|
|
214
176
|
const actionStr = action;
|
|
215
177
|
const argsArr = args;
|
|
216
178
|
if (actionStr === "install") {
|
|
217
|
-
const { installAgentBrowser } = await import('./chunks/
|
|
179
|
+
const { installAgentBrowser } = await import('./chunks/installer.mjs');
|
|
218
180
|
await installAgentBrowser(options);
|
|
219
181
|
} else if (actionStr === "uninstall") {
|
|
220
|
-
const { uninstallAgentBrowser } = await import('./chunks/
|
|
182
|
+
const { uninstallAgentBrowser } = await import('./chunks/installer.mjs');
|
|
221
183
|
await uninstallAgentBrowser(options);
|
|
222
184
|
} else if (actionStr === "status") {
|
|
223
|
-
const { agentBrowserStatus } = await import('./chunks/
|
|
185
|
+
const { agentBrowserStatus } = await import('./chunks/commands.mjs');
|
|
224
186
|
await agentBrowserStatus(options);
|
|
225
187
|
} else if (actionStr === "start") {
|
|
226
|
-
const { startBrowserSession } = await import('./chunks/
|
|
188
|
+
const { startBrowserSession } = await import('./chunks/commands.mjs');
|
|
227
189
|
await startBrowserSession(argsArr[0], options);
|
|
228
190
|
} else if (actionStr === "stop") {
|
|
229
|
-
const { stopBrowserSession } = await import('./chunks/
|
|
191
|
+
const { stopBrowserSession } = await import('./chunks/commands.mjs');
|
|
230
192
|
await stopBrowserSession(options);
|
|
231
193
|
} else if (actionStr === "config") {
|
|
232
|
-
const { configureBrowser } = await import('./chunks/
|
|
194
|
+
const { configureBrowser } = await import('./chunks/commands.mjs');
|
|
233
195
|
await configureBrowser(options);
|
|
234
196
|
} else {
|
|
235
|
-
const { agentBrowserHelp } = await import('./chunks/
|
|
197
|
+
const { agentBrowserHelp } = await import('./chunks/commands.mjs');
|
|
236
198
|
agentBrowserHelp(options);
|
|
237
199
|
}
|
|
238
200
|
};
|
|
@@ -316,25 +278,25 @@ const COMMANDS = [
|
|
|
316
278
|
const argsArr = args;
|
|
317
279
|
const configOptions = { global: !!options.global, json: options.format === "json" };
|
|
318
280
|
if (!actionStr || actionStr === "list") {
|
|
319
|
-
const { listConfig } = await import('./chunks/
|
|
281
|
+
const { listConfig } = await import('./chunks/config2.mjs');
|
|
320
282
|
await listConfig(configOptions);
|
|
321
283
|
} else if (actionStr === "get") {
|
|
322
|
-
const { getConfig } = await import('./chunks/
|
|
284
|
+
const { getConfig } = await import('./chunks/config2.mjs');
|
|
323
285
|
await getConfig(argsArr[0] || "", configOptions);
|
|
324
286
|
} else if (actionStr === "set") {
|
|
325
|
-
const { setConfig } = await import('./chunks/
|
|
287
|
+
const { setConfig } = await import('./chunks/config2.mjs');
|
|
326
288
|
await setConfig(argsArr[0] || "", argsArr[1] || "", configOptions);
|
|
327
289
|
} else if (actionStr === "unset") {
|
|
328
|
-
const { unsetConfig } = await import('./chunks/
|
|
290
|
+
const { unsetConfig } = await import('./chunks/config2.mjs');
|
|
329
291
|
await unsetConfig(argsArr[0] || "", configOptions);
|
|
330
292
|
} else if (actionStr === "reset") {
|
|
331
|
-
const { resetConfig } = await import('./chunks/
|
|
293
|
+
const { resetConfig } = await import('./chunks/config2.mjs');
|
|
332
294
|
await resetConfig(configOptions);
|
|
333
295
|
} else if (actionStr === "edit") {
|
|
334
|
-
const { editConfig } = await import('./chunks/
|
|
296
|
+
const { editConfig } = await import('./chunks/config2.mjs');
|
|
335
297
|
await editConfig(configOptions);
|
|
336
298
|
} else if (actionStr === "validate") {
|
|
337
|
-
const { validateConfig } = await import('./chunks/
|
|
299
|
+
const { validateConfig } = await import('./chunks/config2.mjs');
|
|
338
300
|
await validateConfig(configOptions);
|
|
339
301
|
} else {
|
|
340
302
|
console.error(`Unknown config action: ${actionStr}`);
|
|
@@ -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",
|
|
@@ -518,7 +442,7 @@ const COMMANDS = [
|
|
|
518
442
|
],
|
|
519
443
|
loader: async () => {
|
|
520
444
|
return async (options, action, args) => {
|
|
521
|
-
const { initI18n } = await import('./chunks/
|
|
445
|
+
const { initI18n } = await import('./chunks/index.mjs');
|
|
522
446
|
await initI18n(options.lang || "zh-CN");
|
|
523
447
|
const actionStr = action;
|
|
524
448
|
const argsArr = args;
|
|
@@ -700,7 +624,7 @@ const COMMANDS = [
|
|
|
700
624
|
aliases: ["wf"],
|
|
701
625
|
tier: "extended",
|
|
702
626
|
loader: async () => {
|
|
703
|
-
const { listWorkflowsQuick } = await import('./chunks/
|
|
627
|
+
const { listWorkflowsQuick } = await import('./chunks/workflows.mjs');
|
|
704
628
|
return async () => {
|
|
705
629
|
await listWorkflowsQuick();
|
|
706
630
|
};
|
|
@@ -827,7 +751,7 @@ const COMMANDS = [
|
|
|
827
751
|
return async (options, action, args) => {
|
|
828
752
|
const actionStr = action;
|
|
829
753
|
const argsArr = args || [];
|
|
830
|
-
const { getPostmortemManager } = await import('./chunks/
|
|
754
|
+
const { getPostmortemManager } = await import('./chunks/index2.mjs');
|
|
831
755
|
const manager = getPostmortemManager(process__default.cwd());
|
|
832
756
|
if (actionStr === "init") {
|
|
833
757
|
const ora = (await import('ora')).default;
|
|
@@ -1067,7 +991,7 @@ ${ansis.yellow("By Status:")}`);
|
|
|
1067
991
|
{ flags: "--json", description: "Output in JSON format" }
|
|
1068
992
|
],
|
|
1069
993
|
loader: async () => {
|
|
1070
|
-
const { configCommand } = await import('./chunks/
|
|
994
|
+
const { configCommand } = await import('./chunks/config2.mjs');
|
|
1071
995
|
return async (options, action, key, value) => {
|
|
1072
996
|
const args = [];
|
|
1073
997
|
if (key !== void 0)
|
|
@@ -1323,6 +1247,44 @@ ${ansis.yellow("By Status:")}`);
|
|
|
1323
1247
|
};
|
|
1324
1248
|
}
|
|
1325
1249
|
},
|
|
1250
|
+
// ==================== Brain Dashboard ====================
|
|
1251
|
+
{
|
|
1252
|
+
name: "status",
|
|
1253
|
+
description: "Brain Dashboard - setup health score and recommendations",
|
|
1254
|
+
aliases: ["st", "brain"],
|
|
1255
|
+
tier: "core",
|
|
1256
|
+
options: [
|
|
1257
|
+
{ flags: "--json", description: "Output as JSON" },
|
|
1258
|
+
{ flags: "--compact", description: "Compact output" }
|
|
1259
|
+
],
|
|
1260
|
+
loader: async () => {
|
|
1261
|
+
const { status } = await import('./chunks/status.mjs');
|
|
1262
|
+
return async (options) => {
|
|
1263
|
+
await status({
|
|
1264
|
+
json: options.json,
|
|
1265
|
+
compact: options.compact
|
|
1266
|
+
});
|
|
1267
|
+
};
|
|
1268
|
+
}
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
name: "boost",
|
|
1272
|
+
description: "One-click optimization - auto-apply all recommendations",
|
|
1273
|
+
tier: "core",
|
|
1274
|
+
options: [
|
|
1275
|
+
{ flags: "--dry-run, -d", description: "Preview without applying" },
|
|
1276
|
+
{ flags: "--yes, -y", description: "Skip confirmation" }
|
|
1277
|
+
],
|
|
1278
|
+
loader: async () => {
|
|
1279
|
+
const { boost } = await import('./chunks/boost.mjs');
|
|
1280
|
+
return async (options) => {
|
|
1281
|
+
await boost({
|
|
1282
|
+
dryRun: options.dryRun,
|
|
1283
|
+
yes: options.yes
|
|
1284
|
+
});
|
|
1285
|
+
};
|
|
1286
|
+
}
|
|
1287
|
+
},
|
|
1326
1288
|
// ==================== Plugin Management ====================
|
|
1327
1289
|
{
|
|
1328
1290
|
name: "add <source>",
|
|
@@ -1336,7 +1298,7 @@ ${ansis.yellow("By Status:")}`);
|
|
|
1336
1298
|
{ flags: "--lang, -l <lang>", description: "Display language (zh-CN, en)" }
|
|
1337
1299
|
],
|
|
1338
1300
|
loader: async () => {
|
|
1339
|
-
const { addCommand } = await import('./chunks/
|
|
1301
|
+
const { addCommand } = await import('./chunks/index3.mjs');
|
|
1340
1302
|
return async (options, source) => {
|
|
1341
1303
|
await addCommand(source, {
|
|
1342
1304
|
type: options.type,
|
|
@@ -1354,7 +1316,7 @@ let currentLang = "en";
|
|
|
1354
1316
|
async function initI18nLazy(lang) {
|
|
1355
1317
|
if (i18nInitialized && lang === currentLang)
|
|
1356
1318
|
return;
|
|
1357
|
-
const { initI18n, changeLanguage } = await import('./chunks/
|
|
1319
|
+
const { initI18n, changeLanguage } = await import('./chunks/index.mjs');
|
|
1358
1320
|
if (!i18nInitialized) {
|
|
1359
1321
|
await initI18n(lang || "en");
|
|
1360
1322
|
i18nInitialized = true;
|
|
@@ -1595,6 +1557,8 @@ function customizeHelpLazy(_sections, version) {
|
|
|
1595
1557
|
body: [
|
|
1596
1558
|
` ${cyan("ccjk")} Interactive menu ${green("(default)")}`,
|
|
1597
1559
|
` ${cyan("ccjk quick-setup")} ${gray("qs")} One-click configuration ${green("NEW")}`,
|
|
1560
|
+
` ${cyan("ccjk status")} ${gray("st")} Brain Dashboard - health score ${green("NEW")}`,
|
|
1561
|
+
` ${cyan("ccjk boost")} One-click optimization ${green("NEW")}`,
|
|
1598
1562
|
` ${cyan("ccjk init")} ${gray("i")} Initialize configuration`,
|
|
1599
1563
|
` ${cyan("ccjk update")} ${gray("u")} Update prompts & workflows`,
|
|
1600
1564
|
` ${cyan("ccjk doctor")} Health check & diagnostics`,
|
|
@@ -1729,6 +1693,11 @@ async function tryQuickProviderLaunch() {
|
|
|
1729
1693
|
}
|
|
1730
1694
|
}
|
|
1731
1695
|
function bootstrapCloudServices() {
|
|
1696
|
+
const args = process__default.argv.slice(2);
|
|
1697
|
+
const isInteractiveMenu = args.length === 0 || args.length === 1 && ["-l", "--lang"].includes(args[0]);
|
|
1698
|
+
if (isInteractiveMenu) {
|
|
1699
|
+
return;
|
|
1700
|
+
}
|
|
1732
1701
|
setImmediate(async () => {
|
|
1733
1702
|
try {
|
|
1734
1703
|
const { initializeContextFeatures } = await import('./chunks/startup.mjs');
|
|
@@ -1737,38 +1706,18 @@ function bootstrapCloudServices() {
|
|
|
1737
1706
|
await autoBootstrap();
|
|
1738
1707
|
const { autoUpgrade } = await import('./chunks/silent-updater.mjs');
|
|
1739
1708
|
await autoUpgrade();
|
|
1740
|
-
const { activateSuperpowers } = await import('./chunks/
|
|
1709
|
+
const { activateSuperpowers } = await import('./chunks/index4.mjs');
|
|
1741
1710
|
await activateSuperpowers("zh-CN");
|
|
1742
1711
|
const { setupBrainHook } = await import('./chunks/cli-hook.mjs');
|
|
1743
1712
|
await setupBrainHook({
|
|
1744
1713
|
enabled: true,
|
|
1745
|
-
silent:
|
|
1746
|
-
//
|
|
1714
|
+
silent: true,
|
|
1715
|
+
// 静默模式,不打扰用户
|
|
1747
1716
|
fallbackToClaudeCode: true
|
|
1748
1717
|
});
|
|
1749
|
-
await showWelcomeIfNeeded();
|
|
1750
1718
|
} catch {
|
|
1751
1719
|
}
|
|
1752
1720
|
});
|
|
1753
1721
|
}
|
|
1754
|
-
async function showWelcomeIfNeeded() {
|
|
1755
|
-
try {
|
|
1756
|
-
const args = process__default.argv.slice(2);
|
|
1757
|
-
if (args.length > 0 && !args[0].startsWith("-")) {
|
|
1758
|
-
return;
|
|
1759
|
-
}
|
|
1760
|
-
const { scanCapabilities } = await import('./chunks/index.mjs');
|
|
1761
|
-
const scanResult = scanCapabilities();
|
|
1762
|
-
const { generateWelcome } = await import('./chunks/index.mjs');
|
|
1763
|
-
const welcome = generateWelcome(scanResult, {
|
|
1764
|
-
showVersion: true,
|
|
1765
|
-
showStats: true,
|
|
1766
|
-
showRecommendations: true,
|
|
1767
|
-
compact: false
|
|
1768
|
-
});
|
|
1769
|
-
console.log(welcome);
|
|
1770
|
-
} catch {
|
|
1771
|
-
}
|
|
1772
|
-
}
|
|
1773
1722
|
|
|
1774
1723
|
runLazyCli().catch(console.error);
|