somora 2026.930.4 → 2026.1001.3

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 (115) hide show
  1. package/README.md +6 -0
  2. package/config.example.yaml +18 -4
  3. package/docs/api.md +16 -8
  4. package/docs/builder.md +2 -2
  5. package/docs/dream-phases.md +1 -1
  6. package/docs/mcp.md +1 -1
  7. package/docs/memory.md +56 -4
  8. package/docs/projects.md +7 -7
  9. package/docs/setup.md +53 -5
  10. package/docs/team.md +1 -1
  11. package/docs/tools.md +1 -1
  12. package/docs/wiki.md +5 -5
  13. package/npm-shrinkwrap.json +2 -2
  14. package/package.json +1 -1
  15. package/src/browser/service.ts +8 -8
  16. package/src/cli/resolvers/clawhub.ts +1 -1
  17. package/src/cli/skill.ts +1 -1
  18. package/src/cli/somora.ts +56 -0
  19. package/src/cli/tui/turn-views.tsx +4 -4
  20. package/src/config/loader.ts +7 -3
  21. package/src/config/reload.ts +1 -0
  22. package/src/config/types.ts +56 -15
  23. package/src/dream/deep-actions.ts +1 -1
  24. package/src/dream/deep-prompts.ts +8 -8
  25. package/src/dream/deep-runner.ts +1 -1
  26. package/src/dream/lucid-storage.ts +2 -2
  27. package/src/dream/lucid-structure.ts +1 -1
  28. package/src/dream/lucid-worker.ts +1 -1
  29. package/src/dream/rem-dedup.ts +5 -5
  30. package/src/dream/rem-extract.ts +4 -4
  31. package/src/dream/rem-runner.ts +1 -1
  32. package/src/dream/wiki-context.ts +1 -1
  33. package/src/engine/a2a.ts +2 -2
  34. package/src/engine/claude-cli.ts +6 -6
  35. package/src/engine/model-availability.ts +2 -2
  36. package/src/engine/openai-compatible.ts +2 -2
  37. package/src/engine/types.ts +1 -1
  38. package/src/imagegen/aspect.ts +1 -1
  39. package/src/imagegen/types.ts +1 -1
  40. package/src/mcp/hub/bridge.ts +1 -1
  41. package/src/mcp/hub/manager.ts +1 -1
  42. package/src/mcp/server.ts +1 -1
  43. package/src/mcp/tool-schema.ts +2 -2
  44. package/src/media/capabilities.ts +1 -1
  45. package/src/memory/inject.ts +1 -1
  46. package/src/memory/manager.ts +5 -2
  47. package/src/memory/rescan.ts +1 -1
  48. package/src/memory/retrieval.ts +74 -6
  49. package/src/memory/shared-index.ts +1 -1
  50. package/src/memory/slug.ts +1 -1
  51. package/src/memory/storage.ts +1 -1
  52. package/src/persona/loader.ts +1 -1
  53. package/src/server/ask-wait-graph.ts +2 -2
  54. package/src/server/builder-prompt.ts +1 -1
  55. package/src/server/builder-session.ts +1 -1
  56. package/src/server/claude-credential-sync.ts +1 -1
  57. package/src/server/env-file.ts +3 -3
  58. package/src/server/heal-session.ts +1 -1
  59. package/src/server/index.ts +28 -9
  60. package/src/server/logger.ts +1 -1
  61. package/src/server/logs.ts +1 -1
  62. package/src/server/run-turn-types.ts +1 -1
  63. package/src/server/run-turn.ts +3 -3
  64. package/src/server/sanitize-assistant-text.ts +2 -2
  65. package/src/server/session-queue.ts +1 -1
  66. package/src/server/start-turn.ts +1 -1
  67. package/src/server/update-check.ts +202 -0
  68. package/src/server/work-ledger.ts +16 -16
  69. package/src/skills/bin-checks.ts +1 -1
  70. package/src/skills/env-scope.ts +2 -2
  71. package/src/skills/gating.ts +1 -1
  72. package/src/skills/lint.ts +1 -1
  73. package/src/skills/path-helpers.ts +2 -2
  74. package/src/ssh/exec.ts +1 -1
  75. package/src/testing/isolated-home.mts +1 -1
  76. package/src/tmux/attention.ts +1 -1
  77. package/src/tools/agents/ask.ts +3 -3
  78. package/src/tools/agents/images.ts +1 -1
  79. package/src/tools/agents/session-model.ts +2 -2
  80. package/src/tools/browser/tools.ts +1 -1
  81. package/src/tools/exec/allowlist.ts +2 -2
  82. package/src/tools/exec/blacklist.ts +5 -5
  83. package/src/tools/exec/internal-env.ts +1 -1
  84. package/src/tools/exec/local.ts +1 -1
  85. package/src/tools/exec/remote.ts +1 -1
  86. package/src/tools/file/analyze.ts +1 -1
  87. package/src/tools/file/local.ts +1 -1
  88. package/src/tools/file/persona-guard.ts +1 -1
  89. package/src/tools/file/remote.ts +1 -1
  90. package/src/tools/image/tools.ts +1 -1
  91. package/src/tools/memory/tools.ts +4 -1
  92. package/src/tools/sentinel/tools.ts +1 -1
  93. package/src/tools/skill/tools.ts +2 -2
  94. package/src/tools/tmux/tools.ts +1 -1
  95. package/src/types/events.ts +1 -1
  96. package/src/voice/realtime/call.ts +15 -15
  97. package/src/voice/realtime/consult.ts +5 -5
  98. package/src/voice/realtime/manager.ts +2 -2
  99. package/src/voice/realtime/openai-provider.ts +4 -4
  100. package/src/voice/realtime/persona.ts +6 -6
  101. package/src/voice/realtime/session-match.ts +4 -4
  102. package/src/wiki/explorer.ts +3 -3
  103. package/src/wiki/language.ts +4 -4
  104. package/src/wiki/log-builder.ts +1 -1
  105. package/src/wiki/map.ts +6 -6
  106. package/src/wiki/migration/analyze.ts +4 -4
  107. package/src/wiki/migration/refine.ts +1 -1
  108. package/src/wiki/taxonomy.ts +1 -1
  109. package/web/dist/assets/index-BA5mmiV0.css +32 -0
  110. package/web/dist/assets/{index-BaVv6pB2.js → index-CrkkIfd9.js} +42 -42
  111. package/web/dist/assets/index-CrkkIfd9.js.map +1 -0
  112. package/web/dist/index.html +2 -2
  113. package/web-mobile/dist/assets/index-X_vRr6cd.js.map +1 -1
  114. package/web/dist/assets/index-BaVv6pB2.js.map +0 -1
  115. package/web/dist/assets/index-V3FV3Z25.css +0 -32
