@cortexkit/aft 0.30.1 → 0.30.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/adapters/opencode.d.ts.map +1 -1
- package/dist/commands/doctor.d.ts +6 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/lsp.d.ts +1 -0
- package/dist/commands/lsp.d.ts.map +1 -1
- package/dist/index.js +393 -25066
- package/dist/lib/binary-probe.d.ts +27 -3
- package/dist/lib/binary-probe.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,12 +1,36 @@
|
|
|
1
|
+
export type BinaryProbeCandidateStatus = "matched" | "unmatched" | "invalid" | "error";
|
|
2
|
+
export interface BinaryProbeCandidate {
|
|
3
|
+
path: string;
|
|
4
|
+
status: BinaryProbeCandidateStatus;
|
|
5
|
+
version: string | null;
|
|
6
|
+
output?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface BinaryProbeResult {
|
|
10
|
+
version: string | null;
|
|
11
|
+
path: string | null;
|
|
12
|
+
expectedVersion: string;
|
|
13
|
+
expectedMajorMinor: string | null;
|
|
14
|
+
candidates: BinaryProbeCandidate[];
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Parse and validate `aft --version` output. Accepts either a plain semver
|
|
18
|
+
* line (`0.30.1`) or the binary's normal `aft 0.30.1` line. Random non-semver
|
|
19
|
+
* output is rejected so PATH garbage is not reported as a healthy AFT binary.
|
|
20
|
+
*/
|
|
21
|
+
export declare function normalizeBinaryVersion(output: string): string | null;
|
|
1
22
|
/**
|
|
2
23
|
* Probe `aft --version` from the same prioritized candidate locations used by
|
|
3
24
|
* `findAftBinary()` (cache, npm platform package, PATH, cargo fallback).
|
|
4
25
|
*
|
|
5
|
-
* Returns the first successfully reported version
|
|
6
|
-
*
|
|
7
|
-
*
|
|
26
|
+
* Returns the first successfully reported version matching the expected
|
|
27
|
+
* major.minor version, or null if nothing resolves. Errors, missing files,
|
|
28
|
+
* invalid version output, and version mismatches are swallowed — callers get a
|
|
29
|
+
* signal, not an exception.
|
|
8
30
|
*/
|
|
9
31
|
export declare function probeBinaryVersion(preferredVersion?: string): string | null;
|
|
32
|
+
/** Detailed binary probe used by diagnostics to explain mismatched candidates. */
|
|
33
|
+
export declare function probeAftBinary(preferredVersion?: string): BinaryProbeResult;
|
|
10
34
|
export declare function platformKey(platform?: string, arch?: string): string | null;
|
|
11
35
|
export declare function findAftBinary(preferredVersion?: string): string | null;
|
|
12
36
|
//# sourceMappingURL=binary-probe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binary-probe.d.ts","sourceRoot":"","sources":["../../src/lib/binary-probe.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"binary-probe.d.ts","sourceRoot":"","sources":["../../src/lib/binary-probe.ts"],"names":[],"mappings":"AAuCA,MAAM,MAAM,0BAA0B,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,CAAC;AAEvF,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,0BAA0B,CAAC;IACnC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,UAAU,EAAE,oBAAoB,EAAE,CAAC;CACpC;AAuBD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAEpE;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAE3E;AAED,kFAAkF;AAClF,wBAAgB,cAAc,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAkD3E;AAmBD,wBAAgB,WAAW,CACzB,QAAQ,GAAE,MAAyB,EACnC,IAAI,GAAE,MAAqB,GAC1B,MAAM,GAAG,IAAI,CAOf;AAqCD,wBAAgB,aAAa,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAEtE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Unified CLI for Agent File Tools (AFT) — setup, doctor, and diagnostics across supported agent harnesses (OpenCode, Pi)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@clack/prompts": "^1.2.0",
|
|
26
|
-
"@cortexkit/aft-bridge": "0.30.
|
|
26
|
+
"@cortexkit/aft-bridge": "0.30.2",
|
|
27
27
|
"comment-json": "^4.6.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|