aico-cli 0.1.4 → 0.1.5
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/cli.mjs +22 -12
- package/dist/index.mjs +2 -2
- package/dist/shared/{aico-cli.CSeKe20G.mjs → aico-cli.mxgSz9yk.mjs} +415 -435
- package/package.json +1 -1
- package/templates/en/workflow/common/agents/get-current-datetime.md +29 -0
- package/templates/en/workflow/common/agents/init-architect.md +114 -0
- package/templates/en/workflow/common/commands/init-project.md +53 -0
- package/templates/zh-CN/workflow/common/agents/get-current-datetime.md +29 -0
- package/templates/zh-CN/workflow/common/agents/init-architect.md +114 -0
- package/templates/zh-CN/workflow/common/commands/init-project.md +53 -0
- package/templates/zh-CN/workflow/git/commands/git-worktree.md +145 -221
package/dist/cli.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import cac from 'cac';
|
|
3
3
|
import ansis from 'ansis';
|
|
4
|
-
import { J as readAicoConfig, K as updateAicoConfig, N as getTranslation, k as AI_OUTPUT_LANGUAGES, O as inquirer, P as addNumbersToChoices, Q as version, q as backupExistingConfig, r as copyConfigFiles, x as applyAiLanguageDirective, R as configureAiPersonality, C as CLAUDE_DIR, I as I18N, T as isWindows, U as readCcrConfig, V as isCcrInstalled, W as installCcr, X as configureCcrFeature, Y as handleExitPromptError, Z as handleGeneralError, _ as readAicoConfigAsync, $ as COMETIX_COMMANDS, a0 as COMETIX_COMMAND_NAME, a1 as installCometixLine, o as openSettingsJson, b as importRecommendedPermissions, a as importRecommendedEnv, z as readMcpConfig, G as fixWindowsMcpConfig, B as writeMcpConfig, a2 as selectMcpServices, D as backupMcpConfig, M as MCP_SERVICES, F as buildMcpServerConfig, a3 as EscapeKeyPressed, E as mergeMcpServers, a4 as displayBanner, a5 as selectAndInstallWorkflows, a6 as displayBannerWithInfo, i as init, a7 as executeWithEscapeSupport, a8 as checkAndUpdateTools } from './shared/aico-cli.
|
|
4
|
+
import { J as readAicoConfig, K as updateAicoConfig, N as getTranslation, k as AI_OUTPUT_LANGUAGES, O as inquirer, P as addNumbersToChoices, Q as version, q as backupExistingConfig, r as copyConfigFiles, x as applyAiLanguageDirective, R as configureAiPersonality, C as CLAUDE_DIR, I as I18N, T as isWindows, U as readCcrConfig, V as isCcrInstalled, W as installCcr, X as configureCcrFeature, Y as handleExitPromptError, Z as handleGeneralError, _ as readAicoConfigAsync, $ as COMETIX_COMMANDS, a0 as COMETIX_COMMAND_NAME, a1 as installCometixLine, o as openSettingsJson, b as importRecommendedPermissions, a as importRecommendedEnv, z as readMcpConfig, G as fixWindowsMcpConfig, B as writeMcpConfig, a2 as selectMcpServices, D as backupMcpConfig, M as MCP_SERVICES, F as buildMcpServerConfig, a3 as EscapeKeyPressed, E as mergeMcpServers, a4 as displayBanner, a5 as selectAndInstallWorkflows, a6 as displayBannerWithInfo, i as init, a7 as executeWithEscapeSupport, a8 as checkAndUpdateTools } from './shared/aico-cli.mxgSz9yk.mjs';
|
|
5
5
|
import inquirer$1 from 'inquirer';
|
|
6
6
|
import { existsSync } from 'node:fs';
|
|
7
|
-
import { x } from 'tinyexec';
|
|
8
7
|
import { homedir } from 'node:os';
|
|
9
8
|
import { join } from 'node:path';
|
|
10
9
|
import { exec } from 'child_process';
|
|
11
10
|
import { promisify } from 'util';
|
|
11
|
+
import { x } from 'tinyexec';
|
|
12
12
|
import { exec as exec$1, spawn } from 'node:child_process';
|
|
13
13
|
import { promisify as promisify$1 } from 'node:util';
|
|
14
14
|
import 'dayjs';
|
|
15
15
|
import 'pathe';
|
|
16
|
-
import 'node:url';
|
|
17
16
|
import 'ora';
|
|
17
|
+
import 'node:url';
|
|
18
18
|
import 'node:fs/promises';
|
|
19
19
|
|
|
20
20
|
async function selectAiOutputLanguage(scriptLang, defaultLang) {
|
|
@@ -218,13 +218,18 @@ async function showCcrMenu(scriptLang) {
|
|
|
218
218
|
console.log(` ${ansis.yellow("0.")} ${i18n.ccr.ccrMenuOptions.back}`);
|
|
219
219
|
console.log("");
|
|
220
220
|
const { choice } = await inquirer$1.prompt({
|
|
221
|
-
type: "
|
|
221
|
+
type: "list",
|
|
222
222
|
name: "choice",
|
|
223
223
|
message: i18n.common.enterChoice,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
224
|
+
choices: [
|
|
225
|
+
{ name: `${i18n.ccr.ccrMenuOptions.initCcr} ${ansis.gray("- " + i18n.ccr.ccrMenuDescriptions.initCcr)}`, value: "1" },
|
|
226
|
+
{ name: `${i18n.ccr.ccrMenuOptions.startUi} ${ansis.gray("- " + i18n.ccr.ccrMenuDescriptions.startUi)}`, value: "2" },
|
|
227
|
+
{ name: `${i18n.ccr.ccrMenuOptions.checkStatus} ${ansis.gray("- " + i18n.ccr.ccrMenuDescriptions.checkStatus)}`, value: "3" },
|
|
228
|
+
{ name: `${i18n.ccr.ccrMenuOptions.restart} ${ansis.gray("- " + i18n.ccr.ccrMenuDescriptions.restart)}`, value: "4" },
|
|
229
|
+
{ name: `${i18n.ccr.ccrMenuOptions.start} ${ansis.gray("- " + i18n.ccr.ccrMenuDescriptions.start)}`, value: "5" },
|
|
230
|
+
{ name: `${i18n.ccr.ccrMenuOptions.stop} ${ansis.gray("- " + i18n.ccr.ccrMenuDescriptions.stop)}`, value: "6" },
|
|
231
|
+
{ name: i18n.ccr.ccrMenuOptions.back, value: "0" }
|
|
232
|
+
]
|
|
228
233
|
});
|
|
229
234
|
switch (choice) {
|
|
230
235
|
case "1":
|
|
@@ -637,11 +642,16 @@ async function configureAiMemoryFeature(scriptLang) {
|
|
|
637
642
|
}
|
|
638
643
|
async function configureCCR(scriptLang) {
|
|
639
644
|
const i18n = getTranslation(scriptLang);
|
|
640
|
-
const
|
|
641
|
-
|
|
642
|
-
|
|
645
|
+
const existingConfig = readCcrConfig();
|
|
646
|
+
const ccrInstallStatus = await isCcrInstalled();
|
|
647
|
+
if (existingConfig && ccrInstallStatus.isInstalled && ccrInstallStatus.hasCorrectPackage) {
|
|
648
|
+
console.log(ansis.green(`\u2714 ${i18n.ccr.existingCcrConfig || "CCR configuration already exists"}`));
|
|
649
|
+
console.log(ansis.green(`\u2714 ${i18n.ccr.ccrAlreadyInstalled || "CCR is already installed"}`));
|
|
650
|
+
console.log(ansis.cyan(`${i18n.ccr.showingCcrMenu || "Showing CCR menu..."}`));
|
|
651
|
+
await showCcrMenu(scriptLang);
|
|
652
|
+
} else {
|
|
653
|
+
await configureCcrFeature(scriptLang);
|
|
643
654
|
}
|
|
644
|
-
await configureCcrFeature(scriptLang);
|
|
645
655
|
}
|
|
646
656
|
async function configureCCometixLine(scriptLang) {
|
|
647
657
|
await showCometixMenu(scriptLang);
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AICO_CONFIG_FILE, k as AI_OUTPUT_LANGUAGES, C as CLAUDE_DIR, e as CLAUDE_MD_FILE, f as ClAUDE_CONFIG_FILE, I as I18N, j as LANG_LABELS, L as LEGACY_AICO_CONFIG_FILE, M as MCP_SERVICES, S as SETTINGS_FILE, h as SUPPORTED_LANGS, H as addCompletedOnboarding, x as applyAiLanguageDirective, q as backupExistingConfig, D as backupMcpConfig, F as buildMcpServerConfig, d as cleanupPermissions, c as commandExists, s as configureApi, r as copyConfigFiles, p as ensureClaudeDir, G as fixWindowsMcpConfig, w as getExistingApiConfig, y as getMcpConfigPath, g as getPlatform, a as importRecommendedEnv, b as importRecommendedPermissions, i as init, n as installClaudeCode, l as isClaudeCodeInstalled, m as mergeAndCleanPermissions, t as mergeConfigs, E as mergeMcpServers, v as mergeSettingsFile, o as openSettingsJson, z as readMcpConfig, u as updateDefaultModel, B as writeMcpConfig } from './shared/aico-cli.
|
|
1
|
+
export { A as AICO_CONFIG_FILE, k as AI_OUTPUT_LANGUAGES, C as CLAUDE_DIR, e as CLAUDE_MD_FILE, f as ClAUDE_CONFIG_FILE, I as I18N, j as LANG_LABELS, L as LEGACY_AICO_CONFIG_FILE, M as MCP_SERVICES, S as SETTINGS_FILE, h as SUPPORTED_LANGS, H as addCompletedOnboarding, x as applyAiLanguageDirective, q as backupExistingConfig, D as backupMcpConfig, F as buildMcpServerConfig, d as cleanupPermissions, c as commandExists, s as configureApi, r as copyConfigFiles, p as ensureClaudeDir, G as fixWindowsMcpConfig, w as getExistingApiConfig, y as getMcpConfigPath, g as getPlatform, a as importRecommendedEnv, b as importRecommendedPermissions, i as init, n as installClaudeCode, l as isClaudeCodeInstalled, m as mergeAndCleanPermissions, t as mergeConfigs, E as mergeMcpServers, v as mergeSettingsFile, o as openSettingsJson, z as readMcpConfig, u as updateDefaultModel, B as writeMcpConfig } from './shared/aico-cli.mxgSz9yk.mjs';
|
|
2
2
|
import 'ansis';
|
|
3
3
|
import 'inquirer';
|
|
4
4
|
import 'node:fs';
|
|
@@ -8,9 +8,9 @@ import 'node:child_process';
|
|
|
8
8
|
import 'node:os';
|
|
9
9
|
import 'node:path';
|
|
10
10
|
import 'node:util';
|
|
11
|
-
import 'node:url';
|
|
12
11
|
import 'child_process';
|
|
13
12
|
import 'util';
|
|
14
13
|
import 'ora';
|
|
14
|
+
import 'node:url';
|
|
15
15
|
import 'tinyexec';
|
|
16
16
|
import 'node:fs/promises';
|