aico-cli 2.0.34 → 2.0.35
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/bin/cli/LICENSE.md +1 -1
- package/bin/cli/README.md +2 -2
- package/bin/cli/cli.js +1893 -1682
- package/bin/cli/package.json +1 -1
- package/bin/cli/sdk-tools.d.ts +28 -1
- package/dist/chunks/simple-config.mjs +1 -1
- package/dist/cli.mjs +29 -36
- package/package.json +2 -2
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/annotations-23.0.0.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/claude-code-jetbrains-plugin-0.1.12-beta-searchableOptions.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/claude-code-jetbrains-plugin-0.1.12-beta.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/config-1.4.3.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/jansi-2.4.1.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlin-logging-jvm-7.0.0.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlin-reflect-2.0.21.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlin-sdk-jvm-0.4.0.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlin-stdlib-2.1.20.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlinx-coroutines-core-jvm-1.9.0.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlinx-coroutines-slf4j-1.9.0.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlinx-io-bytestring-jvm-0.5.4.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlinx-io-core-jvm-0.5.4.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlinx-serialization-core-jvm-1.8.1.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlinx-serialization-json-jvm-1.8.1.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-client-cio-jvm-3.0.2.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-client-core-jvm-3.0.2.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-events-jvm-3.0.2.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-http-cio-jvm-3.0.2.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-http-jvm-3.0.2.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-io-jvm-3.0.2.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-network-jvm-3.0.2.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-network-tls-jvm-3.0.2.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-serialization-jvm-3.0.2.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-server-cio-jvm-3.0.2.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-server-core-jvm-3.0.2.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-server-sse-jvm-3.0.2.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-server-websockets-jvm-3.0.2.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-sse-jvm-3.0.2.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-utils-jvm-3.0.2.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-websocket-serialization-jvm-3.0.2.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-websockets-jvm-3.0.2.jar +0 -0
- package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/slf4j-api-2.0.16.jar +0 -0
package/bin/cli/package.json
CHANGED
package/bin/cli/sdk-tools.d.ts
CHANGED
|
@@ -26,7 +26,8 @@ export type ToolInputSchemas =
|
|
|
26
26
|
| TodoWriteInput
|
|
27
27
|
| WebFetchInput
|
|
28
28
|
| WebSearchInput
|
|
29
|
-
| AskUserQuestionInput
|
|
29
|
+
| AskUserQuestionInput
|
|
30
|
+
| AgentOutputInput;
|
|
30
31
|
|
|
31
32
|
export interface AgentInput {
|
|
32
33
|
/**
|
|
@@ -49,6 +50,10 @@ export interface AgentInput {
|
|
|
49
50
|
* Optional agent ID to resume from. If provided, the agent will continue from the previous execution transcript.
|
|
50
51
|
*/
|
|
51
52
|
resume?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Set to true to run this agent in the background. Use AgentOutputTool to read the output later.
|
|
55
|
+
*/
|
|
56
|
+
run_in_background?: boolean;
|
|
52
57
|
}
|
|
53
58
|
export interface BashInput {
|
|
54
59
|
/**
|
|
@@ -94,6 +99,14 @@ export interface BashOutputInput {
|
|
|
94
99
|
filter?: string;
|
|
95
100
|
}
|
|
96
101
|
export interface ExitPlanModeInput {
|
|
102
|
+
/**
|
|
103
|
+
* Whether to launch a swarm to implement the plan
|
|
104
|
+
*/
|
|
105
|
+
launchSwarm?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Number of teammates to spawn in the swarm
|
|
108
|
+
*/
|
|
109
|
+
teammateCount?: number;
|
|
97
110
|
[k: string]: unknown;
|
|
98
111
|
}
|
|
99
112
|
export interface FileEditInput {
|
|
@@ -1476,3 +1489,17 @@ export interface AskUserQuestionInput {
|
|
|
1476
1489
|
[k: string]: string;
|
|
1477
1490
|
};
|
|
1478
1491
|
}
|
|
1492
|
+
export interface AgentOutputInput {
|
|
1493
|
+
/**
|
|
1494
|
+
* The agent ID to retrieve results for
|
|
1495
|
+
*/
|
|
1496
|
+
agentId: string;
|
|
1497
|
+
/**
|
|
1498
|
+
* Whether to block until results are ready
|
|
1499
|
+
*/
|
|
1500
|
+
block?: boolean;
|
|
1501
|
+
/**
|
|
1502
|
+
* Maximum time to wait in seconds
|
|
1503
|
+
*/
|
|
1504
|
+
wait_up_to?: number;
|
|
1505
|
+
}
|
|
@@ -14,7 +14,7 @@ import { join, dirname, basename } from 'pathe';
|
|
|
14
14
|
import { fileURLToPath } from 'node:url';
|
|
15
15
|
import { EventEmitter } from 'node:events';
|
|
16
16
|
|
|
17
|
-
const version = "2.0.
|
|
17
|
+
const version = "2.0.35";
|
|
18
18
|
|
|
19
19
|
function displayBanner(subtitle) {
|
|
20
20
|
const defaultSubtitle = "\u4E00\u952E\u914D\u7F6E\u4F60\u7684\u5F00\u53D1\u73AF\u5883";
|
package/dist/cli.mjs
CHANGED
|
@@ -595,43 +595,36 @@ async function startCodeEditor() {
|
|
|
595
595
|
try {
|
|
596
596
|
const context = createDefaultContext();
|
|
597
597
|
const checker = new ConfigCheckerInstaller(context);
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
skipBanner: true,
|
|
625
|
-
skipPrompt: true,
|
|
626
|
-
force: true
|
|
627
|
-
});
|
|
628
|
-
} else {
|
|
629
|
-
console.log(ansis.green(`\u2705 ${configType === "company" ? "\u516C\u53F8" : "\u4E2A\u4EBA"}\u914D\u7F6E\u5DF2\u5C31\u7EEA`));
|
|
630
|
-
}
|
|
631
|
-
updateAicoConfig({ version });
|
|
632
|
-
const finalConfigType = await checker.detectConfigType();
|
|
633
|
-
console.log(ansis.cyan(`\u{1F680} \u6B63\u5728\u542F\u52A8${finalConfigType === "company" ? "\u516C\u53F8" : "\u4E2A\u4EBA"}\u914D\u7F6E...`));
|
|
598
|
+
updateAicoCli(true).then(() => {
|
|
599
|
+
console.log(ansis.green("\u2705 AICO CLI \u540E\u53F0\u66F4\u65B0\u5B8C\u6210"));
|
|
600
|
+
}).catch(() => {
|
|
601
|
+
});
|
|
602
|
+
const configType = await checker.detectConfigType();
|
|
603
|
+
const aicoConfig = readAicoConfig();
|
|
604
|
+
const needsReinstall = !aicoConfig || aicoConfig.version !== version;
|
|
605
|
+
if (configType === "none") {
|
|
606
|
+
console.log(ansis.cyan("\u{1F4E6} \u672A\u68C0\u6D4B\u5230\u914D\u7F6E\uFF0C\u6B63\u5728\u5B89\u88C5\u516C\u53F8\u914D\u7F6E..."));
|
|
607
|
+
const { init } = await import('./chunks/simple-config.mjs').then(function (n) { return n.a0; });
|
|
608
|
+
await init({
|
|
609
|
+
skipBanner: true,
|
|
610
|
+
skipPrompt: true,
|
|
611
|
+
apiType: "auth_token"
|
|
612
|
+
});
|
|
613
|
+
} else if (needsReinstall) {
|
|
614
|
+
console.log(ansis.cyan(`\u{1F504} \u68C0\u6D4B\u5230\u65B0\u7248\u672C\uFF0C\u6B63\u5728\u66F4\u65B0${configType === "company" ? "\u516C\u53F8" : "\u4E2A\u4EBA"}\u914D\u7F6E...`));
|
|
615
|
+
const { init } = await import('./chunks/simple-config.mjs').then(function (n) { return n.a0; });
|
|
616
|
+
await init({
|
|
617
|
+
apiType: configType === "company" ? "auth_token" : "ccr_proxy",
|
|
618
|
+
skipBanner: true,
|
|
619
|
+
skipPrompt: true,
|
|
620
|
+
force: true
|
|
621
|
+
});
|
|
622
|
+
} else {
|
|
623
|
+
console.log(ansis.green(`\u2705 ${configType === "company" ? "\u516C\u53F8" : "\u4E2A\u4EBA"}\u914D\u7F6E\u5DF2\u5C31\u7EEA`));
|
|
634
624
|
}
|
|
625
|
+
updateAicoConfig({ version });
|
|
626
|
+
const finalConfigType = await checker.detectConfigType();
|
|
627
|
+
console.log(ansis.cyan(`\u{1F680} \u6B63\u5728\u542F\u52A8${finalConfigType === "company" ? "\u516C\u53F8" : "\u4E2A\u4EBA"}\u914D\u7F6E...`));
|
|
635
628
|
await startClaudeCodeEditorWithSkipPermissions();
|
|
636
629
|
} catch (error) {
|
|
637
630
|
console.error(ansis.red(`\u2716 \u542F\u52A8\u4EE3\u7801\u7F16\u8F91\u5668\u5931\u8D25: ${error}`));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aico-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.35",
|
|
4
4
|
"packageManager": "pnpm@9.15.9",
|
|
5
5
|
"description": "AI CLI",
|
|
6
6
|
"repository": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"hooks:clean": "rimraf templates/hooks/dist templates/hooks/*.js templates/hooks/*.d.ts templates/hooks/*.js.map"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@anthropic-ai/claude-code": "^2.0.
|
|
44
|
+
"@anthropic-ai/claude-code": "^2.0.62",
|
|
45
45
|
"ansis": "^3.17.0",
|
|
46
46
|
"cac": "^6.7.14",
|
|
47
47
|
"dayjs": "^1.11.13",
|
|
Binary file
|
|
Binary file
|
package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/claude-code-jetbrains-plugin-0.1.12-beta.jar
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlinx-coroutines-core-jvm-1.9.0.jar
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlinx-serialization-core-jvm-1.8.1.jar
DELETED
|
Binary file
|
package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlinx-serialization-json-jvm-1.8.1.jar
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-server-websockets-jvm-3.0.2.jar
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-websocket-serialization-jvm-3.0.2.jar
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|