unidecompiler-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.
- {unidecompiler_cli-0.2.0 → unidecompiler_cli-0.2.2}/PKG-INFO +8 -8
- {unidecompiler_cli-0.2.0 → unidecompiler_cli-0.2.2}/README.md +3 -3
- {unidecompiler_cli-0.2.0 → unidecompiler_cli-0.2.2}/pyproject.toml +5 -5
- {unidecompiler_cli-0.2.0 → unidecompiler_cli-0.2.2}/src/unidecompiler_cli/cli.py +2 -1
- {unidecompiler_cli-0.2.0 → unidecompiler_cli-0.2.2}/src/unidecompiler_cli/templates.py +4 -0
- {unidecompiler_cli-0.2.0 → unidecompiler_cli-0.2.2}/src/unidecompiler_cli.egg-info/PKG-INFO +8 -8
- unidecompiler_cli-0.2.2/src/unidecompiler_cli.egg-info/requires.txt +4 -0
- unidecompiler_cli-0.2.0/src/unidecompiler_cli.egg-info/requires.txt +0 -4
- {unidecompiler_cli-0.2.0 → unidecompiler_cli-0.2.2}/setup.cfg +0 -0
- {unidecompiler_cli-0.2.0 → unidecompiler_cli-0.2.2}/src/unidecompiler_cli/__init__.py +0 -0
- {unidecompiler_cli-0.2.0 → unidecompiler_cli-0.2.2}/src/unidecompiler_cli/input_sources.py +0 -0
- {unidecompiler_cli-0.2.0 → unidecompiler_cli-0.2.2}/src/unidecompiler_cli/simulation.py +0 -0
- {unidecompiler_cli-0.2.0 → unidecompiler_cli-0.2.2}/src/unidecompiler_cli.egg-info/SOURCES.txt +0 -0
- {unidecompiler_cli-0.2.0 → unidecompiler_cli-0.2.2}/src/unidecompiler_cli.egg-info/dependency_links.txt +0 -0
- {unidecompiler_cli-0.2.0 → unidecompiler_cli-0.2.2}/src/unidecompiler_cli.egg-info/entry_points.txt +0 -0
- {unidecompiler_cli-0.2.0 → unidecompiler_cli-0.2.2}/src/unidecompiler_cli.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: unidecompiler-cli
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Command-line host for unidecompiler plugins
|
|
5
5
|
Author-email: Wker <1670133844@qq.com>
|
|
6
6
|
License-Expression: AGPL-3.0-or-later
|
|
@@ -9,10 +9,10 @@ Project-URL: Repository, https://github.com/Wker666/unidecompiler
|
|
|
9
9
|
Project-URL: Issues, https://github.com/Wker666/unidecompiler/issues
|
|
10
10
|
Requires-Python: >=3.11
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
|
-
Requires-Dist: unidecompiler<0.3.0,>=0.2.
|
|
13
|
-
Requires-Dist: unidecompiler-export<0.3.0,>=0.2.
|
|
14
|
-
Requires-Dist: unidecompiler-simulator<0.3.0,>=0.2.
|
|
15
|
-
Requires-Dist: unidecompiler-simulation-host-python<0.3.0,>=0.2.
|
|
12
|
+
Requires-Dist: unidecompiler<0.3.0,>=0.2.2
|
|
13
|
+
Requires-Dist: unidecompiler-export<0.3.0,>=0.2.2
|
|
14
|
+
Requires-Dist: unidecompiler-simulator<0.3.0,>=0.2.2
|
|
15
|
+
Requires-Dist: unidecompiler-simulation-host-python<0.3.0,>=0.2.2
|
|
16
16
|
|
|
17
17
|
# unidecompiler-cli
|
|
18
18
|
|
|
@@ -39,7 +39,7 @@ exports use sanitized basenames and never overwrite an existing file; these
|
|
|
39
39
|
options leave stdout empty and report the destinations on stderr:
|
|
40
40
|
|
|
41
41
|
```sh
|
|
42
|
-
unidecompiler sample.pyc --output sample.
|
|
42
|
+
unidecompiler sample.pyc --output sample.pse
|
|
43
43
|
unidecompiler samples/ --output-dir decompiled/
|
|
44
44
|
unidecompiler samples/ --format ast-json --output-dir ast/
|
|
45
45
|
```
|
|
@@ -51,8 +51,8 @@ for `--output-dir` or `--format ast-json`:
|
|
|
51
51
|
|
|
52
52
|
```sh
|
|
53
53
|
unidecompiler sample.pyc \
|
|
54
|
-
--output sample.
|
|
55
|
-
--vscode-metadata sample.
|
|
54
|
+
--output sample.pse \
|
|
55
|
+
--vscode-metadata sample.pse.unidec.json
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
The sidecar contains the exported text's UTF-8 SHA-256, UTF-16 source-map
|
|
@@ -23,7 +23,7 @@ exports use sanitized basenames and never overwrite an existing file; these
|
|
|
23
23
|
options leave stdout empty and report the destinations on stderr:
|
|
24
24
|
|
|
25
25
|
```sh
|
|
26
|
-
unidecompiler sample.pyc --output sample.
|
|
26
|
+
unidecompiler sample.pyc --output sample.pse
|
|
27
27
|
unidecompiler samples/ --output-dir decompiled/
|
|
28
28
|
unidecompiler samples/ --format ast-json --output-dir ast/
|
|
29
29
|
```
|
|
@@ -35,8 +35,8 @@ for `--output-dir` or `--format ast-json`:
|
|
|
35
35
|
|
|
36
36
|
```sh
|
|
37
37
|
unidecompiler sample.pyc \
|
|
38
|
-
--output sample.
|
|
39
|
-
--vscode-metadata sample.
|
|
38
|
+
--output sample.pse \
|
|
39
|
+
--vscode-metadata sample.pse.unidec.json
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
The sidecar contains the exported text's UTF-8 SHA-256, UTF-16 source-map
|
|
@@ -4,17 +4,17 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "unidecompiler-cli"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.2"
|
|
8
8
|
description = "Command-line host for unidecompiler plugins"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "AGPL-3.0-or-later"
|
|
11
11
|
authors = [{ name = "Wker", email = "1670133844@qq.com" }]
|
|
12
12
|
requires-python = ">=3.11"
|
|
13
13
|
dependencies = [
|
|
14
|
-
"unidecompiler>=0.2.
|
|
15
|
-
"unidecompiler-export>=0.2.
|
|
16
|
-
"unidecompiler-simulator>=0.2.
|
|
17
|
-
"unidecompiler-simulation-host-python>=0.2.
|
|
14
|
+
"unidecompiler>=0.2.2,<0.3.0",
|
|
15
|
+
"unidecompiler-export>=0.2.2,<0.3.0",
|
|
16
|
+
"unidecompiler-simulator>=0.2.2,<0.3.0",
|
|
17
|
+
"unidecompiler-simulation-host-python>=0.2.2,<0.3.0",
|
|
18
18
|
]
|
|
19
19
|
|
|
20
20
|
[project.urls]
|
|
@@ -277,7 +277,8 @@ class _CLIProgressReporter:
|
|
|
277
277
|
current = _bar(file_fraction, self._BAR_WIDTH)
|
|
278
278
|
batch_count = _count_text(batch_current, batch_total)
|
|
279
279
|
file_count = _work_count_text(event)
|
|
280
|
-
detail = event.message or event.phase
|
|
280
|
+
detail = event.item_label or event.message or event.phase
|
|
281
|
+
detail = " ".join(detail.split())
|
|
281
282
|
label = _truncate(event.artifact_label or "artifact", 64)
|
|
282
283
|
detail_text = f"{event.phase}: {detail} ({label})"
|
|
283
284
|
return f"Files [{batch}] {batch_count} | File [{current}] {file_count} | {detail_text}"
|
|
@@ -8,6 +8,7 @@ from pathlib import Path
|
|
|
8
8
|
from unidecompiler_export.templates import (
|
|
9
9
|
TemplateExportError,
|
|
10
10
|
TemplateRequest,
|
|
11
|
+
build_ai_goal_prompt,
|
|
11
12
|
derive_project_names,
|
|
12
13
|
export_template,
|
|
13
14
|
)
|
|
@@ -120,6 +121,9 @@ def main(argv: list[str]) -> int:
|
|
|
120
121
|
except (TemplateExportError, OSError) as error:
|
|
121
122
|
parser.error(str(error))
|
|
122
123
|
print(destination)
|
|
124
|
+
if args.ai_guidance:
|
|
125
|
+
print("\nCopy-ready AI prompt:\n", file=sys.stderr)
|
|
126
|
+
print(build_ai_goal_prompt(request, destination), file=sys.stderr)
|
|
123
127
|
return 0
|
|
124
128
|
|
|
125
129
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: unidecompiler-cli
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Command-line host for unidecompiler plugins
|
|
5
5
|
Author-email: Wker <1670133844@qq.com>
|
|
6
6
|
License-Expression: AGPL-3.0-or-later
|
|
@@ -9,10 +9,10 @@ Project-URL: Repository, https://github.com/Wker666/unidecompiler
|
|
|
9
9
|
Project-URL: Issues, https://github.com/Wker666/unidecompiler/issues
|
|
10
10
|
Requires-Python: >=3.11
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
|
-
Requires-Dist: unidecompiler<0.3.0,>=0.2.
|
|
13
|
-
Requires-Dist: unidecompiler-export<0.3.0,>=0.2.
|
|
14
|
-
Requires-Dist: unidecompiler-simulator<0.3.0,>=0.2.
|
|
15
|
-
Requires-Dist: unidecompiler-simulation-host-python<0.3.0,>=0.2.
|
|
12
|
+
Requires-Dist: unidecompiler<0.3.0,>=0.2.2
|
|
13
|
+
Requires-Dist: unidecompiler-export<0.3.0,>=0.2.2
|
|
14
|
+
Requires-Dist: unidecompiler-simulator<0.3.0,>=0.2.2
|
|
15
|
+
Requires-Dist: unidecompiler-simulation-host-python<0.3.0,>=0.2.2
|
|
16
16
|
|
|
17
17
|
# unidecompiler-cli
|
|
18
18
|
|
|
@@ -39,7 +39,7 @@ exports use sanitized basenames and never overwrite an existing file; these
|
|
|
39
39
|
options leave stdout empty and report the destinations on stderr:
|
|
40
40
|
|
|
41
41
|
```sh
|
|
42
|
-
unidecompiler sample.pyc --output sample.
|
|
42
|
+
unidecompiler sample.pyc --output sample.pse
|
|
43
43
|
unidecompiler samples/ --output-dir decompiled/
|
|
44
44
|
unidecompiler samples/ --format ast-json --output-dir ast/
|
|
45
45
|
```
|
|
@@ -51,8 +51,8 @@ for `--output-dir` or `--format ast-json`:
|
|
|
51
51
|
|
|
52
52
|
```sh
|
|
53
53
|
unidecompiler sample.pyc \
|
|
54
|
-
--output sample.
|
|
55
|
-
--vscode-metadata sample.
|
|
54
|
+
--output sample.pse \
|
|
55
|
+
--vscode-metadata sample.pse.unidec.json
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
The sidecar contains the exported text's UTF-8 SHA-256, UTF-16 source-map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{unidecompiler_cli-0.2.0 → unidecompiler_cli-0.2.2}/src/unidecompiler_cli.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{unidecompiler_cli-0.2.0 → unidecompiler_cli-0.2.2}/src/unidecompiler_cli.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{unidecompiler_cli-0.2.0 → unidecompiler_cli-0.2.2}/src/unidecompiler_cli.egg-info/top_level.txt
RENAMED
|
File without changes
|