@cortexkit/aft 0.57.0 → 0.57.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.
|
@@ -28,6 +28,12 @@ export declare class OpenCodeAdapter implements HarnessAdapter {
|
|
|
28
28
|
* Register the TUI sidebar plugin in tui.json(c). Only setup/doctor call
|
|
29
29
|
* this: the plugin itself must never auto-inject the entry at load time,
|
|
30
30
|
* because that silently undoes a user's deliberate removal on every launch.
|
|
31
|
+
*
|
|
32
|
+
* V1 only. OpenCode 2 resolves a TUI plugin from the package's own `tui`
|
|
33
|
+
* entrypoint, so there is nothing to register: the GA CLI (checked against
|
|
34
|
+
* 2.0.14) contains no reference to `tui.json` or `tui.jsonc` at all. Writing
|
|
35
|
+
* the file there left a config the host never reads, which reads to a user
|
|
36
|
+
* like a setup step that did something.
|
|
31
37
|
*/
|
|
32
38
|
ensureTuiPluginEntry(): Promise<PluginEntryResult>;
|
|
33
39
|
needsTuiPluginEntryUpdate(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opencode.d.ts","sourceRoot":"","sources":["../../src/adapters/opencode.ts"],"names":[],"mappings":"AAeA,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,6BAA6B,CAAC;AAYrC,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAgKpB,qBAAa,eAAgB,YAAW,cAAc;IACpD,QAAQ,CAAC,IAAI,EAAG,UAAU,CAAU;IACpC,QAAQ,CAAC,WAAW,cAAc;IAClC,QAAQ,CAAC,iBAAiB,6BAAe;IACzC,QAAQ,CAAC,sBAAsB,SAAgB;IAC/C,OAAO,CAAC,aAAa,CAAoC;IAEzD,WAAW,IAAI,OAAO;IAatB,oBAAoB,IAAI,qBAAqB;IAK7C;;;;;;;OAOG;IACH,gBAAgB,CAAC,SAAS,EAAE,qBAAqB,GAAG,IAAI;IAIxD,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;IAIvB,UAAU,IAAI,MAAM;IAIpB,cAAc,IAAI,MAAM;IAIlB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC;QAC9C,MAAM,EACF,SAAS,GACT,qBAAqB,GACrB,YAAY,GACZ,WAAW,GACX,gBAAgB,GAChB,OAAO,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAC9B,CAAC;IAgDF,qEAAqE;IACrE,mBAAmB,IAAI,MAAM;IAI7B,mEAAmE;IACnE,uBAAuB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAWlD"}
|
package/dist/index.js
CHANGED
|
@@ -1781,7 +1781,7 @@ var init_durable_log = __esm(() => {
|
|
|
1781
1781
|
init_storage_paths();
|
|
1782
1782
|
DEFAULT_LOG_BYTES = 32 * 1024 * 1024;
|
|
1783
1783
|
});
|
|
1784
|
-
// ../../node_modules/.bun/@cortexkit+subc-client@0.
|
|
1784
|
+
// ../../node_modules/.bun/@cortexkit+subc-client@0.13.1/node_modules/@cortexkit/subc-client/dist/envelope.js
|
|
1785
1785
|
var MAX_FRAME_BODY_LEN, FrameType, FRAME_TYPE_MAX, Priority, AdmissionClass;
|
|
1786
1786
|
var init_envelope = __esm(() => {
|
|
1787
1787
|
MAX_FRAME_BODY_LEN = 64 * 1024 * 1024;
|
|
@@ -1812,7 +1812,7 @@ var init_envelope = __esm(() => {
|
|
|
1812
1812
|
})(AdmissionClass || (AdmissionClass = {}));
|
|
1813
1813
|
});
|
|
1814
1814
|
|
|
1815
|
-
// ../../node_modules/.bun/@cortexkit+subc-client@0.
|
|
1815
|
+
// ../../node_modules/.bun/@cortexkit+subc-client@0.13.1/node_modules/@cortexkit/subc-client/dist/socket.js
|
|
1816
1816
|
var WRITE_BORROWED, WRITE_TRACKED_BORROWED;
|
|
1817
1817
|
var init_socket = __esm(() => {
|
|
1818
1818
|
init_envelope();
|
|
@@ -1820,23 +1820,24 @@ var init_socket = __esm(() => {
|
|
|
1820
1820
|
WRITE_TRACKED_BORROWED = Symbol("subc.socket.writeTrackedBorrowed");
|
|
1821
1821
|
});
|
|
1822
1822
|
|
|
1823
|
-
// ../../node_modules/.bun/@cortexkit+subc-client@0.
|
|
1823
|
+
// ../../node_modules/.bun/@cortexkit+subc-client@0.13.1/node_modules/@cortexkit/subc-client/dist/auth.js
|
|
1824
1824
|
var init_auth = __esm(() => {
|
|
1825
1825
|
init_socket();
|
|
1826
1826
|
});
|
|
1827
1827
|
|
|
1828
|
-
// ../../node_modules/.bun/@cortexkit+subc-client@0.
|
|
1828
|
+
// ../../node_modules/.bun/@cortexkit+subc-client@0.13.1/node_modules/@cortexkit/subc-client/dist/connection-file.js
|
|
1829
1829
|
var init_connection_file = __esm(() => {
|
|
1830
1830
|
init_envelope();
|
|
1831
1831
|
});
|
|
1832
1832
|
|
|
1833
|
-
// ../../node_modules/.bun/@cortexkit+subc-client@0.
|
|
1834
|
-
var connectionToken;
|
|
1833
|
+
// ../../node_modules/.bun/@cortexkit+subc-client@0.13.1/node_modules/@cortexkit/subc-client/dist/route-handle.js
|
|
1834
|
+
var connectionToken, reverseRequests;
|
|
1835
1835
|
var init_route_handle = __esm(() => {
|
|
1836
1836
|
connectionToken = new WeakMap;
|
|
1837
|
+
reverseRequests = new WeakMap;
|
|
1837
1838
|
});
|
|
1838
1839
|
|
|
1839
|
-
// ../../node_modules/.bun/@cortexkit+subc-client@0.
|
|
1840
|
+
// ../../node_modules/.bun/@cortexkit+subc-client@0.13.1/node_modules/@cortexkit/subc-client/dist/client.js
|
|
1840
1841
|
import { debuglog } from "node:util";
|
|
1841
1842
|
var debug, EMPTY_BODY;
|
|
1842
1843
|
var init_client = __esm(() => {
|
|
@@ -1849,7 +1850,7 @@ var init_client = __esm(() => {
|
|
|
1849
1850
|
EMPTY_BODY = new Uint8Array(0);
|
|
1850
1851
|
});
|
|
1851
1852
|
|
|
1852
|
-
// ../../node_modules/.bun/@cortexkit+subc-client@0.
|
|
1853
|
+
// ../../node_modules/.bun/@cortexkit+subc-client@0.13.1/node_modules/@cortexkit/subc-client/dist/provider.js
|
|
1853
1854
|
var init_provider = __esm(() => {
|
|
1854
1855
|
init_auth();
|
|
1855
1856
|
init_client();
|
|
@@ -1859,7 +1860,7 @@ var init_provider = __esm(() => {
|
|
|
1859
1860
|
init_socket();
|
|
1860
1861
|
});
|
|
1861
1862
|
|
|
1862
|
-
// ../../node_modules/.bun/@cortexkit+subc-client@0.
|
|
1863
|
+
// ../../node_modules/.bun/@cortexkit+subc-client@0.13.1/node_modules/@cortexkit/subc-client/dist/index.js
|
|
1863
1864
|
var init_dist = __esm(() => {
|
|
1864
1865
|
init_client();
|
|
1865
1866
|
init_route_handle();
|
|
@@ -12659,6 +12660,14 @@ class OpenCodeAdapter {
|
|
|
12659
12660
|
}
|
|
12660
12661
|
async ensureTuiPluginEntry() {
|
|
12661
12662
|
const paths = this.detectConfigPaths();
|
|
12663
|
+
if (this.configGeneration() === "v2") {
|
|
12664
|
+
return {
|
|
12665
|
+
ok: true,
|
|
12666
|
+
action: "already_present",
|
|
12667
|
+
message: "OpenCode 2 loads the TUI plugin from its own entrypoint; no TUI config entry needed",
|
|
12668
|
+
configPath: paths.tuiConfig ?? paths.configDir
|
|
12669
|
+
};
|
|
12670
|
+
}
|
|
12662
12671
|
if (!paths.tuiConfig) {
|
|
12663
12672
|
return {
|
|
12664
12673
|
ok: false,
|
|
@@ -12670,6 +12679,8 @@ class OpenCodeAdapter {
|
|
|
12670
12679
|
return this.ensureConfigEntry(paths.tuiConfig, paths.tuiConfigFormat ?? "none", "TUI config");
|
|
12671
12680
|
}
|
|
12672
12681
|
needsTuiPluginEntryUpdate() {
|
|
12682
|
+
if (this.configGeneration() === "v2")
|
|
12683
|
+
return false;
|
|
12673
12684
|
const paths = this.detectConfigPaths();
|
|
12674
12685
|
return paths.tuiConfig ? this.configEntryNeedsUpdate(paths.tuiConfig, paths.tuiConfigFormat ?? "none") : true;
|
|
12675
12686
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft",
|
|
3
|
-
"version": "0.57.
|
|
3
|
+
"version": "0.57.2",
|
|
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.57.
|
|
27
|
+
"@cortexkit/aft-bridge": "0.57.2",
|
|
28
28
|
"comment-json": "^4.6.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|