ccjk 4.0.0-beta.1 → 4.0.0-beta.3
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/LICENSE +50 -1
- package/dist/chunks/claude-wrapper.mjs +3587 -394
- package/dist/chunks/codex.mjs +3 -3
- package/dist/chunks/context.mjs +737 -214
- package/dist/chunks/index3.mjs +19 -19
- package/dist/chunks/index4.mjs +8 -237
- package/dist/chunks/init.mjs +25 -9
- package/dist/chunks/menu.mjs +1 -1
- package/dist/chunks/notification.mjs +20 -20
- package/dist/chunks/package.mjs +1 -1
- package/dist/chunks/platform.mjs +21 -70
- package/dist/chunks/version-checker.mjs +31 -31
- package/dist/cli.mjs +8 -7
- package/dist/i18n/locales/en/errors.json +14 -1
- package/dist/i18n/locales/zh-CN/errors.json +14 -1
- package/dist/index.d.mts +271 -196
- package/dist/index.d.ts +271 -196
- package/dist/index.mjs +2 -2
- package/package.json +67 -63
- package/templates/claude-code/en/workflow/essential/commands/feat.md +6 -0
- package/templates/claude-code/zh-CN/workflow/essential/commands/feat.md +6 -0
- package/dist/chunks/context-manager.mjs +0 -641
package/dist/index.d.mts
CHANGED
|
@@ -1103,201 +1103,6 @@ interface SkillExport {
|
|
|
1103
1103
|
skills: CcjkSkill[];
|
|
1104
1104
|
}
|
|
1105
1105
|
|
|
1106
|
-
/**
|
|
1107
|
-
* Plugin metadata
|
|
1108
|
-
*/
|
|
1109
|
-
interface PluginMetadata {
|
|
1110
|
-
/** Plugin unique name */
|
|
1111
|
-
name: string;
|
|
1112
|
-
/** Plugin version (semver) */
|
|
1113
|
-
version: string;
|
|
1114
|
-
/** Plugin description */
|
|
1115
|
-
description: string;
|
|
1116
|
-
/** Plugin author */
|
|
1117
|
-
author?: string;
|
|
1118
|
-
/** Plugin homepage */
|
|
1119
|
-
homepage?: string;
|
|
1120
|
-
/** Plugin license */
|
|
1121
|
-
license?: string;
|
|
1122
|
-
/** Minimum CCJK version required */
|
|
1123
|
-
minCcjkVersion?: string;
|
|
1124
|
-
/** Plugin keywords for discovery */
|
|
1125
|
-
keywords?: string[];
|
|
1126
|
-
}
|
|
1127
|
-
/**
|
|
1128
|
-
* Workflow extension provided by plugin
|
|
1129
|
-
*/
|
|
1130
|
-
interface WorkflowExtension {
|
|
1131
|
-
id: string;
|
|
1132
|
-
name: Record<SupportedLang, string>;
|
|
1133
|
-
description?: Record<SupportedLang, string>;
|
|
1134
|
-
category: string;
|
|
1135
|
-
commands: string[];
|
|
1136
|
-
agents?: Array<{
|
|
1137
|
-
id: string;
|
|
1138
|
-
filename: string;
|
|
1139
|
-
required: boolean;
|
|
1140
|
-
}>;
|
|
1141
|
-
/** Template content or path relative to plugin */
|
|
1142
|
-
templates: Record<SupportedLang, string>;
|
|
1143
|
-
}
|
|
1144
|
-
/**
|
|
1145
|
-
* Agent extension provided by plugin
|
|
1146
|
-
*/
|
|
1147
|
-
interface AgentExtension {
|
|
1148
|
-
id: string;
|
|
1149
|
-
name: string;
|
|
1150
|
-
description: string;
|
|
1151
|
-
model: 'opus' | 'sonnet' | 'haiku' | 'inherit';
|
|
1152
|
-
/** Agent definition content (markdown) */
|
|
1153
|
-
definition: string;
|
|
1154
|
-
}
|
|
1155
|
-
/**
|
|
1156
|
-
* MCP service extension provided by plugin
|
|
1157
|
-
*/
|
|
1158
|
-
interface McpServiceExtension {
|
|
1159
|
-
id: string;
|
|
1160
|
-
name: Record<SupportedLang, string>;
|
|
1161
|
-
description?: Record<SupportedLang, string>;
|
|
1162
|
-
requiresApiKey: boolean;
|
|
1163
|
-
apiKeyEnvVar?: string;
|
|
1164
|
-
config: {
|
|
1165
|
-
type: 'stdio' | 'http';
|
|
1166
|
-
command?: string;
|
|
1167
|
-
args?: string[];
|
|
1168
|
-
url?: string;
|
|
1169
|
-
env?: Record<string, string>;
|
|
1170
|
-
};
|
|
1171
|
-
}
|
|
1172
|
-
/**
|
|
1173
|
-
* Output style extension provided by plugin
|
|
1174
|
-
*/
|
|
1175
|
-
interface OutputStyleExtension {
|
|
1176
|
-
id: string;
|
|
1177
|
-
name: Record<SupportedLang, string>;
|
|
1178
|
-
description?: Record<SupportedLang, string>;
|
|
1179
|
-
/** Style template content (markdown) */
|
|
1180
|
-
template: string;
|
|
1181
|
-
}
|
|
1182
|
-
/**
|
|
1183
|
-
* Command extension provided by plugin
|
|
1184
|
-
*/
|
|
1185
|
-
interface CommandExtension {
|
|
1186
|
-
name: string;
|
|
1187
|
-
description: string;
|
|
1188
|
-
aliases?: string[];
|
|
1189
|
-
options?: Array<{
|
|
1190
|
-
name: string;
|
|
1191
|
-
description: string;
|
|
1192
|
-
type: 'string' | 'boolean' | 'number';
|
|
1193
|
-
required?: boolean;
|
|
1194
|
-
default?: any;
|
|
1195
|
-
}>;
|
|
1196
|
-
/** Handler function as string (will be evaluated) */
|
|
1197
|
-
handler: string;
|
|
1198
|
-
}
|
|
1199
|
-
/**
|
|
1200
|
-
* Plugin context passed to lifecycle hooks
|
|
1201
|
-
*/
|
|
1202
|
-
interface PluginContext {
|
|
1203
|
-
/** CCJK version */
|
|
1204
|
-
ccjkVersion: string;
|
|
1205
|
-
/** Plugin config directory */
|
|
1206
|
-
configDir: string;
|
|
1207
|
-
/** i18n instance */
|
|
1208
|
-
i18n: any;
|
|
1209
|
-
/** Logger instance */
|
|
1210
|
-
logger: PluginLogger;
|
|
1211
|
-
/** Plugin storage */
|
|
1212
|
-
storage: PluginStorage;
|
|
1213
|
-
}
|
|
1214
|
-
/**
|
|
1215
|
-
* Plugin logger interface
|
|
1216
|
-
*/
|
|
1217
|
-
interface PluginLogger {
|
|
1218
|
-
info: (message: string) => void;
|
|
1219
|
-
warn: (message: string) => void;
|
|
1220
|
-
error: (message: string) => void;
|
|
1221
|
-
debug: (message: string) => void;
|
|
1222
|
-
}
|
|
1223
|
-
/**
|
|
1224
|
-
* Plugin storage interface
|
|
1225
|
-
*/
|
|
1226
|
-
interface PluginStorage {
|
|
1227
|
-
get: <T>(key: string) => T | undefined;
|
|
1228
|
-
set: <T>(key: string, value: T) => void;
|
|
1229
|
-
delete: (key: string) => void;
|
|
1230
|
-
clear: () => void;
|
|
1231
|
-
}
|
|
1232
|
-
/**
|
|
1233
|
-
* Main plugin interface
|
|
1234
|
-
*/
|
|
1235
|
-
interface CcjkPlugin {
|
|
1236
|
-
/** Plugin metadata */
|
|
1237
|
-
metadata: PluginMetadata;
|
|
1238
|
-
/** Lifecycle: Called when plugin is loaded */
|
|
1239
|
-
onLoad?: (context: PluginContext) => Promise<void>;
|
|
1240
|
-
/** Lifecycle: Called when plugin is unloaded */
|
|
1241
|
-
onUnload?: () => Promise<void>;
|
|
1242
|
-
/** Lifecycle: Called when CCJK starts */
|
|
1243
|
-
onStart?: (context: PluginContext) => Promise<void>;
|
|
1244
|
-
/** Extension points */
|
|
1245
|
-
workflows?: WorkflowExtension[];
|
|
1246
|
-
agents?: AgentExtension[];
|
|
1247
|
-
mcpServices?: McpServiceExtension[];
|
|
1248
|
-
outputStyles?: OutputStyleExtension[];
|
|
1249
|
-
commands?: CommandExtension[];
|
|
1250
|
-
skills?: CcjkSkill[];
|
|
1251
|
-
/** Configuration schema (JSON Schema) */
|
|
1252
|
-
configSchema?: Record<string, any>;
|
|
1253
|
-
}
|
|
1254
|
-
/**
|
|
1255
|
-
* Loaded plugin with runtime state
|
|
1256
|
-
*/
|
|
1257
|
-
interface LoadedPlugin {
|
|
1258
|
-
plugin: CcjkPlugin;
|
|
1259
|
-
path: string;
|
|
1260
|
-
enabled: boolean;
|
|
1261
|
-
loadedAt: Date;
|
|
1262
|
-
error?: string;
|
|
1263
|
-
}
|
|
1264
|
-
/**
|
|
1265
|
-
* Plugin registry entry
|
|
1266
|
-
*/
|
|
1267
|
-
interface PluginInfo {
|
|
1268
|
-
name: string;
|
|
1269
|
-
version: string;
|
|
1270
|
-
description: string;
|
|
1271
|
-
enabled: boolean;
|
|
1272
|
-
path: string;
|
|
1273
|
-
author?: string;
|
|
1274
|
-
}
|
|
1275
|
-
|
|
1276
|
-
/**
|
|
1277
|
-
* Load a plugin
|
|
1278
|
-
*/
|
|
1279
|
-
declare function loadPlugin(pathOrName: string): Promise<LoadedPlugin | null>;
|
|
1280
|
-
/**
|
|
1281
|
-
* Unload a plugin
|
|
1282
|
-
*/
|
|
1283
|
-
declare function unloadPlugin(name: string): Promise<boolean>;
|
|
1284
|
-
/**
|
|
1285
|
-
* Get all loaded plugins
|
|
1286
|
-
*/
|
|
1287
|
-
declare function getLoadedPlugins(): LoadedPlugin[];
|
|
1288
|
-
/**
|
|
1289
|
-
* List all plugins (loaded and discovered)
|
|
1290
|
-
*/
|
|
1291
|
-
declare function listPlugins(): Promise<PluginInfo[]>;
|
|
1292
|
-
/**
|
|
1293
|
-
* Enable a plugin
|
|
1294
|
-
*/
|
|
1295
|
-
declare function enablePlugin(name: string): Promise<boolean>;
|
|
1296
|
-
/**
|
|
1297
|
-
* Disable a plugin
|
|
1298
|
-
*/
|
|
1299
|
-
declare function disablePlugin(name: string): Promise<boolean>;
|
|
1300
|
-
|
|
1301
1106
|
/**
|
|
1302
1107
|
* Get built-in skill by ID
|
|
1303
1108
|
*/
|
|
@@ -1575,6 +1380,176 @@ interface ClaudeConfiguration {
|
|
|
1575
1380
|
installMethod?: InstallMethod$1;
|
|
1576
1381
|
}
|
|
1577
1382
|
|
|
1383
|
+
/**
|
|
1384
|
+
* Plugin metadata
|
|
1385
|
+
*/
|
|
1386
|
+
interface PluginMetadata {
|
|
1387
|
+
/** Plugin unique name */
|
|
1388
|
+
name: string;
|
|
1389
|
+
/** Plugin version (semver) */
|
|
1390
|
+
version: string;
|
|
1391
|
+
/** Plugin description */
|
|
1392
|
+
description: string;
|
|
1393
|
+
/** Plugin author */
|
|
1394
|
+
author?: string;
|
|
1395
|
+
/** Plugin homepage */
|
|
1396
|
+
homepage?: string;
|
|
1397
|
+
/** Plugin license */
|
|
1398
|
+
license?: string;
|
|
1399
|
+
/** Minimum CCJK version required */
|
|
1400
|
+
minCcjkVersion?: string;
|
|
1401
|
+
/** Plugin keywords for discovery */
|
|
1402
|
+
keywords?: string[];
|
|
1403
|
+
}
|
|
1404
|
+
/**
|
|
1405
|
+
* Workflow extension provided by plugin
|
|
1406
|
+
*/
|
|
1407
|
+
interface WorkflowExtension {
|
|
1408
|
+
id: string;
|
|
1409
|
+
name: Record<SupportedLang, string>;
|
|
1410
|
+
description?: Record<SupportedLang, string>;
|
|
1411
|
+
category: string;
|
|
1412
|
+
commands: string[];
|
|
1413
|
+
agents?: Array<{
|
|
1414
|
+
id: string;
|
|
1415
|
+
filename: string;
|
|
1416
|
+
required: boolean;
|
|
1417
|
+
}>;
|
|
1418
|
+
/** Template content or path relative to plugin */
|
|
1419
|
+
templates: Record<SupportedLang, string>;
|
|
1420
|
+
}
|
|
1421
|
+
/**
|
|
1422
|
+
* Agent extension provided by plugin
|
|
1423
|
+
*/
|
|
1424
|
+
interface AgentExtension {
|
|
1425
|
+
id: string;
|
|
1426
|
+
name: string;
|
|
1427
|
+
description: string;
|
|
1428
|
+
model: 'opus' | 'sonnet' | 'haiku' | 'inherit';
|
|
1429
|
+
/** Agent definition content (markdown) */
|
|
1430
|
+
definition: string;
|
|
1431
|
+
}
|
|
1432
|
+
/**
|
|
1433
|
+
* MCP service extension provided by plugin
|
|
1434
|
+
*/
|
|
1435
|
+
interface McpServiceExtension {
|
|
1436
|
+
id: string;
|
|
1437
|
+
name: Record<SupportedLang, string>;
|
|
1438
|
+
description?: Record<SupportedLang, string>;
|
|
1439
|
+
requiresApiKey: boolean;
|
|
1440
|
+
apiKeyEnvVar?: string;
|
|
1441
|
+
config: {
|
|
1442
|
+
type: 'stdio' | 'http';
|
|
1443
|
+
command?: string;
|
|
1444
|
+
args?: string[];
|
|
1445
|
+
url?: string;
|
|
1446
|
+
env?: Record<string, string>;
|
|
1447
|
+
};
|
|
1448
|
+
}
|
|
1449
|
+
/**
|
|
1450
|
+
* Output style extension provided by plugin
|
|
1451
|
+
*/
|
|
1452
|
+
interface OutputStyleExtension {
|
|
1453
|
+
id: string;
|
|
1454
|
+
name: Record<SupportedLang, string>;
|
|
1455
|
+
description?: Record<SupportedLang, string>;
|
|
1456
|
+
/** Style template content (markdown) */
|
|
1457
|
+
template: string;
|
|
1458
|
+
}
|
|
1459
|
+
/**
|
|
1460
|
+
* Command extension provided by plugin
|
|
1461
|
+
*/
|
|
1462
|
+
interface CommandExtension {
|
|
1463
|
+
name: string;
|
|
1464
|
+
description: string;
|
|
1465
|
+
aliases?: string[];
|
|
1466
|
+
options?: Array<{
|
|
1467
|
+
name: string;
|
|
1468
|
+
description: string;
|
|
1469
|
+
type: 'string' | 'boolean' | 'number';
|
|
1470
|
+
required?: boolean;
|
|
1471
|
+
default?: any;
|
|
1472
|
+
}>;
|
|
1473
|
+
/** Handler function as string (will be evaluated) */
|
|
1474
|
+
handler: string;
|
|
1475
|
+
}
|
|
1476
|
+
/**
|
|
1477
|
+
* Plugin context passed to lifecycle hooks
|
|
1478
|
+
*/
|
|
1479
|
+
interface PluginContext {
|
|
1480
|
+
/** CCJK version */
|
|
1481
|
+
ccjkVersion: string;
|
|
1482
|
+
/** Plugin config directory */
|
|
1483
|
+
configDir: string;
|
|
1484
|
+
/** i18n instance */
|
|
1485
|
+
i18n: any;
|
|
1486
|
+
/** Logger instance */
|
|
1487
|
+
logger: PluginLogger;
|
|
1488
|
+
/** Plugin storage */
|
|
1489
|
+
storage: PluginStorage;
|
|
1490
|
+
}
|
|
1491
|
+
/**
|
|
1492
|
+
* Plugin logger interface
|
|
1493
|
+
*/
|
|
1494
|
+
interface PluginLogger {
|
|
1495
|
+
info: (message: string) => void;
|
|
1496
|
+
warn: (message: string) => void;
|
|
1497
|
+
error: (message: string) => void;
|
|
1498
|
+
debug: (message: string) => void;
|
|
1499
|
+
}
|
|
1500
|
+
/**
|
|
1501
|
+
* Plugin storage interface
|
|
1502
|
+
*/
|
|
1503
|
+
interface PluginStorage {
|
|
1504
|
+
get: <T>(key: string) => T | undefined;
|
|
1505
|
+
set: <T>(key: string, value: T) => void;
|
|
1506
|
+
delete: (key: string) => void;
|
|
1507
|
+
clear: () => void;
|
|
1508
|
+
}
|
|
1509
|
+
/**
|
|
1510
|
+
* Main plugin interface
|
|
1511
|
+
*/
|
|
1512
|
+
interface CcjkPlugin {
|
|
1513
|
+
/** Plugin metadata */
|
|
1514
|
+
metadata: PluginMetadata;
|
|
1515
|
+
/** Lifecycle: Called when plugin is loaded */
|
|
1516
|
+
onLoad?: (context: PluginContext) => Promise<void>;
|
|
1517
|
+
/** Lifecycle: Called when plugin is unloaded */
|
|
1518
|
+
onUnload?: () => Promise<void>;
|
|
1519
|
+
/** Lifecycle: Called when CCJK starts */
|
|
1520
|
+
onStart?: (context: PluginContext) => Promise<void>;
|
|
1521
|
+
/** Extension points */
|
|
1522
|
+
workflows?: WorkflowExtension[];
|
|
1523
|
+
agents?: AgentExtension[];
|
|
1524
|
+
mcpServices?: McpServiceExtension[];
|
|
1525
|
+
outputStyles?: OutputStyleExtension[];
|
|
1526
|
+
commands?: CommandExtension[];
|
|
1527
|
+
skills?: CcjkSkill[];
|
|
1528
|
+
/** Configuration schema (JSON Schema) */
|
|
1529
|
+
configSchema?: Record<string, any>;
|
|
1530
|
+
}
|
|
1531
|
+
/**
|
|
1532
|
+
* Loaded plugin with runtime state
|
|
1533
|
+
*/
|
|
1534
|
+
interface LoadedPlugin {
|
|
1535
|
+
plugin: CcjkPlugin;
|
|
1536
|
+
path: string;
|
|
1537
|
+
enabled: boolean;
|
|
1538
|
+
loadedAt: Date;
|
|
1539
|
+
error?: string;
|
|
1540
|
+
}
|
|
1541
|
+
/**
|
|
1542
|
+
* Plugin registry entry
|
|
1543
|
+
*/
|
|
1544
|
+
interface PluginInfo {
|
|
1545
|
+
name: string;
|
|
1546
|
+
version: string;
|
|
1547
|
+
description: string;
|
|
1548
|
+
enabled: boolean;
|
|
1549
|
+
path: string;
|
|
1550
|
+
author?: string;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1578
1553
|
/**
|
|
1579
1554
|
* CCJK API Router Types
|
|
1580
1555
|
* Unified type definitions for API routing modes
|
|
@@ -1871,6 +1846,31 @@ declare const STATUS: {
|
|
|
1871
1846
|
inProgress: (text: string) => string;
|
|
1872
1847
|
};
|
|
1873
1848
|
|
|
1849
|
+
/**
|
|
1850
|
+
* @deprecated This file is deprecated and will be removed in v5.0.0
|
|
1851
|
+
*
|
|
1852
|
+
* Please use the new unified config-service instead:
|
|
1853
|
+
* @example
|
|
1854
|
+
* ```typescript
|
|
1855
|
+
* import { configManager } from '@/utils/config-service'
|
|
1856
|
+
*
|
|
1857
|
+
* // For MCP operations:
|
|
1858
|
+
* const config = await configManager.mcp.read()
|
|
1859
|
+
* await configManager.mcp.addServer('service-id', serverConfig)
|
|
1860
|
+
*
|
|
1861
|
+
* // For Codex operations:
|
|
1862
|
+
* await configManager.codex.addProvider(providerData, apiKey)
|
|
1863
|
+
*
|
|
1864
|
+
* // For ZCF operations:
|
|
1865
|
+
* const zcfConfig = await configManager.zcf.read()
|
|
1866
|
+
*
|
|
1867
|
+
* // For Claude Code operations:
|
|
1868
|
+
* const profile = await configManager.claudeCode.getCurrentProfile()
|
|
1869
|
+
* ```
|
|
1870
|
+
*
|
|
1871
|
+
* @see {@link file://./config-service/index.ts} for the new unified API
|
|
1872
|
+
* @see {@link file://./.claude/plan/task-1.4-migration-plan.md} for migration guide
|
|
1873
|
+
*/
|
|
1874
1874
|
declare function getMcpConfigPath(): string;
|
|
1875
1875
|
declare function readMcpConfig(): ClaudeConfiguration | null;
|
|
1876
1876
|
declare function writeMcpConfig(config: ClaudeConfiguration): void;
|
|
@@ -2121,6 +2121,31 @@ declare function switchToOfficialLogin$1(): Promise<boolean>;
|
|
|
2121
2121
|
*/
|
|
2122
2122
|
declare function switchToProvider(providerId: string): Promise<boolean>;
|
|
2123
2123
|
|
|
2124
|
+
/**
|
|
2125
|
+
* @deprecated This file is deprecated and will be removed in v5.0.0
|
|
2126
|
+
*
|
|
2127
|
+
* Please use the new unified config-service instead:
|
|
2128
|
+
* @example
|
|
2129
|
+
* ```typescript
|
|
2130
|
+
* import { configManager } from '@/utils/config-service'
|
|
2131
|
+
*
|
|
2132
|
+
* // For MCP operations:
|
|
2133
|
+
* const config = await configManager.mcp.read()
|
|
2134
|
+
* await configManager.mcp.addServer('service-id', serverConfig)
|
|
2135
|
+
*
|
|
2136
|
+
* // For Codex operations:
|
|
2137
|
+
* await configManager.codex.addProvider(providerData, apiKey)
|
|
2138
|
+
*
|
|
2139
|
+
* // For ZCF operations:
|
|
2140
|
+
* const zcfConfig = await configManager.zcf.read()
|
|
2141
|
+
*
|
|
2142
|
+
* // For Claude Code operations:
|
|
2143
|
+
* const profile = await configManager.claudeCode.getCurrentProfile()
|
|
2144
|
+
* ```
|
|
2145
|
+
*
|
|
2146
|
+
* @see {@link file://./config-service/index.ts} for the new unified API
|
|
2147
|
+
* @see {@link file://./.claude/guides/config-service-migration-guide.md} for migration guide
|
|
2148
|
+
*/
|
|
2124
2149
|
interface ConfigManagementMode {
|
|
2125
2150
|
mode: 'initial' | 'management';
|
|
2126
2151
|
hasProviders: boolean;
|
|
@@ -2148,11 +2173,61 @@ declare function shouldShowManagementMode(config: CodexConfigData | null): boole
|
|
|
2148
2173
|
*/
|
|
2149
2174
|
declare function getAvailableManagementActions(config: CodexConfigData): string[];
|
|
2150
2175
|
|
|
2176
|
+
/**
|
|
2177
|
+
* @deprecated This file is deprecated and will be removed in v5.0.0
|
|
2178
|
+
*
|
|
2179
|
+
* Please use the new unified config-service instead:
|
|
2180
|
+
* @example
|
|
2181
|
+
* ```typescript
|
|
2182
|
+
* import { configManager } from '@/utils/config-service'
|
|
2183
|
+
*
|
|
2184
|
+
* // For MCP operations:
|
|
2185
|
+
* const config = await configManager.mcp.read()
|
|
2186
|
+
* await configManager.mcp.addServer('service-id', serverConfig)
|
|
2187
|
+
*
|
|
2188
|
+
* // For Codex operations:
|
|
2189
|
+
* await configManager.codex.addProvider(providerData, apiKey)
|
|
2190
|
+
*
|
|
2191
|
+
* // For ZCF operations:
|
|
2192
|
+
* const zcfConfig = await configManager.zcf.read()
|
|
2193
|
+
*
|
|
2194
|
+
* // For Claude Code operations:
|
|
2195
|
+
* const profile = await configManager.claudeCode.getCurrentProfile()
|
|
2196
|
+
* ```
|
|
2197
|
+
*
|
|
2198
|
+
* @see {@link file://./config-service/index.ts} for the new unified API
|
|
2199
|
+
* @see {@link file://./.claude/guides/config-service-migration-guide.md} for migration guide
|
|
2200
|
+
*/
|
|
2151
2201
|
/**
|
|
2152
2202
|
* Configure incremental management interface for existing Codex configurations
|
|
2153
2203
|
*/
|
|
2154
2204
|
declare function configureIncrementalManagement(): Promise<void>;
|
|
2155
2205
|
|
|
2206
|
+
/**
|
|
2207
|
+
* @deprecated This file is deprecated and will be removed in v5.0.0
|
|
2208
|
+
*
|
|
2209
|
+
* Please use the new unified config-service instead:
|
|
2210
|
+
* @example
|
|
2211
|
+
* ```typescript
|
|
2212
|
+
* import { configManager } from '@/utils/config-service'
|
|
2213
|
+
*
|
|
2214
|
+
* // For MCP operations:
|
|
2215
|
+
* const config = await configManager.mcp.read()
|
|
2216
|
+
* await configManager.mcp.addServer('service-id', serverConfig)
|
|
2217
|
+
*
|
|
2218
|
+
* // For Codex operations:
|
|
2219
|
+
* await configManager.codex.addProvider(providerData, apiKey)
|
|
2220
|
+
*
|
|
2221
|
+
* // For ZCF operations:
|
|
2222
|
+
* const zcfConfig = await configManager.zcf.read()
|
|
2223
|
+
*
|
|
2224
|
+
* // For Claude Code operations:
|
|
2225
|
+
* const profile = await configManager.claudeCode.getCurrentProfile()
|
|
2226
|
+
* ```
|
|
2227
|
+
*
|
|
2228
|
+
* @see {@link file://./config-service/index.ts} for the new unified API
|
|
2229
|
+
* @see {@link file://./.claude/guides/config-service-migration-guide.md} for migration guide
|
|
2230
|
+
*/
|
|
2156
2231
|
interface ProviderOperationResult {
|
|
2157
2232
|
success: boolean;
|
|
2158
2233
|
backupPath?: string;
|
|
@@ -3448,5 +3523,5 @@ declare function executeWorkflow(options: WorkflowExecutionOptions): Promise<Wor
|
|
|
3448
3523
|
*/
|
|
3449
3524
|
declare function executeWorkflowTemplate(templateId: WorkflowTemplateId, input: unknown, options?: Partial<WorkflowExecutionOptions>): Promise<WorkflowResult>;
|
|
3450
3525
|
|
|
3451
|
-
export { AIDER_CONFIG_FILE, AIDER_DIR, AIDER_ENV_FILE, AI_OUTPUT_LANGUAGES, API_DEFAULT_URL, API_ENV_KEY, AgentOrchestrator, CCJK_CLOUD_API_URL, CCJK_CLOUD_PLUGINS_API, CCJK_CLOUD_PLUGINS_CACHE_DIR, CCJK_CLOUD_PLUGINS_CACHE_FILE, CCJK_CLOUD_PLUGINS_DIR, CCJK_CLOUD_PLUGINS_INSTALLED_DIR, CCJK_CONFIG_DIR, CCJK_CONFIG_FILE, CCJK_GROUPS_DIR, CCJK_PLUGINS_DIR, CCJK_SKILLS_DIR, CLAUDE_DIR, CLAUDE_MD_FILE, CLAUDE_VSC_CONFIG_FILE, CLINE_CONFIG_FILE, CLINE_DIR, CLOUD_PLUGINS_CACHE_TTL, CLOUD_PLUGINS_MAX_CACHE_SIZE, CODEX_AGENTS_FILE, CODEX_AUTH_FILE, CODEX_CONFIG_FILE, CODEX_DIR, CODEX_PROMPTS_DIR, CODE_TOOL_ALIASES, CODE_TOOL_BANNERS, CODE_TOOL_INFO, CODE_TOOL_TYPES, theme as COLORS, CONTINUE_CONFIG_FILE, CONTINUE_DIR, CURSOR_CONFIG_FILE, CURSOR_DIR, ClAUDE_CONFIG_FILE, CodexUninstaller, DEFAULT_CODE_TOOL_TYPE, HookExecutor, HookUtils, LANG_LABELS, LEGACY_ZCF_CONFIG_DIR, LEGACY_ZCF_CONFIG_FILE, LEGACY_ZCF_CONFIG_FILES, MCPOptimizer, MenuBuilder, PERMISSION_TEMPLATES, PluginExecutionError, PluginHookType, PluginManager, PluginValidationError, SETTINGS_FILE, STATUS, SUPPORTED_LANGS, WorkflowExecutor, ZCF_CONFIG_DIR, ZCF_CONFIG_FILE, ZeroConfig, addAutoApprovePattern, addCompletedOnboarding, addContinueCustomCommand, addContinueMcpServer, addContinueModel, addGroup, addProviderToExisting, addSkill, analyticsHook, analyzeMCPConfig, applyAiLanguageDirective, applyCodexPlatformCommand, applyOptimization, applyTemplate, autoInstallTool, backupCodexAgents, backupCodexComplete, backupCodexConfig, backupCodexFiles, backupCodexPrompts, backupExistingConfig, backupMcpConfig, box, boxify, bugFixTemplate, buildMcpServerConfig, builtInHooks, checkAllVersions, checkCcjkVersion, checkClaudeCodeVersion, checkCodexUpdate, checkPluginVersions, cleanupHook, cleanupPermissions, codeReviewTemplate, switchToOfficialLogin$1 as codexSwitchToOfficialLogin, commandExists, compareConfigs, configureAiderApi, configureApi, configureCodexApi, configureCodexMcp, configureContinueApi, configureIncrementalManagement, confirm, consolidateConfigs, copyConfigFiles, createBackupDirectory, createBatchSkills, createExecutor, createHomebrewSymlink, createOrchestrator, createParallelWorkflow, createPipelineWorkflow, createPlugin, createSequentialWorkflow, createZeroConfigContext, deleteProviders, detectAllConfigs, detectAvailableTools, detectBuildTools, detectCICDSystems, detectConfigManagementMode, detectEnvironment, detectFrameworks, detectInstalledVersion, detectLanguages, detectPackageManager, detectProject, detectProjectContext, detectTechStack, detectTestFrameworks, determineProjectType, disableGroup,
|
|
3526
|
+
export { AIDER_CONFIG_FILE, AIDER_DIR, AIDER_ENV_FILE, AI_OUTPUT_LANGUAGES, API_DEFAULT_URL, API_ENV_KEY, AgentOrchestrator, CCJK_CLOUD_API_URL, CCJK_CLOUD_PLUGINS_API, CCJK_CLOUD_PLUGINS_CACHE_DIR, CCJK_CLOUD_PLUGINS_CACHE_FILE, CCJK_CLOUD_PLUGINS_DIR, CCJK_CLOUD_PLUGINS_INSTALLED_DIR, CCJK_CONFIG_DIR, CCJK_CONFIG_FILE, CCJK_GROUPS_DIR, CCJK_PLUGINS_DIR, CCJK_SKILLS_DIR, CLAUDE_DIR, CLAUDE_MD_FILE, CLAUDE_VSC_CONFIG_FILE, CLINE_CONFIG_FILE, CLINE_DIR, CLOUD_PLUGINS_CACHE_TTL, CLOUD_PLUGINS_MAX_CACHE_SIZE, CODEX_AGENTS_FILE, CODEX_AUTH_FILE, CODEX_CONFIG_FILE, CODEX_DIR, CODEX_PROMPTS_DIR, CODE_TOOL_ALIASES, CODE_TOOL_BANNERS, CODE_TOOL_INFO, CODE_TOOL_TYPES, theme as COLORS, CONTINUE_CONFIG_FILE, CONTINUE_DIR, CURSOR_CONFIG_FILE, CURSOR_DIR, ClAUDE_CONFIG_FILE, CodexUninstaller, DEFAULT_CODE_TOOL_TYPE, HookExecutor, HookUtils, LANG_LABELS, LEGACY_ZCF_CONFIG_DIR, LEGACY_ZCF_CONFIG_FILE, LEGACY_ZCF_CONFIG_FILES, MCPOptimizer, MenuBuilder, PERMISSION_TEMPLATES, PluginExecutionError, PluginHookType, PluginManager, PluginValidationError, SETTINGS_FILE, STATUS, SUPPORTED_LANGS, WorkflowExecutor, ZCF_CONFIG_DIR, ZCF_CONFIG_FILE, ZeroConfig, addAutoApprovePattern, addCompletedOnboarding, addContinueCustomCommand, addContinueMcpServer, addContinueModel, addGroup, addProviderToExisting, addSkill, analyticsHook, analyzeMCPConfig, applyAiLanguageDirective, applyCodexPlatformCommand, applyOptimization, applyTemplate, autoInstallTool, backupCodexAgents, backupCodexComplete, backupCodexConfig, backupCodexFiles, backupCodexPrompts, backupExistingConfig, backupMcpConfig, box, boxify, bugFixTemplate, buildMcpServerConfig, builtInHooks, checkAllVersions, checkCcjkVersion, checkClaudeCodeVersion, checkCodexUpdate, checkPluginVersions, cleanupHook, cleanupPermissions, codeReviewTemplate, switchToOfficialLogin$1 as codexSwitchToOfficialLogin, commandExists, compareConfigs, configureAiderApi, configureApi, configureCodexApi, configureCodexMcp, configureContinueApi, configureIncrementalManagement, confirm, consolidateConfigs, copyConfigFiles, createBackupDirectory, createBatchSkills, createExecutor, createHomebrewSymlink, createOrchestrator, createParallelWorkflow, createPipelineWorkflow, createPlugin, createSequentialWorkflow, createZeroConfigContext, deleteProviders, detectAllConfigs, detectAvailableTools, detectBuildTools, detectCICDSystems, detectConfigManagementMode, detectEnvironment, detectFrameworks, detectInstalledVersion, detectLanguages, detectPackageManager, detectProject, detectProjectContext, detectTechStack, detectTestFrameworks, determineProjectType, disableGroup, displayBanner, displayBannerWithInfo, displayConfigScan, displayCurrentStatus, displayHealthReport, displayPermissions, displayVerificationResult, divider, documentationTemplate, editExistingProvider, enableContinueContextProvider, enableGroup, ensureAiderDir, ensureApiKeyApproved, ensureClaudeDir, ensureContinueDir, ensureEnvKeyMigration, ensureGroupsDir, ensureSkillsDir, errorLoggingHook, executeHook, executeHookWithRetry, executeInstallMethod, executeWorkflow, executeWorkflowTemplate, exportGroups, exportPermissions, exportProjectKnowledge, exportSkills, featureDevelopmentTemplate, findMCPConfig, fixWindowsMcpConfig, formatFileSize, formatToolStatus, generateContextContent, generateOptimizationReport, generateRecommendations, generateSuggestions, getAiOutputLanguageLabel, getAiderModelPresets, getAiderVersion, getAllGroups, getAllSkills, getAllToolsInfo, getAllToolsStatus, getAllWorkflowTemplates, getApplicableRules, getAvailableManagementActions, getBackupMessage, getBatchCategories, getBrowserToolGuide, getBuiltinSkill, getBuiltinSkills, getCodexVersion, getContextFileTypeLabel, getContextFiles, getContextRules, getContinueProviderPresets, getCurrentCodexProvider, getCurrentTemplateId, getDisplayWidth, getEnabledAgents, getEnabledSkillIds, getExistingApiConfig, getExistingModelConfig, getGlobalExecutor, getGroup, getRegistry as getGroupRegistry, getInstallationStatus, getInstalledTools, getMCPConfigPaths, getMcpConfigPath, getPlatform, getProjectKnowledge, getProjectSummary, getProjectTypeLabel, getRecommendedRules, getRecommendedTools, getSkill, getRegistry$1 as getSkillRegistry, getToolConfigPath, getToolDir, getToolInfo, getToolStatus, getToolVersion, getToolsByCategory, getWorkflowTemplate, getWorkflowTemplateIds, getWorkflowTemplatesByCategory, handleInstallFailure, header, importGroups, importPermissions, importRecommendedEnv, importRecommendedPermissions, importSkills, init, installAider, installClaudeCode, installCodex, installCodexCli, installTool, isAiderInstalled, isBuiltinSkill, isClaudeCodeInstalled, isCodeToolType, isCodexInstalled$1 as isCodexCliInstalled, isCodexInstalled, isContinueConfigured, isDirectoryTrusted, isGroupEnabled, isLocalClaudeCodeInstalled, isPermissionAllowed, isToolInstalled, listCodexProviders, loadKnowledgeBase, manageApiKeyApproval, menuItem, mergeAndCleanPermissions, mergeConfigs, mergeContextContent, mergeMcpServers, mergeSettingsFile, migrateEnvKeyInContent, migrateEnvKeyToTempEnvKey, needsEnvKeyMigration, openSettingsJson, padToDisplayWidth, parseCodexConfig, pluginManager, profilingHook, progress, promptApiConfigurationAction, quickSync, readAiderConfig, readCodexConfig, readContextFile, readContinueConfig, readMcpConfig, readPermissions, refactoringTemplate, refreshRegistry as refreshGroupRegistry, refreshRegistry$1 as refreshSkillRegistry, registerBuiltInHooks, removeApiKeyFromRejected, removeAutoApprovePattern, removeContinueModel, removeGroup, removeLocalClaudeCode, removeRedundantConfigs, removeSkill, renderCodexConfig, renderProgressBar, resetPermissions, resolveCodeToolType, runAider, runCodexFullInit, runCodexSystemPromptSelection, runCodexUninstall, runCodexUpdate, runCodexWorkflowImport, runCodexWorkflowImportWithLanguageSelection, runCodexWorkflowSelection, runConfigWizard, runDoctor, runHealthCheck, runMCPOptimizer, runOnboarding, saveKnowledgeBase, searchGroups, searchSkills, searchWorkflowTemplates, sectionDivider, selectBrowserTool, selectInstallMethod, setInstallMethod, setPrimaryApiKey, setSkillEnabled, shouldShowManagementMode, showQuickMenu, showStatus, status, switchCodexProvider, switchToOfficialLogin, switchToProvider, syncSkillsToContinue, theme, trustDirectory, uninstallCodeTool, untrustDirectory, updateCustomModel, updateDefaultModel, upgradeAll, upgradeAllPlugins, upgradeCcjk, upgradeClaudeCode, upgradePlugin, validateProviderData, verifyInstallation, workflowTemplates, writeAiderConfig, writeAuthFile, writeCodexConfig, writeConsolidatedConfig, writeContextFile, writeContinueConfig, writeMcpConfig, writePermissions };
|
|
3452
3527
|
export type { Agent, AgentConfig, AgentDefinition, AgentEvents, AgentModel, AgentResult, AgentTemplate, AiOutputLanguage, AiderConfig, ApiConfig, ApplyOptimizationOptions, AutoInstallOptions, AvailableTool, BatchSkillOptions, BatchSkillTemplate, BoxStyle, BrowserToolChoice, BuildTool, CCJKPlugin, CICDSystem, CcjkPlugin, CcjkSkill, CheckResult, ClaudeConfiguration, CodeToolInfo, CodeToolType, CodexConfigData, CodexFullInitOptions, CodexProvider, CodexUninstallItem, CodexUninstallResult, CodexVersionInfo, ConfigDiff, ConfigLocation, ConfigManagementMode, ConfigSuggestions, ConsolidatedConfig, ContextFile, ContextProjectInfo, ContextProjectType, ContextRule, ContinueConfig, ContinueMcpServer, ContinueModel, EnvironmentInfo, Framework, GroupCategory, GroupExport, GroupInstallResult, GroupRegistry, GroupSearchOptions, HealthReport, HeavyServer, HookContext, HookExecutionOptions, HookExecutionStats, HookHandler, HookResult, InstallationStatus, KnowledgeBase, KnowledgeEntry, Language, LanguageGroupId, LoadedPlugin, MCPAnalysis, MCPConfig, MCPRecommendation, MCPServer, McpServerConfig, McpService, MenuBuilderOptions, MenuItem, MenuResult, MenuSection, OnboardingResult, PackageManager, PermissionSet, PermissionTemplate, PermissionType, PluginCommand, PluginConfig, PluginContext, PluginInfo, PluginLogger, PluginStorage, PluginVersionInfo, PredefinedGroupId, ProjectContext, ProjectInfo, ProjectType, ProviderOperationResult, ProviderUpdateData, Recommendation, SiteTypeGroupId, SkillCategory, SkillExport, SkillInstallResult, SkillRegistry, SkillSearchOptions, SpecialtyGroupId, SubagentGroup, SupportedLang, Task, TechStack, TestFramework, ToolInstallResult, ToolStatus, UpgradeResult, VerificationResult, VersionInfo, WorkflowConfig, WorkflowContext, WorkflowExecutionOptions, WorkflowExecutionSummary, WorkflowResult, WorkflowTemplate, WorkflowTemplateId, WorkflowType, ZeroConfigContext };
|