Skip to content
Back to search

jua-list

MarketplaceWorks with Claude CodeGitHub

Windows desktop todo widget you share with Claude — tag a task @claude, press ▶, review the result. CLI + MCP + Claude Code plugin.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/juan-hong--jua-list/badge.svg)](/listings/juan-hong--jua-list)

HTML

<a href="/listings/juan-hong--jua-list"><img src="/api/listings/juan-hong--jua-list/badge.svg" alt="findsafeskills safety rating" /></a>

Install

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

As a Claude Code plugin (skill + MCP server)

/plugin marketplace add juan-hong/jua-list
/plugin install jua-list@jua-list

Then install the `jua` command and the widget. Ask Claude "install jua-list", or run:

python "$env:USERPROFILE\.claude\plugins\marketplaces\jua-list\jua\jua.py" install --startup
jua widget

From the repository

git clone https://github.com/juan-hong/jua-list
cd jua-list
powershell -ExecutionPolicy Bypass -File jua\install.ps1

`install.ps1` installs the `jua` command into `~\.local\bin`, registers the MCP server in Claude Code and the Claude desktop app, adds the widget to Startup, and starts it. To use only the skill, copy `skills\jua-list` into `~\.claude\skills\`.

On first run, a sample list is created at `%APPDATA%\jua-list\todo.md`.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

.claude-plugin/marketplace.json · Manifest · 25 lines
  1. {
  2. "name": "jua-list",
  3. "owner": {
  4. "name": "juan-hong",
  5. "url": "https://github.com/juan-hong"
  6. },
  7. "metadata": {
  8. "description": "jua-list: a desktop todo widget shared by you and Claude"
  9. },
  10. "plugins": [
  11. {
  12. "name": "jua-list",
  13. "source": "./",
  14. "description": "Desktop todo widget for Windows that Claude can read, edit and work on.",
  15. "version": "0.3.0",
  16. "license": "MIT",
  17. "keywords": [
  18. "todo",
  19. "widget",
  20. "windows",
  21. "mcp"
  22. ]
  23. }
  24. ]
  25. }
README.md · README · 145 lines
  1. # jua-list
  2. **A Windows desktop todo widget you share with Claude.**
  3. Tasks live in plain Markdown checklists. The widget sits on the desktop layer, so it stays visible even after `Win+D`. Claude reads and edits the same lists through a CLI and an MCP server. Tag a task `@claude` and press ▶: Claude Code works on it in that list's work folder, leaves a one-line result, and marks it **review**. You check it off when you're happy.
  4. [한국어 안내](#한국어)
  5. ![jua-list widget: tasks with Claude, review and blocked states](docs/widget.jpg)
  6. ```
  7. ## Website
  8. - [x] Fix login bug
  9. - [?] @claude Fix typos in README <!-- id:3fa2c1 -->
  10. - Result: fixed 4 typos in README.md
  11. - [ ] Decide release date
  12. ```
  13. ## Features
  14. - **Desktop widget**: pinned to the desktop layer, rounded dark UI, tabs for several lists, collapsible sections, progress bars. Korean and English UI (follows the Windows display language).
  15. - **Edit in place**: click to check off; hover for ✎ edit and ✕ delete; right-click for status, order and section; undo delete.
  16. - **Hand tasks to Claude**: `@claude` tag → ▶ → `claude -p` runs in the list's work folder → result line + **review** → you check it off.
  17. - **Claude manages the lists too**: the `jua` CLI and an MCP server (12 tools) add, edit, move and delete items, create lists, and change widget settings.
  18. - **Safe writes**: atomic saves, `.bak` backups, cross-process locking; non-UTF-8 files open read-only.
  19. - **Just files**: data stays in `.md`. Edit it in Notepad, Obsidian or VS Code at the same time; the widget updates within a second.
  20. Status marks: `[ ]` todo · `[~]` doing · `[?]` review · `[!]` blocked/question · `[x]` done
  21. ## Requirements
  22. - Windows 10 or 11
  23. - Python 3.10+ with tkinter (included in the python.org installer). No third-party packages.
  24. - [Claude Code](https://claude.com/claude-code) CLI (`claude`) to hand tasks to Claude
  25. ## Install
  26. ### As a Claude Code plugin (skill + MCP server)
  27. ```
  28. /plugin marketplace add juan-hong/jua-list
  29. /plugin install jua-list@jua-list
  30. ```
  31. Then install the `jua` command and the widget. Ask Claude "install jua-list", or run:
  32. ```powershell
  33. python "$env:USERPROFILE\.claude\plugins\marketplaces\jua-list\jua\jua.py" install --startup
  34. jua widget
  35. ```
  36. ### From the repository
  37. ```powershell
  38. git clone https://github.com/juan-hong/jua-list
  39. cd jua-list
  40. powershell -ExecutionPolicy Bypass -File jua\install.ps1
  41. ```
  42. `install.ps1` installs the `jua` command into `~\.local\bin`, registers the MCP server in Claude Code and the Claude desktop app, adds the widget to Startup, and starts it. To use only the skill, copy `skills\jua-list` into `~\.claude\skills\`.
  43. On first run, a sample list is created at `%APPDATA%\jua-list\todo.md`.
  44. ## Usage
  45. ### Widget
  46. | Action | How |
  47. |---|---|
  48. | Check off / approve review | Click the item |
  49. | Edit, delete, assign, run | Hover the item → ✎ ✕ @ ▶ |
  50. | Status, move up/down, move to section | Right-click the item |
  51. | Add | `+ Add` at the end of a section, or the input at the bottom (start with `@claude` to assign) |
  52. | Collapse section | Click the section title |
  53. | Move / resize window | `⋯` → Move / resize window (the window only moves in this mode) |
  54. | Hide done, text size, run logs, quit | `⋯` menu |
  55. ### CLI
  56. ```powershell
  57. jua lists # all lists
  58. jua list --claude # tasks assigned to Claude
  59. jua add "Write tests" -s Backend --claude # add and assign
  60. jua done 3 # mark #3 done
  61. jua move "Write tests" --to Frontend
  62. jua new D:\proj\todo.md --sections "Bugs,Features" --cwd D:\proj # new list with a work folder
  63. jua config alpha 220 # widget opacity
  64. jua config lang en # UI language: auto | ko | en
  65. jua --help
  66. ```
  67. `<ref>` is an item id, a number from `jua list`, or part of its text.
  68. ### Handing a task to Claude
  69. 1. Add `@claude` to the task. Give each list a work folder (`--cwd`).
  70. 2. Press ▶. `claude -p` runs in that folder. Logs go to `%APPDATA%\jua-list\runs\`.
  71. 3. When it finishes you see `[?]` review with a one-line result. Check it off once you have reviewed it. If Claude has a question, the task shows `[!]`.
  72. Defaults (change with `jua config claude.<key>`): 40 turns, 30 minutes, file edits auto-approved, and `git commit/push/reset/checkout`, `rm -rf` and WebFetch blocked.
  73. > ⚠ ▶ lets Claude Code edit files and run commands in the list's work folder. Use it only with lists and folders you trust, and review the result. Text that another program writes into a list file can become an instruction to Claude.
  74. ## Settings
  75. `%APPDATA%\jua-list\config.json` (`jua home` shows the folder; set `JUA_HOME` to move it)
  76. | Key | Meaning |
  77. |---|---|
  78. | `files` | Lists: a path string or `{"path", "name", "cwd"}` |
  79. | `x` `y` `w` `h` | Window position and size (physical pixels) |
  80. | `pin` | `desktop` (desktop layer) / `bottom` (normal window kept at the bottom) |
  81. | `lang` | `auto` / `ko` / `en` (environment variable `JUA_LANG` overrides) |
  82. | `alpha` `font_size` `hide_done` | Opacity 0–255, text size 8–16, hide done items |
  83. | `claude.max_turns` `claude.timeout_min` `claude.model` | Limits for ▶ runs |
  84. | `claude.allowed_tools` `claude.disallowed_tools` | Tool allow/deny lists for ▶ runs |
  85. ## Development
  86. ```powershell
  87. python -m unittest discover -s tests
  88. ```
  89. Layout: `jua/jua_core.py` (files, settings, runs) · `jua/jua.py` (CLI) · `jua/jua_mcp.py` (MCP server, no dependencies) · `jua/widget.py` (tkinter widget) · `jua/jua_i18n.py` (Korean/English) · `skills/jua-list` (Claude skill) · `.claude-plugin` (plugin and marketplace)
  90. ## License
  91. MIT
  92. ---
  93. ## 한국어
  94. **사람과 Claude가 같이 쓰는 Windows 바탕화면 todo 위젯**
  95. 할 일은 평범한 Markdown 체크리스트로 저장되고, 바탕화면에 붙은 위젯으로 보고 고칩니다. Claude는 CLI·MCP로 같은 목록을 읽고 고칩니다. 항목에 `@claude`를 붙이고 ▶를 누르면 Claude Code가 그 목록의 작업 폴더에서 일을 처리하고, 결과 한 줄을 남긴 뒤 **검토 대기**로 바꿉니다. 확인하고 체크하면 완료입니다.
  96. - 요구 사항: Windows 10/11, Python 3.10+(tkinter 포함, 외부 패키지 없음), ▶ 실행에는 Claude Code CLI
  97. - 플러그인 설치: `/plugin marketplace add juan-hong/jua-list` → `/plugin install jua-list@jua-list` → `python <플러그인>\jua\jua.py install --startup` → `jua widget`
  98. - 직접 설치: 저장소를 받고 `jua\install.ps1` 실행
  99. - 상태: `[ ]` 대기 · `[~]` 진행 중 · `[?]` 검토 대기 · `[!]` 막힘·질문 · `[x]` 완료
  100. - 화면 언어는 Windows 표시 언어를 따릅니다. `jua config lang ko`로 고정할 수 있습니다.
  101. - 설정·실행 기록: `%APPDATA%\jua-list` (`JUA_HOME`으로 변경)
  102. > ⚠ ▶ 실행은 Claude Code가 작업 폴더에서 파일을 고치고 명령을 실행하게 합니다. 믿을 수 있는 목록과 폴더에서만 쓰고, 결과는 직접 검토하세요.
jua/jua.py · Bundled script · 392 lines · 1 finding marked
  1. """jua-list CLI. Claude·사람이 목록을 다룸. 예: jua list, jua add "할 일" -s 섹션 --claude"""
  2. import argparse
  3. import json
  4. import os
  5. import sys
  6. sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
  7. import jua_core as core # noqa: E402
  8. from jua_core import JuaError # noqa: E402
  9. from jua_i18n import _ # noqa: E402
  10. # ---------- 동작 (MCP도 이걸 씀. 전부 문자열 반환) ----------
  11. def op_lists():
  12. cfg = core.load_cfg()
  13. out = []
  14. for k, e in enumerate(core.entries(cfg), 1):
  15. d = core.Doc(e["path"], e["name"], e["cwd"])
  16. d.load()
  17. its = d.items()
  18. cnt = {s: sum(t["status"] == s for t in its) for s in core.MARK}
  19. mine = sum(t["claude"] and t["status"] != "done" for t in its)
  20. out.append(_("{0}. {1} 남음 {2}/{3}, Claude 맡김 {4}, 검토 대기 {5}, 막힘 {6}").format(
  21. k, e["name"], len(its) - cnt["done"], len(its), mine, cnt["review"], cnt["blocked"])
  22. + "\n " + _("파일: {0}").format(e["path"])
  23. + "\n " + _("작업 폴더: {0}").format(e["cwd"])
  24. + ("\n " + _("오류: {0}").format(d.error) if d.error else ""))
  25. return "\n".join(out) or _("등록된 목록 없음")
  26. def op_list(file=None, status=None, claude=False, hide_done=False, all_files=False):
  27. cfg = core.load_cfg()
  28. if all_files:
  29. docs = []
  30. for e in core.entries(cfg):
  31. d = core.Doc(e["path"], e["name"], e["cwd"])
  32. d.load()
  33. docs.append(core.fmt_doc(d, status, claude, hide_done))
  34. return "\n\n".join(docs) or _("등록된 목록 없음")
  35. return core.fmt_doc(core.open_doc(cfg, file), status, claude, hide_done)
  36. def _doc_item(file, ref):
  37. d = core.open_doc(core.load_cfg(), file)
  38. return d, d.resolve(ref)
  39. def op_add(text, file=None, section=None, claude=False, create=False):
  40. d = core.open_doc(core.load_cfg(), file)
  41. t = d.add(text, section, claude, create)
  42. return _("추가함: ") + core.fmt_item(t)
  43. def op_status(ref, status, file=None):
  44. if status not in core.MARK:
  45. raise JuaError(_("상태는 {0} 중 하나").format(', '.join(core.MARK)))
  46. d, t = _doc_item(file, ref)
  47. return _("{0}(으)로 바꿈: ").format(core.STATUS_KO[status]) + core.fmt_item(d.set_status(t, status))
  48. def op_edit(ref, text, file=None):
  49. d, t = _doc_item(file, ref)
  50. return _("고침: ") + core.fmt_item(d.edit(t, text))
  51. def op_rm(ref, file=None):
  52. d, t = _doc_item(file, ref)
  53. d.delete(t)
  54. return _("지움: #{0} {1}").format(t['n'], t['text'])
  55. def op_move(ref, file=None, to=None, delta=0):
  56. d, t = _doc_item(file, ref)
  57. return _("옮김: ") + core.fmt_item(d.move(t, to, delta))
  58. def op_claude(ref, on=True, file=None):
  59. d, t = _doc_item(file, ref)
  60. return (_("Claude에게 맡김: ") if on else _("맡김 해제: ")) + core.fmt_item(d.set_claude(t, on))
  61. def op_result(ref, text, file=None):
  62. d, t = _doc_item(file, ref)
  63. return _("결과 남김: ") + core.fmt_item(d.set_result(t, text))
  64. def op_block(ref, question, file=None):
  65. d, t = _doc_item(file, ref)
  66. t = d.set_status(t, "blocked")
  67. return _("질문 남김: ") + core.fmt_item(d.set_result(t, _("질문: {0}").format(question)))
  68. def op_register(path, name=None, cwd=None):
  69. path = os.path.abspath(path)
  70. if not os.path.exists(path):
  71. raise JuaError(_("파일 없음: {0} (새로 만들려면 jua new)").format(path))
  72. def fn(cfg):
  73. for e in core.entries(cfg):
  74. if e["path"].lower() == path.lower():
  75. raise JuaError(_("이미 등록됨: {0}").format(e['name']))
  76. item = {"path": path}
  77. if name:
  78. item["name"] = name
  79. if cwd:
  80. item["cwd"] = os.path.abspath(cwd)
  81. cfg["files"].append(item if len(item) > 1 else path)
  82. core.update_cfg(fn)
  83. return _("등록함: {0}").format(path)
  84. def op_unregister(file):
  85. cfg = core.load_cfg()
  86. e = core.find_entry(cfg, file)
  87. def fn(c):
  88. c["files"] = [x for x in c["files"]
  89. if os.path.abspath(os.path.expandvars(x if isinstance(x, str) else x.get("path", ""))).lower()
  90. != e["path"].lower()]
  91. core.update_cfg(fn)
  92. return _("등록 해제함(파일은 그대로): {0}").format(e['name'])
  93. def op_set_entry(file, name=None, cwd=None):
  94. cfg = core.load_cfg()
  95. e = core.find_entry(cfg, file)
  96. def fn(c):
  97. for k, x in enumerate(c["files"]):
  98. p = x if isinstance(x, str) else x.get("path", "")
  99. if os.path.abspath(os.path.expandvars(p)).lower() == e["path"].lower():
  100. x = {"path": p} if isinstance(x, str) else x
  101. if name:
  102. x["name"] = name
  103. if cwd:
  104. x["cwd"] = os.path.abspath(cwd)
  105. c["files"][k] = x
  106. core.update_cfg(fn)
  107. return _("바꿈: {0} (작업 폴더 {1})").format(name or e['name'], os.path.abspath(cwd) if cwd else e['cwd'])
  108. def op_new(path, title=None, sections=None, name=None, cwd=None, register=True):
  109. secs = [s.strip() for s in (sections or _("할 일")).split(",") if s.strip()]
  110. p = core.new_list(path, title or os.path.splitext(os.path.basename(path))[0], secs)
  111. msg = _("만듦: {0}").format(p)
  112. if register:
  113. msg += "\n" + op_register(p, name, cwd)
  114. return msg
  115. def op_config(key=None, value=None):
  116. cfg = core.load_cfg()
  117. if key is None:
  118. show = {k: v for k, v in cfg.items() if k != "files"}
  119. return json.dumps(show, ensure_ascii=False, indent=2)
  120. parts = key.split(".")
  121. if parts[0] == "files":
  122. raise JuaError(_("files는 jua register / unregister / entry로 바꿈"))
  123. if value is None:
  124. cur = cfg
  125. for p in parts:
  126. if not isinstance(cur, dict) or p not in cur:
  127. raise JuaError(_("설정 '{0}' 없음").format(key))
  128. cur = cur[p]
  129. return json.dumps(cur, ensure_ascii=False)
  130. try:
  131. val = json.loads(value)
  132. except ValueError:
  133. val = value
  134. def fn(c):
  135. cur = c
  136. for p in parts[:-1]:
  137. cur = cur.setdefault(p, {})
  138. cur[parts[-1]] = val
  139. core.update_cfg(fn)
  140. return f"{key} = {json.dumps(val, ensure_ascii=False)}"
  141. def op_install(mcp=False, startup=False):
  142. """jua 명령을 PATH(~/.local/bin)에 깔음. mcp=True면 Claude Code·데스크톱에 MCP 등록. 폴더 옮기면 다시 실행."""
  143. bindir = os.path.join(os.path.expanduser("~"), ".local", "bin")
  144. os.makedirs(bindir, exist_ok=True)
  145. me = os.path.abspath(__file__)
  146. py = sys.executable.replace("pythonw.exe", "python.exe")
  147. with open(os.path.join(bindir, "jua.cmd"), "w", encoding="utf-8") as f:
  148. f.write(f'@"{py}" "{me}" %*\r\n')
  149. with open(os.path.join(bindir, "jua"), "w", encoding="utf-8", newline="\n") as f:
  150. f.write(f'#!/bin/sh\nexec "{py.replace(os.sep, "/")}" "{me.replace(os.sep, "/")}" "$@"\n')
  151. out = [_("설치함: {0}\\jua.cmd, {1}\\jua").format(bindir, bindir)]
  152. if bindir.lower() not in os.environ.get("PATH", "").lower():
  153. out.append(_("주의: {0}가 PATH에 없음. PATH에 추가해야 jua 명령이 됨").format(bindir))
  154. if mcp:
  155. out += install_mcp(py, os.path.join(os.path.dirname(me), "jua_mcp.py"))
  156. if startup:
  157. out.append(install_startup())
  158. return "\n".join(out)
  159. def _pythonw():
  160. pyw = sys.executable.replace("python.exe", "pythonw.exe")
  161. return pyw if os.path.exists(pyw) else sys.executable
  162. def op_widget():
  163. import subprocess
  164. w = os.path.join(os.path.dirname(os.path.abspath(__file__)), "widget.py")
  165. subprocess.Popen([_pythonw(), w], cwd=os.path.dirname(w), creationflags=0x00000008 | 0x00000200)
  166. return _("위젯 실행함 (이미 떠 있으면 그대로)")
  167. def install_startup():
  168. import subprocess
  169. w = os.path.join(os.path.dirname(os.path.abspath(__file__)), "widget.py")
  170. startup = os.path.join(os.environ["APPDATA"], "Microsoft", "Windows", "Start Menu", "Programs", "Startup")
    • Warning: Puts a file in the Windows Startup folder, so it runs at every login
    • Line 215 on GitHub
  171. lnk = os.path.join(startup, "jua-list.lnk")
  172. for old in ("jua_list.lnk", "Todo Widget.lnk"):
  173. # 예전 이름 바로가기 정리
  174. try:
  175. os.remove(os.path.join(startup, old))
  176. except OSError:
  177. pass
  178. ps = ("$s=(New-Object -ComObject WScript.Shell).CreateShortcut($env:J_LNK);"
  179. "$s.TargetPath=$env:J_PYW;$s.Arguments='\"'+$env:J_W+'\"';$s.WorkingDirectory=$env:J_DIR;$s.Save()")
  180. env = dict(os.environ, J_LNK=lnk, J_PYW=_pythonw(), J_W=w, J_DIR=os.path.dirname(w))
  181. r = subprocess.run(["powershell", "-NoProfile", "-Command", ps], env=env, capture_output=True)
  182. return _("시작 프로그램 등록함: {0}").format(lnk) if r.returncode == 0 else _("시작 프로그램 등록 실패")
  183. def install_mcp(py, server):
  184. import shutil
  185. import subprocess
  186. out = []
  187. exe = shutil.which("claude")
  188. if exe:
  189. for name in ("jua-list", "jua_list"): # jua_list는 예전 이름
  190. subprocess.run([exe, "mcp", "remove", name, "--scope", "user"], capture_output=True)
  191. r = subprocess.run([exe, "mcp", "add", "--scope", "user", "jua-list", "--", py, server],
  192. capture_output=True, text=True, encoding="utf-8", errors="replace")
  193. out.append(_("Claude Code MCP 등록함") if r.returncode == 0 else _("Claude Code MCP 등록 실패: {0}").format(r.stderr.strip()))
  194. else:
  195. out.append(_("claude 명령 없음. Claude Code MCP 등록 건너뜀"))
  196. import glob
  197. # MSIX 설치면 패키지 안 LocalCache가 진짜 위치
  198. cands = glob.glob(os.path.join(os.environ.get("LOCALAPPDATA", ""), "Packages", "Claude_*",
  199. "LocalCache", "Roaming", "Claude"))
  200. cands.append(os.path.join(os.environ.get("APPDATA", ""), "Claude"))
  201. home = next((c for c in cands if os.path.isdir(c)), None)
  202. if not home:
  203. out.append(_("Claude 데스크톱 앱 설정 폴더 없음. 건너뜀"))
  204. else:
  205. path = os.path.join(home, "claude_desktop_config.json")
  206. data = {}
  207. if os.path.exists(path):
  208. try:
  209. with open(path, encoding="utf-8-sig") as f:
  210. data = json.load(f)
  211. except ValueError:
  212. # 깨진 설정 덮어쓰면 안 됨
  213. out.append(_("데스크톱 설정 형식 오류. 건너뜀: {0}").format(path))
  214. return out
  215. data.setdefault("mcpServers", {}).pop("jua_list", None)
  216. data["mcpServers"]["jua-list"] = {"command": py, "args": [server]}
  217. core.atomic_write(path, (json.dumps(data, ensure_ascii=False, indent=2) + "\n").encode("utf-8"))
  218. out.append(_("데스크톱 앱 MCP 등록함 (앱 다시 시작해야 반영): {0}").format(path))
  219. return out
  220. # ---------- CLI ----------
  221. def main(argv=None):
  222. for s in (sys.stdout, sys.stderr):
  223. try:
  224. s.reconfigure(encoding="utf-8")
  225. except Exception:
  226. pass
  227. fp = argparse.ArgumentParser(add_help=False)
  228. fp.add_argument("-f", "--file", help=_("목록 이름·번호·경로 (생략하면 지금 폴더 목록, 없으면 첫 목록)"))
  229. ap = argparse.ArgumentParser(prog="jua", description=_("jua-list: Claude와 같이 쓰는 todo 목록"))
  230. sp = ap.add_subparsers(dest="cmd", required=True)
  231. sp.add_parser("lists", help=_("등록된 목록과 개수"))
  232. p = sp.add_parser("list", parents=[fp], help=_("항목 보기"))
  233. p.add_argument("--status", choices=list(core.MARK))
  234. p.add_argument("--claude", action="store_true", help=_("Claude 맡긴 것만"))
  235. p.add_argument("--hide-done", action="store_true")
  236. p.add_argument("--all", action="store_true", help=_("모든 목록"))
  237. p = sp.add_parser("add", parents=[fp], help=_("항목 추가"))
  238. p.add_argument("text")
  239. p.add_argument("-s", "--section")
  240. p.add_argument("--claude", action="store_true", help=_("Claude에게 맡김"))
  241. p.add_argument("--create", action="store_true", help=_("섹션 없으면 만듦"))
  242. for name, hlp in [("done", _("완료")), ("undo", _("대기로 되돌림")), ("rm", _("삭제"))]:
  243. sp.add_parser(name, parents=[fp], help=hlp).add_argument("ref", help=_("id, 번호, 글자 일부"))
  244. p = sp.add_parser("status", parents=[fp], help=_("상태 바꿈"))
  245. p.add_argument("ref")
  246. p.add_argument("status", choices=list(core.MARK))
  247. p = sp.add_parser("edit", parents=[fp], help=_("내용 고침"))
  248. p.add_argument("ref")
  249. p.add_argument("text")
  250. p = sp.add_parser("move", parents=[fp], help=_("옮김"))
  251. p.add_argument("ref")
  252. g = p.add_mutually_exclusive_group(required=True)
  253. g.add_argument("--to", help=_("다른 섹션 끝으로"))
  254. g.add_argument("--up", type=int)
  255. g.add_argument("--down", type=int)
  256. p = sp.add_parser("claude", parents=[fp], help=_("Claude에게 맡김(on)/해제(off)"))
  257. p.add_argument("ref")
  258. p.add_argument("onoff", choices=["on", "off"], nargs="?", default="on")
  259. p = sp.add_parser("result", parents=[fp], help=_("결과 한 줄 남김 (빈 문자열이면 지움)"))
  260. p.add_argument("ref")
  261. p.add_argument("text")
  262. p = sp.add_parser("block", parents=[fp], help=_("막힘으로 바꾸고 질문 남김"))
  263. p.add_argument("ref")
  264. p.add_argument("question")
  265. p = sp.add_parser("new", help=_("새 목록 파일 만들고 등록"))
  266. p.add_argument("path")
  267. p.add_argument("--title")
  268. p.add_argument("--sections", help=_("쉼표로 구분"))
  269. p.add_argument("--name")
  270. p.add_argument("--cwd", help=_("Claude 작업 폴더"))
  271. p.add_argument("--no-register", action="store_true")
  272. p = sp.add_parser("register", help=_("기존 .md 등록"))
  273. p.add_argument("path")
  274. p.add_argument("--name")
  275. p.add_argument("--cwd")
  276. sp.add_parser("unregister", help=_("등록 해제")).add_argument("file")
  277. p = sp.add_parser("entry", help=_("목록 이름·작업 폴더 바꿈"))
  278. p.add_argument("file")
  279. p.add_argument("--name")
  280. p.add_argument("--cwd")
  281. p = sp.add_parser("config", help=_("설정 보기·바꿈 (예: jua config alpha 220)"))
  282. p.add_argument("key", nargs="?")
  283. p.add_argument("value", nargs="?")
  284. p = sp.add_parser("install", help=_("jua 명령을 PATH에 설치"))
  285. p.add_argument("--mcp", action="store_true", help=_("Claude Code·데스크톱 앱에 MCP 서버도 등록"))
  286. p.add_argument("--startup", action="store_true", help=_("로그인 시 위젯 자동 실행"))
  287. sp.add_parser("widget", help=_("위젯 실행"))
  288. sp.add_parser("home", help=_("데이터 폴더(설정·실행 기록) 위치"))
  289. a = ap.parse_args(argv)
  290. f = getattr(a, "file", None)
  291. try:
  292. c = a.cmd
  293. if c == "lists":
  294. r = op_lists()
  295. elif c == "list":
  296. r = op_list(f, a.status, a.claude, a.hide_done, a.all)
  297. elif c == "add":
  298. r = op_add(a.text, f, a.section, a.claude, a.create)
  299. elif c == "done":
  300. r = op_status(a.ref, "done", f)
  301. elif c == "undo":
  302. r = op_status(a.ref, "todo", f)
  303. elif c == "status":
  304. r = op_status(a.ref, a.status, f)
  305. elif c == "rm":
  306. r = op_rm(a.ref, f)
  307. elif c == "edit":
  308. r = op_edit(a.ref, a.text, f)
  309. elif c == "move":
  310. r = op_move(a.ref, f, a.to, (a.down or 0) - (a.up or 0))
  311. elif c == "claude":
  312. r = op_claude(a.ref, a.onoff == "on", f)
  313. elif c == "result":
  314. r = op_result(a.ref, a.text, f)
  315. elif c == "block":
  316. r = op_block(a.ref, a.question, f)
  317. elif c == "new":
  318. r = op_new(a.path, a.title, a.sections, a.name, a.cwd, not a.no_register)
  319. elif c == "register":
  320. r = op_register(a.path, a.name, a.cwd)
  321. elif c == "unregister":
  322. r = op_unregister(a.file)
  323. elif c == "entry":
  324. r = op_set_entry(a.file, a.name, a.cwd)
  325. elif c == "config":
  326. r = op_config(a.key, a.value)
  327. elif c == "install":
  328. r = op_install(a.mcp, a.startup)
  329. elif c == "widget":
  330. r = op_widget()
  331. elif c == "home":
  332. r = core.HOME
  333. print(r)
  334. return 0
  335. except JuaError as e:
  336. print(_("오류: {0}").format(e), file=sys.stderr)
  337. return 1
  338. if __name__ == "__main__":
  339. sys.exit(main())

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.