ccjk 13.3.6 → 13.3.7
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-teams.mjs +7 -5
- package/dist/chunks/agent.mjs +2 -2
- package/dist/chunks/agents.mjs +16 -16
- package/dist/chunks/api-cli.mjs +6 -6
- package/dist/chunks/api-providers.mjs +1 -1
- package/dist/chunks/api.mjs +4 -4
- package/dist/chunks/auto-bootstrap.mjs +1 -1
- package/dist/chunks/auto-fix.mjs +49 -4
- package/dist/chunks/auto-fixer.mjs +7 -5
- package/dist/chunks/auto-init.mjs +9 -7208
- package/dist/chunks/auto-memory-bridge.mjs +9 -3
- package/dist/chunks/auto-updater.mjs +9 -9
- package/dist/chunks/auto-upgrade.mjs +5 -3
- package/dist/chunks/banner.mjs +4 -3
- package/dist/chunks/boost.mjs +118 -62
- package/dist/chunks/ccjk-agents.mjs +3 -3
- package/dist/chunks/ccjk-all.mjs +7 -7
- package/dist/chunks/ccjk-config.mjs +2 -2
- package/dist/chunks/ccjk-hooks.mjs +4 -4
- package/dist/chunks/ccjk-mcp.mjs +5 -5
- package/dist/chunks/ccjk-setup.mjs +5 -5
- package/dist/chunks/ccjk-skills.mjs +5 -5
- package/dist/chunks/ccr.mjs +18 -16
- package/dist/chunks/ccu.mjs +2 -2
- package/dist/chunks/check-updates.mjs +8 -8
- package/dist/chunks/claude-code-config-manager.mjs +12 -10
- package/dist/chunks/claude-code-incremental-manager.mjs +7 -7
- package/dist/chunks/claude-config.mjs +1 -1
- package/dist/chunks/claude-wrapper.mjs +1 -1
- package/dist/chunks/cli-hook.mjs +15 -15
- package/dist/chunks/codex-config-switch.mjs +7 -7
- package/dist/chunks/codex-provider-manager.mjs +7 -7
- package/dist/chunks/codex-uninstaller.mjs +2 -2
- package/dist/chunks/codex.mjs +5 -5
- package/dist/chunks/commands.mjs +2 -2
- package/dist/chunks/commands2.mjs +3 -3
- package/dist/chunks/commit.mjs +2 -2
- package/dist/chunks/completion.mjs +2 -2
- package/dist/chunks/config-consolidator.mjs +2 -2
- package/dist/chunks/config-switch.mjs +8 -8
- package/dist/chunks/config.mjs +6 -5
- package/dist/chunks/config2.mjs +5 -5
- package/dist/chunks/config3.mjs +4 -4
- package/dist/chunks/constants.mjs +1 -1
- package/dist/chunks/context-opt.mjs +92 -90
- package/dist/chunks/context.mjs +659 -0
- package/dist/chunks/dashboard.mjs +14 -9
- package/dist/chunks/doctor.mjs +4 -4
- package/dist/chunks/eval.mjs +502 -0
- package/dist/chunks/evolution.mjs +46 -39
- package/dist/chunks/health-alerts.mjs +9 -9
- package/dist/chunks/help.mjs +1 -1
- package/dist/chunks/hook-installer.mjs +6 -3
- package/dist/chunks/index.mjs +23 -0
- package/dist/chunks/index10.mjs +634 -571
- package/dist/chunks/index11.mjs +1061 -569
- package/dist/chunks/index12.mjs +914 -1076
- package/dist/chunks/index13.mjs +136 -951
- package/dist/chunks/index14.mjs +209 -185
- package/dist/chunks/index2.mjs +19 -24
- package/dist/chunks/index3.mjs +19085 -12
- package/dist/chunks/index4.mjs +16 -19092
- package/dist/chunks/index5.mjs +7602 -16
- package/dist/chunks/index6.mjs +159 -7590
- package/dist/chunks/index7.mjs +1602 -171
- package/dist/chunks/index8.mjs +19 -1602
- package/dist/chunks/index9.mjs +612 -15
- package/dist/chunks/init.mjs +26 -19
- package/dist/chunks/installer.mjs +5 -5
- package/dist/chunks/installer2.mjs +2 -2
- package/dist/chunks/intent-engine.mjs +1 -1
- package/dist/chunks/interview.mjs +4 -4
- package/dist/chunks/manager.mjs +1 -1
- package/dist/chunks/marketplace.mjs +2 -2
- package/dist/chunks/mcp-cli.mjs +12 -12
- package/dist/chunks/mcp.mjs +8 -8
- package/dist/chunks/memory.mjs +8 -8
- package/dist/chunks/menu-hierarchical.mjs +24 -22
- package/dist/chunks/menu.mjs +27 -22
- package/dist/chunks/metrics-display.mjs +2 -2
- package/dist/chunks/migrator.mjs +1 -1
- package/dist/chunks/monitor.mjs +2 -2
- package/dist/chunks/notification.mjs +6 -6
- package/dist/chunks/onboarding-wizard.mjs +6 -5
- package/dist/chunks/onboarding.mjs +4 -4
- package/dist/chunks/package.mjs +1 -1
- package/dist/chunks/paradigm.mjs +2 -2
- package/dist/chunks/permission-manager.mjs +2 -2
- package/dist/chunks/permissions.mjs +3 -3
- package/dist/chunks/persistence-manager.mjs +19 -12
- package/dist/chunks/persistence.mjs +5 -3
- package/dist/chunks/plugin.mjs +2 -2
- package/dist/chunks/prompts.mjs +5 -5
- package/dist/chunks/providers.mjs +2 -2
- package/dist/chunks/quick-actions.mjs +7 -6
- package/dist/chunks/quick-provider.mjs +5 -4
- package/dist/chunks/quick-setup.mjs +20 -15
- package/dist/chunks/remote.mjs +15 -16
- package/dist/chunks/{convoy-manager.mjs → session-manager.mjs} +1129 -1095
- package/dist/chunks/session.mjs +2 -2
- package/dist/chunks/sessions.mjs +3 -3
- package/dist/chunks/silent-updater.mjs +1 -1
- package/dist/chunks/simple-config.mjs +2 -2
- package/dist/chunks/skill2.mjs +3 -3
- package/dist/chunks/skills-sync.mjs +5 -5
- package/dist/chunks/skills.mjs +3 -3
- package/dist/chunks/slash-commands.mjs +9 -8
- package/dist/chunks/smart-defaults.mjs +9 -5
- package/dist/chunks/startup.mjs +1 -1
- package/dist/chunks/stats.mjs +2 -2
- package/dist/chunks/status.mjs +37 -22
- package/dist/chunks/team.mjs +3 -3
- package/dist/chunks/thinking.mjs +4 -4
- package/dist/chunks/trace.mjs +2 -2
- package/dist/chunks/uninstall.mjs +9 -9
- package/dist/chunks/update.mjs +14 -11
- package/dist/chunks/upgrade-manager.mjs +3 -3
- package/dist/chunks/upgrade.mjs +25 -9
- package/dist/chunks/version-checker.mjs +4 -4
- package/dist/chunks/vim.mjs +3 -3
- package/dist/chunks/workflows.mjs +1 -1
- package/dist/chunks/wsl.mjs +1 -1
- package/dist/chunks/zero-config.mjs +4 -4
- package/dist/cli.mjs +60 -26
- package/dist/index.d.mts +4392 -4392
- package/dist/index.d.ts +4392 -4392
- package/dist/index.mjs +4314 -4314
- package/dist/shared/{ccjk.DcKLglJQ.mjs → ccjk.BIxuVL3_.mjs} +2 -2
- package/dist/shared/{ccjk.DJdmgr2d.mjs → ccjk.BJMRY2Ra.mjs} +5 -3
- package/dist/shared/{ccjk.B1TwPltj.mjs → ccjk.BOu1yav7.mjs} +3 -2
- package/dist/shared/{ccjk.mJpVRDZ8.mjs → ccjk.BWFpnOr3.mjs} +1 -1
- package/dist/shared/{ccjk.BfIpomdz.mjs → ccjk.CHUEFqmw.mjs} +3 -2
- package/dist/shared/{ccjk.CqdbaXqU.mjs → ccjk.CLUL0pAV.mjs} +9 -5
- package/dist/shared/{ccjk.Cot9p9_n.mjs → ccjk.Cjj8SVrn.mjs} +1 -1
- package/dist/shared/{ccjk.CfrpIIKy.mjs → ccjk.Crd_nEfj.mjs} +38 -20
- package/dist/shared/{ccjk.DCw2WnZU.mjs → ccjk.CvChMYvB.mjs} +1 -1
- package/dist/shared/{ccjk.CXzjn01x.mjs → ccjk.D8ZLYSZZ.mjs} +1 -1
- package/dist/shared/{ccjk.BrPUmTqm.mjs → ccjk.DJuyfrlL.mjs} +164 -82
- package/dist/shared/{ccjk.DHXfsrwn.mjs → ccjk.DRfdq6yl.mjs} +4 -4
- package/dist/shared/{ccjk.DXRAZcix.mjs → ccjk.DScm_NnL.mjs} +8 -4
- package/dist/shared/{ccjk.XsJWJuQP.mjs → ccjk.DfZKjHvG.mjs} +6 -128
- package/dist/shared/{ccjk.BFxsJM0k.mjs → ccjk.DwSebGy0.mjs} +4 -3
- package/dist/shared/ccjk.DxWqH-EF.mjs +170 -0
- package/dist/shared/{ccjk.Cwa_FiTX.mjs → ccjk.I6IuYdc_.mjs} +2 -2
- package/dist/shared/{ccjk.DpstNaeR.mjs → ccjk.KpFl2RDA.mjs} +3 -3
- package/dist/shared/{ccjk.dYDLfmph.mjs → ccjk._dESH4Rk.mjs} +1 -1
- package/dist/shared/{ccjk.BxSmJ8B7.mjs → ccjk.wLJHO0Af.mjs} +2 -1
- package/package.json +2 -1
- package/dist/chunks/index15.mjs +0 -218
- package/dist/shared/{ccjk.c-ETfBZ_.mjs → ccjk.eIn-g1yI.mjs} +96 -96
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from 'node:fs';
|
|
2
|
-
import a from './
|
|
2
|
+
import a from './index2.mjs';
|
|
3
3
|
import { SETTINGS_FILE } from './constants.mjs';
|
|
4
|
-
import { ensureI18nInitialized, i18n } from './
|
|
4
|
+
import { ensureI18nInitialized, i18n } from './index5.mjs';
|
|
5
5
|
import { writeJsonConfig } from './json-config.mjs';
|
|
6
6
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
7
7
|
import 'node:os';
|
|
@@ -18,7 +18,8 @@ function t(key, opts) {
|
|
|
18
18
|
return i18n.t(`agent-teams:${key}`, opts);
|
|
19
19
|
}
|
|
20
20
|
function readSettings() {
|
|
21
|
-
if (!existsSync(SETTINGS_FILE))
|
|
21
|
+
if (!existsSync(SETTINGS_FILE))
|
|
22
|
+
return {};
|
|
22
23
|
try {
|
|
23
24
|
return JSON.parse(readFileSync(SETTINGS_FILE, "utf-8"));
|
|
24
25
|
} catch {
|
|
@@ -31,7 +32,8 @@ function isAgentTeamsEnabled() {
|
|
|
31
32
|
}
|
|
32
33
|
function setAgentTeams(enabled) {
|
|
33
34
|
const settings = readSettings();
|
|
34
|
-
if (!settings.env)
|
|
35
|
+
if (!settings.env)
|
|
36
|
+
settings.env = {};
|
|
35
37
|
if (enabled) {
|
|
36
38
|
settings.env[ENV_KEY] = "1";
|
|
37
39
|
} else {
|
|
@@ -71,7 +73,7 @@ async function agentTeamsCommand(options) {
|
|
|
71
73
|
return;
|
|
72
74
|
}
|
|
73
75
|
const current = isAgentTeamsEnabled();
|
|
74
|
-
const { default: inquirer } = await import('./
|
|
76
|
+
const { default: inquirer } = await import('./index3.mjs').then(function (n) { return n.c; });
|
|
75
77
|
const { action } = await inquirer.prompt([{
|
|
76
78
|
type: "list",
|
|
77
79
|
name: "action",
|
package/dist/chunks/agent.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import a from './
|
|
1
|
+
import a from './index2.mjs';
|
|
2
2
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, readdirSync } from 'node:fs';
|
|
3
3
|
import { CCJK_CONFIG_DIR } from './constants.mjs';
|
|
4
4
|
import { w as writeAgentFile } from '../shared/ccjk.CfKKcvWy.mjs';
|
|
@@ -6,7 +6,7 @@ import { g as getPluginManager } from '../shared/ccjk.DTdjs-qK.mjs';
|
|
|
6
6
|
import { homedir } from 'node:os';
|
|
7
7
|
import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
8
8
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
9
|
-
import './
|
|
9
|
+
import './index5.mjs';
|
|
10
10
|
import 'node:process';
|
|
11
11
|
import 'node:url';
|
|
12
12
|
import './main.mjs';
|
package/dist/chunks/agents.mjs
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import a from './
|
|
2
|
-
import ora from './index8.mjs';
|
|
1
|
+
import a from './index2.mjs';
|
|
3
2
|
import { n as nanoid } from '../shared/ccjk.BoApaI4j.mjs';
|
|
3
|
+
import ora from './index7.mjs';
|
|
4
|
+
import { c as contextLoader, S as SessionIntelligence, g as getGlobalConvoyManager } from './session-manager.mjs';
|
|
4
5
|
import { EventEmitter } from 'node:events';
|
|
5
6
|
import { c as resolve } from '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
6
|
-
import { e as executionTracer } from '../shared/ccjk.
|
|
7
|
-
import { t as taskPersistence } from '../shared/ccjk.
|
|
8
|
-
import { c as contextLoader, S as SessionIntelligence, g as getGlobalConvoyManager } from './convoy-manager.mjs';
|
|
7
|
+
import { e as executionTracer } from '../shared/ccjk.CHUEFqmw.mjs';
|
|
8
|
+
import { t as taskPersistence } from '../shared/ccjk.DwSebGy0.mjs';
|
|
9
9
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
10
|
+
import 'node:crypto';
|
|
10
11
|
import 'node:process';
|
|
11
12
|
import '../shared/ccjk.Cjgrln_h.mjs';
|
|
12
13
|
import '../shared/ccjk.DeWpAShp.mjs';
|
|
13
|
-
import 'node:crypto';
|
|
14
|
-
import 'better-sqlite3';
|
|
15
14
|
import 'node:fs';
|
|
16
|
-
import 'tinyglobby';
|
|
17
|
-
import '../shared/ccjk.BxSmJ8B7.mjs';
|
|
18
|
-
import 'node:child_process';
|
|
19
|
-
import 'node:fs/promises';
|
|
20
15
|
import 'node:os';
|
|
21
|
-
import 'node:path';
|
|
22
16
|
import './main.mjs';
|
|
23
17
|
import 'module';
|
|
18
|
+
import 'node:child_process';
|
|
19
|
+
import 'node:path';
|
|
24
20
|
import 'node:stream';
|
|
25
21
|
import 'node:readline';
|
|
22
|
+
import 'tinyglobby';
|
|
23
|
+
import '../shared/ccjk.wLJHO0Af.mjs';
|
|
24
|
+
import 'node:fs/promises';
|
|
25
|
+
import 'better-sqlite3';
|
|
26
26
|
|
|
27
27
|
const DEFAULT_AGENT_TYPE_MAPPINGS = {
|
|
28
28
|
"typescript": "coder",
|
|
@@ -3682,7 +3682,7 @@ async function showStatus(options) {
|
|
|
3682
3682
|
console.log(a.bold("Active Convoys:"));
|
|
3683
3683
|
console.log("");
|
|
3684
3684
|
for (const convoy of activeConvoys) {
|
|
3685
|
-
console.log(` ${a.bold(convoy.name)} ${a.dim(
|
|
3685
|
+
console.log(` ${a.bold(convoy.name)} ${a.dim(`(${convoy.id})`)}`);
|
|
3686
3686
|
console.log(a.dim(` Status: ${convoy.status}`));
|
|
3687
3687
|
console.log(a.dim(` Progress: ${convoy.progress}%`));
|
|
3688
3688
|
console.log(a.dim(` Tasks: ${convoy.completedTasks}/${convoy.totalTasks}`));
|
|
@@ -3695,7 +3695,7 @@ async function showStatus(options) {
|
|
|
3695
3695
|
console.log("");
|
|
3696
3696
|
for (const convoy of recentConvoys) {
|
|
3697
3697
|
const statusIcon = convoy.status === "completed" ? "\u2705" : convoy.status === "failed" ? "\u274C" : "\u23F8\uFE0F";
|
|
3698
|
-
console.log(` ${statusIcon} ${a.bold(convoy.name)} ${a.dim(
|
|
3698
|
+
console.log(` ${statusIcon} ${a.bold(convoy.name)} ${a.dim(`(${convoy.id})`)}`);
|
|
3699
3699
|
console.log(a.dim(` Status: ${convoy.status}`));
|
|
3700
3700
|
console.log(a.dim(` Progress: ${convoy.progress}%`));
|
|
3701
3701
|
console.log(a.dim(` Created: ${new Date(convoy.createdAt).toLocaleString()}`));
|
|
@@ -3711,7 +3711,7 @@ async function listWorkflows(options) {
|
|
|
3711
3711
|
}
|
|
3712
3712
|
console.log(a.cyan("\n\u{1F4CB} Available Workflow Presets\n"));
|
|
3713
3713
|
for (const workflow of WORKFLOW_PRESETS) {
|
|
3714
|
-
console.log(` ${a.bold(workflow.name)} ${a.dim(
|
|
3714
|
+
console.log(` ${a.bold(workflow.name)} ${a.dim(`(${workflow.id})`)}`);
|
|
3715
3715
|
console.log(a.dim(` ${workflow.description}`));
|
|
3716
3716
|
console.log("");
|
|
3717
3717
|
}
|
|
@@ -3721,7 +3721,7 @@ async function listWorkflows(options) {
|
|
|
3721
3721
|
console.log(a.dim("Example:"));
|
|
3722
3722
|
console.log(a.dim(' agents run --task "Find performance bottlenecks" --workflow optimize'));
|
|
3723
3723
|
}
|
|
3724
|
-
async function cancelConvoy(convoyId,
|
|
3724
|
+
async function cancelConvoy(convoyId, _options) {
|
|
3725
3725
|
if (!convoyId) {
|
|
3726
3726
|
console.log(a.red("Error: Please specify a convoy ID"));
|
|
3727
3727
|
console.log(a.dim("Example: agents cancel cv-abc123"));
|
package/dist/chunks/api-cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import a from './
|
|
2
|
-
import { i18n } from './
|
|
1
|
+
import a from './index2.mjs';
|
|
2
|
+
import { i18n } from './index5.mjs';
|
|
3
3
|
import { d as configureApi, g as getExistingApiConfig } from './config.mjs';
|
|
4
4
|
import { g as getAllPresets } from '../shared/ccjk.DopKzo3z.mjs';
|
|
5
5
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
@@ -8,7 +8,7 @@ import 'node:process';
|
|
|
8
8
|
import 'node:url';
|
|
9
9
|
import '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
10
10
|
import '../shared/ccjk.RyizuzOI.mjs';
|
|
11
|
-
import './
|
|
11
|
+
import './index3.mjs';
|
|
12
12
|
import 'node:readline';
|
|
13
13
|
import 'stream';
|
|
14
14
|
import 'node:tty';
|
|
@@ -33,13 +33,13 @@ import './main.mjs';
|
|
|
33
33
|
import 'module';
|
|
34
34
|
import 'node:child_process';
|
|
35
35
|
import 'node:stream';
|
|
36
|
-
import '../shared/ccjk.
|
|
36
|
+
import '../shared/ccjk.DScm_NnL.mjs';
|
|
37
37
|
|
|
38
38
|
async function apiConfigure(options = {}) {
|
|
39
39
|
const lang = options.lang || i18n.language || "en";
|
|
40
40
|
const isZh = lang === "zh-CN";
|
|
41
41
|
if (options.interactive !== false && !options.provider) {
|
|
42
|
-
const { runConfigWizard } = await import('./
|
|
42
|
+
const { runConfigWizard } = await import('./index.mjs');
|
|
43
43
|
await runConfigWizard(lang);
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
@@ -62,7 +62,7 @@ async function apiConfigure(options = {}) {
|
|
|
62
62
|
process.exit(1);
|
|
63
63
|
}
|
|
64
64
|
if (!options.yes) {
|
|
65
|
-
const inquirer = await import('./
|
|
65
|
+
const inquirer = await import('./index3.mjs').then(function (n) { return n.c; });
|
|
66
66
|
const { confirm } = await inquirer.default.prompt([{
|
|
67
67
|
type: "confirm",
|
|
68
68
|
name: "confirm",
|
package/dist/chunks/api.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import a from './
|
|
2
|
-
import { i18n, format } from './
|
|
1
|
+
import a from './index2.mjs';
|
|
2
|
+
import { i18n, format } from './index5.mjs';
|
|
3
3
|
import { STATUS, COLORS as theme } from './banner.mjs';
|
|
4
|
-
import { r as runConfigWizard, t as testApiConnection, d as displayCurrentStatus, q as quickSetup } from '../shared/ccjk.
|
|
4
|
+
import { r as runConfigWizard, t as testApiConnection, d as displayCurrentStatus, q as quickSetup } from '../shared/ccjk.I6IuYdc_.mjs';
|
|
5
5
|
import { g as getAllPresets } from '../shared/ccjk.DopKzo3z.mjs';
|
|
6
6
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
7
7
|
import 'node:fs';
|
|
@@ -9,7 +9,7 @@ import 'node:process';
|
|
|
9
9
|
import 'node:url';
|
|
10
10
|
import '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
11
11
|
import '../shared/ccjk.gDEDGD_t.mjs';
|
|
12
|
-
import './
|
|
12
|
+
import './index3.mjs';
|
|
13
13
|
import 'node:readline';
|
|
14
14
|
import 'stream';
|
|
15
15
|
import 'node:tty';
|
|
@@ -4,7 +4,7 @@ import { release, platform, type, homedir, hostname } from 'node:os';
|
|
|
4
4
|
import { fileURLToPath } from 'node:url';
|
|
5
5
|
import { CCJK_CONFIG_DIR } from './constants.mjs';
|
|
6
6
|
import { j as join, d as dirname } from '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
7
|
-
import './
|
|
7
|
+
import './index5.mjs';
|
|
8
8
|
import 'node:process';
|
|
9
9
|
|
|
10
10
|
const __filename = fileURLToPath(import.meta.url);
|
package/dist/chunks/auto-fix.mjs
CHANGED
|
@@ -1,6 +1,43 @@
|
|
|
1
1
|
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
|
2
|
-
import { join } from 'node:path';
|
|
3
2
|
import { homedir } from 'node:os';
|
|
3
|
+
import { join } from 'node:path';
|
|
4
|
+
import { n as needsMigration, m as migrateSettingsForTokenRetrieval } from '../shared/ccjk.DxWqH-EF.mjs';
|
|
5
|
+
import './index2.mjs';
|
|
6
|
+
import '../shared/ccjk.BAGoDD49.mjs';
|
|
7
|
+
import './constants.mjs';
|
|
8
|
+
import './index5.mjs';
|
|
9
|
+
import 'node:process';
|
|
10
|
+
import 'node:url';
|
|
11
|
+
import '../shared/ccjk.bQ7Dh1g4.mjs';
|
|
12
|
+
import './claude-code-config-manager.mjs';
|
|
13
|
+
import '../shared/ccjk.RyizuzOI.mjs';
|
|
14
|
+
import './ccjk-config.mjs';
|
|
15
|
+
import '../shared/ccjk.BBtCGd_g.mjs';
|
|
16
|
+
import './index6.mjs';
|
|
17
|
+
import './fs-operations.mjs';
|
|
18
|
+
import 'node:crypto';
|
|
19
|
+
import 'node:fs/promises';
|
|
20
|
+
import './json-config.mjs';
|
|
21
|
+
import './config.mjs';
|
|
22
|
+
import './index3.mjs';
|
|
23
|
+
import 'node:readline';
|
|
24
|
+
import 'stream';
|
|
25
|
+
import 'node:tty';
|
|
26
|
+
import 'node:async_hooks';
|
|
27
|
+
import '../shared/ccjk.Cjgrln_h.mjs';
|
|
28
|
+
import 'node:util';
|
|
29
|
+
import 'tty';
|
|
30
|
+
import 'fs';
|
|
31
|
+
import 'child_process';
|
|
32
|
+
import 'buffer';
|
|
33
|
+
import 'string_decoder';
|
|
34
|
+
import './claude-config.mjs';
|
|
35
|
+
import './platform.mjs';
|
|
36
|
+
import './main.mjs';
|
|
37
|
+
import 'module';
|
|
38
|
+
import 'node:child_process';
|
|
39
|
+
import 'node:stream';
|
|
40
|
+
import '../shared/ccjk.DScm_NnL.mjs';
|
|
4
41
|
|
|
5
42
|
async function detectSettingsIssues() {
|
|
6
43
|
const issues = [];
|
|
@@ -25,6 +62,14 @@ async function detectSettingsIssues() {
|
|
|
25
62
|
try {
|
|
26
63
|
const content = readFileSync(settingsPath, "utf-8");
|
|
27
64
|
const settings = JSON.parse(content);
|
|
65
|
+
if (needsMigration()) {
|
|
66
|
+
issues.push({
|
|
67
|
+
type: "outdated",
|
|
68
|
+
severity: "critical",
|
|
69
|
+
description: "Adaptive Claude model routing configuration needs repair",
|
|
70
|
+
fix: async () => migrateSettingsForTokenRetrieval().success
|
|
71
|
+
});
|
|
72
|
+
}
|
|
28
73
|
if (!settings.apiType) {
|
|
29
74
|
issues.push({
|
|
30
75
|
type: "invalid",
|
|
@@ -48,7 +93,7 @@ async function detectSettingsIssues() {
|
|
|
48
93
|
}
|
|
49
94
|
});
|
|
50
95
|
}
|
|
51
|
-
} catch (
|
|
96
|
+
} catch (_error) {
|
|
52
97
|
issues.push({
|
|
53
98
|
type: "invalid",
|
|
54
99
|
severity: "critical",
|
|
@@ -125,10 +170,10 @@ async function autoFixAll(silent = true) {
|
|
|
125
170
|
console.log(` \u274C Failed`);
|
|
126
171
|
}
|
|
127
172
|
}
|
|
128
|
-
} catch (
|
|
173
|
+
} catch (_error) {
|
|
129
174
|
failed++;
|
|
130
175
|
if (!silent) {
|
|
131
|
-
console.log(` \u274C Error: ${
|
|
176
|
+
console.log(` \u274C Error: ${_error}`);
|
|
132
177
|
}
|
|
133
178
|
}
|
|
134
179
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import a from './
|
|
1
|
+
import a from './index2.mjs';
|
|
2
2
|
import { x as K } from './main.mjs';
|
|
3
|
-
import { i18n } from './
|
|
3
|
+
import { i18n } from './index5.mjs';
|
|
4
4
|
import '../shared/ccjk.BAGoDD49.mjs';
|
|
5
5
|
import 'module';
|
|
6
6
|
import 'node:child_process';
|
|
@@ -16,8 +16,9 @@ async function autoFix(results, options = {}) {
|
|
|
16
16
|
const isZh = i18n.language === "zh-CN";
|
|
17
17
|
const fixable = results.filter((r) => r.status !== "pass" && r.command);
|
|
18
18
|
const report = { attempted: 0, succeeded: 0, failed: 0, results: [] };
|
|
19
|
-
if (fixable.length === 0)
|
|
20
|
-
|
|
19
|
+
if (fixable.length === 0)
|
|
20
|
+
return report;
|
|
21
|
+
const { default: inquirer } = await import('./index3.mjs').then(function (n) { return n.c; });
|
|
21
22
|
for (const result of fixable) {
|
|
22
23
|
const cmd = result.command;
|
|
23
24
|
console.log("");
|
|
@@ -40,7 +41,8 @@ async function autoFix(results, options = {}) {
|
|
|
40
41
|
}]);
|
|
41
42
|
shouldRun = confirm;
|
|
42
43
|
}
|
|
43
|
-
if (!shouldRun)
|
|
44
|
+
if (!shouldRun)
|
|
45
|
+
continue;
|
|
44
46
|
report.attempted++;
|
|
45
47
|
const start = Date.now();
|
|
46
48
|
try {
|