ccjk 16.0.4 → 16.0.6
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.
|
@@ -18,7 +18,7 @@ import i18next from 'i18next';
|
|
|
18
18
|
import Backend from 'i18next-fs-backend';
|
|
19
19
|
import { edit, stringify, parse, initSync } from '@rainbowatcher/toml-edit-js';
|
|
20
20
|
|
|
21
|
-
const version = "16.0.
|
|
21
|
+
const version = "16.0.6";
|
|
22
22
|
const homepage = "https://github.com/miounet11/ccjk#readme";
|
|
23
23
|
|
|
24
24
|
const i18n = i18next.createInstance();
|
|
@@ -4347,11 +4347,17 @@ function backupCodexFiles() {
|
|
|
4347
4347
|
return cachedSkipPromptBackup;
|
|
4348
4348
|
const timestamp = dayjs().format("YYYY-MM-DD_HH-mm-ss");
|
|
4349
4349
|
const backupDir = createBackupDirectory(timestamp);
|
|
4350
|
-
const
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4350
|
+
const files = [
|
|
4351
|
+
["config.toml", CODEX_CONFIG_FILE],
|
|
4352
|
+
["auth.json", CODEX_AUTH_FILE],
|
|
4353
|
+
["AGENTS.md", CODEX_AGENTS_FILE]
|
|
4354
|
+
];
|
|
4355
|
+
for (const [name, source] of files) {
|
|
4356
|
+
if (exists(source))
|
|
4357
|
+
copyFile(source, join(backupDir, name));
|
|
4358
|
+
}
|
|
4359
|
+
if (exists(CODEX_PROMPTS_DIR))
|
|
4360
|
+
copyDir(CODEX_PROMPTS_DIR, join(backupDir, "prompts"));
|
|
4355
4361
|
if (process.env.CCJK_CODEX_SKIP_PROMPT_SINGLE_BACKUP === "true")
|
|
4356
4362
|
cachedSkipPromptBackup = backupDir;
|
|
4357
4363
|
return backupDir;
|
|
@@ -4936,7 +4942,6 @@ async function runCodexWorkflowImportWithLanguageSelection(options) {
|
|
|
4936
4942
|
skipPrompt
|
|
4937
4943
|
);
|
|
4938
4944
|
updateCcjkConfig({ aiOutputLang });
|
|
4939
|
-
applyAiLanguageDirective(aiOutputLang);
|
|
4940
4945
|
await runCodexSystemPromptSelection(skipPrompt);
|
|
4941
4946
|
ensureCodexAgentsLanguageDirective(aiOutputLang);
|
|
4942
4947
|
await runCodexWorkflowSelection(options);
|