somora 2026.930.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.
- package/LICENSE +21 -0
- package/README.md +364 -0
- package/bin/node-version.d.mts +3 -0
- package/bin/node-version.mjs +45 -0
- package/bin/somora.mjs +77 -0
- package/config.example.yaml +896 -0
- package/docs/agents.md +677 -0
- package/docs/api.md +3194 -0
- package/docs/browser.md +317 -0
- package/docs/builder.md +331 -0
- package/docs/cache-strategy.md +373 -0
- package/docs/compaction.md +253 -0
- package/docs/display.md +154 -0
- package/docs/dream-phases.md +891 -0
- package/docs/files.md +387 -0
- package/docs/imagegen.md +366 -0
- package/docs/images/somora-hero.png +0 -0
- package/docs/images/somora-mobile-2026-05-23.png +0 -0
- package/docs/images/somora-tui-2026-05-23.png +0 -0
- package/docs/images/somora-web-2026-05-23.png +0 -0
- package/docs/index.md +178 -0
- package/docs/lsp.md +93 -0
- package/docs/mcp.md +332 -0
- package/docs/memory.md +407 -0
- package/docs/mobile.md +310 -0
- package/docs/models.md +379 -0
- package/docs/projects.md +425 -0
- package/docs/realtime-voice.md +293 -0
- package/docs/resources.md +230 -0
- package/docs/sampling.md +128 -0
- package/docs/security.md +189 -0
- package/docs/sentinel.md +295 -0
- package/docs/setup.md +1217 -0
- package/docs/skills.md +501 -0
- package/docs/team.md +189 -0
- package/docs/thinking.md +463 -0
- package/docs/tmux.md +399 -0
- package/docs/tools.md +117 -0
- package/docs/videogen.md +191 -0
- package/docs/voice.md +288 -0
- package/docs/web.md +893 -0
- package/docs/wiki.md +583 -0
- package/npm-shrinkwrap.json +5670 -0
- package/package.json +116 -0
- package/src/attachments/store.ts +196 -0
- package/src/browser/change-stream.ts +31 -0
- package/src/browser/display.ts +108 -0
- package/src/browser/policy.ts +121 -0
- package/src/browser/screencast.ts +374 -0
- package/src/browser/service.ts +1337 -0
- package/src/browser/session.ts +15 -0
- package/src/browser/snapshot.ts +40 -0
- package/src/cli/auth.ts +117 -0
- package/src/cli/codex.ts +41 -0
- package/src/cli/lsp.ts +71 -0
- package/src/cli/resolvers/clawhub.ts +400 -0
- package/src/cli/setup.ts +835 -0
- package/src/cli/skill.ts +619 -0
- package/src/cli/somora.ts +548 -0
- package/src/cli/systemd-unit.ts +72 -0
- package/src/cli/team.ts +148 -0
- package/src/cli/tui/activity-stream.ts +121 -0
- package/src/cli/tui/api.ts +479 -0
- package/src/cli/tui/app.tsx +1169 -0
- package/src/cli/tui/autocomplete.tsx +55 -0
- package/src/cli/tui/commands.ts +913 -0
- package/src/cli/tui/dream-glyphs.ts +22 -0
- package/src/cli/tui/footer.tsx +15 -0
- package/src/cli/tui/format.ts +28 -0
- package/src/cli/tui/header.tsx +279 -0
- package/src/cli/tui/index.tsx +120 -0
- package/src/cli/tui/markdown.tsx +63 -0
- package/src/cli/tui/sampling.ts +162 -0
- package/src/cli/tui/separator.tsx +13 -0
- package/src/cli/tui/state.ts +42 -0
- package/src/cli/tui/stream.ts +330 -0
- package/src/cli/tui/thinking-text.ts +54 -0
- package/src/cli/tui/turn-views.tsx +499 -0
- package/src/cli/tui/types.ts +410 -0
- package/src/cli/tui/work-queue.ts +161 -0
- package/src/cli/update-args.ts +55 -0
- package/src/cli/wiki.ts +406 -0
- package/src/compaction/index.ts +28 -0
- package/src/compaction/midturn.ts +210 -0
- package/src/compaction/policy.ts +154 -0
- package/src/compaction/summarize.ts +691 -0
- package/src/compaction/template.ts +90 -0
- package/src/compaction/types.ts +148 -0
- package/src/config/loader.ts +276 -0
- package/src/config/reload.ts +43 -0
- package/src/config/types.ts +2292 -0
- package/src/dream/deep-actions.ts +324 -0
- package/src/dream/deep-dispatcher.ts +237 -0
- package/src/dream/deep-llm.ts +388 -0
- package/src/dream/deep-prompts.ts +106 -0
- package/src/dream/deep-runner.ts +757 -0
- package/src/dream/deep-skip-cache.ts +199 -0
- package/src/dream/deep-worker.ts +229 -0
- package/src/dream/json-salvage.ts +34 -0
- package/src/dream/judge.ts +188 -0
- package/src/dream/loop-state.ts +286 -0
- package/src/dream/lucid-actions.ts +303 -0
- package/src/dream/lucid-batches.ts +94 -0
- package/src/dream/lucid-prompt.ts +82 -0
- package/src/dream/lucid-runner.ts +744 -0
- package/src/dream/lucid-storage.ts +277 -0
- package/src/dream/lucid-structure.ts +102 -0
- package/src/dream/lucid-types.ts +137 -0
- package/src/dream/lucid-worker.ts +224 -0
- package/src/dream/rem-dedup.ts +502 -0
- package/src/dream/rem-extract.ts +782 -0
- package/src/dream/rem-reset-run.ts +67 -0
- package/src/dream/rem-runner.ts +696 -0
- package/src/dream/rem-worker.ts +527 -0
- package/src/dream/review-window.ts +71 -0
- package/src/dream/scheduler-state.ts +129 -0
- package/src/dream/storage.ts +497 -0
- package/src/dream/types.ts +133 -0
- package/src/dream/wiki-context.ts +133 -0
- package/src/engine/a2a.ts +33 -0
- package/src/engine/availability.ts +63 -0
- package/src/engine/claude-cli.ts +969 -0
- package/src/engine/codex-app-server-client.ts +294 -0
- package/src/engine/codex-bin.ts +49 -0
- package/src/engine/codex-cli.ts +1014 -0
- package/src/engine/codex-dynamic-tools.ts +239 -0
- package/src/engine/codex-home.ts +63 -0
- package/src/engine/codex-thread-config.ts +74 -0
- package/src/engine/context-budget.ts +257 -0
- package/src/engine/engine-meta-labels.ts +211 -0
- package/src/engine/grok-cli.ts +941 -0
- package/src/engine/inline-think.ts +59 -0
- package/src/engine/model-availability.ts +105 -0
- package/src/engine/openai-compatible.ts +2464 -0
- package/src/engine/reasoning-retry.ts +83 -0
- package/src/engine/registry.ts +13 -0
- package/src/engine/replay.ts +195 -0
- package/src/engine/sampling.ts +90 -0
- package/src/engine/thinking-params.ts +264 -0
- package/src/engine/types.ts +269 -0
- package/src/engine/user-tag.ts +24 -0
- package/src/imagegen/aspect.ts +128 -0
- package/src/imagegen/generate.ts +642 -0
- package/src/imagegen/references.ts +75 -0
- package/src/imagegen/types.ts +154 -0
- package/src/lsp/client.ts +183 -0
- package/src/lsp/fake-server.helper.mjs +42 -0
- package/src/lsp/format.ts +29 -0
- package/src/lsp/index.ts +21 -0
- package/src/lsp/manager.ts +238 -0
- package/src/lsp/registry.ts +151 -0
- package/src/mcp/config.ts +117 -0
- package/src/mcp/hub/audit.ts +55 -0
- package/src/mcp/hub/bridge.ts +115 -0
- package/src/mcp/hub/catalog.ts +69 -0
- package/src/mcp/hub/credentials.ts +406 -0
- package/src/mcp/hub/env-expand.ts +14 -0
- package/src/mcp/hub/manager.ts +770 -0
- package/src/mcp/hub/normalize.ts +213 -0
- package/src/mcp/server.ts +368 -0
- package/src/mcp/tool-schema.ts +20 -0
- package/src/media/capabilities.ts +392 -0
- package/src/media/records.ts +175 -0
- package/src/media/store.ts +217 -0
- package/src/media/types.ts +69 -0
- package/src/memory/chunking.ts +168 -0
- package/src/memory/embeddings.ts +262 -0
- package/src/memory/index.ts +15 -0
- package/src/memory/inject.ts +197 -0
- package/src/memory/manager.ts +996 -0
- package/src/memory/registry.ts +176 -0
- package/src/memory/rescan.ts +101 -0
- package/src/memory/retrieval.ts +586 -0
- package/src/memory/shared-index.ts +372 -0
- package/src/memory/slug.ts +39 -0
- package/src/memory/storage.ts +385 -0
- package/src/memory/watcher.ts +134 -0
- package/src/multimodal/blocks.ts +101 -0
- package/src/multimodal/dimensions.ts +214 -0
- package/src/multimodal/load.ts +86 -0
- package/src/multimodal/mime.ts +135 -0
- package/src/multimodal/pdf-render.ts +80 -0
- package/src/multimodal/user-content.ts +266 -0
- package/src/persona/files.ts +144 -0
- package/src/persona/loader.ts +598 -0
- package/src/persona/skill-gating-store.ts +59 -0
- package/src/persona/tool-gating-store.ts +113 -0
- package/src/projects/focus.ts +186 -0
- package/src/projects/prompt-block.ts +106 -0
- package/src/projects/scheme.ts +107 -0
- package/src/projects/store.ts +144 -0
- package/src/projects/types.ts +73 -0
- package/src/sentinel/dispatcher.ts +97 -0
- package/src/sentinel/schedule.ts +271 -0
- package/src/sentinel/scheduler.ts +840 -0
- package/src/sentinel/store.ts +259 -0
- package/src/sentinel/types.ts +221 -0
- package/src/server/activity-stream.ts +160 -0
- package/src/server/ask-calls.ts +137 -0
- package/src/server/ask-wait-graph.ts +171 -0
- package/src/server/async-tasks.ts +199 -0
- package/src/server/builder-busy.ts +86 -0
- package/src/server/builder-prompt.ts +204 -0
- package/src/server/builder-questions.ts +117 -0
- package/src/server/builder-session.ts +249 -0
- package/src/server/chat-aborts.ts +83 -0
- package/src/server/claude-config-dir.ts +71 -0
- package/src/server/claude-credential-sync.ts +454 -0
- package/src/server/env-file.ts +100 -0
- package/src/server/env.ts +115 -0
- package/src/server/heal-session.ts +151 -0
- package/src/server/history-page.ts +46 -0
- package/src/server/index.ts +7244 -0
- package/src/server/lockfile.ts +89 -0
- package/src/server/logger.ts +67 -0
- package/src/server/logs.ts +187 -0
- package/src/server/loopback-fetch.ts +130 -0
- package/src/server/openai-client.ts +89 -0
- package/src/server/prompt-assembly.ts +334 -0
- package/src/server/restart-reconcile.ts +139 -0
- package/src/server/run-turn-fallback.ts +275 -0
- package/src/server/run-turn-types.ts +91 -0
- package/src/server/run-turn.ts +1474 -0
- package/src/server/sanitize-assistant-text.ts +112 -0
- package/src/server/session-export.ts +220 -0
- package/src/server/session-queue.ts +376 -0
- package/src/server/session-workdir.ts +49 -0
- package/src/server/sse-h2-safe.ts +61 -0
- package/src/server/sse-liveness.ts +162 -0
- package/src/server/sse-serializer.ts +161 -0
- package/src/server/start-turn.ts +249 -0
- package/src/server/steer-inbox.ts +107 -0
- package/src/server/tls-keeper.ts +153 -0
- package/src/server/tool-format.ts +167 -0
- package/src/server/turn-framing.ts +52 -0
- package/src/server/turn-origin-kind.ts +74 -0
- package/src/server/turn-origin.ts +40 -0
- package/src/server/work-ledger.ts +975 -0
- package/src/server/workspace.ts +114 -0
- package/src/setup/config-edit.ts +201 -0
- package/src/setup/presets.ts +71 -0
- package/src/setup/prompt.ts +163 -0
- package/src/setup/tailscale.ts +44 -0
- package/src/skills/bin-checks.ts +227 -0
- package/src/skills/bootstrap.ts +347 -0
- package/src/skills/env-scope.ts +175 -0
- package/src/skills/gating.ts +71 -0
- package/src/skills/lint.ts +202 -0
- package/src/skills/load.ts +368 -0
- package/src/skills/path-helpers.ts +102 -0
- package/src/skills/registry.ts +178 -0
- package/src/ssh/exec.ts +142 -0
- package/src/ssh/index.ts +12 -0
- package/src/ssh/known-hosts.ts +109 -0
- package/src/ssh/pool.ts +307 -0
- package/src/storage/sessions.ts +602 -0
- package/src/team/render.ts +149 -0
- package/src/team/resolve.ts +122 -0
- package/src/team/store.ts +124 -0
- package/src/team/types.ts +111 -0
- package/src/team/write.ts +95 -0
- package/src/testing/isolated-home.mts +46 -0
- package/src/tmux/attention-watcher.ts +272 -0
- package/src/tmux/attention.ts +336 -0
- package/src/tmux/list.ts +91 -0
- package/src/tmux/origin-store.ts +102 -0
- package/src/tmux/tui-markers.ts +267 -0
- package/src/tools/agents/ask-cancel.ts +94 -0
- package/src/tools/agents/ask-result.ts +235 -0
- package/src/tools/agents/ask.ts +704 -0
- package/src/tools/agents/builder-dispatch.ts +217 -0
- package/src/tools/agents/images.ts +104 -0
- package/src/tools/agents/index.ts +42 -0
- package/src/tools/agents/long-task-timeouts.ts +39 -0
- package/src/tools/agents/session-list.ts +136 -0
- package/src/tools/agents/session-model.ts +106 -0
- package/src/tools/agents/spawn.ts +845 -0
- package/src/tools/agents/status.ts +589 -0
- package/src/tools/browser/index.ts +6 -0
- package/src/tools/browser/ops.ts +145 -0
- package/src/tools/browser/tools.ts +184 -0
- package/src/tools/builder/short-descriptions.ts +80 -0
- package/src/tools/builder/tools.ts +222 -0
- package/src/tools/docs/index.ts +1 -0
- package/src/tools/docs/tools.ts +228 -0
- package/src/tools/dream/index.ts +11 -0
- package/src/tools/dream/tools.ts +1002 -0
- package/src/tools/exec/allowlist.ts +233 -0
- package/src/tools/exec/background-detach.helper.mts +27 -0
- package/src/tools/exec/blacklist.ts +336 -0
- package/src/tools/exec/concurrency.ts +150 -0
- package/src/tools/exec/fit-output.ts +82 -0
- package/src/tools/exec/index.ts +7 -0
- package/src/tools/exec/internal-env.ts +89 -0
- package/src/tools/exec/job-store.ts +403 -0
- package/src/tools/exec/local.ts +649 -0
- package/src/tools/exec/remote.ts +399 -0
- package/src/tools/exec/tools.ts +934 -0
- package/src/tools/file/analyze.ts +378 -0
- package/src/tools/file/index.ts +2 -0
- package/src/tools/file/local.ts +707 -0
- package/src/tools/file/lsp-hook.ts +72 -0
- package/src/tools/file/persona-guard.ts +61 -0
- package/src/tools/file/policy.ts +292 -0
- package/src/tools/file/read-format.ts +129 -0
- package/src/tools/file/remote.ts +680 -0
- package/src/tools/file/replace.ts +507 -0
- package/src/tools/file/search-window.ts +224 -0
- package/src/tools/file/tools.ts +658 -0
- package/src/tools/file/write-scope.ts +182 -0
- package/src/tools/gating.ts +106 -0
- package/src/tools/image/budget.ts +82 -0
- package/src/tools/image/index.ts +7 -0
- package/src/tools/image/tools.ts +601 -0
- package/src/tools/index.ts +99 -0
- package/src/tools/memory/index.ts +12 -0
- package/src/tools/memory/tools.ts +399 -0
- package/src/tools/projects/index.ts +1 -0
- package/src/tools/projects/tools.ts +643 -0
- package/src/tools/registry.ts +427 -0
- package/src/tools/resources/index.ts +8 -0
- package/src/tools/resources/tools.ts +176 -0
- package/src/tools/resources/visibility.ts +60 -0
- package/src/tools/sentinel/index.ts +1 -0
- package/src/tools/sentinel/tools.ts +592 -0
- package/src/tools/skill/index.ts +4 -0
- package/src/tools/skill/tools.ts +285 -0
- package/src/tools/time/index.ts +5 -0
- package/src/tools/time/tools.ts +123 -0
- package/src/tools/tmux/index.ts +1 -0
- package/src/tools/tmux/local.ts +277 -0
- package/src/tools/tmux/remote.ts +168 -0
- package/src/tools/tmux/tools.ts +1064 -0
- package/src/tools/tool-output.ts +97 -0
- package/src/tools/types.ts +227 -0
- package/src/tools/video/index.ts +1 -0
- package/src/tools/video/tools.ts +425 -0
- package/src/tools/web/fetch.ts +337 -0
- package/src/tools/web/index.ts +4 -0
- package/src/tools/web/tools.ts +186 -0
- package/src/tools/wiki/index.ts +1 -0
- package/src/tools/wiki/tools.ts +445 -0
- package/src/tts/cache-gc.ts +128 -0
- package/src/tts/prepare-for-tts.ts +114 -0
- package/src/tts/service.ts +332 -0
- package/src/types/events.ts +695 -0
- package/src/types/turn-origin.ts +53 -0
- package/src/version.ts +21 -0
- package/src/videogen/dialects.ts +222 -0
- package/src/videogen/generate.ts +484 -0
- package/src/videogen/jobs.ts +178 -0
- package/src/videogen/runner.ts +125 -0
- package/src/videogen/wake.ts +119 -0
- package/src/voice/realtime/call.ts +948 -0
- package/src/voice/realtime/consult.ts +293 -0
- package/src/voice/realtime/fake-provider.ts +134 -0
- package/src/voice/realtime/manager.ts +384 -0
- package/src/voice/realtime/openai-provider.ts +471 -0
- package/src/voice/realtime/persona.ts +227 -0
- package/src/voice/realtime/session-match.ts +116 -0
- package/src/voice/realtime/types.ts +182 -0
- package/src/wiki/conflict.ts +113 -0
- package/src/wiki/explorer.ts +578 -0
- package/src/wiki/index-builder.ts +172 -0
- package/src/wiki/language.ts +134 -0
- package/src/wiki/log-builder.ts +150 -0
- package/src/wiki/map.ts +258 -0
- package/src/wiki/migration/analyze.ts +304 -0
- package/src/wiki/migration/execute.ts +689 -0
- package/src/wiki/migration/refine.ts +402 -0
- package/src/wiki/migration/store.ts +100 -0
- package/src/wiki/move-page.ts +57 -0
- package/src/wiki/structure-file.ts +192 -0
- package/src/wiki/taxonomy.ts +140 -0
- package/src/wiki/templates.ts +163 -0
- package/src/wiki/types.ts +133 -0
- package/templates/skills/README.md +24 -0
- package/templates/skills/_templates/api-wrapper/SKILL.md +26 -0
- package/templates/skills/_templates/cli-wrapper/BOOTSTRAP.md +32 -0
- package/templates/skills/_templates/cli-wrapper/SKILL.md +24 -0
- package/templates/skills/_templates/default/SKILL.md +25 -0
- package/templates/skills/builder-handover/SKILL.md +96 -0
- package/templates/skills/builder-handover/assets/ORDER.md +12 -0
- package/templates/skills/skill-author/SKILL.md +110 -0
- package/tsconfig.json +22 -0
- package/web/dist/assets/index-BaVv6pB2.js +631 -0
- package/web/dist/assets/index-BaVv6pB2.js.map +1 -0
- package/web/dist/assets/index-V3FV3Z25.css +32 -0
- package/web/dist/favicon.svg +8 -0
- package/web/dist/index.html +20 -0
- package/web/package.json +36 -0
- package/web/tsconfig.json +25 -0
- package/web-mobile/dist/apple-touch-icon.png +0 -0
- package/web-mobile/dist/assets/index-BqKt7IMx.css +1 -0
- package/web-mobile/dist/assets/index-X_vRr6cd.js +88 -0
- package/web-mobile/dist/assets/index-X_vRr6cd.js.map +1 -0
- package/web-mobile/dist/favicon.svg +8 -0
- package/web-mobile/dist/icon-192.png +0 -0
- package/web-mobile/dist/icon-512.png +0 -0
- package/web-mobile/dist/index.html +27 -0
- package/web-mobile/dist/manifest.webmanifest +32 -0
- package/web-mobile/dist/service-worker.js +90 -0
- package/web-mobile/package.json +28 -0
- package/web-mobile/tsconfig.json +25 -0
package/docs/files.md
ADDED
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
# File tools
|
|
2
|
+
|
|
3
|
+
`file_read`, `file_write`, `file_patch`, `file_search`, `file_list` and
|
|
4
|
+
`analyze_file` work on the local filesystem by default and on any
|
|
5
|
+
configured remote resource via the `target` parameter (where
|
|
6
|
+
applicable — `analyze_file` is local-only).
|
|
7
|
+
|
|
8
|
+
## The `target` parameter
|
|
9
|
+
|
|
10
|
+
Every file tool accepts:
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
target: "local" | "<resource-name>"
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
- `local` (default) — the somora server's own filesystem.
|
|
17
|
+
- a resource name from `resource_list` — operates over SSH (SFTP for
|
|
18
|
+
read/write/patch, remote-exec'd ripgrep for search).
|
|
19
|
+
|
|
20
|
+
The model picks the target. It never picks the SSH transport, auth, or
|
|
21
|
+
host-key handling — those are all server-side.
|
|
22
|
+
|
|
23
|
+
## Path resolution
|
|
24
|
+
|
|
25
|
+
- **Relative paths** resolve against the agent's workspace dir
|
|
26
|
+
(per-agent `workspace.path` in `agent.yaml`, falling back to
|
|
27
|
+
`config.workspace.default` which auto-creates `~/somoraworkspace` at
|
|
28
|
+
first start).
|
|
29
|
+
- **Absolute paths** pass through.
|
|
30
|
+
- **`~/`** expands to `$HOME` on local. On a remote target `~` expands
|
|
31
|
+
to the SSH user's home (and wins over `resource.workspace`); a bare
|
|
32
|
+
relative path joins onto `resource.workspace`, or onto the SSH user's
|
|
33
|
+
home when the resource sets none.
|
|
34
|
+
|
|
35
|
+
## The path-blacklist (write side)
|
|
36
|
+
|
|
37
|
+
`file_write` and `file_patch` refuse to touch anything under:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
System/credentials:
|
|
41
|
+
/etc, /usr, /boot, /sys, /proc, /dev,
|
|
42
|
+
/etc/shadow, /etc/sudoers, /etc/ssh
|
|
43
|
+
~/.ssh, ~/.gnupg, ~/.aws/credentials, ~/.kube/config
|
|
44
|
+
|
|
45
|
+
somora-internal:
|
|
46
|
+
~/.somora/known_hosts.json (SSH trust file)
|
|
47
|
+
~/.somora/agents/*/sessions/ (any agent's session JSONL +
|
|
48
|
+
meta — append-only, managed
|
|
49
|
+
by the storage layer)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Symlink escapes are caught: each write resolves the closest existing
|
|
53
|
+
ancestor with `realpath` and re-checks the policy on the resolved path.
|
|
54
|
+
|
|
55
|
+
**What's INTENTIONALLY allowed**:
|
|
56
|
+
|
|
57
|
+
- `~/.somora/agents/<any-agent>/{AGENTS,SOUL,USER}.md` — including
|
|
58
|
+
OTHER agents' persona files. Cross-agent editing is by design;
|
|
59
|
+
agents collaboratively shape each other's behaviour, not just their
|
|
60
|
+
own.
|
|
61
|
+
- `~/.somora/agents/<any-agent>/agent.yaml` — operator config. Same
|
|
62
|
+
cross-agent rule.
|
|
63
|
+
- `~/.somora/agents/<any-agent>/memory/notes/*.md` — memory notes.
|
|
64
|
+
- `~/.somora/config.yaml` — global server config.
|
|
65
|
+
|
|
66
|
+
The blacklist exists to prevent footguns (system corruption, leaked
|
|
67
|
+
credentials) and to protect the data formats somora's own storage
|
|
68
|
+
layer manages (session JSONL, the SSH known-hosts file). Within those
|
|
69
|
+
limits, agents are trusted.
|
|
70
|
+
|
|
71
|
+
The read side has a smaller blacklist — only credential files and
|
|
72
|
+
`/etc/shadow`-class secrets. Other paths read freely.
|
|
73
|
+
|
|
74
|
+
## Steering the model away from `exec`
|
|
75
|
+
|
|
76
|
+
Every file tool description tells the model to use it instead of
|
|
77
|
+
running `cat`, `echo`, `grep` or `sed` through exec: the file tools
|
|
78
|
+
paginate safely, have no quoting issues, and work the same locally and
|
|
79
|
+
over SSH (SFTP). This is deliberate policy: in cross-engine tool
|
|
80
|
+
design, the orchestrator prefers tools whose description tells it when
|
|
81
|
+
to pick them.
|
|
82
|
+
|
|
83
|
+
The `exec` tool mirrors this in reverse — file_* for read, write,
|
|
84
|
+
patch and search; exec for what the file tools cannot do (run a build,
|
|
85
|
+
start a server, and the like).
|
|
86
|
+
|
|
87
|
+
## Multimodal: `file_read` polymorph + `analyze_file`
|
|
88
|
+
|
|
89
|
+
### `file_read` is polymorphic — text, image, or PDF
|
|
90
|
+
|
|
91
|
+
When pointed at a local file, `file_read` detects the format via magic
|
|
92
|
+
bytes and returns one of three things based on the file kind AND the
|
|
93
|
+
active model's capabilities:
|
|
94
|
+
|
|
95
|
+
| Detected | Active model has `image` cap? | Returned |
|
|
96
|
+
|---|---|---|
|
|
97
|
+
| Text | n/a | text content (paginated, 200k char cap) |
|
|
98
|
+
| Image (PNG/JPEG/WebP/GIF) | yes | image content block — model sees it directly |
|
|
99
|
+
| Image | no | error pointing at `analyze_file` |
|
|
100
|
+
| PDF | yes | each page rendered to PNG, returned as image-array (max 20 pages) |
|
|
101
|
+
| PDF | no | error pointing at `analyze_file` |
|
|
102
|
+
| Unknown binary | n/a | error with hint to inspect via `exec` first |
|
|
103
|
+
|
|
104
|
+
**PDF → PNG-page render.** MCP's tool-result content union has no
|
|
105
|
+
`document` type, so the polymorph rasterizes each page server-side
|
|
106
|
+
and ships them as `image` blocks. The model OCRs the page images
|
|
107
|
+
visually — same approach Anthropic uses internally for native PDF.
|
|
108
|
+
Token cost is real: ~1300 tokens per page on Anthropic, so a
|
|
109
|
+
30-page PDF costs ~40k tokens. For long PDFs prefer `analyze_file`.
|
|
110
|
+
|
|
111
|
+
**Capability gating** uses the active turn's resolved model. somora
|
|
112
|
+
passes the model through `ToolContext.activeModel` — set in-process
|
|
113
|
+
by the server's run-turn, set via `SOMORA_ACTIVE_MODEL` env var for
|
|
114
|
+
the MCP child process when claude-cli/codex-cli spawn it. Models
|
|
115
|
+
declare capabilities in their provider config (`capabilities:
|
|
116
|
+
[text, image, pdf, reasoning]`). file_read polymorph requires the
|
|
117
|
+
`image` capability for both image AND pdf paths because both deliver
|
|
118
|
+
as images post-rasterization. The `pdf` capability is meaningful for
|
|
119
|
+
`analyze_file` (which can talk to providers with native PDF support).
|
|
120
|
+
|
|
121
|
+
### `analyze_file` — the worker dispatcher
|
|
122
|
+
|
|
123
|
+
It is a **substitute for models that cannot see**, and only those. The
|
|
124
|
+
tool is not offered at all when the active model has the `image`
|
|
125
|
+
capability: an agent that can look at the file itself should, and a tool
|
|
126
|
+
it never sees is one it cannot pick by mistake.
|
|
127
|
+
|
|
128
|
+
It appears when:
|
|
129
|
+
- the active main model lacks `image` capability (text-only LLM) and you
|
|
130
|
+
still need to reason about a file;
|
|
131
|
+
- targeted questions help — `analyze_file({path, prompt: "Which row of
|
|
132
|
+
the table has the highest value?"})` lets the worker focus, the agent
|
|
133
|
+
gets a sharp answer.
|
|
134
|
+
|
|
135
|
+
A described file is second-hand: the tool result names the worker, and
|
|
136
|
+
the agent is told to quote it rather than claim to have looked.
|
|
137
|
+
|
|
138
|
+
```yaml
|
|
139
|
+
# config.yaml — global vision worker config
|
|
140
|
+
vision:
|
|
141
|
+
worker: openrouter/claude-haiku-4-5 # default for image + PDF
|
|
142
|
+
pdfWorker: openrouter/claude-sonnet-4-6 # optional override for PDFs
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
`worker` also takes an **ordered list**, tried front to back until one
|
|
146
|
+
answers:
|
|
147
|
+
|
|
148
|
+
```yaml
|
|
149
|
+
vision:
|
|
150
|
+
worker:
|
|
151
|
+
- local/qwen-vision # preferred: free, stays in-house
|
|
152
|
+
- openrouter/claude-haiku-4-5 # always available, costs money
|
|
153
|
+
timeoutMs: 60000 # per attempt, then move on
|
|
154
|
+
totalBudgetMs: 90000 # for the WHOLE chain
|
|
155
|
+
maxOutputTokens: 1500 # a caption is not a chat answer
|
|
156
|
+
healthCacheMs: 60000 # skip a just-failed worker this long
|
|
157
|
+
timeoutCooldownMs: 10000 # shorter: slow is not dead
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Two budgets, because one was not enough. `timeoutMs` bounds a single
|
|
161
|
+
attempt and `totalBudgetMs` bounds the walk: each attempt gets whatever
|
|
162
|
+
is left, and a worker that could not finish in the remaining time is not
|
|
163
|
+
started; without it a chain of four workers spends four full timeouts
|
|
164
|
+
back to back. `maxOutputTokens`
|
|
165
|
+
overrides the worker model's own cap, which is a chat cap — with 16k
|
|
166
|
+
available, a reasoning worker thinks its way past the timeout while
|
|
167
|
+
writing three lines about a screenshot. A worker that returns nothing
|
|
168
|
+
with `finish_reason: length` says exactly that instead of "empty
|
|
169
|
+
response". A timeout cools a worker down for `timeoutCooldownMs` rather
|
|
170
|
+
than the full `healthCacheMs`, because slow and gone are different
|
|
171
|
+
things.
|
|
172
|
+
|
|
173
|
+
This exists because a locally hosted worker is only loaded while its GPU
|
|
174
|
+
profile is active; with a single configured value, switching profiles
|
|
175
|
+
takes `analyze_file` down for every agent at once and does so silently.
|
|
176
|
+
Entries that don't resolve, or that lack the capability the file needs,
|
|
177
|
+
are skipped rather than fatal — the point of a chain is surviving one
|
|
178
|
+
entry being unusable. The tool result names the worker that answered,
|
|
179
|
+
and lists the ones passed over when it wasn't the first.
|
|
180
|
+
|
|
181
|
+
### Switching to a model that can't see images
|
|
182
|
+
|
|
183
|
+
History is packed for the model that will read it. A session that once
|
|
184
|
+
carried an image would replay that image on every later turn, and a
|
|
185
|
+
text-only endpoint rejects the content type — so attachments the active
|
|
186
|
+
model cannot process are replayed as a text marker naming the file, its
|
|
187
|
+
type and its size. The conversation keeps working and the model can
|
|
188
|
+
still refer to what it cannot see
|
|
189
|
+
(`[Image attachment "shot.png" (image/png, 1.2 MB) — not shown: …]`).
|
|
190
|
+
The text of those turns is untouched.
|
|
191
|
+
|
|
192
|
+
Sending a **new** attachment to such a model does not fail the turn.
|
|
193
|
+
somora hands the file to the configured vision worker and appends its
|
|
194
|
+
description to the message the model receives, marked as a description
|
|
195
|
+
rather than the file itself. The clients still show the original
|
|
196
|
+
attachment, so what you see is unchanged. Only when no `vision.worker`
|
|
197
|
+
is configured does the turn refuse, and the error says both ways out:
|
|
198
|
+
switch models, or configure a worker.
|
|
199
|
+
|
|
200
|
+
### What can be attached
|
|
201
|
+
|
|
202
|
+
Images (PNG/JPEG/GIF/WebP), PDFs and text. Video and audio are
|
|
203
|
+
recognised by the file-type sniffer — that is what lets the web FileView
|
|
204
|
+
serve them with an honest content type — but they are deliberately not
|
|
205
|
+
attachable to a chat turn: no engine can put a video in a prompt, and
|
|
206
|
+
accepting one would mean an attachment that vanishes silently while the
|
|
207
|
+
turn is packed.
|
|
208
|
+
|
|
209
|
+
Worker model **must be on `openai-compatible` engine** (use
|
|
210
|
+
openrouter or another openai-compatible proxy if you want a Claude or
|
|
211
|
+
GPT model). Same constraint as Dream-Mode. At server startup, somora
|
|
212
|
+
warn-checks worker capabilities and surfaces missing `image`/`pdf`
|
|
213
|
+
declarations clearly in the log — but does NOT hard-fail, so an
|
|
214
|
+
image-only worker is still usable for image analysis (PDF requests
|
|
215
|
+
will error per call instead).
|
|
216
|
+
|
|
217
|
+
**Caps:** 5 MB per image, 32 MB per PDF (the upstream provider
|
|
218
|
+
ceilings; providers additionally cap PDFs at 100 pages). PDF render:
|
|
219
|
+
max 20 pages by default, scale 1.5× (configurable in code).
|
|
220
|
+
|
|
221
|
+
**Engine support:**
|
|
222
|
+
- claude-cli (Anthropic) — full polymorph support; images and rendered
|
|
223
|
+
PDFs ride as native ImageBlock / DocumentBlock content
|
|
224
|
+
- codex-cli (OpenAI) — dynamic-tool results carry images natively
|
|
225
|
+
(`inputImage`); PDFs rasterise to per-page PNGs
|
|
226
|
+
- openai-compatible (omlx, openrouter, ollama) — works for vision-
|
|
227
|
+
capable models (gemma-vision, gpt-5 via openrouter, etc.); local
|
|
228
|
+
servers vary in tool-result image-content support — failures
|
|
229
|
+
surface as explicit API errors
|
|
230
|
+
|
|
231
|
+
The multimodal helper modules in `src/multimodal/` feed both the
|
|
232
|
+
agent-driven path (file_read / analyze_file) and the user-driven
|
|
233
|
+
path (chat-message attachments via paperclip / paste / drag&drop).
|
|
234
|
+
|
|
235
|
+
## User-attachments (web + TUI client)
|
|
236
|
+
|
|
237
|
+
The web client exposes paperclip / drag&drop / paste so users can
|
|
238
|
+
attach files directly to a chat turn. Pipeline:
|
|
239
|
+
|
|
240
|
+
1. `POST /attachments` — raw bytes go to a streaming endpoint that
|
|
241
|
+
sniffs MIME via magic-bytes (extensions are untrusted), enforces
|
|
242
|
+
per-kind caps from `config.attachments`, and lands the file at
|
|
243
|
+
`~/.somora/attachments/<sha256>.<ext>`. Returns
|
|
244
|
+
`{hash, mime, kind, size, name}`. Same content uploaded twice =
|
|
245
|
+
same file on disk (sha256 dedup).
|
|
246
|
+
2. `POST /chat/send` (and `/chat/send-sync`, `/spawn-async`) — body
|
|
247
|
+
extension `attachments: [{hash, name, mime, size}]`. Server resolves refs, validates the active model's
|
|
248
|
+
capabilities, refuses with a clear error if the model lacks
|
|
249
|
+
`image` / `pdf` cap.
|
|
250
|
+
3. JSONL persists refs only on the `user_message` event — bytes never
|
|
251
|
+
travel into JSONL or back out. History replay re-loads bytes from
|
|
252
|
+
disk on demand.
|
|
253
|
+
4. Agents use the same pipeline through their tools: `agent_ask` and
|
|
254
|
+
`spawn_subagent`/`spawn_subagents` take `images: ["/absolute/path"]`,
|
|
255
|
+
upload those files themselves and put the refs on the turn they
|
|
256
|
+
start. That is how an orchestrator hands a co-worker a graphic it
|
|
257
|
+
just generated — naming the path in the message text only gives the
|
|
258
|
+
receiving model a string. A receiving model without
|
|
259
|
+
vision gets the vision worker's description, exactly as for a chat
|
|
260
|
+
attachment.
|
|
261
|
+
5. Each engine adapter builds its native multimodal user-message
|
|
262
|
+
shape: claude-cli inlines as `ContentBlockParam[]` with
|
|
263
|
+
`ImageBlockParam` / `DocumentBlockParam`; codex-cli sends images as
|
|
264
|
+
native `localImage` turn inputs and rasterises PDFs to per-page PNGs
|
|
265
|
+
into a sibling cache dir; openai-compatible produces an array-content
|
|
266
|
+
user message (`{type:'image_url'}` / `{type:'file'}` / rasterised
|
|
267
|
+
PNGs depending on the provider's `pdfMode`).
|
|
268
|
+
|
|
269
|
+
### Caps + per-turn count
|
|
270
|
+
|
|
271
|
+
```yaml
|
|
272
|
+
attachments:
|
|
273
|
+
maxImageBytes: 5242880 # 5 MB — Anthropic ceiling, lowest common denominator
|
|
274
|
+
maxPdfBytes: 33554432 # 32 MB — Anthropic ceiling
|
|
275
|
+
maxTextBytes: 1048576 # 1 MB
|
|
276
|
+
maxPerTurn: 10 # UX sanity cap
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
Defaults match the strictest engine in the supported set so a config
|
|
280
|
+
that accepts any of them is safe everywhere. Operators with a
|
|
281
|
+
single-engine fleet can raise these. `analyze_file` honours the same
|
|
282
|
+
caps: its vision worker runs on an `openai-compatible` provider, so the
|
|
283
|
+
Anthropic ceiling does not apply there — raise `maxImageBytes` when the
|
|
284
|
+
agent should inspect large images, e.g. somora's own 2K/4K `imageGen`
|
|
285
|
+
output (a 2048×2048 PNG is routinely 6–9 MB).
|
|
286
|
+
|
|
287
|
+
### `pdfMode` — only on `openai-compatible` providers
|
|
288
|
+
|
|
289
|
+
```yaml
|
|
290
|
+
providers:
|
|
291
|
+
openrouter:
|
|
292
|
+
engine: openai-compatible
|
|
293
|
+
pdfMode: native # opt-in; default is 'rasterize'
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
- `claude-cli` providers: always native (Anthropic supports inline
|
|
297
|
+
PDF). No knob.
|
|
298
|
+
- `codex-cli` providers: always rasterise (Codex accepts only images
|
|
299
|
+
as native input). No knob.
|
|
300
|
+
- `openai-compatible` providers: depends on the actual backend
|
|
301
|
+
behind the URL. `rasterize` (default) renders pages to PNG and
|
|
302
|
+
works against omlx, ollama, anything image-capable. `native`
|
|
303
|
+
passes the PDF as a `{type:'file'}` content block — Anthropic
|
|
304
|
+
via OpenRouter and OpenAI direct accept this; most local servers
|
|
305
|
+
do not. Enable `native` per-provider when your backend supports
|
|
306
|
+
it.
|
|
307
|
+
|
|
308
|
+
Token economics: `native` ships the PDF as text (the provider
|
|
309
|
+
extracts on their side) — a few-page invoice lands at ~3–4k
|
|
310
|
+
prompt tokens. `rasterize` sends one image per page; image-capable
|
|
311
|
+
providers charge ~1.5–2k image-tokens per page on top of the
|
|
312
|
+
page-PNG bytes, so a 5-page PDF can easily 3–5× the prompt-token
|
|
313
|
+
cost of `native`. Pick `native` when the backend supports it.
|
|
314
|
+
|
|
315
|
+
### Garbage collection
|
|
316
|
+
|
|
317
|
+
There is none. Every uploaded file lands in `~/.somora/
|
|
318
|
+
attachments/<hash>.<ext>` and stays. After heavy use, orphaned
|
|
319
|
+
files (referenced only by JSONL sessions that have since been reset
|
|
320
|
+
or deleted) accumulate. Acceptable trade-off: disk is cheap, single-
|
|
321
|
+
user setup.
|
|
322
|
+
|
|
323
|
+
## Persona files: never without a backup
|
|
324
|
+
|
|
325
|
+
A persona file of any agent — `AGENTS.md`, `SOUL.md`, `USER.md`,
|
|
326
|
+
`VOICE.md`, `agent.yaml` under `~/.somora/agents/<name>/` — stays
|
|
327
|
+
writable through `file_write` and `file_patch` (agents edit themselves
|
|
328
|
+
and, by design, each other), but the current file is copied to
|
|
329
|
+
`<file>.bak-<timestamp>` first and the result names that copy in
|
|
330
|
+
`backup`; the last five backups are kept, like the web editor does. A
|
|
331
|
+
chat agent once overwrote another agent's `AGENTS.md` with one byte in a
|
|
332
|
+
test, and the persona was gone.
|
|
333
|
+
|
|
334
|
+
## Limits
|
|
335
|
+
|
|
336
|
+
A builder agent pinned to a project folder may write only there and in
|
|
337
|
+
its temp folder; see [builder.md](builder.md#where-a-builder-may-write).
|
|
338
|
+
|
|
339
|
+
| Tool | Cap | Notes |
|
|
340
|
+
|---|---|---|
|
|
341
|
+
| `file_read` | 2000 lines per call by default (`limit`), 200 000 chars hard cap, 2000 chars per line | Text comes back numbered: every line is `N: text` with its 1-based line number, so the model can cite `path:line` and copy exact lines into `file_patch` (without the prefix). `offset` is the number of lines to skip (0-based), `limit` the number of lines. The result carries `range` (first/last line shown), `lines` (total) and a `summary`: `End of file (N lines).` or `Showing lines a-b of N. Continue with offset=b.` — plus `next_offset` while there is more. A line longer than 2000 chars is cut with `… [line cut at 2000 chars]`. Missing files surface as `file_read: file_not_found at '<path>'. Did you mean: a.ts, b.ts?` with up to three near names from the same directory. Errors on binary files — images and PDFs point at `analyze_file`, other binaries at `exec`. |
|
|
342
|
+
| `file_write` | none on input; 100 000 char result envelope | Atomic via tmp+rename. Over SSH the rename uses `posix-rename@openssh.com` so an existing target is replaced; servers without the extension get unlink+rename. |
|
|
343
|
+
| `file_patch` | requires `old_string` to be unique unless `replace_all=true` | Exact match first; when the file differs from `old_string` only in whitespace, indentation, line endings, escaped characters or a copied `N: ` line-number prefix, the closest *unique* block is used (see "Tolerant matching" below). The result carries `strategy`, the replaced `lines` range, a `diff` of the changed lines with original line numbers, and a `note` whenever tolerance was needed. |
|
|
344
|
+
| `file_search` | 50 hits default, 500 max; hit text is the whole line up to ~500 chars, longer lines windowed ±500 chars around the first match (`col` = column, `truncated` marks a cut line); 100 000 chars of hit text per call, then `truncated: true` | Needs `rg` (ripgrep) on the target machine. `include` narrows to a glob (`*.ts`, `*.{ts,tsx}`, `src/**`, `!*.test.*`), `case_insensitive` ignores case, `context` (0-5) adds `before`/`after` line arrays to each hit, `files_only` returns just `files` (the matching paths). `path` may be a directory or a single file. |
|
|
345
|
+
| `file_list` | 5000 entries per call (default 200) | Path resolution + read-policy identical to `file_read`. Recursive listings skip what `.gitignore`/`.ignore` exclude (`node_modules`, build output) by way of `rg --files`; `respect_gitignore: false` lists everything. Directories on the way to a kept file are still listed. Missing dirs surface as `file_list: file_not_found at '<path>'`. |
|
|
346
|
+
|
|
347
|
+
### Tolerant matching in `file_patch`
|
|
348
|
+
|
|
349
|
+
A model's `old_string` is a reconstruction of what it read, and small models reconstruct badly: a level of indentation missing, a tab for four spaces, `\n` sent as two characters, or the `12: ` prefix copied from a numbered read. Byte-exact matching turned each of those into "not found" and a retry with the same mistake. `file_patch` now locates `old_string` with a chain of matchers, in this order, and uses the first one that yields exactly one match (or any number with `replace_all`):
|
|
350
|
+
|
|
351
|
+
1. `exact` — byte-exact, always tried first and always wins when it matches.
|
|
352
|
+
2. `line_trimmed` — lines compared without leading/trailing whitespace.
|
|
353
|
+
3. `block_anchor` — for blocks of three or more lines: first and last line identical (trimmed), the block may be up to a quarter longer or shorter, middle lines compared by edit-distance similarity (threshold 0.65); with several candidates the clearly most similar one.
|
|
354
|
+
4. `whitespace_normalized` — runs of whitespace treated as one; for a single-line `old_string` also as a substring of a line.
|
|
355
|
+
5. `indentation_flexible` — common leading indentation removed on both sides.
|
|
356
|
+
6. `escape_normalized` — `\n`, `\t`, `\"`, `\\` and friends in `old_string` unescaped.
|
|
357
|
+
7. `trimmed_boundary` — leading/trailing whitespace of the whole `old_string` ignored.
|
|
358
|
+
8. `context_aware` — anchors at both ends, same length, at least half of the non-empty middle lines identical.
|
|
359
|
+
|
|
360
|
+
Before the chain runs on an `old_string` whose lines all start like `12: `, the prefixes are stripped (`note` says so). Two brakes: a tolerant match whose span is far larger than `old_string` (≥ twice the lines, or +3 lines, or ×4 the characters) is refused with a request to re-read and pass the exact text; and inside somora's own home (`~/.somora` — config, persona files, memory) only `exact` runs, because a wrong-place edit there costs the most. CRLF files are matched on LF and written back as CRLF. When several matchers see more than one candidate and none sees exactly one, the error says so and asks for more context or `replace_all`.
|
|
361
|
+
|
|
362
|
+
### Full copies of shortened output
|
|
363
|
+
|
|
364
|
+
When a tool result is shortened — `exec` output beyond its ~60 000-char budget (or the 256 KB capture cap), or any result over its size cap — the full text is written under `~/.somora/agents/<agent>/tool-output/` and the result names the file (`stdout_file`, `stderr_file`, `full_output_file`) with a hint to `file_read` a window of it or `file_search` inside it instead of re-running the command. Files older than seven days are removed (sweep at boot and hourly).
|
|
365
|
+
| `analyze_file` | `attachments.maxImageBytes` (5 MB default) / `attachments.maxPdfBytes` (32 MB) | Local files only; worker on openai-compatible engine. **Hidden from the model entirely when `config.vision.worker` is unset or the active model has the `image` capability itself** (the same path-resolution + read-policy as `file_read` applies). |
|
|
366
|
+
|
|
367
|
+
`rg` not installed → clear error: `file_search: ripgrep (rg) not found
|
|
368
|
+
on PATH. Install via your package manager (brew/apt/dnf/pacman) or set
|
|
369
|
+
$RG_BIN to a custom location.` We deliberately don't ship a JS fallback walker —
|
|
370
|
+
parity with rg's defaults (.gitignore-respect, encoding handling) is
|
|
371
|
+
worth the dependency.
|
|
372
|
+
|
|
373
|
+
## Examples (what the agent sees)
|
|
374
|
+
|
|
375
|
+
```jsonc
|
|
376
|
+
// Local read
|
|
377
|
+
{ "name": "file_read", "input": { "path": "notes.md" } }
|
|
378
|
+
// → reads <workspace>/notes.md
|
|
379
|
+
|
|
380
|
+
// Remote read
|
|
381
|
+
{ "name": "file_read", "input": { "path": "/tmp/log.txt", "target": "<resource-name>" } }
|
|
382
|
+
// → SFTP read via that resource
|
|
383
|
+
|
|
384
|
+
// Remote search
|
|
385
|
+
{ "name": "file_search", "input": { "pattern": "TODO", "path": "src/", "target": "<resource-name>" } }
|
|
386
|
+
// → ssh <resource-name> 'rg --json --max-count 50 "TODO" /home/.../src/'
|
|
387
|
+
```
|