@cortexkit/aft 0.45.0 → 0.45.1

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.
@@ -5,10 +5,6 @@ export type { HarnessAdapter, HarnessKind } from "./types.js";
5
5
  export { OpenCodeAdapter, PiAdapter };
6
6
  export declare function getAllAdapters(): HarnessAdapter[];
7
7
  export declare function getAdapter(kind: HarnessKind): HarnessAdapter;
8
- /** Adapters whose host binary is on PATH. Order: installed first, then rest. */
9
- export declare function getAdaptersPreferInstalled(): HarnessAdapter[];
10
- /** Adapters that have AFT registered (either via plugin entry or `pi install`). */
11
- export declare function getAdaptersWithPluginRegistered(): HarnessAdapter[];
12
8
  /** Adapters whose host is installed, regardless of whether AFT is registered. */
13
9
  export declare function getInstalledAdapters(): HarnessAdapter[];
14
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapters/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9D,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,CAAC;AAItC,wBAAgB,cAAc,IAAI,cAAc,EAAE,CAEjD;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,WAAW,GAAG,cAAc,CAI5D;AAED,gFAAgF;AAChF,wBAAgB,0BAA0B,IAAI,cAAc,EAAE,CAM7D;AAED,mFAAmF;AACnF,wBAAgB,+BAA+B,IAAI,cAAc,EAAE,CAElE;AAED,iFAAiF;AACjF,wBAAgB,oBAAoB,IAAI,cAAc,EAAE,CAEvD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapters/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9D,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,CAAC;AAItC,wBAAgB,cAAc,IAAI,cAAc,EAAE,CAEjD;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,WAAW,GAAG,cAAc,CAI5D;AAED,iFAAiF;AACjF,wBAAgB,oBAAoB,IAAI,cAAc,EAAE,CAEvD"}
package/dist/index.js CHANGED
@@ -18078,7 +18078,7 @@ var init_lsp_cache = __esm(() => {
18078
18078
  });
18079
18079
 
18080
18080
  // src/lib/onnx.ts
18081
- import { existsSync as existsSync17, readdirSync as readdirSync7, readlinkSync as readlinkSync2, realpathSync as realpathSync4, statSync as statSync11 } from "node:fs";
18081
+ import { existsSync as existsSync17, readdirSync as readdirSync7, readlinkSync as readlinkSync2, realpathSync as realpathSync4 } from "node:fs";
18082
18082
  import { basename as basename3, isAbsolute as isAbsolute6, join as join19, resolve as resolve10, win32 as win322 } from "node:path";
