codemini-cli 0.3.0 → 0.3.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.
@@ -19,8 +19,30 @@ export function describeFileToolActivity(copy, parsed, options = {}) {
19
19
  if (parsed.base === 'patch') {
20
20
  return describePathTool(copy, parsed, { done: copy.toolActivity.donePatch, doing: copy.toolActivity.doingPatch }, options);
21
21
  }
22
- if (parsed.base === 'list' || parsed.base === 'glob' || parsed.base === 'grep') {
22
+ if (parsed.base === 'list') {
23
23
  return describePathTool(copy, parsed, { done: copy.toolActivity.doneList, doing: copy.toolActivity.doingList }, options);
24
24
  }
25
+ if (parsed.base === 'glob') {
26
+ return describePathTool(
27
+ copy,
28
+ parsed,
29
+ {
30
+ done: copy.toolActivity.doneGlob || copy.toolActivity.doneList,
31
+ doing: copy.toolActivity.doingGlob || copy.toolActivity.doingList
32
+ },
33
+ options
34
+ );
35
+ }
36
+ if (parsed.base === 'grep') {
37
+ return describePathTool(
38
+ copy,
39
+ parsed,
40
+ {
41
+ done: copy.toolActivity.doneGrep || copy.toolActivity.doneList,
42
+ doing: copy.toolActivity.doingGrep || copy.toolActivity.doingList
43
+ },
44
+ options
45
+ );
46
+ }
25
47
  return '';
26
48
  }
@@ -2,7 +2,7 @@ import { makeBlocked, trimText } from '../common.js';
2
2
 
3
3
  export function describeSystemToolActivity(copy, parsed, { done = false, blocked = false } = {}) {
4
4
  if (parsed.base === 'project_index') {
5
- if (blocked) return `${copy.toolActivity.blocked}: project index`;
5
+ if (blocked) return `${copy.toolActivity.blocked}: ${copy.toolActivity.doingProjectIndex}`;
6
6
  return done ? copy.toolActivity.doneProjectIndex : copy.toolActivity.doingProjectIndex;
7
7
  }
8
8
  if (parsed.base === 'file_index') {
@@ -1,7 +1,7 @@
1
1
  export const globPresenter = {
2
2
  prelude: {
3
- en: ({ target }) => (target ? `I'll inspect the ${target} directory first.` : 'I\'ll inspect the relevant directory first.'),
4
- zh: ({ target }) => (target ? `我先查看 ${target} 目录里的内容。` : '我先查看相关目录内容。')
3
+ en: ({ target }) => (target ? `I'll find files matching ${target} first.` : 'I\'ll find the relevant files by pattern first.'),
4
+ zh: ({ target }) => (target ? `我先按模式查找匹配 ${target} 的文件。` : '我先按模式查找相关文件。')
5
5
  },
6
6
  completion: {
7
7
  en: () => 'I have the relevant context now. Do you want me to make the change next, or summarize the findings first?',
@@ -1,7 +1,7 @@
1
1
  export const grepPresenter = {
2
2
  prelude: {
3
- en: () => `I'll search the relevant code first.`,
4
- zh: () => '我先搜索相关代码位置。'
3
+ en: ({ target }) => (target ? `I'll search the codebase for the keyword ${target} first.` : `I'll search the codebase by keyword first.`),
4
+ zh: ({ target }) => (target ? `我先按关键词搜索 ${target} 相关的代码位置。` : '我先按关键词搜索相关代码位置。')
5
5
  },
6
6
  completion: {
7
7
  en: () => 'I found the relevant spots. Do you want me to make the change next, or summarize the findings first?',
@@ -1,7 +1,7 @@
1
1
  export const listPresenter = {
2
2
  prelude: {
3
- en: ({ target }) => (target ? `I'll inspect the ${target} directory first.` : 'I\'ll inspect the relevant directory first.'),
4
- zh: ({ target }) => (target ? `我先查看 ${target} 目录里的内容。` : '我先查看相关目录内容。')
3
+ en: ({ target }) => (target ? `I'll list the contents of ${target} first.` : 'I\'ll list the relevant directory contents first.'),
4
+ zh: ({ target }) => (target ? `我先列出 ${target} 目录内容。` : '我先列出相关目录内容。')
5
5
  },
6
6
  completion: {
7
7
  en: () => 'I have the relevant context now. Do you want me to make the change next, or summarize the findings first?',
@@ -1,7 +1,7 @@
1
1
  export const runPresenter = {
2
2
  prelude: {
3
- en: () => `I'll verify the current project state first.`,
4
- zh: () => '我先检查当前项目状态。'
3
+ en: ({ target }) => (target ? `I'll run ${target} first and check the result.` : `I'll run the relevant command first and check the result.`),
4
+ zh: ({ target }) => (target ? `我先执行 ${target},再看一下结果。` : '我先执行相关命令,再看一下结果。')
5
5
  },
6
6
  completion: {
7
7
  en: () => 'That step is finished. Do you want me to act on the result next, or summarize what it means first?',