@useavalon/caelence-agent 0.2.3-canary.0 → 0.2.3-canary.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.
Files changed (67) hide show
  1. package/README.md +7 -0
  2. package/desktop/src/App.tsx +9 -2919
  3. package/desktop/src/BubbleClip.tsx +1 -1
  4. package/desktop/src/ComposerAttach.tsx +2 -2
  5. package/desktop/src/DeskBoot.tsx +28 -0
  6. package/desktop/src/DeskChrome.tsx +360 -0
  7. package/desktop/src/DeskComposer.tsx +311 -0
  8. package/desktop/src/DeskSidebar.tsx +191 -0
  9. package/desktop/src/FilesPanel.tsx +104 -36
  10. package/desktop/src/FloatNotice.test.ts +12 -0
  11. package/desktop/src/FloatNotice.tsx +5 -2
  12. package/desktop/src/IntegrationsPanel.tsx +273 -0
  13. package/desktop/src/McpPanel.tsx +8 -8
  14. package/desktop/src/MemoryPanel.tsx +138 -0
  15. package/desktop/src/QueuePanel.tsx +123 -0
  16. package/desktop/src/SessionsPanel.tsx +174 -0
  17. package/desktop/src/SettingsPanel.tsx +181 -0
  18. package/desktop/src/SkillsPanel.tsx +28 -12
  19. package/desktop/src/TranscriptViews.tsx +637 -0
  20. package/desktop/src/api.ts +36 -0
  21. package/desktop/src/app.css +159 -11
  22. package/desktop/src/composer-files.ts +2 -2
  23. package/desktop/src/desk-keys.ts +45 -0
  24. package/desktop/src/desk-prefs.ts +29 -0
  25. package/desktop/src/desk-types.ts +92 -0
  26. package/desktop/src/desktop-turn.ts +271 -0
  27. package/desktop/src/preview-render.ts +322 -36
  28. package/desktop/src/queue.ts +1 -1
  29. package/desktop/src/session-search.test.ts +20 -0
  30. package/desktop/src/session-search.ts +13 -0
  31. package/desktop/src/session-select.test.ts +23 -0
  32. package/desktop/src/session-select.ts +32 -0
  33. package/desktop/src/useDeskDictation.ts +123 -0
  34. package/desktop/src/useDeskFiles.ts +180 -0
  35. package/desktop/src/useDeskNotice.ts +20 -0
  36. package/desktop/src/useDeskPicker.ts +189 -0
  37. package/desktop/src/useDeskPrefs.ts +30 -0
  38. package/desktop/src/useDeskRuntime.ts +109 -0
  39. package/desktop/src/useDeskSessions.ts +195 -0
  40. package/desktop/src/useDeskSlash.ts +31 -0
  41. package/desktop/src/useDeskTurns.ts +264 -0
  42. package/desktop/src/useDesktopApp.ts +286 -0
  43. package/desktop/src/user-display.ts +2 -2
  44. package/package.json +2 -2
  45. package/src/cli/openrouter-live.ts +30 -21
  46. package/src/cli/slash-dispatch.test.ts +25 -0
  47. package/src/cli/slash-dispatch.ts +41 -0
  48. package/src/cli/slash.ts +1 -0
  49. package/src/config.ts +10 -1
  50. package/src/core/run-turn.test.ts +3 -0
  51. package/src/core/run-turn.ts +74 -41
  52. package/src/desktop/bridge.test.ts +43 -0
  53. package/src/desktop/bridge.ts +91 -19
  54. package/src/desktop/uploads.test.ts +6 -0
  55. package/src/desktop/uploads.ts +178 -66
  56. package/src/index.ts +13 -0
  57. package/src/integrations/remote-mcp.ts +51 -21
  58. package/src/memory/extract.test.ts +81 -0
  59. package/src/memory/extract.ts +88 -0
  60. package/src/memory/prefs.test.ts +53 -0
  61. package/src/memory/prefs.ts +47 -0
  62. package/src/memory/prompt.ts +24 -0
  63. package/src/memory/store.test.ts +191 -0
  64. package/src/memory/store.ts +382 -0
  65. package/src/runtime.test.ts +37 -0
  66. package/src/runtime.ts +29 -1
  67. package/src/tools/local.ts +86 -39
package/README.md CHANGED
@@ -66,6 +66,8 @@ export default {
66
66
  | `AGENTS.md` | Project instructions |
67
67
  | `~/.harness/AGENTS.md` | User instructions for every project |
68
68
  | `.harness/sessions/` | Session logs |
69
+ | `~/.harness/memory/` | User memory facts, if enabled |
70
+ | `.harness/memory/` | Project memory facts, if enabled |
69
71
  | `~/.harness/integrations.json` | Connected hosted MCP servers |
70
72
 
71
73
  The desktop stores the OpenRouter key in `~/.harness`. The terminal UI reads `OPENROUTER_API_KEY`, and optionally `OPENROUTER_MODEL` and `OPENROUTER_BASE_URL`.
@@ -112,6 +114,7 @@ In the desktop and the terminal UI, `/` opens slash commands, and Tab completes
112
114
  /model pick a model
113
115
  /mode ask, plan, or agent
114
116
  /compact summarize earlier turns
117
+ /memory remember across chats
115
118
  /image [prompt] generate an image
116
119
  /video [prompt] generate a clip
117
120
  /transcribe speech to text model
@@ -164,6 +167,10 @@ Each connection is stored in `~/.harness/integrations.json`, and disconnecting r
164
167
 
165
168
  Start in `ask`, `plan`, or `agent` with `/mode`, which changes which tools are available. `exec` and `git_commit` prompt for approval by default (`prompt`), and `auto` still refuses destructive commands. Local exec is the host machine rather than a sandbox.
166
169
 
170
+ ## Memory
171
+
172
+ Turn it on from the Memory tab or `/memory on` if you want later chats to keep prefs and project decisions. After a turn the model adds a few of those to `~/.harness/memory` and `.harness/memory`, and the next session only sees the ones that fit what you asked. `/memory` lists them, `/memory delete 1` removes a line, and `/memory pin 1` copies it into `AGENTS.md`.
173
+
167
174
  ## Library
168
175
 
169
176
  The desktop, the terminal UI, and `caelence chat -m` all call `createHarness`, so you can drive the same runtime from a bot, a script, or another host UI.