@cortexkit/aft 0.55.0 → 0.56.0
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/index.d.ts +2 -1
- package/dist/adapters/index.d.ts.map +1 -1
- package/dist/adapters/omp.d.ts +36 -0
- package/dist/adapters/omp.d.ts.map +1 -0
- package/dist/adapters/opencode.d.ts +8 -1
- package/dist/adapters/opencode.d.ts.map +1 -1
- package/dist/adapters/types.d.ts +2 -2
- package/dist/adapters/types.d.ts.map +1 -1
- package/dist/commands/doctor.d.ts +8 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/lsp.d.ts.map +1 -1
- package/dist/commands/setup.d.ts +7 -1
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/doctor/opencode.d.ts +20 -0
- package/dist/doctor/opencode.d.ts.map +1 -0
- package/dist/index.js +5881 -11105
- package/dist/lib/build-breaker.d.ts.map +1 -1
- package/dist/lib/harness-select.d.ts +1 -1
- package/dist/lib/harness-select.d.ts.map +1 -1
- package/dist/lib/omp-helpers.d.ts +34 -0
- package/dist/lib/omp-helpers.d.ts.map +1 -0
- package/dist/lib/omp-paths.d.ts +17 -0
- package/dist/lib/omp-paths.d.ts.map +1 -0
- package/dist/lib/paths.d.ts +2 -2
- package/dist/lib/paths.d.ts.map +1 -1
- package/dist/lib/sessions.d.ts.map +1 -1
- package/dist/setup/host-generation.d.ts +47 -0
- package/dist/setup/host-generation.d.ts.map +1 -0
- package/dist/setup/opencode-config.d.ts +16 -0
- package/dist/setup/opencode-config.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-breaker.d.ts","sourceRoot":"","sources":["../../src/lib/build-breaker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build-breaker.d.ts","sourceRoot":"","sources":["../../src/lib/build-breaker.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,kCAAkC,kDAAsC,CAAC;AAEtF,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAyBD;;;;GAIG;AACH,wBAAgB,2BAA2B,CACzC,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE,MAAmB,GACzB,sBAAsB,EAAE,CAuC1B;AAED,wBAAgB,4BAA4B,CAAC,UAAU,EAAE,sBAAsB,GAAG,MAAM,CASvF;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,0FAA0F;AAC1F,wBAAgB,2BAA2B,CACzC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,uBAAuB,GAC9B,MAAM,CA6BR"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HarnessAdapter } from "../adapters/types.js";
|
|
2
2
|
/**
|
|
3
3
|
* Resolve which adapter(s) to act on.
|
|
4
|
-
* - `--harness opencode|pi` → single adapter (hard override)
|
|
4
|
+
* - `--harness opencode|pi|omp` → single adapter (hard override)
|
|
5
5
|
* - otherwise: installed hosts, with interactive prompts when ambiguous
|
|
6
6
|
* - 0 installed → prompt user to pick (give install hints)
|
|
7
7
|
* - 1 installed → use it silently
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harness-select.d.ts","sourceRoot":"","sources":["../../src/lib/harness-select.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,sBAAsB,CAAC;AAWxE;;;;;;;GAOG;AACH,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,EAAE;IACP,qFAAqF;IACrF,UAAU,EAAE,OAAO,CAAC;IACpB,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;CACd,GACA,OAAO,CAAC,cAAc,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"harness-select.d.ts","sourceRoot":"","sources":["../../src/lib/harness-select.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,sBAAsB,CAAC;AAWxE;;;;;;;GAOG;AACH,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,EAAE;IACP,qFAAqF;IACrF,UAAU,EAAE,OAAO,CAAC;IACpB,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;CACd,GACA,OAAO,CAAC,cAAc,EAAE,CAAC,CAwD3B;AAED,mFAAmF;AACnF,wBAAgB,sBAAsB,IAAI,cAAc,EAAE,CAEzD"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { spawnSync } from "node:child_process";
|
|
2
|
+
export interface OmpBinaryInfo {
|
|
3
|
+
path: string;
|
|
4
|
+
source: "path" | "home" | "package";
|
|
5
|
+
}
|
|
6
|
+
export interface OmpCommandResult {
|
|
7
|
+
ok: boolean;
|
|
8
|
+
stdout: string;
|
|
9
|
+
stderr: string;
|
|
10
|
+
}
|
|
11
|
+
export interface OmpPluginInfo {
|
|
12
|
+
name: string;
|
|
13
|
+
version: string;
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
path?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface OmpCommandInvocation {
|
|
18
|
+
command: string;
|
|
19
|
+
args: string[];
|
|
20
|
+
}
|
|
21
|
+
export declare const OMP_HOST_PACKAGE = "@oh-my-pi/pi-coding-agent";
|
|
22
|
+
export declare const OMP_PLUGIN_PACKAGE = "@cortexkit/aft-pi";
|
|
23
|
+
/** Build argv for OMP, routing package scripts through Bun and Windows shims through cmd.exe. */
|
|
24
|
+
export declare function getOmpCommandInvocation(ompPath: string, args: string[]): OmpCommandInvocation;
|
|
25
|
+
export declare function getOmpFallbackCandidates(platform: NodeJS.Platform, home: string, appData?: string): string[];
|
|
26
|
+
export declare function detectOmpBinary(): OmpBinaryInfo | null;
|
|
27
|
+
export interface OmpCommandExecutionDeps {
|
|
28
|
+
getInvocation: typeof getOmpCommandInvocation;
|
|
29
|
+
spawnSync: typeof spawnSync;
|
|
30
|
+
}
|
|
31
|
+
export declare function runOmpCommand(ompPath: string, args: string[], timeout?: number, overrides?: Partial<OmpCommandExecutionDeps>): OmpCommandResult;
|
|
32
|
+
export declare function getOmpVersion(ompPath: string): string | null;
|
|
33
|
+
export declare function listOmpPlugins(ompPath: string): OmpPluginInfo[] | null;
|
|
34
|
+
//# sourceMappingURL=omp-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"omp-helpers.d.ts","sourceRoot":"","sources":["../../src/lib/omp-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAO/C,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACrC;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,eAAO,MAAM,gBAAgB,8BAA8B,CAAC;AAC5D,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AAiDtD,iGAAiG;AACjG,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,oBAAoB,CAY7F;AAED,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,MAAM,CAAC,QAAQ,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,GACf,MAAM,EAAE,CAUV;AAED,wBAAgB,eAAe,IAAI,aAAa,GAAG,IAAI,CAYtD;AAED,MAAM,WAAW,uBAAuB;IACtC,aAAa,EAAE,OAAO,uBAAuB,CAAC;IAC9C,SAAS,EAAE,OAAO,SAAS,CAAC;CAC7B;AAOD,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,SAAS,EAChB,SAAS,GAAE,OAAO,CAAC,uBAAuB,CAAM,GAC/C,gBAAgB,CAsBlB;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAK5D;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,EAAE,GAAG,IAAI,CAsBtE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface OmpPaths {
|
|
2
|
+
configRoot: string;
|
|
3
|
+
agentDir: string;
|
|
4
|
+
dataRoot: string;
|
|
5
|
+
dataAgentRoot: string;
|
|
6
|
+
pluginsDir: string;
|
|
7
|
+
sessionsRoot: string;
|
|
8
|
+
}
|
|
9
|
+
/** Mirror OMP's profile, custom agent-directory, and XDG data resolution. */
|
|
10
|
+
export declare function resolveOmpPaths(): OmpPaths;
|
|
11
|
+
export declare function getOmpAgentDir(): string;
|
|
12
|
+
export declare function getOmpPluginsDir(): string;
|
|
13
|
+
export declare function getOmpPluginsLockPath(): string;
|
|
14
|
+
export declare function getOmpSessionsRoot(): string;
|
|
15
|
+
/** Resolve OMP's package-root override used by Nix, Guix, and source installs. */
|
|
16
|
+
export declare function getOmpPackageDir(): string | undefined;
|
|
17
|
+
//# sourceMappingURL=omp-paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"omp-paths.d.ts","sourceRoot":"","sources":["../../src/lib/omp-paths.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,QAAQ;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAMD,6EAA6E;AAC7E,wBAAgB,eAAe,IAAI,QAAQ,CAwC1C;AAED,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CAE9C;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED,kFAAkF;AAClF,wBAAgB,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAQrD"}
|
package/dist/lib/paths.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getAftBinaryCacheDir, getAftLspBinariesDir, getAftLspPackagesDir } from "@cortexkit/aft-bridge";
|
|
1
|
+
import { getAftBinaryCacheDir, getAftLspBinariesDir, getAftLspPackagesDir, type StoragePathContext } from "@cortexkit/aft-bridge";
|
|
2
2
|
export { getAftBinaryCacheDir, getAftLspBinariesDir, getAftLspPackagesDir };
|
|
3
3
|
export declare function getAftBinaryName(): string;
|
|
4
|
-
export declare function getCortexKitStorageRoot(): string;
|
|
4
|
+
export declare function getCortexKitStorageRoot(context?: StoragePathContext): string;
|
|
5
5
|
//# sourceMappingURL=paths.d.ts.map
|
package/dist/lib/paths.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/lib/paths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/lib/paths.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EAEpB,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,CAAC;AAE5E,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,kBAAuB,GAAG,MAAM,CAEhF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../src/lib/sessions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../src/lib/sessions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG3D,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,kBAAkB;IAC1B,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;CACvB;AASD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,cAAc,GAAG,aAAa,EAAE,CAS3E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,kBAAkB,EAAE,GAAG,aAAa,EAAE,CAiBlF;AA0CD,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,aAAa,EAAE,CA8B1E;AA0BD,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,EACb,gBAAgB,SAAK,GACpB,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,OAAO,CAAC,GAAG,IAAI,CA8B5C;AAqCD,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,SAAK,GAAG,MAAM,CAInE"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type OpenCodeHostGeneration = "v1" | "v2";
|
|
2
|
+
export type OpenCodeHostRuntime = "bun" | "node";
|
|
3
|
+
export interface OpenCodeHostEvidence {
|
|
4
|
+
generation: OpenCodeHostGeneration;
|
|
5
|
+
executable: string;
|
|
6
|
+
version: string | null;
|
|
7
|
+
runtime: OpenCodeHostRuntime;
|
|
8
|
+
modernV1: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface OpenCodeHostDetection {
|
|
11
|
+
status: OpenCodeHostGeneration | "ambiguous" | "unknown";
|
|
12
|
+
generations: OpenCodeHostGeneration[];
|
|
13
|
+
evidence: OpenCodeHostEvidence[];
|
|
14
|
+
}
|
|
15
|
+
export interface HostGenerationDependencies {
|
|
16
|
+
path?: string;
|
|
17
|
+
platform?: NodeJS.Platform;
|
|
18
|
+
findExecutable?: (name: "opencode" | "opencode2") => string | null;
|
|
19
|
+
probeV1Version?: (executable: string) => string | null;
|
|
20
|
+
}
|
|
21
|
+
interface SpawnResult {
|
|
22
|
+
status: number | null;
|
|
23
|
+
stdout?: string | Buffer | null;
|
|
24
|
+
error?: Error;
|
|
25
|
+
}
|
|
26
|
+
export interface V1VersionProbeOptions {
|
|
27
|
+
env?: NodeJS.ProcessEnv;
|
|
28
|
+
operatorHome?: string;
|
|
29
|
+
tempParent?: string;
|
|
30
|
+
spawn?: (executable: string, args: string[], options: {
|
|
31
|
+
cwd: string;
|
|
32
|
+
encoding: "utf8";
|
|
33
|
+
env: NodeJS.ProcessEnv;
|
|
34
|
+
stdio: ["ignore", "pipe", "pipe"];
|
|
35
|
+
timeout: number;
|
|
36
|
+
}) => SpawnResult;
|
|
37
|
+
}
|
|
38
|
+
export declare function findExecutableOnPath(name: "opencode" | "opencode2", pathValue?: string, platform?: NodeJS.Platform): string | null;
|
|
39
|
+
/**
|
|
40
|
+
* Run the V1 version probe in disposable host roots. The operator canary fails
|
|
41
|
+
* the probe if the live OpenCode database or logs change while it runs.
|
|
42
|
+
*/
|
|
43
|
+
export declare function probeOpenCodeV1Version(executable: string, options?: V1VersionProbeOptions): string | null;
|
|
44
|
+
export declare function detectOpenCodeHostGeneration(dependencies?: HostGenerationDependencies): OpenCodeHostDetection;
|
|
45
|
+
export declare function formatHostGenerations(detection: OpenCodeHostDetection): string;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=host-generation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-generation.d.ts","sourceRoot":"","sources":["../../src/setup/host-generation.ts"],"names":[],"mappings":"AAmBA,MAAM,MAAM,sBAAsB,GAAG,IAAI,GAAG,IAAI,CAAC;AACjD,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,MAAM,CAAC;AAEjD,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,sBAAsB,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,mBAAmB,CAAC;IAC7B,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,sBAAsB,GAAG,WAAW,GAAG,SAAS,CAAC;IACzD,WAAW,EAAE,sBAAsB,EAAE,CAAC;IACtC,QAAQ,EAAE,oBAAoB,EAAE,CAAC;CAClC;AAOD,MAAM,WAAW,0BAA0B;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC3B,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,GAAG,WAAW,KAAK,MAAM,GAAG,IAAI,CAAC;IACnE,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;CACxD;AAED,UAAU,WAAW;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAChC,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB;IACpC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,CACN,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,EAAE;QACP,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC;QACvB,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAClC,OAAO,EAAE,MAAM,CAAC;KACjB,KACE,WAAW,CAAC;CAClB;AAOD,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,UAAU,GAAG,WAAW,EAC9B,SAAS,SAAyB,EAClC,QAAQ,GAAE,MAAM,CAAC,QAA2B,GAC3C,MAAM,GAAG,IAAI,CAef;AA8DD;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,qBAA0B,GAClC,MAAM,GAAG,IAAI,CAoDf;AAED,wBAAgB,4BAA4B,CAC1C,YAAY,GAAE,0BAA+B,GAC5C,qBAAqB,CAiDvB;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,qBAAqB,GAAG,MAAM,CAK9E"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const AFT_OPENCODE_PACKAGE = "@cortexkit/aft-opencode";
|
|
2
|
+
export declare const MODERN_V1_VERSION: string;
|
|
3
|
+
export declare function pinnedPluginEntry(version: string): string;
|
|
4
|
+
export declare function isAftNpmEntry(entry: unknown): entry is string;
|
|
5
|
+
export interface PluginConfigUpdate {
|
|
6
|
+
action: "already_present" | "added" | "updated";
|
|
7
|
+
changed: boolean;
|
|
8
|
+
entry: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Normalize an OpenCode server or TUI config without replacing its parsed object.
|
|
12
|
+
* Keeping the object and its existing `plugin` array lets comment-json retain JSONC comments.
|
|
13
|
+
*/
|
|
14
|
+
export declare function ensurePinnedPluginConfig(value: Record<string | symbol, unknown>, version: string, hasLocalAftEntry?: (entry: string) => boolean): PluginConfigUpdate;
|
|
15
|
+
export declare function pluginConfigNeedsUpdate(value: Record<string | symbol, unknown>, version: string, hasLocalAftEntry?: (entry: string) => boolean): boolean;
|
|
16
|
+
//# sourceMappingURL=opencode-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opencode-config.d.ts","sourceRoot":"","sources":["../../src/setup/opencode-config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,iBAAiB,QAA6B,CAAC;AAE5D,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAK7D;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,iBAAiB,GAAG,OAAO,GAAG,SAAS,CAAC;IAChD,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,EACvC,OAAO,EAAE,MAAM,EACf,gBAAgB,GAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAqB,GACzD,kBAAkB,CAuCpB;AAED,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,EACvC,OAAO,EAAE,MAAM,EACf,gBAAgB,GAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAqB,GACzD,OAAO,CAST"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.56.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Unified CLI for Agent File Tools (AFT) — setup, one-shot index snapshots, 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.
|
|
27
|
+
"@cortexkit/aft-bridge": "0.56.0",
|
|
28
28
|
"comment-json": "^4.6.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|