aico-cli 2.0.31 → 2.0.32

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.
@@ -1,8 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.0.44",
4
- "main": "sdk.mjs",
5
- "types": "sdk.d.ts",
3
+ "version": "2.0.53",
6
4
  "bin": {
7
5
  "claude": "cli.js"
8
6
  },
@@ -27,6 +25,8 @@
27
25
  "@img/sharp-linux-arm": "^0.33.5",
28
26
  "@img/sharp-linux-arm64": "^0.33.5",
29
27
  "@img/sharp-linux-x64": "^0.33.5",
28
+ "@img/sharp-linuxmusl-arm64": "^0.33.5",
29
+ "@img/sharp-linuxmusl-x64": "^0.33.5",
30
30
  "@img/sharp-win32-x64": "^0.33.5"
31
31
  }
32
32
  }
@@ -23,11 +23,10 @@ export type ToolInputSchemas =
23
23
  | McpInput
24
24
  | NotebookEditInput
25
25
  | ReadMcpResourceInput
26
- | TimeMachineInput
27
26
  | TodoWriteInput
28
27
  | WebFetchInput
29
28
  | WebSearchInput
30
- | MultipleChoiceQuestionInput;
29
+ | AskUserQuestionInput;
31
30
 
32
31
  export interface AgentInput {
33
32
  /**
@@ -253,20 +252,6 @@ export interface ReadMcpResourceInput {
253
252
  */
254
253
  uri: string;
255
254
  }
256
- export interface TimeMachineInput {
257
- /**
258
- * The prefix of the user message to rewind to (searches backwards for first match)
259
- */
260
- message_prefix: string;
261
- /**
262
- * The new instructions to inject after rewinding, explaining what to do differently
263
- */
264
- course_correction: string;
265
- /**
266
- * Whether to restore code changes using file history (default: true)
267
- */
268
- restore_code?: boolean;
269
- }
270
255
  export interface TodoWriteInput {
271
256
  /**
272
257
  * The updated todo list
@@ -301,7 +286,7 @@ export interface WebSearchInput {
301
286
  */
302
287
  blocked_domains?: string[];
303
288
  }
304
- export interface MultipleChoiceQuestionInput {
289
+ export interface AskUserQuestionInput {
305
290
  /**
306
291
  * Questions to ask the user (1-4 questions)
307
292
  *
@@ -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.31";
17
+ const version = "2.0.32";
18
18
 
19
19
  function displayBanner(subtitle) {
20
20
  const defaultSubtitle = "\u4E00\u952E\u914D\u7F6E\u4F60\u7684\u5F00\u53D1\u73AF\u5883";
@@ -4653,6 +4653,16 @@ const DEFAULT_FILE_COPY_CONFIGS = [
4653
4653
  deleteBeforeCopy: true
4654
4654
  }
4655
4655
  },
4656
+ {
4657
+ source: "templates/hooks",
4658
+ destination: join(CLAUDE_DIR, "hooks"),
4659
+ type: "directory",
4660
+ options: {
4661
+ mergeStrategy: "copy",
4662
+ backupBeforeCopy: true,
4663
+ deleteBeforeCopy: true
4664
+ }
4665
+ },
4656
4666
  {
4657
4667
  source: "templates/commands",
4658
4668
  destination: join(CLAUDE_DIR, "commands"),
package/dist/cli.mjs CHANGED
@@ -204,7 +204,7 @@ async function tryStartClaude(command, args, options) {
204
204
  console.log(ansis.gray(` \u5DE5\u4F5C\u76EE\u5F55: ${options.cwd || process.cwd()}`));
205
205
  await new Promise((resolve) => setTimeout(resolve, 500));
206
206
  const spawnOptions = {
207
- name: "Claude Code",
207
+ name: "\u667A\u80FD\u8F6F\u4EF6\u661F\u5DE5\u5382",
208
208
  cwd: options.cwd || process.cwd(),
209
209
  stdio: "inherit"
210
210
  // 必须继承 stdio 才能正确交互
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aico-cli",
3
- "version": "2.0.31",
3
+ "version": "2.0.32",
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",
44
+ "@anthropic-ai/claude-code": "^2.0.52",
45
45
  "ansis": "^3.17.0",
46
46
  "cac": "^6.7.14",
47
47
  "dayjs": "^1.11.13",