@cortexkit/aft-pi 0.47.0 → 0.47.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/dist/index.js
CHANGED
|
@@ -9526,10 +9526,11 @@ function formatCallgraphSections(op, response, theme = PLAIN_CALLGRAPH_THEME, op
|
|
|
9526
9526
|
const warning = depthWarning(record, theme, "max_depth_reached", "truncated_paths");
|
|
9527
9527
|
const hubSummary = hubSummaryLine(record, theme);
|
|
9528
9528
|
const totalPaths = asNumber(record.total_paths) ?? paths.length;
|
|
9529
|
+
const totalPathsIsLowerBound = asBoolean(record.total_paths_is_lower_bound) ?? false;
|
|
9529
9530
|
const entryPoints = asNumber(record.entry_points_found) ?? 0;
|
|
9530
9531
|
const sections2 = [
|
|
9531
9532
|
joinNonEmpty([
|
|
9532
|
-
theme.fg("success", `${totalPaths} path${totalPaths === 1 ? "" : "s"}`),
|
|
9533
|
+
theme.fg("success", `${totalPathsIsLowerBound ? "at least " : ""}${totalPaths} path${totalPaths === 1 ? "" : "s"}`),
|
|
9533
9534
|
theme.fg("muted", `${entryPoints} entry point${entryPoints === 1 ? "" : "s"}`),
|
|
9534
9535
|
warning
|
|
9535
9536
|
])
|
|
@@ -10311,6 +10312,49 @@ function markAnnouncementSeen(storageRoot, harness, currentVersion) {
|
|
|
10311
10312
|
writeFileSync(versionFile, currentVersion);
|
|
10312
10313
|
} catch {}
|
|
10313
10314
|
}
|
|
10315
|
+
function decodeFileUrl(target) {
|
|
10316
|
+
if (!target.startsWith("file:"))
|
|
10317
|
+
return target;
|
|
10318
|
+
const rest = target.slice("file:".length);
|
|
10319
|
+
let pathPart;
|
|
10320
|
+
if (rest.startsWith("//")) {
|
|
10321
|
+
const after = rest.slice(2);
|
|
10322
|
+
const slash = after.indexOf("/");
|
|
10323
|
+
const authority = slash === -1 ? after : after.slice(0, slash);
|
|
10324
|
+
const p = slash === -1 ? "" : after.slice(slash);
|
|
10325
|
+
if (authority === "" || authority === "localhost")
|
|
10326
|
+
pathPart = p;
|
|
10327
|
+
else if (process.platform === "win32")
|
|
10328
|
+
pathPart = `//${authority}${p}`;
|
|
10329
|
+
else
|
|
10330
|
+
return target;
|
|
10331
|
+
} else if (rest.startsWith("/")) {
|
|
10332
|
+
pathPart = rest;
|
|
10333
|
+
} else {
|
|
10334
|
+
return target;
|
|
10335
|
+
}
|
|
10336
|
+
const bytes = [];
|
|
10337
|
+
for (let i = 0;i < pathPart.length; ) {
|
|
10338
|
+
if (pathPart[i] === "%" && i + 2 < pathPart.length) {
|
|
10339
|
+
const hex = pathPart.slice(i + 1, i + 3);
|
|
10340
|
+
if (/^[0-9a-fA-F]{2}$/.test(hex)) {
|
|
10341
|
+
bytes.push(Number.parseInt(hex, 16));
|
|
10342
|
+
i += 3;
|
|
10343
|
+
continue;
|
|
10344
|
+
}
|
|
10345
|
+
}
|
|
10346
|
+
const cp = pathPart.codePointAt(i);
|
|
10347
|
+
const ch = String.fromCodePoint(cp);
|
|
10348
|
+
for (const b of Buffer.from(ch, "utf8"))
|
|
10349
|
+
bytes.push(b);
|
|
10350
|
+
i += ch.length;
|
|
10351
|
+
}
|
|
10352
|
+
const decoded = Buffer.from(bytes).toString("utf8");
|
|
10353
|
+
if (process.platform === "win32" && /^\/[A-Za-z]:/.test(decoded)) {
|
|
10354
|
+
return decoded.slice(1);
|
|
10355
|
+
}
|
|
10356
|
+
return decoded;
|
|
10357
|
+
}
|
|
10314
10358
|
|
|
10315
10359
|
// ../aft-bridge/dist/resolver.js
|
|
10316
10360
|
import { execSync } from "node:child_process";
|
|
@@ -15748,7 +15792,7 @@ import {
|
|
|
15748
15792
|
// package.json
|
|
15749
15793
|
var package_default = {
|
|
15750
15794
|
name: "@cortexkit/aft-pi",
|
|
15751
|
-
version: "0.47.
|
|
15795
|
+
version: "0.47.2",
|
|
15752
15796
|
type: "module",
|
|
15753
15797
|
description: "Pi coding agent extension for Agent File Tools (AFT) — tree-sitter and LSP-powered code analysis",
|
|
15754
15798
|
main: "dist/index.js",
|
|
@@ -15771,19 +15815,19 @@ var package_default = {
|
|
|
15771
15815
|
"test:unit": "bun test src/__tests__ --path-ignore-patterns 'src/__tests__/e2e/**'"
|
|
15772
15816
|
},
|
|
15773
15817
|
dependencies: {
|
|
15774
|
-
"@cortexkit/aft-bridge": "0.47.
|
|
15818
|
+
"@cortexkit/aft-bridge": "0.47.2",
|
|
15775
15819
|
"comment-json": "^5.0.0",
|
|
15776
15820
|
diff: "^8.0.4",
|
|
15777
15821
|
typebox: "1.1.38",
|
|
15778
15822
|
zod: "^4.4.3"
|
|
15779
15823
|
},
|
|
15780
15824
|
optionalDependencies: {
|
|
15781
|
-
"@cortexkit/aft-darwin-arm64": "0.47.
|
|
15782
|
-
"@cortexkit/aft-darwin-x64": "0.47.
|
|
15783
|
-
"@cortexkit/aft-linux-arm64": "0.47.
|
|
15784
|
-
"@cortexkit/aft-linux-x64": "0.47.
|
|
15785
|
-
"@cortexkit/aft-win32-arm64": "0.47.
|
|
15786
|
-
"@cortexkit/aft-win32-x64": "0.47.
|
|
15825
|
+
"@cortexkit/aft-darwin-arm64": "0.47.2",
|
|
15826
|
+
"@cortexkit/aft-darwin-x64": "0.47.2",
|
|
15827
|
+
"@cortexkit/aft-linux-arm64": "0.47.2",
|
|
15828
|
+
"@cortexkit/aft-linux-x64": "0.47.2",
|
|
15829
|
+
"@cortexkit/aft-win32-arm64": "0.47.2",
|
|
15830
|
+
"@cortexkit/aft-win32-x64": "0.47.2"
|
|
15787
15831
|
},
|
|
15788
15832
|
devDependencies: {
|
|
15789
15833
|
"@earendil-works/pi-coding-agent": "^0.80.2",
|
|
@@ -15902,6 +15946,7 @@ function coerceAftStatus(response) {
|
|
|
15902
15946
|
};
|
|
15903
15947
|
const disk = asRecord2(response.disk);
|
|
15904
15948
|
const symbolCache = asRecord2(response.symbol_cache);
|
|
15949
|
+
const runtime = asRecord2(response.runtime);
|
|
15905
15950
|
const session = asRecord2(response.session);
|
|
15906
15951
|
return {
|
|
15907
15952
|
version: readString(response.version, "unknown"),
|
|
@@ -15940,6 +15985,11 @@ function coerceAftStatus(response) {
|
|
|
15940
15985
|
semantic_disk_bytes: readNumber(disk.semantic_disk_bytes)
|
|
15941
15986
|
},
|
|
15942
15987
|
lsp_servers: readNumber(response.lsp_servers),
|
|
15988
|
+
runtime: {
|
|
15989
|
+
live_watchers: readNumber(runtime.live_watchers),
|
|
15990
|
+
live_actor_roots: readNumber(runtime.live_actor_roots),
|
|
15991
|
+
open_routes: readNumber(runtime.open_routes)
|
|
15992
|
+
},
|
|
15943
15993
|
symbol_cache: {
|
|
15944
15994
|
local_entries: readNumber(symbolCache.local_entries),
|
|
15945
15995
|
warm_entries: readNumber(symbolCache.warm_entries)
|
|
@@ -33362,18 +33412,19 @@ function containsPath(parent, child) {
|
|
|
33362
33412
|
const rel = relative4(parent, child);
|
|
33363
33413
|
return rel === "" || !rel.startsWith("..") && !isAbsolute6(rel);
|
|
33364
33414
|
}
|
|
33365
|
-
function
|
|
33366
|
-
|
|
33367
|
-
|
|
33368
|
-
|
|
33415
|
+
function normalizePathInput(path2) {
|
|
33416
|
+
const decoded = decodeFileUrl(path2);
|
|
33417
|
+
if (!decoded || !decoded.startsWith("~"))
|
|
33418
|
+
return decoded;
|
|
33419
|
+
if (decoded === "~")
|
|
33369
33420
|
return homedir13();
|
|
33370
|
-
if (
|
|
33371
|
-
return resolve8(homedir13(),
|
|
33421
|
+
if (decoded.startsWith(`~${sep}`) || decoded.startsWith("~/")) {
|
|
33422
|
+
return resolve8(homedir13(), decoded.slice(2));
|
|
33372
33423
|
}
|
|
33373
|
-
return
|
|
33424
|
+
return decoded;
|
|
33374
33425
|
}
|
|
33375
33426
|
function absoluteSearchPath(cwd, target) {
|
|
33376
|
-
const expanded =
|
|
33427
|
+
const expanded = normalizePathInput(target);
|
|
33377
33428
|
return isAbsolute6(expanded) ? expanded : resolve8(cwd, expanded);
|
|
33378
33429
|
}
|
|
33379
33430
|
async function searchPathExists(cwd, target) {
|
|
@@ -33429,7 +33480,7 @@ ${note}` : note;
|
|
|
33429
33480
|
async function assertExternalDirectoryPermission(extCtx, target, options = {}) {
|
|
33430
33481
|
if (!target)
|
|
33431
33482
|
return;
|
|
33432
|
-
const expanded =
|
|
33483
|
+
const expanded = normalizePathInput(target);
|
|
33433
33484
|
const absoluteTarget = isAbsolute6(expanded) ? expanded : resolve8(extCtx.cwd, expanded);
|
|
33434
33485
|
if (containsPath(extCtx.cwd, absoluteTarget))
|
|
33435
33486
|
return;
|
|
@@ -33899,7 +33950,7 @@ function shortenPath2(path2) {
|
|
|
33899
33950
|
return path2;
|
|
33900
33951
|
}
|
|
33901
33952
|
async function resolvePathArg(cwd, path2) {
|
|
33902
|
-
const expanded =
|
|
33953
|
+
const expanded = normalizePathInput(path2);
|
|
33903
33954
|
const abs = absoluteSearchPath(cwd, path2);
|
|
33904
33955
|
try {
|
|
33905
33956
|
await stat2(abs);
|
|
@@ -34724,9 +34775,11 @@ async function bashStatusSnapshot(bridge, extCtx, taskId, outputMode, options) {
|
|
|
34724
34775
|
async function waitForBashStatus(ctx, bridge, extCtx, taskId, outputMode, waitFor, waitForExit, effectiveWaitMs) {
|
|
34725
34776
|
const startedAt = Date.now();
|
|
34726
34777
|
const deadline = startedAt + effectiveWaitMs;
|
|
34727
|
-
let spillCursor = { output: 0, stderr: 0
|
|
34728
|
-
|
|
34729
|
-
|
|
34778
|
+
let spillCursor = { output: 0, stderr: 0 };
|
|
34779
|
+
const scanState = {
|
|
34780
|
+
output: { text: "", baseOffset: 0 },
|
|
34781
|
+
stderr: { text: "", baseOffset: 0 }
|
|
34782
|
+
};
|
|
34730
34783
|
const bridgeOptions = {
|
|
34731
34784
|
keepBridgeOnTimeout: true,
|
|
34732
34785
|
transportTimeoutMs: BASH_TRANSPORT_TIMEOUT_MS2
|
|
@@ -34769,32 +34822,37 @@ async function waitForBashStatus(ctx, bridge, extCtx, taskId, outputMode, waitFo
|
|
|
34769
34822
|
const scan = await readNewTaskOutput(data, spillCursor);
|
|
34770
34823
|
if (scan) {
|
|
34771
34824
|
spillCursor = scan.nextCursor;
|
|
34772
|
-
|
|
34773
|
-
|
|
34774
|
-
|
|
34775
|
-
|
|
34776
|
-
|
|
34777
|
-
|
|
34778
|
-
|
|
34779
|
-
|
|
34780
|
-
|
|
34781
|
-
|
|
34782
|
-
|
|
34783
|
-
|
|
34784
|
-
|
|
34785
|
-
|
|
34786
|
-
|
|
34787
|
-
|
|
34788
|
-
|
|
34789
|
-
|
|
34790
|
-
|
|
34791
|
-
|
|
34792
|
-
|
|
34793
|
-
|
|
34794
|
-
|
|
34795
|
-
|
|
34796
|
-
|
|
34797
|
-
|
|
34825
|
+
for (const chunk of scan.chunks) {
|
|
34826
|
+
const state = scanState[chunk.stream];
|
|
34827
|
+
if (state.text.length === 0)
|
|
34828
|
+
state.baseOffset = chunk.baseOffset;
|
|
34829
|
+
state.text += chunk.text;
|
|
34830
|
+
if (waitFor.kind === "regex") {
|
|
34831
|
+
const trimmed = trimWaitScanBuffer(state.text, state.baseOffset, waitFor);
|
|
34832
|
+
state.text = trimmed.text;
|
|
34833
|
+
state.baseOffset = trimmed.baseOffset;
|
|
34834
|
+
}
|
|
34835
|
+
const match = await findWaitMatch(bridge, extCtx, state.text, waitFor);
|
|
34836
|
+
if (match) {
|
|
34837
|
+
if (waitForExit && terminal) {
|
|
34838
|
+
sawTerminal = true;
|
|
34839
|
+
consumeBgCompletion(sessionId, taskId);
|
|
34840
|
+
await markBgCompletionDelivered({ ctx, directory: extCtx.cwd, sessionID: sessionId }, taskId);
|
|
34841
|
+
}
|
|
34842
|
+
const matchStream = data.mode === "pty" ? undefined : chunk.stream === "output" ? "stdout" : "stderr";
|
|
34843
|
+
return withWaited(data, {
|
|
34844
|
+
reason: "matched",
|
|
34845
|
+
elapsed_ms: Date.now() - startedAt,
|
|
34846
|
+
match: match.text,
|
|
34847
|
+
match_offset: state.baseOffset + match.byteOffset,
|
|
34848
|
+
match_stream: matchStream
|
|
34849
|
+
});
|
|
34850
|
+
}
|
|
34851
|
+
if (waitFor.kind === "substring") {
|
|
34852
|
+
const trimmed = trimWaitScanBuffer(state.text, state.baseOffset, waitFor);
|
|
34853
|
+
state.text = trimmed.text;
|
|
34854
|
+
state.baseOffset = trimmed.baseOffset;
|
|
34855
|
+
}
|
|
34798
34856
|
}
|
|
34799
34857
|
}
|
|
34800
34858
|
}
|
|
@@ -34829,13 +34887,26 @@ async function readNewTaskOutput(data, cursor) {
|
|
|
34829
34887
|
const bytesRead = stdoutBytes.length + stderrBytes.length;
|
|
34830
34888
|
if (bytesRead === 0)
|
|
34831
34889
|
return;
|
|
34890
|
+
const chunks = [];
|
|
34891
|
+
if (stdoutBytes.length > 0) {
|
|
34892
|
+
chunks.push({
|
|
34893
|
+
stream: "output",
|
|
34894
|
+
text: stdoutBytes.toString("utf8"),
|
|
34895
|
+
baseOffset: cursor.output
|
|
34896
|
+
});
|
|
34897
|
+
}
|
|
34898
|
+
if (stderrBytes.length > 0) {
|
|
34899
|
+
chunks.push({
|
|
34900
|
+
stream: "stderr",
|
|
34901
|
+
text: stderrBytes.toString("utf8"),
|
|
34902
|
+
baseOffset: cursor.stderr
|
|
34903
|
+
});
|
|
34904
|
+
}
|
|
34832
34905
|
return {
|
|
34833
|
-
|
|
34834
|
-
baseOffset: cursor.combined,
|
|
34906
|
+
chunks,
|
|
34835
34907
|
nextCursor: {
|
|
34836
34908
|
output: cursor.output + stdoutBytes.length,
|
|
34837
|
-
stderr: cursor.stderr + stderrBytes.length
|
|
34838
|
-
combined: cursor.combined + bytesRead
|
|
34909
|
+
stderr: cursor.stderr + stderrBytes.length
|
|
34839
34910
|
}
|
|
34840
34911
|
};
|
|
34841
34912
|
}
|
|
@@ -34932,7 +35003,8 @@ function withWaited(data, waited) {
|
|
|
34932
35003
|
}
|
|
34933
35004
|
function formatWaitSummary(waited, details) {
|
|
34934
35005
|
if (waited.reason === "matched") {
|
|
34935
|
-
|
|
35006
|
+
const stream = waited.match_stream ? ` in ${waited.match_stream}` : "";
|
|
35007
|
+
return `Waited ${waited.elapsed_ms}ms; matched ${JSON.stringify(waited.match ?? "")}${stream} at offset ${waited.match_offset ?? 0}.`;
|
|
34936
35008
|
}
|
|
34937
35009
|
if (waited.reason === "timeout") {
|
|
34938
35010
|
return `Waited ${waited.elapsed_ms}ms; timeout reached without match.`;
|
|
@@ -36736,14 +36808,14 @@ var PLUGIN_VERSION = (() => {
|
|
|
36736
36808
|
return "0.0.0";
|
|
36737
36809
|
}
|
|
36738
36810
|
})();
|
|
36739
|
-
var ANNOUNCEMENT_VERSION = "0.47.
|
|
36811
|
+
var ANNOUNCEMENT_VERSION = "0.47.2";
|
|
36740
36812
|
var ANNOUNCEMENT_FEATURES = [
|
|
36741
|
-
"
|
|
36742
|
-
"
|
|
36743
|
-
"
|
|
36744
|
-
"
|
|
36745
|
-
"
|
|
36746
|
-
"
|
|
36813
|
+
"Fixed: apply_patch wrote mixed line endings when editing CRLF (Windows) files; the file's dominant line ending is now preserved.",
|
|
36814
|
+
"Fixed: inlining a function argument like twice(1 + 2) could change operator precedence; non-atomic arguments are now parenthesized.",
|
|
36815
|
+
"Fixed: removing one name from a Python import with an aliased sibling (from m import a, b as c) could delete the whole line.",
|
|
36816
|
+
"Fixed: bash_watch could report a match that spanned the stdout/stderr seam; streams are now scanned independently.",
|
|
36817
|
+
"GitHub and GitLab file links (…/blob/…) now read raw file content in aft_outline/aft_zoom, and documentation heading lookups tolerate numeric prefixes, link labels, emoji, and anchor slugs.",
|
|
36818
|
+
"bash now finds tools on a PATH exported from your shell rc (e.g. zsh .zshrc), and several warm hot paths got faster."
|
|
36747
36819
|
];
|
|
36748
36820
|
var ANNOUNCEMENT_FOOTER = "Join us on Discord: https://discord.gg/DSa65w8wuf";
|
|
36749
36821
|
var ALL_ONLY_TOOLS = new Set(["aft_callgraph", "aft_delete", "aft_move", "aft_refactor"]);
|
package/dist/shared/status.d.ts
CHANGED
|
@@ -61,6 +61,11 @@ export interface AftStatusSnapshot {
|
|
|
61
61
|
semantic_disk_bytes: number;
|
|
62
62
|
};
|
|
63
63
|
lsp_servers: number;
|
|
64
|
+
runtime: {
|
|
65
|
+
live_watchers: number;
|
|
66
|
+
live_actor_roots: number;
|
|
67
|
+
open_routes: number;
|
|
68
|
+
};
|
|
64
69
|
symbol_cache: {
|
|
65
70
|
local_entries: number;
|
|
66
71
|
warm_entries: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/shared/status.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,0BAA0B,CAAC;IACpC,OAAO,EAAE,0BAA0B,CAAC;CACrC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE;QACR,cAAc,EAAE,OAAO,CAAC;QACxB,gBAAgB,EAAE,MAAM,CAAC;QACzB,wBAAwB,EAAE,OAAO,CAAC;QAClC,YAAY,EAAE,OAAO,CAAC;QACtB,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,YAAY,EAAE;QAC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IAC5D,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAC;QACX,aAAa,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,wEAAwE;IACxE,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC;;;;OAIG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAsED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAKvF;AAED,wBAAgB,wBAAwB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI/E;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAajD;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,iBAAiB,CAuEpF;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAiF3E;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAmFtE"}
|
package/dist/tools/bash.d.ts
CHANGED
package/dist/tools/bash.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bash.d.ts","sourceRoot":"","sources":["../../src/tools/bash.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACZ,gBAAgB,EAEjB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,KAAK,MAAM,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAY5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAuIjD,QAAA,MAAM,cAAc;;EAIlB,CAAC;AAEH,QAAA,MAAM,gBAAgB;;;EAUpB,CAAC;AAEH,QAAA,MAAM,eAAe;;;;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C,KAAK,IAAI,CAAC,GAAG,SAAS,UACpE,gBAAgB;EAe7B;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,aAAa;;;;;;;;yBASlC,MAAM,UACX,MAAM,CAAC,OAAO,cAAc,CAAC,WAC5B,WAAW,GAAG,SAAS,aACrB,CAAC,CAAC,MAAM,EAAE,eAAe,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC,GAAG,SAAS,UACnE,gBAAgB;EAc7B;AAuCD,KAAK,eAAe,GAAG;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAgOhG,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,GAAG,SAAS,CAEtF;AAoGD,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,eAAe,GACvB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAEtC"}
|
package/dist/tools/hoisted.d.ts
CHANGED
|
@@ -112,7 +112,8 @@ export declare function registerHoistedTools(pi: ExtensionAPI, ctx: PluginContex
|
|
|
112
112
|
export declare function buildMutationResult(response: Record<string, unknown>): AgentToolResult<FileMutationDetails>;
|
|
113
113
|
export declare function renderMutationCall(toolName: "write" | "edit", filePath: string | undefined, theme: Theme, context: RenderContextLike): Text;
|
|
114
114
|
export declare function renderMutationResult(result: AgentToolResult<FileMutationDetails>, theme: Theme, context: RenderContextLike): Container | Text;
|
|
115
|
-
/** Resolve a path argument to an absolute path if it exists,
|
|
115
|
+
/** Resolve a path argument to an absolute path if it exists, decoding file:
|
|
116
|
+
* URLs and expanding `~`. */
|
|
116
117
|
export declare function resolvePathArg(cwd: string, path: string): Promise<string>;
|
|
117
118
|
/**
|
|
118
119
|
* Brace-aware split for OpenCode-style include args.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hoisted.d.ts","sourceRoot":"","sources":["../../src/tools/hoisted.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;
|
|
1
|
+
{"version":3,"file":"hoisted.d.ts","sourceRoot":"","sources":["../../src/tools/hoisted.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAYH,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,YAAY,EAEjB,KAAK,KAAK,EACX,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,SAAS,EAAE,SAAS,EAAU,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAEjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAwDjD;;;;GAIG;AACH,UAAU,iBAAiB;IACzB,aAAa,EAAE,SAAS,GAAG,SAAS,CAAC;IACrC,OAAO,EAAE,OAAO,CAAC;CAClB;AAuFD;;;;;;;;;GASG;AACH,wBAAsB,iCAAiC,CACrD,MAAM,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,EACvB,MAAM,EAAE,MAAM,EACd,OAAO,GAAE;IAAE,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAAC,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAAO,GAC/E,OAAO,CAAC,IAAI,CAAC,CA6Bf;AA+GD,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB;;;;;;;;;;;OAWG;IACH,qBAAqB,EAAE,OAAO,CAAC;CAChC;AAED,kEAAkE;AAClE,UAAU,mBAAmB;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,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M,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.47.
|
|
3
|
+
"version": "0.47.2",
|
|
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,19 +23,19 @@
|
|
|
23
23
|
"test:unit": "bun test src/__tests__ --path-ignore-patterns 'src/__tests__/e2e/**'"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@cortexkit/aft-bridge": "0.47.
|
|
26
|
+
"@cortexkit/aft-bridge": "0.47.2",
|
|
27
27
|
"comment-json": "^5.0.0",
|
|
28
28
|
"diff": "^8.0.4",
|
|
29
29
|
"typebox": "1.1.38",
|
|
30
30
|
"zod": "^4.4.3"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@cortexkit/aft-darwin-arm64": "0.47.
|
|
34
|
-
"@cortexkit/aft-darwin-x64": "0.47.
|
|
35
|
-
"@cortexkit/aft-linux-arm64": "0.47.
|
|
36
|
-
"@cortexkit/aft-linux-x64": "0.47.
|
|
37
|
-
"@cortexkit/aft-win32-arm64": "0.47.
|
|
38
|
-
"@cortexkit/aft-win32-x64": "0.47.
|
|
33
|
+
"@cortexkit/aft-darwin-arm64": "0.47.2",
|
|
34
|
+
"@cortexkit/aft-darwin-x64": "0.47.2",
|
|
35
|
+
"@cortexkit/aft-linux-arm64": "0.47.2",
|
|
36
|
+
"@cortexkit/aft-linux-x64": "0.47.2",
|
|
37
|
+
"@cortexkit/aft-win32-arm64": "0.47.2",
|
|
38
|
+
"@cortexkit/aft-win32-x64": "0.47.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@earendil-works/pi-coding-agent": "^0.80.2",
|