@cortexkit/aft-pi 0.40.2 → 0.40.3
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.d.ts.map +1 -1
- package/dist/index.js +65 -15
- package/dist/tools/_shared.d.ts +13 -0
- package/dist/tools/_shared.d.ts.map +1 -1
- package/dist/tools/hoisted.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAeH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AASpE,OAAO,EACL,KAAK,SAAS,EAGd,mBAAmB,EACnB,aAAa,EAId,MAAM,aAAa,CAAC;AA8DrB,KAAK,mBAAmB,GAAG;IACzB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC9C,CAAC;AAEF,iBAAS,4BAA4B,CACnC,OAAO,EAAE,MAAM,mBAAmB,GAAG,SAAS,EAC9C,sBAAsB,GAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAgB,IAOrE,eAAe,MAAM,EAAE,YAAY,MAAM,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAyCjF;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAeH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AASpE,OAAO,EACL,KAAK,SAAS,EAGd,mBAAmB,EACnB,aAAa,EAId,MAAM,aAAa,CAAC;AA8DrB,KAAK,mBAAmB,GAAG;IACzB,aAAa,CAAC,IAAI,EA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EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAqEA;AAED;;;;GAIG;AACH,yBAA+B,EAAE,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAuf9D;AAED,eAAO,MAAM,QAAQ;;;;;;;CAOpB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -16304,7 +16304,7 @@ import {
|
|
|
16304
16304
|
// package.json
|
|
16305
16305
|
var package_default = {
|
|
16306
16306
|
name: "@cortexkit/aft-pi",
|
|
16307
|
-
version: "0.40.
|
|
16307
|
+
version: "0.40.3",
|
|
16308
16308
|
type: "module",
|
|
16309
16309
|
description: "Pi coding agent extension for Agent File Tools (AFT) — tree-sitter and LSP-powered code analysis",
|
|
16310
16310
|
main: "dist/index.js",
|
|
@@ -16327,7 +16327,7 @@ var package_default = {
|
|
|
16327
16327
|
"test:unit": "bun test src/__tests__ --path-ignore-patterns 'src/__tests__/e2e/**'"
|
|
16328
16328
|
},
|
|
16329
16329
|
dependencies: {
|
|
16330
|
-
"@cortexkit/aft-bridge": "0.40.
|
|
16330
|
+
"@cortexkit/aft-bridge": "0.40.3",
|
|
16331
16331
|
"@xterm/headless": "^5.5.0",
|
|
16332
16332
|
"comment-json": "^5.0.0",
|
|
16333
16333
|
diff: "^8.0.4",
|
|
@@ -16335,12 +16335,12 @@ var package_default = {
|
|
|
16335
16335
|
zod: "^4.1.8"
|
|
16336
16336
|
},
|
|
16337
16337
|
optionalDependencies: {
|
|
16338
|
-
"@cortexkit/aft-darwin-arm64": "0.40.
|
|
16339
|
-
"@cortexkit/aft-darwin-x64": "0.40.
|
|
16340
|
-
"@cortexkit/aft-linux-arm64": "0.40.
|
|
16341
|
-
"@cortexkit/aft-linux-x64": "0.40.
|
|
16342
|
-
"@cortexkit/aft-win32-arm64": "0.40.
|
|
16343
|
-
"@cortexkit/aft-win32-x64": "0.40.
|
|
16338
|
+
"@cortexkit/aft-darwin-arm64": "0.40.3",
|
|
16339
|
+
"@cortexkit/aft-darwin-x64": "0.40.3",
|
|
16340
|
+
"@cortexkit/aft-linux-arm64": "0.40.3",
|
|
16341
|
+
"@cortexkit/aft-linux-x64": "0.40.3",
|
|
16342
|
+
"@cortexkit/aft-win32-arm64": "0.40.3",
|
|
16343
|
+
"@cortexkit/aft-win32-x64": "0.40.3"
|
|
16344
16344
|
},
|
|
16345
16345
|
devDependencies: {
|
|
16346
16346
|
"@earendil-works/pi-coding-agent": "*",
|
|
@@ -16610,8 +16610,11 @@ async function callBridge(bridge, command, params = {}, extCtx, options) {
|
|
|
16610
16610
|
return response;
|
|
16611
16611
|
}
|
|
16612
16612
|
function textResult(text, details) {
|
|
16613
|
+
return contentResult([{ type: "text", text }], details);
|
|
16614
|
+
}
|
|
16615
|
+
function contentResult(content, details) {
|
|
16613
16616
|
return {
|
|
16614
|
-
content
|
|
16617
|
+
content,
|
|
16615
16618
|
details
|
|
16616
16619
|
};
|
|
16617
16620
|
}
|
|
@@ -33173,6 +33176,35 @@ function formatDiffForPi(oldContent, newContent, contextLines = DEFAULT_CONTEXT_
|
|
|
33173
33176
|
function diagnosticsOnEditDefault(ctx) {
|
|
33174
33177
|
return ctx.config.lsp?.diagnostics_on_edit ?? false;
|
|
33175
33178
|
}
|
|
33179
|
+
function readAttachments(response) {
|
|
33180
|
+
return Array.isArray(response.attachments) ? response.attachments : [];
|
|
33181
|
+
}
|
|
33182
|
+
function formatAttachmentSize(bytes) {
|
|
33183
|
+
if (typeof bytes !== "number" || !Number.isFinite(bytes) || bytes < 0)
|
|
33184
|
+
return;
|
|
33185
|
+
if (bytes >= 1024 * 1024)
|
|
33186
|
+
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
|
|
33187
|
+
if (bytes >= 1024)
|
|
33188
|
+
return `${Math.ceil(bytes / 1024)} KB`;
|
|
33189
|
+
return `${bytes} bytes`;
|
|
33190
|
+
}
|
|
33191
|
+
function formatReadAttachmentText(attachment) {
|
|
33192
|
+
const mime = typeof attachment.mime === "string" ? attachment.mime : "application/octet-stream";
|
|
33193
|
+
const size = formatAttachmentSize(attachment.bytes);
|
|
33194
|
+
if (attachment.kind === "image" || mime.startsWith("image/")) {
|
|
33195
|
+
const dimensions = typeof attachment.width === "number" && typeof attachment.height === "number" ? `, ${attachment.width}×${attachment.height}` : "";
|
|
33196
|
+
const resized = attachment.resized === true ? ", resized" : "";
|
|
33197
|
+
return `Read image file [${mime}]${dimensions}${resized}${size ? `, ${size}` : ""}`;
|
|
33198
|
+
}
|
|
33199
|
+
if (attachment.kind === "pdf" || mime === "application/pdf") {
|
|
33200
|
+
return `Read PDF file${size ? ` [${size}]` : ""}`;
|
|
33201
|
+
}
|
|
33202
|
+
return `Read attachment [${mime}]${size ? ` ${size}` : ""}`;
|
|
33203
|
+
}
|
|
33204
|
+
function modelSupportsImages(extCtx) {
|
|
33205
|
+
return Array.isArray(extCtx.model?.input) && extCtx.model.input.includes("image");
|
|
33206
|
+
}
|
|
33207
|
+
var NON_VISION_IMAGE_NOTE = "[Current model does not support images. The image will be omitted from this request.]";
|
|
33176
33208
|
function containsPath(parent, child) {
|
|
33177
33209
|
const rel = relative4(parent, child);
|
|
33178
33210
|
return rel === "" || !rel.startsWith("..") && !isAbsolute5(rel);
|
|
@@ -33290,7 +33322,7 @@ function registerHoistedTools(pi, ctx, surface) {
|
|
|
33290
33322
|
pi.registerTool({
|
|
33291
33323
|
name: "read",
|
|
33292
33324
|
label: "read",
|
|
33293
|
-
description: "Read file contents with line numbers. Backed by AFT's indexed Rust reader — faster than the built-in `read` on large repos
|
|
33325
|
+
description: "Read file contents with line numbers. Backed by AFT's indexed Rust reader — faster than the built-in `read` on large repos. Images are returned as attachments on vision-capable models; PDFs and non-vision models are not yet supported.",
|
|
33294
33326
|
promptSnippet: "Read file contents (supports offset/limit for large files)",
|
|
33295
33327
|
promptGuidelines: ["Use read to examine files instead of cat or sed."],
|
|
33296
33328
|
parameters: ReadParams,
|
|
@@ -33314,6 +33346,27 @@ function registerHoistedTools(pi, ctx, surface) {
|
|
|
33314
33346
|
req.end_line = limit;
|
|
33315
33347
|
}
|
|
33316
33348
|
const response = await callBridge(bridge, "read", req, extCtx);
|
|
33349
|
+
const attachments = readAttachments(response);
|
|
33350
|
+
if (attachments.length > 0) {
|
|
33351
|
+
const first = attachments[0];
|
|
33352
|
+
const mime = typeof first.mime === "string" ? first.mime : "";
|
|
33353
|
+
const note = typeof response.content === "string" && response.content.length > 0 ? response.content : formatReadAttachmentText(first);
|
|
33354
|
+
if (first.kind === "image" || mime.startsWith("image/")) {
|
|
33355
|
+
if (typeof first.data === "string" && modelSupportsImages(extCtx)) {
|
|
33356
|
+
return contentResult([
|
|
33357
|
+
{ type: "text", text: note },
|
|
33358
|
+
{ type: "image", data: first.data, mimeType: mime }
|
|
33359
|
+
], response);
|
|
33360
|
+
}
|
|
33361
|
+
return textResult(`${note}
|
|
33362
|
+
${NON_VISION_IMAGE_NOTE}`, response);
|
|
33363
|
+
}
|
|
33364
|
+
if (first.kind === "pdf" || mime === "application/pdf") {
|
|
33365
|
+
return textResult(`${note}
|
|
33366
|
+
PDFs aren't supported on the Pi harness yet.`, response);
|
|
33367
|
+
}
|
|
33368
|
+
return textResult(note, response);
|
|
33369
|
+
}
|
|
33317
33370
|
if (Array.isArray(response.entries)) {
|
|
33318
33371
|
return textResult(response.entries.join(`
|
|
33319
33372
|
`));
|
|
@@ -36627,12 +36680,9 @@ var PLUGIN_VERSION = (() => {
|
|
|
36627
36680
|
return "0.0.0";
|
|
36628
36681
|
}
|
|
36629
36682
|
})();
|
|
36630
|
-
var ANNOUNCEMENT_VERSION = "0.40.
|
|
36683
|
+
var ANNOUNCEMENT_VERSION = "0.40.3";
|
|
36631
36684
|
var ANNOUNCEMENT_FEATURES = [
|
|
36632
|
-
"
|
|
36633
|
-
"Bash output never hides a failure: piped commands run exactly as written with their real exit status, cancelled tasks report as failed, and a failing run is never compressed to a clean-looking summary.",
|
|
36634
|
-
"The top aft_search result is now the complete, ready-to-edit symbol (no re-read needed); test files are hidden from results by default.",
|
|
36635
|
-
"format_on_edit is now off by default, and bash commands default to the foreground."
|
|
36685
|
+
"read now hands images (PNG, JPEG, GIF, WebP) to vision-capable models as visual attachments instead of a binary placeholder, downsized to stay light in context."
|
|
36636
36686
|
];
|
|
36637
36687
|
var ANNOUNCEMENT_FOOTER = "Join us on Discord: https://discord.gg/DSa65w8wuf";
|
|
36638
36688
|
var ALL_ONLY_TOOLS = new Set(["aft_callgraph", "aft_delete", "aft_move", "aft_refactor"]);
|
package/dist/tools/_shared.d.ts
CHANGED
|
@@ -5,6 +5,17 @@ import type { BinaryBridge, BridgeRequestOptions } from "@cortexkit/aft-bridge";
|
|
|
5
5
|
import type { AgentToolResult, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
6
6
|
import { Type } from "typebox";
|
|
7
7
|
import type { PluginContext } from "../types.js";
|
|
8
|
+
type TextContent = {
|
|
9
|
+
type: "text";
|
|
10
|
+
text: string;
|
|
11
|
+
textSignature?: string;
|
|
12
|
+
};
|
|
13
|
+
type ImageContent = {
|
|
14
|
+
type: "image";
|
|
15
|
+
data: string;
|
|
16
|
+
mimeType: string;
|
|
17
|
+
};
|
|
18
|
+
type ContentBlock = TextContent | ImageContent;
|
|
8
19
|
export declare const optionalInt: (_min: number, _max: number) => Type.TOptional<Type.TAny>;
|
|
9
20
|
export { coerceOptionalInt, formatBridgeErrorMessage, isEmptyParam, LONG_RUNNING_COMMAND_TIMEOUT_MS, timeoutForCommand, } from "@cortexkit/aft-bridge";
|
|
10
21
|
/** Get the session bridge for the current working directory. */
|
|
@@ -42,6 +53,8 @@ export declare function callBridge(bridge: BinaryBridge, command: string, params
|
|
|
42
53
|
* This is the standard result shape for most AFT tools.
|
|
43
54
|
*/
|
|
44
55
|
export declare function textResult<TDetails = unknown>(text: string, details?: TDetails): AgentToolResult<TDetails>;
|
|
56
|
+
/** Build an AgentToolResult that can include image content blocks. */
|
|
57
|
+
export declare function contentResult<TDetails = unknown>(content: ContentBlock[], details?: TDetails): AgentToolResult<TDetails>;
|
|
45
58
|
/**
|
|
46
59
|
* Convert a bridge response into a pretty JSON string for the model.
|
|
47
60
|
* Strips undefined/null fields that just clutter the output.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_shared.d.ts","sourceRoot":"","sources":["../../src/tools/_shared.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAEhF,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACzF,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,EAAE,MAAM,MAAM,8BACC,CAAC;AAIxD,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,YAAY,EACZ,+BAA+B,EAC/B,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAE/B,gEAAgE;AAChE,wBAAgB,SAAS,CAAC,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,GAAG,YAAY,CAEvE;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,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AAO,EAC3C,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,QAAQ,GACjB,eAAe,CAAC,QAAQ,CAAC,CAE3B;AAED,sEAAsE;AACtE,wBAAgB,aAAa,CAAC,QAAQ,GAAG,OAAO,EAC9C,OAAO,EAAE,YAAY,EAAE,EACvB,OAAO,CAAC,EAAE,QAAQ,GACjB,eAAe,CAAC,QAAQ,CAAC,CAK3B;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,GAAG,OAAO,EAC/C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,OAAO,CAAC,EAAE,QAAQ,GACjB,eAAe,CAAC,QAAQ,CAAC,CAE3B;AAED,8DAA8D;AAC9D,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAGvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hoisted.d.ts","sourceRoot":"","sources":["../../src/tools/hoisted.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAUH,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,YAAY,EAGlB,MAAM,iCAAiC,CAAC;AAGzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"hoisted.d.ts","sourceRoot":"","sources":["../../src/tools/hoisted.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAUH,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,YAAY,EAGlB,MAAM,iCAAiC,CAAC;AAGzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AA6JjD;;;;;;;;;GASG;AACH,wBAAsB,iCAAiC,CACrD,MAAM,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,EACvB,MAAM,EAAE,MAAM,EACd,OA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3D;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,mBAAmB,EAAE,OAAO,EAC5B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,MAAM,CAER"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft-pi",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Pi coding agent extension for Agent File Tools (AFT) — tree-sitter and LSP-powered code analysis",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"test:unit": "bun test src/__tests__ --path-ignore-patterns 'src/__tests__/e2e/**'"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@cortexkit/aft-bridge": "0.40.
|
|
26
|
+
"@cortexkit/aft-bridge": "0.40.3",
|
|
27
27
|
"@xterm/headless": "^5.5.0",
|
|
28
28
|
"comment-json": "^5.0.0",
|
|
29
29
|
"diff": "^8.0.4",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"zod": "^4.1.8"
|
|
32
32
|
},
|
|
33
33
|
"optionalDependencies": {
|
|
34
|
-
"@cortexkit/aft-darwin-arm64": "0.40.
|
|
35
|
-
"@cortexkit/aft-darwin-x64": "0.40.
|
|
36
|
-
"@cortexkit/aft-linux-arm64": "0.40.
|
|
37
|
-
"@cortexkit/aft-linux-x64": "0.40.
|
|
38
|
-
"@cortexkit/aft-win32-arm64": "0.40.
|
|
39
|
-
"@cortexkit/aft-win32-x64": "0.40.
|
|
34
|
+
"@cortexkit/aft-darwin-arm64": "0.40.3",
|
|
35
|
+
"@cortexkit/aft-darwin-x64": "0.40.3",
|
|
36
|
+
"@cortexkit/aft-linux-arm64": "0.40.3",
|
|
37
|
+
"@cortexkit/aft-linux-x64": "0.40.3",
|
|
38
|
+
"@cortexkit/aft-win32-arm64": "0.40.3",
|
|
39
|
+
"@cortexkit/aft-win32-x64": "0.40.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@earendil-works/pi-coding-agent": "*",
|