friend-assistant 0.1.74 → 0.1.76
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/README.md +23 -2
- package/dist/BUILD.json +2 -2
- package/dist/friend.mjs +702 -233
- package/dist/web/assets/{OrgParts-Do6LghTp.js → OrgParts-CM2xnuN_.js} +1 -1
- package/dist/web/assets/index-FPgjGCX7.js +4460 -0
- package/dist/web/assets/{jarvis-ui-BAYSuxFl.js → jarvis-ui-BoTJG93C.js} +1 -1
- package/dist/web/assets/jarvisTree-CkaEqJq7.js +1 -0
- package/dist/web/assets/ort-wasm-simd-threaded.jsep-Dt5UNR3U.wasm +0 -0
- package/dist/web/assets/ort.bundle.min-B1wioMLY.js +2877 -0
- package/dist/web/index.html +1 -1
- package/dist/web/models/sface.LICENSE +202 -0
- package/dist/web/models/sface.onnx +0 -0
- package/dist/web/models/yunet.LICENSE +21 -0
- package/dist/web/models/yunet.onnx +0 -0
- package/dist/web/ort/ort-wasm-simd-threaded.mjs +60 -0
- package/dist/web/ort/ort-wasm-simd-threaded.wasm +0 -0
- package/package.json +1 -1
- package/dist/web/assets/index-D-7sGBTA.js +0 -4460
- package/dist/web/assets/jarvisTree-UR7AWNFs.js +0 -1
package/README.md
CHANGED
|
@@ -141,7 +141,7 @@ Connectors (Gmail, Chrome control, any MCP service) are managed inside the app,
|
|
|
141
141
|
| Key | What it is |
|
|
142
142
|
|---|---|
|
|
143
143
|
| `provider` | Which model answers: `claude` (API key), `claude-code` (your subscription), `ollama` (this PC) or `openai` (any OpenAI-compatible server, such as OmniRoute). |
|
|
144
|
-
| `approvals` | How much Friend asks before acting: `manual` (asks every time, the default), `edits` (file work and the sandboxed code runner go ahead) or `auto` (commands and tools go ahead too). Risky commands (they need your PIN), the camera, adding connectors or plugins, and Friend's own data folder always ask, in every mode. The AI cannot change this. Easier: Esc → Settings → Approvals. |
|
|
144
|
+
| `approvals` | How much Friend asks before acting: `manual` (asks every time, the default), `edits` (file work and the sandboxed code runner go ahead) or `auto` (commands and tools go ahead too). Risky commands (they need your PIN), the camera (unless you switched the eye on and are talking at the screen, see "The eye"), adding connectors or plugins, and Friend's own data folder always ask, in every mode. The AI cannot change this. Easier: Esc → Settings → Approvals. |
|
|
145
145
|
| `ownerName` | Your name, shown on the profile badge (a shield in the corner) while you are signed in; it shows whoever Friend just recognized when they speak. Empty shows "Owner". |
|
|
146
146
|
| `apiKey`, `model` | The Anthropic API key and the Claude model used with it. |
|
|
147
147
|
| `claudeCode.model`, `claudeCode.command`, `claudeCode.fallback` | The subscription route: model (`sonnet`, `haiku`, `opus`), the command that starts Claude Code, and `ollama` or `none` for what to use when Claude is unavailable. |
|
|
@@ -157,6 +157,7 @@ Connectors (Gmail, Chrome control, any MCP service) are managed inside the app,
|
|
|
157
157
|
| `session.autoCompact` | With Claude Code, Friend keeps one long conversation and re-reads all of it for every answer. On (default): when it grows past `session.compactAtTokens`, Friend writes short notes on it and starts a fresh conversation from them before the next answer. Off: it only tidies when you press Tidy up now. |
|
|
158
158
|
| `session.compactAtTokens` | How big the conversation may grow before it is tidied up by itself, in tokens (50000 to 800000, default 100000). A fresh conversation already starts near 36000. |
|
|
159
159
|
| `voice.enabled`, `voice.sttModel`, `voice.ttsVoice`, `voice.language`, `voice.speakTyped`, `voice.duck`, `voice.duckPercent`, `voice.accept`, `voice.challenge` | Speech on or off, the listening model, the speaking voice, a forced language, speaking typed replies, turning music and video down while you talk and while Friend speaks (and how far, in percent), and the two thresholds for recognising your voice. |
|
|
160
|
+
| `eye.autoOffMinutes` | Minutes until the camera eye switches itself off (0 to 1440, default 120; 0 means only when you switch it off). The eye itself (Friend looks through the camera without asking each time, only when you talk to it at the screen) is switched on, with your PIN, in Esc → Settings → Approvals, and is always off after a restart or sign-out. |
|
|
160
161
|
| `codeRunner` | Where the code the assistant writes runs: `auto` (the default: Docker when it is installed and running, otherwise the sandbox built into Friend), `sandbox` (always the built-in one, nothing to install) or `docker` (always Docker). Easier: Esc → Settings → Approvals. Changing it needs your PIN. |
|
|
161
162
|
| `phoneApprovals.enabled`, `phoneApprovals.channel`, `phoneApprovals.delaySec`, `phoneApprovals.buttons`, `phoneApprovals.allowRisky`, `phoneApprovals.batchSec` | Approving from your phone when you are away from the screen: on or off, which linked app is asked (`auto`, `telegram`, `whatsapp`), how many seconds to wait for the screen first (0 to 110), Telegram Allow / Deny buttons, whether the camera and the Office's requests may also be answered there, and how many seconds (0 to 30) questions that pile up are gathered into one message. See `docs/guides/phone-approvals.md`. |
|
|
162
163
|
| `audit.keepDays`, `audit.archive`, `audit.sealAt`, `audit.unlockMinutes` | The audit trail: days kept before older entries are archived and removed (90; 0 keeps everything), whether a verifiable archive is kept, the time the daily seal goes to your phone (09:00; empty turns it off), and how many minutes the audit screen stays open after your PIN (10). |
|
|
@@ -515,7 +516,7 @@ Say "remind me in 30 minutes to call the bank", "remind me tomorrow at 5pm to se
|
|
|
515
516
|
Ask "what is this?" while you hold something up to the camera, and Friend can look. It works one picture at a time:
|
|
516
517
|
|
|
517
518
|
1. The camera is **off** until you turn it on: press **Esc**, choose **Camera: off** (it becomes **Camera: on**). The switch is not remembered; a reload turns it off again.
|
|
518
|
-
2. When the agent wants to look it calls `camera.snap
|
|
519
|
+
2. When the agent wants to look it calls `camera.snap` (one picture) or `camera.watch` (a few seconds, up to 12 pictures), and an approval card appears: "Take one picture with the camera and show it to the AI model". There is no "Always allow" for the camera. The one exception is the eye (below).
|
|
519
520
|
3. After you approve, the browser opens the camera, takes one frame (JPEG, longest side 1024 px), closes the camera and uploads the frame. While the camera is open a red **Camera on** badge with a small live preview shows in the corner; the agent cannot hide it.
|
|
520
521
|
|
|
521
522
|
- The picture is shown to the model for that turn only. It is never written to disk, never saved in the conversation history (history keeps "[camera picture, not kept]"), and the audit log records only its size. Guests can never use the camera.
|
|
@@ -524,6 +525,26 @@ Ask "what is this?" while you hold something up to the camera, and Friend can lo
|
|
|
524
525
|
- Like the microphone, the camera needs `localhost` or HTTPS.
|
|
525
526
|
- Text inside a picture is treated as data, never as instructions.
|
|
526
527
|
|
|
528
|
+
### The eye: letting Friend look by itself
|
|
529
|
+
|
|
530
|
+
If you do not want to approve every look, switch **the eye** on (Esc → Settings → Approvals → The eye; it needs your PIN). While it is on, Friend uses the camera whenever it needs to see, and when in doubt, without a card. It is deliberately narrow:
|
|
531
|
+
|
|
532
|
+
- **Only you, at the screen.** It works for what you type or say to Friend on its own screen. A message from Telegram or WhatsApp, a voice from Alexa, a guest, a household member, the Office workers and scheduled tasks can never make it look: those keep asking.
|
|
533
|
+
- **Off by default, and it switches itself off:** after the minutes you chose (`eye.autoOffMinutes`, default 120, 0 = never), when you sign out, and whenever Friend starts again. Closing it needs no PIN. The AI cannot switch it on or change it.
|
|
534
|
+
- **Limits you cannot raise:** 20 looks and 30 seconds of video per hour without a card, 10 seconds and 12 pictures per clip; after that the card comes back.
|
|
535
|
+
- **Always visible:** the red camera badge shows whenever the camera is open. Every look is written in the audit log (when, how, from where), never the picture.
|
|
536
|
+
- **Nothing is kept.** Pictures are seen once and thrown away; only text notes (such as "Priya visited at 4 pm") stay.
|
|
537
|
+
- **Where pictures go:** to the AI model you chose. With Claude (API or Claude Code) a picture is sent to Anthropic; with a local Ollama vision model it stays on this PC.
|
|
538
|
+
|
|
539
|
+
### People Friend remembers
|
|
540
|
+
|
|
541
|
+
Say "this is Priya, my sister" while she is in front of the camera, and Friend asks for your PIN, takes one look (it must show exactly one face) and remembers her. What is kept is **128 numbers about the face, encrypted on this PC** (like your keys), never a picture. After that, when Friend looks and Priya is there, it is told "Recognised: Priya (sister)". Faces nobody introduced are never saved and never named; the assistant is only told "1 person I do not know".
|
|
542
|
+
|
|
543
|
+
- Settings → Approvals → *People Friend remembers* lists everyone, with **Remove** for one person and **Forget everyone** (both need your PIN and delete the numbers and the notes about them). Up to 50 people.
|
|
544
|
+
- Introducing, removing and forgetting work only at the Friend screen.
|
|
545
|
+
- Recognition is a hint, never proof: a photo or a look-alike can fool it, so a face never approves anything and never replaces your PIN. The models are YuNet (MIT) and SFace (Apache 2.0), run in your browser, with no internet needed; their licences are in `web/models` in the package.
|
|
546
|
+
- Face data is sensitive personal data (India's DPDP Act, the EU's GDPR). Introduce only people who know and agree, and not children.
|
|
547
|
+
|
|
527
548
|
## Safety model
|
|
528
549
|
|
|
529
550
|
- Reading is free, writing inside your workspace is free, shell commands ask first, destructive commands ask and need your PIN.
|
package/dist/BUILD.json
CHANGED