Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions ACCEPTANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@ Run on macOS 14+ with the released `Howler.dmg` (or `Howler.zip`). Mark each ite

## 2. 全局快捷键与面板 / Hotkey & panel

- [ ] 在任意应用(Finder、Safari、全屏应用)中按 ⌥H 呼出信纸,位于当前屏幕上方居中,带纸张落下的动画与火漆印“盖章”动画
- [ ] 在任意应用(Finder、Safari、全屏应用)中按 ⌥H 呼出信纸,位于当前屏幕上方居中。纸面和火漆首帧就完整可见,背景文字不透进纸面。
- [ ] 信纸已聚焦时再按 ⌥H:暂时收起;再次呼出恢复原对话、草稿及排队问题
- [ ] 等长回答完全显示后收起再呼出:信纸保持展开高度;烧掉后再呼出恢复空白小信纸。移动到较小屏幕时高度不超出可用区域
- [ ] 在长回答生成期间观察信纸:顶部和左右位置不变,纸面随内容向下展开到 560 点上限(或屏幕底边)后停止,超出内容在纸内滚动;收起再打开保持展开后的高度。用户手动调整高度后,再发长问题不再自动改高。
- [ ] 把信纸拖到屏幕四边,允许阴影或部分纸面超出屏幕;松手不回弹,后续收到回答也不把窗口拉回屏幕内。内容不变时,收起重开、截图成功或取消后,仍保持相同位置和尺寸。拔掉显示器导致信纸离开可用屏幕时,信纸回到可见区域。按 Esc 关闭后打开新信,恢复默认位置和大小。
- [ ] 从纸面顶部、侧边留白、页脚和空信纸中部可拖动窗口。拖动输入框或正文中的文字仍选中文字;滚动正文、点击火漆和附件仍有效。
- [ ] 从纸面四边或四角拖动可调整宽高,方向光标与拖动方向一致,对边保持原位。只改宽度时,回答重新换行并在自动上限内按需展开高度;手动改高后保持所选高度。
- [ ] 在有长回答的信纸上,从任意边或角向内拖到最小。聊天纸面不小于 480 × 300 点(可用屏幕本身更小时除外)。手动缩短信纸后,再展开附件或积累几条排队问题,窗口不变高,输入框和页脚仍可用,附件、排队问题和正文可以在纸内滚动。
- [ ] 信纸出现时输入框自动获得焦点,可直接输入;前台应用不会被切走(菜单栏仍显示原应用名)
- [ ] 中文输入法:可正常输入拼音选词;选词过程中按 Esc 只取消组字,不关闭信纸
- [ ] ⌘V / ⌘C / ⌘A / ⌘Z 在输入框中可用
- [ ] Esc 或右下角火焰烧掉信纸并立即清空;火焰不遮挡页脚或正文;点击纸外或阴影只交出焦点,回答继续;其他应用中的 Esc 不影响信纸
- [ ] 连续呼出信纸并按 Esc 至少三次。每次燃烧开始时,纸边、火漆印和正文都留在原位。
- [ ] 燃烧中再按 ⌥H:立即出现一张新的空白信纸
- [ ] 信纸右下角没有火苗按钮。按 Esc 立即关闭并清空对话,不播放动画。点击纸外或阴影只交出焦点,回答继续;其他应用中的 Esc 不影响信纸。
- [ ] 在羽毛笔思考或书写时按 Esc,再立即按 ⌥H,显示空白新信,不出现旧回复。
- [ ] 从菜单或火漆印打开 Settings:信纸直接收起并保留会话;从菜单打开信纸只唤回,不反向收起
- [ ] 多显示器:在鼠标所在屏幕上弹出
- [ ] 未配置时,信纸显示 “This parchment has no ink yet.” 与 “Open Settings” 按钮,点击打开设置
Expand All @@ -56,13 +59,14 @@ Run on macOS 14+ with the released `Howler.dmg` (or `Howler.zip`). Mark each ite
- [ ] DeepSeek 下带图片发送:请求照常发出;模型能读图则回答图片内容,不能则显示 DeepSeek 返回的错误(Howler 不预先拦截)
- [ ] 不主动粘贴或截屏时,Howler 从不读取剪贴板(macOS 15.4+ 不会弹出“允许粘贴”提示)
- [ ] 点左上角火漆印:菜单显示 “Written by <模型>”(悬停显示完整配置)与 Settings…;页脚显示 “模型 · 主机”
- [ ] 发送后先出现悬停的羽毛笔与 “The quill is thinking…”,2 秒后显示秒数
- [ ] 发送后立即出现问题和思考行,慢首包也一样。羽毛笔轻微悬停,2 秒后显示秒数,数字增加时思考文字不移动。
- [ ] 快速替换附件,再收起和重开。火漆只在附件变化时轻压一次,附着状态和按钮始终可见。
- [ ] 回答逐字显现、新字带金色微光;macOS 15+ 羽毛笔停在最后一个字之后;macOS 14 停在段落末尾
- [ ] 最新一轮问题和回答紧贴输入框下方,旧轮次依次向下排列;纸张随回答向下变长,达到 A4 比例或屏幕可用高度后顶部保持不动,超出内容在底部渐隐,可向下滚动阅读
- [ ] 书写中向下滚动阅读旧轮次:上方回答变长时所读位置保持不动;主动按回车发送后回到顶部,减少动态效果开启时不带滚动动画
- [ ] 最新一轮问题和回答排在旧对话之前,超出纸面的内容在底部渐隐,可向下滚动阅读
- [ ] 书写中向下滚动阅读旧轮次:上方回答变长时所读位置保持不动;主动按回车发送后直接回到顶部
- [ ] 回答写完后出现 ❧ Copy;点击或按 ⌘C(未选中文字时)复制整条回答,显示 ✓ Copied;在输入框或回答里选中一段文字后按 ⌘C,只复制选中的部分
- [ ] 多轮对话之间有 ❦ 花饰分隔;停在顶部时排队任务开始仍显示最新一轮,向下阅读旧轮次时自动开始下一轮不打断阅读
- [ ] 系统设置开启“减少动态效果”:无落纸、盖章、火漆光晕、燃烧和逐字动画,文字随到随显,关闭时直接消失
- [ ] 系统设置开启“减少动态效果”:火漆不轻压、羽毛笔不摆动、文字随到随显。思考文字和计时仍可读。