package/README.md CHANGED
@@ -164,6 +164,12 @@ recall; **Tailscale** for HTTPS to the web and mobile clients
164
164
  clipboard APIs); **ripgrep** for `file_search`; **Chromium or Chrome** for
165
165
  the shared browser.
166
166
 
167
+ somora makes one request of its own: once a day it asks somora.ai
168
+ whether a newer version exists (version, OS, Node version and CPU in the
169
+ User-Agent, nothing else; somora.ai counts installations from its
170
+ server log). `DO_NOT_TRACK=1` or `updateCheck.enabled: false` switches it
171
+ off — [docs/setup.md → The daily update check](docs/setup.md#the-daily-update-check--what-somoraai-sees).
172
+
167
173
  [docs/setup.md](docs/setup.md) is the full install walkthrough,
168
174
  [docs/models.md](docs/models.md) lists the models known to run with somora
169
175
  and their tested config blocks.
@@ -368,7 +368,7 @@ providers:
368
368
  # idleStopMinutes: 30 # stop an unused browser; logins stay
369
369
  # viewport: { width: 1280, height: 800 }
370
370
  # allowPrivate: [] # LAN hosts/CIDRs agents may open,
371
- # # e.g. ["192.168.1.0/24", "nas.local"]
371
+ # # e.g. ["192.0.2.0/24", "nas.local"]
372
372
  # deny: [] # hostnames never opened, e.g. ["*.bank.at"]
373
373
  # profiles: {} # shared profiles: { firma: { agents: [a, b] } }
374
374
 
@@ -430,7 +430,7 @@ providers:
430
430
  # the agent knows which paths matter for this conversation.
431
431
  #
432
432
  # `entities` is a CONTROLLED VOCABULARY — projects belong to one
433
- # entity (e.g. "privat", "enovom"), and the agent picks FROM this list
433
+ # entity (e.g. "privat", "acme"), and the agent picks FROM this list
434
434
  # at create time. Prevents STT mishearings from inventing phantom
435
435
  # entities ("enofhom" silently becoming a new category). Only edited
436
436
  # here — agents cannot extend it via tools.
@@ -439,8 +439,8 @@ providers:
439
439
  # entities:
440
440
  # - slug: privat
441
441
  # label: Privat
442
- # - slug: enovom
443
- # label: enovom GmbH
442
+ # - slug: acme
443
+ # label: acme GmbH
444
444
  # - slug: firma2
445
445
  # label: Firma Zwei
446
446
 
@@ -718,6 +718,20 @@ providers:
718
718
  # vectorWeight: 0.7 # weight of vector similarity in fused score
719
719
  # bm25Weight: 0.3 # weight of BM25/FTS5 in fused score
720
720
  # slugMatchBoost: 1.5 # page whose slug names a query word (1 = off); all searches
721
+ # slugFullNameBoost: 1.5 # extra when the query names the page in full (1 = off)
722
+ # logDemotion: 0.5 # wiki/logs/* rank behind the pages they point at (1 = off);
723
+ # # lifted for questions about a month / what changed / when
724
+ # pageSupport: 0.3 # a page matching in several sections gains support (0 = off)
725
+
726
+ # The daily update check — the one request somora makes on its own:
727
+ # once a day GET https://somora.ai/api/latest-version with the version,
728
+ # OS, Node version and CPU in the User-Agent, nothing else. somora.ai
729
+ # logs the request with its IP address and counts installations from
730
+ # that (docs/setup.md → "The daily update check"). DO_NOT_TRACK=1 or a
731
+ # CI variable in the environment switch it off as well.
732
+ # updateCheck:
733
+ # enabled: true
734
+ # endpoint: https://somora.ai/api/latest-version # a mirror of your own
721
735
 
722
736
  # Obsidian vault + wiki layer (docs/wiki.md, docs/dream-phases.md).
723
737
  # The vault is read as a recall source for every agent; the wiki is a
package/docs/api.md CHANGED
@@ -62,9 +62,9 @@ it on Tailscale or on `127.0.0.1` and tunnel.
62
62
 
63
63
  ## Versioning & stability
64
64
 
65
- - The version returned by `GET /version` is a calendar version like
66
- `2026.05.12.3`. somora doesn't follow semver; minor bumps within
67
- the same day are common during active work.
65
+ - The version returned by `GET /version` is calendar-based and valid
66
+ semver: `2026.1001.2` is the second build of 1 October 2026. Several
67
+ builds a day are common during active work.
68
68
  - Most endpoints listed here are stable — the TUI and web both use
69
69
  them, and breaking them would break the shipped clients.
70
70
  - Endpoints marked **⚠ experimental** may change shape in any bump.
@@ -78,13 +78,21 @@ it on Tailscale or on `127.0.0.1` and tunnel.
78
78
 
79
79
  ### `GET /version`
80
80
 
81
- Returns the running somora version.
81
+ Returns the running somora version and, once the daily update check has
82
+ answered, what somora.ai says is current ([setup.md → The daily update
83
+ check](setup.md#the-daily-update-check--what-somoraai-sees)).
82
84
 
83
85
  ```bash
84
86
  curl https://<host>:18737/version
85
- # { "version": "2026.05.12.3" }
87
+ # { "version": "2026.1001.2", "update": null }
88
+ # { "version": "2026.1001.2",
89
+ # "update": { "latestVersion": "2026.1005.1", "available": true, "note": "update Node first" } }
86
90
  ```
87
91
 
92
+ `update` is `null` until the first check has run (or when it is switched
93
+ off); `available` is true when `latestVersion` is newer than `version`;
94
+ `note` is optional.
95
+
88
96
  ### `GET /healthz`
89
97
 
90
98
  Liveness probe. Returns the plain-text `ok` with status 200. Use it
@@ -2061,8 +2069,8 @@ search, block budget) without running a turn. Body:
2061
2069
  {
2062
2070
  "text": "und wer gehört sonst noch zur familie?",
2063
2071
  "history": [
2064
- { "kind": "user_message", "text": "was kannst du mir über walter erzählen?" },
2065
- { "kind": "assistant_message", "text": "Walter ist …" }
2072
+ { "kind": "user_message", "text": "was kannst du mir über karl erzählen?" },
2073
+ { "kind": "assistant_message", "text": "Karl ist …" }
2066
2074
  ],
2067
2075
  "autoInject": { "historyWeight": 0.4 }
2068
2076
  }
@@ -2403,7 +2411,7 @@ The controlled entity vocabulary from `config.projects.entities`.
2403
2411
  {
2404
2412
  "entities": [
2405
2413
  { "slug": "privat", "label": "Privat" },
2406
- { "slug": "enovom", "label": "enovom GmbH" }
2414
+ { "slug": "acme", "label": "acme GmbH" }
2407
2415
  ]
2408
2416
  }
2409
2417
  ```
package/docs/builder.md CHANGED
@@ -23,7 +23,7 @@ a builder never becomes a chat agent: the files differ (a builder has no
23
23
  ```
24
24
 
25
25
  ```yaml
26
- # ~/.somora/agents/rudi/agent.yaml
26
+ # ~/.somora/agents/dan/agent.yaml
27
27
  kind: builder
28
28
  model: deepseek # any configured alias; local models work well here
29
29
  workspace:
@@ -40,7 +40,7 @@ steering: true # a message typed while it works goes INTO the turn
40
40
 
41
41
  ```markdown
42
42
  ---
43
- name: rudi
43
+ name: dan
44
44
  description: Builds and changes software in the repository it is pointed at.
45
45
  role: builder
46
46
  icon: 🔨
@@ -551,7 +551,7 @@ as one line each, not the whole `index.md`. Then a final
551
551
  cross-folder pass looks across folders — but it sees only the opening
552
552
  line of each page. That is enough for a dead link or a missing page
553
553
  that spans folders; a contradiction between the body of
554
- `personen/jane-doe` and the body of `projekte/familie-luca-podcast` is
554
+ `personen/jane-doe` and the body of `projekte/familie-leo-podcast` is
555
555
  out of its sight.
556
556
 
557
557
  The size limit is not only for scale — claude-cli's stdin-stream
package/docs/mcp.md CHANGED
@@ -326,7 +326,7 @@ when something differs); the bridge registers a changed tool anew
326
326
 
327
327
  somora's own tools, when they run through the MCP child (claude-cli,
328
328
  codex-cli), refuse a call with a parameter the tool does not know —
