picocode-core 0.9.169 → 0.9.170
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/package.json +2 -2
- package/src/files.js +3 -2
- package/src/tools/glob.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "picocode-core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.170",
|
|
4
4
|
"description": "The agent runtime behind pico: sessions, tools, subagents, MCP, memory, and model access",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
28
28
|
"@prsm/ai": "^1.7.2",
|
|
29
29
|
"diff": "^7.0.0",
|
|
30
|
-
"
|
|
30
|
+
"globby": "^16.2.4",
|
|
31
31
|
"proper-lockfile": "^4.1.2",
|
|
32
32
|
"unpdf": "^1.8.1"
|
|
33
33
|
}
|
package/src/files.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { execFile } from 'node:child_process'
|
|
2
|
-
import
|
|
2
|
+
import { globby } from 'globby'
|
|
3
3
|
|
|
4
4
|
const MAX_FILES = 5000
|
|
5
5
|
const TTL = 5000
|
|
@@ -23,10 +23,11 @@ export function listFiles(cwd) {
|
|
|
23
23
|
const request = (async () => {
|
|
24
24
|
let files = await ripgrepFiles(cwd)
|
|
25
25
|
if (!files) {
|
|
26
|
-
files = await
|
|
26
|
+
files = await globby('**/*', {
|
|
27
27
|
cwd,
|
|
28
28
|
onlyFiles: true,
|
|
29
29
|
dot: true,
|
|
30
|
+
gitignore: true,
|
|
30
31
|
ignore: ['**/node_modules/**', '**/.git/**'],
|
|
31
32
|
}).catch(() => [])
|
|
32
33
|
}
|
package/src/tools/glob.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describeParam } from './recorder.js'
|
|
2
2
|
import { execFile } from 'node:child_process'
|
|
3
|
-
import
|
|
3
|
+
import { globby } from 'globby'
|
|
4
4
|
|
|
5
5
|
const MAX_RESULTS = 200
|
|
6
6
|
|
|
@@ -27,9 +27,10 @@ export function createGlob({ cwd, recorder }) {
|
|
|
27
27
|
recorder.extra({ title: pattern })
|
|
28
28
|
let files = await ripgrepGlob(pattern, cwd)
|
|
29
29
|
if (files === null) {
|
|
30
|
-
files = await
|
|
30
|
+
files = await globby(pattern, {
|
|
31
31
|
cwd,
|
|
32
32
|
dot: true,
|
|
33
|
+
gitignore: true,
|
|
33
34
|
ignore: ['**/node_modules/**', '**/.git/**'],
|
|
34
35
|
})
|
|
35
36
|
}
|