18083
18083
  function getOnnxLibraryName() {
18084
18084
  if (process.platform === "darwin")
@@ -18266,7 +18266,7 @@ import {
18266
18266
  existsSync as existsSync18,
18267
18267
  openSync as openSync6,
18268
18268
  readSync as readSync3,
18269
- statSync as statSync12
18269
+ statSync as statSync11
18270
18270
  } from "node:fs";
18271
18271
  async function collectDiagnostics(adapters) {
18272
18272
  const cliVersion = getSelfVersion();
@@ -18352,7 +18352,7 @@ async function diagnoseHarness(adapter) {
18352
18352
  logFile: {
18353
18353
  path: logPath,
18354
18354
  exists: existsSync18(logPath),
18355
- sizeKb: existsSync18(logPath) ? Math.round(statSync12(logPath).size / 1024) : 0
18355
+ sizeKb: existsSync18(logPath) ? Math.round(statSync11(logPath).size / 1024) : 0
18356
18356
  }
18357
18357
  };
18358
18358
  }
@@ -18555,7 +18555,7 @@ function tailLogFile(path2, lines) {
18555
18555
  const chunkSize = 64 * 1024;
18556
18556
  let fd = null;
18557
18557
  try {
18558
- const size = statSync12(path2).size;
18558
+ const size = statSync11(path2).size;
18559
18559
  fd = openSync6(path2, "r");
18560
18560
  const chunks = [];
18561
18561
  let position = size;
@@ -18818,7 +18818,7 @@ var init_onnx_fix = __esm(() => {
18818
18818
  });
18819
18819
 
18820
18820
  // src/lib/sessions.ts
18821
- import { existsSync as existsSync20, readdirSync as readdirSync8, readFileSync as readFileSync10, statSync as statSync13 } from "node:fs";
18821
+ import { existsSync as existsSync20, readdirSync as readdirSync8, readFileSync as readFileSync10, statSync as statSync12 } from "node:fs";
18822
18822
  import { createRequire as createRequire4 } from "node:module";
18823
18823
  import { homedir as homedir17 } from "node:os";
18824
18824
  import { basename as basename4, join as join21 } from "node:path";
@@ -18885,7 +18885,7 @@ function listPiSessionsFromDir(sessionsDir) {
18885
18885
  return [];
18886
18886
  const files = collectJsonlFiles(sessionsDir).map((filePath) => {
18887
18887
  try {
18888
- const stats = statSync13(filePath);
18888
+ const stats = statSync12(filePath);
18889
18889
  return { filePath, mtimeMs: stats.mtimeMs };
18890
18890
  } catch {
18891
18891
  return null;
@@ -19025,7 +19025,7 @@ import {
19025
19025
  readFileSync as readFileSync11,
19026
19026
  realpathSync as realpathSync5,
19027
19027
  rmSync as rmSync7,
19028
- statSync as statSync14,
19028
+ statSync as statSync13,
19029
19029
  writeFileSync as writeFileSync5
19030
19030
  } from "node:fs";
19031
19031
  import { tmpdir as tmpdir4 } from "node:os";
@@ -19207,7 +19207,7 @@ function clearOldBinaries() {
19207
19207
  const dir = join22(info.path, version);
19208
19208
  let bytes = 0;
19209
19209
  try {
19210
- bytes = statSync14(dir).isDirectory() ? dirSize(dir) : 0;
19210
+ bytes = statSync13(dir).isDirectory() ? dirSize(dir) : 0;
19211
19211
  } catch {
19212
19212
  bytes = 0;
19213
19213
  }
@@ -13,10 +13,4 @@ export declare function detectOrtVersion(libDir: string): string | null;
13
13
  export declare const REQUIRED_ORT_MAJOR = 1;
14
14
  export declare const REQUIRED_ORT_MIN_MINOR = 20;
15
15
  export declare function isOrtVersionCompatible(version: string): boolean;
16
- /** File-stat helper so callers can report age/size of the ONNX dir. */
17
- export declare function inspectPathStats(path: string): {
18
- exists: boolean;
19
- isDir: boolean;
20
- isFile: boolean;
21
- };
22
16
  //# sourceMappingURL=onnx.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"onnx.d.ts","sourceRoot":"","sources":["../../src/lib/onnx.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,WAAW,CAAC;AAE7C,wBAAgB,kBAAkB,IAAI,MAAM,CAI3C;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAkB7C;AA8BD,wBAAgB,qBAAqB,IAAI,MAAM,GAAG,IAAI,CAoErD;AACD,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAUvE;AAyBD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAwC9D;AAED,+DAA+D;AAC/D,eAAO,MAAM,kBAAkB,IAAI,CAAC;AACpC,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAM/D;AAED,uEAAuE;AACvE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG;IAC9C,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;CACjB,CAQA"}
1
+ {"version":3,"file":"onnx.d.ts","sourceRoot":"","sources":["../../src/lib/onnx.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,WAAW,CAAC;AAE7C,wBAAgB,kBAAkB,IAAI,MAAM,CAI3C;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAkB7C;AA8BD,wBAAgB,qBAAqB,IAAI,MAAM,GAAG,IAAI,CAoErD;AACD,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAUvE;AAyBD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAwC9D;AAED,+DAA+D;AAC/D,eAAO,MAAM,kBAAkB,IAAI,CAAC;AACpC,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAM/D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/aft",
3
- "version": "0.45.0",
3
+ "version": "0.45.1",
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",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@clack/prompts": "^1.6.0",
27
- "@cortexkit/aft-bridge": "0.45.0",
27
+ "@cortexkit/aft-bridge": "0.45.1",
28
28
  "comment-json": "^4.6.2"
29
29
  },
30
30
  "devDependencies": {