329
- `exec({resource: "cerebro"})` instead of `target` fails with an input
329
+ `exec({resource: "gpu-box"})` instead of `target` fails with an input
330
330
  validation error naming `resource`, instead of silently dropping it and
331
331
  running on the local host. Bridged tools of other MCP servers keep
332
332
  taking whatever the model sends; validation is that server's job.
package/docs/memory.md CHANGED
@@ -193,6 +193,9 @@ memory:
193
193
  vectorWeight: 0.7
194
194
  bm25Weight: 0.3
195
195
  slugMatchBoost: 1.5 # page whose slug names a query word (1 = off)
196
+ slugFullNameBoost: 1.5 # … and extra when the query names the page in full (1 = off)
197
+ logDemotion: 0.5 # the wiki's monthly change logs rank behind the pages (1 = off)
198
+ pageSupport: 0.3 # a page matching in several sections gains support (0 = off)
196
199
  ```
197
200
 
198
201
  **How the query is built.** The current message is the query. The
@@ -215,20 +218,69 @@ a short question. Refinements, measured on replayed real sessions:
215
218
  question names outright is never pushed down by the history; a
216
219
  follow-up without a topic word still finds its page through the
217
220
  history.
218
- - For a one- or two-word question ("wer ist walter?") the exact word
221
+ - For a one- or two-word question ("wer ist karl?") the exact word
219
222
  match is the question, so BM25 gets `shortQueryBm25Weight` of the
220
223
  fusion instead of the hybrid default.
221
224
  - `hybrid.slugMatchBoost` (all searches, not only auto-inject): a chunk
222
225
  whose slug contains a content word of the query is multiplied. The
223
- page ABOUT a person or thing rarely repeats its own name — the Walter
224
- page says "Walter" once, the family page four times — so BM25 alone
226
+ page ABOUT a person or thing rarely repeats its own name — the Karl
227
+ page says "Karl" once, the family page four times — so BM25 alone
225
228
  ranks the mentions above the page; the name in the slug marks the
226
229
  canonical page.
227
230
 
231
+ ### Which page wins — the three rules after the fusion
232
+
233
+ Measured on 26 real questions against a 400-page wiki (2026-10-01; the
234
+ report that started it: an agent asked "how did we set up acme.com on
235
+ dmz-host?", the project page came 7th behind the change log and
236
+ four neighbouring pages, and the agent answered that it knew nothing).
237
+ With all three rules the page is 2nd, the other 25 questions are as
238
+ good or better, and the questions that ARE about the log still find it.
239
+
240
+ - **`logDemotion` (default 0.5)** — Deep writes a monthly change log
241
+ (`logs/2026-09`): one dense line per page it created or changed, every
242
+ keyword of the topic. For "how did we set up X" that line is a pointer;
243
+ the page about X is the answer. Hits in `logs/` are multiplied by this
244
+ factor — *unless the question is about the chronicle*: a month name
245
+ (`september`, `march`), a year or `2026-09`, or a word like *changed*,
246
+ *when*, *promoted*, *created*, *log* in the question switches the
247
+ demotion off, so "what changed in September?" and "when was the page
248
+ created?" keep the log on top. Set `1` to rank logs like any page; a
249
+ lower value (`0.3`) if your logs keep winning on questions about the
250
+ thing itself — check with `memory_search` before and after.
251
+ - **`pageSupport` (default 0.3)** — hits are chunks, not pages. A project
252
+ page answers "how did we set it up" across several sections (DNS,
253
+ deployment, timeline), each matching only part of the question, while
254
+ a page with one dense paragraph scores higher on that paragraph. The
255
+ page's best chunk gains this share of the scores of its next two
256
+ chunks, counting only chunks that reach half of the best one — so a
257
+ page that mentions every word somewhere does not outgrow a single
258
+ exact note. Raise it (`0.5`) when long pages keep losing to short
259
+ mentions; lower it (`0.1`) or `0` when short memory notes lose to long
260
+ wiki pages. Measured: `0.3` lifted the project page from unranked to
261
+ 2nd and cost one memory note one rank; `0.5` cost three.
262
+ - **`slugFullNameBoost` (default 1.5)** — `slugMatchBoost` fires for any
263
+ page whose name shares a word with the question, so "acme website
264
+ dmz-host setup" boosts `projekte/acme-website` and
265
+ `infrastruktur/hosts/dmz-host-vm` alike. When the question
266
+ contains *every* word of a page's name (two words or more), that page
267
+ is multiplied again — the question means that page. A tried
268
+ alternative, scaling the boost by the share of name words matched,
269
+ made longer names lose to shorter ones (`elevenlabs-agents-preise`
270
+ behind `elevenlabs-agents` for "wie teuer sind elevenlabs agents") and
271
+ was dropped.
272
+
273
+ None of the three changes what is indexed; they only reorder hits, so a
274
+ new value takes effect at the next search (config reload or restart).
275
+ When you tune them, keep a handful of your own questions with the page
276
+ you expect and compare ranks before and after — the ranking is
277
+ sensitive to wording, and a value that fixes one question can cost
278
+ another.
279
+
228
280
  The BM25 side sees the message only, with filler words removed
229
281
  (`FTS_STOPWORDS` in `src/memory/retrieval.ts`, German and English) —
230
282
  otherwise every page that says "was", "du" and "so" a lot outranked
231
- the one page that says "walter". `POST /agents/<name>/memory/recall-preview`
283
+ the one page that says "karl". `POST /agents/<name>/memory/recall-preview`
232
284
  runs exactly this path for a message plus a supplied history, which is
233
285
  how recall tuning is measured ([api.md](api.md#post-agentsagentmemoryrecall-preview)).
234
286
 
package/docs/projects.md CHANGED
@@ -68,8 +68,8 @@ projects:
68
68
  entities:
69
69
  - slug: privat
70
70
  label: Privat
71
- - slug: enovom
72
- label: enovom GmbH
71
+ - slug: acme
72
+ label: acme GmbH
73
73
  # add as many as you need — these are YOURS to curate
74
74
  ```
