ei-tui 0.8.1 → 0.9.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.
Files changed (62) hide show
  1. package/README.md +9 -6
  2. package/package.json +1 -1
  3. package/src/core/handlers/heartbeat.ts +63 -8
  4. package/src/core/handlers/index.ts +2 -1
  5. package/src/core/handlers/persona-response.ts +3 -5
  6. package/src/core/handlers/rooms.ts +3 -5
  7. package/src/core/handlers/utils.ts +5 -4
  8. package/src/core/heartbeat-manager.ts +16 -47
  9. package/src/core/message-manager.ts +6 -2
  10. package/src/core/orchestrators/ceremony.ts +49 -4
  11. package/src/core/persona-manager.ts +1 -2
  12. package/src/core/personas/opencode-agent.ts +7 -2
  13. package/src/core/processor.ts +5 -12
  14. package/src/core/prompt-context-builder.ts +11 -1
  15. package/src/core/queue-processor.ts +4 -4
  16. package/src/core/room-manager.ts +6 -6
  17. package/src/core/state/human.ts +0 -1
  18. package/src/core/state/personas.ts +22 -13
  19. package/src/core/state/rooms.ts +0 -2
  20. package/src/core/state-manager.ts +83 -11
  21. package/src/core/types/data-items.ts +2 -2
  22. package/src/core/types/entities.ts +8 -3
  23. package/src/core/types/enums.ts +1 -0
  24. package/src/core/types/integrations.ts +1 -1
  25. package/src/core/types/llm.ts +2 -4
  26. package/src/core/types/rooms.ts +0 -4
  27. package/src/integrations/claude-code/importer.ts +1 -5
  28. package/src/integrations/cursor/importer.ts +1 -5
  29. package/src/integrations/opencode/importer.ts +1 -4
  30. package/src/integrations/opencode/types.ts +17 -1
  31. package/src/prompts/heartbeat/check.ts +7 -18
  32. package/src/prompts/heartbeat/ei.ts +14 -0
  33. package/src/prompts/heartbeat/types.ts +7 -5
  34. package/src/prompts/index.ts +9 -0
  35. package/src/prompts/message-utils.ts +7 -4
  36. package/src/prompts/reflection/index.ts +77 -0
  37. package/src/prompts/reflection/types.ts +26 -0
  38. package/src/prompts/response/index.ts +5 -2
  39. package/src/prompts/response/sections.ts +29 -1
  40. package/src/prompts/response/types.ts +10 -2
  41. package/src/prompts/room/sections.ts +4 -7
  42. package/src/prompts/room/types.ts +3 -6
  43. package/src/storage/embeddings.ts +69 -34
  44. package/src/storage/merge.ts +1 -1
  45. package/src/templates/welcome.ts +0 -1
  46. package/tui/README.md +5 -2
  47. package/tui/src/commands/editor.tsx +0 -1
  48. package/tui/src/commands/persona.tsx +89 -3
  49. package/tui/src/commands/reflect.tsx +375 -0
  50. package/tui/src/commands/registry.ts +2 -0
  51. package/tui/src/components/CYPTreeOverlay.tsx +0 -2
  52. package/tui/src/components/MAPScoreOverlay.tsx +1 -1
  53. package/tui/src/components/MessageList.tsx +8 -10
  54. package/tui/src/components/PromptInput.tsx +3 -1
  55. package/tui/src/components/RoomMessageList.tsx +5 -8
  56. package/tui/src/components/Sidebar.tsx +3 -5
  57. package/tui/src/components/StatusBar.tsx +26 -14
  58. package/tui/src/context/keyboard.tsx +2 -2
  59. package/tui/src/util/cyp-editor.tsx +2 -6
  60. package/tui/src/util/yaml-context.ts +2 -6
  61. package/tui/src/util/yaml-persona.ts +3 -3
  62. package/tui/src/util/yaml-settings.ts +0 -3
@@ -14,7 +14,6 @@ interface EditableSettingsData {
14
14
  default_model?: string | null;
15
15
  oneshot_model?: string | null;
16
16
  rewrite_model?: string | null;
17
- time_mode?: "24h" | "12h" | "local" | "utc" | null;
18
17
  name_display?: string | null;
19
18
  default_heartbeat_ms?: string | null;
20
19
  default_context_window_hours?: number | null;
@@ -64,7 +63,6 @@ export function settingsToYAML(settings: HumanSettings | undefined, accounts: Pr
64
63
  default_model: guidToDisplay(settings?.default_model),
65
64
  oneshot_model: guidToDisplay(settings?.oneshot_model),
66
65
  rewrite_model: guidToDisplay(settings?.rewrite_model),
67
- time_mode: settings?.time_mode ?? null,
68
66
  name_display: settings?.name_display ?? null,
69
67
  default_heartbeat_ms: formatDuration(settings?.default_heartbeat_ms ?? 1800000),
70
68
  default_context_window_hours: settings?.default_context_window_hours ?? 8,
@@ -190,7 +188,6 @@ export function settingsFromYAML(yamlContent: string, original: HumanSettings |
190
188
  default_model: displayToGuid(data.default_model),
191
189
  oneshot_model: displayToGuid(data.oneshot_model),
192
190
  rewrite_model: displayToGuid(data.rewrite_model),
193
- time_mode: nullToUndefined(data.time_mode),
194
191
  name_display: nullToUndefined(data.name_display),
195
192
  default_heartbeat_ms: parseMsDuration(data.default_heartbeat_ms, 1800000),
196
193
  default_context_window_hours: nullToUndefined(data.default_context_window_hours),