@polka-codes/cli 0.7.20 → 0.7.22

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 (2) hide show
  1. package/dist/index.js +12 -4
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -24604,7 +24604,7 @@ var {
24604
24604
  Help
24605
24605
  } = import__.default;
24606
24606
  // package.json
24607
- var version = "0.7.20";
24607
+ var version = "0.7.22";
24608
24608
 
24609
24609
  // ../core/src/AiService/AiServiceBase.ts
24610
24610
  class AiServiceBase {
@@ -34612,7 +34612,7 @@ var toolInfo9 = {
34612
34612
  },
34613
34613
  {
34614
34614
  name: "file_pattern",
34615
- description: 'Glob pattern to filter files (e.g., "*.ts" for TypeScript files). If not provided, it will search all files (*).',
34615
+ description: 'Comma-separated glob pattern to filter files (e.g., "*.ts" for TypeScript files or "*.ts,*.js" for both TypeScript and JavaScript files). If not provided, it will search all files (*).',
34616
34616
  required: false,
34617
34617
  usageValue: "file pattern here (optional)"
34618
34618
  }
@@ -34631,7 +34631,7 @@ var toolInfo9 = {
34631
34631
  },
34632
34632
  {
34633
34633
  name: "file_pattern",
34634
- value: "*.ts"
34634
+ value: "*.ts,*.tsx"
34635
34635
  }
34636
34636
  ]
34637
34637
  }
@@ -35203,6 +35203,9 @@ ${agents}`;
35203
35203
  get messages() {
35204
35204
  return this.#messages;
35205
35205
  }
35206
+ setMessages(messages) {
35207
+ this.#messages = messages;
35208
+ }
35206
35209
  async#callback(event) {
35207
35210
  await this.config.callback?.(event);
35208
35211
  }
@@ -46020,7 +46023,12 @@ async function searchFiles(path2, regex, filePattern, cwd, excludeFiles) {
46020
46023
  "--smart-case"
46021
46024
  ];
46022
46025
  if (filePattern && filePattern !== "*") {
46023
- args2.push("--glob", filePattern);
46026
+ const patterns = filePattern.split(",").map((p2) => p2.trim()).filter(Boolean);
46027
+ for (const pattern of patterns) {
46028
+ if (pattern) {
46029
+ args2.push("--glob", pattern);
46030
+ }
46031
+ }
46024
46032
  }
46025
46033
  if (excludeFiles) {
46026
46034
  for (const pattern of excludeFiles) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/cli",
3
- "version": "0.7.20",
3
+ "version": "0.7.22",
4
4
  "license": "AGPL-3.0",
5
5
  "author": "github@polka.codes",
6
6
  "type": "module",
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@inquirer/prompts": "^7.2.3",
21
- "@polka-codes/core": "0.7.18",
22
- "@polka-codes/cli-shared": "0.7.18",
21
+ "@polka-codes/core": "0.7.20",
22
+ "@polka-codes/cli-shared": "0.7.20",
23
23
  "commander": "^13.0.0",
24
24
  "dotenv": "^16.4.7",
25
25
  "lodash": "^4.17.21",