75
75
 
@@ -80,7 +80,7 @@ systemctl --user restart somora
80
80
  ```
81
81
 
82
82
  `entities` is a **controlled vocabulary** — projects belong to one
83
- entity (e.g. "Privat" or "enovom"), and the agent must pick from this
83
+ entity (e.g. "Privat" or "acme"), and the agent must pick from this
84
84
  list at create time. See [Entities](#entities--the-controlled-vocabulary)
85
85
  below for why this matters.
86
86
 
@@ -98,7 +98,7 @@ changes.
98
98
  └── projects/
99
99
  ├── heimkino.md
100
100
  ├── steuern-2025.md
101
- ├── enovom-website.md
101
+ ├── acme-website.md
102
102
  └── ...
103
103
  ```
104
104
 
@@ -147,13 +147,13 @@ must match one of the entries you configured in
147
147
  tools — only you can, by editing `config.yaml`.
148
148
 
149
149
  This is the **voice-input safety net**: when you say something like
150
- "create a new project Heimkino as an enovom project" and the
150
+ "create a new project Heimkino as an acme project" and the
151
151
  transcription comes back fuzzy ("enofhom" because the mic didn't
152
152
  hear clearly), the agent calls `entity_list` first, sees the actual
153
- options (`privat`, `enovom`, `firma2`, …), and picks the closest
153
+ options (`privat`, `acme`, `firma2`, …), and picks the closest
154
154
  match instead of inventing a new phantom category. If it does call
