@polka-codes/cli 0.7.20 → 0.7.21
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/dist/index.js +9 -4
- 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.
|
|
24607
|
+
var version = "0.7.21";
|
|
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: '
|
|
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
|
}
|
|
@@ -46020,7 +46020,12 @@ async function searchFiles(path2, regex, filePattern, cwd, excludeFiles) {
|
|
|
46020
46020
|
"--smart-case"
|
|
46021
46021
|
];
|
|
46022
46022
|
if (filePattern && filePattern !== "*") {
|
|
46023
|
-
|
|
46023
|
+
const patterns = filePattern.split(",").map((p2) => p2.trim()).filter(Boolean);
|
|
46024
|
+
for (const pattern of patterns) {
|
|
46025
|
+
if (pattern) {
|
|
46026
|
+
args2.push("--glob", pattern);
|
|
46027
|
+
}
|
|
46028
|
+
}
|
|
46024
46029
|
}
|
|
46025
46030
|
if (excludeFiles) {
|
|
46026
46031
|
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.
|
|
3
|
+
"version": "0.7.21",
|
|
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.
|
|
22
|
-
"@polka-codes/cli-shared": "0.7.
|
|
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",
|