## 2b. 截图介绍与排队 / Screenshot introductions and queued replies
Expand All @@ -80,8 +84,8 @@ Run on macOS 14+ with the released `Howler.dmg` (or `Howler.zip`). Mark each ite
- [ ] 再截图不改变已有草稿/排队项的图片关联;可显式切换,发送后仍可预览原图
- [ ] 停止或网络错误后暂停队列;Retry 不重复用户轮且替换旧的部分答案;Skip 保留“不完整”标记并继续
- [ ] 模型服务、模型或 Key 改动暂停队列;仅语言和系统指令变动不取消当前项,作用于后续提交任务
- [ ] 焚烧后立即再开、旧流/截图/动画晚到时,新会话没有旧内容;退出后不恢复
- [ ] 火焰入口深浅色可见、可键盘聚焦、读屏能识别;预览中的 Esc 先关闭预览,第二次才焚烧
- [ ] 按 Esc 关闭后立即再开。旧请求或截图晚到时,新会话没有旧内容;退出后不恢复。
- [ ] 预览中的 Esc 只关闭预览。再次按 Esc 才关闭信纸并清空对话。
- [ ] 截图快捷键可独立录制/重置;与普通/设置快捷键冲突时拒绝或明确提示,保留旧快捷键迁移
- [ ] 普通粘贴、选择复制、输入法组字和 Reduce Motion 不回归

Expand Down Expand Up @@ -173,7 +177,7 @@ Run on macOS 14+ with the released `Howler.dmg` (or `Howler.zip`). Mark each ite

## 4. 各服务真实流式 / Per-service real streaming

- [ ] 在设置选择本机 Magpie 图片模型,用合成截图提问。回答途中点焚信,再开新信。检查取消记录、新信内容、用量日志及图片缓存。切回原服务后确认原配置可用。
- [ ] 在设置选择本机 Magpie 图片模型,用合成截图提问。回答途中按 Esc 关闭,再开新信。检查取消记录、新信内容、用量日志及图片缓存。切回原服务后确认原配置可用。

对每个预设:用 `config set preset=…` 写入并保存 Key、`check` 通过后,呼出面板,发送下列提示词。
For each preset: `config set preset=…`, save a key, pass `check`, open the panel, send the prompts below.
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Howler is a macOS 14+ menu bar app (Swift 5.10, SwiftPM). `HowlerCore` holds the
## Engineering boundaries

