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.
Files changed (41) hide show
  1. package/bin/cli/LICENSE.md +1 -1
  2. package/bin/cli/README.md +2 -2
  3. package/bin/cli/cli.js +1893 -1682
  4. package/bin/cli/package.json +1 -1
  5. package/bin/cli/sdk-tools.d.ts +28 -1
  6. package/dist/chunks/simple-config.mjs +1 -1
  7. package/dist/cli.mjs +29 -36
  8. package/package.json +2 -2
  9. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/annotations-23.0.0.jar +0 -0
  10. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/claude-code-jetbrains-plugin-0.1.12-beta-searchableOptions.jar +0 -0
  11. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/claude-code-jetbrains-plugin-0.1.12-beta.jar +0 -0
  12. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/config-1.4.3.jar +0 -0
  13. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/jansi-2.4.1.jar +0 -0
  14. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlin-logging-jvm-7.0.0.jar +0 -0
  15. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlin-reflect-2.0.21.jar +0 -0
  16. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlin-sdk-jvm-0.4.0.jar +0 -0
  17. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlin-stdlib-2.1.20.jar +0 -0
  18. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlinx-coroutines-core-jvm-1.9.0.jar +0 -0
  19. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlinx-coroutines-slf4j-1.9.0.jar +0 -0
  20. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlinx-io-bytestring-jvm-0.5.4.jar +0 -0
  21. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlinx-io-core-jvm-0.5.4.jar +0 -0
  22. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlinx-serialization-core-jvm-1.8.1.jar +0 -0
  23. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/kotlinx-serialization-json-jvm-1.8.1.jar +0 -0
  24. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-client-cio-jvm-3.0.2.jar +0 -0
  25. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-client-core-jvm-3.0.2.jar +0 -0
  26. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-events-jvm-3.0.2.jar +0 -0
  27. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-http-cio-jvm-3.0.2.jar +0 -0
  28. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-http-jvm-3.0.2.jar +0 -0
  29. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-io-jvm-3.0.2.jar +0 -0
  30. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-network-jvm-3.0.2.jar +0 -0
  31. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-network-tls-jvm-3.0.2.jar +0 -0
  32. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-serialization-jvm-3.0.2.jar +0 -0
  33. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-server-cio-jvm-3.0.2.jar +0 -0
  34. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-server-core-jvm-3.0.2.jar +0 -0
  35. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-server-sse-jvm-3.0.2.jar +0 -0
  36. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-server-websockets-jvm-3.0.2.jar +0 -0
  37. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-sse-jvm-3.0.2.jar +0 -0
  38. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-utils-jvm-3.0.2.jar +0 -0
  39. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-websocket-serialization-jvm-3.0.2.jar +0 -0
  40. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/ktor-websockets-jvm-3.0.2.jar +0 -0
  41. package/bin/cli/vendor/claude-code-jetbrains-plugin/lib/slf4j-api-2.0.16.jar +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.0.57",
3
+ "version": "2.0.62",
4
4
  "bin": {
5
5
  "claude": "cli.js"
6
6
  },
@@ -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.34";
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
- let updateSuccess = true;
599
- console.log(ansis.cyan("\u{1F504} \u6B63\u5728\u66F4\u65B0\u667A\u80FD\u8F6F\u4EF6\u661F\u5DE5\u5382..."));
600
- try {
601
- await updateAicoCli(true);
602
- console.log(ansis.green("\u2705 \u5B8C\u6210\u66F4\u65B0"));
603
- } catch (updateError) {
604
- updateSuccess = false;
605
- console.log(ansis.yellow("\u26A0\uFE0F \u7248\u672C\u66F4\u65B0\u5931\u8D25\uFF0C\u8DF3\u8FC7\u914D\u7F6E\u66F4\u65B0\uFF0C\u76F4\u63A5\u542F\u52A8\u7F16\u8F91\u5668..."));
606
- }
607
- if (updateSuccess) {
608
- const configType = await checker.detectConfigType();
609
- const aicoConfig = readAicoConfig();
610
- const needsReinstall = !aicoConfig || aicoConfig.version !== version;
611
- if (configType === "none") {
612
- console.log(ansis.cyan("\u{1F4E6} \u672A\u68C0\u6D4B\u5230\u914D\u7F6E\uFF0C\u6B63\u5728\u5B89\u88C5\u516C\u53F8\u914D\u7F6E..."));
613
- const { init } = await import('./chunks/simple-config.mjs').then(function (n) { return n.a0; });
614
- await init({
615
- skipBanner: true,
616
- skipPrompt: true,
617
- apiType: "auth_token"
618
- });
619
- } else if (needsReinstall) {
620
- 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...`));
621
- const { init } = await import('./chunks/simple-config.mjs').then(function (n) { return n.a0; });
622
- await init({
623
- apiType: configType === "company" ? "auth_token" : "ccr_proxy",
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.34",
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.57",
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",