jitters-cli 0.2.1__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.
- {jitters_cli-0.2.1 → jitters_cli-0.2.2}/PKG-INFO +8 -8
- {jitters_cli-0.2.1 → jitters_cli-0.2.2}/README.md +5 -5
- {jitters_cli-0.2.1 → jitters_cli-0.2.2}/jitters_cli/__init__.py +1 -1
- {jitters_cli-0.2.1 → jitters_cli-0.2.2}/jitters_cli/core.py +1 -1
- {jitters_cli-0.2.1 → jitters_cli-0.2.2}/jitters_cli/mcp.py +12 -2
- {jitters_cli-0.2.1 → jitters_cli-0.2.2}/jitters_cli/statusline.py +1 -1
- {jitters_cli-0.2.1 → jitters_cli-0.2.2}/jitters_cli.egg-info/PKG-INFO +8 -8
- {jitters_cli-0.2.1 → jitters_cli-0.2.2}/pyproject.toml +3 -3
- {jitters_cli-0.2.1 → jitters_cli-0.2.2}/tests/test_jitters.py +3 -3
- {jitters_cli-0.2.1 → jitters_cli-0.2.2}/tests/test_statusline.py +2 -2
- {jitters_cli-0.2.1 → jitters_cli-0.2.2}/LICENSE +0 -0
- {jitters_cli-0.2.1 → jitters_cli-0.2.2}/jitters_cli/__main__.py +0 -0
- {jitters_cli-0.2.1 → jitters_cli-0.2.2}/jitters_cli/cli.py +0 -0
- {jitters_cli-0.2.1 → jitters_cli-0.2.2}/jitters_cli/rules.py +0 -0
- {jitters_cli-0.2.1 → jitters_cli-0.2.2}/jitters_cli.egg-info/SOURCES.txt +0 -0
- {jitters_cli-0.2.1 → jitters_cli-0.2.2}/jitters_cli.egg-info/dependency_links.txt +0 -0
- {jitters_cli-0.2.1 → jitters_cli-0.2.2}/jitters_cli.egg-info/entry_points.txt +0 -0
- {jitters_cli-0.2.1 → jitters_cli-0.2.2}/jitters_cli.egg-info/top_level.txt +0 -0
- {jitters_cli-0.2.1 → jitters_cli-0.2.2}/setup.cfg +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jitters-cli
|
|
3
|
-
Version: 0.2.
|
|
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.
|
|
8
|
-
Project-URL: Shop, https://vibeoverflow.
|
|
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
|
-

|
|
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.
|
|
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.
|
|
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
|
|
|
@@ -99,8 +99,8 @@ Claude Code: `claude mcp add jitters -- uvx jitters-cli --mcp`
|
|
|
99
99
|
|
|
100
100
|
## Him, on your desk
|
|
101
101
|
|
|
102
|
-
Jitters at your own commit hour on a mug, and his night as stickers: [the shop](https://vibeoverflow.
|
|
102
|
+
Jitters at your own commit hour on a mug, and his night as stickers: [the shop](https://vibeoverflow.fun/shop.html?src=pypi).
|
|
103
103
|
|
|
104
|
-
MIT. Made by the Vibeoverflow team, [vibeoverflow.
|
|
104
|
+
MIT. Made by the Vibeoverflow team, [vibeoverflow.fun](https://vibeoverflow.fun/?src=pypi).
|
|
105
105
|
|
|
106
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
|
-

|
|
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.
|
|
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.
|
|
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
|
|
|
@@ -82,8 +82,8 @@ Claude Code: `claude mcp add jitters -- uvx jitters-cli --mcp`
|
|
|
82
82
|
|
|
83
83
|
## Him, on your desk
|
|
84
84
|
|
|
85
|
-
Jitters at your own commit hour on a mug, and his night as stickers: [the shop](https://vibeoverflow.
|
|
85
|
+
Jitters at your own commit hour on a mug, and his night as stickers: [the shop](https://vibeoverflow.fun/shop.html?src=pypi).
|
|
86
86
|
|
|
87
|
-
MIT. Made by the Vibeoverflow team, [vibeoverflow.
|
|
87
|
+
MIT. Made by the Vibeoverflow team, [vibeoverflow.fun](https://vibeoverflow.fun/?src=pypi).
|
|
88
88
|
|
|
89
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.
|
|
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.
|
|
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
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
8
|
-
Project-URL: Shop, https://vibeoverflow.
|
|
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
|
-

|
|
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.
|
|
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.
|
|
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
|
|
|
@@ -99,8 +99,8 @@ Claude Code: `claude mcp add jitters -- uvx jitters-cli --mcp`
|
|
|
99
99
|
|
|
100
100
|
## Him, on your desk
|
|
101
101
|
|
|
102
|
-
Jitters at your own commit hour on a mug, and his night as stickers: [the shop](https://vibeoverflow.
|
|
102
|
+
Jitters at your own commit hour on a mug, and his night as stickers: [the shop](https://vibeoverflow.fun/shop.html?src=pypi).
|
|
103
103
|
|
|
104
|
-
MIT. Made by the Vibeoverflow team, [vibeoverflow.
|
|
104
|
+
MIT. Made by the Vibeoverflow team, [vibeoverflow.fun](https://vibeoverflow.fun/?src=pypi).
|
|
105
105
|
|
|
106
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.
|
|
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.
|
|
19
|
-
Shop = "https://vibeoverflow.
|
|
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.
|
|
66
|
-
self.assertEqual(link("fit", '"><script>'), "https://vibeoverflow.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|