155
155
  `project_create` with the misspelled slug anyway, the tool rejects
156
- with `unknown entity 'enofhom' — available: privat, enovom, firma2`
156
+ with `unknown entity 'enofhom' — available: privat, acme, firma2`
157
157
  so the agent retries.
158
158
 
159
159
  Entities also give you a free filter axis. `project_list({entity:
package/docs/setup.md CHANGED
@@ -789,7 +789,7 @@ memory:
789
789
  # docs/projects.md for the full model.
790
790
  #
791
791
  # `entities` is a CURATED VOCABULARY — projects belong to one entity
792
- # (e.g. "privat", "enovom"), and the agent must pick from this list
792
+ # (e.g. "privat", "acme"), and the agent must pick from this list
793
793
  # at create time. Prevents STT mishearings from inventing phantom
794
794
  # entities and gives you a free filter axis ("list all private
795
795
  # projects"). Agents cannot extend this list via tools.
@@ -798,8 +798,8 @@ memory:
798
798
  # entities:
799
799
  # - slug: privat
800
800
  # label: Privat
801
- # - slug: enovom
802
- # label: enovom GmbH
801
+ # - slug: acme
802
+ # label: acme GmbH
803
803
  # # add as many as you need — these are YOURS to curate
804
804
  ```
805
805
 
@@ -916,6 +916,54 @@ auto-cleanup entirely (manual `sentinel delete` only). Recurring
916
916
  triggers don't auto-GC — they end up in `paused` or `error` and you
917
917
  choose when to remove them.
918
918
 
919
+ ## The daily update check — what somora.ai sees
920
+
921
+ somora runs on your machine and talks to the model providers you
922
+ configured. There is exactly one request it makes on its own: once a
923
+ day the server asks somora.ai whether a newer version exists, and the
924
+ answer shows up as an update notice in the web client's taskbar, in
925
+ `somora server status` and in the server log (`update.available`).
926
+ `somora update` itself keeps using npm.
927
+
928
+ ```http
929
+ GET https://somora.ai/api/latest-version
930
+ User-Agent: somora/2026.1001.2 (linux; node/22.23.2; x64; server)
931
+ ```
932
+
933
+ That is the whole request: no body, no install identifier, no machine
934
+ id, no random token — the version, operating system, Node.js version,
935
+ CPU and whether the server or the CLI asked. The answer is
936
+ `{"version": "…", "note": "…"}`; the note is an optional sentence from
937
+ us to everyone ("update Node first"), at most 500 characters.
938
+
939
+ **What we do with it.** Like any web server, somora.ai logs the request
940
+ together with its IP address and the approximate location Cloudflare
941
+ derives from it (country, region, city). From those logs we count how
942
+ many installations ask — per day, per version, per operating system —
943
+ to know whether the project is used and what to test on. The raw logs
944
+ are deleted after 90 days, daily totals are kept, nothing is published
945
+ and nothing is passed on. Counting by IP address is approximate by
946
+ nature: two instances behind one router look alike, and many home
947
+ connections change their address.
948
+
949
+ **Switching it off.** Any of these stops the request entirely:
950
+
951
+ - `DO_NOT_TRACK=1` in the service's environment (the common
952
+ convention), or
953
+ - `updateCheck.enabled: false` in `config.yaml`, or
954
+ - a `CI` variable in the environment — a test pipeline is not an
955
+ installation.
956
+
957
+ `somora telemetry show` prints the request as it would be sent, why the
958
+ check is on or off, and when it last ran. `updateCheck.endpoint` points
959
+ the check at a mirror of your own. The last answer lives in
960
+ `~/.somora/update-check.json`.
961
+
962
+ The first check runs one to six minutes after the server starts (a
963
+ random delay, so a fleet restarting together does not knock in unison);
964
+ after a success the next one is a day later, after a failure an hour
965
+ later. A failed check never affects anything else.
966
+
919
967
  ## HTTPS (Tailscale) — required for the web client at scale
920
968
 
921
969
  The web client opens **one persistent SSE connection per chat window**.
@@ -1205,8 +1253,8 @@ Other useful scripts:
1205
1253
  | Command | What |
1206
1254
  |---|---|
1207
1255
  | `npm run typecheck` | server-side `tsc --noEmit` |
1208
- | `npm test` | every `*.test.mts`, each against a throwaway `SOMORA_HOME` |
1209
- | `npm test src/browser` | one subtree, same isolation |
1256
+ | `npm test` | every `*.test.mts` under `src/`, `web/src` and `web-mobile/src`, each against a throwaway `SOMORA_HOME`; the web clients run from their own folders so their JSX compiles with their own tsconfig |
1257
+ | `npm test src/browser` | one subtree, same isolation (`npm test web/src/lib` for the web client) |
1210
1258
  | `npm run verify:fast` | typecheck plus the suite |
1211
1259
  | `cd web && npm run dev` | Vite dev server for the web client (proxies API to `:18737`) |
1212
1260
  | `cd web && npm run build` | rebuild `web/dist/` (the bundle the production server serves at `/web/`) |
package/docs/team.md CHANGED
@@ -141,7 +141,7 @@ turns carry the same block as the agent's normal sessions.
141
141
 
142
142
  Every framework we looked at routes on one short description per
143
143
  colleague, and so does every model: write **triggers**, not résumés —
144
- `library docs and framework comparisons`, not `Lisa is an experienced
144
+ `library docs and framework comparisons`, not `Bea is an experienced
145
145
  researcher with a journalist's mindset`. Character and voice belong in
146
146
  that agent's own persona. Keep the block short: every agent loads it in
147
147
  every turn, and `somora team check` (and the web preview) warn above
