Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
8f2f86b
Add opt-in local MCP speech and instruction profiles
lseongjoo Nov 21, 2026
b98b2ce
Add external-agent explanation draft workspace
lseongjoo Nov 21, 2026
c77d20e
Rename the explanation workspace to Agent
lseongjoo Nov 21, 2026
8adf2ed
Add exact Agent profiles and provenance-gated draft intake
lseongjoo Nov 21, 2026
d973359
Harden Agent catalog persistence and local helper lifecycle
lseongjoo Nov 21, 2026
90425e9
Verify entitlement-free Agent socket peers
lseongjoo Nov 21, 2026
f39e7a1
Pair bundled agent MCP automatically before scoped approval
lseongjoo Nov 22, 2026
24ad2c4
Make explicit agent profile selection and incoming previews immediate
lseongjoo Nov 22, 2026
b24c4e5
Copy bundle-specific Codex and Claude Code MCP setup
lseongjoo Nov 22, 2026
6b7f8ff
Edit saved agent instructions inline and filter the profile chooser
lseongjoo Nov 22, 2026
3685056
Show agent activation outcomes and bridge helper arrival order
lseongjoo Nov 22, 2026
3adbd16
Present the agent workflow as four distinct numbered steps
lseongjoo Nov 22, 2026
c3af0d8
Receive drafts in an editable workbench independent of optional instr…
lseongjoo Nov 22, 2026
3e0e5ea
Fix received draft confirmation and helper session boundaries
lseongjoo Nov 22, 2026
22be8b1
Preserve received drafts and separate instruction sharing selection
lseongjoo Nov 22, 2026
d6b2417
Build an isolated local Agent preview for macOS 14
lseongjoo Nov 22, 2026
ca1fffc
Apply cross-review fixes and add a full-app review build
lseongjoo Nov 23, 2026
4e4f30a
Keep an approved local agent connected across idle time and restarts
lseongjoo Nov 23, 2026
ac1fa84
Give drafts a separate title, a stored unlimited list, and a format g…
lseongjoo Nov 23, 2026
c21eb08
Keep unsaved editor text when parking fails and reopen manual drafts …
lseongjoo Nov 25, 2026
bced973
Merge pull request #23 from codebasic/recovery/pre-process-features
lseongjoo Nov 25, 2026
05e167b
Isolate agent app connections and approvals (#13)
lseongjoo Nov 25, 2026
f46e566
Remember approval per agent app without an opt-in key or idle expiry …
claude Nov 25, 2026
72984f5
Log agent app connect, approve and revoke decisions (#13)
claude Nov 25, 2026
8661758
Document how to collect [AGENT-CONN] logs (#13)
claude Nov 25, 2026
a9d561e
Fix connect outcome type in agent connection log (#13)
claude Nov 25, 2026
51d4a75
Identify the agent app off the main thread and once per process (#13)
claude Nov 25, 2026
99adc38
Keep the agent client key in a private file instead of the Keychain (…
claude Nov 25, 2026
18aac11
Match the approval button name and log level in the agent docs (#13)
claude Nov 25, 2026
15da9e9
Update trust store test for approvals without idle expiry (#13)
claude Nov 25, 2026
b4475eb
Reset rate allowance on manual re-enable and publish keys with an exc…
claude Nov 25, 2026
0d961e0
Merge pull request #15 from codebasic/claude/project-thread-cvhl30
lseongjoo Nov 25, 2026
37285f5
Restore candidate SHA record and verifier no-change rule; drop unrevi…
claude Nov 28, 2026
0c58191
Adopt multi-agent-dev independent review assignment and PR gate (#4)
claude Nov 28, 2026
13821f6
Address independent review findings on deadlock/gate interaction (#4)
claude Nov 28, 2026
e142df3
Merge multi-agent-dev review guidance into integration/issue-4 (#32, #4)
lseongjoo Nov 28, 2026
f7d715c
Sync independent review guidance with multi-agent-dev main 4e532a3 (#4)
claude Nov 28, 2026
b87646c
Connect approved agent apps when the Agent tab is open (#31)
claude Nov 28, 2026
d77c556
Merge remote-tracking branch 'origin/integration/issue-4' into claude…
claude Nov 28, 2026
751e58d
Narrow five-lens sentence to the classification only (#4)
claude Nov 28, 2026
dc14641
Import notify for notify_post / notify_register_dispatch (#31)
lseongjoo Nov 28, 2026
5a5ecf0
Compare jittered delay with a tolerance in trust store tests (#31)
lseongjoo Nov 28, 2026
b286b69
Merge review-finding follow-up into integration/issue-4 (#30, #4)
lseongjoo Nov 28, 2026
3f11df7
Address independent review of Agent tab auto-connect (#31)
claude Nov 28, 2026
1900fbd
Make the socket holder the only writer of agent approvals (#31)
claude Nov 28, 2026
4da03f7
Document single-writer approvals and signal pacing (#31)
claude Nov 28, 2026
f3ddb9a
Adopt approvals changed by others; fail closed when the file disappea…
claude Nov 28, 2026
a7aeb83
Keep this instance's revocations when adopting an older writer's file…
claude Nov 28, 2026
df78070
Apply external policy changes to bound helpers and fail closed withou…
claude Nov 28, 2026
d87e24a
Hoist a throwing read out of precondition in trust store tests (#31)
lseongjoo Nov 28, 2026
6603dfe
Fix console key, keep local revocations at the cap, and recover from …
claude Nov 28, 2026
49e33b1
Replay unsaved denials instead of merging, and move approvals to thei…
claude Nov 28, 2026
8638e5b
Drop the legacy import, retry failed denials, and keep them until the…
claude Nov 28, 2026
74c01a5
Record the unreadable state before takeover and close remaining denia…
claude Nov 28, 2026
f841171
Keep instruction choices with their key, and drop superseded denials …
claude Nov 28, 2026
5459c95
Count one app's off as saved only when the file has that app's row (#31)
claude Nov 28, 2026
57c258c
Keep one app's unsaved off until a file with that app's row records i…
claude Nov 28, 2026
412d35a
Keep one app's off clicked while its row is not loaded, without writi…
claude Nov 28, 2026
a2b4f6d
Treat every denial as pending until a re-read file holds it (#31)
claude Nov 28, 2026
ad3d444
Require grants to be read back, keep denials across a re-created file…
claude Nov 28, 2026
06401d5
Apply a re-read file to live leases when a grant is refused, and keep…
claude Nov 28, 2026
9b0703c
Do not settle pending denials when re-adopting a file this run re-cre…
claude Nov 28, 2026
28ae9e8
Merge #34: connect approved agent apps when the Agent tab is open (#31)
lseongjoo Nov 28, 2026
7f4e540
Apply advisory decisions for multi-agent-dev 4e532a3 sync (#4)
claude Nov 28, 2026
b3ebef2
Merge pull request #36 from codebasic/integration/issue-31
lseongjoo Nov 28, 2026
1806dad
Merge integration/issue-4 into sync branch (#4)
claude Nov 28, 2026
087a1d1
Apply round-1 advisory decisions from Codex, Antigravity and Claude C…
claude Nov 28, 2026
fdeebcd
Apply round-2 advisory decisions to review gate rules (#4)
claude Nov 28, 2026
31f30aa
Merge #38: sync independent review rules with multi-agent-dev 4e532a3…
lseongjoo Nov 28, 2026
6a573bb
Keep known revocations over a restored older approvals file; log draf…
claude Nov 28, 2026
f4e2554
Rename a duplicate test binding so the trust store tests compile (#31)
lseongjoo Nov 28, 2026
907b9d0
Keep manual fixtures out of the user's data with a fixture-only home …
lseongjoo Nov 28, 2026
38b3953
Bring the manual fixtures up to per-app approval and current menus (#31)
lseongjoo Nov 28, 2026
06edb5c
Finish porting the pre-#13 fixtures and log a speech request in a fix…
lseongjoo Nov 28, 2026
31a0a62
Settle known revocations as pending denials, write only as socket hol…
claude Nov 28, 2026
17c8ec2
Update the full-list revocation test to merging without trimming (#31)
lseongjoo Nov 28, 2026
699a092
Wait for approval requests to expire instead of a fixed sleep (#31)
lseongjoo Nov 28, 2026
cc1548e
Order merged revocations so the file's own stay newest, bound the mer…
claude Nov 28, 2026
26f0969
Require the request list to stay empty past the helpers' signal windo…
lseongjoo Nov 28, 2026
29964c0
Never drop revocations; log only result, app or pid, and lengths (#31)
claude Nov 28, 2026
c3b8cf2
Compare the takeover merge as a set now that order no longer matters …
lseongjoo Nov 28, 2026
3218962
Fit a merge of two long revocation histories under the read limit, ke…
claude Nov 28, 2026
b1b6b35
Document how a merge over the read limit is fitted (#31)
claude Nov 28, 2026
0dd7d66
Fit only what is written; keep every revocation in memory and pending…
claude Nov 28, 2026
b4d4c2a
Forget the last read file once it is missing or unreadable; never ski…
claude Nov 28, 2026
ee78d9c
Fit after an unreadable file by the last intact file, not by nothing …
claude Nov 28, 2026
6262d82
Merge pull request #39 from codebasic/claude/project-thread-snd6be
lseongjoo Nov 28, 2026
c6ac0b6
Merge pull request #40 from codebasic/integration/issue-31
lseongjoo Nov 28, 2026
464b517
Always save a denial at the size limit; refuse agent drafts without a…
claude Nov 28, 2026
804d4a3
Fixtures act on the helper, not its launcher; speech log check never …
lseongjoo Nov 28, 2026
b42d5ad
Keep a reserve below the size limit so a denial never pushes out a sa…
claude Nov 28, 2026
d5f2840
Test a failed draft database setup; say what quitting forgets and wha…
lseongjoo Nov 28, 2026
53e055f
Near the size limit, refuse writes that are not denials if they grow …
claude Nov 28, 2026
888eac7
Write back revocations this run saw saved, also over a restored copy …
claude Nov 28, 2026
f06883e
Merge pull request #41 from codebasic/claude/project-thread-snd6be
lseongjoo Nov 28, 2026
d271b4b
Merge pull request #42 from codebasic/integration/issue-31
lseongjoo Nov 28, 2026
3ea03b9
Ask again after a revoked agent app reconnects (#43)
claude Nov 29, 2026
bbcb811
Copy a Claude desktop app MCP entry from the Agent tab (#43)
claude Nov 29, 2026
b6d815f
Offer the desktop entry as the common mcpServers JSON (#43)
claude Nov 29, 2026
7648e51
Keep a revoked helper revoked; drop stale requests on outside revocat…
claude Nov 29, 2026
3daaa39
Clarify per-app re-approval and the mcpServers merge hint (#43)
claude Nov 29, 2026
1967d91
Merge pull request #44 from codebasic/claude/project-thread-dt9vy6
lseongjoo Nov 29, 2026
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
1 change: 1 addition & 0 deletions .claude/skills/coordinate-independent-review
62 changes: 46 additions & 16 deletions AGENTS.md

Large diffs are not rendered by default.

771 changes: 771 additions & 0 deletions Helpers/AgentCatalogMCP.swift

Large diffs are not rendered by default.

221 changes: 221 additions & 0 deletions Helpers/tts_mcp_client.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
#!/usr/bin/env python3
"""Send drafts to Codebasic TTS through its signed MCP helper, over pipes.
A pseudo-terminal must not sit between an agent and the helper: its line
discipline cuts long lines and swallows bytes, so a long Korean script never
arrives whole and no reply comes back. This client talks to the helper over
plain pipes, one complete UTF-8 JSON-RPC frame per request, and reports every
send as exactly one of:
confirmed the app answered this request: accepted, or duplicate
rejected the app, the helper or this client refused it; nothing was opened
unconfirmed no matching answer arrived; whether it was received is unknown
An unconfirmed send is never repeated automatically. `retry()` repeats it once
on the same connection, with the same key and bytes and a new request id.
Diagnostics hold states and byte counts only, never the draft text.
tts_mcp_client.py --helper PATH status
tts_mcp_client.py --helper PATH guide
tts_mcp_client.py --helper PATH send --key K --display-file F [--speech-file F] [--title T]
"""
import argparse
import json
import os
import select
import subprocess
import sys
import time

TEXT_LIMIT = 8192 # UTF-8 bytes per text field, agreed with the app
FRAME_LIMIT = 100 * 1024 # UTF-8 bytes of one whole request frame, newline included
CONFIRMED = {"accepted", "duplicate"}


class Session:
"""One live helper process. Keep it open across turns; closing it is harmless."""

def __init__(self, helper, client=None, name="tts-mcp-client", launcher=None, **popen):
command = list(launcher or []) + [helper] + (["--client", client] if client else [])
# Binary pipes: no terminal, no echo, no line-length limit, no translation.
self.proc = subprocess.Popen(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.DEVNULL, bufsize=0, **popen)
self.next_id = 0
self.buffer = b""
self.limits = {"text_bytes": TEXT_LIMIT, "frame_bytes": FRAME_LIMIT}
self.last = None
reply = self._request("initialize", {"protocolVersion": "2025-11-25", "capabilities": {},
"clientInfo": {"name": name, "version": "1"}})[1]
if reply is None or "result" not in reply:
raise RuntimeError("helper did not initialize")
self.server = reply["result"]["serverInfo"]["name"]
self._write(self._frame({"jsonrpc": "2.0", "method": "notifications/initialized"}))

@staticmethod
def _frame(message):
# json.dumps escapes every newline inside strings; the only raw LF ends the frame.
return json.dumps(message, ensure_ascii=False, separators=(",", ":")).encode("utf-8") + b"\n"

def _write(self, frame):
view = memoryview(frame)
while view: # a short write is continued on this connection only
view = view[os.write(self.proc.stdin.fileno(), view):]

def _read(self, request_id, timeout):
deadline = time.monotonic() + timeout
while True:
while b"\n" in self.buffer:
line, self.buffer = self.buffer.split(b"\n", 1)
try:
message = json.loads(line)
except ValueError:
continue
if message.get("id") == request_id:
return message
remaining = deadline - time.monotonic()
if remaining <= 0 or not select.select([self.proc.stdout], [], [], remaining)[0]:
return None
chunk = os.read(self.proc.stdout.fileno(), 65536)
if not chunk:
return None
self.buffer += chunk

def _request(self, method, params, timeout=8.0, discard_reply=False):
self.next_id += 1
frame = self._frame({"jsonrpc": "2.0", "id": self.next_id, "method": method, "params": params})
if len(frame) > self.limits["frame_bytes"]:
return len(frame), {"local": "frame_too_large"}
try:
self._write(frame)
except OSError:
return len(frame), None
reply = self._read(self.next_id, timeout)
return len(frame), (None if discard_reply else reply)

def call(self, tool, arguments=None, **options):
size, reply = self._request("tools/call", {"name": tool, "arguments": arguments or {}}, **options)
return size, reply

def status(self):
reply = self.call("tts_agent_status")[1]
content = (reply or {}).get("result", {}).get("structuredContent", {})
self.limits.update(content.get("limits", {}))
return content.get("status", "unconfirmed")

def read_instruction(self):
"""Returns the selected saved instruction (profile, revision, instructions) or None."""
reply = self.call("get_tts_instructions")[1]
result = (reply or {}).get("result", {})
return None if result.get("isError", True) else result.get("structuredContent")

def guide(self):
"""The submission format as the helper describes it: fields, limits, examples, results."""
reply = self.call("get_tts_submission_guide")[1]
return (reply or {}).get("result", {}).get("structuredContent")

def send(self, key, display, speech=None, profile=None, revision=None,
local_checks=True, discard_reply=False, timeout=8.0, title=None):
"""One draft, one frame. `discard_reply` drops the answer, as a lost reply would.
`title` names the draft in the app's list only; it is never part of the text."""
arguments = {"idempotency_key": key, "display_text": display}
if title is not None:
arguments["title"] = title
if speech is not None:
arguments["speech_text"] = speech
tool = "submit_tts_draft"
if profile is not None:
arguments.update(profile=profile, revision=revision)
tool = "submit_explanation_draft"
sizes = {name: len(arguments[name].encode("utf-8")) for name in ("display_text", "speech_text") if name in arguments}
report = {"key": key, "display_bytes": sizes["display_text"], "speech_bytes": sizes.get("speech_text", 0)}
self.last = (tool, arguments, report)
if local_checks:
for name, size in sizes.items():
if size > self.limits["text_bytes"]:
return {**report, "outcome": "rejected", "status": "too_large", "by": "client",
"field": name, "limit_bytes": self.limits["text_bytes"]}
return self._finish(tool, arguments, dict(report), discard_reply, timeout)

def retry(self, timeout=8.0):
"""Repeat the last send once: same connection, same key and bytes, new request id."""
tool, arguments, report = self.last
return self._finish(tool, arguments, dict(report), False, timeout)

def _finish(self, tool, arguments, report, discard_reply, timeout):
size, reply = self.call(tool, arguments, timeout=timeout, discard_reply=discard_reply)
report.update(frame_bytes=size, request_id=self.next_id)
if reply is not None and reply.get("local"):
return {**report, "outcome": "rejected", "status": "frame_too_large", "by": "client",
"limit_bytes": self.limits["frame_bytes"]}
if reply is None or "result" not in reply:
return {**report, "outcome": "unconfirmed", "status": "unconfirmed"}
result = reply["result"]
status = (result.get("structuredContent") or {}).get("status", "invalid" if result.get("isError") else "unconfirmed")
report["status"] = status
for extra in ("field", "bytes", "limit_bytes"):
if extra in (result.get("structuredContent") or {}):
report[extra] = result["structuredContent"][extra]
if status in CONFIRMED and not result.get("isError"):
report["outcome"] = "confirmed"
elif status == "unconfirmed":
report["outcome"] = "unconfirmed"
else:
report["outcome"] = "rejected"
return report

def close(self, kill=False):
if self.proc.poll() is None:
if kill:
self.proc.kill()
else:
self.proc.stdin.close()
try:
self.proc.wait(timeout=3)
except subprocess.TimeoutExpired:
self.proc.kill()
self.proc.wait(timeout=3)
for stream in (self.proc.stdin, self.proc.stdout):
if stream and not stream.closed:
stream.close()


def main():
parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument("--helper", required=True, help="path to the app's bundled CodebasicAgentMCP")
parser.add_argument("--client", help="name of this client's key slot (default: this program's MCP name)")
commands = parser.add_subparsers(dest="command", required=True)
commands.add_parser("status")
commands.add_parser("guide")
send = commands.add_parser("send")
send.add_argument("--key", required=True)
send.add_argument("--display-file", required=True)
send.add_argument("--speech-file")
send.add_argument("--title", help="name shown in the app's draft list only")
options = parser.parse_args()
session = Session(options.helper, options.client)
try:
if options.command == "guide":
print(json.dumps(session.guide(), ensure_ascii=False, indent=2))
return 0
state = session.status()
if options.command == "status":
print(json.dumps({"status": state, "limits": session.limits}))
return 0
with open(options.display_file, "rb") as handle:
display = handle.read().decode("utf-8")
speech = None
if options.speech_file:
with open(options.speech_file, "rb") as handle:
speech = handle.read().decode("utf-8")
instruction = session.read_instruction() if state == "ready" else None
report = session.send(options.key, display, speech, title=options.title,
profile=instruction and instruction["profile"],
revision=instruction and instruction["revision"])
print(json.dumps({**report, "connection": state}))
return 0 if report["outcome"] == "confirmed" else 2 if report["outcome"] == "rejected" else 3
finally:
session.close()


if __name__ == "__main__":
sys.exit(main())
30 changes: 19 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@
<a href="LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" valign="middle"></a>
</p>

macOS용 TTS 앱: **텍스트를 선택하고 단축키 한 번으로 AI 음성 읽기 + LLM 코드 해설**까지.
macOS용 TTS 앱: **텍스트 읽기, 에이전트 지시 관리, 받은 대본 편집·재생**.

**개발 소스: v0.2.1 (빌드 3)** · [변경 기록](CHANGELOG.md). 최신 공개 다운로드는 **v0.1.0**이며, v0.2.1 앱 패키지는 아직 발행하지 않았습니다.

> 💖 **Codebasic TTS는 무료·오픈소스입니다.** 앱이 유용하다면 후원으로 개발을 응원해 주세요
> → [**GitHub Sponsors로 후원하기**](https://github.com/sponsors/codebasic) (금액·주기 자유)
- 아무 앱에서 텍스트 선택 → **⌃⌥⌘R** (또는 우클릭 → Services → "Codebasic TTS") → 곧바로 음성 재생
- 코드 선택 → **⌃⌥⌘E** → 연결된 LLM이 코드를 해설하고, 그 해설을 음성으로 읽어줌
- **에이전트** 탭에서 지시문을 관리하고 외부 에이전트가 돌려준 대본을 편집한 뒤 명시적으로 재생
- ElevenLabs(클라우드)와 로컬 Qwen3-TTS(MLX, 음성 클론) 중 선택해서 사용
- 문장 단위 스트리밍 재생, 문장별 음성 캐싱으로 반복 재생 즉시 반응
- TTS 스크립트를 다듬어주는 LLM 스크립트 편집기 + 용어집(glossary) 내장

| | |
|---|---|
| 플랫폼 | macOS 13.0+ (Apple Silicon 최적화, Intel 미검증) |
| 플랫폼 | macOS 14.0+ (Apple Silicon 최적화, Intel 미검증) |
| 요구사항 | 릴리스 앱은 Xcode 불필요. 기존 플랜 연결은 Codex CLI 또는 Antigravity CLI, 로컬 음성은 Qwen3-TTS 서버 필요 |
| 라이선스 | MIT |
| 다운로드 | [Releases](../../releases/latest) 에서 `Codebasic-TTS.app.zip` |
Expand Down Expand Up @@ -55,9 +55,17 @@ macOS용 TTS 앱: **텍스트를 선택하고 단축키 한 번으로 AI 음성
| 동작 | 방법 |
|---|---|
| 선택 텍스트 읽기 | ⌃⌥⌘R 또는 우클릭 → Services → "Codebasic TTS" |
| 선택 코드 해설 후 읽기 | ⌃⌥⌘E 또는 Services → "Codebasic TTS: 코드 해설" |
| 일시정지 / 정지 | 재생 HUD 또는 메뉴 막대 아이콘 메뉴 |
| 스크립트 편집 · 해설 보기 | 메뉴 막대 아이콘 클릭 → 관리 창 |
| 외부 에이전트가 작성한 대본 읽기 | 에이전트 탭 → 붙여넣기 또는 대본 받기 → 검토 → 그대로 재생 |
| 일시정지 / 정지 | 재생 HUD에서 일시정지·중지 / 앱 메뉴에서 재생 중지 |
| 스크립트 편집 · 받은 대본 보기 | Dock 아이콘 클릭 → 관리 창 |

창을 닫아도 Dock 아이콘과 실행 중인 앱은 유지됩니다. Dock에서 다시 열거나 `⌘Q`로 앱을 완전히 종료하세요.

**에이전트** 탭에서 이름을 붙인 지시를 저장·편집·선택하고, 정확한 원문을 미리 보거나 복사할 수 있습니다.
**지시 조회 허용**과 **대본 받기 허용**은 서명된 도우미 한 개를 대상으로 각각 따로 켭니다.
허용하지 않아도 직접 입력하거나 붙여넣을 수 있습니다. 기본 지시 프로필은 코드 해설용이지만 대본 수신·편집·재생은 다른 용도에도 쓸 수 있습니다. 기존 앱 내 해설은
**고급: 앱에서 직접 해설 생성…**에 남아 있습니다. 선택 텍스트 읽기 단축키와 일반 Services는 그대로입니다.
자세한 연결과 검증은 [외부 에이전트 대본](docs/mcp-explanation-drafts.md)을 참고하세요.

## 설정

Expand All @@ -69,7 +77,7 @@ macOS용 TTS 앱: **텍스트를 선택하고 단축키 한 번으로 AI 음성
| **AI 서비스** | 해설·대본 생성에 사용할 공급자, 연결 방식, 기본 모델 |
| **대본·발음** | 대본 다듬기, 발음 사전 |
| **재생·자막** | 재생 자막, 음성 캐시, 긴 대본의 합성 분할 기준 |
| **단축키** | 선택 텍스트 읽기·해설 단축키 안내, 손쉬운 사용 권한 확인 |
| **단축키** | 선택 텍스트 읽기 단축키 안내, 손쉬운 사용 권한 확인 |

일반 설정은 자동 저장됩니다. API 키 입력과 AI 서비스 추가·편집은
**저장 및 연결 확인**을 눌러 반영합니다. 서비스 편집 중 **취소**하면 저장 전 변경은
Expand All @@ -95,7 +103,7 @@ ElevenLabs는 연결 확인 후 **보이스**와 **합성 모델**을 선택합
2. API 키를 입력하거나, 지원되는 공급자는 **연결 방식 → 기존 플랜**을 선택합니다.
3. **저장 및 연결 확인**으로 서비스를 저장하고 모델을 조회합니다.
4. 필요하면 **조회한 모델에서 선택**으로 기본 모델을 지정하고 다시 저장합니다.
실제 사용할 모델은 TTS·해설 화면에서도 선택할 수 있습니다.
실제 사용할 모델은 TTS 및 에이전트 탭의 고급 해설에서도 선택할 수 있습니다.

| 공급자 프리셋 | 연결 방식 | 준비물 |
|---|---|---|
Expand Down Expand Up @@ -138,7 +146,7 @@ Google 플랜 연결은 Gemini CLI가 아닌 **Antigravity CLI**를 사용합니

### 이미지와 모델 선택

해설 화면에서는 **해설 모델**과 **비전 모델**을 각각 선택할 수 있습니다.
에이전트 탭의 고급 해설에서는 **해설 모델**과 **비전 모델**을 각각 선택할 수 있습니다.

- **OpenAI 기존 플랜**: 이미지 입력을 지원합니다. 이미지 처리가 가능한 모델을 선택하세요.
- **Google 기존 플랜**: 현재 Antigravity CLI의 자동화 입력은 **텍스트 전용**이므로
Expand Down Expand Up @@ -281,9 +289,9 @@ Sidecar/tts -m 4bit # 양자화 선택 (4bit|5bit|6bit|8bit|bf16)
```
Codebasic-TTS/
├── build.sh # swiftc 빌드 + 번들 조립 + Launch Services 등록
├── Resources/Info.plist # LSUIElement + NSServices 정의
├── Resources/Info.plist # Dock 앱 정보 및 NSServices 정의
├── Sources/
│ ├── App/ # 진입점, 메뉴 막대, 전역 단축키, 엔드포인트/시크릿
│ ├── App/ # 진입점, 앱 메뉴, 전역 단축키, 엔드포인트/시크릿
│ ├── Service/ServiceProvider.swift # NSServices 핸들러 (read/explain)
│ ├── Core/ # 문장 분할, 캐시, 큐 재생, 원문 정규화
│ ├── TTS/ # TTSBackend 프로토콜 + ElevenLabs/로컬 Qwen3 백엔드
Expand Down
28 changes: 1 addition & 27 deletions Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,7 @@
<key>CFBundleIconFile</key>
<string>AppIcon</string>
<key>LSMinimumSystemVersion</key>
<string>13.0</string>

<!-- Start as a focus-safe agent; MainWindow flips to a Dock app (.regular)
while its window is open. Keeps background Services playback from
stealing focus. -->
<key>LSUIElement</key>
<true/>
<string>14.0</string>

<!-- macOS Services registration. NSMessage maps to the selector
readSelectedText:userData:error: in ServiceProvider.swift. -->
Expand All @@ -49,26 +43,6 @@
<key>NSRequiredContext</key>
<dict/>
</dict>
<!-- Second entry: explain selected code, then read the commentary aloud.
NSMessage maps to explainSelectedText:userData:error: in
ServiceProvider.swift. -->
<dict>
<key>NSMenuItem</key>
<dict>
<key>default</key>
<string>Codebasic TTS: 코드 해설</string>
</dict>
<key>NSMessage</key>
<string>explainSelectedText</string>
<key>NSPortName</key>
<string>SelectedTextTTS</string>
<key>NSSendTypes</key>
<array>
<string>public.utf8-plain-text</string>
</array>
<key>NSRequiredContext</key>
<dict/>
</dict>
</array>
</dict>
</plist>
Loading