@botconnector/bccli 0.4.0-beta.29 → 0.4.0-beta.30
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.
|
@@ -272,12 +272,16 @@ function validateGlobPattern(pattern) {
|
|
|
272
272
|
}
|
|
273
273
|
return void 0;
|
|
274
274
|
}
|
|
275
|
+
function normalizeGlobPath(path) {
|
|
276
|
+
return path.replaceAll("\\", "/");
|
|
277
|
+
}
|
|
275
278
|
|
|
276
279
|
export {
|
|
277
280
|
toolLabel,
|
|
278
281
|
runPrint,
|
|
279
282
|
ignorePatterns,
|
|
280
283
|
validateGlobPattern,
|
|
284
|
+
normalizeGlobPath,
|
|
281
285
|
BUILTIN_AGENTS,
|
|
282
286
|
instructionPaths,
|
|
283
287
|
buildSystemPrompt,
|
package/dist/cli.js
CHANGED
|
@@ -6,10 +6,11 @@ import {
|
|
|
6
6
|
loadAgentDefs,
|
|
7
7
|
loadCommands,
|
|
8
8
|
loadSkills,
|
|
9
|
+
normalizeGlobPath,
|
|
9
10
|
parseFrontmatter,
|
|
10
11
|
runPrint,
|
|
11
12
|
validateGlobPattern
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-22CEHQVR.js";
|
|
13
14
|
import {
|
|
14
15
|
helpText,
|
|
15
16
|
parseCliArgs
|
|
@@ -589,7 +590,7 @@ var globTool = defineTool({
|
|
|
589
590
|
const root = resolvePath(ctx.cwd, input.path ?? ".");
|
|
590
591
|
const files = [];
|
|
591
592
|
for await (const file of nativeGlob(input.pattern, { cwd: root, exclude: ignorePatterns(root) })) {
|
|
592
|
-
files.push(file);
|
|
593
|
+
files.push(normalizeGlobPath(file));
|
|
593
594
|
}
|
|
594
595
|
files.sort();
|
|
595
596
|
if (!files.length) return { output: "No matching files." };
|
|
@@ -621,7 +622,7 @@ async function grepJs(pattern, opts) {
|
|
|
621
622
|
const regex = new RegExp(pattern, opts.ignoreCase ? "i" : "");
|
|
622
623
|
const files = [];
|
|
623
624
|
for await (const file of nativeGlob2(opts.glob ?? "**/*", { cwd: opts.root, exclude: ignorePatterns(opts.root) })) {
|
|
624
|
-
files.push(file);
|
|
625
|
+
files.push(normalizeGlobPath(file));
|
|
625
626
|
}
|
|
626
627
|
const out = [];
|
|
627
628
|
for (const file of files.sort()) {
|
|
@@ -1676,7 +1677,7 @@ function createRuntime(opts) {
|
|
|
1676
1677
|
}
|
|
1677
1678
|
|
|
1678
1679
|
// src/version.ts
|
|
1679
|
-
var VERSION = true ? "0.4.0-beta.
|
|
1680
|
+
var VERSION = true ? "0.4.0-beta.30" : "0.0.0-dev";
|
|
1680
1681
|
|
|
1681
1682
|
// src/cli.ts
|
|
1682
1683
|
function chooseLanguage(argv) {
|
|
@@ -1747,7 +1748,7 @@ async function main() {
|
|
|
1747
1748
|
}
|
|
1748
1749
|
}
|
|
1749
1750
|
if (!process.stdin.isTTY) throw new ConfigError(t('Interactive mode needs a terminal. For scripts/CI use: bccli -p "task"'));
|
|
1750
|
-
const { startInteractive } = await import("./ui-
|
|
1751
|
+
const { startInteractive } = await import("./ui-HO3Z5LYD.js");
|
|
1751
1752
|
return startInteractive(rt, { initialPrompt: args.prompt, resume: args.resume, version: VERSION });
|
|
1752
1753
|
}
|
|
1753
1754
|
main().then(
|
|
@@ -3,10 +3,11 @@ import {
|
|
|
3
3
|
BUILTIN_AGENTS,
|
|
4
4
|
ignorePatterns,
|
|
5
5
|
instructionPaths,
|
|
6
|
+
normalizeGlobPath,
|
|
6
7
|
parseFrontmatter,
|
|
7
8
|
toolLabel,
|
|
8
9
|
validateGlobPattern
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-22CEHQVR.js";
|
|
10
11
|
import {
|
|
11
12
|
nextMode
|
|
12
13
|
} from "./chunk-ELML4KVQ.js";
|
|
@@ -813,10 +814,11 @@ function completeFile(value, cwd) {
|
|
|
813
814
|
const pattern = `${escaped}*`;
|
|
814
815
|
if (validateGlobPattern(pattern)) return value;
|
|
815
816
|
const found = globSync(pattern, { cwd, exclude: ignorePatterns(cwd) }).map((entry2) => {
|
|
817
|
+
const normalized = normalizeGlobPath(entry2);
|
|
816
818
|
try {
|
|
817
|
-
return statSync(join(cwd, entry2)).isDirectory() ? `${
|
|
819
|
+
return statSync(join(cwd, entry2)).isDirectory() ? `${normalized}/` : normalized;
|
|
818
820
|
} catch {
|
|
819
|
-
return
|
|
821
|
+
return normalized;
|
|
820
822
|
}
|
|
821
823
|
}).sort();
|
|
822
824
|
if (!found.length) return value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botconnector/bccli",
|
|
3
|
-
"version": "0.4.0-beta.
|
|
3
|
+
"version": "0.4.0-beta.30",
|
|
4
4
|
"description": "BCCLI — BotConnector AI coding agent for the terminal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -45,5 +45,16 @@
|
|
|
45
45
|
},
|
|
46
46
|
"overrides": {
|
|
47
47
|
"esbuild": "0.28.2"
|
|
48
|
-
}
|
|
48
|
+
},
|
|
49
|
+
"main": "index.js",
|
|
50
|
+
"directories": {
|
|
51
|
+
"doc": "docs",
|
|
52
|
+
"test": "test"
|
|
53
|
+
},
|
|
54
|
+
"keywords": [],
|
|
55
|
+
"author": "",
|
|
56
|
+
"bugs": {
|
|
57
|
+
"url": "https://github.com/farijarifriyanto-debug/bccli/issues"
|
|
58
|
+
},
|
|
59
|
+
"homepage": "https://github.com/farijarifriyanto-debug/bccli#readme"
|
|
49
60
|
}
|