package/docs/tools.md CHANGED
@@ -11,7 +11,7 @@ path it's on.
11
11
 
12
12
  | Toolset | Tools | Purpose |
13
13
  |---|---|---|
14
- | `memory` | `memory_search`, `memory_get`, `memory_list`, `memory_write`, `memory_edit`, `memory_delete` | Read/write across the three layers — agent memory inbox, shared wiki, read-only vault. Hybrid retrieval (vector + BM25) with per-source boost; filler words are dropped from the keyword side and a page whose slug names a query word is lifted, so `memory_search "walter"` finds the page about Walter, not the pages that mention him most (see `memory.md`). |
14
+ | `memory` | `memory_search`, `memory_get`, `memory_list`, `memory_write`, `memory_edit`, `memory_delete` | Read/write across the three layers — agent memory inbox, shared wiki, read-only vault. Hybrid retrieval (vector + BM25) with per-source boost; filler words are dropped from the keyword side and a page whose slug names a query word is lifted, so `memory_search "karl"` finds the page about Karl, not the pages that mention him most (see `memory.md`). |
15
15
  | `dream` | `dream_list`, `dream_get`, `dream_apply`, `dream_dismiss`, `dream_run`, `dream_review` | Inspect findings from REM (per-agent) and Lucid (platform-wide); trigger Deep/Lucid via `dream_run({phase: 'deep'\|'lucid'})`. `dream_review({dream_id, action:'start'\|'end'})` opens/closes a conversational wiki-edit loop for a Lucid run. See `dream-phases.md`. |
16
16
  | `wiki` | `wiki_edit`, `wiki_create`, `wiki_delete`, `wiki_move` | Loop-scoped wiki write tools. Only exposed to the agent currently holding the active `dream_review` loop; otherwise hidden. `wiki_edit` mutates body and/or `related:`/`sources:` frontmatter; `wiki_move` moves or renames a page into a folder the wiki map lists and rewrites every `[[link]]` to it. A per-turn cap on wiki_* calls (`wiki.lucid.maxCallsPerTurn`, default 3) keeps the model from batch-editing without user check-in. See `dream-phases.md`. |
17
17
  | `time` | `time_now` | Current date/time/timezone — model never hallucinates "today". |
package/docs/wiki.md CHANGED
@@ -43,7 +43,7 @@ it reads `people/`, `projects/`, `knowledge/`, `places/`.
43
43
  Three reasons memory and wiki need to be separate:
44
44
 
45
45
  **Multi-agent.** Each agent has its own conversation history and its
46
- own atomic observations. But a fact like "Lisa is the user's spouse"
46
+ own atomic observations. But a fact like "Bea is the user's spouse"
47
47
  is not agent-private — it's something every agent should know. The
48
48
  wiki is where shared facts live.
49
49
 
@@ -120,13 +120,13 @@ two dogs. This page bundles the key people …
120
120
 
121
121
  ## Eigenschaften
122
122
 
123
- - **Spouse:** Dr. Lisa Klein (* 03.02.1984)
123
+ - **Spouse:** Dr. Bea Klein (* 03.02.1984)
124
124
  - **Sister:** Eva Klein (* 08.12.1973)
125
125
  - …
126
126
 
127
127
  ## Zeitleiste
128
128
 
129
- - 1941-04-30 — Hans Klein born
129
+ - 1941-04-30 — Ada Klein born
130
130
  - 1973-12-08 — Eva Klein born
131
131
  - …
132
132
 
@@ -165,7 +165,7 @@ shape.
165
165
  ### Wikilinks
166
166
 
167
167
  Use Obsidian's `[[wiki-path]]` syntax for cross-references between
168
- pages. Example: `Lisa ist die [[personen/familie-klein|Ehefrau]]`.
168
+ pages. Example: `Bea ist die [[personen/familie-klein|Ehefrau]]`.
169
169
 
170
170
  Wikilinks are indexed as plain text (the brackets are tokenized away),
171
171
  so a search for `garten` finds pages mentioning `[[orte/garten]]`. They
@@ -271,7 +271,7 @@ twin. Names that already exist in several folders are noted in the
271
271
  structure file for the migration.
272
272
 
273
273
  A page whose name extends an entity page's name — a note filed as
274
- `enovom-kapitalruecklage` while `unternehmen/enovom` exists — is
274
+ `acme-kapitalruecklage` while `unternehmen/acme` exists — is
275
275
  usually a detail of that entity: Deep is asked again with the entity
276
276
  page in full and merges the note into it, unless it insists the page
277
277
  is a thing of its own.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "somora",
3
- "version": "2026.930.4",
3
+ "version": "2026.1001.3",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "somora",
9
- "version": "2026.930.4",
9
+ "version": "2026.1001.3",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@anthropic-ai/claude-agent-sdk": "^0.3.152",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "somora",
3
- "version": "2026.930.4",
3
+ "version": "2026.1001.3",
4
4
  "description": "A self-hosted multi-agent harness: your agents, your models, one server — with memory, a shared wiki, a web desktop, a phone app and a terminal client.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -14,7 +14,7 @@
14
14
  // are refused by `act`.
15
15
  // view = one agent's window on a process (`<browser id>@<agent>`).
16
16
  // A shared profile has ONE process but one view per agent,
17
- // so hans and lisa each get their own window, tabs, control
17
+ // so ada and bea each get their own window, tabs, control
18
18
  // state and handoff (private/browser-design.md §10).
19
19
  // control = per view: agent_control | handoff_requested |
20
20
  // human_control | paused. While a human controls a view,
