@cortexkit/aft-opencode 0.63.5 → 0.65.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/bg-notifications.d.ts.map +1 -1
- package/dist/config-live-reload.d.ts +4 -28
- package/dist/config-live-reload.d.ts.map +1 -1
- package/dist/config.d.ts +11 -40
- package/dist/config.d.ts.map +1 -1
- package/dist/entry/server.js +1726 -674
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1726 -674
- package/dist/lsp-auto-install.d.ts.map +1 -1
- package/dist/shared/session-directory.d.ts +11 -4
- package/dist/shared/session-directory.d.ts.map +1 -1
- package/dist/shared/status.d.ts +2 -6
- package/dist/shared/status.d.ts.map +1 -1
- package/dist/subc-tool-schemas.d.ts +4 -3
- package/dist/subc-tool-schemas.d.ts.map +1 -1
- package/dist/tool-registration.d.ts +1 -1
- package/dist/tool-registration.d.ts.map +1 -1
- package/dist/tools/_shared.d.ts +11 -17
- package/dist/tools/_shared.d.ts.map +1 -1
- package/dist/tools/bash.d.ts.map +1 -1
- package/dist/tools/bash_watch.d.ts +6 -3
- package/dist/tools/bash_watch.d.ts.map +1 -1
- package/dist/tools/definitions/v2.d.ts +26 -1
- package/dist/tools/definitions/v2.d.ts.map +1 -1
- package/dist/tools/inspect.d.ts +0 -15
- package/dist/tools/inspect.d.ts.map +1 -1
- package/dist/tui/preferences.d.ts +1 -1
- package/dist/tui/shared-sidebar.d.ts +4 -0
- package/dist/tui/shared-sidebar.d.ts.map +1 -0
- package/dist/tui/v2-status.d.ts +3 -2
- package/dist/tui/v2-status.d.ts.map +1 -1
- package/dist/v2-session-lifecycle.d.ts.map +1 -1
- package/dist/workflow-hints.d.ts +1 -5
- package/dist/workflow-hints.d.ts.map +1 -1
- package/package.json +14 -12
- package/src/shared/session-directory.ts +90 -17
- package/src/shared/status.ts +6 -26
- package/src/tui/index.tsx +8 -28
- package/src/tui/preferences.ts +1 -1
- package/src/tui/shared-sidebar.ts +14 -0
- package/src/tui/sidebar-view.tsx +257 -283
- package/src/tui/v2-status.ts +5 -14
- package/src/tui-compiled/index.tsx +6 -44
- package/src/tui-compiled/preferences.ts +1 -1
- package/src/tui-compiled/shared-sidebar-host.tsx +816 -0
- package/src/tui-compiled/shared-sidebar-local.tsx +816 -0
- package/src/tui-compiled/shared-sidebar.LICENSE +21 -0
- package/src/tui-compiled/shared-sidebar.ts +14 -0
- package/src/tui-compiled/sidebar-view.tsx +185 -261
- package/src/tui-compiled/sidebar.tsx +1 -0
- package/src/tui-compiled/v2-status.ts +5 -14
- package/src/tui-compiled/v2.tsx +1 -0
|
@@ -27,8 +27,9 @@ function diagnosticsPart(bar: StatusBar): string {
|
|
|
27
27
|
* The V2 footer segment. "AFT starting…" is only true before the bridge has
|
|
28
28
|
* delivered a real snapshot. After that the footer shows every health category
|
|
29
29
|
* that has a value and `?` for any that does not, because a producer that is
|
|
30
|
-
* unavailable (for example
|
|
31
|
-
*
|
|
30
|
+
* unavailable (for example no language server) can leave the complete
|
|
31
|
+
* `status_bar` missing for the whole session. Dead code, unused exports and
|
|
32
|
+
* duplicates are not shown: they are computed only by aft_inspect.
|
|
32
33
|
*/
|
|
33
34
|
export function formatAftStatusSegment(status: AftStatusSnapshot | null): string {
|
|
34
35
|
// The config error state never produces a real snapshot; say so instead of
|
|
@@ -36,12 +37,7 @@ export function formatAftStatusSegment(status: AftStatusSnapshot | null): string
|
|
|
36
37
|
if (status?.config_error) return "AFT config error";
|
|
37
38
|
if (!status || status.cache_role === "not_initialized") return "AFT starting…";
|
|
38
39
|
const bar: StatusBar = status.status_bar ?? status.status_bar_values ?? {};
|
|
39
|
-
|
|
40
|
-
return (
|
|
41
|
-
`AFT ${diagnosticsPart(bar)} | ` +
|
|
42
|
-
`${stale}D${count(bar.dead_code, bar.disabled_categories?.includes("dead_code"))} U${count(bar.unused_exports, bar.disabled_categories?.includes("unused_exports"))} ` +
|
|
43
|
-
`C${count(bar.duplicates, bar.disabled_categories?.includes("duplicates"))} | T${count(bar.todos, bar.disabled_categories?.includes("todos"))}`
|
|
44
|
-
);
|
|
40
|
+
return `AFT ${diagnosticsPart(bar)} | T${count(bar.todos, bar.disabled_categories?.includes("todos"))}`;
|
|
45
41
|
}
|
|
46
42
|
|
|
47
43
|
export type AftSidebarSummary = {
|
|
@@ -53,12 +49,7 @@ export type AftSidebarSummary = {
|
|
|
53
49
|
};
|
|
54
50
|
function healthSummary(bar: StatusBar | undefined): string {
|
|
55
51
|
if (!bar) return "health pending";
|
|
56
|
-
|
|
57
|
-
return (
|
|
58
|
-
`${diagnosticsPart(bar)} ` +
|
|
59
|
-
`${stale}D${count(bar.dead_code, bar.disabled_categories?.includes("dead_code"))} U${count(bar.unused_exports, bar.disabled_categories?.includes("unused_exports"))} ` +
|
|
60
|
-
`C${count(bar.duplicates, bar.disabled_categories?.includes("duplicates"))} T${count(bar.todos, bar.disabled_categories?.includes("todos"))}`
|
|
61
|
-
);
|
|
52
|
+
return `${diagnosticsPart(bar)} T${count(bar.todos, bar.disabled_categories?.includes("todos"))}`;
|
|
62
53
|
}
|
|
63
54
|
|
|
64
55
|
/**
|
package/src/tui-compiled/v2.tsx
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
1
2
|
import { createComponent as _$createComponent } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
2
3
|
import { memo as _$memo } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
3
4
|
import { insert as _$insert } from "opentui:runtime-module:%40opentui%2Fsolid";
|