pi-readseek 0.10.0 → 0.10.2
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/README.md +1 -1
- package/dist/index.ts +21 -15
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ pi install npm:pi-readseek
|
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
The extension uses the AppImage on Linux (without FUSE) and native executables on
|
|
13
|
-
macOS/Windows supplied by `@jarkkojs/readseek
|
|
13
|
+
macOS/Windows supplied by `@jarkkojs/readseek`. Set
|
|
14
14
|
`READSEEK_BINARY` to an absolute executable path to override it.
|
|
15
15
|
|
|
16
16
|
## Tools
|
package/dist/index.ts
CHANGED
|
@@ -920,18 +920,18 @@ function resolveReadSeekBinaryFromPackages(resolver = resolveFromPackage, option
|
|
|
920
920
|
const platformPackage = READSEEK_PLATFORM_PACKAGES[key];
|
|
921
921
|
if (!platformPackage) {
|
|
922
922
|
const supported = Object.keys(READSEEK_PLATFORM_PACKAGES).join(", ");
|
|
923
|
-
throw new Error(`@jarkkojs/readseek
|
|
923
|
+
throw new Error(`@jarkkojs/readseek ships no binary for ${key}; it supports ${supported}`);
|
|
924
924
|
}
|
|
925
|
-
const metaPackage = options.metaPackage ?? "@jarkkojs/readseek
|
|
926
|
-
const metaPackageJson = resolve(`${metaPackage}/package.json`);
|
|
927
|
-
const metaPackageDir = path.dirname(metaPackageJson);
|
|
925
|
+
const metaPackage = options.metaPackage ?? "@jarkkojs/readseek";
|
|
928
926
|
let packageJsonPath;
|
|
929
927
|
try {
|
|
930
|
-
|
|
931
|
-
|
|
928
|
+
const metaPackageJson = resolve(`${metaPackage}/package.json`);
|
|
929
|
+
const metaPackageDir = path.dirname(metaPackageJson);
|
|
932
930
|
packageJsonPath = resolve(`${platformPackage}/package.json`, {
|
|
933
931
|
paths: [metaPackageDir]
|
|
934
932
|
});
|
|
933
|
+
} catch {
|
|
934
|
+
packageJsonPath = resolve(`${platformPackage}/package.json`);
|
|
935
935
|
}
|
|
936
936
|
const binaryPath = path.join(path.dirname(packageJsonPath), "bin", readSeekBinaryName(platform));
|
|
937
937
|
accessSync(binaryPath, fsConstants.X_OK);
|
|
@@ -1414,15 +1414,21 @@ var SymbolOutput = Type.Object({
|
|
|
1414
1414
|
start_anchor: OptStr,
|
|
1415
1415
|
end_anchor: OptStr
|
|
1416
1416
|
});
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1417
|
+
function mapNodeShape(child) {
|
|
1418
|
+
return Type.Object({
|
|
1419
|
+
kind: Str,
|
|
1420
|
+
name: Str,
|
|
1421
|
+
start_line: Int,
|
|
1422
|
+
end_line: Int,
|
|
1423
|
+
start_anchor: Str,
|
|
1424
|
+
end_anchor: Str,
|
|
1425
|
+
children: Type.Array(child)
|
|
1426
|
+
});
|
|
1427
|
+
}
|
|
1428
|
+
function recursiveMapNode() {
|
|
1429
|
+
return Type.Recursive((self) => mapNodeShape(self));
|
|
1430
|
+
}
|
|
1431
|
+
var MapNode = typeof Type.Recursive === "function" ? recursiveMapNode() : Type.Cyclic({ MapNode: mapNodeShape(Type.Ref("MapNode")) }, "MapNode");
|
|
1426
1432
|
var MapOutput = Type.Object({
|
|
1427
1433
|
file: Str,
|
|
1428
1434
|
language: Str,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-readseek",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "Pi extension for LINE:HASH-anchored file operations and structural code navigation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"node": ">=20.0.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@jarkkojs/readseek
|
|
42
|
+
"@jarkkojs/readseek": "^0.10.2",
|
|
43
|
+
"@jarkkojs/readseek-api": "^0.10.2",
|
|
43
44
|
"diff": "^9.0.0",
|
|
44
45
|
"xxhash-wasm": "^1.1.0"
|
|
45
46
|
},
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
"devDependencies": {
|
|
52
53
|
"@bgotink/kdl": "0.4.0",
|
|
53
54
|
"@earendil-works/pi-ai": "^0.84.2",
|
|
54
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
55
|
+
"@earendil-works/pi-coding-agent": "^0.87.1",
|
|
55
56
|
"@earendil-works/pi-tui": "^0.84.2",
|
|
56
57
|
"@sinclair/typebox": "^0.34.48",
|
|
57
58
|
"@types/node": "^26.1.1",
|