@@ -697,8 +697,8 @@ export class BrowserService {
697
697
  private tabOf(b: BrowserRec, tabId: string, agent?: string): TabRec {
698
698
  const t = b.tabs.get(tabId);
699
699
  if (!t || t.page.isClosed()) throw new BrowserOpError('BROWSER_TAB_NOT_FOUND', `tab '${tabId}' not found in browser '${b.id}' — op:"tabs" lists the open ones`);
700
- // Tabs belong to one window. In a shared profile that keeps hans out
701
- // of lisa's tabs even though both drive the same Chromium.
700
+ // Tabs belong to one window. In a shared profile that keeps ada out
701
+ // of bea's tabs even though both drive the same Chromium.
702
702
  if (agent && t.agent !== agent) {
703
703
  throw new BrowserOpError('BROWSER_TAB_NOT_FOUND', `tab '${tabId}' belongs to another agent's window on browser '${b.id}' — op:"tabs" lists yours`);
704
704
  }
@@ -1038,8 +1038,8 @@ export class BrowserService {
1038
1038
 
1039
1039
  /**
1040
1040
  * Close this agent's window. The Chromium process only ends when no
1041
- * other agent still has one on it — in a shared profile hans must not
1042
- * pull the browser out from under lisa.
1041
+ * other agent still has one on it — in a shared profile ada must not
1042
+ * pull the browser out from under bea.
1043
1043
  */
1044
1044
  async stop(agent: string): Promise<{ stopped: string | null }> {
1045
1045
  const bs = this.browsersFor(agent).filter((b) => b.views.has(agent));
@@ -1070,8 +1070,8 @@ export class BrowserService {
1070
1070
  // ── UI / control (stage 3 surfaces; HTTP-testable now) ────────────
1071
1071
 
1072
1072
  /**
1073
- * One entry per open window, not per process: in a shared profile hans
1074
- * and lisa are two rows with their own tabs and control state. Stopped
1073
+ * One entry per open window, not per process: in a shared profile ada
1074
+ * and bea are two rows with their own tabs and control state. Stopped
1075
1075
  * browsers are left out the way the tmux list leaves dead sessions out
1076
1076
  * — except one still holding an unanswered handoff, which is the only
1077
1077
  * trail back to that request (private/browser-design.md §10.4).
@@ -1172,7 +1172,7 @@ export class BrowserService {
1172
1172
  this.touch(b);
1173
1173
  // Whom to wake: the requesting agent+session when a handoff was
1174
1174
  // pending; otherwise — only if the human actually did something —
1175
- // the session of the last tab used IN THIS WINDOW (Rene 2026-09-10).
1175
+ // the session of the last tab used IN THIS WINDOW (the operator 2026-09-10).
1176
1176
  let wake: { agent: string; session: string; text: string; prefix: string; viewId: string; cause: 'handoff' | 'activity'; handoffId?: string } | null = null;
1177
1177
  if (handoff) {
1178
1178
  wake = {
@@ -83,7 +83,7 @@ export function isClawHubUrl(url: string): boolean {
83
83
  * is taken by multiple owners (409 AMBIGUOUS_SKILL_SLUG otherwise) —
84
84
  * dropping it from the URL made `somora skill install
85
85
  * https://clawhub.ai/steipete/skills/gog` fail on any contested slug
86
- * (Lucy case study 2026-07-24). Returns null on unrecognized shapes. */
86
+ * (Partner case study 2026-07-24). Returns null on unrecognized shapes. */
87
87
  export function parseClawHubUrl(url: string): { slug: string; owner?: string } | null {
88
88
  let u: URL;
89
89
  try {
package/src/cli/skill.ts CHANGED
@@ -152,7 +152,7 @@ async function cmdCheck(args: string[]): Promise<number> {
152
152
  if (!skill) {
153
153
  // Distinguish "no file on disk" from "file exists but loader rejected".
154
154
  // The bare 'not found' message used to hide parse/schema errors that the
155
- // loader logs as warnings and silently skips (see hans bug 2026-05-11).
155
+ // loader logs as warnings and silently skips (see ada bug 2026-05-11).
156
156
  const skillDir = join(USER_SKILLS_DIR, slug);
157
157
  const skillMdPath = join(skillDir, 'SKILL.md');
158
158
  if (await pathExists(skillMdPath)) {
package/src/cli/somora.ts CHANGED
@@ -24,6 +24,8 @@ import { fileURLToPath } from 'node:url';
24
24
  import { SOMORA_VERSION } from '../version.ts';
25
25
  import { buildSystemdUnit, extractCustomEnvLines, nodePathLine } from './systemd-unit.ts';
26
26
  import { allowScriptsArgs, compareVersions, parseUpdateArgs } from './update-args.ts';
27
+ import { load as parseYaml } from 'js-yaml';
28
+ import { DEFAULT_UPDATE_ENDPOINT, readState, statusFrom, type UpdateCheckStatus } from '../server/update-check.ts';
27
29
  import {
28
30
  LAUNCHD_LABEL, launchdAvailable, launchdLoaded, launchdPid, launchdPlistPath, launchdRestart, launchdStart,
29
31
  launchdStop, nodeDirOnPath, writeLaunchdPlist,
@@ -80,6 +82,7 @@ Usage:
80
82
  what is installed, install with npm into ~/.somora/lsp
81
83
  somora wiki migrate [step] [id] move a grown wiki onto the folder template (docs/wiki.md):
82
84
  guided, or plan|judge|status|approve|dry-run|run|undo
85
+ somora telemetry show what the daily update check sends to somora.ai, and when
83
86
  somora update [<version>|--edge] install from npm + rebake systemd + restart
84
87
  (run \`somora update --help\` for options)
85
88
  somora --version show version
@@ -377,6 +380,12 @@ function cmdServerStatus(): number {
377
380
  } else {
378
381
  process.stdout.write(`lockfile: ${LOCKFILE_PATH} (none — no server running)\n`);
379
382
  }
383
+ const update = updateStatus();
384
+ if (update.latestVersion) {
385
+ process.stdout.write(update.updateAvailable
386
+ ? ` update: ${update.latestVersion} is available — run \`somora update\`${update.note ? ` (${update.note})` : ''}\n`
387
+ : ` update: none (${update.latestVersion} is current)\n`);
388
+ }
380
389
  if (launchdAvailable()) {
381
390
  const installed = existsSync(launchdPlistPath());
382
391
  const pid = installed ? launchdPid() : null;
@@ -578,6 +587,51 @@ async function cmdUpdate(args: string[]): Promise<number> {
578
587
  return 0;
579
588
  }
580
589
 
590
+ // ─── telemetry ──────────────────────────────────────────────────────
591
+
592
+ function updateStatus(): UpdateCheckStatus {
593
+ const file = join(SOMORA_HOME, 'config.yaml');
594
+ let enabled = true;
595
+ let endpoint = DEFAULT_UPDATE_ENDPOINT;
596
+ try {
597
+ const raw = parseYaml(readFileSync(file, 'utf8')) as { updateCheck?: { enabled?: unknown; endpoint?: unknown } } | null;
598
+ if (raw?.updateCheck?.enabled === false) enabled = false;
599
+ if (typeof raw?.updateCheck?.endpoint === 'string') endpoint = raw.updateCheck.endpoint;
600
+ } catch {
601
+ /* no config yet — defaults */
602
+ }
603
+ return statusFrom({ version: SOMORA_VERSION, configEnabled: enabled, endpoint, surface: 'cli', state: readState(join(SOMORA_HOME, 'update-check.json')) });
604
+ }
605
+
606
+ /** `somora telemetry show [--json]` — the whole truth about the one
607
+ * request somora makes to somora.ai. */
608
+ async function cmdTelemetry(args: string[]): Promise<number> {
609
+ const sub = args[0];
610
+ if (sub !== 'show') {
611
+ process.stdout.write('Usage:\n somora telemetry show [--json] what the daily update check sends, where, and when it last ran\n');
612
+ return sub === undefined || sub === '--help' || sub === '-h' ? 0 : 2;
613
+ }
614
+ const s = updateStatus();
615
+ if (args.includes('--json')) {
616
+ process.stdout.write(`${JSON.stringify(s, null, 2)}\n`);
617
+ return 0;
618
+ }
619
+ const why: Record<UpdateCheckStatus['reason'], string> = {
620
+ enabled: 'enabled (updateCheck.enabled in config.yaml)',
621
+ 'do-not-track': 'disabled by DO_NOT_TRACK',
622
+ 'automated-environment': 'disabled in an automated environment (CI is set)',
623
+ 'config-disabled': 'disabled in config.yaml (updateCheck.enabled: false)',
624
+ };
625
+ process.stdout.write(`daily update check: ${why[s.reason]}\n`);
626
+ process.stdout.write(` request: GET ${s.endpoint}\n`);
627
+ process.stdout.write(` header: User-Agent: ${s.userAgent}\n`);
628
+ process.stdout.write(' body: none — no identifier, no machine id, nothing else\n');
629
+ process.stdout.write(` last run: ${s.lastCheckedAt ? new Date(s.lastCheckedAt).toISOString() : 'never'}\n`);
630
+ process.stdout.write(` answer: ${s.latestVersion ? `latest ${s.latestVersion}${s.updateAvailable ? ' — newer than this install' : ' — this install is current'}` : '—'}${s.note ? `\n note: ${s.note}` : ''}\n`);
631
+ process.stdout.write(' somora.ai logs the request with its IP address and counts installations from that; details: docs/setup.md → "The daily update check".\n');
632
+ return 0;
633
+ }
634
+
581
635
  // ─── main ────────────────────────────────────────────────────────────
582
636
 
583
637
  async function main(): Promise<number> {
@@ -612,6 +666,8 @@ async function main(): Promise<number> {
612
666
  }
613
667
  case 'update':
614
668
  return await cmdUpdate(rest);
669
+ case 'telemetry':
670
+ return await cmdTelemetry(rest);
615
671
  case 'codex': {
616
672
  const { runCodexCli } = await import('./codex.ts');
617
673
  return await runCodexCli(rest);
@@ -119,14 +119,14 @@ function UserTurn({
119
119
  // local human just typed. Same line height, similar weight — keeps
120
120
  // scrollback rhythm intact.
121
121
  if (fromAgent) {
122
- // Sender from a non-main session shows as `↬ naxon/cerebrocraft`
122
+ // Sender from a non-main session shows as `↬ nova/craftbox`
123
123
  // so mis-routed project traffic is visible in scrollback; main
124
- // stays the plain `↬ naxon` it always was.
124
+ // stays the plain `↬ nova` it always was.
125
125
  const slug = fromSession ? sessionSlugOf(fromSession) : undefined;
126
126
  const tag = `↬ ${fromAgent}${slug && slug !== 'main' ? `/${slug}` : ''}`.padEnd(6, ' ');
127
127
  // The tag must not give way to a long message: Ink lays the row out
128
- // as a flex line and shrank "↬ lisa" to "↬ lis" beside a follow-up
129
- // (Rene, 2026-09-13). The name keeps its width; the text wraps.
128
+ // as a flex line and shrank "↬ bea" to "↬ lis" beside a follow-up
129
+ // (the operator, 2026-09-13). The name keeps its width; the text wraps.
130
130
  return (
131
131
  <Box marginTop={1}>
132
132
  <Box flexShrink={0} marginRight={1}>