diffuser-cli 0.1.1__tar.gz → 0.1.3__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.
- {diffuser_cli-0.1.1 → diffuser_cli-0.1.3}/PKG-INFO +3 -30
- {diffuser_cli-0.1.1 → diffuser_cli-0.1.3}/README.md +2 -29
- {diffuser_cli-0.1.1 → diffuser_cli-0.1.3}/src/diffuser/__init__.py +2 -10
- {diffuser_cli-0.1.1 → diffuser_cli-0.1.3}/src/diffuser/_version.py +2 -2
- {diffuser_cli-0.1.1 → diffuser_cli-0.1.3}/.github/workflows/ci.yml +0 -0
- {diffuser_cli-0.1.1 → diffuser_cli-0.1.3}/.github/workflows/release.yml +0 -0
- {diffuser_cli-0.1.1 → diffuser_cli-0.1.3}/.gitignore +0 -0
- {diffuser_cli-0.1.1 → diffuser_cli-0.1.3}/.python-version +0 -0
- {diffuser_cli-0.1.1 → diffuser_cli-0.1.3}/LICENSE +0 -0
- {diffuser_cli-0.1.1 → diffuser_cli-0.1.3}/pyproject.toml +0 -0
- {diffuser_cli-0.1.1 → diffuser_cli-0.1.3}/skills/diffuser/SKILL.md +0 -0
- {diffuser_cli-0.1.1 → diffuser_cli-0.1.3}/src/diffuser/parse.py +0 -0
- {diffuser_cli-0.1.1 → diffuser_cli-0.1.3}/src/diffuser/render.py +0 -0
- {diffuser_cli-0.1.1 → diffuser_cli-0.1.3}/src/diffuser/skill.py +0 -0
- {diffuser_cli-0.1.1 → diffuser_cli-0.1.3}/tests/test_parse.py +0 -0
- {diffuser_cli-0.1.1 → diffuser_cli-0.1.3}/tests/test_render.py +0 -0
- {diffuser_cli-0.1.1 → diffuser_cli-0.1.3}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: diffuser-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: CriticMarkup viewer for the terminal
|
|
5
5
|
Author-email: shakedlokits <shakedl@salt.security>
|
|
6
6
|
License-Expression: GPL-3.0-or-later
|
|
@@ -69,42 +69,15 @@ tooling. No version control. Just the text.
|
|
|
69
69
|
|
|
70
70
|
The idea was brilliant. I just needed it in the terminal. That's diffuser.
|
|
71
71
|
|
|
72
|
-
## How It Works
|
|
73
|
-
|
|
74
|
-
diffuser preprocesses CriticMarkup syntax into Rich markup, then delegates
|
|
75
|
-
all markdown rendering to the `rich` library. No custom HTML parser, no
|
|
76
|
-
browser. Just your terminal.
|
|
77
|
-
|
|
78
|
-
### CriticMarkup Syntax
|
|
79
|
-
|
|
80
|
-
| Syntax | Meaning |
|
|
81
|
-
|---|---|
|
|
82
|
-
| `{++text++}` | Insertion |
|
|
83
|
-
| `{--text--}` | Deletion |
|
|
84
|
-
| `{~~old~>new~~}` | Substitution |
|
|
85
|
-
| `{==text==}` | Highlight |
|
|
86
|
-
| `{>>text<<}` | Comment |
|
|
87
|
-
|
|
88
|
-
Full specification: http://criticmarkup.com/spec.php
|
|
89
|
-
|
|
90
72
|
## Agent Skill
|
|
91
73
|
|
|
92
|
-
|
|
93
|
-
|
|
74
|
+
If you want to use an agent to help you with writing, there's a skill to
|
|
75
|
+
guide it on how to use CriticMarkup when suggesting changes:
|
|
94
76
|
|
|
95
77
|
```bash
|
|
96
78
|
npx skills add shakedlokits/diffuser
|
|
97
79
|
```
|
|
98
80
|
|
|
99
|
-
Or view the skill content directly:
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
diffuser skill
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
The skill instructs the agent to annotate files in-place using CriticMarkup
|
|
106
|
-
syntax, never deleting or replacing original text directly.
|
|
107
|
-
|
|
108
81
|
## Development
|
|
109
82
|
|
|
110
83
|
### Setup
|
|
@@ -57,42 +57,15 @@ tooling. No version control. Just the text.
|
|
|
57
57
|
|
|
58
58
|
The idea was brilliant. I just needed it in the terminal. That's diffuser.
|
|
59
59
|
|
|
60
|
-
## How It Works
|
|
61
|
-
|
|
62
|
-
diffuser preprocesses CriticMarkup syntax into Rich markup, then delegates
|
|
63
|
-
all markdown rendering to the `rich` library. No custom HTML parser, no
|
|
64
|
-
browser. Just your terminal.
|
|
65
|
-
|
|
66
|
-
### CriticMarkup Syntax
|
|
67
|
-
|
|
68
|
-
| Syntax | Meaning |
|
|
69
|
-
|---|---|
|
|
70
|
-
| `{++text++}` | Insertion |
|
|
71
|
-
| `{--text--}` | Deletion |
|
|
72
|
-
| `{~~old~>new~~}` | Substitution |
|
|
73
|
-
| `{==text==}` | Highlight |
|
|
74
|
-
| `{>>text<<}` | Comment |
|
|
75
|
-
|
|
76
|
-
Full specification: http://criticmarkup.com/spec.php
|
|
77
|
-
|
|
78
60
|
## Agent Skill
|
|
79
61
|
|
|
80
|
-
|
|
81
|
-
|
|
62
|
+
If you want to use an agent to help you with writing, there's a skill to
|
|
63
|
+
guide it on how to use CriticMarkup when suggesting changes:
|
|
82
64
|
|
|
83
65
|
```bash
|
|
84
66
|
npx skills add shakedlokits/diffuser
|
|
85
67
|
```
|
|
86
68
|
|
|
87
|
-
Or view the skill content directly:
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
diffuser skill
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
The skill instructs the agent to annotate files in-place using CriticMarkup
|
|
94
|
-
syntax, never deleting or replacing original text directly.
|
|
95
|
-
|
|
96
69
|
## Development
|
|
97
70
|
|
|
98
71
|
### Setup
|
|
@@ -9,15 +9,6 @@ from diffuser.parse import prepare
|
|
|
9
9
|
from diffuser.render import render
|
|
10
10
|
from diffuser.skill import get_skill_content
|
|
11
11
|
|
|
12
|
-
_BANNER = r"""
|
|
13
|
-
██████╗ ██╗███████╗███████╗██╗ ██╗███████╗███████╗██████╗
|
|
14
|
-
██╔══██╗██║██╔════╝██╔════╝██║ ██║██╔════╝██╔════╝██╔══██╗
|
|
15
|
-
██║ ██║██║█████╗ █████╗ ██║ ██║███████╗█████╗ ██████╔╝
|
|
16
|
-
██║ ██║██║██╔══╝ ██╔══╝ ██║ ██║╚════██║██╔══╝ ██╔══██╗
|
|
17
|
-
██████╔╝██║██║ ██║ ╚██████╔╝███████║███████╗██║ ██║
|
|
18
|
-
╚═════╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚══════╝╚═╝ ╚═╝
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
12
|
|
|
22
13
|
def _version_callback(value: bool) -> None:
|
|
23
14
|
if value:
|
|
@@ -28,7 +19,8 @@ def _version_callback(value: bool) -> None:
|
|
|
28
19
|
|
|
29
20
|
|
|
30
21
|
app = typer.Typer(
|
|
31
|
-
|
|
22
|
+
rich_markup_mode="rich",
|
|
23
|
+
help="[bold]CriticMarkup[/bold] viewer for the terminal.",
|
|
32
24
|
epilog="Made by Shaked Lokits. https://github.com/shakedlokits/diffuser",
|
|
33
25
|
no_args_is_help=True,
|
|
34
26
|
)
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.1.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 1,
|
|
21
|
+
__version__ = version = '0.1.3'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 1, 3)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
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
|