@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.
Files changed (52) hide show
  1. package/dist/bg-notifications.d.ts.map +1 -1
  2. package/dist/config-live-reload.d.ts +4 -28
  3. package/dist/config-live-reload.d.ts.map +1 -1
  4. package/dist/config.d.ts +11 -40
  5. package/dist/config.d.ts.map +1 -1
  6. package/dist/entry/server.js +1726 -674
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +1726 -674
  9. package/dist/lsp-auto-install.d.ts.map +1 -1
  10. package/dist/shared/session-directory.d.ts +11 -4
  11. package/dist/shared/session-directory.d.ts.map +1 -1
  12. package/dist/shared/status.d.ts +2 -6
  13. package/dist/shared/status.d.ts.map +1 -1
  14. package/dist/subc-tool-schemas.d.ts +4 -3
  15. package/dist/subc-tool-schemas.d.ts.map +1 -1
  16. package/dist/tool-registration.d.ts +1 -1
  17. package/dist/tool-registration.d.ts.map +1 -1
  18. package/dist/tools/_shared.d.ts +11 -17
  19. package/dist/tools/_shared.d.ts.map +1 -1
  20. package/dist/tools/bash.d.ts.map +1 -1
  21. package/dist/tools/bash_watch.d.ts +6 -3
  22. package/dist/tools/bash_watch.d.ts.map +1 -1
  23. package/dist/tools/definitions/v2.d.ts +26 -1
  24. package/dist/tools/definitions/v2.d.ts.map +1 -1
  25. package/dist/tools/inspect.d.ts +0 -15
  26. package/dist/tools/inspect.d.ts.map +1 -1
  27. package/dist/tui/preferences.d.ts +1 -1
  28. package/dist/tui/shared-sidebar.d.ts +4 -0
  29. package/dist/tui/shared-sidebar.d.ts.map +1 -0
  30. package/dist/tui/v2-status.d.ts +3 -2
  31. package/dist/tui/v2-status.d.ts.map +1 -1
  32. package/dist/v2-session-lifecycle.d.ts.map +1 -1
  33. package/dist/workflow-hints.d.ts +1 -5
  34. package/dist/workflow-hints.d.ts.map +1 -1
  35. package/package.json +14 -12
  36. package/src/shared/session-directory.ts +90 -17
  37. package/src/shared/status.ts +6 -26
  38. package/src/tui/index.tsx +8 -28
  39. package/src/tui/preferences.ts +1 -1
  40. package/src/tui/shared-sidebar.ts +14 -0
  41. package/src/tui/sidebar-view.tsx +257 -283
  42. package/src/tui/v2-status.ts +5 -14
  43. package/src/tui-compiled/index.tsx +6 -44
  44. package/src/tui-compiled/preferences.ts +1 -1
  45. package/src/tui-compiled/shared-sidebar-host.tsx +816 -0
  46. package/src/tui-compiled/shared-sidebar-local.tsx +816 -0
  47. package/src/tui-compiled/shared-sidebar.LICENSE +21 -0
  48. package/src/tui-compiled/shared-sidebar.ts +14 -0
  49. package/src/tui-compiled/sidebar-view.tsx +185 -261
  50. package/src/tui-compiled/sidebar.tsx +1 -0
  51. package/src/tui-compiled/v2-status.ts +5 -14
  52. 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 dead-code when the callgraph store cannot be used)
31
- * can leave the complete `status_bar` missing for the whole session.
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
- const stale = bar.tier2_stale ? "~" : "";
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
- const stale = bar.tier2_stale ? "~" : "";
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
  /**
@@ -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";