- Keep protocol, request and parsing logic in `HowlerCore`, with focused tests. Keep AppKit, SwiftUI, Keychain and other macOS integrations in `Howler`.
- Conversations stay in memory and are cleared when the letter burns or the app quits; conceal and focus loss retain them. Stop cancelled streams from writing into a later conversation. Screen capture uses a temporary file: keep its cleanup and describe that exception accurately.
- Conversations stay in memory. Esc closes the letter immediately and clears the conversation; quitting also clears it. Conceal and focus loss retain the conversation. Stop cancelled streams from writing into a later conversation. Screen capture uses a temporary file: keep its cleanup and describe that exception accurately.
- API keys belong in Keychain, never command arguments, logs, fixtures or documentation. Read the clipboard and screen only after a user action; use an ephemeral session for chat requests.
- Preserve input-method composition, selection-aware copy, Reduce Motion, and legacy configuration/shortcut migration. Add manual checks when behavior changes.
- The Settings footer shows either the current version or one Update button. A click authorizes only the offered update, including restart; cancellation, failure or session end clears that consent. Keep download validation and installation in Sparkle, with its progress and error UI. Informational and major-upgrade offers retain Sparkle's standard confirmation.
Expand Down
35 changes: 15 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<p align="center">
A sealed letter for your quick questions on macOS.<br>
Write on the parchment, a quill writes the answer back, and the letter burns when you're done.
Write on the parchment, and a quill writes back. Press Esc when you're done.
</p>

<p align="center">
Expand All @@ -36,23 +36,16 @@

Press **⌥H** anywhere. A letter settles at the top of the screen, already sealed in wax.

- **Parchment, not a text box.** The paper has deckled edges, fibers and a fold crease. The newest question and its answer sit just below the writing line, with earlier exchanges beneath them. The sheet grows downward up to an A4 page or the available screen height, then stays in place as the answer continues below the fold. Scroll down to read more; sending a question returns to the top.
- **Parchment, not a text box.** The paper has deckled edges, fibers and a fold crease. The newest exchange appears first. The sheet grows downward with the reply up to a compact height limit (or the screen bottom), then stays in place while longer replies, the queue, and open attachments scroll inside. Resizing the height manually locks it until you close the letter. Sending a question returns to the top.
- **A quill that writes.** Answers stream in at a hand's pace. Fresh ink glows gold before it settles to sepia, and the quill rests after the last word. While the model thinks, the quill hovers and counts the seconds.
- **Wax seals.** The crimson seal names the model writing to you. Paste a long text or a picture, or capture a region of the screen, and it is sealed into an amber seal cut with runes instead of filling your question.
- **Burn after reading.** Press Esc or click the flame in the bottom-right corner, and the letter catches fire at its bottom edge. Scorch, embers and sparks climb to the seal, and the conversation goes with them. Nothing is saved.
- **Burn after reading.** Press Esc to close the letter and clear the conversation immediately. Press ⌥H instead if you want to set it aside and come back to it later.

<table>
<tr>
<td width="50%"><img src="docs/images/burning.png" alt="The letter burning from its bottom edge"></td>
<td width="50%"><img src="docs/images/letter-dark.png" alt="The letter on candlelit paper in Dark Mode"></td>
</tr>
<tr>
<td align="center"><em>Esc, and it burns</em></td>
<td align="center"><em>Candlelit paper in Dark Mode</em></td>
</tr>
</table>
<p align="center">
<img src="docs/images/letter-dark.png" width="540" alt="The letter on candlelit paper in Dark Mode">
</p>

Reduce Motion turns off the falling paper, the stamping, the ink shimmer and the fire. The text simply appears.
Reduce Motion turns off movement in the wax seal and quill. Replies appear as text arrives.

## Install

Expand All @@ -73,7 +66,7 @@ Releases before v0.1.4 were ad-hoc signed. If Gatekeeper stops one of those, rig

## Set up a model

When Howler detects models in a running local Magpie app, Settings → General offers **Subscription**. Pick a model marked **Images** for screenshots. You can switch to **API Key** to use your own provider key. Howler remembers both setups. Burning clears the letter in Howler. Magpie and its model provider manage their own records.
When Howler detects models in a running local Magpie app, Settings → General offers **Subscription**. Pick a model marked **Images** for screenshots. You can switch to **API Key** to use your own provider key. Howler remembers both setups. Esc closes the letter and clears the conversation in Howler. Magpie and its model provider manage their own records.

