paper-plane-x-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.
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/PKG-INFO +2 -2
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/README.md +1 -1
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/pyproject.toml +1 -1
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/skills/ppx-researcher/references/advanced-topics.md +8 -1
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/src/paper_plane_x_cli/__init__.py +1 -1
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/.gitignore +0 -0
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/LICENSE +0 -0
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/skills/ppx-paper-acquisition/SKILL.md +0 -0
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/skills/ppx-pdf-to-markdown/SKILL.md +0 -0
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/skills/ppx-researcher/SKILL.md +0 -0
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/skills/ppx-researcher/references/tool-guide.md +0 -0
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/src/paper_plane_x_cli/cli/__init__.py +0 -0
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/src/paper_plane_x_cli/cli/context.py +0 -0
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/src/paper_plane_x_cli/cli/files.py +0 -0
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/src/paper_plane_x_cli/cli/librarian.py +0 -0
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/src/paper_plane_x_cli/cli/paper.py +0 -0
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/src/paper_plane_x_cli/cli/paper_note.py +0 -0
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/src/paper_plane_x_cli/cli/pdf.py +0 -0
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/src/paper_plane_x_cli/cli/project.py +0 -0
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/src/paper_plane_x_cli/cli/skills.py +0 -0
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/src/paper_plane_x_cli/cli/task.py +0 -0
- {paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/src/paper_plane_x_cli/cli/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: paper-plane-x-cli
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: HTTP CLI and external-agent skills for Paper Plane X
|
|
5
5
|
Author-email: windlx <1418043337@qq.com>
|
|
6
6
|
License-Expression: AGPL-3.0-or-later
|
|
@@ -165,7 +165,7 @@ ppx files patch \
|
|
|
165
165
|
ppx files delete --path /notes/obsolete.md
|
|
166
166
|
```
|
|
167
167
|
|
|
168
|
-
Project files are sandboxed by the backend: path traversal is rejected, only approved text/data extensions are accepted, and uploads are limited to 10 MB per file.
|
|
168
|
+
Project files are sandboxed by the backend: path traversal is rejected, only approved text/data extensions (`.md`, `.txt`, `.json`, `.csv`, `.yaml`, `.yml`, `.toml`) and image extensions (`.png`, `.jpg`, `.jpeg`, `.webp`, `.gif`, `.svg`) are accepted, and uploads are limited to 10 MB per file. `upload` streams the local file as raw bytes; the backend validates images by real content, so a mismatched extension or a corrupt file fails with a locatable error instead of being stored.
|
|
169
169
|
|
|
170
170
|
Prefer targeted `find`, `lines`, `replace-*`, or `patch` operations when an Agent modifies an existing document. This reduces accidental overwrites and makes failures explicit.
|
|
171
171
|
|
|
@@ -153,7 +153,7 @@ ppx files patch \
|
|
|
153
153
|
ppx files delete --path /notes/obsolete.md
|
|
154
154
|
```
|
|
155
155
|
|
|
156
|
-
Project files are sandboxed by the backend: path traversal is rejected, only approved text/data extensions are accepted, and uploads are limited to 10 MB per file.
|
|
156
|
+
Project files are sandboxed by the backend: path traversal is rejected, only approved text/data extensions (`.md`, `.txt`, `.json`, `.csv`, `.yaml`, `.yml`, `.toml`) and image extensions (`.png`, `.jpg`, `.jpeg`, `.webp`, `.gif`, `.svg`) are accepted, and uploads are limited to 10 MB per file. `upload` streams the local file as raw bytes; the backend validates images by real content, so a mismatched extension or a corrupt file fails with a locatable error instead of being stored.
|
|
157
157
|
|
|
158
158
|
Prefer targeted `find`, `lines`, `replace-*`, or `patch` operations when an Agent modifies an existing document. This reduces accidental overwrites and makes failures explicit.
|
|
159
159
|
|
|
@@ -28,8 +28,9 @@ If `--path` is omitted on `upload`, the file targets `/<source filename>`.
|
|
|
28
28
|
- `replace-text` and `patch` support `--expected-occurrences`; use it for safety. `replace-text` also supports `--replace-all`.
|
|
29
29
|
- If an edit command fails because line numbers, matches, or paths changed, re-read or re-find before retrying.
|
|
30
30
|
- Line numbers are 1-based, and `end_line` is inclusive.
|
|
31
|
-
- Project files must stay inside the sandbox and use one of: `.csv`, `.json`, `.md`, `.txt`, `.yaml`, `.yml`, `.toml`.
|
|
31
|
+
- Project files must stay inside the sandbox and use one of: `.csv`, `.json`, `.md`, `.txt`, `.yaml`, `.yml`, `.toml`, or an image extension `.png`, `.jpg`, `.jpeg`, `.webp`, `.gif`, `.svg`.
|
|
32
32
|
- Single-file size limit is 10485760 bytes.
|
|
33
|
+
- Images support upload, listing, preview, original download, deletion, and Markdown references in the Web console. The CLI supports image upload and deletion; `read`, `write`, and the edit commands accept text files, while `upload` also accepts images and sends the file's raw bytes. The backend validates image content against the extension, so upload the original file rather than a re-encoded copy.
|
|
33
34
|
|
|
34
35
|
## Examples
|
|
35
36
|
|
|
@@ -65,6 +66,12 @@ Upload a local file into the project sandbox:
|
|
|
65
66
|
ppx files upload --source ./lit-review.md --path /notes/lit-review.md
|
|
66
67
|
```
|
|
67
68
|
|
|
69
|
+
Upload a local PNG figure the same way; the bytes are sent unchanged:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
ppx files upload --source ./figure.png --path /images/figure.png
|
|
73
|
+
```
|
|
74
|
+
|
|
68
75
|
Delete a file or empty directory:
|
|
69
76
|
|
|
70
77
|
```bash
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{paper_plane_x_cli-0.2.1 → paper_plane_x_cli-0.2.2}/skills/ppx-researcher/references/tool-guide.md
RENAMED
|
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
|