jitters-cli 0.2.0__tar.gz → 0.2.2__tar.gz

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.
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jitters-cli
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Jitters the VibeCoder, an anxious monkey, in the state of your week of commits: groggy after 2 am, fit after a week of daytime ones. CLI, MCP server and a Claude Code status line; sends nothing.
5
5
  Author: Vibeoverflow
6
6
  License-Expression: MIT
7
- Project-URL: Homepage, https://vibeoverflow.lol/week?src=pypi
8
- Project-URL: Shop, https://vibeoverflow.lol/shop.html?src=pypi
7
+ Project-URL: Homepage, https://vibeoverflow.fun/week?src=pypi
8
+ Project-URL: Shop, https://vibeoverflow.fun/shop.html?src=pypi
9
9
  Keywords: mcp,mcp-server,git,commits,vibe-coding,claude-code,statusline,status-line,cli,tamagotchi,monkey
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Environment :: Console
@@ -19,13 +19,13 @@ Dynamic: license-file
19
19
 
20
20
  **Jitters the VibeCoder, an anxious monkey who codes, in the state of your week of commits.** Groggy after your 2 am commits, fit after a week of daytime ones, on the sofa after a week of none.
21
21
 
22
- ![Jitters at 3:33 am, asleep on the keys](https://vibeoverflow.lol/shop/333am.webp)
22
+ ![Jitters at 3:33 am, asleep on the keys](https://vibeoverflow.fun/shop/333am.webp)
23
23
 
24
24
  ```
25
25
  uvx jitters-cli
26
26
  ```
27
27
 
28
- (or `pipx run jitters-cli`; with Node: `npx -y https://vibeoverflow.lol/dl/jitters-cli.tgz`)
28
+ (or `pipx run jitters-cli`; with Node: `npx -y https://vibeoverflow.fun/dl/jitters-cli.tgz`)
29
29
 
30
30
  ```
31
31
  .-"""-. 3am
@@ -40,7 +40,7 @@ Jitters, your week: groggy
40
40
  You commit after midnight. He is groggy and on his fifth coffee.
41
41
  ```
42
42
 
43
- It prints one link to see him drawn in that mood, with a picture to save: [vibeoverflow.lol/week](https://vibeoverflow.lol/week?src=pypi).
43
+ It prints one link to see him drawn in that mood, with a picture to save: [vibeoverflow.fun/week](https://vibeoverflow.fun/week?src=pypi).
44
44
 
45
45
  ## What it reads
46
46
 
@@ -81,6 +81,8 @@ Already have a status line? Keep it; he sits after it:
81
81
 
82
82
  It reads only the JSON Claude Code pipes to it (session minutes and context use) and your clock; nothing leaves your machine. About 25 ms a run. The word `jitters` links to him drawn in that state (a clickable link in iTerm2, Kitty, WezTerm); `--no-link` turns that off.
83
83
 
84
+ [![Jitters status line - Listed on Claude AI Directory](https://www.claudeai.directory/badge/jitters-status-line)](https://www.claudeai.directory/launches/jitters-status-line)
85
+
84
86
  ## For your coding agent (MCP)
85
87
 
86
88
  One tool, `jitters_week`: "how wrecked is my monkey?"
@@ -97,8 +99,8 @@ Claude Code: `claude mcp add jitters -- uvx jitters-cli --mcp`
97
99
 
98
100
  ## Him, on your desk
99
101
 
100
- Jitters at your own commit hour on a mug, and his night as stickers: [the shop](https://vibeoverflow.lol/shop.html?src=pypi).
102
+ Jitters at your own commit hour on a mug, and his night as stickers: [the shop](https://vibeoverflow.fun/shop.html?src=pypi).
101
103
 
102
- MIT. Made by the Vibeoverflow team, [vibeoverflow.lol](https://vibeoverflow.lol/?src=pypi).
104
+ MIT. Made by the Vibeoverflow team, [vibeoverflow.fun](https://vibeoverflow.fun/?src=pypi).
103
105
 
104
106
  <!-- mcp-name: lol.vibeoverflow/jitters -->
@@ -2,13 +2,13 @@
2
2
 
3
3
  **Jitters the VibeCoder, an anxious monkey who codes, in the state of your week of commits.** Groggy after your 2 am commits, fit after a week of daytime ones, on the sofa after a week of none.
4
4
 
5
- ![Jitters at 3:33 am, asleep on the keys](https://vibeoverflow.lol/shop/333am.webp)
5
+ ![Jitters at 3:33 am, asleep on the keys](https://vibeoverflow.fun/shop/333am.webp)
6
6
 
7
7
  ```
8
8
  uvx jitters-cli
9
9
  ```
10
10
 
11
- (or `pipx run jitters-cli`; with Node: `npx -y https://vibeoverflow.lol/dl/jitters-cli.tgz`)
11
+ (or `pipx run jitters-cli`; with Node: `npx -y https://vibeoverflow.fun/dl/jitters-cli.tgz`)
12
12
 
13
13
  ```
14
14
  .-"""-. 3am
@@ -23,7 +23,7 @@ Jitters, your week: groggy
23
23
  You commit after midnight. He is groggy and on his fifth coffee.
24
24
  ```
25
25
 
26
- It prints one link to see him drawn in that mood, with a picture to save: [vibeoverflow.lol/week](https://vibeoverflow.lol/week?src=pypi).
26
+ It prints one link to see him drawn in that mood, with a picture to save: [vibeoverflow.fun/week](https://vibeoverflow.fun/week?src=pypi).
27
27
 
28
28
  ## What it reads
29
29
 
@@ -64,6 +64,8 @@ Already have a status line? Keep it; he sits after it:
64
64
 
65
65
  It reads only the JSON Claude Code pipes to it (session minutes and context use) and your clock; nothing leaves your machine. About 25 ms a run. The word `jitters` links to him drawn in that state (a clickable link in iTerm2, Kitty, WezTerm); `--no-link` turns that off.
66
66
 
67
+ [![Jitters status line - Listed on Claude AI Directory](https://www.claudeai.directory/badge/jitters-status-line)](https://www.claudeai.directory/launches/jitters-status-line)
68
+
67
69
  ## For your coding agent (MCP)
68
70
 
69
71
  One tool, `jitters_week`: "how wrecked is my monkey?"
@@ -80,8 +82,8 @@ Claude Code: `claude mcp add jitters -- uvx jitters-cli --mcp`
80
82
 
81
83
  ## Him, on your desk
82
84
 
83
- Jitters at your own commit hour on a mug, and his night as stickers: [the shop](https://vibeoverflow.lol/shop.html?src=pypi).
85
+ Jitters at your own commit hour on a mug, and his night as stickers: [the shop](https://vibeoverflow.fun/shop.html?src=pypi).
84
86
 
85
- MIT. Made by the Vibeoverflow team, [vibeoverflow.lol](https://vibeoverflow.lol/?src=pypi).
87
+ MIT. Made by the Vibeoverflow team, [vibeoverflow.fun](https://vibeoverflow.fun/?src=pypi).
86
88
 
87
89
  <!-- mcp-name: lol.vibeoverflow/jitters -->
@@ -1,2 +1,2 @@
1
1
  """Jitters the VibeCoder, an anxious monkey, in the state of your week of commits."""
2
- __version__ = "0.2.0"
2
+ __version__ = "0.2.2"
@@ -6,7 +6,7 @@ import time
6
6
  from .rules import mood
7
7
 
8
8
  WEEK = 7 * 86400
9
- SITE = "https://vibeoverflow.lol/week"
9
+ SITE = "https://vibeoverflow.fun/week"
10
10
  SAY = {
11
11
  "sofa": "Nothing committed in seven days. He has been on the sofa all week.",
12
12
  "groggy": "You commit after midnight. He is groggy and on his fifth coffee.",
@@ -10,11 +10,18 @@ TOOL = {
10
10
  "name": "jitters_week",
11
11
  "description": "How wrecked is the coder's monkey? Reads only the hours of the user's own commits in the last 7 days of a local git folder and answers Jitters' mood (sofa, groggy, wired, fit, steady or sleepy) with a small drawing and a link.",
12
12
  "inputSchema": {"type": "object", "properties": {
13
- "path": {"type": "string", "description": "The git folder to read; the server's working folder when left out."},
13
+ "path": {"type": "string", "description": "The git folder to read, inside the server's working folder; that folder when left out."},
14
14
  "all": {"type": "boolean", "description": "Count every author, not only the local git user."}}},
15
15
  }
16
16
 
17
17
 
18
+ def inside(cwd, asked):
19
+ """The folder a call may read: `asked` (relative to cwd) when it lies inside cwd after links are followed, else None."""
20
+ root = os.path.realpath(cwd)
21
+ folder = os.path.realpath(os.path.join(root, asked or "."))
22
+ return folder if os.path.commonpath([root, folder]) == root else None
23
+
24
+
18
25
  def handle(msg, cwd=None, src="mcp"):
19
26
  mid, method, params = msg.get("id"), msg.get("method"), msg.get("params") or {}
20
27
  if mid is None:
@@ -33,7 +40,10 @@ def handle(msg, cwd=None, src="mcp"):
33
40
  if params.get("name") != TOOL["name"]:
34
41
  return {"jsonrpc": "2.0", "id": mid, "error": {"code": -32602, "message": f"Unknown tool: {params.get('name')}"}}
35
42
  a = params.get("arguments") or {}
36
- r = week(a.get("path") or cwd or os.getcwd(), bool(a.get("all")), src)
43
+ folder = inside(cwd or os.getcwd(), a.get("path"))
44
+ if not folder:
45
+ return ok({"content": [{"type": "text", "text": "Jitters reads only folders inside the one this server runs in."}], "isError": True})
46
+ r = week(folder, bool(a.get("all")), src)
37
47
  return ok({"content": [{"type": "text", "text": text(r)}], "isError": bool(r.get("error"))})
38
48
  return {"jsonrpc": "2.0", "id": mid, "error": {"code": -32601, "message": f"Method not found: {method}"}}
39
49
 
@@ -11,7 +11,7 @@ STATES = ["fried", "groggy", "wired", "fresh"]
11
11
  FACE = {"fried": "@(x_x)@", "groggy": "@(-_-)@ c[_]", "wired": "@(O_O)@", "fresh": "@(^_^)@"}
12
12
  # /week draws only its six moods: the nearest one per state
13
13
  WEEK_MOOD = {"fried": "wired", "groggy": "groggy", "wired": "wired", "fresh": "steady"}
14
- SITE = "https://vibeoverflow.lol/week"
14
+ SITE = "https://vibeoverflow.fun/week"
15
15
  ANSI = re.compile(r"\x1b\][^\x07\x1b]*(?:\x07|\x1b\\)|\x1b\[[0-9;?]*[A-Za-z]")
16
16
 
17
17
 
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jitters-cli
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Jitters the VibeCoder, an anxious monkey, in the state of your week of commits: groggy after 2 am, fit after a week of daytime ones. CLI, MCP server and a Claude Code status line; sends nothing.
5
5
  Author: Vibeoverflow
6
6
  License-Expression: MIT
7
- Project-URL: Homepage, https://vibeoverflow.lol/week?src=pypi
8
- Project-URL: Shop, https://vibeoverflow.lol/shop.html?src=pypi
7
+ Project-URL: Homepage, https://vibeoverflow.fun/week?src=pypi
8
+ Project-URL: Shop, https://vibeoverflow.fun/shop.html?src=pypi
9
9
  Keywords: mcp,mcp-server,git,commits,vibe-coding,claude-code,statusline,status-line,cli,tamagotchi,monkey
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Environment :: Console
@@ -19,13 +19,13 @@ Dynamic: license-file
19
19
 
20
20
  **Jitters the VibeCoder, an anxious monkey who codes, in the state of your week of commits.** Groggy after your 2 am commits, fit after a week of daytime ones, on the sofa after a week of none.
21
21
 
22
- ![Jitters at 3:33 am, asleep on the keys](https://vibeoverflow.lol/shop/333am.webp)
22
+ ![Jitters at 3:33 am, asleep on the keys](https://vibeoverflow.fun/shop/333am.webp)
23
23
 
24
24
  ```
25
25
  uvx jitters-cli
26
26
  ```
27
27
 
28
- (or `pipx run jitters-cli`; with Node: `npx -y https://vibeoverflow.lol/dl/jitters-cli.tgz`)
28
+ (or `pipx run jitters-cli`; with Node: `npx -y https://vibeoverflow.fun/dl/jitters-cli.tgz`)
29
29
 
30
30
  ```
31
31
  .-"""-. 3am
@@ -40,7 +40,7 @@ Jitters, your week: groggy
40
40
  You commit after midnight. He is groggy and on his fifth coffee.
41
41
  ```
42
42
 
43
- It prints one link to see him drawn in that mood, with a picture to save: [vibeoverflow.lol/week](https://vibeoverflow.lol/week?src=pypi).
43
+ It prints one link to see him drawn in that mood, with a picture to save: [vibeoverflow.fun/week](https://vibeoverflow.fun/week?src=pypi).
44
44
 
45
45
  ## What it reads
46
46
 
@@ -81,6 +81,8 @@ Already have a status line? Keep it; he sits after it:
81
81
 
82
82
  It reads only the JSON Claude Code pipes to it (session minutes and context use) and your clock; nothing leaves your machine. About 25 ms a run. The word `jitters` links to him drawn in that state (a clickable link in iTerm2, Kitty, WezTerm); `--no-link` turns that off.
83
83
 
84
+ [![Jitters status line - Listed on Claude AI Directory](https://www.claudeai.directory/badge/jitters-status-line)](https://www.claudeai.directory/launches/jitters-status-line)
85
+
84
86
  ## For your coding agent (MCP)
85
87
 
86
88
  One tool, `jitters_week`: "how wrecked is my monkey?"
@@ -97,8 +99,8 @@ Claude Code: `claude mcp add jitters -- uvx jitters-cli --mcp`
97
99
 
98
100
  ## Him, on your desk
99
101
 
100
- Jitters at your own commit hour on a mug, and his night as stickers: [the shop](https://vibeoverflow.lol/shop.html?src=pypi).
102
+ Jitters at your own commit hour on a mug, and his night as stickers: [the shop](https://vibeoverflow.fun/shop.html?src=pypi).
101
103
 
102
- MIT. Made by the Vibeoverflow team, [vibeoverflow.lol](https://vibeoverflow.lol/?src=pypi).
104
+ MIT. Made by the Vibeoverflow team, [vibeoverflow.fun](https://vibeoverflow.fun/?src=pypi).
103
105
 
104
106
  <!-- mcp-name: lol.vibeoverflow/jitters -->
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "jitters-cli"
7
- version = "0.2.0"
7
+ version = "0.2.2"
8
8
  description = "Jitters the VibeCoder, an anxious monkey, in the state of your week of commits: groggy after 2 am, fit after a week of daytime ones. CLI, MCP server and a Claude Code status line; sends nothing."
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -15,8 +15,8 @@ keywords = ["mcp", "mcp-server", "git", "commits", "vibe-coding", "claude-code",
15
15
  classifiers = ["Programming Language :: Python :: 3", "Environment :: Console", "Topic :: Software Development :: Version Control :: Git"]
16
16
 
17
17
  [project.urls]
18
- Homepage = "https://vibeoverflow.lol/week?src=pypi"
19
- Shop = "https://vibeoverflow.lol/shop.html?src=pypi"
18
+ Homepage = "https://vibeoverflow.fun/week?src=pypi"
19
+ Shop = "https://vibeoverflow.fun/shop.html?src=pypi"
20
20
 
21
21
  [project.scripts]
22
22
  jitters-cli = "jitters_cli.cli:main"
@@ -62,12 +62,12 @@ class Git(unittest.TestCase):
62
62
  self.assertEqual(len(commits(d, True)), 3)
63
63
 
64
64
  def test_the_link_carries_only_mood_and_src(self):
65
- self.assertEqual(link("groggy", "glama"), "https://vibeoverflow.lol/week?m=groggy&src=glama")
66
- self.assertEqual(link("fit", '"><script>'), "https://vibeoverflow.lol/week?m=fit&src=script")
65
+ self.assertEqual(link("groggy", "glama"), "https://vibeoverflow.fun/week?m=groggy&src=glama")
66
+ self.assertEqual(link("fit", '"><script>'), "https://vibeoverflow.fun/week?m=fit&src=script")
67
67
  d, commit = repo(); commit(ago(1, 3)); commit(ago(1, 3))
68
68
  r = week(d)
69
69
  self.assertEqual(r["mood"], "groggy")
70
- self.assertIn("See him drawn: https://vibeoverflow.lol/week?m=groggy&src=cli", text(r))
70
+ self.assertIn("See him drawn: https://vibeoverflow.fun/week?m=groggy&src=cli", text(r))
71
71
 
72
72
 
73
73
  class Mcp(unittest.TestCase):
@@ -118,7 +118,7 @@ class Line(unittest.TestCase):
118
118
 
119
119
  def test_link_is_osc8_on_the_word_with_the_week_mood(self):
120
120
  _, out = run(payload(minutes=180, pct=41))
121
- self.assertIn("\x1b]8;;https://vibeoverflow.lol/week?m=wired&src=sl\x07jitters\x1b]8;;\x07", out)
121
+ self.assertIn("\x1b]8;;https://vibeoverflow.fun/week?m=wired&src=sl\x07jitters\x1b]8;;\x07", out)
122
122
  _, out = run(payload(minutes=5, pct=8))
123
123
  self.assertIn("week?m=steady&src=sl", out)
124
124
 
@@ -131,7 +131,7 @@ class Line(unittest.TestCase):
131
131
  def test_only_the_state_goes_in_the_link(self):
132
132
  _, out = run(payload(minutes=180, pct=41, session_id="secret-session"))
133
133
  url = re.search(r"\x1b\]8;;([^\x07]*)\x07", out).group(1)
134
- self.assertEqual(url, "https://vibeoverflow.lol/week?m=wired&src=sl")
134
+ self.assertEqual(url, "https://vibeoverflow.fun/week?m=wired&src=sl")
135
135
 
136
136
 
137
137
  class Wrap(unittest.TestCase):
File without changes
File without changes