@polka-codes/cli-shared 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.
- package/dist/index.js +11 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -30522,7 +30522,7 @@ var toolInfo9 = {
|
|
|
30522
30522
|
},
|
|
30523
30523
|
{
|
|
30524
30524
|
name: "file_pattern",
|
|
30525
|
-
description: '
|
|
30525
|
+
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 (*).',
|
|
30526
30526
|
required: false,
|
|
30527
30527
|
usageValue: "file pattern here (optional)"
|
|
30528
30528
|
}
|
|
@@ -30541,7 +30541,7 @@ var toolInfo9 = {
|
|
|
30541
30541
|
},
|
|
30542
30542
|
{
|
|
30543
30543
|
name: "file_pattern",
|
|
30544
|
-
value: "*.ts"
|
|
30544
|
+
value: "*.ts,*.tsx"
|
|
30545
30545
|
}
|
|
30546
30546
|
]
|
|
30547
30547
|
}
|
|
@@ -31113,6 +31113,9 @@ ${agents}`;
|
|
|
31113
31113
|
get messages() {
|
|
31114
31114
|
return this.#messages;
|
|
31115
31115
|
}
|
|
31116
|
+
setMessages(messages) {
|
|
31117
|
+
this.#messages = messages;
|
|
31118
|
+
}
|
|
31116
31119
|
async#callback(event) {
|
|
31117
31120
|
await this.config.callback?.(event);
|
|
31118
31121
|
}
|
|
@@ -41341,7 +41344,12 @@ async function searchFiles(path2, regex, filePattern, cwd, excludeFiles) {
|
|
|
41341
41344
|
"--smart-case"
|
|
41342
41345
|
];
|
|
41343
41346
|
if (filePattern && filePattern !== "*") {
|
|
41344
|
-
|
|
41347
|
+
const patterns = filePattern.split(",").map((p2) => p2.trim()).filter(Boolean);
|
|
41348
|
+
for (const pattern of patterns) {
|
|
41349
|
+
if (pattern) {
|
|
41350
|
+
args2.push("--glob", pattern);
|
|
41351
|
+
}
|
|
41352
|
+
}
|
|
41345
41353
|
}
|
|
41346
41354
|
if (excludeFiles) {
|
|
41347
41355
|
for (const pattern of excludeFiles) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polka-codes/cli-shared",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.22",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"author": "github@polka.codes",
|
|
6
6
|
"type": "module",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"build": "bun build src/index.ts --outdir dist --target node"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@polka-codes/core": "0.7.
|
|
18
|
+
"@polka-codes/core": "0.7.20",
|
|
19
19
|
"@vscode/ripgrep": "^1.15.10",
|
|
20
20
|
"ignore": "^7.0.3",
|
|
21
21
|
"lodash": "^4.17.21",
|