cli-dev-tip 0.1.1__tar.gz → 0.1.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.
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/PKG-INFO +1 -1
- cli_dev_tip-0.1.2/assets/enable.svg +80 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/dev_tip/hook.py +1 -1
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/pyproject.toml +1 -1
- cli_dev_tip-0.1.1/assets/enable.svg +0 -82
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/.gitignore +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/LICENSE +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/README.md +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/assets/pause.svg +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/assets/status.svg +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/assets/tip.svg +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/dev_tip/__init__.py +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/dev_tip/ai/__init__.py +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/dev_tip/ai/cache.py +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/dev_tip/ai/gemini.py +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/dev_tip/ai/openrouter.py +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/dev_tip/ai/prompt.py +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/dev_tip/ai/provider.py +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/dev_tip/cli.py +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/dev_tip/config.py +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/dev_tip/data/tips.yaml +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/dev_tip/history.py +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/dev_tip/prefetch.py +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/dev_tip/tips.py +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/tests/conftest.py +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/tests/test_cache.py +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/tests/test_cli.py +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/tests/test_config.py +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/tests/test_history.py +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/tests/test_hook.py +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/tests/test_tips.py +0 -0
- {cli_dev_tip-0.1.1 → cli_dev_tip-0.1.2}/uv.lock +0 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
<svg class="rich-terminal" viewBox="0 0 897 172.0" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<!-- Generated with Rich https://www.textualize.io -->
|
|
3
|
+
<style>
|
|
4
|
+
|
|
5
|
+
@font-face {
|
|
6
|
+
font-family: "Fira Code";
|
|
7
|
+
src: local("FiraCode-Regular"),
|
|
8
|
+
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff2/FiraCode-Regular.woff2") format("woff2"),
|
|
9
|
+
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff/FiraCode-Regular.woff") format("woff");
|
|
10
|
+
font-style: normal;
|
|
11
|
+
font-weight: 400;
|
|
12
|
+
}
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family: "Fira Code";
|
|
15
|
+
src: local("FiraCode-Bold"),
|
|
16
|
+
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff2/FiraCode-Bold.woff2") format("woff2"),
|
|
17
|
+
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff/FiraCode-Bold.woff") format("woff");
|
|
18
|
+
font-style: bold;
|
|
19
|
+
font-weight: 700;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.terminal-3667420291-matrix {
|
|
23
|
+
font-family: Fira Code, monospace;
|
|
24
|
+
font-size: 20px;
|
|
25
|
+
line-height: 24.4px;
|
|
26
|
+
font-variant-east-asian: full-width;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.terminal-3667420291-title {
|
|
30
|
+
font-size: 18px;
|
|
31
|
+
font-weight: bold;
|
|
32
|
+
font-family: arial;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.terminal-3667420291-r1 { fill: #c5c8c6 }
|
|
36
|
+
.terminal-3667420291-r2 { fill: #98a84b;font-weight: bold }
|
|
37
|
+
.terminal-3667420291-r3 { fill: #868887 }
|
|
38
|
+
.terminal-3667420291-r4 { fill: #8d7b39 }
|
|
39
|
+
.terminal-3667420291-r5 { fill: #98a84b }
|
|
40
|
+
.terminal-3667420291-r6 { fill: #68a0b3;font-weight: bold }
|
|
41
|
+
.terminal-3667420291-r7 { fill: #c5c8c6;font-weight: bold }
|
|
42
|
+
</style>
|
|
43
|
+
|
|
44
|
+
<defs>
|
|
45
|
+
<clipPath id="terminal-3667420291-clip-terminal">
|
|
46
|
+
<rect x="0" y="0" width="877.4" height="121.0" />
|
|
47
|
+
</clipPath>
|
|
48
|
+
<clipPath id="terminal-3667420291-line-0">
|
|
49
|
+
<rect x="0" y="1.5" width="878.4" height="24.65"/>
|
|
50
|
+
</clipPath>
|
|
51
|
+
<clipPath id="terminal-3667420291-line-1">
|
|
52
|
+
<rect x="0" y="25.9" width="878.4" height="24.65"/>
|
|
53
|
+
</clipPath>
|
|
54
|
+
<clipPath id="terminal-3667420291-line-2">
|
|
55
|
+
<rect x="0" y="50.3" width="878.4" height="24.65"/>
|
|
56
|
+
</clipPath>
|
|
57
|
+
<clipPath id="terminal-3667420291-line-3">
|
|
58
|
+
<rect x="0" y="74.7" width="878.4" height="24.65"/>
|
|
59
|
+
</clipPath>
|
|
60
|
+
</defs>
|
|
61
|
+
|
|
62
|
+
<rect fill="#292929" stroke="rgba(255,255,255,0.35)" stroke-width="1" x="1" y="1" width="895" height="170" rx="8"/><text class="terminal-3667420291-title" fill="#c5c8c6" text-anchor="middle" x="447" y="27">dev-tip enable</text>
|
|
63
|
+
<g transform="translate(26,22)">
|
|
64
|
+
<circle cx="0" cy="0" r="7" fill="#ff5f57"/>
|
|
65
|
+
<circle cx="22" cy="0" r="7" fill="#febc2e"/>
|
|
66
|
+
<circle cx="44" cy="0" r="7" fill="#28c840"/>
|
|
67
|
+
</g>
|
|
68
|
+
|
|
69
|
+
<g transform="translate(9, 41)" clip-path="url(#terminal-3667420291-clip-terminal)">
|
|
70
|
+
|
|
71
|
+
<g class="terminal-3667420291-matrix">
|
|
72
|
+
<text class="terminal-3667420291-r1" x="0" y="20" textLength="24.4" clip-path="url(#terminal-3667420291-line-0)">$ </text><text class="terminal-3667420291-r2" x="24.4" y="20" textLength="524.6" clip-path="url(#terminal-3667420291-line-0)">dev-tip enable --provider gemini --key AIza</text><text class="terminal-3667420291-r2" x="549" y="20" textLength="36.6" clip-path="url(#terminal-3667420291-line-0)">...</text><text class="terminal-3667420291-r1" x="878.4" y="20" textLength="12.2" clip-path="url(#terminal-3667420291-line-0)">
|
|
73
|
+
</text><text class="terminal-3667420291-r3" x="0" y="44.4" textLength="451.4" clip-path="url(#terminal-3667420291-line-1)">Pre-caching AI tips in the background</text><text class="terminal-3667420291-r4" x="451.4" y="44.4" textLength="36.6" clip-path="url(#terminal-3667420291-line-1)">...</text><text class="terminal-3667420291-r1" x="878.4" y="44.4" textLength="12.2" clip-path="url(#terminal-3667420291-line-1)">
|
|
74
|
+
</text><text class="terminal-3667420291-r5" x="0" y="68.8" textLength="219.6" clip-path="url(#terminal-3667420291-line-2)">Hook installed in </text><text class="terminal-3667420291-r5" x="219.6" y="68.8" textLength="134.2" clip-path="url(#terminal-3667420291-line-2)">/home/user/</text><text class="terminal-3667420291-r5" x="353.8" y="68.8" textLength="73.2" clip-path="url(#terminal-3667420291-line-2)">.zshrc</text><text class="terminal-3667420291-r1" x="878.4" y="68.8" textLength="12.2" clip-path="url(#terminal-3667420291-line-2)">
|
|
75
|
+
</text><text class="terminal-3667420291-r1" x="0" y="93.2" textLength="280.6" clip-path="url(#terminal-3667420291-line-3)">Tips will appear every </text><text class="terminal-3667420291-r6" x="280.6" y="93.2" textLength="24.4" clip-path="url(#terminal-3667420291-line-3)">15</text><text class="terminal-3667420291-r1" x="305" y="93.2" textLength="158.6" clip-path="url(#terminal-3667420291-line-3)"> commands or </text><text class="terminal-3667420291-r6" x="463.6" y="93.2" textLength="24.4" clip-path="url(#terminal-3667420291-line-3)">30</text><text class="terminal-3667420291-r1" x="488" y="93.2" textLength="109.8" clip-path="url(#terminal-3667420291-line-3)"> minutes.</text><text class="terminal-3667420291-r1" x="878.4" y="93.2" textLength="12.2" clip-path="url(#terminal-3667420291-line-3)">
|
|
76
|
+
</text><text class="terminal-3667420291-r1" x="0" y="117.6" textLength="231.8" clip-path="url(#terminal-3667420291-line-4)">Reload your shell: </text><text class="terminal-3667420291-r7" x="231.8" y="117.6" textLength="97.6" clip-path="url(#terminal-3667420291-line-4)">exec zsh</text><text class="terminal-3667420291-r1" x="878.4" y="117.6" textLength="12.2" clip-path="url(#terminal-3667420291-line-4)">
|
|
77
|
+
</text>
|
|
78
|
+
</g>
|
|
79
|
+
</g>
|
|
80
|
+
</svg>
|
|
@@ -168,7 +168,7 @@ def enable(
|
|
|
168
168
|
f"Tips will appear every {every_commands} commands "
|
|
169
169
|
f"or {every_minutes} minutes."
|
|
170
170
|
)
|
|
171
|
-
console.print(f"
|
|
171
|
+
console.print(f"Reload your shell: [bold]exec {shell}[/bold]")
|
|
172
172
|
|
|
173
173
|
|
|
174
174
|
def disable() -> None:
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
<svg class="rich-terminal" viewBox="0 0 897 172.0" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<!-- Generated with Rich https://www.textualize.io -->
|
|
3
|
-
<style>
|
|
4
|
-
|
|
5
|
-
@font-face {
|
|
6
|
-
font-family: "Fira Code";
|
|
7
|
-
src: local("FiraCode-Regular"),
|
|
8
|
-
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff2/FiraCode-Regular.woff2") format("woff2"),
|
|
9
|
-
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff/FiraCode-Regular.woff") format("woff");
|
|
10
|
-
font-style: normal;
|
|
11
|
-
font-weight: 400;
|
|
12
|
-
}
|
|
13
|
-
@font-face {
|
|
14
|
-
font-family: "Fira Code";
|
|
15
|
-
src: local("FiraCode-Bold"),
|
|
16
|
-
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff2/FiraCode-Bold.woff2") format("woff2"),
|
|
17
|
-
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff/FiraCode-Bold.woff") format("woff");
|
|
18
|
-
font-style: bold;
|
|
19
|
-
font-weight: 700;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.terminal-1566548822-matrix {
|
|
23
|
-
font-family: Fira Code, monospace;
|
|
24
|
-
font-size: 20px;
|
|
25
|
-
line-height: 24.4px;
|
|
26
|
-
font-variant-east-asian: full-width;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.terminal-1566548822-title {
|
|
30
|
-
font-size: 18px;
|
|
31
|
-
font-weight: bold;
|
|
32
|
-
font-family: arial;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.terminal-1566548822-r1 { fill: #c5c8c6 }
|
|
36
|
-
.terminal-1566548822-r2 { fill: #98a84b;font-weight: bold }
|
|
37
|
-
.terminal-1566548822-r3 { fill: #868887 }
|
|
38
|
-
.terminal-1566548822-r4 { fill: #8d7b39 }
|
|
39
|
-
.terminal-1566548822-r5 { fill: #98a84b }
|
|
40
|
-
.terminal-1566548822-r6 { fill: #68a0b3;font-weight: bold }
|
|
41
|
-
.terminal-1566548822-r7 { fill: #c5c8c6;font-weight: bold }
|
|
42
|
-
.terminal-1566548822-r8 { fill: #98729f;font-weight: bold }
|
|
43
|
-
.terminal-1566548822-r9 { fill: #ff2c7a;font-weight: bold }
|
|
44
|
-
</style>
|
|
45
|
-
|
|
46
|
-
<defs>
|
|
47
|
-
<clipPath id="terminal-1566548822-clip-terminal">
|
|
48
|
-
<rect x="0" y="0" width="877.4" height="121.0" />
|
|
49
|
-
</clipPath>
|
|
50
|
-
<clipPath id="terminal-1566548822-line-0">
|
|
51
|
-
<rect x="0" y="1.5" width="878.4" height="24.65"/>
|
|
52
|
-
</clipPath>
|
|
53
|
-
<clipPath id="terminal-1566548822-line-1">
|
|
54
|
-
<rect x="0" y="25.9" width="878.4" height="24.65"/>
|
|
55
|
-
</clipPath>
|
|
56
|
-
<clipPath id="terminal-1566548822-line-2">
|
|
57
|
-
<rect x="0" y="50.3" width="878.4" height="24.65"/>
|
|
58
|
-
</clipPath>
|
|
59
|
-
<clipPath id="terminal-1566548822-line-3">
|
|
60
|
-
<rect x="0" y="74.7" width="878.4" height="24.65"/>
|
|
61
|
-
</clipPath>
|
|
62
|
-
</defs>
|
|
63
|
-
|
|
64
|
-
<rect fill="#292929" stroke="rgba(255,255,255,0.35)" stroke-width="1" x="1" y="1" width="895" height="170" rx="8"/><text class="terminal-1566548822-title" fill="#c5c8c6" text-anchor="middle" x="447" y="27">dev-tip enable</text>
|
|
65
|
-
<g transform="translate(26,22)">
|
|
66
|
-
<circle cx="0" cy="0" r="7" fill="#ff5f57"/>
|
|
67
|
-
<circle cx="22" cy="0" r="7" fill="#febc2e"/>
|
|
68
|
-
<circle cx="44" cy="0" r="7" fill="#28c840"/>
|
|
69
|
-
</g>
|
|
70
|
-
|
|
71
|
-
<g transform="translate(9, 41)" clip-path="url(#terminal-1566548822-clip-terminal)">
|
|
72
|
-
|
|
73
|
-
<g class="terminal-1566548822-matrix">
|
|
74
|
-
<text class="terminal-1566548822-r1" x="0" y="20" textLength="24.4" clip-path="url(#terminal-1566548822-line-0)">$ </text><text class="terminal-1566548822-r2" x="24.4" y="20" textLength="524.6" clip-path="url(#terminal-1566548822-line-0)">dev-tip enable --provider gemini --key AIza</text><text class="terminal-1566548822-r2" x="549" y="20" textLength="36.6" clip-path="url(#terminal-1566548822-line-0)">...</text><text class="terminal-1566548822-r1" x="878.4" y="20" textLength="12.2" clip-path="url(#terminal-1566548822-line-0)">
|
|
75
|
-
</text><text class="terminal-1566548822-r3" x="0" y="44.4" textLength="451.4" clip-path="url(#terminal-1566548822-line-1)">Pre-caching AI tips in the background</text><text class="terminal-1566548822-r4" x="451.4" y="44.4" textLength="36.6" clip-path="url(#terminal-1566548822-line-1)">...</text><text class="terminal-1566548822-r1" x="878.4" y="44.4" textLength="12.2" clip-path="url(#terminal-1566548822-line-1)">
|
|
76
|
-
</text><text class="terminal-1566548822-r5" x="0" y="68.8" textLength="219.6" clip-path="url(#terminal-1566548822-line-2)">Hook installed in </text><text class="terminal-1566548822-r5" x="219.6" y="68.8" textLength="134.2" clip-path="url(#terminal-1566548822-line-2)">/home/user/</text><text class="terminal-1566548822-r5" x="353.8" y="68.8" textLength="73.2" clip-path="url(#terminal-1566548822-line-2)">.zshrc</text><text class="terminal-1566548822-r1" x="878.4" y="68.8" textLength="12.2" clip-path="url(#terminal-1566548822-line-2)">
|
|
77
|
-
</text><text class="terminal-1566548822-r1" x="0" y="93.2" textLength="280.6" clip-path="url(#terminal-1566548822-line-3)">Tips will appear every </text><text class="terminal-1566548822-r6" x="280.6" y="93.2" textLength="24.4" clip-path="url(#terminal-1566548822-line-3)">15</text><text class="terminal-1566548822-r1" x="305" y="93.2" textLength="158.6" clip-path="url(#terminal-1566548822-line-3)"> commands or </text><text class="terminal-1566548822-r6" x="463.6" y="93.2" textLength="24.4" clip-path="url(#terminal-1566548822-line-3)">30</text><text class="terminal-1566548822-r1" x="488" y="93.2" textLength="109.8" clip-path="url(#terminal-1566548822-line-3)"> minutes.</text><text class="terminal-1566548822-r1" x="878.4" y="93.2" textLength="12.2" clip-path="url(#terminal-1566548822-line-3)">
|
|
78
|
-
</text><text class="terminal-1566548822-r1" x="0" y="117.6" textLength="305" clip-path="url(#terminal-1566548822-line-4)">Restart your zsh or run: </text><text class="terminal-1566548822-r7" x="305" y="117.6" textLength="97.6" clip-path="url(#terminal-1566548822-line-4)">source ~</text><text class="terminal-1566548822-r8" x="402.6" y="117.6" textLength="12.2" clip-path="url(#terminal-1566548822-line-4)">/</text><text class="terminal-1566548822-r9" x="414.8" y="117.6" textLength="73.2" clip-path="url(#terminal-1566548822-line-4)">.zshrc</text><text class="terminal-1566548822-r1" x="878.4" y="117.6" textLength="12.2" clip-path="url(#terminal-1566548822-line-4)">
|
|
79
|
-
</text>
|
|
80
|
-
</g>
|
|
81
|
-
</g>
|
|
82
|
-
</svg>
|
|
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
|
|
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
|
|
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
|