Howler writes with one model service. The setup is short enough to hand to an AI assistant.

Expand Down Expand Up @@ -135,7 +128,9 @@ The model can't search the web: it answers from what it was trained on, and the
| **⌘C** | Copy the latest answer (or click ❧ Copy). With text selected, it copies the selection. |
| **+ Attach** | Paste from the clipboard, or capture a screen region |
| **⌘V** | Short text goes into the question. Text of 280+ characters or 3+ lines, or a picture, is sealed as an attachment, including an image copied in a browser or an image file copied in Finder. |
| **Esc** / bottom-right flame | Burn and clear the letter. Esc first cancels composition, capture or an open preview. |
| **Esc** | Close the letter and clear the conversation. Esc first cancels composition, capture or an open preview. |
| **Drag blank paper** | Move the letter without selecting text or disturbing the conversation. |
| **Drag any edge or corner** | Resize the letter. Concealing it preserves the size and position; closing it with Esc resets both. |
| **Click outside** | Return focus to the other app; keep the letter and replies. |

Capture and Explain sends your selected region to the configured model immediately and starts an introduction. Pasted text and pictures still wait for you to send. While the model thinks or writes, type follow-ups and press Return to queue them: the introduction appears first, then each answer in order. Use Edit on a waiting question when the input is empty to restore it; sending it again places it at the end. ⏹ stops the current reply and pauses the queue, keeping partial text. Retry reply replaces that attempt; Skip and continue keeps it as incomplete context. Network errors pause the queue too.
Expand All @@ -148,14 +143,14 @@ The Shortcuts app can start the same capture without a keyboard shortcut. Add th

Settings › General › Reply language follows your macOS preferred language by default, regardless of the screenshot language, or lets you choose a language. An explicit language request in a question overrides the default for that turn. Custom system instructions may affect how well the model follows it.

Concealing the letter, clicking outside or opening Settings keeps the conversation in memory. Burning it or quitting clears it; restarting does not restore it. A model setup or key change pauses the queue until you explicitly continue. Leave out passwords and other secrets. Screen capture asks for Screen & System Audio Recording permission the first time. Howler only takes a still image of the region you drag and never records audio; macOS simply grants screen and audio access together.
Concealing the letter, clicking outside or opening Settings keeps the conversation in memory. Closing it with Esc or quitting clears it; restarting does not restore it. A model setup or key change pauses the queue until you explicitly continue. Leave out passwords and other secrets. Screen capture asks for Screen & System Audio Recording permission the first time. Howler only takes a still image of the region you drag and never records audio; macOS simply grants screen and audio access together.

## Privacy

- No chat history, ever. Messages and parsed-answer caches are cleared when the letter burns or the app quits. A concealed letter stays in memory. A screen capture uses a temporary PNG that Howler attempts to delete after reading it.
- No chat history, ever. Messages and parsed-answer caches are cleared when you close the letter with Esc or quit the app. A concealed letter stays in memory. A screen capture uses a temporary PNG that Howler attempts to delete after reading it.
- Stored: the model setup, its last check, your system prompt instructions, three optional shortcuts and reply language preference (UserDefaults), plus the API key (Keychain).
- The system prompt carries the date in UTC; tasks add the necessary reply language instruction. They send no full system language list, name, region, time zone or location.
- The clipboard and the screen are read only when you paste or capture. Capture and Explain sends the selected region immediately. Burning local content does not delete data retained by your model service.
- The clipboard and the screen are read only when you paste or capture. Capture and Explain sends the selected region immediately. Clearing the local conversation does not delete data retained by your model service.
- No logs, no telemetry. Network requests use an ephemeral `URLSession`.
- Update checks fetch `appcast.xml` from Howler's latest GitHub Release, at most once a day, and only after you allow it. They send no system profile; GitHub sees only the request, with the app and Sparkle versions in its User-Agent. Turn them off in Settings › General.
- The command line never prints the key.
Expand All @@ -179,7 +174,7 @@ Debug builds include a demo mode that needs no key and no network:

```bash
swift build
HOWLER_DEMO=1 .build/debug/Howler # also: long, multi, burn, image, setup, settings
HOWLER_DEMO=1 .build/debug/Howler # also: long, multi, dismiss, reopen, image, setup, settings
HOWLER_DEMO_DARK=1 HOWLER_DEMO=1 .build/debug/Howler
```

Expand Down
Loading
Loading