ccjk 9.4.1 → 9.4.2
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/package.mjs +1 -1
- package/dist/cli.mjs +45 -8
- package/package.json +2 -2
package/dist/chunks/package.mjs
CHANGED
package/dist/cli.mjs
CHANGED
|
@@ -1652,15 +1652,52 @@ function customizeHelpLazy(_sections, version) {
|
|
|
1652
1652
|
return newSections;
|
|
1653
1653
|
}
|
|
1654
1654
|
async function runLazyCli() {
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1655
|
+
const spinner = await showStartupSpinner();
|
|
1656
|
+
try {
|
|
1657
|
+
bootstrapCloudServices();
|
|
1658
|
+
const handled = await tryQuickProviderLaunch();
|
|
1659
|
+
if (handled) {
|
|
1660
|
+
spinner?.stop();
|
|
1661
|
+
return;
|
|
1662
|
+
}
|
|
1663
|
+
const cac = (await import('cac')).default;
|
|
1664
|
+
const cli = cac("ccjk");
|
|
1665
|
+
await setupCommandsLazy(cli);
|
|
1666
|
+
spinner?.stop();
|
|
1667
|
+
cli.parse();
|
|
1668
|
+
} catch (error) {
|
|
1669
|
+
spinner?.stop();
|
|
1670
|
+
throw error;
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
async function showStartupSpinner() {
|
|
1674
|
+
const args = process__default.argv.slice(2);
|
|
1675
|
+
const quickFlags = ["--help", "-h", "--version", "-v", "-V"];
|
|
1676
|
+
if (args.some((arg) => quickFlags.includes(arg))) {
|
|
1677
|
+
return null;
|
|
1678
|
+
}
|
|
1679
|
+
try {
|
|
1680
|
+
const ora = (await import('ora')).default;
|
|
1681
|
+
const isZh = process__default.env.CCJK_LANG === "zh-CN" || process__default.env.LANG?.includes("zh");
|
|
1682
|
+
const spinner = ora({
|
|
1683
|
+
text: isZh ? "\u6B63\u5728\u542F\u52A8 CCJK..." : "Starting CCJK...",
|
|
1684
|
+
spinner: "dots"
|
|
1685
|
+
}).start();
|
|
1686
|
+
return {
|
|
1687
|
+
stop: () => {
|
|
1688
|
+
spinner.stop();
|
|
1689
|
+
spinner.clear();
|
|
1690
|
+
}
|
|
1691
|
+
};
|
|
1692
|
+
} catch {
|
|
1693
|
+
const isZh = process__default.env.CCJK_LANG === "zh-CN" || process__default.env.LANG?.includes("zh");
|
|
1694
|
+
process__default.stdout.write(isZh ? "\u6B63\u5728\u542F\u52A8 CCJK...\r" : "Starting CCJK...\r");
|
|
1695
|
+
return {
|
|
1696
|
+
stop: () => {
|
|
1697
|
+
process__default.stdout.write("\x1B[2K\r");
|
|
1698
|
+
}
|
|
1699
|
+
};
|
|
1659
1700
|
}
|
|
1660
|
-
const cac = (await import('cac')).default;
|
|
1661
|
-
const cli = cac("ccjk");
|
|
1662
|
-
await setupCommandsLazy(cli);
|
|
1663
|
-
cli.parse();
|
|
1664
1701
|
}
|
|
1665
1702
|
async function tryQuickProviderLaunch() {
|
|
1666
1703
|
const args = process__default.argv.slice(2);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccjk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "9.4.
|
|
4
|
+
"version": "9.4.2",
|
|
5
5
|
"packageManager": "pnpm@10.17.1",
|
|
6
6
|
"description": "CCJK v9.0.0 - Revolutionary AI Development Platform with Enterprise Security, Streaming Cloud Sync, CRDT Conflict Resolution, and Unified V3 Architecture",
|
|
7
7
|
"author": {
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"build": "unbuild",
|
|
80
80
|
"start": "node bin/ccjk.mjs",
|
|
81
81
|
"typecheck": "tsc --noEmit",
|
|
82
|
-
"prepublishOnly": "node scripts/validate-prepublish.mjs && pnpm build",
|
|
82
|
+
"prepublishOnly": "node scripts/validate-prepublish.mjs && pnpm build && pnpm test:run",
|
|
83
83
|
"lint": "eslint",
|
|
84
84
|
"lint:fix": "eslint --fix",
|
|
85
85
|
"test": "vitest",
|